diff --git a/assets/aria2-tip-1.e9ebfae4.png b/assets/aria2-tip-1.e9ebfae4.png new file mode 100644 index 000000000..31304d667 Binary files /dev/null and b/assets/aria2-tip-1.e9ebfae4.png differ diff --git a/assets/aria2-tip-2.f3636f8d.png b/assets/aria2-tip-2.f3636f8d.png new file mode 100644 index 000000000..ad75f8afd Binary files /dev/null and b/assets/aria2-tip-2.f3636f8d.png differ diff --git a/assets/clipboard.a54b99ef.js b/assets/clipboard.a54b99ef.js new file mode 100644 index 000000000..9ed7462af --- /dev/null +++ b/assets/clipboard.a54b99ef.js @@ -0,0 +1,6 @@ +import{au as Y,av as G}from"./vendor.64da71ad.js";var O={exports:{}};/*! + * clipboard.js v2.0.8 + * https://clipboardjs.com/ + * + * Licensed MIT © Zeno Rocha + */(function(C,J){(function(_,m){C.exports=m()})(Y,function(){return function(){var w={134:function(f,a,e){e.d(a,{default:function(){return z}});var o=e(279),u=e.n(o),s=e(370),p=e.n(s),d=e(817),g=e.n(d);function l(r){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?l=function(t){return typeof t}:l=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(r)}function y(r,n){if(!(r instanceof n))throw new TypeError("Cannot call a class as a function")}function h(r,n){for(var t=0;t0&&arguments[0]!==void 0?arguments[0]:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"createFakeElement",value:function(){var t=document.documentElement.getAttribute("dir")==="rtl";this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px";var i=window.pageYOffset||document.documentElement.scrollTop;return this.fakeElem.style.top="".concat(i,"px"),this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.fakeElem}},{key:"selectFake",value:function(){var t=this,i=this.createFakeElement();this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.container.appendChild(i),this.selectedText=g()(i),this.copyText(),this.removeFake()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=g()(this.target),this.copyText()}},{key:"copyText",value:function(){var t;try{t=document.execCommand(this.action)}catch{t=!1}this.handleResult(t)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"copy";if(this._action=t,this._action!=="copy"&&this._action!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(t!==void 0)if(t&&l(t)==="object"&&t.nodeType===1){if(this.action==="copy"&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(this.action==="cut"&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`);this._target=t}else throw new Error('Invalid "target" value, use a valid Element')},get:function(){return this._target}}]),r}(),R=L;function E(r){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?E=function(t){return typeof t}:E=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},E(r)}function F(r,n){if(!(r instanceof n))throw new TypeError("Cannot call a class as a function")}function A(r,n){for(var t=0;t0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof c.action=="function"?c.action:this.defaultAction,this.target=typeof c.target=="function"?c.target:this.defaultTarget,this.text=typeof c.text=="function"?c.text:this.defaultText,this.container=E(c.container)==="object"?c.container:document.body}},{key:"listenClick",value:function(c){var v=this;this.listener=p()(c,"click",function(k){return v.onClick(k)})}},{key:"onClick",value:function(c){var v=c.delegateTarget||c.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new R({action:this.action(v),target:this.target(v),text:this.text(v),container:this.container,trigger:v,emitter:this})}},{key:"defaultAction",value:function(c){return x("action",c)}},{key:"defaultTarget",value:function(c){var v=x("target",c);if(v)return document.querySelector(v)}},{key:"defaultText",value:function(c){return x("text",c)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],v=typeof c=="string"?[c]:c,k=!!document.queryCommandSupported;return v.forEach(function(U){k=k&&!!document.queryCommandSupported(U)}),k}}]),t}(u()),z=I},828:function(f){var a=9;if(typeof Element!="undefined"&&!Element.prototype.matches){var e=Element.prototype;e.matches=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}function o(u,s){for(;u&&u.nodeType!==a;){if(typeof u.matches=="function"&&u.matches(s))return u;u=u.parentNode}}f.exports=o},438:function(f,a,e){var o=e(828);function u(d,g,l,y,h){var b=p.apply(this,arguments);return d.addEventListener(l,b,h),{destroy:function(){d.removeEventListener(l,b,h)}}}function s(d,g,l,y,h){return typeof d.addEventListener=="function"?u.apply(null,arguments):typeof l=="function"?u.bind(null,document).apply(null,arguments):(typeof d=="string"&&(d=document.querySelectorAll(d)),Array.prototype.map.call(d,function(b){return u(b,g,l,y,h)}))}function p(d,g,l,y){return function(h){h.delegateTarget=o(h.target,g),h.delegateTarget&&y.call(d,h)}}f.exports=s},879:function(f,a){a.node=function(e){return e!==void 0&&e instanceof HTMLElement&&e.nodeType===1},a.nodeList=function(e){var o=Object.prototype.toString.call(e);return e!==void 0&&(o==="[object NodeList]"||o==="[object HTMLCollection]")&&"length"in e&&(e.length===0||a.node(e[0]))},a.string=function(e){return typeof e=="string"||e instanceof String},a.fn=function(e){var o=Object.prototype.toString.call(e);return o==="[object Function]"}},370:function(f,a,e){var o=e(879),u=e(438);function s(l,y,h){if(!l&&!y&&!h)throw new Error("Missing required arguments");if(!o.string(y))throw new TypeError("Second argument must be a String");if(!o.fn(h))throw new TypeError("Third argument must be a Function");if(o.node(l))return p(l,y,h);if(o.nodeList(l))return d(l,y,h);if(o.string(l))return g(l,y,h);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function p(l,y,h){return l.addEventListener(y,h),{destroy:function(){l.removeEventListener(y,h)}}}function d(l,y,h){return Array.prototype.forEach.call(l,function(b){b.addEventListener(y,h)}),{destroy:function(){Array.prototype.forEach.call(l,function(b){b.removeEventListener(y,h)})}}}function g(l,y,h){return u(document.body,l,y,h)}f.exports=s},817:function(f){function a(e){var o;if(e.nodeName==="SELECT")e.focus(),o=e.value;else if(e.nodeName==="INPUT"||e.nodeName==="TEXTAREA"){var u=e.hasAttribute("readonly");u||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),u||e.removeAttribute("readonly"),o=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var s=window.getSelection(),p=document.createRange();p.selectNodeContents(e),s.removeAllRanges(),s.addRange(p),o=s.toString()}return o}f.exports=a},279:function(f){function a(){}a.prototype={on:function(e,o,u){var s=this.e||(this.e={});return(s[e]||(s[e]=[])).push({fn:o,ctx:u}),this},once:function(e,o,u){var s=this;function p(){s.off(e,p),o.apply(u,arguments)}return p._=o,this.on(e,p,u)},emit:function(e){var o=[].slice.call(arguments,1),u=((this.e||(this.e={}))[e]||[]).slice(),s=0,p=u.length;for(s;s{var Yr=Object.defineProperty;var Qr=(r0,J,x0)=>J in r0?Yr(r0,J,{enumerable:!0,configurable:!0,writable:!0,value:x0}):r0[J]=x0;var F0=(r0,J,x0)=>(Qr(r0,typeof J!="symbol"?J+"":J,x0),x0);(function(){"use strict";const r0=Symbol("Comlink.proxy"),J=Symbol("Comlink.endpoint"),x0=Symbol("Comlink.releaseProxy"),A0=Symbol("Comlink.thrown"),L0=p=>typeof p=="object"&&p!==null||typeof p=="function",Cr={canHandle:p=>L0(p)&&p[r0],serialize(p){const{port1:P,port2:l}=new MessageChannel;return S0(p,P),[l,[l]]},deserialize(p){return p.start(),mr(p)}},wr={canHandle:p=>L0(p)&&A0 in p,serialize({value:p}){let P;return p instanceof Error?P={isError:!0,value:{message:p.message,name:p.name,stack:p.stack}}:P={isError:!1,value:p},[P,[]]},deserialize(p){throw p.isError?Object.assign(new Error(p.value.message),p.value):p.value}},T0=new Map([["proxy",Cr],["throw",wr]]);function S0(p,P=self){P.addEventListener("message",function l(e){if(!e||!e.data)return;const{id:g,type:_,path:C}=Object.assign({path:[]},e.data),v=(e.data.argumentList||[]).map(n0);let c;try{const r=C.slice(0,-1).reduce((d,a)=>d[a],p),t=C.reduce((d,a)=>d[a],p);switch(_){case"GET":c=t;break;case"SET":r[C.slice(-1)[0]]=n0(e.data.value),c=!0;break;case"APPLY":c=t.apply(r,v);break;case"CONSTRUCT":{const d=new t(...v);c=Er(d)}break;case"ENDPOINT":{const{port1:d,port2:a}=new MessageChannel;S0(p,a),c=Sr(d,[d])}break;case"RELEASE":c=void 0;break;default:return}}catch(r){c={value:r,[A0]:0}}Promise.resolve(c).catch(r=>({value:r,[A0]:0})).then(r=>{const[t,d]=z0(r);P.postMessage(Object.assign(Object.assign({},t),{id:g}),d),_==="RELEASE"&&(P.removeEventListener("message",l),N0(P))})}),P.start&&P.start()}function Hr(p){return p.constructor.name==="MessagePort"}function N0(p){Hr(p)&&p.close()}function mr(p,P){return E0(p,[],P)}function B0(p){if(p)throw new Error("Proxy has been released and is not useable")}function E0(p,P=[],l=function(){}){let e=!1;const g=new Proxy(l,{get(_,C){if(B0(e),C===x0)return()=>s0(p,{type:"RELEASE",path:P.map(v=>v.toString())}).then(()=>{N0(p),e=!0});if(C==="then"){if(P.length===0)return{then:()=>g};const v=s0(p,{type:"GET",path:P.map(c=>c.toString())}).then(n0);return v.then.bind(v)}return E0(p,[...P,C])},set(_,C,v){B0(e);const[c,r]=z0(v);return s0(p,{type:"SET",path:[...P,C].map(t=>t.toString()),value:c},r).then(n0)},apply(_,C,v){B0(e);const c=P[P.length-1];if(c===J)return s0(p,{type:"ENDPOINT"}).then(n0);if(c==="bind")return E0(p,P.slice(0,-1));const[r,t]=O0(v);return s0(p,{type:"APPLY",path:P.map(d=>d.toString()),argumentList:r},t).then(n0)},construct(_,C){B0(e);const[v,c]=O0(C);return s0(p,{type:"CONSTRUCT",path:P.map(r=>r.toString()),argumentList:v},c).then(n0)}});return g}function Ar(p){return Array.prototype.concat.apply([],p)}function O0(p){const P=p.map(z0);return[P.map(l=>l[0]),Ar(P.map(l=>l[1]))]}const U0=new WeakMap;function Sr(p,P){return U0.set(p,P),p}function Er(p){return Object.assign(p,{[r0]:!0})}function z0(p){for(const[P,l]of T0)if(l.canHandle(p)){const[e,g]=l.serialize(p);return[{type:"HANDLER",name:P,value:e},g]}return[{type:"RAW",value:p},U0.get(p)||[]]}function n0(p){switch(p.type){case"HANDLER":return T0.get(p.name).deserialize(p.value);case"RAW":return p.value}}function s0(p,P,l){return new Promise(e=>{const g=zr();p.addEventListener("message",function _(C){!C.data||!C.data.id||C.data.id!==g||(p.removeEventListener("message",_),e(C.data))}),p.start&&p.start(),p.postMessage(Object.assign({id:g},P),l)})}function zr(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}var L=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Dr(p){throw new Error('Could not dynamically require "'+p+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var c0={exports:{}},O={exports:{}};(function(p,P){(function(l,e){p.exports=e()})(L,function(){var l=l||function(e,g){var _;if(typeof window!="undefined"&&window.crypto&&(_=window.crypto),typeof self!="undefined"&&self.crypto&&(_=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(_=globalThis.crypto),!_&&typeof window!="undefined"&&window.msCrypto&&(_=window.msCrypto),!_&&typeof L!="undefined"&&L.crypto&&(_=L.crypto),!_&&typeof Dr=="function")try{_=require("crypto")}catch{}var C=function(){if(_){if(typeof _.getRandomValues=="function")try{return _.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof _.randomBytes=="function")try{return _.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},v=Object.create||function(){function x(){}return function(i){var f;return x.prototype=i,f=new x,x.prototype=null,f}}(),c={},r=c.lib={},t=r.Base=function(){return{extend:function(x){var i=v(this);return x&&i.mixIn(x),(!i.hasOwnProperty("init")||this.init===i.init)&&(i.init=function(){i.$super.init.apply(this,arguments)}),i.init.prototype=i,i.$super=this,i},create:function(){var x=this.extend();return x.init.apply(x,arguments),x},init:function(){},mixIn:function(x){for(var i in x)x.hasOwnProperty(i)&&(this[i]=x[i]);x.hasOwnProperty("toString")&&(this.toString=x.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),d=r.WordArray=t.extend({init:function(x,i){x=this.words=x||[],i!=g?this.sigBytes=i:this.sigBytes=x.length*4},toString:function(x){return(x||o).stringify(this)},concat:function(x){var i=this.words,f=x.words,B=this.sigBytes,k=x.sigBytes;if(this.clamp(),B%4)for(var w=0;w>>2]>>>24-w%4*8&255;i[B+w>>>2]|=H<<24-(B+w)%4*8}else for(var R=0;R>>2]=f[R>>>2];return this.sigBytes+=k,this},clamp:function(){var x=this.words,i=this.sigBytes;x[i>>>2]&=4294967295<<32-i%4*8,x.length=e.ceil(i/4)},clone:function(){var x=t.clone.call(this);return x.words=this.words.slice(0),x},random:function(x){for(var i=[],f=0;f>>2]>>>24-k%4*8&255;B.push((w>>>4).toString(16)),B.push((w&15).toString(16))}return B.join("")},parse:function(x){for(var i=x.length,f=[],B=0;B>>3]|=parseInt(x.substr(B,2),16)<<24-B%8*4;return new d.init(f,i/2)}},n=a.Latin1={stringify:function(x){for(var i=x.words,f=x.sigBytes,B=[],k=0;k>>2]>>>24-k%4*8&255;B.push(String.fromCharCode(w))}return B.join("")},parse:function(x){for(var i=x.length,f=[],B=0;B>>2]|=(x.charCodeAt(B)&255)<<24-B%4*8;return new d.init(f,i)}},s=a.Utf8={stringify:function(x){try{return decodeURIComponent(escape(n.stringify(x)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(x){return n.parse(unescape(encodeURIComponent(x)))}},h=r.BufferedBlockAlgorithm=t.extend({reset:function(){this._data=new d.init,this._nDataBytes=0},_append:function(x){typeof x=="string"&&(x=s.parse(x)),this._data.concat(x),this._nDataBytes+=x.sigBytes},_process:function(x){var i,f=this._data,B=f.words,k=f.sigBytes,w=this.blockSize,H=w*4,R=k/H;x?R=e.ceil(R):R=e.max((R|0)-this._minBufferSize,0);var u=R*w,b=e.min(u*4,k);if(u){for(var A=0;A>>2]|=c[d]<<24-d%4*8;C.call(this,t,r)}else C.apply(this,arguments)};v.prototype=_}}(),l.lib.WordArray})})(I0);var K0={exports:{}};(function(p,P){(function(l,e){p.exports=e(O.exports)})(L,function(l){return function(){var e=l,g=e.lib,_=g.WordArray,C=e.enc;C.Utf16=C.Utf16BE={stringify:function(c){for(var r=c.words,t=c.sigBytes,d=[],a=0;a>>2]>>>16-a%4*8&65535;d.push(String.fromCharCode(o))}return d.join("")},parse:function(c){for(var r=c.length,t=[],d=0;d>>1]|=c.charCodeAt(d)<<16-d%2*16;return _.create(t,r*2)}},C.Utf16LE={stringify:function(c){for(var r=c.words,t=c.sigBytes,d=[],a=0;a>>2]>>>16-a%4*8&65535);d.push(String.fromCharCode(o))}return d.join("")},parse:function(c){for(var r=c.length,t=[],d=0;d>>1]|=v(c.charCodeAt(d)<<16-d%2*16);return _.create(t,r*2)}};function v(c){return c<<8&4278255360|c>>>8&16711935}}(),l.enc.Utf16})})(K0);var o0={exports:{}};(function(p,P){(function(l,e){p.exports=e(O.exports)})(L,function(l){return function(){var e=l,g=e.lib,_=g.WordArray,C=e.enc;C.Base64={stringify:function(c){var r=c.words,t=c.sigBytes,d=this._map;c.clamp();for(var a=[],o=0;o>>2]>>>24-o%4*8&255,s=r[o+1>>>2]>>>24-(o+1)%4*8&255,h=r[o+2>>>2]>>>24-(o+2)%4*8&255,y=n<<16|s<<8|h,x=0;x<4&&o+x*.75>>6*(3-x)&63));var i=d.charAt(64);if(i)for(;a.length%4;)a.push(i);return a.join("")},parse:function(c){var r=c.length,t=this._map,d=this._reverseMap;if(!d){d=this._reverseMap=[];for(var a=0;a>>6-o%4*2,h=n|s;d[a>>>2]|=h<<24-a%4*8,a++}return _.create(d,a)}}(),l.enc.Base64})})(o0);var X0={exports:{}};(function(p,P){(function(l,e){p.exports=e(O.exports)})(L,function(l){return function(){var e=l,g=e.lib,_=g.WordArray,C=e.enc;C.Base64url={stringify:function(c,r=!0){var t=c.words,d=c.sigBytes,a=r?this._safe_map:this._map;c.clamp();for(var o=[],n=0;n>>2]>>>24-n%4*8&255,h=t[n+1>>>2]>>>24-(n+1)%4*8&255,y=t[n+2>>>2]>>>24-(n+2)%4*8&255,x=s<<16|h<<8|y,i=0;i<4&&n+i*.75>>6*(3-i)&63));var f=a.charAt(64);if(f)for(;o.length%4;)o.push(f);return o.join("")},parse:function(c,r=!0){var t=c.length,d=r?this._safe_map:this._map,a=this._reverseMap;if(!a){a=this._reverseMap=[];for(var o=0;o>>6-o%4*2,h=n|s;d[a>>>2]|=h<<24-a%4*8,a++}return _.create(d,a)}}(),l.enc.Base64url})})(X0);var i0={exports:{}};(function(p,P){(function(l,e){p.exports=e(O.exports)})(L,function(l){return function(e){var g=l,_=g.lib,C=_.WordArray,v=_.Hasher,c=g.algo,r=[];(function(){for(var s=0;s<64;s++)r[s]=e.abs(e.sin(s+1))*4294967296|0})();var t=c.MD5=v.extend({_doReset:function(){this._hash=new C.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(s,h){for(var y=0;y<16;y++){var x=h+y,i=s[x];s[x]=(i<<8|i>>>24)&16711935|(i<<24|i>>>8)&4278255360}var f=this._hash.words,B=s[h+0],k=s[h+1],w=s[h+2],H=s[h+3],R=s[h+4],u=s[h+5],b=s[h+6],A=s[h+7],E=s[h+8],W=s[h+9],F=s[h+10],N=s[h+11],G=s[h+12],U=s[h+13],K=s[h+14],I=s[h+15],m=f[0],z=f[1],D=f[2],S=f[3];m=d(m,z,D,S,B,7,r[0]),S=d(S,m,z,D,k,12,r[1]),D=d(D,S,m,z,w,17,r[2]),z=d(z,D,S,m,H,22,r[3]),m=d(m,z,D,S,R,7,r[4]),S=d(S,m,z,D,u,12,r[5]),D=d(D,S,m,z,b,17,r[6]),z=d(z,D,S,m,A,22,r[7]),m=d(m,z,D,S,E,7,r[8]),S=d(S,m,z,D,W,12,r[9]),D=d(D,S,m,z,F,17,r[10]),z=d(z,D,S,m,N,22,r[11]),m=d(m,z,D,S,G,7,r[12]),S=d(S,m,z,D,U,12,r[13]),D=d(D,S,m,z,K,17,r[14]),z=d(z,D,S,m,I,22,r[15]),m=a(m,z,D,S,k,5,r[16]),S=a(S,m,z,D,b,9,r[17]),D=a(D,S,m,z,N,14,r[18]),z=a(z,D,S,m,B,20,r[19]),m=a(m,z,D,S,u,5,r[20]),S=a(S,m,z,D,F,9,r[21]),D=a(D,S,m,z,I,14,r[22]),z=a(z,D,S,m,R,20,r[23]),m=a(m,z,D,S,W,5,r[24]),S=a(S,m,z,D,K,9,r[25]),D=a(D,S,m,z,H,14,r[26]),z=a(z,D,S,m,E,20,r[27]),m=a(m,z,D,S,U,5,r[28]),S=a(S,m,z,D,w,9,r[29]),D=a(D,S,m,z,A,14,r[30]),z=a(z,D,S,m,G,20,r[31]),m=o(m,z,D,S,u,4,r[32]),S=o(S,m,z,D,E,11,r[33]),D=o(D,S,m,z,N,16,r[34]),z=o(z,D,S,m,K,23,r[35]),m=o(m,z,D,S,k,4,r[36]),S=o(S,m,z,D,R,11,r[37]),D=o(D,S,m,z,A,16,r[38]),z=o(z,D,S,m,F,23,r[39]),m=o(m,z,D,S,U,4,r[40]),S=o(S,m,z,D,B,11,r[41]),D=o(D,S,m,z,H,16,r[42]),z=o(z,D,S,m,b,23,r[43]),m=o(m,z,D,S,W,4,r[44]),S=o(S,m,z,D,G,11,r[45]),D=o(D,S,m,z,I,16,r[46]),z=o(z,D,S,m,w,23,r[47]),m=n(m,z,D,S,B,6,r[48]),S=n(S,m,z,D,A,10,r[49]),D=n(D,S,m,z,K,15,r[50]),z=n(z,D,S,m,u,21,r[51]),m=n(m,z,D,S,G,6,r[52]),S=n(S,m,z,D,H,10,r[53]),D=n(D,S,m,z,F,15,r[54]),z=n(z,D,S,m,k,21,r[55]),m=n(m,z,D,S,E,6,r[56]),S=n(S,m,z,D,I,10,r[57]),D=n(D,S,m,z,b,15,r[58]),z=n(z,D,S,m,U,21,r[59]),m=n(m,z,D,S,R,6,r[60]),S=n(S,m,z,D,N,10,r[61]),D=n(D,S,m,z,w,15,r[62]),z=n(z,D,S,m,W,21,r[63]),f[0]=f[0]+m|0,f[1]=f[1]+z|0,f[2]=f[2]+D|0,f[3]=f[3]+S|0},_doFinalize:function(){var s=this._data,h=s.words,y=this._nDataBytes*8,x=s.sigBytes*8;h[x>>>5]|=128<<24-x%32;var i=e.floor(y/4294967296),f=y;h[(x+64>>>9<<4)+15]=(i<<8|i>>>24)&16711935|(i<<24|i>>>8)&4278255360,h[(x+64>>>9<<4)+14]=(f<<8|f>>>24)&16711935|(f<<24|f>>>8)&4278255360,s.sigBytes=(h.length+1)*4,this._process();for(var B=this._hash,k=B.words,w=0;w<4;w++){var H=k[w];k[w]=(H<<8|H>>>24)&16711935|(H<<24|H>>>8)&4278255360}return B},clone:function(){var s=v.clone.call(this);return s._hash=this._hash.clone(),s}});function d(s,h,y,x,i,f,B){var k=s+(h&y|~h&x)+i+B;return(k<>>32-f)+h}function a(s,h,y,x,i,f,B){var k=s+(h&x|y&~x)+i+B;return(k<>>32-f)+h}function o(s,h,y,x,i,f,B){var k=s+(h^y^x)+i+B;return(k<>>32-f)+h}function n(s,h,y,x,i,f,B){var k=s+(y^(h|~x))+i+B;return(k<>>32-f)+h}g.MD5=v._createHelper(t),g.HmacMD5=v._createHmacHelper(t)}(Math),l.MD5})})(i0);var k0={exports:{}};(function(p,P){(function(l,e){p.exports=e(O.exports)})(L,function(l){return function(){var e=l,g=e.lib,_=g.WordArray,C=g.Hasher,v=e.algo,c=[],r=v.SHA1=C.extend({_doReset:function(){this._hash=new _.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,d){for(var a=this._hash.words,o=a[0],n=a[1],s=a[2],h=a[3],y=a[4],x=0;x<80;x++){if(x<16)c[x]=t[d+x]|0;else{var i=c[x-3]^c[x-8]^c[x-14]^c[x-16];c[x]=i<<1|i>>>31}var f=(o<<5|o>>>27)+y+c[x];x<20?f+=(n&s|~n&h)+1518500249:x<40?f+=(n^s^h)+1859775393:x<60?f+=(n&s|n&h|s&h)-1894007588:f+=(n^s^h)-899497514,y=h,h=s,s=n<<30|n>>>2,n=o,o=f}a[0]=a[0]+o|0,a[1]=a[1]+n|0,a[2]=a[2]+s|0,a[3]=a[3]+h|0,a[4]=a[4]+y|0},_doFinalize:function(){var t=this._data,d=t.words,a=this._nDataBytes*8,o=t.sigBytes*8;return d[o>>>5]|=128<<24-o%32,d[(o+64>>>9<<4)+14]=Math.floor(a/4294967296),d[(o+64>>>9<<4)+15]=a,t.sigBytes=d.length*4,this._process(),this._hash},clone:function(){var t=C.clone.call(this);return t._hash=this._hash.clone(),t}});e.SHA1=C._createHelper(r),e.HmacSHA1=C._createHmacHelper(r)}(),l.SHA1})})(k0);var D0={exports:{}};(function(p,P){(function(l,e){p.exports=e(O.exports)})(L,function(l){return function(e){var g=l,_=g.lib,C=_.WordArray,v=_.Hasher,c=g.algo,r=[],t=[];(function(){function o(y){for(var x=e.sqrt(y),i=2;i<=x;i++)if(!(y%i))return!1;return!0}function n(y){return(y-(y|0))*4294967296|0}for(var s=2,h=0;h<64;)o(s)&&(h<8&&(r[h]=n(e.pow(s,1/2))),t[h]=n(e.pow(s,1/3)),h++),s++})();var d=[],a=c.SHA256=v.extend({_doReset:function(){this._hash=new C.init(r.slice(0))},_doProcessBlock:function(o,n){for(var s=this._hash.words,h=s[0],y=s[1],x=s[2],i=s[3],f=s[4],B=s[5],k=s[6],w=s[7],H=0;H<64;H++){if(H<16)d[H]=o[n+H]|0;else{var R=d[H-15],u=(R<<25|R>>>7)^(R<<14|R>>>18)^R>>>3,b=d[H-2],A=(b<<15|b>>>17)^(b<<13|b>>>19)^b>>>10;d[H]=u+d[H-7]+A+d[H-16]}var E=f&B^~f&k,W=h&y^h&x^y&x,F=(h<<30|h>>>2)^(h<<19|h>>>13)^(h<<10|h>>>22),N=(f<<26|f>>>6)^(f<<21|f>>>11)^(f<<7|f>>>25),G=w+N+E+t[H]+d[H],U=F+W;w=k,k=B,B=f,f=i+G|0,i=x,x=y,y=h,h=G+U|0}s[0]=s[0]+h|0,s[1]=s[1]+y|0,s[2]=s[2]+x|0,s[3]=s[3]+i|0,s[4]=s[4]+f|0,s[5]=s[5]+B|0,s[6]=s[6]+k|0,s[7]=s[7]+w|0},_doFinalize:function(){var o=this._data,n=o.words,s=this._nDataBytes*8,h=o.sigBytes*8;return n[h>>>5]|=128<<24-h%32,n[(h+64>>>9<<4)+14]=e.floor(s/4294967296),n[(h+64>>>9<<4)+15]=s,o.sigBytes=n.length*4,this._process(),this._hash},clone:function(){var o=v.clone.call(this);return o._hash=this._hash.clone(),o}});g.SHA256=v._createHelper(a),g.HmacSHA256=v._createHmacHelper(a)}(Math),l.SHA256})})(D0);var G0={exports:{}};(function(p,P){(function(l,e,g){p.exports=e(O.exports,D0.exports)})(L,function(l){return function(){var e=l,g=e.lib,_=g.WordArray,C=e.algo,v=C.SHA256,c=C.SHA224=v.extend({_doReset:function(){this._hash=new _.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var r=v._doFinalize.call(this);return r.sigBytes-=4,r}});e.SHA224=v._createHelper(c),e.HmacSHA224=v._createHmacHelper(c)}(),l.SHA224})})(G0);var R0={exports:{}};(function(p,P){(function(l,e,g){p.exports=e(O.exports,l0.exports)})(L,function(l){return function(){var e=l,g=e.lib,_=g.Hasher,C=e.x64,v=C.Word,c=C.WordArray,r=e.algo;function t(){return v.create.apply(v,arguments)}var d=[t(1116352408,3609767458),t(1899447441,602891725),t(3049323471,3964484399),t(3921009573,2173295548),t(961987163,4081628472),t(1508970993,3053834265),t(2453635748,2937671579),t(2870763221,3664609560),t(3624381080,2734883394),t(310598401,1164996542),t(607225278,1323610764),t(1426881987,3590304994),t(1925078388,4068182383),t(2162078206,991336113),t(2614888103,633803317),t(3248222580,3479774868),t(3835390401,2666613458),t(4022224774,944711139),t(264347078,2341262773),t(604807628,2007800933),t(770255983,1495990901),t(1249150122,1856431235),t(1555081692,3175218132),t(1996064986,2198950837),t(2554220882,3999719339),t(2821834349,766784016),t(2952996808,2566594879),t(3210313671,3203337956),t(3336571891,1034457026),t(3584528711,2466948901),t(113926993,3758326383),t(338241895,168717936),t(666307205,1188179964),t(773529912,1546045734),t(1294757372,1522805485),t(1396182291,2643833823),t(1695183700,2343527390),t(1986661051,1014477480),t(2177026350,1206759142),t(2456956037,344077627),t(2730485921,1290863460),t(2820302411,3158454273),t(3259730800,3505952657),t(3345764771,106217008),t(3516065817,3606008344),t(3600352804,1432725776),t(4094571909,1467031594),t(275423344,851169720),t(430227734,3100823752),t(506948616,1363258195),t(659060556,3750685593),t(883997877,3785050280),t(958139571,3318307427),t(1322822218,3812723403),t(1537002063,2003034995),t(1747873779,3602036899),t(1955562222,1575990012),t(2024104815,1125592928),t(2227730452,2716904306),t(2361852424,442776044),t(2428436474,593698344),t(2756734187,3733110249),t(3204031479,2999351573),t(3329325298,3815920427),t(3391569614,3928383900),t(3515267271,566280711),t(3940187606,3454069534),t(4118630271,4000239992),t(116418474,1914138554),t(174292421,2731055270),t(289380356,3203993006),t(460393269,320620315),t(685471733,587496836),t(852142971,1086792851),t(1017036298,365543100),t(1126000580,2618297676),t(1288033470,3409855158),t(1501505948,4234509866),t(1607167915,987167468),t(1816402316,1246189591)],a=[];(function(){for(var n=0;n<80;n++)a[n]=t()})();var o=r.SHA512=_.extend({_doReset:function(){this._hash=new c.init([new v.init(1779033703,4089235720),new v.init(3144134277,2227873595),new v.init(1013904242,4271175723),new v.init(2773480762,1595750129),new v.init(1359893119,2917565137),new v.init(2600822924,725511199),new v.init(528734635,4215389547),new v.init(1541459225,327033209)])},_doProcessBlock:function(n,s){for(var h=this._hash.words,y=h[0],x=h[1],i=h[2],f=h[3],B=h[4],k=h[5],w=h[6],H=h[7],R=y.high,u=y.low,b=x.high,A=x.low,E=i.high,W=i.low,F=f.high,N=f.low,G=B.high,U=B.low,K=k.high,I=k.low,m=w.high,z=w.low,D=H.high,S=H.low,q=R,X=u,M=b,T=A,h0=E,f0=W,P0=F,u0=N,V=G,Y=U,w0=K,p0=I,H0=m,_0=z,W0=D,g0=S,j=0;j<80;j++){var $,t0,m0=a[j];if(j<16)t0=m0.high=n[s+j*2]|0,$=m0.low=n[s+j*2+1]|0;else{var vr=a[j-15],v0=vr.high,b0=vr.low,Fr=(v0>>>1|b0<<31)^(v0>>>8|b0<<24)^v0>>>7,dr=(b0>>>1|v0<<31)^(b0>>>8|v0<<24)^(b0>>>7|v0<<25),lr=a[j-2],d0=lr.high,y0=lr.low,Lr=(d0>>>19|y0<<13)^(d0<<3|y0>>>29)^d0>>>6,hr=(y0>>>19|d0<<13)^(y0<<3|d0>>>29)^(y0>>>6|d0<<26),ur=a[j-7],Tr=ur.high,Nr=ur.low,pr=a[j-16],Or=pr.high,_r=pr.low;$=dr+Nr,t0=Fr+Tr+($>>>0>>0?1:0),$=$+hr,t0=t0+Lr+($>>>0
>>0?1:0),$=$+_r,t0=t0+Or+($>>>0<_r>>>0?1:0),m0.high=t0,m0.low=$}var Ur=V&w0^~V&H0,gr=Y&p0^~Y&_0,Ir=q&M^q&h0^M&h0,Kr=X&T^X&f0^T&f0,Xr=(q>>>28|X<<4)^(q<<30|X>>>2)^(q<<25|X>>>7),br=(X>>>28|q<<4)^(X<<30|q>>>2)^(X<<25|q>>>7),Gr=(V>>>14|Y<<18)^(V>>>18|Y<<14)^(V<<23|Y>>>9),qr=(Y>>>14|V<<18)^(Y>>>18|V<<14)^(Y<<23|V>>>9),yr=d[j],Zr=yr.high,Br=yr.low,Q=g0+qr,a0=W0+Gr+(Q>>>0>>0?1:0),Q=Q+gr,a0=a0+Ur+(Q>>>0>>0?1:0),Q=Q+Br,a0=a0+Zr+(Q>>>0
>>0?1:0),Q=Q+$,a0=a0+t0+(Q>>>0<$>>>0?1:0),kr=br+Kr,Mr=Xr+Ir+(kr>>>0
>>0?1:0);W0=H0,g0=_0,H0=w0,_0=p0,w0=V,p0=Y,Y=u0+Q|0,V=P0+a0+(Y>>>0>>0?1:0)|0,P0=h0,u0=f0,h0=M,f0=T,M=q,T=X,X=Q+kr|0,q=a0+Mr+(X>>>0>>0?1:0)|0}u=y.low=u+X,y.high=R+q+(u>>>0>>0?1:0),A=x.low=A+T,x.high=b+M+(A>>>0>>0?1:0),W=i.low=W+f0,i.high=E+h0+(W>>>0>>0?1:0),N=f.low=N+u0,f.high=F+P0+(N>>>0>>0?1:0),U=B.low=U+Y,B.high=G+V+(U>>>0>>0?1:0),I=k.low=I+p0,k.high=K+w0+(I>>>0>>0?1:0),z=w.low=z+_0,w.high=m+H0+(z>>>0<_0>>>0?1:0),S=H.low=S+g0,H.high=D+W0+(S>>>0>>0?1:0)},_doFinalize:function(){var n=this._data,s=n.words,h=this._nDataBytes*8,y=n.sigBytes*8;s[y>>>5]|=128<<24-y%32,s[(y+128>>>10<<5)+30]=Math.floor(h/4294967296),s[(y+128>>>10<<5)+31]=h,n.sigBytes=s.length*4,this._process();var x=this._hash.toX32();return x},clone:function(){var n=_.clone.call(this);return n._hash=this._hash.clone(),n},blockSize:1024/32});e.SHA512=_._createHelper(o),e.HmacSHA512=_._createHmacHelper(o)}(),l.SHA512})})(R0);var q0={exports:{}};(function(p,P){(function(l,e,g){p.exports=e(O.exports,l0.exports,R0.exports)})(L,function(l){return function(){var e=l,g=e.x64,_=g.Word,C=g.WordArray,v=e.algo,c=v.SHA512,r=v.SHA384=c.extend({_doReset:function(){this._hash=new C.init([new _.init(3418070365,3238371032),new _.init(1654270250,914150663),new _.init(2438529370,812702999),new _.init(355462360,4144912697),new _.init(1731405415,4290775857),new _.init(2394180231,1750603025),new _.init(3675008525,1694076839),new _.init(1203062813,3204075428)])},_doFinalize:function(){var t=c._doFinalize.call(this);return t.sigBytes-=16,t}});e.SHA384=c._createHelper(r),e.HmacSHA384=c._createHmacHelper(r)}(),l.SHA384})})(q0);var Z0={exports:{}};(function(p,P){(function(l,e,g){p.exports=e(O.exports,l0.exports)})(L,function(l){return function(e){var g=l,_=g.lib,C=_.WordArray,v=_.Hasher,c=g.x64,r=c.Word,t=g.algo,d=[],a=[],o=[];(function(){for(var h=1,y=0,x=0;x<24;x++){d[h+5*y]=(x+1)*(x+2)/2%64;var i=y%5,f=(2*h+3*y)%5;h=i,y=f}for(var h=0;h<5;h++)for(var y=0;y<5;y++)a[h+5*y]=y+(2*h+3*y)%5*5;for(var B=1,k=0;k<24;k++){for(var w=0,H=0,R=0;R<7;R++){if(B&1){var u=(1<>>24)&16711935|(B<<24|B>>>8)&4278255360,k=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360;var w=x[f];w.high^=k,w.low^=B}for(var H=0;H<24;H++){for(var R=0;R<5;R++){for(var u=0,b=0,A=0;A<5;A++){var w=x[R+5*A];u^=w.high,b^=w.low}var E=n[R];E.high=u,E.low=b}for(var R=0;R<5;R++)for(var W=n[(R+4)%5],F=n[(R+1)%5],N=F.high,G=F.low,u=W.high^(N<<1|G>>>31),b=W.low^(G<<1|N>>>31),A=0;A<5;A++){var w=x[R+5*A];w.high^=u,w.low^=b}for(var U=1;U<25;U++){var u,b,w=x[U],K=w.high,I=w.low,m=d[U];m<32?(u=K<>>32-m,b=I<>>32-m):(u=I<>>64-m,b=K<>>64-m);var z=n[a[U]];z.high=u,z.low=b}var D=n[0],S=x[0];D.high=S.high,D.low=S.low;for(var R=0;R<5;R++)for(var A=0;A<5;A++){var U=R+5*A,w=x[U],q=n[U],X=n[(R+1)%5+5*A],M=n[(R+2)%5+5*A];w.high=q.high^~X.high&M.high,w.low=q.low^~X.low&M.low}var w=x[0],T=o[H];w.high^=T.high,w.low^=T.low}},_doFinalize:function(){var h=this._data,y=h.words;this._nDataBytes*8;var x=h.sigBytes*8,i=this.blockSize*32;y[x>>>5]|=1<<24-x%32,y[(e.ceil((x+1)/i)*i>>>5)-1]|=128,h.sigBytes=y.length*4,this._process();for(var f=this._state,B=this.cfg.outputLength/8,k=B/8,w=[],H=0;H>>24)&16711935|(u<<24|u>>>8)&4278255360,b=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,w.push(b),w.push(u)}return new C.init(w,B)},clone:function(){for(var h=v.clone.call(this),y=h._state=this._state.slice(0),x=0;x<25;x++)y[x]=y[x].clone();return h}});g.SHA3=v._createHelper(s),g.HmacSHA3=v._createHmacHelper(s)}(Math),l.SHA3})})(Z0);var M0={exports:{}};(function(p,P){(function(l,e){p.exports=e(O.exports)})(L,function(l){/** @preserve + (c) 2012 by Cédric Mesnil. All rights reserved. + + Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + + - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */return function(e){var g=l,_=g.lib,C=_.WordArray,v=_.Hasher,c=g.algo,r=C.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),t=C.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),d=C.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),a=C.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),o=C.create([0,1518500249,1859775393,2400959708,2840853838]),n=C.create([1352829926,1548603684,1836072691,2053994217,0]),s=c.RIPEMD160=v.extend({_doReset:function(){this._hash=C.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(k,w){for(var H=0;H<16;H++){var R=w+H,u=k[R];k[R]=(u<<8|u>>>24)&16711935|(u<<24|u>>>8)&4278255360}var b=this._hash.words,A=o.words,E=n.words,W=r.words,F=t.words,N=d.words,G=a.words,U,K,I,m,z,D,S,q,X,M;D=U=b[0],S=K=b[1],q=I=b[2],X=m=b[3],M=z=b[4];for(var T,H=0;H<80;H+=1)T=U+k[w+W[H]]|0,H<16?T+=h(K,I,m)+A[0]:H<32?T+=y(K,I,m)+A[1]:H<48?T+=x(K,I,m)+A[2]:H<64?T+=i(K,I,m)+A[3]:T+=f(K,I,m)+A[4],T=T|0,T=B(T,N[H]),T=T+z|0,U=z,z=m,m=B(I,10),I=K,K=T,T=D+k[w+F[H]]|0,H<16?T+=f(S,q,X)+E[0]:H<32?T+=i(S,q,X)+E[1]:H<48?T+=x(S,q,X)+E[2]:H<64?T+=y(S,q,X)+E[3]:T+=h(S,q,X)+E[4],T=T|0,T=B(T,G[H]),T=T+M|0,D=M,M=X,X=B(q,10),q=S,S=T;T=b[1]+I+X|0,b[1]=b[2]+m+M|0,b[2]=b[3]+z+D|0,b[3]=b[4]+U+S|0,b[4]=b[0]+K+q|0,b[0]=T},_doFinalize:function(){var k=this._data,w=k.words,H=this._nDataBytes*8,R=k.sigBytes*8;w[R>>>5]|=128<<24-R%32,w[(R+64>>>9<<4)+14]=(H<<8|H>>>24)&16711935|(H<<24|H>>>8)&4278255360,k.sigBytes=(w.length+1)*4,this._process();for(var u=this._hash,b=u.words,A=0;A<5;A++){var E=b[A];b[A]=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360}return u},clone:function(){var k=v.clone.call(this);return k._hash=this._hash.clone(),k}});function h(k,w,H){return k^w^H}function y(k,w,H){return k&w|~k&H}function x(k,w,H){return(k|~w)^H}function i(k,w,H){return k&H|w&~H}function f(k,w,H){return k^(w|~H)}function B(k,w){return k<>>32-w}g.RIPEMD160=v._createHelper(s),g.HmacRIPEMD160=v._createHmacHelper(s)}(),l.RIPEMD160})})(M0);var C0={exports:{}};(function(p,P){(function(l,e){p.exports=e(O.exports)})(L,function(l){(function(){var e=l,g=e.lib,_=g.Base,C=e.enc,v=C.Utf8,c=e.algo;c.HMAC=_.extend({init:function(r,t){r=this._hasher=new r.init,typeof t=="string"&&(t=v.parse(t));var d=r.blockSize,a=d*4;t.sigBytes>a&&(t=r.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),n=this._iKey=t.clone(),s=o.words,h=n.words,y=0;y>>2]&255;u.sigBytes-=b}};_.BlockCipher=o.extend({cfg:o.cfg.extend({mode:h,padding:x}),reset:function(){var u;o.reset.call(this);var b=this.cfg,A=b.iv,E=b.mode;this._xformMode==this._ENC_XFORM_MODE?u=E.createEncryptor:(u=E.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==u?this._mode.init(this,A&&A.words):(this._mode=u.call(E,this,A&&A.words),this._mode.__creator=u)},_doProcessBlock:function(u,b){this._mode.processBlock(u,b)},_doFinalize:function(){var u,b=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(b.pad(this._data,this.blockSize),u=this._process(!0)):(u=this._process(!0),b.unpad(u)),u},blockSize:128/32});var i=_.CipherParams=C.extend({init:function(u){this.mixIn(u)},toString:function(u){return(u||this.formatter).stringify(this)}}),f=g.format={},B=f.OpenSSL={stringify:function(u){var b,A=u.ciphertext,E=u.salt;return E?b=v.create([1398893684,1701076831]).concat(E).concat(A):b=A,b.toString(t)},parse:function(u){var b,A=t.parse(u),E=A.words;return E[0]==1398893684&&E[1]==1701076831&&(b=v.create(E.slice(2,4)),E.splice(0,4),A.sigBytes-=16),i.create({ciphertext:A,salt:b})}},k=_.SerializableCipher=C.extend({cfg:C.extend({format:B}),encrypt:function(u,b,A,E){E=this.cfg.extend(E);var W=u.createEncryptor(A,E),F=W.finalize(b),N=W.cfg;return i.create({ciphertext:F,key:A,iv:N.iv,algorithm:u,mode:N.mode,padding:N.padding,blockSize:u.blockSize,formatter:E.format})},decrypt:function(u,b,A,E){E=this.cfg.extend(E),b=this._parse(b,E.format);var W=u.createDecryptor(A,E).finalize(b.ciphertext);return W},_parse:function(u,b){return typeof u=="string"?b.parse(u,this):u}}),w=g.kdf={},H=w.OpenSSL={execute:function(u,b,A,E){E||(E=v.random(64/8));var W=a.create({keySize:b+A}).compute(u,E),F=v.create(W.words.slice(b),A*4);return W.sigBytes=b*4,i.create({key:W,iv:F,salt:E})}},R=_.PasswordBasedCipher=k.extend({cfg:k.cfg.extend({kdf:H}),encrypt:function(u,b,A,E){E=this.cfg.extend(E);var W=E.kdf.execute(A,u.keySize,u.ivSize);E.iv=W.iv;var F=k.encrypt.call(this,u,b,W.key,E);return F.mixIn(W),F},decrypt:function(u,b,A,E){E=this.cfg.extend(E),b=this._parse(b,E.format);var W=E.kdf.execute(A,u.keySize,u.ivSize,b.salt);E.iv=W.iv;var F=k.decrypt.call(this,u,b,W.key,E);return F}})}()})})(Z);var Q0={exports:{}};(function(p,P){(function(l,e,g){p.exports=e(O.exports,Z.exports)})(L,function(l){return l.mode.CFB=function(){var e=l.lib.BlockCipherMode.extend();e.Encryptor=e.extend({processBlock:function(_,C){var v=this._cipher,c=v.blockSize;g.call(this,_,C,c,v),this._prevBlock=_.slice(C,C+c)}}),e.Decryptor=e.extend({processBlock:function(_,C){var v=this._cipher,c=v.blockSize,r=_.slice(C,C+c);g.call(this,_,C,c,v),this._prevBlock=r}});function g(_,C,v,c){var r,t=this._iv;t?(r=t.slice(0),this._iv=void 0):r=this._prevBlock,c.encryptBlock(r,0);for(var d=0;d>24&255)==255){var c=v>>16&255,r=v>>8&255,t=v&255;c===255?(c=0,r===255?(r=0,t===255?t=0:++t):++r):++c,v=0,v+=c<<16,v+=r<<8,v+=t}else v+=1<<24;return v}function _(v){return(v[0]=g(v[0]))===0&&(v[1]=g(v[1])),v}var C=e.Encryptor=e.extend({processBlock:function(v,c){var r=this._cipher,t=r.blockSize,d=this._iv,a=this._counter;d&&(a=this._counter=d.slice(0),this._iv=void 0),_(a);var o=a.slice(0);r.encryptBlock(o,0);for(var n=0;n>>2]|=v<<24-c%4*8,e.sigBytes+=v},unpad:function(e){var g=e.words[e.sigBytes-1>>>2]&255;e.sigBytes-=g}},l.pad.Ansix923})})(rr);var er={exports:{}};(function(p,P){(function(l,e,g){p.exports=e(O.exports,Z.exports)})(L,function(l){return l.pad.Iso10126={pad:function(e,g){var _=g*4,C=_-e.sigBytes%_;e.concat(l.lib.WordArray.random(C-1)).concat(l.lib.WordArray.create([C<<24],1))},unpad:function(e){var g=e.words[e.sigBytes-1>>>2]&255;e.sigBytes-=g}},l.pad.Iso10126})})(er);var tr={exports:{}};(function(p,P){(function(l,e,g){p.exports=e(O.exports,Z.exports)})(L,function(l){return l.pad.Iso97971={pad:function(e,g){e.concat(l.lib.WordArray.create([2147483648],1)),l.pad.ZeroPadding.pad(e,g)},unpad:function(e){l.pad.ZeroPadding.unpad(e),e.sigBytes--}},l.pad.Iso97971})})(tr);var ar={exports:{}};(function(p,P){(function(l,e,g){p.exports=e(O.exports,Z.exports)})(L,function(l){return l.pad.ZeroPadding={pad:function(e,g){var _=g*4;e.clamp(),e.sigBytes+=_-(e.sigBytes%_||_)},unpad:function(e){for(var g=e.words,_=e.sigBytes-1,_=e.sigBytes-1;_>=0;_--)if(g[_>>>2]>>>24-_%4*8&255){e.sigBytes=_+1;break}}},l.pad.ZeroPadding})})(ar);var xr={exports:{}};(function(p,P){(function(l,e,g){p.exports=e(O.exports,Z.exports)})(L,function(l){return l.pad.NoPadding={pad:function(){},unpad:function(){}},l.pad.NoPadding})})(xr);var nr={exports:{}};(function(p,P){(function(l,e,g){p.exports=e(O.exports,Z.exports)})(L,function(l){return function(e){var g=l,_=g.lib,C=_.CipherParams,v=g.enc,c=v.Hex,r=g.format;r.Hex={stringify:function(t){return t.ciphertext.toString(c)},parse:function(t){var d=c.parse(t);return C.create({ciphertext:d})}}}(),l.format.Hex})})(nr);var or={exports:{}};(function(p,P){(function(l,e,g){p.exports=e(O.exports,o0.exports,i0.exports,e0.exports,Z.exports)})(L,function(l){return function(){var e=l,g=e.lib,_=g.BlockCipher,C=e.algo,v=[],c=[],r=[],t=[],d=[],a=[],o=[],n=[],s=[],h=[];(function(){for(var i=[],f=0;f<256;f++)f<128?i[f]=f<<1:i[f]=f<<1^283;for(var B=0,k=0,f=0;f<256;f++){var w=k^k<<1^k<<2^k<<3^k<<4;w=w>>>8^w&255^99,v[B]=w,c[w]=B;var H=i[B],R=i[H],u=i[R],b=i[w]*257^w*16843008;r[B]=b<<24|b>>>8,t[B]=b<<16|b>>>16,d[B]=b<<8|b>>>24,a[B]=b;var b=u*16843009^R*65537^H*257^B*16843008;o[w]=b<<24|b>>>8,n[w]=b<<16|b>>>16,s[w]=b<<8|b>>>24,h[w]=b,B?(B=H^i[i[i[u^H]]],k^=i[i[k]]):B=k=1}})();var y=[0,1,2,4,8,16,32,64,128,27,54],x=C.AES=_.extend({_doReset:function(){var i;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var f=this._keyPriorReset=this._key,B=f.words,k=f.sigBytes/4,w=this._nRounds=k+6,H=(w+1)*4,R=this._keySchedule=[],u=0;u6&&u%k==4&&(i=v[i>>>24]<<24|v[i>>>16&255]<<16|v[i>>>8&255]<<8|v[i&255]):(i=i<<8|i>>>24,i=v[i>>>24]<<24|v[i>>>16&255]<<16|v[i>>>8&255]<<8|v[i&255],i^=y[u/k|0]<<24),R[u]=R[u-k]^i);for(var b=this._invKeySchedule=[],A=0;A>>24]]^n[v[i>>>16&255]]^s[v[i>>>8&255]]^h[v[i&255]]}}},encryptBlock:function(i,f){this._doCryptBlock(i,f,this._keySchedule,r,t,d,a,v)},decryptBlock:function(i,f){var B=i[f+1];i[f+1]=i[f+3],i[f+3]=B,this._doCryptBlock(i,f,this._invKeySchedule,o,n,s,h,c);var B=i[f+1];i[f+1]=i[f+3],i[f+3]=B},_doCryptBlock:function(i,f,B,k,w,H,R,u){for(var b=this._nRounds,A=i[f]^B[0],E=i[f+1]^B[1],W=i[f+2]^B[2],F=i[f+3]^B[3],N=4,G=1;G>>24]^w[E>>>16&255]^H[W>>>8&255]^R[F&255]^B[N++],K=k[E>>>24]^w[W>>>16&255]^H[F>>>8&255]^R[A&255]^B[N++],I=k[W>>>24]^w[F>>>16&255]^H[A>>>8&255]^R[E&255]^B[N++],m=k[F>>>24]^w[A>>>16&255]^H[E>>>8&255]^R[W&255]^B[N++];A=U,E=K,W=I,F=m}var U=(u[A>>>24]<<24|u[E>>>16&255]<<16|u[W>>>8&255]<<8|u[F&255])^B[N++],K=(u[E>>>24]<<24|u[W>>>16&255]<<16|u[F>>>8&255]<<8|u[A&255])^B[N++],I=(u[W>>>24]<<24|u[F>>>16&255]<<16|u[A>>>8&255]<<8|u[E&255])^B[N++],m=(u[F>>>24]<<24|u[A>>>16&255]<<16|u[E>>>8&255]<<8|u[W&255])^B[N++];i[f]=U,i[f+1]=K,i[f+2]=I,i[f+3]=m},keySize:256/32});e.AES=_._createHelper(x)}(),l.AES})})(or);var ir={exports:{}};(function(p,P){(function(l,e,g){p.exports=e(O.exports,o0.exports,i0.exports,e0.exports,Z.exports)})(L,function(l){return function(){var e=l,g=e.lib,_=g.WordArray,C=g.BlockCipher,v=e.algo,c=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],r=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],t=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],d=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],a=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],o=v.DES=C.extend({_doReset:function(){for(var y=this._key,x=y.words,i=[],f=0;f<56;f++){var B=c[f]-1;i[f]=x[B>>>5]>>>31-B%32&1}for(var k=this._subKeys=[],w=0;w<16;w++){for(var H=k[w]=[],R=t[w],f=0;f<24;f++)H[f/6|0]|=i[(r[f]-1+R)%28]<<31-f%6,H[4+(f/6|0)]|=i[28+(r[f+24]-1+R)%28]<<31-f%6;H[0]=H[0]<<1|H[0]>>>31;for(var f=1;f<7;f++)H[f]=H[f]>>>(f-1)*4+3;H[7]=H[7]<<5|H[7]>>>27}for(var u=this._invSubKeys=[],f=0;f<16;f++)u[f]=k[15-f]},encryptBlock:function(y,x){this._doCryptBlock(y,x,this._subKeys)},decryptBlock:function(y,x){this._doCryptBlock(y,x,this._invSubKeys)},_doCryptBlock:function(y,x,i){this._lBlock=y[x],this._rBlock=y[x+1],n.call(this,4,252645135),n.call(this,16,65535),s.call(this,2,858993459),s.call(this,8,16711935),n.call(this,1,1431655765);for(var f=0;f<16;f++){for(var B=i[f],k=this._lBlock,w=this._rBlock,H=0,R=0;R<8;R++)H|=d[R][((w^B[R])&a[R])>>>0];this._lBlock=w,this._rBlock=k^H}var u=this._lBlock;this._lBlock=this._rBlock,this._rBlock=u,n.call(this,1,1431655765),s.call(this,8,16711935),s.call(this,2,858993459),n.call(this,16,65535),n.call(this,4,252645135),y[x]=this._lBlock,y[x+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function n(y,x){var i=(this._lBlock>>>y^this._rBlock)&x;this._rBlock^=i,this._lBlock^=i<>>y^this._lBlock)&x;this._lBlock^=i,this._rBlock^=i<192.");var i=x.slice(0,2),f=x.length<4?x.slice(0,2):x.slice(2,4),B=x.length<6?x.slice(0,2):x.slice(4,6);this._des1=o.createEncryptor(_.create(i)),this._des2=o.createEncryptor(_.create(f)),this._des3=o.createEncryptor(_.create(B))},encryptBlock:function(y,x){this._des1.encryptBlock(y,x),this._des2.decryptBlock(y,x),this._des3.encryptBlock(y,x)},decryptBlock:function(y,x){this._des3.decryptBlock(y,x),this._des2.encryptBlock(y,x),this._des1.decryptBlock(y,x)},keySize:192/32,ivSize:64/32,blockSize:64/32});e.TripleDES=C._createHelper(h)}(),l.TripleDES})})(ir);var sr={exports:{}};(function(p,P){(function(l,e,g){p.exports=e(O.exports,o0.exports,i0.exports,e0.exports,Z.exports)})(L,function(l){return function(){var e=l,g=e.lib,_=g.StreamCipher,C=e.algo,v=C.RC4=_.extend({_doReset:function(){for(var t=this._key,d=t.words,a=t.sigBytes,o=this._S=[],n=0;n<256;n++)o[n]=n;for(var n=0,s=0;n<256;n++){var h=n%a,y=d[h>>>2]>>>24-h%4*8&255;s=(s+o[n]+y)%256;var x=o[n];o[n]=o[s],o[s]=x}this._i=this._j=0},_doProcessBlock:function(t,d){t[d]^=c.call(this)},keySize:256/32,ivSize:0});function c(){for(var t=this._S,d=this._i,a=this._j,o=0,n=0;n<4;n++){d=(d+1)%256,a=(a+t[d])%256;var s=t[d];t[d]=t[a],t[a]=s,o|=t[(t[d]+t[a])%256]<<24-n*8}return this._i=d,this._j=a,o}e.RC4=_._createHelper(v);var r=C.RC4Drop=v.extend({cfg:v.cfg.extend({drop:192}),_doReset:function(){v._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)c.call(this)}});e.RC4Drop=_._createHelper(r)}(),l.RC4})})(sr);var cr={exports:{}};(function(p,P){(function(l,e,g){p.exports=e(O.exports,o0.exports,i0.exports,e0.exports,Z.exports)})(L,function(l){return function(){var e=l,g=e.lib,_=g.StreamCipher,C=e.algo,v=[],c=[],r=[],t=C.Rabbit=_.extend({_doReset:function(){for(var a=this._key.words,o=this.cfg.iv,n=0;n<4;n++)a[n]=(a[n]<<8|a[n]>>>24)&16711935|(a[n]<<24|a[n]>>>8)&4278255360;var s=this._X=[a[0],a[3]<<16|a[2]>>>16,a[1],a[0]<<16|a[3]>>>16,a[2],a[1]<<16|a[0]>>>16,a[3],a[2]<<16|a[1]>>>16],h=this._C=[a[2]<<16|a[2]>>>16,a[0]&4294901760|a[1]&65535,a[3]<<16|a[3]>>>16,a[1]&4294901760|a[2]&65535,a[0]<<16|a[0]>>>16,a[2]&4294901760|a[3]&65535,a[1]<<16|a[1]>>>16,a[3]&4294901760|a[0]&65535];this._b=0;for(var n=0;n<4;n++)d.call(this);for(var n=0;n<8;n++)h[n]^=s[n+4&7];if(o){var y=o.words,x=y[0],i=y[1],f=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,B=(i<<8|i>>>24)&16711935|(i<<24|i>>>8)&4278255360,k=f>>>16|B&4294901760,w=B<<16|f&65535;h[0]^=f,h[1]^=k,h[2]^=B,h[3]^=w,h[4]^=f,h[5]^=k,h[6]^=B,h[7]^=w;for(var n=0;n<4;n++)d.call(this)}},_doProcessBlock:function(a,o){var n=this._X;d.call(this),v[0]=n[0]^n[5]>>>16^n[3]<<16,v[1]=n[2]^n[7]>>>16^n[5]<<16,v[2]=n[4]^n[1]>>>16^n[7]<<16,v[3]=n[6]^n[3]>>>16^n[1]<<16;for(var s=0;s<4;s++)v[s]=(v[s]<<8|v[s]>>>24)&16711935|(v[s]<<24|v[s]>>>8)&4278255360,a[o+s]^=v[s]},blockSize:128/32,ivSize:64/32});function d(){for(var a=this._X,o=this._C,n=0;n<8;n++)c[n]=o[n];o[0]=o[0]+1295307597+this._b|0,o[1]=o[1]+3545052371+(o[0]>>>0>>0?1:0)|0,o[2]=o[2]+886263092+(o[1]>>>0>>0?1:0)|0,o[3]=o[3]+1295307597+(o[2]>>>0>>0?1:0)|0,o[4]=o[4]+3545052371+(o[3]>>>0>>0?1:0)|0,o[5]=o[5]+886263092+(o[4]>>>0>>0?1:0)|0,o[6]=o[6]+1295307597+(o[5]>>>0>>0?1:0)|0,o[7]=o[7]+3545052371+(o[6]>>>0>>0?1:0)|0,this._b=o[7]>>>0>>0?1:0;for(var n=0;n<8;n++){var s=a[n]+o[n],h=s&65535,y=s>>>16,x=((h*h>>>17)+h*y>>>15)+y*y,i=((s&4294901760)*s|0)+((s&65535)*s|0);r[n]=x^i}a[0]=r[0]+(r[7]<<16|r[7]>>>16)+(r[6]<<16|r[6]>>>16)|0,a[1]=r[1]+(r[0]<<8|r[0]>>>24)+r[7]|0,a[2]=r[2]+(r[1]<<16|r[1]>>>16)+(r[0]<<16|r[0]>>>16)|0,a[3]=r[3]+(r[2]<<8|r[2]>>>24)+r[1]|0,a[4]=r[4]+(r[3]<<16|r[3]>>>16)+(r[2]<<16|r[2]>>>16)|0,a[5]=r[5]+(r[4]<<8|r[4]>>>24)+r[3]|0,a[6]=r[6]+(r[5]<<16|r[5]>>>16)+(r[4]<<16|r[4]>>>16)|0,a[7]=r[7]+(r[6]<<8|r[6]>>>24)+r[5]|0}e.Rabbit=_._createHelper(t)}(),l.Rabbit})})(cr);var fr={exports:{}};(function(p,P){(function(l,e,g){p.exports=e(O.exports,o0.exports,i0.exports,e0.exports,Z.exports)})(L,function(l){return function(){var e=l,g=e.lib,_=g.StreamCipher,C=e.algo,v=[],c=[],r=[],t=C.RabbitLegacy=_.extend({_doReset:function(){var a=this._key.words,o=this.cfg.iv,n=this._X=[a[0],a[3]<<16|a[2]>>>16,a[1],a[0]<<16|a[3]>>>16,a[2],a[1]<<16|a[0]>>>16,a[3],a[2]<<16|a[1]>>>16],s=this._C=[a[2]<<16|a[2]>>>16,a[0]&4294901760|a[1]&65535,a[3]<<16|a[3]>>>16,a[1]&4294901760|a[2]&65535,a[0]<<16|a[0]>>>16,a[2]&4294901760|a[3]&65535,a[1]<<16|a[1]>>>16,a[3]&4294901760|a[0]&65535];this._b=0;for(var h=0;h<4;h++)d.call(this);for(var h=0;h<8;h++)s[h]^=n[h+4&7];if(o){var y=o.words,x=y[0],i=y[1],f=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,B=(i<<8|i>>>24)&16711935|(i<<24|i>>>8)&4278255360,k=f>>>16|B&4294901760,w=B<<16|f&65535;s[0]^=f,s[1]^=k,s[2]^=B,s[3]^=w,s[4]^=f,s[5]^=k,s[6]^=B,s[7]^=w;for(var h=0;h<4;h++)d.call(this)}},_doProcessBlock:function(a,o){var n=this._X;d.call(this),v[0]=n[0]^n[5]>>>16^n[3]<<16,v[1]=n[2]^n[7]>>>16^n[5]<<16,v[2]=n[4]^n[1]>>>16^n[7]<<16,v[3]=n[6]^n[3]>>>16^n[1]<<16;for(var s=0;s<4;s++)v[s]=(v[s]<<8|v[s]>>>24)&16711935|(v[s]<<24|v[s]>>>8)&4278255360,a[o+s]^=v[s]},blockSize:128/32,ivSize:64/32});function d(){for(var a=this._X,o=this._C,n=0;n<8;n++)c[n]=o[n];o[0]=o[0]+1295307597+this._b|0,o[1]=o[1]+3545052371+(o[0]>>>0>>0?1:0)|0,o[2]=o[2]+886263092+(o[1]>>>0>>0?1:0)|0,o[3]=o[3]+1295307597+(o[2]>>>0>>0?1:0)|0,o[4]=o[4]+3545052371+(o[3]>>>0>>0?1:0)|0,o[5]=o[5]+886263092+(o[4]>>>0>>0?1:0)|0,o[6]=o[6]+1295307597+(o[5]>>>0>>0?1:0)|0,o[7]=o[7]+3545052371+(o[6]>>>0>>0?1:0)|0,this._b=o[7]>>>0>>0?1:0;for(var n=0;n<8;n++){var s=a[n]+o[n],h=s&65535,y=s>>>16,x=((h*h>>>17)+h*y>>>15)+y*y,i=((s&4294901760)*s|0)+((s&65535)*s|0);r[n]=x^i}a[0]=r[0]+(r[7]<<16|r[7]>>>16)+(r[6]<<16|r[6]>>>16)|0,a[1]=r[1]+(r[0]<<8|r[0]>>>24)+r[7]|0,a[2]=r[2]+(r[1]<<16|r[1]>>>16)+(r[0]<<16|r[0]>>>16)|0,a[3]=r[3]+(r[2]<<8|r[2]>>>24)+r[1]|0,a[4]=r[4]+(r[3]<<16|r[3]>>>16)+(r[2]<<16|r[2]>>>16)|0,a[5]=r[5]+(r[4]<<8|r[4]>>>24)+r[3]|0,a[6]=r[6]+(r[5]<<16|r[5]>>>16)+(r[4]<<16|r[4]>>>16)|0,a[7]=r[7]+(r[6]<<8|r[6]>>>24)+r[5]|0}e.RabbitLegacy=_._createHelper(t)}(),l.RabbitLegacy})})(fr),function(p,P){(function(l,e,g){p.exports=e(O.exports,l0.exports,I0.exports,K0.exports,o0.exports,X0.exports,i0.exports,k0.exports,D0.exports,G0.exports,R0.exports,q0.exports,Z0.exports,M0.exports,C0.exports,Y0.exports,e0.exports,Z.exports,Q0.exports,$0.exports,V0.exports,j0.exports,J0.exports,rr.exports,er.exports,tr.exports,ar.exports,xr.exports,nr.exports,or.exports,ir.exports,sr.exports,cr.exports,fr.exports)})(L,function(l){return l})}(c0);function Rr(p){return p>=0&&p<=128<<20?256<<10:p>128<<20&&p<=256<<20?512<<10:p>256<<20&&p<=512<<20?1024<<10:2048<<10}class Pr{constructor(){F0(this,"gcid");F0(this,"gcidSHA1");this.gcid="",this.gcidSHA1=""}create(){this.gcid="",this.gcidSHA1=c0.exports.algo.SHA1.create()}calculate(P,l){const e=P.byteLength,g=e/l;for(let _=0;_{const e=new Pr;e.create();const g=new FileReader,_=Rr(p.size),C=100*1024*1024,v=Math.floor(C/_)*_;console.log(v,C);const c=Math.ceil(p.size/v);let r=0;g.onload=async()=>{if(e.calculate(g.result,_),r+=1,console.log(r,P),P&&typeof P=="function"&&P(r/c),r>=c){await e.finalize();const d=await e.gcid;close(),l(d)}else t()},t();function t(){let d=v*r,a=r>=c-1?p.size:v*(r+1),o=p.slice(d,a);g.readAsArrayBuffer(o)}})}S0(Wr)})();})(); diff --git a/assets/index.08e3cc88.js b/assets/index.08e3cc88.js new file mode 100644 index 000000000..ed5351e1e --- /dev/null +++ b/assets/index.08e3cc88.js @@ -0,0 +1 @@ +var ce=Object.defineProperty;var U=Object.getOwnPropertySymbols;var pe=Object.prototype.hasOwnProperty,de=Object.prototype.propertyIsEnumerable;var H=(e,t,o)=>t in e?ce(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,W=(e,t)=>{for(var o in t||(t={}))pe.call(t,o)&&H(e,o,t[o]);if(U)for(var o of U(t))de.call(t,o)&&H(e,o,t[o]);return e};import{d as N,u as me,r as f,o as K,a as Y,b as v,c as G,w as c,e as n,f as i,N as he,g as ge,h as _e,z as fe,i as ve,j as ke,k as Z,l as ye,m as Fe,n as Ee,p as we,q as xe,s as F,t as Be,v as De,x as be,y as k,A as C,B as Ae,C as Ne,D as A,E as m,F as q,G as Ce,H as Ie,I,L as Le,J as X,K as Pe,M as $e,O as Se,P as Oe,Q as Te,R as Re,S as je,T as Ve,U as Q,V as Me,W as ze,X as Je,Y as Ue,Z as He,_ as We,$ as Ke,a0 as Ye,a1 as Ge,a2 as Ze,a3 as qe}from"./vendor.64da71ad.js";const Xe=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))a(s);new MutationObserver(s=>{for(const r of s)if(r.type==="childList")for(const u of r.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&a(u)}).observe(document,{childList:!0,subtree:!0});function o(s){const r={};return s.integrity&&(r.integrity=s.integrity),s.referrerpolicy&&(r.referrerPolicy=s.referrerpolicy),s.crossorigin==="use-credentials"?r.credentials="include":s.crossorigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function a(s){if(s.ep)return;s.ep=!0;const r=o(s);fetch(s.href,r)}};Xe();const Qe=N({setup(e){return window.$message=me(),(t,o)=>null}}),et=["https://diii.tk","https://api-pikpak.tjsky.cf","https://api-pikpak.tjsky-1.cf","https://cf-api.xswd.cf","https://wkr.btstream.net","https://pikpak.520936.xyz","https://wkr.btstream.net","https://darazemon.xyz","https://pikpak.995579.xyz"],tt=N({setup(e){const t=f({common:{primaryColor:"#306eff",hoverColor:"#306eff",primaryColorHover:"#306eff",heightMedium:"42px"},Layout:{siderColor:"#f5f5f6"},Breadcrumb:{fontSize:"16px"},Dropdown:{optionTextColorHover:"#fff"},InternalSelectMenu:{optionTextColorActive:"#fff"},Upload:{itemColorHover:"#F3F3F5FF",itemTextColorSuccess:"#18A058FF"}});return K(()=>{localStorage.getItem("isSettingProxy")||localStorage.setItem("proxy",JSON.stringify(et))}),(o,a)=>{const s=Y("router-view");return v(),G(i(ke),{locale:i(fe),"date-locale":i(ve),"theme-overrides":t.value},{default:c(()=>[n(i(_e),null,{default:c(()=>[n(i(he),null,{default:c(()=>[n(i(ge),null,{default:c(()=>[n(Qe),n(s)]),_:1})]),_:1})]),_:1})]),_:1},8,["locale","date-locale","theme-overrides"])}}}),ot="modulepreload",ee={},st="/pikpak/",d=function(t,o){return!o||o.length===0?t():Promise.all(o.map(a=>{if(a=`${st}${a}`,a in ee)return;ee[a]=!0;const s=a.endsWith(".css"),r=s?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${a}"]${r}`))return;const u=document.createElement("link");if(u.rel=s?"stylesheet":ot,s||(u.as="script",u.crossOrigin=""),u.href=a,document.head.appendChild(u),s)return new Promise((D,g)=>{u.addEventListener("load",D),u.addEventListener("error",g)})})).then(()=>t())};var at="/pikpak/assets/logo1.08eb9157.png";const h=Z.create({});h.interceptors.request.use(e=>{var o;const t=JSON.parse(window.localStorage.getItem("pikpakLogin")||"{}");if(e.headers=e.headers||{},t.access_token&&(e.headers.Authorization=`${t.token_type||"Bearer"} ${t.access_token}`),((o=e.url)==null?void 0:o.indexOf("https://",4))===-1){const a=JSON.parse(window.localStorage.getItem("proxy")||"[]");if(a.length>0){const s=Math.floor(Math.random()*a.length);e.url=a[s]+"/"+e.url}}return e});let w=!1;h.interceptors.response.use(e=>e,e=>{var a;const{response:t,config:o}=e;if(t.status)switch(t.status){case 401:console.log(1);const s=window.localStorage.getItem("pikpakLoginData"),r=s?JSON.parse(s):{};return r.username&&r.password&&!w?(console.log("wait",o.url),w=!0,h.post("https://user.mypikpak.com/v1/auth/signin",W({captcha_token:"",client_id:"YNxT9w7GMdWvEOKa",client_secret:"dbw2OtmVEeuUvIptb1Coyg"},r)).then(u=>(u.data&&u.data.access_token&&window.localStorage.setItem("pikpakLogin",JSON.stringify(u.data)),w=!1,h(o))).catch(()=>(x.push("/login"),!1))):r.username&&r.password&&w?new Promise((u,D)=>{const g=setInterval(()=>{w||(clearInterval(g),u(h(o)))},100)}):(x.push("/login?redirect="+x.currentRoute.value.fullPath),Promise.reject(e));default:window.$message.error(((a=t==null?void 0:t.data)==null?void 0:a.error_description)||"\u51FA\u9519\u4E86");break}return console.log(o.url,111),Promise.reject(e)});const it=Z.create({});it.interceptors.request.use(e=>{e.headers={Authorization:"Bearer secret_FErDcv3kgsFNLiWUDOWYdJhNqOIKj55eteBg3vIoiLt","Notion-Version":"2021-08-16","Content-Type":"application/json"};const t=JSON.parse(window.localStorage.getItem("proxy")||"[]");if(t.length>0){const o=Math.floor(Math.random()*t.length);e.url=t[o]+"/"+e.url}return e});const te=function(e){if(isNaN(e))return"";let t=["bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],o=Math.floor(Math.log(e)/Math.log(2));o<1&&(o=0);let a=Math.floor(o/10);return e=e/Math.pow(2,10*a),e.toString().length>e.toFixed(2).toString().length&&(e=parseFloat(e.toFixed(2))),e+" "+t[a]};const nt=m("a",{href:"https://mypikpak.com/",target:"_blank",class:"logo-box"},[m("img",{src:"https://mypikpak.com/apple-touch-icon.png",class:"logo-box__icon",alt:""}),m("div",{class:"logo-box__text"},"PikPak")],-1),rt={key:0,class:"content-bottom"},ut=k("\u4F1A\u5458\u7801"),lt={style:{"margin-bottom":"0"}},ct=m("a",{style:{color:"#306eff"},target:"_blank",href:"https://www.tjsky.net/?p=220#i-21"},"\u6587\u4EF6\u5217\u8868\u5237\u4E0D\u51FA\u6765\uFF1F",-1),pt=k(" \u3010\u8BF7\u4F9D\u6B21\u70B9\u9009\uFF1A\u8BBE\u7F6E-\u4EE3\u7406\u8BBE\u7F6E-\u6062\u590D\u9ED8\u8BA4-\u4FDD\u5B58\u8BBE\u7F6E \u540E\u518D\u5237\u65B0\u8BD5\u8BD5\u3011 "),dt={class:"bottom-user-info"},mt={key:0,src:at,class:"user-info-avatar"},ht={key:1,src:"https://www.mypikpak.com/logo.png",class:"user-info-avatar"},gt={class:"user-info-name"},_t={key:0},ft={class:"action"},vt=k(" \u9000\u51FA\u767B\u5F55 "),kt=m("p",null,[m("a",null,[k("\u76EE\u524D\u4EF7\u683C\uFF1APikPak\u4F53\u9A8C\u4F1A\u5458\u5E74\u5361 188 \u5143\uFF0C\u6B63\u5F0F\u6708\u5361 32 \u5143\uFF0C\u6B63\u5F0F\u5E74\u5361 320 \u5143\uFF0C\u6B63\u5F0F\u4E09\u5E74\u5361 699 \u5143"),m("br"),k(" \u63D0\u9192\uFF1A\u4F53\u9A8C\u5361\u6BCF\u8D26\u53F7\u53EA\u80FD\u8D2D\u4E70\u4F7F\u7528\u4E00\u6B21,\u6B63\u5F0F\u5361\u53EF\u65E0\u9650\u53E0\u52A0\u3002")])],-1),yt=k("\u6DFB\u52A0"),Ft=N({setup(e){const t=f(!1),o=l=>()=>Q(I,null,{default:()=>Q(l)}),a=ye(),s=Fe(),r=f([{label:"\u6587\u4EF6",key:"list",icon:o(We)},{label:"\u89C6\u9891",key:"video",icon:o(Me)},{label:"\u56FE\u7247",key:"image",icon:o(ze)},{label:"\u56DE\u6536\u7AD9",key:"trash",icon:o(Je)},{label:"\u9080\u8BF7",key:"invited",icon:o(Ue)},{label:"\u8BBE\u7F6E",key:"setting",icon:o(He)}]),u=f(),D=()=>{h.get("https://user.mypikpak.com/v1/user/me").then(l=>{window.localStorage.setItem("pikpakUser",JSON.stringify(l.data)),u.value=l.data}).catch(l=>{console.log(l)})},g=f(),L=()=>{h.get("https://api-drive.mypikpak.com/drive/v1/about").then(l=>{g.value=l.data}).catch(l=>{console.log(l)})},y=f(),oe=()=>{h.get("https://api-drive.mypikpak.com/drive/v1/privilege/vip").then(l=>{var p;y.value=(p=l.data)==null?void 0:p.data})},se=(l,p)=>{console.log(p),a.push("/"+p.key)};K(()=>{D(),L(),oe()});const b=f(),E=f(!1),ae=()=>{h.post("https://api-drive.mypikpak.com/vip/v1/order/activation-code",{activation_code:b.value,data:{}}).then(l=>{window.$message.success("\u5151\u6362\u6210\u529F"),L()}).catch(l=>{console.log(l)}).finally(()=>{E.value=!1})},P=f(!1),ie=l=>{P.value=l<800,t.value||(t.value=l<800)};Ee(s,()=>{P.value&&(t.value=!0)});const ne=we(),re=()=>{ne.warning({title:"\u8B66\u544A",content:"\u786E\u5B9A\u9000\u51FA\uFF1F",positiveText:"\u786E\u5B9A",negativeText:"\u4E0D\u786E\u5B9A",onPositiveClick:()=>{h.post("https://user.mypikpak.com/v1/auth/revoke",{}).then(l=>{window.localStorage.removeItem("pikpakLogin"),window.localStorage.removeItem("pikpakLoginData"),window.$message.success("\u9000\u51FA\u6210\u529F"),a.push("/login")}).catch(l=>{console.log(l)})}})};return(l,p)=>{const ue=Y("router-view"),le=xe("resize");return v(),F(Ve,null,[Be(n(i(X),{"has-sider":"",onResize:ie},{default:c(()=>[n(i(De),{"content-style":{display:"flex",flexDirection:"column"},"collapse-mode":"width","collapsed-width":0,width:240,"show-trigger":"bar",collapsed:t.value,onCollapse:p[1]||(p[1]=_=>t.value=!0),onExpand:p[2]||(p[2]=_=>t.value=!1),bordered:""},{default:c(()=>{var _,$,S,O,T,R,j,V,M,z,J;return[nt,n(i(be),{options:r.value,value:String(i(s).name),"onUpdate:value":se},null,8,["options","value"]),t.value?A("",!0):(v(),F("div",rt,[k(C(i(te)((_=g.value)==null?void 0:_.quota.usage))+" / "+C(i(te)(($=g.value)==null?void 0:$.quota.limit))+" ",1),n(i(Ae),{type:"primary",onClick:p[0]||(p[0]=xt=>E.value=!0)},{default:c(()=>[ut]),_:1}),((S=g.value)==null?void 0:S.quota)?(v(),G(i(Ne),{key:0,type:"line",percentage:Number((((O=g.value)==null?void 0:O.quota.usage)/((T=g.value)==null?void 0:T.quota.limit)*100).toFixed(2)),"indicator-placement":"inside",height:14,color:((R=y.value)==null?void 0:R.status)==="ok"?"#d1ae6a":void 0,processing:""},null,8,["percentage","color"])):A("",!0),m("p",lt,[n(i(q),{placement:"right"},{trigger:c(()=>[ct]),default:c(()=>[pt]),_:1})])])),t.value?A("",!0):(v(),F("div",{key:1,class:Ce(["sider-bottom",{vip:((j=y.value)==null?void 0:j.status)==="ok"}])},[m("div",dt,[((V=y.value)==null?void 0:V.status)==="ok"?(v(),F("img",mt)):(v(),F("img",ht)),m("div",gt,[k(C((M=u.value)==null?void 0:M.name)+" ",1),((z=y.value)==null?void 0:z.status)==="ok"&&((J=y.value)==null?void 0:J.expire)?(v(),F("div",_t,[n(i(Ie),{time:new Date(y.value.expire),type:"datetime"},null,8,["time"])])):A("",!0)]),m("div",ft,[n(i(q),null,{trigger:c(()=>[n(i(I),{onClick:re},{default:c(()=>[n(i(Le))]),_:1})]),default:c(()=>[vt]),_:1})])])],2))]}),_:1},8,["collapsed"]),n(i(X),null,{default:c(()=>[n(i(Pe),{style:{height:"100vh"}},{default:c(()=>[n(i($e),{style:{"max-height":"100vh"}},{default:c(()=>[n(ue)]),_:1})]),_:1})]),_:1})]),_:1},512),[[le]]),n(i(je),{show:E.value,"onUpdate:show":p[5]||(p[5]=_=>E.value=_)},{default:c(()=>[n(i(Se),{style:{width:"600px"},title:"\u4F1A\u5458\u7801"},{"header-extra":c(()=>[n(i(I),{onClick:p[3]||(p[3]=_=>E.value=!1)},{default:c(()=>[n(i(Oe))]),_:1})]),action:c(()=>[n(i(Te),{block:!0,type:"primary",disabled:!b.value,onClick:ae},{default:c(()=>[yt]),_:1},8,["disabled"])]),default:c(()=>[n(i(Re),{placeholder:"\u4F1A\u5458\u7801",value:b.value,"onUpdate:value":p[4]||(p[4]=_=>b.value=_)},null,8,["value"]),kt]),_:1})]),_:1},8,["show"])],64)}}}),Et=[{path:"/",name:"home",component:Ft,redirect:"/list",beforeEnter:(e,t,o)=>{const a=JSON.parse(window.localStorage.getItem("pikpakLogin")||"{}");(!a||!a.access_token)&&e.name!=="setting"?o("/login"):o()},children:[{path:"list/:id?",name:"list",component:()=>d(()=>import("./list.859c23af.js"),["assets/list.859c23af.js","assets/list.764e0448.css","assets/vendor.64da71ad.js","assets/clipboard.a54b99ef.js"])},{path:"video",name:"video",component:()=>d(()=>import("./list.859c23af.js"),["assets/list.859c23af.js","assets/list.764e0448.css","assets/vendor.64da71ad.js","assets/clipboard.a54b99ef.js"])},{path:"image",name:"image",component:()=>d(()=>import("./list.859c23af.js"),["assets/list.859c23af.js","assets/list.764e0448.css","assets/vendor.64da71ad.js","assets/clipboard.a54b99ef.js"])},{path:"trash",name:"trash",component:()=>d(()=>import("./trash.918c0852.js"),["assets/trash.918c0852.js","assets/trash.99a3677d.css","assets/vendor.64da71ad.js"])},{path:"setting",name:"setting",component:()=>d(()=>import("./setting.22009dbb.js"),["assets/setting.22009dbb.js","assets/setting.f947579c.css","assets/vendor.64da71ad.js"])},{path:"invited",name:"invited",component:()=>d(()=>import("./invited.3e083c2b.js"),["assets/invited.3e083c2b.js","assets/invited.74b24e1e.css","assets/clipboard.a54b99ef.js","assets/vendor.64da71ad.js"])}]},{path:"/t/:id?",name:"test",component:()=>d(()=>import("./test.145dcbb1.js"),["assets/test.145dcbb1.js","assets/vendor.64da71ad.js"])},{path:"/s/:id/:password?",name:"shareInfo",component:()=>d(()=>import("./shareInfo.2b7da1ed.js"),["assets/shareInfo.2b7da1ed.js","assets/shareInfo.678356c6.css","assets/vendor.64da71ad.js"])},{path:"/login",name:"login",component:()=>d(()=>import("./login.ab63f8fe.js"),["assets/login.ab63f8fe.js","assets/login.a8b45006.css","assets/vendor.64da71ad.js","assets/phone-pc2.dbf6d71e.js"])},{path:"/sms",name:"sms",component:()=>d(()=>import("./sms.9177f433.js"),["assets/sms.9177f433.js","assets/sms.81a6d8ca.css","assets/phone-pc2.dbf6d71e.js","assets/vendor.64da71ad.js"])},{path:"/register",name:"register",component:()=>d(()=>import("./register.4ab5752d.js"),["assets/register.4ab5752d.js","assets/register.5588ce76.css","assets/vendor.64da71ad.js","assets/phone-pc2.dbf6d71e.js"])},{path:"/testtest",name:"testtest",component:()=>d(()=>import("./testtest.44071133.js"),["assets/testtest.44071133.js","assets/vendor.64da71ad.js"])}],wt=Ke({history:Ye(),routes:Et});var x=wt;const B=Ge(tt);B.directive("resize",{mounted(e,t,o){e.$$erd=Ze({strategy:"scroll"}),e.$$erd.listenTo({},e,a=>{let s=a.offsetWidth,r=a.offsetHeight;e.$$time&&clearTimeout(e.$$time),e.$$time=setTimeout(()=>{var u;(u=o.props)==null||u.onResize(s,r)},300)})},unmounted(e){e.$$erd&&e.$$erd.uninstall(e),e.$$time&&clearTimeout(e.$$time)}});B.config.globalProperties.$http=h;B.use(x);B.use(qe,{router:x,siteIdList:[1280680983]});B.mount("#app");export{te as b,h as i,et as p}; diff --git a/assets/index.4a703836.css b/assets/index.4a703836.css new file mode 100644 index 000000000..c945a1e05 --- /dev/null +++ b/assets/index.4a703836.css @@ -0,0 +1 @@ +a{text-decoration:none;color:inherit}.n-layout .logo-box{display:flex;align-items:center;padding-top:36px;margin:0 0 8px 30px}.n-layout .logo-box__icon{width:24PX;height:24PX;margin-right:10PX}.n-layout .logo-box__text{font-family:PingFangSC-Semibold;font-size:20PX;letter-spacing:-1.25PX;color:#000}.content-bottom{width:192px;left:24px;bottom:75px;padding-bottom:28px;position:absolute}.n-progress{margin-top:4px}.sider-bottom{height:75px;width:100%;position:absolute;bottom:0;display:flex;justify-content:center;flex-direction:column;padding:0 20px 0 24px;box-sizing:border-box}.sider-bottom.vip{background-color:#f4eddb}.sider-bottom:before{display:block;content:"";width:100%;height:1px;position:absolute;top:0;left:0;background:rgba(132,133,141,.2)}.bottom-user-info{width:calc(100% - 36px);margin-right:4px;display:flex;height:32px;align-items:center;width:100%}.user-info-avatar{width:32px;height:32px;border-radius:50%}.user-info-name{font-size:14px;line-height:1.5;margin-left:4px;max-width:100%;overflow:hidden;white-space:nowrap;flex:1;width:0}.bottom-user-info .action{font-size:18px;cursor:pointer}.list-page{padding:40px}@media (max-width: 968px){.list-page{padding:10px}} diff --git a/assets/invited.3e083c2b.js b/assets/invited.3e083c2b.js new file mode 100644 index 000000000..a5428334b --- /dev/null +++ b/assets/invited.3e083c2b.js @@ -0,0 +1 @@ +import{C as I}from"./clipboard.a54b99ef.js";import{i as v}from"./index.08e3cc88.js";import{d as S,r,a4 as H,o as M,b as g,s as h,e,f as a,aC as T,w as u,M as $,aD as _,I as m,aE as j,y as d,A as F,aF as f,aG as L,aH as z,ad as G,R as V,Q as B,ap as J,aI as R,ag as U,a7 as q,D as Q,as as K,U as C,aJ as O,H as P}from"./vendor.64da71ad.js";const W={class:"list-page"},X=d("\u590D\u5236"),Y=d("\u7ACB\u5373\u4E0B\u8F7D"),Z={key:0,class:"loading"},ee=d("\u52A0\u8F7D\u4E2D "),se=S({setup(ae){const w=t=>{K(()=>{const s=document.createElement("button"),i=new I(s,{text:()=>t,action:()=>"copy"});i.on("success",l=>{window.$message.success("\u590D\u5236\u6210\u529F"),i.destroy()}),i.on("error",l=>{window.$message.error("\u590D\u5236\u5931\u8D25\uFF0C\u60A8\u53EF\u4EE5F12\u6253\u5F00\u63A7\u5236\u53F0\u624B\u52A8\u590D\u5236\uFF0C\u6216\u624B\u52A8\u590D\u5236\u5F39\u7A97\u8F93\u5165\u6846")}),s.click()})},c=r(),x=async()=>{v.get("https://api-drive.mypikpak.com/vip/v1/activity/inviteCode").then(t=>{var s;c.value=(s=t.data)==null?void 0:s.code})},n=r();H(()=>n.value.invited_nums<=0);const D=r({vip_rebate:"\u4F1A\u5458\u5206\u6210",invite_reward:"\u9080\u8BF7\u5956\u52B1",relation:"\u9080\u8BF7\u5173\u7CFB"}),A=async()=>{v.get("https://api-drive.mypikpak.com/vip/v1/activity/inviteInfo").then(t=>{n.value=t.data}).catch(()=>{n.value={}})},N=r([{title:"\u9080\u8BF7\u7528\u6237",key:"invited_user"},{title:"\u5956\u52B1\u7C7B\u578B",key:"reward_source",render:t=>C(O,{type:t.reward_source=="vip_rebate"?"info":"success"},{default:()=>D.value[t.reward_source]})},{title:"\u5929\u6570",key:"reward_days"},{title:"\u65F6\u95F4",key:"time",align:"right",render:t=>C(P,{time:new Date(String(t.time)||""),format:"yyyy-MM-dd HH:MM:ss"})}]),o=r([]),p=r(!1),y=async(t,s=30)=>{let i="https://api-drive.mypikpak.com/vip/v1/activity/inviteList";t&&(i+=`?begin=${t}&limit=${s}`),p.value=!0,v.get(i).then(l=>{var k;t||(o.value=[]),o.value=o.value.concat(((k=l.data)==null?void 0:k.data)||[])}).finally(()=>{p.value=!1})},b=()=>{v.get(`https://api-drive.mypikpak.com/package/v1/apk/url/${c.value}`).then(t=>{window.open(t.data.apk_url)})},E=t=>{t.target.offsetHeight+t.target.scrollTop>=t.target.scrollHeight-30&&o.value.length{x(),A(),y()}),(t,s)=>(g(),h("div",W,[e(a(T),null,{default:u(()=>[e(a(_),{span:12},{default:u(()=>{var i;return[e(a(f),{label:"\u4F1A\u5458\u5206\u6210(\u5929/\u6B21)",value:(i=n.value)==null?void 0:i.invited_join_days},{prefix:u(()=>[e(a(m),null,{default:u(()=>[e(a(j))]),_:1})]),suffix:u(()=>{var l;return[d("/ "+F((l=n.value)==null?void 0:l.join_vip_nums),1)]}),_:1},8,["value"])]}),_:1}),e(a(_),{span:12},{default:u(()=>{var i;return[e(a(f),{label:"\u9080\u8BF7\u5956\u52B1(\u5929/\u4EBA)",value:(i=n.value)==null?void 0:i.add_days},{prefix:u(()=>[e(a(m),null,{default:u(()=>[e(a(L))]),_:1})]),suffix:u(()=>{var l;return[d("/ "+F((l=n.value)==null?void 0:l.invited_nums),1)]}),_:1},8,["value"])]}),_:1}),e(a(_),{span:12},{default:u(()=>[e(a(f),{label:"\u9080\u8BF7\u94FE\u63A5"},{prefix:u(()=>[e(a(m),null,{default:u(()=>[e(a(z))]),_:1})]),default:u(()=>[e(a(G),{inline:""},{default:u(()=>[e(a(V),{type:"text",size:"small",value:"https://toapp.mypikpak.com/activity/invited?code="+c.value},null,8,["value"]),e(a(B),{size:"small",type:"primary",onClick:s[0]||(s[0]=i=>w("https://toapp.mypikpak.com/activity/invited?code="+c.value))},{default:u(()=>[X]),_:1})]),_:1}),e(a(J))]),_:1})]),_:1}),e(a(_),{span:12},{default:u(()=>[e(a(f),{label:"\u4E0B\u8F7D\u63A8\u5E7F"},{prefix:u(()=>[e(a(m),null,{default:u(()=>[e(a(R))]),_:1})]),default:u(()=>[e(a(B),{size:"small",type:"primary",onClick:b},{default:u(()=>[Y]),_:1})]),_:1})]),_:1})]),_:1}),e(a($),{style:{"max-height":"calc(100vh - 250px)"},onScroll:E},{default:u(()=>[e(a(U),{data:o.value,columns:N.value},null,8,["data","columns"]),p.value?(g(),h("div",Z,[e(a(q),{size:"small"}),ee])):Q("",!0)]),_:1})]))}});export{se as default}; diff --git a/assets/invited.74b24e1e.css b/assets/invited.74b24e1e.css new file mode 100644 index 000000000..948f78102 --- /dev/null +++ b/assets/invited.74b24e1e.css @@ -0,0 +1 @@ +.list-page{padding:40px}@media (max-width: 968px){.list-page{padding:10px}.file-info img{display:none}}.list-page .loading{margin-top:20px;text-align:center;color:#25262b5c}.list-page .loading .n-spin-body{vertical-align:middle;margin-right:10px} diff --git a/assets/list.764e0448.css b/assets/list.764e0448.css new file mode 100644 index 000000000..eeceb2d2d --- /dev/null +++ b/assets/list.764e0448.css @@ -0,0 +1 @@ +@charset "UTF-8";@keyframes plyr-progress{to{background-position:25px 0;background-position:var(--plyr-progress-loading-size,25px) 0}}@keyframes plyr-popup{0%{opacity:.5;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes plyr-fade-in{0%{opacity:0}to{opacity:1}}.plyr{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;align-items:center;direction:ltr;display:flex;flex-direction:column;font-family:inherit;font-family:var(--plyr-font-family,inherit);font-variant-numeric:tabular-nums;font-weight:400;font-weight:var(--plyr-font-weight-regular,400);line-height:1.7;line-height:var(--plyr-line-height,1.7);max-width:100%;min-width:200px;position:relative;text-shadow:none;transition:box-shadow .3s ease;z-index:0}.plyr audio,.plyr iframe,.plyr video{display:block;height:100%;width:100%}.plyr button{font:inherit;line-height:inherit;width:auto}.plyr:focus{outline:0}.plyr--full-ui{box-sizing:border-box}.plyr--full-ui *,.plyr--full-ui :after,.plyr--full-ui :before{box-sizing:inherit}.plyr--full-ui a,.plyr--full-ui button,.plyr--full-ui input,.plyr--full-ui label{touch-action:manipulation}.plyr__badge{background:#4a5464;background:var(--plyr-badge-background,#4a5464);border-radius:2px;border-radius:var(--plyr-badge-border-radius,2px);color:#fff;color:var(--plyr-badge-text-color,#fff);font-size:9px;font-size:var(--plyr-font-size-badge,9px);line-height:1;padding:3px 4px}.plyr--full-ui ::-webkit-media-text-track-container{display:none}.plyr__captions{animation:plyr-fade-in .3s ease;bottom:0;display:none;font-size:13px;font-size:var(--plyr-font-size-small,13px);left:0;padding:10px;padding:var(--plyr-control-spacing,10px);position:absolute;text-align:center;transition:transform .4s ease-in-out;width:100%}.plyr__captions span:empty{display:none}@media (min-width:480px){.plyr__captions{font-size:15px;font-size:var(--plyr-font-size-base,15px);padding:20px;padding:calc(var(--plyr-control-spacing, 10px)*2)}}@media (min-width:768px){.plyr__captions{font-size:18px;font-size:var(--plyr-font-size-large,18px)}}.plyr--captions-active .plyr__captions{display:block}.plyr:not(.plyr--hide-controls) .plyr__controls:not(:empty)~.plyr__captions{transform:translateY(-40px);transform:translateY(calc(var(--plyr-control-spacing, 10px)*-4))}.plyr__caption{background:rgba(0,0,0,.8);background:var(--plyr-captions-background,rgba(0,0,0,.8));border-radius:2px;-webkit-box-decoration-break:clone;box-decoration-break:clone;color:#fff;color:var(--plyr-captions-text-color,#fff);line-height:185%;padding:.2em .5em;white-space:pre-wrap}.plyr__caption div{display:inline}.plyr__control{background:transparent;border:0;border-radius:3px;border-radius:var(--plyr-control-radius,3px);color:inherit;cursor:pointer;flex-shrink:0;overflow:visible;padding:7px;padding:calc(var(--plyr-control-spacing, 10px)*.7);position:relative;transition:all .3s ease}.plyr__control svg{fill:currentColor;display:block;height:18px;height:var(--plyr-control-icon-size,18px);pointer-events:none;width:18px;width:var(--plyr-control-icon-size,18px)}.plyr__control:focus{outline:0}.plyr__control.plyr__tab-focus{outline-color:#00b3ff;outline-color:var(--plyr-tab-focus-color,var(--plyr-color-main,var(--plyr-color-main,#00b3ff)));outline-offset:2px;outline-style:dotted;outline-width:3px}a.plyr__control{text-decoration:none}.plyr__control.plyr__control--pressed .icon--not-pressed,.plyr__control.plyr__control--pressed .label--not-pressed,.plyr__control:not(.plyr__control--pressed) .icon--pressed,.plyr__control:not(.plyr__control--pressed) .label--pressed,a.plyr__control:after,a.plyr__control:before{display:none}.plyr--full-ui ::-webkit-media-controls{display:none}.plyr__controls{align-items:center;display:flex;justify-content:flex-end;text-align:center}.plyr__controls .plyr__progress__container{flex:1;min-width:0}.plyr__controls .plyr__controls__item{margin-left:2.5px;margin-left:calc(var(--plyr-control-spacing, 10px)/4)}.plyr__controls .plyr__controls__item:first-child{margin-left:0;margin-right:auto}.plyr__controls .plyr__controls__item.plyr__progress__container{padding-left:2.5px;padding-left:calc(var(--plyr-control-spacing, 10px)/4)}.plyr__controls .plyr__controls__item.plyr__time{padding:0 5px;padding:0 calc(var(--plyr-control-spacing, 10px)/2)}.plyr__controls .plyr__controls__item.plyr__progress__container:first-child,.plyr__controls .plyr__controls__item.plyr__time+.plyr__time,.plyr__controls .plyr__controls__item.plyr__time:first-child{padding-left:0}.plyr [data-plyr=airplay],.plyr [data-plyr=captions],.plyr [data-plyr=fullscreen],.plyr [data-plyr=pip],.plyr__controls:empty{display:none}.plyr--airplay-supported [data-plyr=airplay],.plyr--captions-enabled [data-plyr=captions],.plyr--fullscreen-enabled [data-plyr=fullscreen],.plyr--pip-supported [data-plyr=pip]{display:inline-block}.plyr__menu{display:flex;position:relative}.plyr__menu .plyr__control svg{transition:transform .3s ease}.plyr__menu .plyr__control[aria-expanded=true] svg{transform:rotate(90deg)}.plyr__menu .plyr__control[aria-expanded=true] .plyr__tooltip{display:none}.plyr__menu__container{animation:plyr-popup .2s ease;background:hsla(0,0%,100%,.9);background:var(--plyr-menu-background,hsla(0,0%,100%,.9));border-radius:4px;bottom:100%;box-shadow:0 1px 2px #00000026;box-shadow:var(--plyr-menu-shadow,0 1px 2px rgba(0,0,0,.15));color:#4a5464;color:var(--plyr-menu-color,#4a5464);font-size:15px;font-size:var(--plyr-font-size-base,15px);margin-bottom:10px;position:absolute;right:-3px;text-align:left;white-space:nowrap;z-index:3}.plyr__menu__container>div{overflow:hidden;transition:height .35s cubic-bezier(.4,0,.2,1),width .35s cubic-bezier(.4,0,.2,1)}.plyr__menu__container:after{border:4px solid transparent;border-top:var(--plyr-menu-arrow-size,4px) solid hsla(0,0%,100%,.9);border-width:var(--plyr-menu-arrow-size,4px);content:"";height:0;position:absolute;right:14px;right:calc(var(--plyr-control-icon-size, 18px)/2 + var(--plyr-control-spacing, 10px)*.7 - var(--plyr-menu-arrow-size, 4px)/2);top:100%;width:0}.plyr__menu__container [role=menu]{padding:7px;padding:calc(var(--plyr-control-spacing, 10px)*.7)}.plyr__menu__container [role=menuitem],.plyr__menu__container [role=menuitemradio]{margin-top:2px}.plyr__menu__container [role=menuitem]:first-child,.plyr__menu__container [role=menuitemradio]:first-child{margin-top:0}.plyr__menu__container .plyr__control{align-items:center;color:#4a5464;color:var(--plyr-menu-color,#4a5464);display:flex;font-size:13px;font-size:var(--plyr-font-size-menu,var(--plyr-font-size-small,13px));padding:4.66667px 10.5px;padding:calc(var(--plyr-control-spacing, 10px)*.7/1.5) calc(var(--plyr-control-spacing, 10px)*.7*1.5);-webkit-user-select:none;user-select:none;width:100%}.plyr__menu__container .plyr__control>span{align-items:inherit;display:flex;width:100%}.plyr__menu__container .plyr__control:after{border:4px solid transparent;border:var(--plyr-menu-item-arrow-size,4px) solid transparent;content:"";position:absolute;top:50%;transform:translateY(-50%)}.plyr__menu__container .plyr__control--forward{padding-right:28px;padding-right:calc(var(--plyr-control-spacing, 10px)*.7*4)}.plyr__menu__container .plyr__control--forward:after{border-left-color:#728197;border-left-color:var(--plyr-menu-arrow-color,#728197);right:6.5px;right:calc(var(--plyr-control-spacing, 10px)*.7*1.5 - var(--plyr-menu-item-arrow-size, 4px))}.plyr__menu__container .plyr__control--forward.plyr__tab-focus:after,.plyr__menu__container .plyr__control--forward:hover:after{border-left-color:currentColor}.plyr__menu__container .plyr__control--back{font-weight:400;font-weight:var(--plyr-font-weight-regular,400);margin:7px;margin:calc(var(--plyr-control-spacing, 10px)*.7);margin-bottom:3.5px;margin-bottom:calc(var(--plyr-control-spacing, 10px)*.7/2);padding-left:28px;padding-left:calc(var(--plyr-control-spacing, 10px)*.7*4);position:relative;width:calc(100% - 14px);width:calc(100% - var(--plyr-control-spacing, 10px)*.7*2)}.plyr__menu__container .plyr__control--back:after{border-right-color:#728197;border-right-color:var(--plyr-menu-arrow-color,#728197);left:6.5px;left:calc(var(--plyr-control-spacing, 10px)*.7*1.5 - var(--plyr-menu-item-arrow-size, 4px))}.plyr__menu__container .plyr__control--back:before{background:#dcdfe5;background:var(--plyr-menu-back-border-color,#dcdfe5);box-shadow:0 1px #fff;box-shadow:0 1px 0 var(--plyr-menu-back-border-shadow-color,#fff);content:"";height:1px;left:0;margin-top:3.5px;margin-top:calc(var(--plyr-control-spacing, 10px)*.7/2);overflow:hidden;position:absolute;right:0;top:100%}.plyr__menu__container .plyr__control--back.plyr__tab-focus:after,.plyr__menu__container .plyr__control--back:hover:after{border-right-color:currentColor}.plyr__menu__container .plyr__control[role=menuitemradio]{padding-left:7px;padding-left:calc(var(--plyr-control-spacing, 10px)*.7)}.plyr__menu__container .plyr__control[role=menuitemradio]:after,.plyr__menu__container .plyr__control[role=menuitemradio]:before{border-radius:100%}.plyr__menu__container .plyr__control[role=menuitemradio]:before{background:rgba(0,0,0,.1);content:"";display:block;flex-shrink:0;height:16px;margin-right:10px;margin-right:var(--plyr-control-spacing,10px);transition:all .3s ease;width:16px}.plyr__menu__container .plyr__control[role=menuitemradio]:after{background:#fff;border:0;height:6px;left:12px;opacity:0;top:50%;transform:translateY(-50%) scale(0);transition:transform .3s ease,opacity .3s ease;width:6px}.plyr__menu__container .plyr__control[role=menuitemradio][aria-checked=true]:before{background:#00b3ff;background:var(--plyr-control-toggle-checked-background,var(--plyr-color-main,var(--plyr-color-main,#00b3ff)))}.plyr__menu__container .plyr__control[role=menuitemradio][aria-checked=true]:after{opacity:1;transform:translateY(-50%) scale(1)}.plyr__menu__container .plyr__control[role=menuitemradio].plyr__tab-focus:before,.plyr__menu__container .plyr__control[role=menuitemradio]:hover:before{background:rgba(35,40,47,.1)}.plyr__menu__container .plyr__menu__value{align-items:center;display:flex;margin-left:auto;margin-right:calc(-7px - -2);margin-right:calc(var(--plyr-control-spacing, 10px)*.7*-1 - -2);overflow:hidden;padding-left:24.5px;padding-left:calc(var(--plyr-control-spacing, 10px)*.7*3.5);pointer-events:none}.plyr--full-ui input[type=range]{-webkit-appearance:none;background:transparent;border:0;border-radius:26px;border-radius:calc(var(--plyr-range-thumb-height, 13px)*2);color:#00b3ff;color:var(--plyr-range-fill-background,var(--plyr-color-main,var(--plyr-color-main,#00b3ff)));display:block;height:19px;height:calc(var(--plyr-range-thumb-active-shadow-width, 3px)*2 + var(--plyr-range-thumb-height, 13px));margin:0;min-width:0;padding:0;transition:box-shadow .3s ease;width:100%}.plyr--full-ui input[type=range]::-webkit-slider-runnable-track{background:transparent;background-image:linear-gradient(90deg,currentColor 0,transparent 0);background-image:linear-gradient(to right,currentColor var(--value,0),transparent var(--value,0));border:0;border-radius:2.5px;border-radius:calc(var(--plyr-range-track-height, 5px)/2);height:5px;height:var(--plyr-range-track-height,5px);-webkit-transition:box-shadow .3s ease;transition:box-shadow .3s ease;-webkit-user-select:none;user-select:none}.plyr--full-ui input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;background:#fff;background:var(--plyr-range-thumb-background,#fff);border:0;border-radius:100%;box-shadow:0 1px 1px #23282f26,0 0 0 1px #23282f33;box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2));height:13px;height:var(--plyr-range-thumb-height,13px);margin-top:-4px;margin-top:calc(var(--plyr-range-thumb-height, 13px)/2*-1 - var(--plyr-range-track-height, 5px)/2*-1);position:relative;-webkit-transition:all .2s ease;transition:all .2s ease;width:13px;width:var(--plyr-range-thumb-height,13px)}.plyr--full-ui input[type=range]::-moz-range-track{background:transparent;border:0;border-radius:2.5px;border-radius:calc(var(--plyr-range-track-height, 5px)/2);height:5px;height:var(--plyr-range-track-height,5px);-moz-transition:box-shadow .3s ease;transition:box-shadow .3s ease;user-select:none}.plyr--full-ui input[type=range]::-moz-range-thumb{background:#fff;background:var(--plyr-range-thumb-background,#fff);border:0;border-radius:100%;box-shadow:0 1px 1px #23282f26,0 0 0 1px #23282f33;box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2));height:13px;height:var(--plyr-range-thumb-height,13px);position:relative;-moz-transition:all .2s ease;transition:all .2s ease;width:13px;width:var(--plyr-range-thumb-height,13px)}.plyr--full-ui input[type=range]::-moz-range-progress{background:currentColor;border-radius:2.5px;border-radius:calc(var(--plyr-range-track-height, 5px)/2);height:5px;height:var(--plyr-range-track-height,5px)}.plyr--full-ui input[type=range]::-ms-track{color:transparent}.plyr--full-ui input[type=range]::-ms-fill-upper,.plyr--full-ui input[type=range]::-ms-track{background:transparent;border:0;border-radius:2.5px;border-radius:calc(var(--plyr-range-track-height, 5px)/2);height:5px;height:var(--plyr-range-track-height,5px);-ms-transition:box-shadow .3s ease;transition:box-shadow .3s ease;user-select:none}.plyr--full-ui input[type=range]::-ms-fill-lower{background:transparent;background:currentColor;border:0;border-radius:2.5px;border-radius:calc(var(--plyr-range-track-height, 5px)/2);height:5px;height:var(--plyr-range-track-height,5px);-ms-transition:box-shadow .3s ease;transition:box-shadow .3s ease;user-select:none}.plyr--full-ui input[type=range]::-ms-thumb{background:#fff;background:var(--plyr-range-thumb-background,#fff);border:0;border-radius:100%;box-shadow:0 1px 1px #23282f26,0 0 0 1px #23282f33;box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2));height:13px;height:var(--plyr-range-thumb-height,13px);margin-top:0;position:relative;-ms-transition:all .2s ease;transition:all .2s ease;width:13px;width:var(--plyr-range-thumb-height,13px)}.plyr--full-ui input[type=range]::-ms-tooltip{display:none}.plyr--full-ui input[type=range]:focus{outline:0}.plyr--full-ui input[type=range]::-moz-focus-outer{border:0}.plyr--full-ui input[type=range].plyr__tab-focus::-webkit-slider-runnable-track{outline-color:#00b3ff;outline-color:var(--plyr-tab-focus-color,var(--plyr-color-main,var(--plyr-color-main,#00b3ff)));outline-offset:2px;outline-style:dotted;outline-width:3px}.plyr--full-ui input[type=range].plyr__tab-focus::-moz-range-track{outline-color:#00b3ff;outline-color:var(--plyr-tab-focus-color,var(--plyr-color-main,var(--plyr-color-main,#00b3ff)));outline-offset:2px;outline-style:dotted;outline-width:3px}.plyr--full-ui input[type=range].plyr__tab-focus::-ms-track{outline-color:#00b3ff;outline-color:var(--plyr-tab-focus-color,var(--plyr-color-main,var(--plyr-color-main,#00b3ff)));outline-offset:2px;outline-style:dotted;outline-width:3px}.plyr__poster{background-color:#000;background-color:var(--plyr-video-background,var(--plyr-video-background,#000));background-position:50% 50%;background-repeat:no-repeat;background-size:contain;height:100%;left:0;opacity:0;position:absolute;top:0;transition:opacity .2s ease;width:100%;z-index:1}.plyr--stopped.plyr__poster-enabled .plyr__poster{opacity:1}.plyr--youtube.plyr--paused.plyr__poster-enabled:not(.plyr--stopped) .plyr__poster{display:none}.plyr__time{font-size:13px;font-size:var(--plyr-font-size-time,var(--plyr-font-size-small,13px))}.plyr__time+.plyr__time:before{content:"\2044";margin-right:10px;margin-right:var(--plyr-control-spacing,10px)}@media (max-width:767px){.plyr__time+.plyr__time{display:none}}.plyr__tooltip{background:hsla(0,0%,100%,.9);background:var(--plyr-tooltip-background,hsla(0,0%,100%,.9));border-radius:3px;border-radius:var(--plyr-tooltip-radius,3px);bottom:100%;box-shadow:0 1px 2px #00000026;box-shadow:var(--plyr-tooltip-shadow,0 1px 2px rgba(0,0,0,.15));color:#4a5464;color:var(--plyr-tooltip-color,#4a5464);font-size:13px;font-size:var(--plyr-font-size-small,13px);font-weight:400;font-weight:var(--plyr-font-weight-regular,400);left:50%;line-height:1.3;margin-bottom:10px;margin-bottom:calc(var(--plyr-control-spacing, 10px)/2*2);opacity:0;padding:5px 7.5px;padding:calc(var(--plyr-control-spacing, 10px)/2) calc(var(--plyr-control-spacing, 10px)/2*1.5);pointer-events:none;position:absolute;transform:translate(-50%,10px) scale(.8);transform-origin:50% 100%;transition:transform .2s ease .1s,opacity .2s ease .1s;white-space:nowrap;z-index:2}.plyr__tooltip:before{border-left:4px solid transparent;border-left:var(--plyr-tooltip-arrow-size,4px) solid transparent;border-right:4px solid transparent;border-right:var(--plyr-tooltip-arrow-size,4px) solid transparent;border-top:4px solid hsla(0,0%,100%,.9);border-top:var(--plyr-tooltip-arrow-size,4px) solid var(--plyr-tooltip-background,hsla(0,0%,100%,.9));bottom:-4px;bottom:calc(var(--plyr-tooltip-arrow-size, 4px)*-1);content:"";height:0;left:50%;position:absolute;transform:translate(-50%);width:0;z-index:2}.plyr .plyr__control.plyr__tab-focus .plyr__tooltip,.plyr .plyr__control:hover .plyr__tooltip,.plyr__tooltip--visible{opacity:1;transform:translate(-50%) scale(1)}.plyr .plyr__control:hover .plyr__tooltip{z-index:3}.plyr__controls>.plyr__control:first-child+.plyr__control .plyr__tooltip,.plyr__controls>.plyr__control:first-child .plyr__tooltip{left:0;transform:translateY(10px) scale(.8);transform-origin:0 100%}.plyr__controls>.plyr__control:first-child+.plyr__control .plyr__tooltip:before,.plyr__controls>.plyr__control:first-child .plyr__tooltip:before{left:16px;left:calc(var(--plyr-control-icon-size, 18px)/2 + var(--plyr-control-spacing, 10px)*.7)}.plyr__controls>.plyr__control:last-child .plyr__tooltip{left:auto;right:0;transform:translateY(10px) scale(.8);transform-origin:100% 100%}.plyr__controls>.plyr__control:last-child .plyr__tooltip:before{left:auto;right:16px;right:calc(var(--plyr-control-icon-size, 18px)/2 + var(--plyr-control-spacing, 10px)*.7);transform:translate(50%)}.plyr__controls>.plyr__control:first-child+.plyr__control.plyr__tab-focus .plyr__tooltip,.plyr__controls>.plyr__control:first-child+.plyr__control .plyr__tooltip--visible,.plyr__controls>.plyr__control:first-child+.plyr__control:hover .plyr__tooltip,.plyr__controls>.plyr__control:first-child.plyr__tab-focus .plyr__tooltip,.plyr__controls>.plyr__control:first-child .plyr__tooltip--visible,.plyr__controls>.plyr__control:first-child:hover .plyr__tooltip,.plyr__controls>.plyr__control:last-child.plyr__tab-focus .plyr__tooltip,.plyr__controls>.plyr__control:last-child .plyr__tooltip--visible,.plyr__controls>.plyr__control:last-child:hover .plyr__tooltip{transform:translate(0) scale(1)}.plyr__progress{left:6.5px;left:calc(var(--plyr-range-thumb-height, 13px)*.5);margin-right:13px;margin-right:var(--plyr-range-thumb-height,13px);position:relative}.plyr__progress__buffer,.plyr__progress input[type=range]{margin-left:-6.5px;margin-left:calc(var(--plyr-range-thumb-height, 13px)*-.5);margin-right:-6.5px;margin-right:calc(var(--plyr-range-thumb-height, 13px)*-.5);width:calc(100% + 13px);width:calc(100% + var(--plyr-range-thumb-height, 13px))}.plyr__progress input[type=range]{position:relative;z-index:2}.plyr__progress .plyr__tooltip{font-size:13px;font-size:var(--plyr-font-size-time,var(--plyr-font-size-small,13px));left:0}.plyr__progress__buffer{-webkit-appearance:none;background:transparent;border:0;border-radius:100px;height:5px;height:var(--plyr-range-track-height,5px);left:0;margin-top:-2.5px;margin-top:calc(var(--plyr-range-track-height, 5px)/2*-1);padding:0;position:absolute;top:50%}.plyr__progress__buffer::-webkit-progress-bar{background:transparent}.plyr__progress__buffer::-webkit-progress-value{background:currentColor;border-radius:100px;min-width:5px;min-width:var(--plyr-range-track-height,5px);-webkit-transition:width .2s ease;transition:width .2s ease}.plyr__progress__buffer::-moz-progress-bar{background:currentColor;border-radius:100px;min-width:5px;min-width:var(--plyr-range-track-height,5px);-moz-transition:width .2s ease;transition:width .2s ease}.plyr__progress__buffer::-ms-fill{border-radius:100px;-ms-transition:width .2s ease;transition:width .2s ease}.plyr--loading .plyr__progress__buffer{animation:plyr-progress 1s linear infinite;background-image:linear-gradient(-45deg,rgba(35,40,47,.6) 25%,transparent 0,transparent 50%,rgba(35,40,47,.6) 0,rgba(35,40,47,.6) 75%,transparent 0,transparent);background-image:linear-gradient(-45deg,var(--plyr-progress-loading-background,rgba(35,40,47,.6)) 25%,transparent 25%,transparent 50%,var(--plyr-progress-loading-background,rgba(35,40,47,.6)) 50%,var(--plyr-progress-loading-background,rgba(35,40,47,.6)) 75%,transparent 75%,transparent);background-repeat:repeat-x;background-size:25px 25px;background-size:var(--plyr-progress-loading-size,25px) var(--plyr-progress-loading-size,25px);color:transparent}.plyr--video.plyr--loading .plyr__progress__buffer{background-color:#ffffff40;background-color:var(--plyr-video-progress-buffered-background,hsla(0,0%,100%,.25))}.plyr--audio.plyr--loading .plyr__progress__buffer{background-color:#c1c8d199;background-color:var(--plyr-audio-progress-buffered-background,rgba(193,200,209,.6))}.plyr__volume{align-items:center;display:flex;max-width:110px;min-width:80px;position:relative;width:20%}.plyr__volume input[type=range]{margin-left:5px;margin-left:calc(var(--plyr-control-spacing, 10px)/2);margin-right:5px;margin-right:calc(var(--plyr-control-spacing, 10px)/2);position:relative;z-index:2}.plyr--is-ios .plyr__volume{min-width:0;width:auto}.plyr--audio{display:block}.plyr--audio .plyr__controls{background:#fff;background:var(--plyr-audio-controls-background,#fff);border-radius:inherit;color:#4a5464;color:var(--plyr-audio-control-color,#4a5464);padding:10px;padding:var(--plyr-control-spacing,10px)}.plyr--audio .plyr__control.plyr__tab-focus,.plyr--audio .plyr__control:hover,.plyr--audio .plyr__control[aria-expanded=true]{background:#00b3ff;background:var(--plyr-audio-control-background-hover,var(--plyr-color-main,var(--plyr-color-main,#00b3ff)));color:#fff;color:var(--plyr-audio-control-color-hover,#fff)}.plyr--full-ui.plyr--audio input[type=range]::-webkit-slider-runnable-track{background-color:#c1c8d199;background-color:var(--plyr-audio-range-track-background,var(--plyr-audio-progress-buffered-background,rgba(193,200,209,.6)))}.plyr--full-ui.plyr--audio input[type=range]::-moz-range-track{background-color:#c1c8d199;background-color:var(--plyr-audio-range-track-background,var(--plyr-audio-progress-buffered-background,rgba(193,200,209,.6)))}.plyr--full-ui.plyr--audio input[type=range]::-ms-track{background-color:#c1c8d199;background-color:var(--plyr-audio-range-track-background,var(--plyr-audio-progress-buffered-background,rgba(193,200,209,.6)))}.plyr--full-ui.plyr--audio input[type=range]:active::-webkit-slider-thumb{box-shadow:0 1px 1px #23282f26,0 0 0 1px #23282f33,0 0 0 3px #23282f1a;box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2)),0 0 0 var(--plyr-range-thumb-active-shadow-width,3px) var(--plyr-audio-range-thumb-active-shadow-color,rgba(35,40,47,.1))}.plyr--full-ui.plyr--audio input[type=range]:active::-moz-range-thumb{box-shadow:0 1px 1px #23282f26,0 0 0 1px #23282f33,0 0 0 3px #23282f1a;box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2)),0 0 0 var(--plyr-range-thumb-active-shadow-width,3px) var(--plyr-audio-range-thumb-active-shadow-color,rgba(35,40,47,.1))}.plyr--full-ui.plyr--audio input[type=range]:active::-ms-thumb{box-shadow:0 1px 1px #23282f26,0 0 0 1px #23282f33,0 0 0 3px #23282f1a;box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2)),0 0 0 var(--plyr-range-thumb-active-shadow-width,3px) var(--plyr-audio-range-thumb-active-shadow-color,rgba(35,40,47,.1))}.plyr--audio .plyr__progress__buffer{color:#c1c8d199;color:var(--plyr-audio-progress-buffered-background,rgba(193,200,209,.6))}.plyr--video{background:#000;background:var(--plyr-video-background,var(--plyr-video-background,#000));overflow:hidden}.plyr--video.plyr--menu-open{overflow:visible}.plyr__video-wrapper{background:#000;background:var(--plyr-video-background,var(--plyr-video-background,#000));height:100%;margin:auto;overflow:hidden;position:relative;width:100%}.plyr__video-embed,.plyr__video-wrapper--fixed-ratio{aspect-ratio:16/9}@supports not (aspect-ratio:16/9){.plyr__video-embed,.plyr__video-wrapper--fixed-ratio{height:0;padding-bottom:56.25%;position:relative}}.plyr__video-embed iframe,.plyr__video-wrapper--fixed-ratio video{border:0;height:100%;left:0;position:absolute;top:0;width:100%}.plyr--full-ui .plyr__video-embed>.plyr__video-embed__container{padding-bottom:240%;position:relative;transform:translateY(-38.28125%)}.plyr--video .plyr__controls{background:linear-gradient(transparent,rgba(0,0,0,.75));background:var(--plyr-video-controls-background,linear-gradient(transparent,rgba(0,0,0,.75)));border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;bottom:0;color:#fff;color:var(--plyr-video-control-color,#fff);left:0;padding:5px;padding:calc(var(--plyr-control-spacing, 10px)/2);padding-top:20px;padding-top:calc(var(--plyr-control-spacing, 10px)*2);position:absolute;right:0;transition:opacity .4s ease-in-out,transform .4s ease-in-out;z-index:3}@media (min-width:480px){.plyr--video .plyr__controls{padding:10px;padding:var(--plyr-control-spacing,10px);padding-top:35px;padding-top:calc(var(--plyr-control-spacing, 10px)*3.5)}}.plyr--video.plyr--hide-controls .plyr__controls{opacity:0;pointer-events:none;transform:translateY(100%)}.plyr--video .plyr__control.plyr__tab-focus,.plyr--video .plyr__control:hover,.plyr--video .plyr__control[aria-expanded=true]{background:#00b3ff;background:var(--plyr-video-control-background-hover,var(--plyr-color-main,var(--plyr-color-main,#00b3ff)));color:#fff;color:var(--plyr-video-control-color-hover,#fff)}.plyr__control--overlaid{background:#00b3ff;background:var(--plyr-video-control-background-hover,var(--plyr-color-main,var(--plyr-color-main,#00b3ff)));border:0;border-radius:100%;color:#fff;color:var(--plyr-video-control-color,#fff);display:none;left:50%;opacity:.9;padding:15px;padding:calc(var(--plyr-control-spacing, 10px)*1.5);position:absolute;top:50%;transform:translate(-50%,-50%);transition:.3s;z-index:2}.plyr__control--overlaid svg{left:2px;position:relative}.plyr__control--overlaid:focus,.plyr__control--overlaid:hover{opacity:1}.plyr--playing .plyr__control--overlaid{opacity:0;visibility:hidden}.plyr--full-ui.plyr--video .plyr__control--overlaid{display:block}.plyr--full-ui.plyr--video input[type=range]::-webkit-slider-runnable-track{background-color:#ffffff40;background-color:var(--plyr-video-range-track-background,var(--plyr-video-progress-buffered-background,hsla(0,0%,100%,.25)))}.plyr--full-ui.plyr--video input[type=range]::-moz-range-track{background-color:#ffffff40;background-color:var(--plyr-video-range-track-background,var(--plyr-video-progress-buffered-background,hsla(0,0%,100%,.25)))}.plyr--full-ui.plyr--video input[type=range]::-ms-track{background-color:#ffffff40;background-color:var(--plyr-video-range-track-background,var(--plyr-video-progress-buffered-background,hsla(0,0%,100%,.25)))}.plyr--full-ui.plyr--video input[type=range]:active::-webkit-slider-thumb{box-shadow:0 1px 1px #23282f26,0 0 0 1px #23282f33,0 0 0 3px #ffffff80;box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2)),0 0 0 var(--plyr-range-thumb-active-shadow-width,3px) var(--plyr-audio-range-thumb-active-shadow-color,hsla(0,0%,100%,.5))}.plyr--full-ui.plyr--video input[type=range]:active::-moz-range-thumb{box-shadow:0 1px 1px #23282f26,0 0 0 1px #23282f33,0 0 0 3px #ffffff80;box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2)),0 0 0 var(--plyr-range-thumb-active-shadow-width,3px) var(--plyr-audio-range-thumb-active-shadow-color,hsla(0,0%,100%,.5))}.plyr--full-ui.plyr--video input[type=range]:active::-ms-thumb{box-shadow:0 1px 1px #23282f26,0 0 0 1px #23282f33,0 0 0 3px #ffffff80;box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2)),0 0 0 var(--plyr-range-thumb-active-shadow-width,3px) var(--plyr-audio-range-thumb-active-shadow-color,hsla(0,0%,100%,.5))}.plyr--video .plyr__progress__buffer{color:#ffffff40;color:var(--plyr-video-progress-buffered-background,hsla(0,0%,100%,.25))}.plyr:fullscreen{background:#000;border-radius:0!important;height:100%;margin:0;width:100%}.plyr:fullscreen video{height:100%}.plyr:fullscreen .plyr__control .icon--exit-fullscreen{display:block}.plyr:fullscreen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:fullscreen.plyr--hide-controls{cursor:none}@media (min-width:1024px){.plyr:-webkit-full-screen .plyr__captions{font-size:21px;font-size:var(--plyr-font-size-xlarge,21px)}.plyr:fullscreen .plyr__captions{font-size:21px;font-size:var(--plyr-font-size-xlarge,21px)}}.plyr:-webkit-full-screen{background:#000;border-radius:0!important;height:100%;margin:0;width:100%}.plyr:-webkit-full-screen video{height:100%}.plyr:-webkit-full-screen .plyr__control .icon--exit-fullscreen{display:block}.plyr:-webkit-full-screen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:-webkit-full-screen.plyr--hide-controls{cursor:none}@media (min-width:1024px){.plyr:-webkit-full-screen .plyr__captions{font-size:21px;font-size:var(--plyr-font-size-xlarge,21px)}}.plyr:-moz-full-screen{background:#000;border-radius:0!important;height:100%;margin:0;width:100%}.plyr:-moz-full-screen video{height:100%}.plyr:-moz-full-screen .plyr__control .icon--exit-fullscreen{display:block}.plyr:-moz-full-screen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:-moz-full-screen.plyr--hide-controls{cursor:none}@media (min-width:1024px){.plyr:-moz-full-screen .plyr__captions{font-size:21px;font-size:var(--plyr-font-size-xlarge,21px)}}.plyr:-ms-fullscreen{background:#000;border-radius:0!important;height:100%;margin:0;width:100%}.plyr:-ms-fullscreen video{height:100%}.plyr:-ms-fullscreen .plyr__control .icon--exit-fullscreen{display:block}.plyr:-ms-fullscreen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:-ms-fullscreen.plyr--hide-controls{cursor:none}@media (min-width:1024px){.plyr:-ms-fullscreen .plyr__captions{font-size:21px;font-size:var(--plyr-font-size-xlarge,21px)}}.plyr--fullscreen-fallback{background:#000;border-radius:0!important;bottom:0;display:block;height:100%;left:0;margin:0;position:fixed;right:0;top:0;width:100%;z-index:10000000}.plyr--fullscreen-fallback video{height:100%}.plyr--fullscreen-fallback .plyr__control .icon--exit-fullscreen{display:block}.plyr--fullscreen-fallback .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr--fullscreen-fallback.plyr--hide-controls{cursor:none}@media (min-width:1024px){.plyr--fullscreen-fallback .plyr__captions{font-size:21px;font-size:var(--plyr-font-size-xlarge,21px)}}.plyr__ads{border-radius:inherit;bottom:0;cursor:pointer;left:0;overflow:hidden;position:absolute;right:0;top:0;z-index:-1}.plyr__ads>div,.plyr__ads>div iframe{height:100%;position:absolute;width:100%}.plyr__ads:after{background:#23282f;border-radius:2px;bottom:10px;bottom:var(--plyr-control-spacing,10px);color:#fff;content:attr(data-badge-text);font-size:11px;padding:2px 6px;pointer-events:none;position:absolute;right:10px;right:var(--plyr-control-spacing,10px);z-index:3}.plyr__ads:empty:after{display:none}.plyr__cues{background:currentColor;display:block;height:5px;height:var(--plyr-range-track-height,5px);left:0;margin:-var(--plyr-range-track-height,5px)/2 0 0;opacity:.8;position:absolute;top:50%;width:3px;z-index:3}.plyr__preview-thumb{background-color:#ffffffe6;background-color:var(--plyr-tooltip-background,hsla(0,0%,100%,.9));border-radius:3px;bottom:100%;box-shadow:0 1px 2px #00000026;box-shadow:var(--plyr-tooltip-shadow,0 1px 2px rgba(0,0,0,.15));margin-bottom:10px;margin-bottom:calc(var(--plyr-control-spacing, 10px)/2*2);opacity:0;padding:3px;padding:var(--plyr-tooltip-radius,3px);pointer-events:none;position:absolute;transform:translateY(10px) scale(.8);transform-origin:50% 100%;transition:transform .2s ease .1s,opacity .2s ease .1s;z-index:2}.plyr__preview-thumb--is-shown{opacity:1;transform:translate(0) scale(1)}.plyr__preview-thumb:before{border-left:4px solid transparent;border-left:var(--plyr-tooltip-arrow-size,4px) solid transparent;border-right:4px solid transparent;border-right:var(--plyr-tooltip-arrow-size,4px) solid transparent;border-top:4px solid hsla(0,0%,100%,.9);border-top:var(--plyr-tooltip-arrow-size,4px) solid var(--plyr-tooltip-background,hsla(0,0%,100%,.9));bottom:-4px;bottom:calc(var(--plyr-tooltip-arrow-size, 4px)*-1);content:"";height:0;left:50%;position:absolute;transform:translate(-50%);width:0;z-index:2}.plyr__preview-thumb__image-container{background:#c1c8d1;border-radius:2px;border-radius:calc(var(--plyr-tooltip-radius, 3px) - 1px);overflow:hidden;position:relative;z-index:0}.plyr__preview-thumb__image-container img{height:100%;left:0;max-height:none;max-width:none;position:absolute;top:0;width:100%}.plyr__preview-thumb__time-container{bottom:6px;left:0;position:absolute;right:0;white-space:nowrap;z-index:3}.plyr__preview-thumb__time-container span{background-color:#0000008c;border-radius:2px;border-radius:calc(var(--plyr-tooltip-radius, 3px) - 1px);color:#fff;font-size:13px;font-size:var(--plyr-font-size-time,var(--plyr-font-size-small,13px));padding:3px 6px}.plyr__preview-scrubbing{bottom:0;filter:blur(1px);height:100%;left:0;margin:auto;opacity:0;overflow:hidden;pointer-events:none;position:absolute;right:0;top:0;transition:opacity .3s ease;width:100%;z-index:1}.plyr__preview-scrubbing--is-shown{opacity:1}.plyr__preview-scrubbing img{height:100%;left:0;max-height:none;max-width:none;-o-object-fit:contain;object-fit:contain;position:absolute;top:0;width:100%}.plyr--no-transition{transition:none!important}.plyr__sr-only{clip:rect(1px,1px,1px,1px);border:0!important;height:1px!important;overflow:hidden;padding:0!important;position:absolute!important;width:1px!important}.plyr [hidden]{display:none!important}.plyr--video{height:100%}.plyr--audio{margin-top:320px}.plyr video{object-fit:contain;position:absolute;top:0;bottom:0;left:0;right:0;width:100%;height:100%}.container{position:fixed;width:375px;right:32px;bottom:28px}@media (max-width: 968px){.container{width:100%;right:0;bottom:0;left:0}}.container *,.container *:before,.container *:after{box-sizing:border-box}.container p{margin:0;padding:0;border:0;font-size:100%;font-family:inherit;vertical-align:baseline}.content{width:100%;max-height:530px;min-height:54px;background:#fff;box-shadow:0 0 1px 1px #1c1c200d,0 8px 24px #1c1c201f;border-radius:5px;transition:max-height .66s cubic-bezier(.66,0,.01,1);overflow:hidden}.content.hide{max-height:54px}.bottom{cursor:pointer;position:absolute;width:100%;height:30px;left:0;font-size:14px;line-height:1.5;text-align:center;bottom:0;border-radius:0 0 5px 5px;background:#fff;box-shadow:0 -8px 8px #fff;transition:color .3s ease}.bottom:hover{color:#306eff}.status-bar{height:54px;position:relative;z-index:1;background:#fff}.status-bar .status-bar-wrapper:last-child{display:flex}.status-bar .status-bar-wrapper{display:none;position:absolute;top:0;left:0;height:100%;width:100%;align-items:center;padding-left:22px;cursor:pointer;transition:background-color .3s ease;background-color:#fff;font-size:14px}.status-bar .status-bar-wrapper:hover{background-color:#84858d14}.task-list{overflow:auto;max-height:464px;padding-bottom:30px;font-size:14px;line-height:1;border-radius:0 0 5px 5px;margin:0;background:#fff;box-sizing:border-box}.task-list:before{display:block;position:sticky;content:"";height:1px;top:0;background:rgba(132,133,141,.08)}.task-list:after{display:block;position:absolute;content:"";height:1px;top:0;width:100%;z-index:2;background:#fff}.task{width:100%;height:64px;padding:14px 18px 14px 16px;position:relative;box-sizing:border-box}.task .task-desc-wrapper{display:flex;align-items:center}.task .task-file-icon{margin-right:16px}.task .task-file-icon img{width:36px;height:36px}.task .task-info{position:relative;display:flex;align-items:center}.task .task-info-wrapper{display:flex;flex-direction:column;flex:1;width:0;margin-right:20px}.task .task-file-name{font-size:14px;line-height:1.5;display:inline-block;color:#25262b;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.task .task-desc{font-size:12px;line-height:1.6;color:#25262b5c;display:flex;align-items:center}.task .task-dot{display:inline-block;padding:0 7px;align-items:center}.task .task-dot:before{content:"";display:block;width:2px;height:2px;background:rgba(37,38,43,.36)}.task .action-icon{visibility:hidden}.task :hover .action-icon{visibility:visible}.task-list-end{display:flex;font-size:12px;line-height:1.6;color:#25262b5c;justify-content:center;padding-top:8px}.n-popover{word-break:break-all}.header{height:40px;display:flex;align-items:center;margin-bottom:24px;justify-content:space-between;white-space:nowrap;flex-shrink:0;font-size:16px}.header .title{flex:1;width:0;text-overflow:ellipsis;margin-right:20px}.header .action{font-size:24px}.n-data-table-td{cursor:pointer}.n-data-table-td.modified_time,.n-data-table-th.modified_time{color:#25262b5c}.n-data-table-td.size,.n-data-table-th.szie{color:#25262b5c}.file-info{display:flex;align-items:center}.file-info img{width:28px;height:28px;margin-right:20px}.file-info .title{flex:1;width:0}.file-info .action{display:none}.list-page{padding:40px}@media (max-width: 968px){.list-page{padding:10px}.file-info img{display:none}}.list-page .loading{margin-top:20px;text-align:center;color:#25262b5c}.list-page .loading .n-spin-body{vertical-align:middle;margin-right:10px}.list-page-files{padding-bottom:80px}.list-page-files .n-data-table-td .n-space .n-text{font-size:12px}.outer-wrapper{opacity:0;position:absolute;left:50%;bottom:52px;transform:translate(-50%);z-index:5;transition:opacity .3s ease}.outer-wrapper.static{animation:move-down ease .3s}.outer-wrapper.show{opacity:1}.outer-wrapper.show.static{animation:move-up ease .3s}.toolbar-wrapper{display:-ms-flexbox;display:flex;align-items:center;padding:8px 16px;border-radius:10px;border:1px solid #84858d33;background:#000;overflow:visible;user-select:none;box-shadow:0 0 1px 1px #1c1c200d,0 8px 24px #1c1c201f}.toolbar-item{border-radius:5px;padding:6px;font-size:18px;cursor:pointer;transition:background .3s ease;color:#fff;margin-left:8px;display:flex;justify-content:center;align-items:center}.toolbar-item:first-child{margin-left:0}.tool-icon{font-size:18px}@keyframes move-down{0%{bottom:52px}to{bottom:-52px}}@keyframes move-up{0%{bottom:-52px}to{bottom:52px}} diff --git a/assets/list.859c23af.js b/assets/list.859c23af.js new file mode 100644 index 000000000..584819c94 --- /dev/null +++ b/assets/list.859c23af.js @@ -0,0 +1,6 @@ +var ts=Object.defineProperty,is=Object.defineProperties;var ss=Object.getOwnPropertyDescriptors;var it=Object.getOwnPropertySymbols;var qt=Object.prototype.hasOwnProperty,Vt=Object.prototype.propertyIsEnumerable;var zt=(e,i,t)=>i in e?ts(e,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[i]=t,Se=(e,i)=>{for(var t in i||(i={}))qt.call(i,t)&&zt(e,t,i[t]);if(it)for(var t of it(i))Vt.call(i,t)&&zt(e,t,i[t]);return e},st=(e,i)=>is(e,ss(i));var Wt=(e,i)=>{var t={};for(var s in e)qt.call(e,s)&&i.indexOf(s)<0&&(t[s]=e[s]);if(e!=null&&it)for(var s of it(e))i.indexOf(s)<0&&Vt.call(e,s)&&(t[s]=e[s]);return t};import{d as bt,a4 as Kt,r as D,o as vt,f as m,b as U,s as ee,T as Ue,a5 as qe,E as I,D as pe,n as Yt,a6 as ns,y as q,A as ge,c as Ce,a7 as Jt,e as p,w as y,M as Gt,G as as,a8 as Qt,C as ls,a9 as os,I as Q,P as fe,m as rs,l as us,aa as cs,p as ds,ab as hs,a as ms,ac as ps,ad as nt,F as Ve,S as Pe,ae as Xt,Q as ye,af as gs,ag as fs,Y as ys,ah as bs,ai as vs,aj as ws,O as Fe,ak as ks,R as xe,al as Ts,am as be,an as Cs,ao as wt,ap as Zt,U as te,H as Es,B as ze,aq as As,ar as _s,as as Ss,at as Ps}from"./vendor.64da71ad.js";import{i as re,b as ei}from"./index.08e3cc88.js";import{C as Fs}from"./clipboard.a54b99ef.js";function w(e,i,t){return i in e?Object.defineProperty(e,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[i]=t,e}function xs(e,i){if(!(e instanceof i))throw new TypeError("Cannot call a class as a function")}function ti(e,i){for(var t=0;ti){var t=Hs(i);return parseFloat(e.toFixed(t))}return Math.round(e/i)*i}var qs=function(){function e(i,t){xs(this,e),X.element(i)?this.element=i:X.string(i)&&(this.element=document.querySelector(i)),X.element(this.element)&&X.empty(this.element.rangeTouch)&&(this.config=si({},ni,{},t),this.init())}return Ns(e,[{key:"init",value:function(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect="none",this.element.style.webKitUserSelect="none",this.element.style.touchAction="manipulation"),this.listeners(!0),this.element.rangeTouch=this)}},{key:"destroy",value:function(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect="",this.element.style.webKitUserSelect="",this.element.style.touchAction=""),this.listeners(!1),this.element.rangeTouch=null)}},{key:"listeners",value:function(i){var t=this,s=i?"addEventListener":"removeEventListener";["touchstart","touchmove","touchend"].forEach(function(a){t.element[s](a,function(n){return t.set(n)},!1)})}},{key:"get",value:function(i){if(!e.enabled||!X.event(i))return null;var t,s=i.target,a=i.changedTouches[0],n=parseFloat(s.getAttribute("min"))||0,o=parseFloat(s.getAttribute("max"))||100,r=parseFloat(s.getAttribute("step"))||1,h=s.getBoundingClientRect(),d=100/h.width*(this.config.thumbWidth/2)/100;return 0>(t=100/h.width*(a.clientX-h.left))?t=0:100t?t-=(100-2*t)*d:50e!=null?e.constructor:null,ve=(e,i)=>Boolean(e&&i&&e instanceof i),Tt=e=>e==null,ci=e=>Ie(e)===Object,Vs=e=>Ie(e)===Number&&!Number.isNaN(e),at=e=>Ie(e)===String,zs=e=>Ie(e)===Boolean,di=e=>Ie(e)===Function,hi=e=>Array.isArray(e),Ws=e=>ve(e,WeakMap),mi=e=>ve(e,NodeList),Ks=e=>Ie(e)===Text,Ys=e=>ve(e,Event),Js=e=>ve(e,KeyboardEvent),Gs=e=>ve(e,window.TextTrackCue)||ve(e,window.VTTCue),Qs=e=>ve(e,TextTrack)||!Tt(e)&&at(e.kind),Xs=e=>ve(e,Promise)&&di(e.then),Zs=e=>e!==null&&typeof e=="object"&&e.nodeType===1&&typeof e.style=="object"&&typeof e.ownerDocument=="object",pi=e=>Tt(e)||(at(e)||hi(e)||mi(e))&&!e.length||ci(e)&&!Object.keys(e).length,en=e=>{if(ve(e,window.URL))return!0;if(!at(e))return!1;let i=e;e.startsWith("http://")&&e.startsWith("https://")||(i=`http://${e}`);try{return!pi(new URL(i).hostname)}catch{return!1}};var l={nullOrUndefined:Tt,object:ci,number:Vs,string:at,boolean:zs,function:di,array:hi,weakMap:Ws,nodeList:mi,element:Zs,textNode:Ks,event:Ys,keyboardEvent:Js,cue:Gs,track:Qs,promise:Xs,url:en,empty:pi};const Ct=(()=>{const e=document.createElement("span"),i={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},t=Object.keys(i).find(s=>e.style[s]!==void 0);return!!l.string(t)&&i[t]})();function gi(e,i){setTimeout(()=>{try{e.hidden=!0,e.offsetHeight,e.hidden=!1}catch{}},i)}const G={isIE:Boolean(window.document.documentMode),isEdge:window.navigator.userAgent.includes("Edge"),isWebkit:"WebkitAppearance"in document.documentElement.style&&!/Edge/.test(navigator.userAgent),isIPhone:/(iPhone|iPod)/gi.test(navigator.platform),isIos:navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1||/(iPad|iPhone|iPod)/gi.test(navigator.platform)};function tn(e){return JSON.parse(JSON.stringify(e))}function fi(e,i){return i.split(".").reduce((t,s)=>t&&t[s],e)}function K(e={},...i){if(!i.length)return e;const t=i.shift();return l.object(t)?(Object.keys(t).forEach(s=>{l.object(t[s])?(Object.keys(e).includes(s)||Object.assign(e,{[s]:{}}),K(e[s],t[s])):Object.assign(e,{[s]:t[s]})}),K(e,...i)):e}function yi(e,i){const t=e.length?e:[e];Array.from(t).reverse().forEach((s,a)=>{const n=a>0?i.cloneNode(!0):i,o=s.parentNode,r=s.nextSibling;n.appendChild(s),r?o.insertBefore(n,r):o.appendChild(n)})}function Et(e,i){l.element(e)&&!l.empty(i)&&Object.entries(i).filter(([,t])=>!l.nullOrUndefined(t)).forEach(([t,s])=>e.setAttribute(t,s))}function M(e,i,t){const s=document.createElement(e);return l.object(i)&&Et(s,i),l.string(t)&&(s.innerText=t),s}function sn(e,i){l.element(e)&&l.element(i)&&i.parentNode.insertBefore(e,i.nextSibling)}function bi(e,i,t,s){l.element(i)&&i.appendChild(M(e,t,s))}function we(e){l.nodeList(e)||l.array(e)?Array.from(e).forEach(we):l.element(e)&&l.element(e.parentNode)&&e.parentNode.removeChild(e)}function lt(e){if(!l.element(e))return;let{length:i}=e.childNodes;for(;i>0;)e.removeChild(e.lastChild),i-=1}function ot(e,i){return l.element(i)&&l.element(i.parentNode)&&l.element(e)?(i.parentNode.replaceChild(e,i),e):null}function ue(e,i){if(!l.string(e)||l.empty(e))return{};const t={},s=K({},i);return e.split(",").forEach(a=>{const n=a.trim(),o=n.replace(".",""),r=n.replace(/[[\]]/g,"").split("="),[h]=r,d=r.length>1?r[1].replace(/["']/g,""):"";switch(n.charAt(0)){case".":l.string(s.class)?t.class=`${s.class} ${o}`:t.class=o;break;case"#":t.id=n.replace("#","");break;case"[":t[h]=d}}),K(s,t)}function Ne(e,i){if(!l.element(e))return;let t=i;l.boolean(t)||(t=!e.hidden),e.hidden=t}function L(e,i,t){if(l.nodeList(e))return Array.from(e).map(s=>L(s,i,t));if(l.element(e)){let s="toggle";return t!==void 0&&(s=t?"add":"remove"),e.classList[s](i),e.classList.contains(i)}return!1}function rt(e,i){return l.element(e)&&e.classList.contains(i)}function Me(e,i){const{prototype:t}=Element;return(t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||function(){return Array.from(document.querySelectorAll(i)).includes(this)}).call(e,i)}function nn(e,i){const{prototype:t}=Element;return(t.closest||function(){let s=this;do{if(Me.matches(s,i))return s;s=s.parentElement||s.parentNode}while(s!==null&&s.nodeType===1);return null}).call(e,i)}function Le(e){return this.elements.container.querySelectorAll(e)}function Y(e){return this.elements.container.querySelector(e)}function At(e=null,i=!1){l.element(e)&&(e.focus({preventScroll:!0}),i&&L(e,this.config.classNames.tabFocus))}const vi={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"},V={audio:"canPlayType"in document.createElement("audio"),video:"canPlayType"in document.createElement("video"),check(e,i,t){const s=G.isIPhone&&t&&V.playsinline,a=V[e]||i!=="html5";return{api:a,ui:a&&V.rangeInput&&(e!=="video"||!G.isIPhone||s)}},pip:!(G.isIPhone||!l.function(M("video").webkitSetPresentationMode)&&(!document.pictureInPictureEnabled||M("video").disablePictureInPicture)),airplay:l.function(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline"in document.createElement("video"),mime(e){if(l.empty(e))return!1;const[i]=e.split("/");let t=e;if(!this.isHTML5||i!==this.type)return!1;Object.keys(vi).includes(t)&&(t+=`; codecs="${vi[e]}"`);try{return Boolean(t&&this.media.canPlayType(t).replace(/no/,""))}catch{return!1}},textTracks:"textTracks"in document.createElement("video"),rangeInput:(()=>{const e=document.createElement("input");return e.type="range",e.type==="range"})(),touch:"ontouchstart"in document.documentElement,transitions:Ct!==!1,reducedMotion:"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches},an=(()=>{let e=!1;try{const i=Object.defineProperty({},"passive",{get:()=>(e=!0,null)});window.addEventListener("test",null,i),window.removeEventListener("test",null,i)}catch{}return e})();function Oe(e,i,t,s=!1,a=!0,n=!1){if(!e||!("addEventListener"in e)||l.empty(i)||!l.function(t))return;const o=i.split(" ");let r=n;an&&(r={passive:a,capture:n}),o.forEach(h=>{this&&this.eventListeners&&s&&this.eventListeners.push({element:e,type:h,callback:t,options:r}),e[s?"addEventListener":"removeEventListener"](h,t,r)})}function O(e,i="",t,s=!0,a=!1){Oe.call(this,e,i,t,!0,s,a)}function ut(e,i="",t,s=!0,a=!1){Oe.call(this,e,i,t,!1,s,a)}function _t(e,i="",t,s=!0,a=!1){const n=(...o)=>{ut(e,i,n,s,a),t.apply(this,o)};Oe.call(this,e,i,n,!0,s,a)}function x(e,i="",t=!1,s={}){if(!l.element(e)||l.empty(i))return;const a=new CustomEvent(i,{bubbles:t,detail:st(Se({},s),{plyr:this})});e.dispatchEvent(a)}function ln(){this&&this.eventListeners&&(this.eventListeners.forEach(e=>{const{element:i,type:t,callback:s,options:a}=e;i.removeEventListener(t,s,a)}),this.eventListeners=[])}function on(){return new Promise(e=>this.ready?setTimeout(e,0):O.call(this,this.elements.container,"ready",e)).then(()=>{})}function ce(e){l.promise(e)&&e.then(null,()=>{})}function St(e){return l.array(e)?e.filter((i,t)=>e.indexOf(i)===t):e}function wi(e,i){return l.array(e)&&e.length?e.reduce((t,s)=>Math.abs(s-i)st(Se({},e),{[i/t]:[i,t]}),{});function Ci(e){return l.array(e)||l.string(e)&&e.includes(":")?(l.array(e)?e:e.split(":")).map(Number).every(l.number):!1}function ct(e){if(!l.array(e)||!e.every(l.number))return null;const[i,t]=e,s=(n,o)=>o===0?n:s(o,n%o),a=s(i,t);return[i/a,t/a]}function Pt(e){const i=s=>Ci(s)?s.split(":").map(Number):null;let t=i(e);if(t===null&&(t=i(this.config.ratio)),t===null&&!l.empty(this.embed)&&l.array(this.embed.ratio)&&({ratio:t}=this.embed),t===null&&this.isHTML5){const{videoWidth:s,videoHeight:a}=this.media;t=[s,a]}return ct(t)}function Be(e){if(!this.isVideo)return{};const{wrapper:i}=this.elements,t=Pt.call(this,e);if(!l.array(t))return{};const[s,a]=ct(t),n=100/s*a;if(ki(`aspect-ratio: ${s}/${a}`)?i.style.aspectRatio=`${s}/${a}`:i.style.paddingBottom=`${n}%`,this.isVimeo&&!this.config.vimeo.premium&&this.supported.ui){const o=100/this.media.offsetWidth*parseInt(window.getComputedStyle(this.media).paddingBottom,10),r=(o-n)/(o/50);this.fullscreen.active?i.style.paddingBottom=null:this.media.style.transform=`translateY(-${r}%)`}else this.isHTML5&&i.classList.add(this.config.classNames.videoFixedRatio);return{padding:n,ratio:t}}function Ei(e,i,t=.05){const s=e/i,a=wi(Object.keys(Ti),s);return Math.abs(a-s)<=t?Ti[a]:[e,i]}function rn(){return[Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)]}const Ee={getSources(){return this.isHTML5?Array.from(this.media.querySelectorAll("source")).filter(e=>{const i=e.getAttribute("type");return!!l.empty(i)||V.mime.call(this,i)}):[]},getQualityOptions(){return this.config.quality.forced?this.config.quality.options:Ee.getSources.call(this).map(e=>Number(e.getAttribute("size"))).filter(Boolean)},setup(){if(!this.isHTML5)return;const e=this;e.options.speed=e.config.speed.options,l.empty(this.config.ratio)||Be.call(e),Object.defineProperty(e.media,"quality",{get(){const i=Ee.getSources.call(e).find(t=>t.getAttribute("src")===e.source);return i&&Number(i.getAttribute("size"))},set(i){if(e.quality!==i){if(e.config.quality.forced&&l.function(e.config.quality.onChange))e.config.quality.onChange(i);else{const t=Ee.getSources.call(e).find(h=>Number(h.getAttribute("size"))===i);if(!t)return;const{currentTime:s,paused:a,preload:n,readyState:o,playbackRate:r}=e.media;e.media.src=t.getAttribute("src"),(n!=="none"||o)&&(e.once("loadedmetadata",()=>{e.speed=r,e.currentTime=s,a||ce(e.play())}),e.media.load())}x.call(e,e.media,"qualitychange",!1,{quality:i})}}})},cancelRequests(){this.isHTML5&&(we(Ee.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"))}};function un(e){return`${e}-${Math.floor(1e4*Math.random())}`}function Ft(e,...i){return l.empty(e)?e:e.toString().replace(/{(\d+)}/g,(t,s)=>i[s].toString())}function cn(e,i){return e===0||i===0||Number.isNaN(e)||Number.isNaN(i)?0:(e/i*100).toFixed(2)}const Ke=(e="",i="",t="")=>e.replace(new RegExp(i.toString().replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1"),"g"),t.toString()),Ai=(e="")=>e.toString().replace(/\w\S*/g,i=>i.charAt(0).toUpperCase()+i.substr(1).toLowerCase());function dn(e=""){let i=e.toString();return i=Ke(i,"-"," "),i=Ke(i,"_"," "),i=Ai(i),Ke(i," ","")}function hn(e=""){let i=e.toString();return i=dn(i),i.charAt(0).toLowerCase()+i.slice(1)}function mn(e){const i=document.createDocumentFragment(),t=document.createElement("div");return i.appendChild(t),t.innerHTML=e,i.firstChild.innerText}function pn(e){const i=document.createElement("div");return i.appendChild(e),i.innerHTML}const _i={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"},J={get(e="",i={}){if(l.empty(e)||l.empty(i))return"";let t=fi(i.i18n,e);if(l.empty(t))return Object.keys(_i).includes(e)?_i[e]:"";const s={"{seektime}":i.seekTime,"{title}":i.title};return Object.entries(s).forEach(([a,n])=>{t=Ke(t,a,n)}),t}};class Ye{constructor(i){w(this,"get",t=>{if(!Ye.supported||!this.enabled)return null;const s=window.localStorage.getItem(this.key);if(l.empty(s))return null;const a=JSON.parse(s);return l.string(t)&&t.length?a[t]:a}),w(this,"set",t=>{if(!Ye.supported||!this.enabled||!l.object(t))return;let s=this.get();l.empty(s)&&(s={}),K(s,t);try{window.localStorage.setItem(this.key,JSON.stringify(s))}catch{}}),this.enabled=i.config.storage.enabled,this.key=i.config.storage.key}static get supported(){try{if(!("localStorage"in window))return!1;const i="___test";return window.localStorage.setItem(i,i),window.localStorage.removeItem(i),!0}catch{return!1}}}function Je(e,i="text"){return new Promise((t,s)=>{try{const a=new XMLHttpRequest;if(!("withCredentials"in a))return;a.addEventListener("load",()=>{if(i==="text")try{t(JSON.parse(a.responseText))}catch{t(a.responseText)}else t(a.response)}),a.addEventListener("error",()=>{throw new Error(a.status)}),a.open("GET",e,!0),a.responseType=i,a.send()}catch(a){s(a)}})}function Si(e,i){if(!l.string(e))return;const t=l.string(i);let s=!1;const a=()=>document.getElementById(i)!==null,n=(o,r)=>{o.innerHTML=r,t&&a()||document.body.insertAdjacentElement("afterbegin",o)};if(!t||!a()){const o=Ye.supported,r=document.createElement("div");if(r.setAttribute("hidden",""),t&&r.setAttribute("id",i),o){const h=window.localStorage.getItem(`cache-${i}`);if(s=h!==null,s){const d=JSON.parse(h);n(r,d.content)}}Je(e).then(h=>{if(!l.empty(h)){if(o)try{window.localStorage.setItem(`cache-${i}`,JSON.stringify({content:h}))}catch{}n(r,h)}}).catch(()=>{})}}const Pi=e=>Math.trunc(e/60/60%60,10),gn=e=>Math.trunc(e%60,10);function dt(e=0,i=!1,t=!1){if(!l.number(e))return dt(void 0,i,t);const s=h=>`0${h}`.slice(-2);let a=Pi(e);const n=(o=e,Math.trunc(o/60%60,10));var o;const r=gn(e);return a=i||a>0?`${a}:`:"",`${t&&e>0?"-":""}${a}${s(n)}:${s(r)}`}const k={getIconUrl(){const e=new URL(this.config.iconUrl,window.location),i=window.location.host?window.location.host:window.top.location.host,t=e.host!==i||G.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:t}},findElements(){try{return this.elements.controls=Y.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:Le.call(this,this.config.selectors.buttons.play),pause:Y.call(this,this.config.selectors.buttons.pause),restart:Y.call(this,this.config.selectors.buttons.restart),rewind:Y.call(this,this.config.selectors.buttons.rewind),fastForward:Y.call(this,this.config.selectors.buttons.fastForward),mute:Y.call(this,this.config.selectors.buttons.mute),pip:Y.call(this,this.config.selectors.buttons.pip),airplay:Y.call(this,this.config.selectors.buttons.airplay),settings:Y.call(this,this.config.selectors.buttons.settings),captions:Y.call(this,this.config.selectors.buttons.captions),fullscreen:Y.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=Y.call(this,this.config.selectors.progress),this.elements.inputs={seek:Y.call(this,this.config.selectors.inputs.seek),volume:Y.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:Y.call(this,this.config.selectors.display.buffer),currentTime:Y.call(this,this.config.selectors.display.currentTime),duration:Y.call(this,this.config.selectors.display.duration)},l.element(this.elements.progress)&&(this.elements.display.seekTooltip=this.elements.progress.querySelector(`.${this.config.classNames.tooltip}`)),!0}catch(e){return this.debug.warn("It looks like there is a problem with your custom controls HTML",e),this.toggleNativeControls(!0),!1}},createIcon(e,i){const t="http://www.w3.org/2000/svg",s=k.getIconUrl.call(this),a=`${s.cors?"":s.url}#${this.config.iconPrefix}`,n=document.createElementNS(t,"svg");Et(n,K(i,{"aria-hidden":"true",focusable:"false"}));const o=document.createElementNS(t,"use"),r=`${a}-${e}`;return"href"in o&&o.setAttributeNS("http://www.w3.org/1999/xlink","href",r),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r),n.appendChild(o),n},createLabel(e,i={}){const t=J.get(e,this.config);return M("span",st(Se({},i),{class:[i.class,this.config.classNames.hidden].filter(Boolean).join(" ")}),t)},createBadge(e){if(l.empty(e))return null;const i=M("span",{class:this.config.classNames.menu.value});return i.appendChild(M("span",{class:this.config.classNames.menu.badge},e)),i},createButton(e,i){const t=K({},i);let s=hn(e);const a={element:"button",toggle:!1,label:null,icon:null,labelPressed:null,iconPressed:null};switch(["element","icon","label"].forEach(o=>{Object.keys(t).includes(o)&&(a[o]=t[o],delete t[o])}),a.element!=="button"||Object.keys(t).includes("type")||(t.type="button"),Object.keys(t).includes("class")?t.class.split(" ").some(o=>o===this.config.classNames.control)||K(t,{class:`${t.class} ${this.config.classNames.control}`}):t.class=this.config.classNames.control,e){case"play":a.toggle=!0,a.label="play",a.labelPressed="pause",a.icon="play",a.iconPressed="pause";break;case"mute":a.toggle=!0,a.label="mute",a.labelPressed="unmute",a.icon="volume",a.iconPressed="muted";break;case"captions":a.toggle=!0,a.label="enableCaptions",a.labelPressed="disableCaptions",a.icon="captions-off",a.iconPressed="captions-on";break;case"fullscreen":a.toggle=!0,a.label="enterFullscreen",a.labelPressed="exitFullscreen",a.icon="enter-fullscreen",a.iconPressed="exit-fullscreen";break;case"play-large":t.class+=` ${this.config.classNames.control}--overlaid`,s="play",a.label="play",a.icon="play";break;default:l.empty(a.label)&&(a.label=s),l.empty(a.icon)&&(a.icon=e)}const n=M(a.element);return a.toggle?(n.appendChild(k.createIcon.call(this,a.iconPressed,{class:"icon--pressed"})),n.appendChild(k.createIcon.call(this,a.icon,{class:"icon--not-pressed"})),n.appendChild(k.createLabel.call(this,a.labelPressed,{class:"label--pressed"})),n.appendChild(k.createLabel.call(this,a.label,{class:"label--not-pressed"}))):(n.appendChild(k.createIcon.call(this,a.icon)),n.appendChild(k.createLabel.call(this,a.label))),K(t,ue(this.config.selectors.buttons[s],t)),Et(n,t),s==="play"?(l.array(this.elements.buttons[s])||(this.elements.buttons[s]=[]),this.elements.buttons[s].push(n)):this.elements.buttons[s]=n,n},createRange(e,i){const t=M("input",K(ue(this.config.selectors.inputs[e]),{type:"range",min:0,max:100,step:.01,value:0,autocomplete:"off",role:"slider","aria-label":J.get(e,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},i));return this.elements.inputs[e]=t,k.updateRangeFill.call(this,t),qs.setup(t),t},createProgress(e,i){const t=M("progress",K(ue(this.config.selectors.display[e]),{min:0,max:100,value:0,role:"progressbar","aria-hidden":!0},i));if(e!=="volume"){t.appendChild(M("span",null,"0"));const s={played:"played",buffer:"buffered"}[e],a=s?J.get(s,this.config):"";t.innerText=`% ${a.toLowerCase()}`}return this.elements.display[e]=t,t},createTime(e,i){const t=ue(this.config.selectors.display[e],i),s=M("div",K(t,{class:`${t.class?t.class:""} ${this.config.classNames.display.time} `.trim(),"aria-label":J.get(e,this.config)}),"00:00");return this.elements.display[e]=s,s},bindMenuItemShortcuts(e,i){O.call(this,e,"keydown keyup",t=>{if(![32,38,39,40].includes(t.which)||(t.preventDefault(),t.stopPropagation(),t.type==="keydown"))return;const s=Me(e,'[role="menuitemradio"]');if(!s&&[32,39].includes(t.which))k.showMenuPanel.call(this,i,!0);else{let a;t.which!==32&&(t.which===40||s&&t.which===39?(a=e.nextElementSibling,l.element(a)||(a=e.parentNode.firstElementChild)):(a=e.previousElementSibling,l.element(a)||(a=e.parentNode.lastElementChild)),At.call(this,a,!0))}},!1),O.call(this,e,"keyup",t=>{t.which===13&&k.focusFirstMenuItem.call(this,null,!0)})},createMenuItem({value:e,list:i,type:t,title:s,badge:a=null,checked:n=!1}){const o=ue(this.config.selectors.inputs[t]),r=M("button",K(o,{type:"button",role:"menuitemradio",class:`${this.config.classNames.control} ${o.class?o.class:""}`.trim(),"aria-checked":n,value:e})),h=M("span");h.innerHTML=s,l.element(a)&&h.appendChild(a),r.appendChild(h),Object.defineProperty(r,"checked",{enumerable:!0,get:()=>r.getAttribute("aria-checked")==="true",set(d){d&&Array.from(r.parentNode.children).filter(v=>Me(v,'[role="menuitemradio"]')).forEach(v=>v.setAttribute("aria-checked","false")),r.setAttribute("aria-checked",d?"true":"false")}}),this.listeners.bind(r,"click keyup",d=>{if(!l.keyboardEvent(d)||d.which===32){switch(d.preventDefault(),d.stopPropagation(),r.checked=!0,t){case"language":this.currentTrack=Number(e);break;case"quality":this.quality=e;break;case"speed":this.speed=parseFloat(e)}k.showMenuPanel.call(this,"home",l.keyboardEvent(d))}},t,!1),k.bindMenuItemShortcuts.call(this,r,t),i.appendChild(r)},formatTime(e=0,i=!1){return l.number(e)?dt(e,Pi(this.duration)>0,i):e},updateTimeDisplay(e=null,i=0,t=!1){l.element(e)&&l.number(i)&&(e.innerText=k.formatTime(i,t))},updateVolume(){this.supported.ui&&(l.element(this.elements.inputs.volume)&&k.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),l.element(this.elements.buttons.mute)&&(this.elements.buttons.mute.pressed=this.muted||this.volume===0))},setRange(e,i=0){l.element(e)&&(e.value=i,k.updateRangeFill.call(this,e))},updateProgress(e){if(!this.supported.ui||!l.event(e))return;let i=0;const t=(s,a)=>{const n=l.number(a)?a:0,o=l.element(s)?s:this.elements.display.buffer;if(l.element(o)){o.value=n;const r=o.getElementsByTagName("span")[0];l.element(r)&&(r.childNodes[0].nodeValue=n)}};if(e)switch(e.type){case"timeupdate":case"seeking":case"seeked":i=cn(this.currentTime,this.duration),e.type==="timeupdate"&&k.setRange.call(this,this.elements.inputs.seek,i);break;case"playing":case"progress":t(this.elements.display.buffer,100*this.buffered)}},updateRangeFill(e){const i=l.event(e)?e.target:e;if(l.element(i)&&i.getAttribute("type")==="range"){if(Me(i,this.config.selectors.inputs.seek)){i.setAttribute("aria-valuenow",this.currentTime);const t=k.formatTime(this.currentTime),s=k.formatTime(this.duration),a=J.get("seekLabel",this.config);i.setAttribute("aria-valuetext",a.replace("{currentTime}",t).replace("{duration}",s))}else if(Me(i,this.config.selectors.inputs.volume)){const t=100*i.value;i.setAttribute("aria-valuenow",t),i.setAttribute("aria-valuetext",`${t.toFixed(1)}%`)}else i.setAttribute("aria-valuenow",i.value);G.isWebkit&&i.style.setProperty("--value",i.value/i.max*100+"%")}},updateSeekTooltip(e){if(!this.config.tooltips.seek||!l.element(this.elements.inputs.seek)||!l.element(this.elements.display.seekTooltip)||this.duration===0)return;const i=`${this.config.classNames.tooltip}--visible`,t=n=>L(this.elements.display.seekTooltip,i,n);if(this.touch)return void t(!1);let s=0;const a=this.elements.progress.getBoundingClientRect();if(l.event(e))s=100/a.width*(e.pageX-a.left);else{if(!rt(this.elements.display.seekTooltip,i))return;s=parseFloat(this.elements.display.seekTooltip.style.left,10)}s<0?s=0:s>100&&(s=100),k.updateTimeDisplay.call(this,this.elements.display.seekTooltip,this.duration/100*s),this.elements.display.seekTooltip.style.left=`${s}%`,l.event(e)&&["mouseenter","mouseleave"].includes(e.type)&&t(e.type==="mouseenter")},timeUpdate(e){const i=!l.element(this.elements.display.duration)&&this.config.invertTime;k.updateTimeDisplay.call(this,this.elements.display.currentTime,i?this.duration-this.currentTime:this.currentTime,i),e&&e.type==="timeupdate"&&this.media.seeking||k.updateProgress.call(this,e)},durationUpdate(){if(!this.supported.ui||!this.config.invertTime&&this.currentTime)return;if(this.duration>=2**32)return Ne(this.elements.display.currentTime,!0),void Ne(this.elements.progress,!0);l.element(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);const e=l.element(this.elements.display.duration);!e&&this.config.displayDuration&&this.paused&&k.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),e&&k.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),k.updateSeekTooltip.call(this)},toggleMenuButton(e,i){Ne(this.elements.settings.buttons[e],!i)},updateSetting(e,i,t){const s=this.elements.settings.panels[e];let a=null,n=i;if(e==="captions")a=this.currentTrack;else{if(a=l.empty(t)?this[e]:t,l.empty(a)&&(a=this.config[e].default),!l.empty(this.options[e])&&!this.options[e].includes(a))return void this.debug.warn(`Unsupported value of '${a}' for ${e}`);if(!this.config[e].options.includes(a))return void this.debug.warn(`Disabled value of '${a}' for ${e}`)}if(l.element(n)||(n=s&&s.querySelector('[role="menu"]')),!l.element(n))return;this.elements.settings.buttons[e].querySelector(`.${this.config.classNames.menu.value}`).innerHTML=k.getLabel.call(this,e,a);const o=n&&n.querySelector(`[value="${a}"]`);l.element(o)&&(o.checked=!0)},getLabel(e,i){switch(e){case"speed":return i===1?J.get("normal",this.config):`${i}×`;case"quality":if(l.number(i)){const t=J.get(`qualityLabel.${i}`,this.config);return t.length?t:`${i}p`}return Ai(i);case"captions":return B.getLabel.call(this);default:return null}},setQualityMenu(e){if(!l.element(this.elements.settings.panels.quality))return;const i="quality",t=this.elements.settings.panels.quality.querySelector('[role="menu"]');l.array(e)&&(this.options.quality=St(e).filter(n=>this.config.quality.options.includes(n)));const s=!l.empty(this.options.quality)&&this.options.quality.length>1;if(k.toggleMenuButton.call(this,i,s),lt(t),k.checkMenu.call(this),!s)return;const a=n=>{const o=J.get(`qualityBadge.${n}`,this.config);return o.length?k.createBadge.call(this,o):null};this.options.quality.sort((n,o)=>{const r=this.config.quality.options;return r.indexOf(n)>r.indexOf(o)?1:-1}).forEach(n=>{k.createMenuItem.call(this,{value:n,list:t,type:i,title:k.getLabel.call(this,"quality",n),badge:a(n)})}),k.updateSetting.call(this,i,t)},setCaptionsMenu(){if(!l.element(this.elements.settings.panels.captions))return;const e="captions",i=this.elements.settings.panels.captions.querySelector('[role="menu"]'),t=B.getTracks.call(this),s=Boolean(t.length);if(k.toggleMenuButton.call(this,e,s),lt(i),k.checkMenu.call(this),!s)return;const a=t.map((n,o)=>({value:o,checked:this.captions.toggled&&this.currentTrack===o,title:B.getLabel.call(this,n),badge:n.language&&k.createBadge.call(this,n.language.toUpperCase()),list:i,type:"language"}));a.unshift({value:-1,checked:!this.captions.toggled,title:J.get("disabled",this.config),list:i,type:"language"}),a.forEach(k.createMenuItem.bind(this)),k.updateSetting.call(this,e,i)},setSpeedMenu(){if(!l.element(this.elements.settings.panels.speed))return;const e="speed",i=this.elements.settings.panels.speed.querySelector('[role="menu"]');this.options.speed=this.options.speed.filter(s=>s>=this.minimumSpeed&&s<=this.maximumSpeed);const t=!l.empty(this.options.speed)&&this.options.speed.length>1;k.toggleMenuButton.call(this,e,t),lt(i),k.checkMenu.call(this),t&&(this.options.speed.forEach(s=>{k.createMenuItem.call(this,{value:s,list:i,type:e,title:k.getLabel.call(this,"speed",s)})}),k.updateSetting.call(this,e,i))},checkMenu(){const{buttons:e}=this.elements.settings,i=!l.empty(e)&&Object.values(e).some(t=>!t.hidden);Ne(this.elements.settings.menu,!i)},focusFirstMenuItem(e,i=!1){if(this.elements.settings.popup.hidden)return;let t=e;l.element(t)||(t=Object.values(this.elements.settings.panels).find(a=>!a.hidden));const s=t.querySelector('[role^="menuitem"]');At.call(this,s,i)},toggleMenu(e){const{popup:i}=this.elements.settings,t=this.elements.buttons.settings;if(!l.element(i)||!l.element(t))return;const{hidden:s}=i;let a=s;if(l.boolean(e))a=e;else if(l.keyboardEvent(e)&&e.which===27)a=!1;else if(l.event(e)){const n=l.function(e.composedPath)?e.composedPath()[0]:e.target,o=i.contains(n);if(o||!o&&e.target!==t&&a)return}t.setAttribute("aria-expanded",a),Ne(i,!a),L(this.elements.container,this.config.classNames.menu.open,a),a&&l.keyboardEvent(e)?k.focusFirstMenuItem.call(this,null,!0):a||s||At.call(this,t,l.keyboardEvent(e))},getMenuSize(e){const i=e.cloneNode(!0);i.style.position="absolute",i.style.opacity=0,i.removeAttribute("hidden"),e.parentNode.appendChild(i);const t=i.scrollWidth,s=i.scrollHeight;return we(i),{width:t,height:s}},showMenuPanel(e="",i=!1){const t=this.elements.container.querySelector(`#plyr-settings-${this.id}-${e}`);if(!l.element(t))return;const s=t.parentNode,a=Array.from(s.children).find(n=>!n.hidden);if(V.transitions&&!V.reducedMotion){s.style.width=`${a.scrollWidth}px`,s.style.height=`${a.scrollHeight}px`;const n=k.getMenuSize.call(this,t),o=r=>{r.target===s&&["width","height"].includes(r.propertyName)&&(s.style.width="",s.style.height="",ut.call(this,s,Ct,o))};O.call(this,s,Ct,o),s.style.width=`${n.width}px`,s.style.height=`${n.height}px`}Ne(a,!0),Ne(t,!1),k.focusFirstMenuItem.call(this,t,i)},setDownloadUrl(){const e=this.elements.buttons.download;l.element(e)&&e.setAttribute("href",this.download)},create(e){const{bindMenuItemShortcuts:i,createButton:t,createProgress:s,createRange:a,createTime:n,setQualityMenu:o,setSpeedMenu:r,showMenuPanel:h}=k;this.elements.controls=null,l.array(this.config.controls)&&this.config.controls.includes("play-large")&&this.elements.container.appendChild(t.call(this,"play-large"));const d=M("div",ue(this.config.selectors.controls.wrapper));this.elements.controls=d;const v={class:"plyr__controls__item"};return St(l.array(this.config.controls)?this.config.controls:[]).forEach(T=>{if(T==="restart"&&d.appendChild(t.call(this,"restart",v)),T==="rewind"&&d.appendChild(t.call(this,"rewind",v)),T==="play"&&d.appendChild(t.call(this,"play",v)),T==="fast-forward"&&d.appendChild(t.call(this,"fast-forward",v)),T==="progress"){const b=M("div",{class:`${v.class} plyr__progress__container`}),_=M("div",ue(this.config.selectors.progress));if(_.appendChild(a.call(this,"seek",{id:`plyr-seek-${e.id}`})),_.appendChild(s.call(this,"buffer")),this.config.tooltips.seek){const A=M("span",{class:this.config.classNames.tooltip},"00:00");_.appendChild(A),this.elements.display.seekTooltip=A}this.elements.progress=_,b.appendChild(this.elements.progress),d.appendChild(b)}if(T==="current-time"&&d.appendChild(n.call(this,"currentTime",v)),T==="duration"&&d.appendChild(n.call(this,"duration",v)),T==="mute"||T==="volume"){let{volume:b}=this.elements;if(l.element(b)&&d.contains(b)||(b=M("div",K({},v,{class:`${v.class} plyr__volume`.trim()})),this.elements.volume=b,d.appendChild(b)),T==="mute"&&b.appendChild(t.call(this,"mute")),T==="volume"&&!G.isIos){const _={max:1,step:.05,value:this.config.volume};b.appendChild(a.call(this,"volume",K(_,{id:`plyr-volume-${e.id}`})))}}if(T==="captions"&&d.appendChild(t.call(this,"captions",v)),T==="settings"&&!l.empty(this.config.settings)){const b=M("div",K({},v,{class:`${v.class} plyr__menu`.trim(),hidden:""}));b.appendChild(t.call(this,"settings",{"aria-haspopup":!0,"aria-controls":`plyr-settings-${e.id}`,"aria-expanded":!1}));const _=M("div",{class:"plyr__menu__container",id:`plyr-settings-${e.id}`,hidden:""}),A=M("div"),C=M("div",{id:`plyr-settings-${e.id}-home`}),N=M("div",{role:"menu"});C.appendChild(N),A.appendChild(C),this.elements.settings.panels.home=C,this.config.settings.forEach(E=>{const $=M("button",K(ue(this.config.selectors.buttons.settings),{type:"button",class:`${this.config.classNames.control} ${this.config.classNames.control}--forward`,role:"menuitem","aria-haspopup":!0,hidden:""}));i.call(this,$,E),O.call(this,$,"click",()=>{h.call(this,E,!1)});const f=M("span",null,J.get(E,this.config)),F=M("span",{class:this.config.classNames.menu.value});F.innerHTML=e[E],f.appendChild(F),$.appendChild(f),N.appendChild($);const j=M("div",{id:`plyr-settings-${e.id}-${E}`,hidden:""}),z=M("button",{type:"button",class:`${this.config.classNames.control} ${this.config.classNames.control}--back`});z.appendChild(M("span",{"aria-hidden":!0},J.get(E,this.config))),z.appendChild(M("span",{class:this.config.classNames.hidden},J.get("menuBack",this.config))),O.call(this,j,"keydown",W=>{W.which===37&&(W.preventDefault(),W.stopPropagation(),h.call(this,"home",!0))},!1),O.call(this,z,"click",()=>{h.call(this,"home",!1)}),j.appendChild(z),j.appendChild(M("div",{role:"menu"})),A.appendChild(j),this.elements.settings.buttons[E]=$,this.elements.settings.panels[E]=j}),_.appendChild(A),b.appendChild(_),d.appendChild(b),this.elements.settings.popup=_,this.elements.settings.menu=b}if(T==="pip"&&V.pip&&d.appendChild(t.call(this,"pip",v)),T==="airplay"&&V.airplay&&d.appendChild(t.call(this,"airplay",v)),T==="download"){const b=K({},v,{element:"a",href:this.download,target:"_blank"});this.isHTML5&&(b.download="");const{download:_}=this.config.urls;!l.url(_)&&this.isEmbed&&K(b,{icon:`logo-${this.provider}`,label:this.provider}),d.appendChild(t.call(this,"download",b))}T==="fullscreen"&&d.appendChild(t.call(this,"fullscreen",v))}),this.isHTML5&&o.call(this,Ee.getQualityOptions.call(this)),r.call(this),d},inject(){if(this.config.loadSprite){const a=k.getIconUrl.call(this);a.cors&&Si(a.url,"sprite-plyr")}this.id=Math.floor(1e4*Math.random());let e=null;this.elements.controls=null;const i={id:this.id,seektime:this.config.seekTime,title:this.config.title};let t=!0;l.function(this.config.controls)&&(this.config.controls=this.config.controls.call(this,i)),this.config.controls||(this.config.controls=[]),l.element(this.config.controls)||l.string(this.config.controls)?e=this.config.controls:(e=k.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:B.getLabel.call(this)}),t=!1);let s;if(t&&l.string(this.config.controls)&&(e=(a=>{let n=a;return Object.entries(i).forEach(([o,r])=>{n=Ke(n,`{${o}}`,r)}),n})(e)),l.string(this.config.selectors.controls.container)&&(s=document.querySelector(this.config.selectors.controls.container)),l.element(s)||(s=this.elements.container),s[l.element(e)?"insertAdjacentElement":"insertAdjacentHTML"]("afterbegin",e),l.element(this.elements.controls)||k.findElements.call(this),!l.empty(this.elements.buttons)){const a=n=>{const o=this.config.classNames.controlPressed;Object.defineProperty(n,"pressed",{enumerable:!0,get:()=>rt(n,o),set(r=!1){L(n,o,r)}})};Object.values(this.elements.buttons).filter(Boolean).forEach(n=>{l.array(n)||l.nodeList(n)?Array.from(n).filter(Boolean).forEach(a):a(n)})}if(G.isEdge&&gi(s),this.config.tooltips.controls){const{classNames:a,selectors:n}=this.config,o=`${n.controls.wrapper} ${n.labels} .${a.hidden}`,r=Le.call(this,o);Array.from(r).forEach(h=>{L(h,this.config.classNames.hidden,!1),L(h,this.config.classNames.tooltip,!0)})}}};function Fi(e,i=!0){let t=e;if(i){const s=document.createElement("a");s.href=t,t=s.href}try{return new URL(t)}catch{return null}}function xi(e){const i=new URLSearchParams;return l.object(e)&&Object.entries(e).forEach(([t,s])=>{i.set(t,s)}),i}const B={setup(){if(!this.supported.ui)return;if(!this.isVideo||this.isYouTube||this.isHTML5&&!V.textTracks)return void(l.array(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&k.setCaptionsMenu.call(this));if(l.element(this.elements.captions)||(this.elements.captions=M("div",ue(this.config.selectors.captions)),sn(this.elements.captions,this.elements.wrapper)),G.isIE&&window.URL){const s=this.media.querySelectorAll("track");Array.from(s).forEach(a=>{const n=a.getAttribute("src"),o=Fi(n);o!==null&&o.hostname!==window.location.href.hostname&&["http:","https:"].includes(o.protocol)&&Je(n,"blob").then(r=>{a.setAttribute("src",window.URL.createObjectURL(r))}).catch(()=>{we(a)})})}const e=St((navigator.languages||[navigator.language||navigator.userLanguage||"en"]).map(s=>s.split("-")[0]));let i=(this.storage.get("language")||this.config.captions.language||"auto").toLowerCase();i==="auto"&&([i]=e);let t=this.storage.get("captions");if(l.boolean(t)||({active:t}=this.config.captions),Object.assign(this.captions,{toggled:!1,active:t,language:i,languages:e}),this.isHTML5){const s=this.config.captions.update?"addtrack removetrack":"removetrack";O.call(this,this.media.textTracks,s,B.update.bind(this))}setTimeout(B.update.bind(this),0)},update(){const e=B.getTracks.call(this,!0),{active:i,language:t,meta:s,currentTrackNode:a}=this.captions,n=Boolean(e.find(o=>o.language===t));this.isHTML5&&this.isVideo&&e.filter(o=>!s.get(o)).forEach(o=>{this.debug.log("Track added",o),s.set(o,{default:o.mode==="showing"}),o.mode==="showing"&&(o.mode="hidden"),O.call(this,o,"cuechange",()=>B.updateCues.call(this))}),(n&&this.language!==t||!e.includes(a))&&(B.setLanguage.call(this,t),B.toggle.call(this,i&&n)),this.elements&&L(this.elements.container,this.config.classNames.captions.enabled,!l.empty(e)),l.array(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&k.setCaptionsMenu.call(this)},toggle(e,i=!0){if(!this.supported.ui)return;const{toggled:t}=this.captions,s=this.config.classNames.captions.active,a=l.nullOrUndefined(e)?!t:e;if(a!==t){if(i||(this.captions.active=a,this.storage.set({captions:a})),!this.language&&a&&!i){const n=B.getTracks.call(this),o=B.findTrack.call(this,[this.captions.language,...this.captions.languages],!0);return this.captions.language=o.language,void B.set.call(this,n.indexOf(o))}this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=a),L(this.elements.container,s,a),this.captions.toggled=a,k.updateSetting.call(this,"captions"),x.call(this,this.media,a?"captionsenabled":"captionsdisabled")}setTimeout(()=>{a&&this.captions.toggled&&(this.captions.currentTrackNode.mode="hidden")})},set(e,i=!0){const t=B.getTracks.call(this);if(e!==-1)if(l.number(e))if(e in t){if(this.captions.currentTrack!==e){this.captions.currentTrack=e;const s=t[e],{language:a}=s||{};this.captions.currentTrackNode=s,k.updateSetting.call(this,"captions"),i||(this.captions.language=a,this.storage.set({language:a})),this.isVimeo&&this.embed.enableTextTrack(a),x.call(this,this.media,"languagechange")}B.toggle.call(this,!0,i),this.isHTML5&&this.isVideo&&B.updateCues.call(this)}else this.debug.warn("Track not found",e);else this.debug.warn("Invalid caption argument",e);else B.toggle.call(this,!1,i)},setLanguage(e,i=!0){if(!l.string(e))return void this.debug.warn("Invalid language argument",e);const t=e.toLowerCase();this.captions.language=t;const s=B.getTracks.call(this),a=B.findTrack.call(this,[t]);B.set.call(this,s.indexOf(a),i)},getTracks(e=!1){return Array.from((this.media||{}).textTracks||[]).filter(i=>!this.isHTML5||e||this.captions.meta.has(i)).filter(i=>["captions","subtitles"].includes(i.kind))},findTrack(e,i=!1){const t=B.getTracks.call(this),s=o=>Number((this.captions.meta.get(o)||{}).default),a=Array.from(t).sort((o,r)=>s(r)-s(o));let n;return e.every(o=>(n=a.find(r=>r.language===o),!n)),n||(i?a[0]:void 0)},getCurrentTrack(){return B.getTracks.call(this)[this.currentTrack]},getLabel(e){let i=e;return!l.track(i)&&V.textTracks&&this.captions.toggled&&(i=B.getCurrentTrack.call(this)),l.track(i)?l.empty(i.label)?l.empty(i.language)?J.get("enabled",this.config):e.language.toUpperCase():i.label:J.get("disabled",this.config)},updateCues(e){if(!this.supported.ui)return;if(!l.element(this.elements.captions))return void this.debug.warn("No captions element to render to");if(!l.nullOrUndefined(e)&&!Array.isArray(e))return void this.debug.warn("updateCues: Invalid input",e);let i=e;if(!i){const s=B.getCurrentTrack.call(this);i=Array.from((s||{}).activeCues||[]).map(a=>a.getCueAsHTML()).map(pn)}const t=i.map(s=>s.trim()).join(` +`);if(t!==this.elements.captions.innerHTML){lt(this.elements.captions);const s=M("span",ue(this.config.selectors.caption));s.innerHTML=t,this.elements.captions.appendChild(s),x.call(this,this.media,"cuechange")}}},Ni={enabled:!0,title:"",debug:!1,autoplay:!1,autopause:!0,playsinline:!0,seekTime:10,volume:1,muted:!1,duration:null,displayDuration:!0,invertTime:!0,toggleInvert:!0,ratio:null,clickToPlay:!0,hideControls:!0,resetOnEnd:!1,disableContextMenu:!0,loadSprite:!0,iconPrefix:"plyr",iconUrl:"https://cdn.plyr.io/3.6.9/plyr.svg",blankVideo:"https://cdn.plyr.io/static/blank.mp4",quality:{default:576,options:[4320,2880,2160,1440,1080,720,576,480,360,240],forced:!1,onChange:null},loop:{active:!1},speed:{selected:1,options:[.5,.75,1,1.25,1.5,1.75,2,4]},keyboard:{focused:!0,global:!1},tooltips:{controls:!1,seek:!0},captions:{active:!1,language:"auto",update:!1},fullscreen:{enabled:!0,fallback:!0,iosNative:!1},storage:{enabled:!0,key:"plyr"},controls:["play-large","play","progress","current-time","mute","volume","captions","settings","pip","airplay","fullscreen"],settings:["captions","quality","speed"],i18n:{restart:"Restart",rewind:"Rewind {seektime}s",play:"Play",pause:"Pause",fastForward:"Forward {seektime}s",seek:"Seek",seekLabel:"{currentTime} of {duration}",played:"Played",buffered:"Buffered",currentTime:"Current time",duration:"Duration",volume:"Volume",mute:"Mute",unmute:"Unmute",enableCaptions:"Enable captions",disableCaptions:"Disable captions",download:"Download",enterFullscreen:"Enter fullscreen",exitFullscreen:"Exit fullscreen",frameTitle:"Player for {title}",captions:"Captions",settings:"Settings",pip:"PIP",menuBack:"Go back to previous menu",speed:"Speed",normal:"Normal",quality:"Quality",loop:"Loop",start:"Start",end:"End",all:"All",reset:"Reset",disabled:"Disabled",enabled:"Enabled",advertisement:"Ad",qualityBadge:{2160:"4K",1440:"HD",1080:"HD",720:"HD",576:"SD",480:"SD"}},urls:{download:null,vimeo:{sdk:"https://player.vimeo.com/api/player.js",iframe:"https://player.vimeo.com/video/{0}?{1}",api:"https://vimeo.com/api/oembed.json?url={0}"},youtube:{sdk:"https://www.youtube.com/iframe_api",api:"https://noembed.com/embed?url=https://www.youtube.com/watch?v={0}"},googleIMA:{sdk:"https://imasdk.googleapis.com/js/sdkloader/ima3.js"}},listeners:{seek:null,play:null,pause:null,restart:null,rewind:null,fastForward:null,mute:null,volume:null,captions:null,download:null,fullscreen:null,pip:null,airplay:null,speed:null,quality:null,loop:null,language:null},events:["ended","progress","stalled","playing","waiting","canplay","canplaythrough","loadstart","loadeddata","loadedmetadata","timeupdate","volumechange","play","pause","error","seeking","seeked","emptied","ratechange","cuechange","download","enterfullscreen","exitfullscreen","captionsenabled","captionsdisabled","languagechange","controlshidden","controlsshown","ready","statechange","qualitychange","adsloaded","adscontentpause","adscontentresume","adstarted","adsmidpoint","adscomplete","adsallcomplete","adsimpression","adsclick"],selectors:{editable:"input, textarea, select, [contenteditable]",container:".plyr",controls:{container:null,wrapper:".plyr__controls"},labels:"[data-plyr]",buttons:{play:'[data-plyr="play"]',pause:'[data-plyr="pause"]',restart:'[data-plyr="restart"]',rewind:'[data-plyr="rewind"]',fastForward:'[data-plyr="fast-forward"]',mute:'[data-plyr="mute"]',captions:'[data-plyr="captions"]',download:'[data-plyr="download"]',fullscreen:'[data-plyr="fullscreen"]',pip:'[data-plyr="pip"]',airplay:'[data-plyr="airplay"]',settings:'[data-plyr="settings"]',loop:'[data-plyr="loop"]'},inputs:{seek:'[data-plyr="seek"]',volume:'[data-plyr="volume"]',speed:'[data-plyr="speed"]',language:'[data-plyr="language"]',quality:'[data-plyr="quality"]'},display:{currentTime:".plyr__time--current",duration:".plyr__time--duration",buffer:".plyr__progress__buffer",loop:".plyr__progress__loop",volume:".plyr__volume--display"},progress:".plyr__progress",captions:".plyr__captions",caption:".plyr__caption"},classNames:{type:"plyr--{0}",provider:"plyr--{0}",video:"plyr__video-wrapper",embed:"plyr__video-embed",videoFixedRatio:"plyr__video-wrapper--fixed-ratio",embedContainer:"plyr__video-embed__container",poster:"plyr__poster",posterEnabled:"plyr__poster-enabled",ads:"plyr__ads",control:"plyr__control",controlPressed:"plyr__control--pressed",playing:"plyr--playing",paused:"plyr--paused",stopped:"plyr--stopped",loading:"plyr--loading",hover:"plyr--hover",tooltip:"plyr__tooltip",cues:"plyr__cues",hidden:"plyr__sr-only",hideControls:"plyr--hide-controls",isIos:"plyr--is-ios",isTouch:"plyr--is-touch",uiSupported:"plyr--full-ui",noTransition:"plyr--no-transition",display:{time:"plyr__time"},menu:{value:"plyr__menu__value",badge:"plyr__badge",open:"plyr--menu-open"},captions:{enabled:"plyr--captions-enabled",active:"plyr--captions-active"},fullscreen:{enabled:"plyr--fullscreen-enabled",fallback:"plyr--fullscreen-fallback"},pip:{supported:"plyr--pip-supported",active:"plyr--pip-active"},airplay:{supported:"plyr--airplay-supported",active:"plyr--airplay-active"},tabFocus:"plyr__tab-focus",previewThumbnails:{thumbContainer:"plyr__preview-thumb",thumbContainerShown:"plyr__preview-thumb--is-shown",imageContainer:"plyr__preview-thumb__image-container",timeContainer:"plyr__preview-thumb__time-container",scrubbingContainer:"plyr__preview-scrubbing",scrubbingContainerShown:"plyr__preview-scrubbing--is-shown"}},attributes:{embed:{provider:"data-plyr-provider",id:"data-plyr-embed-id",hash:"data-plyr-embed-hash"}},ads:{enabled:!1,publisherId:"",tagUrl:""},previewThumbnails:{enabled:!1,src:""},vimeo:{byline:!1,portrait:!1,title:!1,speed:!0,transparent:!1,customControls:!0,referrerPolicy:null,premium:!1},youtube:{rel:0,showinfo:0,iv_load_policy:3,modestbranding:1,customControls:!0,noCookie:!1}},xt={active:"picture-in-picture",inactive:"inline"},Ae={html5:"html5",youtube:"youtube",vimeo:"vimeo"},Nt={audio:"audio",video:"video"};function fn(e){return/^(https?:\/\/)?(www\.)?(youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$/.test(e)?Ae.youtube:/^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/)/.test(e)?Ae.vimeo:null}const Mt=()=>{};class yn{constructor(i=!1){this.enabled=window.console&&i,this.enabled&&this.log("Debugging enabled")}get log(){return this.enabled?Function.prototype.bind.call(console.log,console):Mt}get warn(){return this.enabled?Function.prototype.bind.call(console.warn,console):Mt}get error(){return this.enabled?Function.prototype.bind.call(console.error,console):Mt}}class de{constructor(i){w(this,"onChange",()=>{if(!this.enabled)return;const t=this.player.elements.buttons.fullscreen;l.element(t)&&(t.pressed=this.active);const s=this.target===this.player.media?this.target:this.player.elements.container;x.call(this.player,s,this.active?"enterfullscreen":"exitfullscreen",!0)}),w(this,"toggleFallback",(t=!1)=>{if(t?this.scrollPosition={x:window.scrollX||0,y:window.scrollY||0}:window.scrollTo(this.scrollPosition.x,this.scrollPosition.y),document.body.style.overflow=t?"hidden":"",L(this.target,this.player.config.classNames.fullscreen.fallback,t),G.isIos){let s=document.head.querySelector('meta[name="viewport"]');const a="viewport-fit=cover";s||(s=document.createElement("meta"),s.setAttribute("name","viewport"));const n=l.string(s.content)&&s.content.includes(a);t?(this.cleanupViewport=!n,n||(s.content+=`,${a}`)):this.cleanupViewport&&(s.content=s.content.split(",").filter(o=>o.trim()!==a).join(","))}this.onChange()}),w(this,"trapFocus",t=>{if(G.isIos||!this.active||t.key!=="Tab"||t.keyCode!==9)return;const s=document.activeElement,a=Le.call(this.player,"a[href], button:not(:disabled), input:not(:disabled), [tabindex]"),[n]=a,o=a[a.length-1];s!==o||t.shiftKey?s===n&&t.shiftKey&&(o.focus(),t.preventDefault()):(n.focus(),t.preventDefault())}),w(this,"update",()=>{if(this.enabled){let t;t=this.forceFallback?"Fallback (forced)":de.native?"Native":"Fallback",this.player.debug.log(`${t} fullscreen enabled`)}else this.player.debug.log("Fullscreen not supported and fallback disabled");L(this.player.elements.container,this.player.config.classNames.fullscreen.enabled,this.enabled)}),w(this,"enter",()=>{this.enabled&&(G.isIos&&this.player.config.fullscreen.iosNative?this.player.isVimeo?this.player.embed.requestFullscreen():this.target.webkitEnterFullscreen():!de.native||this.forceFallback?this.toggleFallback(!0):this.prefix?l.empty(this.prefix)||this.target[`${this.prefix}Request${this.property}`]():this.target.requestFullscreen({navigationUI:"hide"}))}),w(this,"exit",()=>{if(this.enabled)if(G.isIos&&this.player.config.fullscreen.iosNative)this.target.webkitExitFullscreen(),ce(this.player.play());else if(!de.native||this.forceFallback)this.toggleFallback(!1);else if(this.prefix){if(!l.empty(this.prefix)){const t=this.prefix==="moz"?"Cancel":"Exit";document[`${this.prefix}${t}${this.property}`]()}}else(document.cancelFullScreen||document.exitFullscreen).call(document)}),w(this,"toggle",()=>{this.active?this.exit():this.enter()}),this.player=i,this.prefix=de.prefix,this.property=de.property,this.scrollPosition={x:0,y:0},this.forceFallback=i.config.fullscreen.fallback==="force",this.player.elements.fullscreen=i.config.fullscreen.container&&nn(this.player.elements.container,i.config.fullscreen.container),O.call(this.player,document,this.prefix==="ms"?"MSFullscreenChange":`${this.prefix}fullscreenchange`,()=>{this.onChange()}),O.call(this.player,this.player.elements.container,"dblclick",t=>{l.element(this.player.elements.controls)&&this.player.elements.controls.contains(t.target)||this.player.listeners.proxy(t,this.toggle,"fullscreen")}),O.call(this,this.player.elements.container,"keydown",t=>this.trapFocus(t)),this.update()}static get native(){return!!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)}get usingNative(){return de.native&&!this.forceFallback}static get prefix(){if(l.function(document.exitFullscreen))return"";let i="";return["webkit","moz","ms"].some(t=>!(!l.function(document[`${t}ExitFullscreen`])&&!l.function(document[`${t}CancelFullScreen`]))&&(i=t,!0)),i}static get property(){return this.prefix==="moz"?"FullScreen":"Fullscreen"}get enabled(){return(de.native||this.player.config.fullscreen.fallback)&&this.player.config.fullscreen.enabled&&this.player.supported.ui&&this.player.isVideo}get active(){if(!this.enabled)return!1;if(!de.native||this.forceFallback)return rt(this.target,this.player.config.classNames.fullscreen.fallback);const i=this.prefix?this.target.getRootNode()[`${this.prefix}${this.property}Element`]:this.target.getRootNode().fullscreenElement;return i&&i.shadowRoot?i===this.target.getRootNode().host:i===this.target}get target(){return G.isIos&&this.player.config.fullscreen.iosNative?this.player.media:this.player.elements.fullscreen||this.player.elements.container}}function ht(e,i=1){return new Promise((t,s)=>{const a=new Image,n=()=>{delete a.onload,delete a.onerror,(a.naturalWidth>=i?t:s)(a)};Object.assign(a,{onload:n,onerror:n,src:e})})}const R={addStyleHook(){L(this.elements.container,this.config.selectors.container.replace(".",""),!0),L(this.elements.container,this.config.classNames.uiSupported,this.supported.ui)},toggleNativeControls(e=!1){e&&this.isHTML5?this.media.setAttribute("controls",""):this.media.removeAttribute("controls")},build(){if(this.listeners.media(),!this.supported.ui)return this.debug.warn(`Basic support only for ${this.provider} ${this.type}`),void R.toggleNativeControls.call(this,!0);l.element(this.elements.controls)||(k.inject.call(this),this.listeners.controls()),R.toggleNativeControls.call(this),this.isHTML5&&B.setup.call(this),this.volume=null,this.muted=null,this.loop=null,this.quality=null,this.speed=null,k.updateVolume.call(this),k.timeUpdate.call(this),k.durationUpdate.call(this),R.checkPlaying.call(this),L(this.elements.container,this.config.classNames.pip.supported,V.pip&&this.isHTML5&&this.isVideo),L(this.elements.container,this.config.classNames.airplay.supported,V.airplay&&this.isHTML5),L(this.elements.container,this.config.classNames.isIos,G.isIos),L(this.elements.container,this.config.classNames.isTouch,this.touch),this.ready=!0,setTimeout(()=>{x.call(this,this.media,"ready")},0),R.setTitle.call(this),this.poster&&R.setPoster.call(this,this.poster,!1).catch(()=>{}),this.config.duration&&k.durationUpdate.call(this)},setTitle(){let e=J.get("play",this.config);if(l.string(this.config.title)&&!l.empty(this.config.title)&&(e+=`, ${this.config.title}`),Array.from(this.elements.buttons.play||[]).forEach(i=>{i.setAttribute("aria-label",e)}),this.isEmbed){const i=Y.call(this,"iframe");if(!l.element(i))return;const t=l.empty(this.config.title)?"video":this.config.title,s=J.get("frameTitle",this.config);i.setAttribute("title",s.replace("{title}",t))}},togglePoster(e){L(this.elements.container,this.config.classNames.posterEnabled,e)},setPoster(e,i=!0){return i&&this.poster?Promise.reject(new Error("Poster already set")):(this.media.setAttribute("data-poster",e),this.elements.poster.removeAttribute("hidden"),on.call(this).then(()=>ht(e)).catch(t=>{throw e===this.poster&&R.togglePoster.call(this,!1),t}).then(()=>{if(e!==this.poster)throw new Error("setPoster cancelled by later call to setPoster")}).then(()=>(Object.assign(this.elements.poster.style,{backgroundImage:`url('${e}')`,backgroundSize:""}),R.togglePoster.call(this,!0),e)))},checkPlaying(e){L(this.elements.container,this.config.classNames.playing,this.playing),L(this.elements.container,this.config.classNames.paused,this.paused),L(this.elements.container,this.config.classNames.stopped,this.stopped),Array.from(this.elements.buttons.play||[]).forEach(i=>{Object.assign(i,{pressed:this.playing}),i.setAttribute("aria-label",J.get(this.playing?"pause":"play",this.config))}),l.event(e)&&e.type==="timeupdate"||R.toggleControls.call(this)},checkLoading(e){this.loading=["stalled","waiting"].includes(e.type),clearTimeout(this.timers.loading),this.timers.loading=setTimeout(()=>{L(this.elements.container,this.config.classNames.loading,this.loading),R.toggleControls.call(this)},this.loading?250:0)},toggleControls(e){const{controls:i}=this.elements;if(i&&this.config.hideControls){const t=this.touch&&this.lastSeekTime+2e3>Date.now();this.toggleControls(Boolean(e||this.loading||this.paused||i.pressed||i.hover||t))}},migrateStyles(){Object.values(Se({},this.media.style)).filter(e=>!l.empty(e)&&l.string(e)&&e.startsWith("--plyr")).forEach(e=>{this.elements.container.style.setProperty(e,this.media.style.getPropertyValue(e)),this.media.style.removeProperty(e)}),l.empty(this.media.style)&&this.media.removeAttribute("style")}};class bn{constructor(i){w(this,"firstTouch",()=>{const{player:t}=this,{elements:s}=t;t.touch=!0,L(s.container,t.config.classNames.isTouch,!0)}),w(this,"setTabFocus",t=>{const{player:s}=this,{elements:a}=s;if(clearTimeout(this.focusTimer),t.type==="keydown"&&t.which!==9)return;t.type==="keydown"&&(this.lastKeyDown=t.timeStamp);const n=t.timeStamp-this.lastKeyDown<=20;(t.type!=="focus"||n)&&((()=>{const o=s.config.classNames.tabFocus;L(Le.call(s,`.${o}`),o,!1)})(),t.type!=="focusout"&&(this.focusTimer=setTimeout(()=>{const o=document.activeElement;a.container.contains(o)&&L(document.activeElement,s.config.classNames.tabFocus,!0)},10)))}),w(this,"global",(t=!0)=>{const{player:s}=this;s.config.keyboard.global&&Oe.call(s,window,"keydown keyup",this.handleKey,t,!1),Oe.call(s,document.body,"click",this.toggleMenu,t),_t.call(s,document.body,"touchstart",this.firstTouch),Oe.call(s,document.body,"keydown focus blur focusout",this.setTabFocus,t,!1,!0)}),w(this,"container",()=>{const{player:t}=this,{config:s,elements:a,timers:n}=t;!s.keyboard.global&&s.keyboard.focused&&O.call(t,a.container,"keydown keyup",this.handleKey,!1),O.call(t,a.container,"mousemove mouseleave touchstart touchmove enterfullscreen exitfullscreen",h=>{const{controls:d}=a;d&&h.type==="enterfullscreen"&&(d.pressed=!1,d.hover=!1);let v=0;["touchstart","touchmove","mousemove"].includes(h.type)&&(R.toggleControls.call(t,!0),v=t.touch?3e3:2e3),clearTimeout(n.controls),n.controls=setTimeout(()=>R.toggleControls.call(t,!1),v)});const o=()=>{if(!t.isVimeo||t.config.vimeo.premium)return;const h=a.wrapper,{active:d}=t.fullscreen,[v,T]=Pt.call(t),b=ki(`aspect-ratio: ${v} / ${T}`);if(!d)return void(b?(h.style.width=null,h.style.height=null):(h.style.maxWidth=null,h.style.margin=null));const[_,A]=rn(),C=_/A>v/T;b?(h.style.width=C?"auto":"100%",h.style.height=C?"100%":"auto"):(h.style.maxWidth=C?A/T*v+"px":null,h.style.margin=C?"0 auto":null)},r=()=>{clearTimeout(n.resized),n.resized=setTimeout(o,50)};O.call(t,a.container,"enterfullscreen exitfullscreen",h=>{const{target:d}=t.fullscreen;d===a.container&&(!t.isEmbed&&l.empty(t.config.ratio)||(o(),(h.type==="enterfullscreen"?O:ut).call(t,window,"resize",r)))})}),w(this,"media",()=>{const{player:t}=this,{elements:s}=t;if(O.call(t,t.media,"timeupdate seeking seeked",n=>k.timeUpdate.call(t,n)),O.call(t,t.media,"durationchange loadeddata loadedmetadata",n=>k.durationUpdate.call(t,n)),O.call(t,t.media,"ended",()=>{t.isHTML5&&t.isVideo&&t.config.resetOnEnd&&(t.restart(),t.pause())}),O.call(t,t.media,"progress playing seeking seeked",n=>k.updateProgress.call(t,n)),O.call(t,t.media,"volumechange",n=>k.updateVolume.call(t,n)),O.call(t,t.media,"playing play pause ended emptied timeupdate",n=>R.checkPlaying.call(t,n)),O.call(t,t.media,"waiting canplay seeked playing",n=>R.checkLoading.call(t,n)),t.supported.ui&&t.config.clickToPlay&&!t.isAudio){const n=Y.call(t,`.${t.config.classNames.video}`);if(!l.element(n))return;O.call(t,s.container,"click",o=>{([s.container,n].includes(o.target)||n.contains(o.target))&&(t.touch&&t.config.hideControls||(t.ended?(this.proxy(o,t.restart,"restart"),this.proxy(o,()=>{ce(t.play())},"play")):this.proxy(o,()=>{ce(t.togglePlay())},"play")))})}t.supported.ui&&t.config.disableContextMenu&&O.call(t,s.wrapper,"contextmenu",n=>{n.preventDefault()},!1),O.call(t,t.media,"volumechange",()=>{t.storage.set({volume:t.volume,muted:t.muted})}),O.call(t,t.media,"ratechange",()=>{k.updateSetting.call(t,"speed"),t.storage.set({speed:t.speed})}),O.call(t,t.media,"qualitychange",n=>{k.updateSetting.call(t,"quality",null,n.detail.quality)}),O.call(t,t.media,"ready qualitychange",()=>{k.setDownloadUrl.call(t)});const a=t.config.events.concat(["keyup","keydown"]).join(" ");O.call(t,t.media,a,n=>{let{detail:o={}}=n;n.type==="error"&&(o=t.media.error),x.call(t,s.container,n.type,!0,o)})}),w(this,"proxy",(t,s,a)=>{const{player:n}=this,o=n.config.listeners[a];let r=!0;l.function(o)&&(r=o.call(n,t)),r!==!1&&l.function(s)&&s.call(n,t)}),w(this,"bind",(t,s,a,n,o=!0)=>{const{player:r}=this,h=r.config.listeners[n],d=l.function(h);O.call(r,t,s,v=>this.proxy(v,a,n),o&&!d)}),w(this,"controls",()=>{const{player:t}=this,{elements:s}=t,a=G.isIE?"change":"input";if(s.buttons.play&&Array.from(s.buttons.play).forEach(n=>{this.bind(n,"click",()=>{ce(t.togglePlay())},"play")}),this.bind(s.buttons.restart,"click",t.restart,"restart"),this.bind(s.buttons.rewind,"click",()=>{t.lastSeekTime=Date.now(),t.rewind()},"rewind"),this.bind(s.buttons.fastForward,"click",()=>{t.lastSeekTime=Date.now(),t.forward()},"fastForward"),this.bind(s.buttons.mute,"click",()=>{t.muted=!t.muted},"mute"),this.bind(s.buttons.captions,"click",()=>t.toggleCaptions()),this.bind(s.buttons.download,"click",()=>{x.call(t,t.media,"download")},"download"),this.bind(s.buttons.fullscreen,"click",()=>{t.fullscreen.toggle()},"fullscreen"),this.bind(s.buttons.pip,"click",()=>{t.pip="toggle"},"pip"),this.bind(s.buttons.airplay,"click",t.airplay,"airplay"),this.bind(s.buttons.settings,"click",n=>{n.stopPropagation(),n.preventDefault(),k.toggleMenu.call(t,n)},null,!1),this.bind(s.buttons.settings,"keyup",n=>{const o=n.which;[13,32].includes(o)&&(o!==13?(n.preventDefault(),n.stopPropagation(),k.toggleMenu.call(t,n)):k.focusFirstMenuItem.call(t,null,!0))},null,!1),this.bind(s.settings.menu,"keydown",n=>{n.which===27&&k.toggleMenu.call(t,n)}),this.bind(s.inputs.seek,"mousedown mousemove",n=>{const o=s.progress.getBoundingClientRect(),r=100/o.width*(n.pageX-o.left);n.currentTarget.setAttribute("seek-value",r)}),this.bind(s.inputs.seek,"mousedown mouseup keydown keyup touchstart touchend",n=>{const o=n.currentTarget,r=n.keyCode?n.keyCode:n.which,h="play-on-seeked";if(l.keyboardEvent(n)&&r!==39&&r!==37)return;t.lastSeekTime=Date.now();const d=o.hasAttribute(h),v=["mouseup","touchend","keyup"].includes(n.type);d&&v?(o.removeAttribute(h),ce(t.play())):!v&&t.playing&&(o.setAttribute(h,""),t.pause())}),G.isIos){const n=Le.call(t,'input[type="range"]');Array.from(n).forEach(o=>this.bind(o,a,r=>gi(r.target)))}this.bind(s.inputs.seek,a,n=>{const o=n.currentTarget;let r=o.getAttribute("seek-value");l.empty(r)&&(r=o.value),o.removeAttribute("seek-value"),t.currentTime=r/o.max*t.duration},"seek"),this.bind(s.progress,"mouseenter mouseleave mousemove",n=>k.updateSeekTooltip.call(t,n)),this.bind(s.progress,"mousemove touchmove",n=>{const{previewThumbnails:o}=t;o&&o.loaded&&o.startMove(n)}),this.bind(s.progress,"mouseleave touchend click",()=>{const{previewThumbnails:n}=t;n&&n.loaded&&n.endMove(!1,!0)}),this.bind(s.progress,"mousedown touchstart",n=>{const{previewThumbnails:o}=t;o&&o.loaded&&o.startScrubbing(n)}),this.bind(s.progress,"mouseup touchend",n=>{const{previewThumbnails:o}=t;o&&o.loaded&&o.endScrubbing(n)}),G.isWebkit&&Array.from(Le.call(t,'input[type="range"]')).forEach(n=>{this.bind(n,"input",o=>k.updateRangeFill.call(t,o.target))}),t.config.toggleInvert&&!l.element(s.display.duration)&&this.bind(s.display.currentTime,"click",()=>{t.currentTime!==0&&(t.config.invertTime=!t.config.invertTime,k.timeUpdate.call(t))}),this.bind(s.inputs.volume,a,n=>{t.volume=n.target.value},"volume"),this.bind(s.controls,"mouseenter mouseleave",n=>{s.controls.hover=!t.touch&&n.type==="mouseenter"}),s.fullscreen&&Array.from(s.fullscreen.children).filter(n=>!n.contains(s.container)).forEach(n=>{this.bind(n,"mouseenter mouseleave",o=>{s.controls&&(s.controls.hover=!t.touch&&o.type==="mouseenter")})}),this.bind(s.controls,"mousedown mouseup touchstart touchend touchcancel",n=>{s.controls.pressed=["mousedown","touchstart"].includes(n.type)}),this.bind(s.controls,"focusin",()=>{const{config:n,timers:o}=t;L(s.controls,n.classNames.noTransition,!0),R.toggleControls.call(t,!0),setTimeout(()=>{L(s.controls,n.classNames.noTransition,!1)},0);const r=this.touch?3e3:4e3;clearTimeout(o.controls),o.controls=setTimeout(()=>R.toggleControls.call(t,!1),r)}),this.bind(s.inputs.volume,"wheel",n=>{const o=n.webkitDirectionInvertedFromDevice,[r,h]=[n.deltaX,-n.deltaY].map(T=>o?-T:T),d=Math.sign(Math.abs(r)>Math.abs(h)?r:h);t.increaseVolume(d/50);const{volume:v}=t.media;(d===1&&v<1||d===-1&&v>0)&&n.preventDefault()},"volume",!1)}),this.player=i,this.lastKey=null,this.focusTimer=null,this.lastKeyDown=null,this.handleKey=this.handleKey.bind(this),this.toggleMenu=this.toggleMenu.bind(this),this.setTabFocus=this.setTabFocus.bind(this),this.firstTouch=this.firstTouch.bind(this)}handleKey(i){const{player:t}=this,{elements:s}=t,a=i.keyCode?i.keyCode:i.which,n=i.type==="keydown",o=n&&a===this.lastKey;if(!(i.altKey||i.ctrlKey||i.metaKey||i.shiftKey)&&!!l.number(a))if(n){const r=document.activeElement;if(l.element(r)){const{editable:h}=t.config.selectors,{seek:d}=s.inputs;if(r!==d&&Me(r,h)||i.which===32&&Me(r,'button, [role^="menuitem"]'))return}switch([32,37,38,39,40,48,49,50,51,52,53,54,56,57,67,70,73,75,76,77,79].includes(a)&&(i.preventDefault(),i.stopPropagation()),a){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:o||(t.currentTime=t.duration/10*(a-48));break;case 32:case 75:o||ce(t.togglePlay());break;case 38:t.increaseVolume(.1);break;case 40:t.decreaseVolume(.1);break;case 77:o||(t.muted=!t.muted);break;case 39:t.forward();break;case 37:t.rewind();break;case 70:t.fullscreen.toggle();break;case 67:o||t.toggleCaptions();break;case 76:t.loop=!t.loop}a===27&&!t.fullscreen.usingNative&&t.fullscreen.active&&t.fullscreen.toggle(),this.lastKey=a}else this.lastKey=null}toggleMenu(i){k.toggleMenu.call(this.player,i)}}function vn(e,i){return e(i={exports:{}},i.exports),i.exports}var wn=vn(function(e,i){e.exports=function(){var t=function(){},s={},a={},n={};function o(b,_){b=b.push?b:[b];var A,C,N,E=[],$=b.length,f=$;for(A=function(F,j){j.length&&E.push(F),--f||_(E)};$--;)C=b[$],(N=a[C])?A(C,N):(n[C]=n[C]||[]).push(A)}function r(b,_){if(b){var A=n[b];if(a[b]=_,A)for(;A.length;)A[0](b,_),A.splice(0,1)}}function h(b,_){b.call&&(b={success:b}),_.length?(b.error||t)(_):(b.success||t)(b)}function d(b,_,A,C){var N,E,$=document,f=A.async,F=(A.numRetries||0)+1,j=A.before||t,z=b.replace(/[\?|#].*$/,""),W=b.replace(/^(css|img)!/,"");C=C||0,/(^css!|\.css$)/.test(z)?((E=$.createElement("link")).rel="stylesheet",E.href=W,(N="hideFocus"in E)&&E.relList&&(N=0,E.rel="preload",E.as="style")):/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(z)?(E=$.createElement("img")).src=W:((E=$.createElement("script")).src=b,E.async=f===void 0||f),E.onload=E.onerror=E.onbeforeload=function(Z){var ie=Z.type[0];if(N)try{E.sheet.cssText.length||(ie="e")}catch(ke){ke.code!=18&&(ie="e")}if(ie=="e"){if((C+=1){wn(e,{success:i,error:t})})}function kn(e){return l.empty(e)?null:l.number(Number(e))?e:e.match(/^.*(vimeo.com\/|video\/)(\d+).*/)?RegExp.$2:e}function Tn(e){const i=e.match(/^.*(?:vimeo.com\/|video\/)(?:\d+)(?:\?.*&*h=|\/)+(?[\d,a-f]+)/);return i?i.groups.hash:null}function Ge(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,x.call(this,this.media,e?"play":"pause"))}const $t={setup(){const e=this;L(e.elements.wrapper,e.config.classNames.embed,!0),e.options.speed=e.config.speed.options,Be.call(e),l.object(window.Vimeo)?$t.ready.call(e):Dt(e.config.urls.vimeo.sdk).then(()=>{$t.ready.call(e)}).catch(i=>{e.debug.warn("Vimeo SDK (player.js) failed to load",i)})},ready(){const e=this,i=e.config.vimeo,$=i,{premium:t,referrerPolicy:s}=$,a=Wt($,["premium","referrerPolicy"]);let n=e.media.getAttribute("src"),o="";l.empty(n)?(n=e.media.getAttribute(e.config.attributes.embed.id),o=e.media.getAttribute(e.config.attributes.embed.hash)):o=Tn(n);const r=o?{h:o}:{};t&&Object.assign(a,{controls:!1,sidedock:!1});const h=xi(Se(Se({loop:e.config.loop.active,autoplay:e.autoplay,muted:e.muted,gesture:"media",playsinline:!this.config.fullscreen.iosNative},r),a)),d=kn(n),v=M("iframe"),T=Ft(e.config.urls.vimeo.iframe,d,h);if(v.setAttribute("src",T),v.setAttribute("allowfullscreen",""),v.setAttribute("allow",["autoplay","fullscreen","picture-in-picture","encrypted-media","accelerometer","gyroscope"].join("; ")),l.empty(s)||v.setAttribute("referrerPolicy",s),t||!i.customControls)v.setAttribute("data-poster",e.poster),e.media=ot(v,e.media);else{const f=M("div",{class:e.config.classNames.embedContainer,"data-poster":e.poster});f.appendChild(v),e.media=ot(f,e.media)}i.customControls||Je(Ft(e.config.urls.vimeo.api,T)).then(f=>{!l.empty(f)&&f.thumbnail_url&&R.setPoster.call(e,f.thumbnail_url).catch(()=>{})}),e.embed=new window.Vimeo.Player(v,{autopause:e.config.autopause,muted:e.muted}),e.media.paused=!0,e.media.currentTime=0,e.supported.ui&&e.embed.disableTextTrack(),e.media.play=()=>(Ge.call(e,!0),e.embed.play()),e.media.pause=()=>(Ge.call(e,!1),e.embed.pause()),e.media.stop=()=>{e.pause(),e.currentTime=0};let{currentTime:b}=e.media;Object.defineProperty(e.media,"currentTime",{get:()=>b,set(f){const{embed:F,media:j,paused:z,volume:W}=e,Z=z&&!F.hasPlayed;j.seeking=!0,x.call(e,j,"seeking"),Promise.resolve(Z&&F.setVolume(0)).then(()=>F.setCurrentTime(f)).then(()=>Z&&F.pause()).then(()=>Z&&F.setVolume(W)).catch(()=>{})}});let _=e.config.speed.selected;Object.defineProperty(e.media,"playbackRate",{get:()=>_,set(f){e.embed.setPlaybackRate(f).then(()=>{_=f,x.call(e,e.media,"ratechange")}).catch(()=>{e.options.speed=[1]})}});let{volume:A}=e.config;Object.defineProperty(e.media,"volume",{get:()=>A,set(f){e.embed.setVolume(f).then(()=>{A=f,x.call(e,e.media,"volumechange")})}});let{muted:C}=e.config;Object.defineProperty(e.media,"muted",{get:()=>C,set(f){const F=!!l.boolean(f)&&f;e.embed.setVolume(F?0:e.config.volume).then(()=>{C=F,x.call(e,e.media,"volumechange")})}});let N,{loop:E}=e.config;Object.defineProperty(e.media,"loop",{get:()=>E,set(f){const F=l.boolean(f)?f:e.config.loop.active;e.embed.setLoop(F).then(()=>{E=F})}}),e.embed.getVideoUrl().then(f=>{N=f,k.setDownloadUrl.call(e)}).catch(f=>{this.debug.warn(f)}),Object.defineProperty(e.media,"currentSrc",{get:()=>N}),Object.defineProperty(e.media,"ended",{get:()=>e.currentTime===e.duration}),Promise.all([e.embed.getVideoWidth(),e.embed.getVideoHeight()]).then(f=>{const[F,j]=f;e.embed.ratio=Ei(F,j),Be.call(this)}),e.embed.setAutopause(e.config.autopause).then(f=>{e.config.autopause=f}),e.embed.getVideoTitle().then(f=>{e.config.title=f,R.setTitle.call(this)}),e.embed.getCurrentTime().then(f=>{b=f,x.call(e,e.media,"timeupdate")}),e.embed.getDuration().then(f=>{e.media.duration=f,x.call(e,e.media,"durationchange")}),e.embed.getTextTracks().then(f=>{e.media.textTracks=f,B.setup.call(e)}),e.embed.on("cuechange",({cues:f=[]})=>{const F=f.map(j=>mn(j.text));B.updateCues.call(e,F)}),e.embed.on("loaded",()=>{e.embed.getPaused().then(f=>{Ge.call(e,!f),f||x.call(e,e.media,"playing")}),l.element(e.embed.element)&&e.supported.ui&&e.embed.element.setAttribute("tabindex",-1)}),e.embed.on("bufferstart",()=>{x.call(e,e.media,"waiting")}),e.embed.on("bufferend",()=>{x.call(e,e.media,"playing")}),e.embed.on("play",()=>{Ge.call(e,!0),x.call(e,e.media,"playing")}),e.embed.on("pause",()=>{Ge.call(e,!1)}),e.embed.on("timeupdate",f=>{e.media.seeking=!1,b=f.seconds,x.call(e,e.media,"timeupdate")}),e.embed.on("progress",f=>{e.media.buffered=f.percent,x.call(e,e.media,"progress"),parseInt(f.percent,10)===1&&x.call(e,e.media,"canplaythrough"),e.embed.getDuration().then(F=>{F!==e.media.duration&&(e.media.duration=F,x.call(e,e.media,"durationchange"))})}),e.embed.on("seeked",()=>{e.media.seeking=!1,x.call(e,e.media,"seeked")}),e.embed.on("ended",()=>{e.media.paused=!0,x.call(e,e.media,"ended")}),e.embed.on("error",f=>{e.media.error=f,x.call(e,e.media,"error")}),i.customControls&&setTimeout(()=>R.build.call(e),0)}};function Cn(e){return l.empty(e)?null:e.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/)?RegExp.$2:e}function Qe(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,x.call(this,this.media,e?"play":"pause"))}function En(e){return e.noCookie?"https://www.youtube-nocookie.com":window.location.protocol==="http:"?"http://www.youtube.com":void 0}const mt={setup(){if(L(this.elements.wrapper,this.config.classNames.embed,!0),l.object(window.YT)&&l.function(window.YT.Player))mt.ready.call(this);else{const e=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=()=>{l.function(e)&&e(),mt.ready.call(this)},Dt(this.config.urls.youtube.sdk).catch(i=>{this.debug.warn("YouTube API failed to load",i)})}},getTitle(e){Je(Ft(this.config.urls.youtube.api,e)).then(i=>{if(l.object(i)){const{title:t,height:s,width:a}=i;this.config.title=t,R.setTitle.call(this),this.embed.ratio=Ei(a,s)}Be.call(this)}).catch(()=>{Be.call(this)})},ready(){const e=this,i=e.config.youtube,t=e.media&&e.media.getAttribute("id");if(!l.empty(t)&&t.startsWith("youtube-"))return;let s=e.media.getAttribute("src");l.empty(s)&&(s=e.media.getAttribute(this.config.attributes.embed.id));const a=Cn(s),n=M("div",{id:un(e.provider),"data-poster":i.customControls?e.poster:void 0});if(e.media=ot(n,e.media),i.customControls){const o=r=>`https://i.ytimg.com/vi/${a}/${r}default.jpg`;ht(o("maxres"),121).catch(()=>ht(o("sd"),121)).catch(()=>ht(o("hq"))).then(r=>R.setPoster.call(e,r.src)).then(r=>{r.includes("maxres")||(e.elements.poster.style.backgroundSize="cover")}).catch(()=>{})}e.embed=new window.YT.Player(e.media,{videoId:a,host:En(i),playerVars:K({},{autoplay:e.config.autoplay?1:0,hl:e.config.hl,controls:e.supported.ui&&i.customControls?0:1,disablekb:1,playsinline:e.config.fullscreen.iosNative?0:1,cc_load_policy:e.captions.active?1:0,cc_lang_pref:e.config.captions.language,widget_referrer:window?window.location.href:null},i),events:{onError(o){if(!e.media.error){const r=o.data,h={2:"The request contains an invalid parameter value. For example, this error occurs if you specify a video ID that does not have 11 characters, or if the video ID contains invalid characters, such as exclamation points or asterisks.",5:"The requested content cannot be played in an HTML5 player or another error related to the HTML5 player has occurred.",100:"The video requested was not found. This error occurs when a video has been removed (for any reason) or has been marked as private.",101:"The owner of the requested video does not allow it to be played in embedded players.",150:"The owner of the requested video does not allow it to be played in embedded players."}[r]||"An unknown error occured";e.media.error={code:r,message:h},x.call(e,e.media,"error")}},onPlaybackRateChange(o){const r=o.target;e.media.playbackRate=r.getPlaybackRate(),x.call(e,e.media,"ratechange")},onReady(o){if(l.function(e.media.play))return;const r=o.target;mt.getTitle.call(e,a),e.media.play=()=>{Qe.call(e,!0),r.playVideo()},e.media.pause=()=>{Qe.call(e,!1),r.pauseVideo()},e.media.stop=()=>{r.stopVideo()},e.media.duration=r.getDuration(),e.media.paused=!0,e.media.currentTime=0,Object.defineProperty(e.media,"currentTime",{get:()=>Number(r.getCurrentTime()),set(T){e.paused&&!e.embed.hasPlayed&&e.embed.mute(),e.media.seeking=!0,x.call(e,e.media,"seeking"),r.seekTo(T)}}),Object.defineProperty(e.media,"playbackRate",{get:()=>r.getPlaybackRate(),set(T){r.setPlaybackRate(T)}});let{volume:h}=e.config;Object.defineProperty(e.media,"volume",{get:()=>h,set(T){h=T,r.setVolume(100*h),x.call(e,e.media,"volumechange")}});let{muted:d}=e.config;Object.defineProperty(e.media,"muted",{get:()=>d,set(T){const b=l.boolean(T)?T:d;d=b,r[b?"mute":"unMute"](),r.setVolume(100*h),x.call(e,e.media,"volumechange")}}),Object.defineProperty(e.media,"currentSrc",{get:()=>r.getVideoUrl()}),Object.defineProperty(e.media,"ended",{get:()=>e.currentTime===e.duration});const v=r.getAvailablePlaybackRates();e.options.speed=v.filter(T=>e.config.speed.options.includes(T)),e.supported.ui&&i.customControls&&e.media.setAttribute("tabindex",-1),x.call(e,e.media,"timeupdate"),x.call(e,e.media,"durationchange"),clearInterval(e.timers.buffering),e.timers.buffering=setInterval(()=>{e.media.buffered=r.getVideoLoadedFraction(),(e.media.lastBuffered===null||e.media.lastBufferedR.build.call(e),50)},onStateChange(o){const r=o.target;switch(clearInterval(e.timers.playing),e.media.seeking&&[1,2].includes(o.data)&&(e.media.seeking=!1,x.call(e,e.media,"seeked")),o.data){case-1:x.call(e,e.media,"timeupdate"),e.media.buffered=r.getVideoLoadedFraction(),x.call(e,e.media,"progress");break;case 0:Qe.call(e,!1),e.media.loop?(r.stopVideo(),r.playVideo()):x.call(e,e.media,"ended");break;case 1:i.customControls&&!e.config.autoplay&&e.media.paused&&!e.embed.hasPlayed?e.media.pause():(Qe.call(e,!0),x.call(e,e.media,"playing"),e.timers.playing=setInterval(()=>{x.call(e,e.media,"timeupdate")},50),e.media.duration!==r.getDuration()&&(e.media.duration=r.getDuration(),x.call(e,e.media,"durationchange")));break;case 2:e.muted||e.embed.unMute(),Qe.call(e,!1);break;case 3:x.call(e,e.media,"waiting")}x.call(e,e.elements.container,"statechange",!1,{code:o.data})}}})}},Mi={setup(){this.media?(L(this.elements.container,this.config.classNames.type.replace("{0}",this.type),!0),L(this.elements.container,this.config.classNames.provider.replace("{0}",this.provider),!0),this.isEmbed&&L(this.elements.container,this.config.classNames.type.replace("{0}","video"),!0),this.isVideo&&(this.elements.wrapper=M("div",{class:this.config.classNames.video}),yi(this.media,this.elements.wrapper),this.elements.poster=M("div",{class:this.config.classNames.poster}),this.elements.wrapper.appendChild(this.elements.poster)),this.isHTML5?Ee.setup.call(this):this.isYouTube?mt.setup.call(this):this.isVimeo&&$t.setup.call(this)):this.debug.warn("No media element found!")}};class An{constructor(i){w(this,"load",()=>{this.enabled&&(l.object(window.google)&&l.object(window.google.ima)?this.ready():Dt(this.player.config.urls.googleIMA.sdk).then(()=>{this.ready()}).catch(()=>{this.trigger("error",new Error("Google IMA SDK failed to load"))}))}),w(this,"ready",()=>{var t;this.enabled||((t=this).manager&&t.manager.destroy(),t.elements.displayContainer&&t.elements.displayContainer.destroy(),t.elements.container.remove()),this.startSafetyTimer(12e3,"ready()"),this.managerPromise.then(()=>{this.clearSafetyTimer("onAdsManagerLoaded()")}),this.listeners(),this.setupIMA()}),w(this,"setupIMA",()=>{this.elements.container=M("div",{class:this.player.config.classNames.ads}),this.player.elements.container.appendChild(this.elements.container),google.ima.settings.setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.ENABLED),google.ima.settings.setLocale(this.player.config.ads.language),google.ima.settings.setDisableCustomPlaybackForIOS10Plus(this.player.config.playsinline),this.elements.displayContainer=new google.ima.AdDisplayContainer(this.elements.container,this.player.media),this.loader=new google.ima.AdsLoader(this.elements.displayContainer),this.loader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,t=>this.onAdsManagerLoaded(t),!1),this.loader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,t=>this.onAdError(t),!1),this.requestAds()}),w(this,"requestAds",()=>{const{container:t}=this.player.elements;try{const s=new google.ima.AdsRequest;s.adTagUrl=this.tagUrl,s.linearAdSlotWidth=t.offsetWidth,s.linearAdSlotHeight=t.offsetHeight,s.nonLinearAdSlotWidth=t.offsetWidth,s.nonLinearAdSlotHeight=t.offsetHeight,s.forceNonLinearFullSlot=!1,s.setAdWillPlayMuted(!this.player.muted),this.loader.requestAds(s)}catch(s){this.onAdError(s)}}),w(this,"pollCountdown",(t=!1)=>{if(!t)return clearInterval(this.countdownTimer),void this.elements.container.removeAttribute("data-badge-text");this.countdownTimer=setInterval(()=>{const s=dt(Math.max(this.manager.getRemainingTime(),0)),a=`${J.get("advertisement",this.player.config)} - ${s}`;this.elements.container.setAttribute("data-badge-text",a)},100)}),w(this,"onAdsManagerLoaded",t=>{if(!this.enabled)return;const s=new google.ima.AdsRenderingSettings;s.restoreCustomPlaybackStateOnAdBreakComplete=!0,s.enablePreloading=!0,this.manager=t.getAdsManager(this.player,s),this.cuePoints=this.manager.getCuePoints(),this.manager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,a=>this.onAdError(a)),Object.keys(google.ima.AdEvent.Type).forEach(a=>{this.manager.addEventListener(google.ima.AdEvent.Type[a],n=>this.onAdEvent(n))}),this.trigger("loaded")}),w(this,"addCuePoints",()=>{l.empty(this.cuePoints)||this.cuePoints.forEach(t=>{if(t!==0&&t!==-1&&t{const{container:s}=this.player.elements,a=t.getAd(),n=t.getAdData();switch((o=>{x.call(this.player,this.player.media,`ads${o.replace(/_/g,"").toLowerCase()}`)})(t.type),t.type){case google.ima.AdEvent.Type.LOADED:this.trigger("loaded"),this.pollCountdown(!0),a.isLinear()||(a.width=s.offsetWidth,a.height=s.offsetHeight);break;case google.ima.AdEvent.Type.STARTED:this.manager.setVolume(this.player.volume);break;case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:this.player.ended?this.loadAds():this.loader.contentComplete();break;case google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED:this.pauseContent();break;case google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED:this.pollCountdown(),this.resumeContent();break;case google.ima.AdEvent.Type.LOG:n.adError&&this.player.debug.warn(`Non-fatal ad error: ${n.adError.getMessage()}`)}}),w(this,"onAdError",t=>{this.cancel(),this.player.debug.warn("Ads error",t)}),w(this,"listeners",()=>{const{container:t}=this.player.elements;let s;this.player.on("canplay",()=>{this.addCuePoints()}),this.player.on("ended",()=>{this.loader.contentComplete()}),this.player.on("timeupdate",()=>{s=this.player.currentTime}),this.player.on("seeked",()=>{const a=this.player.currentTime;l.empty(this.cuePoints)||this.cuePoints.forEach((n,o)=>{s{this.manager&&this.manager.resize(t.offsetWidth,t.offsetHeight,google.ima.ViewMode.NORMAL)})}),w(this,"play",()=>{const{container:t}=this.player.elements;this.managerPromise||this.resumeContent(),this.managerPromise.then(()=>{this.manager.setVolume(this.player.volume),this.elements.displayContainer.initialize();try{this.initialized||(this.manager.init(t.offsetWidth,t.offsetHeight,google.ima.ViewMode.NORMAL),this.manager.start()),this.initialized=!0}catch(s){this.onAdError(s)}}).catch(()=>{})}),w(this,"resumeContent",()=>{this.elements.container.style.zIndex="",this.playing=!1,ce(this.player.media.play())}),w(this,"pauseContent",()=>{this.elements.container.style.zIndex=3,this.playing=!0,this.player.media.pause()}),w(this,"cancel",()=>{this.initialized&&this.resumeContent(),this.trigger("error"),this.loadAds()}),w(this,"loadAds",()=>{this.managerPromise.then(()=>{this.manager&&this.manager.destroy(),this.managerPromise=new Promise(t=>{this.on("loaded",t),this.player.debug.log(this.manager)}),this.initialized=!1,this.requestAds()}).catch(()=>{})}),w(this,"trigger",(t,...s)=>{const a=this.events[t];l.array(a)&&a.forEach(n=>{l.function(n)&&n.apply(this,s)})}),w(this,"on",(t,s)=>(l.array(this.events[t])||(this.events[t]=[]),this.events[t].push(s),this)),w(this,"startSafetyTimer",(t,s)=>{this.player.debug.log(`Safety timer invoked from: ${s}`),this.safetyTimer=setTimeout(()=>{this.cancel(),this.clearSafetyTimer("startSafetyTimer()")},t)}),w(this,"clearSafetyTimer",t=>{l.nullOrUndefined(this.safetyTimer)||(this.player.debug.log(`Safety timer cleared from: ${t}`),clearTimeout(this.safetyTimer),this.safetyTimer=null)}),this.player=i,this.config=i.config.ads,this.playing=!1,this.initialized=!1,this.elements={container:null,displayContainer:null},this.manager=null,this.loader=null,this.cuePoints=null,this.events={},this.safetyTimer=null,this.countdownTimer=null,this.managerPromise=new Promise((t,s)=>{this.on("loaded",t),this.on("error",s)}),this.load()}get enabled(){const{config:i}=this;return this.player.isHTML5&&this.player.isVideo&&i.enabled&&(!l.empty(i.publisherId)||l.url(i.tagUrl))}get tagUrl(){const{config:i}=this;return l.url(i.tagUrl)?i.tagUrl:`https://go.aniview.com/api/adserver6/vast/?${xi({AV_PUBLISHERID:"58c25bb0073ef448b1087ad6",AV_CHANNELID:"5a0458dc28a06145e4519d21",AV_URL:window.location.hostname,cb:Date.now(),AV_WIDTH:640,AV_HEIGHT:480,AV_CDIM2:i.publisherId})}`}}const _n=e=>{const i=[];return e.split(/\r\n\r\n|\n\n|\r\r/).forEach(t=>{const s={};t.split(/\r\n|\n|\r/).forEach(a=>{if(l.number(s.startTime)){if(!l.empty(a.trim())&&l.empty(s.text)){const n=a.trim().split("#xywh=");[s.text]=n,n[1]&&([s.x,s.y,s.w,s.h]=n[1].split(","))}}else{const n=a.match(/([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})( ?--> ?)([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})/);n&&(s.startTime=60*Number(n[1]||0)*60+60*Number(n[2])+Number(n[3])+Number(`0.${n[4]}`),s.endTime=60*Number(n[6]||0)*60+60*Number(n[7])+Number(n[8])+Number(`0.${n[9]}`))}}),s.text&&i.push(s)}),i},Di=(e,i)=>{const t={};return e>i.width/i.height?(t.width=i.width,t.height=1/e*i.width):(t.height=i.height,t.width=e*i.height),t};class It{constructor(i){w(this,"load",()=>{this.player.elements.display.seekTooltip&&(this.player.elements.display.seekTooltip.hidden=this.enabled),this.enabled&&this.getThumbnails().then(()=>{this.enabled&&(this.render(),this.determineContainerAutoSizing(),this.loaded=!0)})}),w(this,"getThumbnails",()=>new Promise(t=>{const{src:s}=this.player.config.previewThumbnails;if(l.empty(s))throw new Error("Missing previewThumbnails.src config attribute");const a=()=>{this.thumbnails.sort((n,o)=>n.height-o.height),this.player.debug.log("Preview thumbnails",this.thumbnails),t()};if(l.function(s))s(n=>{this.thumbnails=n,a()});else{const n=(l.string(s)?[s]:s).map(o=>this.getThumbnail(o));Promise.all(n).then(a)}})),w(this,"getThumbnail",t=>new Promise(s=>{Je(t).then(a=>{const n={frames:_n(a),height:null,urlPrefix:""};n.frames[0].text.startsWith("/")||n.frames[0].text.startsWith("http://")||n.frames[0].text.startsWith("https://")||(n.urlPrefix=t.substring(0,t.lastIndexOf("/")+1));const o=new Image;o.onload=()=>{n.height=o.naturalHeight,n.width=o.naturalWidth,this.thumbnails.push(n),s()},o.src=n.urlPrefix+n.frames[0].text})})),w(this,"startMove",t=>{if(this.loaded&&l.event(t)&&["touchmove","mousemove"].includes(t.type)&&this.player.media.duration){if(t.type==="touchmove")this.seekTime=this.player.media.duration*(this.player.elements.inputs.seek.value/100);else{const s=this.player.elements.progress.getBoundingClientRect(),a=100/s.width*(t.pageX-s.left);this.seekTime=this.player.media.duration*(a/100),this.seekTime<0&&(this.seekTime=0),this.seekTime>this.player.media.duration-1&&(this.seekTime=this.player.media.duration-1),this.mousePosX=t.pageX,this.elements.thumb.time.innerText=dt(this.seekTime)}this.showImageAtCurrentTime()}}),w(this,"endMove",()=>{this.toggleThumbContainer(!1,!0)}),w(this,"startScrubbing",t=>{(l.nullOrUndefined(t.button)||t.button===!1||t.button===0)&&(this.mouseDown=!0,this.player.media.duration&&(this.toggleScrubbingContainer(!0),this.toggleThumbContainer(!1,!0),this.showImageAtCurrentTime()))}),w(this,"endScrubbing",()=>{this.mouseDown=!1,Math.ceil(this.lastTime)===Math.ceil(this.player.media.currentTime)?this.toggleScrubbingContainer(!1):_t.call(this.player,this.player.media,"timeupdate",()=>{this.mouseDown||this.toggleScrubbingContainer(!1)})}),w(this,"listeners",()=>{this.player.on("play",()=>{this.toggleThumbContainer(!1,!0)}),this.player.on("seeked",()=>{this.toggleThumbContainer(!1)}),this.player.on("timeupdate",()=>{this.lastTime=this.player.media.currentTime})}),w(this,"render",()=>{this.elements.thumb.container=M("div",{class:this.player.config.classNames.previewThumbnails.thumbContainer}),this.elements.thumb.imageContainer=M("div",{class:this.player.config.classNames.previewThumbnails.imageContainer}),this.elements.thumb.container.appendChild(this.elements.thumb.imageContainer);const t=M("div",{class:this.player.config.classNames.previewThumbnails.timeContainer});this.elements.thumb.time=M("span",{},"00:00"),t.appendChild(this.elements.thumb.time),this.elements.thumb.container.appendChild(t),l.element(this.player.elements.progress)&&this.player.elements.progress.appendChild(this.elements.thumb.container),this.elements.scrubbing.container=M("div",{class:this.player.config.classNames.previewThumbnails.scrubbingContainer}),this.player.elements.wrapper.appendChild(this.elements.scrubbing.container)}),w(this,"destroy",()=>{this.elements.thumb.container&&this.elements.thumb.container.remove(),this.elements.scrubbing.container&&this.elements.scrubbing.container.remove()}),w(this,"showImageAtCurrentTime",()=>{this.mouseDown?this.setScrubbingContainerSize():this.setThumbContainerSizeAndPos();const t=this.thumbnails[0].frames.findIndex(n=>this.seekTime>=n.startTime&&this.seekTime<=n.endTime),s=t>=0;let a=0;this.mouseDown||this.toggleThumbContainer(s),s&&(this.thumbnails.forEach((n,o)=>{this.loadedImages.includes(n.frames[t].text)&&(a=o)}),t!==this.showingThumb&&(this.showingThumb=t,this.loadImage(a)))}),w(this,"loadImage",(t=0)=>{const s=this.showingThumb,a=this.thumbnails[t],{urlPrefix:n}=a,o=a.frames[s],r=a.frames[s].text,h=n+r;if(this.currentImageElement&&this.currentImageElement.dataset.filename===r)this.showImage(this.currentImageElement,o,t,s,r,!1),this.currentImageElement.dataset.index=s,this.removeOldImages(this.currentImageElement);else{this.loadingImage&&this.usingSprites&&(this.loadingImage.onload=null);const d=new Image;d.src=h,d.dataset.index=s,d.dataset.filename=r,this.showingThumbFilename=r,this.player.debug.log(`Loading image: ${h}`),d.onload=()=>this.showImage(d,o,t,s,r,!0),this.loadingImage=d,this.removeOldImages(d)}}),w(this,"showImage",(t,s,a,n,o,r=!0)=>{this.player.debug.log(`Showing thumb: ${o}. num: ${n}. qual: ${a}. newimg: ${r}`),this.setImageSizeAndOffset(t,s),r&&(this.currentImageContainer.appendChild(t),this.currentImageElement=t,this.loadedImages.includes(o)||this.loadedImages.push(o)),this.preloadNearby(n,!0).then(this.preloadNearby(n,!1)).then(this.getHigherQuality(a,t,s,o))}),w(this,"removeOldImages",t=>{Array.from(this.currentImageContainer.children).forEach(s=>{if(s.tagName.toLowerCase()!=="img")return;const a=this.usingSprites?500:1e3;if(s.dataset.index!==t.dataset.index&&!s.dataset.deleting){s.dataset.deleting=!0;const{currentImageContainer:n}=this;setTimeout(()=>{n.removeChild(s),this.player.debug.log(`Removing thumb: ${s.dataset.filename}`)},a)}})}),w(this,"preloadNearby",(t,s=!0)=>new Promise(a=>{setTimeout(()=>{const n=this.thumbnails[0].frames[t].text;if(this.showingThumbFilename===n){let o;o=s?this.thumbnails[0].frames.slice(t):this.thumbnails[0].frames.slice(0,t).reverse();let r=!1;o.forEach(h=>{const d=h.text;if(d!==n&&!this.loadedImages.includes(d)){r=!0,this.player.debug.log(`Preloading thumb filename: ${d}`);const{urlPrefix:v}=this.thumbnails[0],T=v+d,b=new Image;b.src=T,b.onload=()=>{this.player.debug.log(`Preloaded thumb filename: ${d}`),this.loadedImages.includes(d)||this.loadedImages.push(d),a()}}}),r||a()}},300)})),w(this,"getHigherQuality",(t,s,a,n)=>{if(t{this.showingThumbFilename===n&&(this.player.debug.log(`Showing higher quality thumb for: ${n}`),this.loadImage(t+1))},300)}}),w(this,"toggleThumbContainer",(t=!1,s=!1)=>{const a=this.player.config.classNames.previewThumbnails.thumbContainerShown;this.elements.thumb.container.classList.toggle(a,t),!t&&s&&(this.showingThumb=null,this.showingThumbFilename=null)}),w(this,"toggleScrubbingContainer",(t=!1)=>{const s=this.player.config.classNames.previewThumbnails.scrubbingContainerShown;this.elements.scrubbing.container.classList.toggle(s,t),t||(this.showingThumb=null,this.showingThumbFilename=null)}),w(this,"determineContainerAutoSizing",()=>{(this.elements.thumb.imageContainer.clientHeight>20||this.elements.thumb.imageContainer.clientWidth>20)&&(this.sizeSpecifiedInCSS=!0)}),w(this,"setThumbContainerSizeAndPos",()=>{if(this.sizeSpecifiedInCSS){if(this.elements.thumb.imageContainer.clientHeight>20&&this.elements.thumb.imageContainer.clientWidth<20){const t=Math.floor(this.elements.thumb.imageContainer.clientHeight*this.thumbAspectRatio);this.elements.thumb.imageContainer.style.width=`${t}px`}else if(this.elements.thumb.imageContainer.clientHeight<20&&this.elements.thumb.imageContainer.clientWidth>20){const t=Math.floor(this.elements.thumb.imageContainer.clientWidth/this.thumbAspectRatio);this.elements.thumb.imageContainer.style.height=`${t}px`}}else{const t=Math.floor(this.thumbContainerHeight*this.thumbAspectRatio);this.elements.thumb.imageContainer.style.height=`${this.thumbContainerHeight}px`,this.elements.thumb.imageContainer.style.width=`${t}px`}this.setThumbContainerPos()}),w(this,"setThumbContainerPos",()=>{const t=this.player.elements.progress.getBoundingClientRect(),s=this.player.elements.container.getBoundingClientRect(),{container:a}=this.elements.thumb,n=s.left-t.left+10,o=s.right-t.left-a.clientWidth-10;let r=this.mousePosX-t.left-a.clientWidth/2;ro&&(r=o),a.style.left=`${r}px`}),w(this,"setScrubbingContainerSize",()=>{const{width:t,height:s}=Di(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight});this.elements.scrubbing.container.style.width=`${t}px`,this.elements.scrubbing.container.style.height=`${s}px`}),w(this,"setImageSizeAndOffset",(t,s)=>{if(!this.usingSprites)return;const a=this.thumbContainerHeight/s.h;t.style.height=t.naturalHeight*a+"px",t.style.width=t.naturalWidth*a+"px",t.style.left=`-${s.x*a}px`,t.style.top=`-${s.y*a}px`}),this.player=i,this.thumbnails=[],this.loaded=!1,this.lastMouseMoveTime=Date.now(),this.mouseDown=!1,this.loadedImages=[],this.elements={thumb:{},scrubbing:{}},this.load()}get enabled(){return this.player.isHTML5&&this.player.isVideo&&this.player.config.previewThumbnails.enabled}get currentImageContainer(){return this.mouseDown?this.elements.scrubbing.container:this.elements.thumb.imageContainer}get usingSprites(){return Object.keys(this.thumbnails[0].frames[0]).includes("w")}get thumbAspectRatio(){return this.usingSprites?this.thumbnails[0].frames[0].w/this.thumbnails[0].frames[0].h:this.thumbnails[0].width/this.thumbnails[0].height}get thumbContainerHeight(){if(this.mouseDown){const{height:i}=Di(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight});return i}return this.sizeSpecifiedInCSS?this.elements.thumb.imageContainer.clientHeight:Math.floor(this.player.media.clientWidth/this.thumbAspectRatio/4)}get currentImageElement(){return this.mouseDown?this.currentScrubbingImageElement:this.currentThumbnailImageElement}set currentImageElement(i){this.mouseDown?this.currentScrubbingImageElement=i:this.currentThumbnailImageElement=i}}const Lt={insertElements(e,i){l.string(i)?bi(e,this.media,{src:i}):l.array(i)&&i.forEach(t=>{bi(e,this.media,t)})},change(e){fi(e,"sources.length")?(Ee.cancelRequests.call(this),this.destroy.call(this,()=>{this.options.quality=[],we(this.media),this.media=null,l.element(this.elements.container)&&this.elements.container.removeAttribute("class");const{sources:i,type:t}=e,[{provider:s=Ae.html5,src:a}]=i,n=s==="html5"?t:"div",o=s==="html5"?{}:{src:a};Object.assign(this,{provider:s,type:t,supported:V.check(t,s,this.config.playsinline),media:M(n,o)}),this.elements.container.appendChild(this.media),l.boolean(e.autoplay)&&(this.config.autoplay=e.autoplay),this.isHTML5&&(this.config.crossorigin&&this.media.setAttribute("crossorigin",""),this.config.autoplay&&this.media.setAttribute("autoplay",""),l.empty(e.poster)||(this.poster=e.poster),this.config.loop.active&&this.media.setAttribute("loop",""),this.config.muted&&this.media.setAttribute("muted",""),this.config.playsinline&&this.media.setAttribute("playsinline","")),R.addStyleHook.call(this),this.isHTML5&&Lt.insertElements.call(this,"source",i),this.config.title=e.title,Mi.setup.call(this),this.isHTML5&&Object.keys(e).includes("tracks")&&Lt.insertElements.call(this,"track",e.tracks),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&R.build.call(this),this.isHTML5&&this.media.load(),l.empty(e.previewThumbnails)||(Object.assign(this.config.previewThumbnails,e.previewThumbnails),this.previewThumbnails&&this.previewThumbnails.loaded&&(this.previewThumbnails.destroy(),this.previewThumbnails=null),this.config.previewThumbnails.enabled&&(this.previewThumbnails=new It(this))),this.fullscreen.update()},!0)):this.debug.warn("Invalid source format")}};function Sn(e=0,i=0,t=255){return Math.min(Math.max(e,i),t)}class Xe{constructor(i,t){if(w(this,"play",()=>l.function(this.media.play)?(this.ads&&this.ads.enabled&&this.ads.managerPromise.then(()=>this.ads.play()).catch(()=>ce(this.media.play())),this.media.play()):null),w(this,"pause",()=>this.playing&&l.function(this.media.pause)?this.media.pause():null),w(this,"togglePlay",r=>(l.boolean(r)?r:!this.playing)?this.play():this.pause()),w(this,"stop",()=>{this.isHTML5?(this.pause(),this.restart()):l.function(this.media.stop)&&this.media.stop()}),w(this,"restart",()=>{this.currentTime=0}),w(this,"rewind",r=>{this.currentTime-=l.number(r)?r:this.config.seekTime}),w(this,"forward",r=>{this.currentTime+=l.number(r)?r:this.config.seekTime}),w(this,"increaseVolume",r=>{const h=this.media.muted?0:this.volume;this.volume=h+(l.number(r)?r:0)}),w(this,"decreaseVolume",r=>{this.increaseVolume(-r)}),w(this,"airplay",()=>{V.airplay&&this.media.webkitShowPlaybackTargetPicker()}),w(this,"toggleControls",r=>{if(this.supported.ui&&!this.isAudio){const h=rt(this.elements.container,this.config.classNames.hideControls),d=r===void 0?void 0:!r,v=L(this.elements.container,this.config.classNames.hideControls,d);if(v&&l.array(this.config.controls)&&this.config.controls.includes("settings")&&!l.empty(this.config.settings)&&k.toggleMenu.call(this,!1),v!==h){const T=v?"controlshidden":"controlsshown";x.call(this,this.media,T)}return!v}return!1}),w(this,"on",(r,h)=>{O.call(this,this.elements.container,r,h)}),w(this,"once",(r,h)=>{_t.call(this,this.elements.container,r,h)}),w(this,"off",(r,h)=>{ut(this.elements.container,r,h)}),w(this,"destroy",(r,h=!1)=>{if(!this.ready)return;const d=()=>{document.body.style.overflow="",this.embed=null,h?(Object.keys(this.elements).length&&(we(this.elements.buttons.play),we(this.elements.captions),we(this.elements.controls),we(this.elements.wrapper),this.elements.buttons.play=null,this.elements.captions=null,this.elements.controls=null,this.elements.wrapper=null),l.function(r)&&r()):(ln.call(this),Ee.cancelRequests.call(this),ot(this.elements.original,this.elements.container),x.call(this,this.elements.original,"destroyed",!0),l.function(r)&&r.call(this.elements.original),this.ready=!1,setTimeout(()=>{this.elements=null,this.media=null},200))};this.stop(),clearTimeout(this.timers.loading),clearTimeout(this.timers.controls),clearTimeout(this.timers.resized),this.isHTML5?(R.toggleNativeControls.call(this,!0),d()):this.isYouTube?(clearInterval(this.timers.buffering),clearInterval(this.timers.playing),this.embed!==null&&l.function(this.embed.destroy)&&this.embed.destroy(),d()):this.isVimeo&&(this.embed!==null&&this.embed.unload().then(d),setTimeout(d,200))}),w(this,"supports",r=>V.mime.call(this,r)),this.timers={},this.ready=!1,this.loading=!1,this.failed=!1,this.touch=V.touch,this.media=i,l.string(this.media)&&(this.media=document.querySelectorAll(this.media)),(window.jQuery&&this.media instanceof jQuery||l.nodeList(this.media)||l.array(this.media))&&(this.media=this.media[0]),this.config=K({},Ni,Xe.defaults,t||{},(()=>{try{return JSON.parse(this.media.getAttribute("data-plyr-config"))}catch{return{}}})()),this.elements={container:null,fullscreen:null,captions:null,buttons:{},display:{},progress:{},inputs:{},settings:{popup:null,menu:null,panels:{},buttons:{}}},this.captions={active:null,currentTrack:-1,meta:new WeakMap},this.fullscreen={active:!1},this.options={speed:[],quality:[]},this.debug=new yn(this.config.debug),this.debug.log("Config",this.config),this.debug.log("Support",V),l.nullOrUndefined(this.media)||!l.element(this.media))return void this.debug.error("Setup failed: no suitable element passed");if(this.media.plyr)return void this.debug.warn("Target already setup");if(!this.config.enabled)return void this.debug.error("Setup failed: disabled by config");if(!V.check().api)return void this.debug.error("Setup failed: no support");const s=this.media.cloneNode(!0);s.autoplay=!1,this.elements.original=s;const a=this.media.tagName.toLowerCase();let n=null,o=null;switch(a){case"div":if(n=this.media.querySelector("iframe"),l.element(n)){if(o=Fi(n.getAttribute("src")),this.provider=fn(o.toString()),this.elements.container=this.media,this.media=n,this.elements.container.className="",o.search.length){const r=["1","true"];r.includes(o.searchParams.get("autoplay"))&&(this.config.autoplay=!0),r.includes(o.searchParams.get("loop"))&&(this.config.loop.active=!0),this.isYouTube?(this.config.playsinline=r.includes(o.searchParams.get("playsinline")),this.config.youtube.hl=o.searchParams.get("hl")):this.config.playsinline=!0}}else this.provider=this.media.getAttribute(this.config.attributes.embed.provider),this.media.removeAttribute(this.config.attributes.embed.provider);if(l.empty(this.provider)||!Object.values(Ae).includes(this.provider))return void this.debug.error("Setup failed: Invalid provider");this.type=Nt.video;break;case"video":case"audio":this.type=a,this.provider=Ae.html5,this.media.hasAttribute("crossorigin")&&(this.config.crossorigin=!0),this.media.hasAttribute("autoplay")&&(this.config.autoplay=!0),(this.media.hasAttribute("playsinline")||this.media.hasAttribute("webkit-playsinline"))&&(this.config.playsinline=!0),this.media.hasAttribute("muted")&&(this.config.muted=!0),this.media.hasAttribute("loop")&&(this.config.loop.active=!0);break;default:return void this.debug.error("Setup failed: unsupported type")}this.supported=V.check(this.type,this.provider,this.config.playsinline),this.supported.api?(this.eventListeners=[],this.listeners=new bn(this),this.storage=new Ye(this),this.media.plyr=this,l.element(this.elements.container)||(this.elements.container=M("div",{tabindex:0}),yi(this.media,this.elements.container)),R.migrateStyles.call(this),R.addStyleHook.call(this),Mi.setup.call(this),this.config.debug&&O.call(this,this.elements.container,this.config.events.join(" "),r=>{this.debug.log(`event: ${r.type}`)}),this.fullscreen=new de(this),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&R.build.call(this),this.listeners.container(),this.listeners.global(),this.config.ads.enabled&&(this.ads=new An(this)),this.isHTML5&&this.config.autoplay&&this.once("canplay",()=>ce(this.play())),this.lastSeekTime=0,this.config.previewThumbnails.enabled&&(this.previewThumbnails=new It(this))):this.debug.error("Setup failed: no support")}get isHTML5(){return this.provider===Ae.html5}get isEmbed(){return this.isYouTube||this.isVimeo}get isYouTube(){return this.provider===Ae.youtube}get isVimeo(){return this.provider===Ae.vimeo}get isVideo(){return this.type===Nt.video}get isAudio(){return this.type===Nt.audio}get playing(){return Boolean(this.ready&&!this.paused&&!this.ended)}get paused(){return Boolean(this.media.paused)}get stopped(){return Boolean(this.paused&&this.currentTime===0)}get ended(){return Boolean(this.media.ended)}set currentTime(i){if(!this.duration)return;const t=l.number(i)&&i>0;this.media.currentTime=t?Math.min(i,this.duration):0,this.debug.log(`Seeking to ${this.currentTime} seconds`)}get currentTime(){return Number(this.media.currentTime)}get buffered(){const{buffered:i}=this.media;return l.number(i)?i:i&&i.length&&this.duration>0?i.end(0)/this.duration:0}get seeking(){return Boolean(this.media.seeking)}get duration(){const i=parseFloat(this.config.duration),t=(this.media||{}).duration,s=l.number(t)&&t!==1/0?t:0;return i||s}set volume(i){let t=i;l.string(t)&&(t=Number(t)),l.number(t)||(t=this.storage.get("volume")),l.number(t)||({volume:t}=this.config),t>1&&(t=1),t<0&&(t=0),this.config.volume=t,this.media.volume=t,!l.empty(i)&&this.muted&&t>0&&(this.muted=!1)}get volume(){return Number(this.media.volume)}set muted(i){let t=i;l.boolean(t)||(t=this.storage.get("muted")),l.boolean(t)||(t=this.config.muted),this.config.muted=t,this.media.muted=t}get muted(){return Boolean(this.media.muted)}get hasAudio(){return!this.isHTML5||!!this.isAudio||Boolean(this.media.mozHasAudio)||Boolean(this.media.webkitAudioDecodedByteCount)||Boolean(this.media.audioTracks&&this.media.audioTracks.length)}set speed(i){let t=null;l.number(i)&&(t=i),l.number(t)||(t=this.storage.get("speed")),l.number(t)||(t=this.config.speed.selected);const{minimumSpeed:s,maximumSpeed:a}=this;t=Sn(t,s,a),this.config.speed.selected=t,setTimeout(()=>{this.media&&(this.media.playbackRate=t)},0)}get speed(){return Number(this.media.playbackRate)}get minimumSpeed(){return this.isYouTube?Math.min(...this.options.speed):this.isVimeo?.5:.0625}get maximumSpeed(){return this.isYouTube?Math.max(...this.options.speed):this.isVimeo?2:16}set quality(i){const t=this.config.quality,s=this.options.quality;if(!s.length)return;let a=[!l.empty(i)&&Number(i),this.storage.get("quality"),t.selected,t.default].find(l.number),n=!0;if(!s.includes(a)){const o=wi(s,a);this.debug.warn(`Unsupported quality option: ${a}, using ${o} instead`),a=o,n=!1}t.selected=a,this.media.quality=a,n&&this.storage.set({quality:a})}get quality(){return this.media.quality}set loop(i){const t=l.boolean(i)?i:this.config.loop.active;this.config.loop.active=t,this.media.loop=t}get loop(){return Boolean(this.media.loop)}set source(i){Lt.change.call(this,i)}get source(){return this.media.currentSrc}get download(){const{download:i}=this.config.urls;return l.url(i)?i:this.source}set download(i){l.url(i)&&(this.config.urls.download=i,k.setDownloadUrl.call(this))}set poster(i){this.isVideo?R.setPoster.call(this,i,!1).catch(()=>{}):this.debug.warn("Poster can only be set for video")}get poster(){return this.isVideo?this.media.getAttribute("poster")||this.media.getAttribute("data-poster"):null}get ratio(){if(!this.isVideo)return null;const i=ct(Pt.call(this));return l.array(i)?i.join(":"):i}set ratio(i){this.isVideo?l.string(i)&&Ci(i)?(this.config.ratio=ct(i),Be.call(this)):this.debug.error(`Invalid aspect ratio specified (${i})`):this.debug.warn("Aspect ratio can only be set for video")}set autoplay(i){const t=l.boolean(i)?i:this.config.autoplay;this.config.autoplay=t}get autoplay(){return Boolean(this.config.autoplay)}toggleCaptions(i){B.toggle.call(this,i,!1)}set currentTrack(i){B.set.call(this,i,!1),B.setup()}get currentTrack(){const{toggled:i,currentTrack:t}=this.captions;return i?t:-1}set language(i){B.setLanguage.call(this,i,!1)}get language(){return(B.getCurrentTrack.call(this)||{}).language}set pip(i){if(!V.pip)return;const t=l.boolean(i)?i:!this.pip;l.function(this.media.webkitSetPresentationMode)&&this.media.webkitSetPresentationMode(t?xt.active:xt.inactive),l.function(this.media.requestPictureInPicture)&&(!this.pip&&t?this.media.requestPictureInPicture():this.pip&&!t&&document.exitPictureInPicture())}get pip(){return V.pip?l.empty(this.media.webkitPresentationMode)?this.media===document.pictureInPictureElement:this.media.webkitPresentationMode===xt.active:null}setPreviewThumbnails(i){this.previewThumbnails&&this.previewThumbnails.loaded&&(this.previewThumbnails.destroy(),this.previewThumbnails=null),Object.assign(this.config.previewThumbnails,i),this.config.previewThumbnails.enabled&&(this.previewThumbnails=new It(this))}static supported(i,t,s){return V.check(i,t,s)}static loadSprite(i,t){return Si(i,t)}static setup(i,t={}){let s=null;return l.string(i)?s=Array.from(document.querySelectorAll(i)):l.nodeList(i)?s=Array.from(i):l.array(i)&&(s=i.filter(l.element)),l.empty(s)?null:s.map(a=>new Xe(a,t))}}Xe.defaults=tn(Ni);const Pn=["data-poster"],Fn=["src","type","size"],xn=["src"],Nn=bt({props:{video:null},setup(e){const i=e,t=Kt(()=>i.video),s={"4K":2160,"1080P":1080,"720P":720,"480P":480},a=D(),n=D();return vt(()=>{n.value=new Xe(a.value,{debug:!0})}),(r,h)=>m(t).mime_type.indexOf("video")!==-1?(U(),ee("video",{key:0,ref:(d,v)=>{v.playerRef=d,a.value=d},"data-poster":m(t).thumbnail_link},[(U(!0),ee(Ue,null,qe(m(t).medias,(d,v)=>(U(),ee("source",{src:d==null?void 0:d.link.url,type:m(t).mime_type==="video/x-matroska"?"video/webm":m(t).mime_type,size:s[d.resolution_name]},null,8,Fn))),256))],8,Pn)):m(t).mime_type.indexOf("audio")!==-1?(U(),ee("audio",{key:1,ref:(d,v)=>{v.playerRef=d,a.value=d}},[I("source",{src:m(t).web_content_link},null,8,xn)],512)):pe("",!0)}});const Mn={class:"container"},Dn={class:"status-bar-wrapper"},$n={class:"task-list"},In={class:"task-info"},Ln={class:"task-file-icon"},On=["src"],Bn={class:"task-info-wrapper"},jn={class:"task-file-name"},Rn={class:"task-desc-wrapper"},Hn={class:"task-desc"},Un=I("div",{class:"task-dot"},null,-1),qn={class:"task-desc"},Vn={class:"task-progress",style:{width:"60px","margin-right":"6px"}},zn=q(" \u786E\u5B9A\u5220\u9664\uFF1F "),Wn=bt({setup(e,{expose:i}){const t=D(),s=D(!1),a=D(0),n=D(),o=D(!0),r=D(),h=()=>{s.value=!0,re.get("https://api-drive.mypikpak.com/drive/v1/tasks",{params:{type:"offline",filters:{phase:{eq:"PHASE_TYPE_RUNNING"}},page_token:r.value||void 0,thumbnail_size:"SIZE_LARGE",with:"reference_resource"}}).then(T=>{const{tasks:b,next_page_token:_}=T.data;n.value&&clearTimeout(n.value),r.value||(t.value=[]),t.value=t.value.concat(b),r.value=_,t.value.length&&!o.value&&(n.value=setTimeout(()=>{h()},3e4)),s.value=!1})},d=T=>{re.delete("https://api-drive.mypikpak.com/drive/v1/tasks",{params:{task_ids:t.value[T].id,_t:new Date().getTime()}}).then(()=>{t.value[T].progress<100&&a.value--,t.value.splice(T,1)})},v=T=>{T.target.offsetHeight-T.target.scrollTop<30&&r.value&&!s.value&&h()};return Yt(o,()=>{o.value&&n.value?clearTimeout(n.value):h()}),vt(h),ns(()=>{n.value&&clearTimeout(n.value)}),i({getTask:h}),(T,b)=>{var _;return U(),ee("div",Mn,[I("div",{class:as(["content",{hide:o.value}])},[I("div",{class:"status-bar",onClick:b[0]||(b[0]=A=>o.value=!o.value)},[I("div",Dn,[q(ge(((_=t.value)==null?void 0:_.length)||0)+"\u9879\u4FDD\u5B58\u4E2D \xA0 ",1),s.value?(U(),Ce(m(Jt),{key:0,size:"small"})):pe("",!0)])]),I("div",$n,[p(m(Gt),{style:{"max-height":"400px"},onScroll:v},{default:y(()=>[(U(!0),ee(Ue,null,qe(t.value,(A,C)=>(U(),ee("div",{key:A.id,class:"task"},[I("div",In,[I("div",Ln,[I("img",{src:A.icon_link},null,8,On)]),I("div",Bn,[I("div",jn,[p(m(Qt),{tooltip:{width:"trigger"}},{default:y(()=>[q(ge(A.file_name),1)]),_:2},1024)]),I("div",Rn,[I("div",Hn,ge(m(ei)(A.file_size)),1),Un,I("div",qn,ge(A.message),1)])]),I("div",Vn,[p(m(ls),{type:"line",percentage:A.progress,processing:"","indicator-placement":"inside"},null,8,["percentage"])]),p(m(os),{onPositiveClick:N=>d(C),placement:"right"},{trigger:y(()=>[p(m(Q),{color:"#306eff"},{default:y(()=>[p(m(fe))]),_:1})]),default:y(()=>[zn]),_:2},1032,["onPositiveClick"])])]))),128))]),_:1})]),o.value?pe("",!0):(U(),ee("p",{key:0,class:"bottom",onClick:b[1]||(b[1]=A=>o.value=!0)},"\u6536\u8D77"))],2)])}}});var $i={exports:{}};(function(e){((i,t)=>{e.exports=t()})("streamSaver",()=>{const i=typeof window=="object"?window:this;i.HTMLElement||console.warn("streamsaver is meant to run on browsers main thread");let t=null,s=!1;const a=A=>{try{A()}catch{}},n=i.WebStreamsPolyfill||{},o=i.isSecureContext;let r=/constructor/i.test(i.HTMLElement)||!!i.safari||!!i.WebKitPoint;const h=o||"MozAppearance"in document.documentElement.style?"iframe":"navigate",d={createWriteStream:_,WritableStream:i.WritableStream||n.WritableStream,supported:!0,version:{full:"2.0.5",major:2,minor:0,dot:5},mitm:"https://jimmywarting.github.io/StreamSaver.js/mitm.html?version=2.0.0"};function v(A){if(!A)throw new Error("meh");const C=document.createElement("iframe");return C.hidden=!0,C.src=A,C.loaded=!1,C.name="iframe",C.isIframe=!0,C.postMessage=(...N)=>C.contentWindow.postMessage(...N),C.addEventListener("load",()=>{C.loaded=!0},{once:!0}),document.body.appendChild(C),C}function T(A){const C="width=200,height=100",N=document.createDocumentFragment(),E={frame:i.open(A,"popup",C),loaded:!1,isIframe:!1,isPopup:!0,remove(){E.frame.close()},addEventListener(...f){N.addEventListener(...f)},dispatchEvent(...f){N.dispatchEvent(...f)},removeEventListener(...f){N.removeEventListener(...f)},postMessage(...f){E.frame.postMessage(...f)}},$=f=>{f.source===E.frame&&(E.loaded=!0,i.removeEventListener("message",$),E.dispatchEvent(new Event("load")))};return i.addEventListener("message",$),E}try{new Response(new ReadableStream),o&&!("serviceWorker"in navigator)&&(r=!0)}catch{r=!0}a(()=>{const{readable:A}=new TransformStream,C=new MessageChannel;C.port1.postMessage(A,[A]),C.port1.close(),C.port2.close(),s=!0,Object.defineProperty(d,"TransformStream",{configurable:!1,writable:!1,value:TransformStream})});function b(){t||(t=o?v(d.mitm):T(d.mitm))}function _(A,C,N){let E={size:null,pathname:null,writableStrategy:void 0,readableStrategy:void 0},$=0,f=null,F=null,j=null;if(Number.isFinite(C)?([N,C]=[C,N],console.warn("[StreamSaver] Depricated pass an object as 2nd argument when creating a write stream"),E.size=N,E.writableStrategy=C):C&&C.highWaterMark?(console.warn("[StreamSaver] Depricated pass an object as 2nd argument when creating a write stream"),E.size=N,E.writableStrategy=C):E=C||{},!r){b(),F=new MessageChannel,A=encodeURIComponent(A.replace(/\//g,":")).replace(/['()]/g,escape).replace(/\*/g,"%2A");const W={transferringReadable:s,pathname:E.pathname||Math.random().toString().slice(-6)+"/"+A,headers:{"Content-Type":"application/octet-stream; charset=utf-8","Content-Disposition":"attachment; filename*=UTF-8''"+A}};E.size&&(W.headers["Content-Length"]=E.size);const Z=[W,"*",[F.port2]];if(s){const ie=h==="iframe"?void 0:{transform(Te,Ze){if(!(Te instanceof Uint8Array))throw new TypeError("Can only wirte Uint8Arrays");$+=Te.length,Ze.enqueue(Te),f&&(location.href=f,f=null)},flush(){f&&(location.href=f)}};j=new d.TransformStream(ie,E.writableStrategy,E.readableStrategy);const ke=j.readable;F.port1.postMessage({readableStream:ke},[ke])}F.port1.onmessage=ie=>{ie.data.download&&(h==="navigate"?(t.remove(),t=null,$?location.href=ie.data.download:f=ie.data.download):(t.isPopup&&(t.remove(),t=null,h==="iframe"&&v(d.mitm)),v(ie.data.download)))},t.loaded?t.postMessage(...Z):t.addEventListener("load",()=>{t.postMessage(...Z)},{once:!0})}let z=[];return!r&&j&&j.writable||new d.WritableStream({write(W){if(!(W instanceof Uint8Array))throw new TypeError("Can only wirte Uint8Arrays");if(r){z.push(W);return}F.port1.postMessage(W),$+=W.length,f&&(location.href=f,f=null)},close(){if(r){const W=new Blob(z,{type:"application/octet-stream; charset=utf-8"}),Z=document.createElement("a");Z.href=URL.createObjectURL(W),Z.download=A,Z.click()}else F.port1.postMessage("end")},abort(){z=[],F.port1.postMessage("abort"),F.port1.onmessage=null,F.port1.close(),F.port2.close(),F=null}},E.writableStrategy)}return d})})($i);var Ii=$i.exports;const Kn={class:"list-page list-page-files"},Yn={class:"header"},Jn={class:"title n-ellipsis"},Gn=q("\u6587\u4EF6"),Qn={class:"action"},Xn=q(" \u6DFB\u52A0\u81EA\u5B9A\u4E49\u83DC\u5355 "),Zn={key:0,class:"loading"},ea=q("\u52A0\u8F7D\u4E2D "),ta={key:0,class:"outer-wrapper static show"},ia={class:"toolbar-wrapper"},sa=q(" \u590D\u5236\u6240\u9009 "),na=q(" \u526A\u5207\u6240\u9009 "),aa=q(" \u63A8\u9001\u5230Aria2 "),la=q(" \u5206\u4EAB\u79D2\u4F20 "),oa=q(" \u5220\u9664\u6240\u9009 "),ra=I("div",null,"1.\u652F\u6301Magnet\u94FE\u63A5(magnet:?xt=urn)\uFF0CMagent\u94FE\u63A5\u53EA\u80FD\u9ED8\u8BA4\u4FDD\u5B58\u5230My Pack",-1),ua=I("div",null,"2.\u652F\u6301\u79D2\u4F20\u94FE\u63A5(PikPak://PikPak Tutorial.mp4|19682618|123)\u79D2\u4F20\u94FE\u63A5\u9ED8\u8BA4\u4FDD\u5B58\u5230\u5F53\u524D\u6587\u4EF6\u5939\u6216\u7B2C\u4E00\u4E2A\u6587\u4EF6\u5939\u4E0D\u80FD\u4FDD\u5B58\u5230\u6839\u76EE\u5F55",-1),ca=I("div",null,"3.\u652F\u6301\u65B0\u5EFA\u6587\u4EF6\u5939\uFF08\u666E\u901A\u683C\u5F0F\uFF0C\u4E0D\u5E26:\uFF09",-1),da=I("div",null,"4.\u6362\u884C\u6DFB\u52A0\u591A\u4E2A",-1),ha=I("br",null,null,-1),ma=q("\u6DFB\u52A0"),pa={style:{width:"100%",height:"100%"}},ga={style:{width:"100%",height:"calc(100vh - 80px)","text-align":"center"}},fa=["src"],ya=q("\u91CD\u547D\u540D"),ba=q(" \u81EA\u5B9A\u4E49\u83DC\u5355 "),va={href:"https://www.tjsky.net/?p=220#i-8",target:"_blank"},wa=q("\u6DFB\u52A0"),ka=q("\u590D\u5236"),Ta=q("\u590D\u5236"),Sa=bt({setup(e){const i=D(),t=rs(),s=us(),a=cs(),n=D([]),o=ds(),r=D([{title:"\u4FEE\u6539\u65F6\u95F4",key:"modified_time",sorter:"default",align:"right",render:u=>te(Es,{time:new Date(String(u.modified_time)||""),format:"MM-dd HH:MM"}),className:"modified_time",width:160}]),h=D([{type:"selection"},{title:"\u540D\u79F0",key:"name",sorter:"default",render:u=>te("div",{class:"file-info",onClick:()=>{u.kind==="drive#folder"?s.push("/list/"+u.id):(u.mime_type.indexOf("video")!=-1||u.mime_type.indexOf("image")!=-1||u.mime_type.indexOf("audio")!=-1)&&E(u.id).then(c=>{N.value=c.data,N.value.web_content_link&&(u.mime_type.indexOf("video")!=-1||u.mime_type.indexOf("audio")!=-1?$.value=!0:f.value=!0)})}},[te("img",{src:u.thumbnail_link||u.icon_link}),te(Qt,{class:"title"},{default:()=>String(u.name)}),te("span",{class:"action"},"1")])},{title:"\u5927\u5C0F",key:"size",sorter:(u,c)=>u.size-c.size,align:"right",render:u=>Number(u.size)>0?ei(Number(u.size)):"",className:"size",width:100},{title:"",key:"action",width:60,align:"right",render:u=>te(nt,{justify:"end"},{default:()=>[!C.value&&te(ze,{type:"primary",onClick:()=>Rt(u)},{default:()=>"\u91CD\u547D\u540D"}),!C.value&&te(ze,{type:"primary",onClick:()=>gt([u.id])},{default:()=>"\u590D\u5236"}),!C.value&&te(ze,{type:"primary",onClick:()=>pt([u.id])},{default:()=>"\u526A\u8D34"}),!C.value&&u.kind==="drive#file"&&te(ze,{type:"primary",onClick:()=>Bt(u.id)},{default:()=>"\u4E0B\u8F7D"}),!C.value&&te(ze,{type:"primary",onClick:()=>{o.warning({title:"\u8B66\u544A",content:"\u786E\u5B9A\u5220\u9664"+u.name+"\uFF1F",positiveText:"\u786E\u5B9A",negativeText:"\u4E0D\u786E\u5B9A",onPositiveClick:()=>{ke(String(u.id))}})}},{default:()=>"\u5220\u9664"}),te(As,{trigger:"click",placement:"bottom-end",options:Gi(u),onSelect:c=>{switch(c){case"name":Rt(u);break;case"batchCopy":gt([u.id]);break;case"batchMove":pt([u.id]);break;case"down":Bt(u.id);break;case"copyDown":E(u.id).then(S=>{N.value=S.data,j.value=!0});break;case"aria2Post":E(u.id).then(S=>{jt(S)});break;case"code":je(`PikPak://${u.name}|${u.size}|${u.hash}`);break;case"base":window.localStorage.setItem("pikpakUploadFolder",JSON.stringify(u));break;case"delete":o.warning({title:"\u8B66\u544A",content:"\u786E\u5B9A\u5220\u9664"+u.name+"\uFF1F",positiveText:"\u786E\u5B9A",negativeText:"\u4E0D\u786E\u5B9A",onPositiveClick:()=>{ke(String(u.id))}});break;case"sharePikPak":Zi.value="",Xi.value=u,es.value="",Qi.value=!0;break;default:if(c.indexOf("user")!==-1){const S=Number(c.replace("user-","")),g=me.value[S];g&&E(u.id).then(P=>{const H=se=>se.replace(/\{\{(.*?)\}\}/g,(ne,_e)=>{var Ht,Ut;_e=_e.trim();let yt=P.data[_e];return _e==="web_content_link"&&P.data.medias&&P.data.medias.length>0&&(yt=((Ut=(Ht=P.data.medias[0])==null?void 0:Ht.link)==null?void 0:Ut.url)||yt),yt});g.type==="a"?window.open(H(g.content),"_target"):g.type==="copy"&&je(H(g.content))})}break}}},{default:()=>te(Q,{color:"#306eff"},{default:()=>te(_s)})})]})}]),d=D(!1),v=D(),T=()=>{d.value=!0;let u={phase:{eq:"PHASE_TYPE_COMPLETE"},trashed:{eq:!1}};t.name!="list"&&(u.mime_type={prefix:String(t.name)+"/"});let c=t.name!=="list"?"*":t.params.id;re.get("https://api-drive.mypikpak.com/drive/v1/files",{params:{parent_id:c,thumbnail_size:"SIZE_LARGE",with_audit:!0,page_token:v.value||void 0,limit:100,filters:u}}).then(S=>{const{data:g}=S;v.value||(i.value=[]),i.value=i.value.concat(g.files),v.value=g.next_page_token}).finally(()=>{d.value=!1})},b=()=>{De.value=JSON.parse(window.localStorage.getItem("pikpakMoveFiles")||"[]"),$e.value=JSON.parse(window.localStorage.getItem("pikpakCopyFiles")||"[]"),me.value=JSON.parse(window.localStorage.getItem("pikpakUserMenu")||"[]"),i.value=[],n.value=[],v.value="",T(),A.value={},t.params.id&&t.params.id!=="*"&&E(String(t.params.id)).then(u=>{A.value=u.data})};Yt(t,()=>{b()});const _=D(),A=D(),C=D(!0);vt(()=>{document.body.clientWidth>968&&(C.value=!1,h.value.splice(2,0,...r.value),h.value[h.value.length-1].width=300);let c=JSON.parse(window.localStorage.getItem("pikpakAria2")||"{}");c.dir===void 0&&(c.dir=!0),c.host&&(_.value=c),b(),window.onbeforeunload=function(S){return!window.$downId||window.$downId.length===0?null:(S=S||window.event,S&&(S.returnValue="\u8FD8\u6709\u5F85\u4E0B\u8F7D\u6587\u4EF6"),"\u8FD8\u6709\u5F85\u4E0B\u8F7D\u6587\u4EF6?")}});const N=D(),E=u=>re.get("https://api-drive.mypikpak.com/drive/v1/files/"+u,{params:{_magic:"2021",thumbnail_size:"SIZE_LARGE"}}).then(c=>c),$=D(!1),f=D(!1),F=D(!1),j=D(!1),z=D(),W=D(),Z=Kt(()=>{let u="";if(t.params.id)u=String(t.params.id);else for(let c in i.value)if(i.value[c].kind==="drive#folder"){u=i.value[c].id;break}return u}),ie=()=>{const u=z.value.split(` +`);let c=0,S=!1,g=!1;u.forEach(P=>{if(P){let H={};if(P.indexOf("PikPak://")===0){const se=P.substring(9).split("|");g=!0,H={kind:"drive#file",parent_id:Z.value,name:se[0],size:se[1],hash:se[2],upload_type:"UPLOAD_TYPE_RESUMABLE",objProvider:{provider:"UPLOAD_TYPE_UNKNOWN"}}}else P.indexOf(":")!==-1?(S=!0,H={kind:"drive#file",name:"",parent_id:t.params.id||"",upload_type:"UPLOAD_TYPE_URL",url:{url:P},params:{from:"file"},folder_type:"DOWNLOAD"}):(g=!0,H={kind:"drive#folder",parent_id:t.params.id||"",name:P});F.value=!1,re.post("https://api-drive.mypikpak.com/drive/v1/files",H).then(se=>{(se.data.upload_type==="UPLOAD_TYPE_UNKNOWN"||P.indexOf("PikPak://")===-1)&&window.$message.success("\u6DFB\u52A0\u6210\u529F")}).finally(()=>{c++,c===u.length&&(z.value="",S&&W.value.getTask(),g&&(v.value="",T()))})}else c++})},ke=u=>{re.post("https://api-drive.mypikpak.com/drive/v1/files:batchTrash",{ids:typeof u=="string"?[u]:u}).then(()=>{window.$message.success("\u5220\u9664\u6210\u529F"),v.value="",typeof u=="object"&&(n.value=[]),T()})},Te=D(!1),Ze=D(""),je=u=>{Ss(()=>{const c=document.createElement("button"),S=new Fs(c,{text:()=>u,action:()=>"copy"});S.on("success",g=>{window.$message.success("\u590D\u5236\u6210\u529F"),S.destroy()}),S.on("error",g=>{window.$message.error("\u590D\u5236\u5931\u8D25\uFF0C\u60A8\u53EF\u4EE5F12\u6253\u5F00\u63A7\u5236\u53F0\u624B\u52A8\u590D\u5236\uFF0C\u6216\u624B\u52A8\u590D\u5236\u5F39\u7A97\u8F93\u5165\u6846"),Te.value=!0,Ze.value=u,console.log(g.text),S.destroy()}),c.click()})},Li=async()=>{let u="";if(Re.value)return!1;await Ot("\u5206\u4EAB\u79D2\u4F20");for(let c in he.value){const S=he.value[c];ae.value&&(ae.value.content=ae.value.content+`\r +\u83B7\u53D6`+S.parent+"/"+S.name+"\u6210\u529F"),u=u+`PikPak://${S.name}|${S.size}|${S.hash} +`}je(u),setTimeout(()=>{var c;Re.value=!1,(c=ae.value)==null||c.destroy()},1e3)},Oi=hs(),Re=D(!1),ae=D(),Ot=async u=>{he.value=[],Re.value=!0,ae.value=Oi.create({title:u||"\u63A8\u9001\u5230Aria2",closable:!1,content:"\u6B63\u5728\u83B7\u53D6\u5168\u90E8\u6587\u4EF6\u5217\u8868"});const c=JSON.parse(JSON.stringify(n.value));n.value=[];for(let S in i.value){const g=i.value[S];c.indexOf(g.id)!==-1&&(g.kind==="drive#file"?he.value.push({id:g.id,name:g.name,parent:"",size:g.size,hash:g.hash}):await ft(g.id,"",g.name))}ae.value.content="\u5171\u83B7\u53D6\u5230"+he.value.length+"\u4E2A\u6587\u4EF6"},Bi=async()=>{if(Re.value)return!1;await Ot(),!et.value&&_.value.dir&&await ji();const u=()=>{E(he.value[0].id).then(async c=>{var g,P;const S=he.value.shift();await jt(c,S.parent),((g=ae.value)==null?void 0:g.content)&&(ae.value.content=((P=ae.value)==null?void 0:P.content)+`\r +\u63A8\u9001`+S.parent+"/"+S.name+"\u6210\u529F"),he.value.length?setTimeout(()=>{u()},3e3):setTimeout(()=>{var H;(H=ae.value)==null||H.destroy(),Re.value=!1},1e3)})};u()},Bt=u=>{E(u).then(c=>{Ii.mitm="mitm.html";const S=Ii.createWriteStream(c.data.name);fetch(c.data.web_content_link).then(g=>{window.$downId||(window.$downId=[]),window.$downId.push(u);const P=g.body;if(window.WritableStream&&(P==null?void 0:P.pipeTo))return P.pipeTo(S).then(()=>{window.$downId.splice(window.$downId.indexOf(u),1)});const H=S.getWriter(),se=g.body.getReader(),ne=()=>se.read().then(_e=>{_e.done?H.close():H.write(_e.value).then(ne)});ne()})})},et=D(),ji=()=>{let u={id:"",jsonrpc:"2.0",method:"aria2.getGlobalOption",params:[]};_.value.token&&u.params.splice(0,0,"token:"+_.value.token),fetch(_.value.host,{method:"POST",body:JSON.stringify(u),headers:new Headers({"Content-Type":"application/json"})}).then(c=>c.json()).then(c=>{var S;et.value=((S=c==null?void 0:c.result)==null?void 0:S.dir)||""})},jt=(u,c)=>{let S=u.data.web_content_link,g={id:"",jsonrpc:"2.0",method:"aria2.addUri",params:[[S],{out:u.data.name}]};c&&et.value&&(g.params[1].dir=et.value+"/"+c),_.value.token&&g.params.splice(0,0,"token:"+_.value.token),fetch(_.value.host,{method:"POST",body:JSON.stringify(g),headers:new Headers({"Content-Type":"application/json"})}).then(P=>P.json()).then(P=>{P.error&&P.error.message?window.$message.error(P.error.message):P.result&&window.$message.success("\u63A8\u9001\u6210\u529F")}).catch(P=>console.error("Error:",P))},Ri=u=>{u.target.offsetHeight+u.target.scrollTop>=u.target.scrollHeight-30&&v.value&&!d.value&&T()},Hi=u=>{let c=[];i.value.forEach(S=>{n.value.indexOf(S.id)!==-1&&c.push(S.id)}),pt(c),n.value=[]},Ui=u=>{let c=[];i.value.forEach(S=>{n.value.indexOf(S.id)!==-1&&c.push(S.id)}),gt(c),n.value=[]},De=D(),pt=u=>{De.value=u,window.localStorage.setItem("pikpakMoveFiles",JSON.stringify(u)),window.$message.success("\u526A\u5207\u6210\u529F\uFF0C\u8BF7\u70B9\u51FB\u9875\u9762\u53F3\u4E0A\u65B9\u7C98\u8D34\u6309\u94AE")},$e=D(),gt=u=>{$e.value=u,window.localStorage.setItem("pikpakCopyFiles",JSON.stringify(u)),window.$message.success("\u590D\u5236\u6210\u529F\uFF0C\u8BF7\u70B9\u51FB\u9875\u9762\u53F3\u4E0A\u65B9\u7C98\u8D34\u6309\u94AE")},qi=()=>{re.post("https://api-drive.mypikpak.com/drive/v1/files:batchMove",{to:{parent_id:t.params.id||""},ids:De.value}).then(u=>{v.value="",T(),window.$message.success("\u526A\u5207\u6210\u529F"),De.value=[],window.localStorage.removeItem("pikpakMoveFiles")})},Vi=()=>{re.post("https://api-drive.mypikpak.com/drive/v1/files:batchCopy",{to:{parent_id:t.params.id||""},ids:$e.value}).then(u=>{v.value="",T(),window.$message.success("\u590D\u5236\u6210\u529F"),$e.value=[],window.localStorage.removeItem("pikpakCopyFiles")})},Rt=u=>{le.value={id:u.id,value:u.name},He.value=!0},He=D(!1),le=D(),zi=()=>{var u,c;re.patch("https://api-drive.mypikpak.com/drive/v1/files/"+((u=le.value)==null?void 0:u.id),{name:(c=le.value)==null?void 0:c.value}).then(()=>{T(),window.$message.success("\u4FEE\u6539\u6210\u529F"),le.value=null,He.value=!1})},he=D([]),ft=async(u,c,S)=>{const g=await re.get("https://api-drive.mypikpak.com/drive/v1/files",{params:{parent_id:u||void 0,thumbnail_size:"SIZE_LARGE",with_audit:!0,page_token:c||void 0,filters:{phase:{eq:"PHASE_TYPE_COMPLETE"},trashed:{eq:!1}}}}),{files:P,next_page_token:H}=g.data;H&&await ft(u,H,S);for(let se in P){const ne=P[se];ne.kind==="drive#folder"?await ft(ne.id,"",(S?S+"/":"")+ne.name):he.value.push({name:ne.name,id:ne.id,parent:S||"",size:ne.size,hash:ne.hash})}return 1},Wi=D([{label:"\u94FE\u63A5",value:"a"},{label:"\u590D\u5236",value:"copy"}]),Ki=D({web_content_link:"\u94FE\u63A5",name:"\u540D\u79F0",size:"\u5927\u5C0F",hash:"\u6587\u4EF6HASH\u503C"}),oe=D({type:"a",content:"",name:""}),tt=D(!1),me=D([]),Yi=()=>{me.value.push(JSON.parse(JSON.stringify(oe.value))),oe.value={type:"a",content:"",name:""},window.localStorage.setItem("pikpakUserMenu",JSON.stringify(me.value))},Ji=u=>{me.value.splice(u,1),window.localStorage.setItem("pikpakUserMenu",JSON.stringify(me.value))},Gi=u=>{const c=[{label:"\u91CD\u547D\u540D",key:"name"},{label:"\u590D\u5236",key:"batchCopy"},{label:"\u526A\u5207",key:"batchMove"},{label:"\u76F4\u63A5\u4E0B\u8F7D",key:"down",disabled:u.size<=0},{label:"\u590D\u5236\u4E0B\u8F7D\u94FE\u63A5",key:"copyDown",disabled:u.size<=0},{label:"\u63A8\u9001\u5230Aria2",key:"aria2Post",disabled:u.size<=0||!_.value||!_.value.host},{label:"\u590D\u5236\u79D2\u4F20",key:"code",disabled:!u.hash},{label:"\u8BBE\u4E3A\u9ED8\u8BA4\u76EE\u5F55",key:"base",disabled:u.kind!=="drive#folder"},{label:"\u5220\u9664",key:"delete"},{label:"\u76F4\u63A5\u5206\u4EAB",key:"sharePikPak",disabled:u.kind==="drive#folder"}];return u.kind!=="drive#folder"&&me.value.length&&(c.push({type:"divider",key:"d1"}),me.value.forEach((S,g)=>{c.push({label:S.name,key:"user-"+g})})),c},Qi=D(!1),Xi=D(),Zi=D(),es=D();return D(),(u,c)=>{const S=ms("router-link");return U(),ee("div",Kn,[I("div",Yn,[I("div",Jn,[p(m(ps),{separator:">"},{default:y(()=>[p(m(Xt),null,{default:y(()=>[p(S,{to:"/list"},{default:y(()=>[Gn]),_:1})]),_:1}),A.value&&A.value.name?(U(),Ce(m(Xt),{key:0},{default:y(()=>[q(ge(A.value.name),1)]),_:1})):pe("",!0)]),_:1})]),I("div",Qn,[p(m(nt),null,{default:y(()=>{var g,P;return[((g=De.value)==null?void 0:g.length)?(U(),Ce(m(ye),{key:0,type:"default",onClick:qi},{default:y(()=>[q(" \u7C98\u8D34\u5DF2\u526A\u5207"+ge(De.value.length)+"\u9879\u8D44\u6E90 ",1)]),_:1})):pe("",!0),((P=$e.value)==null?void 0:P.length)?(U(),Ce(m(ye),{key:1,onClick:Vi},{default:y(()=>[q(" \u7C98\u8D34\u5DF2\u590D\u5236"+ge($e.value.length)+"\u9879\u8D44\u6E90 ",1)]),_:1})):pe("",!0),p(m(ye),{onClick:c[0]||(c[0]=H=>tt.value=!0)},{default:y(()=>[Xn]),_:1}),p(m(Q),{color:m(a).primaryColor,onClick:c[1]||(c[1]=H=>F.value=!0)},{default:y(()=>[p(m(gs))]),_:1},8,["color"])]}),_:1})])]),p(m(Gt),{style:{"max-height":"calc(100vh - 190px)"},onScroll:Ri},{default:y(()=>[p(m(fs),{"checked-row-keys":n.value,"onUpdate:checked-row-keys":c[2]||(c[2]=g=>n.value=g),"row-key":g=>g.id,data:i.value,size:"small",columns:h.value,bordered:!1},null,8,["checked-row-keys","row-key","data","columns"]),d.value?(U(),ee("div",Zn,[p(m(Jt),{size:"small"}),ea])):pe("",!0)]),_:1}),p(Wn,{ref:(g,P)=>{P.taskRef=g,W.value=g}},null,512),n.value.length?(U(),ee("div",ta,[I("div",ia,[I("div",{class:"toolbar-item",onClick:Ui},[p(m(Ve),null,{trigger:y(()=>[p(m(Q),null,{default:y(()=>[p(m(ys))]),_:1})]),default:y(()=>[sa]),_:1})]),I("div",{class:"toolbar-item",onClick:Hi},[p(m(Ve),null,{trigger:y(()=>[p(m(Q),null,{default:y(()=>[p(m(bs))]),_:1})]),default:y(()=>[na]),_:1})]),I("div",{class:"toolbar-item",onClick:Bi},[p(m(Ve),null,{trigger:y(()=>[p(m(Q),null,{default:y(()=>[p(m(vs))]),_:1})]),default:y(()=>[aa]),_:1})]),I("div",{class:"toolbar-item",onClick:Li},[p(m(Ve),null,{trigger:y(()=>[p(m(Q),null,{default:y(()=>[p(m(ws))]),_:1})]),default:y(()=>[la]),_:1})]),I("div",{class:"toolbar-item",onClick:c[3]||(c[3]=g=>ke(n.value))},[p(m(Ve),null,{trigger:y(()=>[p(m(Q),null,{default:y(()=>[p(m(fe))]),_:1})]),default:y(()=>[oa]),_:1})])])])):pe("",!0),p(m(Pe),{show:F.value,"onUpdate:show":c[6]||(c[6]=g=>F.value=g)},{default:y(()=>[p(m(Fe),{style:{width:"600px"},title:"\u6DFB\u52A0\u94FE\u63A5\u6216\u65B0\u5EFA\u6587\u4EF6\u5939"},{"header-extra":y(()=>[p(m(Q),{onClick:c[4]||(c[4]=g=>F.value=!1)},{default:y(()=>[p(m(fe))]),_:1})]),action:y(()=>[p(m(ye),{block:!0,type:"primary",disabled:!z.value,onClick:ie},{default:y(()=>[ma]),_:1},8,["disabled"])]),default:y(()=>[p(m(ks),{"show-icon":!1,closable:"",title:"\u6DFB\u52A0\u8BF4\u660E"},{default:y(()=>[ra,ua,ca,da]),_:1}),ha,p(m(xe),{type:"textarea",rows:4,placeholder:"\u8BF7\u6309\u8BF4\u660E\u586B\u5199",value:z.value,"onUpdate:value":c[5]||(c[5]=g=>z.value=g)},null,8,["value"])]),_:1})]),_:1},8,["show"]),p(m(Pe),{show:$.value,"onUpdate:show":c[8]||(c[8]=g=>$.value=g)},{default:y(()=>[p(m(Fe),{style:{width:"100vw",height:"100vh"},title:N.value?N.value.name:"\u89C6\u9891"},{"header-extra":y(()=>[p(m(Q),{onClick:c[7]||(c[7]=g=>$.value=!1)},{default:y(()=>[p(m(fe))]),_:1})]),default:y(()=>[I("div",pa,[p(Nn,{video:N.value},null,8,["video"])])]),_:1},8,["title"])]),_:1},8,["show"]),p(m(Pe),{show:f.value,"onUpdate:show":c[10]||(c[10]=g=>f.value=g)},{default:y(()=>[p(m(Fe),{style:{width:"100vw",height:"100vh"},title:N.value?N.value.name:"\u56FE\u7247"},{"header-extra":y(()=>[p(m(Q),{onClick:c[9]||(c[9]=g=>f.value=!1)},{default:y(()=>[p(m(fe))]),_:1})]),default:y(()=>{var g;return[I("div",ga,[I("img",{src:(g=N.value)==null?void 0:g.web_content_link,style:{"max-width":"100%","max-height":"100%"}},null,8,fa)])]}),_:1},8,["title"])]),_:1},8,["show"]),p(m(Pe),{show:He.value,"onUpdate:show":c[13]||(c[13]=g=>He.value=g)},{default:y(()=>[p(m(Fe),{style:{width:"600px"},title:"\u4FEE\u6539\u540D\u79F0"},{"header-extra":y(()=>[p(m(Q),{onClick:c[11]||(c[11]=g=>He.value=!1)},{default:y(()=>[p(m(fe))]),_:1})]),action:y(()=>[p(m(ye),{block:!0,type:"primary",disabled:!le.value||!le.value.value,onClick:zi},{default:y(()=>[ya]),_:1},8,["disabled"])]),default:y(()=>[le.value?(U(),Ce(m(xe),{key:0,placeholder:le.value.value,value:le.value.value,"onUpdate:value":c[12]||(c[12]=g=>le.value.value=g)},null,8,["placeholder","value"])):pe("",!0)]),_:1})]),_:1},8,["show"]),p(m(Pe),{show:tt.value,"onUpdate:show":c[18]||(c[18]=g=>tt.value=g)},{default:y(()=>[p(m(Fe),{style:{width:"600px"},title:"\u81EA\u5B9A\u4E49\u83DC\u5355"},{header:y(()=>[ba,I("a",va,[p(m(Q),{style:{"vertical-align":"middle"},size:"20",color:"#d03050"},{default:y(()=>[p(m(Ts))]),_:1})])]),"header-extra":y(()=>[p(m(Q),{onClick:c[14]||(c[14]=g=>tt.value=!1)},{default:y(()=>[p(m(fe))]),_:1})]),default:y(()=>[p(m(wt),{"label-width":"160px","label-align":"left","label-placement":"left"},{default:y(()=>[p(m(be),{label:"\u81EA\u5B9A\u4E49\u83DC\u5355\u5217\u8868\uFF1A"},{default:y(()=>[p(m(nt),null,{default:y(()=>[(U(!0),ee(Ue,null,qe(me.value,(g,P)=>(U(),Ce(m(Ps),{key:P,closable:!0,onClose:H=>Ji(P)},{default:y(()=>[q(ge(g.name),1)]),_:2},1032,["onClose"]))),128))]),_:1})]),_:1}),p(m(be),{label:"\u81EA\u5B9A\u4E49\u83DC\u5355\u540D\u79F0\uFF1A"},{default:y(()=>[p(m(xe),{value:oe.value.name,"onUpdate:value":c[15]||(c[15]=g=>oe.value.name=g)},null,8,["value"])]),_:1}),p(m(be),{label:"\u81EA\u5B9A\u4E49\u83DC\u5355\u7C7B\u578B\uFF1A"},{default:y(()=>[p(m(Cs),{options:Wi.value,value:oe.value.type,"onUpdate:value":c[16]||(c[16]=g=>oe.value.type=g)},null,8,["options","value"])]),_:1}),p(m(be),{label:"\u81EA\u5B9A\u4E49\u83DC\u5355\u53EF\u63D2\u5165\uFF1A"},{default:y(()=>[p(m(nt),null,{default:y(()=>[(U(!0),ee(Ue,null,qe(Ki.value,(g,P)=>(U(),Ce(m(ye),{key:P,onClick:H=>oe.value.content=oe.value.content+"{{"+P+"}}"},{default:y(()=>[q(ge(g),1)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1}),p(m(be),{label:"\u81EA\u5B9A\u4E49\u83DC\u5355\u5185\u5BB9\uFF1A"},{default:y(()=>[p(m(xe),{type:"textarea",value:oe.value.content,"onUpdate:value":c[17]||(c[17]=g=>oe.value.content=g)},null,8,["value"])]),_:1}),p(m(be),null,{default:y(()=>[p(m(ye),{type:"primary",onClick:Yi},{default:y(()=>[wa]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["show"]),p(m(Pe),{show:j.value,"onUpdate:show":c[21]||(c[21]=g=>j.value=g)},{default:y(()=>[p(m(Fe),{style:{width:"600px"},title:"\u590D\u5236\u94FE\u63A5"},{"header-extra":y(()=>[p(m(Q),{onClick:c[19]||(c[19]=g=>j.value=!1)},{default:y(()=>[p(m(fe))]),_:1})]),default:y(()=>[p(m(wt),{"label-width":"40px","label-align":"left","label-placement":"left"},{default:y(()=>{var g;return[(U(!0),ee(Ue,null,qe((g=N.value)==null?void 0:g.medias,P=>(U(),Ce(m(be),{key:P.media_id,label:P.media_name},{default:y(()=>[p(m(Zt),null,{default:y(()=>[p(m(xe),{value:P.link.url},null,8,["value"]),p(m(ye),{type:"primary",onClick:H=>je(P.link.url)},{default:y(()=>[ka]),_:2},1032,["onClick"])]),_:2},1024)]),_:2},1032,["label"]))),128)),p(m(be),{label:"\u94FE\u63A5"},{default:y(()=>[p(m(Zt),null,{default:y(()=>{var P;return[p(m(xe),{value:(P=N.value)==null?void 0:P.web_content_link},null,8,["value"]),p(m(ye),{type:"primary",onClick:c[20]||(c[20]=H=>je(N.value.web_content_link))},{default:y(()=>[Ta]),_:1})]}),_:1})]),_:1})]}),_:1})]),_:1})]),_:1},8,["show"]),p(m(Pe),{show:Te.value,"onUpdate:show":c[23]||(c[23]=g=>Te.value=g)},{default:y(()=>[p(m(Fe),{style:{width:"600px"},title:"\u590D\u5236\u5931\u8D25\uFF0C\u81EA\u5DF1\u9009\u62E9\u590D\u5236"},{"header-extra":y(()=>[p(m(Q),{onClick:c[22]||(c[22]=g=>Te.value=!1)},{default:y(()=>[p(m(fe))]),_:1})]),default:y(()=>[p(m(wt),{"label-width":"0","label-align":"left","label-placement":"left"},{default:y(()=>[p(m(be),null,{default:y(()=>[p(m(xe),{value:Ze.value},null,8,["value"])]),_:1})]),_:1})]),_:1})]),_:1},8,["show"])])}}});export{Sa as default}; diff --git a/assets/login.a8b45006.css b/assets/login.a8b45006.css new file mode 100644 index 000000000..28355a1b4 --- /dev/null +++ b/assets/login.a8b45006.css @@ -0,0 +1 @@ +.login-page{background-color:#306eff;box-sizing:border-box;min-height:100vh;width:100%;padding-top:0;display:flex;align-items:flex-start;flex-direction:row;justify-content:center;position:relative;min-width:375px}.login-page .down{display:flex;align-items:center;flex-direction:column;margin-right:49px;margin-left:28px}.login-page .down img{max-width:56.5625vw;max-height:calc(100vh - 200px)}.login-page .logo-box{display:flex;align-items:center;margin:140px auto 0;justify-content:center}.login-page .logo-box__icon{width:50PX;height:50PX;margin-right:16PX}.login-page .logo-box__text{font-family:PingFangSC-Semibold;font-size:40PX;letter-spacing:-1.25PX;color:#fff}.login-page .login-box{margin-top:60px;background:#fff;border-radius:20px;width:348px;position:relative}.login-page .login-form{position:relative;overflow:hidden;padding:60px 22px 40px}.login-page .login-form button.block{width:100%}.login-page .n-form-item:nth-last-child(1) .n-form-item-blank{margin-top:-10px;justify-content:space-between}.login-page .n-form-item a{color:#306eff}.login-box .login-other{margin-top:-50px;text-align:center;padding-bottom:10px}@media (max-width: 968px){.login-page{justify-content:flex-end;flex-direction:column-reverse;align-items:center}.login-page .logo-box{margin-top:40px}} diff --git a/assets/login.ab63f8fe.js b/assets/login.ab63f8fe.js new file mode 100644 index 000000000..c3ddc8bdb --- /dev/null +++ b/assets/login.ab63f8fe.js @@ -0,0 +1 @@ +var I=Object.defineProperty;var v=Object.getOwnPropertySymbols;var P=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable;var C=(o,e,A)=>e in o?I(o,e,{enumerable:!0,configurable:!0,writable:!0,value:A}):o[e]=A,E=(o,e)=>{for(var A in e||(e={}))P.call(e,A)&&C(o,A,e[A]);if(v)for(var A of v(e))R.call(e,A)&&C(o,A,e[A]);return o};import{d as j,r as B,m as y,l as M,u as N,p as K,a as S,b as U,s as H,E as s,e as a,f as u,ao as O,w as t,ad as L,am as r,R as m,aQ as X,aT as Z,Q as V,F as k,I as w,aU as z,aV as Y,y as g}from"./vendor.64da71ad.js";import{_}from"./phone-pc2.dbf6d71e.js";import{i as x}from"./index.08e3cc88.js";const T={class:"login-page"},W=s("div",{class:"down"},[s("img",{src:_})],-1),G={class:"login"},J=s("div",{class:"logo-box"},[s("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAgKADAAQAAAABAAAAgAAAAABIjgR3AAALxUlEQVR4Ae1da6xU1RVeFy6PKyqIggIicHmJQIvYCq2FRlPTlqLVUGo10oQ2/dfUhv6oaX00bWqapjHxT/vD2jSltSm1rWlTU0pqCSrxEaryEOWhIK9bVAqCAl7h9vtmzr6cO3Nm7jlnZvasPXetZOWc2Wftvdf+1nf2ee29R8TEEDAEDAFDwBAwBAwBQ2DAIdA2EFrc09NzCdo5HToauq6tre2DpHbDbijSb4Qege6E3dtJdq2U1hIEQODYjsug06BTo21ntM/AXwB18lcEdpn7Ed+inD/h982xtOPY3wndDX0duiva57YL5fRgG7QEQwAEZxCQnghlYBlUbuMBH47faWQHAjc7yRB1bEP6jKRjCWknkUZiUEkIEoRk4XYf6jiLrXpp1+QhAjAE/kyC8ix26oLMgPN4rfK3KgXw2HeqHI8f6sCPOZHG07nfjbaQCI4cjijc7gU5ummkQbz3AACGZ+oUqOuqXaC5nQzlmd5IWYAA/CepAvg2H+nPJR2rYxp7hj3QOCncpeUN+HaqjnX1W1RDCAAgR6BmF1h3Brvt5f161TiDXQB4VrXi4ft2HKevzZL9qDjeczhy7Ibv79Xbqfa8BQKoUcjrguqCzS3TLs1bboPz/SFF+Wtg870Udo0y4QlC/XRpBcD8v0jrJQT2XS9CYh8ttU/zO1UPgIonoLDPQRdDGWAqH6lCk3kAijd6FQVt5Q3iSxUN9B7goyvJQd0A/QfaegDbqlKVAADjfOS+F3oXdHDVkvQf3AZA5qVxE+0mARKfFNLkV2JzBn48BP0R2n2ikk8Vb7gAAp+d10JXQUMPPtvPrj2tZLFNW6ZvO8aMsVsbxTKx/ooEgPVvodcm5gozMUtQs9hqR4MxZCwTJZEAYMwNsF6SmCPMxE3oBnltTCWR7aZUxmEYLYliWuZtIgFgdXeZZdgJf8zhfp48OarxliUxpmU3gWDKRLjEx4uyY95crX9FnTir92UpNsKBb/NaRfjdYmopDkk9wJ0wbKXgbyxtdJqIRnk2prENxIYxZWz7SBIBVvSxCP9HLTd0teTViFxZbPuc6ej2FsLrpzR6ntOn95GP3V6u7/rAg+MIeDk8L2f9GrMtAh7POsdKe4AyhjjDQLf35Q0+2xvlvS/Qtldyu0+Me3sAsH0YcvDV4chKOQNKPwxfGfxH6uEzsPk6yvkhdGw9ymtyGcdQ/wRgc5p+xAmwHL8fZWJA8hZ8dSN2+JxPfQ26BQ3kZ9e6CUjA3nIudCZ0OnQq1H0XGYP9kOQO4FN4zI0TgIMh+MFHm/BsLg0yr8scs3dcg7MgB1+bO1K4rSOHxl6DH4puInYFAqABl2F/L7T0noA2PoSfOSsFueKHDB+O1VpHRA5HBm7jPUezPpuzd5wEEnS1Rw28A9tGB78LdbggF85g/OaW37KDDjLaUFGiXupFGFD7CMjBr62VyMGTslHCWDPmD7oegM5xfFutcggFuGtxaZDrPpqlVmc15wc5RsC/ODnivce4Ovi+FeS8ug0VXY3Cns9Q4EHYMsiFszfaL/xGgRbkDEDmNY3IEb+UxMkxPkO517bDeEVCBhdkdza7Lcel8eWKSRMRiE60zXCB2kdADr60KiWH60lKybGCPcAaZOAYd3bfvE7zhuwDqEnrITAUTeKNJ+8veBnpIAGCn92ChpjkRKDRd/453bJsvhAwAvhCWmk9RgClgfHllhHAF9JK6zECKA2ML7eMAL6QVlqPEUBpYHy5ZQTwhbTSeowASgPjyy0jgC+kldZjBFAaGF9uGQF8Ia20HiOA0sD4cssI4AtppfUYAZQGxpdbRgBfSCutxwigNDC+3DIC+EJaaT1GAKWB8eWWEcAX0krr4bBw1bIDA9QPYQnEofC0E2NZLx2l2t2Cc7swvvrAO1jZGj5PwRjccRfp9VktAdZhqcaf/UXk8NG+4M3HiPd7vyIyWeGUy/VbRH765yJh415/dIrIPbdhmk895vPEC67Dvrph4d1nRL6/Gn/rUTaT7lxrhw3Bmu63iiy/7lxaM/fOYKrl/Y+K/P2Fyl6wN/j2zZiQV7YCcOU8Po6ouwf4xRPVg09QTneL/OQxkZf3+ICo/zp++c/qwWcJ3R8We7QXOD1WkagiwLY3RX7zZDp0zvKs+x2mMAHYZgrvUR4BAdIIp+D8AD3FKUXzrlQRYM3TIuxO08peLB2x8dW01o2xe+wZnN24bKWVg7ihXb81rXXj7VQR4OU3sjd4c4482WupnGPznsrHKh3ZkiNPpbJqTVdFgCM5lonIk6dW0OL5/5djkZpm+xz3XxUBejJ0/64RzZ7aegbX9ayS5TKXteys9qoIkNV5s68dASNA7RgGXYIRIOjw1e68EaB2DIMuwQgQdPhqd94IUDuGQZdgBAg6fLU7bwSoHcOgSzACBB2+2p1XRYC2wsK1tTfKZwl5XM6Tp1FtUkWAkVwdN6OMypEnYxVVzUdxueeMclGOPBmrSG2uigBXXp7a717DPHl6M9dhZ+aE7IXkyZO9lnQ5VBHgloXpnHZWo/E3DYtmu1/N2d6a0ecLsZLv9R9pjq9JtaoiwHWzRJZ+PMnN5LR7vixy/vDkY75Sr5kmsuyT6Wu7+0sizb5sxb1VRQA69t1lIldNjLuYvP/VG/ScSatuEeHI3/7ktkUin7+mPyu/x9WNCmbz+b38V+tEHsZYOw6mjAvnBdx/u8gnroynNn//LMYFrH5S5OcY1Fo6TnHMyOKw8MVNvlwloaSSAM7Rd98XeW5HNDEEQ8E7McliPrrcdnX9lvNY5MRJkWfhM8f+DRlcnBjyMfqMfY2imgAaAWs1nxSfS60Gtc72GAF0xsWbV0YAb1DrrMgIoDMu3rwyAniDWmdFRgCdcfHmlRHAG9Q6KzIC6IyLN6+MAN6g1lmREUBnXLx5ZQTwBrXOiowAOuPizSsjgDeodVbUrtOt9F4dPibyyj6RSzA8bNJYkQs60ufNY8lP1G++JfI2FobgwJWx+NYfsgRLAH5v53JyL71+Dv5B6M/mTiqOE1x0lcj08SK1DjXn4JQdB0SefkXkKSgXsuICVU7mdYo8sAKLQY52KWFtgxwPwDPwzgdFjuNsrCbnDSuepbOvKPYODNJ4KIefdwwtrj7K/Kew7BxX7jr6XnGFT5KLC1Ax2K/u739VLw70XL1K5Iox1bzReSxIAtz1sMiGOqy0xR6DS8zUY5mZxXNEHvqGziBX8woQhCVHcO2tR/DZanbl9Qg+y6JP78C30CQ4AuzHIsxahZeO0CQ4AgzHtVurDAvwljo4AszAnT1nBGmTiy8UmZFjmliz2xEcAQjYt25qNmzl9X/zC+VpIaQESYAvLhD52o0igxV4Tx/oS9Z5jVrIEeRjoANvJ1bq/vW/RJ7ZLnIMz/A+he8SOJdx5Wd0/hFEWiyCJoBrJKdlcaHpDdtEnn9NhMTIsoK3K6faln9ZMxPT1xfMEPkU3jLOnSwySNNKD9Wcr3KsJQhQ2j4Gn2/wtu4V2Y3/7+HjGZX/PVQ6b680L58y+LbQ6TTcdM7Bm8TpuMHTPCWttB1pf7ckAao1/sQpkZN47XvydPEVME/iDrwyHj6kuB2B/YEkA44AAym4adqq4D46jZtm0ygESICSGfiNqsrKVYjAhyRAl0LHzCU/CHSRAHhoMhmgCBwkAar8ReMAhWXgNPtFEuDxgdNea2kJAo/zMRCvPgqXgYtLDtrP1kaAIyvGD2pra8NrEXmgtdtqrUtA4MeMfeFtNnoBvv/CJxWZkmBoSa2HAL6cyCwQ4DTvATB0ug0vRmU5FIucmbQ4Aozx8ijmUiAAG4yETdishMZGvfOISQshwNiujGJdaFbhEhBvIC4HS/D791AMcjJpIQTeRVtuR/CfiLeptwdwiZEB18Be79JsGzwCjOXC0uCzVWUEYCIMt0Ovx+5S6L+h9r0AIAQmjBljt5SxZEyT/C+7BCQZ4bKAIRLyWeg06Dgo3xmkygs7Ez8I9KAaPtsfgu6CrkXQMQTGxBAwBAwBQ8AQMAQMAUPAEChB4P/jL7P6/eWMLgAAAABJRU5ErkJggg==",class:"logo-box__icon",alt:""}),s("div",{class:"logo-box__text"},"PikPak")],-1),q={class:"login-box"},$=g("\u8BB0\u4F4F\u767B\u9646"),ee=g("\u767B\u9646"),ae=s("a",{target:"_blank",href:"https://i.mypikpak.com/v1/file/center/account/v1/password/?type=forget_password&locale=zh-cn",class:"forget-password"},"\u5FD8\u8BB0\u5BC6\u7801",-1),ue={class:"login-other"},te=g(" \u624B\u673A\u767B\u9646 "),Ae=g(" APP\u5185\u8C37\u6B4C\u767B\u5F55\u7684\u8D26\u53F7\u8BF7\u5148\u901A\u8FC7\u5FD8\u8BB0\u5BC6\u7801\u8BBE\u7F6E\u5BC6\u7801\u540E\u767B\u5F55 "),de=j({setup(o){const e=B({username:"",password:""}),A=y(),c=B(!1),p=M(),D=N(),f=()=>{if(!e.value.password||!e.value.username)return!1;c.value=!0,x.post("https://user.mypikpak.com/v1/auth/signin",E({captcha_token:"",client_id:"YNxT9w7GMdWvEOKa",client_secret:"dbw2OtmVEeuUvIptb1Coyg"},e.value)).then(l=>{l.data&&l.data.access_token&&(window.localStorage.setItem("pikpakLogin",JSON.stringify(l.data)),d.value?window.localStorage.setItem("pikpakLoginData",JSON.stringify(e.value)):window.localStorage.removeItem("pikpakLoginData"),D.success("\u767B\u5F55\u6210\u529F"),p.push("/"),p.push((A.query.redirect||"/")+""))}).catch(()=>{c.value=!1})},d=B(!1),Q=K(),h=()=>{d.value&&Q.warning({title:"\u8B66\u544A",content:"\u8BB0\u4F4F\u767B\u9646\u662F\u6307\u6D4F\u89C8\u5668\u672C\u5730\u660E\u6587\u4FDD\u5B58\u7528\u6237\u540D\u5BC6\u7801\u7528\u4E8E\u4E0B\u6B21\u81EA\u52A8\u767B\u9646\uFF0C\u8BF7\u52FF\u5728\u975E\u4FE1\u4EFB\u8BBE\u5907\u9009\u62E9",positiveText:"\u786E\u5B9A",negativeText:"\u4E0D\u786E\u5B9A",onPositiveClick:()=>{},onNegativeClick:()=>{d.value=!1}})},F=()=>{x.get("https://api-drive.mypikpak.com/package/v1/apk/url/225815").then(l=>{window.open(l.data.apk_url)})};return(l,n)=>{const b=S("router-link");return U(),H("div",T,[W,s("div",G,[J,s("div",q,[a(u(O),{"label-align":"left","label-placement":"left","label-width":"0",class:"login-form"},{default:t(()=>[a(u(r),{label:""},{default:t(()=>[a(u(m),{value:e.value.username,"onUpdate:value":n[0]||(n[0]=i=>e.value.username=i),placeholder:"\u8BF7\u8F93\u5165\u90AE\u7BB1"},null,8,["value"])]),_:1}),a(u(r),{label:""},{default:t(()=>[a(u(m),{value:e.value.password,"onUpdate:value":n[1]||(n[1]=i=>e.value.password=i),placeholder:"\u8BF7\u8F93\u5165\u5BC6\u7801",onKeyup:X(f,["enter"]),type:"password","show-password-on":"mousedown"},null,8,["value","onKeyup"])]),_:1}),a(u(r),{label:""},{default:t(()=>[a(u(Z),{checked:d.value,"onUpdate:checked":[n[2]||(n[2]=i=>d.value=i),h]},{default:t(()=>[$]),_:1},8,["checked"])]),_:1}),a(u(r),null,{default:t(()=>[a(u(V),{type:"primary",class:"block",loading:c.value,onClick:f},{default:t(()=>[ee]),_:1},8,["loading"])]),_:1}),a(u(r),{label:""},{default:t(()=>[ae,s("a",{href:"javascript:;",onClick:F},"\u53BB\u4E0B\u8F7D\u6CE8\u518C\u5F975\u5929VIP")]),_:1})]),_:1}),s("div",ue,[a(u(L),{inline:""},{default:t(()=>[a(u(k),null,{trigger:t(()=>[a(b,{to:"sms"},{default:t(()=>[a(u(w),{color:"#306eff",size:32},{default:t(()=>[a(u(z))]),_:1})]),_:1})]),default:t(()=>[te]),_:1}),a(u(k),null,{trigger:t(()=>[a(u(w),{color:"#306eff",size:32},{default:t(()=>[a(u(Y))]),_:1})]),default:t(()=>[Ae]),_:1})]),_:1})])])])])}}});export{de as default}; diff --git a/assets/logo1.08eb9157.png b/assets/logo1.08eb9157.png new file mode 100644 index 000000000..5a4835391 Binary files /dev/null and b/assets/logo1.08eb9157.png differ diff --git a/assets/phone-pc2.5766971a.png b/assets/phone-pc2.5766971a.png new file mode 100644 index 000000000..e2d12dd82 Binary files /dev/null and b/assets/phone-pc2.5766971a.png differ diff --git a/assets/phone-pc2.dbf6d71e.js b/assets/phone-pc2.dbf6d71e.js new file mode 100644 index 000000000..b86bcbf49 --- /dev/null +++ b/assets/phone-pc2.dbf6d71e.js @@ -0,0 +1 @@ +var p="/pikpak/assets/phone-pc2.5766971a.png";export{p as _}; diff --git a/assets/register.4ab5752d.js b/assets/register.4ab5752d.js new file mode 100644 index 000000000..fd5045fd9 --- /dev/null +++ b/assets/register.4ab5752d.js @@ -0,0 +1 @@ +import{d as R,r as n,l as M,u as P,a6 as j,a as N,b as K,s as O,E as d,e as u,f as l,ao as S,w as o,F as Y,am as i,R as v,Q as x,y as p,A as U,ap as T,aQ as z,aT as W,I as Z,aV as H,k as G}from"./vendor.64da71ad.js";import{_ as L}from"./phone-pc2.dbf6d71e.js";import{i as f}from"./index.08e3cc88.js";const X={class:"login-page"},V=d("div",{class:"down"},[d("img",{src:L})],-1),q={class:"login"},J=d("div",{class:"logo-box"},[d("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAgKADAAQAAAABAAAAgAAAAABIjgR3AAALxUlEQVR4Ae1da6xU1RVeFy6PKyqIggIicHmJQIvYCq2FRlPTlqLVUGo10oQ2/dfUhv6oaX00bWqapjHxT/vD2jSltSm1rWlTU0pqCSrxEaryEOWhIK9bVAqCAl7h9vtmzr6cO3Nm7jlnZvasPXetZOWc2Wftvdf+1nf2ee29R8TEEDAEDAFDwBAwBAwBQ2DAIdA2EFrc09NzCdo5HToauq6tre2DpHbDbijSb4Qege6E3dtJdq2U1hIEQODYjsug06BTo21ntM/AXwB18lcEdpn7Ed+inD/h982xtOPY3wndDX0duiva57YL5fRgG7QEQwAEZxCQnghlYBlUbuMBH47faWQHAjc7yRB1bEP6jKRjCWknkUZiUEkIEoRk4XYf6jiLrXpp1+QhAjAE/kyC8ix26oLMgPN4rfK3KgXw2HeqHI8f6sCPOZHG07nfjbaQCI4cjijc7gU5ummkQbz3AACGZ+oUqOuqXaC5nQzlmd5IWYAA/CepAvg2H+nPJR2rYxp7hj3QOCncpeUN+HaqjnX1W1RDCAAgR6BmF1h3Brvt5f161TiDXQB4VrXi4ft2HKevzZL9qDjeczhy7Ibv79Xbqfa8BQKoUcjrguqCzS3TLs1bboPz/SFF+Wtg870Udo0y4QlC/XRpBcD8v0jrJQT2XS9CYh8ttU/zO1UPgIonoLDPQRdDGWAqH6lCk3kAijd6FQVt5Q3iSxUN9B7goyvJQd0A/QfaegDbqlKVAADjfOS+F3oXdHDVkvQf3AZA5qVxE+0mARKfFNLkV2JzBn48BP0R2n2ikk8Vb7gAAp+d10JXQUMPPtvPrj2tZLFNW6ZvO8aMsVsbxTKx/ooEgPVvodcm5gozMUtQs9hqR4MxZCwTJZEAYMwNsF6SmCPMxE3oBnltTCWR7aZUxmEYLYliWuZtIgFgdXeZZdgJf8zhfp48OarxliUxpmU3gWDKRLjEx4uyY95crX9FnTir92UpNsKBb/NaRfjdYmopDkk9wJ0wbKXgbyxtdJqIRnk2prENxIYxZWz7SBIBVvSxCP9HLTd0teTViFxZbPuc6ej2FsLrpzR6ntOn95GP3V6u7/rAg+MIeDk8L2f9GrMtAh7POsdKe4AyhjjDQLf35Q0+2xvlvS/Qtldyu0+Me3sAsH0YcvDV4chKOQNKPwxfGfxH6uEzsPk6yvkhdGw9ymtyGcdQ/wRgc5p+xAmwHL8fZWJA8hZ8dSN2+JxPfQ26BQ3kZ9e6CUjA3nIudCZ0OnQq1H0XGYP9kOQO4FN4zI0TgIMh+MFHm/BsLg0yr8scs3dcg7MgB1+bO1K4rSOHxl6DH4puInYFAqABl2F/L7T0noA2PoSfOSsFueKHDB+O1VpHRA5HBm7jPUezPpuzd5wEEnS1Rw28A9tGB78LdbggF85g/OaW37KDDjLaUFGiXupFGFD7CMjBr62VyMGTslHCWDPmD7oegM5xfFutcggFuGtxaZDrPpqlVmc15wc5RsC/ODnivce4Ovi+FeS8ug0VXY3Cns9Q4EHYMsiFszfaL/xGgRbkDEDmNY3IEb+UxMkxPkO517bDeEVCBhdkdza7Lcel8eWKSRMRiE60zXCB2kdADr60KiWH60lKybGCPcAaZOAYd3bfvE7zhuwDqEnrITAUTeKNJ+8veBnpIAGCn92ChpjkRKDRd/453bJsvhAwAvhCWmk9RgClgfHllhHAF9JK6zECKA2ML7eMAL6QVlqPEUBpYHy5ZQTwhbTSeowASgPjyy0jgC+kldZjBFAaGF9uGQF8Ia20HiOA0sD4cssI4AtppfUYAZQGxpdbRgBfSCutxwigNDC+3DIC+EJaaT1GAKWB8eWWEcAX0krr4bBw1bIDA9QPYQnEofC0E2NZLx2l2t2Cc7swvvrAO1jZGj5PwRjccRfp9VktAdZhqcaf/UXk8NG+4M3HiPd7vyIyWeGUy/VbRH765yJh415/dIrIPbdhmk895vPEC67Dvrph4d1nRL6/Gn/rUTaT7lxrhw3Bmu63iiy/7lxaM/fOYKrl/Y+K/P2Fyl6wN/j2zZiQV7YCcOU8Po6ouwf4xRPVg09QTneL/OQxkZf3+ICo/zp++c/qwWcJ3R8We7QXOD1WkagiwLY3RX7zZDp0zvKs+x2mMAHYZgrvUR4BAdIIp+D8AD3FKUXzrlQRYM3TIuxO08peLB2x8dW01o2xe+wZnN24bKWVg7ihXb81rXXj7VQR4OU3sjd4c4482WupnGPznsrHKh3ZkiNPpbJqTVdFgCM5lonIk6dW0OL5/5djkZpm+xz3XxUBejJ0/64RzZ7aegbX9ayS5TKXteys9qoIkNV5s68dASNA7RgGXYIRIOjw1e68EaB2DIMuwQgQdPhqd94IUDuGQZdgBAg6fLU7bwSoHcOgSzACBB2+2p1XRYC2wsK1tTfKZwl5XM6Tp1FtUkWAkVwdN6OMypEnYxVVzUdxueeMclGOPBmrSG2uigBXXp7a717DPHl6M9dhZ+aE7IXkyZO9lnQ5VBHgloXpnHZWo/E3DYtmu1/N2d6a0ecLsZLv9R9pjq9JtaoiwHWzRJZ+PMnN5LR7vixy/vDkY75Sr5kmsuyT6Wu7+0sizb5sxb1VRQA69t1lIldNjLuYvP/VG/ScSatuEeHI3/7ktkUin7+mPyu/x9WNCmbz+b38V+tEHsZYOw6mjAvnBdx/u8gnroynNn//LMYFrH5S5OcY1Fo6TnHMyOKw8MVNvlwloaSSAM7Rd98XeW5HNDEEQ8E7McliPrrcdnX9lvNY5MRJkWfhM8f+DRlcnBjyMfqMfY2imgAaAWs1nxSfS60Gtc72GAF0xsWbV0YAb1DrrMgIoDMu3rwyAniDWmdFRgCdcfHmlRHAG9Q6KzIC6IyLN6+MAN6g1lmREUBnXLx5ZQTwBrXOiowAOuPizSsjgDeodVbUrtOt9F4dPibyyj6RSzA8bNJYkQs60ufNY8lP1G++JfI2FobgwJWx+NYfsgRLAH5v53JyL71+Dv5B6M/mTiqOE1x0lcj08SK1DjXn4JQdB0SefkXkKSgXsuICVU7mdYo8sAKLQY52KWFtgxwPwDPwzgdFjuNsrCbnDSuepbOvKPYODNJ4KIefdwwtrj7K/Kew7BxX7jr6XnGFT5KLC1Ax2K/u739VLw70XL1K5Iox1bzReSxIAtz1sMiGOqy0xR6DS8zUY5mZxXNEHvqGziBX8woQhCVHcO2tR/DZanbl9Qg+y6JP78C30CQ4AuzHIsxahZeO0CQ4AgzHtVurDAvwljo4AszAnT1nBGmTiy8UmZFjmliz2xEcAQjYt25qNmzl9X/zC+VpIaQESYAvLhD52o0igxV4Tx/oS9Z5jVrIEeRjoANvJ1bq/vW/RJ7ZLnIMz/A+he8SOJdx5Wd0/hFEWiyCJoBrJKdlcaHpDdtEnn9NhMTIsoK3K6faln9ZMxPT1xfMEPkU3jLOnSwySNNKD9Wcr3KsJQhQ2j4Gn2/wtu4V2Y3/7+HjGZX/PVQ6b680L58y+LbQ6TTcdM7Bm8TpuMHTPCWttB1pf7ckAao1/sQpkZN47XvydPEVME/iDrwyHj6kuB2B/YEkA44AAym4adqq4D46jZtm0ygESICSGfiNqsrKVYjAhyRAl0LHzCU/CHSRAHhoMhmgCBwkAar8ReMAhWXgNPtFEuDxgdNea2kJAo/zMRCvPgqXgYtLDtrP1kaAIyvGD2pra8NrEXmgtdtqrUtA4MeMfeFtNnoBvv/CJxWZkmBoSa2HAL6cyCwQ4DTvATB0ug0vRmU5FIucmbQ4Aozx8ijmUiAAG4yETdishMZGvfOISQshwNiujGJdaFbhEhBvIC4HS/D791AMcjJpIQTeRVtuR/CfiLeptwdwiZEB18Be79JsGzwCjOXC0uCzVWUEYCIMt0Ovx+5S6L+h9r0AIAQmjBljt5SxZEyT/C+7BCQZ4bKAIRLyWeg06Dgo3xmkygs7Ez8I9KAaPtsfgu6CrkXQMQTGxBAwBAwBQ8AQMAQMAUPAEChB4P/jL7P6/eWMLgAAAABJRU5ErkJggg==",class:"logo-box__icon",alt:""}),d("div",{class:"logo-box__text"},"PikPak")],-1),$={class:"login-box"},ee=p("\u63A5\u53D7\u9080\u8BF7\u83B7\u5F9710\u5929vip"),ae=p("\u6CE8\u518C"),ue=p("\u5DF2\u6709\u8D26\u53F7\uFF1F\u70B9\u51FB\u767B\u5F55"),te=p(" APP\u5185\u8C37\u6B4C\u767B\u5F55\u7684\u8D26\u53F7\u8BF7\u5148\u901A\u8FC7\u5FD8\u8BB0\u5BC6\u7801\u8BBE\u7F6E\u5BC6\u7801\u540E\u767B\u5F55 "),ne=R({setup(le){const e=n({email:"",password:"",password1:"",name:"",verification_code:"",captcha_token:"",verification_id:""}),C=n(),F=(s,a)=>!a||a===e.value.password,h=n(!1),D={email:[{required:!0,message:"\u8BF7\u8F93\u5165\u90AE\u7BB1",trigger:"blur"},{type:"email",message:"\u8BF7\u8F93\u5165\u90AE\u7BB1",trigger:"blur"}],password:[{required:!0,message:"\u8BF7\u8F93\u5165\u5BC6\u7801",trigger:"blur"},{min:6,max:16,message:"16\u4F4D\u5BC6\u7801\u4F7F\u7528\u5B57\u6BCD\u6570\u5B57\u548C\u7B26\u53F7\u6DF7\u5408",trigger:"blur"},{type:"pattern",pattern:/^(?:(?=.*[a-zA-Z])(?=.*[\d])|(?=.*[!#+,.\\=:=@-])(?=.*[\d])|(?=.*[!#+,.\\=:=@-])(?=.*[a-zA-Z])).+$/g,message:"6-16\u4F4D\u5BC6\u7801\u4F7F\u7528\u5B57\u6BCD\u6570\u5B57\u548C\u7B26\u53F7\u6DF7\u5408",trigger:"blur"}],password1:[{required:!0,message:"\u8BF7\u518D\u6B21\u8F93\u5165\u5BC6\u7801",trigger:"blur"},{validator:F,message:"\u4E24\u6B21\u5BC6\u7801\u8F93\u5165\u4E0D\u4E00\u81F4",trigger:"blur"}],name:[{required:!0,message:"\u8BF7\u8F93\u5165\u7528\u6237\u540D",trigger:"blur"}],verification_code:[{required:!0,message:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801",trigger:"blur"}]},g=n(!1),B=n(!1),E=M(),b=P(),Q=(()=>{let s=32,a="abcdefhijkmnprstwxyz2345678",c=a.length,t="";for(let m=0;mf.post("https://user.mypikpak.com/v1/shield/captcha/init?client_id=YNxT9w7GMdWvEOKa",{action:e.value.captcha_token?"POST:/v1/auth/signup":"POST:/v1/auth/verification",captcha_token:e.value.captcha_token||"",client_id:"YNxT9w7GMdWvEOKa",device_id:Q,meta:{email:e.value.email},redirect_uri:"xlaccsdk01://xunlei.com/callback?state=harbor"}).then(a=>{a.data&&a.data.captcha_token&&(e.value.captcha_token=a.data.captcha_token)}),I=()=>{if(e.value.email)e.value.captcha_token="",g.value=!0,w().then(()=>{f.post("https://user.mypikpak.com/v1/auth/verification?client_id=YNxT9w7GMdWvEOKa",{captcha_token:e.value.captcha_token,client_id:"YNxT9w7GMdWvEOKa",email:e.value.email,locale:"zh-cn",target:"ANY"}).then(s=>{e.value.verification_id=s.data.verification_id,y()}).finally(()=>{g.value=!1})}).catch(()=>{g.value=!1});else return!1},r=n(60),A=n(),y=()=>{r.value=59,A.value&&clearInterval(A.value),A.value=setInterval(()=>{if(r.value--,r.value<=0){clearInterval(A.value),r.value=60;return}},1e3)},k=s=>{s.preventDefault(),C.value.validate(a=>{a||(B.value=!0,f.post("https://user.mypikpak.com/v1/auth/verification/verify?client_id=YNxT9w7GMdWvEOKa",{client_id:"YNxT9w7GMdWvEOKa",verification_id:e.value.verification_id,verification_code:e.value.verification_code}).then(c=>{w().then(()=>{f.post("https://user.mypikpak.com/v1/auth/signup?client_id=YNxT9w7GMdWvEOKa",{captcha_token:e.value.captcha_token,client_id:"YNxT9w7GMdWvEOKa",client_secret:"dbw2OtmVEeuUvIptb1Coyg",email:e.value.email,name:e.value.name,password:e.value.password,verification_token:c.data.verification_token}).then(t=>{h.value&&_(t.data),window.localStorage.setItem("pikpakLogin",JSON.stringify(t.data)),window.localStorage.removeItem("pikpakLoginData"),b.success("\u6CE8\u518C\u6210\u529F"),E.push("/")}).catch(t=>{B.value=!1})})}).catch(c=>{B.value=!1}))})},_=s=>{G.get("https://invite.z7.workers.dev/"+s.sub,{headers:{authorization:s.token_type+" "+s.access_token}}).then(a=>{})};return j(()=>{A.value&&clearInterval(A.value)}),(s,a)=>{const c=N("router-link");return K(),O("div",X,[V,d("div",q,[J,d("div",$,[u(l(S),{"label-align":"left",style:{"padding-top":"30px"},model:e.value,rules:D,ref:(t,m)=>{m.formRef=t,C.value=t},"label-placement":"left","label-width":"0",class:"login-form"},{default:o(()=>[u(l(i),{path:"email"},{default:o(()=>[u(l(v),{value:e.value.email,"onUpdate:value":a[0]||(a[0]=t=>e.value.email=t),placeholder:"\u8BF7\u8F93\u5165\u90AE\u7BB1"},null,8,["value"])]),_:1}),u(l(i),{path:"verification_code"},{default:o(()=>[u(l(T),null,{default:o(()=>[u(l(v),{value:e.value.verification_code,"onUpdate:value":a[1]||(a[1]=t=>e.value.verification_code=t),placeholder:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801"},null,8,["value"]),u(l(x),{onClick:I,disabled:r.value<60,loading:g.value},{default:o(()=>[p(U(r.value>=60?"\u53D1\u9001\u9A8C\u8BC1\u7801":"\u91CD\u65B0\u53D1\u9001 "+r.value+"s"),1)]),_:1},8,["disabled","loading"])]),_:1})]),_:1}),u(l(i),{path:"name"},{default:o(()=>[u(l(v),{value:e.value.name,"onUpdate:value":a[2]||(a[2]=t=>e.value.name=t),placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u540D"},null,8,["value"])]),_:1}),u(l(i),{path:"password"},{default:o(()=>[u(l(v),{value:e.value.password,"onUpdate:value":a[3]||(a[3]=t=>e.value.password=t),placeholder:"\u8BF7\u8F93\u5165\u5BC6\u7801",type:"password","show-password-on":"mousedown"},null,8,["value"])]),_:1}),u(l(i),{path:"password1"},{default:o(()=>[u(l(v),{disabled:!e.value.password,value:e.value.password1,"onUpdate:value":a[4]||(a[4]=t=>e.value.password1=t),placeholder:"\u8BF7\u518D\u6B21\u8F93\u5165\u5BC6\u7801",onKeyup:z(k,["enter"]),type:"password","show-password-on":"mousedown"},null,8,["disabled","value","onKeyup"])]),_:1}),u(l(i),{label:""},{default:o(()=>[u(l(W),{checked:h.value,"onUpdate:checked":a[5]||(a[5]=t=>h.value=t)},{default:o(()=>[ee]),_:1},8,["checked"])]),_:1}),u(l(i),null,{default:o(()=>[u(l(x),{type:"primary",class:"block",loading:B.value,onClick:k},{default:o(()=>[ae]),_:1},8,["loading"])]),_:1}),u(l(i),{label:""},{default:o(()=>[u(c,{to:"/login",class:"forget-password"},{default:o(()=>[ue]),_:1})]),_:1})]),_:1},8,["model"]),u(l(Y),null,{trigger:o(()=>[u(l(Z),{color:"#306eff",size:32,class:"google-tips"},{default:o(()=>[u(l(H))]),_:1})]),default:o(()=>[te]),_:1})])])])}}});export{ne as default}; diff --git a/assets/register.5588ce76.css b/assets/register.5588ce76.css new file mode 100644 index 000000000..624f23a42 --- /dev/null +++ b/assets/register.5588ce76.css @@ -0,0 +1 @@ +.login-page{background-color:#306eff;box-sizing:border-box;min-height:100vh;width:100%;padding-top:0;display:flex;align-items:flex-start;flex-direction:row;justify-content:center;position:relative;min-width:375px}.login-page .down{display:flex;align-items:center;flex-direction:column;margin-right:49px;margin-left:28px}.login-page .down img{max-width:56.5625vw;max-height:calc(100vh - 200px)}.login-page .logo-box{display:flex;align-items:center;margin:140px auto 0;justify-content:center}.login-page .logo-box__icon{width:50PX;height:50PX;margin-right:16PX}.login-page .logo-box__text{font-family:PingFangSC-Semibold;font-size:40PX;letter-spacing:-1.25PX;color:#fff}.login-page .login-box{margin-top:60px;background:#fff;border-radius:20px;width:348px;position:relative}.login-page .login-form{position:relative;overflow:hidden;padding:60px 22px 40px}.login-page .login-form button.block{width:100%}.login-page .n-form-item:nth-last-child(2) .n-form-item-blank{justify-content:space-between}.login-page .n-form-item a{color:#306eff}.login-page .google-tips{position:absolute;bottom:15px;left:50%;margin-left:-16px}@media (max-width: 968px){.login-page{justify-content:flex-end;flex-direction:column-reverse;align-items:center}.login-page .logo-box{margin-top:40px}} diff --git a/assets/setting.22009dbb.js b/assets/setting.22009dbb.js new file mode 100644 index 000000000..2a15d5c56 --- /dev/null +++ b/assets/setting.22009dbb.js @@ -0,0 +1,4 @@ +import{d as P,r as _,p as U,o as J,a as $,b as f,s as D,e,f as t,ax as M,w as a,ay as d,E as l,al as h,I as v,az as k,R as c,Q as g,am as r,aA as w,c as L,ak as V,D as A,ao as C,T as z,ad as y,aB as R,y as i}from"./vendor.64da71ad.js";import{p as b,i as G}from"./index.08e3cc88.js";var Q="/pikpak/assets/aria2-tip-1.e9ebfae4.png",H="/pikpak/assets/aria2-tip-2.f3636f8d.png";const K={class:"list-page"},Z=i(" \u7ED1\u5B9Atelegram "),q=l("p",null,null,-1),W=i("Telegram\u7ED1\u5B9A"),X=l("a",{href:"https://t.me/PikPak_Bot",target:"_blank"},"Telegram\u673A\u5668\u4EBA\u5730\u5740",-1),Y=i("aria2\u8BBE\u7F6E "),uu=i("\u9009\u62E9\u6587\u4EF6\u5939\u65F6\u4FDD\u5B58\u6587\u4EF6\u5939\u7ED3\u6784"),eu=i("\u9009\u62E9\u6587\u4EF6\u5939\u65F6\u4EC5\u4FDD\u5B58\u6587\u4EF6"),tu=l("img",{src:Q,alt:""},null,-1),au=l("br",null,null,-1),lu=l("br",null,null,-1),ou=l("img",{src:H,alt:""},null,-1),su=i("\u6D4B\u8BD5\u5E76\u4FDD\u5B58"),nu=i("\u81EA\u52A8\u767B\u5F55\u8BBE\u7F6E "),iu=i("\u4FDD\u5B58"),ru=l("p",null,null,-1),du=i("\u4FDD\u5B58\u8BBE\u7F6E"),pu=i("\u6062\u590D\u9ED8\u8BA4"),Fu=l("a",{href:"https://mypikpak.com/",target:"_blank",class:"n-button"},"\u5B98\u65B9\u7F51\u7AD9",-1),Eu=l("a",{href:"https://t.me/pikpak_userservice",target:"_blank",class:"n-button"},"\u5B98\u65B9\u4EA4\u6D41\u7FA4",-1),_u=l("a",{href:"https://github.com/tjsky/pikpak",target:"_blank",class:"n-button"},"\u5F00\u6E90\u4ED3\u5E93",-1),cu=l("a",{href:"https://www.tjsky.net/?p=201",target:"_blank",class:"n-button"},"\u90E8\u7F72\u6559\u7A0B",-1),Bu=l("a",{href:"https://t.me/pikpak_userservice",target:"_blank"},"\u95EE\u9898\u53CD\u9988",-1),mu=l("br",null,null,-1),gu=l("a",{href:"https://github.com/MotooriKashin/ef2/releases",target:"_blank",class:"n-button"},"\u5730\u5740\u4E00\uFF1A\u4E0B\u8F7D\u652F\u6301\u63D2\u4EF6",-1),fu=l("a",{href:"https://url71.ctfile.com/f/21226171-531688310-489b35",target:"_blank",class:"n-button"},"\u5730\u5740\u4E8C\uFF1A\u4E0B\u8F7D\u652F\u6301\u63D2\u4EF6\uFF08\u5BC6\u7801pikpak\uFF09",-1),hu=l("a",{href:"https://www.tjsky.net/?p=220#PCIDM",target:"_blank",class:"n-button"},"\u4F7F\u7528\u6559\u7A0B",-1),vu=l("br",null,null,-1),ku=i("\u5148\u7528\u7B2C\u4E00\u4E2A\u4E0B\u8F7D\u5730\u5740\uFF0C\u5982\u679C\u4F60\u5B9E\u5728\u65E0\u6CD5\u8BBF\u95EEgithub\u518D\u4F7F\u7528\u7B2C\u4E8C\u4E2A\u4E0B\u8F7D\u5730\u5740\uFF0C\u8C03\u7528IDM\u4E0B\u8F7D\u9700\u8981\u914D\u5408\u201C\u81EA\u5B9A\u4E49\u83DC\u5355\u201D\u529F\u80FD\u5B9E\u73B0\uFF0C\u8BF7\u67E5\u770B\u4E0A\u65B9\u7684\u4F7F\u7528\u6559\u7A0B "),Du=l("br",null,null,-1),yu=P({setup(wu){const x=_(["\u624B\u673A\u6CE8\u518C\u767B\u9646","\u6DFB\u52A0\u63A8\u5E7F\u4E0B\u8F7D","\u7ED1\u5B9ATelegram","\u76F4\u63A5\u5206\u4EAB\u529F\u80FD\uFF08\u4E0B\u7EBF\uFF09","\u4FEE\u6539\u4F20\u8F93\u81EA\u52A8\u8BF7\u6C42\u65B9\u5F0F","\u4F20\u8F93\u53EA\u663E\u793A\u4FDD\u5B58\u4E2D","\u81EA\u5B9A\u4E49\u83DC\u5355","\u8D44\u6E90\u5E93\u5206\u9875\uFF0C\u5206\u4EAB\u79D2\u4F20\u652F\u6301\u6587\u4EF6\u53CA","...."]),o=_({host:"",token:"",dir:!0}),S=()=>{let n={id:"",jsonrpc:"2.0",method:"aria2.getGlobalStat",params:[]};o.value.token&&n.params.splice(0,0,"token:"+o.value.token),fetch(o.value.host,{method:"POST",body:JSON.stringify(n),headers:new Headers({"Content-Type":"application/json"})}).then(u=>u.json()).then(u=>{u.error&&u.error.message?window.$message.error(u.error.message):u.result&&(window.localStorage.setItem("pikpakAria2",JSON.stringify(o.value)),window.$message.success("\u4FDD\u5B58\u6210\u529F"))}).catch(u=>console.error("Error:",u))},B=_(!1),p=_({username:"",password:""}),N=U(),I=()=>{B.value?N.warning({title:"\u8B66\u544A",content:"\u8BB0\u4F4F\u767B\u9646\u662F\u6307\u6D4F\u89C8\u5668\u672C\u5730\u660E\u6587\u4FDD\u5B58\u7528\u6237\u540D\u5BC6\u7801\u7528\u4E8E\u4E0B\u6B21\u81EA\u52A8\u767B\u9646\uFF0C\u8BF7\u52FF\u5728\u975E\u4FE1\u4EFB\u8BBE\u5907\u9009\u62E9",positiveText:"\u786E\u5B9A",negativeText:"\u4E0D\u786E\u5B9A",onPositiveClick:()=>{window.localStorage.setItem("pikpakLoginData",JSON.stringify(p.value))},onNegativeClick:()=>{}}):window.localStorage.removeItem("pikpakLoginData")},m=_(""),T=()=>{let n=m.value.split(` +`).filter(u=>u!="");window.localStorage.setItem("proxy",JSON.stringify(n)),window.localStorage.setItem("isSettingProxy","true")},j=()=>{window.localStorage.setItem("proxy",JSON.stringify(b)),window.localStorage.removeItem("isSettingProxy"),m.value=b.join(` +`)};J(()=>{let n=JSON.parse(window.localStorage.getItem("pikpakAria2")||"{}");n.dir===void 0&&(n.dir=!0),n.host&&(o.value=n);let u=JSON.parse(window.localStorage.getItem("pikpakLoginData")||"{}");u.username&&u.password&&(p.value=u,B.value=!0);let E=JSON.parse(window.localStorage.getItem("proxy")||"[]");E.length&&(m.value=E.join(` +`))});const F=_(),O=()=>{let n=JSON.parse(window.localStorage.getItem("pikpakLogin")||"{}");if(!n&&!n.access_token)return window.$message.error("\u8BF7\u5148\u767B\u9646"),!1;let u=F.value&&decodeURIComponent(F.value).match(/(^|&)token=([^&]*)(&|$)/);if(console.log(u),!u||!u.length||u.length!=4)return window.$message.error("\u8BF7\u8F93\u5165\u6B63\u786E\u94FE\u63A5"),!1;G.post("https://api-drive.mypikpak.com/user/v1/bind",{accessToken:n.access_token,thirdType:"TG",thirdToken:u[2]}).then(E=>{F.value="",E.data.bound?window.$message.success("\u7ED1\u5B9A\u6210\u529F"):window.$message.error("\u7ED1\u5B9A\u5931\u8D25")})};return(n,u)=>{const E=$("n-text");return f(),D("div",K,[e(t(M),{"default-expanded-names":["-1","0","2","3","4"]},{default:a(()=>[e(t(d),{name:"-1"},{header:a(()=>[Z,l("a",{onClick:u[0]||(u[0]=k(()=>{},["stop"])),href:"https://www.tjsky.net/?p=220#Telegram",target:"_blank"},[e(t(v),{style:{"vertical-align":"middle"},size:"20",color:"#d03050"},{default:a(()=>[e(t(h))]),_:1})])]),default:a(()=>[e(t(c),{value:F.value,"onUpdate:value":u[1]||(u[1]=s=>F.value=s),placeholder:"\u590D\u5236telegram\u7ED1\u5B9A\u94FE\u63A5\u5230\u8FD9"},null,8,["value"]),q,e(t(g),{disabled:!F.value,type:"primary",onClick:O},{default:a(()=>[W]),_:1},8,["disabled"]),X]),_:1}),e(t(d),{name:"0",title:"aria2\u8BBE\u7F6E"},{header:a(()=>[Y,l("a",{onClick:u[2]||(u[2]=k(()=>{},["stop"])),href:"https://www.tjsky.net/?p=220#arai2",target:"_blank"},[e(t(v),{style:{"vertical-align":"middle"},size:"20",color:"#d03050"},{default:a(()=>[e(t(h))]),_:1})])]),default:a(()=>[e(t(C),{"label-width":"100px","label-align":"left","label-placement":"left"},{default:a(()=>[e(t(r),{label:"aria2\u94FE\u63A5\uFF1A"},{default:a(()=>[e(t(c),{value:o.value.host,"onUpdate:value":u[3]||(u[3]=s=>o.value.host=s),placeholder:"\u4F8B\u5982http://localhost:6800/jsonrpc"},null,8,["value"])]),_:1}),e(t(r),{label:"aria2Token\uFF1A"},{default:a(()=>[e(t(c),{value:o.value.token,"onUpdate:value":u[4]||(u[4]=s=>o.value.token=s),type:"password","show-password-on":"mousedown"},null,8,["value"])]),_:1}),e(t(r),{label:"\u6587\u4EF6\u5939\u8BBE\u7F6E\uFF1A"},{default:a(()=>[e(t(w),{value:o.value.dir,"onUpdate:value":u[5]||(u[5]=s=>o.value.dir=s)},{checked:a(()=>[uu]),unchecked:a(()=>[eu]),_:1},8,["value"])]),_:1}),o.value.host&&o.value.host.indexOf("https://")===-1&&o.value.host.indexOf("http://localhost")==-1&&o.value.host.indexOf("http://127.0.0.1")===-1?(f(),L(t(V),{key:0,title:"\u7531\u4E8E\u6D4F\u89C8\u5668\u9650\u5236\uFF0C\u8BF7\u6309\u4E0B\u56FE\u8BBE\u7F6E\u5F00\u59CB\u6DF7\u5408\u6A21\u5F0F",type:"info"},{default:a(()=>[tu,au,lu,ou]),_:1})):A("",!0),e(t(r),null,{default:a(()=>[e(t(g),{type:"primary",onClick:S},{default:a(()=>[su]),_:1})]),_:1})]),_:1})]),_:1}),e(t(d),{name:"1",title:"\u81EA\u52A8\u767B\u5F55\u8BBE\u7F6E"},{header:a(()=>[nu,l("a",{onClick:u[6]||(u[6]=k(()=>{},["stop"])),href:"https://www.tjsky.net/?p=220#i-6",target:"_blank"},[e(t(v),{style:{"vertical-align":"middle"},size:"20",color:"#d03050"},{default:a(()=>[e(t(h))]),_:1})])]),default:a(()=>[e(t(C),{"label-width":"100px","label-align":"left","label-placement":"left"},{default:a(()=>[e(t(r),{label:"\u662F\u5426\u5F00\u542F"},{default:a(()=>[e(t(w),{value:B.value,"onUpdate:value":u[7]||(u[7]=s=>B.value=s)},null,8,["value"])]),_:1}),B.value?(f(),D(z,{key:0},[e(t(r),{label:"\u7528\u6237\u540D"},{default:a(()=>[e(t(c),{value:p.value.username,"onUpdate:value":u[8]||(u[8]=s=>p.value.username=s),placeholder:"\u7528\u6237\u540D"},null,8,["value"])]),_:1}),e(t(r),{label:"\u5BC6\u7801"},{default:a(()=>[e(t(c),{value:p.value.password,"onUpdate:value":u[9]||(u[9]=s=>p.value.password=s),type:"password","show-password-on":"mousedown"},null,8,["value"])]),_:1})],64)):A("",!0),e(t(r),null,{default:a(()=>[e(t(g),{type:"primary",onClick:I},{default:a(()=>[iu]),_:1})]),_:1})]),_:1})]),_:1}),e(t(d),{name:"3",title:"\u4EE3\u7406\u8BBE\u7F6E"},{default:a(()=>[e(t(c),{type:"textarea",value:m.value,"onUpdate:value":u[10]||(u[10]=s=>m.value=s),rows:"4",placeholder:"\u652F\u6301\u591A\u4E2A\u968F\u673A\uFF0C\u4E00\u884C\u4E00\u4E2A\uFF0C\u4E3A\u7A7A\u5219\u4E0D\u4EE3\u7406"},null,8,["value"]),ru,e(t(g),{type:"primary",onClick:T},{default:a(()=>[du]),_:1}),e(E,{onClick:j},{default:a(()=>[pu]),_:1})]),_:1}),e(t(d),{title:"\u5173\u4E8E",name:"2"},{default:a(()=>[e(t(y),null,{default:a(()=>[Fu,Eu,_u,cu,Bu]),_:1}),mu]),_:1}),e(t(d),{title:"PC\u7AEFIDM\u652F\u6301",name:"4"},{default:a(()=>[e(t(y),null,{default:a(()=>[gu,fu,hu,vu,ku]),_:1}),Du]),_:1}),e(t(d),{title:"\u529F\u80FD\u5217\u8868",name:"3"},{default:a(()=>[e(t(R),{lines:x.value},null,8,["lines"])]),_:1})]),_:1})])}}});export{yu as default}; diff --git a/assets/setting.f947579c.css b/assets/setting.f947579c.css new file mode 100644 index 000000000..c63fa1f57 --- /dev/null +++ b/assets/setting.f947579c.css @@ -0,0 +1 @@ +.list-page{padding:40px}@media (max-width: 968px){.list-page{padding:10px}} diff --git a/assets/shareInfo.2b7da1ed.js b/assets/shareInfo.2b7da1ed.js new file mode 100644 index 000000000..0ca37de7b --- /dev/null +++ b/assets/shareInfo.2b7da1ed.js @@ -0,0 +1 @@ +var A=Object.getOwnPropertySymbols;var j=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable;var q=(r,l)=>{var c={};for(var n in r)j.call(r,n)&&l.indexOf(n)<0&&(c[n]=r[n]);if(r!=null&&A)for(var n of A(r))l.indexOf(n)<0&&$.call(r,n)&&(c[n]=r[n]);return c};import{d as L,m as U,l as Q,a4 as G,r as d,n as W,o as Y,a as J,b as E,c as K,w as u,f as t,a7 as X,E as f,s as I,e as o,ae as Z,ac as ee,y as D,A as S,B as ae,Q as O,D as R,am as se,ap as te,R as ue,aQ as oe,ao as le,I as ne,aR as ie,aS as re,M as de,ag as ce,U as m,a8 as _e,H as pe,ad as ve}from"./vendor.64da71ad.js";import{i as T,b as fe}from"./index.08e3cc88.js";const me={class:"share-info-page"},he={key:0,class:"header"},ke={class:"title n-ellipsis"},ye=D("\u5168\u90E8\u6587\u4EF6"),ge={class:"action"},Fe={key:1,class:"share-password"},we=f("a",{href:"https://mypikpak.com/",target:"_blank",class:"logo-box"},[f("img",{src:"https://www.mypikpak.com/logo.png",class:"logo-box__icon",alt:""}),f("div",{class:"logo-box__text"},"PikPak")],-1),Be=D("\u63D0\u53D6\u6587\u4EF6"),Ee={key:2,class:"share-file-box",style:{height:"100vh"}},De=D("\u53BB\u9996\u9875"),Ce=L({setup(r){const l=U(),c=Q(),n=G(()=>l.params.id),a=d(),h=d(!0),_=d(""),p=d([]),N=d([]),C=d(""),H=d([{type:"selection"},{title:"\u540D\u79F0",key:"name",sorter:"default",render:e=>m("div",{class:"file-info",onClick:()=>{e.kind==="drive#folder"&&(l.query.id||(C.value=e.id),c.push({name:"shareInfo",params:l.params,query:{id:e.id}}))}},[m("img",{src:e.thumbnail_link||e.icon_link}),m(_e,{class:"title"},{default:()=>String(e.name)}),m("span",{class:"action"},"1")])},{title:"\u5927\u5C0F",key:"size",sorter:(e,s)=>e.size-s.size,align:"right",render:e=>Number(e.size)>0?fe(Number(e.size)):"",className:"size",width:100},{title:"\u4FEE\u6539\u65F6\u95F4",key:"modified_time",sorter:"default",align:"right",render:e=>m(pe,{time:new Date(String(e.modified_time)||""),format:"MM-dd HH:MM"}),className:"modified_time",width:160},{title:"",key:"action",width:60,align:"right",render:e=>m(ve,{justify:"end"},{default:()=>[]})}]),k=()=>{var e,s,y,g,F;if(((e=a.value)==null?void 0:e.share_status)!=="OK"&&l.query.id)return c.push({name:"shareInfo",params:l.params,query:{id:""}});h.value=!0,T.get("https://api-drive.mypikpak.com/drive/v1/share"+(l.query.id&&((s=a.value)==null?void 0:s.pass_code_token)?"/detail":""),{params:{share_id:n.value,parent_id:l.query.id,pass_code_token:((y=a.value)==null?void 0:y.pass_code_token)||void 0,pass_code:((g=a.value)==null?void 0:g.pass_code_token)?void 0:_.value,limit:"30",page_token:(F=a.value)==null?void 0:F.next_page_token}}).then(v=>{var B;const w=v.data,{files:x}=w,b=q(w,["files"]),i=(B=a.value)==null?void 0:B.next_page_token;a.value=Object.assign(a.value||{},b),v.data.share_status==="OK"?(i||(N.value=[]),N.value=N.value.concat(x)):window.$message.error(v.data.share_status)}).finally(()=>{h.value=!1})},M=e=>{var s;e.target.offsetHeight+e.target.scrollTop>=e.target.scrollHeight-30&&((s=a.value)==null?void 0:s.next_page_token)&&!h.value&&k()},V=()=>{var s;const e=[];l.query.id&&e.push(C.value),T.post("https://api-drive.mypikpak.com/drive/v1/share/restore",{share_id:n.value,pass_code_token:(s=a.value)==null?void 0:s.pass_code_token,ancestor_ids:e,file_ids:p.value||void 0,folder_type:"DOWNLOAD"}).then(y=>{window.$message.success("\u8F6C\u5B58\u6210\u529F\uFF0C\u53EF\u80FD\u9700\u8981\u7B49\u5F85\u4E00\u6BB5\u65F6\u95F4"),p.value=[]})};W(l,(e,s)=>{_.value=String(l.params.password)||"",p.value=[],a.value&&(a.value.next_page_token="",a.value.files=[]),k()});const P=()=>{window.location.href="./"};return Y(()=>{_.value=String(l.params.password)||"",C.value="",k(),window.onbeforeunload=function(e){return!window.$downId||window.$downId.length===0?null:(e=e||window.event,e&&(e.returnValue="\u8FD8\u6709\u5F85\u4E0B\u8F7D\u6587\u4EF6"),"\u8FD8\u6709\u5F85\u4E0B\u8F7D\u6587\u4EF6?")}}),(e,s)=>{const y=J("router-link");return E(),K(t(X),{show:h.value,description:"\u83B7\u53D6\u4E2D"},{default:u(()=>{var g,F,v,x,b;return[f("div",me,[((g=a.value)==null?void 0:g.share_status)==="OK"?(E(),I("div",he,[f("div",ke,[o(t(ee),{separator:">"},{default:u(()=>[o(t(Z),null,{default:u(()=>[o(y,{to:{query:{id:""}}},{default:u(()=>[ye]),_:1})]),_:1})]),_:1}),o(t(ae),{depth:"3",style:{"font-size":"12px"}},{default:u(()=>{var i,w,B,z;return[D(" \u5931\u6548\u65F6\u95F4\uFF1A "+S(((i=a.value)==null?void 0:i.expiration_left)==="-1"?"\u6C38\u4E45\u6709\u6548":((w=a.value)==null?void 0:w.expiration_left)+"\u5929")+" \u5931\u6548\u6B21\u6570\uFF1A"+S(((B=a.value)==null?void 0:B.restore_count_left)==="-1"?"\u65E0\u9650\u6B21":((z=a.value)==null?void 0:z.restore_count_left)+"\u6B21"),1)]}),_:1})]),f("div",ge,[o(t(O),{type:"primary",onClick:V},{default:u(()=>[D(S(p.value.length?"\u8F6C\u5B58\u5DF2\u9009":"\u8F6C\u5B58\u5168\u90E8"),1)]),_:1})])])):R("",!0),((F=a.value)==null?void 0:F.share_status)==="PASS_CODE_EMPTY"||((v=a.value)==null?void 0:v.share_status)==="PASS_CODE_ERROR"?(E(),I("div",Fe,[we,o(t(le),{class:"password-form"},{default:u(()=>[o(t(se),{label:"\u8BF7\u8F93\u5165\u63D0\u53D6\u7801"},{default:u(()=>[o(t(te),null,{default:u(()=>[o(t(ue),{value:_.value,"onUpdate:value":s[0]||(s[0]=i=>_.value=i),type:"password","show-password-on":"mousedown",onKeyup:oe(k,["enter"]),placeholder:"\u8BF7\u8F93\u5165\u63D0\u53D6\u7801"},null,8,["value","onKeyup"]),o(t(O),{type:"primary",loading:h.value&&!!_.value,onClick:k},{default:u(()=>[Be]),_:1},8,["loading"])]),_:1})]),_:1})]),_:1})])):((x=a.value)==null?void 0:x.share_status)==="DELETED"?(E(),I("div",Ee,[o(t(re),{description:"\u62B1\u6B49\uFF0C\u8BE5\u5206\u4EAB\u5DF2\u88AB\u4F5C\u8005\u5220\u9664"},{icon:u(()=>[o(t(ne),null,{default:u(()=>[o(t(ie))]),_:1})]),extra:u(()=>[o(t(O),{size:"small",onClick:P},{default:u(()=>[De]),_:1})]),_:1})])):((b=a.value)==null?void 0:b.share_status)==="OK"?(E(),K(t(de),{key:3,style:{"max-height":"calc(100vh - 110px)"},onScroll:M},{default:u(()=>[o(t(ce),{"checked-row-keys":p.value,"onUpdate:checked-row-keys":s[1]||(s[1]=i=>p.value=i),"row-key":i=>i.id,data:N.value,size:"small",columns:H.value,bordered:!1},null,8,["checked-row-keys","row-key","data","columns"])]),_:1})):R("",!0)])]}),_:1},8,["show"])}}});export{Ce as default}; diff --git a/assets/shareInfo.678356c6.css b/assets/shareInfo.678356c6.css new file mode 100644 index 000000000..fa47a1a9c --- /dev/null +++ b/assets/shareInfo.678356c6.css @@ -0,0 +1 @@ +.share-info-page{background-color:#eef2f6;min-height:100vh;padding:20px;box-sizing:border-box}.share-info-page .share-file-box{display:flex;align-items:center;justify-content:center;width:100%;height:100%}.share-info-page .n-alert-body__title{word-break:break-all}.share-password{width:460px;margin:0 auto;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%)}.share-password .logo-box{display:flex;align-items:center;justify-content:center;margin:0 0 8px 30px}.share-password .logo-box__icon{width:60PX;height:60PX;margin-right:10PX}.share-password .logo-box__text{font-size:30PX;letter-spacing:-1.25PX;color:#000}.share-password .password-form{background-color:#fff;margin-top:40px;border-radius:10px;padding:20px}.header{height:40px;display:flex;align-items:center;margin-bottom:24px;justify-content:space-between;white-space:nowrap;flex-shrink:0;font-size:16px}.header .title{flex:1;width:0;text-overflow:ellipsis;margin-right:20px}.header .action{font-size:24px}.n-data-table-td{cursor:pointer}.n-data-table-td.modified_time,.n-data-table-th.modified_time{color:#25262b5c}.n-data-table-td.size,.n-data-table-th.szie{color:#25262b5c}.file-info{display:flex;align-items:center}.file-info img{width:28px;height:28px;margin-right:20px}.file-info .title{flex:1;width:0}.file-info .action{display:none}.loading{margin-top:20px;text-align:center;color:#25262b5c}.loading .n-spin-body{vertical-align:middle;margin-right:10px}.list-page-files{padding-bottom:80px}.list-page-files .n-data-table-td .n-space .n-text{font-size:12px}.outer-wrapper{opacity:0;position:absolute;left:50%;bottom:52px;transform:translate(-50%);z-index:5;transition:opacity .3s ease}.outer-wrapper.static{animation:move-down ease .3s}.outer-wrapper.show{opacity:1}.outer-wrapper.show.static{animation:move-up ease .3s}.toolbar-wrapper{display:-ms-flexbox;display:flex;align-items:center;padding:8px 16px;border-radius:10px;border:1px solid #84858d33;background:#000;overflow:visible;user-select:none;box-shadow:0 0 1px 1px #1c1c200d,0 8px 24px #1c1c201f}.toolbar-item{border-radius:5px;padding:6px;font-size:18px;cursor:pointer;transition:background .3s ease;color:#fff;margin-left:8px;display:flex;justify-content:center;align-items:center}.toolbar-item:first-child{margin-left:0}.tool-icon{font-size:18px}@keyframes move-down{0%{bottom:52px}to{bottom:-52px}}@keyframes move-up{0%{bottom:-52px}to{bottom:52px}} diff --git a/assets/sms.81a6d8ca.css b/assets/sms.81a6d8ca.css new file mode 100644 index 000000000..05336952c --- /dev/null +++ b/assets/sms.81a6d8ca.css @@ -0,0 +1 @@ +.login-page{background-color:#306eff;box-sizing:border-box;min-height:100vh;width:100%;padding-top:0;display:flex;align-items:flex-start;flex-direction:row;justify-content:center;position:relative;min-width:375px}.login-page .down{display:flex;align-items:center;flex-direction:column;margin-right:49px;margin-left:28px}.login-page .down img{max-width:56.5625vw;max-height:calc(100vh - 200px)}.login-page .logo-box{display:flex;align-items:center;margin:140px auto 0;justify-content:center}.login-page .logo-box__icon{width:50PX;height:50PX;margin-right:16PX}.login-page .logo-box__text{font-family:PingFangSC-Semibold;font-size:40PX;letter-spacing:-1.25PX;color:#fff}.login-page .login-box{margin-top:60px;background:#fff;border-radius:20px;width:348px;position:relative}.login-page .login-form{position:relative;overflow:hidden;padding:60px 22px 40px}.login-page .login-form button.block{width:100%}.login-page .n-form-item:nth-last-child(2) .n-form-item-blank{justify-content:space-between}.login-page .n-form-item a{color:#306eff}.login-page .google-tips{position:absolute;bottom:15px;left:50%;margin-left:-16px}.login-box .login-other{margin-top:-50px;text-align:center;padding-bottom:10px}@media (max-width: 968px){.login-page{justify-content:flex-end;flex-direction:column-reverse;align-items:center}.login-page .logo-box{margin-top:40px}} diff --git a/assets/sms.9177f433.js b/assets/sms.9177f433.js new file mode 100644 index 000000000..0601fb9a3 --- /dev/null +++ b/assets/sms.9177f433.js @@ -0,0 +1 @@ +import{_ as N}from"./phone-pc2.dbf6d71e.js";import{d as O,r as s,l as S,u as K,a6 as Y,a as T,b,s as U,E as A,e as a,f as t,ao as W,w as u,ad as z,am as h,R as E,Q as D,y as p,A as H,ap as L,c as X,aT as Z,D as G,F as w,I as Q,aW as V,aV as J,k as q}from"./vendor.64da71ad.js";import{i as m}from"./index.08e3cc88.js";const $={class:"login-page"},ee=A("div",{class:"down"},[A("img",{src:N})],-1),ae={class:"login"},te=A("div",{class:"logo-box"},[A("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAgKADAAQAAAABAAAAgAAAAABIjgR3AAALxUlEQVR4Ae1da6xU1RVeFy6PKyqIggIicHmJQIvYCq2FRlPTlqLVUGo10oQ2/dfUhv6oaX00bWqapjHxT/vD2jSltSm1rWlTU0pqCSrxEaryEOWhIK9bVAqCAl7h9vtmzr6cO3Nm7jlnZvasPXetZOWc2Wftvdf+1nf2ee29R8TEEDAEDAFDwBAwBAwBQ2DAIdA2EFrc09NzCdo5HToauq6tre2DpHbDbijSb4Qege6E3dtJdq2U1hIEQODYjsug06BTo21ntM/AXwB18lcEdpn7Ed+inD/h982xtOPY3wndDX0duiva57YL5fRgG7QEQwAEZxCQnghlYBlUbuMBH47faWQHAjc7yRB1bEP6jKRjCWknkUZiUEkIEoRk4XYf6jiLrXpp1+QhAjAE/kyC8ix26oLMgPN4rfK3KgXw2HeqHI8f6sCPOZHG07nfjbaQCI4cjijc7gU5ummkQbz3AACGZ+oUqOuqXaC5nQzlmd5IWYAA/CepAvg2H+nPJR2rYxp7hj3QOCncpeUN+HaqjnX1W1RDCAAgR6BmF1h3Brvt5f161TiDXQB4VrXi4ft2HKevzZL9qDjeczhy7Ibv79Xbqfa8BQKoUcjrguqCzS3TLs1bboPz/SFF+Wtg870Udo0y4QlC/XRpBcD8v0jrJQT2XS9CYh8ttU/zO1UPgIonoLDPQRdDGWAqH6lCk3kAijd6FQVt5Q3iSxUN9B7goyvJQd0A/QfaegDbqlKVAADjfOS+F3oXdHDVkvQf3AZA5qVxE+0mARKfFNLkV2JzBn48BP0R2n2ikk8Vb7gAAp+d10JXQUMPPtvPrj2tZLFNW6ZvO8aMsVsbxTKx/ooEgPVvodcm5gozMUtQs9hqR4MxZCwTJZEAYMwNsF6SmCPMxE3oBnltTCWR7aZUxmEYLYliWuZtIgFgdXeZZdgJf8zhfp48OarxliUxpmU3gWDKRLjEx4uyY95crX9FnTir92UpNsKBb/NaRfjdYmopDkk9wJ0wbKXgbyxtdJqIRnk2prENxIYxZWz7SBIBVvSxCP9HLTd0teTViFxZbPuc6ej2FsLrpzR6ntOn95GP3V6u7/rAg+MIeDk8L2f9GrMtAh7POsdKe4AyhjjDQLf35Q0+2xvlvS/Qtldyu0+Me3sAsH0YcvDV4chKOQNKPwxfGfxH6uEzsPk6yvkhdGw9ymtyGcdQ/wRgc5p+xAmwHL8fZWJA8hZ8dSN2+JxPfQ26BQ3kZ9e6CUjA3nIudCZ0OnQq1H0XGYP9kOQO4FN4zI0TgIMh+MFHm/BsLg0yr8scs3dcg7MgB1+bO1K4rSOHxl6DH4puInYFAqABl2F/L7T0noA2PoSfOSsFueKHDB+O1VpHRA5HBm7jPUezPpuzd5wEEnS1Rw28A9tGB78LdbggF85g/OaW37KDDjLaUFGiXupFGFD7CMjBr62VyMGTslHCWDPmD7oegM5xfFutcggFuGtxaZDrPpqlVmc15wc5RsC/ODnivce4Ovi+FeS8ug0VXY3Cns9Q4EHYMsiFszfaL/xGgRbkDEDmNY3IEb+UxMkxPkO517bDeEVCBhdkdza7Lcel8eWKSRMRiE60zXCB2kdADr60KiWH60lKybGCPcAaZOAYd3bfvE7zhuwDqEnrITAUTeKNJ+8veBnpIAGCn92ChpjkRKDRd/453bJsvhAwAvhCWmk9RgClgfHllhHAF9JK6zECKA2ML7eMAL6QVlqPEUBpYHy5ZQTwhbTSeowASgPjyy0jgC+kldZjBFAaGF9uGQF8Ia20HiOA0sD4cssI4AtppfUYAZQGxpdbRgBfSCutxwigNDC+3DIC+EJaaT1GAKWB8eWWEcAX0krr4bBw1bIDA9QPYQnEofC0E2NZLx2l2t2Cc7swvvrAO1jZGj5PwRjccRfp9VktAdZhqcaf/UXk8NG+4M3HiPd7vyIyWeGUy/VbRH765yJh415/dIrIPbdhmk895vPEC67Dvrph4d1nRL6/Gn/rUTaT7lxrhw3Bmu63iiy/7lxaM/fOYKrl/Y+K/P2Fyl6wN/j2zZiQV7YCcOU8Po6ouwf4xRPVg09QTneL/OQxkZf3+ICo/zp++c/qwWcJ3R8We7QXOD1WkagiwLY3RX7zZDp0zvKs+x2mMAHYZgrvUR4BAdIIp+D8AD3FKUXzrlQRYM3TIuxO08peLB2x8dW01o2xe+wZnN24bKWVg7ihXb81rXXj7VQR4OU3sjd4c4482WupnGPznsrHKh3ZkiNPpbJqTVdFgCM5lonIk6dW0OL5/5djkZpm+xz3XxUBejJ0/64RzZ7aegbX9ayS5TKXteys9qoIkNV5s68dASNA7RgGXYIRIOjw1e68EaB2DIMuwQgQdPhqd94IUDuGQZdgBAg6fLU7bwSoHcOgSzACBB2+2p1XRYC2wsK1tTfKZwl5XM6Tp1FtUkWAkVwdN6OMypEnYxVVzUdxueeMclGOPBmrSG2uigBXXp7a717DPHl6M9dhZ+aE7IXkyZO9lnQ5VBHgloXpnHZWo/E3DYtmu1/N2d6a0ecLsZLv9R9pjq9JtaoiwHWzRJZ+PMnN5LR7vixy/vDkY75Sr5kmsuyT6Wu7+0sizb5sxb1VRQA69t1lIldNjLuYvP/VG/ScSatuEeHI3/7ktkUin7+mPyu/x9WNCmbz+b38V+tEHsZYOw6mjAvnBdx/u8gnroynNn//LMYFrH5S5OcY1Fo6TnHMyOKw8MVNvlwloaSSAM7Rd98XeW5HNDEEQ8E7McliPrrcdnX9lvNY5MRJkWfhM8f+DRlcnBjyMfqMfY2imgAaAWs1nxSfS60Gtc72GAF0xsWbV0YAb1DrrMgIoDMu3rwyAniDWmdFRgCdcfHmlRHAG9Q6KzIC6IyLN6+MAN6g1lmREUBnXLx5ZQTwBrXOiowAOuPizSsjgDeodVbUrtOt9F4dPibyyj6RSzA8bNJYkQs60ufNY8lP1G++JfI2FobgwJWx+NYfsgRLAH5v53JyL71+Dv5B6M/mTiqOE1x0lcj08SK1DjXn4JQdB0SefkXkKSgXsuICVU7mdYo8sAKLQY52KWFtgxwPwDPwzgdFjuNsrCbnDSuepbOvKPYODNJ4KIefdwwtrj7K/Kew7BxX7jr6XnGFT5KLC1Ax2K/u739VLw70XL1K5Iox1bzReSxIAtz1sMiGOqy0xR6DS8zUY5mZxXNEHvqGziBX8woQhCVHcO2tR/DZanbl9Qg+y6JP78C30CQ4AuzHIsxahZeO0CQ4AgzHtVurDAvwljo4AszAnT1nBGmTiy8UmZFjmliz2xEcAQjYt25qNmzl9X/zC+VpIaQESYAvLhD52o0igxV4Tx/oS9Z5jVrIEeRjoANvJ1bq/vW/RJ7ZLnIMz/A+he8SOJdx5Wd0/hFEWiyCJoBrJKdlcaHpDdtEnn9NhMTIsoK3K6faln9ZMxPT1xfMEPkU3jLOnSwySNNKD9Wcr3KsJQhQ2j4Gn2/wtu4V2Y3/7+HjGZX/PVQ6b680L58y+LbQ6TTcdM7Bm8TpuMHTPCWttB1pf7ckAao1/sQpkZN47XvydPEVME/iDrwyHj6kuB2B/YEkA44AAym4adqq4D46jZtm0ygESICSGfiNqsrKVYjAhyRAl0LHzCU/CHSRAHhoMhmgCBwkAar8ReMAhWXgNPtFEuDxgdNea2kJAo/zMRCvPgqXgYtLDtrP1kaAIyvGD2pra8NrEXmgtdtqrUtA4MeMfeFtNnoBvv/CJxWZkmBoSa2HAL6cyCwQ4DTvATB0ug0vRmU5FIucmbQ4Aozx8ijmUiAAG4yETdishMZGvfOISQshwNiujGJdaFbhEhBvIC4HS/D791AMcjJpIQTeRVtuR/CfiLeptwdwiZEB18Be79JsGzwCjOXC0uCzVWUEYCIMt0Ovx+5S6L+h9r0AIAQmjBljt5SxZEyT/C+7BCQZ4bKAIRLyWeg06Dgo3xmkygs7Ez8I9KAaPtsfgu6CrkXQMQTGxBAwBAwBQ8AQMAQMAUPAEChB4P/jL7P6/eWMLgAAAABJRU5ErkJggg==",class:"logo-box__icon",alt:""}),A("div",{class:"logo-box__text"},"PikPak")],-1),ue={class:"login-box"},oe=p("\u63A5\u53D7\u9080\u8BF7\u83B7\u5F9710\u5929vip"),ne=p("\u767B\u5F55"),le={class:"login-other"},ie=p(" \u90AE\u7BB1\u767B\u9646 "),se=p(" APP\u5185\u8C37\u6B4C\u767B\u5F55\u7684\u8D26\u53F7\u8BF7\u5148\u901A\u8FC7\u5FD8\u8BB0\u5BC6\u7801\u8BBE\u7F6E\u5BC6\u7801\u540E\u767B\u5F55 "),pe=O({setup(Ae){const e=s({phone_number:"",verification_code:"",captcha_token:"",verification_id:""}),x=s(),B=s(!1),I={phone_number:[{required:!0,message:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7",trigger:"blur"}],verification_code:[{required:!0,message:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801",trigger:"blur"}]},g=s(!1),f=s(!1),F=S(),_=K(),P=(()=>{let l=32,o="abcdefhijkmnprstwxyz2345678",d=o.length,n="";for(let i=0;im.post("https://user.mypikpak.com/v1/shield/captcha/init?client_id=YNxT9w7GMdWvEOKa",{action:l||"POST:/v1/auth/verification",captcha_token:e.value.captcha_token||"",client_id:"YNxT9w7GMdWvEOKa",device_id:P,meta:{phone_number:e.value.phone_number},redirect_uri:"xlaccsdk01://xunlei.com/callback?state=harbor"}).then(o=>{o.data&&o.data.captcha_token&&(e.value.captcha_token=o.data.captcha_token)}),v=s(!1),R=()=>{if(e.value.phone_number){if(e.value.phone_number.indexOf("+")===-1)return _.error("\u8BF7\u8F93\u5165\u533A\u53F7\u52A0\u624B\u673A\u53F7\u5982+8618513579246"),!1;e.value.captcha_token="",g.value=!0,C("POST:/v1/auth/verification").then(()=>{m.post("https://user.mypikpak.com/v1/auth/verification?client_id=YNxT9w7GMdWvEOKa",{captcha_token:e.value.captcha_token,client_id:"YNxT9w7GMdWvEOKa",phone_number:e.value.phone_number,locale:"zh-cn",target:"ANY"}).then(l=>{e.value.verification_id=l.data.verification_id,v.value=l.data.is_user||!1,M()}).finally(()=>{g.value=!1})}).catch(()=>{g.value=!1})}else return!1},r=s(60),c=s(),M=()=>{r.value=59,c.value&&clearInterval(c.value),c.value=setInterval(()=>{if(r.value--,r.value<=0){clearInterval(c.value),r.value=60;return}},1e3)},y=l=>{l.preventDefault(),x.value.validate(o=>{o||(f.value=!0,m.post("https://user.mypikpak.com/v1/auth/verification/verify?client_id=YNxT9w7GMdWvEOKa",{client_id:"YNxT9w7GMdWvEOKa",verification_id:e.value.verification_id,verification_code:e.value.verification_code}).then(d=>{C(v.value?"POST:/v1/auth/signin":"POST:/v1/auth/signup").then(()=>{let n="https://user.mypikpak.com/v1/auth/signup",i={captcha_token:e.value.captcha_token,client_id:"YNxT9w7GMdWvEOKa",client_secret:"dbw2OtmVEeuUvIptb1Coyg",verification_token:d.data.verification_token};v.value?(n="https://user.mypikpak.com/v1/auth/signin",i.username=e.value.phone_number):(i.phone_number=e.value.phone_number,i.password="",i.name="U_"+e.value.phone_number.slice(-4)),m.post(n,i).then(k=>{B.value&&!v.value&&j(k.data),window.localStorage.setItem("pikpakLogin",JSON.stringify(k.data)),window.localStorage.removeItem("pikpakLoginData"),_.success("\u767B\u5F55\u6210\u529F"),F.push("/")}).catch(k=>{f.value=!1})})}).catch(d=>{f.value=!1}))})},j=l=>{q.get("https://invite.z7.workers.dev/"+l.sub,{headers:{authorization:l.token_type+" "+l.access_token}}).then(o=>{})};return Y(()=>{c.value&&clearInterval(c.value)}),(l,o)=>{const d=T("router-link");return b(),U("div",$,[ee,A("div",ae,[te,A("div",ue,[a(t(W),{"label-align":"left",style:{"padding-top":"30px"},model:e.value,rules:I,ref:(n,i)=>{i.formRef=n,x.value=n},"label-placement":"left","label-width":"0",class:"login-form"},{default:u(()=>[a(t(h),{path:"email"},{default:u(()=>[a(t(E),{value:e.value.phone_number,"onUpdate:value":o[0]||(o[0]=n=>e.value.phone_number=n),placeholder:"\u8BF7\u8F93\u5165\u533A\u53F7\u52A0\u624B\u673A\u53F7\u5982+8618513579246"},null,8,["value"])]),_:1}),a(t(h),{path:"verification_code"},{default:u(()=>[a(t(L),null,{default:u(()=>[a(t(E),{value:e.value.verification_code,"onUpdate:value":o[1]||(o[1]=n=>e.value.verification_code=n),placeholder:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801"},null,8,["value"]),a(t(D),{onClick:R,disabled:r.value<60,loading:g.value},{default:u(()=>[p(H(r.value>=60?"\u53D1\u9001\u9A8C\u8BC1\u7801":"\u91CD\u65B0\u53D1\u9001 "+r.value+"s"),1)]),_:1},8,["disabled","loading"])]),_:1})]),_:1}),v.value?G("",!0):(b(),X(t(h),{key:0,label:""},{default:u(()=>[a(t(Z),{checked:B.value,"onUpdate:checked":o[2]||(o[2]=n=>B.value=n)},{default:u(()=>[oe]),_:1},8,["checked"])]),_:1})),a(t(h),null,{default:u(()=>[a(t(D),{type:"primary",class:"block",loading:f.value,onClick:y},{default:u(()=>[ne]),_:1},8,["loading"])]),_:1})]),_:1},8,["model"]),A("div",le,[a(t(z),{inline:""},{default:u(()=>[a(t(w),null,{trigger:u(()=>[a(d,{to:"login"},{default:u(()=>[a(t(Q),{color:"#306eff",size:32},{default:u(()=>[a(t(V))]),_:1})]),_:1})]),default:u(()=>[ie]),_:1}),a(t(w),null,{trigger:u(()=>[a(t(Q),{color:"#306eff",size:32},{default:u(()=>[a(t(J))]),_:1})]),default:u(()=>[se]),_:1})]),_:1})])])])])}}});export{pe as default}; diff --git a/assets/test.145dcbb1.js b/assets/test.145dcbb1.js new file mode 100644 index 000000000..bf9c88594 --- /dev/null +++ b/assets/test.145dcbb1.js @@ -0,0 +1,45 @@ +import{au as commonjsGlobal,aK as commonjsRequire,av as getDefaultExportFromCjs,d as defineComponent,r as ref,m as useRoute,b as openBlock,s as createElementBlock,e as createVNode,f as unref,aL as NUpload,w as withCtx,aM as NUploadDragger,c as createBlock,az as withModifiers,aN as NUploadFileList,T as Fragment,E as createBaseVNode,aO as CloudUpload,I as NIcon,B as NText,aP as NP,y as createTextVNode}from"./vendor.64da71ad.js";import{i as instance}from"./index.08e3cc88.js";function WorkerWrapper(){return new Worker("/pikpak/assets/gcid.worker.c2cbc140.js",{type:"module"})}const proxyMarker=Symbol("Comlink.proxy"),createEndpoint=Symbol("Comlink.endpoint"),releaseProxy=Symbol("Comlink.releaseProxy"),throwMarker=Symbol("Comlink.thrown"),isObject=e=>typeof e=="object"&&e!==null||typeof e=="function",proxyTransferHandler={canHandle:e=>isObject(e)&&e[proxyMarker],serialize(e){const{port1:v,port2:g}=new MessageChannel;return expose(e,v),[g,[g]]},deserialize(e){return e.start(),wrap(e)}},throwTransferHandler={canHandle:e=>isObject(e)&&throwMarker in e,serialize({value:e}){let v;return e instanceof Error?v={isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:v={isError:!1,value:e},[v,[]]},deserialize(e){throw e.isError?Object.assign(new Error(e.value.message),e.value):e.value}},transferHandlers=new Map([["proxy",proxyTransferHandler],["throw",throwTransferHandler]]);function expose(e,v=self){v.addEventListener("message",function g(t){if(!t||!t.data)return;const{id:o,type:u,path:l}=Object.assign({path:[]},t.data),c=(t.data.argumentList||[]).map(fromWireValue);let n;try{const r=l.slice(0,-1).reduce((a,s)=>a[s],e),i=l.reduce((a,s)=>a[s],e);switch(u){case"GET":n=i;break;case"SET":r[l.slice(-1)[0]]=fromWireValue(t.data.value),n=!0;break;case"APPLY":n=i.apply(r,c);break;case"CONSTRUCT":{const a=new i(...c);n=proxy(a)}break;case"ENDPOINT":{const{port1:a,port2:s}=new MessageChannel;expose(e,s),n=transfer(a,[a])}break;case"RELEASE":n=void 0;break;default:return}}catch(r){n={value:r,[throwMarker]:0}}Promise.resolve(n).catch(r=>({value:r,[throwMarker]:0})).then(r=>{const[i,a]=toWireValue(r);v.postMessage(Object.assign(Object.assign({},i),{id:o}),a),u==="RELEASE"&&(v.removeEventListener("message",g),closeEndPoint(v))})}),v.start&&v.start()}function isMessagePort(e){return e.constructor.name==="MessagePort"}function closeEndPoint(e){isMessagePort(e)&&e.close()}function wrap(e,v){return createProxy(e,[],v)}function throwIfProxyReleased(e){if(e)throw new Error("Proxy has been released and is not useable")}function createProxy(e,v=[],g=function(){}){let t=!1;const o=new Proxy(g,{get(u,l){if(throwIfProxyReleased(t),l===releaseProxy)return()=>requestResponseMessage(e,{type:"RELEASE",path:v.map(c=>c.toString())}).then(()=>{closeEndPoint(e),t=!0});if(l==="then"){if(v.length===0)return{then:()=>o};const c=requestResponseMessage(e,{type:"GET",path:v.map(n=>n.toString())}).then(fromWireValue);return c.then.bind(c)}return createProxy(e,[...v,l])},set(u,l,c){throwIfProxyReleased(t);const[n,r]=toWireValue(c);return requestResponseMessage(e,{type:"SET",path:[...v,l].map(i=>i.toString()),value:n},r).then(fromWireValue)},apply(u,l,c){throwIfProxyReleased(t);const n=v[v.length-1];if(n===createEndpoint)return requestResponseMessage(e,{type:"ENDPOINT"}).then(fromWireValue);if(n==="bind")return createProxy(e,v.slice(0,-1));const[r,i]=processArguments(c);return requestResponseMessage(e,{type:"APPLY",path:v.map(a=>a.toString()),argumentList:r},i).then(fromWireValue)},construct(u,l){throwIfProxyReleased(t);const[c,n]=processArguments(l);return requestResponseMessage(e,{type:"CONSTRUCT",path:v.map(r=>r.toString()),argumentList:c},n).then(fromWireValue)}});return o}function myFlat(e){return Array.prototype.concat.apply([],e)}function processArguments(e){const v=e.map(toWireValue);return[v.map(g=>g[0]),myFlat(v.map(g=>g[1]))]}const transferCache=new WeakMap;function transfer(e,v){return transferCache.set(e,v),e}function proxy(e){return Object.assign(e,{[proxyMarker]:!0})}function toWireValue(e){for(const[v,g]of transferHandlers)if(g.canHandle(e)){const[t,o]=g.serialize(e);return[{type:"HANDLER",name:v,value:t},o]}return[{type:"RAW",value:e},transferCache.get(e)||[]]}function fromWireValue(e){switch(e.type){case"HANDLER":return transferHandlers.get(e.name).deserialize(e.value);case"RAW":return e.value}}function requestResponseMessage(e,v,g){return new Promise(t=>{const o=generateUUID();e.addEventListener("message",function u(l){!l.data||!l.data.id||l.data.id!==o||(e.removeEventListener("message",u),t(l.data))}),e.start&&e.start(),e.postMessage(Object.assign({id:o},v),g)})}function generateUUID(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}var aliyunOssSdk={exports:{}};(function(module,exports){(function(e){module.exports=e()})(function(){return function(){function e(v,g,t){function o(c,n){if(!g[c]){if(!v[c]){var r=typeof commonjsRequire=="function"&&commonjsRequire;if(!n&&r)return r(c,!0);if(u)return u(c,!0);var i=new Error("Cannot find module '"+c+"'");throw i.code="MODULE_NOT_FOUND",i}var a=g[c]={exports:{}};v[c][0].call(a.exports,function(s){var d=v[c][1][s];return o(d||s)},a,a.exports,e,v,g,t)}return g[c].exports}for(var u=typeof commonjsRequire=="function"&&commonjsRequire,l=0;l2&&U[2]!==void 0?U[2]:{},this.resetCancelFlag(),A.disabledMD5=A.disabledMD5===void 0?!0:!!A.disabledMD5,!(A.checkpoint&&A.checkpoint.uploadId)){B.next=8;break}return b&&p(b)&&(A.checkpoint.file=b),B.next=7,this._resumeMultipart(A.checkpoint,A);case 7:return B.abrupt("return",B.sent);case 8:return W=100*1024,A.mime||(p(b)?A.mime=r.getType(n.extname(b.name)):s(b)?A.mime=b.type:m(b)?A.mime="":A.mime=r.getType(n.extname(b))),A.headers=A.headers||{},this._convertMetaToHeaders(A.meta,A.headers),B.next=14,this._getFileSize(b);case 14:if(K=B.sent,!(K0&&i(q).to(V),G=this._divideParts(K,te),U=G.length,L=!1,B=function(z,N){return new Promise(function(){var T=(0,l.default)(u.default.mark(function _(j,H){var J,ae,oe,de,ge;return u.default.wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:if(ue.prev=0,z.isCancel()){ue.next=29;break}return J=G[N-1],ue.next=5,z._createBuffer(W,J.start,J.end);case 5:return ae=ue.sent,oe={content:ae,size:J.end-J.start},ue.prev=7,ue.next=10,z._uploadPart(re,X,N,oe,{timeout:b.timeout,disabledMD5:b.disabledMD5});case 10:de=ue.sent,ue.next=18;break;case 13:if(ue.prev=13,ue.t0=ue.catch(7),ue.t0.status!==404){ue.next=17;break}throw z._makeAbortEvent();case 17:throw ue.t0;case 18:if(!(!z.isCancel()&&!L)){ue.next=26;break}if(O.doneParts.push({number:N,etag:de.res.headers.etag}),!b.progress){ue.next=23;break}return ue.next=23,b.progress(q.length/U,O,de.res);case 23:j({number:N,etag:de.res.headers.etag}),ue.next=27;break;case 26:j();case 27:ue.next=30;break;case 29:j();case 30:ue.next=41;break;case 32:ue.prev=32,ue.t1=ue.catch(0),ge=new Error,ge.name=ue.t1.name,ge.message=ue.t1.message,ge.stack=ue.t1.stack,ge.partNum=N,i(ue.t1).to(ge),H(ge);case 41:case"end":return ue.stop()}},_,null,[[0,32],[7,13]])}));return function(_,j){return T.apply(this,arguments)}}())},Y=Array.from(new Array(U),function(Z,z){return z+1}),Q=V.map(function(Z){return Z.number}),ee=Y.filter(function(Z){return Q.indexOf(Z)<0}),$=5,ie=b.parallel||$,R.next=17,this._parallel(ee,ie,function(Z){return new Promise(function(z,N){B(A,Z).then(function(T){T&&V.push(T),z()}).catch(function(T){N(T)})})});case 17:if(F=R.sent,L=!0,I=F.find(function(Z){return Z.name==="abort"}),!I){R.next=22;break}throw I;case 22:if(!this.isCancel()){R.next=25;break}throw B=null,this._makeCancelEvent();case 25:if(!(F&&F.length>0)){R.next=28;break}throw F[0].message="Failed to upload some parts with error: ".concat(F[0].toString()," part_num: ").concat(F[0].partNum),F[0];case 28:return R.next=30,this.completeMultipartUpload(re,X,V,b);case 30:return R.abrupt("return",R.sent);case 31:case"end":return R.stop()}},D,this)}));function M(D,O){return P.apply(this,arguments)}return M}(),k._getFileSize=function(){var P=(0,l.default)(u.default.mark(function D(O){return u.default.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:if(!m(O)){A.next=4;break}return A.abrupt("return",O.length);case 4:if(!(s(O)||p(O))){A.next=6;break}return A.abrupt("return",O.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return A.stop()}},D)}));function M(D){return P.apply(this,arguments)}return M}();var S=e("stream"),x=S.Readable;function y(P,M){if(!(this instanceof y))return new y(P,M);x.call(this,M),this.file=P,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}c.inherits(y,x),y.prototype.readFileAndPush=function(M){if(this.fileBuffer)for(var D=!0;D&&this.fileBuffer&&this.startthis.fileBuffer.length?this.fileBuffer.length:b,this.start=b,D=this.push(this.fileBuffer.slice(O,b))}},y.prototype._read=function(M){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||this.start===0&&!this.file){this.finish||(this.fileBuffer=null,this.finish=!0),this.push(null);return}var D=16*1024;M=M||D;var O=this;this.reader.onload=function(A){O.fileBuffer=t.from(new Uint8Array(A.target.result)),O.file=null,O.readFileAndPush(M)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(M)};function E(P){return P.arrayBuffer?P.arrayBuffer():new Promise(function(M,D){var O=new FileReader;O.onload=function(b){M(b.target.result)},O.onerror=function(b){D(b)},O.readAsArrayBuffer(P)})}k._createBuffer=function(){var P=(0,l.default)(u.default.mark(function D(O,b,A){var W,K;return u.default.wrap(function(X){for(;;)switch(X.prev=X.next){case 0:if(!(s(O)||p(O))){X.next=8;break}return W=O.slice(b,A),X.next=4,E(W);case 4:return K=X.sent,X.abrupt("return",t.from(K));case 8:if(!m(O)){X.next=12;break}return X.abrupt("return",O.subarray(b,A));case 12:throw new Error("_createBuffer requires File/Blob/Buffer.");case 13:case"end":return X.stop()}},D)}));function M(D,O,b){return P.apply(this,arguments)}return M}(),k._getPartSize=function(M,D){var O=10*1e3,b=1*1024*1024;D||(D=b);var A=Math.ceil(M/O);return D1&&W[1]!==void 0?W[1]:{},P=y["continuation-token"]||y.continuationToken,delete y["continuation-token"],delete y.continuationToken,P&&(E.subres=Object.assign({"continuation-token":P},E.subres)),M=this._objectRequestParams("GET","",E),M.query=Object.assign({"list-type":2},y),M.xmlResponse=!0,M.successStatuses=[200],te.next=11,this.request(M);case 11:return D=te.sent,O=D.data.Contents,b=this,O&&(Array.isArray(O)||(O=[O]),O=O.map(function(X){return{name:X.Key,url:b._objectUrl(X.Key),lastModified:X.LastModified,etag:X.ETag,type:X.Type,size:Number(X.Size),storageClass:X.StorageClass,owner:X.Owner?{id:X.Owner.ID,displayName:X.Owner.DisplayName}:null}})),A=D.data.CommonPrefixes||null,A&&(Array.isArray(A)||(A=[A]),A=A.map(function(X){return X.Prefix})),te.abrupt("return",{res:D.res,objects:O,prefixes:A,isTruncated:D.data.IsTruncated==="true",keyCount:+D.data.KeyCount,continuationToken:D.data.ContinuationToken||null,nextContinuationToken:D.data.NextContinuationToken||null});case 18:case"end":return te.stop()}},x,this)}));function S(x){return k.apply(this,arguments)}return S}(),w.restore=function(){var k=(0,u.default)(o.default.mark(function x(y,E){var P,M;return o.default.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return E=E||{},E.subres=Object.assign({restore:""},E.subres),E.versionId&&(E.subres.versionId=E.versionId),P=this._objectRequestParams("POST",y,E),P.successStatuses=[202],O.next=7,this.request(P);case 7:return M=O.sent,O.abrupt("return",{res:M.res});case 9:case"end":return O.stop()}},x,this)}));function S(x,y){return k.apply(this,arguments)}return S}(),w._objectUrl=function(S){return this._getReqUrl({bucket:this.options.bucket,object:S})},w._objectRequestParams=function(S,x,y){if(!this.options.bucket&&!this.options.cname)throw new Error("Please create a bucket first");y=y||{},x=this._objectName(x);var E={object:x,bucket:this.options.bucket,method:S,subres:y&&y.subres,timeout:y&&y.timeout,ctx:y&&y.ctx};return y.headers&&(E.headers={},c(y.headers).to(E.headers)),E},w._objectName=function(S){return S.replace(/^\/+/,"")},w._convertMetaToHeaders=function(S,x){!S||Object.keys(S).forEach(function(y){x["x-oss-meta-".concat(y)]=S[y]})},w._deleteFileSafe=function(S){var x=this;return new Promise(function(y){l.exists(S,function(E){E?l.unlink(S,function(P){P&&x.debug("unlink %j error: %s",S,P,"error"),y()}):y()})})}},{"../common/callback":23,"../common/image":26,"../common/object/copyObject":29,"../common/object/delete":30,"../common/object/deleteMulti":31,"../common/object/deleteObjectTagging":32,"../common/object/generateObjectUrl":33,"../common/object/get":34,"../common/object/getACL":35,"../common/object/getBucketVersions":36,"../common/object/getObjectMeta":37,"../common/object/getObjectTagging":38,"../common/object/getObjectUrl":39,"../common/object/getSymlink":40,"../common/object/head":41,"../common/object/putACL":42,"../common/object/putObjectTagging":43,"../common/object/putSymlink":44,"../common/object/signatureUrl":45,"../common/utils/isBlob":60,"../common/utils/isBuffer":61,"../common/utils/isFile":62,"@babel/runtime/helpers/asyncToGenerator":71,"@babel/runtime/helpers/interopRequireDefault":72,"@babel/runtime/regenerator":75,"copy-to":101,"core-js/modules/es.array.for-each":238,"core-js/modules/es.array.map":245,"core-js/modules/es.function.name":249,"core-js/modules/es.number.constructor":250,"core-js/modules/es.object.assign":251,"core-js/modules/es.object.keys":253,"core-js/modules/es.object.to-string":254,"core-js/modules/es.promise":255,"core-js/modules/es.regexp.exec":256,"core-js/modules/es.regexp.to-string":257,"core-js/modules/es.string.replace":261,"core-js/modules/web.dom-collections.for-each":291,fs:79,"merge-descriptors":310,mime:312,path:315,"regenerator-runtime/runtime":336}],5:[function(e,v,g){g.version="6.16.0"},{}],6:[function(e,v,g){var t=e("@babel/runtime/helpers/interopRequireDefault"),o=t(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var u=t(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(g,"__esModule",{value:!0}),g.abortBucketWorm=void 0;var l=e("../utils/checkBucketName");function c(r,i){return n.apply(this,arguments)}function n(){return n=(0,u.default)(o.default.mark(function r(i,a){var s,d;return o.default.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return l.checkBucketName(i),s=this._bucketRequestParams("DELETE",i,"worm",a),h.next=4,this.request(s);case 4:return d=h.sent,h.abrupt("return",{res:d.res,status:d.status});case 6:case"end":return h.stop()}},r,this)})),n.apply(this,arguments)}g.abortBucketWorm=c},{"../utils/checkBucketName":48,"@babel/runtime/helpers/asyncToGenerator":71,"@babel/runtime/helpers/interopRequireDefault":72,"@babel/runtime/regenerator":75,"regenerator-runtime/runtime":336}],7:[function(e,v,g){var t=e("@babel/runtime/helpers/interopRequireDefault"),o=t(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var u=t(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(g,"__esModule",{value:!0}),g.completeBucketWorm=void 0;var l=e("../utils/checkBucketName");function c(r,i,a){return n.apply(this,arguments)}function n(){return n=(0,u.default)(o.default.mark(function r(i,a,s){var d,p;return o.default.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return l.checkBucketName(i),d=this._bucketRequestParams("POST",i,{wormId:a},s),f.next=4,this.request(d);case 4:return p=f.sent,f.abrupt("return",{res:p.res,status:p.status});case 6:case"end":return f.stop()}},r,this)})),n.apply(this,arguments)}g.completeBucketWorm=c},{"../utils/checkBucketName":48,"@babel/runtime/helpers/asyncToGenerator":71,"@babel/runtime/helpers/interopRequireDefault":72,"@babel/runtime/regenerator":75,"regenerator-runtime/runtime":336}],8:[function(e,v,g){var t=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.object.assign");var o=t(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var u=t(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(g,"__esModule",{value:!0}),g.deleteBucketInventory=void 0;var l=e("../utils/checkBucketName");function c(r,i){return n.apply(this,arguments)}function n(){return n=(0,u.default)(o.default.mark(function r(i,a){var s,d,p,h,f=arguments;return o.default.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return s=f.length>2&&f[2]!==void 0?f[2]:{},d=Object.assign({inventory:"",inventoryId:a},s.subres),l.checkBucketName(i),p=this._bucketRequestParams("DELETE",i,d,s),p.successStatuses=[204],w.next=7,this.request(p);case 7:return h=w.sent,w.abrupt("return",{status:h.status,res:h.res});case 9:case"end":return w.stop()}},r,this)})),n.apply(this,arguments)}g.deleteBucketInventory=c},{"../utils/checkBucketName":48,"@babel/runtime/helpers/asyncToGenerator":71,"@babel/runtime/helpers/interopRequireDefault":72,"@babel/runtime/regenerator":75,"core-js/modules/es.object.assign":251,"regenerator-runtime/runtime":336}],9:[function(e,v,g){var t=e("@babel/runtime/helpers/interopRequireDefault"),o=t(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var u=t(e("@babel/runtime/helpers/asyncToGenerator")),l=e("../utils/checkBucketName"),c=l.checkBucketName,n=g;n.deleteBucketLifecycle=function(){var r=(0,u.default)(o.default.mark(function a(s,d){var p,h;return o.default.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return c(s),p=this._bucketRequestParams("DELETE",s,"lifecycle",d),p.successStatuses=[204],m.next=5,this.request(p);case 5:return h=m.sent,m.abrupt("return",{res:h.res});case 7:case"end":return m.stop()}},a,this)}));function i(a,s){return r.apply(this,arguments)}return i}()},{"../utils/checkBucketName":48,"@babel/runtime/helpers/asyncToGenerator":71,"@babel/runtime/helpers/interopRequireDefault":72,"@babel/runtime/regenerator":75,"regenerator-runtime/runtime":336}],10:[function(e,v,g){var t=e("@babel/runtime/helpers/interopRequireDefault"),o=t(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var u=t(e("@babel/runtime/helpers/asyncToGenerator")),l=e("../utils/checkBucketName"),c=l.checkBucketName,n=g;n.deleteBucketWebsite=function(){var r=(0,u.default)(o.default.mark(function a(s,d){var p,h;return o.default.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return c(s),p=this._bucketRequestParams("DELETE",s,"website",d),p.successStatuses=[204],m.next=5,this.request(p);case 5:return h=m.sent,m.abrupt("return",{res:h.res});case 7:case"end":return m.stop()}},a,this)}));function i(a,s){return r.apply(this,arguments)}return i}()},{"../utils/checkBucketName":48,"@babel/runtime/helpers/asyncToGenerator":71,"@babel/runtime/helpers/interopRequireDefault":72,"@babel/runtime/regenerator":75,"regenerator-runtime/runtime":336}],11:[function(e,v,g){var t=e("@babel/runtime/helpers/interopRequireDefault"),o=t(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var u=t(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(g,"__esModule",{value:!0}),g.extendBucketWorm=void 0;var l=e("../utils/checkBucketName"),c=e("../utils/obj2xml");function n(i,a,s,d){return r.apply(this,arguments)}function r(){return r=(0,u.default)(o.default.mark(function i(a,s,d,p){var h,f,m;return o.default.wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return l.checkBucketName(a),h=this._bucketRequestParams("POST",a,{wormExtend:"",wormId:s},p),f={ExtendWormConfiguration:{RetentionPeriodInDays:d}},h.mime="xml",h.content=c.obj2xml(f,{headers:!0}),h.successStatuses=[200],k.next=8,this.request(h);case 8:return m=k.sent,k.abrupt("return",{res:m.res,status:m.status});case 10:case"end":return k.stop()}},i,this)})),r.apply(this,arguments)}g.extendBucketWorm=n},{"../utils/checkBucketName":48,"../utils/obj2xml":67,"@babel/runtime/helpers/asyncToGenerator":71,"@babel/runtime/helpers/interopRequireDefault":72,"@babel/runtime/regenerator":75,"regenerator-runtime/runtime":336}],12:[function(e,v,g){var t=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.object.assign");var o=t(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var u=t(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(g,"__esModule",{value:!0}),g.getBucketInventory=void 0;var l=e("../utils/checkBucketName"),c=e("../utils/formatInventoryConfig");function n(i,a){return r.apply(this,arguments)}function r(){return r=(0,u.default)(o.default.mark(function i(a,s){var d,p,h,f,m=arguments;return o.default.wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return d=m.length>2&&m[2]!==void 0?m[2]:{},p=Object.assign({inventory:"",inventoryId:s},d.subres),l.checkBucketName(a),h=this._bucketRequestParams("GET",a,p,d),h.successStatuses=[200],h.xmlResponse=!0,k.next=8,this.request(h);case 8:return f=k.sent,k.abrupt("return",{status:f.status,res:f.res,inventory:c.formatInventoryConfig(f.data)});case 10:case"end":return k.stop()}},i,this)})),r.apply(this,arguments)}g.getBucketInventory=n},{"../utils/checkBucketName":48,"../utils/formatInventoryConfig":56,"@babel/runtime/helpers/asyncToGenerator":71,"@babel/runtime/helpers/interopRequireDefault":72,"@babel/runtime/regenerator":75,"core-js/modules/es.object.assign":251,"regenerator-runtime/runtime":336}],13:[function(e,v,g){var t=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.array.map");var o=t(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var u=t(e("@babel/runtime/helpers/asyncToGenerator")),l=e("../utils/checkBucketName"),c=l.checkBucketName,n=e("../utils/isArray"),r=n.isArray,i=e("../utils/formatObjKey"),a=i.formatObjKey,s=g;s.getBucketLifecycle=function(){var d=(0,u.default)(o.default.mark(function h(f,m){var w,k,S;return o.default.wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return c(f),w=this._bucketRequestParams("GET",f,"lifecycle",m),w.successStatuses=[200],w.xmlResponse=!0,y.next=6,this.request(w);case 6:return k=y.sent,S=k.data.Rule||null,S&&(r(S)||(S=[S]),S=S.map(function(E){return E.ID&&(E.id=E.ID,delete E.ID),E.Tag&&!r(E.Tag)&&(E.Tag=[E.Tag]),a(E,"firstLowerCase")})),y.abrupt("return",{rules:S,res:k.res});case 10:case"end":return y.stop()}},h,this)}));function p(h,f){return d.apply(this,arguments)}return p}()},{"../utils/checkBucketName":48,"../utils/formatObjKey":57,"../utils/isArray":59,"@babel/runtime/helpers/asyncToGenerator":71,"@babel/runtime/helpers/interopRequireDefault":72,"@babel/runtime/regenerator":75,"core-js/modules/es.array.map":245,"regenerator-runtime/runtime":336}],14:[function(e,v,g){var t=e("@babel/runtime/helpers/interopRequireDefault"),o=t(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var u=t(e("@babel/runtime/helpers/asyncToGenerator")),l=e("../utils/checkBucketName"),c=l.checkBucketName,n=g;n.getBucketVersioning=function(){var r=(0,u.default)(o.default.mark(function a(s,d){var p,h,f;return o.default.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return c(s),p=this._bucketRequestParams("GET",s,"versioning",d),p.xmlResponse=!0,p.successStatuses=[200],w.next=6,this.request(p);case 6:return h=w.sent,f=h.data.Status,w.abrupt("return",{status:h.status,versionStatus:f,res:h.res});case 9:case"end":return w.stop()}},a,this)}));function i(a,s){return r.apply(this,arguments)}return i}()},{"../utils/checkBucketName":48,"@babel/runtime/helpers/asyncToGenerator":71,"@babel/runtime/helpers/interopRequireDefault":72,"@babel/runtime/regenerator":75,"regenerator-runtime/runtime":336}],15:[function(e,v,g){var t=e("@babel/runtime/helpers/interopRequireDefault"),o=t(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var u=t(e("@babel/runtime/helpers/asyncToGenerator")),l=e("../utils/checkBucketName"),c=l.checkBucketName,n=e("../utils/isObject"),r=n.isObject,i=g;i.getBucketWebsite=function(){var a=(0,u.default)(o.default.mark(function d(p,h){var f,m,w;return o.default.wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return c(p),f=this._bucketRequestParams("GET",p,"website",h),f.successStatuses=[200],f.xmlResponse=!0,S.next=6,this.request(f);case 6:return m=S.sent,w=[],m.data.RoutingRules&&m.data.RoutingRules.RoutingRule&&(r(m.data.RoutingRules.RoutingRule)?w=[m.data.RoutingRules.RoutingRule]:w=m.data.RoutingRules.RoutingRule),S.abrupt("return",{index:m.data.IndexDocument&&m.data.IndexDocument.Suffix||"",supportSubDir:m.data.IndexDocument&&m.data.IndexDocument.SupportSubDir||"false",type:m.data.IndexDocument&&m.data.IndexDocument.Type,routingRules:w,error:m.data.ErrorDocument&&m.data.ErrorDocument.Key||null,res:m.res});case 10:case"end":return S.stop()}},d,this)}));function s(d,p){return a.apply(this,arguments)}return s}()},{"../utils/checkBucketName":48,"../utils/isObject":65,"@babel/runtime/helpers/asyncToGenerator":71,"@babel/runtime/helpers/interopRequireDefault":72,"@babel/runtime/regenerator":75,"regenerator-runtime/runtime":336}],16:[function(e,v,g){var t=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.object.assign");var o=t(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var u=t(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(g,"__esModule",{value:!0}),g.getBucketWorm=void 0;var l=e("../utils/checkBucketName"),c=e("../utils/dataFix");function n(i,a){return r.apply(this,arguments)}function r(){return r=(0,u.default)(o.default.mark(function i(a,s){var d,p;return o.default.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return l.checkBucketName(a),d=this._bucketRequestParams("GET",a,"worm",s),d.successStatuses=[200],d.xmlResponse=!0,f.next=6,this.request(d);case 6:return p=f.sent,c.dataFix(p.data,{lowerFirst:!0,rename:{RetentionPeriodInDays:"days"}}),f.abrupt("return",Object.assign(Object.assign({},p.data),{res:p.res,status:p.status}));case 9:case"end":return f.stop()}},i,this)})),r.apply(this,arguments)}g.getBucketWorm=n},{"../utils/checkBucketName":48,"../utils/dataFix":53,"@babel/runtime/helpers/asyncToGenerator":71,"@babel/runtime/helpers/interopRequireDefault":72,"@babel/runtime/regenerator":75,"core-js/modules/es.object.assign":251,"regenerator-runtime/runtime":336}],17:[function(e,v,g){var t=e("@babel/runtime/helpers/interopRequireDefault"),o=t(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var u=t(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(g,"__esModule",{value:!0}),g.initiateBucketWorm=void 0;var l=e("../utils/obj2xml"),c=e("../utils/checkBucketName");function n(i,a,s){return r.apply(this,arguments)}function r(){return r=(0,u.default)(o.default.mark(function i(a,s,d){var p,h,f;return o.default.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return c.checkBucketName(a),p=this._bucketRequestParams("POST",a,"worm",d),h={InitiateWormConfiguration:{RetentionPeriodInDays:s}},p.mime="xml",p.content=l.obj2xml(h,{headers:!0}),p.successStatuses=[200],w.next=8,this.request(p);case 8:return f=w.sent,w.abrupt("return",{res:f.res,wormId:f.res.headers["x-oss-worm-id"],status:f.status});case 10:case"end":return w.stop()}},i,this)})),r.apply(this,arguments)}g.initiateBucketWorm=n},{"../utils/checkBucketName":48,"../utils/obj2xml":67,"@babel/runtime/helpers/asyncToGenerator":71,"@babel/runtime/helpers/interopRequireDefault":72,"@babel/runtime/regenerator":75,"regenerator-runtime/runtime":336}],18:[function(e,v,g){var t=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.object.assign");var o=t(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var u=t(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(g,"__esModule",{value:!0}),g.listBucketInventory=void 0;var l=e("../utils/checkBucketName"),c=e("../utils/formatInventoryConfig");function n(i){return r.apply(this,arguments)}function r(){return r=(0,u.default)(o.default.mark(function i(a){var s,d,p,h,f,m,w,k,S=arguments;return o.default.wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return s=S.length>1&&S[1]!==void 0?S[1]:{},d=s.continuationToken,p=Object.assign({inventory:""},d&&{"continuation-token":d},s.subres),l.checkBucketName(a),h=this._bucketRequestParams("GET",a,p,s),h.successStatuses=[200],h.xmlResponse=!0,y.next=9,this.request(h);case 9:return f=y.sent,m=f.data,w=f.res,k=f.status,y.abrupt("return",{isTruncated:m.IsTruncated==="true",nextContinuationToken:m.NextContinuationToken,inventoryList:c.formatInventoryConfig(m.InventoryConfiguration,!0),status:k,res:w});case 12:case"end":return y.stop()}},i,this)})),r.apply(this,arguments)}g.listBucketInventory=n},{"../utils/checkBucketName":48,"../utils/formatInventoryConfig":56,"@babel/runtime/helpers/asyncToGenerator":71,"@babel/runtime/helpers/interopRequireDefault":72,"@babel/runtime/regenerator":75,"core-js/modules/es.object.assign":251,"regenerator-runtime/runtime":336}],19:[function(e,v,g){var t=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.array.concat"),e("core-js/modules/es.object.assign");var o=t(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var u=t(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(g,"__esModule",{value:!0}),g.putBucketInventory=void 0;var l=e("../utils/checkBucketName"),c=e("../utils/obj2xml");function n(i,a){return r.apply(this,arguments)}function r(){return r=(0,u.default)(o.default.mark(function i(a,s){var d,p,h,f,m,w,k,S,x,y,E,P=arguments;return o.default.wrap(function(D){for(;;)switch(D.prev=D.next){case 0:return d=P.length>2&&P[2]!==void 0?P[2]:{},p=Object.assign({inventory:"",inventoryId:s.id},d.subres),l.checkBucketName(a),h=s.OSSBucketDestination,f=s.optionalFields,m=s.includedObjectVersions,w="acs:oss:::",k="acs:ram::".concat(h.accountId,":role/"),S={InventoryConfiguration:{Id:s.id,IsEnabled:s.isEnabled,Filter:{Prefix:s.prefix||""},Destination:{OSSBucketDestination:{Format:h.format,AccountId:h.accountId,RoleArn:"".concat(k).concat(h.rolename),Bucket:"".concat(w).concat(h.bucket),Prefix:h.prefix||"",Encryption:h.encryption||""}},Schedule:{Frequency:s.frequency},IncludedObjectVersions:m,OptionalFields:{Field:(f==null?void 0:f.field)||[]}}},x=c.obj2xml(S,{headers:!0,firstUpperCase:!0}),y=this._bucketRequestParams("PUT",a,p,d),y.successStatuses=[200],y.mime="xml",y.content=x,D.next=14,this.request(y);case 14:return E=D.sent,D.abrupt("return",{status:E.status,res:E.res});case 16:case"end":return D.stop()}},i,this)})),r.apply(this,arguments)}g.putBucketInventory=n},{"../utils/checkBucketName":48,"../utils/obj2xml":67,"@babel/runtime/helpers/asyncToGenerator":71,"@babel/runtime/helpers/interopRequireDefault":72,"@babel/runtime/regenerator":75,"core-js/modules/es.array.concat":234,"core-js/modules/es.object.assign":251,"regenerator-runtime/runtime":336}],20:[function(e,v,g){var t=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.array.for-each"),e("core-js/modules/es.array.includes"),e("core-js/modules/web.dom-collections.for-each");var o=t(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var u=t(e("@babel/runtime/helpers/asyncToGenerator")),l=e("../utils/checkBucketName"),c=l.checkBucketName,n=e("../utils/isArray"),r=n.isArray,i=e("../utils/deepCopy"),a=i.deepCopy,s=e("../utils/isObject"),d=s.isObject,p=e("../utils/obj2xml"),h=p.obj2xml,f=e("../utils/checkObjectTag"),m=f.checkObjectTag,w=e("../utils/getStrBytesCount"),k=w.getStrBytesCount,S=g;S.putBucketLifecycle=function(){var M=(0,u.default)(o.default.mark(function O(b,A,W){var K,te,X,q,re;return o.default.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:if(c(b),r(A)){G.next=3;break}throw new Error("rules must be Array");case 3:return K=this._bucketRequestParams("PUT",b,"lifecycle",W),te=[],X={LifecycleConfiguration:{Rule:te}},A.forEach(function(U){x(U),P(U),U.id&&(U.ID=U.id,delete U.id),te.push(U)}),q=h(X,{headers:!0,firstUpperCase:!0}),K.content=q,K.mime="xml",K.successStatuses=[200],G.next=13,this.request(K);case 13:return re=G.sent,G.abrupt("return",{res:re.res});case 15:case"end":return G.stop()}},O,this)}));function D(O,b,A){return M.apply(this,arguments)}return D}();function x(M){M.days&&(M.expiration={days:M.days}),M.date&&(M.expiration={createdBeforeDate:M.date})}function y(M,D){var O=M.days,b=M.createdBeforeDate;if(!O&&!b)throw new Error("".concat(D," must includes days or createdBeforeDate"));if(O&&!/^[1-9][0-9]*$/.test(O))throw new Error("days must be a positive integer");if(b&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(b))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function E(M){if(!r(M)&&!d(M))throw new Error("tag must be Object or Array");M=d(M)?[M]:M;var D={},O=a(M);O.forEach(function(b){D[b.key]=b.value}),m(D)}function P(M){if(M.id&&k(M.id)>255)throw new Error("ID is composed of 255 bytes at most");if(M.prefix===void 0)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(M.status))throw new Error("Status must be Enabled or Disabled");if(M.transition){if(!["IA","Archive"].includes(M.transition.storageClass))throw new Error("StorageClass must be IA or Archive");y(M.transition,"Transition")}if(M.expiration){if(!M.expiration.expiredObjectDeleteMarker)y(M.expiration,"Expiration");else if(M.expiration.days||M.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}if(M.abortMultipartUpload&&y(M.abortMultipartUpload,"AbortMultipartUpload"),!M.expiration&&!M.abortMultipartUpload&&!M.transition&&!M.noncurrentVersionTransition)throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(M.tag){if(M.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");E(M.tag)}}},{"../utils/checkBucketName":48,"../utils/checkObjectTag":50,"../utils/deepCopy":54,"../utils/getStrBytesCount":58,"../utils/isArray":59,"../utils/isObject":65,"../utils/obj2xml":67,"@babel/runtime/helpers/asyncToGenerator":71,"@babel/runtime/helpers/interopRequireDefault":72,"@babel/runtime/regenerator":75,"core-js/modules/es.array.for-each":238,"core-js/modules/es.array.includes":240,"core-js/modules/web.dom-collections.for-each":291,"regenerator-runtime/runtime":336}],21:[function(e,v,g){var t=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.array.includes");var o=t(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var u=t(e("@babel/runtime/helpers/asyncToGenerator")),l=e("../utils/checkBucketName"),c=l.checkBucketName,n=e("../utils/obj2xml"),r=n.obj2xml,i=g;i.putBucketVersioning=function(){var a=(0,u.default)(o.default.mark(function d(p,h){var f,m,w,k,S=arguments;return o.default.wrap(function(y){for(;;)switch(y.prev=y.next){case 0:if(f=S.length>2&&S[2]!==void 0?S[2]:{},c(p),["Enabled","Suspended"].includes(h)){y.next=4;break}throw new Error("status must be Enabled or Suspended");case 4:return m=this._bucketRequestParams("PUT",p,"versioning",f),w={VersioningConfiguration:{Status:h}},m.mime="xml",m.content=r(w,{headers:!0}),y.next=10,this.request(m);case 10:return k=y.sent,y.abrupt("return",{res:k.res,status:k.status});case 12:case"end":return y.stop()}},d,this)}));function s(d,p){return a.apply(this,arguments)}return s}()},{"../utils/checkBucketName":48,"../utils/obj2xml":67,"@babel/runtime/helpers/asyncToGenerator":71,"@babel/runtime/helpers/interopRequireDefault":72,"@babel/runtime/regenerator":75,"core-js/modules/es.array.includes":240,"regenerator-runtime/runtime":336}],22:[function(e,v,g){var t=e("@babel/runtime/helpers/interopRequireDefault"),o=t(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var u=t(e("@babel/runtime/helpers/asyncToGenerator")),l=e("../utils/checkBucketName"),c=l.checkBucketName,n=e("../utils/obj2xml"),r=n.obj2xml,i=e("../utils/isArray"),a=i.isArray,s=g;s.putBucketWebsite=function(){var d=(0,u.default)(o.default.mark(function h(f){var m,w,k,S,x,y,E,P=arguments;return o.default.wrap(function(D){for(;;)switch(D.prev=D.next){case 0:if(m=P.length>1&&P[1]!==void 0?P[1]:{},w=P.length>2?P[2]:void 0,c(f),k=this._bucketRequestParams("PUT",f,"website",w),S={Suffix:m.index||"index.html"},x={IndexDocument:S},y={WebsiteConfiguration:x},m.supportSubDir&&(S.SupportSubDir=m.supportSubDir),m.type&&(S.Type=m.type),m.error&&(x.ErrorDocument={Key:m.error}),m.routingRules===void 0){D.next=14;break}if(a(m.routingRules)){D.next=13;break}throw new Error("RoutingRules must be Array");case 13:x.RoutingRules={RoutingRule:m.routingRules};case 14:return y=r(y),k.content=y,k.mime="xml",k.successStatuses=[200],D.next=20,this.request(k);case 20:return E=D.sent,D.abrupt("return",{res:E.res});case 22:case"end":return D.stop()}},h,this)}));function p(h){return d.apply(this,arguments)}return p}()},{"../utils/checkBucketName":48,"../utils/isArray":59,"../utils/obj2xml":67,"@babel/runtime/helpers/asyncToGenerator":71,"@babel/runtime/helpers/interopRequireDefault":72,"@babel/runtime/regenerator":75,"regenerator-runtime/runtime":336}],23:[function(e,v,g){(function(t){e("core-js/modules/es.array.for-each"),e("core-js/modules/es.object.keys"),e("core-js/modules/es.object.to-string"),e("core-js/modules/es.regexp.to-string"),e("core-js/modules/web.dom-collections.for-each"),g.encodeCallback=function(u,l){if(u.headers=u.headers||{},!Object.prototype.hasOwnProperty.call(u.headers,"x-oss-callback")&&l.callback){var c={callbackUrl:encodeURI(l.callback.url),callbackBody:l.callback.body};l.callback.host&&(c.callbackHost=l.callback.host),l.callback.contentType&&(c.callbackBodyType=l.callback.contentType);var n=t.from(JSON.stringify(c)).toString("base64");if(u.headers["x-oss-callback"]=n,l.callback.customValue){var r={};Object.keys(l.callback.customValue).forEach(function(i){r["x:".concat(i)]=l.callback.customValue[i]}),u.headers["x-oss-callback-var"]=t.from(JSON.stringify(r)).toString("base64")}}}}).call(this,e("buffer").Buffer)},{buffer:99,"core-js/modules/es.array.for-each":238,"core-js/modules/es.object.keys":253,"core-js/modules/es.object.to-string":254,"core-js/modules/es.regexp.to-string":257,"core-js/modules/web.dom-collections.for-each":291}],24:[function(e,v,g){e("core-js/modules/es.array.concat"),e("core-js/modules/es.array.for-each"),e("core-js/modules/es.regexp.exec"),e("core-js/modules/es.string.replace"),e("core-js/modules/web.dom-collections.for-each");var t=function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(g,"__esModule",{value:!0}),g.getReqUrl=void 0;var o=t(e("copy-to")),u=t(e("url")),l=t(e("merge-descriptors")),c=t(e("is-type-of")),n=e("../utils/isIP"),r=e("../utils/checkConfigValid");function i(a){var s={},d=this.options.cname;r.checkConfigValid(this.options.endpoint,"endpoint"),o.default(this.options.endpoint,!1).to(s),a.bucket&&!d&&!n.isIP(s.hostname)&&!this.options.sldEnable&&(s.host="".concat(a.bucket,".").concat(s.host));var p="/";a.bucket&&this.options.sldEnable&&(p+="".concat(a.bucket,"/")),a.object&&(p+=this._escape(a.object).replace(/\+/g,"%2B")),s.pathname=p;var h={};if(a.query&&l.default(h,a.query),a.subres){var f={};c.default.string(a.subres)?f[a.subres]="":c.default.array(a.subres)?a.subres.forEach(function(m){f[m]=""}):f=a.subres,l.default(h,f)}return s.query=h,u.default.format(s)}g.getReqUrl=i},{"../utils/checkConfigValid":49,"../utils/isIP":64,"copy-to":101,"core-js/modules/es.array.concat":234,"core-js/modules/es.array.for-each":238,"core-js/modules/es.regexp.exec":256,"core-js/modules/es.string.replace":261,"core-js/modules/web.dom-collections.for-each":291,"is-type-of":391,"merge-descriptors":310,url:393}],25:[function(e,v,g){e("core-js/modules/es.array.concat"),e("core-js/modules/es.object.assign"),e("core-js/modules/es.string.trim");var t=e("humanize-ms"),o=e("url"),u=e("../utils/checkBucketName"),l=u.checkBucketName,c=e("../utils/setRegion"),n=c.setRegion,r=e("../utils/checkConfigValid"),i=r.checkConfigValid;function a(s,d){i(s,"endpoint");var p=o.parse(s);if(p.protocol||(p=o.parse("http".concat(d?"s":"","://").concat(s))),p.protocol!=="http:"&&p.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return p}v.exports=function(s){if(!s||!s.accessKeyId||!s.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");s.stsToken&&!s.refreshSTSToken&&!s.refreshSTSTokenInterval&&console.warn("It's recommended to set 'refreshSTSToken' and 'refreshSTSTokenInterval' to refresh stsToken\u3001accessKeyId\u3001accessKeySecret automatically when sts token has expired"),s.bucket&&l(s.bucket);var d=Object.assign({region:"oss-cn-hangzhou",internal:!1,secure:!1,timeout:6e4,bucket:null,endpoint:null,cname:!1,isRequestPay:!1,sldEnable:!1,headerEncoding:"utf-8",refreshSTSToken:null,refreshSTSTokenInterval:6e4*5,retryMax:0},s);if(d.accessKeyId=d.accessKeyId.trim(),d.accessKeySecret=d.accessKeySecret.trim(),d.timeout&&(d.timeout=t(d.timeout)),d.endpoint)d.endpoint=a(d.endpoint,d.secure);else if(d.region)d.endpoint=n(d.region,d.internal,d.secure);else throw new Error("require options.endpoint or options.region");return d.inited=!0,d}},{"../utils/checkBucketName":48,"../utils/checkConfigValid":49,"../utils/setRegion":69,"core-js/modules/es.array.concat":234,"core-js/modules/es.object.assign":251,"core-js/modules/es.string.trim":264,"humanize-ms":298,url:393}],26:[function(e,v,g){var t=e("merge-descriptors"),o=g;t(o,e("./processObjectSave"))},{"./processObjectSave":27,"merge-descriptors":310}],27:[function(e,v,g){var t=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.array.concat");var o=t(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var u=t(e("@babel/runtime/helpers/asyncToGenerator")),l=e("../utils/checkBucketName"),c=l.checkBucketName,n=e("querystring"),r=e("js-base64"),i=r.Base64.encode,a=g;a.processObjectSave=function(){var d=(0,u.default)(o.default.mark(function h(f,m,w,k){var S,x,y,E;return o.default.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return s(f,"sourceObject"),s(m,"targetObject"),s(w,"process"),m=this._objectName(m),k&&c(k),S=this._objectRequestParams("POST",f,{subres:"x-oss-process"}),x=k?",b_".concat(i(k)):"",m=i(m),y={"x-oss-process":"".concat(w,"|sys/saveas,o_").concat(m).concat(x)},S.content=n.stringify(y),M.next=12,this.request(S);case 12:return E=M.sent,M.abrupt("return",{res:E.res,status:E.res.status});case 14:case"end":return M.stop()}},h,this)}));function p(h,f,m,w){return d.apply(this,arguments)}return p}();function s(d,p){if(!d)throw new Error("".concat(p," is required"));if(typeof d!="string")throw new Error("".concat(p," must be String"))}},{"../utils/checkBucketName":48,"@babel/runtime/helpers/asyncToGenerator":71,"@babel/runtime/helpers/interopRequireDefault":72,"@babel/runtime/regenerator":75,"core-js/modules/es.array.concat":234,"js-base64":309,querystring:322,"regenerator-runtime/runtime":336}],28:[function(e,v,g){(function(t){var o=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.array.concat"),e("core-js/modules/es.array.filter"),e("core-js/modules/es.array.map"),e("core-js/modules/es.array.sort"),e("core-js/modules/es.object.to-string"),e("core-js/modules/es.regexp.to-string");var u=o(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var l=o(e("@babel/runtime/helpers/asyncToGenerator")),c=e("copy-to"),n=e("./callback"),r=e("./utils/deepCopy"),i=r.deepCopyWith,a=e("./utils/isBuffer"),s=a.isBuffer,d=g;d.listUploads=function(){var p=(0,l.default)(u.default.mark(function f(m,w){var k,S,x,y;return u.default.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return w=w||{},k={},c(w).to(k),k.subres="uploads",S=this._objectRequestParams("GET","",k),S.query=m,S.xmlResponse=!0,S.successStatuses=[200],P.next=10,this.request(S);case 10:return x=P.sent,y=x.data.Upload||[],Array.isArray(y)||(y=[y]),y=y.map(function(M){return{name:M.Key,uploadId:M.UploadId,initiated:M.Initiated}}),P.abrupt("return",{res:x.res,uploads:y,bucket:x.data.Bucket,nextKeyMarker:x.data.NextKeyMarker,nextUploadIdMarker:x.data.NextUploadIdMarker,isTruncated:x.data.IsTruncated==="true"});case 15:case"end":return P.stop()}},f,this)}));function h(f,m){return p.apply(this,arguments)}return h}(),d.listParts=function(){var p=(0,l.default)(u.default.mark(function f(m,w,k,S){var x,y,E;return u.default.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return S=S||{},x={},c(S).to(x),x.subres={uploadId:w},y=this._objectRequestParams("GET",m,x),y.query=k,y.xmlResponse=!0,y.successStatuses=[200],M.next=10,this.request(y);case 10:return E=M.sent,M.abrupt("return",{res:E.res,uploadId:E.data.UploadId,bucket:E.data.Bucket,name:E.data.Key,partNumberMarker:E.data.PartNumberMarker,nextPartNumberMarker:E.data.NextPartNumberMarker,maxParts:E.data.MaxParts,isTruncated:E.data.IsTruncated,parts:E.data.Part||[]});case 12:case"end":return M.stop()}},f,this)}));function h(f,m,w,k){return p.apply(this,arguments)}return h}(),d.abortMultipartUpload=function(){var p=(0,l.default)(u.default.mark(function f(m,w,k){var S,x,y;return u.default.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return this._stop(),k=k||{},S={},c(k).to(S),S.subres={uploadId:w},x=this._objectRequestParams("DELETE",m,S),x.successStatuses=[204],P.next=9,this.request(x);case 9:return y=P.sent,P.abrupt("return",{res:y.res});case 11:case"end":return P.stop()}},f,this)}));function h(f,m,w){return p.apply(this,arguments)}return h}(),d.initMultipartUpload=function(){var p=(0,l.default)(u.default.mark(function f(m,w){var k,S,x;return u.default.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return w=w||{},k={},c(w).to(k),k.headers=k.headers||{},this._convertMetaToHeaders(w.meta,k.headers),k.subres="uploads",S=this._objectRequestParams("POST",m,k),S.mime=w.mime,S.xmlResponse=!0,S.successStatuses=[200],E.next=12,this.request(S);case 12:return x=E.sent,E.abrupt("return",{res:x.res,bucket:x.data.Bucket,name:x.data.Key,uploadId:x.data.UploadId});case 14:case"end":return E.stop()}},f,this)}));function h(f,m){return p.apply(this,arguments)}return h}(),d.uploadPart=function(){var p=(0,l.default)(u.default.mark(function f(m,w,k,S,x,y,E){var P,M;return u.default.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:if(P={size:y-x},M=t&&t.browser,!M){O.next=8;break}return O.next=5,this._createBuffer(S,x,y);case 5:P.content=O.sent,O.next=11;break;case 8:return O.next=10,this._createStream(S,x,y);case 10:P.stream=O.sent;case 11:return O.next=13,this._uploadPart(m,w,k,P,E);case 13:return O.abrupt("return",O.sent);case 14:case"end":return O.stop()}},f,this)}));function h(f,m,w,k,S,x,y){return p.apply(this,arguments)}return h}(),d.completeMultipartUpload=function(){var p=(0,l.default)(u.default.mark(function f(m,w,k,S){var x,y,E,P,M,D,O,b;return u.default.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:for(x=k.concat().sort(function(K,te){return K.number-te.number}).filter(function(K,te,X){return!te||K.number!==X[te-1].number}),y=` + +`,E=0;E +`,y+="".concat(P.number,` +`),y+="".concat(P.etag,` +`),y+=` +`;return y+="",S=S||{},M={},M=i(S,function(K){if(s(K))return null}),M.headers&&delete M.headers["x-oss-server-side-encryption"],M.subres={uploadId:w},D=this._objectRequestParams("POST",m,M),n.encodeCallback(D,M),D.mime="xml",D.content=y,D.headers&&D.headers["x-oss-callback"]||(D.xmlResponse=!0),D.successStatuses=[200],W.next=17,this.request(D);case 17:return O=W.sent,b={res:O.res,bucket:D.bucket,name:m,etag:O.res.headers.etag},D.headers&&D.headers["x-oss-callback"]&&(b.data=JSON.parse(O.data.toString())),W.abrupt("return",b);case 21:case"end":return W.stop()}},f,this)}));function h(f,m,w,k){return p.apply(this,arguments)}return h}(),d._uploadPart=function(){var p=(0,l.default)(u.default.mark(function f(m,w,k,S,x){var y,E,P,M;return u.default.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return x=x||{},y={},c(x).to(y),y.headers={"Content-Length":S.size},y.subres={partNumber:k,uploadId:w},E=this._objectRequestParams("PUT",m,y),E.mime=y.mime,P=t&&t.browser,P?E.content=S.content:E.stream=S.stream,E.successStatuses=[200],E.disabledMD5=x.disabledMD5,O.next=13,this.request(E);case 13:if(M=O.sent,M.res.headers.etag){O.next=16;break}throw new Error(`Please set the etag of expose-headers in OSS + https://help.aliyun.com/document_detail/32069.html`);case 16:return S.stream&&(S.stream=null,E.stream=null),O.abrupt("return",{name:m,etag:M.res.headers.etag,res:M.res});case 18:case"end":return O.stop()}},f,this)}));function h(f,m,w,k,S){return p.apply(this,arguments)}return h}()}).call(this,e("_process"))},{"./callback":23,"./utils/deepCopy":54,"./utils/isBuffer":61,"@babel/runtime/helpers/asyncToGenerator":71,"@babel/runtime/helpers/interopRequireDefault":72,"@babel/runtime/regenerator":75,_process:392,"copy-to":101,"core-js/modules/es.array.concat":234,"core-js/modules/es.array.filter":236,"core-js/modules/es.array.map":245,"core-js/modules/es.array.sort":247,"core-js/modules/es.object.to-string":254,"core-js/modules/es.regexp.to-string":257,"regenerator-runtime/runtime":336}],29:[function(e,v,g){var t=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.array.concat"),e("core-js/modules/es.array.find"),e("core-js/modules/es.array.for-each"),e("core-js/modules/es.array.includes"),e("core-js/modules/es.object.keys"),e("core-js/modules/es.regexp.exec"),e("core-js/modules/es.string.replace"),e("core-js/modules/web.dom-collections.for-each");var o=t(e("@babel/runtime/regenerator")),u=t(e("@babel/runtime/helpers/typeof"));e("regenerator-runtime/runtime");var l=t(e("@babel/runtime/helpers/asyncToGenerator")),c=e("../utils/checkBucketName"),n=c.checkBucketName,r=g,i=["content-type","content-encoding","content-language","content-disposition","cache-control","expires"];r.copy=function(){var a=(0,l.default)(o.default.mark(function d(p,h,f,m){var w,k,S;return o.default.wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return(0,u.default)(f)==="object"&&(m=f),m=m||{},m.headers=m.headers||{},Object.keys(m.headers).forEach(function(E){m.headers["x-oss-copy-source-".concat(E.toLowerCase())]=m.headers[E]}),(m.meta||Object.keys(m.headers).find(function(E){return i.includes(E.toLowerCase())}))&&(m.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(m.meta,m.headers),h=this._getSourceName(h,f),m.versionId&&(h="".concat(h,"?versionId=").concat(m.versionId)),m.headers["x-oss-copy-source"]=h,w=this._objectRequestParams("PUT",p,m),w.xmlResponse=!0,w.successStatuses=[200,304],y.next=14,this.request(w);case 14:return k=y.sent,S=k.data,S&&(S={etag:S.ETag,lastModified:S.LastModified}),y.abrupt("return",{data:S,res:k.res});case 18:case"end":return y.stop()}},d,this)}));function s(d,p,h,f){return a.apply(this,arguments)}return s}(),r._getSourceName=function(s,d){return typeof d=="string"?s=this._objectName(s):s[0]!=="/"?d=this.options.bucket:(d=s.replace(/\/(.+?)(\/.*)/,"$1"),s=s.replace(/(\/.+?\/)(.*)/,"$2")),n(d),s=encodeURIComponent(s),s="/".concat(d,"/").concat(s),s}},{"../utils/checkBucketName":48,"@babel/runtime/helpers/asyncToGenerator":71,"@babel/runtime/helpers/interopRequireDefault":72,"@babel/runtime/helpers/typeof":73,"@babel/runtime/regenerator":75,"core-js/modules/es.array.concat":234,"core-js/modules/es.array.find":237,"core-js/modules/es.array.for-each":238,"core-js/modules/es.array.includes":240,"core-js/modules/es.object.keys":253,"core-js/modules/es.regexp.exec":256,"core-js/modules/es.string.replace":261,"core-js/modules/web.dom-collections.for-each":291,"regenerator-runtime/runtime":336}],30:[function(e,v,g){var t=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.object.assign");var o=t(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var u=t(e("@babel/runtime/helpers/asyncToGenerator")),l=g;l.delete=function(){var c=(0,u.default)(o.default.mark(function r(i){var a,s,d,p=arguments;return o.default.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return a=p.length>1&&p[1]!==void 0?p[1]:{},a.subres=Object.assign({},a.subres),a.versionId&&(a.subres.versionId=a.versionId),s=this._objectRequestParams("DELETE",i,a),s.successStatuses=[204],f.next=7,this.request(s);case 7:return d=f.sent,f.abrupt("return",{res:d.res});case 9:case"end":return f.stop()}},r,this)}));function n(r){return c.apply(this,arguments)}return n}()},{"@babel/runtime/helpers/asyncToGenerator":71,"@babel/runtime/helpers/interopRequireDefault":72,"@babel/runtime/regenerator":75,"core-js/modules/es.object.assign":251,"regenerator-runtime/runtime":336}],31:[function(e,v,g){var t=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.object.assign");var o=t(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var u=t(e("@babel/runtime/helpers/asyncToGenerator")),l=e("utility"),c=e("../utils/obj2xml"),n=c.obj2xml,r=g;r.deleteMulti=function(){var i=(0,u.default)(o.default.mark(function s(d){var p,h,f,m,w,k,S,x,y,E,P,M,D,O=arguments;return o.default.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:if(p=O.length>1&&O[1]!==void 0?O[1]:{},h=[],!(!d||!d.length)){A.next=4;break}throw new Error("names is required");case 4:for(f=0;f1&&p[1]!==void 0?p[1]:{},a.subres=Object.assign({tagging:""},a.subres),a.versionId&&(a.subres.versionId=a.versionId),i=this._objectName(i),s=this._objectRequestParams("DELETE",i,a),s.successStatuses=[204],f.next=8,this.request(s);case 8:return d=f.sent,f.abrupt("return",{status:d.status,res:d.res});case 10:case"end":return f.stop()}},r,this)}));function n(r){return c.apply(this,arguments)}return n}()},{"@babel/runtime/helpers/asyncToGenerator":71,"@babel/runtime/helpers/interopRequireDefault":72,"@babel/runtime/regenerator":75,"core-js/modules/es.object.assign":251,"regenerator-runtime/runtime":336}],33:[function(e,v,g){e("core-js/modules/es.array.concat");var t=e("url"),o=e("../utils/isIP"),u=o.isIP,l=g;l.generateObjectUrl=function(n,r){if(u(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");if(r)r[r.length-1]!=="/"&&(r+="/");else{r=this.options.endpoint.format();var i=t.parse(r),a=this.options.bucket;i.hostname="".concat(a,".").concat(i.hostname),i.host="".concat(a,".").concat(i.host),r=i.format()}return r+this._escape(this._objectName(n))}},{"../utils/isIP":64,"core-js/modules/es.array.concat":234,url:393}],34:[function(e,v,g){(function(t){var o=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.object.assign");var u=o(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var l=o(e("@babel/runtime/helpers/asyncToGenerator")),c=e("fs"),n=e("is-type-of"),r=g;r.get=function(){var i=(0,l.default)(u.default.mark(function s(d,p){var h,f,m,w,k,S,x,y,E=arguments;return u.default.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return h=E.length>2&&E[2]!==void 0?E[2]:{},f=null,m=!1,n.writableStream(p)?f=p:n.string(p)?(f=c.createWriteStream(p),m=!0):h=p,h=h||{},w=t&&t.browser,k=h.responseCacheControl===null?"":"no-cache",S=w&&k?{"response-cache-control":k}:{},h.subres=Object.assign(S,h.subres),h.versionId&&(h.subres.versionId=h.versionId),h.process&&(h.subres["x-oss-process"]=h.process),M.prev=11,y=this._objectRequestParams("GET",d,h),y.writeStream=f,y.successStatuses=[200,206,304],M.next=17,this.request(y);case 17:x=M.sent,m&&f.destroy(),M.next=28;break;case 21:if(M.prev=21,M.t0=M.catch(11),!m){M.next=27;break}return f.destroy(),M.next=27,this._deleteFileSafe(p);case 27:throw M.t0;case 28:return M.abrupt("return",{res:x.res,content:x.data});case 29:case"end":return M.stop()}},s,this,[[11,21]])}));function a(s,d){return i.apply(this,arguments)}return a}()}).call(this,e("_process"))},{"@babel/runtime/helpers/asyncToGenerator":71,"@babel/runtime/helpers/interopRequireDefault":72,"@babel/runtime/regenerator":75,_process:392,"core-js/modules/es.object.assign":251,fs:79,"is-type-of":391,"regenerator-runtime/runtime":336}],35:[function(e,v,g){var t=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.object.assign");var o=t(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var u=t(e("@babel/runtime/helpers/asyncToGenerator")),l=g;l.getACL=function(){var c=(0,u.default)(o.default.mark(function r(i){var a,s,d,p=arguments;return o.default.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return a=p.length>1&&p[1]!==void 0?p[1]:{},a.subres=Object.assign({acl:""},a.subres),a.versionId&&(a.subres.versionId=a.versionId),i=this._objectName(i),s=this._objectRequestParams("GET",i,a),s.successStatuses=[200],s.xmlResponse=!0,f.next=9,this.request(s);case 9:return d=f.sent,f.abrupt("return",{acl:d.data.AccessControlList.Grant,owner:{id:d.data.Owner.ID,displayName:d.data.Owner.DisplayName},res:d.res});case 11:case"end":return f.stop()}},r,this)}));function n(r){return c.apply(this,arguments)}return n}()},{"@babel/runtime/helpers/asyncToGenerator":71,"@babel/runtime/helpers/interopRequireDefault":72,"@babel/runtime/regenerator":75,"core-js/modules/es.object.assign":251,"regenerator-runtime/runtime":336}],36:[function(e,v,g){var t=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.array.for-each"),e("core-js/modules/es.array.map"),e("core-js/modules/es.number.constructor"),e("core-js/modules/es.object.assign"),e("core-js/modules/es.object.keys"),e("core-js/modules/es.regexp.exec"),e("core-js/modules/es.string.replace"),e("core-js/modules/web.dom-collections.for-each");var o=t(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var u=t(e("@babel/runtime/helpers/asyncToGenerator")),l=g,c=e("../utils/isObject"),n=c.isObject,r=e("../utils/isArray"),i=r.isArray;l.getBucketVersions=a,l.listObjectVersions=a;function a(){return s.apply(this,arguments)}function s(){return s=(0,u.default)(o.default.mark(function h(){var f,m,w,k,S,x,y,E,P=arguments;return o.default.wrap(function(D){for(;;)switch(D.prev=D.next){case 0:if(f=P.length>0&&P[0]!==void 0?P[0]:{},m=P.length>1&&P[1]!==void 0?P[1]:{},!(f.versionIdMarker&&f.keyMarker===void 0)){D.next=4;break}throw new Error("A version-id marker cannot be specified without a key marker");case 4:return m.subres=Object.assign({versions:""},m.subres),m.versionId&&(m.subres.versionId=m.versionId),w=this._objectRequestParams("GET","",m),w.xmlResponse=!0,w.successStatuses=[200],w.query=p(f),D.next=12,this.request(w);case 12:return k=D.sent,S=k.data.Version||[],x=k.data.DeleteMarker||[],y=this,S&&(Array.isArray(S)||(S=[S]),S=S.map(function(O){return{name:O.Key,url:y._objectUrl(O.Key),lastModified:O.LastModified,isLatest:O.IsLatest==="true",versionId:O.VersionId,etag:O.ETag,type:O.Type,size:Number(O.Size),storageClass:O.StorageClass,owner:{id:O.Owner.ID,displayName:O.Owner.DisplayName}}})),x&&(i(x)||(x=[x]),x=x.map(function(O){return{name:O.Key,lastModified:O.LastModified,versionId:O.VersionId,owner:{id:O.Owner.ID,displayName:O.Owner.DisplayName}}})),E=k.data.CommonPrefixes||null,E&&(i(E)||(E=[E]),E=E.map(function(O){return O.Prefix})),D.abrupt("return",{res:k.res,objects:S,deleteMarker:x,prefixes:E,nextMarker:k.data.NextKeyMarker||null,NextVersionIdMarker:k.data.NextVersionIdMarker||null,nextKeyMarker:k.data.NextKeyMarker||null,nextVersionIdMarker:k.data.NextVersionIdMarker||null,isTruncated:k.data.IsTruncated==="true"});case 21:case"end":return D.stop()}},h,this)})),s.apply(this,arguments)}function d(h){return h.replace(/([A-Z])/g,"-$1").toLowerCase()}function p(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},f={};return n(h)&&Object.keys(h).forEach(function(m){f[d(m)]=h[m]}),f}},{"../utils/isArray":59,"../utils/isObject":65,"@babel/runtime/helpers/asyncToGenerator":71,"@babel/runtime/helpers/interopRequireDefault":72,"@babel/runtime/regenerator":75,"core-js/modules/es.array.for-each":238,"core-js/modules/es.array.map":245,"core-js/modules/es.number.constructor":250,"core-js/modules/es.object.assign":251,"core-js/modules/es.object.keys":253,"core-js/modules/es.regexp.exec":256,"core-js/modules/es.string.replace":261,"core-js/modules/web.dom-collections.for-each":291,"regenerator-runtime/runtime":336}],37:[function(e,v,g){var t=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.object.assign");var o=t(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var u=t(e("@babel/runtime/helpers/asyncToGenerator")),l=g;l.getObjectMeta=function(){var c=(0,u.default)(o.default.mark(function r(i,a){var s,d;return o.default.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return a=a||{},i=this._objectName(i),a.subres=Object.assign({objectMeta:""},a.subres),a.versionId&&(a.subres.versionId=a.versionId),s=this._objectRequestParams("HEAD",i,a),s.successStatuses=[200],h.next=8,this.request(s);case 8:return d=h.sent,h.abrupt("return",{status:d.status,res:d.res});case 10:case"end":return h.stop()}},r,this)}));function n(r,i){return c.apply(this,arguments)}return n}()},{"@babel/runtime/helpers/asyncToGenerator":71,"@babel/runtime/helpers/interopRequireDefault":72,"@babel/runtime/regenerator":75,"core-js/modules/es.object.assign":251,"regenerator-runtime/runtime":336}],38:[function(e,v,g){var t=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.array.for-each"),e("core-js/modules/es.object.assign"),e("core-js/modules/web.dom-collections.for-each");var o=t(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var u=t(e("@babel/runtime/helpers/asyncToGenerator")),l=g,c=e("../utils/isObject"),n=c.isObject;l.getObjectTagging=function(){var r=(0,u.default)(o.default.mark(function a(s){var d,p,h,f,m,w,k=arguments;return o.default.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return d=k.length>1&&k[1]!==void 0?k[1]:{},d.subres=Object.assign({tagging:""},d.subres),d.versionId&&(d.subres.versionId=d.versionId),s=this._objectName(s),p=this._objectRequestParams("GET",s,d),p.successStatuses=[200],x.next=8,this.request(p);case 8:return h=x.sent,x.next=11,this.parseXML(h.data);case 11:return f=x.sent,m=f.TagSet.Tag,m=m&&n(m)?[m]:m||[],w={},m.forEach(function(y){w[y.Key]=y.Value}),x.abrupt("return",{status:h.status,res:h.res,tag:w});case 17:case"end":return x.stop()}},a,this)}));function i(a){return r.apply(this,arguments)}return i}()},{"../utils/isObject":65,"@babel/runtime/helpers/asyncToGenerator":71,"@babel/runtime/helpers/interopRequireDefault":72,"@babel/runtime/regenerator":75,"core-js/modules/es.array.for-each":238,"core-js/modules/es.object.assign":251,"core-js/modules/web.dom-collections.for-each":291,"regenerator-runtime/runtime":336}],39:[function(e,v,g){var t=e("../utils/isIP"),o=t.isIP,u=g;u.getObjectUrl=function(c,n){if(o(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");return n?n[n.length-1]!=="/"&&(n+="/"):n=this.options.endpoint.format(),n+this._escape(this._objectName(c))}},{"../utils/isIP":64}],40:[function(e,v,g){var t=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.object.assign");var o=t(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var u=t(e("@babel/runtime/helpers/asyncToGenerator")),l=g;l.getSymlink=function(){var c=(0,u.default)(o.default.mark(function r(i){var a,s,d,p,h=arguments;return o.default.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return a=h.length>1&&h[1]!==void 0?h[1]:{},a.subres=Object.assign({symlink:""},a.subres),a.versionId&&(a.subres.versionId=a.versionId),i=this._objectName(i),s=this._objectRequestParams("GET",i,a),s.successStatuses=[200],m.next=8,this.request(s);case 8:return d=m.sent,p=d.res.headers["x-oss-symlink-target"],m.abrupt("return",{targetName:decodeURIComponent(p),res:d.res});case 11:case"end":return m.stop()}},r,this)}));function n(r){return c.apply(this,arguments)}return n}()},{"@babel/runtime/helpers/asyncToGenerator":71,"@babel/runtime/helpers/interopRequireDefault":72,"@babel/runtime/regenerator":75,"core-js/modules/es.object.assign":251,"regenerator-runtime/runtime":336}],41:[function(e,v,g){var t=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.array.for-each"),e("core-js/modules/es.array.index-of"),e("core-js/modules/es.object.assign"),e("core-js/modules/es.object.keys"),e("core-js/modules/web.dom-collections.for-each");var o=t(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var u=t(e("@babel/runtime/helpers/asyncToGenerator")),l=g;l.head=function(){var c=(0,u.default)(o.default.mark(function r(i){var a,s,d,p,h=arguments;return o.default.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return a=h.length>1&&h[1]!==void 0?h[1]:{},a.subres=Object.assign({},a.subres),a.versionId&&(a.subres.versionId=a.versionId),s=this._objectRequestParams("HEAD",i,a),s.successStatuses=[200,304],m.next=7,this.request(s);case 7:return d=m.sent,p={meta:null,res:d.res,status:d.status},d.status===200&&Object.keys(d.headers).forEach(function(w){w.indexOf("x-oss-meta-")===0&&(p.meta||(p.meta={}),p.meta[w.substring(11)]=d.headers[w])}),m.abrupt("return",p);case 11:case"end":return m.stop()}},r,this)}));function n(r){return c.apply(this,arguments)}return n}()},{"@babel/runtime/helpers/asyncToGenerator":71,"@babel/runtime/helpers/interopRequireDefault":72,"@babel/runtime/regenerator":75,"core-js/modules/es.array.for-each":238,"core-js/modules/es.array.index-of":241,"core-js/modules/es.object.assign":251,"core-js/modules/es.object.keys":253,"core-js/modules/web.dom-collections.for-each":291,"regenerator-runtime/runtime":336}],42:[function(e,v,g){var t=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.object.assign");var o=t(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var u=t(e("@babel/runtime/helpers/asyncToGenerator")),l=g;l.putACL=function(){var c=(0,u.default)(o.default.mark(function r(i,a,s){var d,p;return o.default.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return s=s||{},s.subres=Object.assign({acl:""},s.subres),s.versionId&&(s.subres.versionId=s.versionId),s.headers=s.headers||{},s.headers["x-oss-object-acl"]=a,i=this._objectName(i),d=this._objectRequestParams("PUT",i,s),d.successStatuses=[200],f.next=10,this.request(d);case 10:return p=f.sent,f.abrupt("return",{res:p.res});case 12:case"end":return f.stop()}},r,this)}));function n(r,i,a){return c.apply(this,arguments)}return n}()},{"@babel/runtime/helpers/asyncToGenerator":71,"@babel/runtime/helpers/interopRequireDefault":72,"@babel/runtime/regenerator":75,"core-js/modules/es.object.assign":251,"regenerator-runtime/runtime":336}],43:[function(e,v,g){var t=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.array.map"),e("core-js/modules/es.object.assign"),e("core-js/modules/es.object.keys");var o=t(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var u=t(e("@babel/runtime/helpers/asyncToGenerator")),l=e("../utils/obj2xml"),c=l.obj2xml,n=e("../utils/checkObjectTag"),r=n.checkObjectTag,i=g;i.putObjectTagging=function(){var a=(0,u.default)(o.default.mark(function d(p,h){var f,m,w,k,S=arguments;return o.default.wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return f=S.length>2&&S[2]!==void 0?S[2]:{},r(h),f.subres=Object.assign({tagging:""},f.subres),f.versionId&&(f.subres.versionId=f.versionId),p=this._objectName(p),m=this._objectRequestParams("PUT",p,f),m.successStatuses=[200],h=Object.keys(h).map(function(E){return{Key:E,Value:h[E]}}),w={Tagging:{TagSet:{Tag:h}}},m.mime="xml",m.content=c(w),y.next=13,this.request(m);case 13:return k=y.sent,y.abrupt("return",{res:k.res,status:k.status});case 15:case"end":return y.stop()}},d,this)}));function s(d,p){return a.apply(this,arguments)}return s}()},{"../utils/checkObjectTag":50,"../utils/obj2xml":67,"@babel/runtime/helpers/asyncToGenerator":71,"@babel/runtime/helpers/interopRequireDefault":72,"@babel/runtime/regenerator":75,"core-js/modules/es.array.map":245,"core-js/modules/es.object.assign":251,"core-js/modules/es.object.keys":253,"regenerator-runtime/runtime":336}],44:[function(e,v,g){var t=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.object.assign");var o=t(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var u=t(e("@babel/runtime/helpers/asyncToGenerator")),l=g;l.putSymlink=function(){var c=(0,u.default)(o.default.mark(function r(i,a,s){var d,p;return o.default.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return s=s||{},s.headers=s.headers||{},a=this._escape(this._objectName(a)),this._convertMetaToHeaders(s.meta,s.headers),s.headers["x-oss-symlink-target"]=a,s.subres=Object.assign({symlink:""},s.subres),s.versionId&&(s.subres.versionId=s.versionId),s.storageClass&&(s.headers["x-oss-storage-class"]=s.storageClass),i=this._objectName(i),d=this._objectRequestParams("PUT",i,s),d.successStatuses=[200],f.next=13,this.request(d);case 13:return p=f.sent,f.abrupt("return",{res:p.res});case 15:case"end":return f.stop()}},r,this)}));function n(r,i,a){return c.apply(this,arguments)}return n}()},{"@babel/runtime/helpers/asyncToGenerator":71,"@babel/runtime/helpers/interopRequireDefault":72,"@babel/runtime/regenerator":75,"core-js/modules/es.object.assign":251,"regenerator-runtime/runtime":336}],45:[function(e,v,g){var t=e("url"),o=e("utility"),u=e("copy-to"),l=e("../../common/signUtils"),c=e("../utils/isIP"),n=c.isIP,r=g;r.signatureUrl=function(a,s){if(n(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");s=s||{},a=this._objectName(a),s.method=s.method||"GET";var d=o.timestamp()+(s.expires||1800),p={bucket:this.options.bucket,object:a},h=this._getResource(p);this.options.stsToken&&(s["security-token"]=this.options.stsToken);var f=l._signatureForURL(this.options.accessKeySecret,s,h,d),m=t.parse(this._getReqUrl(p));return m.query={OSSAccessKeyId:this.options.accessKeyId,Expires:d,Signature:f.Signature},u(f.subResource).to(m.query),m.format()}},{"../../common/signUtils":47,"../utils/isIP":64,"copy-to":101,url:393,utility:395}],46:[function(e,v,g){var t=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.array.for-each"),e("core-js/modules/es.array.iterator"),e("core-js/modules/es.function.name"),e("core-js/modules/es.object.to-string"),e("core-js/modules/es.promise"),e("core-js/modules/es.string.iterator"),e("core-js/modules/web.dom-collections.for-each"),e("core-js/modules/web.dom-collections.iterator");var o=t(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var u=t(e("@babel/runtime/helpers/asyncToGenerator")),l=e("./utils/isArray"),c=l.isArray,n=g;n._parallelNode=function(){var r=(0,u.default)(o.default.mark(function a(s,d,p,h){var f,m,w,k,S,x,y,E;return o.default.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:f=this,m=[],w=[],k=s.length/d,S=s.length%d,x=S===0?k:(s.length-S)/d+1,y=1,E=0;case 8:if(!(E0){k=!0,S<=0&&p(h);return}S+=1,E(M.value,f(y))}x=!1}P()})},n.cancel=function(i){this.options.cancelFlag=!0,c(this.multipartUploadStreams)&&this.multipartUploadStreams.forEach(function(a){if(a.destroyed===!1){var s={name:"cancel",message:"cancel"};a.destroy(s)}}),this.multipartUploadStreams=[],i&&this.abortMultipartUpload(i.name,i.uploadId,i.options)},n.isCancel=function(){return this.options.cancelFlag},n.resetCancelFlag=function(){this.options.cancelFlag=!1},n._stop=function(){this.options.cancelFlag=!0},n._makeCancelEvent=function(){var i={status:0,name:"cancel"};return i},n._makeAbortEvent=function(){var i={status:0,name:"abort",message:"upload task has been abort"};return i}},{"./utils/isArray":59,"@babel/runtime/helpers/asyncToGenerator":71,"@babel/runtime/helpers/interopRequireDefault":72,"@babel/runtime/regenerator":75,"core-js/modules/es.array.for-each":238,"core-js/modules/es.array.iterator":242,"core-js/modules/es.function.name":249,"core-js/modules/es.object.to-string":254,"core-js/modules/es.promise":255,"core-js/modules/es.string.iterator":259,"core-js/modules/web.dom-collections.for-each":291,"core-js/modules/web.dom-collections.iterator":292,"regenerator-runtime/runtime":336}],47:[function(e,v,g){(function(t){e("core-js/modules/es.array.concat"),e("core-js/modules/es.array.for-each"),e("core-js/modules/es.array.index-of"),e("core-js/modules/es.array.join"),e("core-js/modules/es.array.sort"),e("core-js/modules/es.object.keys"),e("core-js/modules/es.object.to-string"),e("core-js/modules/es.regexp.to-string"),e("core-js/modules/es.string.trim"),e("core-js/modules/web.dom-collections.for-each");var o=e("./../../shims/crypto/crypto.js"),u=e("is-type-of"),l=e("./utils/lowercaseKeyHeader"),c=l.lowercaseKeyHeader;g.buildCanonicalizedResource=function(r,i){var a="".concat(r),s="?";if(u.string(i)&&i.trim()!=="")a+=s+i;else if(u.array(i))i.sort(),a+=s+i.join("&");else if(i){var d=function(f,m){return f[0]>m[0]?1:f[0]2&&arguments[2]!==void 0?arguments[2]:"utf-8",s=o.createHmac("sha1",r);return s.update(t.from(i,a)).digest("base64")},g.authorization=function(r,i,a,s){return"OSS ".concat(r,":").concat(this.computeSignature(i,a,s))},g._signatureForURL=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2?arguments[2]:void 0,s=arguments.length>3?arguments[3]:void 0,d=arguments.length>4?arguments[4]:void 0,p={},h=i.subResource,f=h===void 0?{}:h;if(i.process){var m="x-oss-process";f[m]=i.process}if(i.trafficLimit){var w="x-oss-traffic-limit";f[w]=i.trafficLimit}if(i.response&&Object.keys(i.response).forEach(function(y){var E="response-".concat(y.toLowerCase());f[E]=i.response[y]}),Object.keys(i).forEach(function(y){var E=y.toLowerCase(),P=i[y];E.indexOf("x-oss-")===0?p[E]=P:(E.indexOf("content-md5")===0||E.indexOf("content-type")===0)&&(p[y]=P)}),Object.prototype.hasOwnProperty.call(i,"security-token")&&(f["security-token"]=i["security-token"]),Object.prototype.hasOwnProperty.call(i,"callback")){var k={callbackUrl:encodeURI(i.callback.url),callbackBody:i.callback.body};if(i.callback.host&&(k.callbackHost=i.callback.host),i.callback.contentType&&(k.callbackBodyType=i.callback.contentType),f.callback=t.from(JSON.stringify(k)).toString("base64"),i.callback.customValue){var S={};Object.keys(i.callback.customValue).forEach(function(y){S["x:".concat(y)]=i.callback.customValue[y]}),f["callback-var"]=t.from(JSON.stringify(S)).toString("base64")}}var x=this.buildCanonicalString(i.method,a,{headers:p,parameters:f},s.toString());return{Signature:this.computeSignature(r,x,d),subResource:f}}}).call(this,e("buffer").Buffer)},{"./../../shims/crypto/crypto.js":386,"./utils/lowercaseKeyHeader":66,buffer:99,"core-js/modules/es.array.concat":234,"core-js/modules/es.array.for-each":238,"core-js/modules/es.array.index-of":241,"core-js/modules/es.array.join":243,"core-js/modules/es.array.sort":247,"core-js/modules/es.object.keys":253,"core-js/modules/es.object.to-string":254,"core-js/modules/es.regexp.to-string":257,"core-js/modules/es.string.trim":264,"core-js/modules/web.dom-collections.for-each":291,"is-type-of":391}],48:[function(e,v,g){Object.defineProperty(g,"__esModule",{value:!0}),g.checkBucketName=void 0,g.checkBucketName=function(t){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,u=o?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!u.test(t))throw new Error("The bucket must be conform to the specifications")}},{}],49:[function(e,v,g){Object.defineProperty(g,"__esModule",{value:!0}),g.checkConfigValid=void 0;var t={endpoint:o,region:/^[a-zA-Z0-9\-_]+$/};function o(u){return typeof u=="string"?/^[a-zA-Z0-9._:/-]+$/.test(u):u.host?/^[a-zA-Z0-9._:/-]+$/.test(u.host):!1}g.checkConfigValid=function(u,l){if(t[l]){var c=!0;if(t[l]instanceof Function?c=t[l](u):c=t[l].test(u),!c)throw new Error("The ".concat(l," must be conform to the specifications"))}}},{}],50:[function(e,v,g){e("core-js/modules/es.array.concat"),e("core-js/modules/es.array.for-each"),e("core-js/modules/es.object.entries"),e("core-js/modules/web.dom-collections.for-each"),Object.defineProperty(g,"__esModule",{value:!0}),g.checkObjectTag=void 0;var t=e("./checkValid"),o=t.checkValid,u=e("./isObject"),l=u.isObject,c=[{validator:function(a){if(typeof a!="string")throw new Error("the key and value of the tag must be String")}},{pattern:/^[a-zA-Z0-9 +-=._:/]+$/,msg:"tag can contain letters, numbers, spaces, and the following symbols: plus sign (+), hyphen (-), equal sign (=), period (.), underscore (_), colon (:), and forward slash (/)"}],n={key:[].concat(c,[{pattern:/^.{1,128}$/,msg:"tag key can be a maximum of 128 bytes in length"}]),value:[].concat(c,[{pattern:/^.{0,256}$/,msg:"tag value can be a maximum of 256 bytes in length"}])};function r(i){if(!l(i))throw new Error("tag must be Object");var a=Object.entries(i);if(a.length>10)throw new Error("maximum of 10 tags for a object");var s=["key","value"];a.forEach(function(d){d.forEach(function(p,h){o(p,n[s[h]])})})}g.checkObjectTag=r},{"./checkValid":51,"./isObject":65,"core-js/modules/es.array.concat":234,"core-js/modules/es.array.for-each":238,"core-js/modules/es.object.entries":252,"core-js/modules/web.dom-collections.for-each":291}],51:[function(e,v,g){e("core-js/modules/es.array.for-each"),e("core-js/modules/web.dom-collections.for-each"),Object.defineProperty(g,"__esModule",{value:!0}),g.checkValid=void 0;function t(o,u){u.forEach(function(l){if(l.validator)l.validator(o);else if(l.pattern&&!l.pattern.test(o))throw new Error(l.msg)})}g.checkValid=t},{"core-js/modules/es.array.for-each":238,"core-js/modules/web.dom-collections.for-each":291}],52:[function(e,v,g){(function(t){e("core-js/modules/es.array.concat"),e("core-js/modules/es.array.includes"),e("core-js/modules/es.array.index-of"),e("core-js/modules/es.object.assign"),e("core-js/modules/es.string.includes"),Object.defineProperty(g,"__esModule",{value:!0}),g.createRequest=void 0;var o=e("./../../../shims/crypto/crypto.js"),u=e("debug")("ali-oss"),l=e("mime"),c=e("dateformat"),n=e("copy-to"),r=e("path"),i=e("./encoder"),a=i.encoder,s=e("./isIP"),d=s.isIP,p=e("./setRegion"),h=p.setRegion,f=e("../client/getReqUrl"),m=f.getReqUrl;function w(x,y){return x[y]||x[y.toLowerCase()]}function k(x,y){delete x[y],delete x[y.toLowerCase()]}function S(x){var y=new Date;this.options.amendTimeSkewed&&(y=+new Date+this.options.amendTimeSkewed);var E={"x-oss-date":c(y,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'"),"x-oss-user-agent":this.userAgent};this.userAgent.includes("nodejs")&&(E["User-Agent"]=this.userAgent),this.options.isRequestPay&&Object.assign(E,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(E["x-oss-security-token"]=this.options.stsToken),n(x.headers).to(E),w(E,"Content-Type")||(x.mime&&x.mime.indexOf("/")>0?E["Content-Type"]=x.mime:E["Content-Type"]=l.getType(x.mime||r.extname(x.object||""))),w(E,"Content-Type")||k(E,"Content-Type"),x.content&&(x.disabledMD5||(E["Content-MD5"]=o.createHash("md5").update(t.from(x.content,"utf8")).digest("base64")),E["Content-Length"]||(E["Content-Length"]=x.content.length));var P=Object.prototype.hasOwnProperty;for(var M in E)E[M]&&P.call(E,M)&&(E[M]=a(String(E[M]),this.options.headerEncoding));var D=this._getResource(x);if(E.authorization=this.authorization(x.method,D,x.subres,E,this.options.headerEncoding),d(this.options.endpoint.hostname)){var O=this.options,b=O.region,A=O.internal,W=O.secure,K=h(b,A,W);E.host="".concat(x.bucket,".").concat(K.host)}var te=m.bind(this)(x);u("request %s %s, with headers %j, !!stream: %s",x.method,te,E,!!x.stream);var X=x.timeout||this.options.timeout,q={method:x.method,content:x.content,stream:x.stream,headers:E,timeout:X,writeStream:x.writeStream,customResponse:x.customResponse,ctx:x.ctx||this.ctx};return this.agent&&(q.agent=this.agent),this.httpsAgent&&(q.httpsAgent=this.httpsAgent),q.enableProxy=!!this.options.enableProxy,q.proxy=this.options.proxy?this.options.proxy:null,{url:te,params:q}}g.createRequest=S}).call(this,e("buffer").Buffer)},{"../client/getReqUrl":24,"./../../../shims/crypto/crypto.js":386,"./encoder":55,"./isIP":64,"./setRegion":69,buffer:99,"copy-to":101,"core-js/modules/es.array.concat":234,"core-js/modules/es.array.includes":240,"core-js/modules/es.array.index-of":241,"core-js/modules/es.object.assign":251,"core-js/modules/es.string.includes":258,dateformat:294,debug:390,mime:312,path:315}],53:[function(e,v,g){e("core-js/modules/es.array.for-each"),e("core-js/modules/es.array.includes"),e("core-js/modules/es.object.entries"),e("core-js/modules/es.object.keys"),e("core-js/modules/es.regexp.exec"),e("core-js/modules/es.string.replace"),e("core-js/modules/web.dom-collections.for-each"),Object.defineProperty(g,"__esModule",{value:!0}),g.dataFix=void 0;var t=e("./isObject"),o=["true","TRUE","1",1],u=["false","FALSE","0",0];function l(r,i,a){if(!!t.isObject(r)){var s=i.remove,d=s===void 0?[]:s,p=i.rename,h=p===void 0?{}:p,f=i.camel,m=f===void 0?[]:f,w=i.bool,k=w===void 0?[]:w,S=i.lowerFirst,x=S===void 0?!1:S;return d.forEach(function(y){return delete r[y]}),Object.entries(h).forEach(function(y){!r[y[0]]||r[y[1]]||(r[y[1]]=r[y[0]],delete r[y[0]])}),m.forEach(function(y){if(!!r[y]){var E=y.replace(/^(.)/,function(P){return P.toLowerCase()}).replace(/-(\w)/g,function(P,M){return M.toUpperCase()});r[E]||(r[E]=r[y])}}),k.forEach(function(y){r[y]=c(r[y])}),typeof a=="function"&&a(r),n(r,x),l}}g.dataFix=l;function c(r){return r?o.includes(r)?!0:u.includes(r)?!1:r:!1}function n(r,i){i&&Object.keys(r).forEach(function(a){var s=a.replace(/^\w/,function(d){return d.toLowerCase()});typeof r[s]=="undefined"&&(r[s]=r[a],delete r[a])})}},{"./isObject":65,"core-js/modules/es.array.for-each":238,"core-js/modules/es.array.includes":240,"core-js/modules/es.object.entries":252,"core-js/modules/es.object.keys":253,"core-js/modules/es.regexp.exec":256,"core-js/modules/es.string.replace":261,"core-js/modules/web.dom-collections.for-each":291}],54:[function(e,v,g){var t=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.array.for-each"),e("core-js/modules/es.array.slice"),e("core-js/modules/es.object.keys"),e("core-js/modules/web.dom-collections.for-each");var o=t(e("@babel/runtime/helpers/typeof"));Object.defineProperty(g,"__esModule",{value:!0}),g.deepCopyWith=g.deepCopy=void 0;var u=e("./isBuffer");g.deepCopy=function(l){if(l===null||(0,o.default)(l)!=="object")return l;if(u.isBuffer(l))return l.slice();var c=Array.isArray(l)?[]:{};return Object.keys(l).forEach(function(n){c[n]=g.deepCopy(l[n])}),c},g.deepCopyWith=function(l,c){function n(r,i,a){var s=c(r,i,a);if(s!==void 0)return s;if(r===null||(0,o.default)(r)!=="object")return r;if(u.isBuffer(r))return r.slice();var d=Array.isArray(r)?[]:{};return Object.keys(r).forEach(function(p){d[p]=n(r[p],p,r)}),d}return c?n(l,"",null):g.deepCopy(l)}},{"./isBuffer":61,"@babel/runtime/helpers/interopRequireDefault":72,"@babel/runtime/helpers/typeof":73,"core-js/modules/es.array.for-each":238,"core-js/modules/es.array.slice":246,"core-js/modules/es.object.keys":253,"core-js/modules/web.dom-collections.for-each":291}],55:[function(e,v,g){(function(t){e("core-js/modules/es.object.to-string"),e("core-js/modules/es.regexp.to-string"),Object.defineProperty(g,"__esModule",{value:!0}),g.encoder=void 0;function o(u){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"utf-8";return l==="utf-8"?u:t.from(u).toString("latin1")}g.encoder=o}).call(this,e("buffer").Buffer)},{buffer:99,"core-js/modules/es.object.to-string":254,"core-js/modules/es.regexp.to-string":257}],56:[function(e,v,g){e("core-js/modules/es.array.map"),e("core-js/modules/es.regexp.exec"),e("core-js/modules/es.string.replace"),Object.defineProperty(g,"__esModule",{value:!0}),g.formatInventoryConfig=void 0;var t=e("../utils/dataFix"),o=e("../utils/isObject"),u=e("../utils/isArray"),l=e("../utils/formatObjKey");function c(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return i&&o.isObject(r)&&(r=[r]),u.isArray(r)?r=r.map(n):r=n(r),r}g.formatInventoryConfig=c;function n(r){return t.dataFix(r,{bool:["IsEnabled"]},function(i){var a,s;i.prefix=i.Filter.Prefix,delete i.Filter,i.OSSBucketDestination=i.Destination.OSSBucketDestination,i.OSSBucketDestination.rolename=i.OSSBucketDestination.RoleArn.replace(/.*\//,""),delete i.OSSBucketDestination.RoleArn,i.OSSBucketDestination.bucket=i.OSSBucketDestination.Bucket.replace(/.*:::/,""),delete i.OSSBucketDestination.Bucket,delete i.Destination,i.frequency=i.Schedule.Frequency,delete i.Schedule.Frequency,((a=i==null?void 0:i.OptionalFields)===null||a===void 0?void 0:a.Field)&&!u.isArray((s=i.OptionalFields)===null||s===void 0?void 0:s.Field)&&(i.OptionalFields.Field=[i.OptionalFields.Field])}),r=l.formatObjKey(r,"firstLowerCase",{exclude:["OSSBucketDestination","SSE-OSS","SSE-KMS"]}),r}},{"../utils/dataFix":53,"../utils/formatObjKey":57,"../utils/isArray":59,"../utils/isObject":65,"core-js/modules/es.array.map":245,"core-js/modules/es.regexp.exec":256,"core-js/modules/es.string.replace":261}],57:[function(e,v,g){var t=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.array.for-each"),e("core-js/modules/es.array.includes"),e("core-js/modules/es.object.keys"),e("core-js/modules/es.regexp.exec"),e("core-js/modules/es.string.includes"),e("core-js/modules/es.string.replace"),e("core-js/modules/web.dom-collections.for-each");var o=t(e("@babel/runtime/helpers/typeof"));Object.defineProperty(g,"__esModule",{value:!0}),g.formatObjKey=void 0;function u(c,n,r){if(c===null||(0,o.default)(c)!=="object")return c;var i;if(Array.isArray(c)){i=[];for(var a=0;a +`),c&&c.firstUpperCase&&(l=t.formatObjKey(l,"firstUpperCase")),o(l)==="object"?Object.keys(l).forEach(function(r){o(l[r])!=="undefined"&&o(l[r])!=="null"&&(o(l[r])==="string"||o(l[r])==="number"?n+="<".concat(r,">").concat(l[r],""):o(l[r])==="object"?n+="<".concat(r,">").concat(u(l[r]),""):o(l[r])==="array"?n+=l[r].map(function(i){return"<".concat(r,">").concat(u(i),"")}).join(""):n+="<".concat(r,">").concat(l[r].toString(),""))}):n+=l.toString(),n}g.obj2xml=u},{"./formatObjKey":57,"core-js/modules/es.array.concat":234,"core-js/modules/es.array.for-each":238,"core-js/modules/es.array.join":243,"core-js/modules/es.array.map":245,"core-js/modules/es.object.keys":253,"core-js/modules/es.object.to-string":254,"core-js/modules/es.regexp.exec":256,"core-js/modules/es.regexp.to-string":257,"core-js/modules/es.string.replace":261,"core-js/modules/web.dom-collections.for-each":291}],68:[function(e,v,g){e("core-js/modules/es.object.to-string"),e("core-js/modules/es.promise"),Object.defineProperty(g,"__esModule",{value:!0}),g.retry=void 0;function t(o,u){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c=0,n=l.retryDelay,r=n===void 0?500:n,i=l.errorHandler,a=i===void 0?function(){return!0}:i,s=function d(){for(var p=arguments.length,h=new Array(p),f=0;f1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;u.checkConfigValid(c,"region");var i=r?"https://":"http://",a=n?"-internal.aliyuncs.com":".aliyuncs.com",s="vpc100-oss-cn-";return c.substr(0,s.length)===s&&(a=".aliyuncs.com"),o.default.parse(i+c+a)}g.setRegion=l},{"./checkConfigValid":49,url:393}],70:[function(e,v,g){var t=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.array.find"),e("core-js/modules/es.array.for-each"),e("core-js/modules/es.object.assign"),e("core-js/modules/es.object.keys");var o=t(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var u=t(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(g,"__esModule",{value:!0}),g.setSTSToken=void 0;var l=e("./formatObjKey");function c(){return n.apply(this,arguments)}function n(){return n=(0,u.default)(o.default.mark(function i(){var a,s;return o.default.wrap(function(p){for(;;)switch(p.prev=p.next){case 0:if(this.options||(this.options={}),a=new Date,!this.stsTokenFreshTime){p.next=14;break}if(!(+a-this.stsTokenFreshTime>=this.options.refreshSTSTokenInterval)){p.next=12;break}return this.stsTokenFreshTime=a,p.next=7,this.options.refreshSTSToken();case 7:s=p.sent,s=l.formatObjKey(s,"firstLowerCase"),s.securityToken&&(s.stsToken=s.securityToken),r(s),Object.assign(this.options,s);case 12:p.next=15;break;case 14:this.stsTokenFreshTime=a;case 15:return p.abrupt("return",null);case 16:case"end":return p.stop()}},i,this)})),n.apply(this,arguments)}g.setSTSToken=c;function r(i){var a=["accessKeySecret","accessKeyId","stsToken"],s=Object.keys(i);a.forEach(function(d){if(!s.find(function(p){return p===d}))throw Error("refreshSTSToken must return contains ".concat(d))})}},{"./formatObjKey":57,"@babel/runtime/helpers/asyncToGenerator":71,"@babel/runtime/helpers/interopRequireDefault":72,"@babel/runtime/regenerator":75,"core-js/modules/es.array.find":237,"core-js/modules/es.array.for-each":238,"core-js/modules/es.object.assign":251,"core-js/modules/es.object.keys":253,"regenerator-runtime/runtime":336}],71:[function(e,v,g){function t(u,l,c,n,r,i,a){try{var s=u[i](a),d=s.value}catch(p){c(p);return}s.done?l(d):Promise.resolve(d).then(n,r)}function o(u){return function(){var l=this,c=arguments;return new Promise(function(n,r){var i=u.apply(l,c);function a(d){t(i,n,r,a,s,"next",d)}function s(d){t(i,n,r,a,s,"throw",d)}a(void 0)})}}v.exports=o},{}],72:[function(e,v,g){function t(o){return o&&o.__esModule?o:{default:o}}v.exports=t},{}],73:[function(e,v,g){function t(o){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?v.exports=t=function(l){return typeof l}:v.exports=t=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},t(o)}v.exports=t},{}],74:[function(e,v,g){var t=function(o){var u=Object.prototype,l=u.hasOwnProperty,c,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(V,G,U){return Object.defineProperty(V,G,{value:U,enumerable:!0,configurable:!0,writable:!0}),V[G]}try{s({},"")}catch{s=function(G,U,L){return G[U]=L}}function d(V,G,U,L){var B=G&&G.prototype instanceof S?G:S,Y=Object.create(B.prototype),Q=new X(L||[]);return Y._invoke=A(V,U,Q),Y}o.wrap=d;function p(V,G,U){try{return{type:"normal",arg:V.call(G,U)}}catch(L){return{type:"throw",arg:L}}}var h="suspendedStart",f="suspendedYield",m="executing",w="completed",k={};function S(){}function x(){}function y(){}var E={};E[r]=function(){return this};var P=Object.getPrototypeOf,M=P&&P(P(q([])));M&&M!==u&&l.call(M,r)&&(E=M);var D=y.prototype=S.prototype=Object.create(E);x.prototype=D.constructor=y,y.constructor=x,x.displayName=s(y,a,"GeneratorFunction");function O(V){["next","throw","return"].forEach(function(G){s(V,G,function(U){return this._invoke(G,U)})})}o.isGeneratorFunction=function(V){var G=typeof V=="function"&&V.constructor;return G?G===x||(G.displayName||G.name)==="GeneratorFunction":!1},o.mark=function(V){return Object.setPrototypeOf?Object.setPrototypeOf(V,y):(V.__proto__=y,s(V,a,"GeneratorFunction")),V.prototype=Object.create(D),V},o.awrap=function(V){return{__await:V}};function b(V,G){function U(Y,Q,ee,$){var ie=p(V[Y],V,Q);if(ie.type==="throw")$(ie.arg);else{var F=ie.arg,I=F.value;return I&&typeof I=="object"&&l.call(I,"__await")?G.resolve(I.__await).then(function(C){U("next",C,ee,$)},function(C){U("throw",C,ee,$)}):G.resolve(I).then(function(C){F.value=C,ee(F)},function(C){return U("throw",C,ee,$)})}}var L;function B(Y,Q){function ee(){return new G(function($,ie){U(Y,Q,$,ie)})}return L=L?L.then(ee,ee):ee()}this._invoke=B}O(b.prototype),b.prototype[i]=function(){return this},o.AsyncIterator=b,o.async=function(V,G,U,L,B){B===void 0&&(B=Promise);var Y=new b(d(V,G,U,L),B);return o.isGeneratorFunction(G)?Y:Y.next().then(function(Q){return Q.done?Q.value:Y.next()})};function A(V,G,U){var L=h;return function(Y,Q){if(L===m)throw new Error("Generator is already running");if(L===w){if(Y==="throw")throw Q;return re()}for(U.method=Y,U.arg=Q;;){var ee=U.delegate;if(ee){var $=W(ee,U);if($){if($===k)continue;return $}}if(U.method==="next")U.sent=U._sent=U.arg;else if(U.method==="throw"){if(L===h)throw L=w,U.arg;U.dispatchException(U.arg)}else U.method==="return"&&U.abrupt("return",U.arg);L=m;var ie=p(V,G,U);if(ie.type==="normal"){if(L=U.done?w:f,ie.arg===k)continue;return{value:ie.arg,done:U.done}}else ie.type==="throw"&&(L=w,U.method="throw",U.arg=ie.arg)}}}function W(V,G){var U=V.iterator[G.method];if(U===c){if(G.delegate=null,G.method==="throw"){if(V.iterator.return&&(G.method="return",G.arg=c,W(V,G),G.method==="throw"))return k;G.method="throw",G.arg=new TypeError("The iterator does not provide a 'throw' method")}return k}var L=p(U,V.iterator,G.arg);if(L.type==="throw")return G.method="throw",G.arg=L.arg,G.delegate=null,k;var B=L.arg;if(!B)return G.method="throw",G.arg=new TypeError("iterator result is not an object"),G.delegate=null,k;if(B.done)G[V.resultName]=B.value,G.next=V.nextLoc,G.method!=="return"&&(G.method="next",G.arg=c);else return B;return G.delegate=null,k}O(D),s(D,a,"Generator"),D[r]=function(){return this},D.toString=function(){return"[object Generator]"};function K(V){var G={tryLoc:V[0]};1 in V&&(G.catchLoc=V[1]),2 in V&&(G.finallyLoc=V[2],G.afterLoc=V[3]),this.tryEntries.push(G)}function te(V){var G=V.completion||{};G.type="normal",delete G.arg,V.completion=G}function X(V){this.tryEntries=[{tryLoc:"root"}],V.forEach(K,this),this.reset(!0)}o.keys=function(V){var G=[];for(var U in V)G.push(U);return G.reverse(),function L(){for(;G.length;){var B=G.pop();if(B in V)return L.value=B,L.done=!1,L}return L.done=!0,L}};function q(V){if(V){var G=V[r];if(G)return G.call(V);if(typeof V.next=="function")return V;if(!isNaN(V.length)){var U=-1,L=function B(){for(;++U=0;--L){var B=this.tryEntries[L],Y=B.completion;if(B.tryLoc==="root")return U("end");if(B.tryLoc<=this.prev){var Q=l.call(B,"catchLoc"),ee=l.call(B,"finallyLoc");if(Q&&ee){if(this.prev=0;--U){var L=this.tryEntries[U];if(L.tryLoc<=this.prev&&l.call(L,"finallyLoc")&&this.prev=0;--G){var U=this.tryEntries[G];if(U.finallyLoc===V)return this.complete(U.completion,U.afterLoc),te(U),k}},catch:function(V){for(var G=this.tryEntries.length-1;G>=0;--G){var U=this.tryEntries[G];if(U.tryLoc===V){var L=U.completion;if(L.type==="throw"){var B=L.arg;te(U)}return B}}throw new Error("illegal catch attempt")},delegateYield:function(V,G,U){return this.delegate={iterator:q(V),resultName:G,nextLoc:U},this.method==="next"&&(this.arg=c),k}},o}(typeof v=="object"?v.exports:{});try{regeneratorRuntime=t}catch{Function("r","regeneratorRuntime = r")(t)}},{}],75:[function(e,v,g){v.exports=e("regenerator-runtime")},{"regenerator-runtime":74}],76:[function(e,v,g){v.exports=t,v.exports.HttpsAgent=t;function t(){}},{}],77:[function(e,v,g){g.byteLength=i,g.toByteArray=s,g.fromByteArray=h;for(var t=[],o=[],u=typeof Uint8Array!="undefined"?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,n=l.length;c0)throw new Error("Invalid string. Length must be a multiple of 4");var w=f.indexOf("=");w===-1&&(w=m);var k=w===m?0:4-w%4;return[w,k]}function i(f){var m=r(f),w=m[0],k=m[1];return(w+k)*3/4-k}function a(f,m,w){return(m+w)*3/4-w}function s(f){var m,w=r(f),k=w[0],S=w[1],x=new u(a(f,k,S)),y=0,E=S>0?k-4:k,P;for(P=0;P>16&255,x[y++]=m>>8&255,x[y++]=m&255;return S===2&&(m=o[f.charCodeAt(P)]<<2|o[f.charCodeAt(P+1)]>>4,x[y++]=m&255),S===1&&(m=o[f.charCodeAt(P)]<<10|o[f.charCodeAt(P+1)]<<4|o[f.charCodeAt(P+2)]>>2,x[y++]=m>>8&255,x[y++]=m&255),x}function d(f){return t[f>>18&63]+t[f>>12&63]+t[f>>6&63]+t[f&63]}function p(f,m,w){for(var k,S=[],x=m;xE?E:y+x));return k===1?(m=f[w-1],S.push(t[m>>2]+t[m<<4&63]+"==")):k===2&&(m=(f[w-2]<<8)+f[w-1],S.push(t[m>>10]+t[m>>4&63]+t[m<<2&63]+"=")),S.join("")}},{}],78:[function(e,v,g){/*! + * Bowser - a browser detector + * https://github.com/ded/bowser + * MIT License | (c) Dustin Diaz 2015 + */(function(t,o,u){typeof v!="undefined"&&v.exports?v.exports=u():t[o]=u()})(this,"bowser",function(){var t=!0;function o(a){function s(G){var U=a.match(G);return U&&U.length>1&&U[1]||""}function d(G){var U=a.match(G);return U&&U.length>1&&U[2]||""}var p=s(/(ipod|iphone|ipad)/i).toLowerCase(),h=/like android/i.test(a),f=!h&&/android/i.test(a),m=/nexus\s*[0-6]\s*/i.test(a),w=!m&&/nexus\s*[0-9]+/i.test(a),k=/CrOS/.test(a),S=/silk/i.test(a),x=/sailfish/i.test(a),y=/tizen/i.test(a),E=/(web|hpw)(o|0)s/i.test(a),P=/windows phone/i.test(a);/SamsungBrowser/i.test(a);var M=!P&&/windows/i.test(a),D=!p&&!S&&/macintosh/i.test(a),O=!f&&!x&&!y&&!E&&/linux/i.test(a),b=d(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),A=s(/version\/(\d+(\.\d+)?)/i),W=/tablet/i.test(a)&&!/tablet pc/i.test(a),K=!W&&/[^-]mobi/i.test(a),te=/xbox/i.test(a),X;/opera/i.test(a)?X={name:"Opera",opera:t,version:A||s(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(a)?X={name:"Opera",opera:t,version:s(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||A}:/SamsungBrowser/i.test(a)?X={name:"Samsung Internet for Android",samsungBrowser:t,version:A||s(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(a)?X={name:"NAVER Whale browser",whale:t,version:s(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(a)?X={name:"MZ Browser",mzbrowser:t,version:s(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(a)?X={name:"Opera Coast",coast:t,version:A||s(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(a)?X={name:"Focus",focus:t,version:s(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(a)?X={name:"Yandex Browser",yandexbrowser:t,version:A||s(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(a)?X={name:"UC Browser",ucbrowser:t,version:s(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(a)?X={name:"Maxthon",maxthon:t,version:s(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(a)?X={name:"Epiphany",epiphany:t,version:s(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(a)?X={name:"Puffin",puffin:t,version:s(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(a)?X={name:"Sleipnir",sleipnir:t,version:s(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(a)?X={name:"K-Meleon",kMeleon:t,version:s(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:P?(X={name:"Windows Phone",osname:"Windows Phone",windowsphone:t},b?(X.msedge=t,X.version=b):(X.msie=t,X.version=s(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(a)?X={name:"Internet Explorer",msie:t,version:s(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:k?X={name:"Chrome",osname:"Chrome OS",chromeos:t,chromeBook:t,chrome:t,version:s(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(a)?X={name:"Microsoft Edge",msedge:t,version:b}:/vivaldi/i.test(a)?X={name:"Vivaldi",vivaldi:t,version:s(/vivaldi\/(\d+(\.\d+)?)/i)||A}:x?X={name:"Sailfish",osname:"Sailfish OS",sailfish:t,version:s(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(a)?X={name:"SeaMonkey",seamonkey:t,version:s(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(a)?(X={name:"Firefox",firefox:t,version:s(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(a)&&(X.firefoxos=t,X.osname="Firefox OS")):S?X={name:"Amazon Silk",silk:t,version:s(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(a)?X={name:"PhantomJS",phantom:t,version:s(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(a)?X={name:"SlimerJS",slimer:t,version:s(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(a)||/rim\stablet/i.test(a)?X={name:"BlackBerry",osname:"BlackBerry OS",blackberry:t,version:A||s(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:E?(X={name:"WebOS",osname:"WebOS",webos:t,version:A||s(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(a)&&(X.touchpad=t)):/bada/i.test(a)?X={name:"Bada",osname:"Bada",bada:t,version:s(/dolfin\/(\d+(\.\d+)?)/i)}:y?X={name:"Tizen",osname:"Tizen",tizen:t,version:s(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||A}:/qupzilla/i.test(a)?X={name:"QupZilla",qupzilla:t,version:s(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||A}:/chromium/i.test(a)?X={name:"Chromium",chromium:t,version:s(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||A}:/chrome|crios|crmo/i.test(a)?X={name:"Chrome",chrome:t,version:s(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:f?X={name:"Android",version:A}:/safari|applewebkit/i.test(a)?(X={name:"Safari",safari:t},A&&(X.version=A)):p?(X={name:p=="iphone"?"iPhone":p=="ipad"?"iPad":"iPod"},A&&(X.version=A)):/googlebot/i.test(a)?X={name:"Googlebot",googlebot:t,version:s(/googlebot\/(\d+(\.\d+))/i)||A}:X={name:s(/^(.*)\/(.*) /),version:d(/^(.*)\/(.*) /)},!X.msedge&&/(apple)?webkit/i.test(a)?(/(apple)?webkit\/537\.36/i.test(a)?(X.name=X.name||"Blink",X.blink=t):(X.name=X.name||"Webkit",X.webkit=t),!X.version&&A&&(X.version=A)):!X.opera&&/gecko\//i.test(a)&&(X.name=X.name||"Gecko",X.gecko=t,X.version=X.version||s(/gecko\/(\d+(\.\d+)?)/i)),!X.windowsphone&&(f||X.silk)?(X.android=t,X.osname="Android"):!X.windowsphone&&p?(X[p]=t,X.ios=t,X.osname="iOS"):D?(X.mac=t,X.osname="macOS"):te?(X.xbox=t,X.osname="Xbox"):M?(X.windows=t,X.osname="Windows"):O&&(X.linux=t,X.osname="Linux");function q(G){switch(G){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}var re="";X.windows?re=q(s(/Windows ((NT|XP)( \d\d?.\d)?)/i)):X.windowsphone?re=s(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):X.mac?(re=s(/Mac OS X (\d+([_\.\s]\d+)*)/i),re=re.replace(/[_\s]/g,".")):p?(re=s(/os (\d+([_\s]\d+)*) like mac os x/i),re=re.replace(/[_\s]/g,".")):f?re=s(/android[ \/-](\d+(\.\d+)*)/i):X.webos?re=s(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):X.blackberry?re=s(/rim\stablet\sos\s(\d+(\.\d+)*)/i):X.bada?re=s(/bada\/(\d+(\.\d+)*)/i):X.tizen&&(re=s(/tizen[\/\s](\d+(\.\d+)*)/i)),re&&(X.osversion=re);var V=!X.windows&&re.split(".")[0];return W||w||p=="ipad"||f&&(V==3||V>=4&&!K)||X.silk?X.tablet=t:(K||p=="iphone"||p=="ipod"||f||m||X.blackberry||X.webos||X.bada)&&(X.mobile=t),X.msedge||X.msie&&X.version>=10||X.yandexbrowser&&X.version>=15||X.vivaldi&&X.version>=1||X.chrome&&X.version>=20||X.samsungBrowser&&X.version>=4||X.whale&&n([X.version,"1.0"])===1||X.mzbrowser&&n([X.version,"6.0"])===1||X.focus&&n([X.version,"1.0"])===1||X.firefox&&X.version>=20||X.safari&&X.version>=6||X.opera&&X.version>=10||X.ios&&X.osversion&&X.osversion.split(".")[0]>=6||X.blackberry&&X.version>=10.1||X.chromium&&X.version>=20?X.a=t:X.msie&&X.version<10||X.chrome&&X.version<20||X.firefox&&X.version<20||X.safari&&X.version<6||X.opera&&X.version<10||X.ios&&X.osversion&&X.osversion.split(".")[0]<6||X.chromium&&X.version<20?X.c=t:X.x=t,X}var u=o(typeof navigator!="undefined"&&navigator.userAgent||"");u.test=function(a){for(var s=0;s=0;){if(d[0][s]>d[1][s])return 1;if(d[0][s]===d[1][s]){if(s===0)return 0}else return-1}}function r(a,s,d){var p=u;typeof s=="string"&&(d=s,s=void 0),s===void 0&&(s=!1),d&&(p=o(d));var h=""+p.version;for(var f in a)if(a.hasOwnProperty(f)&&p[f]){if(typeof a[f]!="string")throw new Error("Browser version in the minVersion map should be a string: "+f+": "+String(a));return n([h,a[f]])<0}return s}function i(a,s,d){return!r(a,s,d)}return u.isUnsupportedBrowser=r,u.compareVersions=n,u.check=i,u._detect=o,u.detect=o,u})},{}],79:[function(e,v,g){},{}],80:[function(e,v,g){(function(t){var o=e("./lib/request"),u=e("./lib/response"),l=e("xtend"),c=e("builtin-status-codes"),n=e("url"),r=g;r.request=function(i,a){typeof i=="string"?i=n.parse(i):i=l(i);var s=t.location.protocol.search(/^https?:$/)===-1?"http:":"",d=i.protocol||s,p=i.hostname||i.host,h=i.port,f=i.path||"/";p&&p.indexOf(":")!==-1&&(p="["+p+"]"),i.url=(p?d+"//"+p:"")+(h?":"+h:"")+f,i.method=(i.method||"GET").toUpperCase(),i.headers=i.headers||{};var m=new o(i);return a&&m.on("response",a),m},r.get=function(a,s){var d=r.request(a,s);return d.end(),d},r.ClientRequest=o,r.IncomingMessage=u.IncomingMessage,r.Agent=function(){},r.Agent.defaultMaxSockets=4,r.globalAgent=new r.Agent,r.STATUS_CODES=c,r.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,typeof commonjsGlobal!="undefined"?commonjsGlobal:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./lib/request":82,"./lib/response":83,"builtin-status-codes":100,url:393,xtend:385}],81:[function(e,v,g){(function(t){g.fetch=c(t.fetch)&&c(t.ReadableStream),g.writableStream=c(t.WritableStream),g.abortController=c(t.AbortController);var o;function u(){if(o!==void 0)return o;if(t.XMLHttpRequest){o=new t.XMLHttpRequest;try{o.open("GET",t.XDomainRequest?"/":"https://example.com")}catch{o=null}}else o=null;return o}function l(n){var r=u();if(!r)return!1;try{return r.responseType=n,r.responseType===n}catch{}return!1}g.arraybuffer=g.fetch||l("arraybuffer"),g.msstream=!g.fetch&&l("ms-stream"),g.mozchunkedarraybuffer=!g.fetch&&l("moz-chunked-arraybuffer"),g.overrideMimeType=g.fetch||(u()?c(u().overrideMimeType):!1);function c(n){return typeof n=="function"}o=null}).call(this,typeof commonjsGlobal!="undefined"?commonjsGlobal:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],82:[function(e,v,g){(function(t,o,u){var l=e("./capability"),c=e("inherits"),n=e("./response"),r=e("readable-stream"),i=n.IncomingMessage,a=n.readyStates;function s(f,m){return l.fetch&&m?"fetch":l.mozchunkedarraybuffer?"moz-chunked-arraybuffer":l.msstream?"ms-stream":l.arraybuffer&&f?"arraybuffer":"text"}var d=v.exports=function(f){var m=this;r.Writable.call(m),m._opts=f,m._body=[],m._headers={},f.auth&&m.setHeader("Authorization","Basic "+u.from(f.auth).toString("base64")),Object.keys(f.headers).forEach(function(S){m.setHeader(S,f.headers[S])});var w,k=!0;if(f.mode==="disable-fetch"||"requestTimeout"in f&&!l.abortController)k=!1,w=!0;else if(f.mode==="prefer-streaming")w=!1;else if(f.mode==="allow-wrong-content-type")w=!l.overrideMimeType;else if(!f.mode||f.mode==="default"||f.mode==="prefer-fast")w=!0;else throw new Error("Invalid value for opts.mode");m._mode=s(w,k),m._fetchTimer=null,m.on("finish",function(){m._onFinish()})};c(d,r.Writable),d.prototype.setHeader=function(f,m){var w=this,k=f.toLowerCase();h.indexOf(k)===-1&&(w._headers[k]={name:f,value:m})},d.prototype.getHeader=function(f){var m=this._headers[f.toLowerCase()];return m?m.value:null},d.prototype.removeHeader=function(f){var m=this;delete m._headers[f.toLowerCase()]},d.prototype._onFinish=function(){var f=this;if(!f._destroyed){var m=f._opts,w=f._headers,k=null;m.method!=="GET"&&m.method!=="HEAD"&&(k=new Blob(f._body,{type:(w["content-type"]||{}).value||""}));var S=[];if(Object.keys(w).forEach(function(P){var M=w[P].name,D=w[P].value;Array.isArray(D)?D.forEach(function(O){S.push([M,O])}):S.push([M,D])}),f._mode==="fetch"){var x=null;if(l.abortController){var y=new AbortController;x=y.signal,f._fetchAbortController=y,"requestTimeout"in m&&m.requestTimeout!==0&&(f._fetchTimer=o.setTimeout(function(){f.emit("requestTimeout"),f._fetchAbortController&&f._fetchAbortController.abort()},m.requestTimeout))}o.fetch(f._opts.url,{method:f._opts.method,headers:S,body:k||void 0,mode:"cors",credentials:m.withCredentials?"include":"same-origin",signal:x}).then(function(P){f._fetchResponse=P,f._connect()},function(P){o.clearTimeout(f._fetchTimer),f._destroyed||f.emit("error",P)})}else{var E=f._xhr=new o.XMLHttpRequest;try{E.open(f._opts.method,f._opts.url,!0)}catch(P){t.nextTick(function(){f.emit("error",P)});return}"responseType"in E&&(E.responseType=f._mode),"withCredentials"in E&&(E.withCredentials=!!m.withCredentials),f._mode==="text"&&"overrideMimeType"in E&&E.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in m&&(E.timeout=m.requestTimeout,E.ontimeout=function(){f.emit("requestTimeout")}),S.forEach(function(P){E.setRequestHeader(P[0],P[1])}),f._response=null,E.onreadystatechange=function(){switch(E.readyState){case a.LOADING:case a.DONE:f._onXHRProgress();break}},f._mode==="moz-chunked-arraybuffer"&&(E.onprogress=function(){f._onXHRProgress()}),E.onerror=function(){f._destroyed||f.emit("error",new Error("XHR error"))};try{E.send(k)}catch(P){t.nextTick(function(){f.emit("error",P)});return}}}};function p(f){try{var m=f.status;return m!==null&&m!==0}catch{return!1}}d.prototype._onXHRProgress=function(){var f=this;!p(f._xhr)||f._destroyed||(f._response||f._connect(),f._response._onXHRProgress())},d.prototype._connect=function(){var f=this;f._destroyed||(f._response=new i(f._xhr,f._fetchResponse,f._mode,f._fetchTimer),f._response.on("error",function(m){f.emit("error",m)}),f.emit("response",f._response))},d.prototype._write=function(f,m,w){var k=this;k._body.push(f),w()},d.prototype.abort=d.prototype.destroy=function(){var f=this;f._destroyed=!0,o.clearTimeout(f._fetchTimer),f._response&&(f._response._destroyed=!0),f._xhr?f._xhr.abort():f._fetchAbortController&&f._fetchAbortController.abort()},d.prototype.end=function(f,m,w){var k=this;typeof f=="function"&&(w=f,f=void 0),r.Writable.prototype.end.call(k,f,m,w)},d.prototype.flushHeaders=function(){},d.prototype.setTimeout=function(){},d.prototype.setNoDelay=function(){},d.prototype.setSocketKeepAlive=function(){};var h=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]}).call(this,e("_process"),typeof commonjsGlobal!="undefined"?commonjsGlobal:typeof self!="undefined"?self:typeof window!="undefined"?window:{},e("buffer").Buffer)},{"./capability":81,"./response":83,_process:392,buffer:99,inherits:306,"readable-stream":98}],83:[function(e,v,g){(function(t,o,u){var l=e("./capability"),c=e("inherits"),n=e("readable-stream"),r=g.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},i=g.IncomingMessage=function(a,s,d,p){var h=this;if(n.Readable.call(h),h._mode=d,h.headers={},h.rawHeaders=[],h.trailers={},h.rawTrailers=[],h.on("end",function(){t.nextTick(function(){h.emit("close")})}),d==="fetch"){let x=function(){m.read().then(function(y){if(!h._destroyed){if(y.done){o.clearTimeout(p),h.push(null);return}h.push(u.from(y.value)),x()}}).catch(function(y){o.clearTimeout(p),h._destroyed||h.emit("error",y)})};if(h._fetchResponse=s,h.url=s.url,h.statusCode=s.status,h.statusMessage=s.statusText,s.headers.forEach(function(y,E){h.headers[E.toLowerCase()]=y,h.rawHeaders.push(E,y)}),l.writableStream){var f=new WritableStream({write:function(y){return new Promise(function(E,P){h._destroyed?P():h.push(u.from(y))?E():h._resumeFetch=E})},close:function(){o.clearTimeout(p),h._destroyed||h.push(null)},abort:function(y){h._destroyed||h.emit("error",y)}});try{s.body.pipeTo(f).catch(function(y){o.clearTimeout(p),h._destroyed||h.emit("error",y)});return}catch{}}var m=s.body.getReader();x()}else{h._xhr=a,h._pos=0,h.url=a.responseURL,h.statusCode=a.status,h.statusMessage=a.statusText;var w=a.getAllResponseHeaders().split(/\r?\n/);if(w.forEach(function(x){var y=x.match(/^([^:]+):\s*(.*)/);if(y){var E=y[1].toLowerCase();E==="set-cookie"?(h.headers[E]===void 0&&(h.headers[E]=[]),h.headers[E].push(y[2])):h.headers[E]!==void 0?h.headers[E]+=", "+y[2]:h.headers[E]=y[2],h.rawHeaders.push(y[1],y[2])}}),h._charset="x-user-defined",!l.overrideMimeType){var k=h.rawHeaders["mime-type"];if(k){var S=k.match(/;\s*charset=([^;])(;|$)/);S&&(h._charset=S[1].toLowerCase())}h._charset||(h._charset="utf-8")}}};c(i,n.Readable),i.prototype._read=function(){var a=this,s=a._resumeFetch;s&&(a._resumeFetch=null,s())},i.prototype._onXHRProgress=function(){var a=this,s=a._xhr,d=null;switch(a._mode){case"text":if(d=s.responseText,d.length>a._pos){var p=d.substr(a._pos);if(a._charset==="x-user-defined"){for(var h=u.alloc(p.length),f=0;fa._pos&&(a.push(u.from(new Uint8Array(m.result.slice(a._pos)))),a._pos=m.result.byteLength)},m.onload=function(){a.push(null)},m.readAsArrayBuffer(d);break}a._xhr.readyState===r.DONE&&a._mode!=="ms-stream"&&a.push(null)}}).call(this,e("_process"),typeof commonjsGlobal!="undefined"?commonjsGlobal:typeof self!="undefined"?self:typeof window!="undefined"?window:{},e("buffer").Buffer)},{"./capability":81,_process:392,buffer:99,inherits:306,"readable-stream":98}],84:[function(e,v,g){function t(i,a){i.prototype=Object.create(a.prototype),i.prototype.constructor=i,i.__proto__=a}var o={};function u(i,a,s){s||(s=Error);function d(h,f,m){return typeof a=="string"?a:a(h,f,m)}var p=function(h){t(f,h);function f(m,w,k){return h.call(this,d(m,w,k))||this}return f}(s);p.prototype.name=s.name,p.prototype.code=i,o[i]=p}function l(i,a){if(Array.isArray(i)){var s=i.length;return i=i.map(function(d){return String(d)}),s>2?"one of ".concat(a," ").concat(i.slice(0,s-1).join(", "),", or ")+i[s-1]:s===2?"one of ".concat(a," ").concat(i[0]," or ").concat(i[1]):"of ".concat(a," ").concat(i[0])}else return"of ".concat(a," ").concat(String(i))}function c(i,a,s){return i.substr(!s||s<0?0:+s,a.length)===a}function n(i,a,s){return(s===void 0||s>i.length)&&(s=i.length),i.substring(s-a.length,s)===a}function r(i,a,s){return typeof s!="number"&&(s=0),s+a.length>i.length?!1:i.indexOf(a,s)!==-1}u("ERR_INVALID_OPT_VALUE",function(i,a){return'The value "'+a+'" is invalid for option "'+i+'"'},TypeError),u("ERR_INVALID_ARG_TYPE",function(i,a,s){var d;typeof a=="string"&&c(a,"not ")?(d="must not be",a=a.replace(/^not /,"")):d="must be";var p;if(n(i," argument"))p="The ".concat(i," ").concat(d," ").concat(l(a,"type"));else{var h=r(i,".")?"property":"argument";p='The "'.concat(i,'" ').concat(h," ").concat(d," ").concat(l(a,"type"))}return p+=". Received type ".concat(typeof s),p},TypeError),u("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),u("ERR_METHOD_NOT_IMPLEMENTED",function(i){return"The "+i+" method is not implemented"}),u("ERR_STREAM_PREMATURE_CLOSE","Premature close"),u("ERR_STREAM_DESTROYED",function(i){return"Cannot call "+i+" after a stream was destroyed"}),u("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),u("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),u("ERR_STREAM_WRITE_AFTER_END","write after end"),u("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),u("ERR_UNKNOWN_ENCODING",function(i){return"Unknown encoding: "+i},TypeError),u("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),v.exports.codes=o},{}],85:[function(e,v,g){(function(t){var o=Object.keys||function(d){var p=[];for(var h in d)p.push(h);return p};v.exports=i;var u=e("./_stream_readable"),l=e("./_stream_writable");e("inherits")(i,u);for(var c=o(l.prototype),n=0;n0)if(typeof T!="string"&&!J.objectMode&&Object.getPrototypeOf(T)!==n.prototype&&(T=i(T)),j)J.endEmitted?D(N,new y):te(N,J,T,!0);else if(J.ended)D(N,new S);else{if(J.destroyed)return!1;J.reading=!1,J.decoder&&!_?(T=J.decoder.write(T),J.objectMode||T.length!==0?te(N,J,T,!1):B(N,J)):te(N,J,T,!1)}else j||(J.reading=!1,B(N,J))}return!J.ended&&(J.length=q?N=q:(N--,N|=N>>>1,N|=N>>>2,N|=N>>>4,N|=N>>>8,N|=N>>>16,N++),N}function V(N,T){return N<=0||T.length===0&&T.ended?0:T.objectMode?1:N!==N?T.flowing&&T.length?T.buffer.head.data.length:T.length:(N>T.highWaterMark&&(T.highWaterMark=re(N)),N<=T.length?N:T.ended?T.length:(T.needReadable=!0,0))}W.prototype.read=function(N){d("read",N),N=parseInt(N,10);var T=this._readableState,_=N;if(N!==0&&(T.emittedReadable=!1),N===0&&T.needReadable&&((T.highWaterMark!==0?T.length>=T.highWaterMark:T.length>0)||T.ended))return d("read: emitReadable",T.length,T.ended),T.length===0&&T.ended?R(this):U(this),null;if(N=V(N,T),N===0&&T.ended)return T.length===0&&R(this),null;var j=T.needReadable;d("need readable",j),(T.length===0||T.length-N0?H=C(N,T):H=null,H===null?(T.needReadable=T.length<=T.highWaterMark,N=0):(T.length-=N,T.awaitDrain=0),T.length===0&&(T.ended||(T.needReadable=!0),_!==N&&T.ended&&R(this)),H!==null&&this.emit("data",H),H};function G(N,T){if(d("onEofChunk"),!T.ended){if(T.decoder){var _=T.decoder.end();_&&_.length&&(T.buffer.push(_),T.length+=T.objectMode?1:_.length)}T.ended=!0,T.sync?U(N):(T.needReadable=!1,T.emittedReadable||(T.emittedReadable=!0,L(N)))}}function U(N){var T=N._readableState;d("emitReadable",T.needReadable,T.emittedReadable),T.needReadable=!1,T.emittedReadable||(d("emitReadable",T.flowing),T.emittedReadable=!0,t.nextTick(L,N))}function L(N){var T=N._readableState;d("emitReadable_",T.destroyed,T.length,T.ended),!T.destroyed&&(T.length||T.ended)&&(N.emit("readable"),T.emittedReadable=!1),T.needReadable=!T.flowing&&!T.ended&&T.length<=T.highWaterMark,I(N)}function B(N,T){T.readingMore||(T.readingMore=!0,t.nextTick(Y,N,T))}function Y(N,T){for(;!T.reading&&!T.ended&&(T.length1&&z(j.pipes,N)!==-1)&&!ge&&(d("false write response, pause",j.awaitDrain),j.awaitDrain++),_.pause())}function ye(he){d("onerror",he),le(),N.removeListener("error",ye),l(N,"error")===0&&D(N,he)}b(N,"error",ye);function se(){N.removeListener("finish",ne),le()}N.once("close",se);function ne(){d("onfinish"),N.removeListener("close",se),le()}N.once("finish",ne);function le(){d("unpipe"),_.unpipe(N)}return N.emit("pipe",_),j.flowing||(d("pipe resume"),_.resume()),N};function Q(N){return function(){var _=N._readableState;d("pipeOnDrain",_.awaitDrain),_.awaitDrain&&_.awaitDrain--,_.awaitDrain===0&&l(N,"data")&&(_.flowing=!0,I(N))}}W.prototype.unpipe=function(N){var T=this._readableState,_={hasUnpiped:!1};if(T.pipesCount===0)return this;if(T.pipesCount===1)return N&&N!==T.pipes?this:(N||(N=T.pipes),T.pipes=null,T.pipesCount=0,T.flowing=!1,N&&N.emit("unpipe",this,_),this);if(!N){var j=T.pipes,H=T.pipesCount;T.pipes=null,T.pipesCount=0,T.flowing=!1;for(var J=0;J0,j.flowing!==!1&&this.resume()):N==="readable"&&!j.endEmitted&&!j.readableListening&&(j.readableListening=j.needReadable=!0,j.flowing=!1,j.emittedReadable=!1,d("on readable",j.length,j.reading),j.length?U(this):j.reading||t.nextTick($,this)),_},W.prototype.addListener=W.prototype.on,W.prototype.removeListener=function(N,T){var _=c.prototype.removeListener.call(this,N,T);return N==="readable"&&t.nextTick(ee,this),_},W.prototype.removeAllListeners=function(N){var T=c.prototype.removeAllListeners.apply(this,arguments);return(N==="readable"||N===void 0)&&t.nextTick(ee,this),T};function ee(N){var T=N._readableState;T.readableListening=N.listenerCount("readable")>0,T.resumeScheduled&&!T.paused?T.flowing=!0:N.listenerCount("data")>0&&N.resume()}function $(N){d("readable nexttick read 0"),N.read(0)}W.prototype.resume=function(){var N=this._readableState;return N.flowing||(d("resume"),N.flowing=!N.readableListening,ie(this,N)),N.paused=!1,this};function ie(N,T){T.resumeScheduled||(T.resumeScheduled=!0,t.nextTick(F,N,T))}function F(N,T){d("resume",T.reading),T.reading||N.read(0),T.resumeScheduled=!1,N.emit("resume"),I(N),T.flowing&&!T.reading&&N.read(0)}W.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function I(N){var T=N._readableState;for(d("flow",T.flowing);T.flowing&&N.read()!==null;);}W.prototype.wrap=function(N){var T=this,_=this._readableState,j=!1;N.on("end",function(){if(d("wrapped end"),_.decoder&&!_.ended){var ae=_.decoder.end();ae&&ae.length&&T.push(ae)}T.push(null)}),N.on("data",function(ae){if(d("wrapped data"),_.decoder&&(ae=_.decoder.write(ae)),!(_.objectMode&&ae==null)&&!(!_.objectMode&&(!ae||!ae.length))){var oe=T.push(ae);oe||(j=!0,N.pause())}});for(var H in N)this[H]===void 0&&typeof N[H]=="function"&&(this[H]=function(oe){return function(){return N[oe].apply(N,arguments)}}(H));for(var J=0;J=T.length?(T.decoder?_=T.buffer.join(""):T.buffer.length===1?_=T.buffer.first():_=T.buffer.concat(T.length),T.buffer.clear()):_=T.buffer.consume(N,T.decoder),_}function R(N){var T=N._readableState;d("endReadable",T.endEmitted),T.endEmitted||(T.ended=!0,t.nextTick(Z,T,N))}function Z(N,T){if(d("endReadableNT",N.endEmitted,N.length),!N.endEmitted&&N.length===0&&(N.endEmitted=!0,T.readable=!1,T.emit("end"),N.autoDestroy)){var _=T._writableState;(!_||_.autoDestroy&&_.finished)&&T.destroy()}}typeof Symbol=="function"&&(W.from=function(N,T){return M===void 0&&(M=e("./internal/streams/from")),M(W,N,T)});function z(N,T){for(var _=0,j=N.length;_-1))throw new P(C);return this._writableState.defaultEncoding=C,this},Object.defineProperty(A.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function te(I,C,R){return!I.objectMode&&I.decodeStrings!==!1&&typeof C=="string"&&(C=r.from(C,R)),C}Object.defineProperty(A.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function X(I,C,R,Z,z,N){if(!R){var T=te(C,Z,z);Z!==T&&(R=!0,z="buffer",Z=T)}var _=C.objectMode?1:Z.length;C.length+=_;var j=C.length0?this.tail.next=w:this.head=w,this.tail=w,++this.length}},{key:"unshift",value:function(m){var w={data:m,next:this.head};this.length===0&&(this.tail=w),this.head=w,++this.length}},{key:"shift",value:function(){if(this.length!==0){var m=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,m}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(m){if(this.length===0)return"";for(var w=this.head,k=""+w.data;w=w.next;)k+=m+w.data;return k}},{key:"concat",value:function(m){if(this.length===0)return i.alloc(0);for(var w=i.allocUnsafe(m>>>0),k=this.head,S=0;k;)p(k.data,w,S),S+=k.data.length,k=k.next;return w}},{key:"consume",value:function(m,w){var k;return mx.length?x.length:m;if(y===x.length?S+=x:S+=x.slice(0,m),m-=y,m===0){y===x.length?(++k,w.next?this.head=w.next:this.head=this.tail=null):(this.head=w,w.data=x.slice(y));break}++k}return this.length-=k,S}},{key:"_getBuffer",value:function(m){var w=i.allocUnsafe(m),k=this.head,S=1;for(k.data.copy(w),m-=k.data.length;k=k.next;){var x=k.data,y=m>x.length?x.length:m;if(x.copy(w,w.length-m,0,y),m-=y,m===0){y===x.length?(++S,k.next?this.head=k.next:this.head=this.tail=null):(this.head=k,k.data=x.slice(y));break}++S}return this.length-=S,w}},{key:d,value:function(m,w){return s(this,o({},w,{depth:0,customInspect:!1}))}}]),h}()},{buffer:99,util:79}],92:[function(e,v,g){(function(t){function o(i,a){var s=this,d=this._readableState&&this._readableState.destroyed,p=this._writableState&&this._writableState.destroyed;return d||p?(a?a(i):i&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,t.nextTick(n,this,i)):t.nextTick(n,this,i)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(i||null,function(h){!a&&h?s._writableState?s._writableState.errorEmitted?t.nextTick(l,s):(s._writableState.errorEmitted=!0,t.nextTick(u,s,h)):t.nextTick(u,s,h):a?(t.nextTick(l,s),a(h)):t.nextTick(l,s)}),this)}function u(i,a){n(i,a),l(i)}function l(i){i._writableState&&!i._writableState.emitClose||i._readableState&&!i._readableState.emitClose||i.emit("close")}function c(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function n(i,a){i.emit("error",a)}function r(i,a){var s=i._readableState,d=i._writableState;s&&s.autoDestroy||d&&d.autoDestroy?i.destroy(a):i.emit("error",a)}v.exports={destroy:o,undestroy:c,errorOrDestroy:r}}).call(this,e("_process"))},{_process:392}],93:[function(e,v,g){var t=e("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function o(n){var r=!1;return function(){if(!r){r=!0;for(var i=arguments.length,a=new Array(i),s=0;s0;return i(x,E,P,function(M){k||(k=M),M&&S.forEach(a),!E&&(S.forEach(a),w(k))})});return f.reduce(s)}v.exports=p},{"../../../errors":84,"./end-of-stream":93}],96:[function(e,v,g){var t=e("../../../errors").codes.ERR_INVALID_OPT_VALUE;function o(l,c,n){return l.highWaterMark!=null?l.highWaterMark:c?l[n]:null}function u(l,c,n,r){var i=o(c,r,n);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var a=r?n:"highWaterMark";throw new t(a,i)}return Math.floor(i)}return l.objectMode?16:16*1024}v.exports={getHighWaterMark:u}},{"../../../errors":84}],97:[function(e,v,g){v.exports=e("events").EventEmitter},{events:296}],98:[function(e,v,g){g=v.exports=e("./lib/_stream_readable.js"),g.Stream=g,g.Readable=g,g.Writable=e("./lib/_stream_writable.js"),g.Duplex=e("./lib/_stream_duplex.js"),g.Transform=e("./lib/_stream_transform.js"),g.PassThrough=e("./lib/_stream_passthrough.js"),g.finished=e("./lib/internal/streams/end-of-stream.js"),g.pipeline=e("./lib/internal/streams/pipeline.js")},{"./lib/_stream_duplex.js":85,"./lib/_stream_passthrough.js":86,"./lib/_stream_readable.js":87,"./lib/_stream_transform.js":88,"./lib/_stream_writable.js":89,"./lib/internal/streams/end-of-stream.js":93,"./lib/internal/streams/pipeline.js":95}],99:[function(e,v,g){(function(t){var o=e("base64-js"),u=e("ieee754");g.Buffer=t,g.SlowBuffer=w,g.INSPECT_MAX_BYTES=50;var l=2147483647;g.kMaxLength=l,t.TYPED_ARRAY_SUPPORT=c(),!t.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function c(){try{var T=new Uint8Array(1);return T.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},T.foo()===42}catch{return!1}}Object.defineProperty(t.prototype,"parent",{enumerable:!0,get:function(){if(!!t.isBuffer(this))return this.buffer}}),Object.defineProperty(t.prototype,"offset",{enumerable:!0,get:function(){if(!!t.isBuffer(this))return this.byteOffset}});function n(T){if(T>l)throw new RangeError('The value "'+T+'" is invalid for option "size"');var _=new Uint8Array(T);return _.__proto__=t.prototype,_}function t(T,_,j){if(typeof T=="number"){if(typeof _=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return s(T)}return r(T,_,j)}typeof Symbol!="undefined"&&Symbol.species!=null&&t[Symbol.species]===t&&Object.defineProperty(t,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),t.poolSize=8192;function r(T,_,j){if(typeof T=="string")return d(T,_);if(ArrayBuffer.isView(T))return p(T);if(T==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof T);if(z(T,ArrayBuffer)||T&&z(T.buffer,ArrayBuffer))return h(T,_,j);if(typeof T=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var H=T.valueOf&&T.valueOf();if(H!=null&&H!==T)return t.from(H,_,j);var J=f(T);if(J)return J;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof T[Symbol.toPrimitive]=="function")return t.from(T[Symbol.toPrimitive]("string"),_,j);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof T)}t.from=function(T,_,j){return r(T,_,j)},t.prototype.__proto__=Uint8Array.prototype,t.__proto__=Uint8Array;function i(T){if(typeof T!="number")throw new TypeError('"size" argument must be of type number');if(T<0)throw new RangeError('The value "'+T+'" is invalid for option "size"')}function a(T,_,j){return i(T),T<=0?n(T):_!==void 0?typeof j=="string"?n(T).fill(_,j):n(T).fill(_):n(T)}t.alloc=function(T,_,j){return a(T,_,j)};function s(T){return i(T),n(T<0?0:m(T)|0)}t.allocUnsafe=function(T){return s(T)},t.allocUnsafeSlow=function(T){return s(T)};function d(T,_){if((typeof _!="string"||_==="")&&(_="utf8"),!t.isEncoding(_))throw new TypeError("Unknown encoding: "+_);var j=k(T,_)|0,H=n(j),J=H.write(T,_);return J!==j&&(H=H.slice(0,J)),H}function p(T){for(var _=T.length<0?0:m(T.length)|0,j=n(_),H=0;H<_;H+=1)j[H]=T[H]&255;return j}function h(T,_,j){if(_<0||T.byteLength<_)throw new RangeError('"offset" is outside of buffer bounds');if(T.byteLength<_+(j||0))throw new RangeError('"length" is outside of buffer bounds');var H;return _===void 0&&j===void 0?H=new Uint8Array(T):j===void 0?H=new Uint8Array(T,_):H=new Uint8Array(T,_,j),H.__proto__=t.prototype,H}function f(T){if(t.isBuffer(T)){var _=m(T.length)|0,j=n(_);return j.length===0||T.copy(j,0,0,_),j}if(T.length!==void 0)return typeof T.length!="number"||N(T.length)?n(0):p(T);if(T.type==="Buffer"&&Array.isArray(T.data))return p(T.data)}function m(T){if(T>=l)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l.toString(16)+" bytes");return T|0}function w(T){return+T!=T&&(T=0),t.alloc(+T)}t.isBuffer=function(_){return _!=null&&_._isBuffer===!0&&_!==t.prototype},t.compare=function(_,j){if(z(_,Uint8Array)&&(_=t.from(_,_.offset,_.byteLength)),z(j,Uint8Array)&&(j=t.from(j,j.offset,j.byteLength)),!t.isBuffer(_)||!t.isBuffer(j))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(_===j)return 0;for(var H=_.length,J=j.length,ae=0,oe=Math.min(H,J);ae2&&arguments[2]===!0;if(!H&&j===0)return 0;for(var J=!1;;)switch(_){case"ascii":case"latin1":case"binary":return j;case"utf8":case"utf-8":return F(T).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j*2;case"hex":return j>>>1;case"base64":return R(T).length;default:if(J)return H?-1:F(T).length;_=(""+_).toLowerCase(),J=!0}}t.byteLength=k;function S(T,_,j){var H=!1;if((_===void 0||_<0)&&(_=0),_>this.length||((j===void 0||j>this.length)&&(j=this.length),j<=0)||(j>>>=0,_>>>=0,j<=_))return"";for(T||(T="utf8");;)switch(T){case"hex":return V(this,_,j);case"utf8":case"utf-8":return K(this,_,j);case"ascii":return q(this,_,j);case"latin1":case"binary":return re(this,_,j);case"base64":return W(this,_,j);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,_,j);default:if(H)throw new TypeError("Unknown encoding: "+T);T=(T+"").toLowerCase(),H=!0}}t.prototype._isBuffer=!0;function x(T,_,j){var H=T[_];T[_]=T[j],T[j]=H}t.prototype.swap16=function(){var _=this.length;if(_%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var j=0;j<_;j+=2)x(this,j,j+1);return this},t.prototype.swap32=function(){var _=this.length;if(_%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var j=0;j<_;j+=4)x(this,j,j+3),x(this,j+1,j+2);return this},t.prototype.swap64=function(){var _=this.length;if(_%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var j=0;j<_;j+=8)x(this,j,j+7),x(this,j+1,j+6),x(this,j+2,j+5),x(this,j+3,j+4);return this},t.prototype.toString=function(){var _=this.length;return _===0?"":arguments.length===0?K(this,0,_):S.apply(this,arguments)},t.prototype.toLocaleString=t.prototype.toString,t.prototype.equals=function(_){if(!t.isBuffer(_))throw new TypeError("Argument must be a Buffer");return this===_?!0:t.compare(this,_)===0},t.prototype.inspect=function(){var _="",j=g.INSPECT_MAX_BYTES;return _=this.toString("hex",0,j).replace(/(.{2})/g,"$1 ").trim(),this.length>j&&(_+=" ... "),""},t.prototype.compare=function(_,j,H,J,ae){if(z(_,Uint8Array)&&(_=t.from(_,_.offset,_.byteLength)),!t.isBuffer(_))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof _);if(j===void 0&&(j=0),H===void 0&&(H=_?_.length:0),J===void 0&&(J=0),ae===void 0&&(ae=this.length),j<0||H>_.length||J<0||ae>this.length)throw new RangeError("out of range index");if(J>=ae&&j>=H)return 0;if(J>=ae)return-1;if(j>=H)return 1;if(j>>>=0,H>>>=0,J>>>=0,ae>>>=0,this===_)return 0;for(var oe=ae-J,de=H-j,ge=Math.min(oe,de),ve=this.slice(J,ae),ue=_.slice(j,H),ye=0;ye2147483647?j=2147483647:j<-2147483648&&(j=-2147483648),j=+j,N(j)&&(j=J?0:T.length-1),j<0&&(j=T.length+j),j>=T.length){if(J)return-1;j=T.length-1}else if(j<0)if(J)j=0;else return-1;if(typeof _=="string"&&(_=t.from(_,H)),t.isBuffer(_))return _.length===0?-1:E(T,_,j,H,J);if(typeof _=="number")return _=_&255,typeof Uint8Array.prototype.indexOf=="function"?J?Uint8Array.prototype.indexOf.call(T,_,j):Uint8Array.prototype.lastIndexOf.call(T,_,j):E(T,[_],j,H,J);throw new TypeError("val must be string, number or Buffer")}function E(T,_,j,H,J){var ae=1,oe=T.length,de=_.length;if(H!==void 0&&(H=String(H).toLowerCase(),H==="ucs2"||H==="ucs-2"||H==="utf16le"||H==="utf-16le")){if(T.length<2||_.length<2)return-1;ae=2,oe/=2,de/=2,j/=2}function ge(ne,le){return ae===1?ne[le]:ne.readUInt16BE(le*ae)}var ve;if(J){var ue=-1;for(ve=j;veoe&&(j=oe-de),ve=j;ve>=0;ve--){for(var ye=!0,se=0;seJ&&(H=J)):H=J;var ae=_.length;H>ae/2&&(H=ae/2);for(var oe=0;oe>>0,isFinite(H)?(H=H>>>0,J===void 0&&(J="utf8")):(J=H,H=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var ae=this.length-j;if((H===void 0||H>ae)&&(H=ae),_.length>0&&(H<0||j<0)||j>this.length)throw new RangeError("Attempt to write outside buffer bounds");J||(J="utf8");for(var oe=!1;;)switch(J){case"hex":return P(this,_,j,H);case"utf8":case"utf-8":return M(this,_,j,H);case"ascii":return D(this,_,j,H);case"latin1":case"binary":return O(this,_,j,H);case"base64":return b(this,_,j,H);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,_,j,H);default:if(oe)throw new TypeError("Unknown encoding: "+J);J=(""+J).toLowerCase(),oe=!0}},t.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function W(T,_,j){return _===0&&j===T.length?o.fromByteArray(T):o.fromByteArray(T.slice(_,j))}function K(T,_,j){j=Math.min(T.length,j);for(var H=[],J=_;J239?4:ae>223?3:ae>191?2:1;if(J+de<=j){var ge,ve,ue,ye;switch(de){case 1:ae<128&&(oe=ae);break;case 2:ge=T[J+1],(ge&192)==128&&(ye=(ae&31)<<6|ge&63,ye>127&&(oe=ye));break;case 3:ge=T[J+1],ve=T[J+2],(ge&192)==128&&(ve&192)==128&&(ye=(ae&15)<<12|(ge&63)<<6|ve&63,ye>2047&&(ye<55296||ye>57343)&&(oe=ye));break;case 4:ge=T[J+1],ve=T[J+2],ue=T[J+3],(ge&192)==128&&(ve&192)==128&&(ue&192)==128&&(ye=(ae&15)<<18|(ge&63)<<12|(ve&63)<<6|ue&63,ye>65535&&ye<1114112&&(oe=ye))}}oe===null?(oe=65533,de=1):oe>65535&&(oe-=65536,H.push(oe>>>10&1023|55296),oe=56320|oe&1023),H.push(oe),J+=de}return X(H)}var te=4096;function X(T){var _=T.length;if(_<=te)return String.fromCharCode.apply(String,T);for(var j="",H=0;H<_;)j+=String.fromCharCode.apply(String,T.slice(H,H+=te));return j}function q(T,_,j){var H="";j=Math.min(T.length,j);for(var J=_;JH)&&(j=H);for(var J="",ae=_;aeH&&(_=H),j<0?(j+=H,j<0&&(j=0)):j>H&&(j=H),j<_&&(j=_);var J=this.subarray(_,j);return J.__proto__=t.prototype,J};function U(T,_,j){if(T%1!=0||T<0)throw new RangeError("offset is not uint");if(T+_>j)throw new RangeError("Trying to access beyond buffer length")}t.prototype.readUIntLE=function(_,j,H){_=_>>>0,j=j>>>0,H||U(_,j,this.length);for(var J=this[_],ae=1,oe=0;++oe>>0,j=j>>>0,H||U(_,j,this.length);for(var J=this[_+--j],ae=1;j>0&&(ae*=256);)J+=this[_+--j]*ae;return J},t.prototype.readUInt8=function(_,j){return _=_>>>0,j||U(_,1,this.length),this[_]},t.prototype.readUInt16LE=function(_,j){return _=_>>>0,j||U(_,2,this.length),this[_]|this[_+1]<<8},t.prototype.readUInt16BE=function(_,j){return _=_>>>0,j||U(_,2,this.length),this[_]<<8|this[_+1]},t.prototype.readUInt32LE=function(_,j){return _=_>>>0,j||U(_,4,this.length),(this[_]|this[_+1]<<8|this[_+2]<<16)+this[_+3]*16777216},t.prototype.readUInt32BE=function(_,j){return _=_>>>0,j||U(_,4,this.length),this[_]*16777216+(this[_+1]<<16|this[_+2]<<8|this[_+3])},t.prototype.readIntLE=function(_,j,H){_=_>>>0,j=j>>>0,H||U(_,j,this.length);for(var J=this[_],ae=1,oe=0;++oe=ae&&(J-=Math.pow(2,8*j)),J},t.prototype.readIntBE=function(_,j,H){_=_>>>0,j=j>>>0,H||U(_,j,this.length);for(var J=j,ae=1,oe=this[_+--J];J>0&&(ae*=256);)oe+=this[_+--J]*ae;return ae*=128,oe>=ae&&(oe-=Math.pow(2,8*j)),oe},t.prototype.readInt8=function(_,j){return _=_>>>0,j||U(_,1,this.length),this[_]&128?(255-this[_]+1)*-1:this[_]},t.prototype.readInt16LE=function(_,j){_=_>>>0,j||U(_,2,this.length);var H=this[_]|this[_+1]<<8;return H&32768?H|4294901760:H},t.prototype.readInt16BE=function(_,j){_=_>>>0,j||U(_,2,this.length);var H=this[_+1]|this[_]<<8;return H&32768?H|4294901760:H},t.prototype.readInt32LE=function(_,j){return _=_>>>0,j||U(_,4,this.length),this[_]|this[_+1]<<8|this[_+2]<<16|this[_+3]<<24},t.prototype.readInt32BE=function(_,j){return _=_>>>0,j||U(_,4,this.length),this[_]<<24|this[_+1]<<16|this[_+2]<<8|this[_+3]},t.prototype.readFloatLE=function(_,j){return _=_>>>0,j||U(_,4,this.length),u.read(this,_,!0,23,4)},t.prototype.readFloatBE=function(_,j){return _=_>>>0,j||U(_,4,this.length),u.read(this,_,!1,23,4)},t.prototype.readDoubleLE=function(_,j){return _=_>>>0,j||U(_,8,this.length),u.read(this,_,!0,52,8)},t.prototype.readDoubleBE=function(_,j){return _=_>>>0,j||U(_,8,this.length),u.read(this,_,!1,52,8)};function L(T,_,j,H,J,ae){if(!t.isBuffer(T))throw new TypeError('"buffer" argument must be a Buffer instance');if(_>J||_T.length)throw new RangeError("Index out of range")}t.prototype.writeUIntLE=function(_,j,H,J){if(_=+_,j=j>>>0,H=H>>>0,!J){var ae=Math.pow(2,8*H)-1;L(this,_,j,H,ae,0)}var oe=1,de=0;for(this[j]=_&255;++de>>0,H=H>>>0,!J){var ae=Math.pow(2,8*H)-1;L(this,_,j,H,ae,0)}var oe=H-1,de=1;for(this[j+oe]=_&255;--oe>=0&&(de*=256);)this[j+oe]=_/de&255;return j+H},t.prototype.writeUInt8=function(_,j,H){return _=+_,j=j>>>0,H||L(this,_,j,1,255,0),this[j]=_&255,j+1},t.prototype.writeUInt16LE=function(_,j,H){return _=+_,j=j>>>0,H||L(this,_,j,2,65535,0),this[j]=_&255,this[j+1]=_>>>8,j+2},t.prototype.writeUInt16BE=function(_,j,H){return _=+_,j=j>>>0,H||L(this,_,j,2,65535,0),this[j]=_>>>8,this[j+1]=_&255,j+2},t.prototype.writeUInt32LE=function(_,j,H){return _=+_,j=j>>>0,H||L(this,_,j,4,4294967295,0),this[j+3]=_>>>24,this[j+2]=_>>>16,this[j+1]=_>>>8,this[j]=_&255,j+4},t.prototype.writeUInt32BE=function(_,j,H){return _=+_,j=j>>>0,H||L(this,_,j,4,4294967295,0),this[j]=_>>>24,this[j+1]=_>>>16,this[j+2]=_>>>8,this[j+3]=_&255,j+4},t.prototype.writeIntLE=function(_,j,H,J){if(_=+_,j=j>>>0,!J){var ae=Math.pow(2,8*H-1);L(this,_,j,H,ae-1,-ae)}var oe=0,de=1,ge=0;for(this[j]=_&255;++oe>0)-ge&255;return j+H},t.prototype.writeIntBE=function(_,j,H,J){if(_=+_,j=j>>>0,!J){var ae=Math.pow(2,8*H-1);L(this,_,j,H,ae-1,-ae)}var oe=H-1,de=1,ge=0;for(this[j+oe]=_&255;--oe>=0&&(de*=256);)_<0&&ge===0&&this[j+oe+1]!==0&&(ge=1),this[j+oe]=(_/de>>0)-ge&255;return j+H},t.prototype.writeInt8=function(_,j,H){return _=+_,j=j>>>0,H||L(this,_,j,1,127,-128),_<0&&(_=255+_+1),this[j]=_&255,j+1},t.prototype.writeInt16LE=function(_,j,H){return _=+_,j=j>>>0,H||L(this,_,j,2,32767,-32768),this[j]=_&255,this[j+1]=_>>>8,j+2},t.prototype.writeInt16BE=function(_,j,H){return _=+_,j=j>>>0,H||L(this,_,j,2,32767,-32768),this[j]=_>>>8,this[j+1]=_&255,j+2},t.prototype.writeInt32LE=function(_,j,H){return _=+_,j=j>>>0,H||L(this,_,j,4,2147483647,-2147483648),this[j]=_&255,this[j+1]=_>>>8,this[j+2]=_>>>16,this[j+3]=_>>>24,j+4},t.prototype.writeInt32BE=function(_,j,H){return _=+_,j=j>>>0,H||L(this,_,j,4,2147483647,-2147483648),_<0&&(_=4294967295+_+1),this[j]=_>>>24,this[j+1]=_>>>16,this[j+2]=_>>>8,this[j+3]=_&255,j+4};function B(T,_,j,H,J,ae){if(j+H>T.length)throw new RangeError("Index out of range");if(j<0)throw new RangeError("Index out of range")}function Y(T,_,j,H,J){return _=+_,j=j>>>0,J||B(T,_,j,4),u.write(T,_,j,H,23,4),j+4}t.prototype.writeFloatLE=function(_,j,H){return Y(this,_,j,!0,H)},t.prototype.writeFloatBE=function(_,j,H){return Y(this,_,j,!1,H)};function Q(T,_,j,H,J){return _=+_,j=j>>>0,J||B(T,_,j,8),u.write(T,_,j,H,52,8),j+8}t.prototype.writeDoubleLE=function(_,j,H){return Q(this,_,j,!0,H)},t.prototype.writeDoubleBE=function(_,j,H){return Q(this,_,j,!1,H)},t.prototype.copy=function(_,j,H,J){if(!t.isBuffer(_))throw new TypeError("argument should be a Buffer");if(H||(H=0),!J&&J!==0&&(J=this.length),j>=_.length&&(j=_.length),j||(j=0),J>0&&J=this.length)throw new RangeError("Index out of range");if(J<0)throw new RangeError("sourceEnd out of bounds");J>this.length&&(J=this.length),_.length-j=0;--oe)_[oe+j]=this[oe+H];else Uint8Array.prototype.set.call(_,this.subarray(H,J),j);return ae},t.prototype.fill=function(_,j,H,J){if(typeof _=="string"){if(typeof j=="string"?(J=j,j=0,H=this.length):typeof H=="string"&&(J=H,H=this.length),J!==void 0&&typeof J!="string")throw new TypeError("encoding must be a string");if(typeof J=="string"&&!t.isEncoding(J))throw new TypeError("Unknown encoding: "+J);if(_.length===1){var ae=_.charCodeAt(0);(J==="utf8"&&ae<128||J==="latin1")&&(_=ae)}}else typeof _=="number"&&(_=_&255);if(j<0||this.length>>0,H=H===void 0?this.length:H>>>0,_||(_=0);var oe;if(typeof _=="number")for(oe=j;oe55295&&j<57344){if(!J){if(j>56319){(_-=3)>-1&&ae.push(239,191,189);continue}else if(oe+1===H){(_-=3)>-1&&ae.push(239,191,189);continue}J=j;continue}if(j<56320){(_-=3)>-1&&ae.push(239,191,189),J=j;continue}j=(J-55296<<10|j-56320)+65536}else J&&(_-=3)>-1&&ae.push(239,191,189);if(J=null,j<128){if((_-=1)<0)break;ae.push(j)}else if(j<2048){if((_-=2)<0)break;ae.push(j>>6|192,j&63|128)}else if(j<65536){if((_-=3)<0)break;ae.push(j>>12|224,j>>6&63|128,j&63|128)}else if(j<1114112){if((_-=4)<0)break;ae.push(j>>18|240,j>>12&63|128,j>>6&63|128,j&63|128)}else throw new Error("Invalid code point")}return ae}function I(T){for(var _=[],j=0;j>8,J=j%256,ae.push(J),ae.push(H);return ae}function R(T){return o.toByteArray($(T))}function Z(T,_,j,H){for(var J=0;J=_.length||J>=T.length);++J)_[J+j]=T[J];return J}function z(T,_){return T instanceof _||T!=null&&T.constructor!=null&&T.constructor.name!=null&&T.constructor.name===_.name}function N(T){return T!==T}}).call(this,e("buffer").Buffer)},{"base64-js":77,buffer:99,ieee754:299}],100:[function(e,v,g){v.exports={"100":"Continue","101":"Switching Protocols","102":"Processing","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Unordered Collection","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"}},{}],101:[function(e,v,g){var t=Array.prototype.slice;v.exports=o;function o(l,c){if(!(this instanceof o))return new o(l,c);this.src=l,this._withAccess=c}o.prototype.withAccess=function(l){return this._withAccess=l!==!1,this},o.prototype.pick=function(l){return Array.isArray(l)||(l=t.call(arguments)),l.length&&(this.keys=l),this},o.prototype.to=function(l){if(l=l||{},!this.src)return l;var c=this.keys||Object.keys(this.src);if(!this._withAccess){for(var n=0;n>8&255]},U=function(z){return[z&255,z>>8&255,z>>16&255,z>>24&255]},L=function(z){return z[3]<<24|z[2]<<16|z[1]<<8|z[0]},B=function(z){return q(z,23,4)},Y=function(z){return q(z,52,8)},Q=function(z,N){m(z[M],N,{get:function(){return x(this)[N]}})},ee=function(z,N,T,_){var j=s(T),H=x(z);if(j+N>H.byteLength)throw X(O);var J=x(H.buffer).bytes,ae=j+H.byteOffset,oe=J.slice(ae,ae+N);return _?oe:oe.reverse()},$=function(z,N,T,_,j,H){var J=s(T),ae=x(z);if(J+N>ae.byteLength)throw X(O);for(var oe=x(ae.buffer).bytes,de=J+ae.byteOffset,ge=_(+j),ve=0;vej)throw X("Wrong offset");if(_=_===void 0?j-H:a(_),H+_>j)throw X(D);y(this,{buffer:N,byteLength:_,byteOffset:H}),o||(this.buffer=N,this.byteLength=_,this.byteOffset=H)},o&&(Q(A,"byteLength"),Q(W,"buffer"),Q(W,"byteLength"),Q(W,"byteOffset")),c(W[M],{getInt8:function(N){return ee(this,1,N)[0]<<24>>24},getUint8:function(N){return ee(this,1,N)[0]},getInt16:function(N){var T=ee(this,2,N,arguments.length>1?arguments[1]:void 0);return(T[1]<<8|T[0])<<16>>16},getUint16:function(N){var T=ee(this,2,N,arguments.length>1?arguments[1]:void 0);return T[1]<<8|T[0]},getInt32:function(N){return L(ee(this,4,N,arguments.length>1?arguments[1]:void 0))},getUint32:function(N){return L(ee(this,4,N,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(N){return re(ee(this,4,N,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(N){return re(ee(this,8,N,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(N,T){$(this,1,N,V,T)},setUint8:function(N,T){$(this,1,N,V,T)},setInt16:function(N,T){$(this,2,N,G,T,arguments.length>2?arguments[2]:void 0)},setUint16:function(N,T){$(this,2,N,G,T,arguments.length>2?arguments[2]:void 0)},setInt32:function(N,T){$(this,4,N,U,T,arguments.length>2?arguments[2]:void 0)},setUint32:function(N,T){$(this,4,N,U,T,arguments.length>2?arguments[2]:void 0)},setFloat32:function(N,T){$(this,4,N,B,T,arguments.length>2?arguments[2]:void 0)},setFloat64:function(N,T){$(this,8,N,Y,T,arguments.length>2?arguments[2]:void 0)}});else{if(!n(function(){b(1)})||!n(function(){new b(-1)})||n(function(){return new b,new b(1.5),new b(NaN),b.name!=E})){A=function(N){return r(this,A),new b(s(N))};for(var ie=A[M]=b[M],F=f(b),I=0,C;F.length>I;)(C=F[I++])in A||l(A,C,b[C]);ie.constructor=A}h&&p(K)!==te&&h(K,te);var R=new W(new A(2)),Z=K.setInt8;R.setInt8(0,2147483648),R.setInt8(1,2147483649),(R.getInt8(0)||!R.getInt8(1))&&c(K,{setInt8:function(N,T){Z.call(this,N,T<<24>>24)},setUint8:function(N,T){Z.call(this,N,T<<24>>24)}},{unsafe:!0})}k(A,E),k(W,P),v.exports={ArrayBuffer:A,DataView:W}},{"../internals/an-instance":106,"../internals/array-buffer-native":108,"../internals/array-fill":112,"../internals/create-non-enumerable-property":131,"../internals/descriptors":136,"../internals/fails":145,"../internals/global":150,"../internals/ieee754":156,"../internals/internal-state":160,"../internals/object-define-property":180,"../internals/object-get-own-property-names":183,"../internals/object-get-prototype-of":185,"../internals/object-set-prototype-of":189,"../internals/redefine-all":196,"../internals/set-to-string-tag":206,"../internals/to-index":216,"../internals/to-integer":218,"../internals/to-length":219}],111:[function(e,v,g){var t=e("../internals/to-object"),o=e("../internals/to-absolute-index"),u=e("../internals/to-length"),l=Math.min;v.exports=[].copyWithin||function(n,r){var i=t(this),a=u(i.length),s=o(n,a),d=o(r,a),p=arguments.length>2?arguments[2]:void 0,h=l((p===void 0?a:o(p,a))-d,a-s),f=1;for(d0;)d in i?i[s]=i[d]:delete i[s],s+=f,d+=f;return i}},{"../internals/to-absolute-index":215,"../internals/to-length":219,"../internals/to-object":220}],112:[function(e,v,g){var t=e("../internals/to-object"),o=e("../internals/to-absolute-index"),u=e("../internals/to-length");v.exports=function(c){for(var n=t(this),r=u(n.length),i=arguments.length,a=o(i>1?arguments[1]:void 0,r),s=i>2?arguments[2]:void 0,d=s===void 0?r:o(s,r);d>a;)n[a++]=c;return n}},{"../internals/to-absolute-index":215,"../internals/to-length":219,"../internals/to-object":220}],113:[function(e,v,g){var t=e("../internals/array-iteration").forEach,o=e("../internals/array-method-is-strict"),u=e("../internals/array-method-uses-to-length"),l=o("forEach"),c=u("forEach");v.exports=!l||!c?function(r){return t(this,r,arguments.length>1?arguments[1]:void 0)}:[].forEach},{"../internals/array-iteration":116,"../internals/array-method-is-strict":119,"../internals/array-method-uses-to-length":120}],114:[function(e,v,g){var t=e("../internals/function-bind-context"),o=e("../internals/to-object"),u=e("../internals/call-with-safe-iteration-closing"),l=e("../internals/is-array-iterator-method"),c=e("../internals/to-length"),n=e("../internals/create-property"),r=e("../internals/get-iterator-method");v.exports=function(a){var s=o(a),d=typeof this=="function"?this:Array,p=arguments.length,h=p>1?arguments[1]:void 0,f=h!==void 0,m=r(s),w=0,k,S,x,y,E,P;if(f&&(h=t(h,p>2?arguments[2]:void 0,2)),m!=null&&!(d==Array&&l(m)))for(y=m.call(s),E=y.next,S=new d;!(x=E.call(y)).done;w++)P=f?u(y,h,[x.value,w],!0):x.value,n(S,w,P);else for(k=c(s.length),S=new d(k);k>w;w++)P=f?h(s[w],w):s[w],n(S,w,P);return S.length=w,S}},{"../internals/call-with-safe-iteration-closing":123,"../internals/create-property":133,"../internals/function-bind-context":147,"../internals/get-iterator-method":149,"../internals/is-array-iterator-method":161,"../internals/to-length":219,"../internals/to-object":220}],115:[function(e,v,g){var t=e("../internals/to-indexed-object"),o=e("../internals/to-length"),u=e("../internals/to-absolute-index"),l=function(c){return function(n,r,i){var a=t(n),s=o(a.length),d=u(i,s),p;if(c&&r!=r){for(;s>d;)if(p=a[d++],p!=p)return!0}else for(;s>d;d++)if((c||d in a)&&a[d]===r)return c||d||0;return!c&&-1}};v.exports={includes:l(!0),indexOf:l(!1)}},{"../internals/to-absolute-index":215,"../internals/to-indexed-object":217,"../internals/to-length":219}],116:[function(e,v,g){var t=e("../internals/function-bind-context"),o=e("../internals/indexed-object"),u=e("../internals/to-object"),l=e("../internals/to-length"),c=e("../internals/array-species-create"),n=[].push,r=function(i){var a=i==1,s=i==2,d=i==3,p=i==4,h=i==6,f=i==5||h;return function(m,w,k,S){for(var x=u(m),y=o(x),E=t(w,k,3),P=l(y.length),M=0,D=S||c,O=a?D(m,P):s?D(m,0):void 0,b,A;P>M;M++)if((f||M in y)&&(b=y[M],A=E(b,M,x),i)){if(a)O[M]=A;else if(A)switch(i){case 3:return!0;case 5:return b;case 6:return M;case 2:n.call(O,b)}else if(p)return!1}return h?-1:d||p?p:O}};v.exports={forEach:r(0),map:r(1),filter:r(2),some:r(3),every:r(4),find:r(5),findIndex:r(6)}},{"../internals/array-species-create":122,"../internals/function-bind-context":147,"../internals/indexed-object":157,"../internals/to-length":219,"../internals/to-object":220}],117:[function(e,v,g){var t=e("../internals/to-indexed-object"),o=e("../internals/to-integer"),u=e("../internals/to-length"),l=e("../internals/array-method-is-strict"),c=e("../internals/array-method-uses-to-length"),n=Math.min,r=[].lastIndexOf,i=!!r&&1/[1].lastIndexOf(1,-0)<0,a=l("lastIndexOf"),s=c("indexOf",{ACCESSORS:!0,1:0}),d=i||!a||!s;v.exports=d?function(h){if(i)return r.apply(this,arguments)||0;var f=t(this),m=u(f.length),w=m-1;for(arguments.length>1&&(w=n(w,o(arguments[1]))),w<0&&(w=m+w);w>=0;w--)if(w in f&&f[w]===h)return w||0;return-1}:r},{"../internals/array-method-is-strict":119,"../internals/array-method-uses-to-length":120,"../internals/to-indexed-object":217,"../internals/to-integer":218,"../internals/to-length":219}],118:[function(e,v,g){var t=e("../internals/fails"),o=e("../internals/well-known-symbol"),u=e("../internals/engine-v8-version"),l=o("species");v.exports=function(c){return u>=51||!t(function(){var n=[],r=n.constructor={};return r[l]=function(){return{foo:1}},n[c](Boolean).foo!==1})}},{"../internals/engine-v8-version":142,"../internals/fails":145,"../internals/well-known-symbol":231}],119:[function(e,v,g){var t=e("../internals/fails");v.exports=function(o,u){var l=[][o];return!!l&&t(function(){l.call(null,u||function(){throw 1},1)})}},{"../internals/fails":145}],120:[function(e,v,g){var t=e("../internals/descriptors"),o=e("../internals/fails"),u=e("../internals/has"),l=Object.defineProperty,c={},n=function(r){throw r};v.exports=function(r,i){if(u(c,r))return c[r];i||(i={});var a=[][r],s=u(i,"ACCESSORS")?i.ACCESSORS:!1,d=u(i,0)?i[0]:n,p=u(i,1)?i[1]:void 0;return c[r]=!!a&&!o(function(){if(s&&!t)return!0;var h={length:-1};s?l(h,1,{enumerable:!0,get:n}):h[1]=1,a.call(h,d,p)})}},{"../internals/descriptors":136,"../internals/fails":145,"../internals/has":151}],121:[function(e,v,g){var t=e("../internals/a-function"),o=e("../internals/to-object"),u=e("../internals/indexed-object"),l=e("../internals/to-length"),c=function(n){return function(r,i,a,s){t(i);var d=o(r),p=u(d),h=l(d.length),f=n?h-1:0,m=n?-1:1;if(a<2)for(;;){if(f in p){s=p[f],f+=m;break}if(f+=m,n?f<0:h<=f)throw TypeError("Reduce of empty array with no initial value")}for(;n?f>=0:h>f;f+=m)f in p&&(s=i(s,p[f],f,d));return s}};v.exports={left:c(!1),right:c(!0)}},{"../internals/a-function":102,"../internals/indexed-object":157,"../internals/to-length":219,"../internals/to-object":220}],122:[function(e,v,g){var t=e("../internals/is-object"),o=e("../internals/is-array"),u=e("../internals/well-known-symbol"),l=u("species");v.exports=function(c,n){var r;return o(c)&&(r=c.constructor,typeof r=="function"&&(r===Array||o(r.prototype))?r=void 0:t(r)&&(r=r[l],r===null&&(r=void 0))),new(r===void 0?Array:r)(n===0?0:n)}},{"../internals/is-array":162,"../internals/is-object":164,"../internals/well-known-symbol":231}],123:[function(e,v,g){var t=e("../internals/an-object"),o=e("../internals/iterator-close");v.exports=function(u,l,c,n){try{return n?l(t(c)[0],c[1]):l(c)}catch(r){throw o(u),r}}},{"../internals/an-object":107,"../internals/iterator-close":168}],124:[function(e,v,g){var t=e("../internals/well-known-symbol"),o=t("iterator"),u=!1;try{var l=0,c={next:function(){return{done:!!l++}},return:function(){u=!0}};c[o]=function(){return this},Array.from(c,function(){throw 2})}catch{}v.exports=function(n,r){if(!r&&!u)return!1;var i=!1;try{var a={};a[o]=function(){return{next:function(){return{done:i=!0}}}},n(a)}catch{}return i}},{"../internals/well-known-symbol":231}],125:[function(e,v,g){var t={}.toString;v.exports=function(o){return t.call(o).slice(8,-1)}},{}],126:[function(e,v,g){var t=e("../internals/to-string-tag-support"),o=e("../internals/classof-raw"),u=e("../internals/well-known-symbol"),l=u("toStringTag"),c=o(function(){return arguments}())=="Arguments",n=function(r,i){try{return r[i]}catch{}};v.exports=t?o:function(r){var i,a,s;return r===void 0?"Undefined":r===null?"Null":typeof(a=n(i=Object(r),l))=="string"?a:c?o(i):(s=o(i))=="Object"&&typeof i.callee=="function"?"Arguments":s}},{"../internals/classof-raw":125,"../internals/to-string-tag-support":224,"../internals/well-known-symbol":231}],127:[function(e,v,g){var t=e("../internals/has"),o=e("../internals/own-keys"),u=e("../internals/object-get-own-property-descriptor"),l=e("../internals/object-define-property");v.exports=function(c,n){for(var r=o(n),i=l.f,a=u.f,s=0;s=74)&&(n=o.match(/Chrome\/(\d+)/),n&&(r=n[1]))),v.exports=r&&+r},{"../internals/engine-user-agent":141,"../internals/global":150}],143:[function(e,v,g){v.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],144:[function(e,v,g){var t=e("../internals/global"),o=e("../internals/object-get-own-property-descriptor").f,u=e("../internals/create-non-enumerable-property"),l=e("../internals/redefine"),c=e("../internals/set-global"),n=e("../internals/copy-constructor-properties"),r=e("../internals/is-forced");v.exports=function(i,a){var s=i.target,d=i.global,p=i.stat,h,f,m,w,k,S;if(d?f=t:p?f=t[s]||c(s,{}):f=(t[s]||{}).prototype,f)for(m in a){if(k=a[m],i.noTargetGet?(S=o(f,m),w=S&&S.value):w=f[m],h=r(d?m:s+(p?".":"#")+m,i.forced),!h&&w!==void 0){if(typeof k==typeof w)continue;n(k,w)}(i.sham||w&&w.sham)&&u(k,"sham",!0),l(f,m,k,i)}}},{"../internals/copy-constructor-properties":127,"../internals/create-non-enumerable-property":131,"../internals/global":150,"../internals/is-forced":163,"../internals/object-get-own-property-descriptor":181,"../internals/redefine":197,"../internals/set-global":204}],145:[function(e,v,g){v.exports=function(t){try{return!!t()}catch{return!0}}},{}],146:[function(e,v,g){e("../modules/es.regexp.exec");var t=e("../internals/redefine"),o=e("../internals/fails"),u=e("../internals/well-known-symbol"),l=e("../internals/regexp-exec"),c=e("../internals/create-non-enumerable-property"),n=u("species"),r=!o(function(){var p=/./;return p.exec=function(){var h=[];return h.groups={a:"7"},h},"".replace(p,"$")!=="7"}),i=function(){return"a".replace(/./,"$0")==="$0"}(),a=u("replace"),s=function(){return/./[a]?/./[a]("a","$0")==="":!1}(),d=!o(function(){var p=/(?:)/,h=p.exec;p.exec=function(){return h.apply(this,arguments)};var f="ab".split(p);return f.length!==2||f[0]!=="a"||f[1]!=="b"});v.exports=function(p,h,f,m){var w=u(p),k=!o(function(){var M={};return M[w]=function(){return 7},""[p](M)!=7}),S=k&&!o(function(){var M=!1,D=/a/;return p==="split"&&(D={},D.constructor={},D.constructor[n]=function(){return D},D.flags="",D[w]=/./[w]),D.exec=function(){return M=!0,null},D[w](""),!M});if(!k||!S||p==="replace"&&!(r&&i&&!s)||p==="split"&&!d){var x=/./[w],y=f(w,""[p],function(M,D,O,b,A){return D.exec===l?k&&!A?{done:!0,value:x.call(D,O,b)}:{done:!0,value:M.call(O,D,b)}:{done:!1}},{REPLACE_KEEPS_$0:i,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:s}),E=y[0],P=y[1];t(String.prototype,p,E),t(RegExp.prototype,w,h==2?function(M,D){return P.call(M,this,D)}:function(M){return P.call(M,this)})}m&&c(RegExp.prototype[w],"sham",!0)}},{"../internals/create-non-enumerable-property":131,"../internals/fails":145,"../internals/redefine":197,"../internals/regexp-exec":199,"../internals/well-known-symbol":231,"../modules/es.regexp.exec":256}],147:[function(e,v,g){var t=e("../internals/a-function");v.exports=function(o,u,l){if(t(o),u===void 0)return o;switch(l){case 0:return function(){return o.call(u)};case 1:return function(c){return o.call(u,c)};case 2:return function(c,n){return o.call(u,c,n)};case 3:return function(c,n,r){return o.call(u,c,n,r)}}return function(){return o.apply(u,arguments)}}},{"../internals/a-function":102}],148:[function(e,v,g){var t=e("../internals/path"),o=e("../internals/global"),u=function(l){return typeof l=="function"?l:void 0};v.exports=function(l,c){return arguments.length<2?u(t[l])||u(o[l]):t[l]&&t[l][c]||o[l]&&o[l][c]}},{"../internals/global":150,"../internals/path":193}],149:[function(e,v,g){var t=e("../internals/classof"),o=e("../internals/iterators"),u=e("../internals/well-known-symbol"),l=u("iterator");v.exports=function(c){if(c!=null)return c[l]||c["@@iterator"]||o[t(c)]}},{"../internals/classof":126,"../internals/iterators":170,"../internals/well-known-symbol":231}],150:[function(e,v,g){(function(t){var o=function(u){return u&&u.Math==Math&&u};v.exports=o(typeof globalThis=="object"&&globalThis)||o(typeof window=="object"&&window)||o(typeof self=="object"&&self)||o(typeof t=="object"&&t)||function(){return this}()||Function("return this")()}).call(this,typeof commonjsGlobal!="undefined"?commonjsGlobal:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],151:[function(e,v,g){var t={}.hasOwnProperty;v.exports=function(o,u){return t.call(o,u)}},{}],152:[function(e,v,g){v.exports={}},{}],153:[function(e,v,g){var t=e("../internals/global");v.exports=function(o,u){var l=t.console;l&&l.error&&(arguments.length===1?l.error(o):l.error(o,u))}},{"../internals/global":150}],154:[function(e,v,g){var t=e("../internals/get-built-in");v.exports=t("document","documentElement")},{"../internals/get-built-in":148}],155:[function(e,v,g){var t=e("../internals/descriptors"),o=e("../internals/fails"),u=e("../internals/document-create-element");v.exports=!t&&!o(function(){return Object.defineProperty(u("div"),"a",{get:function(){return 7}}).a!=7})},{"../internals/descriptors":136,"../internals/document-create-element":137,"../internals/fails":145}],156:[function(e,v,g){var t=1/0,o=Math.abs,u=Math.pow,l=Math.floor,c=Math.log,n=Math.LN2,r=function(a,s,d){var p=new Array(d),h=d*8-s-1,f=(1<>1,w=s===23?u(2,-24)-u(2,-77):0,k=a<0||a===0&&1/a<0?1:0,S=0,x,y,E;for(a=o(a),a!=a||a===t?(y=a!=a?1:0,x=f):(x=l(c(a)/n),a*(E=u(2,-x))<1&&(x--,E*=2),x+m>=1?a+=w/E:a+=w*u(2,1-m),a*E>=2&&(x++,E/=2),x+m>=f?(y=0,x=f):x+m>=1?(y=(a*E-1)*u(2,s),x=x+m):(y=a*u(2,m-1)*u(2,s),x=0));s>=8;p[S++]=y&255,y/=256,s-=8);for(x=x<0;p[S++]=x&255,x/=256,h-=8);return p[--S]|=k*128,p},i=function(a,s){var d=a.length,p=d*8-s-1,h=(1<>1,m=p-7,w=d-1,k=a[w--],S=k&127,x;for(k>>=7;m>0;S=S*256+a[w],w--,m-=8);for(x=S&(1<<-m)-1,S>>=-m,m+=s;m>0;x=x*256+a[w],w--,m-=8);if(S===0)S=1-f;else{if(S===h)return x?NaN:k?-t:t;x=x+u(2,s),S=S-f}return(k?-1:1)*x*u(2,S-s)};v.exports={pack:r,unpack:i}},{}],157:[function(e,v,g){var t=e("../internals/fails"),o=e("../internals/classof-raw"),u="".split;v.exports=t(function(){return!Object("z").propertyIsEnumerable(0)})?function(l){return o(l)=="String"?u.call(l,""):Object(l)}:Object},{"../internals/classof-raw":125,"../internals/fails":145}],158:[function(e,v,g){var t=e("../internals/is-object"),o=e("../internals/object-set-prototype-of");v.exports=function(u,l,c){var n,r;return o&&typeof(n=l.constructor)=="function"&&n!==c&&t(r=n.prototype)&&r!==c.prototype&&o(u,r),u}},{"../internals/is-object":164,"../internals/object-set-prototype-of":189}],159:[function(e,v,g){var t=e("../internals/shared-store"),o=Function.toString;typeof t.inspectSource!="function"&&(t.inspectSource=function(u){return o.call(u)}),v.exports=t.inspectSource},{"../internals/shared-store":208}],160:[function(e,v,g){var t=e("../internals/native-weak-map"),o=e("../internals/global"),u=e("../internals/is-object"),l=e("../internals/create-non-enumerable-property"),c=e("../internals/has"),n=e("../internals/shared-store"),r=e("../internals/shared-key"),i=e("../internals/hidden-keys"),a=o.WeakMap,s,d,p,h=function(y){return p(y)?d(y):s(y,{})},f=function(y){return function(E){var P;if(!u(E)||(P=d(E)).type!==y)throw TypeError("Incompatible receiver, "+y+" required");return P}};if(t){var m=n.state||(n.state=new a),w=m.get,k=m.has,S=m.set;s=function(y,E){return E.facade=y,S.call(m,y,E),E},d=function(y){return w.call(m,y)||{}},p=function(y){return k.call(m,y)}}else{var x=r("state");i[x]=!0,s=function(y,E){return E.facade=y,l(y,x,E),E},d=function(y){return c(y,x)?y[x]:{}},p=function(y){return c(y,x)}}v.exports={set:s,get:d,has:p,enforce:h,getterFor:f}},{"../internals/create-non-enumerable-property":131,"../internals/global":150,"../internals/has":151,"../internals/hidden-keys":152,"../internals/is-object":164,"../internals/native-weak-map":174,"../internals/shared-key":207,"../internals/shared-store":208}],161:[function(e,v,g){var t=e("../internals/well-known-symbol"),o=e("../internals/iterators"),u=t("iterator"),l=Array.prototype;v.exports=function(c){return c!==void 0&&(o.Array===c||l[u]===c)}},{"../internals/iterators":170,"../internals/well-known-symbol":231}],162:[function(e,v,g){var t=e("../internals/classof-raw");v.exports=Array.isArray||function(u){return t(u)=="Array"}},{"../internals/classof-raw":125}],163:[function(e,v,g){var t=e("../internals/fails"),o=/#|\.prototype\./,u=function(i,a){var s=c[l(i)];return s==r?!0:s==n?!1:typeof a=="function"?t(a):!!a},l=u.normalize=function(i){return String(i).replace(o,".").toLowerCase()},c=u.data={},n=u.NATIVE="N",r=u.POLYFILL="P";v.exports=u},{"../internals/fails":145}],164:[function(e,v,g){v.exports=function(t){return typeof t=="object"?t!==null:typeof t=="function"}},{}],165:[function(e,v,g){v.exports=!1},{}],166:[function(e,v,g){var t=e("../internals/is-object"),o=e("../internals/classof-raw"),u=e("../internals/well-known-symbol"),l=u("match");v.exports=function(c){var n;return t(c)&&((n=c[l])!==void 0?!!n:o(c)=="RegExp")}},{"../internals/classof-raw":125,"../internals/is-object":164,"../internals/well-known-symbol":231}],167:[function(e,v,g){var t=e("../internals/an-object"),o=e("../internals/is-array-iterator-method"),u=e("../internals/to-length"),l=e("../internals/function-bind-context"),c=e("../internals/get-iterator-method"),n=e("../internals/iterator-close"),r=function(i,a){this.stopped=i,this.result=a};v.exports=function(i,a,s){var d=s&&s.that,p=!!(s&&s.AS_ENTRIES),h=!!(s&&s.IS_ITERATOR),f=!!(s&&s.INTERRUPTED),m=l(a,d,1+p+f),w,k,S,x,y,E,P,M=function(O){return w&&n(w),new r(!0,O)},D=function(O){return p?(t(O),f?m(O[0],O[1],M):m(O[0],O[1])):f?m(O,M):m(O)};if(h)w=i;else{if(k=c(i),typeof k!="function")throw TypeError("Target is not iterable");if(o(k)){for(S=0,x=u(i.length);x>S;S++)if(y=D(i[S]),y&&y instanceof r)return y;return new r(!1)}w=k.call(i)}for(E=w.next;!(P=E.call(w)).done;){try{y=D(P.value)}catch(O){throw n(w),O}if(typeof y=="object"&&y&&y instanceof r)return y}return new r(!1)}},{"../internals/an-object":107,"../internals/function-bind-context":147,"../internals/get-iterator-method":149,"../internals/is-array-iterator-method":161,"../internals/iterator-close":168,"../internals/to-length":219}],168:[function(e,v,g){var t=e("../internals/an-object");v.exports=function(o){var u=o.return;if(u!==void 0)return t(u.call(o)).value}},{"../internals/an-object":107}],169:[function(e,v,g){var t=e("../internals/object-get-prototype-of"),o=e("../internals/create-non-enumerable-property"),u=e("../internals/has"),l=e("../internals/well-known-symbol"),c=e("../internals/is-pure"),n=l("iterator"),r=!1,i=function(){return this},a,s,d;[].keys&&(d=[].keys(),"next"in d?(s=t(t(d)),s!==Object.prototype&&(a=s)):r=!0),a==null&&(a={}),!c&&!u(a,n)&&o(a,n,i),v.exports={IteratorPrototype:a,BUGGY_SAFARI_ITERATORS:r}},{"../internals/create-non-enumerable-property":131,"../internals/has":151,"../internals/is-pure":165,"../internals/object-get-prototype-of":185,"../internals/well-known-symbol":231}],170:[function(e,v,g){arguments[4][152][0].apply(g,arguments)},{dup:152}],171:[function(e,v,g){var t=e("../internals/global"),o=e("../internals/object-get-own-property-descriptor").f,u=e("../internals/task").set,l=e("../internals/engine-is-ios"),c=e("../internals/engine-is-node"),n=t.MutationObserver||t.WebKitMutationObserver,r=t.document,i=t.process,a=t.Promise,s=o(t,"queueMicrotask"),d=s&&s.value,p,h,f,m,w,k,S,x;d||(p=function(){var y,E;for(c&&(y=i.domain)&&y.exit();h;){E=h.fn,h=h.next;try{E()}catch(P){throw h?m():f=void 0,P}}f=void 0,y&&y.enter()},!l&&!c&&n&&r?(w=!0,k=r.createTextNode(""),new n(p).observe(k,{characterData:!0}),m=function(){k.data=w=!w}):a&&a.resolve?(S=a.resolve(void 0),x=S.then,m=function(){x.call(S,p)}):c?m=function(){i.nextTick(p)}:m=function(){u.call(t,p)}),v.exports=d||function(y){var E={fn:y,next:void 0};f&&(f.next=E),h||(h=E,m()),f=E}},{"../internals/engine-is-ios":139,"../internals/engine-is-node":140,"../internals/global":150,"../internals/object-get-own-property-descriptor":181,"../internals/task":214}],172:[function(e,v,g){var t=e("../internals/global");v.exports=t.Promise},{"../internals/global":150}],173:[function(e,v,g){var t=e("../internals/fails");v.exports=!!Object.getOwnPropertySymbols&&!t(function(){return!String(Symbol())})},{"../internals/fails":145}],174:[function(e,v,g){var t=e("../internals/global"),o=e("../internals/inspect-source"),u=t.WeakMap;v.exports=typeof u=="function"&&/native code/.test(o(u))},{"../internals/global":150,"../internals/inspect-source":159}],175:[function(e,v,g){var t=e("../internals/a-function"),o=function(u){var l,c;this.promise=new u(function(n,r){if(l!==void 0||c!==void 0)throw TypeError("Bad Promise constructor");l=n,c=r}),this.resolve=t(l),this.reject=t(c)};v.exports.f=function(u){return new o(u)}},{"../internals/a-function":102}],176:[function(e,v,g){var t=e("../internals/is-regexp");v.exports=function(o){if(t(o))throw TypeError("The method doesn't accept regular expressions");return o}},{"../internals/is-regexp":166}],177:[function(e,v,g){var t=e("../internals/descriptors"),o=e("../internals/fails"),u=e("../internals/object-keys"),l=e("../internals/object-get-own-property-symbols"),c=e("../internals/object-property-is-enumerable"),n=e("../internals/to-object"),r=e("../internals/indexed-object"),i=Object.assign,a=Object.defineProperty;v.exports=!i||o(function(){if(t&&i({b:1},i(a({},"a",{enumerable:!0,get:function(){a(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var s={},d={},p=Symbol(),h="abcdefghijklmnopqrst";return s[p]=7,h.split("").forEach(function(f){d[f]=f}),i({},s)[p]!=7||u(i({},d)).join("")!=h})?function(d,p){for(var h=n(d),f=arguments.length,m=1,w=l.f,k=c.f;f>m;)for(var S=r(arguments[m++]),x=w?u(S).concat(w(S)):u(S),y=x.length,E=0,P;y>E;)P=x[E++],(!t||k.call(S,P))&&(h[P]=S[P]);return h}:i},{"../internals/descriptors":136,"../internals/fails":145,"../internals/indexed-object":157,"../internals/object-get-own-property-symbols":184,"../internals/object-keys":187,"../internals/object-property-is-enumerable":188,"../internals/to-object":220}],178:[function(e,v,g){var t=e("../internals/an-object"),o=e("../internals/object-define-properties"),u=e("../internals/enum-bug-keys"),l=e("../internals/hidden-keys"),c=e("../internals/html"),n=e("../internals/document-create-element"),r=e("../internals/shared-key"),i=">",a="<",s="prototype",d="script",p=r("IE_PROTO"),h=function(){},f=function(x){return a+d+i+x+a+"/"+d+i},m=function(x){x.write(f("")),x.close();var y=x.parentWindow.Object;return x=null,y},w=function(){var x=n("iframe"),y="java"+d+":",E;return x.style.display="none",c.appendChild(x),x.src=String(y),E=x.contentWindow.document,E.open(),E.write(f("document.F=Object")),E.close(),E.F},k,S=function(){try{k=document.domain&&new ActiveXObject("htmlfile")}catch{}S=k?m(k):w();for(var x=u.length;x--;)delete S[s][u[x]];return S()};l[p]=!0,v.exports=Object.create||function(y,E){var P;return y!==null?(h[s]=t(y),P=new h,h[s]=null,P[p]=y):P=S(),E===void 0?P:o(P,E)}},{"../internals/an-object":107,"../internals/document-create-element":137,"../internals/enum-bug-keys":143,"../internals/hidden-keys":152,"../internals/html":154,"../internals/object-define-properties":179,"../internals/shared-key":207}],179:[function(e,v,g){var t=e("../internals/descriptors"),o=e("../internals/object-define-property"),u=e("../internals/an-object"),l=e("../internals/object-keys");v.exports=t?Object.defineProperties:function(n,r){u(n);for(var i=l(r),a=i.length,s=0,d;a>s;)o.f(n,d=i[s++],r[d]);return n}},{"../internals/an-object":107,"../internals/descriptors":136,"../internals/object-define-property":180,"../internals/object-keys":187}],180:[function(e,v,g){var t=e("../internals/descriptors"),o=e("../internals/ie8-dom-define"),u=e("../internals/an-object"),l=e("../internals/to-primitive"),c=Object.defineProperty;g.f=t?c:function(r,i,a){if(u(r),i=l(i,!0),u(a),o)try{return c(r,i,a)}catch{}if("get"in a||"set"in a)throw TypeError("Accessors not supported");return"value"in a&&(r[i]=a.value),r}},{"../internals/an-object":107,"../internals/descriptors":136,"../internals/ie8-dom-define":155,"../internals/to-primitive":223}],181:[function(e,v,g){var t=e("../internals/descriptors"),o=e("../internals/object-property-is-enumerable"),u=e("../internals/create-property-descriptor"),l=e("../internals/to-indexed-object"),c=e("../internals/to-primitive"),n=e("../internals/has"),r=e("../internals/ie8-dom-define"),i=Object.getOwnPropertyDescriptor;g.f=t?i:function(s,d){if(s=l(s),d=c(d,!0),r)try{return i(s,d)}catch{}if(n(s,d))return u(!o.f.call(s,d),s[d])}},{"../internals/create-property-descriptor":132,"../internals/descriptors":136,"../internals/has":151,"../internals/ie8-dom-define":155,"../internals/object-property-is-enumerable":188,"../internals/to-indexed-object":217,"../internals/to-primitive":223}],182:[function(e,v,g){var t=e("../internals/to-indexed-object"),o=e("../internals/object-get-own-property-names").f,u={}.toString,l=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(n){try{return o(n)}catch{return l.slice()}};v.exports.f=function(r){return l&&u.call(r)=="[object Window]"?c(r):o(t(r))}},{"../internals/object-get-own-property-names":183,"../internals/to-indexed-object":217}],183:[function(e,v,g){var t=e("../internals/object-keys-internal"),o=e("../internals/enum-bug-keys"),u=o.concat("length","prototype");g.f=Object.getOwnPropertyNames||function(c){return t(c,u)}},{"../internals/enum-bug-keys":143,"../internals/object-keys-internal":186}],184:[function(e,v,g){g.f=Object.getOwnPropertySymbols},{}],185:[function(e,v,g){var t=e("../internals/has"),o=e("../internals/to-object"),u=e("../internals/shared-key"),l=e("../internals/correct-prototype-getter"),c=u("IE_PROTO"),n=Object.prototype;v.exports=l?Object.getPrototypeOf:function(r){return r=o(r),t(r,c)?r[c]:typeof r.constructor=="function"&&r instanceof r.constructor?r.constructor.prototype:r instanceof Object?n:null}},{"../internals/correct-prototype-getter":129,"../internals/has":151,"../internals/shared-key":207,"../internals/to-object":220}],186:[function(e,v,g){var t=e("../internals/has"),o=e("../internals/to-indexed-object"),u=e("../internals/array-includes").indexOf,l=e("../internals/hidden-keys");v.exports=function(c,n){var r=o(c),i=0,a=[],s;for(s in r)!t(l,s)&&t(r,s)&&a.push(s);for(;n.length>i;)t(r,s=n[i++])&&(~u(a,s)||a.push(s));return a}},{"../internals/array-includes":115,"../internals/has":151,"../internals/hidden-keys":152,"../internals/to-indexed-object":217}],187:[function(e,v,g){var t=e("../internals/object-keys-internal"),o=e("../internals/enum-bug-keys");v.exports=Object.keys||function(l){return t(l,o)}},{"../internals/enum-bug-keys":143,"../internals/object-keys-internal":186}],188:[function(e,v,g){var t={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,u=o&&!t.call({1:2},1);g.f=u?function(c){var n=o(this,c);return!!n&&n.enumerable}:t},{}],189:[function(e,v,g){var t=e("../internals/an-object"),o=e("../internals/a-possible-prototype");v.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var u=!1,l={},c;try{c=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,c.call(l,[]),u=l instanceof Array}catch{}return function(r,i){return t(r),o(i),u?c.call(r,i):r.__proto__=i,r}}():void 0)},{"../internals/a-possible-prototype":103,"../internals/an-object":107}],190:[function(e,v,g){var t=e("../internals/descriptors"),o=e("../internals/object-keys"),u=e("../internals/to-indexed-object"),l=e("../internals/object-property-is-enumerable").f,c=function(n){return function(r){for(var i=u(r),a=o(i),s=a.length,d=0,p=[],h;s>d;)h=a[d++],(!t||l.call(i,h))&&p.push(n?[h,i[h]]:i[h]);return p}};v.exports={entries:c(!0),values:c(!1)}},{"../internals/descriptors":136,"../internals/object-keys":187,"../internals/object-property-is-enumerable":188,"../internals/to-indexed-object":217}],191:[function(e,v,g){var t=e("../internals/to-string-tag-support"),o=e("../internals/classof");v.exports=t?{}.toString:function(){return"[object "+o(this)+"]"}},{"../internals/classof":126,"../internals/to-string-tag-support":224}],192:[function(e,v,g){var t=e("../internals/get-built-in"),o=e("../internals/object-get-own-property-names"),u=e("../internals/object-get-own-property-symbols"),l=e("../internals/an-object");v.exports=t("Reflect","ownKeys")||function(n){var r=o.f(l(n)),i=u.f;return i?r.concat(i(n)):r}},{"../internals/an-object":107,"../internals/get-built-in":148,"../internals/object-get-own-property-names":183,"../internals/object-get-own-property-symbols":184}],193:[function(e,v,g){var t=e("../internals/global");v.exports=t},{"../internals/global":150}],194:[function(e,v,g){v.exports=function(t){try{return{error:!1,value:t()}}catch(o){return{error:!0,value:o}}}},{}],195:[function(e,v,g){var t=e("../internals/an-object"),o=e("../internals/is-object"),u=e("../internals/new-promise-capability");v.exports=function(l,c){if(t(l),o(c)&&c.constructor===l)return c;var n=u.f(l),r=n.resolve;return r(c),n.promise}},{"../internals/an-object":107,"../internals/is-object":164,"../internals/new-promise-capability":175}],196:[function(e,v,g){var t=e("../internals/redefine");v.exports=function(o,u,l){for(var c in u)t(o,c,u[c],l);return o}},{"../internals/redefine":197}],197:[function(e,v,g){var t=e("../internals/global"),o=e("../internals/create-non-enumerable-property"),u=e("../internals/has"),l=e("../internals/set-global"),c=e("../internals/inspect-source"),n=e("../internals/internal-state"),r=n.get,i=n.enforce,a=String(String).split("String");(v.exports=function(s,d,p,h){var f=h?!!h.unsafe:!1,m=h?!!h.enumerable:!1,w=h?!!h.noTargetGet:!1,k;if(typeof p=="function"&&(typeof d=="string"&&!u(p,"name")&&o(p,"name",d),k=i(p),k.source||(k.source=a.join(typeof d=="string"?d:""))),s===t){m?s[d]=p:l(d,p);return}else f?!w&&s[d]&&(m=!0):delete s[d];m?s[d]=p:o(s,d,p)})(Function.prototype,"toString",function(){return typeof this=="function"&&r(this).source||c(this)})},{"../internals/create-non-enumerable-property":131,"../internals/global":150,"../internals/has":151,"../internals/inspect-source":159,"../internals/internal-state":160,"../internals/set-global":204}],198:[function(e,v,g){var t=e("./classof-raw"),o=e("./regexp-exec");v.exports=function(u,l){var c=u.exec;if(typeof c=="function"){var n=c.call(u,l);if(typeof n!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return n}if(t(u)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return o.call(u,l)}},{"./classof-raw":125,"./regexp-exec":199}],199:[function(e,v,g){var t=e("./regexp-flags"),o=e("./regexp-sticky-helpers"),u=RegExp.prototype.exec,l=String.prototype.replace,c=u,n=function(){var s=/a/,d=/b*/g;return u.call(s,"a"),u.call(d,"a"),s.lastIndex!==0||d.lastIndex!==0}(),r=o.UNSUPPORTED_Y||o.BROKEN_CARET,i=/()??/.exec("")[1]!==void 0,a=n||i||r;a&&(c=function(d){var p=this,h,f,m,w,k=r&&p.sticky,S=t.call(p),x=p.source,y=0,E=d;return k&&(S=S.replace("y",""),S.indexOf("g")===-1&&(S+="g"),E=String(d).slice(p.lastIndex),p.lastIndex>0&&(!p.multiline||p.multiline&&d[p.lastIndex-1]!==` +`)&&(x="(?: "+x+")",E=" "+E,y++),f=new RegExp("^(?:"+x+")",S)),i&&(f=new RegExp("^"+x+"$(?!\\s)",S)),n&&(h=p.lastIndex),m=u.call(k?f:p,E),k?m?(m.input=m.input.slice(y),m[0]=m[0].slice(y),m.index=p.lastIndex,p.lastIndex+=m[0].length):p.lastIndex=0:n&&m&&(p.lastIndex=p.global?m.index+m[0].length:h),i&&m&&m.length>1&&l.call(m[0],f,function(){for(w=1;w=a?l?"":void 0:(s=r.charCodeAt(i),s<55296||s>56319||i+1===a||(d=r.charCodeAt(i+1))<56320||d>57343?l?r.charAt(i):s:l?r.slice(i,i+2):(s-55296<<10)+(d-56320)+65536)}};v.exports={codeAt:u(!1),charAt:u(!0)}},{"../internals/require-object-coercible":202,"../internals/to-integer":218}],212:[function(e,v,g){var t=e("../internals/fails"),o=e("../internals/whitespaces"),u="\u200B\x85\u180E";v.exports=function(l){return t(function(){return!!o[l]()||u[l]()!=u||o[l].name!==l})}},{"../internals/fails":145,"../internals/whitespaces":232}],213:[function(e,v,g){var t=e("../internals/require-object-coercible"),o=e("../internals/whitespaces"),u="["+o+"]",l=RegExp("^"+u+u+"*"),c=RegExp(u+u+"*$"),n=function(r){return function(i){var a=String(t(i));return r&1&&(a=a.replace(l,"")),r&2&&(a=a.replace(c,"")),a}};v.exports={start:n(1),end:n(2),trim:n(3)}},{"../internals/require-object-coercible":202,"../internals/whitespaces":232}],214:[function(e,v,g){var t=e("../internals/global"),o=e("../internals/fails"),u=e("../internals/function-bind-context"),l=e("../internals/html"),c=e("../internals/document-create-element"),n=e("../internals/engine-is-ios"),r=e("../internals/engine-is-node"),i=t.location,a=t.setImmediate,s=t.clearImmediate,d=t.process,p=t.MessageChannel,h=t.Dispatch,f=0,m={},w="onreadystatechange",k,S,x,y=function(D){if(m.hasOwnProperty(D)){var O=m[D];delete m[D],O()}},E=function(D){return function(){y(D)}},P=function(D){y(D.data)},M=function(D){t.postMessage(D+"",i.protocol+"//"+i.host)};(!a||!s)&&(a=function(O){for(var b=[],A=1;arguments.length>A;)b.push(arguments[A++]);return m[++f]=function(){(typeof O=="function"?O:Function(O)).apply(void 0,b)},k(f),f},s=function(O){delete m[O]},r?k=function(D){d.nextTick(E(D))}:h&&h.now?k=function(D){h.now(E(D))}:p&&!n?(S=new p,x=S.port2,S.port1.onmessage=P,k=u(x.postMessage,x,1)):t.addEventListener&&typeof postMessage=="function"&&!t.importScripts&&i&&i.protocol!=="file:"&&!o(M)?(k=M,t.addEventListener("message",P,!1)):w in c("script")?k=function(D){l.appendChild(c("script"))[w]=function(){l.removeChild(this),y(D)}}:k=function(D){setTimeout(E(D),0)}),v.exports={set:a,clear:s}},{"../internals/document-create-element":137,"../internals/engine-is-ios":139,"../internals/engine-is-node":140,"../internals/fails":145,"../internals/function-bind-context":147,"../internals/global":150,"../internals/html":154}],215:[function(e,v,g){var t=e("../internals/to-integer"),o=Math.max,u=Math.min;v.exports=function(l,c){var n=t(l);return n<0?o(n+c,0):u(n,c)}},{"../internals/to-integer":218}],216:[function(e,v,g){var t=e("../internals/to-integer"),o=e("../internals/to-length");v.exports=function(u){if(u===void 0)return 0;var l=t(u),c=o(l);if(l!==c)throw RangeError("Wrong length or index");return c}},{"../internals/to-integer":218,"../internals/to-length":219}],217:[function(e,v,g){var t=e("../internals/indexed-object"),o=e("../internals/require-object-coercible");v.exports=function(u){return t(o(u))}},{"../internals/indexed-object":157,"../internals/require-object-coercible":202}],218:[function(e,v,g){var t=Math.ceil,o=Math.floor;v.exports=function(u){return isNaN(u=+u)?0:(u>0?o:t)(u)}},{}],219:[function(e,v,g){var t=e("../internals/to-integer"),o=Math.min;v.exports=function(u){return u>0?o(t(u),9007199254740991):0}},{"../internals/to-integer":218}],220:[function(e,v,g){var t=e("../internals/require-object-coercible");v.exports=function(o){return Object(t(o))}},{"../internals/require-object-coercible":202}],221:[function(e,v,g){var t=e("../internals/to-positive-integer");v.exports=function(o,u){var l=t(o);if(l%u)throw RangeError("Wrong offset");return l}},{"../internals/to-positive-integer":222}],222:[function(e,v,g){var t=e("../internals/to-integer");v.exports=function(o){var u=t(o);if(u<0)throw RangeError("The argument can't be less than 0");return u}},{"../internals/to-integer":218}],223:[function(e,v,g){var t=e("../internals/is-object");v.exports=function(o,u){if(!t(o))return o;var l,c;if(u&&typeof(l=o.toString)=="function"&&!t(c=l.call(o))||typeof(l=o.valueOf)=="function"&&!t(c=l.call(o))||!u&&typeof(l=o.toString)=="function"&&!t(c=l.call(o)))return c;throw TypeError("Can't convert object to primitive value")}},{"../internals/is-object":164}],224:[function(e,v,g){var t=e("../internals/well-known-symbol"),o=t("toStringTag"),u={};u[o]="z",v.exports=String(u)==="[object z]"},{"../internals/well-known-symbol":231}],225:[function(e,v,g){var t=e("../internals/export"),o=e("../internals/global"),u=e("../internals/descriptors"),l=e("../internals/typed-array-constructors-require-wrappers"),c=e("../internals/array-buffer-view-core"),n=e("../internals/array-buffer"),r=e("../internals/an-instance"),i=e("../internals/create-property-descriptor"),a=e("../internals/create-non-enumerable-property"),s=e("../internals/to-length"),d=e("../internals/to-index"),p=e("../internals/to-offset"),h=e("../internals/to-primitive"),f=e("../internals/has"),m=e("../internals/classof"),w=e("../internals/is-object"),k=e("../internals/object-create"),S=e("../internals/object-set-prototype-of"),x=e("../internals/object-get-own-property-names").f,y=e("../internals/typed-array-from"),E=e("../internals/array-iteration").forEach,P=e("../internals/set-species"),M=e("../internals/object-define-property"),D=e("../internals/object-get-own-property-descriptor"),O=e("../internals/internal-state"),b=e("../internals/inherit-if-required"),A=O.get,W=O.set,K=M.f,te=D.f,X=Math.round,q=o.RangeError,re=n.ArrayBuffer,V=n.DataView,G=c.NATIVE_ARRAY_BUFFER_VIEWS,U=c.TYPED_ARRAY_TAG,L=c.TypedArray,B=c.TypedArrayPrototype,Y=c.aTypedArrayConstructor,Q=c.isTypedArray,ee="BYTES_PER_ELEMENT",$="Wrong length",ie=function(z,N){for(var T=0,_=N.length,j=new(Y(z))(_);_>T;)j[T]=N[T++];return j},F=function(z,N){K(z,N,{get:function(){return A(this)[N]}})},I=function(z){var N;return z instanceof re||(N=m(z))=="ArrayBuffer"||N=="SharedArrayBuffer"},C=function(z,N){return Q(z)&&typeof N!="symbol"&&N in z&&String(+N)==String(N)},R=function(N,T){return C(N,T=h(T,!0))?i(2,N[T]):te(N,T)},Z=function(N,T,_){return C(N,T=h(T,!0))&&w(_)&&f(_,"value")&&!f(_,"get")&&!f(_,"set")&&!_.configurable&&(!f(_,"writable")||_.writable)&&(!f(_,"enumerable")||_.enumerable)?(N[T]=_.value,N):K(N,T,_)};u?(G||(D.f=R,M.f=Z,F(B,"buffer"),F(B,"byteOffset"),F(B,"byteLength"),F(B,"length")),t({target:"Object",stat:!0,forced:!G},{getOwnPropertyDescriptor:R,defineProperty:Z}),v.exports=function(z,N,T){var _=z.match(/\d+$/)[0]/8,j=z+(T?"Clamped":"")+"Array",H="get"+z,J="set"+z,ae=o[j],oe=ae,de=oe&&oe.prototype,ge={},ve=function(se,ne){var le=A(se);return le.view[H](ne*_+le.byteOffset,!0)},ue=function(se,ne,le){var he=A(se);T&&(le=(le=X(le))<0?0:le>255?255:le&255),he.view[J](ne*_+he.byteOffset,le,!0)},ye=function(se,ne){K(se,ne,{get:function(){return ve(this,ne)},set:function(le){return ue(this,ne,le)},enumerable:!0})};G?l&&(oe=N(function(se,ne,le,he){return r(se,oe,j),b(function(){return w(ne)?I(ne)?he!==void 0?new ae(ne,p(le,_),he):le!==void 0?new ae(ne,p(le,_)):new ae(ne):Q(ne)?ie(oe,ne):y.call(oe,ne):new ae(d(ne))}(),se,oe)}),S&&S(oe,L),E(x(ae),function(se){se in oe||a(oe,se,ae[se])}),oe.prototype=de):(oe=N(function(se,ne,le,he){r(se,oe,j);var me=0,ce=0,fe,pe,be;if(!w(ne))be=d(ne),pe=be*_,fe=new re(pe);else if(I(ne)){fe=ne,ce=p(le,_);var we=ne.byteLength;if(he===void 0){if(we%_||(pe=we-ce,pe<0))throw q($)}else if(pe=s(he)*_,pe+ce>we)throw q($);be=pe/_}else return Q(ne)?ie(oe,ne):y.call(oe,ne);for(W(se,{buffer:fe,byteOffset:ce,byteLength:pe,length:be,view:new V(fe)});me1?arguments[1]:void 0,p=d!==void 0,h=u(a),f,m,w,k,S,x;if(h!=null&&!l(h))for(S=h.call(a),x=S.next,a=[];!(k=x.call(S)).done;)a.push(k.value);for(p&&s>2&&(d=c(d,arguments[2],2)),m=o(a.length),w=new(n(this))(m),f=0;m>f;f++)w[f]=p?d(a[f],f):a[f];return w}},{"../internals/array-buffer-view-core":109,"../internals/function-bind-context":147,"../internals/get-iterator-method":149,"../internals/is-array-iterator-method":161,"../internals/to-length":219,"../internals/to-object":220}],228:[function(e,v,g){var t=0,o=Math.random();v.exports=function(u){return"Symbol("+String(u===void 0?"":u)+")_"+(++t+o).toString(36)}},{}],229:[function(e,v,g){var t=e("../internals/native-symbol");v.exports=t&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},{"../internals/native-symbol":173}],230:[function(e,v,g){var t=e("../internals/well-known-symbol");g.f=t},{"../internals/well-known-symbol":231}],231:[function(e,v,g){var t=e("../internals/global"),o=e("../internals/shared"),u=e("../internals/has"),l=e("../internals/uid"),c=e("../internals/native-symbol"),n=e("../internals/use-symbol-as-uid"),r=o("wks"),i=t.Symbol,a=n?i:i&&i.withoutSetter||l;v.exports=function(s){return u(r,s)||(c&&u(i,s)?r[s]=i[s]:r[s]=a("Symbol."+s)),r[s]}},{"../internals/global":150,"../internals/has":151,"../internals/native-symbol":173,"../internals/shared":209,"../internals/uid":228,"../internals/use-symbol-as-uid":229}],232:[function(e,v,g){v.exports=` +\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},{}],233:[function(e,v,g){var t=e("../internals/export"),o=e("../internals/fails"),u=e("../internals/array-buffer"),l=e("../internals/an-object"),c=e("../internals/to-absolute-index"),n=e("../internals/to-length"),r=e("../internals/species-constructor"),i=u.ArrayBuffer,a=u.DataView,s=i.prototype.slice,d=o(function(){return!new i(2).slice(1,void 0).byteLength});t({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:d},{slice:function(h,f){if(s!==void 0&&f===void 0)return s.call(l(this),h);for(var m=l(this).byteLength,w=c(h,m),k=c(f===void 0?m:f,m),S=new(r(this,i))(n(k-w)),x=new a(this),y=new a(S),E=0;w=51||!o(function(){var x=[];return x[p]=!1,x.concat()[0]!==x}),w=a("concat"),k=function(x){if(!l(x))return!1;var y=x[p];return y!==void 0?!!y:u(x)},S=!m||!w;t({target:"Array",proto:!0,forced:S},{concat:function(y){var E=c(this),P=i(E,0),M=0,D,O,b,A,W;for(D=-1,b=arguments.length;Dh)throw TypeError(f);for(O=0;O=h)throw TypeError(f);r(P,M++,W)}return P.length=M,P}})},{"../internals/array-method-has-species-support":118,"../internals/array-species-create":122,"../internals/create-property":133,"../internals/engine-v8-version":142,"../internals/export":144,"../internals/fails":145,"../internals/is-array":162,"../internals/is-object":164,"../internals/to-length":219,"../internals/to-object":220,"../internals/well-known-symbol":231}],235:[function(e,v,g){var t=e("../internals/export"),o=e("../internals/array-fill"),u=e("../internals/add-to-unscopables");t({target:"Array",proto:!0},{fill:o}),u("fill")},{"../internals/add-to-unscopables":104,"../internals/array-fill":112,"../internals/export":144}],236:[function(e,v,g){var t=e("../internals/export"),o=e("../internals/array-iteration").filter,u=e("../internals/array-method-has-species-support"),l=e("../internals/array-method-uses-to-length"),c=u("filter"),n=l("filter");t({target:"Array",proto:!0,forced:!c||!n},{filter:function(i){return o(this,i,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":116,"../internals/array-method-has-species-support":118,"../internals/array-method-uses-to-length":120,"../internals/export":144}],237:[function(e,v,g){var t=e("../internals/export"),o=e("../internals/array-iteration").find,u=e("../internals/add-to-unscopables"),l=e("../internals/array-method-uses-to-length"),c="find",n=!0,r=l(c);c in[]&&Array(1)[c](function(){n=!1}),t({target:"Array",proto:!0,forced:n||!r},{find:function(a){return o(this,a,arguments.length>1?arguments[1]:void 0)}}),u(c)},{"../internals/add-to-unscopables":104,"../internals/array-iteration":116,"../internals/array-method-uses-to-length":120,"../internals/export":144}],238:[function(e,v,g){var t=e("../internals/export"),o=e("../internals/array-for-each");t({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},{"../internals/array-for-each":113,"../internals/export":144}],239:[function(e,v,g){var t=e("../internals/export"),o=e("../internals/array-from"),u=e("../internals/check-correctness-of-iteration"),l=!u(function(c){Array.from(c)});t({target:"Array",stat:!0,forced:l},{from:o})},{"../internals/array-from":114,"../internals/check-correctness-of-iteration":124,"../internals/export":144}],240:[function(e,v,g){var t=e("../internals/export"),o=e("../internals/array-includes").includes,u=e("../internals/add-to-unscopables"),l=e("../internals/array-method-uses-to-length"),c=l("indexOf",{ACCESSORS:!0,1:0});t({target:"Array",proto:!0,forced:!c},{includes:function(r){return o(this,r,arguments.length>1?arguments[1]:void 0)}}),u("includes")},{"../internals/add-to-unscopables":104,"../internals/array-includes":115,"../internals/array-method-uses-to-length":120,"../internals/export":144}],241:[function(e,v,g){var t=e("../internals/export"),o=e("../internals/array-includes").indexOf,u=e("../internals/array-method-is-strict"),l=e("../internals/array-method-uses-to-length"),c=[].indexOf,n=!!c&&1/[1].indexOf(1,-0)<0,r=u("indexOf"),i=l("indexOf",{ACCESSORS:!0,1:0});t({target:"Array",proto:!0,forced:n||!r||!i},{indexOf:function(s){return n?c.apply(this,arguments)||0:o(this,s,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-includes":115,"../internals/array-method-is-strict":119,"../internals/array-method-uses-to-length":120,"../internals/export":144}],242:[function(e,v,g){var t=e("../internals/to-indexed-object"),o=e("../internals/add-to-unscopables"),u=e("../internals/iterators"),l=e("../internals/internal-state"),c=e("../internals/define-iterator"),n="Array Iterator",r=l.set,i=l.getterFor(n);v.exports=c(Array,"Array",function(a,s){r(this,{type:n,target:t(a),index:0,kind:s})},function(){var a=i(this),s=a.target,d=a.kind,p=a.index++;return!s||p>=s.length?(a.target=void 0,{value:void 0,done:!0}):d=="keys"?{value:p,done:!1}:d=="values"?{value:s[p],done:!1}:{value:[p,s[p]],done:!1}},"values"),u.Arguments=u.Array,o("keys"),o("values"),o("entries")},{"../internals/add-to-unscopables":104,"../internals/define-iterator":134,"../internals/internal-state":160,"../internals/iterators":170,"../internals/to-indexed-object":217}],243:[function(e,v,g){var t=e("../internals/export"),o=e("../internals/indexed-object"),u=e("../internals/to-indexed-object"),l=e("../internals/array-method-is-strict"),c=[].join,n=o!=Object,r=l("join",",");t({target:"Array",proto:!0,forced:n||!r},{join:function(a){return c.call(u(this),a===void 0?",":a)}})},{"../internals/array-method-is-strict":119,"../internals/export":144,"../internals/indexed-object":157,"../internals/to-indexed-object":217}],244:[function(e,v,g){var t=e("../internals/export"),o=e("../internals/array-last-index-of");t({target:"Array",proto:!0,forced:o!==[].lastIndexOf},{lastIndexOf:o})},{"../internals/array-last-index-of":117,"../internals/export":144}],245:[function(e,v,g){var t=e("../internals/export"),o=e("../internals/array-iteration").map,u=e("../internals/array-method-has-species-support"),l=e("../internals/array-method-uses-to-length"),c=u("map"),n=l("map");t({target:"Array",proto:!0,forced:!c||!n},{map:function(i){return o(this,i,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":116,"../internals/array-method-has-species-support":118,"../internals/array-method-uses-to-length":120,"../internals/export":144}],246:[function(e,v,g){var t=e("../internals/export"),o=e("../internals/is-object"),u=e("../internals/is-array"),l=e("../internals/to-absolute-index"),c=e("../internals/to-length"),n=e("../internals/to-indexed-object"),r=e("../internals/create-property"),i=e("../internals/well-known-symbol"),a=e("../internals/array-method-has-species-support"),s=e("../internals/array-method-uses-to-length"),d=a("slice"),p=s("slice",{ACCESSORS:!0,0:0,1:2}),h=i("species"),f=[].slice,m=Math.max;t({target:"Array",proto:!0,forced:!d||!p},{slice:function(k,S){var x=n(this),y=c(x.length),E=l(k,y),P=l(S===void 0?y:S,y),M,D,O;if(u(x)&&(M=x.constructor,typeof M=="function"&&(M===Array||u(M.prototype))?M=void 0:o(M)&&(M=M[h],M===null&&(M=void 0)),M===Array||M===void 0))return f.call(x,E,P);for(D=new(M===void 0?Array:M)(m(P-E,0)),O=0;Ef)throw TypeError(m);for(O=n(x,D),b=0;by-D+M;b--)delete x[b-1]}else if(M>D)for(b=y-D;b>E;b--)A=b+D-1,W=b+M-1,A in x?x[W]=x[A]:delete x[W];for(b=0;b2){if(O=f(O),b=O.charCodeAt(0),b===43||b===45){if(A=O.charCodeAt(2),A===88||A===120)return NaN}else if(b===48){switch(O.charCodeAt(1)){case 66:case 98:W=2,K=49;break;case 79:case 111:W=8,K=55;break;default:return+O}for(te=O.slice(2),X=te.length,q=0;qK)return NaN;return parseInt(te,W)}}return+O};if(u(m,!w(" 0o1")||!w("0b1")||w("+0x1"))){for(var y=function(O){var b=arguments.length<1?0:O,A=this;return A instanceof y&&(S?a(function(){k.valueOf.call(A)}):n(A)!=m)?r(new w(x(b)),A,y):x(b)},E=t?d(w):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),P=0,M;E.length>P;P++)c(w,M=E[P])&&!c(y,M)&&h(y,M,p(w,M));y.prototype=k,k.constructor=y,l(o,m,y)}},{"../internals/classof-raw":125,"../internals/descriptors":136,"../internals/fails":145,"../internals/global":150,"../internals/has":151,"../internals/inherit-if-required":158,"../internals/is-forced":163,"../internals/object-create":178,"../internals/object-define-property":180,"../internals/object-get-own-property-descriptor":181,"../internals/object-get-own-property-names":183,"../internals/redefine":197,"../internals/string-trim":213,"../internals/to-primitive":223}],251:[function(e,v,g){var t=e("../internals/export"),o=e("../internals/object-assign");t({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},{"../internals/export":144,"../internals/object-assign":177}],252:[function(e,v,g){var t=e("../internals/export"),o=e("../internals/object-to-array").entries;t({target:"Object",stat:!0},{entries:function(l){return o(l)}})},{"../internals/export":144,"../internals/object-to-array":190}],253:[function(e,v,g){var t=e("../internals/export"),o=e("../internals/to-object"),u=e("../internals/object-keys"),l=e("../internals/fails"),c=l(function(){u(1)});t({target:"Object",stat:!0,forced:c},{keys:function(r){return u(o(r))}})},{"../internals/export":144,"../internals/fails":145,"../internals/object-keys":187,"../internals/to-object":220}],254:[function(e,v,g){var t=e("../internals/to-string-tag-support"),o=e("../internals/redefine"),u=e("../internals/object-to-string");t||o(Object.prototype,"toString",u,{unsafe:!0})},{"../internals/object-to-string":191,"../internals/redefine":197,"../internals/to-string-tag-support":224}],255:[function(e,v,g){var t=e("../internals/export"),o=e("../internals/is-pure"),u=e("../internals/global"),l=e("../internals/get-built-in"),c=e("../internals/native-promise-constructor"),n=e("../internals/redefine"),r=e("../internals/redefine-all"),i=e("../internals/set-to-string-tag"),a=e("../internals/set-species"),s=e("../internals/is-object"),d=e("../internals/a-function"),p=e("../internals/an-instance"),h=e("../internals/inspect-source"),f=e("../internals/iterate"),m=e("../internals/check-correctness-of-iteration"),w=e("../internals/species-constructor"),k=e("../internals/task").set,S=e("../internals/microtask"),x=e("../internals/promise-resolve"),y=e("../internals/host-report-errors"),E=e("../internals/new-promise-capability"),P=e("../internals/perform"),M=e("../internals/internal-state"),D=e("../internals/is-forced"),O=e("../internals/well-known-symbol"),b=e("../internals/engine-is-node"),A=e("../internals/engine-v8-version"),W=O("species"),K="Promise",te=M.get,X=M.set,q=M.getterFor(K),re=c,V=u.TypeError,G=u.document,U=u.process,L=l("fetch"),B=E.f,Y=B,Q=!!(G&&G.createEvent&&u.dispatchEvent),ee=typeof PromiseRejectionEvent=="function",$="unhandledrejection",ie="rejectionhandled",F=0,I=1,C=2,R=1,Z=2,z,N,T,_,j=D(K,function(){var ne=h(re)!==String(re);if(!ne&&(A===66||!b&&!ee)||o&&!re.prototype.finally)return!0;if(A>=51&&/native code/.test(re))return!1;var le=re.resolve(1),he=function(ce){ce(function(){},function(){})},me=le.constructor={};return me[W]=he,!(le.then(function(){})instanceof he)}),H=j||!m(function(ne){re.all(ne).catch(function(){})}),J=function(ne){var le;return s(ne)&&typeof(le=ne.then)=="function"?le:!1},ae=function(ne,le){if(!ne.notified){ne.notified=!0;var he=ne.reactions;S(function(){for(var me=ne.value,ce=ne.state==I,fe=0;he.length>fe;){var pe=he[fe++],be=ce?pe.ok:pe.fail,we=pe.resolve,xe=pe.reject,Te=pe.domain,_e,Ee,Se;try{be?(ce||(ne.rejection===Z&&ve(ne),ne.rejection=R),be===!0?_e=me:(Te&&Te.enter(),_e=be(me),Te&&(Te.exit(),Se=!0)),_e===pe.promise?xe(V("Promise-chain cycle")):(Ee=J(_e))?Ee.call(_e,we,xe):we(_e)):xe(me)}catch(je){Te&&!Se&&Te.exit(),xe(je)}}ne.reactions=[],ne.notified=!1,le&&!ne.rejection&&de(ne)})}},oe=function(ne,le,he){var me,ce;Q?(me=G.createEvent("Event"),me.promise=le,me.reason=he,me.initEvent(ne,!1,!0),u.dispatchEvent(me)):me={promise:le,reason:he},!ee&&(ce=u["on"+ne])?ce(me):ne===$&&y("Unhandled promise rejection",he)},de=function(ne){k.call(u,function(){var le=ne.facade,he=ne.value,me=ge(ne),ce;if(me&&(ce=P(function(){b?U.emit("unhandledRejection",he,le):oe($,le,he)}),ne.rejection=b||ge(ne)?Z:R,ce.error))throw ce.value})},ge=function(ne){return ne.rejection!==R&&!ne.parent},ve=function(ne){k.call(u,function(){var le=ne.facade;b?U.emit("rejectionHandled",le):oe(ie,le,ne.value)})},ue=function(ne,le,he){return function(me){ne(le,me,he)}},ye=function(ne,le,he){ne.done||(ne.done=!0,he&&(ne=he),ne.value=le,ne.state=C,ae(ne,!0))},se=function(ne,le,he){if(!ne.done){ne.done=!0,he&&(ne=he);try{if(ne.facade===le)throw V("Promise can't be resolved itself");var me=J(le);me?S(function(){var ce={done:!1};try{me.call(le,ue(se,ce,ne),ue(ye,ce,ne))}catch(fe){ye(ce,fe,ne)}}):(ne.value=le,ne.state=I,ae(ne,!1))}catch(ce){ye({done:!1},ce,ne)}}};j&&(re=function(le){p(this,re,K),d(le),z.call(this);var he=te(this);try{le(ue(se,he),ue(ye,he))}catch(me){ye(he,me)}},z=function(le){X(this,{type:K,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:F,value:void 0})},z.prototype=r(re.prototype,{then:function(le,he){var me=q(this),ce=B(w(this,re));return ce.ok=typeof le=="function"?le:!0,ce.fail=typeof he=="function"&&he,ce.domain=b?U.domain:void 0,me.parent=!0,me.reactions.push(ce),me.state!=F&&ae(me,!1),ce.promise},catch:function(ne){return this.then(void 0,ne)}}),N=function(){var ne=new z,le=te(ne);this.promise=ne,this.resolve=ue(se,le),this.reject=ue(ye,le)},E.f=B=function(ne){return ne===re||ne===T?new N(ne):Y(ne)},!o&&typeof c=="function"&&(_=c.prototype.then,n(c.prototype,"then",function(le,he){var me=this;return new re(function(ce,fe){_.call(me,ce,fe)}).then(le,he)},{unsafe:!0}),typeof L=="function"&&t({global:!0,enumerable:!0,forced:!0},{fetch:function(le){return x(re,L.apply(u,arguments))}}))),t({global:!0,wrap:!0,forced:j},{Promise:re}),i(re,K,!1,!0),a(K),T=l(K),t({target:K,stat:!0,forced:j},{reject:function(le){var he=B(this);return he.reject.call(void 0,le),he.promise}}),t({target:K,stat:!0,forced:o||j},{resolve:function(le){return x(o&&this===T?re:this,le)}}),t({target:K,stat:!0,forced:H},{all:function(le){var he=this,me=B(he),ce=me.resolve,fe=me.reject,pe=P(function(){var be=d(he.resolve),we=[],xe=0,Te=1;f(le,function(_e){var Ee=xe++,Se=!1;we.push(void 0),Te++,be.call(he,_e).then(function(je){Se||(Se=!0,we[Ee]=je,--Te||ce(we))},fe)}),--Te||ce(we)});return pe.error&&fe(pe.value),me.promise},race:function(le){var he=this,me=B(he),ce=me.reject,fe=P(function(){var pe=d(he.resolve);f(le,function(be){pe.call(he,be).then(me.resolve,ce)})});return fe.error&&ce(fe.value),me.promise}})},{"../internals/a-function":102,"../internals/an-instance":106,"../internals/check-correctness-of-iteration":124,"../internals/engine-is-node":140,"../internals/engine-v8-version":142,"../internals/export":144,"../internals/get-built-in":148,"../internals/global":150,"../internals/host-report-errors":153,"../internals/inspect-source":159,"../internals/internal-state":160,"../internals/is-forced":163,"../internals/is-object":164,"../internals/is-pure":165,"../internals/iterate":167,"../internals/microtask":171,"../internals/native-promise-constructor":172,"../internals/new-promise-capability":175,"../internals/perform":194,"../internals/promise-resolve":195,"../internals/redefine":197,"../internals/redefine-all":196,"../internals/set-species":205,"../internals/set-to-string-tag":206,"../internals/species-constructor":210,"../internals/task":214,"../internals/well-known-symbol":231}],256:[function(e,v,g){var t=e("../internals/export"),o=e("../internals/regexp-exec");t({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},{"../internals/export":144,"../internals/regexp-exec":199}],257:[function(e,v,g){var t=e("../internals/redefine"),o=e("../internals/an-object"),u=e("../internals/fails"),l=e("../internals/regexp-flags"),c="toString",n=RegExp.prototype,r=n[c],i=u(function(){return r.call({source:"a",flags:"b"})!="/a/b"}),a=r.name!=c;(i||a)&&t(RegExp.prototype,c,function(){var d=o(this),p=String(d.source),h=d.flags,f=String(h===void 0&&d instanceof RegExp&&!("flags"in n)?l.call(d):h);return"/"+p+"/"+f},{unsafe:!0})},{"../internals/an-object":107,"../internals/fails":145,"../internals/redefine":197,"../internals/regexp-flags":200}],258:[function(e,v,g){var t=e("../internals/export"),o=e("../internals/not-a-regexp"),u=e("../internals/require-object-coercible"),l=e("../internals/correct-is-regexp-logic");t({target:"String",proto:!0,forced:!l("includes")},{includes:function(n){return!!~String(u(this)).indexOf(o(n),arguments.length>1?arguments[1]:void 0)}})},{"../internals/correct-is-regexp-logic":128,"../internals/export":144,"../internals/not-a-regexp":176,"../internals/require-object-coercible":202}],259:[function(e,v,g){var t=e("../internals/string-multibyte").charAt,o=e("../internals/internal-state"),u=e("../internals/define-iterator"),l="String Iterator",c=o.set,n=o.getterFor(l);u(String,"String",function(r){c(this,{type:l,string:String(r),index:0})},function(){var i=n(this),a=i.string,s=i.index,d;return s>=a.length?{value:void 0,done:!0}:(d=t(a,s),i.index+=d.length,{value:d,done:!1})})},{"../internals/define-iterator":134,"../internals/internal-state":160,"../internals/string-multibyte":211}],260:[function(e,v,g){var t=e("../internals/fix-regexp-well-known-symbol-logic"),o=e("../internals/an-object"),u=e("../internals/to-length"),l=e("../internals/require-object-coercible"),c=e("../internals/advance-string-index"),n=e("../internals/regexp-exec-abstract");t("match",1,function(r,i,a){return[function(d){var p=l(this),h=d==null?void 0:d[r];return h!==void 0?h.call(d,p):new RegExp(d)[r](String(p))},function(s){var d=a(i,s,this);if(d.done)return d.value;var p=o(s),h=String(this);if(!p.global)return n(p,h);var f=p.unicode;p.lastIndex=0;for(var m=[],w=0,k;(k=n(p,h))!==null;){var S=String(k[0]);m[w]=S,S===""&&(p.lastIndex=c(h,u(p.lastIndex),f)),w++}return w===0?null:m}]})},{"../internals/advance-string-index":105,"../internals/an-object":107,"../internals/fix-regexp-well-known-symbol-logic":146,"../internals/regexp-exec-abstract":198,"../internals/require-object-coercible":202,"../internals/to-length":219}],261:[function(e,v,g){var t=e("../internals/fix-regexp-well-known-symbol-logic"),o=e("../internals/an-object"),u=e("../internals/to-object"),l=e("../internals/to-length"),c=e("../internals/to-integer"),n=e("../internals/require-object-coercible"),r=e("../internals/advance-string-index"),i=e("../internals/regexp-exec-abstract"),a=Math.max,s=Math.min,d=Math.floor,p=/\$([$&'`]|\d\d?|<[^>]*>)/g,h=/\$([$&'`]|\d\d?)/g,f=function(m){return m===void 0?m:String(m)};t("replace",2,function(m,w,k,S){var x=S.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,y=S.REPLACE_KEEPS_$0,E=x?"$":"$0";return[function(D,O){var b=n(this),A=D==null?void 0:D[m];return A!==void 0?A.call(D,b,O):w.call(String(b),D,O)},function(M,D){if(!x&&y||typeof D=="string"&&D.indexOf(E)===-1){var O=k(w,M,this,D);if(O.done)return O.value}var b=o(M),A=String(this),W=typeof D=="function";W||(D=String(D));var K=b.global;if(K){var te=b.unicode;b.lastIndex=0}for(var X=[];;){var q=i(b,A);if(q===null||(X.push(q),!K))break;var re=String(q[0]);re===""&&(b.lastIndex=r(A,l(b.lastIndex),te))}for(var V="",G=0,U=0;U=G&&(V+=A.slice(G,B)+ie,G=B+L.length)}return V+A.slice(G)}];function P(M,D,O,b,A,W){var K=O+M.length,te=b.length,X=h;return A!==void 0&&(A=u(A),X=p),w.call(W,X,function(q,re){var V;switch(re.charAt(0)){case"$":return"$";case"&":return M;case"`":return D.slice(0,O);case"'":return D.slice(K);case"<":V=A[re.slice(1,-1)];break;default:var G=+re;if(G===0)return q;if(G>te){var U=d(G/10);return U===0?q:U<=te?b[U-1]===void 0?re.charAt(1):b[U-1]+re.charAt(1):q}V=b[G-1]}return V===void 0?"":V})}})},{"../internals/advance-string-index":105,"../internals/an-object":107,"../internals/fix-regexp-well-known-symbol-logic":146,"../internals/regexp-exec-abstract":198,"../internals/require-object-coercible":202,"../internals/to-integer":218,"../internals/to-length":219,"../internals/to-object":220}],262:[function(e,v,g){var t=e("../internals/fix-regexp-well-known-symbol-logic"),o=e("../internals/an-object"),u=e("../internals/require-object-coercible"),l=e("../internals/same-value"),c=e("../internals/regexp-exec-abstract");t("search",1,function(n,r,i){return[function(s){var d=u(this),p=s==null?void 0:s[n];return p!==void 0?p.call(s,d):new RegExp(s)[n](String(d))},function(a){var s=i(r,a,this);if(s.done)return s.value;var d=o(a),p=String(this),h=d.lastIndex;l(h,0)||(d.lastIndex=0);var f=c(d,p);return l(d.lastIndex,h)||(d.lastIndex=h),f===null?-1:f.index}]})},{"../internals/an-object":107,"../internals/fix-regexp-well-known-symbol-logic":146,"../internals/regexp-exec-abstract":198,"../internals/require-object-coercible":202,"../internals/same-value":203}],263:[function(e,v,g){var t=e("../internals/fix-regexp-well-known-symbol-logic"),o=e("../internals/is-regexp"),u=e("../internals/an-object"),l=e("../internals/require-object-coercible"),c=e("../internals/species-constructor"),n=e("../internals/advance-string-index"),r=e("../internals/to-length"),i=e("../internals/regexp-exec-abstract"),a=e("../internals/regexp-exec"),s=e("../internals/fails"),d=[].push,p=Math.min,h=4294967295,f=!s(function(){return!RegExp(h,"y")});t("split",2,function(m,w,k){var S;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?S=function(x,y){var E=String(l(this)),P=y===void 0?h:y>>>0;if(P===0)return[];if(x===void 0)return[E];if(!o(x))return w.call(E,x,P);for(var M=[],D=(x.ignoreCase?"i":"")+(x.multiline?"m":"")+(x.unicode?"u":"")+(x.sticky?"y":""),O=0,b=new RegExp(x.source,D+"g"),A,W,K;(A=a.call(b,E))&&(W=b.lastIndex,!(W>O&&(M.push(E.slice(O,A.index)),A.length>1&&A.index=P)));)b.lastIndex===A.index&&b.lastIndex++;return O===E.length?(K||!b.test(""))&&M.push(""):M.push(E.slice(O)),M.length>P?M.slice(0,P):M}:"0".split(void 0,0).length?S=function(x,y){return x===void 0&&y===0?[]:w.call(this,x,y)}:S=w,[function(y,E){var P=l(this),M=y==null?void 0:y[m];return M!==void 0?M.call(y,P,E):S.call(String(P),y,E)},function(x,y){var E=k(S,x,this,y,S!==w);if(E.done)return E.value;var P=u(x),M=String(this),D=c(P,RegExp),O=P.unicode,b=(P.ignoreCase?"i":"")+(P.multiline?"m":"")+(P.unicode?"u":"")+(f?"y":"g"),A=new D(f?P:"^(?:"+P.source+")",b),W=y===void 0?h:y>>>0;if(W===0)return[];if(M.length===0)return i(A,M)===null?[M]:[];for(var K=0,te=0,X=[];texe;)we.push(arguments[xe++]);if(Te=pe,!(!d(pe)&&fe===void 0||ge(fe)))return s(pe)||(pe=function(_e,Ee){if(typeof Te=="function"&&(Ee=Te.call(this,_e,Ee)),!ge(Ee))return Ee}),we[1]=pe,I.apply(null,we)}})}F[Y][Q]||O(F[Y],Q,F[Y].valueOf),V(F,B),K[L]=!0},{"../internals/an-object":107,"../internals/array-iteration":116,"../internals/create-non-enumerable-property":131,"../internals/create-property-descriptor":132,"../internals/define-well-known-symbol":135,"../internals/descriptors":136,"../internals/export":144,"../internals/fails":145,"../internals/get-built-in":148,"../internals/global":150,"../internals/has":151,"../internals/hidden-keys":152,"../internals/internal-state":160,"../internals/is-array":162,"../internals/is-object":164,"../internals/is-pure":165,"../internals/native-symbol":173,"../internals/object-create":178,"../internals/object-define-property":180,"../internals/object-get-own-property-descriptor":181,"../internals/object-get-own-property-names":183,"../internals/object-get-own-property-names-external":182,"../internals/object-get-own-property-symbols":184,"../internals/object-keys":187,"../internals/object-property-is-enumerable":188,"../internals/redefine":197,"../internals/set-to-string-tag":206,"../internals/shared":209,"../internals/shared-key":207,"../internals/to-indexed-object":217,"../internals/to-object":220,"../internals/to-primitive":223,"../internals/uid":228,"../internals/use-symbol-as-uid":229,"../internals/well-known-symbol":231,"../internals/well-known-symbol-wrapped":230}],267:[function(e,v,g){var t=e("../internals/array-buffer-view-core"),o=e("../internals/array-copy-within"),u=t.aTypedArray,l=t.exportTypedArrayMethod;l("copyWithin",function(n,r){return o.call(u(this),n,r,arguments.length>2?arguments[2]:void 0)})},{"../internals/array-buffer-view-core":109,"../internals/array-copy-within":111}],268:[function(e,v,g){var t=e("../internals/array-buffer-view-core"),o=e("../internals/array-iteration").every,u=t.aTypedArray,l=t.exportTypedArrayMethod;l("every",function(n){return o(u(this),n,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":109,"../internals/array-iteration":116}],269:[function(e,v,g){var t=e("../internals/array-buffer-view-core"),o=e("../internals/array-fill"),u=t.aTypedArray,l=t.exportTypedArrayMethod;l("fill",function(n){return o.apply(u(this),arguments)})},{"../internals/array-buffer-view-core":109,"../internals/array-fill":112}],270:[function(e,v,g){var t=e("../internals/array-buffer-view-core"),o=e("../internals/array-iteration").filter,u=e("../internals/species-constructor"),l=t.aTypedArray,c=t.aTypedArrayConstructor,n=t.exportTypedArrayMethod;n("filter",function(i){for(var a=o(l(this),i,arguments.length>1?arguments[1]:void 0),s=u(this,this.constructor),d=0,p=a.length,h=new(c(s))(p);p>d;)h[d]=a[d++];return h})},{"../internals/array-buffer-view-core":109,"../internals/array-iteration":116,"../internals/species-constructor":210}],271:[function(e,v,g){var t=e("../internals/array-buffer-view-core"),o=e("../internals/array-iteration").findIndex,u=t.aTypedArray,l=t.exportTypedArrayMethod;l("findIndex",function(n){return o(u(this),n,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":109,"../internals/array-iteration":116}],272:[function(e,v,g){var t=e("../internals/array-buffer-view-core"),o=e("../internals/array-iteration").find,u=t.aTypedArray,l=t.exportTypedArrayMethod;l("find",function(n){return o(u(this),n,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":109,"../internals/array-iteration":116}],273:[function(e,v,g){var t=e("../internals/array-buffer-view-core"),o=e("../internals/array-iteration").forEach,u=t.aTypedArray,l=t.exportTypedArrayMethod;l("forEach",function(n){o(u(this),n,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":109,"../internals/array-iteration":116}],274:[function(e,v,g){var t=e("../internals/array-buffer-view-core"),o=e("../internals/array-includes").includes,u=t.aTypedArray,l=t.exportTypedArrayMethod;l("includes",function(n){return o(u(this),n,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":109,"../internals/array-includes":115}],275:[function(e,v,g){var t=e("../internals/array-buffer-view-core"),o=e("../internals/array-includes").indexOf,u=t.aTypedArray,l=t.exportTypedArrayMethod;l("indexOf",function(n){return o(u(this),n,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":109,"../internals/array-includes":115}],276:[function(e,v,g){var t=e("../internals/global"),o=e("../internals/array-buffer-view-core"),u=e("../modules/es.array.iterator"),l=e("../internals/well-known-symbol"),c=l("iterator"),n=t.Uint8Array,r=u.values,i=u.keys,a=u.entries,s=o.aTypedArray,d=o.exportTypedArrayMethod,p=n&&n.prototype[c],h=!!p&&(p.name=="values"||p.name==null),f=function(){return r.call(s(this))};d("entries",function(){return a.call(s(this))}),d("keys",function(){return i.call(s(this))}),d("values",f,!h),d(c,f,!h)},{"../internals/array-buffer-view-core":109,"../internals/global":150,"../internals/well-known-symbol":231,"../modules/es.array.iterator":242}],277:[function(e,v,g){var t=e("../internals/array-buffer-view-core"),o=t.aTypedArray,u=t.exportTypedArrayMethod,l=[].join;u("join",function(n){return l.apply(o(this),arguments)})},{"../internals/array-buffer-view-core":109}],278:[function(e,v,g){var t=e("../internals/array-buffer-view-core"),o=e("../internals/array-last-index-of"),u=t.aTypedArray,l=t.exportTypedArrayMethod;l("lastIndexOf",function(n){return o.apply(u(this),arguments)})},{"../internals/array-buffer-view-core":109,"../internals/array-last-index-of":117}],279:[function(e,v,g){var t=e("../internals/array-buffer-view-core"),o=e("../internals/array-iteration").map,u=e("../internals/species-constructor"),l=t.aTypedArray,c=t.aTypedArrayConstructor,n=t.exportTypedArrayMethod;n("map",function(i){return o(l(this),i,arguments.length>1?arguments[1]:void 0,function(a,s){return new(c(u(a,a.constructor)))(s)})})},{"../internals/array-buffer-view-core":109,"../internals/array-iteration":116,"../internals/species-constructor":210}],280:[function(e,v,g){var t=e("../internals/array-buffer-view-core"),o=e("../internals/array-reduce").right,u=t.aTypedArray,l=t.exportTypedArrayMethod;l("reduceRight",function(n){return o(u(this),n,arguments.length,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":109,"../internals/array-reduce":121}],281:[function(e,v,g){var t=e("../internals/array-buffer-view-core"),o=e("../internals/array-reduce").left,u=t.aTypedArray,l=t.exportTypedArrayMethod;l("reduce",function(n){return o(u(this),n,arguments.length,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":109,"../internals/array-reduce":121}],282:[function(e,v,g){var t=e("../internals/array-buffer-view-core"),o=t.aTypedArray,u=t.exportTypedArrayMethod,l=Math.floor;u("reverse",function(){for(var n=this,r=o(n).length,i=l(r/2),a=0,s;a1?arguments[1]:void 0,1),p=this.length,h=l(s),f=o(h.length),m=0;if(f+d>p)throw RangeError("Wrong length");for(;mf;)w[f]=p[f++];return w},i)},{"../internals/array-buffer-view-core":109,"../internals/fails":145,"../internals/species-constructor":210}],285:[function(e,v,g){var t=e("../internals/array-buffer-view-core"),o=e("../internals/array-iteration").some,u=t.aTypedArray,l=t.exportTypedArrayMethod;l("some",function(n){return o(u(this),n,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":109,"../internals/array-iteration":116}],286:[function(e,v,g){var t=e("../internals/array-buffer-view-core"),o=t.aTypedArray,u=t.exportTypedArrayMethod,l=[].sort;u("sort",function(n){return l.call(o(this),n)})},{"../internals/array-buffer-view-core":109}],287:[function(e,v,g){var t=e("../internals/array-buffer-view-core"),o=e("../internals/to-length"),u=e("../internals/to-absolute-index"),l=e("../internals/species-constructor"),c=t.aTypedArray,n=t.exportTypedArrayMethod;n("subarray",function(i,a){var s=c(this),d=s.length,p=u(i,d);return new(l(s,s.constructor))(s.buffer,s.byteOffset+p*s.BYTES_PER_ELEMENT,o((a===void 0?d:u(a,d))-p))})},{"../internals/array-buffer-view-core":109,"../internals/species-constructor":210,"../internals/to-absolute-index":215,"../internals/to-length":219}],288:[function(e,v,g){var t=e("../internals/global"),o=e("../internals/array-buffer-view-core"),u=e("../internals/fails"),l=t.Int8Array,c=o.aTypedArray,n=o.exportTypedArrayMethod,r=[].toLocaleString,i=[].slice,a=!!l&&u(function(){r.call(new l(1))}),s=u(function(){return[1,2].toLocaleString()!=new l([1,2]).toLocaleString()})||!u(function(){l.prototype.toLocaleString.call([1,2])});n("toLocaleString",function(){return r.apply(a?i.call(c(this)):c(this),arguments)},s)},{"../internals/array-buffer-view-core":109,"../internals/fails":145,"../internals/global":150}],289:[function(e,v,g){var t=e("../internals/array-buffer-view-core").exportTypedArrayMethod,o=e("../internals/fails"),u=e("../internals/global"),l=u.Uint8Array,c=l&&l.prototype||{},n=[].toString,r=[].join;o(function(){n.call({})})&&(n=function(){return r.call(this)});var i=c.toString!=n;t("toString",n,i)},{"../internals/array-buffer-view-core":109,"../internals/fails":145,"../internals/global":150}],290:[function(e,v,g){var t=e("../internals/typed-array-constructor");t("Uint8",function(o){return function(l,c,n){return o(this,l,c,n)}})},{"../internals/typed-array-constructor":225}],291:[function(e,v,g){var t=e("../internals/global"),o=e("../internals/dom-iterables"),u=e("../internals/array-for-each"),l=e("../internals/create-non-enumerable-property");for(var c in o){var n=t[c],r=n&&n.prototype;if(r&&r.forEach!==u)try{l(r,"forEach",u)}catch{r.forEach=u}}},{"../internals/array-for-each":113,"../internals/create-non-enumerable-property":131,"../internals/dom-iterables":138,"../internals/global":150}],292:[function(e,v,g){var t=e("../internals/global"),o=e("../internals/dom-iterables"),u=e("../modules/es.array.iterator"),l=e("../internals/create-non-enumerable-property"),c=e("../internals/well-known-symbol"),n=c("iterator"),r=c("toStringTag"),i=u.values;for(var a in o){var s=t[a],d=s&&s.prototype;if(d){if(d[n]!==i)try{l(d,n,i)}catch{d[n]=i}if(d[r]||l(d,r,a),o[a]){for(var p in u)if(d[p]!==u[p])try{l(d,p,u[p])}catch{d[p]=u[p]}}}}},{"../internals/create-non-enumerable-property":131,"../internals/dom-iterables":138,"../internals/global":150,"../internals/well-known-symbol":231,"../modules/es.array.iterator":242}],293:[function(e,v,g){(function(t){function o(k){return Array.isArray?Array.isArray(k):w(k)==="[object Array]"}g.isArray=o;function u(k){return typeof k=="boolean"}g.isBoolean=u;function l(k){return k===null}g.isNull=l;function c(k){return k==null}g.isNullOrUndefined=c;function n(k){return typeof k=="number"}g.isNumber=n;function r(k){return typeof k=="string"}g.isString=r;function i(k){return typeof k=="symbol"}g.isSymbol=i;function a(k){return k===void 0}g.isUndefined=a;function s(k){return w(k)==="[object RegExp]"}g.isRegExp=s;function d(k){return typeof k=="object"&&k!==null}g.isObject=d;function p(k){return w(k)==="[object Date]"}g.isDate=p;function h(k){return w(k)==="[object Error]"||k instanceof Error}g.isError=h;function f(k){return typeof k=="function"}g.isFunction=f;function m(k){return k===null||typeof k=="boolean"||typeof k=="number"||typeof k=="string"||typeof k=="symbol"||typeof k=="undefined"}g.isPrimitive=m,g.isBuffer=t.isBuffer;function w(k){return Object.prototype.toString.call(k)}}).call(this,{isBuffer:e("../../is-buffer/index.js")})},{"../../is-buffer/index.js":307}],294:[function(e,v,g){(function(t){var o=function(){var r=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,i=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,a=/[^-+\dA-Z]/g;return function(s,d,p,h){if(arguments.length===1&&n(s)==="string"&&!/\d/.test(s)&&(d=s,s=void 0),s=s||new Date,s instanceof Date||(s=new Date(s)),isNaN(s))throw TypeError("Invalid date");d=String(o.masks[d]||d||o.masks.default);var f=d.slice(0,4);(f==="UTC:"||f==="GMT:")&&(d=d.slice(4),p=!0,f==="GMT:"&&(h=!0));var m=p?"getUTC":"get",w=s[m+"Date"](),k=s[m+"Day"](),S=s[m+"Month"](),x=s[m+"FullYear"](),y=s[m+"Hours"](),E=s[m+"Minutes"](),P=s[m+"Seconds"](),M=s[m+"Milliseconds"](),D=p?0:s.getTimezoneOffset(),O=l(s),b=c(s),A={d:w,dd:u(w),ddd:o.i18n.dayNames[k],dddd:o.i18n.dayNames[k+7],m:S+1,mm:u(S+1),mmm:o.i18n.monthNames[S],mmmm:o.i18n.monthNames[S+12],yy:String(x).slice(2),yyyy:x,h:y%12||12,hh:u(y%12||12),H:y,HH:u(y),M:E,MM:u(E),s:P,ss:u(P),l:u(M,3),L:u(Math.round(M/10)),t:y<12?"a":"p",tt:y<12?"am":"pm",T:y<12?"A":"P",TT:y<12?"AM":"PM",Z:h?"GMT":p?"UTC":(String(s).match(i)||[""]).pop().replace(a,""),o:(D>0?"-":"+")+u(Math.floor(Math.abs(D)/60)*100+Math.abs(D)%60,4),S:["th","st","nd","rd"][w%10>3?0:(w%100-w%10!=10)*w%10],W:O,N:b};return d.replace(r,function(W){return W in A?A[W]:W.slice(1,W.length-1)})}}();o.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},o.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};function u(r,i){for(r=String(r),i=i||2;r.length]/;v.exports=o;function o(u){var l=""+u,c=t.exec(l);if(!c)return l;var n,r="",i=0,a=0;for(i=c.index;i1&&(A=arguments[1]),A instanceof Error)throw A;var V=new Error('Unhandled "error" event. ('+A+")");throw V.context=A,V}if(W=q[b],!W)return!1;var G=typeof W=="function";switch(K=arguments.length,K){case 1:a(W,G,this);break;case 2:s(W,G,this,arguments[1]);break;case 3:d(W,G,this,arguments[1],arguments[2]);break;case 4:p(W,G,this,arguments[1],arguments[2],arguments[3]);break;default:for(te=new Array(K-1),X=1;X0&&X.length>K)){X.warned=!0;var q=new Error("Possible EventEmitter memory leak detected. "+X.length+' "'+String(b)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');q.name="MaxListenersExceededWarning",q.emitter=O,q.type=b,q.count=X.length,typeof console=="object"&&console.warn&&console.warn("%s: %s",q.name,q.message)}return O}l.prototype.addListener=function(b,A){return f(this,b,A,!1)},l.prototype.on=l.prototype.addListener,l.prototype.prependListener=function(b,A){return f(this,b,A,!0)};function m(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var O=new Array(arguments.length),b=0;b=0;X--)if(W[X]===A||W[X].listener===A){q=W[X].listener,te=X;break}if(te<0)return this;te===0?W.shift():x(W,te),W.length===1&&(K[b]=W[0]),K.removeListener&&this.emit("removeListener",b,q||A)}return this},l.prototype.removeAllListeners=function(b){var A,W,K;if(W=this._events,!W)return this;if(!W.removeListener)return arguments.length===0?(this._events=t(null),this._eventsCount=0):W[b]&&(--this._eventsCount==0?this._events=t(null):delete W[b]),this;if(arguments.length===0){var te=o(W),X;for(K=0;K=0;K--)this.removeListener(b,A[K]);return this};function k(O,b,A){var W=O._events;if(!W)return[];var K=W[b];return K?typeof K=="function"?A?[K.listener||K]:[K]:A?E(K):y(K,K.length):[]}l.prototype.listeners=function(b){return k(this,b,!0)},l.prototype.rawListeners=function(b){return k(this,b,!1)},l.listenerCount=function(O,b){return typeof O.listenerCount=="function"?O.listenerCount(b):S.call(O,b)},l.prototype.listenerCount=S;function S(O){var b=this._events;if(b){var A=b[O];if(typeof A=="function")return 1;if(A)return A.length}return 0}l.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};function x(O,b){for(var A=b,W=A+1,K=O.length;W>1,d=-7,p=u?c-1:0,h=u?-1:1,f=t[o+p];for(p+=h,n=f&(1<<-d)-1,f>>=-d,d+=i;d>0;n=n*256+t[o+p],p+=h,d-=8);for(r=n&(1<<-d)-1,n>>=-d,d+=l;d>0;r=r*256+t[o+p],p+=h,d-=8);if(n===0)n=1-s;else{if(n===a)return r?NaN:(f?-1:1)*(1/0);r=r+Math.pow(2,l),n=n-s}return(f?-1:1)*r*Math.pow(2,n-l)},g.write=function(t,o,u,l,c,n){var r,i,a,s=n*8-c-1,d=(1<>1,h=c===23?Math.pow(2,-24)-Math.pow(2,-77):0,f=l?0:n-1,m=l?1:-1,w=o<0||o===0&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(i=isNaN(o)?1:0,r=d):(r=Math.floor(Math.log(o)/Math.LN2),o*(a=Math.pow(2,-r))<1&&(r--,a*=2),r+p>=1?o+=h/a:o+=h*Math.pow(2,1-p),o*a>=2&&(r++,a/=2),r+p>=d?(i=0,r=d):r+p>=1?(i=(o*a-1)*Math.pow(2,c),r=r+p):(i=o*Math.pow(2,p-1)*Math.pow(2,c),r=0));c>=8;t[u+f]=i&255,f+=m,i/=256,c-=8);for(r=r<0;t[u+f]=r&255,f+=m,r/=256,s-=8);t[u+f-m]|=w*128}},{}],300:[function(e,v,g){var t=[e("./nextTick"),e("./queueMicrotask"),e("./mutation.js"),e("./messageChannel"),e("./stateChange"),e("./timeout")],o,u,l=-1,c=[],n=!1;function r(){!o||!u||(o=!1,u.length?c=u.concat(c):l=-1,c.length&&i())}function i(){if(!o){n=!1,o=!0;for(var f=c.length,m=setTimeout(r);f;){for(u=c,c=[];u&&++l1)for(var w=1;w + * @license MIT + */v.exports=function(u){return u!=null&&(t(u)||o(u)||!!u._isBuffer)};function t(u){return!!u.constructor&&typeof u.constructor.isBuffer=="function"&&u.constructor.isBuffer(u)}function o(u){return typeof u.readFloatLE=="function"&&typeof u.slice=="function"&&t(u.slice(0,0))}},{}],308:[function(e,v,g){var t={}.toString;v.exports=Array.isArray||function(o){return t.call(o)=="[object Array]"}},{}],309:[function(require,module,exports){(function(global){(function(e,v){typeof exports=="object"&&typeof module!="undefined"?module.exports=v(e):v(e)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:this,function(global){global=global||{};var _Base64=global.Base64,version="2.5.2",buffer;if(typeof module!="undefined"&&module.exports)try{buffer=eval("require('buffer').Buffer")}catch(e){buffer=void 0}var b64chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b64tab=function(e){for(var v={},g=0,t=e.length;g>>6)+fromCharCode(128|v&63):fromCharCode(224|v>>>12&15)+fromCharCode(128|v>>>6&63)+fromCharCode(128|v&63)}else{var v=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return fromCharCode(240|v>>>18&7)+fromCharCode(128|v>>>12&63)+fromCharCode(128|v>>>6&63)+fromCharCode(128|v&63)}},re_utob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,utob=function(e){return e.replace(re_utob,cb_utob)},cb_encode=function(e){var v=[0,2,1][e.length%3],g=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0),t=[b64chars.charAt(g>>>18),b64chars.charAt(g>>>12&63),v>=2?"=":b64chars.charAt(g>>>6&63),v>=1?"=":b64chars.charAt(g&63)];return t.join("")},btoa=global.btoa?function(e){return global.btoa(e)}:function(e){return e.replace(/[\s\S]{1,3}/g,cb_encode)},_encode=function(e){var v=Object.prototype.toString.call(e)==="[object Uint8Array]";return v?e.toString("base64"):btoa(utob(String(e)))},encode=function(e,v){return v?_encode(String(e)).replace(/[+\/]/g,function(g){return g=="+"?"-":"_"}).replace(/=/g,""):_encode(e)},encodeURI=function(e){return encode(e,!0)},re_btou=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,cb_btou=function(e){switch(e.length){case 4:var v=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),g=v-65536;return fromCharCode((g>>>10)+55296)+fromCharCode((g&1023)+56320);case 3:return fromCharCode((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return fromCharCode((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},btou=function(e){return e.replace(re_btou,cb_btou)},cb_decode=function(e){var v=e.length,g=v%4,t=(v>0?b64tab[e.charAt(0)]<<18:0)|(v>1?b64tab[e.charAt(1)]<<12:0)|(v>2?b64tab[e.charAt(2)]<<6:0)|(v>3?b64tab[e.charAt(3)]:0),o=[fromCharCode(t>>>16),fromCharCode(t>>>8&255),fromCharCode(t&255)];return o.length-=[0,0,2,1][g],o.join("")},_atob=global.atob?function(e){return global.atob(e)}:function(e){return e.replace(/\S{1,4}/g,cb_decode)},atob=function(e){return _atob(String(e).replace(/[^A-Za-z0-9\+\/]/g,""))},_decode=buffer?buffer.from&&Uint8Array&&buffer.from!==Uint8Array.from?function(e){return(e.constructor===buffer.constructor?e:buffer.from(e,"base64")).toString()}:function(e){return(e.constructor===buffer.constructor?e:new buffer(e,"base64")).toString()}:function(e){return btou(_atob(e))},decode=function(e){return _decode(String(e).replace(/[-_]/g,function(v){return v=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))},noConflict=function(){var e=global.Base64;return global.Base64=_Base64,e};if(global.Base64={VERSION:version,atob,btoa,fromBase64:decode,toBase64:encode,utob,encode,encodeURI,btou,decode,noConflict,__buffer__:buffer},typeof Object.defineProperty=="function"){var noEnum=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}};global.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",noEnum(function(){return decode(this)})),Object.defineProperty(String.prototype,"toBase64",noEnum(function(e){return encode(this,e)})),Object.defineProperty(String.prototype,"toBase64URI",noEnum(function(){return encode(this,!0)}))}}return global.Meteor&&(Base64=global.Base64),typeof module!="undefined"&&module.exports&&(module.exports.Base64=global.Base64),{Base64:global.Base64}})}).call(this,typeof commonjsGlobal!="undefined"?commonjsGlobal:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],310:[function(e,v,g){v.exports=o;var t=Object.prototype.hasOwnProperty;function o(u,l,c){if(!u)throw new TypeError("argument dest is required");if(!l)throw new TypeError("argument src is required");return c===void 0&&(c=!0),Object.getOwnPropertyNames(l).forEach(function(r){if(!(!c&&t.call(u,r))){var i=Object.getOwnPropertyDescriptor(l,r);Object.defineProperty(u,r,i)}}),u}},{}],311:[function(e,v,g){function t(){this._types=Object.create(null),this._extensions=Object.create(null);for(var o=0;o0)return r(d);if(h==="number"&&isFinite(d))return p.long?a(d):i(d);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(d))};function r(d){if(d=String(d),!(d.length>100)){var p=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(d);if(!!p){var h=parseFloat(p[1]),f=(p[2]||"ms").toLowerCase();switch(f){case"years":case"year":case"yrs":case"yr":case"y":return h*n;case"weeks":case"week":case"w":return h*c;case"days":case"day":case"d":return h*l;case"hours":case"hour":case"hrs":case"hr":case"h":return h*u;case"minutes":case"minute":case"mins":case"min":case"m":return h*o;case"seconds":case"second":case"secs":case"sec":case"s":return h*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return h;default:return}}}}function i(d){var p=Math.abs(d);return p>=l?Math.round(d/l)+"d":p>=u?Math.round(d/u)+"h":p>=o?Math.round(d/o)+"m":p>=t?Math.round(d/t)+"s":d+"ms"}function a(d){var p=Math.abs(d);return p>=l?s(d,p,l,"day"):p>=u?s(d,p,u,"hour"):p>=o?s(d,p,o,"minute"):p>=t?s(d,p,t,"second"):d+" ms"}function s(d,p,h,f){var m=p>=h*1.5;return Math.round(d/h)+" "+f+(m?"s":"")}},{}],315:[function(e,v,g){(function(t){function o(n,r){for(var i=0,a=n.length-1;a>=0;a--){var s=n[a];s==="."?n.splice(a,1):s===".."?(n.splice(a,1),i++):i&&(n.splice(a,1),i--)}if(r)for(;i--;i)n.unshift("..");return n}g.resolve=function(){for(var n="",r=!1,i=arguments.length-1;i>=-1&&!r;i--){var a=i>=0?arguments[i]:t.cwd();if(typeof a!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!a)continue;n=a+"/"+n,r=a.charAt(0)==="/"}return n=o(l(n.split("/"),function(s){return!!s}),!r).join("/"),(r?"/":"")+n||"."},g.normalize=function(n){var r=g.isAbsolute(n),i=c(n,-1)==="/";return n=o(l(n.split("/"),function(a){return!!a}),!r).join("/"),!n&&!r&&(n="."),n&&i&&(n+="/"),(r?"/":"")+n},g.isAbsolute=function(n){return n.charAt(0)==="/"},g.join=function(){var n=Array.prototype.slice.call(arguments,0);return g.normalize(l(n,function(r,i){if(typeof r!="string")throw new TypeError("Arguments to path.join must be strings");return r}).join("/"))},g.relative=function(n,r){n=g.resolve(n).substr(1),r=g.resolve(r).substr(1);function i(m){for(var w=0;w=0&&m[k]==="";k--);return w>k?[]:m.slice(w,k-w+1)}for(var a=i(n.split("/")),s=i(r.split("/")),d=Math.min(a.length,s.length),p=d,h=0;h=1;--d)if(r=n.charCodeAt(d),r===47){if(!s){a=d;break}}else s=!1;return a===-1?i?"/":".":i&&a===1?"/":n.slice(0,a)};function u(n){typeof n!="string"&&(n=n+"");var r=0,i=-1,a=!0,s;for(s=n.length-1;s>=0;--s)if(n.charCodeAt(s)===47){if(!a){r=s+1;break}}else i===-1&&(a=!1,i=s+1);return i===-1?"":n.slice(r,i)}g.basename=function(n,r){var i=u(n);return r&&i.substr(-1*r.length)===r&&(i=i.substr(0,i.length-r.length)),i},g.extname=function(n){typeof n!="string"&&(n=n+"");for(var r=-1,i=0,a=-1,s=!0,d=0,p=n.length-1;p>=0;--p){var h=n.charCodeAt(p);if(h===47){if(!s){i=p+1;break}continue}a===-1&&(s=!1,a=p+1),h===46?r===-1?r=p:d!==1&&(d=1):r!==-1&&(d=-1)}return r===-1||a===-1||d===0||d===1&&r===a-1&&r===i+1?"":n.slice(r,a)};function l(n,r){if(n.filter)return n.filter(r);for(var i=[],a=0;a-1&&A<=r)for(;++b3&&"WebKit"||/\bOpera\b/.test(N)&&(/\bOPR\b/.test(D)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(D)&&!/^(?:Trident|EdgeHTML)$/.test(z)&&"WebKit"||!z&&/\bMSIE\b/i.test(D)&&(j=="Mac OS"?"Tasman":"Trident")||z=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(N)&&"NetFront")&&(z=[$]),N=="IE"&&($=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(D)||0)[1])?(N+=" Mobile",j="Windows Phone "+(/\+$/.test($)?$:$+".x"),F.unshift("desktop mode")):/\bWPDesktop\b/i.test(D)?(N="IE Mobile",j="Windows Phone 8.x",F.unshift("desktop mode"),R||(R=(/\brv:([\d.]+)/.exec(D)||0)[1])):N!="IE"&&z=="Trident"&&($=/\brv:([\d.]+)/.exec(D))&&(N&&F.push("identifying as "+N+(R?" "+R:"")),N="IE",R=$[1]),C){if(S(O,"global"))if(G&&($=G.lang.System,ie=$.getProperty("os.arch"),j=j||$.getProperty("os.name")+" "+$.getProperty("os.version")),U){try{R=O.require("ringo/engine").version.join("."),N="RingoJS"}catch{($=O.system)&&$.global.system==O.system&&(N="Narwhal",j||(j=$[0].os||null))}N||(N="Rhino")}else typeof O.process=="object"&&!O.process.browser&&($=O.process)&&(typeof $.versions=="object"&&(typeof $.versions.electron=="string"?(F.push("Node "+$.versions.node),N="Electron",R=$.versions.electron):typeof $.versions.nw=="string"&&(F.push("Chromium "+R,"Node "+$.versions.node),N="NW.js",R=$.versions.nw)),N||(N="Node.js",ie=$.arch,j=$.platform,R=/[\d.]+/.exec($.version),R=R?R[0]:null));else k($=O.runtime)==X?(N="Adobe AIR",j=$.flash.system.Capabilities.os):k($=O.phantom)==V?(N="PhantomJS",R=($=$.version||null)&&$.major+"."+$.minor+"."+$.patch):typeof Y.documentMode=="number"&&($=/\bTrident\/(\d+)/i.exec(D))?(R=[R,Y.documentMode],($=+$[1]+4)!=R[1]&&(F.push("IE "+R[1]+" mode"),z&&(z[1]=""),R[1]=$),R=N=="IE"?String(R[1].toFixed(1)):R[0]):typeof Y.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(N)&&(F.push("masking as "+N+" "+R),N="IE",R="11.0",z=["Trident"],j="Windows");j=j&&m(j)}if(R&&($=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(R)||/(?:alpha|beta)(?: ?\d)?/i.exec(D+";"+(C&&A.appMinorVersion))||/\bMinefield\b/i.test(D)&&"a")&&(I=/b/i.test($)?"beta":"alpha",R=R.replace(RegExp($+"\\+?$"),"")+(I=="beta"?B:L)+(/\d+\+?/.exec($)||"")),N=="Fennec"||N=="Firefox"&&/\b(?:Android|Firefox OS)\b/.test(j))N="Firefox Mobile";else if(N=="Maxthon"&&R)R=R.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(T))T=="Xbox 360"&&(j=null),T=="Xbox 360"&&/\bIEMobile\b/.test(D)&&F.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(N)||N&&!T&&!/Browser|Mobi/.test(N))&&(j=="Windows CE"||/Mobi/i.test(D)))N+=" Mobile";else if(N=="IE"&&C)try{O.external===null&&F.unshift("platform preview")}catch{F.unshift("embedded")}else(/\bBlackBerry\b/.test(T)||/\bBB10\b/.test(D))&&($=(RegExp(T.replace(/ +/g," *")+"/([.\\d]+)","i").exec(D)||0)[1]||R)?($=[$,/BB10/.test(D)],j=($[1]?(T=null,_="BlackBerry"):"Device Software")+" "+$[0],R=null):this!=w&&T!="Wii"&&(C&&Q||/Opera/.test(N)&&/\b(?:MSIE|Firefox)\b/i.test(D)||N=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(j)||N=="IE"&&(j&&!/^Win/.test(j)&&R>5.5||/\bWindows XP\b/.test(j)&&R>8||R==8&&!/\bTrident\b/.test(D)))&&!i.test($=P.call(w,D.replace(i,"")+";"))&&$.name&&($="ing as "+$.name+(($=$.version)?" "+$:""),i.test(N)?(/\bIE\b/.test($)&&j=="Mac OS"&&(j=null),$="identify"+$):($="mask"+$,ee?N=m(ee.replace(/([a-z])([A-Z])/g,"$1 $2")):N="Opera",/\bIE\b/.test($)&&(j=null),C||(R=null)),z=["Presto"],F.push($));($=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(D)||0)[1])&&($=[parseFloat($.replace(/\.(\d)$/,".0$1")),$],N=="Safari"&&$[1].slice(-1)=="+"?(N="WebKit Nightly",I="alpha",R=$[1].slice(0,-1)):(R==$[1]||R==($[2]=(/\bSafari\/([\d.]+\+?)/i.exec(D)||0)[1]))&&(R=null),$[1]=(/\bChrome\/([\d.]+)/i.exec(D)||0)[1],$[0]==537.36&&$[2]==537.36&&parseFloat($[1])>=28&&z=="WebKit"&&(z=["Blink"]),!C||!K&&!$[1]?(z&&(z[1]="like Safari"),$=($=$[0],$<400?1:$<500?2:$<526?3:$<533?4:$<534?"4+":$<535?5:$<537?6:$<538?7:$<601?8:"8")):(z&&(z[1]="like Chrome"),$=$[1]||($=$[0],$<530?1:$<532?2:$<532.05?3:$<533?4:$<534.03?5:$<534.07?6:$<534.1?7:$<534.13?8:$<534.16?9:$<534.24?10:$<534.3?11:$<535.01?12:$<535.02?"13+":$<535.07?15:$<535.11?16:$<535.19?17:$<536.05?18:$<536.1?19:$<537.01?20:$<537.11?"21+":$<537.13?23:$<537.18?24:$<537.24?25:$<537.36?26:z!="Blink"?"27":"28")),z&&(z[1]+=" "+($+=typeof $=="number"?".x":/[.+]/.test($)?"":"+")),N=="Safari"&&(!R||parseInt(R)>45)&&(R=$)),N=="Opera"&&($=/\bzbov|zvav$/.exec(j))?(N+=" ",F.unshift("desktop mode"),$=="zvav"?(N+="Mini",R=null):N+="Mobile",j=j.replace(RegExp(" *"+$+"$"),"")):N=="Safari"&&/\bChrome\b/.exec(z&&z[1])&&(F.unshift("desktop mode"),N="Chrome Mobile",R=null,/\bOS X\b/.test(j)?(_="Apple",j="iOS 4.3+"):j=null),R&&R.indexOf($=/[\d.]+$/.exec(j))==0&&D.indexOf("/"+$+"-")>-1&&(j=E(j.replace($,""))),z&&!/\b(?:Avant|Nook)\b/.test(N)&&(/Browser|Lunascape|Maxthon/.test(N)||N!="Safari"&&/^iOS/.test(j)&&/\bSafari\b/.test(z[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(N)&&z[1])&&($=z[z.length-1])&&F.push($),F.length&&(F=["("+F.join("; ")+")"]),_&&T&&T.indexOf(_)<0&&F.push("on "+_),T&&F.push((/^on /.test(F[F.length-1])?"":"on ")+T),j&&($=/ ([\d.+]+)$/.exec(j),Z=$&&j.charAt(j.length-$[0].length-1)=="/",j={architecture:32,family:$&&!Z?j.replace($[0],""):j,version:$?$[1]:null,toString:function(){var ye=this.version;return this.family+(ye&&!Z?" "+ye:"")+(this.architecture==64?" 64-bit":"")}}),($=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(ie))&&!/\bi686\b/i.test(ie)?(j&&(j.architecture=64,j.family=j.family.replace(RegExp(" *"+$),"")),N&&(/\bWOW64\b/i.test(D)||C&&/\w(?:86|32)$/.test(A.cpuClass||A.platform)&&!/\bWin64; x64\b/i.test(D))&&F.unshift("32-bit")):j&&/^OS X/.test(j.family)&&N=="Chrome"&&parseFloat(R)>=39&&(j.architecture=64),D||(D=null);var ue={};return ue.description=D,ue.layout=z&&z[0],ue.manufacturer=_,ue.name=N,ue.prerelease=I,ue.product=T,ue.ua=D,ue.version=N&&R,ue.os=j||{architecture:null,family:null,version:null,toString:function(){return"null"}},ue.parse=P,ue.toString=ve,ue.version&&F.unshift(R),ue.name&&F.unshift(N),j&&N&&!(j==String(j).split(" ")[0]&&(j==N.split(" ")[0]||T))&&F.push(T?"("+j+")":"on "+j),F.length&&(ue.description=F.join(" ")),ue}var M=P();l&&c?w(M,function(D,O){l[O]=D}):u.platform=M}).call(this)}).call(this,typeof commonjsGlobal!="undefined"?commonjsGlobal:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],317:[function(e,v,g){(function(t){typeof t=="undefined"||!t.version||t.version.indexOf("v0.")===0||t.version.indexOf("v1.")===0&&t.version.indexOf("v1.8.")!==0?v.exports={nextTick:o}:v.exports=t;function o(u,l,c,n){if(typeof u!="function")throw new TypeError('"callback" argument must be a function');var r=arguments.length,i,a;switch(r){case 0:case 1:return t.nextTick(u);case 2:return t.nextTick(function(){u.call(null,l)});case 3:return t.nextTick(function(){u.call(null,l,c)});case 4:return t.nextTick(function(){u.call(null,l,c,n)});default:for(i=new Array(r-1),a=0;a1)for(var S=1;S= 0x80 (not a basic code point)","invalid-input":"Invalid input"},y=i-a,E=Math.floor,P=String.fromCharCode,M;function D(U){throw new RangeError(x[U])}function O(U,L){for(var B=U.length,Y=[];B--;)Y[B]=L(U[B]);return Y}function b(U,L){var B=U.split("@"),Y="";B.length>1&&(Y=B[0]+"@",U=B[1]),U=U.replace(S,".");var Q=U.split("."),ee=O(Q,L).join(".");return Y+ee}function A(U){for(var L=[],B=0,Y=U.length,Q,ee;B=55296&&Q<=56319&&B65535&&(L-=65536,B+=P(L>>>10&1023|55296),L=56320|L&1023),B+=P(L),B}).join("")}function K(U){return U-48<10?U-22:U-65<26?U-65:U-97<26?U-97:i}function te(U,L){return U+22+75*(U<26)-((L!=0)<<5)}function X(U,L,B){var Y=0;for(U=B?E(U/p):U>>1,U+=E(U/L);U>y*s>>1;Y+=i)U=E(U/y);return E(Y+(y+1)*U/(U+d))}function q(U){var L=[],B=U.length,Y,Q=0,ee=f,$=h,ie,F,I,C,R,Z,z,N,T;for(ie=U.lastIndexOf(m),ie<0&&(ie=0),F=0;F=128&&D("not-basic"),L.push(U.charCodeAt(F));for(I=ie>0?ie+1:0;I=B&&D("invalid-input"),z=K(U.charCodeAt(I++)),(z>=i||z>E((r-Q)/R))&&D("overflow"),Q+=z*R,N=Z<=$?a:Z>=$+s?s:Z-$,!(zE(r/T)&&D("overflow"),R*=T;Y=L.length+1,$=X(Q-C,Y,C==0),E(Q/Y)>r-ee&&D("overflow"),ee+=E(Q/Y),Q%=Y,L.splice(Q++,0,ee)}return W(L)}function re(U){var L,B,Y,Q,ee,$,ie,F,I,C,R,Z=[],z,N,T,_;for(U=A(U),z=U.length,L=f,B=0,ee=h,$=0;$=L&&RE((r-B)/N)&&D("overflow"),B+=(ie-L)*N,L=ie,$=0;$r&&D("overflow"),R==L){for(F=B,I=i;C=I<=ee?a:I>=ee+s?s:I-ee,!(F0&&s>a&&(s=a);for(var d=0;d=0?(f=p.substr(0,h),m=p.substr(h+1)):(f=p,m=""),w=decodeURIComponent(f),k=decodeURIComponent(m),t(r,w)?o(r[w])?r[w].push(k):r[w]=[r[w],k]:r[w]=k}return r};var o=Array.isArray||function(u){return Object.prototype.toString.call(u)==="[object Array]"}},{}],321:[function(e,v,g){var t=function(c){switch(typeof c){case"string":return c;case"boolean":return c?"true":"false";case"number":return isFinite(c)?c:"";default:return""}};v.exports=function(c,n,r,i){return n=n||"&",r=r||"=",c===null&&(c=void 0),typeof c=="object"?u(l(c),function(a){var s=encodeURIComponent(t(a))+r;return o(c[a])?u(c[a],function(d){return s+encodeURIComponent(t(d))}).join(n):s+encodeURIComponent(t(c[a]))}).join(n):i?encodeURIComponent(t(i))+r+encodeURIComponent(t(c)):""};var o=Array.isArray||function(c){return Object.prototype.toString.call(c)==="[object Array]"};function u(c,n){if(c.map)return c.map(n);for(var r=[],i=0;i0?(typeof R!="string"&&!T.objectMode&&Object.getPrototypeOf(R)!==i.prototype&&(R=s(R)),z?T.endEmitted?C.emit("error",new Error("stream.unshift() after end event")):M(C,T,R,!0):T.ended?C.emit("error",new Error("stream.push() after EOF")):(T.reading=!1,T.decoder&&!Z?(R=T.decoder.write(R),T.objectMode||R.length!==0?M(C,T,R,!1):q(C,T)):M(C,T,R,!1))):z||(T.reading=!1)}return O(T)}function M(C,R,Z,z){R.flowing&&R.length===0&&!R.sync?(C.emit("data",Z),C.read(0)):(R.length+=R.objectMode?1:Z.length,z?R.buffer.unshift(Z):R.buffer.push(Z),R.needReadable&&te(C)),q(C,R)}function D(C,R){var Z;return!d(R)&&typeof R!="string"&&R!==void 0&&!C.objectMode&&(Z=new TypeError("Invalid non-string/buffer chunk")),Z}function O(C){return!C.ended&&(C.needReadable||C.length=b?C=b:(C--,C|=C>>>1,C|=C>>>2,C|=C>>>4,C|=C>>>8,C|=C>>>16,C++),C}function W(C,R){return C<=0||R.length===0&&R.ended?0:R.objectMode?1:C!==C?R.flowing&&R.length?R.buffer.head.data.length:R.length:(C>R.highWaterMark&&(R.highWaterMark=A(C)),C<=R.length?C:R.ended?R.length:(R.needReadable=!0,0))}E.prototype.read=function(C){f("read",C),C=parseInt(C,10);var R=this._readableState,Z=C;if(C!==0&&(R.emittedReadable=!1),C===0&&R.needReadable&&(R.length>=R.highWaterMark||R.ended))return f("read: emitReadable",R.length,R.ended),R.length===0&&R.ended?ie(this):te(this),null;if(C=W(C,R),C===0&&R.ended)return R.length===0&&ie(this),null;var z=R.needReadable;f("need readable",z),(R.length===0||R.length-C0?N=Y(C,R):N=null,N===null?(R.needReadable=!0,C=0):R.length-=C,R.length===0&&(R.ended||(R.needReadable=!0),Z!==C&&R.ended&&ie(this)),N!==null&&this.emit("data",N),N};function K(C,R){if(!R.ended){if(R.decoder){var Z=R.decoder.end();Z&&Z.length&&(R.buffer.push(Z),R.length+=R.objectMode?1:Z.length)}R.ended=!0,te(C)}}function te(C){var R=C._readableState;R.needReadable=!1,R.emittedReadable||(f("emitReadable",R.flowing),R.emittedReadable=!0,R.sync?u.nextTick(X,C):X(C))}function X(C){f("emit readable"),C.emit("readable"),B(C)}function q(C,R){R.readingMore||(R.readingMore=!0,u.nextTick(re,C,R))}function re(C,R){for(var Z=R.length;!R.reading&&!R.flowing&&!R.ended&&R.length1&&I(z.pipes,C)!==-1)&&!J&&(f("false write response, pause",Z._readableState.awaitDrain),Z._readableState.awaitDrain++,oe=!0),Z.pause())}function ge(se){f("onerror",se),ye(),C.removeListener("error",ge),n(C,"error")===0&&C.emit("error",se)}x(C,"error",ge);function ve(){C.removeListener("finish",ue),ye()}C.once("close",ve);function ue(){f("onfinish"),C.removeListener("close",ve),ye()}C.once("finish",ue);function ye(){f("unpipe"),Z.unpipe(C)}return C.emit("pipe",Z),z.flowing||(f("pipe resume"),Z.resume()),C};function V(C){return function(){var R=C._readableState;f("pipeOnDrain",R.awaitDrain),R.awaitDrain&&R.awaitDrain--,R.awaitDrain===0&&n(C,"data")&&(R.flowing=!0,B(C))}}E.prototype.unpipe=function(C){var R=this._readableState,Z={hasUnpiped:!1};if(R.pipesCount===0)return this;if(R.pipesCount===1)return C&&C!==R.pipes?this:(C||(C=R.pipes),R.pipes=null,R.pipesCount=0,R.flowing=!1,C&&C.emit("unpipe",this,Z),this);if(!C){var z=R.pipes,N=R.pipesCount;R.pipes=null,R.pipesCount=0,R.flowing=!1;for(var T=0;T=R.length?(R.decoder?Z=R.buffer.join(""):R.buffer.length===1?Z=R.buffer.head.data:Z=R.buffer.concat(R.length),R.buffer.clear()):Z=Q(C,R.buffer,R.decoder),Z}function Q(C,R,Z){var z;return CT.length?T.length:C;if(_===T.length?N+=T:N+=T.slice(0,C),C-=_,C===0){_===T.length?(++z,Z.next?R.head=Z.next:R.head=R.tail=null):(R.head=Z,Z.data=T.slice(_));break}++z}return R.length-=z,N}function $(C,R){var Z=i.allocUnsafe(C),z=R.head,N=1;for(z.data.copy(Z),C-=z.data.length;z=z.next;){var T=z.data,_=C>T.length?T.length:C;if(T.copy(Z,Z.length-C,0,_),C-=_,C===0){_===T.length?(++N,z.next?R.head=z.next:R.head=R.tail=null):(R.head=z,z.data=T.slice(_));break}++N}return R.length-=N,Z}function ie(C){var R=C._readableState;if(R.length>0)throw new Error('"endReadable()" called on non-empty stream');R.endEmitted||(R.ended=!0,u.nextTick(F,R,C))}function F(C,R){!C.endEmitted&&C.length===0&&(C.endEmitted=!0,R.readable=!1,R.emit("end"))}function I(C,R){for(var Z=0,z=C.length;Z-1?u:l.nextTick,r;x.WritableState=k;var i=Object.create(e("core-util-is"));i.inherits=e("inherits");var a={deprecate:e("util-deprecate")},s=e("./internal/streams/stream"),d=e("safe-buffer").Buffer,p=o.Uint8Array||function(){};function h(L){return d.from(L)}function f(L){return d.isBuffer(L)||L instanceof p}var m=e("./internal/streams/destroy");i.inherits(x,s);function w(){}function k(L,B){r=r||e("./_stream_duplex"),L=L||{};var Y=B instanceof r;this.objectMode=!!L.objectMode,Y&&(this.objectMode=this.objectMode||!!L.writableObjectMode);var Q=L.highWaterMark,ee=L.writableHighWaterMark,$=this.objectMode?16:16*1024;Q||Q===0?this.highWaterMark=Q:Y&&(ee||ee===0)?this.highWaterMark=ee:this.highWaterMark=$,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var ie=L.decodeStrings===!1;this.decodeStrings=!ie,this.defaultEncoding=L.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(F){A(B,F)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new c(this)}k.prototype.getBuffer=function(){for(var B=this.bufferedRequest,Y=[];B;)Y.push(B),B=B.next;return Y},function(){try{Object.defineProperty(k.prototype,"buffer",{get:a.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var S;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(S=Function.prototype[Symbol.hasInstance],Object.defineProperty(x,Symbol.hasInstance,{value:function(L){return S.call(this,L)?!0:this!==x?!1:L&&L._writableState instanceof k}})):S=function(L){return L instanceof this};function x(L){if(r=r||e("./_stream_duplex"),!S.call(x,this)&&!(this instanceof r))return new x(L);this._writableState=new k(L,this),this.writable=!0,L&&(typeof L.write=="function"&&(this._write=L.write),typeof L.writev=="function"&&(this._writev=L.writev),typeof L.destroy=="function"&&(this._destroy=L.destroy),typeof L.final=="function"&&(this._final=L.final)),s.call(this)}x.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function y(L,B){var Y=new Error("write after end");L.emit("error",Y),l.nextTick(B,Y)}function E(L,B,Y,Q){var ee=!0,$=!1;return Y===null?$=new TypeError("May not write null values to stream"):typeof Y!="string"&&Y!==void 0&&!B.objectMode&&($=new TypeError("Invalid non-string/buffer chunk")),$&&(L.emit("error",$),l.nextTick(Q,$),ee=!1),ee}x.prototype.write=function(L,B,Y){var Q=this._writableState,ee=!1,$=!Q.objectMode&&f(L);return $&&!d.isBuffer(L)&&(L=h(L)),typeof B=="function"&&(Y=B,B=null),$?B="buffer":B||(B=Q.defaultEncoding),typeof Y!="function"&&(Y=w),Q.ended?y(this,Y):($||E(this,Q,L,Y))&&(Q.pendingcb++,ee=M(this,Q,$,L,B,Y)),ee},x.prototype.cork=function(){var L=this._writableState;L.corked++},x.prototype.uncork=function(){var L=this._writableState;L.corked&&(L.corked--,!L.writing&&!L.corked&&!L.finished&&!L.bufferProcessing&&L.bufferedRequest&&te(this,L))},x.prototype.setDefaultEncoding=function(B){if(typeof B=="string"&&(B=B.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((B+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+B);return this._writableState.defaultEncoding=B,this};function P(L,B,Y){return!L.objectMode&&L.decodeStrings!==!1&&typeof B=="string"&&(B=d.from(B,Y)),B}Object.defineProperty(x.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function M(L,B,Y,Q,ee,$){if(!Y){var ie=P(B,Q,ee);Q!==ie&&(Y=!0,ee="buffer",Q=ie)}var F=B.objectMode?1:Q.length;B.length+=F;var I=B.length0?this.tail.next=i:this.head=i,this.tail=i,++this.length},c.prototype.unshift=function(r){var i={data:r,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length},c.prototype.shift=function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}},c.prototype.clear=function(){this.head=this.tail=null,this.length=0},c.prototype.join=function(r){if(this.length===0)return"";for(var i=this.head,a=""+i.data;i=i.next;)a+=r+i.data;return a},c.prototype.concat=function(r){if(this.length===0)return o.alloc(0);if(this.length===1)return this.head.data;for(var i=o.allocUnsafe(r>>>0),a=this.head,s=0;a;)l(a.data,i,s),s+=a.data.length,a=a.next;return i},c}(),u&&u.inspect&&u.inspect.custom&&(v.exports.prototype[u.inspect.custom]=function(){var c=u.inspect({length:this.length});return this.constructor.name+" "+c})},{"safe-buffer":337,util:79}],330:[function(e,v,g){var t=e("process-nextick-args");function o(c,n){var r=this,i=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return i||a?(n?n(c):c&&(!this._writableState||!this._writableState.errorEmitted)&&t.nextTick(l,this,c),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(c||null,function(s){!n&&s?(t.nextTick(l,r,s),r._writableState&&(r._writableState.errorEmitted=!0)):n&&n(s)}),this)}function u(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function l(c,n){c.emit("error",n)}v.exports={destroy:o,undestroy:u}},{"process-nextick-args":317}],331:[function(e,v,g){arguments[4][97][0].apply(g,arguments)},{dup:97,events:296}],332:[function(e,v,g){v.exports=e("./readable").PassThrough},{"./readable":333}],333:[function(e,v,g){g=v.exports=e("./lib/_stream_readable.js"),g.Stream=g,g.Readable=g,g.Writable=e("./lib/_stream_writable.js"),g.Duplex=e("./lib/_stream_duplex.js"),g.Transform=e("./lib/_stream_transform.js"),g.PassThrough=e("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":324,"./lib/_stream_passthrough.js":325,"./lib/_stream_readable.js":326,"./lib/_stream_transform.js":327,"./lib/_stream_writable.js":328}],334:[function(e,v,g){v.exports=e("./readable").Transform},{"./readable":333}],335:[function(e,v,g){v.exports=e("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":328}],336:[function(e,v,g){(function(t){var o=Object.prototype,u=o.hasOwnProperty,l,c=typeof Symbol=="function"?Symbol:{},n=c.iterator||"@@iterator",r=c.asyncIterator||"@@asyncIterator",i=c.toStringTag||"@@toStringTag",a=typeof v=="object",s=t.regeneratorRuntime;if(s){a&&(v.exports=s);return}s=t.regeneratorRuntime=a?v.exports:{};function d(V,G,U,L){var B=G&&G.prototype instanceof S?G:S,Y=Object.create(B.prototype),Q=new X(L||[]);return Y._invoke=A(V,U,Q),Y}s.wrap=d;function p(V,G,U){try{return{type:"normal",arg:V.call(G,U)}}catch(L){return{type:"throw",arg:L}}}var h="suspendedStart",f="suspendedYield",m="executing",w="completed",k={};function S(){}function x(){}function y(){}var E={};E[n]=function(){return this};var P=Object.getPrototypeOf,M=P&&P(P(q([])));M&&M!==o&&u.call(M,n)&&(E=M);var D=y.prototype=S.prototype=Object.create(E);x.prototype=D.constructor=y,y.constructor=x,y[i]=x.displayName="GeneratorFunction";function O(V){["next","throw","return"].forEach(function(G){V[G]=function(U){return this._invoke(G,U)}})}s.isGeneratorFunction=function(V){var G=typeof V=="function"&&V.constructor;return G?G===x||(G.displayName||G.name)==="GeneratorFunction":!1},s.mark=function(V){return Object.setPrototypeOf?Object.setPrototypeOf(V,y):(V.__proto__=y,i in V||(V[i]="GeneratorFunction")),V.prototype=Object.create(D),V},s.awrap=function(V){return{__await:V}};function b(V){function G(B,Y,Q,ee){var $=p(V[B],V,Y);if($.type==="throw")ee($.arg);else{var ie=$.arg,F=ie.value;return F&&typeof F=="object"&&u.call(F,"__await")?Promise.resolve(F.__await).then(function(I){G("next",I,Q,ee)},function(I){G("throw",I,Q,ee)}):Promise.resolve(F).then(function(I){ie.value=I,Q(ie)},ee)}}var U;function L(B,Y){function Q(){return new Promise(function(ee,$){G(B,Y,ee,$)})}return U=U?U.then(Q,Q):Q()}this._invoke=L}O(b.prototype),b.prototype[r]=function(){return this},s.AsyncIterator=b,s.async=function(V,G,U,L){var B=new b(d(V,G,U,L));return s.isGeneratorFunction(G)?B:B.next().then(function(Y){return Y.done?Y.value:B.next()})};function A(V,G,U){var L=h;return function(Y,Q){if(L===m)throw new Error("Generator is already running");if(L===w){if(Y==="throw")throw Q;return re()}for(U.method=Y,U.arg=Q;;){var ee=U.delegate;if(ee){var $=W(ee,U);if($){if($===k)continue;return $}}if(U.method==="next")U.sent=U._sent=U.arg;else if(U.method==="throw"){if(L===h)throw L=w,U.arg;U.dispatchException(U.arg)}else U.method==="return"&&U.abrupt("return",U.arg);L=m;var ie=p(V,G,U);if(ie.type==="normal"){if(L=U.done?w:f,ie.arg===k)continue;return{value:ie.arg,done:U.done}}else ie.type==="throw"&&(L=w,U.method="throw",U.arg=ie.arg)}}}function W(V,G){var U=V.iterator[G.method];if(U===l){if(G.delegate=null,G.method==="throw"){if(V.iterator.return&&(G.method="return",G.arg=l,W(V,G),G.method==="throw"))return k;G.method="throw",G.arg=new TypeError("The iterator does not provide a 'throw' method")}return k}var L=p(U,V.iterator,G.arg);if(L.type==="throw")return G.method="throw",G.arg=L.arg,G.delegate=null,k;var B=L.arg;if(!B)return G.method="throw",G.arg=new TypeError("iterator result is not an object"),G.delegate=null,k;if(B.done)G[V.resultName]=B.value,G.next=V.nextLoc,G.method!=="return"&&(G.method="next",G.arg=l);else return B;return G.delegate=null,k}O(D),D[i]="Generator",D[n]=function(){return this},D.toString=function(){return"[object Generator]"};function K(V){var G={tryLoc:V[0]};1 in V&&(G.catchLoc=V[1]),2 in V&&(G.finallyLoc=V[2],G.afterLoc=V[3]),this.tryEntries.push(G)}function te(V){var G=V.completion||{};G.type="normal",delete G.arg,V.completion=G}function X(V){this.tryEntries=[{tryLoc:"root"}],V.forEach(K,this),this.reset(!0)}s.keys=function(V){var G=[];for(var U in V)G.push(U);return G.reverse(),function L(){for(;G.length;){var B=G.pop();if(B in V)return L.value=B,L.done=!1,L}return L.done=!0,L}};function q(V){if(V){var G=V[n];if(G)return G.call(V);if(typeof V.next=="function")return V;if(!isNaN(V.length)){var U=-1,L=function B(){for(;++U=0;--L){var B=this.tryEntries[L],Y=B.completion;if(B.tryLoc==="root")return U("end");if(B.tryLoc<=this.prev){var Q=u.call(B,"catchLoc"),ee=u.call(B,"finallyLoc");if(Q&&ee){if(this.prev=0;--U){var L=this.tryEntries[U];if(L.tryLoc<=this.prev&&u.call(L,"finallyLoc")&&this.prev=0;--G){var U=this.tryEntries[G];if(U.finallyLoc===V)return this.complete(U.completion,U.afterLoc),te(U),k}},catch:function(V){for(var G=this.tryEntries.length-1;G>=0;--G){var U=this.tryEntries[G];if(U.tryLoc===V){var L=U.completion;if(L.type==="throw"){var B=L.arg;te(U)}return B}}throw new Error("illegal catch attempt")},delegateYield:function(V,G,U){return this.delegate={iterator:q(V),resultName:G,nextLoc:U},this.method==="next"&&(this.arg=l),k}}})(function(){return this}()||Function("return this")())},{}],337:[function(e,v,g){var t=e("buffer"),o=t.Buffer;function u(c,n){for(var r in c)n[r]=c[r]}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?v.exports=t:(u(t,g),g.Buffer=l);function l(c,n,r){return o(c,n,r)}u(o,l),l.from=function(c,n,r){if(typeof c=="number")throw new TypeError("Argument must not be a number");return o(c,n,r)},l.alloc=function(c,n,r){if(typeof c!="number")throw new TypeError("Argument must be a number");var i=o(c);return n!==void 0?typeof r=="string"?i.fill(n,r):i.fill(n):i.fill(0),i},l.allocUnsafe=function(c){if(typeof c!="number")throw new TypeError("Argument must be a number");return o(c)},l.allocUnsafeSlow=function(c){if(typeof c!="number")throw new TypeError("Argument must be a number");return t.SlowBuffer(c)}},{buffer:99}],338:[function(e,v,g){(function(t){(function(o){o.parser=function(F,I){return new l(F,I)},o.SAXParser=l,o.SAXStream=d,o.createStream=s,o.MAX_BUFFER_LENGTH=64*1024;var u=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];o.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function l(F,I){if(!(this instanceof l))return new l(F,I);var C=this;n(C),C.q=C.c="",C.bufferCheckPosition=o.MAX_BUFFER_LENGTH,C.opt=I||{},C.opt.lowercase=C.opt.lowercase||C.opt.lowercasetags,C.looseCase=C.opt.lowercase?"toLowerCase":"toUpperCase",C.tags=[],C.closed=C.closedRoot=C.sawRoot=!1,C.tag=C.error=null,C.strict=!!F,C.noscript=!!(F||C.opt.noscript),C.state=b.BEGIN,C.strictEntities=C.opt.strictEntities,C.ENTITIES=C.strictEntities?Object.create(o.XML_ENTITIES):Object.create(o.ENTITIES),C.attribList=[],C.opt.xmlns&&(C.ns=Object.create(w)),C.trackPosition=C.opt.position!==!1,C.trackPosition&&(C.position=C.line=C.column=0),W(C,"onready")}Object.create||(Object.create=function(F){function I(){}I.prototype=F;var C=new I;return C}),Object.keys||(Object.keys=function(F){var I=[];for(var C in F)F.hasOwnProperty(C)&&I.push(C);return I});function c(F){for(var I=Math.max(o.MAX_BUFFER_LENGTH,10),C=0,R=0,Z=u.length;RI)switch(u[R]){case"textNode":te(F);break;case"cdata":K(F,"oncdata",F.cdata),F.cdata="";break;case"script":K(F,"onscript",F.script),F.script="";break;default:q(F,"Max buffer length exceeded: "+u[R])}C=Math.max(C,z)}var N=o.MAX_BUFFER_LENGTH-C;F.bufferCheckPosition=N+F.position}function n(F){for(var I=0,C=u.length;I"||E(F)}function D(F,I){return F.test(I)}function O(F,I){return!D(F,I)}var b=0;o.STATE={BEGIN:b++,BEGIN_WHITESPACE:b++,TEXT:b++,TEXT_ENTITY:b++,OPEN_WAKA:b++,SGML_DECL:b++,SGML_DECL_QUOTED:b++,DOCTYPE:b++,DOCTYPE_QUOTED:b++,DOCTYPE_DTD:b++,DOCTYPE_DTD_QUOTED:b++,COMMENT_STARTING:b++,COMMENT:b++,COMMENT_ENDING:b++,COMMENT_ENDED:b++,CDATA:b++,CDATA_ENDING:b++,CDATA_ENDING_2:b++,PROC_INST:b++,PROC_INST_BODY:b++,PROC_INST_ENDING:b++,OPEN_TAG:b++,OPEN_TAG_SLASH:b++,ATTRIB:b++,ATTRIB_NAME:b++,ATTRIB_NAME_SAW_WHITE:b++,ATTRIB_VALUE:b++,ATTRIB_VALUE_QUOTED:b++,ATTRIB_VALUE_CLOSED:b++,ATTRIB_VALUE_UNQUOTED:b++,ATTRIB_VALUE_ENTITY_Q:b++,ATTRIB_VALUE_ENTITY_U:b++,CLOSE_TAG:b++,CLOSE_TAG_SAW_WHITE:b++,SCRIPT:b++,SCRIPT_ENDING:b++},o.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},o.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(o.ENTITIES).forEach(function(F){var I=o.ENTITIES[F],C=typeof I=="number"?String.fromCharCode(I):I;o.ENTITIES[F]=C});for(var A in o.STATE)o.STATE[o.STATE[A]]=A;b=o.STATE;function W(F,I,C){F[I]&&F[I](C)}function K(F,I,C){F.textNode&&te(F),W(F,I,C)}function te(F){F.textNode=X(F.opt,F.textNode),F.textNode&&W(F,"ontext",F.textNode),F.textNode=""}function X(F,I){return F.trim&&(I=I.trim()),F.normalize&&(I=I.replace(/\s+/g," ")),I}function q(F,I){return te(F),F.trackPosition&&(I+=` +Line: `+F.line+` +Column: `+F.column+` +Char: `+F.c),I=new Error(I),F.error=I,W(F,"onerror",I),F}function re(F){return F.sawRoot&&!F.closedRoot&&V(F,"Unclosed root tag"),F.state!==b.BEGIN&&F.state!==b.BEGIN_WHITESPACE&&F.state!==b.TEXT&&q(F,"Unexpected end"),te(F),F.c="",F.closed=!0,W(F,"onend"),l.call(F,F.strict,F.opt),F}function V(F,I){if(typeof F!="object"||!(F instanceof l))throw new Error("bad call to strictFail");F.strict&&q(F,I)}function G(F){F.strict||(F.tagName=F.tagName[F.looseCase]());var I=F.tags[F.tags.length-1]||F,C=F.tag={name:F.tagName,attributes:{}};F.opt.xmlns&&(C.ns=I.ns),F.attribList.length=0,K(F,"onopentagstart",C)}function U(F,I){var C=F.indexOf(":"),R=C<0?["",F]:F.split(":"),Z=R[0],z=R[1];return I&&F==="xmlns"&&(Z="xmlns",z=""),{prefix:Z,local:z}}function L(F){if(F.strict||(F.attribName=F.attribName[F.looseCase]()),F.attribList.indexOf(F.attribName)!==-1||F.tag.attributes.hasOwnProperty(F.attribName)){F.attribName=F.attribValue="";return}if(F.opt.xmlns){var I=U(F.attribName,!0),C=I.prefix,R=I.local;if(C==="xmlns")if(R==="xml"&&F.attribValue!==f)V(F,"xml: prefix must be bound to "+f+` +Actual: `+F.attribValue);else if(R==="xmlns"&&F.attribValue!==m)V(F,"xmlns: prefix must be bound to "+m+` +Actual: `+F.attribValue);else{var Z=F.tag,z=F.tags[F.tags.length-1]||F;Z.ns===z.ns&&(Z.ns=Object.create(z.ns)),Z.ns[R]=F.attribValue}F.attribList.push([F.attribName,F.attribValue])}else F.tag.attributes[F.attribName]=F.attribValue,K(F,"onattribute",{name:F.attribName,value:F.attribValue});F.attribName=F.attribValue=""}function B(F,I){if(F.opt.xmlns){var C=F.tag,R=U(F.tagName);C.prefix=R.prefix,C.local=R.local,C.uri=C.ns[R.prefix]||"",C.prefix&&!C.uri&&(V(F,"Unbound namespace prefix: "+JSON.stringify(F.tagName)),C.uri=R.prefix);var Z=F.tags[F.tags.length-1]||F;C.ns&&Z.ns!==C.ns&&Object.keys(C.ns).forEach(function(ge){K(F,"onopennamespace",{prefix:ge,uri:C.ns[ge]})});for(var z=0,N=F.attribList.length;z",F.tagName="",F.state=b.SCRIPT;return}K(F,"onscript",F.script),F.script=""}var I=F.tags.length,C=F.tagName;F.strict||(C=C[F.looseCase]());for(var R=C;I--;){var Z=F.tags[I];if(Z.name!==R)V(F,"Unexpected close tag");else break}if(I<0){V(F,"Unmatched closing tag: "+F.tagName),F.textNode+="",F.state=b.TEXT;return}F.tagName=C;for(var z=F.tags.length;z-- >I;){var N=F.tag=F.tags.pop();F.tagName=F.tag.name,K(F,"onclosetag",F.tagName);var T={};for(var _ in N.ns)T[_]=N.ns[_];var j=F.tags[F.tags.length-1]||F;F.opt.xmlns&&N.ns!==j.ns&&Object.keys(N.ns).forEach(function(H){var J=N.ns[H];K(F,"onclosenamespace",{prefix:H,uri:J})})}I===0&&(F.closedRoot=!0),F.tagName=F.attribValue=F.attribName="",F.attribList.length=0,F.state=b.TEXT}function Q(F){var I=F.entity,C=I.toLowerCase(),R,Z="";return F.ENTITIES[I]?F.ENTITIES[I]:F.ENTITIES[C]?F.ENTITIES[C]:(I=C,I.charAt(0)==="#"&&(I.charAt(1)==="x"?(I=I.slice(2),R=parseInt(I,16),Z=R.toString(16)):(I=I.slice(1),R=parseInt(I,10),Z=R.toString(10))),I=I.replace(/^0+/,""),isNaN(R)||Z.toLowerCase()!==I?(V(F,"Invalid character entity"),"&"+F.entity+";"):String.fromCodePoint(R))}function ee(F,I){I==="<"?(F.state=b.OPEN_WAKA,F.startTagPosition=F.position):E(I)||(V(F,"Non-whitespace before first tag."),F.textNode=I,F.state=b.TEXT)}function $(F,I){var C="";return I"?(K(I,"onsgmldeclaration",I.sgmlDecl),I.sgmlDecl="",I.state=b.TEXT):(P(R)&&(I.state=b.SGML_DECL_QUOTED),I.sgmlDecl+=R);continue;case b.SGML_DECL_QUOTED:R===I.q&&(I.state=b.SGML_DECL,I.q=""),I.sgmlDecl+=R;continue;case b.DOCTYPE:R===">"?(I.state=b.TEXT,K(I,"ondoctype",I.doctype),I.doctype=!0):(I.doctype+=R,R==="["?I.state=b.DOCTYPE_DTD:P(R)&&(I.state=b.DOCTYPE_QUOTED,I.q=R));continue;case b.DOCTYPE_QUOTED:I.doctype+=R,R===I.q&&(I.q="",I.state=b.DOCTYPE);continue;case b.DOCTYPE_DTD:I.doctype+=R,R==="]"?I.state=b.DOCTYPE:P(R)&&(I.state=b.DOCTYPE_DTD_QUOTED,I.q=R);continue;case b.DOCTYPE_DTD_QUOTED:I.doctype+=R,R===I.q&&(I.state=b.DOCTYPE_DTD,I.q="");continue;case b.COMMENT:R==="-"?I.state=b.COMMENT_ENDING:I.comment+=R;continue;case b.COMMENT_ENDING:R==="-"?(I.state=b.COMMENT_ENDED,I.comment=X(I.opt,I.comment),I.comment&&K(I,"oncomment",I.comment),I.comment=""):(I.comment+="-"+R,I.state=b.COMMENT);continue;case b.COMMENT_ENDED:R!==">"?(V(I,"Malformed comment"),I.comment+="--"+R,I.state=b.COMMENT):I.state=b.TEXT;continue;case b.CDATA:R==="]"?I.state=b.CDATA_ENDING:I.cdata+=R;continue;case b.CDATA_ENDING:R==="]"?I.state=b.CDATA_ENDING_2:(I.cdata+="]"+R,I.state=b.CDATA);continue;case b.CDATA_ENDING_2:R===">"?(I.cdata&&K(I,"oncdata",I.cdata),K(I,"onclosecdata"),I.cdata="",I.state=b.TEXT):R==="]"?I.cdata+="]":(I.cdata+="]]"+R,I.state=b.CDATA);continue;case b.PROC_INST:R==="?"?I.state=b.PROC_INST_ENDING:E(R)?I.state=b.PROC_INST_BODY:I.procInstName+=R;continue;case b.PROC_INST_BODY:if(!I.procInstBody&&E(R))continue;R==="?"?I.state=b.PROC_INST_ENDING:I.procInstBody+=R;continue;case b.PROC_INST_ENDING:R===">"?(K(I,"onprocessinginstruction",{name:I.procInstName,body:I.procInstBody}),I.procInstName=I.procInstBody="",I.state=b.TEXT):(I.procInstBody+="?"+R,I.state=b.PROC_INST_BODY);continue;case b.OPEN_TAG:D(S,R)?I.tagName+=R:(G(I),R===">"?B(I):R==="/"?I.state=b.OPEN_TAG_SLASH:(E(R)||V(I,"Invalid character in tag name"),I.state=b.ATTRIB));continue;case b.OPEN_TAG_SLASH:R===">"?(B(I,!0),Y(I)):(V(I,"Forward-slash in opening tag not followed by >"),I.state=b.ATTRIB);continue;case b.ATTRIB:if(E(R))continue;R===">"?B(I):R==="/"?I.state=b.OPEN_TAG_SLASH:D(k,R)?(I.attribName=R,I.attribValue="",I.state=b.ATTRIB_NAME):V(I,"Invalid attribute name");continue;case b.ATTRIB_NAME:R==="="?I.state=b.ATTRIB_VALUE:R===">"?(V(I,"Attribute without value"),I.attribValue=I.attribName,L(I),B(I)):E(R)?I.state=b.ATTRIB_NAME_SAW_WHITE:D(S,R)?I.attribName+=R:V(I,"Invalid attribute name");continue;case b.ATTRIB_NAME_SAW_WHITE:if(R==="=")I.state=b.ATTRIB_VALUE;else{if(E(R))continue;V(I,"Attribute without value"),I.tag.attributes[I.attribName]="",I.attribValue="",K(I,"onattribute",{name:I.attribName,value:""}),I.attribName="",R===">"?B(I):D(k,R)?(I.attribName=R,I.state=b.ATTRIB_NAME):(V(I,"Invalid attribute name"),I.state=b.ATTRIB)}continue;case b.ATTRIB_VALUE:if(E(R))continue;P(R)?(I.q=R,I.state=b.ATTRIB_VALUE_QUOTED):(V(I,"Unquoted attribute value"),I.state=b.ATTRIB_VALUE_UNQUOTED,I.attribValue=R);continue;case b.ATTRIB_VALUE_QUOTED:if(R!==I.q){R==="&"?I.state=b.ATTRIB_VALUE_ENTITY_Q:I.attribValue+=R;continue}L(I),I.q="",I.state=b.ATTRIB_VALUE_CLOSED;continue;case b.ATTRIB_VALUE_CLOSED:E(R)?I.state=b.ATTRIB:R===">"?B(I):R==="/"?I.state=b.OPEN_TAG_SLASH:D(k,R)?(V(I,"No whitespace between attributes"),I.attribName=R,I.attribValue="",I.state=b.ATTRIB_NAME):V(I,"Invalid attribute name");continue;case b.ATTRIB_VALUE_UNQUOTED:if(!M(R)){R==="&"?I.state=b.ATTRIB_VALUE_ENTITY_U:I.attribValue+=R;continue}L(I),R===">"?B(I):I.state=b.ATTRIB;continue;case b.CLOSE_TAG:if(I.tagName)R===">"?Y(I):D(S,R)?I.tagName+=R:I.script?(I.script+=""?Y(I):V(I,"Invalid characters in closing tag");continue;case b.TEXT_ENTITY:case b.ATTRIB_VALUE_ENTITY_Q:case b.ATTRIB_VALUE_ENTITY_U:var N,T;switch(I.state){case b.TEXT_ENTITY:N=b.TEXT,T="textNode";break;case b.ATTRIB_VALUE_ENTITY_Q:N=b.ATTRIB_VALUE_QUOTED,T="attribValue";break;case b.ATTRIB_VALUE_ENTITY_U:N=b.ATTRIB_VALUE_UNQUOTED,T="attribValue";break}R===";"?(I[T]+=Q(I),I.entity="",I.state=N):D(I.entity.length?y:x,R)?I.entity+=R:(V(I,"Invalid character in entity name"),I[T]+="&"+I.entity+R,I.entity="",I.state=N);continue;default:throw new Error(I,"Unknown state: "+I.state)}return I.position>=I.bufferCheckPosition&&c(I),I}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */String.fromCodePoint||function(){var F=String.fromCharCode,I=Math.floor,C=function(){var R=16384,Z=[],z,N,T=-1,_=arguments.length;if(!_)return"";for(var j="";++T<_;){var H=Number(arguments[T]);if(!isFinite(H)||H<0||H>1114111||I(H)!==H)throw RangeError("Invalid code point: "+H);H<=65535?Z.push(H):(H-=65536,z=(H>>10)+55296,N=H%1024+56320,Z.push(z,N)),(T+1===_||Z.length>R)&&(j+=F.apply(null,Z),Z.length=0)}return j};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:C,configurable:!0,writable:!0}):String.fromCodePoint=C}()})(typeof g=="undefined"?this.sax={}:g)}).call(this,e("buffer").Buffer)},{buffer:99,stream:339,string_decoder:340}],339:[function(e,v,g){v.exports=u;var t=e("events").EventEmitter,o=e("inherits");o(u,t),u.Readable=e("readable-stream/readable.js"),u.Writable=e("readable-stream/writable.js"),u.Duplex=e("readable-stream/duplex.js"),u.Transform=e("readable-stream/transform.js"),u.PassThrough=e("readable-stream/passthrough.js"),u.Stream=u;function u(){t.call(this)}u.prototype.pipe=function(l,c){var n=this;function r(f){l.writable&&l.write(f)===!1&&n.pause&&n.pause()}n.on("data",r);function i(){n.readable&&n.resume&&n.resume()}l.on("drain",i),!l._isStdio&&(!c||c.end!==!1)&&(n.on("end",s),n.on("close",d));var a=!1;function s(){a||(a=!0,l.end())}function d(){a||(a=!0,typeof l.destroy=="function"&&l.destroy())}function p(f){if(h(),t.listenerCount(this,"error")===0)throw f}n.on("error",p),l.on("error",p);function h(){n.removeListener("data",r),l.removeListener("drain",i),n.removeListener("end",s),n.removeListener("close",d),n.removeListener("error",p),l.removeListener("error",p),n.removeListener("end",h),n.removeListener("close",h),l.removeListener("close",h)}return n.on("end",h),n.on("close",h),l.on("close",h),l.emit("pipe",n),l}},{events:296,inherits:306,"readable-stream/duplex.js":323,"readable-stream/passthrough.js":332,"readable-stream/readable.js":333,"readable-stream/transform.js":334,"readable-stream/writable.js":335}],340:[function(e,v,g){var t=e("safe-buffer").Buffer,o=t.isEncoding||function(S){switch(S=""+S,S&&S.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function u(S){if(!S)return"utf8";for(var x;;)switch(S){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return S;default:if(x)return;S=(""+S).toLowerCase(),x=!0}}function l(S){var x=u(S);if(typeof x!="string"&&(t.isEncoding===o||!o(S)))throw new Error("Unknown encoding: "+S);return x||S}g.StringDecoder=c;function c(S){this.encoding=l(S);var x;switch(this.encoding){case"utf16le":this.text=p,this.end=h,x=4;break;case"utf8":this.fillLast=a,x=4;break;case"base64":this.text=f,this.end=m,x=3;break;default:this.write=w,this.end=k;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(x)}c.prototype.write=function(S){if(S.length===0)return"";var x,y;if(this.lastNeed){if(x=this.fillLast(S),x===void 0)return"";y=this.lastNeed,this.lastNeed=0}else y=0;return y>5==6?2:S>>4==14?3:S>>3==30?4:S>>6==2?-1:-2}function r(S,x,y){var E=x.length-1;if(E=0?(P>0&&(S.lastNeed=P-1),P):--E=0?(P>0&&(S.lastNeed=P-2),P):--E=0?(P>0&&(P===2?P=0:S.lastNeed=P-3),P):0))}function i(S,x,y){if((x[0]&192)!=128)return S.lastNeed=0,"\uFFFD";if(S.lastNeed>1&&x.length>1){if((x[1]&192)!=128)return S.lastNeed=1,"\uFFFD";if(S.lastNeed>2&&x.length>2&&(x[2]&192)!=128)return S.lastNeed=2,"\uFFFD"}}function a(S){var x=this.lastTotal-this.lastNeed,y=i(this,S);if(y!==void 0)return y;if(this.lastNeed<=S.length)return S.copy(this.lastChar,x,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);S.copy(this.lastChar,x,0,S.length),this.lastNeed-=S.length}function s(S,x){var y=r(this,S,x);if(!this.lastNeed)return S.toString("utf8",x);this.lastTotal=y;var E=S.length-(y-this.lastNeed);return S.copy(this.lastChar,0,E),S.toString("utf8",x,E)}function d(S){var x=S&&S.length?this.write(S):"";return this.lastNeed?x+"\uFFFD":x}function p(S,x){if((S.length-x)%2==0){var y=S.toString("utf16le",x);if(y){var E=y.charCodeAt(y.length-1);if(E>=55296&&E<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=S[S.length-2],this.lastChar[1]=S[S.length-1],y.slice(0,-1)}return y}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=S[S.length-1],S.toString("utf16le",x,S.length-1)}function h(S){var x=S&&S.length?this.write(S):"";if(this.lastNeed){var y=this.lastTotal-this.lastNeed;return x+this.lastChar.toString("utf16le",0,y)}return x}function f(S,x){var y=(S.length-x)%3;return y===0?S.toString("base64",x):(this.lastNeed=3-y,this.lastTotal=3,y===1?this.lastChar[0]=S[S.length-1]:(this.lastChar[0]=S[S.length-2],this.lastChar[1]=S[S.length-1]),S.toString("base64",x,S.length-y))}function m(S){var x=S&&S.length?this.write(S):"";return this.lastNeed?x+this.lastChar.toString("base64",0,3-this.lastNeed):x}function w(S){return S.toString(this.encoding)}function k(S){return S&&S.length?this.write(S):""}},{"safe-buffer":337}],341:[function(e,v,g){(function(t,o){var u=e("process/browser.js").nextTick,l=Function.prototype.apply,c=Array.prototype.slice,n={},r=0;g.setTimeout=function(){return new i(l.call(setTimeout,window,arguments),clearTimeout)},g.setInterval=function(){return new i(l.call(setInterval,window,arguments),clearInterval)},g.clearTimeout=g.clearInterval=function(a){a.close()};function i(a,s){this._id=a,this._clearFn=s}i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(window,this._id)},g.enroll=function(a,s){clearTimeout(a._idleTimeoutId),a._idleTimeout=s},g.unenroll=function(a){clearTimeout(a._idleTimeoutId),a._idleTimeout=-1},g._unrefActive=g.active=function(a){clearTimeout(a._idleTimeoutId);var s=a._idleTimeout;s>=0&&(a._idleTimeoutId=setTimeout(function(){a._onTimeout&&a._onTimeout()},s))},g.setImmediate=typeof t=="function"?t:function(a){var s=r++,d=arguments.length<2?!1:c.call(arguments,1);return n[s]=!0,u(function(){n[s]&&(d?a.apply(null,d):a.call(null),g.clearImmediate(s))}),s},g.clearImmediate=typeof o=="function"?o:function(a){delete n[a]}}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":318,timers:341}],342:[function(e,v,g){(function(t){v.exports=o;function o(l,c){if(u("noDeprecation"))return l;var n=!1;function r(){if(!n){if(u("throwDeprecation"))throw new Error(c);u("traceDeprecation")?console.trace(c):console.warn(c),n=!0}return l.apply(this,arguments)}return r}function u(l){try{if(!t.localStorage)return!1}catch{return!1}var c=t.localStorage[l];return c==null?!1:String(c).toLowerCase()==="true"}}).call(this,typeof commonjsGlobal!="undefined"?commonjsGlobal:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],343:[function(e,v,g){typeof Object.create=="function"?v.exports=function(o,u){o.super_=u,o.prototype=Object.create(u.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}})}:v.exports=function(o,u){o.super_=u;var l=function(){};l.prototype=u.prototype,o.prototype=new l,o.prototype.constructor=o}},{}],344:[function(e,v,g){v.exports=function(o){return o&&typeof o=="object"&&typeof o.copy=="function"&&typeof o.fill=="function"&&typeof o.readUInt8=="function"}},{}],345:[function(e,v,g){(function(t,o){var u=/%[sdj%]/g;g.format=function(G){if(!E(G)){for(var U=[],L=0;L=Y)return $;switch($){case"%s":return String(B[L++]);case"%d":return Number(B[L++]);case"%j":try{return JSON.stringify(B[L++])}catch{return"[Circular]"}default:return $}}),ee=B[L];L=3&&(L.depth=arguments[2]),arguments.length>=4&&(L.colors=arguments[3]),k(U)?L.showHidden=U:U&&g._extend(L,U),M(L.showHidden)&&(L.showHidden=!1),M(L.depth)&&(L.depth=2),M(L.colors)&&(L.colors=!1),M(L.customInspect)&&(L.customInspect=!0),L.colors&&(L.stylize=r),s(L,G,L.depth)}g.inspect=n,n.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},n.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function r(G,U){var L=n.styles[U];return L?"["+n.colors[L][0]+"m"+G+"["+n.colors[L][1]+"m":G}function i(G,U){return G}function a(G){var U={};return G.forEach(function(L,B){U[L]=!0}),U}function s(G,U,L){if(G.customInspect&&U&&W(U.inspect)&&U.inspect!==g.inspect&&!(U.constructor&&U.constructor.prototype===U)){var B=U.inspect(L,G);return E(B)||(B=s(G,B,L)),B}var Y=d(G,U);if(Y)return Y;var Q=Object.keys(U),ee=a(Q);if(G.showHidden&&(Q=Object.getOwnPropertyNames(U)),A(U)&&(Q.indexOf("message")>=0||Q.indexOf("description")>=0))return p(U);if(Q.length===0){if(W(U)){var $=U.name?": "+U.name:"";return G.stylize("[Function"+$+"]","special")}if(D(U))return G.stylize(RegExp.prototype.toString.call(U),"regexp");if(b(U))return G.stylize(Date.prototype.toString.call(U),"date");if(A(U))return p(U)}var ie="",F=!1,I=["{","}"];if(w(U)&&(F=!0,I=["[","]"]),W(U)){var C=U.name?": "+U.name:"";ie=" [Function"+C+"]"}if(D(U)&&(ie=" "+RegExp.prototype.toString.call(U)),b(U)&&(ie=" "+Date.prototype.toUTCString.call(U)),A(U)&&(ie=" "+p(U)),Q.length===0&&(!F||U.length==0))return I[0]+ie+I[1];if(L<0)return D(U)?G.stylize(RegExp.prototype.toString.call(U),"regexp"):G.stylize("[Object]","special");G.seen.push(U);var R;return F?R=h(G,U,L,ee,Q):R=Q.map(function(Z){return f(G,U,L,ee,Z,F)}),G.seen.pop(),m(R,ie,I)}function d(G,U){if(M(U))return G.stylize("undefined","undefined");if(E(U)){var L="'"+JSON.stringify(U).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return G.stylize(L,"string")}if(y(U))return G.stylize(""+U,"number");if(k(U))return G.stylize(""+U,"boolean");if(S(U))return G.stylize("null","null")}function p(G){return"["+Error.prototype.toString.call(G)+"]"}function h(G,U,L,B,Y){for(var Q=[],ee=0,$=U.length;ee<$;++ee)V(U,String(ee))?Q.push(f(G,U,L,B,String(ee),!0)):Q.push("");return Y.forEach(function(ie){ie.match(/^\d+$/)||Q.push(f(G,U,L,B,ie,!0))}),Q}function f(G,U,L,B,Y,Q){var ee,$,ie;if(ie=Object.getOwnPropertyDescriptor(U,Y)||{value:U[Y]},ie.get?ie.set?$=G.stylize("[Getter/Setter]","special"):$=G.stylize("[Getter]","special"):ie.set&&($=G.stylize("[Setter]","special")),V(B,Y)||(ee="["+Y+"]"),$||(G.seen.indexOf(ie.value)<0?(S(L)?$=s(G,ie.value,null):$=s(G,ie.value,L-1),$.indexOf(` +`)>-1&&(Q?$=$.split(` +`).map(function(F){return" "+F}).join(` +`).substr(2):$=` +`+$.split(` +`).map(function(F){return" "+F}).join(` +`))):$=G.stylize("[Circular]","special")),M(ee)){if(Q&&Y.match(/^\d+$/))return $;ee=JSON.stringify(""+Y),ee.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(ee=ee.substr(1,ee.length-2),ee=G.stylize(ee,"name")):(ee=ee.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),ee=G.stylize(ee,"string"))}return ee+": "+$}function m(G,U,L){var B=G.reduce(function(Y,Q){return Q.indexOf(` +`)>=0,Y+Q.replace(/\u001b\[\d\d?m/g,"").length+1},0);return B>60?L[0]+(U===""?"":U+` + `)+" "+G.join(`, + `)+" "+L[1]:L[0]+U+" "+G.join(", ")+" "+L[1]}function w(G){return Array.isArray(G)}g.isArray=w;function k(G){return typeof G=="boolean"}g.isBoolean=k;function S(G){return G===null}g.isNull=S;function x(G){return G==null}g.isNullOrUndefined=x;function y(G){return typeof G=="number"}g.isNumber=y;function E(G){return typeof G=="string"}g.isString=E;function P(G){return typeof G=="symbol"}g.isSymbol=P;function M(G){return G===void 0}g.isUndefined=M;function D(G){return O(G)&&te(G)==="[object RegExp]"}g.isRegExp=D;function O(G){return typeof G=="object"&&G!==null}g.isObject=O;function b(G){return O(G)&&te(G)==="[object Date]"}g.isDate=b;function A(G){return O(G)&&(te(G)==="[object Error]"||G instanceof Error)}g.isError=A;function W(G){return typeof G=="function"}g.isFunction=W;function K(G){return G===null||typeof G=="boolean"||typeof G=="number"||typeof G=="string"||typeof G=="symbol"||typeof G=="undefined"}g.isPrimitive=K,g.isBuffer=e("./support/isBuffer");function te(G){return Object.prototype.toString.call(G)}function X(G){return G<10?"0"+G.toString(10):G.toString(10)}var q=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function re(){var G=new Date,U=[X(G.getHours()),X(G.getMinutes()),X(G.getSeconds())].join(":");return[G.getDate(),q[G.getMonth()],U].join(" ")}g.log=function(){console.log("%s - %s",re(),g.format.apply(g,arguments))},g.inherits=e("inherits"),g._extend=function(G,U){if(!U||!O(U))return G;for(var L=Object.keys(U),B=L.length;B--;)G[L[B]]=U[L[B]];return G};function V(G,U){return Object.prototype.hasOwnProperty.call(G,U)}}).call(this,e("_process"),typeof commonjsGlobal!="undefined"?commonjsGlobal:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":344,_process:392,inherits:343}],346:[function(e,v,g){(function(){g.stripBOM=function(t){return t[0]==="\uFEFF"?t.substring(1):t}}).call(this)},{}],347:[function(e,v,g){(function(){var t,o,u,l,c,n={}.hasOwnProperty;t=e("xmlbuilder"),o=e("./defaults").defaults,l=function(r){return typeof r=="string"&&(r.indexOf("&")>=0||r.indexOf(">")>=0||r.indexOf("<")>=0)},c=function(r){return""},u=function(r){return r.replace("]]>","]]]]>")},g.Builder=function(){function r(i){var a,s,d;this.options={},s=o["0.2"];for(a in s)!n.call(s,a)||(d=s[a],this.options[a]=d);for(a in i)!n.call(i,a)||(d=i[a],this.options[a]=d)}return r.prototype.buildObject=function(i){var a,s,d,p,h;return a=this.options.attrkey,s=this.options.charkey,Object.keys(i).length===1&&this.options.rootName===o["0.2"].rootName?(h=Object.keys(i)[0],i=i[h]):h=this.options.rootName,d=function(f){return function(m,w){var k,S,x,y,E,P;if(typeof w!="object")f.options.cdata&&l(w)?m.raw(c(w)):m.txt(w);else if(Array.isArray(w)){for(y in w)if(!!n.call(w,y)){S=w[y];for(E in S)x=S[E],m=d(m.ele(E),x).up()}}else for(E in w)if(!!n.call(w,E))if(S=w[E],E===a){if(typeof S=="object")for(k in S)P=S[k],m=m.att(k,P)}else if(E===s)f.options.cdata&&l(S)?m=m.raw(c(S)):m=m.txt(S);else if(Array.isArray(S))for(y in S)!n.call(S,y)||(x=S[y],typeof x=="string"?f.options.cdata&&l(x)?m=m.ele(E).raw(c(x)).up():m=m.ele(E,x).up():m=d(m.ele(E),x).up());else typeof S=="object"?m=d(m.ele(E),S).up():typeof S=="string"&&f.options.cdata&&l(S)?m=m.ele(E).raw(c(S)).up():(S==null&&(S=""),m=m.ele(E,S.toString()).up());return m}}(this),p=t.create(h,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),d(p,i).end(this.options.renderOpts)},r}()}).call(this)},{"./defaults":348,xmlbuilder:384}],348:[function(e,v,g){(function(){g.defaults={"0.1":{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},"0.2":{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:` +`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(this)},{}],349:[function(e,v,g){(function(){var t,o,u,l,c,n,r,i,a=function(p,h){return function(){return p.apply(h,arguments)}},s=function(p,h){for(var f in h)d.call(h,f)&&(p[f]=h[f]);function m(){this.constructor=p}return m.prototype=h.prototype,p.prototype=new m,p.__super__=h.prototype,p},d={}.hasOwnProperty;r=e("sax"),u=e("events"),t=e("./bom"),n=e("./processors"),i=e("timers").setImmediate,o=e("./defaults").defaults,l=function(p){return typeof p=="object"&&p!=null&&Object.keys(p).length===0},c=function(p,h,f){var m,w,k;for(m=0,w=p.length;m0&&(P[S.options.childkey]=D),D=P;else if(A){A[S.options.childkey]=A[S.options.childkey]||[],O={};for(E in D)!d.call(D,E)||(O[E]=D[E]);A[S.options.childkey].push(O),delete D["#name"],Object.keys(D).length===1&&m in D&&!S.EXPLICIT_CHARKEY&&(D=D[m])}}return k.length>0?S.assignOrPush(A,M,D):(S.options.explicitRoot&&(b=D,D={},D[M]=b),S.resultObject=D,S.saxParser.ended=!0,S.emit("end",S.resultObject))}}(this),w=function(S){return function(x){var y,E;if(E=k[k.length-1],E)return E[m]+=x,S.options.explicitChildren&&S.options.preserveChildrenOrder&&S.options.charsAsChildren&&(S.options.includeWhiteChars||x.replace(/\\n/g,"").trim()!=="")&&(E[S.options.childkey]=E[S.options.childkey]||[],y={"#name":"__text__"},y[m]=x,S.options.normalize&&(y[m]=y[m].replace(/\s{2,}/g," ").trim()),E[S.options.childkey].push(y)),E}}(this),this.saxParser.ontext=w,this.saxParser.oncdata=function(S){return function(x){var y;if(y=w(x),y)return y.cdata=!0}}()},h.prototype.parseString=function(f,m){var w;m!=null&&typeof m=="function"&&(this.on("end",function(k){return this.reset(),m(null,k)}),this.on("error",function(k){return this.reset(),m(k)}));try{return f=f.toString(),f.trim()===""?(this.emit("end",null),!0):(f=t.stripBOM(f),this.options.async?(this.remaining=f,i(this.processAsync),this.saxParser):this.saxParser.write(f).close())}catch(k){if(w=k,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw w}else return this.emit("error",w),this.saxParser.errThrown=!0}},h.prototype.parseStringPromise=function(f){return new Promise(function(m){return function(w,k){return m.parseString(f,function(S,x){return S?k(S):w(x)})}}(this))},h}(u),g.parseString=function(p,h,f){var m,w,k;return f!=null?(typeof f=="function"&&(m=f),typeof h=="object"&&(w=h)):(typeof h=="function"&&(m=h),w={}),k=new g.Parser(w),k.parseString(p,m)},g.parseStringPromise=function(p,h){var f,m;return typeof h=="object"&&(f=h),m=new g.Parser(f),m.parseStringPromise(p)}}).call(this)},{"./bom":346,"./defaults":348,"./processors":350,events:296,sax:338,timers:341}],350:[function(e,v,g){(function(){var t;t=new RegExp(/(?!xmlns)^.*:/),g.normalize=function(o){return o.toLowerCase()},g.firstCharLowerCase=function(o){return o.charAt(0).toLowerCase()+o.slice(1)},g.stripPrefix=function(o){return o.replace(t,"")},g.parseNumbers=function(o){return isNaN(o)||(o=o%1==0?parseInt(o,10):parseFloat(o)),o},g.parseBooleans=function(o){return/^(?:true|false)$/i.test(o)&&(o=o.toLowerCase()==="true"),o}}).call(this)},{}],351:[function(e,v,g){(function(){var t,o,u,l,c=function(r,i){for(var a in i)n.call(i,a)&&(r[a]=i[a]);function s(){this.constructor=r}return s.prototype=i.prototype,r.prototype=new s,r.__super__=i.prototype,r},n={}.hasOwnProperty;o=e("./defaults"),t=e("./builder"),u=e("./parser"),l=e("./processors"),g.defaults=o.defaults,g.processors=l,g.ValidationError=function(r){c(i,r);function i(a){this.message=a}return i}(Error),g.Builder=t.Builder,g.Parser=u.Parser,g.parseString=u.parseString,g.parseStringPromise=u.parseStringPromise}).call(this)},{"./builder":347,"./defaults":348,"./parser":349,"./processors":350}],352:[function(e,v,g){(function(){v.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},{}],353:[function(e,v,g){(function(){v.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(this)},{}],354:[function(e,v,g){(function(){var t,o,u,l,c,n,r,i=[].slice,a={}.hasOwnProperty;t=function(){var s,d,p,h,f,m;if(m=arguments[0],f=2<=arguments.length?i.call(arguments,1):[],c(Object.assign))Object.assign.apply(null,arguments);else for(s=0,p=f.length;s":"attribute: {"+u+"}, parent: <"+this.parent.name+">"},o.prototype.isEqualNode=function(u){return!(u.namespaceURI!==this.namespaceURI||u.prefix!==this.prefix||u.localName!==this.localName||u.value!==this.value)},o}()}).call(this)},{"./NodeType":353,"./XMLNode":375}],357:[function(e,v,g){(function(){var t,o,u=function(c,n){for(var r in n)l.call(n,r)&&(c[r]=n[r]);function i(){this.constructor=c}return i.prototype=n.prototype,c.prototype=new i,c.__super__=n.prototype,c},l={}.hasOwnProperty;t=e("./NodeType"),o=e("./XMLCharacterData"),v.exports=function(c){u(n,c);function n(r,i){if(n.__super__.constructor.call(this,r),i==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=t.CData,this.value=this.stringify.cdata(i)}return n.prototype.clone=function(){return Object.create(this)},n.prototype.toString=function(r){return this.options.writer.cdata(this,this.options.writer.filterOptions(r))},n}(o)}).call(this)},{"./NodeType":353,"./XMLCharacterData":358}],358:[function(e,v,g){(function(){var t,o=function(l,c){for(var n in c)u.call(c,n)&&(l[n]=c[n]);function r(){this.constructor=l}return r.prototype=c.prototype,l.prototype=new r,l.__super__=c.prototype,l},u={}.hasOwnProperty;t=e("./XMLNode"),v.exports=function(l){o(c,l);function c(n){c.__super__.constructor.call(this,n),this.value=""}return Object.defineProperty(c.prototype,"data",{get:function(){return this.value},set:function(n){return this.value=n||""}}),Object.defineProperty(c.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(c.prototype,"textContent",{get:function(){return this.value},set:function(n){return this.value=n||""}}),c.prototype.clone=function(){return Object.create(this)},c.prototype.substringData=function(n,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.appendData=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.insertData=function(n,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.deleteData=function(n,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.replaceData=function(n,r,i){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.isEqualNode=function(n){return!(!c.__super__.isEqualNode.apply(this,arguments).isEqualNode(n)||n.data!==this.data)},c}(t)}).call(this)},{"./XMLNode":375}],359:[function(e,v,g){(function(){var t,o,u=function(c,n){for(var r in n)l.call(n,r)&&(c[r]=n[r]);function i(){this.constructor=c}return i.prototype=n.prototype,c.prototype=new i,c.__super__=n.prototype,c},l={}.hasOwnProperty;t=e("./NodeType"),o=e("./XMLCharacterData"),v.exports=function(c){u(n,c);function n(r,i){if(n.__super__.constructor.call(this,r),i==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=t.Comment,this.value=this.stringify.comment(i)}return n.prototype.clone=function(){return Object.create(this)},n.prototype.toString=function(r){return this.options.writer.comment(this,this.options.writer.filterOptions(r))},n}(o)}).call(this)},{"./NodeType":353,"./XMLCharacterData":358}],360:[function(e,v,g){(function(){var t,o;t=e("./XMLDOMErrorHandler"),o=e("./XMLDOMStringList"),v.exports=function(){function u(){this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new t,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=Object.create(this.defaultParams)}return Object.defineProperty(u.prototype,"parameterNames",{get:function(){return new o(Object.keys(this.defaultParams))}}),u.prototype.getParameter=function(l){return this.params.hasOwnProperty(l)?this.params[l]:null},u.prototype.canSetParameter=function(l,c){return!0},u.prototype.setParameter=function(l,c){return c!=null?this.params[l]=c:delete this.params[l]},u}()}).call(this)},{"./XMLDOMErrorHandler":361,"./XMLDOMStringList":363}],361:[function(e,v,g){(function(){v.exports=function(){function t(){}return t.prototype.handleError=function(o){throw new Error(o)},t}()}).call(this)},{}],362:[function(e,v,g){(function(){v.exports=function(){function t(){}return t.prototype.hasFeature=function(o,u){return!0},t.prototype.createDocumentType=function(o,u,l){throw new Error("This DOM method is not implemented.")},t.prototype.createDocument=function(o,u,l){throw new Error("This DOM method is not implemented.")},t.prototype.createHTMLDocument=function(o){throw new Error("This DOM method is not implemented.")},t.prototype.getFeature=function(o,u){throw new Error("This DOM method is not implemented.")},t}()}).call(this)},{}],363:[function(e,v,g){(function(){v.exports=function(){function t(o){this.arr=o||[]}return Object.defineProperty(t.prototype,"length",{get:function(){return this.arr.length}}),t.prototype.item=function(o){return this.arr[o]||null},t.prototype.contains=function(o){return this.arr.indexOf(o)!==-1},t}()}).call(this)},{}],364:[function(e,v,g){(function(){var t,o,u=function(c,n){for(var r in n)l.call(n,r)&&(c[r]=n[r]);function i(){this.constructor=c}return i.prototype=n.prototype,c.prototype=new i,c.__super__=n.prototype,c},l={}.hasOwnProperty;o=e("./XMLNode"),t=e("./NodeType"),v.exports=function(c){u(n,c);function n(r,i,a,s,d,p){if(n.__super__.constructor.call(this,r),i==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(a==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(i));if(!s)throw new Error("Missing DTD attribute type. "+this.debugInfo(i));if(!d)throw new Error("Missing DTD attribute default. "+this.debugInfo(i));if(d.indexOf("#")!==0&&(d="#"+d),!d.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(i));if(p&&!d.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(i));this.elementName=this.stringify.name(i),this.type=t.AttributeDeclaration,this.attributeName=this.stringify.name(a),this.attributeType=this.stringify.dtdAttType(s),p&&(this.defaultValue=this.stringify.dtdAttDefault(p)),this.defaultValueType=d}return n.prototype.toString=function(r){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(r))},n}(o)}).call(this)},{"./NodeType":353,"./XMLNode":375}],365:[function(e,v,g){(function(){var t,o,u=function(c,n){for(var r in n)l.call(n,r)&&(c[r]=n[r]);function i(){this.constructor=c}return i.prototype=n.prototype,c.prototype=new i,c.__super__=n.prototype,c},l={}.hasOwnProperty;o=e("./XMLNode"),t=e("./NodeType"),v.exports=function(c){u(n,c);function n(r,i,a){if(n.__super__.constructor.call(this,r),i==null)throw new Error("Missing DTD element name. "+this.debugInfo());a||(a="(#PCDATA)"),Array.isArray(a)&&(a="("+a.join(",")+")"),this.name=this.stringify.name(i),this.type=t.ElementDeclaration,this.value=this.stringify.dtdElementValue(a)}return n.prototype.toString=function(r){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(r))},n}(o)}).call(this)},{"./NodeType":353,"./XMLNode":375}],366:[function(e,v,g){(function(){var t,o,u,l=function(n,r){for(var i in r)c.call(r,i)&&(n[i]=r[i]);function a(){this.constructor=n}return a.prototype=r.prototype,n.prototype=new a,n.__super__=r.prototype,n},c={}.hasOwnProperty;u=e("./Utility").isObject,o=e("./XMLNode"),t=e("./NodeType"),v.exports=function(n){l(r,n);function r(i,a,s,d){if(r.__super__.constructor.call(this,i),s==null)throw new Error("Missing DTD entity name. "+this.debugInfo(s));if(d==null)throw new Error("Missing DTD entity value. "+this.debugInfo(s));if(this.pe=!!a,this.name=this.stringify.name(s),this.type=t.EntityDeclaration,!u(d))this.value=this.stringify.dtdEntityValue(d),this.internal=!0;else{if(!d.pubID&&!d.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(s));if(d.pubID&&!d.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(s));if(this.internal=!1,d.pubID!=null&&(this.pubID=this.stringify.dtdPubID(d.pubID)),d.sysID!=null&&(this.sysID=this.stringify.dtdSysID(d.sysID)),d.nData!=null&&(this.nData=this.stringify.dtdNData(d.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(s))}}return Object.defineProperty(r.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(r.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(r.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(r.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(r.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(r.prototype,"xmlVersion",{get:function(){return null}}),r.prototype.toString=function(i){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(i))},r}(o)}).call(this)},{"./NodeType":353,"./Utility":354,"./XMLNode":375}],367:[function(e,v,g){(function(){var t,o,u=function(c,n){for(var r in n)l.call(n,r)&&(c[r]=n[r]);function i(){this.constructor=c}return i.prototype=n.prototype,c.prototype=new i,c.__super__=n.prototype,c},l={}.hasOwnProperty;o=e("./XMLNode"),t=e("./NodeType"),v.exports=function(c){u(n,c);function n(r,i,a){if(n.__super__.constructor.call(this,r),i==null)throw new Error("Missing DTD notation name. "+this.debugInfo(i));if(!a.pubID&&!a.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(i));this.name=this.stringify.name(i),this.type=t.NotationDeclaration,a.pubID!=null&&(this.pubID=this.stringify.dtdPubID(a.pubID)),a.sysID!=null&&(this.sysID=this.stringify.dtdSysID(a.sysID))}return Object.defineProperty(n.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(n.prototype,"systemId",{get:function(){return this.sysID}}),n.prototype.toString=function(r){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(r))},n}(o)}).call(this)},{"./NodeType":353,"./XMLNode":375}],368:[function(e,v,g){(function(){var t,o,u,l=function(n,r){for(var i in r)c.call(r,i)&&(n[i]=r[i]);function a(){this.constructor=n}return a.prototype=r.prototype,n.prototype=new a,n.__super__=r.prototype,n},c={}.hasOwnProperty;u=e("./Utility").isObject,o=e("./XMLNode"),t=e("./NodeType"),v.exports=function(n){l(r,n);function r(i,a,s,d){var p;r.__super__.constructor.call(this,i),u(a)&&(p=a,a=p.version,s=p.encoding,d=p.standalone),a||(a="1.0"),this.type=t.Declaration,this.version=this.stringify.xmlVersion(a),s!=null&&(this.encoding=this.stringify.xmlEncoding(s)),d!=null&&(this.standalone=this.stringify.xmlStandalone(d))}return r.prototype.toString=function(i){return this.options.writer.declaration(this,this.options.writer.filterOptions(i))},r}(o)}).call(this)},{"./NodeType":353,"./Utility":354,"./XMLNode":375}],369:[function(e,v,g){(function(){var t,o,u,l,c,n,r,i,a=function(d,p){for(var h in p)s.call(p,h)&&(d[h]=p[h]);function f(){this.constructor=d}return f.prototype=p.prototype,d.prototype=new f,d.__super__=p.prototype,d},s={}.hasOwnProperty;i=e("./Utility").isObject,r=e("./XMLNode"),t=e("./NodeType"),o=e("./XMLDTDAttList"),l=e("./XMLDTDEntity"),u=e("./XMLDTDElement"),c=e("./XMLDTDNotation"),n=e("./XMLNamedNodeMap"),v.exports=function(d){a(p,d);function p(h,f,m){var w,k,S,x,y,E;if(p.__super__.constructor.call(this,h),this.type=t.DocType,h.children){for(x=h.children,k=0,S=x.length;k=0;)this.up();return this.onEnd()},O.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},O.prototype.openNode=function(b){var A,W,K,te;if(!b.isOpen){if(!this.root&&this.currentLevel===0&&b.type===t.Element&&(this.root=b),W="",b.type===t.Element){this.writerOptions.state=o.OpenTag,W=this.writer.indent(b,this.writerOptions,this.currentLevel)+"<"+b.name,te=b.attribs;for(K in te)!D.call(te,K)||(A=te[K],W+=this.writer.attribute(A,this.writerOptions,this.currentLevel));W+=(b.children?">":"/>")+this.writer.endline(b,this.writerOptions,this.currentLevel),this.writerOptions.state=o.InsideTag}else this.writerOptions.state=o.OpenTag,W=this.writer.indent(b,this.writerOptions,this.currentLevel)+""),W+=this.writer.endline(b,this.writerOptions,this.currentLevel);return this.onData(W,this.currentLevel),b.isOpen=!0}},O.prototype.closeNode=function(b){var A;if(!b.isClosed)return A="",this.writerOptions.state=o.CloseTag,b.type===t.Element?A=this.writer.indent(b,this.writerOptions,this.currentLevel)+""+this.writer.endline(b,this.writerOptions,this.currentLevel):A=this.writer.indent(b,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(b,this.writerOptions,this.currentLevel),this.writerOptions.state=o.None,this.onData(A,this.currentLevel),b.isClosed=!0},O.prototype.onData=function(b,A){return this.documentStarted=!0,this.onDataCallback(b,A+1)},O.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},O.prototype.debugInfo=function(b){return b==null?"":"node: <"+b+">"},O.prototype.ele=function(){return this.element.apply(this,arguments)},O.prototype.nod=function(b,A,W){return this.node(b,A,W)},O.prototype.txt=function(b){return this.text(b)},O.prototype.dat=function(b){return this.cdata(b)},O.prototype.com=function(b){return this.comment(b)},O.prototype.ins=function(b,A){return this.instruction(b,A)},O.prototype.dec=function(b,A,W){return this.declaration(b,A,W)},O.prototype.dtd=function(b,A,W){return this.doctype(b,A,W)},O.prototype.e=function(b,A,W){return this.element(b,A,W)},O.prototype.n=function(b,A,W){return this.node(b,A,W)},O.prototype.t=function(b){return this.text(b)},O.prototype.d=function(b){return this.cdata(b)},O.prototype.c=function(b){return this.comment(b)},O.prototype.r=function(b){return this.raw(b)},O.prototype.i=function(b,A){return this.instruction(b,A)},O.prototype.att=function(){return this.currentNode&&this.currentNode.type===t.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},O.prototype.a=function(){return this.currentNode&&this.currentNode.type===t.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},O.prototype.ent=function(b,A){return this.entity(b,A)},O.prototype.pent=function(b,A){return this.pEntity(b,A)},O.prototype.not=function(b,A){return this.notation(b,A)},O}()}).call(this)},{"./NodeType":353,"./Utility":354,"./WriterState":355,"./XMLAttribute":356,"./XMLCData":357,"./XMLComment":359,"./XMLDTDAttList":364,"./XMLDTDElement":365,"./XMLDTDEntity":366,"./XMLDTDNotation":367,"./XMLDeclaration":368,"./XMLDocType":369,"./XMLDocument":370,"./XMLElement":373,"./XMLProcessingInstruction":377,"./XMLRaw":378,"./XMLStringWriter":380,"./XMLStringifier":381,"./XMLText":382}],372:[function(e,v,g){(function(){var t,o,u=function(c,n){for(var r in n)l.call(n,r)&&(c[r]=n[r]);function i(){this.constructor=c}return i.prototype=n.prototype,c.prototype=new i,c.__super__=n.prototype,c},l={}.hasOwnProperty;o=e("./XMLNode"),t=e("./NodeType"),v.exports=function(c){u(n,c);function n(r){n.__super__.constructor.call(this,r),this.type=t.Dummy}return n.prototype.clone=function(){return Object.create(this)},n.prototype.toString=function(r){return""},n}(o)}).call(this)},{"./NodeType":353,"./XMLNode":375}],373:[function(e,v,g){(function(){var t,o,u,l,c,n,r,i,a=function(d,p){for(var h in p)s.call(p,h)&&(d[h]=p[h]);function f(){this.constructor=d}return f.prototype=p.prototype,d.prototype=new f,d.__super__=p.prototype,d},s={}.hasOwnProperty;i=e("./Utility"),r=i.isObject,n=i.isFunction,c=i.getValue,l=e("./XMLNode"),t=e("./NodeType"),o=e("./XMLAttribute"),u=e("./XMLNamedNodeMap"),v.exports=function(d){a(p,d);function p(h,f,m){var w,k,S,x;if(p.__super__.constructor.call(this,h),f==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(f),this.type=t.Element,this.attribs={},this.schemaTypeInfo=null,m!=null&&this.attribute(m),h.type===t.Document&&(this.isRoot=!0,this.documentObject=h,h.rootObject=this,h.children)){for(x=h.children,k=0,S=x.length;k=w;f=0<=w?++m:--m)if(!this.attribs[f].isEqualNode(h.attribs[f]))return!1;return!0},p}(l)}).call(this)},{"./NodeType":353,"./Utility":354,"./XMLAttribute":356,"./XMLNamedNodeMap":374,"./XMLNode":375}],374:[function(e,v,g){(function(){v.exports=function(){function t(o){this.nodes=o}return Object.defineProperty(t.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),t.prototype.clone=function(){return this.nodes=null},t.prototype.getNamedItem=function(o){return this.nodes[o]},t.prototype.setNamedItem=function(o){var u;return u=this.nodes[o.nodeName],this.nodes[o.nodeName]=o,u||null},t.prototype.removeNamedItem=function(o){var u;return u=this.nodes[o],delete this.nodes[o],u||null},t.prototype.item=function(o){return this.nodes[Object.keys(this.nodes)[o]]||null},t.prototype.getNamedItemNS=function(o,u){throw new Error("This DOM method is not implemented.")},t.prototype.setNamedItemNS=function(o){throw new Error("This DOM method is not implemented.")},t.prototype.removeNamedItemNS=function(o,u){throw new Error("This DOM method is not implemented.")},t}()}).call(this)},{}],375:[function(e,v,g){(function(){var t,o,u,l,c,n,r,i,a,s,d,p,h,f,m,w,k,S={}.hasOwnProperty;k=e("./Utility"),w=k.isObject,m=k.isFunction,f=k.isEmpty,h=k.getValue,i=null,u=null,l=null,c=null,n=null,d=null,p=null,s=null,r=null,o=null,a=null,t=null,v.exports=function(){function x(y){this.parent=y,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,i||(i=e("./XMLElement"),u=e("./XMLCData"),l=e("./XMLComment"),c=e("./XMLDeclaration"),n=e("./XMLDocType"),d=e("./XMLRaw"),p=e("./XMLText"),s=e("./XMLProcessingInstruction"),r=e("./XMLDummy"),o=e("./NodeType"),a=e("./XMLNodeList"),e("./XMLNamedNodeMap"),t=e("./DocumentPosition"))}return Object.defineProperty(x.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(x.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(x.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(x.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(x.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new a(this.children)),this.childNodeList}}),Object.defineProperty(x.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(x.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(x.prototype,"previousSibling",{get:function(){var y;return y=this.parent.children.indexOf(this),this.parent.children[y-1]||null}}),Object.defineProperty(x.prototype,"nextSibling",{get:function(){var y;return y=this.parent.children.indexOf(this),this.parent.children[y+1]||null}}),Object.defineProperty(x.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(x.prototype,"textContent",{get:function(){var y,E,P,M,D;if(this.nodeType===o.Element||this.nodeType===o.DocumentFragment){for(D="",M=this.children,E=0,P=M.length;E":((P=this.parent)!=null?P.name:void 0)?"node: <"+y+">, parent: <"+this.parent.name+">":"node: <"+y+">"},x.prototype.ele=function(y,E,P){return this.element(y,E,P)},x.prototype.nod=function(y,E,P){return this.node(y,E,P)},x.prototype.txt=function(y){return this.text(y)},x.prototype.dat=function(y){return this.cdata(y)},x.prototype.com=function(y){return this.comment(y)},x.prototype.ins=function(y,E){return this.instruction(y,E)},x.prototype.doc=function(){return this.document()},x.prototype.dec=function(y,E,P){return this.declaration(y,E,P)},x.prototype.e=function(y,E,P){return this.element(y,E,P)},x.prototype.n=function(y,E,P){return this.node(y,E,P)},x.prototype.t=function(y){return this.text(y)},x.prototype.d=function(y){return this.cdata(y)},x.prototype.c=function(y){return this.comment(y)},x.prototype.r=function(y){return this.raw(y)},x.prototype.i=function(y,E){return this.instruction(y,E)},x.prototype.u=function(){return this.up()},x.prototype.importXMLBuilder=function(y){return this.importDocument(y)},x.prototype.replaceChild=function(y,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},x.prototype.removeChild=function(y){throw new Error("This DOM method is not implemented."+this.debugInfo())},x.prototype.appendChild=function(y){throw new Error("This DOM method is not implemented."+this.debugInfo())},x.prototype.hasChildNodes=function(){return this.children.length!==0},x.prototype.cloneNode=function(y){throw new Error("This DOM method is not implemented."+this.debugInfo())},x.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},x.prototype.isSupported=function(y,E){return!0},x.prototype.hasAttributes=function(){return this.attribs.length!==0},x.prototype.compareDocumentPosition=function(y){var E,P;return E=this,E===y?0:this.document()!==y.document()?(P=t.Disconnected|t.ImplementationSpecific,Math.random()<.5?P|=t.Preceding:P|=t.Following,P):E.isAncestor(y)?t.Contains|t.Preceding:E.isDescendant(y)?t.Contains|t.Following:E.isPreceding(y)?t.Preceding:t.Following},x.prototype.isSameNode=function(y){throw new Error("This DOM method is not implemented."+this.debugInfo())},x.prototype.lookupPrefix=function(y){throw new Error("This DOM method is not implemented."+this.debugInfo())},x.prototype.isDefaultNamespace=function(y){throw new Error("This DOM method is not implemented."+this.debugInfo())},x.prototype.lookupNamespaceURI=function(y){throw new Error("This DOM method is not implemented."+this.debugInfo())},x.prototype.isEqualNode=function(y){var E,P,M;if(y.nodeType!==this.nodeType||y.children.length!==this.children.length)return!1;for(E=P=0,M=this.children.length-1;0<=M?P<=M:P>=M;E=0<=M?++P:--P)if(!this.children[E].isEqualNode(y.children[E]))return!1;return!0},x.prototype.getFeature=function(y,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},x.prototype.setUserData=function(y,E,P){throw new Error("This DOM method is not implemented."+this.debugInfo())},x.prototype.getUserData=function(y){throw new Error("This DOM method is not implemented."+this.debugInfo())},x.prototype.contains=function(y){return y?y===this||this.isDescendant(y):!1},x.prototype.isDescendant=function(y){var E,P,M,D,O;for(O=this.children,M=0,D=O.length;MP},x.prototype.treePosition=function(y){var E,P;return P=0,E=!1,this.foreachTreeNode(this.document(),function(M){if(P++,!E&&M===y)return E=!0}),E?P:-1},x.prototype.foreachTreeNode=function(y,E){var P,M,D,O,b;for(y||(y=this.document()),O=y.children,M=0,D=O.length;M0){for(this.stream.write(" ["),this.stream.write(this.endline(i,a,s)),a.state=o.InsideTag,f=i.children,p=0,h=f.length;p"),this.stream.write(this.endline(i,a,s)),a.state=o.None,this.closeNode(i,a,s)},r.prototype.element=function(i,a,s){var d,p,h,f,m,w,k,S,x;s||(s=0),this.openNode(i,a,s),a.state=o.OpenTag,this.stream.write(this.indent(i,a,s)+"<"+i.name),S=i.attribs;for(k in S)!c.call(S,k)||(d=S[k],this.attribute(d,a,s));if(h=i.children.length,f=h===0?null:i.children[0],h===0||i.children.every(function(y){return(y.type===t.Text||y.type===t.Raw)&&y.value===""}))a.allowEmpty?(this.stream.write(">"),a.state=o.CloseTag,this.stream.write("")):(a.state=o.CloseTag,this.stream.write(a.spaceBeforeSlash+"/>"));else if(a.pretty&&h===1&&(f.type===t.Text||f.type===t.Raw)&&f.value!=null)this.stream.write(">"),a.state=o.InsideTag,a.suppressPrettyCount++,this.writeChildNode(f,a,s+1),a.suppressPrettyCount--,a.state=o.CloseTag,this.stream.write("");else{for(this.stream.write(">"+this.endline(i,a,s)),a.state=o.InsideTag,x=i.children,m=0,w=x.length;m")}return this.stream.write(this.endline(i,a,s)),a.state=o.None,this.closeNode(i,a,s)},r.prototype.processingInstruction=function(i,a,s){return this.stream.write(r.__super__.processingInstruction.call(this,i,a,s))},r.prototype.raw=function(i,a,s){return this.stream.write(r.__super__.raw.call(this,i,a,s))},r.prototype.text=function(i,a,s){return this.stream.write(r.__super__.text.call(this,i,a,s))},r.prototype.dtdAttList=function(i,a,s){return this.stream.write(r.__super__.dtdAttList.call(this,i,a,s))},r.prototype.dtdElement=function(i,a,s){return this.stream.write(r.__super__.dtdElement.call(this,i,a,s))},r.prototype.dtdEntity=function(i,a,s){return this.stream.write(r.__super__.dtdEntity.call(this,i,a,s))},r.prototype.dtdNotation=function(i,a,s){return this.stream.write(r.__super__.dtdNotation.call(this,i,a,s))},r}(u)}).call(this)},{"./NodeType":353,"./WriterState":355,"./XMLWriterBase":383}],380:[function(e,v,g){(function(){var t,o=function(l,c){for(var n in c)u.call(c,n)&&(l[n]=c[n]);function r(){this.constructor=l}return r.prototype=c.prototype,l.prototype=new r,l.__super__=c.prototype,l},u={}.hasOwnProperty;t=e("./XMLWriterBase"),v.exports=function(l){o(c,l);function c(n){c.__super__.constructor.call(this,n)}return c.prototype.document=function(n,r){var i,a,s,d,p;for(r=this.filterOptions(r),d="",p=n.children,a=0,s=p.length;a","]]]]>"),this.assertLegalChar(l))},u.prototype.comment=function(l){if(this.options.noValidation)return l;if(l=""+l||"",l.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+l);return this.assertLegalChar(l)},u.prototype.raw=function(l){return this.options.noValidation?l:""+l||""},u.prototype.attValue=function(l){return this.options.noValidation?l:this.assertLegalChar(this.attEscape(l=""+l||""))},u.prototype.insTarget=function(l){return this.options.noValidation?l:this.assertLegalChar(""+l||"")},u.prototype.insValue=function(l){if(this.options.noValidation)return l;if(l=""+l||"",l.match(/\?>/))throw new Error("Invalid processing instruction value: "+l);return this.assertLegalChar(l)},u.prototype.xmlVersion=function(l){if(this.options.noValidation)return l;if(l=""+l||"",!l.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+l);return l},u.prototype.xmlEncoding=function(l){if(this.options.noValidation)return l;if(l=""+l||"",!l.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+l);return this.assertLegalChar(l)},u.prototype.xmlStandalone=function(l){return this.options.noValidation?l:l?"yes":"no"},u.prototype.dtdPubID=function(l){return this.options.noValidation?l:this.assertLegalChar(""+l||"")},u.prototype.dtdSysID=function(l){return this.options.noValidation?l:this.assertLegalChar(""+l||"")},u.prototype.dtdElementValue=function(l){return this.options.noValidation?l:this.assertLegalChar(""+l||"")},u.prototype.dtdAttType=function(l){return this.options.noValidation?l:this.assertLegalChar(""+l||"")},u.prototype.dtdAttDefault=function(l){return this.options.noValidation?l:this.assertLegalChar(""+l||"")},u.prototype.dtdEntityValue=function(l){return this.options.noValidation?l:this.assertLegalChar(""+l||"")},u.prototype.dtdNData=function(l){return this.options.noValidation?l:this.assertLegalChar(""+l||"")},u.prototype.convertAttKey="@",u.prototype.convertPIKey="?",u.prototype.convertTextKey="#text",u.prototype.convertCDataKey="#cdata",u.prototype.convertCommentKey="#comment",u.prototype.convertRawKey="#raw",u.prototype.assertLegalChar=function(l){var c,n;if(this.options.noValidation)return l;if(c="",this.options.version==="1.0"){if(c=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,n=l.match(c))throw new Error("Invalid character in string: "+l+" at index "+n.index)}else if(this.options.version==="1.1"&&(c=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,n=l.match(c)))throw new Error("Invalid character in string: "+l+" at index "+n.index);return l},u.prototype.assertLegalName=function(l){var c;if(this.options.noValidation)return l;if(this.assertLegalChar(l),c=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!l.match(c))throw new Error("Invalid character in name");return l},u.prototype.textEscape=function(l){var c;return this.options.noValidation?l:(c=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,l.replace(c,"&").replace(//g,">").replace(/\r/g," "))},u.prototype.attEscape=function(l){var c;return this.options.noValidation?l:(c=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,l.replace(c,"&").replace(/0)?new Array(a).join(r.indent):""},c.prototype.endline=function(n,r,i){return!r.pretty||r.suppressPrettyCount?"":r.newline},c.prototype.attribute=function(n,r,i){var a;return this.openAttribute(n,r,i),a=" "+n.name+'="'+n.value+'"',this.closeAttribute(n,r,i),a},c.prototype.cdata=function(n,r,i){var a;return this.openNode(n,r,i),r.state=o.OpenTag,a=this.indent(n,r,i)+""+this.endline(n,r,i),r.state=o.None,this.closeNode(n,r,i),a},c.prototype.comment=function(n,r,i){var a;return this.openNode(n,r,i),r.state=o.OpenTag,a=this.indent(n,r,i)+""+this.endline(n,r,i),r.state=o.None,this.closeNode(n,r,i),a},c.prototype.declaration=function(n,r,i){var a;return this.openNode(n,r,i),r.state=o.OpenTag,a=this.indent(n,r,i)+"",a+=this.endline(n,r,i),r.state=o.None,this.closeNode(n,r,i),a},c.prototype.docType=function(n,r,i){var a,s,d,p,h;if(i||(i=0),this.openNode(n,r,i),r.state=o.OpenTag,p=this.indent(n,r,i),p+="0){for(p+=" [",p+=this.endline(n,r,i),r.state=o.InsideTag,h=n.children,s=0,d=h.length;s",p+=this.endline(n,r,i),r.state=o.None,this.closeNode(n,r,i),p},c.prototype.element=function(n,r,i){var a,s,d,p,h,f,m,w,k,S,x,y,E,P;i||(i=0),S=!1,x="",this.openNode(n,r,i),r.state=o.OpenTag,x+=this.indent(n,r,i)+"<"+n.name,y=n.attribs;for(k in y)!l.call(y,k)||(a=y[k],x+=this.attribute(a,r,i));if(d=n.children.length,p=d===0?null:n.children[0],d===0||n.children.every(function(M){return(M.type===t.Text||M.type===t.Raw)&&M.value===""}))r.allowEmpty?(x+=">",r.state=o.CloseTag,x+=""+this.endline(n,r,i)):(r.state=o.CloseTag,x+=r.spaceBeforeSlash+"/>"+this.endline(n,r,i));else if(r.pretty&&d===1&&(p.type===t.Text||p.type===t.Raw)&&p.value!=null)x+=">",r.state=o.InsideTag,r.suppressPrettyCount++,S=!0,x+=this.writeChildNode(p,r,i+1),r.suppressPrettyCount--,S=!1,r.state=o.CloseTag,x+=""+this.endline(n,r,i);else{if(r.dontPrettyTextNodes){for(E=n.children,h=0,m=E.length;h"+this.endline(n,r,i),r.state=o.InsideTag,P=n.children,f=0,w=P.length;f",S&&r.suppressPrettyCount--,x+=this.endline(n,r,i),r.state=o.None}return this.closeNode(n,r,i),x},c.prototype.writeChildNode=function(n,r,i){switch(n.type){case t.CData:return this.cdata(n,r,i);case t.Comment:return this.comment(n,r,i);case t.Element:return this.element(n,r,i);case t.Raw:return this.raw(n,r,i);case t.Text:return this.text(n,r,i);case t.ProcessingInstruction:return this.processingInstruction(n,r,i);case t.Dummy:return"";case t.Declaration:return this.declaration(n,r,i);case t.DocType:return this.docType(n,r,i);case t.AttributeDeclaration:return this.dtdAttList(n,r,i);case t.ElementDeclaration:return this.dtdElement(n,r,i);case t.EntityDeclaration:return this.dtdEntity(n,r,i);case t.NotationDeclaration:return this.dtdNotation(n,r,i);default:throw new Error("Unknown XML node type: "+n.constructor.name)}},c.prototype.processingInstruction=function(n,r,i){var a;return this.openNode(n,r,i),r.state=o.OpenTag,a=this.indent(n,r,i)+"",a+=this.endline(n,r,i),r.state=o.None,this.closeNode(n,r,i),a},c.prototype.raw=function(n,r,i){var a;return this.openNode(n,r,i),r.state=o.OpenTag,a=this.indent(n,r,i),r.state=o.InsideTag,a+=n.value,r.state=o.CloseTag,a+=this.endline(n,r,i),r.state=o.None,this.closeNode(n,r,i),a},c.prototype.text=function(n,r,i){var a;return this.openNode(n,r,i),r.state=o.OpenTag,a=this.indent(n,r,i),r.state=o.InsideTag,a+=n.value,r.state=o.CloseTag,a+=this.endline(n,r,i),r.state=o.None,this.closeNode(n,r,i),a},c.prototype.dtdAttList=function(n,r,i){var a;return this.openNode(n,r,i),r.state=o.OpenTag,a=this.indent(n,r,i)+""+this.endline(n,r,i),r.state=o.None,this.closeNode(n,r,i),a},c.prototype.dtdElement=function(n,r,i){var a;return this.openNode(n,r,i),r.state=o.OpenTag,a=this.indent(n,r,i)+""+this.endline(n,r,i),r.state=o.None,this.closeNode(n,r,i),a},c.prototype.dtdEntity=function(n,r,i){var a;return this.openNode(n,r,i),r.state=o.OpenTag,a=this.indent(n,r,i)+""+this.endline(n,r,i),r.state=o.None,this.closeNode(n,r,i),a},c.prototype.dtdNotation=function(n,r,i){var a;return this.openNode(n,r,i),r.state=o.OpenTag,a=this.indent(n,r,i)+""+this.endline(n,r,i),r.state=o.None,this.closeNode(n,r,i),a},c.prototype.openNode=function(n,r,i){},c.prototype.closeNode=function(n,r,i){},c.prototype.openAttribute=function(n,r,i){},c.prototype.closeAttribute=function(n,r,i){},c}()}).call(this)},{"./NodeType":353,"./Utility":354,"./WriterState":355,"./XMLCData":357,"./XMLComment":359,"./XMLDTDAttList":364,"./XMLDTDElement":365,"./XMLDTDEntity":366,"./XMLDTDNotation":367,"./XMLDeclaration":368,"./XMLDocType":369,"./XMLDummy":372,"./XMLElement":373,"./XMLProcessingInstruction":377,"./XMLRaw":378,"./XMLText":382}],384:[function(e,v,g){(function(){var t,o,u,l,c,n,r,i,a,s;s=e("./Utility"),i=s.assign,a=s.isFunction,u=e("./XMLDOMImplementation"),l=e("./XMLDocument"),c=e("./XMLDocumentCB"),r=e("./XMLStringWriter"),n=e("./XMLStreamWriter"),t=e("./NodeType"),o=e("./WriterState"),v.exports.create=function(d,p,h,f){var m,w;if(d==null)throw new Error("Root element needs a name.");return f=i({},p,h,f),m=new l(f),w=m.element(d),f.headless||(m.declaration(f),(f.pubID!=null||f.sysID!=null)&&m.dtd(f)),w},v.exports.begin=function(d,p,h){var f;return a(d)&&(f=[d,p],p=f[0],h=f[1],d={}),p?new c(d,p,h):new l(d)},v.exports.stringWriter=function(d){return new r(d)},v.exports.streamWriter=function(d,p){return new n(d,p)},v.exports.implementation=new u,v.exports.nodeType=t,v.exports.writerState=o}).call(this)},{"./NodeType":353,"./Utility":354,"./WriterState":355,"./XMLDOMImplementation":362,"./XMLDocument":370,"./XMLDocumentCB":371,"./XMLStreamWriter":379,"./XMLStringWriter":380}],385:[function(e,v,g){v.exports=o;var t=Object.prototype.hasOwnProperty;function o(){for(var u={},l=0;lc?d=s(d):d.length>5]|=128<>>9<<4)+14]=d;for(var p=1732584193,h=-271733879,f=-1732584194,m=271733878,w=0;w>16)+(d>>16)+(p>>16);return h<<16|p&65535}function a(s,d){return s<>>32-d}v.exports=function(d){return t.hash(d,o,16)}},{"./helpers":387}],389:[function(e,v,g){var t=e("./helpers");function o(r,i){r[i>>5]|=128<<24-i%32,r[(i+64>>9<<4)+15]=i;for(var a=Array(80),s=1732584193,d=-271733879,p=-1732584194,h=271733878,f=-1009589776,m=0;m>16)+(i>>16)+(a>>16);return s<<16|a&65535}function n(r,i){return r<>>32-i}v.exports=function(i){return t.hash(i,o,20,!0)}},{"./helpers":387}],390:[function(e,v,g){v.exports=function(){return function(){}}},{}],391:[function(e,v,g){(function(t){var o=e("@babel/runtime/helpers/interopRequireDefault"),u=o(e("@babel/runtime/helpers/typeof")),l=e("stream"),c=l.Stream,n=e("../lib/common/utils/isArray"),r=n.isArray;v.exports.string=function(s){return typeof s=="string"},v.exports.array=r,v.exports.buffer=t.isBuffer;function i(a){return a instanceof c}v.exports.writableStream=function(s){return i(s)&&typeof s._write=="function"&&(0,u.default)(s._writableState)==="object"}}).call(this,{isBuffer:e("../node_modules/is-buffer/index.js")})},{"../lib/common/utils/isArray":59,"../node_modules/is-buffer/index.js":307,"@babel/runtime/helpers/interopRequireDefault":72,"@babel/runtime/helpers/typeof":73,stream:339}],392:[function(e,v,g){var t=e("immediate"),o=v.exports={};o.nextTick=t,o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={};function u(){}o.on=u,o.addListener=u,o.once=u,o.off=u,o.removeListener=u,o.removeAllListeners=u,o.emit=u,o.prependListener=u,o.prependOnceListener=u,o.listeners=function(l){return[]},o.binding=function(l){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(l){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},{immediate:300}],393:[function(e,v,g){var t=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.array.concat"),e("core-js/modules/es.array.index-of"),e("core-js/modules/es.array.join"),e("core-js/modules/es.array.last-index-of"),e("core-js/modules/es.array.slice"),e("core-js/modules/es.array.splice"),e("core-js/modules/es.object.keys"),e("core-js/modules/es.regexp.exec"),e("core-js/modules/es.string.match"),e("core-js/modules/es.string.replace"),e("core-js/modules/es.string.search"),e("core-js/modules/es.string.split"),e("core-js/modules/es.string.trim");var o=t(e("@babel/runtime/helpers/typeof")),u=e("punycode"),l=e("./util");g.parse=E,g.resolve=M,g.resolveObject=D,g.format=P,g.Url=c;function c(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var n=/^([a-z0-9.+-]+:)/i,r=/:[0-9]*$/,i=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,a=["<",">",'"',"`"," ","\r",` +`," "],s=["{","}","|","\\","^","`"].concat(a),d=["'"].concat(s),p=["%","/","?",";","#"].concat(d),h=["/","?","#"],f=255,m=/^[+a-z0-9A-Z_-]{0,63}$/,w=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,k={javascript:!0,"javascript:":!0},S={javascript:!0,"javascript:":!0},x={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=e("querystring");function E(O,b,A){if(O&&l.isObject(O)&&O instanceof c)return O;var W=new c;return W.parse(O,b,A),W}c.prototype.parse=function(O,b,A){if(!l.isString(O))throw new TypeError("Parameter 'url' must be a string, not "+(0,o.default)(O));var W=O.indexOf("?"),K=W!==-1&&W127?C+="x":C+=I[R];if(!C.match(m)){var z=ie.slice(0,B),N=ie.slice(B+1),T=I.match(w);T&&(z.push(T[1]),N.unshift(T[2])),N.length&&(q="/"+N.join(".")+q),this.hostname=z.join(".");break}}}this.hostname.length>f?this.hostname="":this.hostname=this.hostname.toLowerCase(),$||(this.hostname=u.toASCII(this.hostname));var _=this.port?":"+this.port:"",j=this.hostname||"";this.host=j+_,this.href+=this.host,$&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),q[0]!=="/"&&(q="/"+q))}if(!k[G])for(var B=0,F=d.length;B0?A.host.split("@"):!1;C&&(A.auth=C.shift(),A.host=A.hostname=C.shift())}return A.search=O.search,A.query=O.query,(!l.isNull(A.pathname)||!l.isNull(A.search))&&(A.path=(A.pathname?A.pathname:"")+(A.search?A.search:"")),A.href=A.format(),A}if(!ie.length)return A.pathname=null,A.search?A.path="/"+A.search:A.path=null,A.href=A.format(),A;for(var R=ie.slice(-1)[0],Z=(A.host||O.host||ie.length>1)&&(R==="."||R==="..")||R==="",z=0,N=ie.length;N>=0;N--)R=ie[N],R==="."?ie.splice(N,1):R===".."?(ie.splice(N,1),z++):z&&(ie.splice(N,1),z--);if(!ee&&!$)for(;z--;z)ie.unshift("..");ee&&ie[0]!==""&&(!ie[0]||ie[0].charAt(0)!=="/")&&ie.unshift(""),Z&&ie.join("/").substr(-1)!=="/"&&ie.push("");var T=ie[0]===""||ie[0]&&ie[0].charAt(0)==="/";if(I){A.hostname=A.host=T?"":ie.length?ie.shift():"";var C=A.host&&A.host.indexOf("@")>0?A.host.split("@"):!1;C&&(A.auth=C.shift(),A.host=A.hostname=C.shift())}return ee=ee||A.host&&ie.length,ee&&!T&&ie.unshift(""),ie.length?A.pathname=ie.join("/"):(A.pathname=null,A.path=null),(!l.isNull(A.pathname)||!l.isNull(A.search))&&(A.path=(A.pathname?A.pathname:"")+(A.search?A.search:"")),A.auth=O.auth||A.auth,A.slashes=A.slashes||O.slashes,A.href=A.format(),A},c.prototype.parseHost=function(){var O=this.host,b=r.exec(O);b&&(b=b[0],b!==":"&&(this.port=b.substr(1)),O=O.substr(0,O.length-b.length)),O&&(this.hostname=O)}},{"./util":394,"@babel/runtime/helpers/interopRequireDefault":72,"@babel/runtime/helpers/typeof":73,"core-js/modules/es.array.concat":234,"core-js/modules/es.array.index-of":241,"core-js/modules/es.array.join":243,"core-js/modules/es.array.last-index-of":244,"core-js/modules/es.array.slice":246,"core-js/modules/es.array.splice":248,"core-js/modules/es.object.keys":253,"core-js/modules/es.regexp.exec":256,"core-js/modules/es.string.match":260,"core-js/modules/es.string.replace":261,"core-js/modules/es.string.search":262,"core-js/modules/es.string.split":263,"core-js/modules/es.string.trim":264,punycode:319,querystring:322}],394:[function(e,v,g){var t=e("@babel/runtime/helpers/interopRequireDefault"),o=t(e("@babel/runtime/helpers/typeof"));v.exports={isString:function(l){return typeof l=="string"},isObject:function(l){return(0,o.default)(l)==="object"&&l!==null},isNull:function(l){return l===null},isNullOrUndefined:function(l){return l==null}}},{"@babel/runtime/helpers/interopRequireDefault":72,"@babel/runtime/helpers/typeof":73}],395:[function(e,v,g){e("core-js/modules/es.number.constructor"),g.encodeURIComponent=function(t){try{return encodeURIComponent(t)}catch{return t}},g.escape=e("escape-html"),g.timestamp=function(o){if(o){var u=o;return typeof u=="string"&&(u=Number(u)),String(o).length===10&&(u*=1e3),new Date(u)}return Math.round(Date.now()/1e3)}},{"core-js/modules/es.number.constructor":250,"escape-html":295}],396:[function(e,v,g){(function(t,o){var u=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.array.concat"),e("core-js/modules/es.array.index-of"),e("core-js/modules/es.function.name"),e("core-js/modules/es.object.to-string"),e("core-js/modules/es.promise"),e("core-js/modules/es.regexp.exec"),e("core-js/modules/es.string.split"),e("core-js/modules/es.string.trim");var l=u(e("@babel/runtime/helpers/typeof")),c=e("util"),n=e("url"),r=e("http"),i=e("https"),a=e("debug")("urllib"),s=e("humanize-ms"),d=0,p=Math.pow(2,31)-10,h=/^https?:\/\//i;function f(S,x){return S===void 0?x:S}function m(S){return S?S.split(";")[0].trim().toLowerCase():""}function w(S,x){return function(y,E,P){if(y)return x(y);S({data:E,status:P.statusCode,headers:P.headers,res:P})}}g.TIMEOUTS=[s("300s"),s("300s")];var k=["json","text"];g.request=function(x,y,E){return arguments.length===2&&typeof y=="function"&&(E=y,y=null),typeof E=="function"?g.requestWithCallback(x,y,E):new Promise(function(P,M){g.requestWithCallback(x,y,w(P,M))})},g.requestWithCallback=function(x,y,E){if(!x||typeof x!="string"&&(0,l.default)(x)!=="object"){var P=c.format("expect request url to be a string or a http request options, but got %j",x);throw new Error(P)}arguments.length===2&&typeof y=="function"&&(E=y,y=null),y=y||{},d>=p&&(d=0);var M=++d;y.requestUrls=y.requestUrls||[];var D={requestId:M,url:x,args:y,ctx:y.ctx};y.emitter&&y.emitter.emit("request",D),y.timeout=y.timeout||g.TIMEOUTS,y.maxRedirects=y.maxRedirects||10,y.streaming=y.streaming||y.customResponse;var O=Date.now(),b;typeof x=="string"?(h.test(x)||(x="https://"+x),b=n.parse(x)):b=x;var A=(y.type||y.method||b.method||"GET").toUpperCase(),W=b.port||80,K=r,te=f(y.agent,g.agent),X=y.fixJSONCtlChars;b.protocol==="https:"&&(K=i,te=f(y.httpsAgent,g.httpsAgent),b.port||(W=443));var q={host:b.hostname||b.host||"localhost",path:b.path||"/",method:A,port:W,agent:te,headers:y.headers||{},lookup:y.lookup};Array.isArray(y.timeout)?q.requestTimeout=y.timeout[y.timeout.length-1]:typeof y.timeout!="undefined"&&(q.requestTimeout=y.timeout);var re=y.auth||b.auth;re&&(q.auth=re);var V=y.content||y.data,G=A==="GET"||A==="HEAD"||y.dataAsQueryString;if(!y.content&&V&&!(typeof V=="string"||o.isBuffer(V)))if(G)V=y.nestedQuerystring?qs.stringify(V):querystring.stringify(V);else{var U=q.headers["Content-Type"]||q.headers["content-type"];U||(y.contentType==="json"?U="application/json":U="application/x-www-form-urlencoded",q.headers["Content-Type"]=U),m(U)==="application/json"?V=JSON.stringify(V):V=y.nestedQuerystring?qs.stringify(V):querystring.stringify(V)}G&&V&&(q.path+=(b.query?"&":"?")+V,V=null);var L=0;if(V){var B=V.length;o.isBuffer(V)||(B=o.byteLength(V)),L=q.headers["Content-Length"]=B}y.dataType==="json"&&(q.headers.Accept="application/json"),typeof y.beforeRequest=="function"&&y.beforeRequest(q);var Y=null,Q=null,ee=null,$=!1,ie=!1,F=0,I=-1,C=!1,R="",Z="",z=null;y.timing&&(z={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function N(){Y&&(clearTimeout(Y),Y=null)}function T(){Q&&(clearTimeout(Q),Q=null)}function _(se,ne,le){if(T(),!E){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),M,t.pid,q.method,x),se&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s +stack: %s`,Date(),M,t.pid,se.name,se.message,se.stack);return}var he=E;E=null;var me={};le&&(I=le.statusCode,me=le.headers);var ce=Date.now()-O;z&&(z.contentDownload=ce),a("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",ce,F,I,q.method,q.host,q.path,ie,z);var fe={status:I,statusCode:I,headers:me,size:F,aborted:C,rt:ce,keepAliveSocket:ie,data:ne,requestUrls:y.requestUrls,timing:z,remoteAddress:R,remotePort:Z};if(se){var pe="";te&&typeof te.getCurrentStatus=="function"&&(pe=", agent status: "+JSON.stringify(te.getCurrentStatus())),se.message+=", "+q.method+" "+x+" "+I+" (connected: "+$+", keepalive socket: "+ie+pe+`) +headers: `+JSON.stringify(me),se.data=ne,se.path=q.path,se.status=I,se.headers=me,se.res=fe}he(se,ne,y.streaming?le:fe),y.emitter&&(D.url=x,D.socket=ue&&ue.connection,D.options=q,D.size=L,y.emitter.emit("response",{requestId:M,error:se,ctx:y.ctx,req:D,res:fe}))}function j(se){var ne=null;if(y.followRedirect&&statuses.redirect[se.statusCode]){y._followRedirectCount=(y._followRedirectCount||0)+1;var le=se.headers.location;if(!le)ne=new Error("Got statusCode "+se.statusCode+" but cannot resolve next location from headers"),ne.name="FollowRedirectError";else if(y._followRedirectCount>y.maxRedirects)ne=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+x),ne.name="MaxRedirectError";else{var he=y.formatRedirectUrl?y.formatRedirectUrl(x,le):n.resolve(x,le);a("Request#%d %s: `redirected` from %s to %s",M,q.path,x,he),T(),y.headers&&y.headers.Host&&h.test(le)&&(y.headers.Host=null);var me=E;return E=null,g.requestWithCallback(he,y,me),{redirect:!0,error:null}}}return{redirect:!1,error:ne}}y.gzip&&!q.headers["Accept-Encoding"]&&!q.headers["accept-encoding"]&&(q.headers["Accept-Encoding"]="gzip");function H(se,ne,le){var he=se.headers["content-encoding"];return le(null,ne,he)}var J=y.writeStream;a("Request#%d %s %s with headers %j, options.path: %s",M,A,x,q.headers,q.path),y.requestUrls.push(x);function ae(se){if(z&&(z.waiting=Date.now()-O),a("Request#%d %s `req response` event emit: status %d, headers: %j",M,x,se.statusCode,se.headers),y.streaming){var ne=j(se);if(ne.redirect){se.resume();return}return ne.error?(se.resume(),_(ne.error,null,se)):_(null,null,se)}if(se.on("close",function(){a("Request#%d %s: `res close` event emit, total size %d",M,x,F)}),se.on("error",function(){a("Request#%d %s: `res error` event emit, total size %d",M,x,F)}),se.on("aborted",function(){C=!0,a("Request#%d %s: `res aborted` event emit, total size %d",M,x,F)}),J){var le=j(se);if(le.redirect){se.resume();return}return le.error?(se.resume(),J.end(),_(le.error,null,se)):(y.consumeWriteStream===!1?se.on("end",_.bind(null,null,null,se)):J.on("close",function(){a("Request#%d %s: writeStream close event emitted",M,x),_(ee||null,null,se)}),se.pipe(J))}var he=[];se.on("data",function(me){a("Request#%d %s: `res data` event emit, size %d",M,x,me.length),F+=me.length,he.push(me)}),se.on("end",function(){var me=o.concat(he,F);if(a("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",M,x,F,se._dumped),ee)return _(ee,me,se);var ce=j(se);if(ce.error)return _(ce.error,me,se);ce.redirect||H(se,me,function(fe,pe,be){if(fe)return _(fe,me,se);if(!be&&k.indexOf(y.dataType)>=0){try{pe=decodeBodyByCharset(pe,se)}catch(xe){return a("decodeBodyByCharset error: %s",xe),_(null,pe,se)}if(y.dataType==="json")if(F===0)pe=null;else{var we=parseJSON(pe,X);we.error?fe=we.error:pe=we.data}}C&&a("Request#%d %s: Remote socket was terminated before `response.end()` was called",M,x),_(fe,pe,se)})})}var oe,de;Array.isArray(y.timeout)?(oe=s(y.timeout[0]),de=s(y.timeout[1])):oe=de=s(y.timeout),a("ConnectTimeout: %d, ResponseTimeout: %d",oe,de);function ge(){a("Connect timer ticking, timeout: %d",oe),Y=setTimeout(function(){Y=null,I===-1&&(I=-2);var se="Connect timeout for "+oe+"ms",ne="ConnectionTimeoutError";ue.socket||(ne="SocketAssignTimeoutError",se+=", working sockets is full"),ee=new Error(se),ee.name=ne,ee.requestId=M,a("ConnectTimeout: Request#%d %s %s: %s, connected: %s",M,x,ee.name,se,$),ye()},oe)}function ve(){a("Response timer ticking, timeout: %d",de),Q=setTimeout(function(){Q=null;var se="Response timeout for "+de+"ms",ne="ResponseTimeoutError";ee=new Error(se),ee.name=ne,ee.requestId=M,a("ResponseTimeout: Request#%d %s %s: %s, connected: %s",M,x,ee.name,se,$),ye()},de)}var ue;q.mode=y.mode?y.mode:"";try{ue=K.request(q,ae)}catch(se){return _(se)}typeof window=="undefined"?ge():ue.on("requestTimeout",function(){I===-1&&(I=-2);var se="Connect timeout for "+oe+"ms",ne="ConnectionTimeoutError";ee=new Error(se),ee.name=ne,ee.requestId=M,ye()});function ye(){a("Request#%d %s abort, connected: %s",M,x,$),ue.socket||(ee.noSocket=!0,_(ee)),ue.abort()}return z&&ue.on("finish",function(){z.requestSent=Date.now()-O}),ue.once("socket",function(se){z&&(z.queuing=Date.now()-O);var ne=se.readyState;if(ne==="opening"){se.once("lookup",function(le,he,me){a("Request#%d %s lookup: %s, %s, %s",M,x,le,he,me),z&&(z.dnslookup=Date.now()-O),he&&(R=he)}),se.once("connect",function(){z&&(z.connected=Date.now()-O),N(),ve(),a("Request#%d %s new socket connected",M,x),$=!0,R||(R=se.remoteAddress),Z=se.remotePort});return}a("Request#%d %s reuse socket connected, readyState: %s",M,x,ne),$=!0,ie=!0,R||(R=se.remoteAddress),Z=se.remotePort,N(),ve()}),ue.on("error",function(se){(se.name==="Error"||se.name==="TypeError")&&(se.name=$?"ResponseError":"RequestError"),se.message+=' (req "error")',a("Request#%d %s `req error` event emit, %s: %s",M,x,se.name,se.message),_(ee||se)}),J&&J.once("error",function(se){se.message+=' (writeStream "error")',ee=se,a("Request#%d %s `writeStream error` event emit, %s: %s",M,x,se.name,se.message),ye()}),y.stream?(y.stream.pipe(ue),y.stream.once("error",function(se){se.message+=' (stream "error")',ee=se,a("Request#%d %s `readStream error` event emit, %s: %s",M,x,se.name,se.message),ye()})):ue.end(V),ue.requestId=M,ue}}).call(this,e("_process"),e("buffer").Buffer)},{"@babel/runtime/helpers/interopRequireDefault":72,"@babel/runtime/helpers/typeof":73,_process:392,buffer:99,"core-js/modules/es.array.concat":234,"core-js/modules/es.array.index-of":241,"core-js/modules/es.function.name":249,"core-js/modules/es.object.to-string":254,"core-js/modules/es.promise":255,"core-js/modules/es.regexp.exec":256,"core-js/modules/es.string.split":263,"core-js/modules/es.string.trim":264,debug:390,http:80,https:297,"humanize-ms":298,url:393,util:345}]},{},[1])(1)})})(aliyunOssSdk);var OSS=getDefaultExportFromCjs(aliyunOssSdk.exports);const _hoisted_1={style:{"margin-bottom":"12px"}},_hoisted_2=createTextVNode("\u70B9\u51FB\u6216\u8005\u62D6\u52A8\u6587\u4EF6\u5230\u8BE5\u533A\u57DF\u6765\u4E0A\u4F20"),_hoisted_3=createTextVNode(" \u652F\u6301\u94FE\u63A5\u4E0A\u62FC\u4E0Aid\u4F20\u5230\u6307\u5B9A\u6587\u4EF6\u5939\u54E6~(/t/12154sds) "),_hoisted_4=createTextVNode(" \u8BF7\u4E0D\u8981\u4E0A\u4F20\u654F\u611F\u6570\u636E\uFF0C\u6BD4\u5982\u4F60\u7684\u94F6\u884C\u5361\u53F7\u548C\u5BC6\u7801\uFF0C\u4FE1\u7528\u5361\u53F7\u6709\u6548\u671F\u548C\u5B89\u5168\u7801 "),_hoisted_5=createTextVNode(" \u8BB0\u5F97\u89E3\u51B3\u6D4F\u89C8\u5668\u8DE8\u57DF\u95EE\u9898\u54E6 "),_sfc_main=defineComponent({setup(e){const v=ref(),g=useRoute(),t=ref(),o=ref(5),u=ref(0),l=ref({}),c=async({fileList:i})=>{t.value=i;const a=i.length>o.value?o.value:i.length;for(let s=u.value;s{var s,d,p,h,f,m,w;if(u.value>=o.value)return!1;let i;if(t.value){for(let k in t.value)if(t.value[k].status==="pending"){i=t.value[k];break}}if(!i){if(o.value=1,console.log(o.value,u.value),u.value>=o.value)return!1;if(t.value){for(let k in t.value)if(t.value[k].status==="error"&&(l.value[t.value[k].id].retry||0)<3){l.value[t.value[k].id].retry=(l.value[t.value[k].id].retry||0)+1,console.log(l.value[t.value[k].id]),i=t.value[k],console.log(i.status);break}}}if(!i)return!1;i.status="uploading",u.value++,l.value[i.id]||(l.value[i.id]={gcid:0});let a=l.value[i.id].hash;if(a||(a=await wrap(new WorkerWrapper)(i.file,proxy({progress:S=>{i&&(i.name.indexOf("-\u6B63\u5728\u6548\u9A8C\u6587\u4EF6")===-1&&(i.name=i.name+"-\u6B63\u5728\u6548\u9A8C\u6587\u4EF6"),i.percentage=S*100)}}))),i.name=i.name.replace("-\u6B63\u5728\u6548\u9A8C\u6587\u4EF6","").replace("-\u6B63\u5728\u4E0A\u4F20\u6587\u4EF6",""),l.value[i.id].gcid=100,console.log(i),i.status!=="uploading")return n(),!1;try{const k="pikpakUpload-"+a;let S=window.localStorage.getItem(k);if(S=S&&JSON.parse(S),(!((p=(d=(s=S==null?void 0:S.data)==null?void 0:s.resumable)==null?void 0:d.params)==null?void 0:p.expiration)||new Date((m=(f=(h=S==null?void 0:S.data)==null?void 0:h.resumable)==null?void 0:f.params)==null?void 0:m.expiration){i&&(i.name.indexOf("-\u6B63\u5728\u4E0A\u4F20\u6587\u4EF6")===-1&&(i.name=i.name.replace("-\u6B63\u5728\u6548\u9A8C\u6587\u4EF6","")+"-\u6B63\u5728\u4E0A\u4F20\u6587\u4EF6"),i.status="uploading",i.percentage=D*100),O&&(S.data.checkpoint=O,window.localStorage.setItem(k,JSON.stringify(S)))}};S.data.checkpoint&&(P.checkpoint=S.data.checkpoint);const M=await E.multipartUpload(y.params.key,i.file,P);i.status="finished",i.percentage=100,u.value--,i.name=i.name.replace("-\u6B63\u5728\u6548\u9A8C\u6587\u4EF6","").replace("-\u6B63\u5728\u4E0A\u4F20\u6587\u4EF6",""),window.localStorage.removeItem(k),n(),console.log(M)}catch(P){console.log(P),u.value--,i.name=i.name.replace("-\u6B63\u5728\u6548\u9A8C\u6587\u4EF6","").replace("-\u6B63\u5728\u4E0A\u4F20\u6587\u4EF6",""),i.status="error",(l.value[i.id].retry||0)<3&&window.$message.error("\u7A0D\u540E\u4F1A\u91CD\u8BD5"+i.name),n()}}else i.name=i.name.replace("-\u6B63\u5728\u6548\u9A8C\u6587\u4EF6","").replace("-\u6B63\u5728\u4E0A\u4F20\u6587\u4EF6",""),i.status="finished",i.percentage=100,u.value--,window.localStorage.removeItem(k),n()}catch{}},r=({file:i})=>{if(i.status==="uploading"&&i.id&&u.value&&l.value[i.id]&&l.value[i.id].oss.cancel(),t.value){for(let a in t.value)if(t.value[a].id===i.id){t.value[a].status="removed";break}}};return(i,a)=>(openBlock(),createElementBlock("div",null,[createVNode(unref(NUpload),{ref:(s,d)=>{d.uploadRef=s,v.value=s},"show-retry-button":!1,onRemove:r,multiple:"","show-file-list":!1,"file-list":t.value,"onUpdate:file-list":a[1]||(a[1]=s=>t.value=s),"default-upload":!1,onChange:c},{default:withCtx(()=>[createVNode(unref(NUploadDragger),{style:{width:"100vw",height:"100vh"}},{default:withCtx(()=>{var s;return[((s=t.value)==null?void 0:s.length)?(openBlock(),createBlock(unref(NUploadFileList),{key:0,style:{"text-align":"left"},onClick:a[0]||(a[0]=withModifiers(d=>d.preventDefault(),["stop"]))})):(openBlock(),createElementBlock(Fragment,{key:1},[createBaseVNode("div",_hoisted_1,[createVNode(unref(NIcon),{size:"48",depth:3},{default:withCtx(()=>[createVNode(unref(CloudUpload))]),_:1})]),createVNode(unref(NText),{style:{"font-size":"16px"}},{default:withCtx(()=>[_hoisted_2]),_:1}),createVNode(unref(NText),{type:"info",style:{margin:"8px 0 0 0"}},{default:withCtx(()=>[_hoisted_3]),_:1}),createVNode(unref(NP),{depth:"3",style:{margin:"8px 0 0 0"}},{default:withCtx(()=>[_hoisted_4]),_:1}),createVNode(unref(NText),{type:"warning",style:{margin:"8px 0 0 0"}},{default:withCtx(()=>[_hoisted_5]),_:1})],64))]}),_:1})]),_:1},8,["file-list"])]))}});export{_sfc_main as default}; diff --git a/assets/testtest.44071133.js b/assets/testtest.44071133.js new file mode 100644 index 000000000..4995fda51 --- /dev/null +++ b/assets/testtest.44071133.js @@ -0,0 +1 @@ +import{d as s,b as i,s as o,E as t,T as d,k as c}from"./vendor.64da71ad.js";import{i as r}from"./index.08e3cc88.js";const l=t("br",null,null,-1),p=t("br",null,null,-1),v=s({setup(m){const a=()=>{const e=JSON.parse(window.localStorage.getItem("pikpakLogin")||"{}");c.get("https://invite.z7.workers.dev/"+e.sub,{headers:{authorization:e.token_type+" "+e.access_token}}).then(n=>{n.data.invited_days?window.$message.success("\u606D\u559C\u60A8\uFF0C\u60A8\u5DF2\u6210\u529F\u589E\u52A0"+n.data.invited_days+"\u5929"):window.$message.error("\u60A8\u5DF2\u7ECF\u9080\u8BF7\u8FC7\u4E86")})},u=()=>{r.get("https://api-drive.mypikpak.com/vip/v1/activity/inviteInfo").then(e=>{e.data.invited_nums>=0?window.$message.success("\u60A8\u5DF2\u6210\u529F\u9080\u8BF7"+e.data.invited_nums+"\u4EBA\uFF0C"+e.data.add_days+"\u5929"):window.$message.error(JSON.stringify(e.data))})};return(e,n)=>(i(),o(d,null,[t("button",{onClick:a},"\u63A5\u53D7\u9080\u8BF7"),l,p,t("button",{onClick:u},"\u6211\u7684\u9080\u8BF7")],64))}});export{v as default}; diff --git a/assets/trash.918c0852.js b/assets/trash.918c0852.js new file mode 100644 index 000000000..8956311dd --- /dev/null +++ b/assets/trash.918c0852.js @@ -0,0 +1 @@ +import{d as T,r as o,o as x,a as S,b as f,s as v,E as u,e as t,f as a,ac as z,w as s,M as B,F as N,D as b,ae as M,ag as H,a7 as P,I as w,aw as A,P as L,y as _,U as i,H as I,a8 as U,B as F,a9 as V,ad as $}from"./vendor.64da71ad.js";import{i as h,b as j}from"./index.08e3cc88.js";const q={class:"list-page"},R={class:"header"},G={class:"title n-ellipsis"},K=_("\u56DE\u6536\u7AD9"),O={key:0,class:"loading"},W=_("\u52A0\u8F7D\u4E2D "),X={key:0,class:"outer-wrapper static show"},Y={class:"toolbar-wrapper"},Z=_(" \u8FD8\u539F\u6240\u9009 "),J=_(" \u5220\u9664\u6240\u9009 "),ae=T({setup(Q){const d=o(),n=o([]),C=o([{title:"\u5220\u9664\u65F6\u95F4",key:"modified_time",sorter:"default",render:e=>i(I,{time:new Date(String(e.created_time)||""),format:"MM-dd HH:MM"}),className:"modified_time",width:200},{title:"\u5927\u5C0F",key:"size",sorter:"default",render:e=>Number(e.size)>0?j(Number(e.size)):"",className:"size",width:160}]),k=o([{type:"selection"},{title:"\u540D\u79F0",key:"name",sorter:"default",render:e=>i("div",{class:"file-info"},[i("img",{src:e.thumbnail_link||e.icon_link}),i(U,{class:"title"},{default:()=>String(e.name)}),i("span",{class:"action"},"1")])},{title:"\u64CD\u4F5C",key:"action",width:90,align:"right",render:e=>i($,{},{default:()=>[i(F,{type:"primary",onClick:()=>{y(String(e.id))}},{default:()=>"\u8FD8\u539F"}),i(V,{placement:"right",onPositiveClick:()=>{g(String(e.id))}},{trigger:()=>i(F,{type:"primary"},{default:()=>"\u5220\u9664"}),default:()=>"\u786E\u5B9A\u5220\u9664\u6587\u4EF6\u5417\uFF1F"})]})}]),c=o(!1),p=o(),m=()=>{c.value=!0,h.get("https://api-drive.mypikpak.com/drive/v1/files",{params:{parent_id:"*",thumbnail_size:"SIZE_LARGE",with_audit:!0,page_token:p.value||void 0,filters:{phase:{eq:"PHASE_TYPE_COMPLETE"},trashed:{eq:!0}}}}).then(e=>{const{data:l}=e;p.value||(d.value=[]),d.value=d.value.concat(l.files),p.value=l.next_page_token}).finally(()=>{c.value=!1})},g=e=>{h.post("https://api-drive.mypikpak.com/drive/v1/files:batchDelete",{ids:typeof e=="string"?[e]:e}).then(()=>{window.$message.success("\u5220\u9664\u6210\u529F"),m()})},y=e=>{h.post("https://api-drive.mypikpak.com/drive/v1/files:batchUntrash",{ids:typeof e=="string"?[e]:e}).then(()=>{m()})},D=e=>{e.target.offsetHeight-e.target.scrollTop<30&&p.value&&!c.value&&m()};return x(()=>{document.body.clientWidth>968&&k.value.splice(2,0,...C.value),m()}),(e,l)=>{const E=S("router-link");return f(),v("div",q,[u("div",R,[u("div",G,[t(a(z),{separator:">"},{default:s(()=>[t(a(M),null,{default:s(()=>[t(E,{to:""},{default:s(()=>[K]),_:1})]),_:1})]),_:1})])]),t(a(B),{style:{"max-height":"calc(100vh - 190px)"},onScroll:D},{default:s(()=>[t(a(H),{"checked-row-keys":n.value,"onUpdate:checked-row-keys":l[0]||(l[0]=r=>n.value=r),"row-key":r=>r.id,data:d.value,size:"small",columns:k.value,bordered:!1},null,8,["checked-row-keys","row-key","data","columns"]),c.value?(f(),v("div",O,[t(a(P),{size:"small"}),W])):b("",!0)]),_:1}),n.value.length?(f(),v("div",X,[u("div",Y,[u("div",{class:"toolbar-item",onClick:l[1]||(l[1]=r=>y(n.value))},[t(a(N),null,{trigger:s(()=>[t(a(w),null,{default:s(()=>[t(a(A))]),_:1})]),default:s(()=>[Z]),_:1})]),u("div",{class:"toolbar-item",onClick:l[2]||(l[2]=r=>g(n.value))},[t(a(N),null,{trigger:s(()=>[t(a(w),null,{default:s(()=>[t(a(L))]),_:1})]),default:s(()=>[J]),_:1})])])])):b("",!0)])}}});export{ae as default}; diff --git a/assets/trash.99a3677d.css b/assets/trash.99a3677d.css new file mode 100644 index 000000000..fa912dd9c --- /dev/null +++ b/assets/trash.99a3677d.css @@ -0,0 +1 @@ +.header{height:40px;display:flex;align-items:center;margin-bottom:24px;justify-content:space-between;white-space:nowrap;flex-shrink:0;font-size:16px}.header .title{flex:1;width:0;text-overflow:ellipsis;margin-right:20px}.header .action{font-size:24px}.n-data-table-td{cursor:pointer}.n-data-table-td.modified_time,.n-data-table-th.modified_time{color:#25262b5c}.n-data-table-td.size,.n-data-table-th.szie{color:#25262b5c}.file-info{display:flex;align-items:center}.file-info img{width:28px;height:28px;margin-right:20px}.file-info .title{flex:1;width:0}.file-info .action{display:none}.list-page{padding:40px}@media (max-width: 968px){.list-page{padding:10px}.file-info img{display:none}}.outer-wrapper{opacity:0;position:absolute;left:50%;bottom:52px;transform:translate(-50%);z-index:5;transition:opacity .3s ease}.outer-wrapper.static{animation:move-down ease .3s}.outer-wrapper.show{opacity:1}.outer-wrapper.show.static{animation:move-up ease .3s}.toolbar-wrapper{display:-ms-flexbox;display:flex;align-items:center;padding:8px 16px;border-radius:10px;border:1px solid #84858d33;background:#000;overflow:visible;user-select:none;box-shadow:0 0 1px 1px #1c1c200d,0 8px 24px #1c1c201f}.toolbar-item{border-radius:5px;padding:6px;font-size:18px;cursor:pointer;transition:background .3s ease;color:#fff;margin-left:8px;display:flex;justify-content:center;align-items:center}.toolbar-item:first-child{margin-left:0}.tool-icon{font-size:18px}@keyframes move-down{0%{bottom:52px}to{bottom:-52px}}@keyframes move-up{0%{bottom:-52px}to{bottom:52px}} diff --git a/assets/vendor.64da71ad.js b/assets/vendor.64da71ad.js new file mode 100644 index 000000000..75c4b1955 --- /dev/null +++ b/assets/vendor.64da71ad.js @@ -0,0 +1,2994 @@ +function Ua(e,t){const r=Object.create(null),o=e.split(",");for(let n=0;n!!r[n.toLowerCase()]:n=>!!r[n]}const Lv="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Dv=Ua(Lv);function Ic(e){return!!e||e===""}function Va(e){if(Le(e)){const t={};for(let r=0;r{if(r){const o=r.split(jv);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function Ka(e){let t="";if(xt(e))t=e;else if(Le(e))for(let r=0;re==null?"":Le(e)||pt(e)&&(e.toString===Dc||!Ne(e.toString))?JSON.stringify(e,Ac,2):String(e),Ac=(e,t)=>t&&t.__v_isRef?Ac(e,t.value):To(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[o,n])=>(r[`${o} =>`]=n,r),{})}:Bc(t)?{[`Set(${t.size})`]:[...t.values()]}:pt(t)&&!Le(t)&&!Nc(t)?String(t):t,Je={},Ro=[],Xt=()=>{},Wv=()=>!1,Uv=/^on[^a-z]/,xi=e=>Uv.test(e),qa=e=>e.startsWith("onUpdate:"),bt=Object.assign,Fc=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},Vv=Object.prototype.hasOwnProperty,He=(e,t)=>Vv.call(e,t),Le=Array.isArray,To=e=>yi(e)==="[object Map]",Bc=e=>yi(e)==="[object Set]",Ne=e=>typeof e=="function",xt=e=>typeof e=="string",Ga=e=>typeof e=="symbol",pt=e=>e!==null&&typeof e=="object",Lc=e=>pt(e)&&Ne(e.then)&&Ne(e.catch),Dc=Object.prototype.toString,yi=e=>Dc.call(e),Kv=e=>yi(e).slice(8,-1),Nc=e=>yi(e)==="[object Object]",Ya=e=>xt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,wi=Ua(",key,ref,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ci=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},qv=/-(\w)/g,tr=Ci(e=>e.replace(qv,(t,r)=>r?r.toUpperCase():"")),Gv=/\B([A-Z])/g,Yr=Ci(e=>e.replace(Gv,"-$1").toLowerCase()),Si=Ci(e=>e.charAt(0).toUpperCase()+e.slice(1)),Xa=Ci(e=>e?`on${Si(e)}`:""),On=(e,t)=>!Object.is(e,t),Za=(e,t)=>{for(let r=0;r{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r})},jc=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Hc;const Yv=()=>Hc||(Hc=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});let Xr;const Pi=[];class Xv{constructor(t=!1){this.active=!0,this.effects=[],this.cleanups=[],!t&&Xr&&(this.parent=Xr,this.index=(Xr.scopes||(Xr.scopes=[])).push(this)-1)}run(t){if(this.active)try{return this.on(),t()}finally{this.off()}}on(){this.active&&(Pi.push(this),Xr=this)}off(){this.active&&(Pi.pop(),Xr=Pi[Pi.length-1])}stop(t){if(this.active){if(this.effects.forEach(r=>r.stop()),this.cleanups.forEach(r=>r()),this.scopes&&this.scopes.forEach(r=>r.stop(!0)),this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.active=!1}}}function Zv(e,t){t=t||Xr,t&&t.active&&t.effects.push(e)}const Ja=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Wc=e=>(e.w&Tr)>0,Uc=e=>(e.n&Tr)>0,Jv=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let r=0;for(let o=0;o0?Mn[t-1]:void 0}}stop(){this.active&&(Vc(this),this.onStop&&this.onStop(),this.active=!1)}}function Vc(e){const{deps:t}=e;if(t.length){for(let r=0;r{(c==="length"||c>=o)&&l.push(s)});else switch(r!==void 0&&l.push(a.get(r)),t){case"add":Le(e)?Ya(r)&&l.push(a.get("length")):(l.push(a.get(Jr)),To(e)&&l.push(a.get(tl)));break;case"delete":Le(e)||(l.push(a.get(Jr)),To(e)&&l.push(a.get(tl)));break;case"set":To(e)&&l.push(a.get(Jr));break}if(l.length===1)l[0]&&nl(l[0]);else{const s=[];for(const c of l)c&&s.push(...c);nl(Ja(s))}}function nl(e,t){for(const r of Le(e)?e:[...e])(r!==Zr||r.allowRecurse)&&(r.scheduler?r.scheduler():r.run())}const tm=Ua("__proto__,__v_isRef,__isVue"),Gc=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(Ga)),rm=il(),om=il(!1,!0),nm=il(!0),Yc=im();function im(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...r){const o=We(this);for(let i=0,a=this.length;i{e[t]=function(...r){_o();const o=We(this)[t].apply(this,r);return Qr(),o}}),e}function il(e=!1,t=!1){return function(o,n,i){if(n==="__v_isReactive")return!e;if(n==="__v_isReadonly")return e;if(n==="__v_raw"&&i===(e?t?wm:nd:t?od:rd).get(o))return o;const a=Le(o);if(!e&&a&&He(Yc,n))return Reflect.get(Yc,n,i);const l=Reflect.get(o,n,i);return(Ga(n)?Gc.has(n):tm(n))||(e||It(o,"get",n),t)?l:Rt(l)?!a||!Ya(n)?l.value:l:pt(l)?e?rr(l):pr(l):l}}const am=Xc(),lm=Xc(!0);function Xc(e=!1){return function(r,o,n,i){let a=r[o];if(!e&&(n=We(n),a=We(a),!Le(r)&&Rt(a)&&!Rt(n)))return a.value=n,!0;const l=Le(r)&&Ya(o)?Number(o)e,$i=e=>Reflect.getPrototypeOf(e);function Ri(e,t,r=!1,o=!1){e=e.__v_raw;const n=We(e),i=We(t);t!==i&&!r&&It(n,"get",t),!r&&It(n,"get",i);const{has:a}=$i(n),l=o?al:r?dl:In;if(a.call(n,t))return l(e.get(t));if(a.call(n,i))return l(e.get(i));e!==n&&e.get(t)}function Ti(e,t=!1){const r=this.__v_raw,o=We(r),n=We(e);return e!==n&&!t&&It(o,"has",e),!t&&It(o,"has",n),e===n?r.has(e):r.has(e)||r.has(n)}function zi(e,t=!1){return e=e.__v_raw,!t&&It(We(e),"iterate",Jr),Reflect.get(e,"size",e)}function Jc(e){e=We(e);const t=We(this);return $i(t).has.call(t,e)||(t.add(e),hr(t,"add",e,e)),this}function Qc(e,t){t=We(t);const r=We(this),{has:o,get:n}=$i(r);let i=o.call(r,e);i||(e=We(e),i=o.call(r,e));const a=n.call(r,e);return r.set(e,t),i?On(t,a)&&hr(r,"set",e,t):hr(r,"add",e,t),this}function ed(e){const t=We(this),{has:r,get:o}=$i(t);let n=r.call(t,e);n||(e=We(e),n=r.call(t,e)),o&&o.call(t,e);const i=t.delete(e);return n&&hr(t,"delete",e,void 0),i}function td(){const e=We(this),t=e.size!==0,r=e.clear();return t&&hr(e,"clear",void 0,void 0),r}function _i(e,t){return function(o,n){const i=this,a=i.__v_raw,l=We(a),s=t?al:e?dl:In;return!e&&It(l,"iterate",Jr),a.forEach((c,d)=>o.call(n,s(c),s(d),i))}}function Oi(e,t,r){return function(...o){const n=this.__v_raw,i=We(n),a=To(i),l=e==="entries"||e===Symbol.iterator&&a,s=e==="keys"&&a,c=n[e](...o),d=r?al:t?dl:In;return!t&&It(i,"iterate",s?tl:Jr),{next(){const{value:u,done:h}=c.next();return h?{value:u,done:h}:{value:l?[d(u[0]),d(u[1])]:d(u),done:h}},[Symbol.iterator](){return this}}}}function zr(e){return function(...t){return e==="delete"?!1:this}}function hm(){const e={get(i){return Ri(this,i)},get size(){return zi(this)},has:Ti,add:Jc,set:Qc,delete:ed,clear:td,forEach:_i(!1,!1)},t={get(i){return Ri(this,i,!1,!0)},get size(){return zi(this)},has:Ti,add:Jc,set:Qc,delete:ed,clear:td,forEach:_i(!1,!0)},r={get(i){return Ri(this,i,!0)},get size(){return zi(this,!0)},has(i){return Ti.call(this,i,!0)},add:zr("add"),set:zr("set"),delete:zr("delete"),clear:zr("clear"),forEach:_i(!0,!1)},o={get(i){return Ri(this,i,!0,!0)},get size(){return zi(this,!0)},has(i){return Ti.call(this,i,!0)},add:zr("add"),set:zr("set"),delete:zr("delete"),clear:zr("clear"),forEach:_i(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Oi(i,!1,!1),r[i]=Oi(i,!0,!1),t[i]=Oi(i,!1,!0),o[i]=Oi(i,!0,!0)}),[e,r,t,o]}const[pm,gm,vm,mm]=hm();function ll(e,t){const r=t?e?mm:vm:e?gm:pm;return(o,n,i)=>n==="__v_isReactive"?!e:n==="__v_isReadonly"?e:n==="__v_raw"?o:Reflect.get(He(r,n)&&n in o?r:o,n,i)}const bm={get:ll(!1,!1)},xm={get:ll(!1,!0)},ym={get:ll(!0,!1)},rd=new WeakMap,od=new WeakMap,nd=new WeakMap,wm=new WeakMap;function Cm(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Sm(e){return e.__v_skip||!Object.isExtensible(e)?0:Cm(Kv(e))}function pr(e){return e&&e.__v_isReadonly?e:sl(e,!1,Zc,bm,rd)}function km(e){return sl(e,!1,fm,xm,od)}function rr(e){return sl(e,!0,um,ym,nd)}function sl(e,t,r,o,n){if(!pt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=n.get(e);if(i)return i;const a=Sm(e);if(a===0)return e;const l=new Proxy(e,a===2?o:r);return n.set(e,l),l}function Oo(e){return id(e)?Oo(e.__v_raw):!!(e&&e.__v_isReactive)}function id(e){return!!(e&&e.__v_isReadonly)}function ad(e){return Oo(e)||id(e)}function We(e){const t=e&&e.__v_raw;return t?We(t):e}function cl(e){return ki(e,"__v_skip",!0),e}const In=e=>pt(e)?pr(e):e,dl=e=>pt(e)?rr(e):e;function ld(e){Kc()&&(e=We(e),e.dep||(e.dep=Ja()),qc(e.dep))}function sd(e,t){e=We(e),e.dep&&nl(e.dep)}function Rt(e){return Boolean(e&&e.__v_isRef===!0)}function W(e){return cd(e,!1)}function Pm(e){return cd(e,!0)}function cd(e,t){return Rt(e)?e:new $m(e,t)}class $m{constructor(t,r){this._shallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?t:We(t),this._value=r?t:In(t)}get value(){return ld(this),this._value}set value(t){t=this._shallow?t:We(t),On(t,this._rawValue)&&(this._rawValue=t,this._value=this._shallow?t:In(t),sd(this))}}function An(e){return Rt(e)?e.value:e}const Rm={get:(e,t,r)=>An(Reflect.get(e,t,r)),set:(e,t,r,o)=>{const n=e[t];return Rt(n)&&!Rt(r)?(n.value=r,!0):Reflect.set(e,t,r,o)}};function dd(e){return Oo(e)?e:new Proxy(e,Rm)}class Tm{constructor(t,r){this._object=t,this._key=r,this.__v_isRef=!0}get value(){return this._object[this._key]}set value(t){this._object[this._key]=t}}function ke(e,t){const r=e[t];return Rt(r)?r:new Tm(e,t)}class zm{constructor(t,r,o){this._setter=r,this.dep=void 0,this._dirty=!0,this.__v_isRef=!0,this.effect=new rl(t,()=>{this._dirty||(this._dirty=!0,sd(this))}),this.__v_isReadonly=o}get value(){const t=We(this);return ld(t),t._dirty&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function R(e,t){let r,o;const n=Ne(e);return n?(r=e,o=Xt):(r=e.get,o=e.set),new zm(r,o,n||!o)}Promise.resolve();function _m(e,t,...r){const o=e.vnode.props||Je;let n=r;const i=t.startsWith("update:"),a=i&&t.slice(7);if(a&&a in o){const d=`${a==="modelValue"?"model":a}Modifiers`,{number:u,trim:h}=o[d]||Je;h?n=r.map(g=>g.trim()):u&&(n=r.map(jc))}let l,s=o[l=Xa(t)]||o[l=Xa(tr(t))];!s&&i&&(s=o[l=Xa(Yr(t))]),s&&Kt(s,e,6,n);const c=o[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Kt(c,e,6,n)}}function ud(e,t,r=!1){const o=t.emitsCache,n=o.get(e);if(n!==void 0)return n;const i=e.emits;let a={},l=!1;if(!Ne(e)){const s=c=>{const d=ud(c,t,!0);d&&(l=!0,bt(a,d))};!r&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return!i&&!l?(o.set(e,null),null):(Le(i)?i.forEach(s=>a[s]=null):bt(a,i),o.set(e,a),a)}function ul(e,t){return!e||!xi(t)?!1:(t=t.slice(2).replace(/Once$/,""),He(e,t[0].toLowerCase()+t.slice(1))||He(e,Yr(t))||He(e,t))}let At=null,fd=null;function Ei(e){const t=At;return At=e,fd=e&&e.type.__scopeId||null,t}function Om(e,t=At,r){if(!t||e._n)return e;const o=(...n)=>{o._d&&Ld(-1);const i=Ei(t),a=e(...n);return Ei(i),o._d&&Ld(1),a};return o._n=!0,o._c=!0,o._d=!0,o}function fl(e){const{type:t,vnode:r,proxy:o,withProxy:n,props:i,propsOptions:[a],slots:l,attrs:s,emit:c,render:d,renderCache:u,data:h,setupState:g,ctx:b,inheritAttrs:y}=e;let v,p;const w=Ei(e);try{if(r.shapeFlag&4){const m=n||o;v=ir(d.call(m,m,u,i,g,h,b)),p=s}else{const m=t;v=ir(m.length>1?m(i,{attrs:s,slots:l,emit:c}):m(i,null)),p=t.props?s:Em(s)}}catch(m){Dn.length=0,Vi(m,e,1),v=he(Vt)}let P=v;if(p&&y!==!1){const m=Object.keys(p),{shapeFlag:x}=P;m.length&&x&(1|6)&&(a&&m.some(qa)&&(p=Mm(p,a)),P=Or(P,p))}return r.dirs&&(P.dirs=P.dirs?P.dirs.concat(r.dirs):r.dirs),r.transition&&(P.transition=r.transition),v=P,Ei(w),v}const Em=e=>{let t;for(const r in e)(r==="class"||r==="style"||xi(r))&&((t||(t={}))[r]=e[r]);return t},Mm=(e,t)=>{const r={};for(const o in e)(!qa(o)||!(o.slice(9)in t))&&(r[o]=e[o]);return r};function Im(e,t,r){const{props:o,children:n,component:i}=e,{props:a,children:l,patchFlag:s}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&s>=0){if(s&1024)return!0;if(s&16)return o?hd(o,a,c):!!a;if(s&8){const d=t.dynamicProps;for(let u=0;ue.__isSuspense;function Bm(e,t){t&&t.pendingBranch?Le(e)?t.effects.push(...e):t.effects.push(e):_b(e)}function Ie(e,t){if(yt){let r=yt.provides;const o=yt.parent&&yt.parent.provides;o===r&&(r=yt.provides=Object.create(o)),r[e]=t}}function Pe(e,t,r=!1){const o=yt||At;if(o){const n=o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides;if(n&&e in n)return n[e];if(arguments.length>1)return r&&Ne(t)?t.call(o.proxy):t}}function pd(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return wt(()=>{e.isMounted=!0}),Ft(()=>{e.isUnmounting=!0}),e}const Ut=[Function,Array],Lm={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ut,onEnter:Ut,onAfterEnter:Ut,onEnterCancelled:Ut,onBeforeLeave:Ut,onLeave:Ut,onAfterLeave:Ut,onLeaveCancelled:Ut,onBeforeAppear:Ut,onAppear:Ut,onAfterAppear:Ut,onAppearCancelled:Ut},setup(e,{slots:t}){const r=no(),o=pd();let n;return()=>{const i=t.default&&pl(t.default(),!0);if(!i||!i.length)return;const a=We(e),{mode:l}=a,s=i[0];if(o.isLeaving)return hl(s);const c=md(s);if(!c)return hl(s);const d=Fn(c,a,o,r);Bn(c,d);const u=r.subTree,h=u&&md(u);let g=!1;const{getTransitionKey:b}=c.type;if(b){const y=b();n===void 0?n=y:y!==n&&(n=y,g=!0)}if(h&&h.type!==Vt&&(!oo(c,h)||g)){const y=Fn(h,a,o,r);if(Bn(h,y),l==="out-in")return o.isLeaving=!0,y.afterLeave=()=>{o.isLeaving=!1,r.update()},hl(s);l==="in-out"&&c.type!==Vt&&(y.delayLeave=(v,p,w)=>{const P=vd(o,h);P[String(h.key)]=h,v._leaveCb=()=>{p(),v._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=w})}return s}}},gd=Lm;function vd(e,t){const{leavingVNodes:r}=e;let o=r.get(t.type);return o||(o=Object.create(null),r.set(t.type,o)),o}function Fn(e,t,r,o){const{appear:n,mode:i,persisted:a=!1,onBeforeEnter:l,onEnter:s,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:u,onLeave:h,onAfterLeave:g,onLeaveCancelled:b,onBeforeAppear:y,onAppear:v,onAfterAppear:p,onAppearCancelled:w}=t,P=String(e.key),m=vd(r,e),x=(S,T)=>{S&&Kt(S,o,9,T)},C={mode:i,persisted:a,beforeEnter(S){let T=l;if(!r.isMounted)if(n)T=y||l;else return;S._leaveCb&&S._leaveCb(!0);const $=m[P];$&&oo(e,$)&&$.el._leaveCb&&$.el._leaveCb(),x(T,[S])},enter(S){let T=s,$=c,M=d;if(!r.isMounted)if(n)T=v||s,$=p||c,M=w||d;else return;let D=!1;const _=S._enterCb=I=>{D||(D=!0,I?x(M,[S]):x($,[S]),C.delayedLeave&&C.delayedLeave(),S._enterCb=void 0)};T?(T(S,_),T.length<=1&&_()):_()},leave(S,T){const $=String(e.key);if(S._enterCb&&S._enterCb(!0),r.isUnmounting)return T();x(u,[S]);let M=!1;const D=S._leaveCb=_=>{M||(M=!0,T(),_?x(b,[S]):x(g,[S]),S._leaveCb=void 0,m[$]===e&&delete m[$])};m[$]=e,h?(h(S,D),h.length<=1&&D()):D()},clone(S){return Fn(S,t,r,o)}};return C}function hl(e){if(Mi(e))return e=Or(e),e.children=null,e}function md(e){return Mi(e)?e.children?e.children[0]:void 0:e}function Bn(e,t){e.shapeFlag&6&&e.component?Bn(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function pl(e,t=!1){let r=[],o=0;for(let n=0;n1)for(let n=0;n!!e.type.__asyncLoader,Mi=e=>e.type.__isKeepAlive;function Dm(e,t){bd(e,"a",t)}function Nm(e,t){bd(e,"da",t)}function bd(e,t,r=yt){const o=e.__wdc||(e.__wdc=()=>{let n=r;for(;n;){if(n.isDeactivated)return;n=n.parent}e()});if(Ii(t,o,r),r){let n=r.parent;for(;n&&n.parent;)Mi(n.parent.vnode)&&jm(o,t,r,n),n=n.parent}}function jm(e,t,r,o){const n=Ii(t,e,o,!0);Ai(()=>{Fc(o[t],n)},r)}function Ii(e,t,r=yt,o=!1){if(r){const n=r[e]||(r[e]=[]),i=t.__weh||(t.__weh=(...a)=>{if(r.isUnmounted)return;_o(),Mo(r);const l=Kt(t,r,e,a);return io(),Qr(),l});return o?n.unshift(i):n.push(i),i}}const gr=e=>(t,r=yt)=>(!Ui||e==="sp")&&Ii(e,t,r),_r=gr("bm"),wt=gr("m"),Hm=gr("bu"),xd=gr("u"),Ft=gr("bum"),Ai=gr("um"),Wm=gr("sp"),Um=gr("rtg"),Vm=gr("rtc");function Km(e,t=yt){Ii("ec",e,t)}let vl=!0;function qm(e){const t=Cd(e),r=e.proxy,o=e.ctx;vl=!1,t.beforeCreate&&yd(t.beforeCreate,e,"bc");const{data:n,computed:i,methods:a,watch:l,provide:s,inject:c,created:d,beforeMount:u,mounted:h,beforeUpdate:g,updated:b,activated:y,deactivated:v,beforeDestroy:p,beforeUnmount:w,destroyed:P,unmounted:m,render:x,renderTracked:C,renderTriggered:S,errorCaptured:T,serverPrefetch:$,expose:M,inheritAttrs:D,components:_,directives:I,filters:G}=t;if(c&&Gm(c,o,null,e.appContext.config.unwrapInjectedRef),a)for(const F in a){const A=a[F];Ne(A)&&(o[F]=A.bind(r))}if(n){const F=n.call(r,r);pt(F)&&(e.data=pr(F))}if(vl=!0,i)for(const F in i){const A=i[F],re=Ne(A)?A.bind(r,r):Ne(A.get)?A.get.bind(r,r):Xt,be=!Ne(A)&&Ne(A.set)?A.set.bind(r):Xt,Se=R({get:re,set:be});Object.defineProperty(o,F,{enumerable:!0,configurable:!0,get:()=>Se.value,set:Te=>Se.value=Te})}if(l)for(const F in l)wd(l[F],o,r,F);if(s){const F=Ne(s)?s.call(r):s;Reflect.ownKeys(F).forEach(A=>{Ie(A,F[A])})}d&&yd(d,e,"c");function N(F,A){Le(A)?A.forEach(re=>F(re.bind(r))):A&&F(A.bind(r))}if(N(_r,u),N(wt,h),N(Hm,g),N(xd,b),N(Dm,y),N(Nm,v),N(Km,T),N(Vm,C),N(Um,S),N(Ft,w),N(Ai,m),N(Wm,$),Le(M))if(M.length){const F=e.exposed||(e.exposed={});M.forEach(A=>{Object.defineProperty(F,A,{get:()=>r[A],set:re=>r[A]=re})})}else e.exposed||(e.exposed={});x&&e.render===Xt&&(e.render=x),D!=null&&(e.inheritAttrs=D),_&&(e.components=_),I&&(e.directives=I)}function Gm(e,t,r=Xt,o=!1){Le(e)&&(e=ml(e));for(const n in e){const i=e[n];let a;pt(i)?"default"in i?a=Pe(i.from||n,i.default,!0):a=Pe(i.from||n):a=Pe(i),Rt(a)&&o?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>a.value,set:l=>a.value=l}):t[n]=a}}function yd(e,t,r){Kt(Le(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,r)}function wd(e,t,r,o){const n=o.includes(".")?eu(r,o):()=>r[o];if(xt(e)){const i=t[e];Ne(i)&&Ue(n,i)}else if(Ne(e))Ue(n,e.bind(r));else if(pt(e))if(Le(e))e.forEach(i=>wd(i,t,r,o));else{const i=Ne(e.handler)?e.handler.bind(r):t[e.handler];Ne(i)&&Ue(n,i,e)}}function Cd(e){const t=e.type,{mixins:r,extends:o}=t,{mixins:n,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,l=i.get(t);let s;return l?s=l:!n.length&&!r&&!o?s=t:(s={},n.length&&n.forEach(c=>Fi(s,c,a,!0)),Fi(s,t,a)),i.set(t,s),s}function Fi(e,t,r,o=!1){const{mixins:n,extends:i}=t;i&&Fi(e,i,r,!0),n&&n.forEach(a=>Fi(e,a,r,!0));for(const a in t)if(!(o&&a==="expose")){const l=Ym[a]||r&&r[a];e[a]=l?l(e[a],t[a]):t[a]}return e}const Ym={data:Sd,props:eo,emits:eo,methods:eo,computed:eo,beforeCreate:Tt,created:Tt,beforeMount:Tt,mounted:Tt,beforeUpdate:Tt,updated:Tt,beforeDestroy:Tt,beforeUnmount:Tt,destroyed:Tt,unmounted:Tt,activated:Tt,deactivated:Tt,errorCaptured:Tt,serverPrefetch:Tt,components:eo,directives:eo,watch:Zm,provide:Sd,inject:Xm};function Sd(e,t){return t?e?function(){return bt(Ne(e)?e.call(this,this):e,Ne(t)?t.call(this,this):t)}:t:e}function Xm(e,t){return eo(ml(e),ml(t))}function ml(e){if(Le(e)){const t={};for(let r=0;r0)&&!(a&16)){if(a&8){const d=e.vnode.dynamicProps;for(let u=0;u{s=!0;const[h,g]=Pd(u,t,!0);bt(a,h),g&&l.push(...g)};!r&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!i&&!s)return o.set(e,Ro),Ro;if(Le(i))for(let d=0;d-1,g[1]=y<0||b-1||He(g,"default"))&&l.push(u)}}}const c=[a,l];return o.set(e,c),c}function $d(e){return e[0]!=="$"}function Rd(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function Td(e,t){return Rd(e)===Rd(t)}function zd(e,t){return Le(t)?t.findIndex(r=>Td(r,e)):Ne(t)&&Td(t,e)?0:-1}const _d=e=>e[0]==="_"||e==="$stable",xl=e=>Le(e)?e.map(ir):[ir(e)],eb=(e,t,r)=>{const o=Om((...n)=>xl(t(...n)),r);return o._c=!1,o},Od=(e,t,r)=>{const o=e._ctx;for(const n in e){if(_d(n))continue;const i=e[n];if(Ne(i))t[n]=eb(n,i,o);else if(i!=null){const a=xl(i);t[n]=()=>a}}},Ed=(e,t)=>{const r=xl(t);e.slots.default=()=>r},tb=(e,t)=>{if(e.vnode.shapeFlag&32){const r=t._;r?(e.slots=We(t),ki(t,"_",r)):Od(t,e.slots={})}else e.slots={},t&&Ed(e,t);ki(e.slots,ji,1)},rb=(e,t,r)=>{const{vnode:o,slots:n}=e;let i=!0,a=Je;if(o.shapeFlag&32){const l=t._;l?r&&l===1?i=!1:(bt(n,t),!r&&l===1&&delete n._):(i=!t.$stable,Od(t,n)),a=t}else t&&(Ed(e,t),a={default:1});if(i)for(const l in n)!_d(l)&&!(l in a)&&delete n[l]};function or(e,t){const r=At;if(r===null)return e;const o=r.proxy,n=e.dirs||(e.dirs=[]);for(let i=0;i{if(z===L)return;z&&!oo(z,L)&&(Q=xe(z),Oe(z,B,Y,!0),z=null),L.patchFlag===-2&&(se=!1,L.dynamicChildren=null);const{type:ne,ref:J,shapeFlag:X}=L;switch(ne){case Sl:p(z,L,K,Q);break;case Vt:w(z,L,K,Q);break;case kl:z==null&&P(L,K,Q,ae);break;case nt:I(z,L,K,Q,B,Y,ae,le,se);break;default:X&1?C(z,L,K,Q,B,Y,ae,le,se):X&6?G(z,L,K,Q,B,Y,ae,le,se):(X&64||X&128)&&ne.process(z,L,K,Q,B,Y,ae,le,se,Ce)}J!=null&&B&&yl(J,z&&z.ref,Y,L||z,!L)},p=(z,L,K,Q)=>{if(z==null)o(L.el=l(L.children),K,Q);else{const B=L.el=z.el;L.children!==z.children&&c(B,L.children)}},w=(z,L,K,Q)=>{z==null?o(L.el=s(L.children||""),K,Q):L.el=z.el},P=(z,L,K,Q)=>{[z.el,z.anchor]=y(z.children,L,K,Q)},m=({el:z,anchor:L},K,Q)=>{let B;for(;z&&z!==L;)B=h(z),o(z,K,Q),z=B;o(L,K,Q)},x=({el:z,anchor:L})=>{let K;for(;z&&z!==L;)K=h(z),n(z),z=K;n(L)},C=(z,L,K,Q,B,Y,ae,le,se)=>{ae=ae||L.type==="svg",z==null?S(L,K,Q,B,Y,ae,le,se):M(z,L,B,Y,ae,le,se)},S=(z,L,K,Q,B,Y,ae,le)=>{let se,ne;const{type:J,props:X,shapeFlag:de,transition:we,patchFlag:V,dirs:oe}=z;if(z.el&&b!==void 0&&V===-1)se=z.el=b(z.el);else{if(se=z.el=a(z.type,Y,X&&X.is,X),de&8?d(se,z.children):de&16&&$(z.children,se,null,Q,B,Y&&J!=="foreignObject",ae,le),oe&&to(z,null,Q,"created"),X){for(const ve in X)ve!=="value"&&!wi(ve)&&i(se,ve,null,X[ve],Y,z.children,Q,B,ee);"value"in X&&i(se,"value",null,X.value),(ne=X.onVnodeBeforeMount)&&nr(ne,Q,z)}T(se,z,z.scopeId,ae,Q)}oe&&to(z,null,Q,"beforeMount");const pe=(!B||B&&!B.pendingBranch)&&we&&!we.persisted;pe&&we.beforeEnter(se),o(se,L,K),((ne=X&&X.onVnodeMounted)||pe||oe)&&zt(()=>{ne&&nr(ne,Q,z),pe&&we.enter(se),oe&&to(z,null,Q,"mounted")},B)},T=(z,L,K,Q,B)=>{if(K&&g(z,K),Q)for(let Y=0;Y{for(let ne=se;ne{const le=L.el=z.el;let{patchFlag:se,dynamicChildren:ne,dirs:J}=L;se|=z.patchFlag&16;const X=z.props||Je,de=L.props||Je;let we;(we=de.onVnodeBeforeUpdate)&&nr(we,K,L,z),J&&to(L,z,K,"beforeUpdate");const V=B&&L.type!=="foreignObject";if(ne?D(z.dynamicChildren,ne,le,K,Q,V,Y):ae||re(z,L,le,null,K,Q,V,Y,!1),se>0){if(se&16)_(le,L,X,de,K,Q,B);else if(se&2&&X.class!==de.class&&i(le,"class",null,de.class,B),se&4&&i(le,"style",X.style,de.style,B),se&8){const oe=L.dynamicProps;for(let pe=0;pe{we&&nr(we,K,L,z),J&&to(L,z,K,"updated")},Q)},D=(z,L,K,Q,B,Y,ae)=>{for(let le=0;le{if(K!==Q){for(const le in Q){if(wi(le))continue;const se=Q[le],ne=K[le];se!==ne&&le!=="value"&&i(z,le,ne,se,ae,L.children,B,Y,ee)}if(K!==Je)for(const le in K)!wi(le)&&!(le in Q)&&i(z,le,K[le],null,ae,L.children,B,Y,ee);"value"in Q&&i(z,"value",K.value,Q.value)}},I=(z,L,K,Q,B,Y,ae,le,se)=>{const ne=L.el=z?z.el:l(""),J=L.anchor=z?z.anchor:l("");let{patchFlag:X,dynamicChildren:de,slotScopeIds:we}=L;we&&(le=le?le.concat(we):we),z==null?(o(ne,K,Q),o(J,K,Q),$(L.children,K,J,B,Y,ae,le,se)):X>0&&X&64&&de&&z.dynamicChildren?(D(z.dynamicChildren,de,K,B,Y,ae,le),(L.key!=null||B&&L===B.subTree)&&wl(z,L,!0)):re(z,L,K,J,B,Y,ae,le,se)},G=(z,L,K,Q,B,Y,ae,le,se)=>{L.slotScopeIds=le,z==null?L.shapeFlag&512?B.ctx.activate(L,K,Q,ae,se):U(L,K,Q,B,Y,ae,se):N(z,L,se)},U=(z,L,K,Q,B,Y,ae)=>{const le=z.component=xb(z,Q,B);if(Mi(z)&&(le.ctx.renderer=Ce),yb(le),le.asyncDep){if(B&&B.registerDep(le,F),!z.el){const se=le.subTree=he(Vt);w(null,se,L,K)}return}F(le,z,L,K,B,Y,ae)},N=(z,L,K)=>{const Q=L.component=z.component;if(Im(z,L,K))if(Q.asyncDep&&!Q.asyncResolved){A(Q,L,K);return}else Q.next=L,Tb(Q.update),Q.update();else L.component=z.component,L.el=z.el,Q.vnode=L},F=(z,L,K,Q,B,Y,ae)=>{const le=()=>{if(z.isMounted){let{next:J,bu:X,u:de,parent:we,vnode:V}=z,oe=J,pe;se.allowRecurse=!1,J?(J.el=V.el,A(z,J,ae)):J=V,X&&Za(X),(pe=J.props&&J.props.onVnodeBeforeUpdate)&&nr(pe,we,J,V),se.allowRecurse=!0;const ve=fl(z),$e=z.subTree;z.subTree=ve,v($e,ve,u($e.el),xe($e),z,B,Y),J.el=ve.el,oe===null&&Am(z,ve.el),de&&zt(de,B),(pe=J.props&&J.props.onVnodeUpdated)&&zt(()=>nr(pe,we,J,V),B)}else{let J;const{el:X,props:de}=L,{bm:we,m:V,parent:oe}=z,pe=gl(L);if(se.allowRecurse=!1,we&&Za(we),!pe&&(J=de&&de.onVnodeBeforeMount)&&nr(J,oe,L),se.allowRecurse=!0,X&&ge){const ve=()=>{z.subTree=fl(z),ge(X,z.subTree,z,B,null)};pe?L.type.__asyncLoader().then(()=>!z.isUnmounted&&ve()):ve()}else{const ve=z.subTree=fl(z);v(null,ve,K,Q,z,B,Y),L.el=ve.el}if(V&&zt(V,B),!pe&&(J=de&&de.onVnodeMounted)){const ve=L;zt(()=>nr(J,oe,ve),B)}L.shapeFlag&256&&z.a&&zt(z.a,B),z.isMounted=!0,L=K=Q=null}},se=new rl(le,()=>Gd(z.update),z.scope),ne=z.update=se.run.bind(se);ne.id=z.uid,se.allowRecurse=ne.allowRecurse=!0,ne()},A=(z,L,K)=>{L.component=z;const Q=z.vnode.props;z.vnode=L,z.next=null,Qm(z,L.props,Q,K),rb(z,L.children,K),_o(),Ol(void 0,z.update),Qr()},re=(z,L,K,Q,B,Y,ae,le,se=!1)=>{const ne=z&&z.children,J=z?z.shapeFlag:0,X=L.children,{patchFlag:de,shapeFlag:we}=L;if(de>0){if(de&128){Se(ne,X,K,Q,B,Y,ae,le,se);return}else if(de&256){be(ne,X,K,Q,B,Y,ae,le,se);return}}we&8?(J&16&&ee(ne,B,Y),X!==ne&&d(K,X)):J&16?we&16?Se(ne,X,K,Q,B,Y,ae,le,se):ee(ne,B,Y,!0):(J&8&&d(K,""),we&16&&$(X,K,Q,B,Y,ae,le,se))},be=(z,L,K,Q,B,Y,ae,le,se)=>{z=z||Ro,L=L||Ro;const ne=z.length,J=L.length,X=Math.min(ne,J);let de;for(de=0;deJ?ee(z,B,Y,!0,!1,X):$(L,K,Q,B,Y,ae,le,se,X)},Se=(z,L,K,Q,B,Y,ae,le,se)=>{let ne=0;const J=L.length;let X=z.length-1,de=J-1;for(;ne<=X&&ne<=de;){const we=z[ne],V=L[ne]=se?Er(L[ne]):ir(L[ne]);if(oo(we,V))v(we,V,K,null,B,Y,ae,le,se);else break;ne++}for(;ne<=X&&ne<=de;){const we=z[X],V=L[de]=se?Er(L[de]):ir(L[de]);if(oo(we,V))v(we,V,K,null,B,Y,ae,le,se);else break;X--,de--}if(ne>X){if(ne<=de){const we=de+1,V=wede)for(;ne<=X;)Oe(z[ne],B,Y,!0),ne++;else{const we=ne,V=ne,oe=new Map;for(ne=V;ne<=de;ne++){const H=L[ne]=se?Er(L[ne]):ir(L[ne]);H.key!=null&&oe.set(H.key,ne)}let pe,ve=0;const $e=de-V+1;let Me=!1,rt=0;const lt=new Array($e);for(ne=0;ne<$e;ne++)lt[ne]=0;for(ne=we;ne<=X;ne++){const H=z[ne];if(ve>=$e){Oe(H,B,Y,!0);continue}let me;if(H.key!=null)me=oe.get(H.key);else for(pe=V;pe<=de;pe++)if(lt[pe-V]===0&&oo(H,L[pe])){me=pe;break}me===void 0?Oe(H,B,Y,!0):(lt[me-V]=ne+1,me>=rt?rt=me:Me=!0,v(H,L[me],K,null,B,Y,ae,le,se),ve++)}const ot=Me?lb(lt):Ro;for(pe=ot.length-1,ne=$e-1;ne>=0;ne--){const H=V+ne,me=L[H],Fe=H+1{const{el:Y,type:ae,transition:le,children:se,shapeFlag:ne}=z;if(ne&6){Te(z.component.subTree,L,K,Q);return}if(ne&128){z.suspense.move(L,K,Q);return}if(ne&64){ae.move(z,L,K,Ce);return}if(ae===nt){o(Y,L,K);for(let X=0;Xle.enter(Y),B);else{const{leave:X,delayLeave:de,afterLeave:we}=le,V=()=>o(Y,L,K),oe=()=>{X(Y,()=>{V(),we&&we()})};de?de(Y,V,oe):oe()}else o(Y,L,K)},Oe=(z,L,K,Q=!1,B=!1)=>{const{type:Y,props:ae,ref:le,children:se,dynamicChildren:ne,shapeFlag:J,patchFlag:X,dirs:de}=z;if(le!=null&&yl(le,null,K,z,!0),J&256){L.ctx.deactivate(z);return}const we=J&1&&de,V=!gl(z);let oe;if(V&&(oe=ae&&ae.onVnodeBeforeUnmount)&&nr(oe,L,z),J&6)fe(z.component,K,Q);else{if(J&128){z.suspense.unmount(K,Q);return}we&&to(z,null,L,"beforeUnmount"),J&64?z.type.remove(z,L,K,B,Ce,Q):ne&&(Y!==nt||X>0&&X&64)?ee(ne,L,K,!1,!0):(Y===nt&&X&(128|256)||!B&&J&16)&&ee(se,L,K),Q&&Re(z)}(V&&(oe=ae&&ae.onVnodeUnmounted)||we)&&zt(()=>{oe&&nr(oe,L,z),we&&to(z,null,L,"unmounted")},K)},Re=z=>{const{type:L,el:K,anchor:Q,transition:B}=z;if(L===nt){Z(K,Q);return}if(L===kl){x(z);return}const Y=()=>{n(K),B&&!B.persisted&&B.afterLeave&&B.afterLeave()};if(z.shapeFlag&1&&B&&!B.persisted){const{leave:ae,delayLeave:le}=B,se=()=>ae(K,Y);le?le(z.el,Y,se):se()}else Y()},Z=(z,L)=>{let K;for(;z!==L;)K=h(z),n(z),z=K;n(L)},fe=(z,L,K)=>{const{bum:Q,scope:B,update:Y,subTree:ae,um:le}=z;Q&&Za(Q),B.stop(),Y&&(Y.active=!1,Oe(ae,z,L,K)),le&&zt(le,L),zt(()=>{z.isUnmounted=!0},L),L&&L.pendingBranch&&!L.isUnmounted&&z.asyncDep&&!z.asyncResolved&&z.suspenseId===L.pendingId&&(L.deps--,L.deps===0&&L.resolve())},ee=(z,L,K,Q=!1,B=!1,Y=0)=>{for(let ae=Y;aez.shapeFlag&6?xe(z.component.subTree):z.shapeFlag&128?z.suspense.next():h(z.anchor||z.el),ie=(z,L,K)=>{z==null?L._vnode&&Oe(L._vnode,null,null,!0):v(L._vnode||null,z,L,null,null,null,K),Zd(),L._vnode=z},Ce={p:v,um:Oe,m:Te,r:Re,mt:U,mc:$,pc:re,pbc:D,n:xe,o:e};let te,ge;return t&&([te,ge]=t(Ce)),{render:ie,hydrate:te,createApp:nb(ie,te)}}function yl(e,t,r,o,n=!1){if(Le(e)){e.forEach((h,g)=>yl(h,t&&(Le(t)?t[g]:t),r,o,n));return}if(gl(o)&&!n)return;const i=o.shapeFlag&4?Rl(o.component)||o.component.proxy:o.el,a=n?null:i,{i:l,r:s}=e,c=t&&t.r,d=l.refs===Je?l.refs={}:l.refs,u=l.setupState;if(c!=null&&c!==s&&(xt(c)?(d[c]=null,He(u,c)&&(u[c]=null)):Rt(c)&&(c.value=null)),xt(s)){const h=()=>{d[s]=a,He(u,s)&&(u[s]=a)};a?(h.id=-1,zt(h,r)):h()}else if(Rt(s)){const h=()=>{s.value=a};a?(h.id=-1,zt(h,r)):h()}else Ne(s)&&Mr(s,l,12,[a,d])}function nr(e,t,r,o=null){Kt(e,t,7,[r,o])}function wl(e,t,r=!1){const o=e.children,n=t.children;if(Le(o)&&Le(n))for(let i=0;i>1,e[r[l]]0&&(t[o]=r[i-1]),r[i]=o)}}for(i=r.length,a=r[i-1];i-- >0;)r[i]=a,a=t[a];return r}const sb=e=>e.__isTeleport,Ln=e=>e&&(e.disabled||e.disabled===""),Id=e=>typeof SVGElement!="undefined"&&e instanceof SVGElement,Cl=(e,t)=>{const r=e&&e.to;return xt(r)?t?t(r):null:r},cb={__isTeleport:!0,process(e,t,r,o,n,i,a,l,s,c){const{mc:d,pc:u,pbc:h,o:{insert:g,querySelector:b,createText:y,createComment:v}}=c,p=Ln(t.props);let{shapeFlag:w,children:P,dynamicChildren:m}=t;if(e==null){const x=t.el=y(""),C=t.anchor=y("");g(x,r,o),g(C,r,o);const S=t.target=Cl(t.props,b),T=t.targetAnchor=y("");S&&(g(T,S),a=a||Id(S));const $=(M,D)=>{w&16&&d(P,M,D,n,i,a,l,s)};p?$(r,C):S&&$(S,T)}else{t.el=e.el;const x=t.anchor=e.anchor,C=t.target=e.target,S=t.targetAnchor=e.targetAnchor,T=Ln(e.props),$=T?r:C,M=T?x:S;if(a=a||Id(C),m?(h(e.dynamicChildren,m,$,n,i,a,l),wl(e,t,!0)):s||u(e,t,$,M,n,i,a,l,!1),p)T||Bi(t,r,x,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const D=t.target=Cl(t.props,b);D&&Bi(t,D,null,c,0)}else T&&Bi(t,C,S,c,1)}},remove(e,t,r,o,{um:n,o:{remove:i}},a){const{shapeFlag:l,children:s,anchor:c,targetAnchor:d,target:u,props:h}=e;if(u&&i(d),(a||!Ln(h))&&(i(c),l&16))for(let g=0;g0?ro||Ro:null,hb(),Di>0&&ro&&ro.push(e),e}function uO(e,t,r,o,n,i){return Dd(jd(e,t,r,o,n,i,!0))}function at(e,t,r,o,n){return Dd(he(e,t,r,o,n,!0))}function Ni(e){return e?e.__v_isVNode===!0:!1}function oo(e,t){return e.type===t.type&&e.key===t.key}const ji="__vInternal",Nd=({key:e})=>e!=null?e:null,Hi=({ref:e})=>e!=null?xt(e)||Rt(e)||Ne(e)?{i:At,r:e}:e:null;function jd(e,t=null,r=null,o=0,n=null,i=e===nt?0:1,a=!1,l=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Nd(t),ref:t&&Hi(t),scopeId:fd,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:o,dynamicProps:n,dynamicChildren:null,appContext:null};return l?(Pl(s,r),i&128&&e.normalize(s)):r&&(s.shapeFlag|=xt(r)?8:16),Di>0&&!a&&ro&&(s.patchFlag>0||i&6)&&s.patchFlag!==32&&ro.push(s),s}const he=pb;function pb(e,t=null,r=null,o=0,n=null,i=!1){if((!e||e===fb)&&(e=Vt),Ni(e)){const l=Or(e,t,!0);return r&&Pl(l,r),l}if(Pb(e)&&(e=e.__vccOpts),t){t=gb(t);let{class:l,style:s}=t;l&&!xt(l)&&(t.class=Ka(l)),pt(s)&&(ad(s)&&!Le(s)&&(s=bt({},s)),t.style=Va(s))}const a=xt(e)?1:Fm(e)?128:sb(e)?64:pt(e)?4:Ne(e)?2:0;return jd(e,t,r,o,n,a,i,!0)}function gb(e){return e?ad(e)||ji in e?bt({},e):e:null}function Or(e,t,r=!1){const{props:o,ref:n,patchFlag:i,children:a}=e,l=t?Zt(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Nd(l),ref:t&&t.ref?r&&n?Le(n)?n.concat(Hi(t)):[n,Hi(t)]:Hi(t):n,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==nt?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Or(e.ssContent),ssFallback:e.ssFallback&&Or(e.ssFallback),el:e.el,anchor:e.anchor}}function Eo(e=" ",t=0){return he(Sl,null,e,t)}function fO(e="",t=!1){return t?(it(),at(Vt,null,e)):he(Vt,null,e)}function ir(e){return e==null||typeof e=="boolean"?he(Vt):Le(e)?he(nt,null,e.slice()):typeof e=="object"?Er(e):he(Sl,null,String(e))}function Er(e){return e.el===null||e.memo?e:Or(e)}function Pl(e,t){let r=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(Le(t))r=16;else if(typeof t=="object")if(o&(1|64)){const n=t.default;n&&(n._c&&(n._d=!1),Pl(e,n()),n._c&&(n._d=!0));return}else{r=32;const n=t._;!n&&!(ji in t)?t._ctx=At:n===3&&At&&(At.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ne(t)?(t={default:t,_ctx:At},r=32):(t=String(t),o&64?(r=16,t=[Eo(t)]):r=8);e.children=t,e.shapeFlag|=r}function Zt(...e){const t={};for(let r=0;rt(a,l,void 0,i&&i[l]));else{const a=Object.keys(e);n=new Array(a.length);for(let l=0,s=a.length;lNi(t)?!(t.type===Vt||t.type===nt&&!Hd(t.children)):!0)?e:null}const $l=e=>e?Wd(e)?Rl(e)||e.proxy:$l(e.parent):null,Wi=bt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>$l(e.parent),$root:e=>$l(e.root),$emit:e=>e.emit,$options:e=>Cd(e),$forceUpdate:e=>()=>Gd(e.update),$nextTick:e=>Ct.bind(e.proxy),$watch:e=>Ob.bind(e)}),vb={get({_:e},t){const{ctx:r,setupState:o,data:n,props:i,accessCache:a,type:l,appContext:s}=e;let c;if(t[0]!=="$"){const g=a[t];if(g!==void 0)switch(g){case 0:return o[t];case 1:return n[t];case 3:return r[t];case 2:return i[t]}else{if(o!==Je&&He(o,t))return a[t]=0,o[t];if(n!==Je&&He(n,t))return a[t]=1,n[t];if((c=e.propsOptions[0])&&He(c,t))return a[t]=2,i[t];if(r!==Je&&He(r,t))return a[t]=3,r[t];vl&&(a[t]=4)}}const d=Wi[t];let u,h;if(d)return t==="$attrs"&&It(e,"get",t),d(e);if((u=l.__cssModules)&&(u=u[t]))return u;if(r!==Je&&He(r,t))return a[t]=3,r[t];if(h=s.config.globalProperties,He(h,t))return h[t]},set({_:e},t,r){const{data:o,setupState:n,ctx:i}=e;if(n!==Je&&He(n,t))n[t]=r;else if(o!==Je&&He(o,t))o[t]=r;else if(He(e.props,t))return!1;return t[0]==="$"&&t.slice(1)in e?!1:(i[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:o,appContext:n,propsOptions:i}},a){let l;return r[a]!==void 0||e!==Je&&He(e,a)||t!==Je&&He(t,a)||(l=i[0])&&He(l,a)||He(o,a)||He(Wi,a)||He(n.config.globalProperties,a)}},mb=Md();let bb=0;function xb(e,t,r){const o=e.type,n=(t?t.appContext:e.appContext)||mb,i={uid:bb++,vnode:e,type:o,parent:t,appContext:n,root:null,next:null,subTree:null,update:null,scope:new Xv(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(n.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Pd(o,n),emitsOptions:ud(o,n),emit:null,emitted:null,propsDefaults:Je,inheritAttrs:o.inheritAttrs,ctx:Je,data:Je,props:Je,attrs:Je,slots:Je,refs:Je,setupState:Je,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=_m.bind(null,i),e.ce&&e.ce(i),i}let yt=null;const no=()=>yt||At,Mo=e=>{yt=e,e.scope.on()},io=()=>{yt&&yt.scope.off(),yt=null};function Wd(e){return e.vnode.shapeFlag&4}let Ui=!1;function yb(e,t=!1){Ui=t;const{props:r,children:o}=e.vnode,n=Wd(e);Jm(e,r,n,t),tb(e,o);const i=n?wb(e,t):void 0;return Ui=!1,i}function wb(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=cl(new Proxy(e.ctx,vb));const{setup:o}=r;if(o){const n=e.setupContext=o.length>1?Sb(e):null;Mo(e),_o();const i=Mr(o,e,0,[e.props,n]);if(Qr(),io(),Lc(i)){if(i.then(io,io),t)return i.then(a=>{Ud(e,a,t)}).catch(a=>{Vi(a,e,0)});e.asyncDep=i}else Ud(e,i,t)}else Kd(e,t)}function Ud(e,t,r){Ne(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:pt(t)&&(e.setupState=dd(t)),Kd(e,r)}let Vd;function Kd(e,t,r){const o=e.type;if(!e.render){if(!t&&Vd&&!o.render){const n=o.template;if(n){const{isCustomElement:i,compilerOptions:a}=e.appContext.config,{delimiters:l,compilerOptions:s}=o,c=bt(bt({isCustomElement:i,delimiters:l},a),s);o.render=Vd(n,c)}}e.render=o.render||Xt}Mo(e),_o(),qm(e),Qr(),io()}function Cb(e){return new Proxy(e.attrs,{get(t,r){return It(e,"get","$attrs"),t[r]}})}function Sb(e){const t=o=>{e.exposed=o||{}};let r;return{get attrs(){return r||(r=Cb(e))},slots:e.slots,emit:e.emit,expose:t}}function Rl(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(dd(cl(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Wi)return Wi[r](e)}}))}function kb(e){return Ne(e)&&e.displayName||e.name}function Pb(e){return Ne(e)&&"__vccOpts"in e}function Mr(e,t,r,o){let n;try{n=o?e(...o):e()}catch(i){Vi(i,t,r)}return n}function Kt(e,t,r,o){if(Ne(e)){const i=Mr(e,t,r,o);return i&&Lc(i)&&i.catch(a=>{Vi(a,t,r)}),i}const n=[];for(let i=0;i>>1;Wn(Bt[o])vr&&Bt.splice(t,1)}function Xd(e,t,r,o){Le(e)?r.push(...e):(!t||!t.includes(e,e.allowRecurse?o+1:o))&&r.push(e),Yd()}function zb(e){Xd(e,jn,Nn,Io)}function _b(e){Xd(e,Ir,Hn,Ao)}function Ol(e,t=null){if(Nn.length){for(_l=t,jn=[...new Set(Nn)],Nn.length=0,Io=0;IoWn(r)-Wn(o)),Ao=0;Aoe.id==null?1/0:e.id;function Jd(e){Tl=!1,Ki=!0,Ol(e),Bt.sort((r,o)=>Wn(r)-Wn(o));const t=Xt;try{for(vr=0;vre.value,c=!!e._shallow):Oo(e)?(s=()=>e,o=!0):Le(e)?(d=!0,c=e.some(Oo),s=()=>e.map(p=>{if(Rt(p))return p.value;if(Oo(p))return ao(p);if(Ne(p))return Mr(p,l,2)})):Ne(e)?t?s=()=>Mr(e,l,2):s=()=>{if(!(l&&l.isUnmounted))return u&&u(),Kt(e,l,3,[h])}:s=Xt,t&&o){const p=s;s=()=>ao(p())}let u,h=p=>{u=v.onStop=()=>{Mr(p,l,4)}};if(Ui)return h=Xt,t?r&&Kt(t,l,3,[s(),d?[]:void 0,h]):s(),Xt;let g=d?[]:Qd;const b=()=>{if(!!v.active)if(t){const p=v.run();(o||c||(d?p.some((w,P)=>On(w,g[P])):On(p,g)))&&(u&&u(),Kt(t,l,3,[p,g===Qd?void 0:g,h]),g=p)}else v.run()};b.allowRecurse=!!t;let y;n==="sync"?y=b:n==="post"?y=()=>zt(b,l&&l.suspense):y=()=>{!l||l.isMounted?zb(b):b()};const v=new rl(s,y);return t?r?b():g=v.run():n==="post"?zt(v.run.bind(v),l&&l.suspense):v.run(),()=>{v.stop(),l&&l.scope&&Fc(l.scope.effects,v)}}function Ob(e,t,r){const o=this.proxy,n=xt(e)?e.includes(".")?eu(o,e):()=>o[e]:e.bind(o,o);let i;Ne(t)?i=t:(i=t.handler,r=t);const a=yt;Mo(this);const l=El(n,i.bind(o),r);return a?Mo(a):io(),l}function eu(e,t){const r=t.split(".");return()=>{let o=e;for(let n=0;n{ao(r,t)});else if(Nc(e))for(const r in e)ao(e[r],t);return e}function f(e,t,r){const o=arguments.length;return o===2?pt(t)&&!Le(t)?Ni(t)?he(e,null,[t]):he(e,t):he(e,null,t):(o>3?r=Array.prototype.slice.call(arguments,2):o===3&&Ni(r)&&(r=[r]),he(e,t,r))}const Eb="3.2.20",Mb="http://www.w3.org/2000/svg",Fo=typeof document!="undefined"?document:null,tu=new Map,Ib={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,o)=>{const n=t?Fo.createElementNS(Mb,e):Fo.createElement(e,r?{is:r}:void 0);return e==="select"&&o&&o.multiple!=null&&n.setAttribute("multiple",o.multiple),n},createText:e=>Fo.createTextNode(e),createComment:e=>Fo.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Fo.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,r,o){const n=r?r.previousSibling:t.lastChild;let i=tu.get(e);if(!i){const a=Fo.createElement("template");if(a.innerHTML=o?`${e}`:e,i=a.content,o){const l=i.firstChild;for(;l.firstChild;)i.appendChild(l.firstChild);i.removeChild(l)}tu.set(e,i)}return t.insertBefore(i.cloneNode(!0),r),[n?n.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}};function Ab(e,t,r){const o=e._vtc;o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}function Fb(e,t,r){const o=e.style,n=o.display;if(!r)e.removeAttribute("style");else if(xt(r))t!==r&&(o.cssText=r);else{for(const i in r)Ml(o,i,r[i]);if(t&&!xt(t))for(const i in t)r[i]==null&&Ml(o,i,"")}"_vod"in e&&(o.display=n)}const ru=/\s*!important$/;function Ml(e,t,r){if(Le(r))r.forEach(o=>Ml(e,t,o));else if(t.startsWith("--"))e.setProperty(t,r);else{const o=Bb(e,t);ru.test(r)?e.setProperty(Yr(o),r.replace(ru,""),"important"):e[o]=r}}const ou=["Webkit","Moz","ms"],Il={};function Bb(e,t){const r=Il[t];if(r)return r;let o=tr(t);if(o!=="filter"&&o in e)return Il[t]=o;o=Si(o);for(let n=0;ndocument.createEvent("Event").timeStamp&&(qi=()=>performance.now());const e=navigator.userAgent.match(/firefox\/(\d+)/i);iu=!!(e&&Number(e[1])<=53)}let Al=0;const Nb=Promise.resolve(),jb=()=>{Al=0},Hb=()=>Al||(Nb.then(jb),Al=qi());function Wb(e,t,r,o){e.addEventListener(t,r,o)}function Ub(e,t,r,o){e.removeEventListener(t,r,o)}function Vb(e,t,r,o,n=null){const i=e._vei||(e._vei={}),a=i[t];if(o&&a)a.value=o;else{const[l,s]=Kb(t);if(o){const c=i[t]=qb(o,n);Wb(e,l,c,s)}else a&&(Ub(e,l,a,s),i[t]=void 0)}}const au=/(?:Once|Passive|Capture)$/;function Kb(e){let t;if(au.test(e)){t={};let r;for(;r=e.match(au);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[Yr(e.slice(2)),t]}function qb(e,t){const r=o=>{const n=o.timeStamp||qi();(iu||n>=r.attached-1)&&Kt(Gb(o,r.value),t,5,[o])};return r.value=e,r.attached=Hb(),r}function Gb(e,t){if(Le(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(o=>n=>!n._stopped&&o(n))}else return t}const lu=/^on[a-z]/,Yb=(e,t,r,o,n=!1,i,a,l,s)=>{t==="class"?Ab(e,o,n):t==="style"?Fb(e,r,o):xi(t)?qa(t)||Vb(e,t,r,o,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Xb(e,t,o,n))?Db(e,t,o,i,a,l,s):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Lb(e,t,o,n))};function Xb(e,t,r,o){return o?!!(t==="innerHTML"||t==="textContent"||t in e&&lu.test(t)&&Ne(r)):t==="spellcheck"||t==="draggable"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||lu.test(t)&&xt(r)?!1:t in e}const Ar="transition",Un="animation",ht=(e,{slots:t})=>f(gd,du(e),t);ht.displayName="Transition";const su={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Zb=ht.props=bt({},gd.props,su),lo=(e,t=[])=>{Le(e)?e.forEach(r=>r(...t)):e&&e(...t)},cu=e=>e?Le(e)?e.some(t=>t.length>1):e.length>1:!1;function du(e){const t={};for(const _ in e)_ in su||(t[_]=e[_]);if(e.css===!1)return t;const{name:r="v",type:o,duration:n,enterFromClass:i=`${r}-enter-from`,enterActiveClass:a=`${r}-enter-active`,enterToClass:l=`${r}-enter-to`,appearFromClass:s=i,appearActiveClass:c=a,appearToClass:d=l,leaveFromClass:u=`${r}-leave-from`,leaveActiveClass:h=`${r}-leave-active`,leaveToClass:g=`${r}-leave-to`}=e,b=Jb(n),y=b&&b[0],v=b&&b[1],{onBeforeEnter:p,onEnter:w,onEnterCancelled:P,onLeave:m,onLeaveCancelled:x,onBeforeAppear:C=p,onAppear:S=w,onAppearCancelled:T=P}=t,$=(_,I,G)=>{so(_,I?d:l),so(_,I?c:a),G&&G()},M=(_,I)=>{so(_,g),so(_,h),I&&I()},D=_=>(I,G)=>{const U=_?S:w,N=()=>$(I,_,G);lo(U,[I,N]),uu(()=>{so(I,_?s:i),br(I,_?d:l),cu(U)||fu(I,o,y,N)})};return bt(t,{onBeforeEnter(_){lo(p,[_]),br(_,i),br(_,a)},onBeforeAppear(_){lo(C,[_]),br(_,s),br(_,c)},onEnter:D(!1),onAppear:D(!0),onLeave(_,I){const G=()=>M(_,I);br(_,u),vu(),br(_,h),uu(()=>{so(_,u),br(_,g),cu(m)||fu(_,o,v,G)}),lo(m,[_,G])},onEnterCancelled(_){$(_,!1),lo(P,[_])},onAppearCancelled(_){$(_,!0),lo(T,[_])},onLeaveCancelled(_){M(_),lo(x,[_])}})}function Jb(e){if(e==null)return null;if(pt(e))return[Fl(e.enter),Fl(e.leave)];{const t=Fl(e);return[t,t]}}function Fl(e){return jc(e)}function br(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e._vtc||(e._vtc=new Set)).add(t)}function so(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const{_vtc:r}=e;r&&(r.delete(t),r.size||(e._vtc=void 0))}function uu(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Qb=0;function fu(e,t,r,o){const n=e._endId=++Qb,i=()=>{n===e._endId&&o()};if(r)return setTimeout(i,r);const{type:a,timeout:l,propCount:s}=hu(e,t);if(!a)return o();const c=a+"end";let d=0;const u=()=>{e.removeEventListener(c,h),i()},h=g=>{g.target===e&&++d>=s&&u()};setTimeout(()=>{d(r[b]||"").split(", "),n=o(Ar+"Delay"),i=o(Ar+"Duration"),a=pu(n,i),l=o(Un+"Delay"),s=o(Un+"Duration"),c=pu(l,s);let d=null,u=0,h=0;t===Ar?a>0&&(d=Ar,u=a,h=i.length):t===Un?c>0&&(d=Un,u=c,h=s.length):(u=Math.max(a,c),d=u>0?a>c?Ar:Un:null,h=d?d===Ar?i.length:s.length:0);const g=d===Ar&&/\b(transform|all)(,|$)/.test(r[Ar+"Property"]);return{type:d,timeout:u,propCount:h,hasTransform:g}}function pu(e,t){for(;e.lengthgu(r)+gu(e[o])))}function gu(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function vu(){return document.body.offsetHeight}const mu=new WeakMap,bu=new WeakMap,e0={name:"TransitionGroup",props:bt({},Zb,{tag:String,moveClass:String}),setup(e,{slots:t}){const r=no(),o=pd();let n,i;return xd(()=>{if(!n.length)return;const a=e.moveClass||`${e.name||"v"}-move`;if(!i0(n[0].el,r.vnode.el,a))return;n.forEach(r0),n.forEach(o0);const l=n.filter(n0);vu(),l.forEach(s=>{const c=s.el,d=c.style;br(c,a),d.transform=d.webkitTransform=d.transitionDuration="";const u=c._moveCb=h=>{h&&h.target!==c||(!h||/transform$/.test(h.propertyName))&&(c.removeEventListener("transitionend",u),c._moveCb=null,so(c,a))};c.addEventListener("transitionend",u)})}),()=>{const a=We(e),l=du(a);let s=a.tag||nt;n=i,i=t.default?pl(t.default()):[];for(let c=0;c{a.split(/\s+/).forEach(l=>l&&o.classList.remove(l))}),r.split(/\s+/).forEach(a=>a&&o.classList.add(a)),o.style.display="none";const n=t.nodeType===1?t:t.parentNode;n.appendChild(o);const{hasTransform:i}=hu(o);return n.removeChild(o),i}const a0=["ctrl","shift","alt","meta"],l0={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>a0.some(r=>e[`${r}Key`]&&!t.includes(r))},pO=(e,t)=>(r,...o)=>{for(let n=0;nr=>{if(!("key"in r))return;const o=Yr(r.key);if(t.some(n=>n===o||s0[n]===o))return e(r)},Bo={beforeMount(e,{value:t},{transition:r}){e._vod=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):Vn(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:o}){!t!=!r&&(o?t?(o.beforeEnter(e),Vn(e,!0),o.enter(e)):o.leave(e,()=>{Vn(e,!1)}):Vn(e,t))},beforeUnmount(e,{value:t}){Vn(e,t)}};function Vn(e,t){e.style.display=t?e._vod:"none"}const c0=bt({patchProp:Yb},Ib);let xu;function d0(){return xu||(xu=ib(c0))}const vO=(...e)=>{const t=d0().createApp(...e),{mount:r}=t;return t.mount=o=>{const n=u0(o);if(!n)return;const i=t._component;!Ne(i)&&!i.render&&!i.template&&(i.template=n.innerHTML),n.innerHTML="";const a=r(n,!1,n instanceof SVGElement);return n instanceof Element&&(n.removeAttribute("v-cloak"),n.setAttribute("data-v-app","")),a},t};function u0(e){return xt(e)?document.querySelector(e):e}let Gi=[];const yu=new WeakMap;function f0(){Gi.forEach(e=>e(...yu.get(e))),Gi=[]}function Kn(e,...t){yu.set(e,t),!Gi.includes(e)&&Gi.push(e)===1&&requestAnimationFrame(f0)}function Yi(e,t){let{target:r}=e;for(;r;){if(r.dataset&&r.dataset[t]!==void 0)return!0;r=r.parentElement}return!1}function Ot(e){return typeof e=="string"?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function Et(e){if(e!=null)return typeof e=="number"?`${e}px`:e.endsWith("px")?e:`${e}px`}function Lo(e,t){const r=e.trim().split(/\s+/g),o={top:r[0]};switch(r.length){case 1:o.right=r[0],o.bottom=r[0],o.left=r[0];break;case 2:o.right=r[1],o.left=r[1],o.bottom=r[0];break;case 3:o.right=r[1],o.bottom=r[2],o.left=r[1];break;case 4:o.right=r[1],o.bottom=r[2],o.left=r[3];break;default:throw new Error("[seemly/getMargin]:"+e+" is not a valid value.")}return t===void 0?o:o[t]}function h0(e,t){const[r,o]=e.split(" ");return t?t==="row"?r:o:{row:r,col:o||r}}var wu={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"};const Do="^\\s*",No="\\s*$",co="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",uo="([0-9A-Fa-f])",fo="([0-9A-Fa-f]{2})",p0=new RegExp(`${Do}rgb\\s*\\(${co},${co},${co}\\)${No}`),g0=new RegExp(`${Do}rgba\\s*\\(${co},${co},${co},${co}\\)${No}`),v0=new RegExp(`${Do}#${uo}${uo}${uo}${No}`),m0=new RegExp(`${Do}#${fo}${fo}${fo}${No}`),b0=new RegExp(`${Do}#${uo}${uo}${uo}${uo}${No}`),x0=new RegExp(`${Do}#${fo}${fo}${fo}${fo}${No}`);function Mt(e){return parseInt(e,16)}function ho(e){try{let t;if(t=m0.exec(e))return[Mt(t[1]),Mt(t[2]),Mt(t[3]),1];if(t=p0.exec(e))return[$t(t[1]),$t(t[5]),$t(t[9]),1];if(t=g0.exec(e))return[$t(t[1]),$t(t[5]),$t(t[9]),qn(t[13])];if(t=v0.exec(e))return[Mt(t[1]+t[1]),Mt(t[2]+t[2]),Mt(t[3]+t[3]),1];if(t=x0.exec(e))return[Mt(t[1]),Mt(t[2]),Mt(t[3]),qn(Mt(t[4])/255)];if(t=b0.exec(e))return[Mt(t[1]+t[1]),Mt(t[2]+t[2]),Mt(t[3]+t[3]),qn(Mt(t[4]+t[4])/255)];if(e in wu)return ho(wu[e]);throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function y0(e){return e>1?1:e<0?0:e}function Bl(e,t,r,o){return`rgba(${$t(e)}, ${$t(t)}, ${$t(r)}, ${y0(o)})`}function Ll(e,t,r,o,n){return $t((e*t*(1-o)+r*o)/n)}function Ye(e,t){Array.isArray(e)||(e=ho(e)),Array.isArray(t)||(t=ho(t));const r=e[3],o=t[3],n=qn(r+o-r*o);return Bl(Ll(e[0],r,t[0],o,n),Ll(e[1],r,t[1],o,n),Ll(e[2],r,t[2],o,n),n)}function ze(e,t){const[r,o,n,i=1]=Array.isArray(e)?e:ho(e);return t.alpha?Bl(r,o,n,t.alpha):Bl(r,o,n,i)}function Xi(e,t){const[r,o,n,i=1]=Array.isArray(e)?e:ho(e),{lightness:a=1,alpha:l=1}=t;return w0([r*a,o*a,n*a,i*l])}function qn(e){const t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function $t(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function w0(e){const[t,r,o]=e;return 3 in e?`rgba(${$t(t)}, ${$t(r)}, ${$t(o)}, ${qn(e[3])})`:`rgba(${$t(t)}, ${$t(r)}, ${$t(o)}, 1)`}function ar(e=8){return Math.random().toString(16).slice(2,2+e)}function C0(e,t){const r=[];for(let o=0;or(n):()=>{const{size:l}=e;if(l)return l;if(n){const{mergedSize:s}=n;if(s.value!==void 0)return s.value}return t}),a=R(o?()=>o(n):()=>{const{disabled:l}=e;return l!==void 0?l:n?n.disabled.value:!1});return Ft(()=>{n&&n.restoreValidation()}),{mergedSizeRef:i,mergedDisabledRef:a,nTriggerFormBlur(){n&&n.handleContentBlur()},nTriggerFormChange(){n&&n.handleContentChange()},nTriggerFormFocus(){n&&n.handleContentFocus()},nTriggerFormInput(){n&&n.handleContentInput()}}}var S0=typeof global=="object"&&global&&global.Object===Object&&global,Cu=S0,k0=typeof self=="object"&&self&&self.Object===Object&&self,P0=Cu||k0||Function("return this")(),po=P0,$0=po.Symbol,jo=$0,Su=Object.prototype,R0=Su.hasOwnProperty,T0=Su.toString,Gn=jo?jo.toStringTag:void 0;function z0(e){var t=R0.call(e,Gn),r=e[Gn];try{e[Gn]=void 0;var o=!0}catch{}var n=T0.call(e);return o&&(t?e[Gn]=r:delete e[Gn]),n}var _0=Object.prototype,O0=_0.toString;function E0(e){return O0.call(e)}var M0="[object Null]",I0="[object Undefined]",ku=jo?jo.toStringTag:void 0;function Yn(e){return e==null?e===void 0?I0:M0:ku&&ku in Object(e)?z0(e):E0(e)}function Ho(e){return e!=null&&typeof e=="object"}var A0="[object Symbol]";function Zi(e){return typeof e=="symbol"||Ho(e)&&Yn(e)==A0}function F0(e,t){for(var r=-1,o=e==null?0:e.length,n=Array(o);++r0){if(++t>=g1)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function x1(e){return function(){return e}}var y1=function(){try{var e=Hl(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Ji=y1,w1=Ji?function(e,t){return Ji(e,"toString",{configurable:!0,enumerable:!1,value:x1(t),writable:!0})}:_u,C1=w1,S1=b1(C1),k1=S1,P1=9007199254740991,$1=/^(?:0|[1-9]\d*)$/;function Mu(e,t){var r=typeof e;return t=t==null?P1:t,!!t&&(r=="number"||r!="symbol"&&$1.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=M1}function Ul(e){return e!=null&&Au(e.length)&&!Nl(e)}function I1(e,t,r){if(!Jt(r))return!1;var o=typeof t;return(o=="number"?Ul(r)&&Mu(t,r.length):o=="string"&&t in r)?Qi(r[t],e):!1}function A1(e){return E1(function(t,r){var o=-1,n=r.length,i=n>1?r[n-1]:void 0,a=n>2?r[2]:void 0;for(i=e.length>3&&typeof i=="function"?(n--,i):void 0,a&&I1(r[0],r[1],a)&&(i=n<3?void 0:i,n=1),t=Object(t);++o-1}function Xx(e,t){var r=this.__data__,o=ea(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}function yr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++tn?0:n+t),r=r>n?n:r,r<0&&(r+=n),n=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(n);++o=o?e:Cy(e,t,r)}var ky="\\ud800-\\udfff",Py="\\u0300-\\u036f",$y="\\ufe20-\\ufe2f",Ry="\\u20d0-\\u20ff",Ty=Py+$y+Ry,zy="\\ufe0e\\ufe0f",_y="\\u200d",Oy=RegExp("["+_y+ky+Ty+zy+"]");function Ju(e){return Oy.test(e)}function Ey(e){return e.split("")}var Qu="\\ud800-\\udfff",My="\\u0300-\\u036f",Iy="\\ufe20-\\ufe2f",Ay="\\u20d0-\\u20ff",Fy=My+Iy+Ay,By="\\ufe0e\\ufe0f",Ly="["+Qu+"]",Yl="["+Fy+"]",Xl="\\ud83c[\\udffb-\\udfff]",Dy="(?:"+Yl+"|"+Xl+")",ef="[^"+Qu+"]",tf="(?:\\ud83c[\\udde6-\\uddff]){2}",rf="[\\ud800-\\udbff][\\udc00-\\udfff]",Ny="\\u200d",of=Dy+"?",nf="["+By+"]?",jy="(?:"+Ny+"(?:"+[ef,tf,rf].join("|")+")"+nf+of+")*",Hy=nf+of+jy,Wy="(?:"+[ef+Yl+"?",Yl,tf,rf,Ly].join("|")+")",Uy=RegExp(Xl+"(?="+Xl+")|"+Wy+Hy,"g");function Vy(e){return e.match(Uy)||[]}function Ky(e){return Ju(e)?Vy(e):Ey(e)}function qy(e){return function(t){t=Yu(t);var r=Ju(t)?Ky(t):void 0,o=r?r[0]:t.charAt(0),n=r?Sy(r,1).join(""):t.slice(1);return o[e]()+n}}var Gy=qy("toUpperCase"),Yy=Gy;function Xy(){this.__data__=new yr,this.size=0}function Zy(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Jy(e){return this.__data__.get(e)}function Qy(e){return this.__data__.has(e)}var ew=200;function tw(e,t){var r=this.__data__;if(r instanceof yr){var o=r.__data__;if(!Gu||o.length=t||S<0||u&&T>=i}function p(){var C=Zl();if(v(C))return w(C);l=setTimeout(p,y(C))}function w(C){return l=void 0,h&&o?g(C):(o=n=void 0,a)}function P(){l!==void 0&&clearTimeout(l),c=0,o=s=n=l=void 0}function m(){return l===void 0?a:w(Zl())}function x(){var C=Zl(),S=v(C);if(o=arguments,n=this,s=C,S){if(l===void 0)return b(s);if(u)return clearTimeout(l),l=setTimeout(p,t),g(s)}return l===void 0&&(l=setTimeout(p,t)),a}return x.cancel=P,x.flush=m,x}function Jl(e,t,r){(r!==void 0&&!Qi(e[t],r)||r===void 0&&!(t in e))&&Wl(e,t,r)}function vw(e){return Ho(e)&&Ul(e)}function Ql(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function mw(e){return _1(e,qu(e))}function bw(e,t,r,o,n,i,a){var l=Ql(e,r),s=Ql(t,r),c=a.get(s);if(c){Jl(e,r,c);return}var d=i?i(l,s,r+"",e,t,a):void 0,u=d===void 0;if(u){var h=Wo(s),g=!h&&Hu(s),b=!h&&!g&&Ku(s);d=s,h||g||b?Wo(l)?d=l:vw(l)?d=p1(l):g?(u=!1,d=ow(s,!0)):b?(u=!1,d=aw(s,!0)):d=[]:wy(s)||Vl(s)?(d=l,Vl(l)?d=mw(l):(!Jt(l)||Nl(l))&&(d=lw(s))):u=!1}u&&(a.set(s,d),n(d,s,o,i,a),a.delete(s)),Jl(e,r,d)}function uf(e,t,r,o,n){e!==t&&dw(t,function(i,a){if(n||(n=new Uo),Jt(i))bw(e,t,a,r,uf,o,n);else{var l=o?o(Ql(e,a),i,a+"",e,t,n):void 0;l===void 0&&(l=i),Jl(e,a,l)}},qu)}var xw=A1(function(e,t,r){uf(e,t,r)}),Jn=xw,yw="Expected a function";function ww(e,t,r){var o=!0,n=!0;if(typeof e!="function")throw new TypeError(yw);return Jt(r)&&(o="leading"in r?!!r.leading:o,n="trailing"in r?!!r.trailing:n),gw(e,t,{leading:o,maxWait:t,trailing:n})}const ff=Symbol("@css-render/vue3-ssr");function Cw(e,t){return``}function Sw(e,t){const r=Pe(ff,null);if(r===null){console.error("[css-render/vue3-ssr]: no ssr context found.");return}const{styles:o,ids:n}=r;n.has(e)||o!==null&&(n.add(e),o.push(Cw(e,t)))}function Vo(){const e=Pe(ff,null);if(e!==null)return{adapter:Sw,context:e}}function kw(e){let t=0;for(let r=0;r{let n=kw(o);if(n){if(n===1){e.forEach(a=>{r.push(o.replace("&",a))});return}}else{e.forEach(a=>{r.push((a&&a+" ")+o)});return}let i=[o];for(;n--;){const a=[];i.forEach(l=>{e.forEach(s=>{a.push(l.replace("&",s))})}),i=a}i.forEach(a=>r.push(a))}),r}function Rw(e,t){const r=[];return t.split(hf).forEach(o=>{e.forEach(n=>{r.push((n&&n+" ")+o)})}),r}function Tw(e){let t=[""];return e.forEach(r=>{r=r&&r.trim(),!!r&&(r.includes("&")?t=$w(t,r):t=Rw(t,r))}),t.join(", ").replace(Pw," ")}const zw=/[A-Z]/g;function pf(e){return e.replace(zw,t=>"-"+t.toLowerCase())}function _w(e,t=" "){return typeof e=="object"&&e!==null?` { +`+Object.entries(e).map(r=>t+` ${pf(r[0])}: ${r[1]};`).join(` +`)+` +`+t+"}":`: ${e};`}function Ow(e,t,r){return typeof e=="function"?e({context:t.context,props:r}):e}function gf(e,t,r,o){if(!t)return"";const n=Ow(t,r,o);if(!n)return"";if(typeof n=="string")return`${e} { +${n} +}`;const i=Object.keys(n);if(i.length===0)return r.config.keepEmptyBlock?e+` { +}`:"";const a=e?[e+" {"]:[];return i.forEach(l=>{const s=n[l];if(l==="raw"){a.push(` +`+s+` +`);return}l=pf(l),s!=null&&a.push(` ${l}${_w(s)}`)}),e&&a.push("}"),a.join(` +`)}function es(e,t,r){!e||e.forEach(o=>{if(Array.isArray(o))es(o,t,r);else if(typeof o=="function"){const n=o(t);Array.isArray(n)?es(n,t,r):n&&r(n)}else o&&r(o)})}function vf(e,t,r,o,n,i){const a=e.$;!a||typeof a=="string"?t.push(a):typeof a=="function"?t.push(a({context:o.context,props:n})):(a.before&&a.before(o.context),!a.$||typeof a.$=="string"?t.push(a.$):a.$&&t.push(a.$({context:o.context,props:n})));const l=Tw(t),s=gf(l,e.props,o,n);i&&s&&i.insertRule(s),!i&&s.length&&r.push(s),e.children&&es(e.children,{context:o.context,props:n},c=>{if(typeof c=="string"){const d=gf(l,{raw:c},o,n);i?i.insertRule(d):r.push(d)}else vf(c,t,r,o,n,i)}),t.pop(),a&&a.after&&a.after(o.context)}function mf(e,t,r,o=!1){const n=[];return vf(e,[],n,t,r,o?e.instance.__styleSheet:void 0),o?"":n.join(` + +`)}function Ew(e){for(var t=0,r,o=0,n=e.length;n>=4;++o,n-=4)r=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(n){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function bf(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function ra(e){return document.querySelector(`style[cssr-id="${e}"]`)}function Mw(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}typeof window!="undefined"&&(window.__cssrContext={});function Iw(e,t,r){const{els:o}=t;if(r===void 0)o.forEach(bf),t.els=[];else{const n=ra(r);n&&o.includes(n)&&(bf(n),t.els=o.filter(i=>i!==n))}}function Aw(e,t){e.push(t)}function Fw(e,t,r,o,n,i,a,l){var s;if(i&&!l){if(r===void 0){console.error("[css-render/mount]: `id` is required in `slient` mode.");return}const h=window.__cssrContext;h[r]||(h[r]=!0,mf(t,e,o,i));return}let c;if(r===void 0&&(c=t.render(o),r=Ew(c)),l){l.adapter(r,c!=null?c:t.render(o));return}const d=ra(r);if(d!==null&&!a)return d;const u=d!=null?d:Mw(r);if(c===void 0&&(c=t.render(o)),u.textContent=c,d!==null)return d;if(n){const h=(s=document.head.querySelector("style, link"))!==null&&s!==void 0?s:null;document.head.insertBefore(u,h)}else document.head.appendChild(u);return Aw(t.els,u),d!=null?d:u}function Bw(e){return mf(this,this.instance,e)}function Lw(e={}){const{id:t,ssr:r,props:o,head:n=!1,slient:i=!1,force:a=!1}=e;return Fw(this.instance,this,t,o,n,i,a,r)}function Dw(e={}){const{id:t}=e;Iw(this.instance,this,t)}const oa=function(e,t,r,o){return{instance:e,$:t,props:r,children:o,els:[],render:Bw,mount:Lw,unmount:Dw}},Nw=function(e,t,r,o){return Array.isArray(t)?oa(e,{$:null},null,t):Array.isArray(r)?oa(e,t,null,r):Array.isArray(o)?oa(e,t,r,o):oa(e,t,r,null)};function xf(e={}){let t=null;const r={c:(...o)=>Nw(r,...o),use:(o,...n)=>o.install(r,...n),find:ra,context:{},config:e,get __styleSheet(){if(!t){const o=document.createElement("style");return document.head.appendChild(o),t=document.styleSheets[document.styleSheets.length-1],t}return t}};return r}function jw(e,t){if(e===void 0)return!1;if(t){const{context:{ids:r}}=t;return r.has(e)}return ra(e)!==null}function Hw(e){let t=".",r="__",o="--",n;if(e){let b=e.blockPrefix;b&&(t=b),b=e.elementPrefix,b&&(r=b),b=e.modifierPrefix,b&&(o=b)}const i={install(b){n=b.c;const y=b.context;y.bem={},y.bem.b=null,y.bem.els=null}};function a(b){let y,v;return{before(p){y=p.bem.b,v=p.bem.els,p.bem.els=null},after(p){p.bem.b=y,p.bem.els=v},$({context:p,props:w}){return b=typeof b=="string"?b:b({context:p,props:w}),p.bem.b=b,`${(w==null?void 0:w.bPrefix)||t}${p.bem.b}`}}}function l(b){let y;return{before(v){y=v.bem.els},after(v){v.bem.els=y},$({context:v,props:p}){return b=typeof b=="string"?b:b({context:v,props:p}),v.bem.els=b.split(",").map(w=>w.trim()),v.bem.els.map(w=>`${(p==null?void 0:p.bPrefix)||t}${v.bem.b}__${w}`).join(", ")}}}function s(b){return{$({context:y,props:v}){b=typeof b=="string"?b:b({context:y,props:v});const p=b.split(",").map(m=>m.trim());function w(m){return p.map(x=>`&${(v==null?void 0:v.bPrefix)||t}${y.bem.b}${m!==void 0?`${r}${m}`:""}${o}${x}`).join(", ")}const P=y.bem.els;return P!==null?w(P[0]):w()}}}function c(b){return{$({context:y,props:v}){b=typeof b=="string"?b:b({context:y,props:v});const p=y.bem.els;return`&:not(${(v==null?void 0:v.bPrefix)||t}${y.bem.b}${p!==null&&p.length>0?`${r}${p[0]}`:""}${o}${b})`}}}return Object.assign(i,{cB:(...b)=>n(a(b[0]),b[1],b[2]),cE:(...b)=>n(l(b[0]),b[1],b[2]),cM:(...b)=>n(s(b[0]),b[1],b[2]),cNotM:(...b)=>n(c(b[0]),b[1],b[2])}),i}function ce(e,t){return e+(t==="default"?"":t.replace(/^[a-z]/,r=>r.toUpperCase()))}ce("abc","def");const Ww="n",wr=`.${Ww}-`,Uw="__",yf="--",wf=xf(),Cf=Hw({blockPrefix:wr,elementPrefix:Uw,modifierPrefix:yf});wf.use(Cf);const{c:E,find:mO}=wf,{cB:k,cE:O,cM:j,cNotM:qe}=Cf;function Sf(e,t){return e===null?t:E([({props:{bPrefix:r}})=>E(`${r||wr}form-item`,[E(`${r||wr}form-item-blank`,[E(`&${r||wr}form-item-blank${yf}${e}`,[t])])])])}function na(e){return E(({props:{bPrefix:t}})=>`${t||wr}modal, ${t||wr}drawer`,[e])}function ts(e){return E(({props:{bPrefix:t}})=>`${t||wr}popover:not(${t||wr}tooltip)`,[e])}function kf(e){return E(({props:{bPrefix:t}})=>`&${t||wr}modal`,e)}const Vw=(...e)=>E(">",[k(...e)]);var Qt={fontFamily:'v-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontFamilyMono:"v-mono, SFMono-Regular, Menlo, Consolas, Courier, monospace",fontWeight:"400",fontWeightStrong:"500",cubicBezierEaseInOut:"cubic-bezier(.4, 0, .2, 1)",cubicBezierEaseOut:"cubic-bezier(0, 0, .2, 1)",cubicBezierEaseIn:"cubic-bezier(.4, 0, 1, 1)",borderRadius:"3px",borderRadiusSmall:"2px",fontSize:"14px",fontSizeTiny:"12px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",lineHeight:"1.6",heightTiny:"22px",heightSmall:"28px",heightMedium:"34px",heightLarge:"40px",heightHuge:"46px",transformDebounceScale:"scale(1)"},Pf=E("body",` + margin: 0; + font-size: ${Qt.fontSize}; + font-family: ${Qt.fontFamily}; + line-height: ${Qt.lineHeight}; + -webkit-text-size-adjust: 100%; + -webkit-tap-highlight-color: transparent; +`,[E("input",` + font-family: inherit; + font-size: inherit; + `)]);function $f(e){const t=W(!!e.value);if(t.value)return rr(t);const r=Ue(e,o=>{o&&(t.value=!0,r())});return rr(t)}function Ve(e){const t=R(e),r=W(t.value);return Ue(t,o=>{r.value=o}),typeof e=="function"?r:{__v_isRef:!0,get value(){return r.value},set value(o){e.set(o)}}}function rs(){return no()!==null}const os=typeof window!="undefined";let Ko,Qn;const Kw=()=>{var e,t;Ko=os?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,Qn=!1,Ko!==void 0?Ko.then(()=>{Qn=!0}):Qn=!0};Kw();function qw(e){if(Qn)return;let t=!1;wt(()=>{Qn||Ko==null||Ko.then(()=>{t||e()})}),Ft(()=>{t=!0})}const Gw={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function Yw(e,t,r){if(e==="mousemoveoutside"){const o=n=>{t.contains(n.target)||r(n)};return{mousemove:o,touchstart:o}}else if(e==="clickoutside"){let o=!1;const n=a=>{o=!t.contains(a.target)},i=a=>{!o||t.contains(a.target)||r(a)};return{mousedown:n,mouseup:i,touchstart:n,touchend:i}}return console.error(`[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`),{}}function Rf(e,t,r){const o=Gw[e];let n=o.get(t);n===void 0&&o.set(t,n=new WeakMap);let i=n.get(r);return i===void 0&&n.set(r,i=Yw(e,t,r)),i}function Xw(e,t,r,o){if(e==="mousemoveoutside"||e==="clickoutside"){const n=Rf(e,t,r);return Object.keys(n).forEach(i=>{ct(i,document,n[i],o)}),!0}return!1}function Zw(e,t,r,o){if(e==="mousemoveoutside"||e==="clickoutside"){const n=Rf(e,t,r);return Object.keys(n).forEach(i=>{Xe(i,document,n[i],o)}),!0}return!1}function Jw(){if(typeof window=="undefined")return{on:()=>{},off:()=>{}};const e=new WeakMap,t=new WeakMap;function r(){e.set(this,!0)}function o(){e.set(this,!0),t.set(this,!0)}function n(S,T,$){const M=S[T];return S[T]=function(){return $.apply(S,arguments),M.apply(S,arguments)},S}function i(S,T){S[T]=Event.prototype[T]}const a=new WeakMap,l=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function s(){var S;return(S=a.get(this))!==null&&S!==void 0?S:null}function c(S,T){l!==void 0&&Object.defineProperty(S,"currentTarget",{configurable:!0,enumerable:!0,get:T!=null?T:l.get})}const d={bubble:{},capture:{}},u={};function h(){const S=function(T){const{type:$,eventPhase:M,target:D,bubbles:_}=T;if(M===2)return;const I=M===1?"capture":"bubble";let G=D;const U=[];for(;G===null&&(G=window),U.push(G),G!==window;)G=G.parentNode||null;const N=d.capture[$],F=d.bubble[$];if(n(T,"stopPropagation",r),n(T,"stopImmediatePropagation",o),c(T,s),I==="capture"){if(N===void 0)return;for(let A=U.length-1;A>=0&&!e.has(T);--A){const re=U[A],be=N.get(re);if(be!==void 0){a.set(T,re);for(const Se of be){if(t.has(T))break;Se(T)}}if(A===0&&!_&&F!==void 0){const Se=F.get(re);if(Se!==void 0)for(const Te of Se){if(t.has(T))break;Te(T)}}}}else if(I==="bubble"){if(F===void 0)return;for(let A=0;A_(T))};return S.displayName="evtdUnifiedWindowEventHandler",S}const b=h(),y=g();function v(S,T){const $=d[S];return $[T]===void 0&&($[T]=new Map,window.addEventListener(T,b,S==="capture")),$[T]}function p(S){return u[S]===void 0&&(u[S]=new Set,window.addEventListener(S,y)),u[S]}function w(S,T){let $=S.get(T);return $===void 0&&S.set(T,$=new Set),$}function P(S,T,$,M){const D=d[T][$];if(D!==void 0){const _=D.get(S);if(_!==void 0&&_.has(M))return!0}return!1}function m(S,T){const $=u[S];return!!($!==void 0&&$.has(T))}function x(S,T,$,M){if(Xw(S,T,$,M))return;const _=M===!0||typeof M=="object"&&M.capture===!0?"capture":"bubble",I=v(_,S),G=w(I,T);if(G.has($)||G.add($),T===window){const U=p(S);U.has($)||U.add($)}}function C(S,T,$,M){if(Zw(S,T,$,M))return;const _=M===!0||typeof M=="object"&&M.capture===!0,I=_?"capture":"bubble",G=v(I,S),U=w(G,T);if(T===window&&!P(T,_?"bubble":"capture",S,$)&&m(S,$)){const F=u[S];F.delete($),F.size===0&&(window.removeEventListener(S,y),u[S]=void 0)}U.has($)&&U.delete($),U.size===0&&G.delete(T),G.size===0&&(window.removeEventListener(S,b,I==="capture"),d[I][S]=void 0)}return{on:x,off:C}}const{on:ct,off:Xe}=Jw(),Tf=W(null);function zf(e){Tf.value={x:e.clientX,y:e.clientY}}let ia=0,_f=!0;function Of(){if(!os)return rr(W(null));ia===0&&ct("click",window,zf,!0);const e=()=>{ia+=1};return _f&&(_f=rs())?(_r(e),Ft(()=>{ia-=1,ia===0&&Xe("click",window,zf,!0)})):e(),rr(Tf)}const Qw=W(void 0);let aa=0;function Ef(){Qw.value=Date.now()}let Mf=!0;function If(e){if(!os)return rr(W(!1));const t=W(!1);let r=null;function o(){r!==null&&window.clearTimeout(r)}function n(){o(),t.value=!0,r=window.setTimeout(()=>{t.value=!1},e)}aa===0&&ct("click",window,Ef,!0);const i=()=>{aa+=1,ct("click",window,n,!0)};return Mf&&(Mf=rs())?(_r(i),Ft(()=>{aa-=1,aa===0&&Xe("click",window,Ef,!0),Xe("click",window,n,!0),o()})):i(),rr(t)}function gt(e,t){return Ue(e,r=>{r!==void 0&&(t.value=r)}),R(()=>e.value===void 0?t.value:e.value)}function qo(){const e=W(!1);return wt(()=>{e.value=!0}),rr(e)}function ei(e,t){return R(()=>{for(const r of t)if(e[r]!==void 0)return e[r];return e[t[t.length-1]]})}const eC=(typeof window=="undefined"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function tC(){return eC}function rC(e={},t){const r=pr({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:o,keyup:n}=e,i=s=>{switch(s.key){case"Control":r.ctrl=!0;break;case"Meta":r.command=!0,r.win=!0;break;case"Shift":r.shift=!0;break;case"Tab":r.tab=!0;break}o!==void 0&&Object.keys(o).forEach(c=>{if(c!==s.key)return;const d=o[c];if(typeof d=="function")d(s);else{const{stop:u=!1,prevent:h=!1}=d;u&&s.stopPropagation(),h&&s.preventDefault(),d.handler(s)}})},a=s=>{switch(s.key){case"Control":r.ctrl=!1;break;case"Meta":r.command=!1,r.win=!1;break;case"Shift":r.shift=!1;break;case"Tab":r.tab=!1;break}n!==void 0&&Object.keys(n).forEach(c=>{if(c!==s.key)return;const d=n[c];if(typeof d=="function")d(s);else{const{stop:u=!1,prevent:h=!1}=d;u&&s.stopPropagation(),h&&s.preventDefault(),d.handler(s)}})},l=()=>{(t===void 0||t.value)&&(ct("keydown",document,i),ct("keyup",document,a)),t!==void 0&&Ue(t,s=>{s?(ct("keydown",document,i),ct("keyup",document,a)):(Xe("keydown",document,i),Xe("keyup",document,a))})};return rs()?(_r(l),Ft(()=>{(t===void 0||t.value)&&(Xe("keydown",document,i),Xe("keyup",document,a))})):l(),rr(r)}function Af(e,t="default",r=[]){const n=e.$slots[t];return n===void 0?r:n()}function er(e,t=[],r){const o={};return t.forEach(n=>{o[n]=e[n]}),Object.assign(o,r)}function la(e,t=[],r){const o={};return Object.getOwnPropertyNames(e).forEach(i=>{t.includes(i)||(o[i]=e[i])}),Object.assign(o,r)}function ti(e,t=!0,r=[]){return e.forEach(o=>{if(o!==null){if(typeof o!="object"){(typeof o=="string"||typeof o=="number")&&r.push(Eo(String(o)));return}if(Array.isArray(o)){ti(o,t,r);return}if(o.type===nt){if(o.children===null)return;Array.isArray(o.children)&&ti(o.children,t,r)}else o.type!==Vt&&r.push(o)}}),r}function ue(e,...t){if(Array.isArray(e))e.forEach(r=>ue(r,...t));else return e(...t)}function lr(e){return Object.keys(e)}const Ke=(e,...t)=>typeof e=="function"?e(...t):typeof e=="string"?Eo(e):typeof e=="number"?Eo(String(e)):null;function qt(e,t){console.error(`[naive/${e}]: ${t}`)}function Cr(e,t){throw new Error(`[naive/${e}]: ${t}`)}function oC(e){switch(typeof e){case"string":return e||void 0;case"number":return String(e);default:return}}const nC=typeof window!="undefined";function ns(e,t="default",r=void 0){const o=e[t];if(!o)return qt("getFirstSlotVNode",`slot[${t}] is empty`),null;const n=ti(o(r));return n.length===1?n[0]:(qt("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function iC(e){return t=>{t?e.value=t.$el:e.value=null}}const aC=/^(\d|\.)+$/,Ff=/(\d|\.)+/;function Qe(e,{c:t=1,offset:r=0,attachPx:o=!0}={}){if(typeof e=="number"){const n=(e+r)*t;return n===0?"0":`${n}px`}else if(typeof e=="string")if(aC.test(e)){const n=(Number(e)+r)*t;return o?n===0?"0":`${n}px`:`${n}`}else{const n=Ff.exec(e);return n?e.replace(Ff,String((Number(n[0])+r)*t)):e}return e}const is=Symbol("modalBody"),Bf=Symbol("modal"),as=Symbol("drawerBody"),ls=Symbol("popoverBodyInjection"),ss=Symbol("internal-select-menu"),Lf=Symbol("internal-select-menu-body"),Df="__disabled__";function Sr(e){const t=Pe(is,null),r=Pe(as,null),o=Pe(ls,null),n=Pe(Lf,null);return Ve(()=>{var i;const{to:a}=e;return a!==void 0?a===!1?Df:a===!0?"body":a:(t==null?void 0:t.value)?(i=t.value.$el)!==null&&i!==void 0?i:t.value:(r==null?void 0:r.value)?r.value:(o==null?void 0:o.value)?o.value:(n==null?void 0:n.value)?n.value:a!=null?a:"body"})}Sr.tdkey=Df;Sr.propTo={type:[String,Object,Boolean],default:void 0};let Nf=!1;function lC(){_r(()=>{var e;Nf||(Nf=!0,((e=window==null?void 0:window.CSS)===null||e===void 0?void 0:e.registerProperty)&&(CSS.registerProperty({name:"--color-start",syntax:"",inherits:!1,initialValue:"#0000"}),CSS.registerProperty({name:"--color-end",syntax:"",inherits:!1,initialValue:"#0000"})))})}function sC(e,t,r){var o;const n=Pe(e,null);if(n===null)return;const i=(o=no())===null||o===void 0?void 0:o.proxy;Ue(r,a),a(r.value),Ft(()=>{a(void 0,r.value)});function a(c,d){const u=n[t];d!==void 0&&l(u,d),c!==void 0&&s(u,c)}function l(c,d){c[d]||(c[d]=[]),c[d].splice(c[d].findIndex(u=>u===i),1)}function s(c,d){c[d]||(c[d]=[]),~c[d].findIndex(u=>u===i)||c[d].push(i)}}function cC(e,t,r){if(!t)return e;const o=W(e.value);let n=null;return Ue(e,i=>{n!==null&&window.clearTimeout(n),i===!0?r&&!r.value?o.value=!0:n=window.setTimeout(()=>{o.value=!0},t):o.value=!1}),o}const Br=Symbol("configProviderInjection"),dC={abstract:Boolean,bordered:{type:Boolean,default:void 0},clsPrefix:String,locale:Object,dateLocale:Object,namespace:String,rtl:Array,tag:{type:String,default:"div"},hljs:Object,theme:Object,themeOverrides:Object,componentOptions:Object,icons:Object,breakpoints:Object,as:{type:String,validator:()=>(qt("config-provider","`as` is deprecated, please use `tag` instead."),!0),default:void 0}};var bO=q({name:"ConfigProvider",alias:["App"],props:dC,setup(e){const t=Pe(Br,null),r=R(()=>{const{theme:u}=e;if(u===null)return;const h=t==null?void 0:t.mergedThemeRef.value;return u===void 0?h:h===void 0?u:Object.assign({},h,u)}),o=R(()=>{const{themeOverrides:u}=e;if(u!==null){if(u===void 0)return t==null?void 0:t.mergedThemeOverridesRef.value;{const h=t==null?void 0:t.mergedThemeOverridesRef.value;return h===void 0?u:Jn({},h,u)}}}),n=Ve(()=>{const{namespace:u}=e;return u===void 0?t==null?void 0:t.mergedNamespaceRef.value:u}),i=Ve(()=>{const{bordered:u}=e;return u===void 0?t==null?void 0:t.mergedBorderedRef.value:u}),a=R(()=>{const{icons:u}=e;return u===void 0?t==null?void 0:t.mergedIconsRef.value:u}),l=R(()=>{const{componentOptions:u}=e;return u!==void 0?u:t==null?void 0:t.mergedComponentPropsRef.value}),s=R(()=>{const{clsPrefix:u}=e;return u!==void 0?u:t==null?void 0:t.mergedClsPrefixRef.value}),c=R(()=>{const{rtl:u}=e;if(u===void 0)return t==null?void 0:t.mergedRtlRef.value;const h={};for(const g of u)h[g.name]=cl(g);return h}),d=R(()=>e.breakpoints||(t==null?void 0:t.mergedBreakpointsRef.value));return Ie(Br,{mergedBreakpointsRef:d,mergedRtlRef:c,mergedIconsRef:a,mergedComponentPropsRef:l,mergedBorderedRef:i,mergedNamespaceRef:n,mergedClsPrefixRef:s,mergedLocaleRef:R(()=>{const{locale:u}=e;if(u!==null)return u===void 0?t==null?void 0:t.mergedLocaleRef.value:u}),mergedDateLocaleRef:R(()=>{const{dateLocale:u}=e;if(u!==null)return u===void 0?t==null?void 0:t.mergedDateLocaleRef.value:u}),mergedHljsRef:R(()=>{const{hljs:u}=e;return u===void 0?t==null?void 0:t.mergedHljsRef.value:u}),mergedThemeRef:r,mergedThemeOverridesRef:o}),{mergedClsPrefix:s,mergedBordered:i,mergedNamespace:n,mergedTheme:r,mergedThemeOverrides:o}},render(){return this.abstract?Ae(this.$slots,"default"):f(this.as||this.tag,{class:`${this.mergedClsPrefix||jf}-config-provider`},Ae(this.$slots,"default"))}});function St(e){return e}function ye(e,t,r,o,n,i){const a=Vo();if(r){const c=()=>{const d=i==null?void 0:i.value;r.mount({id:d===void 0?t:d+t,head:!0,props:{bPrefix:d?`.${d}-`:void 0},ssr:a}),Pf.mount({id:"naive-ui/global",head:!0,ssr:a})};a?c():_r(c)}const l=Pe(Br,null);return R(()=>{var c;const{theme:{common:d,self:u,peers:h={}}={},themeOverrides:g={},builtinThemeOverrides:b={}}=n,{common:y,peers:v}=g,{common:p=void 0,[e]:{common:w=void 0,self:P=void 0,peers:m={}}={}}=(l==null?void 0:l.mergedThemeRef.value)||{},{common:x=void 0,[e]:C={}}=(l==null?void 0:l.mergedThemeOverridesRef.value)||{},{common:S,peers:T={}}=C,$=Jn({},d||w||p||o.common,x,S,y),M=Jn((c=u||P||o.self)===null||c===void 0?void 0:c($),b,C,g);return{common:$,self:M,peers:Jn({},o.peers,m,h),peerOverrides:Jn({},T,v)}})}ye.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const jf="n";function Ee(e={},t={defaultBordered:!0}){const r=Pe(Br,null);return{NConfigProvider:r,mergedBorderedRef:R(()=>{var o,n;const{bordered:i}=e;return i!==void 0?i:(n=(o=r==null?void 0:r.mergedBorderedRef.value)!==null&&o!==void 0?o:t.defaultBordered)!==null&&n!==void 0?n:!0}),mergedClsPrefixRef:R(()=>(r==null?void 0:r.mergedClsPrefixRef.value)||jf),namespaceRef:R(()=>r==null?void 0:r.mergedNamespaceRef.value)}}const uC={name:"zh-CN",global:{undo:"\u64A4\u9500",redo:"\u91CD\u505A",confirm:"\u786E\u8BA4"},Popconfirm:{positiveText:"\u786E\u8BA4",negativeText:"\u53D6\u6D88"},Cascader:{placeholder:"\u8BF7\u9009\u62E9",loading:"\u52A0\u8F7D\u4E2D",loadingRequiredMessage:e=>`\u52A0\u8F7D\u5168\u90E8 ${e} \u7684\u5B50\u8282\u70B9\u540E\u624D\u53EF\u9009\u4E2D`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy\u5E74",monthFormat:"MMM",dayFormat:"eeeeee",clear:"\u6E05\u9664",now:"\u6B64\u523B",confirm:"\u786E\u8BA4",selectTime:"\u9009\u62E9\u65F6\u95F4",selectDate:"\u9009\u62E9\u65E5\u671F",datePlaceholder:"\u9009\u62E9\u65E5\u671F",datetimePlaceholder:"\u9009\u62E9\u65E5\u671F\u65F6\u95F4",monthPlaceholder:"\u9009\u62E9\u6708\u4EFD",startDatePlaceholder:"\u5F00\u59CB\u65E5\u671F",endDatePlaceholder:"\u7ED3\u675F\u65E5\u671F",startDatetimePlaceholder:"\u5F00\u59CB\u65E5\u671F\u65F6\u95F4",endDatetimePlaceholder:"\u7ED3\u675F\u65E5\u671F\u65F6\u95F4",monthBeforeYear:!1,firstDayOfWeek:0,today:"\u4ECA\u5929"},DataTable:{checkTableAll:"\u9009\u62E9\u5168\u90E8\u8868\u683C\u6570\u636E",uncheckTableAll:"\u53D6\u6D88\u9009\u62E9\u5168\u90E8\u8868\u683C\u6570\u636E",confirm:"\u786E\u8BA4",clear:"\u91CD\u7F6E"},Transfer:{sourceTitle:"\u6E90\u9879",targetTitle:"\u76EE\u6807\u9879"},Empty:{description:"\u65E0\u6570\u636E"},Select:{placeholder:"\u8BF7\u9009\u62E9"},TimePicker:{placeholder:"\u8BF7\u9009\u62E9\u65F6\u95F4",positiveText:"\u786E\u8BA4",negativeText:"\u53D6\u6D88",now:"\u6B64\u523B"},Pagination:{goto:"\u8DF3\u81F3",selectionSuffix:"\u9875"},DynamicTags:{add:"\u6DFB\u52A0"},Log:{loading:"\u52A0\u8F7D\u4E2D"},Input:{placeholder:"\u8BF7\u8F93\u5165"},InputNumber:{placeholder:"\u8BF7\u8F93\u5165"},DynamicInput:{create:"\u6DFB\u52A0"},ThemeEditor:{title:"\u4E3B\u9898\u7F16\u8F91\u5668",clearAllVars:"\u6E05\u9664\u5168\u90E8\u53D8\u91CF",clearSearch:"\u6E05\u9664\u641C\u7D22",filterCompName:"\u8FC7\u6EE4\u7EC4\u4EF6\u540D",filterVarName:"\u8FC7\u6EE4\u53D8\u91CF\u540D",import:"\u5BFC\u5165",export:"\u5BFC\u51FA",restore:"\u6062\u590D\u9ED8\u8BA4"}};var xO=uC;const fC={name:"en-US",global:{undo:"Undo",redo:"Redo",confirm:"Confirm"},Popconfirm:{positiveText:"Confirm",negativeText:"Cancel"},Cascader:{placeholder:"Please Select",loading:"Loading",loadingRequiredMessage:e=>`Please load all ${e}'s descedants before checking it.`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",clear:"Clear",now:"Now",confirm:"Confirm",selectTime:"Select Time",selectDate:"Select Date",datePlaceholder:"Select Date",datetimePlaceholder:"Select Date and Time",monthPlaceholder:"Select Month",startDatePlaceholder:"Start Date",endDatePlaceholder:"End Date",startDatetimePlaceholder:"Start Date and Time",endDatetimePlaceholder:"End Date and Time",monthBeforeYear:!0,firstDayOfWeek:6,today:"Today"},DataTable:{checkTableAll:"Select all in the table",uncheckTableAll:"Unselect all in the table",confirm:"Confirm",clear:"Clear"},Transfer:{sourceTitle:"Source",targetTitle:"Target"},Empty:{description:"No Data"},Select:{placeholder:"Please Select"},TimePicker:{placeholder:"Select Time",positiveText:"OK",negativeText:"Cancel",now:"Now"},Pagination:{goto:"Goto",selectionSuffix:"page"},DynamicTags:{add:"Add"},Log:{loading:"Loading"},Input:{placeholder:"Please Input"},InputNumber:{placeholder:"Please Input"},DynamicInput:{create:"Create"},ThemeEditor:{title:"Theme Editor",clearAllVars:"Clear All Variables",clearSearch:"Clear Search",filterCompName:"Filter Component Name",filterVarName:"Filter Variable Name",import:"Import",export:"Export",restore:"Reset to Default"}};var hC=fC,sa={lessThanXSeconds:{one:"\u4E0D\u5230 1 \u79D2",other:"\u4E0D\u5230 {{count}} \u79D2"},xSeconds:{one:"1 \u79D2",other:"{{count}} \u79D2"},halfAMinute:"\u534A\u5206\u949F",lessThanXMinutes:{one:"\u4E0D\u5230 1 \u5206\u949F",other:"\u4E0D\u5230 {{count}} \u5206\u949F"},xMinutes:{one:"1 \u5206\u949F",other:"{{count}} \u5206\u949F"},xHours:{one:"1 \u5C0F\u65F6",other:"{{count}} \u5C0F\u65F6"},aboutXHours:{one:"\u5927\u7EA6 1 \u5C0F\u65F6",other:"\u5927\u7EA6 {{count}} \u5C0F\u65F6"},xDays:{one:"1 \u5929",other:"{{count}} \u5929"},aboutXWeeks:{one:"\u5927\u7EA6 1 \u4E2A\u661F\u671F",other:"\u5927\u7EA6 {{count}} \u4E2A\u661F\u671F"},xWeeks:{one:"1 \u4E2A\u661F\u671F",other:"{{count}} \u4E2A\u661F\u671F"},aboutXMonths:{one:"\u5927\u7EA6 1 \u4E2A\u6708",other:"\u5927\u7EA6 {{count}} \u4E2A\u6708"},xMonths:{one:"1 \u4E2A\u6708",other:"{{count}} \u4E2A\u6708"},aboutXYears:{one:"\u5927\u7EA6 1 \u5E74",other:"\u5927\u7EA6 {{count}} \u5E74"},xYears:{one:"1 \u5E74",other:"{{count}} \u5E74"},overXYears:{one:"\u8D85\u8FC7 1 \u5E74",other:"\u8D85\u8FC7 {{count}} \u5E74"},almostXYears:{one:"\u5C06\u8FD1 1 \u5E74",other:"\u5C06\u8FD1 {{count}} \u5E74"}};function pC(e,t,r){r=r||{};var o;return typeof sa[e]=="string"?o=sa[e]:t===1?o=sa[e].one:o=sa[e].other.replace("{{count}}",t),r.addSuffix?r.comparison>0?o+"\u5185":o+"\u524D":o}function Go(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,o=e.formats[r]||e.formats[e.defaultWidth];return o}}var gC={full:"y'\u5E74'M'\u6708'd'\u65E5' EEEE",long:"y'\u5E74'M'\u6708'd'\u65E5'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},vC={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},mC={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},bC={date:Go({formats:gC,defaultWidth:"full"}),time:Go({formats:vC,defaultWidth:"full"}),dateTime:Go({formats:mC,defaultWidth:"full"})},xC=bC;function Lt(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function et(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function Ze(e){et(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn(new Error().stack)),new Date(NaN))}function Yo(e,t){et(1,arguments);var r=t||{},o=r.locale,n=o&&o.options&&o.options.weekStartsOn,i=n==null?0:Lt(n),a=r.weekStartsOn==null?i:Lt(r.weekStartsOn);if(!(a>=0&&a<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var l=Ze(e),s=l.getUTCDay(),c=(st.getTime()?"'\u4E0B\u4E2A'"+o:"'\u4E0A\u4E2A'"+o}var wC={lastWeek:Hf,yesterday:"'\u6628\u5929' p",today:"'\u4ECA\u5929' p",tomorrow:"'\u660E\u5929' p",nextWeek:Hf,other:"PP p"};function CC(e,t,r,o){var n=wC[e];return typeof n=="function"?n(t,r,o,"eeee p"):n}function sr(e){return function(t,r){var o=r||{},n=o.context?String(o.context):"standalone",i;if(n==="formatting"&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,l=o.width?String(o.width):a;i=e.formattingValues[l]||e.formattingValues[a]}else{var s=e.defaultWidth,c=o.width?String(o.width):e.defaultWidth;i=e.values[c]||e.values[s]}var d=e.argumentCallback?e.argumentCallback(t):t;return i[d]}}var SC={narrow:["\u524D","\u516C\u5143"],abbreviated:["\u524D","\u516C\u5143"],wide:["\u516C\u5143\u524D","\u516C\u5143"]},kC={narrow:["1","2","3","4"],abbreviated:["\u7B2C\u4E00\u523B","\u7B2C\u4E8C\u523B","\u7B2C\u4E09\u523B","\u7B2C\u56DB\u523B"],wide:["\u7B2C\u4E00\u523B\u949F","\u7B2C\u4E8C\u523B\u949F","\u7B2C\u4E09\u523B\u949F","\u7B2C\u56DB\u523B\u949F"]},PC={narrow:["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"],abbreviated:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],wide:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"]},$C={narrow:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],short:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],abbreviated:["\u5468\u65E5","\u5468\u4E00","\u5468\u4E8C","\u5468\u4E09","\u5468\u56DB","\u5468\u4E94","\u5468\u516D"],wide:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"]},RC={narrow:{am:"\u4E0A",pm:"\u4E0B",midnight:"\u51CC\u6668",noon:"\u5348",morning:"\u65E9",afternoon:"\u4E0B\u5348",evening:"\u665A",night:"\u591C"},abbreviated:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u95F4"},wide:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u95F4"}},TC={narrow:{am:"\u4E0A",pm:"\u4E0B",midnight:"\u51CC\u6668",noon:"\u5348",morning:"\u65E9",afternoon:"\u4E0B\u5348",evening:"\u665A",night:"\u591C"},abbreviated:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u95F4"},wide:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u95F4"}};function zC(e,t){var r=Number(e),o=t||{},n=String(o.unit);switch(n){case"date":return r.toString()+"\u65E5";case"hour":return r.toString()+"\u65F6";case"minute":return r.toString()+"\u5206";case"second":return r.toString()+"\u79D2";default:return"\u7B2C "+r.toString()}}var _C={ordinalNumber:zC,era:sr({values:SC,defaultWidth:"wide"}),quarter:sr({values:kC,defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:sr({values:PC,defaultWidth:"wide"}),day:sr({values:$C,defaultWidth:"wide"}),dayPeriod:sr({values:RC,defaultWidth:"wide",formattingValues:TC,defaultFormattingWidth:"wide"})},OC=_C;function Wf(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=t.match(e.matchPattern);if(!o)return null;var n=o[0],i=t.match(e.parsePattern);if(!i)return null;var a=e.valueCallback?e.valueCallback(i[0]):i[0];a=r.valueCallback?r.valueCallback(a):a;var l=t.slice(n.length);return{value:a,rest:l}}}function cr(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=r.width,n=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],i=t.match(n);if(!i)return null;var a=i[0],l=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(l)?MC(l,function(u){return u.test(a)}):EC(l,function(u){return u.test(a)}),c;c=e.valueCallback?e.valueCallback(s):s,c=r.valueCallback?r.valueCallback(c):c;var d=t.slice(a.length);return{value:c,rest:d}}}function EC(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function MC(e,t){for(var r=0;r0?"in "+o:o+" ago":o},QC=JC,e2={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},t2={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},r2={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},o2={date:Go({formats:e2,defaultWidth:"full"}),time:Go({formats:t2,defaultWidth:"full"}),dateTime:Go({formats:r2,defaultWidth:"full"})},n2=o2,i2={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},a2=function(e,t,r,o){return i2[e]},l2=a2,s2={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},c2={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},d2={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},u2={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},f2={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},h2={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},p2=function(e,t){var r=Number(e),o=r%100;if(o>20||o<10)switch(o%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},g2={ordinalNumber:p2,era:sr({values:s2,defaultWidth:"wide"}),quarter:sr({values:c2,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:sr({values:d2,defaultWidth:"wide"}),day:sr({values:u2,defaultWidth:"wide"}),dayPeriod:sr({values:f2,defaultWidth:"wide",formattingValues:h2,defaultFormattingWidth:"wide"})},v2=g2,m2=/^(\d+)(th|st|nd|rd)?/i,b2=/\d+/i,x2={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},y2={any:[/^b/i,/^(a|c)/i]},w2={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},C2={any:[/1/i,/2/i,/3/i,/4/i]},S2={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},k2={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},P2={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},$2={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},R2={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},T2={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},z2={ordinalNumber:Wf({matchPattern:m2,parsePattern:b2,valueCallback:function(e){return parseInt(e,10)}}),era:cr({matchPatterns:x2,defaultMatchWidth:"wide",parsePatterns:y2,defaultParseWidth:"any"}),quarter:cr({matchPatterns:w2,defaultMatchWidth:"wide",parsePatterns:C2,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:cr({matchPatterns:S2,defaultMatchWidth:"wide",parsePatterns:k2,defaultParseWidth:"any"}),day:cr({matchPatterns:P2,defaultMatchWidth:"wide",parsePatterns:$2,defaultParseWidth:"any"}),dayPeriod:cr({matchPatterns:R2,defaultMatchWidth:"any",parsePatterns:T2,defaultParseWidth:"any"})},_2=z2,O2={code:"en-US",formatDistance:QC,formatLong:n2,formatRelative:l2,localize:v2,match:_2,options:{weekStartsOn:0,firstWeekContainsDate:1}},cs=O2;const E2={name:"en-US",locale:cs};var M2=E2;function kr(e){const{mergedLocaleRef:t,mergedDateLocaleRef:r}=Pe(Br,null)||{},o=R(()=>{var i,a;return(a=(i=t==null?void 0:t.value)===null||i===void 0?void 0:i[e])!==null&&a!==void 0?a:hC[e]});return{dateLocaleRef:R(()=>{var i;return(i=r==null?void 0:r.value)!==null&&i!==void 0?i:M2}),localeRef:o}}function Pr(e,t,r){if(!t)return;const o=Vo(),n=()=>{const i=r==null?void 0:r.value;t.mount({id:i===void 0?e:i+e,head:!0,props:{bPrefix:i?`.${i}-`:void 0},ssr:o}),Pf.mount({id:"naive-ui/global",head:!0,ssr:o})};o?n():_r(n)}function Uf(e,t){const r=Pe(Br,null);return R(()=>e.hljs||(r==null?void 0:r.mergedHljsRef.value))}var I2=q({name:"Add",render(){return f("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},f("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"}))}}),A2=q({name:"ArrowDown",render(){return f("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},f("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},f("g",{"fill-rule":"nonzero"},f("path",{d:"M23.7916,15.2664 C24.0788,14.9679 24.0696,14.4931 23.7711,14.206 C23.4726,13.9188 22.9978,13.928 22.7106,14.2265 L14.7511,22.5007 L14.7511,3.74792 C14.7511,3.33371 14.4153,2.99792 14.0011,2.99792 C13.5869,2.99792 13.2511,3.33371 13.2511,3.74793 L13.2511,22.4998 L5.29259,14.2265 C5.00543,13.928 4.53064,13.9188 4.23213,14.206 C3.93361,14.4931 3.9244,14.9679 4.21157,15.2664 L13.2809,24.6944 C13.6743,25.1034 14.3289,25.1034 14.7223,24.6944 L23.7916,15.2664 Z"}))))}});function _t(e,t){return q({name:Yy(e),setup(){const{NConfigProvider:r}=Ee();return()=>{var o;const n=(o=r==null?void 0:r.mergedIconsRef.value)===null||o===void 0?void 0:o[e];return n?n():t}}})}var F2=_t("attach",f("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},f("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},f("g",{fill:"currentColor","fill-rule":"nonzero"},f("path",{d:"M3.25735931,8.70710678 L7.85355339,4.1109127 C8.82986412,3.13460197 10.4127766,3.13460197 11.3890873,4.1109127 C12.365398,5.08722343 12.365398,6.67013588 11.3890873,7.64644661 L6.08578644,12.9497475 C5.69526215,13.3402718 5.06209717,13.3402718 4.67157288,12.9497475 C4.28104858,12.5592232 4.28104858,11.9260582 4.67157288,11.5355339 L9.97487373,6.23223305 C10.1701359,6.0369709 10.1701359,5.72038841 9.97487373,5.52512627 C9.77961159,5.32986412 9.4630291,5.32986412 9.26776695,5.52512627 L3.96446609,10.8284271 C3.18341751,11.6094757 3.18341751,12.8758057 3.96446609,13.6568542 C4.74551468,14.4379028 6.01184464,14.4379028 6.79289322,13.6568542 L12.0961941,8.35355339 C13.4630291,6.98671837 13.4630291,4.77064094 12.0961941,3.40380592 C10.7293591,2.0369709 8.51328163,2.0369709 7.14644661,3.40380592 L2.55025253,8 C2.35499039,8.19526215 2.35499039,8.51184464 2.55025253,8.70710678 C2.74551468,8.90236893 3.06209717,8.90236893 3.25735931,8.70710678 Z"}))))),B2=q({name:"Backward",render(){return f("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},f("path",{d:"M12.2674 15.793C11.9675 16.0787 11.4927 16.0672 11.2071 15.7673L6.20572 10.5168C5.9298 10.2271 5.9298 9.7719 6.20572 9.48223L11.2071 4.23177C11.4927 3.93184 11.9675 3.92031 12.2674 4.206C12.5673 4.49169 12.5789 4.96642 12.2932 5.26634L7.78458 9.99952L12.2932 14.7327C12.5789 15.0326 12.5673 15.5074 12.2674 15.793Z",fill:"currentColor"}))}}),L2=q({name:"Checkmark",render(){return f("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},f("g",{fill:"none"},f("path",{d:"M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032z",fill:"currentColor"})))}}),ca=q({name:"ChevronRight",render(){return f("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},f("path",{d:"M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z",fill:"currentColor"}))}}),D2=_t("close",f("svg",{viewBox:"0 0 12 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},f("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},f("g",{fill:"currentColor","fill-rule":"nonzero"},f("path",{d:"M2.08859116,2.2156945 L2.14644661,2.14644661 C2.32001296,1.97288026 2.58943736,1.95359511 2.7843055,2.08859116 L2.85355339,2.14644661 L6,5.293 L9.14644661,2.14644661 C9.34170876,1.95118446 9.65829124,1.95118446 9.85355339,2.14644661 C10.0488155,2.34170876 10.0488155,2.65829124 9.85355339,2.85355339 L6.707,6 L9.85355339,9.14644661 C10.0271197,9.32001296 10.0464049,9.58943736 9.91140884,9.7843055 L9.85355339,9.85355339 C9.67998704,10.0271197 9.41056264,10.0464049 9.2156945,9.91140884 L9.14644661,9.85355339 L6,6.707 L2.85355339,9.85355339 C2.65829124,10.0488155 2.34170876,10.0488155 2.14644661,9.85355339 C1.95118446,9.65829124 1.95118446,9.34170876 2.14644661,9.14644661 L5.293,6 L2.14644661,2.85355339 C1.97288026,2.67998704 1.95359511,2.41056264 2.08859116,2.2156945 L2.14644661,2.14644661 L2.08859116,2.2156945 Z"}))))),Vf=q({name:"Eye",render(){return f("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},f("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),f("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"}))}}),N2=q({name:"EyeOff",render(){return f("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},f("path",{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z",fill:"currentColor"}),f("path",{d:"M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z",fill:"currentColor"}),f("path",{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z",fill:"currentColor"}),f("path",{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z",fill:"currentColor"}),f("path",{d:"M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z",fill:"currentColor"}))}}),j2=_t("trash",f("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},f("path",{d:"M432,144,403.33,419.74A32,32,0,0,1,371.55,448H140.46a32,32,0,0,1-31.78-28.26L80,144",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),f("rect",{x:"32",y:"64",width:"448",height:"80",rx:"16",ry:"16",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),f("line",{x1:"312",y1:"240",x2:"200",y2:"352",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),f("line",{x1:"312",y1:"352",x2:"200",y2:"240",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}))),H2=_t("download",f("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},f("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},f("g",{fill:"currentColor","fill-rule":"nonzero"},f("path",{d:"M3.5,13 L12.5,13 C12.7761424,13 13,13.2238576 13,13.5 C13,13.7454599 12.8231248,13.9496084 12.5898756,13.9919443 L12.5,14 L3.5,14 C3.22385763,14 3,13.7761424 3,13.5 C3,13.2545401 3.17687516,13.0503916 3.41012437,13.0080557 L3.5,13 L12.5,13 L3.5,13 Z M7.91012437,1.00805567 L8,1 C8.24545989,1 8.44960837,1.17687516 8.49194433,1.41012437 L8.5,1.5 L8.5,10.292 L11.1819805,7.6109127 C11.3555469,7.43734635 11.6249713,7.4180612 11.8198394,7.55305725 L11.8890873,7.6109127 C12.0626536,7.78447906 12.0819388,8.05390346 11.9469427,8.2487716 L11.8890873,8.31801948 L8.35355339,11.8535534 C8.17998704,12.0271197 7.91056264,12.0464049 7.7156945,11.9114088 L7.64644661,11.8535534 L4.1109127,8.31801948 C3.91565056,8.12275734 3.91565056,7.80617485 4.1109127,7.6109127 C4.28447906,7.43734635 4.55390346,7.4180612 4.7487716,7.55305725 L4.81801948,7.6109127 L7.5,10.292 L7.5,1.5 C7.5,1.25454011 7.67687516,1.05039163 7.91012437,1.00805567 L8,1 L7.91012437,1.00805567 Z"}))))),W2=q({name:"Empty",render(){return f("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},f("path",{d:"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",fill:"currentColor"}),f("path",{d:"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",fill:"currentColor"}))}}),Xo=_t("error",f("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},f("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},f("g",{"fill-rule":"nonzero"},f("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M17.8838835,16.1161165 L17.7823881,16.0249942 C17.3266086,15.6583353 16.6733914,15.6583353 16.2176119,16.0249942 L16.1161165,16.1161165 L16.0249942,16.2176119 C15.6583353,16.6733914 15.6583353,17.3266086 16.0249942,17.7823881 L16.1161165,17.8838835 L22.233,24 L16.1161165,30.1161165 L16.0249942,30.2176119 C15.6583353,30.6733914 15.6583353,31.3266086 16.0249942,31.7823881 L16.1161165,31.8838835 L16.2176119,31.9750058 C16.6733914,32.3416647 17.3266086,32.3416647 17.7823881,31.9750058 L17.8838835,31.8838835 L24,25.767 L30.1161165,31.8838835 L30.2176119,31.9750058 C30.6733914,32.3416647 31.3266086,32.3416647 31.7823881,31.9750058 L31.8838835,31.8838835 L31.9750058,31.7823881 C32.3416647,31.3266086 32.3416647,30.6733914 31.9750058,30.2176119 L31.8838835,30.1161165 L25.767,24 L31.8838835,17.8838835 L31.9750058,17.7823881 C32.3416647,17.3266086 32.3416647,16.6733914 31.9750058,16.2176119 L31.8838835,16.1161165 L31.7823881,16.0249942 C31.3266086,15.6583353 30.6733914,15.6583353 30.2176119,16.0249942 L30.1161165,16.1161165 L24,22.233 L17.8838835,16.1161165 L17.7823881,16.0249942 L17.8838835,16.1161165 Z"}))))),U2=q({name:"FastBackward",render(){return f("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},f("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},f("g",{fill:"currentColor","fill-rule":"nonzero"},f("path",{d:"M8.73171,16.7949 C9.03264,17.0795 9.50733,17.0663 9.79196,16.7654 C10.0766,16.4644 10.0634,15.9897 9.76243,15.7051 L4.52339,10.75 L17.2471,10.75 C17.6613,10.75 17.9971,10.4142 17.9971,10 C17.9971,9.58579 17.6613,9.25 17.2471,9.25 L4.52112,9.25 L9.76243,4.29275 C10.0634,4.00812 10.0766,3.53343 9.79196,3.2325 C9.50733,2.93156 9.03264,2.91834 8.73171,3.20297 L2.31449,9.27241 C2.14819,9.4297 2.04819,9.62981 2.01448,9.8386 C2.00308,9.89058 1.99707,9.94459 1.99707,10 C1.99707,10.0576 2.00356,10.1137 2.01585,10.1675 C2.05084,10.3733 2.15039,10.5702 2.31449,10.7254 L8.73171,16.7949 Z"}))))}}),V2=q({name:"FastForward",render(){return f("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},f("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},f("g",{fill:"currentColor","fill-rule":"nonzero"},f("path",{d:"M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z"}))))}}),K2=q({name:"Filter",render(){return f("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},f("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},f("g",{"fill-rule":"nonzero"},f("path",{d:"M17,19 C17.5522847,19 18,19.4477153 18,20 C18,20.5522847 17.5522847,21 17,21 L11,21 C10.4477153,21 10,20.5522847 10,20 C10,19.4477153 10.4477153,19 11,19 L17,19 Z M21,13 C21.5522847,13 22,13.4477153 22,14 C22,14.5522847 21.5522847,15 21,15 L7,15 C6.44771525,15 6,14.5522847 6,14 C6,13.4477153 6.44771525,13 7,13 L21,13 Z M24,7 C24.5522847,7 25,7.44771525 25,8 C25,8.55228475 24.5522847,9 24,9 L4,9 C3.44771525,9 3,8.55228475 3,8 C3,7.44771525 3.44771525,7 4,7 L24,7 Z"}))))}}),q2=q({name:"Forward",render(){return f("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},f("path",{d:"M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z",fill:"currentColor"}))}}),Zo=_t("info",f("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},f("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},f("g",{"fill-rule":"nonzero"},f("path",{d:"M14,2 C20.6274,2 26,7.37258 26,14 C26,20.6274 20.6274,26 14,26 C7.37258,26 2,20.6274 2,14 C2,7.37258 7.37258,2 14,2 Z M14,11 C13.4477,11 13,11.4477 13,12 L13,12 L13,20 C13,20.5523 13.4477,21 14,21 C14.5523,21 15,20.5523 15,20 L15,20 L15,12 C15,11.4477 14.5523,11 14,11 Z M14,6.75 C13.3096,6.75 12.75,7.30964 12.75,8 C12.75,8.69036 13.3096,9.25 14,9.25 C14.6904,9.25 15.25,8.69036 15.25,8 C15.25,7.30964 14.6904,6.75 14,6.75 Z"}))))),Kf=q({name:"More",render(){return f("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},f("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},f("g",{fill:"currentColor","fill-rule":"nonzero"},f("path",{d:"M4,7 C4.55228,7 5,7.44772 5,8 C5,8.55229 4.55228,9 4,9 C3.44772,9 3,8.55229 3,8 C3,7.44772 3.44772,7 4,7 Z M8,7 C8.55229,7 9,7.44772 9,8 C9,8.55229 8.55229,9 8,9 C7.44772,9 7,8.55229 7,8 C7,7.44772 7.44772,7 8,7 Z M12,7 C12.5523,7 13,7.44772 13,8 C13,8.55229 12.5523,9 12,9 C11.4477,9 11,8.55229 11,8 C11,7.44772 11.4477,7 12,7 Z"}))))}}),Jo=_t("success",f("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},f("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},f("g",{"fill-rule":"nonzero"},f("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M32.6338835,17.6161165 C32.1782718,17.1605048 31.4584514,17.1301307 30.9676119,17.5249942 L30.8661165,17.6161165 L20.75,27.732233 L17.1338835,24.1161165 C16.6457281,23.6279612 15.8542719,23.6279612 15.3661165,24.1161165 C14.9105048,24.5717282 14.8801307,25.2915486 15.2749942,25.7823881 L15.3661165,25.8838835 L19.8661165,30.3838835 C20.3217282,30.8394952 21.0415486,30.8698693 21.5323881,30.4750058 L21.6338835,30.3838835 L32.6338835,19.3838835 C33.1220388,18.8957281 33.1220388,18.1042719 32.6338835,17.6161165 Z"}))))),vo=_t("warning",f("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},f("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},f("g",{"fill-rule":"nonzero"},f("path",{d:"M12,2 C17.523,2 22,6.478 22,12 C22,17.522 17.523,22 12,22 C6.477,22 2,17.522 2,12 C2,6.478 6.477,2 12,2 Z M12.0018002,15.0037242 C11.450254,15.0037242 11.0031376,15.4508407 11.0031376,16.0023869 C11.0031376,16.553933 11.450254,17.0010495 12.0018002,17.0010495 C12.5533463,17.0010495 13.0004628,16.553933 13.0004628,16.0023869 C13.0004628,15.4508407 12.5533463,15.0037242 12.0018002,15.0037242 Z M11.99964,7 C11.4868042,7.00018474 11.0642719,7.38637706 11.0066858,7.8837365 L11,8.00036004 L11.0018003,13.0012393 L11.00857,13.117858 C11.0665141,13.6151758 11.4893244,14.0010638 12.0021602,14.0008793 C12.514996,14.0006946 12.9375283,13.6145023 12.9951144,13.1171428 L13.0018002,13.0005193 L13,7.99964009 L12.9932303,7.8830214 C12.9352861,7.38570354 12.5124758,6.99981552 11.99964,7 Z"}))))),G2=_t("cancel",f("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},f("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},f("g",{fill:"currentColor","fill-rule":"nonzero"},f("path",{d:"M2.58859116,2.7156945 L2.64644661,2.64644661 C2.82001296,2.47288026 3.08943736,2.45359511 3.2843055,2.58859116 L3.35355339,2.64644661 L8,7.293 L12.6464466,2.64644661 C12.8417088,2.45118446 13.1582912,2.45118446 13.3535534,2.64644661 C13.5488155,2.84170876 13.5488155,3.15829124 13.3535534,3.35355339 L8.707,8 L13.3535534,12.6464466 C13.5271197,12.820013 13.5464049,13.0894374 13.4114088,13.2843055 L13.3535534,13.3535534 C13.179987,13.5271197 12.9105626,13.5464049 12.7156945,13.4114088 L12.6464466,13.3535534 L8,8.707 L3.35355339,13.3535534 C3.15829124,13.5488155 2.84170876,13.5488155 2.64644661,13.3535534 C2.45118446,13.1582912 2.45118446,12.8417088 2.64644661,12.6464466 L7.293,8 L2.64644661,3.35355339 C2.47288026,3.17998704 2.45359511,2.91056264 2.58859116,2.7156945 L2.64644661,2.64644661 L2.58859116,2.7156945 Z"}))))),qf=q({name:"ChevronDown",render(){return f("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},f("path",{d:"M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z",fill:"currentColor"}))}}),Y2=_t("clear",f("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},f("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},f("g",{fill:"currentColor","fill-rule":"nonzero"},f("path",{d:"M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z"}))))),X2=q({name:"ChevronDownFilled",render(){return f("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},f("path",{d:"M3.20041 5.73966C3.48226 5.43613 3.95681 5.41856 4.26034 5.70041L8 9.22652L11.7397 5.70041C12.0432 5.41856 12.5177 5.43613 12.7996 5.73966C13.0815 6.0432 13.0639 6.51775 12.7603 6.7996L8.51034 10.7996C8.22258 11.0668 7.77743 11.0668 7.48967 10.7996L3.23966 6.7996C2.93613 6.51775 2.91856 6.0432 3.20041 5.73966Z",fill:"currentColor"}))}}),Z2=_t("retry",f("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},f("path",{d:"M320,146s24.36-12-64-12A160,160,0,1,0,416,294",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-miterlimit: 10; stroke-width: 32px;"}),f("polyline",{points:"256 58 336 138 256 218",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}))),J2=_t("rotateClockwise",f("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},f("path",{d:"M3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 12.7916 15.3658 15.2026 13 16.3265V14.5C13 14.2239 12.7761 14 12.5 14C12.2239 14 12 14.2239 12 14.5V17.5C12 17.7761 12.2239 18 12.5 18H15.5C15.7761 18 16 17.7761 16 17.5C16 17.2239 15.7761 17 15.5 17H13.8758C16.3346 15.6357 18 13.0128 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 10.2761 2.22386 10.5 2.5 10.5C2.77614 10.5 3 10.2761 3 10Z",fill:"currentColor"}),f("path",{d:"M10 12C11.1046 12 12 11.1046 12 10C12 8.89543 11.1046 8 10 8C8.89543 8 8 8.89543 8 10C8 11.1046 8.89543 12 10 12ZM10 11C9.44772 11 9 10.5523 9 10C9 9.44772 9.44772 9 10 9C10.5523 9 11 9.44772 11 10C11 10.5523 10.5523 11 10 11Z",fill:"currentColor"}))),Q2=_t("rotateClockwise",f("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},f("path",{d:"M17 10C17 6.13401 13.866 3 10 3C6.13401 3 3 6.13401 3 10C3 12.7916 4.63419 15.2026 7 16.3265V14.5C7 14.2239 7.22386 14 7.5 14C7.77614 14 8 14.2239 8 14.5V17.5C8 17.7761 7.77614 18 7.5 18H4.5C4.22386 18 4 17.7761 4 17.5C4 17.2239 4.22386 17 4.5 17H6.12422C3.66539 15.6357 2 13.0128 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10C18 10.2761 17.7761 10.5 17.5 10.5C17.2239 10.5 17 10.2761 17 10Z",fill:"currentColor"}),f("path",{d:"M10 12C8.89543 12 8 11.1046 8 10C8 8.89543 8.89543 8 10 8C11.1046 8 12 8.89543 12 10C12 11.1046 11.1046 12 10 12ZM10 11C10.5523 11 11 10.5523 11 10C11 9.44772 10.5523 9 10 9C9.44772 9 9 9.44772 9 10C9 10.5523 9.44772 11 10 11Z",fill:"currentColor"}))),eS=_t("zoomIn",f("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},f("path",{d:"M11.5 8.5C11.5 8.22386 11.2761 8 11 8H9V6C9 5.72386 8.77614 5.5 8.5 5.5C8.22386 5.5 8 5.72386 8 6V8H6C5.72386 8 5.5 8.22386 5.5 8.5C5.5 8.77614 5.72386 9 6 9H8V11C8 11.2761 8.22386 11.5 8.5 11.5C8.77614 11.5 9 11.2761 9 11V9H11C11.2761 9 11.5 8.77614 11.5 8.5Z",fill:"currentColor"}),f("path",{d:"M8.5 3C11.5376 3 14 5.46243 14 8.5C14 9.83879 13.5217 11.0659 12.7266 12.0196L16.8536 16.1464C17.0488 16.3417 17.0488 16.6583 16.8536 16.8536C16.68 17.0271 16.4106 17.0464 16.2157 16.9114L16.1464 16.8536L12.0196 12.7266C11.0659 13.5217 9.83879 14 8.5 14C5.46243 14 3 11.5376 3 8.5C3 5.46243 5.46243 3 8.5 3ZM8.5 4C6.01472 4 4 6.01472 4 8.5C4 10.9853 6.01472 13 8.5 13C10.9853 13 13 10.9853 13 8.5C13 6.01472 10.9853 4 8.5 4Z",fill:"currentColor"}))),tS=_t("zoomOut",f("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},f("path",{d:"M11 8C11.2761 8 11.5 8.22386 11.5 8.5C11.5 8.77614 11.2761 9 11 9H6C5.72386 9 5.5 8.77614 5.5 8.5C5.5 8.22386 5.72386 8 6 8H11Z",fill:"currentColor"}),f("path",{d:"M14 8.5C14 5.46243 11.5376 3 8.5 3C5.46243 3 3 5.46243 3 8.5C3 11.5376 5.46243 14 8.5 14C9.83879 14 11.0659 13.5217 12.0196 12.7266L16.1464 16.8536L16.2157 16.9114C16.4106 17.0464 16.68 17.0271 16.8536 16.8536C17.0488 16.6583 17.0488 16.3417 16.8536 16.1464L12.7266 12.0196C13.5217 11.0659 14 9.83879 14 8.5ZM4 8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5C13 10.9853 10.9853 13 8.5 13C6.01472 13 4 10.9853 4 8.5Z",fill:"currentColor"}))),Qo=q({name:"BaseIconSwitchTransition",setup(e,{slots:t}){const r=qo();return()=>f(ht,{name:"icon-switch-transition",appear:r.value},t)}}),mo=q({name:"FadeInExpandTransition",props:{appear:Boolean,group:Boolean,mode:String,onLeave:Function,onAfterLeave:Function,onAfterEnter:Function,width:Boolean,reverse:Boolean},setup(e,{slots:t}){function r(l){e.width?l.style.maxWidth=`${l.offsetWidth}px`:l.style.maxHeight=`${l.offsetHeight}px`,l.offsetWidth}function o(l){e.width?l.style.maxWidth="0":l.style.maxHeight="0",l.offsetWidth;const{onLeave:s}=e;s&&s()}function n(l){e.width?l.style.maxWidth="":l.style.maxHeight="";const{onAfterLeave:s}=e;s&&s()}function i(l){if(l.style.transition="none",e.width){const s=l.offsetWidth;l.style.maxWidth="0",l.offsetWidth,l.style.transition="",l.style.maxWidth=`${s}px`}else if(e.reverse)l.style.maxHeight=`${l.offsetHeight}px`,l.offsetHeight,l.style.transition="",l.style.maxHeight="0";else{const s=l.offsetHeight;l.style.maxHeight="0",l.offsetWidth,l.style.transition="",l.style.maxHeight=`${s}px`}l.offsetWidth}function a(l){var s;e.width?l.style.maxWidth="":e.reverse||(l.style.maxHeight=""),(s=e.onAfterEnter)===null||s===void 0||s.call(e)}return()=>{const l=e.group?t0:ht;return f(l,{name:e.width?"fade-in-width-expand-transition":"fade-in-height-expand-transition",mode:e.mode,appear:e.appear,onEnter:i,onAfterEnter:a,onBeforeLeave:r,onLeave:o,onAfterLeave:n},t)}}}),rS=k("base-icon",` + height: 1em; + width: 1em; + line-height: 1em; + text-align: center; + display: inline-block; + position: relative; + fill: currentColor; + transform: translateZ(0); +`,[E("svg",{height:"1em",width:"1em"})]),Be=q({name:"BaseIcon",props:{role:String,ariaLabel:String,ariaDisabled:{type:Boolean,default:void 0},ariaHidden:{type:Boolean,default:void 0},clsPrefix:{type:String,required:!0},onClick:Function,onMousedown:Function,onMouseup:Function},setup(e){Pr("BaseIcon",rS,ke(e,"clsPrefix"))},render(){return f("i",{class:`${this.clsPrefix}-base-icon`,onClick:this.onClick,onMousedown:this.onMousedown,onMouseup:this.onMouseup,role:this.role,"aria-label":this.ariaLabel,"aria-hidden":this.ariaHidden,"aria-disabled":this.ariaDisabled},this.$slots)}}),oS=k("base-close",` + cursor: pointer; + color: var(--close-color); +`,[E("&:hover",{color:"var(--close-color-hover)"}),E("&:active",{color:"var(--close-color-pressed)"}),j("disabled",{cursor:"not-allowed!important",color:"var(--close-color-disabled)"})]),en=q({name:"BaseClose",props:{clsPrefix:{type:String,required:!0},disabled:{type:Boolean,default:void 0},onClick:Function},setup(e){return Pr("BaseClose",oS,ke(e,"clsPrefix")),()=>{const{clsPrefix:t,disabled:r}=e;return f(Be,{role:"button",ariaDisabled:r,ariaLabel:"close",clsPrefix:t,class:[`${t}-base-close`,r&&`${t}-base-close--disabled`],onClick:r?void 0:e.onClick},{default:()=>f(D2,null)})}}}),nS=q({props:{onFocus:Function,onBlur:Function},setup(e){return()=>f("div",{style:"width: 0; height: 0",tabindex:0,onFocus:e.onFocus,onBlur:e.onBlur})}});function bo({originalTransform:e="",left:t=0,top:r=0,transition:o=`all .3s ${Qt.cubicBezierEaseInOut} !important`}={}){return[E("&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to",{transform:e+" scale(0.75)",left:t,top:r,opacity:0}),E("&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from",{transform:`${Qt.transformDebounceScale} ${e}`,left:t,top:r,opacity:1}),E("&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active",{transformOrigin:"center",position:"absolute",left:t,top:r,transition:o})]}var iS=k("base-loading",` + position: relative; + line-height: 0; + width: 1em; + height: 1em; +`,[O("placeholder",` + position: absolute; + left: 50%; + top: 50%; + transform: translateX(-50%) translateY(-50%); + `,[bo({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),O("icon",` + height: 1em; + width: 1em; + `,[bo()])]);const ds="1.6s";var Lr=q({name:"BaseLoading",props:{clsPrefix:{type:String,required:!0},scale:{type:Number,default:1},radius:{type:Number,default:100},strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0},show:{type:Boolean,default:!0}},setup(e){Pr("BaseLoading",iS,ke(e,"clsPrefix"))},render(){const{clsPrefix:e,radius:t,strokeWidth:r,stroke:o,scale:n}=this,i=t/n;return f("div",{class:`${e}-base-loading`,role:"img","aria-label":"loading"},f(Qo,null,{default:()=>this.show?f("svg",{class:`${e}-base-loading__icon`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:o}},f("g",null,f("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${i} ${i};270 ${i} ${i}`,begin:"0s",dur:ds,fill:"freeze",repeatCount:"indefinite"}),f("circle",{fill:"none",stroke:"currentColor","stroke-width":r,"stroke-linecap":"round",cx:i,cy:i,r:t-r/2,"stroke-dasharray":5.67*t,"stroke-dashoffset":18.48*t},f("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${i} ${i};135 ${i} ${i};450 ${i} ${i}`,begin:"0s",dur:ds,fill:"freeze",repeatCount:"indefinite"}),f("animate",{attributeName:"stroke-dashoffset",values:`${5.67*t};${1.42*t};${5.67*t}`,begin:"0s",dur:ds,fill:"freeze",repeatCount:"indefinite"})))):f("div",{key:"placeholder",class:`${e}-base-loading__placeholder`},this.$slots)}))}});function Gf(e){return Array.isArray(e)?e:[e]}const us={STOP:"STOP"};function Yf(e,t){const r=t(e);e.children!==void 0&&r!==us.STOP&&e.children.forEach(o=>Yf(o,t))}function aS(e,t={}){const{preserveGroup:r=!1}=t,o=[],n=r?a=>{a.isLeaf||(o.push(a.key),i(a.children))}:a=>{a.isLeaf||(a.isGroup||o.push(a.key),i(a.children))};function i(a){a.forEach(n)}return i(e),o}function lS(e,t){const{isLeaf:r}=e;return r!==void 0?r:!t(e)}function sS(e){return e.children}function cS(e){return e.key}function dS(){return!1}function uS(e,t){const{isLeaf:r}=e;return!(r===!1&&!Array.isArray(t(e)))}function fS(e){return e.disabled===!0}function hS(e,t){return e.isLeaf===!1&&!Array.isArray(t(e))}function fs(e){var t;return e==null?[]:Array.isArray(e)?e:(t=e.checkedKeys)!==null&&t!==void 0?t:[]}function hs(e){var t;return e==null||Array.isArray(e)?[]:(t=e.indeterminateKeys)!==null&&t!==void 0?t:[]}function pS(e,t){const r=new Set(e);return t.forEach(o=>{r.has(o)||r.add(o)}),Array.from(r)}function gS(e,t){const r=new Set(e);return t.forEach(o=>{r.has(o)&&r.delete(o)}),Array.from(r)}function vS(e){return(e==null?void 0:e.type)==="group"}function mS(e){const t=new Map;return e.forEach((r,o)=>{t.set(r.key,o)}),r=>{var o;return(o=t.get(r))!==null&&o!==void 0?o:null}}class bS extends Error{constructor(){super();this.message="SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded."}}function xS(e,t,r){return da(t.concat(e),r)}function yS(e,t){const r=new Set;return e.forEach(o=>{const n=t.treeNodeMap.get(o);if(n!==void 0){let i=n.parent;for(;i!==null&&!(i.disabled||r.has(i.key));)r.add(i.key),i=i.parent}}),r}function wS(e,t,r){const o=da(t,r),n=da(e,r,!0),i=yS(e,r),a=[];return o.forEach(l=>{(n.has(l)||i.has(l))&&a.push(l)}),a.forEach(l=>o.delete(l)),o}function ps(e,t){const{checkedKeys:r,keysToCheck:o,keysToUncheck:n,indeterminateKeys:i,cascade:a,leafOnly:l,checkStrategy:s}=e;if(!a)return o!==void 0?{checkedKeys:pS(r,o),indeterminateKeys:Array.from(i)}:n!==void 0?{checkedKeys:gS(r,n),indeterminateKeys:Array.from(i)}:{checkedKeys:Array.from(r),indeterminateKeys:Array.from(i)};const{levelTreeNodeMap:c}=t;let d;n!==void 0?d=wS(n,r,t):o!==void 0?d=xS(o,r,t):d=da(r,t);const u=s==="parent",h=s==="child"||l,g=d,b=new Set,y=Math.max.apply(null,Array.from(c.keys()));for(let v=y;v>=0;v-=1){const p=v===0,w=c.get(v);for(const P of w){if(P.isLeaf)continue;const{key:m,shallowLoaded:x}=P;if(h&&x&&P.children.forEach($=>{!$.disabled&&!$.isLeaf&&$.shallowLoaded&&g.has($.key)&&g.delete($.key)}),P.disabled||!x)continue;let C=!0,S=!1,T=!0;for(const $ of P.children){const M=$.key;if(!$.disabled){if(T&&(T=!1),g.has(M))S=!0;else if(b.has(M)){S=!0,C=!1;break}else if(C=!1,S)break}}C&&!T?(u&&P.children.forEach($=>{!$.disabled&&g.has($.key)&&g.delete($.key)}),g.add(m)):S&&b.add(m),p&&h&&g.has(m)&&g.delete(m)}}return{checkedKeys:Array.from(g),indeterminateKeys:Array.from(b)}}function da(e,t,r=!1){const{treeNodeMap:o,getChildren:n}=t,i=new Set,a=new Set(e);return e.forEach(l=>{const s=o.get(l);s!==void 0&&Yf(s,c=>{if(c.disabled)return us.STOP;const{key:d}=c;if(!i.has(d)&&(i.add(d),a.add(d),hS(c.rawNode,n))){if(r)return us.STOP;throw new bS}})}),a}function CS(e,{includeGroup:t=!1,includeSelf:r=!0},o){var n;const i=o.treeNodeMap;let a=e==null?null:(n=i.get(e))!==null&&n!==void 0?n:null;const l={keyPath:[],treeNodePath:[],treeNode:a};if(a==null?void 0:a.ignored)return l.treeNode=null,l;for(;a;)!a.ignored&&(t||!a.isGroup)&&l.treeNodePath.push(a),a=a.parent;return l.treeNodePath.reverse(),r||l.treeNodePath.pop(),l.keyPath=l.treeNodePath.map(s=>s.key),l}function SS(e){if(e.length===0)return null;const t=e[0];return t.isGroup||t.ignored||t.disabled?t.getNext():t}function kS(e,t){const r=e.siblings,o=r.length,{index:n}=e;return t?r[(n+1)%o]:n===r.length-1?null:r[n+1]}function Xf(e,t,{loop:r=!1,includeDisabled:o=!1}={}){const n=t==="prev"?PS:kS,i={reverse:t==="prev"};let a=!1,l=null;function s(c){if(c!==null){if(c===e){if(!a)a=!0;else if(!e.disabled&&!e.isGroup){l=e;return}}else if((!c.disabled||o)&&!c.ignored&&!c.isGroup){l=c;return}if(c.isGroup){const d=gs(c,i);d!==null?l=d:s(n(c,r))}else{const d=n(c,!1);if(d!==null)s(d);else{const u=$S(c);(u==null?void 0:u.isGroup)?s(n(u,r)):r&&s(n(c,!0))}}}}return s(e),l}function PS(e,t){const r=e.siblings,o=r.length,{index:n}=e;return t?r[(n-1+o)%o]:n===0?null:r[n-1]}function $S(e){return e.parent}function gs(e,t={}){const{reverse:r=!1}=t,{children:o}=e;if(o){const{length:n}=o,i=r?n-1:0,a=r?-1:n,l=r?-1:1;for(let s=i;s!==a;s+=l){const c=o[s];if(!c.disabled&&!c.ignored)if(c.isGroup){const d=gs(c,t);if(d!==null)return d}else return c}}return null}const RS={getChild(){return this.ignored?null:gs(this)},getParent(){const{parent:e}=this;return(e==null?void 0:e.isGroup)?e.getParent():e},getNext(e={}){return Xf(this,"next",e)},getPrev(e={}){return Xf(this,"prev",e)}};function TS(e,t){const r=t?new Set(t):void 0,o=[];function n(i){i.forEach(a=>{o.push(a),!(a.isLeaf||!a.children||a.ignored)&&(a.isGroup||r===void 0||r.has(a.key))&&n(a.children)})}return n(e),o}function zS(e,t){const r=e.key;for(;t;){if(t.key===r)return!0;t=t.parent}return!1}function Zf(e,t,r,o,n,i=null,a=0){const l=[];return e.forEach((s,c)=>{var d;const u=Object.create(o);if(u.rawNode=s,u.siblings=l,u.level=a,u.index=c,u.isFirstChild=c===0,u.isLastChild=c+1===e.length,u.parent=i,!u.ignored){const h=n(s);Array.isArray(h)&&(u.children=Zf(h,t,r,o,n,u,a+1))}l.push(u),t.set(u.key,u),r.has(a)||r.set(a,[]),(d=r.get(a))===null||d===void 0||d.push(u)}),l}function ua(e,t={}){const r=new Map,o=new Map,{getDisabled:n=fS,getIgnored:i=dS,getChildren:a=sS,getIsGroup:l=vS,getKey:s=cS}=t,c=Object.assign({get key(){return s(this.rawNode)},get disabled(){return n(this.rawNode)},get isGroup(){return l(this.rawNode)},get isLeaf(){return lS(this.rawNode,a)},get shallowLoaded(){return uS(this.rawNode,a)},get ignored(){return i(this.rawNode)},contains(w){return zS(this,w)}},RS),d=Zf(e,r,o,c,a);function u(w){if(w==null)return null;const P=r.get(w);return P&&!P.isGroup&&!P.ignored?P:null}function h(w){if(w==null)return null;const P=r.get(w);return P&&!P.ignored?P:null}function g(w,P){const m=h(w);return m?m.getPrev(P):null}function b(w,P){const m=h(w);return m?m.getNext(P):null}function y(w){const P=h(w);return P?P.getParent():null}function v(w){const P=h(w);return P?P.getChild():null}const p={treeNodes:d,treeNodeMap:r,levelTreeNodeMap:o,maxLevel:Math.max(...o.keys()),getChildren:a,getFlattenedNodes(w){return TS(d,w)},getNode:u,getPrev:g,getNext:b,getParent:y,getChild:v,getFirstAvailableNode(){return SS(d)},getPath(w,P={}){return CS(w,P,p)},getCheckedKeys(w,P={}){const{cascade:m=!0,leafOnly:x=!1,checkStrategy:C="all"}=P;return ps({checkedKeys:fs(w),indeterminateKeys:hs(w),cascade:m,leafOnly:x,checkStrategy:C},p)},check(w,P,m={}){const{cascade:x=!0,leafOnly:C=!1,checkStrategy:S="all"}=m;return ps({checkedKeys:fs(P),indeterminateKeys:hs(P),keysToCheck:w==null?[]:Gf(w),cascade:x,leafOnly:C,checkStrategy:S},p)},uncheck(w,P,m={}){const{cascade:x=!0,leafOnly:C=!1,checkStrategy:S="all"}=m;return ps({checkedKeys:fs(P),indeterminateKeys:hs(P),keysToUncheck:w==null?[]:Gf(w),cascade:x,leafOnly:C,checkStrategy:S},p)},getNonLeafKeys(w={}){return aS(d,w)}};return p}function vs(e,t="default"){const r=e[t];if(r===void 0)throw new Error(`[vueuc/binder]: slot[${t}] is empty.`);return r()}function Jf(e,t="default"){const r=e[t];if(r===void 0)throw new Error(`[vueuc/binder]: slot[${t}] is empty.`);const o=r();if(o.length===1)return o[0];throw new Error(`[vueuc/binder]: slot[${t}] should have exactly one child.`)}let Dr=null;function Qf(){if(Dr===null&&(Dr=document.getElementById("v-binder-view-measurer"),Dr===null)){Dr=document.createElement("div"),Dr.id="v-binder-view-measurer";const{style:e}=Dr;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(Dr)}return Dr.getBoundingClientRect()}function _S(e,t){const r=Qf();return{top:t,left:e,height:0,width:0,right:r.width-e,bottom:r.height-t}}function ms(e){const t=e.getBoundingClientRect(),r=Qf();return{left:t.left-r.left,top:t.top-r.top,bottom:r.height+r.top-t.bottom,right:r.width+r.left-t.right,width:t.width,height:t.height}}function OS(e){return e.nodeType===9?null:e.parentNode}function eh(e){if(e===null)return null;const t=OS(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:r,overflowX:o,overflowY:n}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(r+n+o))return t}return eh(t)}const ES=q({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;Ie("VBinder",(t=no())===null||t===void 0?void 0:t.proxy);const r=Pe("VBinder",null),o=W(null),n=p=>{o.value=p,r&&e.syncTargetWithParent&&r.setTargetRef(p)};let i=[];const a=()=>{let p=o.value;for(;p=eh(p),p!==null;)i.push(p);for(const w of i)ct("scroll",w,u,!0)},l=()=>{for(const p of i)Xe("scroll",p,u,!0);i=[]},s=new Set,c=p=>{s.size===0&&a(),s.has(p)||s.add(p)},d=p=>{s.has(p)&&s.delete(p),s.size===0&&l()},u=()=>{Kn(h)},h=()=>{s.forEach(p=>p())},g=new Set,b=p=>{g.size===0&&ct("resize",window,v),g.has(p)||g.add(p)},y=p=>{g.has(p)&&g.delete(p),g.size===0&&Xe("resize",window,v)},v=()=>{g.forEach(p=>p())};return Ft(()=>{Xe("resize",window,v),l()}),{targetRef:o,setTargetRef:n,addScrollListener:c,removeScrollListener:d,addResizeListener:b,removeResizeListener:y}},render(){return vs(this.$slots)}});var bs=ES,xs=q({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=Pe("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?or(Jf(this.$slots),[[t]]):Jf(this.$slots)}});const tn="@@mmoContext",MS={mounted(e,{value:t}){e[tn]={handler:void 0},typeof t=="function"&&(e[tn].handler=t,ct("mousemoveoutside",e,t))},updated(e,{value:t}){const r=e[tn];typeof t=="function"?r.handler?r.handler!==t&&(Xe("mousemoveoutside",e,r.handler),r.handler=t,ct("mousemoveoutside",e,t)):(e[tn].handler=t,ct("mousemoveoutside",e,t)):r.handler&&(Xe("mousemoveoutside",e,r.handler),r.handler=void 0)},unmounted(e){const{handler:t}=e[tn];t&&Xe("mousemoveoutside",e,t),e[tn].handler=void 0}};var IS=MS;const rn="@@coContext",AS={mounted(e,{value:t}){e[rn]={handler:void 0},typeof t=="function"&&(e[rn].handler=t,ct("clickoutside",e,t))},updated(e,{value:t}){const r=e[rn];typeof t=="function"?r.handler?r.handler!==t&&(Xe("clickoutside",e,r.handler),r.handler=t,ct("clickoutside",e,t)):(e[rn].handler=t,ct("clickoutside",e,t)):r.handler&&(Xe("clickoutside",e,r.handler),r.handler=void 0)},unmounted(e){const{handler:t}=e[rn];t&&Xe("clickoutside",e,t),e[rn].handler=void 0}};var ri=AS;function FS(e,t){console.error(`[vdirs/${e}]: ${t}`)}class BS{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(t,r){const{elementZIndex:o}=this;if(r!==void 0){t.style.zIndex=`${r}`,o.delete(t);return}const{nextZIndex:n}=this;o.has(t)&&o.get(t)+1===this.nextZIndex||(t.style.zIndex=`${n}`,o.set(t,n),this.nextZIndex=n+1,this.squashState())}unregister(t){const{elementZIndex:r}=this;r.has(t)?r.delete(t):FS("vdirs/z-index-manager/unregister-element","Element not found when unregistering."),this.squashState()}squashState(){const{elementCount:t}=this;t||(this.nextZIndex=2e3),this.nextZIndex-t>2500&&this.rearrange()}rearrange(){const t=Array.from(this.elementZIndex.entries());t.sort((r,o)=>r[1]-o[1]),this.nextZIndex=2e3,t.forEach(r=>{const o=r[0],n=this.nextZIndex++;`${n}`!==o.style.zIndex&&(o.style.zIndex=`${n}`)})}}var ys=new BS;const ws="@@ziContext",LS={mounted(e,t){const{value:r={}}=t,{zIndex:o,enabled:n}=r;ys.ensureZIndex(e,o),e[ws]={enabled:n}},updated(e,t){const{value:r={}}=t,{zIndex:o,enabled:n}=r,i=e[ws].enabled;n&&!i&&ys.ensureZIndex(e,o),e[ws].enabled=n},unmounted(e){ys.unregister(e)}};var Cs=LS;function th(e,t){console.error(`[vueuc/${e}]: ${t}`)}const{c:Nr}=xf();function rh(e){return e&-e}class DS{constructor(t,r){this.l=t,this.min=r;const o=new Array(t+1);for(let n=0;nn)throw new Error("[FinweckTree.sum]: `i` is larger than length.");let i=t*o;for(;t>0;)i+=r[t],t-=rh(t);return i}getBound(t){let r=0,o=this.l;for(;o>r;){const n=Math.floor((r+o)/2),i=this.sum(n);if(i>t){o=n;continue}else if(i{const{to:t}=e;return t!=null?t:"body"})}},render(){return this.showTeleport?this.disabled?vs(this.$slots):f(Li,{disabled:this.disabled,to:this.mergedTo},vs(this.$slots)):null}});const ks={top:"bottom",bottom:"top",left:"right",right:"left"},oh={start:"end",center:"center",end:"start"},Ps={top:"height",bottom:"height",left:"width",right:"width"},NS={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},jS={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},HS={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"};function WS(e,t,r,o,n){if(!o||n)return e;const[i,a]=e.split("-");let l=a!=null?a:"center";if(a!=="center"){const c=HS[e],d=ks[c],u=Ps[c];r[u]>t[u]&&t[c]+t[u]<=r[u]&&t[c]t[d]&&(l=oh[a])}let s=i;return!(t[i]>=r[Ps[i]])&&t[ks[i]]>=r[Ps[i]]&&(s=ks[i]),l!=="center"?`${s}-${l}`:s}function US(e,t){return t?jS[e]:NS[e]}function VS(e,t,r,o){if(o)switch(e){case"bottom-start":return{top:`${Math.round(r.top-t.top+r.height)}px`,left:`${Math.round(r.left-t.left)}px`,transform:"translateY(-100%)"};case"bottom-end":return{top:`${Math.round(r.top-t.top+r.height)}px`,left:`${Math.round(r.left-t.left+r.width)}px`,transform:"translateX(-100%) translateY(-100%)"};case"top-start":return{top:`${Math.round(r.top-t.top)}px`,left:`${Math.round(r.left-t.left)}px`,transform:""};case"top-end":return{top:`${Math.round(r.top-t.top)}px`,left:`${Math.round(r.left-t.left+r.width)}px`,transform:"translateX(-100%)"};case"right-start":return{top:`${Math.round(r.top-t.top)}px`,left:`${Math.round(r.left-t.left+r.width)}px`,transform:"translateX(-100%)"};case"right-end":return{top:`${Math.round(r.top-t.top+r.height)}px`,left:`${Math.round(r.left-t.left+r.width)}px`,transform:"translateX(-100%) translateY(-100%)"};case"left-start":return{top:`${Math.round(r.top-t.top)}px`,left:`${Math.round(r.left-t.left)}px`,transform:""};case"left-end":return{top:`${Math.round(r.top-t.top+r.height)}px`,left:`${Math.round(r.left-t.left)}px`,transform:"translateY(-100%)"};case"top":return{top:`${Math.round(r.top-t.top)}px`,left:`${Math.round(r.left-t.left+r.width/2)}px`,transform:"translateX(-50%)"};case"right":return{top:`${Math.round(r.top-t.top+r.height/2)}px`,left:`${Math.round(r.left-t.left+r.width)}px`,transform:"translateX(-100%) translateY(-50%)"};case"left":return{top:`${Math.round(r.top-t.top+r.height/2)}px`,left:`${Math.round(r.left-t.left)}px`,transform:"translateY(-50%)"};case"bottom":default:return{top:`${Math.round(r.top-t.top+r.height)}px`,left:`${Math.round(r.left-t.left+r.width/2)}px`,transform:"translateX(-50%) translateY(-100%)"}}switch(e){case"bottom-start":return{top:`${Math.round(r.top-t.top+r.height)}px`,left:`${Math.round(r.left-t.left)}px`,transform:""};case"bottom-end":return{top:`${Math.round(r.top-t.top+r.height)}px`,left:`${Math.round(r.left-t.left+r.width)}px`,transform:"translateX(-100%)"};case"top-start":return{top:`${Math.round(r.top-t.top)}px`,left:`${Math.round(r.left-t.left)}px`,transform:"translateY(-100%)"};case"top-end":return{top:`${Math.round(r.top-t.top)}px`,left:`${Math.round(r.left-t.left+r.width)}px`,transform:"translateX(-100%) translateY(-100%)"};case"right-start":return{top:`${Math.round(r.top-t.top)}px`,left:`${Math.round(r.left-t.left+r.width)}px`,transform:""};case"right-end":return{top:`${Math.round(r.top-t.top+r.height)}px`,left:`${Math.round(r.left-t.left+r.width)}px`,transform:"translateY(-100%)"};case"left-start":return{top:`${Math.round(r.top-t.top)}px`,left:`${Math.round(r.left-t.left)}px`,transform:"translateX(-100%)"};case"left-end":return{top:`${Math.round(r.top-t.top+r.height)}px`,left:`${Math.round(r.left-t.left)}px`,transform:"translateX(-100%) translateY(-100%)"};case"top":return{top:`${Math.round(r.top-t.top)}px`,left:`${Math.round(r.left-t.left+r.width/2)}px`,transform:"translateY(-100%) translateX(-50%)"};case"right":return{top:`${Math.round(r.top-t.top+r.height/2)}px`,left:`${Math.round(r.left-t.left+r.width)}px`,transform:"translateY(-50%)"};case"left":return{top:`${Math.round(r.top-t.top+r.height/2)}px`,left:`${Math.round(r.left-t.left)}px`,transform:"translateY(-50%) translateX(-100%)"};case"bottom":default:return{top:`${Math.round(r.top-t.top+r.height)}px`,left:`${Math.round(r.left-t.left+r.width/2)}px`,transform:"translateX(-50%)"}}}const KS=Nr([Nr(".v-binder-follower-container",{position:"absolute",left:"0",right:"0",top:"0",height:"0",pointerEvents:"none",zIndex:"auto"}),Nr(".v-binder-follower-content",{position:"absolute",zIndex:"auto"},[Nr("> *",{pointerEvents:"all"})])]);var $s=q({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){const t=Pe("VBinder"),r=Ve(()=>e.enabled!==void 0?e.enabled:e.show),o=W(null),n=W(null),i=()=>{const{syncTrigger:h}=e;h.includes("scroll")&&t.addScrollListener(s),h.includes("resize")&&t.addResizeListener(s)},a=()=>{t.removeScrollListener(s),t.removeResizeListener(s)};wt(()=>{r.value&&(s(),i())});const l=Vo();KS.mount({id:"vueuc/binder",head:!0,ssr:l}),Ft(()=>{a()}),qw(()=>{r.value&&s()});const s=()=>{if(!r.value)return;const h=o.value;if(h===null)return;const g=t.targetRef,{x:b,y,overlap:v}=e,p=b!==void 0&&y!==void 0?_S(b,y):ms(g),{width:w,minWidth:P,placement:m,flip:x}=e;h.setAttribute("v-placement",m),v?h.setAttribute("v-overlap",""):h.removeAttribute("v-overlap");const{style:C}=h;w==="target"?C.width=`${p.width}px`:w!==void 0?C.width=w:C.width="",P==="target"?C.minWidth=`${p.width}px`:P!==void 0?C.minWidth=P:C.minWidth="";const S=ms(h),T=ms(n.value),$=WS(m,p,S,x,v),M=US($,v),{left:D,top:_,transform:I}=VS($,T,p,v);h.setAttribute("v-placement",$),h.style.transform=`translateX(${D}) translateY(${_}) ${I}`,h.style.transformOrigin=M};Ue(r,h=>{h?(i(),c()):a()});const c=()=>{Ct().then(s).catch(h=>console.error(h))};["placement","x","y","flip","width","overlap","minWidth"].forEach(h=>{Ue(ke(e,h),s)}),["teleportDisabled"].forEach(h=>{Ue(ke(e,h),c)}),Ue(ke(e,"syncTrigger"),h=>{h.includes("resize")?t.addResizeListener(s):t.removeResizeListener(s),h.includes("scroll")?t.addScrollListener(s):t.removeScrollListener(s)});const d=qo(),u=Ve(()=>{const{to:h}=e;if(h!==void 0)return h;!d.value});return{VBinder:t,mergedEnabled:r,offsetContainerRef:n,followerRef:o,mergedTo:u,syncPosition:s}},render(){return f(Ss,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{const e=f("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[f("div",{class:"v-binder-follower-content",ref:"followerRef"},this.$slots)]);return this.zindexable?or(e,[[Cs,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):e}})}}),nh=function(){if(typeof Map!="undefined")return Map;function e(t,r){var o=-1;return t.some(function(n,i){return n[0]===r?(o=i,!0):!1}),o}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(r){var o=e(this.__entries__,r),n=this.__entries__[o];return n&&n[1]},t.prototype.set=function(r,o){var n=e(this.__entries__,r);~n?this.__entries__[n][1]=o:this.__entries__.push([r,o])},t.prototype.delete=function(r){var o=this.__entries__,n=e(o,r);~n&&o.splice(n,1)},t.prototype.has=function(r){return!!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(r,o){o===void 0&&(o=null);for(var n=0,i=this.__entries__;n0},e.prototype.connect_=function(){!Rs||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),JS?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!Rs||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,o=r===void 0?"":r,n=ZS.some(function(i){return!!~o.indexOf(i)});n&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),ih=function(e,t){for(var r=0,o=Object.keys(t);r0},e}(),sh=typeof WeakMap!="undefined"?new WeakMap:new nh,ch=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=QS.getInstance(),o=new c5(t,r,this);sh.set(this,o)}return e}();["observe","unobserve","disconnect"].forEach(function(e){ch.prototype[e]=function(){var t;return(t=sh.get(this))[e].apply(t,arguments)}});var d5=function(){return typeof fa.ResizeObserver!="undefined"?fa.ResizeObserver:ch}();class u5{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new d5(this.handleResize),this.elHandlersMap=new Map}handleResize(t){for(const r of t){const o=this.elHandlersMap.get(r.target);o!==void 0&&o(r)}}registerHandler(t,r){this.elHandlersMap.set(t,r),this.observer.observe(t)}unregisterHandler(t){!this.elHandlersMap.has(t)||(this.elHandlersMap.delete(t),this.observer.unobserve(t))}}var dh=new u5,oi=q({name:"ResizeObserver",props:{onResize:Function},setup(e){return{registered:!1,handleResize(t){const{onResize:r}=e;r!==void 0&&r(t)}}},mounted(){const e=this.$el;e===void 0?th("resize-observer","$el does not exist."):e.nextElementSibling!==e.nextSibling?th("resize-observer","$el can not be observed (it may be a text node)."):e.nextElementSibling!==null&&(dh.registerHandler(e.nextElementSibling,this.handleResize),this.registered=!0)},beforeUnmount(){this.registered&&dh.unregisterHandler(this.$el.nextElementSibling)},render(){return Ae(this.$slots,"default")}});const f5=Nr(".v-vl",{maxHeight:"inherit",height:"100%",overflow:"auto",minWidth:"1px"},[Nr("&:not(.v-vl--show-scrollbar)",{scrollbarWidth:"none"},[Nr("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",{width:0,height:0,display:"none"})])]);var uh=q({name:"VirtualList",inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:"div"},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:"key"},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},setup(e){const t=Vo();f5.mount({id:"vueuc/virtual-list",head:!0,ssr:t}),wt(()=>{const{defaultScrollIndex:m,defaultScrollKey:x}=e;m!=null?u({index:m}):x!=null&&u({key:x})});const r=R(()=>{const m=new Map,{keyField:x}=e;return e.items.forEach((C,S)=>{m.set(C[x],S)}),m}),o=W(null),n=W(void 0),i=new Map,a=R(()=>{const{items:m,itemSize:x,keyField:C}=e,S=new DS(m.length,x);return m.forEach((T,$)=>{const M=T[C],D=i.get(M);D!==void 0&&S.add($,D)}),S}),l=W(0),s=W(0),c=Ve(()=>Math.max(a.value.getBound(s.value-Ot(e.paddingTop))-1,0)),d=R(()=>{const{value:m}=n;if(m===void 0)return[];const{items:x,itemSize:C}=e,S=c.value,T=Math.min(S+Math.ceil(m/C+1),x.length-1),$=[];for(let M=S;M<=T;++M)$.push(x[M]);return $}),u=m=>{const{left:x,top:C,index:S,key:T,position:$,behavior:M,debounce:D=!0}=m;if(x!==void 0||C!==void 0)g(x,C,M);else if(S!==void 0)h(S,M,D);else if(T!==void 0){const _=r.value.get(T);_!==void 0&&h(_,M,D)}else $==="bottom"?g(0,Number.MAX_SAFE_INTEGER,M):$==="top"&&g(0,0,M)};function h(m,x,C){const{value:S}=a,T=S.sum(m)+Ot(e.paddingTop);if(!C)o.value.scrollTo({left:0,top:T,behavior:x});else{const{scrollTop:$,offsetHeight:M}=o.value;if(T>$){const D=S.get(m);T+D<=$+M||o.value.scrollTo({left:0,top:T+D-M,behavior:x})}else o.value.scrollTo({left:0,top:T,behavior:x})}p=m}function g(m,x,C){o.value.scrollTo({left:m,top:x,behavior:C})}function b(m,x){var C;if(e.ignoreItemResize)return;const{value:S}=a,T=r.value.get(m),$=x.target.offsetHeight;$-e.itemSize===0?i.delete(m):i.set(m,$-e.itemSize);const D=$-S.get(T);D!==0&&(w!==void 0&&T<=w&&((C=o.value)===null||C===void 0||C.scrollBy(0,D)),S.add(T,D),l.value++)}function y(m){Kn(P);const{onScroll:x}=e;x!==void 0&&x(m)}function v(m){n.value=m.contentRect.height;const{onResize:x}=e;x!==void 0&&x(m)}let p,w;function P(){const{value:m}=o;m!=null&&(w=p!=null?p:c.value,p=void 0,s.value=o.value.scrollTop)}return{listHeight:n,listStyle:{overflow:"auto"},keyToIndex:r,itemsStyle:R(()=>{const{itemResizable:m}=e,x=Et(a.value.sum());return l.value,[e.itemsStyle,{boxSizing:"content-box",height:m?"":x,minHeight:m?x:"",paddingTop:Et(e.paddingTop),paddingBottom:Et(e.paddingBottom)}]}),visibleItemsStyle:R(()=>(l.value,{transform:`translate3d(0, ${Et(a.value.sum(c.value))}, 0)`})),viewportItems:d,listElRef:o,itemsElRef:W(null),scrollTo:u,handleListResize:v,handleListScroll:y,handleItemResize:b}},render(){const{itemResizable:e,keyField:t,keyToIndex:r,visibleItemsTag:o}=this;return f(oi,{onResize:this.handleListResize},{default:()=>{var n,i;return f("div",Zt(this.$attrs,{class:["v-vl",this.showScrollbar&&"v-vl--show-scrollbar"],onScroll:this.handleListScroll,onWheel:this.onWheel,ref:"listElRef"}),[this.items.length!==0?f("div",{ref:"itemsElRef",class:"v-vl-items",style:this.itemsStyle},[f(o,Object.assign({class:"v-vl-visible-items",style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>this.viewportItems.map(a=>{const l=a[t],s=r.get(l),c=this.$slots.default({item:a,index:s})[0];return e?f(oi,{key:l,onResize:d=>this.handleItemResize(l,d)},{default:()=>c}):(c.key=l,c)})})]):(i=(n=this.$slots).empty)===null||i===void 0?void 0:i.call(n)])}})}});const xo="v-hidden",h5=Nr("[v-hidden]",{display:"none!important"});var fh=q({name:"Overflow",props:{getCounter:Function,getTail:Function,updateCounter:Function,onUpdateOverflow:Function},setup(e,{slots:t}){const r=W(null),o=W(null);function n(){const{value:a}=r,{getCounter:l,getTail:s}=e;let c;if(l!==void 0?c=l():c=o.value,!a||!c)return;c.hasAttribute(xo)&&c.removeAttribute(xo);const{children:d}=a,u=a.offsetWidth,h=[],g=t.tail?s==null?void 0:s():null;let b=g?g.offsetWidth:0,y=!1;const v=a.children.length-(t.tail?1:0);for(let w=0;wu){const{updateCounter:x}=e;for(let C=w;C>=0;--C){const S=v-1-C;x!==void 0?x(S):c.textContent=`${S}`;const T=c.offsetWidth;if(b-=h[C],b+T<=u||C===0){y=!0,w=C-1,g&&(w===-1?(g.style.maxWidth=`${u-T}px`,g.style.boxSizing="border-box"):g.style.maxWidth="");break}}}}const{onUpdateOverflow:p}=e;y?p!==void 0&&p(!0):(p!==void 0&&p(!1),c.setAttribute(xo,""))}const i=Vo();return h5.mount({id:"vueuc/overflow",head:!0,ssr:i}),wt(n),{selfRef:r,counterRef:o,sync:n}},render(){const{$slots:e}=this;return Ct(this.sync),f("div",{class:"v-overflow",ref:"selfRef"},[Ae(e,"default"),e.counter?e.counter():f("span",{style:{display:"inline-block"},ref:"counterRef"}),e.tail?e.tail():null])}});const _e={neutralBase:"#FFF",neutralInvertBase:"#000",neutralTextBase:"#000",neutralPopover:"#fff",neutralCard:"#fff",neutralModal:"#fff",neutralBody:"#fff",alpha1:"0.82",alpha2:"0.72",alpha3:"0.38",alpha4:"0.24",alpha5:"0.18",alphaClose:"0.52",alphaDisabled:"0.5",alphaDisabledInput:"0.02",alphaPending:"0.05",alphaTablePending:"0.02",alphaPressed:"0.07",alphaAvatar:"0.2",alphaRail:"0.14",alphaProgressRail:".08",alphaBorder:"0.12",alphaDivider:"0.06",alphaInput:"0",alphaAction:"0.02",alphaTab:"0.04",alphaScrollbar:"0.25",alphaScrollbarHover:"0.4",alphaCode:"0.05",alphaTag:"0.02",primaryHover:"#36ad6a",primaryDefault:"#18a058",primaryActive:"#0c7a43",primarySuppl:"#36ad6a",infoHover:"#4098fc",infoDefault:"#2080f0",infoActive:"#1060c9",infoSuppl:"#4098fc",errorHover:"#de576d",errorDefault:"#d03050",errorActive:"#ab1f3f",errorSuppl:"#de576d",warningHover:"#fcb040",warningDefault:"#f0a020",warningActive:"#c97c10",warningSuppl:"#fcb040",successHover:"#36ad6a",successDefault:"#18a058",successActive:"#0c7a43",successSuppl:"#36ad6a"},p5=ho(_e.neutralBase),hh=ho(_e.neutralInvertBase),g5="rgba("+hh.slice(0,3).join(", ")+", ";function ph(e){return g5+String(e)+")"}function kt(e){const t=Array.from(hh);return t[3]=Number(e),Ye(p5,t)}const v5=Object.assign(Object.assign({name:"common"},Qt),{baseColor:_e.neutralBase,primaryColor:_e.primaryDefault,primaryColorHover:_e.primaryHover,primaryColorPressed:_e.primaryActive,primaryColorSuppl:_e.primarySuppl,infoColor:_e.infoDefault,infoColorHover:_e.infoHover,infoColorPressed:_e.infoActive,infoColorSuppl:_e.infoSuppl,successColor:_e.successDefault,successColorHover:_e.successHover,successColorPressed:_e.successActive,successColorSuppl:_e.successSuppl,warningColor:_e.warningDefault,warningColorHover:_e.warningHover,warningColorPressed:_e.warningActive,warningColorSuppl:_e.warningSuppl,errorColor:_e.errorDefault,errorColorHover:_e.errorHover,errorColorPressed:_e.errorActive,errorColorSuppl:_e.errorSuppl,textColorBase:_e.neutralTextBase,textColor1:"rgb(31, 34, 37)",textColor2:"rgb(51, 54, 57)",textColor3:"rgb(158, 164, 170)",textColorDisabled:kt(_e.alpha4),placeholderColor:kt(_e.alpha4),placeholderColorDisabled:kt(_e.alpha5),iconColor:kt(_e.alpha4),iconColorHover:Xi(kt(_e.alpha4),{lightness:.75}),iconColorPressed:Xi(kt(_e.alpha4),{lightness:.9}),iconColorDisabled:kt(_e.alpha5),opacity1:_e.alpha1,opacity2:_e.alpha2,opacity3:_e.alpha3,opacity4:_e.alpha4,opacity5:_e.alpha5,dividerColor:"rgb(239, 239, 245)",borderColor:"rgb(224, 224, 230)",closeColor:kt(Number(_e.alphaClose)),closeColorHover:kt(Number(_e.alphaClose)*1.25),closeColorPressed:kt(Number(_e.alphaClose)*.8),closeColorDisabled:kt(_e.alpha4),clearColor:kt(_e.alpha4),clearColorHover:Xi(kt(_e.alpha4),{lightness:.75}),clearColorPressed:Xi(kt(_e.alpha4),{lightness:.9}),scrollbarColor:ph(_e.alphaScrollbar),scrollbarColorHover:ph(_e.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:kt(_e.alphaProgressRail),railColor:"rgb(219, 219, 223)",popoverColor:_e.neutralPopover,tableColor:_e.neutralCard,cardColor:_e.neutralCard,modalColor:_e.neutralModal,bodyColor:_e.neutralBody,tagColor:"rgb(250, 250, 252)",avatarColor:kt(_e.alphaAvatar),invertedColor:"rgb(0, 20, 40)",inputColor:kt(_e.alphaInput),codeColor:"rgb(244, 244, 248)",tabColor:"rgb(247, 247, 250)",actionColor:"rgb(250, 250, 252)",tableHeaderColor:"rgb(250, 250, 252)",hoverColor:"rgb(243, 243, 245)",tableColorHover:"rgba(0, 0, 100, 0.02)",pressedColor:"rgb(237, 237, 239)",opacityDisabled:_e.alphaDisabled,inputColorDisabled:"rgb(250, 250, 252)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .08), 0 3px 6px 0 rgba(0, 0, 0, .06), 0 5px 12px 4px rgba(0, 0, 0, .04)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"});var De=v5,m5={iconSizeSmall:"34px",iconSizeMedium:"40px",iconSizeLarge:"46px",iconSizeHuge:"52px"};const b5=e=>{const{textColorDisabled:t,iconColor:r,textColor2:o,fontSizeSmall:n,fontSizeMedium:i,fontSizeLarge:a,fontSizeHuge:l}=e;return Object.assign(Object.assign({},m5),{fontSizeSmall:n,fontSizeMedium:i,fontSizeLarge:a,fontSizeHuge:l,textColor:t,iconColor:r,extraTextColor:o})},x5={name:"Empty",common:De,self:b5};var Ts=x5,y5=k("empty",` + display: flex; + flex-direction: column; + align-items: center; + font-size: var(--font-size); +`,[O("icon",` + width: var(--icon-size); + height: var(--icon-size); + font-size: var(--icon-size); + line-height: var(--icon-size); + color: var(--icon-color); + transition: + color .3s var(--bezier); + `),O("description",` + margin-top: 8px; + transition: color .3s var(--bezier); + color: var(--text-color); + `),O("extra",` + text-align: center; + transition: color .3s var(--bezier); + margin-top: 12px; + color: var(--extra-text-color); + `)]);const w5=Object.assign(Object.assign({},ye.props),{description:{type:String,default:void 0},showDescription:{type:Boolean,default:!0},size:{type:String,default:"medium"},renderIcon:Function});var gh=q({name:"Empty",props:w5,setup(e){const{mergedClsPrefixRef:t}=Ee(e),r=ye("Empty","Empty",y5,Ts,e,t),{localeRef:o}=kr("Empty"),n=Pe(Br,null),i=R(()=>{var l,s,c;return(l=e.description)!==null&&l!==void 0?l:(c=(s=n==null?void 0:n.mergedComponentPropsRef.value)===null||s===void 0?void 0:s.Empty)===null||c===void 0?void 0:c.description}),a=R(()=>{var l,s;return((s=(l=n==null?void 0:n.mergedComponentPropsRef.value)===null||l===void 0?void 0:l.Empty)===null||s===void 0?void 0:s.renderIcon)||(()=>f(W2,null))});return{mergedClsPrefix:t,mergedRenderIcon:a,localizedDescription:R(()=>i.value||o.value.description),cssVars:R(()=>{const{size:l}=e,{common:{cubicBezierEaseInOut:s},self:{[ce("iconSize",l)]:c,[ce("fontSize",l)]:d,textColor:u,iconColor:h,extraTextColor:g}}=r.value;return{"--icon-size":c,"--font-size":d,"--bezier":s,"--text-color":u,"--icon-color":h,"--extra-text-color":g}})}},render(){const{$slots:e,mergedClsPrefix:t}=this;return f("div",{class:`${t}-empty`,style:this.cssVars},f("div",{class:`${t}-empty__icon`},Ae(e,"icon",void 0,()=>[f(Be,{clsPrefix:t},{default:this.mergedRenderIcon})])),this.showDescription?f("div",{class:`${t}-empty__description`},Ae(e,"default",void 0,()=>[this.localizedDescription])):null,e.extra?f("div",{class:`${t}-empty__extra`},Ae(e,"extra")):null)}});const C5=e=>{const{scrollbarColor:t,scrollbarColorHover:r}=e;return{color:t,colorHover:r}},S5={name:"Scrollbar",common:De,self:C5};var yo=S5;const{cubicBezierEaseInOut:vh}=Qt;function ni({name:e="fade-in",enterDuration:t="0.2s",leaveDuration:r="0.2s",enterCubicBezier:o=vh,leaveCubicBezier:n=vh}={}){return[E(`&.${e}-transition-enter-active`,{transition:`all ${t} ${o}!important`}),E(`&.${e}-transition-leave-active`,{transition:`all ${r} ${n}!important`}),E(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),E(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}var k5=k("scrollbar",` + overflow: hidden; + position: relative; + z-index: auto; + height: 100%; + width: 100%; +`,[E(">",[k("scrollbar-container",` + width: 100%; + overflow: scroll; + height: 100%; + max-height: inherit; + scrollbar-width: none; + `,[E("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` + width: 0; + height: 0; + display: none; + `),E(">",[k("scrollbar-content",` + box-sizing: border-box; + min-width: 100%; + `)])]),k("scrollbar-rail",` + position: absolute; + pointer-events: none; + user-select: none; + `,[j("horizontal",` + left: 2px; + right: 2px; + bottom: 4px; + height: var(--scrollbar-height); + `,[E(">",[O("scrollbar",` + height: var(--scrollbar-height); + border-radius: var(--scrollbar-border-radius); + right: 0; + `)])]),j("vertical",` + right: 4px; + top: 2px; + bottom: 2px; + width: var(--scrollbar-width); + `,[E(">",[O("scrollbar",` + width: var(--scrollbar-width); + border-radius: var(--scrollbar-border-radius); + bottom: 0; + `)])]),j("disabled",[E(">",[O("scrollbar",{pointerEvents:"none"})])]),E(">",[O("scrollbar",` + position: absolute; + cursor: pointer; + pointer-events: all; + background-color: var(--scrollbar-color); + transition: background-color .2s var(--scrollbar-bezier); + `,[ni(),E("&:hover",{backgroundColor:"var(--scrollbar-color-hover)"})])])])])]);const P5=Object.assign(Object.assign({},ye.props),{size:{type:Number,default:5},duration:{type:Number,default:0},scrollable:{type:Boolean,default:!0},xScrollable:{type:Boolean,default:!1},container:Function,content:Function,containerStyle:[String,Object],contentClass:String,contentStyle:[String,Object],horizontalRailStyle:[String,Object],verticalRailStyle:[String,Object],onScroll:Function,onWheel:Function,onResize:Function,internalOnUpdateScrollLeft:Function}),$5=q({name:"Scrollbar",props:P5,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t}=Ee(e),r=W(null),o=W(null),n=W(null),i=W(null),a=W(null),l=W(null),s=W(null),c=W(null),d=W(null),u=W(null),h=W(0),g=W(0),b=W(!1),y=W(!1);let v=!1,p=!1,w,P,m=0,x=0,C=0,S=0;const T=tC(),$=R(()=>{const{value:J}=s,{value:X}=a,{value:de}=d;return J===null||X===null||de===null?0:Math.min(J,de*J/X+e.size*1.5)}),M=R(()=>`${$.value}px`),D=R(()=>{const{value:J}=c,{value:X}=l,{value:de}=u;return J===null||X===null||de===null?0:de*J/X+e.size*1.5}),_=R(()=>`${D.value}px`),I=R(()=>{const{value:J}=s,{value:X}=h,{value:de}=a,{value:we}=d;return J===null||de===null||we===null?0:X/(de-J)*(we-$.value)}),G=R(()=>`${I.value}px`),U=R(()=>{const{value:J}=c,{value:X}=g,{value:de}=l,{value:we}=u;return J===null||de===null||we===null?0:X/(de-J)*(we-D.value)}),N=R(()=>`${U.value}px`),F=R(()=>{const{value:J}=s,{value:X}=a;return J!==null&&X!==null&&X>J}),A=R(()=>{const{value:J}=c,{value:X}=l;return J!==null&&X!==null&&X>J}),re=R(()=>{const{container:J}=e;return J?J():r.value}),be=R(()=>{const{content:J}=e;return J?J():o.value}),Se=K,Te=J=>{const{onResize:X}=e;X&&X(J),K()},Oe=(J,X)=>{if(!e.scrollable)return;if(typeof J=="number"){Re(J,X!=null?X:0,0,!1,"auto");return}const{left:de,top:we,index:V,elSize:oe,position:pe,behavior:ve,el:$e,debounce:Me=!0}=J;(de!==void 0||we!==void 0)&&Re(de!=null?de:0,we!=null?we:0,0,!1,ve),$e!==void 0?Re(0,$e.offsetTop,$e.offsetHeight,Me,ve):V!==void 0&&oe!==void 0?Re(0,V*oe,oe,Me,ve):pe==="bottom"?Re(0,Number.MAX_SAFE_INTEGER,0,!1,ve):pe==="top"&&Re(0,0,0,!1,ve)};function Re(J,X,de,we,V){const{value:oe}=re;if(!!oe){if(we){const{scrollTop:pe,offsetHeight:ve}=oe;if(X>pe){X+de<=pe+ve||oe.scrollTo({left:J,top:X+de-ve,behavior:V});return}}oe.scrollTo({left:J,top:X,behavior:V})}}function Z(){Ce(),te(),K()}function fe(){ee()}function ee(){xe(),ie()}function xe(){P!==void 0&&window.clearTimeout(P),P=window.setTimeout(()=>{y.value=!1},e.duration)}function ie(){w!==void 0&&window.clearTimeout(w),w=window.setTimeout(()=>{b.value=!1},e.duration)}function Ce(){w!==void 0&&window.clearTimeout(w),b.value=!0}function te(){P!==void 0&&window.clearTimeout(P),y.value=!0}function ge(J){const{onScroll:X}=e;X&&X(J),z()}function z(){const{value:J}=re;J&&(h.value=J.scrollTop,g.value=J.scrollLeft)}function L(){const{value:J}=be;J&&(a.value=J.offsetHeight,l.value=J.offsetWidth);const{value:X}=re;X&&(s.value=X.offsetHeight,c.value=X.offsetWidth);const{value:de}=i,{value:we}=n;de&&(u.value=de.offsetWidth),we&&(d.value=we.offsetHeight)}function K(){!e.scrollable||(L(),z())}function Q(J){J.preventDefault(),J.stopPropagation(),p=!0,ct("mousemove",window,B,!0),ct("mouseup",window,Y,!0),x=g.value,C=J.clientX}function B(J){if(!p)return;w!==void 0&&window.clearTimeout(w),P!==void 0&&window.clearTimeout(P);const{value:X}=c,{value:de}=l,{value:we}=D;if(X===null||de===null)return;const oe=(J.clientX-C)*(de-X)/(X-we),pe=de-X;let ve=x+oe;ve=Math.min(pe,ve),ve=Math.max(ve,0);const{value:$e}=re;if($e){$e.scrollLeft=ve;const{internalOnUpdateScrollLeft:Me}=e;Me&&Me(ve)}}function Y(J){J.preventDefault(),J.stopPropagation(),Xe("mousemove",window,B,!0),Xe("mouseup",window,Y,!0),p=!1,K();const{value:X}=re;(X==null?void 0:X.contains(J.target))||ee()}function ae(J){J.preventDefault(),J.stopPropagation(),v=!0,ct("mousemove",window,le,!0),ct("mouseup",window,se,!0),m=h.value,S=J.clientY}function le(J){if(!v)return;w!==void 0&&window.clearTimeout(w),P!==void 0&&window.clearTimeout(P);const{value:X}=s,{value:de}=a,{value:we}=$;if(X===null||de===null)return;const oe=(J.clientY-S)*(de-X)/(X-we),pe=de-X;let ve=m+oe;ve=Math.min(pe,ve),ve=Math.max(ve,0);const{value:$e}=re;$e&&($e.scrollTop=ve)}function se(J){J.preventDefault(),J.stopPropagation(),Xe("mousemove",window,le,!0),Xe("mouseup",window,se,!0),v=!1,K();const{value:X}=re;(X==null?void 0:X.contains(J.target))||ee()}mr(()=>{const{value:J}=A,{value:X}=F,{value:de}=t,{value:we}=i,{value:V}=n;we&&(J?we.classList.remove(`${de}-scrollbar-rail--disabled`):we.classList.add(`${de}-scrollbar-rail--disabled`)),V&&(X?V.classList.remove(`${de}-scrollbar-rail--disabled`):V.classList.add(`${de}-scrollbar-rail--disabled`))}),wt(()=>{e.container||K()}),Ft(()=>{w!==void 0&&window.clearTimeout(w),P!==void 0&&window.clearTimeout(P),Xe("mousemove",window,le,!0),Xe("mouseup",window,se,!0)});const ne=ye("Scrollbar","Scrollbar",k5,yo,e,t);return{sync:K,scrollTo:Oe,mergedClsPrefix:t,containerScrollTop:h,containerRef:r,contentRef:o,yRailRef:n,xRailRef:i,needYBar:F,needXBar:A,yBarSizePx:M,xBarSizePx:_,yBarTopPx:G,xBarLeftPx:N,isShowXBar:b,isShowYBar:y,isIos:T,handleScroll:ge,handleContentResize:Se,handleContainerResize:Te,handleMouseEnterWrapper:Z,handleMouseLeaveWrapper:fe,handleYScrollMouseDown:ae,handleXScrollMouseDown:Q,cssVars:R(()=>{const{common:{cubicBezierEaseInOut:J,scrollbarBorderRadius:X,scrollbarHeight:de,scrollbarWidth:we},self:{color:V,colorHover:oe}}=ne.value;return{"--scrollbar-bezier":J,"--scrollbar-color":V,"--scrollbar-color-hover":oe,"--scrollbar-border-radius":X,"--scrollbar-width":we,"--scrollbar-height":de}})}},render(){const{$slots:e,mergedClsPrefix:t}=this;if(!this.scrollable)return Ae(e,"default");const r=()=>f("div",Zt(this.$attrs,{class:`${t}-scrollbar`,style:this.cssVars,onMouseenter:this.handleMouseEnterWrapper,onMouseleave:this.handleMouseLeaveWrapper}),[this.container?Ae(e,"default"):f("div",{ref:"containerRef",class:`${t}-scrollbar-container`,style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},f(oi,{onResize:this.handleContentResize},{default:()=>f("div",{ref:"contentRef",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:[`${t}-scrollbar-content`,this.contentClass]},e)})),f("div",{ref:"yRailRef",class:`${t}-scrollbar-rail ${t}-scrollbar-rail--vertical`,style:[this.horizontalRailStyle]},f(ht,{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?f("div",{class:`${t}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),f("div",{ref:"xRailRef",class:`${t}-scrollbar-rail ${t}-scrollbar-rail--horizontal`,style:[this.verticalRailStyle]},f(ht,{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?f("div",{class:`${t}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,left:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))]);return this.container?r():f(oi,{onResize:this.handleContainerResize},{default:r})}});var $r=$5;const R5=f(L2);function T5(e,t){return f(ht,{name:"fade-in-scale-up-transition"},{default:()=>e?f(Be,{clsPrefix:t,class:`${t}-base-select-option__check`},{default:()=>R5}):null})}var mh=q({name:"NBaseSelectOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(e){const{valueRef:t,pendingTmNodeRef:r,multipleRef:o,valueSetRef:n,renderLabelRef:i,renderOptionRef:a,handleOptionClick:l,handleOptionMouseEnter:s}=Pe(ss),c=Ve(()=>{const{value:g}=r;return g?e.tmNode.key===g.key:!1});function d(g){const{tmNode:b}=e;b.disabled||l(g,b)}function u(g){const{tmNode:b}=e;b.disabled||s(g,b)}function h(g){const{tmNode:b}=e,{value:y}=c;b.disabled||y||s(g,b)}return{multiple:o,isGrouped:Ve(()=>{const{tmNode:g}=e,{parent:b}=g;return b&&b.rawNode.type==="group"}),isPending:c,isSelected:Ve(()=>{const{value:g}=t,{value:b}=o;if(g===null)return!1;const y=e.tmNode.rawNode.value;if(b){const{value:v}=n;return v.has(y)}else return g===y}),renderLabel:i,renderOption:a,handleMouseMove:h,handleMouseEnter:u,handleClick:d}},render(){const{clsPrefix:e,tmNode:{rawNode:t},isSelected:r,isPending:o,isGrouped:n,multiple:i,renderOption:a,renderLabel:l,handleClick:s,handleMouseEnter:c,handleMouseMove:d}=this,h=T5(i&&r,e),g=l?[l(t,r),h]:[Ke(t.label,t,r),h],b=f("div",{class:[`${e}-base-select-option`,t.class,{[`${e}-base-select-option--disabled`]:t.disabled,[`${e}-base-select-option--selected`]:r,[`${e}-base-select-option--grouped`]:n,[`${e}-base-select-option--pending`]:o}],style:t.style,onClick:s,onMouseenter:c,onMousemove:d},f("div",{class:`${e}-base-select-option__content`},g));return t.render?t.render({node:b,option:t,selected:r}):a?a({node:b,option:t,selected:r}):b}}),bh=q({name:"NBaseSelectGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{renderLabelRef:e,renderOptionRef:t}=Pe(ss);return{renderLabel:e,renderOption:t}},render(){const{clsPrefix:e,renderLabel:t,renderOption:r,tmNode:{rawNode:o}}=this,n=t?t(o,!1):Ke(o.label,o,!1),i=f("div",{class:`${e}-base-select-group-header`},n);return o.render?o.render({node:i,option:o}):r?r({node:i,option:o,selected:!1}):i}});const{cubicBezierEaseIn:xh,cubicBezierEaseOut:yh,transformDebounceScale:z5}=Qt;function jr({transformOrigin:e="inherit",duration:t=".2s",enterScale:r=".9",originalTransform:o="",originalTransition:n=""}={}){return[E("&.fade-in-scale-up-transition-leave-active",{transformOrigin:e,transition:`opacity ${t} ${xh}, transform ${t} ${xh} ${n&&","+n}`}),E("&.fade-in-scale-up-transition-enter-active",{transformOrigin:e,transition:`opacity ${t} ${yh}, transform ${t} ${yh} ${n&&","+n}`}),E("&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to",{opacity:0,transform:`${o} scale(${r})`}),E("&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to",{opacity:1,transform:`${o} scale(${z5})`})]}var _5=k("base-select-menu",` + line-height: 1.5; + outline: none; + z-index: 0; + position: relative; + border-radius: var(--border-radius); + transition: + background-color .3s var(--bezier), + box-shadow .3s var(--bezier); + background-color: var(--color); +`,[j("multiple",[k("base-select-option",` + padding-right: 28px; + `)]),k("scrollbar",` + max-height: var(--height); + `),k("virtual-list",` + max-height: var(--height); + `),k("base-select-option",` + min-height: var(--option-height); + font-size: var(--option-font-size); + display: flex; + align-items: center; + `,[O("content",` + white-space: nowrap; + text-overflow: ellipsis; + overflow: hidden; + `)]),k("base-select-group-header",` + min-height: var(--option-height); + font-size: .93em; + display: flex; + align-items: center; + `),k("base-select-menu-option-wrapper",` + position: relative; + width: 100%; + `),O("loading, empty",` + display: flex; + padding: 12px 32px; + flex: 1; + justify-content: center; + `),O("loading",` + color: var(--loading-color); + font-size: var(--loading-size); + `),O("action",` + padding: 8px var(--option-padding-left); + font-size: var(--option-font-size); + transition: + color .3s var(--bezier); + border-color .3s var(--bezier); + border-top: 1px solid var(--action-divider-color); + color: var(--action-text-color); + `),k("base-select-group-header",` + position: relative; + cursor: default; + padding: var(--option-padding); + color: var(--group-header-text-color); + `),k("base-select-option",` + cursor: pointer; + position: relative; + padding: var(--option-padding); + transition: + background-color .3s var(--bezier), + color .3s var(--bezier), + opacity .3s var(--bezier); + box-sizing: border-box; + color: var(--option-text-color); + opacity: 1; + `,[E("&:active",` + color: var(--option-text-color-pressed); + `),j("grouped",` + padding-left: calc(var(--option-padding-left) * 1.5); + `),j("pending",` + background-color: var(--option-color-pending); + `),j("selected",` + color: var(--option-text-color-active); + background-color: var(--option-color-active); + `),j("disabled",` + cursor: not-allowed; + `,[qe("selected",` + color: var(--option-text-color-disabled); + `),j("selected",` + opacity: var(--option-opacity-disabled); + `)]),O("check",` + font-size: 16px; + position: absolute; + right: 8px; + top: calc(50% - 7px); + color: var(--option-check-color); + transition: color .3s var(--bezier); + `,[jr({enterScale:"0.5"})])])]),O5={height:"calc(var(--option-height) * 7.6)",paddingSmall:"4px 0",paddingMedium:"4px 0",paddingLarge:"4px 0",paddingHuge:"4px 0",optionPaddingSmall:"0 12px",optionPaddingMedium:"0 12px",optionPaddingLarge:"0 12px",optionPaddingHuge:"0 12px",loadingSize:"18px"};const E5=e=>{const{borderRadius:t,popoverColor:r,textColor3:o,dividerColor:n,textColor2:i,primaryColorPressed:a,textColorDisabled:l,primaryColor:s,opacityDisabled:c,hoverColor:d,fontSizeSmall:u,fontSizeMedium:h,fontSizeLarge:g,fontSizeHuge:b,heightSmall:y,heightMedium:v,heightLarge:p,heightHuge:w}=e;return Object.assign(Object.assign({},O5),{optionFontSizeSmall:u,optionFontSizeMedium:h,optionFontSizeLarge:g,optionFontSizeHuge:b,optionHeightSmall:y,optionHeightMedium:v,optionHeightLarge:p,optionHeightHuge:w,borderRadius:t,color:r,groupHeaderTextColor:o,actionDividerColor:n,optionTextColor:i,optionTextColorPressed:a,optionTextColorDisabled:l,optionTextColorActive:s,optionOpacityDisabled:c,optionCheckColor:s,optionColorPending:d,optionColorActive:d,actionTextColor:i,loadingColor:s})},M5=St({name:"InternalSelectMenu",common:De,peers:{Scrollbar:yo,Empty:Ts},self:E5});var wh=M5,I5=q({name:"InternalSelectMenu",props:Object.assign(Object.assign({},ye.props),{clsPrefix:{type:String,required:!0},scrollable:{type:Boolean,default:!0},treeMate:{type:Object,required:!0},multiple:Boolean,size:{type:String,default:"medium"},value:{type:[String,Number,Array],default:null},width:[Number,String],autoPending:Boolean,virtualScroll:{type:Boolean,default:!0},show:{type:Boolean,default:!0},loading:Boolean,focusable:Boolean,renderLabel:Function,renderOption:Function,onMousedown:Function,onScroll:Function,onFocus:Function,onBlur:Function,onKeyup:Function,onKeydown:Function,onTabOut:Function,onMouseenter:Function,onMouseleave:Function,onToggle:Function}),setup(e){const t=ye("InternalSelectMenu","InternalSelectMenu",_5,wh,e,ke(e,"clsPrefix")),r=W(null),o=W(null),n=W(null),i=R(()=>e.treeMate.getFlattenedNodes()),a=R(()=>mS(i.value)),l=W(null);function s(){const{treeMate:N}=e;M(e.autoPending?e.value===null?N.getFirstAvailableNode():e.multiple?N.getNode((e.value||[])[(e.value||[]).length-1])||N.getFirstAvailableNode():N.getNode(e.value)||N.getFirstAvailableNode():null)}s(),wt(()=>{mr(()=>{e.show&&(s(),Ct(D))})});const c=R(()=>Ot(t.value.self[ce("optionHeight",e.size)])),d=R(()=>Lo(t.value.self[ce("padding",e.size)])),u=R(()=>e.multiple&&Array.isArray(e.value)?new Set(e.value):new Set),h=R(()=>{const N=i.value;return N&&N.length===0}),g=R(()=>[{width:Qe(e.width)},G.value]);Ue(ke(e,"treeMate"),()=>{if(e.autoPending){const N=e.treeMate.getFirstAvailableNode();M(N)}else M(null)});function b(N){const{onToggle:F}=e;F&&F(N)}function y(N){const{onScroll:F}=e;F&&F(N)}function v(N){var F;(F=n.value)===null||F===void 0||F.sync(),y(N)}function p(){var N;(N=n.value)===null||N===void 0||N.sync()}function w(){const{value:N}=l;return N||null}function P(N,F){F.disabled||M(F,!1)}function m(N,F){F.disabled||b(F)}function x(N){var F;Yi(N,"action")||(F=e.onKeyup)===null||F===void 0||F.call(e,N)}function C(N){var F;Yi(N,"action")||(F=e.onKeydown)===null||F===void 0||F.call(e,N)}function S(N){var F;(F=e.onMousedown)===null||F===void 0||F.call(e,N),!e.focusable&&N.preventDefault()}function T(){const{value:N}=l;N&&M(N.getNext({loop:!0}),!0)}function $(){const{value:N}=l;N&&M(N.getPrev({loop:!0}),!0)}function M(N,F=!1){l.value=N,F&&D()}function D(){var N,F;const A=l.value;if(!A)return;const re=a.value(A.key);re!==null&&(e.virtualScroll?(N=o.value)===null||N===void 0||N.scrollTo({index:re}):(F=n.value)===null||F===void 0||F.scrollTo({index:re,elSize:c.value}))}function _(N){var F,A;((F=r.value)===null||F===void 0?void 0:F.contains(N.target))&&((A=e.onFocus)===null||A===void 0||A.call(e,N))}function I(N){var F,A;((F=r.value)===null||F===void 0?void 0:F.contains(N.relatedTarget))||(A=e.onBlur)===null||A===void 0||A.call(e,N)}Ie(ss,{handleOptionMouseEnter:P,handleOptionClick:m,valueSetRef:u,multipleRef:ke(e,"multiple"),valueRef:ke(e,"value"),renderLabelRef:ke(e,"renderLabel"),renderOptionRef:ke(e,"renderOption"),pendingTmNodeRef:l}),Ie(Lf,r),wt(()=>{const{value:N}=n;N&&N.sync()});const G=R(()=>{const{size:N}=e,{common:{cubicBezierEaseInOut:F},self:{height:A,borderRadius:re,color:be,groupHeaderTextColor:Se,actionDividerColor:Te,optionTextColorPressed:Oe,optionTextColor:Re,optionTextColorDisabled:Z,optionTextColorActive:fe,optionOpacityDisabled:ee,optionCheckColor:xe,actionTextColor:ie,optionColorPending:Ce,optionColorActive:te,loadingColor:ge,loadingSize:z,[ce("optionFontSize",N)]:L,[ce("optionHeight",N)]:K,[ce("optionPadding",N)]:Q}}=t.value;return{"--height":A,"--action-divider-color":Te,"--action-text-color":ie,"--bezier":F,"--border-radius":re,"--color":be,"--option-font-size":L,"--group-header-text-color":Se,"--option-check-color":xe,"--option-color-pending":Ce,"--option-color-active":te,"--option-height":K,"--option-opacity-disabled":ee,"--option-text-color":Re,"--option-text-color-active":fe,"--option-text-color-disabled":Z,"--option-text-color-pressed":Oe,"--option-padding":Q,"--option-padding-left":Lo(Q,"left"),"--loading-color":ge,"--loading-size":z}});return Object.assign({mergedTheme:t,virtualListRef:o,scrollbarRef:n,style:g,itemSize:c,padding:d,flattenedNodes:i,empty:h,virtualListContainer(){const{value:N}=o;return N==null?void 0:N.listElRef},virtualListContent(){const{value:N}=o;return N==null?void 0:N.itemsElRef},doScroll:y,handleFocusin:_,handleFocusout:I,handleKeyUp:x,handleKeyDown:C,handleMouseDown:S,handleVirtualListResize:p,handleVirtualListScroll:v},{selfRef:r,next:T,prev:$,getPendingTmNode:w})},render(){const{$slots:e,virtualScroll:t,clsPrefix:r,mergedTheme:o}=this;return f("div",{ref:"selfRef",tabindex:this.focusable?0:-1,class:[`${r}-base-select-menu`,this.multiple&&`${r}-base-select-menu--multiple`],style:this.style,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onKeyup:this.handleKeyUp,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},this.loading?f("div",{class:`${r}-base-select-menu__loading`},f(Lr,{clsPrefix:r,strokeWidth:20})):this.empty?f("div",{class:`${r}-base-select-menu__empty`},Ae(e,"empty",void 0,()=>[f(gh,{theme:o.peers.Empty,themeOverrides:o.peerOverrides.Empty})])):f($r,{ref:"scrollbarRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar,scrollable:this.scrollable,container:t?this.virtualListContainer:void 0,content:t?this.virtualListContent:void 0,onScroll:t?void 0:this.doScroll},{default:()=>t?f(uh,{ref:"virtualListRef",class:`${r}-virtual-list`,items:this.flattenedNodes,itemSize:this.itemSize,showScrollbar:!1,paddingTop:this.padding.top,paddingBottom:this.padding.bottom,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemResizable:!0},{default:({item:n})=>n.isGroup?f(bh,{key:n.key,clsPrefix:r,tmNode:n}):n.ignored?null:f(mh,{clsPrefix:r,key:n.key,tmNode:n})}):f("div",{class:`${r}-base-select-menu-option-wrapper`,style:{paddingTop:this.padding.top,paddingBottom:this.padding.bottom}},this.flattenedNodes.map(n=>n.isGroup?f(bh,{key:n.key,clsPrefix:r,tmNode:n}):f(mh,{clsPrefix:r,key:n.key,tmNode:n})))}),e.action&&f("div",{class:`${r}-base-select-menu__action`,"data-action":!0},Ae(e,"action")),e.action&&f(nS,{onFocus:this.onTabOut}))}}),A5=k("base-wave",` + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + border-radius: inherit; +`),F5=q({name:"BaseWave",props:{clsPrefix:{type:String,required:!0}},setup(e){Pr("BaseWave",A5,ke(e,"clsPrefix"));const t=W(null),r=W(!1);let o=null;return Ft(()=>{o!==null&&window.clearTimeout(o)}),{active:r,selfRef:t,play(){o!==null&&(window.clearTimeout(o),r.value=!1,o=null),Ct(()=>{var n;(n=t.value)===null||n===void 0||n.offsetHeight,r.value=!0,o=window.setTimeout(()=>{r.value=!1,o=null},1e3)})}}},render(){const{clsPrefix:e}=this;return f("div",{ref:"selfRef","aria-hidden":!0,class:[`${e}-base-wave`,this.active&&`${e}-base-wave--active`]})}}),B5={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"};const L5=e=>{const{boxShadow2:t,popoverColor:r,textColor2:o,borderRadius:n,fontSize:i,dividerColor:a}=e;return Object.assign(Object.assign({},B5),{fontSize:i,borderRadius:n,color:r,dividerColor:a,textColor:o,boxShadow:t})},D5={name:"Popover",common:De,self:L5};var nn=D5;const zs={top:"bottom",bottom:"top",left:"right",right:"left"};var N5=E([k("popover",` + transition: + box-shadow .3s var(--bezier), + background-color .3s var(--bezier), + color .3s var(--bezier); + transform-origin: inherit; + position: relative; + font-size: var(--font-size); + color: var(--text-color); + box-shadow: var(--box-shadow); + `,[E("&.popover-transition-enter-from, &.popover-transition-leave-to",` + opacity: 0; + transform: scale(.85); + `),E("&.popover-transition-enter-to, &.popover-transition-leave-from",` + transform: scale(1); + opacity: 1; + `),E("&.popover-transition-enter-active",` + transition: + opacity .15s var(--bezier-ease-out), + transform .15s var(--bezier-ease-out); + `),E("&.popover-transition-leave-active",` + transition: + opacity .15s var(--bezier-ease-in), + transform .15s var(--bezier-ease-in); + `),qe("raw",` + background-color: var(--color); + border-radius: var(--border-radius); + var(--padding); + `,[qe("show-header","padding: var(--padding);")]),O("header",` + padding: var(--padding); + border-bottom: 1px solid var(--divider-color); + transition: border-color .3s var(--bezier); + `),O("content",` + padding: var(--padding); + `),k("popover-arrow-wrapper",` + position: absolute; + overflow: hidden; + pointer-events: none; + `,[k("popover-arrow",` + transition: background-color .3s var(--bezier); + position: absolute; + display: block; + width: calc(var(--arrow-height) * 1.414); + height: calc(var(--arrow-height) * 1.414); + box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12); + transform: rotate(45deg); + background-color: var(--color); + pointer-events: all; + `)])]),Gt("top-start",` + top: calc(-0.707 * var(--arrow-height)); + left: var(--arrow-offset); + `),Gt("top",` + top: calc(-0.707 * var(--arrow-height)); + transform: translateX(calc(-0.707 * var(--arrow-height))) rotate(45deg); + left: 50%; + `),Gt("top-end",` + top: calc(-0.707 * var(--arrow-height)); + right: var(--arrow-offset); + `),Gt("bottom-start",` + bottom: calc(-0.707 * var(--arrow-height)); + left: var(--arrow-offset); + `),Gt("bottom",` + bottom: calc(-0.707 * var(--arrow-height)); + transform: translateX(calc(-0.707 * var(--arrow-height))) rotate(45deg); + left: 50%; + `),Gt("bottom-end",` + bottom: calc(-0.707 * var(--arrow-height)); + right: var(--arrow-offset); + `),Gt("left-start",` + left: calc(-0.707 * var(--arrow-height)); + top: var(--arrow-offset-vertical); + `),Gt("left",` + left: calc(-0.707 * var(--arrow-height)); + transform: translateY(calc(-0.707 * var(--arrow-height))) rotate(45deg); + top: 50%; + `),Gt("left-end",` + left: calc(-0.707 * var(--arrow-height)); + bottom: var(--arrow-offset-vertical); + `),Gt("right-start",` + right: calc(-0.707 * var(--arrow-height)); + top: var(--arrow-offset-vertical); + `),Gt("right",` + right: calc(-0.707 * var(--arrow-height)); + transform: translateY(calc(-0.707 * var(--arrow-height))) rotate(45deg); + top: 50%; + `),Gt("right-end",` + right: calc(-0.707 * var(--arrow-height)); + bottom: var(--arrow-offset-vertical); + `)]);function Gt(e,t){const r=e.split("-")[0],o=["top","bottom"].includes(r)?"height: var(--space-arrow);":"width: var(--space-arrow);";return E(`[v-placement="${e}"] >`,[k("popover",` + margin-${zs[r]}: var(--space); + `,[j("show-arrow",` + margin-${zs[r]}: var(--space-arrow); + `),j("overlap",` + margin: 0; + `),Vw("popover-arrow-wrapper",` + right: 0; + left: 0; + top: 0; + bottom: 0; + ${r}: 100%; + ${zs[r]}: auto; + ${o} + `,[k("popover-arrow",t)])])])}const Ch=Object.assign(Object.assign({},ye.props),{to:Sr.propTo,show:Boolean,trigger:String,showArrow:Boolean,delay:Number,duration:Number,raw:Boolean,arrowStyle:[String,Object],displayDirective:String,x:Number,y:Number,filp:Boolean,overlap:Boolean,placement:String,width:[Number,String],animated:Boolean,onClickoutside:Function,minWidth:Number,maxWidth:Number}),Sh=({arrowStyle:e,clsPrefix:t})=>f("div",{key:"__popover-arrow__",class:`${t}-popover-arrow-wrapper`},f("div",{class:`${t}-popover-arrow`,style:e}));var j5=q({name:"PopoverBody",inheritAttrs:!1,props:Ch,setup(e,{slots:t,attrs:r}){const{namespaceRef:o,mergedClsPrefixRef:n}=Ee(e),i=ye("Popover","Popover",N5,nn,e,n),a=W(null),l=Pe("NPopover"),s=W(null),c=W(e.show),d=R(()=>{const{trigger:m,onClickoutside:x}=e,C=[],{positionManuallyRef:{value:S}}=l;return S||(m==="click"&&!x&&C.push([ri,p]),m==="hover"&&C.push([IS,v])),x&&C.push([ri,p]),e.displayDirective==="show"&&C.push([Bo,e.show]),C}),u=R(()=>[{width:e.width==="trigger"?"":Qe(e.width),maxWidth:Qe(e.maxWidth),minWidth:Qe(e.minWidth)},h.value]),h=R(()=>{const{common:{cubicBezierEaseInOut:m,cubicBezierEaseIn:x,cubicBezierEaseOut:C},self:{space:S,spaceArrow:T,padding:$,fontSize:M,textColor:D,dividerColor:_,color:I,boxShadow:G,borderRadius:U,arrowHeight:N,arrowOffset:F,arrowOffsetVertical:A}}=i.value;return{"--box-shadow":G,"--bezier":m,"--bezier-ease-in":x,"--bezier-ease-out":C,"--font-size":M,"--text-color":D,"--color":I,"--divider-color":_,"--border-radius":U,"--arrow-height":N,"--arrow-offset":F,"--arrow-offset-vertical":A,"--padding":$,"--space":S,"--space-arrow":T}});l.setBodyInstance({syncPosition:g}),Ft(()=>{l.setBodyInstance(null)}),Ue(ke(e,"show"),m=>{e.animated||(m?c.value=!0:c.value=!1)});function g(){var m;(m=a.value)===null||m===void 0||m.syncPosition()}function b(m){e.trigger==="hover"&&l.handleMouseEnter(m)}function y(m){e.trigger==="hover"&&l.handleMouseLeave(m)}function v(m){e.trigger==="hover"&&!w().contains(m.target)&&l.handleMouseMoveOutside(m)}function p(m){(e.trigger==="click"&&!w().contains(m.target)||e.onClickoutside)&&l.handleClickOutside(m)}function w(){return l.getTriggerElement()}Ie(ls,s),Ie(as,null),Ie(is,null);function P(){let m;const{internalRenderBodyRef:{value:x}}=l,{value:C}=n;if(x)m=x([`${C}-popover`,e.overlap&&`${C}-popover--overlap`],s,u.value,b,y);else{const{value:S}=l.extraClassRef;m=f("div",Zt({class:[`${C}-popover`,S.map(T=>`${C}-${T}`),{[`${C}-popover--overlap`]:e.overlap,[`${C}-popover--show-arrow`]:e.showArrow,[`${C}-popover--show-header`]:!!t.header,[`${C}-popover--raw`]:e.raw}],ref:s,style:u.value,onMouseenter:b,onMouseleave:y},r),[t.header?f(nt,null,f("div",{class:`${C}-popover__header`},t.header()),f("div",{class:`${C}-popover__content`},t)):Ae(t,"default"),e.showArrow?Sh({arrowStyle:e.arrowStyle,clsPrefix:C}):null])}return e.displayDirective==="show"||e.show?or(m,d.value):null}return{namespace:o,isMounted:l.isMountedRef,zIndex:l.zIndexRef,followerRef:a,adjustedTo:Sr(e),followerEnabled:c,renderContentNode:P}},render(){return f($s,{zIndex:this.zIndex,show:this.show,enabled:this.followerEnabled,to:this.adjustedTo,x:this.x,y:this.y,placement:this.placement,containerClass:this.namespace,ref:"followerRef",overlap:this.overlap,width:this.width==="trigger"?"target":void 0,teleportDisabled:this.adjustedTo===Sr.tdkey},{default:()=>this.animated?f(ht,{name:"popover-transition",appear:this.isMounted,onEnter:()=>{this.followerEnabled=!0},onAfterLeave:()=>{this.followerEnabled=!1}},{default:this.renderContentNode}):this.renderContentNode()})}});const H5=Object.keys(Ch),W5={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};function U5(e,t,r){W5[t].forEach(o=>{e.props?e.props=Object.assign({},e.props):e.props={};const n=e.props[o],i=r[o];n?e.props[o]=(...a)=>{n(...a),i(...a)}:e.props[o]=i})}const V5=Eo("").type,ii={show:{type:Boolean,default:void 0},defaultShow:Boolean,showArrow:{type:Boolean,default:!0},trigger:{type:String,default:"hover"},delay:{type:Number,default:100},duration:{type:Number,default:100},raw:Boolean,placement:{type:String,default:"top"},x:Number,y:Number,disabled:Boolean,getDisabled:Function,displayDirective:{type:String,default:"if"},arrowStyle:[String,Object],filp:{type:Boolean,default:!0},animated:{type:Boolean,default:!0},width:{type:[Number,String],default:void 0},overlap:Boolean,internalExtraClass:{type:Array,default:()=>[]},onClickoutside:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],zIndex:Number,to:Sr.propTo,internalSyncTargetWithParent:Boolean,internalInheritedEventHandlers:{type:Array,default:()=>[]},onShow:[Function,Array],onHide:[Function,Array],arrow:{type:Boolean,default:void 0},minWidth:Number,maxWidth:Number},K5=Object.assign(Object.assign(Object.assign({},ye.props),ii),{internalRenderBody:Function});var an=q({name:"Popover",inheritAttrs:!1,props:K5,__popover__:!0,setup(e){const t=qo(),r=W(null),o=R(()=>e.show),n=W(e.defaultShow),i=gt(o,n),a=Ve(()=>e.disabled?!1:i.value),l=()=>{if(e.disabled)return!0;const{getDisabled:I}=e;return!!(I==null?void 0:I())},s=()=>l()?!1:i.value,c=ei(e,["arrow","showArrow"]),d=R(()=>e.overlap?!1:c.value);let u=null;const h=W(null),g=W(null),b=Ve(()=>e.x!==void 0&&e.y!==void 0);function y(I){const{"onUpdate:show":G,onUpdateShow:U,onShow:N,onHide:F}=e;n.value=I,G&&ue(G,I),U&&ue(U,I),I&&N&&ue(N,!0),I&&F&&ue(F,!1)}function v(){u&&u.syncPosition()}function p(){const{value:I}=h;I&&(window.clearTimeout(I),h.value=null)}function w(){const{value:I}=g;I&&(window.clearTimeout(I),g.value=null)}function P(){const I=l();if(e.trigger==="focus"&&!I){if(s())return;y(!0)}}function m(){const I=l();if(e.trigger==="focus"&&!I){if(!s())return;y(!1)}}function x(){const I=l();if(e.trigger==="hover"&&!I){if(w(),h.value!==null||s())return;const G=()=>{y(!0),h.value=null},{delay:U}=e;U===0?G():h.value=window.setTimeout(G,U)}}function C(){const I=l();if(e.trigger==="hover"&&!I){if(p(),g.value!==null||!s())return;const G=()=>{y(!1),g.value=null},{duration:U}=e;U===0?G():g.value=window.setTimeout(G,U)}}function S(){C()}function T(I){var G;!s()||(e.trigger==="click"&&(p(),w(),y(!1)),(G=e.onClickoutside)===null||G===void 0||G.call(e,I))}function $(){if(e.trigger==="click"&&!l()){p(),w();const I=!s();y(I)}}function M(I){n.value=I}function D(){var I;return(I=r.value)===null||I===void 0?void 0:I.targetRef}function _(I){u=I}return Ie("NPopover",{getTriggerElement:D,handleMouseEnter:x,handleMouseLeave:C,handleClickOutside:T,handleMouseMoveOutside:S,setBodyInstance:_,positionManuallyRef:b,isMountedRef:t,zIndexRef:ke(e,"zIndex"),extraClassRef:ke(e,"internalExtraClass"),internalRenderBodyRef:ke(e,"internalRenderBody")}),{binderInstRef:r,positionManually:b,mergedShowConsideringDisabledProp:a,uncontrolledShow:n,mergedShowArrow:d,getMergedShow:s,setShow:M,handleClick:$,handleMouseEnter:x,handleMouseLeave:C,handleFocus:P,handleBlur:m,syncPosition:v}},render(){var e;const{positionManually:t,$slots:r}=this;let o,n=!1;if(!t&&(r.activator?o=ns(r,"activator"):o=ns(r,"trigger"),o)){o=Or(o),o=o.type===V5?f("span",[o]):o;const i={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if((e=o.type)===null||e===void 0?void 0:e.__popover__)n=!0,o.props||(o.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),o.props.internalSyncTargetWithParent=!0,o.props.internalInheritedEventHandlers?o.props.internalInheritedEventHandlers=[i,...o.props.internalInheritedEventHandlers]:o.props.internalInheritedEventHandlers=[i];else{const{internalInheritedEventHandlers:a}=this,l=[i,...a],s={onBlur:c=>{l.forEach(d=>{d.onBlur(c)})},onFocus:c=>{l.forEach(d=>{d.onBlur(c)})},onClick:c=>{l.forEach(d=>{d.onClick(c)})},onMouseenter:c=>{l.forEach(d=>{d.onMouseenter(c)})},onMouseleave:c=>{l.forEach(d=>{d.onMouseleave(c)})}};U5(o,a?"nested":t?"manual":this.trigger,s)}}return f(bs,{ref:"binderInstRef",syncTarget:!n,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const i=this.getMergedShow();return[t?null:f(xs,null,{default:()=>o}),f(j5,er(this.$props,H5,Object.assign(Object.assign({},this.$attrs),{showArrow:this.mergedShowArrow,show:i})),r)]}})}}),q5={closeSizeSmall:"14px",closeSizeMedium:"14px",closeSizeLarge:"14px",padding:"0 7px",closeMargin:"0 0 0 3px",closeMarginRtl:"0 3px 0 0"};const G5=e=>{const{textColor2:t,primaryColorHover:r,primaryColorPressed:o,primaryColor:n,infoColor:i,successColor:a,warningColor:l,errorColor:s,baseColor:c,borderColor:d,opacityDisabled:u,tagColor:h,closeColor:g,closeColorHover:b,closeColorPressed:y,borderRadiusSmall:v,fontSizeTiny:p,fontSizeSmall:w,fontSizeMedium:P,heightTiny:m,heightSmall:x,heightMedium:C}=e;return Object.assign(Object.assign({},q5),{heightSmall:m,heightMedium:x,heightLarge:C,borderRadius:v,opacityDisabled:u,fontSizeSmall:p,fontSizeMedium:w,fontSizeLarge:P,textColorCheckable:t,textColorHoverCheckable:r,textColorPressedCheckable:o,textColorChecked:c,colorCheckable:"#0000",colorHoverCheckable:"#0000",colorPressedCheckable:"#0000",colorChecked:n,colorCheckedHover:r,colorCheckedPressed:o,border:`1px solid ${d}`,textColor:t,color:h,closeColor:g,closeColorHover:b,closeColorPressed:y,borderPrimary:`1px solid ${ze(n,{alpha:.3})}`,textColorPrimary:n,colorPrimary:ze(n,{alpha:.1}),closeColorPrimary:ze(n,{alpha:.75}),closeColorHoverPrimary:ze(n,{alpha:.6}),closeColorPressedPrimary:ze(n,{alpha:.9}),borderInfo:`1px solid ${ze(i,{alpha:.3})}`,textColorInfo:i,colorInfo:ze(i,{alpha:.1}),closeColorInfo:ze(i,{alpha:.75}),closeColorHoverInfo:ze(i,{alpha:.6}),closeColorPressedInfo:ze(i,{alpha:.9}),borderSuccess:`1px solid ${ze(a,{alpha:.3})}`,textColorSuccess:a,colorSuccess:ze(a,{alpha:.1}),closeColorSuccess:ze(a,{alpha:.75}),closeColorHoverSuccess:ze(a,{alpha:.6}),closeColorPressedSuccess:ze(a,{alpha:.9}),borderWarning:`1px solid ${ze(l,{alpha:.35})}`,textColorWarning:l,colorWarning:ze(l,{alpha:.12}),closeColorWarning:ze(l,{alpha:.75}),closeColorHoverWarning:ze(l,{alpha:.6}),closeColorPressedWarning:ze(l,{alpha:.9}),borderError:`1px solid ${ze(s,{alpha:.23})}`,textColorError:s,colorError:ze(s,{alpha:.08}),closeColorError:ze(s,{alpha:.65}),closeColorHoverError:ze(s,{alpha:.5}),closeColorPressedError:ze(s,{alpha:.8})})},Y5={name:"Tag",common:De,self:G5};var X5=Y5,Z5={color:Object,type:{type:String,default:"default"},round:Boolean,size:{type:String,default:"medium"},closable:Boolean,disabled:{type:Boolean,default:void 0}},J5=k("tag",` + white-space: nowrap; + position: relative; + box-sizing: border-box; + cursor: default; + display: inline-flex; + align-items: center; + flex-wrap: nowrap; + padding: var(--padding); + border-radius: var(--border-radius); + color: var(--text-color); + background-color: var(--color); + transition: + border-color .3s var(--bezier), + background-color .3s var(--bezier), + color .3s var(--bezier), + box-shadow .3s var(--bezier), + opacity .3s var(--bezier); + line-height: 1.5; + height: var(--height); + font-size: var(--font-size); +`,[O("border",` + pointer-events: none; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + border-radius: inherit; + border: var(--border); + transition: border-color .3s var(--bezier); + `),O("close",` + font-size: var(--close-size); + margin: var(--close-margin); + transition: color .3s var(--bezier); + cursor: pointer; + `),j("round",` + padding: 0 calc(var(--height) / 2); + border-radius: calc(var(--height) / 2); + `),j("disabled",{cursor:"not-allowed !important",opacity:"var(--opacity-disabled)"}),j("checkable",` + cursor: pointer; + box-shadow: none; + color: var(--text-color-checkable); + background-color: var(--color-checkable); + `,[qe("disabled",[E("&:hover",{backgroundColor:"var(--color-hover-checkable)"},[qe("checked",{color:"var(--text-color-hover-checkable)"})]),E("&:active",{backgroundColor:"var(--color-pressed-checkable)"},[qe("checked",{color:"var(--text-color-pressed-checkable)"})])]),j("checked",{color:"var(--text-color-checked)",backgroundColor:"var(--color-checked)"},[qe("disabled",[E("&:hover",{backgroundColor:"var(--color-checked-hover)"}),E("&:active",{backgroundColor:"var(--color-checked-pressed)"})])])])]);function _s(e,t,r){if(!t)return;const o=Vo(),n=R(()=>{const{value:a}=t;if(!a)return;const l=a[e];if(!!l)return l}),i=()=>{mr(()=>{const{value:a}=r,l=`${a}${e}Rtl`;if(jw(l,o))return;const{value:s}=n;!s||s.style.mount({id:l,head:!0,props:{bPrefix:a?`.${a}-`:void 0},ssr:o})})};return o?i():_r(i),n}const Q5=Object.assign(Object.assign(Object.assign({},ye.props),Z5),{bordered:{type:Boolean,default:void 0},checked:Boolean,checkable:Boolean,onClose:[Array,Function],onMouseenter:Function,onMouseleave:Function,"onUpdate:checked":Function,onUpdateChecked:Function,internalStopClickPropagation:Boolean,onCheckedChange:{type:Function,validator:()=>!0,default:void 0}});var Os=q({name:"Tag",props:Q5,setup(e){const t=W(null),{mergedBorderedRef:r,mergedClsPrefixRef:o,NConfigProvider:n}=Ee(e),i=ye("Tag","Tag",J5,X5,e,o);function a(d){if(!e.disabled&&e.checkable){const{checked:u,onCheckedChange:h,onUpdateChecked:g,"onUpdate:checked":b}=e;g&&g(!u),b&&b(!u),h&&h(!u)}}function l(d){if(e.internalStopClickPropagation&&d.stopPropagation(),!e.disabled){const{onClose:u}=e;u&&ue(u,d)}}const s={setTextContent(d){const{value:u}=t;u&&(u.textContent=d)}},c=_s("Tag",n==null?void 0:n.mergedRtlRef,o);return Object.assign(Object.assign({},s),{rtlEnabled:c,mergedClsPrefix:o,contentRef:t,mergedBordered:r,handleClick:a,handleCloseClick:l,cssVars:R(()=>{const{type:d,size:u,color:{color:h,textColor:g}={}}=e,{common:{cubicBezierEaseInOut:b},self:{padding:y,closeMargin:v,closeMarginRtl:p,borderRadius:w,opacityDisabled:P,textColorCheckable:m,textColorHoverCheckable:x,textColorPressedCheckable:C,textColorChecked:S,colorCheckable:T,colorHoverCheckable:$,colorPressedCheckable:M,colorChecked:D,colorCheckedHover:_,colorCheckedPressed:I,[ce("closeSize",u)]:G,[ce("fontSize",u)]:U,[ce("height",u)]:N,[ce("color",d)]:F,[ce("textColor",d)]:A,[ce("border",d)]:re,[ce("closeColor",d)]:be,[ce("closeColorHover",d)]:Se,[ce("closeColorPressed",d)]:Te}}=i.value;return{"--bezier":b,"--border-radius":w,"--border":re,"--close-color":be,"--close-color-hover":Se,"--close-color-pressed":Te,"--close-margin":v,"--close-margin-rtl":p,"--close-size":G,"--color":h||F,"--color-checkable":T,"--color-checked":D,"--color-checked-hover":_,"--color-checked-pressed":I,"--color-hover-checkable":$,"--color-pressed-checkable":M,"--font-size":U,"--height":N,"--opacity-disabled":P,"--padding":y,"--text-color":g||A,"--text-color-checkable":m,"--text-color-checked":S,"--text-color-hover-checkable":x,"--text-color-pressed-checkable":C}})})},render(){const{mergedClsPrefix:e,rtlEnabled:t,color:{borderColor:r}={}}=this;return f("div",{class:[`${e}-tag`,{[`${e}-tag--rtl`]:t,[`${e}-tag--disabled`]:this.disabled,[`${e}-tag--checkable`]:this.checkable,[`${e}-tag--checked`]:this.checkable&&this.checked,[`${e}-tag--round`]:this.round}],style:this.cssVars,onClick:this.handleClick,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},f("span",{class:`${e}-tag__content`,ref:"contentRef"},this.$slots),!this.checkable&&this.closable?f(en,{clsPrefix:e,class:`${e}-tag__close`,disabled:this.disabled,onClick:this.handleCloseClick}):null,!this.checkable&&this.mergedBordered?f("div",{class:`${e}-tag__border`,style:{borderColor:r}}):null)}}),e3=k("base-clear",` + flex-shrink: 0; + height: 1em; + width: 1em; + position: relative; +`,[E(">",[O("clear",` + font-size: var(--clear-size); + cursor: pointer; + color: var(--clear-color); + transition: color .3s var(--bezier); + `,[E("&:hover",` + color: var(--clear-color-hover)!important; + `),E("&:active",` + color: var(--clear-color-pressed)!important; + `)]),O("placeholder",` + display: flex; + `),O("clear, placeholder",` + position: absolute; + left: 50%; + top: 50%; + transform: translateX(-50%) translateY(-50%); + `,[bo({originalTransform:"translateX(-50%) translateY(-50%)",left:"50%",top:"50%"})])])]),Es=q({name:"BaseClear",props:{clsPrefix:{type:String,required:!0},show:Boolean,onClear:Function},setup(e){Pr("BaseClear",e3,ke(e,"clsPrefix"));const{NConfigProvider:t}=Ee();return{NConfigProvider:t,handleMouseDown(r){r.preventDefault()}}},render(){const{clsPrefix:e}=this;return f("div",{class:`${e}-base-clear`},f(Qo,null,{default:()=>this.show?f(Be,{clsPrefix:e,key:"dismiss",class:`${e}-base-clear__clear`,onClick:this.onClear,onMousedown:this.handleMouseDown,"data-clear":!0},{default:()=>f(Y2,null)}):f("div",{key:"icon",class:`${e}-base-clear__placeholder`},this.$slots)}))}}),kh=q({name:"InternalSelectionSuffix",props:{clsPrefix:{type:String,required:!0},showArrow:{type:Boolean,default:void 0},showClear:{type:Boolean,default:void 0},loading:Boolean,onClear:Function},setup(e){return()=>{const{clsPrefix:t}=e;return f(Lr,{clsPrefix:t,class:`${t}-base-suffix`,strokeWidth:24,scale:.85,show:e.loading},{default:()=>e.showArrow?f(Es,{clsPrefix:t,show:e.showClear,onClear:e.onClear},{default:()=>f(Be,{clsPrefix:t,class:`${t}-base-suffix__arrow`},{default:()=>f(qf,null)})}):null})}}}),t3={paddingSingle:"0 26px 0 14px",clearSize:"16px",arrowSize:"16px"};const r3=e=>{const{borderRadius:t,textColor2:r,textColorDisabled:o,inputColor:n,inputColorDisabled:i,primaryColor:a,primaryColorHover:l,warningColor:s,warningColorHover:c,errorColor:d,errorColorHover:u,borderColor:h,iconColor:g,iconColorDisabled:b,clearColor:y,clearColorHover:v,clearColorPressed:p,placeholderColor:w,placeholderColorDisabled:P,fontSizeTiny:m,fontSizeSmall:x,fontSizeMedium:C,fontSizeLarge:S,heightTiny:T,heightSmall:$,heightMedium:M,heightLarge:D}=e;return Object.assign(Object.assign({},t3),{fontSizeTiny:m,fontSizeSmall:x,fontSizeMedium:C,fontSizeLarge:S,heightTiny:T,heightSmall:$,heightMedium:M,heightLarge:D,borderRadius:t,textColor:r,textColorDisabled:o,placeholderColor:w,placeholderColorDisabled:P,color:n,colorDisabled:i,colorActive:n,border:`1px solid ${h}`,borderHover:`1px solid ${l}`,borderActive:`1px solid ${a}`,borderFocus:`1px solid ${l}`,boxShadowHover:null,boxShadowActive:`0 0 0 2px ${ze(a,{alpha:.2})}`,boxShadowFocus:`0 0 0 2px ${ze(a,{alpha:.2})}`,caretColor:a,arrowColor:g,arrowColorDisabled:b,loadingColor:a,borderWarning:`1px solid ${s}`,borderHoverWarning:`1px solid ${c}`,borderActiveWarning:`1px solid ${s}`,borderFocusWarning:`1px solid ${c}`,boxShadowHoverWarning:null,boxShadowActiveWarning:`0 0 0 2px ${ze(s,{alpha:.2})}`,boxShadowFocusWarning:`0 0 0 2px ${ze(s,{alpha:.2})}`,colorActiveWarning:n,caretColorWarning:s,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${u}`,borderActiveError:`1px solid ${d}`,borderFocusError:`1px solid ${u}`,boxShadowHoverError:null,boxShadowActiveError:`0 0 0 2px ${ze(d,{alpha:.2})}`,boxShadowFocusError:`0 0 0 2px ${ze(d,{alpha:.2})}`,colorActiveError:n,caretColorError:d,clearColor:y,clearColorHover:v,clearColorPressed:p})},o3=St({name:"InternalSelection",common:De,peers:{Popover:nn},self:r3});var Ph=o3,n3=E([k("base-selection",` + position: relative; + z-index: auto; + box-shadow: none; + width: 100%; + max-width: 100%; + display: inline-block; + vertical-align: bottom; + border-radius: var(--border-radius); + min-height: var(--height); + line-height: 1.5; + font-size: var(--font-size); + `,[k("base-loading",` + color: var(--loading-color); + `),k("base-selection-tags",{minHeight:"var(--height)"}),O("border, state-border",` + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + pointer-events: none; + border: var(--border); + border-radius: inherit; + transition: + box-shadow .3s var(--bezier), + border-color .3s var(--bezier); + `),O("state-border",` + z-index: 1; + border-color: #0000; + `),k("base-suffix",` + cursor: pointer; + position: absolute; + top: 50%; + transform: translateY(-50%); + right: 10px; + `,[O("arrow",` + font-size: var(--arrow-size); + color: var(--arrow-color); + transition: color .3s var(--bezier); + `)]),k("base-selection-overlay",` + display: flex; + align-items: center; + white-space: nowrap; + overflow: hidden; + pointer-events: none; + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + padding: var(--padding-single); + transition: color .3s var(--bezier); + `),k("base-selection-placeholder",` + color: var(--placeholder-color); + `),k("base-selection-tags",` + cursor: pointer; + outline: none; + box-sizing: border-box; + position: relative; + z-index: auto; + display: flex; + padding: 3px 26px 0 14px; + flex-wrap: wrap; + align-items: center; + width: 100%; + vertical-align: bottom; + background-color: var(--color); + border-radius: inherit; + transition: + color .3s var(--bezier), + box-shadow .3s var(--bezier), + background-color .3s var(--bezier); + `),k("base-selection-label",` + height: var(--height); + display: inline-flex; + width: 100%; + vertical-align: bottom; + cursor: pointer; + outline: none; + z-index: auto; + box-sizing: border-box; + position: relative; + transition: + color .3s var(--bezier), + box-shadow .3s var(--bezier), + background-color .3s var(--bezier); + border-radius: inherit; + background-color: var(--color); + align-items: center; + `,[k("base-selection-input",` + line-height: inherit; + outline: none; + cursor: pointer; + box-sizing: border-box; + border:none; + width: 100%; + padding: var(--padding-single); + background-color: #0000; + color: var(--text-color); + transition: color .3s var(--bezier); + caret-color: var(--caret-color); + `,[O("content",` + text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap; + `)]),O("render-label",` + color: var(--text-color); + `)]),qe("disabled",[E("&:hover",[O("state-border",` + box-shadow: var(--box-shadow-hover); + border: var(--border-hover); + `)]),j("focus",[O("state-border",` + box-shadow: var(--box-shadow-focus); + border: var(--border-focus); + `)]),j("active",[O("state-border",` + box-shadow: var(--box-shadow-active); + border: var(--border-active); + `),k("base-selection-label",{backgroundColor:"var(--color-active)"}),k("base-selection-tags",{backgroundColor:"var(--color-active)"})])]),j("disabled",{cursor:"not-allowed"},[O("arrow",` + color: var(--arrow-color-disabled); + `),k("base-selection-label",` + cursor: not-allowed; + background-color: var(--color-disabled); + `,[k("base-selection-input",` + cursor: not-allowed; + color: var(--text-color-disabled); + `),O("render-label",` + color: var(--text-color-disabled); + `)]),k("base-selection-tags",` + cursor: not-allowed; + background-color: var(--color-disabled); + `),k("base-selection-placeholder",` + cursor: not-allowed; + color: var(--placeholder-color-disabled); + `)]),k("base-selection-input-tag",` + height: calc(var(--height) - 6px); + line-height: calc(var(--height) - 6px); + outline: none; + display: none; + position: relative; + margin-bottom: 3px; + max-width: 100%; + vertical-align: bottom; + `,[O("input",` + min-width: 1px; + padding: 0; + background-color: #0000; + outline: none; + border: none; + max-width: 100%; + overflow: hidden; + width: 1em; + line-height: inherit; + cursor: pointer; + color: var(--text-color); + caret-color: var(--caret-color); + `),O("mirror",` + position: absolute; + left: 0; + top: 0; + white-space: pre; + visibility: hidden; + user-select: none; + opacity: 0; + `)])]),k("base-selection-popover",` + margin-bottom: -3px; + display: flex; + flex-wrap: wrap; + `),k("base-selection-tag-wrapper",` + max-width: 100%; + display: inline-flex; + padding: 0 7px 3px 0; + `,[E("&:last-child",{paddingRight:0}),k("tag",` + font-size: 14px; + max-width: 100%; + `,[O("content",` + text-overflow: ellipsis; + overflow: hidden; + `)])]),["warning","error"].map(e=>Sf(e,k("base-selection",[O("state-border",{border:`var(--border-${e})`}),qe("disabled",[E("&:hover",[O("state-border",` + box-shadow: var(--box-shadow-hover-${e}); + border: var(--border-hover-${e}); + `)]),j("active",[O("state-border",` + box-shadow: var(--box-shadow-active-${e}); + border: var(--border-active-${e}); + `),k("base-selection-label",{backgroundColor:`var(--color-active-${e})`}),k("base-selection-tags",{backgroundColor:`var(--box-shadow-active-${e})`})]),j("focus",[O("state-border",` + box-shadow: var(--box-shadow-focus-${e}); + border: var(--border-focus-${e}); + `)])])])))]),i3=q({name:"InternalSelection",props:Object.assign(Object.assign({},ye.props),{clsPrefix:{type:String,required:!0},bordered:{type:Boolean,default:void 0},active:Boolean,pattern:{type:String,default:null},placeholder:String,selectedOption:{type:Object,default:null},selectedOptions:{type:Array,default:null},multiple:Boolean,filterable:Boolean,clearable:Boolean,disabled:Boolean,size:{type:String,default:"medium"},loading:Boolean,autofocus:Boolean,showArrow:{type:Boolean,default:!0},inputProps:Object,focused:Boolean,renderTag:Function,onKeyup:Function,onKeydown:Function,onClick:Function,onBlur:Function,onFocus:Function,onDeleteOption:Function,maxTagCount:[String,Number],onClear:Function,onPatternInput:Function,renderLabel:Function}),setup(e){const t=W(null),r=W(null),o=W(null),n=W(null),i=W(null),a=W(null),l=W(null),s=W(null),c=W(null),d=W(null),u=W(!1),h=W(!1),g=W(!1),b=ye("InternalSelection","InternalSelection",n3,Ph,e,ke(e,"clsPrefix")),y=R(()=>e.clearable&&!e.disabled&&(g.value||e.active)),v=R(()=>e.selectedOption?e.renderTag?e.renderTag({option:e.selectedOption,handleClose:()=>{}}):e.renderLabel?e.renderLabel(e.selectedOption,!0):Ke(e.selectedOption.label,e.selectedOption,!0):e.placeholder),p=R(()=>{const B=e.selectedOption;if(!!B)return B.label}),w=R(()=>e.multiple?!!(Array.isArray(e.selectedOptions)&&e.selectedOptions.length):e.selectedOption!==null);function P(){var B;const{value:Y}=t;if(Y){const{value:ae}=r;ae&&(ae.style.width=`${Y.offsetWidth}px`,e.maxTagCount!=="responsive"&&((B=c.value)===null||B===void 0||B.sync()))}}function m(){const{value:B}=d;B&&(B.style.display="none")}function x(){const{value:B}=d;B&&(B.style.display="inline-block")}Ue(ke(e,"active"),B=>{B||m()}),Ue(ke(e,"pattern"),()=>{e.multiple&&Ct(P)});function C(B){const{onFocus:Y}=e;Y&&Y(B)}function S(B){const{onBlur:Y}=e;Y&&Y(B)}function T(B){const{onDeleteOption:Y}=e;Y&&Y(B)}function $(B){const{onClear:Y}=e;Y&&Y(B)}function M(B){const{onPatternInput:Y}=e;Y&&Y(B)}function D(B){var Y;(!B.relatedTarget||!((Y=o.value)===null||Y===void 0?void 0:Y.contains(B.relatedTarget)))&&C(B)}function _(B){var Y;((Y=o.value)===null||Y===void 0?void 0:Y.contains(B.relatedTarget))||S(B)}function I(B){$(B)}function G(){g.value=!0}function U(){g.value=!1}function N(B){!e.active||!e.filterable||B.target!==r.value&&B.preventDefault()}function F(B){T(B)}function A(B){if(B.code==="Backspace"&&!e.pattern.length){const{selectedOptions:Y}=e;(Y==null?void 0:Y.length)&&F(Y[Y.length-1])}}const re=W(!1);let be=null;function Se(B){const{value:Y}=t;if(Y){const ae=B.target.value;Y.textContent=ae,P()}re.value?be=B:M(B)}function Te(){re.value=!0}function Oe(){re.value=!1,M(be),be=null}function Re(){h.value=!0}function Z(B){h.value=!1}function fe(){if(e.filterable){h.value=!1;const{value:B}=a;B&&B.focus()}else if(e.multiple){const{value:B}=n;B==null||B.focus()}else{const{value:B}=i;B==null||B.focus()}}function ee(){const{value:B}=r;B&&(x(),B.focus())}function xe(){const{value:B}=r;B&&B.blur()}function ie(B){const{value:Y}=l;Y&&Y.setTextContent(`+${B}`)}function Ce(){const{value:B}=s;return B}function te(){return r.value}let ge=null;function z(){ge!==null&&window.clearTimeout(ge)}function L(){e.disabled||e.active||(z(),ge=window.setTimeout(()=>{u.value=!0},100))}function K(){z()}function Q(B){B||(z(),u.value=!1)}return wt(()=>{mr(()=>{const B=a.value;!B||(B.tabIndex=e.disabled||h.value?-1:0)})}),{mergedTheme:b,mergedClearable:y,patternInputFocused:h,filterablePlaceholder:v,label:p,selected:w,showTagsPanel:u,isCompositing:re,counterRef:l,counterWrapperRef:s,patternInputMirrorRef:t,patternInputRef:r,selfRef:o,multipleElRef:n,singleElRef:i,patternInputWrapperRef:a,overflowRef:c,inputTagElRef:d,handleMouseDown:N,handleFocusin:D,handleClear:I,handleMouseEnter:G,handleMouseLeave:U,handleDeleteOption:F,handlePatternKeyDown:A,handlePatternInputInput:Se,handlePatternInputBlur:Z,handlePatternInputFocus:Re,handleMouseEnterCounter:L,handleMouseLeaveCounter:K,handleFocusout:_,handleCompositionEnd:Oe,handleCompositionStart:Te,onPopoverUpdateShow:Q,focus:fe,focusInput:ee,blurInput:xe,updateCounter:ie,getCounter:Ce,getTail:te,renderLabel:e.renderLabel,cssVars:R(()=>{const{size:B}=e,{common:{cubicBezierEaseInOut:Y},self:{borderRadius:ae,color:le,placeholderColor:se,textColor:ne,paddingSingle:J,caretColor:X,colorDisabled:de,textColorDisabled:we,placeholderColorDisabled:V,colorActive:oe,boxShadowFocus:pe,boxShadowActive:ve,boxShadowHover:$e,border:Me,borderFocus:rt,borderHover:lt,borderActive:ot,arrowColor:H,arrowColorDisabled:me,loadingColor:Fe,colorActiveWarning:ut,boxShadowFocusWarning:dt,boxShadowActiveWarning:vt,boxShadowHoverWarning:Yt,borderWarning:Ht,borderFocusWarning:Wt,borderHoverWarning:Gr,borderActiveWarning:wn,colorActiveError:Cn,boxShadowFocusError:Sn,boxShadowActiveError:kn,boxShadowHoverError:Pn,borderError:$n,borderFocusError:Rn,borderHoverError:Tn,borderActiveError:zn,clearColor:_n,clearColorHover:La,clearColorPressed:Da,clearSize:Na,arrowSize:ja,[ce("height",B)]:Ha,[ce("fontSize",B)]:Wa}}=b.value;return{"--bezier":Y,"--border":Me,"--border-active":ot,"--border-focus":rt,"--border-hover":lt,"--border-radius":ae,"--box-shadow-active":ve,"--box-shadow-focus":pe,"--box-shadow-hover":$e,"--caret-color":X,"--color":le,"--color-active":oe,"--color-disabled":de,"--font-size":Wa,"--height":Ha,"--padding-single":J,"--placeholder-color":se,"--placeholder-color-disabled":V,"--text-color":ne,"--text-color-disabled":we,"--arrow-color":H,"--arrow-color-disabled":me,"--loading-color":Fe,"--color-active-warning":ut,"--box-shadow-focus-warning":dt,"--box-shadow-active-warning":vt,"--box-shadow-hover-warning":Yt,"--border-warning":Ht,"--border-focus-warning":Wt,"--border-hover-warning":Gr,"--border-active-warning":wn,"--color-active-error":Cn,"--box-shadow-focus-error":Sn,"--box-shadow-active-error":kn,"--box-shadow-hover-error":Pn,"--border-error":$n,"--border-focus-error":Rn,"--border-hover-error":Tn,"--border-active-error":zn,"--clear-size":Na,"--clear-color":_n,"--clear-color-hover":La,"--clear-color-pressed":Da,"--arrow-size":ja}})}},render(){const{multiple:e,size:t,disabled:r,filterable:o,maxTagCount:n,bordered:i,clsPrefix:a,renderTag:l,renderLabel:s}=this,c=n==="responsive",d=typeof n=="number",u=c||d,h=f(kh,{clsPrefix:a,loading:this.loading,showArrow:this.showArrow,showClear:this.mergedClearable&&this.selected,onClear:this.handleClear});let g;if(e){const b=S=>f("div",{class:`${a}-base-selection-tag-wrapper`,key:S.value},l?l({option:S,handleClose:()=>this.handleDeleteOption(S)}):f(Os,{size:t,closable:!S.disabled,disabled:r,internalStopClickPropagation:!0,onClose:()=>this.handleDeleteOption(S)},{default:()=>s?s(S,!0):Ke(S.label,S,!0)})),y=(d?this.selectedOptions.slice(0,n):this.selectedOptions).map(b),v=o?f("div",{class:`${a}-base-selection-input-tag`,ref:"inputTagElRef",key:"__input-tag__"},f("input",Object.assign({},this.inputProps,{ref:"patternInputRef",tabindex:-1,disabled:r,value:this.pattern,autofocus:this.autofocus,class:`${a}-base-selection-input-tag__input`,onBlur:this.handlePatternInputBlur,onFocus:this.handlePatternInputFocus,onKeydown:this.handlePatternKeyDown,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),f("span",{ref:"patternInputMirrorRef",class:`${a}-base-selection-input-tag__mirror`},this.pattern?this.pattern:"")):null,p=c?()=>f("div",{class:`${a}-base-selection-tag-wrapper`,ref:"counterWrapperRef"},f(Os,{ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,onMouseleave:this.handleMouseLeaveCounter,disabled:r})):void 0;let w;if(d){const S=this.selectedOptions.length-n;S>0&&(w=f("div",{class:`${a}-base-selection-tag-wrapper`,key:"__counter__"},f(Os,{ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,disabled:r},{default:()=>`+${S}`})))}const P=c?o?f(fh,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,getTail:this.getTail,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:()=>y,counter:p,tail:()=>v}):f(fh,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:()=>y,counter:p}):d?y.concat(w):y,m=u?()=>f("div",{class:`${a}-base-selection-popover`},c?y:this.selectedOptions.map(b)):void 0,x=u?{show:this.showTagsPanel,trigger:"hover",overlap:!0,placement:"top",width:"trigger",onUpdateShow:this.onPopoverUpdateShow,theme:this.mergedTheme.peers.Popover,themeOverrides:this.mergedTheme.peerOverrides.Popover}:null,C=!this.selected&&!this.pattern&&!this.isCompositing?f("div",{class:`${a}-base-selection-placeholder ${a}-base-selection-overlay`},this.placeholder):null;if(o){const S=f("div",{ref:"patternInputWrapperRef",class:`${a}-base-selection-tags`},P,c?null:v,h);g=f(nt,null,u?f(an,Object.assign({},x),{trigger:()=>S,default:m}):S,C)}else{const S=f("div",{ref:"multipleElRef",class:`${a}-base-selection-tags`,tabindex:r?void 0:0},P,h);g=f(nt,null,u?f(an,Object.assign({},x),{trigger:()=>S,default:m}):S,C)}}else if(o){const b=!this.pattern&&(this.active||!this.selected)&&!this.isCompositing;g=f("div",{ref:"patternInputWrapperRef",class:`${a}-base-selection-label`},f("input",Object.assign({},this.inputProps,{ref:"patternInputRef",class:`${a}-base-selection-input`,value:this.patternInputFocused&&this.active?this.pattern:"",placeholder:"",readonly:r,disabled:r,tabindex:-1,autofocus:this.autofocus,onFocus:this.handlePatternInputFocus,onBlur:this.handlePatternInputBlur,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),b||this.patternInputFocused&&this.active?null:f("div",{class:`${a}-base-selection-label__render-label ${a}-base-selection-overlay`,key:"input"},l?l({option:this.selectedOption,handleClose:()=>{}}):s?s(this.selectedOption,!0):Ke(this.label,this.selectedOption,!0)),b?f("div",{class:`${a}-base-selection-placeholder ${a}-base-selection-overlay`,key:"placeholder"},this.filterablePlaceholder):null,h)}else g=f("div",{ref:"singleElRef",class:`${a}-base-selection-label`,tabindex:this.disabled?void 0:0},this.label!==void 0?f("div",{class:`${a}-base-selection-input`,title:oC(this.label),key:"input"},f("div",{class:`${a}-base-selection-input__content`},l?l({option:this.selectedOption,handleClose:()=>{}}):s?s(this.selectedOption,!0):Ke(this.label,this.selectedOption,!0))):f("div",{class:`${a}-base-selection-placeholder ${a}-base-selection-overlay`,key:"placeholder"},this.placeholder),h);return f("div",{ref:"selfRef",class:[`${a}-base-selection`,{[`${a}-base-selection--active`]:this.active,[`${a}-base-selection--selected`]:this.selected||this.active&&this.pattern,[`${a}-base-selection--disabled`]:this.disabled,[`${a}-base-selection--multiple`]:this.multiple,[`${a}-base-selection--focus`]:this.focused}],style:this.cssVars,onClick:this.onClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onKeyup:this.onKeyup,onKeydown:this.onKeydown,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onMousedown:this.handleMouseDown},g,i?f("div",{class:`${a}-base-selection__border`}):null,i?f("div",{class:`${a}-base-selection__state-border`}):null)}});const{cubicBezierEaseInOut:Hr}=Qt;function a3({duration:e=".2s",delay:t=".1s"}={}){return[E("&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to",{opacity:1}),E("&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from",` + opacity: 0!important; + margin-left: 0!important; + margin-right: 0!important; + `),E("&.fade-in-width-expand-transition-leave-active",` + overflow: hidden; + transition: + opacity ${e} ${Hr}, + max-width ${e} ${Hr} ${t}, + margin-left ${e} ${Hr} ${t}, + margin-right ${e} ${Hr} ${t}; + `),E("&.fade-in-width-expand-transition-enter-active",` + overflow: hidden; + transition: + opacity ${e} ${Hr} ${t}, + max-width ${e} ${Hr}, + margin-left ${e} ${Hr}, + margin-right ${e} ${Hr}; + `)]}var l3={iconMargin:"12px 8px 0 12px",iconSize:"26px",closeSize:"16px",closeMargin:"14px 16px 0 0",padding:"15px"};const s3=e=>{const{lineHeight:t,borderRadius:r,fontWeightStrong:o,baseColor:n,dividerColor:i,actionColor:a,textColor1:l,textColor2:s,closeColor:c,closeColorHover:d,closeColorPressed:u,infoColor:h,successColor:g,warningColor:b,errorColor:y,fontSize:v}=e;return Object.assign(Object.assign({},l3),{fontSize:v,lineHeight:t,titleFontWeight:o,borderRadius:r,border:`1px solid ${i}`,color:a,titleTextColor:l,iconColor:s,contentTextColor:s,closeColor:c,closeColorHover:d,closeColorPressed:u,borderInfo:`1px solid ${Ye(n,ze(h,{alpha:.25}))}`,colorInfo:Ye(n,ze(h,{alpha:.08})),titleTextColorInfo:l,iconColorInfo:h,contentTextColorInfo:s,closeColorInfo:c,closeColorHoverInfo:d,closeColorPressedInfo:u,borderSuccess:`1px solid ${Ye(n,ze(g,{alpha:.25}))}`,colorSuccess:Ye(n,ze(g,{alpha:.08})),titleTextColorSuccess:l,iconColorSuccess:g,contentTextColorSuccess:s,closeColorSuccess:c,closeColorHoverSuccess:d,closeColorPressedSuccess:u,borderWarning:`1px solid ${Ye(n,ze(b,{alpha:.33}))}`,colorWarning:Ye(n,ze(b,{alpha:.08})),titleTextColorWarning:l,iconColorWarning:b,contentTextColorWarning:s,closeColorWarning:c,closeColorHoverWarning:d,closeColorPressedWarning:u,borderError:`1px solid ${Ye(n,ze(y,{alpha:.25}))}`,colorError:Ye(n,ze(y,{alpha:.08})),titleTextColorError:l,iconColorError:y,contentTextColorError:s,closeColorError:c,closeColorHoverError:d,closeColorPressedError:u})},c3={name:"Alert",common:De,self:s3};var d3=c3;const{cubicBezierEaseInOut:dr,cubicBezierEaseOut:u3,cubicBezierEaseIn:f3}=Qt;function ln({overflow:e="hidden",duration:t=".3s",originalTransition:r="",leavingDelay:o="0s",foldPadding:n=!1,enterToProps:i=void 0,leaveToProps:a=void 0,reverse:l=!1}={}){const s=l?"leave":"enter",c=l?"enter":"leave";return[E(`&.fade-in-height-expand-transition-${c}-from, + &.fade-in-height-expand-transition-${s}-to`,Object.assign(Object.assign({},i),{opacity:1})),E(`&.fade-in-height-expand-transition-${c}-to, + &.fade-in-height-expand-transition-${s}-from`,Object.assign(Object.assign({},a),{opacity:0,marginTop:"0 !important",marginBottom:"0 !important",paddingTop:n?"0 !important":void 0,paddingBottom:n?"0 !important":void 0})),E(`&.fade-in-height-expand-transition-${c}-active`,` + overflow: ${e}; + transition: + max-height ${t} ${dr} ${o}, + opacity ${t} ${u3} ${o}, + margin-top ${t} ${dr} ${o}, + margin-bottom ${t} ${dr} ${o}, + padding-top ${t} ${dr} ${o}, + padding-bottom ${t} ${dr} ${o} + ${r?","+r:""} + `),E(`&.fade-in-height-expand-transition-${s}-active`,` + overflow: ${e}; + transition: + max-height ${t} ${dr}, + opacity ${t} ${f3}, + margin-top ${t} ${dr}, + margin-bottom ${t} ${dr}, + padding-top ${t} ${dr}, + padding-bottom ${t} ${dr} + ${r?","+r:""} + `)]}var h3=k("alert",` + line-height: var(--line-height); + border-radius: var(--border-radius); + position: relative; + transition: background-color .3s var(--bezier); + background-color: var(--color); + text-align: start; +`,[O("icon",{color:"var(--icon-color)"}),k("alert-body",{border:"var(--border)",padding:"var(--padding)"},[O("title",{color:"var(--title-text-color)"}),O("content",{color:"var(--content-text-color)"})]),ln({originalTransition:"transform .3s var(--bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.9)"}}),O("icon",` + position: absolute; + left: 0; + top: 0; + align-items: center; + justify-content: center; + display: flex; + width: var(--icon-size); + height: var(--icon-size); + font-size: var(--icon-size); + margin: var(--icon-margin); + `),O("close",` + transition: color .3s var(--bezier); + position: absolute; + right: 0; + top: 0; + margin: var(--close-margin); + font-size: var(--close-size); + `),j("show-icon",[k("alert-body",{paddingLeft:"calc(var(--icon-margin-left) + var(--icon-size) + var(--icon-margin-right))"})]),k("alert-body",` + border-radius: var(--border-radius); + transition: border-color .3s var(--bezier); + `,[O("title",` + transition: color .3s var(--bezier); + font-size: 16px; + line-height: 19px; + font-weight: var(--title-font-weight); + `,[E("& +",[O("content",{marginTop:"9px"})])]),O("content",{transition:"color .3s var(--bezier)",fontSize:"var(--font-size)"})]),O("icon",{transition:"color .3s var(--bezier)"})]);const p3=Object.assign(Object.assign({},ye.props),{title:{type:String,default:void 0},showIcon:{type:Boolean,default:!0},type:{type:String,default:"default"},closable:{type:Boolean,default:!1},onClose:Function,onAfterLeave:{type:Function,default:void 0},onAfterHide:{type:Function,validator:()=>!0,default:void 0}});var wO=q({name:"Alert",inheritAttrs:!1,props:p3,setup(e){const{mergedClsPrefixRef:t}=Ee(e),r=ye("Alert","Alert",h3,d3,e,t),o=R(()=>{const{common:{cubicBezierEaseInOut:s},self:c}=r.value,{fontSize:d,borderRadius:u,titleFontWeight:h,lineHeight:g,contentTextColor:b,titleTextColor:y,iconSize:v,iconMargin:p,closeSize:w,closeMargin:P,padding:m}=c,{type:x}=e,{left:C,right:S}=Lo(p);return{"--bezier":s,"--color":c[ce("color",x)],"--close-color":c[ce("closeColor",x)],"--close-color-hover":c[ce("closeColorHover",x)],"--close-color-pressed":c[ce("closeColorPressed",x)],"--icon-color":c[ce("iconColor",x)],"--border":c[ce("border",x)],"--title-text-color":y,"--content-text-color":b,"--line-height":g,"--border-radius":u,"--font-size":d,"--title-font-weight":h,"--icon-size":v,"--icon-margin":p,"--close-size":w,"--close-margin":P,"--padding":m,"--icon-margin-left":C,"--icon-margin-right":S}}),n=W(!0),i=()=>{const{onAfterLeave:s,onAfterHide:c}=e;s&&s(),c&&c()};return{mergedClsPrefix:t,visible:n,handleCloseClick:()=>{var s;Promise.resolve((s=e.onClose)===null||s===void 0?void 0:s.call(e)).then(c=>{c!==!1&&(n.value=!1)})},handleAfterLeave:()=>{i()},mergedTheme:r,cssVars:o}},render(){return f(mo,{onAfterLeave:this.handleAfterLeave},{default:()=>{const{mergedClsPrefix:e,$slots:t}=this,r={class:[`${e}-alert`,this.showIcon&&`${e}-alert--show-icon`],style:this.cssVars,role:"alert"};return this.visible?f("div",Object.assign({},Zt(this.$attrs,r)),this.closable&&f(en,{clsPrefix:e,class:`${e}-alert__close`,onClick:this.handleCloseClick}),this.showIcon&&f("div",{class:`${e}-alert__icon`,"aria-hidden":"true"},t.icon?t.icon():f(Be,{clsPrefix:e},{default:()=>{switch(this.type){case"success":return f(Jo,null);case"info":return f(Zo,null);case"warning":return f(vo,null);case"error":return f(Xo,null);default:return null}}})),f("div",{class:`${e}-alert-body`},this.title!==void 0&&f("div",{class:`${e}-alert-body__title`},Ae(t,"header",void 0,()=>[this.title])),t.default&&f("div",{class:`${e}-alert-body__content`},t))):null}})}}),g3={paddingTiny:"0 8px",paddingSmall:"0 10px",paddingMedium:"0 12px",paddingLarge:"0 14px",clearSize:"16px"};const v3=e=>{const{textColor2:t,textColor3:r,textColorDisabled:o,primaryColor:n,primaryColorHover:i,inputColor:a,inputColorDisabled:l,borderColor:s,warningColor:c,warningColorHover:d,errorColor:u,errorColorHover:h,borderRadius:g,lineHeight:b,fontSizeTiny:y,fontSizeSmall:v,fontSizeMedium:p,fontSizeLarge:w,heightTiny:P,heightSmall:m,heightMedium:x,heightLarge:C,actionColor:S,clearColor:T,clearColorHover:$,clearColorPressed:M,placeholderColor:D,placeholderColorDisabled:_,iconColor:I,iconColorDisabled:G,iconColorHover:U,iconColorPressed:N}=e;return Object.assign(Object.assign({},g3),{countTextColor:r,heightTiny:P,heightSmall:m,heightMedium:x,heightLarge:C,fontSizeTiny:y,fontSizeSmall:v,fontSizeMedium:p,fontSizeLarge:w,lineHeight:b,lineHeightTextarea:b,borderRadius:g,iconSize:"16px",groupLabelColor:S,groupLabelTextColor:t,textColor:t,textColorDisabled:o,textDecorationColor:t,caretColor:n,placeholderColor:D,placeholderColorDisabled:_,color:a,colorDisabled:l,colorFocus:a,groupLabelBorder:`1px solid ${s}`,border:`1px solid ${s}`,borderHover:`1px solid ${i}`,borderDisabled:`1px solid ${s}`,borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 0 2px ${ze(n,{alpha:.2})}`,loadingColor:n,loadingColorWarning:c,borderWarning:`1px solid ${c}`,borderHoverWarning:`1px solid ${d}`,colorFocusWarning:a,borderFocusWarning:`1px solid ${d}`,boxShadowFocusWarning:`0 0 0 2px ${ze(c,{alpha:.2})}`,caretColorWarning:c,loadingColorError:u,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${h}`,colorFocusError:a,borderFocusError:`1px solid ${h}`,boxShadowFocusError:`0 0 0 2px ${ze(u,{alpha:.2})}`,caretColorError:u,clearColor:T,clearColorHover:$,clearColorPressed:M,iconColor:I,iconColorDisabled:G,iconColorHover:U,iconColorPressed:N,suffixTextColor:t})},m3={name:"Input",common:De,self:v3};var $h=m3;const Rh=Symbol("input");function b3(e){let t=0;for(const r of e)t++;return t}function ga(e){return["",void 0,null].includes(e)}var Th=q({name:"InputWordCount",setup(e,{slots:t}){const{mergedValueRef:r,maxlengthRef:o,mergedClsPrefixRef:n}=Pe(Rh),i=R(()=>{const{value:a}=r;return a===null||Array.isArray(a)?0:b3(a)});return()=>{const{value:a}=o,{value:l}=r;return f("span",{class:`${n.value}-input-word-count`},t.default?t.default({value:l===null||Array.isArray(l)?"":l}):a===void 0?i.value:`${i.value} / ${a}`)}}}),x3=E([k("input",` + max-width: 100%; + cursor: text; + line-height: 1.5; + z-index: auto; + outline: none; + box-sizing: border-box; + position: relative; + display: inline-flex; + border-radius: var(--border-radius); + background-color: var(--color); + transition: background-color .3s var(--bezier); + font-size: var(--font-size); + --padding-vertical: calc((var(--height) - 1.5 * var(--font-size)) / 2); + `,[O("input, textarea",` + overflow: hidden; + flex-grow: 1; + position: relative; + `),O("input-el, textarea-el, input-mirror, textarea-mirror, separator, placeholder",` + box-sizing: border-box; + font-size: inherit; + line-height: 1.5; + font-family: inherit; + border: none; + outline: none; + background-color: #0000; + text-align: inherit; + transition: + caret-color .3s var(--bezier), + color .3s var(--bezier), + text-decoration-color .3s var(--bezier); + `),O("input-el, textarea-el",` + -webkit-appearance: none; + width: 100%; + min-width: 0; + text-decoration-color: var(--text-decoration-color); + color: var(--text-color); + caret-color: var(--caret-color); + `,[E("&::placeholder",{color:"#0000"})]),j("round",[qe("textarea",{borderRadius:"calc(var(--height) / 2)"})]),O("placeholder",` + pointer-events: none; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + overflow: hidden; + color: var(--placeholder-color); + `,[E("span",{width:"100%",display:"inline-block"})]),qe("autosize",{width:"100%"}),j("autosize",[O("textarea-el, input-el",` + position: absolute; + top: 0; + left: 0; + height: 100%; + `)]),k("input-wrapper",` + overflow: hidden; + display: inline-flex; + flex-grow: 1; + position: relative; + padding-left: var(--padding-left); + padding-right: var(--padding-right); + `),O("input-mirror",` + padding: 0; + height: var(--height); + overflow: hidden; + visibility: hidden; + position: static; + white-space: nowrap; + pointer-events: none; + `),O("input-el",` + padding: 0; + height: var(--height); + line-height: var(--height); + `,[E("+",[O("placeholder",` + display: flex; + align-items: center; + `)])]),qe("textarea",[O("placeholder",{whiteSpace:"nowrap"})]),O("eye",` + transition: color .3s var(--bezier); + `),j("textarea",{width:"100%"},[k("input-word-count",` + position: absolute; + right: var(--padding-right); + bottom: var(--padding-vertical); + `),j("resizable",[k("input-wrapper",` + resize: vertical; + overflow: auto; + min-height: var(--height); + `)]),O("textarea-el, textarea-mirror, placeholder",` + width: 100%; + height: 100%; + padding-left: 0; + padding-right: 0; + padding-top: var(--padding-vertical); + padding-bottom: var(--padding-vertical); + display: inline-block; + vertical-align: bottom; + box-sizing: border-box; + line-height: var(--line-height-textarea); + margin: 0; + resize: none; + `),O("textarea-mirror",` + pointer-events: none; + overflow: hidden; + visibility: hidden; + position: static; + white-space: pre-wrap; + overflow-wrap: break-word; + `)]),j("pair",[O("input-el, placeholder",{textAlign:"center"}),O("separator",` + display: flex; + align-items: center; + transition: color .3s var(--bezier); + color: var(--text-color); + `,[k("icon",` + color: var(--icon-color); + `),k("base-icon",` + color: var(--icon-color); + `)])]),j("disabled",{cursor:"not-allowed",backgroundColor:"var(--color-disabled)"},[O("border",{border:"var(--border-disabled)"}),O("input-el, textarea-el",{cursor:"not-allowed",color:"var(--text-color-disabled)",textDecorationColor:"var(--text-color-disabled)"}),O("placeholder",{color:"var(--placeholder-color-disabled)"}),O("separator",{color:"var(--text-color-disabled)"},[k("icon",` + color: var(--icon-color-disabled); + `),k("base-icon",` + color: var(--icon-color-disabled); + `)]),O("suffix, prefix",{color:"var(--text-color-disabled)"},[k("icon",` + color: var(--icon-color-disabled); + `),k("internal-icon",` + color: var(--icon-color-disabled); + `)])]),qe("disabled",[O("eye",` + color: var(--icon-color); + cursor: pointer; + `,[E("&:hover",` + color: var(--icon-color-hover); + `),E("&:active",` + color: var(--icon-color-pressed); + `)]),j("focus",{backgroundColor:"var(--color-focus)"},[O("state-border",{border:"var(--border-focus)",boxShadow:"var(--box-shadow-focus)"})]),E("&:hover",[O("state-border",{border:"var(--border-focus)"})])]),O("border, state-border",` + box-sizing: border-box; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + pointer-events: none; + border-radius: inherit; + border: var(--border); + transition: + box-shadow .3s var(--bezier), + border-color .3s var(--bezier); + `),O("state-border",` + border-color: #0000; + z-index: 1; + `),O("prefix",{marginRight:"4px"}),O("suffix",` + margin-left: 4px; + `),O("suffix, prefix",` + transition: color .3s var(--bezier); + flex-wrap: nowrap; + flex-shrink: 0; + line-height: var(--height); + white-space: nowrap; + display: inline-flex; + align-items: center; + justify-content: center; + color: var(--suffix-text-color); + `,[k("base-loading",` + font-size: var(--icon-size); + margin-left: 4px; + color: var(--loading-color); + `),k("base-clear",` + font-size: var(--icon-size); + margin-left: 4px; + `,[O("placeholder",[k("base-icon",` + transition: color .3s var(--bezier); + color: var(--icon-color); + font-size: var(--icon-size); + `)])]),k("icon",` + transition: color .3s var(--bezier); + color: var(--icon-color); + font-size: var(--icon-size); + `),k("base-icon",` + font-size: var(--icon-size); + `)]),k("input-word-count",` + pointer-events: none; + line-height: 1.5; + font-size: .85em; + color: var(--count-text-color); + transition: color .3s var(--bezier); + margin-left: 4px; + font-variant: tabular-nums; + `)]),["warning","error"].map(e=>Sf(e,k("input",[qe("disabled",[k("base-loading",` + color: var(--loading-color-${e}) + `),O("input-el, textarea-el",{caretColor:`var(--caret-color-${e})`}),O("state-border",{border:`var(--border-${e})`}),E("&:hover",[O("state-border",` + border: var(--border-hover-${e}); + `)]),E("&:focus",{backgroundColor:`var(--color-focus-${e})`},[O("state-border",` + box-shadow: var(--box-shadow-focus-${e}); + border: var(--border-focus-${e}); + `)]),j("focus",{backgroundColor:`var(--color-focus-${e})`},[O("state-border",` + box-shadow: var(--box-shadow-focus-${e}); + border: var(--border-focus-${e}); + `)])])])))]);const y3=Object.assign(Object.assign({},ye.props),{bordered:{type:Boolean,default:void 0},type:{type:String,default:"text"},placeholder:[Array,String],defaultValue:{type:[String,Array],default:null},value:[String,Array],disabled:{type:Boolean,default:void 0},size:String,rows:{type:[Number,String],default:3},round:Boolean,minlength:[String,Number],maxlength:[String,Number],clearable:Boolean,autosize:{type:[Boolean,Object],default:!1},pair:Boolean,separator:String,readonly:{type:[String,Boolean],default:!1},passivelyActivated:Boolean,showPasswordOn:String,stateful:{type:Boolean,default:!0},autofocus:Boolean,inputProps:Object,resizable:{type:Boolean,default:!0},showCount:Boolean,loading:{type:Boolean,default:void 0},onMousedown:Function,onKeydown:Function,onKeyup:Function,onInput:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClick:[Function,Array],onChange:[Function,Array],onClear:[Function,Array],"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],textDecoration:[String,Array],attrSize:{type:Number,default:20},onInputBlur:[Function,Array],onInputFocus:[Function,Array],onDeactivate:[Function,Array],onActivate:[Function,Array],onWrapperFocus:[Function,Array],onWrapperBlur:[Function,Array],internalDeactivateOnEnter:Boolean,internalForceFocus:Boolean,showPasswordToggle:Boolean});var w3=q({name:"Input",props:y3,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:r}=Ee(e),o=ye("Input","Input",x3,$h,e,t),n=W(null),i=W(null),a=W(null),l=W(null),s=W(null),c=W(null),{localeRef:d}=kr("Input"),u=W(e.defaultValue),h=ke(e,"value"),g=gt(h,u),b=xr(e),{mergedSizeRef:y,mergedDisabledRef:v}=b,p=W(!1),w=W(!1),P=W(!1),m=W(!1);let x=null;const C=R(()=>{const{placeholder:H,pair:me}=e;return me?Array.isArray(H)?H:H===void 0?["",""]:[H,H]:H===void 0?[d.value.placeholder]:[H]}),S=R(()=>{const{value:H}=P,{value:me}=g,{value:Fe}=C;return!H&&(ga(me)||Array.isArray(me)&&ga(me[0]))&&Fe[0]}),T=R(()=>{const{value:H}=P,{value:me}=g,{value:Fe}=C;return!H&&Fe[1]&&(ga(me)||Array.isArray(me)&&ga(me[1]))}),$=Ve(()=>e.internalForceFocus||p.value),M=Ve(()=>{if(v.value||e.readonly||!e.clearable||!$.value&&!w.value)return!1;const{value:H}=g,{value:me}=$;return e.pair?!!(Array.isArray(H)&&(H[0]||H[1]))&&(w.value||me):!!H&&(w.value||me)}),D=R(()=>{const{showPasswordOn:H}=e;if(H)return H;if(e.showPasswordToggle)return"click"}),_=W(!1),I=R(()=>{const{textDecoration:H}=e;return H?Array.isArray(H)?H.map(me=>({textDecoration:me})):[{textDecoration:H}]:["",""]}),G=()=>{if(e.type==="textarea"){const{autosize:H}=e;if(typeof H=="boolean"||!i.value)return;const{paddingTop:me,paddingBottom:Fe,lineHeight:ut}=window.getComputedStyle(i.value),dt=Number(me.slice(0,-2)),vt=Number(Fe.slice(0,-2)),Yt=Number(ut.slice(0,-2)),{value:Ht}=a;if(!Ht)return;if(H.minRows){const Wt=Math.max(H.minRows,1),Gr=`${dt+vt+Yt*Wt}px`;Ht.style.minHeight=Gr}if(H.maxRows){const Wt=`${dt+vt+Yt*H.maxRows}px`;Ht.style.maxHeight=Wt}}},U=R(()=>{const{maxlength:H}=e;return H===void 0?void 0:Number(H)});wt(()=>{const{value:H}=g;Array.isArray(H)||Me(H)});const N=no().proxy;function F(H){const{onUpdateValue:me,"onUpdate:value":Fe,onInput:ut}=e,{nTriggerFormInput:dt}=b;me&&ue(me,H),Fe&&ue(Fe,H),ut&&ue(ut,H),u.value=H,dt()}function A(H){const{onChange:me}=e,{nTriggerFormChange:Fe}=b;me&&ue(me,H),u.value=H,Fe()}function re(H){const{onBlur:me}=e,{nTriggerFormBlur:Fe}=b;me&&ue(me,H),Fe()}function be(H){const{onFocus:me}=e,{nTriggerFormFocus:Fe}=b;me&&ue(me,H),Fe()}function Se(H){const{onClear:me}=e;me&&ue(me,H)}function Te(H){const{onInputBlur:me}=e;me&&ue(me,H)}function Oe(H){const{onInputFocus:me}=e;me&&ue(me,H)}function Re(){const{onDeactivate:H}=e;H&&ue(H)}function Z(){const{onActivate:H}=e;H&&ue(H)}function fe(H){const{onClick:me}=e;me&&ue(me,H)}function ee(H){const{onWrapperFocus:me}=e;me&&ue(me,H)}function xe(H){const{onWrapperBlur:me}=e;me&&ue(me,H)}function ie(){P.value=!0}function Ce(H){P.value=!1,H.target===c.value?te(H,1):te(H,0)}function te(H,me=0,Fe="input"){const ut=H.target.value;if(Me(ut),x=ut,P.value)return;const dt=ut;if(!e.pair)Fe==="input"?F(dt):A(dt);else{let{value:vt}=g;Array.isArray(vt)?vt=[...vt]:vt=["",""],vt[me]=dt,Fe==="input"?F(vt):A(vt)}N.$forceUpdate()}function ge(H){Te(H),H.relatedTarget===n.value&&Re(),H.relatedTarget!==null&&(H.relatedTarget===s.value||H.relatedTarget===c.value||H.relatedTarget===i.value)||(m.value=!1),Q(H,"blur")}function z(H){Oe(H),p.value=!0,m.value=!0,Z(),Q(H,"focus")}function L(H){e.passivelyActivated&&(xe(H),Q(H,"blur"))}function K(H){e.passivelyActivated&&(p.value=!0,ee(H),Q(H,"focus"))}function Q(H,me){H.relatedTarget!==null&&(H.relatedTarget===s.value||H.relatedTarget===c.value||H.relatedTarget===i.value||H.relatedTarget===n.value)||(me==="focus"?(be(H),p.value=!0):me==="blur"&&(re(H),p.value=!1))}function B(H,me){te(H,me,"change")}function Y(H){fe(H)}function ae(H){Se(H),e.pair?F(["",""]):F("")}function le(H){const{onMousedown:me}=e;me&&me(H);const{tagName:Fe}=H.target;if(Fe!=="INPUT"&&Fe!=="TEXTAREA"){if(e.resizable){const{value:ut}=n;if(ut){const{left:dt,top:vt,width:Yt,height:Ht}=ut.getBoundingClientRect(),Wt=14;if(dt+Yt-Wt{ut.preventDefault(),Xe("mouseup",document,me)};if(ct("mouseup",document,me),D.value!=="mousedown")return;_.value=!0;const Fe=()=>{_.value=!1,Xe("mouseup",document,Fe)};ct("mouseup",document,Fe)}function de(H){var me;switch((me=e.onKeydown)===null||me===void 0||me.call(e,H),H.code){case"Escape":V();break;case"Enter":case"NumpadEnter":we(H);break}}function we(H){var me,Fe;if(e.passivelyActivated){const{value:ut}=m;if(ut){e.internalDeactivateOnEnter&&V();return}H.preventDefault(),e.type==="textarea"?(me=i.value)===null||me===void 0||me.focus():(Fe=s.value)===null||Fe===void 0||Fe.focus()}}function V(){e.passivelyActivated&&(m.value=!1,Ct(()=>{var H;(H=n.value)===null||H===void 0||H.focus()}))}function oe(){var H,me,Fe;v.value||(e.passivelyActivated?(H=n.value)===null||H===void 0||H.focus():((me=i.value)===null||me===void 0||me.focus(),(Fe=s.value)===null||Fe===void 0||Fe.focus()))}function pe(){var H;((H=n.value)===null||H===void 0?void 0:H.contains(document.activeElement))&&document.activeElement.blur()}function ve(){v.value||(i.value?i.value.focus():s.value&&s.value.focus())}function $e(){const{value:H}=n;(H==null?void 0:H.contains(document.activeElement))&&H!==document.activeElement&&V()}function Me(H){const{type:me,pair:Fe,autosize:ut}=e;if(!Fe&&ut)if(me==="textarea"){const{value:dt}=a;dt&&(dt.textContent=(H!=null?H:"")+`\r +`)}else{const{value:dt}=l;dt&&(H?dt.textContent=H:dt.innerHTML=" ")}}function rt(){G()}let lt=null;return mr(()=>{const{autosize:H,type:me}=e;H&&me==="textarea"?lt=Ue(g,Fe=>{!Array.isArray(Fe)&&Fe!==x&&Me(Fe)}):lt==null||lt()}),Ie(Rh,{mergedValueRef:g,maxlengthRef:U,mergedClsPrefixRef:t}),Object.assign(Object.assign({},{wrapperElRef:n,inputElRef:s,textareaElRef:i,isCompositing:P,focus:oe,blur:pe,deactivate:$e,activate:ve}),{wrapperElRef:n,inputElRef:s,inputMirrorElRef:l,inputEl2Ref:c,textareaElRef:i,textareaMirrorElRef:a,uncontrolledValue:u,mergedValue:g,passwordVisible:_,mergedPlaceholder:C,showPlaceholder1:S,showPlaceholder2:T,mergedFocus:$,isComposing:P,activated:m,showClearButton:M,mergedSize:y,mergedDisabled:v,textDecorationStyle:I,mergedClsPrefix:t,mergedBordered:r,mergedShowPasswordOn:D,handleCompositionStart:ie,handleCompositionEnd:Ce,handleInput:te,handleInputBlur:ge,handleInputFocus:z,handleWrapperBlur:L,handleWrapperFocus:K,handleMouseEnter:se,handleMouseLeave:ne,handleMouseDown:le,handleChange:B,handleClick:Y,handleClear:ae,handlePasswordToggleClick:J,handlePasswordToggleMousedown:X,handleWrapperKeyDown:de,handleTextAreaMirrorResize:rt,mergedTheme:o,cssVars:R(()=>{const{value:H}=y,{common:{cubicBezierEaseInOut:me},self:{color:Fe,borderRadius:ut,textColor:dt,caretColor:vt,caretColorError:Yt,caretColorWarning:Ht,textDecorationColor:Wt,border:Gr,borderDisabled:wn,borderHover:Cn,borderFocus:Sn,placeholderColor:kn,placeholderColorDisabled:Pn,lineHeightTextarea:$n,colorDisabled:Rn,colorFocus:Tn,textColorDisabled:zn,boxShadowFocus:_n,iconSize:La,colorFocusWarning:Da,boxShadowFocusWarning:Na,borderWarning:ja,borderFocusWarning:Ha,borderHoverWarning:Wa,colorFocusError:gv,boxShadowFocusError:vv,borderError:mv,borderFocusError:bv,borderHoverError:xv,clearSize:yv,clearColor:wv,clearColorHover:Cv,clearColorPressed:Sv,iconColor:kv,iconColorDisabled:Pv,suffixTextColor:$v,countTextColor:Rv,iconColorHover:Tv,iconColorPressed:zv,loadingColor:_v,loadingColorError:Ov,loadingColorWarning:Ev,[ce("padding",H)]:Mv,[ce("fontSize",H)]:Iv,[ce("height",H)]:Av}}=o.value,{left:Fv,right:Bv}=Lo(Mv);return{"--bezier":me,"--count-text-color":Rv,"--color":Fe,"--font-size":Iv,"--border-radius":ut,"--height":Av,"--padding-left":Fv,"--padding-right":Bv,"--text-color":dt,"--caret-color":vt,"--text-decoration-color":Wt,"--border":Gr,"--border-disabled":wn,"--border-hover":Cn,"--border-focus":Sn,"--placeholder-color":kn,"--placeholder-color-disabled":Pn,"--icon-size":La,"--line-height-textarea":$n,"--color-disabled":Rn,"--color-focus":Tn,"--text-color-disabled":zn,"--box-shadow-focus":_n,"--loading-color":_v,"--caret-color-warning":Ht,"--color-focus-warning":Da,"--box-shadow-focus-warning":Na,"--border-warning":ja,"--border-focus-warning":Ha,"--border-hover-warning":Wa,"--loading-color-warning":Ev,"--caret-color-error":Yt,"--color-focus-error":gv,"--box-shadow-focus-error":vv,"--border-error":mv,"--border-focus-error":bv,"--border-hover-error":xv,"--loading-color-error":Ov,"--clear-color":wv,"--clear-size":yv,"--clear-color-hover":Cv,"--clear-color-pressed":Sv,"--icon-color":kv,"--icon-color-hover":Tv,"--icon-color-pressed":zv,"--icon-color-disabled":Pv,"--suffix-text-color":$v}})})},render(){const{mergedClsPrefix:e}=this;return f("div",{ref:"wrapperElRef",class:[`${e}-input`,{[`${e}-input--disabled`]:this.mergedDisabled,[`${e}-input--textarea`]:this.type==="textarea",[`${e}-input--resizable`]:this.resizable&&!this.autosize,[`${e}-input--autosize`]:this.autosize,[`${e}-input--round`]:this.round&&this.type!=="textarea",[`${e}-input--pair`]:this.pair,[`${e}-input--focus`]:this.mergedFocus,[`${e}-input--stateful`]:this.stateful}],style:this.cssVars,tabindex:!this.mergedDisabled&&this.passivelyActivated&&!this.activated?0:void 0,onFocus:this.handleWrapperFocus,onBlur:this.handleWrapperBlur,onClick:this.handleClick,onMousedown:this.handleMouseDown,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd,onKeyup:this.onKeyup,onKeydown:this.handleWrapperKeyDown},f("div",{class:`${e}-input-wrapper`},this.$slots.affix||this.$slots.prefix?f("div",{class:`${e}-input__prefix`},Ae(this.$slots,"affix",void 0,()=>[Ae(this.$slots,"prefix")])):null,this.type==="textarea"?f("div",{class:`${e}-input__textarea`},f("textarea",Object.assign({},this.inputProps,{ref:"textareaElRef",class:`${e}-input__textarea-el`,autofocus:this.autofocus,rows:Number(this.rows),placeholder:this.placeholder,value:this.mergedValue,disabled:this.mergedDisabled,maxlength:this.maxlength,minlength:this.minlength,readonly:this.readonly,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,style:this.textDecorationStyle[0],onBlur:this.handleInputBlur,onFocus:this.handleInputFocus,onInput:this.handleInput,onChange:this.handleChange})),this.showPlaceholder1?f("div",{class:`${e}-input__placeholder`,key:"placeholder"},this.mergedPlaceholder[0]):null,this.autosize?f(oi,{onResize:this.handleTextAreaMirrorResize},{default:()=>f("div",{ref:"textareaMirrorElRef",class:`${e}-input__textarea-mirror`,key:"mirror"})}):null):f("div",{class:`${e}-input__input`},f("input",Object.assign({},this.inputProps,{ref:"inputElRef",type:this.type==="password"&&this.mergedShowPasswordOn&&this.passwordVisible?"text":this.type,class:`${e}-input__input-el`,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[0],disabled:this.mergedDisabled,maxlength:this.maxlength,minlength:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[0]:this.mergedValue,readonly:this.readonly,autofocus:this.autofocus,size:this.attrSize,style:this.textDecorationStyle[0],onBlur:this.handleInputBlur,onFocus:this.handleInputFocus,onInput:t=>this.handleInput(t,0),onChange:t=>this.handleChange(t,0)})),this.showPlaceholder1?f("div",{class:`${e}-input__placeholder`},f("span",null,this.mergedPlaceholder[0])):null,this.autosize?f("div",{class:`${e}-input__input-mirror`,key:"mirror",ref:"inputMirrorElRef"},"\xA0"):null),!this.pair&&(this.$slots.suffix||this.clearable||this.showCount||this.mergedShowPasswordOn||this.loading!==void 0)?f("div",{class:`${e}-input__suffix`},[this.clearable||this.$slots.clear?f(Es,{clsPrefix:e,show:this.showClearButton,onClear:this.handleClear},{default:()=>Ae(this.$slots,"clear")}):null,Ae(this.$slots,"suffix"),this.loading!==void 0?f(kh,{clsPrefix:e,loading:this.loading,showArrow:!1,showClear:!1,style:this.cssVars}):null,this.showCount&&this.type!=="textarea"?f(Th,null):null,this.mergedShowPasswordOn&&this.type==="password"?f(Be,{clsPrefix:e,class:`${e}-input__eye`,onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},{default:()=>this.passwordVisible?f(Vf,null):f(N2,null)}):null]):null),this.pair?f("span",{class:`${e}-input__separator`},Ae(this.$slots,"separator",void 0,()=>[this.separator])):null,this.pair?f("div",{class:`${e}-input-wrapper`},f("div",{class:`${e}-input__input`},f("input",{ref:"inputEl2Ref",type:this.type,class:`${e}-input__input-el`,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[1],disabled:this.mergedDisabled,maxlength:this.maxlength,minlength:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[1]:void 0,readonly:this.readonly,style:this.textDecorationStyle[1],onBlur:this.handleInputBlur,onFocus:this.handleInputFocus,onInput:t=>this.handleInput(t,1),onChange:t=>this.handleChange(t,1)}),this.showPlaceholder2?f("div",{class:`${e}-input__placeholder`},f("span",null,this.mergedPlaceholder[1])):null),f("div",{class:`${e}-input__suffix`},[this.clearable||this.$slots.clear?f(Es,{clsPrefix:e,show:this.showClearButton,onClear:this.handleClear},{default:()=>Ae(this.$slots,"clear")}):null,Ae(this.$slots,"suffix")])):null,this.mergedBordered?f("div",{class:`${e}-input__border`}):null,this.mergedBordered?f("div",{class:`${e}-input__state-border`}):null,this.showCount&&this.type==="textarea"?f(Th,null,{default:this.$slots.count}):null)}}),C3=k("input-group",` + display: inline-flex; + width: 100%; + flex-wrap: nowrap; + vertical-align: bottom; +`,[E(">",[k("input",[E("&:not(:last-child)",` + border-top-right-radius: 0!important; + border-bottom-right-radius: 0!important; + `),E("&:not(:first-child)",` + border-top-left-radius: 0!important; + border-bottom-left-radius: 0!important; + margin-left: -1px!important; + `)]),k("button",[E("&:not(:last-child)",` + border-top-right-radius: 0!important; + border-bottom-right-radius: 0!important; + `,[O("state-border, border",` + border-top-right-radius: 0!important; + border-bottom-right-radius: 0!important; + `)]),E("&:not(:first-child)",` + border-top-left-radius: 0!important; + border-bottom-left-radius: 0!important; + `,[O("state-border, border",` + border-top-left-radius: 0!important; + border-bottom-left-radius: 0!important; + `)])]),E("*",[E("&:not(:last-child)",` + border-top-right-radius: 0!important; + border-bottom-right-radius: 0!important; + `,[E(">",[k("input",` + border-top-right-radius: 0!important; + border-bottom-right-radius: 0!important; + `),k("base-selection",[k("base-selection-label",` + border-top-right-radius: 0!important; + border-bottom-right-radius: 0!important; + `),k("base-selection-tags",` + border-top-right-radius: 0!important; + border-bottom-right-radius: 0!important; + `),O("box-shadow, border, state-border",` + border-top-right-radius: 0!important; + border-bottom-right-radius: 0!important; + `)])])]),E("&:not(:first-child)",` + margin-left: -1px!important; + border-top-left-radius: 0!important; + border-bottom-left-radius: 0!important; + `,[E(">",[k("input",` + border-top-left-radius: 0!important; + border-bottom-left-radius: 0!important; + `),k("base-selection",[k("base-selection-label",` + border-top-left-radius: 0!important; + border-bottom-left-radius: 0!important; + `),k("base-selection-tags",` + border-top-left-radius: 0!important; + border-bottom-left-radius: 0!important; + `),O("box-shadow, border, state-border",` + border-top-left-radius: 0!important; + border-bottom-left-radius: 0!important; + `)])])])])])]);const S3={};var CO=q({name:"InputGroup",props:S3,setup(e){const{mergedClsPrefixRef:t}=Ee(e);return Pr("InputGroup",C3,t),{mergedClsPrefix:t}},render(){const{mergedClsPrefix:e}=this;return f("div",{class:`${e}-input-group`},this.$slots)}});function k3(e){return va(e)?e.name||e.key||"key-required":e.value}function va(e){return e.type==="group"}function zh(e){return e.type==="ignored"}const P3={getKey:k3,getIsGroup:va,getIgnored:zh};function _h(e,t){try{return!!(1+t.toString().toLowerCase().indexOf(e.trim().toLowerCase()))}catch{return!1}}function $3(e,t,r){if(!t)return e;function o(n){if(!Array.isArray(n))return[];const i=[];for(const a of n)if(va(a)){const l=o(a.children);l.length&&i.push(Object.assign({},a,{children:l}))}else{if(zh(a))continue;t(r,a)&&i.push(a)}return i}return o(e)}function R3(e){const t=new Map;return e.forEach(r=>{va(r)?r.children.forEach(o=>{t.set(o.value,o)}):t.set(r.value,r)}),t}function T3(e,t){return t?typeof t.label=="string"?_h(e,t.label):t.value!==void 0?_h(e,String(t.value)):!1:!1}var z3={fontWeightActive:"400"};const _3=e=>{const{fontSize:t,textColor3:r,primaryColorHover:o,primaryColorPressed:n,textColor2:i}=e;return Object.assign(Object.assign({},z3),{fontSize:t,itemTextColor:r,itemTextColorHover:o,itemTextColorPressed:n,itemTextColorActive:i,separatorColor:r})},O3={name:"Breadcrumb",common:De,self:_3};var E3=O3,M3=k("breadcrumb",` + white-space: nowrap; +`,[E("ul",` + list-style: none; + padding: 0; + margin: 0; + `),E("a",` + color: inherit; + text-decoration: inherit; + `),k("breadcrumb-item",{fontSize:"var(--font-size)",transition:"color .3s var(--bezier)",display:"inline-block"},[k("icon",` + font-size: 18px; + vertical-align: -.2em; + transition: color .3s var(--bezier); + color: var(--item-text-color); + `),O("link",{cursor:"pointer",transition:"color .3s var(--bezier)",color:"var(--item-text-color)"}),O("separator",{margin:"0 8px",color:"var(--separator-color)",transition:"color .3s var(--bezier)"}),E("&:hover",[k("icon",{color:"var(--item-text-color-hover)"}),O("link",{color:"var(--item-text-color-hover)"})]),E("&:active",[k("icon",{color:"var(--item-text-color-pressed)"}),O("link",{color:"var(--item-text-color-pressed)"})]),E("&:last-child",[O("link",` + font-weight: var(--font-weight-active); + cursor: unset; + color: var(--item-text-color-active); + `),k("icon",{color:"var(--item-text-color-active)"}),O("separator",{display:"none"})])])]);const Oh=Symbol("breadcrumb"),I3=Object.assign(Object.assign({},ye.props),{separator:{type:String,default:"/"}});var SO=q({name:"Breadcrumb",props:I3,setup(e){const{mergedClsPrefixRef:t}=Ee(e),r=ye("Breadcrumb","Breadcrumb",M3,E3,e,t);return Ie(Oh,{separatorRef:ke(e,"separator"),mergedClsPrefixRef:t}),{mergedClsPrefix:t,cssVars:R(()=>{const{common:{cubicBezierEaseInOut:o},self:{separatorColor:n,itemTextColor:i,itemTextColorHover:a,itemTextColorPressed:l,itemTextColorActive:s,fontSize:c,fontWeightActive:d}}=r.value;return{"--font-size":c,"--bezier":o,"--item-text-color":i,"--item-text-color-hover":a,"--item-text-color-pressed":l,"--item-text-color-active":s,"--separator-color":n,"--font-weight-active":d}})}},render(){return f("nav",{class:`${this.mergedClsPrefix}-breadcrumb`,style:this.cssVars,"aria-label":"Breadcrumb"},f("ul",null,this.$slots))}});const A3=nC?window:null,F3=(e=A3)=>{const t=()=>{const{hash:n,host:i,hostname:a,href:l,origin:s,pathname:c,port:d,protocol:u,search:h}=(e==null?void 0:e.location)||{};return{hash:n,host:i,hostname:a,href:l,origin:s,pathname:c,port:d,protocol:u,search:h}},r=()=>{o.value=t()},o=W(t());return wt(()=>{e&&(e.addEventListener("popstate",r),e.addEventListener("hashchange",r))}),Ai(()=>{e&&(e.removeEventListener("popstate",r),e.removeEventListener("hashchange",r))}),o},B3={separator:String,href:String};var kO=q({name:"BreadcrumbItem",props:B3,setup(e,{slots:t}){const r=Pe(Oh,null);if(!r)return()=>null;const{separatorRef:o,mergedClsPrefixRef:n}=r,i=F3(),a=R(()=>e.href?"a":"span"),l=R(()=>i.value.href===e.href?"location":null);return()=>{var s;const{value:c}=n;return f("li",{class:`${c}-breadcrumb-item`},f(a.value,{class:`${c}-breadcrumb-item__link`,"aria-current":l.value,href:e.href},t),f("span",{class:`${c}-breadcrumb-item__separator`,"aria-hidden":"true"},t.separator?t.separator():(s=e.separator)!==null&&s!==void 0?s:o.value))}}});function wo(e){return Ye(e,[255,255,255,.16])}function ma(e){return Ye(e,[0,0,0,.12])}var L3={paddingTiny:"0 6px",paddingSmall:"0 10px",paddingMedium:"0 14px",paddingLarge:"0 18px",paddingRoundTiny:"0 10px",paddingRoundSmall:"0 14px",paddingRoundMedium:"0 18px",paddingRoundLarge:"0 22px",iconMarginTiny:"6px",iconMarginSmall:"6px",iconMarginMedium:"6px",iconMarginLarge:"6px",iconSizeTiny:"14px",iconSizeSmall:"18px",iconSizeMedium:"18px",iconSizeLarge:"20px",rippleDuration:".6s"};const D3=e=>{const{heightTiny:t,heightSmall:r,heightMedium:o,heightLarge:n,borderRadius:i,fontSizeTiny:a,fontSizeSmall:l,fontSizeMedium:s,fontSizeLarge:c,opacityDisabled:d,textColor1:u,textColor2:h,textColor3:g,primaryColorHover:b,primaryColorPressed:y,borderColor:v,primaryColor:p,baseColor:w,infoColor:P,infoColorHover:m,infoColorPressed:x,successColor:C,successColorHover:S,successColorPressed:T,warningColor:$,warningColorHover:M,warningColorPressed:D,errorColor:_,errorColorHover:I,errorColorPressed:G,fontWeight:U}=e;return Object.assign(Object.assign({},L3),{heightTiny:t,heightSmall:r,heightMedium:o,heightLarge:n,borderRadiusTiny:i,borderRadiusSmall:i,borderRadiusMedium:i,borderRadiusLarge:i,fontSizeTiny:a,fontSizeSmall:l,fontSizeMedium:s,fontSizeLarge:c,opacityDisabled:d,color:"#0000",colorHover:"#0000",colorPressed:"#0000",colorFocus:"#0000",colorDisabled:"#0000",textColor:h,textColorHover:b,textColorPressed:y,textColorFocus:b,textColorDisabled:h,textColorText:h,textColorTextDepth1:u,textColorTextDepth2:h,textColorTextDepth3:g,textColorTextHover:b,textColorTextPressed:y,textColorTextFocus:b,textColorTextDisabled:h,textColorGhost:h,textColorGhostHover:b,textColorGhostPressed:y,textColorGhostFocus:b,textColorGhostDisabled:h,border:`1px solid ${v}`,borderHover:`1px solid ${b}`,borderPressed:`1px solid ${y}`,borderFocus:`1px solid ${b}`,borderDisabled:`1px solid ${v}`,rippleColor:p,colorPrimary:p,colorHoverPrimary:b,colorPressedPrimary:y,colorFocusPrimary:b,colorDisabledPrimary:p,textColorPrimary:w,textColorHoverPrimary:w,textColorPressedPrimary:w,textColorFocusPrimary:w,textColorDisabledPrimary:w,textColorTextPrimary:p,textColorTextHoverPrimary:b,textColorTextPressedPrimary:y,textColorTextFocusPrimary:b,textColorTextDisabledPrimary:h,textColorGhostPrimary:p,textColorGhostHoverPrimary:b,textColorGhostPressedPrimary:y,textColorGhostFocusPrimary:b,textColorGhostDisabledPrimary:p,borderPrimary:`1px solid ${p}`,borderHoverPrimary:`1px solid ${b}`,borderPressedPrimary:`1px solid ${y}`,borderFocusPrimary:`1px solid ${b}`,borderDisabledPrimary:`1px solid ${p}`,rippleColorPrimary:p,colorInfo:P,colorHoverInfo:m,colorPressedInfo:x,colorFocusInfo:m,colorDisabledInfo:P,textColorInfo:w,textColorHoverInfo:w,textColorPressedInfo:w,textColorFocusInfo:w,textColorDisabledInfo:w,textColorTextInfo:P,textColorTextHoverInfo:m,textColorTextPressedInfo:x,textColorTextFocusInfo:m,textColorTextDisabledInfo:h,textColorGhostInfo:P,textColorGhostHoverInfo:m,textColorGhostPressedInfo:x,textColorGhostFocusInfo:m,textColorGhostDisabledInfo:P,borderInfo:`1px solid ${P}`,borderHoverInfo:`1px solid ${m}`,borderPressedInfo:`1px solid ${x}`,borderFocusInfo:`1px solid ${m}`,borderDisabledInfo:`1px solid ${P}`,rippleColorInfo:P,colorSuccess:C,colorHoverSuccess:S,colorPressedSuccess:T,colorFocusSuccess:S,colorDisabledSuccess:C,textColorSuccess:w,textColorHoverSuccess:w,textColorPressedSuccess:w,textColorFocusSuccess:w,textColorDisabledSuccess:w,textColorTextSuccess:C,textColorTextHoverSuccess:S,textColorTextPressedSuccess:T,textColorTextFocusSuccess:S,textColorTextDisabledSuccess:h,textColorGhostSuccess:C,textColorGhostHoverSuccess:S,textColorGhostPressedSuccess:T,textColorGhostFocusSuccess:S,textColorGhostDisabledSuccess:C,borderSuccess:`1px solid ${C}`,borderHoverSuccess:`1px solid ${S}`,borderPressedSuccess:`1px solid ${T}`,borderFocusSuccess:`1px solid ${S}`,borderDisabledSuccess:`1px solid ${C}`,rippleColorSuccess:C,colorWarning:$,colorHoverWarning:M,colorPressedWarning:D,colorFocusWarning:M,colorDisabledWarning:$,textColorWarning:w,textColorHoverWarning:w,textColorPressedWarning:w,textColorFocusWarning:w,textColorDisabledWarning:w,textColorTextWarning:$,textColorTextHoverWarning:M,textColorTextPressedWarning:D,textColorTextFocusWarning:M,textColorTextDisabledWarning:h,textColorGhostWarning:$,textColorGhostHoverWarning:M,textColorGhostPressedWarning:D,textColorGhostFocusWarning:M,textColorGhostDisabledWarning:$,borderWarning:`1px solid ${$}`,borderHoverWarning:`1px solid ${M}`,borderPressedWarning:`1px solid ${D}`,borderFocusWarning:`1px solid ${M}`,borderDisabledWarning:`1px solid ${$}`,rippleColorWarning:$,colorError:_,colorHoverError:I,colorPressedError:G,colorFocusError:I,colorDisabledError:_,textColorError:w,textColorHoverError:w,textColorPressedError:w,textColorFocusError:w,textColorDisabledError:w,textColorTextError:_,textColorTextHoverError:I,textColorTextPressedError:G,textColorTextFocusError:I,textColorTextDisabledError:h,textColorGhostError:_,textColorGhostHoverError:I,textColorGhostPressedError:G,textColorGhostFocusError:I,textColorGhostDisabledError:_,borderError:`1px solid ${_}`,borderHoverError:`1px solid ${I}`,borderPressedError:`1px solid ${G}`,borderFocusError:`1px solid ${I}`,borderDisabledError:`1px solid ${_}`,rippleColorError:_,waveOpacity:"0.6",fontWeightText:U,fontWeight:U,fontWeighGhost:U})},N3={name:"Button",common:De,self:D3};var ai=N3;const ft="0!important",Eh="-1px!important";function sn(e){return j(e+"-type",[E("& +",[k("button",{},[j(e+"-type",[O("border",{borderLeftWidth:ft}),O("state-border",{left:Eh})])])])])}function cn(e){return j(e+"-type",[E("& +",[k("button",[j(e+"-type",[O("border",{borderTopWidth:ft}),O("state-border",{top:Eh})])])])])}var j3=k("button-group",` + flex-wrap: nowrap; + display: inline-flex; + position: relative; +`,[qe("vertical",{flexDirection:"row"},[k("button",[E("&:first-child:not(:last-child)",` + margin-right: ${ft}; + border-top-right-radius: ${ft}; + border-bottom-right-radius: ${ft}; + `),E("&:last-child:not(:first-child)",` + margin-left: ${ft}; + border-top-left-radius: ${ft}; + border-bottom-left-radius: ${ft}; + `),E("&:not(:first-child):not(:last-child)",` + margin-left: ${ft}; + margin-right: ${ft}; + border-radius: ${ft}; + `),sn("default"),j("ghost",[sn("primary"),sn("info"),sn("success"),sn("warning"),sn("error")])])]),j("vertical",{flexDirection:"column"},[k("button",[E("&:first-child:not(:last-child)",` + margin-bottom: ${ft}; + margin-left: ${ft}; + margin-right: ${ft}; + border-bottom-left-radius: ${ft}; + border-bottom-right-radius: ${ft}; + `),E("&:last-child:not(:first-child)",` + margin-top: ${ft}; + margin-left: ${ft}; + margin-right: ${ft}; + border-top-left-radius: ${ft}; + border-top-right-radius: ${ft}; + `),E("&:not(:first-child):not(:last-child)",` + margin: ${ft}; + border-radius: ${ft}; + `),cn("default"),j("ghost",[cn("primary"),cn("info"),cn("success"),cn("warning"),cn("error")])])])]);const Mh=Symbol("button-group"),H3={size:{type:String,default:void 0},vertical:Boolean};q({name:"ButtonGroup",props:H3,setup(e){const{mergedClsPrefixRef:t}=Ee(e);return Pr("ButtonGroup",j3,t),Ie(Mh,e),{mergedClsPrefix:t}},render(){const{mergedClsPrefix:e}=this;return f("div",{class:[`${e}-button-group`,this.vertical&&`${e}-button-group--vertical`],role:"group"},this.$slots)}});var W3=E([k("button",` + font-weight: var(--font-weight); + line-height: 1; + font-family: inherit; + padding: var(--padding); + height: var(--height); + font-size: var(--font-size); + border-radius: var(--border-radius); + color: var(--text-color); + background-color: var(--color); + width: var(--width); + white-space: nowrap; + outline: none; + position: relative; + z-index: auto; + border: none; + display: inline-flex; + flex-wrap: nowrap; + align-items: center; + justify-content: center; + user-select: none; + text-align: center; + cursor: pointer; + text-decoration: none; + transition: + color .3s var(--bezier), + background-color .3s var(--bezier), + opacity .3s var(--bezier), + border-color .3s var(--bezier); + `,[j("color",[O("border",{borderColor:"var(--border-color)"}),j("disabled",[O("border",{borderColor:"var(--border-color-disabled)"})]),qe("disabled",[E("&:focus",[O("state-border",{borderColor:"var(--border-color-focus)"})]),E("&:hover",[O("state-border",{borderColor:"var(--border-color-hover)"})]),E("&:active",[O("state-border",{borderColor:"var(--border-color-pressed)"})]),j("pressed",[O("state-border",{borderColor:"var(--border-color-pressed)"})])])]),j("disabled",{backgroundColor:"var(--color-disabled)",color:"var(--text-color-disabled)"},[O("border",{border:"var(--border-disabled)"})]),qe("disabled",[E("&:focus",{backgroundColor:"var(--color-focus)",color:"var(--text-color-focus)"},[O("state-border",{border:"var(--border-focus)"})]),E("&:hover",{backgroundColor:"var(--color-hover)",color:"var(--text-color-hover)"},[O("state-border",{border:"var(--border-hover)"})]),E("&:active",{backgroundColor:"var(--color-pressed)",color:"var(--text-color-pressed)"},[O("state-border",{border:"var(--border-pressed)"})]),j("pressed",{backgroundColor:"var(--color-pressed)",color:"var(--text-color-pressed)"},[O("state-border",{border:"var(--border-pressed)"})])]),k("base-wave",` + pointer-events: none; + top: 0; + right: 0; + bottom: 0; + left: 0; + animation-iteration-count: 1; + animation-duration: var(--ripple-duration); + animation-timing-function: var(--bezier-ease-out), var(--bezier-ease-out); + `,[j("active",{zIndex:1,animationName:"button-wave-spread, button-wave-opacity"})]),typeof window!="undefined"&&"MozBoxSizing"in document.createElement("div").style?E("&::moz-focus-inner",{border:0}):null,O("border, state-border",` + position: absolute; + left: 0; + top: 0; + right: 0; + bottom: 0; + border-radius: inherit; + transition: border-color .3s var(--bezier); + pointer-events: none; + `),O("border",{border:"var(--border)"}),O("state-border",{border:"var(--border)",borderColor:"#0000",zIndex:1}),O("icon",` + margin: var(--icon-margin); + margin-left: 0; + height: var(--icon-size); + width: var(--icon-size); + max-width: var(--icon-size); + font-size: var(--icon-size); + position: relative; + flex-shrink: 0; + `,[k("icon-slot",` + height: var(--icon-size); + width: var(--icon-size); + position: absolute; + left: 0; + top: 50%; + transform: translateY(-50%); + display: flex; + `,[bo({top:"50%",originalTransform:"translateY(-50%)"})]),a3()]),O("content",` + display: flex; + align-items: center; + flex-wrap: nowrap; + `,[E("~",[O("icon",{margin:"var(--icon-margin)",marginRight:0})])]),j("block",` + display: flex; + width: 100%; + `),j("dashed",[O("border, state-border",{borderStyle:"dashed !important"})]),j("disabled",{cursor:"not-allowed",opacity:"var(--opacity-disabled)"})]),E("@keyframes button-wave-spread",{from:{boxShadow:"0 0 0.5px 0 var(--ripple-color)"},to:{boxShadow:"0 0 0.5px 4.5px var(--ripple-color)"}}),E("@keyframes button-wave-opacity",{from:{opacity:"var(--wave-opacity)"},to:{opacity:0}})]);const U3=Object.assign(Object.assign({},ye.props),{color:String,textColor:String,text:Boolean,block:Boolean,loading:Boolean,disabled:Boolean,circle:Boolean,size:String,ghost:Boolean,round:Boolean,depth:[Number,String],focusable:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},tag:{type:String,default:"button"},type:{type:String,default:"default"},dashed:Boolean,iconPlacement:{type:String,default:"left"},attrType:{type:String,default:"button"},onClick:[Function,Array],bordered:{type:Boolean,default:!0}}),V3=q({name:"Button",props:U3,setup(e){const t=W(null),r=W(null),o=W(!1),n=Ve(()=>!e.text&&(!e.color||e.ghost||e.dashed)&&e.bordered),i=Pe(Mh,{}),{mergedSizeRef:a}=xr({},{defaultSize:"medium",mergedSize:p=>{const{size:w}=e;if(w)return w;const{size:P}=i;if(P)return P;const{mergedSize:m}=p||{};return m?m.value:"medium"}}),l=R(()=>e.focusable&&!e.disabled),s=p=>{var w;p.preventDefault(),!e.disabled&&l.value&&((w=t.value)===null||w===void 0||w.focus({preventScroll:!0}))},c=p=>{if(!e.disabled){const{onClick:w}=e;if(w&&ue(w,p),!e.text){const{value:P}=r;P&&P.play()}}},d=p=>{switch(p.code){case"Enter":case"NumpadEnter":if(!e.keyboard){p.preventDefault();return}o.value=!1,Ct(()=>{var w;e.disabled||(w=t.value)===null||w===void 0||w.click()})}},u=p=>{switch(p.code){case"Enter":case"NumpadEnter":if(!e.keyboard)return;p.preventDefault(),o.value=!0}},h=()=>{o.value=!1},{mergedClsPrefixRef:g,NConfigProvider:b}=Ee(e),y=ye("Button","Button",W3,ai,e,g),v=_s("Button",b==null?void 0:b.mergedRtlRef,g);return{selfRef:t,waveRef:r,mergedClsPrefix:g,mergedFocusable:l,mergedSize:a,showBorder:n,enterPressed:o,rtlEnabled:v,handleMouseDown:s,handleKeyDown:u,handleBlur:h,handleKeyUp:d,handleClick:c,customColorCssVars:R(()=>{const{color:p}=e;if(!p)return null;const w=wo(p);return{"--border-color":p,"--border-color-hover":w,"--border-color-pressed":ma(p),"--border-color-focus":w,"--border-color-disabled":p}}),cssVars:R(()=>{const p=y.value,{common:{cubicBezierEaseInOut:w,cubicBezierEaseOut:P},self:m}=p,{rippleDuration:x,opacityDisabled:C,fontWeightText:S,fontWeighGhost:T,fontWeight:$}=m,M=a.value,{dashed:D,type:_,ghost:I,text:G,color:U,round:N,circle:F,textColor:A}=e,re={fontWeight:G?S:I?T:$};let be={"--color":"initial","--color-hover":"initial","--color-pressed":"initial","--color-focus":"initial","--color-disabled":"initial","--ripple-color":"initial","--text-color":"initial","--text-color-hover":"initial","--text-color-pressed":"initial","--text-color-focus":"initial","--text-color-disabled":"initial"};if(G){const{depth:te}=e,ge=A||U,z=ge||(_==="default"&&te!==void 0?m[ce("textColorTextDepth",String(te))]:m[ce("textColorText",_)]);be={"--color":"#0000","--color-hover":"#0000","--color-pressed":"#0000","--color-focus":"#0000","--color-disabled":"#0000","--ripple-color":"#0000","--text-color":z,"--text-color-hover":ge?wo(ge):m[ce("textColorTextHover",_)],"--text-color-pressed":ge?ma(ge):m[ce("textColorTextPressed",_)],"--text-color-focus":ge?wo(ge):m[ce("textColorTextHover",_)],"--text-color-disabled":ge||m[ce("textColorTextDisabled",_)]}}else if(I||D){const te=A||U;be={"--color":"#0000","--color-hover":"#0000","--color-pressed":"#0000","--color-focus":"#0000","--color-disabled":"#0000","--ripple-color":U||m[ce("rippleColor",_)],"--text-color":te||m[ce("textColorGhost",_)],"--text-color-hover":te?wo(te):m[ce("textColorGhostHover",_)],"--text-color-pressed":te?ma(te):m[ce("textColorGhostPressed",_)],"--text-color-focus":te?wo(te):m[ce("textColorGhostHover",_)],"--text-color-disabled":te||m[ce("textColorGhostDisabled",_)]}}else be={"--color":U||m[ce("color",_)],"--color-hover":U?wo(U):m[ce("colorHover",_)],"--color-pressed":U?ma(U):m[ce("colorPressed",_)],"--color-focus":U?wo(U):m[ce("colorFocus",_)],"--color-disabled":U||m[ce("colorDisabled",_)],"--ripple-color":U||m[ce("rippleColor",_)],"--text-color":A||(U?m.textColorPrimary:m[ce("textColor",_)]),"--text-color-hover":A||(U?m.textColorHoverPrimary:m[ce("textColorHover",_)]),"--text-color-pressed":A||(U?m.textColorPressedPrimary:m[ce("textColorPressed",_)]),"--text-color-focus":A||(U?m.textColorFocusPrimary:m[ce("textColorFocus",_)]),"--text-color-disabled":A||(U?m.textColorDisabledPrimary:m[ce("textColorDisabled",_)])};let Se={"--border":"initial","--border-hover":"initial","--border-pressed":"initial","--border-focus":"initial","--border-disabled":"initial"};G?Se={"--border":"none","--border-hover":"none","--border-pressed":"none","--border-focus":"none","--border-disabled":"none"}:Se={"--border":m[ce("border",_)],"--border-hover":m[ce("borderHover",_)],"--border-pressed":m[ce("borderPressed",_)],"--border-focus":m[ce("borderFocus",_)],"--border-disabled":m[ce("borderDisabled",_)]};const{[ce("height",M)]:Te,[ce("fontSize",M)]:Oe,[ce("padding",M)]:Re,[ce("paddingRound",M)]:Z,[ce("iconSize",M)]:fe,[ce("borderRadius",M)]:ee,[ce("iconMargin",M)]:xe,waveOpacity:ie}=m,Ce={"--width":F&&!G?Te:"initial","--height":G?"initial":Te,"--font-size":Oe,"--padding":F||G?"initial":N?Z:Re,"--icon-size":fe,"--icon-margin":xe,"--border-radius":G?"initial":F||N?Te:ee};return Object.assign(Object.assign(Object.assign(Object.assign({"--bezier":w,"--bezier-ease-out":P,"--ripple-duration":x,"--opacity-disabled":C,"--wave-opacity":ie},re),be),Se),Ce)})}},render(){const{$slots:e,mergedClsPrefix:t,tag:r}=this;return f(r,{ref:"selfRef",class:[`${t}-button`,`${t}-button--${this.type}-type`,`${t}-button--${this.mergedSize}-type`,this.rtlEnabled&&`${t}-button--rtl`,this.disabled&&`${t}-button--disabled`,this.block&&`${t}-button--block`,this.enterPressed&&`${t}-button--pressed`,!this.text&&this.dashed&&`${t}-button--dashed`,this.color&&`${t}-button--color`,this.ghost&&`${t}-button--ghost`],tabindex:this.mergedFocusable?0:-1,type:this.attrType,style:this.cssVars,disabled:this.disabled,onClick:this.handleClick,onBlur:this.handleBlur,onMousedown:this.handleMouseDown,onKeyup:this.handleKeyUp,onKeydown:this.handleKeyDown},e.default&&this.iconPlacement==="right"?f("div",{class:`${t}-button__content`},e):null,f(mo,{width:!0},{default:()=>e.icon||this.loading?f("span",{class:`${t}-button__icon`,style:{margin:e.default?"":0}},f(Qo,null,{default:()=>this.loading?f(Lr,{clsPrefix:t,key:"loading",class:`${t}-icon-slot`,strokeWidth:20}):f("div",{key:"icon",class:`${t}-icon-slot`,role:"none"},Ae(e,"icon"))})):null}),e.default&&this.iconPlacement==="left"?f("span",{class:`${t}-button__content`},e):null,this.text?null:f(F5,{ref:"waveRef",clsPrefix:t}),this.showBorder?f("div",{"aria-hidden":!0,class:`${t}-button__border`,style:this.customColorCssVars}):null,this.showBorder?f("div",{"aria-hidden":!0,class:`${t}-button__state-border`,style:this.customColorCssVars}):null)}});var ur=V3;function K3(e,t){et(2,arguments);var r=Ze(e).getTime(),o=Lt(t);return new Date(r+o)}function Ms(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function ba(e,t){et(2,arguments);var r=Ze(e),o=Ze(t),n=r.getTime()-o.getTime();return n<0?-1:n>0?1:n}function q3(e){return et(1,arguments),e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function G3(e){if(et(1,arguments),!q3(e)&&typeof e!="number")return!1;var t=Ze(e);return!isNaN(Number(t))}function Y3(e,t){et(2,arguments);var r=Ze(e),o=Ze(t),n=r.getFullYear()-o.getFullYear(),i=r.getMonth()-o.getMonth();return n*12+i}function X3(e,t){return et(2,arguments),Ze(e).getTime()-Ze(t).getTime()}var Ih={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},Z3="trunc";function J3(e){return e?Ih[e]:Ih[Z3]}function Q3(e){et(1,arguments);var t=Ze(e);return t.setHours(23,59,59,999),t}function e4(e){et(1,arguments);var t=Ze(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function t4(e){et(1,arguments);var t=Ze(e);return Q3(t).getTime()===e4(t).getTime()}function r4(e,t){et(2,arguments);var r=Ze(e),o=Ze(t),n=ba(r,o),i=Math.abs(Y3(r,o)),a;if(i<1)a=0;else{r.getMonth()===1&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-n*i);var l=ba(r,o)===-n;t4(Ze(e))&&i===1&&ba(e,o)===1&&(l=!1),a=n*(i-Number(l))}return a===0?0:a}function o4(e,t,r){et(2,arguments);var o=X3(e,t)/1e3;return J3(r==null?void 0:r.roundingMethod)(o)}function n4(e,t){et(2,arguments);var r=Lt(t);return K3(e,-r)}function Ge(e,t){for(var r=e<0?"-":"",o=Math.abs(e).toString();o.length0?r:1-r;return Ge(t==="yy"?o%100:o,t.length)},M:function(e,t){var r=e.getUTCMonth();return t==="M"?String(r+1):Ge(r+1,2)},d:function(e,t){return Ge(e.getUTCDate(),t.length)},a:function(e,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(e,t){return Ge(e.getUTCHours()%12||12,t.length)},H:function(e,t){return Ge(e.getUTCHours(),t.length)},m:function(e,t){return Ge(e.getUTCMinutes(),t.length)},s:function(e,t){return Ge(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length,o=e.getUTCMilliseconds(),n=Math.floor(o*Math.pow(10,r-3));return Ge(n,t.length)}},Wr=i4,a4=864e5;function l4(e){et(1,arguments);var t=Ze(e),r=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var o=t.getTime(),n=r-o;return Math.floor(n/a4)+1}function xa(e){et(1,arguments);var t=1,r=Ze(e),o=r.getUTCDay(),n=(o=n.getTime()?r+1:t.getTime()>=a.getTime()?r:r-1}function s4(e){et(1,arguments);var t=Ah(e),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var o=xa(r);return o}var c4=6048e5;function d4(e){et(1,arguments);var t=Ze(e),r=xa(t).getTime()-s4(t).getTime();return Math.round(r/c4)+1}function Fh(e,t){et(1,arguments);var r=Ze(e,t),o=r.getUTCFullYear(),n=t||{},i=n.locale,a=i&&i.options&&i.options.firstWeekContainsDate,l=a==null?1:Lt(a),s=n.firstWeekContainsDate==null?l:Lt(n.firstWeekContainsDate);if(!(s>=1&&s<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var c=new Date(0);c.setUTCFullYear(o+1,0,s),c.setUTCHours(0,0,0,0);var d=Yo(c,t),u=new Date(0);u.setUTCFullYear(o,0,s),u.setUTCHours(0,0,0,0);var h=Yo(u,t);return r.getTime()>=d.getTime()?o+1:r.getTime()>=h.getTime()?o:o-1}function u4(e,t){et(1,arguments);var r=t||{},o=r.locale,n=o&&o.options&&o.options.firstWeekContainsDate,i=n==null?1:Lt(n),a=r.firstWeekContainsDate==null?i:Lt(r.firstWeekContainsDate),l=Fh(e,t),s=new Date(0);s.setUTCFullYear(l,0,a),s.setUTCHours(0,0,0,0);var c=Yo(s,t);return c}var f4=6048e5;function h4(e,t){et(1,arguments);var r=Ze(e),o=Yo(r,t).getTime()-u4(r,t).getTime();return Math.round(o/f4)+1}var dn={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},p4={G:function(e,t,r){var o=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(o,{width:"abbreviated"});case"GGGGG":return r.era(o,{width:"narrow"});case"GGGG":default:return r.era(o,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){var o=e.getUTCFullYear(),n=o>0?o:1-o;return r.ordinalNumber(n,{unit:"year"})}return Wr.y(e,t)},Y:function(e,t,r,o){var n=Fh(e,o),i=n>0?n:1-n;if(t==="YY"){var a=i%100;return Ge(a,2)}return t==="Yo"?r.ordinalNumber(i,{unit:"year"}):Ge(i,t.length)},R:function(e,t){var r=Ah(e);return Ge(r,t.length)},u:function(e,t){var r=e.getUTCFullYear();return Ge(r,t.length)},Q:function(e,t,r){var o=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(o);case"QQ":return Ge(o,2);case"Qo":return r.ordinalNumber(o,{unit:"quarter"});case"QQQ":return r.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(o,{width:"wide",context:"formatting"})}},q:function(e,t,r){var o=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(o);case"qq":return Ge(o,2);case"qo":return r.ordinalNumber(o,{unit:"quarter"});case"qqq":return r.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(o,{width:"wide",context:"standalone"})}},M:function(e,t,r){var o=e.getUTCMonth();switch(t){case"M":case"MM":return Wr.M(e,t);case"Mo":return r.ordinalNumber(o+1,{unit:"month"});case"MMM":return r.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(o,{width:"wide",context:"formatting"})}},L:function(e,t,r){var o=e.getUTCMonth();switch(t){case"L":return String(o+1);case"LL":return Ge(o+1,2);case"Lo":return r.ordinalNumber(o+1,{unit:"month"});case"LLL":return r.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(o,{width:"wide",context:"standalone"})}},w:function(e,t,r,o){var n=h4(e,o);return t==="wo"?r.ordinalNumber(n,{unit:"week"}):Ge(n,t.length)},I:function(e,t,r){var o=d4(e);return t==="Io"?r.ordinalNumber(o,{unit:"week"}):Ge(o,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):Wr.d(e,t)},D:function(e,t,r){var o=l4(e);return t==="Do"?r.ordinalNumber(o,{unit:"dayOfYear"}):Ge(o,t.length)},E:function(e,t,r){var o=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(o,{width:"short",context:"formatting"});case"EEEE":default:return r.day(o,{width:"wide",context:"formatting"})}},e:function(e,t,r,o){var n=e.getUTCDay(),i=(n-o.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return Ge(i,2);case"eo":return r.ordinalNumber(i,{unit:"day"});case"eee":return r.day(n,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(n,{width:"short",context:"formatting"});case"eeee":default:return r.day(n,{width:"wide",context:"formatting"})}},c:function(e,t,r,o){var n=e.getUTCDay(),i=(n-o.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return Ge(i,t.length);case"co":return r.ordinalNumber(i,{unit:"day"});case"ccc":return r.day(n,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(n,{width:"narrow",context:"standalone"});case"cccccc":return r.day(n,{width:"short",context:"standalone"});case"cccc":default:return r.day(n,{width:"wide",context:"standalone"})}},i:function(e,t,r){var o=e.getUTCDay(),n=o===0?7:o;switch(t){case"i":return String(n);case"ii":return Ge(n,t.length);case"io":return r.ordinalNumber(n,{unit:"day"});case"iii":return r.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(o,{width:"short",context:"formatting"});case"iiii":default:return r.day(o,{width:"wide",context:"formatting"})}},a:function(e,t,r){var o=e.getUTCHours(),n=o/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,r){var o=e.getUTCHours(),n;switch(o===12?n=dn.noon:o===0?n=dn.midnight:n=o/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(e,t,r){var o=e.getUTCHours(),n;switch(o>=17?n=dn.evening:o>=12?n=dn.afternoon:o>=4?n=dn.morning:n=dn.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){var o=e.getUTCHours()%12;return o===0&&(o=12),r.ordinalNumber(o,{unit:"hour"})}return Wr.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):Wr.H(e,t)},K:function(e,t,r){var o=e.getUTCHours()%12;return t==="Ko"?r.ordinalNumber(o,{unit:"hour"}):Ge(o,t.length)},k:function(e,t,r){var o=e.getUTCHours();return o===0&&(o=24),t==="ko"?r.ordinalNumber(o,{unit:"hour"}):Ge(o,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Wr.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Wr.s(e,t)},S:function(e,t){return Wr.S(e,t)},X:function(e,t,r,o){var n=o._originalDate||e,i=n.getTimezoneOffset();if(i===0)return"Z";switch(t){case"X":return Lh(i);case"XXXX":case"XX":return Co(i);case"XXXXX":case"XXX":default:return Co(i,":")}},x:function(e,t,r,o){var n=o._originalDate||e,i=n.getTimezoneOffset();switch(t){case"x":return Lh(i);case"xxxx":case"xx":return Co(i);case"xxxxx":case"xxx":default:return Co(i,":")}},O:function(e,t,r,o){var n=o._originalDate||e,i=n.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Bh(i,":");case"OOOO":default:return"GMT"+Co(i,":")}},z:function(e,t,r,o){var n=o._originalDate||e,i=n.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Bh(i,":");case"zzzz":default:return"GMT"+Co(i,":")}},t:function(e,t,r,o){var n=o._originalDate||e,i=Math.floor(n.getTime()/1e3);return Ge(i,t.length)},T:function(e,t,r,o){var n=o._originalDate||e,i=n.getTime();return Ge(i,t.length)}};function Bh(e,t){var r=e>0?"-":"+",o=Math.abs(e),n=Math.floor(o/60),i=o%60;if(i===0)return r+String(n);var a=t||"";return r+String(n)+a+Ge(i,2)}function Lh(e,t){if(e%60==0){var r=e>0?"-":"+";return r+Ge(Math.abs(e)/60,2)}return Co(e,t)}function Co(e,t){var r=t||"",o=e>0?"-":"+",n=Math.abs(e),i=Ge(Math.floor(n/60),2),a=Ge(n%60,2);return o+i+r+a}var g4=p4;function Dh(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}}function Nh(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}}function v4(e,t){var r=e.match(/(P+)(p+)?/),o=r[1],n=r[2];if(!n)return Dh(e,t);var i;switch(o){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;case"PPPP":default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",Dh(o,t)).replace("{{time}}",Nh(n,t))}var m4={p:Nh,P:v4},b4=m4,x4=["D","DD"],y4=["YY","YYYY"];function w4(e){return x4.indexOf(e)!==-1}function C4(e){return y4.indexOf(e)!==-1}function jh(e,t,r){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://git.io/fxCyr"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://git.io/fxCyr"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://git.io/fxCyr"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://git.io/fxCyr"))}var S4=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,k4=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,P4=/^'([^]*?)'?$/,$4=/''/g,R4=/[a-zA-Z]/;function Hh(e,t,r){et(2,arguments);var o=String(t),n=r||{},i=n.locale||cs,a=i.options&&i.options.firstWeekContainsDate,l=a==null?1:Lt(a),s=n.firstWeekContainsDate==null?l:Lt(n.firstWeekContainsDate);if(!(s>=1&&s<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var c=i.options&&i.options.weekStartsOn,d=c==null?0:Lt(c),u=n.weekStartsOn==null?d:Lt(n.weekStartsOn);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!i.localize)throw new RangeError("locale must contain localize property");if(!i.formatLong)throw new RangeError("locale must contain formatLong property");var h=Ze(e);if(!G3(h))throw new RangeError("Invalid time value");var g=Ms(h),b=n4(h,g),y={firstWeekContainsDate:s,weekStartsOn:u,locale:i,_originalDate:h},v=o.match(k4).map(function(p){var w=p[0];if(w==="p"||w==="P"){var P=b4[w];return P(p,i.formatLong,y)}return p}).join("").match(S4).map(function(p){if(p==="''")return"'";var w=p[0];if(w==="'")return T4(p);var P=g4[w];if(P)return!n.useAdditionalWeekYearTokens&&C4(p)&&jh(p,t,e),!n.useAdditionalDayOfYearTokens&&w4(p)&&jh(p,t,e),P(b,p,i.localize,y);if(w.match(R4))throw new RangeError("Format string contains an unescaped latin alphabet character `"+w+"`");return p}).join("");return v}function T4(e){return e.match(P4)[1].replace($4,"'")}function z4(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");t=t||{};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function _4(e){return z4({},e)}var Wh=1440,O4=2520,Is=43200,E4=86400;function M4(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};et(2,arguments);var o=r.locale||cs;if(!o.formatDistance)throw new RangeError("locale must contain formatDistance property");var n=ba(e,t);if(isNaN(n))throw new RangeError("Invalid time value");var i=_4(r);i.addSuffix=Boolean(r.addSuffix),i.comparison=n;var a,l;n>0?(a=Ze(t),l=Ze(e)):(a=Ze(e),l=Ze(t));var s=o4(l,a),c=(Ms(l)-Ms(a))/1e3,d=Math.round((s-c)/60),u;if(d<2)return r.includeSeconds?s<5?o.formatDistance("lessThanXSeconds",5,i):s<10?o.formatDistance("lessThanXSeconds",10,i):s<20?o.formatDistance("lessThanXSeconds",20,i):s<40?o.formatDistance("halfAMinute",null,i):s<60?o.formatDistance("lessThanXMinutes",1,i):o.formatDistance("xMinutes",1,i):d===0?o.formatDistance("lessThanXMinutes",1,i):o.formatDistance("xMinutes",d,i);if(d<45)return o.formatDistance("xMinutes",d,i);if(d<90)return o.formatDistance("aboutXHours",1,i);if(d{const{primaryColor:t,borderRadius:r,lineHeight:o,fontSize:n,cardColor:i,textColor2:a,textColor1:l,dividerColor:s,fontWeightStrong:c,closeColor:d,closeColorHover:u,closeColorPressed:h,modalColor:g,boxShadow1:b,popoverColor:y,actionColor:v}=e;return Object.assign(Object.assign({},A4),{lineHeight:o,color:i,colorModal:g,colorPopover:y,colorTarget:t,colorEmbedded:v,textColor:a,titleTextColor:l,borderColor:s,actionColor:v,titleFontWeight:c,closeColor:d,closeColorHover:u,closeColorPressed:h,fontSizeSmall:n,fontSizeMedium:n,fontSizeLarge:n,fontSizeHuge:n,boxShadow:b,borderRadius:r})},B4={name:"Card",common:De,self:F4};var Vh=B4,L4=E([k("card",` + font-size: var(--font-size); + line-height: var(--line-height); + display: flex; + flex-direction: column; + width: 100%; + box-sizing: border-box; + position: relative; + border-radius: var(--border-radius); + background-color: var(--color); + color: var(--text-color); + transition: + color .3s var(--bezier), + background-color .3s var(--bezier), + box-shadow .3s var(--bezier), + border-color .3s var(--bezier); + `,[j("hoverable",[E("&:hover","box-shadow: var(--box-shadow);")]),j("content-segmented",[E(">",[O("content",{paddingTop:"var(--padding-bottom)"})])]),j("content-soft-segmented",[E(">",[O("content",` + margin: 0 var(--padding-left); + padding: var(--padding-bottom) 0; + `)])]),j("footer-segmented",[E(">",[O("footer",{paddingTop:"var(--padding-bottom)"})])]),j("footer-soft-segmented",[E(">",[O("footer",` + padding: var(--padding-bottom) 0; + margin: 0 var(--padding-left); + `)])]),E(">",[k("card-header",` + box-sizing: border-box; + display: flex; + align-items: center; + font-size: var(--title-font-size); + padding: + var(--padding-top) + var(--padding-left) + var(--padding-bottom) + var(--padding-left); + `,[O("main",` + font-weight: var(--title-font-weight); + transition: color .3s var(--bezier); + flex: 1; + color: var(--title-text-color); + `),O("extra",` + display: flex; + align-items: center; + font-size: var(--font-size); + font-weight: 400; + transition: color .3s var(--bezier); + color: var(--text-color); + `),O("close",` + font-size: var(--close-size); + transition: color .3s var(--bezier); + `)]),O("action",` + box-sizing: border-box; + transition: + background-color .3s var(--bezier), + border-color .3s var(--bezier); + background-clip: padding-box; + background-color: var(--action-color); + `),O("content","flex: 1;"),O("content, footer",` + box-sizing: border-box; + padding: 0 var(--padding-left) var(--padding-bottom) var(--padding-left); + font-size: var(--font-size); + `,[E("&:first-child",{paddingTop:"var(--padding-bottom)"})]),O("action",` + background-color: var(--action-color); + padding: var(--padding-bottom) var(--padding-left); + `)]),k("card-cover",` + overflow: hidden; + width: 100%; + border-radius: var(--border-radius) var(--border-radius) 0 0; + `,[E("img",` + display: block; + width: 100%; + `)]),j("bordered",` + border: 1px solid var(--border-color); + `,[E("&:target","border-color: var(--color-target);")]),j("action-segmented",[E(">",[O("action",[E("&:not(:first-child)",{borderTop:"1px solid var(--border-color)"})])])]),j("content-segmented, content-soft-segmented",[E(">",[O("content",{transition:"border-color 0.3s var(--bezier)"},[E("&:not(:first-child)",{borderTop:"1px solid var(--border-color)"})])])]),j("footer-segmented, footer-soft-segmented",[E(">",[O("footer",{transition:"border-color 0.3s var(--bezier)"},[E("&:not(:first-child)",{borderTop:"1px solid var(--border-color)"})])])])]),na(k("card",{background:"var(--color-modal)"})),ts(k("card",{background:"var(--color-popover)"})),k("card",[kf({background:"var(--color-modal)"})])]);const As={title:String,contentStyle:[Object,String],headerStyle:[Object,String],footerStyle:[Object,String],embedded:Boolean,segmented:{type:[Boolean,Object],default:!1},size:{type:String,default:"medium"},bordered:{type:Boolean,default:!0},closable:{type:Boolean,default:!1},hoverable:Boolean,onClose:[Function,Array]},D4=lr(As),N4=Object.assign(Object.assign({},ye.props),As);var j4=q({name:"Card",props:N4,setup(e){const t=()=>{const{onClose:a}=e;a&&ue(a)},{mergedClsPrefixRef:r,NConfigProvider:o}=Ee(e),n=ye("Card","Card",L4,Vh,e,r);return{rtlEnabled:_s("Card",o==null?void 0:o.mergedRtlRef,r),mergedClsPrefix:r,mergedTheme:n,handleCloseClick:t,cssVars:R(()=>{const{size:a}=e,{self:{color:l,colorModal:s,colorTarget:c,textColor:d,titleTextColor:u,titleFontWeight:h,borderColor:g,actionColor:b,borderRadius:y,closeColor:v,closeColorHover:p,closeColorPressed:w,lineHeight:P,closeSize:m,boxShadow:x,colorPopover:C,colorEmbedded:S,[ce("padding",a)]:T,[ce("fontSize",a)]:$,[ce("titleFontSize",a)]:M},common:{cubicBezierEaseInOut:D}}=n.value,{top:_,left:I,bottom:G}=Lo(T);return{"--bezier":D,"--border-radius":y,"--color":e.embedded?S:l,"--color-modal":s,"--color-popover":C,"--color-target":c,"--text-color":d,"--line-height":P,"--action-color":b,"--title-text-color":u,"--title-font-weight":h,"--close-color":v,"--close-color-hover":p,"--close-color-pressed":w,"--border-color":g,"--box-shadow":x,"--padding-top":_,"--padding-bottom":G,"--padding-left":I,"--font-size":$,"--title-font-size":M,"--close-size":m}})}},render(){const{segmented:e,bordered:t,hoverable:r,mergedClsPrefix:o,rtlEnabled:n,$slots:i}=this;return f("div",{class:[`${o}-card`,{[`${o}-card--rtl`]:n,[`${o}-card--content${typeof e!="boolean"&&e.content==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.content,[`${o}-card--footer${typeof e!="boolean"&&e.footer==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.footer,[`${o}-card--action-segmented`]:e===!0||e!==!1&&e.action,[`${o}-card--bordered`]:t,[`${o}-card--hoverable`]:r}],style:this.cssVars},i.cover?f("div",{class:`${o}-card-cover`,role:"none"},Ae(i,"cover")):null,i.header||this.title||this.closable?f("div",{class:`${o}-card-header`,style:this.headerStyle},f("div",{class:`${o}-card-header__main`,role:"heading"},Ae(i,"header",{},()=>[this.title])),i["header-extra"]?f("div",{class:`${o}-card-header__extra`},Ae(i,"header-extra")):null,this.closable?f(en,{clsPrefix:o,class:`${o}-card-header__close`,onClick:this.handleCloseClick}):null):null,f("div",{class:`${o}-card__content`,style:this.contentStyle,role:"none"},i),i.footer?f("div",{class:`${o}-card__footer`,style:this.footerStyle,role:"none"},Ae(i,"footer")):null,i.action?f("div",{class:`${o}-card__action`,role:"none"},Ae(i,"action")):null)}}),H4={sizeSmall:"14px",sizeMedium:"16px",sizeLarge:"18px",labelPadding:"0 8px"};const W4=e=>{const{baseColor:t,inputColorDisabled:r,cardColor:o,modalColor:n,popoverColor:i,textColorDisabled:a,borderColor:l,primaryColor:s,textColor2:c,fontSizeSmall:d,fontSizeMedium:u,fontSizeLarge:h,borderRadiusSmall:g}=e;return Object.assign(Object.assign({},H4),{fontSizeSmall:d,fontSizeMedium:u,fontSizeLarge:h,borderRadius:g,color:t,colorChecked:s,colorDisabled:r,colorDisabledChecked:r,colorTableHeader:o,colorTableHeaderModal:n,colorTableHeaderPopover:i,checkMarkColor:t,checkMarkColorDisabled:a,checkMarkColorDisabledChecked:a,border:`1px solid ${l}`,borderDisabled:`1px solid ${l}`,borderDisabledChecked:`1px solid ${l}`,borderChecked:`1px solid ${s}`,borderFocus:`1px solid ${s}`,boxShadowFocus:`0 0 0 2px ${ze(s,{alpha:.3})}`,textColor:c,textColorDisabled:a})},U4={name:"Checkbox",common:De,self:W4};var Kh=U4,V4=f("svg",{viewBox:"0 0 64 64",class:"check-icon"},f("path",{d:"M50.42,16.76L22.34,39.45l-8.1-11.46c-1.12-1.58-3.3-1.96-4.88-0.84c-1.58,1.12-1.95,3.3-0.84,4.88l10.26,14.51 c0.56,0.79,1.42,1.31,2.38,1.45c0.16,0.02,0.32,0.03,0.48,0.03c0.8,0,1.57-0.27,2.2-0.78l30.99-25.03c1.5-1.21,1.74-3.42,0.52-4.92 C54.13,15.78,51.93,15.55,50.42,16.76z"})),K4=f("svg",{viewBox:"0 0 100 100",class:"line-icon"},f("path",{d:"M80.2,55.5H21.4c-2.8,0-5.1-2.5-5.1-5.5l0,0c0-3,2.3-5.5,5.1-5.5h58.7c2.8,0,5.1,2.5,5.1,5.5l0,0C85.2,53.1,82.9,55.5,80.2,55.5z"}));const qh=Symbol("checkboxGroup"),q4={min:Number,max:Number,size:String,value:Array,defaultValue:{type:Array,default:null},disabled:{type:Boolean,default:void 0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:{type:[Function,Array],validator:()=>!0,default:void 0}};var G4=q({name:"CheckboxGroup",props:q4,setup(e){const{mergedClsPrefixRef:t}=Ee(e),r=xr(e),{mergedSizeRef:o,mergedDisabledRef:n}=r,i=W(e.defaultValue),a=R(()=>e.value),l=gt(a,i),s=R(()=>{var u;return((u=l.value)===null||u===void 0?void 0:u.length)||0}),c=R(()=>Array.isArray(l.value)?new Set(l.value):new Set);function d(u,h){const{nTriggerFormInput:g,nTriggerFormChange:b}=r,{onChange:y,"onUpdate:value":v,onUpdateValue:p}=e;if(Array.isArray(l.value)){const w=Array.from(l.value),P=w.findIndex(m=>m===h);u?~P||(w.push(h),p&&ue(p,w),v&&ue(v,w),g(),b(),i.value=w,y&&ue(y,w)):~P&&(w.splice(P,1),p&&ue(p,w),v&&ue(v,w),y&&ue(y,w),i.value=w,g(),b())}else u?(p&&ue(p,[h]),v&&ue(v,[h]),y&&ue(y,[h]),i.value=[h],g(),b()):(p&&ue(p,[]),v&&ue(v,[]),y&&ue(y,[]),i.value=[],g(),b())}return Ie(qh,{checkedCountRef:s,maxRef:ke(e,"max"),minRef:ke(e,"min"),valueSetRef:c,disabledRef:n,mergedSizeRef:o,toggleCheckbox:d}),{mergedClsPrefix:t}},render(){return f("div",{class:`${this.mergedClsPrefix}-checkbox-group`,role:"group"},this.$slots)}}),Y4=E([k("checkbox",` + line-height: 1; + font-size: var(--font-size); + outline: none; + cursor: pointer; + display: inline-flex; + align-items: center; + white-space: nowrap; + vertical-align: middle; + --merged-color-table-header: var(--color-table-header); + `,[E("&:hover",[k("checkbox-box",[O("border",{border:"var(--border-checked)"})])]),E("&:focus:not(:active)",[k("checkbox-box",[O("border",{border:"var(--border-focus)",boxShadow:"var(--box-shadow-focus)"})])]),j("table-header",[k("checkbox-box",{backgroundColor:"var(--merged-color-table-header)"})]),j("checked",[k("checkbox-box",{backgroundColor:"var(--color-checked)"},[k("checkbox-icon",[E(".check-icon",` + width: 100%; + opacity: 1; + transform: scale(1); + `)])])]),j("indeterminate",[k("checkbox-box",[k("checkbox-icon",[E(".check-icon",` + opacity: 0; + transform: scale(.5); + `),E(".line-icon",` + opacity: 1; + transform: scale(1); + `)])])]),j("checked, indeterminate",[E("&:focus:not(:active)",[k("checkbox-box",[O("border",{border:"var(--border-checked)",boxShadow:"var(--box-shadow-focus)"})])]),k("checkbox-box",` + background-color: var(--color-checked); + border-left: 0; + border-top: 0; + `,[O("border",{border:"var(--border-checked)"})])]),j("disabled",{cursor:"not-allowed"},[j("checked",[k("checkbox-box",` + background-color: var(--color-disabled-checked); + `,[O("border",{border:"var(--border-disabled-checked)"}),k("checkbox-icon",[E(".check-icon, .line-icon",{fill:"var(--check-mark-color-disabled-checked)"})])])]),k("checkbox-box",` + background-color: var(--color-disabled); + `,[O("border",{border:"var(--border-disabled)"}),k("checkbox-icon",[E(".check-icon, .line-icon",{fill:"var(--check-mark-color-disabled)"})])]),O("label",{color:"var(--text-color-disabled)"})]),k("checkbox-box",` + height: var(--size); + width: var(--size); + display: inline-block; + box-sizing: border-box; + border-radius: var(--border-radius); + background-color: var(--color); + position: relative; + transition: + background-color 0.3s var(--bezier); + `,[O("border",` + transition: + border-color .3s var(--bezier), + box-shadow .3s var(--bezier); + border-radius: inherit; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + border: var(--border); + `),k("checkbox-icon",` + display: flex; + align-items: center; + justify-content: center; + position: absolute; + left: 1px; + right: 1px; + top: 1px; + bottom: 1px; + `,[E(".check-icon, .line-icon",` + fill: var(--check-mark-color); + opacity: 0; + transform: scale(0.5); + transform-origin: center; + transition: + fill 0.3s var(--bezier), + transform 0.3s var(--bezier), + opacity 0.3s var(--bezier), + border-color 0.3s var(--bezier); + `),bo({left:"1px",top:"1px"})])]),O("label",` + color: var(--text-color); + transition: color .3s var(--bezier); + user-select: none; + padding: var(--label-padding); + `,[E("&:empty",{display:"none"})])]),na(k("checkbox",` + --merged-color-table-header: var(--color-table-header-modal); + `)),ts(k("checkbox",` + --merged-color-table-header: var(--color-table-header-popover); + `))]);const X4=Object.assign(Object.assign({},ye.props),{size:String,checked:{type:[Boolean,String,Number],default:void 0},defaultChecked:{type:[Boolean,String,Number],default:!1},value:[String,Number],disabled:{type:Boolean,default:void 0},indeterminate:Boolean,label:String,focusable:{type:Boolean,default:!0},checkedValue:{type:[Boolean,String,Number],default:!0},uncheckedValue:{type:[Boolean,String,Number],default:!1},"onUpdate:checked":[Function,Array],onUpdateChecked:[Function,Array],privateTableHeader:Boolean,onChange:[Function,Array]});var Fs=q({name:"Checkbox",props:X4,setup(e){const{mergedClsPrefixRef:t}=Ee(e),r=xr(e,{mergedSize(y){const{size:v}=e;if(v!==void 0)return v;if(i){const{value:p}=i.mergedSizeRef;if(p!==void 0)return p}if(y){const{mergedSize:p}=y;if(p!==void 0)return p.value}return"medium"},mergedDisabled(y){const{disabled:v}=e;if(v!==void 0)return v;if(i){if(i.disabledRef.value)return!0;const{maxRef:{value:p},checkedCountRef:w}=i;if(p!==void 0&&w.value>=p&&!c.value)return!0;const{minRef:{value:P}}=i;if(P!==void 0&&w.value<=P&&c.value)return!0}return y?y.disabled.value:!1}}),{mergedDisabledRef:o,mergedSizeRef:n}=r,i=Pe(qh,null),a=W(e.defaultChecked),l=ke(e,"checked"),s=gt(l,a),c=Ve(()=>{if(i){const y=i.valueSetRef.value;return y&&e.value!==void 0?y.has(e.value):!1}else return s.value===e.checkedValue}),d=ye("Checkbox","Checkbox",Y4,Kh,e,t);function u(y){if(i&&e.value!==void 0)i.toggleCheckbox(!c.value,e.value);else{const{onChange:v,"onUpdate:checked":p,onUpdateChecked:w}=e,{nTriggerFormInput:P,nTriggerFormChange:m}=r,x=c.value?e.uncheckedValue:e.checkedValue;p&&ue(p,x,y),w&&ue(w,x,y),v&&ue(v,x,y),P(),m(),a.value=x}}function h(y){o.value||u(y)}function g(y){if(!o.value)switch(y.code){case"Space":case"Enter":case"NumpadEnter":u(y)}}function b(y){switch(y.code){case"Space":y.preventDefault()}}return Object.assign(r,{mergedClsPrefix:t,mergedDisabled:o,renderedChecked:c,mergedTheme:d,labelId:ar(),handleClick:h,handleKeyUp:g,handleKeyDown:b,cssVars:R(()=>{const{value:y}=n,{common:{cubicBezierEaseInOut:v},self:{borderRadius:p,color:w,colorChecked:P,colorDisabled:m,colorTableHeader:x,colorTableHeaderModal:C,colorTableHeaderPopover:S,checkMarkColor:T,checkMarkColorDisabled:$,border:M,borderFocus:D,borderDisabled:_,borderChecked:I,boxShadowFocus:G,textColor:U,textColorDisabled:N,checkMarkColorDisabledChecked:F,colorDisabledChecked:A,borderDisabledChecked:re,labelPadding:be,[ce("fontSize",y)]:Se,[ce("size",y)]:Te}}=d.value;return{"--size":Te,"--bezier":v,"--border-radius":p,"--border":M,"--border-checked":I,"--border-focus":D,"--border-disabled":_,"--border-disabled-checked":re,"--box-shadow-focus":G,"--color":w,"--color-checked":P,"--color-table-header":x,"--color-table-header-modal":C,"--color-table-header-popover":S,"--color-disabled":m,"--color-disabled-checked":A,"--text-color":U,"--text-color-disabled":N,"--check-mark-color":T,"--check-mark-color-disabled":$,"--check-mark-color-disabled-checked":F,"--font-size":Se,"--label-padding":be}})})},render(){const{$slots:e,renderedChecked:t,mergedDisabled:r,indeterminate:o,privateTableHeader:n,cssVars:i,labelId:a,label:l,mergedClsPrefix:s,focusable:c,handleKeyUp:d,handleKeyDown:u,handleClick:h}=this;return f("div",{class:[`${s}-checkbox`,t&&`${s}-checkbox--checked`,r&&`${s}-checkbox--disabled`,o&&`${s}-checkbox--indeterminate`,n&&`${s}-checkbox--table-header`],tabindex:r||!c?void 0:0,role:"checkbox","aria-checked":o?"mixed":t,"aria-labelledby":a,style:i,onKeyup:d,onKeydown:u,onClick:h,onMousedown:()=>{const g=b=>{b.preventDefault()};window.addEventListener("selectstart",g),setTimeout(()=>{window.removeEventListener("selectstart",g)},0)}},f("div",{class:`${s}-checkbox-box`},f(Qo,null,{default:()=>this.indeterminate?f("div",{key:"indeterminate",class:`${s}-checkbox-icon`},K4):f("div",{key:"check",class:`${s}-checkbox-icon`},V4)}),f("div",{class:`${s}-checkbox-box__border`})),l!==null||e.default?f("span",{class:`${s}-checkbox__label`,id:a},Ae(e,"default",void 0,()=>[l])):null)}});const Z4=e=>{const{textColor2:t,fontSize:r,fontWeightStrong:o}=e;return{textColor:t,fontSize:r,fontWeightStrong:o,"mono-3":"#a0a1a7","hue-1":"#0184bb","hue-2":"#4078f2","hue-3":"#a626a4","hue-4":"#50a14f","hue-5":"#e45649","hue-5-2":"#c91243","hue-6":"#986801","hue-6-2":"#c18401"}},J4={name:"Code",common:De,self:Z4};var Gh=J4,Q4=E([k("code",` + font-size: var(--font-size); + font-family: var(--font-family); + `,[E("pre",` + margin: 0; + font-family: inherit; + `),E("[class^=hljs]",` + color: var(--text-color); + transition: + color .3s var(--bezier), + background-color .3s var(--bezier); + `)]),({props:e})=>{const t=`${e.bPrefix}code`;return[`${t} .hljs-comment, + ${t} .hljs-quote { + color: var(--mono-3); + font-style: italic; + }`,`${t} .hljs-doctag, + ${t} .hljs-keyword, + ${t} .hljs-formula { + color: var(--hue-3); + }`,`${t} .hljs-section, + ${t} .hljs-name, + ${t} .hljs-selector-tag, + ${t} .hljs-deletion, + ${t} .hljs-subst { + color: var(--hue-5); + }`,`${t} .hljs-literal { + color: var(--hue-1); + }`,`${t} .hljs-string, + ${t} .hljs-regexp, + ${t} .hljs-addition, + ${t} .hljs-attribute, + ${t} .hljs-meta-string { + color: var(--hue-4); + }`,`${t} .hljs-built_in, + ${t} .hljs-class .hljs-title { + color: var(--hue-6-2); + }`,`${t} .hljs-attr, + ${t} .hljs-variable, + ${t} .hljs-template-variable, + ${t} .hljs-type, + ${t} .hljs-selector-class, + ${t} .hljs-selector-attr, + ${t} .hljs-selector-pseudo, + ${t} .hljs-number { + color: var(--hue-6); + }`,`${t} .hljs-symbol, + ${t} .hljs-bullet, + ${t} .hljs-link, + ${t} .hljs-meta, + ${t} .hljs-selector-id, + ${t} .hljs-title { + color: var(--hue-2); + }`,`${t} .hljs-emphasis { + font-style: italic; + }`,`${t} .hljs-strong { + font-weight: var(--font-weight-strong); + }`,`${t} .hljs-link { + text-decoration: underline; + }`]}]);const ek=Object.assign(Object.assign({},ye.props),{language:String,code:{type:String,default:""},trim:{type:Boolean,default:!0},hljs:Object,uri:Boolean,inline:Boolean,internalNoHighlight:Boolean});var tk=q({name:"Code",props:ek,setup(e,{slots:t}){const{internalNoHighlight:r}=e,{mergedClsPrefixRef:o}=Ee(),n=W(null),i=r?{value:void 0}:Uf(e),a=(c,d,u)=>{const{value:h}=i;return!h||!(c&&h.getLanguage(c))?null:h.highlight(u?d.trim():d,{language:c}).value},l=()=>{if(t.default)return;const{value:c}=n;if(!c)return;const{language:d}=e,u=e.uri?window.decodeURIComponent(e.code):e.code;if(d){const g=a(d,u,e.trim);if(g!==null){c.innerHTML=e.inline?g:`
${g}
`;return}}if(e.inline){c.textContent=u;return}const h=document.createElement("pre");h.textContent=u,c.appendChild(h)};wt(l),Ue(ke(e,"language"),l),Ue(ke(e,"code"),l),r||Ue(i,l);const s=ye("Code","Code",Q4,Gh,e,o);return{mergedClsPrefix:o,codeRef:n,cssVars:R(()=>{const{common:{cubicBezierEaseInOut:c,fontFamilyMono:d},self:{textColor:u,fontSize:h,fontWeightStrong:g,"mono-3":b,"hue-1":y,"hue-2":v,"hue-3":p,"hue-4":w,"hue-5":P,"hue-5-2":m,"hue-6":x,"hue-6-2":C}}=s.value;return{"--font-size":h,"--font-family":d,"--font-weight-strong":g,"--bezier":c,"--text-color":u,"--mono-3":b,"--hue-1":y,"--hue-2":v,"--hue-3":p,"--hue-4":w,"--hue-5":P,"--hue-5-2":m,"--hue-6":x,"--hue-6-2":C}})}},render(){const{mergedClsPrefix:e}=this;return f("code",{class:`${e}-code`,style:this.cssVars,ref:"codeRef"},this.$slots)}});const rk=e=>{const{fontWeight:t,textColor1:r,textColor2:o,dividerColor:n,fontSize:i}=e;return{titleFontSize:i,titleFontWeight:t,dividerColor:n,titleTextColor:r,fontSize:i,textColor:o,arrowColor:o}},ok={name:"Collapse",common:De,self:rk};var nk=ok,ik=k("collapse",{width:"100%"},[k("collapse-item",` + font-size: var(--font-size); + color: var(--text-color); + transition: + color .3s var(--bezier), + border-color .3s var(--bezier); + margin: 16px 0 0 0; + `,[k("collapse-item","margin-left: 32px;"),E("&:first-child",{marginTop:0}),E("&:first-child >",[O("header",{paddingTop:0})]),j("left-arrow-placement",[O("header",[k("collapse-item-arrow",{marginRight:"4px"})])]),j("right-arrow-placement",[O("header",[k("collapse-item-arrow",{marginLeft:"4px"})])]),O("content-wrapper",[O("content-inner",{paddingTop:"16px"}),ln({duration:"0.15s"})]),j("active",[O("header",[j("active",[k("collapse-item-arrow",{transform:"rotate(90deg)"})])])]),E("&:not(:first-child)",{borderTop:"1px solid var(--divider-color)"}),O("header",` + font-size: var(--title-font-size); + display: flex; + flex-wrap: nowrap; + align-items: center; + transition: color .3s var(--bezier); + position: relative; + padding: 16px 0 0 0; + color: var(--title-text-color); + `,[O("header-main",` + cursor: pointer; + display: flex; + flex-wrap: nowrap; + align-items: center; + font-weight: var(--title-font-weight); + transition: color .3s var(--bezier); + flex: 1; + color: var(--title-text-color); + `),O("header-extra",` + cursor: pointer; + display: flex; + align-items: center; + transition: color .3s var(--bezier); + color: var(--text-color); + `),k("collapse-item-arrow",` + display: flex; + transition: + transform .15s var(--bezier), + color .3s var(--bezier); + font-size: 18px; + color: var(--arrow-color); + `)])])]);const ak=Object.assign(Object.assign({},ye.props),{defaultExpandedNames:{type:[Array,String],default:null},expandedNames:[Array,String],arrowPlacement:{type:String,default:"left"},accordion:{type:Boolean,default:!1},displayDirective:{type:String,default:"if"},onItemHeaderClick:[Function,Array],"onUpdate:expandedNames":[Function,Array],onUpdateExpandedNames:[Function,Array],onExpandedNamesChange:{type:[Function,Array],validator:()=>!0,default:void 0}}),Yh=Symbol("collapse");var PO=q({name:"Collapse",props:ak,setup(e,{slots:t}){const{mergedClsPrefixRef:r}=Ee(e),o=W(e.defaultExpandedNames),n=R(()=>e.expandedNames),i=gt(n,o),a=ye("Collapse","Collapse",ik,nk,e,r);function l(d){const{"onUpdate:expandedNames":u,onUpdateExpandedNames:h,onExpandedNamesChange:g}=e;h&&ue(h,d),u&&ue(u,d),g&&ue(g,d),o.value=d}function s(d){const{onItemHeaderClick:u}=e;u&&ue(u,d)}function c(d,u,h){const{accordion:g}=e,{value:b}=i;if(g)d?(l([u]),s({name:u,expanded:!0,event:h})):(l([]),s({name:u,expanded:!1,event:h}));else if(!Array.isArray(b))l([u]),s({name:u,expanded:!0,event:h});else{const y=b.slice(),v=y.findIndex(p=>u===p);~v?(y.splice(v,1),l(y),s({name:u,expanded:!1,event:h})):(y.push(u),l(y),s({name:u,expanded:!0,event:h}))}}return Ie(Yh,{props:e,mergedClsPrefixRef:r,expandedNamesRef:i,slots:t,toggleItem:c}),{mergedTheme:a,mergedClsPrefix:r,cssVars:R(()=>{const{common:{cubicBezierEaseInOut:d},self:{titleFontWeight:u,dividerColor:h,titleTextColor:g,textColor:b,arrowColor:y,fontSize:v,titleFontSize:p}}=a.value;return{"--font-size":v,"--bezier":d,"--text-color":b,"--divider-color":h,"--title-font-size":p,"--title-text-color":g,"--title-font-weight":u,"--arrow-color":y}})}},render(){return f("div",{class:`${this.mergedClsPrefix}-collapse`,style:this.cssVars},this.$slots)}}),lk=q({name:"CollapseItemContent",props:{displayDirective:{type:String,required:!0},show:Boolean,clsPrefix:{type:String,required:!0}},setup(e){return{onceTrue:$f(ke(e,"show"))}},render(){return f(mo,null,{default:()=>{const{show:e,displayDirective:t,onceTrue:r,clsPrefix:o}=this,n=t==="show"&&r,i=f("div",{class:`${o}-collapse-item__content-wrapper`},f("div",{class:`${o}-collapse-item__content-inner`},this.$slots));return n?or(i,[[Bo,e]]):e?i:null}})}});const sk={title:String,name:[String,Number],displayDirective:String};var $O=q({name:"CollapseItem",props:sk,setup(e){const t=ar(),r=Ve(()=>{var c;return(c=e.name)!==null&&c!==void 0?c:t}),o=Pe(Yh);o||Cr("collapse-item","`n-collapse-item` must be placed inside `n-collapse`.");const{expandedNamesRef:n,props:i,mergedClsPrefixRef:a,slots:l}=o,s=R(()=>{const{value:c}=n;if(Array.isArray(c)){const{value:d}=r;return!~c.findIndex(u=>u===d)}else if(c){const{value:d}=r;return d!==c}return!0});return{collapseSlots:l,randomName:t,mergedClsPrefix:a,collapsed:s,mergedDisplayDirective:R(()=>{const{displayDirective:c}=e;return c||i.displayDirective}),arrowPlacement:R(()=>i.arrowPlacement),handleClick(c){o&&o.toggleItem(s.value,r.value,c)}}},render(){const{collapseSlots:e,$slots:t,arrowPlacement:r,collapsed:o,title:n,mergedDisplayDirective:i,mergedClsPrefix:a}=this,l=Ae(t,"header",void 0,()=>[n]),s=t["header-extra"]||e["header-extra"];return f("div",{class:[`${a}-collapse-item`,`${a}-collapse-item--${r}-arrow-placement`,!o&&`${a}-collapse-item--active`]},f("div",{class:[`${a}-collapse-item__header`,!o&&`${a}-collapse-item__header--active`]},f("div",{class:`${a}-collapse-item__header-main`,onClick:this.handleClick},r==="right"&&l,f("div",{class:`${a}-collapse-item-arrow`},Ae(t.arrow?t:e.arrow?e:t,"arrow",{collapsed:o},()=>{var c;return[f(Be,{clsPrefix:a},{default:(c=e.expandIcon)!==null&&c!==void 0?c:()=>f(ca,null)})]})),r==="left"&&l),s&&f("div",{class:`${a}-collapse-item__header-extra`,onClick:this.handleClick},{default:s})),f(lk,{clsPrefix:a,displayDirective:i,show:!o},t))}});function ck(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const dk=St({name:"Select",common:De,peers:{InternalSelection:Ph,InternalSelectMenu:wh},self:ck});var Xh=dk,uk=E([k("select",` + z-index: auto; + outline: none; + width: 100%; + position: relative; + `),k("select-menu",` + margin: 4px 0; + box-shadow: var(--menu-box-shadow); + `,[jr()])]);const fk=Object.assign(Object.assign({},ye.props),{to:Sr.propTo,bordered:{type:Boolean,default:void 0},clearable:Boolean,options:{type:Array,default:()=>[]},defaultValue:{type:[String,Number,Array],default:null},value:[String,Number,Array],placeholder:String,multiple:Boolean,size:String,filterable:Boolean,disabled:{type:Boolean,default:void 0},remote:Boolean,loading:Boolean,filter:{type:Function,default:T3},placement:{type:String,default:"bottom-start"},widthMode:{type:String,default:"trigger"},tag:Boolean,onCreate:{type:Function,default:e=>({label:e,value:e})},fallbackOption:{type:[Function,Boolean],default:()=>e=>({label:String(e),value:e})},show:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:!0},maxTagCount:[Number,String],consistentMenuWidth:{type:Boolean,default:!0},virtualScroll:{type:Boolean,default:!0},renderLabel:Function,renderOption:Function,renderTag:Function,"onUpdate:value":[Function,Array],inputProps:Object,onUpdateValue:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onFocus:[Function,Array],onScroll:[Function,Array],onSearch:[Function,Array],onUpdateShow:[Function,Array],"onUpdate:show":[Function,Array],onChange:{type:[Function,Array],validator:()=>!0,default:void 0},items:{type:Array,validator:()=>!0,default:void 0},displayDirective:{type:String,default:"show"}});var hk=q({name:"Select",props:fk,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:r,namespaceRef:o}=Ee(e),n=ye("Select","Select",uk,Xh,e,t),i=W(e.defaultValue),a=ke(e,"value"),l=gt(a,i),s=W(!1),c=W(""),d=R(()=>ua($.value,P3)),u=R(()=>R3(e.options)),h=W(!1),g=gt(ke(e,"show"),h),b=W(null),y=W(null),v=W(null),{localeRef:p}=kr("Select"),w=R(()=>{var V;return(V=e.placeholder)!==null&&V!==void 0?V:p.value.placeholder}),P=ei(e,["items","options"]),m=W([]),x=W([]),C=W(new Map),S=R(()=>{const{fallbackOption:V}=e;return V?oe=>Object.assign(V(oe),{value:oe}):!1}),T=R(()=>x.value.concat(m.value).concat(P.value)),$=R(()=>{if(e.remote)return P.value;{const{value:V}=T,{value:oe}=c;if(!oe.length||!e.filterable)return V;{const{filter:pe}=e;return $3(V,pe,oe)}}});function M(V){const oe=e.remote,{value:pe}=C,{value:ve}=u,{value:$e}=S,Me=[];return V.forEach(rt=>{if(ve.has(rt))Me.push(ve.get(rt));else if(oe&&pe.has(rt))Me.push(pe.get(rt));else if($e){const lt=$e(rt);lt&&Me.push(lt)}}),Me}const D=R(()=>{if(e.multiple){const{value:V}=l;return Array.isArray(V)?M(V):[]}return null}),_=R(()=>{const{value:V}=l;return!e.multiple&&!Array.isArray(V)?V===null?null:M([V])[0]||null:null}),I=xr(e),{mergedSizeRef:G,mergedDisabledRef:U}=I;function N(V,oe){const{onChange:pe,"onUpdate:value":ve,onUpdateValue:$e}=e,{nTriggerFormChange:Me,nTriggerFormInput:rt}=I;pe&&ue(pe,V,oe),$e&&ue($e,V,oe),ve&&ue(ve,V,oe),i.value=V,Me(),rt()}function F(V){const{onBlur:oe}=e,{nTriggerFormBlur:pe}=I;oe&&ue(oe,V),pe()}function A(){const{onClear:V}=e;V&&ue(V)}function re(V){const{onFocus:oe}=e,{nTriggerFormFocus:pe}=I;oe&&ue(oe,V),pe()}function be(V){const{onSearch:oe}=e;oe&&ue(oe,V)}function Se(V){const{onScroll:oe}=e;oe&&ue(oe,V)}function Te(){var V;const{remote:oe,multiple:pe}=e;if(oe){const{value:ve}=C;if(pe)(V=D.value)===null||V===void 0||V.forEach($e=>{ve.set($e.value,$e)});else{const $e=_.value;$e&&ve.set($e.value,$e)}}}function Oe(V){const{onUpdateShow:oe,"onUpdate:show":pe}=e;oe&&ue(oe,V),pe&&ue(pe,V),h.value=V}function Re(){U.value||(c.value="",Oe(!0),h.value=!0,e.filterable&&de())}function Z(){Oe(!1)}function fe(){c.value=""}function ee(){U.value||(g.value?e.filterable||Z():Re())}function xe(V){var oe,pe;((pe=(oe=v.value)===null||oe===void 0?void 0:oe.selfRef)===null||pe===void 0?void 0:pe.contains(V.relatedTarget))||(s.value=!1,F(V),Z())}function ie(V){re(V),s.value=!0}function Ce(V){s.value=!0}function te(V){var oe;((oe=b.value)===null||oe===void 0?void 0:oe.$el.contains(V.relatedTarget))||(s.value=!1,F(V),Z())}function ge(){var V;(V=b.value)===null||V===void 0||V.focus(),Z()}function z(V){var oe;g.value&&(((oe=b.value)===null||oe===void 0?void 0:oe.$el.contains(V.target))||Z())}function L(V){if(!Array.isArray(V))return[];if(S.value)return Array.from(V);{const{remote:oe}=e,{value:pe}=u;if(oe){const{value:ve}=C;return V.filter($e=>pe.has($e)||ve.has($e))}else return V.filter(ve=>pe.has(ve))}}function K(V){Q(V.rawNode)}function Q(V){if(U.value)return;const{tag:oe,remote:pe}=e;if(oe&&!pe){const{value:ve}=x,$e=ve[0]||null;$e&&(m.value.push($e),x.value=[])}if(pe&&C.value.set(V.value,V),e.multiple){const ve=L(l.value),$e=ve.findIndex(Me=>Me===V.value);if(~$e){if(ve.splice($e,1),oe&&!pe){const Me=B(V.value);~Me&&(m.value.splice(Me,1),c.value="")}}else ve.push(V.value),c.value="";N(ve,M(ve))}else{if(oe&&!pe){const ve=B(V.value);~ve?m.value=[m.value[ve]]:m.value=[]}X(),Z(),N(V.value,V)}}function B(V){return m.value.findIndex(pe=>pe.value===V)}function Y(V){g.value||Re();const{value:oe}=V.target;c.value=oe;const{tag:pe,remote:ve}=e;if(be(oe),pe&&!ve){if(!oe){x.value=[];return}const $e=e.onCreate(oe);P.value.some(Me=>Me.value===$e.value)||m.value.some(Me=>Me.value===$e.value)?x.value=[]:x.value=[$e]}}function ae(V){V.stopPropagation();const{multiple:oe}=e;!oe&&e.filterable&&Z(),A(),oe?N([],[]):N(null,null)}function le(V){Yi(V,"action")||V.preventDefault()}function se(V){Se(V)}function ne(V){var oe,pe,ve,$e;switch(V.code){case"Space":if(e.filterable)break;case"Enter":case"NumpadEnter":if(g.value){const Me=(oe=v.value)===null||oe===void 0?void 0:oe.getPendingTmNode();Me?K(Me):e.filterable||(Z(),X())}else Re();V.preventDefault();break;case"ArrowUp":if(e.loading)return;g.value&&((pe=v.value)===null||pe===void 0||pe.prev());break;case"ArrowDown":if(e.loading)return;g.value?(ve=v.value)===null||ve===void 0||ve.next():Re();break;case"Escape":Z(),($e=b.value)===null||$e===void 0||$e.focus();break}}function J(V){switch(V.code){case"Space":e.filterable||V.preventDefault();break;case"ArrowUp":case"ArrowDown":V.preventDefault();break}}function X(){var V;(V=b.value)===null||V===void 0||V.focus()}function de(){var V;(V=b.value)===null||V===void 0||V.focusInput()}function we(){var V;(V=y.value)===null||V===void 0||V.syncPosition()}return Te(),Ue(ke(e,"options"),Te),Ue($,()=>{!g.value||Ct(we)}),Ue(l,()=>{!g.value||Ct(we)}),{mergedClsPrefix:t,mergedBordered:r,namespace:o,treeMate:d,isMounted:qo(),triggerRef:b,menuRef:v,pattern:c,uncontrolledShow:h,mergedShow:g,adjustedTo:Sr(e),uncontrolledValue:i,mergedValue:l,followerRef:y,localizedPlaceholder:w,selectedOption:_,selectedOptions:D,mergedSize:G,mergedDisabled:U,focused:s,handleMenuFocus:Ce,handleMenuBlur:te,handleMenuTabOut:ge,handleTriggerClick:ee,handleToggle:K,handleDeleteOption:Q,handlePatternInput:Y,handleClear:ae,handleTriggerBlur:xe,handleTriggerFocus:ie,handleKeyDown:J,handleKeyUp:ne,syncPosition:we,handleMenuLeave:fe,handleMenuClickOutside:z,handleMenuScroll:se,handleMenuKeyup:ne,handleMenuKeydown:J,handleMenuMousedown:le,mergedTheme:n,cssVars:R(()=>{const{self:{menuBoxShadow:V}}=n.value;return{"--menu-box-shadow":V}})}},render(){const{$slots:e,mergedClsPrefix:t}=this;return f("div",{class:`${t}-select`},f(bs,null,{default:()=>[f(xs,null,{default:()=>f(i3,{ref:"triggerRef",inputProps:this.inputProps,clsPrefix:t,showArrow:this.showArrow,maxTagCount:this.maxTagCount,bordered:this.mergedBordered,active:this.mergedShow,pattern:this.pattern,placeholder:this.localizedPlaceholder,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,multiple:this.multiple,renderTag:this.renderTag,renderLabel:this.renderLabel,filterable:this.filterable,clearable:this.clearable,disabled:this.mergedDisabled,size:this.mergedSize,theme:this.mergedTheme.peers.InternalSelection,themeOverrides:this.mergedTheme.peerOverrides.InternalSelection,loading:this.loading,focused:this.focused,onClick:this.handleTriggerClick,onDeleteOption:this.handleDeleteOption,onPatternInput:this.handlePatternInput,onClear:this.handleClear,onBlur:this.handleTriggerBlur,onFocus:this.handleTriggerFocus,onKeydown:this.handleKeyDown,onKeyup:this.handleKeyUp})}),f($s,{ref:"followerRef",show:this.mergedShow,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Sr.tdkey,containerClass:this.namespace,width:this.consistentMenuWidth?"target":void 0,minWidth:"target",placement:this.placement},{default:()=>f(ht,{name:"fade-in-scale-up-transition",appear:this.isMounted,onLeave:this.handleMenuLeave},{default:()=>(this.mergedShow||this.displayDirective==="show")&&or(f(I5,{ref:"menuRef",virtualScroll:this.consistentMenuWidth&&this.virtualScroll,class:`${t}-select-menu`,clsPrefix:t,focusable:!0,autoPending:!0,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,treeMate:this.treeMate,multiple:this.multiple,size:"medium",renderOption:this.renderOption,renderLabel:this.renderLabel,value:this.mergedValue,style:this.cssVars,onToggle:this.handleToggle,onScroll:this.handleMenuScroll,onFocus:this.handleMenuFocus,onBlur:this.handleMenuBlur,onKeyup:this.handleMenuKeyup,onKeydown:this.handleMenuKeydown,onTabOut:this.handleMenuTabOut,onMousedown:this.handleMenuMousedown,show:this.mergedShow},e),this.displayDirective==="show"?[[Bo,this.mergedShow],[ri,this.handleMenuClickOutside]]:[[ri,this.handleMenuClickOutside]])})})]}))}}),pk={itemSize:"28px",itemPadding:"0 4px",itemMargin:"0 0 0 8px",buttonIconSize:"16px",inputWidth:"60px",selectWidth:"unset",inputMargin:"0 0 0 8px",selectMargin:"0 0 0 8px",prefixMargin:"0 8px 0 0",suffixMargin:"0 0 0 8px",jumperFontSize:"14px"};const gk=e=>{const{textColor2:t,primaryColor:r,primaryColorHover:o,primaryColorPressed:n,inputColorDisabled:i,textColorDisabled:a,borderColor:l,borderRadius:s,fontSize:c}=e;return Object.assign(Object.assign({},pk),{buttonColor:"#0000",buttonColorHover:"#0000",buttonColorPressed:"#0000",buttonBorder:`1px solid ${l}`,buttonBorderHover:`1px solid ${l}`,buttonBorderPressed:`1px solid ${l}`,buttonIconColor:t,buttonIconColorHover:t,buttonIconColorPressed:t,itemTextColor:t,itemTextColorHover:o,itemTextColorPressed:n,itemTextColorActive:r,itemTextColorDisabled:a,itemColor:"#0000",itemColorHover:"#0000",itemColorPressed:"#0000",itemColorActive:"#0000",itemColorActiveHover:"#0000",itemColorDisabled:i,itemBorder:"1px solid #0000",itemBorderHover:"1px solid #0000",itemBorderPressed:"1px solid #0000",itemBorderActive:`1px solid ${r}`,itemBorderDisabled:`1px solid ${l}`,itemBorderRadius:s,itemFontSize:c,jumperTextColor:t,jumperTextColorDisabled:a})},vk=St({name:"Pagination",common:De,peers:{Select:Xh,Input:$h},self:gk});var Zh=vk;function mk(e,t,r=9){if(t===1)return[1];if(t===2)return[1,2];const o=1,n=t;let i=e,a=e;const l=(r-5)/2;a+=Math.ceil(l),a=Math.min(Math.max(a,o+r-3),n-2),i-=Math.floor(l),i=Math.max(Math.min(i,n-r+3),o+2);let s=!1,c=!1;i>o+2&&(s=!0),a=o+1&&d.push(o+1);for(let u=i;u<=a;++u)d.push(u);return c?d.push(-1):a===n-2&&d[d.length-1]!==n-1&&d.push(n-1),d[d.length-1]!==n&&d.push(n),d}function bk(e,t){return e.map(r=>{switch(r){case-2:return{type:"fastBackward",label:"fastBackward",active:!1};case-1:return{type:"fastForward",label:"fastForward",active:!1};default:return r===t?{type:"page",label:r,active:!0}:{type:"page",label:r,active:!1}}})}function xk(e,t,r){const o=mk(e,t,r);return bk(o,e)}var yk=k("pagination",` + display: flex; + vertical-align: middle; + font-size: var(--item-font-size); + flex-wrap: nowrap; +`,[k("pagination-prefix",` + display: flex; + align-items: center; + margin: var(--prefix-margin); + `),k("pagination-suffix",` + display: flex; + align-items: center; + margin: var(--suffix-margin); + `),E("> *:not(:first-child)",{margin:"var(--item-margin)"}),k("select",{width:"var(--select-width)"}),E("&.transition-disabled",[k("pagination-item",{transition:"none!important"})]),k("pagination-quick-jumper",` + white-space: nowrap; + display: flex; + color: var(--jumper-text-color); + transition: color .3s var(--bezier); + align-items: center; + font-size: var(--jumter-font-size); + `,[k("input",` + margin: var(--input-margin); + width: var(--input-width); + `)]),k("pagination-item",` + position: relative; + cursor: pointer; + user-select: none; + display: flex; + align-items: center; + justify-content: center; + box-sizing: border-box; + min-width: var(--item-size); + height: var(--item-size); + padding: var(--item-padding); + background-color: var(--item-color); + color: var(--item-text-color); + border-radius: var(--item-border-radius); + border: var(--item-border); + fill: var(--button-icon-color); + transition: + color .3s var(--bezier), + border-color .3s var(--bezier), + background-color .3s var(--bezier), + fill .3s var(--bezier); + `,[j("button",` + background: var(--button-color); + color: var(--button-icon-color); + border: var(--button-border); + `,[k("base-icon",` + font-size: var(--button-icon-size); + `)]),qe("disabled",[E("&:hover",{background:"var(--item-color-hover)",color:"var(--item-text-color-hover)",border:"var(--item-border-hover)"},[j("button",{background:"var(--button-color-hover)",border:"var(--button-border-hover)",color:"var(--button-icon-color-hover)"})]),E("&:active",{background:"var(--item-color-pressed)",color:"var(--item-text-color-pressed)",border:"var(--item-border-pressed)"},[j("button",{background:"var(--button-color-pressed)",border:"var(--button-border-pressed)",color:"var(--button-icon-color-pressed)"})]),j("active",{background:"var(--item-color-active)",color:"var(--item-text-color-active)",border:"var(--item-border-active)"},[E("&:hover",{background:"var(--item-color-active-hover)"})])]),j("disabled",` + cursor: not-allowed; + color: var(--item-text-color-disabled); + `,[j("active, button",{backgroundColor:"var(--item-color-disabled)",border:"var(--item-border-disabled)"})])]),j("disabled",{cursor:"not-allowed"},[k("pagination-quick-jumper",{color:"var(--jumper-text-color-disabled)"})])]);const wk=Object.assign(Object.assign({},ye.props),{page:Number,defaultPage:{type:Number,default:1},itemCount:Number,pageCount:Number,defaultPageCount:{type:Number,default:1},showSizePicker:Boolean,pageSize:Number,defaultPageSize:Number,pageSizes:{type:Array,default(){return[10]}},showQuickJumper:Boolean,disabled:Boolean,pageSlot:{type:Number,default:9},prev:Function,next:Function,prefix:Function,suffix:Function,"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],onPageSizeChange:[Function,Array],onChange:[Function,Array]});var Ck=q({name:"Pagination",props:wk,setup(e){const{NConfigProvider:t,mergedClsPrefixRef:r}=Ee(e),o=ye("Pagination","Pagination",yk,Zh,e,r),{localeRef:n}=kr("Pagination"),i=W(null),a=W(null),l=W(""),s=W(e.defaultPage),c=W(e.defaultPageSize||e.pageSizes[0]),d=gt(ke(e,"page"),s),u=gt(ke(e,"pageSize"),c),h=R(()=>{const{itemCount:F}=e;if(F!==void 0)return Math.max(1,Math.ceil(F/u.value));const{pageCount:A}=e;return A!==void 0?A:1}),g=W(!1),b=W(!1),y=R(()=>{const F=n.value.selectionSuffix;return e.pageSizes.map(A=>({label:`${A} / ${F}`,value:A}))}),v=R(()=>{var F,A;return((A=(F=t==null?void 0:t.mergedComponentPropsRef.value)===null||F===void 0?void 0:F.Pagination)===null||A===void 0?void 0:A.inputSize)||"small"}),p=R(()=>{var F,A;return((A=(F=t==null?void 0:t.mergedComponentPropsRef.value)===null||F===void 0?void 0:F.Pagination)===null||A===void 0?void 0:A.selectSize)||"small"}),w=R(()=>(d.value-1)*u.value),P=R(()=>{const F=d.value*u.value-1,{itemCount:A}=e;return A!==void 0&&F>A?A:F}),m=()=>{Ct(()=>{var F;const{value:A}=i;!A||(A.classList.add("transition-disabled"),(F=i.value)===null||F===void 0||F.offsetWidth,A.classList.remove("transition-disabled"))})};function x(F){if(F===d.value)return;const{"onUpdate:page":A,onUpdatePage:re,onChange:be}=e;A&&ue(A,F),re&&ue(re,F),be&&ue(be,F),s.value=F}function C(F){if(F===u.value)return;const{"onUpdate:pageSize":A,onUpdatePageSize:re,onPageSizeChange:be}=e;A&&ue(A,F),re&&ue(re,F),be&&ue(be,F),c.value=F,h.value=1&&re<=h.value&&(x(re),l.value="",(A=a.value)===null||A===void 0||A.blur())}}function I(F){if(!e.disabled)switch(F.type){case"page":x(F.label);break;case"fastBackward":M();break;case"fastForward":$();break}}function G(F){if(!e.disabled){switch(F.type){case"fastBackward":b.value=!0;break;case"fastForward":g.value=!0;break;default:return}m()}}function U(F){if(!e.disabled){switch(F.type){case"fastBackward":b.value=!1;break;case"fastForward":g.value=!1;break;default:return}m()}}function N(F){l.value=F}return mr(()=>{d.value,u.value,m()}),{mergedClsPrefix:r,locale:n,selfRef:i,jumperRef:a,mergedPage:d,showFastBackward:b,showFastForward:g,pageItems:R(()=>xk(d.value,h.value,e.pageSlot)),jumperValue:l,pageSizeOptions:y,mergedPageSize:u,inputSize:v,selectSize:p,mergedTheme:o,mergedPageCount:h,startIndex:w,endIndex:P,handleJumperInput:N,handleBackwardClick:T,handleForwardClick:S,handlePageItemClick:I,handleSizePickerChange:D,handleQuickJumperKeyUp:_,handlePageItemMouseEnter:G,handlePageItemMouseLeave:U,cssVars:R(()=>{const{self:{itemSize:F,itemPadding:A,itemMargin:re,inputWidth:be,selectWidth:Se,inputMargin:Te,selectMargin:Oe,buttonBorder:Re,buttonBorderHover:Z,buttonBorderPressed:fe,buttonIconColor:ee,buttonIconColorHover:xe,buttonIconColorPressed:ie,buttonIconSize:Ce,itemTextColor:te,itemTextColorHover:ge,itemTextColorPressed:z,itemTextColorActive:L,itemTextColorDisabled:K,itemColor:Q,itemColorHover:B,itemColorPressed:Y,itemColorActive:ae,itemColorActiveHover:le,itemColorDisabled:se,itemBorder:ne,itemBorderHover:J,itemBorderPressed:X,itemBorderActive:de,itemBorderDisabled:we,itemBorderRadius:V,itemFontSize:oe,jumperFontSize:pe,jumperTextColor:ve,jumperTextColorDisabled:$e,prefixMargin:Me,suffixMargin:rt,buttonColor:lt,buttonColorHover:ot,buttonColorPressed:H},common:{cubicBezierEaseInOut:me}}=o.value;return{"--prefix-margin":Me,"--suffix-margin":rt,"--item-font-size":oe,"--select-width":Se,"--select-margin":Oe,"--input-width":be,"--input-margin":Te,"--item-size":F,"--item-text-color":te,"--item-text-color-disabled":K,"--item-text-color-hover":ge,"--item-text-color-active":L,"--item-text-color-pressed":z,"--item-color":Q,"--item-color-hover":B,"--item-color-disabled":se,"--item-color-active":ae,"--item-color-active-hover":le,"--item-color-pressed":Y,"--item-border":ne,"--item-border-hover":J,"--item-border-disabled":we,"--item-border-active":de,"--item-border-pressed":X,"--item-padding":A,"--item-border-radius":V,"--bezier":me,"--jumper-font-size":pe,"--jumper-text-color":ve,"--jumper-text-color-disabled":$e,"--item-margin":re,"--button-icon-size":Ce,"--button-icon-color":ee,"--button-icon-color-hover":xe,"--button-icon-color-pressed":ie,"--button-color-hover":ot,"--button-color":lt,"--button-color-pressed":H,"--button-border":Re,"--button-border-hover":Z,"--button-border-pressed":fe}})}},render(){const{$slots:e,mergedClsPrefix:t,disabled:r,cssVars:o,mergedPage:n,mergedPageCount:i,pageItems:a,showFastBackward:l,showFastForward:s,showSizePicker:c,showQuickJumper:d,mergedTheme:u,locale:h,inputSize:g,selectSize:b,mergedPageSize:y,pageSizeOptions:v,jumperValue:p,prev:w,next:P,prefix:m,suffix:x,handleJumperInput:C,handleSizePickerChange:S,handleBackwardClick:T,handlePageItemClick:$,handlePageItemMouseEnter:M,handlePageItemMouseLeave:D,handleForwardClick:_,handleQuickJumperKeyUp:I}=this,G=w||e.prev,U=P||e.next;return f("div",{ref:"selfRef",class:[`${t}-pagination`,r&&`${t}-pagination--disabled`],style:o},m||e.prefix?f("div",{class:`${t}-pagination-prefix`},(e.prefix?e.prefix:m)({page:n,pageSize:y,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.itemCount})):null,f("div",{class:[`${t}-pagination-item`,!G&&`${t}-pagination-item--button`,(n<=1||n>i||r)&&`${t}-pagination-item--disabled`],onClick:T},G?G({page:n,pageSize:y,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.itemCount}):f(Be,{clsPrefix:t},{default:()=>f(B2,null)})),a.map((N,F)=>f("div",{key:F,class:[`${t}-pagination-item`,{[`${t}-pagination-item--active`]:N.active,[`${t}-pagination-item--disabled`]:r}],onClick:()=>$(N),onMouseenter:()=>M(N),onMouseleave:()=>D(N)},N.type==="page"?N.label:null,N.type==="fastBackward"?l?f(Be,{clsPrefix:t},{default:()=>f(U2,null)}):f(Be,{clsPrefix:t},{default:()=>f(Kf,null)}):null,N.type==="fastForward"?s?f(Be,{clsPrefix:t},{default:()=>f(V2,null)}):f(Be,{clsPrefix:t},{default:()=>f(Kf,null)}):null)),f("div",{class:[`${t}-pagination-item`,!U&&`${t}-pagination-item--button`,{[`${t}-pagination-item--disabled`]:n<1||n>=i||r}],onClick:_},U?U({page:n,pageSize:y,pageCount:i,itemCount:this.itemCount,startIndex:this.startIndex,endIndex:this.endIndex}):f(Be,{clsPrefix:t},{default:()=>f(q2,null)})),c?f(hk,{size:b,placeholder:"",options:v,value:y,disabled:r,theme:u.peers.Select,themeOverrides:u.peerOverrides.Select,onUpdateValue:S}):null,d?f("div",{class:`${t}-pagination-quick-jumper`},h.goto,f(w3,{ref:"jumperRef",value:p,onUpdateValue:C,size:g,placeholder:"",disabled:r,theme:u.peers.Input,themeOverrides:u.peerOverrides.Input,onKeyup:I})):null,x||e.suffix?f("div",{class:`${t}-pagination-suffix`},(e.suffix?e.suffix:x)({page:n,pageSize:y,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.itemCount})):null)}}),Sk={padding:"8px 14px"};const kk=e=>{const{borderRadius:t,boxShadow2:r,baseColor:o}=e;return Object.assign(Object.assign({},Sk),{borderRadius:t,boxShadow:r,color:"rgba(0, 0, 0, .85)",textColor:o})},Pk=St({name:"Tooltip",common:De,peers:{Popover:nn},self:kk});var Bs=Pk;const $k=St({name:"Ellipsis",common:De,peers:{Tooltip:Bs}});var Jh=$k,Rk={radioSizeSmall:"14px",radioSizeMedium:"16px",radioSizeLarge:"18px",labelPadding:"0 8px"};const Tk=e=>{const{borderColor:t,primaryColor:r,baseColor:o,textColorDisabled:n,inputColorDisabled:i,textColor2:a,opacityDisabled:l,borderRadius:s,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:u,heightSmall:h,heightMedium:g,heightLarge:b}=e;return Object.assign(Object.assign({},Rk),{buttonHeightSmall:h,buttonHeightMedium:g,buttonHeightLarge:b,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:u,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${r}`,boxShadowFocus:`inset 0 0 0 1px ${r}, 0 0 0 2px ${ze(r,{alpha:.2})}`,boxShadowHover:`inset 0 0 0 1px ${r}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:o,colorDisabled:i,textColor:a,textColorDisabled:n,dotColorActive:r,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:r,buttonBorderColorHover:t,buttonColor:o,buttonColorActive:o,buttonTextColor:a,buttonTextColorActive:r,buttonTextColorHover:r,opacityDisabled:l,buttonBoxShadowFocus:`inset 0 0 0 1px ${r}, 0 0 0 2px ${ze(r,{alpha:.3})}`,buttonBoxShadowHover:"inset 0 0 0 1px #0000",buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:s})},zk={name:"Radio",common:De,self:Tk};var Ls=zk,_k={thPaddingSmall:"8px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"8px",tdPaddingMedium:"12px",tdPaddingLarge:"12px",sorterSize:"15px",filterSize:"15px",paginationMargin:"12px 0 0 0",emptyPadding:"16px 0",actionPadding:"8px 12px",actionButtonMargin:"0 8px 0 0"};const Ok=e=>{const{cardColor:t,modalColor:r,popoverColor:o,textColor2:n,textColor1:i,tableHeaderColor:a,tableColorHover:l,iconColor:s,primaryColor:c,fontWeightStrong:d,borderRadius:u,lineHeight:h,fontSizeSmall:g,fontSizeMedium:b,fontSizeLarge:y,dividerColor:v,heightSmall:p,opacityDisabled:w}=e;return Object.assign(Object.assign({},_k),{actionDividerColor:v,lineHeight:h,borderRadius:u,fontSizeSmall:g,fontSizeMedium:b,fontSizeLarge:y,borderColor:Ye(t,v),tdColorHover:Ye(t,l),thColor:Ye(t,a),thColorHover:Ye(Ye(t,a),l),tdColor:t,tdTextColor:n,thTextColor:i,thFontWeight:d,thButtonColorHover:l,thIconColor:s,thIconColorActive:c,borderColorModal:Ye(r,v),tdColorHoverModal:Ye(r,l),thColorModal:Ye(r,a),thColorHoverModal:Ye(Ye(r,a),l),tdColorModal:r,borderColorPopover:Ye(o,v),tdColorHoverPopover:Ye(o,l),thColorPopover:Ye(o,a),thColorHoverPopover:Ye(Ye(o,a),l),tdColorPopover:o,boxShadowBefore:"inset -12px 0 8px -12px rgba(0, 0, 0, .18)",boxShadowAfter:"inset 12px 0 8px -12px rgba(0, 0, 0, .18)",loadingColor:c,loadingSize:p,opacityLoading:w})},Ek=St({name:"DataTable",common:De,peers:{Button:ai,Checkbox:Kh,Radio:Ls,Pagination:Zh,Scrollbar:yo,Empty:Ts,Popover:nn,Ellipsis:Jh},self:Ok});var Mk=Ek;const Ik=Object.assign(Object.assign({},ii),ye.props);var Qh=q({name:"Tooltip",props:Ik,__popover__:!0,setup(e){const t=ye("Tooltip","Tooltip",void 0,Bs,e),r=W(null);return Object.assign(Object.assign({},{syncPosition(){r.value.syncPosition()},setShow(n){r.value.setShow(n)}}),{popoverRef:r,mergedTheme:t,popoverThemeOverrides:R(()=>t.value.self)})},render(){const{mergedTheme:e,internalExtraClass:t}=this;return f(an,Object.assign(Object.assign({},this.$props),{theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:t.concat("tooltip"),ref:"popoverRef"}),this.$slots)}}),Ak=k("ellipsis",{overflow:"hidden"},[qe("line-clamp",` + white-space: nowrap; + display: inline-block; + vertical-align: bottom; + max-width: 100%; + `),j("line-clamp",` + display: -webkit-inline-box; + -webkit-box-orient: vertical; + `),j("cursor-pointer",` + cursor: pointer; + `)]);function ep(e){return`${e}-ellipsis--line-clamp`}function tp(e,t){return`${e}-ellipsis--cursor-${t}`}const Fk=Object.assign(Object.assign({},ye.props),{expandTrigger:String,lineClamp:[Number,String],tooltip:{type:[Boolean,Object],default:!0}});var rp=q({name:"Ellipsis",inheritAttrs:!1,props:Fk,setup(e,{slots:t,attrs:r}){const{mergedClsPrefixRef:o}=Ee(e),n=ye("Ellipsis","ellipsis",Ak,Jh,e,o),i=W(null),a=W(null),l=W(!1),s=R(()=>{const{lineClamp:y}=e,{value:v}=l;return y!==void 0?{textOverflow:"","-webkit-line-clamp":v?"":y}:{textOverflow:v?"":"ellipsis","-webkit-line-clamp":""}});function c(){let y=!1;const{value:v}=l;if(v)return!0;const{value:p}=i;if(p){const{lineClamp:w}=e;h(p),w!==void 0?y=p.scrollHeight<=p.offsetHeight:y=p.scrollWidth<=p.offsetWidth,g(p,y)}return y}const d=R(()=>e.expandTrigger==="click"?()=>{var y;const{value:v}=l;v&&((y=a.value)===null||y===void 0||y.setShow(!1)),l.value=!v}:void 0),u=()=>f("span",Object.assign({},Zt(r,{class:[`${o.value}-ellipsis`,e.lineClamp!==void 0?ep(o.value):void 0,e.expandTrigger==="click"?tp(o.value,"pointer"):void 0],style:s.value}),{ref:"triggerRef",onClick:d.value,onMouseenter:e.expandTrigger==="click"?c:void 0}),t);function h(y){if(!y)return;const v=s.value,p=ep(o.value);e.lineClamp!==void 0?b(y,p,"add"):b(y,p,"remove");for(const w in v)y.style[w]!==v[w]&&(y.style[w]=v[w])}function g(y,v){const p=tp(o.value,"pointer");e.expandTrigger==="click"&&!v?b(y,p,"add"):b(y,p,"remove")}function b(y,v,p){p==="add"?y.classList.contains(v)||y.classList.add(v):y.classList.contains(v)&&y.classList.remove(v)}return{mergedTheme:n,triggerRef:i,tooltipRef:a,handleClick:d,renderTrigger:u,getTooltipDisabled:c}},render(){var e;const{tooltip:t,renderTrigger:r,$slots:o}=this;if(t){const{mergedTheme:n}=this;return f(Qh,Object.assign({ref:"tooltipRef",placement:"top"},t,{getDisabled:this.getTooltipDisabled,theme:n.peers.Tooltip,themeOverrides:n.peerOverrides.Tooltip}),{trigger:r,default:(e=o.tooltip)!==null&&e!==void 0?e:o.default})}else return r()}}),Bk=q({name:"DataTableRenderSorter",props:{render:{type:Function,required:!0},order:{type:[String,Boolean],default:!1}},render(){const{render:e,order:t}=this;return e({order:t})}});const Rr=Symbol("dataTable");var Lk=q({name:"SortIcon",props:{column:{type:Object,required:!0}},setup(e){const{NConfigProvider:t}=Ee(),{mergedSortStateRef:r,mergedClsPrefixRef:o}=Pe(Rr),n=R(()=>r.value.find(s=>s.columnKey===e.column.key)),i=R(()=>n.value!==void 0),a=R(()=>{const{value:s}=n;return s&&i.value?s.order:!1}),l=R(()=>{var s,c;return((c=(s=t==null?void 0:t.mergedComponentPropsRef.value)===null||s===void 0?void 0:s.DataTable)===null||c===void 0?void 0:c.renderSorter)||e.column.renderSorter});return{mergedClsPrefix:o,active:i,mergedSortOrder:a,mergedRenderSorter:l}},render(){const{mergedRenderSorter:e,mergedSortOrder:t,mergedClsPrefix:r}=this;return e?f(Bk,{render:e,order:t}):f("span",{class:[`${r}-data-table-sorter`,{[`${r}-data-table-sorter--asc`]:t==="ascend",[`${r}-data-table-sorter--desc`]:t==="descend"}]},f(Be,{clsPrefix:r},{default:()=>f(A2,null)}))}}),Dk=q({name:"DataTableRenderFilter",props:{render:{type:Function,required:!0},active:{type:Boolean,default:!1},show:{type:Boolean,default:!1}},render(){const{render:e,active:t,show:r}=this;return e({active:t,show:r})}});const Nk={name:String,value:{type:[String,Number],default:"on"},checked:{type:Boolean,default:void 0},defaultChecked:Boolean,disabled:{type:Boolean,default:void 0},size:String,"onUpdate:checked":[Function,Array],checkedValue:{type:Boolean,validator:()=>(qt("radio","`checked-value` is deprecated, please use `checked` instead."),!0),default:void 0}},op=Symbol("radioGroup");function Ds(e){const t=xr(e,{mergedSize(x){const{size:C}=e;if(C!==void 0)return C;if(a){const{mergedSizeRef:{value:S}}=a;if(S!==void 0)return S}return x?x.mergedSize.value:"medium"},mergedDisabled(x){return!!(e.disabled||(a==null?void 0:a.disabledRef.value)||(x==null?void 0:x.disabled.value))}}),{mergedSizeRef:r,mergedDisabledRef:o}=t,n=W(null),i=W(null),a=Pe(op,null),l=W(e.defaultChecked),s=ke(e,"checked"),c=gt(s,l),d=Ve(()=>a?a.valueRef.value===e.value:c.value),u=Ve(()=>{const{name:x}=e;if(x!==void 0)return x;if(a)return a.nameRef.value}),h=W(!1);function g(){if(a){const{doUpdateValue:x}=a,{value:C}=e;ue(x,C)}else{const{"onUpdate:checked":x}=e,{nTriggerFormInput:C,nTriggerFormChange:S}=t;x&&ue(x,!0),C(),S(),l.value=!0}}function b(){o.value||d.value||g()}function y(){b()}function v(){h.value=!1}function p(){h.value=!0}function w(x){var C;switch(x.code){case"Enter":case"NumpadEnter":(C=n.value)===null||C===void 0||C.click()}}function P(){o.value||setTimeout(()=>{var x,C;((x=i.value)===null||x===void 0?void 0:x.contains(document.activeElement))||(C=n.value)===null||C===void 0||C.focus()},0)}function m(){var x;(x=n.value)===null||x===void 0||x.click()}return{mergedClsPrefix:a?a.mergedClsPrefixRef:Ee(e).mergedClsPrefixRef,inputRef:n,labelRef:i,mergedName:u,mergedDisabled:o,uncontrolledChecked:l,renderSafeChecked:d,focus:h,mergedSize:r,handleRadioInputChange:y,handleRadioInputBlur:v,handleRadioInputFocus:p,handleKeyUp:w,handleMouseDown:P,handleClick:m}}Ds.props=Nk;var jk=k("radio",` + line-height: 1; + outline: none; + position: relative; + user-select: none; + display: inline-flex; + vertical-align: middle; + align-items: center; + font-size: var(--font-size); +`,[O("dot",` + height: var(--radio-size); + width: var(--radio-size); + `),O("radio-input",` + border: 0; + width: 0; + height: 0; + opacity: 0; + margin: 0; + `),O("dot",` + background: var(--color); + box-shadow: var(--box-shadow); + transition: + background-color .3s var(--bezier), + box-shadow .3s var(--bezier); + position: relative; + border-radius: 50%; + `,[E("&::before",` + content: ""; + opacity: 0; + position: absolute; + left: 4px; + top: 4px; + height: calc(100% - 8px); + width: calc(100% - 8px); + border-radius: 50%; + transform: scale(.8); + background: var(--dot-color-active); + transition: + opacity .3s var(--bezier), + background-color .3s var(--bezier), + transform .3s var(--bezier); + `),j("checked",{boxShadow:"var(--box-shadow-active)"},[E("&::before",` + opacity: 1; + transform: scale(1); + `)])]),O("label",` + color: var(--text-color); + padding: var(--label-padding); + display: inline-block; + white-space: nowrap; + transition: color .3s var(--bezier); + `),qe("disabled",` + cursor: pointer; + `,[E("&:hover",[O("dot",{boxShadow:"var(--box-shadow-hover)"})]),j("focus",[E("&:not(:active)",[O("dot",{boxShadow:"var(--box-shadow-focus)"})])])]),j("disabled",` + cursor: not-allowed; + `,[O("dot",{boxShadow:"var(--box-shadow-disabled)",backgroundColor:"var(--color-disabled)"},[E("&::before",{backgroundColor:"var(--dot-color-disabled)"}),j("checked",` + transform: scale(1); + opacity: 1; + `)]),O("label",{color:"var(--text-color-disabled)"})])]),Hk=q({name:"Radio",props:Object.assign(Object.assign({},ye.props),Ds.props),setup(e){const t=Ds(e),r=ye("Radio","Radio",jk,Ls,e,t.mergedClsPrefix);return Object.assign(t,{cssVars:R(()=>{const{mergedSize:{value:o}}=t,{common:{cubicBezierEaseInOut:n},self:{boxShadow:i,boxShadowActive:a,boxShadowDisabled:l,boxShadowFocus:s,boxShadowHover:c,color:d,colorDisabled:u,textColor:h,textColorDisabled:g,dotColorActive:b,dotColorDisabled:y,labelPadding:v,[ce("fontSize",o)]:p,[ce("radioSize",o)]:w}}=r.value;return{"--bezier":n,"--box-shadow":i,"--box-shadow-active":a,"--box-shadow-disabled":l,"--box-shadow-focus":s,"--box-shadow-hover":c,"--color":d,"--color-disabled":u,"--dot-color-active":b,"--dot-color-disabled":y,"--font-size":p,"--radio-size":w,"--text-color":h,"--text-color-disabled":g,"--label-padding":v}})})},render(){const{$slots:e,mergedClsPrefix:t}=this;return f("div",{class:[`${t}-radio`,{[`${t}-radio--disabled`]:this.mergedDisabled,[`${t}-radio--checked`]:this.renderSafeChecked,[`${t}-radio--focus`]:this.focus}],style:this.cssVars,onKeyup:this.handleKeyUp,onClick:this.handleClick,onMousedown:this.handleMouseDown},f("input",{ref:"inputRef",type:"radio",class:`${t}-radio__radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur}),f("div",{class:[`${t}-radio__dot`,this.renderSafeChecked&&`${t}-radio__dot--checked`]}),e.default?f("div",{ref:"labelRef",class:`${t}-radio__label`},e.default()):null)}}),Wk=k("radio-group",` + display: inline-block; + font-size: var(--font-size); +`,[O("splitor",` + display: inline-block; + vertical-align: bottom; + width: 1px; + transition: + background-color .3s var(--bezier), + opacity .3s var(--bezier); + background: var(--button-border-color); + `,[j("checked",{backgroundColor:"var(--button-border-color-active)"}),j("disabled",{opacity:"var(--opacity-disabled)"})]),j("button-group",` + white-space: nowrap; + height: var(--height); + line-height: var(--height); + `,[k("radio-button",{height:"var(--height)",lineHeight:"var(--height)"}),O("splitor",{height:"var(--height)"})]),k("radio-button",` + vertical-align: bottom; + outline: none; + position: relative; + user-select: none; + display: inline-block; + box-sizing: border-box; + padding-left: 14px; + padding-right: 14px; + white-space: nowrap; + transition: + background-color .3s var(--bezier), + opacity .3s var(--bezier), + border-color .3s var(--bezier), + color .3s var(--bezier); + color: var(--button-text-color); + border-top: 1px solid var(--button-border-color); + border-bottom: 1px solid var(--button-border-color); + `,[O("radio-input",` + border: 0; + width: 0; + height: 0; + opacity: 0; + margin: 0; + `),O("state-border",` + pointer-events: none; + position: absolute; + box-shadow: var(--button-box-shadow); + transition: box-shadow .3s var(--bezier); + left: -1px; + bottom: -1px; + right: -1px; + top: -1px; + `),E("&:first-child",` + border-top-left-radius: var(--button-border-radius); + border-bottom-left-radius: var(--button-border-radius); + border-left: 1px solid var(--button-border-color); + `,[O("state-border",` + border-top-left-radius: var(--button-border-radius); + border-bottom-left-radius: var(--button-border-radius); + `)]),E("&:last-child",` + border-top-right-radius: var(--button-border-radius); + border-bottom-right-radius: var(--button-border-radius); + border-right: 1px solid var(--button-border-color); + `,[O("state-border",` + border-top-right-radius: var(--button-border-radius); + border-bottom-right-radius: var(--button-border-radius); + `)]),qe("disabled",` + cursor: pointer; + `,[E("&:hover",[O("state-border",` + transition: box-shadow .3s var(--bezier); + box-shadow: var(--button-box-shadow-hover); + `),qe("checked",{color:"var(--button-text-color-hover)"})]),j("focus",[E("&:not(:active)",[O("state-border",{boxShadow:"var(--button-box-shadow-focus)"})])])]),j("checked",` + background: var(--button-color-active); + color: var(--button-text-color-active); + border-color: var(--button-border-color-active); + `),j("disabled",` + cursor: not-allowed; + opacity: var(--opacity-disabled); + `)])]);function Uk(e,t,r){var o;const n=[];let i=!1;for(let a=0;a{const{value:v}=r,{common:{cubicBezierEaseInOut:p},self:{buttonBorderColor:w,buttonBorderColorActive:P,buttonBorderRadius:m,buttonBoxShadow:x,buttonBoxShadowFocus:C,buttonBoxShadowHover:S,buttonColorActive:T,buttonTextColor:$,buttonTextColorActive:M,buttonTextColorHover:D,opacityDisabled:_,[ce("buttonHeight",v)]:I,[ce("fontSize",v)]:G}}=c.value;return{"--font-size":G,"--bezier":p,"--button-border-color":w,"--button-border-color-active":P,"--button-border-radius":m,"--button-box-shadow":x,"--button-box-shadow-focus":C,"--button-box-shadow-hover":S,"--button-color-active":T,"--button-text-color":$,"--button-text-color-hover":D,"--button-text-color-active":M,"--height":I,"--opacity-disabled":_}})}},render(){const{mergedValue:e,mergedClsPrefix:t,handleFocusin:r,handleFocusout:o}=this,{children:n,isButtonGroup:i}=Uk(ti(Af(this)),e,t);return f("div",{onFocusin:r,onFocusout:o,ref:"selfElRef",class:[`${t}-radio-group`,i&&`${t}-radio-group--button-group`],style:this.cssVars},n)}});const qk=40,Gk=40;function Ns(e){if(e.type==="selection")return qk;if(e.type==="expand")return Gk;if(!("children"in e))return e.width}function So(e){return e.type==="selection"?"__n_selection__":e.type==="expand"?"__n_expand__":e.key}function np(e){return e&&(typeof e=="object"?Object.assign({},e):e)}function Yk(e){return e==="ascend"?1:e==="descend"?-1:0}function Xk(e){const t=Et(Ns(e));return{width:t,minWidth:t}}function Zk(e,t,r){return typeof r=="function"?r(e,t):r||""}function js(e){return e.filterOptionValues!==void 0||e.filterOptionValue===void 0&&e.defaultFilterOptionValues!==void 0}function Hs(e){return"children"in e?!1:!!e.sorter}function ip(e){return"children"in e?!1:!!e.filter&&(!!e.filterOptions||!!e.renderFilterMenu)}function ap(e){if(e){if(e==="descend")return"ascend"}else return"descend";return!1}function Jk(e,t){return e.sorter===void 0?null:t===null||t.columnKey!==e.key?{columnKey:e.key,sorter:e.sorter,order:ap(!1)}:Object.assign(Object.assign({},t),{order:ap(t.order)})}function lp(e,t){return t.find(r=>r.columnKey===e.key&&r.order)!==void 0}var Qk=q({name:"DataTableFilterMenu",props:{column:{type:Object,required:!0},radioGroupName:{type:String,required:!0},multiple:{type:Boolean,required:!0},value:{type:[Array,String,Number],default:null},options:{type:Array,required:!0},onConfirm:{type:Function,required:!0},onClear:{type:Function,required:!0},onChange:{type:Function,required:!0}},setup(e){const{mergedClsPrefixRef:t,mergedThemeRef:r,localeRef:o}=Pe(Rr),n=W(e.value),i=R(()=>{const{value:u}=n;return Array.isArray(u)?u:null}),a=R(()=>{const{value:u}=n;return js(e.column)?Array.isArray(u)&&u.length&&u[0]||null:Array.isArray(u)?null:u});function l(u){e.onChange(u)}function s(u){e.multiple&&Array.isArray(u)?n.value=u:js(e.column)&&!Array.isArray(u)?n.value=[u]:n.value=u}function c(){l(n.value),e.onConfirm()}function d(){e.multiple||js(e.column)?l([]):l(null),e.onClear()}return{mergedClsPrefix:t,mergedTheme:r,locale:o,checkboxGroupValue:i,radioGroupValue:a,handleChange:s,handleConfirmClick:c,handleClearClick:d}},render(){const{mergedTheme:e,locale:t,mergedClsPrefix:r}=this;return f("div",{class:`${r}-data-table-filter-menu`},f($r,null,{default:()=>{const{checkboxGroupValue:o,handleChange:n}=this;return this.multiple?f(G4,{value:o,class:`${r}-data-table-filter-menu__group`,onUpdateValue:n},{default:()=>this.options.map(i=>f(Fs,{key:i.value,theme:e.peers.Checkbox,themeOverrides:e.peerOverrides.Checkbox,value:i.value},{default:()=>i.label}))}):f(Kk,{name:this.radioGroupName,class:`${r}-data-table-filter-menu__group`,value:this.radioGroupValue,onUpdateValue:this.handleChange},{default:()=>this.options.map(i=>f(Hk,{key:i.value,value:i.value,theme:e.peers.Radio,themeOverrides:e.peerOverrides.Radio},{default:()=>i.label}))})}}),f("div",{class:`${r}-data-table-filter-menu__action`},f(ur,{size:"tiny",theme:e.peers.Button,themeOverrides:e.peerOverrides.Button,onClick:this.handleClearClick},{default:()=>t.clear}),f(ur,{theme:e.peers.Button,themeOverrides:e.peerOverrides.Button,type:"primary",size:"tiny",onClick:this.handleConfirmClick},{default:()=>t.confirm})))}});function eP(e,t,r){const o=Object.assign({},e);return o[t]=r,o}var tP=q({name:"DataTableFilterButton",props:{column:{type:Object,required:!0},options:{type:Array,default:()=>[]}},setup(e){const{NConfigProvider:t}=Ee(),{mergedThemeRef:r,mergedClsPrefixRef:o,mergedFilterStateRef:n,filterMenuCssVarsRef:i,doUpdateFilters:a}=Pe(Rr),l=W(!1),s=n,c=R(()=>e.column.filterMultiple!==!1),d=R(()=>{const v=s.value[e.column.key];if(v===void 0){const{value:p}=c;return p?[]:null}return v}),u=R(()=>{const{value:v}=d;return Array.isArray(v)?v.length>0:v!==null}),h=R(()=>{var v,p;return((p=(v=t==null?void 0:t.mergedComponentPropsRef.value)===null||v===void 0?void 0:v.DataTable)===null||p===void 0?void 0:p.renderFilter)||e.column.renderFilter});function g(v){const p=eP(s.value,e.column.key,v);a(p,e.column)}function b(){l.value=!1}function y(){l.value=!1}return{mergedTheme:r,mergedClsPrefix:o,active:u,showPopover:l,mergedRenderFilter:h,filterMultiple:c,mergedFilterValue:d,filterMenuCssVars:i,handleFilterChange:g,handleFilterMenuConfirm:y,handleFilterMenuCancel:b}},render(){const{mergedTheme:e,mergedClsPrefix:t,handleFilterMenuCancel:r}=this;return f(an,{show:this.showPopover,onUpdateShow:o=>this.showPopover=o,trigger:"click",theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,placement:"bottom",style:{padding:0}},{trigger:()=>{const{mergedRenderFilter:o}=this;if(o)return f(Dk,{"data-data-table-filter":!0,render:o,active:this.active,show:this.showPopover});const{renderFilterIcon:n}=this.column;return f("div",{"data-data-table-filter":!0,class:[`${t}-data-table-filter`,{[`${t}-data-table-filter--active`]:this.active,[`${t}-data-table-filter--show`]:this.showPopover}]},n?n({active:this.active,show:this.showPopover}):f(Be,{clsPrefix:t},{default:()=>f(K2,null)}))},default:()=>{const{renderFilterMenu:o}=this.column;return o?o({hide:r}):f(Qk,{style:this.filterMenuCssVars,radioGroupName:String(this.column.key),multiple:this.filterMultiple,value:this.mergedFilterValue,options:this.options,column:this.column,onChange:this.handleFilterChange,onClear:this.handleFilterMenuCancel,onConfirm:this.handleFilterMenuConfirm})}})}}),rP={padding:"4px 0",optionIconSizeSmall:"14px",optionIconSizeMedium:"16px",optionIconSizeLarge:"16px",optionIconSizeHuge:"18px",optionSuffixWidthSmall:"14px",optionSuffixWidthMedium:"14px",optionSuffixWidthLarge:"16px",optionSuffixWidthHuge:"16px",optionIconSuffixWidthSmall:"32px",optionIconSuffixWidthMedium:"32px",optionIconSuffixWidthLarge:"36px",optionIconSuffixWidthHuge:"36px",optionPrefixWidthSmall:"14px",optionPrefixWidthMedium:"14px",optionPrefixWidthLarge:"16px",optionPrefixWidthHuge:"16px",optionIconPrefixWidthSmall:"36px",optionIconPrefixWidthMedium:"36px",optionIconPrefixWidthLarge:"40px",optionIconPrefixWidthHuge:"40px"};const oP=e=>{const{primaryColor:t,textColor2:r,dividerColor:o,hoverColor:n,popoverColor:i,invertedColor:a,borderRadius:l,fontSizeSmall:s,fontSizeMedium:c,fontSizeLarge:d,fontSizeHuge:u,heightSmall:h,heightMedium:g,heightLarge:b,heightHuge:y,textColor3:v,opacityDisabled:p}=e;return Object.assign(Object.assign({},rP),{optionHeightSmall:h,optionHeightMedium:g,optionHeightLarge:b,optionHeightHuge:y,borderRadius:l,fontSizeSmall:s,fontSizeMedium:c,fontSizeLarge:d,fontSizeHuge:u,optionTextColor:r,optionTextColorHover:r,optionTextColorActive:t,optionTextColorChildActive:t,color:i,dividerColor:o,suffixColor:r,prefixColor:r,optionColorHover:n,optionColorActive:ze(t,{alpha:.1}),groupHeaderTextColor:v,optionTextColorInverted:"#BBB",optionTextColorHoverInverted:"#FFF",optionTextColorActiveInverted:"#FFF",optionTextColorChildActiveInverted:"#FFF",colorInverted:a,dividerColorInverted:"#BBB",suffixColorInverted:"#BBB",prefixColorInverted:"#BBB",optionColorHoverInverted:t,optionColorActiveInverted:t,groupHeaderTextColorInverted:"#AAA",optionOpacityDisabled:p})},nP=St({name:"Dropdown",common:De,peers:{Popover:nn},self:oP});var iP=nP;const aP=e=>{const{textColorBase:t,opacity1:r,opacity2:o,opacity3:n,opacity4:i,opacity5:a}=e;return{color:t,opacity1Depth:r,opacity2Depth:o,opacity3Depth:n,opacity4Depth:i,opacity5Depth:a}},lP={name:"Icon",common:De,self:aP};var sP=lP,cP=k("icon",` + height: 1em; + width: 1em; + line-height: 1em; + text-align: center; + display: inline-block; + position: relative; + fill: currentColor; + transform: translateZ(0); +`,[j("color-transition",{transition:"color .3s var(--bezier)"}),j("depth",{color:"var(--color)"},[E("svg",{opacity:"var(--opacity)",transition:"opacity .3s var(--bezier)"})]),E("svg",{height:"1em",width:"1em"})]),dP=q({_n_icon__:!0,name:"Icon",inheritAttrs:!1,props:Object.assign(Object.assign({},ye.props),{depth:[String,Number],size:[Number,String],color:String}),setup(e){const{mergedClsPrefixRef:t}=Ee(e),r=ye("Icon","Icon",cP,sP,e,t);return{mergedClsPrefix:t,mergedStyle:R(()=>{const{size:o,color:n}=e;return{fontSize:Qe(o),color:n}}),cssVars:R(()=>{const{depth:o}=e,{common:{cubicBezierEaseInOut:n},self:i}=r.value;if(o!==void 0){const{color:a,[`opacity${o}Depth`]:l}=i;return{"--bezier":n,"--color":a,"--opacity":l}}return{"--bezier":n}})}},render(){var e;const{$parent:t,depth:r,mergedClsPrefix:o}=this;return((e=t==null?void 0:t.$options)===null||e===void 0?void 0:e._n_icon__)&&qt("icon","don't wrap `n-icon` inside `n-icon`"),f("i",Zt(this.$attrs,{role:"img",class:[`${o}-icon`,{[`${o}-icon--depth`]:r,[`${o}-icon--color-transition`]:r!==void 0}],style:Object.assign(this.cssVars,this.mergedStyle)}),this.$slots)}});function Ws(e,t){return e.type==="submenu"||e.type===void 0&&e[t]!==void 0}function uP(e){return e.type==="group"}function sp(e){return e.type==="divider"}function fP(e){return e.type==="render"}const cp=Symbol("dropdown-option");var dp=q({name:"DropdownOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null},placement:{type:String,default:"right-start"},props:Object},setup(e){const t=Pe(ya),{hoverKeyRef:r,keyboardKeyRef:o,lastToggledSubmenuKeyRef:n,pendingKeyPathRef:i,activeKeyPathRef:a,animatedRef:l,mergedShowRef:s,renderLabelRef:c,renderIconRef:d,labelFieldRef:u,childrenFieldRef:h}=t,g=Pe(cp,null),b=Pe(Us),y=R(()=>e.tmNode.rawNode),v=R(()=>{const{value:I}=h;return Ws(e.tmNode.rawNode,I)}),p=R(()=>{const{disabled:I}=e.tmNode;return I}),w=R(()=>{if(!v.value)return!1;const{key:I,disabled:G}=e.tmNode;if(G)return!1;const{value:U}=r,{value:N}=o,{value:F}=n,{value:A}=i;return U!==null?A.includes(I):N!==null?A.includes(I)&&A[A.length-1]!==I:F!==null?A.includes(I):!1}),P=R(()=>o.value===null&&!l.value),m=cC(w,300,P),x=R(()=>!!(g==null?void 0:g.enteringSubmenuRef.value)),C=W(!1);Ie(cp,{enteringSubmenuRef:C});function S(){C.value=!0}function T(){C.value=!1}function $(){const{parentKey:I,tmNode:G}=e;!s.value||(n.value=I,o.value=null,r.value=G.key)}function M(){const{tmNode:I}=e;!s.value||r.value!==I.key&&$()}function D(I){if(!s.value)return;const{relatedTarget:G}=I;G&&!G.hasAttribute("__dropdown-option")&&(r.value=null)}function _(){const{value:I}=v,{tmNode:G}=e;!s.value||!I&&!G.disabled&&(t.doSelect(G.key,G.rawNode),t.doUpdateShow(!1))}return{labelField:u,renderLabel:c,renderIcon:d,siblingHasIcon:b.showIconRef,siblingHasSubmenu:b.hasSubmenuRef,animated:l,mergedShowSubmenu:R(()=>m.value&&!x.value),rawNode:y,hasSubmenu:v,pending:Ve(()=>{const{value:I}=i,{key:G}=e.tmNode;return I.includes(G)}),childActive:Ve(()=>{const{value:I}=a,{key:G}=e.tmNode,U=I.findIndex(N=>G===N);return U===-1?!1:U{const{value:I}=a,{key:G}=e.tmNode,U=I.findIndex(N=>G===N);return U===-1?!1:U===I.length-1}),mergedDisabled:p,handleClick:_,handleMouseMove:M,handleMouseEnter:$,handleMouseLeave:D,handleSubmenuBeforeEnter:S,handleSubmenuAfterEnter:T}},render(){var e;const{animated:t,rawNode:r,mergedShowSubmenu:o,clsPrefix:n,siblingHasIcon:i,siblingHasSubmenu:a,renderLabel:l,renderIcon:s,props:c}=this,d=o?f(fp,{clsPrefix:n,tmNodes:this.tmNode.children,parentKey:this.tmNode.key}):null,u={class:[`${n}-dropdown-option-body`,this.pending&&`${n}-dropdown-option-body--pending`,this.active&&`${n}-dropdown-option-body--active`,this.childActive&&`${n}-dropdown-option-body--child-active`,this.mergedDisabled&&`${n}-dropdown-option-body--disabled`],onMousemove:this.handleMouseMove,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onClick:this.handleClick};return f("div",{class:`${n}-dropdown-option`},f("div",Zt(u,c),[f("div",{"__dropdown-option":!0,class:[`${n}-dropdown-option-body__prefix`,i&&`${n}-dropdown-option-body__prefix--show-icon`]},[s?s(r):Ke(r.icon)]),f("div",{"__dropdown-option":!0,class:`${n}-dropdown-option-body__label`},l?l(r):Ke((e=r[this.labelField])!==null&&e!==void 0?e:r.title)),f("div",{"__dropdown-option":!0,class:[`${n}-dropdown-option-body__suffix`,a&&`${n}-dropdown-option-body__suffix--has-submenu`]},this.hasSubmenu?f(dP,null,{default:()=>f(ca,null)}):null)]),this.hasSubmenu?f(bs,null,{default:()=>[f(xs,null,{default:()=>f("div",{class:`${n}-dropdown-offset-container`},f($s,{show:this.mergedShowSubmenu,placement:this.placement,teleportDisabled:!0},{default:()=>f("div",{class:`${n}-dropdown-menu-wrapper`},t?f(ht,{onBeforeEnter:this.handleSubmenuBeforeEnter,onAfterEnter:this.handleSubmenuAfterEnter,name:"fade-in-scale-up-transition",appear:!0},{default:()=>d}):d)}))})]}):null)}}),up=q({name:"DropdownDivider",props:{clsPrefix:{type:String,required:!0}},render(){return f("div",{class:`${this.clsPrefix}-dropdown-divider`})}}),hP=q({name:"DropdownGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{showIconRef:e,hasSubmenuRef:t}=Pe(Us),{renderLabelRef:r,labelFieldRef:o}=Pe(ya);return{labelField:o,showIcon:e,hasSubmenu:t,renderLabel:r}},render(){var e;const{clsPrefix:t,hasSubmenu:r,showIcon:o,renderLabel:n}=this,{rawNode:i}=this.tmNode;return f("div",{class:`${t}-dropdown-option`},f("div",{class:`${t}-dropdown-option-body ${t}-dropdown-option-body--group`},f("div",{"__dropdown-option":!0,class:[`${t}-dropdown-option-body__prefix`,o&&`${t}-dropdown-option-body__prefix--show-icon`]},Ke(i.icon)),f("div",{class:`${t}-dropdown-option-body__label`,"__dropdown-option":!0},n?n(i):Ke((e=i.title)!==null&&e!==void 0?e:i[this.labelField])),f("div",{class:[`${t}-dropdown-option-body__suffix`,r&&`${t}-dropdown-option-body__suffix--has-submenu`],"__dropdown-option":!0})))}}),pP=q({name:"NDropdownGroup",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null}},render(){const{tmNode:e,parentKey:t,clsPrefix:r}=this,{children:o}=e;return f(nt,null,f(hP,{clsPrefix:r,tmNode:e,key:e.key}),o==null?void 0:o.map(n=>sp(n.rawNode)?f(up,{clsPrefix:r,key:n.key}):n.isGroup?(qt("dropdown","`group` node is not allowed to be put in `group` node."),null):f(dp,{clsPrefix:r,tmNode:n,parentKey:t,key:n.key})))}}),gP=q({name:"DropdownRenderOption",props:{tmNode:{type:Object,required:!0}},render(){const{rawNode:{render:e,props:t}}=this.tmNode;return f("div",t,[e==null?void 0:e()])}});const Us=Symbol("dropdownMenu");var fp=q({name:"DropdownMenu",props:{showArrow:Boolean,arrowStyle:[String,Object],clsPrefix:{type:String,required:!0},tmNodes:{type:Array,default:()=>[]},parentKey:{type:[String,Number],default:null}},setup(e){const{renderIconRef:t,childrenFieldRef:r}=Pe(ya);Ie(Us,{showIconRef:R(()=>{const o=t.value;return e.tmNodes.some(n=>{var i;if(n.isGroup)return(i=n.children)===null||i===void 0?void 0:i.some(({rawNode:l})=>o?o(l):l.icon);const{rawNode:a}=n;return o?o(a):a.icon})}),hasSubmenuRef:R(()=>{const{value:o}=r;return e.tmNodes.some(n=>{var i;if(n.isGroup)return(i=n.children)===null||i===void 0?void 0:i.some(({rawNode:l})=>Ws(l,o));const{rawNode:a}=n;return Ws(a,o)})})})},render(){const{parentKey:e,clsPrefix:t}=this;return f("div",{class:`${t}-dropdown-menu`},this.tmNodes.map(r=>fP(r.rawNode)?f(gP,{tmNode:r,key:r.key}):sp(r.rawNode)?f(up,{clsPrefix:t,key:r.key}):uP(r.rawNode)?f(pP,{clsPrefix:t,tmNode:r,parentKey:e,key:r.key}):f(dp,{clsPrefix:t,tmNode:r,parentKey:e,key:r.key,props:r.rawNode.props})),this.showArrow?Sh({clsPrefix:t,arrowStyle:this.arrowStyle}):null)}}),vP=k("dropdown-menu",` + transform-origin: inherit; + padding: var(--padding); + background-color: var(--color); + border-radius: var(--border-radius); + box-shadow: var(--box-shadow); + transition: + background-color .3s var(--bezier), + box-shadow .3s var(--bezier); +`,[jr(),k("dropdown-option",` + position: relative; + `,[E("a",` + text-decoration: none; + color: inherit; + `,[E("&::before",` + content: ""; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `)]),k("dropdown-option-body",` + display: flex; + cursor: pointer; + height: var(--option-height); + line-height: var(--option-height); + font-size: var(--font-size); + color: var(--option-text-color); + transition: + background-color .3s var(--bezier), + color .3s var(--bezier); + `,[j("pending",[qe("disabled",{color:"var(--option-text-color-hover)",backgroundColor:"var(--option-color-hover)"}),O("prefix, suffix",{color:"var(--option-text-color-hover)"})]),j("active",[qe("disabled",{color:"var(--option-text-color-active)",backgroundColor:"var(--option-color-active)"}),O("prefix, suffix",{color:"var(--option-text-color-active)"})]),j("disabled",{cursor:"not-allowed",opacity:"var(--option-opacity-disabled)"}),j("child-active",{color:"var(--option-text-color-child-active)"},[O("prefix, suffix",{color:"var(--option-text-color-child-active)"})]),j("group",{fontSize:"calc(var(--font-size) - 1px)",color:"var(--group-header-text-color)"},[O("prefix",{width:"calc(var(--option-prefix-width) / 2)"},[j("show-icon",{width:"calc(var(--option-icon-prefix-width) / 2)"})])]),O("prefix",` + width: var(--option-prefix-width); + display: flex; + justify-content: center; + align-items: center; + color: var(--prefix-color); + transition: color .3s var(--bezier); + `,[j("show-icon",{width:"var(--option-icon-prefix-width)"}),k("icon",{fontSize:"var(--option-icon-size)"})]),O("label",{whiteSpace:"nowrap",flex:1}),O("suffix",` + box-sizing: border-box; + flex-grow: 0; + flex-shrink: 0; + display: flex; + justify-content: flex-end; + align-items: center; + min-width: var(--option-suffix-width); + padding: 0 8px; + transition: color .3s var(--bezier); + color: var(--suffix-color); + `,[j("has-submenu",{width:"var(--option-icon-suffix-width)"}),k("icon",{fontSize:"var(--option-icon-size)"})]),k("dropdown-menu",{pointerEvents:"all"})]),k("dropdown-offset-container",` + pointer-events: none; + position: absolute; + left: 0; + right: 0; + top: -4px; + bottom: -4px; + `)]),k("dropdown-divider",` + transition: background-color .3s var(--bezier); + background-color: var(--divider-color); + height: 1px; + margin: 4px 0; + `),k("dropdown-menu-wrapper",` + transform-origin: inherit; + width: fit-content; + `)]);const ya=Symbol("dropdown"),mP={animated:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},size:{type:String,default:"medium"},inverted:Boolean,placement:{type:String,default:"bottom"},onSelect:[Function,Array],options:{type:Array,default:()=>[]},showArrow:Boolean,renderLabel:Function,renderIcon:Function,labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},value:[String,Number]},bP=Object.keys(ii),xP=Object.assign(Object.assign(Object.assign({},ii),mP),ye.props);var hp=q({name:"Dropdown",inheritAttrs:!1,props:xP,setup(e){const t=W(!1),r=gt(ke(e,"show"),t),o=R(()=>{const{keyField:$,childrenField:M}=e;return ua(e.options,{getKey(D){return D[$]},getDisabled(D){return D.disabled===!0},getIgnored(D){return D.type==="divider"||D.type==="render"},getChildren(D){return D[M]}})}),n=R(()=>o.value.treeNodes),i=W(null),a=W(null),l=W(null),s=R(()=>{var $,M,D;return(D=(M=($=i.value)!==null&&$!==void 0?$:a.value)!==null&&M!==void 0?M:l.value)!==null&&D!==void 0?D:null}),c=R(()=>o.value.getPath(s.value).keyPath),d=R(()=>o.value.getPath(e.value).keyPath),u=Ve(()=>e.keyboard&&r.value);rC({keydown:{ArrowUp:{prevent:!0,handler:m},ArrowRight:{prevent:!0,handler:P},ArrowDown:{prevent:!0,handler:x},ArrowLeft:{prevent:!0,handler:w},Escape:p},keyup:{Enter:C}},u);const{mergedClsPrefixRef:h}=Ee(e),g=ye("Dropdown","Dropdown",vP,iP,e,h);Ie(ya,{labelFieldRef:ke(e,"labelField"),childrenFieldRef:ke(e,"childrenField"),renderLabelRef:ke(e,"renderLabel"),renderIconRef:ke(e,"renderIcon"),hoverKeyRef:i,keyboardKeyRef:a,lastToggledSubmenuKeyRef:l,pendingKeyPathRef:c,activeKeyPathRef:d,animatedRef:ke(e,"animated"),mergedShowRef:r,doSelect:b,doUpdateShow:y}),Ue(r,$=>{$||v()});function b($,M){const{onSelect:D}=e;D&&ue(D,$,M)}function y($){const{"onUpdate:show":M}=e;M&&ue(M,$),t.value=$}function v(){i.value=null,a.value=null,l.value=null}function p(){y(!1)}function w(){T("left")}function P(){T("right")}function m(){T("up")}function x(){T("down")}function C(){const $=S();($==null?void 0:$.isLeaf)&&(b($.key,$.rawNode),y(!1))}function S(){var $;const{value:M}=o,{value:D}=s;return!M||D===null?null:($=M.getNode(D))!==null&&$!==void 0?$:null}function T($){const{value:M}=s,{value:{getFirstAvailableNode:D}}=o;let _=null;if(M===null){const I=D();I!==null&&(_=I.key)}else{const I=S();if(I){let G;switch($){case"down":G=I.getNext();break;case"up":G=I.getPrev();break;case"right":G=I.getChild();break;case"left":G=I.getParent();break}G&&(_=G.key)}}_!==null&&(i.value=null,a.value=_)}return{mergedClsPrefix:h,mergedTheme:g,tmNodes:n,mergedShow:r,doUpdateShow:y,cssVars:R(()=>{const{size:$,inverted:M}=e,{common:{cubicBezierEaseInOut:D},self:_}=g.value,{padding:I,dividerColor:G,borderRadius:U,optionOpacityDisabled:N,[ce("optionIconSuffixWidth",$)]:F,[ce("optionSuffixWidth",$)]:A,[ce("optionIconPrefixWidth",$)]:re,[ce("optionPrefixWidth",$)]:be,[ce("fontSize",$)]:Se,[ce("optionHeight",$)]:Te,[ce("optionIconSize",$)]:Oe}=_,Re={"--bezier":D,"--font-size":Se,"--padding":I,"--border-radius":U,"--option-height":Te,"--option-prefix-width":be,"--option-icon-prefix-width":re,"--option-suffix-width":A,"--option-icon-suffix-width":F,"--option-icon-size":Oe,"--divider-color":G,"--option-opacity-disabled":N};return M?(Re["--color"]=_.colorInverted,Re["--option-color-hover"]=_.optionColorHoverInverted,Re["--option-color-active"]=_.optionColorActiveInverted,Re["--option-text-color"]=_.optionTextColorInverted,Re["--option-text-color-hover"]=_.optionTextColorHoverInverted,Re["--option-text-color-active"]=_.optionTextColorActiveInverted,Re["--option-text-color-child-active"]=_.optionTextColorChildActiveInverted,Re["--prefix-color"]=_.prefixColorInverted,Re["--suffix-color"]=_.suffixColorInverted,Re["--group-header-text-color"]=_.groupHeaderTextColorInverted):(Re["--color"]=_.color,Re["--option-color-hover"]=_.optionColorHover,Re["--option-color-active"]=_.optionColorActive,Re["--option-text-color"]=_.optionTextColor,Re["--option-text-color-hover"]=_.optionTextColorHover,Re["--option-text-color-active"]=_.optionTextColorActive,Re["--option-text-color-child-active"]=_.optionTextColorChildActive,Re["--prefix-color"]=_.prefixColor,Re["--suffix-color"]=_.suffixColor,Re["--group-header-text-color"]=_.groupHeaderTextColor),Re})}},render(){const e=(o,n,i,a,l)=>{const{mergedClsPrefix:s}=this,c={ref:iC(n),class:[o,`${s}-dropdown`,this.showArrow&&`${s}-popover--show-arrow`],clsPrefix:s,tmNodes:this.tmNodes,style:[i,this.cssVars],showArrow:this.showArrow,arrowStyle:this.arrowStyle,onMouseenter:a,onMouseleave:l};return f(fp,Zt(this.$attrs,c))},{mergedTheme:t}=this,r={show:this.mergedShow,theme:t.peers.Popover,themeOverrides:t.peerOverrides.Popover,internalRenderBody:e,onUpdateShow:this.doUpdateShow};return f(an,Object.assign({},er(this.$props,bP),r),{trigger:this.$slots.default,_:1})}});const pp="_n_all__",gp="_n_none__";function yP(e,t,r,o){return e?n=>{for(const i of e)switch(n){case pp:r(!0);return;case gp:o(!0);return;default:if(typeof i=="object"&&i.key===n){i.onSelect(t.value);return}}}:()=>{}}function wP(e,t){return e?e.map(r=>{switch(r){case"all":return{label:t.checkTableAll,key:pp};case"none":return{label:t.uncheckTableAll,key:gp};default:return r}}):[]}var CP=q({name:"DataTableSelectionMenu",props:{clsPrefix:{type:String,required:!0}},setup(){const{localeRef:e,checkOptionsRef:t,rawPaginatedDataRef:r,doCheckAll:o,doUncheckAll:n}=Pe(Rr);return{handleSelect:R(()=>yP(t.value,r,o,n)),options:R(()=>wP(t.value,e.value))}},render(){const{clsPrefix:e}=this;return f(hp,{options:this.options,onSelect:this.handleSelect},{default:()=>f(Be,{clsPrefix:e,class:`${e}-data-table-check-extra`},{default:()=>f(qf,null)})})}});function Vs(e){return typeof e.title=="function"?e.title(e):e.title}var vp=q({name:"DataTableHeader",props:{discrete:{type:Boolean,default:!0}},setup(){const{mergedClsPrefixRef:e,scrollXRef:t,fixedColumnLeftMapRef:r,fixedColumnRightMapRef:o,mergedCurrentPageRef:n,allRowsCheckedRef:i,someRowsCheckedRef:a,rowsRef:l,colsRef:s,mergedThemeRef:c,checkOptionsRef:d,mergedSortStateRef:u,componentId:h,scrollPartRef:g,mergedTableLayoutRef:b,headerCheckboxDisabledRef:y,handleTableHeaderScroll:v,deriveNextSorter:p,doUncheckAll:w,doCheckAll:P}=Pe(Rr);function m(){a.value||i.value?w():P()}function x(S,T){if(Yi(S,"dataTableFilter")||!Hs(T))return;const $=u.value.find(D=>D.columnKey===T.key)||null,M=Jk(T,$);p(M)}function C(){g.value="head"}return{componentId:h,mergedSortState:u,mergedClsPrefix:e,scrollX:t,fixedColumnLeftMap:r,fixedColumnRightMap:o,currentPage:n,allRowsChecked:i,someRowsChecked:a,rows:l,cols:s,mergedTheme:c,checkOptions:d,mergedTableLayout:b,headerCheckboxDisabled:y,handleMouseenter:C,handleCheckboxUpdateChecked:m,handleColHeaderClick:x,handleTableHeaderScroll:v}},render(){const{mergedClsPrefix:e,fixedColumnLeftMap:t,fixedColumnRightMap:r,currentPage:o,allRowsChecked:n,someRowsChecked:i,rows:a,cols:l,mergedTheme:s,checkOptions:c,componentId:d,discrete:u,mergedTableLayout:h,headerCheckboxDisabled:g,mergedSortState:b,handleColHeaderClick:y,handleCheckboxUpdateChecked:v}=this,p=f("thead",{class:`${e}-data-table-thead`,"data-n-id":d},a.map(x=>f("tr",{class:`${e}-data-table-tr`},x.map(({column:C,colSpan:S,rowSpan:T,isLast:$})=>{var M,D;const _=So(C),{ellipsis:I}=C,G=_ in t,U=_ in r;return f("th",{key:_,style:{textAlign:C.align,left:Et((M=t[_])===null||M===void 0?void 0:M.start),right:Et((D=r[_])===null||D===void 0?void 0:D.start)},colspan:S,rowspan:T,"data-col-key":_,class:[`${e}-data-table-th`,(G||U)&&`${e}-data-table-th--fixed-${G?"left":"right"}`,{[`${e}-data-table-th--hover`]:lp(C,b),[`${e}-data-table-th--filterable`]:ip(C),[`${e}-data-table-th--sortable`]:Hs(C),[`${e}-data-table-th--selection`]:C.type==="selection",[`${e}-data-table-th--last`]:$},C.className],onClick:C.type!=="selection"&&C.type!=="expand"&&!("children"in C)?N=>{y(N,C)}:void 0},C.type==="selection"?f(nt,null,f(Fs,{key:o,privateTableHeader:!0,checked:n,indeterminate:i,disabled:g,onUpdateChecked:v}),c?f(CP,{clsPrefix:e}):null):I===!0||I&&!I.tooltip?f("div",{class:`${e}-data-table-th__ellipsis`},Vs(C)):I&&I.tooltip?f(rp,{tooltip:I.tooltip,theme:s.peers.Ellipsis,themeOverrides:s.peerOverrides.Ellipsis},{default:()=>Vs(C)}):Vs(C),Hs(C)?f(Lk,{column:C}):null,ip(C)?f(tP,{column:C,options:C.filterOptions}):null)}))));if(!u)return p;const{handleTableHeaderScroll:w,handleMouseenter:P,scrollX:m}=this;return f("div",{class:`${e}-data-table-base-table-header`,onScroll:w,onMouseenter:P},f("table",{ref:"body",class:`${e}-data-table-table`,style:{minWidth:Qe(m),tableLayout:h}},f("colgroup",null,l.map(x=>f("col",{key:x.key,style:x.style}))),p))}}),SP=q({name:"DataTableCell",props:{row:{type:Object,required:!0},index:{type:Number,required:!0},column:{type:Object,required:!0},isSummary:Boolean,mergedTheme:{type:Object,required:!0}},render(){const{isSummary:e,column:{render:t,key:r,ellipsis:o},row:n}=this;let i;t&&!e?i=t(n,this.index):e?i=n[r].value:i=Gl(n,r);const a=typeof o=="object"?o.tooltip:void 0;if(a){const{mergedTheme:l}=this;return f(rp,{tooltip:a,theme:l.peers.Ellipsis,themeOverrides:l.peerOverrides.Ellipsis},{default:()=>i})}return i}}),mp=q({name:"DataTableExpandTrigger",props:{clsPrefix:{type:String,required:!0},expanded:Boolean,onClick:{type:Function,required:!0}},render(){return f(Be,{class:`${this.clsPrefix}-data-table-expand-trigger`,clsPrefix:this.clsPrefix,onClick:this.onClick},{default:()=>f(ca,{style:this.expanded?"transform: rotate(90deg);":void 0})})}}),kP=q({name:"DataTableBodyCheckbox",props:{rowKey:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!0},onUpdateChecked:{type:Function,required:!0}},setup(e){const{mergedCheckedRowKeySetRef:t,mergedInderminateRowKeySetRef:r}=Pe(Rr);return()=>{const{rowKey:o}=e;return f(Fs,{disabled:e.disabled,indeterminate:r.value.has(o),checked:t.value.has(o),onUpdateChecked:e.onUpdateChecked})}}});function PP(e,t){const r=[];function o(n){n.forEach(i=>{i.children&&t.includes(i.key)?(r.push(i),o(i.children)):r.push(i)})}return o(e),r}const $P=q({props:{clsPrefix:{type:String,required:!0},id:{type:String,required:!0},cols:{type:Array,required:!0},onMouseenter:Function,onMouseleave:Function},render(){const{clsPrefix:e,id:t,cols:r,onMouseenter:o,onMouseleave:n}=this;return f("table",{style:{tableLayout:"fixed"},class:`${e}-data-table-table`,onMouseenter:o,onMouseleave:n},f("colgroup",null,r.map(i=>f("col",{key:i.key,style:i.style}))),f("tbody",{"data-n-id":t,class:`${e}-data-table-tbody`},this.$slots))}});var RP=q({name:"DataTableBody",props:{onResize:Function,showHeader:Boolean,flexHeight:Boolean},setup(e){const{mergedExpandedRowKeysRef:t,mergedClsPrefixRef:r,mergedThemeRef:o,scrollXRef:n,colsRef:i,paginatedDataRef:a,rawPaginatedDataRef:l,fixedColumnLeftMapRef:s,fixedColumnRightMapRef:c,mergedCurrentPageRef:d,rowClassNameRef:u,leftActiveFixedColKeyRef:h,rightActiveFixedColKeyRef:g,renderExpandRef:b,hoverKeyRef:y,summaryRef:v,mergedSortStateRef:p,virtualScrollRef:w,componentId:P,scrollPartRef:m,mergedTableLayoutRef:x,hasChildrenRef:C,firstContentfulColIndexRef:S,indentRef:T,rowPropsRef:$,maxHeightRef:M,setHeaderScrollLeft:D,doUpdateExpandedRowKeys:_,handleTableBodyScroll:I,doCheck:G,doUncheck:U}=Pe(Rr),N=W(null),F=W(null);let A="";function re(te,ge,z){if(z){const L=a.value.findIndex(K=>K.key===A);if(L!==-1){const K=a.value.findIndex(ae=>ae.key===te.key),Q=Math.min(L,K),B=Math.max(L,K),Y=[];a.value.slice(Q,B+1).forEach(ae=>{ae.disabled||Y.push(ae.key)}),ge?G(Y):U(Y),A=te.key;return}}ge?G(te.key):U(te.key),A=te.key}function be(){if(w.value)return Re();const{value:te}=N;return te?te.containerRef:null}function Se(te){const{value:ge}=t,z=ge.indexOf(te),L=Array.from(ge);~z?L.splice(z,1):L.push(te),_(L)}function Te(){y.value=null}function Oe(){m.value="body"}function Re(){const{value:te}=F;return te==null?void 0:te.listElRef}function Z(){const{value:te}=F;return te==null?void 0:te.itemsElRef}function fe(te){var ge;I(te),(ge=N.value)===null||ge===void 0||ge.sync()}function ee(te){var ge;const{onResize:z}=e;z&&z(te),(ge=N.value)===null||ge===void 0||ge.sync()}const xe={getScrollContainer:be},ie=E([({props:te})=>E([te.leftActiveFixedColKey===null?null:E(`[data-n-id="${te.componentId}"] [data-col-key="${te.leftActiveFixedColKey}"]::after`,{boxShadow:"var(--box-shadow-after)"}),te.rightActiveFixedColKey===null?null:E(`[data-n-id="${te.componentId}"] [data-col-key="${te.rightActiveFixedColKey}"]::before`,{boxShadow:"var(--box-shadow-before)"})])]);let Ce=!1;return mr(()=>{const{value:te}=h,{value:ge}=g;!Ce&&te===null&&ge===null||(ie.mount({id:`n-${P}`,force:!0,props:{leftActiveFixedColKey:te,rightActiveFixedColKey:ge,componentId:P}}),Ce=!0)}),Ai(()=>{ie.unmount({id:`n-${P}`})}),Object.assign({componentId:P,scrollbarInstRef:N,virtualListRef:F,summary:v,mergedClsPrefix:r,mergedTheme:o,scrollX:n,cols:i,paginatedData:a,rawPaginatedData:l,fixedColumnLeftMap:s,fixedColumnRightMap:c,currentPage:d,rowClassName:u,renderExpand:b,mergedExpandedRowKeys:t,hoverKey:y,mergedSortState:p,virtualScroll:w,mergedTableLayout:x,hasChildren:C,firstContentfulColIndex:S,indent:T,rowProps:$,maxHeight:M,setHeaderScrollLeft:D,handleMouseenterTable:Oe,handleVirtualListScroll:fe,handleVirtualListResize:ee,handleMouseleaveTable:Te,virtualListContainer:Re,virtualListContent:Z,handleTableBodyScroll:I,handleCheckboxUpdateChecked:re,handleUpdateExpanded:Se},xe)},render(){const{mergedTheme:e,scrollX:t,mergedClsPrefix:r,virtualScroll:o,maxHeight:n,mergedTableLayout:i,flexHeight:a,onResize:l,setHeaderScrollLeft:s}=this,c=t!==void 0||n!==void 0||a,d=!c&&i==="auto",u=t!==void 0||d,h={minWidth:Qe(t)||"100%"};return t&&(h.width="100%"),f($r,{ref:"scrollbarInstRef",scrollable:c||d,class:`${r}-data-table-base-table-body`,theme:e.peers.Scrollbar,themeOverrides:e.peerOverrides.Scrollbar,contentStyle:h,container:o?this.virtualListContainer:void 0,content:o?this.virtualListContent:void 0,horizontalRailStyle:{zIndex:3},verticalRailStyle:{zIndex:3},xScrollable:u,onScroll:o?void 0:this.handleTableBodyScroll,internalOnUpdateScrollLeft:s,onResize:l},{default:()=>{const g={},b={},{cols:y,paginatedData:v,mergedTheme:p,fixedColumnLeftMap:w,fixedColumnRightMap:P,currentPage:m,rowClassName:x,mergedSortState:C,mergedExpandedRowKeys:S,componentId:T,showHeader:$,hasChildren:M,firstContentfulColIndex:D,rowProps:_,handleMouseenterTable:I,handleMouseleaveTable:G,renderExpand:U,summary:N,handleCheckboxUpdateChecked:F,handleUpdateExpanded:A}=this,{length:re}=y,be={};v.forEach((fe,ee)=>{be[ee]=fe.key});let Se;const Te=M?PP(v,S):v;if(N){const fe=N(this.rawPaginatedData);Array.isArray(fe)?Se=[...Te,...fe.map((ee,xe)=>({summary:!0,rawNode:ee,key:`__n_summary__${xe}`,disabled:!0}))]:Se=[...Te,{summary:!0,rawNode:fe,key:"__n_summary__",disabled:!0}]}else Se=Te;const{length:Oe}=Se,Re=M?{width:Et(this.indent)}:void 0,Z=[];return Se.forEach((fe,ee)=>{const{rawNode:xe,key:ie}=fe,Ce="summary"in fe,te=S.includes(ie),ge=U&&te,z=y.map((B,Y)=>{var ae,le,se,ne,J;if(ee in g){const ot=g[ee],H=ot.indexOf(Y);if(~H)return ot.splice(H,1),null}const{column:X}=B,de=So(B),{rowSpan:we,colSpan:V}=X,oe=Ce?((ae=fe.rawNode[de])===null||ae===void 0?void 0:ae.colSpan)||1:V?V(xe,ee):1,pe=Ce?((le=fe.rawNode[de])===null||le===void 0?void 0:le.rowSpan)||1:we?we(xe,ee):1,ve=Y+oe===re,$e=ee+pe===Oe,Me=pe>1;if(Me&&(b[ee]={[Y]:[]}),oe>1||Me)for(let ot=ee;ot{A(ie)}})]:null,X.type==="selection"?Ce?null:f(kP,{key:m,rowKey:ie,disabled:fe.disabled,onUpdateChecked:(ot,H)=>F(fe,ot,H.shiftKey)}):X.type==="expand"?Ce?null:!X.expandable||((J=X.expandable)===null||J===void 0?void 0:J.call(X,xe,ee))?f(mp,{clsPrefix:r,expanded:te,onClick:()=>A(ie)}):null:f(SP,{index:ee,row:xe,column:X,isSummary:Ce,mergedTheme:p}))}),L=_?_(xe,ee):void 0,K=typeof x=="string"?x:Zk(xe,ee,x),Q=f("tr",Object.assign({onMouseenter:()=>{this.hoverKey=ie},key:ie,class:[`${r}-data-table-tr`,K]},L),z);ge?Z.push(Q,f("tr",{class:`${r}-data-table-tr`,key:`${ie}__expand`},f("td",{class:[`${r}-data-table-td`,`${r}-data-table-td--last-col`,ee+1===Oe&&`${r}-data-table-td--last-row`],colspan:re},U(xe,ee)))):Z.push(Q)}),o?f(uh,{ref:"virtualListRef",items:Z,itemSize:28,visibleItemsTag:$P,visibleItemsProps:{clsPrefix:r,id:T,cols:y,onMouseenter:I,onMouseleave:G},showScrollbar:!1,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemsStyle:h,itemResizable:!0},{default:({item:fe})=>fe}):f("table",{class:`${r}-data-table-table`,onMouseleave:G,onMouseenter:I,style:{tableLayout:this.mergedTableLayout}},f("colgroup",null,y.map(fe=>f("col",{key:fe.key,style:fe.style}))),$?f(vp,{discrete:!1}):null,f("tbody",{"data-n-id":T,class:`${r}-data-table-tbody`},Z))}})}}),TP=q({setup(){const{mergedClsPrefixRef:e,rightFixedColumnsRef:t,leftFixedColumnsRef:r,bodyWidthRef:o,maxHeightRef:n,minHeightRef:i,flexHeightRef:a,syncScrollState:l}=Pe(Rr),s=W(null),c=W(null),d=W(null),u=W(!(r.value.length||t.value.length)),h=R(()=>({maxHeight:Qe(n.value),minHeight:Qe(i.value)}));function g(p){o.value=p.contentRect.width,l(),u.value||(u.value=!0)}function b(){const{value:p}=s;return p?p.$el:null}function y(){const{value:p}=c;return p?p.getScrollContainer():null}const v={getBodyElement:y,getHeaderElement:b};return mr(()=>{const{value:p}=d;if(!p)return;const w=`${e.value}-data-table-base-table--transition-disabled`;u.value?setTimeout(()=>{p.classList.remove(w)},0):p.classList.add(w)}),Object.assign({maxHeight:n,mergedClsPrefix:e,selfElRef:d,headerInstRef:s,bodyInstRef:c,bodyStyle:h,flexHeight:a,handleBodyResize:g},v)},render(){const{mergedClsPrefix:e,maxHeight:t,flexHeight:r}=this,o=t===void 0&&!r;return f("div",{class:`${e}-data-table-base-table`,ref:"selfElRef"},o?null:f(vp,{ref:"headerInstRef"}),f(RP,{ref:"bodyInstRef",style:this.bodyStyle,showHeader:o,flexHeight:r,onResize:this.handleBodyResize}),Ae(this.$slots,"default"))}});function zP(e,t){const{paginatedDataRef:r,treeMateRef:o,selectionColumnRef:n}=t,i=W(e.defaultCheckedRowKeys),a=R(()=>{const{checkedRowKeys:x}=e;return o.value.getCheckedKeys(x===void 0?i.value:x,{cascade:e.cascade})}),l=R(()=>a.value.checkedKeys),s=R(()=>a.value.indeterminateKeys),c=R(()=>new Set(l.value)),d=R(()=>new Set(s.value)),u=R(()=>{const{value:x}=c;return r.value.reduce((C,S)=>{const{key:T,disabled:$}=S;return C+(!$&&x.has(T)?1:0)},0)}),h=R(()=>r.value.filter(x=>x.disabled).length),g=R(()=>{const{length:x}=r.value,{value:C}=d;return u.value>0&&u.valueC.has(S.key))}),b=R(()=>{const{length:x}=r.value;return u.value!==0&&u.value===x-h.value}),y=R(()=>r.value.length===0);function v(x){const{"onUpdate:checkedRowKeys":C,onUpdateCheckedRowKeys:S,onCheckedRowKeysChange:T}=e;C&&ue(C,x),S&&ue(S,x),T&&ue(T,x),i.value=x}function p(x){v(o.value.check(x,l.value,{cascade:e.cascade}).checkedKeys)}function w(x){v(o.value.uncheck(x,l.value,{cascade:e.cascade}).checkedKeys)}function P(x=!1){const{value:C}=n;if(!C)return;const S=[];(x?o.value.treeNodes:r.value).forEach(T=>{T.disabled||S.push(T.key)}),v(o.value.check(S,l.value,{cascade:!0}).checkedKeys)}function m(x=!1){const{value:C}=n;if(!C)return;const S=[];(x?o.value.treeNodes:r.value).forEach(T=>{T.disabled||S.push(T.key)}),v(o.value.uncheck(S,l.value,{cascade:!0}).checkedKeys)}return{mergedCheckedRowKeySetRef:c,mergedCheckedRowKeysRef:l,mergedInderminateRowKeySetRef:d,someRowsCheckedRef:g,allRowsCheckedRef:b,headerCheckboxDisabledRef:y,doUpdateCheckedRowKeys:v,doCheckAll:P,doUncheckAll:m,doCheck:p,doUncheck:w}}function wa(e){return typeof e=="object"&&typeof e.multiple=="number"?e.multiple:!1}function _P(e,t){return t&&(e===void 0||e==="default"||typeof e=="object"&&e.compare==="default")?OP(t):typeof e=="function"?e:e&&typeof e=="object"&&e.compare&&e.compare!=="default"?e.compare:!1}function OP(e){return(t,r)=>{const o=t[e],n=r[e];return typeof o=="number"&&typeof n=="number"?o-n:typeof o=="string"&&typeof n=="string"?o.localeCompare(n):0}}function EP(e,{dataRelatedColsRef:t,filteredDataRef:r}){const o=[];t.value.forEach(g=>{var b;g.sorter!==void 0&&h(o,{columnKey:g.key,sorter:g.sorter,order:(b=g.defaultSortOrder)!==null&&b!==void 0?b:!1})});const n=W(o),i=R(()=>{const g=t.value.filter(v=>v.type!=="selection"&&v.sorter!==void 0&&(v.sortOrder==="ascend"||v.sortOrder==="descend"||v.sortOrder===!1)),b=g.filter(v=>v.sortOrder!==!1);if(b.length)return b.map(v=>({columnKey:v.key,order:v.sortOrder,sorter:v.sorter}));if(g.length)return[];const{value:y}=n;return Array.isArray(y)?y:y?[y]:[]}),a=R(()=>{const g=i.value.slice().sort((b,y)=>{const v=wa(b.sorter)||0;return(wa(y.sorter)||0)-v});return g.length?r.value.slice().sort((y,v)=>{let p=0;return g.some(w=>{const{columnKey:P,sorter:m,order:x}=w,C=_P(m,P);return C&&x&&(p=C(y.rawNode,v.rawNode),p!==0)?(p=p*Yk(x),!0):!1}),p}):r.value});function l(g){let b=i.value.slice();return g&&wa(g.sorter)!==!1?(b=b.filter(y=>wa(y.sorter)!==!1),h(b,g),b):g||null}function s(g){const b=l(g);c(b)}function c(g){const{"onUpdate:sorter":b,onUpdateSorter:y,onSorterChange:v}=e;b&&ue(b,g),y&&ue(y,g),v&&ue(v,g),n.value=g}function d(g,b="ascend"){if(!g)u();else{const y=t.value.find(p=>p.type!=="selection"&&p.type!=="expand"&&p.key===g);if(!y||!y.sorter)return;const v=y.sorter;s({columnKey:g,sorter:v,order:b})}}function u(){c(null)}function h(g,b){const y=g.findIndex(v=>(b==null?void 0:b.columnKey)&&v.columnKey===b.columnKey);y!==void 0&&y>=0?g[y]=b:g.push(b)}return{clearSorter:u,sort:d,sortedDataRef:a,mergedSortStateRef:i,deriveNextSorter:s}}function MP(e,{dataRelatedColsRef:t}){const r=R(()=>e.columns.find(A=>A.type==="selection")||null),o=R(()=>{const{childrenKey:A}=e;return ua(e.data,{getKey:e.rowKey,getChildren:re=>re[A],getDisabled:re=>{var be,Se;return!!((Se=(be=r.value)===null||be===void 0?void 0:be.disabled)===null||Se===void 0?void 0:Se.call(be,re))}})}),n=Ve(()=>{const{columns:A}=e,{length:re}=A;for(let be=0;be{const A=t.value.filter(Se=>Se.filterOptionValues!==void 0||Se.filterOptionValue!==void 0),re={};return A.forEach(Se=>{Se.type==="selection"||Se.type==="expand"||(re[Se.key]=Se.filterOptionValues||Se.filterOptionValue||null)}),Object.assign(np(i.value),re)}),c=R(()=>{const A=s.value,{columns:re}=e;function be(Oe){return(Re,Z)=>!!~String(Z[Oe]).indexOf(String(Re))}const{value:{treeNodes:Se}}=o,Te=[];return re.forEach(Oe=>{Oe.type==="selection"||Oe.type==="expand"||"children"in Oe||Te.push([Oe.key,Oe])}),Se?Se.filter(Oe=>{const{rawNode:Re}=Oe;for(const[Z,fe]of Te){let ee=A[Z];if(ee==null||(Array.isArray(ee)||(ee=[ee]),!ee.length))continue;const xe=fe.filter==="default"?be(Z):fe.filter;if(fe&&typeof xe=="function")if(fe.filterMode==="and"){if(ee.some(ie=>!xe(ie,Re)))return!1}else{if(ee.some(ie=>xe(ie,Re)))continue;return!1}}return!0}):[]}),{sortedDataRef:d,deriveNextSorter:u,mergedSortStateRef:h,sort:g,clearSorter:b}=EP(e,{dataRelatedColsRef:t,filteredDataRef:c});t.value.forEach(A=>{var re;if(A.filter){const be=A.defaultFilterOptionValues;A.filterMultiple?i.value[A.key]=be||[]:be!==void 0?i.value[A.key]=be===null?[]:be:i.value[A.key]=(re=A.defaultFilterOptionValue)!==null&&re!==void 0?re:null}});const y=R(()=>{const{pagination:A}=e;if(A!==!1)return A.page}),v=R(()=>{const{pagination:A}=e;if(A!==!1)return A.pageSize}),p=gt(y,a),w=gt(v,l),P=R(()=>{const{pagination:A}=e;if(A){const{pageCount:re}=A;if(re!==void 0)return re}}),m=R(()=>{if(e.remote)return o.value.treeNodes;if(!e.pagination)return d.value;const A=w.value,re=(p.value-1)*A;return d.value.slice(re,re+A)}),x=R(()=>m.value.map(A=>A.rawNode));function C(A){const{pagination:re}=e;if(re){const{onChange:be,"onUpdate:page":Se,onUpdatePage:Te}=re;be&&ue(be,A),Te&&ue(Te,A),Se&&ue(Se,A),M(A)}}function S(A){const{pagination:re}=e;if(re){const{onPageSizeChange:be,"onUpdate:pageSize":Se}=re;be&&ue(be,A),Se&&ue(Se,A),D(A)}}const T=R(()=>{if(e.remote){const{pagination:A}=e;if(A){const{itemCount:re}=A;if(re!==void 0)return re}return}return c.value.length}),$=R(()=>Object.assign(Object.assign({},e.pagination),{onChange:void 0,onPageSizeChange:void 0,"onUpdate:page":C,"onUpdate:pageSize":S,page:p.value,pageSize:w.value,pageCount:T.value===void 0?P.value:void 0,itemCount:T.value}));function M(A){const{"onUpdate:page":re,onPageChange:be,onUpdatePage:Se}=e;Se&&ue(Se,A),be&&ue(be,A),re&&ue(re,A),a.value=A}function D(A){const{"onUpdate:pageSize":re,onPageSizeChange:be,onUpdatePageSize:Se}=e;be&&ue(be,A),Se&&ue(Se,A),re&&ue(re,A),l.value=A}function _(A,re){const{onUpdateFilters:be,"onUpdate:filters":Se,onFiltersChange:Te}=e;be&&ue(be,A,re),Se&&ue(Se,A,re),Te&&ue(Te,A,re),i.value=A}function I(A){M(A)}function G(){U()}function U(){N({})}function N(A){F(A)}function F(A){A?A&&_(np(A)):_({})}return{treeMateRef:o,mergedCurrentPageRef:p,mergedPaginationRef:$,paginatedDataRef:m,rawPaginatedDataRef:x,mergedFilterStateRef:s,mergedSortStateRef:h,hoverKeyRef:W(null),selectionColumnRef:r,firstContentfulColIndexRef:n,doUpdateFilters:_,deriveNextSorter:u,doUpdatePageSize:D,doUpdatePage:M,filter:F,filters:N,clearFilter:G,clearFilters:U,clearSorter:b,page:I,sort:g}}function IP(e,{mainTableInstRef:t,mergedCurrentPageRef:r,bodyWidthRef:o,scrollPartRef:n}){let i=0;const a=W(null),l=W(null),s=R(()=>Qe(e.scrollX)),c=R(()=>e.columns.filter(x=>x.fixed==="left")),d=R(()=>e.columns.filter(x=>x.fixed==="right")),u=R(()=>{const x={};let C=0;function S(T){T.forEach($=>{const M={start:C,end:0};x[So($)]=M,"children"in $?(S($.children),M.end=C):(C+=Ns($)||0,M.end=C)})}return S(c.value),x}),h=R(()=>{const x={};let C=0;function S(T){T.forEach($=>{const M={start:C,end:0};x[So($)]=M,"children"in $?(S($.children),M.end=C):(C+=Ns($)||0,M.end=C)})}return S(d.value.reverse()),x});function g(){var x,C;const{value:S}=c;let T=0;const{value:$}=u;let M=null;for(let D=0;D(((x=$[_])===null||x===void 0?void 0:x.start)||0)-T)M=_,T=((C=$[_])===null||C===void 0?void 0:C.end)||0;else break}a.value=M}function b(){var x,C;const{value:S}=d,T=Number(e.scrollX),{value:$}=o;if($===null)return;let M=0,D=null;const{value:_}=h;for(let I=0;I{v()}),{styleScrollXRef:s,fixedColumnLeftMapRef:u,fixedColumnRightMapRef:h,leftFixedColumnsRef:c,rightFixedColumnsRef:d,leftActiveFixedColKeyRef:a,rightActiveFixedColKeyRef:l,syncScrollState:P,handleTableBodyScroll:w,handleTableHeaderScroll:p,setHeaderScrollLeft:m}}const bp=FP();var AP=E([k("data-table",` + width: 100%; + font-size: var(--font-size); + display: flex; + flex-direction: column; + position: relative; + --merged-th-color: var(--th-color); + --merged-td-color: var(--td-color); + --merged-border-color: var(--border-color); + --merged-th-color-hover: var(--th-color-hover); + --merged-td-color-hover: var(--td-color-hover); + `,[j("flex-height",[E(">",[k("data-table-wrapper",` + flex-grow: 1; + display: flex; + flex-direction: column; + `,[E(">",[k("data-table-base-table",` + display: flex; + flex-direction: column; + flex-grow: 1; + `,[E(">",[k("data-table-base-table-body","flex-basis: 0;",[E("&:last-child","flex-grow: 1;")])])])])])])]),E(">",[k("base-loading",` + color: var(--loading-color); + font-size: var(--loading-size); + position: absolute; + left: 50%; + top: 50%; + transform: translateX(-50%) translateY(-50%); + transition: color .3s var(--bezier); + `,[jr({originalTransform:"translateX(-50%) translateY(-50%)"})])]),k("data-table-expand-trigger","cursor: pointer;"),k("data-table-expand-placeholder",` + margin-right: 8px; + display: inline-block; + width: 16px; + height: 1px; + `),k("data-table-indent",` + display: inline-block; + height: 1px; + `),k("data-table-expand-trigger",` + margin-right: 8px; + cursor: pointer; + font-size: 16px; + vertical-align: -.125em; + `),k("data-table-thead",{transition:"background-color .3s var(--bezier)",backgroundColor:"var(--merged-th-color)"}),k("data-table-tr",{boxSizing:"border-box",backgroundClip:"padding-box",transition:"background-color .3s var(--bezier)"},[E("&:hover",{backgroundColor:"var(--merged-td-color-hover)"},[k("data-table-td",{backgroundColor:"var(--merged-td-color-hover)"})])]),k("data-table-th",` + padding: var(--th-padding); + position: relative; + text-align: start; + box-sizing: border-box; + background-color: var(--merged-th-color); + border-color: var(--merged-border-color); + border-bottom: 1px solid var(--merged-border-color); + color: var(--th-text-color); + transition: + border-color .3s var(--bezier), + color .3s var(--bezier), + background-color .3s var(--bezier); + font-weight: var(--th-font-weight); + `,[j("filterable",{paddingRight:"36px"}),bp,j("selection",` + padding: 0; + text-align: center; + line-height: 0; + z-index: 3; + `),O("ellipsis",` + display: inline-block; + vertical-align: bottom; + text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap; + max-width: 100%; + `),j("hover",{backgroundColor:"var(--merged-th-color-hover)"}),j("sortable",{cursor:"pointer"},[O("ellipsis",{maxWidth:"calc(100% - 18px)"}),E("&:hover",{backgroundColor:"var(--merged-th-color-hover)"})]),k("data-table-sorter",` + height: var(--sorter-size); + width: var(--sorter-size); + margin-left: 4px; + position: relative; + display: inline-flex; + vertical-align: -0.2em; + color: var(--th-icon-color); + transition: + transform .3s var(--bezier), + color .3s var(--bezier); + `,[j("desc",{transform:"rotate(0)"}),j("asc",{transform:"rotate(-180deg)"}),j("asc, desc",{color:"var(--th-icon-color-active)"})]),k("data-table-filter",` + position: absolute; + z-index: auto; + right: 0; + width: 36px; + top: 0; + bottom: 0; + cursor: pointer; + display: flex; + justify-content: center; + align-items: center; + transition: + background-color .3s var(--bezier), + color .3s var(--bezier); + font-size: var(--filter-size); + color: var(--th-icon-color); + `,[E("&:hover",` + background-color: var(--th-button-color-hover); + `),j("show",` + background-color: var(--th-button-color-hover); + `),j("active",` + background-color: var(--th-button-color-hover); + color: var(--th-icon-color-active); + `)])]),k("data-table-td",` + padding: var(--td-padding); + text-align: start; + box-sizing: border-box; + border: none; + background-color: var(--merged-td-color); + color: var(--td-text-color); + border-bottom: 1px solid var(--merged-border-color); + transition: + box-shadow .3s var(--bezier), + background-color .3s var(--bezier), + border-color .3s var(--bezier), + color .3s var(--bezier); + `,[j("last-row",{borderBottom:"0 solid var(--merged-border-color)"},[E("&::after",{bottom:"0 !important"}),E("&::before",{bottom:"0 !important"})]),j("summary",` + background-color: var(--merged-th-color); + `),j("hover",{backgroundColor:"var(--merged-td-color-hover)"}),j("ellipsis",` + text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap; + `),j("selection, expand",` + text-align: center; + padding: 0; + line-height: 0; + `),bp]),k("data-table-empty",` + padding: var(--empty-padding); + flex-grow: 1; + flex-shrink: 0; + opacity: 1; + display: flex; + align-items: center; + justify-content: center; + transition: opacity .3s var(--bezier); + `,[j("hide",{opacity:0})]),O("pagination",` + margin: var(--pagination-margin); + display: flex; + justify-content: flex-end; + `),k("data-table-wrapper",` + position: relative; + opacity: 1; + transition: opacity .3s var(--bezier), border-color .3s var(--bezier); + border-top-left-radius: var(--border-radius); + border-top-right-radius: var(--border-radius); + line-height: var(--line-height); + `),j("loading",[k("data-table-wrapper","opacity: var(--opacity-loading);")]),j("single-column",[k("data-table-td",{borderBottom:"0 solid var(--merged-border-color)"},[E("&::after, &::before",{bottom:"0 !important"})])]),qe("single-line",[k("data-table-th",{borderRight:"1px solid var(--merged-border-color)"},[j("last",{borderRight:"0 solid var(--merged-border-color)"})]),k("data-table-td",{borderRight:"1px solid var(--merged-border-color)"},[j("last-col",{borderRight:"0 solid var(--merged-border-color)"})])]),j("bordered",[k("data-table-wrapper",{border:"1px solid var(--merged-border-color)",borderBottomLeftRadius:"var(--border-radius)",borderBottomRightRadius:"var(--border-radius)"}),k("data-table-td",[j("last-row",{borderBottom:"0 solid var(--merged-border-color)"})]),k("data-table-base-table-body",` + border-bottom-left-radius: calc(var(--border-radius) - 1px); + border-bottom-right-radius: calc(var(--border-radius) - 1px); + `)]),k("data-table-base-table",[j("transition-disabled",[k("data-table-th",[E("&::after, &::before",{transition:"none"})]),k("data-table-td",[E("&::after, &::before",{transition:"none"})])])]),j("bottom-bordered",[k("data-table-td",[j("last-row",{borderBottom:"1px solid var(--merged-border-color)"})])]),k("data-table-table",` + font-variant-numeric: tabular-nums; + width: 100%; + word-wrap: break-word; + word-break: break-all; + transition: background-color .3s var(--bezier); + border-collapse: separate; + border-spacing: 0; + background-color: var(--merged-td-color); + `),k("data-table-base-table-header",` + border-top-left-radius: calc(var(--border-radius) - 1px); + border-top-right-radius: calc(var(--border-radius) - 1px); + z-index: 3; + overflow: scroll; + flex-shrink: 0; + transition: border-color .3s var(--bezier); + scrollbar-width: none; + `,[E("&::-webkit-scrollbar",{width:0,height:0})]),k("data-table-check-extra",` + transition: color .3s var(--bezier); + color: var(--th-icon-color); + position: absolute; + font-size: 14px; + right: -4px; + top: 50%; + transform: translateY(-50%); + z-index: 1; + `)]),k("data-table-filter-menu",[k("scrollbar",{maxHeight:"240px"}),O("group",{display:"flex",flexDirection:"column",padding:"12px 12px 0 12px"},[k("checkbox",{marginBottom:"12px",marginRight:0}),k("radio",{marginBottom:"12px",marginRight:0})]),O("action",` + padding: var(--action-padding); + display: flex; + flex-wrap: nowrap; + justify-content: space-evenly; + border-top: 1px solid var(--action-divider-color); + `,[k("button",[E("&:not(:last-child)",{margin:"var(--action-button-margin)"}),E("&:last-child",{marginRight:0})])]),k("divider",{margin:"0!important"})]),na(k("data-table",` + --merged-th-color: var(--th-color-modal); + --merged-td-color: var(--td-color-modal); + --merged-border-color: var(--border-color-modal); + --merged-th-color-hover: var(--th-color-hover-modal); + --merged-td-color-hover: var(--td-color-hover-modal); + `)),ts(k("data-table",` + --merged-th-color: var(--th-color-popover); + --merged-td-color: var(--td-color-popover); + --merged-border-color: var(--border-color-popover); + --merged-th-color-hover: var(--th-color-hover-popover); + --merged-td-color-hover: var(--td-color-hover-popover); + `))]);function FP(){return[j("fixed-left",` + left: 0; + position: sticky; + z-index: 2; + `,[E("&::after",` + pointer-events: none; + content: ""; + width: 36px; + display: inline-block; + position: absolute; + top: 0; + bottom: -1px; + transition: box-shadow .2s var(--bezier); + right: -36px; + `)]),j("fixed-right",{right:0,position:"sticky",zIndex:1},[E("&::before",` + pointer-events: none; + content: ""; + width: 36px; + display: inline-block; + position: absolute; + top: 0; + bottom: -1px; + transition: box-shadow .2s var(--bezier); + left: -36px; + `)])]}function BP(e){const t=[],r=[],o=[],n=new WeakMap;let i=-1,a=0,l=!1;function s(u,h){h>i&&(t[h]=[],i=h);for(const g of u)"children"in g?s(g.children,h+1):(r.push({key:So(g),style:Xk(g),column:g}),a+=1,l||(l=!!g.ellipsis),o.push(g))}s(e,0);let c=0;function d(u,h){let g=0;u.forEach((b,y)=>{var v;if("children"in b){const p=c,w={column:b,colSpan:0,rowSpan:1,isLast:!1};d(b.children,h+1),b.children.forEach(P=>{var m,x;w.colSpan+=(x=(m=n.get(P))===null||m===void 0?void 0:m.colSpan)!==null&&x!==void 0?x:0}),p+w.colSpan===a&&(w.isLast=!0),n.set(b,w),t[h].push(w)}else{if(c1&&(g=c+p);const w=c+p===a,P={column:b,colSpan:p,rowSpan:i-h+1,isLast:w};n.set(b,P),t[h].push(P),c+=1}})}return d(e,0),{hasEllipsis:l,rows:t,cols:r,dataRelatedCols:o}}function LP(e){const t=R(()=>BP(e.columns));return{rowsRef:R(()=>t.value.rows),colsRef:R(()=>t.value.cols),hasEllipsisRef:R(()=>t.value.hasEllipsis),dataRelatedColsRef:R(()=>t.value.dataRelatedCols)}}function DP(e){const t=Ve(()=>{for(const a of e.columns)if(a.type==="expand")return a.renderExpand}),r=W(e.defaultExpandedRowKeys),o=ke(e,"expandedRowKeys"),n=gt(o,r);function i(a){const{onUpdateExpandedRowKeys:l,"onUpdate:expandedRowKeys":s}=e;l&&ue(l,a),s&&ue(s,a),r.value=a}return{mergedExpandedRowKeysRef:n,renderExpandRef:t,doUpdateExpandedRowKeys:i}}const NP=Object.assign(Object.assign({},ye.props),{pagination:{type:[Object,Boolean],default:!1},minHeight:[Number,String],maxHeight:[Number,String],columns:{type:Array,default:()=>[]},rowClassName:[String,Function],rowProps:Function,rowKey:Function,summary:[Function],data:{type:Array,default:()=>[]},loading:Boolean,bordered:{type:Boolean,default:void 0},bottomBordered:{type:Boolean,default:void 0},scrollX:[Number,String],defaultCheckedRowKeys:{type:Array,default:()=>[]},checkedRowKeys:Array,singleLine:{type:Boolean,default:!0},singleColumn:Boolean,size:{type:String,default:"medium"},remote:Boolean,defaultExpandedRowKeys:{type:Array,default:[]},expandedRowKeys:Array,virtualScroll:Boolean,tableLayout:{type:String,default:"auto"},cascade:{type:Boolean,default:!0},childrenKey:{type:String,default:"children"},indent:{type:Number,default:16},flexHeight:Boolean,"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],"onUpdate:sorter":[Function,Array],onUpdateSorter:[Function,Array],"onUpdate:filters":[Function,Array],onUpdateFilters:[Function,Array],"onUpdate:checkedRowKeys":[Function,Array],onUpdateCheckedRowKeys:[Function,Array],"onUpdate:expandedRowKeys":[Function,Array],onUpdateExpandedRowKeys:[Function,Array],onPageChange:{type:[Function,Array],validator:()=>!0,default:void 0},onPageSizeChange:{type:[Function,Array],validator:()=>!0,default:void 0},onSorterChange:{type:[Function,Array],validator:()=>!0,default:void 0},onFiltersChange:{type:[Function,Array],validator:()=>!0,default:void 0},onCheckedRowKeysChange:{type:[Function,Array],validator:()=>!0,default:void 0}});var RO=q({name:"DataTable",alias:["AdvancedTable"],props:NP,setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:r}=Ee(e),o=R(()=>{const{bottomBordered:ae}=e;return t.value?!1:ae!==void 0?ae:!0}),n=ye("DataTable","DataTable",AP,Mk,e,r),i=W(null),a=W("body"),l=W(null),{rowsRef:s,colsRef:c,dataRelatedColsRef:d,hasEllipsisRef:u}=LP(e),{treeMateRef:h,mergedCurrentPageRef:g,paginatedDataRef:b,rawPaginatedDataRef:y,selectionColumnRef:v,hoverKeyRef:p,mergedPaginationRef:w,mergedFilterStateRef:P,mergedSortStateRef:m,firstContentfulColIndexRef:x,doUpdateFilters:C,deriveNextSorter:S,filter:T,filters:$,clearFilter:M,clearFilters:D,page:_,sort:I}=MP(e,{dataRelatedColsRef:d}),{doCheckAll:G,doUncheckAll:U,doCheck:N,doUncheck:F,headerCheckboxDisabledRef:A,someRowsCheckedRef:re,allRowsCheckedRef:be,mergedCheckedRowKeySetRef:Se,mergedInderminateRowKeySetRef:Te}=zP(e,{selectionColumnRef:v,treeMateRef:h,paginatedDataRef:b}),{mergedExpandedRowKeysRef:Oe,renderExpandRef:Re,doUpdateExpandedRowKeys:Z}=DP(e),{handleTableBodyScroll:fe,handleTableHeaderScroll:ee,syncScrollState:xe,setHeaderScrollLeft:ie,leftActiveFixedColKeyRef:Ce,rightActiveFixedColKeyRef:te,leftFixedColumnsRef:ge,rightFixedColumnsRef:z,fixedColumnLeftMapRef:L,fixedColumnRightMapRef:K}=IP(e,{scrollPartRef:a,bodyWidthRef:i,mainTableInstRef:l,mergedCurrentPageRef:g}),{localeRef:Q}=kr("DataTable"),B=R(()=>e.virtualScroll||e.flexHeight||e.maxHeight!==void 0||u.value?"fixed":e.tableLayout);return Ie(Rr,{indentRef:ke(e,"indent"),firstContentfulColIndexRef:x,bodyWidthRef:i,componentId:ar(),hoverKeyRef:p,mergedClsPrefixRef:r,mergedThemeRef:n,scrollXRef:R(()=>e.scrollX),rowsRef:s,colsRef:c,paginatedDataRef:b,leftActiveFixedColKeyRef:Ce,rightActiveFixedColKeyRef:te,leftFixedColumnsRef:ge,rightFixedColumnsRef:z,fixedColumnLeftMapRef:L,fixedColumnRightMapRef:K,mergedCurrentPageRef:g,someRowsCheckedRef:re,allRowsCheckedRef:be,mergedSortStateRef:m,mergedFilterStateRef:P,loadingRef:ke(e,"loading"),rowClassNameRef:ke(e,"rowClassName"),mergedCheckedRowKeySetRef:Se,mergedExpandedRowKeysRef:Oe,mergedInderminateRowKeySetRef:Te,localeRef:Q,scrollPartRef:a,rowKeyRef:ke(e,"rowKey"),renderExpandRef:Re,summaryRef:ke(e,"summary"),virtualScrollRef:ke(e,"virtualScroll"),rowPropsRef:ke(e,"rowProps"),checkOptionsRef:R(()=>{const{value:ae}=v;return ae==null?void 0:ae.options}),rawPaginatedDataRef:y,hasChildrenRef:R(()=>h.value.maxLevel>0),filterMenuCssVarsRef:R(()=>{const{self:{actionDividerColor:ae,actionPadding:le,actionButtonMargin:se}}=n.value;return{"--action-padding":le,"--action-button-margin":se,"--action-divider-color":ae}}),mergedTableLayoutRef:B,maxHeightRef:ke(e,"maxHeight"),minHeightRef:ke(e,"minHeight"),flexHeightRef:ke(e,"flexHeight"),headerCheckboxDisabledRef:A,syncScrollState:xe,doUpdateFilters:C,deriveNextSorter:S,doCheck:N,doUncheck:F,doCheckAll:G,doUncheckAll:U,doUpdateExpandedRowKeys:Z,handleTableHeaderScroll:ee,handleTableBodyScroll:fe,setHeaderScrollLeft:ie}),Object.assign(Object.assign({mainTableInstRef:l,mergedClsPrefix:r,mergedTheme:n,paginatedData:b,mergedBordered:t,mergedBottomBordered:o,mergedPagination:w},{filter:T,filters:$,clearFilter:M,clearFilters:D,page:_,sort:I}),{cssVars:R(()=>{const{size:ae}=e,{common:{cubicBezierEaseInOut:le},self:{borderColor:se,tdColorHover:ne,thColor:J,thColorHover:X,tdColor:de,tdTextColor:we,thTextColor:V,thFontWeight:oe,thButtonColorHover:pe,thIconColor:ve,thIconColorActive:$e,filterSize:Me,borderRadius:rt,lineHeight:lt,tdColorModal:ot,thColorModal:H,borderColorModal:me,thColorHoverModal:Fe,tdColorHoverModal:ut,borderColorPopover:dt,thColorPopover:vt,tdColorPopover:Yt,tdColorHoverPopover:Ht,thColorHoverPopover:Wt,paginationMargin:Gr,emptyPadding:wn,boxShadowAfter:Cn,boxShadowBefore:Sn,sorterSize:kn,loadingColor:Pn,loadingSize:$n,opacityLoading:Rn,[ce("fontSize",ae)]:Tn,[ce("thPadding",ae)]:zn,[ce("tdPadding",ae)]:_n}}=n.value;return{"--font-size":Tn,"--th-padding":zn,"--td-padding":_n,"--bezier":le,"--border-radius":rt,"--line-height":lt,"--border-color":se,"--border-color-modal":me,"--border-color-popover":dt,"--th-color":J,"--th-color-hover":X,"--th-color-modal":H,"--th-color-hover-modal":Fe,"--th-color-popover":vt,"--th-color-hover-popover":Wt,"--td-color":de,"--td-color-hover":ne,"--td-color-modal":ot,"--td-color-hover-modal":ut,"--td-color-popover":Yt,"--td-color-hover-popover":Ht,"--th-text-color":V,"--td-text-color":we,"--th-font-weight":oe,"--th-button-color-hover":pe,"--th-icon-color":ve,"--th-icon-color-active":$e,"--filter-size":Me,"--pagination-margin":Gr,"--empty-padding":wn,"--box-shadow-before":Sn,"--box-shadow-after":Cn,"--sorter-size":kn,"--loading-size":$n,"--loading-color":Pn,"--opacity-loading":Rn}})})},render(){const{mergedClsPrefix:e}=this;return f("div",{class:[`${e}-data-table`,{[`${e}-data-table--bordered`]:this.mergedBordered,[`${e}-data-table--bottom-bordered`]:this.mergedBottomBordered,[`${e}-data-table--single-line`]:this.singleLine,[`${e}-data-table--single-column`]:this.singleColumn,[`${e}-data-table--loading`]:this.loading,[`${e}-data-table--flex-height`]:this.flexHeight}],style:this.cssVars},f("div",{class:`${e}-data-table-wrapper`},f(TP,{ref:"mainTableInstRef"},{default:()=>this.paginatedData.length===0?f("div",{class:[`${e}-data-table-empty`,{[`${e}-data-table-empty--hide`]:this.loading}]},Ae(this.$slots,"empty",void 0,()=>[f(gh,{theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})])):null})),this.pagination?f("div",{class:`${e}-data-table__pagination`},f(Ck,Object.assign({theme:this.mergedTheme.peers.Pagination,themeOverrides:this.mergedTheme.peerOverrides.Pagination,disabled:this.loading},this.mergedPagination))):null,f(ht,{name:"fade-in-scale-up-transition"},{default:()=>this.loading?f(Lr,{clsPrefix:e,strokeWidth:20}):null}))}}),jP={titleFontSize:"18px",padding:"16px 28px 20px 28px",iconSize:"28px",actionSpace:"12px",contentMargin:"8px 0 16px 0",iconMargin:"0 4px 0 0",iconMarginIconTop:"4px 0 8px 0",closeSize:"18px",closeMargin:"22px 28px 0 0",closeMarginIconTop:"12px 18px 0 0"};const HP=e=>{const{textColor1:t,textColor2:r,modalColor:o,closeColor:n,closeColorHover:i,closeColorPressed:a,infoColor:l,successColor:s,warningColor:c,errorColor:d,primaryColor:u,dividerColor:h,borderRadius:g,fontWeightStrong:b,lineHeight:y,fontSize:v}=e;return Object.assign(Object.assign({},jP),{fontSize:v,lineHeight:y,border:`1px solid ${h}`,titleTextColor:t,textColor:r,color:o,closeColor:n,closeColorHover:i,closeColorPressed:a,iconColor:u,iconColorInfo:l,iconColorSuccess:s,iconColorWarning:c,iconColorError:d,borderRadius:g,titleFontWeight:b})},WP=St({name:"Dialog",common:De,peers:{Button:ai},self:HP});var xp=WP,UP=E([k("dialog",` + line-height: var(--line-height); + position: relative; + background: var(--color); + color: var(--text-color); + box-sizing: border-box; + margin: auto; + border-radius: var(--border-radius); + padding: var(--padding); + transition: + border-color .3s var(--bezier), + background-color .3s var(--bezier), + color .3s var(--bezier); + `,[O("icon",{color:"var(--icon-color)"}),j("bordered",{border:"var(--border)"}),j("icon-top",[O("close",{margin:"var(--close-margin)"}),O("icon",{margin:"var(--icon-margin)"}),O("content",{textAlign:"center"}),O("title",{justifyContent:"center"}),O("action",{justifyContent:"center"})]),j("icon-left",[O("icon",{margin:"var(--icon-margin)"})]),O("close",` + font-size: var(--close-size); + position: absolute; + right: 0; + top: 0; + margin: var(--close-margin); + transition: .3s color var(--bezier); + z-index: 1; + `),O("content",` + font-size: var(--font-size); + margin: var(--content-margin); + position: relative; + `,[E("&:last-child","margin-bottom: 0;")]),O("action",` + display: flex; + justify-content: flex-end; + `,[E("> *:not(:last-child)",{marginRight:"var(--action-space)"})]),O("icon",{fontSize:"var(--icon-size)",transition:"color .3s var(--bezier)"}),O("title",` + transition: color .3s var(--bezier); + display: flex; + align-items: center; + font-size: var(--title-font-size); + font-weight: var(--title-font-weight); + color: var(--title-text-color); + `),k("dialog-icon-container",{display:"flex",justifyContent:"center"})]),na(k("dialog",` + width: 446px; + max-width: calc(100vw - 32px); + `)),k("dialog",[kf(` + width: 446px; + max-width: calc(100vw - 32px); + `)])]);const yp=f(Zo,null),wp={default:yp,info:yp,success:f(Jo,null),warning:f(vo,null),error:f(Xo,null)},Ca={icon:Function,type:{type:String,default:"default"},title:[String,Function],closable:{type:Boolean,default:!0},negativeText:String,positiveText:String,content:[String,Function],action:Function,showIcon:{type:Boolean,default:!0},loading:Boolean,bordered:Boolean,iconPlacement:String,onPositiveClick:Function,onNegativeClick:Function,onClose:Function},Cp=lr(Ca);var Sp=q({name:"Dialog",alias:["NimbusConfirmCard","Confirm"],props:Object.assign(Object.assign({},ye.props),Ca),setup(e){const{NConfigProvider:t,mergedClsPrefixRef:r}=Ee(e),o=R(()=>{var s,c,d;const{iconPlacement:u}=e;return(d=u!=null?u:(c=(s=t==null?void 0:t.mergedComponentPropsRef.value)===null||s===void 0?void 0:s.Dialog)===null||c===void 0?void 0:c.iconPlacement)!==null&&d!==void 0?d:"left"});function n(s){const{onPositiveClick:c}=e;c&&c(s)}function i(s){const{onNegativeClick:c}=e;c&&c(s)}function a(){const{onClose:s}=e;s&&s()}const l=ye("Dialog","Dialog",UP,xp,e,r);return{mergedClsPrefix:r,mergedIconPlacement:o,mergedTheme:l,handlePositiveClick:n,handleNegativeClick:i,handleCloseClick:a,cssVars:R(()=>{const{type:s,iconPlacement:c}=e,{common:{cubicBezierEaseInOut:d},self:{fontSize:u,lineHeight:h,border:g,titleTextColor:b,textColor:y,color:v,closeColor:p,closeColorHover:w,closeColorPressed:P,borderRadius:m,titleFontWeight:x,titleFontSize:C,padding:S,iconSize:T,actionSpace:$,contentMargin:M,closeSize:D,[c==="top"?"iconMarginIconTop":"iconMargin"]:_,[c==="top"?"closeMarginIconTop":"closeMargin"]:I,[ce("iconColor",s)]:G}}=l.value;return{"--font-size":u,"--icon-color":G,"--bezier":d,"--close-margin":I,"--icon-margin":_,"--icon-size":T,"--close-size":D,"--close-color":p,"--close-color-hover":w,"--close-color-pressed":P,"--color":v,"--text-color":y,"--border-radius":m,"--padding":S,"--line-height":h,"--border":g,"--content-margin":M,"--title-font-size":C,"--title-font-weight":x,"--title-text-color":b,"--action-space":$}})}},render(){const{$slots:e,bordered:t,mergedIconPlacement:r,cssVars:o,closable:n,showIcon:i,title:a,content:l,action:s,negativeText:c,positiveText:d,handlePositiveClick:u,handleNegativeClick:h,mergedTheme:g,loading:b,type:y,mergedClsPrefix:v}=this;return f("div",{class:[`${v}-dialog`,`${v}-dialog--icon-${r}`,t&&`${v}-dialog--bordered`],style:o},n?f(en,{clsPrefix:v,class:`${v}-dialog__close`,onClick:this.handleCloseClick}):null,i&&r==="top"?f("div",{class:`${v}-dialog-icon-container`},f(Be,{clsPrefix:v,class:`${v}-dialog__icon`},{default:()=>Ae(e,"icon",void 0,()=>[this.icon?Ke(this.icon):wp[this.type]])})):null,f("div",{class:`${v}-dialog__title`},i&&r==="left"?f(Be,{clsPrefix:v,class:`${v}-dialog__icon`},{default:()=>Ae(e,"icon",void 0,()=>[this.icon?Ke(this.icon):wp[this.type]])}):null,Ae(e,"header",void 0,()=>[Ke(a)])),f("div",{class:`${v}-dialog__content`},Ae(e,"default",void 0,()=>[Ke(l)])),e.action||d||c||s?f("div",{class:`${v}-dialog__action`},Ae(e,"action",void 0,s?()=>[Ke(s)]:()=>[this.negativeText&&f(ur,{theme:g.peers.Button,themeOverrides:g.peerOverrides.Button,ghost:!0,size:"small",onClick:h},{default:()=>Ke(this.negativeText)}),this.positiveText&&f(ur,{theme:g.peers.Button,themeOverrides:g.peerOverrides.Button,disabled:b,loading:b,size:"small",type:y==="default"?"primary":y,onClick:u},{default:()=>Ke(this.positiveText)})])):null)}});const VP=e=>{const{modalColor:t,textColor2:r,boxShadow3:o}=e;return{color:t,textColor:r,boxShadow:o}},KP=St({name:"Modal",common:De,peers:{Scrollbar:yo,Dialog:xp,Card:Vh},self:VP});var qP=KP;const Ks=Object.assign(Object.assign({},As),Ca),GP=lr(Ks);var YP=q({name:"ModalBody",inheritAttrs:!1,props:Object.assign(Object.assign({show:{type:Boolean,required:!0},preset:String,displayDirective:{type:String,required:!0}},Ks),{onClickoutside:{type:Function,required:!0},onBeforeLeave:{type:Function,required:!0},onAfterLeave:{type:Function,required:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0},onClose:{type:Function,required:!0},onAfterEnter:Function}),setup(e){const t=W(null),r=W(null),o=W(e.show),n=W(null),i=W(null);Ue(ke(e,"show"),v=>{v&&(o.value=!0)});const a=Pe(Bf);function l(){const{value:v}=n,{value:p}=i;if(v===null||p===null)return"";if(r.value){const w=r.value.containerScrollTop;return`${v}px ${p+w}px`}return""}function s(v){const p=a.getMousePosition();if(!p||!r.value)return;const w=r.value.containerScrollTop,{offsetLeft:P,offsetTop:m}=v;if(p){const x=p.y,C=p.x;n.value=-(P-C),i.value=-(m-x-w)}v.style.transformOrigin=l()}function c(v){Ct(()=>{s(v)})}function d(v){v.style.transformOrigin=l(),e.onBeforeLeave()}function u(){o.value=!1,n.value=null,i.value=null,e.onAfterLeave()}function h(){const{onClose:v}=e;v&&v()}function g(){e.onNegativeClick()}function b(){e.onPositiveClick()}function y(v){e.onClickoutside(v)}return Ie(is,t),Ie(as,null),Ie(ls,null),{mergedTheme:a.mergedThemeRef,appear:a.appearRef,isMounted:a.isMountedRef,mergedClsPrefix:a.mergedClsPrefixRef,bodyRef:t,scrollbarRef:r,displayed:o,handleClickOutside:y,handlePositiveClick:b,handleNegativeClick:g,handleCloseClick:h,handleAfterLeave:u,handleBeforeLeave:d,handleEnter:c}},render(){const{$slots:e,$attrs:t,handleEnter:r,handleAfterLeave:o,handleBeforeLeave:n,handleClickOutside:i,preset:a,mergedClsPrefix:l}=this;let s=null;if(!a){if(s=ns(e),!s){qt("modal","default slot is empty");return}s=Or(s),s.props=Zt({class:`${l}-modal`},t,s.props||{})}return this.displayDirective==="show"||this.displayed||this.show?or(f("div",{class:`${l}-modal-body-wrapper`},f($r,{ref:"scrollbarRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:`${l}-modal-scroll-content`},{default:()=>{var c;return f(ht,{name:"fade-in-scale-up-transition",appear:(c=this.appear)!==null&&c!==void 0?c:this.isMounted,onEnter:r,onAfterEnter:this.onAfterEnter,onAfterLeave:o,onBeforeLeave:n},{default:()=>or(this.preset==="confirm"||this.preset==="dialog"?f(Sp,Object.assign({},this.$attrs,{class:[`${l}-modal`,this.$attrs.class],ref:"bodyRef",theme:this.mergedTheme.peers.Dialog,themeOverrides:this.mergedTheme.peerOverrides.Dialog},er(this.$props,Cp)),e):this.preset==="card"?f(j4,Object.assign({},this.$attrs,{ref:"bodyRef",class:[`${l}-modal`,this.$attrs.class],theme:this.mergedTheme.peers.Card,themeOverrides:this.mergedTheme.peerOverrides.Card},er(this.$props,D4)),e):s,[[Bo,this.show],[ri,i]])})}})),[[Bo,this.displayDirective==="if"||this.displayed||this.show]]):null}}),XP=E([k("modal-container",` + position: fixed; + left: 0; + top: 0; + height: 0; + width: 0; + display: flex; + `),k("modal-mask",` + position: fixed; + left: 0; + right: 0; + top: 0; + bottom: 0; + background-color: rgba(0, 0, 0, .4); + `,[ni({enterDuration:".25s",leaveDuration:".25s",enterCubicBezier:"var(--bezier-ease-out)",leaveCubicBezier:"var(--bezier-ease-out)"})]),k("modal-body-wrapper",` + position: fixed; + left: 0; + right: 0; + top: 0; + bottom: 0; + overflow: visible; + `,[k("modal-scroll-content",` + min-height: 100%; + display: flex; + position: relative; + `)]),k("modal",` + align-self: center; + color: var(--text-color); + margin: auto; + box-shadow: var(--box-shadow); + `,[jr({duration:".25s",enterScale:".5"})])]);const ZP=Object.assign(Object.assign(Object.assign(Object.assign({},ye.props),{show:Boolean,unstableShowMask:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},preset:String,to:[String,Object],displayDirective:{type:String,default:"if"}}),Ks),{"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onBeforeLeave:Function,onAfterLeave:Function,onClose:Function,onPositiveClick:Function,onNegativeClick:Function,onMaskClick:Function,dialog:Boolean,appear:{type:Boolean,default:void 0},overlayStyle:[String,Object],onBeforeHide:Function,onAfterHide:Function,onHide:Function});var JP=q({name:"Modal",inheritAttrs:!1,props:ZP,setup(e){const t=W(null),{mergedClsPrefixRef:r,namespaceRef:o}=Ee(e),n=ye("Modal","Modal",XP,qP,e,r),i=If(64),a=Of(),l=qo(),s=e.dialog?Pe(Pp,null):null;function c(v){const{onUpdateShow:p,"onUpdate:show":w,onHide:P}=e;p&&ue(p,v),w&&ue(w,v),P&&!v&&P(v)}function d(){const{onClose:v}=e;v?Promise.resolve(v()).then(p=>{p!==!1&&c(!1)}):c(!1)}function u(){const{onPositiveClick:v}=e;v?Promise.resolve(v()).then(p=>{p!==!1&&c(!1)}):c(!1)}function h(){const{onNegativeClick:v}=e;v?Promise.resolve(v()).then(p=>{p!==!1&&c(!1)}):c(!1)}function g(){const{onBeforeLeave:v,onBeforeHide:p}=e;v&&ue(v),p&&p()}function b(){const{onAfterLeave:v,onAfterHide:p}=e;v&&ue(v),p&&p()}function y(v){var p;const{onMaskClick:w}=e;w&&w(v),e.maskClosable&&((p=t.value)===null||p===void 0?void 0:p.contains(v.target))&&c(!1)}return Ie(Bf,{getMousePosition:()=>{if(s){const{clickedRef:v,clickPositionRef:p}=s;if(v.value&&p.value)return p.value}return i.value?a.value:null},mergedClsPrefixRef:r,mergedThemeRef:n,isMountedRef:l,appearRef:ke(e,"appear")}),{mergedClsPrefix:r,namespace:o,isMounted:l,containerRef:t,presetProps:R(()=>er(e,GP)),handleAfterLeave:b,handleClickoutside:y,handleBeforeLeave:g,doUpdateShow:c,handleNegativeClick:h,handlePositiveClick:u,handleCloseClick:d,cssVars:R(()=>{const{common:{cubicBezierEaseOut:v},self:{boxShadow:p,color:w,textColor:P}}=n.value;return{"--bezier-ease-out":v,"--box-shadow":p,"--color":w,"--text-color":P}})}},render(){const{mergedClsPrefix:e}=this;return f(Ss,{to:this.to,show:this.show},{default:()=>{var t;return[or(f("div",{ref:"containerRef",class:[`${e}-modal-container`,this.namespace],style:this.cssVars},this.unstableShowMask?f(ht,{name:"fade-in-transition",key:"mask",appear:(t=this.appear)!==null&&t!==void 0?t:this.isMounted},{default:()=>this.show?f("div",{ref:"containerRef",class:`${e}-modal-mask`}):null}):null,f(YP,Object.assign({style:this.overlayStyle},this.$attrs,{ref:"bodyWrapper",displayDirective:this.displayDirective,show:this.show,preset:this.preset},this.presetProps,{onClose:this.handleCloseClick,onNegativeClick:this.handleNegativeClick,onPositiveClick:this.handlePositiveClick,onBeforeLeave:this.handleBeforeLeave,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave,onClickoutside:this.handleClickoutside}),this.$slots)),[[Cs,{enabled:this.show}]])]}})}});const QP=Object.assign(Object.assign({},Ca),{internalStyle:[String,Object],maskClosable:{type:Boolean,default:!0},onPositiveClick:Function,onNegativeClick:Function,onClose:Function,onMaskClick:Function});var e$=q({name:"DialogEnvironment",props:Object.assign(Object.assign({},QP),{internalKey:{type:String,required:!0},to:[String,Object],onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const t=W(!0);function r(){e.onInternalAfterLeave(e.internalKey)}function o(c){const{onPositiveClick:d}=e;d?Promise.resolve(d(c)).then(u=>{u!==!1&&l()}):l()}function n(c){const{onNegativeClick:d}=e;d?Promise.resolve(d(c)).then(u=>{u!==!1&&l()}):l()}function i(){const{onClose:c}=e;c?Promise.resolve(c()).then(d=>{d!==!1&&l()}):l()}function a(c){const{onMaskClick:d,maskClosable:u}=e;d&&(d(c),u&&l())}function l(){t.value=!1}function s(c){t.value=c}return{show:t,hide:l,handleUpdateShow:s,handleAfterLeave:r,handleCloseClick:i,handleNegativeClick:n,handlePositiveClick:o,handleMaskClick:a}},render(){const{handlePositiveClick:e,handleUpdateShow:t,handleNegativeClick:r,handleCloseClick:o,handleAfterLeave:n,handleMaskClick:i,to:a,maskClosable:l,show:s}=this;return f(JP,{show:s,onUpdateShow:t,onMaskClick:i,appear:!0,dialog:!0,to:a,maskClosable:l,onAfterLeave:n},{default:()=>f(Sp,Object.assign({},er(this.$props,Cp),{style:this.internalStyle,onClose:o,onNegativeClick:r,onPositiveClick:e}))})}});const kp=Symbol("dialogApi"),Pp=Symbol("dialogProvider"),t$={injectionKey:String,to:[String,Object]};var TO=q({name:"DialogProvider",props:t$,setup(){const e=W([]),t={};function r(l={}){const s=ar(),c=pr(Object.assign(Object.assign({},l),{key:s,destroy:()=>{t[`n-dialog-${s}`].hide()}}));return e.value.push(c),c}const o=["info","success","warning","error"].map(l=>s=>r(Object.assign(Object.assign({},s),{type:l})));function n(l){const{value:s}=e;s.splice(s.findIndex(c=>c.key===l),1)}function i(){Object.values(t).forEach(l=>l.hide())}const a={create:r,destroyAll:i,info:o[0],success:o[1],warning:o[2],error:o[3]};return Ie(kp,a),Ie(Pp,{clickedRef:If(64),clickPositionRef:Of()}),Object.assign(Object.assign({},a),{dialogList:e,dialogInstRefs:t,handleAfterLeave:n})},render(){var e,t;return f(nt,null,[this.dialogList.map(r=>f(e$,la(r,["destroy","style"],{internalStyle:r.style,to:this.to,ref:o=>{o===null?delete this.dialogInstRefs[`n-dialog-${r.key}`]:this.dialogInstRefs[`n-dialog-${r.key}`]=o},internalKey:r.key,onInternalAfterLeave:this.handleAfterLeave}))),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)])}});function zO(){const e=Pe(kp,null);return e===null&&Cr("use-dialog","No outer founded."),e}var r$={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"};const o$=()=>r$,n$={name:"Space",self:o$};var i$=n$;const a$=Object.assign(Object.assign({},ye.props),{align:String,justify:{type:String,default:"start"},inline:Boolean,vertical:Boolean,size:{type:[String,Number,Array],default:"medium"},itemStyle:[String,Object],wrap:{type:Boolean,default:!0}});var _O=q({name:"Space",props:a$,setup(e){const{mergedClsPrefixRef:t}=Ee(e),r=ye("Space","Space",void 0,i$,e,t);return{mergedClsPrefix:t,margin:R(()=>{const{size:o}=e;if(Array.isArray(o))return{horizontal:o[0],vertical:o[1]};if(typeof o=="number")return{horizontal:o,vertical:o};const{self:{[ce("gap",o)]:n}}=r.value,{row:i,col:a}=h0(n);return{horizontal:Ot(a),vertical:Ot(i)}})}},render(){const{vertical:e,align:t,inline:r,justify:o,itemStyle:n,margin:i,wrap:a,mergedClsPrefix:l}=this,s=ti(Af(this)),c=`${i.horizontal}px`,d=`${i.horizontal/2}px`,u=`${i.vertical}px`,h=`${i.vertical/2}px`,g=s.length-1,b=o.startsWith("space-");return f("div",{role:"none",class:`${l}-space`,style:{display:r?"inline-flex":"flex",flexDirection:e?"column":"row",justifyContent:["start","end"].includes(o)?"flex-"+o:o,flexWrap:!a||e?"nowrap":"wrap",marginTop:e?"":`-${h}`,marginBottom:e?"":`-${h}`,alignItems:t}},s.map((y,v)=>f("div",{role:"none",style:[n,{maxWidth:"100%"},e?{marginBottom:v!==g?u:""}:{marginRight:b?o==="space-between"&&v===g?"":d:v!==g?c:"",marginLeft:b?o==="space-between"&&v===0?"":d:"",paddingTop:h,paddingBottom:h}]},y)))}}),l$={blankHeightSmall:"28px",blankHeightMedium:"34px",blankHeightLarge:"40px",feedbackPadding:"4px 0 0 2px",feedbackHeightSmall:"24px",feedbackHeightMedium:"24px",feedbackHeightLarge:"26px",feedbackFontSizeSmall:"13px",feedbackFontSizeMedium:"14px",feedbackFontSizeLarge:"14px",labelFontSizeLeftSmall:"14px",labelFontSizeLeftMedium:"14px",labelFontSizeLeftLarge:"15px",labelFontSizeTopSmall:"13px",labelFontSizeTopMedium:"14px",labelFontSizeTopLarge:"14px",labelHeightSmall:"24px",labelHeightMedium:"26px",labelHeightLarge:"28px",labelPaddingVertical:"0 0 8px 2px",labelPaddingHorizontal:"0 12px 0 0",labelTextAlignVertical:"left",labelTextAlignHorizontal:"right"};const s$=e=>{const{textColor1:t,errorColor:r,warningColor:o,lineHeight:n,textColor3:i}=e;return Object.assign(Object.assign({},l$),{lineHeight:n,labelTextColor:t,asteriskColor:r,feedbackTextColorError:r,feedbackTextColorWarning:o,feedbackTextColor:i})},c$={name:"Form",common:De,self:s$};var $p=c$,d$=k("form",[j("inline",` + width: 100%; + display: inline-flex; + align-items: flex-start; + align-content: space-around; + `,[k("form-item",{width:"auto",marginRight:"18px"},[E("&:last-child",{marginRight:0})])])]);const li=Symbol("form"),Rp=Symbol("formItemInsts");var u$=function(e,t,r,o){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function l(d){try{c(o.next(d))}catch(u){a(u)}}function s(d){try{c(o.throw(d))}catch(u){a(u)}}function c(d){d.done?i(d.value):n(d.value).then(l,s)}c((o=o.apply(e,t||[])).next())})};const f$=Object.assign(Object.assign({},ye.props),{inline:Boolean,labelWidth:[Number,String],labelAlign:String,labelPlacement:{type:String,default:"top"},model:{type:Object,default:()=>{}},rules:Object,disabled:Boolean,size:String,showRequireMark:{type:Boolean,default:void 0},requireMarkPlacement:String,showFeedback:{type:Boolean,default:!0},onSubmit:{type:Function,default:e=>e.preventDefault()},showLabel:{type:Boolean,default:void 0}});var OO=q({name:"Form",props:f$,setup(e){const{mergedClsPrefixRef:t}=Ee(e);ye("Form","Form",d$,$p,e,t);const r={};function o(a,l=()=>!0){return u$(this,void 0,void 0,function*(){return yield new Promise((s,c)=>{const d=[];for(const u of lr(r)){const h=r[u];for(const g of h)g.path&&d.push(g.internalValidate(null,l))}Promise.all(d).then(u=>{if(u.some(h=>!h.valid)){const h=u.filter(g=>g.errors).map(g=>g.errors);a?a(h):c(h)}else a?a():s()})})})}function n(){for(const a of lr(r)){const l=r[a];for(const s of l)s.restoreValidation()}}return Ie(li,e),Ie(Rp,{formItems:r}),Object.assign({validate:o,restoreValidation:n},{mergedClsPrefix:t})},render(){const{mergedClsPrefix:e}=this;return f("form",{class:[`${e}-form`,this.inline&&`${e}-form--inline`],onSubmit:this.onSubmit},this.$slots)}});function ko(){return ko=Object.assign||function(e){for(var t=1;t1?t-1:0),o=1;o=i)return l;switch(l){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch{return"[Circular]"}break;default:return l}});return a}return e}function b$(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function mt(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||b$(t)&&typeof e=="string"&&!e)}function x$(e,t,r){var o=[],n=0,i=e.length;function a(l){o.push.apply(o,l||[]),n++,n===i&&r(o)}e.forEach(function(l){t(l,a)})}function Tp(e,t,r){var o=0,n=e.length;function i(a){if(a&&a.length){r(a);return}var l=o;o=o+1,l()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},ci={integer:function(t){return ci.number(t)&&parseInt(t,10)===t},float:function(t){return ci.number(t)&&!ci.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!ci.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Xs.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(Xs.url)},hex:function(t){return typeof t=="string"&&!!t.match(Xs.hex)}},P$=function(t,r,o,n,i){if(t.required&&r===void 0){Ep(t,r,o,n,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=t.type;a.indexOf(l)>-1?ci[l](r)||n.push(Dt(i.messages.types[l],t.fullField,t.type)):l&&typeof r!==t.type&&n.push(Dt(i.messages.types[l],t.fullField,t.type))},$$=function(t,r,o,n,i){var a=typeof t.len=="number",l=typeof t.min=="number",s=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=r,u=null,h=typeof r=="number",g=typeof r=="string",b=Array.isArray(r);if(h?u="number":g?u="string":b&&(u="array"),!u)return!1;b&&(d=r.length),g&&(d=r.replace(c,"_").length),a?d!==t.len&&n.push(Dt(i.messages[u].len,t.fullField,t.len)):l&&!s&&dt.max?n.push(Dt(i.messages[u].max,t.fullField,t.max)):l&&s&&(dt.max)&&n.push(Dt(i.messages[u].range,t.fullField,t.min,t.max))},un="enum",R$=function(t,r,o,n,i){t[un]=Array.isArray(t[un])?t[un]:[],t[un].indexOf(r)===-1&&n.push(Dt(i.messages[un],t.fullField,t[un].join(", ")))},T$=function(t,r,o,n,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||n.push(Dt(i.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(r)||n.push(Dt(i.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},je={required:Ep,whitespace:k$,type:P$,range:$$,enum:R$,pattern:T$},z$=function(t,r,o,n,i){var a=[],l=t.required||!t.required&&n.hasOwnProperty(t.field);if(l){if(mt(r,"string")&&!t.required)return o();je.required(t,r,n,a,i,"string"),mt(r,"string")||(je.type(t,r,n,a,i),je.range(t,r,n,a,i),je.pattern(t,r,n,a,i),t.whitespace===!0&&je.whitespace(t,r,n,a,i))}o(a)},_$=function(t,r,o,n,i){var a=[],l=t.required||!t.required&&n.hasOwnProperty(t.field);if(l){if(mt(r)&&!t.required)return o();je.required(t,r,n,a,i),r!==void 0&&je.type(t,r,n,a,i)}o(a)},O$=function(t,r,o,n,i){var a=[],l=t.required||!t.required&&n.hasOwnProperty(t.field);if(l){if(r===""&&(r=void 0),mt(r)&&!t.required)return o();je.required(t,r,n,a,i),r!==void 0&&(je.type(t,r,n,a,i),je.range(t,r,n,a,i))}o(a)},E$=function(t,r,o,n,i){var a=[],l=t.required||!t.required&&n.hasOwnProperty(t.field);if(l){if(mt(r)&&!t.required)return o();je.required(t,r,n,a,i),r!==void 0&&je.type(t,r,n,a,i)}o(a)},M$=function(t,r,o,n,i){var a=[],l=t.required||!t.required&&n.hasOwnProperty(t.field);if(l){if(mt(r)&&!t.required)return o();je.required(t,r,n,a,i),mt(r)||je.type(t,r,n,a,i)}o(a)},I$=function(t,r,o,n,i){var a=[],l=t.required||!t.required&&n.hasOwnProperty(t.field);if(l){if(mt(r)&&!t.required)return o();je.required(t,r,n,a,i),r!==void 0&&(je.type(t,r,n,a,i),je.range(t,r,n,a,i))}o(a)},A$=function(t,r,o,n,i){var a=[],l=t.required||!t.required&&n.hasOwnProperty(t.field);if(l){if(mt(r)&&!t.required)return o();je.required(t,r,n,a,i),r!==void 0&&(je.type(t,r,n,a,i),je.range(t,r,n,a,i))}o(a)},F$=function(t,r,o,n,i){var a=[],l=t.required||!t.required&&n.hasOwnProperty(t.field);if(l){if(r==null&&!t.required)return o();je.required(t,r,n,a,i,"array"),r!=null&&(je.type(t,r,n,a,i),je.range(t,r,n,a,i))}o(a)},B$=function(t,r,o,n,i){var a=[],l=t.required||!t.required&&n.hasOwnProperty(t.field);if(l){if(mt(r)&&!t.required)return o();je.required(t,r,n,a,i),r!==void 0&&je.type(t,r,n,a,i)}o(a)},L$="enum",D$=function(t,r,o,n,i){var a=[],l=t.required||!t.required&&n.hasOwnProperty(t.field);if(l){if(mt(r)&&!t.required)return o();je.required(t,r,n,a,i),r!==void 0&&je[L$](t,r,n,a,i)}o(a)},N$=function(t,r,o,n,i){var a=[],l=t.required||!t.required&&n.hasOwnProperty(t.field);if(l){if(mt(r,"string")&&!t.required)return o();je.required(t,r,n,a,i),mt(r,"string")||je.pattern(t,r,n,a,i)}o(a)},j$=function(t,r,o,n,i){var a=[],l=t.required||!t.required&&n.hasOwnProperty(t.field);if(l){if(mt(r,"date")&&!t.required)return o();if(je.required(t,r,n,a,i),!mt(r,"date")){var s;r instanceof Date?s=r:s=new Date(r),je.type(t,s,n,a,i),s&&je.range(t,s.getTime(),n,a,i)}}o(a)},H$=function(t,r,o,n,i){var a=[],l=Array.isArray(r)?"array":typeof r;je.required(t,r,n,a,i,l),o(a)},Zs=function(t,r,o,n,i){var a=t.type,l=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(mt(r,a)&&!t.required)return o();je.required(t,r,n,l,i,a),mt(r,a)||je.type(t,r,n,l,i)}o(l)},W$=function(t,r,o,n,i){var a=[],l=t.required||!t.required&&n.hasOwnProperty(t.field);if(l){if(mt(r)&&!t.required)return o();je.required(t,r,n,a,i)}o(a)},di={string:z$,method:_$,number:O$,boolean:E$,regexp:M$,integer:I$,float:A$,array:F$,object:B$,enum:D$,pattern:N$,date:j$,url:Zs,hex:Zs,email:Zs,required:H$,any:W$};function Js(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Qs=Js(),ui=function(){function e(r){this.rules=null,this._messages=Qs,this.define(r)}var t=e.prototype;return t.define=function(o){var n=this;if(!o)throw new Error("Cannot configure a schema with no rules");if(typeof o!="object"||Array.isArray(o))throw new Error("Rules must be an object");this.rules={},Object.keys(o).forEach(function(i){var a=o[i];n.rules[i]=Array.isArray(a)?a:[a]})},t.messages=function(o){return o&&(this._messages=Op(Js(),o)),this._messages},t.validate=function(o,n,i){var a=this;n===void 0&&(n={}),i===void 0&&(i=function(){});var l=o,s=n,c=i;if(typeof s=="function"&&(c=s,s={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,l),Promise.resolve(l);function d(y){var v=[],p={};function w(m){if(Array.isArray(m)){var x;v=(x=v).concat.apply(x,m)}else v.push(m)}for(var P=0;Pe.size!==void 0?e.size:(t==null?void 0:t.size)!==void 0?t.size:"medium")}}function V$(e){const t=Pe(li,null),r=R(()=>{if(o.value==="top")return;const{labelWidth:h}=e;if(h!==void 0)return Qe(h);if((t==null?void 0:t.labelWidth)!==void 0)return Qe(t.labelWidth)}),o=R(()=>{const{labelPlacement:h}=e;return h!==void 0?h:(t==null?void 0:t.labelPlacement)?t.labelPlacement:"top"}),n=R(()=>{const{labelAlign:h}=e;if(h)return h;if(t==null?void 0:t.labelAlign)return t.labelAlign}),i=R(()=>[{width:r.value},e.labelStyle]),a=R(()=>{const{showRequireMark:h}=e;return h!==void 0?h:t==null?void 0:t.showRequireMark}),l=R(()=>{const{requireMarkPlacement:h}=e;return h!==void 0?h:t==null?void 0:t.requireMarkPlacement}),s=W(!1),c=R(()=>{const{validationStatus:h}=e;if(h!==void 0)return h;if(s.value)return"error"}),d=R(()=>{const{showFeedback:h}=e;return h!==void 0?h:(t==null?void 0:t.showFeedback)!==void 0?t.showFeedback:!0}),u=R(()=>{const{showLabel:h}=e;return h!==void 0?h:(t==null?void 0:t.showLabel)!==void 0?t.showLabel:!0});return{validationErrored:s,mergedLabelStyle:i,mergedLabelPlacement:o,mergedLabelAlign:n,mergedShowRequireMark:a,mergedRequireMarkPlacement:l,mergedValidationStatus:c,mergedShowFeedback:d,mergedShowLabel:u}}function K$(e){const t=Pe(li,null),r=R(()=>{const{rulePath:a}=e;if(a!==void 0)return a;const{path:l}=e;if(l!==void 0)return l}),o=R(()=>{const a=[],{rule:l}=e;if(l!==void 0&&(Array.isArray(l)?a.push(...l):a.push(l)),t){const{rules:s}=t,{value:c}=r;if(s!==void 0&&c!==void 0){const d=Gl(s,c);d!==void 0&&(Array.isArray(d)?a.push(...d):a.push(d))}}return a}),n=R(()=>o.value.some(a=>a.required)),i=R(()=>n.value||e.required);return{mergedRules:o,mergedRequired:i}}var q$=q({name:"FormItemFeedback",props:{clsPrefix:{type:String,required:!0},explains:Array,feedback:String},render(){var e;const{feedback:t,clsPrefix:r}=this;return t?f("div",{key:t,class:`${r}-form-item-feedback__line`},t):(e=this.explains)===null||e===void 0?void 0:e.map(o=>f("div",{key:o,class:`${r}-form-item-feedback__line`},o))}});const{cubicBezierEaseInOut:Mp}=Qt;function G$({name:e="fade-down",fromOffset:t="-4px",enterDuration:r=".3s",leaveDuration:o=".3s",enterCubicBezier:n=Mp,leaveCubicBezier:i=Mp}={}){return[E(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0,transform:`translateY(${t})`}),E(`&.${e}-transition-enter-to, &.${e}-transition-leave-from`,{opacity:1,transform:"translateY(0)"}),E(`&.${e}-transition-leave-active`,{transition:`opacity ${o} ${i}, transform ${o} ${i}`}),E(`&.${e}-transition-enter-active`,{transition:`opacity ${r} ${n}, transform ${r} ${n}`})]}var Y$=k("form-item",{display:"grid",lineHeight:"var(--line-height)"},[k("form-item-label",` + grid-area: label; + align-items: center; + line-height: 1.25; + text-align: var(--label-text-align); + font-size: var(--label-font-size); + height: var(--label-height); + padding: var(--label-padding); + color: var(--label-text-color); + transition: color .3s var(--bezier); + box-sizing: border-box; + `,[O("asterisk",` + color: var(--asterisk-color); + transition: color .3s var(--bezier); + `)]),k("form-item-blank",{gridArea:"blank",minHeight:"var(--blank-height)"}),j("left-labelled",` + grid-template-areas: + "label blank" + "label feedback"; + grid-template-columns: auto minmax(0, 1fr); + `,[k("form-item-label",` + height: var(--blank-height); + line-height: var(--blank-height); + box-sizing: border-box; + white-space: nowrap; + flex-shrink: 0; + flex-grow: 0; + `)]),j("top-labelled",` + grid-template-areas: + "label" + "blank" + "feedback"; + grid-template-rows: var(--label-height) 1fr; + grid-template-columns: minmax(0, 100%); + `,[j("no-label",` + grid-template-areas: + "blank" + "feedback"; + grid-template-rows: 1fr; + `),k("form-item-label",{display:"flex",alignItems:"flex-end",justifyContent:"var(--label-text-align)"})]),k("form-item-blank",` + box-sizing: border-box; + display: flex; + align-items: center; + position: relative; + `),k("form-item-feedback-wrapper",` + grid-area: feedback; + box-sizing: border-box; + min-height: var(--feedback-height); + font-size: var(--feedback-font-size); + padding: var(--feedback-padding); + line-height: 1.25; + transform-origin: top left; + `,[k("form-item-feedback",{transition:"color .3s var(--bezier)",color:"var(--feedback-text-color)"},[j("warning",{color:"var(--feedback-text-color-warning)"}),j("error",{color:"var(--feedback-text-color-error)"}),G$({fromOffset:"-3px",enterDuration:".3s",leaveDuration:".2s"})])])]),Ip=function(e,t,r,o){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function l(d){try{c(o.next(d))}catch(u){a(u)}}function s(d){try{c(o.throw(d))}catch(u){a(u)}}function c(d){d.done?i(d.value):n(d.value).then(l,s)}c((o=o.apply(e,t||[])).next())})};const X$=Object.assign(Object.assign({},ye.props),{label:String,labelWidth:[Number,String],labelStyle:[String,Object],labelAlign:String,labelPlacement:String,path:String,first:Boolean,rulePath:String,required:Boolean,showRequireMark:{type:Boolean,default:void 0},requireMarkPlacement:String,showFeedback:{type:Boolean,default:void 0},rule:[Object,Array],size:String,ignorePathChange:Boolean,validationStatus:String,feedback:String,showLabel:{type:Boolean,default:void 0}});function Ap(e,t){return(...r)=>{var o;try{const n=e(...r);return!t&&(typeof n=="boolean"||n instanceof Error||Array.isArray(n))||((o=n)===null||o===void 0?void 0:o.then)?n:(n===void 0||qt("form-item/validate",`You return a ${typeof n} typed value in the validator method, which is not recommended. Please use `+(t?"`Promise`":"`boolean`, `Error` or `Promise`")+" typed value instead."),!0)}catch(n){qt("form-item/validate","An error is catched in the validation, so the validation won't be done. Your callback in `validate` method of `n-form` or `n-form-item` won't be called in this validation."),console.error(n);return}}}var EO=q({name:"FormItem",props:X$,setup(e){sC(Rp,"formItems",ke(e,"path"));const{mergedClsPrefixRef:t}=Ee(e),r=Pe(li,null),o=U$(e),n=V$(e),{validationErrored:i}=n,{mergedRequired:a,mergedRules:l}=K$(e),{mergedSize:s}=o,{mergedLabelPlacement:c,mergedLabelAlign:d}=n,u=W([]),h=W(ar()),g=R(()=>{const{feedback:T}=e;return T!=null?!0:u.value.length}),b=r?ke(r,"disabled"):W(!1),y=ye("Form","FormItem",Y$,$p,e,t);Ue(ke(e,"path"),()=>{e.ignorePathChange||v()});function v(){u.value=[],i.value=!1,e.feedback&&(h.value=ar())}function p(){C("blur")}function w(){C("change")}function P(){C("focus")}function m(){C("input")}function x(T,$){return Ip(this,void 0,void 0,function*(){let M,D,_,I;return typeof T=="string"?(M=T,D=$):T!==null&&typeof T=="object"&&(M=T.trigger,D=T.callback,_=T.shouldRuleBeApplied,I=T.options),yield new Promise((G,U)=>{C(M,_,I).then(({valid:N,errors:F})=>{N?(D&&D(),G()):(D&&D(F),U(F))})})})}const C=(T=null,$=()=>!0,M={suppressWarning:!0})=>Ip(this,void 0,void 0,function*(){const{path:D}=e;M?M.first||(M.first=e.first):M={};const{value:_}=l,I=r?Gl(r.model,D,null):void 0,G=(T?_.filter(F=>Array.isArray(F.trigger)?F.trigger.includes(T):F.trigger===T):_).filter($).map(F=>{const A=Object.assign({},F);return A.validator&&(A.validator=Ap(A.validator,!1)),A.asyncValidator&&(A.asyncValidator=Ap(A.asyncValidator,!0)),A});if(!G.length)return yield Promise.resolve({valid:!0});const U=D!=null?D:"__n_no_path__",N=new ui({[U]:G});return yield new Promise(F=>{N.validate({[U]:I},M,(A,re)=>{(A==null?void 0:A.length)?(u.value=A.map(be=>(be==null?void 0:be.message)||""),i.value=!0,F({valid:!1,errors:A})):(v(),F({valid:!0}))})})});Ie(Dl,{path:ke(e,"path"),disabled:b,mergedSize:o.mergedSize,restoreValidation:v,handleContentBlur:p,handleContentChange:w,handleContentFocus:P,handleContentInput:m});const S={validate:x,restoreValidation:v,internalValidate:C};return Object.assign(Object.assign(Object.assign(Object.assign({mergedClsPrefix:t,mergedRequired:a,hasFeedback:g,feedbackId:h,explains:u},n),o),S),{cssVars:R(()=>{var T;const{value:$}=s,{value:M}=c,D=M==="top"?"vertical":"horizontal",{common:{cubicBezierEaseInOut:_},self:{labelTextColor:I,asteriskColor:G,lineHeight:U,feedbackTextColor:N,feedbackTextColorWarning:F,feedbackTextColorError:A,feedbackPadding:re,[ce("labelHeight",$)]:be,[ce("blankHeight",$)]:Se,[ce("feedbackFontSize",$)]:Te,[ce("feedbackHeight",$)]:Oe,[ce("labelPadding",D)]:Re,[ce("labelTextAlign",D)]:Z,[ce(ce("labelFontSize",M),$)]:fe}}=y.value;let ee=(T=d.value)!==null&&T!==void 0?T:Z;return M==="top"&&(ee=ee==="right"?"flex-end":"flex-start"),{"--bezier":_,"--line-height":U,"--blank-height":Se,"--label-font-size":fe,"--label-text-align":ee,"--label-height":be,"--label-padding":Re,"--asterisk-color":G,"--label-text-color":I,"--feedback-padding":re,"--feedback-font-size":Te,"--feedback-height":Oe,"--feedback-text-color":N,"--feedback-text-color-warning":F,"--feedback-text-color-error":A}})})},render(){const{$slots:e,mergedClsPrefix:t,mergedShowLabel:r,mergedShowRequireMark:o,mergedRequireMarkPlacement:n}=this;return f("div",{class:[`${t}-form-item`,`${t}-form-item--${this.mergedSize}-size`,`${t}-form-item--${this.mergedLabelPlacement}-labelled`,!r&&`${t}-form-item--no-label`],style:this.cssVars},r&&(this.label||e.label)?f("label",{class:`${t}-form-item-label`,style:this.mergedLabelStyle},n!=="left"?Ae(e,"label",void 0,()=>[this.label]):null,(o!==void 0?o:this.mergedRequired)?f("span",{class:`${t}-form-item-label__asterisk`},n!=="left"?"\xA0*":"*\xA0"):null,n==="left"?Ae(e,"label",void 0,()=>[this.label]):null):null,f("div",{class:[`${t}-form-item-blank`,this.mergedValidationStatus&&`${t}-form-item-blank--${this.mergedValidationStatus}`]},e),this.mergedShowFeedback?f("div",{key:this.feedbackId,class:`${t}-form-item-feedback-wrapper`},f(ht,{name:"fade-down-transition",mode:"out-in"},{default:()=>{const i=f(q$,{clsPrefix:t,explains:this.explains,feedback:this.feedback}),{hasFeedback:a,mergedValidationStatus:l}=this;return a?l==="warning"?f("div",{key:"controlled-warning",class:`${t}-form-item-feedback ${t}-form-item-feedback--warning`},i):l==="error"?f("div",{key:"controlled-error",class:`${t}-form-item-feedback ${t}-form-item-feedback--error`},i):l==="success"?f("div",{key:"controlled-success",class:`${t}-form-item-feedback ${t}-form-item-feedback--success`},i):f("div",{key:"controlled-default",class:`${t}-form-item-feedback`},i):null}})):null)}});const Z$=Array.apply(null,{length:24}).map((e,t)=>{const r=t+1,o=(1/24*r*100).toFixed(2)+"%";return[j(`${r}-span`,{width:o}),j(`${r}-offset`,{marginLeft:o}),j(`${r}-push`,{left:o}),j(`${r}-pull`,{right:o})]});var Fp=E([k("row",{width:"100%",display:"flex",flexWrap:"wrap"}),k("col",{verticalAlign:"top",boxSizing:"border-box",display:"inline-block",position:"relative",zIndex:"auto"},[O("box",{position:"relative",zIndex:"auto",width:"100%",height:"100%"}),Z$])]);const Bp=Symbol("row"),J$={gutter:{type:[Array,Number,String],default:0},alignItems:String,justifyContent:String};var MO=q({name:"Row",props:J$,setup(e){const{mergedClsPrefixRef:t}=Ee(e);Pr("LegacyGrid",Fp,t);const r=Ve(()=>{const{gutter:n}=e;return Array.isArray(n)&&n[1]||0}),o=Ve(()=>{const{gutter:n}=e;return Array.isArray(n)?n[0]:Number(n)});return Ie(Bp,{mergedClsPrefixRef:t,gutterRef:ke(e,"gutter"),verticalGutterRef:r,horizontalGutterRef:o}),{mergedClsPrefix:t,styleMargin:Ve(()=>`-${Qe(r.value,{c:.5})} -${Qe(o.value,{c:.5})}`),styleWidth:Ve(()=>`calc(100% + ${Qe(o.value)})`)}},render(){return f("div",{class:`${this.mergedClsPrefix}-row`,style:{margin:this.styleMargin,width:this.styleWidth,alignItems:this.alignItems,justifyContent:this.justifyContent}},this.$slots)}});const Q$={span:{type:[String,Number],default:1},push:{type:[String,Number],default:0},pull:{type:[String,Number],default:0},offset:{type:[String,Number],default:0}};var IO=q({name:"Col",props:Q$,setup(e){Pr("Grid",Fp);const t=Pe(Bp,null);return t||Cr("col","`n-col` must be placed inside `n-row`."),{mergedClsPrefix:t.mergedClsPrefixRef,gutter:t.gutterRef,stylePadding:R(()=>`${Qe(t.verticalGutterRef.value,{c:.5})} ${Qe(t.horizontalGutterRef.value,{c:.5})}`),mergedPush:R(()=>Number(e.push)-Number(e.pull))}},render(){const{$slots:e,span:t,mergedPush:r,offset:o,stylePadding:n,gutter:i,mergedClsPrefix:a}=this;return f("div",{class:[`${a}-col`,{[`${a}-col--${t}-span`]:!0,[`${a}-col--${r}-push`]:r>0,[`${a}-col--${-r}-pull`]:r<0,[`${a}-col--${o}-offset`]:o}],style:{padding:n}},i?f("div",null,e):e)}});const eR=e=>{const{primaryColor:t,successColor:r,warningColor:o,errorColor:n,infoColor:i,fontWeightStrong:a}=e;return{fontWeight:a,rotate:"252deg",colorStartPrimary:ze(t,{alpha:.6}),colorEndPrimary:t,colorStartInfo:ze(i,{alpha:.6}),colorEndInfo:i,colorStartWarning:ze(o,{alpha:.6}),colorEndWarning:o,colorStartError:ze(n,{alpha:.6}),colorEndError:n,colorStartSuccess:ze(r,{alpha:.6}),colorEndSuccess:r}},tR={name:"GradientText",common:De,self:eR};var rR=tR,oR=k("gradient-text",` + display: inline-block; + font-weight: var(--font-weight); + -webkit-background-clip: text; + background-clip: text; + color: #0000; + white-space: nowrap; + background-image: linear-gradient(var(--rotate), var(--color-start) 0%, var(--color-end) 100%); + transition: + --color-start .3s var(--bezier), + --color-end .3s var(--bezier); +`);const nR=Object.assign(Object.assign({},ye.props),{size:[String,Number],fontSize:[String,Number],type:{type:String,default:"primary"},color:[Object,String],gradient:[Object,String]});var AO=q({name:"GradientText",props:nR,setup(e){lC();const{mergedClsPrefixRef:t}=Ee(e),r=R(()=>{const{type:a}=e;return a==="danger"?"error":a}),o=R(()=>{let a=e.size||e.fontSize;return a&&(a=Qe(a)),a||void 0}),n=R(()=>{const a=e.color||e.gradient;if(typeof a=="string")return a;if(a){const l=a.deg||0,s=a.from,c=a.to;return`linear-gradient(${l}deg, ${s} 0%, ${c} 100%)`}}),i=ye("GradientText","GradientText",oR,rR,e,t);return{mergedClsPrefix:t,compatibleType:r,styleFontSize:o,styleBgImage:n,cssVars:R(()=>{const{value:a}=r,{common:{cubicBezierEaseInOut:l},self:{rotate:s,[ce("colorStart",a)]:c,[ce("colorEnd",a)]:d,fontWeight:u}}=i.value;return{"--bezier":l,"--rotate":s,"--color-start":c,"--color-end":d,"--font-weight":u}})}},render(){const{mergedClsPrefix:e}=this;return f("span",{class:[`${e}-gradient-text`,`${e}-gradient-text--${this.compatibleType}-type`],style:[{fontSize:this.styleFontSize,backgroundImage:this.styleBgImage},this.cssVars]},this.$slots)}});function iR(){return{iconColor:"rgba(255, 255, 255, .9)"}}const aR=St({name:"Image",common:De,self:iR}),lR=f("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},f("path",{d:"M6 5C5.75454 5 5.55039 5.17688 5.50806 5.41012L5.5 5.5V14.5C5.5 14.7761 5.72386 15 6 15C6.24546 15 6.44961 14.8231 6.49194 14.5899L6.5 14.5V5.5C6.5 5.22386 6.27614 5 6 5ZM13.8536 5.14645C13.68 4.97288 13.4106 4.9536 13.2157 5.08859L13.1464 5.14645L8.64645 9.64645C8.47288 9.82001 8.4536 10.0894 8.58859 10.2843L8.64645 10.3536L13.1464 14.8536C13.3417 15.0488 13.6583 15.0488 13.8536 14.8536C14.0271 14.68 14.0464 14.4106 13.9114 14.2157L13.8536 14.1464L9.70711 10L13.8536 5.85355C14.0488 5.65829 14.0488 5.34171 13.8536 5.14645Z",fill:"currentColor"})),sR=f("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},f("path",{d:"M13.5 5C13.7455 5 13.9496 5.17688 13.9919 5.41012L14 5.5V14.5C14 14.7761 13.7761 15 13.5 15C13.2545 15 13.0504 14.8231 13.0081 14.5899L13 14.5V5.5C13 5.22386 13.2239 5 13.5 5ZM5.64645 5.14645C5.82001 4.97288 6.08944 4.9536 6.28431 5.08859L6.35355 5.14645L10.8536 9.64645C11.0271 9.82001 11.0464 10.0894 10.9114 10.2843L10.8536 10.3536L6.35355 14.8536C6.15829 15.0488 5.84171 15.0488 5.64645 14.8536C5.47288 14.68 5.4536 14.4106 5.58859 14.2157L5.64645 14.1464L9.79289 10L5.64645 5.85355C5.45118 5.65829 5.45118 5.34171 5.64645 5.14645Z",fill:"currentColor"}));var cR=E([E("body >",[k("image-container","position: fixed;")]),k("image-preview-container",` + position: fixed; + left: 0; + right: 0; + top: 0; + bottom: 0; + display: flex; + `),k("image-preview-overlay",` + z-index: -1; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + background: rgba(0, 0, 0, .3); + `,[ni()]),k("image-preview-toolbar",` + z-index: 1; + position: absolute; + left: 50%; + transform: translateX(-50%); + border-radius: 24px; + height: 48px; + bottom: 40px; + padding: 0 12px; + background: rgba(0, 0, 0, .35); + color: var(--icon-color); + transition: color .3s var(--bezier); + display: flex; + align-items: center; + `,[k("base-icon",` + padding: 0 8px; + font-size: 28px; + cursor: pointer; + `),ni()]),k("image-preview-wrapper",` + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + display: flex; + pointer-events: none; + `,[jr()]),k("image-preview",` + user-select: none; + pointer-events: all; + margin: auto; + max-height: 100vh; + max-width: 100vw; + transition: transform .3s var(--bezier); + `),k("image",` + display: inline-flex; + cursor: pointer; + max-height: 100%; + max-width: 100%; + `,[E("img",` + border-radius: inherit; + `)])]),Lp=q({name:"ImagePreview",props:{showToolbar:Boolean,onNext:Function,onPrev:Function,clsPrefix:{type:String,required:!0}},setup(e){const t=ye("Image","Image",cR,aR,{},ke(e,"clsPrefix"));let r=null;const o=W(null),n=W(null),i=W(void 0),a=W(!1),l=W(!1);function s(){const{value:U}=n;if(!r||!U)return;const{style:N}=U,F=r.getBoundingClientRect(),A=F.left+F.width/2,re=F.top+F.height/2;N.transformOrigin=`${A}px ${re}px`}function c(U){var N,F;switch(U.code){case"ArrowLeft":(N=e.onPrev)===null||N===void 0||N.call(e);break;case"ArrowRight":(F=e.onNext)===null||F===void 0||F.call(e);break;case"Escape":I();break}}e.onPrev&&Ue(a,U=>{U?ct("keyup",document,c):Xe("keyup",document,c)});let d=0,u=0,h=0,g=0,b=!1;function y(U){const{clientX:N,clientY:F}=U;h=N-d,g=F-u,Kn(_)}function v(){const{value:U}=o;if(!U)return{offsetX:0,offsetY:0};const N=U.getBoundingClientRect();let F=0,A=0;return N.width<=window.innerWidth?F=0:N.left>0?F=(N.width-window.innerWidth)/2:N.right0?A=(N.height-window.innerHeight)/2:N.bottom.5){m-=.5,_(!1);const U=v();m+=.5,_(!1),m-=.5,h=U.offsetX,g=U.offsetY,_()}}function _(U=!0){const{value:N}=o;if(!N)return;const{style:F}=N,A=`transform-origin: center; transform: translateX(${h}px) translateY(${g}px) rotate(${x}deg) scale(${m});`;b?F.cssText="cursor: grabbing; transition: none;"+A:F.cssText="cursor: grab;"+A+(U?"":"transition: none;"),U||N.offsetHeight}function I(){a.value=!a.value,l.value=!0}const G={setPreviewSrc:U=>{i.value=U},setThumbnailEl:U=>{r=U},toggleShow:I};return Object.assign(Object.assign({previewRef:o,previewWrapperRef:n,previewSrc:i,show:a,appear:qo(),displayed:l,handlePreviewMousedown:w,handlePreviewDblclick:P,syncTransformOrigin:s,handleAfterLeave:()=>{x=0,m=1,l.value=!1},zoomIn:M,zoomOut:D,rotateCounterclockwise:T,rotateClockwise:$,handleSwitchPrev:C,handleSwitchNext:S},G),{cssVars:R(()=>{const{common:{cubicBezierEaseInOut:U},self:{iconColor:N}}=t.value;return{"--bezier":U,"--icon-color":N}})})},render(){const{clsPrefix:e}=this;return f(nt,null,Ae(this.$slots,"default"),f(Ss,{show:this.show},{default:()=>this.show||this.displayed?or(f("div",{class:`${e}-image-preview-container`,style:this.cssVars},f(ht,{name:"fade-in-transition",appear:this.appear},{default:()=>this.show?f("div",{class:`${e}-image-preview-overlay`,onClick:this.toggleShow}):null}),this.showToolbar?f(ht,{name:"fade-in-transition",appear:this.appear},{default:()=>this.show?f("div",{class:`${e}-image-preview-toolbar`},this.onPrev?f(nt,null,f(Be,{clsPrefix:e,onClick:this.handleSwitchPrev},{default:()=>lR}),f(Be,{clsPrefix:e,onClick:this.handleSwitchNext},{default:()=>sR})):null,f(Be,{clsPrefix:e,onClick:this.rotateCounterclockwise},{default:()=>f(Q2,null)}),f(Be,{clsPrefix:e,onClick:this.rotateClockwise},{default:()=>f(J2,null)}),f(Be,{clsPrefix:e,onClick:this.zoomOut},{default:()=>f(tS,null)}),f(Be,{clsPrefix:e,onClick:this.zoomIn},{default:()=>f(eS,null)})):null}):null,f(ht,{name:"fade-in-scale-up-transition",onAfterLeave:this.handleAfterLeave,appear:this.appear,onEnter:this.syncTransformOrigin,onBeforeLeave:this.syncTransformOrigin},{default:()=>or(f("div",{class:`${e}-image-preview-wrapper`,ref:"previewWrapperRef"},f("img",{draggable:!1,onMousedown:this.handlePreviewMousedown,onDblclick:this.handlePreviewDblclick,class:`${e}-image-preview`,key:this.previewSrc,src:this.previewSrc,ref:"previewRef"})),[[Bo,this.show]])})),[[Cs,{enabled:this.show}]]):null}))}});const Dp=Symbol("image-group"),dR={showToolbar:{type:Boolean,default:!0}};var uR=q({name:"ImageGroup",props:dR,setup(e){let t;const{mergedClsPrefixRef:r}=Ee(e),o=ar(),n=no(),i=s=>{var c;t=s,(c=l.value)===null||c===void 0||c.setPreviewSrc(s)};function a(s){if(!(n==null?void 0:n.proxy))return;const d=n.proxy.$el.parentElement.getElementsByClassName(o);if(!d.length)return;const u=Array.from(d).findIndex(h=>h.dataset.previewSrc===t);~u?i(d[(u+s+d.length)%d.length].dataset.previewSrc):i(d[0].dataset.previewSrc)}Ie(Dp,{mergedClsPrefixRef:r,setPreviewSrc:i,setThumbnailEl:s=>{var c;(c=l.value)===null||c===void 0||c.setThumbnailEl(s)},toggleShow:()=>{var s;(s=l.value)===null||s===void 0||s.toggleShow()},groupId:o});const l=W(null);return{mergedClsPrefix:r,previewInstRef:l,next:()=>a(1),prev:()=>a(-1)}},render(){return f(Lp,{clsPrefix:this.mergedClsPrefix,ref:"previewInstRef",onPrev:this.prev,onNext:this.next,showToolbar:this.showToolbar},{default:()=>Ae(this.$slots,"default")})}});const fR={alt:String,height:[String,Number],imgProps:Object,objectFit:{type:String,default:"fill"},previewSrc:String,width:[String,Number],src:String,showToolbar:{type:Boolean,default:!0},onError:Function};var hR=q({name:"Image",props:fR,inheritAttrs:!1,setup(e){const t=W(null),r=ke(e,"imgProps"),o=W(null),n=Pe(Dp,null),{mergedClsPrefixRef:i}=n||Ee(e),a={click:()=>{const l=e.previewSrc||e.src;if(n){n.setPreviewSrc(l),n.setThumbnailEl(t.value),n.toggleShow();return}const{value:s}=o;!s||(s.setPreviewSrc(l),s.setThumbnailEl(t.value),s.toggleShow())}};return Object.assign({mergedClsPrefix:i,groupId:n==null?void 0:n.groupId,previewInstRef:o,imageRef:t,imgProps:r},a)},render(){const{mergedClsPrefix:e,imgProps:t={}}=this,r=f("div",Zt(this.$attrs,{role:"none",class:`${e}-image`}),f("img",Object.assign({},t,{class:this.groupId,ref:"imageRef",width:this.width||t.width,height:this.height||t.height,src:this.src||t.src,alt:this.alt||t.alt,"aria-label":this.alt||t.alt,onClick:this.click,onError:this.onError,style:{objectFit:this.objectFit},"data-preview-src":this.previewSrc||this.src})));return this.groupId?r:f(Lp,{clsPrefix:e,ref:"previewInstRef",showToolbar:this.showToolbar},{default:()=>r})}});const pR=e=>{const{baseColor:t,textColor2:r,bodyColor:o,cardColor:n,dividerColor:i,actionColor:a,scrollbarColor:l,scrollbarColorHover:s,invertedColor:c}=e;return{textColor:r,textColorInverted:"#FFF",color:o,colorEmbedded:a,headerColor:n,headerColorInverted:c,footerColor:a,footerColorInverted:c,headerBorderColor:i,headerBorderColorInverted:c,footerBorderColor:i,footerBorderColorInverted:c,siderBorderColor:i,siderBorderColorInverted:c,siderColor:n,siderColorInverted:c,siderToggleButtonBorder:`1px solid ${i}`,siderToggleButtonColor:t,siderToggleButtonIconColor:r,siderToggleButtonIconColorInverted:r,siderToggleBarColor:Ye(o,l),siderToggleBarColorHover:Ye(o,s),__invertScrollbar:"true"}},gR=St({name:"Layout",common:De,peers:{Scrollbar:yo},self:pR});var Np=gR,vR=k("layout",` + color: var(--text-color); + background-color: var(--color); + box-sizing: border-box; + position: relative; + z-index: auto; + flex: auto; + overflow: hidden; + transition: + box-shadow .3s var(--bezier), + background-color .3s var(--bezier), + color .3s var(--bezier); +`,[k("layout-scroll-container",` + overflow-x: hidden; + box-sizing: border-box; + height: 100%; + `),j("absolute-positioned",` + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `)]);const jp=Symbol("layoutSiderInjection"),Hp={type:String,default:"static"},mR={embedded:Boolean,position:Hp,nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,onScroll:Function,contentStyle:{type:[String,Object],default:""},hasSider:Boolean,siderPlacement:{type:String,default:"left"}},Wp=Symbol("layout");function Up(e){return q({name:e?"LayoutContent":"Layout",props:Object.assign(Object.assign({},ye.props),mR),setup(t){const r=W(null),o=W(null),{mergedClsPrefixRef:n}=Ee(t),i=ye("Layout","Layout",vR,Np,t,n);function a(c,d){if(t.nativeScrollbar){const{value:u}=r;u&&(d===void 0?u.scrollTo(c):u.scrollTo(c,d))}else{const{value:u}=o;u&&u.scrollTo(c,d)}}Ie(Wp,t);const l={display:"flex",flexWrap:"nowrap",width:"100%",flexDirection:"row"},s={scrollTo:a};return Object.assign({mergedClsPrefix:n,scrollableElRef:r,scrollbarInstRef:o,hasSiderStyle:l,mergedTheme:i,cssVars:R(()=>{const{common:{cubicBezierEaseInOut:c},self:d}=i.value;return{"--bezier":c,"--color":t.embedded?d.colorEmbedded:d.color,"--text-color":d.textColor}})},s)},render(){const{mergedClsPrefix:t,hasSider:r}=this,o=r?this.hasSiderStyle:void 0,n=[e&&`${t}-layout-content`,`${t}-layout`,`${t}-layout--${this.position}-positioned`];return f("div",{class:n,style:this.cssVars},this.nativeScrollbar?f("div",{ref:"scrollableElRef",class:`${t}-layout-scroll-container`,style:[this.contentStyle,o],onScroll:this.onScroll},this.$slots):f($r,Object.assign({},this.scrollbarProps,{onScroll:this.onScroll,ref:"scrollbarInstRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentStyle:[this.contentStyle,o]}),this.$slots))}})}var FO=Up(!1),BO=Up(!0),bR=k("layout-sider",` + flex-shrink: 0; + box-sizing: border-box; + position: relative; + z-index: 1; + color: var(--text-color); + transition: + color .3s var(--bezier), + border-color .3s var(--bezier), + min-width .3s var(--bezier), + max-width .3s var(--bezier), + transform .3s var(--bezier), + background-color .3s var(--bezier); + background-color: var(--color); + display: flex; + justify-content: flex-end; +`,[j("right-placement",` + justify-content: flex-start; + `,[j("bordered",` + border-right: none; + border-left: 1px solid var(--border-color); + `),j("collapsed",[k("layout-toggle-button",[k("base-icon",` + transform: rotate(180deg); + `)]),k("layout-toggle-bar",[E("&:hover",[O("top",{transform:"rotate(-12deg) scale(1.15) translateY(-2px)"}),O("bottom",{transform:"rotate(12deg) scale(1.15) translateY(2px)"})])])]),k("layout-toggle-button",` + left: 0; + transform: translateX(-50%) translateY(-50%); + `,[k("base-icon",` + transform: rotate(0); + `)]),k("layout-toggle-bar",` + left: -28px; + transform: rotate(180deg); + `,[E("&:hover",[O("top",{transform:"rotate(12deg) scale(1.15) translateY(-2px)"}),O("bottom",{transform:"rotate(-12deg) scale(1.15) translateY(2px)"})])])]),j("collapsed",[k("layout-toggle-bar",[E("&:hover",[O("top",{transform:"rotate(-12deg) scale(1.15) translateY(-2px)"}),O("bottom",{transform:"rotate(12deg) scale(1.15) translateY(2px)"})])]),k("layout-toggle-button",[k("base-icon",` + transform: rotate(0); + `)])]),k("layout-toggle-button",` + transition: + color .3s var(--bezier), + right .3s var(--bezier), + left .3s var(--bezier), + border-color .3s var(--bezier), + background-color .3s var(--bezier); + cursor: pointer; + width: 24px; + height: 24px; + position: absolute; + top: 50%; + right: 0; + border-radius: 50%; + display: flex; + align-items: center; + justify-content: center; + font-size: 18px; + color: var(--toggle-button-icon-color); + border: var(--toggle-button-border); + background-color: var(--toggle-button-color); + box-shadow: 0 2px 4px 0px rgba(0, 0, 0, .06); + transform: translateX(50%) translateY(-50%); + `,[k("base-icon",` + transition: transform .3s var(--bezier); + transform: rotate(180deg); + `)]),k("layout-toggle-bar",` + cursor: pointer; + height: 72px; + width: 32px; + position: absolute; + top: calc(50% - 36px); + right: -28px; + `,[O("top, bottom",` + position: absolute; + width: 4px; + border-radius: 2px; + height: 38px; + left: 14px; + transition: + background-color .3s var(--bezier), + transform .3s var(--bezier); + `),O("bottom",` + position: absolute; + top: 34px; + `),E("&:hover",[O("top",{transform:"rotate(12deg) scale(1.15) translateY(-2px)"}),O("bottom",{transform:"rotate(-12deg) scale(1.15) translateY(2px)"})]),O("top, bottom",{backgroundColor:"var(--toggle-bar-color)"}),E("&:hover",[O("top, bottom",{backgroundColor:"var(--toggle-bar-color-hover)"})])]),O("border",` + position: absolute; + top: 0; + right: 0; + bottom: 0; + width: 1px; + transition: background-color .3s var(--bezier); + `),k("layout-sider-scroll-container",` + flex-grow: 1; + flex-shrink: 0; + box-sizing: border-box; + height: 100%; + opacity: 0; + transition: opacity .3s var(--bezier); + max-width: 100%; + `),j("show-content",[k("layout-sider-scroll-container",{opacity:1})]),j("absolute-positioned",` + position: absolute; + left: 0; + top: 0; + bottom: 0; + `),j("bordered",` + border-right: 1px solid var(--border-color); + `)]),xR=q({name:"LayoutToggleButton",props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return f("div",{class:`${e}-layout-toggle-button`,onClick:this.onClick},f(Be,{clsPrefix:e},{default:()=>f(ca,null)}))}}),yR=q({props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return f("div",{onClick:this.onClick,class:`${e}-layout-toggle-bar`},f("div",{class:`${e}-layout-toggle-bar__top`}),f("div",{class:`${e}-layout-toggle-bar__bottom`}))}});const wR={position:Hp,bordered:Boolean,collapsedWidth:{type:Number,default:48},width:{type:[Number,String],default:272},contentStyle:{type:[String,Object],default:""},collapseMode:{type:String,default:"transform"},collapsed:{type:Boolean,default:void 0},defaultCollapsed:Boolean,showCollapsedContent:{type:Boolean,default:!0},showTrigger:{type:[Boolean,String],default:!1},nativeScrollbar:{type:Boolean,default:!0},inverted:Boolean,scrollbarProps:Object,triggerStyle:[String,Object],collapsedTriggerStyle:[String,Object],"onUpdate:collapsed":[Function,Array],onUpdateCollapsed:[Function,Array],onAfterEnter:Function,onAfterLeave:Function,onExpand:[Function,Array],onCollapse:[Function,Array],onScroll:Function};var LO=q({name:"LayoutSider",props:Object.assign(Object.assign({},ye.props),wR),setup(e){const t=Pe(Wp),r=W(null),o=W(null),n=R(()=>Qe(s.value?e.collapsedWidth:e.width)),i=R(()=>e.collapseMode!=="transform"?{}:{minWidth:Qe(e.width)}),a=R(()=>t?t.siderPlacement:"left"),l=W(e.defaultCollapsed),s=gt(ke(e,"collapsed"),l);function c(y,v){if(e.nativeScrollbar){const{value:p}=r;p&&(v===void 0?p.scrollTo(y):p.scrollTo(y,v))}else{const{value:p}=o;p&&p.scrollTo(y,v)}}function d(){const{"onUpdate:collapsed":y,onUpdateCollapsed:v,onExpand:p,onCollapse:w}=e,{value:P}=s;v&&ue(v,!P),y&&ue(y,!P),l.value=!P,P?p&&ue(p):w&&ue(w)}Ie(jp,{collapsedRef:s,collapseModeRef:ke(e,"collapseMode")});const{mergedClsPrefixRef:u}=Ee(e),h=ye("Layout","LayoutSider",bR,Np,e,u);function g(y){var v,p;y.propertyName==="max-width"&&(s.value?(v=e.onAfterLeave)===null||v===void 0||v.call(e):(p=e.onAfterEnter)===null||p===void 0||p.call(e))}const b={scrollTo:c};return Object.assign({scrollableElRef:r,scrollbarInstRef:o,mergedClsPrefix:u,mergedTheme:h,styleMaxWidth:n,mergedCollapsed:s,scrollContainerStyle:i,siderPlacement:a,handleTransitionend:g,handleTriggerClick:d,cssVars:R(()=>{const{common:{cubicBezierEaseInOut:y},self:v}=h.value,{siderToggleButtonColor:p,siderToggleButtonBorder:w,siderToggleBarColor:P,siderToggleBarColorHover:m}=v,x={"--bezier":y,"--toggle-button-color":p,"--toggle-button-border":w,"--toggle-bar-color":P,"--toggle-bar-color-hover":m};return e.inverted?(x["--color"]=v.siderColorInverted,x["--text-color"]=v.textColorInverted,x["--border-color"]=v.siderBorderColorInverted,x["--toggle-button-icon-color"]=v.siderToggleButtonIconColorInverted,x.__invertScrollbar=v.__invertScrollbar):(x["--color"]=v.siderColor,x["--text-color"]=v.textColor,x["--border-color"]=v.siderBorderColor,x["--toggle-button-icon-color"]=v.siderToggleButtonIconColor),x})},b)},render(){const{mergedClsPrefix:e,mergedCollapsed:t,showTrigger:r}=this;return f("aside",{class:[`${e}-layout-sider`,`${e}-layout-sider--${this.position}-positioned`,`${e}-layout-sider--${this.siderPlacement}-placement`,this.bordered&&`${e}-layout-sider--bordered`,t&&`${e}-layout-sider--collapsed`,(!t||this.showCollapsedContent)&&`${e}-layout-sider--show-content`],onTransitionend:this.handleTransitionend,style:[this.cssVars,{maxWidth:this.styleMaxWidth,width:Qe(this.width)}]},this.nativeScrollbar?f("div",{class:`${e}-layout-sider-scroll-container`,onScroll:this.onScroll,style:[this.scrollContainerStyle,this.contentStyle,{overflow:"auto"}],ref:"scrollableElRef"},this.$slots):f($r,Object.assign({},this.scrollbarProps,{onScroll:this.onScroll,ref:"scrollbarInstRef",style:this.scrollContainerStyle,contentStyle:this.contentStyle,theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,builtinThemeOverrides:this.inverted&&this.cssVars.__invertScrollbar==="true"?{colorHover:"rgba(255, 255, 255, .4)",color:"rgba(255, 255, 255, .3)"}:void 0}),this.$slots),r?r==="bar"?f(yR,{clsPrefix:e,style:t?this.collapsedTriggerStyle:this.triggerStyle,onClick:this.handleTriggerClick}):f(xR,{clsPrefix:e,style:t?this.collapsedTriggerStyle:this.triggerStyle,onClick:this.handleTriggerClick}):null)}});const CR=e=>{const{textColor2:t,modalColor:r,borderColor:o,fontSize:n,primaryColor:i}=e;return{loaderFontSize:n,loaderTextColor:t,loaderColor:r,loaderBorder:`1px solid ${o}`,loadingColor:i}},SR=St({name:"Log",common:De,peers:{Scrollbar:yo,Code:Gh},self:CR});var kR=SR,PR=q({name:"LogLoader",props:{clsPrefix:{type:String,required:!0}},setup(){return{locale:kr("Log").localeRef}},render(){const{clsPrefix:e}=this;return f("div",{class:`${e}-log-loader`},f(Lr,{clsPrefix:e,strokeWidth:24,scale:.85}),f("span",{class:`${e}-log-loader__content`},this.locale.loading))}}),$R=q({props:{line:{type:String,default:""}},setup(e){const{trimRef:t,highlightRef:r,languageRef:o,mergedHljsRef:n}=Pe(Vp),i=W(null);function a(){const s=t.value?(e.line||"").trim():e.line;i.value&&(i.value.innerHTML=l(o.value,s,!1))}function l(s,c,d){d&&(c=c.trim());const{value:u}=n;return u&&s&&u.getLanguage(s)?u.highlight(c,{language:s}).value:c}return wt(()=>{r.value&&a()}),Ue(ke(e,"line"),()=>{r.value&&a()}),{highlight:r,selfRef:i}},render(){const{highlight:e}=this;return f("pre",{ref:"selfRef"},e?null:this.line)}}),RR=k("log",` + position: relative; + box-sizing: border-box; + transition: + border-color .3s var(--bezier), + color .3s var(--bezier); +`,[O("lines",` + margin: 0; + white-space: pre-wrap; + `),E("pre",` + margin: 0; + `),k("log-loader",` + transition: + color .3s var(--bezier), + background-color .3s var(--bezier), + border-color .3s var(--bezier); + box-sizing: border-box; + position: absolute; + right: 16px; + top: 8px; + height: 34px; + border-radius: 17px; + line-height: 34px; + white-space: nowrap; + overflow: hidden; + border: var(--loader-border); + color: var(--loader-text-color); + background-color: var(--loader-color); + font-size: var(--loader-font-size); + `,[jr(),O("content",` + display: inline-block; + vertical-align: bottom; + line-height: 34px; + padding-left: 40px; + padding-right: 20px; + white-space: nowrap; + `),k("base-loading",` + color: var(--loading-color); + position: absolute; + left: 12px; + top: calc(50% - 10px); + font-size: 20px; + width: 20px; + height: 20px; + display: inline-block; + `)])]);const Vp=Symbol("log"),TR=Object.assign(Object.assign({},ye.props),{loading:{type:Boolean,default:!1},trim:{type:Boolean,default:!1},log:String,fontSize:{type:Number,default:14},lines:{type:Array,default:()=>[]},lineHeight:{type:Number,default:1.25},language:String,rows:{type:Number,default:15},offsetTop:{type:Number,default:0},offsetBottom:{type:Number,default:0},hljs:{type:Object,default:void 0},onReachTop:Function,onReachBottom:Function,onRequireMore:Function});var DO=q({name:"Log",props:TR,setup(e){const{mergedClsPrefixRef:t}=Ee(e),r=W(!1),o=R(()=>e.language!==void 0),n=R(()=>{const b=Math.floor(e.fontSize*e.lineHeight);return`calc(${e.rows*b}px)`}),i=R(()=>{const{log:b}=e;return b?b.split(` +`):e.lines}),a=W(null),l=ye("Log","Log",RR,kR,e,t);function s(b){const y=b.target,v=y.firstElementChild;if(r.value){Ct(()=>{r.value=!1});return}const p=y.offsetHeight,w=y.scrollTop,P=v.offsetHeight,m=w,x=P-w-p;if(m<=e.offsetTop){const{onReachTop:C,onRequireMore:S}=e;S&&S("top"),C&&C()}if(x<=e.offsetBottom){const{onReachBottom:C,onRequireMore:S}=e;S&&S("bottom"),C&&C()}}const c=ww(d,300);function d(b){if(r.value){Ct(()=>{r.value=!1});return}if(a.value){const{containerRef:y,contentRef:v}=a.value;if(y&&v){const p=y.offsetHeight,w=y.scrollTop,P=v.offsetHeight,m=w,x=P-w-p,C=b.deltaY;if(m===0&&C<0){const{onRequireMore:S}=e;S&&S("top")}if(x<=0&&C>0){const{onRequireMore:S}=e;S&&S("bottom")}}}}function u(b){const{value:y}=a;if(!y)return;const{slient:v,top:p,position:w}=b;v&&(r.value=!0),p!==void 0?y.scrollTo({left:0,top:p}):(w==="bottom"||w==="top")&&y.scrollTo({position:w})}function h(b=!1){qt("log","`scrollToTop` is deprecated, please use `scrollTo({ position: 'top'})` instead."),u({position:"top",slient:b})}function g(b=!1){qt("log","`scrollToTop` is deprecated, please use `scrollTo({ position: 'bottom'})` instead."),u({position:"bottom",slient:b})}return Ie(Vp,{languageRef:ke(e,"language"),mergedHljsRef:Uf(e),trimRef:ke(e,"trim"),highlightRef:o}),{mergedClsPrefix:t,scrollbarRef:a,mergedTheme:l,styleHeight:n,mergedLines:i,scrollTo:u,scrollToTop:h,scrollToBottom:g,handleWheel:c,handleScroll:s,cssVars:R(()=>{const{self:{loaderFontSize:b,loaderTextColor:y,loaderColor:v,loaderBorder:p,loadingColor:w},common:{cubicBezierEaseInOut:P}}=l.value;return{"--bezier":P,"--loader-font-size":b,"--loader-border":p,"--loader-color":v,"--loader-text-color":y,"--loading-color":w}})}},render(){const{mergedClsPrefix:e,mergedTheme:t}=this;return f("div",{class:`${e}-log`,style:[{lineHeight:this.lineHeight,height:this.styleHeight},this.cssVars],onWheelPassive:this.handleWheel},[f($r,{ref:"scrollbarRef",theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar,onScroll:this.handleScroll},{default:()=>f(tk,{internalNoHighlight:!0,theme:t.peers.Code,themeOverrides:t.peerOverrides.Code},{default:()=>this.mergedLines.map((r,o)=>f($R,{key:o,line:r}))})}),f(ht,{name:"fade-in-scale-up-transition"},{default:()=>this.loading?f(PR,{clsPrefix:e}):null})])}});const ec={internalKey:{type:[String,Number],required:!0},root:Boolean,isGroup:Boolean,level:{type:Number,required:!0},title:[String,Function],extra:[String,Function]};var Kp=q({name:"MenuOptionContent",props:{collapsed:Boolean,disabled:Boolean,title:[String,Function],icon:Function,extra:[String,Function],showArrow:Boolean,childActive:Boolean,hover:Boolean,paddingLeft:Number,maxIconSize:{type:Number,required:!0},activeIconSize:{type:Number,required:!0},iconMarginRight:{type:Number,required:!0},clsPrefix:{type:String,required:!0},onClick:Function,tmNode:{type:Object,required:!0}},setup(e){const{props:t}=Pe(Pa);return{menuProps:t,style:R(()=>{const{paddingLeft:r}=e;return{paddingLeft:r&&`${r}px`}}),iconStyle:R(()=>{const{maxIconSize:r,activeIconSize:o,iconMarginRight:n}=e;return{width:`${r}px`,height:`${r}px`,fontSize:`${o}px`,marginRight:`${n}px`}})}},render(){const{clsPrefix:e,tmNode:t,menuProps:{renderIcon:r,renderLabel:o,renderExtra:n,expandIcon:i}}=this,a=r?r(t.rawNode):Ke(this.icon);return f("div",{onClick:this.onClick,role:"none",class:[`${e}-menu-item-content`,{[`${e}-menu-item-content--collapsed`]:this.collapsed,[`${e}-menu-item-content--child-active`]:this.childActive,[`${e}-menu-item-content--disabled`]:this.disabled,[`${e}-menu-item-content--hover`]:this.hover}],style:this.style},a&&f("div",{class:`${e}-menu-item-content__icon`,style:this.iconStyle,role:"none"},[a]),f("div",{class:`${e}-menu-item-content-header`,role:"none"},o?o(t.rawNode):Ke(this.title),this.extra||n?f("span",{class:`${e}-menu-item-content-header__extra`}," ",n?n(t.rawNode):Ke(this.extra)):null),this.showArrow?f(Be,{ariaHidden:!0,class:`${e}-menu-item-content__arrow`,clsPrefix:e},{default:()=>i?i(t.rawNode):f(X2,null)}):null)}});const qp=Object.assign(Object.assign({},ec),{rawNodes:{type:Array,default:()=>[]},tmNodes:{type:Array,default:()=>[]},tmNode:{type:Object,required:!0},disabled:{type:Boolean,default:!1},icon:Function,onClick:Function}),tc=Symbol("submenu");var zR=q({name:"Submenu",props:qp,setup(e){const t=rc(e),{NMenu:r,NSubmenu:o}=t,{props:n,mergedCollapsedRef:i}=r,a=R(()=>{const{disabled:u}=e;return(o==null?void 0:o.mergedDisabledRef.value)||n.disabled?!0:u}),l=W(!1);Ie(tc,{paddingLeftRef:t.paddingLeft,mergedDisabledRef:a}),Ie(oc,null);function s(){const{onClick:u}=e;u&&u()}function c(){a.value||(i.value||r.toggleExpand(e.internalKey),s())}function d(u){l.value=u}return{menuProps:n,doSelect:r.doSelect,inverted:r.invertedRef,isHorizontal:r.isHorizontalRef,mergedClsPrefix:r.mergedClsPrefixRef,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,iconMarginRight:t.iconMarginRight,dropdownPlacement:t.dropdownPlacement,dropdownShow:l,paddingLeft:t.paddingLeft,mergedDisabled:a,mergedValue:r.mergedValueRef,childActive:Ve(()=>r.activePathRef.value.includes(e.internalKey)),collapsed:R(()=>n.mode==="horizontal"?!1:i.value?!0:!r.mergedExpandedKeysRef.value.includes(e.internalKey)),dropdownEnabled:R(()=>!a.value&&(n.mode==="horizontal"||i.value)),handlePopoverShowChange:d,handleClick:c}},render(){var e;const{mergedClsPrefix:t,menuProps:{renderIcon:r,renderLabel:o}}=this,n=()=>{const{isHorizontal:a,paddingLeft:l,collapsed:s,mergedDisabled:c,maxIconSize:d,activeIconSize:u,title:h,childActive:g,icon:b,handleClick:y,dropdownShow:v,iconMarginRight:p,tmNode:w}=this;return f(Kp,{tmNode:w,paddingLeft:l,collapsed:s,disabled:c,iconMarginRight:p,maxIconSize:d,activeIconSize:u,title:h,showArrow:!a,childActive:g,clsPrefix:t,icon:b,hover:v,onClick:y})},i=()=>f(mo,null,{default:()=>{const{tmNodes:a,collapsed:l}=this;return l?null:f("div",{class:`${t}-submenu-children`,role:"menu"},a.map(s=>nc(s,this.menuProps)))}});return this.root?f(hp,Object.assign({},(e=this.menuProps)===null||e===void 0?void 0:e.dropdownProps,{builtinThemeOverrides:{fontSizeLarge:"14px",optionIconSizeLarge:"18px"},value:this.mergedValue,size:"large",trigger:"hover",disabled:!this.dropdownEnabled,placement:this.dropdownPlacement,keyField:this.menuProps.keyField,labelField:this.menuProps.labelField,childrenField:this.menuProps.childrenField,onUpdateShow:this.handlePopoverShowChange,options:this.rawNodes,onSelect:this.doSelect,inverted:this.inverted,renderIcon:r,renderLabel:o}),{default:()=>f("div",{class:`${t}-submenu`,role:"menuitem","aria-expanded":!this.collapsed},n(),this.isHorizontal?null:i())}):f("div",{class:`${t}-submenu`,role:"menuitem","aria-expanded":!this.collapsed},n(),i())}});const ka=8;function rc(e){const t=Pe(Pa),{props:r,mergedCollapsedRef:o}=t,n=Pe(tc,null),i=Pe(oc,null),a=R(()=>r.mode==="horizontal"),l=R(()=>a.value?r.dropdownPlacement:"tmNodes"in e?"right-start":"right"),s=R(()=>{var h;return Math.max((h=r.collapsedIconSize)!==null&&h!==void 0?h:r.iconSize,r.iconSize)}),c=R(()=>{var h;return!a.value&&e.root&&o.value&&(h=r.collapsedIconSize)!==null&&h!==void 0?h:r.iconSize}),d=R(()=>{if(a.value)return;const{collapsedWidth:h,indent:g,rootIndent:b}=r,{root:y,isGroup:v}=e,p=b===void 0?g:b;if(y)return o.value?h/2-s.value/2:p;if(i)return g/2+i.paddingLeftRef.value;if(n)return(v?g/2:g)+n.paddingLeftRef.value}),u=R(()=>{const{collapsedWidth:h,indent:g,rootIndent:b}=r,{value:y}=s,{root:v}=e;return a.value||!v||!o.value?ka:(b===void 0?g:b)+y+ka-(h+y)/2});return{dropdownPlacement:l,activeIconSize:c,maxIconSize:s,paddingLeft:d,iconMarginRight:u,NMenu:t,NSubmenu:n}}const Gp=Object.assign(Object.assign({},ec),{tmNodes:{type:Array,required:!0}}),oc=Symbol("menu-item-group");var _R=q({name:"MenuOptionGroup",props:Gp,setup(e){Ie(tc,null);const t=rc(e);Ie(oc,{paddingLeftRef:t.paddingLeft});const{mergedClsPrefixRef:r,props:o}=Pe(Pa);return function(){const{value:n}=r,i=t.paddingLeft.value;return f("div",{class:`${n}-menu-item-group`,role:"group"},f("span",{class:`${n}-menu-item-group-title`,style:i!==void 0?`padding-left: ${i}px;`:void 0},Ke(e.title),e.extra?f(nt,null," ",Ke(e.extra)):null),f("div",null,e.tmNodes.map(a=>nc(a,o))))}}});const Yp=Object.assign(Object.assign({},ec),{tmNode:{type:Object,required:!0},disabled:Boolean,icon:Function,onClick:Function});var OR=q({name:"MenuOption",props:Yp,setup(e){const t=rc(e),{NSubmenu:r,NMenu:o}=t,{props:n,mergedClsPrefixRef:i,mergedCollapsedRef:a}=o,l=r?r.mergedDisabledRef:{value:!1},s=R(()=>l.value||e.disabled);function c(u){const{onClick:h}=e;h&&h(u)}function d(u){s.value||(o.doSelect(e.internalKey,e.tmNode.rawNode),c(u))}return{mergedClsPrefix:i,dropdownPlacement:t.dropdownPlacement,paddingLeft:t.paddingLeft,iconMarginRight:t.iconMarginRight,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,mergedTheme:o.mergedThemeRef,menuProps:n,dropdownEnabled:Ve(()=>e.root&&a.value&&n.mode!=="horizontal"&&!s.value),selected:R(()=>o.mergedValueRef.value===e.internalKey),mergedDisabled:s,handleClick:d}},render(){const{mergedClsPrefix:e,mergedTheme:t,tmNode:r,menuProps:{renderLabel:o}}=this;return f("div",{role:"menuitem",class:[`${e}-menu-item`,this.selected&&`${e}-menu-item--selected`,this.mergedDisabled&&`${e}-menu-item--disabled`]},f(Qh,{theme:t.peers.Tooltip,themeOverrides:t.peerOverrides.Tooltip,trigger:"hover",placement:this.dropdownPlacement,disabled:!this.dropdownEnabled||this.title===void 0,internalExtraClass:["menu-tooltip"]},{default:()=>o?o(r.rawNode):Ke(this.title),trigger:()=>f(Kp,{tmNode:r,clsPrefix:e,paddingLeft:this.paddingLeft,iconMarginRight:this.iconMarginRight,maxIconSize:this.maxIconSize,activeIconSize:this.activeIconSize,title:this.title,extra:this.extra,disabled:this.mergedDisabled,icon:this.icon,onClick:this.handleClick})}))}});const ER=lr(Gp),MR=lr(Yp),IR=lr(qp);function nc(e,t){const{labelField:r}=t,{rawNode:o,key:n,level:i,isGroup:a}=e,l=Object.assign(Object.assign({},o),{title:o.title||o[r],extra:o.titleExtra||o.extra,key:n,internalKey:n,level:i,root:i===0,isGroup:a});return e.children?e.isGroup?f(_R,er(l,ER,{tmNodes:e.children,key:n})):f(zR,er(l,IR,{key:n,rawNodes:e.rawNode[t.childrenField],tmNodes:e.children,tmNode:e})):f(OR,er(l,MR,{key:n,tmNode:e}))}function AR(e,t,r){return{itemTextColorInverted:e,itemTextColorHoverInverted:t,itemTextColorChildActiveInverted:t,itemTextColorActiveInverted:t,itemIconColorInverted:e,itemIconColorHoverInverted:t,itemIconColorActiveInverted:t,itemIconColorChildActiveInverted:t,itemIconColorCollapsedInverted:e,arrowColorInverted:e,arrowColorHoverInverted:t,arrowColorChildActiveInverted:t,arrowColorActiveInverted:t,groupTextColorInverted:r}}const FR=e=>{const{borderRadius:t,textColor3:r,primaryColor:o,textColor2:n,primaryColorHover:i,textColor1:a,fontSize:l}=e;return Object.assign({borderRadius:t,color:"#0000",groupTextColor:r,itemColorActive:ze(o,{alpha:.1}),itemColorActiveCollapsed:"#0000",itemTextColor:n,itemTextColorHover:i,itemTextColorChildActive:o,itemTextColorActive:o,itemIconColor:a,itemIconColorHover:i,itemIconColorActive:o,itemIconColorChildActive:o,itemIconColorCollapsed:a,itemHeight:"42px",arrowColor:o,arrowColorHover:i,arrowColorChildActive:o,arrowColorActive:o,colorInverted:"#0000",itemColorActiveInverted:o,itemColorActiveCollapsedInverted:o,borderColorHorizontal:"#0000",fontSize:l},AR("#BBB","#FFF","#AAA"))},BR=St({name:"Menu",common:De,peers:{Tooltip:Bs},self:FR});var LR=BR,DR=E([k("menu",` + background-color: var(--color); + color: var(--item-text-color); + overflow: hidden; + transition: background-color .3s var(--bezier); + box-sizing: border-box; + font-size: var(--font-size); + padding-bottom: 6px; + `,[j("horizontal",{display:"inline-flex",paddingBottom:0},[k("submenu",{margin:0}),k("menu-item",{margin:0},[E("&::before",{backgroundColor:"#0000 !important"}),j("selected",[k("menu-item-content",{borderBottom:"2px solid var(--border-color-horizontal)"})])]),k("menu-item-content",{padding:"0 20px",borderBottom:"2px solid #0000"},[j("child-active",{borderBottom:"2px solid var(--border-color-horizontal)"}),qe("disabled",[Xp({borderBottom:"2px solid var(--border-color-horizontal)"},null)])])]),j("collapsed",[k("menu-item",[j("selected",[E("&::before",{backgroundColor:"var(--item-color-active-collapsed) !important"})])]),k("menu-item-content",[k("menu-item-content-header",{opacity:0}),O("arrow",{opacity:0}),O("icon",{color:"var(--item-icon-color-collapsed)"})])]),k("menu-item",` + transition: background-color .3s var(--bezier); + height: var(--item-height); + margin-top: 6px; + position: relative; + `,[E("&::before",` + z-index: auto; + content: ""; + background-color: #0000; + position: absolute; + left: 8px; + right: 8px; + top: 0; + bottom: 0; + pointer-events: none; + border-radius: var(--border-radius); + transition: background-color .3s var(--bezier); + `),qe("disabled",[E("&:active::before",{backgroundColor:"var(--item-color-active)"})]),j("selected",[E("&::before",{backgroundColor:"var(--item-color-active)"}),k("menu-item-content",[O("arrow",{color:"var(--arrow-color-active)"}),O("icon",{color:"var(--item-icon-color-active)"}),k("menu-item-content-header",{color:"var(--item-text-color-active)"},[O("extra",{color:"var(--item-text-color-active)"})])])])]),k("menu-item-content",` + box-sizing: border-box; + line-height: 1.75; + height: 100%; + display: grid; + grid-template-areas: "icon content arrow"; + grid-template-columns: auto 1fr auto; + align-items: center; + cursor: pointer; + position: relative; + z-index: auto; + padding-right: 18px; + transition: + background-color .3s var(--bezier), + padding-left .3s var(--bezier), + border-color .3s var(--bezier); + `,[j("disabled",{opacity:".45",cursor:"not-allowed"}),j("collapsed",[O("arrow",{transform:"rotate(0)"})]),j("child-active",[k("menu-item-content-header",{color:"var(--item-text-color-child-active)"},[O("extra",{color:"var(--item-text-color-child-active)"})]),O("arrow",{color:"var(--arrow-color-child-active)"}),O("icon",{color:"var(--item-icon-color-child-active)"})]),qe("disabled",[Xp(null,[O("arrow",{color:"var(--arrow-color-hover)"}),O("icon",{color:"var(--item-icon-color-hover)"}),k("menu-item-content-header",{color:"var(--item-text-color-hover)"},[O("extra",{color:"var(--item-text-color-hover)"})])])]),O("icon",` + grid-area: icon; + color: var(--item-icon-color); + transition: + color .3s var(--bezier), + font-size .3s var(--bezier), + margin-right .3s var(--bezier); + box-sizing: content-box; + display: inline-flex; + align-items: center; + justify-content: center; + `),O("arrow",` + grid-area: arrow; + font-size: 16px; + color: var(--arrow-color); + transform: rotate(180deg); + opacity: 1; + transition: + color .3s var(--bezier), + transform 0.2s var(--bezier), + opacity 0.2s var(--bezier); + `),k("menu-item-content-header",` + grid-area: content; + transition: + color .3s var(--bezier), + opacity .3s var(--bezier); + opacity: 1; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + color: var(--item-text-color); + `,[E("a",` + text-decoration: none; + color: inherit; + `,[E("&::before",` + content: ""; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `)]),O("extra",` + font-size: .93em; + color: var(--group-text-color); + transition: color .3s var(--bezier); + `)])]),k("submenu",{cursor:"pointer",position:"relative",marginTop:"6px"},[k("menu-item-content",` + height: var(--item-height); + `),k("submenu-children",{overflow:"hidden",padding:0},[ln({duration:".2s"})])]),k("menu-item-group",[k("menu-item-group-title",` + margin-top: 6px; + color: var(--group-text-color); + cursor: default; + font-size: .93em; + height: 36px; + display: flex; + align-items: center; + transition: + padding-left .3s var(--bezier), + color .3s var(--bezier); + `)])]),k("menu-tooltip",[E("a",` + color: inherit; + text-decoration: none; + `)])]);function Xp(e,t){return[j("hover",e,t),E("&:hover",e,t)]}const NR=Object.assign(Object.assign({},ye.props),{options:{type:Array,default:()=>[]},collapsed:{type:Boolean,default:void 0},collapsedWidth:{type:Number,default:48},iconSize:{type:Number,default:20},collapsedIconSize:{type:Number,default:24},rootIndent:Number,indent:{type:Number,default:32},labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},defaultExpandAll:Boolean,defaultExpandedKeys:Array,expandedKeys:Array,value:[String,Number],defaultValue:{type:[String,Number],default:null},mode:{type:String,default:"vertical"},disabled:Boolean,inverted:Boolean,"onUpdate:expandedKeys":[Function,Array],onUpdateExpandedKeys:[Function,Array],onUpdateValue:[Function,Array],"onUpdate:value":[Function,Array],expandIcon:Function,renderIcon:Function,renderLabel:Function,renderExtra:Function,dropdownPlacement:{type:String,default:"bottom"},dropdownProps:Object,accordion:Boolean,items:Array,onOpenNamesChange:[Function,Array],onSelect:[Function,Array],onExpandedNamesChange:[Function,Array],expandedNames:Array,defaultExpandedNames:Array}),Pa=Symbol("menu");var NO=q({name:"Menu",props:NR,setup(e){const{mergedClsPrefixRef:t}=Ee(e),r=ye("Menu","Menu",DR,LR,e,t),o=Pe(jp,null),n=R(()=>{var w;const{collapsed:P}=e;if(P!==void 0)return P;if(o){const{collapseModeRef:m,collapsedRef:x}=o;if(m.value==="width")return(w=x.value)!==null&&w!==void 0?w:!1}return!1}),i=R(()=>{const{keyField:w,childrenField:P}=e;return ua(e.items||e.options,{getChildren(m){return m[P]},getKey(m){var x;return(x=m[w])!==null&&x!==void 0?x:m.name}})}),a=R(()=>new Set(i.value.treeNodes.map(w=>w.key))),l=W(e.defaultValue),s=ke(e,"value"),c=gt(s,l),d=W(e.defaultExpandAll?i.value.getNonLeafKeys():e.defaultExpandedNames||e.defaultExpandedKeys||i.value.getPath(c.value,{includeSelf:!1}).keyPath),u=ei(e,["expandedNames","expandedKeys"]),h=gt(u,d),g=R(()=>i.value.treeNodes),b=R(()=>i.value.getPath(c.value).keyPath);Ie(Pa,{props:e,mergedCollapsedRef:n,mergedThemeRef:r,mergedValueRef:c,mergedExpandedKeysRef:h,activePathRef:b,mergedClsPrefixRef:t,isHorizontalRef:R(()=>e.mode==="horizontal"),invertedRef:ke(e,"inverted"),doSelect:y,toggleExpand:p});function y(w,P){const{"onUpdate:value":m,onUpdateValue:x,onSelect:C}=e;x&&ue(x,w,P),m&&ue(m,w,P),C&&ue(C,w,P),l.value=w}function v(w){const{"onUpdate:expandedKeys":P,onUpdateExpandedKeys:m,onExpandedNamesChange:x,onOpenNamesChange:C}=e;P&&ue(P,w),m&&ue(m,w),x&&ue(x,w),C&&ue(C,w),d.value=w}function p(w){const P=Array.from(h.value),m=P.findIndex(x=>x===w);if(~m)P.splice(m,1);else{if(e.accordion&&a.value.has(w)){const x=P.findIndex(C=>a.value.has(C));x>-1&&P.splice(x,1)}P.push(w)}v(P)}return{mergedClsPrefix:t,controlledExpandedKeys:u,uncontrolledExpanededKeys:d,mergedExpandedKeys:h,uncontrolledValue:l,mergedValue:c,activePath:b,tmNodes:g,mergedTheme:r,mergedCollapsed:n,cssVars:R(()=>{const{inverted:w}=e,{common:{cubicBezierEaseInOut:P},self:m}=r.value,{borderRadius:x,borderColorHorizontal:C,fontSize:S,itemHeight:T}=m,$={"--bezier":P,"--font-size":S,"--border-color-horizontal":C,"--border-radius":x,"--item-height":T};return w?($["--group-text-color"]=m.groupTextColorInverted,$["--color"]=m.colorInverted,$["--item-text-color"]=m.itemTextColorInverted,$["--arrow-color"]=m.arrowColorInverted,$["--arrow-color-hover"]=m.arrowColorHoverInverted,$["--arrow-color-active"]=m.arrowColorActiveInverted,$["--arrow-color-child-active"]=m.arrowColorChildActiveInverted,$["--item-icon-color"]=m.itemIconColorInverted,$["--item-text-color-hover"]=m.itemTextColorHoverInverted,$["--item-icon-color-hover"]=m.itemIconColorHoverInverted,$["--item-text-color-active"]=m.itemTextColorActiveInverted,$["--item-icon-color-active"]=m.itemIconColorActiveInverted,$["--item-icon-color-collapsed"]=m.itemIconColorCollapsedInverted,$["--item-color-active"]=m.itemColorActiveInverted,$["--item-color-active-collapsed"]=m.itemColorActiveCollapsedInverted,$["--item-text-color-child-active"]=m.itemTextColorChildActiveInverted,$["--item-icon-color-child-active"]=m.itemIconColorChildActiveInverted):($["--group-text-color"]=m.groupTextColor,$["--color"]=m.color,$["--item-text-color"]=m.itemTextColor,$["--arrow-color"]=m.arrowColor,$["--arrow-color-hover"]=m.arrowColorHover,$["--arrow-color-active"]=m.arrowColorActive,$["--arrow-color-child-active"]=m.arrowColorChildActive,$["--item-icon-color"]=m.itemIconColor,$["--item-text-color-hover"]=m.itemTextColorHover,$["--item-icon-color-hover"]=m.itemIconColorHover,$["--item-text-color-active"]=m.itemTextColorActive,$["--item-icon-color-active"]=m.itemIconColorActive,$["--item-icon-color-collapsed"]=m.itemIconColorCollapsed,$["--item-color-active"]=m.itemColorActive,$["--item-color-active-collapsed"]=m.itemColorActiveCollapsed,$["--item-text-color-child-active"]=m.itemTextColorChildActive,$["--item-icon-color-child-active"]=m.itemIconColorChildActive),$})}},render(){const{mergedClsPrefix:e,mode:t}=this;return f("div",{role:t==="horizontal"?"menubar":"menu",class:[`${e}-menu`,`${e}-menu--${t}`,this.mergedCollapsed&&`${e}-menu--collapsed`],style:this.cssVars},this.tmNodes.map(r=>nc(r,this.$props)))}}),jR={margin:"0 0 8px 0",padding:"10px 20px",maxWidth:"720px",minWidth:"420px",iconMargin:"0 10px 0 0",closeMargin:"0 0 0 12px",closeSize:"16px",iconSize:"20px",fontSize:"14px"};const HR=e=>{const{textColor2:t,closeColor:r,closeColorHover:o,closeColorPressed:n,infoColor:i,successColor:a,errorColor:l,warningColor:s,popoverColor:c,boxShadow2:d,primaryColor:u,lineHeight:h,borderRadius:g}=e;return Object.assign(Object.assign({},jR),{textColorInfo:t,textColorSuccess:t,textColorError:t,textColorWarning:t,textColorLoading:t,colorInfo:c,colorSuccess:c,colorError:c,colorWarning:c,colorLoading:c,boxShadowInfo:d,boxShadowSuccess:d,boxShadowError:d,boxShadowWarning:d,boxShadowLoading:d,iconColorInfo:i,iconColorSuccess:a,iconColorWarning:s,iconColorError:l,iconColorLoading:u,closeColorInfo:r,closeColorHoverInfo:o,closeColorPressedInfo:n,closeColorSuccess:r,closeColorHoverSuccess:o,closeColorPressedSuccess:n,closeColorError:r,closeColorHoverError:o,closeColorPressedError:n,closeColorWarning:r,closeColorHoverWarning:o,closeColorPressedWarning:n,closeColorLoading:r,closeColorHoverLoading:o,closeColorPressedLoading:n,loadingColor:u,lineHeight:h,borderRadius:g})},WR={name:"Message",common:De,self:HR};var UR=WR;const Zp={icon:Function,type:{type:String,default:"info"},content:[String,Number,Function],closable:Boolean,keepAliveOnHover:Boolean,onClose:Function,onMouseenter:Function,onMouseleave:Function};var VR=E([k("message-wrapper",` + margin: var(--margin); + z-index: 0; + transform-origin: top center; + display: flex; + `,[ln({overflow:"visible",originalTransition:"transform .3s var(--bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.85)"}})]),k("message",` + box-sizing: border-box; + display: flex; + align-items: center; + transition: + color .3s var(--bezier), + box-shadow .3s var(--bezier), + background-color .3s var(--bezier), + opacity .3s var(--bezier), + transform .3s var(--bezier), + margin-bottom .3s var(--bezier); + padding: var(--padding); + border-radius: var(--border-radius); + flex-wrap: nowrap; + overflow: hidden; + max-width: var(--max-width); + color: var(--text-color); + background-color: var(--color); + box-shadow: var(--box-shadow); + `,[O("content",` + display: inline-block; + line-height: var(--line-height); + font-size: var(--font-size); + `),O("icon",` + position: relative; + margin: var(--icon-margin); + height: var(--icon-size); + width: var(--icon-size); + font-size: var(--icon-size); + flex-shrink: 0; + `,[["info","success","warning","error","loading"].map(e=>j(`${e}-type`,[E("> *",` + color: var(--icon-color-${e}); + transition: color .3s var(--bezier); + `)])),E("> *",` + position: absolute; + left: 0; + top: 0; + right: 0; + bottom: 0; + `,[bo()])]),O("close",` + font-size: var(--close-size); + margin: var(--close-margin); + transition: color .3s var(--bezier); + flex-shrink: 0; + `,[E("&:hover",` + color: var(--close-color-hover); + `),E("&:active",` + color: var(--close-color-pressed); + `)])]),k("message-container",` + z-index: 6000; + position: fixed; + height: 0; + overflow: visible; + display: flex; + flex-direction: column; + align-items: center; + `,[j("top",` + top: 12px; + left: 0; + right: 0; + `),j("top-left",` + top: 12px; + left: 12px; + right: 0; + align-items: flex-start; + `),j("top-right",` + top: 12px; + left: 0; + right: 12px; + align-items: flex-end; + `),j("bottom",` + bottom: 4px; + left: 0; + right: 0; + justify-content: flex-end; + `),j("bottom-left",` + bottom: 4px; + left: 12px; + right: 0; + justify-content: flex-end; + align-items: flex-start; + `),j("bottom-right",` + bottom: 4px; + left: 0; + right: 12px; + justify-content: flex-end; + align-items: flex-end; + `)])]);const KR={info:f(Zo,null),success:f(Jo,null),warning:f(vo,null),error:f(Xo,null)};var qR=q({name:"Message",props:Zp,setup(e){const{props:t,mergedClsPrefixRef:r}=Pe(Qp),o=ye("Message","Message",VR,UR,t,r);return{mergedClsPrefix:r,handleClose(){var n;(n=e.onClose)===null||n===void 0||n.call(e)},cssVars:R(()=>{const{type:n}=e,{common:{cubicBezierEaseInOut:i},self:{padding:a,margin:l,maxWidth:s,iconMargin:c,closeMargin:d,closeSize:u,iconSize:h,fontSize:g,lineHeight:b,borderRadius:y,iconColorInfo:v,iconColorSuccess:p,iconColorWarning:w,iconColorError:P,iconColorLoading:m,[ce("textColor",n)]:x,[ce("boxShadow",n)]:C,[ce("color",n)]:S,[ce("closeColor",n)]:T,[ce("closeColorPressed",n)]:$,[ce("closeColorHover",n)]:M}}=o.value;return{"--bezier":i,"--margin":l,"--padding":a,"--max-width":s,"--font-size":g,"--icon-margin":c,"--icon-size":h,"--close-size":u,"--close-margin":d,"--text-color":x,"--color":S,"--box-shadow":C,"--icon-color-info":v,"--icon-color-success":p,"--icon-color-warning":w,"--icon-color-error":P,"--icon-color-loading":m,"--close-color":T,"--close-color-pressed":$,"--close-color-hover":M,"--line-height":b,"--border-radius":y}}),placement:t.placement}},render(){const{icon:e,type:t,closable:r,content:o,mergedClsPrefix:n,cssVars:i,handleClose:a}=this;return f("div",{class:`${n}-message-wrapper`,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:Object.assign(Object.assign({},i),{alignItems:this.placement.startsWith("top")?"flex-start":"flex-end"})},f("div",{class:`${n}-message ${n}-message--${t}-type`},f("div",{class:`${n}-message__icon ${n}-message__icon--${t}-type`},f(Qo,null,{default:()=>[GR(e,t,n)]})),f("div",{class:`${n}-message__content`},Ke(o)),r?f(en,{clsPrefix:n,class:`${n}-message__close`,onClick:a}):null))}});function GR(e,t,r){return typeof e=="function"?e():f(Be,{clsPrefix:r,key:t},{default:()=>t==="loading"?f(Lr,{clsPrefix:r,strokeWidth:24,scale:.85}):KR[t]})}var YR=q({name:"MessageEnvironment",props:Object.assign(Object.assign({},Zp),{duration:{type:Number,default:3e3},onAfterLeave:Function,onLeave:Function,internalKey:{type:String,required:!0},onInternalAfterLeave:Function,onHide:Function,onAfterHide:Function}),setup(e){let t=null;const r=W(!0);wt(()=>{o()});function o(){const{duration:d}=e;d&&(t=window.setTimeout(a,d))}function n(d){d.currentTarget===d.target&&t!==null&&(window.clearTimeout(t),t=null)}function i(d){d.currentTarget===d.target&&o()}function a(){const{onHide:d}=e;r.value=!1,t&&(window.clearTimeout(t),t=null),d&&d()}function l(){const{onClose:d}=e;d&&d(),a()}function s(){const{onAfterLeave:d,onInternalAfterLeave:u,onAfterHide:h,internalKey:g}=e;d&&d(),u&&u(g),h&&h()}function c(){a()}return{show:r,hide:a,handleClose:l,handleAfterLeave:s,handleMouseleave:i,handleMouseenter:n,deactivate:c}},render(){return f(mo,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{default:()=>[this.show?f(qR,{content:this.content,type:this.type,icon:this.icon,closable:this.closable,onClose:this.handleClose,onMouseenter:this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.keepAliveOnHover?this.handleMouseleave:void 0}):null]})}});const Jp=Symbol("messageApi"),XR=Object.assign(Object.assign({},ye.props),{to:[String,Object],duration:{type:Number,default:3e3},keepAliveOnHover:Boolean,max:Number,placement:{type:String,default:"top"},closable:Boolean,containerStyle:[String,Object]}),Qp=Symbol("messageProvider");var jO=q({name:"MessageProvider",props:XR,setup(e){const{mergedClsPrefixRef:t}=Ee(e),r=W([]),o=W({}),n={info(s,c){return i(s,Object.assign(Object.assign({},c),{type:"info"}))},success(s,c){return i(s,Object.assign(Object.assign({},c),{type:"success"}))},warning(s,c){return i(s,Object.assign(Object.assign({},c),{type:"warning"}))},error(s,c){return i(s,Object.assign(Object.assign({},c),{type:"error"}))},loading(s,c){return i(s,Object.assign(Object.assign({},c),{type:"loading"}))},destroyAll:l};Ie(Qp,{props:e,mergedClsPrefixRef:t}),Ie(Jp,n);function i(s,c={}){const d=ar(),u=pr(Object.assign(Object.assign({},c),{content:s,key:d,destroy:()=>{o.value[d].hide()}})),{max:h}=e;return h&&r.value.length>=h&&r.value.shift(),r.value.push(u),u}function a(s){r.value.splice(r.value.findIndex(c=>c.key===s),1),delete o.value[s]}function l(){Object.values(o.value).forEach(s=>{s.hide()})}return Object.assign({mergedClsPrefix:t,messageRefs:o,messageList:r,handleAfterLeave:a},n)},render(){var e;return f(nt,null,Ae(this.$slots,"default"),this.messageList.length?f(Li,{to:(e=this.to)!==null&&e!==void 0?e:"body"},f("div",{class:[`${this.mergedClsPrefix}-message-container`,`${this.mergedClsPrefix}-message-container--${this.placement}`],key:"message-container",style:this.containerStyle},this.messageList.map(t=>f(YR,Object.assign({ref:r=>{r&&(this.messageRefs[t.key]=r)},internalKey:t.key,onInternalAfterLeave:this.handleAfterLeave},la(t,["destroy"],void 0),{duration:t.duration===void 0?this.duration:t.duration,keepAliveOnHover:t.keepAliveOnHover===void 0?this.keepAliveOnHover:t.keepAliveOnHover,closable:t.closable===void 0?this.closable:t.closable}))))):null)}});function HO(){const e=Pe(Jp,null);return e===null&&Cr("use-message","No outer founded. See prerequisite in https://www.naiveui.com/en-US/os-theme/components/message for more details. If you want to use `useMessage` outside setup, please check https://www.naiveui.com/zh-CN/os-theme/components/message#Q-&-A."),e}var ZR={closeMargin:"18px 14px",closeSize:"16px",width:"365px",padding:"16px"};const JR=e=>{const{textColor2:t,successColor:r,infoColor:o,warningColor:n,errorColor:i,popoverColor:a,closeColor:l,closeColorHover:s,textColor1:c,textColor3:d,borderRadius:u,fontWeightStrong:h,boxShadow2:g,lineHeight:b,fontSize:y}=e;return Object.assign(Object.assign({},ZR),{borderRadius:u,lineHeight:b,fontSize:y,headerFontWeight:h,iconColor:t,iconColorSuccess:r,iconColorInfo:o,iconColorWarning:n,iconColorError:i,color:a,textColor:t,closeColor:l,closeColorHover:s,closeColorPressed:l,headerTextColor:c,descriptionTextColor:d,actionTextColor:t,boxShadow:g})},QR=St({name:"Notification",common:De,peers:{Scrollbar:yo},self:JR});var e6=QR,t6=q({name:"NotificationContainer",props:{scrollable:{type:Boolean,required:!0}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t}=Pe(ac);return{mergedTheme:e,mergedClsPrefix:t}},render(){const{$slots:e,scrollable:t,mergedClsPrefix:r,mergedTheme:o}=this;return f("div",{class:[`${r}-notification-container`,t&&`${r}-notification-container--scrollable`]},t?f($r,{theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},e):e)}});const r6={info:f(Zo,null),success:f(Jo,null),warning:f(vo,null),error:f(Xo,null),default:null},ic={closable:{type:Boolean,default:!0},type:{type:String,default:"default"},avatar:Function,title:[String,Function],description:[String,Function],content:[String,Function],meta:[String,Function],action:[String,Function],onClose:{type:Function,required:!0}},o6=lr(ic);var n6=q({name:"Notification",props:ic,setup(e){const{mergedClsPrefixRef:t,mergedThemeRef:r}=Pe(ac);return{mergedClsPrefix:t,showAvatar:R(()=>e.avatar||e.type!=="default"),handleCloseClick(){e.onClose()},cssVars:R(()=>{const{type:o}=e,{self:{color:n,textColor:i,closeColor:a,closeColorHover:l,closeColorPressed:s,headerTextColor:c,descriptionTextColor:d,actionTextColor:u,borderRadius:h,headerFontWeight:g,boxShadow:b,lineHeight:y,fontSize:v,closeMargin:p,closeSize:w,width:P,padding:m,[ce("iconColor",o)]:x},common:{cubicBezierEaseOut:C,cubicBezierEaseIn:S,cubicBezierEaseInOut:T}}=r.value,{left:$,right:M,top:D,bottom:_}=Lo(m);return{"--color":n,"--font-size":v,"--text-color":i,"--description-text-color":d,"--action-text-color":u,"--title-text-color":c,"--title-font-weight":g,"--bezier":T,"--bezier-ease-out":C,"--bezier-ease-in":S,"--border-radius":h,"--box-shadow":b,"--close-color":a,"--close-color-hover":l,"--close-color-pressed":s,"--line-height":y,"--icon-color":x,"--close-margin":p,"--close-size":w,"--width":P,"--padding-left":$,"--padding-right":M,"--padding-top":D,"--padding-bottom":_}})}},render(){const{mergedClsPrefix:e}=this;return f("div",{class:[`${e}-notification`,{[`${e}-notification--closable`]:this.closable,[`${e}-notification--show-avatar`]:this.showAvatar}],style:this.cssVars},this.showAvatar?f("div",{class:`${e}-notification__avatar`},this.avatar?Ke(this.avatar):this.type!=="default"?f(Be,{clsPrefix:e},{default:()=>r6[this.type]}):null):null,this.closable?f(en,{clsPrefix:e,class:`${e}-notification__close`,onClick:this.handleCloseClick}):null,f("div",{ref:"bodyRef",class:`${e}-notification-main`},this.title?f("div",{class:`${e}-notification-main__header`},Ke(this.title)):null,this.description?f("div",{class:`${e}-notification-main__description`},Ke(this.description)):null,this.content?f("pre",{class:`${e}-notification-main__content`},Ke(this.content)):null,this.meta||this.action?f("div",{class:`${e}-notification-main-footer`},this.meta?f("div",{class:`${e}-notification-main-footer__meta`},Ke(this.meta)):null,this.action?f("div",{class:`${e}-notification-main-footer__action`},Ke(this.action)):null):null))}});const i6=Object.assign(Object.assign({},ic),{duration:Number,onClose:Function,onLeave:Function,onAfterEnter:Function,onAfterLeave:Function,onHide:Function,onAfterShow:Function,onAfterHide:Function});var a6=q({name:"NotificationEnvironment",props:Object.assign(Object.assign({},i6),{internalKey:{type:String,required:!0},onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const t=W(!0);let r=null;function o(){t.value=!1,r&&window.clearTimeout(r)}function n(d){Ct(()=>{d.style.height=`${d.offsetHeight}px`,d.style.maxHeight="0",d.style.transition="none",d.offsetHeight,d.style.transition="",d.style.maxHeight=d.style.height})}function i(d){d.style.height="",d.style.maxHeight="";const{onAfterEnter:u,onAfterShow:h}=e;u&&u(),h&&h()}function a(d){d.style.maxHeight=`${d.offsetHeight}px`,d.style.height=`${d.offsetHeight}px`,d.offsetHeight}function l(d){const{onHide:u}=e;u&&u(),d.style.maxHeight="0",d.offsetHeight}function s(){const{onAfterLeave:d,onInternalAfterLeave:u,onAfterHide:h,internalKey:g}=e;d&&d(),u(g),h&&h()}function c(){const{onClose:d}=e;d?Promise.resolve(d()).then(u=>{u!==!1&&o()}):o()}return wt(()=>{e.duration&&(r=window.setTimeout(o,e.duration))}),{show:t,hide:o,handleClose:c,handleAfterLeave:s,handleLeave:l,handleBeforeLeave:a,handleAfterEnter:i,handleBeforeEnter:n}},render(){return f(ht,{name:"notification-transition",appear:!0,onBeforeEnter:this.handleBeforeEnter,onAfterEnter:this.handleAfterEnter,onBeforeLeave:this.handleBeforeLeave,onLeave:this.handleLeave,onAfterLeave:this.handleAfterLeave},{default:()=>this.show?f(n6,Object.assign({},er(this.$props,o6),{onClose:this.handleClose})):null})}}),l6=E([k("notification-container",` + z-index: 4000; + position: fixed; + top: 12px; + left: 0; + right: 0; + height: 0; + overflow: visible; + display: flex; + flex-direction: column; + align-items: flex-end; + `,[E(">",[k("scrollbar",` + width: initial; + overflow: visible; + height: -moz-fit-content !important; + height: fit-content !important; + max-height: 100vh !important; + `,[E(">",[k("scrollbar-container",` + height: -moz-fit-content !important; + height: fit-content !important; + max-height: 100vh !important; + `,[k("scrollbar-content",` + padding-top: 12px; + padding-bottom: 33px; + `)])])])]),j("scrollable",{top:0}),k("notification",[E("&.notification-transition-enter-from, &.notification-transition-leave-to",` + opacity: 0; + margin-bottom: 0 !important; + transform: translateX(calc(100% + 16px)); + `),E("&.notification-transition-leave-from, &.notification-transition-enter-to",` + opacity: 1; + transform: translateX(0); + `),E("&.notification-transition-leave-active",` + transition: + background-color .3s var(--bezier), + color .3s var(--bezier), + opacity .3s var(--bezier), + transform .3s var(--bezier-ease-in), + max-height .3s var(--bezier), + margin-bottom .3s linear, + box-shadow .3s var(--bezier); + `)]),k("notification",` + background-color: var(--color); + color: var(--text-color); + transition: + background-color .3s var(--bezier), + color .3s var(--bezier), + opacity .3s var(--bezier), + transform .3s var(--bezier-ease-out), + max-height .3s var(--bezier), + margin-bottom .3s linear, + box-shadow .3s var(--bezier); + font-family: inherit; + font-size: var(--font-size); + font-weight: 400; + position: relative; + display: flex; + overflow: hidden; + flex-shrink: 0; + margin-bottom: 12px; + margin-left: 28px; + margin-right: 16px; + padding-left: var(--padding-left); + padding-right: var(--padding-right); + width: var(--width); + border-radius: var(--border-radius); + box-shadow: var(--box-shadow); + box-sizing: border-box; + opacity: 1; + `,[O("avatar",[k("icon",{color:"var(--icon-color)"}),k("base-icon",{color:"var(--icon-color)"})]),j("show-avatar",[k("notification-main",` + margin-left: 40px; + width: calc(100% - 40px); + `)]),j("closable",[k("notification-main",[E("> *:first-child",{paddingRight:"20px"})]),O("close",` + position: absolute; + top: 0; + right: 0; + margin: var(--close-margin); + font-size: var(--close-size); + transition: color .3s var(--bezier); + `)]),O("avatar",` + position: absolute; + top: var(--padding-top); + left: var(--padding-left); + width: 28px; + height: 28px; + font-size: 28px; + `,[k("icon",{transition:"color .3s var(--bezier)"})]),k("notification-main",` + padding-top: var(--padding-top); + padding-bottom: var(--padding-bottom); + box-sizing: border-box; + display: flex; + flex-direction: column; + margin-left: 8px; + width: calc(100% - 8px); + `,[k("notification-main-footer",` + display: flex; + align-items: center; + justify-content: space-between; + margin-top: 12px; + `,[O("meta",` + font-size: 12px; + transition: color .3s var(--bezier-ease-out); + color: var(--description-text-color); + `),O("action",` + cursor: pointer; + transition: color .3s var(--bezier-ease-out); + color: var(--action-text-color); + `)]),O("header",` + font-weight: var(--title-font-weight); + font-size: 16px; + transition: color .3s var(--bezier-ease-out); + color: var(--title-text-color); + `),O("description",` + margin-top: 8px; + font-size: 12px; + transition: color .3s var(--bezier-ease-out); + color: var(--description-text-color); + `),O("content",` + line-height: var(--line-height); + margin: 12px 0 0 0; + font-family: inherit; + white-space: pre-wrap; + word-wrap: break-word; + transition: color .3s var(--bezier-ease-out); + color: var(--text-color); + `,[E("&:first-child",{margin:0})])])])])]);const ac=Symbol("notificationProvider"),eg=Symbol("notificationApi"),s6=Object.assign(Object.assign({},ye.props),{to:[String,Object],scrollable:{type:Boolean,default:!0}});var WO=q({name:"NotificationProvider",props:s6,setup(e){const{mergedClsPrefixRef:t}=Ee(e),r=W([]),o={};function n(d){const u=ar(),h=()=>o[u].hide(),g=pr(Object.assign(Object.assign({},d),{key:u,destroy:h,hide:h,deactivate:h}));return r.value.push(g),g}const i=["info","success","warning","error"].map(d=>u=>n(Object.assign(Object.assign({},u),{type:d})));function a(d){r.value.splice(r.value.findIndex(u=>u.key===d),1)}const l=ye("Notification","Notification",l6,e6,e,t),s={create:n,info:i[0],success:i[1],warning:i[2],error:i[3],open:c};Ie(eg,s),Ie(ac,{mergedClsPrefixRef:t,mergedThemeRef:l});function c(d){return n(d)}return Object.assign({mergedClsPrefix:t,notificationList:r,notificationRefs:o,handleAfterLeave:a},s)},render(){var e;return f(nt,null,Ae(this.$slots,"default"),this.notificationList.length?f(Li,{to:(e=this.to)!==null&&e!==void 0?e:"body"},f(t6,{scrollable:this.scrollable},{default:()=>this.notificationList.map(t=>f(a6,Object.assign({ref:r=>{const o=t.key;r===null?delete this.notificationRefs[o]:this.notificationRefs[o]=r}},la(t,["destroy","hide","deactivate"]),{internalKey:t.key,onInternalAfterLeave:this.handleAfterLeave})))})):null)}});function UO(){const e=Pe(eg,null);return e===null&&Cr("use-notification","No outer `n-notification-provider` found."),e}var c6={iconSize:"22px"};const d6=e=>{const{fontSize:t,warningColor:r}=e;return Object.assign(Object.assign({},c6),{fontSize:t,iconColor:r})},u6=St({name:"Popconfirm",common:De,peers:{Button:ai,Popover:nn},self:d6});var f6=u6;const tg=Symbol("popconfirm"),rg={positiveText:String,negativeText:String,showIcon:{type:Boolean,default:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0}},og=lr(rg);var h6=q({name:"NPopconfirmPanel",props:rg,setup(e){const{localeRef:t}=kr("Popconfirm"),{mergedClsPrefixRef:r,mergedThemeRef:o}=Pe(tg);return Object.assign(Object.assign({},kr("Popconfirm")),{mergedClsPrefix:r,cssVars:R(()=>{const{common:{cubicBezierEaseInOut:n},self:{fontSize:i,iconSize:a,iconColor:l}}=o.value;return{"--bezier":n,"--font-size":i,"--icon-size":a,"--icon-color":l}}),localizedPositiveText:R(()=>e.positiveText||t.value.positiveText),localizedNegativeText:R(()=>e.negativeText||t.value.negativeText),handlePositiveClick(n){e.onPositiveClick(n)},handleNegativeClick(n){e.onNegativeClick(n)}})},render(){const{mergedClsPrefix:e,$slots:t}=this,r=t.action?t.action():this.negativeText===null&&this.positiveText===null?null:[this.negativeText!==null&&f(ur,{size:"small",onClick:this.handleNegativeClick},{default:()=>this.localizedNegativeText}),this.positiveText!==null&&f(ur,{size:"small",type:"primary",onClick:this.handlePositiveClick},{default:()=>this.localizedPositiveText})];return f("div",{style:this.cssVars},f("div",{class:`${e}-popconfirm__body`},this.showIcon?f("div",{class:`${e}-popconfirm__icon`},Ae(t,"icon",void 0,()=>[f(Be,{clsPrefix:e},{default:()=>f(vo,null)})])):null,Ae(t,"default")),r?f("div",{class:`${e}-popconfirm__action`},r):null)}}),p6=k("popconfirm",[O("body",` + font-size: var(--font-size); + display: flex; + align-items: center; + flex-wrap: nowrap; + position: relative; + `,[O("icon",` + display: flex; + font-size: var(--icon-size); + color: var(--icon-color); + transition: color .3s var(--bezier); + margin: 0 8px 0 0; + `)]),O("action",` + margin-top: 8px; + display: flex; + justify-content: flex-end; + `,[k("button",[E("&:not(:last-child)",{marginRight:"8px"})])])]);const g6=Object.assign(Object.assign(Object.assign({},ye.props),ii),{positiveText:String,negativeText:String,showIcon:{type:Boolean,default:!0},trigger:{type:String,default:"click"},onPositiveClick:Function,onNegativeClick:Function});var VO=q({name:"Popconfirm",props:g6,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=Ee(),r=ye("Popconfirm","Popconfirm",p6,f6,e,t),o=W(null);function n(a){const{onPositiveClick:l,"onUpdate:show":s}=e;Promise.resolve(l?l(a):!0).then(c=>{var d;c!==!1&&((d=o.value)===null||d===void 0||d.setShow(!1),s&&ue(s,!1))})}function i(a){const{onNegativeClick:l,"onUpdate:show":s}=e;Promise.resolve(l?l(a):!0).then(c=>{var d;c!==!1&&((d=o.value)===null||d===void 0||d.setShow(!1),s&&ue(s,!1))})}return Ie(tg,{mergedThemeRef:r,mergedClsPrefixRef:t}),{mergedTheme:r,popoverInstRef:o,handlePositiveClick:n,handleNegativeClick:i}},render(){const{$slots:e,$props:t,mergedTheme:r}=this;return f(an,la(t,og,{theme:r.peers.Popover,themeOverrides:r.peerOverrides.Popover,internalExtraClass:["popconfirm"],ref:"popoverInstRef"}),{trigger:e.activator||e.trigger,default:()=>{const o=er(t,og);return f(h6,Object.assign(Object.assign({},o),{onPositiveClick:this.handlePositiveClick,onNegativeClick:this.handleNegativeClick}),e)}})}});const v6=e=>{const{infoColor:t,successColor:r,warningColor:o,errorColor:n,textColor2:i,progressRailColor:a,fontSize:l,fontWeight:s}=e;return{fontSize:l,fontSizeCircle:"28px",fontWeightCircle:s,railColor:a,railHeight:"8px",iconSizeCircle:"36px",iconSizeLine:"18px",iconColor:t,iconColorInfo:t,iconColorSuccess:r,iconColorWarning:o,iconColorError:n,textColorCircle:i,textColorLineInner:"rgb(255, 255, 255)",textColorLineOuter:i,fillColor:t,fillColorInfo:t,fillColorSuccess:r,fillColorWarning:o,fillColorError:n,lineBgProcessing:"linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)"}},m6={name:"Progress",common:De,self:v6};var ng=m6,b6=E([k("progress",{display:"inline-block"},[k("progress-icon",` + color: var(--icon-color); + transition: color .3s var(--bezier); + `),j("line",` + width: 100%; + display: block; + `,[k("progress-content",` + display: flex; + align-items: center; + `,[k("progress-graph",{flex:1})]),k("progress-custom-content",{marginLeft:"14px"}),k("progress-icon",` + width: 30px; + padding-left: 14px; + height: var(--icon-size-line); + line-height: var(--icon-size-line); + font-size: var(--icon-size-line); + `,[j("as-text",` + color: var(--text-color-line-outer); + text-align: center; + width: 40px; + font-size: var(--font-size); + padding-left: 4px; + transition: color .3s var(--bezier); + `)])]),j("circle",{width:"120px"},[k("progress-custom-content",` + position: absolute; + left: 50%; + top: 50%; + transform: translateX(-50%) translateY(-50%); + display: flex; + align-items: center; + justify-content: center; + `),k("progress-text",` + position: absolute; + left: 50%; + top: 50%; + transform: translateX(-50%) translateY(-50%); + display: flex; + align-items: center; + color: inherit; + font-size: var(--font-size-circle); + color: var(--text-color-circle); + font-weight: var(--font-weight-circle); + transition: color .3s var(--bezier); + white-space: nowrap; + `),k("progress-icon",` + position: absolute; + left: 50%; + top: 50%; + transform: translateX(-50%) translateY(-50%); + display: flex; + align-items: center; + color: var(--icon-color); + font-size: var(--icon-size-circle); + `)]),j("multiple-circle",{width:"200px",color:"inherit"},[k("progress-text",` + font-weight: var(--font-weight-circle); + color: var(--text-color-circle); + position: absolute; + left: 50%; + top: 50%; + transform: translateX(-50%) translateY(-50%); + display: flex; + align-items: center; + justify-content: center; + transition: color .3s var(--bezier); + `)]),k("progress-content",{position:"relative"}),k("progress-graph",{position:"relative"},[k("progress-graph-circle",[E("svg",{verticalAlign:"bottom"}),k("progress-graph-circle-fill",` + stroke: var(--fill-color); + transition: + opacity .3s var(--bezier), + stroke .3s var(--bezier), + stroke-dasharray .3s var(--bezier); + `,[j("empty",{opacity:0})]),k("progress-graph-circle-rail",` + transition: stroke .3s var(--bezier); + overflow: hidden; + stroke: var(--rail-color); + `)]),k("progress-graph-line",[j("indicator-inside",[k("progress-graph-line-rail",{height:"16px",borderRadius:"10px"},[k("progress-graph-line-fill",{height:"inherit",borderRadius:"10px"}),k("progress-graph-line-indicator",` + background: #0000; + white-space: nowrap; + text-align: right; + margin-left: 14px; + margin-right: 14px; + height: inherit; + line-height: 16px; + font-size: 12px; + color: var(--text-color-line-inner); + transition: color .3s var(--bezier); + `)])]),j("indicator-inside-label",` + height: 16px; + display: flex; + align-items: center; + `,[k("progress-graph-line-rail",{flex:1,transition:"background-color .3s var(--bezier)"}),k("progress-graph-line-indicator",` + background: var(--fill-color); + font-size: 12px; + transform: translateZ(0); + display: flex; + vertical-align: middle; + height: 16px; + line-height: 16px; + padding: 0 10px; + border-radius: 10px; + position: absolute; + white-space: nowrap; + color: var(--text-color-line-inner); + transition: + right .2s var(--bezier), + color .3s var(--bezier), + background-color .3s var(--bezier); + `)]),k("progress-graph-line-rail",` + position: relative; + overflow: hidden; + height: var(--rail-height); + border-radius: 5px; + background-color: var(--rail-color); + transition: background-color .3s var(--bezier); + `,[k("progress-graph-line-fill",` + background: var(--fill-color); + position: relative; + border-radius: 5px; + height: inherit; + width: 100%; + max-width: 0%; + transition: + background-color .3s var(--bezier), + max-width .2s var(--bezier); + `,[j("processing",[E("&::after",` + content: ""; + background-image: var(--line-bg-processing); + animation: progress-processing-animation 2s var(--bezier) infinite; + `)])])])])])]),E("@keyframes progress-processing-animation",` + 0% { + position: absolute; + left: 0; + top: 0; + bottom: 0; + right: 100%; + opacity: 1; + } + 66% { + position: absolute; + left: 0; + top: 0; + bottom: 0; + right: 0; + opacity: 0; + } + 100% { + position: absolute; + left: 0; + top: 0; + bottom: 0; + right: 0; + opacity: 0; + } + `)]);const x6={success:f(Jo,null),error:f(Xo,null),warning:f(vo,null),info:f(Zo,null)};var y6=q({name:"ProgressLine",props:{clsPrefix:{type:String,required:!0},percentage:{type:Number,default:0},railColor:String,railStyle:[String,Object],fillColor:String,status:{type:String,required:!0},indicatorPlacement:{type:String,required:!0},indicatorTextColor:String,unit:{type:String,default:"%"},processing:{type:Boolean,required:!0},showIndicator:{type:Boolean,required:!0},height:[String,Number],railBorderRadius:[String,Number],fillBorderRadius:[String,Number]},setup(e,{slots:t}){const r=R(()=>Qe(e.height)),o=R(()=>e.railBorderRadius!==void 0?Qe(e.railBorderRadius):e.height!==void 0?Qe(e.height,{c:.5}):""),n=R(()=>e.fillBorderRadius!==void 0?Qe(e.fillBorderRadius):e.railBorderRadius!==void 0?Qe(e.railBorderRadius):e.height!==void 0?Qe(e.height,{c:.5}):"");return()=>{const{indicatorPlacement:i,railColor:a,railStyle:l,percentage:s,unit:c,indicatorTextColor:d,status:u,showIndicator:h,fillColor:g,processing:b,clsPrefix:y}=e;return f("div",{class:`${y}-progress-content`,role:"none"},f("div",{class:`${y}-progress-graph`,"aria-hidden":!0},f("div",{class:[`${y}-progress-graph-line`,{[`${y}-progress-graph-line--indicator-${i}`]:!0}]},f("div",{class:`${y}-progress-graph-line-rail`,style:[{backgroundColor:a,height:r.value,borderRadius:o.value},l]},f("div",{class:[`${y}-progress-graph-line-fill`,b&&`${y}-progress-graph-line-fill--processing`],style:{maxWidth:`${e.percentage}%`,backgroundColor:g,height:r.value,borderRadius:n.value}},i==="inside"?f("div",{class:`${y}-progress-graph-line-indicator`},`${s}${c}`):null)))),h&&i==="outside"?f("div",null,t.default?f("div",{class:`${y}-progress-custom-content`,style:{color:d},role:"none"},t.default()):u==="default"?f("div",{role:"none",class:`${y}-progress-icon ${y}-progress-icon--as-text`,style:{color:d}},s,c):f("div",{class:`${y}-progress-icon`,"aria-hidden":!0},f(Be,{clsPrefix:y},{default:()=>x6[u]}))):null)}}});const w6={success:f(Jo,null),error:f(Xo,null),warning:f(vo,null),info:f(Zo,null)};var C6=q({name:"ProgressCircle",props:{clsPrefix:{type:String,required:!0},status:{type:String,required:!0},strokeWidth:{type:Number,required:!0},fillColor:String,railColor:String,railStyle:[String,Object],percentage:{type:Number,default:0},showIndicator:{type:Boolean,reqiuired:!0},indicatorTextColor:String,unit:String,viewBoxWidth:{type:Number,required:!0}},setup(e,{slots:t}){const r=R(()=>`${Math.PI*e.percentage}, ${e.viewBoxWidth*8}`);return()=>{const{fillColor:o,railColor:n,railStyle:i,strokeWidth:a,status:l,percentage:s,showIndicator:c,indicatorTextColor:d,unit:u,clsPrefix:h}=e;return f("div",{class:`${h}-progress-content`,role:"none"},f("div",{class:`${h}-progress-graph`,"aria-hidden":!0},f("div",{class:`${h}-progress-graph-circle`},f("svg",{viewBox:"0 0 110 110"},f("g",null,f("path",{class:`${h}-progress-graph-circle-rail`,d:"m 55 5 a 50 50 0 1 1 0 100 a 50 50 0 1 1 0 -100","stroke-width":a*1.1,"stroke-linecap":"round",fill:"none",style:[{strokeDashoffset:0,stroke:n},i]})),f("g",null,f("path",{class:[`${h}-progress-graph-circle-fill`,s===0&&`${h}-progress-graph-circle-fill--empty`],d:"m 55 5 a 50 50 0 1 1 0 100 a 50 50 0 1 1 0 -100","stroke-width":a*1.1,"stroke-linecap":"round",fill:"none",style:{strokeDasharray:r.value,strokeDashoffset:0,stroke:o}}))))),c?f("div",null,t.default?f("div",{class:`${h}-progress-custom-content`,role:"none"},t.default()):l!=="default"?f("div",{class:`${h}-progress-icon`,"aria-hidden":!0},f(Be,{clsPrefix:h},{default:()=>w6[l]})):f("div",{class:`${h}-progress-text`,style:{color:d},role:"none"},f("span",{class:`${h}-progress-text__percentage`},s),f("span",{class:`${h}-progress-text__unit`},u))):null)}}});function ig(e,t,r=100){return`m ${r/2} ${r/2-e} a ${e} ${e} 0 1 1 0 ${2*e} a ${e} ${e} 0 1 1 0 -${2*e}`}var S6=q({name:"ProgressMultipleCircle",props:{clsPrefix:{type:String,required:!0},viewBoxWidth:{type:Number,required:!0},percentage:{type:Array,default:[0]},strokeWidth:{type:Number,required:!0},circleGap:{type:Number,required:!0},showIndicator:{type:Boolean,required:!0},fillColor:{type:Array,default:()=>[]},railColor:{type:Array,default:()=>[]},railStyle:{type:Array,default:()=>[]}},setup(e,{slots:t}){const r=R(()=>e.percentage.map((n,i)=>`${Math.PI*n/100*(e.viewBoxWidth/2-e.strokeWidth/2*(1+2*i)-e.circleGap*i)*2}, ${e.viewBoxWidth*8}`));return()=>{const{viewBoxWidth:o,strokeWidth:n,circleGap:i,showIndicator:a,fillColor:l,railColor:s,railStyle:c,percentage:d,clsPrefix:u}=e;return f("div",{class:`${u}-progress-content`,role:"none"},f("div",{class:`${u}-progress-graph`,"aria-hidden":!0},f("div",{class:`${u}-progress-graph-circle`},f("svg",{viewBox:`0 0 ${o} ${o}`},d.map((h,g)=>f("g",{key:g},f("path",{class:`${u}-progress-graph-circle-rail`,d:ig(o/2-n/2*(1+2*g)-i*g,n,o),"stroke-width":n,"stroke-linecap":"round",fill:"none",style:[{strokeDashoffset:0,stroke:s[g]},c[g]]}),f("path",{class:[`${u}-progress-graph-circle-fill`,h===0&&`${u}-progress-graph-circle-fill--empty`],d:ig(o/2-n/2*(1+2*g)-i*g,n,o),"stroke-width":n,"stroke-linecap":"round",fill:"none",style:{strokeDasharray:r.value[g],strokeDashoffset:0,stroke:l[g]}})))))),a&&t.default?f("div",null,f("div",{class:`${u}-progress-text`},t.default())):null)}}});const k6=Object.assign(Object.assign({},ye.props),{processing:Boolean,type:{type:String,default:"line"},status:{type:String,default:"default"},railColor:[String,Array],railStyle:[String,Array],color:[String,Array],viewBoxWidth:{type:Number,default:100},strokeWidth:{type:Number,default:7},percentage:[Number,Array],unit:{type:String,default:"%"},showIndicator:{type:Boolean,default:!0},indicatorPosition:{type:String,default:"outside"},indicatorPlacement:{type:String,default:"outside"},indicatorTextColor:String,circleGap:{type:Number,default:1},height:Number,borderRadius:[String,Number],fillBorderRadius:[String,Number]});var P6=q({name:"Progress",props:k6,setup(e){const t=R(()=>e.indicatorPlacement||e.indicatorPosition),{mergedClsPrefixRef:r}=Ee(e),o=ye("Progress","Progress",b6,ng,e,r);return{mergedClsPrefix:r,mergedIndicatorPlacement:t,cssVars:R(()=>{const{status:n}=e,{common:{cubicBezierEaseInOut:i},self:{fontSize:a,fontSizeCircle:l,railColor:s,railHeight:c,iconSizeCircle:d,iconSizeLine:u,textColorCircle:h,textColorLineInner:g,textColorLineOuter:b,lineBgProcessing:y,fontWeightCircle:v,[ce("iconColor",n)]:p,[ce("fillColor",n)]:w}}=o.value;return{"--bezier":i,"--fill-color":w,"--font-size":a,"--font-size-circle":l,"--font-weight-circle":v,"--icon-color":p,"--icon-size-circle":d,"--icon-size-line":u,"--line-bg-processing":y,"--rail-color":s,"--rail-height":c,"--text-color-circle":h,"--text-color-line-inner":g,"--text-color-line-outer":b}})}},render(){const{type:e,cssVars:t,indicatorTextColor:r,showIndicator:o,status:n,railColor:i,railStyle:a,color:l,percentage:s,viewBoxWidth:c,strokeWidth:d,mergedIndicatorPlacement:u,unit:h,borderRadius:g,fillBorderRadius:b,height:y,processing:v,circleGap:p,mergedClsPrefix:w,$slots:P}=this;return f("div",{class:[`${w}-progress`,`${w}-progress--${e}`,`${w}-progress--${n}`],style:t,"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":s,role:e==="circle"||e==="line"?"progressbar":"none"},e==="circle"?f(C6,{clsPrefix:w,status:n,showIndicator:o,indicatorTextColor:r,railColor:i,fillColor:l,railStyle:a,percentage:s,viewBoxWidth:c,strokeWidth:d,unit:h},P):e==="line"?f(y6,{clsPrefix:w,status:n,showIndicator:o,indicatorTextColor:r,railColor:i,fillColor:l,railStyle:a,percentage:s,processing:v,indicatorPlacement:u,unit:h,fillBorderRadius:b,railBorderRadius:g,height:y},P):e==="multiple-circle"?f(S6,{clsPrefix:w,strokeWidth:d,railColor:i,fillColor:l,railStyle:a,viewBoxWidth:c,percentage:s,showIndicator:o,circleGap:p},P):null)}});const $6=Object.assign(Object.assign({},ye.props),{xScrollable:Boolean,onScroll:Function}),R6=q({name:"Scrollbar",props:$6,setup(){const e=W(null);return Object.assign(Object.assign({},{scrollTo:(...r)=>{var o;(o=e.value)===null||o===void 0||o.scrollTo(r[0],r[1])}}),{scrollbarInstRef:e})},render(){return f($r,Object.assign({ref:"scrollbarInstRef"},this.$props),this.$slots)}});var KO=R6;const T6=e=>{const{opacityDisabled:t,heightTiny:r,heightSmall:o,heightMedium:n,heightLarge:i,heightHuge:a,primaryColor:l,fontSize:s}=e;return{fontSize:s,textColor:l,sizeTiny:r,sizeSmall:o,sizeMedium:n,sizeLarge:i,sizeHuge:a,color:l,opacitySpinning:t}},z6={name:"Spin",common:De,self:T6};var _6=z6,O6=E([E("@keyframes spin-rotate",` + from { + transform: rotate(0); + } + to { + transform: rotate(360deg); + } + `),k("spin-container",{position:"relative"},[k("spin-body",` + position: absolute; + top: 50%; + left: 50%; + transform: translateX(-50%) translateY(-50%); + `,[ni()])]),k("spin-body",` + display: inline-flex; + align-items: center; + justify-content: center; + flex-direction: column; + `),k("spin",` + display: inline-flex; + height: var(--size); + width: var(--size); + font-size: var(--size); + color: var(--color); + `,[j("rotate",` + animation: spin-rotate 2s linear infinite; + `)]),k("spin-description",` + display: inline-block; + font-size: var(--font-size); + color: var(--text-color); + transition: color .3s var(--bezier); + margin-top: 8px; + `),k("spin-content",` + opacity: 1; + transition: opacity .3s var(--bezier); + pointer-events: all; + `,[j("spinning",` + user-select: none; + pointer-events: none; + opacity: var(--opacity-spinning); + `)])]);const E6={small:20,medium:18,large:16},M6=Object.assign(Object.assign({},ye.props),{description:String,stroke:String,size:{type:[String,Number],default:"medium"},show:{type:Boolean,default:!0},strokeWidth:Number,rotate:{type:Boolean,default:!0},spinning:{type:Boolean,validator:()=>!0,default:void 0}});var qO=q({name:"Spin",props:M6,setup(e){const{mergedClsPrefixRef:t}=Ee(e),r=ye("Spin","Spin",O6,_6,e,t);return{mergedClsPrefix:t,compitableShow:ei(e,["spinning","show"]),mergedStrokeWidth:R(()=>{const{strokeWidth:o}=e;if(o!==void 0)return o;const{size:n}=e;return E6[typeof n=="number"?"medium":n]}),cssVars:R(()=>{const{size:o}=e,{common:{cubicBezierEaseInOut:n},self:i}=r.value,{opacitySpinning:a,color:l,textColor:s}=i,c=typeof o=="number"?Et(o):i[ce("size",o)];return{"--bezier":n,"--opacity-spinning":a,"--size":c,"--color":l,"--text-color":s}})}},render(){var e;const{$slots:t,mergedClsPrefix:r,description:o}=this,n=t.icon&&this.rotate,i=(o||t.description)&&f("div",{class:`${r}-spin-description`},o||((e=t.description)===null||e===void 0?void 0:e.call(t))),a=t.icon?f("div",{class:`${r}-spin-body`},f("div",{class:[`${r}-spin`,n&&`${r}-spin--rotate`],style:t.default?"":this.cssVars},t.icon()),i):f("div",{class:`${r}-spin-body`},f(Lr,{clsPrefix:r,style:t.default?"":this.cssVars,stroke:this.stroke,"stroke-width":this.mergedStrokeWidth,class:`${r}-spin`}),i);return t.default?f("div",{class:`${r}-spin-container`,style:this.cssVars},f("div",{class:[`${r}-spin-content`,this.compitableShow&&`${r}-spin-content--spinning`]},t),f(ht,{name:"fade-in-transition"},{default:()=>this.compitableShow?a:null})):a}});const I6=e=>{const{textColor2:t,textColor3:r,fontSize:o,fontWeight:n}=e;return{labelFontSize:o,labelFontWeight:n,valueFontWeight:n,labelTextColor:r,valuePrefixTextColor:t,valueSuffixTextColor:t,valueTextColor:t}},A6={name:"Statistic",common:De,self:I6};var F6=A6,B6=k("statistic",[O("label",` + font-weight: var(--label-font-weight); + transition: .3s color var(--bezier); + font-size: var(--label-font-size); + color: var(--label-text-color); + `),k("statistic-value",` + margin-top: 4px; + font-weight: var(--value-font-weight); + `,[O("prefix",` + margin: 0 4px 0 0; + font-size: 24px; + transition: .3s color var(--bezier); + color: var(--value-prefix-text-color); + `,[k("icon",{verticalAlign:"-0.125em"})]),O("content",` + font-size: 24px; + transition: .3s color var(--bezier); + color: var(--value-text-color); + `),O("suffix",` + margin: 0 0 0 4px; + font-size: 24px; + transition: .3s color var(--bezier); + color: var(--value-suffix-text-color); + `,[k("icon",{verticalAlign:"-0.125em"})])])]);const L6=Object.assign(Object.assign({},ye.props),{label:{type:String,default:void 0},value:{type:[String,Number],default:void 0},valueStyle:{type:[Object,String],default:void 0}});var GO=q({name:"Statistic",props:L6,setup(e){const{mergedClsPrefixRef:t}=Ee(e),r=ye("Statistic","Statistic",B6,F6,e,t);return{mergedClsPrefix:t,cssVars:R(()=>{const{self:{labelFontWeight:o,valueFontWeight:n,valuePrefixTextColor:i,labelTextColor:a,valueSuffixTextColor:l,valueTextColor:s,labelFontSize:c},common:{cubicBezierEaseInOut:d}}=r.value;return{"--bezier":d,"--label-font-size":c,"--label-font-weight":o,"--label-text-color":a,"--value-font-weight":n,"--value-prefix-text-color":i,"--value-suffix-text-color":l,"--value-text-color":s}})}},render(){var e;const{$slots:t,mergedClsPrefix:r}=this;return f("div",{class:`${r}-statistic`,style:this.cssVars},f("div",{class:`${r}-statistic__label`},this.label||((e=t.label)===null||e===void 0?void 0:e.call(t))),f("div",{class:`${r}-statistic-value`},t.prefix?f("span",{class:`${r}-statistic-value__prefix`},Ae(t,"prefix")):null,this.value!==void 0?f("span",{class:`${r}-statistic-value__content`},this.value):f("span",{class:`${r}-statistic-value__content`},t),t.suffix?f("span",{class:`${r}-statistic-value__suffix`},Ae(t,"suffix")):null))}}),D6={buttonHeightSmall:"14px",buttonHeightMedium:"18px",buttonHeightLarge:"22px",buttonWidthSmall:"14px",buttonWidthMedium:"18px",buttonWidthLarge:"22px",buttonWidthPressedSmall:"20px",buttonWidthPressedMedium:"24px",buttonWidthPressedLarge:"28px",railHeightSmall:"18px",railHeightMedium:"22px",railHeightLarge:"26px",railWidthSmall:"32px",railWidthMedium:"40px",railWidthLarge:"48px"};const N6=e=>{const{primaryColor:t,opacityDisabled:r,borderRadius:o}=e,n="rgba(0, 0, 0, .14)";return Object.assign(Object.assign({},D6),{textColor:"white",loadingColor:t,opacityDisabled:r,railColor:n,railColorActive:t,buttonBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",buttonColor:"#FFF",railBorderRadiusSmall:o,railBorderRadiusMedium:o,railBorderRadiusLarge:o,buttonBorderRadiusSmall:o,buttonBorderRadiusMedium:o,buttonBorderRadiusLarge:o,boxShadowFocus:`0 0 0 2px ${ze(t,{alpha:.2})}`})},j6={name:"Switch",common:De,self:N6};var H6=j6,W6=k("switch",` + height: var(--height); + min-width: var(--width); + vertical-align: middle; + user-select: none; + display: inline-flex; + outline: none; + justify-content: center; + align-items: center; +`,[O("children-placeholder",` + height: var(--rail-height); + display: flex; + flex-direction: column; + overflow: hidden; + pointer-events: none; + visibility: hidden; + `),O("rail-placeholder",` + display: flex; + flex-wrap: none; + `),O("button-placeholder",` + width: calc(1.75 * var(--rail-height)); + height: var(--rail-height); + `),k("base-loading",` + position: absolute; + top: 50%; + left: 50%; + transform: translateX(-50%) translateY(-50%); + font-size: calc(var(--button-width) - 4px); + color: var(--loading-color); + transition: color .3s var(--bezier); + `,[jr({originalTransform:"translateX(-50%) translateY(-50%)"})]),O("checked, unchecked",` + transition: color .3s var(--bezier); + color: var(--text-color); + box-sizing: border-box; + position: absolute; + white-space: nowrap; + top: 0; + bottom: 0; + display: flex; + align-items: center; + line-height: 1; + `),O("checked",` + right: 0; + padding-right: calc(1.25 * var(--rail-height) - var(--offset)); + `),O("unchecked",` + left: 0; + justify-content: flex-end; + padding-left: calc(1.25 * var(--rail-height) - var(--offset)); + `),E("&:focus",[O("rail",` + box-shadow: var(--box-shadow-focus); + `)]),j("round",[O("rail",{borderRadius:"calc(var(--rail-height) / 2)"},[O("button",{borderRadius:"calc(var(--button-height) / 2)"})])]),qe("disabled",[j("pressed",[O("rail",[O("button",{maxWidth:"var(--button-width-pressed)"})])]),O("rail",[E("&:active",[O("button",{maxWidth:"var(--button-width-pressed)"})])]),j("active",[j("pressed",[O("rail",[O("button",{left:"calc(100% - var(--offset) - var(--button-width-pressed))"})])]),O("rail",[E("&:active",[O("button",{left:"calc(100% - var(--offset) - var(--button-width-pressed))"})])])])]),j("active",[O("rail",[O("button",{left:"calc(100% - (var(--rail-height) + var(--button-width)) / 2)"})])]),O("rail",` + overflow: hidden; + height: var(--rail-height); + min-width: var(--rail-width); + border-radius: var(--rail-border-radius); + cursor: pointer; + position: relative; + transition: + background-color .3s var(--bezier), + box-shadow .3s var(--bezier); + background-color: var(--rail-color); + `,[O("button",` + top: var(--offset); + left: var(--offset); + height: var(--button-width); + width: var(--button-width-pressed); + max-width: var(--button-width); + border-radius: var(--button-border-radius); + background-color: var(--button-color); + box-shadow: var(--button-box-shadow); + box-sizing: border-box; + cursor: inherit; + content: ""; + position: absolute; + transition: + background-color .3s var(--bezier), + left .3s var(--bezier), + opacity .3s var(--bezier), + max-width .3s var(--bezier), + box-shadow .3s var(--bezier); + `)]),j("active",[O("rail",{backgroundColor:"var(--rail-color-active)"})]),j("disabled",[O("rail",` + cursor: not-allowed; + opacity: .5; + `)])]);const U6=Object.assign(Object.assign({},ye.props),{size:{type:String,default:"medium"},value:{type:[String,Number,Boolean],default:void 0},loading:Boolean,defaultValue:{type:[String,Number,Boolean],default:!1},disabled:{type:Boolean,default:void 0},round:{type:Boolean,default:!0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],checkedValue:{type:[String,Number,Boolean],default:!0},uncheckedValue:{type:[String,Number,Boolean],default:!1},onChange:[Function,Array]});var YO=q({name:"Switch",props:U6,setup(e){const{mergedClsPrefixRef:t}=Ee(e),r=ye("Switch","Switch",W6,H6,e,t),o=xr(e),{mergedSizeRef:n,mergedDisabledRef:i}=o,a=W(e.defaultValue),l=ke(e,"value"),s=gt(l,a),c=W(!1);function d(w){const{"onUpdate:value":P,onChange:m,onUpdateValue:x}=e,{nTriggerFormInput:C,nTriggerFormChange:S}=o;P&&ue(P,w),x&&ue(x,w),m&&ue(m,w),a.value=w,C(),S()}function u(){const{nTriggerFormFocus:w}=o;w()}function h(){const{nTriggerFormBlur:w}=o;w()}function g(){i.value||(s.value!==e.checkedValue?d(e.checkedValue):d(e.uncheckedValue))}function b(){u()}function y(){h(),c.value=!1}function v(w){w.code==="Space"&&(d(!s.value),c.value=!1)}function p(w){w.code==="Space"&&(w.preventDefault(),c.value=!0)}return{handleClick:g,handleBlur:y,handleFocus:b,handleKeyup:v,handleKeydown:p,pressed:c,mergedClsPrefix:t,mergedValue:s,mergedDisabled:i,cssVars:R(()=>{const{value:w}=n,{self:{opacityDisabled:P,railColor:m,railColorActive:x,buttonBoxShadow:C,buttonColor:S,boxShadowFocus:T,loadingColor:$,textColor:M,[ce("buttonHeight",w)]:D,[ce("buttonWidth",w)]:_,[ce("buttonWidthPressed",w)]:I,[ce("railHeight",w)]:G,[ce("railWidth",w)]:U,[ce("railBorderRadius",w)]:N,[ce("buttonBorderRadius",w)]:F},common:{cubicBezierEaseInOut:A}}=r.value,re=Et((Ot(G)-Ot(D))/2),be=Et(Math.max(Ot(G),Ot(D))),Se=Ot(G)>Ot(D)?U:Et(Ot(U)+Ot(D)-Ot(G));return{"--bezier":A,"--button-border-radius":F,"--button-box-shadow":C,"--button-color":S,"--button-width":_,"--button-width-pressed":I,"--button-height":D,"--height":be,"--offset":re,"--opacity-disabled":P,"--rail-border-radius":N,"--rail-color":m,"--rail-color-active":x,"--rail-height":G,"--rail-width":U,"--width":Se,"--box-shadow-focus":T,"--loading-color":$,"--text-color":M}})}},render(){const{mergedClsPrefix:e,mergedValue:t,mergedDisabled:r,checkedValue:o,$slots:n}=this,i=t===o,{checked:a,unchecked:l}=n;return f("div",{role:"switch","aria-checked":i,class:[`${e}-switch`,i&&`${e}-switch--active`,r&&`${e}-switch--disabled`,this.round&&`${e}-switch--round`,this.pressed&&`${e}-switch--pressed`],tabindex:this.mergedDisabled?void 0:0,style:this.cssVars,onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},f("div",{class:`${e}-switch__rail`,"aria-hidden":"true"},(a||l)&&f("div",{"aria-hidden":!0,class:`${e}-switch__children-placeholder`},f("div",{class:`${e}-switch__rail-placeholder`},f("div",{class:`${e}-switch__button-placeholder`}),a==null?void 0:a()),f("div",{class:`${e}-switch__rail-placeholder`},f("div",{class:`${e}-switch__button-placeholder`}),l==null?void 0:l())),f("div",{class:`${e}-switch__button`},f(ht,{name:"fade-in-scale-up-transition"},{default:()=>this.loading?f(Lr,{key:"loading",clsPrefix:e,strokeWidth:20}):null}),a&&f("div",{key:"checked",class:`${e}-switch__checked`},a()),l&&f("div",{key:"unchecked",class:`${e}-switch__unchecked`},l()))))}});function V6(e,t){var r=Y6(t);return r.formatToParts?q6(r,e):G6(r,e)}var K6={year:0,month:1,day:2,hour:3,minute:4,second:5};function q6(e,t){for(var r=e.formatToParts(t),o=[],n=0;n=0&&(o[i]=parseInt(r[n].value,10))}return o}function G6(e,t){var r=e.format(t).replace(/\u200E/g,""),o=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(r);return[o[3],o[1],o[2],o[4],o[5],o[6]]}var lc={};function Y6(e){if(!lc[e]){var t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),r=t==="06/25/2014, 00:00:00"||t==="\u200E06\u200E/\u200E25\u200E/\u200E2014\u200E \u200E00\u200E:\u200E00\u200E:\u200E00";lc[e]=r?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return lc[e]}var ag=36e5,X6=6e4,sc={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-])(\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function Z6(e,t,r){var o,n;if(o=sc.timezoneZ.exec(e),o)return 0;var i;if(o=sc.timezoneHH.exec(e),o)return i=parseInt(o[2],10),lg()?(n=i*ag,o[1]==="+"?-n:n):NaN;if(o=sc.timezoneHHMM.exec(e),o){i=parseInt(o[2],10);var a=parseInt(o[3],10);return lg(i,a)?(n=i*ag+a*X6,o[1]==="+"?-n:n):NaN}if(eT(e)){t=new Date(t||Date.now());var l=r?t:J6(t),s=cc(l,e),c=r?s:Q6(t,s,e);return-c}return 0}function J6(e){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()))}function cc(e,t){var r=V6(e,t),o=Date.UTC(r[0],r[1]-1,r[2],r[3]%24,r[4],r[5]),n=e.getTime(),i=n%1e3;return n-=i>=0?i:1e3+i,o-n}function Q6(e,t,r){var o=e.getTime(),n=o-t,i=cc(new Date(n),r);if(t===i)return t;n-=i-t;var a=cc(new Date(n),r);return i===a?i:Math.max(i,a)}function lg(e,t){return!(t!=null&&(t<0||t>59))}function eT(e){try{return Intl.DateTimeFormat(void 0,{timeZone:e}),!0}catch{return!1}}function sg(e,t){return-Z6(e,t)}const tT={time:{type:[Number,Date],default:void 0},type:{type:String,default:"datetime"},to:{type:[Number,Date],default:void 0},unix:Boolean,format:String,text:Boolean,timezone:String};var XO=q({name:"Time",props:tT,setup(e){const t=Date.now(),{localeRef:r,dateLocaleRef:o}=kr("Time"),n=R(()=>{const{timezone:c}=e;return c?(d,u)=>Hh(I4(d)+-sg(Intl.DateTimeFormat().resolvedOptions().timeZone,d)+sg(c,d),u):Hh}),i=R(()=>({locale:o.value.locale})),a=R(()=>{const{time:c}=e;return e.unix?c===void 0?t:Uh(typeof c=="number"?c:c.valueOf()):c!=null?c:t}),l=R(()=>{const{to:c}=e;return e.unix?c===void 0?t:Uh(typeof c=="number"?c:c.valueOf()):c!=null?c:t});return{renderedTime:R(()=>e.format?n.value(a.value,e.format,i.value):e.type==="date"?n.value(a.value,r.value.dateFormat,i.value):e.type==="datetime"?n.value(a.value,r.value.dateTimeFormat,i.value):M4(a.value,l.value,{addSuffix:!0,locale:o.value.locale}))}},render(){return this.text?Eo(this.renderedTime):f("time",[this.renderedTime])}}),rT={headerFontSize1:"30px",headerFontSize2:"22px",headerFontSize3:"18px",headerFontSize4:"16px",headerFontSize5:"16px",headerFontSize6:"16px",headerMargin1:"28px 0 20px 0",headerMargin2:"28px 0 20px 0",headerMargin3:"28px 0 20px 0",headerMargin4:"28px 0 18px 0",headerMargin5:"28px 0 18px 0",headerMargin6:"28px 0 18px 0",headerPrefixWidth1:"16px",headerPrefixWidth2:"16px",headerPrefixWidth3:"12px",headerPrefixWidth4:"12px",headerPrefixWidth5:"12px",headerPrefixWidth6:"12px",headerBarWidth1:"4px",headerBarWidth2:"4px",headerBarWidth3:"3px",headerBarWidth4:"3px",headerBarWidth5:"3px",headerBarWidth6:"3px",pMargin:"16px 0 16px 0",liMargin:".25em 0 0 0",olPadding:"0 0 0 2em",ulPadding:"0 0 0 2em"};const oT=e=>{const{primaryColor:t,textColor2:r,borderColor:o,lineHeight:n,fontSize:i,borderRadiusSmall:a,dividerColor:l,fontWeightStrong:s,textColor1:c,textColor3:d,infoColor:u,warningColor:h,errorColor:g,successColor:b,codeColor:y}=e;return Object.assign(Object.assign({},rT),{aTextColor:t,blockquoteTextColor:r,blockquotePrefixColor:o,blockquoteLineHeight:n,blockquoteFontSize:i,codeBorderRadius:a,liTextColor:r,liLineHeight:n,liFontSize:i,hrColor:l,headerFontWeight:s,headerTextColor:c,pTextColor:r,pTextColor1Depth:c,pTextColor2Depth:r,pTextColor3Depth:d,pLineHeight:n,pFontSize:i,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:u,headerBarColorError:g,headerBarColorWarning:h,headerBarColorSuccess:b,textColor:r,textColor1Depth:c,textColor2Depth:r,textColor3Depth:d,textColorPrimary:t,textColorInfo:u,textColorSuccess:b,textColorWarning:h,textColorError:g,codeTextColor:r,codeColor:y,codeBorder:"1px solid #0000"})},nT={name:"Typography",common:De,self:oT};var cg=nT,iT=k("p",` + box-sizing: border-box; + transition: color .3s var(--bezier); + margin: var(--margin); + font-size: var(--font-size); + line-height: var(--line-height); + color: var(--text-color); +`,[E("&:first-child","margin-top: 0;"),E("&:last-child","margin-bottom: 0;")]);const aT=Object.assign(Object.assign({},ye.props),{depth:[String,Number]});var ZO=q({name:"P",props:aT,setup(e){const{mergedClsPrefixRef:t}=Ee(e),r=ye("Typography","P",iT,cg,e,t);return{mergedClsPrefix:t,cssVars:R(()=>{const{depth:o}=e,n=o||"1",{common:{cubicBezierEaseInOut:i},self:{pFontSize:a,pLineHeight:l,pMargin:s,pTextColor:c,[`pTextColor${n}Depth`]:d}}=r.value;return{"--bezier":i,"--font-size":a,"--line-height":l,"--margin":s,"--text-color":o===void 0?c:d}})}},render(){return f("p",{class:`${this.mergedClsPrefix}-p`,style:this.cssVars},this.$slots)}}),lT=k("text",` + transition: color .3s var(--bezier); + color: var(--text-color); +`,[j("strong",` + font-weight: var(--font-weight-strong); + `),j("italic",{fontStyle:"italic"}),j("underline",{textDecoration:"underline"}),j("code",` + line-height: 1.4; + display: inline-block; + font-family: var(--font-famliy-mono); + transition: + color .3s var(--bezier), + border-color .3s var(--bezier), + background-color .3s var(--bezier); + box-sizing: border-box; + padding: .05em .35em 0 .35em; + border-radius: var(--code-border-radius); + font-size: .9em; + color: var(--code-text-color); + background-color: var(--code-color); + border: var(--code-border); + `)]);const sT=Object.assign(Object.assign({},ye.props),{code:Boolean,type:{type:String,default:"default"},delete:Boolean,strong:Boolean,italic:Boolean,underline:Boolean,depth:[String,Number],tag:String,as:{type:String,validator:()=>!0,default:void 0}});var JO=q({name:"Text",props:sT,setup(e){const{mergedClsPrefixRef:t}=Ee(e),r=ye("Typography","Text",lT,cg,e,t);return{mergedClsPrefix:t,compitableTag:ei(e,["as","tag"]),cssVars:R(()=>{const{depth:o,type:n}=e,i=n==="default"?o===void 0?"textColor":`textColor${o}Depth`:ce("textColor",n),{common:{fontWeightStrong:a,fontFamilyMono:l},self:{codeTextColor:s,codeBorderRadius:c,codeColor:d,codeBorder:u,[i]:h}}=r.value;return{"--text-color":h,"--font-weight-strong":a,"--font-famliy-mono":l,"--code-border-radius":c,"--code-text-color":s,"--code-color":d,"--code-border":u}})}},render(){const{mergedClsPrefix:e}=this,t=[`${e}-text`,{[`${e}-text--code`]:this.code,[`${e}-text--delete`]:this.delete,[`${e}-text--strong`]:this.strong,[`${e}-text--italic`]:this.italic,[`${e}-text--underline`]:this.underline}],r=Ae(this.$slots,"default");return this.code?f("code",{class:t,style:this.cssVars},this.delete?f("del",null,r):r):this.delete?f("del",{class:t,style:this.cssVars},r):f(this.compitableTag||"span",{class:t,style:this.cssVars},r)}});const cT=e=>{const{iconColor:t,primaryColor:r,errorColor:o,textColor2:n,successColor:i,opacityDisabled:a,actionColor:l,borderColor:s,hoverColor:c,lineHeight:d,borderRadius:u,fontSize:h}=e;return{fontSize:h,lineHeight:d,borderRadius:u,draggerColor:l,draggerBorder:`1px dashed ${s}`,draggerBorderHover:`1px dashed ${r}`,itemColorHover:c,itemColorHoverError:ze(o,{alpha:.06}),itemTextColor:n,itemTextColorError:o,itemTextColorSuccess:i,itemIconColor:t,itemDisabledOpacity:a,itemBorderImageCardError:`1px solid ${o}`,itemBorderImageCard:`1px solid ${s}`}},dT=St({name:"Upload",common:De,peers:{Button:ai,Progress:ng},self:cT});var uT=dT;const fn=Symbol("upload"),dg="__UPLOAD_DRAGGER__";var fT=q({name:"UploadDragger",[dg]:!0,setup(e,{slots:t}){const r=Pe(fn,null);return r||Cr("upload-dragger","`n-upload-dragger` must be placed inside `n-upload`."),()=>{const{mergedClsPrefixRef:{value:o},mergedDisabledRef:{value:n}}=r;return f("div",{class:[`${o}-upload-dragger`,n&&`${o}-upload-dragger--disabled`]},t)}}}),hT=E([k("upload",[j("dragger-inside",[O("trigger",` + display: block; + `)]),j("drag-over",[k("upload-dragger",` + border: var(--dragger-border-hover); + `)])]),k("upload-dragger",` + cursor: pointer; + box-sizing: border-box; + width: 100%; + text-align: center; + border-radius: var(--border-radius); + padding: 24px; + opacity: 1; + transition: + opacity .3s var(--bezier), + border-color .3s var(--bezier), + background-color .3s var(--bezier); + background-color: var(--dragger-color); + border: var(--dragger-border); + `,[E("&:hover",` + border: var(--dragger-border-hover); + `),j("disabled",` + opacity: var(--item-disabled-opacity); + cursor: not-allowed; + `)]),k("upload-trigger",` + display: inline-block; + box-sizing: border-box; + opacity: 1; + transition: opacity .3s var(--bezier); + `,[j("disabled",` + opacity: var(--item-disabled-opacity); + cursor: not-allowed; + `),j("image-card",` + width: 96px; + height: 96px; + `,[k("base-icon",` + font-size: 24px; + `),k("upload-dragger",` + padding: 0; + height: 100%; + width: 100%; + display: flex; + align-items: center; + justify-content: center; + `)])]),k("upload-file-list",` + margin-top: 8px; + line-height: var(--line-height); + opacity: 1; + transition: opacity .3s var(--bezier); + `,[j("disabled",` + opacity: var(--item-disabled-opacity); + cursor: not-allowed; + `,[k("upload-file","cursor: not-allowed;")]),j("grid",` + display: grid; + grid-template-columns: repeat(auto-fill, 96px); + grid-gap: 8px; + margin-top: 0; + `),k("upload-file",` + display: block; + box-sizing: border-box; + cursor: default; + padding: 0px 12px 0 6px; + transition: background-color .3s var(--bezier); + border-radius: var(--border-radius); + `,[ln(),k("progress",[ln({foldPadding:!0})]),E("&:hover",` + background-color: var(--item-color-hover); + `,[k("upload-file-info",[O("action",` + opacity: 1; + `)])]),j("image-type",` + border-radius: var(--border-radius); + text-decoration: underline; + text-decoration-color: #0000; + `,[k("upload-file-info",` + padding-top: 0px; + padding-bottom: 0px; + width: 100%; + height: 100%; + display: flex; + justify-content: space-between; + align-items: center; + padding: 6px 0; + `,[k("progress",` + padding: 2px 0; + margin-bottom: 0; + `),O("name",` + padding: 0 8px; + `),O("thumbnail",` + width: 32px; + height: 32px; + font-size: 28px; + display: flex; + justify-content: center; + align-items: center; + `,[E("img",` + width: 100%; + `)])])]),j("text-type",[k("progress",` + box-sizing: border-box; + padding-bottom: 6px; + margin-bottom: 6px; + `)]),j("image-card-type",` + position: relative; + width: 96px; + height: 96px; + border: var(--item-border-image-card); + border-radius: var(--border-radius); + padding: 0; + display: flex; + align-items: center; + justify-content: center; + transition: border-color .3s var(--bezier), background-color .3s var(--bezier); + border-radius: var(--border-radius); + `,[k("progress",` + position: absolute; + left: 8px; + bottom: 8px; + right: 8px; + width: unset; + `),k("upload-file-info",` + padding: 0; + width: 100%; + height: 100%; + `,[O("thumbnail",` + width: 100%; + height: 100%; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + font-size: 36px; + `,[E("img",` + width: 100%; + `)])]),E("&::before",` + position: absolute; + z-index: 1; + left: 0; + right: 0; + top: 0; + bottom: 0; + border-radius: inherit; + opacity: 0; + transition: opacity .2s var(--bezier); + content: ""; + `),E("&:hover",[E("&::before","opacity: 1;"),k("upload-file-info",[O("thumbnail","opacity: .12;")])])]),j("error-status",[E("&:hover",` + background-color: var(--item-color-hover-error); + `),k("upload-file-info",[O("name","color: var(--item-text-color-error);"),O("thumbnail","color: var(--item-text-color-error);")]),j("image-card-type",` + border: var(--item-border-image-card-error); + `)]),j("with-url",` + cursor: pointer; + `,[k("upload-file-info",[O("name",` + color: var(--item-text-color-success); + text-decoration-color: var(--item-text-color-success); + `,[E("a",` + text-decoration: underline; + `)])])]),k("upload-file-info",` + position: relative; + padding-top: 6px; + padding-bottom: 6px; + display: flex; + flex-wrap: nowrap; + `,[O("thumbnail",` + font-size: 18px; + opacity: 1; + transition: opacity .2s var(--bezier); + color: var(--item-icon-color); + `,[k("base-icon",` + margin-right: 2px; + vertical-align: middle; + transition: color .3s var(--bezier); + `)]),O("action",` + padding-top: inherit; + padding-bottom: inherit; + position: absolute; + right: 0; + top: 0; + bottom: 0; + width: 80px; + display: flex; + align-items: center; + transition: opacity .2s var(--bezier); + justify-content: flex-end; + opacity: 0; + `,[k("button",[E("&:not(:last-child)",{marginRight:"4px"}),k("base-icon",[E("svg",[bo()])])]),j("image-type",` + position: relative; + max-width: 80px; + width: auto; + `),j("image-card-type",` + z-index: 2; + position: absolute; + width: 100%; + height: 100%; + left: 0; + right: 0; + bottom: 0; + top: 0; + display: flex; + justify-content: center; + align-items: center; + `)]),O("name",` + color: var(--item-text-color); + flex: 1; + display: flex; + justify-content: center; + text-overflow: ellipsis; + overflow: hidden; + flex-direction: column; + text-decoration-color: #0000; + font-size: var(--font-size); + transition: + color .3s var(--bezier), + text-decoration-color .3s var(--bezier); + `,[E("a",` + color: inherit; + text-decoration: underline; + `)])])])]),k("upload-file-input",` + display: block; + width: 0; + height: 0; + opacity: 0; + `)]),pT=function(e,t,r,o){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function l(d){try{c(o.next(d))}catch(u){a(u)}}function s(d){try{c(o.throw(d))}catch(u){a(u)}}function c(d){d.done?i(d.value):n(d.value).then(l,s)}c((o=o.apply(e,t||[])).next())})};const ug=e=>e.includes("image/"),gT=(e="")=>{const t=e.split("/"),o=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(o)||[""])[0]},vT=e=>{if(e.type)return ug(e.type);const t=e.thumbnailUrl||e.url||"",r=gT(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(r)?!0:!(/^data:/.test(t)||r)};function mT(e){return pT(this,void 0,void 0,function*(){return yield new Promise(t=>{if(!e.type||!ug(e.type)){t("");return}const r=new Image;r.src=window.URL.createObjectURL(e),r.onload=()=>{const{width:o,height:n}=r,i=document.createElement("canvas"),a=i.getContext("2d");i.width=o,i.height=n,i.style.cssText=`position: fixed; left: 0; top: 0; width: ${o}px; height: ${n}px; z-index: 9999; display: none;`,document.body.appendChild(i),a==null||a.drawImage(r,0,0,o,n);const l=i.toDataURL();document.body.removeChild(i),t(l)}})})}const bT=typeof document!="undefined"&&typeof window!="undefined"&&window.FileReader&&window.File;var fg=q({name:"UploadTrigger",props:{abstract:Boolean},setup(e,{slots:t}){const r=Pe(fn,null);r||Cr("upload-trigger","`n-upload-trigger` must be placed inside `n-upload`.");const{mergedClsPrefixRef:o,mergedDisabledRef:n,maxReachedRef:i,listTypeRef:a,dragOverRef:l,openFileDialog:s,draggerInsideRef:c,handleFileAddition:d}=r,u=R(()=>a.value==="image-card");function h(){n.value||i.value||s()}function g(p){p.preventDefault(),l.value=!0}function b(p){p.preventDefault(),l.value=!0}function y(p){p.preventDefault(),l.value=!1}function v(p){if(p.preventDefault(),!c.value||n.value||i.value)return;const w=p.dataTransfer,P=w==null?void 0:w.files;P&&d(P),l.value=!1}return()=>{var p;const{value:w}=o;return e.abstract?(p=t.default)===null||p===void 0?void 0:p.call(t,{handleClick:h,handleDrop:v,handleDragOver:g,handleDragEnter:b,handleDragLeave:y}):f("div",{class:[`${w}-upload-trigger`,(n.value||i.value)&&`${w}-upload-trigger--disabled`,u.value&&`${w}-upload-trigger--image-card`],onClick:h,onDrop:v,onDragover:g,onDragenter:b,onDragleave:y},u.value?f(fT,null,{default:t.default||(()=>f(Be,{clsPrefix:w},{default:()=>f(I2,null)}))}):t)}}}),xT=q({name:"UploadProgress",props:{show:Boolean,percentage:{type:Number,required:!0},status:{type:String,required:!0}},setup(){return{mergedTheme:Pe(fn).mergedThemeRef}},render(){return f(mo,null,{default:()=>this.show?f(P6,{type:"line",showIndicator:!1,percentage:this.percentage,status:this.status,height:2,theme:this.mergedTheme.peers.Progress,themeOverrides:this.mergedTheme.peerOverrides.Progress}):null})}});const yT=f("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28"},f("g",{fill:"none"},f("path",{d:"M21.75 3A3.25 3.25 0 0 1 25 6.25v15.5A3.25 3.25 0 0 1 21.75 25H6.25A3.25 3.25 0 0 1 3 21.75V6.25A3.25 3.25 0 0 1 6.25 3h15.5zm.583 20.4l-7.807-7.68a.75.75 0 0 0-.968-.07l-.084.07l-7.808 7.68c.183.065.38.1.584.1h15.5c.204 0 .4-.035.583-.1l-7.807-7.68l7.807 7.68zM21.75 4.5H6.25A1.75 1.75 0 0 0 4.5 6.25v15.5c0 .208.036.408.103.593l7.82-7.692a2.25 2.25 0 0 1 3.026-.117l.129.117l7.82 7.692c.066-.185.102-.385.102-.593V6.25a1.75 1.75 0 0 0-1.75-1.75zm-3.25 3a2.5 2.5 0 1 1 0 5a2.5 2.5 0 0 1 0-5zm0 1.5a1 1 0 1 0 0 2a1 1 0 0 0 0-2z",fill:"currentColor"}))),wT=f("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28"},f("g",{fill:"none"},f("path",{d:"M6.4 2A2.4 2.4 0 0 0 4 4.4v19.2A2.4 2.4 0 0 0 6.4 26h15.2a2.4 2.4 0 0 0 2.4-2.4V11.578c0-.729-.29-1.428-.805-1.944l-6.931-6.931A2.4 2.4 0 0 0 14.567 2H6.4zm-.9 2.4a.9.9 0 0 1 .9-.9H14V10a2 2 0 0 0 2 2h6.5v11.6a.9.9 0 0 1-.9.9H6.4a.9.9 0 0 1-.9-.9V4.4zm16.44 6.1H16a.5.5 0 0 1-.5-.5V4.06l6.44 6.44z",fill:"currentColor"})));var CT=function(e,t,r,o){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function l(d){try{c(o.next(d))}catch(u){a(u)}}function s(d){try{c(o.throw(d))}catch(u){a(u)}}function c(d){d.done?i(d.value):n(d.value).then(l,s)}c((o=o.apply(e,t||[])).next())})},ST=q({name:"UploadFile",props:{clsPrefix:{type:String,required:!0},file:{type:Object,required:!0},listType:{type:String,required:!0}},setup(e){const t=Pe(fn),r=W(null),o=W(""),n=R(()=>{const{file:m}=e;return m.status==="finished"?"success":m.status==="error"?"error":"info"}),i=R(()=>{const{file:m}=e;if(m.status==="error")return"error"}),a=R(()=>{const{file:m}=e;return m.status==="uploading"}),l=R(()=>{if(!t.showCancelButtonRef.value)return!1;const{file:m}=e;return["uploading","pending","error"].includes(m.status)}),s=R(()=>{if(!t.showRemoveButtonRef.value)return!1;const{file:m}=e;return["finished"].includes(m.status)}),c=R(()=>{if(!t.showDownloadButtonRef.value)return!1;const{file:m}=e;return["finished"].includes(m.status)}),d=R(()=>{if(!t.showRetryButtonRef.value)return!1;const{file:m}=e;return["error"].includes(m.status)}),u=R(()=>{if(!t.showPreviewButtonRef.value)return!1;const{file:{status:m,url:x},listType:C}=e;return["finished"].includes(m)&&(x||o.value)&&C==="image-card"});function h(){t.submit(e.file.id)}function g(m){m.preventDefault();const{file:x}=e;["finished","pending","error"].includes(x.status)?y(x):["uploading"].includes(x.status)?p(x):qt("upload","The button clicked type is unknown.")}function b(m){m.preventDefault(),v(e.file)}function y(m){const{XhrMap:x,doChange:C,onRemoveRef:{value:S},mergedFileListRef:{value:T}}=t;Promise.resolve(S?S({file:Object.assign({},m),fileList:T}):!0).then($=>{if($===!1)return;const M=Object.assign({},m,{status:"removed"});x.delete(m.id),C(M,void 0,{remove:!0})})}function v(m){const{onDownloadRef:{value:x}}=t;Promise.resolve(x?x(Object.assign({},m)):!0).then(C=>{})}function p(m){const{XhrMap:x}=t,C=x.get(m.id);C==null||C.abort(),y(Object.assign({},m))}function w(){const{onPreviewRef:{value:m}}=t;if(m)m(e.file);else if(e.listType==="image-card"){const{value:x}=r;if(!x)return;x.click()}}const P=()=>CT(this,void 0,void 0,function*(){const{listType:m}=e;m!=="image"&&m!=="image-card"||!bT||!(e.file.file instanceof File)||(o.value=yield t.getFileThumbnailUrl(e.file))});return mr(()=>{P()}),{mergedTheme:t.mergedThemeRef,progressStatus:n,buttonType:i,showProgress:a,disabled:t.mergedDisabledRef,showCancelButton:l,showRemoveButton:s,showDownloadButton:c,showRetryButton:d,showPreviewButton:u,thumbnailUrl:o,imageRef:r,handleRemoveOrCancelClick:g,handleDownloadClick:b,handleRetryClick:h,handlePreviewClick:w}},render(){const{clsPrefix:e,mergedTheme:t,listType:r,file:o}=this;let n;const i=r==="image";i||r==="image-card"?n=vT(o)?(o.url||this.thumbnailUrl)&&o.status!=="error"?f("a",{rel:"noopener noreferer",target:"_blank",href:o.url||void 0,class:`${e}-upload-file-info__thumbnail`,onClick:this.handlePreviewClick},r==="image-card"?f(hR,{src:this.thumbnailUrl||o.url||void 0,alt:o.name,ref:"imageRef"}):f("img",{src:this.thumbnailUrl||o.url||void 0,alt:o.name})):f("span",{class:`${e}-upload-file-info__thumbnail`},f(Be,{clsPrefix:e},{default:()=>yT})):f("span",{class:`${e}-upload-file-info__thumbnail`},f(Be,{clsPrefix:e},{default:()=>wT})):n=f("span",{class:`${e}-upload-file-info__thumbnail`},f(Be,{clsPrefix:e},{default:()=>f(F2,null)}));const l=f(xT,{show:this.showProgress,percentage:o.percentage||0,status:this.progressStatus}),s=r==="text"||r==="image";return f("div",{class:[`${e}-upload-file`,`${e}-upload-file--${this.progressStatus}-status`,o.url&&o.status!=="error"&&r!=="image-card"&&`${e}-upload-file--with-url`,`${e}-upload-file--${r}-type`]},f("div",{class:`${e}-upload-file-info`},n,f("div",{class:`${e}-upload-file-info__name`},s&&(o.url&&o.status!=="error"?f("a",{rel:"noopener noreferer",target:"_blank",href:o.url||void 0,onClick:this.handlePreviewClick},o.name):f("span",{onClick:this.handlePreviewClick},o.name)),i&&l),f("div",{class:[`${e}-upload-file-info__action`,`${e}-upload-file-info__action--${r}-type`]},this.showPreviewButton?f(ur,{key:"preview",text:!0,type:this.buttonType,onClick:this.handlePreviewClick,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button},{icon:()=>f(Be,{clsPrefix:e},{default:()=>f(Vf,null)})}):null,(this.showRemoveButton||this.showCancelButton)&&!this.disabled&&f(ur,{key:"cancelOrTrash",theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,text:!0,type:this.buttonType,onClick:this.handleRemoveOrCancelClick},{icon:()=>f(Qo,null,{default:()=>this.showRemoveButton?f(Be,{clsPrefix:e,key:"trash"},{default:()=>f(j2,null)}):f(Be,{clsPrefix:e,key:"cancel"},{default:()=>f(G2,null)})})}),this.showRetryButton&&!this.disabled&&f(ur,{key:"retry",text:!0,type:this.buttonType,onClick:this.handleRetryClick,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button},{icon:()=>f(Be,{clsPrefix:e},{default:()=>f(Z2,null)})}),this.showDownloadButton?f(ur,{key:"download",text:!0,type:this.buttonType,onClick:this.handleDownloadClick,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button},{icon:()=>f(Be,{clsPrefix:e},{default:()=>f(H2,null)})}):null)),!i&&l)}}),kT=q({name:"UploadFileList",setup(e,{slots:t}){const r=Pe(fn,null);r||Cr("upload-file-list","`n-upload-file-list` must be placed inside `n-upload`.");const{mergedClsPrefixRef:o,listTypeRef:n,mergedFileListRef:i,fileListStyleRef:a,cssVarsRef:l}=r,s=R(()=>n.value==="image-card"),c=()=>i.value.map(u=>f(ST,{clsPrefix:o.value,key:u.id,file:u,listType:n.value})),d=()=>s.value?f(uR,null,{default:c}):f(mo,{group:!0},{default:c});return()=>{const{value:u}=o;return f("div",{class:[`${u}-upload-file-list`,s.value&&`${u}-upload-file-list--grid`],style:[l.value,a.value]},d(),s.value&&f(fg,null,t))}}}),dc=function(e,t,r,o){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function l(d){try{c(o.next(d))}catch(u){a(u)}}function s(d){try{c(o.throw(d))}catch(u){a(u)}}function c(d){d.done?i(d.value):n(d.value).then(l,s)}c((o=o.apply(e,t||[])).next())})};function PT(e,t,r){const{doChange:o,XhrMap:n}=e;let i=0;return{handleXHRLoad(a){var l;let s=Object.assign({},t,{status:"finished",percentage:i,file:null});n.delete(t.id),s=((l=e.onFinish)===null||l===void 0?void 0:l.call(e,{file:s,event:a}))||s,o(s,a)},handleXHRAbort(a){const l=Object.assign({},t,{status:"removed",file:null,percentage:i});n.delete(t.id),o(l,a)},handleXHRError(a){const l=Object.assign({},t,{status:"error",percentage:i});n.delete(t.id),o(l,a)},handleXHRProgress(a){const l=Object.assign({},t,{status:"uploading"});if(a.lengthComputable){const s=Math.ceil(a.loaded/a.total*100);l.percentage=s,i=s}o(l,a)}}}function $T(e,t,r){const o=PT(e,t);r.onabort=o.handleXHRAbort,r.onerror=o.handleXHRError,r.onload=o.handleXHRLoad,r.upload&&(r.upload.onprogress=o.handleXHRProgress)}function hg(e,t){return typeof e=="function"?e({file:t}):e||{}}function RT(e,t,r){const o=hg(t,r);!o||Object.keys(o).forEach(n=>{e.setRequestHeader(n,o[n])})}function TT(e,t,r){const o=hg(t,r);!o||Object.keys(o).forEach(n=>{e.append(n,o[n])})}function zT(e,t,r,{method:o,action:n,withCredentials:i,headers:a,data:l}){const s=new XMLHttpRequest;if(e.XhrMap.set(t.id,s),s.withCredentials=i,TT(r,l,t),$T(e,t,s),n!==void 0){s.open(o.toUpperCase(),n),RT(s,a,t),s.send(r);const c=Object.assign({},t,{status:"uploading"});e.doChange(c)}}const _T=Object.assign(Object.assign({},ye.props),{name:{type:String,default:"file"},accept:String,action:String,method:{type:String,default:"POST"},multiple:Boolean,showFileList:{type:Boolean,default:!0},data:[Object,Function],headers:[Object,Function],withCredentials:Boolean,disabled:{type:Boolean,default:void 0},onChange:Function,onRemove:Function,onFinish:Function,onBeforeUpload:Function,onDownload:Function,defaultUpload:{type:Boolean,default:!0},fileList:Array,"onUpdate:fileList":[Function,Array],onUpdateFileList:[Function,Array],fileListStyle:[String,Object],defaultFileList:{type:Array,default:()=>[]},showCancelButton:{type:Boolean,default:!0},showRemoveButton:{type:Boolean,default:!0},showDownloadButton:{type:Boolean,default:!1},showRetryButton:{type:Boolean,default:!0},showPreviewButton:{type:Boolean,default:!0},listType:{type:String,default:"text"},onPreview:Function,createThumbnailUrl:Function,abstract:Boolean,max:Number});var QO=q({name:"Upload",props:_T,setup(e){e.abstract&&e.listType==="image-card"&&Cr("upload","when the list-type is image-card, abstract is not supported.");const{mergedClsPrefixRef:t}=Ee(e),r=ye("Upload","Upload",hT,uT,e,t),o=xr(e),n=R(()=>{const{max:m}=e;return m!==void 0?u.value.length>=m:!1}),i=W(e.defaultFileList),a=ke(e,"fileList"),l=W(null),s={value:!1},c=W(!1),d=new Map,u=gt(a,i);function h(){var m;(m=l.value)===null||m===void 0||m.click()}function g(m){const x=m.target;y(x.files,m),x.value=""}function b(m){const{"onUpdate:fileList":x,onUpdateFileList:C}=e;x&&ue(x,m),C&&ue(C,m),i.value=m}function y(m,x){if(!m||m.length===0)return;const{onBeforeUpload:C}=e;let S=e.multiple?Array.from(m):[m[0]];const{max:T}=e;T&&(S=S.slice(0,T-u.value.length)),Promise.all(S.map($=>dc(this,void 0,void 0,function*(){const M={id:ar(),name:$.name,status:"pending",percentage:0,file:$,url:null,type:$.type,thumbnailUrl:null};return!C||(yield C({file:M,fileList:u.value}))!==!1?M:null}))).then($=>dc(this,void 0,void 0,function*(){let M=Promise.resolve();return $.forEach(D=>{M=M.then(Ct).then(()=>{D&&p(D,x,{append:!0})})}),yield M})).then(()=>{e.defaultUpload&&v()})}function v(m){const{method:x,action:C,withCredentials:S,headers:T,data:$,name:M}=e,D=m!==void 0?u.value.filter(I=>I.id===m):u.value,_=m!==void 0;D.forEach(I=>{const{status:G}=I;if(G==="pending"||G==="error"&&_){const U=new FormData;U.append(M,I.file),zT({doChange:p,XhrMap:d,onFinish:e.onFinish},I,U,{method:x,action:C,withCredentials:S,headers:T,data:$})}})}const p=(m,x,C={append:!1,remove:!1})=>{const{append:S,remove:T}=C,$=Array.from(u.value),M=$.findIndex(D=>D.id===m.id);if(S||T||~M){S?$.push(m):T?$.splice(M,1):$.splice(M,1,m);const{onChange:D}=e;D&&D({file:m,fileList:$,event:x}),b($)}};function w(m){return dc(this,void 0,void 0,function*(){const{createThumbnailUrl:x}=e;return x?yield x(m.file):yield mT(m.file)})}const P=R(()=>{const{common:{cubicBezierEaseInOut:m},self:{draggerColor:x,draggerBorder:C,draggerBorderHover:S,itemColorHover:T,itemColorHoverError:$,itemTextColorError:M,itemTextColorSuccess:D,itemTextColor:_,itemIconColor:I,itemDisabledOpacity:G,lineHeight:U,borderRadius:N,fontSize:F,itemBorderImageCardError:A,itemBorderImageCard:re}}=r.value;return{"--bezier":m,"--border-radius":N,"--dragger-border":C,"--dragger-border-hover":S,"--dragger-color":x,"--font-size":F,"--item-color-hover":T,"--item-color-hover-error":$,"--item-disabled-opacity":G,"--item-icon-color":I,"--item-text-color":_,"--item-text-color-error":M,"--item-text-color-success":D,"--line-height":U,"--item-border-image-card-error":A,"--item-border-image-card":re}});return Ie(fn,{mergedClsPrefixRef:t,mergedThemeRef:r,showCancelButtonRef:ke(e,"showCancelButton"),showDownloadButtonRef:ke(e,"showDownloadButton"),showRemoveButtonRef:ke(e,"showRemoveButton"),showRetryButtonRef:ke(e,"showRetryButton"),onRemoveRef:ke(e,"onRemove"),onDownloadRef:ke(e,"onDownload"),mergedFileListRef:u,XhrMap:d,submit:v,doChange:p,showPreviewButtonRef:ke(e,"showPreviewButton"),onPreviewRef:ke(e,"onPreview"),getFileThumbnailUrl:w,listTypeRef:ke(e,"listType"),dragOverRef:c,openFileDialog:h,draggerInsideRef:s,handleFileAddition:y,mergedDisabledRef:o.mergedDisabledRef,maxReachedRef:n,fileListStyleRef:ke(e,"fileListStyle"),abstractRef:ke(e,"abstract"),cssVarsRef:P}),{mergedClsPrefix:t,draggerInsideRef:s,inputElRef:l,mergedTheme:r,dragOver:c,handleFileInputChange:g,submit:v,cssVars:P}},render(){var e,t,r;const{draggerInsideRef:o,mergedClsPrefix:n,$slots:i}=this;i.default&&!this.abstract&&((t=(e=i.default()[0])===null||e===void 0?void 0:e.type)===null||t===void 0?void 0:t[dg])&&(o.value=!0);const a=f("input",{ref:"inputElRef",type:"file",class:`${n}-upload-file-input`,accept:this.accept,multiple:this.multiple,onChange:this.handleFileInputChange});return this.abstract?f(nt,null,(r=i.default)===null||r===void 0?void 0:r.call(i),f(Li,{to:"body"},a)):f("div",{class:[`${n}-upload`,o.value&&`${n}-upload--dragger-inside`,this.dragOver&&`${n}-upload--drag-over`],style:this.cssVars},a,this.listType!=="image-card"&&f(fg,null,i),this.showFileList&&f(kT,null,i))}});function eE(){const e=Pe(Br,null);return R(()=>{if(e===null)return De;const{mergedThemeRef:{value:t},mergedThemeOverridesRef:{value:r}}=e,o=(t==null?void 0:t.common)||De;return(r==null?void 0:r.common)?Object.assign({},o,r.common):o})}/*! + * vue-router v4.0.12 + * (c) 2021 Eduardo San Martin Morote + * @license MIT + */const pg=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",hn=e=>pg?Symbol(e):"_vr_"+e,OT=hn("rvlm"),gg=hn("rvd"),$a=hn("r"),uc=hn("rl"),fc=hn("rvl"),pn=typeof window!="undefined";function ET(e){return e.__esModule||pg&&e[Symbol.toStringTag]==="Module"}const tt=Object.assign;function hc(e,t){const r={};for(const o in t){const n=t[o];r[o]=Array.isArray(n)?n.map(e):e(n)}return r}const fi=()=>{},MT=/\/$/,IT=e=>e.replace(MT,"");function pc(e,t,r="/"){let o,n={},i="",a="";const l=t.indexOf("?"),s=t.indexOf("#",l>-1?l:0);return l>-1&&(o=t.slice(0,l),i=t.slice(l+1,s>-1?s:t.length),n=e(i)),s>-1&&(o=o||t.slice(0,s),a=t.slice(s,t.length)),o=LT(o!=null?o:t,r),{fullPath:o+(i&&"?")+i+a,path:o,query:n,hash:a}}function AT(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function vg(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function FT(e,t,r){const o=t.matched.length-1,n=r.matched.length-1;return o>-1&&o===n&&gn(t.matched[o],r.matched[n])&&mg(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function gn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function mg(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!BT(e[r],t[r]))return!1;return!0}function BT(e,t){return Array.isArray(e)?bg(e,t):Array.isArray(t)?bg(t,e):e===t}function bg(e,t){return Array.isArray(t)?e.length===t.length&&e.every((r,o)=>r===t[o]):e.length===1&&e[0]===t}function LT(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),o=e.split("/");let n=r.length-1,i,a;for(i=0;i({left:window.pageXOffset,top:window.pageYOffset});function WT(e){let t;if("el"in e){const r=e.el,o=typeof r=="string"&&r.startsWith("#"),n=typeof r=="string"?o?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!n)return;t=HT(n,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function xg(e,t){return(history.state?history.state.position-t:-1)+e}const gc=new Map;function UT(e,t){gc.set(e,t)}function VT(e){const t=gc.get(e);return gc.delete(e),t}let KT=()=>location.protocol+"//"+location.host;function yg(e,t){const{pathname:r,search:o,hash:n}=t,i=e.indexOf("#");if(i>-1){let l=n.includes(e.slice(i))?e.slice(i).length:1,s=n.slice(l);return s[0]!=="/"&&(s="/"+s),vg(s,"")}return vg(r,e)+o+n}function qT(e,t,r,o){let n=[],i=[],a=null;const l=({state:h})=>{const g=yg(e,location),b=r.value,y=t.value;let v=0;if(h){if(r.value=g,t.value=h,a&&a===b){a=null;return}v=y?h.position-y.position:0}else o(g);n.forEach(p=>{p(r.value,b,{delta:v,type:hi.pop,direction:v?v>0?pi.forward:pi.back:pi.unknown})})};function s(){a=r.value}function c(h){n.push(h);const g=()=>{const b=n.indexOf(h);b>-1&&n.splice(b,1)};return i.push(g),g}function d(){const{history:h}=window;!h.state||h.replaceState(tt({},h.state,{scroll:Ra()}),"")}function u(){for(const h of i)h();i=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",d),{pauseListeners:s,listen:c,destroy:u}}function wg(e,t,r,o=!1,n=!1){return{back:e,current:t,forward:r,replaced:o,position:window.history.length,scroll:n?Ra():null}}function GT(e){const{history:t,location:r}=window,o={value:yg(e,r)},n={value:t.state};n.value||i(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(s,c,d){const u=e.indexOf("#"),h=u>-1?(r.host&&document.querySelector("base")?e:e.slice(u))+s:KT()+e+s;try{t[d?"replaceState":"pushState"](c,"",h),n.value=c}catch(g){console.error(g),r[d?"replace":"assign"](h)}}function a(s,c){const d=tt({},t.state,wg(n.value.back,s,n.value.forward,!0),c,{position:n.value.position});i(s,d,!0),o.value=s}function l(s,c){const d=tt({},n.value,t.state,{forward:s,scroll:Ra()});i(d.current,d,!0);const u=tt({},wg(o.value,s,null),{position:d.position+1},c);i(s,u,!1),o.value=s}return{location:o,state:n,push:l,replace:a}}function YT(e){e=DT(e);const t=GT(e),r=qT(e,t.state,t.location,t.replace);function o(i,a=!0){a||r.pauseListeners(),history.go(i)}const n=tt({location:"",base:e,go:o,createHref:jT.bind(null,e)},t,r);return Object.defineProperty(n,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(n,"state",{enumerable:!0,get:()=>t.state.value}),n}function tE(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),YT(e)}function XT(e){return typeof e=="string"||e&&typeof e=="object"}function Cg(e){return typeof e=="string"||typeof e=="symbol"}const Ur={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Sg=hn("nf");var kg;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(kg||(kg={}));function vn(e,t){return tt(new Error,{type:e,[Sg]:!0},t)}function Po(e,t){return e instanceof Error&&Sg in e&&(t==null||!!(e.type&t))}const Pg="[^/]+?",ZT={sensitive:!1,strict:!1,start:!0,end:!0},JT=/[.+*?^${}()[\]/\\]/g;function QT(e,t){const r=tt({},ZT,t),o=[];let n=r.start?"^":"";const i=[];for(const c of e){const d=c.length?[]:[90];r.strict&&!c.length&&(n+="/");for(let u=0;ut.length?t.length===1&&t[0]===40+40?1:-1:0}function tz(e,t){let r=0;const o=e.score,n=t.score;for(;r1&&(s==="*"||s==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:c,regexp:d,repeatable:s==="*"||s==="+",optional:s==="*"||s==="?"})):t("Invalid state to consume buffer"),c="")}function h(){c+=s}for(;l{a(w)}:fi}function a(d){if(Cg(d)){const u=o.get(d);u&&(o.delete(d),r.splice(r.indexOf(u),1),u.children.forEach(a),u.alias.forEach(a))}else{const u=r.indexOf(d);u>-1&&(r.splice(u,1),d.record.name&&o.delete(d.record.name),d.children.forEach(a),d.alias.forEach(a))}}function l(){return r}function s(d){let u=0;for(;u=0;)u++;r.splice(u,0,d),d.record.name&&!$g(d)&&o.set(d.record.name,d)}function c(d,u){let h,g={},b,y;if("name"in d&&d.name){if(h=o.get(d.name),!h)throw vn(1,{location:d});y=h.record.name,g=tt(lz(u.params,h.keys.filter(w=>!w.optional).map(w=>w.name)),d.params),b=h.stringify(g)}else if("path"in d)b=d.path,h=r.find(w=>w.re.test(b)),h&&(g=h.parse(b),y=h.record.name);else{if(h=u.name?o.get(u.name):r.find(w=>w.re.test(u.path)),!h)throw vn(1,{location:d,currentLocation:u});y=h.record.name,g=tt({},u.params,d.params),b=h.stringify(g)}const v=[];let p=h;for(;p;)v.unshift(p.record),p=p.parent;return{name:y,path:b,params:g,matched:v,meta:dz(v)}}return e.forEach(d=>i(d)),{addRoute:i,resolve:c,removeRoute:a,getRoutes:l,getRecordMatcher:n}}function lz(e,t){const r={};for(const o of t)o in e&&(r[o]=e[o]);return r}function sz(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:cz(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||{}:{default:e.component}}}function cz(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const o in e.components)t[o]=typeof r=="boolean"?r:r[o];return t}function $g(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function dz(e){return e.reduce((t,r)=>tt(t,r.meta),{})}function Rg(e,t){const r={};for(const o in e)r[o]=o in t?t[o]:e[o];return r}const Tg=/#/g,uz=/&/g,fz=/\//g,hz=/=/g,pz=/\?/g,zg=/\+/g,gz=/%5B/g,vz=/%5D/g,_g=/%5E/g,mz=/%60/g,Og=/%7B/g,bz=/%7C/g,Eg=/%7D/g,xz=/%20/g;function vc(e){return encodeURI(""+e).replace(bz,"|").replace(gz,"[").replace(vz,"]")}function yz(e){return vc(e).replace(Og,"{").replace(Eg,"}").replace(_g,"^")}function mc(e){return vc(e).replace(zg,"%2B").replace(xz,"+").replace(Tg,"%23").replace(uz,"%26").replace(mz,"`").replace(Og,"{").replace(Eg,"}").replace(_g,"^")}function wz(e){return mc(e).replace(hz,"%3D")}function Cz(e){return vc(e).replace(Tg,"%23").replace(pz,"%3F")}function Sz(e){return e==null?"":Cz(e).replace(fz,"%2F")}function Ta(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function kz(e){const t={};if(e===""||e==="?")return t;const o=(e[0]==="?"?e.slice(1):e).split("&");for(let n=0;ni&&mc(i)):[o&&mc(o)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+r,i!=null&&(t+="="+i))})}return t}function Pz(e){const t={};for(const r in e){const o=e[r];o!==void 0&&(t[r]=Array.isArray(o)?o.map(n=>n==null?null:""+n):o==null?o:""+o)}return t}function gi(){let e=[];function t(o){return e.push(o),()=>{const n=e.indexOf(o);n>-1&&e.splice(n,1)}}function r(){e=[]}return{add:t,list:()=>e,reset:r}}function Vr(e,t,r,o,n){const i=o&&(o.enterCallbacks[n]=o.enterCallbacks[n]||[]);return()=>new Promise((a,l)=>{const s=u=>{u===!1?l(vn(4,{from:r,to:t})):u instanceof Error?l(u):XT(u)?l(vn(2,{from:t,to:u})):(i&&o.enterCallbacks[n]===i&&typeof u=="function"&&i.push(u),a())},c=e.call(o&&o.instances[n],t,r,s);let d=Promise.resolve(c);e.length<3&&(d=d.then(s)),d.catch(u=>l(u))})}function bc(e,t,r,o){const n=[];for(const i of e)for(const a in i.components){let l=i.components[a];if(!(t!=="beforeRouteEnter"&&!i.instances[a]))if($z(l)){const c=(l.__vccOpts||l)[t];c&&n.push(Vr(c,r,o,i,a))}else{let s=l();n.push(()=>s.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${a}" at "${i.path}"`));const d=ET(c)?c.default:c;i.components[a]=d;const h=(d.__vccOpts||d)[t];return h&&Vr(h,r,o,i,a)()}))}}return n}function $z(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Ig(e){const t=Pe($a),r=Pe(uc),o=R(()=>t.resolve(An(e.to))),n=R(()=>{const{matched:s}=o.value,{length:c}=s,d=s[c-1],u=r.matched;if(!d||!u.length)return-1;const h=u.findIndex(gn.bind(null,d));if(h>-1)return h;const g=Ag(s[c-2]);return c>1&&Ag(d)===g&&u[u.length-1].path!==g?u.findIndex(gn.bind(null,s[c-2])):h}),i=R(()=>n.value>-1&&_z(r.params,o.value.params)),a=R(()=>n.value>-1&&n.value===r.matched.length-1&&mg(r.params,o.value.params));function l(s={}){return zz(s)?t[An(e.replace)?"replace":"push"](An(e.to)).catch(fi):Promise.resolve()}return{route:o,href:R(()=>o.value.href),isActive:i,isExactActive:a,navigate:l}}const Rz=q({name:"RouterLink",props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Ig,setup(e,{slots:t}){const r=pr(Ig(e)),{options:o}=Pe($a),n=R(()=>({[Fg(e.activeClass,o.linkActiveClass,"router-link-active")]:r.isActive,[Fg(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const i=t.default&&t.default(r);return e.custom?i:f("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:n.value},i)}}}),Tz=Rz;function zz(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function _z(e,t){for(const r in t){const o=t[r],n=e[r];if(typeof o=="string"){if(o!==n)return!1}else if(!Array.isArray(n)||n.length!==o.length||o.some((i,a)=>i!==n[a]))return!1}return!0}function Ag(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Fg=(e,t,r)=>e!=null?e:t!=null?t:r,Oz=q({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},setup(e,{attrs:t,slots:r}){const o=Pe(fc),n=R(()=>e.route||o.value),i=Pe(gg,0),a=R(()=>n.value.matched[i]);Ie(gg,i+1),Ie(OT,a),Ie(fc,n);const l=W();return Ue(()=>[l.value,a.value,e.name],([s,c,d],[u,h,g])=>{c&&(c.instances[d]=s,h&&h!==c&&s&&s===u&&(c.leaveGuards.size||(c.leaveGuards=h.leaveGuards),c.updateGuards.size||(c.updateGuards=h.updateGuards))),s&&c&&(!h||!gn(c,h)||!u)&&(c.enterCallbacks[d]||[]).forEach(b=>b(s))},{flush:"post"}),()=>{const s=n.value,c=a.value,d=c&&c.components[e.name],u=e.name;if(!d)return Bg(r.default,{Component:d,route:s});const h=c.props[e.name],g=h?h===!0?s.params:typeof h=="function"?h(s):h:null,y=f(d,tt({},g,t,{onVnodeUnmounted:v=>{v.component.isUnmounted&&(c.instances[u]=null)},ref:l}));return Bg(r.default,{Component:y,route:s})||y}}});function Bg(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const Ez=Oz;function rE(e){const t=az(e.routes,e),r=e.parseQuery||kz,o=e.stringifyQuery||Mg,n=e.history,i=gi(),a=gi(),l=gi(),s=Pm(Ur);let c=Ur;pn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=hc.bind(null,Z=>""+Z),u=hc.bind(null,Sz),h=hc.bind(null,Ta);function g(Z,fe){let ee,xe;return Cg(Z)?(ee=t.getRecordMatcher(Z),xe=fe):xe=Z,t.addRoute(xe,ee)}function b(Z){const fe=t.getRecordMatcher(Z);fe&&t.removeRoute(fe)}function y(){return t.getRoutes().map(Z=>Z.record)}function v(Z){return!!t.getRecordMatcher(Z)}function p(Z,fe){if(fe=tt({},fe||s.value),typeof Z=="string"){const ge=pc(r,Z,fe.path),z=t.resolve({path:ge.path},fe),L=n.createHref(ge.fullPath);return tt(ge,z,{params:h(z.params),hash:Ta(ge.hash),redirectedFrom:void 0,href:L})}let ee;if("path"in Z)ee=tt({},Z,{path:pc(r,Z.path,fe.path).path});else{const ge=tt({},Z.params);for(const z in ge)ge[z]==null&&delete ge[z];ee=tt({},Z,{params:u(Z.params)}),fe.params=u(fe.params)}const xe=t.resolve(ee,fe),ie=Z.hash||"";xe.params=d(h(xe.params));const Ce=AT(o,tt({},Z,{hash:yz(ie),path:xe.path})),te=n.createHref(Ce);return tt({fullPath:Ce,hash:ie,query:o===Mg?Pz(Z.query):Z.query||{}},xe,{redirectedFrom:void 0,href:te})}function w(Z){return typeof Z=="string"?pc(r,Z,s.value.path):tt({},Z)}function P(Z,fe){if(c!==Z)return vn(8,{from:fe,to:Z})}function m(Z){return S(Z)}function x(Z){return m(tt(w(Z),{replace:!0}))}function C(Z){const fe=Z.matched[Z.matched.length-1];if(fe&&fe.redirect){const{redirect:ee}=fe;let xe=typeof ee=="function"?ee(Z):ee;return typeof xe=="string"&&(xe=xe.includes("?")||xe.includes("#")?xe=w(xe):{path:xe},xe.params={}),tt({query:Z.query,hash:Z.hash,params:Z.params},xe)}}function S(Z,fe){const ee=c=p(Z),xe=s.value,ie=Z.state,Ce=Z.force,te=Z.replace===!0,ge=C(ee);if(ge)return S(tt(w(ge),{state:ie,force:Ce,replace:te}),fe||ee);const z=ee;z.redirectedFrom=fe;let L;return!Ce&&FT(o,xe,ee)&&(L=vn(16,{to:z,from:xe}),be(xe,xe,!0,!1)),(L?Promise.resolve(L):$(z,xe)).catch(K=>Po(K)?K:F(K,z,xe)).then(K=>{if(K){if(Po(K,2))return S(tt(w(K.to),{state:ie,force:Ce,replace:te}),fe||z)}else K=D(z,xe,!0,te,ie);return M(z,xe,K),K})}function T(Z,fe){const ee=P(Z,fe);return ee?Promise.reject(ee):Promise.resolve()}function $(Z,fe){let ee;const[xe,ie,Ce]=Mz(Z,fe);ee=bc(xe.reverse(),"beforeRouteLeave",Z,fe);for(const ge of xe)ge.leaveGuards.forEach(z=>{ee.push(Vr(z,Z,fe))});const te=T.bind(null,Z,fe);return ee.push(te),mn(ee).then(()=>{ee=[];for(const ge of i.list())ee.push(Vr(ge,Z,fe));return ee.push(te),mn(ee)}).then(()=>{ee=bc(ie,"beforeRouteUpdate",Z,fe);for(const ge of ie)ge.updateGuards.forEach(z=>{ee.push(Vr(z,Z,fe))});return ee.push(te),mn(ee)}).then(()=>{ee=[];for(const ge of Z.matched)if(ge.beforeEnter&&!fe.matched.includes(ge))if(Array.isArray(ge.beforeEnter))for(const z of ge.beforeEnter)ee.push(Vr(z,Z,fe));else ee.push(Vr(ge.beforeEnter,Z,fe));return ee.push(te),mn(ee)}).then(()=>(Z.matched.forEach(ge=>ge.enterCallbacks={}),ee=bc(Ce,"beforeRouteEnter",Z,fe),ee.push(te),mn(ee))).then(()=>{ee=[];for(const ge of a.list())ee.push(Vr(ge,Z,fe));return ee.push(te),mn(ee)}).catch(ge=>Po(ge,8)?ge:Promise.reject(ge))}function M(Z,fe,ee){for(const xe of l.list())xe(Z,fe,ee)}function D(Z,fe,ee,xe,ie){const Ce=P(Z,fe);if(Ce)return Ce;const te=fe===Ur,ge=pn?history.state:{};ee&&(xe||te?n.replace(Z.fullPath,tt({scroll:te&&ge&&ge.scroll},ie)):n.push(Z.fullPath,ie)),s.value=Z,be(Z,fe,ee,te),re()}let _;function I(){_=n.listen((Z,fe,ee)=>{const xe=p(Z),ie=C(xe);if(ie){S(tt(ie,{replace:!0}),xe).catch(fi);return}c=xe;const Ce=s.value;pn&&UT(xg(Ce.fullPath,ee.delta),Ra()),$(xe,Ce).catch(te=>Po(te,4|8)?te:Po(te,2)?(S(te.to,xe).then(ge=>{Po(ge,4|16)&&!ee.delta&&ee.type===hi.pop&&n.go(-1,!1)}).catch(fi),Promise.reject()):(ee.delta&&n.go(-ee.delta,!1),F(te,xe,Ce))).then(te=>{te=te||D(xe,Ce,!1),te&&(ee.delta?n.go(-ee.delta,!1):ee.type===hi.pop&&Po(te,4|16)&&n.go(-1,!1)),M(xe,Ce,te)}).catch(fi)})}let G=gi(),U=gi(),N;function F(Z,fe,ee){re(Z);const xe=U.list();return xe.length?xe.forEach(ie=>ie(Z,fe,ee)):console.error(Z),Promise.reject(Z)}function A(){return N&&s.value!==Ur?Promise.resolve():new Promise((Z,fe)=>{G.add([Z,fe])})}function re(Z){N||(N=!0,I(),G.list().forEach(([fe,ee])=>Z?ee(Z):fe()),G.reset())}function be(Z,fe,ee,xe){const{scrollBehavior:ie}=e;if(!pn||!ie)return Promise.resolve();const Ce=!ee&&VT(xg(Z.fullPath,0))||(xe||!ee)&&history.state&&history.state.scroll||null;return Ct().then(()=>ie(Z,fe,Ce)).then(te=>te&&WT(te)).catch(te=>F(te,Z,fe))}const Se=Z=>n.go(Z);let Te;const Oe=new Set;return{currentRoute:s,addRoute:g,removeRoute:b,hasRoute:v,getRoutes:y,resolve:p,options:e,push:m,replace:x,go:Se,back:()=>Se(-1),forward:()=>Se(1),beforeEach:i.add,beforeResolve:a.add,afterEach:l.add,onError:U.add,isReady:A,install(Z){const fe=this;Z.component("RouterLink",Tz),Z.component("RouterView",Ez),Z.config.globalProperties.$router=fe,Object.defineProperty(Z.config.globalProperties,"$route",{enumerable:!0,get:()=>An(s)}),pn&&!Te&&s.value===Ur&&(Te=!0,m(n.location).catch(ie=>{}));const ee={};for(const ie in Ur)ee[ie]=R(()=>s.value[ie]);Z.provide($a,fe),Z.provide(uc,pr(ee)),Z.provide(fc,s);const xe=Z.unmount;Oe.add(Z),Z.unmount=function(){Oe.delete(Z),Oe.size<1&&(c=Ur,_&&_(),s.value=Ur,Te=!1,N=!1),xe()}}}}function mn(e){return e.reduce((t,r)=>t.then(()=>r()),Promise.resolve())}function Mz(e,t){const r=[],o=[],n=[],i=Math.max(t.matched.length,e.matched.length);for(let a=0;agn(c,l))?o.push(l):r.push(l));const s=e.matched[a];s&&(t.matched.find(c=>gn(c,s))||n.push(s))}return[r,o,n]}function oE(){return Pe($a)}function nE(){return Pe(uc)}const Iz={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},Az=he("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[he("circle",{cx:"12",cy:"12",r:"9"}),he("path",{d:"M10 16.5l2-3l2 3m-2-3v-2l3-1m-6 0l3 1"}),he("circle",{cx:"12",cy:"7.5",r:".5",fill:"currentColor"})],-1);var iE=q({name:"Accessible",render:function(t,r){return it(),at("svg",Iz,[Az])}});const Fz={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},Bz=he("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[he("circle",{cx:"12",cy:"12",r:"9"}),he("path",{d:"M8 12l4 4"}),he("path",{d:"M12 8v8"}),he("path",{d:"M16 12l-4 4"})],-1);var aE=q({name:"ArrowDownCircle",render:function(t,r){return it(),at("svg",Fz,[Bz])}});const Lz={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},Dz=he("path",{d:"M17.788 5.108A9 9 0 1 0 21 12h-8",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1);var lE=q({name:"BrandGoogle",render:function(t,r){return it(),at("svg",Lz,[Dz])}});const Nz={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},jz=he("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[he("path",{d:"M5 7h1a2 2 0 0 0 2-2a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1a2 2 0 0 0 2 2h1a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2"}),he("circle",{cx:"12",cy:"13",r:"3"})],-1);var sE=q({name:"Camera",render:function(t,r){return it(),at("svg",Nz,[jz])}});const Hz={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},Wz=he("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[he("circle",{cx:"12",cy:"12",r:"9"}),he("path",{d:"M9 12h6"}),he("path",{d:"M12 9v6"})],-1);var cE=q({name:"CirclePlus",render:function(t,r){return it(),at("svg",Hz,[Wz])}});const Uz={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},Vz=he("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[he("circle",{cx:"12",cy:"12",r:"9"}),he("path",{d:"M10 10l4 4m0-4l-4 4"})],-1);var dE=q({name:"CircleX",render:function(t,r){return it(),at("svg",Uz,[Vz])}});const Kz={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},qz=he("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[he("path",{d:"M7 18a4.6 4.4 0 0 1 0-9a5 4.5 0 0 1 11 2h1a3.5 3.5 0 0 1 0 7h-1"}),he("path",{d:"M9 15l3-3l3 3"}),he("path",{d:"M12 12v9"})],-1);var uE=q({name:"CloudUpload",render:function(t,r){return it(),at("svg",Kz,[qz])}});const Gz={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},Yz=he("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[he("rect",{x:"8",y:"8",width:"12",height:"12",rx:"2"}),he("path",{d:"M16 8V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h2"})],-1);var fE=q({name:"Copy",render:function(t,r){return it(),at("svg",Gz,[Yz])}});const Xz={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},Zz=he("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[he("circle",{cx:"12",cy:"12",r:"9"}),he("path",{d:"M14.5 9a3.5 4 0 1 0 0 6"})],-1);var hE=q({name:"Copyright",render:function(t,r){return it(),at("svg",Xz,[Zz])}});const Jz={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},Qz=he("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[he("path",{d:"M19 18v-6a3 3 0 0 0-3-3H9"}),he("path",{d:"M13 13L9 9l4-4m-5 8L4 9l4-4"})],-1);var pE=q({name:"CornerUpLeftDouble",render:function(t,r){return it(),at("svg",Jz,[Qz])}});const e_={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},t_=he("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[he("path",{d:"M6 5h12l3 5l-8.5 9.5a.7.7 0 0 1-1 0L3 10l3-5"}),he("path",{d:"M10 12L8 9.8l.6-1"})],-1);var gE=q({name:"Diamond",render:function(t,r){return it(),at("svg",e_,[t_])}});const r_={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},o_=he("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[he("circle",{cx:"5",cy:"12",r:"1"}),he("circle",{cx:"12",cy:"12",r:"1"}),he("circle",{cx:"19",cy:"12",r:"1"})],-1);var vE=q({name:"Dots",render:function(t,r){return it(),at("svg",r_,[o_])}});const n_={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},i_=he("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[he("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),he("path",{d:"M17 21H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7l5 5v11a2 2 0 0 1-2 2z"})],-1);var mE=q({name:"File",render:function(t,r){return it(),at("svg",n_,[i_])}});const a_={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},l_=he("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[he("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),he("path",{d:"M17 21H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7l5 5v11a2 2 0 0 1-2 2z"}),he("path",{d:"M9 17v-5"}),he("path",{d:"M12 17v-1"}),he("path",{d:"M15 17v-3"})],-1);var bE=q({name:"FileAnalytics",render:function(t,r){return it(),at("svg",a_,[l_])}});const s_={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},c_=he("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[he("path",{d:"M7 20V8a4 4 0 0 1 4-4h2a4 4 0 0 1 4 4v12"}),he("path",{d:"M7 13h10"})],-1);var xE=q({name:"LetterA",render:function(t,r){return it(),at("svg",s_,[c_])}});const d_={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},u_=he("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[he("path",{d:"M14 8V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h7a2 2 0 0 0 2-2v-2"}),he("path",{d:"M7 12h14l-3-3m0 6l3-3"})],-1);var yE=q({name:"Logout",render:function(t,r){return it(),at("svg",d_,[u_])}});const f_={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},h_=he("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[he("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),he("path",{d:"M3 7l9 6l9-6"})],-1);var wE=q({name:"Mail",render:function(t,r){return it(),at("svg",f_,[h_])}});const p_={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},g_=he("path",{d:"M5 4h4l2 5l-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1);var CE=q({name:"Phone",render:function(t,r){return it(),at("svg",p_,[g_])}});const v_={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},m_=he("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[he("path",{d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 0 0-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 0 0-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 0 0-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 0 0-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 0 0 1.066-2.573c-.94-1.543.826-3.31 2.37-2.37c1 .608 2.296.07 2.572-1.065z"}),he("circle",{cx:"12",cy:"12",r:"3"})],-1);var SE=q({name:"Settings",render:function(t,r){return it(),at("svg",v_,[m_])}});const b_={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},x_=he("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[he("circle",{cx:"6",cy:"12",r:"3"}),he("circle",{cx:"18",cy:"6",r:"3"}),he("circle",{cx:"18",cy:"18",r:"3"}),he("path",{d:"M8.7 10.7l6.6-3.4"}),he("path",{d:"M8.7 13.3l6.6 3.4"})],-1);var kE=q({name:"Share",render:function(t,r){return it(),at("svg",b_,[x_])}});const y_={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},w_=he("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[he("path",{d:"M16 3l4 4l-4 4"}),he("path",{d:"M10 7h10"}),he("path",{d:"M8 13l-4 4l4 4"}),he("path",{d:"M4 17h9"})],-1);var PE=q({name:"SwitchHorizontal",render:function(t,r){return it(),at("svg",y_,[w_])}});const C_={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},S_=he("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[he("path",{d:"M4 7h16"}),he("path",{d:"M10 11v6"}),he("path",{d:"M14 11v6"}),he("path",{d:"M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2l1-12"}),he("path",{d:"M9 7V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v3"})],-1);var $E=q({name:"Trash",render:function(t,r){return it(),at("svg",C_,[S_])}});const k_={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},P_=he("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[he("path",{d:"M15 10l4.553-2.276A1 1 0 0 1 21 8.618v6.764a1 1 0 0 1-1.447.894L15 14v-4z"}),he("rect",{x:"3",y:"6",width:"12",height:"12",rx:"2"})],-1);var RE=q({name:"Video",render:function(t,r){return it(),at("svg",k_,[P_])}});const $_={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},R_=he("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[he("circle",{cx:"10",cy:"10",r:"7"}),he("path",{d:"M21 21l-6-6"}),he("path",{d:"M10 13v.01"}),he("path",{d:"M10 10a1.5 1.5 0 1 0-1.14-2.474"})],-1);var TE=q({name:"ZoomQuestion",render:function(t,r){return it(),at("svg",$_,[R_])}}),T_=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function z_(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function zE(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var xc={exports:{}},Lg=function(t,r){return function(){for(var n=new Array(arguments.length),i=0;i=0)return;o==="set-cookie"?r[o]=(r[o]?r[o]:[]).concat([n]):r[o]=r[o]?r[o]+", "+n:n}}),r},Vg=Nt,l8=Vg.isStandardBrowserEnv()?function(){var t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),o;function n(i){var a=i;return t&&(r.setAttribute("href",a),a=r.href),r.setAttribute("href",a),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return o=n(window.location.href),function(a){var l=Vg.isString(a)?n(a):a;return l.protocol===o.protocol&&l.host===o.host}}():function(){return function(){return!0}}();function Pc(e){this.message=e}Pc.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};Pc.prototype.__CANCEL__=!0;var Ea=Pc,Ma=Nt,s8=J_,c8=Q_,d8=Hg,u8=n8,f8=a8,h8=l8,$c=Ug,p8=Aa,g8=Ea,Kg=function(t){return new Promise(function(o,n){var i=t.data,a=t.headers,l=t.responseType,s;function c(){t.cancelToken&&t.cancelToken.unsubscribe(s),t.signal&&t.signal.removeEventListener("abort",s)}Ma.isFormData(i)&&delete a["Content-Type"];var d=new XMLHttpRequest;if(t.auth){var u=t.auth.username||"",h=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";a.Authorization="Basic "+btoa(u+":"+h)}var g=u8(t.baseURL,t.url);d.open(t.method.toUpperCase(),d8(g,t.params,t.paramsSerializer),!0),d.timeout=t.timeout;function b(){if(!!d){var v="getAllResponseHeaders"in d?f8(d.getAllResponseHeaders()):null,p=!l||l==="text"||l==="json"?d.responseText:d.response,w={data:p,status:d.status,statusText:d.statusText,headers:v,config:t,request:d};s8(function(m){o(m),c()},function(m){n(m),c()},w),d=null}}if("onloadend"in d?d.onloadend=b:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(b)},d.onabort=function(){!d||(n($c("Request aborted",t,"ECONNABORTED",d)),d=null)},d.onerror=function(){n($c("Network Error",t,null,d)),d=null},d.ontimeout=function(){var p=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",w=t.transitional||p8.transitional;t.timeoutErrorMessage&&(p=t.timeoutErrorMessage),n($c(p,t,w.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",d)),d=null},Ma.isStandardBrowserEnv()){var y=(t.withCredentials||h8(g))&&t.xsrfCookieName?c8.read(t.xsrfCookieName):void 0;y&&(a[t.xsrfHeaderName]=y)}"setRequestHeader"in d&&Ma.forEach(a,function(p,w){typeof i=="undefined"&&w.toLowerCase()==="content-type"?delete a[w]:d.setRequestHeader(w,p)}),Ma.isUndefined(t.withCredentials)||(d.withCredentials=!!t.withCredentials),l&&l!=="json"&&(d.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&d.addEventListener("progress",t.onDownloadProgress),typeof t.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(s=function(v){!d||(n(!v||v&&v.type?new g8("canceled"):v),d.abort(),d=null)},t.cancelToken&&t.cancelToken.subscribe(s),t.signal&&(t.signal.aborted?s():t.signal.addEventListener("abort",s))),i||(i=null),d.send(i)})},Pt=Nt,qg=Y_,v8=Wg,m8={"Content-Type":"application/x-www-form-urlencoded"};function Gg(e,t){!Pt.isUndefined(e)&&Pt.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function b8(){var e;return(typeof XMLHttpRequest!="undefined"||typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]")&&(e=Kg),e}function x8(e,t,r){if(Pt.isString(e))try{return(t||JSON.parse)(e),Pt.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(r||JSON.stringify)(e)}var Ia={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:b8(),transformRequest:[function(t,r){return qg(r,"Accept"),qg(r,"Content-Type"),Pt.isFormData(t)||Pt.isArrayBuffer(t)||Pt.isBuffer(t)||Pt.isStream(t)||Pt.isFile(t)||Pt.isBlob(t)?t:Pt.isArrayBufferView(t)?t.buffer:Pt.isURLSearchParams(t)?(Gg(r,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):Pt.isObject(t)||r&&r["Content-Type"]==="application/json"?(Gg(r,"application/json"),x8(t)):t}],transformResponse:[function(t){var r=this.transitional||Ia.transitional,o=r&&r.silentJSONParsing,n=r&&r.forcedJSONParsing,i=!o&&this.responseType==="json";if(i||n&&Pt.isString(t)&&t.length)try{return JSON.parse(t)}catch(a){if(i)throw a.name==="SyntaxError"?v8(a,this,"E_JSON_PARSE"):a}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Pt.forEach(["delete","get","head"],function(t){Ia.headers[t]={}});Pt.forEach(["post","put","patch"],function(t){Ia.headers[t]=Pt.merge(m8)});var Aa=Ia,y8=Nt,w8=Aa,C8=function(t,r,o){var n=this||w8;return y8.forEach(o,function(a){t=a.call(n,t,r)}),t},Yg=function(t){return!!(t&&t.__CANCEL__)},Xg=Nt,Rc=C8,S8=Yg,k8=Aa,P8=Ea;function Tc(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new P8("canceled")}var $8=function(t){Tc(t),t.headers=t.headers||{},t.data=Rc.call(t,t.data,t.headers,t.transformRequest),t.headers=Xg.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),Xg.forEach(["delete","get","head","post","put","patch","common"],function(n){delete t.headers[n]});var r=t.adapter||k8.adapter;return r(t).then(function(n){return Tc(t),n.data=Rc.call(t,n.data,n.headers,t.transformResponse),n},function(n){return S8(n)||(Tc(t),n&&n.response&&(n.response.data=Rc.call(t,n.response.data,n.response.headers,t.transformResponse))),Promise.reject(n)})},jt=Nt,Zg=function(t,r){r=r||{};var o={};function n(d,u){return jt.isPlainObject(d)&&jt.isPlainObject(u)?jt.merge(d,u):jt.isPlainObject(u)?jt.merge({},u):jt.isArray(u)?u.slice():u}function i(d){if(jt.isUndefined(r[d])){if(!jt.isUndefined(t[d]))return n(void 0,t[d])}else return n(t[d],r[d])}function a(d){if(!jt.isUndefined(r[d]))return n(void 0,r[d])}function l(d){if(jt.isUndefined(r[d])){if(!jt.isUndefined(t[d]))return n(void 0,t[d])}else return n(void 0,r[d])}function s(d){if(d in r)return n(t[d],r[d]);if(d in t)return n(void 0,t[d])}var c={url:a,method:a,data:a,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:s};return jt.forEach(Object.keys(t).concat(Object.keys(r)),function(u){var h=c[u]||i,g=h(u);jt.isUndefined(g)&&h!==s||(o[u]=g)}),o},Jg={version:"0.23.0"},R8=Jg.version,zc={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){zc[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});var Qg={};zc.transitional=function(t,r,o){function n(i,a){return"[Axios v"+R8+"] Transitional option '"+i+"'"+a+(o?". "+o:"")}return function(i,a,l){if(t===!1)throw new Error(n(a," has been removed"+(r?" in "+r:"")));return r&&!Qg[a]&&(Qg[a]=!0,console.warn(n(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,a,l):!0}};function T8(e,t,r){if(typeof e!="object")throw new TypeError("options must be an object");for(var o=Object.keys(e),n=o.length;n-- >0;){var i=o[n],a=t[i];if(a){var l=e[i],s=l===void 0||a(l,i,e);if(s!==!0)throw new TypeError("option "+i+" must be "+s);continue}if(r!==!0)throw Error("Unknown option "+i)}}var z8={assertOptions:T8,validators:zc},ev=Nt,_8=Hg,tv=q_,rv=$8,Fa=Zg,ov=z8,xn=ov.validators;function vi(e){this.defaults=e,this.interceptors={request:new tv,response:new tv}}vi.prototype.request=function(t){typeof t=="string"?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=Fa(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;r!==void 0&&ov.assertOptions(r,{silentJSONParsing:xn.transitional(xn.boolean),forcedJSONParsing:xn.transitional(xn.boolean),clarifyTimeoutError:xn.transitional(xn.boolean)},!1);var o=[],n=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(t)===!1||(n=n&&h.synchronous,o.unshift(h.fulfilled,h.rejected))});var i=[];this.interceptors.response.forEach(function(h){i.push(h.fulfilled,h.rejected)});var a;if(!n){var l=[rv,void 0];for(Array.prototype.unshift.apply(l,o),l=l.concat(i),a=Promise.resolve(t);l.length;)a=a.then(l.shift(),l.shift());return a}for(var s=t;o.length;){var c=o.shift(),d=o.shift();try{s=c(s)}catch(u){d(u);break}}try{a=rv(s)}catch(u){return Promise.reject(u)}for(;i.length;)a=a.then(i.shift(),i.shift());return a};vi.prototype.getUri=function(t){return t=Fa(this.defaults,t),_8(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};ev.forEach(["delete","get","head","options"],function(t){vi.prototype[t]=function(r,o){return this.request(Fa(o||{},{method:t,url:r,data:(o||{}).data}))}});ev.forEach(["post","put","patch"],function(t){vi.prototype[t]=function(r,o,n){return this.request(Fa(n||{},{method:t,url:r,data:o}))}});var O8=vi,E8=Ea;function yn(e){if(typeof e!="function")throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(n){t=n});var r=this;this.promise.then(function(o){if(!!r._listeners){var n,i=r._listeners.length;for(n=0;n";while(a[0]);return n>4?n:o}();return e===r};av.isLegacyOpera=function(){return!!window.opera};var lv={exports:{}},V8=lv.exports={};V8.getOption=K8;function K8(e,t,r){var o=e[t];return o==null&&r!==void 0?r:o}var sv=lv.exports,q8=function(t){t=t||{};var r=t.reporter,o=sv.getOption(t,"async",!0),n=sv.getOption(t,"auto",!0);n&&!o&&(r&&r.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),o=!0);var i=cv(),a,l=!1;function s(b,y){!l&&n&&o&&i.size()===0&&u(),i.add(b,y)}function c(){for(l=!0;i.size();){var b=i;i=cv(),b.process()}l=!1}function d(b){l||(b===void 0&&(b=o),a&&(h(a),a=null),b?u():c())}function u(){a=g(c)}function h(b){var y=clearTimeout;return y(b)}function g(b){var y=function(v){return setTimeout(v,0)};return y(b)}return{add:s,force:d}};function cv(){var e={},t=0,r=0,o=0;function n(l,s){s||(s=l,l=0),l>r?r=l:l div::-webkit-scrollbar { "+c(["display: none"])+` } + +`,M+="."+$+" { "+c(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+T,"animation-name: "+T])+` } +`,M+="@-webkit-keyframes "+T+` { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } } +`,M+="@keyframes "+T+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }",S(M)}}function h(m){m.className+=" "+l+"_animation_active"}function g(m,x,C){if(m.addEventListener)m.addEventListener(x,C);else if(m.attachEvent)m.attachEvent("on"+x,C);else return t.error("[scroll] Don't know how to add event listeners.")}function b(m,x,C){if(m.removeEventListener)m.removeEventListener(x,C);else if(m.detachEvent)m.detachEvent("on"+x,C);else return t.error("[scroll] Don't know how to remove event listeners.")}function y(m){return o(m).container.childNodes[0].childNodes[0].childNodes[0]}function v(m){return o(m).container.childNodes[0].childNodes[0].childNodes[1]}function p(m,x){var C=o(m).listeners;if(!C.push)throw new Error("Cannot add listener to an element that is not detectable.");o(m).listeners.push(x)}function w(m,x,C){C||(C=x,x=m,m=null),m=m||{};function S(){if(m.debug){var ie=Array.prototype.slice.call(arguments);if(ie.unshift(n.get(x),"Scroll: "),t.log.apply)t.log.apply(null,ie);else for(var Ce=0;Ce + + + + + + PikPak + + + + + + + + + +
+
+ + + diff --git a/mitm.html b/mitm.html new file mode 100644 index 000000000..04450a929 --- /dev/null +++ b/mitm.html @@ -0,0 +1,166 @@ + + diff --git a/sw.js b/sw.js new file mode 100644 index 000000000..605af6308 --- /dev/null +++ b/sw.js @@ -0,0 +1,128 @@ +/* global self ReadableStream Response */ + +self.addEventListener('install', () => { + self.skipWaiting() +}) + +self.addEventListener('activate', event => { + event.waitUntil(self.clients.claim()) +}) + +const map = new Map() + +// This should be called once per download +// Each event has a dataChannel that the data will be piped through +self.onmessage = event => { + // We send a heartbeat every x second to keep the + // service worker alive if a transferable stream is not sent + if (event.data === 'ping') { + return + } + + const data = event.data + const downloadUrl = data.url || self.registration.scope + Math.random() + '/' + (typeof data === 'string' ? data : data.filename) + const port = event.ports[0] + const metadata = new Array(3) // [stream, data, port] + + metadata[1] = data + metadata[2] = port + + // Note to self: + // old streamsaver v1.2.0 might still use `readableStream`... + // but v2.0.0 will always transfer the stream through MessageChannel #94 + if (event.data.readableStream) { + metadata[0] = event.data.readableStream + } else if (event.data.transferringReadable) { + port.onmessage = evt => { + port.onmessage = null + metadata[0] = evt.data.readableStream + } + } else { + metadata[0] = createStream(port) + } + + map.set(downloadUrl, metadata) + port.postMessage({ download: downloadUrl }) +} + +function createStream (port) { + // ReadableStream is only supported by chrome 52 + return new ReadableStream({ + start (controller) { + // When we receive data on the messageChannel, we write + port.onmessage = ({ data }) => { + if (data === 'end') { + return controller.close() + } + + if (data === 'abort') { + controller.error('Aborted the download') + return + } + + controller.enqueue(data) + } + }, + cancel () { + console.log('user aborted') + } + }) +} + +self.onfetch = event => { + const url = event.request.url + + // this only works for Firefox + if (url.endsWith('/ping')) { + return event.respondWith(new Response('pong')) + } + + const hijacke = map.get(url) + + if (!hijacke) return null + + const [ stream, data, port ] = hijacke + + map.delete(url) + + // Not comfortable letting any user control all headers + // so we only copy over the length & disposition + const responseHeaders = new Headers({ + 'Content-Type': 'application/octet-stream; charset=utf-8', + + // To be on the safe side, The link can be opened in a iframe. + // but octet-stream should stop it. + 'Content-Security-Policy': "default-src 'none'", + 'X-Content-Security-Policy': "default-src 'none'", + 'X-WebKit-CSP': "default-src 'none'", + 'X-XSS-Protection': '1; mode=block' + }) + + let headers = new Headers(data.headers || {}) + + if (headers.has('Content-Length')) { + responseHeaders.set('Content-Length', headers.get('Content-Length')) + } + + if (headers.has('Content-Disposition')) { + responseHeaders.set('Content-Disposition', headers.get('Content-Disposition')) + } + + // data, data.filename and size should not be used anymore + if (data.size) { + console.warn('Depricated') + responseHeaders.set('Content-Length', data.size) + } + + let fileName = typeof data === 'string' ? data : data.filename + if (fileName) { + console.warn('Depricated') + // Make filename RFC5987 compatible + fileName = encodeURIComponent(fileName).replace(/['()]/g, escape).replace(/\*/g, '%2A') + responseHeaders.set('Content-Disposition', "attachment; filename*=UTF-8''" + fileName) + } + + event.respondWith(new Response(stream, { headers: responseHeaders })) + + port.postMessage({ debug: 'Download started' }) +}