123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- (self["webpackChunkquick_vue3"]=self["webpackChunkquick_vue3"]||[]).push([[998],{9662:function(e,t,n){var r=n(7854),o=n(614),i=n(6330),a=r.TypeError;e.exports=function(e){if(o(e))return e;throw a(i(e)+" is not a function")}},6077:function(e,t,n){var r=n(7854),o=n(614),i=r.String,a=r.TypeError;e.exports=function(e){if("object"==typeof e||o(e))return e;throw a("Can't set "+i(e)+" as a prototype")}},5787:function(e,t,n){var r=n(7854),o=n(7976),i=r.TypeError;e.exports=function(e,t){if(o(t,e))return e;throw i("Incorrect invocation")}},9670:function(e,t,n){var r=n(7854),o=n(111),i=r.String,a=r.TypeError;e.exports=function(e){if(o(e))return e;throw a(i(e)+" is not an object")}},4019:function(e){e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},260:function(e,t,n){"use strict";var r,o,i,a=n(4019),s=n(9781),l=n(7854),c=n(614),u=n(111),d=n(2597),p=n(648),f=n(6330),h=n(8880),m=n(1320),v=n(3070).f,g=n(7976),y=n(9518),b=n(7674),_=n(5112),w=n(9711),k=l.Int8Array,S=k&&k.prototype,C=l.Uint8ClampedArray,x=C&&C.prototype,I=k&&y(k),T=S&&y(S),E=Object.prototype,R=l.TypeError,P=_("toStringTag"),O=w("TYPED_ARRAY_TAG"),A=w("TYPED_ARRAY_CONSTRUCTOR"),D=a&&!!b&&"Opera"!==p(l.opera),N=!1,M={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},L={BigInt64Array:8,BigUint64Array:8},F=function(e){if(!u(e))return!1;var t=p(e);return"DataView"===t||d(M,t)||d(L,t)},U=function(e){if(!u(e))return!1;var t=p(e);return d(M,t)||d(L,t)},j=function(e){if(U(e))return e;throw R("Target is not a typed array")},V=function(e){if(c(e)&&(!b||g(I,e)))return e;throw R(f(e)+" is not a typed array constructor")},H=function(e,t,n,r){if(s){if(n)for(var o in M){var i=l[o];if(i&&d(i.prototype,e))try{delete i.prototype[e]}catch(a){try{i.prototype[e]=t}catch(c){}}}T[e]&&!n||m(T,e,n?t:D&&S[e]||t,r)}},B=function(e,t,n){var r,o;if(s){if(b){if(n)for(r in M)if(o=l[r],o&&d(o,e))try{delete o[e]}catch(i){}if(I[e]&&!n)return;try{return m(I,e,n?t:D&&I[e]||t)}catch(i){}}for(r in M)o=l[r],!o||o[e]&&!n||m(o,e,t)}};for(r in M)o=l[r],i=o&&o.prototype,i?h(i,A,o):D=!1;for(r in L)o=l[r],i=o&&o.prototype,i&&h(i,A,o);if((!D||!c(I)||I===Function.prototype)&&(I=function(){throw R("Incorrect invocation")},D))for(r in M)l[r]&&b(l[r],I);if((!D||!T||T===E)&&(T=I.prototype,D))for(r in M)l[r]&&b(l[r].prototype,T);if(D&&y(x)!==T&&b(x,T),s&&!d(T,P))for(r in N=!0,v(T,P,{get:function(){return u(this)?this[O]:void 0}}),M)l[r]&&h(l[r],O,r);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:D,TYPED_ARRAY_CONSTRUCTOR:A,TYPED_ARRAY_TAG:N&&O,aTypedArray:j,aTypedArrayConstructor:V,exportTypedArrayMethod:H,exportTypedArrayStaticMethod:B,isView:F,isTypedArray:U,TypedArray:I,TypedArrayPrototype:T}},1318:function(e,t,n){var r=n(5656),o=n(1400),i=n(6244),a=function(e){return function(t,n,a){var s,l=r(t),c=i(l),u=o(a,c);if(e&&n!=n){while(c>u)if(s=l[u++],s!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},4326:function(e,t,n){var r=n(1702),o=r({}.toString),i=r("".slice);e.exports=function(e){return i(o(e),8,-1)}},648:function(e,t,n){var r=n(7854),o=n(1694),i=n(614),a=n(4326),s=n(5112),l=s("toStringTag"),c=r.Object,u="Arguments"==a(function(){return arguments}()),d=function(e,t){try{return e[t]}catch(n){}};e.exports=o?a:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=d(t=c(e),l))?n:u?a(t):"Object"==(r=a(t))&&i(t.callee)?"Arguments":r}},7741:function(e,t,n){var r=n(1702),o=Error,i=r("".replace),a=function(e){return String(o(e).stack)}("zxcasd"),s=/\n\s*at [^:]*:[^\n]*/,l=s.test(a);e.exports=function(e,t){if(l&&"string"==typeof e&&!o.prepareStackTrace)while(t--)e=i(e,s,"");return e}},9920:function(e,t,n){var r=n(2597),o=n(3887),i=n(1236),a=n(3070);e.exports=function(e,t,n){for(var s=o(t),l=a.f,c=i.f,u=0;u<s.length;u++){var d=s[u];r(e,d)||n&&r(n,d)||l(e,d,c(t,d))}}},8544:function(e,t,n){var r=n(7293);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},8880:function(e,t,n){var r=n(9781),o=n(3070),i=n(9114);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},9114:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},9781:function(e,t,n){var r=n(7293);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:function(e,t,n){var r=n(7854),o=n(111),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},3678:function(e){e.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},8113:function(e,t,n){var r=n(5005);e.exports=r("navigator","userAgent")||""},7392:function(e,t,n){var r,o,i=n(7854),a=n(8113),s=i.process,l=i.Deno,c=s&&s.versions||l&&l.version,u=c&&c.v8;u&&(r=u.split("."),o=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(r=a.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/),r&&(o=+r[1]))),e.exports=o},748:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2914:function(e,t,n){var r=n(7293),o=n(9114);e.exports=!r((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",o(1,7)),7!==e.stack)}))},2109:function(e,t,n){var r=n(7854),o=n(1236).f,i=n(8880),a=n(1320),s=n(3505),l=n(9920),c=n(4705);e.exports=function(e,t){var n,u,d,p,f,h,m=e.target,v=e.global,g=e.stat;if(u=v?r:g?r[m]||s(m,{}):(r[m]||{}).prototype,u)for(d in t){if(f=t[d],e.noTargetGet?(h=o(u,d),p=h&&h.value):p=u[d],n=c(v?d:m+(g?".":"#")+d,e.forced),!n&&void 0!==p){if(typeof f==typeof p)continue;l(f,p)}(e.sham||p&&p.sham)&&i(f,"sham",!0),a(u,d,f,e)}}},7293:function(e){e.exports=function(e){try{return!!e()}catch(t){return!0}}},2104:function(e,t,n){var r=n(4374),o=Function.prototype,i=o.apply,a=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(i):function(){return a.apply(i,arguments)})},4374:function(e,t,n){var r=n(7293);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},6916:function(e,t,n){var r=n(4374),o=Function.prototype.call;e.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},6530:function(e,t,n){var r=n(9781),o=n(2597),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=o(i,"name"),l=s&&"something"===function(){}.name,c=s&&(!r||r&&a(i,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:c}},1702:function(e,t,n){var r=n(4374),o=Function.prototype,i=o.bind,a=o.call,s=r&&i.bind(a,a);e.exports=r?function(e){return e&&s(e)}:function(e){return e&&function(){return a.apply(e,arguments)}}},5005:function(e,t,n){var r=n(7854),o=n(614),i=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e]):r[e]&&r[e][t]}},8173:function(e,t,n){var r=n(9662);e.exports=function(e,t){var n=e[t];return null==n?void 0:r(n)}},7854:function(e,t,n){var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},2597:function(e,t,n){var r=n(1702),o=n(7908),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},3501:function(e){e.exports={}},4664:function(e,t,n){var r=n(9781),o=n(7293),i=n(317);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},8361:function(e,t,n){var r=n(7854),o=n(1702),i=n(7293),a=n(4326),s=r.Object,l=o("".split);e.exports=i((function(){return!s("z").propertyIsEnumerable(0)}))?function(e){return"String"==a(e)?l(e,""):s(e)}:s},9587:function(e,t,n){var r=n(614),o=n(111),i=n(7674);e.exports=function(e,t,n){var a,s;return i&&r(a=t.constructor)&&a!==n&&o(s=a.prototype)&&s!==n.prototype&&i(e,s),e}},2788:function(e,t,n){var r=n(1702),o=n(614),i=n(5465),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},8340:function(e,t,n){var r=n(111),o=n(8880);e.exports=function(e,t){r(t)&&"cause"in t&&o(e,"cause",t.cause)}},9909:function(e,t,n){var r,o,i,a=n(8536),s=n(7854),l=n(1702),c=n(111),u=n(8880),d=n(2597),p=n(5465),f=n(6200),h=n(3501),m="Object already initialized",v=s.TypeError,g=s.WeakMap,y=function(e){return i(e)?o(e):r(e,{})},b=function(e){return function(t){var n;if(!c(t)||(n=o(t)).type!==e)throw v("Incompatible receiver, "+e+" required");return n}};if(a||p.state){var _=p.state||(p.state=new g),w=l(_.get),k=l(_.has),S=l(_.set);r=function(e,t){if(k(_,e))throw new v(m);return t.facade=e,S(_,e,t),t},o=function(e){return w(_,e)||{}},i=function(e){return k(_,e)}}else{var C=f("state");h[C]=!0,r=function(e,t){if(d(e,C))throw new v(m);return t.facade=e,u(e,C,t),t},o=function(e){return d(e,C)?e[C]:{}},i=function(e){return d(e,C)}}e.exports={set:r,get:o,has:i,enforce:y,getterFor:b}},614:function(e){e.exports=function(e){return"function"==typeof e}},4705:function(e,t,n){var r=n(7293),o=n(614),i=/#|\.prototype\./,a=function(e,t){var n=l[s(e)];return n==u||n!=c&&(o(t)?r(t):!!t)},s=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},l=a.data={},c=a.NATIVE="N",u=a.POLYFILL="P";e.exports=a},111:function(e,t,n){var r=n(614);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},1913:function(e){e.exports=!1},2190:function(e,t,n){var r=n(7854),o=n(5005),i=n(614),a=n(7976),s=n(3307),l=r.Object;e.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=o("Symbol");return i(t)&&a(t.prototype,l(e))}},6244:function(e,t,n){var r=n(7466);e.exports=function(e){return r(e.length)}},133:function(e,t,n){var r=n(7392),o=n(7293);e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},8536:function(e,t,n){var r=n(7854),o=n(614),i=n(2788),a=r.WeakMap;e.exports=o(a)&&/native code/.test(i(a))},6277:function(e,t,n){var r=n(1340);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},3070:function(e,t,n){var r=n(7854),o=n(9781),i=n(4664),a=n(3353),s=n(9670),l=n(4948),c=r.TypeError,u=Object.defineProperty,d=Object.getOwnPropertyDescriptor,p="enumerable",f="configurable",h="writable";t.f=o?a?function(e,t,n){if(s(e),t=l(t),s(n),"function"===typeof e&&"prototype"===t&&"value"in n&&h in n&&!n[h]){var r=d(e,t);r&&r[h]&&(e[t]=n.value,n={configurable:f in n?n[f]:r[f],enumerable:p in n?n[p]:r[p],writable:!1})}return u(e,t,n)}:u:function(e,t,n){if(s(e),t=l(t),s(n),i)try{return u(e,t,n)}catch(r){}if("get"in n||"set"in n)throw c("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},1236:function(e,t,n){var r=n(9781),o=n(6916),i=n(5296),a=n(9114),s=n(5656),l=n(4948),c=n(2597),u=n(4664),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=s(e),t=l(t),u)try{return d(e,t)}catch(n){}if(c(e,t))return a(!o(i.f,e,t),e[t])}},8006:function(e,t,n){var r=n(6324),o=n(748),i=o.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},5181:function(e,t){t.f=Object.getOwnPropertySymbols},9518:function(e,t,n){var r=n(7854),o=n(2597),i=n(614),a=n(7908),s=n(6200),l=n(8544),c=s("IE_PROTO"),u=r.Object,d=u.prototype;e.exports=l?u.getPrototypeOf:function(e){var t=a(e);if(o(t,c))return t[c];var n=t.constructor;return i(n)&&t instanceof n?n.prototype:t instanceof u?d:null}},7976:function(e,t,n){var r=n(1702);e.exports=r({}.isPrototypeOf)},6324:function(e,t,n){var r=n(1702),o=n(2597),i=n(5656),a=n(1318).indexOf,s=n(3501),l=r([].push);e.exports=function(e,t){var n,r=i(e),c=0,u=[];for(n in r)!o(s,n)&&o(r,n)&&l(u,n);while(t.length>c)o(r,n=t[c++])&&(~a(u,n)||l(u,n));return u}},5296:function(e,t){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},7674:function(e,t,n){var r=n(1702),o=n(9670),i=n(6077);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),e(n,[]),t=n instanceof Array}catch(a){}return function(n,r){return o(n),i(r),t?e(n,r):n.__proto__=r,n}}():void 0)},2140:function(e,t,n){var r=n(7854),o=n(6916),i=n(614),a=n(111),s=r.TypeError;e.exports=function(e,t){var n,r;if("string"===t&&i(n=e.toString)&&!a(r=o(n,e)))return r;if(i(n=e.valueOf)&&!a(r=o(n,e)))return r;if("string"!==t&&i(n=e.toString)&&!a(r=o(n,e)))return r;throw s("Can't convert object to primitive value")}},3887:function(e,t,n){var r=n(5005),o=n(1702),i=n(8006),a=n(5181),s=n(9670),l=o([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(s(e)),n=a.f;return n?l(t,n(e)):t}},2626:function(e,t,n){var r=n(3070).f;e.exports=function(e,t,n){n in e||r(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},1320:function(e,t,n){var r=n(7854),o=n(614),i=n(2597),a=n(8880),s=n(3505),l=n(2788),c=n(9909),u=n(6530).CONFIGURABLE,d=c.get,p=c.enforce,f=String(String).split("String");(e.exports=function(e,t,n,l){var c,d=!!l&&!!l.unsafe,h=!!l&&!!l.enumerable,m=!!l&&!!l.noTargetGet,v=l&&void 0!==l.name?l.name:t;o(n)&&("Symbol("===String(v).slice(0,7)&&(v="["+String(v).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!i(n,"name")||u&&n.name!==v)&&a(n,"name",v),c=p(n),c.source||(c.source=f.join("string"==typeof v?v:""))),e!==r?(d?!m&&e[t]&&(h=!0):delete e[t],h?e[t]=n:a(e,t,n)):h?e[t]=n:s(t,n)})(Function.prototype,"toString",(function(){return o(this)&&d(this).source||l(this)}))},4488:function(e,t,n){var r=n(7854),o=r.TypeError;e.exports=function(e){if(void 0==e)throw o("Can't call method on "+e);return e}},3505:function(e,t,n){var r=n(7854),o=Object.defineProperty;e.exports=function(e,t){try{o(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},6200:function(e,t,n){var r=n(2309),o=n(9711),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},5465:function(e,t,n){var r=n(7854),o=n(3505),i="__core-js_shared__",a=r[i]||o(i,{});e.exports=a},2309:function(e,t,n){var r=n(1913),o=n(5465);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.22.2",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.2/LICENSE",source:"https://github.com/zloirock/core-js"})},1400:function(e,t,n){var r=n(9303),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},5656:function(e,t,n){var r=n(8361),o=n(4488);e.exports=function(e){return r(o(e))}},9303:function(e){var t=Math.ceil,n=Math.floor;e.exports=function(e){var r=+e;return r!==r||0===r?0:(r>0?n:t)(r)}},7466:function(e,t,n){var r=n(9303),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},7908:function(e,t,n){var r=n(7854),o=n(4488),i=r.Object;e.exports=function(e){return i(o(e))}},4590:function(e,t,n){var r=n(7854),o=n(3002),i=r.RangeError;e.exports=function(e,t){var n=o(e);if(n%t)throw i("Wrong offset");return n}},3002:function(e,t,n){var r=n(7854),o=n(9303),i=r.RangeError;e.exports=function(e){var t=o(e);if(t<0)throw i("The argument can't be less than 0");return t}},7593:function(e,t,n){var r=n(7854),o=n(6916),i=n(111),a=n(2190),s=n(8173),l=n(2140),c=n(5112),u=r.TypeError,d=c("toPrimitive");e.exports=function(e,t){if(!i(e)||a(e))return e;var n,r=s(e,d);if(r){if(void 0===t&&(t="default"),n=o(r,e,t),!i(n)||a(n))return n;throw u("Can't convert object to primitive value")}return void 0===t&&(t="number"),l(e,t)}},4948:function(e,t,n){var r=n(7593),o=n(2190);e.exports=function(e){var t=r(e,"string");return o(t)?t:t+""}},1694:function(e,t,n){var r=n(5112),o=r("toStringTag"),i={};i[o]="z",e.exports="[object z]"===String(i)},1340:function(e,t,n){var r=n(7854),o=n(648),i=r.String;e.exports=function(e){if("Symbol"===o(e))throw TypeError("Cannot convert a Symbol value to a string");return i(e)}},6330:function(e,t,n){var r=n(7854),o=r.String;e.exports=function(e){try{return o(e)}catch(t){return"Object"}}},9711:function(e,t,n){var r=n(1702),o=0,i=Math.random(),a=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+i,36)}},3307:function(e,t,n){var r=n(133);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(e,t,n){var r=n(9781),o=n(7293);e.exports=r&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},5112:function(e,t,n){var r=n(7854),o=n(2309),i=n(2597),a=n(9711),s=n(133),l=n(3307),c=o("wks"),u=r.Symbol,d=u&&u["for"],p=l?u:u&&u.withoutSetter||a;e.exports=function(e){if(!i(c,e)||!s&&"string"!=typeof c[e]){var t="Symbol."+e;s&&i(u,e)?c[e]=u[e]:c[e]=l&&d?d(t):p(t)}return c[e]}},9191:function(e,t,n){"use strict";var r=n(5005),o=n(2597),i=n(8880),a=n(7976),s=n(7674),l=n(9920),c=n(2626),u=n(9587),d=n(6277),p=n(8340),f=n(7741),h=n(2914),m=n(9781),v=n(1913);e.exports=function(e,t,n,g){var y="stackTraceLimit",b=g?2:1,_=e.split("."),w=_[_.length-1],k=r.apply(null,_);if(k){var S=k.prototype;if(!v&&o(S,"cause")&&delete S.cause,!n)return k;var C=r("Error"),x=t((function(e,t){var n=d(g?t:e,void 0),r=g?new k(e):new k;return void 0!==n&&i(r,"message",n),h&&i(r,"stack",f(r.stack,2)),this&&a(S,this)&&u(r,this,x),arguments.length>b&&p(r,arguments[b]),r}));if(x.prototype=S,"Error"!==w?s?s(x,C):l(x,C,{name:!0}):m&&y in k&&(c(x,k,y),c(x,k,"prepareStackTrace")),l(x,k),!v)try{S.name!==w&&i(S,"name",w),S.constructor=x}catch(I){}return x}}},1703:function(e,t,n){var r=n(2109),o=n(7854),i=n(2104),a=n(9191),s="WebAssembly",l=o[s],c=7!==Error("e",{cause:7}).cause,u=function(e,t){var n={};n[e]=a(e,t,c),r({global:!0,forced:c},n)},d=function(e,t){if(l&&l[e]){var n={};n[e]=a(s+"."+e,t,c),r({target:s,stat:!0,forced:c},n)}};u("Error",(function(e){return function(t){return i(e,this,arguments)}})),u("EvalError",(function(e){return function(t){return i(e,this,arguments)}})),u("RangeError",(function(e){return function(t){return i(e,this,arguments)}})),u("ReferenceError",(function(e){return function(t){return i(e,this,arguments)}})),u("SyntaxError",(function(e){return function(t){return i(e,this,arguments)}})),u("TypeError",(function(e){return function(t){return i(e,this,arguments)}})),u("URIError",(function(e){return function(t){return i(e,this,arguments)}})),d("CompileError",(function(e){return function(t){return i(e,this,arguments)}})),d("LinkError",(function(e){return function(t){return i(e,this,arguments)}})),d("RuntimeError",(function(e){return function(t){return i(e,this,arguments)}}))},6314:function(e,t,n){var r=n(2109),o=n(2597);r({target:"Object",stat:!0},{hasOwn:o})},8675:function(e,t,n){"use strict";var r=n(260),o=n(6244),i=n(9303),a=r.aTypedArray,s=r.exportTypedArrayMethod;s("at",(function(e){var t=a(this),n=o(t),r=i(e),s=r>=0?r:n+r;return s<0||s>=n?void 0:t[s]}))},3462:function(e,t,n){"use strict";var r=n(7854),o=n(6916),i=n(260),a=n(6244),s=n(4590),l=n(7908),c=n(7293),u=r.RangeError,d=r.Int8Array,p=d&&d.prototype,f=p&&p.set,h=i.aTypedArray,m=i.exportTypedArrayMethod,v=!c((function(){var e=new Uint8ClampedArray(2);return o(f,e,{length:1,0:3},1),3!==e[1]})),g=v&&i.NATIVE_ARRAY_BUFFER_VIEWS&&c((function(){var e=new d(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));m("set",(function(e){h(this);var t=s(arguments.length>1?arguments[1]:void 0,1),n=l(e);if(v)return o(f,this,n,t);var r=this.length,i=a(n),c=0;if(i+t>r)throw u("Wrong length");while(c<i)this[t+c]=n[c++]}),!v||g)},2801:function(e,t,n){"use strict";var r=n(2109),o=n(5005),i=n(9114),a=n(3070).f,s=n(2597),l=n(5787),c=n(9587),u=n(6277),d=n(3678),p=n(7741),f=n(1913),h="DOMException",m=o("Error"),v=o(h),g=function(){l(this,y);var e=arguments.length,t=u(e<1?void 0:arguments[0]),n=u(e<2?void 0:arguments[1],"Error"),r=new v(t,n),o=m(t);return o.name=h,a(r,"stack",i(1,p(o.stack,1))),c(r,this,g),r},y=g.prototype=v.prototype,b="stack"in m(h),_="stack"in new v(1,2),w=b&&!_;r({global:!0,forced:f||w},{DOMException:w?g:v});var k=o(h),S=k.prototype;if(S.constructor!==k)for(var C in f||a(S,"constructor",i(1,k)),d)if(s(d,C)){var x=d[C],I=x.s;s(k,I)||a(k,I,i(6,x.c))}},4415:function(){},9414:function(e,t,n){"use strict";function r(e,t){i(e)&&(e="100%");var n=a(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t)),e)}function o(e){return Math.min(1,Math.max(0,e))}function i(e){return"string"===typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)}function a(e){return"string"===typeof e&&-1!==e.indexOf("%")}function s(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function l(e){return e<=1?"".concat(100*Number(e),"%"):e}function c(e){return 1===e.length?"0"+e:String(e)}function u(e,t,n){return{r:255*r(e,255),g:255*r(t,255),b:255*r(n,255)}}function d(e,t,n){e=r(e,255),t=r(t,255),n=r(n,255);var o=Math.max(e,t,n),i=Math.min(e,t,n),a=0,s=0,l=(o+i)/2;if(o===i)s=0,a=0;else{var c=o-i;switch(s=l>.5?c/(2-o-i):c/(o+i),o){case e:a=(t-n)/c+(t<n?6:0);break;case t:a=(n-e)/c+2;break;case n:a=(e-t)/c+4;break;default:break}a/=6}return{h:a,s:s,l:l}}function p(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function f(e,t,n){var o,i,a;if(e=r(e,360),t=r(t,100),n=r(n,100),0===t)i=n,a=n,o=n;else{var s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;o=p(l,s,e+1/3),i=p(l,s,e),a=p(l,s,e-1/3)}return{r:255*o,g:255*i,b:255*a}}function h(e,t,n){e=r(e,255),t=r(t,255),n=r(n,255);var o=Math.max(e,t,n),i=Math.min(e,t,n),a=0,s=o,l=o-i,c=0===o?0:l/o;if(o===i)a=0;else{switch(o){case e:a=(t-n)/l+(t<n?6:0);break;case t:a=(n-e)/l+2;break;case n:a=(e-t)/l+4;break;default:break}a/=6}return{h:a,s:c,v:s}}function m(e,t,n){e=6*r(e,360),t=r(t,100),n=r(n,100);var o=Math.floor(e),i=e-o,a=n*(1-t),s=n*(1-i*t),l=n*(1-(1-i)*t),c=o%6,u=[n,s,a,a,l,n][c],d=[l,n,n,s,a,a][c],p=[a,a,l,n,n,s][c];return{r:255*u,g:255*d,b:255*p}}function v(e,t,n,r){var o=[c(Math.round(e).toString(16)),c(Math.round(t).toString(16)),c(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function g(e,t,n,r,o){var i=[c(Math.round(e).toString(16)),c(Math.round(t).toString(16)),c(Math.round(n).toString(16)),c(y(r))];return o&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function y(e){return Math.round(255*parseFloat(e)).toString(16)}function b(e){return _(e)/255}function _(e){return parseInt(e,16)}function w(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}n.d(t,{C:function(){return A}});var k={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function S(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,i=null,a=!1,c=!1;return"string"===typeof e&&(e=P(e)),"object"===typeof e&&(O(e.r)&&O(e.g)&&O(e.b)?(t=u(e.r,e.g,e.b),a=!0,c="%"===String(e.r).substr(-1)?"prgb":"rgb"):O(e.h)&&O(e.s)&&O(e.v)?(r=l(e.s),o=l(e.v),t=m(e.h,r,o),a=!0,c="hsv"):O(e.h)&&O(e.s)&&O(e.l)&&(r=l(e.s),i=l(e.l),t=f(e.h,r,i),a=!0,c="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=s(n),{ok:a,format:e.format||c,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var C="[-\\+]?\\d+%?",x="[-\\+]?\\d*\\.\\d+%?",I="(?:".concat(x,")|(?:").concat(C,")"),T="[\\s|\\(]+(".concat(I,")[,|\\s]+(").concat(I,")[,|\\s]+(").concat(I,")\\s*\\)?"),E="[\\s|\\(]+(".concat(I,")[,|\\s]+(").concat(I,")[,|\\s]+(").concat(I,")[,|\\s]+(").concat(I,")\\s*\\)?"),R={CSS_UNIT:new RegExp(I),rgb:new RegExp("rgb"+T),rgba:new RegExp("rgba"+E),hsl:new RegExp("hsl"+T),hsla:new RegExp("hsla"+E),hsv:new RegExp("hsv"+T),hsva:new RegExp("hsva"+E),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function P(e){if(e=e.trim().toLowerCase(),0===e.length)return!1;var t=!1;if(k[e])e=k[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=R.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=R.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=R.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=R.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=R.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=R.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=R.hex8.exec(e),n?{r:_(n[1]),g:_(n[2]),b:_(n[3]),a:b(n[4]),format:t?"name":"hex8"}:(n=R.hex6.exec(e),n?{r:_(n[1]),g:_(n[2]),b:_(n[3]),format:t?"name":"hex"}:(n=R.hex4.exec(e),n?{r:_(n[1]+n[1]),g:_(n[2]+n[2]),b:_(n[3]+n[3]),a:b(n[4]+n[4]),format:t?"name":"hex8"}:(n=R.hex3.exec(e),!!n&&{r:_(n[1]+n[1]),g:_(n[2]+n[2]),b:_(n[3]+n[3]),format:t?"name":"hex"})))))))))}function O(e){return Boolean(R.CSS_UNIT.exec(String(e)))}var A=function(){function e(t,n){var r;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"===typeof t&&(t=w(t)),this.originalInput=t;var o=S(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(r=n.format)&&void 0!==r?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e,t,n,r=this.toRgb(),o=r.r/255,i=r.g/255,a=r.b/255;return e=o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4),t=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4),n=a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4),.2126*e+.7152*t+.0722*n},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=s(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.toHsv=function(){var e=h(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=h(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=d(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=d(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),v(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),g(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*r(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*r(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+v(this.r,this.g,this.b,!1),t=0,n=Object.entries(k);t<n.length;t++){var r=n[t],o=r[0],i=r[1];if(e===i)return o}return!1},e.prototype.toString=function(e){var t=Boolean(e);e=null!==e&&void 0!==e?e:this.format;var n=!1,r=this.a<1&&this.a>=0,o=!t&&r&&(e.startsWith("hex")||"name"===e);return o?"name"===e&&0===this.a?this.toName():this.toRgbString():("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=o(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=o(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=o(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=o(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100,a={r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a};return new e(a)},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],s=1/t;while(t--)a.push(new e({h:r,s:o,v:i})),i=(i+s)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb();return new e({r:r.r+(n.r-r.r)*n.a,g:r.g+(n.g-r.g)*n.a,b:r.b+(n.b-r.b)*n.a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a<t;a++)o.push(new e({h:(r+a*i)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}()},4870:function(e,t,n){"use strict";n.d(t,{B:function(){return a},BK:function(){return We},Bj:function(){return i},EB:function(){return c},Fl:function(){return Ke},IU:function(){return Pe},Jd:function(){return I},OT:function(){return Ce},PG:function(){return Ie},SU:function(){return Be},Um:function(){return Se},Vh:function(){return Ze},WL:function(){return ze},X$:function(){return P},X3:function(){return Re},XI:function(){return Ue},Xl:function(){return Oe},dq:function(){return Le},iH:function(){return Fe},j:function(){return E},lk:function(){return T},nZ:function(){return l},oR:function(){return He},qj:function(){return ke},qq:function(){return k},yT:function(){return Ee}});var r=n(7139);let o;class i{constructor(e=!1){this.active=!0,this.effects=[],this.cleanups=[],!e&&o&&(this.parent=o,this.index=(o.scopes||(o.scopes=[])).push(this)-1)}run(e){if(this.active){const t=o;try{return o=this,e()}finally{o=t}}else 0}on(){o=this}off(){o=this.parent}stop(e){if(this.active){let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.active=!1}}}function a(e){return new i(e)}function s(e,t=o){t&&t.active&&t.effects.push(e)}function l(){return o}function c(e){o&&o.cleanups.push(e)}const u=e=>{const t=new Set(e);return t.w=0,t.n=0,t},d=e=>(e.w&g)>0,p=e=>(e.n&g)>0,f=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=g},h=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const o=t[r];d(o)&&!p(o)?o.delete(e):t[n++]=o,o.w&=~g,o.n&=~g}t.length=n}},m=new WeakMap;let v=0,g=1;const y=30;let b;const _=Symbol(""),w=Symbol("");class k{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,s(this,n)}run(){if(!this.active)return this.fn();let e=b,t=C;while(e){if(e===this)return;e=e.parent}try{return this.parent=b,b=this,C=!0,g=1<<++v,v<=y?f(this):S(this),this.fn()}finally{v<=y&&h(this),g=1<<--v,b=this.parent,C=t,this.parent=void 0,this.deferStop&&this.stop()}}stop(){b===this?this.deferStop=!0:this.active&&(S(this),this.onStop&&this.onStop(),this.active=!1)}}function S(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let C=!0;const x=[];function I(){x.push(C),C=!1}function T(){const e=x.pop();C=void 0===e||e}function E(e,t,n){if(C&&b){let t=m.get(e);t||m.set(e,t=new Map);let r=t.get(n);r||t.set(n,r=u());const o=void 0;R(r,o)}}function R(e,t){let n=!1;v<=y?p(e)||(e.n|=g,n=!d(e)):n=!e.has(b),n&&(e.add(b),b.deps.push(e))}function P(e,t,n,o,i,a){const s=m.get(e);if(!s)return;let l=[];if("clear"===t)l=[...s.values()];else if("length"===n&&(0,r.kJ)(e))s.forEach(((e,t)=>{("length"===t||t>=o)&&l.push(e)}));else switch(void 0!==n&&l.push(s.get(n)),t){case"add":(0,r.kJ)(e)?(0,r.S0)(n)&&l.push(s.get("length")):(l.push(s.get(_)),(0,r._N)(e)&&l.push(s.get(w)));break;case"delete":(0,r.kJ)(e)||(l.push(s.get(_)),(0,r._N)(e)&&l.push(s.get(w)));break;case"set":(0,r._N)(e)&&l.push(s.get(_));break}if(1===l.length)l[0]&&O(l[0]);else{const e=[];for(const t of l)t&&e.push(...t);O(u(e))}}function O(e,t){for(const n of(0,r.kJ)(e)?e:[...e])(n!==b||n.allowRecurse)&&(n.scheduler?n.scheduler():n.run())}const A=(0,r.fY)("__proto__,__v_isRef,__isVue"),D=new Set(Object.getOwnPropertyNames(Symbol).map((e=>Symbol[e])).filter(r.yk)),N=j(),M=j(!1,!0),L=j(!0),F=U();function U(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=Pe(this);for(let t=0,o=this.length;t<o;t++)E(n,"get",t+"");const r=n[t](...e);return-1===r||!1===r?n[t](...e.map(Pe)):r}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){I();const n=Pe(this)[t].apply(this,e);return T(),n}})),e}function j(e=!1,t=!1){return function(n,o,i){if("__v_isReactive"===o)return!e;if("__v_isReadonly"===o)return e;if("__v_isShallow"===o)return t;if("__v_raw"===o&&i===(e?t?be:ye:t?ge:ve).get(n))return n;const a=(0,r.kJ)(n);if(!e&&a&&(0,r.RI)(F,o))return Reflect.get(F,o,i);const s=Reflect.get(n,o,i);if((0,r.yk)(o)?D.has(o):A(o))return s;if(e||E(n,"get",o),t)return s;if(Le(s)){const e=!a||!(0,r.S0)(o);return e?s.value:s}return(0,r.Kn)(s)?e?Ce(s):ke(s):s}}const V=B(),H=B(!0);function B(e=!1){return function(t,n,o,i){let a=t[n];if(Te(a)&&Le(a)&&!Le(o))return!1;if(!e&&!Te(o)&&(Ee(o)||(o=Pe(o),a=Pe(a)),!(0,r.kJ)(t)&&Le(a)&&!Le(o)))return a.value=o,!0;const s=(0,r.kJ)(t)&&(0,r.S0)(n)?Number(n)<t.length:(0,r.RI)(t,n),l=Reflect.set(t,n,o,i);return t===Pe(i)&&(s?(0,r.aU)(o,a)&&P(t,"set",n,o,a):P(t,"add",n,o)),l}}function $(e,t){const n=(0,r.RI)(e,t),o=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&P(e,"delete",t,void 0,o),i}function z(e,t){const n=Reflect.has(e,t);return(0,r.yk)(t)&&D.has(t)||E(e,"has",t),n}function W(e){return E(e,"iterate",(0,r.kJ)(e)?"length":_),Reflect.ownKeys(e)}const q={get:N,set:V,deleteProperty:$,has:z,ownKeys:W},Z={get:L,set(e,t){return!0},deleteProperty(e,t){return!0}},Y=(0,r.l7)({},q,{get:M,set:H}),K=e=>e,J=e=>Reflect.getPrototypeOf(e);function G(e,t,n=!1,r=!1){e=e["__v_raw"];const o=Pe(e),i=Pe(t);t!==i&&!n&&E(o,"get",t),!n&&E(o,"get",i);const{has:a}=J(o),s=r?K:n?De:Ae;return a.call(o,t)?s(e.get(t)):a.call(o,i)?s(e.get(i)):void(e!==o&&e.get(t))}function X(e,t=!1){const n=this["__v_raw"],r=Pe(n),o=Pe(e);return e!==o&&!t&&E(r,"has",e),!t&&E(r,"has",o),e===o?n.has(e):n.has(e)||n.has(o)}function Q(e,t=!1){return e=e["__v_raw"],!t&&E(Pe(e),"iterate",_),Reflect.get(e,"size",e)}function ee(e){e=Pe(e);const t=Pe(this),n=J(t),r=n.has.call(t,e);return r||(t.add(e),P(t,"add",e,e)),this}function te(e,t){t=Pe(t);const n=Pe(this),{has:o,get:i}=J(n);let a=o.call(n,e);a||(e=Pe(e),a=o.call(n,e));const s=i.call(n,e);return n.set(e,t),a?(0,r.aU)(t,s)&&P(n,"set",e,t,s):P(n,"add",e,t),this}function ne(e){const t=Pe(this),{has:n,get:r}=J(t);let o=n.call(t,e);o||(e=Pe(e),o=n.call(t,e));const i=r?r.call(t,e):void 0,a=t.delete(e);return o&&P(t,"delete",e,void 0,i),a}function re(){const e=Pe(this),t=0!==e.size,n=void 0,r=e.clear();return t&&P(e,"clear",void 0,void 0,n),r}function oe(e,t){return function(n,r){const o=this,i=o["__v_raw"],a=Pe(i),s=t?K:e?De:Ae;return!e&&E(a,"iterate",_),i.forEach(((e,t)=>n.call(r,s(e),s(t),o)))}}function ie(e,t,n){return function(...o){const i=this["__v_raw"],a=Pe(i),s=(0,r._N)(a),l="entries"===e||e===Symbol.iterator&&s,c="keys"===e&&s,u=i[e](...o),d=n?K:t?De:Ae;return!t&&E(a,"iterate",c?w:_),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:l?[d(e[0]),d(e[1])]:d(e),done:t}},[Symbol.iterator](){return this}}}}function ae(e){return function(...t){return"delete"!==e&&this}}function se(){const e={get(e){return G(this,e)},get size(){return Q(this)},has:X,add:ee,set:te,delete:ne,clear:re,forEach:oe(!1,!1)},t={get(e){return G(this,e,!1,!0)},get size(){return Q(this)},has:X,add:ee,set:te,delete:ne,clear:re,forEach:oe(!1,!0)},n={get(e){return G(this,e,!0)},get size(){return Q(this,!0)},has(e){return X.call(this,e,!0)},add:ae("add"),set:ae("set"),delete:ae("delete"),clear:ae("clear"),forEach:oe(!0,!1)},r={get(e){return G(this,e,!0,!0)},get size(){return Q(this,!0)},has(e){return X.call(this,e,!0)},add:ae("add"),set:ae("set"),delete:ae("delete"),clear:ae("clear"),forEach:oe(!0,!0)},o=["keys","values","entries",Symbol.iterator];return o.forEach((o=>{e[o]=ie(o,!1,!1),n[o]=ie(o,!0,!1),t[o]=ie(o,!1,!0),r[o]=ie(o,!0,!0)})),[e,n,t,r]}const[le,ce,ue,de]=se();function pe(e,t){const n=t?e?de:ue:e?ce:le;return(t,o,i)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get((0,r.RI)(n,o)&&o in t?n:t,o,i)}const fe={get:pe(!1,!1)},he={get:pe(!1,!0)},me={get:pe(!0,!1)};const ve=new WeakMap,ge=new WeakMap,ye=new WeakMap,be=new WeakMap;function _e(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function we(e){return e["__v_skip"]||!Object.isExtensible(e)?0:_e((0,r.W7)(e))}function ke(e){return Te(e)?e:xe(e,!1,q,fe,ve)}function Se(e){return xe(e,!1,Y,he,ge)}function Ce(e){return xe(e,!0,Z,me,ye)}function xe(e,t,n,o,i){if(!(0,r.Kn)(e))return e;if(e["__v_raw"]&&(!t||!e["__v_isReactive"]))return e;const a=i.get(e);if(a)return a;const s=we(e);if(0===s)return e;const l=new Proxy(e,2===s?o:n);return i.set(e,l),l}function Ie(e){return Te(e)?Ie(e["__v_raw"]):!(!e||!e["__v_isReactive"])}function Te(e){return!(!e||!e["__v_isReadonly"])}function Ee(e){return!(!e||!e["__v_isShallow"])}function Re(e){return Ie(e)||Te(e)}function Pe(e){const t=e&&e["__v_raw"];return t?Pe(t):e}function Oe(e){return(0,r.Nj)(e,"__v_skip",!0),e}const Ae=e=>(0,r.Kn)(e)?ke(e):e,De=e=>(0,r.Kn)(e)?Ce(e):e;function Ne(e){C&&b&&(e=Pe(e),R(e.dep||(e.dep=u())))}function Me(e,t){e=Pe(e),e.dep&&O(e.dep)}function Le(e){return!(!e||!0!==e.__v_isRef)}function Fe(e){return je(e,!1)}function Ue(e){return je(e,!0)}function je(e,t){return Le(e)?e:new Ve(e,t)}class Ve{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Pe(e),this._value=t?e:Ae(e)}get value(){return Ne(this),this._value}set value(e){e=this.__v_isShallow?e:Pe(e),(0,r.aU)(e,this._rawValue)&&(this._rawValue=e,this._value=this.__v_isShallow?e:Ae(e),Me(this,e))}}function He(e){Me(e,void 0)}function Be(e){return Le(e)?e.value:e}const $e={get:(e,t,n)=>Be(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return Le(o)&&!Le(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function ze(e){return Ie(e)?e:new Proxy(e,$e)}function We(e){const t=(0,r.kJ)(e)?new Array(e.length):{};for(const n in e)t[n]=Ze(e,n);return t}class qe{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}}function Ze(e,t,n){const r=e[t];return Le(r)?r:new qe(e,t,n)}class Ye{constructor(e,t,n,r){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new k(e,(()=>{this._dirty||(this._dirty=!0,Me(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!r,this["__v_isReadonly"]=n}get value(){const e=Pe(this);return Ne(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function Ke(e,t,n=!1){let o,i;const a=(0,r.mf)(e);a?(o=e,i=r.dG):(o=e.get,i=e.set);const s=new Ye(o,i,a||!i,n);return s}},3396:function(e,t,n){"use strict";n.d(t,{$d:function(){return f},Ah:function(){return Ve},Cn:function(){return Y},F4:function(){return yn},FN:function(){return jn},Fl:function(){return or},HY:function(){return Jt},Ho:function(){return bn},JJ:function(){return oe},Jd:function(){return je},Ko:function(){return Tn},LL:function(){return qt},Nv:function(){return En},P$:function(){return ve},Q2:function(){return Zt},Q6:function(){return ke},Rr:function(){return ir},U2:function(){return ye},Uk:function(){return _n},Us:function(){return Rt},WI:function(){return Rn},Wm:function(){return vn},Xn:function(){return Fe},Y3:function(){return R},Y8:function(){return fe},YP:function(){return le},ZK:function(){return a},_:function(){return mn},aZ:function(){return Se},bv:function(){return Le},dD:function(){return Z},dG:function(){return xn},f3:function(){return ie},h:function(){return lr},iD:function(){return ln},ic:function(){return Ue},j4:function(){return cn},kq:function(){return wn},l1:function(){return ar},lA:function(){return un},lR:function(){return Ht},m0:function(){return ae},mx:function(){return On},nK:function(){return we},sv:function(){return Xt},up:function(){return zt},w5:function(){return K},wF:function(){return Me},wg:function(){return nn},wy:function(){return wt},xv:function(){return Gt}});n(1703);var r=n(4870),o=n(7139);const i=[];function a(e,...t){(0,r.Jd)();const n=i.length?i[i.length-1].component:null,o=n&&n.appContext.config.warnHandler,a=s();if(o)p(o,n,11,[e+t.join(""),n&&n.proxy,a.map((({vnode:e})=>`at <${nr(n,e.type)}>`)).join("\n"),a]);else{const n=[`[Vue warn]: ${e}`,...t];a.length&&n.push("\n",...l(a)),console.warn(...n)}(0,r.lk)()}function s(){let e=i[i.length-1];if(!e)return[];const t=[];while(e){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}function l(e){const t=[];return e.forEach(((e,n)=>{t.push(...0===n?[]:["\n"],...c(e))})),t}function c({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=!!e.component&&null==e.component.parent,o=` at <${nr(e.component,e.type,r)}`,i=">"+n;return e.props?[o,...u(e.props),i]:[o+i]}function u(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach((n=>{t.push(...d(n,e[n]))})),n.length>3&&t.push(" ..."),t}function d(e,t,n){return(0,o.HD)(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):"number"===typeof t||"boolean"===typeof t||null==t?n?t:[`${e}=${t}`]:(0,r.dq)(t)?(t=d(e,(0,r.IU)(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):(0,o.mf)(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=(0,r.IU)(t),n?t:[`${e}=`,t])}function p(e,t,n,r){let o;try{o=r?e(...r):e()}catch(i){h(i,t,n)}return o}function f(e,t,n,r){if((0,o.mf)(e)){const i=p(e,t,n,r);return i&&(0,o.tI)(i)&&i.catch((e=>{h(e,t,n)})),i}const i=[];for(let o=0;o<e.length;o++)i.push(f(e[o],t,n,r));return i}function h(e,t,n,r=!0){const o=t?t.vnode:null;if(t){let r=t.parent;const o=t.proxy,i=n;while(r){const t=r.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,o,i))return;r=r.parent}const a=t.appContext.config.errorHandler;if(a)return void p(a,null,10,[e,o,i])}m(e,n,o,r)}function m(e,t,n,r=!0){console.error(e)}let v=!1,g=!1;const y=[];let b=0;const _=[];let w=null,k=0;const S=[];let C=null,x=0;const I=Promise.resolve();let T=null,E=null;function R(e){const t=T||I;return e?t.then(this?e.bind(this):e):t}function P(e){let t=b+1,n=y.length;while(t<n){const r=t+n>>>1,o=j(y[r]);o<e?t=r+1:n=r}return t}function O(e){y.length&&y.includes(e,v&&e.allowRecurse?b+1:b)||e===E||(null==e.id?y.push(e):y.splice(P(e.id),0,e),A())}function A(){v||g||(g=!0,T=I.then(V))}function D(e){const t=y.indexOf(e);t>b&&y.splice(t,1)}function N(e,t,n,r){(0,o.kJ)(e)?n.push(...e):t&&t.includes(e,e.allowRecurse?r+1:r)||n.push(e),A()}function M(e){N(e,w,_,k)}function L(e){N(e,C,S,x)}function F(e,t=null){if(_.length){for(E=t,w=[...new Set(_)],_.length=0,k=0;k<w.length;k++)w[k]();w=null,k=0,E=null,F(e,t)}}function U(e){if(S.length){const e=[...new Set(S)];if(S.length=0,C)return void C.push(...e);for(C=e,C.sort(((e,t)=>j(e)-j(t))),x=0;x<C.length;x++)C[x]();C=null,x=0}}const j=e=>null==e.id?1/0:e.id;function V(e){g=!1,v=!0,F(e),y.sort(((e,t)=>j(e)-j(t)));o.dG;try{for(b=0;b<y.length;b++){const e=y[b];e&&!1!==e.active&&p(e,null,14)}}finally{b=0,y.length=0,U(e),v=!1,T=null,(y.length||_.length||S.length)&&V(e)}}new Set;new Map;function H(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||o.kT;let i=n;const a=t.startsWith("update:"),s=a&&t.slice(7);if(s&&s in r){const e=`${"modelValue"===s?"model":s}Modifiers`,{number:t,trim:a}=r[e]||o.kT;a?i=n.map((e=>e.trim())):t&&(i=n.map(o.He))}let l;let c=r[l=(0,o.hR)(t)]||r[l=(0,o.hR)((0,o._A)(t))];!c&&a&&(c=r[l=(0,o.hR)((0,o.rs)(t))]),c&&f(c,e,6,i);const u=r[l+"Once"];if(u){if(e.emitted){if(e.emitted[l])return}else e.emitted={};e.emitted[l]=!0,f(u,e,6,i)}}function B(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(void 0!==i)return i;const a=e.emits;let s={},l=!1;if(!(0,o.mf)(e)){const r=e=>{const n=B(e,t,!0);n&&(l=!0,(0,o.l7)(s,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return a||l?((0,o.kJ)(a)?a.forEach((e=>s[e]=null)):(0,o.l7)(s,a),r.set(e,s),s):(r.set(e,null),null)}function $(e,t){return!(!e||!(0,o.F7)(t))&&(t=t.slice(2).replace(/Once$/,""),(0,o.RI)(e,t[0].toLowerCase()+t.slice(1))||(0,o.RI)(e,(0,o.rs)(t))||(0,o.RI)(e,t))}let z=null,W=null;function q(e){const t=z;return z=e,W=e&&e.type.__scopeId||null,t}function Z(e){W=e}function Y(){W=null}function K(e,t=z,n){if(!t)return e;if(e._n)return e;const r=(...n)=>{r._d&&an(-1);const o=q(t),i=e(...n);return q(o),r._d&&an(1),i};return r._n=!0,r._c=!0,r._d=!0,r}function J(e){const{type:t,vnode:n,proxy:r,withProxy:i,props:a,propsOptions:[s],slots:l,attrs:c,emit:u,render:d,renderCache:p,data:f,setupState:m,ctx:v,inheritAttrs:g}=e;let y,b;const _=q(e);try{if(4&n.shapeFlag){const e=i||r;y=kn(d.call(e,e,p,a,m,f,v)),b=c}else{const e=t;0,y=kn(e.length>1?e(a,{attrs:c,slots:l,emit:u}):e(a,null)),b=t.props?c:G(c)}}catch(k){en.length=0,h(k,e,1),y=vn(Xt)}let w=y;if(b&&!1!==g){const e=Object.keys(b),{shapeFlag:t}=w;e.length&&7&t&&(s&&e.some(o.tR)&&(b=X(b,s)),w=bn(w,b))}return n.dirs&&(w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&(w.transition=n.transition),y=w,q(_),y}const G=e=>{let t;for(const n in e)("class"===n||"style"===n||(0,o.F7)(n))&&((t||(t={}))[n]=e[n]);return t},X=(e,t)=>{const n={};for(const r in e)(0,o.tR)(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function Q(e,t,n){const{props:r,children:o,component:i}=e,{props:a,children:s,patchFlag:l}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!o&&!s||s&&s.$stable)||r!==a&&(r?!a||ee(r,a,c):!!a);if(1024&l)return!0;if(16&l)return r?ee(r,a,c):!!a;if(8&l){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(a[n]!==r[n]&&!$(c,n))return!0}}return!1}function ee(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;o<r.length;o++){const i=r[o];if(t[i]!==e[i]&&!$(n,i))return!0}return!1}function te({vnode:e,parent:t},n){while(t&&t.subTree===e)(e=t.vnode).el=n,t=t.parent}const ne=e=>e.__isSuspense;function re(e,t){t&&t.pendingBranch?(0,o.kJ)(e)?t.effects.push(...e):t.effects.push(e):L(e)}function oe(e,t){if(Un){let n=Un.provides;const r=Un.parent&&Un.parent.provides;r===n&&(n=Un.provides=Object.create(r)),n[e]=t}else 0}function ie(e,t,n=!1){const r=Un||z;if(r){const i=null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&(0,o.mf)(t)?t.call(r.proxy):t}else 0}function ae(e,t){return ce(e,null,t)}const se={};function le(e,t,n){return ce(e,t,n)}function ce(e,t,{immediate:n,deep:i,flush:a,onTrack:s,onTrigger:l}=o.kT){const c=Un;let u,d,h=!1,m=!1;if((0,r.dq)(e)?(u=()=>e.value,h=(0,r.yT)(e)):(0,r.PG)(e)?(u=()=>e,i=!0):(0,o.kJ)(e)?(m=!0,h=e.some(r.PG),u=()=>e.map((e=>(0,r.dq)(e)?e.value:(0,r.PG)(e)?pe(e):(0,o.mf)(e)?p(e,c,2):void 0))):u=(0,o.mf)(e)?t?()=>p(e,c,2):()=>{if(!c||!c.isUnmounted)return d&&d(),f(e,c,3,[v])}:o.dG,t&&i){const e=u;u=()=>pe(e())}let v=e=>{d=_.onStop=()=>{p(e,c,4)}};if(Wn)return v=o.dG,t?n&&f(t,c,3,[u(),m?[]:void 0,v]):u(),o.dG;let g=m?[]:se;const y=()=>{if(_.active)if(t){const e=_.run();(i||h||(m?e.some(((e,t)=>(0,o.aU)(e,g[t]))):(0,o.aU)(e,g)))&&(d&&d(),f(t,c,3,[e,g===se?void 0:g,v]),g=e)}else _.run()};let b;y.allowRecurse=!!t,b="sync"===a?y:"post"===a?()=>Et(y,c&&c.suspense):()=>{!c||c.isMounted?M(y):y()};const _=new r.qq(u,b);return t?n?y():g=_.run():"post"===a?Et(_.run.bind(_),c&&c.suspense):_.run(),()=>{_.stop(),c&&c.scope&&(0,o.Od)(c.scope.effects,_)}}function ue(e,t,n){const r=this.proxy,i=(0,o.HD)(e)?e.includes(".")?de(r,e):()=>r[e]:e.bind(r,r);let a;(0,o.mf)(t)?a=t:(a=t.handler,n=t);const s=Un;Vn(this);const l=ce(i,a.bind(r),n);return s?Vn(s):Hn(),l}function de(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}function pe(e,t){if(!(0,o.Kn)(e)||e["__v_skip"])return e;if(t=t||new Set,t.has(e))return e;if(t.add(e),(0,r.dq)(e))pe(e.value,t);else if((0,o.kJ)(e))for(let n=0;n<e.length;n++)pe(e[n],t);else if((0,o.DM)(e)||(0,o._N)(e))e.forEach((e=>{pe(e,t)}));else if((0,o.PO)(e))for(const n in e)pe(e[n],t);return e}function fe(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Le((()=>{e.isMounted=!0})),je((()=>{e.isUnmounting=!0})),e}const he=[Function,Array],me={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:he,onEnter:he,onAfterEnter:he,onEnterCancelled:he,onBeforeLeave:he,onLeave:he,onAfterLeave:he,onLeaveCancelled:he,onBeforeAppear:he,onAppear:he,onAfterAppear:he,onAppearCancelled:he},setup(e,{slots:t}){const n=jn(),o=fe();let i;return()=>{const a=t.default&&ke(t.default(),!0);if(!a||!a.length)return;let s=a[0];if(a.length>1){let e=!1;for(const t of a)if(t.type!==Xt){0,s=t,e=!0;break}}const l=(0,r.IU)(e),{mode:c}=l;if(o.isLeaving)return be(s);const u=_e(s);if(!u)return be(s);const d=ye(u,l,o,n);we(u,d);const p=n.subTree,f=p&&_e(p);let h=!1;const{getTransitionKey:m}=u.type;if(m){const e=m();void 0===i?i=e:e!==i&&(i=e,h=!0)}if(f&&f.type!==Xt&&(!dn(u,f)||h)){const e=ye(f,l,o,n);if(we(f,e),"out-in"===c)return o.isLeaving=!0,e.afterLeave=()=>{o.isLeaving=!1,n.update()},be(s);"in-out"===c&&u.type!==Xt&&(e.delayLeave=(e,t,n)=>{const r=ge(o,f);r[String(f.key)]=f,e._leaveCb=()=>{t(),e._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=n})}return s}}},ve=me;function ge(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function ye(e,t,n,r){const{appear:o,mode:i,persisted:a=!1,onBeforeEnter:s,onEnter:l,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:d,onLeave:p,onAfterLeave:h,onLeaveCancelled:m,onBeforeAppear:v,onAppear:g,onAfterAppear:y,onAppearCancelled:b}=t,_=String(e.key),w=ge(n,e),k=(e,t)=>{e&&f(e,r,9,t)},S={mode:i,persisted:a,beforeEnter(t){let r=s;if(!n.isMounted){if(!o)return;r=v||s}t._leaveCb&&t._leaveCb(!0);const i=w[_];i&&dn(e,i)&&i.el._leaveCb&&i.el._leaveCb(),k(r,[t])},enter(e){let t=l,r=c,i=u;if(!n.isMounted){if(!o)return;t=g||l,r=y||c,i=b||u}let a=!1;const s=e._enterCb=t=>{a||(a=!0,k(t?i:r,[e]),S.delayedLeave&&S.delayedLeave(),e._enterCb=void 0)};t?(t(e,s),t.length<=1&&s()):s()},leave(t,r){const o=String(e.key);if(t._enterCb&&t._enterCb(!0),n.isUnmounting)return r();k(d,[t]);let i=!1;const a=t._leaveCb=n=>{i||(i=!0,r(),k(n?m:h,[t]),t._leaveCb=void 0,w[o]===e&&delete w[o])};w[o]=e,p?(p(t,a),p.length<=1&&a()):a()},clone(e){return ye(e,t,n,r)}};return S}function be(e){if(xe(e))return e=bn(e),e.children=null,e}function _e(e){return xe(e)?e.children?e.children[0]:void 0:e}function we(e,t){6&e.shapeFlag&&e.component?we(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ke(e,t=!1,n){let r=[],o=0;for(let i=0;i<e.length;i++){let a=e[i];const s=null==n?a.key:String(n)+String(null!=a.key?a.key:i);a.type===Jt?(128&a.patchFlag&&o++,r=r.concat(ke(a.children,t,s))):(t||a.type!==Xt)&&r.push(null!=s?bn(a,{key:s}):a)}if(o>1)for(let i=0;i<r.length;i++)r[i].patchFlag=-2;return r}function Se(e){return(0,o.mf)(e)?{setup:e,name:e.name}:e}const Ce=e=>!!e.type.__asyncLoader;const xe=e=>e.type.__isKeepAlive;RegExp,RegExp;function Ie(e,t){return(0,o.kJ)(e)?e.some((e=>Ie(e,t))):(0,o.HD)(e)?e.split(",").includes(t):!!e.test&&e.test(t)}function Te(e,t){Re(e,"a",t)}function Ee(e,t){Re(e,"da",t)}function Re(e,t,n=Un){const r=e.__wdc||(e.__wdc=()=>{let t=n;while(t){if(t.isDeactivated)return;t=t.parent}return e()});if(De(t,r,n),n){let e=n.parent;while(e&&e.parent)xe(e.parent.vnode)&&Pe(r,t,n,e),e=e.parent}}function Pe(e,t,n,r){const i=De(t,e,r,!0);Ve((()=>{(0,o.Od)(r[t],i)}),n)}function Oe(e){let t=e.shapeFlag;256&t&&(t-=256),512&t&&(t-=512),e.shapeFlag=t}function Ae(e){return 128&e.shapeFlag?e.ssContent:e}function De(e,t,n=Un,o=!1){if(n){const i=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;(0,r.Jd)(),Vn(n);const i=f(t,n,e,o);return Hn(),(0,r.lk)(),i});return o?i.unshift(a):i.push(a),a}}const Ne=e=>(t,n=Un)=>(!Wn||"sp"===e)&&De(e,t,n),Me=Ne("bm"),Le=Ne("m"),Fe=Ne("bu"),Ue=Ne("u"),je=Ne("bum"),Ve=Ne("um"),He=Ne("sp"),Be=Ne("rtg"),$e=Ne("rtc");function ze(e,t=Un){De("ec",e,t)}let We=!0;function qe(e){const t=Je(e),n=e.proxy,i=e.ctx;We=!1,t.beforeCreate&&Ye(t.beforeCreate,e,"bc");const{data:a,computed:s,methods:l,watch:c,provide:u,inject:d,created:p,beforeMount:f,mounted:h,beforeUpdate:m,updated:v,activated:g,deactivated:y,beforeDestroy:b,beforeUnmount:_,destroyed:w,unmounted:k,render:S,renderTracked:C,renderTriggered:x,errorCaptured:I,serverPrefetch:T,expose:E,inheritAttrs:R,components:P,directives:O,filters:A}=t,D=null;if(d&&Ze(d,i,D,e.appContext.config.unwrapInjectedRef),l)for(const r in l){const e=l[r];(0,o.mf)(e)&&(i[r]=e.bind(n))}if(a){0;const t=a.call(n,n);0,(0,o.Kn)(t)&&(e.data=(0,r.qj)(t))}if(We=!0,s)for(const r in s){const e=s[r],t=(0,o.mf)(e)?e.bind(n,n):(0,o.mf)(e.get)?e.get.bind(n,n):o.dG;0;const a=!(0,o.mf)(e)&&(0,o.mf)(e.set)?e.set.bind(n):o.dG,l=or({get:t,set:a});Object.defineProperty(i,r,{enumerable:!0,configurable:!0,get:()=>l.value,set:e=>l.value=e})}if(c)for(const r in c)Ke(c[r],i,n,r);if(u){const e=(0,o.mf)(u)?u.call(n):u;Reflect.ownKeys(e).forEach((t=>{oe(t,e[t])}))}function N(e,t){(0,o.kJ)(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(p&&Ye(p,e,"c"),N(Me,f),N(Le,h),N(Fe,m),N(Ue,v),N(Te,g),N(Ee,y),N(ze,I),N($e,C),N(Be,x),N(je,_),N(Ve,k),N(He,T),(0,o.kJ)(E))if(E.length){const t=e.exposed||(e.exposed={});E.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});S&&e.render===o.dG&&(e.render=S),null!=R&&(e.inheritAttrs=R),P&&(e.components=P),O&&(e.directives=O)}function Ze(e,t,n=o.dG,i=!1){(0,o.kJ)(e)&&(e=tt(e));for(const a in e){const n=e[a];let s;s=(0,o.Kn)(n)?"default"in n?ie(n.from||a,n.default,!0):ie(n.from||a):ie(n),(0,r.dq)(s)&&i?Object.defineProperty(t,a,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e}):t[a]=s}}function Ye(e,t,n){f((0,o.kJ)(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function Ke(e,t,n,r){const i=r.includes(".")?de(n,r):()=>n[r];if((0,o.HD)(e)){const n=t[e];(0,o.mf)(n)&&le(i,n)}else if((0,o.mf)(e))le(i,e.bind(n));else if((0,o.Kn)(e))if((0,o.kJ)(e))e.forEach((e=>Ke(e,t,n,r)));else{const r=(0,o.mf)(e.handler)?e.handler.bind(n):t[e.handler];(0,o.mf)(r)&&le(i,r,e)}else 0}function Je(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,s=i.get(t);let l;return s?l=s:o.length||n||r?(l={},o.length&&o.forEach((e=>Ge(l,e,a,!0))),Ge(l,t,a)):l=t,i.set(t,l),l}function Ge(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&Ge(e,i,n,!0),o&&o.forEach((t=>Ge(e,t,n,!0)));for(const a in t)if(r&&"expose"===a);else{const r=Xe[a]||n&&n[a];e[a]=r?r(e[a],t[a]):t[a]}return e}const Xe={data:Qe,props:rt,emits:rt,methods:rt,computed:rt,beforeCreate:nt,created:nt,beforeMount:nt,mounted:nt,beforeUpdate:nt,updated:nt,beforeDestroy:nt,beforeUnmount:nt,destroyed:nt,unmounted:nt,activated:nt,deactivated:nt,errorCaptured:nt,serverPrefetch:nt,components:rt,directives:rt,watch:ot,provide:Qe,inject:et};function Qe(e,t){return t?e?function(){return(0,o.l7)((0,o.mf)(e)?e.call(this,this):e,(0,o.mf)(t)?t.call(this,this):t)}:t:e}function et(e,t){return rt(tt(e),tt(t))}function tt(e){if((0,o.kJ)(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function nt(e,t){return e?[...new Set([].concat(e,t))]:t}function rt(e,t){return e?(0,o.l7)((0,o.l7)(Object.create(null),e),t):t}function ot(e,t){if(!e)return t;if(!t)return e;const n=(0,o.l7)(Object.create(null),e);for(const r in t)n[r]=nt(e[r],t[r]);return n}function it(e,t,n,i=!1){const a={},s={};(0,o.Nj)(s,pn,1),e.propsDefaults=Object.create(null),st(e,t,a,s);for(const r in e.propsOptions[0])r in a||(a[r]=void 0);n?e.props=i?a:(0,r.Um)(a):e.type.props?e.props=a:e.props=s,e.attrs=s}function at(e,t,n,i){const{props:a,attrs:s,vnode:{patchFlag:l}}=e,c=(0,r.IU)(a),[u]=e.propsOptions;let d=!1;if(!(i||l>0)||16&l){let r;st(e,t,a,s)&&(d=!0);for(const i in c)t&&((0,o.RI)(t,i)||(r=(0,o.rs)(i))!==i&&(0,o.RI)(t,r))||(u?!n||void 0===n[i]&&void 0===n[r]||(a[i]=lt(u,c,i,void 0,e,!0)):delete a[i]);if(s!==c)for(const e in s)t&&(0,o.RI)(t,e)||(delete s[e],d=!0)}else if(8&l){const n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let i=n[r];if($(e.emitsOptions,i))continue;const l=t[i];if(u)if((0,o.RI)(s,i))l!==s[i]&&(s[i]=l,d=!0);else{const t=(0,o._A)(i);a[t]=lt(u,c,t,l,e,!1)}else l!==s[i]&&(s[i]=l,d=!0)}}d&&(0,r.X$)(e,"set","$attrs")}function st(e,t,n,i){const[a,s]=e.propsOptions;let l,c=!1;if(t)for(let r in t){if((0,o.Gg)(r))continue;const u=t[r];let d;a&&(0,o.RI)(a,d=(0,o._A)(r))?s&&s.includes(d)?(l||(l={}))[d]=u:n[d]=u:$(e.emitsOptions,r)||r in i&&u===i[r]||(i[r]=u,c=!0)}if(s){const t=(0,r.IU)(n),i=l||o.kT;for(let r=0;r<s.length;r++){const l=s[r];n[l]=lt(a,t,l,i[l],e,!(0,o.RI)(i,l))}}return c}function lt(e,t,n,r,i,a){const s=e[n];if(null!=s){const e=(0,o.RI)(s,"default");if(e&&void 0===r){const e=s.default;if(s.type!==Function&&(0,o.mf)(e)){const{propsDefaults:o}=i;n in o?r=o[n]:(Vn(i),r=o[n]=e.call(null,t),Hn())}else r=e}s[0]&&(a&&!e?r=!1:!s[1]||""!==r&&r!==(0,o.rs)(n)||(r=!0))}return r}function ct(e,t,n=!1){const r=t.propsCache,i=r.get(e);if(i)return i;const a=e.props,s={},l=[];let c=!1;if(!(0,o.mf)(e)){const r=e=>{c=!0;const[n,r]=ct(e,t,!0);(0,o.l7)(s,n),r&&l.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!a&&!c)return r.set(e,o.Z6),o.Z6;if((0,o.kJ)(a))for(let d=0;d<a.length;d++){0;const e=(0,o._A)(a[d]);ut(e)&&(s[e]=o.kT)}else if(a){0;for(const e in a){const t=(0,o._A)(e);if(ut(t)){const n=a[e],r=s[t]=(0,o.kJ)(n)||(0,o.mf)(n)?{type:n}:n;if(r){const e=ft(Boolean,r.type),n=ft(String,r.type);r[0]=e>-1,r[1]=n<0||e<n,(e>-1||(0,o.RI)(r,"default"))&&l.push(t)}}}}const u=[s,l];return r.set(e,u),u}function ut(e){return"$"!==e[0]}function dt(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:null===e?"null":""}function pt(e,t){return dt(e)===dt(t)}function ft(e,t){return(0,o.kJ)(t)?t.findIndex((t=>pt(t,e))):(0,o.mf)(t)&&pt(t,e)?0:-1}const ht=e=>"_"===e[0]||"$stable"===e,mt=e=>(0,o.kJ)(e)?e.map(kn):[kn(e)],vt=(e,t,n)=>{const r=K(((...e)=>mt(t(...e))),n);return r._c=!1,r},gt=(e,t,n)=>{const r=e._ctx;for(const i in e){if(ht(i))continue;const n=e[i];if((0,o.mf)(n))t[i]=vt(i,n,r);else if(null!=n){0;const e=mt(n);t[i]=()=>e}}},yt=(e,t)=>{const n=mt(t);e.slots.default=()=>n},bt=(e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=(0,r.IU)(t),(0,o.Nj)(t,"_",n)):gt(t,e.slots={})}else e.slots={},t&&yt(e,t);(0,o.Nj)(e.slots,pn,1)},_t=(e,t,n)=>{const{vnode:r,slots:i}=e;let a=!0,s=o.kT;if(32&r.shapeFlag){const e=t._;e?n&&1===e?a=!1:((0,o.l7)(i,t),n||1!==e||delete i._):(a=!t.$stable,gt(t,i)),s=t}else t&&(yt(e,t),s={default:1});if(a)for(const o in i)ht(o)||o in s||delete i[o]};function wt(e,t){const n=z;if(null===n)return e;const r=Xn(n)||n.proxy,i=e.dirs||(e.dirs=[]);for(let a=0;a<t.length;a++){let[e,n,s,l=o.kT]=t[a];(0,o.mf)(e)&&(e={mounted:e,updated:e}),e.deep&&pe(n),i.push({dir:e,instance:r,value:n,oldValue:void 0,arg:s,modifiers:l})}return e}function kt(e,t,n,o){const i=e.dirs,a=t&&t.dirs;for(let s=0;s<i.length;s++){const l=i[s];a&&(l.oldValue=a[s].value);let c=l.dir[o];c&&((0,r.Jd)(),f(c,n,8,[e.el,l,e,t]),(0,r.lk)())}}function St(){return{app:null,config:{isNativeTag:o.NO,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Ct=0;function xt(e,t){return function(n,r=null){(0,o.mf)(n)||(n=Object.assign({},n)),null==r||(0,o.Kn)(r)||(r=null);const i=St(),a=new Set;let s=!1;const l=i.app={_uid:Ct++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:cr,get config(){return i.config},set config(e){0},use(e,...t){return a.has(e)||(e&&(0,o.mf)(e.install)?(a.add(e),e.install(l,...t)):(0,o.mf)(e)&&(a.add(e),e(l,...t))),l},mixin(e){return i.mixins.includes(e)||i.mixins.push(e),l},component(e,t){return t?(i.components[e]=t,l):i.components[e]},directive(e,t){return t?(i.directives[e]=t,l):i.directives[e]},mount(o,a,c){if(!s){const u=vn(n,r);return u.appContext=i,a&&t?t(u,o):e(u,o,c),s=!0,l._container=o,o.__vue_app__=l,Xn(u.component)||u.component.proxy}},unmount(){s&&(e(null,l._container),delete l._container.__vue_app__)},provide(e,t){return i.provides[e]=t,l}};return l}}function It(e,t,n,i,a=!1){if((0,o.kJ)(e))return void e.forEach(((e,r)=>It(e,t&&((0,o.kJ)(t)?t[r]:t),n,i,a)));if(Ce(i)&&!a)return;const s=4&i.shapeFlag?Xn(i.component)||i.component.proxy:i.el,l=a?null:s,{i:c,r:u}=e;const d=t&&t.r,f=c.refs===o.kT?c.refs={}:c.refs,h=c.setupState;if(null!=d&&d!==u&&((0,o.HD)(d)?(f[d]=null,(0,o.RI)(h,d)&&(h[d]=null)):(0,r.dq)(d)&&(d.value=null)),(0,o.mf)(u))p(u,c,12,[l,f]);else{const t=(0,o.HD)(u),i=(0,r.dq)(u);if(t||i){const i=()=>{if(e.f){const n=t?f[u]:u.value;a?(0,o.kJ)(n)&&(0,o.Od)(n,s):(0,o.kJ)(n)?n.includes(s)||n.push(s):t?(f[u]=[s],(0,o.RI)(h,u)&&(h[u]=f[u])):(u.value=[s],e.k&&(f[e.k]=u.value))}else t?(f[u]=l,(0,o.RI)(h,u)&&(h[u]=l)):(0,r.dq)(u)&&(u.value=l,e.k&&(f[e.k]=l))};l?(i.id=-1,Et(i,n)):i()}else 0}}function Tt(){}const Et=re;function Rt(e){return Pt(e)}function Pt(e,t){Tt();const n=(0,o.E9)();n.__VUE__=!0;const{insert:i,remove:a,patchProp:s,createElement:l,createText:c,createComment:u,setText:d,setElementText:p,parentNode:f,nextSibling:h,setScopeId:m=o.dG,cloneNode:v,insertStaticContent:g}=e,y=(e,t,n,r=null,o=null,i=null,a=!1,s=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!dn(e,t)&&(r=G(e),W(e,o,i,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:d}=t;switch(c){case Gt:b(e,t,n,r);break;case Xt:_(e,t,n,r);break;case Qt:null==e&&w(t,n,r,a);break;case Jt:A(e,t,n,r,o,i,a,s,l);break;default:1&d?C(e,t,n,r,o,i,a,s,l):6&d?N(e,t,n,r,o,i,a,s,l):(64&d||128&d)&&c.process(e,t,n,r,o,i,a,s,l,ee)}null!=u&&o&&It(u,e&&e.ref,i,t||e,!t)},b=(e,t,n,r)=>{if(null==e)i(t.el=c(t.children),n,r);else{const n=t.el=e.el;t.children!==e.children&&d(n,t.children)}},_=(e,t,n,r)=>{null==e?i(t.el=u(t.children||""),n,r):t.el=e.el},w=(e,t,n,r)=>{[e.el,e.anchor]=g(e.children,t,n,r,e.el,e.anchor)},k=({el:e,anchor:t},n,r)=>{let o;while(e&&e!==t)o=h(e),i(e,n,r),e=o;i(t,n,r)},S=({el:e,anchor:t})=>{let n;while(e&&e!==t)n=h(e),a(e),e=n;a(t)},C=(e,t,n,r,o,i,a,s,l)=>{a=a||"svg"===t.type,null==e?x(t,n,r,o,i,a,s,l):E(e,t,o,i,a,s,l)},x=(e,t,n,r,a,c,u,d)=>{let f,h;const{type:m,props:g,shapeFlag:y,transition:b,patchFlag:_,dirs:w}=e;if(e.el&&void 0!==v&&-1===_)f=e.el=v(e.el);else{if(f=e.el=l(e.type,c,g&&g.is,g),8&y?p(f,e.children):16&y&&T(e.children,f,null,r,a,c&&"foreignObject"!==m,u,d),w&&kt(e,null,r,"created"),g){for(const t in g)"value"===t||(0,o.Gg)(t)||s(f,t,null,g[t],c,e.children,r,a,K);"value"in g&&s(f,"value",null,g.value),(h=g.onVnodeBeforeMount)&&In(h,r,e)}I(f,e,e.scopeId,u,r)}w&&kt(e,null,r,"beforeMount");const k=(!a||a&&!a.pendingBranch)&&b&&!b.persisted;k&&b.beforeEnter(f),i(f,t,n),((h=g&&g.onVnodeMounted)||k||w)&&Et((()=>{h&&In(h,r,e),k&&b.enter(f),w&&kt(e,null,r,"mounted")}),a)},I=(e,t,n,r,o)=>{if(n&&m(e,n),r)for(let i=0;i<r.length;i++)m(e,r[i]);if(o){let n=o.subTree;if(t===n){const t=o.vnode;I(e,t,t.scopeId,t.slotScopeIds,o.parent)}}},T=(e,t,n,r,o,i,a,s,l=0)=>{for(let c=l;c<e.length;c++){const l=e[c]=s?Sn(e[c]):kn(e[c]);y(null,l,t,n,r,o,i,a,s)}},E=(e,t,n,r,i,a,l)=>{const c=t.el=e.el;let{patchFlag:u,dynamicChildren:d,dirs:f}=t;u|=16&e.patchFlag;const h=e.props||o.kT,m=t.props||o.kT;let v;n&&Ot(n,!1),(v=m.onVnodeBeforeUpdate)&&In(v,n,t,e),f&&kt(t,e,n,"beforeUpdate"),n&&Ot(n,!0);const g=i&&"foreignObject"!==t.type;if(d?R(e.dynamicChildren,d,c,n,r,g,a):l||H(e,t,c,null,n,r,g,a,!1),u>0){if(16&u)P(c,t,h,m,n,r,i);else if(2&u&&h.class!==m.class&&s(c,"class",null,m.class,i),4&u&&s(c,"style",h.style,m.style,i),8&u){const o=t.dynamicProps;for(let t=0;t<o.length;t++){const a=o[t],l=h[a],u=m[a];u===l&&"value"!==a||s(c,a,l,u,i,e.children,n,r,K)}}1&u&&e.children!==t.children&&p(c,t.children)}else l||null!=d||P(c,t,h,m,n,r,i);((v=m.onVnodeUpdated)||f)&&Et((()=>{v&&In(v,n,t,e),f&&kt(t,e,n,"updated")}),r)},R=(e,t,n,r,o,i,a)=>{for(let s=0;s<t.length;s++){const l=e[s],c=t[s],u=l.el&&(l.type===Jt||!dn(l,c)||70&l.shapeFlag)?f(l.el):n;y(l,c,u,null,r,o,i,a,!0)}},P=(e,t,n,r,i,a,l)=>{if(n!==r){for(const c in r){if((0,o.Gg)(c))continue;const u=r[c],d=n[c];u!==d&&"value"!==c&&s(e,c,d,u,l,t.children,i,a,K)}if(n!==o.kT)for(const c in n)(0,o.Gg)(c)||c in r||s(e,c,n[c],null,l,t.children,i,a,K);"value"in r&&s(e,"value",n.value,r.value)}},A=(e,t,n,r,o,a,s,l,u)=>{const d=t.el=e?e.el:c(""),p=t.anchor=e?e.anchor:c("");let{patchFlag:f,dynamicChildren:h,slotScopeIds:m}=t;m&&(l=l?l.concat(m):m),null==e?(i(d,n,r),i(p,n,r),T(t.children,n,p,o,a,s,l,u)):f>0&&64&f&&h&&e.dynamicChildren?(R(e.dynamicChildren,h,n,o,a,s,l),(null!=t.key||o&&t===o.subTree)&&At(e,t,!0)):H(e,t,n,p,o,a,s,l,u)},N=(e,t,n,r,o,i,a,s,l)=>{t.slotScopeIds=s,null==e?512&t.shapeFlag?o.ctx.activate(t,n,r,a,l):M(t,n,r,o,i,a,l):L(e,t,l)},M=(e,t,n,r,o,i,a)=>{const s=e.component=Fn(e,r,o);if(xe(e)&&(s.ctx.renderer=ee),qn(s),s.asyncDep){if(o&&o.registerDep(s,j),!e.el){const e=s.subTree=vn(Xt);_(null,e,t,n)}}else j(s,e,t,n,o,i,a)},L=(e,t,n)=>{const r=t.component=e.component;if(Q(e,t,n)){if(r.asyncDep&&!r.asyncResolved)return void V(r,t,n);r.next=t,D(r.update),r.update()}else t.component=e.component,t.el=e.el,r.vnode=t},j=(e,t,n,i,a,s,l)=>{const c=()=>{if(e.isMounted){let t,{next:n,bu:r,u:i,parent:c,vnode:u}=e,d=n;0,Ot(e,!1),n?(n.el=u.el,V(e,n,l)):n=u,r&&(0,o.ir)(r),(t=n.props&&n.props.onVnodeBeforeUpdate)&&In(t,c,n,u),Ot(e,!0);const p=J(e);0;const h=e.subTree;e.subTree=p,y(h,p,f(h.el),G(h),e,a,s),n.el=p.el,null===d&&te(e,p.el),i&&Et(i,a),(t=n.props&&n.props.onVnodeUpdated)&&Et((()=>In(t,c,n,u)),a)}else{let r;const{el:l,props:c}=t,{bm:u,m:d,parent:p}=e,f=Ce(t);if(Ot(e,!1),u&&(0,o.ir)(u),!f&&(r=c&&c.onVnodeBeforeMount)&&In(r,p,t),Ot(e,!0),l&&re){const n=()=>{e.subTree=J(e),re(l,e.subTree,e,a,null)};f?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{0;const r=e.subTree=J(e);0,y(null,r,n,i,e,a,s),t.el=r.el}if(d&&Et(d,a),!f&&(r=c&&c.onVnodeMounted)){const e=t;Et((()=>In(r,p,e)),a)}256&t.shapeFlag&&e.a&&Et(e.a,a),e.isMounted=!0,t=n=i=null}},u=e.effect=new r.qq(c,(()=>O(e.update)),e.scope),d=e.update=u.run.bind(u);d.id=e.uid,Ot(e,!0),d()},V=(e,t,n)=>{t.component=e;const o=e.vnode.props;e.vnode=t,e.next=null,at(e,t.props,o,n),_t(e,t.children,n),(0,r.Jd)(),F(void 0,e.update),(0,r.lk)()},H=(e,t,n,r,o,i,a,s,l=!1)=>{const c=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:f,shapeFlag:h}=t;if(f>0){if(128&f)return void $(c,d,n,r,o,i,a,s,l);if(256&f)return void B(c,d,n,r,o,i,a,s,l)}8&h?(16&u&&K(c,o,i),d!==c&&p(n,d)):16&u?16&h?$(c,d,n,r,o,i,a,s,l):K(c,o,i,!0):(8&u&&p(n,""),16&h&&T(d,n,r,o,i,a,s,l))},B=(e,t,n,r,i,a,s,l,c)=>{e=e||o.Z6,t=t||o.Z6;const u=e.length,d=t.length,p=Math.min(u,d);let f;for(f=0;f<p;f++){const r=t[f]=c?Sn(t[f]):kn(t[f]);y(e[f],r,n,null,i,a,s,l,c)}u>d?K(e,i,a,!0,!1,p):T(t,n,r,i,a,s,l,c,p)},$=(e,t,n,r,i,a,s,l,c)=>{let u=0;const d=t.length;let p=e.length-1,f=d-1;while(u<=p&&u<=f){const r=e[u],o=t[u]=c?Sn(t[u]):kn(t[u]);if(!dn(r,o))break;y(r,o,n,null,i,a,s,l,c),u++}while(u<=p&&u<=f){const r=e[p],o=t[f]=c?Sn(t[f]):kn(t[f]);if(!dn(r,o))break;y(r,o,n,null,i,a,s,l,c),p--,f--}if(u>p){if(u<=f){const e=f+1,o=e<d?t[e].el:r;while(u<=f)y(null,t[u]=c?Sn(t[u]):kn(t[u]),n,o,i,a,s,l,c),u++}}else if(u>f)while(u<=p)W(e[u],i,a,!0),u++;else{const h=u,m=u,v=new Map;for(u=m;u<=f;u++){const e=t[u]=c?Sn(t[u]):kn(t[u]);null!=e.key&&v.set(e.key,u)}let g,b=0;const _=f-m+1;let w=!1,k=0;const S=new Array(_);for(u=0;u<_;u++)S[u]=0;for(u=h;u<=p;u++){const r=e[u];if(b>=_){W(r,i,a,!0);continue}let o;if(null!=r.key)o=v.get(r.key);else for(g=m;g<=f;g++)if(0===S[g-m]&&dn(r,t[g])){o=g;break}void 0===o?W(r,i,a,!0):(S[o-m]=u+1,o>=k?k=o:w=!0,y(r,t[o],n,null,i,a,s,l,c),b++)}const C=w?Dt(S):o.Z6;for(g=C.length-1,u=_-1;u>=0;u--){const e=m+u,o=t[e],p=e+1<d?t[e+1].el:r;0===S[u]?y(null,o,n,p,i,a,s,l,c):w&&(g<0||u!==C[g]?z(o,n,p,2):g--)}}},z=(e,t,n,r,o=null)=>{const{el:a,type:s,transition:l,children:c,shapeFlag:u}=e;if(6&u)return void z(e.component.subTree,t,n,r);if(128&u)return void e.suspense.move(t,n,r);if(64&u)return void s.move(e,t,n,ee);if(s===Jt){i(a,t,n);for(let e=0;e<c.length;e++)z(c[e],t,n,r);return void i(e.anchor,t,n)}if(s===Qt)return void k(e,t,n);const d=2!==r&&1&u&&l;if(d)if(0===r)l.beforeEnter(a),i(a,t,n),Et((()=>l.enter(a)),o);else{const{leave:e,delayLeave:r,afterLeave:o}=l,s=()=>i(a,t,n),c=()=>{e(a,(()=>{s(),o&&o()}))};r?r(a,s,c):c()}else i(a,t,n)},W=(e,t,n,r=!1,o=!1)=>{const{type:i,props:a,ref:s,children:l,dynamicChildren:c,shapeFlag:u,patchFlag:d,dirs:p}=e;if(null!=s&&It(s,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const f=1&u&&p,h=!Ce(e);let m;if(h&&(m=a&&a.onVnodeBeforeUnmount)&&In(m,t,e),6&u)Y(e.component,n,r);else{if(128&u)return void e.suspense.unmount(n,r);f&&kt(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,o,ee,r):c&&(i!==Jt||d>0&&64&d)?K(c,t,n,!1,!0):(i===Jt&&384&d||!o&&16&u)&&K(l,t,n),r&&q(e)}(h&&(m=a&&a.onVnodeUnmounted)||f)&&Et((()=>{m&&In(m,t,e),f&&kt(e,null,t,"unmounted")}),n)},q=e=>{const{type:t,el:n,anchor:r,transition:o}=e;if(t===Jt)return void Z(n,r);if(t===Qt)return void S(e);const i=()=>{a(n),o&&!o.persisted&&o.afterLeave&&o.afterLeave()};if(1&e.shapeFlag&&o&&!o.persisted){const{leave:t,delayLeave:r}=o,a=()=>t(n,i);r?r(e.el,i,a):a()}else i()},Z=(e,t)=>{let n;while(e!==t)n=h(e),a(e),e=n;a(t)},Y=(e,t,n)=>{const{bum:r,scope:i,update:a,subTree:s,um:l}=e;r&&(0,o.ir)(r),i.stop(),a&&(a.active=!1,W(s,e,t,n)),l&&Et(l,t),Et((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},K=(e,t,n,r=!1,o=!1,i=0)=>{for(let a=i;a<e.length;a++)W(e[a],t,n,r,o)},G=e=>6&e.shapeFlag?G(e.component.subTree):128&e.shapeFlag?e.suspense.next():h(e.anchor||e.el),X=(e,t,n)=>{null==e?t._vnode&&W(t._vnode,null,null,!0):y(t._vnode||null,e,t,null,null,null,n),U(),t._vnode=e},ee={p:y,um:W,m:z,r:q,mt:M,mc:T,pc:H,pbc:R,n:G,o:e};let ne,re;return t&&([ne,re]=t(ee)),{render:X,hydrate:ne,createApp:xt(X,ne)}}function Ot({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function At(e,t,n=!1){const r=e.children,i=t.children;if((0,o.kJ)(r)&&(0,o.kJ)(i))for(let o=0;o<r.length;o++){const e=r[o];let t=i[o];1&t.shapeFlag&&!t.dynamicChildren&&((t.patchFlag<=0||32===t.patchFlag)&&(t=i[o]=Sn(i[o]),t.el=e.el),n||At(e,t))}}function Dt(e){const t=e.slice(),n=[0];let r,o,i,a,s;const l=e.length;for(r=0;r<l;r++){const l=e[r];if(0!==l){if(o=n[n.length-1],e[o]<l){t[r]=o,n.push(r);continue}i=0,a=n.length-1;while(i<a)s=i+a>>1,e[n[s]]<l?i=s+1:a=s;l<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}i=n.length,a=n[i-1];while(i-- >0)n[i]=a,a=t[a];return n}const Nt=e=>e.__isTeleport,Mt=e=>e&&(e.disabled||""===e.disabled),Lt=e=>"undefined"!==typeof SVGElement&&e instanceof SVGElement,Ft=(e,t)=>{const n=e&&e.to;if((0,o.HD)(n)){if(t){const e=t(n);return e}return null}return n},Ut={__isTeleport:!0,process(e,t,n,r,o,i,a,s,l,c){const{mc:u,pc:d,pbc:p,o:{insert:f,querySelector:h,createText:m,createComment:v}}=c,g=Mt(t.props);let{shapeFlag:y,children:b,dynamicChildren:_}=t;if(null==e){const e=t.el=m(""),c=t.anchor=m("");f(e,n,r),f(c,n,r);const d=t.target=Ft(t.props,h),p=t.targetAnchor=m("");d&&(f(p,d),a=a||Lt(d));const v=(e,t)=>{16&y&&u(b,e,t,o,i,a,s,l)};g?v(n,c):d&&v(d,p)}else{t.el=e.el;const r=t.anchor=e.anchor,u=t.target=e.target,f=t.targetAnchor=e.targetAnchor,m=Mt(e.props),v=m?n:u,y=m?r:f;if(a=a||Lt(u),_?(p(e.dynamicChildren,_,v,o,i,a,s),At(e,t,!0)):l||d(e,t,v,y,o,i,a,s,!1),g)m||jt(t,n,r,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=Ft(t.props,h);e&&jt(t,e,null,c,0)}else m&&jt(t,u,f,c,1)}},remove(e,t,n,r,{um:o,o:{remove:i}},a){const{shapeFlag:s,children:l,anchor:c,targetAnchor:u,target:d,props:p}=e;if(d&&i(u),(a||!Mt(p))&&(i(c),16&s))for(let f=0;f<l.length;f++){const e=l[f];o(e,t,n,!0,!!e.dynamicChildren)}},move:jt,hydrate:Vt};function jt(e,t,n,{o:{insert:r},m:o},i=2){0===i&&r(e.targetAnchor,t,n);const{el:a,anchor:s,shapeFlag:l,children:c,props:u}=e,d=2===i;if(d&&r(a,t,n),(!d||Mt(u))&&16&l)for(let p=0;p<c.length;p++)o(c[p],t,n,2);d&&r(s,t,n)}function Vt(e,t,n,r,o,i,{o:{nextSibling:a,parentNode:s,querySelector:l}},c){const u=t.target=Ft(t.props,l);if(u){const l=u._lpa||u.firstChild;16&t.shapeFlag&&(Mt(t.props)?(t.anchor=c(a(e),t,s(e),n,r,o,i),t.targetAnchor=l):(t.anchor=a(e),t.targetAnchor=c(l,t,u,n,r,o,i)),u._lpa=t.targetAnchor&&a(t.targetAnchor))}return t.anchor&&a(t.anchor)}const Ht=Ut,Bt="components",$t="directives";function zt(e,t){return Yt(Bt,e,!0,t)||e}const Wt=Symbol();function qt(e){return(0,o.HD)(e)?Yt(Bt,e,!1)||e:e||Wt}function Zt(e){return Yt($t,e)}function Yt(e,t,n=!0,r=!1){const i=z||Un;if(i){const n=i.type;if(e===Bt){const e=tr(n);if(e&&(e===t||e===(0,o._A)(t)||e===(0,o.kC)((0,o._A)(t))))return n}const a=Kt(i[e]||n[e],t)||Kt(i.appContext[e],t);return!a&&r?n:a}}function Kt(e,t){return e&&(e[t]||e[(0,o._A)(t)]||e[(0,o.kC)((0,o._A)(t))])}const Jt=Symbol(void 0),Gt=Symbol(void 0),Xt=Symbol(void 0),Qt=Symbol(void 0),en=[];let tn=null;function nn(e=!1){en.push(tn=e?null:[])}function rn(){en.pop(),tn=en[en.length-1]||null}let on=1;function an(e){on+=e}function sn(e){return e.dynamicChildren=on>0?tn||o.Z6:null,rn(),on>0&&tn&&tn.push(e),e}function ln(e,t,n,r,o,i){return sn(mn(e,t,n,r,o,i,!0))}function cn(e,t,n,r,o){return sn(vn(e,t,n,r,o,!0))}function un(e){return!!e&&!0===e.__v_isVNode}function dn(e,t){return e.type===t.type&&e.key===t.key}const pn="__vInternal",fn=({key:e})=>null!=e?e:null,hn=({ref:e,ref_key:t,ref_for:n})=>null!=e?(0,o.HD)(e)||(0,r.dq)(e)||(0,o.mf)(e)?{i:z,r:e,k:t,f:!!n}:e:null;function mn(e,t=null,n=null,r=0,i=null,a=(e===Jt?0:1),s=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&fn(t),ref:t&&hn(t),scopeId:W,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null};return l?(Cn(c,n),128&a&&e.normalize(c)):n&&(c.shapeFlag|=(0,o.HD)(n)?8:16),on>0&&!s&&tn&&(c.patchFlag>0||6&a)&&32!==c.patchFlag&&tn.push(c),c}const vn=gn;function gn(e,t=null,n=null,i=0,a=null,s=!1){if(e&&e!==Wt||(e=Xt),un(e)){const r=bn(e,t,!0);return n&&Cn(r,n),r}if(rr(e)&&(e=e.__vccOpts),t){t=yn(t);let{class:e,style:n}=t;e&&!(0,o.HD)(e)&&(t.class=(0,o.C_)(e)),(0,o.Kn)(n)&&((0,r.X3)(n)&&!(0,o.kJ)(n)&&(n=(0,o.l7)({},n)),t.style=(0,o.j5)(n))}const l=(0,o.HD)(e)?1:ne(e)?128:Nt(e)?64:(0,o.Kn)(e)?4:(0,o.mf)(e)?2:0;return mn(e,t,n,i,a,l,s,!0)}function yn(e){return e?(0,r.X3)(e)||pn in e?(0,o.l7)({},e):e:null}function bn(e,t,n=!1){const{props:r,ref:i,patchFlag:a,children:s}=e,l=t?xn(r||{},t):r,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&fn(l),ref:t&&t.ref?n&&i?(0,o.kJ)(i)?i.concat(hn(t)):[i,hn(t)]:hn(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Jt?-1===a?16:16|a:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&bn(e.ssContent),ssFallback:e.ssFallback&&bn(e.ssFallback),el:e.el,anchor:e.anchor};return c}function _n(e=" ",t=0){return vn(Gt,null,e,t)}function wn(e="",t=!1){return t?(nn(),cn(Xt,null,e)):vn(Xt,null,e)}function kn(e){return null==e||"boolean"===typeof e?vn(Xt):(0,o.kJ)(e)?vn(Jt,null,e.slice()):"object"===typeof e?Sn(e):vn(Gt,null,String(e))}function Sn(e){return null===e.el||e.memo?e:bn(e)}function Cn(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if((0,o.kJ)(t))n=16;else if("object"===typeof t){if(65&r){const n=t.default;return void(n&&(n._c&&(n._d=!1),Cn(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||pn in t?3===r&&z&&(1===z.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=z}}else(0,o.mf)(t)?(t={default:t,_ctx:z},n=32):(t=String(t),64&r?(n=16,t=[_n(t)]):n=8);e.children=t,e.shapeFlag|=n}function xn(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const e in r)if("class"===e)t.class!==r.class&&(t.class=(0,o.C_)([t.class,r.class]));else if("style"===e)t.style=(0,o.j5)([t.style,r.style]);else if((0,o.F7)(e)){const n=t[e],i=r[e];!i||n===i||(0,o.kJ)(n)&&n.includes(i)||(t[e]=n?[].concat(n,i):i)}else""!==e&&(t[e]=r[e])}return t}function In(e,t,n,r=null){f(e,t,7,[n,r])}function Tn(e,t,n,r){let i;const a=n&&n[r];if((0,o.kJ)(e)||(0,o.HD)(e)){i=new Array(e.length);for(let n=0,r=e.length;n<r;n++)i[n]=t(e[n],n,void 0,a&&a[n])}else if("number"===typeof e){0,i=new Array(e);for(let n=0;n<e;n++)i[n]=t(n+1,n,void 0,a&&a[n])}else if((0,o.Kn)(e))if(e[Symbol.iterator])i=Array.from(e,((e,n)=>t(e,n,void 0,a&&a[n])));else{const n=Object.keys(e);i=new Array(n.length);for(let r=0,o=n.length;r<o;r++){const o=n[r];i[r]=t(e[o],o,r,a&&a[r])}}else i=[];return n&&(n[r]=i),i}function En(e,t){for(let n=0;n<t.length;n++){const r=t[n];if((0,o.kJ)(r))for(let t=0;t<r.length;t++)e[r[t].name]=r[t].fn;else r&&(e[r.name]=r.fn)}return e}function Rn(e,t,n={},r,o){if(z.isCE||z.parent&&Ce(z.parent)&&z.parent.isCE)return vn("slot","default"===t?null:{name:t},r&&r());let i=e[t];i&&i._c&&(i._d=!1),nn();const a=i&&Pn(i(n)),s=cn(Jt,{key:n.key||`_${t}`},a||(r?r():[]),a&&1===e._?64:-2);return!o&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),i&&i._c&&(i._d=!0),s}function Pn(e){return e.some((e=>!un(e)||e.type!==Xt&&!(e.type===Jt&&!Pn(e.children))))?e:null}function On(e){const t={};for(const n in e)t[(0,o.hR)(n)]=e[n];return t}const An=e=>e?Bn(e)?Xn(e)||e.proxy:An(e.parent):null,Dn=(0,o.l7)(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=>An(e.parent),$root:e=>An(e.root),$emit:e=>e.emit,$options:e=>Je(e),$forceUpdate:e=>()=>O(e.update),$nextTick:e=>R.bind(e.proxy),$watch:e=>ue.bind(e)}),Nn={get({_:e},t){const{ctx:n,setupState:i,data:a,props:s,accessCache:l,type:c,appContext:u}=e;let d;if("$"!==t[0]){const r=l[t];if(void 0!==r)switch(r){case 1:return i[t];case 2:return a[t];case 4:return n[t];case 3:return s[t]}else{if(i!==o.kT&&(0,o.RI)(i,t))return l[t]=1,i[t];if(a!==o.kT&&(0,o.RI)(a,t))return l[t]=2,a[t];if((d=e.propsOptions[0])&&(0,o.RI)(d,t))return l[t]=3,s[t];if(n!==o.kT&&(0,o.RI)(n,t))return l[t]=4,n[t];We&&(l[t]=0)}}const p=Dn[t];let f,h;return p?("$attrs"===t&&(0,r.j)(e,"get",t),p(e)):(f=c.__cssModules)&&(f=f[t])?f:n!==o.kT&&(0,o.RI)(n,t)?(l[t]=4,n[t]):(h=u.config.globalProperties,(0,o.RI)(h,t)?h[t]:void 0)},set({_:e},t,n){const{data:r,setupState:i,ctx:a}=e;return i!==o.kT&&(0,o.RI)(i,t)?(i[t]=n,!0):r!==o.kT&&(0,o.RI)(r,t)?(r[t]=n,!0):!(0,o.RI)(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(a[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:a}},s){let l;return!!n[s]||e!==o.kT&&(0,o.RI)(e,s)||t!==o.kT&&(0,o.RI)(t,s)||(l=a[0])&&(0,o.RI)(l,s)||(0,o.RI)(r,s)||(0,o.RI)(Dn,s)||(0,o.RI)(i.config.globalProperties,s)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:(0,o.RI)(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};const Mn=St();let Ln=0;function Fn(e,t,n){const i=e.type,a=(t?t.appContext:e.appContext)||Mn,s={uid:Ln++,vnode:e,type:i,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,scope:new r.Bj(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(a.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ct(i,a),emitsOptions:B(i,a),emit:null,emitted:null,propsDefaults:o.kT,inheritAttrs:i.inheritAttrs,ctx:o.kT,data:o.kT,props:o.kT,attrs:o.kT,slots:o.kT,refs:o.kT,setupState:o.kT,setupContext:null,suspense:n,suspenseId:n?n.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 s.ctx={_:s},s.root=t?t.root:s,s.emit=H.bind(null,s),e.ce&&e.ce(s),s}let Un=null;const jn=()=>Un||z,Vn=e=>{Un=e,e.scope.on()},Hn=()=>{Un&&Un.scope.off(),Un=null};function Bn(e){return 4&e.vnode.shapeFlag}let $n,zn,Wn=!1;function qn(e,t=!1){Wn=t;const{props:n,children:r}=e.vnode,o=Bn(e);it(e,n,o,t),bt(e,r);const i=o?Zn(e,t):void 0;return Wn=!1,i}function Zn(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=(0,r.Xl)(new Proxy(e.ctx,Nn));const{setup:i}=n;if(i){const n=e.setupContext=i.length>1?Gn(e):null;Vn(e),(0,r.Jd)();const a=p(i,e,0,[e.props,n]);if((0,r.lk)(),Hn(),(0,o.tI)(a)){if(a.then(Hn,Hn),t)return a.then((n=>{Yn(e,n,t)})).catch((t=>{h(t,e,0)}));e.asyncDep=a}else Yn(e,a,t)}else Kn(e,t)}function Yn(e,t,n){(0,o.mf)(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:(0,o.Kn)(t)&&(e.setupState=(0,r.WL)(t)),Kn(e,n)}function Kn(e,t,n){const i=e.type;if(!e.render){if(!t&&$n&&!i.render){const t=i.template;if(t){0;const{isCustomElement:n,compilerOptions:r}=e.appContext.config,{delimiters:a,compilerOptions:s}=i,l=(0,o.l7)((0,o.l7)({isCustomElement:n,delimiters:a},r),s);i.render=$n(t,l)}}e.render=i.render||o.dG,zn&&zn(e)}Vn(e),(0,r.Jd)(),qe(e),(0,r.lk)(),Hn()}function Jn(e){return new Proxy(e.attrs,{get(t,n){return(0,r.j)(e,"get","$attrs"),t[n]}})}function Gn(e){const t=t=>{e.exposed=t||{}};let n;return{get attrs(){return n||(n=Jn(e))},slots:e.slots,emit:e.emit,expose:t}}function Xn(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy((0,r.WL)((0,r.Xl)(e.exposed)),{get(t,n){return n in t?t[n]:n in Dn?Dn[n](e):void 0}}))}const Qn=/(?:^|[-_])(\w)/g,er=e=>e.replace(Qn,(e=>e.toUpperCase())).replace(/[-_]/g,"");function tr(e){return(0,o.mf)(e)&&e.displayName||e.name}function nr(e,t,n=!1){let r=tr(t);if(!r&&t.__file){const e=t.__file.match(/([^/\\]+)\.\w+$/);e&&(r=e[1])}if(!r&&e&&e.parent){const n=e=>{for(const n in e)if(e[n]===t)return n};r=n(e.components||e.parent.type.components)||n(e.appContext.components)}return r?er(r):n?"App":"Anonymous"}function rr(e){return(0,o.mf)(e)&&"__vccOpts"in e}const or=(e,t)=>(0,r.Fl)(e,t,Wn);function ir(){return sr().slots}function ar(){return sr().attrs}function sr(){const e=jn();return e.setupContext||(e.setupContext=Gn(e))}function lr(e,t,n){const r=arguments.length;return 2===r?(0,o.Kn)(t)&&!(0,o.kJ)(t)?un(t)?vn(e,null,[t]):vn(e,t):vn(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&un(n)&&(n=[n]),vn(e,t,n))}Symbol("");const cr="3.2.33"},9242:function(e,t,n){"use strict";n.d(t,{D2:function(){return Se},F8:function(){return Ce},G2:function(){return ve},W3:function(){return oe},e8:function(){return he},iM:function(){return we},nr:function(){return fe},ri:function(){return Pe},sY:function(){return Re},uT:function(){return U}});var r=n(7139),o=n(3396),i=n(4870);const a="http://www.w3.org/2000/svg",s="undefined"!==typeof document?document:null,l=s&&s.createElement("template"),c={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t?s.createElementNS(a,e):s.createElement(e,n?{is:n}:void 0);return"select"===e&&r&&null!=r.multiple&&o.setAttribute("multiple",r.multiple),o},createText:e=>s.createTextNode(e),createComment:e=>s.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>s.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,n,r,o,i){const a=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling)){while(1)if(t.insertBefore(o.cloneNode(!0),n),o===i||!(o=o.nextSibling))break}else{l.innerHTML=r?`<svg>${e}</svg>`:e;const o=l.content;if(r){const e=o.firstChild;while(e.firstChild)o.appendChild(e.firstChild);o.removeChild(e)}t.insertBefore(o,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function u(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function d(e,t,n){const o=e.style,i=(0,r.HD)(n);if(n&&!i){for(const e in n)f(o,e,n[e]);if(t&&!(0,r.HD)(t))for(const e in t)null==n[e]&&f(o,e,"")}else{const r=o.display;i?t!==n&&(o.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(o.display=r)}}const p=/\s*!important$/;function f(e,t,n){if((0,r.kJ)(n))n.forEach((n=>f(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=v(e,t);p.test(n)?e.setProperty((0,r.rs)(o),n.replace(p,""),"important"):e[o]=n}}const h=["Webkit","Moz","ms"],m={};function v(e,t){const n=m[t];if(n)return n;let o=(0,r._A)(t);if("filter"!==o&&o in e)return m[t]=o;o=(0,r.kC)(o);for(let r=0;r<h.length;r++){const n=h[r]+o;if(n in e)return m[t]=n}return t}const g="http://www.w3.org/1999/xlink";function y(e,t,n,o,i){if(o&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(g,t.slice(6,t.length)):e.setAttributeNS(g,t,n);else{const o=(0,r.Pq)(t);null==n||o&&!(0,r.yA)(n)?e.removeAttribute(t):e.setAttribute(t,o?"":n)}}function b(e,t,n,o,i,a,s){if("innerHTML"===t||"textContent"===t)return o&&s(o,i,a),void(e[t]=null==n?"":n);if("value"===t&&"PROGRESS"!==e.tagName&&!e.tagName.includes("-")){e._value=n;const r=null==n?"":n;return e.value===r&&"OPTION"!==e.tagName||(e.value=r),void(null==n&&e.removeAttribute(t))}let l=!1;if(""===n||null==n){const o=typeof e[t];"boolean"===o?n=(0,r.yA)(n):null==n&&"string"===o?(n="",l=!0):"number"===o&&(n=0,l=!0)}try{e[t]=n}catch(c){0}l&&e.removeAttribute(t)}const[_,w]=(()=>{let e=Date.now,t=!1;if("undefined"!==typeof window){Date.now()>document.createEvent("Event").timeStamp&&(e=()=>performance.now());const n=navigator.userAgent.match(/firefox\/(\d+)/i);t=!!(n&&Number(n[1])<=53)}return[e,t]})();let k=0;const S=Promise.resolve(),C=()=>{k=0},x=()=>k||(S.then(C),k=_());function I(e,t,n,r){e.addEventListener(t,n,r)}function T(e,t,n,r){e.removeEventListener(t,n,r)}function E(e,t,n,r,o=null){const i=e._vei||(e._vei={}),a=i[t];if(r&&a)a.value=r;else{const[n,s]=P(t);if(r){const a=i[t]=O(r,o);I(e,n,a,s)}else a&&(T(e,n,a,s),i[t]=void 0)}}const R=/(?:Once|Passive|Capture)$/;function P(e){let t;if(R.test(e)){let n;t={};while(n=e.match(R))e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[(0,r.rs)(e.slice(2)),t]}function O(e,t){const n=e=>{const r=e.timeStamp||_();(w||r>=n.attached-1)&&(0,o.$d)(A(e,n.value),t,5,[e])};return n.value=e,n.attached=x(),n}function A(e,t){if((0,r.kJ)(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}const D=/^on[a-z]/,N=(e,t,n,o,i=!1,a,s,l,c)=>{"class"===t?u(e,o,i):"style"===t?d(e,n,o):(0,r.F7)(t)?(0,r.tR)(t)||E(e,t,n,o,s):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):M(e,t,o,i))?b(e,t,o,a,s,l,c):("true-value"===t?e._trueValue=o:"false-value"===t&&(e._falseValue=o),y(e,t,o,i))};function M(e,t,n,o){return o?"innerHTML"===t||"textContent"===t||!!(t in e&&D.test(t)&&(0,r.mf)(n)):"spellcheck"!==t&&"draggable"!==t&&"translate"!==t&&("form"!==t&&(("list"!==t||"INPUT"!==e.tagName)&&(("type"!==t||"TEXTAREA"!==e.tagName)&&((!D.test(t)||!(0,r.HD)(n))&&t in e))))}"undefined"!==typeof HTMLElement&&HTMLElement;const L="transition",F="animation",U=(e,{slots:t})=>(0,o.h)(o.P$,$(e),t);U.displayName="Transition";const j={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},V=U.props=(0,r.l7)({},o.P$.props,j),H=(e,t=[])=>{(0,r.kJ)(e)?e.forEach((e=>e(...t))):e&&e(...t)},B=e=>!!e&&((0,r.kJ)(e)?e.some((e=>e.length>1)):e.length>1);function $(e){const t={};for(const r in e)r in j||(t[r]=e[r]);if(!1===e.css)return t;const{name:n="v",type:o,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=a,appearActiveClass:u=s,appearToClass:d=l,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,m=z(i),v=m&&m[0],g=m&&m[1],{onBeforeEnter:y,onEnter:b,onEnterCancelled:_,onLeave:w,onLeaveCancelled:k,onBeforeAppear:S=y,onAppear:C=b,onAppearCancelled:x=_}=t,I=(e,t,n)=>{Z(e,t?d:l),Z(e,t?u:s),n&&n()},T=(e,t)=>{Z(e,h),Z(e,f),t&&t()},E=e=>(t,n)=>{const r=e?C:b,i=()=>I(t,e,n);H(r,[t,i]),Y((()=>{Z(t,e?c:a),q(t,e?d:l),B(r)||J(t,o,v,i)}))};return(0,r.l7)(t,{onBeforeEnter(e){H(y,[e]),q(e,a),q(e,s)},onBeforeAppear(e){H(S,[e]),q(e,c),q(e,u)},onEnter:E(!1),onAppear:E(!0),onLeave(e,t){const n=()=>T(e,t);q(e,p),ee(),q(e,f),Y((()=>{Z(e,p),q(e,h),B(w)||J(e,o,g,n)})),H(w,[e,n])},onEnterCancelled(e){I(e,!1),H(_,[e])},onAppearCancelled(e){I(e,!0),H(x,[e])},onLeaveCancelled(e){T(e),H(k,[e])}})}function z(e){if(null==e)return null;if((0,r.Kn)(e))return[W(e.enter),W(e.leave)];{const t=W(e);return[t,t]}}function W(e){const t=(0,r.He)(e);return t}function q(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e._vtc||(e._vtc=new Set)).add(t)}function Z(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function Y(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let K=0;function J(e,t,n,r){const o=e._endId=++K,i=()=>{o===e._endId&&r()};if(n)return setTimeout(i,n);const{type:a,timeout:s,propCount:l}=G(e,t);if(!a)return r();const c=a+"end";let u=0;const d=()=>{e.removeEventListener(c,p),i()},p=t=>{t.target===e&&++u>=l&&d()};setTimeout((()=>{u<l&&d()}),s+1),e.addEventListener(c,p)}function G(e,t){const n=window.getComputedStyle(e),r=e=>(n[e]||"").split(", "),o=r(L+"Delay"),i=r(L+"Duration"),a=X(o,i),s=r(F+"Delay"),l=r(F+"Duration"),c=X(s,l);let u=null,d=0,p=0;t===L?a>0&&(u=L,d=a,p=i.length):t===F?c>0&&(u=F,d=c,p=l.length):(d=Math.max(a,c),u=d>0?a>c?L:F:null,p=u?u===L?i.length:l.length:0);const f=u===L&&/\b(transform|all)(,|$)/.test(n[L+"Property"]);return{type:u,timeout:d,propCount:p,hasTransform:f}}function X(e,t){while(e.length<t.length)e=e.concat(e);return Math.max(...t.map(((t,n)=>Q(t)+Q(e[n]))))}function Q(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function ee(){return document.body.offsetHeight}const te=new WeakMap,ne=new WeakMap,re={name:"TransitionGroup",props:(0,r.l7)({},V,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=(0,o.FN)(),r=(0,o.Y8)();let a,s;return(0,o.ic)((()=>{if(!a.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!le(a[0].el,n.vnode.el,t))return;a.forEach(ie),a.forEach(ae);const r=a.filter(se);ee(),r.forEach((e=>{const n=e.el,r=n.style;q(n,t),r.transform=r.webkitTransform=r.transitionDuration="";const o=n._moveCb=e=>{e&&e.target!==n||e&&!/transform$/.test(e.propertyName)||(n.removeEventListener("transitionend",o),n._moveCb=null,Z(n,t))};n.addEventListener("transitionend",o)}))})),()=>{const l=(0,i.IU)(e),c=$(l);let u=l.tag||o.HY;a=s,s=t.default?(0,o.Q6)(t.default()):[];for(let e=0;e<s.length;e++){const t=s[e];null!=t.key&&(0,o.nK)(t,(0,o.U2)(t,c,r,n))}if(a)for(let e=0;e<a.length;e++){const t=a[e];(0,o.nK)(t,(0,o.U2)(t,c,r,n)),te.set(t,t.el.getBoundingClientRect())}return(0,o.Wm)(u,null,s)}}},oe=re;function ie(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function ae(e){ne.set(e,e.el.getBoundingClientRect())}function se(e){const t=te.get(e),n=ne.get(e),r=t.left-n.left,o=t.top-n.top;if(r||o){const t=e.el.style;return t.transform=t.webkitTransform=`translate(${r}px,${o}px)`,t.transitionDuration="0s",e}}function le(e,t,n){const r=e.cloneNode();e._vtc&&e._vtc.forEach((e=>{e.split(/\s+/).forEach((e=>e&&r.classList.remove(e)))})),n.split(/\s+/).forEach((e=>e&&r.classList.add(e))),r.style.display="none";const o=1===t.nodeType?t:t.parentNode;o.appendChild(r);const{hasTransform:i}=G(r);return o.removeChild(r),i}const ce=e=>{const t=e.props["onUpdate:modelValue"];return(0,r.kJ)(t)?e=>(0,r.ir)(t,e):t};function ue(e){e.target.composing=!0}function de(e){const t=e.target;t.composing&&(t.composing=!1,pe(t,"input"))}function pe(e,t){const n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}const fe={created(e,{modifiers:{lazy:t,trim:n,number:o}},i){e._assign=ce(i);const a=o||i.props&&"number"===i.props.type;I(e,t?"change":"input",(t=>{if(t.target.composing)return;let o=e.value;n?o=o.trim():a&&(o=(0,r.He)(o)),e._assign(o)})),n&&I(e,"change",(()=>{e.value=e.value.trim()})),t||(I(e,"compositionstart",ue),I(e,"compositionend",de),I(e,"change",de))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:i}},a){if(e._assign=ce(a),e.composing)return;if(document.activeElement===e){if(n)return;if(o&&e.value.trim()===t)return;if((i||"number"===e.type)&&(0,r.He)(e.value)===t)return}const s=null==t?"":t;e.value!==s&&(e.value=s)}},he={deep:!0,created(e,t,n){e._assign=ce(n),I(e,"change",(()=>{const t=e._modelValue,n=ge(e),o=e.checked,i=e._assign;if((0,r.kJ)(t)){const e=(0,r.hq)(t,n),a=-1!==e;if(o&&!a)i(t.concat(n));else if(!o&&a){const n=[...t];n.splice(e,1),i(n)}}else if((0,r.DM)(t)){const e=new Set(t);o?e.add(n):e.delete(n),i(e)}else i(ye(e,o))}))},mounted:me,beforeUpdate(e,t,n){e._assign=ce(n),me(e,t,n)}};function me(e,{value:t,oldValue:n},o){e._modelValue=t,(0,r.kJ)(t)?e.checked=(0,r.hq)(t,o.props.value)>-1:(0,r.DM)(t)?e.checked=t.has(o.props.value):t!==n&&(e.checked=(0,r.WV)(t,ye(e,!0)))}const ve={created(e,{value:t},n){e.checked=(0,r.WV)(t,n.props.value),e._assign=ce(n),I(e,"change",(()=>{e._assign(ge(e))}))},beforeUpdate(e,{value:t,oldValue:n},o){e._assign=ce(o),t!==n&&(e.checked=(0,r.WV)(t,o.props.value))}};function ge(e){return"_value"in e?e._value:e.value}function ye(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const be=["ctrl","shift","alt","meta"],_e={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&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>be.some((n=>e[`${n}Key`]&&!t.includes(n)))},we=(e,t)=>(n,...r)=>{for(let e=0;e<t.length;e++){const r=_e[t[e]];if(r&&r(n,t))return}return e(n,...r)},ke={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Se=(e,t)=>n=>{if(!("key"in n))return;const o=(0,r.rs)(n.key);return t.some((e=>e===o||ke[e]===o))?e(n):void 0},Ce={beforeMount(e,{value:t},{transition:n}){e._vod="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):xe(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!==!n&&(r?t?(r.beforeEnter(e),xe(e,!0),r.enter(e)):r.leave(e,(()=>{xe(e,!1)})):xe(e,t))},beforeUnmount(e,{value:t}){xe(e,t)}};function xe(e,t){e.style.display=t?e._vod:"none"}const Ie=(0,r.l7)({patchProp:N},c);let Te;function Ee(){return Te||(Te=(0,o.Us)(Ie))}const Re=(...e)=>{Ee().render(...e)},Pe=(...e)=>{const t=Ee().createApp(...e);const{mount:n}=t;return t.mount=e=>{const o=Oe(e);if(!o)return;const i=t._component;(0,r.mf)(i)||i.render||i.template||(i.template=o.innerHTML),o.innerHTML="";const a=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),a},t};function Oe(e){if((0,r.HD)(e)){const t=document.querySelector(e);return t}return e}},7139:function(e,t,n){"use strict";function r(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o<r.length;o++)n[r[o]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}n.d(t,{BF:function(){return H},C_:function(){return f},DM:function(){return D},E9:function(){return oe},F7:function(){return x},Gg:function(){return W},HD:function(){return L},He:function(){return ne},Kn:function(){return U},NO:function(){return S},Nj:function(){return te},Od:function(){return E},PO:function(){return $},Pq:function(){return s},RI:function(){return P},S0:function(){return z},W7:function(){return B},WV:function(){return v},Z6:function(){return w},_A:function(){return Y},_N:function(){return A},aU:function(){return Q},dG:function(){return k},e1:function(){return i},fY:function(){return r},hR:function(){return X},hq:function(){return g},ir:function(){return ee},j5:function(){return c},kC:function(){return G},kJ:function(){return O},kT:function(){return _},l7:function(){return T},mf:function(){return M},rs:function(){return J},tI:function(){return j},tR:function(){return I},vs:function(){return h},yA:function(){return l},yk:function(){return F},zw:function(){return y}});const o="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",i=r(o);const a="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",s=r(a);function l(e){return!!e||""===e}function c(e){if(O(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=L(r)?p(r):c(r);if(o)for(const e in o)t[e]=o[e]}return t}return L(e)||U(e)?e:void 0}const u=/;(?![^(]*\))/g,d=/:(.+)/;function p(e){const t={};return e.split(u).forEach((e=>{if(e){const n=e.split(d);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function f(e){let t="";if(L(e))t=e;else if(O(e))for(let n=0;n<e.length;n++){const r=f(e[n]);r&&(t+=r+" ")}else if(U(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function h(e){if(!e)return null;let{class:t,style:n}=e;return t&&!L(t)&&(e.class=f(t)),n&&(e.style=c(n)),e}function m(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=v(e[r],t[r]);return n}function v(e,t){if(e===t)return!0;let n=N(e),r=N(t);if(n||r)return!(!n||!r)&&e.getTime()===t.getTime();if(n=O(e),r=O(t),n||r)return!(!n||!r)&&m(e,t);if(n=U(e),r=U(t),n||r){if(!n||!r)return!1;const o=Object.keys(e).length,i=Object.keys(t).length;if(o!==i)return!1;for(const n in e){const r=e.hasOwnProperty(n),o=t.hasOwnProperty(n);if(r&&!o||!r&&o||!v(e[n],t[n]))return!1}}return String(e)===String(t)}function g(e,t){return e.findIndex((e=>v(e,t)))}const y=e=>L(e)?e:null==e?"":O(e)||U(e)&&(e.toString===V||!M(e.toString))?JSON.stringify(e,b,2):String(e),b=(e,t)=>t&&t.__v_isRef?b(e,t.value):A(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:D(t)?{[`Set(${t.size})`]:[...t.values()]}:!U(t)||O(t)||$(t)?t:String(t),_={},w=[],k=()=>{},S=()=>!1,C=/^on[^a-z]/,x=e=>C.test(e),I=e=>e.startsWith("onUpdate:"),T=Object.assign,E=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},R=Object.prototype.hasOwnProperty,P=(e,t)=>R.call(e,t),O=Array.isArray,A=e=>"[object Map]"===H(e),D=e=>"[object Set]"===H(e),N=e=>e instanceof Date,M=e=>"function"===typeof e,L=e=>"string"===typeof e,F=e=>"symbol"===typeof e,U=e=>null!==e&&"object"===typeof e,j=e=>U(e)&&M(e.then)&&M(e.catch),V=Object.prototype.toString,H=e=>V.call(e),B=e=>H(e).slice(8,-1),$=e=>"[object Object]"===H(e),z=e=>L(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,W=r(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),q=e=>{const t=Object.create(null);return n=>{const r=t[n];return r||(t[n]=e(n))}},Z=/-(\w)/g,Y=q((e=>e.replace(Z,((e,t)=>t?t.toUpperCase():"")))),K=/\B([A-Z])/g,J=q((e=>e.replace(K,"-$1").toLowerCase())),G=q((e=>e.charAt(0).toUpperCase()+e.slice(1))),X=q((e=>e?`on${G(e)}`:"")),Q=(e,t)=>!Object.is(e,t),ee=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},te=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},ne=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let re;const oe=()=>re||(re="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{})},1949:function(e,t,n){n(1703),function(t,n){e.exports=n()}(0,(function(){"use strict";var e,t;function n(t){this.name="__st"+(1e9*Math.random()>>>0)+e+"__",null==t||t.forEach(this.add,this),e+=1}Array.prototype.find||Object.defineProperty(Array.prototype,"find",{configurable:!0,writable:!0,value:function(e){if(null===this)throw new TypeError('"this" is null or not defined');var t=Object(this),n=t.length>>>0;if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var r=arguments[1],o=0;o<n;){var i=t[o];if(e.call(r,i,o,t))return i;o+=1}}}),String.prototype.startsWith||Object.defineProperty(String.prototype,"startsWith",{value:function(e,t){return this.substring(t=!t||t<0?0:+t,t+e.length)===e}}),window.WeakSet||(e=Date.now()%1e9,n.prototype.add=function(e){var t=this.name;return e[t]||Object.defineProperty(e,t,{value:!0,writable:!0}),this},n.prototype.delete=function(e){return!!e[this.name]&&!(e[this.name]=void 0)},n.prototype.has=function(e){return!!e[this.name]},t=n,Object.defineProperty(window,"WeakSet",{value:function(e){return new t(e)}})),Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(null==e)throw new TypeError("Cannot convert first argument to object");for(var t=Object(e),n=1;n<arguments.length;n++)if(null!=(r=arguments[n]))for(var r=Object(r),o=Object.keys(Object(r)),i=0,a=o.length;i<a;i++){var s=o[i],l=Object.getOwnPropertyDescriptor(r,s);null!=l&&l.enumerable&&(t[s]=r[s])}return t}});var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function i(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r}function a(e){return(e=Array.isArray(e)?e:[e]).map((function(e,t){return Object.getOwnPropertyNames(e).map((function(n){return c(n)+"["+t+"]="+(void 0===e[n]?"":c(e[n]))})).join("&")})).join("&")+(e.length?"&count="+e.length:"")}var s,l=(u.prototype.indexOf=function(e,t){for(var n=0;n<e.length;n++)if(e[n].callback===t)return n;return-1},u.prototype.on=function(e,t,n){if(void 0===n&&(n=0),this){var r=this.eventsList[e];return r||(this.eventsList[e]=[],r=this.eventsList[e]),-1!==this.indexOf(r,t)||r.push({name:e,type:n||0,callback:t}),this}},u.prototype.one=function(e,t){this.on(e,t,1)},u.prototype.remove=function(e,t){if(this){var n=this.eventsList[e];if(!n)return null;if(t)return n.length&&(t=this.indexOf(n,t),n.splice(t,1)),this;try{delete this.eventsList[e]}catch(e){}return null}},u.prototype.clear=function(){this.eventsList={}},u),c=function(e){try{return encodeURIComponent(decodeURIComponent(e))}catch(n){return e}};function u(){var e=this;this.emit=function(t,n){if(e){var r;if(null!=(o=e.eventsList[t])&&o.length)for(var o=o.slice(),i=0;i<o.length;i++){r=o[i];try{var a=r.callback.apply(e,[n]);if(1===r.type&&e.remove(t,r.callback),!1===a)break}catch(t){throw t}}return e}},this.eventsList={}}function d(e,t){return"number"==typeof e||"string"==typeof e?e:t?s.string:s.number}function p(e,t){return"string"==typeof e?e.split("?")[t?1:0]||"":e}function f(e){return"string"==typeof e&&e.startsWith("//")?"undefined"!=typeof location&&"https:"===location.protocol:/^https/.test(e)}function h(e){return y.some((function(t){return-1!==e.indexOf(t)}))}(et=s=s||{})[et.number=-1]="number",et.string="";var m,v,g,y=["application/octet-stream","application/xhtml+xml","application/xml","application/pdf","application/pkcs12","application/javascript","application/ecmascript","application/vnd.mspowerpoint","application/ogg","text/css","text/javascript","image","audio","video"],b=["ret","retcode","code","errcode"],_=function(e,t,n){var r;try{if("function"==typeof(null==t?void 0:t.retCodeHandler)){var o=t.retCodeHandler(e,null==n?void 0:n.url,null==n?void 0:n.ctx)||{};return{code:void 0===(i=o.code)?"unknown":i,isErr:o.isErr}}"string"==typeof e&&(e=JSON.parse(e)),"function"==typeof(null===(r=null==t?void 0:t.ret)||void 0===r?void 0:r.join)&&(b=[].concat(t.ret.map((function(e){return e.toLowerCase()}))));var i,a=Object.getOwnPropertyNames(e).filter((function(e){return-1!==b.indexOf(e.toLowerCase())}));return a.length?{code:""+(i=Number(e[a[0]])),isErr:0!==i}:{code:"unknown",isErr:!1}}catch(e){return{code:"unknown",isErr:!1}}},w=function(e){if("string"==typeof e)return e;try{return(JSON.stringify(e,(t=[],n=[],function(e,r){if(r instanceof Error)return"Error.message: "+r.message+" \n Error.stack: "+r.stack;if("object"==typeof r&&null!==r){var o=t.indexOf(r);if(-1!==o)return"[Circular "+n[o]+"]";t.push(r),n.push(e||"root")}return r}),4)||"undefined").replace(/"/gim,"")}catch(e){return"error happen when aegis stringify: \n "+e.message+" \n "+e.stack}var t,n},k=function(e,t){void 0===t&&(t=3);var n,r,o,i="";return Array.isArray(e)?(i+="[",n=e.length,e.forEach((function(e,r){i+="object"==typeof e&&1<t?k(e,t-1):C(e),i+=r===n-1?"":","})),i+="]"):e instanceof Object?(i="{",r=Object.keys(e),o=r.length,r.forEach((function(n,a){"object"==typeof e[n]&&1<t?i+='"'+n+'":'+k(e[n],t-1):i+=S(n,e[n]),i+=a===o-1||a<o-1&&void 0===e[r[a+1]]?"":","})),i+="}"):i+=e,i},S=function(e,t){var n=typeof t,r="";return"string"==n||"object"==n?r+='"'+e+'":"'+t+'"':"function"==typeof t?r+='"'+e+'":"function '+t.name+'"':"symbol"==typeof t?r+='"'+e+'":"symbol"':"number"!=typeof t&&"boolean"!=n||(r+='"'+e+'": '+t),r},C=function(e){var t=typeof e;return""+("undefined"==t||"symbol"==t||"function"==t?"null":"string"==t||"object"==t?'"'+e+'"':e)},x=(E.prototype.sourceURL=function(){return this.data.responseURL},E.prototype.status=function(){return Number(this.data.status)},E.prototype.headers=function(){var e=this.data.getAllResponseHeaders().split("\n"),t={};return e.forEach((function(e){var n;e&&(e=(n=e.split(": "))[0],n=n[1].trim(),t[e]=n)})),t},E),I=(T.prototype.sourceURL=function(){return this.data.url},T.prototype.status=function(){return Number(this.data.status)},T.prototype.headers=function(){var e={};return this.data.headers.forEach((function(t,n){e[n]=t})),e},T);function T(e,t){this.type="fetch",this.data=e||{},this.data.response=t}function E(e){this.type="xhr",this.data=e}function R(e){return e.filter((function(t,n){return"static"!==t.type||!e.find((function(e,r){return t.url===e.url&&200===t.status&&n<r}))}))}function P(e){e.level===m.INFO_ALL&&(e.level=m.INFO)}function O(e){return function(t,n){e.lifeCycle.emit("modifyRequest",t);var r=e.config.modifyRequest;if("function"==typeof r)try{var o=r(t);"object"==typeof o&&"url"in o&&(t=o)}catch(t){console.error(t)}n(t)}}function A(e){return function(t,n){e.lifeCycle.emit("afterRequest",t);var r=e.config.afterRequest;"function"==typeof r&&!1===r(t)||n(t)}}function D(){}function N(e,t){Object.getOwnPropertyNames(e).forEach((function(n){"function"==typeof e[n]&&"constructor"!==n&&(t?t[n]="sendPipeline"===n?function(){return function(){}}:function(){}:e[n]=function(){})}))}function M(e){if(e.payload){var t={};return Object.keys(e).forEach((function(n){"payload"!==n&&(t[n]=e[n])})),t}return e}function L(){return void 0!==window.performance&&"function"==typeof performance.clearResourceTimings&&"function"==typeof performance.getEntriesByType&&"function"==typeof performance.now}function F(e,t){var n=function(r){"pagehide"!==r.type&&"hidden"!==document.visibilityState||(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)}function U(e){if(ae.find((function(t){return t.name===e.name})))throw new Error("name '"+e.name+"' is already in hackXHR option list");var t,n;ae.push(e),!ie&&window.XMLHttpRequest&&(ie=!0,t=window.XMLHttpRequest.prototype.send,n=window.XMLHttpRequest.prototype.open,window.XMLHttpRequest.prototype.open=function(){if(this.aegisMethod=arguments[0],this.aegisUrl=arguments[1],this.aegisXhrStartTime=Date.now(),!this.sendByAegis)for(var e=0;e<ae.length;e++){var t=ae[e];try{"function"==typeof t.open&&t.open(this)}catch(e){}}return n.apply(this,arguments)},window.XMLHttpRequest.prototype.send=function(){if(!this.sendByAegis)for(var e=0;e<ae.length;e++){var n=ae[e];try{"function"==typeof n.send&&n.send(this,arguments[0])}catch(e){}}return t.apply(this,arguments)})}function j(e){var t=ae.findIndex((function(t){return t.name===e.name}));-1!==t&&ae.splice(t,1)}(Ye=m=m||{}).INFO_ALL="-1",Ye.API_RESPONSE="1",Ye.INFO="2",Ye.ERROR="4",Ye.PROMISE_ERROR="8",Ye.AJAX_ERROR="16",Ye.SCRIPT_ERROR="32",Ye.IMAGE_ERROR="64",Ye.CSS_ERROR="128",Ye.CONSOLE_ERROR="256",Ye.MEDIA_ERROR="512",Ye.RET_ERROR="1024",Ye.REPORT="2048",Ye.PV="4096",Ye.EVENT="8192",Ye.PAGE_NOT_FOUND_ERROR="16384",(ke={})[ke.android=1]="android",ke[ke.ios=2]="ios",ke[ke.windows=3]="windows",ke[ke.macos=4]="macos",ke[ke.linux=5]="linux",ke[ke.devtools=6]="devtools",ke[ke.other=100]="other",(xe={})[xe.unknown=100]="unknown",xe[xe.wifi=1]="wifi",xe[xe.net2g=2]="net2g",xe[xe.net3g=3]="net3g",xe[xe.net4g=4]="net4g",xe[xe.net5g=5]="net5g",xe[xe.net6g=6]="net6g",(Te=v=v||{}).LOG="log",Te.SPEED="speed",Te.PERFORMANCE="performance",Te.OFFLINE="offline",Te.WHITE_LIST="whiteList",Te.VITALS="vitals",Te.PV="pv",Te.CUSTOM_PV="customPV",Te.EVENT="event",Te.CUSTOM="custom",Te.SDK_ERROR="sdkError",Te.SET_DATA="setData",(ze=g=g||{}).production="production",ze.gray="gray",ze.pre="pre",ze.daily="daily",ze.local="local",ze.test="test",ze.others="others";var V,H,B=function(e,t){return function(n,r){var o=t.logCreated;return"function"!=typeof o?(e("beforeWrite",n),r(n)):(n=n.filter((function(e){return!1!==o(e)})),e("beforeWrite",n),r(n))}},$=function(e,t){var n,r=[],o=e.config;return e.lifeCycle.on("destroy",(function(){r.length=0})),function(i,a){if(Array.isArray(i)?r=r.concat(i):r.push(i),t&&r.length>=t||e.sendNow&&0<r.length)return r=R(r),a(r.splice(0,r.length)),void(n&&clearTimeout(n));n&&clearTimeout(n),n=setTimeout((function(){n=null,0<(r=R(r)).length&&a(r.splice(0,r.length))}),o.delay)}},z=function(e,t){return Array.isArray(e)?t(e.map((function(e){return o(o({},e),{msg:"string"==typeof e.msg?e.msg:[].concat(e.msg).map(w).join(" ")})}))):t([o(o({},e),{msg:"string"==typeof e.msg?e.msg:w(e.msg)})])},W=function(e){var t,n=!1,r=!1,o=!1,i=[];return e.lifeCycle.on("onConfigChange",(function(){t&&clearTimeout(t),t=setTimeout((function(){var t,a;!o&&e.config&&(o=!0,t=e.config.whiteListUrl,(a=void 0===t?"":t)&&e.sendPipeline([function(t,o){o({url:a,type:v.WHITE_LIST,success:function(t){r=!0;try{var o=t.data||JSON.parse(t),a=o.retcode,s=o.result,l=void 0===s?{}:s;if(0===a){if(n=l.is_in_white_list,e.isWhiteList=n,l.shutdown)return void e.destroy();0<=l.rate&&l.rate<=1&&(e.config.random=l.rate,e.isGetSample=!1)}e.isWhiteList&&i.length?K(e)(i.splice(0),(function(){})):!e.isWhiteList&&i.length&&(i.length=0);var c=e.config.onWhitelist;"function"==typeof c&&c(n)}catch(t){}},fail:function(t){"403 forbidden"===t&&e.destroy(),r=!0}})}],v.WHITE_LIST)(null),o=!1)}),e.config.uin?50:500)})),e.lifeCycle.on("destroy",(function(){i.length=0})),function(t,o){var a;n||null!==(a=null===(a=e.config)||void 0===a?void 0:a.api)&&void 0!==a&&a.reportRequest?o(t.concat(i.splice(0)).map((function(e){return P(e),e}))):(t=t.filter((function(e){return e.level!==m.INFO&&e.level!==m.API_RESPONSE?(P(e),!0):(r||(i.push(e),200<=i.length&&(i.length=200)),!1)}))).length&&o(t)}},q=function(e){return setTimeout((function(){var t=e.config.pvUrl,n=void 0===t?"":t;n&&e.sendPipeline([function(t,r){r({url:n,type:v.PV,fail:function(t){"403 forbidden"===t&&e.destroy()}})}],v.PV)(null)}),100),function(e,t){t(e)}},Z=function(e){var t={};return function(n,r){var o,i;e.speedSample?(i="object"==typeof e.repeat?e.repeat:{repeat:e.repeat},o=+i.speed||+i.repeat||5,Array.isArray(n)?(i=n.filter((function(e){var n=!t[e.url]||t[e.url]<o;return t[e.url]=1+~~t[e.url],n}))).length&&r(i):(!t[n.url]||t[n.url]<o)&&(t[n.url]=1+~~t[n.url],r(n))):r(n)}},Y=function(e){var t={};return function(n,r){var o="number"==typeof e.repeat?e.repeat:5;if(0===o)return r(n);r(n.filter((function(e){return e.level!==m.ERROR&&e.level!==m.PROMISE_ERROR&&e.level!==m.AJAX_ERROR&&e.level!==m.SCRIPT_ERROR&&e.level!==m.IMAGE_ERROR&&e.level!==m.CSS_ERROR&&e.level!==m.MEDIA_ERROR||(t[e.msg]=t[e.msg]||0,t[e.msg]+=1,!(t[e.msg]>o))})))}},K=function(e){return function(t){return e.sendPipeline([function(t,n){return n({url:e.config.url||"",data:a((r=t,(Array.isArray(r)?r:[r]).map((function(e){return Object.getOwnPropertyNames(e).reduce((function(t,n){return"ctx"!==n&&(t[n]=e[n]),t}),{level:m.INFO,msg:""})})))),method:"post",contentType:"application/x-www-form-urlencoded",type:v.LOG,log:t,requestConfig:{timeout:5e3},success:function(){var r=e.config.onReport;"function"==typeof r&&t.forEach((function(e){r(e)})),"function"==typeof n&&n([])},fail:function(t){"403 forbidden"===t&&e.destroy()}});var r}],v.LOG)(t)}},J=function(e){return function(t){e.sendPipeline([function(t,n){var r=t.map((function(t){return{name:t.name,ext1:t.ext1||e.config.ext1||"",ext2:t.ext2||e.config.ext2||"",ext3:t.ext3||e.config.ext3||""}}));n({url:e.config.eventUrl+"?payload="+encodeURIComponent(JSON.stringify(r)),type:v.EVENT,log:t,fail:function(t){"403 forbidden"===t&&e.destroy()}})}],v.EVENT)(t)}},G=function(e){return function(t){return e.sendPipeline([function(t,n){n({url:e.config.customTimeUrl+"?payload="+encodeURIComponent(JSON.stringify({custom:t})),type:v.CUSTOM,log:t,fail:function(t){"403 forbidden"===t&&e.destroy()}})}],v.CUSTOM)(t)}},X=function(e){if(!e||!e.reduce||!e.length)throw new TypeError("createPipeline need at least one function param");return 1===e.length?function(t,n){e[0](t,n||D)}:e.reduce((function(e,t){return function(n,r){return void 0===r&&(r=D),e(n,(function(e){return null==t?void 0:t(e,r)}))}}))},Q=(Object.defineProperty(de.prototype,"__version__",{get:function(){return console.warn("__version__ has discard, please use version"),"1.35.25"},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"LogType",{get:function(){return console.warn("LogType has discard, please use logType"),m},enumerable:!1,configurable:!0}),de.prototype.init=function(e){this.setConfig(e);for(var t=0;t<de.installedPlugins.length;t++)try{de.installedPlugins[t].patch(this)}catch(e){this.sendSDKError(e)}this.lifeCycle.emit("onInited")},de.prototype.setConfig=function(e){Object.assign(this.config,e);var t=this.config,n=t.id,r=t.uin,o=t.version,i=t.ext1,a=t.ext2,s=t.ext3,l=(e=t.aid,t=t.env,void 0===t?"production":t);t=this.bean.id!==n||this.bean.uin!==r||this.bean.aid!==e;return this.bean.id=n||"",this.bean.uin=r||"",this.bean.version=o||"1.35.25",this.bean.aid=e||"",this.bean.env=function(){switch(l){case g.production:case g.gray:case g.pre:case g.daily:case g.local:case g.test:case g.others:return 1;default:return}}()?l:g.others,i&&(this.bean.ext1=encodeURIComponent(i)),a&&(this.bean.ext2=encodeURIComponent(a)),s&&(this.bean.ext3=encodeURIComponent(s)),t&&this.lifeCycle.emit("onConfigChange",this.config),this.config},de.use=function(e){-1===de.installedPlugins.indexOf(e)&&e.aegisPlugin&&de.installedPlugins.push(e)},de.unuse=function(e){e=de.installedPlugins.indexOf(e),-1!==e&&de.installedPlugins.splice(e,1)},de.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n={level:m.INFO,msg:e};1===e.length&&e[0].msg&&Object.assign(n,o({},e[0]),{level:m.INFO}),this.normalLogPipeline(n)},de.prototype.infoAll=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n={level:m.INFO_ALL,msg:e};1===e.length&&e[0].msg&&Object.assign(n,o({},e[0]),{level:m.INFO_ALL}),this.normalLogPipeline(n)},de.prototype.report=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n={level:m.REPORT,msg:e};1===e.length&&e[0].msg&&Object.assign(n,o({},e[0])),this.normalLogPipeline(n)},de.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n={level:m.ERROR,msg:e};1===e.length&&e[0].msg&&Object.assign(n,o({},e[0]),{level:m.ERROR}),this.normalLogPipeline(n)},de.prototype.speedLogPipeline=function(e){throw new Error('You need to override "speedLogPipeline" method')},de.prototype.reportPv=function(e){var t,n=this;e&&(console.warn("reportPv is deprecated, please use reportEvent"),t=""+Object.getOwnPropertyNames(this.bean).filter((function(e){return"id"!==e})).map((function(e){return e+"="+n.bean[e]})).join("&"),this.sendPipeline([function(r,o){o({url:n.config.url+"/"+e+"?"+t,addBean:!1,type:v.CUSTOM_PV,fail:function(e){"403 forbidden"===e&&n.destroy()}})}],v.CUSTOM_PV)(null))},de.prototype.reportEvent=function(e){e&&((e="string"==typeof e?{name:e,ext1:this.config.ext1||"",ext2:this.config.ext2||"",ext3:this.config.ext3||""}:e).name?this.eventPipeline(e):console.warn("reportEvent params error"))},de.prototype.reportTime=function(e,t){if("object"==typeof e)return this.reportT(e);"string"==typeof e?"number"==typeof t?t<0||6e4<t?console.warn("reportTime: duration must between 0 and 60000"):this.submitCustomTime(e,t):console.warn("reportTime: second param must be number"):console.warn("reportTime: first param must be a string")},de.prototype.reportT=function(e){var t=e.name,n=e.duration,r=e.ext1,o=void 0===r?"":r,i=e.ext2;r=void 0===i?"":i,i=e.ext3,i=void 0===i?"":i,e=e.from;if("string"==typeof t&&"number"==typeof n&&"string"==typeof o&&"string"==typeof r&&"string"==typeof i){if(!(n<0||6e4<n))return this.submitCustomTime(t,n,o,r,i,void 0===e?"":e);console.warn("reportTime: duration must between 0 and 60000")}else console.warn("reportTime: params error")},de.prototype.time=function(e){"string"==typeof e?this.timeMap[e]?console.warn("Timer "+e+" already exists"):this.timeMap[e]=Date.now():console.warn("time: first param must be a string")},de.prototype.timeEnd=function(e){"string"==typeof e?this.timeMap[e]?(this.submitCustomTime(e,Date.now()-this.timeMap[e]),delete this.timeMap[e]):console.warn("Timer "+e+" does not exist"):console.warn("timeEnd: first param must be a string")},de.prototype.submitCustomTime=function(e,t,n,r,o,i){this.customTimePipeline({name:e,duration:t,ext1:n||this.config.ext1,ext2:r||this.config.ext2,ext3:o||this.config.ext3,from:i||void 0})},de.prototype.extendBean=function(e,t){this.bean[e]=t},de.prototype.sendPipeline=function(e,t){var n,r,a,s=this;return X(i([function(e,t){if("number"!=typeof n.config.random&&(console.warn("random must in [0, 1], default is 1."),n.config.random=1),!n.isHidden||!n.isGetSample)if(n.isGetSample)n.isHidden||t(e);else{if(n.isGetSample=!0,Math.random()<n.config.random)return n.isHidden=!1,t(e);n.isHidden=!0}},(a=t,function(e,t){var n=Array.isArray(e),i=n?e:[e];r.lifeCycle.emit("beforeRequest",e);var s=r.config.beforeRequest;(i="function"==typeof s?i.map((function(e){try{var t=s({logs:e,logType:a});return(null==t?void 0:t.logType)===a&&null!=t&&t.logs?t.logs:!1!==t&&e}catch(t){return e}})).filter((function(e){return!1!==e})):i).length&&(i=function(e,t){if(!Array.isArray(e)||e.length<=1)return e;var n=[],r=[];return!(r="string"==typeof t?[t]:t)||r.length<=0||(r.forEach((function(t){e.forEach((function(e){null!=e&&e[t]&&n.push(t)}))})),0<n.length&&(e=e.map((function(e){var t={};return n.forEach((function(e){t[e]=""})),o(o({},t),e)})))),e}(i,["ext1","ext2","ext3"]),t(n?i:i[0]))})],e,[O(r=n=this),function(e,t){s.request(e,(function(){for(var n,r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];s.failRequestCount=0,t({isErr:!1,result:r,logType:null==e?void 0:e.type,logs:null==e?void 0:e.log}),null===(n=null==e?void 0:e.success)||void 0===n||n.call.apply(n,i([e],r))}),(function(){for(var n,r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];10<=++s.failRequestCount&&s.destroy(),t({isErr:!0,result:r,logType:null==e?void 0:e.type,logs:null==e?void 0:e.log}),null===(n=null==e?void 0:e.fail)||void 0===n||n.call.apply(n,i([e],r))}))},A(this)]))},de.prototype.send=function(e,t,n){var r=this;return X([O(this),function(e,o){r.request(e,(function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];o({isErr:!1,result:n,logType:e.type,logs:e.log}),null==t||t.apply(void 0,n)}),(function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];o({isErr:!0,result:t,logType:e.type,logs:e.log}),null==n||n.apply(void 0,t)}))},A(this)])(e)},de.prototype.request=function(e,t,n){throw new Error('You need to override "request" method')},de.prototype.sendSDKError=function(e){var t=this;this.sendPipeline([function(e,n){n({url:t.config.url+"?id=1085&msg[0]="+encodeURIComponent(w(e))+"&level[0]=2&from="+t.config.id+"&count=1&version="+t.config.id+"(1.35.25)",addBean:!1,method:"get",type:v.SDK_ERROR,log:e})}],v.SDK_ERROR)(e)},de.prototype.destroy=function(e){void 0===e&&(e=!1);var t,n,r=de.instances.indexOf(this);-1!==r&&de.instances.splice(r,1);for(var o=de.installedPlugins.length-1;0<=o;o--)try{de.installedPlugins[o].unpatch(this)}catch(e){this.sendSDKError(e)}if(this.lifeCycle.emit("destroy"),this.lifeCycle.clear(),e)t=this,n=Object.getOwnPropertyDescriptors(t),Object.keys(n).forEach((function(e){n[e].writable&&(t[e]=null)})),Object.setPrototypeOf(this,null);else{for(var i=this;i.constructor!==Object&&N(i,this),i=Object.getPrototypeOf(i););0===de.instances.length&&(e=Object.getPrototypeOf(this).constructor,N(e),N(de))}},de.version="1.35.25",de.instances=[],de.logType=m,de.environment=g,de.installedPlugins=[],de),ee=(ue.prototype.patch=function(e){this.canUse(e)&&this.exist(e)&&(this.instances.push(e),this.triggerInit(e),this.triggerOnNewAegis(e))},ue.prototype.unpatch=function(e){e=this.instances.indexOf(e),-1!==e&&this.instances.splice(e,1)},ue.prototype.countInstance=function(){return this.instances.length},ue.prototype.uninstall=function(){var e;null===(e=null===(e=this.option)||void 0===e?void 0:e.destroy)||void 0===e||e.apply(this)},ue.prototype.walk=function(e){var t=this;this.instances.forEach((function(n){var r=t.canUse(n);r&&e(n,r)}))},ue.prototype.canUse=function(e){return e=this.getConfig(e),!(!e||"object"!=typeof e)||!!e},ue.prototype.getConfig=function(e){return null===(e=e.config)||void 0===e?void 0:e[this.name]},ue.prototype.exist=function(e){return-1===this.instances.indexOf(e)},ue.prototype.triggerInit=function(e){var t;this.inited||(this.inited=!0,null===(t=null===(t=this.option)||void 0===t?void 0:t.init)||void 0===t||t.call(this.option,this.getConfig(e)))},ue.prototype.triggerOnNewAegis=function(e){var t;null===(t=null===(t=this.option)||void 0===t?void 0:t.onNewAegis)||void 0===t||t.call(this.option,e,this.getConfig(e))},ue),te=new ee({name:"aid",aid:"",init:function(e){try{var t=!0!==e&&e||window.localStorage.getItem("AEGIS_ID");t||(t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})),window.localStorage.setItem("AEGIS_ID",t)),this.aid=t}catch(e){}},onNewAegis:function(e){e.bean.aid=this.aid,e.config.aid=this.aid}}),ne=function(e,t){var n,r={fetch:[],static:[]},i=new FormData;return Array.isArray(e)?e.forEach((function(e){var t=M(e);r[e.type].push(t)})):(n=M(e),r[e.type].push(n)),i.append("payload",JSON.stringify(o({duration:r},t))),i},re=new ee({name:"reportAssetSpeed"}),oe=re=new ee({name:"reportAssetSpeed",collectCur:0,collectEntryType:"resource",ASSETS_INITIATOR_TYPE:["img","css","script","link","audio","video"],onNewAegis:function(e){var t=this;L()&&(this.collectSuccessLog(e),this.collectFailLog(e),performance.onresourcetimingbufferfull=function(){t.collectCur=0,performance.clearResourceTimings()})},publish:function(e){this.$walk((function(t){t.speedLogPipeline(e)}))},publishMany:function(e,t){for(var n=t.config,r=0,o=e.length;r<o;r++){var i=e[r];-1!==this.ASSETS_INITIATOR_TYPE.indexOf(i.initiatorType)&&-1===i.name.indexOf("cdn-go.cn/aegis/aegis-sdk")&&this.publish(this.generateLog(i,n))}},collectSuccessLog:function(e){var t,n,r=this;"function"==typeof window.PerformanceObserver?(this.publishMany(performance.getEntriesByType(this.collectEntryType),e),(t=new window.PerformanceObserver((function(t){r.publishMany(t.getEntries(),e)}))).observe({entryTypes:[this.collectEntryType]}),e.lifeCycle.on("destroy",(function(){0===re.countInstance()&&t.disconnect()}))):(n=setInterval((function(){var t=performance.getEntriesByType(r.collectEntryType),n=t.slice(r.collectCur);r.collectCur=t.length,r.publishMany(n,e)}),3e3),e.lifeCycle.on("destroy",(function(){0===re.countInstance()&&clearInterval(n)})))},collectFailLog:function(e){function t(e){var t,o;e&&(e=e.target||e.srcElement,t=(null==e?void 0:e.src)||(null==e?void 0:e.href),e=null==e?void 0:e.tagName,t&&"string"==typeof t&&("IMG"===e&&-1<window.location.href.indexOf(t)||(e="function"==typeof(null===(e=r.api)||void 0===e?void 0:e.resourceTypeHandler)?null===(o=r.api)||void 0===o?void 0:o.resourceTypeHandler(t):"",o=performance.getEntriesByType(n.collectEntryType).find((function(e){return e.name===t})),e={url:p(t),status:400,duration:Number(((null==o?void 0:o.duration)||0).toFixed(2)),method:"get",type:e||"static",isHttps:f(t),urlQuery:p(t,!0),domainLookup:0,connectTime:0},n.publish(e))))}var n=this,r=e.config;window.document.addEventListener("error",t,!0),e.lifeCycle.on("destroy",(function(){0===re.countInstance()&&window.document.removeEventListener("error",t,!0)}))},generateLog:function(e,t){var n,r="function"==typeof(null===(n=t.api)||void 0===n?void 0:n.resourceTypeHandler)?null===(r=t.api)||void 0===r?void 0:r.resourceTypeHandler(e.name):"";return{url:p(e.name),method:"get",duration:Number(e.duration.toFixed(2)),status:200,type:r||"static",isHttps:f(e.name),urlQuery:p(e.name,!0),domainLookup:d(e.domainLookupEnd-e.domainLookupStart),connectTime:d(e.connectEnd-e.connectStart)}},collectNotReportedLog:function(e){var t=performance.getEntriesByType(this.collectEntryType),n=t.length;"function"!=typeof window.PerformanceObserver&&this.collectCur!==n&&(t=t.slice(this.collectCur),this.collectCur=n,this.publishMany(t,e,!0))},destroy:function(){this.option.publish=function(){}}}),ie=!1,ae=[],se=!1,le=[],ce=(new ee({name:"reportApiSpeed"}),new ee({name:"reportApiSpeed",override:!1,onNewAegis:function(e){this.override||(this.override=!0,this.overrideFetch(e.config),this.overrideXhr(e.config))},overrideFetch:function(e){var t=this,n={name:this.name,then:function(n,r,o,i){var a,l,c,u;e.hostUrl&&-1<o.indexOf(e.hostUrl)||(l={url:n.url,isHttps:f(n.url),method:(null==i?void 0:i.method)||"get",duration:r,type:"fetch",status:n.status||0},"fetch"!==(u="function"==typeof(null===(a=e.api)||void 0===a?void 0:a.resourceTypeHandler)?null===(c=e.api)||void 0===c?void 0:c.resourceTypeHandler(n.url):u)&&"static"!==u&&(c=n.headers?n.headers.get("content-type"):"",u=n.ok&&"string"==typeof c&&h(c)?"static":"fetch"),"fetch"===u?n.clone().text().then((function(a){var s=null===(d=e.api)||void 0===d?void 0:d.apiDetail,c=n.status<=0||400<=n.status,u=_(a,e.api,{url:o,ctx:n}),d=u.code;u=u.isErr,s=(c?"FETCH_ERROR: "+a+" \n\n":"")+"req url: "+o+" \n \nreq method: "+((null==i?void 0:i.method)||"get")+" \n \nreq param: "+(s?k(null==i?void 0:i.body):"")+" \n \nres duration: "+r+"ms \n \nres status: "+(n.status||0)+" \n \nres retcode: "+d+"\n \nres data: "+(s?a:"");l.payload=new I(n,a),l.ret=d,l.isErr=+u,t.publishNormalLog({msg:s,level:c?m.AJAX_ERROR:u?m.RET_ERROR:m.API_RESPONSE,code:d,ctx:n})})):Object.assign(l,{type:"static",urlQuery:p(n.url,!0),domainLookup:s.number,connectTime:s.number}),t.publishSpeed(l))},catch:function(n,r,o,i){if(!(e.hostUrl&&-1<o.indexOf(e.hostUrl))){var a={url:o,isHttps:f(o),method:(null==i?void 0:i.method)||"get",duration:r,type:"fetch",status:0};throw t.publishSpeed(a),a=null===(a=e.api)||void 0===a?void 0:a.apiDetail,i="AJAX_ERROR: "+n+"\n \nres status: 0\n \nres duration: "+r+"ms\n \nreq url: "+o+"\n \nreq method: "+((null==i?void 0:i.method)||"get")+"\n \nreq param: "+(a?k(null==i?void 0:i.body):""),t.publishNormalLog({msg:i,level:m.AJAX_ERROR,code:-400,ctx:n}),n}}};this.hackFetchOptions=n,function(e){if(le.find((function(t){return t.name===e.name})))throw new Error("name '"+e.name+"' is already in hackFetch option list");var t;le.push(e),!se&&window.fetch&&(se=!0,t=window.fetch,window.fetch=function(e,n){void 0===n&&(n={});for(var r="string"==typeof e?e:e.url,o=0;o<le.length;o++){var i=le[o];try{"function"==typeof i.beforeFetch&&i.beforeFetch(r,n)}catch(e){}}var a=Date.now();return t(e,n).then((function(e){for(var t=0;t<le.length;t++){var o=le[t];try{"function"==typeof o.then&&o.then(e,Date.now()-a,r,n)}catch(e){}}return e})).catch((function(e){for(var t=0;t<le.length;t++){var o=le[t];try{"function"==typeof o.catch&&o.catch(e,Date.now()-a,r,n)}catch(e){}}throw e}))})}(this.hackFetchOptions)},getRequestType:function(e,t,n){var r,o="function"==typeof(null===(r=e.api)||void 0===r?void 0:r.resourceTypeHandler)?null===(o=e.api)||void 0===o?void 0:o.resourceTypeHandler(n):"";return"fetch"!==o&&"static"!==o&&(n=t.getResponseHeader("content-type"),o=400<=t.status||"string"!=typeof n||!h(n)?"fetch":"static"),o},overrideXhr:function(e){var t=this,n={name:this.name,send:function(n,r){var o=Date.now();n.addEventListener("loadend",(function(){var i,a=n.aegisUrl;if(a){var l=Date.now()-o,c={url:a,isHttps:f(a),status:n.status||0,method:n.aegisMethod||"get",type:"fetch",duration:l,payload:new x(n)};if("fetch"===t.getRequestType(e,n,a))try{var u=null===(i=e.api)||void 0===i?void 0:i.apiDetail,d=_(n.response,e.api,{url:a,ctx:n}),h=d.code,v=d.isErr,g="req url: "+a+" \n \nreq method: "+c.method+" \n \nreq param: "+(u?k(r):"")+" \n \nres duration: "+l+"ms \n \nres status: "+c.status+" \n \nres retcode: "+h+"\n \nres data: "+(u?k(n.response):"");c.ret=h,c.isErr=+v,t.publishNormalLog({msg:g,level:v?m.RET_ERROR:m.API_RESPONSE,code:h,ctx:n})}catch(i){c.ret="unknown"}else Object.assign(c,{type:"static",urlQuery:p(a,!0),domainLookup:s.number,connectTime:s.number});t.publishSpeed(c)}}))}};this.hackXHROptions=n,U(this.hackXHROptions)},publishSpeed:function(e){var t=this;e.url=p(e.url),this.$walk((function(n){var r=t.$getConfig(n);"fetch"===e.type&&r&&"function"==typeof r.urlHandler?n.speedLogPipeline(o(o({},e),{url:encodeURIComponent(r.urlHandler(e.url,e.payload))})):n.speedLogPipeline(e)}))},publishNormalLog:function(e){this.$walk((function(t){t.normalLogPipeline(e)}))},destroy:function(){var e,t;this.option.publishSpeed=function(){},this.option.publishNormalLog=function(){},this.option.hackXHROptions&&j(this.option.hackXHROptions),this.option.hackFetchOptions&&(e=this.option.hackFetchOptions,-1!==(t=le.findIndex((function(t){return t.name===e.name})))&&le.splice(t,1))}}));function ue(e){this.aegisPlugin=!0,this.name="",this.instances=[],this.inited=!1,e.$walk=this.walk.bind(this),e.$getConfig=this.getConfig.bind(this),this.option=e,this.name=e.name}function de(e){var t,n,r=this;this.isGetSample=!1,this.isHidden=!1,this.config={version:0,delay:1e3,onError:!0,repeat:5,random:1,aid:!0,device:!0,pagePerformance:!0,webVitals:!0,speedSample:!0,onClose:!0,hostUrl:"https://aegis.qq.com",env:"production",url:"",offlineUrl:"",whiteListUrl:"",pvUrl:"",speedUrl:"",customTimeUrl:"",performanceUrl:"",webVitalsUrl:"",eventUrl:"",setDataReportUrl:""},this.isWhiteList=!1,this.lifeCycle=new l,this.bean={},this.normalLogPipeline=X([$(this,5),z,function(e,n){var r=t.config;n(e=e.map((function(e){var t,n=r.maxLength||204800;try{if(!e.msg||e.msg.length<=n)return e;e.msg=null===(t=e.msg)||void 0===t?void 0:t.substring(0,n)}catch(t){e.msg=w(e.msg).substring(0,r.maxLength)}return e})))},Y((t=this).config),B(this.lifeCycle.emit,this.config),q(this),W(this),function(e,t){try{var n=JSON.parse(JSON.stringify(e));r.lifeCycle.emit("beforeReport",n);var o=r.config.beforeReport;(e="function"==typeof o?e.filter((function(e){return!1!==o(e)})):e).length&&t(e)}catch(e){}},K(this)]),this.eventPipeline=X([$(this,5),J(this)]),this.timeMap={},this.failRequestCount=0,this.customTimePipeline=X([$(this,5),G(this)]),this.config=(n=this.config,void 0===(e=e.hostUrl)&&(e="https://aegis.qq.com"),n.url=n.url||e+"/collect",n.offlineUrl=n.offlineUrl||e+"/offline",n.whiteListUrl=n.whiteListUrl||e+"/collect/whitelist",n.pvUrl=n.pvUrl||e+"/collect/pv",n.eventUrl=n.eventUrl||e+"/collect/events",n.speedUrl=n.speedUrl||e+"/speed",n.customTimeUrl=n.customTimeUrl||e+"/speed/custom",n.performanceUrl=n.performanceUrl||e+"/speed/performance",n.webVitalsUrl=n.webVitalsUrl||e+"/speed/webvitals",n.setDataReportUrl=n.SetDataReportUrl||e+"/speed/miniProgramData",n),de.instances.push(this)}(et=V=V||{})[et.unknown=100]="unknown",et[et.wifi=1]="wifi",et[et.net2g=2]="net2g",et[et.net3g=3]="net3g",et[et.net4g=4]="net4g",et[et.net5g=5]="net5g",et[et.net6g=6]="net6g",(Ye=H=H||{})[Ye.android=1]="android",Ye[Ye.ios=2]="ios",Ye[Ye.windows=3]="windows",Ye[Ye.macos=4]="macos",Ye[Ye.linux=5]="linux",Ye[Ye.other=100]="other";var pe,fe,he,me,ve,ge,ye,be,_e,we,ke=new ee({name:"device",onNewAegis:function(e){e.extendBean("platform",this.getPlatform()),e.extendBean("netType",V.unknown),this.getDpi(e),this.refreshNetworkTypeToBean(e)},getDpi:function(e){e.extendBean("vp",Math.round(window.innerWidth)+" * "+Math.round(window.innerHeight)),window.screen&&e.extendBean("sr",Math.round(window.screen.width)+" * "+Math.round(window.screen.height))},getPlatform:function(){var e={android:/\bAndroid\s*([^;]+)/,ios:/\b(iPad|iPhone|iPod)\b.*? OS ([\d_]+)/,windows:/\b(Windows NT)/,macos:/\b(Mac OS)/,linux:/\b(Linux)/i},t=Object.keys(e).find((function(t){return e[t].test(navigator.userAgent)}));return t?H[t]:H.other},refreshNetworkTypeToBean:function(e){var t=this,n=e.config;n&&("function"==typeof n.getNetworkType?n.getNetworkType:Se)((function(n){V[n]||(n=V.unknown),e.extendBean("netType",n),t.NetworkRefreshTimer=setTimeout((function(){t.refreshNetworkTypeToBean(e),clearTimeout(t.NetworkRefreshTimer)}),1e4)}))}}),Se=function(e){var t="",n=navigator.userAgent.match(/NetType\/(\w+)/);n?t=n[1]:navigator.connection&&(t=navigator.connection.effectiveType||navigator.connection.type),e((t=t=t||"unknown",0<=(t=String(t).toLowerCase()).indexOf("4g")?V.net4g:0<=t.indexOf("wifi")?V.wifi:0<=t.indexOf("5g")?V.net5g:0<=t.indexOf("6g")?V.net6g:0<=t.indexOf("3g")?V.net3g:0<=t.indexOf("2g")?V.net2g:V.unknown))},Ce=new ee({name:"onError"}),xe=Ce=new ee({name:"onError",onNewAegis:function(e){this.startListen(e)},startListen:function(e){var t=this,n=window.onerror;function r(e){e=e&&w(e.reason),t.publishErrorLog({msg:"PROMISE_ERROR: "+e,level:m.PROMISE_ERROR})}function o(e){if(e=(null==e?void 0:e.target)||(null==e?void 0:e.srcElement)){var n=e.src||e.href;e=e.tagName;if("string"==typeof n&&e){var r={msg:e+" load fail: "+n,level:m.INFO};switch(e.toLowerCase()){case"script":r.level=m.SCRIPT_ERROR;break;case"link":r.level=m.CSS_ERROR;break;case"img":if(-1<window.location.href.indexOf(n))return;r.level=m.IMAGE_ERROR;break;case"audio":case"video":r.level=m.MEDIA_ERROR;break;default:return}t.publishErrorLog(r)}}}window.onerror=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];t.publishErrorLog({msg:(w(e[0])||"")+" @ ("+(w(e[1])||"")+":"+(e[2]||0)+":"+(e[3]||0)+")\n \n"+w(e[4]||""),level:m.ERROR}),null==n||n.call.apply(n,i([window],e))},window.addEventListener("unhandledrejection",r),window.document.addEventListener("error",o,!0),e.lifeCycle.on("destroy",(function(){0===Ce.countInstance()&&(window.document.removeEventListener("unhandledrejection",r),window.document.removeEventListener("error",o,!0))}));var a=this,s={name:this.name,send:function(t,n){t.addEventListener("loadend",(function(){var r,o,i="";this.failType?i=this.failType:this.status?400<=this.status&&(i="error"):i="failed",e.config.hostUrl&&this.aegisUrl&&-1<this.aegisUrl.indexOf(e.config.hostUrl)||(o=null===(r=e.config.api)||void 0===r?void 0:r.apiDetail,i&&(r=t.aegisUrl,r=_(t.response,e.config.api,{url:r,ctx:t}).code,a.publishErrorLog({msg:"AJAX_ERROR: request "+i+"\n \nreq url: "+this.aegisUrl+"\n \nres status: "+(this.status||0)+"\n \nres retcode: "+r+"\n \nres duration: "+(Date.now()-t.aegisXhrStartTime)+"ms\n \nreq method: "+this.aegisMethod+"\n \nreq param: "+(o?k(n):"")+"\n \nres data: "+(o?null===(o=(o=t).responseType&&"text"!==o.responseType?"":o.responseText)||void 0===o?void 0:o.slice(0,1e3):""),level:m.AJAX_ERROR,ctx:t})))})),t.addEventListener("timeout",(function(){t.failType="timeout"})),t.addEventListener("error",(function(){t.failType="error"})),t.addEventListener("abort",(function(){t.failType="abort"}))}};this.hackXHROptions=s,U(this.hackXHROptions)},publishErrorLog:function(e){this.$walk((function(t){t.normalLogPipeline(e)}))},destroy:function(){this.option.publishErrorLog=function(){},this.option.hackXHROptions&&j(this.option.hackXHROptions)}}),Ie=(new ee({name:"pagePerformance"}),1),Te=new ee({name:"pagePerformance",onNewAegis:function(e){var t=this;if(L())if(pe)this.publish(pe,e);else try{this.getFirstScreenTiming(e,(function(n){var r,o=performance.timing;o&&(r=o.loadEventStart-o.domInteractive,pe={dnsLookup:o.domainLookupEnd-o.domainLookupStart,tcp:o.connectEnd-o.connectStart,ssl:0===o.secureConnectionStart?0:o.requestStart-o.secureConnectionStart,ttfb:o.responseStart-o.requestStart,contentDownload:o.responseEnd-o.responseStart,domParse:o.domInteractive-o.domLoading,resourceDownload:r=r<0?1070:r,firstScreenTiming:Math.floor(n)},t.publish(pe,e))}))}catch(e){}},publish:function(e,t){var n=this;t.sendPipeline([function(e,r){var o,i=[];for(o in e)i.push(o+"="+e[o]);var a=n.$getConfig(t);if(a){var s=-1===t.config.performanceUrl.indexOf("?")?"?":"&";return"function"==typeof a.urlHandler?r({url:t.config.performanceUrl+s+i.join("&")+"&from="+(encodeURIComponent(a.urlHandler())||window.location.href),beanFilter:["from"],type:v.PERFORMANCE,log:e}):r({url:t.config.performanceUrl+s+i.join("&"),type:v.PERFORMANCE,log:e})}}],v.PERFORMANCE)(e)},getFirstScreenTiming:function(e,t){e.lifeCycle.on("destroy",(function(){l&&clearTimeout(l)}));var n=["script","style","link","br"],r=[],o=this,i={},a=new MutationObserver((function(e){var t={roots:[],rootsDomNum:[],time:performance.now()};e.forEach((function(e){e&&e.addedNodes&&e.addedNodes.forEach&&e.addedNodes.forEach((function(e){1===e.nodeType&&(e.hasAttribute("AEGIS-FIRST-SCREEN-TIMING")||e.querySelector("[AEGIS-FIRST-SCREEN-TIMING]"))?(Object.prototype.hasOwnProperty.apply(i,[t.time])||(i[t.time]=[]),i[t.time].push(e)):1!==e.nodeType||-1!==n.indexOf(e.nodeName.toLocaleLowerCase())||o.isEleInArray(e,t.roots)||e.hasAttribute("AEGIS-IGNORE-FIRST-SCREEN-TIMING")||(t.roots.push(e),t.rootsDomNum.push(o.walkAndCount(e)||0))}))})),t.roots.length&&r.push(t)}));a.observe(document,{childList:!0,subtree:!0});var s=function(){var n,c=0,u=0,d=Object.keys(i).filter((function(e){return i[+e].find((function(e){return o.isInFirstScreen(e)}))}));d.length?(u=Math.max.apply(null,d),("object"!=typeof(null===(d=e.config)||void 0===d?void 0:d.pagePerformance)||null!==(n=e.config.pagePerformance)&&void 0!==n&&n.firstScreenInfo)&&(e.firstScreenInfo={element:null===(n=i[u])||void 0===n?void 0:n[0],timing:u,markDoms:i})):r.forEach((function(t){for(var n,r=0;r<t.roots.length;r++)t.rootsDomNum[r]>c&&o.isInFirstScreen(t.roots[r])&&(c=t.rootsDomNum[r],u=t.time,("object"!=typeof(null===(n=e.config)||void 0===n?void 0:n.pagePerformance)||null!==(n=e.config.pagePerformance)&&void 0!==n&&n.firstScreenInfo)&&(e.firstScreenInfo={element:t.roots[r],timing:u}))})),!u&&Ie?l=setTimeout((function(){return s()}),3e3):(a.disconnect(),null==t||t(u)),--Ie},l=setTimeout((function(){return s()}),3e3)},isEleInArray:function(e,t){return!(!e||e===document.documentElement)&&(-1!==t.indexOf(e)||this.isEleInArray(e.parentElement,t))},isInFirstScreen:function(e){if(!e||"function"!=typeof e.getBoundingClientRect)return!1;var t=e.getBoundingClientRect(),n=window.innerHeight;e=window.innerWidth;return 0<=t.left&&t.left<e&&0<=t.top&&t.top<n&&0<t.width&&0<t.height},walkAndCount:function(e){var t=0;if(e&&1===e.nodeType){t+=1;var n=e.children;if(null!=n&&n.length)for(var r=0;r<n.length;r++)t+=this.walkAndCount(n[r])}return t}});function Ee(){ve=[],he=-1,fe=null,_e(addEventListener)}function Re(e,t){fe||(fe=t,he=e,me=new Date,_e(removeEventListener),be())}function Pe(e){var t,n,r,o;function i(){Re(n,r),o()}function a(){o()}e.cancelable&&(t=(1e12<e.timeStamp?new Date:performance.now())-e.timeStamp,"pointerdown"==e.type?(n=t,r=e,o=function(){removeEventListener("pointerup",i,ge),removeEventListener("pointercancel",a,ge)},addEventListener("pointerup",i,ge),addEventListener("pointercancel",a,ge)):Re(t,e))}function Oe(e,t){return{name:e,value:void 0===t?-1:t,delta:0,entries:[],id:"v1-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12)}}function Ae(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){if("first-input"===e&&!("PerformanceEventTiming"in self))return;var n=new PerformanceObserver((function(e){return e.getEntries().map(t)}));return n.observe({type:e,buffered:!0}),n}}catch(e){}}function De(e,t){function n(r){"pagehide"!==r.type&&"hidden"!==document.visibilityState||(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))}addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)}function Ne(e){addEventListener("pageshow",(function(t){t.persisted&&e(t)}),!0)}function Me(e,t,n){var r;return function(){0<=t.value&&(n||He.has(t)||"hidden"===document.visibilityState)&&(t.delta=t.value-(r||0),!t.delta&&void 0!==r||(r=t.value,e(t)))}}function Le(){De((function(e){e=e.timeStamp,Be=e}),!0)}function Fe(){return Be<0&&((Be=self.webVitals.firstHiddenTime)===1/0&&Le(),Ne((function(){setTimeout((function(){Be="hidden"===document.visibilityState?0:1/0,Le()}),0)}))),{get timeStamp(){return Be}}}function Ue(e){var t=e.name;e=e.value;$e[t]=e}ge={passive:!0,capture:!0},ye=new Date,be=function(){var e;0<=he&&he<me-ye&&(e={entryType:"first-input",name:fe.type,target:fe.target,cancelable:fe.cancelable,startTime:fe.timeStamp,processingStart:fe.timeStamp+he},ve.forEach((function(t){t(e)})),ve=[])},_e=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,Pe,ge)}))},we="hidden"===document.visibilityState?0:1/0,addEventListener("visibilitychange",(function e(t){"hidden"===document.visibilityState&&(we=t.timeStamp,removeEventListener("visibilitychange",e,!0))}),!0),Ee(),self.webVitals={firstInputPolyfill:function(e){ve.push(e),be()},resetFirstInputPolyfill:Ee,get firstHiddenTime(){return we}};var je,Ve,He=new("function"==typeof WeakSet?WeakSet:Set),Be=-1,$e=(new ee({name:"webVitals"}),{FCP:-1,LCP:-1,FID:-1,CLS:-1}),ze=new ee({name:"webVitals",onNewAegis:function(e){if(L()&&"function"==typeof window.PerformanceObserver)try{g=Ue,b=Fe(),_=Oe("FCP"),w=performance.getEntriesByName("first-contentful-paint")[0],k=w?null:Ae("paint",x),(w||k)&&(y=Me(g,_,void 0),w&&x(w),Ne((function(e){_=Oe("FCP"),y=Me(g,_,void 0),requestAnimationFrame((function(){requestAnimationFrame((function(){_.value=performance.now()-e.timeStamp,He.add(_),y()}))}))}))),d=Ue,h=Fe(),m=Oe("LCP"),(v=Ae("largest-contentful-paint",C))&&(p=Me(d,m,void 0),f=function(){He.has(m)||(v.takeRecords().map(C),v.disconnect(),He.add(m),p())},["keydown","click"].forEach((function(e){addEventListener(e,f,{once:!0,capture:!0})})),De(f,!0),Ne((function(e){m=Oe("LCP"),p=Me(d,m,void 0),requestAnimationFrame((function(){requestAnimationFrame((function(){m.value=performance.now()-e.timeStamp,He.add(m),p()}))}))}))),a=Ue,s=Fe(),l=Oe("FID"),c=Ae("first-input",S),u=Me(a,l,void 0),c&&De((function(){c.takeRecords().map(S),c.disconnect()}),!0),c||window.webVitals.firstInputPolyfill(S),Ne((function(){l=Oe("FID"),u=Me(a,l,void 0),window.webVitals.resetFirstInputPolyfill(),window.webVitals.firstInputPolyfill(S)})),n=Ue,o=Oe("CLS",0),(i=Ae("layout-shift",t))&&(r=Me(n,o,void 0),De((function(){i.takeRecords().map(t),r()})),Ne((function(){o=Oe("CLS",0),r=Me(n,o,void 0)}))),F(this.publish.bind(this,e),!0)}catch(e){}function t(e){e.hadRecentInput||(o.value+=e.value,o.entries.push(e),r())}var n,r,o,i,a,s,l,c,u,d,p,f,h,m,v,g,y,b,_,w,k;function S(e){e.startTime<s.timeStamp&&(l.value=e.processingStart-e.startTime,l.entries.push(e),He.add(l),u())}function C(e){var t=e.startTime;t<h.timeStamp&&(m.value=t,m.entries.push(e)),p()}function x(e){"first-contentful-paint"===e.name&&(k&&k.disconnect(),e.startTime<b.timeStamp&&(_.value=e.startTime,_.entries.push(e),He.add(_),y()))}},publish:function(e){e.sendPipeline([function(t,n){var r,o=[];for(r in t)o.push(r+"="+t[r]);var i=-1===e.config.performanceUrl.indexOf("?")?"?":"&";n({url:e.config.webVitalsUrl+i+o.join("&"),type:v.VITALS,log:t,sendBeacon:!0})}],v.VITALS)($e)},destroy:function(){this.option.publish=function(){}}}),We=0,qe=(r(Ve=Ke,et=je=Q),Ve.prototype=null===et?Object.create(et):(Je.prototype=et.prototype,new Je),Ke.prototype.getBean=function(e){var t=this;return void 0===e&&(e=[]),""+Object.getOwnPropertyNames(this.bean).filter((function(t){return-1===e.indexOf(t)})).map((function(e){return e+"="+t.bean[e]})).join("&")},Ke.prototype.resetRequesting=function(){var e;this.sendNow||(this.requesting=!1,(e=this.requestQueue.shift())&&this.request(e.options,e.success,e.fail))},Ke.prototype.request=function(e,t,n){var r=this;if(e&&"string"==typeof e.url&&""!==e.url&&this.bean.id)if(this.sendNow||!this.requesting){this.requesting=!0;var o=e.url;!1!==e.addBean&&(o=o+(-1===o.indexOf("?")?"?":"&")+this.getBean(e.beanFilter)),e.url=o;var i=e.method||"get";o=this.config.onBeforeRequest;if(!(e=o?o(e,this):e))return this.resetRequesting(),console.warn("Sending request blocked");if(!e.url)return this.resetRequesting(),console.warn("Please handle the parameters reasonably, options.url is necessary");if((e.sendBeacon||this.sendNow)&&"function"==typeof navigator.sendBeacon)return this.resetRequesting(),void navigator.sendBeacon(e.url,e.data);var a=new XMLHttpRequest;a.sendByAegis=!0,a.addEventListener("readystatechange",(function(){4===a.readyState&&(r.resetRequesting(),400<=a.status||0===a.status?null==n||n(a.response):null==t||t(a.response))})),"get"===i.toLocaleLowerCase()?(a.open("get",function(e,t){if("string"!=typeof e)return"";if("object"==typeof t&&t){var n=Object.getOwnPropertyNames(t).map((function(e){var n=t[e];return e+"="+("string"==typeof n?encodeURIComponent(n):encodeURIComponent(JSON.stringify(n)))})).join("&").replace(/eval/gi,"evaI");return e+(-1===e.indexOf("?")?"?":"&")+n}return e}(e.url,e.data)),a.send()):(a.open("post",e.url),e.contentType&&a.setRequestHeader("Content-Type",e.contentType),"string"==typeof e.data&&(e.data=e.data.replace(/eval/gi,"evaI")),a.send(e.data))}else this.requestQueue.push({options:e,success:t,fail:n})},Ke.useAsyncPlugin=function(e,t){var n=(t=void 0===t?{}:t).exportsConstructor,r=void 0===n?"aegis-plugin-"+We:n,o=(n=t.onAegisInit,void 0===n?function(){}:n),i=(t=t.onAegisInitAndPluginLoaded,void 0===t?function(){}:t);if(We+=1,"string"!=typeof e)throw new TypeError("useAsyncPlugin first param must be string");if("function"!=typeof o||"function"!=typeof i)throw new TypeError("onAegisInit and onAegisInitAndPluginLoaded must be function");this.use(new ee({name:"asyncPlugin",onNewAegis:function(t){try{o(t),Ke.asyncPlugin[e]?i(t,window[Ke.asyncPlugin[e]]):(n=e,a=r,s=function(n){n||(Ke.asyncPlugin[e]=r,n=window[r],i(t,n))},l=document.createElement("script"),c=document.head,"function"==typeof a&&(s=a,a=""),l.src=n,l.setAttribute("name",a),l.name=a,l.setAttribute("crossorigin","anonymous"),l.crossorigin="anonymous",l.defer=!0,l.hasLoaded=!1,l.onreadystatechange=function(){l.hasLoaded||l.readyState&&"loaded"!==l.readyState&&"complete"!==l.readyState||(l.hasLoaded=!0,"function"==typeof s&&s(!1),setTimeout((function(){c.contains(l)&&c.removeChild(l)})))},l.onload=l.onreadystatechange,l.onerror=function(){"function"==typeof s&&s(!0),setTimeout((function(){c.contains(l)&&c.removeChild(l)}))},"complete"===document.readyState?c.appendChild(l):window.addEventListener("load",(function(){c.appendChild(l)})))}catch(n){console.log("error on below is caused by "+e+" "),console.error(n)}var n,a,s,l,c}}))},Ke.prototype.publishPluginsLogs=function(){var e=Ke.installedPlugins.find((function(e){return"reportAssetSpeed"===e.name}));null==e||e.option.collectNotReportedLog(this)},Ke.prototype.publishLogsQueue=function(){var e=this;this.sendNow=!0,this.requestQueue.forEach((function(t){t.option&&(t.option=o(o({},t.option),{sendBeacon:!0})),e.request(t)})),this.requestQueue=[]},Ke.prototype.uploadLogs=function(e,t){this.lifeCycle.emit("uploadLogs",e=void 0===e?{}:e,t=void 0===t?{}:t)},Ke.sessionID="session-"+Date.now(),Ke.asyncPlugin={},Ke.urls={aegisCollect:"https://aegis.qq.com/collect",flog:"https://cdn-go.cn/vasdev/web_webpersistance_v2/v1.8.2/flog.core.min.js",shadowLog:""},Ke),Ze=new ee({name:"offlineLog"}),Ye=Ze=new ee({name:"offlineLog",onNewAegis:function(e){var t=qe.urls.flog,n=e.config,r=[],i=null,s=null,l=function(e){s=e},c=function(e){r=r.concat(e)},u=function(e,t){i={conds:e=void 0===e?{}:e,params:t=void 0===t?{}:t}};qe.useAsyncPlugin(t,{exportsConstructor:"Flog",onAegisInit:function(e){e.lifeCycle.on("beforeWrite",c),e.lifeCycle.on("uploadLogs",u),e.lifeCycle.on("onConfigChange",l)},onAegisInitAndPluginLoaded:function(e,t){var d,p,f,h,g,y=n.dbConfig,b=void 0===y?{}:y,_=n.url,k=void 0===_?qe.urls.aegisCollect:_,S=n.offlineLogExp,C=void 0===S?3:S;y=n.id,_=n.uin;null===(S=e.lifeCycle)||void 0===S||S.remove("beforeWrite",c),null===(S=e.lifeCycle)||void 0===S||S.remove("uploadLogs",u),null===(S=e.lifeCycle)||void 0===S||S.remove("onConfigChange",l),b=Object.assign({lookupUrl:k+"/offlineAuto?id="+y,preservedDay:C,id:y,uin:_,aid:(null===(_=e.bean)||void 0===_?void 0:_.aid)||"",beforeRequest:e.config.beforeRequest,afterRequest:e.config.afterRequest},b,{sessionId:qe.sessionID});try{var x=new t(b);r.forEach((function(e){x.add(o(o({},e),{level:e.level===m.INFO_ALL?m.INFO:e.level}))})),null===(d=e.lifeCycle)||void 0===d||d.on("beforeWrite",(function(e){(e=void 0===e?[]:e).forEach((function(e){x.add(o(o({},e),{level:e.level===m.INFO_ALL?m.INFO:e.level}))}))})),null===(p=e.lifeCycle)||void 0===p||p.on("uploadLogs",(function(t,r){var o;void 0===t&&(t={}),void 0===r&&(r={}),x.uploadLogs(Object.assign({id:n.id,uin:n.uin,aid:null===(o=e.bean)||void 0===o?void 0:o.aid},t),r)})),null===(f=e.lifeCycle)||void 0===f||f.on("onConfigChange",(function(e){x.setConfig(e)})),null===(h=e.lifeCycle)||void 0===h||h.on("destroy",(function(){0===Ze.countInstance()&&(r.length=0,"function"==typeof((i=null)==x?void 0:x.destroy)&&x.destroy())})),x.on("PERREVENT",(function(t){e.sendPipeline([function(e,t){var r=a({msg:w(e),level:m.INFO});t({type:v.OFFLINE,data:r,contentType:"application/x-www-form-urlencoded",method:"post",addBean:!1,url:n.url+"?id=893&sessionId="+qe.sessionID+"&uin="+n.uin+"&from="+n.id+"&count=1&version=1.35.25",log:e})}],v.OFFLINE)(t)})),s&&(x.setConfig(s),s=null),i&&(null===(g=e.lifeCycle)||void 0===g||g.emit("uploadLogs",i.conds,i.params),i=null),e.flog=x}catch(e){console.log(e)}}})}});new ee({name:"spa"}),Q=new ee({name:"spa",init:function(){history.pushState=this.wr("pushState")||history.pushState,history.replaceState=this.wr("replaceState")||history.replaceState;var e=(null===(e=location.href)||void 0===e?void 0:e.split("?"))[0];this.$fireUrl=e,this.sendPv=this.sendPv.bind(this),this.onPageChange()},onPageChange:function(){window.addEventListener("replaceState",this.sendPv),window.addEventListener("pushState",this.sendPv),window.addEventListener("popstate",this.sendPv)},wr:function(e){var t=history[e];return"function"==typeof t&&!history.__hasWrittenByTamSpa&&(Object.defineProperty(history,"__hasWrittenByTamSpa",{value:!0,enumerable:!1}),function(){var n=t.apply(this,arguments),r=null;return"function"==typeof Event?r=new Event(e):(r=document.createEvent("HTMLEvents")).initEvent(e,!1,!0),window.dispatchEvent(r),n})},sendPv:function(){var e=this;setTimeout((function(){var t=location.href,n=(null===(n=location.href)||void 0===n?void 0:n.split("?"))[0];n&&n!==e.$fireUrl&&(e.$walk((function(e){e.sendPipeline([function(n,r){r({url:e.config.pvUrl+"?from="+encodeURIComponent(t),beanFilter:["from"],type:v.PV})}],v.PV)(null)})),e.$fireUrl=n)}),0)},destroy:function(){window.removeEventListener("replaceState",this.option.sendPv),window.removeEventListener("pushState",this.option.sendPv),window.removeEventListener("popstate",this.option.sendPv)}});function Ke(e){var t,n,r,o=je.call(this,e)||this;o.sendNow=!1,o.requestQueue=[],o.requesting=!1,o.speedLogPipeline=X([$(o),Z(o.config),(r=o,function(e,t){Se((function(n){r.extendBean("netType",n),t(e)}))}),function(e,t){o.lifeCycle.emit("beforeReportSpeed",e);var n=o.config.beforeReportSpeed;if((e="function"==typeof n?e.filter((function(e){var t,r,i=!1!==n(e);return"fetch"===e.type&&void 0===e.ret&&e.payload&&(t=(r=_(e.payload.data.response,o.config.api,{url:e.payload.data.url,ctx:e.payload.data})||{}).code,r=r.isErr,e.ret=t,e.isErr=+r),i})):e).length)return t(e)},function(e){return o.sendPipeline([function(e,t){t({type:v.SPEED,url:""+o.config.speedUrl,method:"post",data:ne(e,o.bean),log:e})}],v.SPEED)(e)}]),e.asyncPlugin=!0;try{"undefined"!=typeof document&&(e.uin=e.uin||(null!==(t=document.cookie.match(/\buin=\D+(\d*)/))&&void 0!==t?t:[])[1]||(null!==(n=document.cookie.match(/\bilive_uin=\D*(\d+)/))&&void 0!==n?n:[])[1]||""),o.init(e),o.extendBean("sessionId",Ke.sessionID),o.extendBean("from",encodeURIComponent(e.pageUrl||location.href)),"undefined"!=typeof document&&o.extendBean("referer",encodeURIComponent(document.referrer||"")),e.ext1&&o.extendBean("ext1",e.ext1),e.ext2&&o.extendBean("ext2",e.ext2),e.ext3&&o.extendBean("ext3",e.ext3)}catch(e){console.warn(e),console.log("%cThe above error occurred in the process of initializing Aegis, which will affect your normal use of Aegis.\nIt is recommended that you contact us for feedback and thank you for your support.","color: red"),o.sendSDKError(e)}return o}function Je(){this.constructor=Ve}function Ge(e){return-1!==Xe.indexOf(e)}new ee({name:"ie"});var Xe=window.navigator.userAgent.toLowerCase(),Qe={macos:function(){return Ge("mac")},ios:function(){return Qe.iphone()||Qe.ipod()||Qe.ipad()},iphone:function(){return!Qe.windows()&&Ge("iphone")},ipod:function(){return Ge("ipod")},ipad:function(){var e="MacIntel"===navigator.platform&&1<navigator.maxTouchPoints;return Ge("ipad")||e},android:function(){return!Qe.windows()&&Ge("android")},androidPhone:function(){return Qe.android()&&Ge("mobile")},androidTablet:function(){return Qe.android()&&!Ge("mobile")},blackberry:function(){return Ge("blackberry")||Ge("bb10")},blackberryPhone:function(){return Qe.blackberry()&&!Ge("tablet")},blackberryTablet:function(){return Qe.blackberry()&&Ge("tablet")},windows:function(){return Ge("windows")},windowsPhone:function(){return Qe.windows()&&Ge("phone")},windowsTablet:function(){return Qe.windows()&&Ge("touch")&&!Qe.windowsPhone()},fxos:function(){return(Ge("(mobile")||Ge("(tablet"))&&Ge(" rv:")},fxosPhone:function(){return Qe.fxos()&&Ge("mobile")},fxosTablet:function(){return Qe.fxos()&&Ge("tablet")},meego:function(){return Ge("meego")},cordova:function(){return window.cordova&&"file:"===location.protocol},nodeWebkit:function(){return"object"==typeof window.process},mobile:function(){return Qe.androidPhone()||Qe.iphone()||Qe.ipod()||Qe.windowsPhone()||Qe.blackberryPhone()||Qe.fxosPhone()||Qe.meego()},tablet:function(){return Qe.ipad()||Qe.androidTablet()||Qe.blackberryTablet()||Qe.windowsTablet()||Qe.fxosTablet()},desktop:function(){return!Qe.tablet()&&!Qe.mobile()}};new ee({name:"onClose"});var et=new ee({name:"onClose",onNewAegis:function(){var e,t=this;Qe.desktop()?(e=window.onunload,window.onunload=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];t.publishNotReportedLog(),null==e||e.call.apply(e,i([window],n))}):F(this.publishNotReportedLog.bind(this),!0)},publishNotReportedLog:function(){var e=this;this.$walk((function(t){t.sendNow=!0,t.publishPluginsLogs(),t.publishLogsQueue(),e.publishThrottlePipeLogs(t)}))},publishThrottlePipeLogs:function(e){null==e||e.speedLogPipeline([]),null==e||e.eventPipeline([]),null==e||e.customTimePipeline([]),null==e||e.normalLogPipeline([])}});return qe.use(xe),qe.use(ce),qe.use(oe),qe.use(Te),qe.use(ze),qe.use(te),qe.use(ke),qe.use(Ye),qe.use(Q),qe.use(et),qe}))},5743:function(e){!function(t,n){e.exports=n()}(0,(function(){"use strict";var e=1e3,t=6e4,n=36e5,r="millisecond",o="second",i="minute",a="hour",s="day",l="week",c="month",u="quarter",d="year",p="date",f="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},g=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},y={s:g,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+g(r,2,"0")+":"+g(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,c),i=n-o<0,a=t.clone().add(r+(i?-1:1),c);return+(-(r+(n-o)/(i?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:d,w:l,d:s,D:p,h:a,m:i,s:o,ms:r,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",_={};_[b]=v;var w=function(e){return e instanceof x},k=function e(t,n,r){var o;if(!t)return b;if("string"==typeof t){var i=t.toLowerCase();_[i]&&(o=i),n&&(_[i]=n,o=i);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var s=t.name;_[s]=t,o=s}return!r&&o&&(b=o),o||!r&&b},S=function(e,t){if(w(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new x(n)},C=y;C.l=k,C.i=w,C.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var x=function(){function v(e){this.$L=k(e.locale,null,!0),this.parse(e)}var g=v.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(C.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(h);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return C},g.isValid=function(){return!(this.$d.toString()===f)},g.isSame=function(e,t){var n=S(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return S(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<S(e)},g.$g=function(e,t,n){return C.u(e)?this[t]:this.set(n,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var n=this,r=!!C.u(t)||t,u=C.p(e),f=function(e,t){var o=C.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?o:o.endOf(s)},h=function(e,t){return C.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,v=this.$M,g=this.$D,y="set"+(this.$u?"UTC":"");switch(u){case d:return r?f(1,0):f(31,11);case c:return r?f(1,v):f(0,v+1);case l:var b=this.$locale().weekStart||0,_=(m<b?m+7:m)-b;return f(r?g-_:g+(6-_),v);case s:case p:return h(y+"Hours",0);case a:return h(y+"Minutes",1);case i:return h(y+"Seconds",2);case o:return h(y+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var n,l=C.p(e),u="set"+(this.$u?"UTC":""),f=(n={},n[s]=u+"Date",n[p]=u+"Date",n[c]=u+"Month",n[d]=u+"FullYear",n[a]=u+"Hours",n[i]=u+"Minutes",n[o]=u+"Seconds",n[r]=u+"Milliseconds",n)[l],h=l===s?this.$D+(t-this.$W):t;if(l===c||l===d){var m=this.clone().set(p,1);m.$d[f](h),m.init(),this.$d=m.set(p,Math.min(this.$D,m.daysInMonth())).$d}else f&&this.$d[f](h);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[C.p(e)]()},g.add=function(r,u){var p,f=this;r=Number(r);var h=C.p(u),m=function(e){var t=S(f);return C.w(t.date(t.date()+Math.round(e*r)),f)};if(h===c)return this.set(c,this.$M+r);if(h===d)return this.set(d,this.$y+r);if(h===s)return m(1);if(h===l)return m(7);var v=(p={},p[i]=t,p[a]=n,p[o]=e,p)[h]||1,g=this.$d.getTime()+r*v;return C.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||f;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=C.z(this),i=this.$H,a=this.$m,s=this.$M,l=n.weekdays,c=n.months,u=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].slice(0,i)},d=function(e){return C.s(i%12||12,e,"0")},p=n.meridiem||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r},h={YY:String(this.$y).slice(-2),YYYY:this.$y,M:s+1,MM:C.s(s+1,2,"0"),MMM:u(n.monthsShort,s,c,3),MMMM:u(c,s),D:this.$D,DD:C.s(this.$D,2,"0"),d:String(this.$W),dd:u(n.weekdaysMin,this.$W,l,2),ddd:u(n.weekdaysShort,this.$W,l,3),dddd:l[this.$W],H:String(i),HH:C.s(i,2,"0"),h:d(1),hh:d(2),a:p(i,a,!0),A:p(i,a,!1),m:String(a),mm:C.s(a,2,"0"),s:String(this.$s),ss:C.s(this.$s,2,"0"),SSS:C.s(this.$ms,3,"0"),Z:o};return r.replace(m,(function(e,t){return t||h[e]||o.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(r,p,f){var h,m=C.p(p),v=S(r),g=(v.utcOffset()-this.utcOffset())*t,y=this-v,b=C.m(this,v);return b=(h={},h[d]=b/12,h[c]=b,h[u]=b/3,h[l]=(y-g)/6048e5,h[s]=(y-g)/864e5,h[a]=y/n,h[i]=y/t,h[o]=y/e,h)[m]||y,f?b:C.a(b)},g.daysInMonth=function(){return this.endOf(c).$D},g.$locale=function(){return _[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=k(e,t,!0);return r&&(n.$L=r),n},g.clone=function(){return C.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},v}(),I=x.prototype;return S.prototype=I,[["$ms",r],["$s",o],["$m",i],["$H",a],["$W",s],["$M",c],["$y",d],["$D",p]].forEach((function(e){I[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),S.extend=function(e,t){return e.$i||(e(t,x,S),e.$i=!0),S},S.locale=k,S.isDayjs=w,S.unix=function(e){return S(1e3*e)},S.en=_[b],S.Ls=_,S.p={},S}))},9169:function(e){!function(t,n){e.exports=n()}(0,(function(){"use strict";return function(e,t,n){var r=t.prototype,o=r.format;n.en.ordinal=function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"},r.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return o.bind(this)(e);var r=this.$utils(),i=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case"Q":return Math.ceil((t.$M+1)/3);case"Do":return n.ordinal(t.$D);case"gggg":return t.weekYear();case"GGGG":return t.isoWeekYear();case"wo":return n.ordinal(t.week(),"W");case"w":case"ww":return r.s(t.week(),"w"===e?1:2,"0");case"W":case"WW":return r.s(t.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return r.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case"X":return Math.floor(t.$d.getTime()/1e3);case"x":return t.$d.getTime();case"z":return"["+t.offsetName()+"]";case"zzz":return"["+t.offsetName("long")+"]";default:return e}}));return o.bind(this)(i)}}}))},841:function(e,t,n){n(1703),function(t,n){e.exports=n()}(0,(function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-:/.()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,o=/\d*[^\s\d-_:/()]+/,i={},a=function(e){return(e=+e)+(e>68?1900:2e3)},s=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],c=function(e){var t=i[e];return t&&(t.indexOf?t:t.s.concat(t.f))},u=function(e,t){var n,r=i.meridiem;if(r){for(var o=1;o<=24;o+=1)if(e.indexOf(r(o,0,t))>-1){n=o>12;break}}else n=e===(t?"pm":"PM");return n},d={A:[o,function(e){this.afternoon=u(e,!1)}],a:[o,function(e){this.afternoon=u(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[r,s("seconds")],ss:[r,s("seconds")],m:[r,s("minutes")],mm:[r,s("minutes")],H:[r,s("hours")],h:[r,s("hours")],HH:[r,s("hours")],hh:[r,s("hours")],D:[r,s("day")],DD:[n,s("day")],Do:[o,function(e){var t=i.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],M:[r,s("month")],MM:[n,s("month")],MMM:[o,function(e){var t=c("months"),n=(c("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[o,function(e){var t=c("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,s("year")],YY:[n,function(e){this.year=a(e)}],YYYY:[/\d{4}/,s("year")],Z:l,ZZ:l};function p(n){var r,o;r=n,o=i&&i.formats;for(var a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var i=r&&r.toUpperCase();return n||o[r]||e[r]||o[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,l=0;l<s;l+=1){var c=a[l],u=d[c],p=u&&u[0],f=u&&u[1];a[l]=f?{regex:p,parser:f}:c.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var o=a[n];if("string"==typeof o)r+=o.length;else{var i=o.regex,l=o.parser,c=e.slice(r),u=i.exec(c)[0];l.call(t,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(a=e.parseTwoDigitYear);var r=t.prototype,o=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var s=a[1];if("string"==typeof s){var l=!0===a[2],c=!0===a[3],u=l||c,d=a[2];c&&(d=a[2]),i=this.$locale(),!l&&d&&(i=n.Ls[d]),this.$d=function(e,t,n){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var r=p(t)(e),o=r.year,i=r.month,a=r.day,s=r.hours,l=r.minutes,c=r.seconds,u=r.milliseconds,d=r.zone,f=new Date,h=a||(o||i?1:f.getDate()),m=o||f.getFullYear(),v=0;o&&!i||(v=i>0?i-1:f.getMonth());var g=s||0,y=l||0,b=c||0,_=u||0;return d?new Date(Date.UTC(m,v,h,g,y,b,_+60*d.offset*1e3)):n?new Date(Date.UTC(m,v,h,g,y,b,_)):new Date(m,v,h,g,y,b,_)}catch(e){return new Date("")}}(t,s,r),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date("")),i={}}else if(s instanceof Array)for(var f=s.length,h=1;h<=f;h+=1){a[1]=s[h-1];var m=n.apply(this,a);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}h===f&&(this.$d=new Date(""))}else o.call(this,e)}}}))},5093:function(e){!function(t,n){e.exports=n()}(0,(function(){"use strict";return function(e,t,n){t.prototype.dayOfYear=function(e){var t=Math.round((n(this).startOf("day")-n(this).startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"day")}}}))},1294:function(e){!function(t,n){e.exports=n()}(0,(function(){"use strict";return function(e,t){t.prototype.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)}}}))},2643:function(e){!function(t,n){e.exports=n()}(0,(function(){"use strict";return function(e,t){t.prototype.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)}}}))},225:function(e){!function(t,n){e.exports=n()}(0,(function(){"use strict";return function(e,t,n){var r=t.prototype,o=function(e){return e&&(e.indexOf?e:e.s)},i=function(e,t,n,r,i){var a=e.name?e:e.$locale(),s=o(a[t]),l=o(a[n]),c=s||l.map((function(e){return e.slice(0,r)}));if(!i)return c;var u=a.weekStart;return c.map((function(e,t){return c[(t+(u||0))%7]}))},a=function(){return n.Ls[n.locale()]},s=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}(e.formats[t.toUpperCase()])},l=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):i(e,"months")},monthsShort:function(t){return t?t.format("MMM"):i(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):i(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):i(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):i(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return s(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return l.bind(this)()},n.localeData=function(){var e=a();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return s(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return i(a(),"months")},n.monthsShort=function(){return i(a(),"monthsShort","months",3)},n.weekdays=function(e){return i(a(),"weekdays",null,null,e)},n.weekdaysShort=function(e){return i(a(),"weekdaysShort","weekdays",3,e)},n.weekdaysMin=function(e){return i(a(),"weekdaysMin","weekdays",2,e)}}}))},6245:function(e){!function(t,n){e.exports=n()}(0,(function(){"use strict";var e="week",t="year";return function(n,r,o){var i=r.prototype;i.week=function(n){if(void 0===n&&(n=null),null!==n)return this.add(7*(n-this.week()),"day");var r=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var i=o(this).startOf(t).add(1,t).date(r),a=o(this).endOf(e);if(i.isBefore(a))return 1}var s=o(this).startOf(t).date(r).startOf(e).subtract(1,"millisecond"),l=this.diff(s,e,!0);return l<0?o(this).startOf("week").week():Math.ceil(l)},i.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}}))},5227:function(e){!function(t,n){e.exports=n()}(0,(function(){"use strict";return function(e,t){t.prototype.weekYear=function(){var e=this.month(),t=this.week(),n=this.year();return 1===t&&11===e?n+1:0===e&&t>=52?n-1:n}}}))},3403:function(e){"use strict";
- /*!
- * escape-html
- * Copyright(c) 2012-2013 TJ Holowaychuk
- * Copyright(c) 2015 Andreas Lubbe
- * Copyright(c) 2015 Tiancheng "Timothy" Gu
- * MIT Licensed
- */var t=/["'&<>]/;function n(e){var n,r=""+e,o=t.exec(r);if(!o)return r;var i="",a=0,s=0;for(a=o.index;a<r.length;a++){switch(r.charCodeAt(a)){case 34:n=""";break;case 38:n="&";break;case 39:n="'";break;case 60:n="<";break;case 62:n=">";break;default:continue}s!==a&&(i+=r.substring(s,a)),s=a+1,i+=n}return s!==a?i+r.substring(s,a):i}e.exports=n},8650:function(e,t,n){"use strict";n.d(t,{Q_:function(){return M},WB:function(){return S}});n(1703);var r=n(4870),o=n(3701),i=n(3396);
- /*!
- * pinia v2.0.13
- * (c) 2022 Eduardo San Martin Morote
- * @license MIT
- */
- let a;const s=e=>a=e,l=Symbol();function c(e){return e&&"object"===typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!==typeof e.toJSON}var u;(function(e){e["direct"]="direct",e["patchObject"]="patch object",e["patchFunction"]="patch function"})(u||(u={}));const d="undefined"!==typeof window,p=(()=>"object"===typeof window&&window.window===window?window:"object"===typeof self&&self.self===self?self:"object"===typeof n.g&&n.g.global===n.g?n.g:"object"===typeof globalThis?globalThis:{HTMLElement:null})();function f(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e}function h(e,t,n){const r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){b(r.response,t,n)},r.onerror=function(){console.error("could not download file")},r.send()}function m(e){const t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(n){}return t.status>=200&&t.status<=299}function v(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(t){const n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(n)}}const g="object"===typeof navigator?navigator:{userAgent:""},y=(()=>/Macintosh/.test(g.userAgent)&&/AppleWebKit/.test(g.userAgent)&&!/Safari/.test(g.userAgent))(),b=d?"undefined"!==typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype&&!y?_:"msSaveOrOpenBlob"in g?w:k:()=>{};function _(e,t="download",n){const r=document.createElement("a");r.download=t,r.rel="noopener","string"===typeof e?(r.href=e,r.origin!==location.origin?m(r.href)?h(e,t,n):(r.target="_blank",v(r)):v(r)):(r.href=URL.createObjectURL(e),setTimeout((function(){URL.revokeObjectURL(r.href)}),4e4),setTimeout((function(){v(r)}),0))}function w(e,t="download",n){if("string"===typeof e)if(m(e))h(e,t,n);else{const t=document.createElement("a");t.href=e,t.target="_blank",setTimeout((function(){v(t)}))}else navigator.msSaveOrOpenBlob(f(e,n),t)}function k(e,t,n,r){if(r=r||open("","_blank"),r&&(r.document.title=r.document.body.innerText="downloading..."),"string"===typeof e)return h(e,t,n);const o="application/octet-stream"===e.type,i=/constructor/i.test(String(p.HTMLElement))||"safari"in p,a=/CriOS\/[\d]+/.test(navigator.userAgent);if((a||o&&i||y)&&"undefined"!==typeof FileReader){const t=new FileReader;t.onloadend=function(){let e=t.result;if("string"!==typeof e)throw r=null,new Error("Wrong reader.result type");e=a?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=e:location.assign(e),r=null},t.readAsDataURL(e)}else{const t=URL.createObjectURL(e);r?r.location.assign(t):location.href=t,r=null,setTimeout((function(){URL.revokeObjectURL(t)}),4e4)}}function S(){const e=(0,r.B)(!0),t=e.run((()=>(0,r.iH)({})));let n=[],i=[];const a=(0,r.Xl)({install(e){s(a),o.$Q||(a._a=e,e.provide(l,a),e.config.globalProperties.$pinia=a,i.forEach((e=>n.push(e))),i=[])},use(e){return this._a||o.$Q?n.push(e):i.push(e),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return a}const C=()=>{};function x(e,t,n,r=C){e.push(t);const o=()=>{const n=e.indexOf(t);n>-1&&(e.splice(n,1),r())};return!n&&(0,i.FN)()&&(0,i.Ah)(o),o}function I(e,...t){e.slice().forEach((e=>{e(...t)}))}function T(e,t){for(const n in t){if(!t.hasOwnProperty(n))continue;const o=t[n],i=e[n];c(i)&&c(o)&&e.hasOwnProperty(n)&&!(0,r.dq)(o)&&!(0,r.PG)(o)?e[n]=T(i,o):e[n]=o}return e}const E=Symbol(),R=new WeakMap;function P(e){return o.$Q?!R.has(e):!c(e)||!e.hasOwnProperty(E)}const{assign:O}=Object;function A(e){return!(!(0,r.dq)(e)||!e.effect)}function D(e,t,n,a){const{state:l,actions:c,getters:u}=t,d=n.state.value[e];let p;function f(){d||(o.$Q?(0,o.t8)(n.state.value,e,l?l():{}):n.state.value[e]=l?l():{});const t=(0,r.BK)(n.state.value[e]);return O(t,c,Object.keys(u||{}).reduce(((t,a)=>(t[a]=(0,r.Xl)((0,i.Fl)((()=>{s(n);const t=n._s.get(e);if(!o.$Q||t._r)return u[a].call(t,t)}))),t)),{}))}return p=N(e,f,t,n,a),p.$reset=function(){const e=l?l():{};this.$patch((t=>{O(t,e)}))},p}function N(e,t,n={},a,l){let c;const d=n.state,p=O({actions:{}},n);const f={deep:!0};let h,m;let v,g=(0,r.Xl)([]),y=(0,r.Xl)([]);const b=a.state.value[e];d||b||(o.$Q?(0,o.t8)(a.state.value,e,{}):a.state.value[e]={});(0,r.iH)({});function _(t){let n;h=m=!1,"function"===typeof t?(t(a.state.value[e]),n={type:u.patchFunction,storeId:e,events:v}):(T(a.state.value[e],t),n={type:u.patchObject,payload:t,storeId:e,events:v}),(0,i.Y3)().then((()=>{h=!0})),m=!0,I(g,n,a.state.value[e])}const w=C;function k(){c.stop(),g=[],y=[],a._s.delete(e)}function S(t,n){return function(){s(a);const r=Array.from(arguments),o=[],i=[];function l(e){o.push(e)}function c(e){i.push(e)}let u;I(y,{args:r,name:t,store:R,after:l,onError:c});try{u=n.apply(this&&this.$id===e?this:R,r)}catch(d){throw I(i,d),d}return u instanceof Promise?u.then((e=>(I(o,e),e))).catch((e=>(I(i,e),Promise.reject(e)))):(I(o,u),u)}}const E={_p:a,$id:e,$onAction:x.bind(null,y),$patch:_,$reset:w,$subscribe(t,n={}){const r=x(g,t,n.detached,(()=>o())),o=c.run((()=>(0,i.YP)((()=>a.state.value[e]),(r=>{("sync"===n.flush?m:h)&&t({storeId:e,type:u.direct,events:v},r)}),O({},f,n))));return r},$dispose:k};o.$Q&&(E._r=!1);const R=(0,r.qj)(O({},E));a._s.set(e,R);const D=a._e.run((()=>(c=(0,r.B)(),c.run((()=>t())))));for(const i in D){const t=D[i];if((0,r.dq)(t)&&!A(t)||(0,r.PG)(t))d||(b&&P(t)&&((0,r.dq)(t)?t.value=b[i]:T(t,b[i])),o.$Q?(0,o.t8)(a.state.value[e],i,t):a.state.value[e][i]=t);else if("function"===typeof t){const e=S(i,t);o.$Q?(0,o.t8)(D,i,e):D[i]=e,p.actions[i]=t}else 0}return o.$Q?Object.keys(D).forEach((e=>{(0,o.t8)(R,e,D[e])})):(O(R,D),O((0,r.IU)(R),D)),Object.defineProperty(R,"$state",{get:()=>a.state.value[e],set:e=>{_((t=>{O(t,e)}))}}),o.$Q&&(R._r=!0),a._p.forEach((e=>{O(R,c.run((()=>e({store:R,app:a._a,pinia:a,options:p}))))})),b&&d&&n.hydrate&&n.hydrate(R.$state,b),h=!0,m=!0,R}function M(e,t,n){let r,o;const c="function"===typeof t;function u(e,n){const u=(0,i.FN)();e=e||u&&(0,i.f3)(l),e&&s(e),e=a,e._s.has(r)||(c?N(r,t,o,e):D(r,o,e));const d=e._s.get(r);return d}return"string"===typeof e?(r=e,o=c?n:t):(o=e,r=e.id),u.$id=r,u}},2741:function(e,t,n){n(1703),n(6314),n(2801),function(t,n){e.exports=n()}(0,(function(){function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function t(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?e(Object(r),!0).forEach((function(e){c(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):e(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,o)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function s(e){o(a,r,i,s,l,"next",e)}function l(e){o(a,r,i,s,l,"throw",e)}s(void 0)}))}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function h(e,t,n){return(h=f()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&p(o,n.prototype),o}).apply(null,arguments)}function m(e){var t="function"==typeof Map?new Map:void 0;return(m=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return h(e,arguments,d(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),p(r,e)})(e)}function v(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function g(e){var t=f();return function(){var n,r=d(e);if(t){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v(this,n)}}function y(e,t,n){return(y="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=d(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(c){s=!0,o=c}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||w(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e){return function(e){if(Array.isArray(e))return k(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||w(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){if(e){if("string"==typeof e)return k(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k(e,t):void 0}}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function S(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=w(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function C(e,t,n,r,o){var i={};return Object.keys(r).forEach((function(e){i[e]=r[e]})),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),i),o&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(o):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var x="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:{};function I(e,t){return e(t={exports:{}},t.exports),t.exports}var T,E,R=function(e){return e&&e.Math==Math&&e},P=R("object"==typeof globalThis&&globalThis)||R("object"==typeof window&&window)||R("object"==typeof self&&self)||R("object"==typeof x&&x)||function(){return this}()||Function("return this")(),O=function(e){try{return!!e()}catch(t){return!0}},A=!O((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),D={}.propertyIsEnumerable,N=Object.getOwnPropertyDescriptor,M={f:N&&!D.call({1:2},1)?function(e){var t=N(this,e);return!!t&&t.enumerable}:D},L=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},F={}.toString,U=function(e){return F.call(e).slice(8,-1)},j="".split,V=O((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==U(e)?j.call(e,""):Object(e)}:Object,H=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},B=function(e){return V(H(e))},$=function(e){return"function"==typeof e},z=function(e){return"object"==typeof e?null!==e:$(e)},W=function(e){return $(e)?e:void 0},q=function(e,t){return arguments.length<2?W(P[e]):P[e]&&P[e][t]},Z=q("navigator","userAgent")||"",Y=P.process,K=P.Deno,J=Y&&Y.versions||K&&K.version,G=J&&J.v8;G?E=(T=G.split("."))[0]<4?1:T[0]+T[1]:Z&&(!(T=Z.match(/Edge\/(\d+)/))||T[1]>=74)&&(T=Z.match(/Chrome\/(\d+)/))&&(E=T[1]);var X=E&&+E,Q=!!Object.getOwnPropertySymbols&&!O((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&X&&X<41})),ee=Q&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,te=ee?function(e){return"symbol"==typeof e}:function(e){var t=q("Symbol");return $(t)&&Object(e)instanceof t},ne=function(e){try{return String(e)}catch(t){return"Object"}},re=function(e){if($(e))return e;throw TypeError(ne(e)+" is not a function")},oe=function(e,t){var n=e[t];return null==n?void 0:re(n)},ie=function(e,t){try{Object.defineProperty(P,e,{value:t,configurable:!0,writable:!0})}catch(r){P[e]=t}return t},ae=P["__core-js_shared__"]||ie("__core-js_shared__",{}),se=I((function(e){(e.exports=function(e,t){return ae[e]||(ae[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.18.2",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),le=function(e){return Object(H(e))},ce={}.hasOwnProperty,ue=Object.hasOwn||function(e,t){return ce.call(le(e),t)},de=0,pe=Math.random(),fe=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++de+pe).toString(36)},he=se("wks"),me=P.Symbol,ve=ee?me:me&&me.withoutSetter||fe,ge=function(e){return ue(he,e)&&(Q||"string"==typeof he[e])||(Q&&ue(me,e)?he[e]=me[e]:he[e]=ve("Symbol."+e)),he[e]},ye=ge("toPrimitive"),be=function(e,t){if(!z(e)||te(e))return e;var n,r=oe(e,ye);if(r){if(void 0===t&&(t="default"),n=r.call(e,t),!z(n)||te(n))return n;throw TypeError("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&$(n=e.toString)&&!z(r=n.call(e)))return r;if($(n=e.valueOf)&&!z(r=n.call(e)))return r;if("string"!==t&&$(n=e.toString)&&!z(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}(e,t)},_e=function(e){var t=be(e,"string");return te(t)?t:String(t)},we=P.document,ke=z(we)&&z(we.createElement),Se=function(e){return ke?we.createElement(e):{}},Ce=!A&&!O((function(){return 7!=Object.defineProperty(Se("div"),"a",{get:function(){return 7}}).a})),xe=Object.getOwnPropertyDescriptor,Ie={f:A?xe:function(e,t){if(e=B(e),t=_e(t),Ce)try{return xe(e,t)}catch(r){}if(ue(e,t))return L(!M.f.call(e,t),e[t])}},Te=function(e){if(z(e))return e;throw TypeError(String(e)+" is not an object")},Ee=Object.defineProperty,Re={f:A?Ee:function(e,t,n){if(Te(e),t=_e(t),Te(n),Ce)try{return Ee(e,t,n)}catch(o){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Pe=A?function(e,t,n){return Re.f(e,t,L(1,n))}:function(e,t,n){return e[t]=n,e},Oe=Function.toString;$(ae.inspectSource)||(ae.inspectSource=function(e){return Oe.call(e)});var Ae,De,Ne,Me=ae.inspectSource,Le=P.WeakMap,Fe=$(Le)&&/native code/.test(Me(Le)),Ue=se("keys"),je=function(e){return Ue[e]||(Ue[e]=fe(e))},Ve={},He=P.WeakMap;if(Fe||ae.state){var Be=ae.state||(ae.state=new He),$e=Be.get,ze=Be.has,We=Be.set;Ae=function(e,t){if(ze.call(Be,e))throw new TypeError("Object already initialized");return t.facade=e,We.call(Be,e,t),t},De=function(e){return $e.call(Be,e)||{}},Ne=function(e){return ze.call(Be,e)}}else{var qe=je("state");Ve[qe]=!0,Ae=function(e,t){if(ue(e,qe))throw new TypeError("Object already initialized");return t.facade=e,Pe(e,qe,t),t},De=function(e){return ue(e,qe)?e[qe]:{}},Ne=function(e){return ue(e,qe)}}var Ze={set:Ae,get:De,has:Ne,enforce:function(e){return Ne(e)?De(e):Ae(e,{})},getterFor:function(e){return function(t){var n;if(!z(t)||(n=De(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},Ye=Function.prototype,Ke=A&&Object.getOwnPropertyDescriptor,Je=ue(Ye,"name"),Ge={EXISTS:Je,PROPER:Je&&"something"===function(){}.name,CONFIGURABLE:Je&&(!A||A&&Ke(Ye,"name").configurable)},Xe=I((function(e){var t=Ge.CONFIGURABLE,n=Ze.get,r=Ze.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var s,l=!!a&&!!a.unsafe,c=!!a&&!!a.enumerable,u=!!a&&!!a.noTargetGet,d=a&&void 0!==a.name?a.name:n;$(i)&&("Symbol("===String(d).slice(0,7)&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!ue(i,"name")||t&&i.name!==d)&&Pe(i,"name",d),(s=r(i)).source||(s.source=o.join("string"==typeof d?d:""))),e!==P?(l?!u&&e[n]&&(c=!0):delete e[n],c?e[n]=i:Pe(e,n,i)):c?e[n]=i:ie(n,i)})(Function.prototype,"toString",(function(){return $(this)&&n(this).source||Me(this)}))})),Qe=Math.ceil,et=Math.floor,tt=function(e){var t=+e;return t!=t||0===t?0:(t>0?et:Qe)(t)},nt=Math.max,rt=Math.min,ot=function(e,t){var n=tt(e);return n<0?nt(n+t,0):rt(n,t)},it=Math.min,at=function(e){return e>0?it(tt(e),9007199254740991):0},st=function(e){return at(e.length)},lt=function(e){return function(t,n,r){var o,i=B(t),a=st(i),s=ot(r,a);if(e&&n!=n){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===n)return e||s||0;return!e&&-1}},ct={includes:lt(!0),indexOf:lt(!1)},ut=ct.indexOf,dt=function(e,t){var n,r=B(e),o=0,i=[];for(n in r)!ue(Ve,n)&&ue(r,n)&&i.push(n);for(;t.length>o;)ue(r,n=t[o++])&&(~ut(i,n)||i.push(n));return i},pt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ft=pt.concat("length","prototype"),ht={f:Object.getOwnPropertyNames||function(e){return dt(e,ft)}},mt={f:Object.getOwnPropertySymbols},vt=q("Reflect","ownKeys")||function(e){var t=ht.f(Te(e)),n=mt.f;return n?t.concat(n(e)):t},gt=function(e,t){for(var n=vt(t),r=Re.f,o=Ie.f,i=0;i<n.length;i++){var a=n[i];ue(e,a)||r(e,a,o(t,a))}},yt=/#|\.prototype\./,bt=function(e,t){var n=wt[_t(e)];return n==St||n!=kt&&($(t)?O(t):!!t)},_t=bt.normalize=function(e){return String(e).replace(yt,".").toLowerCase()},wt=bt.data={},kt=bt.NATIVE="N",St=bt.POLYFILL="P",Ct=bt,xt=Ie.f,It=function(e,t){var n,r,o,i,a,s=e.target,l=e.global,c=e.stat;if(n=l?P:c?P[s]||ie(s,{}):(P[s]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=xt(n,r))&&a.value:n[r],!Ct(l?r:s+(c?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;gt(i,o)}(e.sham||o&&o.sham)&&Pe(i,"sham",!0),Xe(n,r,i,e)}},Tt=function(e,t,n){if(re(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}},Et=Array.isArray||function(e){return"Array"==U(e)},Rt={};Rt[ge("toStringTag")]="z";var Pt="[object z]"===String(Rt),Ot=ge("toStringTag"),At="Arguments"==U(function(){return arguments}()),Dt=Pt?U:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=Object(e),Ot))?n:At?U(t):"Object"==(r=U(t))&&$(t.callee)?"Arguments":r},Nt=[],Mt=q("Reflect","construct"),Lt=/^\s*(?:class|function)\b/,Ft=Lt.exec,Ut=!Lt.exec((function(){})),jt=function(e){if(!$(e))return!1;try{return Mt(Object,Nt,e),!0}catch(t){return!1}},Vt=!Mt||O((function(){var e;return jt(jt.call)||!jt(Object)||!jt((function(){e=!0}))||e}))?function(e){if(!$(e))return!1;switch(Dt(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Ut||!!Ft.call(Lt,Me(e))}:jt,Ht=ge("species"),Bt=function(e,t){return new(function(e){var t;return Et(e)&&(t=e.constructor,(Vt(t)&&(t===Array||Et(t.prototype))||z(t)&&null===(t=t[Ht]))&&(t=void 0)),void 0===t?Array:t}(e))(0===t?0:t)},$t=[].push,zt=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,s=5==e||i;return function(l,c,u,d){for(var p,f,h=le(l),m=V(h),v=Tt(c,u,3),g=st(m),y=0,b=d||Bt,_=t?b(l,g):n||a?b(l,0):void 0;g>y;y++)if((s||y in m)&&(f=v(p=m[y],y,h),e))if(t)_[y]=f;else if(f)switch(e){case 3:return!0;case 5:return p;case 6:return y;case 2:$t.call(_,p)}else switch(e){case 4:return!1;case 7:$t.call(_,p)}return i?-1:r||o?o:_}},Wt={forEach:zt(0),map:zt(1),filter:zt(2),some:zt(3),every:zt(4),find:zt(5),findIndex:zt(6),filterReject:zt(7)},qt=ge("species"),Zt=function(e){return X>=51||!O((function(){var t=[];return(t.constructor={})[qt]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Yt=Wt.map,Kt=Zt("map");It({target:"Array",proto:!0,forced:!Kt},{map:function(e){return Yt(this,e,arguments.length>1?arguments[1]:void 0)}});var Jt=Wt.filter,Gt=Zt("filter");It({target:"Array",proto:!0,forced:!Gt},{filter:function(e){return Jt(this,e,arguments.length>1?arguments[1]:void 0)}});var Xt=Ie.f,Qt=O((function(){Xt(1)}));It({target:"Object",stat:!0,forced:!A||Qt,sham:!A},{getOwnPropertyDescriptor:function(e,t){return Xt(B(e),t)}}),I((function(e){var t=function(e){var t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(T){s=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),a=new S(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return x()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=_(a,n);if(s){if(s===u)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=c(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===u)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(e,n,a),i}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(T){return{type:"throw",arg:T}}}e.wrap=l;var u={};function d(){}function p(){}function f(){}var h={};s(h,o,(function(){return this}));var m=Object.getPrototypeOf,v=m&&m(m(C([])));v&&v!==t&&n.call(v,o)&&(h=v);var g=f.prototype=d.prototype=Object.create(h);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(o,i){function a(){return new t((function(r,a){!function r(o,i,a,s){var l=c(e[o],e,i);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}}function _(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var r=c(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,u;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function C(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:x}}function x(){return{value:void 0,done:!0}}return p.prototype=f,s(g,"constructor",f),s(f,"constructor",p),p.displayName=s(f,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,s(e,a,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,i,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new b(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(g),s(g,a,"Generator"),s(g,o,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=C,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(s&&l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},e}(e.exports);try{regeneratorRuntime=t}catch(r){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}));let en=!0,tn=!0;function nn(e,t,n){const r=e.match(t);return r&&r.length>=n&&parseInt(r[n],10)}function rn(e,t,n){if(!e.RTCPeerConnection)return;const r=e.RTCPeerConnection.prototype,o=r.addEventListener;r.addEventListener=function(e,r){if(e!==t)return o.apply(this,arguments);const i=e=>{const t=n(e);t&&(r.handleEvent?r.handleEvent(t):r(t))};return this._eventMap=this._eventMap||{},this._eventMap[t]||(this._eventMap[t]=new Map),this._eventMap[t].set(r,i),o.apply(this,[e,i])};const i=r.removeEventListener;r.removeEventListener=function(e,n){if(e!==t||!this._eventMap||!this._eventMap[t])return i.apply(this,arguments);if(!this._eventMap[t].has(n))return i.apply(this,arguments);const r=this._eventMap[t].get(n);return this._eventMap[t].delete(n),0===this._eventMap[t].size&&delete this._eventMap[t],0===Object.keys(this._eventMap).length&&delete this._eventMap,i.apply(this,[e,r])},Object.defineProperty(r,"on"+t,{get(){return this["_on"+t]},set(e){this["_on"+t]&&(this.removeEventListener(t,this["_on"+t]),delete this["_on"+t]),e&&this.addEventListener(t,this["_on"+t]=e)},enumerable:!0,configurable:!0})}function on(e){return"boolean"!=typeof e?new Error("Argument type: "+typeof e+". Please use a boolean."):(en=e,e?"adapter.js logging disabled":"adapter.js logging enabled")}function an(e){return"boolean"!=typeof e?new Error("Argument type: "+typeof e+". Please use a boolean."):(tn=!e,"adapter.js deprecation warnings "+(e?"disabled":"enabled"))}function sn(){if("object"==typeof window){if(en)return;"undefined"!=typeof console&&"function"==typeof console.log&&console.log.apply(console,arguments)}}function ln(e,t){tn&&console.warn(e+" is deprecated, please use "+t+" instead.")}function cn(e){return"[object Object]"===Object.prototype.toString.call(e)}function un(e){return cn(e)?Object.keys(e).reduce((function(t,n){const r=cn(e[n]),o=r?un(e[n]):e[n],i=r&&!Object.keys(o).length;return void 0===o||i?t:Object.assign(t,{[n]:o})}),{}):e}function dn(e,t,n){const r=n?"outbound-rtp":"inbound-rtp",o=new Map;if(null===t)return o;const i=[];return e.forEach((e=>{"track"===e.type&&e.trackIdentifier===t.id&&i.push(e)})),i.forEach((t=>{e.forEach((n=>{n.type===r&&n.trackId===t.id&&function e(t,n,r){n&&!r.has(n.id)&&(r.set(n.id,n),Object.keys(n).forEach((o=>{o.endsWith("Id")?e(t,t.get(n[o]),r):o.endsWith("Ids")&&n[o].forEach((n=>{e(t,t.get(n),r)}))})))}(e,n,o)}))})),o}const pn=sn;function fn(e,t){const n=e&&e.navigator;if(!n.mediaDevices)return;const r=function(e){if("object"!=typeof e||e.mandatory||e.optional)return e;const t={};return Object.keys(e).forEach((n=>{if("require"===n||"advanced"===n||"mediaSource"===n)return;const r="object"==typeof e[n]?e[n]:{ideal:e[n]};void 0!==r.exact&&"number"==typeof r.exact&&(r.min=r.max=r.exact);const o=function(e,t){return e?e+t.charAt(0).toUpperCase()+t.slice(1):"deviceId"===t?"sourceId":t};if(void 0!==r.ideal){t.optional=t.optional||[];let e={};"number"==typeof r.ideal?(e[o("min",n)]=r.ideal,t.optional.push(e),e={},e[o("max",n)]=r.ideal,t.optional.push(e)):(e[o("",n)]=r.ideal,t.optional.push(e))}void 0!==r.exact&&"number"!=typeof r.exact?(t.mandatory=t.mandatory||{},t.mandatory[o("",n)]=r.exact):["min","max"].forEach((e=>{void 0!==r[e]&&(t.mandatory=t.mandatory||{},t.mandatory[o(e,n)]=r[e])}))})),e.advanced&&(t.optional=(t.optional||[]).concat(e.advanced)),t},o=function(e,o){if(t.version>=61)return o(e);if((e=JSON.parse(JSON.stringify(e)))&&"object"==typeof e.audio){const t=function(e,t,n){t in e&&!(n in e)&&(e[n]=e[t],delete e[t])};t((e=JSON.parse(JSON.stringify(e))).audio,"autoGainControl","googAutoGainControl"),t(e.audio,"noiseSuppression","googNoiseSuppression"),e.audio=r(e.audio)}if(e&&"object"==typeof e.video){let i=e.video.facingMode;i=i&&("object"==typeof i?i:{ideal:i});const a=t.version<66;if(i&&("user"===i.exact||"environment"===i.exact||"user"===i.ideal||"environment"===i.ideal)&&(!n.mediaDevices.getSupportedConstraints||!n.mediaDevices.getSupportedConstraints().facingMode||a)){let t;if(delete e.video.facingMode,"environment"===i.exact||"environment"===i.ideal?t=["back","rear"]:"user"!==i.exact&&"user"!==i.ideal||(t=["front"]),t)return n.mediaDevices.enumerateDevices().then((n=>{let a=(n=n.filter((e=>"videoinput"===e.kind))).find((e=>t.some((t=>e.label.toLowerCase().includes(t)))));return!a&&n.length&&t.includes("back")&&(a=n[n.length-1]),a&&(e.video.deviceId=i.exact?{exact:a.deviceId}:{ideal:a.deviceId}),e.video=r(e.video),pn("chrome: "+JSON.stringify(e)),o(e)}))}e.video=r(e.video)}return pn("chrome: "+JSON.stringify(e)),o(e)},i=function(e){return t.version>=64?e:{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[e.name]||e.name,message:e.message,constraint:e.constraint||e.constraintName,toString(){return this.name+(this.message&&": ")+this.message}}};if(n.getUserMedia=function(e,t,r){o(e,(e=>{n.webkitGetUserMedia(e,t,(e=>{r&&r(i(e))}))}))}.bind(n),n.mediaDevices.getUserMedia){const e=n.mediaDevices.getUserMedia.bind(n.mediaDevices);n.mediaDevices.getUserMedia=function(t){return o(t,(t=>e(t).then((e=>{if(t.audio&&!e.getAudioTracks().length||t.video&&!e.getVideoTracks().length)throw e.getTracks().forEach((e=>{e.stop()})),new DOMException("","NotFoundError");return e}),(e=>Promise.reject(i(e))))))}}}function hn(e){e.MediaStream=e.MediaStream||e.webkitMediaStream}function mn(e){if("object"==typeof e&&e.RTCPeerConnection&&!("ontrack"in e.RTCPeerConnection.prototype)){Object.defineProperty(e.RTCPeerConnection.prototype,"ontrack",{get(){return this._ontrack},set(e){this._ontrack&&this.removeEventListener("track",this._ontrack),this.addEventListener("track",this._ontrack=e)},enumerable:!0,configurable:!0});const t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){return this._ontrackpoly||(this._ontrackpoly=t=>{t.stream.addEventListener("addtrack",(n=>{let r;r=e.RTCPeerConnection.prototype.getReceivers?this.getReceivers().find((e=>e.track&&e.track.id===n.track.id)):{track:n.track};const o=new Event("track");o.track=n.track,o.receiver=r,o.transceiver={receiver:r},o.streams=[t.stream],this.dispatchEvent(o)})),t.stream.getTracks().forEach((n=>{let r;r=e.RTCPeerConnection.prototype.getReceivers?this.getReceivers().find((e=>e.track&&e.track.id===n.id)):{track:n};const o=new Event("track");o.track=n,o.receiver=r,o.transceiver={receiver:r},o.streams=[t.stream],this.dispatchEvent(o)}))},this.addEventListener("addstream",this._ontrackpoly)),t.apply(this,arguments)}}else rn(e,"track",(e=>(e.transceiver||Object.defineProperty(e,"transceiver",{value:{receiver:e.receiver}}),e)))}function vn(e){if("object"==typeof e&&e.RTCPeerConnection&&!("getSenders"in e.RTCPeerConnection.prototype)&&"createDTMFSender"in e.RTCPeerConnection.prototype){const t=function(e,t){return{track:t,get dtmf(){return void 0===this._dtmf&&("audio"===t.kind?this._dtmf=e.createDTMFSender(t):this._dtmf=null),this._dtmf},_pc:e}};if(!e.RTCPeerConnection.prototype.getSenders){e.RTCPeerConnection.prototype.getSenders=function(){return this._senders=this._senders||[],this._senders.slice()};const n=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(e,r){let o=n.apply(this,arguments);return o||(o=t(this,e),this._senders.push(o)),o};const r=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(e){r.apply(this,arguments);const t=this._senders.indexOf(e);-1!==t&&this._senders.splice(t,1)}}const n=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(e){this._senders=this._senders||[],n.apply(this,[e]),e.getTracks().forEach((e=>{this._senders.push(t(this,e))}))};const r=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(e){this._senders=this._senders||[],r.apply(this,[e]),e.getTracks().forEach((e=>{const t=this._senders.find((t=>t.track===e));t&&this._senders.splice(this._senders.indexOf(t),1)}))}}else if("object"==typeof e&&e.RTCPeerConnection&&"getSenders"in e.RTCPeerConnection.prototype&&"createDTMFSender"in e.RTCPeerConnection.prototype&&e.RTCRtpSender&&!("dtmf"in e.RTCRtpSender.prototype)){const t=e.RTCPeerConnection.prototype.getSenders;e.RTCPeerConnection.prototype.getSenders=function(){const e=t.apply(this,[]);return e.forEach((e=>e._pc=this)),e},Object.defineProperty(e.RTCRtpSender.prototype,"dtmf",{get(){return void 0===this._dtmf&&("audio"===this.track.kind?this._dtmf=this._pc.createDTMFSender(this.track):this._dtmf=null),this._dtmf}})}}function gn(e){if(!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){const[e,n,r]=arguments;if(arguments.length>0&&"function"==typeof e)return t.apply(this,arguments);if(0===t.length&&(0===arguments.length||"function"!=typeof e))return t.apply(this,[]);const o=function(e){const t={};return e.result().forEach((e=>{const n={id:e.id,timestamp:e.timestamp,type:{localcandidate:"local-candidate",remotecandidate:"remote-candidate"}[e.type]||e.type};e.names().forEach((t=>{n[t]=e.stat(t)})),t[n.id]=n})),t},i=function(e){return new Map(Object.keys(e).map((t=>[t,e[t]])))};if(arguments.length>=2){const r=function(e){n(i(o(e)))};return t.apply(this,[r,e])}return new Promise(((e,n)=>{t.apply(this,[function(t){e(i(o(t)))},n])})).then(n,r)}}function yn(e){if(!("object"==typeof e&&e.RTCPeerConnection&&e.RTCRtpSender&&e.RTCRtpReceiver))return;if(!("getStats"in e.RTCRtpSender.prototype)){const t=e.RTCPeerConnection.prototype.getSenders;t&&(e.RTCPeerConnection.prototype.getSenders=function(){const e=t.apply(this,[]);return e.forEach((e=>e._pc=this)),e});const n=e.RTCPeerConnection.prototype.addTrack;n&&(e.RTCPeerConnection.prototype.addTrack=function(){const e=n.apply(this,arguments);return e._pc=this,e}),e.RTCRtpSender.prototype.getStats=function(){const e=this;return this._pc.getStats().then((t=>dn(t,e.track,!0)))}}if(!("getStats"in e.RTCRtpReceiver.prototype)){const t=e.RTCPeerConnection.prototype.getReceivers;t&&(e.RTCPeerConnection.prototype.getReceivers=function(){const e=t.apply(this,[]);return e.forEach((e=>e._pc=this)),e}),rn(e,"track",(e=>(e.receiver._pc=e.srcElement,e))),e.RTCRtpReceiver.prototype.getStats=function(){const e=this;return this._pc.getStats().then((t=>dn(t,e.track,!1)))}}if(!("getStats"in e.RTCRtpSender.prototype)||!("getStats"in e.RTCRtpReceiver.prototype))return;const t=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){if(arguments.length>0&&arguments[0]instanceof e.MediaStreamTrack){const e=arguments[0];let t,n,r;return this.getSenders().forEach((n=>{n.track===e&&(t?r=!0:t=n)})),this.getReceivers().forEach((t=>(t.track===e&&(n?r=!0:n=t),t.track===e))),r||t&&n?Promise.reject(new DOMException("There are more than one sender or receiver for the track.","InvalidAccessError")):t?t.getStats():n?n.getStats():Promise.reject(new DOMException("There is no sender or receiver for the track.","InvalidAccessError"))}return t.apply(this,arguments)}}function bn(e){e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},Object.keys(this._shimmedLocalStreams).map((e=>this._shimmedLocalStreams[e][0]))};const t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(e,n){if(!n)return t.apply(this,arguments);this._shimmedLocalStreams=this._shimmedLocalStreams||{};const r=t.apply(this,arguments);return this._shimmedLocalStreams[n.id]?-1===this._shimmedLocalStreams[n.id].indexOf(r)&&this._shimmedLocalStreams[n.id].push(r):this._shimmedLocalStreams[n.id]=[n,r],r};const n=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(e){this._shimmedLocalStreams=this._shimmedLocalStreams||{},e.getTracks().forEach((e=>{if(this.getSenders().find((t=>t.track===e)))throw new DOMException("Track already exists.","InvalidAccessError")}));const t=this.getSenders();n.apply(this,arguments);const r=this.getSenders().filter((e=>-1===t.indexOf(e)));this._shimmedLocalStreams[e.id]=[e].concat(r)};const r=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(e){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},delete this._shimmedLocalStreams[e.id],r.apply(this,arguments)};const o=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(e){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},e&&Object.keys(this._shimmedLocalStreams).forEach((t=>{const n=this._shimmedLocalStreams[t].indexOf(e);-1!==n&&this._shimmedLocalStreams[t].splice(n,1),1===this._shimmedLocalStreams[t].length&&delete this._shimmedLocalStreams[t]})),o.apply(this,arguments)}}function _n(e,t){if(!e.RTCPeerConnection)return;if(e.RTCPeerConnection.prototype.addTrack&&t.version>=65)return bn(e);const n=e.RTCPeerConnection.prototype.getLocalStreams;e.RTCPeerConnection.prototype.getLocalStreams=function(){const e=n.apply(this);return this._reverseStreams=this._reverseStreams||{},e.map((e=>this._reverseStreams[e.id]))};const r=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(t){if(this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},t.getTracks().forEach((e=>{if(this.getSenders().find((t=>t.track===e)))throw new DOMException("Track already exists.","InvalidAccessError")})),!this._reverseStreams[t.id]){const n=new e.MediaStream(t.getTracks());this._streams[t.id]=n,this._reverseStreams[n.id]=t,t=n}r.apply(this,[t])};const o=e.RTCPeerConnection.prototype.removeStream;function i(e,t){let n=t.sdp;return Object.keys(e._reverseStreams||[]).forEach((t=>{const r=e._reverseStreams[t],o=e._streams[r.id];n=n.replace(new RegExp(o.id,"g"),r.id)})),new RTCSessionDescription({type:t.type,sdp:n})}function a(e,t){let n=t.sdp;return Object.keys(e._reverseStreams||[]).forEach((t=>{const r=e._reverseStreams[t],o=e._streams[r.id];n=n.replace(new RegExp(r.id,"g"),o.id)})),new RTCSessionDescription({type:t.type,sdp:n})}e.RTCPeerConnection.prototype.removeStream=function(e){this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},o.apply(this,[this._streams[e.id]||e]),delete this._reverseStreams[this._streams[e.id]?this._streams[e.id].id:e.id],delete this._streams[e.id]},e.RTCPeerConnection.prototype.addTrack=function(t,n){if("closed"===this.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");const r=[].slice.call(arguments,1);if(1!==r.length||!r[0].getTracks().find((e=>e===t)))throw new DOMException("The adapter.js addTrack polyfill only supports a single stream which is associated with the specified track.","NotSupportedError");const o=this.getSenders().find((e=>e.track===t));if(o)throw new DOMException("Track already exists.","InvalidAccessError");this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{};const i=this._streams[n.id];if(i)i.addTrack(t),Promise.resolve().then((()=>{this.dispatchEvent(new Event("negotiationneeded"))}));else{const r=new e.MediaStream([t]);this._streams[n.id]=r,this._reverseStreams[r.id]=n,this.addStream(r)}return this.getSenders().find((e=>e.track===t))},["createOffer","createAnswer"].forEach((function(t){const n=e.RTCPeerConnection.prototype[t],r={[t](){const e=arguments;return arguments.length&&"function"==typeof arguments[0]?n.apply(this,[t=>{const n=i(this,t);e[0].apply(null,[n])},t=>{e[1]&&e[1].apply(null,t)},arguments[2]]):n.apply(this,arguments).then((e=>i(this,e)))}};e.RTCPeerConnection.prototype[t]=r[t]}));const s=e.RTCPeerConnection.prototype.setLocalDescription;e.RTCPeerConnection.prototype.setLocalDescription=function(){return arguments.length&&arguments[0].type?(arguments[0]=a(this,arguments[0]),s.apply(this,arguments)):s.apply(this,arguments)};const l=Object.getOwnPropertyDescriptor(e.RTCPeerConnection.prototype,"localDescription");Object.defineProperty(e.RTCPeerConnection.prototype,"localDescription",{get(){const e=l.get.apply(this);return""===e.type?e:i(this,e)}}),e.RTCPeerConnection.prototype.removeTrack=function(e){if("closed"===this.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");if(!e._pc)throw new DOMException("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.","TypeError");if(e._pc!==this)throw new DOMException("Sender was not created by this connection.","InvalidAccessError");let t;this._streams=this._streams||{},Object.keys(this._streams).forEach((n=>{this._streams[n].getTracks().find((t=>e.track===t))&&(t=this._streams[n])})),t&&(1===t.getTracks().length?this.removeStream(this._reverseStreams[t.id]):t.removeTrack(e.track),this.dispatchEvent(new Event("negotiationneeded")))}}function wn(e,t){!e.RTCPeerConnection&&e.webkitRTCPeerConnection&&(e.RTCPeerConnection=e.webkitRTCPeerConnection),e.RTCPeerConnection&&t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach((function(t){const n=e.RTCPeerConnection.prototype[t],r={[t](){return arguments[0]=new("addIceCandidate"===t?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),n.apply(this,arguments)}};e.RTCPeerConnection.prototype[t]=r[t]}))}function kn(e,t){rn(e,"negotiationneeded",(e=>{const n=e.target;if(!(t.version<72||n.getConfiguration&&"plan-b"===n.getConfiguration().sdpSemantics)||"stable"===n.signalingState)return e}))}var Sn=Object.freeze({__proto__:null,shimMediaStream:hn,shimOnTrack:mn,shimGetSendersWithDtmf:vn,shimGetStats:gn,shimSenderReceiverGetStats:yn,shimAddTrackRemoveTrackWithNative:bn,shimAddTrackRemoveTrack:_n,shimPeerConnection:wn,fixNegotiationNeeded:kn,shimGetUserMedia:fn,shimGetDisplayMedia:function(e,t){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||e.navigator.mediaDevices&&("function"==typeof t?e.navigator.mediaDevices.getDisplayMedia=function(n){return t(n).then((t=>{const r=n.video&&n.video.width,o=n.video&&n.video.height,i=n.video&&n.video.frameRate;return n.video={mandatory:{chromeMediaSource:"desktop",chromeMediaSourceId:t,maxFrameRate:i||3}},r&&(n.video.mandatory.maxWidth=r),o&&(n.video.mandatory.maxHeight=o),e.navigator.mediaDevices.getUserMedia(n)}))}:console.error("shimGetDisplayMedia: getSourceId argument is not a function"))}}),Cn=I((function(e){var t={generateIdentifier:function(){return Math.random().toString(36).substr(2,10)}};t.localCName=t.generateIdentifier(),t.splitLines=function(e){return e.trim().split("\n").map((function(e){return e.trim()}))},t.splitSections=function(e){return e.split("\nm=").map((function(e,t){return(t>0?"m="+e:e).trim()+"\r\n"}))},t.getDescription=function(e){var n=t.splitSections(e);return n&&n[0]},t.getMediaSections=function(e){var n=t.splitSections(e);return n.shift(),n},t.matchPrefix=function(e,n){return t.splitLines(e).filter((function(e){return 0===e.indexOf(n)}))},t.parseCandidate=function(e){for(var t,n={foundation:(t=0===e.indexOf("a=candidate:")?e.substring(12).split(" "):e.substring(10).split(" "))[0],component:parseInt(t[1],10),protocol:t[2].toLowerCase(),priority:parseInt(t[3],10),ip:t[4],address:t[4],port:parseInt(t[5],10),type:t[7]},r=8;r<t.length;r+=2)switch(t[r]){case"raddr":n.relatedAddress=t[r+1];break;case"rport":n.relatedPort=parseInt(t[r+1],10);break;case"tcptype":n.tcpType=t[r+1];break;case"ufrag":n.ufrag=t[r+1],n.usernameFragment=t[r+1];break;default:n[t[r]]=t[r+1]}return n},t.writeCandidate=function(e){var t=[];t.push(e.foundation),t.push(e.component),t.push(e.protocol.toUpperCase()),t.push(e.priority),t.push(e.address||e.ip),t.push(e.port);var n=e.type;return t.push("typ"),t.push(n),"host"!==n&&e.relatedAddress&&e.relatedPort&&(t.push("raddr"),t.push(e.relatedAddress),t.push("rport"),t.push(e.relatedPort)),e.tcpType&&"tcp"===e.protocol.toLowerCase()&&(t.push("tcptype"),t.push(e.tcpType)),(e.usernameFragment||e.ufrag)&&(t.push("ufrag"),t.push(e.usernameFragment||e.ufrag)),"candidate:"+t.join(" ")},t.parseIceOptions=function(e){return e.substr(14).split(" ")},t.parseRtpMap=function(e){var t=e.substr(9).split(" "),n={payloadType:parseInt(t.shift(),10)};return t=t[0].split("/"),n.name=t[0],n.clockRate=parseInt(t[1],10),n.channels=3===t.length?parseInt(t[2],10):1,n.numChannels=n.channels,n},t.writeRtpMap=function(e){var t=e.payloadType;void 0!==e.preferredPayloadType&&(t=e.preferredPayloadType);var n=e.channels||e.numChannels||1;return"a=rtpmap:"+t+" "+e.name+"/"+e.clockRate+(1!==n?"/"+n:"")+"\r\n"},t.parseExtmap=function(e){var t=e.substr(9).split(" ");return{id:parseInt(t[0],10),direction:t[0].indexOf("/")>0?t[0].split("/")[1]:"sendrecv",uri:t[1]}},t.writeExtmap=function(e){return"a=extmap:"+(e.id||e.preferredId)+(e.direction&&"sendrecv"!==e.direction?"/"+e.direction:"")+" "+e.uri+"\r\n"},t.parseFmtp=function(e){for(var t,n={},r=e.substr(e.indexOf(" ")+1).split(";"),o=0;o<r.length;o++)n[(t=r[o].trim().split("="))[0].trim()]=t[1];return n},t.writeFmtp=function(e){var t="",n=e.payloadType;if(void 0!==e.preferredPayloadType&&(n=e.preferredPayloadType),e.parameters&&Object.keys(e.parameters).length){var r=[];Object.keys(e.parameters).forEach((function(t){e.parameters[t]?r.push(t+"="+e.parameters[t]):r.push(t)})),t+="a=fmtp:"+n+" "+r.join(";")+"\r\n"}return t},t.parseRtcpFb=function(e){var t=e.substr(e.indexOf(" ")+1).split(" ");return{type:t.shift(),parameter:t.join(" ")}},t.writeRtcpFb=function(e){var t="",n=e.payloadType;return void 0!==e.preferredPayloadType&&(n=e.preferredPayloadType),e.rtcpFeedback&&e.rtcpFeedback.length&&e.rtcpFeedback.forEach((function(e){t+="a=rtcp-fb:"+n+" "+e.type+(e.parameter&&e.parameter.length?" "+e.parameter:"")+"\r\n"})),t},t.parseSsrcMedia=function(e){var t=e.indexOf(" "),n={ssrc:parseInt(e.substr(7,t-7),10)},r=e.indexOf(":",t);return r>-1?(n.attribute=e.substr(t+1,r-t-1),n.value=e.substr(r+1)):n.attribute=e.substr(t+1),n},t.parseSsrcGroup=function(e){var t=e.substr(13).split(" ");return{semantics:t.shift(),ssrcs:t.map((function(e){return parseInt(e,10)}))}},t.getMid=function(e){var n=t.matchPrefix(e,"a=mid:")[0];if(n)return n.substr(6)},t.parseFingerprint=function(e){var t=e.substr(14).split(" ");return{algorithm:t[0].toLowerCase(),value:t[1]}},t.getDtlsParameters=function(e,n){return{role:"auto",fingerprints:t.matchPrefix(e+n,"a=fingerprint:").map(t.parseFingerprint)}},t.writeDtlsParameters=function(e,t){var n="a=setup:"+t+"\r\n";return e.fingerprints.forEach((function(e){n+="a=fingerprint:"+e.algorithm+" "+e.value+"\r\n"})),n},t.parseCryptoLine=function(e){var t=e.substr(9).split(" ");return{tag:parseInt(t[0],10),cryptoSuite:t[1],keyParams:t[2],sessionParams:t.slice(3)}},t.writeCryptoLine=function(e){return"a=crypto:"+e.tag+" "+e.cryptoSuite+" "+("object"==typeof e.keyParams?t.writeCryptoKeyParams(e.keyParams):e.keyParams)+(e.sessionParams?" "+e.sessionParams.join(" "):"")+"\r\n"},t.parseCryptoKeyParams=function(e){if(0!==e.indexOf("inline:"))return null;var t=e.substr(7).split("|");return{keyMethod:"inline",keySalt:t[0],lifeTime:t[1],mkiValue:t[2]?t[2].split(":")[0]:void 0,mkiLength:t[2]?t[2].split(":")[1]:void 0}},t.writeCryptoKeyParams=function(e){return e.keyMethod+":"+e.keySalt+(e.lifeTime?"|"+e.lifeTime:"")+(e.mkiValue&&e.mkiLength?"|"+e.mkiValue+":"+e.mkiLength:"")},t.getCryptoParameters=function(e,n){return t.matchPrefix(e+n,"a=crypto:").map(t.parseCryptoLine)},t.getIceParameters=function(e,n){var r=t.matchPrefix(e+n,"a=ice-ufrag:")[0],o=t.matchPrefix(e+n,"a=ice-pwd:")[0];return r&&o?{usernameFragment:r.substr(12),password:o.substr(10)}:null},t.writeIceParameters=function(e){return"a=ice-ufrag:"+e.usernameFragment+"\r\na=ice-pwd:"+e.password+"\r\n"},t.parseRtpParameters=function(e){for(var n={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},r=t.splitLines(e)[0].split(" "),o=3;o<r.length;o++){var i=r[o],a=t.matchPrefix(e,"a=rtpmap:"+i+" ")[0];if(a){var s=t.parseRtpMap(a),l=t.matchPrefix(e,"a=fmtp:"+i+" ");switch(s.parameters=l.length?t.parseFmtp(l[0]):{},s.rtcpFeedback=t.matchPrefix(e,"a=rtcp-fb:"+i+" ").map(t.parseRtcpFb),n.codecs.push(s),s.name.toUpperCase()){case"RED":case"ULPFEC":n.fecMechanisms.push(s.name.toUpperCase())}}}return t.matchPrefix(e,"a=extmap:").forEach((function(e){n.headerExtensions.push(t.parseExtmap(e))})),n},t.writeRtpDescription=function(e,n){var r="";r+="m="+e+" ",r+=n.codecs.length>0?"9":"0",r+=" UDP/TLS/RTP/SAVPF ",r+=n.codecs.map((function(e){return void 0!==e.preferredPayloadType?e.preferredPayloadType:e.payloadType})).join(" ")+"\r\n",r+="c=IN IP4 0.0.0.0\r\n",r+="a=rtcp:9 IN IP4 0.0.0.0\r\n",n.codecs.forEach((function(e){r+=t.writeRtpMap(e),r+=t.writeFmtp(e),r+=t.writeRtcpFb(e)}));var o=0;return n.codecs.forEach((function(e){e.maxptime>o&&(o=e.maxptime)})),o>0&&(r+="a=maxptime:"+o+"\r\n"),r+="a=rtcp-mux\r\n",n.headerExtensions&&n.headerExtensions.forEach((function(e){r+=t.writeExtmap(e)})),r},t.parseRtpEncodingParameters=function(e){var n,r=[],o=t.parseRtpParameters(e),i=-1!==o.fecMechanisms.indexOf("RED"),a=-1!==o.fecMechanisms.indexOf("ULPFEC"),s=t.matchPrefix(e,"a=ssrc:").map((function(e){return t.parseSsrcMedia(e)})).filter((function(e){return"cname"===e.attribute})),l=s.length>0&&s[0].ssrc,c=t.matchPrefix(e,"a=ssrc-group:FID").map((function(e){return e.substr(17).split(" ").map((function(e){return parseInt(e,10)}))}));c.length>0&&c[0].length>1&&c[0][0]===l&&(n=c[0][1]),o.codecs.forEach((function(e){if("RTX"===e.name.toUpperCase()&&e.parameters.apt){var t={ssrc:l,codecPayloadType:parseInt(e.parameters.apt,10)};l&&n&&(t.rtx={ssrc:n}),r.push(t),i&&((t=JSON.parse(JSON.stringify(t))).fec={ssrc:l,mechanism:a?"red+ulpfec":"red"},r.push(t))}})),0===r.length&&l&&r.push({ssrc:l});var u=t.matchPrefix(e,"b=");return u.length&&(u=0===u[0].indexOf("b=TIAS:")?parseInt(u[0].substr(7),10):0===u[0].indexOf("b=AS:")?1e3*parseInt(u[0].substr(5),10)*.95-16e3:void 0,r.forEach((function(e){e.maxBitrate=u}))),r},t.parseRtcpParameters=function(e){var n={},r=t.matchPrefix(e,"a=ssrc:").map((function(e){return t.parseSsrcMedia(e)})).filter((function(e){return"cname"===e.attribute}))[0];r&&(n.cname=r.value,n.ssrc=r.ssrc);var o=t.matchPrefix(e,"a=rtcp-rsize");n.reducedSize=o.length>0,n.compound=0===o.length;var i=t.matchPrefix(e,"a=rtcp-mux");return n.mux=i.length>0,n},t.parseMsid=function(e){var n,r=t.matchPrefix(e,"a=msid:");if(1===r.length)return{stream:(n=r[0].substr(7).split(" "))[0],track:n[1]};var o=t.matchPrefix(e,"a=ssrc:").map((function(e){return t.parseSsrcMedia(e)})).filter((function(e){return"msid"===e.attribute}));return o.length>0?{stream:(n=o[0].value.split(" "))[0],track:n[1]}:void 0},t.parseSctpDescription=function(e){var n,r=t.parseMLine(e),o=t.matchPrefix(e,"a=max-message-size:");o.length>0&&(n=parseInt(o[0].substr(19),10)),isNaN(n)&&(n=65536);var i=t.matchPrefix(e,"a=sctp-port:");if(i.length>0)return{port:parseInt(i[0].substr(12),10),protocol:r.fmt,maxMessageSize:n};if(t.matchPrefix(e,"a=sctpmap:").length>0){var a=t.matchPrefix(e,"a=sctpmap:")[0].substr(10).split(" ");return{port:parseInt(a[0],10),protocol:a[1],maxMessageSize:n}}},t.writeSctpDescription=function(e,t){var n=[];return n="DTLS/SCTP"!==e.protocol?["m="+e.kind+" 9 "+e.protocol+" "+t.protocol+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctp-port:"+t.port+"\r\n"]:["m="+e.kind+" 9 "+e.protocol+" "+t.port+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctpmap:"+t.port+" "+t.protocol+" 65535\r\n"],void 0!==t.maxMessageSize&&n.push("a=max-message-size:"+t.maxMessageSize+"\r\n"),n.join("")},t.generateSessionId=function(){return Math.random().toString().substr(2,21)},t.writeSessionBoilerplate=function(e,n,r){var o=void 0!==n?n:2;return"v=0\r\no="+(r||"thisisadapterortc")+" "+(e||t.generateSessionId())+" "+o+" IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\n"},t.writeMediaSection=function(e,n,r,o){var i=t.writeRtpDescription(e.kind,n);if(i+=t.writeIceParameters(e.iceGatherer.getLocalParameters()),i+=t.writeDtlsParameters(e.dtlsTransport.getLocalParameters(),"offer"===r?"actpass":"active"),i+="a=mid:"+e.mid+"\r\n",e.direction?i+="a="+e.direction+"\r\n":e.rtpSender&&e.rtpReceiver?i+="a=sendrecv\r\n":e.rtpSender?i+="a=sendonly\r\n":e.rtpReceiver?i+="a=recvonly\r\n":i+="a=inactive\r\n",e.rtpSender){var a="msid:"+o.id+" "+e.rtpSender.track.id+"\r\n";i+="a="+a,i+="a=ssrc:"+e.sendEncodingParameters[0].ssrc+" "+a,e.sendEncodingParameters[0].rtx&&(i+="a=ssrc:"+e.sendEncodingParameters[0].rtx.ssrc+" "+a,i+="a=ssrc-group:FID "+e.sendEncodingParameters[0].ssrc+" "+e.sendEncodingParameters[0].rtx.ssrc+"\r\n")}return i+="a=ssrc:"+e.sendEncodingParameters[0].ssrc+" cname:"+t.localCName+"\r\n",e.rtpSender&&e.sendEncodingParameters[0].rtx&&(i+="a=ssrc:"+e.sendEncodingParameters[0].rtx.ssrc+" cname:"+t.localCName+"\r\n"),i},t.getDirection=function(e,n){for(var r=t.splitLines(e),o=0;o<r.length;o++)switch(r[o]){case"a=sendrecv":case"a=sendonly":case"a=recvonly":case"a=inactive":return r[o].substr(2)}return n?t.getDirection(n):"sendrecv"},t.getKind=function(e){return t.splitLines(e)[0].split(" ")[0].substr(2)},t.isRejected=function(e){return"0"===e.split(" ",2)[1]},t.parseMLine=function(e){var n=t.splitLines(e)[0].substr(2).split(" ");return{kind:n[0],port:parseInt(n[1],10),protocol:n[2],fmt:n.slice(3).join(" ")}},t.parseOLine=function(e){var n=t.matchPrefix(e,"o=")[0].substr(2).split(" ");return{username:n[0],sessionId:n[1],sessionVersion:parseInt(n[2],10),netType:n[3],addressType:n[4],address:n[5]}},t.isValidSDP=function(e){if("string"!=typeof e||0===e.length)return!1;for(var n=t.splitLines(e),r=0;r<n.length;r++)if(n[r].length<2||"="!==n[r].charAt(1))return!1;return!0},e.exports=t}));function xn(e,t,n,r,o){var i=Cn.writeRtpDescription(e.kind,t);if(i+=Cn.writeIceParameters(e.iceGatherer.getLocalParameters()),i+=Cn.writeDtlsParameters(e.dtlsTransport.getLocalParameters(),"offer"===n?"actpass":o||"active"),i+="a=mid:"+e.mid+"\r\n",e.rtpSender&&e.rtpReceiver?i+="a=sendrecv\r\n":e.rtpSender?i+="a=sendonly\r\n":e.rtpReceiver?i+="a=recvonly\r\n":i+="a=inactive\r\n",e.rtpSender){var a=e.rtpSender._initialTrackId||e.rtpSender.track.id;e.rtpSender._initialTrackId=a;var s="msid:"+(r?r.id:"-")+" "+a+"\r\n";i+="a="+s,i+="a=ssrc:"+e.sendEncodingParameters[0].ssrc+" "+s,e.sendEncodingParameters[0].rtx&&(i+="a=ssrc:"+e.sendEncodingParameters[0].rtx.ssrc+" "+s,i+="a=ssrc-group:FID "+e.sendEncodingParameters[0].ssrc+" "+e.sendEncodingParameters[0].rtx.ssrc+"\r\n")}return i+="a=ssrc:"+e.sendEncodingParameters[0].ssrc+" cname:"+Cn.localCName+"\r\n",e.rtpSender&&e.sendEncodingParameters[0].rtx&&(i+="a=ssrc:"+e.sendEncodingParameters[0].rtx.ssrc+" cname:"+Cn.localCName+"\r\n"),i}function In(e,t){var n={codecs:[],headerExtensions:[],fecMechanisms:[]},r=function(e,t){e=parseInt(e,10);for(var n=0;n<t.length;n++)if(t[n].payloadType===e||t[n].preferredPayloadType===e)return t[n]},o=function(e,t,n,o){var i=r(e.parameters.apt,n),a=r(t.parameters.apt,o);return i&&a&&i.name.toLowerCase()===a.name.toLowerCase()};return e.codecs.forEach((function(r){for(var i=0;i<t.codecs.length;i++){var a=t.codecs[i];if(r.name.toLowerCase()===a.name.toLowerCase()&&r.clockRate===a.clockRate){if("rtx"===r.name.toLowerCase()&&r.parameters&&a.parameters.apt&&!o(r,a,e.codecs,t.codecs))continue;(a=JSON.parse(JSON.stringify(a))).numChannels=Math.min(r.numChannels,a.numChannels),n.codecs.push(a),a.rtcpFeedback=a.rtcpFeedback.filter((function(e){for(var t=0;t<r.rtcpFeedback.length;t++)if(r.rtcpFeedback[t].type===e.type&&r.rtcpFeedback[t].parameter===e.parameter)return!0;return!1}));break}}})),e.headerExtensions.forEach((function(e){for(var r=0;r<t.headerExtensions.length;r++){var o=t.headerExtensions[r];if(e.uri===o.uri){n.headerExtensions.push(o);break}}})),n}function Tn(e,t,n){return-1!=={offer:{setLocalDescription:["stable","have-local-offer"],setRemoteDescription:["stable","have-remote-offer"]},answer:{setLocalDescription:["have-remote-offer","have-local-pranswer"],setRemoteDescription:["have-local-offer","have-remote-pranswer"]}}[t][e].indexOf(n)}function En(e,t){var n=e.getRemoteCandidates().find((function(e){return t.foundation===e.foundation&&t.ip===e.ip&&t.port===e.port&&t.priority===e.priority&&t.protocol===e.protocol&&t.type===e.type}));return n||e.addRemoteCandidate(t),!n}function Rn(e,t){var n=new Error(t);return n.name=e,n.code={NotSupportedError:9,InvalidStateError:11,InvalidAccessError:15,TypeError:void 0,OperationError:void 0}[e],n}var Pn=function(e,t){function n(t,n){n.addTrack(t),n.dispatchEvent(new e.MediaStreamTrackEvent("addtrack",{track:t}))}function r(t,n,r,o){var i=new Event("track");i.track=n,i.receiver=r,i.transceiver={receiver:r},i.streams=o,e.setTimeout((function(){t._dispatchEvent("track",i)}))}var o=function(n){var r=this,o=document.createDocumentFragment();if(["addEventListener","removeEventListener","dispatchEvent"].forEach((function(e){r[e]=o[e].bind(o)})),this.canTrickleIceCandidates=null,this.needNegotiation=!1,this.localStreams=[],this.remoteStreams=[],this._localDescription=null,this._remoteDescription=null,this.signalingState="stable",this.iceConnectionState="new",this.connectionState="new",this.iceGatheringState="new",n=JSON.parse(JSON.stringify(n||{})),this.usingBundle="max-bundle"===n.bundlePolicy,"negotiate"===n.rtcpMuxPolicy)throw Rn("NotSupportedError","rtcpMuxPolicy 'negotiate' is not supported");switch(n.rtcpMuxPolicy||(n.rtcpMuxPolicy="require"),n.iceTransportPolicy){case"all":case"relay":break;default:n.iceTransportPolicy="all"}switch(n.bundlePolicy){case"balanced":case"max-compat":case"max-bundle":break;default:n.bundlePolicy="balanced"}if(n.iceServers=function(e,t){var n=!1;return(e=JSON.parse(JSON.stringify(e))).filter((function(e){if(e&&(e.urls||e.url)){var r=e.urls||e.url;e.url&&!e.urls&&console.warn("RTCIceServer.url is deprecated! Use urls instead.");var o="string"==typeof r;return o&&(r=[r]),r=r.filter((function(e){return 0!==e.indexOf("turn:")||-1===e.indexOf("transport=udp")||-1!==e.indexOf("turn:[")||n?0===e.indexOf("stun:")&&t>=14393&&-1===e.indexOf("?transport=udp"):(n=!0,!0)})),delete e.url,e.urls=o?r[0]:r,!!r.length}}))}(n.iceServers||[],t),this._iceGatherers=[],n.iceCandidatePoolSize)for(var i=n.iceCandidatePoolSize;i>0;i--)this._iceGatherers.push(new e.RTCIceGatherer({iceServers:n.iceServers,gatherPolicy:n.iceTransportPolicy}));else n.iceCandidatePoolSize=0;this._config=n,this.transceivers=[],this._sdpSessionId=Cn.generateSessionId(),this._sdpSessionVersion=0,this._dtlsRole=void 0,this._isClosed=!1};Object.defineProperty(o.prototype,"localDescription",{configurable:!0,get:function(){return this._localDescription}}),Object.defineProperty(o.prototype,"remoteDescription",{configurable:!0,get:function(){return this._remoteDescription}}),o.prototype.onicecandidate=null,o.prototype.onaddstream=null,o.prototype.ontrack=null,o.prototype.onremovestream=null,o.prototype.onsignalingstatechange=null,o.prototype.oniceconnectionstatechange=null,o.prototype.onconnectionstatechange=null,o.prototype.onicegatheringstatechange=null,o.prototype.onnegotiationneeded=null,o.prototype.ondatachannel=null,o.prototype._dispatchEvent=function(e,t){this._isClosed||(this.dispatchEvent(t),"function"==typeof this["on"+e]&&this["on"+e](t))},o.prototype._emitGatheringStateChange=function(){var e=new Event("icegatheringstatechange");this._dispatchEvent("icegatheringstatechange",e)},o.prototype.getConfiguration=function(){return this._config},o.prototype.getLocalStreams=function(){return this.localStreams},o.prototype.getRemoteStreams=function(){return this.remoteStreams},o.prototype._createTransceiver=function(e,t){var n=this.transceivers.length>0,r={track:null,iceGatherer:null,iceTransport:null,dtlsTransport:null,localCapabilities:null,remoteCapabilities:null,rtpSender:null,rtpReceiver:null,kind:e,mid:null,sendEncodingParameters:null,recvEncodingParameters:null,stream:null,associatedRemoteMediaStreams:[],wantReceive:!0};if(this.usingBundle&&n)r.iceTransport=this.transceivers[0].iceTransport,r.dtlsTransport=this.transceivers[0].dtlsTransport;else{var o=this._createIceAndDtlsTransports();r.iceTransport=o.iceTransport,r.dtlsTransport=o.dtlsTransport}return t||this.transceivers.push(r),r},o.prototype.addTrack=function(t,n){if(this._isClosed)throw Rn("InvalidStateError","Attempted to call addTrack on a closed peerconnection.");var r;if(this.transceivers.find((function(e){return e.track===t})))throw Rn("InvalidAccessError","Track already exists.");for(var o=0;o<this.transceivers.length;o++)this.transceivers[o].track||this.transceivers[o].kind!==t.kind||(r=this.transceivers[o]);return r||(r=this._createTransceiver(t.kind)),this._maybeFireNegotiationNeeded(),-1===this.localStreams.indexOf(n)&&this.localStreams.push(n),r.track=t,r.stream=n,r.rtpSender=new e.RTCRtpSender(t,r.dtlsTransport),r.rtpSender},o.prototype.addStream=function(e){var n=this;if(t>=15025)e.getTracks().forEach((function(t){n.addTrack(t,e)}));else{var r=e.clone();e.getTracks().forEach((function(e,t){var n=r.getTracks()[t];e.addEventListener("enabled",(function(e){n.enabled=e.enabled}))})),r.getTracks().forEach((function(e){n.addTrack(e,r)}))}},o.prototype.removeTrack=function(t){if(this._isClosed)throw Rn("InvalidStateError","Attempted to call removeTrack on a closed peerconnection.");if(!(t instanceof e.RTCRtpSender))throw new TypeError("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.");var n=this.transceivers.find((function(e){return e.rtpSender===t}));if(!n)throw Rn("InvalidAccessError","Sender was not created by this connection.");var r=n.stream;n.rtpSender.stop(),n.rtpSender=null,n.track=null,n.stream=null,-1===this.transceivers.map((function(e){return e.stream})).indexOf(r)&&this.localStreams.indexOf(r)>-1&&this.localStreams.splice(this.localStreams.indexOf(r),1),this._maybeFireNegotiationNeeded()},o.prototype.removeStream=function(e){var t=this;e.getTracks().forEach((function(e){var n=t.getSenders().find((function(t){return t.track===e}));n&&t.removeTrack(n)}))},o.prototype.getSenders=function(){return this.transceivers.filter((function(e){return!!e.rtpSender})).map((function(e){return e.rtpSender}))},o.prototype.getReceivers=function(){return this.transceivers.filter((function(e){return!!e.rtpReceiver})).map((function(e){return e.rtpReceiver}))},o.prototype._createIceGatherer=function(t,n){var r=this;if(n&&t>0)return this.transceivers[0].iceGatherer;if(this._iceGatherers.length)return this._iceGatherers.shift();var o=new e.RTCIceGatherer({iceServers:this._config.iceServers,gatherPolicy:this._config.iceTransportPolicy});return Object.defineProperty(o,"state",{value:"new",writable:!0}),this.transceivers[t].bufferedCandidateEvents=[],this.transceivers[t].bufferCandidates=function(e){var n=!e.candidate||0===Object.keys(e.candidate).length;o.state=n?"completed":"gathering",null!==r.transceivers[t].bufferedCandidateEvents&&r.transceivers[t].bufferedCandidateEvents.push(e)},o.addEventListener("localcandidate",this.transceivers[t].bufferCandidates),o},o.prototype._gather=function(t,n){var r=this,o=this.transceivers[n].iceGatherer;if(!o.onlocalcandidate){var i=this.transceivers[n].bufferedCandidateEvents;this.transceivers[n].bufferedCandidateEvents=null,o.removeEventListener("localcandidate",this.transceivers[n].bufferCandidates),o.onlocalcandidate=function(e){if(!(r.usingBundle&&n>0)){var i=new Event("icecandidate");i.candidate={sdpMid:t,sdpMLineIndex:n};var a=e.candidate,s=!a||0===Object.keys(a).length;if(s)"new"!==o.state&&"gathering"!==o.state||(o.state="completed");else{"new"===o.state&&(o.state="gathering"),a.component=1,a.ufrag=o.getLocalParameters().usernameFragment;var l=Cn.writeCandidate(a);i.candidate=Object.assign(i.candidate,Cn.parseCandidate(l)),i.candidate.candidate=l,i.candidate.toJSON=function(){return{candidate:i.candidate.candidate,sdpMid:i.candidate.sdpMid,sdpMLineIndex:i.candidate.sdpMLineIndex,usernameFragment:i.candidate.usernameFragment}}}var c=Cn.getMediaSections(r._localDescription.sdp);c[i.candidate.sdpMLineIndex]+=s?"a=end-of-candidates\r\n":"a="+i.candidate.candidate+"\r\n",r._localDescription.sdp=Cn.getDescription(r._localDescription.sdp)+c.join("");var u=r.transceivers.every((function(e){return e.iceGatherer&&"completed"===e.iceGatherer.state}));"gathering"!==r.iceGatheringState&&(r.iceGatheringState="gathering",r._emitGatheringStateChange()),s||r._dispatchEvent("icecandidate",i),u&&(r._dispatchEvent("icecandidate",new Event("icecandidate")),r.iceGatheringState="complete",r._emitGatheringStateChange())}},e.setTimeout((function(){i.forEach((function(e){o.onlocalcandidate(e)}))}),0)}},o.prototype._createIceAndDtlsTransports=function(){var t=this,n=new e.RTCIceTransport(null);n.onicestatechange=function(){t._updateIceConnectionState(),t._updateConnectionState()};var r=new e.RTCDtlsTransport(n);return r.ondtlsstatechange=function(){t._updateConnectionState()},r.onerror=function(){Object.defineProperty(r,"state",{value:"failed",writable:!0}),t._updateConnectionState()},{iceTransport:n,dtlsTransport:r}},o.prototype._disposeIceAndDtlsTransports=function(e){var t=this.transceivers[e].iceGatherer;t&&(delete t.onlocalcandidate,delete this.transceivers[e].iceGatherer);var n=this.transceivers[e].iceTransport;n&&(delete n.onicestatechange,delete this.transceivers[e].iceTransport);var r=this.transceivers[e].dtlsTransport;r&&(delete r.ondtlsstatechange,delete r.onerror,delete this.transceivers[e].dtlsTransport)},o.prototype._transceive=function(e,n,r){var o=In(e.localCapabilities,e.remoteCapabilities);n&&e.rtpSender&&(o.encodings=e.sendEncodingParameters,o.rtcp={cname:Cn.localCName,compound:e.rtcpParameters.compound},e.recvEncodingParameters.length&&(o.rtcp.ssrc=e.recvEncodingParameters[0].ssrc),e.rtpSender.send(o)),r&&e.rtpReceiver&&o.codecs.length>0&&("video"===e.kind&&e.recvEncodingParameters&&t<15019&&e.recvEncodingParameters.forEach((function(e){delete e.rtx})),e.recvEncodingParameters.length?o.encodings=e.recvEncodingParameters:o.encodings=[{}],o.rtcp={compound:e.rtcpParameters.compound},e.rtcpParameters.cname&&(o.rtcp.cname=e.rtcpParameters.cname),e.sendEncodingParameters.length&&(o.rtcp.ssrc=e.sendEncodingParameters[0].ssrc),e.rtpReceiver.receive(o))},o.prototype.setLocalDescription=function(e){var t,n,r=this;if(-1===["offer","answer"].indexOf(e.type))return Promise.reject(Rn("TypeError",'Unsupported type "'+e.type+'"'));if(!Tn("setLocalDescription",e.type,r.signalingState)||r._isClosed)return Promise.reject(Rn("InvalidStateError","Can not set local "+e.type+" in state "+r.signalingState));if("offer"===e.type)t=Cn.splitSections(e.sdp),n=t.shift(),t.forEach((function(e,t){var n=Cn.parseRtpParameters(e);r.transceivers[t].localCapabilities=n})),r.transceivers.forEach((function(e,t){r._gather(e.mid,t)}));else if("answer"===e.type){t=Cn.splitSections(r._remoteDescription.sdp),n=t.shift();var o=Cn.matchPrefix(n,"a=ice-lite").length>0;t.forEach((function(e,t){var i=r.transceivers[t],a=i.iceGatherer,s=i.iceTransport,l=i.dtlsTransport,c=i.localCapabilities,u=i.remoteCapabilities;if((!Cn.isRejected(e)||0!==Cn.matchPrefix(e,"a=bundle-only").length)&&!i.rejected){var d=Cn.getIceParameters(e,n),p=Cn.getDtlsParameters(e,n);o&&(p.role="server"),r.usingBundle&&0!==t||(r._gather(i.mid,t),"new"===s.state&&s.start(a,d,o?"controlling":"controlled"),"new"===l.state&&l.start(p));var f=In(c,u);r._transceive(i,f.codecs.length>0,!1)}}))}return r._localDescription={type:e.type,sdp:e.sdp},"offer"===e.type?r._updateSignalingState("have-local-offer"):r._updateSignalingState("stable"),Promise.resolve()},o.prototype.setRemoteDescription=function(o){var i=this;if(-1===["offer","answer"].indexOf(o.type))return Promise.reject(Rn("TypeError",'Unsupported type "'+o.type+'"'));if(!Tn("setRemoteDescription",o.type,i.signalingState)||i._isClosed)return Promise.reject(Rn("InvalidStateError","Can not set remote "+o.type+" in state "+i.signalingState));var a={};i.remoteStreams.forEach((function(e){a[e.id]=e}));var s=[],l=Cn.splitSections(o.sdp),c=l.shift(),u=Cn.matchPrefix(c,"a=ice-lite").length>0,d=Cn.matchPrefix(c,"a=group:BUNDLE ").length>0;i.usingBundle=d;var p=Cn.matchPrefix(c,"a=ice-options:")[0];return i.canTrickleIceCandidates=!!p&&p.substr(14).split(" ").indexOf("trickle")>=0,l.forEach((function(r,l){var p=Cn.splitLines(r),f=Cn.getKind(r),h=Cn.isRejected(r)&&0===Cn.matchPrefix(r,"a=bundle-only").length,m=p[0].substr(2).split(" ")[2],v=Cn.getDirection(r,c),g=Cn.parseMsid(r),y=Cn.getMid(r)||Cn.generateIdentifier();if(h||"application"===f&&("DTLS/SCTP"===m||"UDP/DTLS/SCTP"===m))i.transceivers[l]={mid:y,kind:f,protocol:m,rejected:!0};else{var b,_,w,k,S,C,x,I,T;!h&&i.transceivers[l]&&i.transceivers[l].rejected&&(i.transceivers[l]=i._createTransceiver(f,!0));var E,R,P=Cn.parseRtpParameters(r);h||(E=Cn.getIceParameters(r,c),(R=Cn.getDtlsParameters(r,c)).role="client"),x=Cn.parseRtpEncodingParameters(r);var O=Cn.parseRtcpParameters(r),A=Cn.matchPrefix(r,"a=end-of-candidates",c).length>0,D=Cn.matchPrefix(r,"a=candidate:").map((function(e){return Cn.parseCandidate(e)})).filter((function(e){return 1===e.component}));if(("offer"===o.type||"answer"===o.type)&&!h&&d&&l>0&&i.transceivers[l]&&(i._disposeIceAndDtlsTransports(l),i.transceivers[l].iceGatherer=i.transceivers[0].iceGatherer,i.transceivers[l].iceTransport=i.transceivers[0].iceTransport,i.transceivers[l].dtlsTransport=i.transceivers[0].dtlsTransport,i.transceivers[l].rtpSender&&i.transceivers[l].rtpSender.setTransport(i.transceivers[0].dtlsTransport),i.transceivers[l].rtpReceiver&&i.transceivers[l].rtpReceiver.setTransport(i.transceivers[0].dtlsTransport)),"offer"!==o.type||h)"answer"!==o.type||h||(_=(b=i.transceivers[l]).iceGatherer,w=b.iceTransport,k=b.dtlsTransport,S=b.rtpReceiver,C=b.sendEncodingParameters,I=b.localCapabilities,i.transceivers[l].recvEncodingParameters=x,i.transceivers[l].remoteCapabilities=P,i.transceivers[l].rtcpParameters=O,D.length&&"new"===w.state&&(!u&&!A||d&&0!==l?D.forEach((function(e){En(b.iceTransport,e)})):w.setRemoteCandidates(D)),d&&0!==l||("new"===w.state&&w.start(_,E,"controlling"),"new"===k.state&&k.start(R)),!In(b.localCapabilities,b.remoteCapabilities).codecs.filter((function(e){return"rtx"===e.name.toLowerCase()})).length&&b.sendEncodingParameters[0].rtx&&delete b.sendEncodingParameters[0].rtx,i._transceive(b,"sendrecv"===v||"recvonly"===v,"sendrecv"===v||"sendonly"===v),!S||"sendrecv"!==v&&"sendonly"!==v?delete b.rtpReceiver:(T=S.track,g?(a[g.stream]||(a[g.stream]=new e.MediaStream),n(T,a[g.stream]),s.push([T,S,a[g.stream]])):(a.default||(a.default=new e.MediaStream),n(T,a.default),s.push([T,S,a.default]))));else{(b=i.transceivers[l]||i._createTransceiver(f)).mid=y,b.iceGatherer||(b.iceGatherer=i._createIceGatherer(l,d)),D.length&&"new"===b.iceTransport.state&&(!A||d&&0!==l?D.forEach((function(e){En(b.iceTransport,e)})):b.iceTransport.setRemoteCandidates(D)),I=e.RTCRtpReceiver.getCapabilities(f),t<15019&&(I.codecs=I.codecs.filter((function(e){return"rtx"!==e.name}))),C=b.sendEncodingParameters||[{ssrc:1001*(2*l+2)}];var N,M=!1;"sendrecv"===v||"sendonly"===v?(M=!b.rtpReceiver,S=b.rtpReceiver||new e.RTCRtpReceiver(b.dtlsTransport,f),M&&(T=S.track,g&&"-"===g.stream||(g?(a[g.stream]||(a[g.stream]=new e.MediaStream,Object.defineProperty(a[g.stream],"id",{get:function(){return g.stream}})),Object.defineProperty(T,"id",{get:function(){return g.track}}),N=a[g.stream]):(a.default||(a.default=new e.MediaStream),N=a.default)),N&&(n(T,N),b.associatedRemoteMediaStreams.push(N)),s.push([T,S,N]))):b.rtpReceiver&&b.rtpReceiver.track&&(b.associatedRemoteMediaStreams.forEach((function(t){var n=t.getTracks().find((function(e){return e.id===b.rtpReceiver.track.id}));n&&function(t,n){n.removeTrack(t),n.dispatchEvent(new e.MediaStreamTrackEvent("removetrack",{track:t}))}(n,t)})),b.associatedRemoteMediaStreams=[]),b.localCapabilities=I,b.remoteCapabilities=P,b.rtpReceiver=S,b.rtcpParameters=O,b.sendEncodingParameters=C,b.recvEncodingParameters=x,i._transceive(i.transceivers[l],!1,M)}}})),void 0===i._dtlsRole&&(i._dtlsRole="offer"===o.type?"active":"passive"),i._remoteDescription={type:o.type,sdp:o.sdp},"offer"===o.type?i._updateSignalingState("have-remote-offer"):i._updateSignalingState("stable"),Object.keys(a).forEach((function(t){var n=a[t];if(n.getTracks().length){if(-1===i.remoteStreams.indexOf(n)){i.remoteStreams.push(n);var o=new Event("addstream");o.stream=n,e.setTimeout((function(){i._dispatchEvent("addstream",o)}))}s.forEach((function(e){var t=e[0],o=e[1];n.id===e[2].id&&r(i,t,o,[n])}))}})),s.forEach((function(e){e[2]||r(i,e[0],e[1],[])})),e.setTimeout((function(){i&&i.transceivers&&i.transceivers.forEach((function(e){e.iceTransport&&"new"===e.iceTransport.state&&e.iceTransport.getRemoteCandidates().length>0&&(console.warn("Timeout for addRemoteCandidate. Consider sending an end-of-candidates notification"),e.iceTransport.addRemoteCandidate({}))}))}),4e3),Promise.resolve()},o.prototype.close=function(){this.transceivers.forEach((function(e){e.iceTransport&&e.iceTransport.stop(),e.dtlsTransport&&e.dtlsTransport.stop(),e.rtpSender&&e.rtpSender.stop(),e.rtpReceiver&&e.rtpReceiver.stop()})),this._isClosed=!0,this._updateSignalingState("closed")},o.prototype._updateSignalingState=function(e){this.signalingState=e;var t=new Event("signalingstatechange");this._dispatchEvent("signalingstatechange",t)},o.prototype._maybeFireNegotiationNeeded=function(){var t=this;"stable"===this.signalingState&&!0!==this.needNegotiation&&(this.needNegotiation=!0,e.setTimeout((function(){if(t.needNegotiation){t.needNegotiation=!1;var e=new Event("negotiationneeded");t._dispatchEvent("negotiationneeded",e)}}),0))},o.prototype._updateIceConnectionState=function(){var e,t={new:0,closed:0,checking:0,connected:0,completed:0,disconnected:0,failed:0};if(this.transceivers.forEach((function(e){e.iceTransport&&!e.rejected&&t[e.iceTransport.state]++})),e="new",t.failed>0?e="failed":t.checking>0?e="checking":t.disconnected>0?e="disconnected":t.new>0?e="new":t.connected>0?e="connected":t.completed>0&&(e="completed"),e!==this.iceConnectionState){this.iceConnectionState=e;var n=new Event("iceconnectionstatechange");this._dispatchEvent("iceconnectionstatechange",n)}},o.prototype._updateConnectionState=function(){var e,t={new:0,closed:0,connecting:0,connected:0,completed:0,disconnected:0,failed:0};if(this.transceivers.forEach((function(e){e.iceTransport&&e.dtlsTransport&&!e.rejected&&(t[e.iceTransport.state]++,t[e.dtlsTransport.state]++)})),t.connected+=t.completed,e="new",t.failed>0?e="failed":t.connecting>0?e="connecting":t.disconnected>0?e="disconnected":t.new>0?e="new":t.connected>0&&(e="connected"),e!==this.connectionState){this.connectionState=e;var n=new Event("connectionstatechange");this._dispatchEvent("connectionstatechange",n)}},o.prototype.createOffer=function(){var n=this;if(n._isClosed)return Promise.reject(Rn("InvalidStateError","Can not call createOffer after close"));var r=n.transceivers.filter((function(e){return"audio"===e.kind})).length,o=n.transceivers.filter((function(e){return"video"===e.kind})).length,i=arguments[0];if(i){if(i.mandatory||i.optional)throw new TypeError("Legacy mandatory/optional constraints not supported.");void 0!==i.offerToReceiveAudio&&(r=!0===i.offerToReceiveAudio?1:!1===i.offerToReceiveAudio?0:i.offerToReceiveAudio),void 0!==i.offerToReceiveVideo&&(o=!0===i.offerToReceiveVideo?1:!1===i.offerToReceiveVideo?0:i.offerToReceiveVideo)}for(n.transceivers.forEach((function(e){"audio"===e.kind?--r<0&&(e.wantReceive=!1):"video"===e.kind&&--o<0&&(e.wantReceive=!1)}));r>0||o>0;)r>0&&(n._createTransceiver("audio"),r--),o>0&&(n._createTransceiver("video"),o--);var a=Cn.writeSessionBoilerplate(n._sdpSessionId,n._sdpSessionVersion++);n.transceivers.forEach((function(r,o){var i=r.track,a=r.kind,s=r.mid||Cn.generateIdentifier();r.mid=s,r.iceGatherer||(r.iceGatherer=n._createIceGatherer(o,n.usingBundle));var l=e.RTCRtpSender.getCapabilities(a);t<15019&&(l.codecs=l.codecs.filter((function(e){return"rtx"!==e.name}))),l.codecs.forEach((function(e){"H264"===e.name&&void 0===e.parameters["level-asymmetry-allowed"]&&(e.parameters["level-asymmetry-allowed"]="1"),r.remoteCapabilities&&r.remoteCapabilities.codecs&&r.remoteCapabilities.codecs.forEach((function(t){e.name.toLowerCase()===t.name.toLowerCase()&&e.clockRate===t.clockRate&&(e.preferredPayloadType=t.payloadType)}))})),l.headerExtensions.forEach((function(e){(r.remoteCapabilities&&r.remoteCapabilities.headerExtensions||[]).forEach((function(t){e.uri===t.uri&&(e.id=t.id)}))}));var c=r.sendEncodingParameters||[{ssrc:1001*(2*o+1)}];i&&t>=15019&&"video"===a&&!c[0].rtx&&(c[0].rtx={ssrc:c[0].ssrc+1}),r.wantReceive&&(r.rtpReceiver=new e.RTCRtpReceiver(r.dtlsTransport,a)),r.localCapabilities=l,r.sendEncodingParameters=c})),"max-compat"!==n._config.bundlePolicy&&(a+="a=group:BUNDLE "+n.transceivers.map((function(e){return e.mid})).join(" ")+"\r\n"),a+="a=ice-options:trickle\r\n",n.transceivers.forEach((function(e,t){a+=xn(e,e.localCapabilities,"offer",e.stream,n._dtlsRole),a+="a=rtcp-rsize\r\n",!e.iceGatherer||"new"===n.iceGatheringState||0!==t&&n.usingBundle||(e.iceGatherer.getLocalCandidates().forEach((function(e){e.component=1,a+="a="+Cn.writeCandidate(e)+"\r\n"})),"completed"===e.iceGatherer.state&&(a+="a=end-of-candidates\r\n"))}));var s=new e.RTCSessionDescription({type:"offer",sdp:a});return Promise.resolve(s)},o.prototype.createAnswer=function(){var n=this;if(n._isClosed)return Promise.reject(Rn("InvalidStateError","Can not call createAnswer after close"));if("have-remote-offer"!==n.signalingState&&"have-local-pranswer"!==n.signalingState)return Promise.reject(Rn("InvalidStateError","Can not call createAnswer in signalingState "+n.signalingState));var r=Cn.writeSessionBoilerplate(n._sdpSessionId,n._sdpSessionVersion++);n.usingBundle&&(r+="a=group:BUNDLE "+n.transceivers.map((function(e){return e.mid})).join(" ")+"\r\n"),r+="a=ice-options:trickle\r\n";var o=Cn.getMediaSections(n._remoteDescription.sdp).length;n.transceivers.forEach((function(e,i){if(!(i+1>o)){if(e.rejected)return"application"===e.kind?"DTLS/SCTP"===e.protocol?r+="m=application 0 DTLS/SCTP 5000\r\n":r+="m=application 0 "+e.protocol+" webrtc-datachannel\r\n":"audio"===e.kind?r+="m=audio 0 UDP/TLS/RTP/SAVPF 0\r\na=rtpmap:0 PCMU/8000\r\n":"video"===e.kind&&(r+="m=video 0 UDP/TLS/RTP/SAVPF 120\r\na=rtpmap:120 VP8/90000\r\n"),void(r+="c=IN IP4 0.0.0.0\r\na=inactive\r\na=mid:"+e.mid+"\r\n");var a;e.stream&&("audio"===e.kind?a=e.stream.getAudioTracks()[0]:"video"===e.kind&&(a=e.stream.getVideoTracks()[0]),a&&t>=15019&&"video"===e.kind&&!e.sendEncodingParameters[0].rtx&&(e.sendEncodingParameters[0].rtx={ssrc:e.sendEncodingParameters[0].ssrc+1}));var s=In(e.localCapabilities,e.remoteCapabilities);!s.codecs.filter((function(e){return"rtx"===e.name.toLowerCase()})).length&&e.sendEncodingParameters[0].rtx&&delete e.sendEncodingParameters[0].rtx,r+=xn(e,s,"answer",e.stream,n._dtlsRole),e.rtcpParameters&&e.rtcpParameters.reducedSize&&(r+="a=rtcp-rsize\r\n")}}));var i=new e.RTCSessionDescription({type:"answer",sdp:r});return Promise.resolve(i)},o.prototype.addIceCandidate=function(e){var t,n=this;return e&&void 0===e.sdpMLineIndex&&!e.sdpMid?Promise.reject(new TypeError("sdpMLineIndex or sdpMid required")):new Promise((function(r,o){if(!n._remoteDescription)return o(Rn("InvalidStateError","Can not add ICE candidate without a remote description"));if(e&&""!==e.candidate){var i=e.sdpMLineIndex;if(e.sdpMid)for(var a=0;a<n.transceivers.length;a++)if(n.transceivers[a].mid===e.sdpMid){i=a;break}var s=n.transceivers[i];if(!s)return o(Rn("OperationError","Can not add ICE candidate"));if(s.rejected)return r();var l=Object.keys(e.candidate).length>0?Cn.parseCandidate(e.candidate):{};if("tcp"===l.protocol&&(0===l.port||9===l.port))return r();if(l.component&&1!==l.component)return r();if((0===i||i>0&&s.iceTransport!==n.transceivers[0].iceTransport)&&!En(s.iceTransport,l))return o(Rn("OperationError","Can not add ICE candidate"));var c=e.candidate.trim();0===c.indexOf("a=")&&(c=c.substr(2)),(t=Cn.getMediaSections(n._remoteDescription.sdp))[i]+="a="+(l.type?c:"end-of-candidates")+"\r\n",n._remoteDescription.sdp=Cn.getDescription(n._remoteDescription.sdp)+t.join("")}else for(var u=0;u<n.transceivers.length&&(n.transceivers[u].rejected||(n.transceivers[u].iceTransport.addRemoteCandidate({}),(t=Cn.getMediaSections(n._remoteDescription.sdp))[u]+="a=end-of-candidates\r\n",n._remoteDescription.sdp=Cn.getDescription(n._remoteDescription.sdp)+t.join(""),!n.usingBundle));u++);r()}))},o.prototype.getStats=function(t){if(t&&t instanceof e.MediaStreamTrack){var n=null;if(this.transceivers.forEach((function(e){e.rtpSender&&e.rtpSender.track===t?n=e.rtpSender:e.rtpReceiver&&e.rtpReceiver.track===t&&(n=e.rtpReceiver)})),!n)throw Rn("InvalidAccessError","Invalid selector.");return n.getStats()}var r=[];return this.transceivers.forEach((function(e){["rtpSender","rtpReceiver","iceGatherer","iceTransport","dtlsTransport"].forEach((function(t){e[t]&&r.push(e[t].getStats())}))})),Promise.all(r).then((function(e){var t=new Map;return e.forEach((function(e){e.forEach((function(e){t.set(e.id,e)}))})),t}))},["RTCRtpSender","RTCRtpReceiver","RTCIceGatherer","RTCIceTransport","RTCDtlsTransport"].forEach((function(t){var n=e[t];if(n&&n.prototype&&n.prototype.getStats){var r=n.prototype.getStats;n.prototype.getStats=function(){return r.apply(this).then((function(e){var t=new Map;return Object.keys(e).forEach((function(n){var r;e[n].type={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"}[(r=e[n]).type]||r.type,t.set(n,e[n])})),t}))}}}));var i=["createOffer","createAnswer"];return i.forEach((function(e){var t=o.prototype[e];o.prototype[e]=function(){var e=arguments;return"function"==typeof e[0]||"function"==typeof e[1]?t.apply(this,[arguments[2]]).then((function(t){"function"==typeof e[0]&&e[0].apply(null,[t])}),(function(t){"function"==typeof e[1]&&e[1].apply(null,[t])})):t.apply(this,arguments)}})),(i=["setLocalDescription","setRemoteDescription","addIceCandidate"]).forEach((function(e){var t=o.prototype[e];o.prototype[e]=function(){var e=arguments;return"function"==typeof e[1]||"function"==typeof e[2]?t.apply(this,arguments).then((function(){"function"==typeof e[1]&&e[1].apply(null)}),(function(t){"function"==typeof e[2]&&e[2].apply(null,[t])})):t.apply(this,arguments)}})),["getStats"].forEach((function(e){var t=o.prototype[e];o.prototype[e]=function(){var e=arguments;return"function"==typeof e[1]?t.apply(this,arguments).then((function(){"function"==typeof e[1]&&e[1].apply(null)})):t.apply(this,arguments)}})),o};function On(e){const t=e&&e.navigator,n=t.mediaDevices.getUserMedia.bind(t.mediaDevices);t.mediaDevices.getUserMedia=function(e){return n(e).catch((e=>Promise.reject(function(e){return{name:{PermissionDeniedError:"NotAllowedError"}[e.name]||e.name,message:e.message,constraint:e.constraint,toString(){return this.name}}}(e))))}}function An(e){"getDisplayMedia"in e.navigator&&e.navigator.mediaDevices&&(e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||(e.navigator.mediaDevices.getDisplayMedia=e.navigator.getDisplayMedia.bind(e.navigator)))}function Dn(e,t){if(e.RTCIceGatherer&&(e.RTCIceCandidate||(e.RTCIceCandidate=function(e){return e}),e.RTCSessionDescription||(e.RTCSessionDescription=function(e){return e}),t.version<15025)){const t=Object.getOwnPropertyDescriptor(e.MediaStreamTrack.prototype,"enabled");Object.defineProperty(e.MediaStreamTrack.prototype,"enabled",{set(e){t.set.call(this,e);const n=new Event("enabled");n.enabled=e,this.dispatchEvent(n)}})}e.RTCRtpSender&&!("dtmf"in e.RTCRtpSender.prototype)&&Object.defineProperty(e.RTCRtpSender.prototype,"dtmf",{get(){return void 0===this._dtmf&&("audio"===this.track.kind?this._dtmf=new e.RTCDtmfSender(this):"video"===this.track.kind&&(this._dtmf=null)),this._dtmf}}),e.RTCDtmfSender&&!e.RTCDTMFSender&&(e.RTCDTMFSender=e.RTCDtmfSender);const n=Pn(e,t.version);e.RTCPeerConnection=function(e){return e&&e.iceServers&&(e.iceServers=function(e,t){let n=!1;return(e=JSON.parse(JSON.stringify(e))).filter((e=>{if(e&&(e.urls||e.url)){let t=e.urls||e.url;e.url&&!e.urls&&ln("RTCIceServer.url","RTCIceServer.urls");const r="string"==typeof t;return r&&(t=[t]),t=t.filter((e=>{if(0===e.indexOf("stun:"))return!1;const t=e.startsWith("turn")&&!e.startsWith("turn:[")&&e.includes("transport=udp");return t&&!n?(n=!0,!0):t&&!n})),delete e.url,e.urls=r?t[0]:t,!!t.length}}))}(e.iceServers,t.version),sn("ICE servers after filtering:",e.iceServers)),new n(e)},e.RTCPeerConnection.prototype=n.prototype}function Nn(e){e.RTCRtpSender&&!("replaceTrack"in e.RTCRtpSender.prototype)&&(e.RTCRtpSender.prototype.replaceTrack=e.RTCRtpSender.prototype.setTrack)}var Mn=Object.freeze({__proto__:null,shimPeerConnection:Dn,shimReplaceTrack:Nn,shimGetUserMedia:On,shimGetDisplayMedia:An});function Ln(e,t){const n=e&&e.navigator,r=e&&e.MediaStreamTrack;if(n.getUserMedia=function(e,t,r){ln("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),n.mediaDevices.getUserMedia(e).then(t,r)},!(t.version>55&&"autoGainControl"in n.mediaDevices.getSupportedConstraints())){const e=function(e,t,n){t in e&&!(n in e)&&(e[n]=e[t],delete e[t])},t=n.mediaDevices.getUserMedia.bind(n.mediaDevices);if(n.mediaDevices.getUserMedia=function(n){return"object"==typeof n&&"object"==typeof n.audio&&(n=JSON.parse(JSON.stringify(n)),e(n.audio,"autoGainControl","mozAutoGainControl"),e(n.audio,"noiseSuppression","mozNoiseSuppression")),t(n)},r&&r.prototype.getSettings){const t=r.prototype.getSettings;r.prototype.getSettings=function(){const n=t.apply(this,arguments);return e(n,"mozAutoGainControl","autoGainControl"),e(n,"mozNoiseSuppression","noiseSuppression"),n}}if(r&&r.prototype.applyConstraints){const t=r.prototype.applyConstraints;r.prototype.applyConstraints=function(n){return"audio"===this.kind&&"object"==typeof n&&(n=JSON.parse(JSON.stringify(n)),e(n,"autoGainControl","mozAutoGainControl"),e(n,"noiseSuppression","mozNoiseSuppression")),t.apply(this,[n])}}}}function Fn(e){"object"==typeof e&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function Un(e,t){if("object"!=typeof e||!e.RTCPeerConnection&&!e.mozRTCPeerConnection)return;!e.RTCPeerConnection&&e.mozRTCPeerConnection&&(e.RTCPeerConnection=e.mozRTCPeerConnection),t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach((function(t){const n=e.RTCPeerConnection.prototype[t],r={[t](){return arguments[0]=new("addIceCandidate"===t?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),n.apply(this,arguments)}};e.RTCPeerConnection.prototype[t]=r[t]}));const n={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"},r=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){const[e,o,i]=arguments;return r.apply(this,[e||null]).then((e=>{if(t.version<53&&!o)try{e.forEach((e=>{e.type=n[e.type]||e.type}))}catch(r){if("TypeError"!==r.name)throw r;e.forEach(((t,r)=>{e.set(r,Object.assign({},t,{type:n[t.type]||t.type}))}))}return e})).then(o,i)}}function jn(e){if("object"!=typeof e||!e.RTCPeerConnection||!e.RTCRtpSender)return;if(e.RTCRtpSender&&"getStats"in e.RTCRtpSender.prototype)return;const t=e.RTCPeerConnection.prototype.getSenders;t&&(e.RTCPeerConnection.prototype.getSenders=function(){const e=t.apply(this,[]);return e.forEach((e=>e._pc=this)),e});const n=e.RTCPeerConnection.prototype.addTrack;n&&(e.RTCPeerConnection.prototype.addTrack=function(){const e=n.apply(this,arguments);return e._pc=this,e}),e.RTCRtpSender.prototype.getStats=function(){return this.track?this._pc.getStats(this.track):Promise.resolve(new Map)}}function Vn(e){if("object"!=typeof e||!e.RTCPeerConnection||!e.RTCRtpSender)return;if(e.RTCRtpSender&&"getStats"in e.RTCRtpReceiver.prototype)return;const t=e.RTCPeerConnection.prototype.getReceivers;t&&(e.RTCPeerConnection.prototype.getReceivers=function(){const e=t.apply(this,[]);return e.forEach((e=>e._pc=this)),e}),rn(e,"track",(e=>(e.receiver._pc=e.srcElement,e))),e.RTCRtpReceiver.prototype.getStats=function(){return this._pc.getStats(this.track)}}function Hn(e){e.RTCPeerConnection&&!("removeStream"in e.RTCPeerConnection.prototype)&&(e.RTCPeerConnection.prototype.removeStream=function(e){ln("removeStream","removeTrack"),this.getSenders().forEach((t=>{t.track&&e.getTracks().includes(t.track)&&this.removeTrack(t)}))})}function Bn(e){e.DataChannel&&!e.RTCDataChannel&&(e.RTCDataChannel=e.DataChannel)}function $n(e){if("object"!=typeof e||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype.addTransceiver;t&&(e.RTCPeerConnection.prototype.addTransceiver=function(){this.setParametersPromises=[];const e=arguments[1],n=e&&"sendEncodings"in e;n&&e.sendEncodings.forEach((e=>{if("rid"in e&&!/^[a-z0-9]{0,16}$/i.test(e.rid))throw new TypeError("Invalid RID value provided.");if("scaleResolutionDownBy"in e&&!(parseFloat(e.scaleResolutionDownBy)>=1))throw new RangeError("scale_resolution_down_by must be >= 1.0");if("maxFramerate"in e&&!(parseFloat(e.maxFramerate)>=0))throw new RangeError("max_framerate must be >= 0.0")}));const r=t.apply(this,arguments);if(n){const{sender:t}=r,n=t.getParameters();(!("encodings"in n)||1===n.encodings.length&&0===Object.keys(n.encodings[0]).length)&&(n.encodings=e.sendEncodings,t.sendEncodings=e.sendEncodings,this.setParametersPromises.push(t.setParameters(n).then((()=>{delete t.sendEncodings})).catch((()=>{delete t.sendEncodings}))))}return r})}function zn(e){if("object"!=typeof e||!e.RTCRtpSender)return;const t=e.RTCRtpSender.prototype.getParameters;t&&(e.RTCRtpSender.prototype.getParameters=function(){const e=t.apply(this,arguments);return"encodings"in e||(e.encodings=[].concat(this.sendEncodings||[{}])),e})}function Wn(e){if("object"!=typeof e||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then((()=>t.apply(this,arguments))).finally((()=>{this.setParametersPromises=[]})):t.apply(this,arguments)}}function qn(e){if("object"!=typeof e||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype.createAnswer;e.RTCPeerConnection.prototype.createAnswer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then((()=>t.apply(this,arguments))).finally((()=>{this.setParametersPromises=[]})):t.apply(this,arguments)}}var Zn=Object.freeze({__proto__:null,shimOnTrack:Fn,shimPeerConnection:Un,shimSenderGetStats:jn,shimReceiverGetStats:Vn,shimRemoveStream:Hn,shimRTCDataChannel:Bn,shimAddTransceiver:$n,shimGetParameters:zn,shimCreateOffer:Wn,shimCreateAnswer:qn,shimGetUserMedia:Ln,shimGetDisplayMedia:function(e,t){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||e.navigator.mediaDevices&&(e.navigator.mediaDevices.getDisplayMedia=function(n){if(!n||!n.video){const e=new DOMException("getDisplayMedia without video constraints is undefined");return e.name="NotFoundError",e.code=8,Promise.reject(e)}return!0===n.video?n.video={mediaSource:t}:n.video.mediaSource=t,e.navigator.mediaDevices.getUserMedia(n)})}});function Yn(e){if("object"==typeof e&&e.RTCPeerConnection){if("getLocalStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._localStreams||(this._localStreams=[]),this._localStreams}),!("addStream"in e.RTCPeerConnection.prototype)){const t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addStream=function(e){this._localStreams||(this._localStreams=[]),this._localStreams.includes(e)||this._localStreams.push(e),e.getAudioTracks().forEach((n=>t.call(this,n,e))),e.getVideoTracks().forEach((n=>t.call(this,n,e)))},e.RTCPeerConnection.prototype.addTrack=function(e,...n){return n&&n.forEach((e=>{this._localStreams?this._localStreams.includes(e)||this._localStreams.push(e):this._localStreams=[e]})),t.apply(this,arguments)}}"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(e){this._localStreams||(this._localStreams=[]);const t=this._localStreams.indexOf(e);if(-1===t)return;this._localStreams.splice(t,1);const n=e.getTracks();this.getSenders().forEach((e=>{n.includes(e.track)&&this.removeTrack(e)}))})}}function Kn(e){if("object"==typeof e&&e.RTCPeerConnection&&("getRemoteStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getRemoteStreams=function(){return this._remoteStreams?this._remoteStreams:[]}),!("onaddstream"in e.RTCPeerConnection.prototype))){Object.defineProperty(e.RTCPeerConnection.prototype,"onaddstream",{get(){return this._onaddstream},set(e){this._onaddstream&&(this.removeEventListener("addstream",this._onaddstream),this.removeEventListener("track",this._onaddstreampoly)),this.addEventListener("addstream",this._onaddstream=e),this.addEventListener("track",this._onaddstreampoly=e=>{e.streams.forEach((e=>{if(this._remoteStreams||(this._remoteStreams=[]),this._remoteStreams.includes(e))return;this._remoteStreams.push(e);const t=new Event("addstream");t.stream=e,this.dispatchEvent(t)}))})}});const t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){const e=this;return this._onaddstreampoly||this.addEventListener("track",this._onaddstreampoly=function(t){t.streams.forEach((t=>{if(e._remoteStreams||(e._remoteStreams=[]),e._remoteStreams.indexOf(t)>=0)return;e._remoteStreams.push(t);const n=new Event("addstream");n.stream=t,e.dispatchEvent(n)}))}),t.apply(e,arguments)}}}function Jn(e){if("object"!=typeof e||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype,n=t.createOffer,r=t.createAnswer,o=t.setLocalDescription,i=t.setRemoteDescription,a=t.addIceCandidate;t.createOffer=function(e,t){const r=arguments.length>=2?arguments[2]:arguments[0],o=n.apply(this,[r]);return t?(o.then(e,t),Promise.resolve()):o},t.createAnswer=function(e,t){const n=arguments.length>=2?arguments[2]:arguments[0],o=r.apply(this,[n]);return t?(o.then(e,t),Promise.resolve()):o};let s=function(e,t,n){const r=o.apply(this,[e]);return n?(r.then(t,n),Promise.resolve()):r};t.setLocalDescription=s,s=function(e,t,n){const r=i.apply(this,[e]);return n?(r.then(t,n),Promise.resolve()):r},t.setRemoteDescription=s,s=function(e,t,n){const r=a.apply(this,[e]);return n?(r.then(t,n),Promise.resolve()):r},t.addIceCandidate=s}function Gn(e){const t=e&&e.navigator;if(t.mediaDevices&&t.mediaDevices.getUserMedia){const e=t.mediaDevices,n=e.getUserMedia.bind(e);t.mediaDevices.getUserMedia=e=>n(Xn(e))}!t.getUserMedia&&t.mediaDevices&&t.mediaDevices.getUserMedia&&(t.getUserMedia=function(e,n,r){t.mediaDevices.getUserMedia(e).then(n,r)}.bind(t))}function Xn(e){return e&&void 0!==e.video?Object.assign({},e,{video:un(e.video)}):e}function Qn(e){if(!e.RTCPeerConnection)return;const t=e.RTCPeerConnection;e.RTCPeerConnection=function(e,n){if(e&&e.iceServers){const t=[];for(let n=0;n<e.iceServers.length;n++){let r=e.iceServers[n];!r.hasOwnProperty("urls")&&r.hasOwnProperty("url")?(ln("RTCIceServer.url","RTCIceServer.urls"),r=JSON.parse(JSON.stringify(r)),r.urls=r.url,delete r.url,t.push(r)):t.push(e.iceServers[n])}e.iceServers=t}return new t(e,n)},e.RTCPeerConnection.prototype=t.prototype,"generateCertificate"in t&&Object.defineProperty(e.RTCPeerConnection,"generateCertificate",{get:()=>t.generateCertificate})}function er(e){"object"==typeof e&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function tr(e){const t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(e){if(e){void 0!==e.offerToReceiveAudio&&(e.offerToReceiveAudio=!!e.offerToReceiveAudio);const t=this.getTransceivers().find((e=>"audio"===e.receiver.track.kind));!1===e.offerToReceiveAudio&&t?"sendrecv"===t.direction?t.setDirection?t.setDirection("sendonly"):t.direction="sendonly":"recvonly"===t.direction&&(t.setDirection?t.setDirection("inactive"):t.direction="inactive"):!0!==e.offerToReceiveAudio||t||this.addTransceiver("audio"),void 0!==e.offerToReceiveVideo&&(e.offerToReceiveVideo=!!e.offerToReceiveVideo);const n=this.getTransceivers().find((e=>"video"===e.receiver.track.kind));!1===e.offerToReceiveVideo&&n?"sendrecv"===n.direction?n.setDirection?n.setDirection("sendonly"):n.direction="sendonly":"recvonly"===n.direction&&(n.setDirection?n.setDirection("inactive"):n.direction="inactive"):!0!==e.offerToReceiveVideo||n||this.addTransceiver("video")}return t.apply(this,arguments)}}function nr(e){"object"!=typeof e||e.AudioContext||(e.AudioContext=e.webkitAudioContext)}var rr=Object.freeze({__proto__:null,shimLocalStreamsAPI:Yn,shimRemoteStreamsAPI:Kn,shimCallbacksAPI:Jn,shimGetUserMedia:Gn,shimConstraints:Xn,shimRTCIceServerUrls:Qn,shimTrackEventTransceiver:er,shimCreateOfferLegacy:tr,shimAudioContext:nr});function or(e){if(!e.RTCIceCandidate||e.RTCIceCandidate&&"foundation"in e.RTCIceCandidate.prototype)return;const t=e.RTCIceCandidate;e.RTCIceCandidate=function(e){if("object"==typeof e&&e.candidate&&0===e.candidate.indexOf("a=")&&((e=JSON.parse(JSON.stringify(e))).candidate=e.candidate.substr(2)),e.candidate&&e.candidate.length){const n=new t(e),r=Cn.parseCandidate(e.candidate),o=Object.assign(n,r);return o.toJSON=function(){return{candidate:o.candidate,sdpMid:o.sdpMid,sdpMLineIndex:o.sdpMLineIndex,usernameFragment:o.usernameFragment}},o}return new t(e)},e.RTCIceCandidate.prototype=t.prototype,rn(e,"icecandidate",(t=>(t.candidate&&Object.defineProperty(t,"candidate",{value:new e.RTCIceCandidate(t.candidate),writable:"false"}),t)))}function ir(e,t){if(!e.RTCPeerConnection)return;"sctp"in e.RTCPeerConnection.prototype||Object.defineProperty(e.RTCPeerConnection.prototype,"sctp",{get(){return void 0===this._sctp?null:this._sctp}});const n=function(e){if(!e||!e.sdp)return!1;const t=Cn.splitSections(e.sdp);return t.shift(),t.some((e=>{const t=Cn.parseMLine(e);return t&&"application"===t.kind&&-1!==t.protocol.indexOf("SCTP")}))},r=function(e){const t=e.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);if(null===t||t.length<2)return-1;const n=parseInt(t[1],10);return n!=n?-1:n},o=function(e){let n=65536;return"firefox"===t.browser&&(n=t.version<57?-1===e?16384:2147483637:t.version<60?57===t.version?65535:65536:2147483637),n},i=function(e,n){let r=65536;"firefox"===t.browser&&57===t.version&&(r=65535);const o=Cn.matchPrefix(e.sdp,"a=max-message-size:");return o.length>0?r=parseInt(o[0].substr(19),10):"firefox"===t.browser&&-1!==n&&(r=2147483637),r},a=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){if(this._sctp=null,"chrome"===t.browser&&t.version>=76){const{sdpSemantics:e}=this.getConfiguration();"plan-b"===e&&Object.defineProperty(this,"sctp",{get(){return void 0===this._sctp?null:this._sctp},enumerable:!0,configurable:!0})}if(n(arguments[0])){const e=r(arguments[0]),t=o(e),n=i(arguments[0],e);let a;a=0===t&&0===n?Number.POSITIVE_INFINITY:0===t||0===n?Math.max(t,n):Math.min(t,n);const s={};Object.defineProperty(s,"maxMessageSize",{get:()=>a}),this._sctp=s}return a.apply(this,arguments)}}function ar(e){if(!e.RTCPeerConnection||!("createDataChannel"in e.RTCPeerConnection.prototype))return;function t(e,t){const n=e.send;e.send=function(){const r=arguments[0],o=r.length||r.size||r.byteLength;if("open"===e.readyState&&t.sctp&&o>t.sctp.maxMessageSize)throw new TypeError("Message too large (can send a maximum of "+t.sctp.maxMessageSize+" bytes)");return n.apply(e,arguments)}}const n=e.RTCPeerConnection.prototype.createDataChannel;e.RTCPeerConnection.prototype.createDataChannel=function(){const e=n.apply(this,arguments);return t(e,this),e},rn(e,"datachannel",(e=>(t(e.channel,e.target),e)))}function sr(e){if(!e.RTCPeerConnection||"connectionState"in e.RTCPeerConnection.prototype)return;const t=e.RTCPeerConnection.prototype;Object.defineProperty(t,"connectionState",{get(){return{completed:"connected",checking:"connecting"}[this.iceConnectionState]||this.iceConnectionState},enumerable:!0,configurable:!0}),Object.defineProperty(t,"onconnectionstatechange",{get(){return this._onconnectionstatechange||null},set(e){this._onconnectionstatechange&&(this.removeEventListener("connectionstatechange",this._onconnectionstatechange),delete this._onconnectionstatechange),e&&this.addEventListener("connectionstatechange",this._onconnectionstatechange=e)},enumerable:!0,configurable:!0}),["setLocalDescription","setRemoteDescription"].forEach((e=>{const n=t[e];t[e]=function(){return this._connectionstatechangepoly||(this._connectionstatechangepoly=e=>{const t=e.target;if(t._lastConnectionState!==t.connectionState){t._lastConnectionState=t.connectionState;const n=new Event("connectionstatechange",e);t.dispatchEvent(n)}return e},this.addEventListener("iceconnectionstatechange",this._connectionstatechangepoly)),n.apply(this,arguments)}}))}function lr(e,t){if(!e.RTCPeerConnection)return;if("chrome"===t.browser&&t.version>=71)return;if("safari"===t.browser&&t.version>=605)return;const n=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(t){if(t&&t.sdp&&-1!==t.sdp.indexOf("\na=extmap-allow-mixed")){const n=t.sdp.split("\n").filter((e=>"a=extmap-allow-mixed"!==e.trim())).join("\n");e.RTCSessionDescription&&t instanceof e.RTCSessionDescription?arguments[0]=new e.RTCSessionDescription({type:t.type,sdp:n}):t.sdp=n}return n.apply(this,arguments)}}function cr(e,t){if(!e.RTCPeerConnection||!e.RTCPeerConnection.prototype)return;const n=e.RTCPeerConnection.prototype.addIceCandidate;n&&0!==n.length&&(e.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?("chrome"===t.browser&&t.version<78||"firefox"===t.browser&&t.version<68||"safari"===t.browser)&&arguments[0]&&""===arguments[0].candidate?Promise.resolve():n.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())})}var ur=Object.freeze({__proto__:null,shimRTCIceCandidate:or,shimMaxMessageSize:ir,shimSendThrowTypeError:ar,shimConnectionState:sr,removeExtmapAllowMixed:lr,shimAddIceCandidateNullOrEmpty:cr});!function({window:e}={},t={shimChrome:!0,shimFirefox:!0,shimEdge:!0,shimSafari:!0}){const n=sn,r=function(e){const t={browser:null,version:null};if(void 0===e||!e.navigator)return t.browser="Not a browser.",t;const{navigator:n}=e;if(n.mozGetUserMedia)t.browser="firefox",t.version=nn(n.userAgent,/Firefox\/(\d+)\./,1);else if(n.webkitGetUserMedia||!1===e.isSecureContext&&e.webkitRTCPeerConnection&&!e.RTCIceGatherer)t.browser="chrome",t.version=nn(n.userAgent,/Chrom(e|ium)\/(\d+)\./,2);else if(n.mediaDevices&&n.userAgent.match(/Edge\/(\d+).(\d+)$/))t.browser="edge",t.version=nn(n.userAgent,/Edge\/(\d+).(\d+)$/,2);else{if(!e.RTCPeerConnection||!n.userAgent.match(/AppleWebKit\/(\d+)\./))return t.browser="Not a supported browser.",t;t.browser="safari",t.version=nn(n.userAgent,/AppleWebKit\/(\d+)\./,1),t.supportsUnifiedPlan=e.RTCRtpTransceiver&&"currentDirection"in e.RTCRtpTransceiver.prototype}return t}(e),o={browserDetails:r,commonShim:ur,extractVersion:nn,disableLog:on,disableWarnings:an};switch(r.browser){case"chrome":if(!Sn||!wn||!t.shimChrome)return n("Chrome shim is not included in this adapter release."),o;if(null===r.version)return n("Chrome shim can not determine version, not shimming."),o;n("adapter.js shimming chrome."),o.browserShim=Sn,cr(e,r),fn(e,r),hn(e),wn(e,r),mn(e),_n(e,r),vn(e),gn(e),yn(e),kn(e,r),or(e),sr(e),ir(e,r),ar(e),lr(e,r);break;case"firefox":if(!Zn||!Un||!t.shimFirefox)return n("Firefox shim is not included in this adapter release."),o;n("adapter.js shimming firefox."),o.browserShim=Zn,cr(e,r),Ln(e,r),Un(e,r),Fn(e),Hn(e),jn(e),Vn(e),Bn(e),$n(e),zn(e),Wn(e),qn(e),or(e),sr(e),ir(e,r),ar(e);break;case"edge":if(!Mn||!Dn||!t.shimEdge)return n("MS edge shim is not included in this adapter release."),o;n("adapter.js shimming edge."),o.browserShim=Mn,On(e),An(e),Dn(e,r),Nn(e),ir(e,r),ar(e);break;case"safari":if(!rr||!t.shimSafari)return n("Safari shim is not included in this adapter release."),o;n("adapter.js shimming safari."),o.browserShim=rr,cr(e,r),Qn(e),tr(e),Jn(e),Yn(e),Kn(e),er(e),Gn(e),nr(e),or(e),ir(e,r),ar(e),lr(e,r);break;default:n("Unsupported browser!")}}({window:"undefined"==typeof window?void 0:window});var dr=[].slice,pr=/MSIE .\./.test(Z),fr=function(e){return function(t,n){var r=arguments.length>2,o=r?dr.call(arguments,2):void 0;return e(r?function(){($(t)?t:Function(t)).apply(this,o)}:t,n)}};It({global:!0,bind:!0,forced:pr},{setTimeout:fr(P.setTimeout),setInterval:fr(P.setInterval)});var hr,mr=Object.keys||function(e){return dt(e,pt)},vr=A?Object.defineProperties:function(e,t){Te(e);for(var n,r=mr(t),o=r.length,i=0;o>i;)Re.f(e,n=r[i++],t[n]);return e},gr=q("document","documentElement"),yr=je("IE_PROTO"),br=function(){},_r=function(e){return"<script>"+e+"<\/script>"},wr=function(e){e.write(_r("")),e.close();var t=e.parentWindow.Object;return e=null,t},kr=function(){try{hr=new ActiveXObject("htmlfile")}catch(o){}var e,t;kr="undefined"!=typeof document?document.domain&&hr?wr(hr):((t=Se("iframe")).style.display="none",gr.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(_r("document.F=Object")),e.close(),e.F):wr(hr);for(var n=pt.length;n--;)delete kr.prototype[pt[n]];return kr()};Ve[yr]=!0;var Sr=Object.create||function(e,t){var n;return null!==e?(br.prototype=Te(e),n=new br,br.prototype=null,n[yr]=e):n=kr(),void 0===t?n:vr(n,t)},Cr=ge("unscopables"),xr=Array.prototype;null==xr[Cr]&&Re.f(xr,Cr,{configurable:!0,value:Sr(null)});var Ir,Tr,Er,Rr=function(e){xr[Cr][e]=!0},Pr={},Or=!O((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Ar=je("IE_PROTO"),Dr=Object.prototype,Nr=Or?Object.getPrototypeOf:function(e){var t=le(e);if(ue(t,Ar))return t[Ar];var n=t.constructor;return $(n)&&t instanceof n?n.prototype:t instanceof Object?Dr:null},Mr=ge("iterator"),Lr=!1;[].keys&&("next"in(Er=[].keys())?(Tr=Nr(Nr(Er)))!==Object.prototype&&(Ir=Tr):Lr=!0),(null==Ir||O((function(){var e={};return Ir[Mr].call(e)!==e})))&&(Ir={}),$(Ir[Mr])||Xe(Ir,Mr,(function(){return this}));var Fr={IteratorPrototype:Ir,BUGGY_SAFARI_ITERATORS:Lr},Ur=Re.f,jr=ge("toStringTag"),Vr=function(e,t,n){e&&!ue(e=n?e:e.prototype,jr)&&Ur(e,jr,{configurable:!0,value:t})},Hr=Fr.IteratorPrototype,Br=function(){return this},$r=function(e,t,n){var r=t+" Iterator";return e.prototype=Sr(Hr,{next:L(1,n)}),Vr(e,r,!1),Pr[r]=Br,e},zr=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(o){}return function(n,r){return Te(n),function(e){if("object"==typeof e||$(e))return e;throw TypeError("Can't set "+String(e)+" as a prototype")}(r),t?e.call(n,r):n.__proto__=r,n}}():void 0),Wr=Ge.PROPER,qr=Ge.CONFIGURABLE,Zr=Fr.IteratorPrototype,Yr=Fr.BUGGY_SAFARI_ITERATORS,Kr=ge("iterator"),Jr=function(){return this},Gr=function(e,t,n,r,o,i,a){$r(n,t,r);var s,l,c,u=function(e){if(e===o&&m)return m;if(!Yr&&e in f)return f[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},d=t+" Iterator",p=!1,f=e.prototype,h=f[Kr]||f["@@iterator"]||o&&f[o],m=!Yr&&h||u(o),v="Array"==t&&f.entries||h;if(v&&(s=Nr(v.call(new e)))!==Object.prototype&&s.next&&(Nr(s)!==Zr&&(zr?zr(s,Zr):$(s[Kr])||Xe(s,Kr,Jr)),Vr(s,d,!0)),Wr&&"values"==o&&h&&"values"!==h.name&&(qr?Pe(f,"name","values"):(p=!0,m=function(){return h.call(this)})),o)if(l={values:u("values"),keys:i?m:u("keys"),entries:u("entries")},a)for(c in l)(Yr||p||!(c in f))&&Xe(f,c,l[c]);else It({target:t,proto:!0,forced:Yr||p},l);return f[Kr]!==m&&Xe(f,Kr,m,{name:o}),Pr[t]=m,l},Xr=Ze.set,Qr=Ze.getterFor("Array Iterator"),eo=Gr(Array,"Array",(function(e,t){Xr(this,{type:"Array Iterator",target:B(e),index:0,kind:t})}),(function(){var e=Qr(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");Pr.Arguments=Pr.Array,Rr("keys"),Rr("values"),Rr("entries");var to=ht.f,no={}.toString,ro="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],oo={f:function(e){return ro&&"[object Window]"==no.call(e)?function(e){try{return to(e)}catch(t){return ro.slice()}}(e):to(B(e))}},io=!O((function(){return Object.isExtensible(Object.preventExtensions({}))})),ao=I((function(e){var t=Re.f,n=!1,r=fe("meta"),o=0,i=Object.isExtensible||function(){return!0},a=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},s=e.exports={enable:function(){s.enable=function(){},n=!0;var e=ht.f,t=[].splice,o={};o[r]=1,e(o).length&&(ht.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t.call(o,i,1);break}return o},It({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:oo.f}))},fastKey:function(e,t){if(!z(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!ue(e,r)){if(!i(e))return"F";if(!t)return"E";a(e)}return e[r].objectID},getWeakData:function(e,t){if(!ue(e,r)){if(!i(e))return!0;if(!t)return!1;a(e)}return e[r].weakData},onFreeze:function(e){return io&&n&&i(e)&&!ue(e,r)&&a(e),e}};Ve[r]=!0})),so=(ao.enable,ao.fastKey,ao.getWeakData,ao.onFreeze,ge("iterator")),lo=Array.prototype,co=function(e){return void 0!==e&&(Pr.Array===e||lo[so]===e)},uo=ge("iterator"),po=function(e){if(null!=e)return oe(e,uo)||oe(e,"@@iterator")||Pr[Dt(e)]},fo=function(e,t){var n=arguments.length<2?po(e):t;if(re(n))return Te(n.call(e));throw TypeError(String(e)+" is not iterable")},ho=function(e,t,n){var r,o;Te(e);try{if(!(r=oe(e,"return"))){if("throw"===t)throw n;return n}r=r.call(e)}catch(a){o=!0,r=a}if("throw"===t)throw n;if(o)throw r;return Te(r),n},mo=function(e,t){this.stopped=e,this.result=t},vo=function(e,t,n){var r,o,i,a,s,l,c,u=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),f=!(!n||!n.INTERRUPTED),h=Tt(t,u,1+d+f),m=function(e){return r&&ho(r,"normal",e),new mo(!0,e)},v=function(e){return d?(Te(e),f?h(e[0],e[1],m):h(e[0],e[1])):f?h(e,m):h(e)};if(p)r=e;else{if(!(o=po(e)))throw TypeError(String(e)+" is not iterable");if(co(o)){for(i=0,a=st(e);a>i;i++)if((s=v(e[i]))&&s instanceof mo)return s;return new mo(!1)}r=fo(e,o)}for(l=r.next;!(c=l.call(r)).done;){try{s=v(c.value)}catch(y){ho(r,"throw",y)}if("object"==typeof s&&s&&s instanceof mo)return s}return new mo(!1)},go=function(e,t,n){if(e instanceof t)return e;throw TypeError("Incorrect "+(n?n+" ":"")+"invocation")},yo=ge("iterator"),bo=!1;try{var _o=0,wo={next:function(){return{done:!!_o++}},return:function(){bo=!0}};wo[yo]=function(){return this},Array.from(wo,(function(){throw 2}))}catch(KS){}var ko=function(e,t){if(!t&&!bo)return!1;var n=!1;try{var r={};r[yo]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(KS){}return n},So=function(e,t,n){var r,o;return zr&&$(r=t.constructor)&&r!==n&&z(o=r.prototype)&&o!==n.prototype&&zr(e,o),e},Co=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=P[e],s=a&&a.prototype,l=a,c={},u=function(e){var t=s[e];Xe(s,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!z(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return o&&!z(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!z(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(Ct(e,!$(a)||!(o||s.forEach&&!O((function(){(new a).entries().next()})))))l=n.getConstructor(t,e,r,i),ao.enable();else if(Ct(e,!0)){var d=new l,p=d[i](o?{}:-0,1)!=d,f=O((function(){d.has(1)})),h=ko((function(e){new a(e)})),m=!o&&O((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((l=t((function(t,n){go(t,l,e);var o=So(new a,t,l);return null!=n&&vo(n,o[i],{that:o,AS_ENTRIES:r}),o}))).prototype=s,s.constructor=l),(f||m)&&(u("delete"),u("has"),r&&u("get")),(m||p)&&u(i),o&&s.clear&&delete s.clear}return c[e]=l,It({global:!0,forced:l!=a},c),Vr(l,e),o||n.setStrong(l,e,r),l},xo=function(e,t,n){for(var r in t)Xe(e,r,t[r],n);return e},Io=ge("species"),To=function(e){var t=q(e),n=Re.f;A&&t&&!t[Io]&&n(t,Io,{configurable:!0,get:function(){return this}})},Eo=Re.f,Ro=ao.fastKey,Po=Ze.set,Oo=Ze.getterFor,Ao={getConstructor:function(e,t,n,r){var o=e((function(e,i){go(e,o,t),Po(e,{type:t,index:Sr(null),first:void 0,last:void 0,size:0}),A||(e.size=0),null!=i&&vo(i,e[r],{that:e,AS_ENTRIES:n})})),i=Oo(t),a=function(e,t,n){var r,o,a=i(e),l=s(e,t);return l?l.value=n:(a.last=l={index:o=Ro(t,!0),key:t,value:n,previous:r=a.last,next:void 0,removed:!1},a.first||(a.first=l),r&&(r.next=l),A?a.size++:e.size++,"F"!==o&&(a.index[o]=l)),e},s=function(e,t){var n,r=i(e),o=Ro(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return xo(o.prototype,{clear:function(){for(var e=i(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,A?e.size=0:this.size=0},delete:function(e){var t=i(this),n=s(this,e);if(n){var r=n.next,o=n.previous;delete t.index[n.index],n.removed=!0,o&&(o.next=r),r&&(r.previous=o),t.first==n&&(t.first=r),t.last==n&&(t.last=o),A?t.size--:this.size--}return!!n},forEach:function(e){for(var t,n=i(this),r=Tt(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!s(this,e)}}),xo(o.prototype,n?{get:function(e){var t=s(this,e);return t&&t.value},set:function(e,t){return a(this,0===e?0:e,t)}}:{add:function(e){return a(this,e=0===e?0:e,e)}}),A&&Eo(o.prototype,"size",{get:function(){return i(this).size}}),o},setStrong:function(e,t,n){var r=t+" Iterator",o=Oo(t),i=Oo(r);Gr(e,t,(function(e,t){Po(this,{type:r,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),To(t)}},Do=(Co("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),Ao),Pt?{}.toString:function(){return"[object "+Dt(this)+"]"});Pt||Xe(Object.prototype,"toString",Do,{unsafe:!0});var No=function(e){if("Symbol"===Dt(e))throw TypeError("Cannot convert a Symbol value to a string");return String(e)},Mo=function(e){return function(t,n){var r,o,i=No(H(t)),a=tt(n),s=i.length;return a<0||a>=s?e?"":void 0:(r=i.charCodeAt(a))<55296||r>56319||a+1===s||(o=i.charCodeAt(a+1))<56320||o>57343?e?i.charAt(a):r:e?i.slice(a,a+2):o-56320+(r-55296<<10)+65536}},Lo={codeAt:Mo(!1),charAt:Mo(!0)},Fo=Lo.charAt,Uo=Ze.set,jo=Ze.getterFor("String Iterator");Gr(String,"String",(function(e){Uo(this,{type:"String Iterator",string:No(e),index:0})}),(function(){var e,t=jo(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Fo(n,r),t.index+=e.length,{value:e,done:!1})}));var Vo={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Ho=Se("span").classList,Bo=Ho&&Ho.constructor&&Ho.constructor.prototype,$o=Bo===Object.prototype?void 0:Bo,zo=ge("iterator"),Wo=ge("toStringTag"),qo=eo.values,Zo=function(e,t){if(e){if(e[zo]!==qo)try{Pe(e,zo,qo)}catch(KS){e[zo]=qo}if(e[Wo]||Pe(e,Wo,t),Vo[t])for(var n in eo)if(e[n]!==eo[n])try{Pe(e,n,eo[n])}catch(KS){e[n]=eo[n]}}};for(var Yo in Vo)Zo(P[Yo]&&P[Yo].prototype,Yo);Zo($o,"DOMTokenList");var Ko=function(e,t,n){var r=_e(t);r in e?Re.f(e,r,L(0,n)):e[r]=n},Jo=Zt("splice"),Go=Math.max,Xo=Math.min;It({target:"Array",proto:!0,forced:!Jo},{splice:function(e,t){var n,r,o,i,a,s,l=le(this),c=st(l),u=ot(e,c),d=arguments.length;if(0===d?n=r=0:1===d?(n=0,r=c-u):(n=d-2,r=Xo(Go(tt(t),0),c-u)),c+n-r>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(o=Bt(l,r),i=0;i<r;i++)(a=u+i)in l&&Ko(o,i,l[a]);if(o.length=r,n<r){for(i=u;i<c-r;i++)s=i+n,(a=i+r)in l?l[s]=l[a]:delete l[s];for(i=c;i>c-r+n;i--)delete l[i-1]}else if(n>r)for(i=c-r;i>u;i--)s=i+n-1,(a=i+r-1)in l?l[s]=l[a]:delete l[s];for(i=0;i<n;i++)l[i+u]=arguments[i+2];return l.length=c-r+n,o}});var Qo=function(e,t){var n=[][e];return!!n&&O((function(){n.call(null,t||function(){throw 1},1)}))},ei=Wt.forEach,ti=Qo("forEach")?[].forEach:function(e){return ei(this,e,arguments.length>1?arguments[1]:void 0)};It({target:"Array",proto:!0,forced:[].forEach!=ti},{forEach:ti});var ni=function(e){if(e&&e.forEach!==ti)try{Pe(e,"forEach",ti)}catch(KS){e.forEach=ti}};for(var ri in Vo)Vo[ri]&&ni(P[ri]&&P[ri].prototype);ni($o);var oi=[].join,ii=V!=Object,ai=Qo("join",",");It({target:"Array",proto:!0,forced:ii||!ai},{join:function(e){return oi.call(B(this),void 0===e?",":e)}});var si=ge("isConcatSpreadable"),li=X>=51||!O((function(){var e=[];return e[si]=!1,e.concat()[0]!==e})),ci=Zt("concat"),ui=function(e){if(!z(e))return!1;var t=e[si];return void 0!==t?!!t:Et(e)};It({target:"Array",proto:!0,forced:!li||!ci},{concat:function(e){var t,n,r,o,i,a=le(this),s=Bt(a,0),l=0;for(t=-1,r=arguments.length;t<r;t++)if(ui(i=-1===t?a:arguments[t])){if(l+(o=st(i))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,l++)n in i&&Ko(s,l,i[n])}else{if(l>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Ko(s,l++,i)}return s.length=l,s}});var di=Date.prototype,pi=di.toString,fi=di.getTime;"Invalid Date"!=String(new Date(NaN))&&Xe(di,"toString",(function(){var e=fi.call(this);return e==e?pi.call(this):"Invalid Date"}));var hi=function(){var e=Te(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},mi=P.RegExp,vi={UNSUPPORTED_Y:O((function(){var e=mi("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),BROKEN_CARET:O((function(){var e=mi("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},gi=P.RegExp,yi=O((function(){var e=gi(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),bi=P.RegExp,_i=O((function(){var e=bi("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),wi=Ze.get,ki=RegExp.prototype.exec,Si=se("native-string-replace",String.prototype.replace),Ci=ki,xi=function(){var e=/a/,t=/b*/g;return ki.call(e,"a"),ki.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),Ii=vi.UNSUPPORTED_Y||vi.BROKEN_CARET,Ti=void 0!==/()??/.exec("")[1];(xi||Ti||Ii||yi||_i)&&(Ci=function(e){var t,n,r,o,i,a,s,l=this,c=wi(l),u=No(e),d=c.raw;if(d)return d.lastIndex=l.lastIndex,t=Ci.call(d,u),l.lastIndex=d.lastIndex,t;var p=c.groups,f=Ii&&l.sticky,h=hi.call(l),m=l.source,v=0,g=u;if(f&&(-1===(h=h.replace("y","")).indexOf("g")&&(h+="g"),g=u.slice(l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&"\n"!==u.charAt(l.lastIndex-1))&&(m="(?: "+m+")",g=" "+g,v++),n=new RegExp("^(?:"+m+")",h)),Ti&&(n=new RegExp("^"+m+"$(?!\\s)",h)),xi&&(r=l.lastIndex),o=ki.call(f?n:l,g),f?o?(o.input=o.input.slice(v),o[0]=o[0].slice(v),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:xi&&o&&(l.lastIndex=l.global?o.index+o[0].length:r),Ti&&o&&o.length>1&&Si.call(o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&p)for(o.groups=a=Sr(null),i=0;i<p.length;i++)a[(s=p[i])[0]]=o[s[1]];return o});var Ei=Ci;It({target:"RegExp",proto:!0,forced:/./.exec!==Ei},{exec:Ei});var Ri=ge("species"),Pi=RegExp.prototype,Oi=function(e,t,n,r){var o=ge(e),i=!O((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!O((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[Ri]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var s=/./[o],l=t(o,""[e],(function(e,t,n,r,o){var a=t.exec;return a===Ei||a===Pi.exec?i&&!o?{done:!0,value:s.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}));Xe(String.prototype,e,l[0]),Xe(Pi,o,l[1])}r&&Pe(Pi[o],"sham",!0)},Ai=Lo.charAt,Di=function(e,t,n){return t+(n?Ai(e,t).length:1)},Ni=Math.floor,Mi="".replace,Li=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Fi=/\$([$&'`]|\d{1,2})/g,Ui=function(e,t,n,r,o,i){var a=n+e.length,s=r.length,l=Fi;return void 0!==o&&(o=le(o),l=Li),Mi.call(i,l,(function(i,l){var c;switch(l.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(a);case"<":c=o[l.slice(1,-1)];break;default:var u=+l;if(0===u)return i;if(u>s){var d=Ni(u/10);return 0===d?i:d<=s?void 0===r[d-1]?l.charAt(1):r[d-1]+l.charAt(1):i}c=r[u-1]}return void 0===c?"":c}))},ji=function(e,t){var n=e.exec;if($(n)){var r=n.call(e,t);return null!==r&&Te(r),r}if("RegExp"===U(e))return Ei.call(e,t);throw TypeError("RegExp#exec called on incompatible receiver")},Vi=ge("replace"),Hi=Math.max,Bi=Math.min,$i="$0"==="a".replace(/./,"$0"),zi=!!/./[Vi]&&""===/./[Vi]("a","$0");Oi("replace",(function(e,t,n){var r=zi?"$":"$0";return[function(e,n){var r=H(this),o=null==e?void 0:oe(e,Vi);return o?o.call(e,r,n):t.call(No(r),e,n)},function(e,o){var i=Te(this),a=No(e);if("string"==typeof o&&-1===o.indexOf(r)&&-1===o.indexOf("$<")){var s=n(t,i,a,o);if(s.done)return s.value}var l=$(o);l||(o=No(o));var c=i.global;if(c){var u=i.unicode;i.lastIndex=0}for(var d=[];;){var p=ji(i,a);if(null===p)break;if(d.push(p),!c)break;""===No(p[0])&&(i.lastIndex=Di(a,at(i.lastIndex),u))}for(var f,h="",m=0,v=0;v<d.length;v++){p=d[v];for(var g=No(p[0]),y=Hi(Bi(tt(p.index),a.length),0),b=[],_=1;_<p.length;_++)b.push(void 0===(f=p[_])?f:String(f));var w=p.groups;if(l){var k=[g].concat(b,y,a);void 0!==w&&k.push(w);var S=No(o.apply(void 0,k))}else S=Ui(g,a,y,b,w,o);y>=m&&(h+=a.slice(m,y)+S,m=y+g.length)}return h+a.slice(m)}]}),!!O((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!$i||zi);var Wi=ge("iterator"),qi=!O((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),n+=r+e})),!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[Wi]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host})),Zi=q("fetch"),Yi=q("Request"),Ki=Yi&&Yi.prototype,Ji=q("Headers"),Gi=ge("iterator"),Xi=Ze.set,Qi=Ze.getterFor("URLSearchParams"),ea=Ze.getterFor("URLSearchParamsIterator"),ta=/\+/g,na=Array(4),ra=function(e){return na[e-1]||(na[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},oa=function(e){try{return decodeURIComponent(e)}catch(KS){return e}},ia=function(e){var t=e.replace(ta," "),n=4;try{return decodeURIComponent(t)}catch(KS){for(;n;)t=t.replace(ra(n--),oa);return t}},aa=/[!'()~]|%20/g,sa={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},la=function(e){return sa[e]},ca=function(e){return encodeURIComponent(e).replace(aa,la)},ua=function(e,t){if(t)for(var n,r,o=t.split("&"),i=0;i<o.length;)(n=o[i++]).length&&(r=n.split("="),e.push({key:ia(r.shift()),value:ia(r.join("="))}))},da=function(e){this.entries.length=0,ua(this.entries,e)},pa=function(e,t){if(e<t)throw TypeError("Not enough arguments")},fa=$r((function(e,t){Xi(this,{type:"URLSearchParamsIterator",iterator:fo(Qi(e).entries),kind:t})}),"Iterator",(function(){var e=ea(this),t=e.kind,n=e.iterator.next(),r=n.value;return n.done||(n.value="keys"===t?r.key:"values"===t?r.value:[r.key,r.value]),n})),ha=function(){go(this,ha,"URLSearchParams");var e,t,n,r,o,i,a,s,l,c=arguments.length>0?arguments[0]:void 0,u=this,d=[];if(Xi(u,{type:"URLSearchParams",entries:d,updateURL:function(){},updateSearchParams:da}),void 0!==c)if(z(c))if(e=po(c))for(n=(t=fo(c,e)).next;!(r=n.call(t)).done;){if((a=(i=(o=fo(Te(r.value))).next).call(o)).done||(s=i.call(o)).done||!i.call(o).done)throw TypeError("Expected sequence with length 2");d.push({key:No(a.value),value:No(s.value)})}else for(l in c)ue(c,l)&&d.push({key:l,value:No(c[l])});else ua(d,"string"==typeof c?"?"===c.charAt(0)?c.slice(1):c:No(c))},ma=ha.prototype;if(xo(ma,{append:function(e,t){pa(arguments.length,2);var n=Qi(this);n.entries.push({key:No(e),value:No(t)}),n.updateURL()},delete:function(e){pa(arguments.length,1);for(var t=Qi(this),n=t.entries,r=No(e),o=0;o<n.length;)n[o].key===r?n.splice(o,1):o++;t.updateURL()},get:function(e){pa(arguments.length,1);for(var t=Qi(this).entries,n=No(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){pa(arguments.length,1);for(var t=Qi(this).entries,n=No(e),r=[],o=0;o<t.length;o++)t[o].key===n&&r.push(t[o].value);return r},has:function(e){pa(arguments.length,1);for(var t=Qi(this).entries,n=No(e),r=0;r<t.length;)if(t[r++].key===n)return!0;return!1},set:function(e,t){pa(arguments.length,1);for(var n,r=Qi(this),o=r.entries,i=!1,a=No(e),s=No(t),l=0;l<o.length;l++)(n=o[l]).key===a&&(i?o.splice(l--,1):(i=!0,n.value=s));i||o.push({key:a,value:s}),r.updateURL()},sort:function(){var e,t,n,r=Qi(this),o=r.entries,i=o.slice();for(o.length=0,n=0;n<i.length;n++){for(e=i[n],t=0;t<n;t++)if(o[t].key>e.key){o.splice(t,0,e);break}t===n&&o.push(e)}r.updateURL()},forEach:function(e){for(var t,n=Qi(this).entries,r=Tt(e,arguments.length>1?arguments[1]:void 0,3),o=0;o<n.length;)r((t=n[o++]).value,t.key,this)},keys:function(){return new fa(this,"keys")},values:function(){return new fa(this,"values")},entries:function(){return new fa(this,"entries")}},{enumerable:!0}),Xe(ma,Gi,ma.entries,{name:"entries"}),Xe(ma,"toString",(function(){for(var e,t=Qi(this).entries,n=[],r=0;r<t.length;)e=t[r++],n.push(ca(e.key)+"="+ca(e.value));return n.join("&")}),{enumerable:!0}),Vr(ha,"URLSearchParams"),It({global:!0,forced:!qi},{URLSearchParams:ha}),!qi&&$(Ji)){var va=function(e){if(z(e)){var t,n=e.body;if("URLSearchParams"===Dt(n))return(t=e.headers?new Ji(e.headers):new Ji).has("content-type")||t.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),Sr(e,{body:L(0,String(n)),headers:L(0,t)})}return e};if($(Zi)&&It({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return Zi(e,arguments.length>1?va(arguments[1]):{})}}),$(Yi)){var ga=function(e){return go(this,ga,"Request"),new Yi(e,arguments.length>1?va(arguments[1]):{})};Ki.constructor=ga,ga.prototype=Ki,It({global:!0,forced:!0},{Request:ga})}}var ya={URLSearchParams:ha,getState:Qi},ba=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};Oi("search",(function(e,t,n){return[function(t){var n=H(this),r=null==t?void 0:oe(t,e);return r?r.call(t,n):new RegExp(t)[e](No(n))},function(e){var r=Te(this),o=No(e),i=n(t,r,o);if(i.done)return i.value;var a=r.lastIndex;ba(a,0)||(r.lastIndex=0);var s=ji(r,o);return ba(r.lastIndex,a)||(r.lastIndex=a),null===s?-1:s.index}]})),(new Date).getTime();var _a=0,wa=function(){return(new Date).getTime()+_a},ka=function(){var e=new Date;return e.setTime(wa()),e.toLocaleString()};Oi("match",(function(e,t,n){return[function(t){var n=H(this),r=null==t?void 0:oe(t,e);return r?r.call(t,n):new RegExp(t)[e](No(n))},function(e){var r=Te(this),o=No(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return ji(r,o);var a=r.unicode;r.lastIndex=0;for(var s,l=[],c=0;null!==(s=ji(r,o));){var u=No(s[0]);l[c]=u,""===u&&(r.lastIndex=Di(o,at(r.lastIndex),a)),c++}return 0===c?null:l}]}));var Sa=ge("match"),Ca=function(e){var t;return z(e)&&(void 0!==(t=e[Sa])?!!t:"RegExp"==U(e))},xa=Re.f,Ia=ht.f,Ta=Ze.enforce,Ea=ge("match"),Ra=P.RegExp,Pa=Ra.prototype,Oa=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Aa=/a/g,Da=/a/g,Na=new Ra(Aa)!==Aa,Ma=vi.UNSUPPORTED_Y,La=A&&(!Na||Ma||yi||_i||O((function(){return Da[Ea]=!1,Ra(Aa)!=Aa||Ra(Da)==Da||"/a/i"!=Ra(Aa,"i")})));if(Ct("RegExp",La)){for(var Fa=function(e,t){var n,r,o,i,a,s,l=this instanceof Fa,c=Ca(e),u=void 0===t,d=[],p=e;if(!l&&c&&u&&e.constructor===Fa)return e;if((c||e instanceof Fa)&&(e=e.source,u&&(t="flags"in p?p.flags:hi.call(p))),e=void 0===e?"":No(e),t=void 0===t?"":No(t),p=e,yi&&"dotAll"in Aa&&(r=!!t&&t.indexOf("s")>-1)&&(t=t.replace(/s/g,"")),n=t,Ma&&"sticky"in Aa&&(o=!!t&&t.indexOf("y")>-1)&&(t=t.replace(/y/g,"")),_i&&(e=(i=function(e){for(var t,n=e.length,r=0,o="",i=[],a={},s=!1,l=!1,c=0,u="";r<=n;r++){if("\\"===(t=e.charAt(r)))t+=e.charAt(++r);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:Oa.test(e.slice(r+1))&&(r+=2,l=!0),o+=t,c++;continue;case">"===t&&l:if(""===u||ue(a,u))throw new SyntaxError("Invalid capture group name");a[u]=!0,i.push([u,c]),l=!1,u="";continue}l?u+=t:o+=t}return[o,i]}(e))[0],d=i[1]),a=So(Ra(e,t),l?this:Pa,Fa),(r||o||d.length)&&(s=Ta(a),r&&(s.dotAll=!0,s.raw=Fa(function(e){for(var t,n=e.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(t=e.charAt(r))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+e.charAt(++r);return o}(e),n)),o&&(s.sticky=!0),d.length&&(s.groups=d)),e!==p)try{Pe(a,"source",""===p?"(?:)":p)}catch(KS){}return a},Ua=function(e){e in Fa||xa(Fa,e,{configurable:!0,get:function(){return Ra[e]},set:function(t){Ra[e]=t}})},ja=Ia(Ra),Va=0;ja.length>Va;)Ua(ja[Va++]);Pa.constructor=Fa,Fa.prototype=Pa,Xe(P,"RegExp",Fa)}To("RegExp");var Ha=Ge.PROPER,Ba=RegExp.prototype,$a=Ba.toString,za=O((function(){return"/a/b"!=$a.call({source:"a",flags:"b"})})),Wa=Ha&&"toString"!=$a.name;(za||Wa)&&Xe(RegExp.prototype,"toString",(function(){var e=Te(this),t=No(e.source),n=e.flags;return"/"+t+"/"+No(void 0===n&&e instanceof RegExp&&!("flags"in Ba)?hi.call(e):n)}),{unsafe:!0});var qa=1..valueOf,Za=function(e){return qa.call(e)},Ya="\t\n\v\f\r \u2028\u2029\ufeff",Ka="["+Ya+"]",Ja=RegExp("^"+Ka+Ka+"*"),Ga=RegExp(Ka+Ka+"*$"),Xa=function(e){return function(t){var n=No(H(t));return 1&e&&(n=n.replace(Ja,"")),2&e&&(n=n.replace(Ga,"")),n}},Qa={start:Xa(1),end:Xa(2),trim:Xa(3)},es=ht.f,ts=Ie.f,ns=Re.f,rs=Qa.trim,os=P.Number,is=os.prototype,as=function(e){var t=be(e,"number");return"bigint"==typeof t?t:ss(t)},ss=function(e){var t,n,r,o,i,a,s,l,c=be(e,"number");if(te(c))throw TypeError("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(43===(t=(c=rs(c)).charCodeAt(0))||45===t){if(88===(n=c.charCodeAt(2))||120===n)return NaN}else if(48===t){switch(c.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+c}for(a=(i=c.slice(2)).length,s=0;s<a;s++)if((l=i.charCodeAt(s))<48||l>o)return NaN;return parseInt(i,r)}return+c};if(Ct("Number",!os(" 0o1")||!os("0b1")||os("+0x1"))){for(var ls,cs=function(e){var t=arguments.length<1?0:os(as(e)),n=this;return n instanceof cs&&O((function(){Za(n)}))?So(Object(t),n,cs):t},us=A?es(os):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),ds=0;us.length>ds;ds++)ue(os,ls=us[ds])&&!ue(cs,ls)&&ns(cs,ls,ts(os,ls));cs.prototype=is,is.constructor=cs,Xe(P,"Number",cs)}var ps=ct.indexOf,fs=[].indexOf,hs=!!fs&&1/[1].indexOf(1,-0)<0,ms=Qo("indexOf");It({target:"Array",proto:!0,forced:hs||!ms},{indexOf:function(e){return hs?fs.apply(this,arguments)||0:ps(this,e,arguments.length>1?arguments[1]:void 0)}});var vs=O((function(){Nr(1)}));It({target:"Object",stat:!0,forced:vs,sham:!Or},{getPrototypeOf:function(e){return Nr(le(e))}});var gs=q("Reflect","apply"),ys=Function.apply,bs=!O((function(){gs((function(){}))}));It({target:"Reflect",stat:!0,forced:bs},{apply:function(e,t,n){return re(e),Te(n),gs?gs(e,t,n):ys.call(e,t,n)}});var _s=Ge.EXISTS,ws=Re.f,ks=Function.prototype,Ss=ks.toString,Cs=/^\s*function ([^ (]*)/;A&&!_s&&ws(ks,"name",{configurable:!0,get:function(){try{return Ss.call(this).match(Cs)[1]}catch(KS){return""}}}),It({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}});var xs=ge("species"),Is=function(e,t){var n,r=Te(e).constructor;return void 0===r||null==(n=Te(r)[xs])?t:function(e){if(Vt(e))return e;throw TypeError(ne(e)+" is not a constructor")}(n)},Ts=vi.UNSUPPORTED_Y,Es=[].push,Rs=Math.min;Oi("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=No(H(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!Ca(e))return t.call(r,e,o);for(var i,a,s,l=[],c=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),u=0,d=new RegExp(e.source,c+"g");(i=Ei.call(d,r))&&!((a=d.lastIndex)>u&&(l.push(r.slice(u,i.index)),i.length>1&&i.index<r.length&&Es.apply(l,i.slice(1)),s=i[0].length,u=a,l.length>=o));)d.lastIndex===i.index&&d.lastIndex++;return u===r.length?!s&&d.test("")||l.push(""):l.push(r.slice(u)),l.length>o?l.slice(0,o):l}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var o=H(this),i=null==t?void 0:oe(t,e);return i?i.call(t,o,n):r.call(No(o),t,n)},function(e,o){var i=Te(this),a=No(e),s=n(r,i,a,o,r!==t);if(s.done)return s.value;var l=Is(i,RegExp),c=i.unicode,u=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(Ts?"g":"y"),d=new l(Ts?"^(?:"+i.source+")":i,u),p=void 0===o?4294967295:o>>>0;if(0===p)return[];if(0===a.length)return null===ji(d,a)?[a]:[];for(var f=0,h=0,m=[];h<a.length;){d.lastIndex=Ts?0:h;var v,g=ji(d,Ts?a.slice(h):a);if(null===g||(v=Rs(at(d.lastIndex+(Ts?h:0)),a.length))===f)h=Di(a,h,c);else{if(m.push(a.slice(f,h)),m.length===p)return m;for(var y=1;y<=g.length-1;y++)if(m.push(g[y]),m.length===p)return m;h=f=v}}return m.push(a.slice(f)),m}]}),!!O((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),Ts);var Ps,Os,As,Ds,Ns=P.Promise,Ms=/(?:ipad|iphone|ipod).*applewebkit/i.test(Z),Ls="process"==U(P.process),Fs=P.setImmediate,Us=P.clearImmediate,js=P.process,Vs=P.MessageChannel,Hs=P.Dispatch,Bs=0,$s={};try{Ps=P.location}catch(KS){}var zs=function(e){if($s.hasOwnProperty(e)){var t=$s[e];delete $s[e],t()}},Ws=function(e){return function(){zs(e)}},qs=function(e){zs(e.data)},Zs=function(e){P.postMessage(String(e),Ps.protocol+"//"+Ps.host)};Fs&&Us||(Fs=function(e){for(var t=[],n=arguments.length,r=1;n>r;)t.push(arguments[r++]);return $s[++Bs]=function(){($(e)?e:Function(e)).apply(void 0,t)},Os(Bs),Bs},Us=function(e){delete $s[e]},Ls?Os=function(e){js.nextTick(Ws(e))}:Hs&&Hs.now?Os=function(e){Hs.now(Ws(e))}:Vs&&!Ms?(Ds=(As=new Vs).port2,As.port1.onmessage=qs,Os=Tt(Ds.postMessage,Ds,1)):P.addEventListener&&$(P.postMessage)&&!P.importScripts&&Ps&&"file:"!==Ps.protocol&&!O(Zs)?(Os=Zs,P.addEventListener("message",qs,!1)):Os="onreadystatechange"in Se("script")?function(e){gr.appendChild(Se("script")).onreadystatechange=function(){gr.removeChild(this),zs(e)}}:function(e){setTimeout(Ws(e),0)});var Ys,Ks,Js,Gs,Xs,Qs,el,tl,nl={set:Fs,clear:Us},rl=/ipad|iphone|ipod/i.test(Z)&&void 0!==P.Pebble,ol=/web0s(?!.*chrome)/i.test(Z),il=Ie.f,al=nl.set,sl=P.MutationObserver||P.WebKitMutationObserver,ll=P.document,cl=P.process,ul=P.Promise,dl=il(P,"queueMicrotask"),pl=dl&&dl.value;pl||(Ys=function(){var e,t;for(Ls&&(e=cl.domain)&&e.exit();Ks;){t=Ks.fn,Ks=Ks.next;try{t()}catch(KS){throw Ks?Gs():Js=void 0,KS}}Js=void 0,e&&e.enter()},Ms||Ls||ol||!sl||!ll?!rl&&ul&&ul.resolve?((el=ul.resolve(void 0)).constructor=ul,tl=el.then,Gs=function(){tl.call(el,Ys)}):Gs=Ls?function(){cl.nextTick(Ys)}:function(){al.call(P,Ys)}:(Xs=!0,Qs=ll.createTextNode(""),new sl(Ys).observe(Qs,{characterData:!0}),Gs=function(){Qs.data=Xs=!Xs}));var fl,hl,ml,vl,gl=pl||function(e){var t={fn:e,next:void 0};Js&&(Js.next=t),Ks||(Ks=t,Gs()),Js=t},yl=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=re(t),this.reject=re(n)},bl={f:function(e){return new yl(e)}},_l=function(e){try{return{error:!1,value:e()}}catch(KS){return{error:!0,value:KS}}},wl="object"==typeof window,kl=nl.set,Sl=ge("species"),Cl="Promise",xl=Ze.get,Il=Ze.set,Tl=Ze.getterFor(Cl),El=Ns&&Ns.prototype,Rl=Ns,Pl=El,Ol=P.TypeError,Al=P.document,Dl=P.process,Nl=bl.f,Ml=Nl,Ll=!!(Al&&Al.createEvent&&P.dispatchEvent),Fl=$(P.PromiseRejectionEvent),Ul=!1,jl=Ct(Cl,(function(){var e=Me(Rl),t=e!==String(Rl);if(!t&&66===X)return!0;if(X>=51&&/native code/.test(e))return!1;var n=new Rl((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[Sl]=r,!(Ul=n.then((function(){}))instanceof r)||!t&&wl&&!Fl})),Vl=jl||!ko((function(e){Rl.all(e).catch((function(){}))})),Hl=function(e){var t;return!(!z(e)||!$(t=e.then))&&t},Bl=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;gl((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,s,l,c=n[i++],u=o?c.ok:c.fail,d=c.resolve,p=c.reject,f=c.domain;try{u?(o||(2===e.rejection&&ql(e),e.rejection=1),!0===u?a=r:(f&&f.enter(),a=u(r),f&&(f.exit(),l=!0)),a===c.promise?p(Ol("Promise-chain cycle")):(s=Hl(a))?s.call(a,d,p):d(a)):p(r)}catch(KS){f&&!l&&f.exit(),p(KS)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&zl(e)}))}},$l=function(e,t,n){var r,o;Ll?((r=Al.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),P.dispatchEvent(r)):r={promise:t,reason:n},!Fl&&(o=P["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=P.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},zl=function(e){kl.call(P,(function(){var t,n=e.facade,r=e.value;if(Wl(e)&&(t=_l((function(){Ls?Dl.emit("unhandledRejection",r,n):$l("unhandledrejection",n,r)})),e.rejection=Ls||Wl(e)?2:1,t.error))throw t.value}))},Wl=function(e){return 1!==e.rejection&&!e.parent},ql=function(e){kl.call(P,(function(){var t=e.facade;Ls?Dl.emit("rejectionHandled",t):$l("rejectionhandled",t,e.value)}))},Zl=function(e,t,n){return function(r){e(t,r,n)}},Yl=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Bl(e,!0))},Kl=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw Ol("Promise can't be resolved itself");var r=Hl(t);r?gl((function(){var n={done:!1};try{r.call(t,Zl(Kl,n,e),Zl(Yl,n,e))}catch(KS){Yl(n,KS,e)}})):(e.value=t,e.state=1,Bl(e,!1))}catch(KS){Yl({done:!1},KS,e)}}};if(jl&&(Pl=(Rl=function(e){go(this,Rl,Cl),re(e),fl.call(this);var t=xl(this);try{e(Zl(Kl,t),Zl(Yl,t))}catch(KS){Yl(t,KS)}}).prototype,(fl=function(e){Il(this,{type:Cl,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=xo(Pl,{then:function(e,t){var n=Tl(this),r=Nl(Is(this,Rl));return r.ok=!$(e)||e,r.fail=$(t)&&t,r.domain=Ls?Dl.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&Bl(n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),hl=function(){var e=new fl,t=xl(e);this.promise=e,this.resolve=Zl(Kl,t),this.reject=Zl(Yl,t)},bl.f=Nl=function(e){return e===Rl||e===ml?new hl(e):Ml(e)},$(Ns)&&El!==Object.prototype)){vl=El.then,Ul||(Xe(El,"then",(function(e,t){var n=this;return new Rl((function(e,t){vl.call(n,e,t)})).then(e,t)}),{unsafe:!0}),Xe(El,"catch",Pl.catch,{unsafe:!0}));try{delete El.constructor}catch(KS){}zr&&zr(El,Pl)}It({global:!0,wrap:!0,forced:jl},{Promise:Rl}),Vr(Rl,Cl,!1),To(Cl),ml=q(Cl),It({target:Cl,stat:!0,forced:jl},{reject:function(e){var t=Nl(this);return t.reject.call(void 0,e),t.promise}}),It({target:Cl,stat:!0,forced:jl},{resolve:function(e){return function(e,t){if(Te(e),z(t)&&t.constructor===e)return t;var n=bl.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),It({target:Cl,stat:!0,forced:Vl},{all:function(e){var t=this,n=Nl(t),r=n.resolve,o=n.reject,i=_l((function(){var n=re(t.resolve),i=[],a=0,s=1;vo(e,(function(e){var l=a++,c=!1;i.push(void 0),s++,n.call(t,e).then((function(e){c||(c=!0,i[l]=e,--s||r(i))}),o)})),--s||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=Nl(t),r=n.reject,o=_l((function(){var o=re(t.resolve);vo(e,(function(e){o.call(t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var Jl=Qa.trim,Gl=P.parseFloat,Xl=P.Symbol,Ql=Xl&&Xl.iterator,ec=1/Gl(Ya+"-0")!=-1/0||Ql&&!O((function(){Gl(Object(Ql))}))?function(e){var t=Jl(No(e)),n=Gl(t);return 0===n&&"-"==t.charAt(0)?-0:n}:Gl;It({global:!0,forced:parseFloat!=ec},{parseFloat:ec});var tc,nc,rc=window.navigator&&window.navigator.userAgent||"",oc=/AppleWebKit\/([\d.]+)/i.exec(rc),ic=(oc&&parseFloat(oc.pop()),/iPad/i.test(rc)),ac=navigator.maxTouchPoints&&navigator.maxTouchPoints>2&&/Macintosh/.test(rc),sc=/iPhone/i.test(rc)&&!ic,lc=/iPod/i.test(rc),cc=sc||ic||lc||ac,uc=/Android/i.test(rc),dc=(uc&&function(){var e=rc.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;var t=e[1]&&parseFloat(e[1]),n=e[2]&&parseFloat(e[2]);t&&n&&parseFloat(e[1]+"."+e[2])}(),uc&&/webkit/i.test(rc),/Firefox/i.test(rc)),pc=dc&&function(){var e=rc.match(/Firefox\/(\d+)/);return e&&e[1]?parseFloat(e[1]):null}(),fc=/Edge\//i.test(rc),hc=fc&&function(){var e=rc.match(/Edge\/(\d+)/i);if(e&&e[1])return e[1]}(),mc=/Edg\//i.test(rc),vc=mc&&function(){var e=rc.match(/Edg\/(\d+)/);return e&&e[1]?parseFloat(e[1]):null}(),gc=/SogouMobileBrowser\//i.test(rc),yc=gc&&function(){var e=rc.match(/SogouMobileBrowser\/(\d+)/);return e&&e[1]?parseFloat(e[1]):null}(),bc=/MetaSr\s/i.test(rc),_c=bc&&function(){var e=rc.match(/MetaSr(\s\d+(\.\d+)+)/);return e&&e[1]?parseFloat(e[1]):null}(),wc=/TBS\/\d+/i.test(rc),kc=wc&&function(){var e=rc.match(/TBS\/(\d+)/i);if(e&&e[1])return e[1]}(),Sc=/XWEB\/\d+/i.test(rc),Cc=Sc&&function(){var e=rc.match(/XWEB\/(\d+)/i);if(e&&e[1])return e[1]}(),xc=(/MSIE\s8\.0/.test(rc),/MSIE\/\d+/i.test(rc)&&function(){var e=/MSIE\s(\d+)\.\d/.exec(rc),t=e&&parseFloat(e[1]);!t&&/Trident\/7.0/i.test(rc)&&/rv:11.0/.test(rc)&&(t=11)}(),/(micromessenger|webbrowser)/i.test(rc)),Ic=xc&&function(){var e=rc.match(/MicroMessenger\/(\d+)/i);if(e&&e[1])return e[1]}(),Tc=!wc&&/MQQBrowser\/\d+/i.test(rc)&&/COVC\/\d+/i.test(rc),Ec=!wc&&/MQQBrowser\/\d+/i.test(rc)&&!/COVC\/\d+/i.test(rc),Rc=(Ec||Tc)&&function(){var e=rc.match(/ MQQBrowser\/([\d.]+)/);return e&&e[1]?e[1]:null}(),Pc=!wc&&/ QQBrowser\/\d+/i.test(rc),Oc=Pc&&function(){var e=rc.match(/ QQBrowser\/([\d.]+)/);return e&&e[1]?e[1]:null}(),Ac=!wc&&/QQBrowserLite\/\d+/i.test(rc),Dc=Ac&&function(){var e=rc.match(/QQBrowserLite\/([\d.]+)/);return e&&e[1]?e[1]:null}(),Nc=!wc&&/MQBHD\/\d+/i.test(rc),Mc=Nc&&function(){var e=rc.match(/MQBHD\/([\d.]+)/);return e&&e[1]?e[1]:null}(),Lc=/Windows/i.test(rc),Fc=!cc&&/MAC OS X/i.test(rc),Uc=!uc&&/Linux/i.test(rc),jc=(/MicroMessenger/i.test(rc),/UCBrowser/i.test(rc)),Vc=(/Electron/i.test(rc),/MiuiBrowser/i.test(rc)),Hc=Vc&&function(){var e=rc.match(/MiuiBrowser\/([\d.]+)/);return e&&e[1]?e[1]:null}(),Bc=/HuaweiBrowser/i.test(rc),$c=/Huawei/i.test(rc),zc=Bc&&function(){var e=rc.match(/HuaweiBrowser\/([\d.]+)/);return e&&e[1]?e[1]:null}(),Wc=/SamsungBrowser/i.test(rc),qc=Wc&&function(){var e=rc.match(/SamsungBrowser\/([\d.]+)/);return e&&e[1]?e[1]:null}(),Zc=/HeyTapBrowser/i.test(rc),Yc=Zc&&function(){var e=rc.match(/HeyTapBrowser\/([\d.]+)/);return e&&e[1]?e[1]:null}(),Kc=/VivoBrowser/i.test(rc),Jc=Kc&&function(){var e=rc.match(/VivoBrowser\/([\d.]+)/);return e&&e[1]?e[1]:null}(),Gc=function(){var e=rc.match(/Chrome\/(\d+)/);return e&&e[1]?Number(e[1]):null},Xc=/Chrome/i.test(rc),Qc=!fc&&!bc&&!gc&&!wc&&!Sc&&!mc&&!Pc&&!Vc&&!Bc&&!Wc&&!Zc&&!Kc&&/Chrome/i.test(rc),eu=Qc&&Gc(),tu=Qc&&function(){var e=rc.match(/Chrome\/([\d.]+)/);return e&&e[1]?e[1]:null}(),nu=!Xc&&!Ec&&!Tc&&!Ac&&!Nc&&/Safari/i.test(rc),ru=nu&&function(){var e=rc.match(/Version\/([\d.]+)/);return e&&e[1]?e[1]:null}(),ou=/Android.*(wv|.0.0.0)/.test(rc),iu=function(){if(ac)return ru;if(cc){var e=rc.match(/OS (\d+)_(\d+)/i);if(e&&e[1]){var t=e[1];return e[2]&&(t+=".".concat(e[2])),t}}return""}(),au="15.1"===iu,su=14===(tc=Number(iu.split(".")[0]))||13===tc,lu="file:"===location.protocol||"localhost"===location.hostname||"127.0.0.1"===location.hostname,cu=function(){if(Ch(nc))try{nc=window.localStorage}catch(KS){Wv.warn(KS),nc=!1}return nc},uu=new Map([[dc,["Firefox",pc]],[mc,["Edg",vc]],[Qc,["Chrome",tu]],[nu,["Safari",ru]],[wc,["TBS",kc]],[Sc,["XWEB",Cc]],[xc&&sc,["WeChat",Ic]],[Pc,["QQ(Win)",Oc]],[Ec,["QQ(Mobile)",Rc]],[Tc,["QQ(Mobile X5)",Rc]],[Ac,["QQ(Mac)",Dc]],[Nc,["QQ(iPad)",Mc]],[Vc,["MI",Hc]],[Bc,["HW",zc]],[Wc,["Samsung",qc]],[Zc,["OPPO",Yc]],[Kc,["VIVO",Jc]],[fc,["EDGE",hc]],[gc,["SogouMobile",yc]],[bc,["Sogou",_c]]]);function du(){var e="unknown",t="unknown";return uu.get(!0)&&(e=uu.get(!0)[0],t=uu.get(!0)[1]),{name:e,version:t}}var pu=O((function(){mr(1)}));It({target:"Object",stat:!0,forced:pu},{keys:function(e){return mr(le(e))}});var fu="canvas",hu="audio",mu="video",vu="auxiliary",gu="user",yu="environment",bu="mute",_u="unmute",wu="ended",ku="playing",Su="pause",Cu="error",xu="loadeddata",Iu="audioinput",Tu="videoinput",Eu="detail",Ru="text",Pu="main",Ou="backup",Au="banned",Du="kick",Nu="user_time_out",Mu="wss://trtc.rtc.qq.com",Lu="wss://webrtc.qq.com",Fu="qcloud",Uu="trtc",ju="webrtc",Vu="",Hu="jssdk_log",Bu="jssdk_event",$u="jssdk_new_endreport",zu=function(e){return Vu=e},Wu=1,qu=2,Zu=20,Yu=21,Ku="5Y2wZK8nANNAoVw6dSAHVjNxrD1ObBM2kBPV",Ju="224d130c-7b5c-415b-aaa2-79c2eb5a6df2",Gu=2,Xu=Pu,Qu=vu,ed="DISCONNECTED",td="CONNECTING",nd="RECONNECTING",rd="CONNECTED",od="new",id="connecting",ad="failed",sd="closed",ld="disconnected",cd="connected",ud="completed",dd="join",pd="delta-join",fd="rejoin",hd="leave",md="delta-leave",vd="publish",gd="delta-publish",yd="unpublish",bd="subscribe",_d="unsubscribe",wd="uplink-connection",kd="uplink-reconnection",Sd="downlink-connection",Cd="downlink-reconnection",xd="setLocalDescription",Id="setRemoteDescription",Td="iceConnectionState",Ed="stream-initialize",Rd="websocketConnectionState",Pd="websocketReconnectionState",Od="update-stream",Ad="recover-subscription",Dd="start-mix-transcode",Nd="stop-mix-transcode",Md="player-error",Ld="schedule",Fd="load-worklet",Ud="unsubscribe",jd="subscribe_change",Vd={MANUAL:"manual",PRESET_LAYOUT:"preset-layout"},Hd={REMOTE:"$PLACE_HOLDER_REMOTE$"},Bd={IT_AUDIO_VIDEO:0,IT_PICTURE:2,IT_CANVAS:3,IT_PURE_AUDIO:4,IT_PURE_VIDEO:5},$d="string",zd="number",Wd="boolean",qd="array",Zd="object",Yd="add",Kd="remove",Jd={unknown:0,wifi:1,"4g":2,"3g":3,"2g":4,wired:5},Gd=-1,Xd=0,Qd=1,ep="schedule.rtc.qq.com",tp="schedule.rtc.qcloud.com",np="intl-schedule.rtc.qq.com",rp="intl-schedule.rtc.qcloud.com",op="TRTC",ip="Client",ap="LocalStream",sp="RemoteStream",lp="Stream",cp="web.sdk.qcloud.com",up="web.sdk.tencent.cn",dp="web.sdk.cloud.tencent.cn",pp="https://".concat(cp,"/trtc/webrtc/doc"),fp="".concat(pp,"/zh-cn/"),hp={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,NONE:5},mp=Object.keys(hp),vp=["normal leave","timeout leave","kick","role change"],gp=/"/g,yp=function(e,t,n,r){var o=No(H(e)),i="<"+t;return""!==n&&(i+=" "+n+'="'+No(r).replace(gp,""")+'"'),i+">"+o+"</"+t+">"},bp=function(e){return O((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))};It({target:"String",proto:!0,forced:bp("link")},{link:function(e){return yp(this,"a","href",e)}}),It({target:"Array",stat:!0},{isArray:Et});var _p="AVOID_REPEATED_CALL",wp="INVALID_PARAMETER_REQUIRED",kp="INVALID_PARAMETER_TYPE",Sp="INVALID_PARAMETER_EMPTY",Cp="INVALID_PARAMETER_INSTANCE",xp="INVALID_PARAMETER_RANGE",Ip="API_CALL_TIMEOUT",Tp="SIGNAL_CHANNEL_RECONNECTION_FAILED",Ep="SIGNAL_CHANNEL_SETUP_FAILED",Rp="ERROR_MESSAGE",Pp="SUBSCRIPTION_TIMEOUT",Op="EXCHANGE_SDP_TIMEOUT",Ap="DOWNLINK_RECONNECTION_FAILED",Dp="EXCHANGE_SDP_FAILED",Np="UPLINK_RECONNECTION_FAILED",Mp="AUDIO",Lp="VIDEO",Fp="INVALID_PURE_AUDIO",Up="INVALID_STREAMID",jp="INVALID_USER_DEFINE_RECORDID",Vp="INVALID_USER_DEFINE_PUSH_ARGS",Hp="INVALID_PROXY",Bp="INVALID_JOIN",$p="INVALID_ROOMID_STRING",zp="INVALID_ROOMID_INTEGER",Wp="INVALID_SIGNAL_CHANNEL",qp="JOIN_ROOM_TIMEOUT",Zp="JOIN_ROOM_FAILED",Yp="REJOIN_ROOM_FAILED",Kp="INVALID_LEAVE",Jp="INVALID_PUBLISH",Gp="INVALID_UNPUBLISH",Xp="INVALID_AUDIENCE",Qp="INVALID_INITIALIZE",ef="INVALID_DUPLICATE_PUBLISHING",tf="INVALID_REMOTE_STREAM",nf="SUBSCRIBE_FAILED",rf="INVALID_ROLE",of="INVALID_OPERATION_SWITCH_ROLE",af="SWITCH_ROLE_TIMEOUT",sf="SWITCH_ROLE_FAILED",lf="CLIENT_BANNED",cf="INVALID_OPERATION_START_PUBLISH_CDN",uf="INVALID_OPERATION_STOP_PUBLISH_CDN",df="INVALID_STREAM_ID",pf="START_PUBLISH_CDN_FAILED",ff="STOP_PUBLISH_CDN_FAILED",hf="START_MIX_TRANSCODE",mf="STOP_MIX_TRANSCODE",vf="INVALID_AUDIO_VOLUME",gf="ENABLE_SMALL_STREAM_PUBLISHED",yf="DISABLE_SMALL_STREAM_PUBLISHED",bf="NOT_SUPPORTED_SMALL_STREAM",_f="INVALID_SMALL_STREAM_PROFILE",wf="INVALID_PARAMETER_REMOTE_STREAM",kf="INVALID_OPERATION_CHANGE_SMALL",Sf="REMOTE_NOT_PUBLISH_SMALL_STREAM",Cf="INVALID_SWITCH_DEVICE",xf="INVALID_SWITCH_DEVICE_PUBLISHING",If="INVALID_REPLACE_TRACK",Tf="INVALID_INITIALIZE_LOCAL_STREAM",Ef="INVALID_ADD_TRACK_REPETITIVE",Rf="INVALID_ADD_TRACK_REMOVING",Pf="INVALID_ADD_TRACK_PUBLISHING",Of="INVALID_STREAM_INITIALIZED",Af="INVALID_ADD_TRACK_NUMBER",Df="INVALID_REMOVE_AUDIO_TRACK",Nf="INVALID_REMOVE_AUDIO_ADDING",Mf="INVALID_REMOVE_AUDIO_ON",Lf="INVALID_REMOVE_TRACK_PUBLISHING",Ff="INVALID_REMOVE_TRACK_NOT_PUBLISHING",Uf="INVALID_REMOVE_TRACK_NUMBER",jf="INVALID_REMOVE_TRACK_NOT_PUBLISHED",Vf="START_MIX_TRANSCODE_FAILED",Hf="STOP_MIX_TRANSCODE_FAILED",Bf="MIX_TRANSCODE_NOT_STARTED",$f="CANNOT_LESS_THAN_ZERO",zf="MIX_PARAMS_VIDEO_FRAMERATE",Wf="MIX_PARAMS_VIDEO_GOP",qf="MIX_PARAMS_AUDIO_BITRATE",Zf="MIX_PARAMS_USER_Z_ORDER",Yf="MIX_PARAMS_NOT_SELF",Kf="MIX_PARAMS_USER_STREAM",Jf="INVALID_ELEMENT_ID",Gf="INVALID_ELEMENT_ID_TYPE",Xf="INVALID_CREATE_STREAM_SOURCE",Qf="INVALID_CREATE_STREAM_SCREEN",eh="INVALID_CREATE_STREAM_AUDIO",th="INVALID_CREATE_STREAM_SCREEN_AUDIO",nh="NOT_SUPPORTED_HTTP",rh="NOT_SUPPORTED_WEBRTC",oh="NOT_SUPPORTED_PROFILE",ih="NOT_SUPPORTED_H264ENCODE",ah="NOT_SUPPORTED_H264DECODE",sh="NOT_SUPPORTED_REPLACE_TRACK",lh="NOT_SUPPORTED_CAPTURE",ch="MICROPHONE_NOT_FOUND",uh="CAMERA_NOT_FOUND",dh="SIGNAL_RESPONSE_FAILED",ph="CATCH_HANDLER_ERROR",fh={AVOID_REPEATED_CALL:function(e){return"previous ".concat(e.name,"() is ongoing, please avoid repeated calls.")},INVALID_PARAMETER_REQUIRED:function(e){var t=e.key,n=e.rule,r=e.fnName,o=e.value;return"'".concat(t||n.name,"' is a required param when calling ").concat(r,"(), received: ").concat(o,".")},INVALID_PARAMETER_TYPE:function(e){var t=e.key,n=e.rule,r=e.fnName,o=e.value,i="".concat(t||n.name),a="";return a=Array.isArray(n.type)?n.type.join("|"):n.type,"'".concat(i,"' must be type of ").concat(a," when calling ").concat(r,"(), received type: ").concat(Ph(o),".")},INVALID_PARAMETER_EMPTY:function(e){var t=e.key,n=e.rule,r=e.fnName,o=e.value;return"'".concat(t||n.name,"' cannot be '").concat(o,"' when calling ").concat(r,"().")},INVALID_PARAMETER_INSTANCE:function(e){var t=e.key,n=e.rule,r=e.fnName,o=e.value,i="".concat(t||n.name),a="".concat(n.instanceOf.name||n.instanceOf);return"'".concat(i,"' must be instanceof ").concat(a," when calling ").concat(r,"(), received type: ").concat(Ph(o),".")},INVALID_PARAMETER_RANGE:function(e){var t=e.key,n=e.rule,r=e.fnName,o=e.value;return"'".concat(t||n.name,"' must be one of ").concat(n.values.join("|")," when calling ").concat(r,"(), received: ").concat(o,".")},API_CALL_TIMEOUT:function(e){return"".concat(e.commandDesc||e.command," timeout observed.")},SIGNAL_CHANNEL_RECONNECTION_FAILED:"signal channel reconnection failed, please check your network.",SIGNAL_CHANNEL_SETUP_FAILED:function(e){return"SignalChannel setup failure: (errorCode: ".concat(e.errorCode,", errorMsg: ").concat(e.errorMsg," }).")},ERROR_MESSAGE:function(e){var t="".concat(e.type," failed");return e.message&&(t="".concat(t,": ").concat(e.message,".")),t},SUBSCRIPTION_TIMEOUT:"remote server does not respond to the subscription.",EXCHANGE_SDP_TIMEOUT:"exchange sdp timeout.",DOWNLINK_RECONNECTION_FAILED:"downlink reconnection failed, please check your network and re-join room.",EXCHANGE_SDP_FAILED:function(e){return"exchange sdp failed ".concat(e.errMsg,".")},UPDATE_OFFER_TIMEOUT:"update offer timeout observed.",UPLINK_RECONNECTION_FAILED:"uplink reconnection failed, please check your network and publish again.",AUDIO:function(e){return e.error.toString()+" <audio>"},VIDEO:function(e){return e.error.toString()+" <video>"},INVALID_RECORDID:"recordId must be an integer number.",INVALID_PURE_AUDIO:"pureAudioPushMode must be 1 or 2.",INVALID_STREAMID:"streamId must be a sting literal within 64 bytes, and not be empty.",INVALID_USER_DEFINE_RECORDID:"userDefineRecordId must be a sting literal contains (a-zA-Z),(0-9), underline and hyphen, within 64 bytes, and not be empty.",INVALID_USER_DEFINE_PUSH_ARGS:"userDefinePushArgs must be a sting literal within 256 bytes, and not be empty.",INVALID_PROXY:'proxy server url must start with "wss://".',INVALID_JOIN:"duplicate join() called.",INVALID_ROOMID_STRING:function(e){return"'".concat(e,"' must be validate string when useStringRoomId is true.")},INVALID_ROOMID_INTEGER:function(e){return"'".concat(e,"' must be an integer between [1, 4294967294] when useStringRoomId is false.")},INVALID_SIGNAL_CHANNEL:"SignalChannel is not ready yet.",JOIN_ROOM_TIMEOUT:"join room timeout.",JOIN_ROOM_FAILED:function(e){var t=e.error,n=e.code;return"Failed to join room - ".concat(t," code: ").concat(n)},REJOIN_ROOM_FAILED:function(e){return"reJoin room: ".concat(e.roomId," failed, please check your network.")},INVALID_LEAVE:"please call leave() before destroy().",INVALID_PUBLISH:"please call join() before publish().",INVALID_UNPUBLISH:"stream has not been published yet.",INVALID_AUDIENCE:"no permission to publish() under live/".concat("audience",', please call switchRole("').concat("anchor",'") firstly before publish().'),INVALID_INITIALIZE:"cannot publish stream because stream is not initialized or is switching device.",INVALID_DUPLICATE_PUBLISHING:"duplicate publishing, please unpublish and then re-publish.",INVALID_SUBSCRIBE_UNDEFINED:"stream is undefined or null.",INVALID_SUBSCRIBE_LOCAL:"stream cannot be LocalStream.",INVALID_REMOTE_STREAM:"remoteStream does not exist because it has been unpublished by remote peer.",SUBSCRIBE_FAILED:function(e){return"failed to subscribe stream, reason: ".concat(e.message,".")},INVALID_ROLE:"switchRole can only be called in live mode.",INVALID_PARAMETER_SWITCH_ROLE:"role could only be set to a value as ".concat("anchor"," or ").concat("audience","."),INVALID_OPERATION_SWITCH_ROLE:"please call join() before switchRole().",SWITCH_ROLE_TIMEOUT:"switchRole timeout.",SWITCH_ROLE_FAILED:function(e){return"switchRole failed, errCode: ".concat(e.errCode," errMsg: ").concat(e.errMsg,".")},CLIENT_BANNED:function(e){return"client was banned because of "+e.reason+"."},INVALID_OPERATION_START_PUBLISH_CDN:"please call publish() before startPublishCDNStream().",INVALID_OPERATION_STOP_PUBLISH_CDN:"please call startPublishCDNStream() before stopPublishCDNStream().",START_PUBLISH_CDN_FAILED:function(e){return"startPublishCDNStream failed, errMsg: ".concat(e.message,".")},STOP_PUBLISH_CDN_FAILED:function(e){return"stopPublishCDNStream failed, errMsg: ".concat(e.message,".")},INVALID_STREAM_ID:function(e){return"'".concat(e,"' can only consist of uppercase and lowercase english letters (a-zA-Z), numbers (0-9), hyphens and underscores.")},START_MIX_TRANSCODE:"please call startMixTranscode() after join().",STOP_MIX_TRANSCODE:"please call stopMixTranscode() after startMixTranscode().",INVALID_AUDIO_VOLUME:"interval must be a number.",ENABLE_SMALL_STREAM_PUBLISHED:"Cannot enable small stream after localStream published.",DISABLE_SMALL_STREAM_PUBLISHED:"Cannot disable small stream after localStream published.",NOT_SUPPORTED_SMALL_STREAM:"your browser does not support opening small stream.",INVALID_SMALL_STREAM_PROFILE:"small stream profile is invalid.",INVALID_PARAMETER_REMOTE_STREAM:"remoteStream is invalid.",INVALID_OPERATION_CHANGE_SMALL:"cannot switch to the small stream without subscribing to the video of remoteStream.",REMOTE_NOT_PUBLISH_SMALL_STREAM:"remote peer does not publish small stream.",INVALID_SWITCH_DEVICE:"cannot switch device on current stream.",INVALID_SWITCH_DEVICE_PUBLISHING:"cannot switch device when publishing localStream.",INVALID_REPLACE_TRACK:"cannot replace track when publishing localStream.",INVALID_INITIALIZE_LOCAL_STREAM:"local stream has not initialized yet.",INVALID_ADD_TRACK_REPETITIVE:"previous addTrack is ongoing, please avoid repetitive execution.",INVALID_ADD_TRACK_REMOVING:"cannot add track when a track is removing.",INVALID_ADD_TRACK_PUBLISHING:"cannot add track when publishing localStream.",INVALID_STREAM_INITIALIZED:"your local stream haven't been initialized yet.",INVALID_ADD_TRACK_NUMBER:"a Stream has at most one audio track and one video track.",INVALID_REMOVE_AUDIO_TRACK:"remove audio track is not supported.",INVALID_REMOVE_AUDIO_ADDING:"cannot remove track when a track is adding.",INVALID_REMOVE_AUDIO_ON:"previous removeTrack is ongoing, please avoid repetitive execution.",INVALID_REMOVE_TRACK_PUBLISHING:"cannot remove track when publishing localStream.",INVALID_REMOVE_TRACK_NOT_PUBLISHING:"the track to be removed is not being publishing.",INVALID_REMOVE_TRACK_NUMBER:"remove the only video track is not supported, please use replaceTrack or muteVideo.",INVALID_REMOVE_TRACK_NOT_PUBLISHED:function(e){return"try to replace ".concat(e.kind," track but there's no previous ").concat(e.kind," being published.")},START_MIX_TRANSCODE_FAILED:function(e){return"startMixTranscode failed, errMsg: ".concat(e.message,".")},STOP_MIX_TRANSCODE_FAILED:function(e){return"stopMixTranscode failed, errMsg: ".concat(e.message,".")},MIX_TRANSCODE_NOT_STARTED:"mixTranscode has not been started.",CANNOT_LESS_THAN_ZERO:function(e){var t=e.key,n=e.rule,r=e.fnName;return e.value,"'".concat(t||n.name,"' cannot be less than 0 when calling ").concat(r,"().")},MIX_PARAMS_VIDEO_FRAMERATE:"'config.videoFramerate' should be an integer between 0 and 30, excluding 0.",MIX_PARAMS_VIDEO_GOP:"'config.videoGOP' should be an integer between 1 and 8.",MIX_PARAMS_AUDIO_BITRATE:"'config.audioBitrate' should be an integer between 32 and 192.",MIX_PARAMS_USER_Z_ORDER:function(e){return"'".concat(e,"' is required and must be between 1 and 15.")},MIX_PARAMS_NOT_SELF:"'config.mixUsers' must contain self.",MIX_PARAMS_USER_STREAM:"'config.videoWidth' and 'config.videoHeight' of output stream should be contain all mix stream.",INVALID_PLAY:"duplicate play() call observed, please stop() firstly.",INVALID_ELEMENT_ID:function(e){var t=e.key,n=e.fnName;return"'".concat(t,"' is not found in the document object when calling ").concat(n,"().")},INVALID_ELEMENT_ID_TYPE:function(e){var t=e.key,n=e.fnName,r=e.type;return"the element corresponding to '".concat(t,"' must be instanceof HTMLDivElement when calling ").concat(n,"(), received: ").concat(r,".")},INVALID_USERID:"userId cannot be all spaces.",INVALID_CREATE_STREAM_SOURCE:"LocalStream must be created by createStream() with either audio/video or audioSource/videoSource, but can not be mixed with audio/video and audioSource/videoSource.",INVALID_CREATE_STREAM_SCREEN:"screen/video cannot be both true.",INVALID_CREATE_STREAM_AUDIO:"audio/screenAudio cannot be both true.",INVALID_CREATE_STREAM_SCREEN_AUDIO:"when screen is true, screenAudio can be configured.",NOT_SUPPORTED_HTTP:"not supported in http protocol, please use https protocol.",NOT_SUPPORTED_WEBRTC:"your browser does NOT support WebRTC!",NOT_SUPPORTED_PROFILE:"your browser does not support setVideoProfile.",NOT_SUPPORTED_MEDIA:"your browser does not support navigator.mediaDevices.",NOT_SUPPORTED_H264ENCODE:"your device does not support H.264 encoding.",NOT_SUPPORTED_H264DECODE:"your device does not support H.264 decoding.",NOT_SUPPORTED_REPLACE_TRACK:"replaceTrack is not supported in this browser, please use switchDevice or addTrack instead.",NOT_SUPPORTED_CAPTURE:"captureScreen is not supported, please use chrome.",MICROPHONE_NOT_FOUND:"no microphone detected, please check your microphone and the configuration on TRTC.createStream.",CAMERA_NOT_FOUND:"no camera detected, please check your camera and the configuration on TRTC.createStream.",SIGNAL_RESPONSE_FAILED:function(e){return"".concat(e.signalResponse," failed, response code is ").concat(e.code," , errMsg: ").concat(e.message,".")},CATCH_HANDLER_ERROR:function(e){var t=e.name,n=e.event;return"an error was caught on ".concat(t,".on('").concat(n,"', handler), please check your code on 'handler'.")}},hh=fp+"module-ErrorCode.html",mh=function(){if(!cu())return!1;var e=localStorage.getItem("trtc_error_assistance");e&&!function(e){var t=e.saveTime&&(new Date).getTime()-e.saveTime>=6048e5,n=!e.saveVersion||"4.12.3"!==e.saveVersion;return t||n}(JSON.parse(e))||(Wv.log("request error info"),function(){var e=new XMLHttpRequest;if(e.open("GET","https://web.sdk.qcloud.com/trtc/webrtc/download/error-message/0.0.1/script.js",!1),e.send(null),4===e.readyState&&200===e.status){var t=document.createElement("script");t.type="text/javascript",t.text=e.responseText,document.body.appendChild(t),localStorage.setItem("trtc_error_assistance",JSON.stringify({message:e.responseText,saveTime:(new Date).getTime(),saveVersion:"4.12.3"})),document.body.removeChild(t)}}())};function vh(e){var t=e.key,n=e.data,r=e.link,o=e.addDocLink,i=void 0===o||o,a="",s="",l="";Sh(fh[t])?a=fh[t](n):xh(fh[t])&&(a=fh[t]);var c=function(){if(window.TRTC_ERROR_INFO&&window.TRTC_ERROR_LINK)return{TRTC_ERROR_INFO:window.TRTC_ERROR_INFO,TRTC_ERROR_LINK:window.TRTC_ERROR_LINK};var e=localStorage.getItem("trtc_error_assistance");if(e){e=JSON.parse(e);var t=document.createElement("script");t.type="text/javascript",t.text=e.message,document.body.appendChild(t);var n=window.TRTC_ERROR_INFO,r=window.TRTC_ERROR_LINK;return document.body.removeChild(t),{TRTC_ERROR_INFO:n,TRTC_ERROR_LINK:r}}return{}}(),u=c.TRTC_ERROR_INFO,d=c.TRTC_ERROR_LINK;u&&u[t]&&(Sh(u[t])?s=u[t](n):xh(u[t])&&(s=u[t])),r?l=fp+"".concat(r.className,".html#").concat(r.className===op?".":"").concat(r.fnName):d&&d[t]&&(l=fp+d[t]);var p=a;return p+=" "+s,i&&(p+=s?l?"查看文档:"+l:"查看文档:"+hh:l?"Refer to:"+l:"Refer to:"+hh),p}var gh=function(){return function(e){var t=window.location.search.match(new RegExp("(\\?|&)"+e+"=([^&]*)(&|$)"));return t?decodeURIComponent(t[2]):""}("trtc_env")},yh=function(e){return Number(e)<14e8},bh=function(e,t){var n;n=Vu||(yh(e)?"https://videoapi-sgp.im.qcloud.com":"https://yun.tim.qq.com");var r=Math.floor(Math.random()*Math.pow(2,31));return"".concat(n,"/v5/AVQualityReportSvc/C2S?random=").concat(r,"&sdkappid=").concat(e,"&cmdtype=").concat(t)};function _h(){var e=navigator.userAgent,t=navigator.connection,n=e.match(/NetType\/\w+/)?e.match(/NetType\/\w+/)[0]:"";"3gnet"===(n=n.toLowerCase().replace("nettype/",""))&&(n="3g");var r=t&&t.type&&t.type.toLowerCase(),o=t&&t.effectiveType&&t.effectiveType.toLowerCase();"slow-2"===o&&(o="2g");var i=n||"unknown";if(r)switch(r){case"cellular":case"wimax":i=o||"unknown";break;case"wifi":i="wifi";break;case"ethernet":i="wired";break;case"none":case"other":case"unknown":i="unknown"}return i}var wh=function(e){if(!e||"object"!==r(e)||"[object Object]"!=Object.prototype.toString.call(e))return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Function.prototype.toString.call(n)===Function.prototype.toString.call(Object)};function kh(e){var t=Math.round(e/2)+1;return t>6?13e3:1e3*function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return t<=1?r:e(t-1,r,n+r)}(t)}var Sh=function(e){return"function"==typeof e},Ch=function(e){return void 0===e},xh=function(e){return"string"==typeof e},Ih=function(e){return"number"==typeof e},Th=function(e){return"boolean"==typeof e},Eh=function(e){return"array"===Ph(e)},Rh=function(e){return Ph(e)==="MediaStreamTrack".toLowerCase()};function Ph(e){return Reflect.apply(Object.prototype.toString,e,[]).replace(/^\[object\s(\w+)\]$/,"$1").toLowerCase()}function Oh(e){var t={};return t.urls="turn:".concat(e.url),Ch(e.username)||Ch(e.credential)||(t.username=e.username,t.credential=e.credential,t.credentialType="password",Ch(e.credentialType)||(t.credentialType=e.credentialType)),t}function Ah(){return performance&&performance.now?Math.floor(performance.now()):Date.now()}function Dh(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"big";if(!xh(e))return 0;var n=e.split(".");return"big"===t?(Number(n[0])<<24|Number(n[1])<<16|Number(n[2])<<8|Number(n[3]))>>>0:(Number(n[3])<<24|Number(n[2])<<16|Number(n[1])<<8|Number(n[0]))>>>0}var Nh,Mh,Lh=function(){var e=navigator.language||navigator.userLanguage;return"zh"===e.substr(0,2)},Fh=(Nh=!1,Mh=document.visibilityState,function(){document.visibilityState!==Mh&&Wv.info("visibility change: ".concat(document.visibilityState)),Nh||(document.addEventListener("visibilitychange",(function(){Wv.info("visibility change: "+document.visibilityState),Mh=document.visibilityState})),Nh=!0)}),Uh=!!window.AudioWorkletNode,jh=function(e,t){var n=e.emit;return e.emit=function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];try{n.apply(e,o)}catch(KS){var a=vh({key:ph,data:{name:t,event:o[0]},addDocLink:!1});Wv.warn(a+"\n\n"+KS.stack)}},e},Vh=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}},Hh=Object.prototype.toString;function Bh(e){return"[object Array]"===Hh.call(e)}function $h(e){return void 0===e}function zh(e){return null!==e&&"object"==typeof e}function Wh(e){return"[object Function]"===Hh.call(e)}function qh(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),Bh(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}var Zh={isArray:Bh,isArrayBuffer:function(e){return"[object ArrayBuffer]"===Hh.call(e)},isBuffer:function(e){return null!==e&&!$h(e)&&null!==e.constructor&&!$h(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:zh,isUndefined:$h,isDate:function(e){return"[object Date]"===Hh.call(e)},isFile:function(e){return"[object File]"===Hh.call(e)},isBlob:function(e){return"[object Blob]"===Hh.call(e)},isFunction:Wh,isStream:function(e){return zh(e)&&Wh(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:qh,merge:function e(){var t={};function n(n,r){"object"==typeof t[r]&&"object"==typeof n?t[r]=e(t[r],n):t[r]=n}for(var r=0,o=arguments.length;r<o;r++)qh(arguments[r],n);return t},deepMerge:function e(){var t={};function n(n,r){"object"==typeof t[r]&&"object"==typeof n?t[r]=e(t[r],n):t[r]="object"==typeof n?e({},n):n}for(var r=0,o=arguments.length;r<o;r++)qh(arguments[r],n);return t},extend:function(e,t,n){return qh(t,(function(t,r){e[r]=n&&"function"==typeof t?Vh(t,n):t})),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}};function Yh(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var Kh=function(e,t,n){if(!t)return e;var r;if(n)r=n(t);else if(Zh.isURLSearchParams(t))r=t.toString();else{var o=[];Zh.forEach(t,(function(e,t){null!=e&&(Zh.isArray(e)?t+="[]":e=[e],Zh.forEach(e,(function(e){Zh.isDate(e)?e=e.toISOString():Zh.isObject(e)&&(e=JSON.stringify(e)),o.push(Yh(t)+"="+Yh(e))})))})),r=o.join("&")}if(r){var i=e.indexOf("#");-1!==i&&(e=e.slice(0,i)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e};function Jh(){this.handlers=[]}Jh.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},Jh.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},Jh.prototype.forEach=function(e){Zh.forEach(this.handlers,(function(t){null!==t&&e(t)}))};var Gh=Jh,Xh=function(e,t,n){return Zh.forEach(n,(function(n){e=n(e,t)})),e},Qh=function(e){return!(!e||!e.__CANCEL__)},em="undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function tm(){throw new Error("setTimeout has not been defined")}function nm(){throw new Error("clearTimeout has not been defined")}var rm=tm,om=nm;function im(e){if(rm===setTimeout)return setTimeout(e,0);if((rm===tm||!rm)&&setTimeout)return rm=setTimeout,setTimeout(e,0);try{return rm(e,0)}catch(t){try{return rm.call(null,e,0)}catch(t){return rm.call(this,e,0)}}}"function"==typeof em.setTimeout&&(rm=setTimeout),"function"==typeof em.clearTimeout&&(om=clearTimeout);var am,sm=[],lm=!1,cm=-1;function um(){lm&&am&&(lm=!1,am.length?sm=am.concat(sm):cm=-1,sm.length&&dm())}function dm(){if(!lm){var e=im(um);lm=!0;for(var t=sm.length;t;){for(am=sm,sm=[];++cm<t;)am&&am[cm].run();cm=-1,t=sm.length}am=null,lm=!1,function(e){if(om===clearTimeout)return clearTimeout(e);if((om===nm||!om)&&clearTimeout)return om=clearTimeout,clearTimeout(e);try{om(e)}catch(t){try{return om.call(null,e)}catch(t){return om.call(this,e)}}}(e)}}function pm(e,t){this.fun=e,this.array=t}function fm(){}pm.prototype.run=function(){this.fun.apply(null,this.array)};var hm=fm,mm=fm,vm=fm,gm=fm,ym=fm,bm=fm,_m=fm,wm=em.performance||{},km=wm.now||wm.mozNow||wm.msNow||wm.oNow||wm.webkitNow||function(){return(new Date).getTime()},Sm=new Date,Cm={nextTick:function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];sm.push(new pm(e,t)),1!==sm.length||lm||im(dm)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:hm,addListener:mm,once:vm,off:gm,removeListener:ym,removeAllListeners:bm,emit:_m,binding:function(e){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(e){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(e){var t=.001*km.call(wm),n=Math.floor(t),r=Math.floor(t%1*1e9);return e&&(n-=e[0],(r-=e[1])<0&&(n--,r+=1e9)),[n,r]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-Sm)/1e3}},xm=function(e,t){Zh.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))},Im=function(e,t,n,r,o){return function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}(new Error(e),t,n,r,o)},Tm=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],Em=Zh.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=r(window.location.href),function(t){var n=Zh.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0},Rm=Zh.isStandardBrowserEnv()?{write:function(e,t,n,r,o,i){var a=[];a.push(e+"="+encodeURIComponent(t)),Zh.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Zh.isString(r)&&a.push("path="+r),Zh.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},Pm=function(e){return new Promise((function(t,n){var r=e.data,o=e.headers;Zh.isFormData(r)&&delete o["Content-Type"];var i=new XMLHttpRequest;if(e.auth){var a=e.auth.username||"",s=e.auth.password||"";o.Authorization="Basic "+btoa(a+":"+s)}var l,c,u=(l=e.baseURL,c=e.url,l&&!/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(c)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(l,c):c);if(i.open(e.method.toUpperCase(),Kh(u,e.params,e.paramsSerializer),!0),i.timeout=e.timeout,i.onreadystatechange=function(){if(i&&4===i.readyState&&(0!==i.status||i.responseURL&&0===i.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in i?function(e){var t,n,r,o={};return e?(Zh.forEach(e.split("\n"),(function(e){if(r=e.indexOf(":"),t=Zh.trim(e.substr(0,r)).toLowerCase(),n=Zh.trim(e.substr(r+1)),t){if(o[t]&&Tm.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n}})),o):o}(i.getAllResponseHeaders()):null,o={data:e.responseType&&"text"!==e.responseType?i.response:i.responseText,status:i.status,statusText:i.statusText,headers:r,config:e,request:i};!function(e,t,n){var r=n.config.validateStatus;!r||r(n.status)?e(n):t(Im("Request failed with status code "+n.status,n.config,null,n.request,n))}(t,n,o),i=null}},i.onabort=function(){i&&(n(Im("Request aborted",e,"ECONNABORTED",i)),i=null)},i.onerror=function(){n(Im("Network Error",e,null,i)),i=null},i.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(Im(t,e,"ECONNABORTED",i)),i=null},Zh.isStandardBrowserEnv()){var d=Rm,p=(e.withCredentials||Em(u))&&e.xsrfCookieName?d.read(e.xsrfCookieName):void 0;p&&(o[e.xsrfHeaderName]=p)}if("setRequestHeader"in i&&Zh.forEach(o,(function(e,t){void 0===r&&"content-type"===t.toLowerCase()?delete o[t]:i.setRequestHeader(t,e)})),Zh.isUndefined(e.withCredentials)||(i.withCredentials=!!e.withCredentials),e.responseType)try{i.responseType=e.responseType}catch(h){if("json"!==e.responseType)throw h}"function"==typeof e.onDownloadProgress&&i.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&i.upload&&i.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){i&&(i.abort(),n(e),i=null)})),void 0===r&&(r=null),i.send(r)}))},Om={"Content-Type":"application/x-www-form-urlencoded"};function Am(e,t){!Zh.isUndefined(e)&&Zh.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var Dm={adapter:function(){var e;return("undefined"!=typeof XMLHttpRequest||void 0!==Cm&&"[object process]"===Object.prototype.toString.call(Cm))&&(e=Pm),e}(),transformRequest:[function(e,t){return xm(t,"Accept"),xm(t,"Content-Type"),Zh.isFormData(e)||Zh.isArrayBuffer(e)||Zh.isBuffer(e)||Zh.isStream(e)||Zh.isFile(e)||Zh.isBlob(e)?e:Zh.isArrayBufferView(e)?e.buffer:Zh.isURLSearchParams(e)?(Am(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):Zh.isObject(e)?(Am(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(t){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Zh.forEach(["delete","get","head"],(function(e){Dm.headers[e]={}})),Zh.forEach(["post","put","patch"],(function(e){Dm.headers[e]=Zh.merge(Om)}));var Nm=Dm;function Mm(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var Lm=function(e){return Mm(e),e.headers=e.headers||{},e.data=Xh(e.data,e.headers,e.transformRequest),e.headers=Zh.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),Zh.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||Nm.adapter)(e).then((function(t){return Mm(e),t.data=Xh(t.data,t.headers,e.transformResponse),t}),(function(t){return Qh(t)||(Mm(e),t&&t.response&&(t.response.data=Xh(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))},Fm=function(e,t){t=t||{};var n={},r=["url","method","params","data"],o=["headers","auth","proxy"],i=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];Zh.forEach(r,(function(e){void 0!==t[e]&&(n[e]=t[e])})),Zh.forEach(o,(function(r){Zh.isObject(t[r])?n[r]=Zh.deepMerge(e[r],t[r]):void 0!==t[r]?n[r]=t[r]:Zh.isObject(e[r])?n[r]=Zh.deepMerge(e[r]):void 0!==e[r]&&(n[r]=e[r])})),Zh.forEach(i,(function(r){void 0!==t[r]?n[r]=t[r]:void 0!==e[r]&&(n[r]=e[r])}));var a=r.concat(o).concat(i),s=Object.keys(t).filter((function(e){return-1===a.indexOf(e)}));return Zh.forEach(s,(function(r){void 0!==t[r]?n[r]=t[r]:void 0!==e[r]&&(n[r]=e[r])})),n};function Um(e){this.defaults=e,this.interceptors={request:new Gh,response:new Gh}}Um.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=Fm(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[Lm,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},Um.prototype.getUri=function(e){return e=Fm(this.defaults,e),Kh(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},Zh.forEach(["delete","get","head","options"],(function(e){Um.prototype[e]=function(t,n){return this.request(Zh.merge(n||{},{method:e,url:t}))}})),Zh.forEach(["post","put","patch"],(function(e){Um.prototype[e]=function(t,n,r){return this.request(Zh.merge(r||{},{method:e,url:t,data:n}))}}));var jm=Um;function Vm(e){this.message=e}Vm.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},Vm.prototype.__CANCEL__=!0;var Hm=Vm;function Bm(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new Hm(e),t(n.reason))}))}Bm.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},Bm.source=function(){var e;return{token:new Bm((function(t){e=t})),cancel:e}};var $m=Bm;function zm(e){var t=new jm(e),n=Vh(jm.prototype.request,t);return Zh.extend(n,jm.prototype,t),Zh.extend(n,t),n}var Wm=zm(Nm);Wm.Axios=jm,Wm.create=function(e){return zm(Fm(Wm.defaults,e))},Wm.Cancel=Hm,Wm.CancelToken=$m,Wm.isCancel=Qh,Wm.all=function(e){return Promise.all(e)},Wm.spread=function(e){return function(t){return e.apply(null,t)}};var qm=Wm,Zm=Wm;qm.default=Zm;var Ym=qm,Km=I((function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,r,i,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new o(r,i||e,a),l=n?n+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],s]:e._events[l].push(s):(e._events[l]=s,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,o=[];if(0===this._eventsCount)return o;for(r in e=this._events)t.call(e,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,a=new Array(i);o<i;o++)a[o]=r[o].fn;return a},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,o,i,a){var s=n?n+e:e;if(!this._events[s])return!1;var l,c,u=this._events[s],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,r),!0;case 4:return u.fn.call(u.context,t,r,o),!0;case 5:return u.fn.call(u.context,t,r,o,i),!0;case 6:return u.fn.call(u.context,t,r,o,i,a),!0}for(c=1,l=new Array(d-1);c<d;c++)l[c-1]=arguments[c];u.fn.apply(u.context,l)}else{var p,f=u.length;for(c=0;c<f;c++)switch(u[c].once&&this.removeListener(e,u[c].fn,void 0,!0),d){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,t);break;case 3:u[c].fn.call(u[c].context,t,r);break;case 4:u[c].fn.call(u[c].context,t,r,o);break;default:if(!l)for(p=1,l=new Array(d-1);p<d;p++)l[p-1]=arguments[p];u[c].fn.apply(u[c].context,l)}}return!0},s.prototype.on=function(e,t,n){return i(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return i(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,o){var i=n?n+e:e;if(!this._events[i])return this;if(!t)return a(this,i),this;var s=this._events[i];if(s.fn)s.fn!==t||o&&!s.once||r&&s.context!==r||a(this,i);else{for(var l=0,c=[],u=s.length;l<u;l++)(s[l].fn!==t||o&&!s[l].once||r&&s[l].context!==r)&&c.push(s[l]);c.length?this._events[i]=1===c.length?c[0]:c:a(this,i)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&a(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s})),Jm=new Km,Gm=1,Xm=2,Qm=3,ev=4,tv=5,nv=20,rv=21,ov=22,iv=23,av=24,sv=27,lv=28,cv=29,uv=30,dv=31,pv=32,fv=100,hv=101,mv=102,vv=103,gv=110,yv=111,bv=112,_v=113,wv=114,kv=115,Sv=116,Cv=120,xv=121,Iv=122,Tv=123,Ev=130,Rv=131,Pv=132,Ov=133,Av=134,Dv=135,Nv=136,Mv=137,Lv=200,Fv=201,Uv=300,jv=301,Vv=302,Hv=303;function Bv(e){var t=e.retryFunction,n=e.settings,r=e.onError,o=e.onRetrying,a=e.context;return function(){for(var e=this,s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];var u=n.retries||5,d=0,p=-1,f=0,h=function(){var s=i(regeneratorRuntime.mark((function i(s,c){var m,v,g,y;return regeneratorRuntime.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,m=a||e,i.next=4,t.apply(m,l);case 4:v=i.sent,d=0,s(v),i.next=14;break;case 9:i.prev=9,i.t0=i.catch(0),g=function(){clearTimeout(p),d=0,f=2,c(i.t0)},y=function(){2!==f&&d<u?(d++,f=1,Sh(o)&&o(d,g),p=setTimeout((function(){p=-1,h(s,c)}),Ch(n.timeout)?1e3:n.timeout)):g()},Sh(r)?r(i.t0,y,c):y();case 14:case"end":return i.stop()}}),i,null,[[0,9]])})));return function(e,t){return s.apply(this,arguments)}}();return new Promise(h)}}var $v=function e(t){a(this,e),this.log=t.log,this.level=t.level,this.userId=t.userId,this.sdkAppId=t.sdkAppId,this.forAllJoinedClients=t.forAllJoinedClients,this.uploaded=!1},zv=function(){function e(t){a(this,e),this.id_=t.id,this.userId_=t.userId,this.sdkAppId_=t.sdkAppId,this.type_=t.type,this.isLocal_=!Th(t.isLocal)||t.isLocal}return l(e,[{key:"setUserId",value:function(e){this.userId_=e}},{key:"setSdkAppId",value:function(e){this.sdkAppId_=e}},{key:"log",value:function(e,t){Wv.log({log:"[".concat(this.isLocal_?"":"*").concat(this.id_,"] ").concat(this.type_?this.type_+" ":"").concat(t),level:e,forAllJoinedClients:Ch(this.userId_),userId:this.userId_,sdkAppId:this.sdkAppId_})}},{key:"info",value:function(e){this.log(hp.INFO,e)}},{key:"debug",value:function(e){this.log(hp.DEBUG,e)}},{key:"warn",value:function(e){this.log(hp.WARN,e)}},{key:"error",value:function(e){this.log(hp.ERROR,e)}}]),e}(),Wv=new(function(){function e(){var t=this;a(this,e),this.clients_=[],this.queue_=[],this.timeoutId_=-1,this.logLevel_=hp.DEBUG,this.logLevelToUpload_=hp.INFO,this.enableUploadLog_=!0,this.isAbleToUpload_=!1,this.startUpload(),this.checkURLParam(),Jm.on(uv,(function(e){var n=e.client;return t.clients_.push(n)})),Jm.on(dv,(function(e){e&&wh(e.config)&&mp[e.config.logLevelToUpload]&&(t.logLevelToUpload_=e.config.logLevelToUpload)})),Jm.on(ev,this.setIsAbleToUpload,this),Jm.on(tv,this.setIsAbleToUpload,this)}var t,n;return l(e,[{key:"getIsAbleToUpload",value:function(){return this.isAbleToUpload_}},{key:"setIsAbleToUpload",value:function(){this.isAbleToUpload_=!0,Jm.off(ev,this.setIsAbleToUpload,this),Jm.off(tv,this.setIsAbleToUpload,this)}},{key:"startUpload",value:(n=i(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.upload();case 3:e.next=7;break;case 5:e.prev=5,e.t0=e.catch(0);case 7:this.timeoutId_=setTimeout((function(){return t.startUpload()}),2e3);case 8:case"end":return e.stop()}}),e,this,[[0,5]])}))),function(){return n.apply(this,arguments)})},{key:"stopUpload",value:function(){-1!==this.timeoutId_&&(clearTimeout(this.timeoutId_),this.timeoutId_=-1)}},{key:"getLogsToUpload",value:function(){var e=this,t={map:new Map,splicedQueue:[]};if(this.queue_[0].forAllJoinedClients&&0===this.clients_.length)return t;for(var n=0,r=function(){if(50===n)return"break";var r=e.queue_[n];r.forAllJoinedClients?e.clients_.forEach((function(e){if(e.getIsJoined()){var n=e.getUserId(),o=e.getSDKAppId();t.map.has(n)?t.map.get(n).logs.push(r):t.map.set(n,{userId:n,sdkAppId:o,logs:[r]})}})):t.map.has(r.userId)?t.map.get(r.userId).logs.push(r):t.map.set(r.userId,{userId:r.userId,sdkAppId:r.sdkAppId,logs:[r]})};n<this.queue_.length;n++)if("break"===r())break;return t.map.size>0&&(t.splicedQueue=this.queue_.splice(0,n)),t}},{key:"upload",value:(t=i(regeneratorRuntime.mark((function e(){var t,n,r,o,i,a,s,l,c,u;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==this.queue_.length&&this.isAbleToUpload_){e.next=2;break}return e.abrupt("return");case 2:if(t=this.getLogsToUpload(),n=t.map,r=t.splicedQueue,0!==n.size){e.next=5;break}return e.abrupt("return");case 5:e.prev=5,o=_(n.values()),i=0;case 8:if(!(i<o.length)){e.next=16;break}return a=o[i],s=a.userId,l=a.sdkAppId,c=a.logs,e.next=12,this.uploadLogWithRetry(JSON.stringify({timestamp:ka(),sdkAppId:String(l),userId:s,version:"4.12.3",log:c.map((function(e){return e.log})).join("\n")}),l);case 12:c.forEach((function(e){return e.uploaded=!0}));case 13:i++,e.next=8;break;case 16:e.next=20;break;case 18:e.prev=18,e.t0=e.catch(5);case 20:(u=r.filter((function(e){return!e.uploaded}))).length>0&&(this.queue_=u.concat(this.queue_));case 22:case"end":return e.stop()}}),e,this,[[5,18]])}))),function(){return t.apply(this,arguments)})},{key:"uploadLogWithRetry",value:function(e,t){return Bv({retryFunction:function(){return Ym.post(bh(t,Hu),e,{timeout:5e3})},settings:{retries:3,timeout:1e3},onError:function(e,t){t()}})()}},{key:"getPrefix",value:function(e){var t=new Date;return t.setTime(wa()),"[".concat(t.toTimeString().replace(/.*(\d{2}:\d{2}:\d{2}).*/,"$1"),":").concat(t.getMilliseconds(),"] <").concat(mp[e],">")}},{key:"getLogLevel",value:function(){return this.logLevel_}},{key:"setLogLevel",value:function(e){Ch(mp[e])||(this.logLevel_!==e&&this.info("setLogLevel ".concat(e)),this.logLevel_=e)}},{key:"enableUploadLog",value:function(){this.enableUploadLog_=!0}},{key:"disableUploadLog",value:function(){this.enableUploadLog_=!1}},{key:"log",value:function(e){var t=e.log,n=e.level,r=e.forAllJoinedClients,o=void 0===r||r,i=e.userId,a=e.sdkAppId;if(t="".concat(this.getPrefix(n)," ").concat(t),this.enableUploadLog_&&n>=this.logLevelToUpload_&&this.queue_.push(new $v({log:t,level:n,userId:i,sdkAppId:a,forAllJoinedClients:o})),!(n<this.logLevel_))switch(n){case hp.ERROR:console.error(t);break;case hp.WARN:console.warn(t);break;case hp.INFO:console.log(t);break;case hp.DEBUG:console.debug(t)}}},{key:"debug",value:function(e){this.log({log:e,level:hp.DEBUG})}},{key:"info",value:function(e){this.log({log:e,level:hp.INFO})}},{key:"warn",value:function(e){this.log({log:e,level:hp.WARN})}},{key:"error",value:function(e){this.log({log:e,level:hp.ERROR})}},{key:"createLogger",value:function(e){return new zv(e)}},{key:"checkURLParam",value:function(){var e=new URLSearchParams(location.search).get("logLevelToUpload");mp[e]&&(this.logLevelToUpload_=e)}}]),e}()),qv=!0,Zv=Math.floor,Yv=Number.isInteger||function(e){return!z(e)&&isFinite(e)&&Zv(e)===e};It({target:"Number",stat:!0},{isInteger:Yv});var Kv,Jv=function(e){if(Ca(e))throw TypeError("The method doesn't accept regular expressions");return e},Gv=ge("match"),Xv=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[Gv]=!1,"/./"[e](t)}catch(o){}}return!1},Qv=Ie.f,eg="".startsWith,tg=Math.min,ng=Xv("startsWith"),rg=!(ng||(Kv=Qv(String.prototype,"startsWith"),!Kv||Kv.writable));It({target:"String",proto:!0,forced:!rg&&!ng},{startsWith:function(e){var t=No(H(this));Jv(e);var n=at(tg(arguments.length>1?arguments[1]:void 0,t.length)),r=No(e);return eg?eg.call(t,r,n):t.slice(n,n+r.length)===r}});var og=Qa.trim,ig=P.parseInt,ag=P.Symbol,sg=ag&&ag.iterator,lg=/^[+-]?0[Xx]/,cg=8!==ig(Ya+"08")||22!==ig(Ya+"0x16")||sg&&!O((function(){ig(Object(sg))}))?function(e,t){var n=og(No(e));return ig(n,t>>>0||(lg.test(n)?16:10))}:ig;It({global:!0,forced:parseInt!=cg},{parseInt:cg});var ug=[].slice,dg={},pg=function(e,t,n){if(!(t in dg)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";dg[t]=Function("C,a","return new C("+r.join(",")+")")}return dg[t](e,n)},fg=Function.bind||function(e){var t=re(this),n=ug.call(arguments,1),r=function(){var o=n.concat(ug.call(arguments));return this instanceof r?pg(t,o.length,o):t.apply(e,o)};return z(t.prototype)&&(r.prototype=t.prototype),r};It({target:"Function",proto:!0},{bind:fg});var hg=Wt.findIndex,mg=!0;"findIndex"in[]&&Array(1).findIndex((function(){mg=!1})),It({target:"Array",proto:!0,forced:mg},{findIndex:function(e){return hg(this,e,arguments.length>1?arguments[1]:void 0)}}),Rr("findIndex");var vg=M.f,gg=function(e){return function(t){for(var n,r=B(t),o=mr(r),i=o.length,a=0,s=[];i>a;)n=o[a++],A&&!vg.call(r,n)||s.push(e?[n,r[n]]:r[n]);return s}},yg={entries:gg(!0),values:gg(!1)}.values;It({target:"Object",stat:!0},{values:function(e){return yg(e)}});var bg=ct.includes;It({target:"Array",proto:!0},{includes:function(e){return bg(this,e,arguments.length>1?arguments[1]:void 0)}}),Rr("includes"),It({target:"String",proto:!0,forced:!Xv("includes")},{includes:function(e){return!!~No(H(this)).indexOf(No(Jv(e)),arguments.length>1?arguments[1]:void 0)}});var _g=1,wg=2,kg=3,Sg=4,Cg="DISCONNECTED",xg="CONNECTING",Ig="RECONNECTING",Tg="CONNECTED",Eg={CLINET_BANNED:9,CHANNEL_SETUP_RESULT:19,CHANNEL_RECONNECT_RESULT:514,JOIN_ROOM_RESULT:20,PEER_JOIN:4134,PEER_LEAVE:4135,STREAM_ADDED:16,STREAM_REMOVED:18,UPLINK_NETWORK_STATS:22,UPDATE_REMOTE_MUTE_STAT:23,PUBLISH_RESULT:4098,UNPUBLISH_RESULT:4100,SUBSCRIBE_RESULT:4102,UNSUBSCRIBE_RESULT:4104,SUBSCRIBE_CHANGE_RESULT:4106,MUTE_RESULT:4108,UPDATE_OFFER_RESULT:4128,START_PUBLISH_TENCENT_CDN_RES:1286,STOP_PUBLISH_TENCENT_CDN_RES:1288,START_PUBLISH_GIVEN_CDN_RES:777,STOP_PUBLISH_GIVEN_CDN_RES:779,START_MIX_TRANSCODE_RES:781,STOP_MIX_TRANSCODE_RES:783,USER_LIST_RES:4137,SWITCH_ROLE_RES:4110},Rg=[Eg.UPDATE_REMOTE_MUTE_STAT,Eg.UPLINK_NETWORK_STATS,Eg.USER_LIST_RES,Eg.MUTE_RESULT],Pg={CLINET_BANNED:"client-banned",CHANNEL_SETUP_RESULT:"channel-setup-result",CHANNEL_RECONNECT_RESULT:"channel-reconnect-result",JOIN_ROOM_RESULT:"join-room-result",PEER_JOIN:"peer-join",PEER_LEAVE:"peer-leave",STREAM_ADDED:"stream-added",STREAM_REMOVED:"stream-removed",UPLINK_NETWORK_STATS:"uplink-network-stats",UPDATE_REMOTE_MUTE_STAT:"update-remote-mute-stat",PUBLISH_RESULT:"publish-result",UNPUBLISH_RESULT:"unpublish-result",SUBSCRIBE_RESULT:"subscribe-result",SUBSCRIBE_CHANGE_RESULT:"subscribe-change-result",UNSUBSCRIBE_RESULT:"unsubscribe-result",UPDATE_OFFER_RESULT:"update-offer-result",START_PUBLISH_TENCENT_CDN_RES:"start-publish-tencent-cdn-res",STOP_PUBLISH_TENCENT_CDN_RES:"stop-publish-tencent-cdn-res",START_PUBLISH_GIVEN_CDN_RES:"start-publish-given-cdn-res",STOP_PUBLISH_GIVEN_CDN_RES:"stop-publish-given-cdn-res",START_MIX_TRANSCODE_RES:"start-mix-transcode-res",STOP_MIX_TRANSCODE_RES:"stop-mix-transcode-res",USER_LIST_RES:"user-list-res",SWITCH_ROLE_RES:"switch_role_res",MUTE_RESULT:"mute-result"},Og="publish_change",Ag="join",Dg="leave",Ng="quality_report",Mg="mute_uplink",Lg="publish",Fg="unpublish",Ug="subscribe",jg="unsubscribe",Vg="subscribe_change",Hg="start_publishing",Bg="stop_publishing",$g="start_push_user_cdn",zg="stop_push_user_cdn",Wg="start_mcu_mix",qg="stop_mcu_mix",Zg="get_user_list",Yg="change_role",Kg={INVALID_PARAMETER:4096,INVALID_OPERATION:4097,NOT_SUPPORTED:4098,DEVICE_NOT_FOUND:4099,INITIALIZE_FAILED:4100,SIGNAL_CHANNEL_SETUP_FAILED:16385,SIGNAL_CHANNEL_ERROR:16386,ICE_TRANSPORT_ERROR:16387,JOIN_ROOM_FAILED:16388,CREATE_OFFER_FAILED:16389,SIGNAL_CHANNEL_RECONNECTION_FAILED:16390,UPLINK_RECONNECTION_FAILED:16391,DOWNLINK_RECONNECTION_FAILED:16392,REMOTE_STREAM_NOT_EXIST:16400,CLIENT_BANNED:16448,SERVER_TIMEOUT:16449,SUBSCRIPTION_TIMEOUT:16450,PLAY_NOT_ALLOWED:16451,DEVICE_AUTO_RECOVER_FAILED:16452,START_PUBLISH_CDN_FAILED:16453,STOP_PUBLISH_CDN_FAILED:16454,START_MIX_TRANSCODE_FAILED:16455,STOP_MIX_TRANSCODE_FAILED:16456,NOT_SUPPORTED_H264:16457,SWITCH_ROLE_FAILED:16458,API_CALL_TIMEOUT:16459,SCHEDULE_FAILED:16460,UNKNOWN:65535},Jg=function(e){u(n,e);var t=g(n);function n(e){var r,o=e.name,i=void 0===o?"RtcError":o,s=e.message,l=e.code,c=void 0===l?Kg.UNKNOWN:l,u=e.extraCode,d=void 0===u?0:u,p=e.constraint;a(this,n);var f="<".concat(function(e){for(var t in Kg)if(Kg[t]===e)return t;return"UNKNOWN"}(c)," 0x").concat(c.toString(16),">");return(r=t.call(this,s+"".concat(p?" constraint: ".concat(p):"")+"".concat(s.includes(f)?"":" "+f))).code_=c,r.extraCode_=d,r.name=i,r.message_=s,p&&(r.constraint=p),r}return l(n,[{key:"getCode",value:function(){return this.code_}},{key:"getExtraCode",value:function(){return this.extraCode_}}]),n}(m(Error)),Gg=32768,Xg=32769,Qg=32770,ey=32771,ty=32772,ny=32773,ry=32774,oy=32775,iy=32777,ay=32778,sy=32779,ly=32780,cy=32781,uy=32782,dy=32783,py=32784,fy=32785,hy=32786,my=32787,vy=32788,gy=32789,yy=32790,by=32791,_y=32792,wy=32793,ky=32794,Sy=32795,Cy=32796,xy=32797,Iy=32798,Ty=32799,Ey=32800,Ry=32801,Py=32802,Oy=32803,Ay=32804,Dy=new Map,Ny=function(e,t){var n=Dy.get(e);n||(Dy.set(e,[]),n=Dy.get(e)),n.push(t)},My=function(e){var t=Dy.get(e),n=[];return t?(Dy.delete(e),n=t.map((function(e){return{uint32_event_id:e.eventId,uint64_date:e.timestamp,str_userid:e.remoteUserId,str_event_json:e.eventDesc}}))):n=[],n},Ly=Object.prototype.hasOwnProperty;function Fy(e){if(null==e)return!0;if("boolean"==typeof e)return!1;if("number"==typeof e)return 0===e;if("string"==typeof e)return 0===e.length;if("function"==typeof e)return 0===e.length;if(Array.isArray(e))return 0===e.length;if(e instanceof Error)return""===e.message;if(wh(e))switch(Object.prototype.toString.call(e)){case"[object File]":case"[object Map]":case"[object Set]":return 0===e.size;case"[object Object]":for(var t in e)if(Ly.call(e,t))return!1;return!0}return!1}var Uy=new(function(){function e(){a(this,e);var t=du(),n=t.name,r=t.version;this.roomIdMap_=new Map,this.configs_={sdkAppId:"",userId:"",version:"4.12.3",env:Fu,browserVersion:n+r,ua:navigator.userAgent}}return l(e,[{key:"setConfig",value:function(e){var t=e.sdkAppId,n=e.env,r=e.userId,o=e.roomId;t!==this.configs_.sdkAppId&&(this.configs_.sdkAppId=String(t)),this.configs_.env=n,this.configs_.userId=r,this.roomIdMap_.set(r,String(o))}},{key:"logEvent",value:function(e){if(!lu){var n=t(t(t({},e),this.configs_),{},{userId:e.userId||this.configs_.userId});Ch(n.code)&&(n.code="failed"===n.result?Kg.UNKNOWN:0),this.sendRequest(bh(this.configs_.sdkAppId,Bu),n)}}},{key:"logSuccessEvent",value:function(e){lu||(this.logEvent(t(t({},e),{},{result:"success",roomId:this.roomIdMap_.get(e.userId)})),this.configs_.env===Fu&&this.uploadEventToKibana(t(t({},e),{},{result:"success"})))}},{key:"logFailedEvent",value:function(e){if(!lu){var n=e.eventType,r=e.code,o=e.error,i=e.userId,a={roomId:this.roomIdMap_.get(i),userId:i,eventType:n,result:"failed",code:r||(o instanceof Jg?o.getExtraCode()||o.getCode():Kg.UNKNOWN)};this.logEvent(a),this.configs_.env===Fu&&this.uploadEventToKibana(t(t({},a),{},{error:o}))}}},{key:"uploadEventToKibana",value:function(e){var t="stat-".concat(e.eventType,"-").concat(e.result);"delta-join"!==e.eventType&&"delta-leave"!==e.eventType&&"delta-publish"!==e.eventType||(t="".concat(e.eventType,":").concat(e.delta)),this.uploadEvent({log:t,userId:e.userId}),"failed"===e.result&&(t="stat-".concat(e.eventType,"-").concat(e.result,"-").concat(e.code),this.uploadEvent({log:t,userId:e.userId,error:e.error}))}},{key:"uploadEvent",value:function(e){var t=e.log,n=e.userId,r=e.error,o={timestamp:ka(),sdkAppId:this.configs_.sdkAppId,userId:n||this.configs_.userId,version:this.configs_.version,log:t};r&&(o.errorInfo=r.message),this.sendRequest(bh(this.configs_.sdkAppId,Hu),o)}},{key:"sendRequest",value:function(e,t){var n=this;Wv.getIsAbleToUpload()?Ym.post(e,JSON.stringify(t)).catch((function(){})):setTimeout((function(){n.sendRequest(e,t)}),1e3)}}]),e}()),jy=function(){function e(t){a(this,e),this.client_=t.client,this.sdkAppId_=t.sdkAppId,this.userId_=t.userId,this.userSig_=t.userSig,this.url_=t.url,this.backupUrl_=t.backupUrl,this.version_=t.version;var n="?sdkAppId=".concat(encodeURIComponent(this.sdkAppId_),"&userId=").concat(encodeURIComponent(this.userId_),"&userSig=").concat(encodeURIComponent(this.userSig_));this.urlWithParam_="".concat(this.url_).concat(n),this.backupUrlWithParam_="".concat(this.backupUrl_).concat(n),this.isConnected_=!1,this.isConnecting_=!1,this.socketInUse_=null,this.socket_=null,this.backupSocket_=null,this.backupTimer_=-1,this.signalInfo_={},this.currentState_=Cg,this.reconnectionCount_=0,this.reconnectionTimer_=-1,this.seq_=0,this.log_=Wv.createLogger({id:"ws|"+this.userId_,userId:this.userId_,sdkAppId:this.sdkAppId_}),this.emitter_=new Km}return l(e,[{key:"connect",value:function(){var e=this;this.log_.info("connect to url: ".concat(this.urlWithParam_)),this.emitConnectionStateChanged(xg),this.socket_=new WebSocket(this.urlWithParam_),this.bindSocket(this.socket_),this.backupTimer_=setTimeout((function(){e.isConnected_||(e.log_.info("trying to connect to backupUrl"),e.tryConnectBackup())}),5e3)}},{key:"tryConnectBackup",value:function(){this.backupSocket_||(this.unbindAndCloseSocket(Pu),this.log_.debug("try to connect to url: ".concat(this.backupUrlWithParam_)),this.backupSocket_=new WebSocket(this.backupUrlWithParam_),this.bindSocket(this.backupSocket_))}},{key:"bindSocket",value:function(e){e.onopen=this.onopen.bind(this),e.onclose=this.onclose.bind(this),e.onerror=this.onerror.bind(this),e.onmessage=this.onmessage.bind(this)}},{key:"unbindSocket",value:function(e){e.onopen=function(){},e.onclose=function(){},e.onerror=function(){},e.onmessage=function(){}}},{key:"unbindAndCloseSocket",value:function(e){if(e===Pu){if(this.socket_){this.unbindSocket(this.socket_);try{this.socket_.close(1e3)}catch(KS){}this.socket_=null}}else if(this.backupSocket_){this.unbindSocket(this.backupSocket_);try{this.backupSocket_.close(1e3)}catch(KS){}this.backupSocket_=null}}},{key:"clearBackupTimer",value:function(){-1!==this.backupTimer_&&(clearTimeout(this.backupTimer_),this.backupTimer_=-1)}},{key:"clearReconnectionTimer",value:function(){-1!==this.reconnectionTimer_&&(clearTimeout(this.reconnectionTimer_),this.reconnectionTimer_=-1)}},{key:"onopen",value:function(e){if(!this.isConnected_){this.isConnected_=!0,this.isConnecting_=!1,this.clearBackupTimer(),e.target===this.socket_?(this.unbindAndCloseSocket(Ou),this.socketInUse_=this.socket_):(this.unbindAndCloseSocket(Pu),this.socketInUse_=this.backupSocket_);var t=e.target.url;this.log_.info("websocket[".concat(t,"] is connected")),this.currentState_===xg?this.addSignalEvent(by,"signal channel is connected"):this.currentState_===Ig&&this.addSignalEvent(Sy,"signal channel reconnect success"),this.emitConnectionStateChanged(Tg),this.emitter_.emit(kg)}}},{key:"onclose",value:function(e){var t=e.target.url,n=e.target===this.socketInUse_;this.log_.info("websocket[".concat(t," InUse: ").concat(n,"] is closed with code: ").concat(e.code)),e.target===this.socketInUse_&&(this.isConnected_=!1,this.emitConnectionStateChanged(Cg),this.addSignalEvent(yy,"signal channel is disconnected"),e.wasClean&&1e3===e.code||(this.log_.warn("onclose code:".concat(e.code," reason:").concat(e.reason)),this.log_.warn("close current websocket and schedule a reconnect timeout"),this.socketInUse_.onclose=function(){},this.socketInUse_.close(4011),this.socket_=this.backupSocket_=this.socketInUse_=null,this.reconnect(Pu)))}},{key:"onerror",value:function(e){var t=e.target.url;this.log_.error("websocket[".concat(t,"] error observed")),this.isConnected_?e.target===this.socketInUse_&&(this.isConnected_=!1,this.unbindAndCloseSocket(Pu),this.unbindAndCloseSocket(Ou),this.socketInUse_=null,this.reconnect(Pu)):(this.isReconnecting_||Uy.logFailedEvent({userId:this.client_.getUserId(),eventType:Rd,code:Kg.UNKNOWN}),e.target==this.socket_?(this.unbindAndCloseSocket(Pu),this.reconnect(Ou)):(this.unbindAndCloseSocket(Ou),this.reconnect(Pu))),this.isConnecting_=!1,this.isConnected_=!1}},{key:"onmessage",value:function(e){if(this.isConnected_){var t=JSON.parse(e.data),n=t.cmd,r=t.data,o=Object.values(Eg),i=Object.keys(Eg)[o.indexOf(n)],a=Pg[i];if(!Rg.includes(n)){var s=e.target==this.socket_?this.url_:this.backupUrl_;this.log_.debug("websocket[".concat(s,"] received message: ").concat(e.data)),this.log_.info("Received event: [ ".concat(a||"unknown cmd: "+n," ]"))}switch(n){case Eg.CHANNEL_SETUP_RESULT:if(0===t.code)this.signalInfo_.clientIp=r.clientIp,this.signalInfo_.signalIp=r.signalInnerIp,this.signalInfo_.tinyId=t.tinyId,r.svrTime&&function(e){_a=e-(new Date).getTime();var t=new Date;t.setTime(e),Wv.info("baseTime from server: "+t+" offset: "+_a)}(r.svrTime),this.log_.info("ChannelSetup Success"),Uy.logSuccessEvent({userId:this.userId_,eventType:Rd}),this.emitter_.emit(_g,{signalInfo:this.signalInfo_});else{var l=new Jg({code:Kg.SIGNAL_CHANNEL_SETUP_FAILED,extraCode:t.code,message:vh({key:Ep,data:{errorCode:t.code,errorMsg:t.message}})});this.close(),Uy.logFailedEvent({userId:this.userId_,eventType:Rd,error:l}),this.emitter_.emit(Sg,l)}break;case Eg.JOIN_ROOM_RESULT:0===t.code&&(this.signalInfo_.relayIp=r.relayOuterIp,this.signalInfo_.relayInnerIp=r.relayInnerIp,this.signalInfo_.relayPort=r.relayPort,this.log_.info("signalIp:".concat(this.signalInfo_.signalIp," clientIp:").concat(this.signalInfo_.clientIp," relayIp: ").concat(this.signalInfo_.relayIp))),this.emitter_.emit(a,{data:t});break;case Eg.CHANNEL_RECONNECT_RESULT:0===t.code?(this.log_.warn("reconnect success"),this.stopReconnection(),Uy.logSuccessEvent({userId:this.userId_,eventType:Pd}),this.client_.syncUserList(),this.client_.checkConnectionsToReconnect()):(this.log_.warn("reconnect failed, ".concat(t.code," ").concat(t.message)),this.client_.reJoin());break;default:this.emitter_.emit(a,{data:t})}}}},{key:"addSignalEvent",value:function(e,t){Ny(this.userId_,{eventId:e,eventDesc:t,timestamp:wa(),userId:this.userId_,tinyId:this.signalInfo_.tinyId})}},{key:"reconnect",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Pu;if(this.isConnecting_||-1!==this.reconnectionTimer_)this.log_.info("signal channel is reconnecting, ignoring current reconnection");else{if(this.reconnectionCount_>=30){this.log_.warn("SDK has tried reconnect signal channel for ".concat(30," times, but all failed. please check your network"));var n=new Jg({code:Kg.SIGNAL_CHANNEL_RECONNECTION_FAILED,message:vh({key:Tp})});return Uy.logFailedEvent({userId:this.client_.getUserId(),eventType:Pd,error:n}),this.addSignalEvent(Cy,"signal channel reconnect fail"),void this.emitter_.emit(Sg,n)}this.isConnecting_=!0,this.reconnectionCount_++,this.currentState_!==Ig&&(this.emitConnectionStateChanged(Ig),this.addSignalEvent(ky,"signal channel is reconnecting")),this.log_.warn("reconnecting to ".concat(t," signal channel [").concat(this.reconnectionCount_,"/").concat(30,"]"));var r=this.getReconnectionUrl(t);t===Pu?(this.socket_=new WebSocket(r),this.bindSocket(this.socket_)):(this.backupSocket_=new WebSocket(r),this.bindSocket(this.backupSocket_));var o=kh(this.reconnectionCount_);this.reconnectionTimer_=setTimeout((function(){e.log_.warn("reconnect ".concat(t," signal channel timeout(").concat(o/1e3,"s), close and try again")),e.isConnecting_=!1,e.clearReconnectionTimer(),e.unbindAndCloseSocket(t),e.reconnect(t===Pu?Ou:Pu)}),o)}}},{key:"isConnected",value:function(){return this.isConnected_}},{key:"isReconnecting_",get:function(){return-1!==this.reconnectionTimer_}},{key:"getReconnectionUrl",value:function(e){var t=e===Pu?this.urlWithParam_:this.backupUrlWithParam_;if(!Fy(this.signalInfo_)&&-1===t.indexOf("&rc=1")){var n=this.client_.getRoomId(),r=this.client_.getUseStringRoomId();t+="&rc=1&relayInnerIp=".concat(this.signalInfo_.relayInnerIp,"&relayOuterIp=").concat(this.signalInfo_.relayIp,"&relayPort=").concat(this.signalInfo_.relayPort,"&roomId=").concat(n,"&useStringRoomId=").concat(r)}return t}},{key:"send",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.isConnected_){var n={cmd:e,data:t,userId:this.userId_,tinyId:this.signalInfo_.tinyId,seq:++this.seq_};return this.socketInUse_.send(JSON.stringify(n)),n.seq}}},{key:"sendWaitForResponse",value:function(e){var t=this,n=e.command,r=e.data,o=e.timeout,i=void 0===o?5e3:o,a=e.responseCommand,s=e.commandDesc;return new Promise((function(e,o){var l=setTimeout((function(){t.off(a,c);var e=new Jg({code:Kg.API_CALL_TIMEOUT,message:vh({key:Ip,data:{commandDesc:s,command:n}})});t.log_.warn(e),o(e)}),i),c=function n(r){r.data.seq===u&&(clearTimeout(l),t.off(a,n),e(r))};t.on(a,c);var u=t.send(n,r)}))}},{key:"sendWaitForResponseWithRetry",value:function(){var e=this,t=arguments.length<=0?void 0:arguments[0],n=t.commandDesc,r=t.retries,o=void 0===r?0:r,i=t.retryTimeout,a=void 0===i?0:i;return Bv({retryFunction:this.sendWaitForResponse,onRetrying:function(t){e.log_.warn("".concat(n," timeout observed, retrying [").concat(t,"/").concat(o,"]"))},settings:{retries:o,timeout:a},context:this}).apply(void 0,arguments)}},{key:"getCurrentState",value:function(){return this.currentState_}},{key:"getSignalInfo",value:function(){return this.signalInfo_}},{key:"stopReconnection",value:function(){this.isReconnecting_&&(this.reconnectionCount_=0,this.clearReconnectionTimer())}},{key:"close",value:function(){this.log_.info("close SignalChannel"),this.clearBackupTimer(),this.stopReconnection(),this.isConnecting_=!1,this.isConnected_=!1,this.socketInUse_=null,this.unbindAndCloseSocket(Pu),this.unbindAndCloseSocket(Ou),this.emitConnectionStateChanged(Cg)}},{key:"on",value:function(e,t,n){this.emitter_.on(e,t,n)}},{key:"removeListener",value:function(e,t,n){this.emitter_.removeListener(e,t,n)}},{key:"once",value:function(e,t,n){this.emitter_.once(e,t,n)}},{key:"off",value:function(e,t,n){this.emitter_.off(e,t,n)}},{key:"emitConnectionStateChanged",value:function(e){e!==this.currentState_&&(this.emitter_.emit(wg,{prevState:this.currentState_,state:e}),this.currentState_=e)}}]),e}(),Vy=Wt.find,Hy=!0;"find"in[]&&Array(1).find((function(){Hy=!1})),It({target:"Array",proto:!0,forced:Hy},{find:function(e){return Vy(this,e,arguments.length>1?arguments[1]:void 0)}}),Rr("find"),Co("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),Ao);var By=I((function(e){var t=e.exports={v:[{name:"version",reg:/^(\d*)$/}],o:[{name:"origin",reg:/^(\S*) (\d*) (\d*) (\S*) IP(\d) (\S*)/,names:["username","sessionId","sessionVersion","netType","ipVer","address"],format:"%s %s %d %s IP%d %s"}],s:[{name:"name"}],i:[{name:"description"}],u:[{name:"uri"}],e:[{name:"email"}],p:[{name:"phone"}],z:[{name:"timezones"}],r:[{name:"repeats"}],t:[{name:"timing",reg:/^(\d*) (\d*)/,names:["start","stop"],format:"%d %d"}],c:[{name:"connection",reg:/^IN IP(\d) (\S*)/,names:["version","ip"],format:"IN IP%d %s"}],b:[{push:"bandwidth",reg:/^(TIAS|AS|CT|RR|RS):(\d*)/,names:["type","limit"],format:"%s:%s"}],m:[{reg:/^(\w*) (\d*) ([\w/]*)(?: (.*))?/,names:["type","port","protocol","payloads"],format:"%s %d %s %s"}],a:[{push:"rtp",reg:/^rtpmap:(\d*) ([\w\-.]*)(?:\s*\/(\d*)(?:\s*\/(\S*))?)?/,names:["payload","codec","rate","encoding"],format:function(e){return e.encoding?"rtpmap:%d %s/%s/%s":e.rate?"rtpmap:%d %s/%s":"rtpmap:%d %s"}},{push:"fmtp",reg:/^fmtp:(\d*) ([\S| ]*)/,names:["payload","config"],format:"fmtp:%d %s"},{name:"control",reg:/^control:(.*)/,format:"control:%s"},{name:"rtcp",reg:/^rtcp:(\d*)(?: (\S*) IP(\d) (\S*))?/,names:["port","netType","ipVer","address"],format:function(e){return null!=e.address?"rtcp:%d %s IP%d %s":"rtcp:%d"}},{push:"rtcpFbTrrInt",reg:/^rtcp-fb:(\*|\d*) trr-int (\d*)/,names:["payload","value"],format:"rtcp-fb:%s trr-int %d"},{push:"rtcpFb",reg:/^rtcp-fb:(\*|\d*) ([\w-_]*)(?: ([\w-_]*))?/,names:["payload","type","subtype"],format:function(e){return null!=e.subtype?"rtcp-fb:%s %s %s":"rtcp-fb:%s %s"}},{push:"ext",reg:/^extmap:(\d+)(?:\/(\w+))?(?: (urn:ietf:params:rtp-hdrext:encrypt))? (\S*)(?: (\S*))?/,names:["value","direction","encrypt-uri","uri","config"],format:function(e){return"extmap:%d"+(e.direction?"/%s":"%v")+(e["encrypt-uri"]?" %s":"%v")+" %s"+(e.config?" %s":"")}},{name:"extmapAllowMixed",reg:/^(extmap-allow-mixed)/},{push:"crypto",reg:/^crypto:(\d*) ([\w_]*) (\S*)(?: (\S*))?/,names:["id","suite","config","sessionConfig"],format:function(e){return null!=e.sessionConfig?"crypto:%d %s %s %s":"crypto:%d %s %s"}},{name:"setup",reg:/^setup:(\w*)/,format:"setup:%s"},{name:"connectionType",reg:/^connection:(new|existing)/,format:"connection:%s"},{name:"mid",reg:/^mid:([^\s]*)/,format:"mid:%s"},{name:"msid",reg:/^msid:(.*)/,format:"msid:%s"},{name:"ptime",reg:/^ptime:(\d*(?:\.\d*)*)/,format:"ptime:%d"},{name:"maxptime",reg:/^maxptime:(\d*(?:\.\d*)*)/,format:"maxptime:%d"},{name:"direction",reg:/^(sendrecv|recvonly|sendonly|inactive)/},{name:"icelite",reg:/^(ice-lite)/},{name:"iceUfrag",reg:/^ice-ufrag:(\S*)/,format:"ice-ufrag:%s"},{name:"icePwd",reg:/^ice-pwd:(\S*)/,format:"ice-pwd:%s"},{name:"fingerprint",reg:/^fingerprint:(\S*) (\S*)/,names:["type","hash"],format:"fingerprint:%s %s"},{push:"candidates",reg:/^candidate:(\S*) (\d*) (\S*) (\d*) (\S*) (\d*) typ (\S*)(?: raddr (\S*) rport (\d*))?(?: tcptype (\S*))?(?: generation (\d*))?(?: network-id (\d*))?(?: network-cost (\d*))?/,names:["foundation","component","transport","priority","ip","port","type","raddr","rport","tcptype","generation","network-id","network-cost"],format:function(e){var t="candidate:%s %d %s %d %s %d typ %s";return t+=null!=e.raddr?" raddr %s rport %d":"%v%v",t+=null!=e.tcptype?" tcptype %s":"%v",null!=e.generation&&(t+=" generation %d"),t+=null!=e["network-id"]?" network-id %d":"%v",t+(null!=e["network-cost"]?" network-cost %d":"%v")}},{name:"endOfCandidates",reg:/^(end-of-candidates)/},{name:"remoteCandidates",reg:/^remote-candidates:(.*)/,format:"remote-candidates:%s"},{name:"iceOptions",reg:/^ice-options:(\S*)/,format:"ice-options:%s"},{push:"ssrcs",reg:/^ssrc:(\d*) ([\w_-]*)(?::(.*))?/,names:["id","attribute","value"],format:function(e){var t="ssrc:%d";return null!=e.attribute&&(t+=" %s",null!=e.value&&(t+=":%s")),t}},{push:"ssrcGroups",reg:/^ssrc-group:([\x21\x23\x24\x25\x26\x27\x2A\x2B\x2D\x2E\w]*) (.*)/,names:["semantics","ssrcs"],format:"ssrc-group:%s %s"},{name:"msidSemantic",reg:/^msid-semantic:\s?(\w*) (\S*)/,names:["semantic","token"],format:"msid-semantic: %s %s"},{push:"groups",reg:/^group:(\w*) (.*)/,names:["type","mids"],format:"group:%s %s"},{name:"rtcpMux",reg:/^(rtcp-mux)/},{name:"rtcpRsize",reg:/^(rtcp-rsize)/},{name:"sctpmap",reg:/^sctpmap:([\w_/]*) (\S*)(?: (\S*))?/,names:["sctpmapNumber","app","maxMessageSize"],format:function(e){return null!=e.maxMessageSize?"sctpmap:%s %s %s":"sctpmap:%s %s"}},{name:"xGoogleFlag",reg:/^x-google-flag:([^\s]*)/,format:"x-google-flag:%s"},{push:"rids",reg:/^rid:([\d\w]+) (\w+)(?: ([\S| ]*))?/,names:["id","direction","params"],format:function(e){return e.params?"rid:%s %s %s":"rid:%s %s"}},{push:"imageattrs",reg:new RegExp("^imageattr:(\\d+|\\*)[\\s\\t]+(send|recv)[\\s\\t]+(\\*|\\[\\S+\\](?:[\\s\\t]+\\[\\S+\\])*)(?:[\\s\\t]+(recv|send)[\\s\\t]+(\\*|\\[\\S+\\](?:[\\s\\t]+\\[\\S+\\])*))?"),names:["pt","dir1","attrs1","dir2","attrs2"],format:function(e){return"imageattr:%s %s %s"+(e.dir2?" %s %s":"")}},{name:"simulcast",reg:new RegExp("^simulcast:(send|recv) ([a-zA-Z0-9\\-_~;,]+)(?:\\s?(send|recv) ([a-zA-Z0-9\\-_~;,]+))?$"),names:["dir1","list1","dir2","list2"],format:function(e){return"simulcast:%s %s"+(e.dir2?" %s %s":"")}},{name:"simulcast_03",reg:/^simulcast:[\s\t]+([\S+\s\t]+)$/,names:["value"],format:"simulcast: %s"},{name:"framerate",reg:/^framerate:(\d+(?:$|\.\d+))/,format:"framerate:%s"},{name:"sourceFilter",reg:/^source-filter: *(excl|incl) (\S*) (IP4|IP6|\*) (\S*) (.*)/,names:["filterMode","netType","addressTypes","destAddress","srcList"],format:"source-filter: %s %s %s %s %s"},{name:"bundleOnly",reg:/^(bundle-only)/},{name:"label",reg:/^label:(.+)/,format:"label:%s"},{name:"sctpPort",reg:/^sctp-port:(\d+)$/,format:"sctp-port:%s"},{name:"maxMessageSize",reg:/^max-message-size:(\d+)$/,format:"max-message-size:%s"},{push:"tsRefClocks",reg:/^ts-refclk:([^\s=]*)(?:=(\S*))?/,names:["clksrc","clksrcExt"],format:function(e){return"ts-refclk:%s"+(null!=e.clksrcExt?"=%s":"")}},{name:"mediaClk",reg:/^mediaclk:(?:id=(\S*))? *([^\s=]*)(?:=(\S*))?(?: *rate=(\d+)\/(\d+))?/,names:["id","mediaClockName","mediaClockValue","rateNumerator","rateDenominator"],format:function(e){var t="mediaclk:";return t+=null!=e.id?"id=%s %s":"%v%s",t+=null!=e.mediaClockValue?"=%s":"",t+=null!=e.rateNumerator?" rate=%s":"",t+(null!=e.rateDenominator?"/%s":"")}},{name:"keywords",reg:/^keywds:(.+)$/,format:"keywds:%s"},{name:"content",reg:/^content:(.+)/,format:"content:%s"},{name:"bfcpFloorCtrl",reg:/^floorctrl:(c-only|s-only|c-s)/,format:"floorctrl:%s"},{name:"bfcpConfId",reg:/^confid:(\d+)/,format:"confid:%s"},{name:"bfcpUserId",reg:/^userid:(\d+)/,format:"userid:%s"},{name:"bfcpFloorId",reg:/^floorid:(.+) (?:m-stream|mstrm):(.+)/,names:["id","mStream"],format:"floorid:%s mstrm:%s"},{push:"invalid",names:["value"]}]};Object.keys(t).forEach((function(e){t[e].forEach((function(e){e.reg||(e.reg=/(.*)/),e.format||(e.format="%s")}))}))})),$y=(By.v,By.o,By.s,By.i,By.u,By.e,By.p,By.z,By.r,By.t,By.c,By.b,By.m,By.a,I((function(e,t){var n=function(e){return String(Number(e))===e?Number(e):e},r=function(e,t,r){var o=e.name&&e.names;e.push&&!t[e.push]?t[e.push]=[]:o&&!t[e.name]&&(t[e.name]={});var i=e.push?{}:o?t[e.name]:t;!function(e,t,r,o){if(o&&!r)t[o]=n(e[1]);else for(var i=0;i<r.length;i+=1)null!=e[i+1]&&(t[r[i]]=n(e[i+1]))}(r.match(e.reg),i,e.names,e.name),e.push&&t[e.push].push(i)},o=RegExp.prototype.test.bind(/^([a-z])=(.*)/);t.parse=function(e){var t={},n=[],i=t;return e.split(/(\r\n|\r|\n)/).filter(o).forEach((function(e){var t=e[0],o=e.slice(2);"m"===t&&(n.push({rtp:[],fmtp:[]}),i=n[n.length-1]);for(var a=0;a<(By[t]||[]).length;a+=1){var s=By[t][a];if(s.reg.test(o))return r(s,i,o)}})),t.media=n,t};var i=function(e,t){var r=t.split(/=(.+)/,2);return 2===r.length?e[r[0]]=n(r[1]):1===r.length&&t.length>1&&(e[r[0]]=void 0),e};t.parseParams=function(e){return e.split(/;\s?/).reduce(i,{})},t.parseFmtpConfig=t.parseParams,t.parsePayloads=function(e){return e.toString().split(" ").map(Number)},t.parseRemoteCandidates=function(e){for(var t=[],r=e.split(" ").map(n),o=0;o<r.length;o+=3)t.push({component:r[o],ip:r[o+1],port:r[o+2]});return t},t.parseImageAttributes=function(e){return e.split(" ").map((function(e){return e.substring(1,e.length-1).split(",").reduce(i,{})}))},t.parseSimulcastStreamList=function(e){return e.split(";").map((function(e){return e.split(",").map((function(e){var t,r=!1;return"~"!==e[0]?t=n(e):(t=n(e.substring(1,e.length)),r=!0),{scid:t,paused:r}}))}))}}))),zy=($y.parse,$y.parseParams,$y.parseFmtpConfig,$y.parsePayloads,$y.parseRemoteCandidates,$y.parseImageAttributes,$y.parseSimulcastStreamList,/%[sdv%]/g),Wy=function(e){var t=1,n=arguments,r=n.length;return e.replace(zy,(function(e){if(t>=r)return e;var o=n[t];switch(t+=1,e){case"%%":return"%";case"%s":return String(o);case"%d":return Number(o);case"%v":return""}}))},qy=function(e,t,n){var r=[e+"="+(t.format instanceof Function?t.format(t.push?n:n[t.name]):t.format)];if(t.names)for(var o=0;o<t.names.length;o+=1){var i=t.names[o];t.name?r.push(n[t.name][i]):r.push(n[t.names[o]])}else r.push(n[t.name]);return Wy.apply(null,r)},Zy=["v","o","s","i","u","e","p","c","b","t","r","z","a"],Yy=["i","c","b","a"],Ky={write:function(e,t){t=t||{},null==e.version&&(e.version=0),null==e.name&&(e.name=" "),e.media.forEach((function(e){null==e.payloads&&(e.payloads="")}));var n=t.outerOrder||Zy,r=t.innerOrder||Yy,o=[];return n.forEach((function(t){By[t].forEach((function(n){n.name in e&&null!=e[n.name]?o.push(qy(t,n,e)):n.push in e&&null!=e[n.push]&&e[n.push].forEach((function(e){o.push(qy(t,n,e))}))}))})),e.media.forEach((function(e){o.push(qy("m",By.m[0],e)),r.forEach((function(t){By[t].forEach((function(n){n.name in e&&null!=e[n.name]?o.push(qy(t,n,e)):n.push in e&&null!=e[n.push]&&e[n.push].forEach((function(e){o.push(qy(t,n,e))}))}))}))})),o.join("\r\n")+"\r\n"},parse:$y.parse,parseParams:$y.parseParams,parseFmtpConfig:$y.parseFmtpConfig,parsePayloads:$y.parsePayloads,parseRemoteCandidates:$y.parseRemoteCandidates,parseImageAttributes:$y.parseImageAttributes,parseSimulcastStreamList:$y.parseSimulcastStreamList},Jy=function(e){return Ky.parse(e)},Gy=function(e){return Ky.write(e)},Xy=function(e){var t=Jy(e);return t.media.forEach((function(e){e.type===hu&&e.fmtp.forEach((function(e){e.config+=";sprop-stereo=1;stereo=1"}))})),Gy(t)};function Qy(e){var t=Jy(e);return t.media.forEach((function(e){if(e.type===mu){var t=new Set;e.rtp.forEach((function(e){var n=e.payload;return"H264"===e.codec&&t.add(n)})),e.fmtp.forEach((function(e){var n=e.payload,r=e.config.match(/apt=(\d+)/);r&&r[1]&&t.has(Number(r[1]))&&t.add(n)}));var n=function(e){var n=e.payload;return!t.has(n)};e.rtp=e.rtp.filter(n),e.rtcpFb=e.rtcpFb.filter(n),e.fmtp=e.fmtp.filter(n),e.payloads=e.payloads.split(" ").filter((function(e){return!t.has(Number(e))})).join(" ")}})),Gy(t)}var eb,tb=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))},nb=new(function(){function e(){a(this,e),this.intervalMap_=new Map}return l(e,[{key:"setInterval",value:function(e){function t(t,n){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e,t){var n=this,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!window||!window.requestAnimationFrame)return setInterval(e,t);var o=tb(),i=Ah(),a=i;this.intervalMap_.set(o,{rafId:null,timeoutId:null,onVisibilityChange:null});var s=function s(){if(r&&document.hidden){if(e(),!n.intervalMap_.has(o))return;var l=setTimeout(s,t);n.setTimeoutId(o,l),i=Ah(),a=i}else{if((a=Ah())-i>=t&&(i=a,e(),!n.intervalMap_.has(o)))return;var c=requestAnimationFrame(s);n.setRafId(o,c)}},l=requestAnimationFrame(s);if(this.setRafId(o,l),r){var c=function(){if(document.hidden){var e=Ah()-i;if(e>=t)s();else{var r=setTimeout(s,t-e);n.setTimeoutId(o,r)}}};document.addEventListener("visibilitychange",c),this.setOnVisibilityChange(o,c),document.hidden&&c()}return o}))},{key:"clearInterval",value:function(e){if(this.intervalMap_.has(e)){var t=this.intervalMap_.get(e),n=t.rafId,r=t.timeoutId,o=t.onVisibilityChange;cancelAnimationFrame(n),clearTimeout(r),document.removeEventListener("visibilitychange",o),this.intervalMap_.delete(e)}}},{key:"setTimeoutId",value:function(e,t){if(this.intervalMap_.has(e)){var n=this.intervalMap_.get(e);n.timeoutId&&clearTimeout(n.timeoutId),n.timeoutId=t}}},{key:"setRafId",value:function(e,t){if(this.intervalMap_.has(e)){var n=this.intervalMap_.get(e);n.rafId&&cancelAnimationFrame(n.rafId),n.rafId=t}}},{key:"setOnVisibilityChange",value:function(e,t){this.intervalMap_.has(e)&&(this.intervalMap_.get(e).onVisibilityChange=t)}}]),e}()),rb=new(function(){function e(){a(this,e),this.prefix_="TRTC",this.queue_=new Map,this.intervalId_=nb.setInterval(this.doFlush.bind(this),2e4),this.checkStorage()}return l(e,[{key:"getRealKey",value:function(e){return"".concat(this.prefix_,"_").concat(e)}},{key:"checkStorage",value:function(){var e=this;cu()&&Object.keys(localStorage).filter((function(t){if(t.startsWith(e.prefix_)){var n=JSON.parse(localStorage.getItem(t));if(n&&n.expiresIn<Date.now())return!0}return!1})).forEach((function(e){return localStorage.removeItem(e)}))}},{key:"doFlush",value:function(){if(cu())try{var e,t=S(this.queue_);try{for(t.s();!(e=t.n()).done;){var n=b(e.value,2),r=n[0],o=n[1];localStorage.setItem(r,JSON.stringify(o))}}catch(a){t.e(a)}finally{t.f()}}catch(KS){Wv.warn(KS)}}},{key:"getItem",value:function(e){if(!cu())return null;try{var t=JSON.parse(localStorage.getItem(this.getRealKey(e)));return t&&t.expiresIn>=Date.now()?t.value:null}catch(KS){Wv.warn(KS)}}},{key:"setItem",value:function(e,t){if(cu())try{var n={expiresIn:Date.now()+6048e5,value:t};this.queue_.set(this.getRealKey(e),n)}catch(KS){Wv.warn(KS)}}},{key:"deleteItem",value:function(e){if(!cu())return!1;try{return e=this.getRealKey(e),this.queue_.delete(e),localStorage.removeItem(e),!0}catch(KS){return Wv.warn(KS),!1}}},{key:"clear",value:function(){if(cu())try{localStorage.clear()}catch(KS){Wv.warn(KS)}}}]),e}()),ob={result:!1,detail:{isBrowserSupported:!1,isWebRTCSupported:!1,isMediaDevicesSupported:!1,isH264EncodeSupported:!1,isVp8EncodeSupported:!1,isH264DecodeSupported:!1,isVp8DecodeSupported:!1}};(eb=rb.getItem("checkResult"))&&eb.ua===navigator.userAgent&&(ob=eb.checkResult,fb());var ib=function(){return!jc&&!fc&&!(mc&&vc<80)&&!(dc&&pc<56)},ab=function(){return["RTCPeerConnection","webkitRTCPeerConnection","RTCIceGatherer"].filter((function(e){return e in window})).length>0},sb=function(){if(!navigator.mediaDevices)return!1;var e=["getUserMedia","enumerateDevices"];return e.filter((function(e){return e in navigator.mediaDevices})).length===e.length},lb=function(){var e=i(regeneratorRuntime.mark((function e(){var t,n,r,o,i,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!ob.detail.isH264EncodeSupported&&!ob.detail.isVp8EncodeSupported){e.next=2;break}return e.abrupt("return",{isH264EncodeSupported:ob.detail.isH264EncodeSupported,isVp8EncodeSupported:ob.detail.isVp8EncodeSupported});case 2:return t="",n=!1,r=!1,e.prev=5,o=new RTCPeerConnection,(i=document.createElement("canvas")).getContext("2d"),a=i.captureStream(0),o.addTrack(a.getVideoTracks()[0],a),e.next=13,o.createOffer();case 13:return-1!==(t=e.sent).sdp.toLowerCase().indexOf("h264")&&(n=!0),-1!==t.sdp.toLowerCase().indexOf("vp8")&&(r=!0),o.close(),ob.detail.isH264EncodeSupported=n,ob.detail.isVp8EncodeSupported=r,e.abrupt("return",{isH264EncodeSupported:ob.detail.isH264EncodeSupported,isVp8EncodeSupported:ob.detail.isVp8EncodeSupported});case 22:return e.prev=22,e.t0=e.catch(5),e.abrupt("return",{isH264EncodeSupported:!1,isVp8EncodeSupported:!1});case 25:case"end":return e.stop()}}),e,null,[[5,22]])})));return function(){return e.apply(this,arguments)}}();function cb(){return ub.apply(this,arguments)}function ub(){return(ub=i(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=i(regeneratorRuntime.mark((function e(t){var n,r,o,a,s,l,c,u,d,p,f,h,m,v;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={encode:!1,decode:!1},r=null,e.prev=2,o=document.createElement("canvas"),a=o.getContext("2d"),o.width=640,o.height=480,s=setInterval((function(){a.fillText("test",Math.floor(640*Math.random()),Math.floor(480*Math.random()))}),33),l=-1,c=-1,r=function(){clearInterval(l),clearInterval(s),clearTimeout(c),d.close(),p.close(),u.getTracks().forEach((function(e){return e.stop()}))},c=setTimeout((function(){r(),t(n)}),3e3),u=o.captureStream(),d=new RTCPeerConnection({}),p=new RTCPeerConnection({offerToReceiveAudio:!0,offerToReceiveVideo:!0}),d.addEventListener("icecandidate",(function(e){return p.addIceCandidate(e.candidate)})),p.addEventListener("icecandidate",(function(e){return d.addIceCandidate(e.candidate)})),d.addTrack(u.getVideoTracks()[0],u),e.next=20,d.createOffer();case 20:return f=e.sent,e.next=23,d.setLocalDescription(f);case 23:return e.next=25,p.setRemoteDescription(f);case 25:return e.next=27,p.createAnswer();case 27:return h=e.sent,m=Jy(h.sdp),v=m.media[0].rtp.findIndex((function(e){return"H264"===e.codec})),m.media[0].rtp=[m.media[0].rtp[v]],m.media[0].fmtp=m.media[0].fmtp.filter((function(e){return e.payload===m.media[0].rtp[0].payload})),m.media[0].rtcpFb=m.media[0].rtcpFb.filter((function(e){return e.payload===m.media[0].rtp[0].payload})),h.sdp=Gy(m),e.next=36,p.setLocalDescription(h);case 36:return e.next=38,d.setRemoteDescription(h);case 38:l=setInterval(i(regeneratorRuntime.mark((function e(){var o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n.encode&&n.decode&&(r(),t(n)),e.next=3,d.getStats();case 3:return o=e.sent,e.next=6,p.getStats();case 6:i=e.sent,n.encode||o.forEach((function(e){"outbound-rtp"===e.type&&e.mediaType===mu&&e.framesEncoded>0&&(n.encode=!0)})),n.decode||i.forEach((function(e){"inbound-rtp"===e.type&&e.mediaType===mu&&e.framesDecoded>0&&(n.decode=!0)}));case 9:case"end":return e.stop()}}),e)}))),500),e.next=46;break;case 41:e.prev=41,e.t0=e.catch(2),r(),Wv.warn(e.t0),t(n);case 46:case"end":return e.stop()}}),e,null,[[2,41]])})));return function(t){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var db=function(){var e=i(regeneratorRuntime.mark((function e(){var t,n,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!ob.detail.isH264DecodeSupported&&!ob.detail.isVp8DecodeSupported){e.next=2;break}return e.abrupt("return",{isH264DecodeSupported:ob.detail.isH264DecodeSupported,isVp8DecodeSupported:ob.detail.isVp8DecodeSupported});case 2:return t="",n=!1,r=!1,e.prev=5,o=new RTCPeerConnection,e.next=9,o.createOffer({offerToReceiveAudio:1,offerToReceiveVideo:1});case 9:return-1!==(t=e.sent).sdp.toLowerCase().indexOf("h264")&&(n=!0),-1!==t.sdp.toLowerCase().indexOf("vp8")&&(r=!0),o.close(),e.abrupt("return",{isH264DecodeSupported:n,isVp8DecodeSupported:r});case 16:return e.prev=16,e.t0=e.catch(5),e.abrupt("return",{isH264DecodeSupported:!1,isVp8DecodeSupported:!1});case 19:case"end":return e.stop()}}),e,null,[[5,16]])})));return function(){return e.apply(this,arguments)}}(),pb=function(e,t){var n=null;return function(){if(n)return n;for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(n=e.apply(t||this,o)).then((function(e){return n=null,e})).catch((function(e){throw n=null,e})),n}}(function(){var e=i(regeneratorRuntime.mark((function e(){var t,n,r,o,i,a,s,l,c,u,d,p;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!ob.result){e.next=2;break}return e.abrupt("return",ob);case 2:return t=ib(),n=ab(),r=sb(),e.next=7,lb();case 7:return o=e.sent,i=o.isH264EncodeSupported,a=o.isVp8EncodeSupported,e.next=12,db();case 12:if(s=e.sent,l=s.isH264DecodeSupported,c=s.isVp8DecodeSupported,!(i&&l&&(Zc||Kc||ou)&&!wc&&Gc()<79)){e.next=23;break}return e.next=18,cb();case 18:u=e.sent,d=u.encode,p=u.decode,i=d,l=p;case 23:return ob.result=t&&n&&r&&(i||a)&&(l||c),ob.detail.isBrowserSupported=t,ob.detail.isWebRTCSupported=n,ob.detail.isMediaDevicesSupported=r,ob.detail.isH264EncodeSupported=i,ob.detail.isVp8EncodeSupported=a,ob.detail.isH264DecodeSupported=l,ob.detail.isVp8DecodeSupported=c,fb(),rb.setItem("checkResult",{ua:navigator.userAgent,checkResult:ob}),e.abrupt("return",ob);case 34:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}());function fb(){Object.keys(ob.detail).findIndex((function(e){return!ob.detail[e]}))>=0&&Wv.error("".concat(navigator.userAgent," ").concat(JSON.stringify(ob.detail)))}var hb=function(){return!(!navigator.mediaDevices||!navigator.mediaDevices.getDisplayMedia)},mb=function(){return"RTCPeerConnection"in window&&"getReceivers"in window.RTCPeerConnection.prototype},vb=function(){return"RTCPeerConnection"in window&&"getSenders"in window.RTCPeerConnection.prototype},gb=function(){return"RTCPeerConnection"in window&&"getTransceivers"in window.RTCPeerConnection.prototype},yb=function(){return"RTCRtpTransceiver"in window&&"stop"in window.RTCRtpTransceiver.prototype},bb=function(){return"RTCRtpSender"in window&&"setParameters"in window.RTCRtpSender.prototype&&vb()},_b=function(){return!!Ch(navigator.mediaDevices)&&(Wv.error(fh.NOT_SUPPORTED_MEDIA),!0)},wb=function(){return"http:"===location.protocol&&!lu&&(Wv.error(fh.NOT_SUPPORTED_HTTP),!0)},kb=function(e){return!("candidate-pair"!==e.type||!e.nominated||"in-progress"!==e.state&&"succeeded"!==e.state)&&!(Th(e.selected)&&!e.selected)},Sb=new Map([[uc,"Android"],[cc,"iOS"],[Lc,"Windows"],[Fc,"MacOS"],[Uc,"Linux"]]),Cb=function(){var e="unknown";return Sb.get(!0)&&(e=Sb.get(!0)),e};function xb(){var e="";return screen.width&&(e+=(screen.width?screen.width*window.devicePixelRatio:"")+" * "+(screen.height?screen.height*window.devicePixelRatio:"")),e}function Ib(){var e=!1;return(navigator.getUserMedia||navigator.mediaDevices&&navigator.mediaDevices.getUserMedia)&&(e=!0),e}function Tb(){for(var e={isSupported:!1},t=["AudioContext","webkitAudioContext","mozAudioContext","msAudioContext"],n=0;n<t.length;n++)if(t[n]in window){e.isSupported=!0;break}return e.isSupported}function Eb(){return!xc&&!cc&&!(!ib()||!("captureStream"in HTMLCanvasElement.prototype))}var Rb="getSettings"in MediaStreamTrack.prototype,Pb="getCapabilities"in MediaStreamTrack.prototype;pb();var Ob="stream-added",Ab="stream-removed",Db="stream-updated",Nb="stream-subscribed",Mb="error",Lb="connection-state-changed",Fb="stream-added",Ub="stream-removed",jb="stream-updated",Vb="stream-subscribed",Hb="connection-state-changed",Bb="peer-join",$b="peer-leave",zb="mute-audio",Wb="mute-video",qb="unmute-audio",Zb="unmute-video",Yb="client-banned",Kb="network-quality",Jb="audio-volume",Gb="error",Xb="player-state-changed",Qb="screen-sharing-stopped",e_="connection-state-changed",t_="error",n_="player-state-changed",r_=function(){function e(t){a(this,e);var n=t.getUserId();this.log_=Wv.createLogger({id:n,userId:n,sdkAppId:t.getSDKAppId()}),this.prevReport_={},this.prevEncoderImplementation_="",this.prevQualityLimitationReason_="",this.prevDecoderImplementationMap_=new Map}var t,n,r,o;return l(e,[{key:"getSenderStats",value:(o=i(regeneratorRuntime.mark((function e(t){var n,r,o,i=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n={audio:{bytesSent:0,packetsSent:0,audioLevel:0,totalAudioEnergy:0},video:{bytesSent:0,packetsSent:0,framesEncoded:0,frameWidth:0,frameHeight:0,framesSent:0,fpsCapture:0,smallFramesEncoded:0,smallFPSCapture:0,smallFramesSent:0},rtt:0},r=t.getPeerConnection(),o=t.getSSRC(),!r){e.next=14;break}return e.prev=4,e.next=7,r.getStats();case 7:e.sent.forEach((function(e){if("outbound-rtp"===e.type)if(e.mediaType===mu){if(!dc&&Ch(e.trackId))return;e.ssrc!==o.video||Ch(e.encoderImplementation)||i.prevEncoderImplementation_===e.encoderImplementation||(i.log_.info("encoderImplementation change to ".concat(e.encoderImplementation)),i.prevEncoderImplementation_=e.encoderImplementation),e.ssrc!==o.video||Ch(e.qualityLimitationReason)||i.prevQualityLimitationReason_===e.qualityLimitationReason||(i.log_.info("qualityLimitationReason change to ".concat(e.qualityLimitationReason)),i.prevQualityLimitationReason_=e.qualityLimitationReason);var r=t.getSSRC();e.ssrc===r.video?(n.video.bytesSent=e.bytesSent,n.video.packetsSent=e.packetsSent,n.video.framesEncoded=e.framesEncoded):(n.video.smallBytesSent=e.bytesSent,n.video.smallFramesEncoded=e.framesEncoded)}else e.mediaType===hu&&(n.audio.bytesSent=e.bytesSent,n.audio.packetsSent=e.packetsSent);else if("candidate-pair"===e.type)kb(e)&&Ih(e.currentRoundTripTime)&&(n.rtt=Math.floor(1e3*e.currentRoundTripTime));else if("track"===e.type){var a;if(Ch(e.frameWidth)||(e.trackIdentifier===t.getLocalStreamVideoTrackId()?(n.video.frameWidth=e.frameWidth,n.video.frameHeight=e.frameHeight,n.video.framesSent=e.framesSent):(n.video.smallFrameWidth=e.frameWidth,n.video.smallFrameHeight=e.frameHeight,n.video.smallFramesSent=e.framesSent)),Ch(e.audioLevel)){if(nu)n.audio.audioLevel=(null===(a=t.getLocalStream())||void 0===a?void 0:a.getInternalAudioLevel())||0}else n.audio.audioLevel=e.audioLevel||0}else"media-source"===e.type&&(e.kind===hu?(n.audio.audioLevel=e.audioLevel||0,n.audio.totalAudioEnergy=e.totalAudioEnergy||0):e.kind===mu&&(e.trackIdentifier===t.getLocalStreamVideoTrackId()?n.video.fpsCapture=e.framesPerSecond:n.video.smallFPSCapture=e.framesPerSecond))})),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(4),this.log_.warn("failed to getStats on sender connection");case 14:return e.abrupt("return",n);case 15:case"end":return e.stop()}}),e,this,[[4,11]])}))),function(e){return o.apply(this,arguments)})},{key:"getReceiverStats",value:(r=i(regeneratorRuntime.mark((function e(t){var n,r,o=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n={tinyId:t.getTinyId(),userId:t.getUserId(),rtt:0,hasAudio:!1,hasVideo:!1,hasAuxiliary:!1,audio:{bytesReceived:0,packetsReceived:0,packetsLost:0,jitter:0,audioLevel:0,totalAudioEnergy:0},video:{bytesReceived:0,packetsReceived:0,packetsLost:0,framesReceived:0,framesDecoded:0,frameWidth:0,frameHeight:0},auxiliary:{bytesReceived:0,packetsReceived:0,packetsLost:0,framesReceived:0,framesDecoded:0,frameWidth:0,frameHeight:0}},!(r=t.getPeerConnection())){e.next=13;break}return e.prev=3,e.next=6,r.getStats();case 6:e.sent.forEach((function(e){if("inbound-rtp"===e.type){if(e.mediaType===hu)n.audio.packetsReceived=e.packetsReceived,n.audio.bytesReceived=e.bytesReceived,n.audio.packetsLost=e.packetsLost,n.audio.jitter=e.jitter,n.hasAudio=!0;else if(e.mediaType===mu){if(dc&&0===e.bytesReceived)return;var r=t.getSSRC();e.ssrc===r.video&&(n.video.packetsReceived=e.packetsReceived,n.video.bytesReceived=e.bytesReceived,n.video.packetsLost=e.packetsLost,n.video.framesReceived=e.framesReceived,n.video.framesDecoded=e.framesDecoded,n.video.fpsDecoded=e.framesPerSecond,n.hasVideo=!0,!e.decoderImplementation||o.prevDecoderImplementationMap_.has(n.userId)&&o.prevDecoderImplementationMap_.get(n.userId)===e.decoderImplementation||(Wv.info("[".concat(n.userId,"] decoderImplementation change to ").concat(e.decoderImplementation)),o.prevDecoderImplementationMap_.set(n.userId,e.decoderImplementation))),e.ssrc===r.auxiliary&&(n.auxiliary.packetsReceived=e.packetsReceived,n.auxiliary.bytesReceived=e.bytesReceived,n.auxiliary.packetsLost=e.packetsLost,n.auxiliary.framesReceived=e.framesReceived,n.auxiliary.framesDecoded=e.framesDecoded,n.auxiliary.fpsDecoded=e.framesPerSecond,n.hasAuxiliary=!0)}}else"track"===e.type?(Ch(e.frameWidth)||(e.trackIdentifier===t.getMainStreamVideoTrackId()&&(n.video.frameWidth=e.frameWidth,n.video.frameHeight=e.frameHeight),e.trackIdentifier===t.getAuxStreamVideoTrackId()&&(n.auxiliary.frameWidth=e.frameWidth,n.auxiliary.frameHeight=e.frameHeight)),Ch(e.audioLevel)||(n.audio.audioLevel=e.audioLevel||0,n.audio.totalAudioEnergy=e.totalAudioEnergy||0)):"candidate-pair"===e.type&&kb(e)&&Ih(e.currentRoundTripTime)&&(n.rtt=Math.floor(1e3*e.currentRoundTripTime))})),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(3),this.log_.warn("failed to getStats on receiver connection");case 13:return e.abrupt("return",n);case 14:case"end":return e.stop()}}),e,this,[[3,10]])}))),function(e){return r.apply(this,arguments)})},{key:"getStats",value:(n=i(regeneratorRuntime.mark((function e(t,n){var r,o,i,a,s,l,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r={},!t){e.next=5;break}return e.next=4,this.getSenderStats(t);case 4:r=e.sent;case 5:o=[],i=S(n),e.prev=7,i.s();case 9:if((a=i.n()).done){e.next=17;break}return(s=b(a.value,2))[0],l=s[1],e.next=13,this.getReceiverStats(l);case 13:c=e.sent,o.push(c);case 15:e.next=9;break;case 17:e.next=22;break;case 19:e.prev=19,e.t0=e.catch(7),i.e(e.t0);case 22:return e.prev=22,i.f(),e.finish(22);case 25:return e.abrupt("return",{senderStats:r,receiverStats:o});case 26:case"end":return e.stop()}}),e,this,[[7,19,22,25]])}))),function(e,t){return n.apply(this,arguments)})},{key:"getDifferenceValue",value:function(e,t){if(Fy(e))return t;var n=t-e;return n<0?0:n}},{key:"prepareReport",value:function(e){var t=this,n=e.stats,r=e.report,o=e.freezeMap;if(!Fy(n.senderStats)){var i={uint32_audio_level:1e8*n.senderStats.audio.audioLevel,uint32_audio_energy:1e6*n.senderStats.audio.totalAudioEnergy,uint32_audio_codec_bitrate:n.senderStats.audio.bytesSent,audioLevel:n.senderStats.audio.audioLevel},a=[],s={uint32_video_stream_type:2,uint32_video_codec_fps:n.senderStats.video.framesSent,uint32_video_capture_fps:n.senderStats.video.fpsCapture,uint32_video_width:n.senderStats.video.frameWidth,uint32_video_height:n.senderStats.video.frameHeight,uint32_video_codec_bitrate:n.senderStats.video.bytesSent,uint32_video_enc_fps:n.senderStats.video.framesEncoded};if(a.push(s),n.senderStats.video.smallBytesSent){var l={uint32_video_stream_type:3,uint32_video_codec_fps:n.senderStats.video.smallFramesSent||0,uint32_video_capture_fps:n.senderStats.video.smallFPSCapture||0,uint32_video_width:n.senderStats.video.smallFrameWidth||0,uint32_video_height:n.senderStats.video.smallFrameHeight||0,uint32_video_codec_bitrate:n.senderStats.video.smallBytesSent,uint32_video_enc_fps:n.senderStats.video.smallFramesEncoded||0};a.push(l)}var c={uint32_bitrate:"",uint32_rtt:n.senderStats.rtt};r.msg_up_stream_info={msg_audio_status:i,msg_video_status:a,msg_network_status:c}}r.msg_down_stream_info=[],n.receiverStats.forEach((function(e){var t={};if(t.msg_user_info={str_identifier:e.userId,uint64_tinyid:e.tinyId},t.msg_network_status={uint32_rtt:e.rtt},t.msg_video_status={},e.hasAudio){var n={uint32_audio_codec_bitrate:e.audio.bytesReceived,uint32_audio_total_bitrate:e.audio.bytesReceived,uint32_audio_level:1e8*e.audio.audioLevel,uint32_audio_energy:1e6*e.audio.totalAudioEnergy,uint32_audio_receive:e.audio.packetsReceived,uint32_audio_origin_lost:e.audio.packetsLost,audioLevel:e.audio.audioLevel};t.msg_audio_status=n}if(t.msg_video_status=[],e.hasVideo){var i=o.get(e.userId+"_"+Xu),a=i?i.duration:0,s={uint32_video_stream_type:2,uint32_video_receive_fps:e.video.framesReceived,uint32_video_width:e.video.frameWidth,uint32_video_height:e.video.frameHeight,uint32_video_codec_bitrate:e.video.bytesReceived,uint32_video_receive:e.video.packetsReceived,uint32_video_origin_lost:e.video.packetsLost,uint32_video_block_time:a,uint32_video_dec_fps:e.video.fpsDecoded};t.msg_video_status.push(s)}if(e.hasAuxiliary){var l=o.get(e.userId+"_"+Qu),c=l?l.duration:0,u={uint32_video_stream_type:7,uint32_video_receive_fps:e.auxiliary.framesReceived,uint32_video_width:e.auxiliary.frameWidth,uint32_video_height:e.auxiliary.frameHeight,uint32_video_codec_bitrate:e.auxiliary.bytesReceived,uint32_video_receive:e.auxiliary.packetsReceived+e.auxiliary.packetsLost,uint32_video_origin_lost:e.auxiliary.packetsLost,uint32_video_block_time:c,uint32_video_dec_fps:e.auxiliary.fpsDecoded};t.msg_video_status.push(u)}r.msg_down_stream_info.push(t)}));var u=this.prevReport_;this.prevReport_=JSON.parse(JSON.stringify(r));var d=u.msg_up_stream_info.msg_audio_status,p=r.msg_up_stream_info.msg_audio_status,f=this.getDifferenceValue(d.uint32_audio_codec_bitrate,p.uint32_audio_codec_bitrate);p.uint32_audio_codec_bitrate=8*f/2;var h=u.msg_up_stream_info.msg_video_status;r.msg_up_stream_info.msg_video_status.forEach((function(e,n){var r=h[n],o=0,i=0,a=0;r&&(o=r.uint32_video_codec_bitrate,i=r.uint32_video_enc_fps,a=r.uint32_video_codec_fps);var s=t.getDifferenceValue(o,e.uint32_video_codec_bitrate);e.uint32_video_codec_bitrate=8*s/2,e.uint32_video_enc_fps=t.getDifferenceValue(i,e.uint32_video_enc_fps)/2,e.uint32_video_codec_fps=t.getDifferenceValue(a,e.uint32_video_codec_fps)/2}));var m=r.msg_down_stream_info,v=u.msg_down_stream_info;return m.forEach((function(e){var n=v.find((function(t){return t.msg_user_info.uint64_tinyid===e.msg_user_info.uint64_tinyid}));if(n){if(e.msg_audio_status&&n.msg_audio_status){var r=e.msg_audio_status,o=n.msg_audio_status;r.uint32_audio_origin_lost=t.getDifferenceValue(o.uint32_audio_origin_lost,r.uint32_audio_origin_lost),r.uint32_audio_receive=t.getDifferenceValue(o.uint32_audio_receive,r.uint32_audio_receive),r.uint32_audio_receive+=r.uint32_audio_origin_lost;var i=t.getDifferenceValue(o.uint32_audio_codec_bitrate,r.uint32_audio_codec_bitrate);r.uint32_audio_codec_bitrate=8*i/2,r.uint32_audio_total_bitrate=8*i/2}if(e.msg_video_status&&n.msg_video_status){var a=e.msg_video_status,s=n.msg_video_status;a.forEach((function(e,n){var r=s[n],o=0,i=0,a=0,l=0;r&&(o=r.uint32_video_receive,i=r.uint32_video_origin_lost,a=r.uint32_video_codec_bitrate,l=r.uint32_video_receive_fps),e.uint32_video_origin_lost=t.getDifferenceValue(i,e.uint32_video_origin_lost),e.uint32_video_receive=t.getDifferenceValue(o,e.uint32_video_receive)+e.uint32_video_origin_lost;var c=t.getDifferenceValue(a,e.uint32_video_codec_bitrate);e.uint32_video_codec_bitrate=8*c/2;var u=t.getDifferenceValue(l,e.uint32_video_receive_fps);e.uint32_video_receive_fps=u/2}))}}})),r.msg_up_stream_info.msg_network_status.uint32_bitrate=r.msg_up_stream_info.msg_audio_status.uint32_audio_codec_bitrate+r.msg_up_stream_info.msg_video_status[0].uint32_video_codec_bitrate,r}},{key:"getStatsReport",value:(t=i(regeneratorRuntime.mark((function e(t){var n,r,o,i,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.uplinkConnection,r=t.downlinkConnections,o=t.freezeMap,i={msg_up_stream_info:{msg_audio_status:{uint32_audio_format:0,uint32_audio_sample_rate:0,uint32_audio_codec_bitrate:0,uint32_audio_receive:0,uint32_audio_origin_lost:0,uint32_audio_level:0,uint32_audio_energy:0,audioLevel:0},msg_video_status:[{uint32_video_stream_type:0,uint32_video_codec_fps:0,uint32_video_capture_fps:0,uint32_video_width:0,uint32_video_height:0,uint32_video_codec_bitrate:0,uint32_video_receive:0,uint32_video_origin_lost:0,uint32_video_final_lost:0,uint32_video_enc_fps:0}],msg_network_status:{uint32_bitrate:0,uint32_rtt:0,uint32_lost:0},msg_qos:[{uint32_video_fps:0,uint32_video_width:0,uint32_video_height:0,uint32_video_bitrate:0,uint32_audio_bitrate:0,uint32_video_stream_type:0}]},msg_down_stream_info:[{msg_user_info:{str_identifier:"",uint64_tinyid:""},msg_audio_status:{uint32_audio_format:0,uint32_audio_sample_rate:0,uint32_audio_codec_bitrate:0,uint32_audio_total_bitrate:0,uint32_audio_level:0,uint32_audio_energy:0,uint32_audio_receive:0,uint32_audio_origin_lost:0,uint32_audio_final_lost:0,audioLevel:0},msg_video_status:[{uint32_video_stream_type:0,uint32_video_receive_fps:0,uint32_video_width:0,uint32_video_height:0,uint32_video_codec_bitrate:0,uint32_video_receive:0,uint32_video_origin_lost:0,uint32_video_block_time:0,uint32_video_dec_fps:0}],msg_network_status:{uint32_bitrate:0,uint32_rtt:0,uint32_lost:0,uint32_jitter:0},msg_qos:[{uint32_video_fps:0,uint32_video_width:0,uint32_video_height:0,uint32_video_bitrate:0,uint32_audio_bitrate:0,uint32_video_stream_type:0}]}]},"{}"===JSON.stringify(this.prevReport_)&&(this.prevReport_=JSON.parse(JSON.stringify(i))),e.next=5,this.getStats(n,r);case 5:return a=e.sent,this.prepareReport({stats:a,report:i,freezeMap:o}),e.abrupt("return",i);case 8:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),e}(),o_=function(){function e(t){var n=t.signalChannel,r=t.connections,o=t.client;a(this,e),this.client_=o,this.signalChannel_=n,this.connections_=r,this.client_=o,this.log_=Wv.createLogger({id:"q|"+this.client_.getUserId(),userId:this.client_.getUserId(),sdkAppId:this.client_.getSDKAppId()}),this.uplinkConnection_=null,this.uplinkNetworkQuality_=0,this.uplinkRTT_=0,this.uplinkLoss_=0,this.downlinkNetworkQuality_=0,this.downlinkRTT_=0,this.downlinkLoss_=0,this.downlinkPrevStatMap_=new Map,this.downlinkLossAndRTTMap_=new Map,this.interval_=-1,this.emitter_=new Km,this.initialize()}var t,n;return l(e,[{key:"uplinkNetworkQuality",get:function(){return this.uplinkNetworkQuality_},set:function(e){e!==this.uplinkNetworkQuality_&&this.log_.info("uplink network quality change ".concat(this.uplinkNetworkQuality," -> ").concat(e,", rtt: ").concat(this.uplinkRTT_,", loss: ").concat(this.uplinkLoss_)),this.uplinkNetworkQuality_=e}},{key:"downlinkNetworkQuality",get:function(){return this.downlinkNetworkQuality_},set:function(e){if(e!==this.downlinkNetworkQuality_){var t=this.getAverageLossAndRTT(_(this.downlinkLossAndRTTMap_.values())),n=t.rtt,r=t.loss;this.log_.info("downlink network quality change ".concat(this.downlinkNetworkQuality," -> ").concat(e,", rtt: ").concat(n,", loss: ").concat(r))}this.downlinkNetworkQuality_=e}},{key:"initialize",value:function(){var e=this;this.signalChannel_.on(Pg.UPLINK_NETWORK_STATS,(function(t){e.handleUplinkNetworkQuality(t)})),this.signalChannel_.on(wg,this.handleSignalConnectionStateChange.bind(this)),this.start()}},{key:"handleUplinkNetworkQuality",value:function(e){if(!this.uplinkConnection_)return this.uplinkNetworkQuality=0,this.uplinkLoss_=0,void(this.uplinkRTT_=0);var t=this.uplinkConnection_.getPeerConnection();if(t&&this.isPeerConnectionDisconnected(t))return this.uplinkNetworkQuality=6,this.uplinkLoss_=0,void(this.uplinkRTT_=0);if(0===e.data.code){var n=e.data.data,r=n.expectAudPkg+n.expectVidPkg,o=n.recvAudPkg+n.recvVidPkg,i=r-o,a=n.delay;if(a&&this.updateDelay(a),0===r&&0===o)return;this.uplinkLoss_=i<=0?0:Math.round(i/r*100),this.uplinkRTT_=n.rtt,this.uplinkNetworkQuality=this.getNetworkQuality(this.uplinkLoss_,this.uplinkRTT_)}}},{key:"handleDownlinkNetworkQuality",value:(n=i(regeneratorRuntime.mark((function e(){var t,n,r,o,i,a,s,l,c,u,d,p,f,h,m,v=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.connections_&&0!==this.connections_.size){e.next=3;break}return this.downlinkNetworkQuality=0,e.abrupt("return");case 3:if(t=_(this.connections_.values()),n=t.filter((function(e){return e.getPeerConnection()&&e.getPeerConnection().connectionState===cd})),t.filter((function(e){return e.getPeerConnection()&&v.isPeerConnectionDisconnected(e.getPeerConnection())})).length!==t.length){e.next=9;break}return this.downlinkNetworkQuality=6,e.abrupt("return");case 9:r=0;case 10:if(!(r<n.length)){e.next=31;break}return o=n[r].getPeerConnection(),e.next=14,this.getStat(o);case 14:if(i=e.sent,a=i.rtt,s=i.totalPacketsLost,l=i.totalPacketsReceived,this.downlinkPrevStatMap_.has(o)){e.next=21;break}return this.downlinkPrevStatMap_.set(o,{totalPacketsLost:s,totalPacketsReceived:l}),e.abrupt("continue",28);case 21:c=0,u=this.downlinkPrevStatMap_.get(o),d=s-u.totalPacketsLost,p=l-u.totalPacketsReceived,c=d<=0||p<0?0:Math.round(d/(d+p)*100),this.downlinkPrevStatMap_.set(o,{totalPacketsLost:s,totalPacketsReceived:l}),this.downlinkLossAndRTTMap_.set(o,{rtt:a,loss:c,userId:n[r].getUserId()});case 28:r++,e.next=10;break;case 31:if(_(this.downlinkPrevStatMap_.keys()).forEach((function(e){v.isPeerConnectionDisconnected(e)&&(v.downlinkPrevStatMap_.delete(e),v.downlinkLossAndRTTMap_.delete(e))})),0!==this.downlinkLossAndRTTMap_.size){e.next=34;break}return e.abrupt("return");case 34:f=this.getAverageLossAndRTT(_(this.downlinkLossAndRTTMap_.values())),h=f.rtt,m=f.loss,this.downlinkRTT_=h,this.downlinkLoss_=m,this.downlinkNetworkQuality=this.getNetworkQuality(m,h);case 38:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"getStat",value:(t=i(regeneratorRuntime.mark((function e(t){var n,r,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n={rtt:0,totalPacketsLost:0,totalPacketsReceived:0},t&&mb()){e.next=3;break}return e.abrupt("return",n);case 3:r=t.getReceivers(),e.prev=4,o=0;case 6:if(!(o<r.length)){e.next=15;break}return i=r[o],e.next=10,i.getStats();case 10:e.sent.forEach((function(e){"candidate-pair"===e.type&&Ih(e.currentRoundTripTime)&&(n.rtt=Math.round(1e3*e.currentRoundTripTime)),"inbound-rtp"!==e.type||e.mediaType!==hu&&e.mediaType!==mu||(n.totalPacketsLost+=e.packetsLost,n.totalPacketsReceived+=e.packetsReceived)}));case 12:o++,e.next=6;break;case 15:return e.abrupt("return",n);case 18:return e.prev=18,e.t0=e.catch(4),e.abrupt("return",n);case 21:case"end":return e.stop()}}),e,null,[[4,18]])}))),function(e){return t.apply(this,arguments)})},{key:"getAverageLossAndRTT",value:function(e){var t={rtt:0,loss:0};return Array.isArray(e)&&e.length>0&&(e.forEach((function(e){t.rtt+=e.rtt,t.loss+=e.loss})),Object.keys(t).forEach((function(n){t[n]=Math.round(t[n]/e.length)}))),t}},{key:"getNetworkQuality",value:function(e,t){return e>50||t>500?5:e>30||t>350?4:e>20||t>200?3:e>10||t>100?2:e>=0||t>=0?1:0}},{key:"handleSignalConnectionStateChange",value:function(e){e.state===Cg?(this.uplinkRTT_=0,this.uplinkLoss_=0,this.uplinkNetworkQuality=6):e.state===Tg&&6===this.uplinkNetworkQuality&&(this.uplinkNetworkQuality=5)}},{key:"handleUplinkConnectionStateChange",value:function(e){var t=e.state;t===ed?(this.uplinkLoss_=0,this.uplinkRTT_=0,this.uplinkNetworkQuality=6):t===rd&&6===this.uplinkNetworkQuality&&(this.uplinkNetworkQuality=5)}},{key:"isPeerConnectionDisconnected",value:function(e){return!(!e||e.connectionState!==ld&&e.connectionState!==ad&&e.connectionState!==sd)}},{key:"setUplinkConnection",value:function(e){this.uplinkConnection_=e,this.uplinkConnection_?this.uplinkConnection_.on(Lb,this.handleUplinkConnectionStateChange.bind(this)):(this.uplinkNetworkQuality=0,this.uplinkRTT_=0,this.uplinkLoss_=0)}},{key:"start",value:function(){var e=this;-1===this.interval_?(this.log_.info("start network quality calculating"),this.interval_=nb.setInterval((function(){e.handleDownlinkNetworkQuality(),Jm.emit(Uv,{client:e.client_,uplinkNetworkQuality:e.uplinkNetworkQuality,downlinkNetworkQuality:e.downlinkNetworkQuality,uplinkRTT:e.uplinkRTT_,uplinkLoss:e.uplinkLoss_,downlinkRTT:e.downlinkRTT_,downlinkLoss:e.downlinkLoss_,downlinkLossAndRTTMap:e.downlinkLossAndRTTMap_}),e.emitter_.emit(Kb,{uplinkNetworkQuality:e.uplinkNetworkQuality,downlinkNetworkQuality:e.downlinkNetworkQuality,uplinkRTT:e.uplinkRTT_,uplinkLoss:e.uplinkLoss_,downlinkRTT:e.downlinkRTT_,downlinkLoss:e.downlinkLoss_})}),2e3)):this.log_.info("network quality calculating is already started")}},{key:"stop",value:function(){this.log_.info("stop network quality calculating"),-1!==this.interval_&&(nb.clearInterval(this.interval_),this.interval_=-1)}},{key:"on",value:function(e,t){this.emitter_.on(e,t)}},{key:"updateDelay",value:function(e){var t=this;e.forEach((function(e){var n=e.srcTinyId,r=e.videoDelay,o=e.audioDelay,i=t.connections_.get(n);i&&i.setDelay({videoDelay:r,audioDelay:o})}))}}]),e}(),i_=function(){function e(t){a(this,e),this.log_=Wv.createLogger({id:t.client.getUserId(),userId:t.client.getUserId(),sdkAppId:t.client.getSDKAppId()}),this.localStream_=null,this.prevDevices_=[],this.initialize()}var t,n,r;return l(e,[{key:"initialize",value:(r=i(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:navigator.mediaDevices&&navigator.mediaDevices.addEventListener("devicechange",this.onDeviceChange.bind(this));case 1:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"onDeviceChange",value:(n=i(regeneratorRuntime.mark((function e(){var t,n,r,o=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.localStream_&&this.localStream_.getMediaStream()&&!this.localStream_.getScreen()){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,YS.getDevices();case 4:t=e.sent,n=t.filter((function(e){return o.prevDevices_.findIndex((function(t){var n=t.deviceId;return e.deviceId===n}))<0})),r=this.prevDevices_.filter((function(e){return t.findIndex((function(t){var n=t.deviceId;return e.deviceId===n}))<0})),n.length>0&&this.handleDeviceAdded(this.prevDevices_,n),r.length>0&&this.handleDeviceRemoved(t,r),this.prevDevices_=t;case 10:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"setLocalStream",value:(t=i(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=4;break}return e.next=3,YS.getDevices();case 3:this.prevDevices_=e.sent;case 4:this.localStream_=t;case 5:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"handleDeviceAdded",value:function(e,t){this.log_.warn("devicesAdded: ".concat(JSON.stringify(t))),this.localStream_.updateDeviceIdInUse();var n=t.filter((function(e){return e.kind===Tu})),r=t.filter((function(e){return e.kind===Iu})),o=e.filter((function(e){return e.kind===Tu})),i=e.filter((function(e){return e.kind===Iu})),a=n.length>0&&0===o.length&&this.localStream_.getVideo(),s=r.length>0&&0===i.length&&this.localStream_.getAudio();if(s&&a)return this.log_.info("new microphone and camera detected, but there was no device before."),void this.localStream_.updateStream({audio:!0,video:!0,cameraId:n[0].deviceId,microphoneId:r[0].deviceId});a&&(this.log_.info("new camera detected, but there was no camera before."),this.localStream_.updateStream({audio:!1,video:!0,cameraId:n[0].deviceId})),s&&(this.log_.info("new microphone detected, but there was no microphone before."),this.localStream_.updateStream({audio:!0,video:!1,microphoneId:r[0].deviceId}))}},{key:"handleDeviceRemoved",value:function(e,t){this.log_.warn("devicesRemoved: ".concat(JSON.stringify(t))),this.localStream_.updateDeviceIdInUse();var n=!1,r=!1,o=this.localStream_.getCameraId(),i=this.localStream_.getMicrophoneId();if("default"===i){var a=this.localStream_.getMicrophoneGroupId(),s=e.filter((function(e){return"default"===e.deviceId&&e.kind===Iu}))[0];s&&s.groupId!==a&&(r=!0)}if(t.forEach((function(e){var t=e.deviceId;o.length>0&&t===o?n=!0:i.length>0&&t===i&&(r=!0)})),n&&r)return this.log_.warn("current camera and microphone in use is lost, cameraId: ".concat(o,", microphoneId: ").concat(i)),void((this.localStream_.getAudio()||this.localStream_.getVideo())&&this.localStream_.updateStream({video:!0,audio:!0}));n&&(this.log_.warn("current camera in use is lost, deviceId: ".concat(o)),this.localStream_.getVideo()&&this.localStream_.updateStream({video:!0,audio:!1})),r&&(this.log_.warn("current microphone in use is lost, deviceId: ".concat(i)),this.localStream_.getAudio()&&this.localStream_.updateStream({video:!1,audio:!0}))}}]),e}(),a_=function(e){var t=No(H(this)),n="",r=tt(e);if(r<0||1/0==r)throw RangeError("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n},s_=1..toFixed,l_=Math.floor,c_=function(e,t,n){return 0===t?n:t%2==1?c_(e,t-1,n*e):c_(e*e,t/2,n)},u_=function(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=l_(o/1e7)},d_=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=l_(r/t),r=r%t*1e7},p_=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=String(e[t]);n=""===n?r:n+a_.call("0",7-r.length)+r}return n},f_=s_&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!O((function(){s_.call({})}));It({target:"Number",proto:!0,forced:f_},{toFixed:function(e){var t,n,r,o,i=Za(this),a=tt(e),s=[0,0,0,0,0,0],l="",c="0";if(a<0||a>20)throw RangeError("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return String(i);if(i<0&&(l="-",i=-i),i>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(i*c_(2,69,1))-69)<0?i*c_(2,-t,1):i/c_(2,t,1),n*=4503599627370496,(t=52-t)>0){for(u_(s,0,n),r=a;r>=7;)u_(s,1e7,0),r-=7;for(u_(s,c_(10,r,1),0),r=t-1;r>=23;)d_(s,1<<23),r-=23;d_(s,1<<r),u_(s,1,1),d_(s,2),c=p_(s)}else u_(s,0,n),u_(s,1<<-t,0),c=p_(s)+a_.call("0",a);return a>0?l+((o=c.length)<=a?"0."+a_.call("0",a-o)+c:c.slice(0,o-a)+"."+c.slice(o-a)):l+c}});var h_,m_=Object.assign,v_=Object.defineProperty,g_=!m_||O((function(){if(A&&1!==m_({b:1},m_(v_({},"a",{enumerable:!0,get:function(){v_(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol();return e[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!=m_({},e)[n]||"abcdefghijklmnopqrst"!=mr(m_({},t)).join("")}))?function(e,t){for(var n=le(e),r=arguments.length,o=1,i=mt.f,a=M.f;r>o;)for(var s,l=V(arguments[o++]),c=i?mr(l).concat(i(l)):mr(l),u=c.length,d=0;u>d;)s=c[d++],A&&!a.call(l,s)||(n[s]=l[s]);return n}:m_,y_=function(e,t,n,r){try{return r?t(Te(n)[0],n[1]):t(n)}catch(KS){ho(e,"throw",KS)}},b_=function(e){var t=le(e),n=Vt(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=void 0!==o;i&&(o=Tt(o,r>2?arguments[2]:void 0,2));var a,s,l,c,u,d,p=po(t),f=0;if(!p||this==Array&&co(p))for(a=st(t),s=n?new this(a):Array(a);a>f;f++)d=i?o(t[f],f):t[f],Ko(s,f,d);else for(u=(c=fo(t,p)).next,s=n?new this:[];!(l=u.call(c)).done;f++)d=i?y_(c,o,[l.value,f],!0):l.value,Ko(s,f,d);return s.length=f,s},__=/[^\0-\u007E]/,w_=/[.\u3002\uFF0E\uFF61]/g,k_="Overflow: input needs wider integers to process",S_=Math.floor,C_=String.fromCharCode,x_=function(e){return e+22+75*(e<26)},I_=function(e,t,n){var r=0;for(e=n?S_(e/700):e>>1,e+=S_(e/t);e>455;r+=36)e=S_(e/35);return S_(r+36*e/(e+38))},T_=function(e){var t,n,r=[],o=(e=function(e){for(var t=[],n=0,r=e.length;n<r;){var o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){var i=e.charCodeAt(n++);56320==(64512&i)?t.push(((1023&o)<<10)+(1023&i)+65536):(t.push(o),n--)}else t.push(o)}return t}(e)).length,i=128,a=0,s=72;for(t=0;t<e.length;t++)(n=e[t])<128&&r.push(C_(n));var l=r.length,c=l;for(l&&r.push("-");c<o;){var u=2147483647;for(t=0;t<e.length;t++)(n=e[t])>=i&&n<u&&(u=n);var d=c+1;if(u-i>S_((2147483647-a)/d))throw RangeError(k_);for(a+=(u-i)*d,i=u,t=0;t<e.length;t++){if((n=e[t])<i&&++a>2147483647)throw RangeError(k_);if(n==i){for(var p=a,f=36;;f+=36){var h=f<=s?1:f>=s+26?26:f-s;if(p<h)break;var m=p-h,v=36-h;r.push(C_(x_(h+m%v))),p=S_(m/v)}r.push(C_(x_(p))),s=I_(a,d,c==l),a=0,++c}}++a,++i}return r.join("")},E_=Lo.codeAt,R_=P.URL,P_=ya.URLSearchParams,O_=ya.getState,A_=Ze.set,D_=Ze.getterFor("URL"),N_=Math.floor,M_=Math.pow,L_=/[A-Za-z]/,F_=/[\d+-.A-Za-z]/,U_=/\d/,j_=/^0x/i,V_=/^[0-7]+$/,H_=/^\d+$/,B_=/^[\dA-Fa-f]+$/,$_=/[\0\t\n\r #%/:<>?@[\\\]^|]/,z_=/[\0\t\n\r #/:<>?@[\\\]^|]/,W_=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,q_=/[\t\n\r]/g,Z_=function(e,t){var n,r,o;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return"Invalid host";if(!(n=K_(t.slice(1,-1))))return"Invalid host";e.host=n}else if(rw(e)){if(t=function(e){var t,n,r=[],o=e.toLowerCase().replace(w_,".").split(".");for(t=0;t<o.length;t++)n=o[t],r.push(__.test(n)?"xn--"+T_(n):n);return r.join(".")}(t),$_.test(t))return"Invalid host";if(null===(n=Y_(t)))return"Invalid host";e.host=n}else{if(z_.test(t))return"Invalid host";for(n="",r=b_(t),o=0;o<r.length;o++)n+=tw(r[o],G_);e.host=n}},Y_=function(e){var t,n,r,o,i,a,s,l=e.split(".");if(l.length&&""==l[l.length-1]&&l.pop(),(t=l.length)>4)return e;for(n=[],r=0;r<t;r++){if(""==(o=l[r]))return e;if(i=10,o.length>1&&"0"==o.charAt(0)&&(i=j_.test(o)?16:8,o=o.slice(8==i?1:2)),""===o)a=0;else{if(!(10==i?H_:8==i?V_:B_).test(o))return e;a=parseInt(o,i)}n.push(a)}for(r=0;r<t;r++)if(a=n[r],r==t-1){if(a>=M_(256,5-t))return null}else if(a>255)return null;for(s=n.pop(),r=0;r<n.length;r++)s+=n[r]*M_(256,3-r);return s},K_=function(e){var t,n,r,o,i,a,s,l=[0,0,0,0,0,0,0,0],c=0,u=null,d=0,p=function(){return e.charAt(d)};if(":"==p()){if(":"!=e.charAt(1))return;d+=2,u=++c}for(;p();){if(8==c)return;if(":"!=p()){for(t=n=0;n<4&&B_.test(p());)t=16*t+parseInt(p(),16),d++,n++;if("."==p()){if(0==n)return;if(d-=n,c>6)return;for(r=0;p();){if(o=null,r>0){if(!("."==p()&&r<4))return;d++}if(!U_.test(p()))return;for(;U_.test(p());){if(i=parseInt(p(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;d++}l[c]=256*l[c]+o,2!=++r&&4!=r||c++}if(4!=r)return;break}if(":"==p()){if(d++,!p())return}else if(p())return;l[c++]=t}else{if(null!==u)return;d++,u=++c}}if(null!==u)for(a=c-u,c=7;0!=c&&a>0;)s=l[c],l[c--]=l[u+a-1],l[u+--a]=s;else if(8!=c)return;return l},J_=function(e){var t,n,r,o;if("number"==typeof e){for(t=[],n=0;n<4;n++)t.unshift(e%256),e=N_(e/256);return t.join(".")}if("object"==typeof e){for(t="",r=function(e){for(var t=null,n=1,r=null,o=0,i=0;i<8;i++)0!==e[i]?(o>n&&(t=r,n=o),r=null,o=0):(null===r&&(r=i),++o);return o>n&&(t=r,n=o),t}(e),n=0;n<8;n++)o&&0===e[n]||(o&&(o=!1),r===n?(t+=n?":":"::",o=!0):(t+=e[n].toString(16),n<7&&(t+=":")));return"["+t+"]"}return e},G_={},X_=g_({},G_,{" ":1,'"':1,"<":1,">":1,"`":1}),Q_=g_({},X_,{"#":1,"?":1,"{":1,"}":1}),ew=g_({},Q_,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),tw=function(e,t){var n=E_(e,0);return n>32&&n<127&&!ue(t,e)?e:encodeURIComponent(e)},nw={ftp:21,file:null,http:80,https:443,ws:80,wss:443},rw=function(e){return ue(nw,e.scheme)},ow=function(e){return""!=e.username||""!=e.password},iw=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},aw=function(e,t){var n;return 2==e.length&&L_.test(e.charAt(0))&&(":"==(n=e.charAt(1))||!t&&"|"==n)},sw=function(e){var t;return e.length>1&&aw(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},lw=function(e){var t=e.path,n=t.length;!n||"file"==e.scheme&&1==n&&aw(t[0],!0)||t.pop()},cw=function(e){return"."===e||"%2e"===e.toLowerCase()},uw={},dw={},pw={},fw={},hw={},mw={},vw={},gw={},yw={},bw={},_w={},ww={},kw={},Sw={},Cw={},xw={},Iw={},Tw={},Ew={},Rw={},Pw={},Ow=function(e,t,n,r){var o,i,a,s,l,c=n||uw,u=0,d="",p=!1,f=!1,h=!1;for(n||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(W_,"")),t=t.replace(q_,""),o=b_(t);u<=o.length;){switch(i=o[u],c){case uw:if(!i||!L_.test(i)){if(n)return"Invalid scheme";c=pw;continue}d+=i.toLowerCase(),c=dw;break;case dw:if(i&&(F_.test(i)||"+"==i||"-"==i||"."==i))d+=i.toLowerCase();else{if(":"!=i){if(n)return"Invalid scheme";d="",c=pw,u=0;continue}if(n&&(rw(e)!=ue(nw,d)||"file"==d&&(ow(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=d,n)return void(rw(e)&&nw[e.scheme]==e.port&&(e.port=null));d="","file"==e.scheme?c=Sw:rw(e)&&r&&r.scheme==e.scheme?c=fw:rw(e)?c=gw:"/"==o[u+1]?(c=hw,u++):(e.cannotBeABaseURL=!0,e.path.push(""),c=Ew)}break;case pw:if(!r||r.cannotBeABaseURL&&"#"!=i)return"Invalid scheme";if(r.cannotBeABaseURL&&"#"==i){e.scheme=r.scheme,e.path=r.path.slice(),e.query=r.query,e.fragment="",e.cannotBeABaseURL=!0,c=Pw;break}c="file"==r.scheme?Sw:mw;continue;case fw:if("/"!=i||"/"!=o[u+1]){c=mw;continue}c=yw,u++;break;case hw:if("/"==i){c=bw;break}c=Tw;continue;case mw:if(e.scheme=r.scheme,i==h_)e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.query=r.query;else if("/"==i||"\\"==i&&rw(e))c=vw;else if("?"==i)e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.query="",c=Rw;else{if("#"!=i){e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.path.pop(),c=Tw;continue}e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.query=r.query,e.fragment="",c=Pw}break;case vw:if(!rw(e)||"/"!=i&&"\\"!=i){if("/"!=i){e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,c=Tw;continue}c=bw}else c=yw;break;case gw:if(c=yw,"/"!=i||"/"!=d.charAt(u+1))continue;u++;break;case yw:if("/"!=i&&"\\"!=i){c=bw;continue}break;case bw:if("@"==i){p&&(d="%40"+d),p=!0,a=b_(d);for(var m=0;m<a.length;m++){var v=a[m];if(":"!=v||h){var g=tw(v,ew);h?e.password+=g:e.username+=g}else h=!0}d=""}else if(i==h_||"/"==i||"?"==i||"#"==i||"\\"==i&&rw(e)){if(p&&""==d)return"Invalid authority";u-=b_(d).length+1,d="",c=_w}else d+=i;break;case _w:case ww:if(n&&"file"==e.scheme){c=xw;continue}if(":"!=i||f){if(i==h_||"/"==i||"?"==i||"#"==i||"\\"==i&&rw(e)){if(rw(e)&&""==d)return"Invalid host";if(n&&""==d&&(ow(e)||null!==e.port))return;if(s=Z_(e,d))return s;if(d="",c=Iw,n)return;continue}"["==i?f=!0:"]"==i&&(f=!1),d+=i}else{if(""==d)return"Invalid host";if(s=Z_(e,d))return s;if(d="",c=kw,n==ww)return}break;case kw:if(!U_.test(i)){if(i==h_||"/"==i||"?"==i||"#"==i||"\\"==i&&rw(e)||n){if(""!=d){var y=parseInt(d,10);if(y>65535)return"Invalid port";e.port=rw(e)&&y===nw[e.scheme]?null:y,d=""}if(n)return;c=Iw;continue}return"Invalid port"}d+=i;break;case Sw:if(e.scheme="file","/"==i||"\\"==i)c=Cw;else{if(!r||"file"!=r.scheme){c=Tw;continue}if(i==h_)e.host=r.host,e.path=r.path.slice(),e.query=r.query;else if("?"==i)e.host=r.host,e.path=r.path.slice(),e.query="",c=Rw;else{if("#"!=i){sw(o.slice(u).join(""))||(e.host=r.host,e.path=r.path.slice(),lw(e)),c=Tw;continue}e.host=r.host,e.path=r.path.slice(),e.query=r.query,e.fragment="",c=Pw}}break;case Cw:if("/"==i||"\\"==i){c=xw;break}r&&"file"==r.scheme&&!sw(o.slice(u).join(""))&&(aw(r.path[0],!0)?e.path.push(r.path[0]):e.host=r.host),c=Tw;continue;case xw:if(i==h_||"/"==i||"\\"==i||"?"==i||"#"==i){if(!n&&aw(d))c=Tw;else if(""==d){if(e.host="",n)return;c=Iw}else{if(s=Z_(e,d))return s;if("localhost"==e.host&&(e.host=""),n)return;d="",c=Iw}continue}d+=i;break;case Iw:if(rw(e)){if(c=Tw,"/"!=i&&"\\"!=i)continue}else if(n||"?"!=i)if(n||"#"!=i){if(i!=h_&&(c=Tw,"/"!=i))continue}else e.fragment="",c=Pw;else e.query="",c=Rw;break;case Tw:if(i==h_||"/"==i||"\\"==i&&rw(e)||!n&&("?"==i||"#"==i)){if(".."===(l=(l=d).toLowerCase())||"%2e."===l||".%2e"===l||"%2e%2e"===l?(lw(e),"/"==i||"\\"==i&&rw(e)||e.path.push("")):cw(d)?"/"==i||"\\"==i&&rw(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&aw(d)&&(e.host&&(e.host=""),d=d.charAt(0)+":"),e.path.push(d)),d="","file"==e.scheme&&(i==h_||"?"==i||"#"==i))for(;e.path.length>1&&""===e.path[0];)e.path.shift();"?"==i?(e.query="",c=Rw):"#"==i&&(e.fragment="",c=Pw)}else d+=tw(i,Q_);break;case Ew:"?"==i?(e.query="",c=Rw):"#"==i?(e.fragment="",c=Pw):i!=h_&&(e.path[0]+=tw(i,G_));break;case Rw:n||"#"!=i?i!=h_&&("'"==i&&rw(e)?e.query+="%27":e.query+="#"==i?"%23":tw(i,G_)):(e.fragment="",c=Pw);break;case Pw:i!=h_&&(e.fragment+=tw(i,X_))}u++}},Aw=function(e){var t,n,r=go(this,Aw,"URL"),o=arguments.length>1?arguments[1]:void 0,i=No(e),a=A_(r,{type:"URL"});if(void 0!==o)if(o instanceof Aw)t=D_(o);else if(n=Ow(t={},No(o)))throw TypeError(n);if(n=Ow(a,i,null,t))throw TypeError(n);var s=a.searchParams=new P_,l=O_(s);l.updateSearchParams(a.query),l.updateURL=function(){a.query=String(s)||null},A||(r.href=Nw.call(r),r.origin=Mw.call(r),r.protocol=Lw.call(r),r.username=Fw.call(r),r.password=Uw.call(r),r.host=jw.call(r),r.hostname=Vw.call(r),r.port=Hw.call(r),r.pathname=Bw.call(r),r.search=$w.call(r),r.searchParams=zw.call(r),r.hash=Ww.call(r))},Dw=Aw.prototype,Nw=function(){var e=D_(this),t=e.scheme,n=e.username,r=e.password,o=e.host,i=e.port,a=e.path,s=e.query,l=e.fragment,c=t+":";return null!==o?(c+="//",ow(e)&&(c+=n+(r?":"+r:"")+"@"),c+=J_(o),null!==i&&(c+=":"+i)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==s&&(c+="?"+s),null!==l&&(c+="#"+l),c},Mw=function(){var e=D_(this),t=e.scheme,n=e.port;if("blob"==t)try{return new Aw(t.path[0]).origin}catch(KS){return"null"}return"file"!=t&&rw(e)?t+"://"+J_(e.host)+(null!==n?":"+n:""):"null"},Lw=function(){return D_(this).scheme+":"},Fw=function(){return D_(this).username},Uw=function(){return D_(this).password},jw=function(){var e=D_(this),t=e.host,n=e.port;return null===t?"":null===n?J_(t):J_(t)+":"+n},Vw=function(){var e=D_(this).host;return null===e?"":J_(e)},Hw=function(){var e=D_(this).port;return null===e?"":String(e)},Bw=function(){var e=D_(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},$w=function(){var e=D_(this).query;return e?"?"+e:""},zw=function(){return D_(this).searchParams},Ww=function(){var e=D_(this).fragment;return e?"#"+e:""},qw=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(A&&vr(Dw,{href:qw(Nw,(function(e){var t=D_(this),n=No(e),r=Ow(t,n);if(r)throw TypeError(r);O_(t.searchParams).updateSearchParams(t.query)})),origin:qw(Mw),protocol:qw(Lw,(function(e){var t=D_(this);Ow(t,No(e)+":",uw)})),username:qw(Fw,(function(e){var t=D_(this),n=b_(No(e));if(!iw(t)){t.username="";for(var r=0;r<n.length;r++)t.username+=tw(n[r],ew)}})),password:qw(Uw,(function(e){var t=D_(this),n=b_(No(e));if(!iw(t)){t.password="";for(var r=0;r<n.length;r++)t.password+=tw(n[r],ew)}})),host:qw(jw,(function(e){var t=D_(this);t.cannotBeABaseURL||Ow(t,No(e),_w)})),hostname:qw(Vw,(function(e){var t=D_(this);t.cannotBeABaseURL||Ow(t,No(e),ww)})),port:qw(Hw,(function(e){var t=D_(this);iw(t)||(""==(e=No(e))?t.port=null:Ow(t,e,kw))})),pathname:qw(Bw,(function(e){var t=D_(this);t.cannotBeABaseURL||(t.path=[],Ow(t,No(e),Iw))})),search:qw($w,(function(e){var t=D_(this);""==(e=No(e))?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",Ow(t,e,Rw)),O_(t.searchParams).updateSearchParams(t.query)})),searchParams:qw(zw),hash:qw(Ww,(function(e){var t=D_(this);""!=(e=No(e))?("#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",Ow(t,e,Pw)):t.fragment=null}))}),Xe(Dw,"toJSON",(function(){return Nw.call(this)}),{enumerable:!0}),Xe(Dw,"toString",(function(){return Nw.call(this)}),{enumerable:!0}),R_){var Zw=R_.createObjectURL,Yw=R_.revokeObjectURL;Zw&&Xe(Aw,"createObjectURL",(function(e){return Zw.apply(R_,arguments)})),Yw&&Xe(Aw,"revokeObjectURL",(function(e){return Yw.apply(R_,arguments)}))}Vr(Aw,"URL"),It({global:!0,forced:!qi,sham:!A},{URL:Aw});var Kw,Jw,Gw,Xw=new Blob(["class VolumeMeter extends AudioWorkletProcessor{constructor(){super();this.volume=0;this.intervalTime=200;this.tick=this.intervalTime;this.isStop=false;this.port.onmessage=event=>{const{data}=event;switch(data.name){case'setIntervalTime':this.intervalTime=data.intervalTime;break;case'stop':this.isStop=true;break}}}process(inputs){const input=inputs[0];if(this.isStop){return false}if(input.length>0){const firstChannel=input[0];let sum=0;let rms;for(let i=0;i<firstChannel.length;++i){sum+=firstChannel[i]*firstChannel[i]}rms=Math.sqrt(sum/firstChannel.length);this.volume=Math.max(rms,this.volume*0.95);this.tick-=firstChannel.length;if(this.tick<0){this.tick+=(this.intervalTime/1000)*sampleRate;this.port.postMessage({volume:this.volume})}}return true}}registerProcessor('volume-meter',VolumeMeter);"],{type:"application/javascript"}),Qw=!1,ek=function(){function e(t){a(this,e),this.context_=t.context,this.addModuleToContext()}var t;return l(e,[{key:"addModuleToContext",value:(t=i(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.context_.audioWorklet.addModule(URL.createObjectURL(Xw));case 3:Wv.info("worklet addModule success"),Jm.emit(Vv),Qw=!0,e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),Wv.info("worklet addModule catch error. ".concat(e.t0.message)),Jm.emit(Hv);case 12:case"end":return e.stop()}}),e,this,[[0,8]])}))),function(){return t.apply(this,arguments)})},{key:"initWorkletSuccess",get:function(){return Qw}}]),e}(),tk=function(){function e(t){a(this,e);var n=t.track,r=t.log,o=t.stream;this.volume_=0,this.log_=r,this.track_=n,this.stream_=o,Kw||(window.AudioContext=window.AudioContext||window.webkitAudioContext||window.mozAudioContext,Kw=new window.AudioContext),this.audioCtx_=Kw,this.destination_=this.audioCtx_.destination;var i=new MediaStream;i.addTrack(this.track_),this.streamSource_=this.audioCtx_.createMediaStreamSource(i),this.audioWorkletNode_=null,this.scriptProcessorNode_=null,this.interval_=200,Jm.on(jv,this.resume,this),Jm.on(pv,this.handleAudioLevelInterval,this),Uh?(Jm.on(Vv,this.initAudioWorklet,this),Jm.on(Hv,this.initScriptProcessor,this),this.preload()):this.initScriptProcessor()}return l(e,[{key:"preload",value:function(){Jw?Jw.initWorkletSuccess&&this.initAudioWorklet():Jw=new ek({context:Kw})}},{key:"initAudioWorklet",value:function(){var e=this;if(!this.audioWorkletNode_)try{this.audioWorkletNode_=new AudioWorkletNode(this.audioCtx_,"volume-meter"),this.audioWorkletNode_.port.onmessage=function(t){e.volume_=t.data.volume||0},this.streamSource_.connect(this.audioWorkletNode_).connect(this.destination_),this.handleAudioLevelInterval({interval:this.interval_}),Uy.logSuccessEvent({userId:this.stream_.getUserId(),eventType:Fd})}catch(KS){Uy.logFailedEvent({userId:this.stream_.getUserId(),eventType:Fd}),this.initScriptProcessor()}}},{key:"initScriptProcessor",value:function(){var e=this;if(!this.scriptProcessorNode_)try{this.scriptProcessorNode_=this.audioCtx_.createScriptProcessor(2048,1,1),this.scriptProcessorNode_.onaudioprocess=function(t){for(var n=t.inputBuffer.getChannelData(0),r=0,o=0;o<n.length;++o)r+=n[o]*n[o];e.volume_=Math.sqrt(r/n.length)||0},this.streamSource_.connect(this.scriptProcessorNode_),this.scriptProcessorNode_.connect(this.destination_)}catch(KS){this.log_.error("volumeMeter init script processor error: "+KS)}}},{key:"destroy",value:function(){this.streamSource_&&this.streamSource_.disconnect(),this.scriptProcessorNode_&&this.scriptProcessorNode_.disconnect(),this.audioWorkletNode_&&(this.audioWorkletNode_.port.postMessage({name:"stop"}),this.audioWorkletNode_.disconnect()),this.audioWorkletNode_=null,this.scriptProcessorNode_=null,this.audioCtx_=null,Jm.off(jv,this.resume,this),Jm.off(pv,this.handleAudioLevelInterval,this),Jm.off(Vv,this.initAudioWorklet,this),Jm.off(Hv,this.initScriptProcessor,this)}},{key:"resume",value:function(){this.audioCtx_&&this.audioCtx_.resume()}},{key:"getInternalAudioLevel",value:function(){return this.volume_}},{key:"getCalculatedVolume",value:function(){return this.volume_.toFixed(2)}},{key:"handleAudioLevelInterval",value:function(e){var t=e.interval;this.interval_=t,this.audioWorkletNode_&&this.audioWorkletNode_.port.postMessage({name:"setIntervalTime",intervalTime:t})}}]),e}(),nk=function(){function e(t){a(this,e),this.stream_=t.stream,this.userId_=t.stream.getUserId(),this.log_=this.stream_.getLogger(),this.track_=t.track,this.div_=t.div,this.muted_=t.muted,this.outputDeviceId_=t.outputDeviceId,this.volume_=t.volume,this.emitter_=new Km,this.initializeElement(),this.state_="NONE",this.volumeMeter_=new tk({stream:this.stream_,track:this.track_,log:this.log_})}var t,n,r,o;return l(e,[{key:"isPlaying",get:function(){return"PLAYING"===this.state_}},{key:"initializeElement",value:function(){if(this.isAudioElementInit()){var e=new MediaStream;e.addTrack(this.track_);var t=document.createElement(hu);t.srcObject=e,t.muted=this.muted_,t.setAttribute("id","audio_".concat(this.stream_.getId())),t.setAttribute("autoplay","autoplay"),t.setAttribute("playsinline","playsinline"),this.div_.appendChild(t),this.element_=t}this.handleEvents()}},{key:"setMuted",value:function(e){this.element_&&(this.element_.muted=e,this.muted_=e)}},{key:"play",value:(o=i(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.outputDeviceId_||!this.element_){e.next=3;break}return e.next=3,this.element_.setSinkId(this.outputDeviceId_);case 3:if(this.setVolume(this.volume_),e.prev=4,!this.element_){e.next=8;break}return e.next=8,this.element_.play();case 8:e.next=16;break;case 10:if(e.prev=10,e.t0=e.catch(4),this.log_.warn("<audio> play() error: "+e.t0),!(t=e.t0.toString()+" <audio>").startsWith("NotAllowedError")){e.next=16;break}throw new Jg({code:Kg.PLAY_NOT_ALLOWED,message:t});case 16:case"end":return e.stop()}}),e,this,[[4,10]])}))),function(){return o.apply(this,arguments)})},{key:"handleEvents",value:function(){this.handleElementEvent=this.handleElementEvent.bind(this),this.handleTrackEvent=this.handleTrackEvent.bind(this),this.element_&&(this.element_.addEventListener(ku,this.handleElementEvent),this.element_.addEventListener(wu,this.handleElementEvent),this.element_.addEventListener(Su,this.handleElementEvent),this.element_.addEventListener(Cu,this.handleElementEvent)),this.track_.addEventListener(wu,this.handleTrackEvent),this.track_.addEventListener(bu,this.handleTrackEvent),this.track_.addEventListener(_u,this.handleTrackEvent),this.track_.readyState===wu&&this.handleTrackEvent({type:wu}),this.track_.muted&&this.handleTrackEvent({type:bu})}},{key:"handleElementEvent",value:(r=i(regeneratorRuntime.mark((function e(t){var n,r,o,i,a,s=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.type,e.t0=n,e.next=e.t0===ku?4:e.t0===wu?9:e.t0===Su?12:e.t0===Cu?16:27;break;case 4:return this.log_.info("stream - audio player is starting playing"),this.state_="PLAYING",Jm.emit(vv,{stream:this.stream_}),this.emitter_.emit(n_,{state:this.state_,reason:ku}),e.abrupt("break",27);case 9:return this.log_.info("stream - audio player is ended"),"STOPPED"!==this.state_&&(this.state_="STOPPED",this.emitter_.emit(n_,{state:this.state_,reason:wu})),e.abrupt("break",27);case 12:return this.log_.info("stream - audio player is paused"),this.state_="PAUSED",this.emitter_.emit(n_,{state:this.state_,reason:Su}),e.abrupt("break",27);case 16:if(!this.element_||!this.element_.error){e.next=26;break}return r="".concat(Cb(),"/").concat(du().name,"/").concat(du().version),e.next=20,YS.getSpeakers();case 20:o=e.sent,i=o[0].label,(a=o.find((function(e){return e.deviceId===s.outputDeviceId_})))&&(i=a.label),this.log_.error("stream - audio player error observed. code: ".concat(this.element_.error.code," message: ").concat(this.element_.error.message," deviceInfo: ").concat(r," speaker: ").concat(i)),Uy.uploadEvent("stat-".concat(this.stream_.getType(),"-audio-").concat(Md,"-").concat(this.element_.error.code,"-").concat(r,"-").concat(i),this.element_.error);case 26:return e.abrupt("break",27);case 27:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"handleTrackEvent",value:function(e){var t=e.type;switch(t){case wu:this.log_.info("stream - audio player track is ended"),"STOPPED"!==this.state_&&(this.state_="STOPPED",this.emitter_.emit(n_,{state:this.state_,reason:wu})),Jm.emit(Mv,{stream:this.stream_,type:t});break;case bu:this.log_.info("stream - audio track is unable to provide media output"),this.stream_.isRemote()||Fh(),"PAUSED"!==this.state_&&(this.state_="PAUSED",this.emitter_.emit(n_,{state:this.state_,reason:bu})),Jm.emit(Nv,{stream:this.stream_,type:t});break;case _u:this.log_.info("stream - audio track is able to provide media output"),"PAUSED"===this.state_&&(this.state_="PLAYING",this.emitter_.emit(n_,{state:this.state_,reason:_u}))}}},{key:"unbindEvents",value:function(){this.element_&&(this.element_.removeEventListener(ku,this.handleElementEvent),this.element_.removeEventListener(wu,this.handleElementEvent),this.element_.removeEventListener(Su,this.handleElementEvent),this.element_.removeEventListener(Cu,this.handleElementEvent)),this.track_&&(this.track_.removeEventListener(wu,this.handleTrackEvent),this.track_.removeEventListener(bu,this.handleTrackEvent),this.track_.removeEventListener(_u,this.handleTrackEvent))}},{key:"setSinkId",value:(n=i(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.outputDeviceId_===t){e.next=5;break}if(!this.element_){e.next=4;break}return e.next=4,this.element_.setSinkId(t);case 4:this.outputDeviceId_=t;case 5:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"setVolume",value:function(e){this.element_&&(this.log_.info("stream - audioElement setVolume to : ".concat(e)),this.element_.volume=e)}},{key:"getAudioLevel",value:function(){return this.volumeMeter_.getCalculatedVolume()}},{key:"getInternalAudioLevel",value:function(){return this.volumeMeter_.getInternalAudioLevel()}},{key:"stop",value:function(){this.unbindEvents(),this.element_&&(this.div_.removeChild(this.element_),this.element_.srcObject=null,this.element_=null),this.volumeMeter_&&(this.volumeMeter_.destroy(),this.volumeMeter_=null)}},{key:"resume",value:(t=i(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,this.volumeMeter_&&this.volumeMeter_.resume(),!this.element_){e.next=5;break}return e.next=5,this.element_.play();case 5:e.next=13;break;case 7:if(e.prev=7,e.t0=e.catch(0),this.log_.warn("<audio> play() error: "+e.t0),!(t=vh({key:Mp,data:{error:e.t0}})).startsWith("NotAllowedError")){e.next=13;break}throw new Jg({code:Kg.PLAY_NOT_ALLOWED,message:t});case 13:case"end":return e.stop()}}),e,this,[[0,7]])}))),function(){return t.apply(this,arguments)})},{key:"on",value:function(e,t){this.emitter_.on(e,t)}},{key:"isAudioElementInit",value:function(){return!("15.2"===iu||"15.3"===iu||"15.4"===iu)||"local"!==this.stream_.getType()||!this.muted_||(this.log_.info("audioElement is muted."),!1)}}]),e}(),rk=Ge.PROPER,ok=Qa.trim;It({target:"String",proto:!0,forced:(Gw="trim",O((function(){return!!Ya[Gw]()||"
"!=="
"[Gw]()||rk&&Ya[Gw].name!==Gw})))},{trim:function(){return ok(this)}});var ik="".concat("trtc_autoplay","_mask"),ak="".concat("trtc_autoplay","_wrapper"),sk="".concat("trtc_autoplay","_header"),lk="".concat("trtc_autoplay","_content"),ck="".concat("trtc_autoplay","_action_wrapper"),uk="".concat("trtc_autoplay","_question"),dk="".concat("trtc_autoplay","_collapse"),pk="".concat("trtc_autoplay","_action_confirm"),fk="".concat("trtc_autoplay","_detail"),hk="".concat("dialog","-show"),mk="".concat("dialog","-1"),vk="".concat("dialog","-2"),gk=!1,yk=function(){return!!document.querySelector(".".concat(ak))},bk="".concat(pp,"/").concat(Lh()?"zh-cn":"en","/tutorial-21-advanced-auto-play-policy.html"),_k="<br><a href='".concat(bk,"' target='_blank'>").concat(Lh()?"其他方案?":"Any other solution?","</a>"),wk="".concat(Lh()?"浏览器自动播放策略:在用户与页面产生交互(点击、触摸)之前,浏览器禁止播放有声媒体。该弹窗用于帮助用户恢复音视频播放。".concat(_k):"Autoplay Policy: Before user interacts with the web page (clicking, touching), page will not be allowed to play media with sound. This Dialog is used to help users resume playback. ".concat(_k)),kk=function(){function e(){if(a(this,e),this.dialogNode_=null,this.bodyPosition_="",this.content="音视频播放被浏览器拦截,请点击“恢复播放”。",Lh()||(this.content='Media playback failed. Click the "Resume" to resume playback.'),!gk){var t=document.createElement("style");t.innerHTML=".".concat(ik,"{position:fixed;top:0;left:0;right:0;bottom:0;width:100vw;height:100vh;display:flex;justify-content:center;align-items:center;background:rgba(0,0,0,0.5);z-index:1500;}.").concat(ik," div:not(.").concat(ck,"){display:block !important;}.").concat(ak,"{padding:14px;background:#fff;border-radius:3px;box-shadow:0px 3px 15px #434343;border:1px solid #d1cfcf;max-width:500px;}.").concat(ak," a{color:").concat("#2473E8",";}.").concat(sk,"{overflow:hidden;text-overflow:ellipsis;font-size:16px;font-weight:600;}.").concat(lk,"{margin:8px 0;}.").concat(ck,"{width:100%;display:flex !important;align-items:center;justify-content:right;float:right;}.").concat(dk,"{margin-right:auto;cursor:pointer}.").concat(uk,"{height:100%;line-height:16px;cursor:pointer;}.").concat(pk,"{margin-left:8px;color:#fff;background:").concat("#2473E8",";padding:4px 12px;outline:none;border:1px solid;border-radius:3px;font-weight:bold;}.").concat(pk,":hover{opacity:0.9;}.").concat(dk,",.").concat(pk,",.").concat(lk,",.").concat(uk,"{font-size:14px;}@media screen and (max-width:750px){.").concat(ak,"{width:80vw;}}"),document.head.appendChild(t),gk=!0}this.showDetail_=!1,this.isCollapseClicked_=!1,this.isQuestionClicked_=!1,this.addDiaLog()}return l(e,[{key:"createDiaLog",value:function(){var e=document.createElement("template");e.innerHTML='<div class="'.concat(ik,"\"><div class='").concat(ak,"'><div class='").concat(sk,"'>").concat(location.host,"</div><div class='").concat(lk,"'>").concat(this.content,"</div><div class='").concat(fk,'\' style="visibility:hidden;width:100%;height:0;font-size:12px;color:gray;">').concat(wk,"</div><div class='").concat(ck,"'></div></div></div>").trim();var t=document.createElement("button");t.className=pk,t.innerText=Lh()?"恢复播放":"Resume",t.onclick=this.onConfirm.bind(this);var n=document.createElement("div");n.className=uk,n.innerHTML='<?xml version="1.0" encoding="UTF-8"?>\n <svg class="icon" width="18" height="18" p-id="2030" t="1639646523624" version="1.1" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg">\n <path d="m464 784.35c0 26.51 21.49 48 48 48s48-21.49 48-48-21.49-48-48-48-48 21.49-48 48z" p-id="2031"/>\n <path d="m512 960c-247.04 0-448-200.96-448-448s200.96-448 448-448 448 200.96 448 448-200.96 448-448 448zm0-831.71c-211.58 0-383.71 172.13-383.71 383.71 0 211.55 172.13 383.71 383.71 383.71 211.55 0 383.71-172.16 383.71-383.71 0-211.58-172.16-383.71-383.71-383.71z" p-id="2032"/>\n <path d="m512 673.7c-17.665 0-32.001-14.336-32.001-31.999v-54.112c0-52.353 40-92.352 75.328-127.65 25.887-25.92 52.672-52.672 52.672-74.017 0-53.343-43.072-96.735-95.999-96.735-53.823 0-95.999 41.536-95.999 94.559 0 17.665-14.336 31.999-32.001 31.999s-32.001-14.336-32.001-31.999c0-87.424 71.775-158.56 160-158.56s160 72.095 160 160.74c0 47.904-36.32 84.192-71.424 119.3-27.84 27.776-56.576 56.512-56.576 82.336v54.112c0 17.665-14.336 32.032-32.001 32.032z" p-id="2033"/>\n </svg>\n ',n.onclick=this.onQuestionClick.bind(this);var r=document.createElement("div");r.className=dk,r.innerText="".concat(Lh()?"详情 >":"Detail >"),r.onclick=this.onCollapseClick.bind(this);var o=e.content.firstChild,i=o.querySelector(".".concat(ck));return i.appendChild(r),i.appendChild(n),i.appendChild(t),o}},{key:"addDiaLog",value:function(){yk()||(this.dialogNode_=this.createDiaLog(),document.body.appendChild(this.dialogNode_),this.dialogNode_.onclick=this.onConfirm.bind(this),this.dialogNode_.querySelector(".".concat(ak)).onclick=function(e){return e.stopPropagation()},this.bodyPosition_=document.body.style.position,document.body.style.position="fixed",Wv.warn("show autoplay dialog"),Uy.uploadEvent({log:hk}))}},{key:"deleteDiaLog",value:function(){this.dialogNode_&&(document.body.removeChild(this.dialogNode_),document.body.style.position=this.bodyPosition_,this.dialogNode_=null)}},{key:"onConfirm",value:function(){Wv.warn("confirm clicked, try resume stream"),Jm.emit(jv),this.deleteDiaLog()}},{key:"onCollapseClick",value:function(){var e=this.dialogNode_.querySelector(".".concat(fk));e.style.visibility="".concat(this.showDetail_?"hidden":"visible"),e.style.height="".concat(this.showDetail_?0:"fit-content"),this.showDetail_=!this.showDetail_,this.isCollapseClicked_||Uy.uploadEvent({log:mk}),this.isCollapseClicked_=!0}},{key:"onQuestionClick",value:function(){window.open(bk,"_blank"),this.isQuestionClicked_||Uy.uploadEvent({log:vk}),this.isQuestionClicked_=!0}}]),e}(),Sk=function(){function e(t){a(this,e),this.stream_=t.stream,this.userId_=t.stream.getUserId(),this.log_=this.stream_.getLogger(),this.track_=t.track,this.div_=t.div,this.muted_=t.muted,this.objectFit_=t.objectFit,this.mirror_=t.mirror,this.emitter_=new Km,this.initializeElement(),this.state_="NONE",this.pausedRetryCount_=5}var t,n;return l(e,[{key:"isPlaying",get:function(){return"PLAYING"===this.state_}},{key:"initializeElement",value:function(){var e=new MediaStream;e.addTrack(this.track_);var t=document.createElement(mu);t.srcObject=e,t.muted=!0;var n="width: 100%; height: 100%; object-fit: ".concat(this.objectFit_,";");this.mirror_&&(n+="transform: rotateY(180deg);"),t.setAttribute("id","video_".concat(this.stream_.getId())),t.setAttribute("style",n),t.setAttribute("autoplay","autoplay"),t.setAttribute("playsinline","playsinline"),this.div_&&this.div_.appendChild(t),this.element_=t,this.handleEvents()}},{key:"setRect",value:function(e){var t=e.width,n=e.height;this.element_&&(this.element_.style.width=t+"px",this.element_.style.height=n+"px")}},{key:"setMirror",value:function(e){this.element_&&(this.element_.style.transform=e?"rotateY(180deg)":"",this.mirror_=e)}},{key:"setObjectFit",value:function(e){this.element_&&(this.element_.style.objectFit="".concat(e),this.objectFit_=e)}},{key:"play",value:(n=i(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.element_.play();case 3:e.next=11;break;case 5:if(e.prev=5,e.t0=e.catch(0),this.log_.warn("<video> play() error: "+e.t0),!(t=e.t0.toString()+" <video>").startsWith("NotAllowedError")){e.next=11;break}throw new Jg({code:Kg.PLAY_NOT_ALLOWED,message:t});case 11:case"end":return e.stop()}}),e,this,[[0,5]])}))),function(){return n.apply(this,arguments)})},{key:"handleEvents",value:function(){this.handleElementEvent=this.handleElementEvent.bind(this),this.handleTrackEvent=this.handleTrackEvent.bind(this),this.element_.addEventListener(ku,this.handleElementEvent),this.element_.addEventListener(wu,this.handleElementEvent),this.element_.addEventListener(Su,this.handleElementEvent),this.element_.addEventListener(Cu,this.handleElementEvent),this.element_.addEventListener(xu,this.handleElementEvent),this.track_.addEventListener(wu,this.handleTrackEvent),this.track_.addEventListener(bu,this.handleTrackEvent),this.track_.addEventListener(_u,this.handleTrackEvent),this.track_.readyState===wu&&this.handleTrackEvent({type:wu}),this.track_.muted&&this.handleTrackEvent({type:bu})}},{key:"handleElementEvent",value:function(e){switch(e.type){case ku:this.log_.info("stream - video player is starting playing"),this.state_="PLAYING",Jm.emit(mv,{stream:this.stream_}),this.emitter_.emit(n_,{state:this.state_,reason:ku});break;case wu:this.log_.info("stream - video player is ended"),"STOPPED"!==this.state_&&(this.state_="STOPPED",this.emitter_.emit(n_,{state:this.state_,reason:wu}));break;case Su:this.log_.info("stream - video player is paused"),this.div_&&!document.getElementById(this.div_.id)&&this.log_.warn("video container is not in DOM"),this.state_="PAUSED",this.emitter_.emit(n_,{state:this.state_,reason:Su}),this.pausedRetryCount_>0&&!yk()&&(this.log_.info("auto resume when video paused"),this.resume(),this.pausedRetryCount_--);break;case Cu:if(this.element_&&this.element_.error){var t="".concat(Cb(),"/").concat(du().name,"/").concat(du().version);this.log_.error("stream - video player error observed. code: ".concat(this.element_.error.code," message: ").concat(this.element_.error.message," deviceInfo: ").concat(t)),Uy.uploadEvent("stat-".concat(this.stream_.getType(),"-video-").concat(Md,"-").concat(this.element_.error.code,"-").concat(t),this.element_.error)}break;case xu:Jm.emit(Ov,{stream:this.stream_})}}},{key:"handleTrackEvent",value:function(e){var t=e.type;switch(t){case wu:this.log_.info("stream - video player track is ended"),Jm.emit(Dv,{stream:this.stream_,type:t}),"STOPPED"!==this.state_&&(this.state_="STOPPED",this.emitter_.emit(n_,{state:this.state_,reason:wu}));break;case bu:this.log_.info("stream - video track is unable to provide media output"),this.stream_.isRemote()||Fh(),Jm.emit(Ev,{stream:this.stream_,type:t}),"PAUSED"!==this.state_&&(this.state_="PAUSED",this.emitter_.emit(n_,{state:this.state_,reason:bu}));break;case _u:this.log_.info("stream - video track is able to provide media output"),Jm.emit(Rv,{stream:this.stream_}),"PAUSED"===this.state_&&(this.state_="PLAYING",this.emitter_.emit(n_,{state:this.state_,reason:_u}))}}},{key:"unbindEvents",value:function(){this.element_&&(this.element_.removeEventListener(ku,this.handleElementEvent),this.element_.removeEventListener(wu,this.handleElementEvent),this.element_.removeEventListener(Su,this.handleElementEvent),this.element_.removeEventListener(Cu,this.handleElementEvent),this.element_.removeEventListener(xu,this.handleElementEvent)),this.track_&&(this.track_.removeEventListener(wu,this.handleTrackEvent),this.track_.removeEventListener(bu,this.handleTrackEvent),this.track_.removeEventListener(_u,this.handleTrackEvent))}},{key:"stop",value:function(){this.unbindEvents(),this.div_&&this.div_.removeChild(this.element_),this.element_.srcObject=null,this.element_=null}},{key:"resume",value:(t=i(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.element_.play();case 3:e.next=11;break;case 5:if(e.prev=5,e.t0=e.catch(0),this.log_.warn("<video> play() error: "+e.t0),!(t=vh({key:Lp,data:{error:e.t0}})).startsWith("NotAllowedError")){e.next=11;break}throw new Jg({code:Kg.PLAY_NOT_ALLOWED,message:t});case 11:case"end":return e.stop()}}),e,this,[[0,5]])}))),function(){return t.apply(this,arguments)})},{key:"getVideoFrame",value:function(){var e=document.createElement("canvas");return e.width=this.element_.videoWidth,e.height=this.element_.videoHeight,e.getContext("2d").drawImage(this.element_,0,0),e.toDataURL("image/png")}},{key:"on",value:function(e,t){this.emitter_.on(e,t)}},{key:"getElement",value:function(){return this.element_?this.element_:null}}]),e}(),Ck=function(){function e(t){a(this,e),this.userId_=t.userId,this.tinyId_=t.tinyId,this.client_=t.client,this.sdpSemantics_=t.client.getSdpSemantics(),this.isUplink_=t.isUplink,this.log_=Wv.createLogger({id:"n|"+this.userId_,userId:this.client_.getUserId(),sdkAppId:this.client_.getSDKAppId(),isLocal:this.isUplink_}),this.signalChannel_=t.signalChannel,this.peerConnection_=null,this.connectTimer_=-1,this.isErrorObserved_=!1,this.emitter_=new Km,this.currentState_=ed,this.waitForPeerConnectionConnectedPromise_=null,this.isReconnecting_=!1,this.reconnectionCount_=0,this.reconnectionTimer_=-1,this.isFirstConnection_=!0,this.delay_={audioDelay:0,videoDelay:0}}var t;return l(e,[{key:"initialize",value:function(){var e={iceServers:this.client_.getIceServers(),iceTransportPolicy:this.client_.getIceTransportPolicy(),sdpSemantics:this.sdpSemantics_,bundlePolicy:"max-bundle",rtcpMuxPolicy:"require",tcpCandidatePolicy:"disable",IceTransportsType:"nohost"};this.peerConnection_=new RTCPeerConnection(e),this.peerConnection_.onconnectionstatechange=this.onConnectionStateChange.bind(this)}},{key:"close",value:function(){this.log_.info("closing connection"),this.closePeerConnection()}},{key:"closePeerConnection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.peerConnection_&&(this.peerConnection_.onconnectionstatechange=function(){},this.peerConnection_.close(),this.peerConnection_=null,e&&this.emitConnectionStateChangedEvent(ed))}},{key:"getDTLSTransportState",value:function(){if(!this.peerConnection_)return"unknown";var e=null;if(this.isUplink_){if(!vb()||0===this.peerConnection_.getSenders().length)return"unknown";e=this.peerConnection_.getSenders()[0].transport}else{if(!mb()||0===this.peerConnection_.getReceivers().length)return"unknown";e=this.peerConnection_.getReceivers()[0].transport}return e?e.state:"unknown"}},{key:"onConnectionStateChange",value:function(e){var t=this.peerConnection_.iceConnectionState,n=this.getDTLSTransportState();if(this.log_.info("onConnectionStateChange() connectionState: "+e.target.connectionState),this.log_.info("ICE Transport state: ".concat(t,", DTLS Transport state: ").concat(n)),e.target.connectionState===id&&this.emitConnectionStateChangedEvent(td),e.target.connectionState===ad||e.target.connectionState===sd){var r="".concat(this.isUplink_?"uplink":"downlink"," ICE/DTLS Transport connection ").concat(e.target.connectionState,". ICE Transport state: ").concat(t,", DTLS Transport state: ").concat(n),o=new Jg({message:r,code:Kg.ICE_TRANSPORT_ERROR});Uy.logFailedEvent({userId:this.client_.getUserId(),eventType:Td,error:o}),this.emitConnectionStateChangedEvent(ed),this.isErrorObserved_||this.emitter_.emit(Mb,o)}e.target.connectionState!==cd&&e.target.connectionState!==ud||(this.logSelectedCandidate(),Uy.logSuccessEvent({userId:this.client_.getUserId(),eventType:Td}),this.emitConnectionStateChangedEvent(rd))}},{key:"emitConnectionStateChangedEvent",value:function(e){e!==this.currentState_&&(this.currentState_===nd&&e===td||(Jm.emit(Lv,{client:this.client_,connection:this,prevState:this.currentState_,state:e}),this.emitter_.emit(Lb,{prevState:this.currentState_,state:e}),this.currentState_=e))}},{key:"hitTest",value:function(e){return(0===e||"0"===e)&&this.isUplink_||e===this.tinyId_}},{key:"addEventInternal",value:function(e,t){var n=this.client_.getUserId(),r={eventId:e,eventDesc:t,timestamp:wa(),userId:n,tinyId:this.client_.getTinyId()};this.isUplink_||(r.remoteUserId=this.userId_,r.remoteTinyId=this.tinyId_),Ny(n,r)}},{key:"getPeerConnection",value:function(){return this.peerConnection_}},{key:"getClient",value:function(){return this.client_}},{key:"getUserId",value:function(){return this.userId_}},{key:"getTinyId",value:function(){return this.tinyId_}},{key:"logSelectedCandidate",value:(t=i(regeneratorRuntime.mark((function e(){var t,n,r,o,i,a,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.peerConnection_){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,this.peerConnection_.getStats();case 4:t=e.sent,n=S(t),e.prev=6,n.s();case 8:if((r=n.n()).done){e.next=18;break}if((o=b(r.value,2))[0],i=o[1],!kb(i)){e.next=16;break}return a=t.get(i.localCandidateId),s=t.get(i.remoteCandidateId),a&&this.log_.info("local candidate: ".concat(a.candidateType," ").concat(a.protocol,":").concat(a.ip||a.address,":").concat(a.port," ").concat(a.networkType||""," ").concat("relay"===a.candidateType?"relayProtocol:"+a.relayProtocol:"")),s&&this.log_.info("remote candidate: ".concat(s.candidateType," ").concat(s.protocol,":").concat(s.ip||s.address,":").concat(s.port)),e.abrupt("break",18);case 16:e.next=8;break;case 18:e.next=23;break;case 20:e.prev=20,e.t0=e.catch(6),n.e(e.t0);case 23:return e.prev=23,n.f(),e.finish(23);case 26:case"end":return e.stop()}}),e,this,[[6,20,23,26]])}))),function(){return t.apply(this,arguments)})},{key:"getCurrentState",value:function(){return this.currentState_}},{key:"waitForPeerConnectionConnected",value:function(){var e=this;return this.waitForPeerConnectionConnectedPromise_||(this.waitForPeerConnectionConnectedPromise_=new Promise((function(t,n){if(e.currentState_===rd)return t();var r=-1,o=function n(o){o.state===rd&&(clearTimeout(r),e.emitter_.off(Lb,n,e),t())};r=setTimeout((function(){e.emitter_.off(Lb,o,e);var t=new Jg({code:Kg.API_CALL_TIMEOUT,message:"connection timeout"});n(t)}),1e4),e.emitter_.on(Lb,o,e)})),this.waitForPeerConnectionConnectedPromise_=this.waitForPeerConnectionConnectedPromise_.then((function(t){return e.waitForPeerConnectionConnectedPromise_=null,t})).catch((function(t){throw e.waitForPeerConnectionConnectedPromise_=null,t}))),this.waitForPeerConnectionConnectedPromise_}},{key:"getReconnectionCount",value:function(){return this.reconnectionCount_}},{key:"startReconnection",value:function(){this.isReconnecting_=!0,this.emitConnectionStateChangedEvent(nd),this.reconnect(),this.addEventInternal(this.isUplink_?xy:Ey,"".concat(this.isUplink_?"uplink":"downlink","-connection is reconnecting"))}},{key:"stopReconnection",value:function(){this.log_.info("stop reconnection"),this.isReconnecting_=!1,this.reconnectionCount_=0,this.clearReconnectionTimer(),this.signalChannel_.off(kg,this.reconnect,this)}},{key:"on",value:function(e,t,n){this.emitter_.on(e,t,n)}},{key:"off",value:function(e,t,n){this.emitter_.off(e,t,n)}},{key:"setDelay",value:function(e){var t=e.audioDelay,n=e.videoDelay;this.delay_={audioDelay:t,videoDelay:n}}},{key:"getDelay",value:function(){return this.delay_}}]),e}();function xk(e,t,n,r){if(this.useStringRoomId_){if(!xh(e)||!/^[A-Za-z\d\s!#$%&()+\-:;<=.>?@[\]^_{}|~,]{1,64}$/.test(e))throw new Jg({code:Kg.INVALID_PARAMETER,message:vh({key:$p,data:t,link:{className:r,fnName:n}})})}else if(!(Ih(e)&&/^[1-9]\d*$/.test(String(e))&&e<4294967295))throw new Jg({code:Kg.INVALID_PARAMETER,message:vh({key:zp,data:t,link:{className:r,fnName:n}})})}function Ik(e,t,n,r){if(!/^[A-Za-z\d_-]*$/.test(e))throw new Jg({code:Kg.INVALID_PARAMETER,message:vh({key:df,data:t,link:{className:r,fnName:n}})})}var Tk,Ek,Rk={TRTC:{createClient:{name:"clientConfig",required:!0,type:Zd,properties:{sdkAppId:{required:!0,type:zd,allowEmpty:!1},userId:{required:!0,type:$d,allowEmpty:!1},userSig:{required:!0,type:$d,allowEmpty:!1},mode:{required:!0,type:$d,values:["rtc","live"]},useStringRoomId:{type:Wd},autoSubscribe:{type:Wd},enableAutoPlayDialog:{type:Wd},streamId:{type:$d},userDefineRecordId:{type:$d},pureAudioPushMode:{type:zd,values:[1,2]}}},createStream:{name:"streamConfig",required:!0,type:Zd,properties:{userId:{type:$d},audio:{type:Wd},video:{type:Wd},screen:{type:Wd},screenAudio:{type:Wd},microphoneId:{type:$d},cameraId:{type:$d},facingMode:{type:$d,values:[gu,yu]},audioSource:{instanceOf:MediaStreamTrack},videoSource:{instanceOf:MediaStreamTrack}},validate:function(e){if(!Ch(e.screen)&&e.screen&&Ch(e.audio)&&(e.audio=!1),!(Ch(e.audio)&&Ch(e.video)||Ch(e.audioSource)&&Ch(e.videoSource)))throw new Jg({code:Kg.INVALID_PARAMETER,message:vh({key:Xf})});if(!Ch(e.screen)&&!0===e.screen&&!0===e.video)throw new Jg({code:Kg.INVALID_PARAMETER,message:vh({key:Qf})});if(e.audio&&e.screenAudio)throw new Jg({code:Kg.INVALID_PARAMETER,message:vh({key:eh})});if(!0!==e.screen&&!0===e.screenAudio)throw new Jg({code:Kg.INVALID_PARAMETER,message:vh({key:th})});if(!Ch(e.screen)&&!0===e.screen&&!this.isScreenShareSupported())throw new Jg({code:Kg.INVALID_OPERATION,message:vh({key:lh})})}}},CLIENT:{join:{name:"options",required:!0,properties:{roomId:{required:!0,type:[zd,$d],allowEmpty:!1,validate:xk},role:{type:[$d],values:["anchor","audience"]}}},publish:{name:"stream",required:!0,instanceOf:ap,validate:function(e){if(!this.isJoined_)throw new Jg({code:Kg.INVALID_OPERATION,message:vh({key:Jp})});if("live"===this.mode_&&"audience"===this.role_)throw new Jg({code:Kg.INVALID_OPERATION,message:vh({key:Xp})});if(this.localStream_)throw new Jg({code:Kg.INVALID_OPERATION,message:vh({key:ef})});if(!e.getIsReadyToPublish())throw new Jg({code:Kg.INVALID_OPERATION,message:vh({key:Qp})});if(this.notPublishWithoutH264Supported_)throw new Jg({code:Kg.NOT_SUPPORTED_H264,message:vh({key:ih})})}},unpublish:{name:"stream",required:!0,instanceOf:ap,validate:function(e){if(e!==this.localStream_)throw new Jg({code:Kg.INVALID_PARAMETER,message:vh({key:Gp})})}},subscribe:[{name:"stream",required:!0,instanceOf:sp,validate:function(e){if(!e.getConnection())throw new Jg({code:Kg.INVALID_OPERATION,message:vh({key:tf})});if(this.notSubscribeWithoutH264Supported_)throw new Jg({code:Kg.NOT_SUPPORTED_H264,message:vh({key:ah})})}},{name:"options",type:Zd,properties:{audio:{type:Wd},video:{type:Wd}}}],unsubscribe:{name:"stream",required:!0,instanceOf:sp,validate:function(e){if(!e.getConnection())throw new Jg({code:Kg.INVALID_OPERATION,message:vh({key:tf})})}},switchRole:{name:"role",required:!0,values:["anchor","audience"],validate:function(){if("live"!==this.mode_)throw new Jg({code:Kg.INVALID_PARAMETER,message:vh({key:rf})});if(!this.isJoined_)throw new Jg({code:Kg.INVALID_OPERATION,message:vh({key:of})})}},startPublishCDNStream:{name:"options",required:!1,properties:{streamId:{type:$d,validate:Ik},appId:{type:zd,allowEmpty:!1},bizId:{type:zd,allowEmpty:!1},url:{type:$d,allowEmpty:!1}}},startMixTranscode:{name:"config",required:!0,type:Zd,properties:{mode:{type:$d,values:["preset-layout","manual"]},streamId:{type:$d,validate:Ik},videoWidth:{type:zd,notLessThanZero:!0},videoHeight:{type:zd,notLessThanZero:!0},videoBitrate:{type:zd,notLessThanZero:!0,allowEmpty:!1},videoFramerate:{type:zd,validate:function(e,t,n,r){if(e<=0||e>30)throw new Jg({code:Kg.INVALID_PARAMETER,message:vh({key:zf,link:{className:r,fnName:n}})})}},videoGop:{type:zd,validate:function(e,t,n,r){if(e<1||e>8)throw new Jg({code:Kg.INVALID_PARAMETER,message:vh({key:Wf,link:{className:r,fnName:n}})})}},audioSampleRate:{type:zd,notLessThanZero:!0},audioBitrate:{type:zd,validate:function(e,t,n,r){if(e<32||e>192)throw new Jg({code:Kg.INVALID_PARAMETER,message:vh({key:qf,link:{className:r,fnName:n}})})}},audioChannels:{type:zd,values:[1,2]},backgroundColor:{type:zd},backgroundImage:{type:$d},mixUsers:{required:!0,type:qd,arrayItem:{require:!0,type:Zd,properties:{userId:{required:!0,type:$d},roomId:{type:[$d,zd],validate:xk},pureAudio:{type:Wd},width:{type:zd,notLessThanZero:!0},height:{type:zd,notLessThanZero:!0},locationX:{type:zd,notLessThanZero:!0},locationY:{type:zd,notLessThanZero:!0},zOrder:{type:zd},streamType:{type:$d,values:["main","auxiliary"]}}}}},validate:function(e,t,n,r,o){var i=0,a=0,s=e.mixUsers,l=[];if(s.forEach((function(e,t){if(l.push(e.userId),!e.pureAudio){if(!e.zOrder||e.zOrder<1||e>15)throw new Jg({code:Kg.INVALID_PARAMETER,message:vh({key:Zf,data:"config.mixUsers[".concat(t,"].zOrder"),link:{className:r,fnName:n}})});e.width+e.locationX>i&&(i=e.width+e.locationX),e.height+e.locationY>a&&(a=e.height+e.locationY)}})),l.indexOf(this.getUserId())<0)throw new Jg({code:Kg.INVALID_PARAMETER,message:vh({key:Yf,link:{className:r,fnName:n}})});if(e.videoWidth<i||e.videoHeight<a)throw new Jg({code:Kg.INVALID_PARAMETER,message:vh({key:Kf,link:{className:r,fnName:n}})})}}},LOCAL_STREAM:{switchDevice:[{name:"type",required:!0,type:$d,values:[hu,mu]},{name:"deviceId",required:!0,type:$d,validate:function(){if(this.screen_&&!this.audio_||this.audioSource_||this.videoSource_)throw new Jg({code:Kg.INVALID_OPERATION,message:vh({key:Cf})});if(this.publishState_===Xd)throw new Jg({code:Kg.INVALID_OPERATION,message:vh({key:xf})})}}]},STREAM:{play:[{name:"elementId",required:!0,type:[$d,"HTMLDivElement"],validate:function(e,t,n){if(xh(e)){var r=document.getElementById(e);if(!r)throw new Jg({code:Kg.INVALID_PARAMETER,message:vh({key:Jf,data:{key:t,fnName:n}})});if(!(r instanceof HTMLDivElement))throw new Jg({code:Kg.INVALID_PARAMETER,message:vh({key:Gf,data:{key:t,fnName:n,type:Ph(r)}})})}}},{name:"options",type:Zd,properties:{objectFit:{type:$d,values:["contain","cover","fill"]},muted:{type:Wd},mirror:{type:Wd}}}]}};function Pk(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,n,r){var o=r.value;return r.value=function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return Ak.call(this,t,r,n,this.name_),o.apply(this,r)},r}}function Ok(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,n,r){var o=r.value;return r.value=i(regeneratorRuntime.mark((function e(){var r,i,a,s=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(r=s.length,i=new Array(r),a=0;a<r;a++)i[a]=s[a];return Ak.call(this,t,i,n,this.name_),e.abrupt("return",o.apply(this,i));case 3:case"end":return e.stop()}}),e,this)}))),r}}function Ak(e,t,n,r){try{for(var o=0;o<e.length;o++)Dk.call(this,{rule:e[o],value:t[o],key:e[o].name,fnName:n,className:r})}catch(KS){throw Wv.error(KS),KS}}function Dk(e){var t=this,n=e.rule,r=e.value,o=e.key,i=e.fnName,a=e.className;if(Ch(r)){if(n.required)throw new Jg({code:Kg.INVALID_PARAMETER,message:vh({key:wp,data:{key:o,rule:n,fnName:i,value:r},link:{className:a,fnName:i}})})}else{if(Array.isArray(n.type)){if(!n.type.map((function(e){return e.toLowerCase()})).includes(Ph(r)))throw new Jg({code:Kg.INVALID_PARAMETER,message:vh({key:kp,data:{key:o,rule:n,fnName:i,value:r},link:{className:a,fnName:i}})})}else if(!Ch(n.type)&&Ph(r)!==n.type)throw new Jg({code:Kg.INVALID_PARAMETER,message:vh({key:kp,data:{key:o,rule:n,fnName:i,value:r},link:{className:a,fnName:i}})});if(!1===n.allowEmpty){var s=Ih(r)&&(0===r||Number.isNaN(r)),l=xh(r)&&""===r.trim();if(s||l)throw new Jg({code:Kg.INVALID_PARAMETER,message:vh({key:Sp,data:{key:o,rule:n,fnName:i,value:r},link:{className:a,fnName:i}})})}if(n.notLessThanZero&&Ih(r)&&r<0)throw new Jg({code:Kg.INVALID_PARAMETER,message:vh({key:$f,data:{key:o,rule:n,fnName:i,value:r},link:{className:a,fnName:i}})});if(xh(n.instanceOf)){if(!r||r.name_!==n.instanceOf)throw new Jg({code:Kg.INVALID_PARAMETER,message:vh({key:Cp,data:{key:o,rule:n,fnName:i,value:r},link:{className:a,fnName:i}})})}else if(Sh(n.instanceOf)&&!(r instanceof n.instanceOf))throw new Jg({code:Kg.INVALID_PARAMETER,message:vh({key:Cp,data:{key:o,rule:n,fnName:i,value:r},link:{className:a,fnName:i}})});if(n.values&&!n.values.includes(r))throw new Jg({code:Kg.INVALID_PARAMETER,message:vh({key:xp,data:{key:o,rule:n,fnName:i,value:r},link:{className:a,fnName:i}})});var c=n.properties;wh(c)&&"object"===Ph(r)&&Object.keys(c).forEach((function(e){Dk.call(t,{rule:c[e],value:r&&r[e],key:"".concat(o,".").concat(e),fnName:i,className:a})}));var u=n.arrayItem;wh(u)&&Eh(r)&&r.forEach((function(e,n){Dk.call(t,{rule:u,value:e,key:"".concat(o,"[").concat(n,"]"),fnName:i,className:a})})),Sh(n.validate)&&n.validate.call(this,r,o,i,a,this)}}It({target:"Number",stat:!0},{isNaN:function(e){return e!=e}});var Nk=(Tk=Ok.apply(void 0,_(Rk.STREAM.play)),C((Ek=function(){function e(t){a(this,e),this.name_=lp,this.userId_=t.userId,this.isRemote_=t.isRemote,this.type_=t.type,this.log_=Wv.createLogger({id:"s".concat(t.seq?t.seq:"","|").concat(this.userId_),userId:Ch(t.client)?void 0:t.client.getUserId(),sdkAppId:Ch(t.client)?void 0:t.client.getSDKAppId(),isLocal:!this.isRemote_,type:this.isRemote_?this.type_:""}),this.client_=null,Ch(t.client)||(this.client_=t.client),this.mediaStream_=null,this.div_=null,this.isPlaying_=!1,this.connection_=null,this.audioPlayer_=null,this.videoPlayer_=null,this.muted_=!1,this.objectFit_="cover",this.mirror_=!1,this.id_=tb(),this.audioOutputDeviceId_=0,this.audioVolume_=1,this.emitter_=jh(new Km,this.name_),this.connectionState_=ed,this.installEvents(),Ch(t.mirror)||this.log_.warn('TRTC.createStream "mirror" option was deprecated since v4.12.1,please use localStream.play to set up preview mirror. refer to '.concat(pp,"/en/LocalStream.html#play. TRTC.createStream 接口的 mirror 选项从 v4.12.1 开始被废弃,请使用 localStream.play 设置本地流预览镜像,参考文档:").concat(pp,"/zh-cn/LocalStream.html#play。"))}var n,r,o,s,c;return l(e,[{key:"installEvents",value:function(){Jm.on(jv,this.restartPlayback,this)}},{key:"uninstallEvents",value:function(){Jm.off(jv,this.restartPlayback,this)}},{key:"getType",value:function(){return this.type_}},{key:"getLogger",value:function(){return this.log_}},{key:"isSubscribed",get:function(){return this.type_===Xu&&this.connection_.isMainStreamSubscribed||this.type_===Qu&&this.connection_.isAuxStreamSubscribed}},{key:"isMainVideoSubscribed",get:function(){var e=this.getSubscribedState();return this.type_===Xu&&e&&e.video}},{key:"isMainAudioSubscribed",get:function(){var e=this.getSubscribedState();return this.type_===Xu&&e&&e.audio}},{key:"isAuxVideoSubscribed",get:function(){var e=this.getSubscribedState();return this.type_===Qu&&e&&e.auxiliary}},{key:"isSmallVideoSubscribed",get:function(){var e=this.getSubscribedState();return this.type_===Xu&&e&&e.smallVideo}},{key:"emitConnectionStateChanged",value:function(e){e.state!==this.connectionState_&&(e.state!==ed&&this.isRemote_&&!this.isSubscribed||(this.emitter_.emit(e_,e),this.connectionState_=e.state))}},{key:"setConnection",value:function(e){this.connection_!==e&&(e instanceof Ck?(null!==this.connection_&&this.connection_.off(Lb,this.emitConnectionStateChanged,this),e.on(Lb,this.emitConnectionStateChanged,this)):null===e&&this.connection_.off(Lb,this.emitConnectionStateChanged,this),this.connection_=e)}},{key:"getConnection",value:function(){return this.connection_}},{key:"play",value:(c=i(regeneratorRuntime.mark((function e(t,n){var r,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.log_.info("stream ".concat(this.isPlaying_?"update":"start to"," play with elementId: ").concat(t," and options: ").concat(JSON.stringify(n),".")),!this.isPlaying_){e.next=9;break}return n&&!Ch(n.muted)&&(this.muted_=n.muted),n&&!Ch(n.objectFit)&&(this.objectFit_=n.objectFit),this.isScreenShare()?this.mirror_=!1:n&&!Ch(n.mirror)&&(this.mirror_=n.mirror),this.audioPlayer_&&this.audioPlayer_.setMuted(this.muted_),this.videoPlayer_&&(this.videoPlayer_.setObjectFit(this.objectFit_),this.videoPlayer_.setMirror(this.mirror_)),this.elementId_!==t&&(r=t,xh(t)&&(r=document.getElementById(t)),r.appendChild(this.div_),this.elementId_=t),e.abrupt("return");case 9:return this.isPlaying_=!0,(o=document.createElement("div")).setAttribute("id","player_".concat(this.id_)),o.setAttribute("style","width: 100%; height: 100%; position: relative; background-color: black; overflow: hidden;"),i=t,xh(t)&&(i=document.getElementById(t)),i.appendChild(o),this.elementId_=t,this.div_=o,this.isRemote_||(this.muted_=!0),n&&!Ch(n.muted)&&(this.muted_=n.muted),this.isScreenShare()&&(this.objectFit_="contain"),n&&!Ch(n.objectFit)&&(this.objectFit_=n.objectFit),this.isScreenShare()?this.mirror_=!1:(this.isRemote_||(this.mirror_=!0),n&&!Ch(n.mirror)&&(this.mirror_=n.mirror)),Jm.emit(Pv,{stream:this}),e.next=26,Promise.all([this.playAudio(),this.playVideo()]);case 26:Jm.emit(fv,{stream:this});case 27:case"end":return e.stop()}}),e,this)}))),function(e,t){return c.apply(this,arguments)})},{key:"playAudio",value:(s=i(regeneratorRuntime.mark((function e(){var n,r=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.hasAudio()&&(!this.isRemote_||this.isMainAudioSubscribed)){e.next=2;break}return e.abrupt("return");case 2:if(n=this.getAudioTrack(),this.audioPlayer_||!n){e.next=17;break}return this.log_.info("stream - create AudioPlayer and play"),this.audioPlayer_=new nk({stream:this,track:n,div:this.div_,muted:this.muted_,outputDeviceId:this.audioOutputDeviceId_,volume:this.audioVolume_}),this.audioPlayer_.on(n_,(function(e){var n={type:hu,state:e.state,reason:e.reason};Jm.emit(hv,t({stream:r},n)),r.emitter_.emit(Xb,n)})),e.prev=7,e.next=10,this.audioPlayer_.play();case 10:e.next=17;break;case 12:throw e.prev=12,e.t0=e.catch(7),this.client_&&this.client_.getEnableAutoPlayDialog()&&new kk,this.emitter_.emit(t_,e.t0),e.t0;case 17:case"end":return e.stop()}}),e,this,[[7,12]])}))),function(){return s.apply(this,arguments)})},{key:"playVideo",value:(o=i(regeneratorRuntime.mark((function e(){var n,r=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.hasVideo()&&(!this.isRemote_||this.isMainVideoSubscribed||this.isAuxVideoSubscribed||this.isSmallVideoSubscribed)){e.next=2;break}return e.abrupt("return");case 2:if(n=this.getVideoTrack(),this.videoPlayer_||!n){e.next=18;break}return Jm.emit(Av,{stream:this}),this.log_.info("stream - create VideoPlayer and play"),this.videoPlayer_=new Sk({stream:this,track:n,div:this.div_,muted:this.muted_,objectFit:this.objectFit_,mirror:this.mirror_}),this.videoPlayer_.on(n_,(function(e){var n={type:mu,state:e.state,reason:e.reason};Jm.emit(hv,t({stream:r},n)),r.emitter_.emit(Xb,n)})),e.prev=8,e.next=11,this.videoPlayer_.play();case 11:e.next=18;break;case 13:throw e.prev=13,e.t0=e.catch(8),this.client_&&this.client_.getEnableAutoPlayDialog()&&new kk,this.emitter_.emit(t_,e.t0),e.t0;case 18:case"end":return e.stop()}}),e,this,[[8,13]])}))),function(){return o.apply(this,arguments)})},{key:"stopAudio",value:function(){this.audioPlayer_&&(this.log_.info("stream - stop AudioPlayer"),this.audioPlayer_.stop(),this.audioPlayer_=null)}},{key:"stopVideo",value:function(){this.videoPlayer_&&(this.log_.info("stream - stop VideoPlayer"),this.videoPlayer_.stop(),this.videoPlayer_=null)}},{key:"restartPlayback",value:function(){this.audioPlayer_&&!this.audioPlayer_.isPlaying&&this.restartAudio(),this.videoPlayer_&&!this.videoPlayer_.isPlaying&&this.restartVideo()}},{key:"restartAudio",value:function(){this.isPlaying_&&(this.stopAudio(),this.playAudio().catch((function(e){})))}},{key:"restartVideo",value:function(){this.isPlaying_&&(this.stopVideo(),this.playVideo().catch((function(e){})))}},{key:"stop",value:function(){this.isPlaying_&&(this.isPlaying_=!1,this.stopAudio(),this.stopVideo(),this.div_.parentNode.removeChild(this.div_))}},{key:"resume",value:(r=i(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isPlaying_){e.next=2;break}return e.abrupt("return");case 2:if(this.log_.info("stream - resume"),!this.audioPlayer_){e.next=6;break}return e.next=6,this.audioPlayer_.resume();case 6:if(!this.videoPlayer_){e.next=9;break}return e.next=9,this.videoPlayer_.resume();case 9:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"close",value:function(){this.isPlaying_&&this.stop(),this.isRemote_||(this.mediaStream_&&(this.mediaStream_.preventEvent=1,this.mediaStream_.getTracks().forEach((function(e){e.stop()})),this.mediaStream_=null),this.uninstallEvents())}},{key:"muteAudio",value:function(){return this.addRemoteEvent(!0,hu),this.doEnableTrack(hu,!1)}},{key:"muteVideo",value:function(){return this.addRemoteEvent(!0,mu),this.doEnableTrack(mu,!1)}},{key:"unmuteAudio",value:function(){return this.addRemoteEvent(!1,hu),this.doEnableTrack(hu,!0)}},{key:"unmuteVideo",value:function(){return this.addRemoteEvent(!1,mu),this.doEnableTrack(mu,!0)}},{key:"addRemoteEvent",value:function(e,t){if(this.isRemote_&&this.client_){var n=this.client_.getUserId(),r="".concat(e?bu:_u," remote ").concat(t);Ny(n,{eventId:t===hu?e?fy:my:e?py:hy,eventDesc:r,timestamp:(new Date).getTime(),userId:n,tinyId:this.client_.getTinyId(),remoteUserId:this.userId_,remoteTinyId:this.connection_.getTinyId()})}}},{key:"doEnableTrack",value:function(e,t){var n=!1;return e===hu?this.mediaStream_.getAudioTracks().forEach((function(e){n=!0,e.enabled=t})):this.mediaStream_.getVideoTracks().forEach((function(e){n=!0,e.enabled=t})),n}},{key:"getId",value:function(){return this.id_}},{key:"getUserId",value:function(){return this.userId_}},{key:"getTinyId",value:function(){return this.connection_?this.connection_.getTinyId():""}},{key:"isPlaying",value:function(){return this.isPlaying_}},{key:"setAudioOutput",value:(n=i(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.audioOutputDeviceId_=t,!this.audioPlayer_){e.next=4;break}return e.next=4,this.audioPlayer_.setSinkId(t);case 4:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"setAudioVolume",value:function(e){this.audioVolume_=e,this.log_.info("setAudioVolume to ".concat(e)),this.audioPlayer_&&this.audioPlayer_.setVolume(e)}},{key:"getAudioLevel",value:function(){var e=0;return this.audioPlayer_&&(e=this.audioPlayer_.getAudioLevel()),e}},{key:"getInternalAudioLevel",value:function(){var e=0;return this.audioPlayer_&&(e=this.audioPlayer_.getInternalAudioLevel()),e}},{key:"hasAudio",value:function(){if(this.isRemote_){if(!this.connection_)return!1;var e=this.connection_.getTrackState();return this.type_===Xu&&e.audio}return!!this.getAudioTrack()}},{key:"hasVideo",value:function(){if(this.isRemote_){if(!this.connection_)return!1;var e=this.connection_.getTrackState();return this.type_===Qu?e.auxiliary:e.video}return!!this.getVideoTrack()}},{key:"getSubscribedState",value:function(){return this.isRemote_&&this.connection_?this.connection_.getSubscribeState():null}},{key:"getAudioTrack",value:function(){var e=null;if(this.mediaStream_){var t=this.mediaStream_.getAudioTracks();t.length>0&&(e=t[0])}return e}},{key:"getVideoTrack",value:function(){var e=null;if(this.mediaStream_){var t=this.mediaStream_.getVideoTracks();t.length>0&&(e=t[0])}return e}},{key:"getVideoFrame",value:function(){return this.videoPlayer_?this.videoPlayer_.getVideoFrame():null}},{key:"getMediaStream",value:function(){return this.mediaStream_}},{key:"setMediaStream",value:function(e){e!==this.mediaStream_&&(this.mediaStream_&&this.mediaStream_.getTracks().forEach((function(e){return e.stop()})),this.mediaStream_=e)}},{key:"updateVideoPlayingState",value:function(e){this.isPlaying_&&(e?(this.log_.info("playing state updated, play video"),this.playVideo().catch((function(e){}))):(this.log_.info("playing state updated, stop video"),this.stopVideo()))}},{key:"updateAudioPlayingState",value:function(e){this.isPlaying_&&(e?(this.log_.info("playing state updated, play audio"),this.playAudio().catch((function(e){}))):(this.log_.info("playing state updated, stop audio"),this.stopAudio()))}},{key:"on",value:function(e,t,n){this.emitter_.on(e,t,n)}},{key:"off",value:function(e,t,n){"*"===e?this.emitter_.removeAllListeners():this.emitter_.off(e,t,n)}},{key:"isRemote",value:function(){return this.isRemote_}},{key:"isScreenShare",value:function(){return!this.isRemote_&&this.screen_||this.isRemote_&&this.getType()===vu}},{key:"getDiv",value:function(){return this.div_}},{key:"getObjectFit",value:function(){return this.objectFit_}},{key:"getMuted",value:function(){return this.muted_}},{key:"getClient",value:function(){return this.client_}}]),e}()).prototype,"play",[Tk],Object.getOwnPropertyDescriptor(Ek.prototype,"play"),Ek.prototype),Ek),Mk=function(e){u(r,e);var n=g(r);function r(e){var o;a(this,r);var i={isRemote:!0,type:e.type},s=t(t({},e),i);return(o=n.call(this,s)).name_=sp,o.isInSubscriptionCycle_=!1,o.isStreamAddedEventEmitted_=!1,o.isAbleToCallSubscription_=!0,o}return l(r,[{key:"installEvents",value:function(){y(d(r.prototype),"installEvents",this).call(this),Jm.on(_v,this.handleStreamSubscribed,this),Jm.on(wv,this.handleStreamUnsubscribed,this)}},{key:"uninstallEvents",value:function(){y(d(r.prototype),"uninstallEvents",this).call(this),Jm.off(_v,this.handleStreamSubscribed,this),Jm.off(wv,this.handleStreamUnsubscribed,this)}},{key:"handleStreamSubscribed",value:function(e){e.client===this.client_&&e.stream===this&&this.connection_.getCurrentState()===rd&&this.emitConnectionStateChanged({prevState:ed,state:rd})}},{key:"handleStreamUnsubscribed",value:function(e){e.client===this.client_&&e.stream===this&&this.emitConnectionStateChanged({prevState:rd,state:ed})}},{key:"getType",value:function(){return y(d(r.prototype),"getType",this).call(this)}},{key:"getIsAbleToCallSubscription",value:function(){return this.isAbleToCallSubscription_}},{key:"setIsAbleToCallSubscription",value:function(e){this.isAbleToCallSubscription_=e}},{key:"setInSubscriptionCycle",value:function(e){this.isInSubscriptionCycle_=e}},{key:"isInSubscriptionCycle",value:function(){return this.isInSubscriptionCycle_}},{key:"setIsStreamAddedEventEmitted",value:function(e){this.isStreamAddedEventEmitted_=e}},{key:"getIsStreamAddedEventEmitted",value:function(){return this.isStreamAddedEventEmitted_}},{key:"getAudioTrack",value:function(){return this.connection_&&this.connection_.getTrackState().audio?y(d(r.prototype),"getAudioTrack",this).call(this):null}},{key:"getVideoTrack",value:function(){if(!this.connection_)return null;var e=this.connection_.getTrackState();return this.type_===Xu&&!e.video||this.type_===Qu&&!e.auxiliary?null:y(d(r.prototype),"getVideoTrack",this).call(this)}},{key:"close",value:function(){y(d(r.prototype),"close",this).call(this)}}]),r}(Nk),Lk=function(){function e(t){a(this,e),this.client_=t.client,this.subscribedStreams_=new Map,this.unsubscribedStreams_=new Map,this.subscriptedOptions_=new Map,this.autoRecoveryFlags_=new Map}var t,n,r;return l(e,[{key:"isEnabled",get:function(){return"webrtc"!==this.client_.getEnv()}},{key:"recover",value:(r=i(regeneratorRuntime.mark((function e(t){var n,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.getUserId(),r=t.getType(),this.hasAutoRecoveryFlag(n,r)){e.next=5;break}return e.abrupt("return");case 5:if(o=this.getUnsubscribedStream(n,r)?"unsubscribe":"subscribe",e.prev=6,Wv.warn("recover() try to recover subscription [".concat(o,"][").concat(n,"][").concat(r,"]")),"subscribe"!==o){e.next=13;break}return e.next=11,this.recoverSubscription(n,t);case 11:e.next=15;break;case 13:return e.next=15,this.recoverUnsubscription(n,t);case 15:Uy.logSuccessEvent({userId:this.client_.getUserId(),eventType:Ad}),Wv.warn("recover() recover successfully [".concat(o,"][").concat(n,"][").concat(r,"]")),e.next=23;break;case 19:e.prev=19,e.t0=e.catch(6),Wv.error("recover() recover failed [".concat(o,"][").concat(n,"][").concat(r,"]"),e.t0),Uy.logFailedEvent({userId:this.client_.getUserId(),eventType:Ad,error:e.t0});case 23:this.deleteAutoRecoveryFlag(n,r);case 24:case"end":return e.stop()}}),e,this,[[6,19]])}))),function(e){return r.apply(this,arguments)})},{key:"recoverSubscription",value:(n=i(regeneratorRuntime.mark((function e(t,n){var r,o,i,a,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=this.getOptions(t,n.getType()),o=this.getSubscribedStream(t,n.getType()),r&&o){e.next=4;break}return e.abrupt("return");case 4:i=this.getStreamMuteState(o),a=i.isAudioMuted,s=i.isVideoMuted,this.mergeStream(o,n),this.recoverPlayingState(o),a&&o.doEnableTrack(hu,!1),s&&o.doEnableTrack(mu,!1);case 9:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"recoverUnsubscription",value:(t=i(regeneratorRuntime.mark((function e(t,n){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=this.getUnsubscribedStream(t,n.getType())){e.next=3;break}return e.abrupt("return");case 3:this.mergeStream(r,n);case 4:case"end":return e.stop()}}),e,this)}))),function(e,n){return t.apply(this,arguments)})},{key:"getStreamMuteState",value:function(e){var t={isAudioMuted:!1,isVideoMuted:!1},n=e.getMediaStream();return n&&(t.isAudioMuted=n.getAudioTracks().map((function(e){return e.enabled})).includes(!1),t.isVideoMuted=n.getVideoTracks().map((function(e){return e.enabled})).includes(!1)),t}},{key:"recoverPlayingState",value:function(e){var t=e.isPlaying(),n=e.getDiv();if(t&&n){var r=n.parentNode;e.stop(),e.play(r,{objectFit:e.getObjectFit(),muted:e.getMuted()})}}},{key:"mergeStream",value:function(e,t){var n=t.getConnection(),r=t.getMediaStream();e.setConnection(n),n.setRemoteStream(r.id,e),e.setMediaStream(r),e.updateAudioPlayingState(t.hasAudio()),e.updateVideoPlayingState(t.hasVideo())}},{key:"addSubscriptionRecord",value:function(e,t,n){var r=t.getType();if(this.subscribedStreams_.has(e))this.subscribedStreams_.get(e).set(r,t);else{var o=new Map;o.set(t.getType(),t),this.subscribedStreams_.set(e,o)}if(this.subscriptedOptions_.has(e))this.subscriptedOptions_.get(e).set(r,n);else{var i=new Map;i.set(t.getType(),n),this.subscriptedOptions_.set(e,i)}this.deleteUnsubscriptionRecord(e,r)}},{key:"addUnsubscriptionRecord",value:function(e,t){if(this.unsubscribedStreams_.has(e))this.unsubscribedStreams_.get(e).set(t.getType(),t);else{var n=new Map;n.set(t.getType(),t),this.unsubscribedStreams_.set(e,n)}this.deleteSubscriptionRecord(e,t.getType())}},{key:"getSubscribedStream",value:function(e,t){return this.subscribedStreams_.has(e)&&this.subscribedStreams_.get(e).has(t)?this.subscribedStreams_.get(e).get(t):null}},{key:"getOptions",value:function(e,t){return this.subscriptedOptions_.has(e)&&this.subscriptedOptions_.get(e).has(t)?this.subscriptedOptions_.get(e).get(t):null}},{key:"getUnsubscribedStream",value:function(e,t){return this.unsubscribedStreams_.has(e)&&this.unsubscribedStreams_.get(e).has(t)?this.unsubscribedStreams_.get(e).get(t):null}},{key:"deleteSubscriptionRecord",value:function(e,t){this.subscribedStreams_.has(e)&&this.subscribedStreams_.get(e).delete(t),this.subscriptedOptions_.has(e)&&this.subscriptedOptions_.get(e).delete(t)}},{key:"deleteUnsubscriptionRecord",value:function(e,t){this.unsubscribedStreams_.has(e)&&this.unsubscribedStreams_.get(e).delete(t)}},{key:"markAllStream",value:function(){for(var e=0,t=_(this.subscribedStreams_.entries());e<t.length;e++)for(var n=b(t[e],2),r=n[0],o=0,i=_(n[1].entries());o<i.length;o++){var a=b(i[o],1)[0];this.setAutoRecoveryFlag(r,a)}for(var s=0,l=_(this.unsubscribedStreams_.entries());s<l.length;s++)for(var c=b(l[s],2),u=c[0],d=0,p=_(c[1].entries());d<p.length;d++){var f=b(p[d],1)[0];this.setAutoRecoveryFlag(u,f)}}},{key:"setAutoRecoveryFlag",value:function(e,t){if(Wv.info("setAutoRecoveryFlag() mark [".concat(e,"][").concat(t,"]")),this.autoRecoveryFlags_.has(e))this.autoRecoveryFlags_.get(e).set(t);else{var n=new Map;n.set(t),this.autoRecoveryFlags_.set(e,n)}}},{key:"hasAutoRecoveryFlag",value:function(e,t){return!!this.isEnabled&&this.autoRecoveryFlags_.has(e)&&this.autoRecoveryFlags_.get(e).has(t)}},{key:"deleteAutoRecoveryFlag",value:function(e,t){this.autoRecoveryFlags_.has(e)&&this.autoRecoveryFlags_.get(e).delete(t)}},{key:"delete",value:function(e){this.unsubscribedStreams_.delete(e),this.subscribedStreams_.delete(e),this.subscriptedOptions_.delete(e),this.autoRecoveryFlags_.delete(e)}}]),e}(),Fk=Zt("slice"),Uk=ge("species"),jk=[].slice,Vk=Math.max;It({target:"Array",proto:!0,forced:!Fk},{slice:function(e,t){var n,r,o,i=B(this),a=st(i),s=ot(e,a),l=ot(void 0===t?a:t,a);if(Et(i)&&(n=i.constructor,(Vt(n)&&(n===Array||Et(n.prototype))||z(n)&&null===(n=n[Uk]))&&(n=void 0),n===Array||void 0===n))return jk.call(i,s,l);for(r=new(void 0===n?Array:n)(Vk(l-s,0)),o=0;s<l;s++,o++)s in i&&Ko(r,o,i[s]);return r.length=o,r}}),It({target:"String",proto:!0,forced:bp("small")},{small:function(){return yp(this,"small","","")}});var Hk=function(){function e(t){a(this,e),this.player_=t,this.canvas_=document.createElement(fu),this.canvasCtx_=this.canvas_.getContext("2d")}return l(e,[{key:"setCanvasRect",value:function(e,t){this.canvas_.width=e,this.canvas_.height=t}},{key:"drawVideoToCanvas",value:function(){var e=this.player_.getElement();this.canvasCtx_.drawImage(e,0,0,this.canvas_.width,this.canvas_.height)}},{key:"generateVideoTrackFromCanvasCapture",value:function(e){return this.canvas_.captureStream(e).getVideoTracks()[0]}},{key:"generateStreamFromTrack",value:function(e){var t=new MediaStream;return t.addTrack(e),t}},{key:"destroy",value:function(){this.player_.stop(),this.canvas_=null,this.canvasCtx_=null}},{key:"canvas",get:function(){return this.canvas_}},{key:"canvasCtx",get:function(){return this.canvasCtx_}},{key:"canDrawVideoToCanvas",get:function(){if(this.player_){var e=this.player_.getElement();if(e)return e.readyState===e.HAVE_ENOUGH_DATA}return!1}}]),e}(),Bk=function(){function e(t){a(this,e),this.localStream_=t,this.player_=new Sk({stream:t,track:t.getVideoTrack(),muted:!0,objectFit:"cover",mirror:!1}),this.player_.play().then((function(){Wv.info("VideoGenerator: play local video success")})).catch((function(){Wv.error("VideoGenerator: Failed to play local video")})),this.processor_=new Hk(this.player_)}return l(e,[{key:"generateSmallVideoTrack",value:function(e){var t=this.getSmallVideoProfile(e);this.processor_.setCanvasRect(t.width,t.height),this.player_.setRect({width:t.width,height:t.height});var n=this.processor_.generateVideoTrackFromCanvasCapture(t.frameRate);return this.interval_=nb.setInterval(this.render.bind(this),Math.ceil(1e3/t.frameRate)),n}},{key:"render",value:function(){this.processor_.canDrawVideoToCanvas&&this.processor_.drawVideoToCanvas()}},{key:"destroy",value:function(){nb.clearInterval(this.interval_),this.processor_&&this.processor_.destroy()}},{key:"getSmallVideoProfile",value:function(e){var t,n=this.localStream_.getVideoTrack(),r=this.localStream_.getVideoProfile(),o=n.getSettings(),i=o&&o.width&&o.height?{width:o.width,height:o.height}:r,a=i.width*i.height,s=e.width*e.height;return Wv.log("big stream resolution: ".concat(i.height,"*").concat(i.width," small stream resolution: ").concat(e.height,"*").concat(e.width," ")),a>s?t=a/s:(Wv.warn("Small stream resolution is larger than big stream, which is invalid. big: ".concat(i.width," * ").concat(i.height," small: ").concat(e.width," * ").concat(e.height)),t=a/19200),{width:parseInt(i.width/Math.sqrt(t)),height:parseInt(i.height/Math.sqrt(t)),frameRate:e.frameRate}}}]),e}(),$k={voiceActivityDetection:!1},zk=function(e){u(k,e);var t,n,r,o,s,c,p,f,h,m,v,b,_,w=g(k);function k(e){var t;return a(this,k),(t=w.call(this,e)).localStream_=null,t.exchangeSDPTimeout_=-1,t.smallGenerator_=null,t.isSDPExchanging_=!1,t.ssrc_={audio:0,video:0,small:0},t.canvasTrack_=null,t}return l(k,[{key:"initialize",value:function(){y(d(k.prototype),"initialize",this).call(this),this.installEvents()}},{key:"reset",value:function(){y(d(k.prototype),"close",this).call(this),this.uninstallEvents(),this.clearExchangeSDPTimeout(),this.canvasTrack_=null,this.localStream_&&this.localStream_.clearCanvas()}},{key:"close",value:function(){this.reset(),this.emitConnectionStateChangedEvent(ed),this.smallGenerator_&&(this.smallGenerator_.destroy(),this.smallGenerator_=null)}},{key:"installEvents",value:function(){this.emitter_.on(Mb,this.handleError,this),this.emitter_.on(Lb,this.handleConnectionStateChange,this)}},{key:"uninstallEvents",value:function(){this.emitter_.off(Mb,this.handleError,this),this.emitter_.off(Lb,this.handleConnectionStateChange,this)}},{key:"publish",value:(_=i(regeneratorRuntime.mark((function e(t){var n,r,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.localStream_=t,n=t.getMediaStream(),this.log_.info("is publishing stream: ".concat(t.getId())),r=this.localStream_.getAudioTrack(),o=this.localStream_.getVideoTrack(),r&&this.peerConnection_.addTrack(r,n),o&&(au&&Rh(o)?(this.canvasTrack_=this.localStream_.genCanvasTrack(o),this.peerConnection_.addTrack(this.canvasTrack_,n)):this.peerConnection_.addTrack(o,n),this.client_.getIsEnableSmallStream()&&(this.smallGenerator_=new Bk(this.localStream_),i=this.smallGenerator_.generateSmallVideoTrack(this.client_.smallStreamConfig_),this.peerConnection_.addTrack(i,n))),e.next=9,this.connect();case 9:return e.abrupt("return",t);case 10:case"end":return e.stop()}}),e,this)}))),function(e){return _.apply(this,arguments)})},{key:"updateMediaSettings",value:function(e){var t=this,n=this.client_.getSystemResult().detail,r=n.isH264EncodeSupported,o=n.isVp8EncodeSupported,i="";r?i="H264":o&&(i="VP8");var a={videoCodec:i,videoWidth:0,videoHeight:0,videoBps:0,videoFps:0,audioCodec:"opus",audioFs:0,audioChannel:0,audioBps:0};return Rb?e.getTracks().forEach((function(e){var n=e.getSettings();if(e.kind===hu){var r=1;n.channelCount&&(r=n.channelCount),a.audioChannel=r,a.audioBps=1e3*t.localStream_.getAudioBitrate(),a.audioFs=n.sampleRate}else e.kind===mu&&(t.client_.getIsEnableSmallStream()&&(a.smallVideoWidth=t.client_.smallStreamConfig.width,a.smallVideoHeight=t.client_.smallStreamConfig.height,a.smallVideoFps=t.client_.smallStreamConfig.framerate,a.smallVideoBps=1e3*t.client_.smallStreamConfig.bitrate),a.videoWidth=n.width,a.videoHeight=n.height,a.videoFps=n.frameRate,a.videoBps=1e3*t.localStream_.getVideoBitrate())})):a=this.getMediaSettingsFromProfile(a),this.log_.info("updateMediaSettings: "+JSON.stringify(a)),a}},{key:"getMediaSettingsFromProfile",value:function(e){var t=this.localStream_;if(t){if(t.getAudioTrack()){var n=t.getAudioProfile();e.audioChannel=n.channelCount,e.audioBps=1e3*n.bitrate,e.audioFs=n.sampleRate}if(t.getVideoTrack()){var r=t.getVideoProfile();e.videoWidth=r.width,e.videoHeight=r.height,e.videoFps=r.frameRate,e.videoBps=1e3*r.bitrate}}return e}},{key:"addTrack",value:(b=i(regeneratorRuntime.mark((function e(t){var n,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.peerConnection_){e.next=19;break}if(t.kind===mu&&au&&Rh(t)&&(t=this.canvasTrack_=this.localStream_.genCanvasTrack(t)),this.log_.info("is adding ".concat(t.kind," track to current published local stream")),!(gb()&&this.peerConnection_.getTransceivers().findIndex((function(e){return"stopped"===e.direction}))>=0)){e.next=7;break}return this.log_.warn("transceiver is stopping, negotiate sdp first"),e.next=7,this.updateOffer(Kd,t);case 7:if(!(n=this.peerConnection_.getSenders().find((function(e){return e.track&&e.track.kind===t.kind})))){e.next=14;break}return this.log_.warn("sender already exists, remove sender first"),r=n.track,this.removeSender(n),e.next=14,this.updateOffer(Kd,r);case 14:return o=this.localStream_.getMediaStream(),this.peerConnection_.addTrack(t,o),e.next=18,this.updateOffer(Yd,t);case 18:Ny(this.userId_,{eventId:t.kind===hu?Xg:Gg,eventDesc:"add ".concat(t.kind," track to current published stream"),timestamp:wa(),userId:this.userId_,tinyId:this.tinyId_});case 19:case"end":return e.stop()}}),e,this)}))),function(e){return b.apply(this,arguments)})},{key:"isNeedToResetOfferOrder",value:function(){if("plan-b"===this.sdpSemantics_||!this.peerConnection_||!this.peerConnection_.localDescription)return!1;for(var e=this.peerConnection_.localDescription.sdp,t=Jy(e),n=0;n<t.media.length;n++)if(0===t.media[n].mid&&t.media[n].type===mu)return!0;return!1}},{key:"removeSender",value:function(e){var t=null;gb()&&(t=this.peerConnection_.getTransceivers().find((function(t){return t.sender&&t.sender.track===e.track}))),this.peerConnection_.removeTrack(e),t&&Sh(t.stop)&&(this.log_.info("stop transceiver"),t.stop())}},{key:"removeTrack",value:(v=i(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.peerConnection_||!vb()){e.next=14;break}if(t.kind===mu&&au&&this.canvasTrack_&&(t=this.canvasTrack_,this.localStream_.clearCanvas()),this.log_.info("is removing ".concat(t.kind," track from current published local stream")),t.kind!==mu||!this.isNeedToResetOfferOrder()){e.next=9;break}return this.reset(),this.initialize(),e.next=8,this.publish(this.localStream_);case 8:return e.abrupt("return");case 9:return(n=this.peerConnection_.getSenders().find((function(e){return e.track===t})))&&this.removeSender(n),e.next=13,this.updateOffer(Kd,t);case 13:Ny(this.userId_,{eventId:t.kind===hu?ey:Qg,eventDesc:"remove ".concat(t.kind," track from current published stream"),timestamp:wa(),userId:this.userId_,tinyId:this.tinyId_});case 14:case"end":return e.stop()}}),e,this)}))),function(e){return v.apply(this,arguments)})},{key:"isReplaceTrackAvailable",value:function(){return"RTCRtpSender"in window&&"replaceTrack"in window.RTCRtpSender.prototype}},{key:"replaceTrack",value:(m=i(regeneratorRuntime.mark((function e(t){var n,r=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.kind!==mu||!au||!this.canvasTrack_){e.next=2;break}return e.abrupt("return");case 2:if(this.isReplaceTrackAvailable()&&vb()){e.next=4;break}throw new Jg({code:Kg.INVALID_OPERATION,message:vh({key:sh})});case 4:if(this.peerConnection_){e.next=6;break}throw new Jg({code:Kg.INVALID_OPERATION,message:vh({key:If})});case 6:if(0!==(n=this.peerConnection_.getSenders()).length){e.next=9;break}throw new Jg({code:Kg.INVALID_OPERATION,message:vh({key:If})});case 9:n.forEach((function(e){e.track&&e.track.kind===t.kind&&(r.log_.info("is replacing ".concat(t.kind," track to current published local stream")),e.replaceTrack(t))})),Ny(this.userId_,{eventId:t.kind===hu?dy:uy,eventDesc:"replace ".concat(t.kind," track from current published stream"),timestamp:wa(),userId:this.userId_,tinyId:this.tinyId_});case 11:case"end":return e.stop()}}),e,this)}))),function(e){return m.apply(this,arguments)})},{key:"setBandwidth",value:(h=i(regeneratorRuntime.mark((function e(t,n,r){var o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isUplink_){e.next=2;break}return e.abrupt("return",r);case 2:if(bb()){e.next=4;break}return e.abrupt("return",n===mu?this.updateVideoBandwidthRestriction(r,t):this.updateAudioBandwidthRestriction(r,t));case 4:if(!(o=this.peerConnection_.getSenders().find((function(e){return e.track&&e.track.kind===n})))){e.next=20;break}return(i=o.getParameters()).encodings&&0!==i.encodings.length||(i.encodings=[{}]),"unlimited"===t?delete i.encodings[0].maxBitrate:i.encodings[0].maxBitrate=1e3*t,e.prev=9,e.next=12,o.setParameters(i);case 12:return this.log_.info(n+" bandwidth was set to "+t+" kbps"),e.abrupt("return",r);case 16:return e.prev=16,e.t0=e.catch(9),this.log_.info("failed to set bandwidth by setting maxBitrate: "+e.t0),e.abrupt("return",n===mu?this.updateVideoBandwidthRestriction(r,t):this.updateAudioBandwidthRestriction(r,t));case 20:return e.abrupt("return",r);case 21:case"end":return e.stop()}}),e,this,[[9,16]])}))),function(e,t,n){return h.apply(this,arguments)})},{key:"setSmallStreamBandwidth",value:(f=i(regeneratorRuntime.mark((function e(t,n){var r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isUplink_){e.next=2;break}return e.abrupt("return",n);case 2:if(bb()){e.next=4;break}return e.abrupt("return",this.updateSmallVideoBandwidthRestriction(n,t));case 4:if(!(r=this.peerConnection_.getSenders().filter((function(e){return e.track&&e.track.kind===mu}))[1])){e.next=20;break}return(o=r.getParameters()).encodings&&0!==o.encodings.length||(o.encodings=[{}]),"unlimited"===t?delete o.encodings[0].maxBitrate:o.encodings[0].maxBitrate=1e3*t,e.prev=9,e.next=12,r.setParameters(o);case 12:return this.log_.info("small stream bandwidth was set to "+t+" kbps"),e.abrupt("return",n);case 16:return e.prev=16,e.t0=e.catch(9),this.log_.info("failed to set small stream bandwidth by setting maxBitrate: "+e.t0),e.abrupt("return",this.updateSmallVideoBandwidthRestriction(n,t));case 20:return e.abrupt("return",n);case 21:case"end":return e.stop()}}),e,this,[[9,16]])}))),function(e,t){return f.apply(this,arguments)})},{key:"updateVideoBandwidthRestriction",value:function(e,t){var n="AS";return dc&&(n="TIAS",t*=1e3),-1===e.indexOf("b="+n+":")?e.replace(/m=video (.*)\r\nc=IN (.*)\r\n/,"m=video $1\r\nc=IN $2\r\nb="+n+":"+t+"\r\n"):e.replace(new RegExp("b="+n+":.*\r\n"),"b="+n+":"+t+"\r\n")}},{key:"updateAudioBandwidthRestriction",value:function(e,t){var n="AS";return dc&&(n="TIAS",t*=1e3),e.replace(/m=audio (.*)\r\nc=IN (.*)\r\n/,"m=audio $1\r\nc=IN $2\r\nb="+n+":"+t+"\r\n")}},{key:"updateSmallVideoBandwidthRestriction",value:function(e,t){var n="AS";dc&&(n="TIAS",t*=1e3);var r=/m=video (.*)\r\nc=IN (.*)\r\n/g,o=[],i=r.exec(e);for(o.push(i);null!==i;)i=r.exec(e),o.push(i);var a=o[o.length-2],s=e.slice(0,a.index),l=e.slice(a.index);return-1===e.indexOf("b="+n+":")?s+(l=l.replace(/m=video (.*)\r\nc=IN (.*)\r\n/,"m=video $1\r\nc=IN $2\r\nb="+n+":"+t+"\r\n")):s+(l=l.replace(new RegExp("b="+n+":.*\r\n"),"b="+n+":"+t+"\r\n"))}},{key:"removeBandwidthRestriction",value:function(e){return e.replace(/b=AS:.*\r\n/,"").replace(/b=TIAS:.*\r\n/,"")}},{key:"removeVideoOrientation",value:function(e){return e.replace(/urn:3gpp:video-orientation/,"")}},{key:"connect",value:(p=i(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.exchangeSDP();case 3:return e.next=5,this.waitForPeerConnectionConnected();case 5:e.next=11;break;case 7:throw e.prev=7,e.t0=e.catch(0),this.closePeerConnection(!0),e.t0;case 11:case"end":return e.stop()}}),e,this,[[0,7]])}))),function(){return p.apply(this,arguments)})},{key:"exchangeSDP",value:(c=i(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,this.isSDPExchanging_=!0,e.next=4,this.createOffer();case 4:return this.log_.info("createOffer success, sending offer to remote server"),e.next=7,this.doExchangeSDP();case 7:this.isSDPExchanging_=!1,e.next=14;break;case 10:throw e.prev=10,e.t0=e.catch(0),this.isSDPExchanging_=!1,e.t0;case 14:case"end":return e.stop()}}),e,this,[[0,10]])}))),function(){return c.apply(this,arguments)})},{key:"createOffer",value:(s=i(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.peerConnection_.createOffer($k);case 3:return t=e.sent,e.next=6,this.peerConnection_.setLocalDescription(t);case 6:this.updateSSRC(t.sdp),Uy.logSuccessEvent({userId:this.client_.getUserId(),eventType:xd,kind:"offer"}),e.next=14;break;case 10:throw e.prev=10,e.t0=e.catch(0),Uy.logFailedEvent({userId:this.client_.getUserId(),eventType:xd,kind:"offer",error:e.t0}),e.t0;case 14:case"end":return e.stop()}}),e,this,[[0,10]])}))),function(){return s.apply(this,arguments)})},{key:"doExchangeSDP",value:function(){var e=this;return new Promise((function(t,n){e.exchangeSDPTimeout_=setTimeout((function(){e.signalChannel_.off(Pg.PUBLISH_RESULT,r),e.clearExchangeSDPTimeout();var t=new Jg({code:Kg.API_CALL_TIMEOUT,message:vh({key:Op})});n(t)}),5e3);var r=function(){var r=i(regeneratorRuntime.mark((function r(o){var i,a,s;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(r.prev=0,e.clearExchangeSDPTimeout(),i=o.data,a=i.code,s=i.message,0!==a){r.next=9;break}return r.next=6,e.acceptAnswer(o.data.data);case 6:t(),r.next=10;break;case 9:e.checkPublishResultCode(a,s);case 10:r.next=15;break;case 12:r.prev=12,r.t0=r.catch(0),n(r.t0);case 15:case"end":return r.stop()}}),r,null,[[0,12]])})));return function(e){return r.apply(this,arguments)}}(),o=e.updateMediaSettings(e.localStream_.getMediaStream()),a={type:e.peerConnection_.localDescription.type,sdp:e.removeVideoOrientation(e.peerConnection_.localDescription.sdp),screen:e.localStream_.hasScreenTrack(),constraintConfig:o};e.signalChannel_.once(Pg.PUBLISH_RESULT,r),e.log_.debug("sending sdp offer: "+a.sdp),e.signalChannel_.send(Lg,a)}))}},{key:"setSDPDirection",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"all",r=Jy(e);return r.media.forEach((function(e){"all"!==n&&e.type!==n||(e.direction=t)})),Gy(r)}},{key:"updateOffer",value:(o=i(regeneratorRuntime.mark((function e(t,n){var r,o,i,a,s,l,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.peerConnection_.createOffer($k);case 3:return r=e.sent,dc&&(r.sdp=this.setSDPDirection(r.sdp,"sendrecv")),e.next=7,this.peerConnection_.setLocalDescription(r);case 7:return o=this.updateMediaSettings(this.localStream_.getMediaStream()),i={action:t,trackId:n.id,kind:n.kind===mu?"bigVideo":n.kind,type:"offer",sdp:this.peerConnection_.localDescription.sdp,constraintConfig:o},this.log_.info("createOffer success, sending updated offer to remote server"),this.log_.debug("updatedOffer: "+i.sdp),e.next=13,this.signalChannel_.sendWaitForResponse({command:Og,data:i,responseCommand:Pg.UPDATE_OFFER_RESULT,timeout:1e4,commandDesc:"update offer"});case 13:return a=e.sent,s=a.data,l=s.code,c=s.message,0!==l&&this.checkPublishResultCode(l,c),e.next=18,this.acceptAnswer(a.data.data);case 18:this.updateSSRC(r.sdp),Uy.logSuccessEvent({userId:this.client_.getUserId(),eventType:xd,kind:"offer"}),e.next=27;break;case 22:throw e.prev=22,e.t0=e.catch(0),this.log_.error(e.t0),Uy.logFailedEvent({userId:this.client_.getUserId(),eventType:xd,kind:"offer",error:e.t0}),e.t0;case 27:case"end":return e.stop()}}),e,this,[[0,22]])}))),function(e,t){return o.apply(this,arguments)})},{key:"acceptAnswer",value:(r=i(regeneratorRuntime.mark((function e(t){var n,r,o,i,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.localStream_.getVideoBitrate(),r=this.localStream_.getAudioBitrate(),e.prev=2,o=this.removeVideoOrientation(t.sdp),e.next=6,this.setBandwidth(n,mu,o);case 6:return o=e.sent,e.next=9,this.setBandwidth(r,hu,o);case 9:if(o=e.sent,!this.client_.getIsEnableSmallStream()){e.next=15;break}return i=this.client_.smallStreamConfig,e.next=14,this.setSmallStreamBandwidth(i.bitrate,o);case 14:o=e.sent;case 15:return a={type:t.type,sdp:o},e.next=18,this.peerConnection_.setRemoteDescription(a);case 18:this.log_.debug("accepted answer: "+o),Uy.logSuccessEvent({userId:this.client_.getUserId(),eventType:Id,kind:"answer"}),e.next=27;break;case 22:throw e.prev=22,e.t0=e.catch(2),Uy.logFailedEvent({userId:this.client_.getUserId(),eventType:Id,kind:"answer",error:e.t0}),this.log_.error("failed to accept remote answer "+e.t0),e.t0;case 27:case"end":return e.stop()}}),e,this,[[2,22]])}))),function(e){return r.apply(this,arguments)})},{key:"sendMutedFlag",value:function(e){var t={audio:e.audio,bigVideo:e.video,auxVideo:e.auxVideo};this.log_.info("send muted state: ".concat(JSON.stringify(t))),this.signalChannel_.send(Mg,t)}},{key:"getIsReconnecting",value:function(){return this.isReconnecting_}},{key:"reconnect",value:(n=i(regeneratorRuntime.mark((function e(){var t,n,r=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(-1===this.reconnectionTimer_){e.next=3;break}return this.log_.warn("reconnect() uplink is reconnecting, ignore current reconnection"),e.abrupt("return");case 3:if(!(this.reconnectionCount_>=30)){e.next=12;break}return this.log_.warn("SDK has tried reconnect uplink for ".concat(30," times, but all failed, please check your network")),this.stopReconnection(),t=new Jg({code:Kg.UPLINK_RECONNECTION_FAILED,message:vh({key:Np})}),Uy.logFailedEvent({userId:this.client_.getUserId(),eventType:kd,error:t}),this.addEventInternal(Ty,"uplink-connection reconnect fail"),this.emitConnectionStateChangedEvent(ed),this.emitter_.emit(Mb,t),e.abrupt("return");case 12:if(this.signalChannel_.getCurrentState()===Tg){e.next=16;break}return this.log_.warn("reconnect() signal channel is not connected, suspend reconnection until signal is connected"),this.signalChannel_.once(kg,this.reconnect,this),e.abrupt("return");case 16:if(this.reconnectionCount_++,e.prev=17,this.log_.warn("reconnect() try to reconnect uplink [".concat(this.reconnectionCount_,"/").concat(30,"]")),n=kh(this.reconnectionCount_),this.reconnectionTimer_=setTimeout((function(){r.log_.warn("reconnect() uplink reconnect timeout(".concat(n/1e3,"s), try again")),r.signalChannel_.off(Pg.UNPUBLISH_RESULT,r.onUnpublishResult,r),r.clearReconnectionTimer(),r.reconnect()}),n),!(this.isSDPExchanging_||this.peerConnection_&&this.peerConnection_.connectionState===id)){e.next=23;break}return e.abrupt("return");case 23:this.signalChannel_.send(Fg),this.signalChannel_.once(Pg.UNPUBLISH_RESULT,this.onUnpublishResult,this),e.next=29;break;case 27:e.prev=27,e.t0=e.catch(17);case 29:case"end":return e.stop()}}),e,this,[[17,27]])}))),function(){return n.apply(this,arguments)})},{key:"onUnpublishResult",value:(t=i(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,this.reset(),this.initialize(),e.next=5,this.publish(this.localStream_);case 5:e.next=9;break;case 7:e.prev=7,e.t0=e.catch(0);case 9:case"end":return e.stop()}}),e,this,[[0,7]])}))),function(){return t.apply(this,arguments)})},{key:"clearExchangeSDPTimeout",value:function(){-1!==this.exchangeSDPTimeout_&&(clearTimeout(this.exchangeSDPTimeout_),this.exchangeSDPTimeout_=-1)}},{key:"clearReconnectionTimer",value:function(){-1!==this.reconnectionTimer_&&(clearTimeout(this.reconnectionTimer_),this.reconnectionTimer_=-1)}},{key:"handleError",value:function(e){e.getCode()===Kg.ICE_TRANSPORT_ERROR&&(this.isFirstConnection_&&(this.isFirstConnection_=!1,Uy.logFailedEvent({userId:this.client_.getUserId(),eventType:wd,error:e})),this.isReconnecting_||this.startReconnection())}},{key:"handleConnectionStateChange",value:function(e){e.state===rd&&(this.isFirstConnection_&&(this.isFirstConnection_=!1,Uy.logSuccessEvent({userId:this.client_.getUserId(),eventType:wd}),this.addEventInternal(_y,"uplink-connection is connected")),this.isReconnecting_&&(Uy.logSuccessEvent({userId:this.client_.getUserId(),eventType:kd}),this.log_.warn("reconnect() uplink reconnect successfully"),this.addEventInternal(Iy,"uplink-connection reconnect success"),this.stopReconnection()))}},{key:"updateSSRC",value:function(e){var t=this;try{var n=0;Jy(e).media.forEach((function(e){if(e.type===hu){var r=e.ssrcs[0];r&&(t.ssrc_.audio=r.id)}else{var o=e.ssrcs[0];switch(n+=1){case 1:o&&(t.ssrc_.video=o.id);break;case 2:o&&(t.ssrc_.small=o.id)}}}))}catch(KS){}}},{key:"getLocalStreamVideoTrackId",value:function(){if(this.peerConnection_){var e=this.peerConnection_.getSenders().filter((function(e){return e.track&&e.track.kind===mu}));if(e[0])return e[0].track.id}if(this.localStream_){var t=this.localStream_.getVideoTrack();if(t)return t.id}return""}},{key:"getSSRC",value:function(){return this.ssrc_}},{key:"checkPublishResultCode",value:function(e,t){if(0!==e)throw 1028===e?(this.log_.error(fh.NOT_SUPPORTED_H264ENCODE),new Jg({code:Kg.NOT_SUPPORTED_H264,message:vh({key:ih})})):new Jg({code:Kg.UNKNOWN,message:vh({key:dh,data:{signalResponse:Pg.PUBLISH_RESULT,code:e,message:t}})})}},{key:"getLocalStream",value:function(){return this.localStream_}}]),k}(Ck),Wk=function(e){u(h,e);var t,n,r,o,s,c,p,f=g(h);function h(e){var t;return a(this,h),(t=f.call(this,e)).remoteStreams_=new Map,t.autoSubscribe=e.autoSubscribe,t.trackState_={audio:e.trackState.audio,video:e.trackState.video,auxiliary:e.trackState.auxiliary,smallVideo:e.trackState.smallVideo},t.ssrc_={audio:0,video:0,auxiliary:0},t.subscribeState_={audio:e.autoSubscribe,video:e.autoSubscribe,auxiliary:e.autoSubscribe,smallVideo:!1},t.pendingSubscription_=[],t.pendingStreams_=[],t.subscriptionTimeout_=-1,t.subscriptionRetryCount_=0,t.isSubscriptionPending_=!1,t.isSDPExchanging_=!1,t.installEvents(),t}return l(h,[{key:"isMainStreamSubscribed",get:function(){return(this.subscribeState_.audio||this.subscribeState_.video||this.subscribeState_.smallVideo)&&(this.trackState_.audio||this.trackState_.video||this.trackState_.smallVideo)}},{key:"isAuxStreamSubscribed",get:function(){return this.subscribeState_.auxiliary&&this.trackState_.auxiliary}},{key:"isStreamUnpublished",value:function(e){return e.getType()===Pu?!this.trackState_.audio&&!this.trackState_.video:!this.trackState_.auxiliary}},{key:"initialize",value:function(){y(d(h.prototype),"initialize",this).call(this),this.peerConnection_.ontrack=this.onTrack.bind(this)}},{key:"close",value:function(){var e=this;y(d(h.prototype),"close",this).call(this),this.trackState_.audio=!1,this.trackState_.video=!1,this.trackState_.auxiliary=!1,this.emitConnectionStateChangedEvent(ed),-1!==this.subscriptionTimeout_&&(clearTimeout(this.subscriptionTimeout_),this.subscriptionTimeout_=-1),this.remoteStreams_.forEach((function(t){var n=t;n.setConnection(null),n.getIsStreamAddedEventEmitted()&&e.emitter_.emit(Ab,{stream:n})})),this.remoteStreams_.clear(),this.uninstallEvents()}},{key:"installEvents",value:function(){var e=this;Jm.on(gv,this.onRemoteStreamUpdate,this),this.signalChannel_.on(Pg.SUBSCRIBE_CHANGE_RESULT,this.onSubscribeChangeResult,this),this.signalChannel_.on(Pg.UNSUBSCRIBE_RESULT,this.onUnsubscribeResult,this),this.emitter_.on(Mb,(function(t){t.getCode()===Kg.ICE_TRANSPORT_ERROR&&(e.isFirstConnection_&&(e.isFirstConnection_=!1,Uy.logFailedEvent({userId:e.client_.getUserId(),eventType:Sd,error:t})),e.isReconnecting_||e.startReconnection())})),this.emitter_.on(Lb,(function(t){t.state===rd&&e.isFirstConnection_&&(e.isFirstConnection_=!1,Uy.logSuccessEvent({userId:e.client_.getUserId(),eventType:Sd}),e.addEventInternal(wy,"downlink-connection is connected"))}))}},{key:"uninstallEvents",value:function(){Jm.removeListener(gv,this.onRemoteStreamUpdate,this),this.signalChannel_.removeListener(Pg.SUBSCRIBE_CHANGE_RESULT,this.onSubscribeChangeResult,this),this.signalChannel_.removeListener(Pg.UNSUBSCRIBE_RESULT,this.onUnsubscribeResult,this)}},{key:"onRemoteStreamUpdate",value:function(e){if(this.hitTest(e.tinyId)&&e.client===this.client_){this.updateTrackState(e.action,e.kind);var t=e.kind===vu?Ju:Ku,n=this.remoteStreams_.get(t);if(!n)return;e.action===Yd?this.handleRemoteAddTrack(e.kind,n):this.handleRemoteRemoveTrack(e.kind,n)}}},{key:"handleRemoteAddTrack",value:function(e,t){this.log_.info("remote add ".concat(e," track")),e===hu?t.updateAudioPlayingState(this.subscribeState_.audio):t.updateVideoPlayingState(e===vu?this.subscribeState_.auxiliary:this.subscribeState_.video||this.subscribeState_.smallVideo),t.getIsStreamAddedEventEmitted()?this.emitter_.emit(Db,{stream:t}):(this.emitter_.emit(Ob,{stream:t}),this.currentState_===rd&&t.emitConnectionStateChanged({prevState:ed,state:rd}))}},{key:"handleRemoteRemoveTrack",value:function(e,t){t.getIsStreamAddedEventEmitted()&&(this.log_.info("remote remove ".concat(e," track")),e!==vu&&(this.trackState_.audio||this.trackState_.video)||t.isInSubscriptionCycle()?(e===hu?t.updateAudioPlayingState(!1):t.updateVideoPlayingState(!1),this.emitter_.emit(Db,{stream:t})):(this.log_.info("remote stream ".concat(t.getType()," removed")),this.currentState_===rd&&t.emitConnectionStateChanged({prevState:rd,state:ed}),this.emitter_.emit(Ab,{stream:t})))}},{key:"updateTrackState",value:function(e,t){var n=e===Yd;switch(t){case hu:this.trackState_.audio=n;break;case mu:this.trackState_.video=n;break;case vu:this.trackState_.auxiliary=n}this.log_.info("trackState updated: ".concat(JSON.stringify(this.trackState_)))}},{key:"onTrack",value:function(e){var t=e.streams[0],n=e.track;if(this.log_.info("ontrack() kind: ".concat(n.kind," id: ").concat(n.id," streamId: ").concat(t.id)),"unified-plan"===this.sdpSemantics_){var r=function(e){var t=Ky.parse(e),n={audio:[],video:[]};return t.media.forEach((function(e){if(e.ssrcs){var t=e.ssrcs[0].id>>16&255;if(e.type===hu)n.audio.push(Ku);else if(e.type==mu){var r=t===Gu?Ku:Ju;n.video.push(r)}}})),n}(this.peerConnection_.remoteDescription.sdp);if(n.kind===hu){if(0===r.audio.length||t.id!==Ku)return void this.log_.debug("skip this invalid audio track")}else if(-1===r.video.indexOf(t.id))return void this.log_.debug("skip this invalid video track: ".concat(n.id," msid: ").concat(t.id))}Uy.logEvent({eventType:"ontrack",kind:n.kind});var o=!1,i=this.remoteStreams_.get(t.id),a=t.id===Ku?Xu:Qu;if(Ch(i)&&((i=new Mk({type:a,userId:this.userId_,client:this.client_})).setConnection(this),this.remoteStreams_.set(t.id,i),o=!0),i.setMediaStream(t),n.kind===hu?i.updateAudioPlayingState(this.subscribeState_.audio):a===Xu?i.updateVideoPlayingState(this.subscribeState_.video||this.subscribeState_.smallVideo):i.updateVideoPlayingState(this.subscribeState_.auxiliary),(a!==Qu||this.trackState_.auxiliary)&&(a!==Xu||this.trackState_.audio||this.trackState_.video)){var s=this.client_.getSubscriptionManager();s&&s.hasAutoRecoveryFlag(this.userId_,a)||(o?this.emitter_.emit(Ob,{stream:i}):this.emitter_.emit(Db,{stream:i}))}}},{key:"addRRTRLine",value:function(e){var t=e.split("\r\n"),n=new Map;t.forEach((function(e,r){/^a=rtcp-fb:/.test(e)&&t[r+1]&&!/^a=rtcp-fb:/.test(t[r+1])&&n.set(r+1,e.match(/^a=rtcp-fb:\d+/)[0]+" rrtr")}));for(var r=_(n),o=0;o<r.length;o++){var i=b(r[o],2),a=i[0],s=i[1];t.splice(a+o,0,s)}return t.join("\r\n")}},{key:"addSPSDescription",value:function(e){var t=Jy(e);return t.media.forEach((function(e){e.type===mu&&e.fmtp.forEach((function(e){e.config+=";sps-pps-idr-in-keyframe=1"}))})),Gy(t)}},{key:"removeSDESDescription",value:function(e){var t=["urn:ietf:params:rtp-hdrext:sdes:mid","urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id","urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id"],n=Jy(e);return n.media.forEach((function(e){e.ext=e.ext.filter((function(e){return!t.includes(e.uri)}))})),Gy(n)}},{key:"isSubscriptionStateNotChanged",value:function(e,t){return e.getType()===Xu?!Ch(t.audio)&&!Ch(t.video)&&t.audio===this.subscribeState_.audio&&t.video===this.subscribeState_.video:e.getType()===Qu?!Ch(t.video)&&this.subscribeState_.auxiliary===t.video:void 0}},{key:"subscribe",value:(p=i(regeneratorRuntime.mark((function e(t,n){var r,o,i,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,r=n.emitEvent,o=void 0===r||r,i=t.getType(),!this.peerConnection_||this.peerConnection_.connectionState!==od&&this.peerConnection_.connectionState!==id){e.next=6;break}return e.next=6,this.waitForPeerConnectionConnected();case 6:if(!this.isSubscriptionStateNotChanged(t,n)){e.next=13;break}if(this.peerConnection_){e.next=11;break}return this.initialize(),e.next=11,this.connect();case 11:return o&&Ch(n.smallVideo)&&this.emitter_.emit(Nb,{stream:t,result:!0}),e.abrupt("return",t);case 13:if(i===Pu?(Ch(n.audio)||(this.subscribeState_.audio=n.audio),Ch(n.video)||(this.subscribeState_.video=n.video),Ch(n.smallVideo)||(this.subscribeState_.smallVideo=n.smallVideo),this.addEventInternal(this.subscribeState_.audio?iy:sy,this.subscribeState_.audio?"subscribe audio":"unsubscribe audio"),this.addEventInternal(this.subscribeState_.video?iy:sy,this.subscribeState_.video?"subscribe video":"unsubscribe video"),this.addEventInternal(this.subscribeState_.smallVideo?Oy:Ay,this.subscribeState_.smallVideo?"subscribe smallVideo":"unsubscribe smallVideo")):Ch(n.video)||(this.subscribeState_.auxiliary=n.video),this.log_.info("subscribe ".concat(i," stream with options ").concat(JSON.stringify(n)," current state: ").concat(JSON.stringify(this.subscribeState_))),!this.peerConnection_&&!this.isSDPExchanging_){e.next=23;break}return a=jd,this.isMainStreamSubscribed||this.isAuxStreamSubscribed||(a=Ud),e.next=20,this.sendSubscription(t,a);case 20:i===Pu?(t.updateAudioPlayingState(this.subscribeState_.audio),t.updateVideoPlayingState(this.subscribeState_.video||this.subscribeState_.smallVideo)):t.updateVideoPlayingState(this.subscribeState_.auxiliary),e.next=26;break;case 23:return this.initialize(),e.next=26,this.connect();case 26:return o&&Ch(n.smallVideo)&&this.emitter_.emit(Nb,{stream:t,result:!0}),e.abrupt("return",t);case 30:if(e.prev=30,e.t0=e.catch(0),!this.isStreamUnpublished(t)){e.next=34;break}throw new Jg({code:Kg.REMOTE_STREAM_NOT_EXIST,message:"remote user ".concat(this.userId_," unpublished stream")});case 34:throw e.t0;case 35:case"end":return e.stop()}}),e,this,[[0,30]])}))),function(e,t){return p.apply(this,arguments)})},{key:"unsubscribe",value:(c=i(regeneratorRuntime.mark((function e(t){var n,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((n=t.getType())!==Pu){e.next=10;break}if(this.isMainStreamSubscribed){e.next=5;break}return this.log_.info("main stream already unsubscribed"),e.abrupt("return",t);case 5:this.subscribeState_.audio=!1,this.subscribeState_.video=!1,this.subscribeState_.smallVideo=!1,e.next=14;break;case 10:if(this.isAuxStreamSubscribed){e.next=13;break}return this.log_.info("auxiliary stream already unsubscribed"),e.abrupt("return",t);case 13:this.subscribeState_.auxiliary=!1;case 14:return r=Ud,(n===Xu&&this.isAuxStreamSubscribed||n===Qu&&this.isMainStreamSubscribed)&&(r=jd),this.log_.info("unsubscribe ".concat(n," stream with ").concat(JSON.stringify(this.subscribeState_))),e.next=19,this.sendSubscription(t,r);case 19:return t.updateVideoPlayingState(!1),t.updateAudioPlayingState(!1),r===Ud&&((o=t.getMediaStream())&&o.getTracks().forEach((function(e){return o.removeTrack(e)})),this.closePeerConnection(),this.emitConnectionStateChangedEvent(ed)),this.addEventInternal(sy,"unsubscribe audio"),this.addEventInternal(ay,"unsubscribe video"),e.abrupt("return",t);case 25:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"sendSubscription",value:function(e,t){var n=this;return new Promise((function(r,o){var i={srcTinyId:n.tinyId_,srcUserId:n.userId_};t===jd&&(i={audio:n.subscribeState_.audio,bigVideo:n.subscribeState_.video,auxVideo:n.subscribeState_.auxiliary,smallVideo:n.subscribeState_.smallVideo,srcTinyId:n.tinyId_}),n.pendingSubscription_.length>0?n.log_.debug("queue the subscription for later handling"):n.doSendSubscription(i,e,t),n.pendingSubscription_.push({stream:e,type:t,data:i,callback:function(e){var i=e.code,a=e.message;if(0===i)r();else{var s=new Jg({code:i,message:vh({key:Rp,data:{type:t,message:a}})});n.log_.error(s),o(s)}}}),e.setInSubscriptionCycle(!0)}))}},{key:"doSendSubscription",value:function(e,t,n){var r=this;t&&this.pendingStreams_.push(t),this.log_.debug("doSendSubscription() send SUBSCRIBE command with data: ".concat(JSON.stringify(e))),n===jd?this.signalChannel_.send(Vg,e):n===Ud&&this.signalChannel_.send(jg,e),this.isSubscriptionPending_=!0,this.subscriptionTimeout_=setTimeout((function(){if(r.isSubscriptionPending_)if(r.log_.debug("subscription timeout"),r.subscriptionRetryCount_+=1,r.subscriptionRetryCount_<=3){r.log_.debug("resend subscription");var e=r.pendingSubscription_[0].data;r.doSendSubscription(e,t,n)}else r.log_.error(fh.SUBSCRIPTION_TIMEOUT),r.pendingSubscription_.shift(),r.pendingStreams_.shift(),r.isSubscriptionPending_=!1,r.subscriptionRetryCount_=0,r.emitter_.emit(Mb,new Jg({code:Kg.SUBSCRIPTION_TIMEOUT,message:vh({key:Pp})}))}),5e3)}},{key:"onSubscribeChangeResult",value:function(e){var t=e&&e.data||{},n=t.code,r=t.message,o=t.data.srcTinyId;if(this.hitTest(o)){var i=this.pendingSubscription_[0];i&&i.type===jd&&i.callback({code:n,message:r}),this.sendNextSubscription()}}},{key:"onUnsubscribeResult",value:function(e){var t=e&&e.data||{},n=t.code,r=t.message,o=t.data.srcTinyId;if(this.hitTest(o)){var i=this.pendingSubscription_[0];i&&i.type===Ud&&i.callback({code:n,message:r}),this.sendNextSubscription()}}},{key:"connect",value:(s=i(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.exchangeSDP();case 3:return e.next=5,this.waitForPeerConnectionConnected();case 5:e.next=11;break;case 7:throw e.prev=7,e.t0=e.catch(0),this.closePeerConnection(!0),e.t0;case 11:case"end":return e.stop()}}),e,this,[[0,7]])}))),function(){return s.apply(this,arguments)})},{key:"exchangeSDP",value:(o=i(regeneratorRuntime.mark((function e(){var t,n,r,o,i,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,this.isSDPExchanging_=!0,e.next=4,this.createOffer();case 4:return this.log_.info("createOffer success, sending offer to remote server"),t=this.peerConnection_.localDescription,n=t.type,r=t.sdp,o={type:n,sdp:r,srcUserId:this.userId_,srcTinyId:this.tinyId_,audio:this.subscribeState_.audio,bigVideo:this.subscribeState_.video,auxVideo:this.subscribeState_.auxiliary,smallVideo:this.subscribeState_.smallVideo},Jm.emit(Fv,{client:this.client_,connection:this,userId:this.userId_,tinyId:this.tinyId_,role:Zu,subscribeState:this.subscribeState_,trackState:this.trackState_}),e.next=10,this.signalChannel_.sendWaitForResponse({command:Ug,commandDesc:"exchange sdp",data:o,responseCommand:Pg.SUBSCRIBE_RESULT});case 10:if(i=e.sent,this.peerConnection_){e.next=15;break}throw a=this.genRemoteStreamNotExistError(),this.log_.warn(a),a;case 15:return e.next=17,this.onSubscribeResult(i);case 17:this.isSDPExchanging_=!1,e.next=24;break;case 20:throw e.prev=20,e.t0=e.catch(0),this.isSDPExchanging_=!1,e.t0;case 24:case"end":return e.stop()}}),e,this,[[0,20]])}))),function(){return o.apply(this,arguments)})},{key:"createOffer",value:(r=i(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={voiceActivityDetection:!1},"RTCPeerConnection"in window&&"addTransceiver"in window.RTCPeerConnection.prototype&&"unified-plan"===this.sdpSemantics_?(this.peerConnection_.addTransceiver(hu,{direction:"recvonly"}),this.peerConnection_.addTransceiver(mu,{direction:"recvonly"}),this.peerConnection_.addTransceiver(mu,{direction:"recvonly"})):(t.offerToReceiveAudio=!0,t.offerToReceiveVideo=!0),e.next=4,this.peerConnection_.createOffer(t);case 4:return n=e.sent,e.next=7,db();case 7:return e.sent.isH264DecodeSupported||(this.log_.warn("remove h264 desc from sdp"),n.sdp=Qy(n.sdp)),n.sdp=this.addRRTRLine(n.sdp),n.sdp=this.addSPSDescription(n.sdp),n.sdp=Xy(n.sdp),"unified-plan"===this.sdpSemantics_&&(n.sdp=this.removeSDESDescription(n.sdp)),e.next=16,this.peerConnection_.setLocalDescription(n);case 16:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"onSubscribeResult",value:(n=i(regeneratorRuntime.mark((function e(t){var n,r,o,i,a,s,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t&&t.data||{},r=n.code,o=n.message,i=void 0===o?"":o,a=t&&t.data&&t.data.data||{},s=a.type,l=a.sdp,77393!==r){e.next=5;break}throw this.log_.error(fh.NOT_SUPPORTED_H264DECODE),new Jg({code:Kg.NOT_SUPPORTED_H264,message:vh({key:ah})});case 5:if(e.prev=5,0===r){e.next=8;break}throw new Jg({code:r,message:vh({key:Dp,data:{errMsg:i}})});case 8:return this.log_.debug("accept remote answer: "+l),e.next=11,this.peerConnection_.setRemoteDescription({type:s,sdp:l});case 11:this.updateSSRC(l),e.next=18;break;case 14:throw e.prev=14,e.t0=e.catch(5),this.log_.error(e.t0),e.t0;case 18:case"end":return e.stop()}}),e,this,[[5,14]])}))),function(e){return n.apply(this,arguments)})},{key:"updateSSRC",value:function(e){var t=this;try{Jy(e).media.forEach((function(e){if(e.type===hu){var n=e.ssrcs.find((function(e){return e.value.includes(Ku)}));n&&(t.ssrc_.audio=n.id)}else{var r=e.ssrcs.find((function(e){return e.value.includes(Ku)})),o=e.ssrcs.find((function(e){return e.value.includes(Ju)}));r&&(t.ssrc_.video=r.id),o&&(t.ssrc_.auxiliary=o.id)}}))}catch(KS){}}},{key:"sendNextSubscription",value:function(){void 0!==this.pendingSubscription_.shift()&&(this.subscriptionRetryCount_=0,this.isSubscriptionPending_=!1,-1!==this.subscriptionTimeout_&&(clearTimeout(this.subscriptionTimeout_),this.subscriptionTimeout_=-1));var e=this.pendingStreams_.shift();if(e&&(this.log_.debug("mark ".concat(e.getType()," stream exit subscription cycle")),e.setInSubscriptionCycle(!1)),this.pendingSubscription_.length>0){var t=this.pendingSubscription_[0];this.log_.info("schedule a pending subscription"),this.doSendSubscription(t.data,t.stream,t.type)}}},{key:"setRemoteStream",value:function(e,t){this.remoteStreams_.set(e,t)}},{key:"getSubscribeState",value:function(){return this.subscribeState_}},{key:"getTrackState",value:function(){return this.trackState_}},{key:"getSSRC",value:function(){return this.ssrc_}},{key:"getMainStream",value:function(){return this.remoteStreams_.get(Ku)}},{key:"getAuxStream",value:function(){return this.remoteStreams_.get(Ju)}},{key:"getMainStreamVideoTrackId",value:function(){var e=this.getMainStream();if(e){var t=e.getVideoTrack();if(t)return t.id}return""}},{key:"getAuxStreamVideoTrackId",value:function(){var e=this.getAuxStream();if(e){var t=e.getVideoTrack();if(t)return t.id}return""}},{key:"reconnect",value:(t=i(regeneratorRuntime.mark((function e(){var t,n,r=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(-1===this.reconnectionTimer_){e.next=3;break}return this.log_.warn("reconnect() downlink is reconnecting, ignore current reconnection"),e.abrupt("return");case 3:if(!(this.reconnectionCount_>=30)){e.next=12;break}return this.log_.warn("SDK has tried reconnect downlink [".concat(this.userId_,"] for ").concat(30," times, but all failed, please check your network")),this.stopReconnection(),t=new Jg({code:Kg.DOWNLINK_RECONNECTION_FAILED,message:vh({key:Ap})}),Uy.logFailedEvent({userId:this.client_.getUserId(),eventType:Cd,error:t}),this.addEventInternal(Py,"downlink-connection reconnect fail"),this.emitConnectionStateChangedEvent(ed),this.emitter_.emit(Mb,t),e.abrupt("return");case 12:if(this.signalChannel_.getCurrentState()===Tg){e.next=16;break}return this.log_.warn("reconnect() signal channel is not connected, suspend reconnection until signal is connected"),this.signalChannel_.once(kg,this.reconnect,this),e.abrupt("return");case 16:if(this.reconnectionCount_++,this.log_.warn("reconnect() try to reconnect downlink [".concat(this.reconnectionCount_,"/").concat(30,"]")),n=kh(this.reconnectionCount_),this.reconnectionTimer_=setTimeout((function(){r.log_.warn("reconnect() downlink [".concat(r.userId_,"] reconnect timeout(").concat(n/1e3,"s), try again")),r.clearReconnectionTimer(),r.reconnect()}),n),!(this.isSDPExchanging_||this.peerConnection_&&this.peerConnection_.connectionState===id)){e.next=22;break}return e.abrupt("return");case 22:return e.prev=22,this.closePeerConnection(),this.initialize(),e.next=27,this.connect();case 27:this.stopReconnection(),this.log_.warn("reconnect() downlink reconnect successfully"),Uy.logSuccessEvent({userId:this.client_.getUserId(),eventType:Cd}),this.addEventInternal(Ry,"downlink-connection reconnect success"),this.recoverSubscription(),e.next=36;break;case 34:e.prev=34,e.t0=e.catch(22);case 36:case"end":return e.stop()}}),e,this,[[22,34]])}))),function(){return t.apply(this,arguments)})},{key:"recoverSubscription",value:function(){var e=this,t=this.client_.getSubscriptionManager();t&&_(this.remoteStreams_.values()).forEach((function(n){t.hasAutoRecoveryFlag(e.userId_,n.getType())&&t.recover(n)}))}},{key:"getIsReconnecting",value:function(){return this.isReconnecting_}},{key:"getSubscribedMainStream",value:function(){var e=null;return this.isMainStreamSubscribed&&(e=this.remoteStreams_.get(Ku)),e}},{key:"clearReconnectionTimer",value:function(){-1!==this.reconnectionTimer_&&(clearTimeout(this.reconnectionTimer_),this.reconnectionTimer_=-1)}},{key:"startReconnection",value:function(){var e=this.client_.getSubscriptionManager();if(e){var t,n=S(this.remoteStreams_.values());try{for(n.s();!(t=n.n()).done;){var r=t.value,o=r.getType();(o===Xu&&(this.trackState_.audio||this.trackState_.video)||o===Qu&&this.trackState_.auxiliary)&&e.setAutoRecoveryFlag(this.userId_,r.getType())}}catch(a){n.e(a)}finally{n.f()}}y(d(h.prototype),"startReconnection",this).call(this)}},{key:"getCurrentState",value:function(){return this.currentState_}}]),h}(Ck),qk=function(e){return function(t,n,r,o){re(n);var i=le(t),a=V(i),s=st(i),l=e?s-1:0,c=e?-1:1;if(r<2)for(;;){if(l in a){o=a[l],l+=c;break}if(l+=c,e?l<0:s<=l)throw TypeError("Reduce of empty array with no initial value")}for(;e?l>=0:s>l;l+=c)l in a&&(o=n(o,a[l],l,i));return o}},Zk={left:qk(!1),right:qk(!0)}.left,Yk=Qo("reduce");It({target:"Array",proto:!0,forced:!Yk||!Ls&&X>79&&X<83},{reduce:function(e){return Zk(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}});var Kk=function(){function e(){a(this,e),this.startTime=0,this.endTime=0,this.start()}return l(e,[{key:"start",value:function(){0===this.startTime&&(this.startTime=Ah())}},{key:"stop",value:function(){0===this.endTime&&(this.endTime=Ah())}},{key:"getDuration",value:function(){return 0===this.endTime?Ah()-this.startTime:this.endTime-this.startTime}}]),e}(),Jk=function(){function e(t){a(this,e),this.client_=t.client,this.intervalId_=-1,this.statsCalculator_=t.stats,this.prevStats_=null,this.renderFreezeMap_=new Map,this.remoteStreamMap_=new Map,this.dataFreezeMap_=new Map,this.monitorFreezeData_=new Map}var t,n,r;return l(e,[{key:"installEvents",value:function(){Jm.on(Av,this.handlePlayVideoStart,this),Jm.on(Ev,this.onVideoTrackMuted,this),Jm.on(Rv,this.onVideoTrackUnmuted,this),Jm.on(Sv,this.handleStreamStopped,this),Jm.on(wv,this.handleStreamStopped,this),Jm.on(mv,this.handleVideoPlaying,this)}},{key:"uninstallEvents",value:function(){Jm.off(Av,this.handlePlayVideoStart,this),Jm.off(Ev,this.onVideoTrackMuted,this),Jm.off(Rv,this.onVideoTrackUnmuted,this),Jm.off(Sv,this.handleStreamStopped,this),Jm.off(wv,this.handleStreamStopped,this),Jm.off(mv,this.handleVideoPlaying,this)}},{key:"start",value:function(){var e=this;-1===this.intervalId_&&(this.installEvents(),this.intervalId_=nb.setInterval(i(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.detectFPS();case 3:t.next=7;break;case 5:t.prev=5,t.t0=t.catch(0);case 7:case"end":return t.stop()}}),t,null,[[0,5]])}))),1e3))}},{key:"stop",value:function(){-1!==this.intervalId_&&(this.uninstallEvents(),nb.clearInterval(this.intervalId_),this.intervalId_=-1,this.renderFreezeMap_.clear(),this.dataFreezeMap_.clear(),this.remoteStreamMap_.clear())}},{key:"onVideoTrackMuted",value:function(e){var t=e.stream;if(t.getClient()===this.client_&&t.isRemote()){var n=t.userId_,r=t.type_,o="".concat(n,"_").concat(r),i=this.dataFreezeMap_.get(o),a=new Kk;i?i.durationItemList.push(a):this.dataFreezeMap_.set(o,{userId:n,type:r,durationItemList:[a],isFreezing:function(){var e=this.durationItemList[this.durationItemList.length-1];return e&&0===e.endTime}})}}},{key:"onVideoTrackUnmuted",value:function(e){var t=e.stream;if(t.getClient()===this.client_&&t.isRemote()){var n=t.userId_,r=t.type_,o="".concat(n,"_").concat(r);this.stopDataFreeze({key:o,userId:n,type:r})}}},{key:"handleStreamStopped",value:function(e){var t=e.client,n=e.stream;if(t===this.client_){var r=n.getUserId(),o=n.getType(),i="".concat(r,"_").concat(o);this.stopDataFreeze({key:i,userId:r,type:o})}}},{key:"stopDataFreeze",value:function(e){var t=e.key,n=e.userId,r=e.type,o=this.dataFreezeMap_.get(t);if(o&&o.isFreezing()){var i=o.durationItemList[o.durationItemList.length-1];i.stop();var a=i.getDuration();a>500?(Uy.logEvent({eventType:"videoFrozenCount",delta:a}),this.monitorFreezeData_.set(t,{userId:n,type:r,duration:a})):o.durationItemList.pop()}}},{key:"getTotalDuration",value:function(e){return e.reduce((function(e,t){var n=t.getDuration();return e+Math.min(n,5e3)}),0)}},{key:"getStats",value:(r=i(regeneratorRuntime.mark((function e(){var t,n,r,o,i,a,s,l,c,u,d;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=this.client_.getConnections(),n={},r=S(t),e.prev=3,r.s();case 5:if((o=r.n()).done){e.next=20;break}if(i=b(o.value,2),a=i[0],(s=i[1]).getPeerConnection()){e.next=9;break}return e.abrupt("continue",18);case 9:return l=s.getSubscribeState(),c=s.getTrackState(),e.next=13,this.statsCalculator_.getReceiverStats(s);case 13:u=e.sent,(d={userId:u.userId,tinyId:a,hasVideo:c.video&&l.video,hasAuxiliary:c.auxiliary&&l.auxiliary,video:{framesDecoded:0},auxiliary:{framesDecoded:0}}).hasVideo&&(d.video.framesDecoded=u.video.framesDecoded),d.hasAuxiliary&&(d.auxiliary.framesDecoded=u.auxiliary.framesDecoded),n[u.userId]=d;case 18:e.next=5;break;case 20:e.next=25;break;case 22:e.prev=22,e.t0=e.catch(3),r.e(e.t0);case 25:return e.prev=25,r.f(),e.finish(25);case 28:return e.abrupt("return",n);case 29:case"end":return e.stop()}}),e,this,[[3,22,25,28]])}))),function(){return r.apply(this,arguments)})},{key:"detectFPS",value:(n=i(regeneratorRuntime.mark((function e(){var t,n,r,o,i,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getStats();case 2:if(t=e.sent,this.prevStats_){e.next=6;break}return this.prevStats_=t,e.abrupt("return");case 6:e.t0=regeneratorRuntime.keys(t);case 7:if((e.t1=e.t0()).done){e.next=17;break}if(n=e.t1.value,this.prevStats_[n]){e.next=11;break}return e.abrupt("continue",7);case 11:r=t[n].tinyId,o=this.client_.getMutedStates(),t[n].hasVideo&&this.prevStats_[n].hasVideo&&o.has(r)&&!o.get(r).videoMuted&&(i=t[n].video.framesDecoded-this.prevStats_[n].video.framesDecoded,this.handleRenderFreeze({userId:n,type:Xu,fps:i})),t[n].hasAuxiliary&&this.prevStats_[n].hasAuxiliary&&(a=t[n].auxiliary.framesDecoded-this.prevStats_[n].auxiliary.framesDecoded,this.handleRenderFreeze({userId:n,type:Qu,fps:a})),e.next=7;break;case 17:this.prevStats_=t;case 18:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"handleRenderFreeze",value:(t=i(regeneratorRuntime.mark((function e(t){var n,r,o,i,a,s,l,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.userId,r=t.fps,o=t.type,i="".concat(n,"_").concat(o),a=this.renderFreezeMap_.get(i),r<=2?(s=Ah(),a&&!a.isFreeze&&(a.freezeTimeline.push({startTime:s,endTime:void 0}),a.isFreeze=!0),a||this.renderFreezeMap_.set(i,{userId:n,type:o,isFreeze:!0,freezeTimeline:[{startTime:s,endTime:void 0}],renderFreezeTotal:0})):a&&a.isFreeze&&(a.isFreeze=!1,(l=a.freezeTimeline.pop()).endTime=Ah(),c=l.endTime-l.startTime,a.freezeTimeline.push(l),a.renderFreezeTotal+=Math.min(5e3,c));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"handlePlayVideoStart",value:function(e){var t=e.stream;if(t.getClient()===this.client_&&t.isRemote()&&t.hasVideo()){var n="".concat(t.getUserId(),"_").concat(t.getType());this.remoteStreamMap_.has(n)?this.remoteStreamMap_.get(n).remoteStream=t:this.remoteStreamMap_.set(n,{isPlayingFired:!1,remoteStream:t})}}},{key:"handleVideoPlaying",value:function(e){var t=e.stream;if(t.isRemote()&&t.getClient()===this.client_){var n="".concat(t.getUserId(),"_").concat(t.getType());this.remoteStreamMap_.has(n)&&(this.remoteStreamMap_.get(n).isPlayingFired=!0)}}},{key:"getDataFreezeDuration",value:function(e){var t={dataFreeze:0,count:0},n=this.dataFreezeMap_.get(e);if(n){if(n.isFreezing()){var r=n.durationItemList[n.durationItemList.length-1];r.stop(),r.getDuration()<500&&n.durationItemList.pop()}t.dataFreeze=this.getTotalDuration(n.durationItemList),t.count=n.durationItemList.length}return t}},{key:"getRenderFreezeDuration",value:function(e){var t=this.renderFreezeMap_.get(e),n=0,r=0;if(t)if(t.isFreeze){var o=Ah()-t.freezeTimeline[t.freezeTimeline.length-1].startTime;n=t.renderFreezeTotal+Math.min(o,5e3),r=t.freezeTimeline.length}else n=t.renderFreezeTotal;return{renderFreeze:n,count:r}}},{key:"getMonitorFreeze",value:function(){return this.monitorFreezeData_}},{key:"isBlackStream",value:function(e){return!!this.remoteStreamMap_.has(e)&&!this.remoteStreamMap_.get(e).isPlayingFired}},{key:"resetMonitor",value:function(){this.monitorFreezeData_.clear()}}]),e}(),Gk=function e(t){a(this,e),this.userId=t.userId,this.tinyId=t.tinyId,this.role=t.role===Zu?"anchor":"audience"},Xk=I((function(e){!function(t){function n(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function r(e,t,r,o,i,a){return n((s=n(n(t,e),n(o,a)))<<(l=i)|s>>>32-l,r);var s,l}function o(e,t,n,o,i,a,s){return r(t&n|~t&o,e,t,i,a,s)}function i(e,t,n,o,i,a,s){return r(t&o|n&~o,e,t,i,a,s)}function a(e,t,n,o,i,a,s){return r(t^n^o,e,t,i,a,s)}function s(e,t,n,o,i,a,s){return r(n^(t|~o),e,t,i,a,s)}function l(e,t){var r,l,c,u,d;e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;var p=1732584193,f=-271733879,h=-1732584194,m=271733878;for(r=0;r<e.length;r+=16)l=p,c=f,u=h,d=m,p=o(p,f,h,m,e[r],7,-680876936),m=o(m,p,f,h,e[r+1],12,-389564586),h=o(h,m,p,f,e[r+2],17,606105819),f=o(f,h,m,p,e[r+3],22,-1044525330),p=o(p,f,h,m,e[r+4],7,-176418897),m=o(m,p,f,h,e[r+5],12,1200080426),h=o(h,m,p,f,e[r+6],17,-1473231341),f=o(f,h,m,p,e[r+7],22,-45705983),p=o(p,f,h,m,e[r+8],7,1770035416),m=o(m,p,f,h,e[r+9],12,-1958414417),h=o(h,m,p,f,e[r+10],17,-42063),f=o(f,h,m,p,e[r+11],22,-1990404162),p=o(p,f,h,m,e[r+12],7,1804603682),m=o(m,p,f,h,e[r+13],12,-40341101),h=o(h,m,p,f,e[r+14],17,-1502002290),p=i(p,f=o(f,h,m,p,e[r+15],22,1236535329),h,m,e[r+1],5,-165796510),m=i(m,p,f,h,e[r+6],9,-1069501632),h=i(h,m,p,f,e[r+11],14,643717713),f=i(f,h,m,p,e[r],20,-373897302),p=i(p,f,h,m,e[r+5],5,-701558691),m=i(m,p,f,h,e[r+10],9,38016083),h=i(h,m,p,f,e[r+15],14,-660478335),f=i(f,h,m,p,e[r+4],20,-405537848),p=i(p,f,h,m,e[r+9],5,568446438),m=i(m,p,f,h,e[r+14],9,-1019803690),h=i(h,m,p,f,e[r+3],14,-187363961),f=i(f,h,m,p,e[r+8],20,1163531501),p=i(p,f,h,m,e[r+13],5,-1444681467),m=i(m,p,f,h,e[r+2],9,-51403784),h=i(h,m,p,f,e[r+7],14,1735328473),p=a(p,f=i(f,h,m,p,e[r+12],20,-1926607734),h,m,e[r+5],4,-378558),m=a(m,p,f,h,e[r+8],11,-2022574463),h=a(h,m,p,f,e[r+11],16,1839030562),f=a(f,h,m,p,e[r+14],23,-35309556),p=a(p,f,h,m,e[r+1],4,-1530992060),m=a(m,p,f,h,e[r+4],11,1272893353),h=a(h,m,p,f,e[r+7],16,-155497632),f=a(f,h,m,p,e[r+10],23,-1094730640),p=a(p,f,h,m,e[r+13],4,681279174),m=a(m,p,f,h,e[r],11,-358537222),h=a(h,m,p,f,e[r+3],16,-722521979),f=a(f,h,m,p,e[r+6],23,76029189),p=a(p,f,h,m,e[r+9],4,-640364487),m=a(m,p,f,h,e[r+12],11,-421815835),h=a(h,m,p,f,e[r+15],16,530742520),p=s(p,f=a(f,h,m,p,e[r+2],23,-995338651),h,m,e[r],6,-198630844),m=s(m,p,f,h,e[r+7],10,1126891415),h=s(h,m,p,f,e[r+14],15,-1416354905),f=s(f,h,m,p,e[r+5],21,-57434055),p=s(p,f,h,m,e[r+12],6,1700485571),m=s(m,p,f,h,e[r+3],10,-1894986606),h=s(h,m,p,f,e[r+10],15,-1051523),f=s(f,h,m,p,e[r+1],21,-2054922799),p=s(p,f,h,m,e[r+8],6,1873313359),m=s(m,p,f,h,e[r+15],10,-30611744),h=s(h,m,p,f,e[r+6],15,-1560198380),f=s(f,h,m,p,e[r+13],21,1309151649),p=s(p,f,h,m,e[r+4],6,-145523070),m=s(m,p,f,h,e[r+11],10,-1120210379),h=s(h,m,p,f,e[r+2],15,718787259),f=s(f,h,m,p,e[r+9],21,-343485551),p=n(p,l),f=n(f,c),h=n(h,u),m=n(m,d);return[p,f,h,m]}function c(e){var t,n="",r=32*e.length;for(t=0;t<r;t+=8)n+=String.fromCharCode(e[t>>5]>>>t%32&255);return n}function u(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t<n.length;t+=1)n[t]=0;var r=8*e.length;for(t=0;t<r;t+=8)n[t>>5]|=(255&e.charCodeAt(t/8))<<t%32;return n}function d(e){var t,n,r="";for(n=0;n<e.length;n+=1)t=e.charCodeAt(n),r+="0123456789abcdef".charAt(t>>>4&15)+"0123456789abcdef".charAt(15&t);return r}function p(e){return unescape(encodeURIComponent(e))}function f(e){return function(e){return c(l(u(e),8*e.length))}(p(e))}function h(e,t){return function(e,t){var n,r,o=u(e),i=[],a=[];for(i[15]=a[15]=void 0,o.length>16&&(o=l(o,8*e.length)),n=0;n<16;n+=1)i[n]=909522486^o[n],a[n]=1549556828^o[n];return r=l(i.concat(u(t)),512+8*t.length),c(l(a.concat(r),640))}(p(e),p(t))}function m(e,t,n){return t?n?h(t,e):d(h(t,e)):n?f(e):d(f(e))}e.exports?e.exports=m:t.md5=m}(x)})),Qk=function(){function e(t){a(this,e),this.client_=t.client,this.signalChannel_=t.signalChannel,this.log_=Wv.createLogger({id:"mix|"+this.client_.getUserId(),userId:t.client.getUserId(),sdkAppId:t.client.getSDKAppId()}),this.isMixing_=!1,this.config_=null,this.data_=null,this.remoteStreamMap_=new Map,this.installEvents()}var t,n,r,o;return l(e,[{key:"isPresetLayoutMode",get:function(){return this.config_&&this.config_.mode===Vd.PRESET_LAYOUT}},{key:"installEvents",value:function(){Jm.on(_v,this.onStreamSubscribed,this),Jm.on(wv,this.onStreamUnsubscribed,this),this.client_.on("stream-removed",this.onStreamRemoved,this)}},{key:"uninstallEvents",value:function(){Jm.off(_v,this.onStreamSubscribed,this),Jm.off(wv,this.onStreamUnsubscribed,this),this.client_.off("stream-removed",this.onStreamRemoved,this)}},{key:"stop",value:function(){this.uninstallEvents()}},{key:"onStreamSubscribed",value:function(e){var t=e.client,n=e.stream;t===this.client_&&(this.remoteStreamMap_.set(n.getId(),{remoteStream:n,isUsed:!1}),this.isMixing_&&this.hasAvailablePlaceHolder()&&this.startMixTranscode(this.config_))}},{key:"onStreamUnsubscribed",value:function(e){var t=e.client,n=e.stream;t===this.client_&&this.onStreamRemoved({stream:n})}},{key:"onStreamRemoved",value:function(e){var t=e.stream;if(this.remoteStreamMap_.has(t.getId())){var n=this.remoteStreamMap_.get(t.getId()).isUsed;this.remoteStreamMap_.delete(t.getId()),this.isMixing_&&this.isPresetLayoutMode&&n&&this.startMixTranscode(this.config_)}}},{key:"startMixTranscode",value:(o=i(regeneratorRuntime.mark((function e(t){var n,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,this.resetIsUsedFlag(),this.config_=t,n=this.getInputParam(t,this.remoteStreamMap_),r=this.getOutputParam(t),o=this.getOutputSessionId({config:t,roomId:this.client_.getRoomId(),userId:this.client_.getUserId()}),!this.isMixing_||!this.data_||o===this.data_.outputSessionId){e.next=10;break}return this.log_.info("startMixTranscode() streamId changed, stop mixing before start"),e.next=10,this.doStopMixTranscode();case 10:return e.next=12,this.doStartMixTranscode({outputSessionId:o,inputParam:n,outputParam:r});case 12:e.next=18;break;case 14:throw e.prev=14,e.t0=e.catch(0),this.resetIsUsedFlag(),e.t0;case 18:case"end":return e.stop()}}),e,this,[[0,14]])}))),function(e){return o.apply(this,arguments)})},{key:"doStartMixTranscode",value:(r=i(regeneratorRuntime.mark((function e(t){var n,r,o,i,a,s,l,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.outputSessionId,r=t.inputParam,o=t.outputParam,i={roomId:String(this.client_.getRoomId()),mcuRequestTime:Date.now(),outputSessionId:n,inputParam:r,outputParam:o},this.data_=i,this.log_.info("startMixTranscode: ".concat(JSON.stringify(i))),this.isMixing_=!0,e.prev=5,e.next=8,this.signalChannel_.sendWaitForResponse({command:Wg,data:i,timeout:5e3,responseCommand:Pg.START_MIX_TRANSCODE_RES,commandDesc:"startMixTranscode"});case 8:if(a=e.sent,s=a.data,l=s.code,c=s.message,0===l){e.next=15;break}throw-102083===l&&(c="Please enable relayed-push in ".concat("https://console.cloud.tencent.com/trtc"," and try later, refer to ").concat(fp,"tutorial-26-advanced-publish-cdn-stream.html")),this.log_.error("startMixTranscode failed, errCode: ".concat(l," errMsg: ").concat(c)),this.isMixing_=!1,new Jg({code:Kg.START_MIX_TRANSCODE_FAILED,message:vh({key:Vf,data:{message:c},link:{className:"Client",fnName:"startMixTranscode"}})});case 15:e.next=21;break;case 17:throw e.prev=17,e.t0=e.catch(5),this.isMixing_=!1,e.t0;case 21:case"end":return e.stop()}}),e,this,[[5,17]])}))),function(e){return r.apply(this,arguments)})},{key:"stopMixTranscode",value:(n=i(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isMixing_){e.next=2;break}throw new Jg({code:Kg.INVALID_OPERATION,message:vh({key:Bf})});case 2:return e.next=4,this.doStopMixTranscode();case 4:this.resetIsUsedFlag();case 5:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"doStopMixTranscode",value:(t=i(regeneratorRuntime.mark((function e(){var t,n,r,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={mcuRequestTime:Date.now(),outputSessionId:this.data_.outputSessionId,streamType:this.data_.outputParam.streamType},this.log_.info("stopMixTranscode: ".concat(JSON.stringify(t))),e.next=4,this.signalChannel_.sendWaitForResponse({command:qg,data:t,timeout:5e3,responseCommand:Pg.STOP_MIX_TRANSCODE_RES,commandDesc:"stopMixTranscode"});case 4:if(n=e.sent,r=n.data,o=r.code,i=r.message,0!==o){e.next=10;break}this.isMixing_=!1,e.next=12;break;case 10:throw this.log_.error("stopMixTranscode failed, errCode: ".concat(o," errMsg: ").concat(i)),new Jg({code:Kg.STOP_MIX_TRANSCODE_FAILED,message:vh({key:Hf,data:{message:i},link:{className:"Client",fnName:"stopMixTranscode"}})});case 12:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"getOutputSessionId",value:function(e){var t=e.config,n=e.userId,r=e.roomId;return xh(t.streamId)&&t.streamId.length>0?t.streamId:Xk("".concat(r,"_").concat(n,"_main"))}},{key:"getInputParam",value:function(e,t){var n=this,r=e.mixUsers.map((function(e){return{userId:e.userId,roomId:String(e.roomId||n.client_.getRoomId()),width:e.width||0,height:e.height||0,locationX:e.locationX||0,locationY:e.locationY||0,zOrder:e.zOrder,streamType:Ch(e.streamType)||e.streamType!==Qu?0:1,inputType:e.pureAudio?Bd.IT_PURE_AUDIO:Bd.IT_AUDIO_VIDEO}}));return e.mode===Vd.PRESET_LAYOUT&&(r.forEach((function(e){if(e.userId===Hd.REMOTE){var n=_(t.values()).find((function(e){return!e.isUsed}));n&&(e.userId=n.remoteStream.getUserId(),e.streamType=n.remoteStream.getType()===Qu?1:0,n.isUsed=!0)}})),r=r.filter((function(e){return e.userId!==Hd.REMOTE}))),r}},{key:"getOutputParam",value:function(e){var t=e.streamId||"";return{streamId:t,streamType:t.length>0?1:0,width:Ch(e.videoWidth)?640:e.videoWidth,height:Ch(e.videoHeight)?480:e.videoHeight,videoBps:e.videoBitrate||0,fps:e.videoFramerate||15,gop:e.videoGOP||2,audioSampleRate:e.audioSampleRate||48e3,audioBps:e.audioBitrate||64,audioChannels:e.audioChannels||1,backgroundColor:e.backgroundColor||0,backgroundImg:e.backgroundImage||"",extraInfo:"",videoCodec:2,audioCodec:0}}},{key:"hasAvailablePlaceHolder",value:function(){return!!this.isPresetLayoutMode&&this.data_.inputParam.length!==this.config_.mixUsers.length}},{key:"resetIsUsedFlag",value:function(){this.remoteStreamMap_.forEach((function(e){return e.isUsed=!1}))}}]),e}(),eS=function(){function e(t){a(this,e),this.client_=t.client,this.signalChannel_=t.signalChannel,this.isPublishingTencentCDN_=!1,this.publishTencentStreamRetryCount_=0,this.publishGivenCDNData_=null,this.isPublishingGivenCDN_=!1}var t,n,r,o,s;return l(e,[{key:"getIsPublishingTencentCDN",value:function(){return this.isPublishingTencentCDN_}},{key:"getIsPublishingGivenCDN",value:function(){return this.isPublishingGivenCDN_}},{key:"startPublishTencentCDN",value:(s=i(regeneratorRuntime.mark((function e(t){var n,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=t.streamId)||(r="".concat(this.client_.getRoomId(),"_").concat(this.client_.getUserId(),"_main"),/^[A-Za-z\d_-]*$/.test(r)||(r=Xk(r)),n="".concat(this.client_.getSDKAppId(),"_").concat(r)),o={requestTime:Date.now(),sessionId:Xk("".concat(this.client_.getRoomId(),"_").concat(this.client_.getUserId(),"_main")),streamId:n,streamType:0},this.isPublishingTencentCDN_=!0,this.publishTencentStreamRetryCount_=0,e.next=7,this.doStartPublishTencentCDN(o);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return s.apply(this,arguments)})},{key:"doStartPublishTencentCDN",value:(o=i(regeneratorRuntime.mark((function e(t){var n,r,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,Wv.info("startPublishTencentCDN: "+JSON.stringify(t)),e.next=4,this.signalChannel_.sendWaitForResponseWithRetry({command:Hg,data:t,timeout:2e3,responseCommand:Pg.START_PUBLISH_TENCENT_CDN_RES,commandDesc:"startPublishCDNStream",retries:2});case 4:if(n=e.sent,r=n.data,o=r.code,i=r.message,0===o){e.next=11;break}throw this.isPublishingTencentCDN_=!1,-102083===o&&(i="Please enable relayed-push in ".concat("https://console.cloud.tencent.com/trtc"," and try later, refer to ").concat(fp,"tutorial-26-advanced-publish-cdn-stream.html")),Wv.error("startPublishTencentCDN failed, errCode: ".concat(o,", errMsg: ").concat(i)),new Jg({code:Kg.START_PUBLISH_CDN_FAILED,message:vh({key:pf,data:{message:i},link:{className:"Client",fnName:"startPublishCDNStream"}})});case 11:e.next=17;break;case 13:throw e.prev=13,e.t0=e.catch(0),this.isPublishingTencentCDN_=!1,e.t0;case 17:case"end":return e.stop()}}),e,this,[[0,13]])}))),function(e){return o.apply(this,arguments)})},{key:"stopPublishTencentCDN",value:(r=i(regeneratorRuntime.mark((function e(){var t,n,r,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={requestTime:Date.now(),sessionId:Xk("".concat(this.client_.getRoomId(),"_").concat(this.client_.getUserId(),"_main"))},Wv.info("stopPublishTencentCDN: "+JSON.stringify(t)),e.next=4,this.signalChannel_.sendWaitForResponse({command:Bg,data:t,timeout:5e3,responseCommand:Pg.STOP_PUBLISH_TENCENT_CDN_RES,commandDesc:"stopPublishCDNStream"});case 4:if(n=e.sent,r=n.data,o=r.code,i=r.message,0!==o){e.next=10;break}this.isPublishingTencentCDN_=!1,e.next=17;break;case 10:if(-102069!==o){e.next=15;break}Wv.warn("stopPublishTencentCDN failed, can not stopPublishTencentCDN in auto relayed-push mode"),this.isPublishingTencentCDN_=!1,e.next=17;break;case 15:throw Wv.error("stopPublishTencentCDN failed, errCode: ".concat(o," errMsg: ").concat(i)),new Jg({code:Kg.STOP_PUBLISH_CDN_FAILED,message:vh({key:ff,data:{message:i},link:{className:"Client",fnName:"stopPublishCDNStream"}})});case 17:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"startPublishGivenCDN",value:(n=i(regeneratorRuntime.mark((function e(t){var n,r,o,i,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={pushRequestTime:Date.now(),pushAppId:t.appId,pushBizId:t.bizId,pushCdnUrl:t.url,pushStreamType:"main"},Wv.info("startPublishGivenCDN: "+JSON.stringify(n)),this.publishGivenCDNData_=n,this.isPublishingGivenCDN_=!0,e.prev=4,e.next=7,this.signalChannel_.sendWaitForResponse({command:$g,data:n,timeout:5e3,responseCommand:Pg.START_PUBLISH_GIVEN_CDN_RES,commandDesc:"startPublishCDNStream"});case 7:if(r=e.sent,o=r.data,i=o.code,a=o.message,0===i){e.next=13;break}throw Wv.error("startPublishGivenCDN failed, errCode: ".concat(i,", errMsg: ").concat(a)),this.isPublishingGivenCDN_=!1,new Jg({code:Kg.START_PUBLISH_CDN_FAILED,message:vh({key:pf,data:{message:a},link:{className:"Client",fnName:"startPublishCDNStream"}})});case 13:e.next=19;break;case 15:throw e.prev=15,e.t0=e.catch(4),this.isPublishingGivenCDN_=!1,e.t0;case 19:case"end":return e.stop()}}),e,this,[[4,15]])}))),function(e){return n.apply(this,arguments)})},{key:"stopPublishGivenCDN",value:(t=i(regeneratorRuntime.mark((function e(){var t,n,r,o,i,a,s,l,c,u;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.publishGivenCDNData_,n=t.pushAppId,r=t.pushBizId,o=t.pushCdnUrl,i=t.pushStreamType,a={pushRequestTime:Date.now(),pushAppId:n,pushBizId:r,pushCdnUrl:o,pushStreamType:i},Wv.info("stopPublishGivenCDN: "+JSON.stringify(a)),e.next=5,this.signalChannel_.sendWaitForResponse({command:zg,data:a,timeout:5e3,responseCommand:Pg.STOP_PUBLISH_GIVEN_CDN_RES,commandDesc:"stopPublishCDNStream"});case 5:if(s=e.sent,l=s.data,c=l.code,u=l.message,0!==c){e.next=11;break}this.isPublishingGivenCDN_=!1,e.next=13;break;case 11:throw Wv.error("stopPublishGivenCDN failed, errCode: ".concat(c," errMsg: ").concat(u)),new Jg({code:Kg.STOP_PUBLISH_CDN_FAILED,message:vh({key:ff,data:{message:u},link:{className:"Client",fnName:"stopPublishCDNStream"}})});case 13:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),e}(),tS=function(){function e(t){a(this,e),this.client_=t.client,this.durationMap_=new Map,this.installEvents()}return l(e,[{key:"installEvents",value:function(){Jm.on(_v,this.handleSubscribed,this),Jm.on(gv,this.handleStreamTrackUpdated,this),Jm.on(wv,this.handleStreamStopped,this),Jm.on(Sv,this.handleStreamStopped,this)}},{key:"uninstallEvents",value:function(){Jm.off(_v,this.handleSubscribed,this),Jm.off(kv,this.handleStreamTrackUpdated,this),Jm.off(wv,this.handleStreamStopped,this),Jm.off(Sv,this.handleStreamStopped,this)}},{key:"handleSubscribed",value:function(e){var t=e.client,n=e.stream;if(t===this.client_){var r=n.getUserId(),o=n.getType(),i="".concat(r,"_").concat(o);if(n.hasAudio())if(n.isMainAudioSubscribed){var a=new Kk,s=this.durationMap_.get(i);s?this.isRecording(s.audio)||s.audio.push(a):this.durationMap_.set(i,{userId:r,type:o,audio:[a],video:[]})}else this.stopDurationItem(i,hu);if(n.hasVideo())if(o===Xu&&n.isMainVideoSubscribed||o===Qu&&n.isAuxVideoSubscribed){var l=new Kk,c=this.durationMap_.get(i);c?this.isRecording(c.video)||c.video.push(l):this.durationMap_.set(i,{userId:r,type:o,audio:[],video:[l]})}else this.stopDurationItem(i,mu)}}},{key:"handleStreamStopped",value:function(e){var t=e.client,n=e.stream;if(this.clientHitTest(t)){var r=n.getUserId(),o=n.getType(),i="".concat(r,"_").concat(o);this.stopDurationItem(i,hu),this.stopDurationItem(i,mu)}}},{key:"handleStreamTrackUpdated",value:function(e){var t=e.client,n=e.userId,r=e.tinyId,o=e.kind,i=e.action;if(this.clientHitTest(t)&&this.client_.getConnections().has(r)){var a=o===vu?o:Xu,s="".concat(n,"_").concat(a);if(i===Yd){var l=this.client_.getConnections().get(r).getSubscribeState();if(o===hu&&!l.audio||o===mu&&!l.video||o===vu&&!l.auxiliary)return;var c=new Kk,u=this.durationMap_.get(s);u?(o!==hu||this.isRecording(u.audio)||u.audio.push(c),o===hu||this.isRecording(u.video)||u.video.push(c)):this.durationMap_.set(s,{userId:n,type:a,audio:o===hu?[c]:[],video:o===hu?[]:[c]})}else this.stopDurationItem(s,o===hu?hu:mu)}}},{key:"isRecording",value:function(e){return e.findIndex((function(e){return 0===e.endTime}))>=0}},{key:"stopDurationItem",value:function(e,t){if(this.durationMap_.has(e)){var n=this.durationMap_.get(e)[t].find((function(e){return 0===e.endTime}));n&&n.stop()}}},{key:"clientHitTest",value:function(e){return this.client_===e}},{key:"getDuration",value:function(e,t){return this.durationMap_.has(e)?this.durationMap_.get(e)[t].reduce((function(e,t){return e+t.getDuration()}),0):0}},{key:"getDurationMap",value:function(){return this.durationMap_}},{key:"reset",value:function(){this.durationMap_.clear()}}]),e}(),nS=oo.f,rS=O((function(){return!Object.getOwnPropertyNames(1)}));It({target:"Object",stat:!0,forced:rS},{getOwnPropertyNames:nS});var oS={msg_user_info:0,uint32_video_avg_fps:0,uint32_video_width:0,uint32_video_height:0,uint32_video_avg_bitrate:0,uint32_video_block_time:0,uint32_video_play_time:0,uint32_audio_block_time:0,uint32_audio_play_time:0,uint32_audio_play_db:0,uint32_avg_down_loss:0,uint32_stream_type:0,uint32_video_render_first:0,uint32_video_block_count:0,uint32_audio_block_count:0,uint32_audio_bitrate:0,uint32_video_black_screen_subjective:0,uint32_audio_recv_bitrate:0,uint32_video_external_block_time:0},iS=function e(t){a(this,e),this.str_identifier=String(t.userId),this.uint64_tinyid=Number(t.tinyId),this.uint32_role=t.role},aS=function(){function e(t){var n=this;a(this,e),this.frameWorkType_=t.frameWorkType||30,this.client_=t.client,this.keyPrefix_="key_point",this.storageKey_="".concat(this.keyPrefix_,"_").concat(this.client_.getUserId()),this.log_=Wv.createLogger({id:"kpm|"+this.client_.getUserId(),userId:this.client_.getUserId(),sdkAppId:this.client_.getSDKAppId()}),this.upload=Bv({retryFunction:this.upload,settings:{timeout:500,retries:3},onError:function(e,t){return t()}}),Object.getOwnPropertyNames(this.__proto__).forEach((function(e){e.startsWith("handle")&&Sh(n[e])&&(n[e]=function(e){var t=e.fn,n=e.context;return i(regeneratorRuntime.mark((function e(){var r,o,i,a=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(e.prev=0,r=a.length,o=new Array(r),i=0;i<r;i++)o[i]=a[i];return e.next=4,t.apply(n||this,o);case 4:return e.abrupt("return",e.sent);case 7:e.prev=7,e.t0=e.catch(0),Wv.error("".concat(t.name,"() error observed ")+e.t0);case 10:case"end":return e.stop()}}),e,this,[[0,7]])})))}({fn:n[e],context:n}))})),this.initData(),this.installEvents(),this.intervalId_=nb.setInterval(this.setStorage.bind(this),2e4)}var n,r,o;return l(e,[{key:"initData",value:function(){this.firstPublishedUserList_=[],this.networkQuality_={totalUplinkRTT:0,totalUplinkLoss:0,count:0,totalDownlinkRTTAndLossMap:new Map},this.basicInfo={string_sdk_version:"4.12.3",uint32_os_type:15,string_device_name:"",string_http_user_agent:navigator.userAgent,string_os_version:"",uint32_avg_rtt:0,uint32_avg_up_loss:0,uint32_scene:"live"===this.client_.getMode()?1:0,uint32_joining_duration:0,uint32_networkType:Jd[_h()],uint32_framework:this.frameWorkType_},this.pathJoinRoom_={uint64_start_time:0,uint64_init_audio_start_time:0,uint64_init_audio_end_time:0,uint64_init_camera_start_time:0,uint64_init_camera_end_time:0,uint64_send_request_acc_ip_cmd_start_time:0,uint64_send_request_acc_ip_cmd_end_time:0,uint64_send_request_enter_room_cmd_start_time:0,uint64_send_request_enter_room_cmd_end_time:0,uint64_send_first_video_frame_time:0,uint64_recv_userlist_time:0,uint64_end_time:0,int32_init_audio_ret:0,int32_init_camera_ret:0,int32_send_request_acc_ip_cmd_ret:0,int32_send_request_enter_room_cmd_ret:0,int32_end_ret:0},this.pathLeaveRoom_={uint64_start_time:0,uint64_send_request_exit_room_cmd_start_time:0,uint64_send_request_exit_room_cmd_end_time:0,uint64_end_time:0,int32_send_request_exit_room_cmd_ret:0,int32_end_ret:0},this.pathMainVideoMap_=new Map,this.pathMainAudioMap_=new Map,this.pathAuxiliaryMap_=new Map,this.localStreamStats_={totalVideoBitrate:0,totalVideoFPS:0,totalVideoHeight:0,totalVideoWidth:0,totalAudioLevel:0,videoCount:0,audioLevelCount:0,publishStartTime:0,statsToReport:{uint32_audio_capture_db:0,uint32_video_big_capture_fps:0,uint32_video_big_bitrate:0,uint32_video_big_resolution:0}},this.remoteStreamStatsMap_=new Map}},{key:"installEvents",value:function(){Jm.on(Gm,this.handleJoinStart,this),Jm.on(lv,this.handleWSStart,this),Jm.on(cv,this.handleWSEnd,this),Jm.on(Xm,this.handleJoinSendCMD,this),Jm.on(Qm,this.handleJoinReceivedCMDResponce,this),Jm.on(ev,this.handleJoinSuccess,this),Jm.on(tv,this.handleJoinFailed,this),Jm.on(av,this.handleReceivedPublishUserList,this),Jm.on(Lv,this.handleConnectionStateChanged,this),Jm.on(nv,this.handleLeaveStart,this),Jm.on(ov,this.handleLeaveSuccess,this),Jm.on(rv,this.handleLeaveSendCMD,this),Jm.on(Fv,this.handleSendSubscribeCMD,this),Jm.on(mv,this.handleVideoPlaying,this),Jm.on(vv,this.handleAudioPlaying,this),Jm.on(Uv,this.handleNetworkQuality,this),Jm.on(iv,this.handleHeartbeatStats,this),Jm.on(yv,this.handleRemoteStreamAdded,this),Jm.on(bv,this.handleRemoteStreamSubscribeStart,this),Jm.on(_v,this.handleRemoteStreamSubscribed,this),Jm.on(Ov,this.handleVideoLoadedData,this),Jm.on(Pv,this.handlePlayStream,this),Jm.on(sv,this.handlePublishStart,this),Jm.on(xv,this.handleLocalStreamInitStart,this),Jm.on(Iv,this.handleLocalStreamInitEnd,this),Jm.on(Tv,this.handleLocalStreamInitFailed,this)}},{key:"uninstallEvents",value:function(){Jm.off(Gm,this.handleJoinStart,this),Jm.off(lv,this.handleWSStart,this),Jm.off(cv,this.handleWSEnd,this),Jm.off(Xm,this.handleJoinSendCMD,this),Jm.off(Qm,this.handleJoinReceivedCMDResponce,this),Jm.off(av,this.handleReceivedPublishUserList,this),Jm.off(Lv,this.handleConnectionStateChanged,this),Jm.off(nv,this.handleLeaveStart,this),Jm.off(ov,this.handleLeaveSuccess,this),Jm.off(ev,this.handleJoinSuccess,this),Jm.off(tv,this.handleJoinFailed,this),Jm.off(rv,this.handleLeaveSendCMD,this),Jm.off(Fv,this.handleSendSubscribeCMD,this),Jm.off(mv,this.handleVideoPlaying,this),Jm.off(vv,this.handleAudioPlaying,this),Jm.off(Uv,this.handleNetworkQuality,this),Jm.off(iv,this.handleHeartbeatStats,this),Jm.off(yv,this.handleRemoteStreamAdded,this),Jm.off(bv,this.handleRemoteStreamSubscribeStart,this),Jm.off(_v,this.handleRemoteStreamSubscribed,this),Jm.off(Ov,this.handleVideoLoadedData,this),Jm.off(Pv,this.handlePlayStream,this),Jm.off(sv,this.handlePublishStart,this),Jm.off(xv,this.handleLocalStreamInitStart,this),Jm.off(Iv,this.handleLocalStreamInitEnd,this),Jm.off(Tv,this.handleLocalStreamInitFailed,this)}},{key:"handleJoinStart",value:function(e){this.hitTest(e.client)&&0===this.pathJoinRoom_.uint64_start_time&&(this.pathJoinRoom_.uint64_start_time=Date.now(),this.checkStorage())}},{key:"handleWSStart",value:function(e){var t=e.client;this.hitTest(t)&&0===this.pathJoinRoom_.uint64_send_request_acc_ip_cmd_start_time&&(this.pathJoinRoom_.uint64_send_request_acc_ip_cmd_start_time=Date.now())}},{key:"handleWSEnd",value:function(e){var t=e.client,n=e.error;this.hitTest(t)&&0===this.pathJoinRoom_.uint64_send_request_acc_ip_cmd_end_time&&(this.pathJoinRoom_.uint64_send_request_acc_ip_cmd_end_time=Date.now(),n&&(this.pathJoinRoom_.int32_send_request_acc_ip_cmd_ret=n instanceof Jg?Number(n.getExtraCode()||n.getCode()):Kg.UNKNOWN,this.pathJoinRoom_.int32_end_ret=2))}},{key:"handleJoinSendCMD",value:function(e){this.hitTest(e.client)&&0===this.pathJoinRoom_.uint64_send_request_enter_room_cmd_start_time&&(this.pathJoinRoom_.uint64_send_request_enter_room_cmd_start_time=Date.now())}},{key:"handleJoinReceivedCMDResponce",value:function(e){this.hitTest(e.client)&&0===this.pathJoinRoom_.uint64_send_request_enter_room_cmd_end_time&&(this.pathJoinRoom_.uint64_send_request_enter_room_cmd_end_time=Date.now(),this.pathJoinRoom_.int32_send_request_enter_room_cmd_ret=e.code,0!==e.code&&(this.pathJoinRoom_.int32_end_ret=3))}},{key:"handleJoinSuccess",value:function(e){this.hitTest(e.client)&&0===this.pathJoinRoom_.uint64_end_time&&(this.pathJoinRoom_.uint64_end_time=Date.now(),this.pathJoinRoom_.int32_end_ret=0)}},{key:"handleJoinFailed",value:function(e){var t=e.client;this.hitTest(t)&&(this.pathJoinRoom_.uint64_end_time=Date.now(),0===this.pathJoinRoom_.int32_end_ret&&(this.pathJoinRoom_.int32_end_ret=3),this.prepareReport(),this.report())}},{key:"handleReceivedPublishUserList",value:function(e){this.hitTest(e.client)&&0===this.pathJoinRoom_.uint64_recv_userlist_time&&(this.pathJoinRoom_.uint64_recv_userlist_time=Date.now(),this.firstPublishedUserList_=e.data.data&&e.data.data.userList||[])}},{key:"handleConnectionStateChanged",value:function(e){var t=e.client,n=e.state,r=e.connection;if(this.hitTest(t)&&n===rd){this.client_.getUplinkConnection()===r&&0===this.pathJoinRoom_.uint64_send_first_video_frame_time&&this.localStreamStats_.publishStartTime>this.pathJoinRoom_.uint64_end_time&&this.localStreamStats_.publishStartTime-this.pathJoinRoom_.uint64_end_time<=100&&(this.pathJoinRoom_.uint64_send_first_video_frame_time=Date.now());var o=this.pathMainVideoMap_.get("".concat(r.getUserId(),"_").concat(Xu));o&&0===o.statsToReport.uint64_pc_connected_time&&(o.statsToReport.uint64_pc_connected_time=Date.now())}}},{key:"handleLeaveStart",value:function(e){this.hitTest(e.client)&&(this.pathLeaveRoom_.uint64_start_time=Date.now())}},{key:"handleLeaveSuccess",value:function(e){this.hitTest(e.client)&&0===this.pathLeaveRoom_.uint64_end_time&&(this.pathLeaveRoom_.uint64_end_time=Date.now(),0!==this.pathJoinRoom_.uint64_end_time?this.basicInfo.uint32_joining_duration=this.pathLeaveRoom_.uint64_end_time-this.pathJoinRoom_.uint64_end_time:this.log_.warn("pathJoinRoom endTime is 0"),this.report())}},{key:"handleLeaveSendCMD",value:function(e){this.hitTest(e.client)&&(this.pathLeaveRoom_.uint64_send_request_exit_room_cmd_start_time=Date.now(),this.pathLeaveRoom_.uint64_send_request_exit_room_cmd_end_time=Date.now())}},{key:"handleRemoteStreamAdded",value:function(e){var n=e.client,r=e.stream;if(this.hitTest(n)){var o=r.getUserId(),i=r.getType(),a="".concat(o,"_").concat(i),s=this.remoteStreamStatsMap_.get(a);if(s)s.stream=r;else{var l={userId:o,totalVideoFPS:0,totalVideoBitrate:0,totalAudioLevel:0,totalAudioBitrate:0,totalLoss:0,audioCount:0,audioLevelCount:0,videoCount:0,networkQualityCount:0,streamAddedTime:Date.now(),subscribeStartTime:0,subscribedTime:0,playStreamTime:0,statsToReport:t({},oS),stream:r};l.statsToReport.msg_user_info=new iS({userId:o,tinyId:r.getTinyId(),role:Zu}),l.statsToReport.uint32_stream_type=i===Xu?2:7,this.remoteStreamStatsMap_.set(a,l)}}}},{key:"handleRemoteStreamSubscribeStart",value:function(e){var t=e.client,n=e.stream;if(this.hitTest(t)){var r=n.getUserId(),o=n.getType(),i="".concat(r,"_").concat(o),a=this.remoteStreamStatsMap_.get(i);a&&0===a.subscribeStartTime&&(a.subscribeStartTime=Date.now())}}},{key:"handleSendSubscribeCMD",value:function(e){if(this.hitTest(e.client)){var t=new iS(e),n=Date.now(),r="".concat(e.userId,"_").concat(Xu);e.trackState.video&&e.subscribeState.video&&!this.pathMainVideoMap_.has(r)&&this.pathMainVideoMap_.set(r,{statsToReport:{msg_user_info:t,uint64_start_enter_time:this.pathJoinRoom_.uint64_start_time,uint64_render_first_frame_time:0,uint64_combine_first_frame_time:0,uint64_pc_connected_time:0},userId:e.userId,sendSubscribeCMDTime:n}),e.trackState.audio&&e.subscribeState.audio&&!this.pathMainAudioMap_.has(r)&&this.pathMainAudioMap_.set(r,{statsToReport:{msg_user_info:t,uint64_start_enter_time:this.pathJoinRoom_.uint64_start_time,uint64_play_first_frame_time:0},userId:e.userId,sendSubscribeCMDTime:n});var o="".concat(e.userId,"_").concat(Qu);e.trackState.auxiliary&&e.subscribeState.auxiliary&&!this.pathAuxiliaryMap_.has(o)&&this.pathAuxiliaryMap_.set(o,{sendSubscribeCMDTime:n})}}},{key:"handleRemoteStreamSubscribed",value:function(e){var t=e.client,n=e.stream;if(this.hitTest(t)){var r=n.getUserId(),o=n.getType(),i="".concat(r,"_").concat(o),a=this.remoteStreamStatsMap_.get(i);a&&0===a.subscribedTime&&(a.subscribedTime=Date.now(),a.stream=n)}}},{key:"handlePlayStream",value:function(e){var t=e.stream;if(t.isRemote()&&t.getConnection()&&this.hitTest(t.getConnection().getClient())){var n=t.getConnection().getUserId(),r="".concat(n,"_").concat(t.getType());if(this.remoteStreamStatsMap_.has(r)){var o=this.remoteStreamStatsMap_.get(r);0===o.playStreamTime&&(o.playStreamTime=Date.now())}}}},{key:"handleVideoLoadedData",value:function(e){var t=e.stream;if(t.isRemote()&&t.getConnection()&&this.hitTest(t.getConnection().getClient())){var n=t.getConnection().getUserId(),r="".concat(n,"_").concat(t.getType());if(this.pathMainVideoMap_.has(r)){var o=this.pathMainVideoMap_.get(r);0===o.statsToReport.uint64_combine_first_frame_time&&(o.statsToReport.uint64_combine_first_frame_time=Date.now())}}}},{key:"handleVideoPlaying",value:function(e){var t=e.stream;if(t.isRemote()&&t.getConnection()&&this.hitTest(t.getConnection().getClient())){var n=t.getConnection().getUserId(),r="".concat(n,"_").concat(t.getType()),o=Date.now();if(this.pathMainVideoMap_.has(r)){var i=this.pathMainVideoMap_.get(r);if(0===i.statsToReport.uint64_render_first_frame_time&&(i.statsToReport.uint64_render_first_frame_time=o),this.remoteStreamStatsMap_.has(r)){var a=this.remoteStreamStatsMap_.get(r),s=a.statsToReport,l=a.playStreamTime,c=a.subscribedTime;0===s.uint32_video_render_first&&l-c<=100&&(s.uint32_video_render_first=o-i.sendSubscribeCMDTime)}}if(t.getType()===Qu&&this.pathAuxiliaryMap_.has(r)&&this.remoteStreamStatsMap_.has(r)){var u=this.remoteStreamStatsMap_.get(r),d=u.statsToReport,p=u.playStreamTime,f=u.subscribedTime;0===d.uint32_video_render_first&&p-f<=100&&(d.uint32_video_render_first=o-this.pathAuxiliaryMap_.get(r).sendSubscribeCMDTime)}}}},{key:"handleAudioPlaying",value:function(e){if(e.stream.isRemote()&&e.stream.getConnection()&&this.hitTest(e.stream.getConnection().getClient())){var t=e.stream.getConnection().getUserId(),n="".concat(t,"_").concat(e.stream.getType());if(this.pathMainAudioMap_.has(n)){var r=this.pathMainAudioMap_.get(n);0===r.statsToReport.uint64_play_first_frame_time&&(r.statsToReport.uint64_play_first_frame_time=Date.now())}}}},{key:"handleNetworkQuality",value:function(e){var t=this;this.hitTest(e.client)&&(this.networkQuality_.totalUplinkLoss+=e.uplinkLoss,this.networkQuality_.totalUplinkRTT+=e.uplinkRTT,this.networkQuality_.count++,e.downlinkLossAndRTTMap.forEach((function(e){var n=e.rtt,r=e.loss,o=e.userId,i=t.networkQuality_.totalDownlinkRTTAndLossMap.get(o);i?(i.totalRTT+=n,i.totalLoss+=r,i.count++):t.networkQuality_.totalDownlinkRTTAndLossMap.set(o,{totalRTT:n,totalLoss:r,count:1})})))}},{key:"handleHeartbeatStats",value:function(e){var t=this;if(this.hitTest(e.client)){var n=e.stats,r=n.msg_up_stream_info,o=n.msg_down_stream_info;if(r.msg_video_status[0]){var i=r.msg_video_status[0],a=i.uint32_video_codec_bitrate,s=i.uint32_video_enc_fps,l=i.uint32_video_width,c=i.uint32_video_height;this.localStreamStats_.totalVideoBitrate+=a,this.localStreamStats_.totalVideoFPS+=s,this.localStreamStats_.totalVideoWidth+=l,this.localStreamStats_.totalVideoHeight+=c,this.localStreamStats_.videoCount++}var u=r.msg_audio_status.audioLevel;Math.floor(100*u)>0&&(this.localStreamStats_.totalAudioLevel+=u,this.localStreamStats_.audioLevelCount++),o.forEach((function(e){var n=e.msg_user_info,r=e.msg_audio_status,o=e.msg_video_status,i=n.str_identifier;if(o.forEach((function(e){var n=2===e.uint32_video_stream_type,r=7===e.uint32_video_stream_type,o="".concat(i,"_").concat(n?Xu:Qu);if(t.remoteStreamStatsMap_.has(o)){var a=t.remoteStreamStatsMap_.get(o);(n&&a.stream.isMainVideoSubscribed||r&&a.stream.isAuxVideoSubscribed)&&(a.totalVideoFPS+=e.uint32_video_receive_fps,a.totalVideoBitrate+=e.uint32_video_codec_bitrate,a.videoCount++,0===a.statsToReport.uint32_video_width&&(a.statsToReport.uint32_video_width=e.uint32_video_width),0===a.statsToReport.uint32_video_height&&(a.statsToReport.uint32_video_height=e.uint32_video_height))}})),r){var a="".concat(i,"_").concat(Xu);if(t.remoteStreamStatsMap_.has(a)){var s=t.remoteStreamStatsMap_.get(a);s.stream.isMainAudioSubscribed&&(s.totalAudioBitrate+=r.uint32_audio_codec_bitrate,s.audioCount++,Math.floor(100*r.audioLevel)>0&&(s.totalAudioLevel+=r.audioLevel,s.audioLevelCount++))}}}))}}},{key:"handlePublishStart",value:function(e){var t=e.client;this.hitTest(t)&&0===this.localStreamStats_.publishStartTime&&(this.localStreamStats_.publishStartTime=Date.now())}},{key:"handleLocalStreamInitStart",value:function(e){var t=e.audio,n=e.video;t&&0===this.pathJoinRoom_.uint64_init_audio_start_time&&(this.pathJoinRoom_.uint64_init_audio_start_time=Date.now()),n&&0===this.pathJoinRoom_.uint64_init_camera_start_time&&(this.pathJoinRoom_.uint64_init_camera_start_time=Date.now())}},{key:"handleLocalStreamInitEnd",value:function(e){var t=e.audio,n=e.video;t&&0===this.pathJoinRoom_.uint64_init_audio_end_time&&(this.pathJoinRoom_.uint64_init_audio_end_time=Date.now()),n&&0===this.pathJoinRoom_.uint64_init_camera_end_time&&(this.pathJoinRoom_.uint64_init_camera_end_time=Date.now())}},{key:"handleLocalStreamInitFailed",value:function(e){var t=e.audio,n=e.video,r=e.error,o=r instanceof Jg?r.getExtraCode()||r.getCode():{NotFoundError:1,NotAllowedError:2,NotReadableError:3,OverConstrainedError:4,AbortError:5}[r.name]||Kg.UNKNOWN;t&&0===this.pathJoinRoom_.uint64_init_audio_end_time&&(this.pathJoinRoom_.int32_init_audio_ret=o,this.pathJoinRoom_.uint64_init_audio_end_time=Date.now()),n&&0===this.pathJoinRoom_.uint64_init_camera_end_time&&(this.pathJoinRoom_.int32_init_camera_ret=o,this.pathJoinRoom_.uint64_init_camera_end_time=Date.now())}},{key:"hasVideoFlag",value:function(e){return this.firstPublishedUserList_.findIndex((function(t){return t.userId===e&&1&t.flag}))>=0}},{key:"hasAudioFlag",value:function(e){return this.firstPublishedUserList_.findIndex((function(t){return t.userId===e&&8&t.flag}))>=0}},{key:"hasAuxFlag",value:function(e){return this.firstPublishedUserList_.findIndex((function(t){return t.userId===e&&4&t.flag}))>=0}},{key:"hitTest",value:function(e){return e===this.client_}},{key:"checkStorage",value:(o=i(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!(t=rb.getItem(this.storageKey_))){e.next=6;break}return e.next=5,this.upload(t);case 5:rb.deleteItem(this.storageKey_);case 6:e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),this.log_.warn(e.t0);case 11:case"end":return e.stop()}}),e,this,[[0,8]])}))),function(){return o.apply(this,arguments)})},{key:"setStorage",value:function(){this.prepareReport();var e=this.getReportData();0!==e.msg_path_enter_room.uint64_start_time&&rb.setItem(this.storageKey_,e)}},{key:"prepareReport",value:function(){var e=this;if(this.networkQuality_.count>0&&(this.basicInfo.uint32_avg_rtt=Math.floor(this.networkQuality_.totalUplinkRTT/this.networkQuality_.count),this.basicInfo.uint32_avg_up_loss=Math.floor(this.networkQuality_.totalUplinkLoss/this.networkQuality_.count)),this.localStreamStats_.videoCount>0){this.localStreamStats_.statsToReport.uint32_video_big_capture_fps=Math.floor(this.localStreamStats_.totalVideoFPS/this.localStreamStats_.videoCount),this.localStreamStats_.statsToReport.uint32_video_big_bitrate=Math.floor(this.localStreamStats_.totalVideoBitrate/this.localStreamStats_.videoCount);var t=Math.floor(this.localStreamStats_.totalVideoWidth/this.localStreamStats_.videoCount),n=Math.floor(this.localStreamStats_.totalVideoHeight/this.localStreamStats_.videoCount);this.localStreamStats_.statsToReport.uint32_video_big_resolution=t<<16|n}this.localStreamStats_.audioLevelCount>0&&(this.localStreamStats_.statsToReport.uint32_audio_capture_db=Math.floor(this.localStreamStats_.totalAudioLevel/this.localStreamStats_.audioLevelCount*100)),this.remoteStreamStatsMap_.forEach((function(t,n){var r=t.userId;if(e.networkQuality_.totalDownlinkRTTAndLossMap.has(r)){var o=e.networkQuality_.totalDownlinkRTTAndLossMap.get(r),i=o.totalLoss,a=o.count;t.statsToReport.uint32_avg_down_loss=Math.floor(i/a)}t.videoCount>0&&(t.statsToReport.uint32_video_avg_fps=Math.floor(t.totalVideoFPS/t.videoCount),t.statsToReport.uint32_video_avg_bitrate=Math.floor(t.totalVideoBitrate/t.videoCount)),t.audioCount>0&&(t.statsToReport.uint32_audio_recv_bitrate=t.statsToReport.uint32_audio_bitrate=Math.floor(t.totalAudioBitrate/t.audioCount)),t.audioLevelCount>0&&(t.statsToReport.uint32_audio_play_db=Math.floor(t.totalAudioLevel/t.audioLevelCount*100));var s=e.client_.getCallDurationCalculator();s&&(t.statsToReport.uint32_audio_play_time=s.getDuration(n,hu),t.statsToReport.uint32_video_play_time=s.getDuration(n,mu)),t.statsToReport.uint32_video_render_first=Math.min(t.statsToReport.uint32_video_render_first,5e3);var l=e.client_.getBadCaseDetector();if(l){var c=l.getDataFreezeDuration(n),u=c.dataFreeze,d=c.count,p=l.getRenderFreezeDuration(n).renderFreeze;t.statsToReport.uint32_video_block_count=d,t.statsToReport.uint32_video_block_time=Math.min(u,t.statsToReport.uint32_video_play_time),t.statsToReport.uint32_video_external_block_time=Math.min(p,t.statsToReport.uint32_video_play_time),l.isBlackStream(n)&&0===t.statsToReport.uint32_video_avg_fps?t.statsToReport.uint32_video_black_screen_subjective=1:t.statsToReport.uint32_video_black_screen_subjective=0}(0===t.subscribeStartTime||t.subscribeStartTime-t.streamAddedTime>100||0===t.playStreamTime)&&(e.pathMainAudioMap_.delete(n),e.pathMainVideoMap_.delete(n),t.statsToReport.uint32_video_render_first=0)})),this.pathMainAudioMap_.forEach((function(t,n){e.hasAudioFlag(t.userId)?t.statsToReport.uint64_play_first_frame_time-t.statsToReport.uint64_start_enter_time>5e3&&(t.statsToReport.uint64_play_first_frame_time=t.statsToReport.uint64_start_enter_time+5e3):e.pathMainAudioMap_.delete(n)})),this.pathMainVideoMap_.forEach((function(t,n){e.hasVideoFlag(t.userId)?t.statsToReport.uint64_render_first_frame_time-t.statsToReport.uint64_start_enter_time>5e3&&(t.statsToReport.uint64_render_first_frame_time=t.statsToReport.uint64_start_enter_time+5e3):e.pathMainVideoMap_.delete(n)})),this.pathJoinRoom_.uint64_end_time-this.pathJoinRoom_.uint64_start_time>5e3&&(this.pathJoinRoom_.uint64_end_time=this.pathJoinRoom_.uint64_start_time+5e3)}},{key:"getReportData",value:function(){var e=this.client_.getSignalInfo();return{uint32_sdk_app_id:Number(this.client_.getSDKAppId()),msg_user_info:new iS({userId:this.client_.getUserId(),tinyId:this.client_.getTinyId(),role:"anchor"===this.client_.getRole()?Zu:Yu}),msg_basic_info:this.basicInfo,uint32_acc_ip:Dh(e.relayIp),uint32_client_ip:Dh(e.clientIp,"small"),uint32_acc_port:0,uint64_timestamp:Date.now(),uint32_seq:Math.floor(Math.random()*Math.pow(2,31)),msg_path_enter_room:this.pathJoinRoom_,msg_path_exit_room:this.pathLeaveRoom_,msg_path_recv_video:_(this.pathMainVideoMap_.values()).map((function(e){return e.statsToReport})),msg_quality_statistics:_(this.remoteStreamStatsMap_.values()).map((function(e){return e.statsToReport})),str_room_name:String(this.client_.getRoomId()),msg_path_recv_audio:_(this.pathMainAudioMap_.values()).map((function(e){return e.statsToReport})),uint32_info_client_ip:Dh(e.clientIp,"small"),error_code:[],msg_local_statistics:this.localStreamStats_.statsToReport}}},{key:"report",value:(r=i(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t=this.getReportData(),e.next=4,this.upload(t);case 4:rb.deleteItem(this.storageKey_),this.initData(),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),this.log_.warn(e.t0);case 11:case"end":return e.stop()}}),e,this,[[0,8]])}))),function(){return r.apply(this,arguments)})},{key:"upload",value:(n=i(regeneratorRuntime.mark((function e(t){var n,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(lu||0===t.msg_path_enter_room.uint64_start_time||[cp,up,dp].findIndex((function(e){return e===location.host}))>=0)){e.next=2;break}return e.abrupt("return");case 2:return n=Number(this.client_.getSDKAppId()),r=bh(n,$u),e.next=6,Ym.post(r,JSON.stringify(t));case 6:if("ok"===(o=e.sent).data){e.next=9;break}throw"key point upload failed: ".concat(o.data);case 9:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})}]),e}();function sS(){return function(e,t,n){var r=n.value,o=new Map;return n.value=i(regeneratorRuntime.mark((function e(){var n,i,a,s,l=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!o.get(this)){e.next=2;break}throw new Jg({code:Kg.INVALID_OPERATION,message:vh({key:_p,data:{name:t}})});case 2:for(e.prev=2,o.set(this,!0),n=l.length,i=new Array(n),a=0;a<n;a++)i[a]=l[a];return e.next=7,r.apply(this,i);case 7:return s=e.sent,o.set(this,!1),e.abrupt("return",s);case 12:throw e.prev=12,e.t0=e.catch(2),o.set(this,!1),e.t0;case 16:case"end":return e.stop()}}),e,this,[[2,12]])}))),n}}function lS(e){return cS.apply(this,arguments)}function cS(){return(cS=i(regeneratorRuntime.mark((function e(t){var n,r,o,i,a,s,l,c,u,d,p,f,h;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.userId,r=t.sdkAppId,o=t.useStringRoomId,i=t.roomId,a=t.userSig,s={delta:0,count:[1,1],msg:[]},e.prev=2,(l=new FormData).append("userId",String(n)),l.append("sdkAppId",String(r)),l.append("isStrGroupId",o),l.append("groupId",String(i)),l.append("sdkVersion","4.12.3"),l.append("userSig",String(a)),c=Ah(),e.next=13,ES(l,s,r);case 13:return u=e.sent,s.delta=Ah()-c,uS({stat:s,userId:n}),e.abrupt("return",u);case 19:throw e.prev=19,e.t0=e.catch(2),d=Eh(e.t0)?e.t0[0]:e.t0,p=Ih(d.code)?d.code:0,f="get websocket url failed: ".concat(d.message.includes("timeout")?"timeout":d.message),h=new Jg({code:Kg.SCHEDULE_FAILED,extraCode:p,message:vh({key:Zp,data:{error:f,code:p}})}),Wv.error(h),uS({stat:s,userId:n,roomId:i,error:h}),h;case 28:case"end":return e.stop()}}),e,null,[[2,19]])})))).apply(this,arguments)}function uS(e){var t=e.stat,n=e.userId,r=e.error;r?Uy.logFailedEvent({eventType:Ld,error:r,userId:n}):Uy.logSuccessEvent({eventType:Ld,delta:t.delta,userId:n}),Uy.uploadEvent({log:"stat-schedule:"+JSON.stringify(t),userId:n})}function dS(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pu;return t=yh(e)?n===Pu?np:rp:n===Pu?ep:tp,"https://".concat(t,"/api/v1/config")}function pS(e,t,n){return new Promise((function(r,o){Ym.post(e,t,n).then((function(e){0===e.data.code?r(e.data.data):o({code:e.data.code,message:e.data.msg})})).catch(o)}))}var fS,hS,mS,vS,gS,yS,bS,_S,wS,kS,SS,CS,xS,IS,TS=function(e,t){return Bv({retryFunction:pS,settings:{retries:3,timeout:0},onError:t,onRetrying:e})};function ES(e,t,n){return new Promise((function(r,o){var i,a=null;(i=[TS((function(e){return t.count[0]=e+1}),(function(e,n){t.msg[0]=e.message,a||n()}))(dS(n,Pu),e,{timeout:2e3}),TS((function(e){return t.count[1]=e+1}),(function(e,n){t.msg[1]=e.message,a||n()}))(dS(n,Ou),e,{timeout:2e3})],new Promise((function(e,t){var n=[];i.forEach((function(r){r.then(e).catch((function(e){n.push(e),n.length===i.length&&t(n)}))}))}))).then((function(e){r(a=e)})).catch(o)}))}var RS=(fS=sS(),hS=Ok(Rk.CLIENT.join),mS=sS(),vS=sS(),gS=Ok(Rk.CLIENT.publish),yS=sS(),bS=Ok(Rk.CLIENT.unpublish),_S=Ok.apply(void 0,_(Rk.CLIENT.subscribe)),wS=Ok(Rk.CLIENT.unsubscribe),kS=sS(),SS=Ok(Rk.CLIENT.switchRole),CS=Ok(Rk.CLIENT.startPublishCDNStream),xS=Ok(Rk.CLIENT.startMixTranscode),C((IS=function(){function e(t){var n,r;a(this,e),this.name_=ip,this.mode_=t.mode,this.sdpSemantics_="plan-b",Ch(t.sdpSemantics)?function(){if(!yb())return!1;if(Ch(window.RTCRtpTransceiver))return!1;if(!("currentDirection"in RTCRtpTransceiver.prototype))return!1;var e=new RTCPeerConnection,t=!1;try{e.addTransceiver(hu),t=!0}catch(KS){}return e.close(),t}()&&(this.sdpSemantics_="unified-plan"):this.sdpSemantics_=t.sdpSemantics,this.sdkAppId_=t.sdkAppId,this.userId_=t.userId,this.log_=Wv.createLogger({id:"c".concat(t.seq,"|").concat(this.userId_),userId:this.userId_,sdkAppId:this.sdkAppId_}),this.userSig_=t.userSig,this.roomId_=0,this.useStringRoomId_=t.useStringRoomId||!1,this.pureAudioPushMode_=null,this.version_=t.version,this.log_.info("using sdpSemantics: "+this.sdpSemantics_),this.signalChannel_=null,this.role_="anchor",this.privateMapKey_="",this.tinyId_=0,this.env_="",this.proxy_=null,this.connections_=new Map,this.mutedStates_=new Map,this.userMap_=new Map,this.syncUserListInterval_=-1,this.localStream_=null,this.uplinkConnection_=null,this.emitter_=jh(new Km,this.name_),this.isSignalReady_=!1,this.isJoined_=!1,this.heartbeat_=-1,this.lastHeartBeatTime_=-1,this.stats_=new r_(this),this.joinTimeout_=-1,this.networkQuality_=null,this.badCaseDetector_=null,this.networkType_=_h(),this.autoSubscribe_=!!Ch(t.autoSubscribe)||t.autoSubscribe,this.startJoinTimestamp_=0,this.joinedTimestamp_=0,this.joinOptions_={},this.basis_=(r={browser:du().name+"/"+du().version,os:Cb(),displayResolution:xb(),isScreenShareSupported:hb(),isWebRTCSupported:ab(),isGetUserMediaSupported:Ib(),isWebAudioSupported:Tb(),isWebSocketsSupported:"WebSocket"in window&&2===window.WebSocket.CLOSING,isWebCodecSupported:(n={AudioDecoder:!1,AudioEncoder:!1,VideoDecoder:!1,VideoEncoder:!1,ImageDecoder:!1},Ch(window.AudioDecoder)||(n.AudioDecoder=!0),Ch(window.AudioEncoder)||(n.AudioEncoder=!0),Ch(window.VideoDecoder)||(n.VideoDecoder=!0),Ch(window.VideoEncoder)||(n.VideoEncoder=!0),Ch(window.ImageDecoder)||(n.ImageDecoder=!0),n),isMediaSessionSupported:"mediaSession"in navigator&&!Ch(navigator.mediaSession.setActionHandler),isWebTransportSupported:!Ch(window.WebTransport)},navigator.userAgent.includes("miniProgram")&&(r.browser="mini/".concat(r.browser)),r),this.initBussinessInfo_(t),this.publishedCDN_=!1,this.publishCDNData_=null,this.mixedMCU_=!1,this.mixTranscodeData_=null,this.checkSystemResult_=null,this.enableAudioVolumeEvaluation_=!1,this.audioVolumeIntervalId_=null,this.mixTranscodeManager_=null,this.publishCDNManager_=null,this.keyPointManager_=new aS({client:this,frameWorkType:t.frameWorkType}),this.getUserList=Bv({retryFunction:this.getUserList,settings:{retries:3},onError:function(e,t){return t()}}),this.isPublishing_=!1,this.isEnableSmallStream_=!1,this.smallStreamConfig_={bitrate:100,frameRate:15,height:120,width:160},this.turnServers_=[],this.iceTransportPolicy_=t.iceTransportPolicy,this.schedule_={domains:null,iceServers:null,iceTransportPolicy:null},this.enableAutoPlayDialog_=!!Ch(t.enableAutoPlayDialog)||t.enableAutoPlayDialog,this.signalInfo_={}}var n,r,o,s,c,u,d,p,f,h,m,v,g,y,w,k,C,x,I,T,E,R,P,O,A,D;return l(e,[{key:"initBussinessInfo_",value:function(e){this.bussinessInfo_=e.bussinessInfo;var t={};if(xh(e.bussinessInfo)&&(t=JSON.parse(e.bussinessInfo)),!Ch(e.pureAudioPushMode)){if(!Number.isInteger(Number(e.pureAudioPushMode)))throw new Jg({code:Kg.INVALID_PARAMETER,message:vh({key:Fp})});this.pureAudioPushMode_=e.pureAudioPushMode,t.Str_uc_params||(t.Str_uc_params={}),t.Str_uc_params.pure_audio_push_mod=this.pureAudioPushMode_}if(!Ch(e.streamId)){if(!(xh(e.streamId)&&String(e.streamId)&&String(e.streamId).length<=64))throw new Jg({code:Kg.INVALID_PARAMETER,message:vh({key:Up})});t.Str_uc_params||(t.Str_uc_params={}),t.Str_uc_params.userdefine_streamid_main=e.streamId}if(!Ch(e.userDefineRecordId)){if(null===e.userDefineRecordId.match(/^[A-Za-z0-9_-]{1,64}$/gi))throw new Jg({code:Kg.INVALID_PARAMETER,message:vh({key:jp})});t.Str_uc_params||(t.Str_uc_params={}),t.Str_uc_params.userdefine_record_id=e.userDefineRecordId}if(!Ch(e.userDefinePushArgs)){if(!(xh(e.userDefinePushArgs)&&String(e.userDefinePushArgs)&&String(e.userDefinePushArgs).length<=256))throw new Jg({code:Kg.INVALID_PARAMETER,message:vh({key:Vp})});t.Str_uc_params||(t.Str_uc_params={}),t.Str_uc_params.userdefine_push_args=e.userDefinePushArgs}Fy(t)||(this.bussinessInfo_=JSON.stringify(t))}},{key:"setProxyServer",value:function(e){if(this.log_.info("set proxy server: ".concat(JSON.stringify(e))),xh(e)){if(!e.startsWith("wss://"))throw new Jg({code:Kg.INVALID_PARAMETER,message:vh({key:Hp})});this.proxy_=e}else if(wh(e)){var t=e.websocketProxy,n=e.loggerProxy;t&&(this.proxy_=t),n&&zu(n)}}},{key:"schedule",value:(D=i(regeneratorRuntime.mark((function e(n){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,lS({userId:this.userId_,sdkAppId:this.sdkAppId_,roomId:n,useStringRoomId:this.useStringRoomId_,version:this.version_,userSig:this.userSig_});case 2:(r=e.sent)&&(this.log_.info("schedule: ".concat(JSON.stringify(r))),this.schedule_=t(t({},this.schedule_),r),Jm.emit(dv,this.schedule_));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return D.apply(this,arguments)})},{key:"getSignalChannelUrl",value:function(){var e={mainUrl:"",backupUrl:""},t=gh();return t?e.mainUrl=e.backupUrl="wss://".concat(t,".rtc.qq.com"):this.proxy_?e.mainUrl=e.backupUrl=this.proxy_:Array.isArray(this.schedule_.domains)&&this.schedule_.domains.length>0&&(e.mainUrl=e.backupUrl="wss://".concat(this.schedule_.domains[0]),this.schedule_.domains[1]&&(e.backupUrl="wss://".concat(this.schedule_.domains[1]))),e}},{key:"getUserId",value:function(){return this.userId_}},{key:"getUserSig",value:function(){return this.userSig_}},{key:"getRole",value:function(){return this.role_}},{key:"getSignalInfo",value:function(){return this.signalInfo_}},{key:"getRoomId",value:function(){return this.roomId_}},{key:"getSDKAppId",value:function(){return this.sdkAppId_}},{key:"getTinyId",value:function(){return this.tinyId_}},{key:"setTurnServer",value:function(e){this.log_.info("set turn server: "+JSON.stringify(e));var t=[];Array.isArray(e)?e.forEach((function(e){return t.push(Oh(e))})):wh(e)&&t.push(Oh(e)),this.turnServers_=t}},{key:"getIceTransportPolicy",value:function(){return this.iceTransportPolicy_||this.schedule_.iceTransportPolicy||"all"}},{key:"initialize",value:function(){var e=this;return new Promise((function(t,n){e.log_.info("setup signal channel");var r=e.getSignalChannelUrl(),o=r.mainUrl,i=r.backupUrl;e.signalChannel_=new jy({sdkAppId:e.sdkAppId_,userId:e.userId_,userSig:e.userSig_,url:o,backupUrl:i,version:e.version_,client:e}),e.networkQuality_||(e.networkQuality_=new o_({connections:e.connections_,signalChannel:e.signalChannel_,userId:e.userId_,client:e}),e.networkQuality_.on(Kb,(function(t){e.emitter_.emit(Kb,t)}))),e.deviceDetector_||(e.deviceDetector_=new i_({client:e})),e.subscriptionManager_||(e.subscriptionManager_=new Lk({client:e})),e.badCaseDetector_||(e.badCaseDetector_=new Jk({client:e,stats:e.stats_})),e.callDurationCalculator_||(e.callDurationCalculator_=new tS({client:e})),e.mixTranscodeManager_||(e.mixTranscodeManager_=new Qk({client:e,signalChannel:e.signalChannel_})),e.publishCDNManager_||(e.publishCDNManager_=new eS({client:e,signalChannel:e.signalChannel_})),e.signalChannel_.on(wg,(function(t){e.log_.info("SignalChannel state changed from ".concat(t.prevState," to ").concat(t.state)),e.emitter_.emit(Hb,t)})),e.signalChannel_.on(Sg,(function(t){e.isSignalReady_?(e.reset(),e.emitter_.emit(Gb,t)):(Jm.emit(cv,{client:e,error:t}),n(t))})),e.signalChannel_.on(_g,(function(n){e.tinyId_=n.signalInfo.tinyId,e.isSignalReady_||(e.isSignalReady_=!0,Jm.emit(cv,{client:e}),t())})),e.signalChannel_.on(Pg.PEER_JOIN,e.onPeerJoin,e),e.signalChannel_.on(Pg.PEER_LEAVE,e.onPeerLeave,e),e.signalChannel_.on(Pg.UPDATE_REMOTE_MUTE_STAT,(function(t){Date.now()-e.lastHeartBeatTime_>=1e4&&e.doHeartbeat(),Jm.emit(av,{client:e,data:t.data}),e.onPublishedUserList(t.data),e.onUpdateRemoteMuteStat(t.data)})),e.signalChannel_.on(Pg.CLINET_BANNED,(function(t){var n=t.data.data,r=n.reason;if(Uy.uploadEvent({log:"stat-banned:".concat(r),userId:e.userId_}),r===Au)r="you got banned by account admin";else if(r===Du)r="duplicated userId joining the room";else if(r===Nu)return e.log_.warn("".concat(r," last heart beat time: ").concat(e.lastHeartBeatTime_," interval: ").concat(Date.now()-e.lastHeartBeatTime_,", visibility: ").concat(document.visibilityState)),void e.reJoin();e.log_.error("user was banned because of [".concat(n.reason,"]")),e.reset(),e.onClientBanned(r)})),Jm.emit(lv,{client:e}),e.signalChannel_.connect()}))}},{key:"join",value:(A=i(regeneratorRuntime.mark((function e(t){var n,r,o,i,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.isJoined_){e.next=2;break}throw new Jg({code:Kg.INVALID_OPERATION,message:vh({key:Bp})});case 2:return e.next=4,pb();case 4:if(this.checkSystemResult_=e.sent,(n=gh())||(n=Fu,this.proxy_&&(this.proxy_.startsWith(Mu)?n=Uu:this.proxy_.startsWith(Lu)&&(n=ju))),this.env_=n,Uy.setConfig({env:n,sdkAppId:this.sdkAppId_,userId:this.userId_,roomId:t.roomId}),this.uploadTrtcStats(),r=this.checkSystemResult_.detail,o=r.isH264EncodeSupported,i=r.isVp8EncodeSupported,ab()&&(o||i)){e.next=13;break}throw new Jg({code:Kg.NOT_SUPPORTED,message:vh({key:rh})});case 13:if(this.joinOptions_=t,this.startJoinTimestamp_=Ah(),Jm.emit(Gm,{client:this}),Ny(this.userId_,{eventId:vy,eventDesc:"joining room",timestamp:wa(),userId:this.userId_,tinyId:this.tinyId_}),e.prev=17,this.proxy_||this.schedule_.domains){e.next=21;break}return e.next=21,this.schedule(t.roomId);case 21:return e.next=23,this.initialize(t);case 23:return e.next=25,this.doJoin(t);case 25:this.signalInfo_=this.signalChannel_.getSignalInfo(),Jm.emit(ev,{client:this}),this.joinedTimestamp_=Ah(),a=this.joinedTimestamp_-this.startJoinTimestamp_,Uy.logSuccessEvent({userId:this.userId_,eventType:pd,delta:a}),Uy.logSuccessEvent({userId:this.userId_,eventType:dd}),Uy.uploadEvent({log:"stat-autoplay-dialog:".concat(this.enableAutoPlayDialog_),userId:this.userId_}),Uy.uploadEvent({log:"stat-conv-".concat(lu,"-").concat(location.hostname),userId:this.userId_}),e.next=41;break;case 35:throw e.prev=35,e.t0=e.catch(17),Jm.emit(tv,{client:this,error:e.t0}),Uy.logFailedEvent({userId:this.userId_,eventType:dd,error:e.t0}),this.reset(),e.t0;case 41:case"end":return e.stop()}}),e,this,[[17,35]])}))),function(e){return A.apply(this,arguments)})},{key:"uploadTrtcStats",value:(O=i(regeneratorRuntime.mark((function e(){var t,n,r,o,i,a,s,l,c,u,d,p,f;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,YS.getMicrophones();case 3:r=e.sent,t=r&&r.length,e.next=9;break;case 7:e.prev=7,e.t0=e.catch(0);case 9:return e.prev=9,e.next=12,YS.getCameras();case 12:o=e.sent,n=o&&o.length,e.next=18;break;case 16:e.prev=16,e.t1=e.catch(9);case 18:i={microphone:t,camera:n},a=this.checkSystemResult_.detail,s=a.isH264EncodeSupported,l=a.isVp8EncodeSupported,c=a.isH264DecodeSupported,u=a.isVp8DecodeSupported,d={webRTC:this.basis_.isWebRTCSupported,getUserMedia:this.basis_.isGetUserMediaSupported,webSocket:this.basis_.isWebSocketsSupported,screenShare:this.basis_.isScreenShareSupported,webAudio:this.basis_.isWebAudioSupported,h264Encode:s,h264Decode:c,vp8Encode:l,vp8Decode:u},p={browser:this.basis_.browser,os:this.basis_.os,trtc:d,devices:i},f={isWebCodecSupported:this.basis_.isWebCodecSupported,isMediaSessionSupported:this.basis_.isMediaSessionSupported,isWebTransportSupported:this.basis_.isWebTransportSupported},Uy.uploadEvent({log:"trtcstats-"+JSON.stringify(p),userId:this.userId_}),this.log_.info("TrtcStats-"+JSON.stringify(p)),Uy.uploadEvent({log:"trtcadvancedstats-"+JSON.stringify(f),userId:this.userId_});case 26:case"end":return e.stop()}}),e,this,[[0,7],[9,16]])}))),function(){return O.apply(this,arguments)})},{key:"getVersion",value:function(){var e=this.version_.split(".");return 1e3*parseInt(e[0])+100*parseInt(e[1])+parseInt(e[2])}},{key:"doJoin",value:function(e){var t=this;return new Promise((function(n,r){if(!t.isSignalReady_)throw new Jg({code:Kg.INVALID_OPERATION,message:vh({key:Wp})});t.roomId_=e.roomId,Ch(e.role)||(t.role_=e.role);var o="";Ch(e.privateMapKey)||(o=e.privateMapKey),t.privateMapKey_=o,t.log_.info("Join() => joining room: ".concat(e.roomId," useStringRoomId: ").concat(t.useStringRoomId_," mode: ").concat(t.mode_," role: ").concat(t.role_));var i={roomId:String(e.roomId),useStringRoomId:t.useStringRoomId_,privateMapKey:o,trtcRole:"anchor"===t.role_?Zu:Yu,trtcScene:"live"===t.mode_?qu:Wu,sdpSemantics:t.sdpSemantics_,version:t.version_,ua:navigator&&navigator.userAgent||"",autoSubscribe:t.autoSubscribe_,terminalType:uc?4:sc?2:ic?3:Fc?12:Lc?5:Uc?13:1,netType:Jd[_h()],bussinessInfo:t.bussinessInfo_};t.joinTimeout_=setTimeout((function(){t.log_.error("join room timeout observed"),r(new Jg({code:Kg.JOIN_ROOM_FAILED,message:vh({key:qp})}))}),5e3),Jm.emit(Xm,{client:t}),t.signalChannel_.send(Ag,i),t.signalChannel_.once(Pg.JOIN_ROOM_RESULT,(function(e){clearTimeout(t.joinTimeout_),t.joinTimeout_=-1;var o=e.data,i=o.code,a=o.message;Jm.emit(Qm,{client:t,code:i}),0===i?(t.isJoined_=!0,t.log_.info("Join room success, start heartbeat"),t.startHeartbeat(),t.badCaseDetector_&&t.badCaseDetector_.start(),t.syncUserList(),t.startSyncUserListInterval(),n()):(t.log_.error("Join room failed result: "+i+" error: "+a),r(new Jg({code:Kg.JOIN_ROOM_FAILED,extraCode:i,message:vh({key:Zp,data:{error:a,code:i}})})))}))}))}},{key:"connectSignalBeforeReJoin",value:function(){var e=this;return new Promise((function(t,n){e.log_.warn("connectSignalBeforeReJoin() try to connect signal before reJoin"),e.isSignalReady_=!1,e.signalChannel_.close(),e.signalChannel_.once(_g,(function(n){e.log_.warn("connectSignalBeforeReJoin() signal setup successfully"),t()})),e.signalChannel_.once(Sg,(function(t){e.log_.warn("connectSignalBeforeReJoin() signal setup failed"),n(t)})),e.signalChannel_.connect()}))}},{key:"reJoin",value:(P=i(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isJoined_){e.next=3;break}return this.log_.warn("reJoin() you haven't join room yet, abort reJoin"),e.abrupt("return");case 3:return this.isJoined_=!1,e.prev=4,this.log_.warn("reJoin() try to reJoin room: ".concat(this.joinOptions_.roomId)),this.subscriptionManager_&&this.subscriptionManager_.markAllStream(),e.next=9,this.connectSignalBeforeReJoin();case 9:return e.next=11,this.doJoin(t(t({},this.joinOptions_),{},{role:this.role_}));case 11:if(this.log_.warn("reJoin() reJoin successfully"),Uy.logSuccessEvent({userId:this.userId_,eventType:fd}),this.checkConnectionsToReconnect(),e.prev=14,!this.uplinkConnection_||!this.localStream_||this.uplinkConnection_.getIsReconnecting()){e.next=18;break}return e.next=18,this.republish();case 18:e.next=22;break;case 20:e.prev=20,e.t0=e.catch(14);case 22:e.next=29;break;case 24:e.prev=24,e.t1=e.catch(4),this.log_.warn("reJoin() reJoin failed"+e.t1),Uy.logFailedEvent({userId:this.userId_,eventType:fd,error:e.t1}),this.emitter_.emit(Gb,new Jg({code:Kg.JOIN_ROOM_FAILED,message:vh({key:Yp,data:{roomId:this.joinOptions_.roomId}})}));case 29:case"end":return e.stop()}}),e,this,[[4,24],[14,20]])}))),function(){return P.apply(this,arguments)})},{key:"republish",value:(R=i(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,this.log_.warn("republish() try to re-publish localStream"),t=this.localStream_,e.next=5,this.doUnpublish(t);case 5:return e.next=7,this.publish(t);case 7:this.log_.warn("republish() re-publish localStream successfully"),e.next=14;break;case 10:throw e.prev=10,e.t0=e.catch(0),this.log_.warn("republish() re-publish localStream failed "+e.t0),e.t0;case 14:case"end":return e.stop()}}),e,this,[[0,10]])}))),function(){return R.apply(this,arguments)})},{key:"leave",value:(E=i(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Jm.emit(nv,{client:this}),Ny(this.userId_,{eventId:gy,eventDesc:"leaving room",timestamp:wa(),userId:this.userId_,tinyId:this.tinyId_}),e.prev=2,e.next=5,this.doHeartbeat();case 5:e.next=9;break;case 7:e.prev=7,e.t0=e.catch(2);case 9:this.doLeave(),Jm.emit(ov,{client:this}),Uy.logSuccessEvent({userId:this.userId_,eventType:hd}),t=Math.floor((Ah()-this.joinedTimestamp_)/1e3),Uy.logSuccessEvent({userId:this.userId_,eventType:md,delta:t});case 14:case"end":return e.stop()}}),e,this,[[2,7]])}))),function(){return E.apply(this,arguments)})},{key:"doLeave",value:function(){this.isJoined_&&(Jm.emit(rv,{client:this}),this.log_.info("leave() => leaving room"),this.signalChannel_.send(Dg),this.reset())}},{key:"clearNetworkQuality",value:function(){this.networkQuality_&&(this.networkQuality_.stop(),this.networkQuality_=null)}},{key:"closeConnections",value:function(){var e=this;this.connections_.forEach((function(t){e.closeDownLink(t.getTinyId())}))}},{key:"destroy",value:function(){if(this.isJoined_)throw this.log_.warn("please call leave() before destroy() client"),new Jg({code:Kg.INVALID_OPERATION,message:vh({key:Kp})});this.log_.info("destroying SignalChannel"),this.signalChannel_&&(this.signalChannel_.close(),this.signalChannel_=null)}},{key:"reset",value:function(){this.keyPointManager_&&this.keyPointManager_.prepareReport(),this.mixTranscodeManager_&&(this.mixTranscodeManager_.stop(),this.mixTranscodeManager_=null),this.publishCDNManager_&&(this.publishCDNManager_=null),this.userMap_.clear(),this.stopSyncUserListInterval(),this.stopHeartbeat(),this.closeConnections(),this.mutedStates_.clear(),this.clearNetworkQuality(),this.badCaseDetector_&&this.callDurationCalculator_&&this.uploadAllCallStats(),this.closeUplink(),this.isJoined_=!1,this.isSignalReady_=!1,this.destroy()}},{key:"startSyncUserListInterval",value:function(){-1===this.syncUserListInterval_&&(this.syncUserListInterval_=nb.setInterval(this.syncUserList.bind(this),1e4))}},{key:"stopSyncUserListInterval",value:function(){nb.clearInterval(this.syncUserListInterval_),this.syncUserListInterval_=-1}},{key:"syncUserList",value:(T=i(regeneratorRuntime.mark((function e(){var t,n=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.getUserList();case 3:t=e.sent,0!==this.userMap_.size&&this.userMap_.forEach((function(e){t.findIndex((function(t){return t.userId===e.userId}))<0&&(n.log_.info("peer leave detected: ".concat(e.userId)),n.cleanUser({userId:e.userId,tinyId:e.tinyId}))})),t.forEach((function(e){var t=e.userId;n.userMap_.has(t)||t===n.userId_||(n.userMap_.set(t,e),n.emitter_.emit(Bb,{userId:t}))})),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),this.log_.warn("sync user list failed: "+e.t0);case 11:case"end":return e.stop()}}),e,this,[[0,8]])}))),function(){return T.apply(this,arguments)})},{key:"getUserList",value:function(){var e=this;return new Promise((function(t,n){e.signalChannel_.send(Zg),e.signalChannel_.once(Pg.USER_LIST_RES,(function(e){var r=e.data,o=r.code,i=r.message;if(0!==o){var a=vh({key:dh,data:{signalResponse:Pg.USER_LIST_RES,code:o,message:i}});n(a)}else{var s=(e.data.data&&e.data.data.userList||[]).map((function(e){var t=e.userId,n=e.srcTinyId,r=e.role;return new Gk({userId:t,tinyId:n,role:r})}));t(s)}})),setTimeout(n,2e3)}))}},{key:"publish",value:(I=i(regeneratorRuntime.mark((function e(t){var n,r,o,i,a=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.setPublishState(Xd),this.isPublishing_=!0,n=Ah(),Jm.emit(sv,{client:this,stream:t}),this.log_.info("publish() => publishing local stream"),r=new zk({userId:this.userId_,tinyId:this.tinyId_,client:this,isUplink:!0,signalChannel:this.signalChannel_}),t.setConnection(r),r.initialize(),r.on(Mb,(function(e){var t=e.getCode();t!==Kg.ICE_TRANSPORT_ERROR&&(t===Kg.UPLINK_RECONNECTION_FAILED&&a.closeUplink(),a.emitter_.emit(Gb,e))})),e.prev=9,e.next=12,r.publish(t);case 12:this.localStream_=e.sent,this.localStream_.getBeautyStatus()&&this.log_.info("beauty stream is published successfully"),this.log_.info("local stream is published successfully"),this.isPublishing_=!1,t.setPublishState(Qd),this.uplinkConnection_=r,o=Ah(),i=o-n,Uy.logSuccessEvent({userId:this.userId_,eventType:vd}),Uy.logSuccessEvent({userId:this.userId_,eventType:gd,delta:i}),t.hasAudio()&&Ny(this.userId_,{eventId:Xg,eventDesc:"publish audio track",timestamp:wa(),userId:this.userId_,tinyId:this.tinyId_}),t.hasVideo()&&Ny(this.userId_,{eventId:Gg,eventDesc:"publish video track",timestamp:wa(),userId:this.userId_,tinyId:this.tinyId_}),this.networkQuality_&&this.networkQuality_.setUplinkConnection(this.uplinkConnection_),this.deviceDetector_&&this.deviceDetector_.setLocalStream(this.localStream_),Jm.emit(Cv,{localStream:this.localStream_,client:this}),this.notPublishWithoutH264Supported_=!1,e.next=39;break;case 30:throw e.prev=30,e.t0=e.catch(9),e.t0 instanceof Jg&&e.t0.getCode()===Kg.NOT_SUPPORTED_H264&&(this.notPublishWithoutH264Supported_=!0),t.setPublishState(Gd),r.close(),this.log_.error("failed to publish stream "+e.t0),this.isPublishing_=!1,Uy.logFailedEvent({userId:this.userId_,eventType:vd,error:e.t0}),e.t0;case 39:case"end":return e.stop()}}),e,this,[[9,30]])}))),function(e){return I.apply(this,arguments)})},{key:"unpublish",value:(x=i(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.log_.info("unpublish() => unpublishing local stream"),e.prev=1,e.next=4,this.doUnpublish();case 4:Uy.logSuccessEvent({userId:this.userId_,eventType:yd}),e.next=11;break;case 7:throw e.prev=7,e.t0=e.catch(1),Uy.logFailedEvent({userId:this.userId_,eventType:yd,error:e.t0}),e.t0;case 11:case"end":return e.stop()}}),e,this,[[1,7]])}))),function(){return x.apply(this,arguments)})},{key:"doUnpublish",value:function(){var e=this;return this.signalChannel_.sendWaitForResponse({command:Fg,commandDesc:"unpublish",responseCommand:Pg.UNPUBLISH_RESULT}).then((function(){e.closeUplink()})).catch((function(){e.closeUplink()}))}},{key:"closeUplink",value:function(){this.uplinkConnection_&&(this.uplinkConnection_.getIsReconnecting()&&this.uplinkConnection_.stopReconnection(),this.uplinkConnection_.close(),this.uplinkConnection_=null,this.networkQuality_&&this.networkQuality_.setUplinkConnection(null),this.localStream_.hasAudio()&&Ny(this.userId_,{eventId:ey,eventDesc:"unpublish audio track",timestamp:wa(),userId:this.userId_,tinyId:this.tinyId_}),this.localStream_.hasVideo()&&Ny(this.userId_,{eventId:Qg,eventDesc:"unpublish video track",timestamp:wa(),userId:this.userId_,tinyId:this.tinyId_}),this.localStream_.setConnection(null),this.localStream_=null,this.deviceDetector_&&this.deviceDetector_.setLocalStream(null))}},{key:"closeDownLink",value:function(e){var t=this.connections_.get(e);t&&(t.getIsReconnecting()&&t.stopReconnection(),this.subscriptionManager_&&this.subscriptionManager_.delete(t.getUserId()),t.close(),this.connections_.delete(e),this.mutedStates_.delete(e))}},{key:"subscribe",value:(C=i(regeneratorRuntime.mark((function e(t,n){var r,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.log_.info("subscribe() => subscribe to [".concat(t.getUserId(),"] ").concat(t.getType()," stream with options: ").concat(JSON.stringify(n))),Ch(n)&&(n={audio:!0,video:!0}),Ch(n.video)&&(n.video=!0),Ch(n.audio)&&(n.audio=!0),e.prev=4,r=t.getConnection(),Jm.emit(bv,{client:this,stream:t}),e.next=9,r.subscribe(t,n);case 9:this.subscriptionManager_&&this.subscriptionManager_.addSubscriptionRecord(t.getUserId(),t,n),this.notSubscribeWithoutH264Supported_=!1,Uy.logSuccessEvent({userId:this.userId_,eventType:bd}),e.next=22;break;case 14:throw e.prev=14,e.t0=e.catch(4),(o=e.t0 instanceof Jg?e.t0.getCode():Kg.UNKNOWN)===Kg.NOT_SUPPORTED_H264&&(this.notSubscribeWithoutH264Supported_=!0),i=new Jg({code:o,message:vh({key:nf,data:{message:e.t0.message}})}),Uy.logFailedEvent({userId:this.userId_,eventType:bd,error:i}),this.log_.error(i),i;case 22:case"end":return e.stop()}}),e,this,[[4,14]])}))),function(e,t){return C.apply(this,arguments)})},{key:"unsubscribe",value:(k=i(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.log_.info("unsubscribe() => unsubscribe to [".concat(t.getUserId(),"] ").concat(t.getType()," stream")),e.prev=1,n=t.getConnection(),e.next=5,n.unsubscribe(t);case 5:this.subscriptionManager_&&this.subscriptionManager_.addUnsubscriptionRecord(t.getUserId(),t),Jm.emit(wv,{client:this,stream:t}),Uy.logSuccessEvent({userId:this.userId_,eventType:_d}),e.next=14;break;case 10:throw e.prev=10,e.t0=e.catch(1),Uy.logFailedEvent({userId:this.userId_,eventType:_d,error:e.t0}),e.t0;case 14:case"end":return e.stop()}}),e,this,[[1,10]])}))),function(e){return k.apply(this,arguments)})},{key:"switchRole",value:(w=i(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.role_!==t){e.next=2;break}return e.abrupt("return");case 2:if("audience"!==t||!this.localStream_){e.next=5;break}return e.next=5,this.unpublish(this.localStream_);case 5:return this.log_.info("switchRole() => switch role to: "+t),e.next=8,this.doSwitchRole(t);case 8:case"end":return e.stop()}}),e,this)}))),function(e){return w.apply(this,arguments)})},{key:"doSwitchRole",value:function(e){var t=this;return new Promise((function(n,r){var o={role:"anchor"===e?Zu:Yu};t.log_.info("switchRole signal data: "+JSON.stringify(o));var i=setTimeout((function(){t.log_.error("switchRole timeout observed"),t.signalChannel_.off(Pg.SWITCH_ROLE_RES,a),r(new Jg({code:Kg.SWITCH_ROLE_FAILED,message:vh({key:af})}))}),5e3),a=function(o){clearTimeout(i);var a=o.data,s=a.code,l=a.message;0===s?(t.role_=e,n()):(t.log_.error("switchRole failed, errCode: ".concat(s,", errMsg: ").concat(l)),r(new Jg({code:Kg.SWITCH_ROLE_FAILED,message:vh({key:sf,data:{errMsg:l,errCode:s}})})))};t.signalChannel_.once(Pg.SWITCH_ROLE_RES,a),t.signalChannel_.send(Yg,o)}))}},{key:"on",value:function(e,t,n){this.emitter_.on(e,t,n)}},{key:"off",value:function(e,t,n){"*"===e?this.emitter_.removeAllListeners():this.emitter_.off(e,t,n)}},{key:"getRemoteMutedState",value:function(){var e=this,n=[];return this.mutedStates_.forEach((function(r,o,i){var a=e.connections_.get(o);a&&n.push(t({userId:a.getUserId()},r))})),n}},{key:"getTransportStats",value:(y=i(regeneratorRuntime.mark((function e(){var t,n,r,o,i,a,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t={rtt:0,downlinksRTT:{}},!this.uplinkConnection_){e.next=6;break}return e.next=4,this.stats_.getSenderStats(this.uplinkConnection_);case 4:n=e.sent,t.rtt=n.rtt;case 6:r=S(this.connections_),e.prev=7,r.s();case 9:if((o=r.n()).done){e.next=17;break}return(i=b(o.value,2))[0],a=i[1],e.next=13,this.stats_.getReceiverStats(a);case 13:s=e.sent,t.downlinksRTT[s.userId]=s.rtt;case 15:e.next=9;break;case 17:e.next=22;break;case 19:e.prev=19,e.t0=e.catch(7),r.e(e.t0);case 22:return e.prev=22,r.f(),e.finish(22);case 25:return e.abrupt("return",t);case 26:case"end":return e.stop()}}),e,this,[[7,19,22,25]])}))),function(){return y.apply(this,arguments)})},{key:"getLocalAudioStats",value:(g=i(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((t={})[this.userId_]={bytesSent:0,packetsSent:0},!this.uplinkConnection_){e.next=7;break}return e.next=5,this.stats_.getSenderStats(this.uplinkConnection_);case 5:n=e.sent,t[this.userId_]={bytesSent:n.audio.bytesSent,packetsSent:n.audio.packetsSent};case 7:return e.abrupt("return",t);case 8:case"end":return e.stop()}}),e,this)}))),function(){return g.apply(this,arguments)})},{key:"getLocalVideoStats",value:(v=i(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((t={})[this.userId_]={bytesSent:0,packetsSent:0,framesEncoded:0,framesSent:0,frameWidth:0,frameHeight:0},!this.uplinkConnection_){e.next=7;break}return e.next=5,this.stats_.getSenderStats(this.uplinkConnection_);case 5:n=e.sent,t[this.userId_]={bytesSent:n.video.bytesSent,packetsSent:n.video.packetsSent,framesEncoded:n.video.framesEncoded,framesSent:n.video.framesSent,frameWidth:n.video.frameWidth,frameHeight:n.video.frameHeight};case 7:return e.abrupt("return",t);case 8:case"end":return e.stop()}}),e,this)}))),function(){return v.apply(this,arguments)})},{key:"getRemoteAudioStats",value:(m=i(regeneratorRuntime.mark((function e(){var t,n,r,o,i,a,s,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t={},n=S(this.connections_),e.prev=2,n.s();case 4:if((r=n.n()).done){e.next=13;break}return(o=b(r.value,2))[0],i=o[1],a=i.getDelay(),s=a.audioDelay,e.next=9,this.stats_.getReceiverStats(i);case 9:(l=e.sent).hasAudio&&(t[l.userId]={bytesReceived:l.audio.bytesReceived,packetsReceived:l.audio.packetsReceived,packetsLost:l.audio.packetsLost,end2EndDelay:s});case 11:e.next=4;break;case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(2),n.e(e.t0);case 18:return e.prev=18,n.f(),e.finish(18);case 21:return e.abrupt("return",t);case 22:case"end":return e.stop()}}),e,this,[[2,15,18,21]])}))),function(){return m.apply(this,arguments)})},{key:"getRemoteVideoStats",value:(h=i(regeneratorRuntime.mark((function e(){var t,n,r,o,i,a,s,l,c,u=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=u.length>0&&void 0!==u[0]?u[0]:Xu,n={},r=S(this.connections_),e.prev=3,r.s();case 5:if((o=r.n()).done){e.next=15;break}return(i=b(o.value,2))[0],a=i[1],e.next=9,this.stats_.getReceiverStats(a);case 9:s=e.sent,l=a.getDelay(),c=l.videoDelay,t===Xu&&s.hasVideo&&(n[s.userId]={bytesReceived:s.video.bytesReceived,packetsReceived:s.video.packetsReceived,packetsLost:s.video.packetsLost,framesDecoded:s.video.framesDecoded,frameWidth:s.video.frameWidth,frameHeight:s.video.frameHeight,end2EndDelay:c}),t===Qu&&s.hasAuxiliary&&(n[s.userId]={bytesReceived:s.auxiliary.bytesReceived,packetsReceived:s.auxiliary.packetsReceived,packetsLost:s.auxiliary.packetsLost,framesDecoded:s.auxiliary.framesDecoded,frameWidth:s.auxiliary.frameWidth,frameHeight:s.auxiliary.frameHeight,end2EndDelay:c});case 13:e.next=5;break;case 15:e.next=20;break;case 17:e.prev=17,e.t0=e.catch(3),r.e(e.t0);case 20:return e.prev=20,r.f(),e.finish(20);case 23:return e.abrupt("return",n);case 24:case"end":return e.stop()}}),e,this,[[3,17,20,23]])}))),function(){return h.apply(this,arguments)})},{key:"getSdpSemantics",value:function(){return this.sdpSemantics_}},{key:"getIceServers",value:function(){return 0===this.turnServers_.length&&this.schedule_.iceServers?this.schedule_.iceServers:this.turnServers_}},{key:"getConnections",value:function(){return this.connections_}},{key:"getMutedStates",value:function(){return this.mutedStates_}},{key:"startHeartbeat",value:function(){-1===this.heartbeat_&&(this.log_.info("startHeartbeat..."),this.heartbeat_=nb.setInterval(this.doHeartbeat.bind(this),2e3))}},{key:"stopHeartbeat",value:function(){-1!==this.heartbeat_&&(this.log_.info("stopHeartbeat"),nb.clearInterval(this.heartbeat_),this.heartbeat_=-1,this.lastHeartBeatTime_=-1)}},{key:"doHeartbeat",value:(f=i(regeneratorRuntime.mark((function e(){var n,r,o,i,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.badCaseDetector_.getMonitorFreeze(),e.next=3,this.stats_.getStatsReport({uplinkConnection:this.uplinkConnection_,downlinkConnections:this.connections_,freezeMap:n});case 3:if(r=e.sent,Jm.emit(iv,{client:this,stats:r}),this.badCaseDetector_.resetMonitor(),this.signalChannel_){e.next=8;break}return e.abrupt("return");case 8:o=this.signalChannel_.isConnected()?My(this.userId_):[],i=t(t({str_sdk_version:"4.12.3",uint64_datetime:(new Date).getTime(),msg_user_info:{str_identifier:this.userId_,uint64_tinyid:this.tinyId_},msg_device_info:{uint32_terminal_type:15,str_device_name:navigator.platform,str_os_version:"",uint32_net_type:Jd[this.networkType_]}},r),{},{msg_event_msg:o}),this.signalChannel_.send(Ng,i),a=Date.now(),this.lastHeartBeatTime_>0&&a-this.lastHeartBeatTime_>1e4&&this.log_.warn("heartbeat took ".concat(a-this.lastHeartBeatTime_)),this.lastHeartBeatTime_=a,this.isRelayMaybeFailed()&&this.reJoin();case 15:case"end":return e.stop()}}),e,this)}))),function(){return f.apply(this,arguments)})},{key:"onRemoteStreamAdded",value:function(e){var t=e.content,n=t.userId,r=t.tinyId,o=t.audio,i=t.bigVideo,a=t.auxVideo,s=t.smallVideo;if(null!==n){this.userMap_.has(n)||(this.userMap_.set(n,new Gk({userId:n,tinyId:r,role:"anchor"})),this.emitter_.emit(Bb,{userId:n}));var l=this.connections_.get(r);if(l){if(l.getIsReconnecting())return;this.log_.warn("duplicated stream-added observed, rebuild the connection"),l.close(),this.connections_.delete(r)}var c={audio:o,video:i,auxiliary:a,smallVideo:s};this.log_.info("remote peer [".concat(n,"] published stream. trackState: ").concat(JSON.stringify(c))),this.createDownlinkConnection({userId:n,tinyId:r,trackState:c})}else this.log_.warn("received null userId on stream added")}},{key:"createDownlinkConnection",value:function(e){var t=this,n=e.userId,r=e.tinyId,o=e.trackState,i=new Wk({userId:n,tinyId:r,client:this,isUplink:!1,signalChannel:this.signalChannel_,autoSubscribe:this.autoSubscribe_,trackState:o});this.connections_.set(r,i),this.installDownlinkEvents(i,n,r),this.autoSubscribe_?(i.initialize(),i.connect().catch((function(){var e=i.getTrackState();i.getMainStream()||!e.audio&&!e.video||t.initRemoteStream({type:Xu,userId:n,downlinkConnection:i}),!i.getAuxStream()&&e.auxiliary&&t.initRemoteStream({type:Qu,userId:n,downlinkConnection:i})}))):((o.audio||o.video)&&this.initRemoteStream({type:Xu,userId:n,downlinkConnection:i}),o.auxiliary&&this.initRemoteStream({type:Qu,userId:n,downlinkConnection:i}))}},{key:"initRemoteStream",value:function(e){var t=e.type,n=e.userId,r=e.downlinkConnection,o=new Mk({type:t,userId:n,client:this});o.setConnection(r),r.setRemoteStream(t===Xu?Ku:Ju,o),o.setIsStreamAddedEventEmitted(!0),Jm.emit(yv,{client:this,stream:o}),this.emitter_.emit(Fb,{stream:o})}},{key:"installDownlinkEvents",value:function(e,t,n){var r=this;e.on(Ob,(function(e){e.stream.setIsStreamAddedEventEmitted(!0),Jm.emit(yv,{client:r,stream:e.stream}),r.emitter_.emit(Fb,{stream:e.stream})})),e.on(Ab,(function(e){e.stream.stop(),e.stream.setIsStreamAddedEventEmitted(!1),r.subscriptionManager_&&r.subscriptionManager_.deleteAutoRecoveryFlag(e.stream.getUserId(),e.stream.getType()),Jm.emit(Sv,{client:r,stream:e.stream}),r.emitter_.emit(Ub,{stream:e.stream})})),e.on(Db,(function(e){Jm.emit(kv,{client:r,stream:e.stream}),r.emitter_.emit(jb,{stream:e.stream})})),e.on(Nb,(function(e){Jm.emit(_v,{client:r,stream:e.stream}),r.emitter_.emit(Vb,{stream:e.stream})})),e.on(Mb,(function(e){var t=e.getCode();t!==Kg.ICE_TRANSPORT_ERROR&&(t===Kg.DOWNLINK_RECONNECTION_FAILED&&r.closeDownLink(n),r.emitter_.emit(Gb,e))}))}},{key:"onPeerJoin",value:function(e){var t=e.data.data,n=t.srcTinyId,r=t.userId,o=t.role;this.userMap_.has(r)||(this.userMap_.set(r,new Gk({userId:r,tinyId:n,role:o})),this.emitter_.emit(Bb,{userId:r}))}},{key:"onPeerLeave",value:function(e){var t=e.data.data,n=t.srcTinyId,r=t.userId,o=t.reason,i=void 0===o?0:o;this.log_.info("peer leave [".concat(r,"]: ").concat(vp[i])),this.cleanUser({userId:r,tinyId:n})}},{key:"cleanUser",value:function(e){var t=e.userId,n=e.tinyId;this.userMap_.delete(t),this.closeDownLink(n),this.emitter_.emit($b,{userId:t})}},{key:"onPublishedUserList",value:function(e){var t=this;try{var n=e.data.userList.map((function(e){return e.userId}));this.connections_.forEach((function(e){var r=e.getUserId(),o=e.getTinyId();n.findIndex((function(e){return e===r}))<0&&(t.log_.info("peer unpublished detected [".concat(r,"]")),t.closeDownLink(o))})),e.data.userList.forEach((function(e){var n=e.userId,r=e.srcTinyId,o=e.flag;if(n!==t.userId_){var i=!!(1&o),a=!!(8&o),s=!!(4&o),l=!!(2&o);if(t.connections_.has(r)){var c=t.connections_.get(r).getTrackState(),u=c.audio,d=c.video,p=c.auxiliary;!d&&i&&Jm.emit(gv,{client:t,tinyId:r,userId:n,action:Yd,kind:mu}),!u&&a&&Jm.emit(gv,{client:t,tinyId:r,userId:n,action:Yd,kind:hu}),!p&&s&&Jm.emit(gv,{client:t,tinyId:r,userId:n,action:Yd,kind:vu}),d&&!i&&Jm.emit(gv,{client:t,tinyId:r,userId:n,action:Kd,kind:mu}),u&&!a&&Jm.emit(gv,{client:t,tinyId:r,userId:n,action:Kd,kind:hu}),p&&!s&&Jm.emit(gv,{client:t,tinyId:r,userId:n,action:Kd,kind:vu})}else t.log_.info("peer published detected [".concat(n,"]")),t.onRemoteStreamAdded({content:{audio:a,bigVideo:i,auxVideo:s,smallVideo:l,userId:n,tinyId:r}})}}))}catch(KS){}}},{key:"onUpdateRemoteMuteStat",value:function(e){var t=this,n=e.data;(n&&n.userList||[]).forEach((function(e){var n=e.srcTinyId,r=e.userId;if(0!==n&&n!==t.tinyId_){var o=t.connections_.get(n);if(o){var i=o.getMainStream();if(i&&i.getIsStreamAddedEventEmitted()){var a=!!(1&e.flag),s=!!(8&e.flag),l=!!(2&e.flag),c=!!(64&e.flag),u=!!(16&e.flag),d=t.mutedStates_.get(n);if(void 0===d)return t.mutedStates_.set(n,{hasAudio:s,hasVideo:a,hasSmall:l,audioMuted:c,videoMuted:u}),a?u?t.emitter_.emit(Wb,{userId:r}):t.emitter_.emit(Zb,{userId:r}):t.emitter_.emit(Wb,{userId:r}),void(s?c?t.emitter_.emit(zb,{userId:r}):t.emitter_.emit(qb,{userId:r}):t.emitter_.emit(zb,{userId:r}));var p=!c&&s;(!d.audioMuted&&d.hasAudio)!==p&&(p?t.emitter_.emit(qb,{userId:r}):t.emitter_.emit(zb,{userId:r}));var f=!u&&a;(!d.videoMuted&&d.hasVideo)!==f&&(f?t.emitter_.emit(Zb,{userId:r}):t.emitter_.emit(Wb,{userId:r})),t.mutedStates_.set(n,{hasAudio:s,hasVideo:a,hasSmall:l,audioMuted:c,videoMuted:u})}}else t.mutedStates_.delete(n)}}))}},{key:"onClientBanned",value:function(e){this.emitter_.emit(Yb,new Jg({code:Kg.CLIENT_BANNED,message:vh({key:lf,data:{reason:e}})}))}},{key:"getEnv",value:function(){return this.env_}},{key:"getSubscriptionManager",value:function(){return this.subscriptionManager_}},{key:"startPublishCDNStream",value:(p=i(regeneratorRuntime.mark((function e(){var t,n=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.length>0&&void 0!==n[0]?n[0]:{},this.localStream_){e.next=3;break}throw new Jg({code:Kg.INVALID_OPERATION,message:vh({key:cf})});case 3:return this.log_.info("startPublishCDNStream params: ".concat(JSON.stringify(t))),e.next=6,this.publishCDNManager_.startPublishTencentCDN(t);case 6:if(!(t.appId&&t.bizId&&t.url)){e.next=9;break}return e.next=9,this.publishCDNManager_.startPublishGivenCDN(t);case 9:case"end":return e.stop()}}),e,this)}))),function(){return p.apply(this,arguments)})},{key:"stopPublishCDNStream",value:(d=i(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.publishCDNManager_.getIsPublishingTencentCDN()){e.next=2;break}throw new Jg({code:Kg.INVALID_OPERATION,message:vh({key:uf})});case 2:return this.log_.info("stopPublishCDNStream"),e.next=5,this.publishCDNManager_.stopPublishTencentCDN();case 5:if(!this.publishCDNManager_.getIsPublishingGivenCDN()){e.next=8;break}return e.next=8,this.publishCDNManager_.stopPublishGivenCDN();case 8:case"end":return e.stop()}}),e,this)}))),function(){return d.apply(this,arguments)})},{key:"startMixTranscode",value:(u=i(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isJoined_&&this.mixTranscodeManager_){e.next=2;break}throw new Jg({code:Kg.INVALID_OPERATION,message:vh({key:hf})});case 2:return Ch(t.mode)&&(t.mode=Vd.MANUAL),e.prev=3,this.log_.info("startMixTranscode with config ".concat(JSON.stringify(t))),Uy.uploadEvent({log:"mix-transcode-mode:".concat(t.mode),userId:this.userId_}),e.next=8,this.mixTranscodeManager_.startMixTranscode(t);case 8:Uy.logSuccessEvent({userId:this.userId_,eventType:Dd}),e.next=15;break;case 11:throw e.prev=11,e.t0=e.catch(3),Uy.logFailedEvent({userId:this.userId_,eventType:Dd,error:e.t0}),e.t0;case 15:case"end":return e.stop()}}),e,this,[[3,11]])}))),function(e){return u.apply(this,arguments)})},{key:"stopMixTranscode",value:(c=i(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isJoined_&&this.mixTranscodeManager_){e.next=2;break}throw new Jg({code:Kg.INVALID_OPERATION,message:vh({key:mf})});case 2:return e.prev=2,e.next=5,this.mixTranscodeManager_.stopMixTranscode();case 5:Uy.logSuccessEvent({userId:this.userId_,eventType:Nd}),e.next=12;break;case 8:throw e.prev=8,e.t0=e.catch(2),Uy.logFailedEvent({userId:this.userId_,eventType:Nd,error:e.t0}),e.t0;case 12:case"end":return e.stop()}}),e,this,[[2,8]])}))),function(){return c.apply(this,arguments)})},{key:"getSystemResult",value:function(){return this.checkSystemResult_}},{key:"enableAudioVolumeEvaluation",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2e3,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!Ih(t))throw new Jg({code:Kg.INVALID_PARAMETER,message:vh({key:vf})});if(this.log_.info("enableAudioVolumeEvaluation with interval: "+t),t<=0)return this.enableAudioVolumeEvaluation_=!1,nb.clearInterval(this.audioVolumeIntervalId_),void(this.audioVolumeIntervalId_=null);t=Math.floor(Math.max(t,16)),Jm.emit(pv,{interval:t}),this.audioVolumeIntervalId_&&(nb.clearInterval(this.audioVolumeIntervalId_),this.audioVolumeIntervalId_=null),this.enableAudioVolumeEvaluation_=!0,this.audioVolumeIntervalId_=nb.setInterval((function(){var t=[];if(e.localStream_){var n=Math.floor(100*e.localStream_.getAudioLevel());t.push({userId:e.userId_,audioVolume:n,stream:e.localStream_})}e.connections_.forEach((function(e){var n=e.getSubscribedMainStream();if(n){var r=Math.floor(100*n.getAudioLevel());t.push({userId:e.getUserId(),audioVolume:r,stream:n})}})),e.emitter_.emit(Jb,{result:t})}),t,n)}},{key:"uploadAllCallStats",value:function(){var e=this;this.callDurationCalculator_.getDurationMap().forEach((function(t,n){var r={userId:t.userId,type:t.type,duration:e.callDurationCalculator_.getDuration(n,mu),dataFreeze:e.badCaseDetector_.getDataFreezeDuration(n).dataFreeze,renderFreeze:e.badCaseDetector_.getRenderFreezeDuration(n).renderFreeze};Uy.uploadEvent({log:"callStats-"+JSON.stringify(r),userId:e.userId_})})),this.badCaseDetector_.stop(),this.callDurationCalculator_.reset()}},{key:"enableSmallStream",value:(s=i(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.isPublished()&&!this.isPublishing_){e.next=2;break}throw new Jg({code:Kg.INVALID_OPERATION,message:vh({key:gf})});case 2:if(!Eb()){e.next=7;break}this.setIsEnableSmallStream(!0),this.log_.info("SmallStream successfully enabled"),e.next=8;break;case 7:throw new Jg({code:Kg.INVALID_OPERATION,message:vh({key:bf})});case 8:case"end":return e.stop()}}),e,this)}))),function(){return s.apply(this,arguments)})},{key:"disableSmallStream",value:(o=i(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.isPublished()&&!this.isPublishing_){e.next=2;break}throw new Jg({code:Kg.INVALID_OPERATION,message:vh({key:yf})});case 2:this.setIsEnableSmallStream(!1),this.log_.info("SmallStream successfully disabled");case 4:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"setSmallStreamProfile",value:function(e){var t=this;e&&e.framerate&&(e.frameRate=e.framerate),Object.keys(this.smallStreamConfig_).forEach((function(n){e[n]&&(t.smallStreamConfig_[n]=e[n])})),this.log_.info("setSmallStreamProfile: bitrate=".concat(this.smallStreamConfig_.bitrate,", frameRate=").concat(this.smallStreamConfig_.frameRate,", height=").concat(this.smallStreamConfig_.height,", width=").concat(this.smallStreamConfig_.width));var n=this.smallStreamConfig_,r=n.width,o=n.height,i=n.bitrate,a=n.frameRate;if(r<0||o<0||i<0||a<0)throw new Jg({code:Kg.INVALID_PARAMETER,message:vh({key:_f})})}},{key:"setRemoteVideoStreamType",value:(r=i(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=n,e.next="big"===e.t0||"small"===e.t0?3:6;break;case 3:return e.next=5,this.changeVideoType(t,n);case 5:case 6:return e.abrupt("break",7);case 7:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"changeVideoType",value:(n=i(regeneratorRuntime.mark((function e(t,n){var r,o,i,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t instanceof Mk){e.next=2;break}throw new Jg({code:Kg.INVALID_PARAMETER,message:vh({key:wf})});case 2:if(t.getConnection()){e.next=4;break}throw new Jg({code:Kg.INVALID_OPERATION,message:vh({key:tf})});case 4:if((r=t.getConnection().getSubscribeState()).video){e.next=8;break}if(r.smallVideo){e.next=8;break}throw new Jg({code:Kg.INVALID_OPERATION,message:vh({key:kf})});case 8:if(o=this.getRemoteMutedState().filter((function(e){return e.userId===t.getUserId()}))[0],"small"!==n||o&&o.hasSmall){e.next=11;break}throw new Jg({code:Kg.INVALID_OPERATION,message:vh({key:Sf})});case 11:return this.log_.info("change video type: streamType=".concat(t.getType(),", set ").concat(n)),i=t.getConnection(),a={video:"big"===n,smallVideo:"small"===n},e.next=16,i.subscribe(t,a);case 16:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"setIsEnableSmallStream",value:function(e){this.isEnableSmallStream_=e}},{key:"getIsEnableSmallStream",value:function(){return this.isEnableSmallStream_}},{key:"smallStreamConfig",get:function(){return this.smallStreamConfig_}},{key:"isPublished",value:function(){return!!this.localStream_}},{key:"getUplinkConnection",value:function(){return this.uplinkConnection_}},{key:"getLocalStream",value:function(){return this.localStream_}},{key:"getMode",value:function(){return this.mode_}},{key:"getBadCaseDetector",value:function(){return this.badCaseDetector_}},{key:"getCallDurationCalculator",value:function(){return this.callDurationCalculator_}},{key:"getIsJoined",value:function(){return this.isJoined_}},{key:"getAllConnections",value:function(){var e=_(this.connections_.values());return this.uplinkConnection_&&e.push(this.uplinkConnection_),e}},{key:"isRelayMaybeFailed",value:function(){var e=this.getAllConnections();if(0===e.length)return!1;for(var t=0;t<e.length;t++)if(e[t].getReconnectionCount()<6)return!1;return!0}},{key:"getUseStringRoomId",value:function(){return this.useStringRoomId_}},{key:"checkConnectionsToReconnect",value:function(){var e=this;this.getAllConnections().forEach((function(t){if(!t.getIsReconnecting()){var n=t.getPeerConnection();n&&n.connectionState===sd&&(e.log_.warn("[".concat(t.getUserId(),"] pc is closed but not reconnect")),t.startReconnection())}}))}},{key:"getEnableAutoPlayDialog",value:function(){return this.enableAutoPlayDialog_}}]),e}()).prototype,"join",[fS,hS],Object.getOwnPropertyDescriptor(IS.prototype,"join"),IS.prototype),C(IS.prototype,"leave",[mS],Object.getOwnPropertyDescriptor(IS.prototype,"leave"),IS.prototype),C(IS.prototype,"publish",[vS,gS],Object.getOwnPropertyDescriptor(IS.prototype,"publish"),IS.prototype),C(IS.prototype,"unpublish",[yS,bS],Object.getOwnPropertyDescriptor(IS.prototype,"unpublish"),IS.prototype),C(IS.prototype,"subscribe",[_S],Object.getOwnPropertyDescriptor(IS.prototype,"subscribe"),IS.prototype),C(IS.prototype,"unsubscribe",[wS],Object.getOwnPropertyDescriptor(IS.prototype,"unsubscribe"),IS.prototype),C(IS.prototype,"switchRole",[kS,SS],Object.getOwnPropertyDescriptor(IS.prototype,"switchRole"),IS.prototype),C(IS.prototype,"startPublishCDNStream",[CS],Object.getOwnPropertyDescriptor(IS.prototype,"startPublishCDNStream"),IS.prototype),C(IS.prototype,"startMixTranscode",[xS],Object.getOwnPropertyDescriptor(IS.prototype,"startMixTranscode"),IS.prototype),IS),PS=Bv({retryFunction:function(){var e=i(regeneratorRuntime.mark((function e(t){var n,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!_b()){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,OS(t);case 4:if(n=e.sent,Wv.info("getUserMedia with constraints: "+JSON.stringify(n)),!n.audio){e.next=11;break}return e.next=9,YS.getMicrophones();case 9:r=e.sent,Wv.info("microphones: ".concat(JSON.stringify(r)));case 11:if(!n.video){e.next=16;break}return e.next=14,YS.getCameras();case 14:o=e.sent,Wv.info("cameras: ".concat(JSON.stringify(o)));case 16:return e.prev=16,e.next=19,navigator.mediaDevices.getUserMedia(n);case 19:return e.abrupt("return",e.sent);case 22:if(e.prev=22,e.t0=e.catch(16),"NotFoundError"!==e.t0.name){e.next=29;break}if(!o||0!==o.length){e.next=27;break}throw new Jg({code:Kg.DEVICE_NOT_FOUND,message:vh({key:uh})});case 27:if(!r||0!==r.length){e.next=29;break}throw new Jg({code:Kg.DEVICE_NOT_FOUND,message:vh({key:ch})});case 29:throw new Jg({code:Kg.INITIALIZE_FAILED,name:e.t0.name,message:e.t0.message,constraint:e.t0.constraint});case 30:case"end":return e.stop()}}),e,null,[[16,22]])})));return function(t){return e.apply(this,arguments)}}(),settings:{retries:3,timeout:500},onError:function(e,t,n){"NotReadableError"===e.name?t():n(e)},onRetrying:function(e){Wv.warn("getUserMedia NotReadableError observed, retrying [".concat(e,"/3]"))}});function OS(e){return AS.apply(this,arguments)}function AS(){return(AS=i(regeneratorRuntime.mark((function e(n){var r,o,i,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r={echoCancellation:n.echoCancellation,autoGainControl:n.autoGainControl,noiseSuppression:n.noiseSuppression},n.audio){e.next=5;break}r=!1,e.next=15;break;case 5:if(Fy(n.microphoneId)){e.next=9;break}r=t({deviceId:{exact:n.microphoneId},sampleRate:n.sampleRate,channelCount:n.channelCount},r),e.next=15;break;case 9:return r=t({sampleRate:n.sampleRate,channelCount:n.channelCount},r),e.next=12,YS.getMicrophones();case 12:o=e.sent,(i=o.filter((function(e){return e.deviceId.length>0}))).length>0&&(r.deviceId={exact:i[0].deviceId});case 15:return a={},a=!Ch(n.facingMode)&&n.video?{facingMode:n.facingMode,width:n.width,height:n.height,frameRate:n.frameRate}:!Fy(n.cameraId)&&n.video?{deviceId:{exact:n.cameraId},width:n.width,height:n.height,frameRate:n.frameRate}:!!n.video&&(!!Ch(n.width)||{width:n.width,height:n.height,frameRate:n.frameRate}),e.abrupt("return",{audio:r,video:a});case 18:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var DS=function(){var e=i(regeneratorRuntime.mark((function e(t){var n,r,o,i,a,s,l,c,u;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!_b()){e.next=2;break}return e.abrupt("return");case 2:if(n=null,!(Qc&&eu<74||nu)){e.next=27;break}return r=MS(t),Wv.info("getDisplayMedia with constraints: "+JSON.stringify(r)),e.next=8,navigator.mediaDevices.getDisplayMedia(r);case 8:if(o=e.sent,!t.screenAudio){e.next=14;break}return Wv.warn("Your browser not support capture system audio"),e.abrupt("return",o);case 14:if(!t.audio){e.next=24;break}return i=NS(t),Wv.info("getUserMedia with constraints: "+JSON.stringify(i)),e.next=19,navigator.mediaDevices.getUserMedia(i);case 19:return n=e.sent,o.addTrack(n.getAudioTracks()[0]),e.abrupt("return",o);case 24:return e.abrupt("return",o);case 25:e.next=53;break;case 27:if(!t.screenAudio){e.next=37;break}return t.audioConstraints={echoCancellation:!0,noiseSuppression:!0,sampleRate:44100},a=MS(t),Wv.info("getDisplayMedia with constraints: "+JSON.stringify(a)),e.next=33,navigator.mediaDevices.getDisplayMedia(a);case 33:return s=e.sent,e.abrupt("return",s);case 37:return l=MS(t),Wv.info("getDisplayMedia with constraints: "+JSON.stringify(l)),e.next=41,navigator.mediaDevices.getDisplayMedia(l);case 41:if(c=e.sent,!t.audio){e.next=52;break}return u=NS(t),Wv.info("getUserMedia with constraints: "+JSON.stringify(u)),e.next=47,navigator.mediaDevices.getUserMedia(u);case 47:return n=e.sent,c.addTrack(n.getAudioTracks()[0]),e.abrupt("return",c);case 52:return e.abrupt("return",c);case 53:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function NS(e){var t={echoCancellation:e.echoCancellation,autoGainControl:e.autoGainControl,noiseSuppression:e.noiseSuppression,sampleRate:e.sampleRate,channelCount:e.channelCount};return Ch(e.microphoneId)||(t.deviceId={exact:e.microphoneId}),{audio:t,video:!1}}function MS(e){var t={},n={width:e.width,height:e.height,frameRate:e.frameRate};return Ch(e.screenSource)||(n.displaySurface=e.screenSource),t.video=n,Ch(e.audioConstraints)||(t.audio=e.audioConstraints),t}var LS=new Map;LS.set("120p",{width:160,height:120,frameRate:15,bitrate:200}),LS.set("180p",{width:320,height:180,frameRate:15,bitrate:350}),LS.set("240p",{width:320,height:240,frameRate:15,bitrate:400}),LS.set("360p",{width:640,height:360,frameRate:15,bitrate:800}),LS.set("480p",{width:640,height:480,frameRate:15,bitrate:900}),LS.set("720p",{width:1280,height:720,frameRate:15,bitrate:1500}),LS.set("1080p",{width:1920,height:1080,frameRate:15,bitrate:2e3}),LS.set("1440p",{width:2560,height:1440,frameRate:30,bitrate:4860}),LS.set("4K",{width:3840,height:2160,frameRate:30,bitrate:9e3});var FS=new Map;FS.set("480p",{width:640,height:480,frameRate:5,bitrate:900}),FS.set("480p_2",{width:640,height:480,frameRate:30,bitrate:1e3}),FS.set("720p",{width:1280,height:720,frameRate:5,bitrate:1200}),FS.set("720p_2",{width:1280,height:720,frameRate:30,bitrate:3e3}),FS.set("1080p",{width:1920,height:1080,frameRate:5,bitrate:1600}),FS.set("1080p_2",{width:1920,height:1080,frameRate:30,bitrate:4e3});var US,jS,VS=new Map;VS.set("standard",{sampleRate:48e3,channelCount:1,bitrate:40}),VS.set("standard-stereo",{sampleRate:48e3,channelCount:2,bitrate:64}),VS.set("high",{sampleRate:48e3,channelCount:1,bitrate:128}),VS.set("high-stereo",{sampleRate:48e3,channelCount:2,bitrate:192});var HS,BS,$S,zS=(US=Ok.apply(void 0,_(Rk.LOCAL_STREAM.switchDevice)),C((jS=function(e){u(_,e);var n,o,s,c,p,f,h,m,v,b=g(_);function _(e){var n;a(this,_);var r=t(t({},e),{isRemote:!1,type:"local"});return(n=b.call(this,r)).name_=ap,n.client_=null,n.video_=e.video,n.audio_=e.audio,n.cameraId_=e.cameraId,n.cameraGroupId_="",n.facingMode_=e.facingMode,n.microphoneId_=e.microphoneId,n.microphoneGroupId_="",n.videoSource_=e.videoSource,n.audioSource_=e.audioSource,n.screen_=e.screen,n.screenSource_=e.screenSource,n.screenAudio_=e.screenAudio,n.audioProfile_={echoCancellation:!!Ch(e.echoCancellation)||e.echoCancellation,autoGainControl:!!Ch(e.autoGainControl)||e.autoGainControl,noiseSuppression:!!Ch(e.noiseSuppression)||e.noiseSuppression,sampleRate:48e3,channelCount:1,bitrate:40},n.videoProfile_={width:640,height:480,frameRate:15,bitrate:900},n.screenProfile_={width:1920,height:1080,frameRate:5,bitrate:1600},n.videoBitrate_=n.screen_?1600:900,n.videoSetting_=null,n.muteState_={video:!1,audio:!1,auxVideo:!1},n.beautyStatus_=!1,n.recoverCaptureCount_=0,n.initState(),n.canvas_=null,n.canvasInterval_=-1,n.log_.info("stream created: "+n.id_),n}return l(_,[{key:"initState",value:function(){this.isAddingTrack_=!1,this.isRemovingTrack_=!1,this.setIsReadyToPublish(!1),this.setPublishState(Gd)}},{key:"installEvents",value:function(){y(d(_.prototype),"installEvents",this).call(this),Jm.on(Cv,this.onStreamPublished,this),Jm.on(Dv,this.onVideoTrackStopped,this),Jm.on(Ev,this.onVideoTrackStopped,this),Jm.on(Mv,this.onAudioTrackStopped,this),Jm.on(Nv,this.onAudioTrackStopped,this)}},{key:"uninstallEvents",value:function(){y(d(_.prototype),"uninstallEvents",this).call(this),Jm.off(Cv,this.onStreamPublished,this),Jm.off(Dv,this.onVideoTrackStopped,this),Jm.off(Ev,this.onVideoTrackStopped,this),Jm.off(Mv,this.onAudioTrackStopped,this),Jm.off(Nv,this.onAudioTrackStopped,this)}},{key:"initialize",value:function(){var e=this;return new Promise((function(t,n){if(wb())n(new Jg({code:Kg.INVALID_OPERATION,message:vh({key:nh})}));else{if(Ch(e.audio_)){var r=new MediaStream;return Ch(e.audioSource_)||(r.addTrack(e.audioSource_),e.updateAudioPlayingState(!0)),Ch(e.videoSource_)||(r.addTrack(e.videoSource_),e.updateVideoPlayingState(!0)),e.setMediaStream(r),Uy.logSuccessEvent({userId:e.client_?e.client_.getUserId():e.userId_,eventType:Ed,kind:"custom"}),e.setIsReadyToPublish(!0),t()}e.screen_?(e.log_.info("initialize stream audio: "+e.audio_+" screenAudio: "+e.screenAudio_+" screen: "+e.screen_),DS({audio:e.audio_,screenAudio:e.screenAudio_,microphoneId:e.microphoneId_,screenSource:e.screenSource_,width:e.screenProfile_.width,height:e.screenProfile_.height,frameRate:e.screenProfile_.frameRate,sampleRate:e.audioProfile_.sampleRate,channelCount:e.audioProfile_.channelCount,autoGainControl:e.audioProfile_.autoGainControl,noiseSuppression:e.audioProfile_.noiseSuppression,echoCancellation:e.audioProfile_.echoCancellation}).then((function(n){e.setMediaStream(n),e.updateAudioPlayingState(e.audio_||e.screenAudio_),e.updateVideoPlayingState(!0);var r=e.getVideoTrack();return e.listenForScreenSharingStopped(r),e.setVideoContentHint(Eu),e.updateDeviceIdInUse(),e.setIsReadyToPublish(!0),e.log_.info(JSON.stringify(r.getSettings())),Uy.logSuccessEvent({userId:e.client_?e.client_.getUserId():e.userId_,eventType:Ed,kind:"getDisplayMedia"}),t()})).catch((function(t){Uy.logFailedEvent({userId:e.client_?e.client_.getUserId():e.userId_,eventType:Ed,kind:"getDisplayMedia",error:t}),e.log_.error("getDisplayMedia error observed "+t),n(t instanceof Jg?t:new Jg({code:Kg.INITIALIZE_FAILED,name:t.name,message:t.message}))}))):(Jm.emit(xv,{stream:e,audio:e.audio_,video:e.video_}),e.log_.info("initialize stream audio: "+e.audio_+" video: "+e.video_),PS({audio:e.audio_,video:e.video_,facingMode:e.facingMode_,cameraId:e.cameraId_,microphoneId:e.microphoneId_,width:e.videoProfile_.width,height:e.videoProfile_.height,frameRate:e.videoProfile_.frameRate,sampleRate:e.audioProfile_.sampleRate,channelCount:e.audioProfile_.channelCount,autoGainControl:e.audioProfile_.autoGainControl,noiseSuppression:e.audioProfile_.noiseSuppression,echoCancellation:e.audioProfile_.echoCancellation}).then((function(n){Jm.emit(Iv,{stream:e,audio:e.audio_,video:e.video_}),e.setMediaStream(n);var r=e.getVideoTrack();return r&&(Rb&&(e.videoSetting_=r.getSettings()),Pb&&e.log_.info("video capabilities: "+JSON.stringify(r.getCapabilities()))),e.updateAudioPlayingState(e.audio_),e.updateVideoPlayingState(e.video_),e.updateDeviceIdInUse(),e.log_.info("gotStream hasAudio: "+e.hasAudio()+" hasVideo: "+e.hasVideo()),e.setIsReadyToPublish(!0),Uy.logSuccessEvent({userId:e.client_?e.client_.getUserId():e.userId_,eventType:Ed,kind:"getUserMedia"}),t()})).catch((function(t){Jm.emit(Tv,{stream:e,audio:e.audio_,video:e.video_,error:t}),Uy.logFailedEvent({userId:e.client_?e.client_.getUserId():e.userId_,eventType:Ed,kind:"getUserMedia",error:t}),e.log_.error("getUserMedia error observed "+t),n(t)})))}}))}},{key:"listenForScreenSharingStopped",value:function(e){var t=this;e.addEventListener("ended",(function(e){t.log_.info("screen sharing was stopped because the video track is ended"),t.emitter_.emit(Qb)}))}},{key:"muteAudio",value:function(){var e=y(d(_.prototype),"muteAudio",this).call(this);return e&&(this.log_.info("localStream mute audio"),this.sendMutedFlag(hu,!0)),e}},{key:"muteVideo",value:function(){var e=y(d(_.prototype),"muteVideo",this).call(this);return e&&(this.log_.info("localStream mute video"),this.sendMutedFlag(mu,!0)),e}},{key:"unmuteAudio",value:function(){var e=y(d(_.prototype),"unmuteAudio",this).call(this);return e&&(this.log_.info("localStream unmute audio"),this.sendMutedFlag(hu,!1)),e}},{key:"unmuteVideo",value:function(){var e=y(d(_.prototype),"unmuteVideo",this).call(this);return e&&(this.log_.info("localStream unmute video"),this.sendMutedFlag(mu,!1)),e}},{key:"sendMutedFlag",value:function(e,t){this.setMuteState(e,t);var n=this.getConnection();if(n){n.sendMutedFlag(this.muteState_);var r=n.getUserId(),o=n.getTinyId(),i="".concat(t?bu:_u," local ").concat(e," track");Ny(r,{eventId:e===hu?t?ty:ry:t?ny:oy,eventDesc:i,timestamp:wa(),userId:r,tinyId:o})}}},{key:"setMuteState",value:function(e,t){this.muteState_[e]=t,this.log_.info("set ".concat(e," muted state: [").concat(t?"mute":"unmute","]"))}},{key:"setAudioProfile",value:function(e){var n;"object"===r(e)?n=e:void 0===(n=VS.get(e))&&(n=VS.get("standard")),this.log_.info("setAudioProfile: "+JSON.stringify(n)),this.audioProfile_=t(t({},this.audioProfile_),n)}},{key:"setVideoProfile",value:(v=i(regeneratorRuntime.mark((function e(n){var r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.connection_||bb()){e.next=2;break}throw new Jg({code:Kg.NOT_SUPPORTED,message:vh({key:oh})});case 2:if(wh(n)?r=t(t({},this.videoProfile_),n):xh(n)&&(r=LS.get(n),Ch(r)&&(r=LS.get("480p"))),r&&r.width*r.height>921600&&su&&(r.width=1280,r.height=720,this.log_.warn("reset to 1280 * 720 on iOS 13~14")),this.log_.info("setVideoProfile "+JSON.stringify(r)),!(o=this.getVideoTrack())){e.next=9;break}return e.next=9,o.applyConstraints(r);case 9:if(this.videoBitrate_===r.bitrate){e.next=14;break}if(!this.connection_){e.next=13;break}return e.next=13,this.connection_.setBandwidth(r.bitrate,mu);case 13:this.videoBitrate_=r.bitrate;case 14:this.videoProfile_=r;case 15:case"end":return e.stop()}}),e,this)}))),function(e){return v.apply(this,arguments)})},{key:"getVideoBitrate",value:function(){return this.videoBitrate_}},{key:"getAudioBitrate",value:function(){return this.audioProfile_.bitrate}},{key:"setScreenProfile",value:function(e){var t=e;"object"!==r(e)&&void 0===(t=FS.get(e))&&(t=FS.get("1080p")),this.log_.info("setScreenProfile "+JSON.stringify(e)),this.screenProfile_=t,this.videoBitrate_=t.bitrate}},{key:"getVideoProfile",value:function(){return this.screen_?this.screenProfile_:this.videoProfile_}},{key:"getAudioProfile",value:function(){return this.audioProfile_}},{key:"setVideoContentHint",value:function(e){var t=this.getVideoTrack();t&&"contentHint"in t&&(this.log_.info("set video track contentHint to: "+e),t.contentHint=e,t.contentHint!==e&&this.log_.warn("Invalid video track contentHint: "+e))}},{key:"switchDevice",value:(m=i(regeneratorRuntime.mark((function e(t,n){var r,o,i,a,s,l,c,u,d,p,f,h,m,v,g,y,b;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r=t===hu)){e.next=8;break}if(this.microphoneId_!==n){e.next=4;break}return e.abrupt("return");case 4:this.microphoneId_=n,this.audio_=!0,e.next=12;break;case 8:if(this.cameraId_!==n){e.next=10;break}return e.abrupt("return");case 10:n===gu||n===yu?this.facingMode_=n:this.cameraId_=n,this.video_=!0;case 12:if(this.getMediaStream()){e.next=14;break}return e.abrupt("return");case 14:return this.setIsReadyToPublish(!1),this.log_.info("switchDevice "+t+" to: "+n),r||((o=this.getVideoTrack())&&o.stop(),$c&&(i=this.getAudioTrack())&&(this.log_.info("stop audio track first in huawei env"),i.stop())),r&&(a=this.getAudioTrack(),s=this.getMicrophoneTrackMixed(),a&&a.stop(),s&&s.stop()),e.next=20,PS({audio:this.audio_&&t===hu||$c,video:this.video_&&t===mu,facingMode:n===gu||n===yu?n:void 0,cameraId:this.cameraId_,microphoneId:this.microphoneId_,width:this.videoProfile_.width,height:this.videoProfile_.height,frameRate:this.videoProfile_.frameRate,sampleRate:this.audioProfile_.sampleRate,channelCount:this.audioProfile_.channelCount});case 20:if(l=e.sent,c=null,!r){e.next=27;break}(u=l.getAudioTracks()[0])&&this.isAudioTrackMixed()?(d=this.getAudioTrack(),p=YS.AudioMixerPlugin.getAudioTrackMap(),f=YS.AudioMixerPlugin.mix({targetTrack:u,sourceList:p.get(d.id).sourceList,trackList:p.get(d.id).trackList}),c=f):c=u,e.next=36;break;case 27:if(!(c=l.getVideoTracks()[0])||!this.isVideoTrackBeautified()){e.next=32;break}return e.next=31,this.generateBeautyTrack(c);case 31:c=e.sent;case 32:if(!(h=l.getAudioTracks()[0])||!$c){e.next=36;break}return e.next=36,this.replaceTrack_(h);case 36:return e.next=38,this.replaceTrack_(c);case 38:this.updateDeviceIdInUse(),(m=this.getConnection())&&(v=m.getUserId(),g=m.getTinyId(),y=ly,b="switch camera",r&&(y=cy,b="switch microphone"),Ny(v,{eventId:y,eventDesc:b,timestamp:wa(),userId:v,tinyId:g})),this.log_.info("switch ".concat(r?"microphone":"camera"," success ")),this.setIsReadyToPublish(!0);case 43:case"end":return e.stop()}}),e,this)}))),function(e,t){return m.apply(this,arguments)})},{key:"addTrack",value:(h=i(regeneratorRuntime.mark((function e(t){var n,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.isAddingTrack_){e.next=2;break}throw new Jg({code:Kg.INVALID_OPERATION,message:vh({key:Ef})});case 2:if(!this.isRemovingTrack_){e.next=4;break}throw new Jg({code:Kg.INVALID_OPERATION,message:vh({key:Rf})});case 4:if(this.publishState_!==Xd){e.next=6;break}throw new Jg({code:Kg.INVALID_OPERATION,message:vh({key:Pf})});case 6:if(n=this.getMediaStream()){e.next=9;break}throw new Jg({code:Kg.INVALID_OPERATION,message:vh({key:Of})});case 9:if(!(t.kind===hu&&n.getAudioTracks().length>0||t.kind===mu&&n.getVideoTracks().length>0)){e.next=11;break}throw new Jg({code:Kg.INVALID_OPERATION,message:vh({key:Af})});case 11:if(t.kind===mu&&Rb&&(r=t.getSettings(),!this.videoSetting_||r.width===this.videoSetting_.width&&r.height===this.videoSetting_.height||this.log_.warn("video resolution of the track (".concat(r.width," x ").concat(r.height,") shall be kept the same as the previous: ").concat(this.videoSetting_.width," x ").concat(this.videoSetting_.height,". It may cause abnormal Cloud Recording."))),e.prev=12,this.isAddingTrack_=!0,this.keepMuteState(t),n.addTrack(t),!(o=this.getConnection())){e.next=20;break}return e.next=20,o.addTrack(t);case 20:t.kind===hu?(this.audio_=!0,this.updateAudioPlayingState(!0)):(this.video_=!0,this.updateVideoPlayingState(!0)),this.isAddingTrack_=!1,e.next=29;break;case 24:throw e.prev=24,e.t0=e.catch(12),n.removeTrack(t),this.isAddingTrack_=!1,e.t0;case 29:case"end":return e.stop()}}),e,this,[[12,24]])}))),function(e){return h.apply(this,arguments)})},{key:"removeTrack",value:(f=i(regeneratorRuntime.mark((function e(t){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.kind!==hu){e.next=2;break}throw new Jg({code:Kg.INVALID_PARAMETER,message:vh({key:Df})});case 2:if(!this.isAddingTrack_){e.next=4;break}throw new Jg({code:Kg.INVALID_OPERATION,message:vh({key:Nf})});case 4:if(!this.isRemovingTrack_){e.next=6;break}throw new Jg({code:Kg.INVALID_OPERATION,message:vh({key:Mf})});case 6:if(this.publishState_!==Xd){e.next=8;break}throw new Jg({code:Kg.INVALID_OPERATION,message:vh({key:Lf})});case 8:if(n=this.getMediaStream()){e.next=11;break}throw new Jg({code:Kg.INVALID_OPERATION,message:vh({key:Of})});case 11:if(-1!==n.getTracks().indexOf(t)){e.next=13;break}throw new Jg({code:Kg.INVALID_PARAMETER,message:vh({key:Ff})});case 13:if(1!==n.getTracks().length){e.next=15;break}throw new Jg({code:Kg.INVALID_OPERATION,message:vh({key:Uf})});case 15:if(e.prev=15,this.isRemovingTrack_=!0,!(r=this.getConnection())){e.next=21;break}return e.next=21,r.removeTrack(t);case 21:n.removeTrack(t),t.kind===hu?(this.audio_=!1,this.updateAudioPlayingState(!1)):(this.video_=!1,this.updateVideoPlayingState(!1)),this.isRemovingTrack_=!1,e.next=30;break;case 26:throw e.prev=26,e.t0=e.catch(15),this.isRemovingTrack_=!1,e.t0;case 30:case"end":return e.stop()}}),e,this,[[15,26]])}))),function(e){return f.apply(this,arguments)})},{key:"replaceTrack",value:(p=i(regeneratorRuntime.mark((function e(t){var n,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.getMediaStream()){e.next=3;break}throw new Jg({code:Kg.INVALID_OPERATION,message:vh({key:Tf})});case 3:if(this.publishState_!==Xd){e.next=5;break}throw new Jg({code:Kg.INVALID_OPERATION,message:vh({key:If})});case 5:if(!(t.kind===hu&&n.getAudioTracks().length<=0||t.kind===mu&&n.getVideoTracks().length<=0)){e.next=7;break}throw new Jg({code:Kg.INVALID_PARAMETER,message:vh({key:jf,data:t})});case 7:if(t.kind===mu&&Rb&&(r=t.getSettings(),!this.videoSetting_||r.width===this.videoSetting_.width&&r.height===this.videoSetting_.height||this.log_.warn("video resolution of the track (".concat(r.width," x ").concat(r.height,") shall be kept the same as the previous: ").concat(this.videoSetting_.width," x ").concat(this.videoSetting_.height,". It may cause abnormal Cloud Recording."))),this.keepMuteState(t),t.kind===hu?(n.removeTrack(n.getAudioTracks()[0]),n.addTrack(t),y(d(_.prototype),"restartAudio",this).call(this)):(n.removeTrack(n.getVideoTracks()[0]),n.addTrack(t),y(d(_.prototype),"restartVideo",this).call(this)),!(o=this.getConnection())){e.next=14;break}return e.next=14,o.replaceTrack(t);case 14:case"end":return e.stop()}}),e,this)}))),function(e){return p.apply(this,arguments)})},{key:"updateStream",value:(c=i(regeneratorRuntime.mark((function e(t){var n,r,o,i,a,s,l,c,u,d,p,f,h,m,v;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.mediaStream_){e.next=2;break}return e.abrupt("return");case 2:return this.log_.info("updateStream() try to recover local stream"),e.prev=3,e.next=6,YS.getCameras();case 6:return n=e.sent,e.next=9,YS.getMicrophones();case 9:if(r=e.sent,o=this.audio_&&t.audio,(i=this.video_&&t.video)&&0===n.length&&(i=!1,this.log_.info("updateStream() video flag is true, but no camera detected, set video to false")),o&&0===r.length&&(o=!1,this.log_.info("updateStream() audio flag is true, but no microphone detected, set audio to false")),!1!==o||!1!==i){e.next=17;break}return this.log_.info("updateStream() both audio and video are false, recover stream aborted"),e.abrupt("return");case 17:return a=t&&n.findIndex((function(e){return e.deviceId===t.cameraId}))>=0,s=t&&r.findIndex((function(e){return e.deviceId===t.microphoneId}))>=0,e.next=21,PS({audio:o,video:i,cameraId:a?t.cameraId:void 0,microphoneId:s?t.microphoneId:void 0,facingMode:this.facingMode_,width:this.videoProfile_.width,height:this.videoProfile_.height,frameRate:this.videoProfile_.frameRate,sampleRate:this.audioProfile_.sampleRate,channelCount:this.audioProfile_.channelCount});case 21:l=e.sent,c=l.getTracks(),u=0;case 24:if(!(u<c.length)){e.next=49;break}if((d=c[u]).kind!==hu||!this.isAudioTrackMixed()){e.next=37;break}if(p=this.getAudioTrack(),f=YS.AudioMixerPlugin.getAudioTrackMap(),(h=f.get(p.id)).hasMicrophone){e.next=33;break}return d.stop(),e.abrupt("continue",46);case 33:return m=YS.AudioMixerPlugin.mix({targetTrack:d,sourceList:h.sourceList,trackList:h.trackList}),e.next=36,this.replaceTrack_(m);case 36:return e.abrupt("continue",46);case 37:if(d.kind!==mu||!this.isVideoTrackBeautified()){e.next=44;break}return e.next=40,this.generateBeautyTrack(d);case 40:return v=e.sent,e.next=43,this.replaceTrack_(v);case 43:return e.abrupt("continue",46);case 44:return e.next=46,this.replaceTrack_(d);case 46:u++,e.next=24;break;case 49:this.updateDeviceIdInUse(),Uy.logSuccessEvent({userId:this.client_?this.client_.getUserId():this.userId_,eventType:Od}),this.log_.info("updateStream() recover local stream successfully"),e.next=59;break;case 54:e.prev=54,e.t0=e.catch(3),Uy.logFailedEvent({userId:this.client_?this.client_.getUserId():this.userId_,eventType:Od,error:e.t0}),this.log_.error("updateStream() failed to recover local stream, "+e.t0),this.emitter_.emit(t_,new Jg({code:Kg.DEVICE_AUTO_RECOVER_FAILED,message:e.t0.message}));case 59:case"end":return e.stop()}}),e,this,[[3,54]])}))),function(e){return c.apply(this,arguments)})},{key:"replaceTrack_",value:(s=i(regeneratorRuntime.mark((function e(t){var n,r,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.mediaStream_.getAudioTracks(),r=this.mediaStream_.getVideoTracks(),!(t.kind===hu&&n.length<=0||t.kind===mu&&r.length<=0)){e.next=5;break}return this.log_.info("there is no previous ".concat(t.kind," track, replacement ignored")),e.abrupt("return");case 5:if(this.keepMuteState(t),t.kind===hu?(this.mediaStream_.removeTrack(n[0]),this.mediaStream_.addTrack(t),y(d(_.prototype),"restartAudio",this).call(this)):(Rb&&(o=t.getSettings(),!this.videoSetting_||o.width===this.videoSetting_.width&&o.height===this.videoSetting_.height||this.log_.warn("the resolution of video track to be replaced (".concat(o.width," x ").concat(o.height,") is different from the previous video settings (").concat(this.videoSetting_.width," x ").concat(this.videoSetting_.height,"). It may cause a cloud recording exception"))),this.mediaStream_.removeTrack(r[0]),this.mediaStream_.addTrack(t),y(d(_.prototype),"restartVideo",this).call(this)),!(i=this.getConnection())){e.next=11;break}return e.next=11,i.replaceTrack(t);case 11:case"end":return e.stop()}}),e,this)}))),function(e){return s.apply(this,arguments)})},{key:"updateDeviceIdInUse",value:function(){var e=this;if(!this.mediaStream_)return this.cameraId_="",this.cameraGroupId_="",this.microphoneId_="",void(this.microphoneGroupId_="");Rb&&this.mediaStream_.getTracks().forEach((function(t){if(t.kind===hu&&e.isAudioTrackMixed()){var n=e.getMicrophoneTrackMixed();if(n){var r=n.getSettings(),o=r.deviceId,i=r.groupId;o&&(e.microphoneId_=o,e.microphoneGroupId_=i)}}else if(t.kind===mu&&e.isVideoTrackBeautified()){var a=e.getBeautyOriginTrack();if(a){var s=a.getSettings(),l=s.deviceId,c=s.groupId;l&&(e.cameraId_=l,e.cameraGroupId_=c)}}else{var u=t.getSettings(),d=u.deviceId,p=u.groupId;d&&(t.kind===hu?(e.microphoneId_=d,e.microphoneGroupId_=p):t.kind!==mu||e.screen_||(e.cameraId_=d,e.cameraGroupId_=p))}}));var t=this.mediaStream_.getAudioTracks(),n=this.mediaStream_.getVideoTracks();t&&0===t.length&&(this.microphoneId_="",this.microphoneGroupId_=""),n&&0===n.length&&(this.cameraId_="",this.cameraGroupId_="")}},{key:"isAudioTrackMixed",value:function(){if(YS.AudioMixerPlugin){var e=YS.AudioMixerPlugin.getAudioTrackMap(),t=this.getAudioTrack();if(e&&t&&e.has(t.id))return!0}return!1}},{key:"getMicrophoneTrackMixed",value:function(){if(YS.AudioMixerPlugin){var e=YS.AudioMixerPlugin.getAudioTrackMap(),t=this.getAudioTrack();if(e&&t&&e.has(t.id)){var n=e.get(t.id);return n.hasMicrophone?n.microphoneTrack:null}}return null}},{key:"isVideoTrackBeautified",value:function(){if(YS.beautyTrackMap){var e=YS.beautyTrackMap,t=this.getVideoTrack();if(t&&e.has(t.id))return!0}return!1}},{key:"getBeautyOriginTrack",value:function(){if(YS.beautyTrackMap){var e=YS.beautyTrackMap,t=this.getVideoTrack();if(t&&e.has(t.id)){var n=e.get(t.id);if(n.originTrack)return n.originTrack}}return null}},{key:"generateBeautyTrack",value:(o=i(regeneratorRuntime.mark((function e(t){var n,r,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=null,r=this.getVideoTrack(),o=YS.beautyTrackMap.get(r.id),i=o.param,o.type){e.next=8;break}n=o.pluginInstance.generateBeautyTrack(t),e.next=22;break;case 8:e.t0=o.type,e.next="beauty"===e.t0?11:"virtual"===e.t0?13:"mixed"===e.t0?17:21;break;case 11:return n=o.pluginInstance.generateBeautyTrack(t),e.abrupt("break",22);case 13:return e.next=15,o.pluginInstance.generateVirtualTrack({videoTrack:t,type:i.type,img:i.img});case 15:return n=e.sent,e.abrupt("break",22);case 17:return e.next=19,o.pluginInstance.generateMixedTrack({videoTrack:t,type:i.type,img:i.img});case 19:return n=e.sent,e.abrupt("break",22);case 21:return e.abrupt("break",22);case 22:return o.pluginInstance.deleteSource(r.id),this.log_.info("regenerate beauty track, track id = ".concat(t.id)),e.abrupt("return",n);case 25:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"getScreen",value:function(){return this.screen_}},{key:"hasScreenTrack",value:function(){if(this.screen_)return!0;var e=this.getVideoTrack();return!!e&&(e.contentHint===Eu||e.contentHint===Ru)}},{key:"getVideo",value:function(){return this.video_}},{key:"getAudio",value:function(){return this.audio_}},{key:"getCameraId",value:function(){return this.cameraId_}},{key:"getMicrophoneId",value:function(){return this.microphoneId_}},{key:"getMicrophoneGroupId",value:function(){return this.microphoneGroupId_}},{key:"getIsReadyToPublish",value:function(){return this.isReadyToPublish_}},{key:"setIsReadyToPublish",value:function(e){this.isReadyToPublish_=e}},{key:"setPublishState",value:function(e){this.publishState_=e}},{key:"setBeautyStatus",value:function(e){this.beautyStatus_=!!e}},{key:"getBeautyStatus",value:function(){return this.beautyStatus_}},{key:"onStreamPublished",value:function(e){var t=e.localStream,n=e.client;if(t===this){this.client_=n,this.log_.setUserId(n.getUserId()),this.log_.setSdkAppId(n.getSDKAppId());var r=this.getAudioTrack(),o=this.getVideoTrack();if(r){var i=!r.enabled;this.setMuteState(hu,i)}if(o){var a=!o.enabled;this.setMuteState(mu,a)}this.connection_&&this.connection_.sendMutedFlag(this.muteState_)}}},{key:"keepMuteState",value:function(e){e instanceof MediaStreamTrack&&this.muteState_[e.kind]&&(e.enabled=!1,this.log_.warn("prev ".concat(e.kind," track is muted, keep mute state")))}},{key:"onVideoTrackStopped",value:(n=i(regeneratorRuntime.mark((function e(t){var n,r,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.stream,r=t.type,!(n!==this||!this.video_||!this.cameraId_||this.recoverCaptureCount_>10||(cc||uc)&&r===bu)){e.next=3;break}return e.abrupt("return");case 3:if(!(o=this.getVideoTrack())){e.next=11;break}return i=o.getSettings().deviceId,e.next=8,YS.getCameras();case 8:if(!(e.sent.findIndex((function(e){return e.deviceId===i}))<0)){e.next=11;break}return e.abrupt("return");case 11:this.recoverCaptureCount_+=1,Uy.uploadEvent({log:"stat-local-video-".concat(r),userId:this.userId_}),this.updateStream({audio:!1,video:!0,cameraId:this.cameraId_});case 14:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"onAudioTrackStopped",value:function(e){var t=e.stream,n=e.type;t!==this||!this.audio_||!this.microphoneId_||this.recoverCaptureCount_>10||(cc||uc)&&n===bu||(this.recoverCaptureCount_+=1,Uy.uploadEvent({log:"stat-local-audio-".concat(n),userId:this.userId_}),this.updateStream({audio:!0,video:!1,microphoneId:this.microphoneId_}))}},{key:"setAudioVolume",value:function(e){y(d(_.prototype),"setAudioVolume",this).call(this,e)}},{key:"clearCanvas",value:function(){this.canvasInterval_&&(nb.clearInterval(this.canvasInterval_),this.canvasInterval_=-1,this.canvas_=null)}},{key:"genCanvasTrack",value:function(e){var t=this;this.log_.info("gen canvas track");var n=e.getSettings(),r=n.width,o=n.height,i=n.frameRate;this.canvas_=document.createElement("canvas");var a=this.canvas_.getContext("2d");return this.canvas_.width=r,this.canvas_.height=o,this.canvasInterval_=nb.setInterval((function(){if(t.hasVideo()){var e=t.getVideoTrack().getSettings();e.width===t.canvas_.width&&e.height===t.canvas_.height||(t.canvas_.width=e.width,t.canvas_.height=e.height)}t.videoPlayer_&&t.videoPlayer_.element_&&a.drawImage(t.videoPlayer_.element_,0,0,t.canvas_.width,t.canvas_.height)}),Math.max(66,Math.floor(1e3/i))),this.canvas_.captureStream().getVideoTracks()[0]}}]),_}(Nk)).prototype,"switchDevice",[US],Object.getOwnPropertyDescriptor(jS.prototype,"switchDevice"),jS.prototype),jS),WS=0,qS=0,ZS=(HS=Pk(Rk.TRTC.createClient),BS=Pk(Rk.TRTC.createStream),C(($S=function(){function e(){a(this,e),this.name_=op,this.VERSION="4.12.3",this.Logger={loggerManager:Wv,LogLevel:{TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,NONE:5},setLogLevel:function(e){Wv.setLogLevel(e),Lh()&&e<=1&&mh()},enableUploadLog:function(){Wv.enableUploadLog()},disableUploadLog:function(){Wv.warn("disableUploadLog"),Wv.disableUploadLog()}}}var n,r,o,s,c;return l(e,[{key:"checkSystemRequirements",value:(c=i(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,pb();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(){return c.apply(this,arguments)})},{key:"isScreenShareSupported",value:function(){return hb()}},{key:"isSmallStreamSupported",value:function(){return Eb()}},{key:"getDevices",value:(s=i(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!wb()&&!_b()){e.next=2;break}return e.abrupt("return",[]);case 2:return e.next=4,navigator.mediaDevices.enumerateDevices();case 4:return t=e.sent,e.abrupt("return",t.filter((function(e){return e.kind!==Iu||"communications"!=e.deviceId})).map((function(e,t){var n=e.label;e.label||(n=e.kind+"_"+t);var r={label:n,deviceId:e.deviceId,kind:e.kind};return e.groupId&&(r.groupId=e.groupId),r})));case 6:case"end":return e.stop()}}),e)}))),function(){return s.apply(this,arguments)})},{key:"getCameras",value:(o=i(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!wb()&&!_b()){e.next=2;break}return e.abrupt("return",[]);case 2:return e.next=4,navigator.mediaDevices.enumerateDevices();case 4:return t=e.sent,e.abrupt("return",t.filter((function(e){return e.kind===Tu})).map((function(e,t){var n=e.label;e.label||(n="camera_"+t);var r={label:n,deviceId:e.deviceId,kind:e.kind};return e.groupId&&(r.groupId=e.groupId),r})));case 6:case"end":return e.stop()}}),e)}))),function(){return o.apply(this,arguments)})},{key:"getMicrophones",value:(r=i(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!wb()&&!_b()){e.next=2;break}return e.abrupt("return",[]);case 2:return e.next=4,navigator.mediaDevices.enumerateDevices();case 4:return t=e.sent,e.abrupt("return",t.filter((function(e){return e.kind===Iu&&"communications"!==e.deviceId})).map((function(e,t){var n=e.label;e.label||(n="microphone_"+t);var r={label:n,deviceId:e.deviceId,kind:e.kind};return e.groupId&&(r.groupId=e.groupId),r})));case 6:case"end":return e.stop()}}),e)}))),function(){return r.apply(this,arguments)})},{key:"getSpeakers",value:(n=i(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!wb()&&!_b()){e.next=2;break}return e.abrupt("return",[]);case 2:return e.next=4,navigator.mediaDevices.enumerateDevices();case 4:return t=e.sent,e.abrupt("return",t.filter((function(e){return"audiooutput"===e.kind})).map((function(e,t){var n=e.label;e.label||(n="speaker_"+t);var r={label:n,deviceId:e.deviceId,kind:e.kind};return e.groupId&&(r.groupId=e.groupId),r})));case 6:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)})},{key:"createClient",value:function(e){qv&&(qv=!1,Wv.getLogLevel()!=YS.Logger.LogLevel.NONE&&(console.info("******************************************************************************"),console.info("* TRTC Web SDK"),console.info("* API Document: "+"".concat(fp,"index.html")),console.info("* Changelog: https://cloud.tencent.com/document/product/647/38958"),console.info("* Report issues: https://github.com/LiteAVSDK/TRTC_Web/issues"),console.info("******************************************************************************")),Wv.info("TRTC Web SDK Version: 4.12.3"),Wv.info("UserAgent: "+navigator.userAgent),Wv.info("URL of current page: "+location.href));var n={version:this.VERSION},r=new RS(t(t(t({},n),e),{},{seq:++WS}));return Jm.emit(uv,{client:r}),r}},{key:"createStream",value:function(e){return new zS(t(t({},e),{},{seq:++qS}))}}]),e}()).prototype,"createClient",[HS],Object.getOwnPropertyDescriptor($S.prototype,"createClient"),$S.prototype),C($S.prototype,"createStream",[BS],Object.getOwnPropertyDescriptor($S.prototype,"createStream"),$S.prototype),$S);wb();var YS=new ZS;return YS}))},4940:function(e,t,n){"use strict";n.d(t,{o:function(){return On},QT:function(){return An}});const r="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag,o=e=>r?Symbol(e):e,i=(e,t,n)=>a({l:e,k:t,s:n}),a=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),s=e=>"number"===typeof e&&isFinite(e),l=e=>"[object Date]"===C(e),c=e=>"[object RegExp]"===C(e),u=e=>x(e)&&0===Object.keys(e).length;function d(e,t){"undefined"!==typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const p=Object.assign;let f;const h=()=>f||(f="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{});function m(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const v=Object.prototype.hasOwnProperty;function g(e,t){return v.call(e,t)}const y=Array.isArray,b=e=>"function"===typeof e,_=e=>"string"===typeof e,w=e=>"boolean"===typeof e,k=e=>null!==e&&"object"===typeof e,S=Object.prototype.toString,C=e=>S.call(e),x=e=>"[object Object]"===C(e),I=e=>null==e?"":y(e)||x(e)&&e.toString===S?JSON.stringify(e,null,2):String(e);function T(){const e=new Map,t={events:e,on(t,n){const r=e.get(t),o=r&&r.push(n);o||e.set(t,[n])},off(t,n){const r=e.get(t);r&&r.splice(r.indexOf(n)>>>0,1)},emit(t,n){(e.get(t)||[]).slice().map((e=>e(n))),(e.get("*")||[]).slice().map((e=>e(t,n)))}};return t}const E=Object.prototype.hasOwnProperty;function R(e,t){return E.call(e,t)}const P=e=>null!==e&&"object"===typeof e,O=[];O[0]={["w"]:[0],["i"]:[3,0],["["]:[4],["o"]:[7]},O[1]={["w"]:[1],["."]:[2],["["]:[4],["o"]:[7]},O[2]={["w"]:[2],["i"]:[3,0],["0"]:[3,0]},O[3]={["i"]:[3,0],["0"]:[3,0],["w"]:[1,1],["."]:[2,1],["["]:[4,1],["o"]:[7,1]},O[4]={["'"]:[5,0],['"']:[6,0],["["]:[4,2],["]"]:[1,3],["o"]:8,["l"]:[4,0]},O[5]={["'"]:[4,0],["o"]:8,["l"]:[5,0]},O[6]={['"']:[4,0],["o"]:8,["l"]:[6,0]};const A=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function D(e){return A.test(e)}function N(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t!==n||34!==t&&39!==t?e:e.slice(1,-1)}function M(e){if(void 0===e||null===e)return"o";const t=e.charCodeAt(0);switch(t){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function L(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(D(t)?N(t):"*"+t)}function F(e){const t=[];let n,r,o,i,a,s,l,c=-1,u=0,d=0;const p=[];function f(){const t=e[c+1];if(5===u&&"'"===t||6===u&&'"'===t)return c++,o="\\"+t,p[0](),!0}p[0]=()=>{void 0===r?r=o:r+=o},p[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},p[2]=()=>{p[0](),d++},p[3]=()=>{if(d>0)d--,u=4,p[0]();else{if(d=0,void 0===r)return!1;if(r=L(r),!1===r)return!1;p[1]()}};while(null!==u)if(c++,n=e[c],"\\"!==n||!f()){if(i=M(n),l=O[u],a=l[i]||l["l"]||8,8===a)return;if(u=a[0],void 0!==a[1]&&(s=p[a[1]],s&&(o=n,!1===s())))return;if(7===u)return t}}const U=new Map;function j(e,t){if(!P(e))return null;let n=U.get(t);if(n||(n=F(t),n&&U.set(t,n)),!n)return null;const r=n.length;let o=e,i=0;while(i<r){const e=o[n[i]];if(void 0===e)return null;o=e,i++}return o}function V(e){if(!P(e))return e;for(const t in e)if(R(e,t))if(t.includes(".")){const n=t.split("."),r=n.length-1;let o=e;for(let e=0;e<r;e++)n[e]in o||(o[n[e]]={}),o=o[n[e]];o[n[r]]=e[t],delete e[t],P(o[n[r]])&&V(o[n[r]])}else P(e[t])&&V(e[t]);return e}
- /*!
- * @intlify/runtime v9.1.9
- * (c) 2021 kazuya kawaguchi
- * Released under the MIT License.
- */
- const H=e=>e,B=e=>"",$="text",z=e=>0===e.length?"":e.join(""),W=I;function q(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function Z(e){const t=s(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(s(e.named.count)||s(e.named.n))?s(e.named.count)?e.named.count:s(e.named.n)?e.named.n:t:t}function Y(e,t){t.count||(t.count=e),t.n||(t.n=e)}function K(e={}){const t=e.locale,n=Z(e),r=k(e.pluralRules)&&_(t)&&b(e.pluralRules[t])?e.pluralRules[t]:q,o=k(e.pluralRules)&&_(t)&&b(e.pluralRules[t])?q:void 0,i=e=>e[r(n,e.length,o)],a=e.list||[],l=e=>a[e],c=e.named||{};s(e.pluralIndex)&&Y(n,c);const u=e=>c[e];function d(t){const n=b(e.messages)?e.messages(t):!!k(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):B)}const p=t=>e.modifiers?e.modifiers[t]:H,f=x(e.processor)&&b(e.processor.normalize)?e.processor.normalize:z,h=x(e.processor)&&b(e.processor.interpolate)?e.processor.interpolate:W,m=x(e.processor)&&_(e.processor.type)?e.processor.type:$,v={["list"]:l,["named"]:u,["plural"]:i,["linked"]:(e,t)=>{const n=d(e)(v);return _(t)?p(t)(n):n},["message"]:d,["type"]:m,["interpolate"]:h,["normalize"]:f};return v}n(1703);function J(e,t,n={}){const{domain:r,messages:o,args:i}=n,a=e,s=new SyntaxError(String(a));return s.code=e,t&&(s.location=t),s.domain=r,s}function G(e){throw e}function X(e,t,n){return{line:e,column:t,offset:n}}function Q(e,t,n){const r={start:e,end:t};return null!=n&&(r.source=n),r}const ee=" ",te="\r",ne="\n",re=String.fromCharCode(8232),oe=String.fromCharCode(8233);function ie(e){const t=e;let n=0,r=1,o=1,i=0;const a=e=>t[e]===te&&t[e+1]===ne,s=e=>t[e]===ne,l=e=>t[e]===oe,c=e=>t[e]===re,u=e=>a(e)||s(e)||l(e)||c(e),d=()=>n,p=()=>r,f=()=>o,h=()=>i,m=e=>a(e)||l(e)||c(e)?ne:t[e],v=()=>m(n),g=()=>m(n+i);function y(){return i=0,u(n)&&(r++,o=0),a(n)&&n++,n++,o++,t[n]}function b(){return a(n+i)&&i++,i++,t[n+i]}function _(){n=0,r=1,o=1,i=0}function w(e=0){i=e}function k(){const e=n+i;while(e!==n)y();i=0}return{index:d,line:p,column:f,peekOffset:h,charAt:m,currentChar:v,currentPeek:g,next:y,peek:b,reset:_,resetPeek:w,skipToPeek:k}}const ae=void 0,se="'",le="tokenizer";function ce(e,t={}){const n=!1!==t.location,r=ie(e),o=()=>r.index(),i=()=>X(r.line(),r.column(),r.index()),a=i(),s=o(),l={currentType:14,offset:s,startLoc:a,endLoc:a,lastType:14,lastOffset:s,lastStartLoc:a,lastEndLoc:a,braceNest:0,inLinked:!1,text:""},c=()=>l,{onError:u}=t;function d(e,t,n,...r){const o=c();if(t.column+=n,t.offset+=n,u){const n=Q(o.startLoc,t),i=J(e,n,{domain:le,args:r});u(i)}}function p(e,t,r){e.endLoc=i(),e.currentType=t;const o={type:t};return n&&(o.loc=Q(e.startLoc,e.endLoc)),null!=r&&(o.value=r),o}const f=e=>p(e,14);function h(e,t){return e.currentChar()===t?(e.next(),t):(d(0,i(),0,t),"")}function m(e){let t="";while(e.currentPeek()===ee||e.currentPeek()===ne)t+=e.currentPeek(),e.peek();return t}function v(e){const t=m(e);return e.skipToPeek(),t}function g(e){if(e===ae)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function y(e){if(e===ae)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}function b(e,t){const{currentType:n}=t;if(2!==n)return!1;m(e);const r=g(e.currentPeek());return e.resetPeek(),r}function _(e,t){const{currentType:n}=t;if(2!==n)return!1;m(e);const r="-"===e.currentPeek()?e.peek():e.currentPeek(),o=y(r);return e.resetPeek(),o}function w(e,t){const{currentType:n}=t;if(2!==n)return!1;m(e);const r=e.currentPeek()===se;return e.resetPeek(),r}function k(e,t){const{currentType:n}=t;if(8!==n)return!1;m(e);const r="."===e.currentPeek();return e.resetPeek(),r}function S(e,t){const{currentType:n}=t;if(9!==n)return!1;m(e);const r=g(e.currentPeek());return e.resetPeek(),r}function C(e,t){const{currentType:n}=t;if(8!==n&&12!==n)return!1;m(e);const r=":"===e.currentPeek();return e.resetPeek(),r}function x(e,t){const{currentType:n}=t;if(10!==n)return!1;const r=()=>{const t=e.currentPeek();return"{"===t?g(e.peek()):!("@"===t||"%"===t||"|"===t||":"===t||"."===t||t===ee||!t)&&(t===ne?(e.peek(),r()):g(t))},o=r();return e.resetPeek(),o}function I(e){m(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function T(e,t=!0){const n=(t=!1,r="",o=!1)=>{const i=e.currentPeek();return"{"===i?"%"!==r&&t:"@"!==i&&i?"%"===i?(e.peek(),n(t,"%",!0)):"|"===i?!("%"!==r&&!o)||!(r===ee||r===ne):i===ee?(e.peek(),n(!0,ee,o)):i!==ne||(e.peek(),n(!0,ne,o)):"%"===r||t},r=n();return t&&e.resetPeek(),r}function E(e,t){const n=e.currentChar();return n===ae?ae:t(n)?(e.next(),n):null}function R(e){const t=e=>{const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t};return E(e,t)}function P(e){const t=e=>{const t=e.charCodeAt(0);return t>=48&&t<=57};return E(e,t)}function O(e){const t=e=>{const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102};return E(e,t)}function A(e){let t="",n="";while(t=P(e))n+=t;return n}function D(e){let t="";while(1){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if("%"===n){if(!T(e))break;t+=n,e.next()}else if(n===ee||n===ne)if(T(e))t+=n,e.next();else{if(I(e))break;t+=n,e.next()}else t+=n,e.next()}return t}function N(e){v(e);let t="",n="";while(t=R(e))n+=t;return e.currentChar()===ae&&d(6,i(),0),n}function M(e){v(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${A(e)}`):t+=A(e),e.currentChar()===ae&&d(6,i(),0),t}function L(e){v(e),h(e,"'");let t="",n="";const r=e=>e!==se&&e!==ne;while(t=E(e,r))n+="\\"===t?F(e):t;const o=e.currentChar();return o===ne||o===ae?(d(2,i(),0),o===ne&&(e.next(),h(e,"'")),n):(h(e,"'"),n)}function F(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return U(e,t,4);case"U":return U(e,t,6);default:return d(3,i(),0,t),""}}function U(e,t,n){h(e,t);let r="";for(let o=0;o<n;o++){const n=O(e);if(!n){d(4,i(),0,`\\${t}${r}${e.currentChar()}`);break}r+=n}return`\\${t}${r}`}function j(e){v(e);let t="",n="";const r=e=>"{"!==e&&"}"!==e&&e!==ee&&e!==ne;while(t=E(e,r))n+=t;return n}function V(e){let t="",n="";while(t=R(e))n+=t;return n}function H(e){const t=(n=!1,r)=>{const o=e.currentChar();return"{"!==o&&"%"!==o&&"@"!==o&&"|"!==o&&o?o===ee?r:o===ne?(r+=o,e.next(),t(n,r)):(r+=o,e.next(),t(!0,r)):r};return t(!1,"")}function B(e){v(e);const t=h(e,"|");return v(e),t}function $(e,t){let n=null;const r=e.currentChar();switch(r){case"{":return t.braceNest>=1&&d(8,i(),0),e.next(),n=p(t,2,"{"),v(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&d(7,i(),0),e.next(),n=p(t,3,"}"),t.braceNest--,t.braceNest>0&&v(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&d(6,i(),0),n=z(e,t)||f(t),t.braceNest=0,n;default:let r=!0,o=!0,a=!0;if(I(e))return t.braceNest>0&&d(6,i(),0),n=p(t,1,B(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(5===t.currentType||6===t.currentType||7===t.currentType))return d(6,i(),0),t.braceNest=0,W(e,t);if(r=b(e,t))return n=p(t,5,N(e)),v(e),n;if(o=_(e,t))return n=p(t,6,M(e)),v(e),n;if(a=w(e,t))return n=p(t,7,L(e)),v(e),n;if(!r&&!o&&!a)return n=p(t,13,j(e)),d(1,i(),0,n.value),v(e),n;break}return n}function z(e,t){const{currentType:n}=t;let r=null;const o=e.currentChar();switch(8!==n&&9!==n&&12!==n&&10!==n||o!==ne&&o!==ee||d(9,i(),0),o){case"@":return e.next(),r=p(t,8,"@"),t.inLinked=!0,r;case".":return v(e),e.next(),p(t,9,".");case":":return v(e),e.next(),p(t,10,":");default:return I(e)?(r=p(t,1,B(e)),t.braceNest=0,t.inLinked=!1,r):k(e,t)||C(e,t)?(v(e),z(e,t)):S(e,t)?(v(e),p(t,12,V(e))):x(e,t)?(v(e),"{"===o?$(e,t)||r:p(t,11,H(e))):(8===n&&d(9,i(),0),t.braceNest=0,t.inLinked=!1,W(e,t))}}function W(e,t){let n={type:14};if(t.braceNest>0)return $(e,t)||f(t);if(t.inLinked)return z(e,t)||f(t);const r=e.currentChar();switch(r){case"{":return $(e,t)||f(t);case"}":return d(5,i(),0),e.next(),p(t,3,"}");case"@":return z(e,t)||f(t);default:if(I(e))return n=p(t,1,B(e)),t.braceNest=0,t.inLinked=!1,n;if(T(e))return p(t,0,D(e));if("%"===r)return e.next(),p(t,4,"%");break}return n}function q(){const{currentType:e,offset:t,startLoc:n,endLoc:a}=l;return l.lastType=e,l.lastOffset=t,l.lastStartLoc=n,l.lastEndLoc=a,l.offset=o(),l.startLoc=i(),r.currentChar()===ae?p(l,14):W(r,l)}return{nextToken:q,currentOffset:o,currentPosition:i,context:c}}const ue="parser",de=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function pe(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const e=parseInt(t||n,16);return e<=55295||e>=57344?String.fromCodePoint(e):"�"}}}function fe(e={}){const t=!1!==e.location,{onError:n}=e;function r(e,t,r,o,...i){const a=e.currentPosition();if(a.offset+=o,a.column+=o,n){const e=Q(r,a),o=J(t,e,{domain:ue,args:i});n(o)}}function o(e,n,r){const o={type:e,start:n,end:n};return t&&(o.loc={start:r,end:r}),o}function i(e,n,r,o){e.end=n,o&&(e.type=o),t&&e.loc&&(e.loc.end=r)}function a(e,t){const n=e.context(),r=o(3,n.offset,n.startLoc);return r.value=t,i(r,e.currentOffset(),e.currentPosition()),r}function s(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:a}=n,s=o(5,r,a);return s.index=parseInt(t,10),e.nextToken(),i(s,e.currentOffset(),e.currentPosition()),s}function l(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:a}=n,s=o(4,r,a);return s.key=t,e.nextToken(),i(s,e.currentOffset(),e.currentPosition()),s}function c(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:a}=n,s=o(9,r,a);return s.value=t.replace(de,pe),e.nextToken(),i(s,e.currentOffset(),e.currentPosition()),s}function u(e){const t=e.nextToken(),n=e.context(),{lastOffset:a,lastStartLoc:s}=n,l=o(8,a,s);return 12!==t.type?(r(e,11,n.lastStartLoc,0),l.value="",i(l,a,s),{nextConsumeToken:t,node:l}):(null==t.value&&r(e,13,n.lastStartLoc,0,he(t)),l.value=t.value||"",i(l,e.currentOffset(),e.currentPosition()),{node:l})}function d(e,t){const n=e.context(),r=o(7,n.offset,n.startLoc);return r.value=t,i(r,e.currentOffset(),e.currentPosition()),r}function f(e){const t=e.context(),n=o(6,t.offset,t.startLoc);let a=e.nextToken();if(9===a.type){const t=u(e);n.modifier=t.node,a=t.nextConsumeToken||e.nextToken()}switch(10!==a.type&&r(e,13,t.lastStartLoc,0,he(a)),a=e.nextToken(),2===a.type&&(a=e.nextToken()),a.type){case 11:null==a.value&&r(e,13,t.lastStartLoc,0,he(a)),n.key=d(e,a.value||"");break;case 5:null==a.value&&r(e,13,t.lastStartLoc,0,he(a)),n.key=l(e,a.value||"");break;case 6:null==a.value&&r(e,13,t.lastStartLoc,0,he(a)),n.key=s(e,a.value||"");break;case 7:null==a.value&&r(e,13,t.lastStartLoc,0,he(a)),n.key=c(e,a.value||"");break;default:r(e,12,t.lastStartLoc,0);const u=e.context(),p=o(7,u.offset,u.startLoc);return p.value="",i(p,u.offset,u.startLoc),n.key=p,i(n,u.offset,u.startLoc),{nextConsumeToken:a,node:n}}return i(n,e.currentOffset(),e.currentPosition()),{node:n}}function h(e){const t=e.context(),n=1===t.currentType?e.currentOffset():t.offset,u=1===t.currentType?t.endLoc:t.startLoc,d=o(2,n,u);d.items=[];let p=null;do{const n=p||e.nextToken();switch(p=null,n.type){case 0:null==n.value&&r(e,13,t.lastStartLoc,0,he(n)),d.items.push(a(e,n.value||""));break;case 6:null==n.value&&r(e,13,t.lastStartLoc,0,he(n)),d.items.push(s(e,n.value||""));break;case 5:null==n.value&&r(e,13,t.lastStartLoc,0,he(n)),d.items.push(l(e,n.value||""));break;case 7:null==n.value&&r(e,13,t.lastStartLoc,0,he(n)),d.items.push(c(e,n.value||""));break;case 8:const o=f(e);d.items.push(o.node),p=o.nextConsumeToken||null;break}}while(14!==t.currentType&&1!==t.currentType);const h=1===t.currentType?t.lastOffset:e.currentOffset(),m=1===t.currentType?t.lastEndLoc:e.currentPosition();return i(d,h,m),d}function m(e,t,n,a){const s=e.context();let l=0===a.items.length;const c=o(1,t,n);c.cases=[],c.cases.push(a);do{const t=h(e);l||(l=0===t.items.length),c.cases.push(t)}while(14!==s.currentType);return l&&r(e,10,n,0),i(c,e.currentOffset(),e.currentPosition()),c}function v(e){const t=e.context(),{offset:n,startLoc:r}=t,o=h(e);return 14===t.currentType?o:m(e,n,r,o)}function g(n){const a=ce(n,p({},e)),s=a.context(),l=o(0,s.offset,s.startLoc);return t&&l.loc&&(l.loc.source=n),l.body=v(a),14!==s.currentType&&r(a,13,s.lastStartLoc,0,n[s.offset]||""),i(l,a.currentOffset(),a.currentPosition()),l}return{parse:g}}function he(e){if(14===e.type)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function me(e,t={}){const n={ast:e,helpers:new Set},r=()=>n,o=e=>(n.helpers.add(e),e);return{context:r,helper:o}}function ve(e,t){for(let n=0;n<e.length;n++)ge(e[n],t)}function ge(e,t){switch(e.type){case 1:ve(e.cases,t),t.helper("plural");break;case 2:ve(e.items,t);break;case 6:const n=e;ge(n.key,t),t.helper("linked");break;case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function ye(e,t={}){const n=me(e);n.helper("normalize"),e.body&&ge(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function be(e,t){const{sourceMap:n,filename:r,breakLineCode:o,needIndent:i}=t,a={source:e.loc.source,filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:o,needIndent:i,indentLevel:0},s=()=>a;function l(e,t){a.code+=e}function c(e,t=!0){const n=t?o:"";l(i?n+" ".repeat(e):n)}function u(e=!0){const t=++a.indentLevel;e&&c(t)}function d(e=!0){const t=--a.indentLevel;e&&c(t)}function p(){c(a.indentLevel)}const f=e=>`_${e}`,h=()=>a.needIndent;return{context:s,push:l,indent:u,deindent:d,newline:p,helper:f,needIndent:h}}function _e(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Ce(e,t.key),t.modifier&&(e.push(", "),Ce(e,t.modifier)),e.push(")")}function we(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const o=t.items.length;for(let i=0;i<o;i++){if(Ce(e,t.items[i]),i===o-1)break;e.push(", ")}e.deindent(r()),e.push("])")}function ke(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const o=t.cases.length;for(let n=0;n<o;n++){if(Ce(e,t.cases[n]),n===o-1)break;e.push(", ")}e.deindent(r()),e.push("])")}}function Se(e,t){t.body?Ce(e,t.body):e.push("null")}function Ce(e,t){const{helper:n}=e;switch(t.type){case 0:Se(e,t);break;case 1:ke(e,t);break;case 2:we(e,t);break;case 6:_e(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:0}}const xe=(e,t={})=>{const n=_(t.mode)?t.mode:"normal",r=_(t.filename)?t.filename:"message.intl",o=!!t.sourceMap,i=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",a=t.needIndent?t.needIndent:"arrow"!==n,s=e.helpers||[],l=be(e,{mode:n,filename:r,sourceMap:o,breakLineCode:i,needIndent:a});l.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(a),s.length>0&&(l.push(`const { ${s.map((e=>`${e}: _${e}`)).join(", ")} } = ctx`),l.newline()),l.push("return "),Ce(l,e),l.deindent(a),l.push("}");const{code:c,map:u}=l.context();return{ast:e,code:c,map:u?u.toJSON():void 0}};function Ie(e,t={}){const n=p({},t),r=fe(n),o=r.parse(e);return ye(o,n),xe(o,n)}
- /*!
- * @intlify/devtools-if v9.1.9
- * (c) 2021 kazuya kawaguchi
- * Released under the MIT License.
- */
- const Te={I18nInit:"i18n:init",FunctionTranslate:"function:translate"};
- /*!
- * @intlify/core-base v9.1.9
- * (c) 2021 kazuya kawaguchi
- * Released under the MIT License.
- */
- let Ee=null;function Re(e){Ee=e}function Pe(e,t,n){Ee&&Ee.emit(Te.I18nInit,{timestamp:Date.now(),i18n:e,version:t,meta:n})}const Oe=Ae(Te.FunctionTranslate);function Ae(e){return t=>Ee&&Ee.emit(e,t)}const De="9.1.9",Ne=-1,Me="";function Le(){return{upper:e=>_(e)?e.toUpperCase():e,lower:e=>_(e)?e.toLowerCase():e,capitalize:e=>_(e)?`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`:e}}let Fe;function Ue(e){Fe=e}let je=null;const Ve=e=>{je=e},He=()=>je;let Be=0;function $e(e={}){const t=_(e.version)?e.version:De,n=_(e.locale)?e.locale:"en-US",r=y(e.fallbackLocale)||x(e.fallbackLocale)||_(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,o=x(e.messages)?e.messages:{[n]:{}},i=x(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},a=x(e.numberFormats)?e.numberFormats:{[n]:{}},s=p({},e.modifiers||{},Le()),l=e.pluralRules||{},u=b(e.missing)?e.missing:null,f=!w(e.missingWarn)&&!c(e.missingWarn)||e.missingWarn,h=!w(e.fallbackWarn)&&!c(e.fallbackWarn)||e.fallbackWarn,m=!!e.fallbackFormat,v=!!e.unresolving,g=b(e.postTranslation)?e.postTranslation:null,S=x(e.processor)?e.processor:null,C=!w(e.warnHtmlMessage)||e.warnHtmlMessage,I=!!e.escapeParameter,T=b(e.messageCompiler)?e.messageCompiler:Fe,E=b(e.onWarn)?e.onWarn:d,R=e,P=k(R.__datetimeFormatters)?R.__datetimeFormatters:new Map,O=k(R.__numberFormatters)?R.__numberFormatters:new Map,A=k(R.__meta)?R.__meta:{};Be++;const D={version:t,cid:Be,locale:n,fallbackLocale:r,messages:o,datetimeFormats:i,numberFormats:a,modifiers:s,pluralRules:l,missing:u,missingWarn:f,fallbackWarn:h,fallbackFormat:m,unresolving:v,postTranslation:g,processor:S,warnHtmlMessage:C,escapeParameter:I,messageCompiler:T,onWarn:E,__datetimeFormatters:P,__numberFormatters:O,__meta:A};return __INTLIFY_PROD_DEVTOOLS__&&Pe(D,t,A),D}function ze(e,t,n,r,o){const{missing:i,onWarn:a}=e;if(null!==i){const r=i(e,n,t,o);return _(r)?r:t}return t}function We(e,t,n){const r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let o=r.__localeChainCache.get(n);if(!o){o=[];let e=[n];while(y(e))e=qe(o,e,t);const i=y(t)?t:x(t)?t["default"]?t["default"]:null:t;e=_(i)?[i]:i,y(e)&&qe(o,e,!1),r.__localeChainCache.set(n,o)}return o}function qe(e,t,n){let r=!0;for(let o=0;o<t.length&&w(r);o++){const i=t[o];_(i)&&(r=Ze(e,t[o],n))}return r}function Ze(e,t,n){let r;const o=t.split("-");do{const t=o.join("-");r=Ye(e,t,n),o.splice(-1,1)}while(o.length&&!0===r);return r}function Ye(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r="!"!==t[t.length-1];const o=t.replace(/!/g,"");e.push(o),(y(n)||x(n))&&n[o]&&(r=n[o])}return r}function Ke(e,t,n){const r=e;r.__localeChainCache=new Map,We(e,n,t)}const Je=e=>e;let Ge=Object.create(null);function Xe(e,t={}){{const n=t.onCacheKey||Je,r=n(e),o=Ge[r];if(o)return o;let i=!1;const a=t.onError||G;t.onError=e=>{i=!0,a(e)};const{code:s}=Ie(e,t),l=new Function(`return ${s}`)();return i?l:Ge[r]=l}}function Qe(e){return J(e,null,void 0)}const et=()=>"",tt=e=>b(e);function nt(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:o,fallbackLocale:i,messages:a}=e,[s,l]=st(...t),c=w(l.missingWarn)?l.missingWarn:e.missingWarn,u=w(l.fallbackWarn)?l.fallbackWarn:e.fallbackWarn,d=w(l.escapeParameter)?l.escapeParameter:e.escapeParameter,f=!!l.resolvedMessage,h=_(l.default)||w(l.default)?w(l.default)?s:l.default:n?s:"",m=n||""!==h,v=_(l.locale)?l.locale:e.locale;d&&rt(l);let[g,y,b]=f?[s,v,a[v]||{}]:ot(e,s,v,i,u,c),k=s;if(f||_(g)||tt(g)||m&&(g=h,k=g),!f&&(!_(g)&&!tt(g)||!_(y)))return o?Ne:s;let S=!1;const C=()=>{S=!0},x=tt(g)?g:it(e,s,y,g,k,C);if(S)return g;const I=ct(e,y,b,l),T=K(I),E=at(e,x,T),R=r?r(E):E;if(__INTLIFY_PROD_DEVTOOLS__){const t={timestamp:Date.now(),key:_(s)?s:tt(g)?g.key:"",locale:y||(tt(g)?g.locale:""),format:_(g)?g:tt(g)?g.source:"",message:R};t.meta=p({},e.__meta,He()||{}),Oe(t)}return R}function rt(e){y(e.list)?e.list=e.list.map((e=>_(e)?m(e):e)):k(e.named)&&Object.keys(e.named).forEach((t=>{_(e.named[t])&&(e.named[t]=m(e.named[t]))}))}function ot(e,t,n,r,o,i){const{messages:a,onWarn:s}=e,l=We(e,r,n);let c,u={},d=null,p=n,f=null;const h="translate";for(let m=0;m<l.length;m++){c=f=l[m],u=a[c]||{};if(null===(d=j(u,t))&&(d=u[t]),_(d)||b(d))break;const n=ze(e,t,c,i,h);n!==t&&(d=n),p=f}return[d,c,u]}function it(e,t,n,r,o,i){const{messageCompiler:a,warnHtmlMessage:s}=e;if(tt(r)){const e=r;return e.locale=e.locale||n,e.key=e.key||t,e}const l=a(r,lt(e,n,o,r,s,i));return l.locale=n,l.key=t,l.source=r,l}function at(e,t,n){const r=t(n);return r}function st(...e){const[t,n,r]=e,o={};if(!_(t)&&!s(t)&&!tt(t))throw Qe(14);const i=s(t)?String(t):(tt(t),t);return s(n)?o.plural=n:_(n)?o.default=n:x(n)&&!u(n)?o.named=n:y(n)&&(o.list=n),s(r)?o.plural=r:_(r)?o.default=r:x(r)&&p(o,r),[i,o]}function lt(e,t,n,r,o,a){return{warnHtmlMessage:o,onError:e=>{throw a&&a(e),e},onCacheKey:e=>i(t,n,e)}}function ct(e,t,n,r){const{modifiers:o,pluralRules:i}=e,a=r=>{const o=j(n,r);if(_(o)){let n=!1;const i=()=>{n=!0},a=it(e,r,t,o,r,i);return n?et:a}return tt(o)?o:et},l={locale:t,modifiers:o,pluralRules:i,messages:a};return e.processor&&(l.processor=e.processor),r.list&&(l.list=r.list),r.named&&(l.named=r.named),s(r.plural)&&(l.pluralIndex=r.plural),l}const ut="undefined"!==typeof Intl;ut&&Intl.DateTimeFormat,ut&&Intl.NumberFormat;function dt(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:o,onWarn:i}=e,{__datetimeFormatters:a}=e;const[s,l,c,d]=pt(...t),f=w(c.missingWarn)?c.missingWarn:e.missingWarn,h=(w(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,!!c.part),m=_(c.locale)?c.locale:e.locale,v=We(e,o,m);if(!_(s)||""===s)return new Intl.DateTimeFormat(m).format(l);let g,y={},b=null,k=m,S=null;const C="datetime format";for(let u=0;u<v.length;u++){if(g=S=v[u],y=n[g]||{},b=y[s],x(b))break;ze(e,s,g,f,C),k=S}if(!x(b)||!_(g))return r?Ne:s;let I=`${g}__${s}`;u(d)||(I=`${I}__${JSON.stringify(d)}`);let T=a.get(I);return T||(T=new Intl.DateTimeFormat(g,p({},b,d)),a.set(I,T)),h?T.formatToParts(l):T.format(l)}function pt(...e){const[t,n,r,o]=e;let i,a={},c={};if(_(t)){if(!/\d{4}-\d{2}-\d{2}(T.*)?/.test(t))throw Qe(16);i=new Date(t);try{i.toISOString()}catch(u){throw Qe(16)}}else if(l(t)){if(isNaN(t.getTime()))throw Qe(15);i=t}else{if(!s(t))throw Qe(14);i=t}return _(n)?a.key=n:x(n)&&(a=n),_(r)?a.locale=r:x(r)&&(c=r),x(o)&&(c=o),[a.key||"",i,a,c]}function ft(e,t,n){const r=e;for(const o in n){const e=`${t}__${o}`;r.__datetimeFormatters.has(e)&&r.__datetimeFormatters.delete(e)}}function ht(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:o,onWarn:i}=e,{__numberFormatters:a}=e;const[s,l,c,d]=mt(...t),f=w(c.missingWarn)?c.missingWarn:e.missingWarn,h=(w(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,!!c.part),m=_(c.locale)?c.locale:e.locale,v=We(e,o,m);if(!_(s)||""===s)return new Intl.NumberFormat(m).format(l);let g,y={},b=null,k=m,S=null;const C="number format";for(let u=0;u<v.length;u++){if(g=S=v[u],y=n[g]||{},b=y[s],x(b))break;ze(e,s,g,f,C),k=S}if(!x(b)||!_(g))return r?Ne:s;let I=`${g}__${s}`;u(d)||(I=`${I}__${JSON.stringify(d)}`);let T=a.get(I);return T||(T=new Intl.NumberFormat(g,p({},b,d)),a.set(I,T)),h?T.formatToParts(l):T.format(l)}function mt(...e){const[t,n,r,o]=e;let i={},a={};if(!s(t))throw Qe(14);const l=t;return _(n)?i.key=n:x(n)&&(i=n),_(r)?i.locale=r:x(r)&&(a=r),x(o)&&(a=o),[i.key||"",l,i,a]}function vt(e,t,n){const r=e;for(const o in n){const e=`${t}__${o}`;r.__numberFormatters.has(e)&&r.__numberFormatters.delete(e)}}"boolean"!==typeof __INTLIFY_PROD_DEVTOOLS__&&(h().__INTLIFY_PROD_DEVTOOLS__=!1);var gt=n(3396),yt=n(4870);function bt(){return _t().__VUE_DEVTOOLS_GLOBAL_HOOK__}function _t(){return"undefined"!==typeof navigator&&"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{}}const wt="function"===typeof Proxy,kt="devtools-plugin:setup",St="plugin:settings:set";let Ct,xt;function It(){var e;return void 0!==Ct||("undefined"!==typeof window&&window.performance?(Ct=!0,xt=window.performance):"undefined"!==typeof n.g&&(null===(e=n.g.perf_hooks)||void 0===e?void 0:e.performance)?(Ct=!0,xt=n.g.perf_hooks.performance):Ct=!1),Ct}function Tt(){return It()?xt.now():Date.now()}class Et{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;const n={};if(e.settings)for(const a in e.settings){const t=e.settings[a];n[a]=t.defaultValue}const r=`__vue-devtools-plugin-settings__${e.id}`;let o=Object.assign({},n);try{const e=localStorage.getItem(r),t=JSON.parse(e);Object.assign(o,t)}catch(i){}this.fallbacks={getSettings(){return o},setSettings(e){try{localStorage.setItem(r,JSON.stringify(e))}catch(i){}o=e},now(){return Tt()}},t&&t.on(St,((e,t)=>{e===this.plugin.id&&this.fallbacks.setSettings(t)})),this.proxiedOn=new Proxy({},{get:(e,t)=>this.target?this.target.on[t]:(...e)=>{this.onQueue.push({method:t,args:e})}}),this.proxiedTarget=new Proxy({},{get:(e,t)=>this.target?this.target[t]:"on"===t?this.proxiedOn:Object.keys(this.fallbacks).includes(t)?(...e)=>(this.targetQueue.push({method:t,args:e,resolve:()=>{}}),this.fallbacks[t](...e)):(...e)=>new Promise((n=>{this.targetQueue.push({method:t,args:e,resolve:n})}))})}async setRealTarget(e){this.target=e;for(const t of this.onQueue)this.target.on[t.method](...t.args);for(const t of this.targetQueue)t.resolve(await this.target[t.method](...t.args))}}function Rt(e,t){const n=e,r=_t(),o=bt(),i=wt&&n.enableEarlyProxy;if(!o||!r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__&&i){const e=i?new Et(n,o):null,a=r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[];a.push({pluginDescriptor:n,setupFn:t,proxy:e}),e&&t(e.proxiedTarget)}else o.emit(kt,e,t)}
- /*!
- * @intlify/vue-devtools v9.1.9
- * (c) 2021 kazuya kawaguchi
- * Released under the MIT License.
- */
- const Pt={["vue-devtools-plugin-vue-i18n"]:"Vue I18n devtools",["vue-i18n-resource-inspector"]:"I18n Resources",["vue-i18n-timeline"]:"Vue I18n"},Ot={["vue-i18n-resource-inspector"]:"Search for scopes ..."},At={["vue-i18n-timeline"]:16764185},Dt="9.1.9";function Nt(){let e=!1;"boolean"!==typeof __VUE_I18N_FULL_INSTALL__&&(e=!0,h().__VUE_I18N_FULL_INSTALL__=!0),"boolean"!==typeof __VUE_I18N_LEGACY_API__&&(e=!0,h().__VUE_I18N_LEGACY_API__=!0),"boolean"!==typeof __VUE_I18N_PROD_DEVTOOLS__&&(e=!0,h().__VUE_I18N_PROD_DEVTOOLS__=!1),"boolean"!==typeof __INTLIFY_PROD_DEVTOOLS__&&(h().__INTLIFY_PROD_DEVTOOLS__=!1)}function Mt(e,...t){return J(e,null,void 0)}const Lt="__INTLIFY_META__",Ft=o("__transrateVNode"),Ut=o("__datetimeParts"),jt=o("__numberParts"),Vt=o("__enableEmitter"),Ht=o("__disableEmitter"),Bt=o("__setPluralRules");o("__intlifyMeta");const $t=o("__injectWithOption");let zt=0;function Wt(e){return(t,n,r,o)=>e(n,r,(0,gt.FN)()||void 0,o)}function qt(e,t){const{messages:n,__i18n:r}=t,o=x(n)?n:y(r)?{}:{[e]:{}};if(y(r)&&r.forEach((({locale:e,resource:t})=>{e?(o[e]=o[e]||{},Yt(t,o[e])):Yt(t,o)})),t.flatJson)for(const i in o)g(o,i)&&V(o[i]);return o}const Zt=e=>!k(e)||y(e);function Yt(e,t){if(Zt(e)||Zt(t))throw Mt(20);for(const n in e)g(e,n)&&(Zt(e[n])||Zt(t[n])?t[n]=e[n]:Yt(e[n],t[n]))}const Kt=()=>{const e=(0,gt.FN)();return e&&e.type[Lt]?{[Lt]:e.type[Lt]}:null};function Jt(e={}){const{__root:t}=e,n=void 0===t;let r=!w(e.inheritLocale)||e.inheritLocale;const o=(0,yt.iH)(t&&r?t.locale.value:_(e.locale)?e.locale:"en-US"),i=(0,yt.iH)(t&&r?t.fallbackLocale.value:_(e.fallbackLocale)||y(e.fallbackLocale)||x(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:o.value),a=(0,yt.iH)(qt(o.value,e)),l=(0,yt.iH)(x(e.datetimeFormats)?e.datetimeFormats:{[o.value]:{}}),u=(0,yt.iH)(x(e.numberFormats)?e.numberFormats:{[o.value]:{}});let d=t?t.missingWarn:!w(e.missingWarn)&&!c(e.missingWarn)||e.missingWarn,f=t?t.fallbackWarn:!w(e.fallbackWarn)&&!c(e.fallbackWarn)||e.fallbackWarn,h=t?t.fallbackRoot:!w(e.fallbackRoot)||e.fallbackRoot,m=!!e.fallbackFormat,v=b(e.missing)?e.missing:null,g=b(e.missing)?Wt(e.missing):null,S=b(e.postTranslation)?e.postTranslation:null,C=!w(e.warnHtmlMessage)||e.warnHtmlMessage,I=!!e.escapeParameter;const T=t?t.modifiers:x(e.modifiers)?e.modifiers:{};let E,R=e.pluralRules||t&&t.pluralRules;function P(){return $e({version:Dt,locale:o.value,fallbackLocale:i.value,messages:a.value,datetimeFormats:l.value,numberFormats:u.value,modifiers:T,pluralRules:R,missing:null===g?void 0:g,missingWarn:d,fallbackWarn:f,fallbackFormat:m,unresolving:!0,postTranslation:null===S?void 0:S,warnHtmlMessage:C,escapeParameter:I,__datetimeFormatters:x(E)?E.__datetimeFormatters:void 0,__numberFormatters:x(E)?E.__numberFormatters:void 0,__v_emitter:x(E)?E.__v_emitter:void 0,__meta:{framework:"vue"}})}function O(){return[o.value,i.value,a.value,l.value,u.value]}E=P(),Ke(E,o.value,i.value);const A=(0,gt.Fl)({get:()=>o.value,set:e=>{o.value=e,E.locale=o.value}}),D=(0,gt.Fl)({get:()=>i.value,set:e=>{i.value=e,E.fallbackLocale=i.value,Ke(E,o.value,e)}}),N=(0,gt.Fl)((()=>a.value)),M=(0,gt.Fl)((()=>l.value)),L=(0,gt.Fl)((()=>u.value));function F(){return b(S)?S:null}function U(e){S=e,E.postTranslation=e}function V(){return v}function H(e){null!==e&&(g=Wt(e)),v=e,E.missing=g}function B(e,n,r,o,i,a){let l;if(O(),__INTLIFY_PROD_DEVTOOLS__)try{Ve(Kt()),l=e(E)}finally{Ve(null)}else l=e(E);if(s(l)&&l===Ne){const[e,r]=n();return t&&h?o(t):i(e)}if(a(l))return l;throw Mt(14)}function $(...e){return B((t=>nt(t,...e)),(()=>st(...e)),"translate",(t=>t.t(...e)),(e=>e),(e=>_(e)))}function z(...e){const[t,n,r]=e;if(r&&!k(r))throw Mt(15);return $(t,n,p({resolvedMessage:!0},r||{}))}function W(...e){return B((t=>dt(t,...e)),(()=>pt(...e)),"datetime format",(t=>t.d(...e)),(()=>Me),(e=>_(e)))}function q(...e){return B((t=>ht(t,...e)),(()=>mt(...e)),"number format",(t=>t.n(...e)),(()=>Me),(e=>_(e)))}function Z(e){return e.map((e=>_(e)?(0,gt.Wm)(gt.xv,null,e,0):e))}const Y=e=>e,K={normalize:Z,interpolate:Y,type:"vnode"};function J(...e){return B((t=>{let n;const r=t;try{r.processor=K,n=nt(r,...e)}finally{r.processor=null}return n}),(()=>st(...e)),"translate",(t=>t[Ft](...e)),(e=>[(0,gt.Wm)(gt.xv,null,e,0)]),(e=>y(e)))}function G(...e){return B((t=>ht(t,...e)),(()=>mt(...e)),"number format",(t=>t[jt](...e)),(()=>[]),(e=>_(e)||y(e)))}function X(...e){return B((t=>dt(t,...e)),(()=>pt(...e)),"datetime format",(t=>t[Ut](...e)),(()=>[]),(e=>_(e)||y(e)))}function Q(e){R=e,E.pluralRules=R}function ee(e,t){const n=_(t)?t:o.value,r=re(n);return null!==j(r,e)}function te(e){let t=null;const n=We(E,i.value,o.value);for(let r=0;r<n.length;r++){const o=a.value[n[r]]||{},i=j(o,e);if(null!=i){t=i;break}}return t}function ne(e){const n=te(e);return null!=n?n:t&&t.tm(e)||{}}function re(e){return a.value[e]||{}}function oe(e,t){a.value[e]=t,E.messages=a.value}function ie(e,t){a.value[e]=a.value[e]||{},Yt(t,a.value[e]),E.messages=a.value}function ae(e){return l.value[e]||{}}function se(e,t){l.value[e]=t,E.datetimeFormats=l.value,ft(E,e,t)}function le(e,t){l.value[e]=p(l.value[e]||{},t),E.datetimeFormats=l.value,ft(E,e,t)}function ce(e){return u.value[e]||{}}function ue(e,t){u.value[e]=t,E.numberFormats=u.value,vt(E,e,t)}function de(e,t){u.value[e]=p(u.value[e]||{},t),E.numberFormats=u.value,vt(E,e,t)}zt++,t&&((0,gt.YP)(t.locale,(e=>{r&&(o.value=e,E.locale=e,Ke(E,o.value,i.value))})),(0,gt.YP)(t.fallbackLocale,(e=>{r&&(i.value=e,E.fallbackLocale=e,Ke(E,o.value,i.value))})));const pe={id:zt,locale:A,fallbackLocale:D,get inheritLocale(){return r},set inheritLocale(e){r=e,e&&t&&(o.value=t.locale.value,i.value=t.fallbackLocale.value,Ke(E,o.value,i.value))},get availableLocales(){return Object.keys(a.value).sort()},messages:N,datetimeFormats:M,numberFormats:L,get modifiers(){return T},get pluralRules(){return R||{}},get isGlobal(){return n},get missingWarn(){return d},set missingWarn(e){d=e,E.missingWarn=d},get fallbackWarn(){return f},set fallbackWarn(e){f=e,E.fallbackWarn=f},get fallbackRoot(){return h},set fallbackRoot(e){h=e},get fallbackFormat(){return m},set fallbackFormat(e){m=e,E.fallbackFormat=m},get warnHtmlMessage(){return C},set warnHtmlMessage(e){C=e,E.warnHtmlMessage=e},get escapeParameter(){return I},set escapeParameter(e){I=e,E.escapeParameter=e},t:$,rt:z,d:W,n:q,te:ee,tm:ne,getLocaleMessage:re,setLocaleMessage:oe,mergeLocaleMessage:ie,getDateTimeFormat:ae,setDateTimeFormat:se,mergeDateTimeFormat:le,getNumberFormat:ce,setNumberFormat:ue,mergeNumberFormat:de,getPostTranslationHandler:F,setPostTranslationHandler:U,getMissingHandler:V,setMissingHandler:H,[Ft]:J,[jt]:G,[Ut]:X,[Bt]:Q,[$t]:e.__injectWithOption};return pe}function Gt(e){const t=_(e.locale)?e.locale:"en-US",n=_(e.fallbackLocale)||y(e.fallbackLocale)||x(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:t,r=b(e.missing)?e.missing:void 0,o=!w(e.silentTranslationWarn)&&!c(e.silentTranslationWarn)||!e.silentTranslationWarn,i=!w(e.silentFallbackWarn)&&!c(e.silentFallbackWarn)||!e.silentFallbackWarn,a=!w(e.fallbackRoot)||e.fallbackRoot,s=!!e.formatFallbackMessages,l=x(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,d=b(e.postTranslation)?e.postTranslation:void 0,f=!_(e.warnHtmlInMessage)||"off"!==e.warnHtmlInMessage,h=!!e.escapeParameterHtml,m=!w(e.sync)||e.sync;let v=e.messages;if(x(e.sharedMessages)){const t=e.sharedMessages,n=Object.keys(t);v=n.reduce(((e,n)=>{const r=e[n]||(e[n]={});return p(r,t[n]),e}),v||{})}const{__i18n:g,__root:k,__injectWithOption:S}=e,C=e.datetimeFormats,I=e.numberFormats,T=e.flatJson;return{locale:t,fallbackLocale:n,messages:v,flatJson:T,datetimeFormats:C,numberFormats:I,missing:r,missingWarn:o,fallbackWarn:i,fallbackRoot:a,fallbackFormat:s,modifiers:l,pluralRules:u,postTranslation:d,warnHtmlMessage:f,escapeParameter:h,inheritLocale:m,__i18n:g,__root:k,__injectWithOption:S}}function Xt(e={}){const t=Jt(Gt(e)),n={id:t.id,get locale(){return t.locale.value},set locale(e){t.locale.value=e},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(e){t.fallbackLocale.value=e},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(e){},get missing(){return t.getMissingHandler()},set missing(e){t.setMissingHandler(e)},get silentTranslationWarn(){return w(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(e){t.missingWarn=w(e)?!e:e},get silentFallbackWarn(){return w(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(e){t.fallbackWarn=w(e)?!e:e},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(e){t.fallbackFormat=e},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(e){t.setPostTranslationHandler(e)},get sync(){return t.inheritLocale},set sync(e){t.inheritLocale=e},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(e){t.warnHtmlMessage="off"!==e},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(e){t.escapeParameter=e},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(e){},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...e){const[n,r,o]=e,i={};let a=null,s=null;if(!_(n))throw Mt(15);const l=n;return _(r)?i.locale=r:y(r)?a=r:x(r)&&(s=r),y(o)?a=o:x(o)&&(s=o),t.t(l,a||s||{},i)},rt(...e){return t.rt(...e)},tc(...e){const[n,r,o]=e,i={plural:1};let a=null,l=null;if(!_(n))throw Mt(15);const c=n;return _(r)?i.locale=r:s(r)?i.plural=r:y(r)?a=r:x(r)&&(l=r),_(o)?i.locale=o:y(o)?a=o:x(o)&&(l=o),t.t(c,a||l||{},i)},te(e,n){return t.te(e,n)},tm(e){return t.tm(e)},getLocaleMessage(e){return t.getLocaleMessage(e)},setLocaleMessage(e,n){t.setLocaleMessage(e,n)},mergeLocaleMessage(e,n){t.mergeLocaleMessage(e,n)},d(...e){return t.d(...e)},getDateTimeFormat(e){return t.getDateTimeFormat(e)},setDateTimeFormat(e,n){t.setDateTimeFormat(e,n)},mergeDateTimeFormat(e,n){t.mergeDateTimeFormat(e,n)},n(...e){return t.n(...e)},getNumberFormat(e){return t.getNumberFormat(e)},setNumberFormat(e,n){t.setNumberFormat(e,n)},mergeNumberFormat(e,n){t.mergeNumberFormat(e,n)},getChoiceIndex(e,t){return-1},__onComponentInstanceCreated(t){const{componentInstanceCreatedListener:r}=e;r&&r(t,n)}};return n}const Qt={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}},en={name:"i18n-t",props:p({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>s(e)||!isNaN(e)}},Qt),setup(e,t){const{slots:n,attrs:r}=t,o=e.i18n||An({useScope:e.scope,__useComponent:!0}),i=Object.keys(n).filter((e=>"_"!==e));return()=>{const n={};e.locale&&(n.locale=e.locale),void 0!==e.plural&&(n.plural=_(e.plural)?+e.plural:e.plural);const a=tn(t,i),s=o[Ft](e.keypath,a,n),l=p({},r);return _(e.tag)||k(e.tag)?(0,gt.h)(e.tag,l,s):(0,gt.h)(gt.HY,l,s)}}};function tn({slots:e},t){return 1===t.length&&"default"===t[0]?e.default?e.default():[]:t.reduce(((t,n)=>{const r=e[n];return r&&(t[n]=r()),t}),{})}function nn(e,t,n,r){const{slots:o,attrs:i}=t;return()=>{const t={part:!0};let a={};e.locale&&(t.locale=e.locale),_(e.format)?t.key=e.format:k(e.format)&&(_(e.format.key)&&(t.key=e.format.key),a=Object.keys(e.format).reduce(((t,r)=>n.includes(r)?p({},t,{[r]:e.format[r]}):t),{}));const s=r(e.value,t,a);let l=[t.key];y(s)?l=s.map(((e,t)=>{const n=o[e.type];return n?n({[e.type]:e.value,index:t,parts:s}):[e.value]})):_(s)&&(l=[s]);const c=p({},i);return _(e.tag)||k(e.tag)?(0,gt.h)(e.tag,c,l):(0,gt.h)(gt.HY,c,l)}}const rn=["localeMatcher","style","unit","unitDisplay","currency","currencyDisplay","useGrouping","numberingSystem","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","notation","formatMatcher"],on={name:"i18n-n",props:p({value:{type:Number,required:!0},format:{type:[String,Object]}},Qt),setup(e,t){const n=e.i18n||An({useScope:"parent",__useComponent:!0});return nn(e,t,rn,((...e)=>n[jt](...e)))}},an=["dateStyle","timeStyle","fractionalSecondDigits","calendar","dayPeriod","numberingSystem","localeMatcher","timeZone","hour12","hourCycle","formatMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName"],sn={name:"i18n-d",props:p({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Qt),setup(e,t){const n=e.i18n||An({useScope:"parent",__useComponent:!0});return nn(e,t,an,((...e)=>n[Ut](...e)))}};function ln(e,t){const n=e;if("composition"===e.mode)return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return null!=r?r.__composer:e.global.__composer}}function cn(e){const t=(t,{instance:n,value:r,modifiers:o})=>{if(!n||!n.$)throw Mt(22);const i=ln(e,n.$);const a=un(r);t.textContent=i.t(...dn(a))};return{beforeMount:t,beforeUpdate:t}}function un(e){if(_(e))return{path:e};if(x(e)){if(!("path"in e))throw Mt(19,"path");return e}throw Mt(20)}function dn(e){const{path:t,locale:n,args:r,choice:o,plural:i}=e,a={},l=r||{};return _(n)&&(a.locale=n),s(o)&&(a.plural=o),s(i)&&(a.plural=i),[t,l,a]}function pn(e,t,...n){const r=x(n[0])?n[0]:{},o=!!r.useI18nComponentName,i=!w(r.globalInstall)||r.globalInstall;i&&(e.component(o?"i18n":en.name,en),e.component(on.name,on),e.component(sn.name,sn)),e.directive("t",cn(t))}const fn="vue-i18n: composer properties";let hn;async function mn(e,t){return new Promise(((n,r)=>{try{Rt({id:"vue-devtools-plugin-vue-i18n",label:Pt["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[fn],app:e},(r=>{hn=r,r.on.visitComponentTree((({componentInstance:e,treeNode:n})=>{vn(e,n,t)})),r.on.inspectComponent((({componentInstance:e,instanceData:n})=>{e.vnode.el.__VUE_I18N__&&n&&("legacy"===t.mode?e.vnode.el.__VUE_I18N__!==t.global.__composer&&gn(n,e.vnode.el.__VUE_I18N__):gn(n,e.vnode.el.__VUE_I18N__))})),r.addInspector({id:"vue-i18n-resource-inspector",label:Pt["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:Ot["vue-i18n-resource-inspector"]}),r.on.getInspectorTree((n=>{n.app===e&&"vue-i18n-resource-inspector"===n.inspectorId&&Sn(n,t)})),r.on.getInspectorState((n=>{n.app===e&&"vue-i18n-resource-inspector"===n.inspectorId&&xn(n,t)})),r.on.editInspectorState((n=>{n.app===e&&"vue-i18n-resource-inspector"===n.inspectorId&&En(n,t)})),r.addTimelineLayer({id:"vue-i18n-timeline",label:Pt["vue-i18n-timeline"],color:At["vue-i18n-timeline"]}),n(!0)}))}catch(o){console.error(o),r(!1)}}))}function vn(e,t,n){const r="composition"===n.mode?n.global:n.global.__composer;if(e&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==r){const n=e.type.name||e.type.displayName||e.type.__file,r={label:`i18n (${n} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(r)}}function gn(e,t){const n=fn;e.state.push({type:n,key:"locale",editable:!0,value:t.locale.value}),e.state.push({type:n,key:"availableLocales",editable:!1,value:t.availableLocales}),e.state.push({type:n,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value}),e.state.push({type:n,key:"inheritLocale",editable:!0,value:t.inheritLocale}),e.state.push({type:n,key:"messages",editable:!1,value:yn(t.messages.value)}),e.state.push({type:n,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}),e.state.push({type:n,key:"numberFormats",editable:!1,value:t.numberFormats.value})}function yn(e){const t={};return Object.keys(e).forEach((n=>{const r=e[n];b(r)&&"source"in r?t[n]=kn(r):k(r)?t[n]=yn(r):t[n]=r})),t}const bn={"<":"<",">":">",'"':""","&":"&"};function _n(e){return e.replace(/[<>"&]/g,wn)}function wn(e){return bn[e]||e}function kn(e){const t=e.source?`("${_n(e.source)}")`:"(?)";return{_custom:{type:"function",display:`<span>ƒ</span> ${t}`}}}function Sn(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n="composition"===t.mode?t.global:t.global.__composer;for(const[r,o]of t.__instances){const i="composition"===t.mode?o:o.__composer;if(n===i)continue;const a=r.type.name||r.type.displayName||r.type.__file;e.rootNodes.push({id:i.id.toString(),label:`${a} Scope`})}}function Cn(e,t){if("global"===e)return"composition"===t.mode?t.global:t.global.__composer;{const n=Array.from(t.__instances.values()).find((t=>t.id.toString()===e));return n?"composition"===t.mode?n:n.__composer:null}}function xn(e,t){const n=Cn(e.nodeId,t);n&&(e.state=In(n))}function In(e){const t={},n="Locale related info",r=[{type:n,key:"locale",editable:!0,value:e.locale.value},{type:n,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:n,key:"availableLocales",editable:!1,value:e.availableLocales},{type:n,key:"inheritLocale",editable:!0,value:e.inheritLocale}];t[n]=r;const o="Locale messages info",i=[{type:o,key:"messages",editable:!1,value:yn(e.messages.value)}];t[o]=i;const a="Datetime formats info",s=[{type:a,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[a]=s;const l="Datetime formats info",c=[{type:l,key:"numberFormats",editable:!1,value:e.numberFormats.value}];return t[l]=c,t}function Tn(e,t){if(hn){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),hn.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:e,groupId:n,time:Date.now(),meta:{},data:t||{},logType:"compile-error"===e?"error":"fallback"===e||"missing"===e?"warning":"default"}})}}function En(e,t){const n=Cn(e.nodeId,t);if(n){const[t]=e.path;"locale"===t&&_(e.state.value)?n.locale.value=e.state.value:"fallbackLocale"===t&&(_(e.state.value)||y(e.state.value)||k(e.state.value))?n.fallbackLocale.value=e.state.value:"inheritLocale"===t&&w(e.state.value)&&(n.inheritLocale=e.state.value)}}function Rn(e,t,n){return{beforeCreate(){const r=(0,gt.FN)();if(!r)throw Mt(22);const o=this.$options;if(o.i18n){const n=o.i18n;o.__i18n&&(n.__i18n=o.__i18n),n.__root=t,this===this.$root?this.$i18n=Pn(e,n):(n.__injectWithOption=!0,this.$i18n=Xt(n))}else o.__i18n?this===this.$root?this.$i18n=Pn(e,o):this.$i18n=Xt({__i18n:o.__i18n,__injectWithOption:!0,__root:t}):this.$i18n=e;e.__onComponentInstanceCreated(this.$i18n),n.__setInstance(r,this.$i18n),this.$t=(...e)=>this.$i18n.t(...e),this.$rt=(...e)=>this.$i18n.rt(...e),this.$tc=(...e)=>this.$i18n.tc(...e),this.$te=(e,t)=>this.$i18n.te(e,t),this.$d=(...e)=>this.$i18n.d(...e),this.$n=(...e)=>this.$i18n.n(...e),this.$tm=e=>this.$i18n.tm(e)},mounted(){if(__VUE_I18N_PROD_DEVTOOLS__){this.$el.__VUE_I18N__=this.$i18n.__composer;const e=this.__v_emitter=T(),t=this.$i18n;t.__enableEmitter&&t.__enableEmitter(e),e.on("*",Tn)}},beforeUnmount(){const e=(0,gt.FN)();if(!e)throw Mt(22);if(__VUE_I18N_PROD_DEVTOOLS__){this.__v_emitter&&(this.__v_emitter.off("*",Tn),delete this.__v_emitter);const e=this.$i18n;e.__disableEmitter&&e.__disableEmitter(),delete this.$el.__VUE_I18N__}delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,n.__deleteInstance(e),delete this.$i18n}}}function Pn(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[Bt](t.pluralizationRules||e.pluralizationRules);const n=qt(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach((t=>e.mergeLocaleMessage(t,n[t]))),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach((n=>e.mergeDateTimeFormat(n,t.datetimeFormats[n]))),t.numberFormats&&Object.keys(t.numberFormats).forEach((n=>e.mergeNumberFormat(n,t.numberFormats[n]))),e}function On(e={}){const t=__VUE_I18N_LEGACY_API__&&w(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,n=!!e.globalInjection,r=new Map,i=__VUE_I18N_LEGACY_API__&&t?Xt(e):Jt(e),a=o(""),s={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(e,...r){if(__VUE_I18N_PROD_DEVTOOLS__&&(e.__VUE_I18N__=s),e.__VUE_I18N_SYMBOL__=a,e.provide(e.__VUE_I18N_SYMBOL__,s),!t&&n&&Fn(e,s.global),__VUE_I18N_FULL_INSTALL__&&pn(e,s,...r),__VUE_I18N_LEGACY_API__&&t&&e.mixin(Rn(i,i.__composer,s)),__VUE_I18N_PROD_DEVTOOLS__){const n=await mn(e,s);if(!n)throw Mt(21);const r=T();if(t){const e=i;e.__enableEmitter&&e.__enableEmitter(r)}else{const e=i;e[Vt]&&e[Vt](r)}r.on("*",Tn)}},get global(){return i},__instances:r,__getInstance(e){return r.get(e)||null},__setInstance(e,t){r.set(e,t)},__deleteInstance(e){r.delete(e)}};return s}function An(e={}){const t=(0,gt.FN)();if(null==t)throw Mt(16);if(!t.appContext.app.__VUE_I18N_SYMBOL__)throw Mt(17);const n=(0,gt.f3)(t.appContext.app.__VUE_I18N_SYMBOL__);if(!n)throw Mt(22);const r="composition"===n.mode?n.global:n.global.__composer,o=u(e)?"__i18n"in t.type?"local":"global":e.useScope?e.useScope:"local";if("global"===o){let n=k(e.messages)?e.messages:{};"__i18nGlobal"in t.type&&(n=qt(r.locale.value,{messages:n,__i18n:t.type.__i18nGlobal}));const o=Object.keys(n);if(o.length&&o.forEach((e=>{r.mergeLocaleMessage(e,n[e])})),k(e.datetimeFormats)){const t=Object.keys(e.datetimeFormats);t.length&&t.forEach((t=>{r.mergeDateTimeFormat(t,e.datetimeFormats[t])}))}if(k(e.numberFormats)){const t=Object.keys(e.numberFormats);t.length&&t.forEach((t=>{r.mergeNumberFormat(t,e.numberFormats[t])}))}return r}if("parent"===o){let o=Dn(n,t,e.__useComponent);return null==o&&(o=r),o}if("legacy"===n.mode)throw Mt(18);const i=n;let a=i.__getInstance(t);if(null==a){const n=t.type,o=p({},e);n.__i18n&&(o.__i18n=n.__i18n),r&&(o.__root=r),a=Jt(o),Nn(i,t,a),i.__setInstance(t,a)}return a}function Dn(e,t,n=!1){let r=null;const o=t.root;let i=t.parent;while(null!=i){const t=e;if("composition"===e.mode)r=t.__getInstance(i);else{const e=t.__getInstance(i);null!=e&&(r=e.__composer),n&&r&&!r[$t]&&(r=null)}if(null!=r)break;if(o===i)break;i=i.parent}return r}function Nn(e,t,n){let r=null;(0,gt.bv)((()=>{if(__VUE_I18N_PROD_DEVTOOLS__&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,r=T();const e=n;e[Vt]&&e[Vt](r),r.on("*",Tn)}}),t),(0,gt.Ah)((()=>{if(__VUE_I18N_PROD_DEVTOOLS__&&t.vnode.el&&t.vnode.el.__VUE_I18N__){r&&r.off("*",Tn);const e=n;e[Ht]&&e[Ht](),delete t.vnode.el.__VUE_I18N__}e.__deleteInstance(t)}),t)}const Mn=["locale","fallbackLocale","availableLocales"],Ln=["t","rt","d","n","tm"];function Fn(e,t){const n=Object.create(null);Mn.forEach((e=>{const r=Object.getOwnPropertyDescriptor(t,e);if(!r)throw Mt(22);const o=(0,yt.dq)(r.value)?{get(){return r.value.value},set(e){r.value.value=e}}:{get(){return r.get&&r.get()}};Object.defineProperty(n,e,o)})),e.config.globalProperties.$i18n=n,Ln.forEach((n=>{const r=Object.getOwnPropertyDescriptor(t,n);if(!r||!r.value)throw Mt(22);Object.defineProperty(e.config.globalProperties,`$${n}`,r)}))}if(Ue(Xe),Nt(),__INTLIFY_PROD_DEVTOOLS__){const e=h();e.__INTLIFY__=!0,Re(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}},89:function(e,t){"use strict";t.Z=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n}},678:function(e,t,n){"use strict";n.d(t,{p7:function(){return nt},r5:function(){return q}});n(1703);var r=n(3396),o=n(4870);
- /*!
- * vue-router v4.0.14
- * (c) 2022 Eduardo San Martin Morote
- * @license MIT
- */
- const i="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag,a=e=>i?Symbol(e):"_vr_"+e,s=a("rvlm"),l=a("rvd"),c=a("r"),u=a("rl"),d=a("rvl"),p="undefined"!==typeof window;function f(e){return e.__esModule||i&&"Module"===e[Symbol.toStringTag]}const h=Object.assign;function m(e,t){const n={};for(const r in t){const o=t[r];n[r]=Array.isArray(o)?o.map(e):e(o)}return n}const v=()=>{};const g=/\/$/,y=e=>e.replace(g,"");function b(e,t,n="/"){let r,o={},i="",a="";const s=t.indexOf("?"),l=t.indexOf("#",s>-1?s:0);return s>-1&&(r=t.slice(0,s),i=t.slice(s+1,l>-1?l:t.length),o=e(i)),l>-1&&(r=r||t.slice(0,l),a=t.slice(l,t.length)),r=T(null!=r?r:t,n),{fullPath:r+(i&&"?")+i+a,path:r,query:o,hash:a}}function _(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function w(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function k(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&S(t.matched[r],n.matched[o])&&C(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function S(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function C(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!x(e[n],t[n]))return!1;return!0}function x(e,t){return Array.isArray(e)?I(e,t):Array.isArray(t)?I(t,e):e===t}function I(e,t){return Array.isArray(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}function T(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/");let o,i,a=n.length-1;for(o=0;o<r.length;o++)if(i=r[o],1!==a&&"."!==i){if(".."!==i)break;a--}return n.slice(0,a).join("/")+"/"+r.slice(o-(o===r.length?1:0)).join("/")}var E,R;(function(e){e["pop"]="pop",e["push"]="push"})(E||(E={})),function(e){e["back"]="back",e["forward"]="forward",e["unknown"]=""}(R||(R={}));function P(e){if(!e)if(p){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),y(e)}const O=/^[^#]+#/;function A(e,t){return e.replace(O,"#")+t}function D(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const N=()=>({left:window.pageXOffset,top:window.pageYOffset});function M(e){let t;if("el"in e){const n=e.el,r="string"===typeof n&&n.startsWith("#");0;const o="string"===typeof n?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=D(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.pageXOffset,null!=t.top?t.top:window.pageYOffset)}function L(e,t){const n=history.state?history.state.position-t:-1;return n+e}const F=new Map;function U(e,t){F.set(e,t)}function j(e){const t=F.get(e);return F.delete(e),t}let V=()=>location.protocol+"//"+location.host;function H(e,t){const{pathname:n,search:r,hash:o}=t,i=e.indexOf("#");if(i>-1){let t=o.includes(e.slice(i))?e.slice(i).length:1,n=o.slice(t);return"/"!==n[0]&&(n="/"+n),w(n,"")}const a=w(n,e);return a+r+o}function B(e,t,n,r){let o=[],i=[],a=null;const s=({state:i})=>{const s=H(e,location),l=n.value,c=t.value;let u=0;if(i){if(n.value=s,t.value=i,a&&a===l)return void(a=null);u=c?i.position-c.position:0}else r(s);o.forEach((e=>{e(n.value,l,{delta:u,type:E.pop,direction:u?u>0?R.forward:R.back:R.unknown})}))};function l(){a=n.value}function c(e){o.push(e);const t=()=>{const t=o.indexOf(e);t>-1&&o.splice(t,1)};return i.push(t),t}function u(){const{history:e}=window;e.state&&e.replaceState(h({},e.state,{scroll:N()}),"")}function d(){for(const e of i)e();i=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",u),{pauseListeners:l,listen:c,destroy:d}}function $(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?N():null}}function z(e){const{history:t,location:n}=window,r={value:H(e,n)},o={value:t.state};function i(r,i,a){const s=e.indexOf("#"),l=s>-1?(n.host&&document.querySelector("base")?e:e.slice(s))+r:V()+e+r;try{t[a?"replaceState":"pushState"](i,"",l),o.value=i}catch(c){console.error(c),n[a?"replace":"assign"](l)}}function a(e,n){const a=h({},t.state,$(o.value.back,e,o.value.forward,!0),n,{position:o.value.position});i(e,a,!0),r.value=e}function s(e,n){const a=h({},o.value,t.state,{forward:e,scroll:N()});i(a.current,a,!0);const s=h({},$(r.value,e,null),{position:a.position+1},n);i(e,s,!1),r.value=e}return o.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:r,state:o,push:s,replace:a}}function W(e){e=P(e);const t=z(e),n=B(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}const o=h({location:"",base:e,go:r,createHref:A.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function q(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),W(e)}function Z(e){return"string"===typeof e||e&&"object"===typeof e}function Y(e){return"string"===typeof e||"symbol"===typeof e}const K={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},J=a("nf");var G;(function(e){e[e["aborted"]=4]="aborted",e[e["cancelled"]=8]="cancelled",e[e["duplicated"]=16]="duplicated"})(G||(G={}));function X(e,t){return h(new Error,{type:e,[J]:!0},t)}function Q(e,t){return e instanceof Error&&J in e&&(null==t||!!(e.type&t))}const ee="[^/]+?",te={sensitive:!1,strict:!1,start:!0,end:!0},ne=/[.+*?^${}()[\]/\\]/g;function re(e,t){const n=h({},te,t),r=[];let o=n.start?"^":"";const i=[];for(const u of e){const e=u.length?[]:[90];n.strict&&!u.length&&(o+="/");for(let t=0;t<u.length;t++){const r=u[t];let a=40+(n.sensitive?.25:0);if(0===r.type)t||(o+="/"),o+=r.value.replace(ne,"\\$&"),a+=40;else if(1===r.type){const{value:e,repeatable:n,optional:s,regexp:l}=r;i.push({name:e,repeatable:n,optional:s});const d=l||ee;if(d!==ee){a+=10;try{new RegExp(`(${d})`)}catch(c){throw new Error(`Invalid custom RegExp for param "${e}" (${d}): `+c.message)}}let p=n?`((?:${d})(?:/(?:${d}))*)`:`(${d})`;t||(p=s&&u.length<2?`(?:/${p})`:"/"+p),s&&(p+="?"),o+=p,a+=20,s&&(a+=-8),n&&(a+=-20),".*"===d&&(a+=-50)}e.push(a)}r.push(e)}if(n.strict&&n.end){const e=r.length-1;r[e][r[e].length-1]+=.7000000000000001}n.strict||(o+="/?"),n.end?o+="$":n.strict&&(o+="(?:/|$)");const a=new RegExp(o,n.sensitive?"":"i");function s(e){const t=e.match(a),n={};if(!t)return null;for(let r=1;r<t.length;r++){const e=t[r]||"",o=i[r-1];n[o.name]=e&&o.repeatable?e.split("/"):e}return n}function l(t){let n="",r=!1;for(const o of e){r&&n.endsWith("/")||(n+="/"),r=!1;for(const e of o)if(0===e.type)n+=e.value;else if(1===e.type){const{value:i,repeatable:a,optional:s}=e,l=i in t?t[i]:"";if(Array.isArray(l)&&!a)throw new Error(`Provided param "${i}" is an array but it is not repeatable (* or + modifiers)`);const c=Array.isArray(l)?l.join("/"):l;if(!c){if(!s)throw new Error(`Missing required param "${i}"`);o.length<2&&(n.endsWith("/")?n=n.slice(0,-1):r=!0)}n+=c}}return n}return{re:a,score:r,keys:i,parse:s,stringify:l}}function oe(e,t){let n=0;while(n<e.length&&n<t.length){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?1===e.length&&80===e[0]?-1:1:e.length>t.length?1===t.length&&80===t[0]?1:-1:0}function ie(e,t){let n=0;const r=e.score,o=t.score;while(n<r.length&&n<o.length){const e=oe(r[n],o[n]);if(e)return e;n++}return o.length-r.length}const ae={type:0,value:""},se=/[a-zA-Z0-9_]/;function le(e){if(!e)return[[]];if("/"===e)return[[ae]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(e){throw new Error(`ERR (${n})/"${c}": ${e}`)}let n=0,r=n;const o=[];let i;function a(){i&&o.push(i),i=[]}let s,l=0,c="",u="";function d(){c&&(0===n?i.push({type:0,value:c}):1===n||2===n||3===n?(i.length>1&&("*"===s||"+"===s)&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:c,regexp:u,repeatable:"*"===s||"+"===s,optional:"*"===s||"?"===s})):t("Invalid state to consume buffer"),c="")}function p(){c+=s}while(l<e.length)if(s=e[l++],"\\"!==s||2===n)switch(n){case 0:"/"===s?(c&&d(),a()):":"===s?(d(),n=1):p();break;case 4:p(),n=r;break;case 1:"("===s?n=2:se.test(s)?p():(d(),n=0,"*"!==s&&"?"!==s&&"+"!==s&&l--);break;case 2:")"===s?"\\"==u[u.length-1]?u=u.slice(0,-1)+s:n=3:u+=s;break;case 3:d(),n=0,"*"!==s&&"?"!==s&&"+"!==s&&l--,u="";break;default:t("Unknown state");break}else r=n,n=4;return 2===n&&t(`Unfinished custom RegExp for param "${c}"`),d(),a(),o}function ce(e,t,n){const r=re(le(e.path),n);const o=h(r,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf===!t.record.aliasOf&&t.children.push(o),o}function ue(e,t){const n=[],r=new Map;function o(e){return r.get(e)}function i(e,n,r){const o=!r,s=pe(e);s.aliasOf=r&&r.record;const c=ve(t,e),u=[s];if("alias"in e){const t="string"===typeof e.alias?[e.alias]:e.alias;for(const e of t)u.push(h({},s,{components:r?r.record.components:s.components,path:e,aliasOf:r?r.record:s}))}let d,p;for(const t of u){const{path:u}=t;if(n&&"/"!==u[0]){const e=n.record.path,r="/"===e[e.length-1]?"":"/";t.path=n.record.path+(u&&r+u)}if(d=ce(t,n,c),r?r.alias.push(d):(p=p||d,p!==d&&p.alias.push(d),o&&e.name&&!he(d)&&a(e.name)),"children"in s){const e=s.children;for(let t=0;t<e.length;t++)i(e[t],d,r&&r.children[t])}r=r||d,l(d)}return p?()=>{a(p)}:v}function a(e){if(Y(e)){const t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(a),t.alias.forEach(a))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(a),e.alias.forEach(a))}}function s(){return n}function l(e){let t=0;while(t<n.length&&ie(e,n[t])>=0&&(e.record.path!==n[t].record.path||!ge(e,n[t])))t++;n.splice(t,0,e),e.record.name&&!he(e)&&r.set(e.record.name,e)}function c(e,t){let o,i,a,s={};if("name"in e&&e.name){if(o=r.get(e.name),!o)throw X(1,{location:e});a=o.record.name,s=h(de(t.params,o.keys.filter((e=>!e.optional)).map((e=>e.name))),e.params),i=o.stringify(s)}else if("path"in e)i=e.path,o=n.find((e=>e.re.test(i))),o&&(s=o.parse(i),a=o.record.name);else{if(o=t.name?r.get(t.name):n.find((e=>e.re.test(t.path))),!o)throw X(1,{location:e,currentLocation:t});a=o.record.name,s=h({},t.params,e.params),i=o.stringify(s)}const l=[];let c=o;while(c)l.unshift(c.record),c=c.parent;return{name:a,path:i,params:s,matched:l,meta:me(l)}}return t=ve({strict:!1,end:!0,sensitive:!1},t),e.forEach((e=>i(e))),{addRoute:i,resolve:c,removeRoute:a,getRoutes:s,getRecordMatcher:o}}function de(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function pe(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:fe(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||{}:{default:e.component}}}function fe(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]="boolean"===typeof n?n:n[r];return t}function he(e){while(e){if(e.record.aliasOf)return!0;e=e.parent}return!1}function me(e){return e.reduce(((e,t)=>h(e,t.meta)),{})}function ve(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function ge(e,t){return t.children.some((t=>t===e||ge(e,t)))}const ye=/#/g,be=/&/g,_e=/\//g,we=/=/g,ke=/\?/g,Se=/\+/g,Ce=/%5B/g,xe=/%5D/g,Ie=/%5E/g,Te=/%60/g,Ee=/%7B/g,Re=/%7C/g,Pe=/%7D/g,Oe=/%20/g;function Ae(e){return encodeURI(""+e).replace(Re,"|").replace(Ce,"[").replace(xe,"]")}function De(e){return Ae(e).replace(Ee,"{").replace(Pe,"}").replace(Ie,"^")}function Ne(e){return Ae(e).replace(Se,"%2B").replace(Oe,"+").replace(ye,"%23").replace(be,"%26").replace(Te,"`").replace(Ee,"{").replace(Pe,"}").replace(Ie,"^")}function Me(e){return Ne(e).replace(we,"%3D")}function Le(e){return Ae(e).replace(ye,"%23").replace(ke,"%3F")}function Fe(e){return null==e?"":Le(e).replace(_e,"%2F")}function Ue(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}function je(e){const t={};if(""===e||"?"===e)return t;const n="?"===e[0],r=(n?e.slice(1):e).split("&");for(let o=0;o<r.length;++o){const e=r[o].replace(Se," "),n=e.indexOf("="),i=Ue(n<0?e:e.slice(0,n)),a=n<0?null:Ue(e.slice(n+1));if(i in t){let e=t[i];Array.isArray(e)||(e=t[i]=[e]),e.push(a)}else t[i]=a}return t}function Ve(e){let t="";for(let n in e){const r=e[n];if(n=Me(n),null==r){void 0!==r&&(t+=(t.length?"&":"")+n);continue}const o=Array.isArray(r)?r.map((e=>e&&Ne(e))):[r&&Ne(r)];o.forEach((e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))}))}return t}function He(e){const t={};for(const n in e){const r=e[n];void 0!==r&&(t[n]=Array.isArray(r)?r.map((e=>null==e?null:""+e)):null==r?r:""+r)}return t}function Be(){let e=[];function t(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function $e(e,t,n,r,o){const i=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise(((a,s)=>{const l=e=>{!1===e?s(X(4,{from:n,to:t})):e instanceof Error?s(e):Z(e)?s(X(2,{from:t,to:e})):(i&&r.enterCallbacks[o]===i&&"function"===typeof e&&i.push(e),a())},c=e.call(r&&r.instances[o],t,n,l);let u=Promise.resolve(c);e.length<3&&(u=u.then(l)),u.catch((e=>s(e)))}))}function ze(e,t,n,r){const o=[];for(const i of e)for(const e in i.components){let a=i.components[e];if("beforeRouteEnter"===t||i.instances[e])if(We(a)){const s=a.__vccOpts||a,l=s[t];l&&o.push($e(l,n,r,i,e))}else{let s=a();0,o.push((()=>s.then((o=>{if(!o)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${i.path}"`));const a=f(o)?o.default:o;i.components[e]=a;const s=a.__vccOpts||a,l=s[t];return l&&$e(l,n,r,i,e)()}))))}}return o}function We(e){return"object"===typeof e||"displayName"in e||"props"in e||"__vccOpts"in e}function qe(e){const t=(0,r.f3)(c),n=(0,r.f3)(u),i=(0,r.Fl)((()=>t.resolve((0,o.SU)(e.to)))),a=(0,r.Fl)((()=>{const{matched:e}=i.value,{length:t}=e,r=e[t-1],o=n.matched;if(!r||!o.length)return-1;const a=o.findIndex(S.bind(null,r));if(a>-1)return a;const s=Ge(e[t-2]);return t>1&&Ge(r)===s&&o[o.length-1].path!==s?o.findIndex(S.bind(null,e[t-2])):a})),s=(0,r.Fl)((()=>a.value>-1&&Je(n.params,i.value.params))),l=(0,r.Fl)((()=>a.value>-1&&a.value===n.matched.length-1&&C(n.params,i.value.params)));function d(n={}){return Ke(n)?t[(0,o.SU)(e.replace)?"replace":"push"]((0,o.SU)(e.to)).catch(v):Promise.resolve()}return{route:i,href:(0,r.Fl)((()=>i.value.href)),isActive:s,isExactActive:l,navigate:d}}const Ze=(0,r.aZ)({name:"RouterLink",props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:qe,setup(e,{slots:t}){const n=(0,o.qj)(qe(e)),{options:i}=(0,r.f3)(c),a=(0,r.Fl)((()=>({[Xe(e.activeClass,i.linkActiveClass,"router-link-active")]:n.isActive,[Xe(e.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive})));return()=>{const o=t.default&&t.default(n);return e.custom?o:(0,r.h)("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:a.value},o)}}}),Ye=Ze;function Ke(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&(void 0===e.button||0===e.button)){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 Je(e,t){for(const n in t){const r=t[n],o=e[n];if("string"===typeof r){if(r!==o)return!1}else if(!Array.isArray(o)||o.length!==r.length||r.some(((e,t)=>e!==o[t])))return!1}return!0}function Ge(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Xe=(e,t,n)=>null!=e?e:null!=t?t:n,Qe=(0,r.aZ)({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},setup(e,{attrs:t,slots:n}){const i=(0,r.f3)(d),a=(0,r.Fl)((()=>e.route||i.value)),c=(0,r.f3)(l,0),u=(0,r.Fl)((()=>a.value.matched[c]));(0,r.JJ)(l,c+1),(0,r.JJ)(s,u),(0,r.JJ)(d,a);const p=(0,o.iH)();return(0,r.YP)((()=>[p.value,u.value,e.name]),(([e,t,n],[r,o,i])=>{t&&(t.instances[n]=e,o&&o!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=o.leaveGuards),t.updateGuards.size||(t.updateGuards=o.updateGuards))),!e||!t||o&&S(t,o)&&r||(t.enterCallbacks[n]||[]).forEach((t=>t(e)))}),{flush:"post"}),()=>{const o=a.value,i=u.value,s=i&&i.components[e.name],l=e.name;if(!s)return et(n.default,{Component:s,route:o});const c=i.props[e.name],d=c?!0===c?o.params:"function"===typeof c?c(o):c:null,f=e=>{e.component.isUnmounted&&(i.instances[l]=null)},m=(0,r.h)(s,h({},d,t,{onVnodeUnmounted:f,ref:p}));return et(n.default,{Component:m,route:o})||m}}});function et(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const tt=Qe;function nt(e){const t=ue(e.routes,e),n=e.parseQuery||je,i=e.stringifyQuery||Ve,a=e.history;const s=Be(),l=Be(),f=Be(),g=(0,o.XI)(K);let y=K;p&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const w=m.bind(null,(e=>""+e)),S=m.bind(null,Fe),C=m.bind(null,Ue);function x(e,n){let r,o;return Y(e)?(r=t.getRecordMatcher(e),o=n):o=e,t.addRoute(o,r)}function I(e){const n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function T(){return t.getRoutes().map((e=>e.record))}function R(e){return!!t.getRecordMatcher(e)}function P(e,r){if(r=h({},r||g.value),"string"===typeof e){const o=b(n,e,r.path),i=t.resolve({path:o.path},r),s=a.createHref(o.fullPath);return h(o,i,{params:C(i.params),hash:Ue(o.hash),redirectedFrom:void 0,href:s})}let o;if("path"in e)o=h({},e,{path:b(n,e.path,r.path).path});else{const t=h({},e.params);for(const e in t)null==t[e]&&delete t[e];o=h({},e,{params:S(e.params)}),r.params=S(r.params)}const s=t.resolve(o,r),l=e.hash||"";s.params=w(C(s.params));const c=_(i,h({},e,{hash:De(l),path:s.path})),u=a.createHref(c);return h({fullPath:c,hash:l,query:i===Ve?He(e.query):e.query||{}},s,{redirectedFrom:void 0,href:u})}function O(e){return"string"===typeof e?b(n,e,g.value.path):h({},e)}function A(e,t){if(y!==e)return X(8,{from:t,to:e})}function D(e){return H(e)}function F(e){return D(h(O(e),{replace:!0}))}function V(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let r="function"===typeof n?n(e):n;return"string"===typeof r&&(r=r.includes("?")||r.includes("#")?r=O(r):{path:r},r.params={}),h({query:e.query,hash:e.hash,params:e.params},r)}}function H(e,t){const n=y=P(e),r=g.value,o=e.state,a=e.force,s=!0===e.replace,l=V(n);if(l)return H(h(O(l),{state:o,force:a,replace:s}),t||n);const c=n;let u;return c.redirectedFrom=t,!a&&k(i,r,n)&&(u=X(16,{to:c,from:r}),oe(r,r,!0,!1)),(u?Promise.resolve(u):$(c,r)).catch((e=>Q(e)?Q(e,2)?e:re(e):te(e,c,r))).then((e=>{if(e){if(Q(e,2))return H(h(O(e.to),{state:o,force:a,replace:s}),t||c)}else e=W(c,r,!0,s,o);return z(c,r,e),e}))}function B(e,t){const n=A(e,t);return n?Promise.reject(n):Promise.resolve()}function $(e,t){let n;const[r,o,i]=ot(e,t);n=ze(r.reverse(),"beforeRouteLeave",e,t);for(const s of r)s.leaveGuards.forEach((r=>{n.push($e(r,e,t))}));const a=B.bind(null,e,t);return n.push(a),rt(n).then((()=>{n=[];for(const r of s.list())n.push($e(r,e,t));return n.push(a),rt(n)})).then((()=>{n=ze(o,"beforeRouteUpdate",e,t);for(const r of o)r.updateGuards.forEach((r=>{n.push($e(r,e,t))}));return n.push(a),rt(n)})).then((()=>{n=[];for(const r of e.matched)if(r.beforeEnter&&!t.matched.includes(r))if(Array.isArray(r.beforeEnter))for(const o of r.beforeEnter)n.push($e(o,e,t));else n.push($e(r.beforeEnter,e,t));return n.push(a),rt(n)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),n=ze(i,"beforeRouteEnter",e,t),n.push(a),rt(n)))).then((()=>{n=[];for(const r of l.list())n.push($e(r,e,t));return n.push(a),rt(n)})).catch((e=>Q(e,8)?e:Promise.reject(e)))}function z(e,t,n){for(const r of f.list())r(e,t,n)}function W(e,t,n,r,o){const i=A(e,t);if(i)return i;const s=t===K,l=p?history.state:{};n&&(r||s?a.replace(e.fullPath,h({scroll:s&&l&&l.scroll},o)):a.push(e.fullPath,o)),g.value=e,oe(e,t,n,s),re()}let q;function Z(){q=a.listen(((e,t,n)=>{const r=P(e),o=V(r);if(o)return void H(h(o,{replace:!0}),r).catch(v);y=r;const i=g.value;p&&U(L(i.fullPath,n.delta),N()),$(r,i).catch((e=>Q(e,12)?e:Q(e,2)?(H(e.to,r).then((e=>{Q(e,20)&&!n.delta&&n.type===E.pop&&a.go(-1,!1)})).catch(v),Promise.reject()):(n.delta&&a.go(-n.delta,!1),te(e,r,i)))).then((e=>{e=e||W(r,i,!1),e&&(n.delta?a.go(-n.delta,!1):n.type===E.pop&&Q(e,20)&&a.go(-1,!1)),z(r,i,e)})).catch(v)}))}let J,G=Be(),ee=Be();function te(e,t,n){re(e);const r=ee.list();return r.length?r.forEach((r=>r(e,t,n))):console.error(e),Promise.reject(e)}function ne(){return J&&g.value!==K?Promise.resolve():new Promise(((e,t)=>{G.add([e,t])}))}function re(e){return J||(J=!e,Z(),G.list().forEach((([t,n])=>e?n(e):t())),G.reset()),e}function oe(t,n,o,i){const{scrollBehavior:a}=e;if(!p||!a)return Promise.resolve();const s=!o&&j(L(t.fullPath,0))||(i||!o)&&history.state&&history.state.scroll||null;return(0,r.Y3)().then((()=>a(t,n,s))).then((e=>e&&M(e))).catch((e=>te(e,t,n)))}const ie=e=>a.go(e);let ae;const se=new Set,le={currentRoute:g,addRoute:x,removeRoute:I,hasRoute:R,getRoutes:T,resolve:P,options:e,push:D,replace:F,go:ie,back:()=>ie(-1),forward:()=>ie(1),beforeEach:s.add,beforeResolve:l.add,afterEach:f.add,onError:ee.add,isReady:ne,install(e){const t=this;e.component("RouterLink",Ye),e.component("RouterView",tt),e.config.globalProperties.$router=t,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>(0,o.SU)(g)}),p&&!ae&&g.value===K&&(ae=!0,D(a.location).catch((e=>{0})));const n={};for(const o in K)n[o]=(0,r.Fl)((()=>g.value[o]));e.provide(c,t),e.provide(u,(0,o.qj)(n)),e.provide(d,g);const i=e.unmount;se.add(e),e.unmount=function(){se.delete(e),se.size<1&&(y=K,q&&q(),g.value=K,ae=!1,J=!1),i()}}};return le}function rt(e){return e.reduce(((e,t)=>e.then((()=>t()))),Promise.resolve())}function ot(e,t){const n=[],r=[],o=[],i=Math.max(t.matched.length,e.matched.length);for(let a=0;a<i;a++){const i=t.matched[a];i&&(e.matched.find((e=>S(e,i)))?r.push(i):n.push(i));const s=e.matched[a];s&&(t.matched.find((e=>S(e,s)))||o.push(s))}return[n,r,o]}},4695:function(e,t,n){"use strict";n.d(t,{z:function(){return c}});n(1703);function r(e){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self&&self;function o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function i(e,t){return t={exports:{}},e(t,t.exports),t.exports}var a=i((function(e,t){
- /*!
- * clipboard.js v2.0.6
- * https://clipboardjs.com/
- *
- * Licensed MIT © Zeno Rocha
- */
- !function(t,n){e.exports=n()}(0,(function(){return n={},e.m=t=[function(e,t){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var r=window.getSelection(),o=document.createRange();o.selectNodeContents(e),r.removeAllRanges(),r.addRange(o),t=r.toString()}return t}},function(e,t){function n(){}n.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function o(){r.off(e,o),t.apply(n,arguments)}return o._=t,this.on(e,o,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,o=n.length;r<o;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],o=[];if(r&&t)for(var i=0,a=r.length;i<a;i++)r[i].fn!==t&&r[i].fn._!==t&&o.push(r[i]);return o.length?n[e]=o:delete n[e],this}},e.exports=n,e.exports.TinyEmitter=n},function(e,t,n){var r=n(3),o=n(4);e.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!r.string(t))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(e))return p=t,f=n,(d=e).addEventListener(p,f),{destroy:function(){d.removeEventListener(p,f)}};if(r.nodeList(e))return l=e,c=t,u=n,Array.prototype.forEach.call(l,(function(e){e.addEventListener(c,u)})),{destroy:function(){Array.prototype.forEach.call(l,(function(e){e.removeEventListener(c,u)}))}};if(r.string(e))return i=e,a=t,s=n,o(document.body,i,a,s);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");var i,a,s,l,c,u,d,p,f}},function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},function(e,t,n){var r=n(5);function o(e,t,n,o,i){var a=function(e,t,n,o){return function(n){n.delegateTarget=r(n.target,t),n.delegateTarget&&o.call(e,n)}}.apply(this,arguments);return e.addEventListener(n,a,i),{destroy:function(){e.removeEventListener(n,a,i)}}}e.exports=function(e,t,n,r,i){return"function"==typeof e.addEventListener?o.apply(null,arguments):"function"==typeof n?o.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return o(e,t,n,r,i)})))}},function(e,t){if("undefined"!=typeof Element&&!Element.prototype.matches){var n=Element.prototype;n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},function(e,t,n){n.r(t);var r=n(0),o=n.n(r),i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),this.resolveOptions(e),this.initSelection()}var l=(function(e,t,n){t&&a(e.prototype,t),n&&a(e,n)}(s,[{key:"resolveOptions",value:function(e){var t=0<arguments.length&&void 0!==e?e:{};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:"selectFake",value:function(){var e=this,t="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,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 n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=o()(this.fakeElem),this.copyText()}},{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=o()(this.target),this.copyText()}},{key:"copyText",value:function(){var t=void 0;try{t=document.execCommand(this.action)}catch(e){t=!1}this.handleResult(t)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"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(e){var t=0<arguments.length&&void 0!==e?e:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==(void 0===e?"undefined":i(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}]),s),c=n(1),u=n.n(c),d=n(2),p=n.n(d),f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h=function(e,t,n){return t&&m(e.prototype,t),n&&m(e,n),e};function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var v=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(g,u.a),h(g,[{key:"resolveOptions",value:function(e){var t=0<arguments.length&&void 0!==e?e:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===f(t.container)?t.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=p()(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new l({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(e){return y("action",e)}},{key:"defaultTarget",value:function(e){var t=y("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return y("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(e){var t=0<arguments.length&&void 0!==e?e:["copy","cut"],n="string"==typeof t?[t]:t,r=!!document.queryCommandSupported;return n.forEach((function(e){r=r&&!!document.queryCommandSupported(e)})),r}}]),g);function g(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,g);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(g.__proto__||Object.getPrototypeOf(g)).call(this));return n.resolveOptions(t),n.listenClick(e),n}function y(e,t){var n="data-clipboard-"+e;if(t.hasAttribute(n))return t.getAttribute(n)}t.default=v}],e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(e){return t[e]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e.p="",e(e.s=6).default;function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var t,n}))})),s=o(a),l=(a.ClipboardJS,{autoSetContainer:!1,appendToBody:!0});function c(e,t,n){var o=document.createElement("button"),i=new s(o,{text:function(){return e},action:function(){return"copy"},container:"object"===r(t)?t:document.body});i.on("success",(function(e){i.destroy(),n(void 0,e)})),i.on("error",(function(e){i.destroy(),n(e,void 0)})),l.appendToBody&&document.body.appendChild(o),o.click(),l.appendToBody&&document.body.removeChild(o)}function u(e,t){l=t,e.config.globalProperties.$copyText=c,e.directive("clipboard",{mounted:function(e,n){if("success"===n.arg)e._vClipboard_success=n.value;else if("error"===n.arg)e._vClipboard_error=n.value;else{var r=new s(e,{text:function(){return n.value},action:function(){return"cut"===n.arg?"cut":"copy"},container:t.autoSetContainer?e:void 0});r.on("success",(function(t){var n=e._vClipboard_success;n&&n(t)})),r.on("error",(function(t){var n=e._vClipboard_error;n&&n(t)})),e._vClipboard=r}},updated:function(e,t){"success"===t.arg?e._vClipboard_success=t.value:"error"===t.arg?e._vClipboard_error=t.value:(e._vClipboard.text=function(){return t.value},e._vClipboard.action=function(){return"cut"===t.arg?"cut":"copy"})},unmounted:function(e,t){"success"===t.arg?delete e._vClipboard_success:"error"===t.arg?delete e._vClipboard_error:(e._vClipboard.destroy(),delete e._vClipboard)}})}t["Z"]=u},2482:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:function(){return r}})},6854:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var r=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n}},9306:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(3396),o=n(6854);const i=(0,r.aZ)({name:"ArrowUp"}),a={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},s=(0,r._)("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0z"},null,-1),l=[s];function c(e,t,n,o,i,s){return(0,r.wg)(),(0,r.iD)("svg",a,l)}var u=(0,o.Z)(i,[["render",c]])},8904:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(3396),o=n(6854);const i=(0,r.aZ)({name:"CircleCheck"}),a={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},s=(0,r._)("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),l=(0,r._)("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"},null,-1),c=[s,l];function u(e,t,n,o,i,s){return(0,r.wg)(),(0,r.iD)("svg",a,c)}var d=(0,o.Z)(i,[["render",u]])},2251:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(3396),o=n(6854);const i=(0,r.aZ)({name:"CircleCloseFilled"}),a={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},s=(0,r._)("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336L512 457.664z"},null,-1),l=[s];function c(e,t,n,o,i,s){return(0,r.wg)(),(0,r.iD)("svg",a,l)}var u=(0,o.Z)(i,[["render",c]])},4397:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(3396),o=n(6854);const i=(0,r.aZ)({name:"CircleClose"}),a={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},s=(0,r._)("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248L466.752 512z"},null,-1),l=(0,r._)("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),c=[s,l];function u(e,t,n,o,i,s){return(0,r.wg)(),(0,r.iD)("svg",a,c)}var d=(0,o.Z)(i,[["render",u]])},8382:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(3396),o=n(6854);const i=(0,r.aZ)({name:"Close"}),a={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},s=(0,r._)("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"},null,-1),l=[s];function c(e,t,n,o,i,s){return(0,r.wg)(),(0,r.iD)("svg",a,l)}var u=(0,o.Z)(i,[["render",c]])},232:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(3396),o=n(6854);const i=(0,r.aZ)({name:"InfoFilled"}),a={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},s=(0,r._)("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64zm67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344zM590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"},null,-1),l=[s];function c(e,t,n,o,i,s){return(0,r.wg)(),(0,r.iD)("svg",a,l)}var u=(0,o.Z)(i,[["render",c]])},8468:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(3396),o=n(6854);const i=(0,r.aZ)({name:"Loading"}),a={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},s=(0,r._)("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0zm-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"},null,-1),l=[s];function c(e,t,n,o,i,s){return(0,r.wg)(),(0,r.iD)("svg",a,l)}var u=(0,o.Z)(i,[["render",c]])},1203:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(3396),o=n(6854);const i=(0,r.aZ)({name:"WarningFilled"}),a={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},s=(0,r._)("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256zm0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4z"},null,-1),l=[s];function c(e,t,n,o,i,s){return(0,r.wg)(),(0,r.iD)("svg",a,l)}var u=(0,o.Z)(i,[["render",c]])},7928:function(e,t,n){"use strict";n.d(t,{Ct:function(){return v},fi:function(){return st}});var r="top",o="bottom",i="right",a="left",s="auto",l=[r,o,i,a],c="start",u="end",d="clippingParents",p="viewport",f="popper",h="reference",m=l.reduce((function(e,t){return e.concat([t+"-"+c,t+"-"+u])}),[]),v=[].concat(l,[s]).reduce((function(e,t){return e.concat([t,t+"-"+c,t+"-"+u])}),[]),g="beforeRead",y="read",b="afterRead",_="beforeMain",w="main",k="afterMain",S="beforeWrite",C="write",x="afterWrite",I=[g,y,b,_,w,k,S,C,x];function T(e){return e?(e.nodeName||"").toLowerCase():null}function E(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function R(e){var t=E(e).Element;return e instanceof t||e instanceof Element}function P(e){var t=E(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function O(e){if("undefined"==typeof ShadowRoot)return!1;var t=E(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function A(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];!P(o)||!T(o)||(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))}function D(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]),a=i.reduce((function(e,t){return e[t]="",e}),{});!P(r)||!T(r)||(Object.assign(r.style,a),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}}var N={name:"applyStyles",enabled:!0,phase:"write",fn:A,effect:D,requires:["computeStyles"]};function M(e){return e.split("-")[0]}var L=Math.max,F=Math.min,U=Math.round;function j(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(P(e)&&t){var i=e.offsetHeight,a=e.offsetWidth;a>0&&(r=U(n.width)/a||1),i>0&&(o=U(n.height)/i||1)}return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function V(e){var t=j(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function H(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&O(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function B(e){return E(e).getComputedStyle(e)}function $(e){return["table","td","th"].indexOf(T(e))>=0}function z(e){return((R(e)?e.ownerDocument:e.document)||window.document).documentElement}function W(e){return"html"===T(e)?e:e.assignedSlot||e.parentNode||(O(e)?e.host:null)||z(e)}function q(e){return P(e)&&"fixed"!==B(e).position?e.offsetParent:null}function Z(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox"),n=-1!==navigator.userAgent.indexOf("Trident");if(n&&P(e)){var r=B(e);if("fixed"===r.position)return null}var o=W(e);for(O(o)&&(o=o.host);P(o)&&["html","body"].indexOf(T(o))<0;){var i=B(o);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return o;o=o.parentNode}return null}function Y(e){for(var t=E(e),n=q(e);n&&$(n)&&"static"===B(n).position;)n=q(n);return n&&("html"===T(n)||"body"===T(n)&&"static"===B(n).position)?t:n||Z(e)||t}function K(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function J(e,t,n){return L(e,F(t,n))}function G(e,t,n){var r=J(e,t,n);return r>n?n:r}function X(){return{top:0,right:0,bottom:0,left:0}}function Q(e){return Object.assign({},X(),e)}function ee(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var te=function(e,t){return e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e,Q("number"!=typeof e?e:ee(e,l))};function ne(e){var t,n=e.state,s=e.name,l=e.options,c=n.elements.arrow,u=n.modifiersData.popperOffsets,d=M(n.placement),p=K(d),f=[a,i].indexOf(d)>=0,h=f?"height":"width";if(c&&u){var m=te(l.padding,n),v=V(c),g="y"===p?r:a,y="y"===p?o:i,b=n.rects.reference[h]+n.rects.reference[p]-u[p]-n.rects.popper[h],_=u[p]-n.rects.reference[p],w=Y(c),k=w?"y"===p?w.clientHeight||0:w.clientWidth||0:0,S=b/2-_/2,C=m[g],x=k-v[h]-m[y],I=k/2-v[h]/2+S,T=J(C,I,x),E=p;n.modifiersData[s]=(t={},t[E]=T,t.centerOffset=T-I,t)}}function re(e){var t=e.state,n=e.options,r=n.element,o=void 0===r?"[data-popper-arrow]":r;null!=o&&("string"==typeof o&&(o=t.elements.popper.querySelector(o),!o)||!H(t.elements.popper,o)||(t.elements.arrow=o))}var oe={name:"arrow",enabled:!0,phase:"main",fn:ne,effect:re,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ie(e){return e.split("-")[1]}var ae={top:"auto",right:"auto",bottom:"auto",left:"auto"};function se(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:U(t*o)/o||0,y:U(n*o)/o||0}}function le(e){var t,n=e.popper,s=e.popperRect,l=e.placement,c=e.variation,d=e.offsets,p=e.position,f=e.gpuAcceleration,h=e.adaptive,m=e.roundOffsets,v=e.isFixed,g=d.x,y=void 0===g?0:g,b=d.y,_=void 0===b?0:b,w="function"==typeof m?m({x:y,y:_}):{x:y,y:_};y=w.x,_=w.y;var k=d.hasOwnProperty("x"),S=d.hasOwnProperty("y"),C=a,x=r,I=window;if(h){var T=Y(n),R="clientHeight",P="clientWidth";if(T===E(n)&&(T=z(n),"static"!==B(T).position&&"absolute"===p&&(R="scrollHeight",P="scrollWidth")),T=T,l===r||(l===a||l===i)&&c===u){x=o;var O=v&&T===I&&I.visualViewport?I.visualViewport.height:T[R];_-=O-s.height,_*=f?1:-1}if(l===a||(l===r||l===o)&&c===u){C=i;var A=v&&T===I&&I.visualViewport?I.visualViewport.width:T[P];y-=A-s.width,y*=f?1:-1}}var D,N=Object.assign({position:p},h&&ae),M=!0===m?se({x:y,y:_}):{x:y,y:_};return y=M.x,_=M.y,f?Object.assign({},N,(D={},D[x]=S?"0":"",D[C]=k?"0":"",D.transform=(I.devicePixelRatio||1)<=1?"translate("+y+"px, "+_+"px)":"translate3d("+y+"px, "+_+"px, 0)",D)):Object.assign({},N,(t={},t[x]=S?_+"px":"",t[C]=k?y+"px":"",t.transform="",t))}function ce(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,l=void 0===s||s,c={placement:M(t.placement),variation:ie(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,le(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,le(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var ue={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ce,data:{}},de={passive:!0};function pe(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,s=void 0===a||a,l=E(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach((function(e){e.addEventListener("scroll",n.update,de)})),s&&l.addEventListener("resize",n.update,de),function(){i&&c.forEach((function(e){e.removeEventListener("scroll",n.update,de)})),s&&l.removeEventListener("resize",n.update,de)}}var fe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:pe,data:{}},he={left:"right",right:"left",bottom:"top",top:"bottom"};function me(e){return e.replace(/left|right|bottom|top/g,(function(e){return he[e]}))}var ve={start:"end",end:"start"};function ge(e){return e.replace(/start|end/g,(function(e){return ve[e]}))}function ye(e){var t=E(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function be(e){return j(z(e)).left+ye(e).scrollLeft}function _e(e){var t=E(e),n=z(e),r=t.visualViewport,o=n.clientWidth,i=n.clientHeight,a=0,s=0;return r&&(o=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,s=r.offsetTop)),{width:o,height:i,x:a+be(e),y:s}}function we(e){var t,n=z(e),r=ye(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=L(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=L(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+be(e),l=-r.scrollTop;return"rtl"===B(o||n).direction&&(s+=L(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}function ke(e){var t=B(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Se(e){return["html","body","#document"].indexOf(T(e))>=0?e.ownerDocument.body:P(e)&&ke(e)?e:Se(W(e))}function Ce(e,t){var n;void 0===t&&(t=[]);var r=Se(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=E(r),a=o?[i].concat(i.visualViewport||[],ke(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(Ce(W(a)))}function xe(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ie(e){var t=j(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function Te(e,t){return t===p?xe(_e(e)):R(t)?Ie(t):xe(we(z(e)))}function Ee(e){var t=Ce(W(e)),n=["absolute","fixed"].indexOf(B(e).position)>=0,r=n&&P(e)?Y(e):e;return R(r)?t.filter((function(e){return R(e)&&H(e,r)&&"body"!==T(e)})):[]}function Re(e,t,n){var r="clippingParents"===t?Ee(e):[].concat(t),o=[].concat(r,[n]),i=o[0],a=o.reduce((function(t,n){var r=Te(e,n);return t.top=L(r.top,t.top),t.right=F(r.right,t.right),t.bottom=F(r.bottom,t.bottom),t.left=L(r.left,t.left),t}),Te(e,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Pe(e){var t,n=e.reference,s=e.element,l=e.placement,d=l?M(l):null,p=l?ie(l):null,f=n.x+n.width/2-s.width/2,h=n.y+n.height/2-s.height/2;switch(d){case r:t={x:f,y:n.y-s.height};break;case o:t={x:f,y:n.y+n.height};break;case i:t={x:n.x+n.width,y:h};break;case a:t={x:n.x-s.width,y:h};break;default:t={x:n.x,y:n.y}}var m=d?K(d):null;if(null!=m){var v="y"===m?"height":"width";switch(p){case c:t[m]=t[m]-(n[v]/2-s[v]/2);break;case u:t[m]=t[m]+(n[v]/2-s[v]/2);break}}return t}function Oe(e,t){void 0===t&&(t={});var n=t,a=n.placement,s=void 0===a?e.placement:a,c=n.boundary,u=void 0===c?d:c,m=n.rootBoundary,v=void 0===m?p:m,g=n.elementContext,y=void 0===g?f:g,b=n.altBoundary,_=void 0!==b&&b,w=n.padding,k=void 0===w?0:w,S=Q("number"!=typeof k?k:ee(k,l)),C=y===f?h:f,x=e.rects.popper,I=e.elements[_?C:y],T=Re(R(I)?I:I.contextElement||z(e.elements.popper),u,v),E=j(e.elements.reference),P=Pe({reference:E,element:x,strategy:"absolute",placement:s}),O=xe(Object.assign({},x,P)),A=y===f?O:E,D={top:T.top-A.top+S.top,bottom:A.bottom-T.bottom+S.bottom,left:T.left-A.left+S.left,right:A.right-T.right+S.right},N=e.modifiersData.offset;if(y===f&&N){var M=N[s];Object.keys(D).forEach((function(e){var t=[i,o].indexOf(e)>=0?1:-1,n=[r,o].indexOf(e)>=0?"y":"x";D[e]+=M[n]*t}))}return D}function Ae(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,u=void 0===c?v:c,d=ie(r),p=d?s?m:m.filter((function(e){return ie(e)===d})):l,f=p.filter((function(e){return u.indexOf(e)>=0}));0===f.length&&(f=p);var h=f.reduce((function(t,n){return t[n]=Oe(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[M(n)],t}),{});return Object.keys(h).sort((function(e,t){return h[e]-h[t]}))}function De(e){if(M(e)===s)return[];var t=me(e);return[ge(e),t,ge(t)]}function Ne(e){var t=e.state,n=e.options,l=e.name;if(!t.modifiersData[l]._skip){for(var u=n.mainAxis,d=void 0===u||u,p=n.altAxis,f=void 0===p||p,h=n.fallbackPlacements,m=n.padding,v=n.boundary,g=n.rootBoundary,y=n.altBoundary,b=n.flipVariations,_=void 0===b||b,w=n.allowedAutoPlacements,k=t.options.placement,S=M(k),C=S===k,x=h||(C||!_?[me(k)]:De(k)),I=[k].concat(x).reduce((function(e,n){return e.concat(M(n)===s?Ae(t,{placement:n,boundary:v,rootBoundary:g,padding:m,flipVariations:_,allowedAutoPlacements:w}):n)}),[]),T=t.rects.reference,E=t.rects.popper,R=new Map,P=!0,O=I[0],A=0;A<I.length;A++){var D=I[A],N=M(D),L=ie(D)===c,F=[r,o].indexOf(N)>=0,U=F?"width":"height",j=Oe(t,{placement:D,boundary:v,rootBoundary:g,altBoundary:y,padding:m}),V=F?L?i:a:L?o:r;T[U]>E[U]&&(V=me(V));var H=me(V),B=[];if(d&&B.push(j[N]<=0),f&&B.push(j[V]<=0,j[H]<=0),B.every((function(e){return e}))){O=D,P=!1;break}R.set(D,B)}if(P)for(var $=_?3:1,z=function(e){var t=I.find((function(t){var n=R.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return O=t,"break"},W=$;W>0;W--){var q=z(W);if("break"===q)break}t.placement!==O&&(t.modifiersData[l]._skip=!0,t.placement=O,t.reset=!0)}}var Me={name:"flip",enabled:!0,phase:"main",fn:Ne,requiresIfExists:["offset"],data:{_skip:!1}};function Le(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Fe(e){return[r,i,o,a].some((function(t){return e[t]>=0}))}function Ue(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Oe(t,{elementContext:"reference"}),s=Oe(t,{altBoundary:!0}),l=Le(a,r),c=Le(s,o,i),u=Fe(l),d=Fe(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}var je={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Ue};function Ve(e,t,n){var o=M(e),s=[a,r].indexOf(o)>=0?-1:1,l="function"==typeof n?n(Object.assign({},t,{placement:e})):n,c=l[0],u=l[1];return c=c||0,u=(u||0)*s,[a,i].indexOf(o)>=0?{x:u,y:c}:{x:c,y:u}}function He(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=v.reduce((function(e,n){return e[n]=Ve(n,t.rects,i),e}),{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}var Be={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:He};function $e(e){var t=e.state,n=e.name;t.modifiersData[n]=Pe({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var ze={name:"popperOffsets",enabled:!0,phase:"read",fn:$e,data:{}};function We(e){return"x"===e?"y":"x"}function qe(e){var t=e.state,n=e.options,s=e.name,l=n.mainAxis,u=void 0===l||l,d=n.altAxis,p=void 0!==d&&d,f=n.boundary,h=n.rootBoundary,m=n.altBoundary,v=n.padding,g=n.tether,y=void 0===g||g,b=n.tetherOffset,_=void 0===b?0:b,w=Oe(t,{boundary:f,rootBoundary:h,padding:v,altBoundary:m}),k=M(t.placement),S=ie(t.placement),C=!S,x=K(k),I=We(x),T=t.modifiersData.popperOffsets,E=t.rects.reference,R=t.rects.popper,P="function"==typeof _?_(Object.assign({},t.rects,{placement:t.placement})):_,O="number"==typeof P?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(T){if(u){var N,U="y"===x?r:a,j="y"===x?o:i,H="y"===x?"height":"width",B=T[x],$=B+w[U],z=B-w[j],W=y?-R[H]/2:0,q=S===c?E[H]:R[H],Z=S===c?-R[H]:-E[H],Q=t.elements.arrow,ee=y&&Q?V(Q):{width:0,height:0},te=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:X(),ne=te[U],re=te[j],oe=J(0,E[H],ee[H]),ae=C?E[H]/2-W-oe-ne-O.mainAxis:q-oe-ne-O.mainAxis,se=C?-E[H]/2+W+oe+re+O.mainAxis:Z+oe+re+O.mainAxis,le=t.elements.arrow&&Y(t.elements.arrow),ce=le?"y"===x?le.clientTop||0:le.clientLeft||0:0,ue=null!=(N=null==A?void 0:A[x])?N:0,de=B+ae-ue-ce,pe=B+se-ue,fe=J(y?F($,de):$,B,y?L(z,pe):z);T[x]=fe,D[x]=fe-B}if(p){var he,me="x"===x?r:a,ve="x"===x?o:i,ge=T[I],ye="y"===I?"height":"width",be=ge+w[me],_e=ge-w[ve],we=-1!==[r,a].indexOf(k),ke=null!=(he=null==A?void 0:A[I])?he:0,Se=we?be:ge-E[ye]-R[ye]-ke+O.altAxis,Ce=we?ge+E[ye]+R[ye]-ke-O.altAxis:_e,xe=y&&we?G(Se,ge,Ce):J(y?Se:be,ge,y?Ce:_e);T[I]=xe,D[I]=xe-ge}t.modifiersData[s]=D}}var Ze={name:"preventOverflow",enabled:!0,phase:"main",fn:qe,requiresIfExists:["offset"]};function Ye(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Ke(e){return e!==E(e)&&P(e)?Ye(e):ye(e)}function Je(e){var t=e.getBoundingClientRect(),n=U(t.width)/e.offsetWidth||1,r=U(t.height)/e.offsetHeight||1;return 1!==n||1!==r}function Ge(e,t,n){void 0===n&&(n=!1);var r=P(t),o=P(t)&&Je(t),i=z(t),a=j(e,o),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==T(t)||ke(i))&&(s=Ke(t)),P(t)?(l=j(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=be(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Xe(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name);var i=[].concat(e.requires||[],e.requiresIfExists||[]);i.forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}function Qe(e){var t=Xe(e);return I.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}function et(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}function tt(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}var nt={placement:"bottom",modifiers:[],strategy:"absolute"};function rt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function ot(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?nt:o;return function(e,t,n){void 0===n&&(n=i);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},nt,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],s=!1,l={state:o,setOptions:function(n){var a="function"==typeof n?n(o.options):n;u(),o.options=Object.assign({},i,o.options,a),o.scrollParents={reference:R(e)?Ce(e):e.contextElement?Ce(e.contextElement):[],popper:Ce(t)};var s=Qe(tt([].concat(r,o.options.modifiers)));return o.orderedModifiers=s.filter((function(e){return e.enabled})),c(),l.update()},forceUpdate:function(){if(!s){var e=o.elements,t=e.reference,n=e.popper;if(rt(t,n)){o.rects={reference:Ge(t,Y(n),"fixed"===o.options.strategy),popper:V(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(e){return o.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<o.orderedModifiers.length;r++)if(!0!==o.reset){var i=o.orderedModifiers[r],a=i.fn,c=i.options,u=void 0===c?{}:c,d=i.name;"function"==typeof a&&(o=a({state:o,options:u,name:d,instance:l})||o)}else o.reset=!1,r=-1}}},update:et((function(){return new Promise((function(e){l.forceUpdate(),e(o)}))})),destroy:function(){u(),s=!0}};if(!rt(e,t))return l;function c(){o.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"==typeof i){var s=i({state:o,name:t,instance:l,options:r}),c=function(){};a.push(s||c)}}))}function u(){a.forEach((function(e){return e()})),a=[]}return l.setOptions(n).then((function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)})),l}}ot();var it=[fe,ze,ue,N],at=(ot({defaultModifiers:it}),[fe,ze,ue,N,Be,Me,Ze,oe,je]),st=ot({defaultModifiers:at})},6367:function(e,t,n){"use strict";n.d(t,{NXq:function(){return a},ORN:function(){return c},i9H:function(){return u},iPe:function(){return S},rBN:function(){return b},vou:function(){return k},xKQ:function(){return f},yU7:function(){return y}});n(2801),n(8675),n(3462),n(1703);var r=n(4419),o=n(4870),i=n(3396);function a(e){var t;const n=(0,o.SU)(e);return null!=(t=null==n?void 0:n.$el)?t:n}const s=r.C5?window:void 0,l=r.C5?window.document:void 0;r.C5&&window.navigator,r.C5&&window.location;function c(...e){let t,n,o,l;if((0,r.HD)(e[0])?([n,o,l]=e,t=s):[t,n,o,l]=e,!t)return r.ZT;let c=r.ZT;const u=(0,i.YP)((()=>a(t)),(e=>{c(),e&&(e.addEventListener(n,o,l),c=()=>{e.removeEventListener(n,o,l),c=r.ZT})}),{immediate:!0,flush:"post"}),d=()=>{u(),c()};return(0,r.IY)(d),d}function u(e,t,n={}){const{window:r=s,ignore:i,capture:l=!0}=n;if(!r)return;const u=(0,o.iH)(!0),d=n=>{const r=a(e),o=n.composedPath();r&&r!==n.target&&!o.includes(r)&&u.value&&(i&&i.length>0&&i.some((e=>{const t=a(e);return t&&(n.target===t||o.includes(t))}))||t(n))},p=[c(r,"click",d,{passive:!0,capture:l}),c(r,"pointerdown",(t=>{const n=a(e);u.value=!!n&&!t.composedPath().includes(n)}),{passive:!0})],f=()=>p.forEach((e=>e()));return f}Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;const d="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{},p="__vueuse_ssr_handlers__";d[p]=d[p]||{};d[p];Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;function f({document:e=l}={}){if(!e)return(0,o.iH)("visible");const t=(0,o.iH)(e.visibilityState);return c(e,"visibilitychange",(()=>{t.value=e.visibilityState})),t}Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var h=Object.getOwnPropertySymbols,m=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable,g=(e,t)=>{var n={};for(var r in e)m.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&h)for(var r of h(e))t.indexOf(r)<0&&v.call(e,r)&&(n[r]=e[r]);return n};function y(e,t,n={}){const o=n,{window:l=s}=o,c=g(o,["window"]);let u;const d=l&&"ResizeObserver"in l,p=()=>{u&&(u.disconnect(),u=void 0)},f=(0,i.YP)((()=>a(e)),(e=>{p(),d&&l&&e&&(u=new ResizeObserver(t),u.observe(e,c))}),{immediate:!0,flush:"post"}),h=()=>{p(),f()};return(0,r.IY)(h),{isSupported:d,stop:h}}function b(e,t={}){const{reset:n=!0,windowResize:r=!0,windowScroll:s=!0}=t,l=(0,o.iH)(0),u=(0,o.iH)(0),d=(0,o.iH)(0),p=(0,o.iH)(0),f=(0,o.iH)(0),h=(0,o.iH)(0),m=(0,o.iH)(0),v=(0,o.iH)(0);function g(){const t=a(e);if(!t)return void(n&&(l.value=0,u.value=0,d.value=0,p.value=0,f.value=0,h.value=0,m.value=0,v.value=0));const r=t.getBoundingClientRect();l.value=r.height,u.value=r.bottom,d.value=r.left,p.value=r.right,f.value=r.top,h.value=r.width,m.value=r.x,v.value=r.y}return y(e,g),(0,i.YP)((()=>a(e)),(e=>!e&&g())),s&&c("scroll",g,{passive:!0}),r&&c("resize",g,{passive:!0}),{height:l,bottom:u,left:d,right:p,top:f,width:h,x:m,y:v,update:g}}Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var _,w;r.C5&&(null==window?void 0:window.navigator)&&(null==(_=null==window?void 0:window.navigator)?void 0:_.platform)&&/iP(ad|hone|od)/.test(null==(w=null==window?void 0:window.navigator)?void 0:w.platform);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;r.yR;function k({window:e=s}={}){if(!e)return(0,o.iH)(!1);const t=(0,o.iH)(e.document.hasFocus());return c(e,"blur",(()=>{t.value=!1})),c(e,"focus",(()=>{t.value=!0})),t}function S({window:e=s,initialWidth:t=1/0,initialHeight:n=1/0}={}){const i=(0,o.iH)(t),a=(0,o.iH)(n),l=()=>{e&&(i.value=e.innerWidth,a.value=e.innerHeight)};return l(),(0,r.u7)(l),c("resize",l,{passive:!0}),{width:i,height:a}}},4419:function(e,t,n){"use strict";n.d(t,{C5:function(){return g},Dp:function(){return T},HD:function(){return _},IY:function(){return v},Rc:function(){return m},ZT:function(){return w},eM:function(){return P},hj:function(){return b},jn:function(){return y},u7:function(){return R},vA:function(){return E},yR:function(){return x}});n(1703);var r=n(4870),o=n(3396),i=n(3701),a=Object.defineProperty,s=Object.defineProperties,l=Object.getOwnPropertyDescriptors,c=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,p=(e,t,n)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,f=(e,t)=>{for(var n in t||(t={}))u.call(t,n)&&p(e,n,t[n]);if(c)for(var n of c(t))d.call(t,n)&&p(e,n,t[n]);return e},h=(e,t)=>s(e,l(t));function m(e,t){var n;const i=(0,r.XI)();return(0,o.m0)((()=>{i.value=e()}),h(f({},t),{flush:null!=(n=null==t?void 0:t.flush)?n:"sync"})),(0,r.OT)(i)}function v(e){return!!(0,r.nZ)()&&((0,r.EB)(e),!0)}i.$B,i.$B,i.$B;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;const g="undefined"!==typeof window,y=(Object.prototype.toString,e=>"boolean"===typeof e),b=e=>"number"===typeof e,_=e=>"string"===typeof e,w=()=>{};function k(e,t){function n(...n){e((()=>t.apply(this,n)),{fn:t,thisArg:this,args:n})}return n}function S(e,t={}){let n,o;const i=i=>{const a=(0,r.SU)(e),s=(0,r.SU)(t.maxWait);if(n&&clearTimeout(n),a<=0||void 0!==s&&s<=0)return o&&(clearTimeout(o),o=null),i();s&&!o&&(o=setTimeout((()=>{n&&clearTimeout(n),o=null,i()}),s)),n=setTimeout((()=>{o&&clearTimeout(o),o=null,i()}),a)};return i}function C(e,t=!0,n=!0){let o,i=0,a=!n;const s=()=>{o&&(clearTimeout(o),o=void 0)},l=l=>{const c=(0,r.SU)(e),u=Date.now()-i;if(s(),c<=0)return i=Date.now(),l();u>c&&(i=Date.now(),a?a=!1:l()),t&&(o=setTimeout((()=>{i=Date.now(),n||(a=!0),s(),l()}),c)),n||o||(o=setTimeout((()=>a=!0),c))};return l}function x(e){return e}function I(e,t=200,n={}){return k(S(t,n),e)}function T(e,t=200,n={}){if(t<=0)return e;const i=(0,r.iH)(e.value),a=I((()=>{i.value=e.value}),t,n);return(0,o.YP)(e,(()=>a())),i}function E(e,t=200,n=!0,r=!0){return k(C(t,n,r),e)}Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;function R(e,t=!0){(0,o.FN)()?(0,o.bv)(e):t?e():(0,o.Y3)(e)}Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;function P(e,t,n={}){const{immediate:o=!0}=n,i=(0,r.iH)(!1);let a=null;function s(){a&&(clearTimeout(a),a=null)}function l(){i.value=!1,s()}function c(...n){s(),i.value=!0,a=setTimeout((()=>{i.value=!1,a=null,e(...n)}),(0,r.SU)(t))}return o&&(i.value=!0,g&&c()),v(l),{isPending:i,start:c,stop:l}}Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable},5989:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var r=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n}},1183:function(e,t,n){"use strict";n.d(t,{dQ:function(){return g}});var r=n(3396),o=n(7139),i=n(4870),a=n(9242),s=n(2864);const l=(0,s.o8)({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"}});var c=n(5989),u=n(6734),d=n(4419);const p=["textContent"],f={name:"ElBadge"},h=(0,r.aZ)({...f,props:l,setup(e,{expose:t}){const n=e,s=(0,u.s)("badge"),l=(0,r.Fl)((()=>n.isDot?"":(0,d.hj)(n.value)&&(0,d.hj)(n.max)&&n.max<n.value?`${n.max}+`:`${n.value}`));return t({content:l}),(e,t)=>((0,r.wg)(),(0,r.iD)("div",{class:(0,o.C_)((0,i.SU)(s).b())},[(0,r.WI)(e.$slots,"default"),(0,r.Wm)(a.uT,{name:`${(0,i.SU)(s).namespace.value}-zoom-in-center`},{default:(0,r.w5)((()=>[(0,r.wy)((0,r._)("sup",{class:(0,o.C_)([(0,i.SU)(s).e("content"),(0,i.SU)(s).em("content",e.type),(0,i.SU)(s).is("fixed",!!e.$slots.default),(0,i.SU)(s).is("dot",e.isDot)]),textContent:(0,o.zw)((0,i.SU)(l))},null,10,p),[[a.F8,!e.hidden&&((0,i.SU)(l)||"0"===(0,i.SU)(l)||e.isDot)]])])),_:1},8,["name"])],2))}});var m=(0,c.Z)(h,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]),v=n(9015);const g=(0,v.nz)(m)},1758:function(){},5791:function(e,t,n){"use strict";n.d(t,{mi:function(){return I},MO:function(){return T}});var r=n(3396),o=n(4870),i=n(7139),a=n(1015),s=n(8953),l=n(9414),c=n(6174);function u(e,t=20){return e.mix("#141414",t).toString()}function d(e){const t=(0,c.B4)();return(0,r.Fl)((()=>{let n={};const r=e.color;if(r){const o=new l.C(r),i=e.dark?o.tint(20).toString():u(o,20);if(e.plain)n={"--el-button-bg-color":e.dark?u(o,90):o.tint(90).toString(),"--el-button-text-color":r,"--el-button-border-color":e.dark?u(o,50):o.tint(50).toString(),"--el-button-hover-text-color":"var(--el-color-white)","--el-button-hover-bg-color":r,"--el-button-hover-border-color":r,"--el-button-active-bg-color":i,"--el-button-active-text-color":"var(--el-color-white)","--el-button-active-border-color":i},t.value&&(n["--el-button-disabled-bg-color"]=e.dark?u(o,90):o.tint(90).toString(),n["--el-button-disabled-text-color"]=e.dark?u(o,50):o.tint(50).toString(),n["--el-button-disabled-border-color"]=e.dark?u(o,80):o.tint(80).toString());else{const a=e.dark?u(o,30):o.tint(30).toString(),s=o.isDark()?"var(--el-color-white)":"var(--el-color-black)";if(n={"--el-button-bg-color":r,"--el-button-text-color":s,"--el-button-border-color":r,"--el-button-hover-bg-color":a,"--el-button-hover-text-color":s,"--el-button-hover-border-color":a,"--el-button-active-bg-color":i,"--el-button-active-border-color":i},t.value){const t=e.dark?u(o,50):o.tint(50).toString();n["--el-button-disabled-bg-color"]=t,n["--el-button-disabled-text-color"]=e.dark?"rgba(255, 255, 255, 0.5)":"var(--el-color-white)",n["--el-button-disabled-border-color"]=t}}}return n}))}var p=n(5989);const f=Symbol("buttonGroupContextKey");var h=n(67),m=n(6734),v=n(95);const g=["disabled","autofocus","type"],y={name:"ElButton"},b=(0,r.aZ)({...y,props:s.lS,emits:s.et,setup(e,{expose:t,emit:n}){const s=e,l=(0,r.Rr)(),u=(0,r.f3)(f,void 0),p=(0,h.W)("button"),y=(0,m.s)("button"),{form:b}=(0,v.A)(),_=(0,c.tH)((0,r.Fl)((()=>null==u?void 0:u.size))),w=(0,c.B4)(),k=(0,o.iH)(),S=(0,r.Fl)((()=>s.type||(null==u?void 0:u.type)||"")),C=(0,r.Fl)((()=>{var e,t,n;return null!=(n=null!=(t=s.autoInsertSpace)?t:null==(e=p.value)?void 0:e.autoInsertSpace)&&n})),x=(0,r.Fl)((()=>{var e;const t=null==(e=l.default)?void 0:e.call(l);if(C.value&&1===(null==t?void 0:t.length)){const e=t[0];if((null==e?void 0:e.type)===r.xv){const t=e.children;return/^\p{Unified_Ideograph}{2}$/u.test(t.trim())}}return!1})),I=d(s),T=e=>{"reset"===s.nativeType&&(null==b||b.resetFields()),n("click",e)};return t({ref:k,size:_,type:S,disabled:w,shouldAddSpace:x}),(e,t)=>((0,r.wg)(),(0,r.iD)("button",{ref_key:"_ref",ref:k,class:(0,i.C_)([(0,o.SU)(y).b(),(0,o.SU)(y).m((0,o.SU)(S)),(0,o.SU)(y).m((0,o.SU)(_)),(0,o.SU)(y).is("disabled",(0,o.SU)(w)),(0,o.SU)(y).is("loading",e.loading),(0,o.SU)(y).is("plain",e.plain),(0,o.SU)(y).is("round",e.round),(0,o.SU)(y).is("circle",e.circle)]),disabled:(0,o.SU)(w)||e.loading,autofocus:e.autofocus,type:e.nativeType,style:(0,i.j5)((0,o.SU)(I)),onClick:T},[e.loading?((0,r.wg)(),(0,r.iD)(r.HY,{key:0},[e.$slots.loading?(0,r.WI)(e.$slots,"loading",{key:0}):((0,r.wg)(),(0,r.j4)((0,o.SU)(a.gn),{key:1,class:(0,i.C_)((0,o.SU)(y).is("loading"))},{default:(0,r.w5)((()=>[((0,r.wg)(),(0,r.j4)((0,r.LL)(e.loadingIcon)))])),_:1},8,["class"]))],2112)):e.icon||e.$slots.icon?((0,r.wg)(),(0,r.j4)((0,o.SU)(a.gn),{key:1},{default:(0,r.w5)((()=>[e.icon?((0,r.wg)(),(0,r.j4)((0,r.LL)(e.icon),{key:0})):(0,r.WI)(e.$slots,"icon",{key:1})])),_:3})):(0,r.kq)("v-if",!0),e.$slots.default?((0,r.wg)(),(0,r.iD)("span",{key:2,class:(0,i.C_)({[(0,o.SU)(y).em("text","expand")]:(0,o.SU)(x)})},[(0,r.WI)(e.$slots,"default")],2)):(0,r.kq)("v-if",!0)],14,g))}});var _=(0,p.Z)(b,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const w={size:s.lS.size,type:s.lS.type},k={name:"ElButtonGroup"},S=(0,r.aZ)({...k,props:w,setup(e){const t=e;(0,r.JJ)(f,(0,o.qj)({size:(0,o.Vh)(t,"size"),type:(0,o.Vh)(t,"type")}));const n=(0,m.s)("button");return(e,t)=>((0,r.wg)(),(0,r.iD)("div",{class:(0,i.C_)(`${(0,o.SU)(n).b("group")}`)},[(0,r.WI)(e.$slots,"default")],2))}});var C=(0,p.Z)(S,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]),x=n(9015);const I=(0,x.nz)(_,{ButtonGroup:C}),T=(0,x.dp)(C)},8953:function(e,t,n){"use strict";n.d(t,{UH:function(){return s},et:function(){return u},lS:function(){return c}});var r=n(8468),o=n(2864),i=n(6174),a=n(6901);const s=["default","primary","success","warning","info","danger","text",""],l=["button","submit","reset"],c=(0,o.o8)({size:i.Pp,disabled:Boolean,type:{type:String,values:s,default:""},icon:{type:a.AA,default:""},nativeType:{type:String,values:l,default:"button"},loading:Boolean,loadingIcon:{type:a.AA,default:()=>r.Z},plain:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0}}),u={click:e=>e instanceof MouseEvent}},6809:function(e,t,n){"use strict";n(1758)},7610:function(e,t,n){"use strict";n.d(t,{Dv:function(){return d}});var r=n(3396),o=n(2864),i=n(2338),a=n(7504),s=n(6734);const l=(0,o.o8)({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:(0,o.Cq)([Number,Object]),default:()=>(0,i.N)({})},sm:{type:(0,o.Cq)([Number,Object]),default:()=>(0,i.N)({})},md:{type:(0,o.Cq)([Number,Object]),default:()=>(0,i.N)({})},lg:{type:(0,o.Cq)([Number,Object]),default:()=>(0,i.N)({})},xl:{type:(0,o.Cq)([Number,Object]),default:()=>(0,i.N)({})}});var c=(0,r.aZ)({name:"ElCol",props:l,setup(e,{slots:t}){const{gutter:n}=(0,r.f3)(a.j,{gutter:(0,r.Fl)((()=>0))}),o=(0,s.s)("col"),i=(0,r.Fl)((()=>n.value?{paddingLeft:n.value/2+"px",paddingRight:n.value/2+"px"}:{})),l=(0,r.Fl)((()=>{const t=[],r=["span","offset","pull","push"];r.forEach((n=>{const r=e[n];"number"===typeof r&&("span"===n?t.push(o.b(`${e[n]}`)):r>0&&t.push(o.b(`${n}-${e[n]}`)))}));const i=["xs","sm","md","lg","xl"];return i.forEach((n=>{if("number"===typeof e[n])t.push(o.b(`${n}-${e[n]}`));else if("object"===typeof e[n]){const r=e[n];Object.keys(r).forEach((e=>{t.push("span"!==e?o.b(`${n}-${e}-${r[e]}`):o.b(`${n}-${r[e]}`))}))}})),n.value&&t.push(o.is("guttered")),t}));return()=>(0,r.Wm)(e.tag,{class:[o.b(),l.value],style:i.value},t)}}),u=n(9015);const d=(0,u.nz)(c)},8839:function(e,t,n){"use strict";n(1758)},1511:function(e,t,n){"use strict";n.d(t,{It:function(){return s},ZP:function(){return c}});var r=n(3396),o=n(2864),i=n(7609),a=n(67);const s={},l=(0,o.o8)({a11y:{type:Boolean,default:!0},locale:{type:(0,o.Cq)(Object)},size:{type:String,values:i.k,default:""},button:{type:(0,o.Cq)(Object)},experimentalFeatures:{type:(0,o.Cq)(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:(0,o.Cq)(Object)},zIndex:{type:Number},namespace:{type:String,default:"el"}});var c=(0,r.aZ)({name:"ElConfigProvider",props:l,setup(e,{slots:t}){(0,r.YP)((()=>e.message),(e=>{Object.assign(s,null!=e?e:{})}),{immediate:!0,deep:!0});const n=(0,a.A)(e);return()=>(0,r.WI)(t,"default",{config:null==n?void 0:n.value})}})},1015:function(e,t,n){"use strict";n.d(t,{gn:function(){return m}});var r=n(3396),o=n(4870),i=n(2864);const a=(0,i.o8)({size:{type:(0,i.Cq)([Number,String])},color:{type:String}});var s=n(5989),l=n(6734),c=n(7354),u=n(529);const d={name:"ElIcon",inheritAttrs:!1},p=(0,r.aZ)({...d,props:a,setup(e){const t=e,n=(0,l.s)("icon"),i=(0,r.Fl)((()=>t.size||t.color?{fontSize:(0,c.o8)(t.size)?void 0:(0,u.Nn)(t.size),"--color":t.color}:{}));return(e,t)=>((0,r.wg)(),(0,r.iD)("i",(0,r.dG)({class:(0,o.SU)(n).b(),style:(0,o.SU)(i)},e.$attrs),[(0,r.WI)(e.$slots,"default")],16))}});var f=(0,s.Z)(p,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]),h=n(9015);const m=(0,h.nz)(f)},5728:function(e,t,n){"use strict";n.d(t,{EZ:function(){return J}});var r=n(3396),o=n(4870),i=n(7139),a=n(9242),s=n(4419),l=n(1727),c=n(1015),u=n(6854);const d=(0,r.aZ)({name:"View"}),p={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},f=(0,r._)("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352zm0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448zm0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160z"},null,-1),h=[f];function m(e,t,n,o,i,a){return(0,r.wg)(),(0,r.iD)("svg",p,h)}var v=(0,u.Z)(d,[["render",m]]);const g=(0,r.aZ)({name:"Hide"}),y={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},b=(0,r._)("path",{d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2L371.2 588.8ZM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z",fill:"currentColor"},null,-1),_=(0,r._)("path",{d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z",fill:"currentColor"},null,-1),w=[b,_];function k(e,t,n,o,i,a){return(0,r.wg)(),(0,r.iD)("svg",y,w)}var S=(0,u.Z)(g,[["render",k]]),C=n(4397);let x;const I="\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n",T=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function E(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),o=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width")),i=T.map((e=>`${e}:${t.getPropertyValue(e)}`)).join(";");return{contextStyle:i,paddingSize:r,borderSize:o,boxSizing:n}}function R(e,t=1,n){var r;x||(x=document.createElement("textarea"),document.body.appendChild(x));const{paddingSize:o,borderSize:i,boxSizing:a,contextStyle:l}=E(e);x.setAttribute("style",`${l};${I}`),x.value=e.value||e.placeholder||"";let c=x.scrollHeight;const u={};"border-box"===a?c+=i:"content-box"===a&&(c-=o),x.value="";const d=x.scrollHeight-o;if((0,s.hj)(t)){let e=d*t;"border-box"===a&&(e=e+o+i),c=Math.max(e,c),u.minHeight=`${e}px`}if((0,s.hj)(n)){let e=d*n;"border-box"===a&&(e=e+o+i),c=Math.min(e,c)}return u.height=`${c}px`,null==(r=x.parentNode)||r.removeChild(x),x=void 0,u}var P=n(2864),O=n(6174),A=n(6901),D=n(2338),N=n(6835);const M=(0,P.o8)({size:O.Pp,disabled:Boolean,modelValue:{type:(0,P.Cq)([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:(0,P.Cq)([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String,default:""},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:A.AA,default:""},prefixIcon:{type:A.AA,default:""},label:{type:String},tabindex:{type:[Number,String]},validateEvent:{type:Boolean,default:!0},inputStyle:{type:(0,P.Cq)([Object,Array,String]),default:()=>(0,D.N)({})}}),L={[N.f_]:e=>(0,i.HD)(e),input:e=>(0,i.HD)(e),change:e=>(0,i.HD)(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent};var F=n(5989),U=n(8053),j=n(95),V=n(6734);function H(e){const t=(0,o.iH)();function n(){if(void 0==e.value)return;const{selectionStart:n,selectionEnd:r,value:o}=e.value;if(null==n||null==r)return;const i=o.slice(0,Math.max(0,n)),a=o.slice(Math.max(0,r));t.value={selectionStart:n,selectionEnd:r,value:o,beforeTxt:i,afterTxt:a}}function r(){if(void 0==e.value||void 0==t.value)return;const{value:n}=e.value,{beforeTxt:r,afterTxt:o,selectionStart:i}=t.value;if(void 0==r||void 0==o||void 0==i)return;let a=n.length;if(n.endsWith(o))a=n.length-o.length;else if(n.startsWith(r))a=r.length;else{const e=r[i-1],t=n.indexOf(e,i-1);-1!==t&&(a=t+1)}e.value.setSelectionRange(a,a)}return[n,r]}var B=n(3356),$=n(4620);const z=["type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder"],W=["tabindex","disabled","readonly","autocomplete","aria-label","placeholder"],q={name:"ElInput",inheritAttrs:!1},Z=(0,r.aZ)({...q,props:M,emits:L,setup(e,{expose:t,emit:n}){const u=e,d={suffix:"append",prefix:"prepend"},p=(0,r.FN)(),f=(0,r.l1)(),h=(0,r.Rr)(),m=(0,U.l)(),{form:g,formItem:y}=(0,j.A)(),b=(0,O.tH)(),_=(0,O.B4)(),w=(0,V.s)("input"),k=(0,V.s)("textarea"),x=(0,o.XI)(),I=(0,o.XI)(),T=(0,o.iH)(!1),E=(0,o.iH)(!1),P=(0,o.iH)(!1),D=(0,o.iH)(!1),M=(0,o.XI)(u.inputStyle),L=(0,r.Fl)((()=>x.value||I.value)),F=(0,r.Fl)((()=>{var e;return null!=(e=null==g?void 0:g.statusIcon)&&e})),q=(0,r.Fl)((()=>(null==y?void 0:y.validateState)||"")),Z=(0,r.Fl)((()=>A.rU[q.value])),Y=(0,r.Fl)((()=>D.value?v:S)),K=(0,r.Fl)((()=>[f.style,u.inputStyle])),J=(0,r.Fl)((()=>[u.inputStyle,M.value,{resize:u.resize}])),G=(0,r.Fl)((()=>(0,l.Z)(u.modelValue)?"":String(u.modelValue))),X=(0,r.Fl)((()=>u.clearable&&!_.value&&!u.readonly&&!!G.value&&(T.value||E.value))),Q=(0,r.Fl)((()=>u.showPassword&&!_.value&&!u.readonly&&(!!G.value||T.value))),ee=(0,r.Fl)((()=>u.showWordLimit&&!!m.value.maxlength&&("text"===u.type||"textarea"===u.type)&&!_.value&&!u.readonly&&!u.showPassword)),te=(0,r.Fl)((()=>Array.from(G.value).length)),ne=(0,r.Fl)((()=>!!ee.value&&te.value>Number(m.value.maxlength))),re=(0,r.Fl)((()=>!!h.suffix||!!u.suffixIcon||X.value||u.showPassword||ee.value||!!q.value&&F.value)),[oe,ie]=H(x),ae=()=>{const{type:e,autosize:t}=u;if(s.C5&&"textarea"===e)if(t){const e=(0,i.Kn)(t)?t.minRows:void 0,n=(0,i.Kn)(t)?t.maxRows:void 0;M.value={...R(I.value,e,n)}}else M.value={minHeight:R(I.value).minHeight}},se=()=>{const e=L.value;e&&e.value!==G.value&&(e.value=G.value)},le=e=>{const{el:t}=p.vnode;if(!t)return;const n=Array.from(t.querySelectorAll(`.${w.e(e)}`)),r=n.find((e=>e.parentNode===t));if(!r)return;const o=d[e];h[o]?r.style.transform=`translateX(${"suffix"===e?"-":""}${t.querySelector(`.${w.be("group",o)}`).offsetWidth}px)`:r.removeAttribute("style")},ce=()=>{le("prefix"),le("suffix")},ue=async e=>{oe();let{value:t}=e.target;u.formatter&&(t=u.parser?u.parser(t):t,t=u.formatter(t)),P.value||t!==G.value&&(n(N.f_,t),n("input",t),await(0,r.Y3)(),se(),ie())},de=e=>{n("change",e.target.value)},pe=e=>{n("compositionstart",e),P.value=!0},fe=e=>{var t;n("compositionupdate",e);const r=null==(t=e.target)?void 0:t.value,o=r[r.length-1]||"";P.value=!(0,B.w)(o)},he=e=>{n("compositionend",e),P.value&&(P.value=!1,ue(e))},me=()=>{D.value=!D.value,ve()},ve=async()=>{var e;await(0,r.Y3)(),null==(e=L.value)||e.focus()},ge=()=>{var e;return null==(e=L.value)?void 0:e.blur()},ye=e=>{T.value=!0,n("focus",e)},be=e=>{var t;T.value=!1,n("blur",e),u.validateEvent&&(null==(t=null==y?void 0:y.validate)||t.call(y,"blur").catch((e=>(0,$.N)(e))))},_e=e=>{E.value=!1,n("mouseleave",e)},we=e=>{E.value=!0,n("mouseenter",e)},ke=e=>{n("keydown",e)},Se=()=>{var e;null==(e=L.value)||e.select()},Ce=()=>{n(N.f_,""),n("change",""),n("clear"),n("input","")};return(0,r.YP)((()=>u.modelValue),(()=>{var e;(0,r.Y3)((()=>ae())),u.validateEvent&&(null==(e=null==y?void 0:y.validate)||e.call(y,"change").catch((e=>(0,$.N)(e))))})),(0,r.YP)(G,(()=>se())),(0,r.YP)((()=>u.type),(async()=>{await(0,r.Y3)(),se(),ae(),ce()})),(0,r.bv)((async()=>{!u.formatter&&u.parser&&(0,$.N)("ElInput","If you set the parser, you also need to set the formatter."),se(),ce(),await(0,r.Y3)(),ae()})),(0,r.ic)((async()=>{await(0,r.Y3)(),ce()})),t({input:x,textarea:I,ref:L,textareaStyle:J,autosize:(0,o.Vh)(u,"autosize"),focus:ve,blur:ge,select:Se,clear:Ce,resizeTextarea:ae}),(e,t)=>(0,r.wy)(((0,r.wg)(),(0,r.iD)("div",{class:(0,i.C_)(["textarea"===e.type?(0,o.SU)(k).b():(0,o.SU)(w).b(),(0,o.SU)(w).m((0,o.SU)(b)),(0,o.SU)(w).is("disabled",(0,o.SU)(_)),(0,o.SU)(w).is("exceed",(0,o.SU)(ne)),{[(0,o.SU)(w).b("group")]:e.$slots.prepend||e.$slots.append,[(0,o.SU)(w).bm("group","append")]:e.$slots.append,[(0,o.SU)(w).bm("group","prepend")]:e.$slots.prepend,[(0,o.SU)(w).m("prefix")]:e.$slots.prefix||e.prefixIcon,[(0,o.SU)(w).m("suffix")]:e.$slots.suffix||e.suffixIcon||e.clearable||e.showPassword,[(0,o.SU)(w).bm("suffix","password-clear")]:(0,o.SU)(X)&&(0,o.SU)(Q)},e.$attrs.class]),style:(0,i.j5)((0,o.SU)(K)),onMouseenter:we,onMouseleave:_e},[(0,r.kq)(" input "),"textarea"!==e.type?((0,r.wg)(),(0,r.iD)(r.HY,{key:0},[(0,r.kq)(" prepend slot "),e.$slots.prepend?((0,r.wg)(),(0,r.iD)("div",{key:0,class:(0,i.C_)((0,o.SU)(w).be("group","prepend"))},[(0,r.WI)(e.$slots,"prepend")],2)):(0,r.kq)("v-if",!0),(0,r._)("div",{class:(0,i.C_)([(0,o.SU)(w).e("wrapper"),(0,o.SU)(w).is("focus",T.value)])},[(0,r.kq)(" prefix slot "),e.$slots.prefix||e.prefixIcon?((0,r.wg)(),(0,r.iD)("span",{key:0,class:(0,i.C_)((0,o.SU)(w).e("prefix"))},[(0,r._)("span",{class:(0,i.C_)((0,o.SU)(w).e("prefix-inner"))},[(0,r.WI)(e.$slots,"prefix"),e.prefixIcon?((0,r.wg)(),(0,r.j4)((0,o.SU)(c.gn),{key:0,class:(0,i.C_)((0,o.SU)(w).e("icon"))},{default:(0,r.w5)((()=>[((0,r.wg)(),(0,r.j4)((0,r.LL)(e.prefixIcon)))])),_:1},8,["class"])):(0,r.kq)("v-if",!0)],2)],2)):(0,r.kq)("v-if",!0),(0,r._)("input",(0,r.dG)({ref_key:"input",ref:x,class:(0,o.SU)(w).e("inner")},(0,o.SU)(m),{type:e.showPassword?D.value?"text":"password":e.type,disabled:(0,o.SU)(_),formatter:e.formatter,parser:e.parser,readonly:e.readonly,autocomplete:e.autocomplete,tabindex:e.tabindex,"aria-label":e.label,placeholder:e.placeholder,style:e.inputStyle,onCompositionstart:pe,onCompositionupdate:fe,onCompositionend:he,onInput:ue,onFocus:ye,onBlur:be,onChange:de,onKeydown:ke}),null,16,z),(0,r.kq)(" suffix slot "),(0,o.SU)(re)?((0,r.wg)(),(0,r.iD)("span",{key:1,class:(0,i.C_)((0,o.SU)(w).e("suffix"))},[(0,r._)("span",{class:(0,i.C_)((0,o.SU)(w).e("suffix-inner"))},[(0,o.SU)(X)&&(0,o.SU)(Q)&&(0,o.SU)(ee)?(0,r.kq)("v-if",!0):((0,r.wg)(),(0,r.iD)(r.HY,{key:0},[(0,r.WI)(e.$slots,"suffix"),e.suffixIcon?((0,r.wg)(),(0,r.j4)((0,o.SU)(c.gn),{key:0,class:(0,i.C_)((0,o.SU)(w).e("icon"))},{default:(0,r.w5)((()=>[((0,r.wg)(),(0,r.j4)((0,r.LL)(e.suffixIcon)))])),_:1},8,["class"])):(0,r.kq)("v-if",!0)],64)),(0,o.SU)(X)?((0,r.wg)(),(0,r.j4)((0,o.SU)(c.gn),{key:1,class:(0,i.C_)([(0,o.SU)(w).e("icon"),(0,o.SU)(w).e("clear")]),onMousedown:t[0]||(t[0]=(0,a.iM)((()=>{}),["prevent"])),onClick:Ce},{default:(0,r.w5)((()=>[(0,r.Wm)((0,o.SU)(C.Z))])),_:1},8,["class"])):(0,r.kq)("v-if",!0),(0,o.SU)(Q)?((0,r.wg)(),(0,r.j4)((0,o.SU)(c.gn),{key:2,class:(0,i.C_)([(0,o.SU)(w).e("icon"),(0,o.SU)(w).e("password")]),onClick:me},{default:(0,r.w5)((()=>[((0,r.wg)(),(0,r.j4)((0,r.LL)((0,o.SU)(Y))))])),_:1},8,["class"])):(0,r.kq)("v-if",!0),(0,o.SU)(ee)?((0,r.wg)(),(0,r.iD)("span",{key:3,class:(0,i.C_)((0,o.SU)(w).e("count"))},[(0,r._)("span",{class:(0,i.C_)((0,o.SU)(w).e("count-inner"))},(0,i.zw)((0,o.SU)(te))+" / "+(0,i.zw)((0,o.SU)(m).maxlength),3)],2)):(0,r.kq)("v-if",!0),(0,o.SU)(q)&&(0,o.SU)(Z)&&(0,o.SU)(F)?((0,r.wg)(),(0,r.j4)((0,o.SU)(c.gn),{key:4,class:(0,i.C_)([(0,o.SU)(w).e("icon"),(0,o.SU)(w).e("validateIcon"),(0,o.SU)(w).is("loading","validating"===(0,o.SU)(q))])},{default:(0,r.w5)((()=>[((0,r.wg)(),(0,r.j4)((0,r.LL)((0,o.SU)(Z))))])),_:1},8,["class"])):(0,r.kq)("v-if",!0)],2)],2)):(0,r.kq)("v-if",!0)],2),(0,r.kq)(" append slot "),e.$slots.append?((0,r.wg)(),(0,r.iD)("div",{key:1,class:(0,i.C_)((0,o.SU)(w).be("group","append"))},[(0,r.WI)(e.$slots,"append")],2)):(0,r.kq)("v-if",!0)],64)):((0,r.wg)(),(0,r.iD)(r.HY,{key:1},[(0,r.kq)(" textarea "),(0,r._)("textarea",(0,r.dG)({ref_key:"textarea",ref:I,class:(0,o.SU)(k).e("inner")},(0,o.SU)(m),{tabindex:e.tabindex,disabled:(0,o.SU)(_),readonly:e.readonly,autocomplete:e.autocomplete,style:(0,o.SU)(J),"aria-label":e.label,placeholder:e.placeholder,onCompositionstart:pe,onCompositionupdate:fe,onCompositionend:he,onInput:ue,onFocus:ye,onBlur:be,onChange:de,onKeydown:ke}),null,16,W),(0,o.SU)(ee)?((0,r.wg)(),(0,r.iD)("span",{key:0,class:(0,i.C_)((0,o.SU)(w).e("count"))},(0,i.zw)((0,o.SU)(te))+" / "+(0,i.zw)((0,o.SU)(m).maxlength),3)):(0,r.kq)("v-if",!0)],64))],38)),[[a.F8,"hidden"!==e.type]])}});var Y=(0,F.Z)(Z,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]),K=n(9015);const J=(0,K.nz)(Y)},172:function(e,t,n){"use strict";n(1758)},5574:function(e,t,n){"use strict";n.d(t,{z8:function(){return N}});var r=n(3396),o=n(9242),i=n(4419),a=n(1511),s=n(4870),l=n(7139),c=n(6367),u=n(1183),d=n(1015),p=n(2864),f=n(6901);const h=["success","info","warning","error"],m=(0,p.o8)({customClass:{type:String,default:""},center:{type:Boolean,default:!1},dangerouslyUseHTMLString:{type:Boolean,default:!1},duration:{type:Number,default:3e3},icon:{type:f.AA,default:""},id:{type:String,default:""},message:{type:(0,p.Cq)([String,Object,Function]),default:""},onClose:{type:(0,p.Cq)(Function),required:!1},showClose:{type:Boolean,default:!1},type:{type:String,values:h,default:"info"},offset:{type:Number,default:20},zIndex:{type:Number,default:0},grouping:{type:Boolean,default:!1},repeatNum:{type:Number,default:1}}),v={destroy:()=>!0};var g=n(5989),y=n(6734),b=n(9619);const _=(0,r.aZ)({name:"ElMessage",components:{ElBadge:u.dQ,ElIcon:d.gn,...f.f5},props:m,emits:v,setup(e){const t=(0,y.s)("message"),n=(0,s.iH)(!1),o=(0,s.iH)(e.type?"error"===e.type?"danger":e.type:"info");let a;const l=(0,r.Fl)((()=>{const n=e.type;return{[t.bm("icon",n)]:n&&f.Rp[n]}})),u=(0,r.Fl)((()=>e.icon||f.Rp[e.type]||"")),d=(0,r.Fl)((()=>({top:`${e.offset}px`,zIndex:e.zIndex})));function p(){e.duration>0&&({stop:a}=(0,i.eM)((()=>{n.value&&m()}),e.duration))}function h(){null==a||a()}function m(){n.value=!1}function v({code:e}){e===b.n.esc?n.value&&m():p()}return(0,r.bv)((()=>{p(),n.value=!0})),(0,r.YP)((()=>e.repeatNum),(()=>{h(),p()})),(0,c.ORN)(document,"keydown",v),{ns:t,typeClass:l,iconComponent:u,customStyle:d,visible:n,badgeType:o,close:m,clearTimer:h,startTimer:p}}}),w=["id"],k=["innerHTML"];function S(e,t,n,i,a,s){const c=(0,r.up)("el-badge"),u=(0,r.up)("el-icon"),d=(0,r.up)("close");return(0,r.wg)(),(0,r.j4)(o.uT,{name:e.ns.b("fade"),onBeforeLeave:e.onClose,onAfterLeave:t[2]||(t[2]=t=>e.$emit("destroy"))},{default:(0,r.w5)((()=>[(0,r.wy)((0,r._)("div",{id:e.id,class:(0,l.C_)([e.ns.b(),{[e.ns.m(e.type)]:e.type&&!e.icon},e.ns.is("center",e.center),e.ns.is("closable",e.showClose),e.customClass]),style:(0,l.j5)(e.customStyle),role:"alert",onMouseenter:t[0]||(t[0]=(...t)=>e.clearTimer&&e.clearTimer(...t)),onMouseleave:t[1]||(t[1]=(...t)=>e.startTimer&&e.startTimer(...t))},[e.repeatNum>1?((0,r.wg)(),(0,r.j4)(c,{key:0,value:e.repeatNum,type:e.badgeType,class:(0,l.C_)(e.ns.e("badge"))},null,8,["value","type","class"])):(0,r.kq)("v-if",!0),e.iconComponent?((0,r.wg)(),(0,r.j4)(u,{key:1,class:(0,l.C_)([e.ns.e("icon"),e.typeClass])},{default:(0,r.w5)((()=>[((0,r.wg)(),(0,r.j4)((0,r.LL)(e.iconComponent)))])),_:1},8,["class"])):(0,r.kq)("v-if",!0),(0,r.WI)(e.$slots,"default",{},(()=>[e.dangerouslyUseHTMLString?((0,r.wg)(),(0,r.iD)(r.HY,{key:1},[(0,r.kq)(" Caution here, message could've been compromised, never use user's input as message "),(0,r._)("p",{class:(0,l.C_)(e.ns.e("content")),innerHTML:e.message},null,10,k)],2112)):((0,r.wg)(),(0,r.iD)("p",{key:0,class:(0,l.C_)(e.ns.e("content"))},(0,l.zw)(e.message),3))])),e.showClose?((0,r.wg)(),(0,r.j4)(u,{key:2,class:(0,l.C_)(e.ns.e("closeBtn")),onClick:(0,o.iM)(e.close,["stop"])},{default:(0,r.w5)((()=>[(0,r.Wm)(d)])),_:1},8,["class","onClick"])):(0,r.kq)("v-if",!0)],46,w),[[o.F8,e.visible]])])),_:3},8,["name","onBeforeLeave"])}var C=(0,g.Z)(_,[["render",S],["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]),x=n(7750),I=n(7354),T=n(4620);const E=[];let R=1;const P=function(e={},t){if(!i.C5)return{close:()=>{}};if((0,i.hj)(a.It.max)&&E.length>=a.It.max)return{close:()=>{}};if(!(0,r.lA)(e)&&(0,l.Kn)(e)&&e.grouping&&!(0,r.lA)(e.message)&&E.length){const t=E.find((t=>{var n,r,o;return`${null!=(r=null==(n=t.vm.props)?void 0:n.message)?r:""}`===`${null!=(o=e.message)?o:""}`}));if(t)return t.vm.component.props.repeatNum+=1,t.vm.component.props.type=(null==e?void 0:e.type)||"info",{close:()=>m.component.proxy.visible=!1}}((0,l.HD)(e)||(0,r.lA)(e))&&(e={message:e});let n=e.offset||20;E.forEach((({vm:e})=>{var t;n+=((null==(t=e.el)?void 0:t.offsetHeight)||0)+16})),n+=16;const{nextZIndex:s}=(0,x.C)(),c="message_"+R++,u=e.onClose,d={zIndex:s(),...e,offset:n,id:c,onClose:()=>{O(c,u)}};let p=document.body;(0,I.kK)(e.appendTo)?p=e.appendTo:(0,l.HD)(e.appendTo)&&(p=document.querySelector(e.appendTo)),(0,I.kK)(p)||((0,T.N)("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),p=document.body);const f=document.createElement("div");f.className=`container_${c}`;const h=d.message,m=(0,r.Wm)(C,d,(0,l.mf)(h)?{default:h}:(0,r.lA)(h)?{default:()=>h}:null);return m.appContext=t||P._context,m.props.onDestroy=()=>{(0,o.sY)(null,f)},(0,o.sY)(m,f),E.push({vm:m}),p.appendChild(f.firstElementChild),{close:()=>m.component.proxy.visible=!1}};function O(e,t){const n=E.findIndex((({vm:t})=>e===t.component.props.id));if(-1===n)return;const{vm:r}=E[n];if(!r)return;null==t||t(r);const o=r.el.offsetHeight;E.splice(n,1);const i=E.length;if(!(i<1))for(let a=n;a<i;a++){const e=Number.parseInt(E[a].vm.el.style["top"],10)-o-16;E[a].vm.component.props.offset=e}}function A(){var e;for(let t=E.length-1;t>=0;t--){const n=E[t].vm.component;null==(e=null==n?void 0:n.proxy)||e.close()}}h.forEach((e=>{P[e]=(t={},n)=>(((0,l.HD)(t)||(0,r.lA)(t))&&(t={message:t}),P({...t,type:e},n))})),P.closeAll=A,P._context=null;var D=n(9015);const N=(0,D.oN)(P,"$message")},8217:function(e,t,n){"use strict";n(1758)},5017:function(e,t,n){"use strict";n.d(t,{nG:function(){return d}});var r=n(3396),o=n(4870),i=n(5989),a=n(8292);const s={name:"ElPopperRoot",inheritAttrs:!1},l=(0,r.aZ)({...s,setup(e,{expose:t}){const n=(0,o.iH)(),i=(0,o.iH)(),s=(0,o.iH)(),l=(0,o.iH)(),c={triggerRef:n,popperInstanceRef:i,contentRef:s,referenceRef:l};return t(c),(0,r.JJ)(a.a,c),(e,t)=>(0,r.WI)(e.$slots,"default")}});var c=(0,i.Z)(l,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]),u=n(9015);const d=(0,u.nz)(c)},9370:function(e,t,n){"use strict";n.d(t,{P:function(){return s}});var r=n(7928),o=n(2864);const i=["fixed","absolute"],a=(0,o.o8)({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:(0,o.Cq)(Array),default:()=>[]},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:r.Ct,default:"bottom"},popperOptions:{type:(0,o.Cq)(Object),default:()=>({})},strategy:{type:String,values:i,default:"absolute"}}),s=(0,o.o8)({...a,style:{type:(0,o.Cq)([String,Array,Object])},className:{type:(0,o.Cq)([String,Array,Object])},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,popperClass:{type:(0,o.Cq)([String,Array,Object])},popperStyle:{type:(0,o.Cq)([String,Array,Object])},referenceEl:{type:(0,o.Cq)(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},zIndex:Number})},112:function(e,t,n){"use strict";n.d(t,{Q:function(){return a}});var r=n(3396),o=n(4419),i=n(7643);function a(e,t){const n=(0,r.FN)(),a=(0,r.Fl)((()=>(0,o.jn)(n.props[t])?n.props[t]:n.props.teleported));return(0,i.A)({scope:e,from:t,replacement:"teleported",version:"2.1.0",ref:"https://element-plus.org/en-US/component/tooltip.html#attributes"},(0,r.Fl)((()=>(0,o.jn)(n.props[t])))),{compatTeleported:a}}},319:function(e,t,n){"use strict";n.d(t,{p:function(){return o}});var r=n(2864);const o=(0,r.o8)({virtualRef:{type:(0,r.Cq)(Object)},virtualTriggering:Boolean,onMouseenter:Function,onMouseleave:Function,onClick:Function,onKeydown:Function,onFocus:Function,onBlur:Function,onContextmenu:Function,id:String,open:Boolean})},6939:function(e,t,n){"use strict";n.d(t,{dq:function(){return u}});var r=n(3396),o=n(2864),i=n(6734),a=n(7504);const s=(0,o.o8)({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:["start","center","end","space-around","space-between","space-evenly"],default:"start"},align:{type:String,values:["top","middle","bottom"],default:"top"}}),l=(0,r.aZ)({name:"ElRow",props:s,setup(e,{slots:t}){const n=(0,i.s)("row"),o=(0,r.Fl)((()=>e.gutter));(0,r.JJ)(a.j,{gutter:o});const s=(0,r.Fl)((()=>{const t={marginLeft:"",marginRight:""};return e.gutter&&(t.marginLeft=`-${e.gutter/2}px`,t.marginRight=t.marginLeft),t}));return()=>(0,r.Wm)(e.tag,{class:[n.b(),n.is(`justify-${e.justify}`,"start"!==e.justify),n.is(`align-${e.align}`,"top"!==e.align)],style:s.value},{default:()=>{var e;return[null==(e=t.default)?void 0:e.call(t)]}})}});var c=n(9015);const u=(0,c.nz)(l)},6885:function(e,t,n){"use strict";n(1758)},6739:function(e,t,n){"use strict";n.d(t,{Mr:function(){return O}});var r=n(3396),o=n(4870),i=n(7139),a=n(6367),s=n(4419),l=n(9242),c=n(6890),u=n(2864);const d=(0,u.o8)({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean});var p=n(5989);const f=Symbol("scrollbarContextKey");var h=n(6734),m=n(4620);const v="Thumb",g=(0,r.aZ)({name:v,props:d,setup(e){const t=(0,r.f3)(f),n=(0,h.s)("scrollbar");t||(0,m._)(v,"can not inject scrollbar context");const i=(0,o.iH)(),l=(0,o.iH)(),u=(0,o.iH)({}),d=(0,o.iH)(!1);let p=!1,g=!1,y=s.C5?document.onselectstart:null;const b=(0,r.Fl)((()=>c.s[e.vertical?"vertical":"horizontal"])),_=(0,r.Fl)((()=>(0,c.r)({size:e.size,move:e.move,bar:b.value}))),w=(0,r.Fl)((()=>i.value[b.value.offset]**2/t.wrapElement[b.value.scrollSize]/e.ratio/l.value[b.value.offset])),k=e=>{var t;if(e.stopPropagation(),e.ctrlKey||[1,2].includes(e.button))return;null==(t=window.getSelection())||t.removeAllRanges(),C(e);const n=e.currentTarget;n&&(u.value[b.value.axis]=n[b.value.offset]-(e[b.value.client]-n.getBoundingClientRect()[b.value.direction]))},S=e=>{if(!l.value||!i.value||!t.wrapElement)return;const n=Math.abs(e.target.getBoundingClientRect()[b.value.direction]-e[b.value.client]),r=l.value[b.value.offset]/2,o=100*(n-r)*w.value/i.value[b.value.offset];t.wrapElement[b.value.scroll]=o*t.wrapElement[b.value.scrollSize]/100},C=e=>{e.stopImmediatePropagation(),p=!0,document.addEventListener("mousemove",x),document.addEventListener("mouseup",I),y=document.onselectstart,document.onselectstart=()=>!1},x=e=>{if(!i.value||!l.value)return;if(!1===p)return;const n=u.value[b.value.axis];if(!n)return;const r=-1*(i.value.getBoundingClientRect()[b.value.direction]-e[b.value.client]),o=l.value[b.value.offset]-n,a=100*(r-o)*w.value/i.value[b.value.offset];t.wrapElement[b.value.scroll]=a*t.wrapElement[b.value.scrollSize]/100},I=()=>{p=!1,u.value[b.value.axis]=0,document.removeEventListener("mousemove",x),document.removeEventListener("mouseup",I),R(),g&&(d.value=!1)},T=()=>{g=!1,d.value=!!e.size},E=()=>{g=!0,d.value=p};(0,r.Jd)((()=>{R(),document.removeEventListener("mouseup",I)}));const R=()=>{document.onselectstart!==y&&(document.onselectstart=y)};return(0,a.ORN)((0,o.Vh)(t,"scrollbarElement"),"mousemove",T),(0,a.ORN)((0,o.Vh)(t,"scrollbarElement"),"mouseleave",E),{ns:n,instance:i,thumb:l,bar:b,thumbStyle:_,visible:d,clickTrackHandler:S,clickThumbHandler:k}}});function y(e,t,n,o,a,s){return(0,r.wg)(),(0,r.j4)(l.uT,{name:e.ns.b("fade")},{default:(0,r.w5)((()=>[(0,r.wy)((0,r._)("div",{ref:"instance",class:(0,i.C_)([e.ns.e("bar"),e.ns.is(e.bar.key)]),onMousedown:t[1]||(t[1]=(...t)=>e.clickTrackHandler&&e.clickTrackHandler(...t))},[(0,r._)("div",{ref:"thumb",class:(0,i.C_)(e.ns.e("thumb")),style:(0,i.j5)(e.thumbStyle),onMousedown:t[0]||(t[0]=(...t)=>e.clickThumbHandler&&e.clickThumbHandler(...t))},null,38)],34),[[l.F8,e.always||e.visible]])])),_:1},8,["name"])}var b=(0,p.Z)(g,[["render",y],["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const _=(0,u.o8)({always:{type:Boolean,default:!0},width:{type:String,default:""},height:{type:String,default:""},ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),w=(0,r.aZ)({components:{Thumb:b},props:_,setup(e){const t=(0,o.iH)(0),n=(0,o.iH)(0),r=4,i=o=>{if(o){const i=o.offsetHeight-r,a=o.offsetWidth-r;n.value=100*o.scrollTop/i*e.ratioY,t.value=100*o.scrollLeft/a*e.ratioX}};return{handleScroll:i,moveX:t,moveY:n}}});function k(e,t,n,o,i,a){const s=(0,r.up)("thumb");return(0,r.wg)(),(0,r.iD)(r.HY,null,[(0,r.Wm)(s,{move:e.moveX,ratio:e.ratioX,size:e.width,always:e.always},null,8,["move","ratio","size","always"]),(0,r.Wm)(s,{move:e.moveY,ratio:e.ratioY,size:e.height,vertical:"",always:e.always},null,8,["move","ratio","size","always"])],64)}var S=(0,p.Z)(w,[["render",k],["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const C=(0,u.o8)({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:(0,u.Cq)([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:{type:Boolean,default:!1},minSize:{type:Number,default:20}}),x={scroll:({scrollTop:e,scrollLeft:t})=>(0,s.hj)(e)&&(0,s.hj)(t)};var I=n(529);const T=(0,r.aZ)({name:"ElScrollbar",components:{Bar:S},props:C,emits:x,setup(e,{emit:t}){const n=(0,h.s)("scrollbar");let l,c;const u=(0,o.iH)(),d=(0,o.iH)(),p=(0,o.iH)(),v=(0,o.iH)("0"),g=(0,o.iH)("0"),y=(0,o.iH)(),b=(0,o.iH)(0),_=(0,o.iH)(0),w=(0,o.iH)(1),k=(0,o.iH)(1),S="ElScrollbar",C=4,x=(0,r.Fl)((()=>{const t={};return e.height&&(t.height=(0,I.Nn)(e.height)),e.maxHeight&&(t.maxHeight=(0,I.Nn)(e.maxHeight)),[e.wrapStyle,t]})),T=()=>{var e;d.value&&(null==(e=y.value)||e.handleScroll(d.value),t("scroll",{scrollTop:d.value.scrollTop,scrollLeft:d.value.scrollLeft}))};function E(e,t){(0,i.Kn)(e)?d.value.scrollTo(e):(0,s.hj)(e)&&(0,s.hj)(t)&&d.value.scrollTo(e,t)}const R=e=>{(0,s.hj)(e)?d.value.scrollTop=e:(0,m.N)(S,"value must be a number")},P=e=>{(0,s.hj)(e)?d.value.scrollLeft=e:(0,m.N)(S,"value must be a number")},O=()=>{if(!d.value)return;const t=d.value.offsetHeight-C,n=d.value.offsetWidth-C,r=t**2/d.value.scrollHeight,o=n**2/d.value.scrollWidth,i=Math.max(r,e.minSize),a=Math.max(o,e.minSize);w.value=r/(t-r)/(i/(t-i)),k.value=o/(n-o)/(a/(n-a)),g.value=i+C<t?`${i}px`:"",v.value=a+C<n?`${a}px`:""};return(0,r.YP)((()=>e.noresize),(e=>{e?(null==l||l(),null==c||c()):(({stop:l}=(0,a.yU7)(p,O)),c=(0,a.ORN)("resize",O))}),{immediate:!0}),(0,r.YP)((()=>[e.maxHeight,e.height]),(()=>{e.native||(0,r.Y3)((()=>{var e;O(),d.value&&(null==(e=y.value)||e.handleScroll(d.value))}))})),(0,r.JJ)(f,(0,o.qj)({scrollbarElement:u,wrapElement:d})),(0,r.bv)((()=>{e.native||(0,r.Y3)((()=>O()))})),(0,r.ic)((()=>O())),{ns:n,scrollbar$:u,wrap$:d,resize$:p,barRef:y,moveX:b,moveY:_,ratioX:k,ratioY:w,sizeWidth:v,sizeHeight:g,style:x,update:O,handleScroll:T,scrollTo:E,setScrollTop:R,setScrollLeft:P}}});function E(e,t,n,o,a,s){const l=(0,r.up)("bar");return(0,r.wg)(),(0,r.iD)("div",{ref:"scrollbar$",class:(0,i.C_)(e.ns.b())},[(0,r._)("div",{ref:"wrap$",class:(0,i.C_)([e.wrapClass,e.ns.e("wrap"),{[e.ns.em("wrap","hidden-default")]:!e.native}]),style:(0,i.j5)(e.style),onScroll:t[0]||(t[0]=(...t)=>e.handleScroll&&e.handleScroll(...t))},[((0,r.wg)(),(0,r.j4)((0,r.LL)(e.tag),{ref:"resize$",class:(0,i.C_)([e.ns.e("view"),e.viewClass]),style:(0,i.j5)(e.viewStyle)},{default:(0,r.w5)((()=>[(0,r.WI)(e.$slots,"default")])),_:3},8,["class","style"]))],38),e.native?(0,r.kq)("v-if",!0):((0,r.wg)(),(0,r.j4)(l,{key:0,ref:"barRef",height:e.sizeHeight,width:e.sizeWidth,always:e.always,"ratio-x":e.ratioX,"ratio-y":e.ratioY},null,8,["height","width","always","ratio-x","ratio-y"]))],2)}var R=(0,p.Z)(T,[["render",E],["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]),P=n(9015);const O=(0,P.nz)(R)},6890:function(e,t,n){"use strict";n.d(t,{r:function(){return o},s:function(){return r}});const r={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},o=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`})},438:function(e,t,n){"use strict";n.d(t,{BT:function(){return se},LC:function(){return le},km:function(){return ae}});var r=n(3396),o=n(4870),i=n(7139),a=n(9242),s=n(5728),l=n(9805),c=n(6739),u=n(9971),d=n(1015),p=n(4397),f=n(9306),h=n(2262);const m="ElSelectGroup",v="ElSelect",g=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d");function y(e,t){const n=(0,r.f3)(v),i=(0,r.f3)(m,{disabled:!1}),a=(0,r.Fl)((()=>"[object object]"===Object.prototype.toString.call(e.value).toLowerCase())),s=(0,r.Fl)((()=>n.props.multiple?f(n.props.modelValue,e.value):y(e.value,n.props.modelValue))),l=(0,r.Fl)((()=>{if(n.props.multiple){const e=n.props.modelValue||[];return!s.value&&e.length>=n.props.multipleLimit&&n.props.multipleLimit>0}return!1})),c=(0,r.Fl)((()=>e.label||(a.value?"":e.value))),u=(0,r.Fl)((()=>e.value||e.label||"")),d=(0,r.Fl)((()=>e.disabled||t.groupDisabled||l.value)),p=(0,r.FN)(),f=(e=[],t)=>{if(a.value){const r=n.props.valueKey;return e&&e.some((e=>(0,h.Z)(e,r)===(0,h.Z)(t,r)))}return e&&e.includes(t)},y=(e,t)=>{if(a.value){const{valueKey:r}=n.props;return(0,h.Z)(e,r)===(0,h.Z)(t,r)}return e===t},b=()=>{e.disabled||i.disabled||(n.hoverIndex=n.optionsArray.indexOf(p.proxy))};(0,r.YP)((()=>c.value),(()=>{e.created||n.props.remote||n.setSelected()})),(0,r.YP)((()=>e.value),((t,r)=>{const{remote:o,valueKey:i}=n.props;if(!e.created&&!o){if(i&&"object"===typeof t&&"object"===typeof r&&t[i]===r[i])return;n.setSelected()}})),(0,r.YP)((()=>i.disabled),(()=>{t.groupDisabled=i.disabled}),{immediate:!0});const{queryChange:_}=(0,o.IU)(n);return(0,r.YP)(_,(r=>{const{query:i}=(0,o.SU)(r),a=new RegExp(g(i),"i");t.visible=a.test(c.value)||e.created,t.visible||n.filteredOptionsCount--})),{select:n,currentLabel:c,currentValue:u,itemSelected:s,isDisabled:d,hoverItem:b}}var b=n(5989),_=n(6734);const w=(0,r.aZ)({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},setup(e){const t=(0,_.s)("select"),n=(0,o.qj)({index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}),{currentLabel:i,itemSelected:a,isDisabled:s,select:l,hoverItem:c}=y(e,n),{visible:u,hover:d}=(0,o.BK)(n),p=(0,r.FN)().proxy,f=p.value;function h(){!0!==e.disabled&&!0!==n.groupDisabled&&l.handleOptionSelect(p,!0)}return l.onOptionCreate(p),(0,r.Jd)((()=>{const{selected:e}=l,t=l.props.multiple?e:[e],n=t.some((e=>e.value===p.value));l.cachedOptions.get(f)!==p||n||(0,r.Y3)((()=>{l.cachedOptions.delete(f)})),l.onOptionDestroy(f,p)})),{ns:t,currentLabel:i,itemSelected:a,isDisabled:s,select:l,hoverItem:c,visible:u,hover:d,selectOptionClick:h,states:n}}});function k(e,t,n,o,s,l){return(0,r.wy)(((0,r.wg)(),(0,r.iD)("li",{class:(0,i.C_)([e.ns.be("dropdown","item"),e.ns.is("disabled",e.isDisabled),{selected:e.itemSelected,hover:e.hover}]),onMouseenter:t[0]||(t[0]=(...t)=>e.hoverItem&&e.hoverItem(...t)),onClick:t[1]||(t[1]=(0,a.iM)(((...t)=>e.selectOptionClick&&e.selectOptionClick(...t)),["stop"]))},[(0,r.WI)(e.$slots,"default",{},(()=>[(0,r._)("span",null,(0,i.zw)(e.currentLabel),1)]))],34)),[[a.F8,e.visible]])}var S=(0,b.Z)(w,[["render",k],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option.vue"]]),C=n(4770);const x=(0,r.aZ)({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=(0,r.f3)(v),t=(0,_.s)("select"),n=(0,r.Fl)((()=>e.props.popperClass)),i=(0,r.Fl)((()=>e.props.multiple)),a=(0,r.Fl)((()=>e.props.fitInputWidth)),s=(0,o.iH)("");function l(){var t;s.value=`${null==(t=e.selectWrapper)?void 0:t.getBoundingClientRect().width}px`}return(0,r.bv)((()=>{l(),(0,C.k)(e.selectWrapper,l)})),(0,r.Jd)((()=>{(0,C.S)(e.selectWrapper,l)})),{ns:t,minWidth:s,popperClass:n,isMultiple:i,isFitInputWidth:a}}});function I(e,t,n,o,a,s){return(0,r.wg)(),(0,r.iD)("div",{class:(0,i.C_)([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:(0,i.j5)({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[(0,r.WI)(e.$slots,"default")],6)}var T=(0,b.Z)(x,[["render",I],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select-dropdown.vue"]]),E=n(7131),R=n(4146),P=n(4419),O=n(2137),A=n(563),D=n(6174),N=n(4620),M=n(7609);const L=e=>M.V[e||"default"];var F=n(6835),U=n(9304),j=n(9619),V=n(3356);function H(e){const{t:t}=(0,O.bU)();return(0,o.qj)({options:new Map,cachedOptions:new Map,createdLabel:null,createdSelected:!1,selected:e.multiple?[]:{},inputLength:20,inputWidth:0,initialInputHeight:0,optionsCount:0,filteredOptionsCount:0,visible:!1,softFocus:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,cachedPlaceHolder:"",currentPlaceholder:t("el.select.placeholder"),menuVisibleOnFocus:!1,isOnComposition:!1,isSilentBlur:!1,prefixWidth:11,tagInMultiLine:!1})}const B=(e,t,n)=>{const{t:a}=(0,O.bU)(),s=(0,_.s)("select"),l=(0,o.iH)(null),c=(0,o.iH)(null),u=(0,o.iH)(null),d=(0,o.iH)(null),p=(0,o.iH)(null),f=(0,o.iH)(null),m=(0,o.iH)(-1),v=(0,o.XI)({query:""}),g=(0,o.XI)(""),y=(0,r.f3)(A.H,{}),b=(0,r.f3)(A.K,{}),w=(0,r.Fl)((()=>!e.filterable||e.multiple||!t.visible)),k=(0,r.Fl)((()=>e.disabled||y.disabled)),S=(0,r.Fl)((()=>{const n=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:void 0!==e.modelValue&&null!==e.modelValue&&""!==e.modelValue,r=e.clearable&&!k.value&&t.inputHovering&&n;return r})),C=(0,r.Fl)((()=>e.remote&&e.filterable?"":e.suffixIcon)),x=(0,r.Fl)((()=>s.is("reverse",C.value&&t.visible))),I=(0,r.Fl)((()=>e.remote?300:0)),T=(0,r.Fl)((()=>e.loading?e.loadingText||a("el.select.loading"):(!e.remote||""!==t.query||0!==t.options.size)&&(e.filterable&&t.query&&t.options.size>0&&0===t.filteredOptionsCount?e.noMatchText||a("el.select.noMatch"):0===t.options.size?e.noDataText||a("el.select.noData"):null))),M=(0,r.Fl)((()=>Array.from(t.options.values()))),H=(0,r.Fl)((()=>Array.from(t.cachedOptions.values()))),B=(0,r.Fl)((()=>{const n=M.value.filter((e=>!e.created)).some((e=>e.currentLabel===t.query));return e.filterable&&e.allowCreate&&""!==t.query&&!n})),$=(0,D.tH)(),z=(0,r.Fl)((()=>["small"].includes($.value)?"small":"default")),W=(0,r.Fl)({get(){return t.visible&&!1!==T.value},set(e){t.visible=e}});(0,r.YP)((()=>k.value),(()=>{(0,r.Y3)((()=>{q()}))})),(0,r.YP)((()=>e.placeholder),(e=>{t.cachedPlaceHolder=t.currentPlaceholder=e})),(0,r.YP)((()=>e.modelValue),((n,r)=>{var o;e.multiple&&(q(),n&&n.length>0||c.value&&""!==t.query?t.currentPlaceholder="":t.currentPlaceholder=t.cachedPlaceHolder,e.filterable&&!e.reserveKeyword&&(t.query="",Z(t.query))),J(),e.filterable&&!e.multiple&&(t.inputLength=20),(0,E.Z)(n,r)||null==(o=b.validate)||o.call(b,"change").catch((e=>(0,N.N)(e)))}),{flush:"post",deep:!0}),(0,r.YP)((()=>t.visible),(i=>{var a,s,l;i?(null==(s=null==(a=u.value)?void 0:a.updatePopper)||s.call(a),e.filterable&&(t.filteredOptionsCount=t.optionsCount,t.query=e.remote?"":t.selectedLabel,e.multiple?null==(l=c.value)||l.focus():t.selectedLabel&&(t.currentPlaceholder=`${t.selectedLabel}`,t.selectedLabel=""),Z(t.query),e.multiple||e.remote||(v.value.query="",(0,o.oR)(v),(0,o.oR)(g)))):(c.value&&c.value.blur(),t.query="",t.previousQuery=null,t.selectedLabel="",t.inputLength=20,t.menuVisibleOnFocus=!1,X(),(0,r.Y3)((()=>{c.value&&""===c.value.value&&0===t.selected.length&&(t.currentPlaceholder=t.cachedPlaceHolder)})),e.multiple||(t.selected&&(e.filterable&&e.allowCreate&&t.createdSelected&&t.createdLabel?t.selectedLabel=t.createdLabel:t.selectedLabel=t.selected.currentLabel,e.filterable&&(t.query=t.selectedLabel)),e.filterable&&(t.currentPlaceholder=t.cachedPlaceHolder))),n.emit("visible-change",i)})),(0,r.YP)((()=>t.options.entries()),(()=>{var n,r,o;if(!P.C5)return;null==(r=null==(n=u.value)?void 0:n.updatePopper)||r.call(n),e.multiple&&q();const i=(null==(o=p.value)?void 0:o.querySelectorAll("input"))||[];Array.from(i).includes(document.activeElement)||J(),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&K()}),{flush:"post"}),(0,r.YP)((()=>t.hoverIndex),(e=>{"number"===typeof e&&e>-1&&(m.value=M.value[e]||{}),M.value.forEach((e=>{e.hover=m.value===e}))}));const q=()=>{e.collapseTags&&!e.filterable||(0,r.Y3)((()=>{var e,n;if(!l.value)return;const r=l.value.$el.querySelector("input"),o=d.value,i=t.initialInputHeight||L($.value||y.size);r.style.height=0===t.selected.length?`${i}px`:`${Math.max(o?o.clientHeight+(o.clientHeight>i?6:0):0,i)}px`,t.tagInMultiLine=Number.parseFloat(r.style.height)>=i,t.visible&&!1!==T.value&&(null==(n=null==(e=u.value)?void 0:e.updatePopper)||n.call(e))}))},Z=n=>{t.previousQuery===n||t.isOnComposition||(null!==t.previousQuery||"function"!==typeof e.filterMethod&&"function"!==typeof e.remoteMethod?(t.previousQuery=n,(0,r.Y3)((()=>{var e,n;t.visible&&(null==(n=null==(e=u.value)?void 0:e.updatePopper)||n.call(e))})),t.hoverIndex=-1,e.multiple&&e.filterable&&(0,r.Y3)((()=>{const n=15*c.value.value.length+20;t.inputLength=e.collapseTags?Math.min(50,n):n,Y(),q()})),e.remote&&"function"===typeof e.remoteMethod?(t.hoverIndex=-1,e.remoteMethod(n)):"function"===typeof e.filterMethod?(e.filterMethod(n),(0,o.oR)(g)):(t.filteredOptionsCount=t.optionsCount,v.value.query=n,(0,o.oR)(v),(0,o.oR)(g)),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&K()):t.previousQuery=n)},Y=()=>{""!==t.currentPlaceholder&&(t.currentPlaceholder=c.value.value?"":t.cachedPlaceHolder)},K=()=>{const e=M.value.filter((e=>e.visible&&!e.disabled&&!e.states.groupDisabled)),n=e.find((e=>e.created)),r=e[0];t.hoverIndex=ce(M.value,n||r)},J=()=>{var n;if(!e.multiple){const r=G(e.modelValue);return(null==(n=r.props)?void 0:n.created)?(t.createdLabel=r.props.value,t.createdSelected=!0):t.createdSelected=!1,t.selectedLabel=r.currentLabel,t.selected=r,void(e.filterable&&(t.query=t.selectedLabel))}t.selectedLabel="";const o=[];Array.isArray(e.modelValue)&&e.modelValue.forEach((e=>{o.push(G(e))})),t.selected=o,(0,r.Y3)((()=>{q()}))},G=n=>{let r;const o="object"===(0,i.W7)(n).toLowerCase(),a="null"===(0,i.W7)(n).toLowerCase(),s="undefined"===(0,i.W7)(n).toLowerCase();for(let i=t.cachedOptions.size-1;i>=0;i--){const t=H.value[i],a=o?(0,h.Z)(t,e.valueKey)===(0,h.Z)(n,e.valueKey):t.value===n;if(a){r={value:n,currentLabel:t.currentLabel,isDisabled:t.isDisabled};break}}if(r)return r;const l=o?n.label:a||s?"":n,c={value:n,currentLabel:l};return e.multiple&&(c.hitState=!1),c},X=()=>{setTimeout((()=>{const n=e.valueKey;e.multiple?t.selected.length>0?t.hoverIndex=Math.min.apply(null,t.selected.map((e=>M.value.findIndex((t=>(0,h.Z)(t,n)===(0,h.Z)(e,n)))))):t.hoverIndex=-1:t.hoverIndex=M.value.findIndex((e=>xe(e)===xe(t.selected)))}),300)},Q=()=>{var t,n;ee(),null==(n=null==(t=u.value)?void 0:t.updatePopper)||n.call(t),e.multiple&&!e.filterable&&q()},ee=()=>{var e;t.inputWidth=null==(e=l.value)?void 0:e.$el.getBoundingClientRect().width},te=()=>{e.filterable&&t.query!==t.selectedLabel&&(t.query=t.selectedLabel,Z(t.query))},ne=(0,R.Z)((()=>{te()}),I.value),re=(0,R.Z)((e=>{Z(e.target.value)}),I.value),oe=t=>{(0,E.Z)(e.modelValue,t)||n.emit(F.O7,t)},ie=r=>{if(r.target.value.length<=0&&!me()){const t=e.modelValue.slice();t.pop(),n.emit(F.f_,t),oe(t)}1===r.target.value.length&&0===e.modelValue.length&&(t.currentPlaceholder=t.cachedPlaceHolder)},ae=(r,o)=>{const i=t.selected.indexOf(o);if(i>-1&&!k.value){const t=e.modelValue.slice();t.splice(i,1),n.emit(F.f_,t),oe(t),n.emit("remove-tag",o.value)}r.stopPropagation()},se=r=>{r.stopPropagation();const o=e.multiple?[]:"";if("string"!==typeof o)for(const e of t.selected)e.isDisabled&&o.push(e.value);n.emit(F.f_,o),oe(o),t.visible=!1,n.emit("clear")},le=(o,i)=>{var a;if(e.multiple){const r=(e.modelValue||[]).slice(),i=ce(r,o.value);i>-1?r.splice(i,1):(e.multipleLimit<=0||r.length<e.multipleLimit)&&r.push(o.value),n.emit(F.f_,r),oe(r),o.created&&(t.query="",Z(""),t.inputLength=20),e.filterable&&(null==(a=c.value)||a.focus())}else n.emit(F.f_,o.value),oe(o.value),t.visible=!1;t.isSilentBlur=i,ue(),t.visible||(0,r.Y3)((()=>{de(o)}))},ce=(t=[],n)=>{if(!(0,i.Kn)(n))return t.indexOf(n);const r=e.valueKey;let o=-1;return t.some(((e,t)=>(0,h.Z)(e,r)===(0,h.Z)(n,r)&&(o=t,!0))),o},ue=()=>{t.softFocus=!0;const e=c.value||l.value;e&&(null==e||e.focus())},de=e=>{var t,n,r,o,i;const a=Array.isArray(e)?e[0]:e;let l=null;if(null==a?void 0:a.value){const e=M.value.filter((e=>e.value===a.value));e.length>0&&(l=e[0].$el)}if(u.value&&l){const e=null==(o=null==(r=null==(n=null==(t=u.value)?void 0:t.popperRef)?void 0:n.contentRef)?void 0:r.querySelector)?void 0:o.call(r,`.${s.be("dropdown","wrap")}`);e&&(0,U.zT)(e,l)}null==(i=f.value)||i.handleScroll()},pe=e=>{t.optionsCount++,t.filteredOptionsCount++,t.options.set(e.value,e),t.cachedOptions.set(e.value,e)},fe=(e,n)=>{t.options.get(e)===n&&(t.optionsCount--,t.filteredOptionsCount--,t.options.delete(e))},he=e=>{e.code!==j.n.backspace&&me(!1),t.inputLength=15*c.value.value.length+20,q()},me=e=>{if(!Array.isArray(t.selected))return;const n=t.selected[t.selected.length-1];return n?!0===e||!1===e?(n.hitState=e,e):(n.hitState=!n.hitState,n.hitState):void 0},ve=e=>{const n=e.target.value;if("compositionend"===e.type)t.isOnComposition=!1,(0,r.Y3)((()=>Z(n)));else{const e=n[n.length-1]||"";t.isOnComposition=!(0,V.w)(e)}},ge=()=>{(0,r.Y3)((()=>de(t.selected)))},ye=r=>{t.softFocus?t.softFocus=!1:((e.automaticDropdown||e.filterable)&&(e.filterable&&!t.visible&&(t.menuVisibleOnFocus=!0),t.visible=!0),n.emit("focus",r))},be=()=>{var e;t.visible=!1,null==(e=l.value)||e.blur()},_e=e=>{(0,r.Y3)((()=>{t.isSilentBlur?t.isSilentBlur=!1:n.emit("blur",e)})),t.softFocus=!1},we=e=>{se(e)},ke=()=>{t.visible=!1},Se=()=>{var n;e.automaticDropdown||k.value||(t.menuVisibleOnFocus?t.menuVisibleOnFocus=!1:t.visible=!t.visible,t.visible&&(null==(n=c.value||l.value)||n.focus()))},Ce=()=>{t.visible?M.value[t.hoverIndex]&&le(M.value[t.hoverIndex],void 0):Se()},xe=t=>(0,i.Kn)(t.value)?(0,h.Z)(t.value,e.valueKey):t.value,Ie=(0,r.Fl)((()=>M.value.filter((e=>e.visible)).every((e=>e.disabled)))),Te=e=>{if(t.visible){if(0!==t.options.size&&0!==t.filteredOptionsCount&&!t.isOnComposition&&!Ie.value){"next"===e?(t.hoverIndex++,t.hoverIndex===t.options.size&&(t.hoverIndex=0)):"prev"===e&&(t.hoverIndex--,t.hoverIndex<0&&(t.hoverIndex=t.options.size-1));const n=M.value[t.hoverIndex];!0!==n.disabled&&!0!==n.states.groupDisabled&&n.visible||Te(e),(0,r.Y3)((()=>de(m.value)))}}else t.visible=!0};return{optionsArray:M,selectSize:$,handleResize:Q,debouncedOnInputChange:ne,debouncedQueryChange:re,deletePrevTag:ie,deleteTag:ae,deleteSelected:se,handleOptionSelect:le,scrollToOption:de,readonly:w,resetInputHeight:q,showClose:S,iconComponent:C,iconReverse:x,showNewOption:B,collapseTagSize:z,setSelected:J,managePlaceholder:Y,selectDisabled:k,emptyText:T,toggleLastOptionHitState:me,resetInputState:he,handleComposition:ve,onOptionCreate:pe,onOptionDestroy:fe,handleMenuEnter:ge,handleFocus:ye,blur:be,handleBlur:_e,handleClearClick:we,handleClose:ke,toggleMenu:Se,selectOption:Ce,getValueKey:xe,navigateOptions:Te,dropMenuVisible:W,queryChange:v,groupQueryChange:g,reference:l,input:c,tooltipRef:u,tags:d,selectWrapper:p,scrollbar:f}};var $=n(8731),z=n(4961),W=n(6954),q=n(5928);const Z=e=>({focus:()=>{var t,n;null==(n=null==(t=e.value)?void 0:t.focus)||n.call(t)}});var Y=n(112);const K="ElSelect",J=(0,r.aZ)({name:K,componentName:K,components:{ElInput:s.EZ,ElSelectMenu:T,ElOption:S,ElTag:u.Ks,ElScrollbar:c.Mr,ElTooltip:l.Q0,ElIcon:d.gn},directives:{ClickOutside:$.Z},props:{name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:{type:String,validator:z.P},effect:{type:String,default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},popperAppendToBody:{type:Boolean,default:void 0},teleported:W.sp.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:[String,Object],default:p.Z},fitInputWidth:{type:Boolean,default:!1},suffixIcon:{type:[String,Object],default:f.Z},tagType:{...q.F.type,default:"info"}},emits:[F.f_,F.O7,"remove-tag","clear","visible-change","focus","blur"],setup(e,t){const n=(0,_.s)("select"),i=(0,_.s)("input"),{t:a}=(0,O.bU)(),s=H(e),{optionsArray:l,selectSize:c,readonly:u,handleResize:d,collapseTagSize:p,debouncedOnInputChange:f,debouncedQueryChange:h,deletePrevTag:m,deleteTag:g,deleteSelected:y,handleOptionSelect:b,scrollToOption:w,setSelected:k,resetInputHeight:S,managePlaceholder:x,showClose:I,selectDisabled:T,iconComponent:E,iconReverse:R,showNewOption:P,emptyText:A,toggleLastOptionHitState:D,resetInputState:N,handleComposition:M,onOptionCreate:U,onOptionDestroy:j,handleMenuEnter:V,handleFocus:$,blur:z,handleBlur:W,handleClearClick:q,handleClose:J,toggleMenu:G,selectOption:X,getValueKey:Q,navigateOptions:ee,dropMenuVisible:te,reference:ne,input:re,tooltipRef:oe,tags:ie,selectWrapper:ae,scrollbar:se,queryChange:le,groupQueryChange:ce}=B(e,s,t),{focus:ue}=Z(ne),{inputWidth:de,selected:pe,inputLength:fe,filteredOptionsCount:he,visible:me,softFocus:ve,selectedLabel:ge,hoverIndex:ye,query:be,inputHovering:_e,currentPlaceholder:we,menuVisibleOnFocus:ke,isOnComposition:Se,isSilentBlur:Ce,options:xe,cachedOptions:Ie,optionsCount:Te,prefixWidth:Ee,tagInMultiLine:Re}=(0,o.BK)(s),Pe=(0,r.Fl)((()=>{const t=[n.b()],r=(0,o.SU)(c);return r&&t.push(n.m(r)),e.disabled&&t.push(n.m("disabled")),t})),Oe=(0,r.Fl)((()=>({maxWidth:(0,o.SU)(de)-32+"px",width:"100%"})));(0,r.JJ)(v,(0,o.qj)({props:e,options:xe,optionsArray:l,cachedOptions:Ie,optionsCount:Te,filteredOptionsCount:he,hoverIndex:ye,handleOptionSelect:b,onOptionCreate:U,onOptionDestroy:j,selectWrapper:ae,selected:pe,setSelected:k,queryChange:le,groupQueryChange:ce})),(0,r.bv)((()=>{if(s.cachedPlaceHolder=we.value=e.placeholder||a("el.select.placeholder"),e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(we.value=""),(0,C.k)(ae.value,d),ne.value&&ne.value.$el){const e=ne.value.input;s.initialInputHeight=e.getBoundingClientRect().height||L(c.value)}e.remote&&e.multiple&&S(),(0,r.Y3)((()=>{const e=ne.value&&ne.value.$el;if(e&&(de.value=e.getBoundingClientRect().width,t.slots.prefix)){const t=e.querySelector(`.${i.e("prefix")}`);Ee.value=Math.max(t.getBoundingClientRect().width+5,30)}})),k()})),(0,r.Jd)((()=>{(0,C.S)(ae.value,d)})),e.multiple&&!Array.isArray(e.modelValue)&&t.emit(F.f_,[]),!e.multiple&&Array.isArray(e.modelValue)&&t.emit(F.f_,"");const Ae=(0,r.Fl)((()=>{var e,t;return null==(t=null==(e=oe.value)?void 0:e.popperRef)?void 0:t.contentRef})),{compatTeleported:De}=(0,Y.Q)(K,"popperAppendToBody");return{tagInMultiLine:Re,prefixWidth:Ee,selectSize:c,readonly:u,handleResize:d,collapseTagSize:p,debouncedOnInputChange:f,debouncedQueryChange:h,deletePrevTag:m,deleteTag:g,deleteSelected:y,handleOptionSelect:b,scrollToOption:w,inputWidth:de,selected:pe,inputLength:fe,filteredOptionsCount:he,visible:me,softFocus:ve,selectedLabel:ge,hoverIndex:ye,query:be,inputHovering:_e,currentPlaceholder:we,menuVisibleOnFocus:ke,isOnComposition:Se,isSilentBlur:Ce,options:xe,resetInputHeight:S,managePlaceholder:x,showClose:I,selectDisabled:T,iconComponent:E,iconReverse:R,showNewOption:P,emptyText:A,toggleLastOptionHitState:D,resetInputState:N,handleComposition:M,handleMenuEnter:V,handleFocus:$,blur:z,handleBlur:W,handleClearClick:q,handleClose:J,toggleMenu:G,selectOption:X,getValueKey:Q,navigateOptions:ee,dropMenuVisible:te,focus:ue,reference:ne,input:re,tooltipRef:oe,popperPaneRef:Ae,tags:ie,selectWrapper:ae,scrollbar:se,wrapperKls:Pe,selectTagsStyle:Oe,compatTeleported:De,nsSelect:n}}}),G={class:"select-trigger"},X=["disabled","autocomplete"],Q={style:{height:"100%",display:"flex","justify-content":"center","align-items":"center"}};function ee(e,t,n,o,s,l){const c=(0,r.up)("el-tag"),u=(0,r.up)("el-tooltip"),d=(0,r.up)("el-icon"),p=(0,r.up)("el-input"),f=(0,r.up)("el-option"),h=(0,r.up)("el-scrollbar"),m=(0,r.up)("el-select-menu"),v=(0,r.Q2)("click-outside");return(0,r.wy)(((0,r.wg)(),(0,r.iD)("div",{ref:"selectWrapper",class:(0,i.C_)(e.wrapperKls),onClick:t[24]||(t[24]=(0,a.iM)(((...t)=>e.toggleMenu&&e.toggleMenu(...t)),["stop"]))},[(0,r.Wm)(u,{ref:"tooltipRef",visible:e.dropMenuVisible,"onUpdate:visible":t[23]||(t[23]=t=>e.dropMenuVisible=t),placement:"bottom-start",teleported:e.compatTeleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"fallback-placements":["bottom-start","top-start","right","left"],effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,onShow:e.handleMenuEnter},{default:(0,r.w5)((()=>[(0,r._)("div",G,[e.multiple?((0,r.wg)(),(0,r.iD)("div",{key:0,ref:"tags",class:(0,i.C_)(e.nsSelect.e("tags")),style:(0,i.j5)(e.selectTagsStyle)},[e.collapseTags&&e.selected.length?((0,r.wg)(),(0,r.iD)("span",{key:0,class:(0,i.C_)([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[(0,r.Wm)(c,{closable:!e.selectDisabled&&!e.selected[0].isDisabled,size:e.collapseTagSize,hit:e.selected[0].hitState,type:e.tagType,"disable-transitions":"",onClose:t[0]||(t[0]=t=>e.deleteTag(t,e.selected[0]))},{default:(0,r.w5)((()=>[(0,r._)("span",{class:(0,i.C_)(e.nsSelect.e("tags-text")),style:(0,i.j5)({maxWidth:e.inputWidth-123+"px"})},(0,i.zw)(e.selected[0].currentLabel),7)])),_:1},8,["closable","size","hit","type"]),e.selected.length>1?((0,r.wg)(),(0,r.j4)(c,{key:0,closable:!1,size:e.collapseTagSize,type:e.tagType,"disable-transitions":""},{default:(0,r.w5)((()=>[e.collapseTagsTooltip?((0,r.wg)(),(0,r.j4)(u,{key:0,disabled:e.dropMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:!1},{default:(0,r.w5)((()=>[(0,r._)("span",{class:(0,i.C_)(e.nsSelect.e("tags-text"))},"+ "+(0,i.zw)(e.selected.length-1),3)])),content:(0,r.w5)((()=>[(0,r._)("div",{class:(0,i.C_)(e.nsSelect.e("collapse-tags"))},[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.selected,((t,n)=>((0,r.wg)(),(0,r.iD)("div",{key:n,class:(0,i.C_)(e.nsSelect.e("collapse-tag"))},[((0,r.wg)(),(0,r.j4)(c,{key:e.getValueKey(t),class:"in-tooltip",closable:!e.selectDisabled&&!t.isDisabled,size:e.collapseTagSize,hit:t.hitState,type:e.tagType,"disable-transitions":"",style:{margin:"2px"},onClose:n=>e.deleteTag(n,t)},{default:(0,r.w5)((()=>[(0,r._)("span",{class:(0,i.C_)(e.nsSelect.e("tags-text")),style:(0,i.j5)({maxWidth:e.inputWidth-75+"px"})},(0,i.zw)(t.currentLabel),7)])),_:2},1032,["closable","size","hit","type","onClose"]))],2)))),128))],2)])),_:1},8,["disabled","effect"])):((0,r.wg)(),(0,r.iD)("span",{key:1,class:(0,i.C_)(e.nsSelect.e("tags-text"))},"+ "+(0,i.zw)(e.selected.length-1),3))])),_:1},8,["size","type"])):(0,r.kq)("v-if",!0)],2)):(0,r.kq)("v-if",!0),(0,r.kq)(" <div> "),e.collapseTags?(0,r.kq)("v-if",!0):((0,r.wg)(),(0,r.j4)(a.uT,{key:1,onAfterLeave:e.resetInputHeight},{default:(0,r.w5)((()=>[(0,r._)("span",{class:(0,i.C_)([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.selected,(t=>((0,r.wg)(),(0,r.j4)(c,{key:e.getValueKey(t),closable:!e.selectDisabled&&!t.isDisabled,size:e.collapseTagSize,hit:t.hitState,type:e.tagType,"disable-transitions":"",onClose:n=>e.deleteTag(n,t)},{default:(0,r.w5)((()=>[(0,r._)("span",{class:(0,i.C_)(e.nsSelect.e("tags-text")),style:(0,i.j5)({maxWidth:e.inputWidth-75+"px"})},(0,i.zw)(t.currentLabel),7)])),_:2},1032,["closable","size","hit","type","onClose"])))),128))],2)])),_:1},8,["onAfterLeave"])),(0,r.kq)(" </div> "),e.filterable?(0,r.wy)(((0,r.wg)(),(0,r.iD)("input",{key:2,ref:"input","onUpdate:modelValue":t[1]||(t[1]=t=>e.query=t),type:"text",class:(0,i.C_)([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:(0,i.j5)({marginLeft:e.prefixWidth&&!e.selected.length||e.tagInMultiLine?`${e.prefixWidth}px`:"",flexGrow:1,width:e.inputLength/(e.inputWidth-32)+"%",maxWidth:e.inputWidth-42+"px"}),onFocus:t[2]||(t[2]=(...t)=>e.handleFocus&&e.handleFocus(...t)),onBlur:t[3]||(t[3]=(...t)=>e.handleBlur&&e.handleBlur(...t)),onKeyup:t[4]||(t[4]=(...t)=>e.managePlaceholder&&e.managePlaceholder(...t)),onKeydown:[t[5]||(t[5]=(...t)=>e.resetInputState&&e.resetInputState(...t)),t[6]||(t[6]=(0,a.D2)((0,a.iM)((t=>e.navigateOptions("next")),["prevent"]),["down"])),t[7]||(t[7]=(0,a.D2)((0,a.iM)((t=>e.navigateOptions("prev")),["prevent"]),["up"])),t[8]||(t[8]=(0,a.D2)((0,a.iM)((t=>e.visible=!1),["stop","prevent"]),["esc"])),t[9]||(t[9]=(0,a.D2)((0,a.iM)(((...t)=>e.selectOption&&e.selectOption(...t)),["stop","prevent"]),["enter"])),t[10]||(t[10]=(0,a.D2)(((...t)=>e.deletePrevTag&&e.deletePrevTag(...t)),["delete"])),t[11]||(t[11]=(0,a.D2)((t=>e.visible=!1),["tab"]))],onCompositionstart:t[12]||(t[12]=(...t)=>e.handleComposition&&e.handleComposition(...t)),onCompositionupdate:t[13]||(t[13]=(...t)=>e.handleComposition&&e.handleComposition(...t)),onCompositionend:t[14]||(t[14]=(...t)=>e.handleComposition&&e.handleComposition(...t)),onInput:t[15]||(t[15]=(...t)=>e.debouncedQueryChange&&e.debouncedQueryChange(...t))},null,46,X)),[[a.nr,e.query]]):(0,r.kq)("v-if",!0)],6)):(0,r.kq)("v-if",!0),(0,r.Wm)(p,{id:e.id,ref:"reference",modelValue:e.selectedLabel,"onUpdate:modelValue":t[16]||(t[16]=t=>e.selectedLabel=t),type:"text",placeholder:e.currentPlaceholder,name:e.name,autocomplete:e.autocomplete,size:e.selectSize,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1,class:(0,i.C_)([e.nsSelect.is("focus",e.visible)]),tabindex:e.multiple&&e.filterable?-1:void 0,onFocus:e.handleFocus,onBlur:e.handleBlur,onInput:e.debouncedOnInputChange,onPaste:e.debouncedOnInputChange,onCompositionstart:e.handleComposition,onCompositionupdate:e.handleComposition,onCompositionend:e.handleComposition,onKeydown:[t[17]||(t[17]=(0,a.D2)((0,a.iM)((t=>e.navigateOptions("next")),["stop","prevent"]),["down"])),t[18]||(t[18]=(0,a.D2)((0,a.iM)((t=>e.navigateOptions("prev")),["stop","prevent"]),["up"])),(0,a.D2)((0,a.iM)(e.selectOption,["stop","prevent"]),["enter"]),t[19]||(t[19]=(0,a.D2)((0,a.iM)((t=>e.visible=!1),["stop","prevent"]),["esc"])),t[20]||(t[20]=(0,a.D2)((t=>e.visible=!1),["tab"]))],onMouseenter:t[21]||(t[21]=t=>e.inputHovering=!0),onMouseleave:t[22]||(t[22]=t=>e.inputHovering=!1)},(0,r.Nv)({suffix:(0,r.w5)((()=>[e.iconComponent&&!e.showClose?((0,r.wg)(),(0,r.j4)(d,{key:0,class:(0,i.C_)([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:(0,r.w5)((()=>[((0,r.wg)(),(0,r.j4)((0,r.LL)(e.iconComponent)))])),_:1},8,["class"])):(0,r.kq)("v-if",!0),e.showClose&&e.clearIcon?((0,r.wg)(),(0,r.j4)(d,{key:1,class:(0,i.C_)([e.nsSelect.e("caret"),e.nsSelect.e("icon")]),onClick:e.handleClearClick},{default:(0,r.w5)((()=>[((0,r.wg)(),(0,r.j4)((0,r.LL)(e.clearIcon)))])),_:1},8,["class","onClick"])):(0,r.kq)("v-if",!0)])),_:2},[e.$slots.prefix?{name:"prefix",fn:(0,r.w5)((()=>[(0,r._)("div",Q,[(0,r.WI)(e.$slots,"prefix")])]))}:void 0]),1032,["id","modelValue","placeholder","name","autocomplete","size","disabled","readonly","class","tabindex","onFocus","onBlur","onInput","onPaste","onCompositionstart","onCompositionupdate","onCompositionend","onKeydown"])])])),content:(0,r.w5)((()=>[(0,r.Wm)(m,null,{default:(0,r.w5)((()=>[(0,r.wy)((0,r.Wm)(h,{ref:"scrollbar",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:(0,i.C_)([e.nsSelect.is("empty",!e.allowCreate&&Boolean(e.query)&&0===e.filteredOptionsCount)])},{default:(0,r.w5)((()=>[e.showNewOption?((0,r.wg)(),(0,r.j4)(f,{key:0,value:e.query,created:!0},null,8,["value"])):(0,r.kq)("v-if",!0),(0,r.WI)(e.$slots,"default")])),_:3},8,["wrap-class","view-class","class"]),[[a.F8,e.options.size>0&&!e.loading]]),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&0===e.options.size)?((0,r.wg)(),(0,r.iD)(r.HY,{key:0},[e.$slots.empty?(0,r.WI)(e.$slots,"empty",{key:0}):((0,r.wg)(),(0,r.iD)("p",{key:1,class:(0,i.C_)(e.nsSelect.be("dropdown","empty"))},(0,i.zw)(e.emptyText),3))],2112)):(0,r.kq)("v-if",!0)])),_:3})])),_:3},8,["visible","teleported","popper-class","effect","transition","persistent","onShow"])],2)),[[v,e.handleClose,e.popperPaneRef]])}var te=(0,b.Z)(J,[["render",ee],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select.vue"]]);const ne=(0,r.aZ)({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:{type:Boolean,default:!1}},setup(e){const t=(0,_.s)("select"),n=(0,o.iH)(!0),i=(0,r.FN)(),a=(0,o.iH)([]);(0,r.JJ)(m,(0,o.qj)({...(0,o.BK)(e)}));const s=(0,r.f3)(v);(0,r.bv)((()=>{a.value=l(i.subTree)}));const l=e=>{const t=[];return Array.isArray(e.children)&&e.children.forEach((e=>{var n;e.type&&"ElOption"===e.type.name&&e.component&&e.component.proxy?t.push(e.component.proxy):(null==(n=e.children)?void 0:n.length)&&t.push(...l(e))})),t},{groupQueryChange:c}=(0,o.IU)(s);return(0,r.YP)(c,(()=>{n.value=a.value.some((e=>!0===e.visible))})),{visible:n,ns:t}}});function re(e,t,n,o,s,l){return(0,r.wy)(((0,r.wg)(),(0,r.iD)("ul",{class:(0,i.C_)(e.ns.be("group","wrap"))},[(0,r._)("li",{class:(0,i.C_)(e.ns.be("group","title"))},(0,i.zw)(e.label),3),(0,r._)("li",null,[(0,r._)("ul",{class:(0,i.C_)(e.ns.b("group"))},[(0,r.WI)(e.$slots,"default")],2)])],2)),[[a.F8,e.visible]])}var oe=(0,b.Z)(ne,[["render",re],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option-group.vue"]]),ie=n(9015);const ae=(0,ie.nz)(te,{Option:S,OptionGroup:oe}),se=(0,ie.dp)(S),le=(0,ie.dp)(oe)},9863:function(e,t,n){"use strict";n(1758),n(172),n(8217)},9971:function(e,t,n){"use strict";n.d(t,{Ks:function(){return g}});var r=n(3396),o=n(7139),i=n(4870),a=n(9242),s=n(1015),l=n(8382),c=n(5928),u=n(5989),d=n(6174),p=n(6734);const f={name:"ElTag"},h=(0,r.aZ)({...f,props:c.F,emits:c.g,setup(e,{emit:t}){const n=e,c=(0,d.tH)(),u=(0,p.s)("tag"),f=(0,r.Fl)((()=>{const{type:e,hit:t,effect:r,closable:o,round:i}=n;return[u.b(),u.is("closable",o),u.m(e),u.m(c.value),u.m(r),u.is("hit",t),u.is("round",i)]})),h=e=>{e.stopPropagation(),t("close",e)},m=e=>{t("click",e)};return(e,t)=>e.disableTransitions?((0,r.wg)(),(0,r.j4)(a.uT,{key:1,name:`${(0,i.SU)(u).namespace.value}-zoom-in-center`},{default:(0,r.w5)((()=>[(0,r._)("span",{class:(0,o.C_)((0,i.SU)(f)),style:(0,o.j5)({backgroundColor:e.color}),onClick:m},[(0,r._)("span",{class:(0,o.C_)((0,i.SU)(u).e("content"))},[(0,r.WI)(e.$slots,"default")],2),e.closable?((0,r.wg)(),(0,r.j4)((0,i.SU)(s.gn),{key:0,class:(0,o.C_)((0,i.SU)(u).e("close")),onClick:h},{default:(0,r.w5)((()=>[(0,r.Wm)((0,i.SU)(l.Z))])),_:1},8,["class"])):(0,r.kq)("v-if",!0)],6)])),_:3},8,["name"])):((0,r.wg)(),(0,r.iD)("span",{key:0,class:(0,o.C_)((0,i.SU)(f)),style:(0,o.j5)({backgroundColor:e.color}),onClick:m},[(0,r._)("span",{class:(0,o.C_)((0,i.SU)(u).e("content"))},[(0,r.WI)(e.$slots,"default")],2),e.closable?((0,r.wg)(),(0,r.j4)((0,i.SU)(s.gn),{key:0,class:(0,o.C_)((0,i.SU)(u).e("close")),onClick:h},{default:(0,r.w5)((()=>[(0,r.Wm)((0,i.SU)(l.Z))])),_:1},8,["class"])):(0,r.kq)("v-if",!0)],6))}});var m=(0,u.Z)(h,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]),v=n(9015);const g=(0,v.nz)(m)},5928:function(e,t,n){"use strict";n.d(t,{F:function(){return i},g:function(){return a}});var r=n(2864),o=n(7609);const i=(0,r.o8)({closable:Boolean,type:{type:String,values:["success","info","warning","danger",""],default:""},hit:Boolean,disableTransitions:Boolean,color:{type:String,default:""},size:{type:String,values:o.k,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),a={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent}},9805:function(e,t,n){"use strict";n.d(t,{Q0:function(){return _e}});var r=n(3396),o=n(4870),i=n(7139),a=n(5017),s=n(9242),l=n(6367),c=n(6954),u=n(4723),d=n(5989),p=n(7928),f=n(9370),h=n(4419);const m=(e,t)=>{const{placement:n,strategy:r,popperOptions:o}=e,i={placement:n,strategy:r,...o,modifiers:g(e)};return y(i,t),b(i,null==o?void 0:o.modifiers),i},v=e=>{if(h.C5)return(0,l.NXq)(e)};function g(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:r}=e;return[{name:"offset",options:{offset:[0,null!=t?t:12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:null!=r?r:[]}},{name:"computeStyles",options:{gpuAcceleration:n,adaptive:n}}]}function y(e,{arrowEl:t,arrowOffset:n}){e.modifiers.push({name:"arrow",options:{element:t,padding:null!=n?n:5}})}function b(e,t){t&&(e.modifiers=[...e.modifiers,...null!=t?t:[]])}var _=n(8292),w=n(7750),k=n(6734);const S={name:"ElPopperContent"},C=(0,r.aZ)({...S,props:f.P,emits:["mouseenter","mouseleave"],setup(e,{expose:t}){const n=e,{popperInstanceRef:a,contentRef:s,triggerRef:l}=(0,r.f3)(_.a,void 0),{nextZIndex:c}=(0,w.C)(),u=(0,k.s)("popper"),d=(0,o.iH)(),f=(0,o.iH)(),h=(0,o.iH)();(0,r.JJ)(_.G,{arrowRef:f,arrowOffset:h});const g=(0,o.iH)(n.zIndex||c()),y=(0,r.Fl)((()=>v(n.referenceEl)||(0,o.SU)(l))),b=(0,r.Fl)((()=>[{zIndex:(0,o.SU)(g)},n.popperStyle])),S=(0,r.Fl)((()=>[u.b(),u.is("pure",n.pure),u.is(n.effect),n.popperClass])),C=({referenceEl:e,popperContentEl:t,arrowEl:r})=>{const i=m(n,{arrowEl:r,arrowOffset:(0,o.SU)(h)});return(0,p.fi)(e,t,i)},x=(e=!0)=>{var t;null==(t=(0,o.SU)(a))||t.update(),e&&(g.value=n.zIndex||c())},I=()=>{var e,t;const r={name:"eventListeners",enabled:n.visible};null==(t=null==(e=(0,o.SU)(a))?void 0:e.setOptions)||t.call(e,(e=>({...e,modifiers:[...e.modifiers||[],r]}))),x(!1)};return(0,r.bv)((()=>{let e;(0,r.YP)(y,(t=>{var n;null==e||e();const i=(0,o.SU)(a);if(null==(n=null==i?void 0:i.destroy)||n.call(i),t){const n=(0,o.SU)(d);s.value=n,a.value=C({referenceEl:t,popperContentEl:n,arrowEl:(0,o.SU)(f)}),e=(0,r.YP)((()=>t.getBoundingClientRect()),(()=>x()),{immediate:!0})}else a.value=void 0}),{immediate:!0}),(0,r.YP)((()=>n.visible),I,{immediate:!0}),(0,r.YP)((()=>m(n,{arrowEl:(0,o.SU)(f),arrowOffset:(0,o.SU)(h)})),(e=>{var t;return null==(t=a.value)?void 0:t.setOptions(e)}))})),t({popperContentRef:d,popperInstanceRef:a,updatePopper:x,contentStyle:b}),(e,t)=>((0,r.wg)(),(0,r.iD)("div",{ref_key:"popperContentRef",ref:d,style:(0,i.j5)((0,o.SU)(b)),class:(0,i.C_)((0,o.SU)(S)),role:"tooltip",onMouseenter:t[0]||(t[0]=t=>e.$emit("mouseenter",t)),onMouseleave:t[1]||(t[1]=t=>e.$emit("mouseleave",t))},[(0,r.WI)(e.$slots,"default")],38))}});var x=(0,d.Z)(C,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]),I=n(9851),T=n(9619),E=n(4324);const R=e=>{const t=t=>{const n=t;n.key===T.n.esc&&(null==e||e(n))};(0,r.bv)((()=>{(0,E.on)(document,"keydown",t)})),(0,r.Jd)((()=>{(0,E.S1)(document,"keydown",t)}))},P=(0,r.aZ)({name:"ElTooltipContent",components:{ElPopperContent:x,ElVisuallyHidden:I.Z},inheritAttrs:!1,props:c.sp,setup(e){const t=(0,o.iH)(null),n=(0,o.iH)(!1),i=(0,o.iH)(!1),a=(0,o.iH)(!1),s=(0,o.iH)(!1),{controlled:c,id:d,open:p,trigger:f,onClose:h,onOpen:m,onShow:v,onHide:g,onBeforeShow:y,onBeforeHide:b}=(0,r.f3)(u.j,void 0),_=(0,r.Fl)((()=>e.persistent));(0,r.Jd)((()=>{s.value=!0}));const w=(0,r.Fl)((()=>!!(0,o.SU)(_)||(0,o.SU)(p))),k=(0,r.Fl)((()=>!e.disabled&&(0,o.SU)(p))),S=(0,r.Fl)((()=>{var t;return null!=(t=e.style)?t:{}})),C=(0,r.Fl)((()=>!(0,o.SU)(p)));R(h);const x=()=>{g()},I=()=>{if((0,o.SU)(c))return!0},T=(0,E.Mj)(I,(()=>{e.enterable&&"hover"===(0,o.SU)(f)&&m()})),P=(0,E.Mj)(I,(()=>{"hover"===(0,o.SU)(f)&&h()})),O=()=>{var e,n;null==(n=null==(e=t.value)?void 0:e.updatePopper)||n.call(e),null==y||y()},A=()=>{null==b||b()},D=()=>{v()};let N;return(0,r.YP)((()=>(0,o.SU)(p)),(e=>{e?N=(0,l.i9H)((0,r.Fl)((()=>{var e;return null==(e=t.value)?void 0:e.popperContentRef})),(()=>{if((0,o.SU)(c))return;const e=(0,o.SU)(f);"hover"!==e&&h()})):null==N||N()}),{flush:"post"}),{ariaHidden:C,entering:i,leaving:a,id:d,intermediateOpen:n,contentStyle:S,contentRef:t,destroyed:s,shouldRender:w,shouldShow:k,open:p,onAfterShow:D,onBeforeEnter:O,onBeforeLeave:A,onContentEnter:T,onContentLeave:P,onTransitionLeave:x}}});function O(e,t,n,o,a,l){const c=(0,r.up)("el-visually-hidden"),u=(0,r.up)("el-popper-content");return(0,r.wg)(),(0,r.j4)(r.lR,{disabled:!e.teleported,to:e.appendTo},[(0,r.Wm)(s.uT,{name:e.transition,onAfterLeave:e.onTransitionLeave,onBeforeEnter:e.onBeforeEnter,onAfterEnter:e.onAfterShow,onBeforeLeave:e.onBeforeLeave},{default:(0,r.w5)((()=>[e.shouldRender?(0,r.wy)(((0,r.wg)(),(0,r.j4)(u,(0,r.dG)({key:0,ref:"contentRef"},e.$attrs,{"aria-hidden":e.ariaHidden,"boundaries-padding":e.boundariesPadding,"fallback-placements":e.fallbackPlacements,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,placement:e.placement,"popper-options":e.popperOptions,strategy:e.strategy,effect:e.effect,enterable:e.enterable,pure:e.pure,"popper-class":e.popperClass,"popper-style":[e.popperStyle,e.contentStyle],"reference-el":e.referenceEl,visible:e.shouldShow,"z-index":e.zIndex,onMouseenter:e.onContentEnter,onMouseleave:e.onContentLeave}),{default:(0,r.w5)((()=>[(0,r.kq)(" Workaround bug #6378 "),e.destroyed?(0,r.kq)("v-if",!0):((0,r.wg)(),(0,r.iD)(r.HY,{key:0},[(0,r.WI)(e.$slots,"default"),(0,r.Wm)(c,{id:e.id,role:"tooltip"},{default:(0,r.w5)((()=>[(0,r.Uk)((0,i.zw)(e.ariaLabel),1)])),_:1},8,["id"])],64))])),_:3},16,["aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","visible","z-index","onMouseenter","onMouseleave"])),[[s.F8,e.shouldShow]]):(0,r.kq)("v-if",!0)])),_:3},8,["name","onAfterLeave","onBeforeEnter","onAfterEnter","onBeforeLeave"])],8,["disabled","to"])}var A=(0,d.Z)(P,[["render",O],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const D=(e,t)=>(0,i.kJ)(e)?e.includes(t):e===t,N=(e,t,n)=>r=>{D((0,o.SU)(e),t)&&n(r)};var M=n(319);const L=Symbol("elForwardRef"),F=e=>{const t=t=>{e.value=t};(0,r.JJ)(L,{setForwardRef:t})},U=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}});var j=n(7354),V=n(4620);const H="ElOnlyChild",B=(0,r.aZ)({name:H,setup(e,{slots:t,attrs:n}){var o;const a=(0,r.f3)(L),s=U(null!=(o=null==a?void 0:a.setForwardRef)?o:i.dG);return()=>{var e;const o=null==(e=t.default)?void 0:e.call(t,n);if(!o)return null;if(o.length>1)return(0,V.N)(H,"requires exact only one valid child."),null;const i=$(o);return i?(0,r.wy)((0,r.Ho)(i,n),[[s]]):((0,V.N)(H,"no valid child node found"),null)}}});function $(e){if(!e)return null;const t=e;for(const n of t){if((0,i.Kn)(n))switch(n.type){case r.sv:continue;case r.xv:return z(n);case"svg":return z(n);case r.HY:return $(n.children);default:return n}return z(n)}return null}function z(e){return(0,r.Wm)("span",{class:"el-only-child__content"},[e])}const W={name:"ElPopperTrigger",inheritAttrs:!1},q=(0,r.aZ)({...W,props:M.p,setup(e,{expose:t}){const n=e,{triggerRef:i}=(0,r.f3)(_.a,void 0);return F(i),(0,r.bv)((()=>{(0,r.YP)((()=>n.virtualRef),(e=>{e&&(i.value=(0,l.NXq)(e))}),{immediate:!0}),(0,r.YP)((()=>i.value),((e,t)=>{(0,j.kK)(e)&&["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach((r=>{var o;const i=n[r];i&&(e.addEventListener(r.slice(2).toLowerCase(),i),null==(o=null==t?void 0:t.removeEventListener)||o.call(t,r.slice(2).toLowerCase(),i))}))}),{immediate:!0})})),t({triggerRef:i}),(e,t)=>e.virtualTriggering?(0,r.kq)("v-if",!0):((0,r.wg)(),(0,r.j4)((0,o.SU)(B),(0,r.dG)({key:0},e.$attrs,{"aria-describedby":e.open?e.id:void 0}),{default:(0,r.w5)((()=>[(0,r.WI)(e.$slots,"default")])),_:3},16,["aria-describedby"]))}});var Z=(0,d.Z)(q,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]);const Y=(0,r.aZ)({name:"ElTooltipTrigger",components:{ElPopperTrigger:Z},props:c.ks,setup(e){const t=(0,k.s)("tooltip"),{controlled:n,id:i,open:a,onOpen:s,onClose:l,onToggle:c}=(0,r.f3)(u.j,void 0),d=(0,o.iH)(null),p=()=>{if((0,o.SU)(n)||e.disabled)return!0},f=(0,o.Vh)(e,"trigger"),h=(0,E.Mj)(p,N(f,"hover",s)),m=(0,E.Mj)(p,N(f,"hover",l)),v=(0,E.Mj)(p,N(f,"click",(e=>{0===e.button&&c(e)}))),g=(0,E.Mj)(p,N(f,"focus",s)),y=(0,E.Mj)(p,N(f,"focus",l)),b=(0,E.Mj)(p,N(f,"contextmenu",(e=>{e.preventDefault(),c(e)}))),_=(0,E.Mj)(p,(e=>{const{code:t}=e;t!==T.n.enter&&t!==T.n.space||c(e)}));return{onBlur:y,onContextMenu:b,onFocus:g,onMouseenter:h,onMouseleave:m,onClick:v,onKeydown:_,open:a,id:i,triggerRef:d,ns:t}}});function K(e,t,n,o,a,s){const l=(0,r.up)("el-popper-trigger");return(0,r.wg)(),(0,r.j4)(l,{id:e.id,"virtual-ref":e.virtualRef,open:e.open,"virtual-triggering":e.virtualTriggering,class:(0,i.C_)(e.ns.e("trigger")),onBlur:e.onBlur,onClick:e.onClick,onContextmenu:e.onContextMenu,onFocus:e.onFocus,onMouseenter:e.onMouseenter,onMouseleave:e.onMouseleave,onKeydown:e.onKeydown},{default:(0,r.w5)((()=>[(0,r.WI)(e.$slots,"default")])),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"])}var J=(0,d.Z)(Y,[["render",K],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]),G=n(2864);const X=(0,G.l0)({type:(0,G.Cq)(Boolean),default:null}),Q=(0,G.l0)({type:(0,G.Cq)(Function)}),ee=e=>{const t={[e]:X,[`onUpdate:${e}`]:Q},n=[`update:${e}`],o=({indicator:t,shouldHideWhenRouteChanges:n,shouldProceed:o,onShow:a,onHide:s})=>{const l=(0,r.FN)(),c=l.props,{emit:u}=l,d=`update:${e}`,p=(0,r.Fl)((()=>(0,i.mf)(c[`onUpdate:${e}`]))),f=(0,r.Fl)((()=>null===c[e])),m=()=>{!0!==t.value&&(t.value=!0,(0,i.mf)(a)&&a())},v=()=>{!1!==t.value&&(t.value=!1,(0,i.mf)(s)&&s())},g=()=>{if(!0===c.disabled||(0,i.mf)(o)&&!o())return;const e=p.value&&h.C5;e&&u(d,!0),!f.value&&e||m()},y=()=>{if(!0===c.disabled||!h.C5)return;const e=p.value&&h.C5;e&&u(d,!1),!f.value&&e||v()},b=e=>{(0,h.jn)(e)&&(c.disabled&&e?p.value&&u(d,!1):t.value!==e&&(e?m():v()))},_=()=>{t.value?y():g()};return(0,r.YP)((()=>c[e]),b),n&&void 0!==l.appContext.config.globalProperties.$route&&(0,r.YP)((()=>({...l.proxy.$route})),(()=>{n.value&&t.value&&y()})),(0,r.bv)((()=>{b(c[e])})),{hide:y,show:g,toggle:_}};return{useModelToggle:o,useModelToggleProps:t,useModelToggleEmits:n}},{useModelToggle:te,useModelToggleProps:ne,useModelToggleEmits:re}=ee("modelValue"),oe=(0,G.o8)({arrowOffset:{type:Number,default:5}}),ie={name:"ElPopperArrow",inheritAttrs:!1},ae=(0,r.aZ)({...ie,props:oe,setup(e,{expose:t}){const n=e,a=(0,k.s)("popper"),{arrowOffset:s,arrowRef:l}=(0,r.f3)(_.G,void 0);return(0,r.YP)((()=>n.arrowOffset),(e=>{s.value=e})),(0,r.Jd)((()=>{l.value=void 0})),t({arrowRef:l}),(e,t)=>((0,r.wg)(),(0,r.iD)("span",{ref_key:"arrowRef",ref:l,class:(0,i.C_)((0,o.SU)(a).e("arrow")),"data-popper-arrow":""},null,2))}});var se=(0,d.Z)(ae,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]),le=n(1750),ce=n(8925),ue=n(2967);const{useModelToggleProps:de,useModelToggle:pe,useModelToggleEmits:fe}=ee("visible"),he=(0,r.aZ)({name:"ElTooltip",components:{ElPopper:a.nG,ElPopperArrow:se,ElTooltipContent:A,ElTooltipTrigger:J},props:{...de,...c.sp,...c.ks,...oe,...c.xS},emits:[...fe,"before-show","before-hide","show","hide"],setup(e,{emit:t}){(0,le.Uc)();const n=(0,r.Fl)((()=>((0,j.o8)(e.openDelay)||(0,V.N)("ElTooltip","open-delay is about to be deprecated in the next major version, please use `show-after` instead"),e.openDelay||e.showAfter))),i=(0,r.Fl)((()=>((0,j.o8)(e.visibleArrow)||(0,V.N)("ElTooltip","`visible-arrow` is about to be deprecated in the next major version, please use `show-arrow` instead"),(0,h.jn)(e.visibleArrow)?e.visibleArrow:e.showArrow))),a=(0,ce.M)(),s=(0,o.iH)(null),l=()=>{var e;const t=(0,o.SU)(s);t&&(null==(e=t.popperInstanceRef)||e.update())},c=(0,o.iH)(!1),{show:d,hide:p}=pe({indicator:c}),{onOpen:f,onClose:m}=(0,ue.F)({showAfter:n,hideAfter:(0,o.Vh)(e,"hideAfter"),open:d,close:p}),v=(0,r.Fl)((()=>(0,h.jn)(e.visible)));return(0,r.JJ)(u.j,{controlled:v,id:a,open:(0,o.OT)(c),trigger:(0,o.Vh)(e,"trigger"),onOpen:f,onClose:m,onToggle:()=>{(0,o.SU)(c)?m():f()},onShow:()=>{t("show")},onHide:()=>{t("hide")},onBeforeShow:()=>{t("before-show")},onBeforeHide:()=>{t("before-hide")},updatePopper:l}),(0,r.YP)((()=>e.disabled),(e=>{e&&c.value&&(c.value=!1)})),{compatShowAfter:n,compatShowArrow:i,popperRef:s,open:c,hide:p,updatePopper:l,onOpen:f,onClose:m}}}),me=["innerHTML"],ve={key:1};function ge(e,t,n,o,a,s){const l=(0,r.up)("el-tooltip-trigger"),c=(0,r.up)("el-popper-arrow"),u=(0,r.up)("el-tooltip-content"),d=(0,r.up)("el-popper");return(0,r.wg)(),(0,r.j4)(d,{ref:"popperRef"},{default:(0,r.w5)((()=>[(0,r.Wm)(l,{disabled:e.disabled,trigger:e.trigger,"virtual-ref":e.virtualRef,"virtual-triggering":e.virtualTriggering},{default:(0,r.w5)((()=>[e.$slots.default?(0,r.WI)(e.$slots,"default",{key:0}):(0,r.kq)("v-if",!0)])),_:3},8,["disabled","trigger","virtual-ref","virtual-triggering"]),(0,r.Wm)(u,{"aria-label":e.ariaLabel,"boundaries-padding":e.boundariesPadding,content:e.content,disabled:e.disabled,effect:e.effect,enterable:e.enterable,"fallback-placements":e.fallbackPlacements,"hide-after":e.hideAfter,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,persistent:e.persistent,"popper-class":e.popperClass,"popper-style":e.popperStyle,placement:e.placement,"popper-options":e.popperOptions,pure:e.pure,"raw-content":e.rawContent,"reference-el":e.referenceEl,"show-after":e.compatShowAfter,strategy:e.strategy,teleported:e.teleported,transition:e.transition,"z-index":e.zIndex,"append-to":e.appendTo},{default:(0,r.w5)((()=>[(0,r.WI)(e.$slots,"content",{},(()=>[e.rawContent?((0,r.wg)(),(0,r.iD)("span",{key:0,innerHTML:e.content},null,8,me)):((0,r.wg)(),(0,r.iD)("span",ve,(0,i.zw)(e.content),1))])),e.compatShowArrow?((0,r.wg)(),(0,r.j4)(c,{key:0,"arrow-offset":e.arrowOffset},null,8,["arrow-offset"])):(0,r.kq)("v-if",!0)])),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","show-after","strategy","teleported","transition","z-index","append-to"])])),_:3},512)}var ye=(0,d.Z)(he,[["render",ge],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]),be=n(9015);const _e=(0,be.nz)(ye)},4723:function(e,t,n){"use strict";n.d(t,{j:function(){return r}});const r=Symbol("elTooltip")},6954:function(e,t,n){"use strict";n.d(t,{ks:function(){return c},sp:function(){return l},xS:function(){return u}});var r=n(2864),o=n(2967),i=n(9370),a=n(1750),s=n(319);const l=(0,r.o8)({...o.q,...i.P,appendTo:{type:(0,r.Cq)([String,Object]),default:a.cl},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:(0,r.Cq)(Boolean),default:null},transition:{type:String,default:"el-fade-in-linear"},teleported:{type:Boolean,default:!0},disabled:{type:Boolean}}),c=(0,r.o8)({...s.p,disabled:Boolean,trigger:{type:(0,r.Cq)([String,Array]),default:"hover"}}),u=(0,r.o8)({openDelay:{type:Number},visibleArrow:{type:Boolean,default:void 0},hideAfter:{type:Number,default:200},showArrow:{type:Boolean,default:!0}})},9851:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(3396),o=n(5989);const i=(0,r.aZ)({name:"ElVisuallyHidden",props:{style:{type:[String,Object,Array]}},setup(e){return{computedStyle:(0,r.Fl)((()=>[e.style,{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}]))}}});function a(e,t,n,o,i,a){return(0,r.wg)(),(0,r.iD)("span",(0,r.dG)(e.$attrs,{style:e.computedStyle}),[(0,r.WI)(e.$slots,"default")],16)}var s=(0,o.Z)(i,[["render",a],["__file","/home/runner/work/element-plus/element-plus/packages/components/visual-hidden/src/visual-hidden.vue"]])},9619:function(e,t,n){"use strict";n.d(t,{n:function(){return r}});const r={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"}},7117:function(e,t,n){"use strict";n.d(t,{P:function(){return r},p:function(){return o}});const r=["year","month","date","dates","week","datetime","datetimerange","daterange","monthrange"],o=["sun","mon","tue","wed","thu","fri","sat"]},6835:function(e,t,n){"use strict";n.d(t,{O7:function(){return o},e_:function(){return i},f_:function(){return r}});const r="update:modelValue",o="change",i="input"},7609:function(e,t,n){"use strict";n.d(t,{V:function(){return o},k:function(){return r}});const r=["","default","small","large"],o={large:40,default:32,small:24}},6935:function(e,t,n){"use strict";n.d(t,{Z:function(){return PD}});const r="2.1.11";var o=n(67);const i=Symbol("INSTALLED_KEY"),a=(e=[])=>{const t=(t,n)=>{t[i]||(t[i]=!0,e.forEach((e=>t.use(e))),n&&(0,o.A)(n,t,!0))};return{version:r,install:t}};var s=n(3396),l=n(4870),c=n(7139),u=n(6367),d=n(2864);const p=(0,d.o8)({zIndex:{type:(0,d.Cq)([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"}}),f={scroll:({scrollTop:e,fixed:t})=>"number"===typeof e&&"boolean"===typeof t,change:e=>"boolean"===typeof e};var h=n(5989),m=n(6734),v=n(4620),g=n(9304);const y={name:"ElAffix"},b=(0,s.aZ)({...y,props:p,emits:f,setup(e,{expose:t,emit:n}){const r=e,o="ElAffix",i=(0,m.s)("affix"),a=(0,l.XI)(),d=(0,l.XI)(),p=(0,l.XI)(),{height:f}=(0,u.iPe)(),{height:h,width:y,top:b,bottom:_,update:w}=(0,u.rBN)(d),k=(0,u.rBN)(a),S=(0,l.iH)(!1),C=(0,l.iH)(0),x=(0,l.iH)(0),I=(0,s.Fl)((()=>({height:S.value?`${h.value}px`:"",width:S.value?`${y.value}px`:""}))),T=(0,s.Fl)((()=>{if(!S.value)return{};const e=r.offset?`${r.offset}px`:0;return{height:`${h.value}px`,width:`${y.value}px`,top:"top"===r.position?e:"",bottom:"bottom"===r.position?e:"",transform:x.value?`translateY(${x.value}px)`:"",zIndex:r.zIndex}})),E=()=>{if(p.value)if(C.value=p.value instanceof Window?document.documentElement.scrollTop:p.value.scrollTop||0,"top"===r.position)if(r.target){const e=k.bottom.value-r.offset-h.value;S.value=r.offset>b.value&&k.bottom.value>0,x.value=e<0?e:0}else S.value=r.offset>b.value;else if(r.target){const e=f.value-k.top.value-r.offset-h.value;S.value=f.value-r.offset<_.value&&f.value>k.top.value,x.value=e<0?-e:0}else S.value=f.value-r.offset<_.value},R=()=>{n("scroll",{scrollTop:C.value,fixed:S.value})};return(0,s.YP)(S,(e=>n("change",e))),(0,s.bv)((()=>{var e;r.target?(a.value=null!=(e=document.querySelector(r.target))?e:void 0,a.value||(0,v._)(o,`Target is not existed: ${r.target}`)):a.value=document.documentElement,p.value=(0,g.JX)(d.value,!0),w()})),(0,u.ORN)(p,"scroll",R),(0,s.m0)(E),t({update:E}),(e,t)=>((0,s.wg)(),(0,s.iD)("div",{ref_key:"root",ref:d,class:(0,c.C_)((0,l.SU)(i).b()),style:(0,c.j5)((0,l.SU)(I))},[(0,s._)("div",{class:(0,c.C_)({[(0,l.SU)(i).m("fixed")]:S.value}),style:(0,c.j5)((0,l.SU)(T))},[(0,s.WI)(e.$slots,"default")],6)],6))}});var _=(0,h.Z)(b,[["__file","/home/runner/work/element-plus/element-plus/packages/components/affix/src/affix.vue"]]),w=n(9015);const k=(0,w.nz)(_);var S=n(9242),C=n(1015),x=n(984),I=n(6901);const T=["light","dark"],E=(0,d.o8)({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:(0,x.uc)(I.Rp),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:T,default:"light"}}),R={close:e=>e instanceof MouseEvent},P={name:"ElAlert"},O=(0,s.aZ)({...P,props:E,emits:R,setup(e,{emit:t}){const n=e,{Close:r}=I.f5,o=(0,s.Rr)(),i=(0,m.s)("alert"),a=(0,l.iH)(!0),u=(0,s.Fl)((()=>I.Rp[n.type]||I.Rp.info)),d=(0,s.Fl)((()=>n.description||{[i.is("big")]:o.default})),p=(0,s.Fl)((()=>n.description||{[i.is("bold")]:o.default})),f=e=>{a.value=!1,t("close",e)};return(e,t)=>((0,s.wg)(),(0,s.j4)(S.uT,{name:(0,l.SU)(i).b("fade")},{default:(0,s.w5)((()=>[(0,s.wy)((0,s._)("div",{class:(0,c.C_)([(0,l.SU)(i).b(),(0,l.SU)(i).m(e.type),(0,l.SU)(i).is("center",e.center),(0,l.SU)(i).is(e.effect)]),role:"alert"},[e.showIcon&&(0,l.SU)(u)?((0,s.wg)(),(0,s.j4)((0,l.SU)(C.gn),{key:0,class:(0,c.C_)([(0,l.SU)(i).e("icon"),(0,l.SU)(d)])},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)((0,l.SU)(u))))])),_:1},8,["class"])):(0,s.kq)("v-if",!0),(0,s._)("div",{class:(0,c.C_)((0,l.SU)(i).e("content"))},[e.title||e.$slots.title?((0,s.wg)(),(0,s.iD)("span",{key:0,class:(0,c.C_)([(0,l.SU)(i).e("title"),(0,l.SU)(p)])},[(0,s.WI)(e.$slots,"title",{},(()=>[(0,s.Uk)((0,c.zw)(e.title),1)]))],2)):(0,s.kq)("v-if",!0),e.$slots.default||e.description?((0,s.wg)(),(0,s.iD)("p",{key:1,class:(0,c.C_)((0,l.SU)(i).e("description"))},[(0,s.WI)(e.$slots,"default",{},(()=>[(0,s.Uk)((0,c.zw)(e.description),1)]))],2)):(0,s.kq)("v-if",!0),e.closable?((0,s.wg)(),(0,s.iD)(s.HY,{key:2},[e.closeText?((0,s.wg)(),(0,s.iD)("div",{key:0,class:(0,c.C_)([(0,l.SU)(i).e("close-btn"),(0,l.SU)(i).is("customed")]),onClick:f},(0,c.zw)(e.closeText),3)):((0,s.wg)(),(0,s.j4)((0,l.SU)(C.gn),{key:1,class:(0,c.C_)((0,l.SU)(i).e("close-btn")),onClick:f},{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(r))])),_:1},8,["class"]))],2112)):(0,s.kq)("v-if",!0)],2)],2),[[S.F8,a.value]])])),_:3},8,["name"]))}});var A=(0,h.Z)(O,[["__file","/home/runner/work/element-plus/element-plus/packages/components/alert/src/alert.vue"]]);const D=(0,w.nz)(A);var N=n(4146),M=n(5728),L=n(6739),F=n(9805),U=n(8468),j=n(6954),V=n(6835);const H=(0,d.o8)({valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:(0,d.Cq)(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:(0,d.Cq)([Function,Array]),default:c.dG},popperClass:{type:String,default:""},triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:{type:Boolean,default:!1},hideLoading:{type:Boolean,default:!1},popperAppendToBody:{type:Boolean,default:void 0},teleported:j.sp.teleported,highlightFirstItem:{type:Boolean,default:!1}}),B={[V.f_]:e=>(0,c.HD)(e),input:e=>(0,c.HD)(e),change:e=>(0,c.HD)(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,select:e=>(0,c.Kn)(e)};var $=n(112),z=n(8053),W=n(6389);const q=["aria-expanded","aria-owns"],Z={key:0},Y=["id","aria-selected","onClick"],K={name:"ElAutocomplete",inheritAttrs:!1},J=(0,s.aZ)({...K,props:H,emits:B,setup(e,{expose:t,emit:n}){const r=e,o="ElAutocomplete",i=(0,m.s)("autocomplete"),{compatTeleported:a}=(0,$.Q)(o,"popperAppendToBody");let d=!1;const p=(0,z.l)(),f=(0,s.l1)(),h=(0,l.iH)([]),g=(0,l.iH)(-1),y=(0,l.iH)(""),b=(0,l.iH)(!1),_=(0,l.iH)(!1),w=(0,l.iH)(!1),k=(0,l.iH)(),x=(0,l.iH)(),I=(0,l.iH)(),T=(0,l.iH)(),E=(0,s.Fl)((()=>i.b(String((0,W.O)())))),R=(0,s.Fl)((()=>f.style)),P=(0,s.Fl)((()=>{const e=(0,c.kJ)(h.value)&&h.value.length>0;return(e||w.value)&&b.value})),O=(0,s.Fl)((()=>!r.hideLoading&&w.value)),A=()=>{(0,s.Y3)((()=>{P.value&&(y.value=`${k.value.$el.offsetWidth}px`)}))},D=e=>{if(_.value)return;w.value=!0;const t=e=>{w.value=!1,_.value||((0,c.kJ)(e)?(h.value=e,g.value=r.highlightFirstItem?0:-1):(0,v._)(o,"autocomplete suggestions must be an array"))};if((0,c.kJ)(r.fetchSuggestions))t(r.fetchSuggestions);else{const n=r.fetchSuggestions(e,t);(0,c.kJ)(n)?t(n):(0,c.tI)(n)&&n.then(t)}},j=(0,N.Z)(D,r.debounce),H=e=>{const t=Boolean(e);if(n("input",e),n(V.f_,e),_.value=!1,b.value||(b.value=d&&t),!r.triggerOnFocus&&!e)return _.value=!0,void(h.value=[]);d&&t&&(d=!1),j(e)},B=e=>{n("change",e)},K=e=>{b.value=!0,n("focus",e),r.triggerOnFocus&&j(String(r.modelValue))},J=e=>{n("blur",e)},G=()=>{b.value=!1,d=!0,n(V.f_,""),n("clear")},X=()=>{P.value&&g.value>=0&&g.value<h.value.length?te(h.value[g.value]):r.selectWhenUnmatched&&(n("select",{value:r.modelValue}),(0,s.Y3)((()=>{h.value=[],g.value=-1})))},Q=()=>{b.value=!1},ee=()=>{var e;null==(e=k.value)||e.focus()},te=e=>{n("input",e[r.valueKey]),n(V.f_,e[r.valueKey]),n("select",e),(0,s.Y3)((()=>{h.value=[],g.value=-1}))},ne=e=>{if(!P.value||w.value)return;if(e<0)return void(g.value=-1);e>=h.value.length&&(e=h.value.length-1);const t=x.value.querySelector(`.${i.be("suggestion","wrap")}`),n=t.querySelectorAll(`.${i.be("suggestion","list")} li`),r=n[e],o=t.scrollTop,{offsetTop:a,scrollHeight:s}=r;a+s>o+t.clientHeight&&(t.scrollTop+=s),a<o&&(t.scrollTop-=s),g.value=e,k.value.ref.setAttribute("aria-activedescendant",`${E.value}-item-${g.value}`)};return(0,u.i9H)(T,Q),(0,s.bv)((()=>{k.value.ref.setAttribute("role","textbox"),k.value.ref.setAttribute("aria-autocomplete","list"),k.value.ref.setAttribute("aria-controls","id"),k.value.ref.setAttribute("aria-activedescendant",`${E.value}-item-${g.value}`)})),t({highlightedIndex:g,activated:b,loading:w,inputRef:k,popperRef:I,suggestions:h,handleSelect:te,handleKeyEnter:X,focus:ee,close:Q,highlight:ne}),(e,t)=>((0,s.wg)(),(0,s.j4)((0,l.SU)(F.Q0),{ref_key:"popperRef",ref:I,visible:(0,l.SU)(P),"onUpdate:visible":t[2]||(t[2]=e=>(0,l.dq)(P)?P.value=e:null),placement:e.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[(0,l.SU)(i).e("popper"),e.popperClass],teleported:(0,l.SU)(a),"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${(0,l.SU)(i).namespace.value}-zoom-in-top`,persistent:"",onBeforeShow:A},{content:(0,s.w5)((()=>[(0,s._)("div",{ref_key:"regionRef",ref:x,class:(0,c.C_)([(0,l.SU)(i).b("suggestion"),(0,l.SU)(i).is("loading",(0,l.SU)(O))]),style:(0,c.j5)({minWidth:y.value,outline:"none"}),role:"region"},[(0,s.Wm)((0,l.SU)(L.Mr),{id:(0,l.SU)(E),tag:"ul","wrap-class":(0,l.SU)(i).be("suggestion","wrap"),"view-class":(0,l.SU)(i).be("suggestion","list"),role:"listbox"},{default:(0,s.w5)((()=>[(0,l.SU)(O)?((0,s.wg)(),(0,s.iD)("li",Z,[(0,s.Wm)((0,l.SU)(C.gn),{class:(0,c.C_)((0,l.SU)(i).is("loading"))},{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(U.Z))])),_:1},8,["class"])])):((0,s.wg)(!0),(0,s.iD)(s.HY,{key:1},(0,s.Ko)(h.value,((t,n)=>((0,s.wg)(),(0,s.iD)("li",{id:`${(0,l.SU)(E)}-item-${n}`,key:n,class:(0,c.C_)({highlighted:g.value===n}),role:"option","aria-selected":g.value===n,onClick:e=>te(t)},[(0,s.WI)(e.$slots,"default",{item:t},(()=>[(0,s.Uk)((0,c.zw)(t[e.valueKey]),1)]))],10,Y)))),128))])),_:3},8,["id","wrap-class","view-class"])],6)])),default:(0,s.w5)((()=>[(0,s._)("div",{ref_key:"listboxRef",ref:T,class:(0,c.C_)([(0,l.SU)(i).b(),e.$attrs.class]),style:(0,c.j5)((0,l.SU)(R)),role:"combobox","aria-haspopup":"listbox","aria-expanded":(0,l.SU)(P),"aria-owns":(0,l.SU)(E)},[(0,s.Wm)((0,l.SU)(M.EZ),(0,s.dG)({ref_key:"inputRef",ref:k},(0,l.SU)(p),{"model-value":e.modelValue,onInput:H,onChange:B,onFocus:K,onBlur:J,onClear:G,onKeydown:[t[0]||(t[0]=(0,S.D2)((0,S.iM)((e=>ne(g.value-1)),["prevent"]),["up"])),t[1]||(t[1]=(0,S.D2)((0,S.iM)((e=>ne(g.value+1)),["prevent"]),["down"])),(0,S.D2)(X,["enter"]),(0,S.D2)(Q,["tab"])]}),(0,s.Nv)({_:2},[e.$slots.prepend?{name:"prepend",fn:(0,s.w5)((()=>[(0,s.WI)(e.$slots,"prepend")]))}:void 0,e.$slots.append?{name:"append",fn:(0,s.w5)((()=>[(0,s.WI)(e.$slots,"append")]))}:void 0,e.$slots.prefix?{name:"prefix",fn:(0,s.w5)((()=>[(0,s.WI)(e.$slots,"prefix")]))}:void 0,e.$slots.suffix?{name:"suffix",fn:(0,s.w5)((()=>[(0,s.WI)(e.$slots,"suffix")]))}:void 0]),1040,["model-value","onKeydown"])],14,q)])),_:3},8,["visible","placement","popper-class","teleported","transition"]))}});var G=(0,h.Z)(J,[["__file","/home/runner/work/element-plus/element-plus/packages/components/autocomplete/src/autocomplete.vue"]]);const X=(0,w.nz)(G);var Q=n(7609);const ee=(0,d.o8)({size:{type:[Number,String],values:Q.k,default:"",validator:e=>"number"===typeof e},shape:{type:String,values:["circle","square"],default:"circle"},icon:{type:I.AA},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:(0,d.Cq)(String),default:"cover"}}),te={error:e=>e instanceof Event};var ne=n(4419),re=n(529);const oe=["src","alt","srcset"],ie={name:"ElAvatar"},ae=(0,s.aZ)({...ie,props:ee,emits:te,setup(e,{emit:t}){const n=e,r=(0,m.s)("avatar"),o=(0,l.iH)(!1),i=(0,s.Fl)((()=>{const{size:e,icon:t,shape:o}=n,i=[r.b()];return(0,c.HD)(e)&&i.push(r.m(e)),t&&i.push(r.m("icon")),o&&i.push(r.m(o)),i})),a=(0,s.Fl)((()=>{const{size:e}=n;return(0,ne.hj)(e)?{"--el-avatar-size":(0,re.Nn)(e)}:void 0})),u=(0,s.Fl)((()=>({objectFit:n.fit})));function d(e){o.value=!0,t("error",e)}return(0,s.YP)((()=>n.src),(()=>o.value=!1)),(e,t)=>((0,s.wg)(),(0,s.iD)("span",{class:(0,c.C_)((0,l.SU)(i)),style:(0,c.j5)((0,l.SU)(a))},[!e.src&&!e.srcSet||o.value?e.icon?((0,s.wg)(),(0,s.j4)((0,l.SU)(C.gn),{key:1},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)(e.icon)))])),_:1})):(0,s.WI)(e.$slots,"default",{key:2}):((0,s.wg)(),(0,s.iD)("img",{key:0,src:e.src,alt:e.alt,srcset:e.srcSet,style:(0,c.j5)((0,l.SU)(u)),onError:d},null,44,oe))],6))}});var se=(0,h.Z)(ae,[["__file","/home/runner/work/element-plus/element-plus/packages/components/avatar/src/avatar.vue"]]);const le=(0,w.nz)(se);var ce=n(6854);const ue=(0,s.aZ)({name:"CaretTop"}),de={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},pe=(0,s._)("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"},null,-1),fe=[pe];function he(e,t,n,r,o,i){return(0,s.wg)(),(0,s.iD)("svg",de,fe)}var me=(0,ce.Z)(ue,[["render",he]]);const ve={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},ge={click:e=>e instanceof MouseEvent},ye=e=>e**3,be=e=>e<.5?ye(2*e)/2:1-ye(2*(1-e))/2,_e=["onClick"],we={name:"ElBacktop"},ke=(0,s.aZ)({...we,props:ve,emits:ge,setup(e,{emit:t}){const n=e,r="ElBacktop",o=(0,m.s)("backtop"),i=(0,l.XI)(),a=(0,l.XI)(),d=(0,l.iH)(!1),p=(0,s.Fl)((()=>({right:`${n.right}px`,bottom:`${n.bottom}px`}))),f=()=>{if(!i.value)return;const e=Date.now(),t=i.value.scrollTop,n=()=>{if(!i.value)return;const r=(Date.now()-e)/500;r<1?(i.value.scrollTop=t*(1-be(r)),requestAnimationFrame(n)):i.value.scrollTop=0};requestAnimationFrame(n)},h=()=>{i.value&&(d.value=i.value.scrollTop>=n.visibilityHeight)},g=e=>{f(),t("click",e)},y=(0,ne.vA)(h,300);return(0,s.bv)((()=>{var e;a.value=document,i.value=document.documentElement,n.target&&(i.value=null!=(e=document.querySelector(n.target))?e:void 0,i.value||(0,v._)(r,`target is not existed: ${n.target}`),a.value=i.value),(0,u.ORN)(a,"scroll",y)})),(e,t)=>((0,s.wg)(),(0,s.j4)(S.uT,{name:`${(0,l.SU)(o).namespace.value}-fade-in`},{default:(0,s.w5)((()=>[d.value?((0,s.wg)(),(0,s.iD)("div",{key:0,style:(0,c.j5)((0,l.SU)(p)),class:(0,c.C_)((0,l.SU)(o).b()),onClick:(0,S.iM)(g,["stop"])},[(0,s.WI)(e.$slots,"default",{},(()=>[(0,s.Wm)((0,l.SU)(C.gn),{class:(0,c.C_)((0,l.SU)(o).e("icon"))},{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(me))])),_:1},8,["class"])]))],14,_e)):(0,s.kq)("v-if",!0)])),_:3},8,["name"]))}});var Se=(0,h.Z)(ke,[["__file","/home/runner/work/element-plus/element-plus/packages/components/backtop/src/backtop.vue"]]);const Ce=(0,w.nz)(Se);var xe=n(1183);const Ie=(0,d.o8)({separator:{type:String,default:"/"},separatorIcon:{type:I.AA,default:""}}),Te=Symbol("breadcrumbKey"),Ee={name:"ElBreadcrumb"},Re=(0,s.aZ)({...Ee,props:Ie,setup(e){const t=e,n=(0,m.s)("breadcrumb"),r=(0,l.iH)();return(0,s.JJ)(Te,t),(0,s.bv)((()=>{const e=r.value.querySelectorAll(`.${n.e("item")}`);e.length&&e[e.length-1].setAttribute("aria-current","page")})),(e,t)=>((0,s.wg)(),(0,s.iD)("div",{ref_key:"breadcrumb",ref:r,class:(0,c.C_)((0,l.SU)(n).b()),"aria-label":"Breadcrumb",role:"navigation"},[(0,s.WI)(e.$slots,"default")],2))}});var Pe=(0,h.Z)(Re,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb.vue"]]);const Oe=(0,d.o8)({to:{type:(0,d.Cq)([String,Object]),default:""},replace:{type:Boolean,default:!1}}),Ae={name:"ElBreadcrumbItem"},De=(0,s.aZ)({...Ae,props:Oe,setup(e){const t=e,n=(0,s.FN)(),r=n.appContext.config.globalProperties.$router,o=(0,s.f3)(Te,{}),i=(0,m.s)("breadcrumb"),{separator:a,separatorIcon:u}=o,d=(0,l.iH)(),p=()=>{t.to&&r&&(t.replace?r.replace(t.to):r.push(t.to))};return(e,t)=>((0,s.wg)(),(0,s.iD)("span",{class:(0,c.C_)((0,l.SU)(i).e("item"))},[(0,s._)("span",{ref_key:"link",ref:d,class:(0,c.C_)([(0,l.SU)(i).e("inner"),(0,l.SU)(i).is("link",!!e.to)]),role:"link",onClick:p},[(0,s.WI)(e.$slots,"default")],2),(0,l.SU)(u)?((0,s.wg)(),(0,s.j4)((0,l.SU)(C.gn),{key:0,class:(0,c.C_)((0,l.SU)(i).e("separator"))},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)((0,l.SU)(u))))])),_:1},8,["class"])):((0,s.wg)(),(0,s.iD)("span",{key:1,class:(0,c.C_)((0,l.SU)(i).e("separator")),role:"presentation"},(0,c.zw)((0,l.SU)(a)),3))],2))}});var Ne=(0,h.Z)(De,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb-item.vue"]]);const Me=(0,w.nz)(Pe,{BreadcrumbItem:Ne}),Le=(0,w.dp)(Ne);var Fe=n(5791),Ue=n(5743),je=n(225);const Ve=e=>Array.from(Array.from({length:e}).keys()),He=e=>e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),Be=e=>e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),$e=(e,t)=>{const n=e.subtract(1,"month").endOf("month").date();return Ve(t).map(((e,r)=>n-(t-r-1)))},ze=e=>{const t=e.daysInMonth();return Ve(t).map(((e,t)=>t+1))},We=e=>Ve(e.length/7).map((t=>{const n=7*t;return e.slice(n,n+7)})),qe=(0,d.o8)({selectedDay:{type:(0,d.Cq)(Object)},range:{type:(0,d.Cq)(Array)},date:{type:(0,d.Cq)(Object),required:!0},hideHeader:{type:Boolean}}),Ze={pick:e=>(0,c.Kn)(e)};var Ye=n(2137),Ke=n(7117);const Je={key:0},Ge=["onClick"],Xe={name:"DateTable"},Qe=(0,s.aZ)({...Xe,props:qe,emits:Ze,setup(e,{expose:t,emit:n}){const r=e;Ue.extend(je);const{t:o,lang:i}=(0,Ye.bU)(),a=(0,m.s)("calendar-table"),u=(0,m.s)("calendar-day"),d=Ue().locale(i.value),p=d.$locale().weekStart||0,f=(0,s.Fl)((()=>!!r.range&&!!r.range.length)),h=(0,s.Fl)((()=>{let e=[];if(f.value){const[t,n]=r.range,o=Ve(n.date()-t.date()+1).map((e=>({text:t.date()+e,type:"current"})));let i=o.length%7;i=0===i?0:7-i;const a=Ve(i).map(((e,t)=>({text:t+1,type:"next"})));e=o.concat(a)}else{const t=r.date.startOf("month").day(),n=$e(r.date,t-p).map((e=>({text:e,type:"prev"}))),o=ze(r.date).map((e=>({text:e,type:"current"})));e=[...n,...o];const i=7-(e.length%7||7),a=Ve(i).map(((e,t)=>({text:t+1,type:"next"})));e=e.concat(a)}return We(e)})),v=(0,s.Fl)((()=>{const e=p;return 0===e?Ke.p.map((e=>o(`el.datepicker.weeks.${e}`))):Ke.p.slice(e).concat(Ke.p.slice(0,e)).map((e=>o(`el.datepicker.weeks.${e}`)))})),g=(e,t)=>{switch(t){case"prev":return r.date.startOf("month").subtract(1,"month").date(e);case"next":return r.date.startOf("month").add(1,"month").date(e);case"current":return r.date.date(e)}},y=({text:e,type:t})=>{const n=[t];if("current"===t){const o=g(e,t);o.isSame(r.selectedDay,"day")&&n.push(u.is("selected")),o.isSame(d,"day")&&n.push(u.is("today"))}return n},b=({text:e,type:t})=>{const r=g(e,t);n("pick",r)},_=({text:e,type:t})=>{const n=g(e,t);return{isSelected:n.isSame(r.selectedDay),type:`${t}-month`,day:n.format("YYYY-MM-DD"),date:n.toDate()}};return t({getFormattedDate:g}),(e,t)=>((0,s.wg)(),(0,s.iD)("table",{class:(0,c.C_)([(0,l.SU)(a).b(),(0,l.SU)(a).is("range",(0,l.SU)(f))]),cellspacing:"0",cellpadding:"0"},[e.hideHeader?(0,s.kq)("v-if",!0):((0,s.wg)(),(0,s.iD)("thead",Je,[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)((0,l.SU)(v),(e=>((0,s.wg)(),(0,s.iD)("th",{key:e},(0,c.zw)(e),1)))),128))])),(0,s._)("tbody",null,[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)((0,l.SU)(h),((t,n)=>((0,s.wg)(),(0,s.iD)("tr",{key:n,class:(0,c.C_)({[(0,l.SU)(a).e("row")]:!0,[(0,l.SU)(a).em("row","hide-border")]:0===n&&e.hideHeader})},[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(t,((t,n)=>((0,s.wg)(),(0,s.iD)("td",{key:n,class:(0,c.C_)(y(t)),onClick:e=>b(t)},[(0,s._)("div",{class:(0,c.C_)((0,l.SU)(u).b())},[(0,s.WI)(e.$slots,"dateCell",{data:_(t)},(()=>[(0,s._)("span",null,(0,c.zw)(t.text),1)]))],2)],10,Ge)))),128))],2)))),128))])],2))}});var et=(0,h.Z)(Qe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/calendar/src/date-table.vue"]]);const tt=(0,d.o8)({modelValue:{type:Date},range:{type:(0,d.Cq)(Array),validator:e=>Array.isArray(e)&&2===e.length&&e.every((e=>e instanceof Date))}}),nt={[V.f_]:e=>e instanceof Date,input:e=>e instanceof Date},rt={name:"ElCalendar"},ot=(0,s.aZ)({...rt,props:tt,emits:nt,setup(e,{expose:t,emit:n}){const r=e,o="ElCalendar",i=(0,m.s)("calendar"),{t:a,lang:u}=(0,Ye.bU)(),d=(0,l.iH)(),p=Ue().locale(u.value),f=(0,s.Fl)((()=>w.value.subtract(1,"month").date(1))),h=(0,s.Fl)((()=>w.value.add(1,"month").date(1))),g=(0,s.Fl)((()=>w.value.subtract(1,"year").date(1))),y=(0,s.Fl)((()=>w.value.add(1,"year").date(1))),b=(0,s.Fl)((()=>{const e=`el.datepicker.month${w.value.format("M")}`;return`${w.value.year()} ${a("el.datepicker.year")} ${a(e)}`})),_=(0,s.Fl)({get(){return r.modelValue?w.value:d.value},set(e){if(!e)return;d.value=e;const t=e.toDate();n("input",t),n("update:modelValue",t)}}),w=(0,s.Fl)((()=>r.modelValue?Ue(r.modelValue).locale(u.value):_.value?_.value:S.value.length?S.value[0][0]:p)),k=(e,t)=>{const n=e.startOf("week"),r=t.endOf("week"),i=n.get("month"),a=r.get("month");if(i===a)return[[n,r]];if(i+1===a){const e=n.endOf("month"),t=r.startOf("month"),o=e.isSame(t,"week"),i=o?t.add(1,"week"):t;return[[n,e],[i.startOf("week"),r]]}if(i+2===a||(i+1)%11===a){const e=n.endOf("month"),t=n.add(1,"month").startOf("month"),o=e.isSame(t,"week")?t.add(1,"week"):t,i=o.endOf("month"),a=r.startOf("month"),s=i.isSame(a,"week")?a.add(1,"week"):a;return[[n,e],[o.startOf("week"),i],[s.startOf("week"),r]]}return(0,v.N)(o,"start time and end time interval must not exceed two months"),[]},S=(0,s.Fl)((()=>{if(!r.range)return[];const e=r.range.map((e=>Ue(e).locale(u.value))),[t,n]=e;return t.isAfter(n)?((0,v.N)(o,"end time should be greater than start time"),[]):t.isSame(n,"month")?k(t,n):t.add(1,"month").month()!==n.month()?((0,v.N)(o,"start time and end time interval must not exceed two months"),[]):k(t,n)})),C=e=>{_.value=e},x=e=>{let t;t="prev-month"===e?f.value:"next-month"===e?h.value:"prev-year"===e?g.value:"next-year"===e?y.value:p,t.isSame(w.value,"day")||C(t)};return t({selectedDay:_,pickDay:C,selectDate:x,calculateValidatedDateRange:k}),(e,t)=>((0,s.wg)(),(0,s.iD)("div",{class:(0,c.C_)((0,l.SU)(i).b())},[(0,s._)("div",{class:(0,c.C_)((0,l.SU)(i).e("header"))},[(0,s.WI)(e.$slots,"header",{date:(0,l.SU)(b)},(()=>[(0,s._)("div",{class:(0,c.C_)((0,l.SU)(i).e("title"))},(0,c.zw)((0,l.SU)(b)),3),0===(0,l.SU)(S).length?((0,s.wg)(),(0,s.iD)("div",{key:0,class:(0,c.C_)((0,l.SU)(i).e("button-group"))},[(0,s.Wm)((0,l.SU)(Fe.MO),null,{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(Fe.mi),{size:"small",onClick:t[0]||(t[0]=e=>x("prev-month"))},{default:(0,s.w5)((()=>[(0,s.Uk)((0,c.zw)((0,l.SU)(a)("el.datepicker.prevMonth")),1)])),_:1}),(0,s.Wm)((0,l.SU)(Fe.mi),{size:"small",onClick:t[1]||(t[1]=e=>x("today"))},{default:(0,s.w5)((()=>[(0,s.Uk)((0,c.zw)((0,l.SU)(a)("el.datepicker.today")),1)])),_:1}),(0,s.Wm)((0,l.SU)(Fe.mi),{size:"small",onClick:t[2]||(t[2]=e=>x("next-month"))},{default:(0,s.w5)((()=>[(0,s.Uk)((0,c.zw)((0,l.SU)(a)("el.datepicker.nextMonth")),1)])),_:1})])),_:1})],2)):(0,s.kq)("v-if",!0)]))],2),0===(0,l.SU)(S).length?((0,s.wg)(),(0,s.iD)("div",{key:0,class:(0,c.C_)((0,l.SU)(i).e("body"))},[(0,s.Wm)(et,{date:(0,l.SU)(w),"selected-day":(0,l.SU)(_),onPick:C},(0,s.Nv)({_:2},[e.$slots.dateCell?{name:"dateCell",fn:(0,s.w5)((t=>[(0,s.WI)(e.$slots,"dateCell",(0,c.vs)((0,s.F4)(t)))]))}:void 0]),1032,["date","selected-day"])],2)):((0,s.wg)(),(0,s.iD)("div",{key:1,class:(0,c.C_)((0,l.SU)(i).e("body"))},[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)((0,l.SU)(S),((t,n)=>((0,s.wg)(),(0,s.j4)(et,{key:n,date:t[0],"selected-day":(0,l.SU)(_),range:t,"hide-header":0!==n,onPick:C},(0,s.Nv)({_:2},[e.$slots.dateCell?{name:"dateCell",fn:(0,s.w5)((t=>[(0,s.WI)(e.$slots,"dateCell",(0,c.vs)((0,s.F4)(t)))]))}:void 0]),1032,["date","selected-day","range","hide-header"])))),128))],2))],2))}});var it=(0,h.Z)(ot,[["__file","/home/runner/work/element-plus/element-plus/packages/components/calendar/src/calendar.vue"]]);const at=(0,w.nz)(it),st=(0,d.o8)({header:{type:String,default:""},bodyStyle:{type:(0,d.Cq)([String,Object,Array]),default:""},shadow:{type:String,default:"always"}}),lt={name:"ElCard"},ct=(0,s.aZ)({...lt,props:st,setup(e){const t=(0,m.s)("card");return(e,n)=>((0,s.wg)(),(0,s.iD)("div",{class:(0,c.C_)([(0,l.SU)(t).b(),(0,l.SU)(t).is(`${e.shadow}-shadow`)])},[e.$slots.header||e.header?((0,s.wg)(),(0,s.iD)("div",{key:0,class:(0,c.C_)((0,l.SU)(t).e("header"))},[(0,s.WI)(e.$slots,"header",{},(()=>[(0,s.Uk)((0,c.zw)(e.header),1)]))],2)):(0,s.kq)("v-if",!0),(0,s._)("div",{class:(0,c.C_)((0,l.SU)(t).e("body")),style:(0,c.j5)(e.bodyStyle)},[(0,s.WI)(e.$slots,"default")],6)],2))}});var ut=(0,h.Z)(ct,[["__file","/home/runner/work/element-plus/element-plus/packages/components/card/src/card.vue"]]);const dt=(0,w.nz)(ut);n(1703);var pt=n(6049),ft="Expected a function";function ht(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError(ft);return(0,pt.Z)(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),(0,N.Z)(e,t,{leading:r,maxWait:t,trailing:o})}var mt=ht;const vt=(0,s.aZ)({name:"ArrowLeft"}),gt={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},yt=(0,s._)("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"},null,-1),bt=[yt];function _t(e,t,n,r,o,i){return(0,s.wg)(),(0,s.iD)("svg",gt,bt)}var wt=(0,ce.Z)(vt,[["render",_t]]);const kt=(0,s.aZ)({name:"ArrowRight"}),St={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Ct=(0,s._)("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"},null,-1),xt=[Ct];function It(e,t,n,r,o,i){return(0,s.wg)(),(0,s.iD)("svg",St,xt)}var Tt=(0,ce.Z)(kt,[["render",It]]);const Et=(0,d.o8)({initialIndex:{type:Number,default:0},height:{type:String,default:""},trigger:{type:String,default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:{type:String,default:""},indicator:{type:Boolean,default:!0},arrow:{type:String,default:"hover"},type:{type:String,default:""},loop:{type:Boolean,default:!0},direction:{type:String,default:"horizontal",validator(e){return["horizontal","vertical"].includes(e)}},pauseOnHover:{type:Boolean,default:!0}}),Rt={change:(e,t)=>[e,t].every(ne.hj)},Pt=Symbol("carouselContextKey"),Ot=["onMouseenter","onMouseleave"],At=["onMouseenter","onClick"],Dt={key:0},Nt={name:"ElCarousel"},Mt=(0,s.aZ)({...Nt,props:Et,emits:Rt,setup(e,{expose:t,emit:n}){const r=e,o=(0,m.s)("carousel"),i="ElCarousel",a=300,d=(0,l.iH)(-1),p=(0,l.iH)(null),f=(0,l.iH)(!1),h=(0,l.iH)(),g=(0,l.iH)([]),y=(0,s.Fl)((()=>"never"!==r.arrow&&!(0,l.SU)(x))),b=(0,s.Fl)((()=>g.value.some((e=>e.props.label.toString().length>0)))),_=(0,s.Fl)((()=>{const e=[o.b(),o.m(r.direction)];return(0,l.SU)(k)&&e.push(o.m("card")),e})),w=(0,s.Fl)((()=>{const e=[o.e("indicators"),o.em("indicators",r.direction)];return b.value&&e.push(o.em("indicators","labels")),("outside"===r.indicatorPosition||(0,l.SU)(k))&&e.push(o.em("indicators","outside")),e})),k=(0,s.Fl)((()=>"card"===r.type)),x=(0,s.Fl)((()=>"vertical"===r.direction)),I=mt((e=>{O(e)}),a,{trailing:!0}),T=mt((e=>{H(e)}),a);function E(){p.value&&(clearInterval(p.value),p.value=null)}function R(){r.interval<=0||!r.autoplay||p.value||(p.value=setInterval((()=>P()),r.interval))}const P=()=>{d.value<g.value.length-1?d.value=d.value+1:r.loop&&(d.value=0)};function O(e){if((0,c.HD)(e)){const t=g.value.filter((t=>t.props.name===e));t.length>0&&(e=g.value.indexOf(t[0]))}if(e=Number(e),Number.isNaN(e)||e!==Math.floor(e))return void(0,v.N)(i,"index must be integer.");const t=g.value.length,n=d.value;d.value=e<0?r.loop?t-1:0:e>=t?r.loop?0:t-1:e,n===d.value&&A(n)}function A(e){g.value.forEach(((t,n)=>{t.translateItem(n,d.value,e)}))}function D(e){g.value.push(e)}function N(e){const t=g.value.findIndex((t=>t.uid===e));-1!==t&&(g.value.splice(t,1),d.value===t&&$())}function M(e,t){var n,r,o,i;const a=(0,l.SU)(g),s=a.length;if(0===s||!e.states.inStage)return!1;const c=t+1,u=t-1,d=s-1,p=a[d].states.active,f=a[0].states.active,h=null==(r=null==(n=a[c])?void 0:n.states)?void 0:r.active,m=null==(i=null==(o=a[u])?void 0:o.states)?void 0:i.active;return t===d&&f||h?"left":!!(0===t&&p||m)&&"right"}function L(){f.value=!0,r.pauseOnHover&&E()}function F(){f.value=!1,R()}function U(e){(0,l.SU)(x)||g.value.forEach(((t,n)=>{e===M(t,n)&&(t.states.hover=!0)}))}function j(){(0,l.SU)(x)||g.value.forEach((e=>{e.states.hover=!1}))}function V(e){d.value=e}function H(e){"hover"===r.trigger&&e!==d.value&&(d.value=e)}function B(){O(d.value-1)}function $(){O(d.value+1)}(0,s.YP)((()=>d.value),((e,t)=>{A(t),t>-1&&n("change",e,t)})),(0,s.YP)((()=>r.autoplay),(e=>{e?R():E()})),(0,s.YP)((()=>r.loop),(()=>{O(d.value)}));const z=(0,l.XI)();return(0,s.bv)((async()=>{await(0,s.Y3)(),z.value=(0,u.yU7)(h.value,(()=>{A()})),r.initialIndex<g.value.length&&r.initialIndex>=0&&(d.value=r.initialIndex),R()})),(0,s.Jd)((()=>{E(),h.value&&z.value&&z.value.stop()})),(0,s.JJ)(Pt,{root:h,isCardType:k,isVertical:x,items:g,loop:r.loop,addItem:D,removeItem:N,setActiveItem:O}),t({setActiveItem:O,prev:B,next:$}),(e,t)=>((0,s.wg)(),(0,s.iD)("div",{ref_key:"root",ref:h,class:(0,c.C_)((0,l.SU)(_)),onMouseenter:(0,S.iM)(L,["stop"]),onMouseleave:(0,S.iM)(F,["stop"])},[(0,s._)("div",{class:(0,c.C_)((0,l.SU)(o).e("container")),style:(0,c.j5)({height:e.height})},[(0,l.SU)(y)?((0,s.wg)(),(0,s.j4)(S.uT,{key:0,name:"carousel-arrow-left"},{default:(0,s.w5)((()=>[(0,s.wy)((0,s._)("button",{type:"button",class:(0,c.C_)([(0,l.SU)(o).e("arrow"),(0,l.SU)(o).em("arrow","left")]),onMouseenter:t[0]||(t[0]=e=>U("left")),onMouseleave:j,onClick:t[1]||(t[1]=(0,S.iM)((e=>(0,l.SU)(I)(d.value-1)),["stop"]))},[(0,s.Wm)((0,l.SU)(C.gn),null,{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(wt))])),_:1})],34),[[S.F8,("always"===e.arrow||f.value)&&(r.loop||d.value>0)]])])),_:1})):(0,s.kq)("v-if",!0),(0,l.SU)(y)?((0,s.wg)(),(0,s.j4)(S.uT,{key:1,name:"carousel-arrow-right"},{default:(0,s.w5)((()=>[(0,s.wy)((0,s._)("button",{type:"button",class:(0,c.C_)([(0,l.SU)(o).e("arrow"),(0,l.SU)(o).em("arrow","right")]),onMouseenter:t[2]||(t[2]=e=>U("right")),onMouseleave:j,onClick:t[3]||(t[3]=(0,S.iM)((e=>(0,l.SU)(I)(d.value+1)),["stop"]))},[(0,s.Wm)((0,l.SU)(C.gn),null,{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(Tt))])),_:1})],34),[[S.F8,("always"===e.arrow||f.value)&&(r.loop||d.value<g.value.length-1)]])])),_:1})):(0,s.kq)("v-if",!0),(0,s.WI)(e.$slots,"default")],6),"none"!==e.indicatorPosition?((0,s.wg)(),(0,s.iD)("ul",{key:0,class:(0,c.C_)((0,l.SU)(w))},[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(g.value,((t,n)=>((0,s.wg)(),(0,s.iD)("li",{key:n,class:(0,c.C_)([(0,l.SU)(o).e("indicator"),(0,l.SU)(o).em("indicator",e.direction),(0,l.SU)(o).is("active",n===d.value)]),onMouseenter:e=>(0,l.SU)(T)(n),onClick:(0,S.iM)((e=>V(n)),["stop"])},[(0,s._)("button",{class:(0,c.C_)((0,l.SU)(o).e("button"))},[(0,l.SU)(b)?((0,s.wg)(),(0,s.iD)("span",Dt,(0,c.zw)(t.props.label),1)):(0,s.kq)("v-if",!0)],2)],42,At)))),128))],2)):(0,s.kq)("v-if",!0)],42,Ot))}});var Lt=(0,h.Z)(Mt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel.vue"]]);const Ft=(0,d.o8)({name:{type:String,default:""},label:{type:[String,Number],default:""}});var Ut=n(7354);const jt={name:"ElCarouselItem"},Vt=(0,s.aZ)({...jt,props:Ft,setup(e){const t=e,n=(0,m.s)("carousel"),r="ElCarouselItem",o=(0,s.f3)(Pt),i=(0,s.FN)();o||(0,v.N)(r,"usage: <el-carousel></el-carousel-item></el-carousel>"),i||(0,v.N)(r,"compositional hook can only be invoked inside setups");const a=.83,u=(0,l.iH)(!1),d=(0,l.iH)(0),p=(0,l.iH)(1),f=(0,l.iH)(!1),h=(0,l.iH)(!1),g=(0,l.iH)(!1),y=(0,l.iH)(!1),{isCardType:b,isVertical:_}=o,w=(0,s.Fl)((()=>{const e="translate"+((0,l.SU)(_)?"Y":"X"),t=`${e}(${(0,l.SU)(d)}px)`,n=`scale(${(0,l.SU)(p)})`,r=[t,n].join(" ");return{transform:r}}));function k(e,t,n){const r=n-1,o=t-1,i=t+1,a=n/2;return 0===t&&e===r?-1:t===r&&0===e?n:e<o&&t-e>=a?n+1:e>i&&e-t>=a?-2:e}function C(e,t){var n;const r=(null==(n=o.root.value)?void 0:n.offsetWidth)||0;return g.value?r*((2-a)*(e-t)+1)/4:e<t?-(1+a)*r/4:(3+a)*r/4}function x(e,t,n){const r=o.root.value;if(!r)return 0;const i=(n?r.offsetHeight:r.offsetWidth)||0;return i*(e-t)}const I=(e,t,n)=>{var r;const i=(0,l.SU)(b),s=null!=(r=o.items.value.length)?r:Number.NaN,c=e===t;i||(0,Ut.o8)(n)||(y.value=c||e===n),!c&&s>2&&o.loop&&(e=k(e,t,s));const u=(0,l.SU)(_);f.value=c,i?(u&&(0,v.N)("Carousel","vertical direction is not supported for card mode"),g.value=Math.round(Math.abs(e-t))<=1,d.value=C(e,t),p.value=(0,l.SU)(f)?1:a):d.value=x(e,t,u),h.value=!0};function T(){if(o&&(0,l.SU)(b)){const e=o.items.value.findIndex((({uid:e})=>e===i.uid));o.setActiveItem(e)}}return(0,s.bv)((()=>{o.addItem({props:t,states:(0,l.qj)({hover:u,translate:d,scale:p,active:f,ready:h,inStage:g,animating:y}),uid:i.uid,translateItem:I})})),(0,s.Ah)((()=>{o.removeItem(i.uid)})),(e,t)=>(0,s.wy)(((0,s.wg)(),(0,s.iD)("div",{class:(0,c.C_)([(0,l.SU)(n).e("item"),(0,l.SU)(n).is("active",f.value),(0,l.SU)(n).is("in-stage",g.value),(0,l.SU)(n).is("hover",u.value),(0,l.SU)(n).is("animating",y.value),{[(0,l.SU)(n).em("item","card")]:(0,l.SU)(b)}]),style:(0,c.j5)((0,l.SU)(w)),onClick:T},[(0,l.SU)(b)?(0,s.wy)(((0,s.wg)(),(0,s.iD)("div",{key:0,class:(0,c.C_)((0,l.SU)(n).e("mask"))},null,2)),[[S.F8,!f.value]]):(0,s.kq)("v-if",!0),(0,s.WI)(e.$slots,"default")],6)),[[S.F8,h.value]])}});var Ht=(0,h.Z)(Vt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel-item.vue"]]);const Bt=(0,w.nz)(Lt,{CarouselItem:Ht}),$t=(0,w.dp)(Ht);var zt=n(7131),Wt=n(7925),qt=n(7401),Zt=n(493),Yt=n(7933),Kt=qt.Z?qt.Z.isConcatSpreadable:void 0;function Jt(e){return(0,Yt.Z)(e)||(0,Zt.Z)(e)||!!(Kt&&e&&e[Kt])}var Gt=Jt;function Xt(e,t,n,r,o){var i=-1,a=e.length;n||(n=Gt),o||(o=[]);while(++i<a){var s=e[i];t>0&&n(s)?t>1?Xt(s,t-1,n,r,o):(0,Wt.Z)(o,s):r||(o[o.length]=s)}return o}var Qt=Xt,en=1/0;function tn(e){var t=null==e?0:e.length;return t?Qt(e,en):[]}var nn=tn,rn=n(563),on=n(6174);const an={modelValue:{type:[Boolean,Number,String],default:()=>{}},label:{type:[String,Boolean,Number,Object]},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},tabindex:[String,Number],size:String},sn=()=>{const e=(0,s.f3)(rn.H,{}),t=(0,s.f3)(rn.K,{}),n=(0,s.f3)("CheckboxGroup",{}),r=(0,s.Fl)((()=>n&&"ElCheckboxGroup"===(null==n?void 0:n.name))),o=(0,s.Fl)((()=>t.size));return{isGroup:r,checkboxGroup:n,elForm:e,elFormItemSize:o,elFormItem:t}},ln=e=>{const t=(0,l.iH)(!1),{emit:n}=(0,s.FN)(),{isGroup:r,checkboxGroup:o}=sn(),i=(0,l.iH)(!1),a=(0,s.Fl)({get(){var n,i;return r.value?null==(n=o.modelValue)?void 0:n.value:null!=(i=e.modelValue)?i:t.value},set(e){var a;r.value&&Array.isArray(e)?(i.value=void 0!==o.max&&e.length>o.max.value,!1===i.value&&(null==(a=null==o?void 0:o.changeEvent)||a.call(o,e))):(n(V.f_,e),t.value=e)}});return{model:a,isLimitExceeded:i}},cn=(e,{model:t})=>{const{isGroup:n,checkboxGroup:r}=sn(),o=(0,l.iH)(!1),i=(0,on.tH)(null==r?void 0:r.checkboxGroupSize,{prop:!0}),a=(0,s.Fl)((()=>{const n=t.value;return"[object Boolean]"===(0,c.BF)(n)?n:Array.isArray(n)?n.includes(e.label):null!==n&&void 0!==n?n===e.trueLabel:!!n})),u=(0,on.tH)((0,s.Fl)((()=>{var e;return n.value?null==(e=null==r?void 0:r.checkboxGroupSize)?void 0:e.value:void 0})));return{isChecked:a,focus:o,size:i,checkboxSize:u}},un=(e,{model:t,isChecked:n})=>{const{elForm:r,isGroup:o,checkboxGroup:i}=sn(),a=(0,s.Fl)((()=>{var e,r;const o=null==(e=i.max)?void 0:e.value,a=null==(r=i.min)?void 0:r.value;return!(!o&&!a)&&t.value.length>=o&&!n.value||t.value.length<=a&&n.value})),l=(0,s.Fl)((()=>{var t,n;const s=e.disabled||r.disabled;return null!=(n=o.value?(null==(t=i.disabled)?void 0:t.value)||s||a.value:e.disabled||r.disabled)&&n}));return{isDisabled:l,isLimitDisabled:a}},dn=(e,{model:t})=>{function n(){Array.isArray(t.value)&&!t.value.includes(e.label)?t.value.push(e.label):t.value=e.trueLabel||!0}e.checked&&n()},pn=(e,{isLimitExceeded:t})=>{const{elFormItem:n}=sn(),{emit:r}=(0,s.FN)();function o(n){var o,i;if(t.value)return;const a=n.target,s=a.checked?null==(o=e.trueLabel)||o:null!=(i=e.falseLabel)&&i;r("change",s,n)}return(0,s.YP)((()=>e.modelValue),(()=>{var e;null==(e=n.validate)||e.call(n,"change").catch((e=>(0,v.N)(e)))})),{handleChange:o}},fn=e=>{const{model:t,isLimitExceeded:n}=ln(e),{focus:r,size:o,isChecked:i,checkboxSize:a}=cn(e,{model:t}),{isDisabled:s}=un(e,{model:t,isChecked:i}),{handleChange:l}=pn(e,{isLimitExceeded:n});return dn(e,{model:t}),{isChecked:i,isDisabled:s,checkboxSize:a,model:t,handleChange:l,focus:r,size:o}};var hn=n(4961);const mn=(0,s.aZ)({name:"ElCheckbox",props:{modelValue:{type:[Number,String,Boolean],default:()=>{}},label:{type:[String,Boolean,Number,Object]},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},controls:{type:String,default:void 0},border:Boolean,size:{type:String,validator:hn.P},tabindex:[String,Number]},emits:[V.f_,"change"],setup(e){const t=(0,m.s)("checkbox");return{ns:t,...fn(e)}}}),vn=["id","aria-controls"],gn=["tabindex","role","aria-checked"],yn=["aria-hidden","name","tabindex","disabled","true-value","false-value"],bn=["aria-hidden","disabled","value","name","tabindex"];function _n(e,t,n,r,o,i){return(0,s.wg)(),(0,s.iD)("label",{id:e.id,class:(0,c.C_)([e.ns.b(),e.ns.m(e.checkboxSize),e.ns.is("disabled",e.isDisabled),e.ns.is("bordered",e.border),e.ns.is("checked",e.isChecked)]),"aria-controls":e.indeterminate?e.controls:null},[(0,s._)("span",{class:(0,c.C_)([e.ns.e("input"),e.ns.is("disabled",e.isDisabled),e.ns.is("checked",e.isChecked),e.ns.is("indeterminate",e.indeterminate),e.ns.is("focus",e.focus)]),tabindex:e.indeterminate?0:void 0,role:e.indeterminate?"checkbox":void 0,"aria-checked":!!e.indeterminate&&"mixed"},[(0,s._)("span",{class:(0,c.C_)(e.ns.e("inner"))},null,2),e.trueLabel||e.falseLabel?(0,s.wy)(((0,s.wg)(),(0,s.iD)("input",{key:0,"onUpdate:modelValue":t[0]||(t[0]=t=>e.model=t),class:(0,c.C_)(e.ns.e("original")),type:"checkbox","aria-hidden":e.indeterminate?"true":"false",name:e.name,tabindex:e.tabindex,disabled:e.isDisabled,"true-value":e.trueLabel,"false-value":e.falseLabel,onChange:t[1]||(t[1]=(...t)=>e.handleChange&&e.handleChange(...t)),onFocus:t[2]||(t[2]=t=>e.focus=!0),onBlur:t[3]||(t[3]=t=>e.focus=!1)},null,42,yn)),[[S.e8,e.model]]):(0,s.wy)(((0,s.wg)(),(0,s.iD)("input",{key:1,"onUpdate:modelValue":t[4]||(t[4]=t=>e.model=t),class:(0,c.C_)(e.ns.e("original")),type:"checkbox","aria-hidden":e.indeterminate?"true":"false",disabled:e.isDisabled,value:e.label,name:e.name,tabindex:e.tabindex,onChange:t[5]||(t[5]=(...t)=>e.handleChange&&e.handleChange(...t)),onFocus:t[6]||(t[6]=t=>e.focus=!0),onBlur:t[7]||(t[7]=t=>e.focus=!1)},null,42,bn)),[[S.e8,e.model]])],10,gn),e.$slots.default||e.label?((0,s.wg)(),(0,s.iD)("span",{key:0,class:(0,c.C_)(e.ns.e("label"))},[(0,s.WI)(e.$slots,"default"),e.$slots.default?(0,s.kq)("v-if",!0):((0,s.wg)(),(0,s.iD)(s.HY,{key:0},[(0,s.Uk)((0,c.zw)(e.label),1)],2112))],2)):(0,s.kq)("v-if",!0)],10,vn)}var wn=(0,h.Z)(mn,[["render",_n],["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue"]]);const kn=(0,s.aZ)({name:"ElCheckboxButton",props:an,emits:[V.f_,"change"],setup(e){const{focus:t,isChecked:n,isDisabled:r,size:o,model:i,handleChange:a}=fn(e),{checkboxGroup:l}=sn(),c=(0,m.s)("checkbox"),u=(0,s.Fl)((()=>{var e,t,n,r;const o=null!=(t=null==(e=null==l?void 0:l.fill)?void 0:e.value)?t:"";return{backgroundColor:o,borderColor:o,color:null!=(r=null==(n=null==l?void 0:l.textColor)?void 0:n.value)?r:"",boxShadow:o?`-1px 0 0 0 ${o}`:null}}));return{focus:t,isChecked:n,isDisabled:r,model:i,handleChange:a,activeStyle:u,size:o,ns:c}}}),Sn=["aria-checked","aria-disabled"],Cn=["name","tabindex","disabled","true-value","false-value"],xn=["name","tabindex","disabled","value"];function In(e,t,n,r,o,i){return(0,s.wg)(),(0,s.iD)("label",{class:(0,c.C_)([e.ns.b("button"),e.ns.bm("button",e.size),e.ns.is("disabled",e.isDisabled),e.ns.is("checked",e.isChecked),e.ns.is("focus",e.focus)]),role:"checkbox","aria-checked":e.isChecked,"aria-disabled":e.isDisabled},[e.trueLabel||e.falseLabel?(0,s.wy)(((0,s.wg)(),(0,s.iD)("input",{key:0,"onUpdate:modelValue":t[0]||(t[0]=t=>e.model=t),class:(0,c.C_)(e.ns.be("button","original")),type:"checkbox",name:e.name,tabindex:e.tabindex,disabled:e.isDisabled,"true-value":e.trueLabel,"false-value":e.falseLabel,onChange:t[1]||(t[1]=(...t)=>e.handleChange&&e.handleChange(...t)),onFocus:t[2]||(t[2]=t=>e.focus=!0),onBlur:t[3]||(t[3]=t=>e.focus=!1)},null,42,Cn)),[[S.e8,e.model]]):(0,s.wy)(((0,s.wg)(),(0,s.iD)("input",{key:1,"onUpdate:modelValue":t[4]||(t[4]=t=>e.model=t),class:(0,c.C_)(e.ns.be("button","original")),type:"checkbox",name:e.name,tabindex:e.tabindex,disabled:e.isDisabled,value:e.label,onChange:t[5]||(t[5]=(...t)=>e.handleChange&&e.handleChange(...t)),onFocus:t[6]||(t[6]=t=>e.focus=!0),onBlur:t[7]||(t[7]=t=>e.focus=!1)},null,42,xn)),[[S.e8,e.model]]),e.$slots.default||e.label?((0,s.wg)(),(0,s.iD)("span",{key:2,class:(0,c.C_)(e.ns.be("button","inner")),style:(0,c.j5)(e.isChecked?e.activeStyle:null)},[(0,s.WI)(e.$slots,"default",{},(()=>[(0,s.Uk)((0,c.zw)(e.label),1)]))],6)):(0,s.kq)("v-if",!0)],10,Sn)}var Tn=(0,h.Z)(kn,[["render",In],["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-button.vue"]]);const En=(0,s.aZ)({name:"ElCheckboxGroup",props:{modelValue:{type:Array,default:()=>[]},disabled:Boolean,min:{type:Number,default:void 0},max:{type:Number,default:void 0},size:{type:String,validator:hn.P},fill:{type:String,default:void 0},textColor:{type:String,default:void 0},tag:{type:String,default:"div"}},emits:[V.f_,"change"],setup(e,{emit:t,slots:n}){const{elFormItem:r}=sn(),o=(0,on.tH)(),i=(0,m.s)("checkbox"),a=e=>{t(V.f_,e),(0,s.Y3)((()=>{t("change",e)}))},c=(0,s.Fl)({get(){return e.modelValue},set(e){a(e)}});return(0,s.JJ)("CheckboxGroup",{name:"ElCheckboxGroup",modelValue:c,...(0,l.BK)(e),checkboxGroupSize:o,changeEvent:a}),(0,s.YP)((()=>e.modelValue),(()=>{var e;null==(e=r.validate)||e.call(r,"change").catch((e=>(0,v.N)(e)))})),()=>(0,s.h)(e.tag,{class:i.b("group"),role:"group","aria-label":"checkbox-group"},[(0,s.WI)(n,"default")])}});var Rn=(0,h.Z)(En,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-group.vue"]]);const Pn=(0,w.nz)(wn,{CheckboxButton:Tn,CheckboxGroup:Rn}),On=(0,w.dp)(Tn),An=(0,w.dp)(Rn),Dn=Symbol("radioGroupKey"),Nn=(0,d.o8)({size:on.Pp,disabled:Boolean,label:{type:[String,Number,Boolean],default:""}}),Mn=(0,d.o8)({...Nn,modelValue:{type:[String,Number,Boolean],default:""},name:{type:String,default:""},border:Boolean}),Ln={[V.f_]:e=>(0,c.HD)(e)||(0,ne.hj)(e)||(0,ne.jn)(e),change:e=>(0,c.HD)(e)||(0,ne.hj)(e)||(0,ne.jn)(e)},Fn=(e,t)=>{const n=(0,l.iH)(),r=(0,s.f3)(Dn,void 0),o=(0,s.Fl)((()=>!!r)),i=(0,s.Fl)({get(){return o.value?r.modelValue:e.modelValue},set(i){o.value?r.changeEvent(i):t(V.f_,i),n.value.checked=e.modelValue===e.label}}),a=(0,on.tH)((0,s.Fl)((()=>null==r?void 0:r.size))),c=(0,on.B4)((0,s.Fl)((()=>null==r?void 0:r.disabled))),u=(0,l.iH)(!1),d=(0,s.Fl)((()=>c.value||o.value&&i.value!==e.label?-1:0));return{radioRef:n,isGroup:o,radioGroup:r,focus:u,size:a,disabled:c,tabIndex:d,modelValue:i}},Un=(0,s.aZ)({name:"ElRadio",props:Mn,emits:Ln,setup(e,{emit:t}){const n=(0,m.s)("radio"),{radioRef:r,isGroup:o,focus:i,size:a,disabled:l,tabIndex:c,modelValue:u}=Fn(e,t);function d(){(0,s.Y3)((()=>t("change",u.value)))}return{ns:n,focus:i,isGroup:o,modelValue:u,tabIndex:c,size:a,disabled:l,radioRef:r,handleChange:d}}}),jn=["aria-checked","aria-disabled","tabindex"],Vn=["value","name","disabled"];function Hn(e,t,n,r,o,i){return(0,s.wg)(),(0,s.iD)("label",{class:(0,c.C_)([e.ns.b(),e.ns.is("disabled",e.disabled),e.ns.is("focus",e.focus),e.ns.is("bordered",e.border),e.ns.is("checked",e.modelValue===e.label),e.ns.m(e.size)]),role:"radio","aria-checked":e.modelValue===e.label,"aria-disabled":e.disabled,tabindex:e.tabIndex,onKeydown:t[5]||(t[5]=(0,S.D2)((0,S.iM)((t=>e.modelValue=e.disabled?e.modelValue:e.label),["stop","prevent"]),["space"]))},[(0,s._)("span",{class:(0,c.C_)([e.ns.e("input"),e.ns.is("disabled",e.disabled),e.ns.is("checked",e.modelValue===e.label)])},[(0,s._)("span",{class:(0,c.C_)(e.ns.e("inner"))},null,2),(0,s.wy)((0,s._)("input",{ref:"radioRef","onUpdate:modelValue":t[0]||(t[0]=t=>e.modelValue=t),class:(0,c.C_)(e.ns.e("original")),value:e.label,type:"radio","aria-hidden":"true",name:e.name,disabled:e.disabled,tabindex:"-1",onFocus:t[1]||(t[1]=t=>e.focus=!0),onBlur:t[2]||(t[2]=t=>e.focus=!1),onChange:t[3]||(t[3]=(...t)=>e.handleChange&&e.handleChange(...t))},null,42,Vn),[[S.G2,e.modelValue]])],2),(0,s._)("span",{class:(0,c.C_)(e.ns.e("label")),onKeydown:t[4]||(t[4]=(0,S.iM)((()=>{}),["stop"]))},[(0,s.WI)(e.$slots,"default",{},(()=>[(0,s.Uk)((0,c.zw)(e.label),1)]))],34)],42,jn)}var Bn=(0,h.Z)(Un,[["render",Hn],["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio.vue"]]);const $n=(0,d.o8)({...Nn,name:{type:String,default:""}}),zn=(0,s.aZ)({name:"ElRadioButton",props:$n,setup(e,{emit:t}){const n=(0,m.s)("radio"),{radioRef:r,isGroup:o,focus:i,size:a,disabled:l,tabIndex:c,modelValue:u,radioGroup:d}=Fn(e,t),p=(0,s.Fl)((()=>({backgroundColor:(null==d?void 0:d.fill)||"",borderColor:(null==d?void 0:d.fill)||"",boxShadow:(null==d?void 0:d.fill)?`-1px 0 0 0 ${d.fill}`:"",color:(null==d?void 0:d.textColor)||""})));return{ns:n,isGroup:o,size:a,disabled:l,tabIndex:c,modelValue:u,focus:i,activeStyle:p,radioRef:r}}}),Wn=["aria-checked","aria-disabled","tabindex"],qn=["value","name","disabled"];function Zn(e,t,n,r,o,i){return(0,s.wg)(),(0,s.iD)("label",{class:(0,c.C_)([e.ns.b("button"),e.ns.is("active",e.modelValue===e.label),e.ns.is("disabled",e.disabled),e.ns.is("focus",e.focus),e.ns.bm("button",e.size)]),role:"radio","aria-checked":e.modelValue===e.label,"aria-disabled":e.disabled,tabindex:e.tabIndex,onKeydown:t[4]||(t[4]=(0,S.D2)((0,S.iM)((t=>e.modelValue=e.disabled?e.modelValue:e.label),["stop","prevent"]),["space"]))},[(0,s.wy)((0,s._)("input",{ref:"radioRef","onUpdate:modelValue":t[0]||(t[0]=t=>e.modelValue=t),class:(0,c.C_)(e.ns.be("button","original-radio")),value:e.label,type:"radio",name:e.name,disabled:e.disabled,tabindex:"-1",onFocus:t[1]||(t[1]=t=>e.focus=!0),onBlur:t[2]||(t[2]=t=>e.focus=!1)},null,42,qn),[[S.G2,e.modelValue]]),(0,s._)("span",{class:(0,c.C_)(e.ns.be("button","inner")),style:(0,c.j5)(e.modelValue===e.label?e.activeStyle:{}),onKeydown:t[3]||(t[3]=(0,S.iM)((()=>{}),["stop"]))},[(0,s.WI)(e.$slots,"default",{},(()=>[(0,s.Uk)((0,c.zw)(e.label),1)]))],38)],42,Wn)}var Yn=(0,h.Z)(zn,[["render",Zn],["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-button.vue"]]);const Kn=(0,d.o8)({size:on.Pp,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:""},fill:{type:String,default:""},textColor:{type:String,default:""}}),Jn=Ln;var Gn=n(95),Xn=n(9619);const Qn=(0,s.aZ)({name:"ElRadioGroup",props:Kn,emits:Jn,setup(e,t){const n=(0,m.s)("radio"),r=(0,l.iH)(),{formItem:o}=(0,Gn.A)(),i=e=>{t.emit(V.f_,e),(0,s.Y3)((()=>t.emit("change",e)))},a=e=>{if(!r.value)return;const t=e.target,n="INPUT"===t.nodeName?"[type=radio]":"[role=radio]",o=r.value.querySelectorAll(n),i=o.length,a=Array.from(o).indexOf(t),s=r.value.querySelectorAll("[role=radio]");let l=null;switch(e.code){case Xn.n.left:case Xn.n.up:e.stopPropagation(),e.preventDefault(),l=0===a?i-1:a-1;break;case Xn.n.right:case Xn.n.down:e.stopPropagation(),e.preventDefault(),l=a===i-1?0:a+1;break;default:break}null!==l&&(s[l].click(),s[l].focus())};return(0,s.bv)((()=>{const e=r.value.querySelectorAll("[type=radio]"),t=e[0];!Array.from(e).some((e=>e.checked))&&t&&(t.tabIndex=0)})),(0,s.JJ)(Dn,(0,l.qj)({...(0,l.BK)(e),changeEvent:i})),(0,s.YP)((()=>e.modelValue),(()=>null==o?void 0:o.validate("change").catch((e=>(0,v.N)(e))))),{ns:n,radioGroupRef:r,handleKeydown:a}}});function er(e,t,n,r,o,i){return(0,s.wg)(),(0,s.iD)("div",{ref:"radioGroupRef",class:(0,c.C_)(e.ns.b("group")),role:"radiogroup",onKeydown:t[0]||(t[0]=(...t)=>e.handleKeydown&&e.handleKeydown(...t))},[(0,s.WI)(e.$slots,"default")],34)}var tr=(0,h.Z)(Qn,[["render",er],["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-group.vue"]]);const nr=(0,w.nz)(Bn,{RadioButton:Yn,RadioGroup:tr}),rr=(0,w.dp)(tr),or=(0,w.dp)(Yn),ir=(0,s.aZ)({name:"Check"}),ar={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},sr=(0,s._)("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"},null,-1),lr=[sr];function cr(e,t,n,r,o,i){return(0,s.wg)(),(0,s.iD)("svg",ar,lr)}var ur=(0,ce.Z)(ir,[["render",cr]]),dr=(0,s.aZ)({name:"NodeContent",setup(){const e=(0,m.s)("cascader-node");return{ns:e}},render(){const{ns:e}=this,{node:t,panel:n}=this.$parent,{data:r,label:o}=t,{renderLabelFn:i}=n;return(0,s.h)("span",{class:e.e("label")},i?i({node:t,data:r}):o)}});const pr=Symbol(),fr=(0,s.aZ)({name:"ElCascaderNode",components:{ElCheckbox:Pn,ElRadio:nr,NodeContent:dr,ElIcon:C.gn,Check:ur,Loading:U.Z,ArrowRight:Tt},props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup(e,{emit:t}){const n=(0,s.f3)(pr),r=(0,m.s)("cascader-node"),o=(0,s.Fl)((()=>n.isHoverMenu)),i=(0,s.Fl)((()=>n.config.multiple)),a=(0,s.Fl)((()=>n.config.checkStrictly)),l=(0,s.Fl)((()=>{var e;return null==(e=n.checkedNodes[0])?void 0:e.uid})),c=(0,s.Fl)((()=>e.node.isDisabled)),u=(0,s.Fl)((()=>e.node.isLeaf)),d=(0,s.Fl)((()=>a.value&&!u.value||!c.value)),p=(0,s.Fl)((()=>h(n.expandingNode))),f=(0,s.Fl)((()=>a.value&&n.checkedNodes.some(h))),h=t=>{var n;const{level:r,uid:o}=e.node;return(null==(n=null==t?void 0:t.pathNodes[r-1])?void 0:n.uid)===o},v=()=>{p.value||n.expandNode(e.node)},g=t=>{const{node:r}=e;t!==r.checked&&n.handleCheckChange(r,t)},y=()=>{n.lazyLoad(e.node,(()=>{u.value||v()}))},b=e=>{o.value&&(_(),!u.value&&t("expand",e))},_=()=>{const{node:t}=e;d.value&&!t.loading&&(t.loaded?v():y())},w=()=>{o.value&&!u.value||(!u.value||c.value||a.value||i.value?_():S(!0))},k=t=>{a.value?(g(t),e.node.loaded&&v()):S(t)},S=t=>{e.node.loaded?(g(t),!a.value&&v()):y()};return{panel:n,isHoverMenu:o,multiple:i,checkStrictly:a,checkedNodeId:l,isDisabled:c,isLeaf:u,expandable:d,inExpandingPath:p,inCheckedPath:f,ns:r,handleHoverExpand:b,handleExpand:_,handleClick:w,handleCheck:S,handleSelectCheck:k}}}),hr=["id","aria-haspopup","aria-owns","aria-expanded","tabindex"],mr=(0,s._)("span",null,null,-1);function vr(e,t,n,r,o,i){const a=(0,s.up)("el-checkbox"),l=(0,s.up)("el-radio"),u=(0,s.up)("check"),d=(0,s.up)("el-icon"),p=(0,s.up)("node-content"),f=(0,s.up)("loading"),h=(0,s.up)("arrow-right");return(0,s.wg)(),(0,s.iD)("li",{id:`${e.menuId}-${e.node.uid}`,role:"menuitem","aria-haspopup":!e.isLeaf,"aria-owns":e.isLeaf?null:e.menuId,"aria-expanded":e.inExpandingPath,tabindex:e.expandable?-1:void 0,class:(0,c.C_)([e.ns.b(),e.ns.is("selectable",e.checkStrictly),e.ns.is("active",e.node.checked),e.ns.is("disabled",!e.expandable),e.inExpandingPath&&"in-active-path",e.inCheckedPath&&"in-checked-path"]),onMouseenter:t[2]||(t[2]=(...t)=>e.handleHoverExpand&&e.handleHoverExpand(...t)),onFocus:t[3]||(t[3]=(...t)=>e.handleHoverExpand&&e.handleHoverExpand(...t)),onClick:t[4]||(t[4]=(...t)=>e.handleClick&&e.handleClick(...t))},[(0,s.kq)(" prefix "),e.multiple?((0,s.wg)(),(0,s.j4)(a,{key:0,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:e.isDisabled,onClick:t[0]||(t[0]=(0,S.iM)((()=>{}),["stop"])),"onUpdate:modelValue":e.handleSelectCheck},null,8,["model-value","indeterminate","disabled","onUpdate:modelValue"])):e.checkStrictly?((0,s.wg)(),(0,s.j4)(l,{key:1,"model-value":e.checkedNodeId,label:e.node.uid,disabled:e.isDisabled,"onUpdate:modelValue":e.handleSelectCheck,onClick:t[1]||(t[1]=(0,S.iM)((()=>{}),["stop"]))},{default:(0,s.w5)((()=>[(0,s.kq)("\n Add an empty element to avoid render label,\n do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485\n "),mr])),_:1},8,["model-value","label","disabled","onUpdate:modelValue"])):e.isLeaf&&e.node.checked?((0,s.wg)(),(0,s.j4)(d,{key:2,class:(0,c.C_)(e.ns.e("prefix"))},{default:(0,s.w5)((()=>[(0,s.Wm)(u)])),_:1},8,["class"])):(0,s.kq)("v-if",!0),(0,s.kq)(" content "),(0,s.Wm)(p),(0,s.kq)(" postfix "),e.isLeaf?(0,s.kq)("v-if",!0):((0,s.wg)(),(0,s.iD)(s.HY,{key:3},[e.node.loading?((0,s.wg)(),(0,s.j4)(d,{key:0,class:(0,c.C_)([e.ns.is("loading"),e.ns.e("postfix")])},{default:(0,s.w5)((()=>[(0,s.Wm)(f)])),_:1},8,["class"])):((0,s.wg)(),(0,s.j4)(d,{key:1,class:(0,c.C_)(["arrow-right",e.ns.e("postfix")])},{default:(0,s.w5)((()=>[(0,s.Wm)(h)])),_:1},8,["class"]))],2112))],42,hr)}var gr=(0,h.Z)(fr,[["render",vr],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/node.vue"]]);const yr=(0,s.aZ)({name:"ElCascaderMenu",components:{Loading:U.Z,ElIcon:C.gn,ElScrollbar:L.Mr,ElCascaderNode:gr},props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=(0,s.FN)(),n=(0,m.s)("cascader-menu"),{t:r}=(0,Ye.bU)(),o=(0,W.O)();let i=null,a=null;const c=(0,s.f3)(pr),u=(0,l.iH)(null),d=(0,s.Fl)((()=>!e.nodes.length)),p=(0,s.Fl)((()=>!c.initialLoaded)),f=(0,s.Fl)((()=>`cascader-menu-${o}-${e.index}`)),h=e=>{i=e.target},v=e=>{if(c.isHoverMenu&&i&&u.value)if(i.contains(e.target)){g();const n=t.vnode.el,{left:r}=n.getBoundingClientRect(),{offsetWidth:o,offsetHeight:a}=n,s=e.clientX-r,l=i.offsetTop,c=l+i.offsetHeight;u.value.innerHTML=`\n <path style="pointer-events: auto;" fill="transparent" d="M${s} ${l} L${o} 0 V${l} Z" />\n <path style="pointer-events: auto;" fill="transparent" d="M${s} ${c} L${o} ${a} V${c} Z" />\n `}else a||(a=window.setTimeout(y,c.config.hoverThreshold))},g=()=>{a&&(clearTimeout(a),a=null)},y=()=>{u.value&&(u.value.innerHTML="",g())};return{ns:n,panel:c,hoverZone:u,isEmpty:d,isLoading:p,menuId:f,t:r,handleExpand:h,handleMouseMove:v,clearHoverZone:y}}});function br(e,t,n,r,o,i){const a=(0,s.up)("el-cascader-node"),l=(0,s.up)("loading"),u=(0,s.up)("el-icon"),d=(0,s.up)("el-scrollbar");return(0,s.wg)(),(0,s.j4)(d,{key:e.menuId,tag:"ul",role:"menu",class:(0,c.C_)(e.ns.b()),"wrap-class":e.ns.e("wrap"),"view-class":[e.ns.e("list"),e.ns.is("empty",e.isEmpty)],onMousemove:e.handleMouseMove,onMouseleave:e.clearHoverZone},{default:(0,s.w5)((()=>{var t;return[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e.nodes,(t=>((0,s.wg)(),(0,s.j4)(a,{key:t.uid,node:t,"menu-id":e.menuId,onExpand:e.handleExpand},null,8,["node","menu-id","onExpand"])))),128)),e.isLoading?((0,s.wg)(),(0,s.iD)("div",{key:0,class:(0,c.C_)(e.ns.e("empty-text"))},[(0,s.Wm)(u,{size:"14",class:(0,c.C_)(e.ns.is("loading"))},{default:(0,s.w5)((()=>[(0,s.Wm)(l)])),_:1},8,["class"]),(0,s.Uk)(" "+(0,c.zw)(e.t("el.cascader.loading")),1)],2)):e.isEmpty?((0,s.wg)(),(0,s.iD)("div",{key:1,class:(0,c.C_)(e.ns.e("empty-text"))},(0,c.zw)(e.t("el.cascader.noData")),3)):(null==(t=e.panel)?void 0:t.isHoverMenu)?((0,s.wg)(),(0,s.iD)("svg",{key:2,ref:"hoverZone",class:(0,c.C_)(e.ns.e("hover-zone"))},null,2)):(0,s.kq)("v-if",!0)]})),_:1},8,["class","wrap-class","view-class","onMousemove","onMouseleave"])}var _r=(0,h.Z)(yr,[["render",br],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/menu.vue"]]),wr=(e=>(e["CLICK"]="click",e["HOVER"]="hover",e))(wr||{});let kr=0;const Sr=e=>{const t=[e];let{parent:n}=e;while(n)t.unshift(n),n=n.parent;return t};class Cr{constructor(e,t,n,r=!1){this.data=e,this.config=t,this.parent=n,this.root=r,this.uid=kr++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:o,label:i,children:a}=t,s=e[a],l=Sr(this);this.level=r?0:n?n.level+1:1,this.value=e[o],this.label=e[i],this.pathNodes=l,this.pathValues=l.map((e=>e.value)),this.pathLabels=l.map((e=>e.label)),this.childrenData=s,this.children=(s||[]).map((e=>new Cr(e,t,this))),this.loaded=!t.lazy||this.isLeaf||!(0,Ut.xb)(s)}get isDisabled(){const{data:e,parent:t,config:n}=this,{disabled:r,checkStrictly:o}=n,i=(0,c.mf)(r)?r(e,this):!!e[r];return i||!o&&(null==t?void 0:t.isDisabled)}get isLeaf(){const{data:e,config:t,childrenData:n,loaded:r}=this,{lazy:o,leaf:i}=t,a=(0,c.mf)(i)?i(e,this):e[i];return(0,Ut.o8)(a)?!(o&&!r)&&!(Array.isArray(n)&&n.length):!!a}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(e){const{childrenData:t,children:n}=this,r=new Cr(e,this.config,this);return Array.isArray(t)?t.push(e):this.childrenData=[e],n.push(r),r}calcText(e,t){const n=e?this.pathLabels.join(t):this.label;return this.text=n,n}broadcast(e,...t){const n=`onParent${(0,c.kC)(e)}`;this.children.forEach((r=>{r&&(r.broadcast(e,...t),r[n]&&r[n](...t))}))}emit(e,...t){const{parent:n}=this,r=`onChild${(0,c.kC)(e)}`;n&&(n[r]&&n[r](...t),n.emit(e,...t))}onParentCheck(e){this.isDisabled||this.setCheckState(e)}onChildCheck(){const{children:e}=this,t=e.filter((e=>!e.isDisabled)),n=!!t.length&&t.every((e=>e.checked));this.setCheckState(n)}setCheckState(e){const t=this.children.length,n=this.children.reduce(((e,t)=>{const n=t.checked?1:t.indeterminate?.5:0;return e+n}),0);this.checked=this.loaded&&this.children.every((e=>e.loaded&&e.checked))&&e,this.indeterminate=this.loaded&&n!==t&&n>0}doCheck(e){if(this.checked===e)return;const{checkStrictly:t,multiple:n}=this.config;t||!n?this.checked=e:(this.broadcast("check",e),this.setCheckState(e),this.emit("check"))}}const xr=(e,t)=>e.reduce(((e,n)=>(n.isLeaf?e.push(n):(!t&&e.push(n),e=e.concat(xr(n.children,t))),e)),[]);class Ir{constructor(e,t){this.config=t;const n=(e||[]).map((e=>new Cr(e,this.config)));this.nodes=n,this.allNodes=xr(n,!1),this.leafNodes=xr(n,!0)}getNodes(){return this.nodes}getFlattedNodes(e){return e?this.leafNodes:this.allNodes}appendNode(e,t){const n=t?t.appendChild(e):new Cr(e,this.config);t||this.nodes.push(n),this.allNodes.push(n),n.isLeaf&&this.leafNodes.push(n)}appendNodes(e,t){e.forEach((e=>this.appendNode(e,t)))}getNodeByValue(e,t=!1){if(!e&&0!==e)return null;const n=this.getFlattedNodes(t).find((t=>(0,zt.Z)(t.value,e)||(0,zt.Z)(t.pathValues,e)));return n||null}getSameNode(e){if(!e)return null;const t=this.getFlattedNodes(!1).find((({value:t,level:n})=>(0,zt.Z)(e.value,t)&&e.level===n));return t||null}}const Tr={modelValue:[Number,String,Array],options:{type:Array,default:()=>[]},props:{type:Object,default:()=>({})}},Er={expandTrigger:wr.CLICK,multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:c.dG,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},Rr=e=>(0,s.Fl)((()=>({...Er,...e.props}))),Pr='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',Or=e=>{const t=getComputedStyle(e);return"fixed"!==t.position&&null!==e.offsetParent},Ar=e=>Array.from(e.querySelectorAll(Pr)).filter((e=>Dr(e)&&Or(e))),Dr=e=>{if(e.tabIndex>0||0===e.tabIndex&&null!==e.getAttribute("tabIndex"))return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&"ignore"!==e.rel;case"INPUT":return!("hidden"===e.type||"file"===e.type);case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},Nr=function(e,t,...n){let r;r=t.includes("mouse")||t.includes("click")?"MouseEvents":t.includes("key")?"KeyboardEvent":"HTMLEvents";const o=document.createEvent(r);return o.initEvent(t,...n),e.dispatchEvent(o),e},Mr=e=>!e.getAttribute("aria-owns"),Lr=(e,t,n)=>{const{parentNode:r}=e;if(!r)return null;const o=r.querySelectorAll(n),i=Array.prototype.indexOf.call(o,e);return o[i+t]||null},Fr=e=>{e&&(e.focus(),!Mr(e)&&e.click())},Ur=e=>{if(!e)return 0;const t=e.id.split("-");return Number(t[t.length-2])},jr=e=>{if(!e)return;const t=e.querySelector("input");t?t.click():Mr(e)&&e.click()},Vr=(e,t)=>{const n=t.slice(0),r=n.map((e=>e.uid)),o=e.reduce(((e,t)=>{const o=r.indexOf(t.uid);return o>-1&&(e.push(t),n.splice(o,1),r.splice(o,1)),e}),[]);return o.push(...n),o},Hr=e=>[...new Set(e)],Br=e=>e||0===e?Array.isArray(e)?e:[e]:[],$r=(0,s.aZ)({name:"ElCascaderPanel",components:{ElCascaderMenu:_r},props:{...Tr,border:{type:Boolean,default:!0},renderLabel:Function},emits:[V.f_,V.O7,"close","expand-change"],setup(e,{emit:t,slots:n}){let r=!1;const o=(0,m.s)("cascader"),i=Rr(e);let a=null;const c=(0,l.iH)(!0),u=(0,l.iH)([]),d=(0,l.iH)(null),p=(0,l.iH)([]),f=(0,l.iH)(null),h=(0,l.iH)([]),v=(0,s.Fl)((()=>i.value.expandTrigger===wr.HOVER)),y=(0,s.Fl)((()=>e.renderLabel||n.default)),b=()=>{const{options:t}=e,n=i.value;r=!1,a=new Ir(t,n),p.value=[a.getNodes()],n.lazy&&(0,Ut.xb)(e.options)?(c.value=!1,_(void 0,(e=>{e&&(a=new Ir(e,n),p.value=[a.getNodes()]),c.value=!0,E(!1,!0)}))):E(!1,!0)},_=(e,t)=>{const n=i.value;e=e||new Cr({},n,void 0,!0),e.loading=!0;const r=n=>{const r=e,o=r.root?null:r;n&&(null==a||a.appendNodes(n,o)),r.loading=!1,r.loaded=!0,r.childrenData=r.childrenData||[],t&&t(n)};n.lazyLoad(e,r)},w=(e,n)=>{var r;const{level:o}=e,i=p.value.slice(0,o);let a;e.isLeaf?a=e.pathNodes[o-2]:(a=e,i.push(e.children)),(null==(r=f.value)?void 0:r.uid)!==(null==a?void 0:a.uid)&&(f.value=e,p.value=i,!n&&t("expand-change",(null==e?void 0:e.pathValues)||[]))},k=(e,n,o=!0)=>{const{checkStrictly:a,multiple:s}=i.value,l=h.value[0];r=!0,!s&&(null==l||l.doCheck(!1)),e.doCheck(n),T(),o&&!s&&!a&&t("close"),!o&&!s&&!a&&S(e)},S=e=>{e&&(e=e.parent,S(e),e&&w(e))},C=e=>null==a?void 0:a.getFlattedNodes(e),x=e=>{var t;return null==(t=C(e))?void 0:t.filter((e=>!1!==e.checked))},I=()=>{h.value.forEach((e=>e.doCheck(!1))),T()},T=()=>{var e;const{checkStrictly:t,multiple:n}=i.value,r=h.value,o=x(!t),a=Vr(r,o),s=a.map((e=>e.valueByOption));h.value=a,d.value=n?s:null!=(e=s[0])?e:null},E=(t=!1,n=!1)=>{const{modelValue:o}=e,{lazy:s,multiple:l,checkStrictly:u}=i.value,p=!u;if(c.value&&!r&&(n||!(0,zt.Z)(o,d.value)))if(s&&!t){const e=Hr(nn(Br(o))),t=e.map((e=>null==a?void 0:a.getNodeByValue(e))).filter((e=>!!e&&!e.loaded&&!e.loading));t.length?t.forEach((e=>{_(e,(()=>E(!1,n)))})):E(!0,n)}else{const e=l?Br(o):[o],t=Hr(e.map((e=>null==a?void 0:a.getNodeByValue(e,p))));R(t,!1),d.value=o}},R=(e,t=!0)=>{const{checkStrictly:n}=i.value,r=h.value,o=e.filter((e=>!!e&&(n||e.isLeaf))),l=null==a?void 0:a.getSameNode(f.value),c=t&&l||o[0];c?c.pathNodes.forEach((e=>w(e,!0))):f.value=null,r.forEach((e=>e.doCheck(!1))),o.forEach((e=>e.doCheck(!0))),h.value=o,(0,s.Y3)(P)},P=()=>{ne.C5&&u.value.forEach((e=>{const t=null==e?void 0:e.$el;if(t){const e=t.querySelector(`.${o.namespace.value}-scrollbar__wrap`),n=t.querySelector(`.${o.b("node")}.${o.is("active")}`)||t.querySelector(`.${o.b("node")}.in-active-path`);(0,g.zT)(e,n)}}))},O=e=>{const n=e.target,{code:r}=e;switch(r){case Xn.n.up:case Xn.n.down:{e.preventDefault();const t=r===Xn.n.up?-1:1;Fr(Lr(n,t,`.${o.b("node")}[tabindex="-1"]`));break}case Xn.n.left:{e.preventDefault();const t=u.value[Ur(n)-1],r=null==t?void 0:t.$el.querySelector(`.${o.b("node")}[aria-expanded="true"]`);Fr(r);break}case Xn.n.right:{e.preventDefault();const t=u.value[Ur(n)+1],r=null==t?void 0:t.$el.querySelector(`.${o.b("node")}[tabindex="-1"]`);Fr(r);break}case Xn.n.enter:jr(n);break;case Xn.n.esc:case Xn.n.tab:t("close");break}};return(0,s.JJ)(pr,(0,l.qj)({config:i,expandingNode:f,checkedNodes:h,isHoverMenu:v,initialLoaded:c,renderLabelFn:y,lazyLoad:_,expandNode:w,handleCheckChange:k})),(0,s.YP)([i,()=>e.options],b,{deep:!0,immediate:!0}),(0,s.YP)((()=>e.modelValue),(()=>{r=!1,E()})),(0,s.YP)(d,(n=>{(0,zt.Z)(n,e.modelValue)||(t(V.f_,n),t(V.O7,n))})),(0,s.Xn)((()=>u.value=[])),(0,s.bv)((()=>!(0,Ut.xb)(e.modelValue)&&E())),{ns:o,menuList:u,menus:p,checkedNodes:h,handleKeyDown:O,handleCheckChange:k,getFlattedNodes:C,getCheckedNodes:x,clearCheckedNodes:I,calculateCheckedValue:T,scrollToExpandingNode:P}}});function zr(e,t,n,r,o,i){const a=(0,s.up)("el-cascader-menu");return(0,s.wg)(),(0,s.iD)("div",{class:(0,c.C_)([e.ns.b("panel"),e.ns.is("bordered",e.border)]),onKeydown:t[0]||(t[0]=(...t)=>e.handleKeyDown&&e.handleKeyDown(...t))},[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e.menus,((t,n)=>((0,s.wg)(),(0,s.j4)(a,{key:n,ref_for:!0,ref:t=>e.menuList[n]=t,index:n,nodes:[...t]},null,8,["index","nodes"])))),128))],34)}var Wr=(0,h.Z)($r,[["render",zr],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/index.vue"]]);Wr.install=e=>{e.component(Wr.name,Wr)};const qr=Wr,Zr=qr;var Yr=n(9971),Kr=n(4397);const Jr=(0,s.aZ)({name:"ArrowDown"}),Gr={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Xr=(0,s._)("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"},null,-1),Qr=[Xr];function eo(e,t,n,r,o,i){return(0,s.wg)(),(0,s.iD)("svg",Gr,Qr)}var to=(0,ce.Z)(Jr,[["render",eo]]),no=n(8731),ro=n(5928),oo=n(3356),io=n(4770);const ao=40,so={large:36,default:32,small:28},lo={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:e})=>{const{modifiersData:t,placement:n}=e;["right","left","bottom","top"].includes(n)||(t.arrow.x=35)},requires:["arrow"]}]},co="ElCascader",uo=(0,s.aZ)({name:co,components:{ElCascaderPanel:qr,ElInput:M.EZ,ElTooltip:F.Q0,ElScrollbar:L.Mr,ElTag:Yr.Ks,ElIcon:C.gn,CircleClose:Kr.Z,Check:ur,ArrowDown:to},directives:{Clickoutside:no.Z},props:{...Tr,size:{type:String,validator:hn.P},placeholder:{type:String},disabled:Boolean,clearable:Boolean,filterable:Boolean,filterMethod:{type:Function,default:(e,t)=>e.text.includes(t)},separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},debounce:{type:Number,default:300},beforeFilter:{type:Function,default:()=>!0},popperClass:{type:String,default:""},popperAppendToBody:{type:Boolean,default:void 0},teleported:j.sp.teleported,tagType:{...ro.F.type,default:"info"}},emits:[V.f_,V.O7,"focus","blur","visible-change","expand-change","remove-tag"],setup(e,{emit:t}){let n=0,r=0;const{compatTeleported:o}=(0,$.Q)(co,"popperAppendToBody"),i=(0,m.s)("cascader"),a=(0,m.s)("input"),{t:u}=(0,Ye.bU)(),d=(0,s.f3)(rn.H,{}),p=(0,s.f3)(rn.K,{}),f=(0,l.iH)(null),h=(0,l.iH)(null),g=(0,l.iH)(null),y=(0,l.iH)(null),b=(0,l.iH)(null),_=(0,l.iH)(!1),w=(0,l.iH)(!1),k=(0,l.iH)(!1),S=(0,l.iH)(""),C=(0,l.iH)(""),x=(0,l.iH)([]),I=(0,l.iH)([]),T=(0,l.iH)([]),E=(0,l.iH)(!1),R=(0,s.Fl)((()=>e.disabled||d.disabled)),P=(0,s.Fl)((()=>e.placeholder||u("el.cascader.placeholder"))),O=(0,on.tH)(),A=(0,s.Fl)((()=>["small"].includes(O.value)?"small":"default")),D=(0,s.Fl)((()=>!!e.props.multiple)),M=(0,s.Fl)((()=>!e.filterable||D.value)),L=(0,s.Fl)((()=>D.value?C.value:S.value)),F=(0,s.Fl)((()=>{var e;return(null==(e=y.value)?void 0:e.checkedNodes)||[]})),U=(0,s.Fl)((()=>!(!e.clearable||R.value||k.value||!w.value)&&!!F.value.length)),j=(0,s.Fl)((()=>{const{showAllLevels:t,separator:n}=e,r=F.value;return r.length?D.value?" ":r[0].calcText(t,n):""})),H=(0,s.Fl)({get(){return e.modelValue},set(e){var n;t(V.f_,e),t(V.O7,e),null==(n=p.validate)||n.call(p,"change").catch((e=>(0,v.N)(e)))}}),B=(0,s.Fl)((()=>{var e,t;return null==(t=null==(e=f.value)?void 0:e.popperRef)?void 0:t.contentRef})),z=n=>{var r,o,i;if(!R.value&&(n=null!=n?n:!_.value,n!==_.value)){if(_.value=n,null==(o=null==(r=h.value)?void 0:r.input)||o.setAttribute("aria-expanded",`${n}`),n)W(),(0,s.Y3)(null==(i=y.value)?void 0:i.scrollToExpandingNode);else if(e.filterable){const{value:e}=j;S.value=e,C.value=e}t("visible-change",n)}},W=()=>{(0,s.Y3)((()=>{var e;null==(e=f.value)||e.updatePopper()}))},q=()=>{k.value=!1},Z=t=>{const{showAllLevels:n,separator:r}=e;return{node:t,key:t.uid,text:t.calcText(n,r),hitState:!1,closable:!R.value&&!t.isDisabled,isCollapseTag:!1}},Y=e=>{var n;const r=e.node;r.doCheck(!1),null==(n=y.value)||n.calculateCheckedValue(),t("remove-tag",r.valueByOption)},K=()=>{if(!D.value)return;const t=F.value,n=[],r=[];if(t.forEach((e=>r.push(Z(e)))),I.value=r,t.length){const[r,...o]=t,i=o.length;n.push(Z(r)),i&&(e.collapseTags?n.push({key:-1,text:`+ ${i}`,closable:!1,isCollapseTag:!0}):o.forEach((e=>n.push(Z(e)))))}x.value=n},J=()=>{var t,n;const{filterMethod:r,showAllLevels:o,separator:i}=e,a=null==(n=null==(t=y.value)?void 0:t.getFlattedNodes(!e.props.checkStrictly))?void 0:n.filter((e=>!e.isDisabled&&(e.calcText(o,i),r(e,L.value))));D.value&&(x.value.forEach((e=>{e.hitState=!1})),I.value.forEach((e=>{e.hitState=!1}))),k.value=!0,T.value=a,W()},G=()=>{var e;let t;t=k.value&&b.value?b.value.$el.querySelector(`.${i.e("suggestion-item")}`):null==(e=y.value)?void 0:e.$el.querySelector(`.${i.b("node")}[tabindex="-1"]`),t&&(t.focus(),!k.value&&t.click())},X=()=>{var e,t;const r=null==(e=h.value)?void 0:e.input,o=g.value,a=null==(t=b.value)?void 0:t.$el;if(ne.C5&&r){if(a){const e=a.querySelector(`.${i.e("suggestion-list")}`);e.style.minWidth=`${r.offsetWidth}px`}if(o){const{offsetHeight:e}=o,t=x.value.length>0?`${Math.max(e+6,n)}px`:`${n}px`;r.style.height=t,W()}}},Q=e=>{var t;return null==(t=y.value)?void 0:t.getCheckedNodes(e)},ee=e=>{W(),t("expand-change",e)},te=e=>{var t;const n=null==(t=e.target)?void 0:t.value;if("compositionend"===e.type)E.value=!1,(0,s.Y3)((()=>ce(n)));else{const e=n[n.length-1]||"";E.value=!(0,oo.w)(e)}},re=e=>{if(!E.value)switch(e.code){case Xn.n.enter:z();break;case Xn.n.down:z(!0),(0,s.Y3)(G),e.preventDefault();break;case Xn.n.esc:case Xn.n.tab:z(!1);break}},oe=()=>{var e;null==(e=y.value)||e.clearCheckedNodes(),z(!1)},ie=e=>{var t,n;const{checked:r}=e;D.value?null==(t=y.value)||t.handleCheckChange(e,!r,!1):(!r&&(null==(n=y.value)||n.handleCheckChange(e,!0,!1)),z(!1))},ae=e=>{const t=e.target,{code:n}=e;switch(n){case Xn.n.up:case Xn.n.down:{const e=n===Xn.n.up?-1:1;Fr(Lr(t,e,`.${i.e("suggestion-item")}[tabindex="-1"]`));break}case Xn.n.enter:t.click();break;case Xn.n.esc:case Xn.n.tab:z(!1);break}},se=()=>{const e=x.value,t=e[e.length-1];r=C.value?0:r+1,t&&r&&(t.hitState?Y(t):t.hitState=!0)},le=(0,N.Z)((()=>{const{value:t}=L;if(!t)return;const n=e.beforeFilter(t);(0,c.tI)(n)?n.then(J).catch((()=>{})):!1!==n?J():q()}),e.debounce),ce=(e,t)=>{!_.value&&z(!0),(null==t?void 0:t.isComposing)||(e?le():q())};return(0,s.YP)(k,W),(0,s.YP)([F,R],K),(0,s.YP)(x,(()=>{(0,s.Y3)((()=>X()))})),(0,s.YP)(j,(e=>S.value=e),{immediate:!0}),(0,s.bv)((()=>{var e;const t=null==(e=h.value)?void 0:e.$el;n=(null==t?void 0:t.offsetHeight)||so[O.value]||ao,(0,io.k)(t,X)})),(0,s.Jd)((()=>{var e;(0,io.S)(null==(e=h.value)?void 0:e.$el,X)})),{popperOptions:lo,tooltipRef:f,popperPaneRef:B,input:h,tagWrapper:g,panel:y,suggestionPanel:b,popperVisible:_,inputHover:w,inputPlaceholder:P,filtering:k,presentText:j,checkedValue:H,inputValue:S,searchInputValue:C,presentTags:x,allPresentTags:I,suggestions:T,isDisabled:R,isOnComposition:E,realSize:O,tagSize:A,multiple:D,readonly:M,clearBtnVisible:U,compatTeleported:o,nsCascader:i,nsInput:a,t:u,togglePopperVisible:z,hideSuggestionPanel:q,deleteTag:Y,focusFirstNode:G,getCheckedNodes:Q,handleExpandChange:ee,handleKeyDown:re,handleComposition:te,handleClear:oe,handleSuggestionClick:ie,handleSuggestionKeyDown:ae,handleDelete:se,handleInput:ce}}}),po={key:0},fo={class:"el-cascader__collapse-tags"},ho=["placeholder"],mo=["onClick"];function vo(e,t,n,r,o,i){const a=(0,s.up)("circle-close"),l=(0,s.up)("el-icon"),u=(0,s.up)("arrow-down"),d=(0,s.up)("el-input"),p=(0,s.up)("el-tag"),f=(0,s.up)("el-tooltip"),h=(0,s.up)("el-cascader-panel"),m=(0,s.up)("check"),v=(0,s.up)("el-scrollbar"),g=(0,s.Q2)("clickoutside");return(0,s.wg)(),(0,s.j4)(f,{ref:"tooltipRef",visible:e.popperVisible,"onUpdate:visible":t[17]||(t[17]=t=>e.popperVisible=t),teleported:e.compatTeleported,"popper-class":[e.nsCascader.e("dropdown"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":["bottom-start","bottom","top-start","top","right","left"],"stop-popper-mouse-event":!1,"gpu-acceleration":!1,placement:"bottom-start",transition:`${e.nsCascader.namespace.value}-zoom-in-top`,effect:"light",pure:"",persistent:"",onHide:e.hideSuggestionPanel},{default:(0,s.w5)((()=>[(0,s.wy)(((0,s.wg)(),(0,s.iD)("div",{class:(0,c.C_)([e.nsCascader.b(),e.nsCascader.m(e.realSize),e.nsCascader.is("disabled",e.isDisabled),e.$attrs.class]),style:(0,c.j5)(e.$attrs.style),onClick:t[11]||(t[11]=()=>e.togglePopperVisible(!e.readonly||void 0)),onKeydown:t[12]||(t[12]=(...t)=>e.handleKeyDown&&e.handleKeyDown(...t)),onMouseenter:t[13]||(t[13]=t=>e.inputHover=!0),onMouseleave:t[14]||(t[14]=t=>e.inputHover=!1)},[(0,s.Wm)(d,{ref:"input",modelValue:e.inputValue,"onUpdate:modelValue":t[1]||(t[1]=t=>e.inputValue=t),placeholder:e.inputPlaceholder,readonly:e.readonly,disabled:e.isDisabled,"validate-event":!1,size:e.realSize,class:(0,c.C_)(e.nsCascader.is("focus",e.popperVisible)),onCompositionstart:e.handleComposition,onCompositionupdate:e.handleComposition,onCompositionend:e.handleComposition,onFocus:t[2]||(t[2]=t=>e.$emit("focus",t)),onBlur:t[3]||(t[3]=t=>e.$emit("blur",t)),onInput:e.handleInput},{suffix:(0,s.w5)((()=>[e.clearBtnVisible?((0,s.wg)(),(0,s.j4)(l,{key:"clear",class:(0,c.C_)([e.nsInput.e("icon"),"icon-circle-close"]),onClick:(0,S.iM)(e.handleClear,["stop"])},{default:(0,s.w5)((()=>[(0,s.Wm)(a)])),_:1},8,["class","onClick"])):((0,s.wg)(),(0,s.j4)(l,{key:"arrow-down",class:(0,c.C_)([e.nsInput.e("icon"),"icon-arrow-down",e.nsCascader.is("reverse",e.popperVisible)]),onClick:t[0]||(t[0]=(0,S.iM)((t=>e.togglePopperVisible()),["stop"]))},{default:(0,s.w5)((()=>[(0,s.Wm)(u)])),_:1},8,["class"]))])),_:1},8,["modelValue","placeholder","readonly","disabled","size","class","onCompositionstart","onCompositionupdate","onCompositionend","onInput"]),e.multiple?((0,s.wg)(),(0,s.iD)("div",{key:0,ref:"tagWrapper",class:(0,c.C_)(e.nsCascader.e("tags"))},[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e.presentTags,(t=>((0,s.wg)(),(0,s.j4)(p,{key:t.key,type:e.tagType,size:e.tagSize,hit:t.hitState,closable:t.closable,"disable-transitions":"",onClose:n=>e.deleteTag(t)},{default:(0,s.w5)((()=>[!1===t.isCollapseTag?((0,s.wg)(),(0,s.iD)("span",po,(0,c.zw)(t.text),1)):((0,s.wg)(),(0,s.j4)(f,{key:1,teleported:!1,disabled:e.popperVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom",effect:"light"},{default:(0,s.w5)((()=>[(0,s._)("span",null,(0,c.zw)(t.text),1)])),content:(0,s.w5)((()=>[(0,s._)("div",fo,[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e.allPresentTags,((t,n)=>((0,s.wg)(),(0,s.iD)("div",{key:n,class:"el-cascader__collapse-tag"},[((0,s.wg)(),(0,s.j4)(p,{key:t.key,class:"in-tooltip",type:e.tagType,size:e.tagSize,hit:t.hitState,closable:t.closable,"disable-transitions":"",onClose:n=>e.deleteTag(t)},{default:(0,s.w5)((()=>[(0,s._)("span",null,(0,c.zw)(t.text),1)])),_:2},1032,["type","size","hit","closable","onClose"]))])))),128))])])),_:2},1032,["disabled"]))])),_:2},1032,["type","size","hit","closable","onClose"])))),128)),e.filterable&&!e.isDisabled?(0,s.wy)(((0,s.wg)(),(0,s.iD)("input",{key:0,"onUpdate:modelValue":t[4]||(t[4]=t=>e.searchInputValue=t),type:"text",class:(0,c.C_)(e.nsCascader.e("search-input")),placeholder:e.presentText?"":e.inputPlaceholder,onInput:t[5]||(t[5]=t=>e.handleInput(e.searchInputValue,t)),onClick:t[6]||(t[6]=(0,S.iM)((t=>e.togglePopperVisible(!0)),["stop"])),onKeydown:t[7]||(t[7]=(0,S.D2)(((...t)=>e.handleDelete&&e.handleDelete(...t)),["delete"])),onCompositionstart:t[8]||(t[8]=(...t)=>e.handleComposition&&e.handleComposition(...t)),onCompositionupdate:t[9]||(t[9]=(...t)=>e.handleComposition&&e.handleComposition(...t)),onCompositionend:t[10]||(t[10]=(...t)=>e.handleComposition&&e.handleComposition(...t))},null,42,ho)),[[S.nr,e.searchInputValue]]):(0,s.kq)("v-if",!0)],2)):(0,s.kq)("v-if",!0)],38)),[[g,()=>e.togglePopperVisible(!1),e.popperPaneRef]])])),content:(0,s.w5)((()=>[(0,s.wy)((0,s.Wm)(h,{ref:"panel",modelValue:e.checkedValue,"onUpdate:modelValue":t[15]||(t[15]=t=>e.checkedValue=t),options:e.options,props:e.props,border:!1,"render-label":e.$slots.default,onExpandChange:e.handleExpandChange,onClose:t[16]||(t[16]=t=>e.$nextTick((()=>e.togglePopperVisible(!1))))},null,8,["modelValue","options","props","render-label","onExpandChange"]),[[S.F8,!e.filtering]]),e.filterable?(0,s.wy)(((0,s.wg)(),(0,s.j4)(v,{key:0,ref:"suggestionPanel",tag:"ul",class:(0,c.C_)(e.nsCascader.e("suggestion-panel")),"view-class":e.nsCascader.e("suggestion-list"),onKeydown:e.handleSuggestionKeyDown},{default:(0,s.w5)((()=>[e.suggestions.length?((0,s.wg)(!0),(0,s.iD)(s.HY,{key:0},(0,s.Ko)(e.suggestions,(t=>((0,s.wg)(),(0,s.iD)("li",{key:t.uid,class:(0,c.C_)([e.nsCascader.e("suggestion-item"),e.nsCascader.is("checked",t.checked)]),tabindex:-1,onClick:n=>e.handleSuggestionClick(t)},[(0,s._)("span",null,(0,c.zw)(t.text),1),t.checked?((0,s.wg)(),(0,s.j4)(l,{key:0},{default:(0,s.w5)((()=>[(0,s.Wm)(m)])),_:1})):(0,s.kq)("v-if",!0)],10,mo)))),128)):(0,s.WI)(e.$slots,"empty",{key:1},(()=>[(0,s._)("li",{class:(0,c.C_)(e.nsCascader.e("empty-text"))},(0,c.zw)(e.t("el.cascader.noMatch")),3)]))])),_:3},8,["class","view-class","onKeydown"])),[[S.F8,e.filtering]]):(0,s.kq)("v-if",!0)])),_:3},8,["visible","teleported","popper-class","popper-options","transition","onHide"])}var go=(0,h.Z)(uo,[["render",vo],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader/src/index.vue"]]);go.install=e=>{e.component(go.name,go)};const yo=go,bo=yo,_o=(0,d.o8)({checked:{type:Boolean,default:!1}}),wo={"update:checked":e=>(0,ne.jn)(e),change:e=>(0,ne.jn)(e)},ko={name:"ElCheckTag"},So=(0,s.aZ)({...ko,props:_o,emits:wo,setup(e,{emit:t}){const n=e,r=(0,m.s)("check-tag"),o=()=>{const e=!n.checked;t("change",e),t("update:checked",e)};return(e,t)=>((0,s.wg)(),(0,s.iD)("span",{class:(0,c.C_)([(0,l.SU)(r).b(),(0,l.SU)(r).is("checked",e.checked)]),onClick:o},[(0,s.WI)(e.$slots,"default")],2))}});var Co=(0,h.Z)(So,[["__file","/home/runner/work/element-plus/element-plus/packages/components/check-tag/src/check-tag.vue"]]);const xo=(0,w.nz)(Co);var Io=n(7610),To=n(2338);const Eo=e=>typeof(0,ne.hj)(e),Ro=(0,d.o8)({accordion:Boolean,modelValue:{type:(0,d.Cq)([Array,String,Number]),default:()=>(0,To.N)([])}}),Po={[V.f_]:Eo,[V.O7]:Eo};function Oo(){if(!arguments.length)return[];var e=arguments[0];return(0,Yt.Z)(e)?e:[e]}var Ao=Oo;const Do=Symbol("collapseContextKey"),No={name:"ElCollapse"},Mo=(0,s.aZ)({...No,props:Ro,emits:Po,setup(e,{expose:t,emit:n}){const r=e,o=(0,m.s)("collapse"),i=(0,l.iH)(Ao(r.modelValue)),a=e=>{i.value=e;const t=r.accordion?i.value[0]:i.value;n(V.f_,t),n(V.O7,t)},u=e=>{if(r.accordion)a([!i.value[0]&&0!==i.value[0]||i.value[0]!==e?e:""]);else{const t=[...i.value],n=t.indexOf(e);n>-1?t.splice(n,1):t.push(e),a(t)}};return(0,s.YP)((()=>r.modelValue),(()=>i.value=Ao(r.modelValue)),{deep:!0}),(0,s.JJ)(Do,{activeNames:i,handleItemClick:u}),t({activeNames:i,setActiveNames:a}),(e,t)=>((0,s.wg)(),(0,s.iD)("div",{class:(0,c.C_)((0,l.SU)(o).b()),role:"tablist","aria-multiselectable":"true"},[(0,s.WI)(e.$slots,"default")],2))}});var Lo=(0,h.Z)(Mo,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse.vue"]]);const Fo=(0,s.aZ)({name:"ElCollapseTransition",setup(){const e=(0,m.s)("collapse-transition");return{ns:e,on:{beforeEnter(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.style.maxHeight=0,e.style.paddingTop=0,e.style.paddingBottom=0},enter(e){e.dataset.oldOverflow=e.style.overflow,0!==e.scrollHeight?(e.style.maxHeight=`${e.scrollHeight}px`,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom):(e.style.maxHeight=0,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom),e.style.overflow="hidden"},afterEnter(e){e.style.maxHeight="",e.style.overflow=e.dataset.oldOverflow},beforeLeave(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.dataset.oldOverflow=e.style.overflow,e.style.maxHeight=`${e.scrollHeight}px`,e.style.overflow="hidden"},leave(e){0!==e.scrollHeight&&(e.style.maxHeight=0,e.style.paddingTop=0,e.style.paddingBottom=0)},afterLeave(e){e.style.maxHeight="",e.style.overflow=e.dataset.oldOverflow,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom}}}}});function Uo(e,t,n,r,o,i){return(0,s.wg)(),(0,s.j4)(S.uT,(0,s.dG)({name:e.ns.b()},(0,s.mx)(e.on)),{default:(0,s.w5)((()=>[(0,s.WI)(e.$slots,"default")])),_:3},16,["name"])}var jo=(0,h.Z)(Fo,[["render",Uo],["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse-transition/src/collapse-transition.vue"]]);jo.install=e=>{e.component(jo.name,jo)};const Vo=jo,Ho=Vo,Bo=(0,d.o8)({title:{type:String,default:""},name:{type:(0,d.Cq)([String,Number]),default:()=>(0,W.O)()},disabled:Boolean}),$o=["aria-expanded","aria-controls","aria-describedby"],zo=["id","tabindex","onKeypress"],Wo=["id","aria-hidden","aria-labelledby"],qo={name:"ElCollapseItem"},Zo=(0,s.aZ)({...qo,props:Bo,setup(e,{expose:t}){const n=e,r=(0,s.f3)(Do),o=(0,m.s)("collapse"),i=(0,l.iH)(!1),a=(0,l.iH)(!1),u=(0,l.iH)((0,W.O)()),d=(0,s.Fl)((()=>null==r?void 0:r.activeNames.value.includes(n.name))),p=()=>{setTimeout((()=>{a.value?a.value=!1:i.value=!0}),50)},f=()=>{n.disabled||(null==r||r.handleItemClick(n.name),i.value=!1,a.value=!0)},h=()=>{null==r||r.handleItemClick(n.name)};return t({isActive:d}),(e,t)=>((0,s.wg)(),(0,s.iD)("div",{class:(0,c.C_)([(0,l.SU)(o).b("item"),(0,l.SU)(o).is("active",(0,l.SU)(d)),(0,l.SU)(o).is("disabled",e.disabled)])},[(0,s._)("div",{role:"tab","aria-expanded":(0,l.SU)(d),"aria-controls":(0,l.SU)(o).b(`content-${u.value}`),"aria-describedby":(0,l.SU)(o).b(`content-${u.value}`)},[(0,s._)("div",{id:(0,l.SU)(o).b(`head-${u.value}`),class:(0,c.C_)([(0,l.SU)(o).be("item","header"),(0,l.SU)(o).is("active",(0,l.SU)(d)),{focusing:i.value}]),role:"button",tabindex:e.disabled?-1:0,onClick:f,onKeypress:(0,S.D2)((0,S.iM)(h,["stop","prevent"]),["space","enter"]),onFocus:p,onBlur:t[0]||(t[0]=e=>i.value=!1)},[(0,s.WI)(e.$slots,"title",{},(()=>[(0,s.Uk)((0,c.zw)(e.title),1)])),(0,s.Wm)((0,l.SU)(C.gn),{class:(0,c.C_)([(0,l.SU)(o).be("item","arrow"),(0,l.SU)(o).is("active",(0,l.SU)(d))])},{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(Tt))])),_:1},8,["class"])],42,zo)],8,$o),(0,s.Wm)((0,l.SU)(Vo),null,{default:(0,s.w5)((()=>[(0,s.wy)((0,s._)("div",{id:(0,l.SU)(o).b(`content-${u.value}`),class:(0,c.C_)((0,l.SU)(o).be("item","wrap")),role:"tabpanel","aria-hidden":!(0,l.SU)(d),"aria-labelledby":(0,l.SU)(o).b(`head-${u.value}`)},[(0,s._)("div",{class:(0,c.C_)((0,l.SU)(o).be("item","content"))},[(0,s.WI)(e.$slots,"default")],2)],10,Wo),[[S.F8,(0,l.SU)(d)]])])),_:3})],2))}});var Yo=(0,h.Z)(Zo,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse-item.vue"]]);const Ko=(0,w.nz)(Lo,{CollapseItem:Yo}),Jo=(0,w.dp)(Yo);var Go=n(8382),Xo=n(4324);let Qo=!1;function ei(e,t){if(!ne.C5)return;const n=function(e){var n;null==(n=t.drag)||n.call(t,e)},r=function(e){var o;(0,Xo.S1)(document,"mousemove",n),(0,Xo.S1)(document,"mouseup",r),(0,Xo.S1)(document,"touchmove",n),(0,Xo.S1)(document,"touchend",r),document.onselectstart=null,document.ondragstart=null,Qo=!1,null==(o=t.end)||o.call(t,e)},o=function(e){var o;Qo||(e.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,(0,Xo.on)(document,"mousemove",n),(0,Xo.on)(document,"mouseup",r),(0,Xo.on)(document,"touchmove",n),(0,Xo.on)(document,"touchend",r),Qo=!0,null==(o=t.start)||o.call(t,e))};(0,Xo.on)(e,"mousedown",o),(0,Xo.on)(e,"touchstart",o)}const ti=(e,t)=>{if(!ne.C5||!e||!t)return!1;const n=e.getBoundingClientRect();let r;return r=t instanceof Element?t.getBoundingClientRect():{top:0,right:window.innerWidth,bottom:window.innerHeight,left:0},n.top<r.bottom&&n.bottom>r.top&&n.right>r.left&&n.left<r.right},ni=e=>{let t=0,n=e;while(n)t+=n.offsetTop,n=n.offsetParent;return t},ri=(e,t)=>Math.abs(ni(e)-ni(t)),oi=e=>{let t,n;return"touchend"===e.type?(n=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(n=e.touches[0].clientY,t=e.touches[0].clientX):(n=e.clientY,t=e.clientX),{clientX:t,clientY:n}},ii=(0,s.aZ)({name:"ElColorAlphaSlider",props:{color:{type:Object,required:!0},vertical:{type:Boolean,default:!1}},setup(e){const t=(0,s.FN)(),n=(0,l.XI)(null),r=(0,l.XI)(null),o=(0,l.iH)(0),i=(0,l.iH)(0),a=(0,l.iH)(null);function c(){if(e.vertical)return 0;const r=t.vnode.el,o=e.color.get("alpha");return r?Math.round(o*(r.offsetWidth-n.value.offsetWidth/2)/100):0}function u(){const r=t.vnode.el;if(!e.vertical)return 0;const o=e.color.get("alpha");return r?Math.round(o*(r.offsetHeight-n.value.offsetHeight/2)/100):0}function d(){if(e.color&&e.color.value){const{r:t,g:n,b:r}=e.color.toRgb();return`linear-gradient(to right, rgba(${t}, ${n}, ${r}, 0) 0%, rgba(${t}, ${n}, ${r}, 1) 100%)`}return null}function p(e){const t=e.target;t!==n.value&&f(e)}function f(r){const o=t.vnode.el,i=o.getBoundingClientRect(),{clientX:a,clientY:s}=oi(r);if(e.vertical){let t=s-i.top;t=Math.max(n.value.offsetHeight/2,t),t=Math.min(t,i.height-n.value.offsetHeight/2),e.color.set("alpha",Math.round((t-n.value.offsetHeight/2)/(i.height-n.value.offsetHeight)*100))}else{let t=a-i.left;t=Math.max(n.value.offsetWidth/2,t),t=Math.min(t,i.width-n.value.offsetWidth/2),e.color.set("alpha",Math.round((t-n.value.offsetWidth/2)/(i.width-n.value.offsetWidth)*100))}}function h(){o.value=c(),i.value=u(),a.value=d()}return(0,s.YP)((()=>e.color.get("alpha")),(()=>{h()})),(0,s.YP)((()=>e.color.value),(()=>{h()})),(0,s.bv)((()=>{const e={drag:e=>{f(e)},end:e=>{f(e)}};ei(r.value,e),ei(n.value,e),h()})),{thumb:n,bar:r,thumbLeft:o,thumbTop:i,background:a,handleClick:p,update:h}}});function ai(e,t,n,r,o,i){return(0,s.wg)(),(0,s.iD)("div",{class:(0,c.C_)(["el-color-alpha-slider",{"is-vertical":e.vertical}])},[(0,s._)("div",{ref:"bar",class:"el-color-alpha-slider__bar",style:(0,c.j5)({background:e.background}),onClick:t[0]||(t[0]=(...t)=>e.handleClick&&e.handleClick(...t))},null,4),(0,s._)("div",{ref:"thumb",class:"el-color-alpha-slider__thumb",style:(0,c.j5)({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,4)],2)}var si=(0,h.Z)(ii,[["render",ai],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/alpha-slider.vue"]]);const li=(0,s.aZ)({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(e){const t=(0,s.FN)(),n=(0,l.iH)(null),r=(0,l.iH)(null),o=(0,l.iH)(0),i=(0,l.iH)(0),a=(0,s.Fl)((()=>e.color.get("hue")));function c(e){const t=e.target;t!==n.value&&u(e)}function u(r){const o=t.vnode.el,i=o.getBoundingClientRect(),{clientX:a,clientY:s}=oi(r);let l;if(e.vertical){let e=s-i.top;e=Math.min(e,i.height-n.value.offsetHeight/2),e=Math.max(n.value.offsetHeight/2,e),l=Math.round((e-n.value.offsetHeight/2)/(i.height-n.value.offsetHeight)*360)}else{let e=a-i.left;e=Math.min(e,i.width-n.value.offsetWidth/2),e=Math.max(n.value.offsetWidth/2,e),l=Math.round((e-n.value.offsetWidth/2)/(i.width-n.value.offsetWidth)*360)}e.color.set("hue",l)}function d(){const r=t.vnode.el;if(e.vertical)return 0;const o=e.color.get("hue");return r?Math.round(o*(r.offsetWidth-n.value.offsetWidth/2)/360):0}function p(){const r=t.vnode.el;if(!e.vertical)return 0;const o=e.color.get("hue");return r?Math.round(o*(r.offsetHeight-n.value.offsetHeight/2)/360):0}function f(){o.value=d(),i.value=p()}return(0,s.YP)((()=>a.value),(()=>{f()})),(0,s.bv)((()=>{const e={drag:e=>{u(e)},end:e=>{u(e)}};ei(r.value,e),ei(n.value,e),f()})),{bar:r,thumb:n,thumbLeft:o,thumbTop:i,hueValue:a,handleClick:c,update:f}}});function ci(e,t,n,r,o,i){return(0,s.wg)(),(0,s.iD)("div",{class:(0,c.C_)(["el-color-hue-slider",{"is-vertical":e.vertical}])},[(0,s._)("div",{ref:"bar",class:"el-color-hue-slider__bar",onClick:t[0]||(t[0]=(...t)=>e.handleClick&&e.handleClick(...t))},null,512),(0,s._)("div",{ref:"thumb",class:"el-color-hue-slider__thumb",style:(0,c.j5)({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,4)],2)}var ui=(0,h.Z)(li,[["render",ci],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/hue-slider.vue"]]);const di=Symbol(),pi=()=>(0,s.f3)(di),fi=function(e,t,n){return[e,t*n/((e=(2-t)*n)<1?e:2-e)||0,e/2]},hi=function(e){return"string"===typeof e&&e.includes(".")&&1===Number.parseFloat(e)},mi=function(e){return"string"===typeof e&&e.includes("%")},vi=function(e,t){hi(e)&&(e="100%");const n=mi(e);return e=Math.min(t,Math.max(0,Number.parseFloat(`${e}`))),n&&(e=Number.parseInt(""+e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/Number.parseFloat(t)},gi={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},yi=function(e){e=Math.min(Math.round(e),255);const t=Math.floor(e/16),n=e%16;return`${gi[t]||t}${gi[n]||n}`},bi=function({r:e,g:t,b:n}){return Number.isNaN(+e)||Number.isNaN(+t)||Number.isNaN(+n)?"":`#${yi(e)}${yi(t)}${yi(n)}`},_i={A:10,B:11,C:12,D:13,E:14,F:15},wi=function(e){return 2===e.length?16*(_i[e[0].toUpperCase()]||+e[0])+(_i[e[1].toUpperCase()]||+e[1]):_i[e[1].toUpperCase()]||+e[1]},ki=function(e,t,n){t/=100,n/=100;let r=t;const o=Math.max(n,.01);n*=2,t*=n<=1?n:2-n,r*=o<=1?o:2-o;const i=(n+t)/2,a=0===n?2*r/(o+r):2*t/(n+t);return{h:e,s:100*a,v:100*i}},Si=function(e,t,n){e=vi(e,255),t=vi(t,255),n=vi(n,255);const r=Math.max(e,t,n),o=Math.min(e,t,n);let i;const a=r,s=r-o,l=0===r?0:s/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/s+(t<n?6:0);break;case t:i=(n-e)/s+2;break;case n:i=(e-t)/s+4;break}i/=6}return{h:360*i,s:100*l,v:100*a}},Ci=function(e,t,n){e=6*vi(e,360),t=vi(t,100),n=vi(n,100);const r=Math.floor(e),o=e-r,i=n*(1-t),a=n*(1-o*t),s=n*(1-(1-o)*t),l=r%6,c=[n,a,i,i,s,n][l],u=[s,n,n,a,i,i][l],d=[i,i,s,n,n,a][l];return{r:Math.round(255*c),g:Math.round(255*u),b:Math.round(255*d)}};class xi{constructor(e){this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this.enableAlpha=!1,this.format="hex",this.value="",e=e||{};for(const t in e)(0,c.RI)(e,t)&&(this[t]=e[t]);e.value?this.fromString(e.value):this.doOnChange()}set(e,t){if(1!==arguments.length||"object"!==typeof e)this[`_${e}`]=t,this.doOnChange();else for(const n in e)(0,c.RI)(e,n)&&this.set(n,e[n])}get(e){return"alpha"===e?Math.floor(this[`_${e}`]):this[`_${e}`]}toRgb(){return Ci(this._hue,this._saturation,this._value)}fromString(e){if(!e)return this._hue=0,this._saturation=100,this._value=100,void this.doOnChange();const t=(e,t,n)=>{this._hue=Math.max(0,Math.min(360,e)),this._saturation=Math.max(0,Math.min(100,t)),this._value=Math.max(0,Math.min(100,n)),this.doOnChange()};if(e.includes("hsl")){const n=e.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter((e=>""!==e)).map(((e,t)=>t>2?Number.parseFloat(e):Number.parseInt(e,10)));if(4===n.length?this._alpha=100*Number.parseFloat(n[3]):3===n.length&&(this._alpha=100),n.length>=3){const{h:e,s:r,v:o}=ki(n[0],n[1],n[2]);t(e,r,o)}}else if(e.includes("hsv")){const n=e.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter((e=>""!==e)).map(((e,t)=>t>2?Number.parseFloat(e):Number.parseInt(e,10)));4===n.length?this._alpha=100*Number.parseFloat(n[3]):3===n.length&&(this._alpha=100),n.length>=3&&t(n[0],n[1],n[2])}else if(e.includes("rgb")){const n=e.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter((e=>""!==e)).map(((e,t)=>t>2?Number.parseFloat(e):Number.parseInt(e,10)));if(4===n.length?this._alpha=100*Number.parseFloat(n[3]):3===n.length&&(this._alpha=100),n.length>=3){const{h:e,s:r,v:o}=Si(n[0],n[1],n[2]);t(e,r,o)}}else if(e.includes("#")){const n=e.replace("#","").trim();if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(n))return;let r,o,i;3===n.length?(r=wi(n[0]+n[0]),o=wi(n[1]+n[1]),i=wi(n[2]+n[2])):6!==n.length&&8!==n.length||(r=wi(n.slice(0,2)),o=wi(n.slice(2,4)),i=wi(n.slice(4,6))),8===n.length?this._alpha=wi(n.slice(6))/255*100:3!==n.length&&6!==n.length||(this._alpha=100);const{h:a,s:s,v:l}=Si(r,o,i);t(a,s,l)}}compare(e){return Math.abs(e._hue-this._hue)<2&&Math.abs(e._saturation-this._saturation)<1&&Math.abs(e._value-this._value)<1&&Math.abs(e._alpha-this._alpha)<1}doOnChange(){const{_hue:e,_saturation:t,_value:n,_alpha:r,format:o}=this;if(this.enableAlpha)switch(o){case"hsl":{const r=fi(e,t/100,n/100);this.value=`hsla(${e}, ${Math.round(100*r[1])}%, ${Math.round(100*r[2])}%, ${this.get("alpha")/100})`;break}case"hsv":this.value=`hsva(${e}, ${Math.round(t)}%, ${Math.round(n)}%, ${this.get("alpha")/100})`;break;case"hex":this.value=`${bi(Ci(e,t,n))}${yi(255*r/100)}`;break;default:{const{r:r,g:o,b:i}=Ci(e,t,n);this.value=`rgba(${r}, ${o}, ${i}, ${this.get("alpha")/100})`}}else switch(o){case"hsl":{const r=fi(e,t/100,n/100);this.value=`hsl(${e}, ${Math.round(100*r[1])}%, ${Math.round(100*r[2])}%)`;break}case"hsv":this.value=`hsv(${e}, ${Math.round(t)}%, ${Math.round(n)}%)`;break;case"rgb":{const{r:r,g:o,b:i}=Ci(e,t,n);this.value=`rgb(${r}, ${o}, ${i})`;break}default:this.value=bi(Ci(e,t,n))}}}const Ii=(0,s.aZ)({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0}},setup(e){const{currentColor:t}=pi(),n=(0,l.iH)(o(e.colors,e.color));function r(t){e.color.fromString(e.colors[t])}function o(e,t){return e.map((e=>{const n=new xi;return n.enableAlpha=!0,n.format="rgba",n.fromString(e),n.selected=n.value===t.value,n}))}return(0,s.YP)((()=>t.value),(e=>{const t=new xi;t.fromString(e),n.value.forEach((e=>{e.selected=t.compare(e)}))})),(0,s.m0)((()=>{n.value=o(e.colors,e.color)})),{rgbaColors:n,handleSelect:r}}}),Ti={class:"el-color-predefine"},Ei={class:"el-color-predefine__colors"},Ri=["onClick"];function Pi(e,t,n,r,o,i){return(0,s.wg)(),(0,s.iD)("div",Ti,[(0,s._)("div",Ei,[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e.rgbaColors,((t,n)=>((0,s.wg)(),(0,s.iD)("div",{key:e.colors[n],class:(0,c.C_)(["el-color-predefine__color-selector",{selected:t.selected,"is-alpha":t._alpha<100}]),onClick:t=>e.handleSelect(n)},[(0,s._)("div",{style:(0,c.j5)({backgroundColor:t.value})},null,4)],10,Ri)))),128))])])}var Oi=(0,h.Z)(Ii,[["render",Pi],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/predefine.vue"]]);const Ai=(0,s.aZ)({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(e){const t=(0,s.FN)(),n=(0,l.iH)(0),r=(0,l.iH)(0),o=(0,l.iH)("hsl(0, 100%, 50%)"),i=(0,s.Fl)((()=>{const t=e.color.get("hue"),n=e.color.get("value");return{hue:t,value:n}}));function a(){const i=e.color.get("saturation"),a=e.color.get("value"),s=t.vnode.el,{clientWidth:l,clientHeight:c}=s;r.value=i*l/100,n.value=(100-a)*c/100,o.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}function c(o){const i=t.vnode.el,a=i.getBoundingClientRect(),{clientX:s,clientY:l}=oi(o);let c=s-a.left,u=l-a.top;c=Math.max(0,c),c=Math.min(c,a.width),u=Math.max(0,u),u=Math.min(u,a.height),r.value=c,n.value=u,e.color.set({saturation:c/a.width*100,value:100-u/a.height*100})}return(0,s.YP)((()=>i.value),(()=>{a()})),(0,s.bv)((()=>{ei(t.vnode.el,{drag:e=>{c(e)},end:e=>{c(e)}}),a()})),{cursorTop:n,cursorLeft:r,background:o,colorValue:i,handleDrag:c,update:a}}}),Di=(0,s._)("div",{class:"el-color-svpanel__white"},null,-1),Ni=(0,s._)("div",{class:"el-color-svpanel__black"},null,-1),Mi=(0,s._)("div",null,null,-1),Li=[Mi];function Fi(e,t,n,r,o,i){return(0,s.wg)(),(0,s.iD)("div",{class:"el-color-svpanel",style:(0,c.j5)({backgroundColor:e.background})},[Di,Ni,(0,s._)("div",{class:"el-color-svpanel__cursor",style:(0,c.j5)({top:e.cursorTop+"px",left:e.cursorLeft+"px"})},Li,4)],4)}var Ui=(0,h.Z)(Ai,[["render",Fi],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/sv-panel.vue"]]);const ji=(0,s.aZ)({name:"ElColorPicker",components:{ElButton:Fe.mi,ElTooltip:F.Q0,ElInput:M.EZ,ElIcon:C.gn,Close:Go.Z,ArrowDown:to,SvPanel:Ui,HueSlider:ui,AlphaSlider:si,Predefine:Oi},directives:{ClickOutside:no.Z},props:{modelValue:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:{type:String,validator:hn.P},popperClass:String,predefine:Array},emits:["change","active-change",V.f_],setup(e,{emit:t}){const{t:n}=(0,Ye.bU)(),r=(0,m.s)("color"),o=(0,s.f3)(rn.H,{}),i=(0,s.f3)(rn.K,{}),a=(0,l.iH)(null),c=(0,l.iH)(null),u=(0,l.iH)(null),d=(0,l.iH)(null);let p=!0;const f=(0,l.qj)(new xi({enableAlpha:e.showAlpha,format:e.colorFormat,value:e.modelValue})),h=(0,l.iH)(!1),g=(0,l.iH)(!1),y=(0,l.iH)(""),b=(0,s.Fl)((()=>e.modelValue||g.value?S(f,e.showAlpha):"transparent")),_=(0,on.tH)(),w=(0,s.Fl)((()=>!(!e.disabled&&!o.disabled))),k=(0,s.Fl)((()=>e.modelValue||g.value?f.value:""));function S(e,t){if(!(e instanceof xi))throw new TypeError("color should be instance of _color Class");const{r:n,g:r,b:o}=e.toRgb();return t?`rgba(${n}, ${r}, ${o}, ${e.get("alpha")/100})`:`rgb(${n}, ${r}, ${o})`}function C(e){h.value=e}(0,s.YP)((()=>e.modelValue),(e=>{e?e&&e!==f.value&&(p=!1,f.fromString(e)):g.value=!1})),(0,s.YP)((()=>k.value),(e=>{y.value=e,p&&t("active-change",e),p=!0})),(0,s.YP)((()=>f.value),(()=>{e.modelValue||g.value||(g.value=!0)}));const x=(0,N.Z)(C,100);function I(){x(!1),T()}function T(){(0,s.Y3)((()=>{e.modelValue?f.fromString(e.modelValue):g.value=!1}))}function E(){w.value||x(!h.value)}function R(){f.fromString(y.value)}function P(){var n;const r=f.value;t(V.f_,r),t("change",r),null==(n=i.validate)||n.call(i,"change").catch((e=>(0,v.N)(e))),x(!1),(0,s.Y3)((()=>{const t=new xi({enableAlpha:e.showAlpha,format:e.colorFormat,value:e.modelValue});f.compare(t)||T()}))}function O(){var n;x(!1),t(V.f_,null),t("change",null),null!==e.modelValue&&(null==(n=i.validate)||n.call(i,"change").catch((e=>(0,v.N)(e)))),T()}return(0,s.bv)((()=>{e.modelValue&&(y.value=k.value)})),(0,s.YP)((()=>h.value),(()=>{(0,s.Y3)((()=>{var e,t,n;null==(e=a.value)||e.update(),null==(t=c.value)||t.update(),null==(n=u.value)||n.update()}))})),(0,s.JJ)(di,{currentColor:k}),{color:f,colorDisabled:w,colorSize:_,displayedColor:b,showPanelColor:g,showPicker:h,customInput:y,handleConfirm:R,hide:I,handleTrigger:E,clear:O,confirmValue:P,t:n,ns:r,hue:a,svPanel:c,alpha:u,popper:d}}});function Vi(e,t,n,r,o,i){const a=(0,s.up)("hue-slider"),l=(0,s.up)("sv-panel"),u=(0,s.up)("alpha-slider"),d=(0,s.up)("predefine"),p=(0,s.up)("el-input"),f=(0,s.up)("el-button"),h=(0,s.up)("arrow-down"),m=(0,s.up)("el-icon"),v=(0,s.up)("close"),g=(0,s.up)("el-tooltip"),y=(0,s.Q2)("click-outside");return(0,s.wg)(),(0,s.j4)(g,{ref:"popper",visible:e.showPicker,"onUpdate:visible":t[2]||(t[2]=t=>e.showPicker=t),"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[e.ns.be("picker","panel"),e.ns.b("dropdown"),e.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",transition:"el-zoom-in-top",persistent:""},{content:(0,s.w5)((()=>[(0,s.wy)(((0,s.wg)(),(0,s.iD)("div",null,[(0,s._)("div",{class:(0,c.C_)(e.ns.be("dropdown","main-wrapper"))},[(0,s.Wm)(a,{ref:"hue",class:"hue-slider",color:e.color,vertical:""},null,8,["color"]),(0,s.Wm)(l,{ref:"svPanel",color:e.color},null,8,["color"])],2),e.showAlpha?((0,s.wg)(),(0,s.j4)(u,{key:0,ref:"alpha",color:e.color},null,8,["color"])):(0,s.kq)("v-if",!0),e.predefine?((0,s.wg)(),(0,s.j4)(d,{key:1,ref:"predefine",color:e.color,colors:e.predefine},null,8,["color","colors"])):(0,s.kq)("v-if",!0),(0,s._)("div",{class:(0,c.C_)(e.ns.be("dropdown","btns"))},[(0,s._)("span",{class:(0,c.C_)(e.ns.be("dropdown","value"))},[(0,s.Wm)(p,{modelValue:e.customInput,"onUpdate:modelValue":t[0]||(t[0]=t=>e.customInput=t),"validate-event":!1,size:"small",onKeyup:(0,S.D2)(e.handleConfirm,["enter"]),onBlur:e.handleConfirm},null,8,["modelValue","onKeyup","onBlur"])],2),(0,s.Wm)(f,{size:"small",type:"text",class:(0,c.C_)(e.ns.be("dropdown","link-btn")),onClick:e.clear},{default:(0,s.w5)((()=>[(0,s.Uk)((0,c.zw)(e.t("el.colorpicker.clear")),1)])),_:1},8,["class","onClick"]),(0,s.Wm)(f,{plain:"",size:"small",class:(0,c.C_)(e.ns.be("dropdown","btn")),onClick:e.confirmValue},{default:(0,s.w5)((()=>[(0,s.Uk)((0,c.zw)(e.t("el.colorpicker.confirm")),1)])),_:1},8,["class","onClick"])],2)])),[[y,e.hide]])])),default:(0,s.w5)((()=>[(0,s._)("div",{class:(0,c.C_)([e.ns.b("picker"),e.ns.is("disabled",e.colorDisabled),e.ns.bm("picker",e.colorSize)])},[e.colorDisabled?((0,s.wg)(),(0,s.iD)("div",{key:0,class:(0,c.C_)(e.ns.be("picker","mask"))},null,2)):(0,s.kq)("v-if",!0),(0,s._)("div",{class:(0,c.C_)(e.ns.be("picker","trigger")),onClick:t[1]||(t[1]=(...t)=>e.handleTrigger&&e.handleTrigger(...t))},[(0,s._)("span",{class:(0,c.C_)([e.ns.be("picker","color"),e.ns.is("alpha",e.showAlpha)])},[(0,s._)("span",{class:(0,c.C_)(e.ns.be("picker","color-inner")),style:(0,c.j5)({backgroundColor:e.displayedColor})},[(0,s.wy)((0,s.Wm)(m,{class:(0,c.C_)([e.ns.be("picker","icon"),e.ns.is("icon-arrow-down")])},{default:(0,s.w5)((()=>[(0,s.Wm)(h)])),_:1},8,["class"]),[[S.F8,e.modelValue||e.showPanelColor]]),e.modelValue||e.showPanelColor?(0,s.kq)("v-if",!0):((0,s.wg)(),(0,s.j4)(m,{key:0,class:(0,c.C_)([e.ns.be("picker","empty"),e.ns.is("icon-close")])},{default:(0,s.w5)((()=>[(0,s.Wm)(v)])),_:1},8,["class"]))],6)],2)],2)],2)])),_:1},8,["visible","popper-class"])}var Hi=(0,h.Z)(ji,[["render",Vi],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/index.vue"]]);Hi.install=e=>{e.component(Hi.name,Hi)};const Bi=Hi,$i=Bi;var zi=n(1511);const Wi=(0,w.nz)(zi.ZP),qi=(0,s.aZ)({name:"ElContainer",props:{direction:{type:String,default:""}},setup(e,{slots:t}){const n=(0,m.s)("container"),r=(0,s.Fl)((()=>{if("vertical"===e.direction)return!0;if("horizontal"===e.direction)return!1;if(t&&t.default){const e=t.default();return e.some((e=>{const t=e.type.name;return"ElHeader"===t||"ElFooter"===t}))}return!1}));return{isVertical:r,ns:n}}});function Zi(e,t,n,r,o,i){return(0,s.wg)(),(0,s.iD)("section",{class:(0,c.C_)([e.ns.b(),e.ns.is("vertical",e.isVertical)])},[(0,s.WI)(e.$slots,"default")],2)}var Yi=(0,h.Z)(qi,[["render",Zi],["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/container.vue"]]);const Ki=(0,s.aZ)({name:"ElAside",props:{width:{type:String,default:null}},setup(e){const t=(0,m.s)("aside");return{style:(0,s.Fl)((()=>e.width?{"--el-aside-width":e.width}:{})),ns:t}}});function Ji(e,t,n,r,o,i){return(0,s.wg)(),(0,s.iD)("aside",{class:(0,c.C_)(e.ns.b()),style:(0,c.j5)(e.style)},[(0,s.WI)(e.$slots,"default")],6)}var Gi=(0,h.Z)(Ki,[["render",Ji],["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/aside.vue"]]);const Xi=(0,s.aZ)({name:"ElFooter",props:{height:{type:String,default:null}},setup(e){const t=(0,m.s)("footer");return{style:(0,s.Fl)((()=>e.height?{"--el-footer-height":e.height}:{})),ns:t}}});function Qi(e,t,n,r,o,i){return(0,s.wg)(),(0,s.iD)("footer",{class:(0,c.C_)(e.ns.b()),style:(0,c.j5)(e.style)},[(0,s.WI)(e.$slots,"default")],6)}var ea=(0,h.Z)(Xi,[["render",Qi],["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/footer.vue"]]);const ta=(0,s.aZ)({name:"ElHeader",props:{height:{type:String,default:null}},setup(e){const t=(0,m.s)("header");return{style:(0,s.Fl)((()=>e.height?{"--el-header-height":e.height}:{})),ns:t}}});function na(e,t,n,r,o,i){return(0,s.wg)(),(0,s.iD)("header",{class:(0,c.C_)(e.ns.b()),style:(0,c.j5)(e.style)},[(0,s.WI)(e.$slots,"default")],6)}var ra=(0,h.Z)(ta,[["render",na],["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/header.vue"]]);const oa=(0,s.aZ)({name:"ElMain",setup(){const e=(0,m.s)("main");return{ns:e}}});function ia(e,t,n,r,o,i){return(0,s.wg)(),(0,s.iD)("main",{class:(0,c.C_)(e.ns.b())},[(0,s.WI)(e.$slots,"default")],2)}var aa=(0,h.Z)(oa,[["render",ia],["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/main.vue"]]);const sa=(0,w.nz)(Yi,{Aside:Gi,Footer:ea,Header:ra,Main:aa}),la=(0,w.dp)(Gi),ca=(0,w.dp)(ea),ua=(0,w.dp)(ra),da=(0,w.dp)(aa);var pa=n(841),fa=n(9169),ha=n(6245),ma=n(5227),va=n(5093),ga=n(1294),ya=n(2643);const ba=(0,s.aZ)({name:"DArrowLeft"}),_a={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},wa=(0,s._)("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224zm256 0a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224z"},null,-1),ka=[wa];function Sa(e,t,n,r,o,i){return(0,s.wg)(),(0,s.iD)("svg",_a,ka)}var Ca=(0,ce.Z)(ba,[["render",Sa]]);const xa=(0,s.aZ)({name:"DArrowRight"}),Ia={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Ta=(0,s._)("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L764.736 512 452.864 192a30.592 30.592 0 0 1 0-42.688zm-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z"},null,-1),Ea=[Ta];function Ra(e,t,n,r,o,i){return(0,s.wg)(),(0,s.iD)("svg",Ia,Ea)}var Pa=(0,ce.Z)(xa,[["render",Ra]]);const Oa=Symbol();var Aa=(0,s.aZ)({name:"ElDatePickerCell",props:(0,d.o8)({cell:{type:(0,d.Cq)(Object)}}),setup(e){const t=(0,s.f3)(Oa);return()=>{const n=e.cell;if(null==t?void 0:t.ctx.slots.default){const e=t.ctx.slots.default(n).filter((e=>-2!==e.patchFlag&&"Symbol(Comment)"!==e.type.toString()));if(e.length)return e}return(0,s.h)("div",{class:"el-date-table-cell"},[(0,s.h)("span",{class:"el-date-table-cell__text"},[null==n?void 0:n.text])])}}});const Da=(0,s.aZ)({components:{ElDatePickerCell:Aa},props:{date:{type:Object},minDate:{type:Object},maxDate:{type:Object},parsedValue:{type:[Object,Array]},selectionMode:{type:String,default:"day"},showWeekNumber:{type:Boolean,default:!1},disabledDate:{type:Function},cellClassName:{type:Function},rangeState:{type:Object,default:()=>({endDate:null,selecting:!1})}},emits:["changerange","pick","select"],setup(e,t){const{t:n,lang:r}=(0,Ye.bU)(),o=(0,l.iH)(null),i=(0,l.iH)(null),a=(0,l.iH)([[],[],[],[],[],[]]),c=e.date.$locale().weekStart||7,u=e.date.locale("en").localeData().weekdaysShort().map((e=>e.toLowerCase())),d=(0,s.Fl)((()=>c>3?7-c:-c)),p=(0,s.Fl)((()=>{const t=e.date.startOf("month");return t.subtract(t.day()||7,"day")})),f=(0,s.Fl)((()=>u.concat(u).slice(c,c+7))),h=(0,s.Fl)((()=>{var t;const n=e.date.startOf("month"),o=n.day()||7,i=n.daysInMonth(),s=n.subtract(1,"month").daysInMonth(),l=d.value,c=a.value;let u=1;const f="dates"===e.selectionMode?Br(e.parsedValue):[],h=Ue().locale(r.value).startOf("day");for(let r=0;r<6;r++){const n=c[r];e.showWeekNumber&&(n[0]||(n[0]={type:"week",text:p.value.add(7*r+1,"day").week()}));for(let a=0;a<7;a++){let c=n[e.showWeekNumber?a+1:a];c||(c={row:r,column:a,type:"normal",inRange:!1,start:!1,end:!1});const d=7*r+a,v=p.value.add(d-l,"day");c.dayjs=v,c.date=v.toDate(),c.timestamp=v.valueOf(),c.type="normal";const g=e.rangeState.endDate||e.maxDate||e.rangeState.selecting&&e.minDate;c.inRange=e.minDate&&v.isSameOrAfter(e.minDate,"day")&&g&&v.isSameOrBefore(g,"day")||e.minDate&&v.isSameOrBefore(e.minDate,"day")&&g&&v.isSameOrAfter(g,"day"),(null==(t=e.minDate)?void 0:t.isSameOrAfter(g))?(c.start=g&&v.isSame(g,"day"),c.end=e.minDate&&v.isSame(e.minDate,"day")):(c.start=e.minDate&&v.isSame(e.minDate,"day"),c.end=g&&v.isSame(g,"day"));const y=v.isSame(h,"day");if(y&&(c.type="today"),r>=0&&r<=1){const e=o+l<0?7+o+l:o+l;a+7*r>=e?c.text=u++:(c.text=s-(e-a%7)+1+7*r,c.type="prev-month")}else u<=i?c.text=u++:(c.text=u++-i,c.type="next-month");const b=v.toDate();c.selected=f.find((e=>e.valueOf()===v.valueOf())),c.isSelected=!!c.selected,c.isCurrent=m(c),c.disabled=e.disabledDate&&e.disabledDate(b),c.customClass=e.cellClassName&&e.cellClassName(b),n[e.showWeekNumber?a+1:a]=c}if("week"===e.selectionMode){const t=e.showWeekNumber?1:0,r=e.showWeekNumber?7:6,o=w(n[t+1]);n[t].inRange=o,n[t].start=o,n[r].inRange=o,n[r].end=o}}return c})),m=t=>"day"===e.selectionMode&&("normal"===t.type||"today"===t.type)&&v(t,e.parsedValue),v=(t,n)=>!!n&&Ue(n).locale(r.value).isSame(e.date.date(Number(t.text)),"day"),g=t=>{const n=[];return"normal"!==t.type&&"today"!==t.type||t.disabled?n.push(t.type):(n.push("available"),"today"===t.type&&n.push("today")),m(t)&&n.push("current"),!t.inRange||"normal"!==t.type&&"today"!==t.type&&"week"!==e.selectionMode||(n.push("in-range"),t.start&&n.push("start-date"),t.end&&n.push("end-date")),t.disabled&&n.push("disabled"),t.selected&&n.push("selected"),t.customClass&&n.push(t.customClass),n.join(" ")},y=(t,n)=>{const r=7*t+(n-(e.showWeekNumber?1:0))-d.value;return p.value.add(r,"day")},b=n=>{if(!e.rangeState.selecting)return;let r=n.target;if("SPAN"===r.tagName&&(r=r.parentNode.parentNode),"DIV"===r.tagName&&(r=r.parentNode),"TD"!==r.tagName)return;const a=r.parentNode.rowIndex-1,s=r.cellIndex;h.value[a][s].disabled||a===o.value&&s===i.value||(o.value=a,i.value=s,t.emit("changerange",{selecting:!0,endDate:y(a,s)}))},_=n=>{let r=n.target;while(r){if("TD"===r.tagName)break;r=r.parentNode}if(!r||"TD"!==r.tagName)return;const o=r.parentNode.rowIndex-1,i=r.cellIndex,a=h.value[o][i];if(a.disabled||"week"===a.type)return;const s=y(o,i);if("range"===e.selectionMode)e.rangeState.selecting?(s>=e.minDate?t.emit("pick",{minDate:e.minDate,maxDate:s}):t.emit("pick",{minDate:s,maxDate:e.minDate}),t.emit("select",!1)):(t.emit("pick",{minDate:s,maxDate:null}),t.emit("select",!0));else if("day"===e.selectionMode)t.emit("pick",s);else if("week"===e.selectionMode){const e=s.week(),n=`${s.year()}w${e}`;t.emit("pick",{year:s.year(),week:e,value:n,date:s.startOf("week")})}else if("dates"===e.selectionMode){const n=a.selected?Br(e.parsedValue).filter((e=>e.valueOf()!==s.valueOf())):Br(e.parsedValue).concat([s]);t.emit("pick",n)}},w=t=>{if("week"!==e.selectionMode)return!1;let n=e.date.startOf("day");if("prev-month"===t.type&&(n=n.subtract(1,"month")),"next-month"===t.type&&(n=n.add(1,"month")),n=n.date(Number.parseInt(t.text,10)),e.parsedValue&&!Array.isArray(e.parsedValue)){const t=(e.parsedValue.day()-c+7)%7-1,r=e.parsedValue.subtract(t,"day");return r.isSame(n,"day")}return!1};return{handleMouseMove:b,t:n,rows:h,isWeekActive:w,getCellClasses:g,WEEKS:f,handleClick:_}}}),Na={key:0};function Ma(e,t,n,r,o,i){const a=(0,s.up)("el-date-picker-cell");return(0,s.wg)(),(0,s.iD)("table",{cellspacing:"0",cellpadding:"0",class:(0,c.C_)(["el-date-table",{"is-week-mode":"week"===e.selectionMode}]),onClick:t[0]||(t[0]=(...t)=>e.handleClick&&e.handleClick(...t)),onMousemove:t[1]||(t[1]=(...t)=>e.handleMouseMove&&e.handleMouseMove(...t))},[(0,s._)("tbody",null,[(0,s._)("tr",null,[e.showWeekNumber?((0,s.wg)(),(0,s.iD)("th",Na,(0,c.zw)(e.t("el.datepicker.week")),1)):(0,s.kq)("v-if",!0),((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e.WEEKS,((t,n)=>((0,s.wg)(),(0,s.iD)("th",{key:n},(0,c.zw)(e.t("el.datepicker.weeks."+t)),1)))),128))]),((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e.rows,((t,n)=>((0,s.wg)(),(0,s.iD)("tr",{key:n,class:(0,c.C_)(["el-date-table__row",{current:e.isWeekActive(t[1])}])},[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(t,((t,n)=>((0,s.wg)(),(0,s.iD)("td",{key:n,class:(0,c.C_)(e.getCellClasses(t))},[(0,s.Wm)(a,{cell:t},null,8,["cell"])],2)))),128))],2)))),128))])],34)}var La=(0,h.Z)(Da,[["render",Ma],["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-date-table.vue"]]);const Fa=(e,t,n)=>{const r=Ue().locale(n).startOf("month").month(t).year(e),o=r.daysInMonth();return Ve(o).map((e=>r.add(e,"day").toDate()))},Ua=(0,s.aZ)({props:{disabledDate:{type:Function},selectionMode:{type:String,default:"month"},minDate:{type:Object},maxDate:{type:Object},date:{type:Object},parsedValue:{type:Object},rangeState:{type:Object,default:()=>({endDate:null,selecting:!1})}},emits:["changerange","pick","select"],setup(e,t){const{t:n,lang:r}=(0,Ye.bU)(),o=(0,l.iH)(e.date.locale("en").localeData().monthsShort().map((e=>e.toLowerCase()))),i=(0,l.iH)([[],[],[]]),a=(0,l.iH)(null),c=(0,l.iH)(null),u=(0,s.Fl)((()=>{var t;const n=i.value,o=Ue().locale(r.value).startOf("month");for(let r=0;r<3;r++){const i=n[r];for(let n=0;n<4;n++){let a=i[n];a||(a={row:r,column:n,type:"normal",inRange:!1,start:!1,end:!1}),a.type="normal";const s=4*r+n,l=e.date.startOf("year").month(s),c=e.rangeState.endDate||e.maxDate||e.rangeState.selecting&&e.minDate;a.inRange=e.minDate&&l.isSameOrAfter(e.minDate,"month")&&c&&l.isSameOrBefore(c,"month")||e.minDate&&l.isSameOrBefore(e.minDate,"month")&&c&&l.isSameOrAfter(c,"month"),(null==(t=e.minDate)?void 0:t.isSameOrAfter(c))?(a.start=c&&l.isSame(c,"month"),a.end=e.minDate&&l.isSame(e.minDate,"month")):(a.start=e.minDate&&l.isSame(e.minDate,"month"),a.end=c&&l.isSame(c,"month"));const u=o.isSame(l);u&&(a.type="today"),a.text=s;const d=l.toDate();a.disabled=e.disabledDate&&e.disabledDate(d),i[n]=a}}return n})),d=t=>{const n={},o=e.date.year(),i=new Date,a=t.text;return n.disabled=!!e.disabledDate&&Fa(o,a,r.value).every(e.disabledDate),n.current=Br(e.parsedValue).findIndex((e=>e.year()===o&&e.month()===a))>=0,n.today=i.getFullYear()===o&&i.getMonth()===a,t.inRange&&(n["in-range"]=!0,t.start&&(n["start-date"]=!0),t.end&&(n["end-date"]=!0)),n},p=n=>{if(!e.rangeState.selecting)return;let r=n.target;if("A"===r.tagName&&(r=r.parentNode.parentNode),"DIV"===r.tagName&&(r=r.parentNode),"TD"!==r.tagName)return;const o=r.parentNode.rowIndex,i=r.cellIndex;u.value[o][i].disabled||o===a.value&&i===c.value||(a.value=o,c.value=i,t.emit("changerange",{selecting:!0,endDate:e.date.startOf("year").month(4*o+i)}))},f=n=>{let r=n.target;if("A"===r.tagName&&(r=r.parentNode.parentNode),"DIV"===r.tagName&&(r=r.parentNode),"TD"!==r.tagName)return;if((0,re.pv)(r,"disabled"))return;const o=r.cellIndex,i=r.parentNode.rowIndex,a=4*i+o,s=e.date.startOf("year").month(a);"range"===e.selectionMode?e.rangeState.selecting?(s>=e.minDate?t.emit("pick",{minDate:e.minDate,maxDate:s}):t.emit("pick",{minDate:s,maxDate:e.minDate}),t.emit("select",!1)):(t.emit("pick",{minDate:s,maxDate:null}),t.emit("select",!0)):t.emit("pick",a)};return{handleMouseMove:p,handleMonthTableClick:f,rows:u,getCellStyle:d,t:n,months:o}}}),ja={class:"cell"};function Va(e,t,n,r,o,i){return(0,s.wg)(),(0,s.iD)("table",{class:"el-month-table",onClick:t[0]||(t[0]=(...t)=>e.handleMonthTableClick&&e.handleMonthTableClick(...t)),onMousemove:t[1]||(t[1]=(...t)=>e.handleMouseMove&&e.handleMouseMove(...t))},[(0,s._)("tbody",null,[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e.rows,((t,n)=>((0,s.wg)(),(0,s.iD)("tr",{key:n},[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(t,((t,n)=>((0,s.wg)(),(0,s.iD)("td",{key:n,class:(0,c.C_)(e.getCellStyle(t))},[(0,s._)("div",null,[(0,s._)("a",ja,(0,c.zw)(e.t("el.datepicker.months."+e.months[t.text])),1)])],2)))),128))])))),128))])],32)}var Ha=(0,h.Z)(Ua,[["render",Va],["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-month-table.vue"]]);const Ba=(e,t)=>{const n=Ue(String(e)).locale(t).startOf("year"),r=n.endOf("year"),o=r.dayOfYear();return Ve(o).map((e=>n.add(e,"day").toDate()))},$a=(0,s.aZ)({props:{disabledDate:{type:Function},parsedValue:{type:Object},date:{type:Object}},emits:["pick"],setup(e,t){const{lang:n}=(0,Ye.bU)(),r=(0,s.Fl)((()=>10*Math.floor(e.date.year()/10))),o=t=>{const r={},o=Ue().locale(n.value);return r.disabled=!!e.disabledDate&&Ba(t,n.value).every(e.disabledDate),r.current=Br(e.parsedValue).findIndex((e=>e.year()===t))>=0,r.today=o.year()===t,r},i=e=>{const n=e.target;if("A"===n.tagName){if((0,re.pv)(n.parentNode,"disabled"))return;const e=n.textContent||n.innerText;t.emit("pick",Number(e))}};return{startYear:r,getCellStyle:o,handleYearTableClick:i}}}),za={class:"cell"},Wa={class:"cell"},qa={class:"cell"},Za={class:"cell"},Ya={class:"cell"},Ka={class:"cell"},Ja={class:"cell"},Ga={class:"cell"},Xa={class:"cell"},Qa={class:"cell"},es=(0,s._)("td",null,null,-1),ts=(0,s._)("td",null,null,-1);function ns(e,t,n,r,o,i){return(0,s.wg)(),(0,s.iD)("table",{class:"el-year-table",onClick:t[0]||(t[0]=(...t)=>e.handleYearTableClick&&e.handleYearTableClick(...t))},[(0,s._)("tbody",null,[(0,s._)("tr",null,[(0,s._)("td",{class:(0,c.C_)(["available",e.getCellStyle(e.startYear+0)])},[(0,s._)("a",za,(0,c.zw)(e.startYear),1)],2),(0,s._)("td",{class:(0,c.C_)(["available",e.getCellStyle(e.startYear+1)])},[(0,s._)("a",Wa,(0,c.zw)(e.startYear+1),1)],2),(0,s._)("td",{class:(0,c.C_)(["available",e.getCellStyle(e.startYear+2)])},[(0,s._)("a",qa,(0,c.zw)(e.startYear+2),1)],2),(0,s._)("td",{class:(0,c.C_)(["available",e.getCellStyle(e.startYear+3)])},[(0,s._)("a",Za,(0,c.zw)(e.startYear+3),1)],2)]),(0,s._)("tr",null,[(0,s._)("td",{class:(0,c.C_)(["available",e.getCellStyle(e.startYear+4)])},[(0,s._)("a",Ya,(0,c.zw)(e.startYear+4),1)],2),(0,s._)("td",{class:(0,c.C_)(["available",e.getCellStyle(e.startYear+5)])},[(0,s._)("a",Ka,(0,c.zw)(e.startYear+5),1)],2),(0,s._)("td",{class:(0,c.C_)(["available",e.getCellStyle(e.startYear+6)])},[(0,s._)("a",Ja,(0,c.zw)(e.startYear+6),1)],2),(0,s._)("td",{class:(0,c.C_)(["available",e.getCellStyle(e.startYear+7)])},[(0,s._)("a",Ga,(0,c.zw)(e.startYear+7),1)],2)]),(0,s._)("tr",null,[(0,s._)("td",{class:(0,c.C_)(["available",e.getCellStyle(e.startYear+8)])},[(0,s._)("a",Xa,(0,c.zw)(e.startYear+8),1)],2),(0,s._)("td",{class:(0,c.C_)(["available",e.getCellStyle(e.startYear+9)])},[(0,s._)("a",Qa,(0,c.zw)(e.startYear+9),1)],2),es,ts])])])}var rs=(0,h.Z)($a,[["render",ns],["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-year-table.vue"]]),os=n(9306);const is=(e,t,n)=>{const r=[],o=t&&n();for(let i=0;i<e;i++)r[i]=!!o&&o.includes(i);return r},as=e=>e.map(((e,t)=>e||t)).filter((e=>!0!==e)),ss=(e,t,n)=>{const r=(t,n)=>is(24,e,(()=>e(t,n))),o=(e,n,r)=>is(60,t,(()=>t(e,n,r))),i=(e,t,r,o)=>is(60,n,(()=>n(e,t,r,o)));return{getHoursList:r,getMinutesList:o,getSecondsList:i}},ls=(e,t,n)=>{const{getHoursList:r,getMinutesList:o,getSecondsList:i}=ss(e,t,n),a=(e,t)=>as(r(e,t)),s=(e,t,n)=>as(o(e,t,n)),l=(e,t,n,r)=>as(i(e,t,n,r));return{getAvailableHours:a,getAvailableMinutes:s,getAvailableSeconds:l}},cs=e=>{const t=(0,l.iH)(e.parsedValue);return(0,s.YP)((()=>e.visible),(n=>{n||(t.value=e.parsedValue)})),t};var us={beforeMount(e,t){let n,r=null;const o=()=>t.value&&t.value(),i=()=>{Date.now()-n<100&&o(),clearInterval(r),r=null};(0,Xo.on)(e,"mousedown",(e=>{0===e.button&&(n=Date.now(),(0,Xo.IH)(document,"mouseup",i),clearInterval(r),r=setInterval(o,100))}))}};const ds=(0,s.aZ)({directives:{repeatClick:us},components:{ElScrollbar:L.Mr,ElIcon:C.gn,ArrowUp:os.Z,ArrowDown:to},props:{role:{type:String,required:!0},spinnerDate:{type:Object,required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:String,default:""},disabledHours:{type:Function},disabledMinutes:{type:Function},disabledSeconds:{type:Function}},emits:["change","select-range","set-option"],setup(e,t){const n=(0,m.s)("time");let r=!1;const o=(0,N.Z)((e=>{r=!1,E(e)}),200),i=(0,l.iH)(null),a=(0,l.iH)(null),c=(0,l.iH)(null),u=(0,l.iH)(null),d={hours:a,minutes:c,seconds:u},p=(0,s.Fl)((()=>{const t=["hours","minutes","seconds"];return e.showSeconds?t:t.slice(0,2)})),f=(0,s.Fl)((()=>e.spinnerDate.hour())),h=(0,s.Fl)((()=>e.spinnerDate.minute())),v=(0,s.Fl)((()=>e.spinnerDate.second())),g=(0,s.Fl)((()=>({hours:f,minutes:h,seconds:v}))),y=(0,s.Fl)((()=>$(e.role))),b=(0,s.Fl)((()=>z(f.value,e.role))),_=(0,s.Fl)((()=>W(f.value,h.value,e.role))),w=(0,s.Fl)((()=>({hours:y,minutes:b,seconds:_}))),k=(0,s.Fl)((()=>{const e=f.value;return[e>0?e-1:void 0,e,e<23?e+1:void 0]})),S=(0,s.Fl)((()=>{const e=h.value;return[e>0?e-1:void 0,e,e<59?e+1:void 0]})),C=(0,s.Fl)((()=>{const e=v.value;return[e>0?e-1:void 0,e,e<59?e+1:void 0]})),x=(0,s.Fl)((()=>({hours:k,minutes:S,seconds:C}))),I=t=>{const n=!!e.amPmMode;if(!n)return"";const r="A"===e.amPmMode;let o=t<12?" am":" pm";return r&&(o=o.toUpperCase()),o},T=e=>{"hours"===e?t.emit("select-range",0,2):"minutes"===e?t.emit("select-range",3,5):"seconds"===e&&t.emit("select-range",6,8),i.value=e},E=e=>{O(e,g.value[e].value)},R=()=>{E("hours"),E("minutes"),E("seconds")},P=e=>e.querySelector(`.${n.namespace.value}-scrollbar__wrap`),O=(t,n)=>{if(e.arrowControl)return;const r=d[t];r&&r.$el&&(P(r.$el).scrollTop=Math.max(0,n*A(t)))},A=e=>{const t=d[e];return t.$el.querySelector("li").offsetHeight},D=()=>{L(1)},M=()=>{L(-1)},L=e=>{i.value||T("hours");const t=i.value;let n=g.value[t].value;const r="hours"===i.value?24:60;n=(n+e+r)%r,F(t,n),O(t,n),(0,s.Y3)((()=>T(i.value)))},F=(n,r)=>{const o=w.value[n].value,i=o[r];if(!i)switch(n){case"hours":t.emit("change",e.spinnerDate.hour(r).minute(h.value).second(v.value));break;case"minutes":t.emit("change",e.spinnerDate.hour(f.value).minute(r).second(v.value));break;case"seconds":t.emit("change",e.spinnerDate.hour(f.value).minute(h.value).second(r));break}},U=(e,{value:t,disabled:n})=>{n||(F(e,t),T(e),O(e,t))},j=e=>{r=!0,o(e);const t=Math.min(Math.round((P(d[e].$el).scrollTop-(.5*V(e)-10)/A(e)+3)/A(e)),"hours"===e?23:59);F(e,t)},V=e=>d[e].$el.offsetHeight,H=()=>{const e=e=>{d[e]&&d[e].$el&&(P(d[e].$el).onscroll=()=>{j(e)})};e("hours"),e("minutes"),e("seconds")};(0,s.bv)((()=>{(0,s.Y3)((()=>{!e.arrowControl&&H(),R(),"start"===e.role&&T("hours")}))}));const B=(e,t)=>{d[t]=e};t.emit("set-option",[`${e.role}_scrollDown`,L]),t.emit("set-option",[`${e.role}_emitSelectRange`,T]);const{getHoursList:$,getMinutesList:z,getSecondsList:W}=ss(e.disabledHours,e.disabledMinutes,e.disabledSeconds);return(0,s.YP)((()=>e.spinnerDate),(()=>{r||R()})),{ns:n,setRef:B,spinnerItems:p,currentScrollbar:i,hours:f,minutes:h,seconds:v,hoursList:y,minutesList:b,arrowHourList:k,arrowMinuteList:S,arrowSecondList:C,getAmPmFlag:I,emitSelectRange:T,adjustCurrentSpinner:E,typeItemHeight:A,listHoursRef:a,listMinutesRef:c,listSecondsRef:u,onIncreaseClick:D,onDecreaseClick:M,handleClick:U,secondsList:_,timePartsMap:g,arrowListMap:x,listMap:w}}}),ps=["onClick"],fs=["onMouseenter"];function hs(e,t,n,r,o,i){const a=(0,s.up)("el-scrollbar"),l=(0,s.up)("arrow-up"),u=(0,s.up)("el-icon"),d=(0,s.up)("arrow-down"),p=(0,s.Q2)("repeat-click");return(0,s.wg)(),(0,s.iD)("div",{class:(0,c.C_)([e.ns.b("spinner"),{"has-seconds":e.showSeconds}])},[e.arrowControl?(0,s.kq)("v-if",!0):((0,s.wg)(!0),(0,s.iD)(s.HY,{key:0},(0,s.Ko)(e.spinnerItems,(t=>((0,s.wg)(),(0,s.j4)(a,{key:t,ref_for:!0,ref:n=>e.setRef(n,t),class:(0,c.C_)(e.ns.be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":e.ns.be("spinner","list"),noresize:"",tag:"ul",onMouseenter:n=>e.emitSelectRange(t),onMousemove:n=>e.adjustCurrentSpinner(t)},{default:(0,s.w5)((()=>[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e.listMap[t].value,((n,r)=>((0,s.wg)(),(0,s.iD)("li",{key:r,class:(0,c.C_)([e.ns.be("spinner","item"),e.ns.is("active",r===e.timePartsMap[t].value),e.ns.is("disabled",n)]),onClick:o=>e.handleClick(t,{value:r,disabled:n})},["hours"===t?((0,s.wg)(),(0,s.iD)(s.HY,{key:0},[(0,s.Uk)((0,c.zw)(("0"+(e.amPmMode?r%12||12:r)).slice(-2))+(0,c.zw)(e.getAmPmFlag(r)),1)],2112)):((0,s.wg)(),(0,s.iD)(s.HY,{key:1},[(0,s.Uk)((0,c.zw)(("0"+r).slice(-2)),1)],2112))],10,ps)))),128))])),_:2},1032,["class","view-class","onMouseenter","onMousemove"])))),128)),e.arrowControl?((0,s.wg)(!0),(0,s.iD)(s.HY,{key:1},(0,s.Ko)(e.spinnerItems,(t=>((0,s.wg)(),(0,s.iD)("div",{key:t,class:(0,c.C_)([e.ns.be("spinner","wrapper"),e.ns.is("arrow")]),onMouseenter:n=>e.emitSelectRange(t)},[(0,s.wy)(((0,s.wg)(),(0,s.j4)(u,{class:(0,c.C_)(["arrow-up",e.ns.be("spinner","arrow")])},{default:(0,s.w5)((()=>[(0,s.Wm)(l)])),_:1},8,["class"])),[[p,e.onDecreaseClick]]),(0,s.wy)(((0,s.wg)(),(0,s.j4)(u,{class:(0,c.C_)(["arrow-down",e.ns.be("spinner","arrow")])},{default:(0,s.w5)((()=>[(0,s.Wm)(d)])),_:1},8,["class"])),[[p,e.onIncreaseClick]]),(0,s._)("ul",{class:(0,c.C_)(e.ns.be("spinner","list"))},[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e.arrowListMap[t].value,((n,r)=>((0,s.wg)(),(0,s.iD)("li",{key:r,class:(0,c.C_)([e.ns.be("spinner","item"),e.ns.is("active",n===e.timePartsMap[t].value),e.ns.is("disabled",e.listMap[t].value[n])])},["number"===typeof n?((0,s.wg)(),(0,s.iD)(s.HY,{key:0},["hours"===t?((0,s.wg)(),(0,s.iD)(s.HY,{key:0},[(0,s.Uk)((0,c.zw)(("0"+(e.amPmMode?n%12||12:n)).slice(-2))+(0,c.zw)(e.getAmPmFlag(n)),1)],2112)):((0,s.wg)(),(0,s.iD)(s.HY,{key:1},[(0,s.Uk)((0,c.zw)(("0"+n).slice(-2)),1)],2112))],2112)):(0,s.kq)("v-if",!0)],2)))),128))],2)],42,fs)))),128)):(0,s.kq)("v-if",!0)],2)}var ms=(0,h.Z)(ds,[["render",hs],["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/basic-time-spinner.vue"]]);const vs=(0,s.aZ)({components:{TimeSpinner:ms},props:{visible:Boolean,actualVisible:{type:Boolean,default:void 0},datetimeRole:{type:String},parsedValue:{type:[Object,String]},format:{type:String,default:""}},emits:["pick","select-range","set-picker-option"],setup(e,t){const n=(0,m.s)("time"),{t:r,lang:o}=(0,Ye.bU)(),i=(0,l.iH)([0,2]),a=cs(e),c=(0,s.Fl)((()=>(0,Ut.o8)(e.actualVisible)?`${n.namespace.value}-zoom-in-top`:"")),u=(0,s.Fl)((()=>e.format.includes("ss"))),d=(0,s.Fl)((()=>e.format.includes("A")?"A":e.format.includes("a")?"a":"")),p=e=>{const t=Ue(e).locale(o.value),n=_(t);return t.isSame(n)},f=()=>{t.emit("pick",a.value,!1)},h=(n=!1,r=!1)=>{r||t.emit("pick",e.parsedValue,n)},v=n=>{if(!e.visible)return;const r=_(n).millisecond(0);t.emit("pick",r,!0)},g=(e,n)=>{t.emit("select-range",e,n),i.value=[e,n]},y=e=>{const t=[0,3].concat(u.value?[6]:[]),n=["hours","minutes"].concat(u.value?["seconds"]:[]),r=t.indexOf(i.value[0]),o=(r+e+t.length)%t.length;C["start_emitSelectRange"](n[o])},b=e=>{const t=e.code;if(t===Xn.n.left||t===Xn.n.right){const n=t===Xn.n.left?-1:1;return y(n),void e.preventDefault()}if(t===Xn.n.up||t===Xn.n.down){const n=t===Xn.n.up?-1:1;return C["start_scrollDown"](n),void e.preventDefault()}},_=t=>{const n={hour:A,minute:D,second:N};let r=t;return["hour","minute","second"].forEach((t=>{if(n[t]){let o;const i=n[t];o="minute"===t?i(r.hour(),e.datetimeRole):"second"===t?i(r.hour(),r.minute(),e.datetimeRole):i(e.datetimeRole),o&&o.length&&!o.includes(r[t]())&&(r=r[t](o[0]))}})),r},w=t=>t?Ue(t,e.format).locale(o.value):null,k=t=>t?t.format(e.format):null,S=()=>Ue(O).locale(o.value);t.emit("set-picker-option",["isValidValue",p]),t.emit("set-picker-option",["formatToString",k]),t.emit("set-picker-option",["parseUserInput",w]),t.emit("set-picker-option",["handleKeydown",b]),t.emit("set-picker-option",["getRangeAvailableTime",_]),t.emit("set-picker-option",["getDefaultValue",S]);const C={},x=e=>{C[e[0]]=e[1]},I=(0,s.f3)("EP_PICKER_BASE"),{arrowControl:T,disabledHours:E,disabledMinutes:R,disabledSeconds:P,defaultValue:O}=I.props,{getAvailableHours:A,getAvailableMinutes:D,getAvailableSeconds:N}=ls(E,R,P);return{ns:n,transitionName:c,arrowControl:T,onSetOption:x,t:r,handleConfirm:h,handleChange:v,setSelectionRange:g,amPmMode:d,showSeconds:u,handleCancel:f,disabledHours:E,disabledMinutes:R,disabledSeconds:P}}});function gs(e,t,n,r,o,i){const a=(0,s.up)("time-spinner");return(0,s.wg)(),(0,s.j4)(S.uT,{name:e.transitionName},{default:(0,s.w5)((()=>[e.actualVisible||e.visible?((0,s.wg)(),(0,s.iD)("div",{key:0,class:(0,c.C_)(e.ns.b("panel"))},[(0,s._)("div",{class:(0,c.C_)([e.ns.be("panel","content"),{"has-seconds":e.showSeconds}])},[(0,s.Wm)(a,{ref:"spinner",role:e.datetimeRole||"start","arrow-control":e.arrowControl,"show-seconds":e.showSeconds,"am-pm-mode":e.amPmMode,"spinner-date":e.parsedValue,"disabled-hours":e.disabledHours,"disabled-minutes":e.disabledMinutes,"disabled-seconds":e.disabledSeconds,onChange:e.handleChange,onSetOption:e.onSetOption,onSelectRange:e.setSelectionRange},null,8,["role","arrow-control","show-seconds","am-pm-mode","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onChange","onSetOption","onSelectRange"])],2),(0,s._)("div",{class:(0,c.C_)(e.ns.be("panel","footer"))},[(0,s._)("button",{type:"button",class:(0,c.C_)([e.ns.be("panel","btn"),"cancel"]),onClick:t[0]||(t[0]=(...t)=>e.handleCancel&&e.handleCancel(...t))},(0,c.zw)(e.t("el.datepicker.cancel")),3),(0,s._)("button",{type:"button",class:(0,c.C_)([e.ns.be("panel","btn"),"confirm"]),onClick:t[1]||(t[1]=t=>e.handleConfirm())},(0,c.zw)(e.t("el.datepicker.confirm")),3)],2)],2)):(0,s.kq)("v-if",!0)])),_:1},8,["name"])}var ys=(0,h.Z)(vs,[["render",gs],["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/panel-time-pick.vue"]]),bs=n(4723);const _s=(e,t,n)=>!0,ws=(0,s.aZ)({components:{DateTable:La,ElInput:M.EZ,ElButton:Fe.mi,ElIcon:C.gn,TimePickPanel:ys,MonthTable:Ha,YearTable:rs,DArrowLeft:Ca,ArrowLeft:wt,DArrowRight:Pa,ArrowRight:Tt},directives:{clickoutside:no.Z},props:{visible:{type:Boolean,default:!1},parsedValue:{type:[Object,Array]},format:{type:String,default:""},type:{type:String,required:!0,validator:hn.g}},emits:["pick","set-picker-option","panel-change"],setup(e,t){const{t:n,lang:r}=(0,Ye.bU)(),o=(0,s.f3)("EP_PICKER_BASE"),i=(0,s.f3)(bs.j),{shortcuts:a,disabledDate:c,cellClassName:u,defaultTime:d,arrowControl:p}=o.props,f=(0,l.Vh)(o.props,"defaultValue"),h=(0,l.iH)(Ue().locale(r.value)),m=(0,s.Fl)((()=>Ue(d).locale(r.value))),v=(0,s.Fl)((()=>h.value.month())),g=(0,s.Fl)((()=>h.value.year())),y=(0,l.iH)([]),b=(0,l.iH)(null),_=(0,l.iH)(null),w=t=>!(y.value.length>0)||_s(t,y.value,e.format||"HH:mm:ss"),k=e=>d&&!z.value?m.value.year(e.year()).month(e.month()).date(e.date()):U.value?e.millisecond(0):e.startOf("day"),S=(e,...n)=>{if(e)if(Array.isArray(e)){const r=e.map(k);t.emit("pick",r,...n)}else t.emit("pick",k(e),...n);else t.emit("pick",e,...n);b.value=null,_.value=null},C=t=>{if("day"===A.value){let n=e.parsedValue?e.parsedValue.year(t.year()).month(t.month()).date(t.date()):t;w(n)||(n=y.value[0][0].year(t.year()).month(t.month()).date(t.date())),h.value=n,S(n,U.value)}else"week"===A.value?S(t.date):"dates"===A.value&&S(t,!0)},x=()=>{h.value=h.value.subtract(1,"month"),oe("month")},I=()=>{h.value=h.value.add(1,"month"),oe("month")},T=()=>{"year"===R.value?h.value=h.value.subtract(10,"year"):h.value=h.value.subtract(1,"year"),oe("year")},E=()=>{"year"===R.value?h.value=h.value.add(10,"year"):h.value=h.value.add(1,"year"),oe("year")},R=(0,l.iH)("date"),P=(0,s.Fl)((()=>{const e=n("el.datepicker.year");if("year"===R.value){const t=10*Math.floor(g.value/10);return e?`${t} ${e} - ${t+9} ${e}`:`${t} - ${t+9}`}return`${g.value} ${e}`})),O=e=>{const n="function"===typeof e.value?e.value():e.value;n?S(Ue(n).locale(r.value)):e.onClick&&e.onClick(t)},A=(0,s.Fl)((()=>["week","month","year","dates"].includes(e.type)?e.type:"day"));(0,s.YP)((()=>A.value),(e=>{["month","year"].includes(e)?R.value=e:R.value="date"}),{immediate:!0}),(0,s.YP)((()=>R.value),(()=>{null==i||i.updatePopper()}));const D=(0,s.Fl)((()=>!!a.length)),N=e=>{h.value=h.value.startOf("month").month(e),"month"===A.value?S(h.value):R.value="date",oe("month")},M=e=>{"year"===A.value?(h.value=h.value.startOf("year").year(e),S(h.value)):(h.value=h.value.year(e),R.value="month"),oe("year")},L=()=>{R.value="month"},F=()=>{R.value="year"},U=(0,s.Fl)((()=>"datetime"===e.type||"datetimerange"===e.type)),j=(0,s.Fl)((()=>U.value||"dates"===A.value)),V=()=>{if("dates"===A.value)S(e.parsedValue);else{let t=e.parsedValue;if(!t){const e=Ue(d).locale(r.value),n=te();t=e.year(n.year()).month(n.month()).date(n.date())}h.value=t,S(t)}},H=()=>{const e=Ue().locale(r.value),t=e.toDate();c&&c(t)||!w(t)||(h.value=Ue().locale(r.value),S(h.value))},B=(0,s.Fl)((()=>Be(e.format))),$=(0,s.Fl)((()=>He(e.format))),z=(0,s.Fl)((()=>_.value?_.value:e.parsedValue||f.value?(e.parsedValue||h.value).format(B.value):void 0)),W=(0,s.Fl)((()=>b.value?b.value:e.parsedValue||f.value?(e.parsedValue||h.value).format($.value):void 0)),q=(0,l.iH)(!1),Z=()=>{q.value=!0},Y=()=>{q.value=!1},K=(t,n,r)=>{const o=e.parsedValue?e.parsedValue.hour(t.hour()).minute(t.minute()).second(t.second()):t;h.value=o,S(h.value,!0),r||(q.value=n)},J=e=>{const t=Ue(e,B.value).locale(r.value);t.isValid()&&w(t)&&(h.value=t.year(h.value.year()).month(h.value.month()).date(h.value.date()),_.value=null,q.value=!1,S(h.value,!0))},G=e=>{const t=Ue(e,$.value).locale(r.value);if(t.isValid()){if(c&&c(t.toDate()))return;h.value=t.hour(h.value.hour()).minute(h.value.minute()).second(h.value.second()),b.value=null,S(h.value,!0)}},X=e=>Ue.isDayjs(e)&&e.isValid()&&(!c||!c(e.toDate())),Q=t=>"dates"===A.value?t.map((t=>t.format(e.format))):t.format(e.format),ee=t=>Ue(t,e.format).locale(r.value),te=()=>{const e=Ue(f.value).locale(r.value);if(!f.value){const e=m.value;return Ue().hour(e.hour()).minute(e.minute()).second(e.second()).locale(r.value)}return e},ne=t=>{const{code:n,keyCode:r}=t,o=[Xn.n.up,Xn.n.down,Xn.n.left,Xn.n.right];e.visible&&!q.value&&(o.includes(n)&&(re(r),t.stopPropagation(),t.preventDefault()),n===Xn.n.enter&&null===b.value&&null===_.value&&S(h,!1))},re=e=>{const n={year:{38:-4,40:4,37:-1,39:1,offset:(e,t)=>e.setFullYear(e.getFullYear()+t)},month:{38:-4,40:4,37:-1,39:1,offset:(e,t)=>e.setMonth(e.getMonth()+t)},week:{38:-1,40:1,37:-1,39:1,offset:(e,t)=>e.setDate(e.getDate()+7*t)},day:{38:-7,40:7,37:-1,39:1,offset:(e,t)=>e.setDate(e.getDate()+t)}},o=h.value.toDate();while(Math.abs(h.value.diff(o,"year",!0))<1){const i=n[A.value];if(i.offset(o,i[e]),c&&c(o))continue;const a=Ue(o).locale(r.value);h.value=a,t.emit("pick",a,!0);break}},oe=e=>{t.emit("panel-change",h.value.toDate(),e,R.value)};return t.emit("set-picker-option",["isValidValue",X]),t.emit("set-picker-option",["formatToString",Q]),t.emit("set-picker-option",["parseUserInput",ee]),t.emit("set-picker-option",["handleKeydown",ne]),(0,s.YP)((()=>f.value),(e=>{e&&(h.value=te())}),{immediate:!0}),(0,s.YP)((()=>e.parsedValue),(e=>{if(e){if("dates"===A.value)return;if(Array.isArray(e))return;h.value=e}else h.value=te()}),{immediate:!0}),{handleTimePick:K,handleTimePickClose:Y,onTimePickerInputFocus:Z,timePickerVisible:q,visibleTime:z,visibleDate:W,showTime:U,changeToNow:H,onConfirm:V,footerVisible:j,handleYearPick:M,showMonthPicker:L,showYearPicker:F,handleMonthPick:N,hasShortcuts:D,shortcuts:a,arrowControl:p,disabledDate:c,cellClassName:u,selectionMode:A,handleShortcutClick:O,prevYear_:T,nextYear_:E,prevMonth_:x,nextMonth_:I,innerDate:h,t:n,yearLabel:P,currentView:R,month:v,handleDatePick:C,handleVisibleTimeChange:J,handleVisibleDateChange:G,timeFormat:B,userInputTime:_,userInputDate:b}}}),ks={class:"el-picker-panel__body-wrapper"},Ss={key:0,class:"el-picker-panel__sidebar"},Cs=["onClick"],xs={class:"el-picker-panel__body"},Is={key:0,class:"el-date-picker__time-header"},Ts={class:"el-date-picker__editor-wrap"},Es={class:"el-date-picker__editor-wrap"},Rs=["aria-label"],Ps=["aria-label"],Os=["aria-label"],As=["aria-label"],Ds={class:"el-picker-panel__content"},Ns={class:"el-picker-panel__footer"};function Ms(e,t,n,r,o,i){const a=(0,s.up)("el-input"),l=(0,s.up)("time-pick-panel"),u=(0,s.up)("d-arrow-left"),d=(0,s.up)("el-icon"),p=(0,s.up)("arrow-left"),f=(0,s.up)("d-arrow-right"),h=(0,s.up)("arrow-right"),m=(0,s.up)("date-table"),v=(0,s.up)("year-table"),g=(0,s.up)("month-table"),y=(0,s.up)("el-button"),b=(0,s.Q2)("clickoutside");return(0,s.wg)(),(0,s.iD)("div",{class:(0,c.C_)(["el-picker-panel el-date-picker",[{"has-sidebar":e.$slots.sidebar||e.hasShortcuts,"has-time":e.showTime}]])},[(0,s._)("div",ks,[(0,s.WI)(e.$slots,"sidebar",{class:"el-picker-panel__sidebar"}),e.hasShortcuts?((0,s.wg)(),(0,s.iD)("div",Ss,[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e.shortcuts,((t,n)=>((0,s.wg)(),(0,s.iD)("button",{key:n,type:"button",class:"el-picker-panel__shortcut",onClick:n=>e.handleShortcutClick(t)},(0,c.zw)(t.text),9,Cs)))),128))])):(0,s.kq)("v-if",!0),(0,s._)("div",xs,[e.showTime?((0,s.wg)(),(0,s.iD)("div",Is,[(0,s._)("span",Ts,[(0,s.Wm)(a,{placeholder:e.t("el.datepicker.selectDate"),"model-value":e.visibleDate,size:"small",onInput:t[0]||(t[0]=t=>e.userInputDate=t),onChange:e.handleVisibleDateChange},null,8,["placeholder","model-value","onChange"])]),(0,s.wy)(((0,s.wg)(),(0,s.iD)("span",Es,[(0,s.Wm)(a,{placeholder:e.t("el.datepicker.selectTime"),"model-value":e.visibleTime,size:"small",onFocus:e.onTimePickerInputFocus,onInput:t[1]||(t[1]=t=>e.userInputTime=t),onChange:e.handleVisibleTimeChange},null,8,["placeholder","model-value","onFocus","onChange"]),(0,s.Wm)(l,{visible:e.timePickerVisible,format:e.timeFormat,"time-arrow-control":e.arrowControl,"parsed-value":e.innerDate,onPick:e.handleTimePick},null,8,["visible","format","time-arrow-control","parsed-value","onPick"])])),[[b,e.handleTimePickClose]])])):(0,s.kq)("v-if",!0),(0,s.wy)((0,s._)("div",{class:(0,c.C_)(["el-date-picker__header",{"el-date-picker__header--bordered":"year"===e.currentView||"month"===e.currentView}])},[(0,s._)("button",{type:"button","aria-label":e.t("el.datepicker.prevYear"),class:"el-picker-panel__icon-btn el-date-picker__prev-btn d-arrow-left",onClick:t[2]||(t[2]=(...t)=>e.prevYear_&&e.prevYear_(...t))},[(0,s.Wm)(d,null,{default:(0,s.w5)((()=>[(0,s.Wm)(u)])),_:1})],8,Rs),(0,s.wy)((0,s._)("button",{type:"button","aria-label":e.t("el.datepicker.prevMonth"),class:"el-picker-panel__icon-btn el-date-picker__prev-btn arrow-left",onClick:t[3]||(t[3]=(...t)=>e.prevMonth_&&e.prevMonth_(...t))},[(0,s.Wm)(d,null,{default:(0,s.w5)((()=>[(0,s.Wm)(p)])),_:1})],8,Ps),[[S.F8,"date"===e.currentView]]),(0,s._)("span",{role:"button",class:"el-date-picker__header-label",onClick:t[4]||(t[4]=(...t)=>e.showYearPicker&&e.showYearPicker(...t))},(0,c.zw)(e.yearLabel),1),(0,s.wy)((0,s._)("span",{role:"button",class:(0,c.C_)(["el-date-picker__header-label",{active:"month"===e.currentView}]),onClick:t[5]||(t[5]=(...t)=>e.showMonthPicker&&e.showMonthPicker(...t))},(0,c.zw)(e.t(`el.datepicker.month${e.month+1}`)),3),[[S.F8,"date"===e.currentView]]),(0,s._)("button",{type:"button","aria-label":e.t("el.datepicker.nextYear"),class:"el-picker-panel__icon-btn el-date-picker__next-btn d-arrow-right",onClick:t[6]||(t[6]=(...t)=>e.nextYear_&&e.nextYear_(...t))},[(0,s.Wm)(d,null,{default:(0,s.w5)((()=>[(0,s.Wm)(f)])),_:1})],8,Os),(0,s.wy)((0,s._)("button",{type:"button","aria-label":e.t("el.datepicker.nextMonth"),class:"el-picker-panel__icon-btn el-date-picker__next-btn arrow-right",onClick:t[7]||(t[7]=(...t)=>e.nextMonth_&&e.nextMonth_(...t))},[(0,s.Wm)(d,null,{default:(0,s.w5)((()=>[(0,s.Wm)(h)])),_:1})],8,As),[[S.F8,"date"===e.currentView]])],2),[[S.F8,"time"!==e.currentView]]),(0,s._)("div",Ds,["date"===e.currentView?((0,s.wg)(),(0,s.j4)(m,{key:0,"selection-mode":e.selectionMode,date:e.innerDate,"parsed-value":e.parsedValue,"disabled-date":e.disabledDate,"cell-class-name":e.cellClassName,onPick:e.handleDatePick},null,8,["selection-mode","date","parsed-value","disabled-date","cell-class-name","onPick"])):(0,s.kq)("v-if",!0),"year"===e.currentView?((0,s.wg)(),(0,s.j4)(v,{key:1,date:e.innerDate,"disabled-date":e.disabledDate,"parsed-value":e.parsedValue,onPick:e.handleYearPick},null,8,["date","disabled-date","parsed-value","onPick"])):(0,s.kq)("v-if",!0),"month"===e.currentView?((0,s.wg)(),(0,s.j4)(g,{key:2,date:e.innerDate,"parsed-value":e.parsedValue,"disabled-date":e.disabledDate,onPick:e.handleMonthPick},null,8,["date","parsed-value","disabled-date","onPick"])):(0,s.kq)("v-if",!0)])])]),(0,s.wy)((0,s._)("div",Ns,[(0,s.wy)((0,s.Wm)(y,{size:"small",type:"text",class:"el-picker-panel__link-btn",onClick:e.changeToNow},{default:(0,s.w5)((()=>[(0,s.Uk)((0,c.zw)(e.t("el.datepicker.now")),1)])),_:1},8,["onClick"]),[[S.F8,"dates"!==e.selectionMode]]),(0,s.Wm)(y,{plain:"",size:"small",class:"el-picker-panel__link-btn",onClick:e.onConfirm},{default:(0,s.w5)((()=>[(0,s.Uk)((0,c.zw)(e.t("el.datepicker.confirm")),1)])),_:1},8,["onClick"])],512),[[S.F8,e.footerVisible&&"date"===e.currentView]])],2)}var Ls=(0,h.Z)(ws,[["render",Ms],["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-date-pick.vue"]]);const Fs=(0,s.aZ)({directives:{clickoutside:no.Z},components:{TimePickPanel:ys,DateTable:La,ElInput:M.EZ,ElButton:Fe.mi,ElIcon:C.gn,DArrowLeft:Ca,ArrowLeft:wt,DArrowRight:Pa,ArrowRight:Tt},props:{unlinkPanels:Boolean,parsedValue:{type:Array},type:{type:String,required:!0,validator:hn.g}},emits:["pick","set-picker-option","calendar-change","panel-change"],setup(e,t){const{t:n,lang:r}=(0,Ye.bU)(),o=(0,l.iH)(Ue().locale(r.value)),i=(0,l.iH)(Ue().locale(r.value).add(1,"month")),a=(0,l.iH)(null),c=(0,l.iH)(null),u=(0,l.iH)({min:null,max:null}),d=(0,l.iH)({min:null,max:null}),p=(0,s.Fl)((()=>`${o.value.year()} ${n("el.datepicker.year")} ${n(`el.datepicker.month${o.value.month()+1}`)}`)),f=(0,s.Fl)((()=>`${i.value.year()} ${n("el.datepicker.year")} ${n(`el.datepicker.month${i.value.month()+1}`)}`)),h=(0,s.Fl)((()=>o.value.year())),m=(0,s.Fl)((()=>o.value.month())),v=(0,s.Fl)((()=>i.value.year())),g=(0,s.Fl)((()=>i.value.month())),y=(0,s.Fl)((()=>!!se.length)),b=(0,s.Fl)((()=>null!==u.value.min?u.value.min:a.value?a.value.format(C.value):"")),_=(0,s.Fl)((()=>null!==u.value.max?u.value.max:c.value||a.value?(c.value||a.value).format(C.value):"")),w=(0,s.Fl)((()=>null!==d.value.min?d.value.min:a.value?a.value.format(S.value):"")),k=(0,s.Fl)((()=>null!==d.value.max?d.value.max:c.value||a.value?(c.value||a.value).format(S.value):"")),S=(0,s.Fl)((()=>Be(ue))),C=(0,s.Fl)((()=>He(ue))),x=()=>{o.value=o.value.subtract(1,"year"),e.unlinkPanels||(i.value=o.value.add(1,"month")),D("year")},I=()=>{o.value=o.value.subtract(1,"month"),e.unlinkPanels||(i.value=o.value.add(1,"month")),D("month")},T=()=>{e.unlinkPanels?i.value=i.value.add(1,"year"):(o.value=o.value.add(1,"year"),i.value=o.value.add(1,"month")),D("year")},E=()=>{e.unlinkPanels?i.value=i.value.add(1,"month"):(o.value=o.value.add(1,"month"),i.value=o.value.add(1,"month")),D("month")},R=()=>{o.value=o.value.add(1,"year"),D("year")},P=()=>{o.value=o.value.add(1,"month"),D("month")},O=()=>{i.value=i.value.subtract(1,"year"),D("year")},A=()=>{i.value=i.value.subtract(1,"month"),D("month")},D=e=>{t.emit("panel-change",[o.value.toDate(),i.value.toDate()],e)},N=(0,s.Fl)((()=>{const t=(m.value+1)%12,n=m.value+1>=12?1:0;return e.unlinkPanels&&new Date(h.value+n,t)<new Date(v.value,g.value)})),M=(0,s.Fl)((()=>e.unlinkPanels&&12*v.value+g.value-(12*h.value+m.value+1)>=12)),L=e=>Array.isArray(e)&&e[0]&&e[1]&&e[0].valueOf()<=e[1].valueOf(),F=(0,l.iH)({endDate:null,selecting:!1}),U=(0,s.Fl)((()=>!(a.value&&c.value&&!F.value.selecting&&L([a.value,c.value])))),j=e=>{F.value=e},V=e=>{F.value.selecting=e,e||(F.value.endDate=null)},H=(0,s.Fl)((()=>"datetime"===e.type||"datetimerange"===e.type)),B=(e=!1)=>{L([a.value,c.value])&&t.emit("pick",[a.value,c.value],e)},$=(e,t)=>{if(e){if(de){const n=Ue(de[t]||de).locale(r.value);return n.year(e.year()).month(e.month()).date(e.date())}return e}},z=(e,n=!0)=>{const r=e.minDate,o=e.maxDate,i=$(r,0),s=$(o,1);c.value===s&&a.value===i||(t.emit("calendar-change",[r.toDate(),o&&o.toDate()]),c.value=s,a.value=i,n&&!H.value&&B())},W=e=>{const n="function"===typeof e.value?e.value():e.value;n?t.emit("pick",[Ue(n[0]).locale(r.value),Ue(n[1]).locale(r.value)]):e.onClick&&e.onClick(t)},q=(0,l.iH)(!1),Z=(0,l.iH)(!1),Y=()=>{q.value=!1},K=()=>{Z.value=!1},J=(t,n)=>{u.value[n]=t;const s=Ue(t,C.value).locale(r.value);if(s.isValid()){if(le&&le(s.toDate()))return;"min"===n?(o.value=s,a.value=(a.value||o.value).year(s.year()).month(s.month()).date(s.date()),e.unlinkPanels||(i.value=s.add(1,"month"),c.value=a.value.add(1,"month"))):(i.value=s,c.value=(c.value||i.value).year(s.year()).month(s.month()).date(s.date()),e.unlinkPanels||(o.value=s.subtract(1,"month"),a.value=c.value.subtract(1,"month")))}},G=(e,t)=>{u.value[t]=null},X=(e,t)=>{d.value[t]=e;const n=Ue(e,S.value).locale(r.value);n.isValid()&&("min"===t?(q.value=!0,a.value=(a.value||o.value).hour(n.hour()).minute(n.minute()).second(n.second()),c.value&&!c.value.isBefore(a.value)||(c.value=a.value)):(Z.value=!0,c.value=(c.value||i.value).hour(n.hour()).minute(n.minute()).second(n.second()),i.value=c.value,c.value&&c.value.isBefore(a.value)&&(a.value=c.value)))},Q=(e,t)=>{d.value[t]=null,"min"===t?(o.value=a.value,q.value=!1):(i.value=c.value,Z.value=!1)},ee=(e,t,n)=>{d.value.min||(e&&(o.value=e,a.value=(a.value||o.value).hour(e.hour()).minute(e.minute()).second(e.second())),n||(q.value=t),c.value&&!c.value.isBefore(a.value)||(c.value=a.value,i.value=e))},te=(e,t,n)=>{d.value.max||(e&&(i.value=e,c.value=(c.value||i.value).hour(e.hour()).minute(e.minute()).second(e.second())),n||(Z.value=t),c.value&&c.value.isBefore(a.value)&&(a.value=c.value))},ne=()=>{o.value=ie()[0],i.value=o.value.add(1,"month"),t.emit("pick",null)},re=e=>Array.isArray(e)?e.map((e=>e.format(ue))):e.format(ue),oe=e=>Array.isArray(e)?e.map((e=>Ue(e,ue).locale(r.value))):Ue(e,ue).locale(r.value),ie=()=>{let t;if(Array.isArray(he.value)){const t=Ue(he.value[0]);let n=Ue(he.value[1]);return e.unlinkPanels||(n=t.add(1,"month")),[t,n]}return t=he.value?Ue(he.value):Ue(),t=t.locale(r.value),[t,t.add(1,"month")]};t.emit("set-picker-option",["isValidValue",L]),t.emit("set-picker-option",["parseUserInput",oe]),t.emit("set-picker-option",["formatToString",re]),t.emit("set-picker-option",["handleClear",ne]);const ae=(0,s.f3)("EP_PICKER_BASE"),{shortcuts:se,disabledDate:le,cellClassName:ce,format:ue,defaultTime:de,arrowControl:pe,clearable:fe}=ae.props,he=(0,l.Vh)(ae.props,"defaultValue");return(0,s.YP)((()=>he.value),(e=>{if(e){const e=ie();a.value=null,c.value=null,o.value=e[0],i.value=e[1]}}),{immediate:!0}),(0,s.YP)((()=>e.parsedValue),(t=>{if(t&&2===t.length)if(a.value=t[0],c.value=t[1],o.value=a.value,e.unlinkPanels&&c.value){const e=a.value.year(),t=a.value.month(),n=c.value.year(),r=c.value.month();i.value=e===n&&t===r?c.value.add(1,"month"):c.value}else i.value=o.value.add(1,"month"),c.value&&(i.value=i.value.hour(c.value.hour()).minute(c.value.minute()).second(c.value.second()));else{const e=ie();a.value=null,c.value=null,o.value=e[0],i.value=e[1]}}),{immediate:!0}),{shortcuts:se,disabledDate:le,cellClassName:ce,minTimePickerVisible:q,maxTimePickerVisible:Z,handleMinTimeClose:Y,handleMaxTimeClose:K,handleShortcutClick:W,rangeState:F,minDate:a,maxDate:c,handleRangePick:z,onSelect:V,handleChangeRange:j,btnDisabled:U,enableYearArrow:M,enableMonthArrow:N,rightPrevMonth:A,rightPrevYear:O,rightNextMonth:E,rightNextYear:T,leftPrevMonth:I,leftPrevYear:x,leftNextMonth:P,leftNextYear:R,hasShortcuts:y,leftLabel:p,rightLabel:f,leftDate:o,rightDate:i,showTime:H,t:n,minVisibleDate:b,maxVisibleDate:_,minVisibleTime:w,maxVisibleTime:k,arrowControl:pe,handleDateInput:J,handleDateChange:G,handleTimeInput:X,handleTimeChange:Q,handleMinTimePick:ee,handleMaxTimePick:te,handleClear:ne,handleConfirm:B,timeFormat:S,clearable:fe}}}),Us={class:"el-picker-panel__body-wrapper"},js={key:0,class:"el-picker-panel__sidebar"},Vs=["onClick"],Hs={class:"el-picker-panel__body"},Bs={key:0,class:"el-date-range-picker__time-header"},$s={class:"el-date-range-picker__editors-wrap"},zs={class:"el-date-range-picker__time-picker-wrap"},Ws={class:"el-date-range-picker__time-picker-wrap"},qs={class:"el-date-range-picker__editors-wrap is-right"},Zs={class:"el-date-range-picker__time-picker-wrap"},Ys={class:"el-date-range-picker__time-picker-wrap"},Ks={class:"el-picker-panel__content el-date-range-picker__content is-left"},Js={class:"el-date-range-picker__header"},Gs=["disabled"],Xs=["disabled"],Qs={class:"el-picker-panel__content el-date-range-picker__content is-right"},el={class:"el-date-range-picker__header"},tl=["disabled"],nl=["disabled"],rl={key:0,class:"el-picker-panel__footer"};function ol(e,t,n,r,o,i){const a=(0,s.up)("el-input"),l=(0,s.up)("time-pick-panel"),u=(0,s.up)("arrow-right"),d=(0,s.up)("el-icon"),p=(0,s.up)("d-arrow-left"),f=(0,s.up)("arrow-left"),h=(0,s.up)("d-arrow-right"),m=(0,s.up)("date-table"),v=(0,s.up)("el-button"),g=(0,s.Q2)("clickoutside");return(0,s.wg)(),(0,s.iD)("div",{class:(0,c.C_)(["el-picker-panel el-date-range-picker",[{"has-sidebar":e.$slots.sidebar||e.hasShortcuts,"has-time":e.showTime}]])},[(0,s._)("div",Us,[(0,s.WI)(e.$slots,"sidebar",{class:"el-picker-panel__sidebar"}),e.hasShortcuts?((0,s.wg)(),(0,s.iD)("div",js,[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e.shortcuts,((t,n)=>((0,s.wg)(),(0,s.iD)("button",{key:n,type:"button",class:"el-picker-panel__shortcut",onClick:n=>e.handleShortcutClick(t)},(0,c.zw)(t.text),9,Vs)))),128))])):(0,s.kq)("v-if",!0),(0,s._)("div",Hs,[e.showTime?((0,s.wg)(),(0,s.iD)("div",Bs,[(0,s._)("span",$s,[(0,s._)("span",zs,[(0,s.Wm)(a,{size:"small",disabled:e.rangeState.selecting,placeholder:e.t("el.datepicker.startDate"),class:"el-date-range-picker__editor","model-value":e.minVisibleDate,onInput:t[0]||(t[0]=t=>e.handleDateInput(t,"min")),onChange:t[1]||(t[1]=t=>e.handleDateChange(t,"min"))},null,8,["disabled","placeholder","model-value"])]),(0,s.wy)(((0,s.wg)(),(0,s.iD)("span",Ws,[(0,s.Wm)(a,{size:"small",class:"el-date-range-picker__editor",disabled:e.rangeState.selecting,placeholder:e.t("el.datepicker.startTime"),"model-value":e.minVisibleTime,onFocus:t[2]||(t[2]=t=>e.minTimePickerVisible=!0),onInput:t[3]||(t[3]=t=>e.handleTimeInput(t,"min")),onChange:t[4]||(t[4]=t=>e.handleTimeChange(t,"min"))},null,8,["disabled","placeholder","model-value"]),(0,s.Wm)(l,{visible:e.minTimePickerVisible,format:e.timeFormat,"datetime-role":"start","time-arrow-control":e.arrowControl,"parsed-value":e.leftDate,onPick:e.handleMinTimePick},null,8,["visible","format","time-arrow-control","parsed-value","onPick"])])),[[g,e.handleMinTimeClose]])]),(0,s._)("span",null,[(0,s.Wm)(d,null,{default:(0,s.w5)((()=>[(0,s.Wm)(u)])),_:1})]),(0,s._)("span",qs,[(0,s._)("span",Zs,[(0,s.Wm)(a,{size:"small",class:"el-date-range-picker__editor",disabled:e.rangeState.selecting,placeholder:e.t("el.datepicker.endDate"),"model-value":e.maxVisibleDate,readonly:!e.minDate,onInput:t[5]||(t[5]=t=>e.handleDateInput(t,"max")),onChange:t[6]||(t[6]=t=>e.handleDateChange(t,"max"))},null,8,["disabled","placeholder","model-value","readonly"])]),(0,s.wy)(((0,s.wg)(),(0,s.iD)("span",Ys,[(0,s.Wm)(a,{size:"small",class:"el-date-range-picker__editor",disabled:e.rangeState.selecting,placeholder:e.t("el.datepicker.endTime"),"model-value":e.maxVisibleTime,readonly:!e.minDate,onFocus:t[7]||(t[7]=t=>e.minDate&&(e.maxTimePickerVisible=!0)),onInput:t[8]||(t[8]=t=>e.handleTimeInput(t,"max")),onChange:t[9]||(t[9]=t=>e.handleTimeChange(t,"max"))},null,8,["disabled","placeholder","model-value","readonly"]),(0,s.Wm)(l,{"datetime-role":"end",visible:e.maxTimePickerVisible,format:e.timeFormat,"time-arrow-control":e.arrowControl,"parsed-value":e.rightDate,onPick:e.handleMaxTimePick},null,8,["visible","format","time-arrow-control","parsed-value","onPick"])])),[[g,e.handleMaxTimeClose]])])])):(0,s.kq)("v-if",!0),(0,s._)("div",Ks,[(0,s._)("div",Js,[(0,s._)("button",{type:"button",class:"el-picker-panel__icon-btn d-arrow-left",onClick:t[10]||(t[10]=(...t)=>e.leftPrevYear&&e.leftPrevYear(...t))},[(0,s.Wm)(d,null,{default:(0,s.w5)((()=>[(0,s.Wm)(p)])),_:1})]),(0,s._)("button",{type:"button",class:"el-picker-panel__icon-btn arrow-left",onClick:t[11]||(t[11]=(...t)=>e.leftPrevMonth&&e.leftPrevMonth(...t))},[(0,s.Wm)(d,null,{default:(0,s.w5)((()=>[(0,s.Wm)(f)])),_:1})]),e.unlinkPanels?((0,s.wg)(),(0,s.iD)("button",{key:0,type:"button",disabled:!e.enableYearArrow,class:(0,c.C_)([{"is-disabled":!e.enableYearArrow},"el-picker-panel__icon-btn d-arrow-right"]),onClick:t[12]||(t[12]=(...t)=>e.leftNextYear&&e.leftNextYear(...t))},[(0,s.Wm)(d,null,{default:(0,s.w5)((()=>[(0,s.Wm)(h)])),_:1})],10,Gs)):(0,s.kq)("v-if",!0),e.unlinkPanels?((0,s.wg)(),(0,s.iD)("button",{key:1,type:"button",disabled:!e.enableMonthArrow,class:(0,c.C_)([{"is-disabled":!e.enableMonthArrow},"el-picker-panel__icon-btn arrow-right"]),onClick:t[13]||(t[13]=(...t)=>e.leftNextMonth&&e.leftNextMonth(...t))},[(0,s.Wm)(d,null,{default:(0,s.w5)((()=>[(0,s.Wm)(u)])),_:1})],10,Xs)):(0,s.kq)("v-if",!0),(0,s._)("div",null,(0,c.zw)(e.leftLabel),1)]),(0,s.Wm)(m,{"selection-mode":"range",date:e.leftDate,"min-date":e.minDate,"max-date":e.maxDate,"range-state":e.rangeState,"disabled-date":e.disabledDate,"cell-class-name":e.cellClassName,onChangerange:e.handleChangeRange,onPick:e.handleRangePick,onSelect:e.onSelect},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onPick","onSelect"])]),(0,s._)("div",Qs,[(0,s._)("div",el,[e.unlinkPanels?((0,s.wg)(),(0,s.iD)("button",{key:0,type:"button",disabled:!e.enableYearArrow,class:(0,c.C_)([{"is-disabled":!e.enableYearArrow},"el-picker-panel__icon-btn d-arrow-left"]),onClick:t[14]||(t[14]=(...t)=>e.rightPrevYear&&e.rightPrevYear(...t))},[(0,s.Wm)(d,null,{default:(0,s.w5)((()=>[(0,s.Wm)(p)])),_:1})],10,tl)):(0,s.kq)("v-if",!0),e.unlinkPanels?((0,s.wg)(),(0,s.iD)("button",{key:1,type:"button",disabled:!e.enableMonthArrow,class:(0,c.C_)([{"is-disabled":!e.enableMonthArrow},"el-picker-panel__icon-btn arrow-left"]),onClick:t[15]||(t[15]=(...t)=>e.rightPrevMonth&&e.rightPrevMonth(...t))},[(0,s.Wm)(d,null,{default:(0,s.w5)((()=>[(0,s.Wm)(f)])),_:1})],10,nl)):(0,s.kq)("v-if",!0),(0,s._)("button",{type:"button",class:"el-picker-panel__icon-btn d-arrow-right",onClick:t[16]||(t[16]=(...t)=>e.rightNextYear&&e.rightNextYear(...t))},[(0,s.Wm)(d,null,{default:(0,s.w5)((()=>[(0,s.Wm)(h)])),_:1})]),(0,s._)("button",{type:"button",class:"el-picker-panel__icon-btn arrow-right",onClick:t[17]||(t[17]=(...t)=>e.rightNextMonth&&e.rightNextMonth(...t))},[(0,s.Wm)(d,null,{default:(0,s.w5)((()=>[(0,s.Wm)(u)])),_:1})]),(0,s._)("div",null,(0,c.zw)(e.rightLabel),1)]),(0,s.Wm)(m,{"selection-mode":"range",date:e.rightDate,"min-date":e.minDate,"max-date":e.maxDate,"range-state":e.rangeState,"disabled-date":e.disabledDate,"cell-class-name":e.cellClassName,onChangerange:e.handleChangeRange,onPick:e.handleRangePick,onSelect:e.onSelect},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onPick","onSelect"])])])]),e.showTime?((0,s.wg)(),(0,s.iD)("div",rl,[e.clearable?((0,s.wg)(),(0,s.j4)(v,{key:0,size:"small",type:"text",class:"el-picker-panel__link-btn",onClick:e.handleClear},{default:(0,s.w5)((()=>[(0,s.Uk)((0,c.zw)(e.t("el.datepicker.clear")),1)])),_:1},8,["onClick"])):(0,s.kq)("v-if",!0),(0,s.Wm)(v,{plain:"",size:"small",class:"el-picker-panel__link-btn",disabled:e.btnDisabled,onClick:t[18]||(t[18]=t=>e.handleConfirm(!1))},{default:(0,s.w5)((()=>[(0,s.Uk)((0,c.zw)(e.t("el.datepicker.confirm")),1)])),_:1},8,["disabled"])])):(0,s.kq)("v-if",!0)],2)}var il=(0,h.Z)(Fs,[["render",ol],["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-date-range.vue"]]);const al=(0,s.aZ)({components:{MonthTable:Ha,ElIcon:C.gn,DArrowLeft:Ca,DArrowRight:Pa},props:{unlinkPanels:Boolean,parsedValue:{type:Array}},emits:["pick","set-picker-option"],setup(e,t){const{t:n,lang:r}=(0,Ye.bU)(),o=(0,l.iH)(Ue().locale(r.value)),i=(0,l.iH)(Ue().locale(r.value).add(1,"year")),a=(0,s.Fl)((()=>!!P.length)),c=e=>{const n="function"===typeof e.value?e.value():e.value;n?t.emit("pick",[Ue(n[0]).locale(r.value),Ue(n[1]).locale(r.value)]):e.onClick&&e.onClick(t)},u=()=>{o.value=o.value.subtract(1,"year"),e.unlinkPanels||(i.value=i.value.subtract(1,"year"))},d=()=>{e.unlinkPanels||(o.value=o.value.add(1,"year")),i.value=i.value.add(1,"year")},p=()=>{o.value=o.value.add(1,"year")},f=()=>{i.value=i.value.subtract(1,"year")},h=(0,s.Fl)((()=>`${o.value.year()} ${n("el.datepicker.year")}`)),m=(0,s.Fl)((()=>`${i.value.year()} ${n("el.datepicker.year")}`)),v=(0,s.Fl)((()=>o.value.year())),g=(0,s.Fl)((()=>i.value.year()===o.value.year()?o.value.year()+1:i.value.year())),y=(0,s.Fl)((()=>e.unlinkPanels&&g.value>v.value+1)),b=(0,l.iH)(null),_=(0,l.iH)(null),w=(0,l.iH)({endDate:null,selecting:!1}),k=e=>{w.value=e},S=(e,t=!0)=>{const n=e.minDate,r=e.maxDate;_.value===r&&b.value===n||(_.value=r,b.value=n,t&&x())},C=e=>Array.isArray(e)&&e&&e[0]&&e[1]&&e[0].valueOf()<=e[1].valueOf(),x=(e=!1)=>{C([b.value,_.value])&&t.emit("pick",[b.value,_.value],e)},I=e=>{w.value.selecting=e,e||(w.value.endDate=null)},T=e=>e.map((e=>e.format(A))),E=()=>{let t;if(Array.isArray(D.value)){const t=Ue(D.value[0]);let n=Ue(D.value[1]);return e.unlinkPanels||(n=t.add(1,"year")),[t,n]}return t=D.value?Ue(D.value):Ue(),t=t.locale(r.value),[t,t.add(1,"year")]};t.emit("set-picker-option",["formatToString",T]);const R=(0,s.f3)("EP_PICKER_BASE"),{shortcuts:P,disabledDate:O,format:A}=R.props,D=(0,l.Vh)(R.props,"defaultValue");return(0,s.YP)((()=>D.value),(e=>{if(e){const e=E();o.value=e[0],i.value=e[1]}}),{immediate:!0}),(0,s.YP)((()=>e.parsedValue),(t=>{if(t&&2===t.length)if(b.value=t[0],_.value=t[1],o.value=b.value,e.unlinkPanels&&_.value){const e=b.value.year(),t=_.value.year();i.value=e===t?_.value.add(1,"year"):_.value}else i.value=o.value.add(1,"year");else{const e=E();b.value=null,_.value=null,o.value=e[0],i.value=e[1]}}),{immediate:!0}),{shortcuts:P,disabledDate:O,onSelect:I,handleRangePick:S,rangeState:w,handleChangeRange:k,minDate:b,maxDate:_,enableYearArrow:y,leftLabel:h,rightLabel:m,leftNextYear:p,leftPrevYear:u,rightNextYear:d,rightPrevYear:f,t:n,leftDate:o,rightDate:i,hasShortcuts:a,handleShortcutClick:c}}}),sl={class:"el-picker-panel__body-wrapper"},ll={key:0,class:"el-picker-panel__sidebar"},cl=["onClick"],ul={class:"el-picker-panel__body"},dl={class:"el-picker-panel__content el-date-range-picker__content is-left"},pl={class:"el-date-range-picker__header"},fl=["disabled"],hl={class:"el-picker-panel__content el-date-range-picker__content is-right"},ml={class:"el-date-range-picker__header"},vl=["disabled"];function gl(e,t,n,r,o,i){const a=(0,s.up)("d-arrow-left"),l=(0,s.up)("el-icon"),u=(0,s.up)("d-arrow-right"),d=(0,s.up)("month-table");return(0,s.wg)(),(0,s.iD)("div",{class:(0,c.C_)(["el-picker-panel el-date-range-picker",[{"has-sidebar":e.$slots.sidebar||e.hasShortcuts}]])},[(0,s._)("div",sl,[(0,s.WI)(e.$slots,"sidebar",{class:"el-picker-panel__sidebar"}),e.hasShortcuts?((0,s.wg)(),(0,s.iD)("div",ll,[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e.shortcuts,((t,n)=>((0,s.wg)(),(0,s.iD)("button",{key:n,type:"button",class:"el-picker-panel__shortcut",onClick:n=>e.handleShortcutClick(t)},(0,c.zw)(t.text),9,cl)))),128))])):(0,s.kq)("v-if",!0),(0,s._)("div",ul,[(0,s._)("div",dl,[(0,s._)("div",pl,[(0,s._)("button",{type:"button",class:"el-picker-panel__icon-btn d-arrow-left",onClick:t[0]||(t[0]=(...t)=>e.leftPrevYear&&e.leftPrevYear(...t))},[(0,s.Wm)(l,null,{default:(0,s.w5)((()=>[(0,s.Wm)(a)])),_:1})]),e.unlinkPanels?((0,s.wg)(),(0,s.iD)("button",{key:0,type:"button",disabled:!e.enableYearArrow,class:(0,c.C_)([{"is-disabled":!e.enableYearArrow},"el-picker-panel__icon-btn d-arrow-right"]),onClick:t[1]||(t[1]=(...t)=>e.leftNextYear&&e.leftNextYear(...t))},[(0,s.Wm)(l,null,{default:(0,s.w5)((()=>[(0,s.Wm)(u)])),_:1})],10,fl)):(0,s.kq)("v-if",!0),(0,s._)("div",null,(0,c.zw)(e.leftLabel),1)]),(0,s.Wm)(d,{"selection-mode":"range",date:e.leftDate,"min-date":e.minDate,"max-date":e.maxDate,"range-state":e.rangeState,"disabled-date":e.disabledDate,onChangerange:e.handleChangeRange,onPick:e.handleRangePick,onSelect:e.onSelect},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onPick","onSelect"])]),(0,s._)("div",hl,[(0,s._)("div",ml,[e.unlinkPanels?((0,s.wg)(),(0,s.iD)("button",{key:0,type:"button",disabled:!e.enableYearArrow,class:(0,c.C_)([{"is-disabled":!e.enableYearArrow},"el-picker-panel__icon-btn d-arrow-left"]),onClick:t[2]||(t[2]=(...t)=>e.rightPrevYear&&e.rightPrevYear(...t))},[(0,s.Wm)(l,null,{default:(0,s.w5)((()=>[(0,s.Wm)(a)])),_:1})],10,vl)):(0,s.kq)("v-if",!0),(0,s._)("button",{type:"button",class:"el-picker-panel__icon-btn d-arrow-right",onClick:t[3]||(t[3]=(...t)=>e.rightNextYear&&e.rightNextYear(...t))},[(0,s.Wm)(l,null,{default:(0,s.w5)((()=>[(0,s.Wm)(u)])),_:1})]),(0,s._)("div",null,(0,c.zw)(e.rightLabel),1)]),(0,s.Wm)(d,{"selection-mode":"range",date:e.rightDate,"min-date":e.minDate,"max-date":e.maxDate,"range-state":e.rangeState,"disabled-date":e.disabledDate,onChangerange:e.handleChangeRange,onPick:e.handleRangePick,onSelect:e.onSelect},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onPick","onSelect"])])])])],2)}var yl=(0,h.Z)(al,[["render",gl],["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-month-range.vue"]]);const bl={id:{type:[Array,String]},name:{type:[Array,String],default:""},popperClass:{type:String,default:""},format:{type:String},valueFormat:{type:String},type:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:[String,Object],default:Kr.Z},editable:{type:Boolean,default:!0},prefixIcon:{type:[String,Object],default:""},size:{type:String,validator:hn.P},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},modelValue:{type:[Date,Array,String,Number],default:""},rangeSeparator:{type:String,default:"-"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:[Date,Array]},defaultTime:{type:[Date,Array]},isRange:{type:Boolean,default:!1},disabledHours:{type:Function},disabledMinutes:{type:Function},disabledSeconds:{type:Function},disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:{type:Boolean,default:!1},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean},_l="HH:mm:ss",wl="YYYY-MM-DD",kl={date:wl,week:"gggg[w]ww",year:"YYYY",month:"YYYY-MM",datetime:`${wl} ${_l}`,monthrange:"YYYY-MM",daterange:wl,datetimerange:`${wl} ${_l}`},Sl=(0,s.aZ)({name:"Clock"}),Cl={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},xl=(0,s._)("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),Il=(0,s._)("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32z"},null,-1),Tl=(0,s._)("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32z"},null,-1),El=[xl,Il,Tl];function Rl(e,t,n,r,o,i){return(0,s.wg)(),(0,s.iD)("svg",Cl,El)}var Pl=(0,ce.Z)(Sl,[["render",Rl]]);const Ol=(0,s.aZ)({name:"Calendar"}),Al={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Dl=(0,s._)("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64H128zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0v32zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64z"},null,-1),Nl=[Dl];function Ml(e,t,n,r,o,i){return(0,s.wg)(),(0,s.iD)("svg",Al,Nl)}var Ll=(0,ce.Z)(Ol,[["render",Ml]]);const Fl=function(e,t){const n=e instanceof Date,r=t instanceof Date;return n&&r?e.getTime()===t.getTime():!n&&!r&&e===t},Ul=function(e,t){const n=Array.isArray(e),r=Array.isArray(t);return n&&r?e.length===t.length&&e.every(((e,n)=>Fl(e,t[n]))):!n&&!r&&Fl(e,t)},jl=function(e,t,n){const r=(0,Ut.xb)(t)||"x"===t?Ue(e).locale(n):Ue(e,t).locale(n);return r.isValid()?r:void 0},Vl=function(e,t,n){return(0,Ut.xb)(t)?e:"x"===t?+e:Ue(e).locale(n).format(t)},Hl=(0,s.aZ)({name:"Picker",components:{ElInput:M.EZ,ElTooltip:F.Q0,ElIcon:C.gn},props:bl,emits:["update:modelValue","change","focus","blur","calendar-change","panel-change","visible-change"],setup(e,t){const{lang:n}=(0,Ye.bU)(),r=(0,m.s)("date"),o=(0,m.s)("input"),i=(0,m.s)("range"),a=(0,s.f3)(rn.H,{}),c=(0,s.f3)(rn.K,{}),d=(0,s.f3)("ElPopperOptions",{}),p=(0,l.iH)(),f=(0,l.iH)(),h=(0,l.iH)(!1),g=(0,l.iH)(!1),y=(0,l.iH)(null);(0,s.YP)(h,(n=>{var r;n?y.value=e.modelValue:(K.value=null,(0,s.Y3)((()=>{b(e.modelValue)})),t.emit("blur"),G(),e.validateEvent&&(null==(r=c.validate)||r.call(c,"blur").catch((e=>(0,v.N)(e)))))}));const b=(n,r)=>{var o;!r&&Ul(n,y.value)||(t.emit("change",n),e.validateEvent&&(null==(o=c.validate)||o.call(c,"change").catch((e=>(0,v.N)(e)))))},_=r=>{if(!Ul(e.modelValue,r)){let o;Array.isArray(r)?o=r.map((t=>Vl(t,e.valueFormat,n.value))):r&&(o=Vl(r,e.valueFormat,n.value)),t.emit("update:modelValue",r?o:r,n.value)}},w=(0,s.Fl)((()=>{if(f.value){const e=z.value?f.value:f.value.$el;return Array.from(e.querySelectorAll("input"))}return[]})),k=(0,s.Fl)((()=>null==w?void 0:w.value[0])),S=(0,s.Fl)((()=>null==w?void 0:w.value[1])),C=(e,t,n)=>{const r=w.value;r.length&&(n&&"min"!==n?"max"===n&&(r[1].setSelectionRange(e,t),r[1].focus()):(r[0].setSelectionRange(e,t),r[0].focus()))},x=(e="",t=!1)=>{let n;h.value=t,n=Array.isArray(e)?e.map((e=>e.toDate())):e?e.toDate():e,K.value=null,_(n)},I=()=>{g.value=!0},T=()=>{t.emit("visible-change",!0)},E=()=>{g.value=!1,t.emit("visible-change",!1)},R=(e=!0)=>{let t=k.value;!e&&z.value&&(t=S.value),t&&t.focus()},P=n=>{e.readonly||A.value||h.value||(h.value=!0,t.emit("focus",n))},O=()=>{var e;null==(e=p.value)||e.onClose(),G()},A=(0,s.Fl)((()=>e.disabled||a.disabled)),D=(0,s.Fl)((()=>{let t;if(H.value?se.value.getDefaultValue&&(t=se.value.getDefaultValue()):t=Array.isArray(e.modelValue)?e.modelValue.map((t=>jl(t,e.valueFormat,n.value))):jl(e.modelValue,e.valueFormat,n.value),se.value.getRangeAvailableTime){const e=se.value.getRangeAvailableTime(t);(0,zt.Z)(e,t)||(t=e,_(Array.isArray(t)?t.map((e=>e.toDate())):t.toDate()))}return Array.isArray(t)&&t.some((e=>!e))&&(t=[]),t})),N=(0,s.Fl)((()=>{if(!se.value.panelReady)return;const e=Q(D.value);return Array.isArray(K.value)?[K.value[0]||e&&e[0]||"",K.value[1]||e&&e[1]||""]:null!==K.value?K.value:!L.value&&H.value||!h.value&&H.value?void 0:e?F.value?e.join(", "):e:""})),M=(0,s.Fl)((()=>e.type.includes("time"))),L=(0,s.Fl)((()=>e.type.startsWith("time"))),F=(0,s.Fl)((()=>"dates"===e.type)),U=(0,s.Fl)((()=>e.prefixIcon||(M.value?Pl:Ll))),j=(0,l.iH)(!1),V=t=>{e.readonly||A.value||j.value&&(t.stopPropagation(),_(null),b(null,!0),j.value=!1,h.value=!1,se.value.handleClear&&se.value.handleClear())},H=(0,s.Fl)((()=>!e.modelValue||Array.isArray(e.modelValue)&&!e.modelValue.length)),B=()=>{e.readonly||A.value||!H.value&&e.clearable&&(j.value=!0)},$=()=>{j.value=!1},z=(0,s.Fl)((()=>e.type.includes("range"))),W=(0,on.tH)(),q=(0,s.Fl)((()=>{var e,t;return null==(t=null==(e=p.value)?void 0:e.popperRef)?void 0:t.contentRef})),Z=(0,s.Fl)((()=>{var e,t;return null==(t=null==(e=(0,l.SU)(p))?void 0:e.popperRef)?void 0:t.contentRef})),Y=(0,s.Fl)((()=>{var e;return(0,l.SU)(z)?(0,l.SU)(f):null==(e=(0,l.SU)(f))?void 0:e.$el}));(0,u.i9H)(Y,(e=>{const t=(0,l.SU)(Z),n=(0,l.SU)(Y);t&&(e.target===t||e.composedPath().includes(t))||e.target===n||e.composedPath().includes(n)||(h.value=!1)}));const K=(0,l.iH)(null),J=()=>{if(K.value){const e=X(N.value);e&&ee(e)&&(_(Array.isArray(e)?e.map((e=>e.toDate())):e.toDate()),K.value=null)}""===K.value&&(_(null),b(null),K.value=null)},G=()=>{w.value.forEach((e=>e.blur()))},X=e=>e?se.value.parseUserInput(e):null,Q=e=>e?se.value.formatToString(e):null,ee=e=>se.value.isValidValue(e),te=e=>{const t=e.code;return t===Xn.n.esc?(h.value=!1,void e.stopPropagation()):t!==Xn.n.tab?t===Xn.n.enter||t===Xn.n.numpadEnter?((null===K.value||""===K.value||ee(X(N.value)))&&(J(),h.value=!1),void e.stopPropagation()):void(K.value?e.stopPropagation():se.value.handleKeydown&&se.value.handleKeydown(e)):void(z.value?setTimeout((()=>{w.value.includes(document.activeElement)||(h.value=!1,G())}),0):(J(),h.value=!1,e.stopPropagation()))},ne=e=>{K.value=e},re=e=>{K.value?K.value=[e.target.value,K.value[1]]:K.value=[e.target.value,null]},oe=e=>{K.value?K.value=[K.value[0],e.target.value]:K.value=[null,e.target.value]},ie=()=>{const e=X(K.value&&K.value[0]);if(e&&e.isValid()){K.value=[Q(e),N.value[1]];const t=[e,D.value&&D.value[1]];ee(t)&&(_(t),K.value=null)}},ae=()=>{const e=X(K.value&&K.value[1]);if(e&&e.isValid()){K.value=[N.value[0],Q(e)];const t=[D.value&&D.value[0],e];ee(t)&&(_(t),K.value=null)}},se=(0,l.iH)({}),le=e=>{se.value[e[0]]=e[1],se.value.panelReady=!0},ce=e=>{t.emit("calendar-change",e)},ue=(e,n,r)=>{t.emit("panel-change",e,n,r)};return(0,s.JJ)("EP_PICKER_BASE",{props:e}),{nsDate:r,nsInput:o,nsRange:i,elPopperOptions:d,isDatesPicker:F,handleEndChange:ae,handleStartChange:ie,handleStartInput:re,handleEndInput:oe,onUserInput:ne,handleChange:J,handleKeydown:te,popperPaneRef:q,onClickOutside:u.i9H,pickerSize:W,isRangeInput:z,onMouseLeave:$,onMouseEnter:B,onClearIconClick:V,showClose:j,triggerIcon:U,onPick:x,handleFocus:P,handleBlur:O,pickerVisible:h,pickerActualVisible:g,displayValue:N,parsedValue:D,setSelectionRange:C,refPopper:p,inputRef:f,pickerDisabled:A,onSetPickerOption:le,onCalendarChange:ce,onPanelChange:ue,focus:R,onShow:T,onBeforeShow:I,onHide:E}}}),Bl=["id","name","placeholder","value","disabled","readonly"],$l=["id","name","placeholder","value","disabled","readonly"];function zl(e,t,n,r,o,i){const a=(0,s.up)("el-icon"),l=(0,s.up)("el-input"),u=(0,s.up)("el-tooltip");return(0,s.wg)(),(0,s.j4)(u,(0,s.dG)({ref:"refPopper",visible:e.pickerVisible,"onUpdate:visible":t[17]||(t[17]=t=>e.pickerVisible=t),effect:"light",pure:"",trigger:"click"},e.$attrs,{"append-to-body":"",transition:`${e.nsDate.namespace.value}-zoom-in-top`,"popper-class":[`${e.nsDate.namespace.value}-picker__popper`,e.popperClass],"popper-options":e.elPopperOptions,"fallback-placements":["bottom","top","right","left"],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:e.onBeforeShow,onShow:e.onShow,onHide:e.onHide}),{default:(0,s.w5)((()=>[e.isRangeInput?((0,s.wg)(),(0,s.iD)("div",{key:1,ref:"inputRef",class:(0,c.C_)([e.nsDate.b("editor"),e.nsDate.bm("editor",e.type),e.nsInput.e("inner"),e.nsDate.is("disabled",e.pickerDisabled),e.nsDate.is("active",e.pickerVisible),e.nsRange.b("editor"),e.pickerSize?e.nsRange.bm("editor",e.pickerSize):"",e.$attrs.class]),style:(0,c.j5)(e.$attrs.style),onClick:t[7]||(t[7]=(...t)=>e.handleFocus&&e.handleFocus(...t)),onMouseenter:t[8]||(t[8]=(...t)=>e.onMouseEnter&&e.onMouseEnter(...t)),onMouseleave:t[9]||(t[9]=(...t)=>e.onMouseLeave&&e.onMouseLeave(...t)),onKeydown:t[10]||(t[10]=(...t)=>e.handleKeydown&&e.handleKeydown(...t))},[e.triggerIcon?((0,s.wg)(),(0,s.j4)(a,{key:0,class:(0,c.C_)([e.nsInput.e("icon"),e.nsRange.e("icon")]),onClick:e.handleFocus},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)(e.triggerIcon)))])),_:1},8,["class","onClick"])):(0,s.kq)("v-if",!0),(0,s._)("input",{id:e.id&&e.id[0],autocomplete:"off",name:e.name&&e.name[0],placeholder:e.startPlaceholder,value:e.displayValue&&e.displayValue[0],disabled:e.pickerDisabled,readonly:!e.editable||e.readonly,class:(0,c.C_)(e.nsRange.b("input")),onInput:t[1]||(t[1]=(...t)=>e.handleStartInput&&e.handleStartInput(...t)),onChange:t[2]||(t[2]=(...t)=>e.handleStartChange&&e.handleStartChange(...t)),onFocus:t[3]||(t[3]=(...t)=>e.handleFocus&&e.handleFocus(...t))},null,42,Bl),(0,s.WI)(e.$slots,"range-separator",{},(()=>[(0,s._)("span",{class:(0,c.C_)(e.nsRange.b("separator"))},(0,c.zw)(e.rangeSeparator),3)])),(0,s._)("input",{id:e.id&&e.id[1],autocomplete:"off",name:e.name&&e.name[1],placeholder:e.endPlaceholder,value:e.displayValue&&e.displayValue[1],disabled:e.pickerDisabled,readonly:!e.editable||e.readonly,class:(0,c.C_)(e.nsRange.b("input")),onFocus:t[4]||(t[4]=(...t)=>e.handleFocus&&e.handleFocus(...t)),onInput:t[5]||(t[5]=(...t)=>e.handleEndInput&&e.handleEndInput(...t)),onChange:t[6]||(t[6]=(...t)=>e.handleEndChange&&e.handleEndChange(...t))},null,42,$l),e.clearIcon?((0,s.wg)(),(0,s.j4)(a,{key:1,class:(0,c.C_)([e.nsInput.e("icon"),e.nsRange.e("close-icon"),{[e.nsRange.e("close-icon--hidden")]:!e.showClose}]),onClick:e.onClearIconClick},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)(e.clearIcon)))])),_:1},8,["class","onClick"])):(0,s.kq)("v-if",!0)],38)):((0,s.wg)(),(0,s.j4)(l,{key:0,id:e.id,ref:"inputRef","model-value":e.displayValue,name:e.name,size:e.pickerSize,disabled:e.pickerDisabled,placeholder:e.placeholder,class:(0,c.C_)([e.nsDate.b("editor"),e.nsDate.bm("editor",e.type),e.$attrs.class]),style:(0,c.j5)(e.$attrs.style),readonly:!e.editable||e.readonly||e.isDatesPicker||"week"===e.type,onInput:e.onUserInput,onFocus:e.handleFocus,onKeydown:e.handleKeydown,onChange:e.handleChange,onMouseenter:e.onMouseEnter,onMouseleave:e.onMouseLeave,onClick:t[0]||(t[0]=(0,S.iM)((()=>{}),["stop"]))},{prefix:(0,s.w5)((()=>[e.triggerIcon?((0,s.wg)(),(0,s.j4)(a,{key:0,class:(0,c.C_)(e.nsInput.e("icon")),onClick:e.handleFocus},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)(e.triggerIcon)))])),_:1},8,["class","onClick"])):(0,s.kq)("v-if",!0)])),suffix:(0,s.w5)((()=>[e.showClose&&e.clearIcon?((0,s.wg)(),(0,s.j4)(a,{key:0,class:(0,c.C_)(`${e.nsInput.e("icon")} clear-icon`),onClick:e.onClearIconClick},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)(e.clearIcon)))])),_:1},8,["class","onClick"])):(0,s.kq)("v-if",!0)])),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","onInput","onFocus","onKeydown","onChange","onMouseenter","onMouseleave"]))])),content:(0,s.w5)((()=>[(0,s.WI)(e.$slots,"default",{visible:e.pickerVisible,actualVisible:e.pickerActualVisible,parsedValue:e.parsedValue,format:e.format,unlinkPanels:e.unlinkPanels,type:e.type,defaultValue:e.defaultValue,onPick:t[11]||(t[11]=(...t)=>e.onPick&&e.onPick(...t)),onSelectRange:t[12]||(t[12]=(...t)=>e.setSelectionRange&&e.setSelectionRange(...t)),onSetPickerOption:t[13]||(t[13]=(...t)=>e.onSetPickerOption&&e.onSetPickerOption(...t)),onCalendarChange:t[14]||(t[14]=(...t)=>e.onCalendarChange&&e.onCalendarChange(...t)),onPanelChange:t[15]||(t[15]=(...t)=>e.onPanelChange&&e.onPanelChange(...t)),onMousedown:t[16]||(t[16]=(0,S.iM)((()=>{}),["stop"]))})])),_:3},16,["visible","transition","popper-class","popper-options","onBeforeShow","onShow","onHide"])}var Wl=(0,h.Z)(Hl,[["render",zl],["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/common/picker.vue"]]);Ue.extend(je),Ue.extend(fa),Ue.extend(pa),Ue.extend(ha),Ue.extend(ma),Ue.extend(va),Ue.extend(ga),Ue.extend(ya);const ql=function(e){return"daterange"===e||"datetimerange"===e?il:"monthrange"===e?yl:Ls};var Zl=(0,s.aZ)({name:"ElDatePicker",install:null,props:{...bl,type:{type:String,default:"date"}},emits:["update:modelValue"],setup(e,t){(0,s.JJ)("ElPopperOptions",e.popperOptions),(0,s.JJ)(Oa,{ctx:t});const n=(0,l.iH)(null),r={...e,focus:(e=!0)=>{var t;null==(t=n.value)||t.focus(e)}};return t.expose(r),()=>{var r;const o=null!=(r=e.format)?r:kl[e.type]||wl;return(0,s.h)(Wl,{...e,format:o,type:e.type,ref:n,"onUpdate:modelValue":e=>t.emit("update:modelValue",e)},{default:t=>(0,s.h)(ql(e.type),t),"range-separator":()=>(0,s.WI)(t.slots,"range-separator")})}}});const Yl=Zl;Yl.install=e=>{e.component(Yl.name,Yl)};const Kl=Yl,Jl="elDescriptions",Gl="utils/vue/vnode";var Xl=(e=>(e[e["TEXT"]=1]="TEXT",e[e["CLASS"]=2]="CLASS",e[e["STYLE"]=4]="STYLE",e[e["PROPS"]=8]="PROPS",e[e["FULL_PROPS"]=16]="FULL_PROPS",e[e["HYDRATE_EVENTS"]=32]="HYDRATE_EVENTS",e[e["STABLE_FRAGMENT"]=64]="STABLE_FRAGMENT",e[e["KEYED_FRAGMENT"]=128]="KEYED_FRAGMENT",e[e["UNKEYED_FRAGMENT"]=256]="UNKEYED_FRAGMENT",e[e["NEED_PATCH"]=512]="NEED_PATCH",e[e["DYNAMIC_SLOTS"]=1024]="DYNAMIC_SLOTS",e[e["HOISTED"]=-1]="HOISTED",e[e["BAIL"]=-2]="BAIL",e))(Xl||{});function Ql(e){return(0,s.lA)(e)&&e.type===s.HY}function ec(e){return(0,s.lA)(e)&&e.type===s.sv}function tc(e){return(0,s.lA)(e)&&!Ql(e)&&!ec(e)}const nc=e=>{if(!(0,s.lA)(e))return(0,v.N)(Gl,"[getNormalizedProps] must be a VNode"),{};const t=e.props||{},n=((0,s.lA)(e.type)?e.type.props:void 0)||{},r={};return Object.keys(n).forEach((e=>{(0,c.RI)(n[e],"default")&&(r[e]=n[e].default)})),Object.keys(t).forEach((e=>{r[(0,c._A)(e)]=t[e]})),r},rc=e=>{if(!(0,c.kJ)(e)||e.length>1)throw new Error("expect to receive a single Vue element child");return e[0]};var oc=(0,s.aZ)({name:"ElDescriptionsCell",props:{cell:{type:Object},tag:{type:String},type:{type:String}},setup(){const e=(0,s.f3)(Jl,{});return{descriptions:e}},render(){var e,t,n,r,o,i;const a=nc(this.cell),{border:l,direction:c}=this.descriptions,u="vertical"===c,d=(null==(n=null==(t=null==(e=this.cell)?void 0:e.children)?void 0:t.label)?void 0:n.call(t))||a.label,p=null==(i=null==(o=null==(r=this.cell)?void 0:r.children)?void 0:o.default)?void 0:i.call(o),f=a.span,h=a.align?`is-${a.align}`:"",v=a.labelAlign?`is-${a.labelAlign}`:h,g=a.className,y=a.labelClassName,b={width:(0,re.Nn)(a.width),minWidth:(0,re.Nn)(a.minWidth)},_=(0,m.s)("descriptions");switch(this.type){case"label":return(0,s.h)(this.tag,{style:b,class:[_.e("cell"),_.e("label"),_.is("bordered-label",l),_.is("vertical-label",u),v,y],colSpan:u?f:1},d);case"content":return(0,s.h)(this.tag,{style:b,class:[_.e("cell"),_.e("content"),_.is("bordered-content",l),_.is("vertical-content",u),h,g],colSpan:u?f:2*f-1},p);default:return(0,s.h)("td",{style:b,class:[_.e("cell"),h],colSpan:f},[(0,s.h)("span",{class:[_.e("label"),y]},d),(0,s.h)("span",{class:[_.e("content"),g]},p)])}}});const ic=(0,s.aZ)({name:"ElDescriptionsRow",components:{[oc.name]:oc},props:{row:{type:Array}},setup(){const e=(0,s.f3)(Jl,{});return{descriptions:e}}}),ac={key:1};function sc(e,t,n,r,o,i){const a=(0,s.up)("el-descriptions-cell");return"vertical"===e.descriptions.direction?((0,s.wg)(),(0,s.iD)(s.HY,{key:0},[(0,s._)("tr",null,[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e.row,((e,t)=>((0,s.wg)(),(0,s.j4)(a,{key:`tr1-${t}`,cell:e,tag:"th",type:"label"},null,8,["cell"])))),128))]),(0,s._)("tr",null,[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e.row,((e,t)=>((0,s.wg)(),(0,s.j4)(a,{key:`tr2-${t}`,cell:e,tag:"td",type:"content"},null,8,["cell"])))),128))])],64)):((0,s.wg)(),(0,s.iD)("tr",ac,[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e.row,((t,n)=>((0,s.wg)(),(0,s.iD)(s.HY,{key:`tr3-${n}`},[e.descriptions.border?((0,s.wg)(),(0,s.iD)(s.HY,{key:0},[(0,s.Wm)(a,{cell:t,tag:"td",type:"label"},null,8,["cell"]),(0,s.Wm)(a,{cell:t,tag:"td",type:"content"},null,8,["cell"])],64)):((0,s.wg)(),(0,s.j4)(a,{key:1,cell:t,tag:"td",type:"both"},null,8,["cell"]))],64)))),128))]))}var lc=(0,h.Z)(ic,[["render",sc],["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/descriptions-row.vue"]]);const cc=(0,s.aZ)({name:"ElDescriptions",components:{[lc.name]:lc},props:{border:{type:Boolean,default:!1},column:{type:Number,default:3},direction:{type:String,default:"horizontal"},size:{type:String,validator:hn.P},title:{type:String,default:""},extra:{type:String,default:""}},setup(e,{slots:t}){(0,s.JJ)(Jl,e);const n=(0,on.tH)(),r=(0,m.s)("descriptions"),o=(0,s.Fl)((()=>[r.b(),r.is(r.m(n.value),!!n.value)])),i=e=>{const t=Array.isArray(e)?e:[e],n=[];return t.forEach((e=>{Array.isArray(e.children)?n.push(...i(e.children)):n.push(e)})),n},a=(e,t,n,r=!1)=>(e.props||(e.props={}),t>n&&(e.props.span=n),r&&(e.props.span=t),e),l=()=>{var n;const r=i(null==(n=t.default)?void 0:n.call(t)).filter((e=>{var t;return"ElDescriptionsItem"===(null==(t=null==e?void 0:e.type)?void 0:t.name)})),o=[];let s=[],l=e.column,c=0;return r.forEach(((t,n)=>{var i;const u=(null==(i=t.props)?void 0:i.span)||1;if(n<r.length-1&&(c+=u>l?l:u),n===r.length-1){const n=e.column-c%e.column;return s.push(a(t,n,l,!0)),void o.push(s)}u<l?(l-=u,s.push(t)):(s.push(a(t,u,l)),o.push(s),l=e.column,s=[])})),o};return{descriptionKls:o,getRows:l,ns:r}}});function uc(e,t,n,r,o,i){const a=(0,s.up)("el-descriptions-row");return(0,s.wg)(),(0,s.iD)("div",{class:(0,c.C_)(e.descriptionKls)},[e.title||e.extra||e.$slots.title||e.$slots.extra?((0,s.wg)(),(0,s.iD)("div",{key:0,class:(0,c.C_)(e.ns.e("header"))},[(0,s._)("div",{class:(0,c.C_)(e.ns.e("title"))},[(0,s.WI)(e.$slots,"title",{},(()=>[(0,s.Uk)((0,c.zw)(e.title),1)]))],2),(0,s._)("div",{class:(0,c.C_)(e.ns.e("extra"))},[(0,s.WI)(e.$slots,"extra",{},(()=>[(0,s.Uk)((0,c.zw)(e.extra),1)]))],2)],2)):(0,s.kq)("v-if",!0),(0,s._)("div",{class:(0,c.C_)(e.ns.e("body"))},[(0,s._)("table",{class:(0,c.C_)([e.ns.e("table"),e.ns.is("bordered",e.border)])},[(0,s._)("tbody",null,[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e.getRows(),((e,t)=>((0,s.wg)(),(0,s.j4)(a,{key:t,row:e},null,8,["row"])))),128))])],2)],2)],2)}var dc=(0,h.Z)(cc,[["render",uc],["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/index.vue"]]),pc=(0,s.aZ)({name:"ElDescriptionsItem",props:{label:{type:String,default:""},span:{type:Number,default:1},width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},align:{type:String,default:"left"},labelAlign:{type:String,default:""},className:{type:String,default:""},labelClassName:{type:String,default:""}}});const fc=(0,w.nz)(dc,{DescriptionsItem:pc}),hc=(0,w.dp)(pc),mc=e=>{if(!e)return{onClick:c.dG,onMousedown:c.dG,onMouseup:c.dG};let t=!1,n=!1;const r=r=>{t&&n&&e(r),t=n=!1},o=e=>{t=e.target===e.currentTarget},i=e=>{n=e.target===e.currentTarget};return{onClick:r,onMousedown:o,onMouseup:i}},vc=(0,d.o8)({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:(0,d.Cq)([String,Array,Object])},zIndex:{type:(0,d.Cq)([String,Number])}}),gc={click:e=>e instanceof MouseEvent};var yc=(0,s.aZ)({name:"ElOverlay",props:vc,emits:gc,setup(e,{slots:t,emit:n}){const r=(0,m.s)("overlay"),o=e=>{n("click",e)},{onClick:i,onMousedown:a,onMouseup:l}=mc(e.customMaskEvent?void 0:o);return()=>e.mask?(0,s.Wm)("div",{class:[r.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:i,onMousedown:a,onMouseup:l},[(0,s.WI)(t,"default")],Xl.STYLE|Xl.CLASS|Xl.PROPS,["onClick","onMouseup","onMousedown"]):(0,s.h)("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[(0,s.WI)(t,"default")])}});const bc=yc,_c=(0,d.o8)({center:{type:Boolean,default:!1},closeIcon:{type:I.AA,default:""},customClass:{type:String,default:""},draggable:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},title:{type:String,default:""}}),wc={close:()=>!0},kc=Symbol("dialogInjectionKey"),Sc=["aria-label"],Cc={name:"ElDialogContent"},xc=(0,s.aZ)({...Cc,props:_c,emits:wc,setup(e){const{Close:t}=I.NK,{dialogRef:n,headerRef:r,ns:o,style:i}=(0,s.f3)(kc);return(e,a)=>((0,s.wg)(),(0,s.iD)("div",{ref_key:"dialogRef",ref:n,class:(0,c.C_)([(0,l.SU)(o).b(),(0,l.SU)(o).is("fullscreen",e.fullscreen),(0,l.SU)(o).is("draggable",e.draggable),{[(0,l.SU)(o).m("center")]:e.center},e.customClass]),"aria-modal":"true",role:"dialog","aria-label":e.title||"dialog",style:(0,c.j5)((0,l.SU)(i)),onClick:a[1]||(a[1]=(0,S.iM)((()=>{}),["stop"]))},[(0,s._)("div",{ref_key:"headerRef",ref:r,class:(0,c.C_)((0,l.SU)(o).e("header"))},[(0,s.WI)(e.$slots,"title",{},(()=>[(0,s._)("span",{class:(0,c.C_)((0,l.SU)(o).e("title"))},(0,c.zw)(e.title),3)]))],2),(0,s._)("div",{class:(0,c.C_)((0,l.SU)(o).e("body"))},[(0,s.WI)(e.$slots,"default")],2),e.$slots.footer?((0,s.wg)(),(0,s.iD)("div",{key:0,class:(0,c.C_)((0,l.SU)(o).e("footer"))},[(0,s.WI)(e.$slots,"footer")],2)):(0,s.kq)("v-if",!0),e.showClose?((0,s.wg)(),(0,s.iD)("button",{key:1,"aria-label":"close",class:(0,c.C_)((0,l.SU)(o).e("headerbtn")),type:"button",onClick:a[0]||(a[0]=t=>e.$emit("close"))},[(0,s.Wm)((0,l.SU)(C.gn),{class:(0,c.C_)((0,l.SU)(o).e("close"))},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)(e.closeIcon||(0,l.SU)(t))))])),_:1},8,["class"])],2)):(0,s.kq)("v-if",!0)],14,Sc))}});var Ic=(0,h.Z)(xc,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog-content.vue"]]);const Tc=(0,d.o8)({..._c,appendToBody:{type:Boolean,default:!1},beforeClose:{type:(0,d.Cq)(Function)},destroyOnClose:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:{type:Boolean,required:!0},modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1}}),Ec={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[V.f_]:e=>(0,ne.jn)(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0};var Rc=n(7750);const Pc=e=>{if((0,l.dq)(e)||(0,v._)("[useLockscreen]","You need to pass a ref param to this function"),!ne.C5||(0,re.pv)(document.body,"el-popup-parent--hidden"))return;let t=0,n=!1,r="0",o=0;const i=()=>{(0,re.IV)(document.body,"el-popup-parent--hidden"),n&&(document.body.style.paddingRight=r)};(0,s.YP)(e,(e=>{if(!e)return void i();n=!(0,re.pv)(document.body,"el-popup-parent--hidden"),n&&(r=document.body.style.paddingRight,o=Number.parseInt((0,re.C2)(document.body,"paddingRight"),10)),t=(0,g.Iz)();const a=document.documentElement.clientHeight<document.body.scrollHeight,s=(0,re.C2)(document.body,"overflowY");t>0&&(a||"scroll"===s)&&n&&(document.body.style.paddingRight=`${o+t}px`),(0,re.cn)(document.body,"el-popup-parent--hidden")})),(0,l.EB)((()=>i()))},Oc=[],Ac=e=>{if(0!==Oc.length&&e.code===Xn.n.esc){e.stopPropagation();const t=Oc[Oc.length-1];t.handleClose()}},Dc=(e,t)=>{(0,s.YP)(t,(t=>{t?Oc.push(e):Oc.splice(Oc.indexOf(e),1)}))};ne.C5&&(0,u.ORN)(document,"keydown",Ac);const Nc=(e,t)=>{let n;(0,s.YP)((()=>e.value),(e=>{var r,o;e?(n=document.activeElement,(0,l.dq)(t)&&(null==(o=(r=t.value).focus)||o.call(r))):n.focus()}))},Mc=(e,t)=>{const n=(0,s.FN)(),r=n.emit,{nextZIndex:o}=(0,Rc.C)();let i="";const a=(0,l.iH)(!1),c=(0,l.iH)(!1),u=(0,l.iH)(!1),d=(0,l.iH)(e.zIndex||o());let p,f;const h=(0,s.Fl)((()=>(0,ne.hj)(e.width)?`${e.width}px`:e.width)),m=(0,s.Fl)((()=>{const t={},n="--el-dialog";return e.fullscreen||(e.top&&(t[`${n}-margin-top`]=e.top),e.width&&(t[`${n}-width`]=h.value)),t}));function v(){r("opened")}function g(){r("closed"),r(V.f_,!1),e.destroyOnClose&&(u.value=!1)}function y(){r("close")}function b(){null==f||f(),null==p||p(),e.openDelay&&e.openDelay>0?({stop:p}=(0,ne.eM)((()=>S()),e.openDelay)):S()}function _(){null==p||p(),null==f||f(),e.closeDelay&&e.closeDelay>0?({stop:f}=(0,ne.eM)((()=>C()),e.closeDelay)):C()}function w(){function t(e){e||(c.value=!0,a.value=!1)}e.beforeClose?e.beforeClose(t):_()}function k(){e.closeOnClickModal&&w()}function S(){ne.C5&&(a.value=!0)}function C(){a.value=!1}return e.lockScroll&&Pc(a),e.closeOnPressEscape&&Dc({handleClose:w},a),Nc(a),(0,s.YP)((()=>e.modelValue),(n=>{n?(c.value=!1,b(),u.value=!0,r("open"),d.value=e.zIndex?d.value++:o(),(0,s.Y3)((()=>{t.value&&(t.value.scrollTop=0)}))):a.value&&_()})),(0,s.YP)((()=>e.fullscreen),(e=>{t.value&&(e?(i=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=i)})),(0,s.bv)((()=>{e.modelValue&&(a.value=!0,u.value=!0,b())})),{afterEnter:v,afterLeave:g,beforeLeave:y,handleClose:w,onModalClick:k,close:_,doClose:C,closed:c,style:m,rendered:u,visible:a,zIndex:d}},Lc=(e,t,n)=>{let r={offsetX:0,offsetY:0};const o=t=>{const n=t.clientX,o=t.clientY,{offsetX:i,offsetY:a}=r,s=e.value.getBoundingClientRect(),l=s.left,c=s.top,u=s.width,d=s.height,p=document.documentElement.clientWidth,f=document.documentElement.clientHeight,h=-l+i,m=-c+a,v=p-l-u+i,g=f-c-d+a,y=t=>{const s=Math.min(Math.max(i+t.clientX-n,h),v),l=Math.min(Math.max(a+t.clientY-o,m),g);r={offsetX:s,offsetY:l},e.value.style.transform=`translate(${(0,re.Nn)(s)}, ${(0,re.Nn)(l)})`},b=()=>{document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",b)};document.addEventListener("mousemove",y),document.addEventListener("mouseup",b)},i=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",o)},a=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",o)};(0,s.bv)((()=>{(0,s.m0)((()=>{n.value?i():a()}))})),(0,s.Jd)((()=>{a()}))},Fc={name:"ElDialog"},Uc=(0,s.aZ)({...Fc,props:Tc,emits:Ec,setup(e,{expose:t}){const n=e,r=(0,m.s)("dialog"),o=(0,l.iH)(),i=(0,l.iH)(),{visible:a,style:u,rendered:d,zIndex:p,afterEnter:f,afterLeave:h,beforeLeave:v,handleClose:g,onModalClick:y}=Mc(n,o);(0,s.JJ)(kc,{dialogRef:o,headerRef:i,ns:r,rendered:d,style:u});const b=mc(y),_=(0,s.Fl)((()=>n.draggable&&!n.fullscreen));return Lc(o,i,_),t({visible:a}),(e,t)=>((0,s.wg)(),(0,s.j4)(s.lR,{to:"body",disabled:!e.appendToBody},[(0,s.Wm)(S.uT,{name:"dialog-fade",onAfterEnter:(0,l.SU)(f),onAfterLeave:(0,l.SU)(h),onBeforeLeave:(0,l.SU)(v)},{default:(0,s.w5)((()=>[(0,s.wy)((0,s.Wm)((0,l.SU)(bc),{"custom-mask-event":"",mask:e.modal,"overlay-class":e.modalClass,"z-index":(0,l.SU)(p)},{default:(0,s.w5)((()=>[(0,s._)("div",{class:(0,c.C_)(`${(0,l.SU)(r).namespace.value}-overlay-dialog`),onClick:t[0]||(t[0]=(...e)=>(0,l.SU)(b).onClick&&(0,l.SU)(b).onClick(...e)),onMousedown:t[1]||(t[1]=(...e)=>(0,l.SU)(b).onMousedown&&(0,l.SU)(b).onMousedown(...e)),onMouseup:t[2]||(t[2]=(...e)=>(0,l.SU)(b).onMouseup&&(0,l.SU)(b).onMouseup(...e))},[(0,l.SU)(d)?((0,s.wg)(),(0,s.j4)(Ic,{key:0,"custom-class":e.customClass,center:e.center,"close-icon":e.closeIcon,draggable:(0,l.SU)(_),fullscreen:e.fullscreen,"show-close":e.showClose,style:(0,c.j5)((0,l.SU)(u)),title:e.title,onClose:(0,l.SU)(g)},(0,s.Nv)({title:(0,s.w5)((()=>[(0,s.WI)(e.$slots,"title")])),default:(0,s.w5)((()=>[(0,s.WI)(e.$slots,"default")])),_:2},[e.$slots.footer?{name:"footer",fn:(0,s.w5)((()=>[(0,s.WI)(e.$slots,"footer")]))}:void 0]),1032,["custom-class","center","close-icon","draggable","fullscreen","show-close","style","title","onClose"])):(0,s.kq)("v-if",!0)],34)])),_:3},8,["mask","overlay-class","z-index"]),[[S.F8,(0,l.SU)(a)]])])),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"]))}});var jc=(0,h.Z)(Uc,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog.vue"]]);const Vc=(0,w.nz)(jc),Hc=(0,d.o8)({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:(0,d.Cq)(String),default:"solid"}}),Bc={name:"ElDivider"},$c=(0,s.aZ)({...Bc,props:Hc,setup(e){const t=e,n=(0,m.s)("divider"),r=(0,s.Fl)((()=>({"--el-border-style":t.borderStyle})));return(e,t)=>((0,s.wg)(),(0,s.iD)("div",{class:(0,c.C_)([(0,l.SU)(n).b(),(0,l.SU)(n).m(e.direction)]),style:(0,c.j5)((0,l.SU)(r))},[e.$slots.default&&"vertical"!==e.direction?((0,s.wg)(),(0,s.iD)("div",{key:0,class:(0,c.C_)([(0,l.SU)(n).e("text"),(0,l.SU)(n).is(e.contentPosition)])},[(0,s.WI)(e.$slots,"default")],2)):(0,s.kq)("v-if",!0)],6))}});var zc=(0,h.Z)($c,[["__file","/home/runner/work/element-plus/element-plus/packages/components/divider/src/divider.vue"]]);const Wc=(0,w.nz)(zc),qc=(0,d.o8)({...Tc,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0}}),Zc=Ec,Yc="_trap-focus-children",Kc=[],Jc=e=>{if(0===Kc.length)return;const t=Kc[Kc.length-1][Yc];if(t.length>0&&e.code===Xn.n.tab){if(1===t.length)return e.preventDefault(),void(document.activeElement!==t[0]&&t[0].focus());const n=e.shiftKey,r=e.target===t[0],o=e.target===t[t.length-1];r&&n&&(e.preventDefault(),t[t.length-1].focus()),o&&!n&&(e.preventDefault(),t[0].focus())}},Gc={beforeMount(e){e[Yc]=Ar(e),Kc.push(e),Kc.length<=1&&(0,Xo.on)(document,"keydown",Jc)},updated(e){(0,s.Y3)((()=>{e[Yc]=Ar(e)}))},unmounted(){Kc.shift(),0===Kc.length&&(0,Xo.S1)(document,"keydown",Jc)}},Xc=(0,s.aZ)({name:"ElDrawer",components:{ElOverlay:bc,ElIcon:C.gn,Close:Go.Z},directives:{TrapFocus:Gc},props:qc,emits:Zc,setup(e,t){const n=(0,l.iH)(),r=(0,m.s)("drawer"),o=(0,s.Fl)((()=>"rtl"===e.direction||"ltr"===e.direction)),i=(0,s.Fl)((()=>"number"===typeof e.size?`${e.size}px`:e.size));return{...Mc(e,t,n),drawerRef:n,isHorizontal:o,drawerSize:i,ns:r}}}),Qc=["aria-labelledby","aria-label"],eu=["id"],tu=["title"],nu=["aria-label"];function ru(e,t,n,r,o,i){const a=(0,s.up)("close"),l=(0,s.up)("el-icon"),u=(0,s.up)("el-overlay"),d=(0,s.Q2)("trap-focus");return(0,s.wg)(),(0,s.j4)(s.lR,{to:"body",disabled:!e.appendToBody},[(0,s.Wm)(S.uT,{name:e.ns.b("fade"),onAfterEnter:e.afterEnter,onAfterLeave:e.afterLeave,onBeforeLeave:e.beforeLeave},{default:(0,s.w5)((()=>[(0,s.wy)((0,s.Wm)(u,{mask:e.modal,"overlay-class":e.modalClass,"z-index":e.zIndex,onClick:e.onModalClick},{default:(0,s.w5)((()=>[(0,s.wy)(((0,s.wg)(),(0,s.iD)("div",{ref:"drawerRef","aria-modal":"true","aria-labelledby":e.ns.e("title"),"aria-label":e.title,class:(0,c.C_)([e.ns.b(),e.direction,e.visible&&"open",e.customClass]),style:(0,c.j5)(e.isHorizontal?"width: "+e.drawerSize:"height: "+e.drawerSize),role:"dialog",onClick:t[1]||(t[1]=(0,S.iM)((()=>{}),["stop"]))},[e.withHeader?((0,s.wg)(),(0,s.iD)("header",{key:0,id:e.ns.e("title"),class:(0,c.C_)(e.ns.e("header"))},[(0,s.WI)(e.$slots,"title",{},(()=>[(0,s._)("span",{role:"heading",title:e.title},(0,c.zw)(e.title),9,tu)])),e.showClose?((0,s.wg)(),(0,s.iD)("button",{key:0,"aria-label":"close "+(e.title||"drawer"),class:(0,c.C_)(e.ns.e("close-btn")),type:"button",onClick:t[0]||(t[0]=(...t)=>e.handleClose&&e.handleClose(...t))},[(0,s.Wm)(l,{class:(0,c.C_)(e.ns.e("close"))},{default:(0,s.w5)((()=>[(0,s.Wm)(a)])),_:1},8,["class"])],10,nu)):(0,s.kq)("v-if",!0)],10,eu)):(0,s.kq)("v-if",!0),e.rendered?((0,s.wg)(),(0,s.iD)("section",{key:1,class:(0,c.C_)(e.ns.e("body"))},[(0,s.WI)(e.$slots,"default")],2)):(0,s.kq)("v-if",!0),e.$slots.footer?((0,s.wg)(),(0,s.iD)("div",{key:2,class:(0,c.C_)(e.ns.e("footer"))},[(0,s.WI)(e.$slots,"footer")],2)):(0,s.kq)("v-if",!0)],14,Qc)),[[d]])])),_:3},8,["mask","overlay-class","z-index","onClick"]),[[S.F8,e.visible]])])),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"])}var ou=(0,h.Z)(Xc,[["render",ru],["__file","/home/runner/work/element-plus/element-plus/packages/components/drawer/src/drawer.vue"]]);const iu=(0,w.nz)(ou),au=(0,s.aZ)({inheritAttrs:!1});function su(e,t,n,r,o,i){return(0,s.WI)(e.$slots,"default")}var lu=(0,h.Z)(au,[["render",su],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);const cu=(0,s.aZ)({name:"ElCollectionItem",inheritAttrs:!1});function uu(e,t,n,r,o,i){return(0,s.WI)(e.$slots,"default")}var du=(0,h.Z)(cu,[["render",uu],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);const pu="data-el-collection-item",fu=e=>{const t=`El${e}Collection`,n=`${t}Item`,r=Symbol(t),o=Symbol(n),i={...lu,name:t,setup(){const e=(0,l.iH)(null),t=new Map,n=()=>{const n=(0,l.SU)(e);if(!n)return[];const r=Array.from(n.querySelectorAll(`[${pu}]`)),o=[...t.values()],i=o.sort(((e,t)=>r.indexOf(e.ref)-r.indexOf(t.ref)));return i};(0,s.JJ)(r,{itemMap:t,getItems:n,collectionRef:e})}},a={...du,name:n,setup(e,{attrs:t}){const n=(0,l.iH)(null),i=(0,s.f3)(r,void 0);(0,s.JJ)(o,{collectionItemRef:n}),(0,s.bv)((()=>{const e=(0,l.SU)(n);e&&i.itemMap.set(e,{ref:e,...t})})),(0,s.Jd)((()=>{const e=(0,l.SU)(n);i.itemMap.delete(e)}))}};return{COLLECTION_INJECTION_KEY:r,COLLECTION_ITEM_INJECTION_KEY:o,ElCollection:i,ElCollectionItem:a}},hu=(0,d.o8)({trigger:j.ks.trigger,effect:{...j.sp.effect,default:"light"},type:{type:(0,d.Cq)(String)},placement:{type:(0,d.Cq)(String),default:"bottom"},popperOptions:{type:(0,d.Cq)(Object),default:()=>({})},size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:(0,d.Cq)([Number,String]),default:0},maxHeight:{type:(0,d.Cq)([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},buttonProps:{type:(0,d.Cq)(Object)}}),mu=(0,d.o8)({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:I.AA}}),vu=(0,d.o8)({onKeydown:{type:(0,d.Cq)(Function)}}),gu=[Xn.n.down,Xn.n.pageDown,Xn.n.home],yu=[Xn.n.up,Xn.n.pageUp,Xn.n.end],bu=[...gu,...yu],{ElCollection:_u,ElCollectionItem:wu,COLLECTION_INJECTION_KEY:ku,COLLECTION_ITEM_INJECTION_KEY:Su}=fu("Dropdown"),Cu=Symbol("elDropdown"),xu=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});while(n.nextNode())t.push(n.currentNode);return t},Iu=(e,t)=>{for(const n of e)if(!Tu(n,t))return n},Tu=(e,t)=>{if("hidden"===getComputedStyle(e).visibility)return!0;while(e){if(t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1},Eu=e=>{const t=xu(e),n=Iu(t,e),r=Iu(t.reverse(),e);return[n,r]},Ru=e=>e instanceof HTMLInputElement&&"select"in e,Pu=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Ru(e)&&t&&e.select()}};function Ou(e,t){const n=[...e],r=e.indexOf(t);return-1!==r&&n.splice(r,1),n}const Au=()=>{let e=[];const t=t=>{const n=e[0];n&&t!==n&&n.pause(),e=Ou(e,t),e.unshift(t)},n=t=>{var n,r;e=Ou(e,t),null==(r=null==(n=e[0])?void 0:n.resume)||r.call(n)};return{push:t,remove:n}},Du=(e,t=!1)=>{const n=document.activeElement;for(const r of e)if(Pu(r,t),document.activeElement!==n)return},Nu=Au(),Mu="focus-trap.focus-on-mount",Lu="focus-trap.focus-on-unmount",Fu={cancelable:!0,bubbles:!1},Uu="mountOnFocus",ju="unmountOnFocus",Vu=Symbol("elFocusTrap"),Hu=(0,s.aZ)({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean},emits:[Uu,ju],setup(e,{emit:t}){const n=(0,l.iH)(),r=(0,l.iH)(null);let o,i;const a={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},c=t=>{if(!e.loop&&!e.trapped)return;if(a.paused)return;const{key:n,altKey:r,ctrlKey:o,metaKey:i,currentTarget:s,shiftKey:l}=t,{loop:c}=e,u=n===Xn.n.tab&&!r&&!o&&!i,d=document.activeElement;if(u&&d){const e=s,[n,r]=Eu(e),o=n&&r;o?l||d!==r?l&&d===n&&(t.preventDefault(),c&&Pu(r,!0)):(t.preventDefault(),c&&Pu(n,!0)):d===e&&t.preventDefault()}};(0,s.JJ)(Vu,{focusTrapRef:r,onKeydown:c});const u=e=>{t(Uu,e)},d=e=>t(ju,e),p=e=>{const t=(0,l.SU)(r);if(a.paused||!t)return;const n=e.target;n&&t.contains(n)?i=n:Pu(i,!0)},f=e=>{const t=(0,l.SU)(r);!a.paused&&t&&(t.contains(e.relatedTarget)||Pu(i,!0))},h=()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",f)};return(0,s.bv)((()=>{const t=(0,l.SU)(r);if(t){Nu.push(a);const e=document.activeElement;o=e;const n=t.contains(e);if(!n){const n=new Event(Mu,Fu);t.addEventListener(Mu,u),t.dispatchEvent(n),n.defaultPrevented||(0,s.Y3)((()=>{Du(xu(t),!0),document.activeElement===e&&Pu(t)}))}}(0,s.YP)((()=>e.trapped),(e=>{e?(document.addEventListener("focusin",p),document.addEventListener("focusout",f)):h()}),{immediate:!0})})),(0,s.Jd)((()=>{h();const e=(0,l.SU)(r);if(e){e.removeEventListener(Mu,u);const t=new Event(Lu,Fu);e.addEventListener(Lu,d),e.dispatchEvent(t),t.defaultPrevented||Pu(null!=o?o:document.body,!0),e.removeEventListener(Lu,u),Nu.remove(a)}})),{focusTrapRef:n,forwardRef:r,onKeydown:c}}});function Bu(e,t,n,r,o,i){return(0,s.WI)(e.$slots,"default")}var $u=(0,h.Z)(Hu,[["render",Bu],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const zu=(0,d.o8)({style:{type:(0,d.Cq)([String,Array,Object])},currentTabId:{type:(0,d.Cq)(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:(0,d.Cq)(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:Wu,ElCollectionItem:qu,COLLECTION_INJECTION_KEY:Zu,COLLECTION_ITEM_INJECTION_KEY:Yu}=fu("RovingFocusGroup"),Ku=Symbol("elRovingFocusGroup"),Ju=Symbol("elRovingFocusGroupItem"),Gu={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},Xu=(e,t)=>{if("rtl"!==t)return e;switch(e){case Xn.n.right:return Xn.n.left;case Xn.n.left:return Xn.n.right;default:return e}},Qu=(e,t,n)=>{const r=Xu(e.key,n);if(("vertical"!==t||![Xn.n.left,Xn.n.right].includes(r))&&("horizontal"!==t||![Xn.n.up,Xn.n.down].includes(r)))return Gu[r]},ed=(e,t)=>e.map(((n,r)=>e[(r+t)%e.length])),td=e=>{const{activeElement:t}=document;for(const n of e){if(n===t)return;if(n.focus(),t!==document.activeElement)return}},nd="currentTabIdChange",rd="rovingFocusGroup.entryFocus",od={bubbles:!1,cancelable:!0},id=(0,s.aZ)({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:zu,emits:[nd,"entryFocus"],setup(e,{emit:t}){var n;const r=(0,l.iH)(null!=(n=e.currentTabId||e.defaultCurrentTabId)?n:null),o=(0,l.iH)(!1),i=(0,l.iH)(!1),a=(0,l.iH)(null),{getItems:c}=(0,s.f3)(Zu,void 0),u=(0,s.Fl)((()=>[{outline:"none"},e.style])),d=e=>{t(nd,e)},p=()=>{o.value=!0},f=(0,Xo.Mj)((t=>{var n;null==(n=e.onMousedown)||n.call(e,t)}),(()=>{i.value=!0})),h=(0,Xo.Mj)((t=>{var n;null==(n=e.onFocus)||n.call(e,t)}),(e=>{const t=!(0,l.SU)(i),{target:n,currentTarget:a}=e;if(n===a&&t&&!(0,l.SU)(o)){const e=new Event(rd,od);if(null==a||a.dispatchEvent(e),!e.defaultPrevented){const e=c().filter((e=>e.focusable)),t=e.find((e=>e.active)),n=e.find((e=>e.id===(0,l.SU)(r))),o=[t,n,...e].filter(Boolean),i=o.map((e=>e.ref));td(i)}}i.value=!1})),m=(0,Xo.Mj)((t=>{var n;null==(n=e.onBlur)||n.call(e,t)}),(()=>{o.value=!1})),v=(...e)=>{t("entryFocus",...e)};(0,s.JJ)(Ku,{currentTabbedId:(0,l.OT)(r),loop:(0,l.Vh)(e,"loop"),tabIndex:(0,s.Fl)((()=>(0,l.SU)(o)?-1:0)),rovingFocusGroupRef:a,rovingFocusGroupRootStyle:u,orientation:(0,l.Vh)(e,"orientation"),dir:(0,l.Vh)(e,"dir"),onItemFocus:d,onItemShiftTab:p,onBlur:m,onFocus:h,onMousedown:f}),(0,s.YP)((()=>e.currentTabId),(e=>{r.value=null!=e?e:null})),(0,s.bv)((()=>{const e=(0,l.SU)(a);(0,Xo.on)(e,rd,v)})),(0,s.Jd)((()=>{const e=(0,l.SU)(a);(0,Xo.S1)(e,rd,v)}))}});function ad(e,t,n,r,o,i){return(0,s.WI)(e.$slots,"default")}var sd=(0,h.Z)(id,[["render",ad],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group-impl.vue"]]);const ld=(0,s.aZ)({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:Wu,ElRovingFocusGroupImpl:sd}});function cd(e,t,n,r,o,i){const a=(0,s.up)("el-roving-focus-group-impl"),l=(0,s.up)("el-focus-group-collection");return(0,s.wg)(),(0,s.j4)(l,null,{default:(0,s.w5)((()=>[(0,s.Wm)(a,(0,c.vs)((0,s.F4)(e.$attrs)),{default:(0,s.w5)((()=>[(0,s.WI)(e.$slots,"default")])),_:3},16)])),_:3})}var ud=(0,h.Z)(ld,[["render",cd],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group.vue"]]);const{ButtonGroup:dd}=Fe.mi,pd=(0,s.aZ)({name:"ElDropdown",components:{ElButton:Fe.mi,ElFocusTrap:$u,ElButtonGroup:dd,ElScrollbar:L.Mr,ElDropdownCollection:_u,ElTooltip:F.Q0,ElRovingFocusGroup:ud,ElIcon:C.gn,ArrowDown:to},props:hu,emits:["visible-change","click","command"],setup(e,{emit:t}){const n=(0,s.FN)(),r=(0,m.s)("dropdown"),o=(0,l.iH)(),i=(0,l.iH)(),a=(0,l.iH)(null),c=(0,l.iH)(null),u=(0,l.iH)(null),d=(0,l.iH)(null),p=(0,l.iH)(!1),f=(0,s.Fl)((()=>({maxHeight:(0,re.Nn)(e.maxHeight)}))),h=(0,s.Fl)((()=>[r.m(b.value)]));function v(){g()}function g(){var e;null==(e=a.value)||e.onClose()}function y(){var e;null==(e=a.value)||e.onOpen()}const b=(0,on.tH)();function _(...e){t("command",...e)}function w(){}function k(){const e=(0,l.SU)(c);null==e||e.focus(),d.value=null}function S(e){d.value=e}function C(e){p.value||(e.preventDefault(),e.stopImmediatePropagation())}(0,s.JJ)(Cu,{contentRef:c,isUsingKeyboard:p,onItemEnter:w,onItemLeave:k}),(0,s.JJ)("elDropdown",{instance:n,dropdownSize:b,handleClick:v,commandHandler:_,trigger:(0,l.Vh)(e,"trigger"),hideOnClick:(0,l.Vh)(e,"hideOnClick")});const x=e=>{var t,n;e.preventDefault(),null==(n=null==(t=c.value)?void 0:t.focus)||n.call(t,{preventScroll:!0})},I=e=>{t("click",e)};return{ns:r,scrollbar:u,wrapStyle:f,dropdownTriggerKls:h,dropdownSize:b,currentTabId:d,handleCurrentTabIdChange:S,handlerMainButtonClick:I,handleEntryFocus:C,handleClose:g,handleOpen:y,onMountOnFocus:x,popperRef:a,triggeringElementRef:o,referenceElementRef:i}}});function fd(e,t,n,r,o,i){var a;const l=(0,s.up)("el-dropdown-collection"),u=(0,s.up)("el-roving-focus-group"),d=(0,s.up)("el-focus-trap"),p=(0,s.up)("el-scrollbar"),f=(0,s.up)("el-tooltip"),h=(0,s.up)("el-button"),m=(0,s.up)("arrow-down"),v=(0,s.up)("el-icon"),g=(0,s.up)("el-button-group");return(0,s.wg)(),(0,s.iD)("div",{class:(0,c.C_)([e.ns.b(),e.ns.is("disabled",e.disabled)])},[(0,s.Wm)(f,{ref:"popperRef",effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,"hide-after":"hover"===e.trigger?e.hideTimeout:0,"manual-mode":!0,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"reference-element":null==(a=e.referenceElementRef)?void 0:a.$el,trigger:e.trigger,"show-after":"hover"===e.trigger?e.showTimeout:0,"stop-popper-mouse-event":!1,"virtual-ref":e.triggeringElementRef,"virtual-triggering":e.splitButton,disabled:e.disabled,"append-to-body":"",pure:"",transition:`${e.ns.namespace.value}-zoom-in-top`,persistent:"",onShow:t[0]||(t[0]=t=>e.$emit("visible-change",!0)),onHide:t[1]||(t[1]=t=>e.$emit("visible-change",!1))},(0,s.Nv)({content:(0,s.w5)((()=>[(0,s.Wm)(p,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:(0,s.w5)((()=>[(0,s.Wm)(d,{trapped:"",onMountOnFocus:e.onMountOnFocus},{default:(0,s.w5)((()=>[(0,s.Wm)(u,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange,onEntryFocus:e.handleEntryFocus},{default:(0,s.w5)((()=>[(0,s.Wm)(l,null,{default:(0,s.w5)((()=>[(0,s.WI)(e.$slots,"dropdown")])),_:3})])),_:3},8,["loop","current-tab-id","onCurrentTabIdChange","onEntryFocus"])])),_:3},8,["onMountOnFocus"])])),_:3},8,["wrap-style","view-class"])])),_:2},[e.splitButton?void 0:{name:"default",fn:(0,s.w5)((()=>[(0,s._)("div",{class:(0,c.C_)(e.dropdownTriggerKls)},[(0,s.WI)(e.$slots,"default")],2)]))}]),1032,["effect","popper-options","hide-after","placement","popper-class","reference-element","trigger","show-after","virtual-ref","virtual-triggering","disabled","transition"]),e.splitButton?((0,s.wg)(),(0,s.j4)(g,{key:0},{default:(0,s.w5)((()=>[(0,s.Wm)(h,(0,s.dG)({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,onClick:e.handlerMainButtonClick}),{default:(0,s.w5)((()=>[(0,s.WI)(e.$slots,"default")])),_:3},16,["size","type","disabled","onClick"]),(0,s.Wm)(h,(0,s.dG)({ref:"triggeringElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,class:e.ns.e("caret-button"),disabled:e.disabled}),{default:(0,s.w5)((()=>[(0,s.Wm)(v,{class:(0,c.C_)(e.ns.e("icon"))},{default:(0,s.w5)((()=>[(0,s.Wm)(m)])),_:1},8,["class"])])),_:1},16,["size","type","class","disabled"])])),_:3})):(0,s.kq)("v-if",!0)],2)}var hd=(0,h.Z)(pd,[["render",fd],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown.vue"]]);const md=(...e)=>t=>{e.forEach((e=>{(0,c.mf)(e)?e(t):e.value=t}))},vd=(0,s.aZ)({name:"DropdownItemImpl",components:{ElIcon:C.gn},props:mu,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const n=(0,m.s)("dropdown"),{collectionItemRef:r}=(0,s.f3)(Su,void 0),{collectionItemRef:o}=(0,s.f3)(Yu,void 0),{rovingFocusGroupItemRef:i,tabIndex:a,handleFocus:l,handleKeydown:c,handleMousedown:u}=(0,s.f3)(Ju,void 0),d=md(r,o,i),p=(0,Xo.Mj)((e=>{const{code:n}=e;if(n===Xn.n.enter||n===Xn.n.space)return e.preventDefault(),e.stopImmediatePropagation(),t("clickimpl",e),!0}),c);return{ns:n,itemRef:d,dataset:{[pu]:""},tabIndex:a,handleFocus:l,handleKeydown:p,handleMousedown:u}}}),gd=["aria-disabled","tabindex"];function yd(e,t,n,r,o,i){const a=(0,s.up)("el-icon");return(0,s.wg)(),(0,s.iD)(s.HY,null,[e.divided?((0,s.wg)(),(0,s.iD)("li",(0,s.dG)({key:0,class:e.ns.bem("menu","item","divided")},e.$attrs),null,16)):(0,s.kq)("v-if",!0),(0,s._)("li",(0,s.dG)({ref:e.itemRef},{...e.dataset,...e.$attrs},{"aria-disabled":e.disabled,class:[e.ns.be("menu","item"),e.ns.is("disabled",e.disabled)],tabindex:e.tabIndex,role:"menuitem",onClick:t[0]||(t[0]=t=>e.$emit("clickimpl",t)),onFocus:t[1]||(t[1]=(...t)=>e.handleFocus&&e.handleFocus(...t)),onKeydown:t[2]||(t[2]=(...t)=>e.handleKeydown&&e.handleKeydown(...t)),onMousedown:t[3]||(t[3]=(...t)=>e.handleMousedown&&e.handleMousedown(...t)),onPointermove:t[4]||(t[4]=t=>e.$emit("pointermove",t)),onPointerleave:t[5]||(t[5]=t=>e.$emit("pointerleave",t))}),[e.icon?((0,s.wg)(),(0,s.j4)(a,{key:0},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)(e.icon)))])),_:1})):(0,s.kq)("v-if",!0),(0,s.WI)(e.$slots,"default")],16,gd)],64)}var bd=(0,h.Z)(vd,[["render",yd],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item-impl.vue"]]);const _d=()=>{const e=(0,s.f3)("elDropdown",{}),t=(0,s.Fl)((()=>null==e?void 0:e.dropdownSize));return{elDropdown:e,_elDropdownSize:t}};var wd=n(8925);const kd=(0,s.aZ)({components:{ElRovingFocusCollectionItem:qu},props:{focusable:{type:Boolean,default:!0},active:{type:Boolean,default:!1}},emits:["mousedown","focus","keydown"],setup(e,{emit:t}){const{currentTabbedId:n,loop:r,onItemFocus:o,onItemShiftTab:i}=(0,s.f3)(Ku,void 0),{getItems:a}=(0,s.f3)(Zu,void 0),c=(0,wd.M)(),u=(0,l.iH)(null),d=(0,Xo.Mj)((e=>{t("mousedown",e)}),(t=>{e.focusable?o((0,l.SU)(c)):t.preventDefault()})),p=(0,Xo.Mj)((e=>{t("focus",e)}),(()=>{o((0,l.SU)(c))})),f=(0,Xo.Mj)((e=>{t("keydown",e)}),(e=>{const{key:t,shiftKey:n,target:o,currentTarget:l}=e;if(t===Xn.n.tab&&n)return void i();if(o!==l)return;const c=Qu(e);if(c){e.preventDefault();const t=a().filter((e=>e.focusable));let n=t.map((e=>e.ref));switch(c){case"last":n.reverse();break;case"prev":case"next":{"prev"===c&&n.reverse();const e=n.indexOf(l);n=r.value?ed(n,e+1):n.slice(e+1);break}default:break}(0,s.Y3)((()=>{td(n)}))}})),h=(0,s.Fl)((()=>n.value===(0,l.SU)(c)));return(0,s.JJ)(Ju,{rovingFocusGroupItemRef:u,tabIndex:(0,s.Fl)((()=>(0,l.SU)(h)?0:-1)),handleMousedown:d,handleFocus:p,handleKeydown:f}),{id:c,handleKeydown:f,handleFocus:p,handleMousedown:d}}});function Sd(e,t,n,r,o,i){const a=(0,s.up)("el-roving-focus-collection-item");return(0,s.wg)(),(0,s.j4)(a,{id:e.id,focusable:e.focusable,active:e.active},{default:(0,s.w5)((()=>[(0,s.WI)(e.$slots,"default")])),_:3},8,["id","focusable","active"])}var Cd=(0,h.Z)(kd,[["render",Sd],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-item.vue"]]);const xd=(0,s.aZ)({name:"ElDropdownItem",components:{ElDropdownCollectionItem:wu,ElRovingFocusItem:Cd,ElDropdownItemImpl:bd},inheritAttrs:!1,props:mu,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:n}){const{elDropdown:r}=_d(),o=(0,s.FN)(),i=(0,l.iH)(null),a=(0,s.Fl)((()=>{var e,t;return null!=(t=null==(e=(0,l.SU)(i))?void 0:e.textContent)?t:""})),{onItemEnter:c,onItemLeave:u}=(0,s.f3)(Cu,void 0),d=(0,Xo.Mj)((e=>(t("pointermove",e),e.defaultPrevented)),(0,Xo.rk)((t=>{var n;e.disabled?u(t):(c(t),t.defaultPrevented||null==(n=t.currentTarget)||n.focus())}))),p=(0,Xo.Mj)((e=>(t("pointerleave",e),e.defaultPrevented)),(0,Xo.rk)((e=>{u(e)}))),f=(0,Xo.Mj)((e=>(t("click",e),e.defaultPrevented)),(t=>{var n,i,a;e.disabled?t.stopImmediatePropagation():((null==(n=null==r?void 0:r.hideOnClick)?void 0:n.value)&&(null==(i=r.handleClick)||i.call(r)),null==(a=r.commandHandler)||a.call(r,e.command,o,t))})),h=(0,s.Fl)((()=>({...e,...n})));return{handleClick:f,handlePointerMove:d,handlePointerLeave:p,textContent:a,propsAndAttrs:h}}});function Id(e,t,n,r,o,i){var a;const l=(0,s.up)("el-dropdown-item-impl"),c=(0,s.up)("el-roving-focus-item"),u=(0,s.up)("el-dropdown-collection-item");return(0,s.wg)(),(0,s.j4)(u,{disabled:e.disabled,"text-value":null!=(a=e.textValue)?a:e.textContent},{default:(0,s.w5)((()=>[(0,s.Wm)(c,{focusable:!e.disabled},{default:(0,s.w5)((()=>[(0,s.Wm)(l,(0,s.dG)(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),{default:(0,s.w5)((()=>[(0,s.WI)(e.$slots,"default")])),_:3},16,["onPointerleave","onPointermove","onClickimpl"])])),_:3},8,["focusable"])])),_:3},8,["disabled","text-value"])}var Td=(0,h.Z)(xd,[["render",Id],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item.vue"]]);const Ed=(0,s.aZ)({name:"ElDropdownMenu",props:vu,setup(e){const t=(0,m.s)("dropdown"),{_elDropdownSize:n}=_d(),r=n.value,{focusTrapRef:o,onKeydown:i}=(0,s.f3)(Vu,void 0),{contentRef:a}=(0,s.f3)(Cu,void 0),{collectionRef:c,getItems:u}=(0,s.f3)(ku,void 0),{rovingFocusGroupRef:d,rovingFocusGroupRootStyle:p,tabIndex:f,onBlur:h,onFocus:v,onMousedown:g}=(0,s.f3)(Ku,void 0),{collectionRef:y}=(0,s.f3)(Zu,void 0),b=(0,s.Fl)((()=>[t.b("menu"),t.bm("menu",null==r?void 0:r.value)])),_=md(a,c,o,d,y),w=(0,Xo.Mj)((t=>{var n;null==(n=e.onKeydown)||n.call(e,t)}),(e=>{const{currentTarget:t,code:n,target:r}=e;t.contains(r);if(Xn.n.tab===n&&e.stopImmediatePropagation(),e.preventDefault(),r!==(0,l.SU)(a))return;if(!bu.includes(n))return;const o=u().filter((e=>!e.disabled)),i=o.map((e=>e.ref));yu.includes(n)&&i.reverse(),td(i)})),k=e=>{w(e),i(e)};return{size:r,rovingFocusGroupRootStyle:p,tabIndex:f,dropdownKls:b,dropdownListWrapperRef:_,handleKeydown:k,onBlur:h,onFocus:v,onMousedown:g}}});function Rd(e,t,n,r,o,i){return(0,s.wg)(),(0,s.iD)("ul",{ref:e.dropdownListWrapperRef,class:(0,c.C_)(e.dropdownKls),style:(0,c.j5)(e.rovingFocusGroupRootStyle),tabindex:-1,role:"menu",onBlur:t[0]||(t[0]=(...t)=>e.onBlur&&e.onBlur(...t)),onFocus:t[1]||(t[1]=(...t)=>e.onFocus&&e.onFocus(...t)),onKeydown:t[2]||(t[2]=(...t)=>e.handleKeydown&&e.handleKeydown(...t)),onMousedown:t[3]||(t[3]=(...t)=>e.onMousedown&&e.onMousedown(...t))},[(0,s.WI)(e.$slots,"default")],38)}var Pd=(0,h.Z)(Ed,[["render",Rd],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-menu.vue"]]);const Od=(0,w.nz)(hd,{DropdownItem:Td,DropdownMenu:Pd}),Ad=(0,w.dp)(Td),Dd=(0,w.dp)(Pd);let Nd=0;const Md=(0,s.aZ)({name:"ImgEmpty",setup(){return{id:++Nd}}}),Ld={viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},Fd=["id"],Ud=(0,s._)("stop",{"stop-color":"var(--el-empty-fill-color-1)",offset:"0%"},null,-1),jd=(0,s._)("stop",{"stop-color":"var(--el-empty-fill-color-4)",offset:"100%"},null,-1),Vd=[Ud,jd],Hd=["id"],Bd=(0,s._)("stop",{"stop-color":"var(--el-empty-fill-color-1)",offset:"0%"},null,-1),$d=(0,s._)("stop",{"stop-color":"var(--el-empty-fill-color-6)",offset:"100%"},null,-1),zd=[Bd,$d],Wd=["id"],qd={id:"Illustrations",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},Zd={id:"B-type",transform:"translate(-1268.000000, -535.000000)"},Yd={id:"Group-2",transform:"translate(1268.000000, 535.000000)"},Kd=(0,s._)("path",{id:"Oval-Copy-2",d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:"var(--el-empty-fill-color-3)"},null,-1),Jd=(0,s._)("polygon",{id:"Rectangle-Copy-14",fill:"var(--el-empty-fill-color-7)",transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"},null,-1),Gd={id:"Group-Copy",transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},Xd=(0,s._)("polygon",{id:"Rectangle-Copy-10",fill:"var(--el-empty-fill-color-7)",transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"},null,-1),Qd=(0,s._)("polygon",{id:"Rectangle-Copy-11",fill:"var(--el-empty-fill-color-5)",points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,-1),ep=["fill"],tp=(0,s._)("polygon",{id:"Rectangle-Copy-13",fill:"var(--el-empty-fill-color-2)",transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"},null,-1),np=["fill"],rp={id:"Rectangle-Copy-17",transform:"translate(53.000000, 45.000000)"},op=["xlink:href"],ip=["mask"],ap=(0,s._)("polygon",{id:"Rectangle-Copy-18",fill:"var(--el-empty-fill-color-2)",transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"},null,-1);function sp(e,t,n,r,o,i){return(0,s.wg)(),(0,s.iD)("svg",Ld,[(0,s._)("defs",null,[(0,s._)("linearGradient",{id:`linearGradient-1-${e.id}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},Vd,8,Fd),(0,s._)("linearGradient",{id:`linearGradient-2-${e.id}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},zd,8,Hd),(0,s._)("rect",{id:`path-3-${e.id}`,x:"0",y:"0",width:"17",height:"36"},null,8,Wd)]),(0,s._)("g",qd,[(0,s._)("g",Zd,[(0,s._)("g",Yd,[Kd,Jd,(0,s._)("g",Gd,[Xd,Qd,(0,s._)("rect",{id:"Rectangle-Copy-12",fill:`url(#linearGradient-1-${e.id})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,ep),tp]),(0,s._)("rect",{id:"Rectangle-Copy-15",fill:`url(#linearGradient-2-${e.id})`,x:"13",y:"45",width:"40",height:"36"},null,8,np),(0,s._)("g",rp,[(0,s._)("use",{id:"Mask",fill:"var(--el-empty-fill-color-8)",transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${e.id}`},null,8,op),(0,s._)("polygon",{id:"Rectangle-Copy",fill:"var(--el-empty-fill-color-9)",mask:`url(#mask-4-${e.id})`,transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 7 16.5"},null,8,ip)]),ap])])])])}var lp=(0,h.Z)(Md,[["render",sp],["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/img-empty.vue"]]);const cp={image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}},up=["src"],dp={key:1},pp={name:"ElEmpty"},fp=(0,s.aZ)({...pp,props:cp,setup(e){const t=e,{t:n}=(0,Ye.bU)(),r=(0,m.s)("empty"),o=(0,s.Fl)((()=>t.description||n("el.table.emptyText"))),i=(0,s.Fl)((()=>({width:t.imageSize?`${t.imageSize}px`:""})));return(e,t)=>((0,s.wg)(),(0,s.iD)("div",{class:(0,c.C_)((0,l.SU)(r).b())},[(0,s._)("div",{class:(0,c.C_)((0,l.SU)(r).e("image")),style:(0,c.j5)((0,l.SU)(i))},[e.image?((0,s.wg)(),(0,s.iD)("img",{key:0,src:e.image,ondragstart:"return false"},null,8,up)):(0,s.WI)(e.$slots,"image",{key:1},(()=>[(0,s.Wm)(lp)]))],6),(0,s._)("div",{class:(0,c.C_)((0,l.SU)(r).e("description"))},[e.$slots.description?(0,s.WI)(e.$slots,"description",{key:0}):((0,s.wg)(),(0,s.iD)("p",dp,(0,c.zw)((0,l.SU)(o)),1))],2),e.$slots.default?((0,s.wg)(),(0,s.iD)("div",{key:0,class:(0,c.C_)((0,l.SU)(r).e("bottom"))},[(0,s.WI)(e.$slots,"default")],2)):(0,s.kq)("v-if",!0)],2))}});var hp=(0,h.Z)(fp,[["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/empty.vue"]]);const mp=(0,w.nz)(hp),vp=(0,d.o8)({model:Object,rules:{type:(0,d.Cq)(Object)},labelPosition:String,labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},size:{type:String,values:Q.k},disabled:Boolean,validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:{type:Boolean,default:!1},scrollToError:Boolean}),gp={validate:(e,t,n)=>((0,c.kJ)(e)||(0,c.HD)(e))&&(0,ne.jn)(t)&&(0,c.HD)(n)},yp="ElForm";function bp(){const e=(0,l.iH)([]),t=(0,s.Fl)((()=>{if(!e.value.length)return"0";const t=Math.max(...e.value);return t?`${t}px`:""}));function n(t){const n=e.value.indexOf(t);return-1===n&&(0,v.N)(yp,`unexpected width ${t}`),n}function r(t,r){if(t&&r){const o=n(r);e.value.splice(o,1,t)}else t&&e.value.push(t)}function o(t){const r=n(t);r>-1&&e.value.splice(r,1)}return{autoLabelWidth:t,registerLabelWidth:r,deregisterLabelWidth:o}}const _p=(e,t)=>{const n=Ao(t);return n.length>0?e.filter((e=>e.prop&&n.includes(e.prop))):e},wp={name:"ElForm"},kp=(0,s.aZ)({...wp,props:vp,emits:gp,setup(e,{expose:t,emit:n}){const r=e,o="ElForm",i=[],a=(0,on.tH)(),u=(0,m.s)("form"),d=(0,s.Fl)((()=>{const{labelPosition:e,inline:t}=r;return[u.b(),u.m(a.value||"default"),{[u.m(`label-${e}`)]:e,[u.m("inline")]:t}]})),p=e=>{i.push(e)},f=e=>{e.prop&&i.splice(i.indexOf(e),1)},h=(e=[])=>{r.model?_p(i,e).forEach((e=>e.resetField())):(0,v.N)(o,"model is required for resetFields to work.")},g=(e=[])=>{_p(i,e).forEach((e=>e.clearValidate()))},y=(0,s.Fl)((()=>{const e=!!r.model;return e||(0,v.N)(o,"model is required for validate to work."),e})),b=e=>{if(0===i.length)return[];const t=_p(i,e);return t.length?t:((0,v.N)(o,"please pass correct props!"),[])},_=async e=>k(void 0,e),w=async(e=[])=>{if(!y.value)return!1;const t=b(e);if(0===t.length)return!0;let n={};for(const o of t)try{await o.validate("")}catch(r){n={...n,...r}}return 0===Object.keys(n).length||Promise.reject(n)},k=async(e=[],t)=>{const n=!(0,c.mf)(t);try{const n=await w(e);return!0===n&&(null==t||t(n)),n}catch(ME){const o=ME;return r.scrollToError&&S(Object.keys(o)[0]),null==t||t(!1,o),n&&Promise.reject(o)}},S=e=>{var t;const n=_p(i,e)[0];n&&(null==(t=n.$el)||t.scrollIntoView())};return(0,s.YP)((()=>r.rules),(()=>{r.validateOnRuleChange&&_()}),{deep:!0}),(0,s.JJ)(rn.H,(0,l.qj)({...(0,l.BK)(r),emit:n,resetFields:h,clearValidate:g,validateField:k,addField:p,removeField:f,...bp()})),t({validate:_,validateField:k,resetFields:h,clearValidate:g,scrollToField:S}),(e,t)=>((0,s.wg)(),(0,s.iD)("form",{class:(0,c.C_)((0,l.SU)(d))},[(0,s.WI)(e.$slots,"default")],2))}});var Sp=(0,h.Z)(kp,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]);function Cp(){return Cp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cp.apply(this,arguments)}function xp(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Tp(e,t)}function Ip(e){return Ip=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ip(e)}function Tp(e,t){return Tp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Tp(e,t)}function Ep(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(ME){return!1}}function Rp(e,t,n){return Rp=Ep()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=Function.bind.apply(e,r),i=new o;return n&&Tp(i,n.prototype),i},Rp.apply(null,arguments)}function Pp(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function Op(e){var t="function"===typeof Map?new Map:void 0;return Op=function(e){if(null===e||!Pp(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Rp(e,arguments,Ip(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Tp(n,e)},Op(e)}var Ap=/%[sdj%]/g,Dp=function(){};function Np(e){if(!e||!e.length)return null;var t={};return e.forEach((function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)})),t}function Mp(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i=n.length;if("function"===typeof e)return e.apply(null,n);if("string"===typeof e){var a=e.replace(Ap,(function(e){if("%%"===e)return"%";if(o>=i)return e;switch(e){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch(gx){return"[Circular]"}break;default:return e}}));return a}return e}function Lp(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}function Fp(e,t){return void 0===e||null===e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!Lp(t)||"string"!==typeof e||e))}function Up(e,t,n){var r=[],o=0,i=e.length;function a(e){r.push.apply(r,e||[]),o++,o===i&&n(r)}e.forEach((function(e){t(e,a)}))}function jp(e,t,n){var r=0,o=e.length;function i(a){if(a&&a.length)n(a);else{var s=r;r+=1,s<o?t(e[s],i):n([])}}i([])}function Vp(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,e[n]||[])})),t}var Hp=function(e){function t(t,n){var r;return r=e.call(this,"Async Validation Error")||this,r.errors=t,r.fields=n,r}return xp(t,e),t}(Op(Error));function Bp(e,t,n,r,o){if(t.first){var i=new Promise((function(t,i){var a=function(e){return r(e),e.length?i(new Hp(e,Np(e))):t(o)},s=Vp(e);jp(s,n,a)}));return i["catch"]((function(e){return e})),i}var a=!0===t.firstFields?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],d=new Promise((function(t,i){var d=function(e){if(u.push.apply(u,e),c++,c===l)return r(u),u.length?i(new Hp(u,Np(u))):t(o)};s.length||(r(u),t(o)),s.forEach((function(t){var r=e[t];-1!==a.indexOf(t)?jp(r,n,d):Up(r,n,d)}))}));return d["catch"]((function(e){return e})),d}function $p(e){return!(!e||void 0===e.message)}function zp(e,t){for(var n=e,r=0;r<t.length;r++){if(void 0==n)return n;n=n[t[r]]}return n}function Wp(e,t){return function(n){var r;return r=e.fullFields?zp(t,e.fullFields):t[n.field||e.fullField],$p(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:"function"===typeof n?n():n,fieldValue:r,field:n.field||e.fullField}}}function qp(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"===typeof r&&"object"===typeof e[n]?e[n]=Cp({},e[n],r):e[n]=r}return e}var Zp=function(e,t,n,r,o,i){!e.required||n.hasOwnProperty(e.field)&&!Fp(t,i||e.type)||r.push(Mp(o.messages.required,e.fullField))},Yp=function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(Mp(o.messages.whitespace,e.fullField))},Kp={email:/^(([^<>()\[\]\\.,;:\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},Jp={integer:function(e){return Jp.number(e)&&parseInt(e,10)===e},float:function(e){return Jp.number(e)&&!Jp.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(ME){return!1}},date:function(e){return"function"===typeof e.getTime&&"function"===typeof e.getMonth&&"function"===typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"===typeof e},object:function(e){return"object"===typeof e&&!Jp.array(e)},method:function(e){return"function"===typeof e},email:function(e){return"string"===typeof e&&e.length<=320&&!!e.match(Kp.email)},url:function(e){return"string"===typeof e&&e.length<=2048&&!!e.match(Kp.url)},hex:function(e){return"string"===typeof e&&!!e.match(Kp.hex)}},Gp=function(e,t,n,r,o){if(e.required&&void 0===t)Zp(e,t,n,r,o);else{var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],a=e.type;i.indexOf(a)>-1?Jp[a](t)||r.push(Mp(o.messages.types[a],e.fullField,e.type)):a&&typeof t!==e.type&&r.push(Mp(o.messages.types[a],e.fullField,e.type))}},Xp=function(e,t,n,r,o){var i="number"===typeof e.len,a="number"===typeof e.min,s="number"===typeof e.max,l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=t,u=null,d="number"===typeof t,p="string"===typeof t,f=Array.isArray(t);if(d?u="number":p?u="string":f&&(u="array"),!u)return!1;f&&(c=t.length),p&&(c=t.replace(l,"_").length),i?c!==e.len&&r.push(Mp(o.messages[u].len,e.fullField,e.len)):a&&!s&&c<e.min?r.push(Mp(o.messages[u].min,e.fullField,e.min)):s&&!a&&c>e.max?r.push(Mp(o.messages[u].max,e.fullField,e.max)):a&&s&&(c<e.min||c>e.max)&&r.push(Mp(o.messages[u].range,e.fullField,e.min,e.max))},Qp="enum",ef=function(e,t,n,r,o){e[Qp]=Array.isArray(e[Qp])?e[Qp]:[],-1===e[Qp].indexOf(t)&&r.push(Mp(o.messages[Qp],e.fullField,e[Qp].join(", ")))},tf=function(e,t,n,r,o){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(Mp(o.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"===typeof e.pattern){var i=new RegExp(e.pattern);i.test(t)||r.push(Mp(o.messages.pattern.mismatch,e.fullField,t,e.pattern))}},nf={required:Zp,whitespace:Yp,type:Gp,range:Xp,enum:ef,pattern:tf},rf=function(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(Fp(t,"string")&&!e.required)return n();nf.required(e,t,r,i,o,"string"),Fp(t,"string")||(nf.type(e,t,r,i,o),nf.range(e,t,r,i,o),nf.pattern(e,t,r,i,o),!0===e.whitespace&&nf.whitespace(e,t,r,i,o))}n(i)},of=function(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(Fp(t)&&!e.required)return n();nf.required(e,t,r,i,o),void 0!==t&&nf.type(e,t,r,i,o)}n(i)},af=function(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(""===t&&(t=void 0),Fp(t)&&!e.required)return n();nf.required(e,t,r,i,o),void 0!==t&&(nf.type(e,t,r,i,o),nf.range(e,t,r,i,o))}n(i)},sf=function(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(Fp(t)&&!e.required)return n();nf.required(e,t,r,i,o),void 0!==t&&nf.type(e,t,r,i,o)}n(i)},lf=function(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(Fp(t)&&!e.required)return n();nf.required(e,t,r,i,o),Fp(t)||nf.type(e,t,r,i,o)}n(i)},cf=function(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(Fp(t)&&!e.required)return n();nf.required(e,t,r,i,o),void 0!==t&&(nf.type(e,t,r,i,o),nf.range(e,t,r,i,o))}n(i)},uf=function(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(Fp(t)&&!e.required)return n();nf.required(e,t,r,i,o),void 0!==t&&(nf.type(e,t,r,i,o),nf.range(e,t,r,i,o))}n(i)},df=function(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if((void 0===t||null===t)&&!e.required)return n();nf.required(e,t,r,i,o,"array"),void 0!==t&&null!==t&&(nf.type(e,t,r,i,o),nf.range(e,t,r,i,o))}n(i)},pf=function(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(Fp(t)&&!e.required)return n();nf.required(e,t,r,i,o),void 0!==t&&nf.type(e,t,r,i,o)}n(i)},ff="enum",hf=function(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(Fp(t)&&!e.required)return n();nf.required(e,t,r,i,o),void 0!==t&&nf[ff](e,t,r,i,o)}n(i)},mf=function(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(Fp(t,"string")&&!e.required)return n();nf.required(e,t,r,i,o),Fp(t,"string")||nf.pattern(e,t,r,i,o)}n(i)},vf=function(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(Fp(t,"date")&&!e.required)return n();var s;if(nf.required(e,t,r,i,o),!Fp(t,"date"))s=t instanceof Date?t:new Date(t),nf.type(e,s,r,i,o),s&&nf.range(e,s.getTime(),r,i,o)}n(i)},gf=function(e,t,n,r,o){var i=[],a=Array.isArray(t)?"array":typeof t;nf.required(e,t,r,i,o,a),n(i)},yf=function(e,t,n,r,o){var i=e.type,a=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(Fp(t,i)&&!e.required)return n();nf.required(e,t,r,a,o,i),Fp(t,i)||nf.type(e,t,r,a,o)}n(a)},bf=function(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(Fp(t)&&!e.required)return n();nf.required(e,t,r,i,o)}n(i)},_f={string:rf,method:of,number:af,boolean:sf,regexp:lf,integer:cf,float:uf,array:df,object:pf,enum:hf,pattern:mf,date:vf,url:yf,hex:yf,email:yf,required:gf,any:bf};function wf(){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 e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var kf=wf(),Sf=function(){function e(e){this.rules=null,this._messages=kf,this.define(e)}var t=e.prototype;return t.define=function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==typeof e||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach((function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]}))},t.messages=function(e){return e&&(this._messages=qp(wf(),e)),this._messages},t.validate=function(t,n,r){var o=this;void 0===n&&(n={}),void 0===r&&(r=function(){});var i=t,a=n,s=r;if("function"===typeof a&&(s=a,a={}),!this.rules||0===Object.keys(this.rules).length)return s&&s(null,i),Promise.resolve(i);function l(e){var t=[],n={};function r(e){var n;Array.isArray(e)?t=(n=t).concat.apply(n,e):t.push(e)}for(var o=0;o<e.length;o++)r(e[o]);t.length?(n=Np(t),s(t,n)):s(null,i)}if(a.messages){var c=this.messages();c===kf&&(c=wf()),qp(c,a.messages),a.messages=c}else a.messages=this.messages();var u={},d=a.keys||Object.keys(this.rules);d.forEach((function(e){var n=o.rules[e],r=i[e];n.forEach((function(n){var a=n;"function"===typeof a.transform&&(i===t&&(i=Cp({},i)),r=i[e]=a.transform(r)),a="function"===typeof a?{validator:a}:Cp({},a),a.validator=o.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=o.getType(a),u[e]=u[e]||[],u[e].push({rule:a,value:r,source:i,field:e}))}))}));var p={};return Bp(u,a,(function(t,n){var r,o=t.rule,s=("object"===o.type||"array"===o.type)&&("object"===typeof o.fields||"object"===typeof o.defaultField);function l(e,t){return Cp({},t,{fullField:o.fullField+"."+e,fullFields:o.fullFields?[].concat(o.fullFields,[e]):[e]})}function c(r){void 0===r&&(r=[]);var c=Array.isArray(r)?r:[r];!a.suppressWarning&&c.length&&e.warning("async-validator:",c),c.length&&void 0!==o.message&&(c=[].concat(o.message));var u=c.map(Wp(o,i));if(a.first&&u.length)return p[o.field]=1,n(u);if(s){if(o.required&&!t.value)return void 0!==o.message?u=[].concat(o.message).map(Wp(o,i)):a.error&&(u=[a.error(o,Mp(a.messages.required,o.field))]),n(u);var d={};o.defaultField&&Object.keys(t.value).map((function(e){d[e]=o.defaultField})),d=Cp({},d,t.rule.fields);var f={};Object.keys(d).forEach((function(e){var t=d[e],n=Array.isArray(t)?t:[t];f[e]=n.map(l.bind(null,e))}));var h=new e(f);h.messages(a.messages),t.rule.options&&(t.rule.options.messages=a.messages,t.rule.options.error=a.error),h.validate(t.value,t.rule.options||a,(function(e){var t=[];u&&u.length&&t.push.apply(t,u),e&&e.length&&t.push.apply(t,e),n(t.length?t:null)}))}else n(u)}if(s=s&&(o.required||!o.required&&t.value),o.field=t.field,o.asyncValidator)r=o.asyncValidator(o,t.value,c,t.source,a);else if(o.validator){try{r=o.validator(o,t.value,c,t.source,a)}catch(v){null==console.error||console.error(v),setTimeout((function(){throw v}),0),c(v.message)}!0===r?c():!1===r?c("function"===typeof o.message?o.message(o.fullField||o.field):o.message||(o.fullField||o.field)+" fails"):r instanceof Array?c(r):r instanceof Error&&c(r.message)}r&&r.then&&r.then((function(){return c()}),(function(e){return c(e)}))}),(function(e){l(e)}),i)},t.getType=function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!==typeof e.validator&&e.type&&!_f.hasOwnProperty(e.type))throw new Error(Mp("Unknown rule type %s",e.type));return e.type||"string"},t.getValidationMethod=function(e){if("function"===typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?_f.required:_f[this.getType(e)]||void 0},e}();Sf.register=function(e,t){if("function"!==typeof t)throw new Error("Cannot register a validator by type, validator is not a function");_f[e]=t},Sf.warning=Dp,Sf.messages=kf,Sf.validators=_f;var Cf=n(2157);function xf(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(!1===t(e[n],n,e))break;return e}var If=xf,Tf=n(7788),Ef=n(4441);function Rf(e,t,n,r){var o=!n;n||(n={});var i=-1,a=t.length;while(++i<a){var s=t[i],l=r?r(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),o?(0,Ef.Z)(n,s,l):(0,Tf.Z)(n,s,l)}return n}var Pf=Rf,Of=n(9102);function Af(e,t){return e&&Pf(t,(0,Of.Z)(t),e)}var Df=Af,Nf=n(2838),Mf=n(5497);function Lf(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}var Ff=Lf,Uf=Object.prototype,jf=Uf.hasOwnProperty;function Vf(e){if(!(0,pt.Z)(e))return Ff(e);var t=(0,Mf.Z)(e),n=[];for(var r in e)("constructor"!=r||!t&&jf.call(e,r))&&n.push(r);return n}var Hf=Vf,Bf=n(6791);function $f(e){return(0,Bf.Z)(e)?(0,Nf.Z)(e,!0):Hf(e)}var zf=$f;function Wf(e,t){return e&&Pf(t,zf(t),e)}var qf=Wf,Zf=n(8345),Yf="object"==typeof exports&&exports&&!exports.nodeType&&exports,Kf=Yf&&"object"==typeof module&&module&&!module.nodeType&&module,Jf=Kf&&Kf.exports===Yf,Gf=Jf?Zf.Z.Buffer:void 0,Xf=Gf?Gf.allocUnsafe:void 0;function Qf(e,t){if(t)return e.slice();var n=e.length,r=Xf?Xf(n):new e.constructor(n);return e.copy(r),r}var eh=Qf;function th(e,t){var n=-1,r=e.length;t||(t=Array(r));while(++n<r)t[n]=e[n];return t}var nh=th,rh=n(4909);function oh(e,t){return Pf(e,(0,rh.Z)(e),t)}var ih=oh,ah=n(5236),sh=(0,ah.Z)(Object.getPrototypeOf,Object),lh=sh,ch=n(7555),uh=Object.getOwnPropertySymbols,dh=uh?function(e){var t=[];while(e)(0,Wt.Z)(t,(0,rh.Z)(e)),e=lh(e);return t}:ch.Z,ph=dh;function fh(e,t){return Pf(e,ph(e),t)}var hh=fh,mh=n(5666),vh=n(8125);function gh(e){return(0,vh.Z)(e,zf,ph)}var yh=gh,bh=n(1880),_h=Object.prototype,wh=_h.hasOwnProperty;function kh(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&wh.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var Sh=kh,Ch=n(1099);function xh(e){var t=new e.constructor(e.byteLength);return new Ch.Z(t).set(new Ch.Z(e)),t}var Ih=xh;function Th(e,t){var n=t?Ih(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Eh=Th,Rh=/\w*$/;function Ph(e){var t=new e.constructor(e.source,Rh.exec(e));return t.lastIndex=e.lastIndex,t}var Oh=Ph,Ah=qt.Z?qt.Z.prototype:void 0,Dh=Ah?Ah.valueOf:void 0;function Nh(e){return Dh?Object(Dh.call(e)):{}}var Mh=Nh;function Lh(e,t){var n=t?Ih(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var Fh=Lh,Uh="[object Boolean]",jh="[object Date]",Vh="[object Map]",Hh="[object Number]",Bh="[object RegExp]",$h="[object Set]",zh="[object String]",Wh="[object Symbol]",qh="[object ArrayBuffer]",Zh="[object DataView]",Yh="[object Float32Array]",Kh="[object Float64Array]",Jh="[object Int8Array]",Gh="[object Int16Array]",Xh="[object Int32Array]",Qh="[object Uint8Array]",em="[object Uint8ClampedArray]",tm="[object Uint16Array]",nm="[object Uint32Array]";function rm(e,t,n){var r=e.constructor;switch(t){case qh:return Ih(e);case Uh:case jh:return new r(+e);case Zh:return Eh(e,n);case Yh:case Kh:case Jh:case Gh:case Xh:case Qh:case em:case tm:case nm:return Fh(e,n);case Vh:return new r;case Hh:case zh:return new r(e);case Bh:return Oh(e);case $h:return new r;case Wh:return Mh(e)}}var om=rm,im=Object.create,am=function(){function e(){}return function(t){if(!(0,pt.Z)(t))return{};if(im)return im(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),sm=am;function lm(e){return"function"!=typeof e.constructor||(0,Mf.Z)(e)?{}:sm(lh(e))}var cm=lm,um=n(6963),dm=n(3835),pm="[object Map]";function fm(e){return(0,dm.Z)(e)&&(0,bh.Z)(e)==pm}var hm=fm,mm=n(2583),vm=n(9603),gm=vm.Z&&vm.Z.isMap,ym=gm?(0,mm.Z)(gm):hm,bm=ym,_m="[object Set]";function wm(e){return(0,dm.Z)(e)&&(0,bh.Z)(e)==_m}var km=wm,Sm=vm.Z&&vm.Z.isSet,Cm=Sm?(0,mm.Z)(Sm):km,xm=Cm,Im=1,Tm=2,Em=4,Rm="[object Arguments]",Pm="[object Array]",Om="[object Boolean]",Am="[object Date]",Dm="[object Error]",Nm="[object Function]",Mm="[object GeneratorFunction]",Lm="[object Map]",Fm="[object Number]",Um="[object Object]",jm="[object RegExp]",Vm="[object Set]",Hm="[object String]",Bm="[object Symbol]",$m="[object WeakMap]",zm="[object ArrayBuffer]",Wm="[object DataView]",qm="[object Float32Array]",Zm="[object Float64Array]",Ym="[object Int8Array]",Km="[object Int16Array]",Jm="[object Int32Array]",Gm="[object Uint8Array]",Xm="[object Uint8ClampedArray]",Qm="[object Uint16Array]",ev="[object Uint32Array]",tv={};function nv(e,t,n,r,o,i){var a,s=t&Im,l=t&Tm,c=t&Em;if(n&&(a=o?n(e,r,o,i):n(e)),void 0!==a)return a;if(!(0,pt.Z)(e))return e;var u=(0,Yt.Z)(e);if(u){if(a=Sh(e),!s)return nh(e,a)}else{var d=(0,bh.Z)(e),p=d==Nm||d==Mm;if((0,um.Z)(e))return eh(e,s);if(d==Um||d==Rm||p&&!o){if(a=l||p?{}:cm(e),!s)return l?hh(e,qf(a,e)):ih(e,Df(a,e))}else{if(!tv[d])return o?e:{};a=om(e,d,s)}}i||(i=new Cf.Z);var f=i.get(e);if(f)return f;i.set(e,a),xm(e)?e.forEach((function(r){a.add(nv(r,t,n,r,e,i))})):bm(e)&&e.forEach((function(r,o){a.set(o,nv(r,t,n,o,e,i))}));var h=c?l?yh:mh.Z:l?zf:Of.Z,m=u?void 0:h(e);return If(m||e,(function(r,o){m&&(o=r,r=e[o]),(0,Tf.Z)(a,o,nv(r,t,n,o,e,i))})),a}tv[Rm]=tv[Pm]=tv[zm]=tv[Wm]=tv[Om]=tv[Am]=tv[qm]=tv[Zm]=tv[Ym]=tv[Km]=tv[Jm]=tv[Lm]=tv[Fm]=tv[Um]=tv[jm]=tv[Vm]=tv[Hm]=tv[Bm]=tv[Gm]=tv[Xm]=tv[Qm]=tv[ev]=!0,tv[Dm]=tv[Nm]=tv[$m]=!1;var rv=nv,ov=4;function iv(e){return rv(e,ov)}var av=iv;const sv=["","error","validating","success"],lv=(0,d.o8)({label:String,labelWidth:{type:[String,Number],default:""},prop:{type:(0,d.Cq)([String,Array])},required:{type:Boolean,default:void 0},rules:{type:(0,d.Cq)([Object,Array])},error:String,validateStatus:{type:String,values:sv},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:Q.k}}),cv="ElLabelWrap";var uv=(0,s.aZ)({name:cv,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const n=(0,s.f3)(rn.H,void 0),r=(0,s.f3)(rn.K);r||(0,v._)(cv,"usage: <el-form-item><label-wrap /></el-form-item>");const o=(0,m.s)("form"),i=(0,l.iH)(),a=(0,l.iH)(0),c=()=>{var e;if(null==(e=i.value)?void 0:e.firstElementChild){const e=window.getComputedStyle(i.value.firstElementChild).width;return Math.ceil(Number.parseFloat(e))}return 0},d=(r="update")=>{(0,s.Y3)((()=>{t.default&&e.isAutoWidth&&("update"===r?a.value=c():"remove"===r&&(null==n||n.deregisterLabelWidth(a.value)))}))},p=()=>d("update");return(0,s.bv)((()=>{p()})),(0,s.Jd)((()=>{d("remove")})),(0,s.ic)((()=>p())),(0,s.YP)(a,((t,r)=>{e.updateAll&&(null==n||n.registerLabelWidth(t,r))})),(0,u.yU7)((0,s.Fl)((()=>{var e,t;return null!=(t=null==(e=i.value)?void 0:e.firstElementChild)?t:null})),p),()=>{var r,l;if(!t)return null;const{isAutoWidth:c}=e;if(c){const e=null==n?void 0:n.autoLabelWidth,l={};if(e&&"auto"!==e){const t=Math.max(0,Number.parseInt(e,10)-a.value),r="left"===n.labelPosition?"marginRight":"marginLeft";t&&(l[r]=`${t}px`)}return(0,s.Wm)("div",{ref:i,class:[o.be("item","label-wrap")],style:l},[null==(r=t.default)?void 0:r.call(t)])}return(0,s.Wm)(s.HY,{ref:i},[null==(l=t.default)?void 0:l.call(t)])}}});const dv=["for"],pv={name:"ElFormItem"},fv=(0,s.aZ)({...pv,props:lv,setup(e,{expose:t}){const n=e,r=(0,s.Rr)(),o=(0,s.f3)(rn.H,void 0),i=(0,s.f3)(rn.K,void 0),a=(0,on.tH)(void 0,{formItem:!1}),u=(0,m.s)("form-item"),d=(0,l.iH)(""),p=(0,ne.Dp)(d,100),f=(0,l.iH)(""),h=(0,l.iH)();let v,g=!1;const y=(0,s.Fl)((()=>{if("top"===(null==o?void 0:o.labelPosition))return{};const e=(0,re.Nn)(n.labelWidth||(null==o?void 0:o.labelWidth)||"");return e?{width:e}:{}})),b=(0,s.Fl)((()=>{if("top"===(null==o?void 0:o.labelPosition)||(null==o?void 0:o.inline))return{};if(!n.label&&!n.labelWidth&&T)return{};const e=(0,re.Nn)(n.labelWidth||(null==o?void 0:o.labelWidth)||"");return n.label||r.label?{}:{marginLeft:e}})),_=(0,s.Fl)((()=>[u.b(),u.m(a.value),u.is("error","error"===d.value),u.is("validating","validating"===d.value),u.is("success","success"===d.value),u.is("required",A.value||n.required),u.is("no-asterisk",null==o?void 0:o.hideRequiredAsterisk),{[u.m("feedback")]:null==o?void 0:o.statusIcon}])),w=(0,s.Fl)((()=>(0,ne.jn)(n.inlineMessage)?n.inlineMessage:(null==o?void 0:o.inlineMessage)||!1)),k=(0,s.Fl)((()=>[u.e("error"),{[u.em("error","inline")]:w.value}])),C=(0,s.Fl)((()=>n.prop?(0,c.HD)(n.prop)?n.prop:n.prop.join("."):"")),I=(0,s.Fl)((()=>n.for||C.value)),T=!!i,E=(0,s.Fl)((()=>{const e=null==o?void 0:o.model;if(e&&n.prop)return(0,x.WJ)(e,n.prop).value})),R=(0,s.Fl)((()=>{const e=n.rules?Ao(n.rules):[],t=null==o?void 0:o.rules;if(t&&n.prop){const r=(0,x.WJ)(t,n.prop).value;r&&e.push(...Ao(r))}return void 0!==n.required&&e.push({required:!!n.required}),e})),P=(0,s.Fl)((()=>R.value.length>0)),O=e=>{const t=R.value;return t.filter((t=>!t.trigger||!e||(Array.isArray(t.trigger)?t.trigger.includes(e):t.trigger===e))).map((({trigger:e,...t})=>t))},A=(0,s.Fl)((()=>R.value.some((e=>!0===e.required)))),D=(0,s.Fl)((()=>{var e;return"error"===p.value&&n.showMessage&&(null==(e=null==o?void 0:o.showMessage)||e)})),N=(0,s.Fl)((()=>`${n.label||""}${(null==o?void 0:o.labelSuffix)||""}`)),M=e=>{d.value=e},L=e=>{var t,r;const{errors:i,fields:a}=e;i&&a||console.error(e),M("error"),f.value=i?null!=(r=null==(t=null==i?void 0:i[0])?void 0:t.message)?r:`${n.prop} is required`:"",null==o||o.emit("validate",n.prop,!1,f.value)},F=()=>{M("success"),null==o||o.emit("validate",n.prop,!0,"")},U=async e=>{const t=C.value,n=new Sf({[t]:e});return n.validate({[t]:E.value},{firstFields:!0}).then((()=>(F(),!0))).catch((e=>(L(e),Promise.reject(e))))},j=async(e,t)=>{if(g)return g=!1,!1;const n=(0,c.mf)(t);if(!P.value)return null==t||t(!1),!1;const r=O(e);return 0===r.length?(null==t||t(!0),!0):(M("validating"),U(r).then((()=>(null==t||t(!0),!0))).catch((e=>{const{fields:r}=e;return null==t||t(!1,r),!n&&Promise.reject(r)})))},V=()=>{M(""),f.value=""},H=async()=>{const e=null==o?void 0:o.model;if(!e||!n.prop)return;const t=(0,x.WJ)(e,n.prop);(0,zt.Z)(t.value,v)||(g=!0),t.value=v,await(0,s.Y3)(),V()};(0,s.YP)((()=>n.error),(e=>{f.value=e||"",M(e?"error":"")}),{immediate:!0}),(0,s.YP)((()=>n.validateStatus),(e=>M(e||"")));const B=(0,l.qj)({...(0,l.BK)(n),$el:h,size:a,validateState:d,resetField:H,clearValidate:V,validate:j});return(0,s.JJ)(rn.K,B),(0,s.bv)((()=>{n.prop&&(null==o||o.addField(B),v=av(E.value))})),(0,s.Jd)((()=>{null==o||o.removeField(B)})),t({size:a,validateMessage:f,validateState:d,validate:j,clearValidate:V,resetField:H}),(e,t)=>{var n;return(0,s.wg)(),(0,s.iD)("div",{ref_key:"formItemRef",ref:h,class:(0,c.C_)((0,l.SU)(_))},[(0,s.Wm)((0,l.SU)(uv),{"is-auto-width":"auto"===(0,l.SU)(y).width,"update-all":"auto"===(null==(n=(0,l.SU)(o))?void 0:n.labelWidth)},{default:(0,s.w5)((()=>[e.label||e.$slots.label?((0,s.wg)(),(0,s.iD)("label",{key:0,for:(0,l.SU)(I),class:(0,c.C_)((0,l.SU)(u).e("label")),style:(0,c.j5)((0,l.SU)(y))},[(0,s.WI)(e.$slots,"label",{label:(0,l.SU)(N)},(()=>[(0,s.Uk)((0,c.zw)((0,l.SU)(N)),1)]))],14,dv)):(0,s.kq)("v-if",!0)])),_:3},8,["is-auto-width","update-all"]),(0,s._)("div",{class:(0,c.C_)((0,l.SU)(u).e("content")),style:(0,c.j5)((0,l.SU)(b))},[(0,s.WI)(e.$slots,"default"),(0,s.Wm)(S.uT,{name:`${(0,l.SU)(u).namespace.value}-zoom-in-top`},{default:(0,s.w5)((()=>[(0,l.SU)(D)?(0,s.WI)(e.$slots,"error",{key:0,error:f.value},(()=>[(0,s._)("div",{class:(0,c.C_)((0,l.SU)(k))},(0,c.zw)(f.value),3)])):(0,s.kq)("v-if",!0)])),_:3},8,["name"])],6)],2)}}});var hv=(0,h.Z)(fv,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);const mv=(0,w.nz)(Sp,{FormItem:hv}),vv=(0,w.dp)(hv),gv=(0,s.aZ)({name:"FullScreen"}),yv={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},bv=(0,s._)("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64v.064zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64l-192 .192zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64v-.064z"},null,-1),_v=[bv];function wv(e,t,n,r,o,i){return(0,s.wg)(),(0,s.iD)("svg",yv,_v)}var kv=(0,ce.Z)(gv,[["render",wv]]);const Sv=(0,s.aZ)({name:"ScaleToOriginal"}),Cv={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},xv=(0,s._)("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zm-361.412 0a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zM512 361.412a30.118 30.118 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.118 30.118 0 0 0 512 361.412zM512 512a30.118 30.118 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.118 30.118 0 0 0 512 512z"},null,-1),Iv=[xv];function Tv(e,t,n,r,o,i){return(0,s.wg)(),(0,s.iD)("svg",Cv,Iv)}var Ev=(0,ce.Z)(Sv,[["render",Tv]]);const Rv=(0,s.aZ)({name:"ZoomOut"}),Pv={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Ov=(0,s._)("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704zM352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64z"},null,-1),Av=[Ov];function Dv(e,t,n,r,o,i){return(0,s.wg)(),(0,s.iD)("svg",Pv,Av)}var Nv=(0,ce.Z)(Rv,[["render",Dv]]);const Mv=(0,s.aZ)({name:"ZoomIn"}),Lv={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Fv=(0,s._)("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704zm-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96z"},null,-1),Uv=[Fv];function jv(e,t,n,r,o,i){return(0,s.wg)(),(0,s.iD)("svg",Lv,Uv)}var Vv=(0,ce.Z)(Mv,[["render",jv]]);const Hv=(0,s.aZ)({name:"RefreshLeft"}),Bv={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},$v=(0,s._)("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"},null,-1),zv=[$v];function Wv(e,t,n,r,o,i){return(0,s.wg)(),(0,s.iD)("svg",Bv,zv)}var qv=(0,ce.Z)(Hv,[["render",Wv]]);const Zv=(0,s.aZ)({name:"RefreshRight"}),Yv={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Kv=(0,s._)("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88z"},null,-1),Jv=[Kv];function Gv(e,t,n,r,o,i){return(0,s.wg)(),(0,s.iD)("svg",Yv,Jv)}var Xv=(0,ce.Z)(Zv,[["render",Gv]]);const Qv=(0,d.o8)({urlList:{type:(0,d.Cq)(Array),default:()=>(0,To.N)([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:{type:Boolean,default:!1},teleported:{type:Boolean,default:!1},closeOnPressEscape:{type:Boolean,default:!0}}),eg={close:()=>!0,switch:e=>"number"===typeof e},tg=()=>ne.C5&&/firefox/i.test(window.navigator.userAgent),ng=["src"],rg={name:"ElImageViewer"},og=(0,s.aZ)({...rg,props:Qv,emits:eg,setup(e,{emit:t}){const n=e,r={CONTAIN:{name:"contain",icon:(0,l.Xl)(kv)},ORIGINAL:{name:"original",icon:(0,l.Xl)(Ev)}},o=tg()?"DOMMouseScroll":"mousewheel",{t:i}=(0,Ye.bU)(),a=(0,m.s)("image-viewer"),{nextZIndex:d}=(0,Rc.C)(),p=(0,l.iH)(),f=(0,l.iH)([]),h=(0,l.B)(),v=(0,l.iH)(!0),g=(0,l.iH)(n.initialIndex),y=(0,l.iH)(r.CONTAIN),b=(0,l.iH)({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),_=(0,s.Fl)((()=>{const{urlList:e}=n;return e.length<=1})),w=(0,s.Fl)((()=>0===g.value)),k=(0,s.Fl)((()=>g.value===n.urlList.length-1)),x=(0,s.Fl)((()=>n.urlList[g.value])),I=(0,s.Fl)((()=>{const{scale:e,deg:t,offsetX:n,offsetY:o,enableTransition:i}=b.value;let a=n/e,s=o/e;switch(t%360){case 90:case-270:[a,s]=[s,-a];break;case 180:case-180:[a,s]=[-a,-s];break;case 270:case-90:[a,s]=[-s,a];break}const l={transform:`scale(${e}) rotate(${t}deg) translate(${a}px, ${s}px)`,transition:i?"transform .3s":""};return y.value.name===r.CONTAIN.name&&(l.maxWidth=l.maxHeight="100%"),l})),T=(0,s.Fl)((()=>(0,ne.hj)(n.zIndex)?n.zIndex:d()));function E(){P(),t("close")}function R(){const e=mt((e=>{switch(e.code){case Xn.n.esc:n.closeOnPressEscape&&E();break;case Xn.n.space:M();break;case Xn.n.left:L();break;case Xn.n.up:U("zoomIn");break;case Xn.n.right:F();break;case Xn.n.down:U("zoomOut");break}})),t=mt((e=>{const t=e.wheelDelta?e.wheelDelta:-e.detail;U(t>0?"zoomIn":"zoomOut",{zoomRate:1.2,enableTransition:!1})}));h.run((()=>{(0,u.ORN)(document,"keydown",e),(0,u.ORN)(document,o,t)}))}function P(){h.stop()}function O(){v.value=!1}function A(e){v.value=!1,e.target.alt=i("el.image.error")}function D(e){if(v.value||0!==e.button||!p.value)return;b.value.enableTransition=!1;const{offsetX:t,offsetY:n}=b.value,r=e.pageX,o=e.pageY,i=mt((e=>{b.value={...b.value,offsetX:t+e.pageX-r,offsetY:n+e.pageY-o}})),a=(0,u.ORN)(document,"mousemove",i);(0,u.ORN)(document,"mouseup",(()=>{a()})),e.preventDefault()}function N(){b.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function M(){if(v.value)return;const e=Object.keys(r),t=Object.values(r),n=y.value.name,o=t.findIndex((e=>e.name===n)),i=(o+1)%e.length;y.value=r[e[i]],N()}function L(){if(w.value&&!n.infinite)return;const e=n.urlList.length;g.value=(g.value-1+e)%e}function F(){if(k.value&&!n.infinite)return;const e=n.urlList.length;g.value=(g.value+1)%e}function U(e,t={}){if(v.value)return;const{zoomRate:n,rotateDeg:r,enableTransition:o}={zoomRate:1.4,rotateDeg:90,enableTransition:!0,...t};switch(e){case"zoomOut":b.value.scale>.2&&(b.value.scale=Number.parseFloat((b.value.scale/n).toFixed(3)));break;case"zoomIn":b.value.scale<7&&(b.value.scale=Number.parseFloat((b.value.scale*n).toFixed(3)));break;case"clockwise":b.value.deg+=r;break;case"anticlockwise":b.value.deg-=r;break}b.value.enableTransition=o}return(0,s.YP)(x,(()=>{(0,s.Y3)((()=>{const e=f.value[0];(null==e?void 0:e.complete)||(v.value=!0)}))})),(0,s.YP)(g,(e=>{N(),t("switch",e)})),(0,s.bv)((()=>{var e,t;R(),null==(t=null==(e=p.value)?void 0:e.focus)||t.call(e)})),(e,t)=>((0,s.wg)(),(0,s.j4)(s.lR,{to:"body",disabled:!e.teleported},[(0,s.Wm)(S.uT,{name:"viewer-fade",appear:""},{default:(0,s.w5)((()=>[(0,s._)("div",{ref_key:"wrapper",ref:p,tabindex:-1,class:(0,c.C_)((0,l.SU)(a).e("wrapper")),style:(0,c.j5)({zIndex:(0,l.SU)(T)})},[(0,s._)("div",{class:(0,c.C_)((0,l.SU)(a).e("mask")),onClick:t[0]||(t[0]=(0,S.iM)((t=>e.hideOnClickModal&&E()),["self"]))},null,2),(0,s.kq)(" CLOSE "),(0,s._)("span",{class:(0,c.C_)([(0,l.SU)(a).e("btn"),(0,l.SU)(a).e("close")]),onClick:E},[(0,s.Wm)((0,l.SU)(C.gn),null,{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(Go.Z))])),_:1})],2),(0,s.kq)(" ARROW "),(0,l.SU)(_)?(0,s.kq)("v-if",!0):((0,s.wg)(),(0,s.iD)(s.HY,{key:0},[(0,s._)("span",{class:(0,c.C_)([(0,l.SU)(a).e("btn"),(0,l.SU)(a).e("prev"),(0,l.SU)(a).is("disabled",!e.infinite&&(0,l.SU)(w))]),onClick:L},[(0,s.Wm)((0,l.SU)(C.gn),null,{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(wt))])),_:1})],2),(0,s._)("span",{class:(0,c.C_)([(0,l.SU)(a).e("btn"),(0,l.SU)(a).e("next"),(0,l.SU)(a).is("disabled",!e.infinite&&(0,l.SU)(k))]),onClick:F},[(0,s.Wm)((0,l.SU)(C.gn),null,{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(Tt))])),_:1})],2)],64)),(0,s.kq)(" ACTIONS "),(0,s._)("div",{class:(0,c.C_)([(0,l.SU)(a).e("btn"),(0,l.SU)(a).e("actions")])},[(0,s._)("div",{class:(0,c.C_)((0,l.SU)(a).e("actions__inner"))},[(0,s.Wm)((0,l.SU)(C.gn),{onClick:t[1]||(t[1]=e=>U("zoomOut"))},{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(Nv))])),_:1}),(0,s.Wm)((0,l.SU)(C.gn),{onClick:t[2]||(t[2]=e=>U("zoomIn"))},{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(Vv))])),_:1}),(0,s._)("i",{class:(0,c.C_)((0,l.SU)(a).e("actions__divider"))},null,2),(0,s.Wm)((0,l.SU)(C.gn),{onClick:M},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)(y.value.icon)))])),_:1}),(0,s._)("i",{class:(0,c.C_)((0,l.SU)(a).e("actions__divider"))},null,2),(0,s.Wm)((0,l.SU)(C.gn),{onClick:t[3]||(t[3]=e=>U("anticlockwise"))},{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(qv))])),_:1}),(0,s.Wm)((0,l.SU)(C.gn),{onClick:t[4]||(t[4]=e=>U("clockwise"))},{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(Xv))])),_:1})],2)],2),(0,s.kq)(" CANVAS "),(0,s._)("div",{class:(0,c.C_)((0,l.SU)(a).e("canvas"))},[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e.urlList,((e,t)=>(0,s.wy)(((0,s.wg)(),(0,s.iD)("img",{ref_for:!0,ref:e=>f.value[t]=e,key:e,src:e,style:(0,c.j5)((0,l.SU)(I)),class:(0,c.C_)((0,l.SU)(a).e("img")),onLoad:O,onError:A,onMousedown:D},null,46,ng)),[[S.F8,t===g.value]]))),128))],2),(0,s.WI)(e.$slots,"default")],6)])),_:3})],8,["disabled"]))}});var ig=(0,h.Z)(og,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image-viewer/src/image-viewer.vue"]]);const ag=(0,w.nz)(ig),sg=(0,d.o8)({appendToBody:{type:Boolean,default:void 0},hideOnClickModal:{type:Boolean,default:!1},src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},lazy:{type:Boolean,default:!1},scrollContainer:{type:(0,d.Cq)([String,Object])},previewSrcList:{type:(0,d.Cq)(Array),default:()=>(0,To.N)([])},previewTeleported:{type:Boolean,default:!1},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0}}),lg={error:e=>e instanceof Event,switch:e=>(0,ne.hj)(e),close:()=>!0};var cg=n(7643);const ug=["src"],dg={key:0},pg={name:"ElImage"},fg=(0,s.aZ)({...pg,props:sg,emits:lg,setup(e,{emit:t}){const n=e;let r="";(0,cg.A)({scope:"el-image",from:"append-to-body",replacement:"preview-teleported",version:"2.2.0",ref:"https://element-plus.org/en-US/component/image.html#image-attributess"},(0,s.Fl)((()=>(0,ne.jn)(n.appendToBody))));const{t:o}=(0,Ye.bU)(),i=(0,m.s)("image"),a=(0,z.l)(),d=(0,l.iH)(!1),p=(0,l.iH)(!0),f=(0,l.iH)(0),h=(0,l.iH)(0),v=(0,l.iH)(!1),y=(0,l.iH)(),b=(0,l.iH)();let _,w;const k=(0,s.Fl)((()=>a.value.style)),S=(0,s.Fl)((()=>{const{fit:e}=n;return ne.C5&&e?{objectFit:e}:{}})),C=(0,s.Fl)((()=>{const{previewSrcList:e}=n;return Array.isArray(e)&&e.length>0})),x=(0,s.Fl)((()=>n.appendToBody||n.previewTeleported)),I=(0,s.Fl)((()=>{const{previewSrcList:e,initialIndex:t}=n;let r=t;return t>e.length-1&&(r=0),r})),T=()=>{if(!ne.C5)return;p.value=!0,d.value=!1;const e=new Image,t=n.src;e.addEventListener("load",(r=>{t===n.src&&E(r,e)})),e.addEventListener("error",(e=>{t===n.src&&R(e)})),Object.entries(a.value).forEach((([t,n])=>{"onload"!==t.toLowerCase()&&e.setAttribute(t,n)})),e.src=t};function E(e,t){f.value=t.width,h.value=t.height,p.value=!1,d.value=!1}function R(e){p.value=!1,d.value=!0,t("error",e)}function P(){ti(y.value,b.value)&&(T(),D())}const O=(0,ne.vA)(P,200);async function A(){var e;if(!ne.C5)return;await(0,s.Y3)();const{scrollContainer:t}=n;(0,Ut.kK)(t)?b.value=t:(0,c.HD)(t)&&""!==t?b.value=null!=(e=document.querySelector(t))?e:void 0:y.value&&(b.value=(0,g.JX)(y.value)),b.value&&(_=(0,u.ORN)(b,"scroll",O),setTimeout((()=>P()),100))}function D(){ne.C5&&b.value&&O&&(_(),b.value=void 0)}function N(e){if(e.ctrlKey)return e.deltaY<0||e.deltaY>0?(e.preventDefault(),!1):void 0}function M(){C.value&&(w=(0,u.ORN)("wheel",N,{passive:!1}),r=document.body.style.overflow,document.body.style.overflow="hidden",v.value=!0)}function L(){null==w||w(),document.body.style.overflow=r,v.value=!1,t("close")}function F(e){t("switch",e)}return(0,s.YP)((()=>n.src),(()=>{n.lazy?(p.value=!0,d.value=!1,D(),A()):T()})),(0,s.bv)((()=>{n.lazy?A():T()})),(e,t)=>((0,s.wg)(),(0,s.iD)("div",{ref_key:"container",ref:y,class:(0,c.C_)([(0,l.SU)(i).b(),e.$attrs.class]),style:(0,c.j5)((0,l.SU)(k))},[p.value?(0,s.WI)(e.$slots,"placeholder",{key:0},(()=>[(0,s._)("div",{class:(0,c.C_)((0,l.SU)(i).e("placeholder"))},null,2)])):d.value?(0,s.WI)(e.$slots,"error",{key:1},(()=>[(0,s._)("div",{class:(0,c.C_)((0,l.SU)(i).e("error"))},(0,c.zw)((0,l.SU)(o)("el.image.error")),3)])):((0,s.wg)(),(0,s.iD)("img",(0,s.dG)({key:2},(0,l.SU)(a),{src:e.src,style:(0,l.SU)(S),class:[(0,l.SU)(i).e("inner"),(0,l.SU)(C)?(0,l.SU)(i).e("preview"):""],onClick:M}),null,16,ug)),(0,l.SU)(C)?((0,s.wg)(),(0,s.iD)(s.HY,{key:3},[v.value?((0,s.wg)(),(0,s.j4)((0,l.SU)(ag),{key:0,"z-index":e.zIndex,"initial-index":(0,l.SU)(I),infinite:e.infinite,"url-list":e.previewSrcList,"hide-on-click-modal":e.hideOnClickModal,teleported:(0,l.SU)(x),"close-on-press-escape":e.closeOnPressEscape,onClose:L,onSwitch:F},{default:(0,s.w5)((()=>[e.$slots.viewer?((0,s.wg)(),(0,s.iD)("div",dg,[(0,s.WI)(e.$slots,"viewer")])):(0,s.kq)("v-if",!0)])),_:3},8,["z-index","initial-index","infinite","url-list","hide-on-click-modal","teleported","close-on-press-escape"])):(0,s.kq)("v-if",!0)],2112)):(0,s.kq)("v-if",!0)],6))}});var hg=(0,h.Z)(fg,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image/src/image.vue"]]);const mg=(0,w.nz)(hg),vg=(0,s.aZ)({name:"Plus"}),gg={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},yg=(0,s._)("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64h352z"},null,-1),bg=[yg];function _g(e,t,n,r,o,i){return(0,s.wg)(),(0,s.iD)("svg",gg,bg)}var wg=(0,ce.Z)(vg,[["render",_g]]);const kg=(0,s.aZ)({name:"Minus"}),Sg={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Cg=(0,s._)("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z"},null,-1),xg=[Cg];function Ig(e,t,n,r,o,i){return(0,s.wg)(),(0,s.iD)("svg",Sg,xg)}var Tg=(0,ce.Z)(kg,[["render",Ig]]);const Eg=(0,d.o8)({step:{type:Number,default:1},stepStrictly:{type:Boolean,default:!1},max:{type:Number,default:Number.POSITIVE_INFINITY},min:{type:Number,default:Number.NEGATIVE_INFINITY},modelValue:{type:Number},disabled:{type:Boolean,default:!1},size:{type:String,values:Q.k},controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},name:String,label:String,placeholder:String,precision:{type:Number,validator:e=>e>=0&&e===Number.parseInt(`${e}`,10)}}),Rg={change:(e,t)=>e!==t,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,input:e=>(0,ne.hj)(e),"update:modelValue":e=>(0,ne.hj)(e)||void 0===e},Pg=(0,s.aZ)({name:"ElInputNumber",components:{ElInput:M.EZ,ElIcon:C.gn,ArrowUp:os.Z,ArrowDown:to,Plus:wg,Minus:Tg},directives:{RepeatClick:us},props:Eg,emits:Rg,setup(e,{emit:t}){const n=(0,l.iH)(),r=(0,l.qj)({currentValue:e.modelValue,userInput:null}),{formItem:o}=(0,Gn.A)(),i=(0,m.s)("input-number"),a=(0,s.Fl)((()=>b(e.modelValue,-1)<e.min)),c=(0,s.Fl)((()=>b(e.modelValue)>e.max)),u=(0,s.Fl)((()=>{const t=y(e.step);return(0,Ut.o8)(e.precision)?Math.max(y(e.modelValue),t):(t>e.precision&&(0,v.N)("InputNumber","precision should not be less than the decimal places of step"),e.precision)})),d=(0,s.Fl)((()=>e.controls&&"right"===e.controlsPosition)),p=(0,on.tH)(),f=(0,on.B4)(),h=(0,s.Fl)((()=>{if(null!==r.userInput)return r.userInput;let t=r.currentValue;if((0,ne.hj)(t)){if(Number.isNaN(t))return"";(0,Ut.o8)(e.precision)||(t=t.toFixed(e.precision))}return t})),g=(e,t)=>((0,Ut.o8)(t)&&(t=u.value),Number.parseFloat(""+Math.round(e*10**t)/10**t)),y=e=>{if((0,Ut.o8)(e))return 0;const t=e.toString(),n=t.indexOf(".");let r=0;return-1!==n&&(r=t.length-n-1),r},b=(t,n=1)=>(0,ne.hj)(t)?(t=(0,ne.hj)(t)?t:Number.NaN,g(t+e.step*n)):r.currentValue,_=()=>{if(f.value||c.value)return;const t=e.modelValue||0,n=b(t);S(n)},w=()=>{if(f.value||a.value)return;const t=e.modelValue||0,n=b(t,-1);S(n)},k=(n,r)=>{const{max:o,min:i,step:a,precision:s,stepStrictly:l}=e;let c=Number(n);return null===n&&(c=Number.NaN),Number.isNaN(c)||(l&&(c=Math.round(c/a)*a),(0,Ut.o8)(s)||(c=g(c,s)),(c>o||c<i)&&(c=c>o?o:i,r&&t("update:modelValue",c))),c},S=e=>{var n;const i=r.currentValue;let a=k(e);i!==a&&(Number.isNaN(a)&&(a=void 0),r.userInput=null,t("update:modelValue",a),t("input",a),t("change",a,i),null==(n=null==o?void 0:o.validate)||n.call(o,"change").catch((e=>(0,v.N)(e))),r.currentValue=a)},C=e=>r.userInput=e,x=e=>{const t=""!==e?Number(e):"";((0,ne.hj)(t)&&!Number.isNaN(t)||""===e)&&S(t),r.userInput=null},I=()=>{var e,t;null==(t=null==(e=n.value)?void 0:e.focus)||t.call(e)},T=()=>{var e,t;null==(t=null==(e=n.value)?void 0:e.blur)||t.call(e)},E=e=>{t("focus",e)},R=e=>{var n;t("blur",e),null==(n=null==o?void 0:o.validate)||n.call(o,"blur").catch((e=>(0,v.N)(e)))};return(0,s.YP)((()=>e.modelValue),(e=>{const t=k(e,!0);r.currentValue=t,r.userInput=null}),{immediate:!0}),(0,s.bv)((()=>{var o;const i=null==(o=n.value)?void 0:o.input;if(i.setAttribute("role","spinbutton"),i.setAttribute("aria-valuemax",String(e.max)),i.setAttribute("aria-valuemin",String(e.min)),i.setAttribute("aria-valuenow",String(r.currentValue)),i.setAttribute("aria-disabled",String(f.value)),!(0,ne.hj)(e.modelValue)){let n=Number(e.modelValue);Number.isNaN(n)&&(n=void 0),t("update:modelValue",n)}})),(0,s.ic)((()=>{var e;const t=null==(e=n.value)?void 0:e.input;null==t||t.setAttribute("aria-valuenow",r.currentValue)})),{input:n,displayValue:h,handleInput:C,handleInputChange:x,controlsAtRight:d,decrease:w,increase:_,inputNumberSize:p,inputNumberDisabled:f,maxDisabled:c,minDisabled:a,focus:I,blur:T,handleFocus:E,handleBlur:R,ns:i}}});function Og(e,t,n,r,o,i){const a=(0,s.up)("arrow-down"),l=(0,s.up)("minus"),u=(0,s.up)("el-icon"),d=(0,s.up)("arrow-up"),p=(0,s.up)("plus"),f=(0,s.up)("el-input"),h=(0,s.Q2)("repeat-click");return(0,s.wg)(),(0,s.iD)("div",{class:(0,c.C_)([e.ns.b(),e.ns.m(e.inputNumberSize),e.ns.is("disabled",e.inputNumberDisabled),e.ns.is("without-controls",!e.controls),e.ns.is("controls-right",e.controlsAtRight)]),onDragstart:t[2]||(t[2]=(0,S.iM)((()=>{}),["prevent"]))},[e.controls?(0,s.wy)(((0,s.wg)(),(0,s.iD)("span",{key:0,role:"button",class:(0,c.C_)([e.ns.e("decrease"),e.ns.is("disabled",e.minDisabled)]),onKeydown:t[0]||(t[0]=(0,S.D2)(((...t)=>e.decrease&&e.decrease(...t)),["enter"]))},[(0,s.Wm)(u,null,{default:(0,s.w5)((()=>[e.controlsAtRight?((0,s.wg)(),(0,s.j4)(a,{key:0})):((0,s.wg)(),(0,s.j4)(l,{key:1}))])),_:1})],34)),[[h,e.decrease]]):(0,s.kq)("v-if",!0),e.controls?(0,s.wy)(((0,s.wg)(),(0,s.iD)("span",{key:1,role:"button",class:(0,c.C_)([e.ns.e("increase"),e.ns.is("disabled",e.maxDisabled)]),onKeydown:t[1]||(t[1]=(0,S.D2)(((...t)=>e.increase&&e.increase(...t)),["enter"]))},[(0,s.Wm)(u,null,{default:(0,s.w5)((()=>[e.controlsAtRight?((0,s.wg)(),(0,s.j4)(d,{key:0})):((0,s.wg)(),(0,s.j4)(p,{key:1}))])),_:1})],34)),[[h,e.increase]]):(0,s.kq)("v-if",!0),(0,s.Wm)(f,{ref:"input",type:"number",step:e.step,"model-value":e.displayValue,placeholder:e.placeholder,disabled:e.inputNumberDisabled,size:e.inputNumberSize,max:e.max,min:e.min,name:e.name,label:e.label,"validate-event":!1,onKeydown:[(0,S.D2)((0,S.iM)(e.increase,["prevent"]),["up"]),(0,S.D2)((0,S.iM)(e.decrease,["prevent"]),["down"])],onBlur:e.handleBlur,onFocus:e.handleFocus,onInput:e.handleInput,onChange:e.handleInputChange},null,8,["step","model-value","placeholder","disabled","size","max","min","name","label","onKeydown","onBlur","onFocus","onInput","onChange"])],34)}var Ag=(0,h.Z)(Pg,[["render",Og],["__file","/home/runner/work/element-plus/element-plus/packages/components/input-number/src/input-number.vue"]]);const Dg=(0,w.nz)(Ag),Ng=(0,d.o8)({type:{type:String,values:["primary","success","warning","info","danger","default"],default:"default"},underline:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},href:{type:String,default:""},icon:{type:I.AA,default:""}}),Mg={click:e=>e instanceof MouseEvent},Lg=["href"],Fg={name:"ElLink"},Ug=(0,s.aZ)({...Fg,props:Ng,emits:Mg,setup(e,{emit:t}){const n=e,r=(0,m.s)("link");function o(e){n.disabled||t("click",e)}return(e,t)=>((0,s.wg)(),(0,s.iD)("a",{class:(0,c.C_)([(0,l.SU)(r).b(),(0,l.SU)(r).m(e.type),(0,l.SU)(r).is("disabled",e.disabled),(0,l.SU)(r).is("underline",e.underline&&!e.disabled)]),href:e.disabled||!e.href?void 0:e.href,onClick:o},[e.icon?((0,s.wg)(),(0,s.j4)((0,l.SU)(C.gn),{key:0},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)(e.icon)))])),_:1})):(0,s.kq)("v-if",!0),e.$slots.default?((0,s.wg)(),(0,s.iD)("span",{key:1,class:(0,c.C_)((0,l.SU)(r).e("inner"))},[(0,s.WI)(e.$slots,"default")],2)):(0,s.kq)("v-if",!0),e.$slots.icon?(0,s.WI)(e.$slots,"icon",{key:2}):(0,s.kq)("v-if",!0)],10,Lg))}});var jg=(0,h.Z)(Ug,[["__file","/home/runner/work/element-plus/element-plus/packages/components/link/src/link.vue"]]);const Vg=(0,w.nz)(jg),Hg=(0,s.aZ)({name:"More"}),Bg={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},$g=(0,s._)("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96zm336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96zm336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96z"},null,-1),zg=[$g];function Wg(e,t,n,r,o,i){return(0,s.wg)(),(0,s.iD)("svg",Bg,zg)}var qg=(0,ce.Z)(Hg,[["render",Wg]]);class Zg{constructor(e,t){this.parent=e,this.domNode=t,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(e){e===this.subMenuItems.length?e=0:e<0&&(e=this.subMenuItems.length-1),this.subMenuItems[e].focus(),this.subIndex=e}addListeners(){const e=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,(t=>{t.addEventListener("keydown",(t=>{let n=!1;switch(t.code){case Xn.n.down:this.gotoSubIndex(this.subIndex+1),n=!0;break;case Xn.n.up:this.gotoSubIndex(this.subIndex-1),n=!0;break;case Xn.n.tab:Nr(e,"mouseleave");break;case Xn.n.enter:case Xn.n.space:n=!0,t.currentTarget.click();break}return n&&(t.preventDefault(),t.stopPropagation()),!1}))}))}}class Yg{constructor(e,t){this.domNode=e,this.submenu=null,this.submenu=null,this.init(t)}init(e){this.domNode.setAttribute("tabindex","0");const t=this.domNode.querySelector(`.${e}-menu`);t&&(this.submenu=new Zg(this,t)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",(e=>{let t=!1;switch(e.code){case Xn.n.down:Nr(e.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),t=!0;break;case Xn.n.up:Nr(e.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),t=!0;break;case Xn.n.tab:Nr(e.currentTarget,"mouseleave");break;case Xn.n.enter:case Xn.n.space:t=!0,e.currentTarget.click();break}t&&e.preventDefault()}))}}class Kg{constructor(e,t){this.domNode=e,this.init(t)}init(e){const t=this.domNode.childNodes;Array.from(t).forEach((t=>{1===t.nodeType&&new Yg(t,e)}))}}const Jg=(0,s.aZ)({name:"ElMenuCollapseTransition",setup(){const e=(0,m.s)("menu"),t={onBeforeEnter:e=>e.style.opacity="0.2",onEnter(t,n){(0,re.cn)(t,`${e.namespace.value}-opacity-transition`),t.style.opacity="1",n()},onAfterEnter(t){(0,re.IV)(t,`${e.namespace.value}-opacity-transition`),t.style.opacity=""},onBeforeLeave(t){t.dataset||(t.dataset={}),(0,re.pv)(t,e.m("collapse"))?((0,re.IV)(t,e.m("collapse")),t.dataset.oldOverflow=t.style.overflow,t.dataset.scrollWidth=t.clientWidth.toString(),(0,re.cn)(t,e.m("collapse"))):((0,re.cn)(t,e.m("collapse")),t.dataset.oldOverflow=t.style.overflow,t.dataset.scrollWidth=t.clientWidth.toString(),(0,re.IV)(t,e.m("collapse"))),t.style.width=`${t.scrollWidth}px`,t.style.overflow="hidden"},onLeave(e){(0,re.cn)(e,"horizontal-collapse-transition"),e.style.width=`${e.dataset.scrollWidth}px`}};return{listeners:t}}});function Gg(e,t,n,r,o,i){return(0,s.wg)(),(0,s.j4)(S.uT,(0,s.dG)({mode:"out-in"},e.listeners),{default:(0,s.w5)((()=>[(0,s.WI)(e.$slots,"default")])),_:3},16)}var Xg=(0,h.Z)(Jg,[["render",Gg],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-collapse-transition.vue"]]);function Qg(e,t){const n=(0,s.f3)("rootMenu");n||(0,v._)("useMenu","can not inject root menu");const r=(0,s.Fl)((()=>{let n=e.parent;const r=[t.value];while("ElMenu"!==n.type.name)n.props.index&&r.unshift(n.props.index),n=n.parent;return r})),o=(0,s.Fl)((()=>{let t=e.parent;while(t&&!["ElMenu","ElSubMenu"].includes(t.type.name))t=t.parent;return t})),i=(0,s.Fl)((()=>{let t=e.parent;if("vertical"!==n.props.mode)return{};let r=20;if(n.props.collapse)r=20;else while(t&&"ElMenu"!==t.type.name)"ElSubMenu"===t.type.name&&(r+=20),t=t.parent;return{paddingLeft:`${r}px`}}));return{parentMenu:o,paddingStyle:i,indexPath:r}}var ey=n(9414);function ty(e){const t=(0,s.Fl)((()=>{const t=e.backgroundColor;return t?new ey.C(t).shade(20).toString():""}));return t}const ny=e=>(0,s.Fl)((()=>({"--el-menu-text-color":e.textColor||"","--el-menu-hover-text-color":e.textColor||"","--el-menu-bg-color":e.backgroundColor||"","--el-menu-hover-bg-color":ty(e).value||"","--el-menu-active-color":e.activeTextColor||""}))),ry=(0,d.o8)({index:{type:String,required:!0},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},popperClass:String,disabled:Boolean,popperAppendToBody:{type:Boolean,default:void 0},popperOffset:{type:Number,default:6}}),oy="ElSubMenu";var iy=(0,s.aZ)({name:oy,props:ry,setup(e,{slots:t,expose:n}){const r=(0,s.FN)(),{paddingStyle:o,indexPath:i,parentMenu:a}=Qg(r,(0,s.Fl)((()=>e.index))),c=(0,m.s)("menu"),u=(0,m.s)("sub-menu"),d=(0,s.f3)("rootMenu");d||(0,v._)(oy,"can not inject root menu");const p=(0,s.f3)(`subMenu:${a.value.uid}`);p||(0,v._)(oy,"can not inject sub menu");const f=(0,l.iH)({}),h=(0,l.iH)({});let g;const y=(0,l.iH)(!1),b=(0,l.iH)(),_=(0,l.iH)(null),w=(0,s.Fl)((()=>"horizontal"===N.value&&x.value?"bottom-start":"right-start")),k=(0,s.Fl)((()=>"horizontal"===N.value&&x.value||"vertical"===N.value&&!d.props.collapse?to:Tt)),x=(0,s.Fl)((()=>{let e=!0,t=r.parent;while(t&&"ElMenu"!==t.type.name){if(["ElSubMenu","ElMenuItemGroup"].includes(t.type.name)){e=!1;break}t=t.parent}return e})),I=(0,s.Fl)((()=>void 0===e.popperAppendToBody?x.value:Boolean(e.popperAppendToBody))),T=(0,s.Fl)((()=>d.props.collapse?`${c.namespace.value}-zoom-in-left`:`${c.namespace.value}-zoom-in-top`)),E=(0,s.Fl)((()=>"horizontal"===N.value&&x.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","left-start","bottom-start","bottom-end","top-start","top-end"])),R=(0,s.Fl)((()=>d.openedMenus.includes(e.index))),P=(0,s.Fl)((()=>{let e=!1;return Object.values(f.value).forEach((t=>{t.active&&(e=!0)})),Object.values(h.value).forEach((t=>{t.active&&(e=!0)})),e})),O=(0,s.Fl)((()=>d.props.backgroundColor||"")),A=(0,s.Fl)((()=>d.props.activeTextColor||"")),D=(0,s.Fl)((()=>d.props.textColor||"")),N=(0,s.Fl)((()=>d.props.mode)),M=(0,l.qj)({index:e.index,indexPath:i,active:P}),L=(0,s.Fl)((()=>"horizontal"!==N.value?{color:D.value}:{borderBottomColor:P.value?d.props.activeTextColor?A.value:"":"transparent",color:P.value?A.value:D.value})),U=()=>{var e,t,n;return null==(n=null==(t=null==(e=_.value)?void 0:e.popperRef)?void 0:t.popperInstanceRef)?void 0:n.destroy()},j=e=>{e||U()},V=()=>{"hover"===d.props.menuTrigger&&"horizontal"===d.props.mode||d.props.collapse&&"vertical"===d.props.mode||e.disabled||d.handleSubMenuClick({index:e.index,indexPath:i.value,active:P.value})},H=(t,n=e.showTimeout)=>{var r;("focus"!==t.type||t.relatedTarget)&&("click"===d.props.menuTrigger&&"horizontal"===d.props.mode||!d.props.collapse&&"vertical"===d.props.mode||e.disabled||(p.mouseInChild.value=!0,null==g||g(),({stop:g}=(0,ne.eM)((()=>{d.openMenu(e.index,i.value)}),n)),I.value&&(null==(r=a.value.vnode.el)||r.dispatchEvent(new MouseEvent("mouseenter")))))},B=(t=!1)=>{var n,o;"click"===d.props.menuTrigger&&"horizontal"===d.props.mode||!d.props.collapse&&"vertical"===d.props.mode||(null==g||g(),p.mouseInChild.value=!1,({stop:g}=(0,ne.eM)((()=>!y.value&&d.closeMenu(e.index,i.value)),e.hideTimeout)),I.value&&t&&"ElSubMenu"===(null==(n=r.parent)?void 0:n.type.name)&&(null==(o=p.handleMouseleave)||o.call(p,!0)))};(0,s.YP)((()=>d.props.collapse),(e=>j(Boolean(e))));{const e=e=>{h.value[e.index]=e},t=e=>{delete h.value[e.index]};(0,s.JJ)(`subMenu:${r.uid}`,{addSubMenu:e,removeSubMenu:t,handleMouseleave:B,mouseInChild:y})}return n({opened:R}),(0,s.bv)((()=>{d.addSubMenu(M),p.addSubMenu(M)})),(0,s.Jd)((()=>{p.removeSubMenu(M),d.removeSubMenu(M)})),()=>{var n;const r=[null==(n=t.title)?void 0:n.call(t),(0,s.h)(C.gn,{class:u.e("icon-arrow")},{default:()=>(0,s.h)(k.value)})],i=ny(d.props),a=d.isMenuPopup?(0,s.h)(F.Q0,{ref:_,visible:R.value,effect:"light",pure:!0,offset:e.popperOffset,showArrow:!1,persistent:!0,popperClass:e.popperClass,placement:w.value,teleported:I.value,fallbackPlacements:E.value,transition:T.value,gpuAcceleration:!1},{content:()=>{var n;return(0,s.h)("div",{class:[c.m(N.value),e.popperClass],onMouseenter:e=>H(e,100),onMouseleave:()=>B(!0),onFocus:e=>H(e,100)},[(0,s.h)("ul",{class:[c.b(),c.m("popup"),c.m(`popup-${w.value}`)],style:i.value},[null==(n=t.default)?void 0:n.call(t)])])},default:()=>(0,s.h)("div",{class:u.e("title"),style:[o.value,L.value,{backgroundColor:O.value}],onClick:V},r)}):(0,s.h)(s.HY,{},[(0,s.h)("div",{class:u.e("title"),style:[o.value,L.value,{backgroundColor:O.value}],ref:b,onClick:V},r),(0,s.h)(Vo,{},{default:()=>{var e;return(0,s.wy)((0,s.h)("ul",{role:"menu",class:[c.b(),c.m("inline")],style:i.value},[null==(e=t.default)?void 0:e.call(t)]),[[S.F8,R.value]])}})]);return(0,s.h)("li",{class:[u.b(),u.is("active",P.value),u.is("opened",R.value),u.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:R.value,onMouseenter:H,onMouseleave:()=>B(!0),onFocus:H},[a])}}});const ay={beforeMount(e,t){e._handleResize=()=>{var n;e&&(null==(n=t.value)||n.call(t,e))},(0,io.k)(e,e._handleResize)},beforeUnmount(e){(0,io.S)(e,e._handleResize)}},sy=(0,d.o8)({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:(0,d.Cq)(Array),default:()=>(0,To.N)([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0}}),ly=e=>Array.isArray(e)&&e.every((e=>(0,c.HD)(e))),cy={close:(e,t)=>(0,c.HD)(e)&&ly(t),open:(e,t)=>(0,c.HD)(e)&&ly(t),select:(e,t,n,r)=>(0,c.HD)(e)&&ly(t)&&(0,c.Kn)(n)&&(void 0===r||r instanceof Promise)};var uy=(0,s.aZ)({name:"ElMenu",props:sy,emits:cy,setup(e,{emit:t,slots:n,expose:r}){const o=(0,s.FN)(),i=o.appContext.config.globalProperties.$router,a=(0,l.iH)(),c=(0,m.s)("menu"),u=(0,m.s)("sub-menu"),d=(0,l.iH)(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),p=(0,l.iH)(e.defaultActive),f=(0,l.iH)({}),h=(0,l.iH)({}),v=(0,s.Fl)((()=>"horizontal"===e.mode||"vertical"===e.mode&&e.collapse)),g=()=>{const t=p.value&&f.value[p.value];if(!t||"horizontal"===e.mode||e.collapse)return;const n=t.indexPath;n.forEach((e=>{const t=h.value[e];t&&y(e,t.indexPath)}))},y=(n,r)=>{d.value.includes(n)||(e.uniqueOpened&&(d.value=d.value.filter((e=>r.includes(e)))),d.value.push(n),t("open",n,r))},b=(e,n)=>{const r=d.value.indexOf(e);-1!==r&&d.value.splice(r,1),t("close",e,n)},_=({index:e,indexPath:t})=>{const n=d.value.includes(e);n?b(e,t):y(e,t)},w=n=>{("horizontal"===e.mode||e.collapse)&&(d.value=[]);const{index:r,indexPath:o}=n;if(void 0!==r&&void 0!==o)if(e.router&&i){const e=n.route||r,a=i.push(e).then((e=>(e||(p.value=r),e)));t("select",r,o,{index:r,indexPath:o,route:e},a)}else p.value=r,t("select",r,o,{index:r,indexPath:o})},k=t=>{const n=f.value,r=n[t]||p.value&&n[p.value]||n[e.defaultActive];r?(p.value=r.index,g()):p.value=t},S=()=>{(0,s.Y3)((()=>o.proxy.$forceUpdate()))};(0,s.YP)((()=>e.defaultActive),(e=>{f.value[e]||(p.value=""),k(e)})),(0,s.YP)(f.value,(()=>g())),(0,s.YP)((()=>e.collapse),(e=>{e&&(d.value=[])}));{const t=e=>{h.value[e.index]=e},n=e=>{delete h.value[e.index]},r=e=>{f.value[e.index]=e},i=e=>{delete f.value[e.index]};(0,s.JJ)("rootMenu",(0,l.qj)({props:e,openedMenus:d,items:f,subMenus:h,activeIndex:p,isMenuPopup:v,addMenuItem:r,removeMenuItem:i,addSubMenu:t,removeSubMenu:n,openMenu:y,closeMenu:b,handleMenuItemClick:w,handleSubMenuClick:_})),(0,s.JJ)(`subMenu:${o.uid}`,{addSubMenu:t,removeSubMenu:n,mouseInChild:(0,l.iH)(!1)})}(0,s.bv)((()=>{g(),"horizontal"===e.mode&&new Kg(o.vnode.el,c.namespace.value)}));{const e=e=>{const{indexPath:t}=h.value[e];t.forEach((e=>y(e,t)))};r({open:e,close:b,handleResize:S})}const x=e=>{const t=Array.isArray(e)?e:[e],n=[];return t.forEach((e=>{Array.isArray(e.children)?n.push(...x(e.children)):n.push(e)})),n},I=t=>"horizontal"===e.mode?(0,s.wy)(t,[[ay,S]]):t;return()=>{var t,r,o,i;let l=null!=(r=null==(t=n.default)?void 0:t.call(n))?r:[];const d=[];if("horizontal"===e.mode&&a.value){const t=Array.from(null!=(i=null==(o=a.value)?void 0:o.childNodes)?i:[]).filter((e=>"#text"!==e.nodeName||e.nodeValue)),n=x(l),r=64,c=Number.parseInt(getComputedStyle(a.value).paddingLeft,10),p=Number.parseInt(getComputedStyle(a.value).paddingRight,10),f=a.value.clientWidth-c-p;let h=0,m=0;t.forEach(((e,t)=>{h+=e.offsetWidth||0,h<=f-r&&(m=t+1)}));const v=n.slice(0,m),g=n.slice(m);(null==g?void 0:g.length)&&e.ellipsis&&(l=v,d.push((0,s.h)(iy,{index:"sub-menu-more",class:u.e("hide-arrow")},{title:()=>(0,s.h)(C.gn,{class:u.e("icon-more")},{default:()=>(0,s.h)(qg)}),default:()=>g})))}const p=ny(e),f=t=>e.ellipsis?I(t):t,h=f((0,s.h)("ul",{key:String(e.collapse),role:"menubar",ref:a,style:p.value,class:{[c.b()]:!0,[c.m("horizontal")]:"horizontal"===e.mode,[c.m("collapse")]:e.collapse}},[...l,...d]));return e.collapseTransition&&"vertical"===e.mode?(0,s.h)(Xg,(()=>h)):h}}});const dy=(0,d.o8)({index:{type:(0,d.Cq)([String,null]),default:null},route:{type:(0,d.Cq)([String,Object])},disabled:Boolean}),py={click:e=>(0,c.HD)(e.index)&&Array.isArray(e.indexPath)},fy={LIGHT:"light",DARK:"dark"},hy=((0,d.o8)({autoClose:{type:Number,default:0},cutoff:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}}),"ElMenuItem"),my=(0,s.aZ)({name:hy,components:{ElTooltip:F.Q0},props:dy,emits:py,setup(e,{emit:t}){const n=(0,s.FN)(),r=(0,s.f3)("rootMenu"),o=(0,m.s)("menu"),i=(0,m.s)("menu-item");r||(0,v._)(hy,"can not inject root menu");const{parentMenu:a,paddingStyle:c,indexPath:u}=Qg(n,(0,l.Vh)(e,"index")),d=(0,s.f3)(`subMenu:${a.value.uid}`);d||(0,v._)(hy,"can not inject sub menu");const p=(0,s.Fl)((()=>e.index===r.activeIndex)),f=(0,l.qj)({index:e.index,indexPath:u,active:p}),h=()=>{e.disabled||(r.handleMenuItemClick({index:e.index,indexPath:u.value,route:e.route}),t("click",f))};return(0,s.bv)((()=>{d.addSubMenu(f),r.addMenuItem(f)})),(0,s.Jd)((()=>{d.removeSubMenu(f),r.removeMenuItem(f)})),{Effect:fy,parentMenu:a,rootMenu:r,paddingStyle:c,active:p,nsMenu:o,nsMenuItem:i,handleClick:h}}});function vy(e,t,n,r,o,i){const a=(0,s.up)("el-tooltip");return(0,s.wg)(),(0,s.iD)("li",{class:(0,c.C_)([e.nsMenuItem.b(),e.nsMenuItem.is("active",e.active),e.nsMenuItem.is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",style:(0,c.j5)(e.paddingStyle),onClick:t[0]||(t[0]=(...t)=>e.handleClick&&e.handleClick(...t))},["ElMenu"===e.parentMenu.type.name&&e.rootMenu.props.collapse&&e.$slots.title?((0,s.wg)(),(0,s.j4)(a,{key:0,effect:e.Effect.DARK,placement:"right","fallback-placements":["left"],persistent:""},{content:(0,s.w5)((()=>[(0,s.WI)(e.$slots,"title")])),default:(0,s.w5)((()=>[(0,s._)("div",{class:(0,c.C_)(e.nsMenu.be("tooltip","trigger"))},[(0,s.WI)(e.$slots,"default")],2)])),_:3},8,["effect"])):((0,s.wg)(),(0,s.iD)(s.HY,{key:1},[(0,s.WI)(e.$slots,"default"),(0,s.WI)(e.$slots,"title")],64))],6)}var gy=(0,h.Z)(my,[["render",vy],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item.vue"]]);const yy={title:String},by="ElMenuItemGroup",_y=(0,s.aZ)({name:by,props:yy,setup(){const e=(0,s.FN)(),t=(0,s.f3)("rootMenu");t||(0,v._)(by,"can not inject root menu");const n=(0,m.s)("menu-item-group"),r=(0,s.Fl)((()=>{if(t.props.collapse)return 20;let n=20,r=e.parent;while(r&&"ElMenu"!==r.type.name)"ElSubMenu"===r.type.name&&(n+=20),r=r.parent;return n}));return{levelPadding:r,ns:n}}});function wy(e,t,n,r,o,i){return(0,s.wg)(),(0,s.iD)("li",{class:(0,c.C_)(e.ns.b())},[(0,s._)("div",{class:(0,c.C_)(e.ns.e("title")),style:(0,c.j5)({paddingLeft:`${e.levelPadding}px`})},[e.$slots.title?(0,s.WI)(e.$slots,"title",{key:1}):((0,s.wg)(),(0,s.iD)(s.HY,{key:0},[(0,s.Uk)((0,c.zw)(e.title),1)],2112))],6),(0,s._)("ul",null,[(0,s.WI)(e.$slots,"default")])],2)}var ky=(0,h.Z)(_y,[["render",wy],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item-group.vue"]]);const Sy=(0,w.nz)(uy,{MenuItem:gy,MenuItemGroup:ky,SubMenu:iy}),Cy=(0,w.dp)(gy),xy=(0,w.dp)(ky),Iy=((0,w.dp)(iy),(0,s.aZ)({name:"Back"})),Ty={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Ey=(0,s._)("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64z"},null,-1),Ry=(0,s._)("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312L237.248 512z"},null,-1),Py=[Ey,Ry];function Oy(e,t,n,r,o,i){return(0,s.wg)(),(0,s.iD)("svg",Ty,Py)}var Ay=(0,ce.Z)(Iy,[["render",Oy]]);const Dy=(0,d.o8)({icon:{type:I.AA,default:()=>Ay},title:String,content:{type:String,default:""}}),Ny={back:()=>!0},My={name:"ElPageHeader"},Ly=(0,s.aZ)({...My,props:Dy,emits:Ny,setup(e,{emit:t}){const{t:n}=(0,Ye.bU)(),r=(0,m.s)("page-header");function o(){t("back")}return(e,t)=>((0,s.wg)(),(0,s.iD)("div",{class:(0,c.C_)((0,l.SU)(r).b())},[(0,s._)("div",{class:(0,c.C_)((0,l.SU)(r).e("left")),onClick:o},[e.icon||e.$slots.icon?((0,s.wg)(),(0,s.iD)("div",{key:0,class:(0,c.C_)((0,l.SU)(r).e("icon"))},[(0,s.WI)(e.$slots,"icon",{},(()=>[e.icon?((0,s.wg)(),(0,s.j4)((0,l.SU)(C.gn),{key:0},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)(e.icon)))])),_:1})):(0,s.kq)("v-if",!0)]))],2)):(0,s.kq)("v-if",!0),(0,s._)("div",{class:(0,c.C_)((0,l.SU)(r).e("title"))},[(0,s.WI)(e.$slots,"title",{},(()=>[(0,s.Uk)((0,c.zw)(e.title||(0,l.SU)(n)("el.pageHeader.title")),1)]))],2)],2),(0,s._)("div",{class:(0,c.C_)((0,l.SU)(r).e("content"))},[(0,s.WI)(e.$slots,"content",{},(()=>[(0,s.Uk)((0,c.zw)(e.content),1)]))],2)],2))}});var Fy=(0,h.Z)(Ly,[["__file","/home/runner/work/element-plus/element-plus/packages/components/page-header/src/page-header.vue"]]);const Uy=(0,w.nz)(Fy),jy={disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String,default:""}},Vy=(0,s.aZ)({name:"ElPaginationPrev",components:{ElIcon:C.gn,ArrowLeft:wt},props:jy,emits:["click"],setup(e){const t=(0,s.Fl)((()=>e.disabled||e.currentPage<=1));return{internalDisabled:t}}}),Hy=["disabled","aria-disabled"],By={key:0};function $y(e,t,n,r,o,i){const a=(0,s.up)("arrow-left"),l=(0,s.up)("el-icon");return(0,s.wg)(),(0,s.iD)("button",{type:"button",class:"btn-prev",disabled:e.internalDisabled,"aria-disabled":e.internalDisabled,onClick:t[0]||(t[0]=t=>e.$emit("click",t))},[e.prevText?((0,s.wg)(),(0,s.iD)("span",By,(0,c.zw)(e.prevText),1)):((0,s.wg)(),(0,s.j4)(l,{key:1},{default:(0,s.w5)((()=>[(0,s.Wm)(a)])),_:1}))],8,Hy)}var zy=(0,h.Z)(Vy,[["render",$y],["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/prev.vue"]]);const Wy={disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String,default:""}},qy=(0,s.aZ)({name:"ElPaginationNext",components:{ElIcon:C.gn,ArrowRight:Tt},props:Wy,emits:["click"],setup(e){const t=(0,s.Fl)((()=>e.disabled||e.currentPage===e.pageCount||0===e.pageCount));return{internalDisabled:t}}}),Zy=["disabled","aria-disabled"],Yy={key:0};function Ky(e,t,n,r,o,i){const a=(0,s.up)("arrow-right"),l=(0,s.up)("el-icon");return(0,s.wg)(),(0,s.iD)("button",{type:"button",class:"btn-next",disabled:e.internalDisabled,"aria-disabled":e.internalDisabled,onClick:t[0]||(t[0]=t=>e.$emit("click",t))},[e.nextText?((0,s.wg)(),(0,s.iD)("span",Yy,(0,c.zw)(e.nextText),1)):((0,s.wg)(),(0,s.j4)(l,{key:1},{default:(0,s.w5)((()=>[(0,s.Wm)(a)])),_:1}))],8,Zy)}var Jy=(0,h.Z)(qy,[["render",Ky],["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/next.vue"]]),Gy=n(438);const Xy=Symbol("elPaginationKey"),Qy=()=>(0,s.f3)(Xy,{}),eb=(0,d.o8)({pageSize:{type:Number,required:!0},pageSizes:{type:(0,d.Cq)(Array),default:()=>(0,To.N)([10,20,30,40,50,100])},popperClass:{type:String,default:""},disabled:Boolean,size:{type:String,default:"default"}}),tb=(0,s.aZ)({name:"ElPaginationSizes",components:{ElSelect:Gy.km,ElOption:Gy.BT},props:eb,emits:["page-size-change"],setup(e,{emit:t}){const{t:n}=(0,Ye.bU)(),r=(0,m.s)("pagination"),o=Qy(),i=(0,l.iH)(e.pageSize);(0,s.YP)((()=>e.pageSizes),((n,r)=>{if(!(0,zt.Z)(n,r)&&Array.isArray(n)){const r=n.includes(e.pageSize)?e.pageSize:e.pageSizes[0];t("page-size-change",r)}})),(0,s.YP)((()=>e.pageSize),(e=>{i.value=e}));const a=(0,s.Fl)((()=>e.pageSizes));function c(e){var t;e!==i.value&&(i.value=e,null==(t=o.handleSizeChange)||t.call(o,Number(e)))}return{ns:r,innerPagesizes:a,innerPageSize:i,t:n,handleChange:c}}});function nb(e,t,n,r,o,i){const a=(0,s.up)("el-option"),l=(0,s.up)("el-select");return(0,s.wg)(),(0,s.iD)("span",{class:(0,c.C_)(e.ns.e("sizes"))},[(0,s.Wm)(l,{"model-value":e.innerPageSize,disabled:e.disabled,"popper-class":e.popperClass,size:e.size,onChange:e.handleChange},{default:(0,s.w5)((()=>[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e.innerPagesizes,(t=>((0,s.wg)(),(0,s.j4)(a,{key:t,value:t,label:t+e.t("el.pagination.pagesize")},null,8,["value","label"])))),128))])),_:1},8,["model-value","disabled","popper-class","size","onChange"])],2)}var rb=(0,h.Z)(tb,[["render",nb],["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/sizes.vue"]]);const ob=(0,s.aZ)({name:"ElPaginationJumper",components:{ElInput:M.EZ},setup(){const{t:e}=(0,Ye.bU)(),t=(0,m.s)("pagination"),{pageCount:n,disabled:r,currentPage:o,changeEvent:i}=Qy(),a=(0,l.iH)(),c=(0,s.Fl)((()=>{var e;return null!=(e=a.value)?e:null==o?void 0:o.value}));function u(e){a.value=+e}function d(e){e=Math.trunc(+e),null==i||i(+e),a.value=void 0}return{ns:t,pageCount:n,disabled:r,innerValue:c,t:e,handleInput:u,handleChange:d}}}),ib=["disabled"];function ab(e,t,n,r,o,i){const a=(0,s.up)("el-input");return(0,s.wg)(),(0,s.iD)("span",{class:(0,c.C_)(e.ns.e("jump")),disabled:e.disabled},[(0,s.Uk)((0,c.zw)(e.t("el.pagination.goto"))+" ",1),(0,s.Wm)(a,{size:"small",class:(0,c.C_)([e.ns.e("editor"),e.ns.is("in-pagination")]),min:1,max:e.pageCount,disabled:e.disabled,"model-value":e.innerValue,type:"number","onUpdate:modelValue":e.handleInput,onChange:e.handleChange},null,8,["class","max","disabled","model-value","onUpdate:modelValue","onChange"]),(0,s.Uk)(" "+(0,c.zw)(e.t("el.pagination.pageClassifier")),1)],10,ib)}var sb=(0,h.Z)(ob,[["render",ab],["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/jumper.vue"]]);const lb={total:{type:Number,default:1e3}},cb=(0,s.aZ)({name:"ElPaginationTotal",props:lb,setup(){const{t:e}=(0,Ye.bU)(),t=(0,m.s)("pagination"),{disabled:n}=Qy();return{t:e,ns:t,disabled:n}}}),ub=["disabled"];function db(e,t,n,r,o,i){return(0,s.wg)(),(0,s.iD)("span",{class:(0,c.C_)(e.ns.e("total")),disabled:e.disabled},(0,c.zw)(e.t("el.pagination.total",{total:e.total})),11,ub)}var pb=(0,h.Z)(cb,[["render",db],["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/total.vue"]]);const fb=(0,s.aZ)({name:"MoreFilled"}),hb={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},mb=(0,s._)("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224z"},null,-1),vb=[mb];function gb(e,t,n,r,o,i){return(0,s.wg)(),(0,s.iD)("svg",hb,vb)}var yb=(0,ce.Z)(fb,[["render",gb]]);const bb={currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean},_b=(0,s.aZ)({name:"ElPaginationPager",components:{DArrowLeft:Ca,DArrowRight:Pa,MoreFilled:yb},props:bb,emits:["change"],setup(e,{emit:t}){const n=(0,m.s)("pager"),r=(0,m.s)("icon"),o=(0,l.iH)(!1),i=(0,l.iH)(!1),a=(0,l.iH)(!1),c=(0,l.iH)(!1),u=(0,s.Fl)((()=>{const t=e.pagerCount,n=(t-1)/2,r=Number(e.currentPage),o=Number(e.pageCount);let i=!1,a=!1;o>t&&(r>t-n&&(i=!0),r<o-n&&(a=!0));const s=[];if(i&&!a){const e=o-(t-2);for(let t=e;t<o;t++)s.push(t)}else if(!i&&a)for(let e=2;e<t;e++)s.push(e);else if(i&&a){const e=Math.floor(t/2)-1;for(let t=r-e;t<=r+e;t++)s.push(t)}else for(let e=2;e<o;e++)s.push(e);return s}));function d(t){e.disabled||("left"===t?a.value=!0:c.value=!0)}function p(n){const r=n.target;if("li"===r.tagName.toLowerCase()&&Array.from(r.classList).includes("number")){const n=Number(r.textContent);n!==e.currentPage&&t("change",n)}}function f(n){const r=n.target;if("ul"===r.tagName.toLowerCase()||e.disabled)return;let o=Number(r.textContent);const i=e.pageCount,a=e.currentPage,s=e.pagerCount-2;r.className.includes("more")&&(r.className.includes("quickprev")?o=a-s:r.className.includes("quicknext")&&(o=a+s)),Number.isNaN(+o)||(o<1&&(o=1),o>i&&(o=i)),o!==a&&t("change",o)}return(0,s.m0)((()=>{const t=(e.pagerCount-1)/2;o.value=!1,i.value=!1,e.pageCount>e.pagerCount&&(e.currentPage>e.pagerCount-t&&(o.value=!0),e.currentPage<e.pageCount-t&&(i.value=!0))})),{showPrevMore:o,showNextMore:i,quickPrevHover:a,quickNextHover:c,pagers:u,nsPager:n,nsIcon:r,onMouseenter:d,onPagerClick:f,onEnter:p}}}),wb=["aria-current"],kb=["aria-current"],Sb=["aria-current"];function Cb(e,t,n,r,o,i){const a=(0,s.up)("d-arrow-left"),l=(0,s.up)("more-filled"),u=(0,s.up)("d-arrow-right");return(0,s.wg)(),(0,s.iD)("ul",{class:(0,c.C_)(e.nsPager.b()),onClick:t[4]||(t[4]=(...t)=>e.onPagerClick&&e.onPagerClick(...t)),onKeyup:t[5]||(t[5]=(0,S.D2)(((...t)=>e.onEnter&&e.onEnter(...t)),["enter"]))},[e.pageCount>0?((0,s.wg)(),(0,s.iD)("li",{key:0,class:(0,c.C_)([[e.nsPager.is("active",1===e.currentPage),e.nsPager.is("disabled",e.disabled)],"number"]),"aria-current":1===e.currentPage,tabindex:"0"}," 1 ",10,wb)):(0,s.kq)("v-if",!0),e.showPrevMore?((0,s.wg)(),(0,s.iD)("li",{key:1,class:(0,c.C_)(["more","btn-quickprev",e.nsIcon.b(),e.nsPager.is("disabled",e.disabled)]),onMouseenter:t[0]||(t[0]=t=>e.onMouseenter("left")),onMouseleave:t[1]||(t[1]=t=>e.quickPrevHover=!1)},[e.quickPrevHover?((0,s.wg)(),(0,s.j4)(a,{key:0})):((0,s.wg)(),(0,s.j4)(l,{key:1}))],34)):(0,s.kq)("v-if",!0),((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e.pagers,(t=>((0,s.wg)(),(0,s.iD)("li",{key:t,class:(0,c.C_)([[e.nsPager.is("active",e.currentPage===t),e.nsPager.is("disabled",e.disabled)],"number"]),"aria-current":e.currentPage===t,tabindex:"0"},(0,c.zw)(t),11,kb)))),128)),e.showNextMore?((0,s.wg)(),(0,s.iD)("li",{key:2,class:(0,c.C_)(["more","btn-quicknext",e.nsIcon.b(),e.nsPager.is("disabled",e.disabled)]),onMouseenter:t[2]||(t[2]=t=>e.onMouseenter("right")),onMouseleave:t[3]||(t[3]=t=>e.quickNextHover=!1)},[e.quickNextHover?((0,s.wg)(),(0,s.j4)(u,{key:0})):((0,s.wg)(),(0,s.j4)(l,{key:1}))],34)):(0,s.kq)("v-if",!0),e.pageCount>1?((0,s.wg)(),(0,s.iD)("li",{key:3,class:(0,c.C_)([[e.nsPager.is("active",e.currentPage===e.pageCount),e.nsPager.is("disabled",e.disabled)],"number"]),"aria-current":e.currentPage===e.pageCount,tabindex:"0"},(0,c.zw)(e.pageCount),11,Sb)):(0,s.kq)("v-if",!0)],34)}var xb=(0,h.Z)(_b,[["render",Cb],["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/pager.vue"]]);const Ib=e=>"number"!==typeof e,Tb=(0,d.o8)({total:Number,pageSize:Number,defaultPageSize:Number,currentPage:Number,defaultCurrentPage:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>"number"===typeof e&&Math.trunc(e)===e&&e>4&&e<22&&e%2===1,default:7},layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:(0,d.Cq)(Array),default:()=>(0,To.N)([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},nextText:{type:String,default:""},small:Boolean,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean}),Eb={"update:current-page":e=>"number"===typeof e,"update:page-size":e=>"number"===typeof e,"size-change":e=>"number"===typeof e,"current-change":e=>"number"===typeof e,"prev-click":e=>"number"===typeof e,"next-click":e=>"number"===typeof e},Rb="ElPagination";var Pb=(0,s.aZ)({name:Rb,props:Tb,emits:Eb,setup(e,{emit:t,slots:n}){const{t:r}=(0,Ye.bU)(),o=(0,m.s)("pagination"),i=(0,s.FN)().vnode.props||{},a="onUpdate:currentPage"in i||"onUpdate:current-page"in i||"onCurrentChange"in i,c="onUpdate:pageSize"in i||"onUpdate:page-size"in i||"onSizeChange"in i,u=(0,s.Fl)((()=>{if(Ib(e.total)&&Ib(e.pageCount))return!1;if(!Ib(e.currentPage)&&!a)return!1;if(e.layout.includes("sizes"))if(Ib(e.pageCount)){if(!Ib(e.total)&&!Ib(e.pageSize)&&!c)return!1}else if(!c)return!1;return!0})),d=(0,l.iH)(Ib(e.defaultPageSize)?10:e.defaultPageSize),p=(0,l.iH)(Ib(e.defaultCurrentPage)?1:e.defaultCurrentPage),f=(0,s.Fl)({get(){return Ib(e.pageSize)?d.value:e.pageSize},set(n){Ib(e.pageSize)&&(d.value=n),c&&(t("update:page-size",n),t("size-change",n))}}),h=(0,s.Fl)((()=>{let t=0;return Ib(e.pageCount)?Ib(e.total)||(t=Math.max(1,Math.ceil(e.total/f.value))):t=e.pageCount,t})),g=(0,s.Fl)({get(){return Ib(e.currentPage)?p.value:e.currentPage},set(n){let r=n;n<1?r=1:n>h.value&&(r=h.value),Ib(e.currentPage)&&(p.value=r),a&&(t("update:current-page",r),t("current-change",r))}});function y(e){g.value=e}function b(e){f.value=e;const t=h.value;g.value>t&&(g.value=t)}function _(){e.disabled||(g.value-=1,t("prev-click",g.value))}function w(){e.disabled||(g.value+=1,t("next-click",g.value))}function k(e,t){e&&(e.props||(e.props={}),e.props.class=[e.props.class,t].join(" "))}return(0,s.YP)(h,(e=>{g.value>e&&(g.value=e)})),(0,s.JJ)(Xy,{pageCount:h,disabled:(0,s.Fl)((()=>e.disabled)),currentPage:g,changeEvent:y,handleSizeChange:b}),()=>{var t,i;if(!u.value)return(0,v.N)(Rb,r("el.pagination.deprecationWarning")),null;if(!e.layout)return null;if(e.hideOnSinglePage&&h.value<=1)return null;const a=[],l=[],c=(0,s.h)("div",{class:o.e("rightwrapper")},l),d={prev:(0,s.h)(zy,{disabled:e.disabled,currentPage:g.value,prevText:e.prevText,onClick:_}),jumper:(0,s.h)(sb),pager:(0,s.h)(xb,{currentPage:g.value,pageCount:h.value,pagerCount:e.pagerCount,onChange:y,disabled:e.disabled}),next:(0,s.h)(Jy,{disabled:e.disabled,currentPage:g.value,pageCount:h.value,nextText:e.nextText,onClick:w}),sizes:(0,s.h)(rb,{pageSize:f.value,pageSizes:e.pageSizes,popperClass:e.popperClass,disabled:e.disabled,size:e.small?"small":"default"}),slot:null!=(i=null==(t=null==n?void 0:n.default)?void 0:t.call(n))?i:null,total:(0,s.h)(pb,{total:Ib(e.total)?0:e.total})},p=e.layout.split(",").map((e=>e.trim()));let m=!1;return p.forEach((e=>{"->"!==e?m?l.push(d[e]):a.push(d[e]):m=!0})),k(a[0],o.is("first")),k(a[a.length-1],o.is("last")),m&&l.length>0&&(k(l[0],o.is("first")),k(l[l.length-1],o.is("last")),a.push(c)),(0,s.h)("div",{role:"pagination","aria-label":"pagination",class:[o.b(),o.is("background",e.background),{[o.m("small")]:e.small}]},a)}}});const Ob=(0,w.nz)(Pb),Ab=(0,s.aZ)({name:"QuestionFilled"}),Db={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Nb=(0,s._)("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 0 0-38.72 14.784 49.408 49.408 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.968 51.968 0 0 0-15.488-38.016 55.936 55.936 0 0 0-39.424-14.784z"},null,-1),Mb=[Nb];function Lb(e,t,n,r,o,i){return(0,s.wg)(),(0,s.iD)("svg",Db,Mb)}var Fb=(0,ce.Z)(Ab,[["render",Lb]]),Ub=n(8953);const jb=(0,d.o8)({title:{type:String},confirmButtonText:{type:String},cancelButtonText:{type:String},confirmButtonType:{type:String,values:Ub.UH,default:"primary"},cancelButtonType:{type:String,values:Ub.UH,default:"text"},icon:{type:I.AA,default:Fb},iconColor:{type:String,default:"#f90"},hideIcon:{type:Boolean,default:!1},hideAfter:{type:Number,default:200},onConfirm:{type:(0,d.Cq)(Function)},onCancel:{type:(0,d.Cq)(Function)},teleported:j.sp.teleported,persistent:j.sp.persistent}),Vb="ElPopconfirm",Hb=(0,s.aZ)({name:Vb,components:{ElButton:Fe.mi,ElTooltip:F.Q0,ElIcon:C.gn},props:jb,setup(e){const{compatTeleported:t}=(0,$.Q)(Vb,"appendToBody"),{t:n}=(0,Ye.bU)(),r=(0,m.s)("popconfirm"),o=(0,l.iH)(),i=()=>{var e,t;null==(t=null==(e=(0,l.SU)(o))?void 0:e.onClose)||t.call(e)},a=()=>{i()},c=t=>{var n;null==(n=e.onConfirm)||n.call(e,t),a()},u=t=>{var n;null==(n=e.onCancel)||n.call(e,t),a()},d=(0,s.Fl)((()=>e.confirmButtonText||n("el.popconfirm.confirmButtonText"))),p=(0,s.Fl)((()=>e.cancelButtonText||n("el.popconfirm.cancelButtonText")));return{finalConfirmButtonText:d,finalCancelButtonText:p,tooltipRef:o,ns:r,compatTeleported:t,confirm:c,cancel:u}}});function Bb(e,t,n,r,o,i){const a=(0,s.up)("el-icon"),l=(0,s.up)("el-button"),u=(0,s.up)("el-tooltip");return(0,s.wg)(),(0,s.j4)(u,(0,s.dG)({ref:"tooltipRef"},e.$attrs,{trigger:"click",effect:"light","popper-class":`${e.ns.namespace.value}-popover`,teleported:e.compatTeleported,"fallback-placements":["bottom","top","right","left"],"hide-after":e.hideAfter,persistent:e.persistent}),{content:(0,s.w5)((()=>[(0,s._)("div",{class:(0,c.C_)(e.ns.b())},[(0,s._)("div",{class:(0,c.C_)(e.ns.e("main"))},[!e.hideIcon&&e.icon?((0,s.wg)(),(0,s.j4)(a,{key:0,class:(0,c.C_)(e.ns.e("icon")),style:(0,c.j5)({color:e.iconColor})},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)(e.icon)))])),_:1},8,["class","style"])):(0,s.kq)("v-if",!0),(0,s.Uk)(" "+(0,c.zw)(e.title),1)],2),(0,s._)("div",{class:(0,c.C_)(e.ns.e("action"))},[(0,s.Wm)(l,{size:"small",type:e.cancelButtonType,onClick:e.cancel},{default:(0,s.w5)((()=>[(0,s.Uk)((0,c.zw)(e.finalCancelButtonText),1)])),_:1},8,["type","onClick"]),(0,s.Wm)(l,{size:"small",type:e.confirmButtonType,onClick:e.confirm},{default:(0,s.w5)((()=>[(0,s.Uk)((0,c.zw)(e.finalConfirmButtonText),1)])),_:1},8,["type","onClick"])],2)],2)])),default:(0,s.w5)((()=>[e.$slots.reference?(0,s.WI)(e.$slots,"reference",{key:0}):(0,s.kq)("v-if",!0)])),_:3},16,["popper-class","teleported","hide-after","persistent"])}var $b=(0,h.Z)(Hb,[["render",Bb],["__file","/home/runner/work/element-plus/element-plus/packages/components/popconfirm/src/popconfirm.vue"]]);const zb=(0,w.nz)($b),Wb=(0,d.o8)({trigger:j.ks.trigger,placement:hu.placement,disabled:j.ks.disabled,visible:j.sp.visible,transition:j.sp.transition,popperOptions:hu.popperOptions,tabindex:hu.tabindex,appendToBody:{type:Boolean,default:void 0},content:j.sp.content,popperStyle:j.sp.popperStyle,popperClass:j.sp.popperClass,enterable:{...j.sp.enterable,default:!0},effect:{...j.sp.effect,default:"light"},teleported:j.sp.teleported,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0}}),qb=["update:visible","before-enter","before-leave","after-enter","after-leave"],Zb="ElPopover",Yb=(0,s.aZ)({name:Zb,components:{ElTooltip:F.Q0},props:Wb,emits:qb,setup(e,{emit:t}){const n=(0,m.s)("popover"),r=(0,l.iH)(null),o=(0,s.Fl)((()=>{var e;return null==(e=(0,l.SU)(r))?void 0:e.popperRef})),i=(0,s.Fl)((()=>(0,c.HD)(e.width)?e.width:`${e.width}px`)),a=(0,s.Fl)((()=>[{width:i.value},e.popperStyle])),u=(0,s.Fl)((()=>[n.b(),e.popperClass,{[n.m("plain")]:!!e.content}])),d=(0,s.Fl)((()=>"el-fade-in-linear"===e.transition)),{compatTeleported:p}=(0,$.Q)(Zb,"appendToBody"),f=()=>{var e;null==(e=r.value)||e.hide()},h=()=>{t("before-enter")},v=()=>{t("before-leave")},g=()=>{t("after-enter")},y=()=>{t("update:visible",!1),t("after-leave")};return{compatTeleported:p,ns:n,kls:u,gpuAcceleration:d,style:a,tooltipRef:r,popperRef:o,hide:f,beforeEnter:h,beforeLeave:v,afterEnter:g,afterLeave:y}}});function Kb(e,t,n,r,o,i){const a=(0,s.up)("el-tooltip");return(0,s.wg)(),(0,s.j4)(a,(0,s.dG)({ref:"tooltipRef"},e.$attrs,{trigger:e.trigger,placement:e.placement,disabled:e.disabled,visible:e.visible,transition:e.transition,"popper-options":e.popperOptions,tabindex:e.tabindex,"append-to-body":e.appendToBody,content:e.content,offset:e.offset,"show-after":e.showAfter,"hide-after":e.hideAfter,"auto-close":e.autoClose,"show-arrow":e.showArrow,"aria-label":e.title,effect:e.effect,enterable:e.enterable,"popper-class":e.kls,"popper-style":e.style,teleported:e.compatTeleported,persistent:e.persistent,"gpu-acceleration":e.gpuAcceleration,onBeforeShow:e.beforeEnter,onBeforeHide:e.beforeLeave,onShow:e.afterEnter,onHide:e.afterLeave}),{content:(0,s.w5)((()=>[e.title?((0,s.wg)(),(0,s.iD)("div",{key:0,class:(0,c.C_)(e.ns.e("title")),role:"title"},(0,c.zw)(e.title),3)):(0,s.kq)("v-if",!0),(0,s.WI)(e.$slots,"default",{},(()=>[(0,s.Uk)((0,c.zw)(e.content),1)]))])),default:(0,s.w5)((()=>[e.$slots.reference?(0,s.WI)(e.$slots,"reference",{key:0}):(0,s.kq)("v-if",!0)])),_:3},16,["trigger","placement","disabled","visible","transition","popper-options","tabindex","append-to-body","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","persistent","gpu-acceleration","onBeforeShow","onBeforeHide","onShow","onHide"])}var Jb=(0,h.Z)(Yb,[["render",Kb],["__file","/home/runner/work/element-plus/element-plus/packages/components/popover/src/index.vue"]]);const Gb=(e,t)=>{const n=t.arg||t.value,r=null==n?void 0:n.popperRef;r&&(r.triggerRef=e)};var Xb={mounted(e,t){Gb(e,t)},updated(e,t){Gb(e,t)}};const Qb="popover";Jb.install=e=>{e.component(Jb.name,Jb)},Xb.install=e=>{e.directive(Qb,Xb)};const e_=Xb;Jb.directive=e_;const t_=Jb,n_=t_,r_=e_;var o_=n(5017),i_=n(8904),a_=n(1203);const s_=(0,d.o8)({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:e=>e>=0&&e<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:{type:Boolean,default:!1},duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:(0,d.Cq)(String),default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:(0,d.Cq)([String,Array,Function]),default:""},format:{type:(0,d.Cq)(Function),default:e=>`${e}%`}}),l_=(0,s.aZ)({name:"ElProgress",components:{ElIcon:C.gn,CircleCheck:i_.Z,CircleClose:Kr.Z,Check:ur,Close:Go.Z,WarningFilled:a_.Z},props:s_,setup(e){const t=(0,m.s)("progress"),n=(0,s.Fl)((()=>({width:`${e.percentage}%`,animationDuration:`${e.duration}s`,backgroundColor:g(e.percentage)}))),r=(0,s.Fl)((()=>(e.strokeWidth/e.width*100).toFixed(1))),o=(0,s.Fl)((()=>"circle"===e.type||"dashboard"===e.type?Number.parseInt(""+(50-Number.parseFloat(r.value)/2),10):0)),i=(0,s.Fl)((()=>{const t=o.value,n="dashboard"===e.type;return`\n M 50 50\n m 0 ${n?"":"-"}${t}\n a ${t} ${t} 0 1 1 0 ${n?"-":""}${2*t}\n a ${t} ${t} 0 1 1 0 ${n?"":"-"}${2*t}\n `})),a=(0,s.Fl)((()=>2*Math.PI*o.value)),l=(0,s.Fl)((()=>"dashboard"===e.type?.75:1)),c=(0,s.Fl)((()=>{const e=-1*a.value*(1-l.value)/2;return`${e}px`})),u=(0,s.Fl)((()=>({strokeDasharray:`${a.value*l.value}px, ${a.value}px`,strokeDashoffset:c.value}))),d=(0,s.Fl)((()=>({strokeDasharray:`${a.value*l.value*(e.percentage/100)}px, ${a.value}px`,strokeDashoffset:c.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease"}))),p=(0,s.Fl)((()=>{let t;if(e.color)t=g(e.percentage);else switch(e.status){case"success":t="#13ce66";break;case"exception":t="#ff4949";break;case"warning":t="#e6a23c";break;default:t="#20a0ff"}return t})),f=(0,s.Fl)((()=>"warning"===e.status?a_.Z:"line"===e.type?"success"===e.status?i_.Z:Kr.Z:"success"===e.status?ur:Go.Z)),h=(0,s.Fl)((()=>"line"===e.type?12+.4*e.strokeWidth:.111111*e.width+2)),v=(0,s.Fl)((()=>e.format(e.percentage))),g=t=>{var n;const{color:r}=e;if("function"===typeof r)return r(t);if("string"===typeof r)return r;{const e=100/r.length,o=r.map(((t,n)=>"string"===typeof t?{color:t,percentage:(n+1)*e}:t)),i=o.sort(((e,t)=>e.percentage-t.percentage));for(const n of i)if(n.percentage>t)return n.color;return null==(n=i[i.length-1])?void 0:n.color}},y=(0,s.Fl)((()=>({percentage:e.percentage})));return{ns:t,barStyle:n,relativeStrokeWidth:r,radius:o,trackPath:i,perimeter:a,rate:l,strokeDashoffset:c,trailPathStyle:u,circlePathStyle:d,stroke:p,statusIcon:f,progressTextSize:h,content:v,slotData:y}}}),c_=["aria-valuenow"],u_={viewBox:"0 0 100 100"},d_=["d","stroke-width"],p_=["d","stroke","stroke-linecap","stroke-width"],f_={key:0};function h_(e,t,n,r,o,i){const a=(0,s.up)("el-icon");return(0,s.wg)(),(0,s.iD)("div",{class:(0,c.C_)([e.ns.b(),e.ns.m(e.type),e.ns.is(e.status),{[e.ns.m("without-text")]:!e.showText,[e.ns.m("text-inside")]:e.textInside}]),role:"progressbar","aria-valuenow":e.percentage,"aria-valuemin":"0","aria-valuemax":"100"},["line"===e.type?((0,s.wg)(),(0,s.iD)("div",{key:0,class:(0,c.C_)(e.ns.b("bar"))},[(0,s._)("div",{class:(0,c.C_)(e.ns.be("bar","outer")),style:(0,c.j5)({height:`${e.strokeWidth}px`})},[(0,s._)("div",{class:(0,c.C_)([e.ns.be("bar","inner"),{[e.ns.bem("bar","inner","indeterminate")]:e.indeterminate}]),style:(0,c.j5)(e.barStyle)},[(e.showText||e.$slots.default)&&e.textInside?((0,s.wg)(),(0,s.iD)("div",{key:0,class:(0,c.C_)(e.ns.be("bar","innerText"))},[(0,s.WI)(e.$slots,"default",(0,c.vs)((0,s.F4)(e.slotData)),(()=>[(0,s._)("span",null,(0,c.zw)(e.content),1)]))],2)):(0,s.kq)("v-if",!0)],6)],6)],2)):((0,s.wg)(),(0,s.iD)("div",{key:1,class:(0,c.C_)(e.ns.b("circle")),style:(0,c.j5)({height:`${e.width}px`,width:`${e.width}px`})},[((0,s.wg)(),(0,s.iD)("svg",u_,[(0,s._)("path",{class:(0,c.C_)(e.ns.be("circle","track")),d:e.trackPath,stroke:"var(--el-fill-color-light, #e5e9f2)","stroke-width":e.relativeStrokeWidth,fill:"none",style:(0,c.j5)(e.trailPathStyle)},null,14,d_),(0,s._)("path",{class:(0,c.C_)(e.ns.be("circle","path")),d:e.trackPath,stroke:e.stroke,fill:"none","stroke-linecap":e.strokeLinecap,"stroke-width":e.percentage?e.relativeStrokeWidth:0,style:(0,c.j5)(e.circlePathStyle)},null,14,p_)]))],6)),!e.showText&&!e.$slots.default||e.textInside?(0,s.kq)("v-if",!0):((0,s.wg)(),(0,s.iD)("div",{key:2,class:(0,c.C_)(e.ns.e("text")),style:(0,c.j5)({fontSize:`${e.progressTextSize}px`})},[(0,s.WI)(e.$slots,"default",(0,c.vs)((0,s.F4)(e.slotData)),(()=>[e.status?((0,s.wg)(),(0,s.j4)(a,{key:1},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)(e.statusIcon)))])),_:1})):((0,s.wg)(),(0,s.iD)("span",f_,(0,c.zw)(e.content),1))]))],6))],10,c_)}var m_=(0,h.Z)(l_,[["render",h_],["__file","/home/runner/work/element-plus/element-plus/packages/components/progress/src/progress.vue"]]);const v_=(0,w.nz)(m_),g_=(0,s.aZ)({name:"StarFilled"}),y_={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},b_=(0,s._)("path",{fill:"currentColor",d:"M283.84 867.84 512 747.776l228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72z"},null,-1),__=[b_];function w_(e,t,n,r,o,i){return(0,s.wg)(),(0,s.iD)("svg",y_,__)}var k_=(0,ce.Z)(g_,[["render",w_]]);const S_=(0,s.aZ)({name:"Star"}),C_={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},x_=(0,s._)("path",{fill:"currentColor",d:"m512 747.84 228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72L512 747.84zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"},null,-1),I_=[x_];function T_(e,t,n,r,o,i){return(0,s.wg)(),(0,s.iD)("svg",C_,I_)}var E_=(0,ce.Z)(S_,[["render",T_]]);const R_=(0,d.o8)({modelValue:{type:Number,default:0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:(0,d.Cq)([Array,Object]),default:()=>(0,To.N)(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:(0,d.Cq)([Array,Object]),default:()=>[k_,k_,k_]},voidIcon:{type:I.AA,default:()=>E_},disabledVoidIcon:{type:I.AA,default:()=>k_},disabled:{type:Boolean,default:!1},allowHalf:{type:Boolean,default:!1},showText:{type:Boolean,default:!1},showScore:{type:Boolean,default:!1},textColor:{type:String,default:""},texts:{type:(0,d.Cq)(Array),default:()=>(0,To.N)(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:{type:String,validator:hn.P}}),P_={change:e=>"number"===typeof e,[V.f_]:e=>"number"===typeof e},O_=["aria-valuenow","aria-valuetext","aria-valuemax"],A_=["onMousemove","onClick"],D_={name:"ElRate"},N_=(0,s.aZ)({...D_,props:R_,emits:P_,setup(e,{expose:t,emit:n}){const r=e;function o(e,t){const n=e=>(0,c.Kn)(e),r=Object.keys(t).map((e=>+e)).filter((r=>{const o=t[r],i=!!n(o)&&o.excluded;return i?e<r:e<=r})).sort(((e,t)=>e-t)),o=t[r[0]];return n(o)&&o.value||o}const i=(0,s.f3)(rn.H,void 0),a=(0,on.tH)(),u=(0,m.s)("rate"),d=(0,l.iH)(r.modelValue),p=(0,l.iH)(-1),f=(0,l.iH)(!0),h=(0,s.Fl)((()=>[u.b(),u.m(a.value)])),v=(0,s.Fl)((()=>r.disabled||(null==i?void 0:i.disabled))),g=(0,s.Fl)((()=>({"--el-rate-void-color":r.voidColor,"--el-rate-disabled-void-color":r.disabledVoidColor,"--el-rate-fill-color":w.value}))),y=(0,s.Fl)((()=>{let e="";return r.showScore?e=r.scoreTemplate.replace(/\{\s*value\s*\}/,v.value?`${r.modelValue}`:`${d.value}`):r.showText&&(e=r.texts[Math.ceil(d.value)-1]),e})),b=(0,s.Fl)((()=>100*r.modelValue-100*Math.floor(r.modelValue))),_=(0,s.Fl)((()=>(0,c.kJ)(r.colors)?{[r.lowThreshold]:r.colors[0],[r.highThreshold]:{value:r.colors[1],excluded:!0},[r.max]:r.colors[2]}:r.colors)),w=(0,s.Fl)((()=>{const e=o(d.value,_.value);return(0,c.Kn)(e)?"":e})),k=(0,s.Fl)((()=>{let e="";return v.value?e=`${b.value}%`:r.allowHalf&&(e="50%"),{color:w.value,width:e}})),S=(0,s.Fl)((()=>(0,c.kJ)(r.icons)?{[r.lowThreshold]:r.icons[0],[r.highThreshold]:{value:r.icons[1],excluded:!0},[r.max]:r.icons[2]}:r.icons)),x=(0,s.Fl)((()=>o(r.modelValue,S.value))),I=(0,s.Fl)((()=>v.value?r.disabledVoidIcon:r.voidIcon)),T=(0,s.Fl)((()=>o(d.value,S.value))),E=(0,s.Fl)((()=>{const e=Array.from({length:r.max}),t=d.value;return e.fill(T.value,0,t),e.fill(I.value,t,r.max),e}));function R(e){const t=v.value&&b.value>0&&e-1<r.modelValue&&e>r.modelValue,n=r.allowHalf&&f.value&&e-.5<=d.value&&e>d.value;return t||n}function P(e){v.value||(r.allowHalf&&f.value?(n(V.f_,d.value),r.modelValue!==d.value&&n("change",d.value)):(n(V.f_,e),r.modelValue!==e&&n("change",e)))}function O(e){if(v.value)return;let t=d.value;const o=e.code;return o===Xn.n.up||o===Xn.n.right?(r.allowHalf?t+=.5:t+=1,e.stopPropagation(),e.preventDefault()):o!==Xn.n.left&&o!==Xn.n.down||(r.allowHalf?t-=.5:t-=1,e.stopPropagation(),e.preventDefault()),t=t<0?0:t,t=t>r.max?r.max:t,n(V.f_,t),n("change",t),t}function A(e,t){if(!v.value){if(r.allowHalf){let n=t.target;(0,re.pv)(n,u.e("item"))&&(n=n.querySelector(`.${u.e("icon")}`)),(0===n.clientWidth||(0,re.pv)(n,u.e("decimal")))&&(n=n.parentNode),f.value=2*t.offsetX<=n.clientWidth,d.value=f.value?e-.5:e}else d.value=e;p.value=e}}function D(){v.value||(r.allowHalf&&(f.value=r.modelValue!==Math.floor(r.modelValue)),d.value=r.modelValue,p.value=-1)}return(0,s.YP)((()=>r.modelValue),(e=>{d.value=e,f.value=r.modelValue!==Math.floor(r.modelValue)})),r.modelValue||n(V.f_,0),t({setCurrentValue:A,resetCurrentValue:D}),(e,t)=>((0,s.wg)(),(0,s.iD)("div",{class:(0,c.C_)([(0,l.SU)(h),(0,l.SU)(u).is("disabled",(0,l.SU)(v))]),role:"slider","aria-valuenow":d.value,"aria-valuetext":(0,l.SU)(y),"aria-valuemin":"0","aria-valuemax":e.max,tabindex:"0",style:(0,c.j5)((0,l.SU)(g)),onKeydown:O},[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e.max,((e,t)=>((0,s.wg)(),(0,s.iD)("span",{key:t,class:(0,c.C_)((0,l.SU)(u).e("item")),onMousemove:t=>A(e,t),onMouseleave:D,onClick:t=>P(e)},[(0,s.Wm)((0,l.SU)(C.gn),{class:(0,c.C_)([(0,l.SU)(u).e("icon"),{hover:p.value===e},(0,l.SU)(u).is("active",e<=d.value)])},{default:(0,s.w5)((()=>[R(e)?(0,s.kq)("v-if",!0):((0,s.wg)(),(0,s.j4)((0,s.LL)((0,l.SU)(E)[e-1]),{key:0})),R(e)?((0,s.wg)(),(0,s.j4)((0,l.SU)(C.gn),{key:1,style:(0,c.j5)((0,l.SU)(k)),class:(0,c.C_)([(0,l.SU)(u).e("icon"),(0,l.SU)(u).e("decimal")])},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)((0,l.SU)(x))))])),_:1},8,["style","class"])):(0,s.kq)("v-if",!0)])),_:2},1032,["class"])],42,A_)))),128)),e.showText||e.showScore?((0,s.wg)(),(0,s.iD)("span",{key:0,class:(0,c.C_)((0,l.SU)(u).e("text"))},(0,c.zw)((0,l.SU)(y)),3)):(0,s.kq)("v-if",!0)],46,O_))}});var M_=(0,h.Z)(N_,[["__file","/home/runner/work/element-plus/element-plus/packages/components/rate/src/rate.vue"]]);const L_=(0,w.nz)(M_),F_=(0,s.aZ)({name:"CircleCheckFilled"}),U_={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},j_=(0,s._)("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336L456.192 600.384z"},null,-1),V_=[j_];function H_(e,t,n,r,o,i){return(0,s.wg)(),(0,s.iD)("svg",U_,V_)}var B_=(0,ce.Z)(F_,[["render",H_]]),$_=n(2251),z_=n(232);const W_={success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},q_={[W_.success]:B_,[W_.warning]:a_.Z,[W_.error]:$_.Z,[W_.info]:z_.Z},Z_=(0,d.o8)({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{values:["success","warning","info","error"],default:"info"}}),Y_="ElResult",K_=(0,s.aZ)({name:Y_,props:Z_,setup(e,{slots:t}){const n=(0,m.s)("result");(0,cg.A)({scope:Y_,type:"Slot",from:"subTitle",replacement:"sub-title",version:"2.1.3",ref:"https://github.com/element-plus/element-plus/pull/6636/"},(0,s.Fl)((()=>!!t.subTitle)));const r=(0,s.Fl)((()=>{const t=e.icon,n=t&&W_[t]?W_[t]:"icon-info",r=q_[n]||q_["icon-info"];return{class:n,component:r}}));return{ns:n,resultIcon:r}}});function J_(e,t,n,r,o,i){return(0,s.wg)(),(0,s.iD)("div",{class:(0,c.C_)(e.ns.b())},[(0,s._)("div",{class:(0,c.C_)(e.ns.e("icon"))},[(0,s.WI)(e.$slots,"icon",{},(()=>[e.resultIcon.component?((0,s.wg)(),(0,s.j4)((0,s.LL)(e.resultIcon.component),{key:0,class:(0,c.C_)(e.resultIcon.class)},null,8,["class"])):(0,s.kq)("v-if",!0)]))],2),e.title||e.$slots.title?((0,s.wg)(),(0,s.iD)("div",{key:0,class:(0,c.C_)(e.ns.e("title"))},[(0,s.WI)(e.$slots,"title",{},(()=>[(0,s._)("p",null,(0,c.zw)(e.title),1)]))],2)):(0,s.kq)("v-if",!0),e.subTitle||e.$slots["sub-title"]?((0,s.wg)(),(0,s.iD)("div",{key:1,class:(0,c.C_)(e.ns.e("subtitle"))},[(0,s.WI)(e.$slots,"sub-title",{},(()=>[(0,s._)("p",null,(0,c.zw)(e.subTitle),1)]))],2)):(0,s.kq)("v-if",!0),e.$slots.extra?((0,s.wg)(),(0,s.iD)("div",{key:2,class:(0,c.C_)(e.ns.e("extra"))},[(0,s.WI)(e.$slots,"extra")],2)):(0,s.kq)("v-if",!0)],2)}var G_=(0,h.Z)(K_,[["render",J_],["__file","/home/runner/work/element-plus/element-plus/packages/components/result/src/result.vue"]]);const X_=(0,w.nz)(G_);var Q_=n(6939),ew=n(2262);const tw=(0,s.aZ)({props:{item:{type:Object,required:!0},style:Object,height:Number},setup(){const e=(0,m.s)("select");return{ns:e}}});function nw(e,t,n,r,o,i){return e.item.isTitle?((0,s.wg)(),(0,s.iD)("div",{key:0,class:(0,c.C_)(e.ns.be("group","title")),style:(0,c.j5)([e.style,{lineHeight:`${e.height}px`}])},(0,c.zw)(e.item.label),7)):((0,s.wg)(),(0,s.iD)("div",{key:1,class:(0,c.C_)(e.ns.be("group","split")),style:(0,c.j5)(e.style)},[(0,s._)("span",{class:(0,c.C_)(e.ns.be("group","split-dash")),style:(0,c.j5)({top:e.height/2+"px"})},null,6)],6))}var rw=(0,h.Z)(tw,[["render",nw],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/group-item.vue"]]);function ow(e,{emit:t}){return{hoverItem:()=>{e.disabled||t("hover",e.index)},selectOptionClick:()=>{e.disabled||t("select",e.item,e.index)}}}const iw={allowCreate:Boolean,autocomplete:{type:String,default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:[String,Object],default:Kr.Z},effect:{type:String,default:"light"},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},defaultFirstOption:Boolean,disabled:Boolean,estimatedOptionHeight:{type:Number,default:void 0},filterable:Boolean,filterMethod:Function,height:{type:Number,default:170},itemHeight:{type:Number,default:34},id:String,loading:Boolean,loadingText:String,label:String,modelValue:[Array,String,Number,Boolean,Object],multiple:Boolean,multipleLimit:{type:Number,default:0},name:String,noDataText:String,noMatchText:String,remoteMethod:Function,reserveKeyword:{type:Boolean,default:!0},options:{type:Array,required:!0},placeholder:{type:String},popperAppendToBody:{type:Boolean,default:void 0},teleported:j.sp.teleported,persistent:{type:Boolean,default:!0},popperClass:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},remote:Boolean,size:{type:String,validator:hn.P},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:{type:Boolean,default:!1}},aw={data:Array,disabled:Boolean,hovering:Boolean,item:Object,index:Number,style:Object,selected:Boolean,created:Boolean},sw=(0,s.aZ)({props:aw,emits:["select","hover"],setup(e,{emit:t}){const n=(0,m.s)("select"),{hoverItem:r,selectOptionClick:o}=ow(e,{emit:t});return{ns:n,hoverItem:r,selectOptionClick:o}}}),lw=["aria-selected"];function cw(e,t,n,r,o,i){return(0,s.wg)(),(0,s.iD)("li",{"aria-selected":e.selected,style:(0,c.j5)(e.style),class:(0,c.C_)([e.ns.be("dropdown","option-item"),e.ns.is("selected",e.selected),e.ns.is("disabled",e.disabled),e.ns.is("created",e.created),{hover:e.hovering}]),onMouseenter:t[0]||(t[0]=(...t)=>e.hoverItem&&e.hoverItem(...t)),onClick:t[1]||(t[1]=(0,S.iM)(((...t)=>e.selectOptionClick&&e.selectOptionClick(...t)),["stop"]))},[(0,s.WI)(e.$slots,"default",{item:e.item,index:e.index,disabled:e.disabled},(()=>[(0,s._)("span",null,(0,c.zw)(e.item.label),1)]))],46,lw)}var uw=(0,h.Z)(sw,[["render",cw],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/option-item.vue"]]);const dw="ElSelectV2Injection";var pw=n(4861),fw=Number.isNaN||function(e){return"number"===typeof e&&e!==e};function hw(e,t){return e===t||!(!fw(e)||!fw(t))}function mw(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!hw(e[n],t[n]))return!1;return!0}function vw(e,t){void 0===t&&(t=mw);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}const gw=()=>{const e=(0,s.FN)(),t=e.proxy.$props;return(0,s.Fl)((()=>{const e=(e,t,n)=>({});return t.perfMode?(0,pw.Z)(e):vw(e)}))},yw=50,bw="itemRendered",_w="scroll",ww="forward",kw="backward",Sw="auto",Cw="smart",xw="start",Iw="center",Tw="end",Ew="horizontal",Rw="vertical",Pw="ltr",Ow="rtl",Aw="negative",Dw="positive-ascending",Nw="positive-descending",Mw={[Ew]:"left",[Rw]:"top"},Lw=20,Fw=e=>ne.C5?window.requestAnimationFrame(e):setTimeout(e,16),Uw=e=>ne.C5?window.cancelAnimationFrame(e):clearTimeout(e),jw={[Ew]:"deltaX",[Rw]:"deltaY"},Vw=({atEndEdge:e,atStartEdge:t,layout:n},r)=>{let o,i=0;const a=n=>{const r=n<0&&t.value||n>0&&e.value;return r},s=e=>{Uw(o);const t=e[jw[n.value]];a(i)&&a(i+t)||(i+=t,tg()||e.preventDefault(),o=Fw((()=>{r(i),i=0})))};return{hasReachedEdge:a,onWheel:s}},Hw=(0,d.l0)({type:(0,d.Cq)([Number,Function]),required:!0}),Bw=(0,d.l0)({type:Number}),$w=(0,d.l0)({type:Number,default:2}),zw=(0,d.l0)({type:String,values:["ltr","rtl"],default:"ltr"}),Ww=(0,d.l0)({type:Number,default:0}),qw=(0,d.l0)({type:Number,required:!0}),Zw=(0,d.l0)({type:String,values:["horizontal","vertical"],default:Rw}),Yw=(0,d.o8)({className:{type:String,default:""},containerElement:{type:(0,d.Cq)([String,Object]),default:"div"},data:{type:(0,d.Cq)(Array),default:()=>(0,To.N)([])},direction:zw,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},style:{type:(0,d.Cq)([Object,String,Array])},useIsScrolling:{type:Boolean,default:!1},width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:{type:Boolean,default:!1}}),Kw=(0,d.o8)({cache:$w,estimatedItemSize:Bw,layout:Zw,initScrollOffset:Ww,total:qw,itemSize:Hw,...Yw}),Jw={type:Number,default:6},Gw={type:Number,default:0},Xw={type:Number,default:2},Qw=((0,d.o8)({columnCache:$w,columnWidth:Hw,estimatedColumnWidth:Bw,estimatedRowHeight:Bw,initScrollLeft:Ww,initScrollTop:Ww,itemKey:{type:(0,d.Cq)(Function),default:({columnIndex:e,rowIndex:t})=>`${t}:${e}`},rowCache:$w,rowHeight:Hw,totalColumn:qw,totalRow:qw,hScrollbarSize:Jw,vScrollbarSize:Jw,scrollbarStartGap:Gw,scrollbarEndGap:Xw,...Yw}),(0,d.o8)({alwaysOn:Boolean,class:String,layout:Zw,total:qw,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:Jw,startGap:Gw,endGap:Xw,visible:Boolean})),ek=(e,t)=>e<t?ww:kw,tk=e=>e===Pw||e===Ow||e===Ew;let nk=null;function rk(e=!1){if(null===nk||e){const e=document.createElement("div"),t=e.style;t.width="50px",t.height="50px",t.overflow="scroll",t.direction="rtl";const n=document.createElement("div"),r=n.style;return r.width="100px",r.height="100px",e.appendChild(n),document.body.appendChild(e),e.scrollLeft>0?nk=Nw:(e.scrollLeft=1,nk=0===e.scrollLeft?Aw:Dw),document.body.removeChild(e),nk}return nk}function ok({move:e,size:t,bar:n},r){const o={},i=`translate${n.axis}(${e}px)`;return o[n.size]=t,o.transform=i,o.msTransform=i,o.webkitTransform=i,"horizontal"===r?o.height="100%":o.width="100%",o}var ik=n(6890);const ak=(0,s.aZ)({name:"ElVirtualScrollBar",props:Qw,emits:["scroll","start-move","stop-move"],setup(e,{emit:t}){const n=(0,s.Fl)((()=>e.startGap+e.endGap)),r=(0,m.s)("virtual-scrollbar"),o=(0,m.s)("scrollbar"),i=(0,l.iH)(),a=(0,l.iH)();let c=null,u=null;const d=(0,l.qj)({isDragging:!1,traveled:0}),p=(0,s.Fl)((()=>ik.s[e.layout])),f=(0,s.Fl)((()=>e.clientSize-(0,l.SU)(n))),h=(0,s.Fl)((()=>({position:"absolute",width:`${Ew===e.layout?f.value:e.scrollbarSize}px`,height:`${Ew===e.layout?e.scrollbarSize:f.value}px`,[Mw[e.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"}))),v=(0,s.Fl)((()=>{const t=e.ratio,n=e.clientSize;if(t>=100)return Number.POSITIVE_INFINITY;if(t>=50)return t*n/100;const r=n/3;return Math.floor(Math.min(Math.max(t*n,Lw),r))})),g=(0,s.Fl)((()=>{if(!Number.isFinite(v.value))return{display:"none"};const t=`${v.value}px`,n=ok({bar:p.value,size:t,move:d.traveled},e.layout);return n})),y=(0,s.Fl)((()=>Math.floor(e.clientSize-v.value-(0,l.SU)(n)))),b=()=>{window.addEventListener("mousemove",C),window.addEventListener("mouseup",k);const e=(0,l.SU)(a);e&&(u=document.onselectstart,document.onselectstart=()=>!1,e.addEventListener("touchmove",C),e.addEventListener("touchend",k))},_=()=>{window.removeEventListener("mousemove",C),window.removeEventListener("mouseup",k),document.onselectstart=u,u=null;const e=(0,l.SU)(a);e&&(e.removeEventListener("touchmove",C),e.removeEventListener("touchend",k))},w=e=>{e.stopImmediatePropagation(),e.ctrlKey||[1,2].includes(e.button)||(d.isDragging=!0,d[p.value.axis]=e.currentTarget[p.value.offset]-(e[p.value.client]-e.currentTarget.getBoundingClientRect()[p.value.direction]),t("start-move"),b())},k=()=>{d.isDragging=!1,d[p.value.axis]=0,t("stop-move"),_()},C=n=>{const{isDragging:r}=d;if(!r)return;if(!a.value||!i.value)return;const o=d[p.value.axis];if(!o)return;Uw(c);const s=-1*(i.value.getBoundingClientRect()[p.value.direction]-n[p.value.client]),l=a.value[p.value.offset]-o,u=s-l;c=Fw((()=>{d.traveled=Math.max(e.startGap,Math.min(u,y.value)),t("scroll",u,y.value)}))},x=e=>{const n=Math.abs(e.target.getBoundingClientRect()[p.value.direction]-e[p.value.client]),r=a.value[p.value.offset]/2,o=n-r;d.traveled=Math.max(0,Math.min(o,y.value)),t("scroll",o,y.value)};return(0,s.YP)((()=>e.scrollFrom),(e=>{d.isDragging||(d.traveled=Math.ceil(e*y.value))})),(0,s.Jd)((()=>{_()})),()=>(0,s.h)("div",{role:"presentation",ref:i,class:[r.b(),e.class,(e.alwaysOn||d.isDragging)&&"always-on"],style:h.value,onMousedown:(0,S.iM)(x,["stop","prevent"]),onTouchstartPrevent:w},(0,s.h)("div",{ref:a,class:o.e("thumb"),style:g.value,onMousedown:w},[]))}}),sk=({name:e,getOffset:t,getItemSize:n,getItemOffset:r,getEstimatedTotalSize:o,getStartIndexForOffset:i,getStopIndexForStartIndex:a,initCache:u,clearCache:d,validateProps:p})=>(0,s.aZ)({name:null!=e?e:"ElVirtualList",props:Kw,emits:[bw,_w],setup(e,{emit:f,expose:h}){p(e);const v=(0,s.FN)(),g=(0,m.s)("vl"),y=(0,l.iH)(u(e,v)),b=gw(),_=(0,l.iH)(),w=(0,l.iH)(),k=(0,l.iH)(),S=(0,l.iH)({isScrolling:!1,scrollDir:"forward",scrollOffset:(0,ne.hj)(e.initScrollOffset)?e.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:e.scrollbarAlwaysOn}),C=(0,s.Fl)((()=>{const{total:t,cache:n}=e,{isScrolling:r,scrollDir:o,scrollOffset:s}=(0,l.SU)(S);if(0===t)return[0,0,0,0];const c=i(e,s,(0,l.SU)(y)),u=a(e,c,s,(0,l.SU)(y)),d=r&&o!==kw?1:Math.max(1,n),p=r&&o!==ww?1:Math.max(1,n);return[Math.max(0,c-d),Math.max(0,Math.min(t-1,u+p)),c,u]})),x=(0,s.Fl)((()=>o(e,(0,l.SU)(y)))),I=(0,s.Fl)((()=>tk(e.layout))),T=(0,s.Fl)((()=>[{position:"relative",["overflow-"+(I.value?"x":"y")]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:e.direction,height:(0,ne.hj)(e.height)?`${e.height}px`:e.height,width:(0,ne.hj)(e.width)?`${e.width}px`:e.width},e.style])),E=(0,s.Fl)((()=>{const e=(0,l.SU)(x),t=(0,l.SU)(I);return{height:t?"100%":`${e}px`,pointerEvents:(0,l.SU)(S).isScrolling?"none":void 0,width:t?`${e}px`:"100%"}})),R=(0,s.Fl)((()=>I.value?e.width:e.height)),{onWheel:P}=Vw({atStartEdge:(0,s.Fl)((()=>S.value.scrollOffset<=0)),atEndEdge:(0,s.Fl)((()=>S.value.scrollOffset>=x.value)),layout:(0,s.Fl)((()=>e.layout))},(e=>{var t,n;null==(n=(t=k.value).onMouseUp)||n.call(t),L(Math.min(S.value.scrollOffset+e,x.value-R.value))})),O=()=>{const{total:t}=e;if(t>0){const[e,t,n,r]=(0,l.SU)(C);f(bw,e,t,n,r)}const{scrollDir:n,scrollOffset:r,updateRequested:o}=(0,l.SU)(S);f(_w,n,r,o)},A=e=>{const{clientHeight:t,scrollHeight:n,scrollTop:r}=e.currentTarget,o=(0,l.SU)(S);if(o.scrollOffset===r)return;const i=Math.max(0,Math.min(r,n-t));S.value={...o,isScrolling:!0,scrollDir:ek(o.scrollOffset,i),scrollOffset:i,updateRequested:!1},(0,s.Y3)(j)},D=t=>{const{clientWidth:n,scrollLeft:r,scrollWidth:o}=t.currentTarget,i=(0,l.SU)(S);if(i.scrollOffset===r)return;const{direction:a}=e;let c=r;if(a===Ow)switch(rk()){case Aw:c=-r;break;case Nw:c=o-n-r;break}c=Math.max(0,Math.min(c,o-n)),S.value={...i,isScrolling:!0,scrollDir:ek(i.scrollOffset,c),scrollOffset:c,updateRequested:!1},(0,s.Y3)(j)},N=e=>{(0,l.SU)(I)?D(e):A(e),O()},M=(e,t)=>{const n=(x.value-R.value)/t*e;L(Math.min(x.value-R.value,n))},L=e=>{e=Math.max(e,0),e!==(0,l.SU)(S).scrollOffset&&(S.value={...(0,l.SU)(S),scrollOffset:e,scrollDir:ek((0,l.SU)(S).scrollOffset,e),updateRequested:!0},(0,s.Y3)(j))},F=(n,r=Sw)=>{const{scrollOffset:o}=(0,l.SU)(S);n=Math.max(0,Math.min(n,e.total-1)),L(t(e,n,r,o,(0,l.SU)(y)))},U=t=>{const{direction:o,itemSize:i,layout:a}=e,s=b.value(d&&i,d&&a,d&&o);let u;if((0,c.RI)(s,String(t)))u=s[t];else{const i=r(e,t,(0,l.SU)(y)),a=n(e,t,(0,l.SU)(y)),c=(0,l.SU)(I),d=o===Ow,p=c?i:0;s[t]=u={position:"absolute",left:d?void 0:`${p}px`,right:d?`${p}px`:void 0,top:c?0:`${i}px`,height:c?"100%":`${a}px`,width:c?`${a}px`:"100%"}}return u},j=()=>{S.value.isScrolling=!1,(0,s.Y3)((()=>{b.value(-1,null,null)}))},V=()=>{const e=_.value;e&&(e.scrollTop=0)};(0,s.bv)((()=>{if(!ne.C5)return;const{initScrollOffset:t}=e,n=(0,l.SU)(_);(0,ne.hj)(t)&&n&&((0,l.SU)(I)?n.scrollLeft=t:n.scrollTop=t),O()})),(0,s.ic)((()=>{const{direction:t,layout:n}=e,{scrollOffset:r,updateRequested:o}=(0,l.SU)(S),i=(0,l.SU)(_);if(o&&i)if(n===Ew)if(t===Ow)switch(rk()){case"negative":i.scrollLeft=-r;break;case"positive-ascending":i.scrollLeft=r;break;default:{const{clientWidth:e,scrollWidth:t}=i;i.scrollLeft=t-e-r;break}}else i.scrollLeft=r;else i.scrollTop=r}));const H={ns:g,clientSize:R,estimatedTotalSize:x,windowStyle:T,windowRef:_,innerRef:w,innerStyle:E,itemsToRender:C,scrollbarRef:k,states:S,getItemStyle:U,onScroll:N,onScrollbarScroll:M,onWheel:P,scrollTo:L,scrollToItem:F,resetScrollTop:V};return h({windowRef:_,innerRef:w,getItemStyleCache:b,scrollTo:L,scrollToItem:F,resetScrollTop:V,states:S}),H},render(e){var t;const{$slots:n,className:r,clientSize:o,containerElement:i,data:a,getItemStyle:l,innerElement:u,itemsToRender:d,innerStyle:p,layout:f,total:h,onScroll:m,onScrollbarScroll:v,onWheel:g,states:y,useIsScrolling:b,windowStyle:_,ns:w}=e,[k,S]=d,C=(0,s.LL)(i),x=(0,s.LL)(u),I=[];if(h>0)for(let s=k;s<=S;s++)I.push(null==(t=n.default)?void 0:t.call(n,{data:a,key:s,index:s,isScrolling:b?y.isScrolling:void 0,style:l(s)}));const T=[(0,s.h)(x,{style:p,ref:"innerRef"},(0,c.HD)(x)?I:{default:()=>I})],E=(0,s.h)(ak,{ref:"scrollbarRef",clientSize:o,layout:f,onScroll:v,ratio:100*o/this.estimatedTotalSize,scrollFrom:y.scrollOffset/(this.estimatedTotalSize-o),total:h}),R=(0,s.h)(C,{class:["el-vl__window",r],style:_,onScroll:m,onWheel:g,ref:"windowRef",key:0},(0,c.HD)(C)?[T]:{default:()=>[T]});return(0,s.h)("div",{key:0,class:[w.e("wrapper"),y.scrollbarAlwaysOn?"always-on":""]},[R,E])}}),lk=sk({name:"ElFixedSizeList",getItemOffset:({itemSize:e},t)=>t*e,getItemSize:({itemSize:e})=>e,getEstimatedTotalSize:({total:e,itemSize:t})=>t*e,getOffset:({height:e,total:t,itemSize:n,layout:r,width:o},i,a,s)=>{const l=tk(r)?o:e;const c=Math.max(0,t*n-l),u=Math.min(c,i*n),d=Math.max(0,(i+1)*n-l);switch(a===Cw&&(a=s>=d-l&&s<=u+l?Sw:Iw),a){case xw:return u;case Tw:return d;case Iw:{const e=Math.round(d+(u-d)/2);return e<Math.ceil(l/2)?0:e>c+Math.floor(l/2)?c:e}case Sw:default:return s>=d&&s<=u?s:s<d?d:u}},getStartIndexForOffset:({total:e,itemSize:t},n)=>Math.max(0,Math.min(e-1,Math.floor(n/t))),getStopIndexForStartIndex:({height:e,total:t,itemSize:n,layout:r,width:o},i,a)=>{const s=i*n,l=tk(r)?o:e,c=Math.ceil((l+a-s)/n);return Math.max(0,Math.min(t-1,i+c-1))},initCache(){},clearCache:!0,validateProps(){}}),ck=(e,t,n)=>{const{itemSize:r}=e,{items:o,lastVisitedIndex:i}=n;if(t>i){let e=0;if(i>=0){const t=o[i];e=t.offset+t.size}for(let n=i+1;n<=t;n++){const t=r(n);o[n]={offset:e,size:t},e+=t}n.lastVisitedIndex=t}return o[t]},uk=(e,t,n)=>{const{items:r,lastVisitedIndex:o}=t,i=o>0?r[o].offset:0;return i>=n?dk(e,t,0,o,n):pk(e,t,Math.max(0,o),n)},dk=(e,t,n,r,o)=>{while(n<=r){const i=n+Math.floor((r-n)/2),a=ck(e,i,t).offset;if(a===o)return i;a<o?n=i+1:a>o&&(r=i-1)}return Math.max(0,n-1)},pk=(e,t,n,r)=>{const{total:o}=e;let i=1;while(n<o&&ck(e,n,t).offset<r)n+=i,i*=2;return dk(e,t,Math.floor(n/2),Math.min(n,o-1),r)},fk=({total:e},{items:t,estimatedItemSize:n,lastVisitedIndex:r})=>{let o=0;if(r>=e&&(r=e-1),r>=0){const e=t[r];o=e.offset+e.size}const i=e-r-1,a=i*n;return o+a},hk=sk({name:"ElDynamicSizeList",getItemOffset:(e,t,n)=>ck(e,t,n).offset,getItemSize:(e,t,{items:n})=>n[t].size,getEstimatedTotalSize:fk,getOffset:(e,t,n,r,o)=>{const{height:i,layout:a,width:s}=e,l=tk(a)?s:i,c=ck(e,t,o),u=fk(e,o),d=Math.max(0,Math.min(u-l,c.offset)),p=Math.max(0,c.offset-l+c.size);switch(n===Cw&&(n=r>=p-l&&r<=d+l?Sw:Iw),n){case xw:return d;case Tw:return p;case Iw:return Math.round(p+(d-p)/2);case Sw:default:return r>=p&&r<=d?r:r<p?p:d}},getStartIndexForOffset:(e,t,n)=>uk(e,n,t),getStopIndexForStartIndex:(e,t,n,r)=>{const{height:o,total:i,layout:a,width:s}=e,l=tk(a)?s:o,c=ck(e,t,r),u=n+l;let d=c.offset+c.size,p=t;while(p<i-1&&d<u)p++,d+=ck(e,p,r).size;return p},initCache({estimatedItemSize:e=yw},t){const n={items:{},estimatedItemSize:e,lastVisitedIndex:-1,clearCacheAfterIndex:(e,r=!0)=>{var o,i;n.lastVisitedIndex=Math.min(n.lastVisitedIndex,e-1),null==(o=t.exposed)||o.getItemStyleCache(-1),r&&(null==(i=t.proxy)||i.$forceUpdate())}};return n},clearCache:!1,validateProps:({itemSize:e})=>{0}}),mk=(0,s.aZ)({name:"ElSelectDropdown",props:{data:Array,hoveringIndex:Number,width:Number},setup(e){const t=(0,s.f3)(dw),n=(0,m.s)("select"),r=(0,l.iH)([]),o=(0,l.iH)(null),i=(0,s.Fl)((()=>(0,Ut.o8)(t.props.estimatedOptionHeight))),a=(0,s.Fl)((()=>i.value?{itemSize:t.props.itemHeight}:{estimatedSize:t.props.estimatedOptionHeight,itemSize:e=>r.value[e]})),u=(e=[],n)=>{const{props:{valueKey:r}}=t;return(0,c.Kn)(n)?e&&e.some((e=>(0,ew.Z)(e,r)===(0,ew.Z)(n,r))):e.includes(n)},d=(e,n)=>{if((0,c.Kn)(n)){const{valueKey:r}=t.props;return(0,ew.Z)(e,r)===(0,ew.Z)(n,r)}return e===n},p=(e,n)=>{const{valueKey:r}=t.props;return t.props.multiple?u(e,(0,ew.Z)(n,r)):d(e,(0,ew.Z)(n,r))},f=(e,n)=>{const{disabled:r,multiple:o,multipleLimit:i}=t.props;return r||!n&&!!o&&i>0&&e.length>=i},h=t=>e.hoveringIndex===t,v=e=>{const t=o.value;t&&t.scrollToItem(e)},g=()=>{const e=o.value;e&&e.resetScrollTop()};return{ns:n,select:t,listProps:a,listRef:o,isSized:i,isItemDisabled:f,isItemHovering:h,isItemSelected:p,scrollToItem:v,resetScrollTop:g}},render(e,t){var n;const{$slots:r,data:o,listProps:i,select:a,isSized:l,width:c,ns:u,isItemDisabled:d,isItemHovering:p,isItemSelected:f}=e,h=l?lk:hk,{props:m,onSelect:v,onHover:g,onKeyboardNavigate:y,onKeyboardSelect:b}=a,{height:_,modelValue:w,multiple:k}=m;if(0===o.length)return(0,s.h)("div",{class:u.b("dropdown"),style:{width:`${c}px`}},null==(n=r.empty)?void 0:n.call(r));const C=(0,s.w5)((e=>{const{index:t,data:n}=e,o=n[t];if("Group"===n[t].type)return(0,s.h)(rw,{item:o,style:e.style,height:l?i.itemSize:i.estimatedSize});const a=f(w,o),c=d(w,a);return(0,s.h)(uw,{...e,selected:a,disabled:o.disabled||c,created:!!o.created,hovering:p(t),item:o,onSelect:v,onHover:g},{default:(0,s.w5)((e=>(0,s.WI)(r,"default",e,(()=>[(0,s.h)("span",o.label)]))))})})),x=(0,s.h)(h,{ref:"listRef",className:u.be("dropdown","list"),data:o,height:_,width:c,total:o.length,scrollbarAlwaysOn:m.scrollbarAlwaysOn,onKeydown:[t[1]||(t[1]=(0,S.D2)((0,S.iM)((()=>y("forward")),["stop","prevent"]),["down"])),t[2]||(t[2]=(0,S.D2)((0,S.iM)((()=>y("backward")),["stop","prevent"]),["up"])),t[3]||(t[3]=(0,S.D2)((0,S.iM)(b,["stop","prevent"]),["enter"])),t[4]||(t[4]=(0,S.D2)((0,S.iM)((()=>a.expanded=!1),["stop","prevent"]),["esc"])),t[5]||(t[5]=(0,S.D2)((()=>a.expanded=!1),["tab"]))],...i},{default:C});return(0,s.h)("div",{class:[u.b("dropdown"),u.is("multiple",k)]},[x])}});var vk=(0,h.Z)(mk,[["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/select-dropdown.vue"]]);function gk(e,t){const n=(0,l.iH)(0),r=(0,l.iH)(null),o=(0,s.Fl)((()=>e.allowCreate&&e.filterable));function i(n){const r=e=>e.value===n;return e.options&&e.options.some(r)||t.createdOptions.some(r)}function a(t){o.value&&(e.multiple&&t.created?n.value++:r.value=t)}function c(a){if(o.value)if(a&&a.length>0&&!i(a)){const e={value:a,label:a,created:!0,disabled:!1};t.createdOptions.length>=n.value?t.createdOptions[n.value]=e:t.createdOptions.push(e)}else if(e.multiple)t.createdOptions.length=n.value;else{const e=r.value;t.createdOptions.length=0,e&&e.created&&t.createdOptions.push(e)}}function u(r){if(!o.value||!r||!r.created||r.created&&e.reserveKeyword&&t.inputValue===r.label)return;const i=t.createdOptions.findIndex((e=>e.value===r.value));~i&&(t.createdOptions.splice(i,1),n.value--)}function d(){o.value&&(t.createdOptions.length=0,n.value=0)}return{createNewOption:c,removeNewOption:u,selectNewOption:a,clearAllNewOption:d}}const yk=e=>{const t=[];return e.forEach((e=>{(0,c.kJ)(e.options)?(t.push({label:e.label,isTitle:!0,type:"Group"}),e.options.forEach((e=>{t.push(e)})),t.push({type:"Group"})):t.push(e)})),t};function bk(e){const t=(0,l.iH)(!1),n=()=>{t.value=!0},r=e=>{const n=e.target.value,r=n[n.length-1]||"";t.value=!(0,oo.w)(r)},o=n=>{t.value&&(t.value=!1,(0,c.mf)(e)&&e(n))};return{handleCompositionStart:n,handleCompositionUpdate:r,handleCompositionEnd:o}}const _k="",wk=11,kk={larget:51,default:42,small:33},Sk="ElSelectV2",Ck=(e,t)=>{const{t:n}=(0,Ye.bU)(),r=(0,m.s)("select-v2"),o=(0,m.s)("input"),{form:i,formItem:a}=(0,Gn.A)(),{compatTeleported:u}=(0,$.Q)(Sk,"popperAppendToBody"),d=(0,l.qj)({inputValue:_k,displayInputValue:_k,calculatedWidth:0,cachedPlaceholder:"",cachedOptions:[],createdOptions:[],createdLabel:"",createdSelected:!1,currentPlaceholder:"",hoveringIndex:-1,comboBoxHovering:!1,isOnComposition:!1,isSilentBlur:!1,isComposing:!1,inputLength:20,selectWidth:200,initialInputHeight:0,previousQuery:null,previousValue:"",query:"",selectedLabel:"",softFocus:!1,tagInMultiLine:!1}),p=(0,l.iH)(-1),f=(0,l.iH)(-1),h=(0,l.iH)(null),g=(0,l.iH)(null),y=(0,l.iH)(null),b=(0,l.iH)(null),_=(0,l.iH)(null),w=(0,l.iH)(null),k=(0,l.iH)(null),S=(0,l.iH)(!1),C=(0,s.Fl)((()=>e.disabled||(null==i?void 0:i.disabled))),x=(0,s.Fl)((()=>{const t=34*L.value.length;return t>e.height?e.height:t})),T=(0,s.Fl)((()=>void 0!==e.modelValue&&null!==e.modelValue&&""!==e.modelValue)),E=(0,s.Fl)((()=>{const t=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:T.value,n=e.clearable&&!C.value&&d.comboBoxHovering&&t;return n})),R=(0,s.Fl)((()=>e.remote&&e.filterable?"":os.Z)),P=(0,s.Fl)((()=>R.value&&r.is("reverse",S.value))),O=(0,s.Fl)((()=>(null==a?void 0:a.validateState)||"")),A=(0,s.Fl)((()=>I.rU[O.value])),D=(0,s.Fl)((()=>e.remote?300:0)),M=(0,s.Fl)((()=>{const t=L.value;return e.loading?e.loadingText||n("el.select.loading"):(!e.remote||""!==d.inputValue||0!==t.length)&&(e.filterable&&d.inputValue&&t.length>0?e.noMatchText||n("el.select.noMatch"):0===t.length?e.noDataText||n("el.select.noData"):null)})),L=(0,s.Fl)((()=>{const t=e=>{const t=d.inputValue,n=!t||e.label.includes(t);return n};return e.loading?[]:yk(e.options.concat(d.createdOptions).map((n=>{if((0,c.kJ)(n.options)){const e=n.options.filter(t);if(e.length>0)return{...n,options:e}}else if(e.remote||t(n))return n;return null})).filter((e=>null!==e)))})),F=(0,s.Fl)((()=>L.value.every((e=>e.disabled)))),U=(0,on.tH)(),j=(0,s.Fl)((()=>"small"===U.value?"small":"default")),H=(0,s.Fl)((()=>{const e=w.value,t=j.value||"default",n=e?Number.parseInt(getComputedStyle(e).paddingLeft):0,r=e?Number.parseInt(getComputedStyle(e).paddingRight):0;return d.selectWidth-r-n-kk[t]})),B=()=>{var e,t,n;f.value=(null==(n=null==(t=null==(e=_.value)?void 0:e.getBoundingClientRect)?void 0:t.call(e))?void 0:n.width)||200},z=(0,s.Fl)((()=>({width:`${0===d.calculatedWidth?wk:Math.ceil(d.calculatedWidth)+wk}px`}))),W=(0,s.Fl)((()=>(0,c.kJ)(e.modelValue)?0===e.modelValue.length&&!d.displayInputValue:!e.filterable||0===d.displayInputValue.length)),q=(0,s.Fl)((()=>{const t=e.placeholder||n("el.select.placeholder");return e.multiple?t:d.selectedLabel||t})),Z=(0,s.Fl)((()=>{var e,t;return null==(t=null==(e=b.value)?void 0:e.popperRef)?void 0:t.contentRef})),Y=(0,s.Fl)((()=>{if(e.multiple){const t=e.modelValue.length;if(e.modelValue.length>0)return L.value.findIndex((n=>n.value===e.modelValue[t-1]))}else if(e.modelValue)return L.value.findIndex((t=>t.value===e.modelValue));return-1})),K=(0,s.Fl)((()=>S.value&&!1!==M.value)),{createNewOption:J,removeNewOption:G,selectNewOption:X,clearAllNewOption:Q}=gk(e,d),{handleCompositionStart:ee,handleCompositionUpdate:te,handleCompositionEnd:ne}=bk((e=>Re(e))),re=()=>{var e,t,n;null==(t=(e=g.value).focus)||t.call(e),null==(n=b.value)||n.updatePopper()},oe=()=>{if(!e.automaticDropdown)return C.value?void 0:(d.isComposing&&(d.softFocus=!0),(0,s.Y3)((()=>{var e,t;S.value=!S.value,null==(t=null==(e=g.value)?void 0:e.focus)||t.call(e)})))},ie=()=>(e.filterable&&d.inputValue!==d.selectedLabel&&(d.query=d.selectedLabel),se(d.inputValue),(0,s.Y3)((()=>{J(d.inputValue)}))),ae=(0,N.Z)(ie,D.value),se=t=>{d.previousQuery!==t&&(d.previousQuery=t,e.filterable&&(0,c.mf)(e.filterMethod)?e.filterMethod(t):e.filterable&&e.remote&&(0,c.mf)(e.remoteMethod)&&e.remoteMethod(t))},le=n=>{(0,zt.Z)(e.modelValue,n)||t(V.O7,n)},ce=e=>{t(V.f_,e),le(e),d.previousValue=e.toString()},ue=(t=[],n)=>{if(!(0,c.Kn)(n))return t.indexOf(n);const r=e.valueKey;let o=-1;return t.some(((e,t)=>(0,ew.Z)(e,r)===(0,ew.Z)(n,r)&&(o=t,!0))),o},de=t=>(0,c.Kn)(t)?(0,ew.Z)(t,e.valueKey):t,pe=e=>(0,c.Kn)(e)?e.label:e,fe=()=>{if(!e.collapseTags||e.filterable)return(0,s.Y3)((()=>{var e,t;if(!g.value)return;const n=w.value;_.value.height=n.offsetHeight,S.value&&!1!==M.value&&(null==(t=null==(e=b.value)?void 0:e.updatePopper)||t.call(e))}))},he=()=>{var t,n;if(me(),B(),null==(n=null==(t=b.value)?void 0:t.updatePopper)||n.call(t),e.multiple)return fe()},me=()=>{const e=w.value;e&&(d.selectWidth=e.getBoundingClientRect().width)},ve=(t,n,r=!0)=>{var o,i;if(e.multiple){let r=e.modelValue.slice();const a=ue(r,de(t));a>-1?(r=[...r.slice(0,a),...r.slice(a+1)],d.cachedOptions.splice(a,1),G(t)):(e.multipleLimit<=0||r.length<e.multipleLimit)&&(r=[...r,de(t)],d.cachedOptions.push(t),X(t),Ie(n)),ce(r),t.created&&(d.query="",se(""),d.inputLength=20),e.filterable&&!e.reserveKeyword&&(null==(i=(o=g.value).focus)||i.call(o),Se("")),e.filterable&&(d.calculatedWidth=k.value.getBoundingClientRect().width),fe(),Ee()}else p.value=n,d.selectedLabel=t.label,ce(de(t)),S.value=!1,d.isComposing=!1,d.isSilentBlur=r,X(t),t.created||Q(),Ie(n)},ge=(n,r)=>{const{valueKey:o}=e,i=e.modelValue.indexOf((0,ew.Z)(r,o));if(i>-1&&!C.value){const n=[...e.modelValue.slice(0,i),...e.modelValue.slice(i+1)];return d.cachedOptions.splice(i,1),ce(n),t("remove-tag",(0,ew.Z)(r,o)),d.softFocus=!0,G(r),(0,s.Y3)(re)}n.stopPropagation()},ye=e=>{const n=d.isComposing;d.isComposing=!0,d.softFocus?d.softFocus=!1:n||t("focus",e)},be=()=>(d.softFocus=!1,(0,s.Y3)((()=>{var e,n;null==(n=null==(e=g.value)?void 0:e.blur)||n.call(e),k.value&&(d.calculatedWidth=k.value.getBoundingClientRect().width),d.isSilentBlur?d.isSilentBlur=!1:d.isComposing&&t("blur"),d.isComposing=!1}))),_e=()=>{d.displayInputValue.length>0?Se(""):S.value=!1},we=t=>{if(0===d.displayInputValue.length){t.preventDefault();const n=e.modelValue.slice();n.pop(),G(d.cachedOptions.pop()),ce(n)}},ke=()=>{let n;return n=(0,c.kJ)(e.modelValue)?[]:"",d.softFocus=!0,e.multiple?d.cachedOptions=[]:d.selectedLabel="",S.value=!1,ce(n),t("clear"),Q(),(0,s.Y3)(re)},Se=e=>{d.displayInputValue=e,d.inputValue=e},Ce=(e,t)=>{const n=L.value;if(!["forward","backward"].includes(e)||C.value||n.length<=0||F.value)return;if(!S.value)return oe();void 0===t&&(t=d.hoveringIndex);let r=-1;"forward"===e?(r=t+1,r>=n.length&&(r=0)):"backward"===e&&(r=t-1,r<0&&(r=n.length-1));const o=n[r];if(o.disabled||"Group"===o.type)return Ce(e,r);Ie(r),Ae(r)},xe=()=>{if(!S.value)return oe();~d.hoveringIndex&&L.value[d.hoveringIndex]&&ve(L.value[d.hoveringIndex],d.hoveringIndex,!1)},Ie=e=>{d.hoveringIndex=e},Te=()=>{d.hoveringIndex=-1},Ee=()=>{var e;const t=g.value;t&&(null==(e=t.focus)||e.call(t))},Re=t=>{const n=t.target.value;if(Se(n),d.displayInputValue.length>0&&!S.value&&(S.value=!0),d.calculatedWidth=k.value.getBoundingClientRect().width,e.multiple&&fe(),!e.remote)return ie();ae()},Pe=()=>(S.value=!1,be()),Oe=()=>(d.inputValue=d.displayInputValue,(0,s.Y3)((()=>{~Y.value&&(Ie(Y.value),Ae(d.hoveringIndex))}))),Ae=e=>{y.value.scrollToItem(e)},De=()=>{if(Te(),e.multiple)if(e.modelValue.length>0){let t=!1;d.cachedOptions.length=0,d.previousValue=e.modelValue.toString(),e.modelValue.forEach((e=>{const n=L.value.findIndex((t=>de(t)===e));~n&&(d.cachedOptions.push(L.value[n]),t||Ie(n),t=!0)}))}else d.cachedOptions=[],d.previousValue="";else if(T.value){d.previousValue=e.modelValue;const t=L.value,n=t.findIndex((t=>de(t)===de(e.modelValue)));~n?(d.selectedLabel=t[n].label,Ie(n)):d.selectedLabel=`${e.modelValue}`}else d.selectedLabel="",d.previousValue="";B()};return(0,s.YP)(S,(e=>{var n,r;t("visible-change",e),e?null==(r=(n=b.value).update)||r.call(n):(d.displayInputValue="",J(""))})),(0,s.YP)((()=>e.modelValue),((e,t)=>{var n;e&&e.toString()===d.previousValue||De(),(0,zt.Z)(e,t)||null==(n=null==a?void 0:a.validate)||n.call(a,"change").catch((e=>(0,v.N)(e)))}),{deep:!0}),(0,s.YP)((()=>e.options),(()=>{const e=g.value;(!e||e&&document.activeElement!==e)&&De()}),{deep:!0}),(0,s.YP)(L,(()=>(0,s.Y3)(y.value.resetScrollTop))),(0,s.bv)((()=>{De(),(0,io.k)(_.value,he)})),(0,s.wF)((()=>{(0,io.S)(_.value,he)})),{collapseTagSize:j,currentPlaceholder:q,expanded:S,emptyText:M,popupHeight:x,debounce:D,filteredOptions:L,iconComponent:R,iconReverse:P,inputWrapperStyle:z,popperSize:f,dropdownMenuVisible:K,hasModelValue:T,shouldShowPlaceholder:W,selectDisabled:C,selectSize:U,showClearBtn:E,states:d,tagMaxWidth:H,nsSelectV2:r,nsInput:o,calculatorRef:k,controlRef:h,inputRef:g,menuRef:y,popper:b,selectRef:_,selectionRef:w,popperRef:Z,validateState:O,validateIcon:A,compatTeleported:u,debouncedOnInputChange:ae,deleteTag:ge,getLabel:pe,getValueKey:de,handleBlur:be,handleClear:ke,handleClickOutside:Pe,handleDel:we,handleEsc:_e,handleFocus:ye,handleMenuEnter:Oe,handleResize:he,toggleMenu:oe,scrollTo:Ae,onInput:Re,onKeyboardNavigate:Ce,onKeyboardSelect:xe,onSelect:ve,onHover:Ie,onUpdateInputValue:Se,handleCompositionStart:ee,handleCompositionEnd:ne,handleCompositionUpdate:te}},xk=(0,s.aZ)({name:"ElSelectV2",components:{ElSelectMenu:vk,ElTag:Yr.Ks,ElTooltip:F.Q0,ElIcon:C.gn},directives:{ClickOutside:no.Z,ModelText:S.nr},props:iw,emits:[V.f_,V.O7,"remove-tag","clear","visible-change","focus","blur"],setup(e,{emit:t}){const n=Ck(e,t);return(0,s.JJ)(dw,{props:(0,l.qj)({...(0,l.BK)(e),height:n.popupHeight}),onSelect:n.onSelect,onHover:n.onHover,onKeyboardNavigate:n.onKeyboardNavigate,onKeyboardSelect:n.onKeyboardSelect}),n}}),Ik={key:0},Tk=["id","autocomplete","aria-expanded","aria-labelledby","disabled","readonly","name","unselectable"],Ek=["textContent"],Rk=["id","aria-labelledby","aria-expanded","autocomplete","disabled","name","readonly","unselectable"],Pk=["textContent"];function Ok(e,t,n,r,o,i){const a=(0,s.up)("el-tag"),l=(0,s.up)("el-tooltip"),u=(0,s.up)("el-icon"),d=(0,s.up)("el-select-menu"),p=(0,s.Q2)("model-text"),f=(0,s.Q2)("click-outside");return(0,s.wy)(((0,s.wg)(),(0,s.iD)("div",{ref:"selectRef",class:(0,c.C_)([e.nsSelectV2.b(),e.nsSelectV2.m(e.selectSize)]),onClick:t[24]||(t[24]=(0,S.iM)(((...t)=>e.toggleMenu&&e.toggleMenu(...t)),["stop"])),onMouseenter:t[25]||(t[25]=t=>e.states.comboBoxHovering=!0),onMouseleave:t[26]||(t[26]=t=>e.states.comboBoxHovering=!1)},[(0,s.Wm)(l,{ref:"popper",visible:e.dropdownMenuVisible,"onUpdate:visible":t[22]||(t[22]=t=>e.dropdownMenuVisible=t),teleported:e.compatTeleported,"popper-class":[e.nsSelectV2.e("popper"),e.popperClass],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"popper-options":e.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],effect:e.effect,placement:"bottom-start",pure:"",transition:`${e.nsSelectV2.namespace.value}-zoom-in-top`,trigger:"click",persistent:e.persistent,onBeforeShow:e.handleMenuEnter,onHide:t[23]||(t[23]=t=>e.states.inputValue=e.states.displayInputValue)},{default:(0,s.w5)((()=>{var n;return[(0,s._)("div",{ref:"selectionRef",class:(0,c.C_)([e.nsSelectV2.e("wrapper"),e.nsSelectV2.is("focused",e.states.isComposing),e.nsSelectV2.is("hovering",e.states.comboBoxHovering),e.nsSelectV2.is("filterable",e.filterable),e.nsSelectV2.is("disabled",e.selectDisabled)])},[e.$slots.prefix?((0,s.wg)(),(0,s.iD)("div",Ik,[(0,s.WI)(e.$slots,"prefix")])):(0,s.kq)("v-if",!0),e.multiple?((0,s.wg)(),(0,s.iD)("div",{key:1,class:(0,c.C_)(e.nsSelectV2.e("selection"))},[e.collapseTags&&e.modelValue.length>0?((0,s.wg)(),(0,s.iD)("div",{key:0,class:(0,c.C_)(e.nsSelectV2.e("selected-item"))},[(0,s.Wm)(a,{closable:!e.selectDisabled&&!(null==(n=e.states.cachedOptions[0])?void 0:n.disable),size:e.collapseTagSize,type:"info","disable-transitions":"",onClose:t[0]||(t[0]=t=>e.deleteTag(t,e.states.cachedOptions[0]))},{default:(0,s.w5)((()=>{var t;return[(0,s._)("span",{class:(0,c.C_)(e.nsSelectV2.e("tags-text")),style:(0,c.j5)({maxWidth:`${e.tagMaxWidth}px`})},(0,c.zw)(null==(t=e.states.cachedOptions[0])?void 0:t.label),7)]})),_:1},8,["closable","size"]),e.modelValue.length>1?((0,s.wg)(),(0,s.j4)(a,{key:0,closable:!1,size:e.collapseTagSize,type:"info","disable-transitions":""},{default:(0,s.w5)((()=>[e.collapseTagsTooltip?((0,s.wg)(),(0,s.j4)(l,{key:0,disabled:e.dropdownMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:!1},{default:(0,s.w5)((()=>[(0,s._)("span",{class:(0,c.C_)(e.nsSelectV2.e("tags-text")),style:(0,c.j5)({maxWidth:`${e.tagMaxWidth}px`})},"+ "+(0,c.zw)(e.modelValue.length-1),7)])),content:(0,s.w5)((()=>[(0,s._)("div",{class:(0,c.C_)(e.nsSelectV2.e("selection"))},[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e.states.cachedOptions,((t,n)=>((0,s.wg)(),(0,s.iD)("div",{key:n,class:(0,c.C_)(e.nsSelectV2.e("selected-item"))},[((0,s.wg)(),(0,s.j4)(a,{key:e.getValueKey(t),closable:!e.selectDisabled&&!t.disabled,size:e.collapseTagSize,class:"in-tooltip",type:"info","disable-transitions":"",onClose:n=>e.deleteTag(n,t)},{default:(0,s.w5)((()=>[(0,s._)("span",{class:(0,c.C_)(e.nsSelectV2.e("tags-text")),style:(0,c.j5)({maxWidth:`${e.tagMaxWidth}px`})},(0,c.zw)(e.getLabel(t)),7)])),_:2},1032,["closable","size","onClose"]))],2)))),128))],2)])),_:1},8,["disabled","effect"])):((0,s.wg)(),(0,s.iD)("span",{key:1,class:(0,c.C_)(e.nsSelectV2.e("tags-text")),style:(0,c.j5)({maxWidth:`${e.tagMaxWidth}px`})},"+ "+(0,c.zw)(e.modelValue.length-1),7))])),_:1},8,["size"])):(0,s.kq)("v-if",!0)],2)):((0,s.wg)(!0),(0,s.iD)(s.HY,{key:1},(0,s.Ko)(e.states.cachedOptions,((t,n)=>((0,s.wg)(),(0,s.iD)("div",{key:n,class:(0,c.C_)(e.nsSelectV2.e("selected-item"))},[((0,s.wg)(),(0,s.j4)(a,{key:e.getValueKey(t),closable:!e.selectDisabled&&!t.disabled,size:e.collapseTagSize,type:"info","disable-transitions":"",onClose:n=>e.deleteTag(n,t)},{default:(0,s.w5)((()=>[(0,s._)("span",{class:(0,c.C_)(e.nsSelectV2.e("tags-text")),style:(0,c.j5)({maxWidth:`${e.tagMaxWidth}px`})},(0,c.zw)(e.getLabel(t)),7)])),_:2},1032,["closable","size","onClose"]))],2)))),128)),(0,s._)("div",{class:(0,c.C_)([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-wrapper")]),style:(0,c.j5)(e.inputWrapperStyle)},[(0,s.wy)((0,s._)("input",{id:e.id,ref:"inputRef",autocomplete:e.autocomplete,"aria-autocomplete":"list","aria-haspopup":"listbox",autocapitalize:"off","aria-expanded":e.expanded,"aria-labelledby":e.label,class:(0,c.C_)([e.nsSelectV2.is(e.selectSize),e.nsSelectV2.e("combobox-input")]),disabled:e.disabled,role:"combobox",readonly:!e.filterable,spellcheck:"false",type:"text",name:e.name,unselectable:e.expanded?"on":void 0,"onUpdate:modelValue":t[1]||(t[1]=(...t)=>e.onUpdateInputValue&&e.onUpdateInputValue(...t)),onFocus:t[2]||(t[2]=(...t)=>e.handleFocus&&e.handleFocus(...t)),onInput:t[3]||(t[3]=(...t)=>e.onInput&&e.onInput(...t)),onCompositionstart:t[4]||(t[4]=(...t)=>e.handleCompositionStart&&e.handleCompositionStart(...t)),onCompositionupdate:t[5]||(t[5]=(...t)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...t)),onCompositionend:t[6]||(t[6]=(...t)=>e.handleCompositionEnd&&e.handleCompositionEnd(...t)),onKeydown:[t[7]||(t[7]=(0,S.D2)((0,S.iM)((t=>e.onKeyboardNavigate("backward")),["stop","prevent"]),["up"])),t[8]||(t[8]=(0,S.D2)((0,S.iM)((t=>e.onKeyboardNavigate("forward")),["stop","prevent"]),["down"])),t[9]||(t[9]=(0,S.D2)((0,S.iM)(((...t)=>e.onKeyboardSelect&&e.onKeyboardSelect(...t)),["stop","prevent"]),["enter"])),t[10]||(t[10]=(0,S.D2)((0,S.iM)(((...t)=>e.handleEsc&&e.handleEsc(...t)),["stop","prevent"]),["esc"])),t[11]||(t[11]=(0,S.D2)((0,S.iM)(((...t)=>e.handleDel&&e.handleDel(...t)),["stop"]),["delete"]))]},null,42,Tk),[[p,e.states.displayInputValue]]),e.filterable?((0,s.wg)(),(0,s.iD)("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:(0,c.C_)(e.nsSelectV2.e("input-calculator")),textContent:(0,c.zw)(e.states.displayInputValue)},null,10,Ek)):(0,s.kq)("v-if",!0)],6)],2)):((0,s.wg)(),(0,s.iD)(s.HY,{key:2},[(0,s._)("div",{class:(0,c.C_)([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-wrapper")])},[(0,s.wy)((0,s._)("input",{id:e.id,ref:"inputRef","aria-autocomplete":"list","aria-haspopup":"listbox","aria-labelledby":e.label,"aria-expanded":e.expanded,autocapitalize:"off",autocomplete:e.autocomplete,class:(0,c.C_)(e.nsSelectV2.e("combobox-input")),disabled:e.disabled,name:e.name,role:"combobox",readonly:!e.filterable,spellcheck:"false",type:"text",unselectable:e.expanded?"on":void 0,onCompositionstart:t[12]||(t[12]=(...t)=>e.handleCompositionStart&&e.handleCompositionStart(...t)),onCompositionupdate:t[13]||(t[13]=(...t)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...t)),onCompositionend:t[14]||(t[14]=(...t)=>e.handleCompositionEnd&&e.handleCompositionEnd(...t)),onFocus:t[15]||(t[15]=(...t)=>e.handleFocus&&e.handleFocus(...t)),onInput:t[16]||(t[16]=(...t)=>e.onInput&&e.onInput(...t)),onKeydown:[t[17]||(t[17]=(0,S.D2)((0,S.iM)((t=>e.onKeyboardNavigate("backward")),["stop","prevent"]),["up"])),t[18]||(t[18]=(0,S.D2)((0,S.iM)((t=>e.onKeyboardNavigate("forward")),["stop","prevent"]),["down"])),t[19]||(t[19]=(0,S.D2)((0,S.iM)(((...t)=>e.onKeyboardSelect&&e.onKeyboardSelect(...t)),["stop","prevent"]),["enter"])),t[20]||(t[20]=(0,S.D2)((0,S.iM)(((...t)=>e.handleEsc&&e.handleEsc(...t)),["stop","prevent"]),["esc"]))],"onUpdate:modelValue":t[21]||(t[21]=(...t)=>e.onUpdateInputValue&&e.onUpdateInputValue(...t))},null,42,Rk),[[p,e.states.displayInputValue]])],2),e.filterable?((0,s.wg)(),(0,s.iD)("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:(0,c.C_)([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-calculator")]),textContent:(0,c.zw)(e.states.displayInputValue)},null,10,Pk)):(0,s.kq)("v-if",!0)],64)),e.shouldShowPlaceholder?((0,s.wg)(),(0,s.iD)("span",{key:3,class:(0,c.C_)([e.nsSelectV2.e("placeholder"),e.nsSelectV2.is("transparent",e.states.isComposing||(e.placeholder&&e.multiple?0===e.modelValue.length:!e.hasModelValue))])},(0,c.zw)(e.currentPlaceholder),3)):(0,s.kq)("v-if",!0),(0,s._)("span",{class:(0,c.C_)(e.nsSelectV2.e("suffix"))},[e.iconComponent?(0,s.wy)(((0,s.wg)(),(0,s.j4)(u,{key:0,class:(0,c.C_)([e.nsSelectV2.e("caret"),e.nsInput.e("icon"),e.iconReverse])},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)(e.iconComponent)))])),_:1},8,["class"])),[[S.F8,!e.showClearBtn]]):(0,s.kq)("v-if",!0),e.showClearBtn&&e.clearIcon?((0,s.wg)(),(0,s.j4)(u,{key:1,class:(0,c.C_)([e.nsSelectV2.e("caret"),e.nsInput.e("icon")]),onClick:(0,S.iM)(e.handleClear,["prevent","stop"])},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)(e.clearIcon)))])),_:1},8,["class","onClick"])):(0,s.kq)("v-if",!0),e.validateState&&e.validateIcon?((0,s.wg)(),(0,s.j4)(u,{key:2,class:(0,c.C_)([e.nsInput.e("icon"),e.nsInput.e("validateIcon")])},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)(e.validateIcon)))])),_:1},8,["class"])):(0,s.kq)("v-if",!0)],2)],2)]})),content:(0,s.w5)((()=>[(0,s.Wm)(d,{ref:"menuRef",data:e.filteredOptions,width:e.popperSize,"hovering-index":e.states.hoveringIndex,"scrollbar-always-on":e.scrollbarAlwaysOn},{default:(0,s.w5)((t=>[(0,s.WI)(e.$slots,"default",(0,c.vs)((0,s.F4)(t)))])),empty:(0,s.w5)((()=>[(0,s.WI)(e.$slots,"empty",{},(()=>[(0,s._)("p",{class:(0,c.C_)(e.nsSelectV2.e("empty"))},(0,c.zw)(e.emptyText?e.emptyText:""),3)]))])),_:3},8,["data","width","hovering-index","scrollbar-always-on"])])),_:3},8,["visible","teleported","popper-class","popper-options","effect","transition","persistent","onBeforeShow"])],34)),[[f,e.handleClickOutside,e.popperRef]])}var Ak=(0,h.Z)(xk,[["render",Ok],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/select.vue"]]);Ak.install=e=>{e.component(Ak.name,Ak)};const Dk=Ak,Nk=Dk,Mk=(0,d.o8)({animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:Number}}),Lk=(0,s.aZ)({name:"PictureFilled"}),Fk={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Uk=(0,s._)("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32H96zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112zM256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384z"},null,-1),jk=[Uk];function Vk(e,t,n,r,o,i){return(0,s.wg)(),(0,s.iD)("svg",Fk,jk)}var Hk=(0,ce.Z)(Lk,[["render",Vk]]);const Bk=(0,d.o8)({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),$k={name:"ElSkeletonItem"},zk=(0,s.aZ)({...$k,props:Bk,setup(e){const t=(0,m.s)("skeleton");return(e,n)=>((0,s.wg)(),(0,s.iD)("div",{class:(0,c.C_)([(0,l.SU)(t).e("item"),(0,l.SU)(t).e(e.variant)])},["image"===e.variant?((0,s.wg)(),(0,s.j4)((0,l.SU)(Hk),{key:0})):(0,s.kq)("v-if",!0)],2))}});var Wk=(0,h.Z)(zk,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton-item.vue"]]);const qk=(e,t=0)=>{if(0===t)return e;const n=(0,l.iH)(!1);let r=0;const o=()=>{r&&clearTimeout(r),r=window.setTimeout((()=>{n.value=e.value}),t)};return(0,s.bv)(o),(0,s.YP)((()=>e.value),(e=>{e?o():n.value=e})),n},Zk={name:"ElSkeleton"},Yk=(0,s.aZ)({...Zk,props:Mk,setup(e,{expose:t}){const n=e,r=(0,m.s)("skeleton"),o=qk((0,l.Vh)(n,"loading"),n.throttle);return t({uiLoading:o}),(e,t)=>(0,l.SU)(o)?((0,s.wg)(),(0,s.iD)("div",(0,s.dG)({key:0,class:[(0,l.SU)(r).b(),(0,l.SU)(r).is("animated",e.animated)]},e.$attrs),[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e.count,(t=>((0,s.wg)(),(0,s.iD)(s.HY,{key:t},[e.loading?(0,s.WI)(e.$slots,"template",{key:t},(()=>[(0,s.Wm)(Wk,{class:(0,c.C_)((0,l.SU)(r).is("first")),variant:"p"},null,8,["class"]),((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e.rows,(t=>((0,s.wg)(),(0,s.j4)(Wk,{key:t,class:(0,c.C_)([(0,l.SU)(r).e("paragraph"),(0,l.SU)(r).is("last",t===e.rows&&e.rows>1)]),variant:"p"},null,8,["class"])))),128))])):(0,s.kq)("v-if",!0)],64)))),128))],16)):(0,s.WI)(e.$slots,"default",(0,c.vs)((0,s.dG)({key:1},e.$attrs)))}});var Kk=(0,h.Z)(Yk,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton.vue"]]);const Jk=(0,w.nz)(Kk,{SkeletonItem:Wk}),Gk=(0,w.dp)(Wk),Xk=(e,t,n)=>{const r=(0,l.iH)(null),o=(0,l.iH)(!1),i=(0,s.Fl)((()=>t.value instanceof Function)),a=(0,s.Fl)((()=>i.value&&t.value(e.modelValue)||e.modelValue)),c=(0,N.Z)((()=>{n.value&&(o.value=!0)}),50),u=(0,N.Z)((()=>{n.value&&(o.value=!1)}),50);return{tooltip:r,tooltipVisible:o,formatValue:a,displayTooltip:c,hideTooltip:u}},Qk=(e,t,n)=>{const{disabled:r,min:o,max:i,step:a,showTooltip:l,precision:c,sliderSize:u,formatTooltip:d,emitChange:p,resetSize:f,updateDragging:h}=(0,s.f3)("SliderProvider"),{tooltip:m,tooltipVisible:v,formatValue:g,displayTooltip:y,hideTooltip:b}=Xk(e,d,l),_=(0,s.Fl)((()=>(e.modelValue-o.value)/(i.value-o.value)*100+"%")),w=(0,s.Fl)((()=>e.vertical?{bottom:_.value}:{left:_.value})),k=()=>{t.hovering=!0,y()},S=()=>{t.hovering=!1,t.dragging||b()},C=e=>{r.value||(e.preventDefault(),E(e),(0,Xo.on)(window,"mousemove",R),(0,Xo.on)(window,"touchmove",R),(0,Xo.on)(window,"mouseup",P),(0,Xo.on)(window,"touchend",P),(0,Xo.on)(window,"contextmenu",P))},x=()=>{r.value||(t.newPosition=Number.parseFloat(_.value)-a.value/(i.value-o.value)*100,O(t.newPosition),p())},I=()=>{r.value||(t.newPosition=Number.parseFloat(_.value)+a.value/(i.value-o.value)*100,O(t.newPosition),p())},T=e=>{let t,n;return e.type.startsWith("touch")?(n=e.touches[0].clientY,t=e.touches[0].clientX):(n=e.clientY,t=e.clientX),{clientX:t,clientY:n}},E=n=>{t.dragging=!0,t.isClick=!0;const{clientX:r,clientY:o}=T(n);e.vertical?t.startY=o:t.startX=r,t.startPosition=Number.parseFloat(_.value),t.newPosition=t.startPosition},R=n=>{if(t.dragging){let r;t.isClick=!1,y(),f();const{clientX:o,clientY:i}=T(n);e.vertical?(t.currentY=i,r=(t.startY-t.currentY)/u.value*100):(t.currentX=o,r=(t.currentX-t.startX)/u.value*100),t.newPosition=t.startPosition+r,O(t.newPosition)}},P=()=>{t.dragging&&(setTimeout((()=>{t.dragging=!1,t.hovering||b(),t.isClick||(O(t.newPosition),p())}),0),(0,Xo.S1)(window,"mousemove",R),(0,Xo.S1)(window,"touchmove",R),(0,Xo.S1)(window,"mouseup",P),(0,Xo.S1)(window,"touchend",P),(0,Xo.S1)(window,"contextmenu",P))},O=async r=>{if(null===r||Number.isNaN(+r))return;r<0?r=0:r>100&&(r=100);const l=100/((i.value-o.value)/a.value),u=Math.round(r/l);let d=u*l*(i.value-o.value)*.01+o.value;d=Number.parseFloat(d.toFixed(c.value)),n(V.f_,d),t.dragging||e.modelValue===t.oldValue||(t.oldValue=e.modelValue),await(0,s.Y3)(),t.dragging&&y(),m.value.updatePopper()};return(0,s.YP)((()=>t.dragging),(e=>{h(e)})),{tooltip:m,tooltipVisible:v,showTooltip:l,wrapperStyle:w,formatValue:g,handleMouseEnter:k,handleMouseLeave:S,onButtonDown:C,onLeftKeyDown:x,onRightKeyDown:I,setPosition:O}},eS=(0,s.aZ)({name:"ElSliderButton",components:{ElTooltip:F.Q0},props:{modelValue:{type:Number,default:0},vertical:{type:Boolean,default:!1},tooltipClass:{type:String,default:""}},emits:[V.f_],setup(e,{emit:t}){const n=(0,m.s)("slider"),r=(0,l.qj)({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:e.modelValue}),{tooltip:o,showTooltip:i,tooltipVisible:a,wrapperStyle:s,formatValue:c,handleMouseEnter:u,handleMouseLeave:d,onButtonDown:p,onLeftKeyDown:f,onRightKeyDown:h,setPosition:v}=Qk(e,r,t),{hovering:g,dragging:y}=(0,l.BK)(r);return{ns:n,tooltip:o,tooltipVisible:a,showTooltip:i,wrapperStyle:s,formatValue:c,handleMouseEnter:u,handleMouseLeave:d,onButtonDown:p,onLeftKeyDown:f,onRightKeyDown:h,setPosition:v,hovering:g,dragging:y}}});function tS(e,t,n,r,o,i){const a=(0,s.up)("el-tooltip");return(0,s.wg)(),(0,s.iD)("div",{ref:"button",class:(0,c.C_)([e.ns.e("button-wrapper"),{hover:e.hovering,dragging:e.dragging}]),style:(0,c.j5)(e.wrapperStyle),tabindex:"0",onMouseenter:t[1]||(t[1]=(...t)=>e.handleMouseEnter&&e.handleMouseEnter(...t)),onMouseleave:t[2]||(t[2]=(...t)=>e.handleMouseLeave&&e.handleMouseLeave(...t)),onMousedown:t[3]||(t[3]=(...t)=>e.onButtonDown&&e.onButtonDown(...t)),onTouchstart:t[4]||(t[4]=(...t)=>e.onButtonDown&&e.onButtonDown(...t)),onFocus:t[5]||(t[5]=(...t)=>e.handleMouseEnter&&e.handleMouseEnter(...t)),onBlur:t[6]||(t[6]=(...t)=>e.handleMouseLeave&&e.handleMouseLeave(...t)),onKeydown:[t[7]||(t[7]=(0,S.D2)(((...t)=>e.onLeftKeyDown&&e.onLeftKeyDown(...t)),["left"])),t[8]||(t[8]=(0,S.D2)(((...t)=>e.onRightKeyDown&&e.onRightKeyDown(...t)),["right"])),t[9]||(t[9]=(0,S.D2)((0,S.iM)(((...t)=>e.onLeftKeyDown&&e.onLeftKeyDown(...t)),["prevent"]),["down"])),t[10]||(t[10]=(0,S.D2)((0,S.iM)(((...t)=>e.onRightKeyDown&&e.onRightKeyDown(...t)),["prevent"]),["up"]))]},[(0,s.Wm)(a,{ref:"tooltip",visible:e.tooltipVisible,"onUpdate:visible":t[0]||(t[0]=t=>e.tooltipVisible=t),placement:"top","stop-popper-mouse-event":!1,"popper-class":e.tooltipClass,disabled:!e.showTooltip,persistent:""},{content:(0,s.w5)((()=>[(0,s._)("span",null,(0,c.zw)(e.formatValue),1)])),default:(0,s.w5)((()=>[(0,s._)("div",{class:(0,c.C_)([e.ns.e("button"),{hover:e.hovering,dragging:e.dragging}])},null,2)])),_:1},8,["visible","popper-class","disabled"])],38)}var nS=(0,h.Z)(eS,[["render",tS],["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/button.vue"]]);const rS=(0,s.aZ)({name:"ElMarker",props:{mark:{type:[String,Object],default:()=>{}}},setup(e){const t=(0,m.s)("slider"),n=(0,s.Fl)((()=>"string"===typeof e.mark?e.mark:e.mark.label));return{ns:t,label:n}},render(){var e;return(0,s.h)("div",{class:this.ns.e("marks-text"),style:null==(e=this.mark)?void 0:e.style},this.label)}});var oS=(0,h.Z)(rS,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/marker.vue"]]);const iS=e=>(0,s.Fl)((()=>{if(!e.marks)return[];const t=Object.keys(e.marks);return t.map(parseFloat).sort(((e,t)=>e-t)).filter((t=>t<=e.max&&t>=e.min)).map((t=>({point:t,position:100*(t-e.min)/(e.max-e.min),mark:e.marks[t]})))})),aS=(e,t,n)=>{const r=(0,s.f3)(rn.H,{}),o=(0,s.f3)(rn.K,{}),i=(0,l.XI)(null),a=(0,l.iH)(null),c=(0,l.iH)(null),u={firstButton:a,secondButton:c},d=(0,s.Fl)((()=>e.disabled||r.disabled||!1)),p=(0,s.Fl)((()=>Math.min(t.firstValue,t.secondValue))),f=(0,s.Fl)((()=>Math.max(t.firstValue,t.secondValue))),h=(0,s.Fl)((()=>e.range?100*(f.value-p.value)/(e.max-e.min)+"%":100*(t.firstValue-e.min)/(e.max-e.min)+"%")),m=(0,s.Fl)((()=>e.range?100*(p.value-e.min)/(e.max-e.min)+"%":"0%")),v=(0,s.Fl)((()=>e.vertical?{height:e.height}:{})),g=(0,s.Fl)((()=>e.vertical?{height:h.value,bottom:m.value}:{width:h.value,left:m.value})),y=()=>{i.value&&(t.sliderSize=i.value["client"+(e.vertical?"Height":"Width")])},b=n=>{const r=e.min+n*(e.max-e.min)/100;if(!e.range)return void a.value.setPosition(n);let o;o=Math.abs(p.value-r)<Math.abs(f.value-r)?t.firstValue<t.secondValue?"firstButton":"secondButton":t.firstValue>t.secondValue?"firstButton":"secondButton",u[o].value.setPosition(n)},_=n=>{t.firstValue=n,k(e.range?[p.value,f.value]:n)},w=n=>{t.secondValue=n,e.range&&k([p.value,f.value])},k=e=>{n(V.f_,e),n(V.e_,e)},S=async()=>{await(0,s.Y3)(),n(V.O7,e.range?[p.value,f.value]:e.modelValue)},C=n=>{if(!d.value&&!t.dragging){if(y(),e.vertical){const e=i.value.getBoundingClientRect().bottom;b((e-n.clientY)/t.sliderSize*100)}else{const e=i.value.getBoundingClientRect().left;b((n.clientX-e)/t.sliderSize*100)}S()}};return{elFormItem:o,slider:i,firstButton:a,secondButton:c,sliderDisabled:d,minValue:p,maxValue:f,runwayStyle:v,barStyle:g,resetSize:y,setPosition:b,emitChange:S,onSliderClick:C,setFirstValue:_,setSecondValue:w}},sS=(e,t,n,r)=>{const o=(0,s.Fl)((()=>{if(!e.showStops||e.min>e.max)return[];if(0===e.step)return(0,v.N)("Slider","step should not be 0."),[];const o=(e.max-e.min)/e.step,i=100*e.step/(e.max-e.min),a=Array.from({length:o-1}).map(((e,t)=>(t+1)*i));return e.range?a.filter((t=>t<100*(n.value-e.min)/(e.max-e.min)||t>100*(r.value-e.min)/(e.max-e.min))):a.filter((n=>n>100*(t.firstValue-e.min)/(e.max-e.min)))})),i=t=>e.vertical?{bottom:`${t}%`}:{left:`${t}%`};return{stops:o,getStopStyle:i}},lS=(0,s.aZ)({name:"ElSlider",components:{ElInputNumber:Dg,SliderButton:nS,SliderMarker:oS},props:{modelValue:{type:[Number,Array],default:0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},showInput:{type:Boolean,default:!1},showInputControls:{type:Boolean,default:!0},size:{type:String,validator:hn.P},inputSize:{type:String,validator:hn.P},showStops:{type:Boolean,default:!1},showTooltip:{type:Boolean,default:!0},formatTooltip:{type:Function,default:void 0},disabled:{type:Boolean,default:!1},range:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1},height:{type:String,default:""},debounce:{type:Number,default:300},label:{type:String,default:void 0},tooltipClass:{type:String,default:void 0},marks:Object},emits:[V.f_,V.O7,V.e_],setup(e,{emit:t}){const n=(0,m.s)("slider"),r=(0,l.qj)({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:o,slider:i,firstButton:a,secondButton:c,sliderDisabled:u,minValue:d,maxValue:p,runwayStyle:f,barStyle:h,resetSize:v,emitChange:g,onSliderClick:y,setFirstValue:b,setSecondValue:_}=aS(e,r,t),{stops:w,getStopStyle:k}=sS(e,r,d,p),S=(0,on.tH)(),C=(0,s.Fl)((()=>e.inputSize||S.value)),x=(0,s.Fl)((()=>[n.b(),n.m(S.value),n.is("vertical",e.vertical),{[n.m("with-input")]:e.showInput}])),I=iS(e);cS(e,r,d,p,t,o);const T=(0,s.Fl)((()=>{const t=[e.min,e.max,e.step].map((e=>{const t=`${e}`.split(".")[1];return t?t.length:0}));return Math.max.apply(null,t)})),{sliderWrapper:E}=uS(e,r,v),{firstValue:R,secondValue:P,oldValue:O,dragging:A,sliderSize:D}=(0,l.BK)(r),N=e=>{r.dragging=e};return(0,s.JJ)("SliderProvider",{...(0,l.BK)(e),sliderSize:D,disabled:u,precision:T,emitChange:g,resetSize:v,updateDragging:N}),{ns:n,firstValue:R,secondValue:P,oldValue:O,dragging:A,sliderSize:D,slider:i,firstButton:a,secondButton:c,sliderDisabled:u,runwayStyle:f,barStyle:h,emitChange:g,onSliderClick:y,getStopStyle:k,setFirstValue:b,setSecondValue:_,stops:w,markList:I,sliderWrapper:E,sliderWrapperSize:S,sliderInputSize:C,sliderKls:x}}}),cS=(e,t,n,r,o,i)=>{const a=e=>{o(V.f_,e),o(V.e_,e)},l=()=>e.range?![n.value,r.value].every(((e,n)=>e===t.oldValue[n])):e.modelValue!==t.oldValue,c=()=>{var n,r;if(e.min>e.max)return void(0,v._)("Slider","min should not be greater than max.");const o=e.modelValue;e.range&&Array.isArray(o)?o[1]<e.min?a([e.min,e.min]):o[0]>e.max?a([e.max,e.max]):o[0]<e.min?a([e.min,o[1]]):o[1]>e.max?a([o[0],e.max]):(t.firstValue=o[0],t.secondValue=o[1],l()&&(null==(n=i.validate)||n.call(i,"change").catch((e=>(0,v.N)(e))),t.oldValue=o.slice())):e.range||"number"!==typeof o||Number.isNaN(o)||(o<e.min?a(e.min):o>e.max?a(e.max):(t.firstValue=o,l()&&(null==(r=i.validate)||r.call(i,"change").catch((e=>(0,v.N)(e))),t.oldValue=o)))};c(),(0,s.YP)((()=>t.dragging),(e=>{e||c()})),(0,s.YP)((()=>e.modelValue),((e,n)=>{t.dragging||Array.isArray(e)&&Array.isArray(n)&&e.every(((e,t)=>e===n[t]))&&t.firstValue===e[0]&&t.secondValue===e[1]||c()}),{deep:!0}),(0,s.YP)((()=>[e.min,e.max]),(()=>{c()}))},uS=(e,t,n)=>{const r=(0,l.iH)(null);return(0,s.bv)((async()=>{let o;e.range?(Array.isArray(e.modelValue)?(t.firstValue=Math.max(e.min,e.modelValue[0]),t.secondValue=Math.min(e.max,e.modelValue[1])):(t.firstValue=e.min,t.secondValue=e.max),t.oldValue=[t.firstValue,t.secondValue],o=`${t.firstValue}-${t.secondValue}`):("number"!==typeof e.modelValue||Number.isNaN(e.modelValue)?t.firstValue=e.min:t.firstValue=Math.min(e.max,Math.max(e.min,e.modelValue)),t.oldValue=t.firstValue,o=t.firstValue),r.value.setAttribute("aria-valuetext",o),r.value.setAttribute("aria-label",e.label?e.label:`slider between ${e.min} and ${e.max}`),(0,Xo.on)(window,"resize",n),await(0,s.Y3)(),n()})),(0,s.Jd)((()=>{(0,Xo.S1)(window,"resize",n)})),{sliderWrapper:r}},dS=["aria-valuemin","aria-valuemax","aria-orientation","aria-disabled"],pS={key:1};function fS(e,t,n,r,o,i){const a=(0,s.up)("slider-button"),l=(0,s.up)("slider-marker"),u=(0,s.up)("el-input-number");return(0,s.wg)(),(0,s.iD)("div",{ref:"sliderWrapper",class:(0,c.C_)(e.sliderKls),role:"slider","aria-valuemin":e.min,"aria-valuemax":e.max,"aria-orientation":e.vertical?"vertical":"horizontal","aria-disabled":e.sliderDisabled},[(0,s._)("div",{ref:"slider",class:(0,c.C_)([e.ns.e("runway"),{"show-input":e.showInput&&!e.range},e.ns.is("disabled",e.sliderDisabled)]),style:(0,c.j5)(e.runwayStyle),onClick:t[0]||(t[0]=(...t)=>e.onSliderClick&&e.onSliderClick(...t))},[(0,s._)("div",{class:(0,c.C_)(e.ns.e("bar")),style:(0,c.j5)(e.barStyle)},null,6),(0,s.Wm)(a,{ref:"firstButton","model-value":e.firstValue,vertical:e.vertical,"tooltip-class":e.tooltipClass,"onUpdate:modelValue":e.setFirstValue},null,8,["model-value","vertical","tooltip-class","onUpdate:modelValue"]),e.range?((0,s.wg)(),(0,s.j4)(a,{key:0,ref:"secondButton","model-value":e.secondValue,vertical:e.vertical,"tooltip-class":e.tooltipClass,"onUpdate:modelValue":e.setSecondValue},null,8,["model-value","vertical","tooltip-class","onUpdate:modelValue"])):(0,s.kq)("v-if",!0),e.showStops?((0,s.wg)(),(0,s.iD)("div",pS,[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e.stops,((t,n)=>((0,s.wg)(),(0,s.iD)("div",{key:n,class:(0,c.C_)(e.ns.e("stop")),style:(0,c.j5)(e.getStopStyle(t))},null,6)))),128))])):(0,s.kq)("v-if",!0),e.markList.length>0?((0,s.wg)(),(0,s.iD)(s.HY,{key:2},[(0,s._)("div",null,[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e.markList,((t,n)=>((0,s.wg)(),(0,s.iD)("div",{key:n,style:(0,c.j5)(e.getStopStyle(t.position)),class:(0,c.C_)([e.ns.e("stop"),e.ns.e("marks-stop")])},null,6)))),128))]),(0,s._)("div",{class:(0,c.C_)(e.ns.e("marks"))},[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e.markList,((t,n)=>((0,s.wg)(),(0,s.j4)(l,{key:n,mark:t.mark,style:(0,c.j5)(e.getStopStyle(t.position))},null,8,["mark","style"])))),128))],2)],64)):(0,s.kq)("v-if",!0)],6),e.showInput&&!e.range?((0,s.wg)(),(0,s.j4)(u,{key:0,ref:"input","model-value":e.firstValue,class:(0,c.C_)(e.ns.e("input")),step:e.step,disabled:e.sliderDisabled,controls:e.showInputControls,min:e.min,max:e.max,debounce:e.debounce,size:e.sliderInputSize,"onUpdate:modelValue":e.setFirstValue,onChange:e.emitChange},null,8,["model-value","class","step","disabled","controls","min","max","debounce","size","onUpdate:modelValue","onChange"])):(0,s.kq)("v-if",!0)],10,dS)}var hS=(0,h.Z)(lS,[["render",fS],["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/index.vue"]]);hS.install=e=>{e.component(hS.name,hS)};const mS=hS,vS=mS,gS=(0,d.o8)({prefixCls:{type:String,default:""}}),yS=(0,s.aZ)({props:gS,setup(e){const t=(0,m.s)("space"),n=(0,s.Fl)((()=>`${e.prefixCls||t.b()}__item`));return{classes:n}}});function bS(e,t,n,r,o,i){return(0,s.wg)(),(0,s.iD)("div",{class:(0,c.C_)(e.classes)},[(0,s.WI)(e.$slots,"default")],2)}var _S=(0,h.Z)(yS,[["render",bS],["__file","/home/runner/work/element-plus/element-plus/packages/components/space/src/item.vue"]]);const wS={small:8,default:12,large:16};function kS(e){const t=(0,m.s)("space"),n=(0,s.Fl)((()=>[t.b(),t.m(e.direction),e.class])),r=(0,l.iH)(0),o=(0,l.iH)(0),i=(0,s.Fl)((()=>{const t=e.wrap||e.fill?{flexWrap:"wrap",marginBottom:`-${o.value}px`}:{},n={alignItems:e.alignment};return[t,n,e.style]})),a=(0,s.Fl)((()=>{const t={paddingBottom:`${o.value}px`,marginRight:`${r.value}px`},n=e.fill?{flexGrow:1,minWidth:`${e.fillRatio}%`}:{};return[t,n]}));return(0,s.m0)((()=>{const{size:t="small",wrap:n,direction:i,fill:a}=e;if(Array.isArray(t)){const[e=0,n=0]=t;r.value=e,o.value=n}else{let e;e=(0,ne.hj)(t)?t:wS[t]||wS.small,(n||a)&&"horizontal"===i?r.value=o.value=e:"horizontal"===i?(r.value=e,o.value=0):(o.value=e,r.value=0)}})),{classes:n,containerStyle:i,itemStyle:a}}const SS=(0,d.o8)({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:(0,d.Cq)([String,Object,Array]),default:""},style:{type:(0,d.Cq)([String,Array,Object]),default:""},alignment:{type:(0,d.Cq)(String),default:"center"},prefixCls:{type:String},spacer:{type:(0,d.Cq)([Object,String,Number,Array]),default:null,validator:e=>(0,s.lA)(e)||(0,ne.hj)(e)||(0,c.HD)(e)},wrap:{type:Boolean,default:!1},fill:{type:Boolean,default:!1},fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:Q.k,validator:e=>(0,ne.hj)(e)||(0,c.kJ)(e)&&2===e.length&&e.every((e=>(0,ne.hj)(e)))}});var CS=(0,s.aZ)({name:"ElSpace",props:SS,setup(e,{slots:t}){const{classes:n,containerStyle:r,itemStyle:o}=kS(e);return()=>{var i;const{spacer:a,prefixCls:l,direction:u}=e,d=(0,s.WI)(t,"default",{key:0},(()=>[]));if(0===(null!=(i=d.children)?i:[]).length)return null;if((0,c.kJ)(d.children)){let e=[];if(d.children.forEach(((t,n)=>{Ql(t)?(0,c.kJ)(t.children)&&t.children.forEach(((t,n)=>{e.push((0,s.Wm)(_S,{style:o.value,prefixCls:l,key:`nested-${n}`},{default:()=>[t]},Xl.PROPS|Xl.STYLE,["style","prefixCls"]))})):tc(t)&&e.push((0,s.Wm)(_S,{style:o.value,prefixCls:l,key:`LoopKey${n}`},{default:()=>[t]},Xl.PROPS|Xl.STYLE,["style","prefixCls"]))})),a){const t=e.length-1;e=e.reduce(((e,n,r)=>{const i=[...e,n];return r!==t&&i.push((0,s.Wm)("span",{style:[o.value,"vertical"===u?"width: 100%":null],key:r},[(0,s.lA)(a)?a:(0,s.Uk)(a,Xl.TEXT)],Xl.STYLE)),i}),[])}return(0,s.Wm)("div",{class:n.value,style:r.value},e,Xl.STYLE|Xl.CLASS)}return d.children}}});const xS=(0,w.nz)(CS),IS=(0,s.aZ)({name:"ElSteps",props:{space:{type:[Number,String],default:""},active:{type:Number,default:0},direction:{type:String,default:"horizontal",validator:e=>["horizontal","vertical"].includes(e)},alignCenter:{type:Boolean,default:!1},simple:{type:Boolean,default:!1},finishStatus:{type:String,default:"finish",validator:e=>["wait","process","finish","error","success"].includes(e)},processStatus:{type:String,default:"process",validator:e=>["wait","process","finish","error","success"].includes(e)}},emits:[V.O7],setup(e,{emit:t}){const n=(0,m.s)("steps"),r=(0,l.iH)([]);return(0,s.YP)(r,(()=>{r.value.forEach(((e,t)=>{e.setIndex(t)}))})),(0,s.JJ)("ElSteps",{props:e,steps:r}),(0,s.YP)((()=>e.active),((e,n)=>{t(V.O7,e,n)})),{steps:r,ns:n}}});function TS(e,t,n,r,o,i){return(0,s.wg)(),(0,s.iD)("div",{class:(0,c.C_)([e.ns.b(),e.ns.m(e.simple?"simple":e.direction)])},[(0,s.WI)(e.$slots,"default")],2)}var ES=(0,h.Z)(IS,[["render",TS],["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/index.vue"]]);const RS=(0,s.aZ)({name:"ElStep",components:{ElIcon:C.gn,Close:Go.Z,Check:ur},props:{title:{type:String,default:""},icon:{type:[String,Object],default:""},description:{type:String,default:""},status:{type:String,default:"",validator:e=>["","wait","process","finish","error","success"].includes(e)}},setup(e){const t=(0,m.s)("step"),n=(0,l.iH)(-1),r=(0,l.iH)({}),o=(0,l.iH)(""),i=(0,s.f3)("ElSteps"),a=(0,s.FN)();(0,s.bv)((()=>{(0,s.YP)([()=>i.props.active,()=>i.props.processStatus,()=>i.props.finishStatus],(([e])=>{w(e)}),{immediate:!0})})),(0,s.Jd)((()=>{i.steps.value=i.steps.value.filter((e=>e.uid!==a.uid))}));const c=(0,s.Fl)((()=>e.status||o.value)),u=(0,s.Fl)((()=>{const e=i.steps.value[n.value-1];return e?e.currentStatus:"wait"})),d=(0,s.Fl)((()=>i.props.alignCenter)),p=(0,s.Fl)((()=>"vertical"===i.props.direction)),f=(0,s.Fl)((()=>i.props.simple)),h=(0,s.Fl)((()=>i.steps.value.length)),v=(0,s.Fl)((()=>{var e;return(null==(e=i.steps.value[h.value-1])?void 0:e.uid)===a.uid})),g=(0,s.Fl)((()=>f.value?"":i.props.space)),y=(0,s.Fl)((()=>{const e={flexBasis:"number"===typeof g.value?`${g.value}px`:g.value?g.value:100/(h.value-(d.value?0:1))+"%"};return p.value||v.value&&(e.maxWidth=100/h.value+"%"),e})),b=e=>{n.value=e},_=e=>{let t=100;const o={};o.transitionDelay=150*n.value+"ms",e===i.props.processStatus?t=0:"wait"===e&&(t=0,o.transitionDelay=-150*n.value+"ms"),o.borderWidth=t&&!f.value?"1px":0,o["vertical"===i.props.direction?"height":"width"]=`${t}%`,r.value=o},w=e=>{e>n.value?o.value=i.props.finishStatus:e===n.value&&"error"!==u.value?o.value=i.props.processStatus:o.value="wait";const t=i.steps.value[h.value-1];t&&t.calcProgress(o.value)},k=(0,l.qj)({uid:(0,s.Fl)((()=>a.uid)),currentStatus:c,setIndex:b,calcProgress:_});return i.steps.value=[...i.steps.value,k],{ns:t,index:n,lineStyle:r,currentStatus:c,isCenter:d,isVertical:p,isSimple:f,isLast:v,space:g,style:y,parent:i,setIndex:b,calcProgress:_,updateStatus:w}}});function PS(e,t,n,r,o,i){const a=(0,s.up)("el-icon"),l=(0,s.up)("check"),u=(0,s.up)("close");return(0,s.wg)(),(0,s.iD)("div",{style:(0,c.j5)(e.style),class:(0,c.C_)([e.ns.b(),e.ns.is(e.isSimple?"simple":e.parent.props.direction),e.ns.is("flex",e.isLast&&!e.space&&!e.isCenter),e.ns.is("center",e.isCenter&&!e.isVertical&&!e.isSimple)])},[(0,s.kq)(" icon & line "),(0,s._)("div",{class:(0,c.C_)([e.ns.e("head"),e.ns.is(e.currentStatus)])},[e.isSimple?(0,s.kq)("v-if",!0):((0,s.wg)(),(0,s.iD)("div",{key:0,class:(0,c.C_)(e.ns.e("line"))},[(0,s._)("i",{class:(0,c.C_)(e.ns.e("line-inner")),style:(0,c.j5)(e.lineStyle)},null,6)],2)),(0,s._)("div",{class:(0,c.C_)([e.ns.e("icon"),e.ns.is(e.icon?"icon":"text")])},["success"!==e.currentStatus&&"error"!==e.currentStatus?(0,s.WI)(e.$slots,"icon",{key:0},(()=>[e.icon?((0,s.wg)(),(0,s.j4)(a,{key:0,class:(0,c.C_)(e.ns.e("icon-inner"))},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)(e.icon)))])),_:1},8,["class"])):(0,s.kq)("v-if",!0),e.icon||e.isSimple?(0,s.kq)("v-if",!0):((0,s.wg)(),(0,s.iD)("div",{key:1,class:(0,c.C_)(e.ns.e("icon-inner"))},(0,c.zw)(e.index+1),3))])):((0,s.wg)(),(0,s.j4)(a,{key:1,class:(0,c.C_)([e.ns.e("icon-inner"),e.ns.is("status")])},{default:(0,s.w5)((()=>["success"===e.currentStatus?((0,s.wg)(),(0,s.j4)(l,{key:0})):((0,s.wg)(),(0,s.j4)(u,{key:1}))])),_:1},8,["class"]))],2)],2),(0,s.kq)(" title & description "),(0,s._)("div",{class:(0,c.C_)(e.ns.e("main"))},[(0,s._)("div",{class:(0,c.C_)([e.ns.e("title"),e.ns.is(e.currentStatus)])},[(0,s.WI)(e.$slots,"title",{},(()=>[(0,s.Uk)((0,c.zw)(e.title),1)]))],2),e.isSimple?((0,s.wg)(),(0,s.iD)("div",{key:0,class:(0,c.C_)(e.ns.e("arrow"))},null,2)):((0,s.wg)(),(0,s.iD)("div",{key:1,class:(0,c.C_)([e.ns.e("description"),e.ns.is(e.currentStatus)])},[(0,s.WI)(e.$slots,"description",{},(()=>[(0,s.Uk)((0,c.zw)(e.description),1)]))],2))],2)],6)}var OS=(0,h.Z)(RS,[["render",PS],["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/item.vue"]]);const AS=(0,w.nz)(ES,{Step:OS}),DS=(0,w.dp)(OS),NS=(0,d.o8)({modelValue:{type:[Boolean,String,Number],default:!1},value:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},width:{type:Number,default:40},inlinePrompt:{type:Boolean,default:!1},activeIcon:{type:I.AA,default:""},inactiveIcon:{type:I.AA,default:""},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},borderColor:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},id:String,loading:{type:Boolean,default:!1},beforeChange:{type:(0,d.Cq)(Function)},size:{type:String,validator:hn.P}}),MS={[V.f_]:e=>(0,ne.jn)(e)||(0,c.HD)(e)||(0,ne.hj)(e),[V.O7]:e=>(0,ne.jn)(e)||(0,c.HD)(e)||(0,ne.hj)(e),[V.e_]:e=>(0,ne.jn)(e)||(0,c.HD)(e)||(0,ne.hj)(e)},LS="ElSwitch",FS=(0,s.aZ)({name:LS,components:{ElIcon:C.gn,Loading:U.Z},props:NS,emits:MS,setup(e,{emit:t}){const{formItem:n}=(0,Gn.A)(),r=(0,on.B4)((0,s.Fl)((()=>e.loading))),o=(0,m.s)("switch"),i=(0,on.tH)(),a=(0,l.iH)(!1!==e.modelValue),u=(0,l.iH)(),d=(0,l.iH)(),p=(0,s.Fl)((()=>[o.b(),o.m(i.value),o.is("disabled",r.value),o.is("checked",h.value)]));(0,s.YP)((()=>e.modelValue),(()=>{a.value=!0})),(0,s.YP)((()=>e.value),(()=>{a.value=!1}));const f=(0,s.Fl)((()=>a.value?e.modelValue:e.value)),h=(0,s.Fl)((()=>f.value===e.activeValue));[e.activeValue,e.inactiveValue].includes(f.value)||(t(V.f_,e.inactiveValue),t(V.O7,e.inactiveValue),t(V.e_,e.inactiveValue)),(0,s.YP)(h,(()=>{var t;u.value.checked=h.value,(e.activeColor||e.inactiveColor)&&b(),e.validateEvent&&(null==(t=null==n?void 0:n.validate)||t.call(n,"change").catch((e=>(0,v.N)(e))))}));const g=()=>{const n=h.value?e.inactiveValue:e.activeValue;t(V.f_,n),t(V.O7,n),t(V.e_,n),(0,s.Y3)((()=>{u.value.checked=h.value}))},y=()=>{if(r.value)return;const{beforeChange:t}=e;if(!t)return void g();const n=t(),o=[(0,c.tI)(n),(0,ne.jn)(n)].some((e=>e));o||(0,v._)(LS,"beforeChange must return type `Promise<boolean>` or `boolean`"),(0,c.tI)(n)?n.then((e=>{e&&g()})).catch((e=>{(0,v.N)(LS,`some error occurred: ${e}`)})):n&&g()},b=()=>{const t=h.value?e.activeColor:e.inactiveColor,n=d.value;e.borderColor?n.style.borderColor=e.borderColor:e.borderColor||(n.style.borderColor=t),n.style.backgroundColor=t,n.children[0].style.color=t},_=()=>{var e,t;null==(t=null==(e=u.value)?void 0:e.focus)||t.call(e)};return(0,s.bv)((()=>{(e.activeColor||e.inactiveColor||e.borderColor)&&b(),u.value.checked=h.value})),{ns:o,input:u,core:d,switchDisabled:r,checked:h,switchKls:p,handleChange:g,switchValue:y,focus:_}}}),US=["aria-checked","aria-disabled"],jS=["id","name","true-value","false-value","disabled"],VS=["aria-hidden"],HS=["aria-hidden"],BS=["aria-hidden"],$S=["aria-hidden"];function zS(e,t,n,r,o,i){const a=(0,s.up)("el-icon"),l=(0,s.up)("loading");return(0,s.wg)(),(0,s.iD)("div",{class:(0,c.C_)(e.switchKls),role:"switch","aria-checked":e.checked,"aria-disabled":e.switchDisabled,onClick:t[2]||(t[2]=(0,S.iM)(((...t)=>e.switchValue&&e.switchValue(...t)),["prevent"]))},[(0,s._)("input",{id:e.id,ref:"input",class:(0,c.C_)(e.ns.e("input")),type:"checkbox",name:e.name,"true-value":e.activeValue,"false-value":e.inactiveValue,disabled:e.switchDisabled,onChange:t[0]||(t[0]=(...t)=>e.handleChange&&e.handleChange(...t)),onKeydown:t[1]||(t[1]=(0,S.D2)(((...t)=>e.switchValue&&e.switchValue(...t)),["enter"]))},null,42,jS),e.inlinePrompt||!e.inactiveIcon&&!e.inactiveText?(0,s.kq)("v-if",!0):((0,s.wg)(),(0,s.iD)("span",{key:0,class:(0,c.C_)([e.ns.e("label"),e.ns.em("label","left"),e.ns.is("active",!e.checked)])},[e.inactiveIcon?((0,s.wg)(),(0,s.j4)(a,{key:0},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)(e.inactiveIcon)))])),_:1})):(0,s.kq)("v-if",!0),!e.inactiveIcon&&e.inactiveText?((0,s.wg)(),(0,s.iD)("span",{key:1,"aria-hidden":e.checked},(0,c.zw)(e.inactiveText),9,VS)):(0,s.kq)("v-if",!0)],2)),(0,s._)("span",{ref:"core",class:(0,c.C_)(e.ns.e("core")),style:(0,c.j5)({width:(e.width||40)+"px"})},[e.inlinePrompt?((0,s.wg)(),(0,s.iD)("div",{key:0,class:(0,c.C_)(e.ns.e("inner"))},[e.activeIcon||e.inactiveIcon?((0,s.wg)(),(0,s.iD)(s.HY,{key:0},[e.activeIcon?((0,s.wg)(),(0,s.j4)(a,{key:0,class:(0,c.C_)([e.ns.is("icon"),e.checked?e.ns.is("show"):e.ns.is("hide")])},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)(e.activeIcon)))])),_:1},8,["class"])):(0,s.kq)("v-if",!0),e.inactiveIcon?((0,s.wg)(),(0,s.j4)(a,{key:1,class:(0,c.C_)([e.ns.is("icon"),e.checked?e.ns.is("hide"):e.ns.is("show")])},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)(e.inactiveIcon)))])),_:1},8,["class"])):(0,s.kq)("v-if",!0)],64)):e.activeText||e.inactiveIcon?((0,s.wg)(),(0,s.iD)(s.HY,{key:1},[e.activeText?((0,s.wg)(),(0,s.iD)("span",{key:0,class:(0,c.C_)([e.ns.is("text"),e.checked?e.ns.is("show"):e.ns.is("hide")]),"aria-hidden":!e.checked},(0,c.zw)(e.activeText.substring(0,3)),11,HS)):(0,s.kq)("v-if",!0),e.inactiveText?((0,s.wg)(),(0,s.iD)("span",{key:1,class:(0,c.C_)([e.ns.is("text"),e.checked?e.ns.is("hide"):e.ns.is("show")]),"aria-hidden":e.checked},(0,c.zw)(e.inactiveText.substring(0,3)),11,BS)):(0,s.kq)("v-if",!0)],64)):(0,s.kq)("v-if",!0)],2)):(0,s.kq)("v-if",!0),(0,s._)("div",{class:(0,c.C_)(e.ns.e("action"))},[e.loading?((0,s.wg)(),(0,s.j4)(a,{key:0,class:(0,c.C_)(e.ns.is("loading"))},{default:(0,s.w5)((()=>[(0,s.Wm)(l)])),_:1},8,["class"])):(0,s.kq)("v-if",!0)],2)],6),e.inlinePrompt||!e.activeIcon&&!e.activeText?(0,s.kq)("v-if",!0):((0,s.wg)(),(0,s.iD)("span",{key:1,class:(0,c.C_)([e.ns.e("label"),e.ns.em("label","right"),e.ns.is("active",e.checked)])},[e.activeIcon?((0,s.wg)(),(0,s.j4)(a,{key:0},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)(e.activeIcon)))])),_:1})):(0,s.kq)("v-if",!0),!e.activeIcon&&e.activeText?((0,s.wg)(),(0,s.iD)("span",{key:1,"aria-hidden":!e.checked},(0,c.zw)(e.activeText),9,$S)):(0,s.kq)("v-if",!0)],2))],10,US)}var WS=(0,h.Z)(FS,[["render",zS],["__file","/home/runner/work/element-plus/element-plus/packages/components/switch/src/switch.vue"]]);const qS=(0,w.nz)(WS);var ZS=n(7928),YS=n(3403);const KS=function(e){let t=e.target;while(t&&"HTML"!==t.tagName.toUpperCase()){if("TD"===t.tagName.toUpperCase())return t;t=t.parentNode}return null},JS=function(e){return null!==e&&"object"===typeof e},GS=function(e,t,n,r,o){if(!t&&!r&&(!o||Array.isArray(o)&&!o.length))return e;n="string"===typeof n?"descending"===n?-1:1:n&&n<0?-1:1;const i=r?null:function(n,r){return o?(Array.isArray(o)||(o=[o]),o.map((t=>"string"===typeof t?(0,ew.Z)(n,t):t(n,r,e)))):("$key"!==t&&JS(n)&&"$value"in n&&(n=n.$value),[JS(n)?(0,ew.Z)(n,t):n])},a=function(e,t){if(r)return r(e.value,t.value);for(let n=0,r=e.key.length;n<r;n++){if(e.key[n]<t.key[n])return-1;if(e.key[n]>t.key[n])return 1}return 0};return e.map(((e,t)=>({value:e,index:t,key:i?i(e,t):null}))).sort(((e,t)=>{let r=a(e,t);return r||(r=e.index-t.index),r*+n})).map((e=>e.value))},XS=function(e,t){let n=null;return e.columns.forEach((e=>{e.id===t&&(n=e)})),n},QS=function(e,t){let n=null;for(let r=0;r<e.columns.length;r++){const o=e.columns[r];if(o.columnKey===t){n=o;break}}return n},eC=function(e,t,n){const r=(t.className||"").match(new RegExp(`${n}-table_[^\\s]+`,"gm"));return r?XS(e,r[0]):null},tC=(e,t)=>{if(!e)throw new Error("Row is required when get row identity");if("string"===typeof t){if(!t.includes("."))return`${e[t]}`;const n=t.split(".");let r=e;for(const e of n)r=r[e];return`${r}`}if("function"===typeof t)return t.call(null,e)},nC=function(e,t){const n={};return(e||[]).forEach(((e,r)=>{n[tC(e,t)]={row:e,index:r}})),n};function rC(e,t){const n={};let r;for(r in e)n[r]=e[r];for(r in t)if((0,c.RI)(t,r)){const e=t[r];"undefined"!==typeof e&&(n[r]=e)}return n}function oC(e){return""===e||void 0!==e&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function iC(e){return""===e||void 0!==e&&(e=oC(e),Number.isNaN(e)&&(e=80)),e}function aC(e){return"number"===typeof e?e:"string"===typeof e?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function sC(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce(((e,t)=>(...n)=>e(t(...n))))}function lC(e,t,n){let r=!1;const o=e.indexOf(t),i=-1!==o,a=()=>{e.push(t),r=!0},s=()=>{e.splice(o,1),r=!0};return"boolean"===typeof n?n&&!i?a():!n&&i&&s():i?s():a(),r}function cC(e,t,n="children",r="hasChildren"){const o=e=>!(Array.isArray(e)&&e.length);function i(e,a,s){t(e,a,s),a.forEach((e=>{if(e[r])return void t(e,null,s+1);const a=e[n];o(a)||i(e,a,s+1)}))}e.forEach((e=>{if(e[r])return void t(e,null,0);const a=e[n];o(a)||i(e,a,0)}))}let uC;function dC(e,t,n,r){const{nextZIndex:o}=(0,Rc.C)();function i(){const e="light"===r,n=document.createElement("div");return n.className="el-popper "+(e?"is-light":"is-dark"),t=YS(t),n.innerHTML=t,n.style.zIndex=String(o()),document.body.appendChild(n),n}function a(){const e=document.createElement("div");return e.className="el-popper__arrow",e}function s(){l&&l.update()}uC=function t(){try{l&&l.destroy(),c&&document.body.removeChild(c),(0,Xo.S1)(e,"mouseenter",s),(0,Xo.S1)(e,"mouseleave",t)}catch(ME){}};let l=null;const c=i(),u=a();return c.appendChild(u),l=(0,ZS.fi)(e,c,{modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"arrow",options:{element:u,padding:10}}],...n}),(0,Xo.on)(e,"mouseenter",s),(0,Xo.on)(e,"mouseleave",uC),l}const pC=(e,t,n,r)=>{let o,i=0,a=e;if(r){if(r[e].colSpan>1)return{};for(let t=0;t<e;t++)i+=r[t].colSpan;a=i+r[e].colSpan-1}else i=e;const s=n.states.columns;switch(t){case"left":a<n.states.fixedLeafColumnsLength.value&&(o="left");break;case"right":i>=s.value.length-n.states.rightFixedLeafColumnsLength.value&&(o="right");break;default:a<n.states.fixedLeafColumnsLength.value?o="left":i>=s.value.length-n.states.rightFixedLeafColumnsLength.value&&(o="right")}return o?{direction:o,start:i,after:a}:{}},fC=(e,t,n,r,o)=>{const i=[],{direction:a,start:s}=pC(t,n,r,o);if(a){const t="left"===a;i.push(`${e}-fixed-column--${a}`),t&&s===r.states.fixedLeafColumnsLength.value-1?i.push("is-last-column"):t||s!==r.states.columns.value.length-r.states.rightFixedLeafColumnsLength.value||i.push("is-first-column")}return i};function hC(e,t){return e+(null===t.realWidth||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const mC=(e,t,n,r)=>{const{direction:o,start:i=0}=pC(e,t,n,r);if(!o)return;const a={},s="left"===o,l=n.states.columns.value;return s?a.left=l.slice(0,e).reduce(hC,0):a.right=l.slice(i+1).reverse().reduce(hC,0),a},vC=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]=`${e[t]}px`))};function gC(e){const t=(0,s.FN)(),n=(0,l.iH)(!1),r=(0,l.iH)([]),o=()=>{const t=e.data.value||[],o=e.rowKey.value;if(n.value)r.value=t.slice();else if(o){const e=nC(r.value,o);r.value=t.reduce(((t,n)=>{const r=tC(n,o),i=e[r];return i&&t.push(n),t}),[])}else r.value=[]},i=(e,n)=>{const o=lC(r.value,e,n);o&&t.emit("expand-change",e,r.value.slice())},a=n=>{t.store.assertRowKey();const o=e.data.value||[],i=e.rowKey.value,a=nC(o,i);r.value=n.reduce(((e,t)=>{const n=a[t];return n&&e.push(n.row),e}),[])},c=t=>{const n=e.rowKey.value;if(n){const e=nC(r.value,n);return!!e[tC(t,n)]}return r.value.includes(t)};return{updateExpandRows:o,toggleRowExpansion:i,setExpandRowKeys:a,isRowExpanded:c,states:{expandRows:r,defaultExpandAll:n}}}function yC(e){const t=(0,s.FN)(),n=(0,l.iH)(null),r=(0,l.iH)(null),o=e=>{t.store.assertRowKey(),n.value=e,a(e)},i=()=>{n.value=null},a=n=>{const{data:o,rowKey:i}=e;let a=null;i.value&&(a=((0,l.SU)(o)||[]).find((e=>tC(e,i.value)===n))),r.value=a,t.emit("current-change",r.value,null)},c=e=>{const n=r.value;if(e&&e!==n)return r.value=e,void t.emit("current-change",r.value,n);!e&&n&&(r.value=null,t.emit("current-change",null,n))},u=()=>{const o=e.rowKey.value,s=e.data.value||[],l=r.value;if(!s.includes(l)&&l){if(o){const e=tC(l,o);a(e)}else r.value=null;null===r.value&&t.emit("current-change",null,l)}else n.value&&(a(n.value),i())};return{setCurrentRowKey:o,restoreCurrentRowKey:i,setCurrentRowByKey:a,updateCurrentRow:c,updateCurrentRowData:u,states:{_currentRowKey:n,currentRow:r}}}function bC(e){const t=(0,l.iH)([]),n=(0,l.iH)({}),r=(0,l.iH)(16),o=(0,l.iH)(!1),i=(0,l.iH)({}),a=(0,l.iH)("hasChildren"),c=(0,l.iH)("children"),u=(0,s.FN)(),d=(0,s.Fl)((()=>{if(!e.rowKey.value)return{};const t=e.data.value||[];return f(t)})),p=(0,s.Fl)((()=>{const t=e.rowKey.value,n=Object.keys(i.value),r={};return n.length?(n.forEach((e=>{if(i.value[e].length){const n={children:[]};i.value[e].forEach((e=>{const o=tC(e,t);n.children.push(o),e[a.value]&&!r[o]&&(r[o]={children:[]})})),r[e]=n}})),r):r})),f=t=>{const n=e.rowKey.value,r={};return cC(t,((e,t,i)=>{const a=tC(e,n);Array.isArray(t)?r[a]={children:t.map((e=>tC(e,n))),level:i}:o.value&&(r[a]={children:[],lazy:!0,level:i})}),c.value,a.value),r},h=(e=!1,r=(e=>null==(e=u.store)?void 0:e.states.defaultExpandAll.value)())=>{var i;const a=d.value,s=p.value,c=Object.keys(a),f={};if(c.length){const i=(0,l.SU)(n),u=[],d=(n,o)=>{if(e)return t.value?r||t.value.includes(o):!(!r&&!(null==n?void 0:n.expanded));{const e=r||t.value&&t.value.includes(o);return!(!(null==n?void 0:n.expanded)&&!e)}};c.forEach((e=>{const t=i[e],n={...a[e]};if(n.expanded=d(t,e),n.lazy){const{loaded:r=!1,loading:o=!1}=t||{};n.loaded=!!r,n.loading=!!o,u.push(e)}f[e]=n}));const p=Object.keys(s);o.value&&p.length&&u.length&&p.forEach((e=>{const t=i[e],n=s[e].children;if(u.includes(e)){if(0!==f[e].children.length)throw new Error("[ElTable]children must be an empty array.");f[e].children=n}else{const{loaded:r=!1,loading:o=!1}=t||{};f[e]={lazy:!0,loaded:!!r,loading:!!o,expanded:d(t,e),children:n,level:""}}}))}n.value=f,null==(i=u.store)||i.updateTableScrollY()};(0,s.YP)((()=>t.value),(()=>{h(!0)})),(0,s.YP)((()=>d.value),(()=>{h()})),(0,s.YP)((()=>p.value),(()=>{h()}));const m=e=>{t.value=e,h()},v=(t,r)=>{u.store.assertRowKey();const o=e.rowKey.value,i=tC(t,o),a=i&&n.value[i];if(i&&a&&"expanded"in a){const e=a.expanded;r="undefined"===typeof r?!a.expanded:r,n.value[i].expanded=r,e!==r&&u.emit("expand-change",t,r),u.store.updateTableScrollY()}},g=t=>{u.store.assertRowKey();const r=e.rowKey.value,i=tC(t,r),a=n.value[i];o.value&&a&&"loaded"in a&&!a.loaded?y(t,i,a):v(t,void 0)},y=(e,t,r)=>{const{load:o}=u.props;o&&!n.value[t].loaded&&(n.value[t].loading=!0,o(e,r,(r=>{if(!Array.isArray(r))throw new TypeError("[ElTable] data must be an array");n.value[t].loading=!1,n.value[t].loaded=!0,n.value[t].expanded=!0,r.length&&(i.value[t]=r),u.emit("expand-change",e,!0)})))};return{loadData:y,loadOrToggle:g,toggleTreeExpansion:v,updateTreeExpandKeys:m,updateTreeData:h,normalize:f,states:{expandRowKeys:t,treeData:n,indent:r,lazy:o,lazyTreeNodeMap:i,lazyColumnIdentifier:a,childrenColumnName:c}}}const _C=(e,t)=>{const n=t.sortingColumn;return n&&"string"!==typeof n.sortable?GS(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy):e},wC=e=>{const t=[];return e.forEach((e=>{e.children?t.push.apply(t,wC(e.children)):t.push(e)})),t};function kC(){var e;const t=(0,s.FN)(),{size:n}=(0,l.BK)(null==(e=t.proxy)?void 0:e.$props),r=(0,l.iH)(null),o=(0,l.iH)([]),i=(0,l.iH)([]),a=(0,l.iH)(!1),u=(0,l.iH)([]),d=(0,l.iH)([]),p=(0,l.iH)([]),f=(0,l.iH)([]),h=(0,l.iH)([]),m=(0,l.iH)([]),v=(0,l.iH)([]),g=(0,l.iH)([]),y=(0,l.iH)(0),b=(0,l.iH)(0),_=(0,l.iH)(0),w=(0,l.iH)(!1),k=(0,l.iH)([]),S=(0,l.iH)(!1),C=(0,l.iH)(!1),x=(0,l.iH)(null),I=(0,l.iH)({}),T=(0,l.iH)(null),E=(0,l.iH)(null),R=(0,l.iH)(null),P=(0,l.iH)(null),O=(0,l.iH)(null);(0,s.YP)(o,(()=>t.state&&N(!1)),{deep:!0});const A=()=>{if(!r.value)throw new Error("[ElTable] prop row-key is required")},D=()=>{f.value=u.value.filter((e=>!0===e.fixed||"left"===e.fixed)),h.value=u.value.filter((e=>"right"===e.fixed)),f.value.length>0&&u.value[0]&&"selection"===u.value[0].type&&!u.value[0].fixed&&(u.value[0].fixed=!0,f.value.unshift(u.value[0]));const e=u.value.filter((e=>!e.fixed));d.value=[].concat(f.value).concat(e).concat(h.value);const t=wC(e),n=wC(f.value),r=wC(h.value);y.value=t.length,b.value=n.length,_.value=r.length,p.value=[].concat(n).concat(t).concat(r),a.value=f.value.length>0||h.value.length>0},N=(e,n=!1)=>{e&&D(),n?t.state.doLayout():t.state.debouncedUpdateLayout()},M=e=>k.value.includes(e),L=()=>{w.value=!1;const e=k.value;e.length&&(k.value=[],t.emit("selection-change",[]))},F=()=>{let e;if(r.value){e=[];const t=nC(k.value,r.value),n=nC(o.value,r.value);for(const r in t)(0,c.RI)(t,r)&&!n[r]&&e.push(t[r].row)}else e=k.value.filter((e=>!o.value.includes(e)));if(e.length){const n=k.value.filter((t=>!e.includes(t)));k.value=n,t.emit("selection-change",n.slice())}},U=()=>(k.value||[]).slice(),j=(e,n,r=!0)=>{const o=lC(k.value,e,n);if(o){const n=(k.value||[]).slice();r&&t.emit("select",n,e),t.emit("selection-change",n)}},V=()=>{var e,n;const r=C.value?!w.value:!(w.value||k.value.length);w.value=r;let i=!1,a=0;const s=null==(n=null==(e=null==t?void 0:t.store)?void 0:e.states)?void 0:n.rowKey.value;o.value.forEach(((e,t)=>{const n=t+a;x.value?x.value.call(null,e,n)&&lC(k.value,e,r)&&(i=!0):lC(k.value,e,r)&&(i=!0),a+=$(tC(e,s))})),i&&t.emit("selection-change",k.value?k.value.slice():[]),t.emit("select-all",k.value)},H=()=>{const e=nC(k.value,r.value);o.value.forEach((t=>{const n=tC(t,r.value),o=e[n];o&&(k.value[o.index]=t)}))},B=()=>{var e,n,i;if(0===(null==(e=o.value)?void 0:e.length))return void(w.value=!1);let a;r.value&&(a=nC(k.value,r.value));const s=function(e){return a?!!a[tC(e,r.value)]:k.value.includes(e)};let l=!0,c=0,u=0;for(let r=0,d=(o.value||[]).length;r<d;r++){const e=null==(i=null==(n=null==t?void 0:t.store)?void 0:n.states)?void 0:i.rowKey.value,a=r+u,d=o.value[r],p=x.value&&x.value.call(null,d,a);if(s(d))c++;else if(!x.value||p){l=!1;break}u+=$(tC(d,e))}0===c&&(l=!1),w.value=l},$=e=>{var n;if(!t||!t.store)return 0;const{treeData:r}=t.store.states;let o=0;const i=null==(n=r.value[e])?void 0:n.children;return i&&(o+=i.length,i.forEach((e=>{o+=$(e)}))),o},z=(e,t)=>{Array.isArray(e)||(e=[e]);const n={};return e.forEach((e=>{I.value[e.id]=t,n[e.columnKey||e.id]=t})),n},W=(e,t,n)=>{E.value&&E.value!==e&&(E.value.order=null),E.value=e,R.value=t,P.value=n},q=()=>{let e=(0,l.SU)(i);Object.keys(I.value).forEach((t=>{const n=I.value[t];if(!n||0===n.length)return;const r=XS({columns:p.value},t);r&&r.filterMethod&&(e=e.filter((e=>n.some((t=>r.filterMethod.call(null,t,e,r))))))})),T.value=e},Z=()=>{o.value=_C(T.value,{sortingColumn:E.value,sortProp:R.value,sortOrder:P.value})},Y=e=>{e&&e.filter||q(),Z()},K=e=>{const{tableHeaderRef:n}=t.refs;if(!n)return;const r=Object.assign({},n.filterPanels),o=Object.keys(r);if(o.length)if("string"===typeof e&&(e=[e]),Array.isArray(e)){const n=e.map((e=>QS({columns:p.value},e)));o.forEach((e=>{const t=n.find((t=>t.id===e));t&&(t.filteredValue=[])})),t.store.commit("filterChange",{column:n,values:[],silent:!0,multi:!0})}else o.forEach((e=>{const t=p.value.find((t=>t.id===e));t&&(t.filteredValue=[])})),I.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},J=()=>{E.value&&(W(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:G,toggleRowExpansion:X,updateExpandRows:Q,states:ee,isRowExpanded:te}=gC({data:o,rowKey:r}),{updateTreeExpandKeys:ne,toggleTreeExpansion:re,updateTreeData:oe,loadOrToggle:ie,states:ae}=bC({data:o,rowKey:r}),{updateCurrentRowData:se,updateCurrentRow:le,setCurrentRowKey:ce,states:ue}=yC({data:o,rowKey:r}),de=e=>{G(e),ne(e)},pe=(e,t)=>{const n=p.value.some((({type:e})=>"expand"===e));n?X(e,t):re(e,t)};return{assertRowKey:A,updateColumns:D,scheduleLayout:N,isSelected:M,clearSelection:L,cleanSelection:F,getSelectionRows:U,toggleRowSelection:j,_toggleAllSelection:V,toggleAllSelection:null,updateSelectionByRowKey:H,updateAllSelected:B,updateFilters:z,updateCurrentRow:le,updateSort:W,execFilter:q,execSort:Z,execQuery:Y,clearFilter:K,clearSort:J,toggleRowExpansion:X,setExpandRowKeysAdapter:de,setCurrentRowKey:ce,toggleRowExpansionAdapter:pe,isRowExpanded:te,updateExpandRows:Q,updateCurrentRowData:se,loadOrToggle:ie,updateTreeData:oe,states:{tableSize:n,rowKey:r,data:o,_data:i,isComplex:a,_columns:u,originColumns:d,columns:p,fixedColumns:f,rightFixedColumns:h,leafColumns:m,fixedLeafColumns:v,rightFixedLeafColumns:g,leafColumnsLength:y,fixedLeafColumnsLength:b,rightFixedLeafColumnsLength:_,isAllSelected:w,selection:k,reserveSelection:S,selectOnIndeterminate:C,selectable:x,filters:I,filteredData:T,sortingColumn:E,sortProp:R,sortOrder:P,hoverRow:O,...ee,...ae,...ue}}}function SC(e,t){return e.map((e=>{var n;return e.id===t.id?t:((null==(n=e.children)?void 0:n.length)&&(e.children=SC(e.children,t)),e)}))}function CC(e){e.forEach((e=>{var t,n;e.no=null==(t=e.getColumnIndex)?void 0:t.call(e),(null==(n=e.children)?void 0:n.length)&&CC(e.children)})),e.sort(((e,t)=>e.no-t.no))}function xC(){const e=(0,s.FN)(),t=kC(),n=(0,m.s)("table"),r={setData(t,n){const r=(0,l.SU)(t._data)!==n;t.data.value=n,t._data.value=n,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),(0,l.SU)(t.reserveSelection)?(e.store.assertRowKey(),e.store.updateSelectionByRowKey()):r?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(t,n,r){const o=(0,l.SU)(t._columns);let i=[];r?(r&&!r.children&&(r.children=[]),r.children.push(n),i=SC(o,r)):(o.push(n),i=o),CC(i),t._columns.value=i,"selection"===n.type&&(t.selectable.value=n.selectable,t.reserveSelection.value=n.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},removeColumn(t,n,r){const o=(0,l.SU)(t._columns)||[];if(r)r.children.splice(r.children.findIndex((e=>e.id===n.id)),1),0===r.children.length&&delete r.children,t._columns.value=SC(o,r);else{const e=o.indexOf(n);e>-1&&(o.splice(e,1),t._columns.value=o)}e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(t,n){const{prop:r,order:o,init:i}=n;if(r){const n=(0,l.SU)(t.columns).find((e=>e.property===r));n&&(n.order=o,e.store.updateSort(n,r,o),e.store.commit("changeSortCondition",{init:i}))}},changeSortCondition(t,n){const{sortingColumn:r,sortProp:o,sortOrder:i}=t;null===(0,l.SU)(i)&&(t.sortingColumn.value=null,t.sortProp.value=null);const a={filter:!0};e.store.execQuery(a),n&&(n.silent||n.init)||e.emit("sort-change",{column:(0,l.SU)(r),prop:(0,l.SU)(o),order:(0,l.SU)(i)}),e.store.updateTableScrollY()},filterChange(t,n){const{column:r,values:o,silent:i}=n,a=e.store.updateFilters(r,o);e.store.execQuery(),i||e.emit("filter-change",a),e.store.updateTableScrollY()},toggleAllSelection(){e.store.toggleAllSelection()},rowSelectedChanged(t,n){e.store.toggleRowSelection(n),e.store.updateAllSelected()},setHoverRow(e,t){e.hoverRow.value=t},setCurrentRow(t,n){e.store.updateCurrentRow(n)}},o=function(t,...n){const r=e.store.mutations;if(!r[t])throw new Error(`Action not found: ${t}`);r[t].apply(e,[e.store.states].concat(n))},i=function(){(0,s.Y3)((()=>e.layout.updateScrollY.apply(e.layout)))};return{ns:n,...t,mutations:r,commit:o,updateTableScrollY:i}}const IC={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",data:"data",["treeProps.hasChildren"]:{key:"lazyColumnIdentifier",default:"hasChildren"},["treeProps.children"]:{key:"childrenColumnName",default:"children"}};function TC(e,t){if(!e)throw new Error("Table is required.");const n=xC();return n.toggleAllSelection=(0,N.Z)(n._toggleAllSelection,10),Object.keys(IC).forEach((e=>{RC(PC(t,e),e,n)})),EC(n,t),n}function EC(e,t){Object.keys(IC).forEach((n=>{(0,s.YP)((()=>PC(t,n)),(t=>{RC(t,n,e)}))}))}function RC(e,t,n){let r=e,o=IC[t];"object"===typeof IC[t]&&(o=o.key,r=r||IC[t].default),n.states[o].value=r}function PC(e,t){if(t.includes(".")){const n=t.split(".");let r=e;return n.forEach((e=>{r=r[e]})),r}return e[t]}class OC{constructor(e){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=(0,l.iH)(null),this.scrollX=(0,l.iH)(!1),this.scrollY=(0,l.iH)(!1),this.bodyWidth=(0,l.iH)(null),this.fixedWidth=(0,l.iH)(null),this.rightFixedWidth=(0,l.iH)(null),this.tableHeight=(0,l.iH)(null),this.headerHeight=(0,l.iH)(44),this.appendHeight=(0,l.iH)(0),this.footerHeight=(0,l.iH)(44),this.viewportHeight=(0,l.iH)(null),this.bodyHeight=(0,l.iH)(null),this.bodyScrollHeight=(0,l.iH)(0),this.fixedBodyHeight=(0,l.iH)(null),this.gutterWidth=0;for(const t in e)(0,c.RI)(e,t)&&((0,l.dq)(this[t])?this[t].value=e[t]:this[t]=e[t]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){const e=this.height.value;if(null===e)return!1;const t=this.table.refs.bodyWrapper;if(this.table.vnode.el&&t){let e=!0;const n=this.scrollY.value;return e=null!==this.bodyHeight.value&&t.scrollHeight>this.bodyHeight.value,this.scrollY.value=e,n!==e}return!1}setHeight(e,t="height"){if(!ne.C5)return;const n=this.table.vnode.el;if(e=aC(e),this.height.value=Number(e),!n&&(e||0===e))return(0,s.Y3)((()=>this.setHeight(e,t)));"number"===typeof e?(n.style[t]=`${e}px`,this.updateElsHeight()):"string"===typeof e&&(n.style[t]=e,this.updateElsHeight())}setMaxHeight(e){this.setHeight(e,"max-height")}getFlattenColumns(){const e=[],t=this.table.store.states.columns.value;return t.forEach((t=>{t.isColumnGroup?e.push.apply(e,t.columns):e.push(t)})),e}updateElsHeight(){var e,t;if(!this.table.$ready)return(0,s.Y3)((()=>this.updateElsHeight()));const{tableWrapper:n,headerWrapper:r,appendWrapper:o,footerWrapper:i,tableHeader:a,tableBody:l}=this.table.refs;if(n&&"none"===n.style.display)return;const{tableLayout:c}=this.table.props;if(this.appendHeight.value=o?o.offsetHeight:0,this.showHeader&&!r&&"fixed"===c)return;const u=a||null,d=this.headerDisplayNone(u),p=(null==r?void 0:r.offsetHeight)||0,f=this.headerHeight.value=this.showHeader?p:0;if(this.showHeader&&!d&&p>0&&(this.table.store.states.columns.value||[]).length>0&&f<2)return(0,s.Y3)((()=>this.updateElsHeight()));const h=this.tableHeight.value=null==(t=null==(e=this.table)?void 0:e.vnode.el)?void 0:t.clientHeight,m=this.footerHeight.value=i?i.offsetHeight:0;null!==this.height.value&&(null===this.bodyHeight.value&&requestAnimationFrame((()=>this.updateElsHeight())),this.bodyHeight.value=h-f-m+(i?1:0),this.bodyScrollHeight.value=null==l?void 0:l.scrollHeight),this.fixedBodyHeight.value=this.scrollX.value?this.bodyHeight.value-this.gutterWidth:this.bodyHeight.value,this.viewportHeight.value=this.scrollX.value?h-this.gutterWidth:h,this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(e){if(!e)return!0;let t=e;while("DIV"!==t.tagName){if("none"===getComputedStyle(t).display)return!0;t=t.parentElement}return!1}updateColumnsWidth(){if(!ne.C5)return;const e=this.fit,t=this.table.vnode.el.clientWidth;let n=0;const r=this.getFlattenColumns(),o=r.filter((e=>"number"!==typeof e.width));if(r.forEach((e=>{"number"===typeof e.width&&e.realWidth&&(e.realWidth=null)})),o.length>0&&e){if(r.forEach((e=>{n+=Number(e.width||e.minWidth||80)})),n<=t){this.scrollX.value=!1;const e=t-n;if(1===o.length)o[0].realWidth=Number(o[0].minWidth||80)+e;else{const t=o.reduce(((e,t)=>e+Number(t.minWidth||80)),0),n=e/t;let r=0;o.forEach(((e,t)=>{if(0===t)return;const o=Math.floor(Number(e.minWidth||80)*n);r+=o,e.realWidth=Number(e.minWidth||80)+o})),o[0].realWidth=Number(o[0].minWidth||80)+e-r}}else this.scrollX.value=!0,o.forEach((e=>{e.realWidth=Number(e.minWidth)}));this.bodyWidth.value=Math.max(n,t),this.table.state.resizeState.value.width=this.bodyWidth.value}else r.forEach((e=>{e.width||e.minWidth?e.realWidth=Number(e.width||e.minWidth):e.realWidth=80,n+=e.realWidth})),this.scrollX.value=n>t,this.bodyWidth.value=n;const i=this.store.states.fixedColumns.value;if(i.length>0){let e=0;i.forEach((t=>{e+=Number(t.realWidth||t.width)})),this.fixedWidth.value=e}const a=this.store.states.rightFixedColumns.value;if(a.length>0){let e=0;a.forEach((t=>{e+=Number(t.realWidth||t.width)})),this.rightFixedWidth.value=e}this.notifyObservers("columns")}addObserver(e){this.observers.push(e)}removeObserver(e){const t=this.observers.indexOf(e);-1!==t&&this.observers.splice(t,1)}notifyObservers(e){const t=this.observers;t.forEach((t=>{var n,r;switch(e){case"columns":null==(n=t.state)||n.onColumnsChange(this);break;case"scrollable":null==(r=t.state)||r.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${e}.`)}}))}}const{CheckboxGroup:AC}=Pn,DC=(0,s.aZ)({name:"ElTableFilterPanel",components:{ElCheckbox:Pn,ElCheckboxGroup:AC,ElScrollbar:L.Mr,ElTooltip:F.Q0,ElIcon:C.gn,ArrowDown:to,ArrowUp:os.Z},directives:{ClickOutside:no.Z},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup(e){const t=(0,s.FN)(),{t:n}=(0,Ye.bU)(),r=(0,m.s)("table-filter"),o=null==t?void 0:t.parent;o.filterPanels.value[e.column.id]||(o.filterPanels.value[e.column.id]=t);const i=(0,l.iH)(!1),a=(0,l.iH)(null),c=(0,s.Fl)((()=>e.column&&e.column.filters)),u=(0,s.Fl)({get:()=>{var t;return((null==(t=e.column)?void 0:t.filteredValue)||[])[0]},set:e=>{d.value&&("undefined"!==typeof e&&null!==e?d.value.splice(0,1,e):d.value.splice(0,1))}}),d=(0,s.Fl)({get(){return e.column&&e.column.filteredValue||[]},set(t){e.column&&e.upDataColumn("filteredValue",t)}}),p=(0,s.Fl)((()=>!e.column||e.column.filterMultiple)),f=e=>e.value===u.value,h=()=>{i.value=!1},v=e=>{e.stopPropagation(),i.value=!i.value},g=()=>{i.value=!1},y=()=>{w(d.value),h()},b=()=>{d.value=[],w(d.value),h()},_=e=>{u.value=e,w("undefined"!==typeof e&&null!==e?d.value:[]),h()},w=t=>{e.store.commit("filterChange",{column:e.column,values:t}),e.store.updateAllSelected()};(0,s.YP)(i,(t=>{e.column&&e.upDataColumn("filterOpened",t)}),{immediate:!0});const k=(0,s.Fl)((()=>{var e,t;return null==(t=null==(e=a.value)?void 0:e.popperRef)?void 0:t.contentRef}));return{tooltipVisible:i,multiple:p,filteredValue:d,filterValue:u,filters:c,handleConfirm:y,handleReset:b,handleSelect:_,isActive:f,t:n,ns:r,showFilterPanel:v,hideFilterPanel:g,popperPaneRef:k,tooltip:a}}}),NC={key:0},MC=["disabled"],LC=["label","onClick"];function FC(e,t,n,r,o,i){const a=(0,s.up)("el-checkbox"),l=(0,s.up)("el-checkbox-group"),u=(0,s.up)("el-scrollbar"),d=(0,s.up)("arrow-up"),p=(0,s.up)("arrow-down"),f=(0,s.up)("el-icon"),h=(0,s.up)("el-tooltip"),m=(0,s.Q2)("click-outside");return(0,s.wg)(),(0,s.j4)(h,{ref:"tooltip",visible:e.tooltipVisible,"onUpdate:visible":t[5]||(t[5]=t=>e.tooltipVisible=t),offset:0,placement:e.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,"append-to-body":"",effect:"light",pure:"","popper-class":e.ns.b(),persistent:""},{content:(0,s.w5)((()=>[e.multiple?((0,s.wg)(),(0,s.iD)("div",NC,[(0,s._)("div",{class:(0,c.C_)(e.ns.e("content"))},[(0,s.Wm)(u,{"wrap-class":e.ns.e("wrap")},{default:(0,s.w5)((()=>[(0,s.Wm)(l,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=t=>e.filteredValue=t),class:(0,c.C_)(e.ns.e("checkbox-group"))},{default:(0,s.w5)((()=>[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e.filters,(e=>((0,s.wg)(),(0,s.j4)(a,{key:e.value,label:e.value},{default:(0,s.w5)((()=>[(0,s.Uk)((0,c.zw)(e.text),1)])),_:2},1032,["label"])))),128))])),_:1},8,["modelValue","class"])])),_:1},8,["wrap-class"])],2),(0,s._)("div",{class:(0,c.C_)(e.ns.e("bottom"))},[(0,s._)("button",{class:(0,c.C_)({[e.ns.is("disabled")]:0===e.filteredValue.length}),disabled:0===e.filteredValue.length,type:"button",onClick:t[1]||(t[1]=(...t)=>e.handleConfirm&&e.handleConfirm(...t))},(0,c.zw)(e.t("el.table.confirmFilter")),11,MC),(0,s._)("button",{type:"button",onClick:t[2]||(t[2]=(...t)=>e.handleReset&&e.handleReset(...t))},(0,c.zw)(e.t("el.table.resetFilter")),1)],2)])):((0,s.wg)(),(0,s.iD)("ul",{key:1,class:(0,c.C_)(e.ns.e("list"))},[(0,s._)("li",{class:(0,c.C_)([e.ns.e("list-item"),{[e.ns.is("active")]:void 0===e.filterValue||null===e.filterValue}]),onClick:t[3]||(t[3]=t=>e.handleSelect(null))},(0,c.zw)(e.t("el.table.clearFilter")),3),((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e.filters,(t=>((0,s.wg)(),(0,s.iD)("li",{key:t.value,class:(0,c.C_)([e.ns.e("list-item"),e.ns.is("active",e.isActive(t))]),label:t.value,onClick:n=>e.handleSelect(t.value)},(0,c.zw)(t.text),11,LC)))),128))],2))])),default:(0,s.w5)((()=>[(0,s.wy)(((0,s.wg)(),(0,s.iD)("span",{class:(0,c.C_)([`${e.ns.namespace.value}-table__column-filter-trigger`,`${e.ns.namespace.value}-none-outline`]),onClick:t[4]||(t[4]=(...t)=>e.showFilterPanel&&e.showFilterPanel(...t))},[(0,s.Wm)(f,null,{default:(0,s.w5)((()=>[e.column.filterOpened?((0,s.wg)(),(0,s.j4)(d,{key:0})):((0,s.wg)(),(0,s.j4)(p,{key:1}))])),_:1})],2)),[[m,e.hideFilterPanel,e.popperPaneRef]])])),_:1},8,["visible","placement","popper-class"])}var UC=(0,h.Z)(DC,[["render",FC],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/filter-panel.vue"]]);function jC(e){const t=(0,s.FN)();(0,s.wF)((()=>{n.value.addObserver(t)})),(0,s.bv)((()=>{r(n.value),o(n.value)})),(0,s.ic)((()=>{r(n.value),o(n.value)})),(0,s.Ah)((()=>{n.value.removeObserver(t)}));const n=(0,s.Fl)((()=>{const t=e.layout;if(!t)throw new Error("Can not find table layout.");return t})),r=t=>{var n;const r=(null==(n=e.vnode.el)?void 0:n.querySelectorAll("colgroup > col"))||[];if(!r.length)return;const o=t.getFlattenColumns(),i={};o.forEach((e=>{i[e.id]=e}));for(let e=0,a=r.length;e<a;e++){const t=r[e],n=t.getAttribute("name"),o=i[n];o&&t.setAttribute("width",o.realWidth||o.width)}},o=t=>{var n,r;const o=(null==(n=e.vnode.el)?void 0:n.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let e=0,a=o.length;e<a;e++){const n=o[e];n.setAttribute("width",t.scrollY.value?t.gutterWidth:"0")}const i=(null==(r=e.vnode.el)?void 0:r.querySelectorAll("th.gutter"))||[];for(let e=0,a=i.length;e<a;e++){const n=i[e];n.style.width=t.scrollY.value?`${t.gutterWidth}px`:"0",n.style.display=t.scrollY.value?"":"none"}};return{tableLayout:n.value,onColumnsChange:r,onScrollableChange:o}}const VC=Symbol("ElTable");function HC(e,t){const n=(0,s.FN)(),r=(0,s.f3)(VC),o=e=>{e.stopPropagation()},i=(e,t)=>{!t.filters&&t.sortable?v(e,t,!1):t.filterable&&!t.sortable&&o(e),null==r||r.emit("header-click",t,e)},a=(e,t)=>{null==r||r.emit("header-contextmenu",t,e)},c=(0,l.iH)(null),u=(0,l.iH)(!1),d=(0,l.iH)({}),p=(o,i)=>{if(ne.C5&&!(i.children&&i.children.length>0)&&c.value&&e.border){u.value=!0;const a=r;t("set-drag-visible",!0);const s=null==a?void 0:a.vnode.el,l=s.getBoundingClientRect().left,p=n.vnode.el.querySelector(`th.${i.id}`),f=p.getBoundingClientRect(),h=f.left-l+30;(0,re.cn)(p,"noclick"),d.value={startMouseLeft:o.clientX,startLeft:f.right-l,startColumnLeft:f.left-l,tableLeft:l};const m=null==a?void 0:a.refs.resizeProxy;m.style.left=`${d.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const v=e=>{const t=e.clientX-d.value.startMouseLeft,n=d.value.startLeft+t;m.style.left=`${Math.max(h,n)}px`},g=()=>{if(u.value){const{startColumnLeft:n,startLeft:r}=d.value,s=Number.parseInt(m.style.left,10),l=s-n;i.width=i.realWidth=l,null==a||a.emit("header-dragend",i.width,r-n,i,o),requestAnimationFrame((()=>{e.store.scheduleLayout(!1,!0)})),document.body.style.cursor="",u.value=!1,c.value=null,d.value={},t("set-drag-visible",!1)}document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",g),document.onselectstart=null,document.ondragstart=null,setTimeout((()=>{(0,re.IV)(p,"noclick")}),0)};document.addEventListener("mousemove",v),document.addEventListener("mouseup",g)}},f=(t,n)=>{if(n.children&&n.children.length>0)return;let r=t.target;while(r&&"TH"!==r.tagName)r=r.parentNode;if(n&&n.resizable&&!u.value&&e.border){const e=r.getBoundingClientRect(),o=document.body.style;e.width>12&&e.right-t.pageX<8?(o.cursor="col-resize",(0,re.pv)(r,"is-sortable")&&(r.style.cursor="col-resize"),c.value=n):u.value||(o.cursor="",(0,re.pv)(r,"is-sortable")&&(r.style.cursor="pointer"),c.value=null)}},h=()=>{ne.C5&&(document.body.style.cursor="")},m=({order:e,sortOrders:t})=>{if(""===e)return t[0];const n=t.indexOf(e||null);return t[n>t.length-2?0:n+1]},v=(t,n,o)=>{t.stopPropagation();const i=n.order===o?null:o||m(n);let a=t.target;while(a&&"TH"!==a.tagName)a=a.parentNode;if(a&&"TH"===a.tagName&&(0,re.pv)(a,"noclick"))return void(0,re.IV)(a,"noclick");if(!n.sortable)return;const s=e.store.states;let l,c=s.sortProp.value;const u=s.sortingColumn.value;(u!==n||u===n&&null===u.order)&&(u&&(u.order=null),s.sortingColumn.value=n,c=n.property),l=n.order=i||null,s.sortProp.value=c,s.sortOrder.value=l,null==r||r.store.commit("changeSortCondition")};return{handleHeaderClick:i,handleHeaderContextMenu:a,handleMouseDown:p,handleMouseMove:f,handleMouseOut:h,handleSortClick:v,handleFilterClick:o}}function BC(e){const t=(0,s.f3)(VC),n=(0,m.s)("table"),r=e=>{const n=null==t?void 0:t.props.headerRowStyle;return"function"===typeof n?n.call(null,{rowIndex:e}):n},o=e=>{const n=[],r=null==t?void 0:t.props.headerRowClassName;return"string"===typeof r?n.push(r):"function"===typeof r&&n.push(r.call(null,{rowIndex:e})),n.join(" ")},i=(n,r,o,i)=>{var a;let s=null!=(a=null==t?void 0:t.props.headerCellStyle)?a:{};"function"===typeof s&&(s=s.call(null,{rowIndex:n,columnIndex:r,row:o,column:i}));const l=i.isSubColumn?null:mC(r,i.fixed,e.store,o);return vC(l,"left"),vC(l,"right"),Object.assign({},s,l)},a=(r,o,i,a)=>{const s=a.isSubColumn?[]:fC(n.b(),o,a.fixed,e.store,i),l=[a.id,a.order,a.headerAlign,a.className,a.labelClassName,...s];a.children||l.push("is-leaf"),a.sortable&&l.push("is-sortable");const c=null==t?void 0:t.props.headerCellClassName;return"string"===typeof c?l.push(c):"function"===typeof c&&l.push(c.call(null,{rowIndex:r,columnIndex:o,row:i,column:a})),l.push(n.e("cell")),l.filter((e=>Boolean(e))).join(" ")};return{getHeaderRowStyle:r,getHeaderRowClass:o,getHeaderCellStyle:i,getHeaderCellClass:a}}const $C=e=>{const t=[];return e.forEach((e=>{e.children?(t.push(e),t.push.apply(t,$C(e.children))):t.push(e)})),t},zC=e=>{let t=1;const n=(e,r)=>{if(r&&(e.level=r.level+1,t<e.level&&(t=e.level)),e.children){let t=0;e.children.forEach((r=>{n(r,e),t+=r.colSpan})),e.colSpan=t}else e.colSpan=1};e.forEach((e=>{e.level=1,n(e,void 0)}));const r=[];for(let i=0;i<t;i++)r.push([]);const o=$C(e);return o.forEach((e=>{e.children?(e.rowSpan=1,e.children.forEach((e=>e.isSubColumn=!0))):e.rowSpan=t-e.level+1,r[e.level-1].push(e)})),r};function WC(e){const t=(0,s.f3)(VC),n=(0,s.Fl)((()=>zC(e.store.states.originColumns.value))),r=(0,s.Fl)((()=>{const e=n.value.length>1;return e&&t&&(t.state.isGroup.value=!0),e})),o=e=>{e.stopPropagation(),null==t||t.store.commit("toggleAllSelection")};return{isGroup:r,toggleAllSelection:o,columnRows:n}}var qC=(0,s.aZ)({name:"ElTableHeader",components:{ElCheckbox:Pn},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e,{emit:t}){const n=(0,s.FN)(),r=(0,s.f3)(VC),o=(0,m.s)("table"),i=(0,l.iH)({}),{onColumnsChange:a,onScrollableChange:c}=jC(r);(0,s.bv)((async()=>{await(0,s.Y3)(),await(0,s.Y3)();const{prop:t,order:n}=e.defaultSort;null==r||r.store.commit("sort",{prop:t,order:n,init:!0})}));const{handleHeaderClick:u,handleHeaderContextMenu:d,handleMouseDown:p,handleMouseMove:f,handleMouseOut:h,handleSortClick:v,handleFilterClick:g}=HC(e,t),{getHeaderRowStyle:y,getHeaderRowClass:b,getHeaderCellStyle:_,getHeaderCellClass:w}=BC(e),{isGroup:k,toggleAllSelection:S,columnRows:C}=WC(e);return n.state={onColumnsChange:a,onScrollableChange:c},n.filterPanels=i,{ns:o,filterPanels:i,onColumnsChange:a,onScrollableChange:c,columnRows:C,getHeaderRowClass:b,getHeaderRowStyle:y,getHeaderCellClass:w,getHeaderCellStyle:_,handleHeaderClick:u,handleHeaderContextMenu:d,handleMouseDown:p,handleMouseMove:f,handleMouseOut:h,handleSortClick:v,handleFilterClick:g,isGroup:k,toggleAllSelection:S}},render(){const{ns:e,isGroup:t,columnRows:n,getHeaderCellStyle:r,getHeaderCellClass:o,getHeaderRowClass:i,getHeaderRowStyle:a,handleHeaderClick:l,handleHeaderContextMenu:c,handleMouseDown:u,handleMouseMove:d,handleSortClick:p,handleMouseOut:f,store:h,$parent:m}=this;let v=1;return(0,s.h)("thead",{class:{[e.is("group")]:t}},n.map(((e,t)=>(0,s.h)("tr",{class:i(t),key:t,style:a(t)},e.map(((n,i)=>(n.rowSpan>v&&(v=n.rowSpan),(0,s.h)("th",{class:o(t,i,e,n),colspan:n.colSpan,key:`${n.id}-thead`,rowspan:n.rowSpan,style:r(t,i,e,n),onClick:e=>l(e,n),onContextmenu:e=>c(e,n),onMousedown:e=>u(e,n),onMousemove:e=>d(e,n),onMouseout:f},[(0,s.h)("div",{class:["cell",n.filteredValue&&n.filteredValue.length>0?"highlight":"",n.labelClassName]},[n.renderHeader?n.renderHeader({column:n,$index:i,store:h,_self:m}):n.label,n.sortable&&(0,s.h)("span",{onClick:e=>p(e,n),class:"caret-wrapper"},[(0,s.h)("i",{onClick:e=>p(e,n,"ascending"),class:"sort-caret ascending"}),(0,s.h)("i",{onClick:e=>p(e,n,"descending"),class:"sort-caret descending"})]),n.filterable&&(0,s.h)(UC,{store:h,placement:n.filterPlacement||"bottom-start",column:n,upDataColumn:(e,t)=>{n[e]=t}})])]))))))))}});function ZC(e){const t=(0,s.f3)(VC),n=(0,l.iH)(""),r=(0,l.iH)((0,s.h)("div")),o=(n,r,o)=>{var i;const a=t,s=KS(n);let l;const c=null==(i=null==a?void 0:a.vnode.el)?void 0:i.dataset.prefix;s&&(l=eC({columns:e.store.states.columns.value},s,c),l&&(null==a||a.emit(`cell-${o}`,r,l,s,n))),null==a||a.emit(`row-${o}`,r,l,n)},i=(e,t)=>{o(e,t,"dblclick")},a=(t,n)=>{e.store.commit("setCurrentRow",n),o(t,n,"click")},c=(e,t)=>{o(e,t,"contextmenu")},u=(0,N.Z)((t=>{e.store.commit("setHoverRow",t)}),30),d=(0,N.Z)((()=>{e.store.commit("setHoverRow",null)}),30),p=(n,r)=>{var o;const i=t,a=KS(n),s=null==(o=null==i?void 0:i.vnode.el)?void 0:o.dataset.prefix;if(a){const t=eC({columns:e.store.states.columns.value},a,s),o=i.hoverState={cell:a,column:t,row:r};null==i||i.emit("cell-mouse-enter",o.row,o.column,o.cell,n)}const l=n.target.querySelector(".cell");if(!(0,re.pv)(l,`${s}-tooltip`)||!l.childNodes.length)return;const c=document.createRange();c.setStart(l,0),c.setEnd(l,l.childNodes.length);const u=c.getBoundingClientRect().width,d=(Number.parseInt((0,re.C2)(l,"paddingLeft"),10)||0)+(Number.parseInt((0,re.C2)(l,"paddingRight"),10)||0);(u+d>l.offsetWidth||l.scrollWidth>l.offsetWidth)&&dC(a,a.innerText||a.textContent,{placement:"top",strategy:"fixed"},r.tooltipEffect)},f=e=>{const n=KS(e);if(!n)return;const r=null==t?void 0:t.hoverState;null==t||t.emit("cell-mouse-leave",null==r?void 0:r.row,null==r?void 0:r.column,null==r?void 0:r.cell,e)};return{handleDoubleClick:i,handleClick:a,handleContextMenu:c,handleMouseEnter:u,handleMouseLeave:d,handleCellMouseEnter:p,handleCellMouseLeave:f,tooltipContent:n,tooltipTrigger:r}}function YC(e){const t=(0,s.f3)(VC),n=(0,m.s)("table"),r=(e,n)=>{const r=null==t?void 0:t.props.rowStyle;return"function"===typeof r?r.call(null,{row:e,rowIndex:n}):r||null},o=(r,o)=>{const i=[n.e("row")];(null==t?void 0:t.props.highlightCurrentRow)&&r===e.store.states.currentRow.value&&i.push("current-row"),e.stripe&&o%2===1&&i.push(n.em("row","striped"));const a=null==t?void 0:t.props.rowClassName;return"string"===typeof a?i.push(a):"function"===typeof a&&i.push(a.call(null,{row:r,rowIndex:o})),i},i=(n,r,o,i)=>{const a=null==t?void 0:t.props.cellStyle;let s=null!=a?a:{};"function"===typeof a&&(s=a.call(null,{rowIndex:n,columnIndex:r,row:o,column:i}));const l=i.isSubColumn?null:mC(r,null==e?void 0:e.fixed,e.store);return vC(l,"left"),vC(l,"right"),Object.assign({},s,l)},a=(r,o,i,a)=>{const s=a.isSubColumn?[]:fC(n.b(),o,null==e?void 0:e.fixed,e.store),l=[a.id,a.align,a.className,...s],c=null==t?void 0:t.props.cellClassName;return"string"===typeof c?l.push(c):"function"===typeof c&&l.push(c.call(null,{rowIndex:r,columnIndex:o,row:i,column:a})),l.push(n.e("cell")),l.filter((e=>Boolean(e))).join(" ")},l=(e,n,r,o)=>{let i=1,a=1;const s=null==t?void 0:t.props.spanMethod;if("function"===typeof s){const t=s({row:e,column:n,rowIndex:r,columnIndex:o});Array.isArray(t)?(i=t[0],a=t[1]):"object"===typeof t&&(i=t.rowspan,a=t.colspan)}return{rowspan:i,colspan:a}},c=(e,t,n)=>{if(t<1)return e[n].realWidth;const r=e.map((({realWidth:e,width:t})=>e||t)).slice(n,n+t);return Number(r.reduce(((e,t)=>Number(e)+Number(t)),-1))};return{getRowStyle:r,getRowClass:o,getCellStyle:i,getCellClass:a,getSpan:l,getColspanRealWidth:c}}function KC(e){const t=(0,s.f3)(VC),{handleDoubleClick:n,handleClick:r,handleContextMenu:o,handleMouseEnter:i,handleMouseLeave:a,handleCellMouseEnter:l,handleCellMouseLeave:c,tooltipContent:u,tooltipTrigger:d}=ZC(e),{getRowStyle:p,getRowClass:f,getCellStyle:h,getCellClass:m,getSpan:v,getColspanRealWidth:g}=YC(e),y=(0,s.Fl)((()=>e.store.states.columns.value.findIndex((({type:e})=>"default"===e)))),b=(e,n)=>{const r=t.props.rowKey;return r?tC(e,r):n},_=(u,d,_,k=!1)=>{const{tooltipEffect:S,store:C}=e,{indent:x,columns:I}=C.states,T=f(u,d);let E=!0;_&&(T.push(`el-table__row--level-${_.level}`),E=_.display);const R=E?null:{display:"none"};return(0,s.h)("tr",{style:[R,p(u,d)],class:T,key:b(u,d),onDblclick:e=>n(e,u),onClick:e=>r(e,u),onContextmenu:e=>o(e,u),onMouseenter:()=>i(d),onMouseleave:a},I.value.map(((n,r)=>{const{rowspan:o,colspan:i}=v(u,n,d,r);if(!o||!i)return null;const a={...n};a.realWidth=g(I.value,i,r);const p={store:e.store,_self:e.context||t,column:a,row:u,$index:d,cellIndex:r,expanded:k};r===y.value&&_&&(p.treeNode={indent:_.level*x.value,level:_.level},"boolean"===typeof _.expanded&&(p.treeNode.expanded=_.expanded,"loading"in _&&(p.treeNode.loading=_.loading),"noLazyChildren"in _&&(p.treeNode.noLazyChildren=_.noLazyChildren)));const f=`${d},${r}`,b=a.columnKey||a.rawColumnKey||"",C=w(r,n,p);return(0,s.h)("td",{style:h(d,r,u,n),class:m(d,r,u,n),key:`${b}${f}`,rowspan:o,colspan:i,onMouseenter:e=>l(e,{...u,tooltipEffect:S}),onMouseleave:c},[C])})))},w=(e,t,n)=>t.renderCell(n),k=(n,r)=>{const o=e.store,{isRowExpanded:i,assertRowKey:a}=o,{treeData:l,lazyTreeNodeMap:c,childrenColumnName:u,rowKey:d}=o.states,p=o.states.columns.value,f=p.some((({type:e})=>"expand"===e));if(f){const e=i(n),a=_(n,r,void 0,e),l=t.renderExpanded;return e?l?[[a,(0,s.h)("tr",{key:`expanded-row__${a.key}`},[(0,s.h)("td",{colspan:p.length,class:"el-table__cell el-table__expanded-cell"},[l({row:n,$index:r,store:o,expanded:e})])])]]:(console.error("[Element Error]renderExpanded is required."),a):[[a]]}if(Object.keys(l.value).length){a();const e=tC(n,d.value);let t=l.value[e],o=null;t&&(o={expanded:t.expanded,level:t.level,display:!0},"boolean"===typeof t.lazy&&("boolean"===typeof t.loaded&&t.loaded&&(o.noLazyChildren=!(t.children&&t.children.length)),o.loading=t.loading));const i=[_(n,r,o)];if(t){let o=0;const a=(e,n)=>{e&&e.length&&n&&e.forEach((e=>{const s={display:n.display&&n.expanded,level:n.level+1,expanded:!1,noLazyChildren:!1,loading:!1},p=tC(e,d.value);if(void 0===p||null===p)throw new Error("For nested data item, row-key is required.");if(t={...l.value[p]},t&&(s.expanded=t.expanded,t.level=t.level||s.level,t.display=!(!t.expanded||!s.display),"boolean"===typeof t.lazy&&("boolean"===typeof t.loaded&&t.loaded&&(s.noLazyChildren=!(t.children&&t.children.length)),s.loading=t.loading)),o++,i.push(_(e,r+o,s)),t){const n=c.value[p]||e[u.value];a(n,t)}}))};t.display=!0;const s=c.value[e]||n[u.value];a(s,t)}return i}return _(n,r,void 0)};return{wrappedRowRender:k,tooltipContent:u,tooltipTrigger:d}}const JC={store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean};var GC=(0,s.aZ)({name:"ElTableBody",props:JC,setup(e){const t=(0,s.FN)(),n=(0,s.f3)(VC),r=(0,m.s)("table"),{wrappedRowRender:o,tooltipContent:i,tooltipTrigger:a}=KC(e),{onColumnsChange:l,onScrollableChange:c}=jC(n);return(0,s.YP)(e.store.states.hoverRow,((n,o)=>{if(!e.store.states.isComplex.value||!ne.C5)return;let i=window.requestAnimationFrame;i||(i=e=>window.setTimeout(e,16)),i((()=>{var e;const i=null==(e=null==t?void 0:t.vnode.el)?void 0:e.querySelectorAll(`.${r.e("row")}`),a=i[o],s=i[n];a&&(0,re.IV)(a,"hover-row"),s&&(0,re.cn)(s,"hover-row")}))})),(0,s.Ah)((()=>{var e;null==(e=uC)||e()})),(0,s.ic)((()=>{var e;null==(e=uC)||e()})),{ns:r,onColumnsChange:l,onScrollableChange:c,wrappedRowRender:o,tooltipContent:i,tooltipTrigger:a}},render(){const{wrappedRowRender:e,store:t}=this,n=t.states.data.value||[];return(0,s.h)("tbody",{},[n.reduce(((t,n)=>t.concat(e(n,t.length))),[])])}});function XC(e){const t="auto"===e.tableLayout;let n=e.columns||[];t&&n.every((e=>void 0===e.width))&&(n=[]);const r=n=>{const r={key:`${e.tableLayout}_${n.id}`,style:{},name:void 0};return t?r.style={width:`${n.width}px`}:r.name=n.id,r};return(0,s.h)("colgroup",{},n.map((e=>(0,s.h)("col",r(e)))))}function QC(){const e=(0,s.f3)(VC),t=null==e?void 0:e.store,n=(0,s.Fl)((()=>t.states.fixedLeafColumnsLength.value)),r=(0,s.Fl)((()=>t.states.rightFixedColumns.value.length)),o=(0,s.Fl)((()=>t.states.columns.value.length)),i=(0,s.Fl)((()=>t.states.fixedColumns.value.length)),a=(0,s.Fl)((()=>t.states.rightFixedColumns.value.length));return{leftFixedLeafCount:n,rightFixedLeafCount:r,columnsCount:o,leftFixedCount:i,rightFixedCount:a,columns:t.states.columns}}function ex(e){const{columns:t}=QC(),n=(0,m.s)("table"),r=(t,r)=>{const o=t[r],i=[n.e("cell"),o.id,o.align,o.labelClassName,...fC(n.b(),r,o.fixed,e.store)];return o.className&&i.push(o.className),o.children||i.push(n.is("leaf")),i},o=(t,n)=>{const r=mC(n,t.fixed,e.store);return vC(r,"left"),vC(r,"right"),r};return{getCellClasses:r,getCellStyles:o,columns:t}}XC.props=["columns","tableLayout"];var tx=(0,s.aZ)({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e){const{getCellClasses:t,getCellStyles:n,columns:r}=ex(e),o=(0,m.s)("table");return{ns:o,getCellClasses:t,getCellStyles:n,columns:r}},render(){const{columns:e,getCellStyles:t,getCellClasses:n,summaryMethod:r,sumText:o,ns:i}=this,a=this.store.states.data.value;let l=[];return r?l=r({columns:e,data:a}):e.forEach(((e,t)=>{if(0===t)return void(l[t]=o);const n=a.map((t=>Number(t[e.property]))),r=[];let i=!0;n.forEach((e=>{if(!Number.isNaN(+e)){i=!1;const t=`${e}`.split(".")[1];r.push(t?t.length:0)}}));const s=Math.max.apply(null,r);l[t]=i?"":n.reduce(((e,t)=>{const n=Number(t);return Number.isNaN(+n)?e:Number.parseFloat((e+t).toFixed(Math.min(s,20)))}),0)})),(0,s.h)("table",{class:i.e("footer"),cellspacing:"0",cellpadding:"0",border:"0"},[XC({columns:e}),(0,s.h)("tbody",[(0,s.h)("tr",{},[...e.map(((r,o)=>(0,s.h)("td",{key:o,colspan:r.colSpan,rowspan:r.rowSpan,class:n(e,o),style:t(r,o)},[(0,s.h)("div",{class:["cell",r.labelClassName]},[l[o]])])))])])])}});function nx(e){const t=t=>{e.commit("setCurrentRow",t)},n=()=>e.getSelectionRows(),r=(t,n)=>{e.toggleRowSelection(t,n,!1),e.updateAllSelected()},o=()=>{e.clearSelection()},i=t=>{e.clearFilter(t)},a=()=>{e.commit("toggleAllSelection")},s=(t,n)=>{e.toggleRowExpansionAdapter(t,n)},l=()=>{e.clearSort()},c=(t,n)=>{e.commit("sort",{prop:t,order:n})};return{setCurrentRow:t,getSelectionRows:n,toggleRowSelection:r,clearSelection:o,clearFilter:i,toggleAllSelection:a,toggleRowExpansion:s,clearSort:l,sort:c}}function rx(e,t,n,r){const o=(0,l.iH)(!1),i=(0,l.iH)(null),a=(0,l.iH)(!1),u=e=>{a.value=e},d=(0,l.iH)({width:null,height:null}),p=(0,l.iH)(!1),f={display:"inline-block",verticalAlign:"middle"},h=(0,l.iH)();(0,s.m0)((()=>{t.setHeight(e.height)})),(0,s.m0)((()=>{t.setMaxHeight(e.maxHeight)})),(0,s.YP)((()=>[e.currentRowKey,n.states.rowKey]),(([e,t])=>{(0,l.SU)(t)&&n.setCurrentRowKey(`${e}`)}),{immediate:!0}),(0,s.YP)((()=>e.data),(e=>{r.store.commit("setData",e)}),{immediate:!0,deep:!0}),(0,s.m0)((()=>{e.expandRowKeys&&n.setExpandRowKeysAdapter(e.expandRowKeys)}));const m=()=>{r.store.commit("setHoverRow",null),r.hoverState&&(r.hoverState=null)},v=(e,t)=>{const{pixelX:n,pixelY:o}=t;Math.abs(n)>=Math.abs(o)&&(r.refs.bodyWrapper.scrollLeft+=t.pixelX/5)},g=(0,s.Fl)((()=>e.height||e.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0)),y=(0,s.Fl)((()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""}))),b=()=>{g.value&&t.updateElsHeight(),t.updateColumnsWidth(),requestAnimationFrame(S)};(0,s.bv)((async()=>{await(0,s.Y3)(),n.updateColumns(),C(),requestAnimationFrame(b),d.value={width:h.value=r.vnode.el.offsetWidth,height:r.vnode.el.offsetHeight},n.states.columns.value.forEach((e=>{e.filteredValue&&e.filteredValue.length&&r.store.commit("filterChange",{column:e,values:e.filteredValue,silent:!0})})),r.$ready=!0}));const _=(e,n)=>{if(!e)return;const r=Array.from(e.classList).filter((e=>!e.startsWith("is-scrolling-")));r.push(t.scrollX.value?n:"is-scrolling-none"),e.className=r.join(" ")},w=e=>{const{tableWrapper:t}=r.refs;_(t,e)},k=e=>{const{tableWrapper:t}=r.refs;return!(!t||!t.classList.contains(e))},S=function(){if(!r.refs.scrollBarRef)return;if(!t.scrollX.value){const e="is-scrolling-none";return void(k(e)||w(e))}const e=r.refs.scrollBarRef.wrap$;if(!e)return;const{scrollLeft:n,offsetWidth:o,scrollWidth:i}=e,{headerWrapper:a,footerWrapper:s}=r.refs;a&&(a.scrollLeft=n),s&&(s.scrollLeft=n);const l=i-o-1;w(n>=l?"is-scrolling-right":0===n?"is-scrolling-left":"is-scrolling-middle")},C=()=>{var t;r.refs.scrollBarRef&&(null==(t=r.refs.scrollBarRef.wrap$)||t.addEventListener("scroll",S,{passive:!0}),e.fit?(0,io.k)(r.vnode.el,I):(0,Xo.on)(window,"resize",b))};(0,s.Jd)((()=>{x()}));const x=()=>{var t;null==(t=r.refs.scrollBarRef.wrap$)||t.removeEventListener("scroll",S,!0),e.fit?(0,io.S)(r.vnode.el,I):(0,Xo.S1)(window,"resize",b)},I=()=>{if(!r.$ready)return;let t=!1;const n=r.vnode.el,{width:o,height:i}=d.value,a=h.value=n.offsetWidth;o!==a&&(t=!0);const s=n.offsetHeight;(e.height||g.value)&&i!==s&&(t=!0),t&&(d.value={width:a,height:s},b())},T=(0,on.tH)(),E=(0,s.Fl)((()=>{const{bodyWidth:e,scrollY:n,gutterWidth:r}=t;return e.value?e.value-(n.value?r:0)+"px":""})),R=(0,s.Fl)((()=>e.maxHeight?"fixed":e.tableLayout));function P(t,n,r){const o=aC(t),i=e.showHeader?r:0;if(null!==o)return(0,c.HD)(o)?`calc(${o} - ${n}px - ${i}px)`:o-n-i}const O=(0,s.Fl)((()=>{const n=t.headerHeight.value||0,r=t.bodyHeight.value,o=t.footerHeight.value||0;return e.height?r||void 0:e.maxHeight?P(e.maxHeight,o,n):void 0})),A=(0,s.Fl)((()=>{const n=t.headerHeight.value||0,r=t.bodyHeight.value,o=t.footerHeight.value||0;if(e.height)return{height:r?`${r}px`:""};if(e.maxHeight){const t=P(e.maxHeight,o,n);if(null!==t)return{"max-height":`${t}${(0,ne.hj)(t)?"px":""}`}}return{}})),D=(0,s.Fl)((()=>{if(e.data&&e.data.length)return null;let n="100%";return t.appendHeight.value&&(n=`calc(100% - ${t.appendHeight.value}px)`),{width:h.value?`${h.value}px`:"",height:n}})),N=(e,t)=>{const n=r.refs.bodyWrapper;if(Math.abs(t.spinY)>0){const r=n.scrollTop;t.pixelY<0&&0!==r&&e.preventDefault(),t.pixelY>0&&n.scrollHeight-n.clientHeight>r&&e.preventDefault(),n.scrollTop+=Math.ceil(t.pixelY/5)}else n.scrollLeft+=Math.ceil(t.pixelX/5)},M=(0,s.Fl)((()=>e.maxHeight?e.showSummary?{bottom:0}:{bottom:t.scrollX.value&&e.data.length?`${t.gutterWidth}px`:""}:e.showSummary?{height:t.tableHeight.value?`${t.tableHeight.value}px`:""}:{height:t.viewportHeight.value?`${t.viewportHeight.value}px`:""})),L=(0,s.Fl)((()=>{if(e.height)return{height:t.fixedBodyHeight.value?`${t.fixedBodyHeight.value}px`:""};if(e.maxHeight){let n=aC(e.maxHeight);if("number"===typeof n)return n=t.scrollX.value?n-t.gutterWidth:n,e.showHeader&&(n-=t.headerHeight.value),n-=t.footerHeight.value,{"max-height":`${n}px`}}return{}}));return{isHidden:o,renderExpanded:i,setDragVisible:u,isGroup:p,handleMouseLeave:m,handleHeaderFooterMousewheel:v,tableSize:T,bodyHeight:A,height:O,emptyBlockStyle:D,handleFixedMousewheel:N,fixedHeight:M,fixedBodyHeight:L,resizeProxyVisible:a,bodyWidth:E,resizeState:d,doLayout:b,tableBodyStyles:y,tableLayout:R,scrollbarViewStyle:f}}var ox={data:{type:Array,default:()=>[]},size:String,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children"})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:{type:Boolean,default:!1}};const ix=()=>{const e=(0,l.iH)(),t=(t,n)=>{const r=e.value;r&&r.scrollTo(t,n)},n=(t,n)=>{const r=e.value;r&&(0,ne.hj)(n)&&["Top","Left"].includes(t)&&r[`setScroll${t}`](n)},r=e=>n("Top",e),o=e=>n("Left",e);return{scrollBarRef:e,scrollTo:t,setScrollTop:r,setScrollLeft:o}};var ax,sx,lx,cx,ux,dx,px,fx,hx,mx,vx,gx,yx,bx,_x,wx=!1;function kx(){if(!wx){wx=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),n=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(gx=/\b(iPhone|iP[ao]d)/.exec(e),yx=/\b(iP[ao]d)/.exec(e),mx=/Android/i.exec(e),bx=/FBAN\/\w+;/i.exec(e),_x=/Mobile/i.exec(e),vx=!!/Win64/.exec(e),t){ax=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,ax&&document&&document.documentMode&&(ax=document.documentMode);var r=/(?:Trident\/(\d+.\d+))/.exec(e);dx=r?parseFloat(r[1])+4:ax,sx=t[2]?parseFloat(t[2]):NaN,lx=t[3]?parseFloat(t[3]):NaN,cx=t[4]?parseFloat(t[4]):NaN,cx?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),ux=t&&t[1]?parseFloat(t[1]):NaN):ux=NaN}else ax=sx=lx=ux=cx=NaN;if(n){if(n[1]){var o=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);px=!o||parseFloat(o[1].replace("_","."))}else px=!1;fx=!!n[2],hx=!!n[3]}else px=fx=hx=!1}}var Sx,Cx={ie:function(){return kx()||ax},ieCompatibilityMode:function(){return kx()||dx>ax},ie64:function(){return Cx.ie()&&vx},firefox:function(){return kx()||sx},opera:function(){return kx()||lx},webkit:function(){return kx()||cx},safari:function(){return Cx.webkit()},chrome:function(){return kx()||ux},windows:function(){return kx()||fx},osx:function(){return kx()||px},linux:function(){return kx()||hx},iphone:function(){return kx()||gx},mobile:function(){return kx()||gx||yx||mx||_x},nativeApp:function(){return kx()||bx},android:function(){return kx()||mx},ipad:function(){return kx()||yx}},xx=Cx,Ix=!!(typeof window<"u"&&window.document&&window.document.createElement),Tx={canUseDOM:Ix,canUseWorkers:typeof Worker<"u",canUseEventListeners:Ix&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:Ix&&!!window.screen,isInWorker:!Ix},Ex=Tx;function Rx(e,t){if(!Ex.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var o=document.createElement("div");o.setAttribute(n,"return;"),r="function"==typeof o[n]}return!r&&Sx&&"wheel"===e&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}Ex.canUseDOM&&(Sx=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("",""));var Px=Rx,Ox=10,Ax=40,Dx=800;function Nx(e){var t=0,n=0,r=0,o=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=t*Ox,o=n*Ox,"deltaY"in e&&(o=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||o)&&e.deltaMode&&(1==e.deltaMode?(r*=Ax,o*=Ax):(r*=Dx,o*=Dx)),r&&!t&&(t=r<1?-1:1),o&&!n&&(n=o<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:o}}Nx.getEventType=function(){return xx.firefox()?"DOMMouseScroll":Px("wheel")?"wheel":"mousewheel"};var Mx=Nx;
- /**
- * Checks if an event is supported in the current execution environment.
- *
- * NOTE: This will not work correctly for non-generic events such as `change`,
- * `reset`, `load`, `error`, and `select`.
- *
- * Borrows from Modernizr.
- *
- * @param {string} eventNameSuffix Event name, e.g. "click".
- * @param {?boolean} capture Check if the capture phase is supported.
- * @return {boolean} True if the event is supported.
- * @internal
- * @license Modernizr 3.0.0pre (Custom Build) | MIT
- */const Lx=function(e,t){if(e&&e.addEventListener){const n=function(e){const n=Mx(e);t&&Reflect.apply(t,this,[e,n])};e.addEventListener("wheel",n,{passive:!0})}},Fx={beforeMount(e,t){Lx(e,t.value)}};let Ux=1;const jx=(0,s.aZ)({name:"ElTable",directives:{Mousewheel:Fx},components:{TableHeader:qC,TableBody:GC,TableFooter:tx,ElScrollbar:L.Mr,hColgroup:XC},props:ox,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change"],setup(e){const{t:t}=(0,Ye.bU)(),n=(0,m.s)("table"),r=(0,s.FN)();(0,s.JJ)(VC,r);const o=TC(r,e);r.store=o;const i=new OC({store:r.store,table:r,fit:e.fit,showHeader:e.showHeader});r.layout=i;const a=(0,s.Fl)((()=>0===(o.states.data.value||[]).length)),{setCurrentRow:l,getSelectionRows:c,toggleRowSelection:u,clearSelection:d,clearFilter:p,toggleAllSelection:f,toggleRowExpansion:h,clearSort:v,sort:g}=nx(o),{isHidden:y,renderExpanded:b,setDragVisible:_,isGroup:w,handleMouseLeave:k,handleHeaderFooterMousewheel:S,tableSize:C,bodyHeight:x,height:I,emptyBlockStyle:T,handleFixedMousewheel:E,fixedHeight:R,fixedBodyHeight:P,resizeProxyVisible:O,bodyWidth:A,resizeState:D,doLayout:M,tableBodyStyles:L,tableLayout:F,scrollbarViewStyle:U}=rx(e,i,o,r),{scrollBarRef:j,scrollTo:V,setScrollLeft:H,setScrollTop:B}=ix(),$=(0,N.Z)(M,50),z="el-table_"+Ux++;r.tableId=z,r.state={isGroup:w,resizeState:D,doLayout:M,debouncedUpdateLayout:$};const W=(0,s.Fl)((()=>e.sumText||t("el.table.sumText"))),q=(0,s.Fl)((()=>e.emptyText||t("el.table.emptyText")));return{ns:n,layout:i,store:o,handleHeaderFooterMousewheel:S,handleMouseLeave:k,tableId:z,tableSize:C,isHidden:y,isEmpty:a,renderExpanded:b,resizeProxyVisible:O,resizeState:D,isGroup:w,bodyWidth:A,bodyHeight:x,height:I,tableBodyStyles:L,emptyBlockStyle:T,debouncedUpdateLayout:$,handleFixedMousewheel:E,fixedHeight:R,fixedBodyHeight:P,setCurrentRow:l,getSelectionRows:c,toggleRowSelection:u,clearSelection:d,clearFilter:p,toggleAllSelection:f,toggleRowExpansion:h,clearSort:v,doLayout:M,sort:g,t:t,setDragVisible:_,context:r,computedSumText:W,computedEmptyText:q,tableLayout:F,scrollbarViewStyle:U,scrollBarRef:j,scrollTo:V,setScrollLeft:H,setScrollTop:B}}}),Vx=["data-prefix"],Hx={ref:"hiddenColumns",class:"hidden-columns"};function Bx(e,t,n,r,o,i){const a=(0,s.up)("hColgroup"),l=(0,s.up)("table-header"),u=(0,s.up)("table-body"),d=(0,s.up)("el-scrollbar"),p=(0,s.up)("table-footer"),f=(0,s.Q2)("mousewheel");return(0,s.wg)(),(0,s.iD)("div",{ref:"tableWrapper",class:(0,c.C_)([{[e.ns.m("fit")]:e.fit,[e.ns.m("striped")]:e.stripe,[e.ns.m("border")]:e.border||e.isGroup,[e.ns.m("hidden")]:e.isHidden,[e.ns.m("group")]:e.isGroup,[e.ns.m("fluid-height")]:e.maxHeight,[e.ns.m("scrollable-x")]:e.layout.scrollX.value,[e.ns.m("scrollable-y")]:e.layout.scrollY.value,[e.ns.m("enable-row-hover")]:!e.store.states.isComplex.value,[e.ns.m("enable-row-transition")]:0!==(e.store.states.data.value||[]).length&&(e.store.states.data.value||[]).length<100,"has-footer":e.showSummary},e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m(`layout-${e.tableLayout}`)]),style:(0,c.j5)(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[0]||(t[0]=t=>e.handleMouseLeave())},[(0,s._)("div",{class:(0,c.C_)(e.ns.e("inner-wrapper"))},[(0,s._)("div",Hx,[(0,s.WI)(e.$slots,"default")],512),e.showHeader&&"fixed"===e.tableLayout?(0,s.wy)(((0,s.wg)(),(0,s.iD)("div",{key:0,ref:"headerWrapper",class:(0,c.C_)(e.ns.e("header-wrapper"))},[(0,s._)("table",{ref:"tableHeader",class:(0,c.C_)(e.ns.e("header")),style:(0,c.j5)(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[(0,s.Wm)(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),(0,s.Wm)(l,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])],6)],2)),[[f,e.handleHeaderFooterMousewheel]]):(0,s.kq)("v-if",!0),(0,s._)("div",{ref:"bodyWrapper",style:(0,c.j5)(e.bodyHeight),class:(0,c.C_)(e.ns.e("body-wrapper"))},[(0,s.Wm)(d,{ref:"scrollBarRef",height:e.maxHeight?void 0:e.height,"max-height":e.maxHeight?e.height:void 0,"view-style":e.scrollbarViewStyle,always:e.scrollbarAlwaysOn},{default:(0,s.w5)((()=>[(0,s._)("table",{ref:"tableBody",class:(0,c.C_)(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:(0,c.j5)({width:e.bodyWidth,tableLayout:e.tableLayout})},[(0,s.Wm)(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&"auto"===e.tableLayout?((0,s.wg)(),(0,s.j4)(l,{key:0,border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])):(0,s.kq)("v-if",!0),(0,s.Wm)(u,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.tooltipEffect,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","row-style","store","stripe"])],6),e.isEmpty?((0,s.wg)(),(0,s.iD)("div",{key:0,ref:"emptyBlock",style:(0,c.j5)(e.emptyBlockStyle),class:(0,c.C_)(e.ns.e("empty-block"))},[(0,s._)("span",{class:(0,c.C_)(e.ns.e("empty-text"))},[(0,s.WI)(e.$slots,"empty",{},(()=>[(0,s.Uk)((0,c.zw)(e.computedEmptyText),1)]))],2)],6)):(0,s.kq)("v-if",!0),e.$slots.append?((0,s.wg)(),(0,s.iD)("div",{key:1,ref:"appendWrapper",class:(0,c.C_)(e.ns.e("append-wrapper"))},[(0,s.WI)(e.$slots,"append")],2)):(0,s.kq)("v-if",!0)])),_:3},8,["height","max-height","view-style","always"])],6),e.border||e.isGroup?((0,s.wg)(),(0,s.iD)("div",{key:1,class:(0,c.C_)(e.ns.e("border-left-patch"))},null,2)):(0,s.kq)("v-if",!0)],2),e.showSummary?(0,s.wy)(((0,s.wg)(),(0,s.iD)("div",{key:0,ref:"footerWrapper",class:(0,c.C_)(e.ns.e("footer-wrapper"))},[(0,s.Wm)(p,{border:e.border,"default-sort":e.defaultSort,store:e.store,style:(0,c.j5)(e.tableBodyStyles),"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","style","sum-text","summary-method"])],2)),[[S.F8,!e.isEmpty],[f,e.handleHeaderFooterMousewheel]]):(0,s.kq)("v-if",!0),(0,s.wy)((0,s._)("div",{ref:"resizeProxy",class:(0,c.C_)(e.ns.e("column-resize-proxy"))},null,2),[[S.F8,e.resizeProxyVisible]])],46,Vx)}var $x=(0,h.Z)(jx,[["render",Bx],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/table.vue"]]);const zx={selection:"table-column--selection",expand:"table__expand-column"},Wx={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:""},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},qx=e=>zx[e]||"",Zx={selection:{renderHeader({store:e}){function t(){return e.states.data.value&&0===e.states.data.value.length}return(0,s.h)(Pn,{disabled:t(),size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":e.toggleAllSelection,modelValue:e.states.isAllSelected.value})},renderCell({row:e,column:t,store:n,$index:r}){return(0,s.h)(Pn,{disabled:!!t.selectable&&!t.selectable.call(null,e,r),size:n.states.tableSize.value,onChange:()=>{n.commit("rowSelectedChanged",e)},onClick:e=>e.stopPropagation(),modelValue:n.isSelected(e)})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:t}){let n=t+1;const r=e.index;return"number"===typeof r?n=t+r:"function"===typeof r&&(n=r(t)),(0,s.h)("div",{},[n])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({row:e,store:t,expanded:n}){const{ns:r}=t,o=[r.e("expand-icon")];n&&o.push(r.em("expand-icon","expanded"));const i=function(n){n.stopPropagation(),t.toggleRowExpansion(e)};return(0,s.h)("div",{class:o,onClick:i},{default:()=>[(0,s.h)(C.gn,null,{default:()=>[(0,s.h)(Tt)]})]})},sortable:!1,resizable:!1}};function Yx({row:e,column:t,$index:n}){var r;const o=t.property,i=o&&(0,x.WJ)(e,o).value;return t&&t.formatter?t.formatter(e,t,i,n):(null==(r=null==i?void 0:i.toString)?void 0:r.call(i))||""}function Kx({row:e,treeNode:t,store:n},r=!1){const{ns:o}=n;if(!t)return r?[(0,s.h)("span",{class:o.e("placeholder")})]:null;const i=[],a=function(t){t.stopPropagation(),n.loadOrToggle(e)};if(t.indent&&i.push((0,s.h)("span",{class:o.e("indent"),style:{"padding-left":`${t.indent}px`}})),"boolean"!==typeof t.expanded||t.noLazyChildren)i.push((0,s.h)("span",{class:o.e("placeholder")}));else{const e=[o.e("expand-icon"),t.expanded?o.em("expand-icon","expanded"):""];let n=Tt;t.loading&&(n=U.Z),i.push((0,s.h)("div",{class:e,onClick:a},{default:()=>[(0,s.h)(C.gn,{class:{[o.is("loading")]:t.loading}},{default:()=>[(0,s.h)(n)]})]}))}return i}function Jx(e,t){return e.reduce(((e,t)=>(e[t]=t,e)),t)}function Gx(e,t){const n=(0,s.FN)(),r=()=>{const r=["fixed"],o={realWidth:"width",realMinWidth:"minWidth"},i=Jx(r,o);Object.keys(i).forEach((r=>{const i=o[r];(0,c.RI)(t,i)&&(0,s.YP)((()=>t[i]),(t=>{let o=t;"width"===i&&"realWidth"===r&&(o=oC(t)),"minWidth"===i&&"realMinWidth"===r&&(o=iC(t)),n.columnConfig.value[i]=o,n.columnConfig.value[r]=o;const a="fixed"===i;e.value.store.scheduleLayout(a)}))}))},o=()=>{const e=["label","filters","filterMultiple","sortable","index","formatter","className","labelClassName","showOverflowTooltip"],r={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},o=Jx(e,r);Object.keys(o).forEach((e=>{const o=r[e];(0,c.RI)(t,o)&&(0,s.YP)((()=>t[o]),(t=>{n.columnConfig.value[e]=t}))}))};return{registerComplexWatchers:r,registerNormalWatchers:o}}function Xx(e,t,n){const r=(0,s.FN)(),o=(0,l.iH)(""),i=(0,l.iH)(!1),a=(0,l.iH)(),c=(0,l.iH)(),u=(0,m.s)("table");(0,s.m0)((()=>{a.value=e.align?`is-${e.align}`:null,a.value})),(0,s.m0)((()=>{c.value=e.headerAlign?`is-${e.headerAlign}`:a.value,c.value}));const d=(0,s.Fl)((()=>{let e=r.vnode.vParent||r.parent;while(e&&!e.tableId&&!e.columnId)e=e.vnode.vParent||e.parent;return e})),p=(0,s.Fl)((()=>{const{store:e}=r.parent;if(!e)return!1;const{treeData:t}=e.states,n=t.value;return n&&Object.keys(n).length>0})),f=(0,l.iH)(oC(e.width)),h=(0,l.iH)(iC(e.minWidth)),g=e=>(f.value&&(e.width=f.value),h.value&&(e.minWidth=h.value),e.minWidth||(e.minWidth=80),e.realWidth=Number(void 0===e.width?e.minWidth:e.width),e),y=e=>{const t=e.type,n=Zx[t]||{};Object.keys(n).forEach((t=>{const r=n[t];"className"!==t&&void 0!==r&&(e[t]=r)}));const r=qx(t);if(r){const t=`${(0,l.SU)(u.namespace)}-${r}`;e.className=e.className?`${e.className} ${t}`:t}return e},b=e=>{function t(e){var t;"ElTableColumn"===(null==(t=null==e?void 0:e.type)?void 0:t.name)&&(e.vParent=r)}Array.isArray(e)?e.forEach((e=>t(e))):t(e)},_=o=>{e.renderHeader?(0,v.N)("TableColumn","Comparing to render-header, scoped-slot header is easier to use. We recommend users to use scoped-slot header."):"selection"!==o.type&&(o.renderHeader=e=>{r.columnConfig.value["label"];const n=t.header;return n?n(e):o.label});let i=o.renderCell;const a=p.value;return"expand"===o.type?(o.renderCell=e=>(0,s.h)("div",{class:"cell"},[i(e)]),n.value.renderExpanded=e=>t.default?t.default(e):t.default):(i=i||Yx,o.renderCell=e=>{let n=null;if(t.default){const r=t.default(e);n=r.some((e=>e.type!==s.sv))?r:i(e)}else n=i(e);const r=a&&0===e.cellIndex,c=Kx(e,r),d={class:"cell",style:{}};return o.showOverflowTooltip&&(d.class=`${d.class} ${(0,l.SU)(u.namespace)}-tooltip`,d.style={width:(e.column.realWidth||Number(e.column.width))-1+"px"}),b(n),(0,s.h)("div",d,[c,n])}),o},w=(...t)=>t.reduce(((t,n)=>(Array.isArray(n)&&n.forEach((n=>{t[n]=e[n]})),t)),{}),k=(e,t)=>Array.prototype.indexOf.call(e,t);return{columnId:o,realAlign:a,isSubColumn:i,realHeaderAlign:c,columnOrTableParent:d,setColumnWidth:g,setColumnForcedProps:y,setColumnRenders:_,getPropsData:w,getColumnElIndex:k}}var Qx={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showTooltipWhenOverflow:Boolean,showOverflowTooltip:Boolean,fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every((e=>["ascending","descending",null].includes(e)))}};let eI=1;var tI=(0,s.aZ)({name:"ElTableColumn",components:{ElCheckbox:Pn},props:Qx,setup(e,{slots:t}){const n=(0,s.FN)(),r=(0,l.iH)({}),o=(0,s.Fl)((()=>{let e=n.parent;while(e&&!e.tableId)e=e.parent;return e})),{registerNormalWatchers:i,registerComplexWatchers:a}=Gx(o,e),{columnId:c,isSubColumn:u,realHeaderAlign:d,columnOrTableParent:p,setColumnWidth:f,setColumnForcedProps:h,setColumnRenders:m,getPropsData:v,getColumnElIndex:g,realAlign:y}=Xx(e,t,o),b=p.value;c.value=`${b.tableId||b.columnId}_column_${eI++}`,(0,s.wF)((()=>{u.value=o.value!==b;const t=e.type||"default",s=""===e.sortable||e.sortable,l={...Wx[t],id:c.value,type:t,property:e.prop||e.property,align:y,headerAlign:d,showOverflowTooltip:e.showOverflowTooltip||e.showTooltipWhenOverflow,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:s,index:e.index,rawColumnKey:n.vnode.key},p=["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],g=["sortMethod","sortBy","sortOrders"],_=["selectable","reserveSelection"],w=["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"];let k=v(p,g,_,w);k=rC(l,k);const S=sC(m,f,h);k=S(k),r.value=k,i(),a()})),(0,s.bv)((()=>{var e;const t=p.value,i=u.value?t.vnode.el.children:null==(e=t.refs.hiddenColumns)?void 0:e.children,a=()=>g(i||[],n.vnode.el);r.value.getColumnIndex=a;const s=a();s>-1&&o.value.store.commit("insertColumn",r.value,u.value?t.columnConfig.value:null)})),(0,s.Jd)((()=>{o.value.store.commit("removeColumn",r.value,u.value?b.columnConfig.value:null)})),n.columnId=c.value,n.columnConfig=r},render(){var e,t,n;try{const r=null==(t=(e=this.$slots).default)?void 0:t.call(e,{row:{},column:{},$index:-1}),o=[];if(Array.isArray(r))for(const e of r)"ElTableColumn"===(null==(n=e.type)?void 0:n.name)||2&e.shapeFlag?o.push(e):e.type===s.HY&&Array.isArray(e.children)&&e.children.forEach((e=>{1024===(null==e?void 0:e.patchFlag)||(0,c.HD)(null==e?void 0:e.children)||o.push(e)}));const i=(0,s.h)("div",o);return i}catch(ME){return(0,s.h)("div",[])}}});const nI=(0,w.nz)($x,{TableColumn:tI}),rI=(0,w.dp)(tI),oI=(0,d.o8)({tabs:{type:(0,d.Cq)(Array),default:()=>(0,To.N)([])}}),iI=Symbol("tabsRootContextKey"),aI={name:"ElTabBar"},sI=(0,s.aZ)({...aI,props:oI,setup(e,{expose:t}){const n=e,r="ElTabBar",o=(0,s.FN)(),i=(0,s.f3)(iI);i||(0,v._)(r,"<el-tabs><el-tab-bar /></el-tabs>");const a=(0,m.s)("tabs"),d=(0,l.iH)(),p=(0,l.iH)(),f=()=>{let e=0,t=0;const r=["top","bottom"].includes(i.props.tabPosition)?"width":"height",a="width"===r?"x":"y";return n.tabs.every((i=>{var s,l,u,d;const p=null==(l=null==(s=o.parent)?void 0:s.refs)?void 0:l[`tab-${i.paneName}`];if(!p)return!1;if(!i.active)return!0;t=p[`client${(0,c.kC)(r)}`];const f="x"===a?"left":"top";e=p.getBoundingClientRect()[f]-(null!=(d=null==(u=p.parentElement)?void 0:u.getBoundingClientRect()[f])?d:0);const h=window.getComputedStyle(p);return"width"===r&&(n.tabs.length>1&&(t-=Number.parseFloat(h.paddingLeft)+Number.parseFloat(h.paddingRight)),e+=Number.parseFloat(h.paddingLeft)),!1})),{[r]:`${t}px`,transform:`translate${(0,c.kC)(a)}(${e}px)`}},h=()=>p.value=f();return(0,s.YP)((()=>n.tabs),(async()=>{await(0,s.Y3)(),h()}),{immediate:!0}),(0,u.yU7)(d,(()=>h())),t({ref:d,update:h}),(e,t)=>((0,s.wg)(),(0,s.iD)("div",{ref_key:"barRef",ref:d,class:(0,c.C_)([(0,l.SU)(a).e("active-bar"),(0,l.SU)(a).is((0,l.SU)(i).props.tabPosition)]),style:(0,c.j5)(p.value)},null,6))}});var lI=(0,h.Z)(sI,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-bar.vue"]]);const cI=(0,d.o8)({panes:{type:(0,d.Cq)(Array),default:()=>(0,To.N)([])},currentName:{type:[String,Number],default:""},editable:Boolean,onTabClick:{type:(0,d.Cq)(Function),default:c.dG},onTabRemove:{type:(0,d.Cq)(Function),default:c.dG},type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),uI="ElTabNav",dI=(0,s.aZ)({name:uI,props:cI,setup(e,{expose:t}){const n=(0,s.f3)(iI);n||(0,v._)(uI,"<el-tabs><tab-nav /></el-tabs>");const r=(0,m.s)("tabs"),o=(0,u.xKQ)(),i=(0,u.vou)(),a=(0,l.iH)(),d=(0,l.iH)(),p=(0,l.iH)(),f=(0,l.iH)(!1),h=(0,l.iH)(0),g=(0,l.iH)(!1),y=(0,l.iH)(!0),b=(0,s.Fl)((()=>["top","bottom"].includes(n.props.tabPosition)?"width":"height")),_=(0,s.Fl)((()=>{const e="width"===b.value?"X":"Y";return{transform:`translate${e}(-${h.value}px)`}})),w=()=>{if(!a.value)return;const e=a.value[`offset${(0,c.kC)(b.value)}`],t=h.value;if(!t)return;const n=t>e?t-e:0;h.value=n},k=()=>{if(!a.value||!d.value)return;const e=d.value[`offset${(0,c.kC)(b.value)}`],t=a.value[`offset${(0,c.kC)(b.value)}`],n=h.value;if(e-n<=t)return;const r=e-n>2*t?n+t:e-t;h.value=r},S=()=>{const e=d.value;if(!f.value||!p.value||!a.value||!e)return;const t=p.value.querySelector(".is-active");if(!t)return;const r=a.value,o=["top","bottom"].includes(n.props.tabPosition),i=t.getBoundingClientRect(),s=r.getBoundingClientRect(),l=o?e.offsetWidth-s.width:e.offsetHeight-s.height,c=h.value;let u=c;o?(i.left<s.left&&(u=c-(s.left-i.left)),i.right>s.right&&(u=c+i.right-s.right)):(i.top<s.top&&(u=c-(s.top-i.top)),i.bottom>s.bottom&&(u=c+(i.bottom-s.bottom))),u=Math.max(u,0),h.value=Math.min(u,l)},x=()=>{if(!d.value||!a.value)return;const e=d.value[`offset${(0,c.kC)(b.value)}`],t=a.value[`offset${(0,c.kC)(b.value)}`],n=h.value;if(t<e){const n=h.value;f.value=f.value||{},f.value.prev=n,f.value.next=n+t<e,e-n<t&&(h.value=e-t)}else f.value=!1,n>0&&(h.value=0)},I=e=>{const t=e.code,{up:n,down:r,left:o,right:i}=Xn.n;if(![n,r,o,i].includes(t))return;const a=Array.from(e.currentTarget.querySelectorAll("[role=tab]")),s=a.indexOf(e.target);let l;l=t===o||t===n?0===s?a.length-1:s-1:s<a.length-1?s+1:0,a[l].focus(),a[l].click(),T()},T=()=>{y.value&&(g.value=!0)},E=()=>g.value=!1;return(0,s.YP)(o,(e=>{"hidden"===e?y.value=!1:"visible"===e&&setTimeout((()=>y.value=!0),50)})),(0,s.YP)(i,(e=>{e?setTimeout((()=>y.value=!0),50):y.value=!1})),(0,u.yU7)(p,x),(0,s.bv)((()=>setTimeout((()=>S()),0))),(0,s.ic)((()=>x())),t({scrollToActiveTab:S,removeFocus:E}),()=>{const t=f.value?[(0,s.Wm)("span",{class:[r.e("nav-prev"),r.is("disabled",!f.value.prev)],onClick:w},[(0,s.Wm)(C.gn,null,{default:()=>[(0,s.Wm)(wt,null,null)]})]),(0,s.Wm)("span",{class:[r.e("nav-next"),r.is("disabled",!f.value.next)],onClick:k},[(0,s.Wm)(C.gn,null,{default:()=>[(0,s.Wm)(Tt,null,null)]})])]:null,o=e.panes.map(((t,o)=>{var i,a;const l=t.props.name||t.index||`${o}`,c=t.isClosable||e.editable;t.index=`${o}`;const u=c?(0,s.Wm)(C.gn,{class:"is-icon-close",onClick:n=>e.onTabRemove(t,n)},{default:()=>[(0,s.Wm)(Go.Z,null,null)]}):null,d=(null==(a=(i=t.instance.slots).label)?void 0:a.call(i))||t.props.label,p=t.active?0:-1;return(0,s.Wm)("div",{ref:`tab-${l}`,class:[r.e("item"),r.is(n.props.tabPosition),r.is("active",t.active),r.is("disabled",t.props.disabled),r.is("closable",c),r.is("focus",g.value)],id:`tab-${l}`,key:`tab-${l}`,"aria-controls":`pane-${l}`,role:"tab","aria-selected":t.active,tabindex:p,onFocus:()=>T(),onBlur:()=>E(),onClick:n=>{E(),e.onTabClick(t,l,n)},onKeydown:n=>{!c||n.code!==Xn.n["delete"]&&n.code!==Xn.n.backspace||e.onTabRemove(t,n)}},[d,u])}));return(0,s.Wm)("div",{ref:p,class:[r.e("nav-wrap"),r.is("scrollable",!!f.value),r.is(n.props.tabPosition)]},[t,(0,s.Wm)("div",{class:r.e("nav-scroll"),ref:a},[(0,s.Wm)("div",{class:[r.e("nav"),r.is(n.props.tabPosition),r.is("stretch",e.stretch&&["top","bottom"].includes(n.props.tabPosition))],ref:d,style:_.value,role:"tablist",onKeydown:I},[e.type?null:(0,s.Wm)(lI,{tabs:[...e.panes]},null),o])])])}}}),pI=(0,d.o8)({type:{type:String,values:["card","border-card",""],default:""},activeName:{type:[String,Number],default:""},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number],default:""},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:(0,d.Cq)(Function),default:()=>!0},stretch:Boolean}),fI=e=>(0,c.HD)(e)||(0,ne.hj)(e),hI={[V.f_]:e=>fI(e),[V.e_]:e=>fI(e),"tab-click":(e,t)=>t instanceof Event,"tab-change":e=>fI(e),edit:(e,t)=>["remove","add"].includes(t),"tab-remove":e=>fI(e),"tab-add":()=>!0},mI=(e,t=[])=>{const n=e.children||[];return Array.from(n).forEach((e=>{let n=e.type;n=n.name||n,"ElTabPane"===n&&e.component?t.push(e.component):n!==s.HY&&"template"!==n||mI(e,t)})),t};var vI=(0,s.aZ)({name:"ElTabs",props:pI,emits:hI,setup(e,{emit:t,slots:n,expose:r}){const o=(0,s.FN)();(0,cg.A)({scope:"el-tabs",type:"Event",from:"input",replacement:"tab-change",version:"2.5.0",ref:"https://element-plus.org/en-US/component/tabs.html#tabs-events"},(0,s.Fl)((()=>{var e;return(0,c.mf)(null==(e=o.vnode.props)?void 0:e.onInput)})));const i=(0,m.s)("tabs"),a=(0,l.iH)(),u=(0,l.iH)([]),d=(0,l.iH)(e.modelValue||e.activeName||"0"),p={},f=(e=!1)=>{if(n.default){const t=o.subTree.children,n=Array.from(t).find((({props:e})=>(null==e?void 0:e.class)===i.e("content")));if(!n)return;const r=mI(n).map((e=>p[e.uid])),a=!(r.length===u.value.length&&r.every(((e,t)=>e.uid===u.value[t].uid)));(e||a)&&(u.value=r)}else 0!==u.value.length&&(u.value=[])},h=e=>{d.value=e,t(V.e_,e),t(V.f_,e),t("tab-change",e)},v=t=>{var n;if(d.value===t)return;const r=null==(n=e.beforeLeave)?void 0:n.call(e,t,d.value);(0,c.tI)(r)?r.then((()=>{var e,n;h(t),null==(n=null==(e=a.value)?void 0:e.removeFocus)||n.call(e)}),c.dG):!1!==r&&h(t)},g=(e,n,r)=>{e.props.disabled||(v(n),t("tab-click",e,r))},y=(e,n)=>{e.props.disabled||(n.stopPropagation(),t("edit",e.props.name,"remove"),t("tab-remove",e.props.name))},b=()=>{t("edit",void 0,"add"),t("tab-add")};return(0,s.ic)((()=>f())),(0,s.bv)((()=>f())),(0,s.YP)((()=>e.activeName),(e=>v(e))),(0,s.YP)((()=>e.modelValue),(e=>v(e))),(0,s.YP)(d,(async()=>{var e,t;f(!0),await(0,s.Y3)(),await(null==(e=a.value)?void 0:e.$nextTick()),null==(t=a.value)||t.scrollToActiveTab()})),(0,s.JJ)(iI,{props:e,currentName:d,updatePaneState:e=>p[e.uid]=e}),r({currentName:d}),()=>{const t=e.editable||e.addable?(0,s.Wm)("span",{class:i.e("new-tab"),tabindex:"0",onClick:b,onKeydown:e=>{e.code===Xn.n.enter&&b()}},[(0,s.Wm)(C.gn,{class:i.is("icon-plus")},{default:()=>[(0,s.Wm)(wg,null,null)]})]):null,r=(0,s.Wm)("div",{class:[i.e("header"),i.is(e.tabPosition)]},[t,(0,s.Wm)(dI,{ref:a,currentName:d.value,editable:e.editable,type:e.type,panes:u.value,stretch:e.stretch,onTabClick:g,onTabRemove:y},null)]),o=(0,s.Wm)("div",{class:i.e("content")},[(0,s.WI)(n,"default")]);return(0,s.Wm)("div",{class:[i.b(),i.m(e.tabPosition),{[i.m("card")]:"card"===e.type,[i.m("border-card")]:"border-card"===e.type}]},[..."bottom"!==e.tabPosition?[r,o]:[o,r]])}}});const gI=(0,d.o8)({label:{type:String,default:""},name:{type:[String,Number],default:""},closable:Boolean,disabled:Boolean,lazy:Boolean}),yI=["id","aria-hidden","aria-labelledby"],bI={name:"ElTabPane"},_I=(0,s.aZ)({...bI,props:gI,setup(e){const t=e,n="ElTabPane",r=(0,s.FN)(),o=(0,s.f3)(iI);o||(0,v._)(n,"usage: <el-tabs><el-tab-pane /></el-tabs/>");const i=(0,m.s)("tab-pane"),a=(0,l.iH)(),u=(0,s.Fl)((()=>t.closable||o.props.closable)),d=(0,ne.Rc)((()=>o.currentName.value===(t.name||a.value))),p=(0,l.iH)(d.value),f=(0,s.Fl)((()=>t.name||a.value)),h=(0,ne.Rc)((()=>!t.lazy||p.value||d.value));return(0,s.YP)(d,(e=>{e&&(p.value=!0)})),o.updatePaneState((0,l.qj)({uid:r.uid,instance:(0,l.Xl)(r),props:t,paneName:f,active:d,index:a,isClosable:u})),(e,t)=>(0,l.SU)(h)?(0,s.wy)(((0,s.wg)(),(0,s.iD)("div",{key:0,id:`pane-${(0,l.SU)(f)}`,class:(0,c.C_)((0,l.SU)(i).b()),role:"tabpanel","aria-hidden":!(0,l.SU)(d),"aria-labelledby":`tab-${(0,l.SU)(f)}`},[(0,s.WI)(e.$slots,"default")],10,yI)),[[S.F8,(0,l.SU)(d)]]):(0,s.kq)("v-if",!0)}});var wI=(0,h.Z)(_I,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-pane.vue"]]);const kI=(0,w.nz)(vI,{TabPane:wI}),SI=(0,w.dp)(wI);function CI(e){return e}var xI=CI;function II(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var TI=II,EI=Math.max;function RI(e,t,n){return t=EI(void 0===t?e.length-1:t,0),function(){var r=arguments,o=-1,i=EI(r.length-t,0),a=Array(i);while(++o<i)a[o]=r[t+o];o=-1;var s=Array(t+1);while(++o<t)s[o]=r[o];return s[t]=n(a),TI(e,this,s)}}var PI=RI;function OI(e){return function(){return e}}var AI=OI,DI=n(6673),NI=DI.Z?function(e,t){return(0,DI.Z)(e,"toString",{configurable:!0,enumerable:!1,value:AI(t),writable:!0})}:xI,MI=NI,LI=800,FI=16,UI=Date.now;function jI(e){var t=0,n=0;return function(){var r=UI(),o=FI-(r-n);if(n=r,o>0){if(++t>=LI)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var VI=jI,HI=VI(MI),BI=HI;function $I(e,t){return BI(PI(e,t,xI),e+"")}var zI=$I,WI=n(5896);function qI(e,t,n,r){var o=e.length,i=n+(r?1:-1);while(r?i--:++i<o)if(t(e[i],i,e))return i;return-1}var ZI=qI;function YI(e){return e!==e}var KI=YI;function JI(e,t,n){var r=n-1,o=e.length;while(++r<o)if(e[r]===t)return r;return-1}var GI=JI;function XI(e,t,n){return t===t?GI(e,t,n):ZI(e,KI,n)}var QI=XI;function eT(e,t){var n=null==e?0:e.length;return!!n&&QI(e,t,0)>-1}var tT=eT;function nT(e,t,n){var r=-1,o=null==e?0:e.length;while(++r<o)if(n(t,e[r]))return!0;return!1}var rT=nT,oT=n(7121),iT=n(9154);function aT(){}var sT=aT,lT=n(6902),cT=1/0,uT=iT.Z&&1/(0,lT.Z)(new iT.Z([,-0]))[1]==cT?function(e){return new iT.Z(e)}:sT,dT=uT,pT=200;function fT(e,t,n){var r=-1,o=tT,i=e.length,a=!0,s=[],l=s;if(n)a=!1,o=rT;else if(i>=pT){var c=t?null:dT(e);if(c)return(0,lT.Z)(c);a=!1,o=oT.Z,l=new WI.Z}else l=t?[]:s;e:while(++r<i){var u=e[r],d=t?t(u):u;if(u=n||0!==u?u:0,a&&d===d){var p=l.length;while(p--)if(l[p]===d)continue e;t&&l.push(d),s.push(u)}else o(l,d,n)||(l!==s&&l.push(d),s.push(u))}return s}var hT=fT;function mT(e){return(0,dm.Z)(e)&&(0,Bf.Z)(e)}var vT=mT,gT=zI((function(e){return hT(Qt(e,1,vT,!0))})),yT=gT;const bT=(e,t)=>{const n=[];for(let r=e;r<=t;r++)n.push(r);return n},_T=(0,s.aZ)({components:{TimeSpinner:ms},props:{visible:Boolean,actualVisible:Boolean,parsedValue:{type:[Array]},format:{type:String,default:""}},emits:["pick","select-range","set-picker-option"],setup(e,t){const{t:n,lang:r}=(0,Ye.bU)(),o=(0,m.s)("time"),i=(0,m.s)("picker"),a=(0,s.Fl)((()=>e.parsedValue[0])),c=(0,s.Fl)((()=>e.parsedValue[1])),u=cs(e),d=()=>{t.emit("pick",u.value,!1)},p=(0,s.Fl)((()=>e.format.includes("ss"))),f=(0,s.Fl)((()=>e.format.includes("A")?"A":e.format.includes("a")?"a":"")),h=(0,l.iH)([]),v=(0,l.iH)([]),g=(e=!1)=>{t.emit("pick",[a.value,c.value],e)},y=e=>{w(e.millisecond(0),c.value)},b=e=>{w(a.value,e.millisecond(0))},_=e=>{const t=e.map((e=>Ue(e).locale(r.value))),n=A(t);return t[0].isSame(n[0])&&t[1].isSame(n[1])},w=(e,n)=>{t.emit("pick",[e,n],!0)},k=(0,s.Fl)((()=>a.value>c.value)),S=(0,l.iH)([0,2]),C=(e,n)=>{t.emit("select-range",e,n,"min"),S.value=[e,n]},x=(0,s.Fl)((()=>p.value?11:8)),I=(e,n)=>{t.emit("select-range",e,n,"max"),S.value=[e+x.value,n+x.value]},T=e=>{const t=p.value?[0,3,6,11,14,17]:[0,3,8,11],n=["hours","minutes"].concat(p.value?["seconds"]:[]),r=t.indexOf(S.value[0]),o=(r+e+t.length)%t.length,i=t.length/2;o<i?V["start_emitSelectRange"](n[o]):V["end_emitSelectRange"](n[o-i])},E=e=>{const t=e.code;if(t===Xn.n.left||t===Xn.n.right){const n=t===Xn.n.left?-1:1;return T(n),void e.preventDefault()}if(t===Xn.n.up||t===Xn.n.down){const n=t===Xn.n.up?-1:1,r=S.value[0]<x.value?"start":"end";return V[`${r}_scrollDown`](n),void e.preventDefault()}},R=(e,t)=>{const n=z?z(e):[],r="start"===e,o=t||(r?c.value:a.value),i=o.hour(),s=r?bT(i+1,23):bT(0,i-1);return yT(n,s)},P=(e,t,n)=>{const r=W?W(e,t):[],o="start"===t,i=n||(o?c.value:a.value),s=i.hour();if(e!==s)return r;const l=i.minute(),u=o?bT(l+1,59):bT(0,l-1);return yT(r,u)},O=(e,t,n,r)=>{const o=q?q(e,t,n):[],i="start"===n,s=r||(i?c.value:a.value),l=s.hour(),u=s.minute();if(e!==l||t!==u)return o;const d=s.second(),p=i?bT(d+1,59):bT(0,d-1);return yT(o,p)},A=e=>e.map(((t,n)=>L(e[0],e[1],0===n?"start":"end"))),{getAvailableHours:D,getAvailableMinutes:N,getAvailableSeconds:M}=ls(R,P,O),L=(e,t,n)=>{const r={hour:D,minute:N,second:M},o="start"===n;let i=o?e:t;const a=o?t:e;return["hour","minute","second"].forEach((e=>{if(r[e]){let t;const s=r[e];if(t="minute"===e?s(i.hour(),n,a):"second"===e?s(i.hour(),i.minute(),n,a):s(n,a),t&&t.length&&!t.includes(i[e]())){const n=o?0:t.length-1;i=i[e](t[n])}}})),i},F=t=>t?Array.isArray(t)?t.map((t=>Ue(t,e.format).locale(r.value))):Ue(t,e.format).locale(r.value):null,U=t=>t?Array.isArray(t)?t.map((t=>t.format(e.format))):t.format(e.format):null,j=()=>{if(Array.isArray(Z))return Z.map((e=>Ue(e).locale(r.value)));const e=Ue(Z).locale(r.value);return[e,e.add(60,"m")]};t.emit("set-picker-option",["formatToString",U]),t.emit("set-picker-option",["parseUserInput",F]),t.emit("set-picker-option",["isValidValue",_]),t.emit("set-picker-option",["handleKeydown",E]),t.emit("set-picker-option",["getDefaultValue",j]),t.emit("set-picker-option",["getRangeAvailableTime",A]);const V={},H=e=>{V[e[0]]=e[1]},B=(0,s.f3)("EP_PICKER_BASE"),{arrowControl:$,disabledHours:z,disabledMinutes:W,disabledSeconds:q,defaultValue:Z}=B.props;return{nsTime:o,nsPicker:i,arrowControl:$,onSetOption:H,setMaxSelectionRange:I,setMinSelectionRange:C,btnConfirmDisabled:k,handleCancel:d,handleConfirm:g,t:n,showSeconds:p,minDate:a,maxDate:c,amPmMode:f,handleMinChange:y,handleMaxChange:b,minSelectableRange:h,maxSelectableRange:v,disabledHours_:R,disabledMinutes_:P,disabledSeconds_:O}}}),wT=["disabled"];function kT(e,t,n,r,o,i){const a=(0,s.up)("time-spinner");return e.actualVisible?((0,s.wg)(),(0,s.iD)("div",{key:0,class:(0,c.C_)([e.nsTime.b("range-picker"),e.nsPicker.b("panel")])},[(0,s._)("div",{class:(0,c.C_)(e.nsTime.be("range-picker","content"))},[(0,s._)("div",{class:(0,c.C_)(e.nsTime.be("range-picker","cell"))},[(0,s._)("div",{class:(0,c.C_)(e.nsTime.be("range-picker","header"))},(0,c.zw)(e.t("el.datepicker.startTime")),3),(0,s._)("div",{class:(0,c.C_)([e.nsTime.be("range-picker","body"),e.nsTime.be("panel","content"),e.nsTime.is("arrow",e.arrowControl),{"has-seconds":e.showSeconds}])},[(0,s.Wm)(a,{ref:"minSpinner",role:"start","show-seconds":e.showSeconds,"am-pm-mode":e.amPmMode,"arrow-control":e.arrowControl,"spinner-date":e.minDate,"disabled-hours":e.disabledHours_,"disabled-minutes":e.disabledMinutes_,"disabled-seconds":e.disabledSeconds_,onChange:e.handleMinChange,onSetOption:e.onSetOption,onSelectRange:e.setMinSelectionRange},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onChange","onSetOption","onSelectRange"])],2)],2),(0,s._)("div",{class:(0,c.C_)(e.nsTime.be("range-picker","cell"))},[(0,s._)("div",{class:(0,c.C_)(e.nsTime.be("range-picker","header"))},(0,c.zw)(e.t("el.datepicker.endTime")),3),(0,s._)("div",{class:(0,c.C_)([e.nsTime.be("range-picker","body"),e.nsTime.be("panel","content"),e.nsTime.is("arrow",e.arrowControl),{"has-seconds":e.showSeconds}])},[(0,s.Wm)(a,{ref:"maxSpinner",role:"end","show-seconds":e.showSeconds,"am-pm-mode":e.amPmMode,"arrow-control":e.arrowControl,"spinner-date":e.maxDate,"disabled-hours":e.disabledHours_,"disabled-minutes":e.disabledMinutes_,"disabled-seconds":e.disabledSeconds_,onChange:e.handleMaxChange,onSetOption:e.onSetOption,onSelectRange:e.setMaxSelectionRange},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onChange","onSetOption","onSelectRange"])],2)],2)],2),(0,s._)("div",{class:(0,c.C_)(e.nsTime.be("panel","footer"))},[(0,s._)("button",{type:"button",class:(0,c.C_)([e.nsTime.be("panel","btn"),"cancel"]),onClick:t[0]||(t[0]=t=>e.handleCancel())},(0,c.zw)(e.t("el.datepicker.cancel")),3),(0,s._)("button",{type:"button",class:(0,c.C_)([e.nsTime.be("panel","btn"),"confirm"]),disabled:e.btnConfirmDisabled,onClick:t[1]||(t[1]=t=>e.handleConfirm())},(0,c.zw)(e.t("el.datepicker.confirm")),11,wT)],2)],2)):(0,s.kq)("v-if",!0)}var ST=(0,h.Z)(_T,[["render",kT],["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/panel-time-range.vue"]]);Ue.extend(pa);var CT=(0,s.aZ)({name:"ElTimePicker",install:null,props:{...bl,isRange:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,t){const n=(0,l.iH)(null),r=e.isRange?"timerange":"time",o=e.isRange?ST:ys,i={...e,focus:()=>{var e;null==(e=n.value)||e.handleFocus()},blur:()=>{var e;null==(e=n.value)||e.handleBlur()}};return(0,s.JJ)("ElPopperOptions",e.popperOptions),t.expose(i),()=>{var i;const a=null!=(i=e.format)?i:_l;return(0,s.h)(Wl,{...e,format:a,type:r,ref:n,"onUpdate:modelValue":e=>t.emit("update:modelValue",e)},{default:e=>(0,s.h)(o,e)})}}});const xT=CT;xT.install=e=>{e.component(xT.name,xT)};const IT=xT;Ue.extend(pa);const{Option:TT}=Gy.km,ET=e=>{const t=(e||"").split(":");if(t.length>=2){let n=Number.parseInt(t[0],10);const r=Number.parseInt(t[1],10),o=e.toUpperCase();return o.includes("AM")&&12===n?n=0:o.includes("PM")&&12!==n&&(n+=12),{hours:n,minutes:r}}return null},RT=(e,t)=>{const n=ET(e),r=ET(t),o=n.minutes+60*n.hours,i=r.minutes+60*r.hours;return o===i?0:o>i?1:-1},PT=e=>`${e}`.padStart(2,"0"),OT=e=>`${PT(e.hours)}:${PT(e.minutes)}`,AT=(e,t)=>{const n=ET(e),r=ET(t),o={hours:n.hours,minutes:n.minutes};return o.minutes+=r.minutes,o.hours+=r.hours,o.hours+=Math.floor(o.minutes/60),o.minutes=o.minutes%60,OT(o)},DT=(0,s.aZ)({name:"ElTimeSelect",components:{ElSelect:Gy.km,ElOption:TT,ElIcon:C.gn},model:{prop:"value",event:"change"},props:{format:{type:String,default:"HH:mm"},modelValue:String,disabled:{type:Boolean,default:!1},editable:{type:Boolean,default:!0},effect:{type:String,default:"light"},clearable:{type:Boolean,default:!0},size:{type:String,values:Q.k,default:""},placeholder:{type:String,default:""},start:{type:String,default:"09:00"},end:{type:String,default:"18:00"},step:{type:String,default:"00:30"},minTime:{type:String,default:""},maxTime:{type:String,default:""},name:{type:String,default:""},prefixIcon:{type:[String,Object],default:Pl},clearIcon:{type:[String,Object],default:Kr.Z}},emits:["change","blur","focus","update:modelValue"],setup(e){const t=(0,m.s)("input"),n=(0,l.iH)(null),r=(0,s.Fl)((()=>e.modelValue)),o=(0,s.Fl)((()=>{const t=ET(e.start);return OT(t)})),i=(0,s.Fl)((()=>{const t=ET(e.end);return OT(t)})),a=(0,s.Fl)((()=>{const t=ET(e.step);return OT(t)})),c=(0,s.Fl)((()=>{const t=ET(e.minTime);return t?OT(t):null})),u=(0,s.Fl)((()=>{const t=ET(e.maxTime);return t?OT(t):null})),d=(0,s.Fl)((()=>{const t=[];if(e.start&&e.end&&e.step){let n,r=o.value;while(RT(r,i.value)<=0)n=Ue(r,"HH:mm").format(e.format),t.push({value:n,disabled:RT(r,c.value||"-1:-1")<=0||RT(r,u.value||"100:100")>=0}),r=AT(r,a.value)}return t})),p=()=>{var e,t;null==(t=null==(e=n.value)?void 0:e.blur)||t.call(e)},f=()=>{var e,t;null==(t=null==(e=n.value)?void 0:e.focus)||t.call(e)};return{nsInput:t,select:n,value:r,items:d,blur:p,focus:f}}});function NT(e,t,n,r,o,i){const a=(0,s.up)("el-option"),l=(0,s.up)("el-icon"),u=(0,s.up)("el-select");return(0,s.wg)(),(0,s.j4)(u,{ref:"select","model-value":e.value,disabled:e.disabled,clearable:e.clearable,"clear-icon":e.clearIcon,size:e.size,effect:e.effect,placeholder:e.placeholder,"default-first-option":"",filterable:e.editable,"onUpdate:modelValue":t[0]||(t[0]=t=>e.$emit("update:modelValue",t)),onChange:t[1]||(t[1]=t=>e.$emit("change",t)),onBlur:t[2]||(t[2]=t=>e.$emit("blur",t)),onFocus:t[3]||(t[3]=t=>e.$emit("focus",t))},{prefix:(0,s.w5)((()=>[e.prefixIcon?((0,s.wg)(),(0,s.j4)(l,{key:0,class:(0,c.C_)(e.nsInput.e("prefix-icon"))},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)(e.prefixIcon)))])),_:1},8,["class"])):(0,s.kq)("v-if",!0)])),default:(0,s.w5)((()=>[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e.items,(e=>((0,s.wg)(),(0,s.j4)(a,{key:e.value,label:e.value,value:e.value,disabled:e.disabled},null,8,["label","value","disabled"])))),128))])),_:1},8,["model-value","disabled","clearable","clear-icon","size","effect","placeholder","filterable"])}var MT=(0,h.Z)(DT,[["render",NT],["__file","/home/runner/work/element-plus/element-plus/packages/components/time-select/src/time-select.vue"]]);MT.install=e=>{e.component(MT.name,MT)};const LT=MT,FT=LT,UT=(0,s.aZ)({name:"ElTimeline",setup(e,{slots:t}){const n=(0,m.s)("timeline");return(0,s.JJ)("timeline",t),()=>(0,s.h)("ul",{class:[n.b()]},[(0,s.WI)(t,"default")])}}),jT=(0,d.o8)({timestamp:{type:String,default:""},hideTimestamp:{type:Boolean,default:!1},center:{type:Boolean,default:!1},placement:{type:String,default:"bottom"},type:{type:String,default:""},color:{type:String,default:""},size:{type:String,default:"normal"},icon:{type:I.AA,default:""},hollow:{type:Boolean,default:!1}}),VT=(0,s.aZ)({name:"ElTimelineItem",components:{ElIcon:C.gn},props:jT,setup(){const e=(0,m.s)("timeline-item");return{ns:e}}});function HT(e,t,n,r,o,i){const a=(0,s.up)("el-icon");return(0,s.wg)(),(0,s.iD)("li",{class:(0,c.C_)([e.ns.b(),{[e.ns.e("center")]:e.center}])},[(0,s._)("div",{class:(0,c.C_)(e.ns.e("tail"))},null,2),e.$slots.dot?(0,s.kq)("v-if",!0):((0,s.wg)(),(0,s.iD)("div",{key:0,class:(0,c.C_)([e.ns.e("node"),e.ns.em("node",e.size||""),e.ns.em("node",e.type||""),e.ns.is("hollow",e.hollow)]),style:(0,c.j5)({backgroundColor:e.color})},[e.icon?((0,s.wg)(),(0,s.j4)(a,{key:0,class:(0,c.C_)(e.ns.e("icon"))},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)(e.icon)))])),_:1},8,["class"])):(0,s.kq)("v-if",!0)],6)),e.$slots.dot?((0,s.wg)(),(0,s.iD)("div",{key:1,class:(0,c.C_)(e.ns.e("dot"))},[(0,s.WI)(e.$slots,"dot")],2)):(0,s.kq)("v-if",!0),(0,s._)("div",{class:(0,c.C_)(e.ns.e("wrapper"))},[e.hideTimestamp||"top"!==e.placement?(0,s.kq)("v-if",!0):((0,s.wg)(),(0,s.iD)("div",{key:0,class:(0,c.C_)([e.ns.e("timestamp"),e.ns.is("top")])},(0,c.zw)(e.timestamp),3)),(0,s._)("div",{class:(0,c.C_)(e.ns.e("content"))},[(0,s.WI)(e.$slots,"default")],2),e.hideTimestamp||"bottom"!==e.placement?(0,s.kq)("v-if",!0):((0,s.wg)(),(0,s.iD)("div",{key:1,class:(0,c.C_)([e.ns.e("timestamp"),e.ns.is("bottom")])},(0,c.zw)(e.timestamp),3))],2)],2)}var BT=(0,h.Z)(VT,[["render",HT],["__file","/home/runner/work/element-plus/element-plus/packages/components/timeline/src/timeline-item.vue"]]);const $T=(0,w.nz)(UT,{TimelineItem:BT}),zT=(0,w.dp)(BT);var WT=n(4507),qT=n(889),ZT=n(1631);function YT(e,t,n){var r=-1,o=t.length,i={};while(++r<o){var a=t[r],s=(0,WT.Z)(e,a);n(s,a)&&(0,qT.Z)(i,(0,ZT.Z)(a,e),s)}return i}var KT=YT;function JT(e,t){return null!=e&&t in Object(e)}var GT=JT,XT=n(9016),QT=n(2905),eE=n(3430);function tE(e,t,n){t=(0,ZT.Z)(t,e);var r=-1,o=t.length,i=!1;while(++r<o){var a=(0,eE.Z)(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:(o=null==e?0:e.length,!!o&&(0,QT.Z)(o)&&(0,XT.Z)(a,o)&&((0,Yt.Z)(e)||(0,Zt.Z)(e)))}var nE=tE;function rE(e,t){return null!=e&&nE(e,t,GT)}var oE=rE;function iE(e,t){return KT(e,t,(function(t,n){return oE(e,n)}))}var aE=iE;function sE(e){var t=null==e?0:e.length;return t?Qt(e,1):[]}var lE=sE;function cE(e){return BI(PI(e,void 0,lE),e+"")}var uE=cE,dE=uE((function(e,t){return null==e?{}:aE(e,t)})),pE=dE;const fE=(0,d.o8)({nowrap:Boolean});var hE=(e=>(e["top"]="top",e["bottom"]="bottom",e["left"]="left",e["right"]="right",e))(hE||{});const mE=Object.values(hE),vE=(0,d.o8)({width:{type:Number,default:10},height:{type:Number,default:10},style:{type:(0,d.Cq)(Object),default:null}}),gE=(0,d.o8)({side:{type:(0,d.Cq)(String),values:mE,required:!0}}),yE=["absolute","fixed"],bE=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],_E=(0,d.o8)({ariaLabel:String,arrowPadding:{type:(0,d.Cq)(Number),default:5},effect:{type:String,default:""},contentClass:String,placement:{type:(0,d.Cq)(String),values:bE,default:"bottom"},reference:{type:(0,d.Cq)(Object),default:null},offset:{type:Number,default:8},strategy:{type:(0,d.Cq)(String),values:yE,default:"absolute"},showArrow:{type:Boolean,default:!1}}),wE=(0,d.o8)({delayDuration:{type:Number,default:300},defaultOpen:Boolean,open:{type:Boolean,default:void 0},onOpenChange:{type:(0,d.Cq)(Function)},"onUpdate:open":{type:(0,d.Cq)(Function)}}),kE={type:(0,d.Cq)(Function)},SE=(0,d.o8)({onBlur:kE,onClick:kE,onFocus:kE,onMouseDown:kE,onMouseEnter:kE,onMouseLeave:kE}),CE=(0,d.o8)({...wE,...vE,...SE,..._E,alwaysOn:Boolean,fullTransition:Boolean,transitionProps:{type:(0,d.Cq)(Object),default:null},teleported:Boolean,to:{type:(0,d.Cq)(String),default:"body"}}),xE=Symbol("tooltipV2"),IE=Symbol("tooltipV2Content"),TE="tooltip_v2.open",EE={name:"ElTooltipV2Root"},RE=(0,s.aZ)({...EE,props:wE,setup(e,{expose:t}){const n=e,r=(0,l.iH)(n.defaultOpen),o=(0,l.iH)(null),i=(0,s.Fl)({get:()=>(0,Ut.Cl)(n.open)?r.value:n.open,set:e=>{var t;r.value=e,null==(t=n["onUpdate:open"])||t.call(n,e)}}),a=(0,s.Fl)((()=>(0,ne.hj)(n.delayDuration)&&n.delayDuration>0)),{start:c,stop:u}=(0,ne.eM)((()=>{i.value=!0}),(0,s.Fl)((()=>n.delayDuration)),{immediate:!1}),d=(0,m.s)("tooltip-v2"),p=(0,wd.M)(),f=()=>{u(),i.value=!0},h=()=>{(0,l.SU)(a)?c():f()},v=f,g=()=>{u(),i.value=!1},y=e=>{var t;e&&(document.dispatchEvent(new CustomEvent(TE)),v()),null==(t=n.onOpenChange)||t.call(n,e)};return(0,s.YP)(i,y),(0,s.bv)((()=>{document.addEventListener(TE,g)})),(0,s.Jd)((()=>{u(),document.removeEventListener(TE,g)})),(0,s.JJ)(xE,{contentId:p,triggerRef:o,ns:d,onClose:g,onDelayOpen:h,onOpen:v}),t({onOpen:v,onClose:g}),(e,t)=>(0,s.WI)(e.$slots,"default",{open:(0,l.SU)(i)})}});var PE=(0,h.Z)(RE,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/root.vue"]]);const OE={name:"ElTooltipV2Arrow"},AE=(0,s.aZ)({...OE,props:{...vE,...gE},setup(e){const t=e,{ns:n}=(0,s.f3)(xE),{arrowRef:r}=(0,s.f3)(IE),o=(0,s.Fl)((()=>{const{style:e,width:r,height:o}=t,i=n.namespace.value;return{[`--${i}-tooltip-v2-arrow-width`]:`${r}px`,[`--${i}-tooltip-v2-arrow-height`]:`${o}px`,[`--${i}-tooltip-v2-arrow-border-width`]:r/2+"px",[`--${i}-tooltip-v2-arrow-cover-width`]:r/2-1,...e||{}}}));return(e,t)=>((0,s.wg)(),(0,s.iD)("span",{ref_key:"arrowRef",ref:r,style:(0,c.j5)((0,l.SU)(o)),class:(0,c.C_)((0,l.SU)(n).e("arrow"))},null,6))}});var DE=(0,h.Z)(AE,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/arrow.vue"]]);function NE(e){return e.split("-")[0]}function ME(e){return e.split("-")[1]}function LE(e){return["top","bottom"].includes(NE(e))?"x":"y"}function FE(e){return"y"===e?"height":"width"}function UE(e,t,n){let{reference:r,floating:o}=e;const i=r.x+r.width/2-o.width/2,a=r.y+r.height/2-o.height/2,s=LE(t),l=FE(s),c=r[l]/2-o[l]/2,u="x"===s;let d;switch(NE(t)){case"top":d={x:i,y:r.y-o.height};break;case"bottom":d={x:i,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:a};break;case"left":d={x:r.x-o.width,y:a};break;default:d={x:r.x,y:r.y}}switch(ME(t)){case"start":d[s]-=c*(n&&u?-1:1);break;case"end":d[s]+=c*(n&&u?-1:1)}return d}const jE=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=await(null==a.isRTL?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:u}=UE(l,r,s),d=r,p={};for(let f=0;f<i.length;f++){const{name:n,fn:h}=i[f],{x:m,y:v,data:g,reset:y}=await h({x:c,y:u,initialPlacement:r,placement:d,strategy:o,middlewareData:p,rects:l,platform:a,elements:{reference:e,floating:t}});c=null!=m?m:c,u=null!=v?v:u,p={...p,[n]:{...p[n],...g}},y&&("object"==typeof y&&(y.placement&&(d=y.placement),y.rects&&(l=!0===y.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):y.rects),({x:c,y:u}=UE(l,d,s))),f=-1)}return{x:c,y:u,placement:d,strategy:o,middlewareData:p}};function VE(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function HE(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}const BE=Math.min,$E=Math.max;function zE(e,t,n){return $E(e,BE(t,n))}const WE=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:r=0}=null!=e?e:{},{x:o,y:i,placement:a,rects:s,platform:l}=t;if(null==n)return{};const c=VE(r),u={x:o,y:i},d=LE(a),p=FE(d),f=await l.getDimensions(n),h="y"===d?"top":"left",m="y"===d?"bottom":"right",v=s.reference[p]+s.reference[d]-u[d]-s.floating[p],g=u[d]-s.reference[d],y=await(null==l.getOffsetParent?void 0:l.getOffsetParent(n)),b=y?"y"===d?y.clientHeight||0:y.clientWidth||0:0,_=v/2-g/2,w=c[h],k=b-f[p]-c[m],S=b/2-f[p]/2+_,C=zE(w,S,k);return{data:{[d]:C,centerOffset:S-C}}}});const qE=["top","right","bottom","left"];qE.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);const ZE=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s}=t,l=function(e,t,n,r){void 0===r&&(r=!1);const o=NE(e),i=ME(e),a="x"===LE(e),s=["left","top"].includes(o)?-1:1,l=r&&a?-1:1,c="function"==typeof n?n({...t,placement:e}):n;let{mainAxis:u,crossAxis:d,alignmentAxis:p}="number"==typeof c?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...c};return i&&"number"==typeof p&&(d="end"===i?-1*p:p),a?{x:d*l,y:u*s}:{x:u*s,y:d*l}}(o,i,e,await(null==a.isRTL?void 0:a.isRTL(s.floating)));return{x:n+l.x,y:r+l.y,data:l}}}};function YE(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function KE(e){if(null==e)return window;if(!YE(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function JE(e){return KE(e).getComputedStyle(e)}function GE(e){return YE(e)?"":e?(e.nodeName||"").toLowerCase():""}function XE(e){return e instanceof KE(e).HTMLElement}function QE(e){return e instanceof KE(e).Element}function eR(e){return"undefined"!=typeof ShadowRoot&&(e instanceof KE(e).ShadowRoot||e instanceof ShadowRoot)}function tR(e){const{overflow:t,overflowX:n,overflowY:r}=JE(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function nR(e){return["table","td","th"].includes(GE(e))}function rR(e){const t=navigator.userAgent.toLowerCase().includes("firefox"),n=JE(e);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter}function oR(){return!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}const iR=Math.min,aR=Math.max,sR=Math.round;function lR(e,t,n){var r,o,i,a;void 0===t&&(t=!1),void 0===n&&(n=!1);const s=e.getBoundingClientRect();let l=1,c=1;t&&XE(e)&&(l=e.offsetWidth>0&&sR(s.width)/e.offsetWidth||1,c=e.offsetHeight>0&&sR(s.height)/e.offsetHeight||1);const u=QE(e)?KE(e):window,d=!oR()&&n,p=(s.left+(d&&null!=(r=null==(o=u.visualViewport)?void 0:o.offsetLeft)?r:0))/l,f=(s.top+(d&&null!=(i=null==(a=u.visualViewport)?void 0:a.offsetTop)?i:0))/c,h=s.width/l,m=s.height/c;return{width:h,height:m,top:f,right:p+h,bottom:f+m,left:p,x:p,y:f}}function cR(e){return(t=e,(t instanceof KE(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function uR(e){return QE(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function dR(e){return lR(cR(e)).left+uR(e).scrollLeft}function pR(e,t,n){const r=XE(t),o=cR(t),i=lR(e,r&&function(e){const t=lR(e);return sR(t.width)!==e.offsetWidth||sR(t.height)!==e.offsetHeight}(t),"fixed"===n);let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(r||!r&&"fixed"!==n)if(("body"!==GE(t)||tR(o))&&(a=uR(t)),XE(t)){const e=lR(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=dR(o));return{x:i.left+a.scrollLeft-s.x,y:i.top+a.scrollTop-s.y,width:i.width,height:i.height}}function fR(e){return"html"===GE(e)?e:e.assignedSlot||e.parentNode||(eR(e)?e.host:null)||cR(e)}function hR(e){return XE(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function mR(e){const t=KE(e);let n=hR(e);for(;n&&nR(n)&&"static"===getComputedStyle(n).position;)n=hR(n);return n&&("html"===GE(n)||"body"===GE(n)&&"static"===getComputedStyle(n).position&&!rR(n))?t:n||function(e){let t=fR(e);for(eR(t)&&(t=t.host);XE(t)&&!["html","body"].includes(GE(t));){if(rR(t))return t;t=t.parentNode}return null}(e)||t}function vR(e){if(XE(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=lR(e);return{width:t.width,height:t.height}}function gR(e){const t=fR(e);return["html","body","#document"].includes(GE(t))?e.ownerDocument.body:XE(t)&&tR(t)?t:gR(t)}function yR(e,t){var n;void 0===t&&(t=[]);const r=gR(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=KE(r),a=o?[i].concat(i.visualViewport||[],tR(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(yR(a))}function bR(e,t,n){return"viewport"===t?HE(function(e,t){const n=KE(e),r=cR(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=oR();(e||!e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,n)):QE(t)?function(e,t){const n=lR(e,!1,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft;return{top:r,left:o,x:o,y:r,right:o+e.clientWidth,bottom:r+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,n):HE(function(e){var t;const n=cR(e),r=uR(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=aR(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=aR(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0);let s=-r.scrollLeft+dR(e);const l=-r.scrollTop;return"rtl"===JE(o||n).direction&&(s+=aR(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(cR(e)))}function _R(e){const t=yR(e),n=["absolute","fixed"].includes(JE(e).position)&&XE(e)?mR(e):e;return QE(n)?t.filter((e=>QE(e)&&function(e,t){const n=null==t||null==t.getRootNode?void 0:t.getRootNode();if(null!=e&&e.contains(t))return!0;if(n&&eR(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==GE(e))):[]}const wR={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?_R(t):[].concat(n),r],a=i[0],s=i.reduce(((e,n)=>{const r=bR(t,n,o);return e.top=aR(r.top,e.top),e.right=iR(r.right,e.right),e.bottom=iR(r.bottom,e.bottom),e.left=aR(r.left,e.left),e}),bR(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=XE(n),i=cR(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if((o||!o&&"fixed"!==r)&&(("body"!==GE(n)||tR(i))&&(a=uR(n)),XE(n))){const e=lR(n,!0);s.x=e.x+n.clientLeft,s.y=e.y+n.clientTop}return{...t,x:t.x-a.scrollLeft+s.x,y:t.y-a.scrollTop+s.y}},isElement:QE,getDimensions:vR,getOffsetParent:mR,getDocumentElement:cR,getElementRects:e=>{let{reference:t,floating:n,strategy:r}=e;return{reference:pR(t,mR(n),r),floating:{...vR(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===JE(e).direction};const kR=(e,t,n)=>jE(e,t,{platform:wR,...n}),SR=((0,d.o8)({}),e=>{if(!ne.C5)return;if(!e)return e;const t=(0,u.NXq)(e);return t||((0,l.dq)(e)?t:e)}),CR=({middleware:e,placement:t,strategy:n})=>{const r=(0,l.iH)(),o=(0,l.iH)(),i=(0,l.iH)(),a=(0,l.iH)(),c=(0,l.iH)({}),d={x:i,y:a,placement:t,strategy:n,middlewareData:c},p=async()=>{if(!ne.C5)return;const i=SR(r),a=(0,u.NXq)(o);if(!i||!a)return;const s=await kR(i,a,{placement:(0,l.SU)(t),strategy:(0,l.SU)(n),middleware:(0,l.SU)(e)});Object.keys(d).forEach((e=>{d[e].value=s[e]}))};return(0,s.bv)((()=>{(0,s.m0)((()=>{p()}))})),{...d,update:p,referenceRef:r,contentRef:o}},xR=({arrowRef:e,padding:t})=>({name:"arrow",options:{element:e,padding:t},fn(n){const r=(0,l.SU)(e);return r?WE({element:r,padding:t}).fn(n):{}}});var IR=n(9851);const TR=["data-side"],ER={name:"ElTooltipV2Content"},RR=(0,s.aZ)({...ER,props:{..._E,...fE},setup(e){const t=e,{triggerRef:n,contentId:r}=(0,s.f3)(xE),o=(0,l.iH)(t.placement),i=(0,l.iH)(t.strategy),a=(0,l.iH)(null),{referenceRef:u,contentRef:d,middlewareData:p,x:f,y:h,update:v}=CR({placement:o,strategy:i,middleware:(0,s.Fl)((()=>{const e=[ZE(t.offset)];return t.showArrow&&e.push(xR({arrowRef:a})),e}))}),g=(0,Rc.C)().nextZIndex(),y=(0,m.s)("tooltip-v2"),b=(0,s.Fl)((()=>o.value.split("-")[0])),_=(0,s.Fl)((()=>({position:(0,l.SU)(i),top:`${(0,l.SU)(h)||0}px`,left:`${(0,l.SU)(f)||0}px`,zIndex:g}))),w=(0,s.Fl)((()=>{if(!t.showArrow)return{};const{arrow:e}=(0,l.SU)(p);return{[`--${y.namespace.value}-tooltip-v2-arrow-x`]:`${null==e?void 0:e.x}px`||"",[`--${y.namespace.value}-tooltip-v2-arrow-y`]:`${null==e?void 0:e.y}px`||""}})),k=(0,s.Fl)((()=>[y.e("content"),y.is("dark","dark"===t.effect),y.is((0,l.SU)(i)),t.contentClass]));return(0,s.YP)(a,(()=>v())),(0,s.YP)((()=>t.placement),(e=>o.value=e)),(0,s.bv)((()=>{(0,s.YP)((()=>t.reference||n.value),(e=>{u.value=e||void 0}),{immediate:!0})})),(0,s.JJ)(IE,{arrowRef:a}),(e,t)=>((0,s.wg)(),(0,s.iD)("div",{ref_key:"contentRef",ref:d,style:(0,c.j5)((0,l.SU)(_)),"data-tooltip-v2-root":""},[e.nowrap?(0,s.kq)("v-if",!0):((0,s.wg)(),(0,s.iD)("div",{key:0,"data-side":(0,l.SU)(b),class:(0,c.C_)((0,l.SU)(k))},[(0,s.WI)(e.$slots,"default",{contentStyle:(0,l.SU)(_),contentClass:(0,l.SU)(k)}),(0,s.Wm)((0,l.SU)(IR.Z),{id:(0,l.SU)(r),role:"tooltip"},{default:(0,s.w5)((()=>[e.ariaLabel?((0,s.wg)(),(0,s.iD)(s.HY,{key:0},[(0,s.Uk)((0,c.zw)(e.ariaLabel),1)],2112)):(0,s.WI)(e.$slots,"default",{key:1})])),_:3},8,["id"]),(0,s.WI)(e.$slots,"arrow",{style:(0,c.j5)((0,l.SU)(w)),side:(0,l.SU)(b)})],10,TR))],4))}});var PR=(0,h.Z)(RR,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/content.vue"]]);const OR=(0,d.o8)({setRef:{type:(0,d.Cq)(Function),required:!0},onlyChild:Boolean});var AR=(0,s.aZ)({props:OR,setup(e,{slots:t}){const n=(0,l.iH)(),r=md(n,(t=>{t?e.setRef(t.nextElementSibling):e.setRef(null)}));return()=>{var n;const[o]=(null==(n=t.default)?void 0:n.call(t))||[],i=e.onlyChild?rc(o.children):o.children;return(0,s.Wm)(s.HY,{ref:r},[i])}}});const DR={name:"ElTooltipV2Trigger"},NR=(0,s.aZ)({...DR,props:{...fE,...SE},setup(e){const t=e,{onClose:n,onOpen:r,onDelayOpen:o,triggerRef:i,contentId:a}=(0,s.f3)(xE);let c=!1;const u=e=>{i.value=e},d=()=>{c=!1},p=(0,Xo.Mj)(t.onMouseEnter,o),f=(0,Xo.Mj)(t.onMouseLeave,n),h=(0,Xo.Mj)(t.onMouseDown,(()=>{n(),c=!0,document.addEventListener("mouseup",d,{once:!0})})),m=(0,Xo.Mj)(t.onFocus,(()=>{c||r()})),v=(0,Xo.Mj)(t.onBlur,n),g=(0,Xo.Mj)(t.onClick,(e=>{0===e.detail&&n()})),y={blur:v,click:g,focus:m,mousedown:h,mouseenter:p,mouseleave:f},b=(e,t,n)=>{e&&Object.entries(t).forEach((([t,r])=>{e[n](t,r)}))};return(0,s.YP)(i,((e,t)=>{b(e,y,"addEventListener"),b(t,y,"removeEventListener"),e&&e.setAttribute("aria-describedby",a.value)})),(0,s.Jd)((()=>{b(i.value,y,"removeEventListener"),document.removeEventListener("mouseup",d)})),(e,t)=>e.nowrap?((0,s.wg)(),(0,s.j4)((0,l.SU)(AR),{key:0,"set-ref":u,"only-child":""},{default:(0,s.w5)((()=>[(0,s.WI)(e.$slots,"default")])),_:3})):((0,s.wg)(),(0,s.iD)("button",(0,s.dG)({key:1,ref_key:"triggerRef",ref:i},e.$attrs),[(0,s.WI)(e.$slots,"default")],16))}});var MR=(0,h.Z)(NR,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/trigger.vue"]]);const LR={name:"ElTooltipV2"},FR=(0,s.aZ)({...LR,props:CE,setup(e){const t=e,n=(0,l.BK)(t),r=(0,l.qj)(pE(n,Object.keys(vE))),o=(0,l.qj)(pE(n,Object.keys(_E))),i=(0,l.qj)(pE(n,Object.keys(wE))),a=(0,l.qj)(pE(n,Object.keys(SE)));return(e,t)=>((0,s.wg)(),(0,s.j4)(PE,(0,c.vs)((0,s.F4)((0,l.SU)(i))),{default:(0,s.w5)((({open:t})=>[(0,s.Wm)(MR,(0,s.dG)((0,l.SU)(a),{nowrap:""}),{default:(0,s.w5)((()=>[(0,s.WI)(e.$slots,"trigger")])),_:3},16),((0,s.wg)(),(0,s.j4)(s.lR,{to:e.to,disabled:!e.teleported},[e.fullTransition?((0,s.wg)(),(0,s.j4)(S.uT,(0,c.vs)((0,s.dG)({key:0},e.transitionProps)),{default:(0,s.w5)((()=>[e.alwaysOn||t?((0,s.wg)(),(0,s.j4)(PR,(0,c.vs)((0,s.dG)({key:0},(0,l.SU)(o))),{arrow:(0,s.w5)((({style:t,side:n})=>[e.showArrow?((0,s.wg)(),(0,s.j4)(DE,(0,s.dG)({key:0},(0,l.SU)(r),{style:t,side:n}),null,16,["style","side"])):(0,s.kq)("v-if",!0)])),default:(0,s.w5)((()=>[(0,s.WI)(e.$slots,"default")])),_:3},16)):(0,s.kq)("v-if",!0)])),_:2},1040)):((0,s.wg)(),(0,s.iD)(s.HY,{key:1},[e.alwaysOn||t?((0,s.wg)(),(0,s.j4)(PR,(0,c.vs)((0,s.dG)({key:0},(0,l.SU)(o))),{arrow:(0,s.w5)((({style:t,side:n})=>[e.showArrow?((0,s.wg)(),(0,s.j4)(DE,(0,s.dG)({key:0},(0,l.SU)(r),{style:t,side:n}),null,16,["style","side"])):(0,s.kq)("v-if",!0)])),default:(0,s.w5)((()=>[(0,s.WI)(e.$slots,"default")])),_:3},16)):(0,s.kq)("v-if",!0)],2112))],8,["to","disabled"]))])),_:3},16))}});var UR=(0,h.Z)(FR,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/tooltip.vue"]]);const jR=(0,w.nz)(UR),VR=(0,s.aZ)({name:"Search"}),HR={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},BR=(0,s._)("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704z"},null,-1),$R=[BR];function zR(e,t,n,r,o,i){return(0,s.wg)(),(0,s.iD)("svg",HR,$R)}var WR=(0,ce.Z)(VR,[["render",zR]]);const qR="checked-change",ZR={data:{type:Array,default(){return[]}},optionRender:Function,placeholder:String,title:String,filterable:Boolean,format:Object,filterMethod:Function,defaultChecked:Array,props:Object},YR=(e,t)=>{const{emit:n}=(0,s.FN)(),r=(0,s.Fl)((()=>e.props.label||"label")),o=(0,s.Fl)((()=>e.props.key||"key")),i=(0,s.Fl)((()=>e.props.disabled||"disabled")),a=(0,s.Fl)((()=>e.data.filter((n=>{if("function"===typeof e.filterMethod)return e.filterMethod(t.query,n);{const e=n[r.value]||n[o.value].toString();return e.toLowerCase().includes(t.query.toLowerCase())}})))),l=(0,s.Fl)((()=>a.value.filter((e=>!e[i.value])))),c=(0,s.Fl)((()=>{const n=t.checked.length,r=e.data.length,{noChecked:o,hasChecked:i}=e.format;return o&&i?n>0?i.replace(/\${checked}/g,n.toString()).replace(/\${total}/g,r.toString()):o.replace(/\${total}/g,r.toString()):`${n}/${r}`})),u=(0,s.Fl)((()=>{const e=t.checked.length;return e>0&&e<l.value.length})),d=()=>{const e=l.value.map((e=>e[o.value]));t.allChecked=e.length>0&&e.every((e=>t.checked.includes(e)))},p=e=>{t.checked=e?l.value.map((e=>e[o.value])):[]};return(0,s.YP)((()=>t.checked),((e,r)=>{if(d(),t.checkChangeByUser){const t=e.concat(r).filter((t=>!e.includes(t)||!r.includes(t)));n(qR,e,t)}else n(qR,e),t.checkChangeByUser=!0})),(0,s.YP)(l,(()=>{d()})),(0,s.YP)((()=>e.data),(()=>{const e=[],n=a.value.map((e=>e[o.value]));t.checked.forEach((t=>{n.includes(t)&&e.push(t)})),t.checkChangeByUser=!1,t.checked=e})),(0,s.YP)((()=>e.defaultChecked),((e,n)=>{if(n&&e.length===n.length&&e.every((e=>n.includes(e))))return;const r=[],i=l.value.map((e=>e[o.value]));e.forEach((e=>{i.includes(e)&&r.push(e)})),t.checkChangeByUser=!1,t.checked=r}),{immediate:!0}),{labelProp:r,keyProp:o,disabledProp:i,filteredData:a,checkableData:l,checkedSummary:c,isIndeterminate:u,updateAllChecked:d,handleAllCheckedChange:p}},KR=(0,s.aZ)({name:"ElTransferPanel",components:{ElCheckboxGroup:An,ElCheckbox:Pn,ElInput:M.EZ,OptionContent:({option:e})=>e},props:ZR,emits:[qR],setup(e,{slots:t}){const{t:n}=(0,Ye.bU)(),r=(0,m.s)("transfer"),o=(0,l.qj)({checked:[],allChecked:!1,query:"",inputHover:!1,checkChangeByUser:!0}),{labelProp:i,keyProp:a,disabledProp:c,filteredData:u,checkedSummary:d,isIndeterminate:p,handleAllCheckedChange:f}=YR(e,o),h=(0,s.Fl)((()=>o.query.length>0&&0===u.value.length)),v=(0,s.Fl)((()=>!!t.default()[0].children.length)),{checked:g,allChecked:y,query:b,inputHover:_,checkChangeByUser:w}=(0,l.BK)(o);return{ns:r,labelProp:i,keyProp:a,disabledProp:c,filteredData:u,checkedSummary:d,isIndeterminate:p,handleAllCheckedChange:f,checked:g,allChecked:y,query:b,inputHover:_,checkChangeByUser:w,hasNoMatch:h,SearchIcon:WR,hasFooter:v,t:n}}});function JR(e,t,n,r,o,i){const a=(0,s.up)("el-checkbox"),l=(0,s.up)("el-input"),u=(0,s.up)("option-content"),d=(0,s.up)("el-checkbox-group");return(0,s.wg)(),(0,s.iD)("div",{class:(0,c.C_)(e.ns.b("panel"))},[(0,s._)("p",{class:(0,c.C_)(e.ns.be("panel","header"))},[(0,s.Wm)(a,{modelValue:e.allChecked,"onUpdate:modelValue":t[0]||(t[0]=t=>e.allChecked=t),indeterminate:e.isIndeterminate,onChange:e.handleAllCheckedChange},{default:(0,s.w5)((()=>[(0,s.Uk)((0,c.zw)(e.title)+" ",1),(0,s._)("span",null,(0,c.zw)(e.checkedSummary),1)])),_:1},8,["modelValue","indeterminate","onChange"])],2),(0,s._)("div",{class:(0,c.C_)([e.ns.be("panel","body"),e.ns.is("with-footer",e.hasFooter)])},[e.filterable?((0,s.wg)(),(0,s.j4)(l,{key:0,modelValue:e.query,"onUpdate:modelValue":t[1]||(t[1]=t=>e.query=t),class:(0,c.C_)(e.ns.be("panel","filter")),size:"default",placeholder:e.placeholder,"prefix-icon":e.SearchIcon,clearable:"",onMouseenter:t[2]||(t[2]=t=>e.inputHover=!0),onMouseleave:t[3]||(t[3]=t=>e.inputHover=!1)},null,8,["modelValue","class","placeholder","prefix-icon"])):(0,s.kq)("v-if",!0),(0,s.wy)((0,s.Wm)(d,{modelValue:e.checked,"onUpdate:modelValue":t[4]||(t[4]=t=>e.checked=t),class:(0,c.C_)([e.ns.is("filterable",e.filterable),e.ns.be("panel","list")])},{default:(0,s.w5)((()=>[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e.filteredData,(t=>((0,s.wg)(),(0,s.j4)(a,{key:t[e.keyProp],class:(0,c.C_)(e.ns.be("panel","item")),label:t[e.keyProp],disabled:t[e.disabledProp]},{default:(0,s.w5)((()=>[(0,s.Wm)(u,{option:e.optionRender(t)},null,8,["option"])])),_:2},1032,["class","label","disabled"])))),128))])),_:1},8,["modelValue","class"]),[[S.F8,!e.hasNoMatch&&e.data.length>0]]),(0,s.wy)((0,s._)("p",{class:(0,c.C_)(e.ns.be("panel","empty"))},(0,c.zw)(e.hasNoMatch?e.t("el.transfer.noMatch"):e.t("el.transfer.noData")),3),[[S.F8,e.hasNoMatch||0===e.data.length]])],2),e.hasFooter?((0,s.wg)(),(0,s.iD)("p",{key:0,class:(0,c.C_)(e.ns.be("panel","footer"))},[(0,s.WI)(e.$slots,"default")],2)):(0,s.kq)("v-if",!0)],2)}var GR=(0,h.Z)(KR,[["render",JR],["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer-panel.vue"]]);const XR=e=>{const t=(0,s.Fl)((()=>e.props.key)),n=(0,s.Fl)((()=>e.data.reduce(((e,n)=>(e[n[t.value]]=n)&&e),{}))),r=(0,s.Fl)((()=>e.data.filter((n=>!e.modelValue.includes(n[t.value]))))),o=(0,s.Fl)((()=>"original"===e.targetOrder?e.data.filter((n=>e.modelValue.includes(n[t.value]))):e.modelValue.reduce(((e,t)=>{const r=n.value[t];return r&&e.push(r),e}),[])));return{propsKey:t,sourceData:r,targetData:o}},QR="left-check-change",eP="right-check-change",tP=(e,t)=>{const n=(n,r)=>{e.leftChecked=n,void 0!==r&&t(QR,n,r)},r=(n,r)=>{e.rightChecked=n,void 0!==r&&t(eP,n,r)};return{onSourceCheckedChange:n,onTargetCheckedChange:r}},nP=(e,t,n,r)=>{const o=(e,t,n)=>{r(V.f_,e),r(V.O7,e,t,n)},i=()=>{const n=e.modelValue.slice();t.rightChecked.forEach((e=>{const t=n.indexOf(e);t>-1&&n.splice(t,1)})),o(n,"left",t.rightChecked)},a=()=>{let r=e.modelValue.slice();const i=e.data.filter((r=>{const o=r[n.value];return t.leftChecked.includes(o)&&!e.modelValue.includes(o)})).map((e=>e[n.value]));r="unshift"===e.targetOrder?i.concat(r):r.concat(i),"original"===e.targetOrder&&(r=e.data.filter((e=>r.includes(e[n.value]))).map((e=>e[n.value]))),o(r,"right",t.leftChecked)};return{addToLeft:i,addToRight:a}},rP=(0,s.aZ)({name:"ElTransfer",components:{TransferPanel:GR,ElButton:Fe.mi,ElIcon:C.gn,ArrowLeft:wt,ArrowRight:Tt},props:{data:{type:Array,default:()=>[]},titles:{type:Array,default:()=>[]},buttonTexts:{type:Array,default:()=>[]},filterPlaceholder:{type:String,default:""},filterMethod:Function,leftDefaultChecked:{type:Array,default:()=>[]},rightDefaultChecked:{type:Array,default:()=>[]},renderContent:Function,modelValue:{type:Array,default:()=>[]},format:{type:Object,default:()=>({})},filterable:{type:Boolean,default:!1},props:{type:Object,default:()=>({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,default:"original",validator:e=>["original","push","unshift"].includes(e)}},emits:[V.f_,V.O7,QR,eP],setup(e,{emit:t,slots:n}){const{t:r}=(0,Ye.bU)(),o=(0,m.s)("transfer"),i=(0,s.f3)(rn.K,{}),a=(0,l.qj)({leftChecked:[],rightChecked:[]}),{propsKey:c,sourceData:u,targetData:d}=XR(e),{onSourceCheckedChange:p,onTargetCheckedChange:f}=tP(a,t),{addToLeft:h,addToRight:g}=nP(e,a,c,t),y=(0,l.iH)(),b=(0,l.iH)(),_=e=>{switch(e){case"left":y.value.query="";break;case"right":b.value.query="";break}},w=(0,s.Fl)((()=>2===e.buttonTexts.length)),k=(0,s.Fl)((()=>e.titles[0]||r("el.transfer.titles.0"))),S=(0,s.Fl)((()=>e.titles[1]||r("el.transfer.titles.1"))),C=(0,s.Fl)((()=>e.filterPlaceholder||r("el.transfer.filterPlaceholder")));(0,s.YP)((()=>e.modelValue),(()=>{var e;null==(e=i.validate)||e.call(i,"change").catch((e=>(0,v.N)(e)))}));const x=(0,s.Fl)((()=>t=>e.renderContent?e.renderContent(s.h,t):n.default?n.default({option:t}):(0,s.h)("span",t[e.props.label]||t[e.props.key])));return{ns:o,sourceData:u,targetData:d,onSourceCheckedChange:p,onTargetCheckedChange:f,addToLeft:h,addToRight:g,...(0,l.BK)(a),hasButtonTexts:w,leftPanelTitle:k,rightPanelTitle:S,panelFilterPlaceholder:C,clearQuery:_,leftPanel:y,rightPanel:b,optionRender:x}}}),oP={key:0},iP={key:0};function aP(e,t,n,r,o,i){const a=(0,s.up)("transfer-panel"),l=(0,s.up)("arrow-left"),u=(0,s.up)("el-icon"),d=(0,s.up)("el-button"),p=(0,s.up)("arrow-right");return(0,s.wg)(),(0,s.iD)("div",{class:(0,c.C_)(e.ns.b())},[(0,s.Wm)(a,{ref:"leftPanel",data:e.sourceData,"option-render":e.optionRender,placeholder:e.panelFilterPlaceholder,title:e.leftPanelTitle,filterable:e.filterable,format:e.format,"filter-method":e.filterMethod,"default-checked":e.leftDefaultChecked,props:e.props,onCheckedChange:e.onSourceCheckedChange},{default:(0,s.w5)((()=>[(0,s.WI)(e.$slots,"left-footer")])),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),(0,s._)("div",{class:(0,c.C_)(e.ns.e("buttons"))},[(0,s.Wm)(d,{type:"primary",class:(0,c.C_)([e.ns.e("button"),e.ns.is("with-texts",e.hasButtonTexts)]),disabled:0===e.rightChecked.length,onClick:e.addToLeft},{default:(0,s.w5)((()=>[(0,s.Wm)(u,null,{default:(0,s.w5)((()=>[(0,s.Wm)(l)])),_:1}),void 0!==e.buttonTexts[0]?((0,s.wg)(),(0,s.iD)("span",oP,(0,c.zw)(e.buttonTexts[0]),1)):(0,s.kq)("v-if",!0)])),_:1},8,["class","disabled","onClick"]),(0,s.Wm)(d,{type:"primary",class:(0,c.C_)([e.ns.e("button"),e.ns.is("with-texts",e.hasButtonTexts)]),disabled:0===e.leftChecked.length,onClick:e.addToRight},{default:(0,s.w5)((()=>[void 0!==e.buttonTexts[1]?((0,s.wg)(),(0,s.iD)("span",iP,(0,c.zw)(e.buttonTexts[1]),1)):(0,s.kq)("v-if",!0),(0,s.Wm)(u,null,{default:(0,s.w5)((()=>[(0,s.Wm)(p)])),_:1})])),_:1},8,["class","disabled","onClick"])],2),(0,s.Wm)(a,{ref:"rightPanel",data:e.targetData,"option-render":e.optionRender,placeholder:e.panelFilterPlaceholder,filterable:e.filterable,format:e.format,"filter-method":e.filterMethod,title:e.rightPanelTitle,"default-checked":e.rightDefaultChecked,props:e.props,onCheckedChange:e.onTargetCheckedChange},{default:(0,s.w5)((()=>[(0,s.WI)(e.$slots,"right-footer")])),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2)}var sP=(0,h.Z)(rP,[["render",aP],["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/index.vue"]]);sP.install=e=>{e.component(sP.name,sP)};const lP=sP,cP=lP,uP="$treeNodeId",dP=function(e,t){t&&!t[uP]&&Object.defineProperty(t,uP,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},pP=function(e,t){return e?t[e]:t[uP]},fP=e=>{let t=!0,n=!0,r=!0;for(let o=0,i=e.length;o<i;o++){const i=e[o];(!0!==i.checked||i.indeterminate)&&(t=!1,i.disabled||(r=!1)),(!1!==i.checked||i.indeterminate)&&(n=!1)}return{all:t,none:n,allWithoutDisable:r,half:!t&&!n}},hP=function(e){if(0===e.childNodes.length)return;const{all:t,none:n,half:r}=fP(e.childNodes);t?(e.checked=!0,e.indeterminate=!1):r?(e.checked=!1,e.indeterminate=!0):n&&(e.checked=!1,e.indeterminate=!1);const o=e.parent;o&&0!==o.level&&(e.store.checkStrictly||hP(o))},mP=function(e,t){const n=e.store.props,r=e.data||{},o=n[t];if("function"===typeof o)return o(r,e);if("string"===typeof o)return r[o];if("undefined"===typeof o){const e=r[t];return void 0===e?"":e}};let vP=0;class gP{constructor(e){this.id=vP++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,this.canFocus=!1;for(const t in e)(0,c.RI)(e,t)&&(this[t]=e[t]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){const e=this.store;if(!e)throw new Error("[Node]store is required!");e.registerNode(this);const t=e.props;if(t&&"undefined"!==typeof t.isLeaf){const e=mP(this,"isLeaf");"boolean"===typeof e&&(this.isLeafByUser=e)}if(!0!==e.lazy&&this.data?(this.setData(this.data),e.defaultExpandAll&&(this.expanded=!0,this.canFocus=!0)):this.level>0&&e.lazy&&e.defaultExpandAll&&this.expand(),Array.isArray(this.data)||dP(this,this.data),!this.data)return;const n=e.defaultExpandedKeys,r=e.key;r&&n&&n.includes(this.key)&&this.expand(null,e.autoExpandParent),r&&void 0!==e.currentNodeKey&&this.key===e.currentNodeKey&&(e.currentNode=this,e.currentNode.isCurrent=!0),e.lazy&&e._initDefaultCheckedNode(this),this.updateLeafState(),!this.parent||1!==this.level&&!0!==this.parent.expanded||(this.canFocus=!0)}setData(e){let t;Array.isArray(e)||dP(this,e),this.data=e,this.childNodes=[],t=0===this.level&&Array.isArray(this.data)?this.data:mP(this,"children")||[];for(let n=0,r=t.length;n<r;n++)this.insertChild({data:t[n]})}get label(){return mP(this,"label")}get key(){const e=this.store.key;return this.data?this.data[e]:null}get disabled(){return mP(this,"disabled")}get nextSibling(){const e=this.parent;if(e){const t=e.childNodes.indexOf(this);if(t>-1)return e.childNodes[t+1]}return null}get previousSibling(){const e=this.parent;if(e){const t=e.childNodes.indexOf(this);if(t>-1)return t>0?e.childNodes[t-1]:null}return null}contains(e,t=!0){return(this.childNodes||[]).some((n=>n===e||t&&n.contains(e)))}remove(){const e=this.parent;e&&e.removeChild(this)}insertChild(e,t,n){if(!e)throw new Error("InsertChild error: child is required.");if(!(e instanceof gP)){if(!n){const n=this.getChildren(!0);n.includes(e.data)||("undefined"===typeof t||t<0?n.push(e.data):n.splice(t,0,e.data))}Object.assign(e,{parent:this,store:this.store}),e=(0,l.qj)(new gP(e)),e instanceof gP&&e.initialize()}e.level=this.level+1,"undefined"===typeof t||t<0?this.childNodes.push(e):this.childNodes.splice(t,0,e),this.updateLeafState()}insertBefore(e,t){let n;t&&(n=this.childNodes.indexOf(t)),this.insertChild(e,n)}insertAfter(e,t){let n;t&&(n=this.childNodes.indexOf(t),-1!==n&&(n+=1)),this.insertChild(e,n)}removeChild(e){const t=this.getChildren()||[],n=t.indexOf(e.data);n>-1&&t.splice(n,1);const r=this.childNodes.indexOf(e);r>-1&&(this.store&&this.store.deregisterNode(e),e.parent=null,this.childNodes.splice(r,1)),this.updateLeafState()}removeChildByData(e){let t=null;for(let n=0;n<this.childNodes.length;n++)if(this.childNodes[n].data===e){t=this.childNodes[n];break}t&&this.removeChild(t)}expand(e,t){const n=()=>{if(t){let e=this.parent;while(e.level>0)e.expanded=!0,e=e.parent}this.expanded=!0,e&&e(),this.childNodes.forEach((e=>{e.canFocus=!0}))};this.shouldLoadData()?this.loadData((e=>{Array.isArray(e)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||hP(this),n())})):n()}doCreateChildren(e,t={}){e.forEach((e=>{this.insertChild(Object.assign({data:e},t),void 0,!0)}))}collapse(){this.expanded=!1,this.childNodes.forEach((e=>{e.canFocus=!1}))}shouldLoadData(){return!0===this.store.lazy&&this.store.load&&!this.loaded}updateLeafState(){if(!0===this.store.lazy&&!0!==this.loaded&&"undefined"!==typeof this.isLeafByUser)return void(this.isLeaf=this.isLeafByUser);const e=this.childNodes;!this.store.lazy||!0===this.store.lazy&&!0===this.loaded?this.isLeaf=!e||0===e.length:this.isLeaf=!1}setChecked(e,t,n,r){if(this.indeterminate="half"===e,this.checked=!0===e,this.store.checkStrictly)return;if(!this.shouldLoadData()||this.store.checkDescendants){const{all:n,allWithoutDisable:o}=fP(this.childNodes);this.isLeaf||n||!o||(this.checked=!1,e=!1);const i=()=>{if(t){const n=this.childNodes;for(let a=0,s=n.length;a<s;a++){const o=n[a];r=r||!1!==e;const i=o.disabled?o.checked:r;o.setChecked(i,t,!0,r)}const{half:o,all:i}=fP(n);i||(this.checked=i,this.indeterminate=o)}};if(this.shouldLoadData())return void this.loadData((()=>{i(),hP(this)}),{checked:!1!==e});i()}const o=this.parent;o&&0!==o.level&&(n||hP(o))}getChildren(e=!1){if(0===this.level)return this.data;const t=this.data;if(!t)return null;const n=this.store.props;let r="children";return n&&(r=n.children||"children"),void 0===t[r]&&(t[r]=null),e&&!t[r]&&(t[r]=[]),t[r]}updateChildren(){const e=this.getChildren()||[],t=this.childNodes.map((e=>e.data)),n={},r=[];e.forEach(((e,o)=>{const i=e[uP],a=!!i&&t.findIndex((e=>e[uP]===i))>=0;a?n[i]={index:o,data:e}:r.push({index:o,data:e})})),this.store.lazy||t.forEach((e=>{n[e[uP]]||this.removeChildByData(e)})),r.forEach((({index:e,data:t})=>{this.insertChild({data:t},e)})),this.updateLeafState()}loadData(e,t={}){if(!0!==this.store.lazy||!this.store.load||this.loaded||this.loading&&!Object.keys(t).length)e&&e.call(this);else{this.loading=!0;const n=n=>{this.loaded=!0,this.loading=!1,this.childNodes=[],this.doCreateChildren(n,t),this.updateLeafState(),e&&e.call(this,n)};this.store.load(this,n)}}}class yP{constructor(e){this.currentNode=null,this.currentNodeKey=null;for(const t in e)(0,c.RI)(e,t)&&(this[t]=e[t]);this.nodesMap={}}initialize(){if(this.root=new gP({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const e=this.load;e(this.root,(e=>{this.root.doCreateChildren(e),this._initDefaultCheckedNodes()}))}else this._initDefaultCheckedNodes()}filter(e){const t=this.filterNodeMethod,n=this.lazy,r=function(o){const i=o.root?o.root.childNodes:o.childNodes;if(i.forEach((n=>{n.visible=t.call(n,e,n.data,n),r(n)})),!o.visible&&i.length){let e=!0;e=!i.some((e=>e.visible)),o.root?o.root.visible=!1===e:o.visible=!1===e}e&&(!o.visible||o.isLeaf||n||o.expand())};r(this)}setData(e){const t=e!==this.root.data;t?(this.root.setData(e),this._initDefaultCheckedNodes()):this.root.updateChildren()}getNode(e){if(e instanceof gP)return e;const t="object"!==typeof e?e:pP(this.key,e);return this.nodesMap[t]||null}insertBefore(e,t){const n=this.getNode(t);n.parent.insertBefore({data:e},n)}insertAfter(e,t){const n=this.getNode(t);n.parent.insertAfter({data:e},n)}remove(e){const t=this.getNode(e);t&&t.parent&&(t===this.currentNode&&(this.currentNode=null),t.parent.removeChild(t))}append(e,t){const n=t?this.getNode(t):this.root;n&&n.insertChild({data:e})}_initDefaultCheckedNodes(){const e=this.defaultCheckedKeys||[],t=this.nodesMap;e.forEach((e=>{const n=t[e];n&&n.setChecked(!0,!this.checkStrictly)}))}_initDefaultCheckedNode(e){const t=this.defaultCheckedKeys||[];t.includes(e.key)&&e.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(e){e!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=e,this._initDefaultCheckedNodes())}registerNode(e){const t=this.key;if(e&&e.data)if(t){const t=e.key;void 0!==t&&(this.nodesMap[e.key]=e)}else this.nodesMap[e.id]=e}deregisterNode(e){const t=this.key;t&&e&&e.data&&(e.childNodes.forEach((e=>{this.deregisterNode(e)})),delete this.nodesMap[e.key])}getCheckedNodes(e=!1,t=!1){const n=[],r=function(o){const i=o.root?o.root.childNodes:o.childNodes;i.forEach((o=>{(o.checked||t&&o.indeterminate)&&(!e||e&&o.isLeaf)&&n.push(o.data),r(o)}))};return r(this),n}getCheckedKeys(e=!1){return this.getCheckedNodes(e).map((e=>(e||{})[this.key]))}getHalfCheckedNodes(){const e=[],t=function(n){const r=n.root?n.root.childNodes:n.childNodes;r.forEach((n=>{n.indeterminate&&e.push(n.data),t(n)}))};return t(this),e}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map((e=>(e||{})[this.key]))}_getAllNodes(){const e=[],t=this.nodesMap;for(const n in t)(0,c.RI)(t,n)&&e.push(t[n]);return e}updateChildren(e,t){const n=this.nodesMap[e];if(!n)return;const r=n.childNodes;for(let o=r.length-1;o>=0;o--){const e=r[o];this.remove(e.data)}for(let o=0,i=t.length;o<i;o++){const e=t[o];this.append(e,n.data)}}_setCheckedKeys(e,t=!1,n){const r=this._getAllNodes().sort(((e,t)=>t.level-e.level)),o=Object.create(null),i=Object.keys(n);r.forEach((e=>e.setChecked(!1,!1)));for(let a=0,s=r.length;a<s;a++){const n=r[a],s=n.data[e].toString(),l=i.includes(s);if(!l){n.checked&&!o[s]&&n.setChecked(!1,!1);continue}let c=n.parent;while(c&&c.level>0)o[c.data[e]]=!0,c=c.parent;if(n.isLeaf||this.checkStrictly)n.setChecked(!0,!1);else if(n.setChecked(!0,!0),t){n.setChecked(!1,!1);const e=function(t){const n=t.childNodes;n.forEach((t=>{t.isLeaf||t.setChecked(!1,!1),e(t)}))};e(n)}}}setCheckedNodes(e,t=!1){const n=this.key,r={};e.forEach((e=>{r[(e||{})[n]]=!0})),this._setCheckedKeys(n,t,r)}setCheckedKeys(e,t=!1){this.defaultCheckedKeys=e;const n=this.key,r={};e.forEach((e=>{r[e]=!0})),this._setCheckedKeys(n,t,r)}setDefaultExpandedKeys(e){e=e||[],this.defaultExpandedKeys=e,e.forEach((e=>{const t=this.getNode(e);t&&t.expand(null,this.autoExpandParent)}))}setChecked(e,t,n){const r=this.getNode(e);r&&r.setChecked(!!t,n)}getCurrentNode(){return this.currentNode}setCurrentNode(e){const t=this.currentNode;t&&(t.isCurrent=!1),this.currentNode=e,this.currentNode.isCurrent=!0}setUserCurrentNode(e,t=!0){const n=e[this.key],r=this.nodesMap[n];this.setCurrentNode(r),t&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0)}setCurrentNodeKey(e,t=!0){if(null===e||void 0===e)return this.currentNode&&(this.currentNode.isCurrent=!1),void(this.currentNode=null);const n=this.getNode(e);n&&(this.setCurrentNode(n),t&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0))}}const bP=(0,s.aZ)({name:"CaretRight"}),_P={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},wP=(0,s._)("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"},null,-1),kP=[wP];function SP(e,t,n,r,o,i){return(0,s.wg)(),(0,s.iD)("svg",_P,kP)}var CP=(0,ce.Z)(bP,[["render",SP]]);const xP=(0,s.aZ)({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=(0,m.s)("tree"),n=(0,s.f3)("NodeInstance"),r=(0,s.f3)("RootTree");return()=>{const o=e.node,{data:i,store:a}=o;return e.renderContent?e.renderContent(s.h,{_self:n,node:o,data:i,store:a}):r.ctx.slots.default?r.ctx.slots.default({node:o,data:i}):(0,s.h)("span",{class:t.be("node","label")},[o.label])}}});var IP=(0,h.Z)(xP,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node-content.vue"]]);function TP(e){const t=(0,s.f3)("TreeNodeMap",null),n={treeNodeExpand:t=>{e.node!==t&&e.node.collapse()},children:[]};return t&&t.children.push(n),(0,s.JJ)("TreeNodeMap",n),{broadcastExpanded:t=>{if(e.accordion)for(const e of n.children)e.treeNodeExpand(t)}}}const EP=Symbol("dragEvents");function RP({props:e,ctx:t,el$:n,dropIndicator$:r,store:o}){const i=(0,m.s)("tree"),a=(0,l.iH)({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null}),c=({event:n,treeNode:r})=>{if("function"===typeof e.allowDrag&&!e.allowDrag(r.node))return n.preventDefault(),!1;n.dataTransfer.effectAllowed="move";try{n.dataTransfer.setData("text/plain","")}catch(ME){}a.value.draggingNode=r,t.emit("node-drag-start",r.node,n)},u=({event:o,treeNode:s})=>{const l=s,c=a.value.dropNode;c&&c!==l&&(0,re.IV)(c.$el,i.is("drop-inner"));const u=a.value.draggingNode;if(!u||!l)return;let d=!0,p=!0,f=!0,h=!0;"function"===typeof e.allowDrop&&(d=e.allowDrop(u.node,l.node,"prev"),h=p=e.allowDrop(u.node,l.node,"inner"),f=e.allowDrop(u.node,l.node,"next")),o.dataTransfer.dropEffect=p||d||f?"move":"none",(d||p||f)&&c!==l&&(c&&t.emit("node-drag-leave",u.node,c.node,o),t.emit("node-drag-enter",u.node,l.node,o)),(d||p||f)&&(a.value.dropNode=l),l.node.nextSibling===u.node&&(f=!1),l.node.previousSibling===u.node&&(d=!1),l.node.contains(u.node,!1)&&(p=!1),(u.node===l.node||u.node.contains(l.node))&&(d=!1,p=!1,f=!1);const m=l.$el.getBoundingClientRect(),v=n.value.getBoundingClientRect();let g;const y=d?p?.25:f?.45:1:-1,b=f?p?.75:d?.55:0:1;let _=-9999;const w=o.clientY-m.top;g=w<m.height*y?"before":w>m.height*b?"after":p?"inner":"none";const k=l.$el.querySelector(`.${i.be("node","expand-icon")}`).getBoundingClientRect(),S=r.value;"before"===g?_=k.top-v.top:"after"===g&&(_=k.bottom-v.top),S.style.top=`${_}px`,S.style.left=k.right-v.left+"px","inner"===g?(0,re.cn)(l.$el,i.is("drop-inner")):(0,re.IV)(l.$el,i.is("drop-inner")),a.value.showDropIndicator="before"===g||"after"===g,a.value.allowDrop=a.value.showDropIndicator||h,a.value.dropType=g,t.emit("node-drag-over",u.node,l.node,o)},d=e=>{const{draggingNode:n,dropType:r,dropNode:s}=a.value;if(e.preventDefault(),e.dataTransfer.dropEffect="move",n&&s){const a={data:n.node.data};"none"!==r&&n.node.remove(),"before"===r?s.node.parent.insertBefore(a,s.node):"after"===r?s.node.parent.insertAfter(a,s.node):"inner"===r&&s.node.insertChild(a),"none"!==r&&o.value.registerNode(a),(0,re.IV)(s.$el,i.is("drop-inner")),t.emit("node-drag-end",n.node,s.node,r,e),"none"!==r&&t.emit("node-drop",n.node,s.node,r,e)}n&&!s&&t.emit("node-drag-end",n.node,null,r,e),a.value.showDropIndicator=!1,a.value.draggingNode=null,a.value.dropNode=null,a.value.allowDrop=!0};return(0,s.JJ)(EP,{treeNodeDragStart:c,treeNodeDragOver:u,treeNodeDragEnd:d}),{dragState:a}}const PP=(0,s.aZ)({name:"ElTreeNode",components:{ElCollapseTransition:Vo,ElCheckbox:Pn,NodeContent:IP,ElIcon:C.gn,Loading:U.Z},props:{node:{type:gP,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:{type:Boolean,default:!1}},emits:["node-expand"],setup(e,t){const n=(0,m.s)("tree"),{broadcastExpanded:r}=TP(e),o=(0,s.f3)("RootTree"),i=(0,l.iH)(!1),a=(0,l.iH)(!1),u=(0,l.iH)(null),d=(0,l.iH)(null),p=(0,l.iH)(null),f=(0,s.f3)(EP),h=(0,s.FN)();(0,s.JJ)("NodeInstance",h),o||(0,v.N)("Tree","Can not find node's tree."),e.node.expanded&&(i.value=!0,a.value=!0);const g=o.props["children"]||"children";(0,s.YP)((()=>{const t=e.node.data[g];return t&&[...t]}),(()=>{e.node.updateChildren()})),(0,s.YP)((()=>e.node.indeterminate),(t=>{_(e.node.checked,t)})),(0,s.YP)((()=>e.node.checked),(t=>{_(t,e.node.indeterminate)})),(0,s.YP)((()=>e.node.expanded),(e=>{(0,s.Y3)((()=>i.value=e)),e&&(a.value=!0)}));const y=e=>pP(o.props.nodeKey,e.data),b=t=>{const n=e.props.class;if(!n)return{};let r;if((0,c.mf)(n)){const{data:e}=t;r=n(e,t)}else r=n;return(0,c.HD)(r)?{[r]:!0}:r},_=(t,n)=>{u.value===t&&d.value===n||o.ctx.emit("check-change",e.node.data,t,n),u.value=t,d.value=n},w=t=>{const n=o.store.value;n.setCurrentNode(e.node),o.ctx.emit("current-change",n.currentNode?n.currentNode.data:null,n.currentNode),o.currentNode.value=e.node,o.props.expandOnClickNode&&S(),o.props.checkOnClickNode&&!e.node.disabled&&C(null,{target:{checked:!e.node.checked}}),o.ctx.emit("node-click",e.node.data,e.node,h,t)},k=t=>{o.instance.vnode.props["onNodeContextmenu"]&&(t.stopPropagation(),t.preventDefault()),o.ctx.emit("node-contextmenu",t,e.node.data,e.node,h)},S=()=>{e.node.isLeaf||(i.value?(o.ctx.emit("node-collapse",e.node.data,e.node,h),e.node.collapse()):(e.node.expand(),t.emit("node-expand",e.node.data,e.node,h)))},C=(t,n)=>{e.node.setChecked(n.target.checked,!o.props.checkStrictly),(0,s.Y3)((()=>{const t=o.store.value;o.ctx.emit("check",e.node.data,{checkedNodes:t.getCheckedNodes(),checkedKeys:t.getCheckedKeys(),halfCheckedNodes:t.getHalfCheckedNodes(),halfCheckedKeys:t.getHalfCheckedKeys()})}))},x=(e,t,n)=>{r(t),o.ctx.emit("node-expand",e,t,n)},I=t=>{o.props.draggable&&f.treeNodeDragStart({event:t,treeNode:e})},T=t=>{t.preventDefault(),o.props.draggable&&f.treeNodeDragOver({event:t,treeNode:{$el:p.value,node:e.node}})},E=e=>{e.preventDefault()},R=e=>{o.props.draggable&&f.treeNodeDragEnd(e)};return{ns:n,node$:p,tree:o,expanded:i,childNodeRendered:a,oldChecked:u,oldIndeterminate:d,getNodeKey:y,getNodeClass:b,handleSelectChange:_,handleClick:w,handleContextMenu:k,handleExpandIconClick:S,handleCheckChange:C,handleChildNodeExpand:x,handleDragStart:I,handleDragOver:T,handleDrop:E,handleDragEnd:R,CaretRight:CP}}}),OP=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],AP=["aria-expanded"];function DP(e,t,n,r,o,i){const a=(0,s.up)("el-icon"),l=(0,s.up)("el-checkbox"),u=(0,s.up)("loading"),d=(0,s.up)("node-content"),p=(0,s.up)("el-tree-node"),f=(0,s.up)("el-collapse-transition");return(0,s.wy)(((0,s.wg)(),(0,s.iD)("div",{ref:"node$",class:(0,c.C_)([e.ns.b("node"),e.ns.is("expanded",e.expanded),e.ns.is("current",e.node.isCurrent),e.ns.is("hidden",!e.node.visible),e.ns.is("focusable",!e.node.disabled),e.ns.is("checked",!e.node.disabled&&e.node.checked),e.getNodeClass(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.node.disabled,"aria-checked":e.node.checked,draggable:e.tree.props.draggable,"data-key":e.getNodeKey(e.node),onClick:t[1]||(t[1]=(0,S.iM)(((...t)=>e.handleClick&&e.handleClick(...t)),["stop"])),onContextmenu:t[2]||(t[2]=(...t)=>e.handleContextMenu&&e.handleContextMenu(...t)),onDragstart:t[3]||(t[3]=(0,S.iM)(((...t)=>e.handleDragStart&&e.handleDragStart(...t)),["stop"])),onDragover:t[4]||(t[4]=(0,S.iM)(((...t)=>e.handleDragOver&&e.handleDragOver(...t)),["stop"])),onDragend:t[5]||(t[5]=(0,S.iM)(((...t)=>e.handleDragEnd&&e.handleDragEnd(...t)),["stop"])),onDrop:t[6]||(t[6]=(0,S.iM)(((...t)=>e.handleDrop&&e.handleDrop(...t)),["stop"]))},[(0,s._)("div",{class:(0,c.C_)(e.ns.be("node","content")),style:(0,c.j5)({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?((0,s.wg)(),(0,s.j4)(a,{key:0,class:(0,c.C_)([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{expanded:!e.node.isLeaf&&e.expanded}]),onClick:(0,S.iM)(e.handleExpandIconClick,["stop"])},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)(e.tree.props.icon||e.CaretRight)))])),_:1},8,["class","onClick"])):(0,s.kq)("v-if",!0),e.showCheckbox?((0,s.wg)(),(0,s.j4)(l,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:t[0]||(t[0]=(0,S.iM)((()=>{}),["stop"])),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):(0,s.kq)("v-if",!0),e.node.loading?((0,s.wg)(),(0,s.j4)(a,{key:2,class:(0,c.C_)([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:(0,s.w5)((()=>[(0,s.Wm)(u)])),_:1},8,["class"])):(0,s.kq)("v-if",!0),(0,s.Wm)(d,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),(0,s.Wm)(f,null,{default:(0,s.w5)((()=>[!e.renderAfterExpand||e.childNodeRendered?(0,s.wy)(((0,s.wg)(),(0,s.iD)("div",{key:0,class:(0,c.C_)(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded},[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e.node.childNodes,(t=>((0,s.wg)(),(0,s.j4)(p,{key:e.getNodeKey(t),"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,node:t,accordion:e.accordion,props:e.props,onNodeExpand:e.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"])))),128))],10,AP)),[[S.F8,e.expanded]]):(0,s.kq)("v-if",!0)])),_:1})],42,OP)),[[S.F8,e.node.visible]])}var NP=(0,h.Z)(PP,[["render",DP],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node.vue"]]);function MP({el$:e},t){const n=(0,m.s)("tree"),r=(0,l.XI)([]),o=(0,l.XI)([]);(0,s.bv)((()=>{a(),(0,Xo.on)(e.value,"keydown",i)})),(0,s.Jd)((()=>{(0,Xo.S1)(e.value,"keydown",i)})),(0,s.ic)((()=>{r.value=Array.from(e.value.querySelectorAll("[role=treeitem]")),o.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"))})),(0,s.YP)(o,(e=>{e.forEach((e=>{e.setAttribute("tabindex","-1")}))}));const i=o=>{const i=o.target;if(!i.className.includes(n.b("node")))return;const a=o.code;r.value=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`));const s=r.value.indexOf(i);let l;if([Xn.n.up,Xn.n.down].includes(a)){if(o.preventDefault(),a===Xn.n.up){l=-1===s?0:0!==s?s-1:r.value.length-1;const e=l;while(1){if(t.value.getNode(r.value[l].dataset.key).canFocus)break;if(l--,l===e){l=-1;break}l<0&&(l=r.value.length-1)}}else{l=-1===s?0:s<r.value.length-1?s+1:0;const e=l;while(1){if(t.value.getNode(r.value[l].dataset.key).canFocus)break;if(l++,l===e){l=-1;break}l>=r.value.length&&(l=0)}}-1!==l&&r.value[l].focus()}[Xn.n.left,Xn.n.right].includes(a)&&(o.preventDefault(),i.click());const c=i.querySelector('[type="checkbox"]');[Xn.n.enter,Xn.n.space].includes(a)&&c&&(o.preventDefault(),c.click())},a=()=>{var t;r.value=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`)),o.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"));const i=e.value.querySelectorAll(`.${n.is("checked")}[role=treeitem]`);i.length?i[0].setAttribute("tabindex","0"):null==(t=r.value[0])||t.setAttribute("tabindex","0")}}const LP=(0,s.aZ)({name:"ElTree",components:{ElTreeNode:NP},props:{data:{type:Array,default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkDescendants:{type:Boolean,default:!1},autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:Function,showCheckbox:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},allowDrag:Function,allowDrop:Function,props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:{type:Boolean,default:!1},highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},icon:[String,Object]},emits:["check-change","current-change","node-click","node-contextmenu","node-collapse","node-expand","check","node-drag-start","node-drag-end","node-drop","node-drag-leave","node-drag-enter","node-drag-over"],setup(e,t){const{t:n}=(0,Ye.bU)(),r=(0,m.s)("tree"),o=(0,l.iH)(new yP({key:e.nodeKey,data:e.data,lazy:e.lazy,props:e.props,load:e.load,currentNodeKey:e.currentNodeKey,checkStrictly:e.checkStrictly,checkDescendants:e.checkDescendants,defaultCheckedKeys:e.defaultCheckedKeys,defaultExpandedKeys:e.defaultExpandedKeys,autoExpandParent:e.autoExpandParent,defaultExpandAll:e.defaultExpandAll,filterNodeMethod:e.filterNodeMethod}));o.value.initialize();const i=(0,l.iH)(o.value.root),a=(0,l.iH)(null),c=(0,l.iH)(null),u=(0,l.iH)(null),{broadcastExpanded:d}=TP(e),{dragState:p}=RP({props:e,ctx:t,el$:c,dropIndicator$:u,store:o});MP({el$:c},o);const f=(0,s.Fl)((()=>{const{childNodes:e}=i.value;return!e||0===e.length||e.every((({visible:e})=>!e))}));(0,s.YP)((()=>e.defaultCheckedKeys),(e=>{o.value.setDefaultCheckedKey(e)})),(0,s.YP)((()=>e.defaultExpandedKeys),(e=>{o.value.setDefaultExpandedKeys(e)})),(0,s.YP)((()=>e.data),(e=>{o.value.setData(e)}),{deep:!0}),(0,s.YP)((()=>e.checkStrictly),(e=>{o.value.checkStrictly=e}));const h=t=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");o.value.filter(t)},v=t=>pP(e.nodeKey,t.data),g=t=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const n=o.value.getNode(t);if(!n)return[];const r=[n.data];let a=n.parent;while(a&&a!==i.value)r.push(a.data),a=a.parent;return r.reverse()},y=(e,t)=>o.value.getCheckedNodes(e,t),b=e=>o.value.getCheckedKeys(e),_=()=>{const e=o.value.getCurrentNode();return e?e.data:null},w=()=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const t=_();return t?t[e.nodeKey]:null},k=(t,n)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");o.value.setCheckedNodes(t,n)},S=(t,n)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");o.value.setCheckedKeys(t,n)},C=(e,t,n)=>{o.value.setChecked(e,t,n)},x=()=>o.value.getHalfCheckedNodes(),I=()=>o.value.getHalfCheckedKeys(),T=(t,n=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");o.value.setUserCurrentNode(t,n)},E=(t,n=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");o.value.setCurrentNodeKey(t,n)},R=e=>o.value.getNode(e),P=e=>{o.value.remove(e)},O=(e,t)=>{o.value.append(e,t)},A=(e,t)=>{o.value.insertBefore(e,t)},D=(e,t)=>{o.value.insertAfter(e,t)},N=(e,n,r)=>{d(n),t.emit("node-expand",e,n,r)},M=(t,n)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");o.value.updateChildren(t,n)};return(0,s.JJ)("RootTree",{ctx:t,props:e,store:o,root:i,currentNode:a,instance:(0,s.FN)()}),{ns:r,store:o,root:i,currentNode:a,dragState:p,el$:c,dropIndicator$:u,isEmpty:f,filter:h,getNodeKey:v,getNodePath:g,getCheckedNodes:y,getCheckedKeys:b,getCurrentNode:_,getCurrentKey:w,setCheckedNodes:k,setCheckedKeys:S,setChecked:C,getHalfCheckedNodes:x,getHalfCheckedKeys:I,setCurrentNode:T,setCurrentKey:E,t:n,getNode:R,remove:P,append:O,insertBefore:A,insertAfter:D,handleNodeExpand:N,updateKeyChildren:M}}});function FP(e,t,n,r,o,i){var a;const l=(0,s.up)("el-tree-node");return(0,s.wg)(),(0,s.iD)("div",{ref:"el$",class:(0,c.C_)([e.ns.b(),e.ns.is("dragging",!!e.dragState.draggingNode),e.ns.is("drop-not-allow",!e.dragState.allowDrop),e.ns.is("drop-inner","inner"===e.dragState.dropType),{[e.ns.m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e.root.childNodes,(t=>((0,s.wg)(),(0,s.j4)(l,{key:e.getNodeKey(t),node:t,props:e.props,accordion:e.accordion,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent,onNodeExpand:e.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"])))),128)),e.isEmpty?((0,s.wg)(),(0,s.iD)("div",{key:0,class:(0,c.C_)(e.ns.e("empty-block"))},[(0,s._)("span",{class:(0,c.C_)(e.ns.e("empty-text"))},(0,c.zw)(null!=(a=e.emptyText)?a:e.t("el.tree.emptyText")),3)],2)):(0,s.kq)("v-if",!0),(0,s.wy)((0,s._)("div",{ref:"dropIndicator$",class:(0,c.C_)(e.ns.e("drop-indicator"))},null,2),[[S.F8,e.dragState.showDropIndicator]])],2)}var UP=(0,h.Z)(LP,[["render",FP],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree.vue"]]);UP.install=e=>{e.component(UP.name,UP)};const jP=UP,VP=jP,HP=(e,{attrs:t},{tree:n,key:r})=>{const o=(0,m.s)("tree-select"),i={...pE((0,l.BK)(e),Object.keys(Gy.km.props)),...t,valueKey:r,popperClass:(0,s.Fl)((()=>{const t=[o.e("popper")];return e.popperClass&&t.push(e.popperClass),t.join(" ")})),filterMethod:(t="")=>{e.filterMethod&&e.filterMethod(t),(0,s.Y3)((()=>{var e;null==(e=n.value)||e.filter(t)}))},onVisibleChange:n=>{var r;null==(r=t.onVisibleChange)||r.call(t,n),e.filterable&&n&&i.filterMethod()}};return i},BP=(0,s.aZ)({extends:Gy.BT,setup(e,t){const n=Gy.BT.setup(e,t);return delete n.selectOptionClick,n},methods:{selectOptionClick(){this.$el.parentElement.click()}}}),$P=(e,{attrs:t,slots:n,emit:r},{select:o,tree:i,key:a})=>{(0,s.YP)((()=>e.modelValue),(()=>{e.showCheckbox&&(0,s.Y3)((()=>{const t=i.value;t&&!(0,zt.Z)(t.getCheckedKeys(),WP(e.modelValue))&&t.setCheckedKeys(WP(e.modelValue))}))}),{immediate:!0,deep:!0});const u=(0,s.Fl)((()=>({value:a.value,...e.props}))),d=(e,t)=>{var n;const r=u.value[e];return(0,c.mf)(r)?r(t,null==(n=i.value)?void 0:n.getNode(d("value",t))):t[r]};return{...pE((0,l.BK)(e),Object.keys(jP.props)),...t,nodeKey:a,expandOnClickNode:(0,s.Fl)((()=>!e.checkStrictly)),defaultExpandedKeys:(0,s.Fl)((()=>{const t=WP(e.modelValue),n=i.value?t.map((e=>{var t,n,r;return null==(r=null==(n=null==(t=i.value)?void 0:t.getNode(e))?void 0:n.parent)?void 0:r.key})).filter((e=>zP(e))):t;return e.defaultExpandedKeys?e.defaultExpandedKeys.concat(n):n})),renderContent:(t,{node:r,data:o,store:i})=>t(BP,{value:d("value",o),label:d("label",o),disabled:d("disabled",o)},e.renderContent?()=>e.renderContent(t,{node:r,data:o,store:i}):n.default?()=>n.default({node:r,data:o,store:i}):void 0),filterNodeMethod:(t,n,r)=>{var o;return e.filterNodeMethod?e.filterNodeMethod(t,n,r):!t||(null==(o=d("label",n))?void 0:o.includes(t))},onNodeClick:(n,r,i)=>{var a,s,l;if(null==(a=t.onNodeClick)||a.call(t,n,r,i),e.checkStrictly||r.isLeaf){if(!d("disabled",n)){const e=null==(s=o.value)?void 0:s.options.get(d("value",n));null==(l=o.value)||l.handleOptionSelect(e,!0)}}else i.proxy.handleExpandIconClick()},onCheck:(n,o)=>{var a,s;null==(a=t.onCheck)||a.call(t,n,o);const l=e.checkStrictly?o.checkedKeys:null==(s=i.value)?void 0:s.getCheckedKeys(!0),c=d("value",n);r(V.f_,e.multiple?l:l.includes(c)?c:void 0)}}};function zP(e){return e||0===e}function WP(e){return Array.isArray(e)?e:zP(e)?[e]:[]}const qP=(0,s.aZ)({name:"ElTreeSelect",inheritAttrs:!1,props:{...Gy.km.props,...jP.props},setup(e,t){const{slots:n,expose:r}=t,o=(0,l.iH)(),i=(0,l.iH)(),a=(0,s.Fl)((()=>e.valueKey||e.nodeKey||"value")),c=HP(e,t,{select:o,tree:i,key:a}),u=$P(e,t,{select:o,tree:i,key:a}),d=(0,l.qj)({});return r(d),(0,s.bv)((()=>{Object.assign(d,{...pE(i.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...pE(o.value,["focus","blur"])})})),()=>(0,s.h)(Gy.km,(0,l.qj)({...c,ref:e=>o.value=e}),{...n,default:()=>(0,s.h)(jP,(0,l.qj)({...u,ref:e=>i.value=e}))})}});var ZP=(0,h.Z)(qP,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-select/src/tree-select.vue"]]);ZP.install=e=>{e.component(ZP.name,ZP)};const YP=ZP,KP=YP,JP=Symbol(),GP={key:-1,level:-1,data:{}};var XP=(e=>(e["KEY"]="id",e["LABEL"]="label",e["CHILDREN"]="children",e["DISABLED"]="disabled",e))(XP||{}),QP=(e=>(e["ADD"]="add",e["DELETE"]="delete",e))(QP||{});const eO=(0,d.o8)({data:{type:(0,d.Cq)(Array),default:()=>(0,To.N)([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:(0,d.Cq)(Object),default:()=>(0,To.N)({children:"children",label:"label",disabled:"disabled",value:"id"})},highlightCurrent:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},defaultCheckedKeys:{type:(0,d.Cq)(Array),default:()=>(0,To.N)([])},checkStrictly:{type:Boolean,default:!1},defaultExpandedKeys:{type:(0,d.Cq)(Array),default:()=>(0,To.N)([])},indent:{type:Number,default:16},icon:{type:String},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:{type:Boolean,default:!1},currentNodeKey:{type:(0,d.Cq)([String,Number])},accordion:{type:Boolean,default:!1},filterMethod:{type:(0,d.Cq)(Function)},perfMode:{type:Boolean,default:!0}}),tO=(0,d.o8)({node:{type:(0,d.Cq)(Object),default:()=>(0,To.N)(GP)},expanded:{type:Boolean,default:!1},checked:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},current:{type:Boolean,default:!1},hiddenExpandIcon:{type:Boolean,default:!1}}),nO=(0,d.o8)({node:{type:(0,d.Cq)(Object),required:!0}}),rO="node-click",oO="node-expand",iO="node-collapse",aO="current-change",sO="check",lO="check-change",cO="node-contextmenu",uO={[rO]:(e,t,n)=>e&&t&&n,[oO]:(e,t)=>e&&t,[iO]:(e,t)=>e&&t,[aO]:(e,t)=>e&&t,[sO]:(e,t)=>e&&t,[lO]:(e,t)=>e&&"boolean"===typeof t,[cO]:(e,t,n)=>e&&t&&n},dO={click:(e,t)=>!(!e||!t),toggle:e=>!!e,check:(e,t)=>e&&"boolean"===typeof t};function pO(e,t){const n=(0,l.iH)(new Set),r=(0,l.iH)(new Set),{emit:o}=(0,s.FN)();(0,s.YP)((()=>t.value),(()=>(0,s.Y3)((()=>{_(e.defaultCheckedKeys)}))),{immediate:!0});const i=()=>{if(!t.value||!e.showCheckbox||e.checkStrictly)return;const{levelTreeNodeMap:o,maxLevel:i}=t.value,a=n.value,s=new Set;for(let e=i-1;e>=1;--e){const t=o.get(e);t&&t.forEach((e=>{const t=e.children;if(t){let n=!0,r=!1;for(const e of t){const t=e.key;if(a.has(t))r=!0;else{if(s.has(t)){n=!1,r=!0;break}n=!1}}n?a.add(e.key):r?(s.add(e.key),a.delete(e.key)):(a.delete(e.key),s.delete(e.key))}}))}r.value=s},a=e=>n.value.has(e.key),c=e=>r.value.has(e.key),u=(t,r,o=!0)=>{const a=n.value,s=(t,n)=>{a[n?QP.ADD:QP.DELETE](t.key);const r=t.children;!e.checkStrictly&&r&&r.forEach((e=>{e.disabled||s(e,n)}))};s(t,r),i(),o&&d(t,r)},d=(e,t)=>{const{checkedNodes:n,checkedKeys:r}=v(),{halfCheckedNodes:i,halfCheckedKeys:a}=g();o(sO,e.data,{checkedKeys:r,checkedNodes:n,halfCheckedKeys:a,halfCheckedNodes:i}),o(lO,e.data,t)};function p(e=!1){return v(e).checkedKeys}function f(e=!1){return v(e).checkedNodes}function h(){return g().halfCheckedKeys}function m(){return g().halfCheckedNodes}function v(r=!1){const o=[],i=[];if((null==t?void 0:t.value)&&e.showCheckbox){const{treeNodeMap:e}=t.value;n.value.forEach((t=>{const n=e.get(t);n&&(!r||r&&n.isLeaf)&&(i.push(t),o.push(n.data))}))}return{checkedKeys:i,checkedNodes:o}}function g(){const n=[],o=[];if((null==t?void 0:t.value)&&e.showCheckbox){const{treeNodeMap:e}=t.value;r.value.forEach((t=>{const r=e.get(t);r&&(o.push(t),n.push(r.data))}))}return{halfCheckedNodes:n,halfCheckedKeys:o}}function y(e){n.value.clear(),r.value.clear(),_(e)}function b(n,r){if((null==t?void 0:t.value)&&e.showCheckbox){const e=t.value.treeNodeMap.get(n);e&&u(e,r,!1)}}function _(n){if(null==t?void 0:t.value){const{treeNodeMap:r}=t.value;if(e.showCheckbox&&r&&n)for(const e of n){const t=r.get(e);t&&!a(t)&&u(t,!0,!1)}}}return{updateCheckedKeys:i,toggleCheckbox:u,isChecked:a,isIndeterminate:c,getCheckedKeys:p,getCheckedNodes:f,getHalfCheckedKeys:h,getHalfCheckedNodes:m,setChecked:b,setCheckedKeys:y}}function fO(e,t){const n=(0,l.iH)(new Set([])),r=(0,l.iH)(new Set([])),o=(0,s.Fl)((()=>(0,c.mf)(e.filterMethod)));function i(i){var a;if(!o.value)return;const s=new Set,l=r.value,c=n.value,u=[],d=(null==(a=t.value)?void 0:a.treeNodes)||[],p=e.filterMethod;function f(e){e.forEach((e=>{u.push(e),(null==p?void 0:p(i,e.data))?u.forEach((e=>{s.add(e.key)})):e.isLeaf&&c.add(e.key);const t=e.children;if(t&&f(t),!e.isLeaf)if(s.has(e.key)){if(t){let n=!0;for(const e of t)if(!c.has(e.key)){n=!1;break}n?l.add(e.key):l.delete(e.key)}}else c.add(e.key);u.pop()}))}return c.clear(),f(d),s}function a(e){return r.value.has(e.key)}return{hiddenExpandIconKeySet:r,hiddenNodeKeySet:n,doFilter:i,isForceHiddenExpandIcon:a}}function hO(e,t){const n=(0,l.iH)(new Set(e.defaultExpandedKeys)),r=(0,l.iH)(),o=(0,l.XI)();(0,s.YP)((()=>e.currentNodeKey),(e=>{r.value=e}),{immediate:!0}),(0,s.YP)((()=>e.data),(e=>{$(e)}),{immediate:!0});const{isIndeterminate:i,isChecked:a,toggleCheckbox:c,getCheckedKeys:u,getCheckedNodes:d,getHalfCheckedKeys:p,getHalfCheckedNodes:f,setChecked:h,setCheckedKeys:m}=pO(e,o),{doFilter:v,hiddenNodeKeySet:g,isForceHiddenExpandIcon:y}=fO(e,o),b=(0,s.Fl)((()=>{var t;return(null==(t=e.props)?void 0:t.value)||XP.KEY})),_=(0,s.Fl)((()=>{var t;return(null==(t=e.props)?void 0:t.children)||XP.CHILDREN})),w=(0,s.Fl)((()=>{var t;return(null==(t=e.props)?void 0:t.disabled)||XP.DISABLED})),k=(0,s.Fl)((()=>{var t;return(null==(t=e.props)?void 0:t.label)||XP.LABEL})),S=(0,s.Fl)((()=>{const e=n.value,t=g.value,r=[],i=o.value&&o.value.treeNodes||[];function a(){const n=[];for(let e=i.length-1;e>=0;--e)n.push(i[e]);while(n.length){const o=n.pop();if(o&&(t.has(o.key)||r.push(o),e.has(o.key))){const e=o.children;if(e){const t=e.length;for(let r=t-1;r>=0;--r)n.push(e[r])}}}}return a(),r})),C=(0,s.Fl)((()=>S.value.length>0));function x(e){const t=new Map,n=new Map;let r=1;function o(e,i=1,a){var s;const l=[];for(const r of e){const e=E(r),c={level:i,key:e,data:r};c.label=P(r),c.parent=a;const u=T(r);c.disabled=R(r),c.isLeaf=!u||0===u.length,u&&u.length&&(c.children=o(u,i+1,c)),l.push(c),t.set(e,c),n.has(i)||n.set(i,[]),null==(s=n.get(i))||s.push(c)}return i>r&&(r=i),l}const i=o(e);return{treeNodeMap:t,levelTreeNodeMap:n,maxLevel:r,treeNodes:i}}function I(e){const t=v(e);t&&(n.value=t)}function T(e){return e[_.value]}function E(e){return e?e[b.value]:""}function R(e){return e[w.value]}function P(e){return e[k.value]}function O(e){const t=n.value;t.has(e.key)?L(e):M(e)}function A(n,r){t(rO,n.data,n,r),D(n),e.expandOnClickNode&&O(n),e.showCheckbox&&e.checkOnClickNode&&!n.disabled&&c(n,!a(n),!0)}function D(e){j(e)||(r.value=e.key,t(aO,e.data,e))}function N(e,t){c(e,t)}function M(r){const i=n.value;if((null==o?void 0:o.value)&&e.accordion){const{treeNodeMap:e}=o.value;i.forEach((t=>{const n=e.get(t);n&&n.level===n.level&&i.delete(t)}))}i.add(r.key),t(oO,r.data,r)}function L(e){n.value.delete(e.key),t(iO,e.data,e)}function F(e){return n.value.has(e.key)}function U(e){return!!e.disabled}function j(e){const t=r.value;return!!t&&t===e.key}function V(){var e,t;if(r.value)return null==(t=null==(e=null==o?void 0:o.value)?void 0:e.treeNodeMap.get(r.value))?void 0:t.data}function H(){return r.value}function B(e){r.value=e}function $(e){(0,s.Y3)((()=>o.value=x(e)))}return{tree:o,flattenTree:S,isNotEmpty:C,getKey:E,getChildren:T,toggleExpand:O,toggleCheckbox:c,isExpanded:F,isChecked:a,isIndeterminate:i,isDisabled:U,isCurrent:j,isForceHiddenExpandIcon:y,handleNodeClick:A,handleNodeCheck:N,getCurrentNode:V,getCurrentKey:H,setCurrentKey:B,getCheckedKeys:u,getCheckedNodes:d,getHalfCheckedKeys:p,getHalfCheckedNodes:f,setChecked:h,setCheckedKeys:m,filter:I,setData:$}}var mO=(0,s.aZ)({name:"ElTreeNodeContent",props:nO,setup(e){const t=(0,s.f3)(JP),n=(0,m.s)("tree");return()=>{const r=e.node,{data:o}=r;return(null==t?void 0:t.ctx.slots.default)?t.ctx.slots.default({node:r,data:o}):(0,s.h)("span",{class:n.be("node","label")},[null==r?void 0:r.label])}}});const vO="caret-right",gO=(0,s.aZ)({name:"ElTreeNode",components:{ElIcon:C.gn,CaretRight:CP,ElCheckbox:Pn,ElNodeContent:mO},props:tO,emits:dO,setup(e,{emit:t}){const n=(0,s.f3)(JP),r=(0,m.s)("tree"),o=(0,s.Fl)((()=>{var e;return null!=(e=null==n?void 0:n.props.indent)?e:16})),i=(0,s.Fl)((()=>{var e;return null!=(e=null==n?void 0:n.props.icon)?e:vO})),a=n=>{t("click",e.node,n)},l=()=>{t("toggle",e.node)},c=n=>{t("check",e.node,n)},u=t=>{var r,o,i,a;(null==(i=null==(o=null==(r=null==n?void 0:n.instance)?void 0:r.vnode)?void 0:o.props)?void 0:i["onNodeContextmenu"])&&(t.stopPropagation(),t.preventDefault()),null==n||n.ctx.emit(cO,t,null==(a=e.node)?void 0:a.data,e.node)};return{ns:r,indent:o,icon:i,handleClick:a,handleExpandIconClick:l,handleCheckChange:c,handleContextMenu:u}}}),yO=["aria-expanded","aria-disabled","aria-checked","data-key"];function bO(e,t,n,r,o,i){var a,l,u;const d=(0,s.up)("el-icon"),p=(0,s.up)("el-checkbox"),f=(0,s.up)("el-node-content");return(0,s.wg)(),(0,s.iD)("div",{ref:"node$",class:(0,c.C_)([e.ns.b("node"),e.ns.is("expanded",e.expanded),e.ns.is("current",e.current),e.ns.is("focusable",!e.disabled),e.ns.is("checked",!e.disabled&&e.checked)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.disabled,"aria-checked":e.checked,"data-key":null==(a=e.node)?void 0:a.key,onClick:t[1]||(t[1]=(0,S.iM)(((...t)=>e.handleClick&&e.handleClick(...t)),["stop"])),onContextmenu:t[2]||(t[2]=(...t)=>e.handleContextMenu&&e.handleContextMenu(...t))},[(0,s._)("div",{class:(0,c.C_)(e.ns.be("node","content")),style:(0,c.j5)({paddingLeft:(e.node.level-1)*e.indent+"px"})},[e.icon?((0,s.wg)(),(0,s.j4)(d,{key:0,class:(0,c.C_)([e.ns.is("leaf",!!(null==(l=e.node)?void 0:l.isLeaf)),e.ns.is("hidden",e.hiddenExpandIcon),{expanded:!(null==(u=e.node)?void 0:u.isLeaf)&&e.expanded},e.ns.be("node","expand-icon")]),onClick:(0,S.iM)(e.handleExpandIconClick,["stop"])},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)(e.icon)))])),_:1},8,["class","onClick"])):(0,s.kq)("v-if",!0),e.showCheckbox?((0,s.wg)(),(0,s.j4)(p,{key:1,"model-value":e.checked,indeterminate:e.indeterminate,disabled:e.disabled,onChange:e.handleCheckChange,onClick:t[0]||(t[0]=(0,S.iM)((()=>{}),["stop"]))},null,8,["model-value","indeterminate","disabled","onChange"])):(0,s.kq)("v-if",!0),(0,s.Wm)(f,{node:e.node},null,8,["node"])],6)],42,yO)}var _O=(0,h.Z)(gO,[["render",bO],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree-node.vue"]]);const wO=(0,s.aZ)({name:"ElTreeV2",components:{ElTreeNode:_O,FixedSizeList:lk},props:eO,emits:uO,setup(e,t){(0,s.JJ)(JP,{ctx:t,props:e,instance:(0,s.FN)()});const{t:n}=(0,Ye.bU)(),r=(0,m.s)("tree"),{flattenTree:o,isNotEmpty:i,toggleExpand:a,isExpanded:l,isIndeterminate:c,isChecked:u,isDisabled:d,isCurrent:p,isForceHiddenExpandIcon:f,toggleCheckbox:h,handleNodeClick:v,handleNodeCheck:g,getCurrentNode:y,getCurrentKey:b,setCurrentKey:_,getCheckedKeys:w,getCheckedNodes:k,getHalfCheckedKeys:S,getHalfCheckedNodes:C,setChecked:x,setCheckedKeys:I,filter:T,setData:E}=hO(e,t.emit);return t.expose({getCurrentNode:y,getCurrentKey:b,setCurrentKey:_,getCheckedKeys:w,getCheckedNodes:k,getHalfCheckedKeys:S,getHalfCheckedNodes:C,setChecked:x,setCheckedKeys:I,filter:T,setData:E}),{t:n,ns:r,flattenTree:o,itemSize:26,isNotEmpty:i,toggleExpand:a,toggleCheckbox:h,isExpanded:l,isIndeterminate:c,isChecked:u,isDisabled:d,isCurrent:p,isForceHiddenExpandIcon:f,handleNodeClick:v,handleNodeCheck:g}}});function kO(e,t,n,r,o,i){var a;const l=(0,s.up)("el-tree-node"),u=(0,s.up)("fixed-size-list");return(0,s.wg)(),(0,s.iD)("div",{class:(0,c.C_)([e.ns.b(),{[e.ns.m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[e.isNotEmpty?((0,s.wg)(),(0,s.j4)(u,{key:0,"class-name":e.ns.b("virtual-list"),data:e.flattenTree,total:e.flattenTree.length,height:e.height,"item-size":e.itemSize,"perf-mode":e.perfMode},{default:(0,s.w5)((({data:t,index:n,style:r})=>[((0,s.wg)(),(0,s.j4)(l,{key:t[n].key,style:(0,c.j5)(r),node:t[n],expanded:e.isExpanded(t[n]),"show-checkbox":e.showCheckbox,checked:e.isChecked(t[n]),indeterminate:e.isIndeterminate(t[n]),disabled:e.isDisabled(t[n]),current:e.isCurrent(t[n]),"hidden-expand-icon":e.isForceHiddenExpandIcon(t[n]),onClick:e.handleNodeClick,onToggle:e.toggleExpand,onCheck:e.handleNodeCheck},null,8,["style","node","expanded","show-checkbox","checked","indeterminate","disabled","current","hidden-expand-icon","onClick","onToggle","onCheck"]))])),_:1},8,["class-name","data","total","height","item-size","perf-mode"])):((0,s.wg)(),(0,s.iD)("div",{key:1,class:(0,c.C_)(e.ns.e("empty-block"))},[(0,s._)("span",{class:(0,c.C_)(e.ns.e("empty-text"))},(0,c.zw)(null!=(a=e.emptyText)?a:e.t("el.tree.emptyText")),3)],2))],2)}var SO=(0,h.Z)(wO,[["render",kO],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree.vue"]]);const CO=(0,w.nz)(SO),xO=(0,s.aZ)({name:"Document"}),IO={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},TO=(0,s._)("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640V384zm-26.496-64L640 154.496V320h165.504zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm160 448h384v64H320v-64zm0-192h160v64H320v-64zm0 384h384v64H320v-64z"},null,-1),EO=[TO];function RO(e,t,n,r,o,i){return(0,s.wg)(),(0,s.iD)("svg",IO,EO)}var PO=(0,ce.Z)(xO,[["render",RO]]);const OO=(0,s.aZ)({name:"Delete"}),AO={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},DO=(0,s._)("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32zm192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32z"},null,-1),NO=[DO];function MO(e,t,n,r,o,i){return(0,s.wg)(),(0,s.iD)("svg",AO,NO)}var LO=(0,ce.Z)(OO,[["render",MO]]),FO=n(1727);const UO="ElUpload";class jO extends Error{constructor(e,t,n,r){super(e),this.name="UploadAjaxError",this.status=t,this.method=n,this.url=r}}function VO(e,t,n){let r;return r=n.response?`${n.response.error||n.response}`:n.responseText?`${n.responseText}`:`fail to ${t.method} ${e} ${n.status}`,new jO(r,n.status,t.method,e)}function HO(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(ME){return t}}const BO=e=>{"undefined"===typeof XMLHttpRequest&&(0,v._)(UO,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,n=e.action;t.upload&&t.upload.addEventListener("progress",(t=>{const n=t;n.percent=t.total>0?t.loaded/t.total*100:0,e.onProgress(n)}));const r=new FormData;if(e.data)for(const[i,a]of Object.entries(e.data))Array.isArray(a)?r.append(i,...a):r.append(i,a);r.append(e.filename,e.file,e.file.name),t.addEventListener("error",(()=>{e.onError(VO(n,e,t))})),t.addEventListener("load",(()=>{if(t.status<200||t.status>=300)return e.onError(VO(n,e,t));e.onSuccess(HO(t))})),t.open(e.method,n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const o=e.headers||{};if(o instanceof Headers)o.forEach(((e,n)=>t.setRequestHeader(n,e)));else for(const[i,a]of Object.entries(o))(0,FO.Z)(a)||t.setRequestHeader(i,String(a));return t.send(r),t},$O=["text","picture","picture-card"];let zO=1;const WO=()=>Date.now()+zO++,qO=(0,d.o8)({action:{type:String,default:"#"},headers:{type:(0,d.Cq)(Object)},method:{type:String,default:"post"},data:{type:Object,default:()=>(0,To.N)({})},multiple:{type:Boolean,default:!1},name:{type:String,default:"file"},drag:{type:Boolean,default:!1},withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},type:{type:String,default:"select"},fileList:{type:(0,d.Cq)(Array),default:()=>(0,To.N)([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:$O,default:"text"},httpRequest:{type:(0,d.Cq)(Function),default:BO},disabled:Boolean,limit:Number}),ZO=(0,d.o8)({...qO,beforeUpload:{type:(0,d.Cq)(Function),default:c.dG},beforeRemove:{type:(0,d.Cq)(Function)},onRemove:{type:(0,d.Cq)(Function),default:c.dG},onChange:{type:(0,d.Cq)(Function),default:c.dG},onPreview:{type:(0,d.Cq)(Function),default:c.dG},onSuccess:{type:(0,d.Cq)(Function),default:c.dG},onProgress:{type:(0,d.Cq)(Function),default:c.dG},onError:{type:(0,d.Cq)(Function),default:c.dG},onExceed:{type:(0,d.Cq)(Function),default:c.dG}}),YO=(0,d.o8)({files:{type:(0,d.Cq)(Array),default:()=>(0,To.N)([])},disabled:{type:Boolean,default:!1},handlePreview:{type:(0,d.Cq)(Function),default:c.dG},listType:{type:String,values:$O,default:"text"}}),KO={remove:e=>!!e},JO=["onKeydown"],GO=["src"],XO=["onClick"],QO=["onClick"],eA=["onClick"],tA={name:"ElUploadList"},nA=(0,s.aZ)({...tA,props:YO,emits:KO,setup(e,{emit:t}){const n=e,{t:r}=(0,Ye.bU)(),o=(0,m.s)("upload"),i=(0,m.s)("icon"),a=(0,m.s)("list"),u=(0,l.iH)(!1),d=e=>{n.handlePreview(e)},p=e=>{e.target.focus()},f=e=>{t("remove",e)};return(e,t)=>((0,s.wg)(),(0,s.j4)(S.W3,{tag:"ul",class:(0,c.C_)([(0,l.SU)(o).b("list"),(0,l.SU)(o).bm("list",e.listType),(0,l.SU)(o).is("disabled",e.disabled)]),name:(0,l.SU)(a).b()},{default:(0,s.w5)((()=>[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e.files,(n=>((0,s.wg)(),(0,s.iD)("li",{key:n.uid||n.name,class:(0,c.C_)([(0,l.SU)(o).be("list","item"),(0,l.SU)(o).is(n.status),{focusing:u.value}]),tabindex:"0",onKeydown:(0,S.D2)((t=>!e.disabled&&f(n)),["delete"]),onFocus:t[0]||(t[0]=e=>u.value=!0),onBlur:t[1]||(t[1]=e=>u.value=!1),onClick:p},[(0,s.WI)(e.$slots,"default",{file:n},(()=>["picture"===e.listType||"uploading"!==n.status&&"picture-card"===e.listType?((0,s.wg)(),(0,s.iD)("img",{key:0,class:(0,c.C_)((0,l.SU)(o).be("list","item-thumbnail")),src:n.url,alt:""},null,10,GO)):(0,s.kq)("v-if",!0),"picture"===e.listType||"uploading"!==n.status&&"picture-card"===e.listType?(0,s.kq)("v-if",!0):((0,s.wg)(),(0,s.iD)("div",{key:1,class:(0,c.C_)((0,l.SU)(o).be("list","item-info"))},[(0,s._)("a",{class:(0,c.C_)((0,l.SU)(o).be("list","item-name")),onClick:(0,S.iM)((e=>d(n)),["prevent"])},[(0,s.Wm)((0,l.SU)(C.gn),{class:(0,c.C_)((0,l.SU)(i).m("document"))},{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(PO))])),_:1},8,["class"]),(0,s._)("span",{class:(0,c.C_)((0,l.SU)(o).be("list","item-file-name"))},(0,c.zw)(n.name),3)],10,XO),"uploading"===n.status?((0,s.wg)(),(0,s.j4)((0,l.SU)(v_),{key:0,type:"picture-card"===e.listType?"circle":"line","stroke-width":"picture-card"===e.listType?6:2,percentage:Number(n.percentage),style:(0,c.j5)("picture-card"===e.listType?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):(0,s.kq)("v-if",!0)],2)),(0,s._)("label",{class:(0,c.C_)((0,l.SU)(o).be("list","item-status-label"))},["text"===e.listType?((0,s.wg)(),(0,s.j4)((0,l.SU)(C.gn),{key:0,class:(0,c.C_)([(0,l.SU)(i).m("upload-success"),(0,l.SU)(i).m("circle-check")])},{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(i_.Z))])),_:1},8,["class"])):["picture-card","picture"].includes(e.listType)?((0,s.wg)(),(0,s.j4)((0,l.SU)(C.gn),{key:1,class:(0,c.C_)([(0,l.SU)(i).m("upload-success"),(0,l.SU)(i).m("check")])},{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(ur))])),_:1},8,["class"])):(0,s.kq)("v-if",!0)],2),e.disabled?(0,s.kq)("v-if",!0):((0,s.wg)(),(0,s.j4)((0,l.SU)(C.gn),{key:2,class:(0,c.C_)((0,l.SU)(i).m("close")),onClick:e=>f(n)},{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(Go.Z))])),_:2},1032,["class","onClick"])),(0,s.kq)(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),(0,s.kq)(" This is a bug which needs to be fixed "),(0,s.kq)(" TODO: Fix the incorrect navigation interaction "),e.disabled?(0,s.kq)("v-if",!0):((0,s.wg)(),(0,s.iD)("i",{key:3,class:(0,c.C_)((0,l.SU)(i).m("close-tip"))},(0,c.zw)((0,l.SU)(r)("el.upload.deleteTip")),3)),"picture-card"===e.listType?((0,s.wg)(),(0,s.iD)("span",{key:4,class:(0,c.C_)((0,l.SU)(o).be("list","item-actions"))},[(0,s._)("span",{class:(0,c.C_)((0,l.SU)(o).be("list","item-preview")),onClick:t=>e.handlePreview(n)},[(0,s.Wm)((0,l.SU)(C.gn),{class:(0,c.C_)((0,l.SU)(i).m("zoom-in"))},{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(Vv))])),_:1},8,["class"])],10,QO),e.disabled?(0,s.kq)("v-if",!0):((0,s.wg)(),(0,s.iD)("span",{key:0,class:(0,c.C_)((0,l.SU)(o).be("list","item-delete")),onClick:e=>f(n)},[(0,s.Wm)((0,l.SU)(C.gn),{class:(0,c.C_)((0,l.SU)(i).m("delete"))},{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(LO))])),_:1},8,["class"])],10,eA))],2)):(0,s.kq)("v-if",!0)]))],42,JO)))),128)),(0,s.WI)(e.$slots,"append")])),_:3},8,["class","name"]))}});var rA=(0,h.Z)(nA,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-list.vue"]]);const oA=(0,d.o8)({disabled:{type:Boolean,default:!1}}),iA={file:e=>(0,c.kJ)(e)},aA=Symbol("uploadContextKey"),sA=["onDrop","onDragover"],lA={name:"ElUploadDrag"},cA=(0,s.aZ)({...lA,props:oA,emits:iA,setup(e,{emit:t}){const n=e,r="ElUploadDrag",o=(0,s.f3)(aA);o||(0,v._)(r,"usage: <el-upload><el-upload-dragger /></el-upload>");const i=(0,m.s)("upload"),a=(0,l.iH)(!1),u=e=>{if(n.disabled)return;a.value=!1;const r=Array.from(e.dataTransfer.files),i=o.accept.value;if(!i)return void t("file",r);const s=r.filter((e=>{const{type:t,name:n}=e,r=n.includes(".")?`.${n.split(".").pop()}`:"",o=t.replace(/\/.*$/,"");return i.split(",").map((e=>e.trim())).filter((e=>e)).some((e=>e.startsWith(".")?r===e:/\/\*$/.test(e)?o===e.replace(/\/\*$/,""):!!/^[^/]+\/[^/]+$/.test(e)&&t===e))}));t("file",s)},d=()=>{n.disabled||(a.value=!0)};return(e,t)=>((0,s.wg)(),(0,s.iD)("div",{class:(0,c.C_)([(0,l.SU)(i).b("dragger"),(0,l.SU)(i).is("dragover",a.value)]),onDrop:(0,S.iM)(u,["prevent"]),onDragover:(0,S.iM)(d,["prevent"]),onDragleave:t[0]||(t[0]=(0,S.iM)((e=>a.value=!1),["prevent"]))},[(0,s.WI)(e.$slots,"default")],42,sA))}});var uA=(0,h.Z)(cA,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-dragger.vue"]]);const dA=(0,d.o8)({...qO,fileList:{type:(0,d.Cq)(Array),default:()=>(0,To.N)([])},beforeUpload:{type:(0,d.Cq)(Function),default:c.dG},onRemove:{type:(0,d.Cq)(Function),default:c.dG},onStart:{type:(0,d.Cq)(Function),default:c.dG},onSuccess:{type:(0,d.Cq)(Function),default:c.dG},onProgress:{type:(0,d.Cq)(Function),default:c.dG},onError:{type:(0,d.Cq)(Function),default:c.dG},onExceed:{type:(0,d.Cq)(Function),default:c.dG}}),pA=["onKeydown"],fA=["name","multiple","accept"],hA={name:"ElUploadContent",inheritAttrs:!1},mA=(0,s.aZ)({...hA,props:dA,setup(e,{expose:t}){const n=e,r=(0,m.s)("upload"),o=(0,l.XI)({}),i=(0,l.XI)(),a=e=>{if(0===e.length)return;const{autoUpload:t,limit:r,fileList:o,multiple:i,onStart:a,onExceed:s}=n;if(r&&o.length+e.length>r)s(e,o);else{i||(e=e.slice(0,1));for(const n of e){const e=n;e.uid=WO(),a(e),t&&u(e)}}},u=async e=>{if(i.value.value="",!n.beforeUpload)return d(e);let t;try{t=await n.beforeUpload(e)}catch(ME){t=!1}if(!1===t)return void n.onRemove(e);let r=e;if(t instanceof Blob){r=t instanceof File?t:new File([t],e.name,{type:e.type});for(const t of Object.keys(e))r[t]=e[t]}d(e)},d=e=>{const{headers:t,data:r,method:i,withCredentials:a,name:s,action:l,onProgress:c,onSuccess:u,onError:d,httpRequest:p}=n,{uid:f}=e,h={headers:t||{},withCredentials:a,file:e,data:r,method:i,filename:s,action:l,onProgress:t=>{c(t,e)},onSuccess:t=>{u(t,e),delete o.value[f]},onError:t=>{d(t,e),delete o.value[f]}},m=p(h);o.value[f]=m,m instanceof Promise&&m.then(h.onSuccess,h.onError)},p=e=>{const t=e.target.files;t&&a(Array.from(t))},f=()=>{n.disabled||(i.value.value="",i.value.click())},h=()=>{f()},v=e=>{const t=(0,x.vu)(o.value).filter(e?([t])=>String(e.uid)===t:()=>!0);t.forEach((([e,t])=>{t instanceof XMLHttpRequest&&t.abort(),delete o.value[e]}))};return t({abort:v,upload:u}),(e,t)=>((0,s.wg)(),(0,s.iD)("div",{class:(0,c.C_)([(0,l.SU)(r).b(),(0,l.SU)(r).m(e.listType)]),tabindex:"0",onClick:f,onKeydown:(0,S.D2)((0,S.iM)(h,["self"]),["enter","space"])},[e.drag?((0,s.wg)(),(0,s.j4)(uA,{key:0,disabled:e.disabled,onFile:a},{default:(0,s.w5)((()=>[(0,s.WI)(e.$slots,"default")])),_:3},8,["disabled"])):(0,s.WI)(e.$slots,"default",{key:1}),(0,s._)("input",{ref_key:"inputRef",ref:i,class:(0,c.C_)((0,l.SU)(r).e("input")),name:e.name,multiple:e.multiple,accept:e.accept,type:"file",onChange:p,onClick:t[0]||(t[0]=(0,S.iM)((()=>{}),["stop"]))},null,42,fA)],42,pA))}});var vA=(0,h.Z)(mA,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-content.vue"]]);const gA="ElUpload",yA=e=>{var t;(null==(t=e.url)?void 0:t.startsWith("blob:"))&&URL.revokeObjectURL(e.url)},bA=(e,t)=>{const n=(0,l.iH)([]),r=e=>n.value.find((t=>t.uid===e.uid));function o(e){var n;null==(n=t.value)||n.abort(e)}function i(e=["ready","uploading","success","fail"]){n.value=n.value.filter((t=>!e.includes(t.status)))}const a=(t,o)=>{const i=r(o);i&&(i.status="fail",n.value.splice(n.value.indexOf(i),1),e.onError(t,i,n.value),e.onChange(i,n.value))},c=(t,o)=>{const i=r(o);i&&(e.onProgress(t,i,n.value),i.status="uploading",i.percentage=Math.round(t.percent))},u=(t,o)=>{const i=r(o);i&&(i.status="success",i.response=t,e.onSuccess(t,i,n.value),e.onChange(i,n.value))},d=t=>{const r={name:t.name,percentage:0,status:"ready",size:t.size,raw:t,uid:t.uid};if("picture-card"===e.listType||"picture"===e.listType)try{r.url=URL.createObjectURL(t)}catch(o){(0,v.N)(gA,o.message),e.onError(o,r,n.value)}n.value.push(r),e.onChange(r,n.value)},p=async(t,i)=>{i&&(0,cg.A)({scope:gA,from:"handleRemove second argument",version:"2.2",replacement:"first argument `file`",ref:"https://element-plus.org/en-US/component/upload.html#methods"},!0);const a=i||t,s=a instanceof File?r(a):a;s||(0,v._)(gA,"file to be removed not found");const l=t=>{o(t);const r=n.value;r.splice(r.indexOf(t),1),e.onRemove(t,r),yA(t)};if(e.beforeRemove){const t=await e.beforeRemove(s,n.value);!1!==t&&l(s)}else l(s)};function f(){n.value.filter((({status:e})=>"ready"===e)).forEach((({raw:e})=>{var n;return e&&(null==(n=t.value)?void 0:n.upload(e))}))}return(0,s.YP)((()=>e.listType),(t=>{"picture-card"!==t&&"picture"!==t||(n.value=n.value.map((t=>{const{raw:r,url:o}=t;if(!o&&r)try{t.url=URL.createObjectURL(r)}catch(i){e.onError(i,t,n.value)}return t})))})),(0,s.YP)((()=>e.fileList),(e=>{for(const t of e)t.uid||(t.uid=WO()),t.status||(t.status="success");n.value=e}),{immediate:!0,deep:!0}),{abort:o,clearFiles:i,handleError:a,handleProgress:c,handleStart:d,handleSuccess:u,handleRemove:p,submit:f,uploadFiles:n}},_A={name:"ElUpload"},wA=(0,s.aZ)({..._A,props:ZO,setup(e,{expose:t}){const n=e,r=(0,s.Rr)(),o=(0,on.B4)(),i=(0,l.XI)(),{abort:a,submit:c,clearFiles:u,uploadFiles:d,handleStart:p,handleError:f,handleRemove:h,handleSuccess:m,handleProgress:v}=bA(n,i),g=(0,s.Fl)((()=>"picture-card"===n.listType)),y=(0,s.Fl)((()=>({...n,onStart:p,onProgress:v,onSuccess:m,onError:f,onRemove:h})));return(0,s.Jd)((()=>{d.value.forEach((({url:e})=>{(null==e?void 0:e.startsWith("blob:"))&&URL.revokeObjectURL(e)}))})),(0,s.JJ)(aA,{accept:(0,l.Vh)(n,"accept")}),t({abort:a,submit:c,clearFiles:u,handleStart:p,handleRemove:h}),(e,t)=>((0,s.wg)(),(0,s.iD)("div",null,[(0,l.SU)(g)&&e.showFileList?((0,s.wg)(),(0,s.j4)(rA,{key:0,disabled:(0,l.SU)(o),"list-type":e.listType,files:(0,l.SU)(d),"handle-preview":e.onPreview,onRemove:(0,l.SU)(h)},(0,s.Nv)({append:(0,s.w5)((()=>["picture-card"===e.listType?((0,s.wg)(),(0,s.j4)(vA,(0,s.dG)({key:0,ref_key:"uploadRef",ref:i},(0,l.SU)(y)),{default:(0,s.w5)((()=>[(0,l.SU)(r).trigger?(0,s.WI)(e.$slots,"trigger",{key:0}):(0,s.kq)("v-if",!0),!(0,l.SU)(r).trigger&&(0,l.SU)(r).default?(0,s.WI)(e.$slots,"default",{key:1}):(0,s.kq)("v-if",!0)])),_:3},16)):(0,s.kq)("v-if",!0)])),_:2},[e.$slots.file?{name:"default",fn:(0,s.w5)((({file:t})=>[(0,s.WI)(e.$slots,"file",{file:t})]))}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):(0,s.kq)("v-if",!0),"picture-card"!==e.listType?((0,s.wg)(),(0,s.j4)(vA,(0,s.dG)({key:1,ref_key:"uploadRef",ref:i},(0,l.SU)(y)),{default:(0,s.w5)((()=>[(0,l.SU)(r).trigger?(0,s.WI)(e.$slots,"trigger",{key:0}):(0,s.kq)("v-if",!0),!(0,l.SU)(r).trigger&&(0,l.SU)(r).default?(0,s.WI)(e.$slots,"default",{key:1}):(0,s.kq)("v-if",!0)])),_:3},16)):(0,s.kq)("v-if",!0),e.$slots.trigger?(0,s.WI)(e.$slots,"default",{key:2}):(0,s.kq)("v-if",!0),(0,s.WI)(e.$slots,"tip"),!(0,l.SU)(g)&&e.showFileList?((0,s.wg)(),(0,s.j4)(rA,{key:3,disabled:(0,l.SU)(o),"list-type":e.listType,files:(0,l.SU)(d),"handle-preview":e.onPreview,onRemove:(0,l.SU)(h)},(0,s.Nv)({_:2},[e.$slots.file?{name:"default",fn:(0,s.w5)((({file:t})=>[(0,s.WI)(e.$slots,"file",{file:t})]))}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):(0,s.kq)("v-if",!0)]))}});var kA=(0,h.Z)(wA,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload.vue"]]);const SA=(0,w.nz)(kA);var CA=[k,D,X,le,Ce,xe.dQ,Me,Le,Fe.mi,Fe.MO,at,dt,Bt,$t,bo,Zr,xo,Pn,On,An,Io.Dv,Ko,Jo,Ho,$i,Wi,sa,la,ca,ua,da,Kl,fc,hc,Vc,Wc,iu,Od,Ad,Dd,mp,mv,vv,C.gn,mg,ag,M.EZ,Dg,Vg,Sy,Cy,xy,Uy,Ob,zb,n_,o_.nG,v_,nr,or,rr,L_,X_,Q_.dq,L.Mr,Gy.km,Gy.BT,Gy.LC,Nk,Jk,Gk,vS,xS,AS,DS,qS,nI,rI,kI,SI,Yr.Ks,IT,FT,$T,zT,F.Q0,jR,cP,VP,KP,CO,SA];const xA="ElInfiniteScroll",IA=50,TA=200,EA=0,RA={delay:{type:Number,default:TA},distance:{type:Number,default:EA},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},PA=(e,t)=>Object.entries(RA).reduce(((n,[r,o])=>{var i,a;const{type:s,default:l}=o,c=e.getAttribute(`infinite-scroll-${r}`);let u=null!=(a=null!=(i=t[c])?i:c)?a:l;return u="false"!==u&&u,u=s(u),n[r]=Number.isNaN(u)?l:u,n}),{}),OA=e=>{const{observer:t}=e[xA];t&&(t.disconnect(),delete e[xA].observer)},AA=(e,t)=>{const{container:n,containerEl:r,instance:o,observer:i,lastScrollTop:a}=e[xA],{disabled:s,distance:l}=PA(e,o),{clientHeight:c,scrollHeight:u,scrollTop:d}=r,p=d-a;if(e[xA].lastScrollTop=d,i||s||p<0)return;let f=!1;if(n===e)f=u-(c+d)<=l;else{const{clientTop:t,scrollHeight:n}=e,o=ri(e,r);f=d+c>=o+t+n-l}f&&t.call(o)};function DA(e,t){const{containerEl:n,instance:r}=e[xA],{disabled:o}=PA(e,r);o||0===n.clientHeight||(n.scrollHeight<=n.clientHeight?t.call(r):OA(e))}const NA={async mounted(e,t){const{instance:n,value:r}=t;(0,c.mf)(r)||(0,v._)(xA,"'v-infinite-scroll' binding value must be a function"),await(0,s.Y3)();const{delay:o,immediate:i}=PA(e,n),a=(0,g.JX)(e,!0),l=a===window?document.documentElement:a,u=mt(AA.bind(null,e,r),o);if(a){if(e[xA]={instance:n,container:a,containerEl:l,delay:o,cb:r,onScroll:u,lastScrollTop:l.scrollTop},i){const t=new MutationObserver(mt(DA.bind(null,e,r),IA));e[xA].observer=t,t.observe(e,{childList:!0,subtree:!0}),DA(e,r)}a.addEventListener("scroll",u)}},unmounted(e){const{container:t,onScroll:n}=e[xA];null==t||t.removeEventListener("scroll",n),OA(e)},async updated(e){e[xA]||await(0,s.Y3)();const{containerEl:t,cb:n,observer:r}=e[xA];t.clientHeight&&r&&DA(e,n)}},MA=NA;MA.install=e=>{e.directive("InfiniteScroll",MA)};const LA=MA;function FA(e){let t;const n=(0,l.iH)(!1),r=(0,l.qj)({...e,originalPosition:"",originalOverflow:"",visible:!1});function o(e){r.text=e}function i(){const e=r.parent;if(!e.vLoadingAddClassList){let t=e.getAttribute("loading-number");t=Number.parseInt(t)-1,t?e.setAttribute("loading-number",t.toString()):((0,re.IV)(e,"el-loading-parent--relative"),e.removeAttribute("loading-number")),(0,re.IV)(e,"el-loading-parent--hidden")}a(),p.unmount()}function a(){var e,t;null==(t=null==(e=f.$el)?void 0:e.parentNode)||t.removeChild(f.$el)}function c(){var o;if(e.beforeClose&&!e.beforeClose())return;const a=r.parent;a.vLoadingAddClassList=void 0,n.value=!0,clearTimeout(t),t=window.setTimeout((()=>{n.value&&(n.value=!1,i())}),400),r.visible=!1,null==(o=e.closed)||o.call(e)}function u(){n.value&&(n.value=!1,i())}const d={name:"ElLoading",setup(){return()=>{const e=r.spinner||r.svg,t=(0,s.h)("svg",{class:"circular",viewBox:r.svgViewBox?r.svgViewBox:"25 25 50 50",...e?{innerHTML:e}:{}},[(0,s.h)("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none"})]),n=r.text?(0,s.h)("p",{class:"el-loading-text"},[r.text]):void 0;return(0,s.h)(S.uT,{name:"el-loading-fade",onAfterLeave:u},{default:(0,s.w5)((()=>[(0,s.wy)((0,s.Wm)("div",{style:{backgroundColor:r.background||""},class:["el-loading-mask",r.customClass,r.fullscreen?"is-fullscreen":""]},[(0,s.h)("div",{class:"el-loading-spinner"},[t,n])]),[[S.F8,r.visible]])]))})}}},p=(0,S.ri)(d),f=p.mount(document.createElement("div"));return{...(0,l.BK)(r),setText:o,remvoeElLoadingChild:a,close:c,handleAfterLeave:u,vm:f,get $el(){return f.$el}}}let UA;const jA=function(e={}){if(!ne.C5)return;const t=VA(e);if(t.fullscreen&&UA)return UA;const n=FA({...t,closed:()=>{var e;null==(e=t.closed)||e.call(t),t.fullscreen&&(UA=void 0)}});HA(t,t.parent,n),BA(t,t.parent,n),t.parent.vLoadingAddClassList=()=>BA(t,t.parent,n);let r=t.parent.getAttribute("loading-number");return r=r?`${Number.parseInt(r)+1}`:"1",t.parent.setAttribute("loading-number",r),t.parent.appendChild(n.$el),(0,s.Y3)((()=>n.visible.value=t.visible)),t.fullscreen&&(UA=n),n},VA=e=>{var t,n,r,o;let i;return i=(0,c.HD)(e.target)?null!=(t=document.querySelector(e.target))?t:document.body:e.target||document.body,{parent:i===document.body||e.body?document.body:i,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:i===document.body&&(null==(n=e.fullscreen)||n),lock:null!=(r=e.lock)&&r,customClass:e.customClass||"",visible:null==(o=e.visible)||o,target:i}},HA=async(e,t,n)=>{const{nextZIndex:r}=(0,Rc.C)(),o={};if(e.fullscreen)n.originalPosition.value=(0,re.C2)(document.body,"position"),n.originalOverflow.value=(0,re.C2)(document.body,"overflow"),o.zIndex=r();else if(e.parent===document.body){n.originalPosition.value=(0,re.C2)(document.body,"position"),await(0,s.Y3)();for(const t of["top","left"]){const n="top"===t?"scrollTop":"scrollLeft";o[t]=e.target.getBoundingClientRect()[t]+document.body[n]+document.documentElement[n]-Number.parseInt((0,re.C2)(document.body,`margin-${t}`),10)+"px"}for(const t of["height","width"])o[t]=`${e.target.getBoundingClientRect()[t]}px`}else n.originalPosition.value=(0,re.C2)(t,"position");for(const[i,a]of Object.entries(o))n.$el.style[i]=a},BA=(e,t,n)=>{"absolute"!==n.originalPosition.value&&"fixed"!==n.originalPosition.value?(0,re.cn)(t,"el-loading-parent--relative"):(0,re.IV)(t,"el-loading-parent--relative"),e.fullscreen&&e.lock?(0,re.cn)(t,"el-loading-parent--hidden"):(0,re.IV)(t,"el-loading-parent--hidden")},$A=Symbol("ElLoading"),zA=(e,t)=>{var n,r,o,i;const a=t.instance,s=e=>(0,c.Kn)(t.value)?t.value[e]:void 0,u=e=>{const t=(0,c.HD)(e)&&(null==a?void 0:a[e])||e;return t?(0,l.iH)(t):t},d=t=>u(s(t)||e.getAttribute(`element-loading-${(0,c.rs)(t)}`)),p=null!=(n=s("fullscreen"))?n:t.modifiers.fullscreen,f={text:d("text"),svg:d("svg"),svgViewBox:d("svgViewBox"),spinner:d("spinner"),background:d("background"),customClass:d("customClass"),fullscreen:p,target:null!=(r=s("target"))?r:p?void 0:e,body:null!=(o=s("body"))?o:t.modifiers.body,lock:null!=(i=s("lock"))?i:t.modifiers.lock};e[$A]={options:f,instance:jA(f)}},WA=(e,t)=>{for(const n of Object.keys(t))(0,l.dq)(t[n])&&(t[n].value=e[n])},qA={mounted(e,t){t.value&&zA(e,t)},updated(e,t){const n=e[$A];t.oldValue!==t.value&&(t.value&&!t.oldValue?zA(e,t):t.value&&t.oldValue?(0,c.Kn)(t.value)&&WA(t.value,n.options):null==n||n.instance.close())},unmounted(e){var t;null==(t=e[$A])||t.instance.close()}},ZA={install(e){e.directive("loading",qA),e.config.globalProperties.$loading=jA},directive:qA,service:jA};var YA=n(5574);const KA=(e,t,n)=>{const r=e=>{n(e)&&e.stopImmediatePropagation()};let o;(0,s.YP)((()=>e.value),(e=>{e?o=(0,u.ORN)(document,t,r,!0):null==o||o()}),{immediate:!0})},JA=(0,s.aZ)({name:"ElMessageBox",directives:{TrapFocus:Gc},components:{ElButton:Fe.mi,ElInput:M.EZ,ElOverlay:bc,ElIcon:C.gn,...I.f5},inheritAttrs:!1,props:{buttonSize:{type:String,validator:hn.P},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{t:n}=(0,Ye.bU)(),r=(0,m.s)("message-box"),o=(0,l.iH)(!1),{nextZIndex:i}=(0,Rc.C)(),a=(0,l.qj)({beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:null,inputValidator:null,inputErrorMessage:"",message:null,modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:i()}),c=(0,s.Fl)((()=>{const e=a.type;return{[r.bm("icon",e)]:e&&I.Rp[e]}})),u=(0,on.tH)((0,s.Fl)((()=>e.buttonSize)),{prop:!0,form:!0,formItem:!0}),d=(0,s.Fl)((()=>a.icon||I.Rp[a.type]||"")),p=(0,s.Fl)((()=>!!a.message)),f=(0,l.iH)(),h=(0,l.iH)(),v=(0,l.iH)(),g=(0,l.iH)(),y=(0,s.Fl)((()=>a.confirmButtonClass));(0,s.YP)((()=>a.inputValue),(async t=>{await(0,s.Y3)(),"prompt"===e.boxType&&null!==t&&x()}),{immediate:!0}),(0,s.YP)((()=>o.value),(t=>{t&&("alert"!==e.boxType&&"confirm"!==e.boxType||(0,s.Y3)().then((()=>{var e,t,n;null==(n=null==(t=null==(e=g.value)?void 0:e.$el)?void 0:t.focus)||n.call(t)})),a.zIndex=i()),"prompt"===e.boxType&&(t?(0,s.Y3)().then((()=>{v.value&&v.value.$el&&T().focus()})):(a.editorErrorMessage="",a.validateError=!1))}));const b=(0,s.Fl)((()=>e.draggable));function _(){o.value&&(o.value=!1,(0,s.Y3)((()=>{a.action&&t("action",a.action)})))}Lc(f,h,b),(0,s.bv)((async()=>{await(0,s.Y3)(),e.closeOnHashChange&&(0,Xo.on)(window,"hashchange",_)})),(0,s.Jd)((()=>{e.closeOnHashChange&&(0,Xo.S1)(window,"hashchange",_)}));const w=()=>{e.closeOnClickModal&&C(a.distinguishCancelAndClose?"close":"cancel")},k=mc(w),S=e=>{if("textarea"!==a.inputType)return e.preventDefault(),C("confirm")},C=t=>{var n;("prompt"!==e.boxType||"confirm"!==t||x())&&(a.action=t,a.beforeClose?null==(n=a.beforeClose)||n.call(a,t,a,_):_())},x=()=>{if("prompt"===e.boxType){const e=a.inputPattern;if(e&&!e.test(a.inputValue||""))return a.editorErrorMessage=a.inputErrorMessage||n("el.messagebox.error"),a.validateError=!0,!1;const t=a.inputValidator;if("function"===typeof t){const e=t(a.inputValue);if(!1===e)return a.editorErrorMessage=a.inputErrorMessage||n("el.messagebox.error"),a.validateError=!0,!1;if("string"===typeof e)return a.editorErrorMessage=e,a.validateError=!0,!1}}return a.editorErrorMessage="",a.validateError=!1,!0},T=()=>{const e=v.value.$refs;return e.input||e.textarea},E=()=>{C("close")};return e.closeOnPressEscape?Dc({handleClose:E},o):KA(o,"keydown",(e=>e.code===Xn.n.esc)),e.lockScroll&&Pc(o),Nc(o),{...(0,l.BK)(a),ns:r,overlayEvent:k,visible:o,hasMessage:p,typeClass:c,btnSize:u,iconComponent:d,confirmButtonClasses:y,rootRef:f,headerRef:h,inputRef:v,confirmRef:g,doClose:_,handleClose:E,handleWrapperClick:w,handleInputEnter:S,handleAction:C,t:n}}}),GA=["aria-label"],XA={key:0},QA=["innerHTML"];function eD(e,t,n,r,o,i){const a=(0,s.up)("el-icon"),l=(0,s.up)("close"),u=(0,s.up)("el-input"),d=(0,s.up)("el-button"),p=(0,s.up)("el-overlay"),f=(0,s.Q2)("trap-focus");return(0,s.wg)(),(0,s.j4)(S.uT,{name:"fade-in-linear",onAfterLeave:t[11]||(t[11]=t=>e.$emit("vanish"))},{default:(0,s.w5)((()=>[(0,s.wy)((0,s.Wm)(p,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:(0,s.w5)((()=>[(0,s._)("div",{class:(0,c.C_)(`${e.ns.namespace.value}-overlay-message-box`),onClick:t[8]||(t[8]=(...t)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...t)),onMousedown:t[9]||(t[9]=(...t)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...t)),onMouseup:t[10]||(t[10]=(...t)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...t))},[(0,s.wy)(((0,s.wg)(),(0,s.iD)("div",{ref:"rootRef",role:"dialog","aria-label":e.title||"dialog","aria-modal":"true",class:(0,c.C_)([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:(0,c.j5)(e.customStyle),onClick:t[7]||(t[7]=(0,S.iM)((()=>{}),["stop"]))},[null!==e.title&&void 0!==e.title?((0,s.wg)(),(0,s.iD)("div",{key:0,ref:"headerRef",class:(0,c.C_)(e.ns.e("header"))},[(0,s._)("div",{class:(0,c.C_)(e.ns.e("title"))},[e.iconComponent&&e.center?((0,s.wg)(),(0,s.j4)(a,{key:0,class:(0,c.C_)([e.ns.e("status"),e.typeClass])},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)(e.iconComponent)))])),_:1},8,["class"])):(0,s.kq)("v-if",!0),(0,s._)("span",null,(0,c.zw)(e.title),1)],2),e.showClose?((0,s.wg)(),(0,s.iD)("button",{key:0,type:"button",class:(0,c.C_)(e.ns.e("headerbtn")),"aria-label":"Close",onClick:t[0]||(t[0]=t=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:t[1]||(t[1]=(0,S.D2)((0,S.iM)((t=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),["prevent"]),["enter"]))},[(0,s.Wm)(a,{class:(0,c.C_)(e.ns.e("close"))},{default:(0,s.w5)((()=>[(0,s.Wm)(l)])),_:1},8,["class"])],34)):(0,s.kq)("v-if",!0)],2)):(0,s.kq)("v-if",!0),(0,s._)("div",{class:(0,c.C_)(e.ns.e("content"))},[(0,s._)("div",{class:(0,c.C_)(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?((0,s.wg)(),(0,s.j4)(a,{key:0,class:(0,c.C_)([e.ns.e("status"),e.typeClass])},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)(e.iconComponent)))])),_:1},8,["class"])):(0,s.kq)("v-if",!0),e.hasMessage?((0,s.wg)(),(0,s.iD)("div",{key:1,class:(0,c.C_)(e.ns.e("message"))},[(0,s.WI)(e.$slots,"default",{},(()=>[e.dangerouslyUseHTMLString?((0,s.wg)(),(0,s.iD)("p",{key:1,innerHTML:e.message},null,8,QA)):((0,s.wg)(),(0,s.iD)("p",XA,(0,c.zw)(e.message),1))]))],2)):(0,s.kq)("v-if",!0)],2),(0,s.wy)((0,s._)("div",{class:(0,c.C_)(e.ns.e("input"))},[(0,s.Wm)(u,{ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[2]||(t[2]=t=>e.inputValue=t),type:e.inputType,placeholder:e.inputPlaceholder,class:(0,c.C_)({invalid:e.validateError}),onKeydown:(0,S.D2)(e.handleInputEnter,["enter"])},null,8,["modelValue","type","placeholder","class","onKeydown"]),(0,s._)("div",{class:(0,c.C_)(e.ns.e("errormsg")),style:(0,c.j5)({visibility:e.editorErrorMessage?"visible":"hidden"})},(0,c.zw)(e.editorErrorMessage),7)],2),[[S.F8,e.showInput]])],2),(0,s._)("div",{class:(0,c.C_)(e.ns.e("btns"))},[e.showCancelButton?((0,s.wg)(),(0,s.j4)(d,{key:0,loading:e.cancelButtonLoading,class:(0,c.C_)([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:t[3]||(t[3]=t=>e.handleAction("cancel")),onKeydown:t[4]||(t[4]=(0,S.D2)((0,S.iM)((t=>e.handleAction("cancel")),["prevent"]),["enter"]))},{default:(0,s.w5)((()=>[(0,s.Uk)((0,c.zw)(e.cancelButtonText||e.t("el.messagebox.cancel")),1)])),_:1},8,["loading","class","round","size"])):(0,s.kq)("v-if",!0),(0,s.wy)((0,s.Wm)(d,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,class:(0,c.C_)([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:t[5]||(t[5]=t=>e.handleAction("confirm")),onKeydown:t[6]||(t[6]=(0,S.D2)((0,S.iM)((t=>e.handleAction("confirm")),["prevent"]),["enter"]))},{default:(0,s.w5)((()=>[(0,s.Uk)((0,c.zw)(e.confirmButtonText||e.t("el.messagebox.confirm")),1)])),_:1},8,["loading","class","round","disabled","size"]),[[S.F8,e.showConfirmButton]])],2)],14,GA)),[[f]])],34)])),_:3},8,["z-index","overlay-class","mask"]),[[S.F8,e.visible]])])),_:3})}var tD=(0,h.Z)(JA,[["render",eD],["__file","/home/runner/work/element-plus/element-plus/packages/components/message-box/src/index.vue"]]);const nD=new Map,rD=(e,t,n=null)=>{const r=(0,s.h)(tD,e);return r.appContext=n,(0,S.sY)(r,t),document.body.appendChild(t.firstElementChild),r.component},oD=()=>document.createElement("div"),iD=(e,t)=>{const n=oD();e.onVanish=()=>{(0,S.sY)(null,n),nD.delete(o)},e.onAction=t=>{const n=nD.get(o);let i;i=e.showInput?{value:o.inputValue,action:t}:t,e.callback?e.callback(i,r.proxy):"cancel"===t||"close"===t?e.distinguishCancelAndClose&&"cancel"!==t?n.reject("close"):n.reject("cancel"):n.resolve(i)};const r=rD(e,n,t),o=r.proxy;for(const i in e)(0,c.RI)(e,i)&&!(0,c.RI)(o.$props,i)&&(o[i]=e[i]);return(0,s.YP)((()=>o.message),((e,t)=>{(0,s.lA)(e)?r.slots.default=()=>[e]:(0,s.lA)(t)&&!(0,s.lA)(e)&&delete r.slots.default}),{immediate:!0}),o.visible=!0,o};function aD(e,t=null){if(!ne.C5)return Promise.reject();let n;return(0,c.HD)(e)||(0,s.lA)(e)?e={message:e}:n=e.callback,new Promise(((r,o)=>{const i=iD(e,null!=t?t:aD._context);nD.set(i,{options:e,callback:n,resolve:r,reject:o})}))}const sD=["alert","confirm","prompt"],lD={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};function cD(e){return(t,n,r,o)=>{let i;return(0,c.Kn)(n)?(r=n,i=""):i=(0,Ut.o8)(n)?"":n,aD(Object.assign({title:i,message:t,type:"",...lD[e]},r,{boxType:e}),o)}}sD.forEach((e=>{aD[e]=cD(e)})),aD.close=()=>{nD.forEach(((e,t)=>{t.doClose()})),nD.clear()},aD._context=null;const uD=aD;uD.install=e=>{uD._context=e._context,e.config.globalProperties.$msgbox=uD,e.config.globalProperties.$messageBox=uD,e.config.globalProperties.$alert=uD.alert,e.config.globalProperties.$confirm=uD.confirm,e.config.globalProperties.$prompt=uD.prompt};const dD=uD,pD=["success","info","warning","error"],fD=(0,d.o8)({customClass:{type:String,default:""},dangerouslyUseHTMLString:{type:Boolean,default:!1},duration:{type:Number,default:4500},icon:{type:(0,d.Cq)([String,Object]),default:""},id:{type:String,default:""},message:{type:(0,d.Cq)([String,Object]),default:""},offset:{type:Number,default:0},onClick:{type:(0,d.Cq)(Function),default:()=>{}},onClose:{type:(0,d.Cq)(Function),required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...pD,""],default:""},zIndex:{type:Number,default:0}}),hD={destroy:()=>!0},mD=(0,s.aZ)({name:"ElNotification",components:{ElIcon:C.gn,...I.f5},props:fD,emits:hD,setup(e){const t=(0,m.s)("notification"),n=(0,l.iH)(!1);let r;const o=(0,s.Fl)((()=>{const n=e.type;return n&&I.Rp[e.type]?t.m(n):""})),i=(0,s.Fl)((()=>I.Rp[e.type]||e.icon||"")),a=(0,s.Fl)((()=>e.position.endsWith("right")?"right":"left")),c=(0,s.Fl)((()=>e.position.startsWith("top")?"top":"bottom")),d=(0,s.Fl)((()=>({[c.value]:`${e.offset}px`,zIndex:e.zIndex})));function p(){e.duration>0&&({stop:r}=(0,ne.eM)((()=>{n.value&&h()}),e.duration))}function f(){null==r||r()}function h(){n.value=!1}function v({code:e}){e===Xn.n["delete"]||e===Xn.n.backspace?f():e===Xn.n.esc?n.value&&h():p()}return(0,s.bv)((()=>{p(),n.value=!0})),(0,u.ORN)(document,"keydown",v),{ns:t,horizontalClass:a,typeClass:o,iconComponent:i,positionStyle:d,visible:n,close:h,clearTimer:f,startTimer:p}}}),vD=["id"],gD=["textContent"],yD={key:0},bD=["innerHTML"];function _D(e,t,n,r,o,i){const a=(0,s.up)("el-icon"),l=(0,s.up)("close");return(0,s.wg)(),(0,s.j4)(S.uT,{name:e.ns.b("fade"),onBeforeLeave:e.onClose,onAfterLeave:t[3]||(t[3]=t=>e.$emit("destroy"))},{default:(0,s.w5)((()=>[(0,s.wy)((0,s._)("div",{id:e.id,class:(0,c.C_)([e.ns.b(),e.customClass,e.horizontalClass]),style:(0,c.j5)(e.positionStyle),role:"alert",onMouseenter:t[0]||(t[0]=(...t)=>e.clearTimer&&e.clearTimer(...t)),onMouseleave:t[1]||(t[1]=(...t)=>e.startTimer&&e.startTimer(...t)),onClick:t[2]||(t[2]=(...t)=>e.onClick&&e.onClick(...t))},[e.iconComponent?((0,s.wg)(),(0,s.j4)(a,{key:0,class:(0,c.C_)([e.ns.e("icon"),e.typeClass])},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)(e.iconComponent)))])),_:1},8,["class"])):(0,s.kq)("v-if",!0),(0,s._)("div",{class:(0,c.C_)(e.ns.e("group"))},[(0,s._)("h2",{class:(0,c.C_)(e.ns.e("title")),textContent:(0,c.zw)(e.title)},null,10,gD),(0,s.wy)((0,s._)("div",{class:(0,c.C_)(e.ns.e("content")),style:(0,c.j5)(e.title?void 0:{margin:0})},[(0,s.WI)(e.$slots,"default",{},(()=>[e.dangerouslyUseHTMLString?((0,s.wg)(),(0,s.iD)(s.HY,{key:1},[(0,s.kq)(" Caution here, message could've been compromized, nerver use user's input as message "),(0,s.kq)(" eslint-disable-next-line "),(0,s._)("p",{innerHTML:e.message},null,8,bD)],2112)):((0,s.wg)(),(0,s.iD)("p",yD,(0,c.zw)(e.message),1))]))],6),[[S.F8,e.message]]),e.showClose?((0,s.wg)(),(0,s.j4)(a,{key:0,class:(0,c.C_)(e.ns.e("closeBtn")),onClick:(0,S.iM)(e.close,["stop"])},{default:(0,s.w5)((()=>[(0,s.Wm)(l)])),_:1},8,["class","onClick"])):(0,s.kq)("v-if",!0)],2)],46,vD),[[S.F8,e.visible]])])),_:3},8,["name","onBeforeLeave"])}var wD=(0,h.Z)(mD,[["render",_D],["__file","/home/runner/work/element-plus/element-plus/packages/components/notification/src/notification.vue"]]);const kD={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},SD=16;let CD=1;const xD=function(e={},t=null){if(!ne.C5)return{close:()=>{}};("string"===typeof e||(0,s.lA)(e))&&(e={message:e});const n=e.position||"top-right";let r=e.offset||0;kD[n].forEach((({vm:e})=>{var t;r+=((null==(t=e.el)?void 0:t.offsetHeight)||0)+SD})),r+=SD;const{nextZIndex:o}=(0,Rc.C)(),i="notification_"+CD++,a=e.onClose,l={zIndex:o(),offset:r,...e,id:i,onClose:()=>{ID(i,n,a)}};let u=document.body;(0,Ut.kK)(e.appendTo)?u=e.appendTo:(0,c.HD)(e.appendTo)&&(u=document.querySelector(e.appendTo)),(0,Ut.kK)(u)||((0,v.N)("ElNotification","the appendTo option is not an HTMLElement. Falling back to document.body."),u=document.body);const d=document.createElement("div"),p=(0,s.Wm)(wD,l,(0,s.lA)(l.message)?{default:()=>l.message}:null);return p.appContext=null!=t?t:xD._context,p.props.onDestroy=()=>{(0,S.sY)(null,d)},(0,S.sY)(p,d),kD[n].push({vm:p}),u.appendChild(d.firstElementChild),{close:()=>{p.component.proxy.visible=!1}}};function ID(e,t,n){const r=kD[t],o=r.findIndex((({vm:t})=>{var n;return(null==(n=t.component)?void 0:n.props.id)===e}));if(-1===o)return;const{vm:i}=r[o];if(!i)return;null==n||n(i);const a=i.el.offsetHeight,s=t.split("-")[0];r.splice(o,1);const l=r.length;if(!(l<1))for(let c=o;c<l;c++){const{el:e,component:t}=r[c].vm,n=Number.parseInt(e.style[s],10)-a-SD;t.props.offset=n}}function TD(){for(const e of Object.values(kD))e.forEach((({vm:e})=>{e.component.proxy.visible=!1}))}pD.forEach((e=>{xD[e]=(t={})=>(("string"===typeof t||(0,s.lA)(t))&&(t={message:t}),xD({...t,type:e}))})),xD.closeAll=TD,xD._context=null;const ED=(0,w.oN)(xD,"$notify");var RD=[LA,ZA,YA.z8,dD,ED,r_],PD=a([...CA,...RD])},8731:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(4419),o=n(7354);const i=new Map;let a;function s(e,t){let n=[];return Array.isArray(t.arg)?n=t.arg:(0,o.kK)(t.arg)&&n.push(t.arg),function(r,o){const i=t.instance.popperRef,a=r.target,s=null==o?void 0:o.target,l=!t||!t.instance,c=!a||!s,u=e.contains(a)||e.contains(s),d=e===a,p=n.length&&n.some((e=>null==e?void 0:e.contains(a)))||n.length&&n.includes(s),f=i&&(i.contains(a)||i.contains(s));l||c||u||d||p||f||t.value(r,o)}}r.C5&&(document.addEventListener("mousedown",(e=>a=e)),document.addEventListener("mouseup",(e=>{for(const t of i.values())for(const{documentHandler:n}of t)n(e,a)})));const l={beforeMount(e,t){i.has(e)||i.set(e,[]),i.get(e).push({documentHandler:s(e,t),bindingFn:t.value})},updated(e,t){i.has(e)||i.set(e,[]);const n=i.get(e),r=n.findIndex((e=>e.bindingFn===t.oldValue)),o={documentHandler:s(e,t),bindingFn:t.value};r>=0?n.splice(r,1,o):n.push(o)},unmounted(e){i.delete(e)}}},8053:function(e,t,n){"use strict";n.d(t,{l:function(){return l}});var r=n(3396),o=n(8149),i=n(4620);const a=["class","style"],s=/^on[A-Z]/,l=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n=[]}=e,l=n.concat(a),c=(0,r.FN)();return c?(0,r.Fl)((()=>{var e;return(0,o.Z)(Object.entries(null==(e=c.proxy)?void 0:e.$attrs).filter((([e])=>!l.includes(e)&&!(t&&s.test(e)))))})):((0,i.N)("use-attrs","getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"),(0,r.Fl)((()=>({}))))}},6174:function(e,t,n){"use strict";n.d(t,{B4:function(){return p},tH:function(){return d},Pp:function(){return u}});var r=n(4870),o=n(3396);const i=e=>{const t=(0,o.FN)();return(0,o.Fl)((()=>{var n,r;return null!=(r=null==(n=t.proxy)?void 0:n.$props[e])?r:void 0}))};var a=n(67),s=n(2864),l=n(7609),c=n(563);const u=(0,s.l0)({type:String,values:l.k,required:!1}),d=(e,t={})=>{const n=(0,r.iH)(void 0),s=t.prop?n:i("size"),l=t.global?n:(0,a.W)("size"),u=t.form?{size:void 0}:(0,o.f3)(c.H,void 0),d=t.formItem?{size:void 0}:(0,o.f3)(c.K,void 0);return(0,o.Fl)((()=>s.value||(0,r.SU)(e)||(null==d?void 0:d.size)||(null==u?void 0:u.size)||l.value||""))},p=e=>{const t=i("disabled"),n=(0,o.f3)(c.H,void 0);return(0,o.Fl)((()=>t.value||(0,r.SU)(e)||(null==n?void 0:n.disabled)||!1))}},2967:function(e,t,n){"use strict";n.d(t,{F:function(){return l},q:function(){return s}});var r=n(4870),o=n(4419);function i(){let e;const t=(t,r)=>{n(),e=window.setTimeout(t,r)},n=()=>window.clearTimeout(e);return(0,o.IY)((()=>n())),{registerTimeout:t,cancelTimeout:n}}var a=n(2864);const s=(0,a.o8)({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200}}),l=({showAfter:e,hideAfter:t,open:n,close:o})=>{const{registerTimeout:a}=i(),s=()=>{a((()=>{n()}),(0,r.SU)(e))},l=()=>{a((()=>{o()}),(0,r.SU)(t))};return{onOpen:s,onClose:l}}},7643:function(e,t,n){"use strict";n.d(t,{A:function(){return a}});var r=n(3396),o=n(4870),i=n(4620);const a=({from:e,replacement:t,scope:n,version:a,ref:s,type:l="API"},c)=>{(0,r.YP)((()=>(0,o.SU)(c)),(r=>{r&&(0,i.N)(n,`${l} ${e} is about to be deprecated in version ${a}, please use ${t} instead.\nFor more detail, please visit: ${s}\n`)}),{immediate:!0})}},95:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});var r=n(3396),o=n(563);const i=()=>{const e=(0,r.f3)(o.H,void 0),t=(0,r.f3)(o.K,void 0);return{form:e,formItem:t}}},67:function(e,t,n){"use strict";n.d(t,{A:function(){return u},W:function(){return c}});var r=n(4870),o=n(3396);const i=Symbol();var a=n(4620),s=n(984);const l=(0,r.iH)();function c(e,t){const n=(0,o.FN)()?(0,o.f3)(i,l):l;return e?(0,o.Fl)((()=>{var r,o;return null!=(o=null==(r=n.value)?void 0:r[e])?o:t})):n}const u=(e,t,n=!1)=>{var s;const u=!!(0,o.FN)(),p=u?c():void 0,f=null!=(s=null==t?void 0:t.provide)?s:u?o.JJ:void 0;if(!f)return void(0,a.N)("provideGlobalConfig","provideGlobalConfig() can only be used inside setup().");const h=(0,o.Fl)((()=>{const t=(0,r.SU)(e);return(null==p?void 0:p.value)?d(p.value,t):t}));return f(i,h),!n&&l.value||(l.value=h.value),h},d=(e,t)=>{var n;const r=[...new Set([...(0,s.uc)(e),...(0,s.uc)(t)])],o={};for(const i of r)o[i]=null!=(n=t[i])?n:e[i];return o}},8925:function(e,t,n){"use strict";n.d(t,{M:function(){return c}});var r=n(3396),o=n(4870),i=n(4419),a=n(4620);const s={prefix:Math.floor(1e4*Math.random()),current:0},l=Symbol("elIdInjection"),c=e=>{const t=(0,r.f3)(l,s);i.C5||t!==s||(0,a.N)("IdInjection","Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed\nusage: app.provide(ID_INJECTION_KEY, {\n prefix: number,\n current: number,\n})");const n=(0,r.Fl)((()=>(0,o.SU)(e)||`el-id-${t.prefix}-${t.current++}`));return n}},2137:function(e,t,n){"use strict";n.d(t,{bU:function(){return d}});var r=n(4870),o=n(3396),i=n(2262),a={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}},s=n(67);const l=e=>(t,n)=>c(t,n,(0,r.SU)(e)),c=(e,t,n)=>(0,i.Z)(n,e,e).replace(/\{(\w+)\}/g,((e,n)=>{var r;return`${null!=(r=null==t?void 0:t[n])?r:`{${n}}`}`})),u=e=>{const t=(0,o.Fl)((()=>(0,r.SU)(e).name)),n=(0,r.dq)(e)?e:(0,r.iH)(e);return{lang:t,locale:n,t:l(e)}},d=()=>{const e=(0,s.W)("locale");return u((0,o.Fl)((()=>e.value||a)))}},6734:function(e,t,n){"use strict";n.d(t,{s:function(){return c}});var r=n(3396),o=n(4870),i=n(67);const a="el",s="is-",l=(e,t,n,r,o)=>{let i=`${e}-${t}`;return n&&(i+=`-${n}`),r&&(i+=`__${r}`),o&&(i+=`--${o}`),i},c=e=>{const t=(0,i.W)("namespace"),n=(0,r.Fl)((()=>t.value||a)),c=(t="")=>l((0,o.SU)(n),e,t,"",""),u=t=>t?l((0,o.SU)(n),e,"",t,""):"",d=t=>t?l((0,o.SU)(n),e,"","",t):"",p=(t,r)=>t&&r?l((0,o.SU)(n),e,t,r,""):"",f=(t,r)=>t&&r?l((0,o.SU)(n),e,"",t,r):"",h=(t,r)=>t&&r?l((0,o.SU)(n),e,t,"",r):"",m=(t,r,i)=>t&&r&&i?l((0,o.SU)(n),e,t,r,i):"",v=(e,...t)=>{const n=!(t.length>=1)||t[0];return e&&n?`${s}${e}`:""};return{namespace:n,b:c,e:u,m:d,be:p,em:f,bm:h,bem:m,is:v}}},1750:function(e,t,n){"use strict";n.d(t,{Uc:function(){return u},cl:function(){return l}});var r=n(3396),o=n(4419),i=n(6389);let a;const s=`el-popper-container-${(0,i.O)()}`,l=`#${s}`,c=()=>{const e=document.createElement("div");return e.id=s,document.body.appendChild(e),e},u=()=>{(0,r.wF)((()=>{o.C5&&(a&&document.body.querySelector(l)||(a=c()))}))}},7750:function(e,t,n){"use strict";n.d(t,{C:function(){return s}});var r=n(4870),o=n(3396),i=n(67);const a=(0,r.iH)(0),s=()=>{const e=(0,i.W)("zIndex",2e3),t=(0,o.Fl)((()=>e.value+a.value)),n=()=>(a.value++,t.value);return{initialZIndex:e,currentZIndex:t,nextZIndex:n}}},563:function(e,t,n){"use strict";n.d(t,{H:function(){return r},K:function(){return o}});const r=Symbol("formContextKey"),o=Symbol("formItemContextKey")},8292:function(e,t,n){"use strict";n.d(t,{G:function(){return o},a:function(){return r}});const r=Symbol("popper"),o=Symbol("popperContent")},7504:function(e,t,n){"use strict";n.d(t,{j:function(){return r}});const r=Symbol("rowContextKey")},4324:function(e,t,n){"use strict";n.d(t,{IH:function(){return i},Mj:function(){return a},S1:function(){return o},on:function(){return r},rk:function(){return s}});const r=(e,t,n,r=!1)=>{e&&t&&n&&(null==e||e.addEventListener(t,n,r))},o=(e,t,n,r=!1)=>{e&&t&&n&&(null==e||e.removeEventListener(t,n,r))},i=(e,t,n)=>{const i=function(...r){n&&n.apply(this,r),o(e,t,i)};r(e,t,i)},a=(e,t,{checkForDefaultPrevented:n=!0}={})=>{const r=r=>{const o=null==e?void 0:e(r);if(!1===n||!o)return null==t?void 0:t(r)};return r},s=e=>t=>"mouse"===t.pointerType?e(t):void 0},4770:function(e,t,n){"use strict";n.d(t,{S:function(){return a},k:function(){return i}});var r=n(4419);const o=function(e){for(const t of e){const e=t.target.__resizeListeners__||[];e.length&&e.forEach((e=>{e()}))}},i=function(e,t){r.C5&&e&&(e.__resizeListeners__||(e.__resizeListeners__=[],e.__ro__=new ResizeObserver(o),e.__ro__.observe(e)),e.__resizeListeners__.push(t))},a=function(e,t){var n;e&&e.__resizeListeners__&&(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),e.__resizeListeners__.length||null==(n=e.__ro__)||n.disconnect())}},9304:function(e,t,n){"use strict";n.d(t,{Iz:function(){return l},JX:function(){return a},zT:function(){return c}});var r=n(4419),o=n(529);const i=(e,t)=>{if(!r.C5)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],i=(0,o.C2)(e,n);return["scroll","auto","overlay"].some((e=>i.includes(e)))},a=(e,t)=>{if(!r.C5)return;let n=e;while(n){if([window,document,document.documentElement].includes(n))return window;if(i(n,t))return n;n=n.parentNode}return n};let s;const l=()=>{var e;if(!r.C5)return 0;if(void 0!==s)return s;const t=document.createElement("div");t.className="el-scrollbar__wrap",t.style.visibility="hidden",t.style.width="100px",t.style.position="absolute",t.style.top="-9999px",document.body.appendChild(t);const n=t.offsetWidth;t.style.overflow="scroll";const o=document.createElement("div");o.style.width="100%",t.appendChild(o);const i=o.offsetWidth;return null==(e=t.parentNode)||e.removeChild(t),s=n-i,s};function c(e,t){if(!r.C5)return;if(!t)return void(e.scrollTop=0);const n=[];let o=t.offsetParent;while(null!==o&&e!==o&&e.contains(o))n.push(o),o=o.offsetParent;const i=t.offsetTop+n.reduce(((e,t)=>e+t.offsetTop),0),a=i+t.offsetHeight,s=e.scrollTop,l=s+e.clientHeight;i<s?e.scrollTop=i:a>l&&(e.scrollTop=a-e.clientHeight)}},529:function(e,t,n){"use strict";n.d(t,{C2:function(){return d},IV:function(){return u},Nn:function(){return p},cn:function(){return c},pv:function(){return l}});n(1703);var r=n(4419),o=n(4620),i=n(7139);const a="utils/dom/style",s=(e="")=>e.split(" ").filter((e=>!!e.trim())),l=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},c=(e,t)=>{e&&t.trim()&&e.classList.add(...s(t))},u=(e,t)=>{e&&t.trim()&&e.classList.remove(...s(t))},d=(e,t)=>{var n;if(!r.C5||!e||!t)return"";let o=(0,i._A)(t);"float"===o&&(o="cssFloat");try{const r=e.style[t];if(r)return r;const o=null==(n=document.defaultView)?void 0:n.getComputedStyle(e,"");return o?o[t]:""}catch(a){return e.style[t]}};function p(e,t="px"){return e?(0,i.HD)(e)?e:(0,r.hj)(e)?`${e}${t}`:void(0,o.N)(a,"binding value must be a string or number"):""}},4620:function(e,t,n){"use strict";n.d(t,{N:function(){return i},_:function(){return o}});n(1703);class r extends Error{constructor(e){super(e),this.name="ElementPlusError"}}function o(e,t){throw new r(`[${e}] ${t}`)}function i(e,t){0}},3356:function(e,t,n){"use strict";n.d(t,{w:function(){return r}});const r=e=>/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi.test(e)},984:function(e,t,n){"use strict";n.d(t,{vu:function(){return l},WJ:function(){return c},uc:function(){return s}});var r=n(889);function o(e,t,n){return null==e?e:(0,r.Z)(e,t,n)}var i=o,a=n(2262);const s=e=>Object.keys(e),l=e=>Object.entries(e),c=(e,t,n)=>({get value(){return(0,a.Z)(e,t,n)},set value(n){i(e,t,n)}})},6389:function(e,t,n){"use strict";n.d(t,{O:function(){return r}});const r=()=>Math.floor(1e4*Math.random())},7354:function(e,t,n){"use strict";n.d(t,{Cl:function(){return l},kK:function(){return s},o8:function(){return i},xb:function(){return a}});var r=n(7139),o=n(1727);const i=e=>void 0===e,a=e=>!e&&0!==e||(0,r.kJ)(e)&&0===e.length||(0,r.Kn)(e)&&!Object.keys(e).length,s=e=>"undefined"!==typeof Element&&e instanceof Element,l=e=>(0,o.Z)(e)},2338:function(e,t,n){"use strict";n.d(t,{N:function(){return r}});const r=e=>e},6901:function(e,t,n){"use strict";n.d(t,{NK:function(){return _},f5:function(){return w},Rp:function(){return k},rU:function(){return S},AA:function(){return b}});var r=n(3396),o=n(6854);const i=(0,r.aZ)({name:"SuccessFilled"}),a={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},s=(0,r._)("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336L456.192 600.384z"},null,-1),l=[s];function c(e,t,n,o,i,s){return(0,r.wg)(),(0,r.iD)("svg",a,l)}var u=(0,o.Z)(i,[["render",c]]),d=n(8382),p=n(232),f=n(1203),h=n(2251),m=n(8468),v=n(8904),g=n(4397),y=n(2864);const b=(0,y.Cq)([String,Object,Function]),_={Close:d.Z},w={Close:d.Z,SuccessFilled:u,InfoFilled:p.Z,WarningFilled:f.Z,CircleCloseFilled:h.Z},k={success:u,warning:f.Z,error:h.Z,info:p.Z},S={validating:m.Z,success:v.Z,error:g.Z}},9015:function(e,t,n){"use strict";n.d(t,{dp:function(){return a},nz:function(){return o},oN:function(){return i}});var r=n(7139);const o=(e,t)=>{if(e.install=n=>{for(const r of[e,...Object.values(null!=t?t:{})])n.component(r.name,r)},t)for(const[n,r]of Object.entries(t))e[n]=r;return e},i=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),a=e=>(e.install=r.dG,e)},2864:function(e,t,n){"use strict";n.d(t,{Cq:function(){return u},l0:function(){return l},o8:function(){return c}});var r=n(3396),o=n(8149),i=n(7139);const a=Symbol(),s="__elPropsReservedKey";function l(e,t){if(!(0,i.Kn)(e)||e[s])return e;const{values:n,required:o,default:l,type:c,validator:u}=e,d=n||u?o=>{let a=!1,s=[];if(n&&(s=Array.from(n),(0,i.RI)(e,"default")&&s.push(l),a||(a=s.includes(o))),u&&(a||(a=u(o))),!a&&s.length>0){const e=[...new Set(s)].map((e=>JSON.stringify(e))).join(", ");(0,r.ZK)(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${e}], got value ${JSON.stringify(o)}.`)}return a}:void 0,p={type:(0,i.Kn)(c)&&Object.getOwnPropertySymbols(c).includes(a)?c[a]:c,required:!!o,validator:d,[s]:!0};return(0,i.RI)(e,"default")&&(p.default=l),p}const c=e=>(0,o.Z)(Object.entries(e).map((([e,t])=>[e,l(t,e)]))),u=e=>({[a]:e})},4961:function(e,t,n){"use strict";n.d(t,{P:function(){return i},g:function(){return a}});var r=n(7609),o=n(7117);const i=e=>["",...r.k].includes(e),a=e=>[...o.P].includes(e)},3058:function(e,t,n){"use strict";function r(){this.__data__=[],this.size=0}n.d(t,{Z:function(){return b}});var o=r,i=n(202);function a(e,t){var n=e.length;while(n--)if((0,i.Z)(e[n][0],t))return n;return-1}var s=a,l=Array.prototype,c=l.splice;function u(e){var t=this.__data__,n=s(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():c.call(t,n,1),--this.size,!0}var d=u;function p(e){var t=this.__data__,n=s(t,e);return n<0?void 0:t[n][1]}var f=p;function h(e){return s(this.__data__,e)>-1}var m=h;function v(e,t){var n=this.__data__,r=s(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var g=v;function y(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}y.prototype.clear=o,y.prototype["delete"]=d,y.prototype.get=f,y.prototype.has=m,y.prototype.set=g;var b=y},9795:function(e,t,n){"use strict";var r=n(6823),o=n(8345),i=(0,r.Z)(o.Z,"Map");t["Z"]=i},9350:function(e,t,n){"use strict";n.d(t,{Z:function(){return H}});var r=n(6823),o=(0,r.Z)(Object,"create"),i=o;function a(){this.__data__=i?i(null):{},this.size=0}var s=a;function l(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var c=l,u="__lodash_hash_undefined__",d=Object.prototype,p=d.hasOwnProperty;function f(e){var t=this.__data__;if(i){var n=t[e];return n===u?void 0:n}return p.call(t,e)?t[e]:void 0}var h=f,m=Object.prototype,v=m.hasOwnProperty;function g(e){var t=this.__data__;return i?void 0!==t[e]:v.call(t,e)}var y=g,b="__lodash_hash_undefined__";function _(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=i&&void 0===t?b:t,this}var w=_;function k(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}k.prototype.clear=s,k.prototype["delete"]=c,k.prototype.get=h,k.prototype.has=y,k.prototype.set=w;var S=k,C=n(3058),x=n(9795);function I(){this.size=0,this.__data__={hash:new S,map:new(x.Z||C.Z),string:new S}}var T=I;function E(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}var R=E;function P(e,t){var n=e.__data__;return R(t)?n["string"==typeof t?"string":"hash"]:n.map}var O=P;function A(e){var t=O(this,e)["delete"](e);return this.size-=t?1:0,t}var D=A;function N(e){return O(this,e).get(e)}var M=N;function L(e){return O(this,e).has(e)}var F=L;function U(e,t){var n=O(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var j=U;function V(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}V.prototype.clear=T,V.prototype["delete"]=D,V.prototype.get=M,V.prototype.has=F,V.prototype.set=j;var H=V},9154:function(e,t,n){"use strict";var r=n(6823),o=n(8345),i=(0,r.Z)(o.Z,"Set");t["Z"]=i},5896:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(9350),o="__lodash_hash_undefined__";function i(e){return this.__data__.set(e,o),this}var a=i;function s(e){return this.__data__.has(e)}var l=s;function c(e){var t=-1,n=null==e?0:e.length;this.__data__=new r.Z;while(++t<n)this.add(e[t])}c.prototype.add=c.prototype.push=a,c.prototype.has=l;var u=c},2157:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var r=n(3058);function o(){this.__data__=new r.Z,this.size=0}var i=o;function a(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n}var s=a;function l(e){return this.__data__.get(e)}var c=l;function u(e){return this.__data__.has(e)}var d=u,p=n(9795),f=n(9350),h=200;function m(e,t){var n=this.__data__;if(n instanceof r.Z){var o=n.__data__;if(!p.Z||o.length<h-1)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new f.Z(o)}return n.set(e,t),this.size=n.size,this}var v=m;function g(e){var t=this.__data__=new r.Z(e);this.size=t.size}g.prototype.clear=i,g.prototype["delete"]=s,g.prototype.get=c,g.prototype.has=d,g.prototype.set=v;var y=g},7401:function(e,t,n){"use strict";var r=n(8345),o=r.Z.Symbol;t["Z"]=o},1099:function(e,t,n){"use strict";var r=n(8345),o=r.Z.Uint8Array;t["Z"]=o},2838:function(e,t,n){"use strict";function r(e,t){var n=-1,r=Array(e);while(++n<e)r[n]=t(n);return r}n.d(t,{Z:function(){return f}});var o=r,i=n(493),a=n(7933),s=n(6963),l=n(9016),c=n(976),u=Object.prototype,d=u.hasOwnProperty;function p(e,t){var n=(0,a.Z)(e),r=!n&&(0,i.Z)(e),u=!n&&!r&&(0,s.Z)(e),p=!n&&!r&&!u&&(0,c.Z)(e),f=n||r||u||p,h=f?o(e.length,String):[],m=h.length;for(var v in e)!t&&!d.call(e,v)||f&&("length"==v||u&&("offset"==v||"parent"==v)||p&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||(0,l.Z)(v,m))||h.push(v);return h}var f=p},7925:function(e,t){"use strict";function n(e,t){var n=-1,r=t.length,o=e.length;while(++n<r)e[o+n]=t[n];return e}t["Z"]=n},7788:function(e,t,n){"use strict";var r=n(4441),o=n(202),i=Object.prototype,a=i.hasOwnProperty;function s(e,t,n){var i=e[t];a.call(e,t)&&(0,o.Z)(i,n)&&(void 0!==n||t in e)||(0,r.Z)(e,t,n)}t["Z"]=s},4441:function(e,t,n){"use strict";var r=n(6673);function o(e,t,n){"__proto__"==t&&r.Z?(0,r.Z)(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}t["Z"]=o},4507:function(e,t,n){"use strict";var r=n(1631),o=n(3430);function i(e,t){t=(0,r.Z)(t,e);var n=0,i=t.length;while(null!=e&&n<i)e=e[(0,o.Z)(t[n++])];return n&&n==i?e:void 0}t["Z"]=i},8125:function(e,t,n){"use strict";var r=n(7925),o=n(7933);function i(e,t,n){var i=t(e);return(0,o.Z)(e)?i:(0,r.Z)(i,n(e))}t["Z"]=i},681:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var r=n(7401),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r.Z?r.Z.toStringTag:void 0;function l(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(l){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}var c=l,u=Object.prototype,d=u.toString;function p(e){return d.call(e)}var f=p,h="[object Null]",m="[object Undefined]",v=r.Z?r.Z.toStringTag:void 0;function g(e){return null==e?void 0===e?m:h:v&&v in Object(e)?c(e):f(e)}var y=g},889:function(e,t,n){"use strict";var r=n(7788),o=n(1631),i=n(9016),a=n(6049),s=n(3430);function l(e,t,n,l){if(!(0,a.Z)(e))return e;t=(0,o.Z)(t,e);var c=-1,u=t.length,d=u-1,p=e;while(null!=p&&++c<u){var f=(0,s.Z)(t[c]),h=n;if("__proto__"===f||"constructor"===f||"prototype"===f)return e;if(c!=d){var m=p[f];h=l?l(m,f,p):void 0,void 0===h&&(h=(0,a.Z)(m)?m:(0,i.Z)(t[c+1])?[]:{})}(0,r.Z)(p,f,h),p=p[f]}return e}t["Z"]=l},2583:function(e,t){"use strict";function n(e){return function(t){return e(t)}}t["Z"]=n},7121:function(e,t){"use strict";function n(e,t){return e.has(t)}t["Z"]=n},1631:function(e,t,n){"use strict";n.d(t,{Z:function(){return E}});var r=n(7933),o=n(8590),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;function s(e,t){if((0,r.Z)(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!(0,o.Z)(e))||(a.test(e)||!i.test(e)||null!=t&&e in Object(t))}var l=s,c=n(4861),u=500;function d(e){var t=(0,c.Z)(e,(function(e){return n.size===u&&n.clear(),e})),n=t.cache;return t}var p=d,f=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,h=/\\(\\)?/g,m=p((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(f,(function(e,n,r,o){t.push(r?o.replace(h,"$1"):n||e)})),t})),v=m,g=n(7401);function y(e,t){var n=-1,r=null==e?0:e.length,o=Array(r);while(++n<r)o[n]=t(e[n],n,e);return o}var b=y,_=1/0,w=g.Z?g.Z.prototype:void 0,k=w?w.toString:void 0;function S(e){if("string"==typeof e)return e;if((0,r.Z)(e))return b(e,S)+"";if((0,o.Z)(e))return k?k.call(e):"";var t=e+"";return"0"==t&&1/e==-_?"-0":t}var C=S;function x(e){return null==e?"":C(e)}var I=x;function T(e,t){return(0,r.Z)(e)?e:l(e,t)?[e]:v(I(e))}var E=T},6673:function(e,t,n){"use strict";var r=n(6823),o=function(){try{var e=(0,r.Z)(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();t["Z"]=o},2701:function(e,t){"use strict";var n="object"==typeof global&&global&&global.Object===Object&&global;t["Z"]=n},5666:function(e,t,n){"use strict";var r=n(8125),o=n(4909),i=n(9102);function a(e){return(0,r.Z)(e,i.Z,o.Z)}t["Z"]=a},6823:function(e,t,n){"use strict";n.d(t,{Z:function(){return C}});var r=n(9138),o=n(8345),i=o.Z["__core-js_shared__"],a=i,s=function(){var e=/[^.]+$/.exec(a&&a.keys&&a.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function l(e){return!!s&&s in e}var c=l,u=n(6049),d=n(8481),p=/[\\^$.*+?()[\]{}|]/g,f=/^\[object .+?Constructor\]$/,h=Function.prototype,m=Object.prototype,v=h.toString,g=m.hasOwnProperty,y=RegExp("^"+v.call(g).replace(p,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function b(e){if(!(0,u.Z)(e)||c(e))return!1;var t=(0,r.Z)(e)?y:f;return t.test((0,d.Z)(e))}var _=b;function w(e,t){return null==e?void 0:e[t]}var k=w;function S(e,t){var n=k(e,t);return _(n)?n:void 0}var C=S},4909:function(e,t,n){"use strict";function r(e,t){var n=-1,r=null==e?0:e.length,o=0,i=[];while(++n<r){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}n.d(t,{Z:function(){return u}});var o=r,i=n(7555),a=Object.prototype,s=a.propertyIsEnumerable,l=Object.getOwnPropertySymbols,c=l?function(e){return null==e?[]:(e=Object(e),o(l(e),(function(t){return s.call(e,t)})))}:i.Z,u=c},1880:function(e,t,n){"use strict";n.d(t,{Z:function(){return T}});var r=n(6823),o=n(8345),i=(0,r.Z)(o.Z,"DataView"),a=i,s=n(9795),l=(0,r.Z)(o.Z,"Promise"),c=l,u=n(9154),d=(0,r.Z)(o.Z,"WeakMap"),p=d,f=n(681),h=n(8481),m="[object Map]",v="[object Object]",g="[object Promise]",y="[object Set]",b="[object WeakMap]",_="[object DataView]",w=(0,h.Z)(a),k=(0,h.Z)(s.Z),S=(0,h.Z)(c),C=(0,h.Z)(u.Z),x=(0,h.Z)(p),I=f.Z;(a&&I(new a(new ArrayBuffer(1)))!=_||s.Z&&I(new s.Z)!=m||c&&I(c.resolve())!=g||u.Z&&I(new u.Z)!=y||p&&I(new p)!=b)&&(I=function(e){var t=(0,f.Z)(e),n=t==v?e.constructor:void 0,r=n?(0,h.Z)(n):"";if(r)switch(r){case w:return _;case k:return m;case S:return g;case C:return y;case x:return b}return t});var T=I},9016:function(e,t){"use strict";var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function o(e,t){var o=typeof e;return t=null==t?n:t,!!t&&("number"==o||"symbol"!=o&&r.test(e))&&e>-1&&e%1==0&&e<t}t["Z"]=o},5497:function(e,t){"use strict";var n=Object.prototype;function r(e){var t=e&&e.constructor,r="function"==typeof t&&t.prototype||n;return e===r}t["Z"]=r},9603:function(e,t,n){"use strict";var r=n(2701),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,i=o&&"object"==typeof module&&module&&!module.nodeType&&module,a=i&&i.exports===o,s=a&&r.Z.process,l=function(){try{var e=i&&i.require&&i.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(t){}}();t["Z"]=l},5236:function(e,t){"use strict";function n(e,t){return function(n){return e(t(n))}}t["Z"]=n},8345:function(e,t,n){"use strict";var r=n(2701),o="object"==typeof self&&self&&self.Object===Object&&self,i=r.Z||o||Function("return this")();t["Z"]=i},6902:function(e,t){"use strict";function n(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}t["Z"]=n},3430:function(e,t,n){"use strict";var r=n(8590),o=1/0;function i(e){if("string"==typeof e||(0,r.Z)(e))return e;var t=e+"";return"0"==t&&1/e==-o?"-0":t}t["Z"]=i},8481:function(e,t){"use strict";var n=Function.prototype,r=n.toString;function o(e){if(null!=e){try{return r.call(e)}catch(t){}try{return e+""}catch(t){}}return""}t["Z"]=o},4146:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});n(1703);var r=n(6049),o=n(8345),i=function(){return o.Z.Date.now()},a=i,s=/\s/;function l(e){var t=e.length;while(t--&&s.test(e.charAt(t)));return t}var c=l,u=/^\s+/;function d(e){return e?e.slice(0,c(e)+1).replace(u,""):e}var p=d,f=n(8590),h=NaN,m=/^[-+]0x[0-9a-f]+$/i,v=/^0b[01]+$/i,g=/^0o[0-7]+$/i,y=parseInt;function b(e){if("number"==typeof e)return e;if((0,f.Z)(e))return h;if((0,r.Z)(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=(0,r.Z)(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=p(e);var n=v.test(e);return n||g.test(e)?y(e.slice(2),n?2:8):m.test(e)?h:+e}var _=b,w="Expected a function",k=Math.max,S=Math.min;function C(e,t,n){var o,i,s,l,c,u,d=0,p=!1,f=!1,h=!0;if("function"!=typeof e)throw new TypeError(w);function m(t){var n=o,r=i;return o=i=void 0,d=t,l=e.apply(r,n),l}function v(e){return d=e,c=setTimeout(b,t),p?m(e):l}function g(e){var n=e-u,r=e-d,o=t-n;return f?S(o,s-r):o}function y(e){var n=e-u,r=e-d;return void 0===u||n>=t||n<0||f&&r>=s}function b(){var e=a();if(y(e))return C(e);c=setTimeout(b,g(e))}function C(e){return c=void 0,h&&o?m(e):(o=i=void 0,l)}function x(){void 0!==c&&clearTimeout(c),d=0,o=u=i=c=void 0}function I(){return void 0===c?l:C(a())}function T(){var e=a(),n=y(e);if(o=arguments,i=this,u=e,n){if(void 0===c)return v(u);if(f)return clearTimeout(c),c=setTimeout(b,t),m(u)}return void 0===c&&(c=setTimeout(b,t)),l}return t=_(t)||0,(0,r.Z)(n)&&(p=!!n.leading,f="maxWait"in n,s=f?k(_(n.maxWait)||0,t):s,h="trailing"in n?!!n.trailing:h),T.cancel=x,T.flush=I,T}var x=C},202:function(e,t){"use strict";function n(e,t){return e===t||e!==e&&t!==t}t["Z"]=n},8149:function(e,t){"use strict";function n(e){var t=-1,n=null==e?0:e.length,r={};while(++t<n){var o=e[t];r[o[0]]=o[1]}return r}t["Z"]=n},2262:function(e,t,n){"use strict";var r=n(4507);function o(e,t,n){var o=null==e?void 0:(0,r.Z)(e,t);return void 0===o?n:o}t["Z"]=o},493:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(681),o=n(3835),i="[object Arguments]";function a(e){return(0,o.Z)(e)&&(0,r.Z)(e)==i}var s=a,l=Object.prototype,c=l.hasOwnProperty,u=l.propertyIsEnumerable,d=s(function(){return arguments}())?s:function(e){return(0,o.Z)(e)&&c.call(e,"callee")&&!u.call(e,"callee")},p=d},7933:function(e,t){"use strict";var n=Array.isArray;t["Z"]=n},6791:function(e,t,n){"use strict";var r=n(9138),o=n(2905);function i(e){return null!=e&&(0,o.Z)(e.length)&&!(0,r.Z)(e)}t["Z"]=i},6963:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(8345);function o(){return!1}var i=o,a="object"==typeof exports&&exports&&!exports.nodeType&&exports,s=a&&"object"==typeof module&&module&&!module.nodeType&&module,l=s&&s.exports===a,c=l?r.Z.Buffer:void 0,u=c?c.isBuffer:void 0,d=u||i,p=d},7131:function(e,t,n){"use strict";n.d(t,{Z:function(){return re}});var r=n(2157),o=n(5896);function i(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(t(e[n],n,e))return!0;return!1}var a=i,s=n(7121),l=1,c=2;function u(e,t,n,r,i,u){var d=n&l,p=e.length,f=t.length;if(p!=f&&!(d&&f>p))return!1;var h=u.get(e),m=u.get(t);if(h&&m)return h==t&&m==e;var v=-1,g=!0,y=n&c?new o.Z:void 0;u.set(e,t),u.set(t,e);while(++v<p){var b=e[v],_=t[v];if(r)var w=d?r(_,b,v,t,e,u):r(b,_,v,e,t,u);if(void 0!==w){if(w)continue;g=!1;break}if(y){if(!a(t,(function(e,t){if(!(0,s.Z)(y,t)&&(b===e||i(b,e,n,r,u)))return y.push(t)}))){g=!1;break}}else if(b!==_&&!i(b,_,n,r,u)){g=!1;break}}return u["delete"](e),u["delete"](t),g}var d=u,p=n(7401),f=n(1099),h=n(202);function m(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}var v=m,g=n(6902),y=1,b=2,_="[object Boolean]",w="[object Date]",k="[object Error]",S="[object Map]",C="[object Number]",x="[object RegExp]",I="[object Set]",T="[object String]",E="[object Symbol]",R="[object ArrayBuffer]",P="[object DataView]",O=p.Z?p.Z.prototype:void 0,A=O?O.valueOf:void 0;function D(e,t,n,r,o,i,a){switch(n){case P:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case R:return!(e.byteLength!=t.byteLength||!i(new f.Z(e),new f.Z(t)));case _:case w:case C:return(0,h.Z)(+e,+t);case k:return e.name==t.name&&e.message==t.message;case x:case T:return e==t+"";case S:var s=v;case I:var l=r&y;if(s||(s=g.Z),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=b,a.set(e,t);var u=d(s(e),s(t),r,o,i,a);return a["delete"](e),u;case E:if(A)return A.call(e)==A.call(t)}return!1}var N=D,M=n(5666),L=1,F=Object.prototype,U=F.hasOwnProperty;function j(e,t,n,r,o,i){var a=n&L,s=(0,M.Z)(e),l=s.length,c=(0,M.Z)(t),u=c.length;if(l!=u&&!a)return!1;var d=l;while(d--){var p=s[d];if(!(a?p in t:U.call(t,p)))return!1}var f=i.get(e),h=i.get(t);if(f&&h)return f==t&&h==e;var m=!0;i.set(e,t),i.set(t,e);var v=a;while(++d<l){p=s[d];var g=e[p],y=t[p];if(r)var b=a?r(y,g,p,t,e,i):r(g,y,p,e,t,i);if(!(void 0===b?g===y||o(g,y,n,r,i):b)){m=!1;break}v||(v="constructor"==p)}if(m&&!v){var _=e.constructor,w=t.constructor;_==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof w&&w instanceof w||(m=!1)}return i["delete"](e),i["delete"](t),m}var V=j,H=n(1880),B=n(7933),$=n(6963),z=n(976),W=1,q="[object Arguments]",Z="[object Array]",Y="[object Object]",K=Object.prototype,J=K.hasOwnProperty;function G(e,t,n,o,i,a){var s=(0,B.Z)(e),l=(0,B.Z)(t),c=s?Z:(0,H.Z)(e),u=l?Z:(0,H.Z)(t);c=c==q?Y:c,u=u==q?Y:u;var p=c==Y,f=u==Y,h=c==u;if(h&&(0,$.Z)(e)){if(!(0,$.Z)(t))return!1;s=!0,p=!1}if(h&&!p)return a||(a=new r.Z),s||(0,z.Z)(e)?d(e,t,n,o,i,a):N(e,t,c,n,o,i,a);if(!(n&W)){var m=p&&J.call(e,"__wrapped__"),v=f&&J.call(t,"__wrapped__");if(m||v){var g=m?e.value():e,y=v?t.value():t;return a||(a=new r.Z),i(g,y,n,o,a)}}return!!h&&(a||(a=new r.Z),V(e,t,n,o,i,a))}var X=G,Q=n(3835);function ee(e,t,n,r,o){return e===t||(null==e||null==t||!(0,Q.Z)(e)&&!(0,Q.Z)(t)?e!==e&&t!==t:X(e,t,n,r,ee,o))}var te=ee;function ne(e,t){return te(e,t)}var re=ne},9138:function(e,t,n){"use strict";var r=n(681),o=n(6049),i="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",l="[object Proxy]";function c(e){if(!(0,o.Z)(e))return!1;var t=(0,r.Z)(e);return t==a||t==s||t==i||t==l}t["Z"]=c},2905:function(e,t){"use strict";var n=9007199254740991;function r(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}t["Z"]=r},1727:function(e,t){"use strict";function n(e){return null==e}t["Z"]=n},6049:function(e,t){"use strict";function n(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}t["Z"]=n},3835:function(e,t){"use strict";function n(e){return null!=e&&"object"==typeof e}t["Z"]=n},8590:function(e,t,n){"use strict";var r=n(681),o=n(3835),i="[object Symbol]";function a(e){return"symbol"==typeof e||(0,o.Z)(e)&&(0,r.Z)(e)==i}t["Z"]=a},976:function(e,t,n){"use strict";n.d(t,{Z:function(){return F}});var r=n(681),o=n(2905),i=n(3835),a="[object Arguments]",s="[object Array]",l="[object Boolean]",c="[object Date]",u="[object Error]",d="[object Function]",p="[object Map]",f="[object Number]",h="[object Object]",m="[object RegExp]",v="[object Set]",g="[object String]",y="[object WeakMap]",b="[object ArrayBuffer]",_="[object DataView]",w="[object Float32Array]",k="[object Float64Array]",S="[object Int8Array]",C="[object Int16Array]",x="[object Int32Array]",I="[object Uint8Array]",T="[object Uint8ClampedArray]",E="[object Uint16Array]",R="[object Uint32Array]",P={};function O(e){return(0,i.Z)(e)&&(0,o.Z)(e.length)&&!!P[(0,r.Z)(e)]}P[w]=P[k]=P[S]=P[C]=P[x]=P[I]=P[T]=P[E]=P[R]=!0,P[a]=P[s]=P[b]=P[l]=P[_]=P[c]=P[u]=P[d]=P[p]=P[f]=P[h]=P[m]=P[v]=P[g]=P[y]=!1;var A=O,D=n(2583),N=n(9603),M=N.Z&&N.Z.isTypedArray,L=M?(0,D.Z)(M):A,F=L},9102:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(2838),o=n(5497),i=n(5236),a=(0,i.Z)(Object.keys,Object),s=a,l=Object.prototype,c=l.hasOwnProperty;function u(e){if(!(0,o.Z)(e))return s(e);var t=[];for(var n in Object(e))c.call(e,n)&&"constructor"!=n&&t.push(n);return t}var d=u,p=n(6791);function f(e){return(0,p.Z)(e)?(0,r.Z)(e):d(e)}var h=f},4861:function(e,t,n){"use strict";n(1703);var r=n(9350),o="Expected a function";function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(o);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(i.Cache||r.Z),n}i.Cache=r.Z,t["Z"]=i},7555:function(e,t){"use strict";function n(){return[]}t["Z"]=n},1373:function(e,t,n){"use strict";function r(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map((function(e){e(n)})),(r=e.get("*"))&&r.slice().map((function(e){e(t,n)}))}}}n.d(t,{Z:function(){return r}})},3701:function(e,t,n){"use strict";n.d(t,{$B:function(){return o},$Q:function(){return r},t8:function(){return i}});var r=!1,o=!0;function i(e,t,n){return Array.isArray(e)?(e.length=Math.max(e.length,t),e.splice(t,1,n),n):(e[t]=n,n)}}}]);
- //# sourceMappingURL=chunk-vendors.55d98d2e.js.map
|