362 lines
4.8 MiB
Plaintext
362 lines
4.8 MiB
Plaintext
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["vendors~app"],{"0054":function(e,t,n){"use strict";var r=n("a5eb"),o=n("9883"),a=n("a0b9"),i=n("7106"),s=n("ce18"),c=n("06fa"),l=n("fb2d"),u=n("c978"),d=n("eb541"),p=n("0ca8"),f=n("8c68"),h=String,m=o("JSON","stringify"),v=s(/./.exec),g=s("".charAt),_=s("".charCodeAt),y=s("".replace),b=s(1..toString),O=/[\uD800-\uDFFF]/g,M=/^[\uD800-\uDBFF]$/,k=/^[\uDC00-\uDFFF]$/,C=!f||c((function(){var e=o("Symbol")();return"[null]"!=m([e])||"{}"!=m({a:e})||"{}"!=m(Object(e))})),w=c((function(){return'"\\udf06\\ud834"'!==m("\udf06\ud834")||'"\\udead"'!==m("\udead")})),I=function(e,t){var n=d(arguments),r=p(t);if(l(r)||void 0!==e&&!u(e))return n[1]=function(e,t){if(l(r)&&(t=i(r,this,h(e),t)),!u(t))return t},a(m,null,n)},S=function(e,t,n){var r=g(n,t-1),o=g(n,t+1);return v(M,e)&&!v(k,o)||v(k,e)&&!v(M,r)?"\\u"+b(_(e,0),16):e};m&&r({target:"JSON",stat:!0,arity:3,forced:C||w},{stringify:function(e,t,n){var r=d(arguments),o=a(C?I:m,null,r);return w&&"string"==typeof o?y(o,O,S):o}})},"00ce":function(e,t,n){"use strict";var r,o=SyntaxError,a=Function,i=TypeError,s=function(e){try{return a('"use strict"; return ('+e+").constructor;")()}catch(t){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(D){c=null}var l=function(){throw new i},u=c?function(){try{return l}catch(e){try{return c(arguments,"callee").get}catch(t){return l}}}():l,d=n("5156")(),p=n("0a36")(),f=Object.getPrototypeOf||(p?function(e){return e.__proto__}:null),h={},m="undefined"!==typeof Uint8Array&&f?f(Uint8Array):r,v={"%AggregateError%":"undefined"===typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":d&&f?f([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":"undefined"===typeof Atomics?r:Atomics,"%BigInt%":"undefined"===typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"===typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"===typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"===typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":a,"%GeneratorFunction%":h,"%Int8Array%":"undefined"===typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":d&&f?f(f([][Symbol.iterator]())):r,"%JSON%":"object"===typeof JSON?JSON:r,"%Map%":"undefined"===typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&d&&f?f((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?r:Promise,"%Proxy%":"undefined"===typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"===typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&d&&f?f((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":d&&f?f(""[Symbol.iterator]()):r,"%Symbol%":d?Symbol:r,"%SyntaxError%":o,"%ThrowTypeError%":u,"%TypedArray%":m,"%TypeError%":i,"%Uint8Array%":"undefined"===typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"===typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?r:WeakSet};if(f)try{null.error}catch(D){var g=f(f(D));v["%Error.prototype%"]=g}var _=function e(t){var n;if("%AsyncFunction%"===t)n=s("async function () {}");else if("%GeneratorFunction%"===t)n=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=s("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&f&&(n=f(o.prototype))}return v[t]=n,n},y={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},b=n("0f7c"),O=n("a0d3"),M=b.call(Function.call,Array.prototype.concat),k=b.call(Function.apply,Array.prototype.splice),C=b.call(Function.call,String.prototype.replace),w=b.call(Function.call,String.prototype.slice),I=b.call(Function.call,RegExp.prototype.exec),S=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,T=/\\(\\)?/g,E=function(e){var t=w(e,0,1),n=w(e,-1);if("%"===t&&"%"!==n)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new o("invalid intrinsic syntax, expected opening `%`");var r=[];return C(e,S,(function(e,t,n,o){r[r.length]=n?C(o,T,"$1"):t||e})),r},j=function(e,t){var n,r=e;if(O(y,r)&&(n=y[r],r="%"+n[0]+"%"),O(v,r)){var a=v[r];if(a===h&&(a=_(r)),"undefined"===typeof a&&!t)throw new i("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:a}}throw new o("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!==typeof e||0===e.length)throw new i("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof t)throw new i('"allowMissing" argument must be a boolean');if(null===I(/^%?[^%]*%?$/,e))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=E(e),r=n.length>0?n[0]:"",a=j("%"+r+"%",t),s=a.name,l=a.value,u=!1,d=a.alias;d&&(r=d[0],k(n,M([0,1],d)));for(var p=1,f=!0;p<n.length;p+=1){var h=n[p],m=w(h,0,1),g=w(h,-1);if(('"'===m||"'"===m||"`"===m||'"'===g||"'"===g||"`"===g)&&m!==g)throw new o("property names with quotes must have matching quotes");if("constructor"!==h&&f||(u=!0),r+="."+h,s="%"+r+"%",O(v,s))l=v[s];else if(null!=l){if(!(h in l)){if(!t)throw new i("base intrinsic for "+e+" exists, but the property is not available.");return}if(c&&p+1>=n.length){var _=c(l,h);f=!!_,l=f&&"get"in _&&!("originalValue"in _.get)?_.get:l[h]}else f=O(l,h),l=l[h];f&&!u&&(v[s]=l)}}return l}},"00ee":function(e,t,n){"use strict";var r=n("b622"),o=r("toStringTag"),a={};a[o]="z",e.exports="[object z]"===String(a)},"010e":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}});return t}))},"0149":function(e,t,n){"use strict";(function(t){var r=n("fc48");e.exports="undefined"!=typeof t&&"process"==r(t)}).call(this,n("4362"))},"0273":function(e,t,n){"use strict";var r=n("c1b2"),o=n("4180"),a=n("2c6c");e.exports=r?function(e,t,n){return o.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},"0293":function(e,t,n){"use strict";n("04b8")},"02fb":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(e,t){return 12===e&&(e=0),"രാത്രി"===t&&e>=4||"ഉച്ച കഴിഞ്ഞ്"===t||"വൈകുന്നേരം"===t?e+12:e},meridiem:function(e,t,n){return e<4?"രാത്രി":e<12?"രാവിലെ":e<17?"ഉച്ച കഴിഞ്ഞ്":e<20?"വൈകുന്നേരം":"രാത്രി"}});return t}))},"033d":function(e,t,n){"use strict";var r=n("a5eb"),o=n("3ac6"),a=n("d175"),i=a(o.setInterval,!0);r({global:!0,bind:!0,forced:o.setInterval!==i},{setInterval:i})},"0363":function(e,t,n){"use strict";var r=n("3ac6"),o=n("d659"),a=n("0e6f"),i=n("3e80"),s=n("8c68"),c=n("62d0"),l=r.Symbol,u=o("wks"),d=c?l["for"]||l:l&&l.withoutSetter||i;e.exports=function(e){return a(u,e)||(u[e]=s&&a(l,e)?l[e]:d("Symbol."+e)),u[e]}},"0366":function(e,t,n){"use strict";var r=n("4625"),o=n("59ed"),a=n("40d5"),i=r(r.bind);e.exports=function(e,t){return o(e),void 0===t?e:a?i(e,t):function(){return e.apply(t,arguments)}}},"0388":function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n("7a23"),o=n("0898");const a=Object(o["b"])({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 i=n("2711"),s=n("304f"),c=n("83ec");const l=["textContent"],u=Object(r["defineComponent"])({name:"ElBadge"}),d=Object(r["defineComponent"])({...u,props:a,setup(e,{expose:t}){const n=e,o=Object(s["d"])("badge"),a=Object(r["computed"])(()=>n.isDot?"":Object(c["d"])(n.value)&&Object(c["d"])(n.max)&&n.max<n.value?n.max+"+":""+n.value);return t({content:a}),(e,t)=>(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{class:Object(r["normalizeClass"])(Object(r["unref"])(o).b())},[Object(r["renderSlot"])(e.$slots,"default"),Object(r["createVNode"])(r["Transition"],{name:Object(r["unref"])(o).namespace.value+"-zoom-in-center",persisted:""},{default:Object(r["withCtx"])(()=>[Object(r["withDirectives"])(Object(r["createElementVNode"])("sup",{class:Object(r["normalizeClass"])([Object(r["unref"])(o).e("content"),Object(r["unref"])(o).em("content",e.type),Object(r["unref"])(o).is("fixed",!!e.$slots.default),Object(r["unref"])(o).is("dot",e.isDot)]),textContent:Object(r["toDisplayString"])(Object(r["unref"])(a))},null,10,l),[[r["vShow"],!e.hidden&&(Object(r["unref"])(a)||e.isDot)]])]),_:1},8,["name"])],2))}});var p=Object(i["a"])(d,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]),f=n("0c24");const h=Object(f["a"])(p)},"03d2":function(e,t,n){"use strict";var r=n("3515");e.exports=r},"03ec":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(e){var t=/сехет$/i.exec(e)?"рен":/ҫул$/i.exec(e)?"тан":"ран";return e+t},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}});return t}))},"045d":function(e,t,n){e.exports=n("049e")},"049e":function(e,t,n){"use strict";var r=n("2419");n("5145"),e.exports=r},"04b8":function(e,t,n){"use strict";n("3e47");var r,o=n("a5eb"),a=n("c1b2"),i=n("36b8"),s=n("3ac6"),c=n("6414"),l=n("ce18"),u=n("fdbe"),d=n("2296"),p=n("5f7d"),f=n("0e6f"),h=n("f44f"),m=n("471b"),v=n("e890"),g=n("cbd0").codeAt,_=n("e7f1"),y=n("8c12"),b=n("2874"),O=n("f868"),M=n("718c"),k=n("2f5a"),C=k.set,w=k.getterFor("URL"),I=M.URLSearchParams,S=M.getState,T=s.URL,E=s.TypeError,j=s.parseInt,D=Math.floor,L=Math.pow,A=l("".charAt),N=l(/./.exec),x=l([].join),R=l(1..toString),P=l([].pop),U=l([].push),V=l("".replace),B=l([].shift),F=l("".split),G=l("".slice),z=l("".toLowerCase),H=l([].unshift),Y="Invalid authority",q="Invalid scheme",W="Invalid host",K="Invalid port",$=/[a-z]/i,J=/[\d+-.a-z]/i,Q=/\d/,X=/^0x/i,Z=/^[0-7]+$/,ee=/^\d+$/,te=/^[\da-f]+$/i,ne=/[\0\t\n\r #%/:<>?@[\\\]^|]/,re=/[\0\t\n\r #/:<>?@[\\\]^|]/,oe=/^[\u0000-\u0020]+/,ae=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,ie=/[\t\n\r]/g,se=function(e){var t,n,r,o,a,i,s,c=F(e,".");if(c.length&&""==c[c.length-1]&&c.length--,t=c.length,t>4)return e;for(n=[],r=0;r<t;r++){if(o=c[r],""==o)return e;if(a=10,o.length>1&&"0"==A(o,0)&&(a=N(X,o)?16:8,o=G(o,8==a?1:2)),""===o)i=0;else{if(!N(10==a?ee:8==a?Z:te,o))return e;i=j(o,a)}U(n,i)}for(r=0;r<t;r++)if(i=n[r],r==t-1){if(i>=L(256,5-t))return null}else if(i>255)return null;for(s=P(n),r=0;r<n.length;r++)s+=n[r]*L(256,3-r);return s},ce=function(e){var t,n,r,o,a,i,s,c=[0,0,0,0,0,0,0,0],l=0,u=null,d=0,p=function(){return A(e,d)};if(":"==p()){if(":"!=A(e,1))return;d+=2,l++,u=l}while(p()){if(8==l)return;if(":"!=p()){t=n=0;while(n<4&&N(te,p()))t=16*t+j(p(),16),d++,n++;if("."==p()){if(0==n)return;if(d-=n,l>6)return;r=0;while(p()){if(o=null,r>0){if(!("."==p()&&r<4))return;d++}if(!N(Q,p()))return;while(N(Q,p())){if(a=j(p(),10),null===o)o=a;else{if(0==o)return;o=10*o+a}if(o>255)return;d++}c[l]=256*c[l]+o,r++,2!=r&&4!=r||l++}if(4!=r)return;break}if(":"==p()){if(d++,!p())return}else if(p())return;c[l++]=t}else{if(null!==u)return;d++,l++,u=l}}if(null!==u){i=l-u,l=7;while(0!=l&&i>0)s=c[l],c[l--]=c[u+i-1],c[u+--i]=s}else if(8!=l)return;return c},le=function(e){for(var t=null,n=1,r=null,o=0,a=0;a<8;a++)0!==e[a]?(o>n&&(t=r,n=o),r=null,o=0):(null===r&&(r=a),++o);return o>n&&(t=r,n=o),t},ue=function(e){var t,n,r,o;if("number"==typeof e){for(t=[],n=0;n<4;n++)H(t,e%256),e=D(e/256);return x(t,".")}if("object"==typeof e){for(t="",r=le(e),n=0;n<8;n++)o&&0===e[n]||(o&&(o=!1),r===n?(t+=n?":":"::",o=!0):(t+=R(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},de={},pe=h({},de,{" ":1,'"':1,"<":1,">":1,"`":1}),fe=h({},pe,{"#":1,"?":1,"{":1,"}":1}),he=h({},fe,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),me=function(e,t){var n=g(e,0);return n>32&&n<127&&!f(t,e)?e:encodeURIComponent(e)},ve={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ge=function(e,t){var n;return 2==e.length&&N($,A(e,0))&&(":"==(n=A(e,1))||!t&&"|"==n)},_e=function(e){var t;return e.length>1&&ge(G(e,0,2))&&(2==e.length||"/"===(t=A(e,2))||"\\"===t||"?"===t||"#"===t)},ye=function(e){return"."===e||"%2e"===z(e)},be=function(e){return e=z(e),".."===e||"%2e."===e||".%2e"===e||"%2e%2e"===e},Oe={},Me={},ke={},Ce={},we={},Ie={},Se={},Te={},Ee={},je={},De={},Le={},Ae={},Ne={},xe={},Re={},Pe={},Ue={},Ve={},Be={},Fe={},Ge=function(e,t,n){var r,o,a,i=y(e);if(t){if(o=this.parse(i),o)throw E(o);this.searchParams=null}else{if(void 0!==n&&(r=new Ge(n,!0)),o=this.parse(i,null,r),o)throw E(o);a=S(new I),a.bindURL(this),this.searchParams=a}};Ge.prototype={type:"URL",parse:function(e,t,n){var o,a,i,s,c=this,l=t||Oe,u=0,d="",p=!1,h=!1,g=!1;e=y(e),t||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,e=V(e,oe,""),e=V(e,ae,"$1")),e=V(e,ie,""),o=m(e);while(u<=o.length){switch(a=o[u],l){case Oe:if(!a||!N($,a)){if(t)return q;l=ke;continue}d+=z(a),l=Me;break;case Me:if(a&&(N(J,a)||"+"==a||"-"==a||"."==a))d+=z(a);else{if(":"!=a){if(t)return q;d="",l=ke,u=0;continue}if(t&&(c.isSpecial()!=f(ve,d)||"file"==d&&(c.includesCredentials()||null!==c.port)||"file"==c.scheme&&!c.host))return;if(c.scheme=d,t)return void(c.isSpecial()&&ve[c.scheme]==c.port&&(c.port=null));d="","file"==c.scheme?l=Ne:c.isSpecial()&&n&&n.scheme==c.scheme?l=Ce:c.isSpecial()?l=Te:"/"==o[u+1]?(l=we,u++):(c.cannotBeABaseURL=!0,U(c.path,""),l=Ve)}break;case ke:if(!n||n.cannotBeABaseURL&&"#"!=a)return q;if(n.cannotBeABaseURL&&"#"==a){c.scheme=n.scheme,c.path=v(n.path),c.query=n.query,c.fragment="",c.cannotBeABaseURL=!0,l=Fe;break}l="file"==n.scheme?Ne:Ie;continue;case Ce:if("/"!=a||"/"!=o[u+1]){l=Ie;continue}l=Ee,u++;break;case we:if("/"==a){l=je;break}l=Ue;continue;case Ie:if(c.scheme=n.scheme,a==r)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=v(n.path),c.query=n.query;else if("/"==a||"\\"==a&&c.isSpecial())l=Se;else if("?"==a)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=v(n.path),c.query="",l=Be;else{if("#"!=a){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=v(n.path),c.path.length--,l=Ue;continue}c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=v(n.path),c.query=n.query,c.fragment="",l=Fe}break;case Se:if(!c.isSpecial()||"/"!=a&&"\\"!=a){if("/"!=a){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,l=Ue;continue}l=je}else l=Ee;break;case Te:if(l=Ee,"/"!=a||"/"!=A(d,u+1))continue;u++;break;case Ee:if("/"!=a&&"\\"!=a){l=je;continue}break;case je:if("@"==a){p&&(d="%40"+d),p=!0,i=m(d);for(var _=0;_<i.length;_++){var b=i[_];if(":"!=b||g){var O=me(b,he);g?c.password+=O:c.username+=O}else g=!0}d=""}else if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&c.isSpecial()){if(p&&""==d)return Y;u-=m(d).length+1,d="",l=De}else d+=a;break;case De:case Le:if(t&&"file"==c.scheme){l=Re;continue}if(":"!=a||h){if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&c.isSpecial()){if(c.isSpecial()&&""==d)return W;if(t&&""==d&&(c.includesCredentials()||null!==c.port))return;if(s=c.parseHost(d),s)return s;if(d="",l=Pe,t)return;continue}"["==a?h=!0:"]"==a&&(h=!1),d+=a}else{if(""==d)return W;if(s=c.parseHost(d),s)return s;if(d="",l=Ae,t==Le)return}break;case Ae:if(!N(Q,a)){if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&c.isSpecial()||t){if(""!=d){var M=j(d,10);if(M>65535)return K;c.port=c.isSpecial()&&M===ve[c.scheme]?null:M,d=""}if(t)return;l=Pe;continue}return K}d+=a;break;case Ne:if(c.scheme="file","/"==a||"\\"==a)l=xe;else{if(!n||"file"!=n.scheme){l=Ue;continue}if(a==r)c.host=n.host,c.path=v(n.path),c.query=n.query;else if("?"==a)c.host=n.host,c.path=v(n.path),c.query="",l=Be;else{if("#"!=a){_e(x(v(o,u),""))||(c.host=n.host,c.path=v(n.path),c.shortenPath()),l=Ue;continue}c.host=n.host,c.path=v(n.path),c.query=n.query,c.fragment="",l=Fe}}break;case xe:if("/"==a||"\\"==a){l=Re;break}n&&"file"==n.scheme&&!_e(x(v(o,u),""))&&(ge(n.path[0],!0)?U(c.path,n.path[0]):c.host=n.host),l=Ue;continue;case Re:if(a==r||"/"==a||"\\"==a||"?"==a||"#"==a){if(!t&&ge(d))l=Ue;else if(""==d){if(c.host="",t)return;l=Pe}else{if(s=c.parseHost(d),s)return s;if("localhost"==c.host&&(c.host=""),t)return;d="",l=Pe}continue}d+=a;break;case Pe:if(c.isSpecial()){if(l=Ue,"/"!=a&&"\\"!=a)continue}else if(t||"?"!=a)if(t||"#"!=a){if(a!=r&&(l=Ue,"/"!=a))continue}else c.fragment="",l=Fe;else c.query="",l=Be;break;case Ue:if(a==r||"/"==a||"\\"==a&&c.isSpecial()||!t&&("?"==a||"#"==a)){if(be(d)?(c.shortenPath(),"/"==a||"\\"==a&&c.isSpecial()||U(c.path,"")):ye(d)?"/"==a||"\\"==a&&c.isSpecial()||U(c.path,""):("file"==c.scheme&&!c.path.length&&ge(d)&&(c.host&&(c.host=""),d=A(d,0)+":"),U(c.path,d)),d="","file"==c.scheme&&(a==r||"?"==a||"#"==a))while(c.path.length>1&&""===c.path[0])B(c.path);"?"==a?(c.query="",l=Be):"#"==a&&(c.fragment="",l=Fe)}else d+=me(a,fe);break;case Ve:"?"==a?(c.query="",l=Be):"#"==a?(c.fragment="",l=Fe):a!=r&&(c.path[0]+=me(a,de));break;case Be:t||"#"!=a?a!=r&&("'"==a&&c.isSpecial()?c.query+="%27":c.query+="#"==a?"%23":me(a,de)):(c.fragment="",l=Fe);break;case Fe:a!=r&&(c.fragment+=me(a,pe));break}u++}},parseHost:function(e){var t,n,r;if("["==A(e,0)){if("]"!=A(e,e.length-1))return W;if(t=ce(G(e,1,-1)),!t)return W;this.host=t}else if(this.isSpecial()){if(e=_(e),N(ne,e))return W;if(t=se(e),null===t)return W;this.host=t}else{if(N(re,e))return W;for(t="",n=m(e),r=0;r<n.length;r++)t+=me(n[r],de);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return f(ve,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&ge(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,n=e.username,r=e.password,o=e.host,a=e.port,i=e.path,s=e.query,c=e.fragment,l=t+":";return null!==o?(l+="//",e.includesCredentials()&&(l+=n+(r?":"+r:"")+"@"),l+=ue(o),null!==a&&(l+=":"+a)):"file"==t&&(l+="//"),l+=e.cannotBeABaseURL?i[0]:i.length?"/"+x(i,"/"):"",null!==s&&(l+="?"+s),null!==c&&(l+="#"+c),l},setHref:function(e){var t=this.parse(e);if(t)throw E(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new ze(e.path[0]).origin}catch(n){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+ue(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(y(e)+":",Oe)},getUsername:function(){return this.username},setUsername:function(e){var t=m(y(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<t.length;n++)this.username+=me(t[n],he)}},getPassword:function(){return this.password},setPassword:function(e){var t=m(y(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<t.length;n++)this.password+=me(t[n],he)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?ue(e):ue(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,De)},getHostname:function(){var e=this.host;return null===e?"":ue(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Le)},getPort:function(){var e=this.port;return null===e?"":y(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(e=y(e),""==e?this.port=null:this.parse(e,Ae))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+x(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Pe))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){e=y(e),""==e?this.query=null:("?"==A(e,0)&&(e=G(e,1)),this.query="",this.parse(e,Be)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){e=y(e),""!=e?("#"==A(e,0)&&(e=G(e,1)),this.fragment="",this.parse(e,Fe)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var ze=function(e){var t=p(this,He),n=O(arguments.length,1)>1?arguments[1]:void 0,r=C(t,new Ge(e,!1,n));a||(t.href=r.serialize(),t.origin=r.getOrigin(),t.protocol=r.getProtocol(),t.username=r.getUsername(),t.password=r.getPassword(),t.host=r.getHost(),t.hostname=r.getHostname(),t.port=r.getPort(),t.pathname=r.getPathname(),t.search=r.getSearch(),t.searchParams=r.getSearchParams(),t.hash=r.getHash())},He=ze.prototype,Ye=function(e,t){return{get:function(){return w(this)[e]()},set:t&&function(e){return w(this)[t](e)},configurable:!0,enumerable:!0}};if(a&&(d(He,"href",Ye("serialize","setHref")),d(He,"origin",Ye("getOrigin")),d(He,"protocol",Ye("getProtocol","setProtocol")),d(He,"username",Ye("getUsername","setUsername")),d(He,"password",Ye("getPassword","setPassword")),d(He,"host",Ye("getHost","setHost")),d(He,"hostname",Ye("getHostname","setHostname")),d(He,"port",Ye("getPort","setPort")),d(He,"pathname",Ye("getPathname","setPathname")),d(He,"search",Ye("getSearch","setSearch")),d(He,"searchParams",Ye("getSearchParams")),d(He,"hash",Ye("getHash","setHash"))),u(He,"toJSON",(function(){return w(this).serialize()}),{enumerable:!0}),u(He,"toString",(function(){return w(this).serialize()}),{enumerable:!0}),T){var qe=T.createObjectURL,We=T.revokeObjectURL;qe&&u(ze,"createObjectURL",c(qe,T)),We&&u(ze,"revokeObjectURL",c(We,T))}b(ze,"URL"),o({global:!0,constructor:!0,forced:!i,sham:!a},{URL:ze})},"04f8":function(e,t,n){"use strict";var r=n("2d00"),o=n("d039"),a=n("da84"),i=a.String;e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},"04ff":function(e,t,n){"use strict";var r=n("437b"),o=n("1519"),a=Array.prototype;e.exports=function(e){var t=e.find;return e===a||r(a,e)&&t===a.find?o:t}},"0512":function(e,t,n){var r=function(e){return e&&"undefined"!==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,c=function(e,t){for(var n in t)o(e,n,{get:t[n],enumerable:!0})},l=function(e,t,n,r){var c=!0,l=!1,u=void 0;if(t&&"object"==typeof t||"function"==typeof t)try{for(var d,p=function(i,c){var l=c.value;!s.call(e,l)&&l!==n&&o(e,l,{get:function(){return t[l]},enumerable:!(r=a(t,l))||r.enumerable})},f=i(t)[Symbol.iterator]();!(c=(d=f.next()).done);c=!0)p(f,d)}catch(h){l=!0,u=h}finally{try{c||null==f.return||f.return()}finally{if(l)throw u}}return e},u=function(e){return l(o({},"__esModule",{value:!0}),e)},d={};c(d,{default:function(){return F}}),e.exports=u(d);var p,f,h,m,v,g,_,y,b,O,M,k,C,w,I,S=!1;function T(){if(!S){S=!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(k=/\b(iPhone|iP[ao]d)/.exec(e),C=/\b(iP[ao]d)/.exec(e),O=/Android/i.exec(e),w=/FBAN\/\w+;/i.exec(e),I=/Mobile/i.exec(e),M=!!/Win64/.exec(e),t){p=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,p&&document&&document.documentMode&&(p=document.documentMode);var r=/(?:Trident\/(\d+.\d+))/.exec(e);g=r?parseFloat(r[1])+4:p,f=t[2]?parseFloat(t[2]):NaN,h=t[3]?parseFloat(t[3]):NaN,m=t[4]?parseFloat(t[4]):NaN,m?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),v=t&&t[1]?parseFloat(t[1]):NaN):v=NaN}else p=f=h=v=m=NaN;if(n){if(n[1]){var o=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);_=!o||parseFloat(o[1].replace("_","."))}else _=!1;y=!!n[2],b=!!n[3]}else _=y=b=!1}}var E,j={ie:function(){return T()||p},ieCompatibilityMode:function(){return T()||g>p},ie64:function(){return j.ie()&&M},firefox:function(){return T()||f},opera:function(){return T()||h},webkit:function(){return T()||m},safari:function(){return j.webkit()},chrome:function(){return T()||v},windows:function(){return T()||y},osx:function(){return T()||_},linux:function(){return T()||b},iphone:function(){return T()||k},mobile:function(){return T()||k||C||O||I},nativeApp:function(){return T()||w},android:function(){return T()||O},ipad:function(){return T()||C}},D=j,L=!!(("undefined"===typeof window?"undefined":r(window))<"u"&&window.document&&window.document.createElement),A={canUseDOM:L,canUseWorkers:("undefined"===typeof Worker?"undefined":r(Worker))<"u",canUseEventListeners:L&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:L&&!!window.screen,isInWorker:!L},N=A;function x(e,t){if(!N.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&&E&&"wheel"===e&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}N.canUseDOM&&(E=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("",""));var R=x,P=10,U=40,V=800;function B(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*P,o=n*P,"deltaY"in e&&(o=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||o)&&e.deltaMode&&(1==e.deltaMode?(r*=U,o*=U):(r*=V,o*=V)),r&&!t&&(t=r<1?-1:1),o&&!n&&(n=o<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:o}}B.getEventType=function(){return D.firefox()?"DOMMouseScroll":R("wheel")?"wheel":"mousewheel"};var F=B},"0558":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
function t(e){return e%100===11||e%10!==1}function n(e,n,r,o){var a=e+" ";switch(r){case"s":return n||o?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return t(e)?a+(n||o?"sekúndur":"sekúndum"):a+"sekúnda";case"m":return n?"mínúta":"mínútu";case"mm":return t(e)?a+(n||o?"mínútur":"mínútum"):n?a+"mínúta":a+"mínútu";case"hh":return t(e)?a+(n||o?"klukkustundir":"klukkustundum"):a+"klukkustund";case"d":return n?"dagur":o?"dag":"degi";case"dd":return t(e)?n?a+"dagar":a+(o?"daga":"dögum"):n?a+"dagur":a+(o?"dag":"degi");case"M":return n?"mánuður":o?"mánuð":"mánuði";case"MM":return t(e)?n?a+"mánuðir":a+(o?"mánuði":"mánuðum"):n?a+"mánuður":a+(o?"mánuð":"mánuði");case"y":return n||o?"ár":"ári";case"yy":return t(e)?a+(n||o?"ár":"árum"):a+(n||o?"ár":"ári")}}var r=e.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:n,ss:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return r}))},"05f2":function(e,t,n){e.exports=n("9361")},"06cf":function(e,t,n){"use strict";var r=n("83ab"),o=n("c65b"),a=n("d1e7"),i=n("5c6c"),s=n("fc6a"),c=n("a04b"),l=n("1a2d"),u=n("0cfb"),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=s(e),t=c(t),u)try{return d(e,t)}catch(n){}if(l(e,t))return i(!o(a.f,e,t),e[t])}},"06fa":function(e,t,n){"use strict";e.exports=function(e){try{return!!e()}catch(t){return!0}}},"0721":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaður",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return t}))},"079e":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"令和",narrow:"㋿",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"平成",narrow:"㍻",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"昭和",narrow:"㍼",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"大正",narrow:"㍽",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"明治",narrow:"㍾",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"西暦",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"紀元前",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(元|\d+)年/,eraYearOrdinalParse:function(e,t){return"元"===t[1]?1:parseInt(t[1]||e,10)},months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/午前|午後/i,isPM:function(e){return"午後"===e},meridiem:function(e,t,n){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(e){return e.week()!==this.week()?"[来週]dddd LT":"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(e){return this.week()!==e.week()?"[先週]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(e,t){switch(t){case"y":return 1===e?"元年":e+"年";case"d":case"D":case"DDD":return e+"日";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}});return t}))},"07fa":function(e,t,n){"use strict";var r=n("50c4");e.exports=function(e){return r(e.length)}},"083a":function(e,t,n){"use strict";var r=n("c44a");n("5145"),e.exports=r},"0898":function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return s}));var r=n("7a23"),o=n("d095"),a=n("7d20");const i="__epPropKey",s=e=>e,c=e=>Object(a["isObject"])(e)&&!!e[i],l=(e,t)=>{if(!Object(a["isObject"])(e)||c(e))return e;const{values:n,required:o,default:s,type:l,validator:u}=e,d=n||u?o=>{let i=!1,c=[];if(n&&(c=Array.from(n),Object(a["hasOwn"])(e,"default")&&c.push(s),i||(i=c.includes(o))),u&&(i||(i=u(o))),!i&&c.length>0){const e=[...new Set(c)].map(e=>JSON.stringify(e)).join(", ");Object(r["warn"])(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${e}], got value ${JSON.stringify(o)}.`)}return i}:void 0,p={type:l,required:!!o,validator:d,[i]:!0};return Object(a["hasOwn"])(e,"default")&&(p.default=s),p},u=e=>Object(o["fromPairs"])(Object.entries(e).map(([e,t])=>[e,l(t,e)]))},"0913":function(e,t,n){"use strict";var r=n("a5eb"),o=n("14df");r({target:"Reflect",stat:!0},{ownKeys:o})},"0931":function(e,t,n){"use strict";(function(e){var r=n("9834"),o=n("8afd");function a(e,t,n){let a;a=o.isRef(n)?{evaluating:n}:n||{};const{lazy:i=!1,evaluating:s,shallow:c=!1,onError:l=r.noop}=a,u=o.ref(!i),d=c?o.shallowRef(t):o.ref(t);let p=0;return o.watchEffect(async t=>{if(!u.value)return;p++;const n=p;let r=!1;s&&Promise.resolve().then(()=>{s.value=!0});try{const o=await e(e=>{t(()=>{s&&(s.value=!1),r||e()})});n===p&&(d.value=o)}catch(o){l(o)}finally{s&&n===p&&(s.value=!1),r=!0}}),i?o.computed(()=>(u.value=!0,d.value)):d}function i(e,t,n,r){let a=o.inject(e);return n&&(a=o.inject(e,n)),r&&(a=o.inject(e,n,r)),"function"===typeof t?o.computed(e=>t(a,e)):o.computed({get:e=>t.get(a,e),set:t.set})}const s=e=>function(...t){return e.apply(this,t.map(e=>o.unref(e)))};function c(e){var t;const n=r.resolveUnref(e);return null!=(t=null==n?void 0:n.$el)?t:n}const l=r.isClient?window:void 0,u=r.isClient?window.document:void 0,d=r.isClient?window.navigator:void 0,p=r.isClient?window.location:void 0;function f(...e){let t,n,a,i;if(r.isString(e[0])||Array.isArray(e[0])?([n,a,i]=e,t=l):[t,n,a,i]=e,!t)return r.noop;Array.isArray(n)||(n=[n]),Array.isArray(a)||(a=[a]);const s=[],u=()=>{s.forEach(e=>e()),s.length=0},d=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),p=o.watch(()=>[c(t),r.resolveUnref(i)],([e,t])=>{u(),e&&s.push(...n.flatMap(n=>a.map(r=>d(e,n,r,t))))},{immediate:!0,flush:"post"}),f=()=>{p(),u()};return r.tryOnScopeDispose(f),f}let h=!1;function m(e,t,n={}){const{window:o=l,ignore:a=[],capture:i=!0,detectIframe:s=!1}=n;if(!o)return;r.isIOS&&!h&&(h=!0,Array.from(o.document.body.children).forEach(e=>e.addEventListener("click",r.noop)));let u=!0;const d=e=>a.some(t=>{if("string"===typeof t)return Array.from(o.document.querySelectorAll(t)).some(t=>t===e.target||e.composedPath().includes(t));{const n=c(t);return n&&(e.target===n||e.composedPath().includes(n))}}),p=n=>{const r=c(e);r&&r!==n.target&&!n.composedPath().includes(r)&&(0===n.detail&&(u=!d(n)),u?t(n):u=!0)},m=[f(o,"click",p,{passive:!0,capture:i}),f(o,"pointerdown",t=>{const n=c(e);n&&(u=!t.composedPath().includes(n)&&!d(t))},{passive:!0}),s&&f(o,"blur",n=>{var r;const a=c(e);"IFRAME"!==(null==(r=o.document.activeElement)?void 0:r.tagName)||(null==a?void 0:a.contains(o.document.activeElement))||t(n)})].filter(Boolean),v=()=>m.forEach(e=>e());return v}var v=Object.defineProperty,g=Object.defineProperties,_=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable,M=(e,t,n)=>t in e?v(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,k=(e,t)=>{for(var n in t||(t={}))b.call(t,n)&&M(e,n,t[n]);if(y)for(var n of y(t))O.call(t,n)&&M(e,n,t[n]);return e},C=(e,t)=>g(e,_(t));const w=e=>"function"===typeof e?e:"string"===typeof e?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0;function I(...e){let t,n,r={};3===e.length?(t=e[0],n=e[1],r=e[2]):2===e.length?"object"===typeof e[1]?(t=!0,n=e[0],r=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:o=l,eventName:a="keydown",passive:i=!1}=r,s=w(t),c=e=>{s(e)&&n(e)};return f(o,a,c,i)}function S(e,t,n={}){return I(e,t,C(k({},n),{eventName:"keydown"}))}function T(e,t,n={}){return I(e,t,C(k({},n),{eventName:"keypress"}))}function E(e,t,n={}){return I(e,t,C(k({},n),{eventName:"keyup"}))}const j=500;function D(e,t,n){var r,a;const i=o.computed(()=>c(e));let s;function l(){s&&(clearTimeout(s),s=void 0)}function u(e){var r,o,a,c;(null==(r=null==n?void 0:n.modifiers)?void 0:r.self)&&e.target!==i.value||(l(),(null==(o=null==n?void 0:n.modifiers)?void 0:o.prevent)&&e.preventDefault(),(null==(a=null==n?void 0:n.modifiers)?void 0:a.stop)&&e.stopPropagation(),s=setTimeout(()=>t(e),null!=(c=null==n?void 0:n.delay)?c:j))}const d={capture:null==(r=null==n?void 0:n.modifiers)?void 0:r.capture,once:null==(a=null==n?void 0:n.modifiers)?void 0:a.once};f(i,"pointerdown",u,d),f(i,"pointerup",l,d),f(i,"pointerleave",l,d)}const L=()=>{const{activeElement:e,body:t}=document;if(!e)return!1;if(e===t)return!1;switch(e.tagName){case"INPUT":case"TEXTAREA":return!0}return e.hasAttribute("contenteditable")},A=({keyCode:e,metaKey:t,ctrlKey:n,altKey:r})=>!(t||n||r)&&(e>=48&&e<=57||e>=96&&e<=105||e>=65&&e<=90);function N(e,t={}){const{document:n=u}=t,r=t=>{!L()&&A(t)&&e(t)};n&&f(n,"keydown",r,{passive:!0})}function x(e,t=null){const n=o.getCurrentInstance();let a=()=>{};const i=o.customRef((r,o)=>(a=o,{get(){var o,a;return r(),null!=(a=null==(o=null==n?void 0:n.proxy)?void 0:o.$refs[e])?a:t},set(){}}));return r.tryOnMounted(a),o.onUpdated(a),i}function R(e={}){var t;const{window:n=l}=e,o=null!=(t=e.document)?t:null==n?void 0:n.document,a=r.computedWithControl(()=>null,()=>null==o?void 0:o.activeElement);return n&&(f(n,"blur",e=>{null===e.relatedTarget&&a.trigger()},!0),f(n,"focus",a.trigger,!0)),a}function P(e,t={}){const{interrupt:n=!0,onError:a=r.noop,onFinished:i=r.noop}=t,s={pending:"pending",rejected:"rejected",fulfilled:"fulfilled"},c=Array.from(new Array(e.length),()=>({state:s.pending,data:null})),l=o.reactive(c),u=o.ref(-1);if(!e||0===e.length)return i(),{activeIndex:u,result:l};function d(e,t){u.value++,l[u.value].data=t,l[u.value].state=e}return e.reduce((t,r)=>t.then(t=>{var o;if((null==(o=l[u.value])?void 0:o.state)!==s.rejected||!n)return r(t).then(t=>(d(s.fulfilled,t),u.value===e.length-1&&i(),t));i()}).catch(e=>(d(s.rejected,e),a(),e)),Promise.resolve()),{activeIndex:u,result:l}}function U(e,t,n){const{immediate:a=!0,delay:i=0,onError:s=r.noop,onSuccess:c=r.noop,resetOnExecute:l=!0,shallow:u=!0,throwError:d}=null!=n?n:{},p=u?o.shallowRef(t):o.ref(t),f=o.ref(!1),h=o.ref(!1),m=o.ref(void 0);async function v(n=0,...o){l&&(p.value=t),m.value=void 0,f.value=!1,h.value=!0,n>0&&await r.promiseTimeout(n);const a="function"===typeof e?e(...o):e;try{const e=await a;p.value=e,f.value=!0,c(e)}catch(i){if(m.value=i,s(i),d)throw m}finally{h.value=!1}return p.value}return a&&v(i),{state:p,isReady:f,isLoading:h,error:m,execute:v}}const V={array:e=>JSON.stringify(e),object:e=>JSON.stringify(e),set:e=>JSON.stringify(Array.from(e)),map:e=>JSON.stringify(Object.fromEntries(e)),null:()=>""};function B(e){return e?e instanceof Map?V.map:e instanceof Set?V.set:Array.isArray(e)?V.array:V.object:V.null}function F(e,t){const n=o.ref(""),a=o.ref();function i(){if(r.isClient)return a.value=new Promise((n,o)=>{try{const a=r.resolveUnref(e);if(null==a)n("");else if("string"===typeof a)n(z(new Blob([a],{type:"text/plain"})));else if(a instanceof Blob)n(z(a));else if(a instanceof ArrayBuffer)n(window.btoa(String.fromCharCode(...new Uint8Array(a))));else if(a instanceof HTMLCanvasElement)n(a.toDataURL(null==t?void 0:t.type,null==t?void 0:t.quality));else if(a instanceof HTMLImageElement){const e=a.cloneNode(!1);e.crossOrigin="Anonymous",G(e).then(()=>{const r=document.createElement("canvas"),o=r.getContext("2d");r.width=e.width,r.height=e.height,o.drawImage(e,0,0,r.width,r.height),n(r.toDataURL(null==t?void 0:t.type,null==t?void 0:t.quality))}).catch(o)}else{if("object"===typeof a){const e=(null==t?void 0:t.serializer)||B(a),r=e(a);return n(z(new Blob([r],{type:"application/json"})))}o(new Error("target is unsupported types"))}}catch(a){o(a)}}),a.value.then(e=>n.value=e),a.value}return o.isRef(e)||r.isFunction(e)?o.watch(e,i,{immediate:!0}):i(),{base64:n,promise:a,execute:i}}function G(e){return new Promise((t,n)=>{e.complete?t():(e.onload=()=>{t()},e.onerror=n)})}function z(e){return new Promise((t,n)=>{const r=new FileReader;r.onload=e=>{t(e.target.result)},r.onerror=n,r.readAsDataURL(e)})}function H(e,t=!1){const n=o.ref(),a=()=>n.value=Boolean(e());return a(),r.tryOnMounted(a,t),n}function Y({navigator:e=d}={}){const t=["chargingchange","chargingtimechange","dischargingtimechange","levelchange"],n=H(()=>e&&"getBattery"in e),r=o.ref(!1),a=o.ref(0),i=o.ref(0),s=o.ref(1);let c;function l(){r.value=this.charging,a.value=this.chargingTime||0,i.value=this.dischargingTime||0,s.value=this.level}return n.value&&e.getBattery().then(e=>{c=e,l.call(c);for(const n of t)f(c,n,l,{passive:!0})}),{isSupported:n,charging:r,chargingTime:a,dischargingTime:i,level:s}}function q(e){let{acceptAllDevices:t=!1}=e||{};const{filters:n,optionalServices:a,navigator:i=d}=e||{},s=H(()=>i&&"bluetooth"in i),c=o.shallowRef(void 0),l=o.shallowRef(null);async function u(){if(s.value){l.value=null,n&&n.length>0&&(t=!1);try{c.value=await(null==i?void 0:i.bluetooth.requestDevice({acceptAllDevices:t,filters:n,optionalServices:a}))}catch(e){l.value=e}}}o.watch(c,()=>{h()});const p=o.ref(),f=o.computed(()=>{var e;return(null==(e=p.value)?void 0:e.connected)||!1});async function h(){if(l.value=null,c.value&&c.value.gatt){c.value.addEventListener("gattserverdisconnected",()=>{});try{p.value=await c.value.gatt.connect()}catch(e){l.value=e}}}return r.tryOnMounted(()=>{var e;c.value&&(null==(e=c.value.gatt)||e.connect())}),r.tryOnScopeDispose(()=>{var e;c.value&&(null==(e=c.value.gatt)||e.disconnect())}),{isSupported:s,isConnected:f,device:c,requestDevice:u,server:p,error:l}}function W(e,t={}){const{window:n=l}=t,a=H(()=>n&&"matchMedia"in n&&"function"===typeof n.matchMedia);let i;const s=o.ref(!1),c=()=>{i&&("removeEventListener"in i?i.removeEventListener("change",u):i.removeListener(u))},u=()=>{a.value&&(c(),i=n.matchMedia(r.resolveRef(e).value),s.value=i.matches,"addEventListener"in i?i.addEventListener("change",u):i.addListener(u))};return o.watchEffect(u),r.tryOnScopeDispose(()=>c()),s}const K={sm:640,md:768,lg:1024,xl:1280,"2xl":1536},$={sm:576,md:768,lg:992,xl:1200,xxl:1400},J={xs:600,sm:960,md:1264,lg:1904},Q={xs:480,sm:576,md:768,lg:992,xl:1200,xxl:1600},X={xs:600,sm:1024,md:1440,lg:1920},Z={mobileS:320,mobileM:375,mobileL:425,tablet:768,laptop:1024,laptopL:1440,desktop4K:2560},ee={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560};var te=Object.defineProperty,ne=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable,ae=(e,t,n)=>t in e?te(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ie=(e,t)=>{for(var n in t||(t={}))re.call(t,n)&&ae(e,n,t[n]);if(ne)for(var n of ne(t))oe.call(t,n)&&ae(e,n,t[n]);return e};function se(e,t={}){function n(t,n){let o=e[t];return null!=n&&(o=r.increaseWithUnit(o,n)),"number"===typeof o&&(o+="px"),o}const{window:o=l}=t;function a(e){return!!o&&o.matchMedia(e).matches}const i=e=>W(`(min-width: ${n(e)})`,t),s=Object.keys(e).reduce((e,t)=>(Object.defineProperty(e,t,{get:()=>i(t),enumerable:!0,configurable:!0}),e),{});return ie({greater(e){return W(`(min-width: ${n(e,.1)})`,t)},greaterOrEqual:i,smaller(e){return W(`(max-width: ${n(e,-.1)})`,t)},smallerOrEqual(e){return W(`(max-width: ${n(e)})`,t)},between(e,r){return W(`(min-width: ${n(e)}) and (max-width: ${n(r,-.1)})`,t)},isGreater(e){return a(`(min-width: ${n(e,.1)})`)},isGreaterOrEqual(e){return a(`(min-width: ${n(e)})`)},isSmaller(e){return a(`(max-width: ${n(e,-.1)})`)},isSmallerOrEqual(e){return a(`(max-width: ${n(e)})`)},isInBetween(e,t){return a(`(min-width: ${n(e)}) and (max-width: ${n(t,-.1)})`)}},s)}const ce=e=>{const{name:t,window:n=l}=e,a=H(()=>n&&"BroadcastChannel"in n),i=o.ref(!1),s=o.ref(),c=o.ref(),u=o.ref(null),d=e=>{s.value&&s.value.postMessage(e)},p=()=>{s.value&&s.value.close(),i.value=!0};return a.value&&r.tryOnMounted(()=>{u.value=null,s.value=new BroadcastChannel(t),s.value.addEventListener("message",e=>{c.value=e.data},{passive:!0}),s.value.addEventListener("messageerror",e=>{u.value=e},{passive:!0}),s.value.addEventListener("close",()=>{i.value=!0})}),r.tryOnScopeDispose(()=>{p()}),{isSupported:a,channel:s,data:c,post:d,close:p,error:u,isClosed:i}};function le({window:e=l}={}){const t=t=>{const{state:n,length:r}=(null==e?void 0:e.history)||{},{hash:o,host:a,hostname:i,href:s,origin:c,pathname:l,port:u,protocol:d,search:p}=(null==e?void 0:e.location)||{};return{trigger:t,state:n,length:r,hash:o,host:a,hostname:i,href:s,origin:c,pathname:l,port:u,protocol:d,search:p}},n=o.ref(t("load"));return e&&(f(e,"popstate",()=>n.value=t("popstate"),{passive:!0}),f(e,"hashchange",()=>n.value=t("hashchange"),{passive:!0})),n}function ue(e,t=((e,t)=>e===t),n){const r=o.ref(e.value);return o.watch(()=>e.value,e=>{t(e,r.value)||(r.value=e)},n),r}function de(e={}){const{navigator:t=d,read:n=!1,source:a,copiedDuring:i=1500,legacy:s=!1}=e,c=["copy","cut"],l=H(()=>t&&"clipboard"in t),u=o.computed(()=>l.value||s),p=o.ref(""),h=o.ref(!1),m=r.useTimeoutFn(()=>h.value=!1,i);function v(){l.value?t.clipboard.readText().then(e=>{p.value=e}):p.value=y()}if(u.value&&n)for(const r of c)f(r,v);async function g(e=r.resolveUnref(a)){u.value&&null!=e&&(l.value?await t.clipboard.writeText(e):_(e),p.value=e,h.value=!0,m.start())}function _(e){const t=document.createElement("textarea");t.value=null!=e?e:"",t.style.position="absolute",t.style.opacity="0",document.body.appendChild(t),t.select(),document.execCommand("copy"),t.remove()}function y(){var e,t,n;return null!=(n=null==(t=null==(e=null==document?void 0:document.getSelection)?void 0:e.call(document))?void 0:t.toString())?n:""}return{isSupported:u,text:p,copied:h,copy:g}}var pe=Object.defineProperty,fe=Object.defineProperties,he=Object.getOwnPropertyDescriptors,me=Object.getOwnPropertySymbols,ve=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,_e=(e,t,n)=>t in e?pe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ye=(e,t)=>{for(var n in t||(t={}))ve.call(t,n)&&_e(e,n,t[n]);if(me)for(var n of me(t))ge.call(t,n)&&_e(e,n,t[n]);return e},be=(e,t)=>fe(e,he(t));function Oe(e){return JSON.parse(JSON.stringify(e))}function Me(e,t={}){const n=o.ref({}),{manual:r,clone:a=Oe,deep:i=!0,immediate:s=!0}=t;function c(){n.value=a(o.unref(e))}return!r&&o.isRef(e)?o.watch(e,c,be(ye({},t),{deep:i,immediate:s})):c(),{cloned:n,sync:c}}const ke="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof e?e:"undefined"!==typeof self?self:{},Ce="__vueuse_ssr_handlers__";ke[Ce]=ke[Ce]||{};const we=ke[Ce];function Ie(e,t){return we[e]||t}function Se(e,t){we[e]=t}function Te(e){return null==e?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":"boolean"===typeof e?"boolean":"string"===typeof e?"string":"object"===typeof e?"object":Number.isNaN(e)?"any":"number"}var Ee=Object.defineProperty,je=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,Le=Object.prototype.propertyIsEnumerable,Ae=(e,t,n)=>t in e?Ee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ne=(e,t)=>{for(var n in t||(t={}))De.call(t,n)&&Ae(e,n,t[n]);if(je)for(var n of je(t))Le.call(t,n)&&Ae(e,n,t[n]);return e};const xe={boolean:{read:e=>"true"===e,write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Re="vueuse-storage";function Pe(e,t,n,a={}){var i;const{flush:s="pre",deep:c=!0,listenToStorageChanges:u=!0,writeDefaults:d=!0,mergeDefaults:p=!1,shallow:h,window:m=l,eventFilter:v,onError:g=(e=>{console.error(e)})}=a,_=(h?o.shallowRef:o.ref)(t);if(!n)try{n=Ie("getDefaultStorage",()=>{var e;return null==(e=l)?void 0:e.localStorage})()}catch(T){g(T)}if(!n)return _;const y=r.resolveUnref(t),b=Te(y),O=null!=(i=a.serializer)?i:xe[b],{pause:M,resume:k}=r.pausableWatch(_,()=>C(_.value),{flush:s,deep:c,eventFilter:v});return m&&u&&(f(m,"storage",S),f(m,Re,I)),S(),_;function C(t){try{if(null==t)n.removeItem(e);else{const r=O.write(t),o=n.getItem(e);o!==r&&(n.setItem(e,r),m&&m.dispatchEvent(new CustomEvent(Re,{detail:{key:e,oldValue:o,newValue:r,storageArea:n}})))}}catch(T){g(T)}}function w(t){const o=t?t.newValue:n.getItem(e);if(null==o)return d&&null!==y&&n.setItem(e,O.write(y)),y;if(!t&&p){const e=O.read(o);return r.isFunction(p)?p(e,y):"object"!==b||Array.isArray(e)?e:Ne(Ne({},y),e)}return"string"!==typeof o?o:O.read(o)}function I(e){S(e.detail)}function S(t){if(!t||t.storageArea===n)if(t&&null==t.key)_.value=y;else if(!t||t.key===e){M();try{_.value=w(t)}catch(T){g(T)}finally{t?o.nextTick(k):k()}}}}function Ue(e){return W("(prefers-color-scheme: dark)",e)}var Ve=Object.defineProperty,Be=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,ze=(e,t,n)=>t in e?Ve(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,He=(e,t)=>{for(var n in t||(t={}))Fe.call(t,n)&&ze(e,n,t[n]);if(Be)for(var n of Be(t))Ge.call(t,n)&&ze(e,n,t[n]);return e};function Ye(e={}){const{selector:t="html",attribute:n="class",initialValue:a="auto",window:i=l,storage:s,storageKey:c="vueuse-color-scheme",listenToStorageChanges:u=!0,storageRef:d,emitAuto:p}=e,f=He({auto:"",light:"light",dark:"dark"},e.modes||{}),h=Ue({window:i}),m=o.computed(()=>h.value?"dark":"light"),v=d||(null==c?o.ref(a):Pe(c,a,s,{window:i,listenToStorageChanges:u})),g=o.computed({get(){return"auto"!==v.value||p?v.value:m.value},set(e){v.value=e}}),_=Ie("updateHTMLAttrs",(e,t,n)=>{const r=null==i?void 0:i.document.querySelector(e);if(r)if("class"===t){const e=n.split(/\s/g);Object.values(f).flatMap(e=>(e||"").split(/\s/g)).filter(Boolean).forEach(t=>{e.includes(t)?r.classList.add(t):r.classList.remove(t)})}else r.setAttribute(t,n)});function y(e){var r;const o="auto"===e?m.value:e;_(t,n,null!=(r=f[o])?r:o)}function b(t){e.onChanged?e.onChanged(t,y):y(t)}return o.watch(g,b,{flush:"post",immediate:!0}),p&&o.watch(m,()=>b(g.value),{flush:"post"}),r.tryOnMounted(()=>b(g.value)),g}function qe(e=o.ref(!1)){const t=r.createEventHook(),n=r.createEventHook(),a=r.createEventHook();let i=r.noop;const s=t=>(a.trigger(t),e.value=!0,new Promise(e=>{i=e})),c=n=>{e.value=!1,t.trigger(n),i({data:n,isCanceled:!1})},l=t=>{e.value=!1,n.trigger(t),i({data:t,isCanceled:!0})};return{isRevealed:o.computed(()=>e.value),reveal:s,confirm:c,cancel:l,onReveal:a.on,onConfirm:t.on,onCancel:n.on}}function We(e,t,{window:n=l,initialValue:a=""}={}){const i=o.ref(a),s=o.computed(()=>{var e;return c(t)||(null==(e=null==n?void 0:n.document)?void 0:e.documentElement)});return o.watch([s,()=>r.resolveUnref(e)],([e,t])=>{var r;if(e&&n){const o=null==(r=n.getComputedStyle(e).getPropertyValue(t))?void 0:r.trim();i.value=o||a}},{immediate:!0}),o.watch(i,t=>{var n;(null==(n=s.value)?void 0:n.style)&&s.value.style.setProperty(r.resolveUnref(e),t)}),i}function Ke(){const e=o.getCurrentInstance(),t=r.computedWithControl(()=>null,()=>e.proxy.$el);return o.onUpdated(t.trigger),o.onMounted(t.trigger),t}function $e(e,t){var n;const r=o.shallowRef(null!=(n=null==t?void 0:t.initialValue)?n:e[0]),a=o.computed({get(){var n;let o=(null==t?void 0:t.getIndexOf)?t.getIndexOf(r.value,e):e.indexOf(r.value);return o<0&&(o=null!=(n=null==t?void 0:t.fallbackIndex)?n:0),o},set(e){i(e)}});function i(t){const n=e.length,o=(t%n+n)%n,a=e[o];return r.value=a,a}function s(e=1){return i(a.value+e)}function c(e=1){return s(e)}function l(e=1){return s(-e)}return{state:r,index:a,next:c,prev:l}}var Je=Object.defineProperty,Qe=Object.defineProperties,Xe=Object.getOwnPropertyDescriptors,Ze=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,nt=(e,t,n)=>t in e?Je(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,rt=(e,t)=>{for(var n in t||(t={}))et.call(t,n)&&nt(e,n,t[n]);if(Ze)for(var n of Ze(t))tt.call(t,n)&&nt(e,n,t[n]);return e},ot=(e,t)=>Qe(e,Xe(t));function at(e={}){const{valueDark:t="dark",valueLight:n="",window:r=l}=e,a=Ye(ot(rt({},e),{onChanged:(t,n)=>{var r;e.onChanged?null==(r=e.onChanged)||r.call(e,"dark"===t):n(t)},modes:{dark:t,light:n}})),i=Ue({window:r}),s=o.computed({get(){return"dark"===a.value},set(e){e===i.value?a.value="auto":a.value=e?"dark":"light"}});return s}const it=e=>e,st=(e,t)=>e.value=t;function ct(e){return e?r.isFunction(e)?e:Oe:it}function lt(e){return e?r.isFunction(e)?e:Oe:it}function ut(e,t={}){const{clone:n=!1,dump:a=ct(n),parse:i=lt(n),setSource:s=st}=t;function c(){return o.markRaw({snapshot:a(e.value),timestamp:r.timestamp()})}const l=o.ref(c()),u=o.ref([]),d=o.ref([]),p=t=>{s(e,i(t.snapshot)),l.value=t},f=()=>{u.value.unshift(l.value),l.value=c(),t.capacity&&u.value.length>t.capacity&&u.value.splice(t.capacity,1/0),d.value.length&&d.value.splice(0,d.value.length)},h=()=>{u.value.splice(0,u.value.length),d.value.splice(0,d.value.length)},m=()=>{const e=u.value.shift();e&&(d.value.unshift(l.value),p(e))},v=()=>{const e=d.value.shift();e&&(u.value.unshift(l.value),p(e))},g=()=>{p(l.value)},_=o.computed(()=>[l.value,...u.value]),y=o.computed(()=>u.value.length>0),b=o.computed(()=>d.value.length>0);return{source:e,undoStack:u,redoStack:d,last:l,history:_,canUndo:y,canRedo:b,clear:h,commit:f,reset:g,undo:m,redo:v}}var dt=Object.defineProperty,pt=Object.defineProperties,ft=Object.getOwnPropertyDescriptors,ht=Object.getOwnPropertySymbols,mt=Object.prototype.hasOwnProperty,vt=Object.prototype.propertyIsEnumerable,gt=(e,t,n)=>t in e?dt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_t=(e,t)=>{for(var n in t||(t={}))mt.call(t,n)&>(e,n,t[n]);if(ht)for(var n of ht(t))vt.call(t,n)&>(e,n,t[n]);return e},yt=(e,t)=>pt(e,ft(t));function bt(e,t={}){const{deep:n=!1,flush:o="pre",eventFilter:a}=t,{eventFilter:i,pause:s,resume:c,isActive:l}=r.pausableFilter(a),{ignoreUpdates:u,ignorePrevAsyncUpdates:d,stop:p}=r.watchIgnorable(e,g,{deep:n,flush:o,eventFilter:i});function f(e,t){d(),u(()=>{e.value=t})}const h=ut(e,yt(_t({},t),{clone:t.clone||n,setSource:f})),{clear:m,commit:v}=h;function g(){d(),v()}function _(e){c(),e&&g()}function y(e){let t=!1;const n=()=>t=!0;u(()=>{e(n)}),t||g()}function b(){p(),m()}return yt(_t({},h),{isTracking:l,pause:s,resume:_,commit:g,batch:y,dispose:b})}var Ot=Object.defineProperty,Mt=Object.defineProperties,kt=Object.getOwnPropertyDescriptors,Ct=Object.getOwnPropertySymbols,wt=Object.prototype.hasOwnProperty,It=Object.prototype.propertyIsEnumerable,St=(e,t,n)=>t in e?Ot(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Tt=(e,t)=>{for(var n in t||(t={}))wt.call(t,n)&&St(e,n,t[n]);if(Ct)for(var n of Ct(t))It.call(t,n)&&St(e,n,t[n]);return e},Et=(e,t)=>Mt(e,kt(t));function jt(e,t={}){const n=t.debounce?r.debounceFilter(t.debounce):void 0,o=bt(e,Et(Tt({},t),{eventFilter:n}));return Tt({},o)}function Dt(e={}){const{window:t=l,eventFilter:n=r.bypassFilter}=e,a=o.ref({x:null,y:null,z:null}),i=o.ref({alpha:null,beta:null,gamma:null}),s=o.ref(0),c=o.ref({x:null,y:null,z:null});if(t){const e=r.createFilterWrapper(n,e=>{a.value=e.acceleration,c.value=e.accelerationIncludingGravity,i.value=e.rotationRate,s.value=e.interval});f(t,"devicemotion",e)}return{acceleration:a,accelerationIncludingGravity:c,rotationRate:i,interval:s}}function Lt(e={}){const{window:t=l}=e,n=H(()=>t&&"DeviceOrientationEvent"in t),r=o.ref(!1),a=o.ref(null),i=o.ref(null),s=o.ref(null);return t&&n.value&&f(t,"deviceorientation",e=>{r.value=e.absolute,a.value=e.alpha,i.value=e.beta,s.value=e.gamma}),{isSupported:n,isAbsolute:r,alpha:a,beta:i,gamma:s}}function At({window:e=l}={}){const t=o.ref(1);if(e){let n,o=function(){t.value=e.devicePixelRatio,a(),n=e.matchMedia(`(resolution: ${t.value}dppx)`),n.addEventListener("change",o,{once:!0})},a=function(){null==n||n.removeEventListener("change",o)};o(),r.tryOnScopeDispose(a)}return{pixelRatio:t}}function Nt(e,t={}){const{controls:n=!1,navigator:a=d}=t,i=H(()=>a&&"permissions"in a);let s;const c="string"===typeof e?{name:e}:e,l=o.ref(),u=()=>{s&&(l.value=s.state)},p=r.createSingletonPromise(async()=>{if(i.value){if(!s)try{s=await a.permissions.query(c),f(s,"change",u),u()}catch(e){l.value="prompt"}return s}});return p(),n?{state:l,isSupported:i,query:p}:l}function xt(e={}){const{navigator:t=d,requestPermissions:n=!1,constraints:r={audio:!0,video:!0},onUpdated:a}=e,i=o.ref([]),s=o.computed(()=>i.value.filter(e=>"videoinput"===e.kind)),c=o.computed(()=>i.value.filter(e=>"audioinput"===e.kind)),l=o.computed(()=>i.value.filter(e=>"audiooutput"===e.kind)),u=H(()=>t&&t.mediaDevices&&t.mediaDevices.enumerateDevices),p=o.ref(!1);async function h(){u.value&&(i.value=await t.mediaDevices.enumerateDevices(),null==a||a(i.value))}async function m(){if(!u.value)return!1;if(p.value)return!0;const{state:e,query:n}=Nt("camera",{controls:!0});if(await n(),"granted"!==e.value){const e=await t.mediaDevices.getUserMedia(r);e.getTracks().forEach(e=>e.stop()),h(),p.value=!0}else p.value=!0;return p.value}return u.value&&(n&&m(),f(t.mediaDevices,"devicechange",h),h()),{devices:i,ensurePermissions:m,permissionGranted:p,videoInputs:s,audioInputs:c,audioOutputs:l,isSupported:u}}function Rt(e={}){var t;const n=o.ref(null!=(t=e.enabled)&&t),r=e.video,a=e.audio,{navigator:i=d}=e,s=H(()=>{var e;return null==(e=null==i?void 0:i.mediaDevices)?void 0:e.getDisplayMedia}),c={audio:a,video:r},l=o.shallowRef();async function u(){if(s.value&&!l.value)return l.value=await i.mediaDevices.getDisplayMedia(c),l.value}async function p(){var e;null==(e=l.value)||e.getTracks().forEach(e=>e.stop()),l.value=void 0}function f(){p(),n.value=!1}async function h(){return await u(),l.value&&(n.value=!0),l.value}return o.watch(n,e=>{e?u():p()},{immediate:!0}),{isSupported:s,stream:l,start:h,stop:f,enabled:n}}function Pt({document:e=u}={}){if(!e)return o.ref("visible");const t=o.ref(e.visibilityState);return f(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var Ut=Object.defineProperty,Vt=Object.defineProperties,Bt=Object.getOwnPropertyDescriptors,Ft=Object.getOwnPropertySymbols,Gt=Object.prototype.hasOwnProperty,zt=Object.prototype.propertyIsEnumerable,Ht=(e,t,n)=>t in e?Ut(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Yt=(e,t)=>{for(var n in t||(t={}))Gt.call(t,n)&&Ht(e,n,t[n]);if(Ft)for(var n of Ft(t))zt.call(t,n)&&Ht(e,n,t[n]);return e},qt=(e,t)=>Vt(e,Bt(t));function Wt(e,t={}){var n,a,i;const s=null!=(n=t.draggingElement)?n:l,c=null!=(a=t.handle)?a:e,u=o.ref(null!=(i=r.resolveUnref(t.initialValue))?i:{x:0,y:0}),d=o.ref(),p=e=>!t.pointerTypes||t.pointerTypes.includes(e.pointerType),h=e=>{r.resolveUnref(t.preventDefault)&&e.preventDefault(),r.resolveUnref(t.stopPropagation)&&e.stopPropagation()},m=n=>{var o;if(!p(n))return;if(r.resolveUnref(t.exact)&&n.target!==r.resolveUnref(e))return;const a=r.resolveUnref(e).getBoundingClientRect(),i={x:n.clientX-a.left,y:n.clientY-a.top};!1!==(null==(o=t.onStart)?void 0:o.call(t,i,n))&&(d.value=i,h(n))},v=e=>{var n;p(e)&&d.value&&(u.value={x:e.clientX-d.value.x,y:e.clientY-d.value.y},null==(n=t.onMove)||n.call(t,u.value,e),h(e))},g=e=>{var n;p(e)&&d.value&&(d.value=void 0,null==(n=t.onEnd)||n.call(t,u.value,e),h(e))};return r.isClient&&(f(c,"pointerdown",m,!0),f(s,"pointermove",v,!0),f(s,"pointerup",g,!0)),qt(Yt({},r.toRefs(u)),{position:u,isDragging:o.computed(()=>!!d.value),style:o.computed(()=>`left:${u.value.x}px;top:${u.value.y}px;`)})}function Kt(e,t){const n=o.ref(!1);let a=0;return r.isClient&&(f(e,"dragenter",e=>{e.preventDefault(),a+=1,n.value=!0}),f(e,"dragover",e=>{e.preventDefault()}),f(e,"dragleave",e=>{e.preventDefault(),a-=1,0===a&&(n.value=!1)}),f(e,"drop",e=>{var r,o;e.preventDefault(),a=0,n.value=!1;const i=Array.from(null!=(o=null==(r=e.dataTransfer)?void 0:r.files)?o:[]);null==t||t(0===i.length?null:i)})),{isOverDropZone:n}}var $t=Object.getOwnPropertySymbols,Jt=Object.prototype.hasOwnProperty,Qt=Object.prototype.propertyIsEnumerable,Xt=(e,t)=>{var n={};for(var r in e)Jt.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&$t)for(var r of $t(e))t.indexOf(r)<0&&Qt.call(e,r)&&(n[r]=e[r]);return n};function Zt(e,t,n={}){const a=n,{window:i=l}=a,s=Xt(a,["window"]);let u;const d=H(()=>i&&"ResizeObserver"in i),p=()=>{u&&(u.disconnect(),u=void 0)},f=o.watch(()=>c(e),e=>{p(),d.value&&i&&e&&(u=new ResizeObserver(t),u.observe(e,s))},{immediate:!0,flush:"post"}),h=()=>{p(),f()};return r.tryOnScopeDispose(h),{isSupported:d,stop:h}}function en(e,t={}){const{reset:n=!0,windowResize:a=!0,windowScroll:i=!0,immediate:s=!0}=t,l=o.ref(0),u=o.ref(0),d=o.ref(0),p=o.ref(0),h=o.ref(0),m=o.ref(0),v=o.ref(0),g=o.ref(0);function _(){const t=c(e);if(!t)return void(n&&(l.value=0,u.value=0,d.value=0,p.value=0,h.value=0,m.value=0,v.value=0,g.value=0));const r=t.getBoundingClientRect();l.value=r.height,u.value=r.bottom,d.value=r.left,p.value=r.right,h.value=r.top,m.value=r.width,v.value=r.x,g.value=r.y}return Zt(e,_),o.watch(()=>c(e),e=>!e&&_()),i&&f("scroll",_,{capture:!0,passive:!0}),a&&f("resize",_,{passive:!0}),r.tryOnMounted(()=>{s&&_()}),{height:l,bottom:u,left:d,right:p,top:h,width:m,x:v,y:g,update:_}}function tn(e,t={}){const{immediate:n=!0,window:a=l}=t,i=o.ref(!1);let s=0,c=null;function u(t){if(!i.value||!a)return;const n=t-s;e({delta:n,timestamp:t}),s=t,c=a.requestAnimationFrame(u)}function d(){!i.value&&a&&(i.value=!0,c=a.requestAnimationFrame(u))}function p(){i.value=!1,null!=c&&a&&(a.cancelAnimationFrame(c),c=null)}return n&&d(),r.tryOnScopeDispose(p),{isActive:o.readonly(i),pause:p,resume:d}}var nn=Object.defineProperty,rn=Object.getOwnPropertySymbols,on=Object.prototype.hasOwnProperty,an=Object.prototype.propertyIsEnumerable,sn=(e,t,n)=>t in e?nn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,cn=(e,t)=>{for(var n in t||(t={}))on.call(t,n)&&sn(e,n,t[n]);if(rn)for(var n of rn(t))an.call(t,n)&&sn(e,n,t[n]);return e};function ln(e){const t=o.ref(null),{x:n,y:a,document:i=u}=e,s=tn(()=>{t.value=(null==i?void 0:i.elementFromPoint(r.resolveUnref(n),r.resolveUnref(a)))||null});return cn({element:t},s)}function un(e,t={}){const n=t?t.delayEnter:0,r=t?t.delayLeave:0,a=o.ref(!1);let i;const s=e=>{const t=e?n:r;i&&(clearTimeout(i),i=void 0),t?i=setTimeout(()=>a.value=e,t):a.value=e};return window?(f(e,"mouseenter",()=>s(!0),{passive:!0}),f(e,"mouseleave",()=>s(!1),{passive:!0}),a):a}function dn(e,t={width:0,height:0},n={}){const{window:r=l,box:a="content-box"}=n,i=o.computed(()=>{var t,n;return null==(n=null==(t=c(e))?void 0:t.namespaceURI)?void 0:n.includes("svg")}),s=o.ref(t.width),u=o.ref(t.height);return Zt(e,([t])=>{const n="border-box"===a?t.borderBoxSize:"content-box"===a?t.contentBoxSize:t.devicePixelContentBoxSize;if(r&&i.value){const t=c(e);if(t){const e=r.getComputedStyle(t);s.value=parseFloat(e.width),u.value=parseFloat(e.height)}}else if(n){const e=Array.isArray(n)?n:[n];s.value=e.reduce((e,{inlineSize:t})=>e+t,0),u.value=e.reduce((e,{blockSize:t})=>e+t,0)}else s.value=t.contentRect.width,u.value=t.contentRect.height},n),o.watch(()=>c(e),e=>{s.value=e?t.width:0,u.value=e?t.height:0}),{width:s,height:u}}function pn(e,{window:t=l,scrollTarget:n}={}){const r=o.ref(!1),a=()=>{if(!t)return;const n=t.document,o=c(e);if(o){const e=o.getBoundingClientRect();r.value=e.top<=(t.innerHeight||n.documentElement.clientHeight)&&e.left<=(t.innerWidth||n.documentElement.clientWidth)&&e.bottom>=0&&e.right>=0}else r.value=!1};return o.watch(()=>c(e),()=>a(),{immediate:!0,flush:"post"}),t&&f(n||t,"scroll",a,{capture:!1,passive:!0}),r}const fn=new Map;function hn(e){const t=o.getCurrentScope();function n(n){var r;const o=fn.get(e)||[];o.push(n),fn.set(e,o);const i=()=>a(n);return null==(r=null==t?void 0:t.cleanups)||r.push(i),i}function r(e){function t(...n){a(t),e(...n)}return n(t)}function a(t){const n=fn.get(e);if(!n)return;const r=n.indexOf(t);r>-1&&n.splice(r,1),n.length||fn.delete(e)}function i(){fn.delete(e)}function s(t,n){var r;null==(r=fn.get(e))||r.forEach(e=>e(t,n))}return{on:n,once:r,off:a,emit:s,reset:i}}function mn(e,t=[],n={}){const a=o.ref(null),i=o.ref(null),s=o.ref("CONNECTING"),c=o.ref(null),l=o.ref(null),{withCredentials:u=!1}=n,d=()=>{c.value&&(c.value.close(),c.value=null,s.value="CLOSED")},p=new EventSource(e,{withCredentials:u});c.value=p,p.onopen=()=>{s.value="OPEN",l.value=null},p.onerror=e=>{s.value="CLOSED",l.value=e},p.onmessage=e=>{a.value=null,i.value=e.data};for(const r of t)f(p,r,e=>{a.value=r,i.value=e.data||null});return r.tryOnScopeDispose(()=>{d()}),{eventSource:c,event:a,data:i,status:s,error:l,close:d}}function vn(e={}){const{initialValue:t=""}=e,n=H(()=>"undefined"!==typeof window&&"EyeDropper"in window),r=o.ref(t);async function a(e){if(!n.value)return;const t=new window.EyeDropper,o=await t.open(e);return r.value=o.sRGBHex,o}return{isSupported:n,sRGBHex:r,open:a}}function gn(e=null,t={}){const{baseUrl:n="",rel:a="icon",document:i=u}=t,s=r.resolveRef(e),c=e=>{null==i||i.head.querySelectorAll(`link[rel*="${a}"]`).forEach(t=>t.href=`${n}${e}`)};return o.watch(s,(e,t)=>{r.isString(e)&&e!==t&&c(e)},{immediate:!0}),s}var _n=Object.defineProperty,yn=Object.defineProperties,bn=Object.getOwnPropertyDescriptors,On=Object.getOwnPropertySymbols,Mn=Object.prototype.hasOwnProperty,kn=Object.prototype.propertyIsEnumerable,Cn=(e,t,n)=>t in e?_n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,wn=(e,t)=>{for(var n in t||(t={}))Mn.call(t,n)&&Cn(e,n,t[n]);if(On)for(var n of On(t))kn.call(t,n)&&Cn(e,n,t[n]);return e},In=(e,t)=>yn(e,bn(t));const Sn={json:"application/json",text:"text/plain"};function Tn(e){return e&&r.containsProp(e,"immediate","refetch","initialData","timeout","beforeFetch","afterFetch","onFetchError","fetch")}function En(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function jn(e){return"undefined"!==typeof Headers&&e instanceof Headers?Object.fromEntries([...e.entries()]):e}function Dn(e,...t){return"overwrite"===e?async e=>{const n=t[t.length-1];return void 0!==n&&await n(e),e}:async e=>(await t.reduce((t,n)=>t.then(async()=>{n&&(e=wn(wn({},e),await n(e)))}),Promise.resolve()),e)}function Ln(e={}){const t=e.combination||"chain",n=e.options||{},a=e.fetchOptions||{};function i(i,...s){const c=o.computed(()=>{const t=r.resolveUnref(e.baseUrl),n=r.resolveUnref(i);return t&&!En(n)?Nn(t,n):n});let l=n,u=a;return s.length>0&&(Tn(s[0])?l=In(wn(wn({},l),s[0]),{beforeFetch:Dn(t,n.beforeFetch,s[0].beforeFetch),afterFetch:Dn(t,n.afterFetch,s[0].afterFetch),onFetchError:Dn(t,n.onFetchError,s[0].onFetchError)}):u=In(wn(wn({},u),s[0]),{headers:wn(wn({},jn(u.headers)||{}),jn(s[0].headers)||{})})),s.length>1&&Tn(s[1])&&(l=In(wn(wn({},l),s[1]),{beforeFetch:Dn(t,n.beforeFetch,s[1].beforeFetch),afterFetch:Dn(t,n.afterFetch,s[1].afterFetch),onFetchError:Dn(t,n.onFetchError,s[1].onFetchError)})),An(c,u,l)}return i}function An(e,...t){var n;const a="function"===typeof AbortController;let i={},s={immediate:!0,refetch:!1,timeout:0};const c={method:"GET",type:"text",payload:void 0};t.length>0&&(Tn(t[0])?s=wn(wn({},s),t[0]):i=t[0]),t.length>1&&Tn(t[1])&&(s=wn(wn({},s),t[1]));const{fetch:u=(null==(n=l)?void 0:n.fetch),initialData:d,timeout:p}=s,f=r.createEventHook(),h=r.createEventHook(),m=r.createEventHook(),v=o.ref(!1),g=o.ref(!1),_=o.ref(!1),y=o.ref(null),b=o.shallowRef(null),O=o.shallowRef(null),M=o.shallowRef(d),k=o.computed(()=>a&&g.value);let C,w;const I=()=>{a&&C&&(C.abort(),C=void 0)},S=e=>{g.value=e,v.value=!e};p&&(w=r.useTimeoutFn(I,p,{immediate:!1}));const T=async(t=!1)=>{var n;S(!0),O.value=null,y.value=null,_.value=!1,a&&(I(),C=new AbortController,C.signal.onabort=()=>_.value=!0,i=In(wn({},i),{signal:C.signal}));const o={method:c.method,headers:{}};if(c.payload){const e=jn(o.headers);c.payloadType&&(e["Content-Type"]=null!=(n=Sn[c.payloadType])?n:c.payloadType);const t=r.resolveUnref(c.payload);o.body="json"===c.payloadType?JSON.stringify(t):t}let l=!1;const d={url:r.resolveUnref(e),options:wn(wn({},o),i),cancel:()=>{l=!0}};if(s.beforeFetch&&Object.assign(d,await s.beforeFetch(d)),l||!u)return S(!1),Promise.resolve(null);let p=null;return w&&w.start(),new Promise((e,n)=>{var r;u(d.url,In(wn(wn({},o),d.options),{headers:wn(wn({},jn(o.headers)),jn(null==(r=d.options)?void 0:r.headers))})).then(async t=>{if(b.value=t,y.value=t.status,p=await t[c.type](),s.afterFetch&&y.value>=200&&y.value<300&&({data:p}=await s.afterFetch({data:p,response:t})),M.value=p,!t.ok)throw new Error(t.statusText);return f.trigger(t),e(t)}).catch(async r=>{let o=r.message||r.name;return s.onFetchError&&({data:p,error:o}=await s.onFetchError({data:p,error:r,response:b.value})),M.value=p,O.value=o,h.trigger(r),t?n(r):e(null)}).finally(()=>{S(!1),w&&w.stop(),m.trigger(null)})})},E=r.resolveRef(s.refetch);o.watch([E,r.resolveRef(e)],([e])=>e&&T(),{deep:!0});const j={isFinished:v,statusCode:y,response:b,error:O,data:M,isFetching:g,canAbort:k,aborted:_,abort:I,execute:T,onFetchResponse:f.on,onFetchError:h.on,onFetchFinally:m.on,get:D("GET"),put:D("PUT"),post:D("POST"),delete:D("DELETE"),patch:D("PATCH"),head:D("HEAD"),options:D("OPTIONS"),json:A("json"),text:A("text"),blob:A("blob"),arrayBuffer:A("arrayBuffer"),formData:A("formData")};function D(e){return(t,n)=>{if(!g.value){c.method=e,c.payload=t,c.payloadType=n,o.isRef(c.payload)&&o.watch([E,r.resolveRef(c.payload)],([e])=>e&&T(),{deep:!0});const a=r.resolveUnref(c.payload);return n||!a||Object.getPrototypeOf(a)!==Object.prototype||a instanceof FormData||(c.payloadType="json"),In(wn({},j),{then(e,t){return L().then(e,t)}})}}}function L(){return new Promise((e,t)=>{r.until(v).toBe(!0).then(()=>e(j)).catch(e=>t(e))})}function A(e){return()=>{if(!g.value)return c.type=e,In(wn({},j),{then(e,t){return L().then(e,t)}})}}return s.immediate&&setTimeout(T,0),In(wn({},j),{then(e,t){return L().then(e,t)}})}function Nn(e,t){return e.endsWith("/")||t.startsWith("/")?`${e}${t}`:`${e}/${t}`}var xn=Object.defineProperty,Rn=Object.getOwnPropertySymbols,Pn=Object.prototype.hasOwnProperty,Un=Object.prototype.propertyIsEnumerable,Vn=(e,t,n)=>t in e?xn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Bn=(e,t)=>{for(var n in t||(t={}))Pn.call(t,n)&&Vn(e,n,t[n]);if(Rn)for(var n of Rn(t))Un.call(t,n)&&Vn(e,n,t[n]);return e};const Fn={multiple:!0,accept:"*"};function Gn(e={}){const{document:t=u}=e,n=o.ref(null);let a;t&&(a=t.createElement("input"),a.type="file",a.onchange=e=>{const t=e.target;n.value=t.files});const i=t=>{if(!a)return;const n=Bn(Bn(Bn({},Fn),e),t);a.multiple=n.multiple,a.accept=n.accept,r.hasOwn(n,"capture")&&(a.capture=n.capture),a.click()},s=()=>{n.value=null,a&&(a.value="")};return{files:o.readonly(n),open:i,reset:s}}var zn=Object.defineProperty,Hn=Object.getOwnPropertySymbols,Yn=Object.prototype.hasOwnProperty,qn=Object.prototype.propertyIsEnumerable,Wn=(e,t,n)=>t in e?zn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Kn=(e,t)=>{for(var n in t||(t={}))Yn.call(t,n)&&Wn(e,n,t[n]);if(Hn)for(var n of Hn(t))qn.call(t,n)&&Wn(e,n,t[n]);return e};function $n(e={}){const{window:t=l,dataType:n="Text"}=o.unref(e),r=t,a=H(()=>r&&"showSaveFilePicker"in r&&"showOpenFilePicker"in r),i=o.ref(),s=o.ref(),c=o.ref(),u=o.computed(()=>{var e,t;return null!=(t=null==(e=c.value)?void 0:e.name)?t:""}),d=o.computed(()=>{var e,t;return null!=(t=null==(e=c.value)?void 0:e.type)?t:""}),p=o.computed(()=>{var e,t;return null!=(t=null==(e=c.value)?void 0:e.size)?t:0}),f=o.computed(()=>{var e,t;return null!=(t=null==(e=c.value)?void 0:e.lastModified)?t:0});async function h(t={}){if(!a.value)return;const[n]=await r.showOpenFilePicker(Kn(Kn({},o.unref(e)),t));i.value=n,await _(),await y()}async function m(t={}){a.value&&(i.value=await r.showSaveFilePicker(Kn(Kn({},o.unref(e)),t)),s.value=void 0,await _(),await y())}async function v(e={}){if(a.value){if(!i.value)return g(e);if(s.value){const e=await i.value.createWritable();await e.write(s.value),await e.close()}await _()}}async function g(t={}){if(a.value){if(i.value=await r.showSaveFilePicker(Kn(Kn({},o.unref(e)),t)),s.value){const e=await i.value.createWritable();await e.write(s.value),await e.close()}await _()}}async function _(){var e;c.value=await(null==(e=i.value)?void 0:e.getFile())}async function y(){var e,t;"Text"===o.unref(n)&&(s.value=await(null==(e=c.value)?void 0:e.text())),"ArrayBuffer"===o.unref(n)&&(s.value=await(null==(t=c.value)?void 0:t.arrayBuffer())),"Blob"===o.unref(n)&&(s.value=c.value)}return o.watch(()=>o.unref(n),y),{isSupported:a,data:s,file:c,fileName:u,fileMIME:d,fileSize:p,fileLastModified:f,open:h,create:m,save:v,saveAs:g,updateData:y}}function Jn(e,t={}){const{initialValue:n=!1}=t,r=o.ref(!1),a=o.computed(()=>c(e));f(a,"focus",()=>r.value=!0),f(a,"blur",()=>r.value=!1);const i=o.computed({get:()=>r.value,set(e){var t,n;!e&&r.value?null==(t=a.value)||t.blur():e&&!r.value&&(null==(n=a.value)||n.focus())}});return o.watch(a,()=>{i.value=n},{immediate:!0,flush:"post"}),{focused:i}}function Qn(e,t={}){const n=R(t),r=o.computed(()=>c(e)),a=o.computed(()=>!(!r.value||!n.value)&&r.value.contains(n.value));return{focused:a}}function Xn(e){var t;const n=o.ref(0);if("undefined"===typeof performance)return n;const r=null!=(t=null==e?void 0:e.every)?t:10;let a=performance.now(),i=0;return tn(()=>{if(i+=1,i>=r){const e=performance.now(),t=e-a;n.value=Math.round(1e3/(t/i)),a=e,i=0}}),n}const Zn=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]];function er(e,t={}){const{document:n=u,autoExit:a=!1}=t,i=e||(null==n?void 0:n.querySelector("html")),s=o.ref(!1);let l=Zn[0];const d=H(()=>{if(!n)return!1;for(const e of Zn)if(e[1]in n)return l=e,!0;return!1}),[p,h,m,,v]=l;async function g(){d.value&&((null==n?void 0:n[m])&&await n[h](),s.value=!1)}async function _(){if(!d.value)return;await g();const e=c(i);e&&(await e[p](),s.value=!0)}async function y(){s.value?await g():await _()}return n&&f(n,v,()=>{s.value=!!(null==n?void 0:n[m])},!1),a&&r.tryOnScopeDispose(g),{isSupported:d,isFullscreen:s,enter:_,exit:g,toggle:y}}function tr(e){return o.computed(()=>e.value?{buttons:{a:e.value.buttons[0],b:e.value.buttons[1],x:e.value.buttons[2],y:e.value.buttons[3]},bumper:{left:e.value.buttons[4],right:e.value.buttons[5]},triggers:{left:e.value.buttons[6],right:e.value.buttons[7]},stick:{left:{horizontal:e.value.axes[0],vertical:e.value.axes[1],button:e.value.buttons[10]},right:{horizontal:e.value.axes[2],vertical:e.value.axes[3],button:e.value.buttons[11]}},dpad:{up:e.value.buttons[12],down:e.value.buttons[13],left:e.value.buttons[14],right:e.value.buttons[15]},back:e.value.buttons[8],start:e.value.buttons[9]}:null)}function nr(e={}){const{navigator:t=d}=e,n=H(()=>t&&"getGamepads"in t),a=o.ref([]),i=r.createEventHook(),s=r.createEventHook(),c=e=>{const t=[],n="vibrationActuator"in e?e.vibrationActuator:null;return n&&t.push(n),e.hapticActuators&&t.push(...e.hapticActuators),{id:e.id,hapticActuators:t,index:e.index,mapping:e.mapping,connected:e.connected,timestamp:e.timestamp,axes:e.axes.map(e=>e),buttons:e.buttons.map(e=>({pressed:e.pressed,touched:e.touched,value:e.value}))}},l=()=>{const e=(null==t?void 0:t.getGamepads())||[];for(let t=0;t<e.length;++t){const n=e[t];if(n){const e=a.value.findIndex(({index:e})=>e===n.index);e>-1&&(a.value[e]=c(n))}}},{isActive:u,pause:p,resume:h}=tn(l),m=e=>{a.value.some(({index:t})=>t===e.index)||(a.value.push(c(e)),i.trigger(e.index)),h()},v=e=>{a.value=a.value.filter(t=>t.index!==e.index),s.trigger(e.index)};return f("gamepadconnected",e=>m(e.gamepad)),f("gamepaddisconnected",e=>v(e.gamepad)),r.tryOnMounted(()=>{const e=(null==t?void 0:t.getGamepads())||[];if(e)for(let t=0;t<e.length;++t){const n=e[t];n&&m(n)}}),p(),{isSupported:n,onConnected:i.on,onDisconnected:s.on,gamepads:a,pause:p,resume:h,isActive:u}}function rr(e={}){const{enableHighAccuracy:t=!0,maximumAge:n=3e4,timeout:a=27e3,navigator:i=d,immediate:s=!0}=e,c=H(()=>i&&"geolocation"in i),l=o.ref(null),u=o.ref(null),p=o.ref({accuracy:0,latitude:1/0,longitude:1/0,altitude:null,altitudeAccuracy:null,heading:null,speed:null});function f(e){l.value=e.timestamp,p.value=e.coords,u.value=null}let h;function m(){c.value&&(h=i.geolocation.watchPosition(f,e=>u.value=e,{enableHighAccuracy:t,maximumAge:n,timeout:a}))}function v(){h&&i&&i.geolocation.clearWatch(h)}return s&&m(),r.tryOnScopeDispose(()=>{v()}),{isSupported:c,coords:p,locatedAt:l,error:u,resume:m,pause:v}}const or=["mousemove","mousedown","resize","keydown","touchstart","wheel"],ar=6e4;function ir(e=ar,t={}){const{initialState:n=!1,listenForVisibilityChange:a=!0,events:i=or,window:s=l,eventFilter:c=r.throttleFilter(50)}=t,u=o.ref(n),d=o.ref(r.timestamp());let p;const h=r.createFilterWrapper(c,()=>{u.value=!1,d.value=r.timestamp(),clearTimeout(p),p=setTimeout(()=>u.value=!0,e)});if(s){const e=s.document;for(const t of i)f(s,t,h,{passive:!0});a&&f(e,"visibilitychange",()=>{e.hidden||h()})}return p=setTimeout(()=>u.value=!0,e),{idle:u,lastActive:d}}var sr=Object.defineProperty,cr=Object.getOwnPropertySymbols,lr=Object.prototype.hasOwnProperty,ur=Object.prototype.propertyIsEnumerable,dr=(e,t,n)=>t in e?sr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,pr=(e,t)=>{for(var n in t||(t={}))lr.call(t,n)&&dr(e,n,t[n]);if(cr)for(var n of cr(t))ur.call(t,n)&&dr(e,n,t[n]);return e};async function fr(e){return new Promise((t,n)=>{const r=new Image,{src:o,srcset:a,sizes:i}=e;r.src=o,a&&(r.srcset=a),i&&(r.sizes=i),r.onload=()=>t(r),r.onerror=n})}const hr=(e,t={})=>{const n=U(()=>fr(r.resolveUnref(e)),void 0,pr({resetOnExecute:!0},t));return o.watch(()=>r.resolveUnref(e),()=>n.execute(t.delay),{deep:!0}),n},mr=1;function vr(e,t={}){const{throttle:n=0,idle:a=200,onStop:i=r.noop,onScroll:s=r.noop,offset:c={left:0,right:0,top:0,bottom:0},eventListenerOptions:l={capture:!1,passive:!0},behavior:u="auto"}=t,d=o.ref(0),p=o.ref(0),h=o.computed({get(){return d.value},set(e){v(e,void 0)}}),m=o.computed({get(){return p.value},set(e){v(void 0,e)}});function v(t,n){var o,a,i;const s=r.resolveUnref(e);s&&(null==(i=s instanceof Document?document.body:s)||i.scrollTo({top:null!=(o=r.resolveUnref(n))?o:m.value,left:null!=(a=r.resolveUnref(t))?a:h.value,behavior:r.resolveUnref(u)}))}const g=o.ref(!1),_=o.reactive({left:!0,right:!1,top:!0,bottom:!1}),y=o.reactive({left:!1,right:!1,top:!1,bottom:!1}),b=e=>{g.value&&(g.value=!1,y.left=!1,y.right=!1,y.top=!1,y.bottom=!1,i(e))},O=r.useDebounceFn(b,n+a),M=e=>{const t=e.target===document?e.target.documentElement:e.target,n=t.scrollLeft;y.left=n<d.value,y.right=n>p.value,_.left=n<=0+(c.left||0),_.right=n+t.clientWidth>=t.scrollWidth-(c.right||0)-mr,d.value=n;let r=t.scrollTop;e.target!==document||r||(r=document.body.scrollTop),y.top=r<p.value,y.bottom=r>p.value,_.top=r<=0+(c.top||0),_.bottom=r+t.clientHeight>=t.scrollHeight-(c.bottom||0)-mr,p.value=r,g.value=!0,O(e),s(e)};return f(e,"scroll",n?r.useThrottleFn(M,n,!0,!1):M,l),f(e,"scrollend",b,l),{x:h,y:m,isScrolling:g,arrivedState:_,directions:y}}var gr=Object.defineProperty,_r=Object.defineProperties,yr=Object.getOwnPropertyDescriptors,br=Object.getOwnPropertySymbols,Or=Object.prototype.hasOwnProperty,Mr=Object.prototype.propertyIsEnumerable,kr=(e,t,n)=>t in e?gr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Cr=(e,t)=>{for(var n in t||(t={}))Or.call(t,n)&&kr(e,n,t[n]);if(br)for(var n of br(t))Mr.call(t,n)&&kr(e,n,t[n]);return e},wr=(e,t)=>_r(e,yr(t));function Ir(e,t,n={}){var a,i;const s=null!=(a=n.direction)?a:"bottom",c=o.reactive(vr(e,wr(Cr({},n),{offset:Cr({[s]:null!=(i=n.distance)?i:0},n.offset)})));o.watch(()=>c.arrivedState[s],async a=>{var i,s;if(a){const a=r.resolveUnref(e),l={height:null!=(i=null==a?void 0:a.scrollHeight)?i:0,width:null!=(s=null==a?void 0:a.scrollWidth)?s:0};await t(c),n.preserveScrollPosition&&a&&o.nextTick(()=>{a.scrollTo({top:a.scrollHeight-l.height,left:a.scrollWidth-l.width})})}})}function Sr(e,t,n={}){const{root:a,rootMargin:i="0px",threshold:s=.1,window:u=l}=n,d=H(()=>u&&"IntersectionObserver"in u);let p=r.noop;const f=d.value?o.watch(()=>({el:c(e),root:c(a)}),({el:e,root:n})=>{if(p(),!e)return;const o=new IntersectionObserver(t,{root:n,rootMargin:i,threshold:s});o.observe(e),p=()=>{o.disconnect(),p=r.noop}},{immediate:!0,flush:"post"}):r.noop,h=()=>{p(),f()};return r.tryOnScopeDispose(h),{isSupported:d,stop:h}}const Tr=["mousedown","mouseup","keydown","keyup"];function Er(e,t={}){const{events:n=Tr,document:r=u,initial:a=null}=t,i=o.ref(a);return r&&n.forEach(t=>{f(r,t,t=>{"function"===typeof t.getModifierState&&(i.value=t.getModifierState(e))})}),i}function jr(e,t,n={}){const{window:r=l}=n;return Pe(e,t,null==r?void 0:r.localStorage,n)}const Dr={ctrl:"control",command:"meta",cmd:"meta",option:"alt",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright"};function Lr(e={}){const{reactive:t=!1,target:n=l,aliasMap:a=Dr,passive:i=!0,onEventFired:s=r.noop}=e,c=o.reactive(new Set),u={toJSON(){return{}},current:c},d=t?o.reactive(u):u,p=new Set,h=new Set;function m(e,n){e in d&&(t?d[e]=n:d[e].value=n)}function v(){c.clear();for(const e of h)m(e,!1)}function g(e,t){var n,r;const o=null==(n=e.key)?void 0:n.toLowerCase(),a=null==(r=e.code)?void 0:r.toLowerCase(),i=[a,o].filter(Boolean);o&&(t?c.add(o):c.delete(o));for(const s of i)h.add(s),m(s,t);"meta"!==o||t?"function"===typeof e.getModifierState&&e.getModifierState("Meta")&&t&&[...c,...i].forEach(e=>p.add(e)):(p.forEach(e=>{c.delete(e),m(e,!1)}),p.clear())}f(n,"keydown",e=>(g(e,!0),s(e)),{passive:i}),f(n,"keyup",e=>(g(e,!1),s(e)),{passive:i}),f("blur",v,{passive:!0}),f("focus",v,{passive:!0});const _=new Proxy(d,{get(e,n,r){if("string"!==typeof n)return Reflect.get(e,n,r);if(n=n.toLowerCase(),n in a&&(n=a[n]),!(n in d))if(/[+_-]/.test(n)){const e=n.split(/[+_-]/g).map(e=>e.trim());d[n]=o.computed(()=>e.every(e=>o.unref(_[e])))}else d[n]=o.ref(!1);const i=Reflect.get(e,n,r);return t?o.unref(i):i}});return _}var Ar=Object.defineProperty,Nr=Object.getOwnPropertySymbols,xr=Object.prototype.hasOwnProperty,Rr=Object.prototype.propertyIsEnumerable,Pr=(e,t,n)=>t in e?Ar(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ur=(e,t)=>{for(var n in t||(t={}))xr.call(t,n)&&Pr(e,n,t[n]);if(Nr)for(var n of Nr(t))Rr.call(t,n)&&Pr(e,n,t[n]);return e};function Vr(e,t){r.resolveUnref(e)&&t(r.resolveUnref(e))}function Br(e){let t=[];for(let n=0;n<e.length;++n)t=[...t,[e.start(n),e.end(n)]];return t}function Fr(e){return Array.from(e).map(({label:e,kind:t,language:n,mode:r,activeCues:o,cues:a,inBandMetadataTrackDispatchType:i},s)=>({id:s,label:e,kind:t,language:n,mode:r,activeCues:o,cues:a,inBandMetadataTrackDispatchType:i}))}const Gr={src:"",tracks:[]};function zr(e,t={}){t=Ur(Ur({},Gr),t);const{document:n=u}=t,a=o.ref(0),i=o.ref(0),s=o.ref(!1),c=o.ref(1),l=o.ref(!1),d=o.ref(!1),p=o.ref(!1),h=o.ref(1),m=o.ref(!1),v=o.ref([]),g=o.ref([]),_=o.ref(-1),y=o.ref(!1),b=o.ref(!1),O=n&&"pictureInPictureEnabled"in n,M=r.createEventHook(),k=t=>{Vr(e,e=>{if(t){const n=r.isNumber(t)?t:t.id;e.textTracks[n].mode="disabled"}else for(let t=0;t<e.textTracks.length;++t)e.textTracks[t].mode="disabled";_.value=-1})},C=(t,n=!0)=>{Vr(e,e=>{const o=r.isNumber(t)?t:t.id;n&&k(),e.textTracks[o].mode="showing",_.value=o})},w=()=>new Promise((t,r)=>{Vr(e,async e=>{O&&(y.value?n.exitPictureInPicture().then(t).catch(r):e.requestPictureInPicture().then(t).catch(r))})});o.watchEffect(()=>{if(!n)return;const o=r.resolveUnref(e);if(!o)return;const a=r.resolveUnref(t.src);let i=[];a&&(r.isString(a)?i=[{src:a}]:Array.isArray(a)?i=a:r.isObject(a)&&(i=[a]),o.querySelectorAll("source").forEach(e=>{e.removeEventListener("error",M.trigger),e.remove()}),i.forEach(({src:e,type:t})=>{const r=n.createElement("source");r.setAttribute("src",e),r.setAttribute("type",t||""),r.addEventListener("error",M.trigger),o.appendChild(r)}),o.load())}),r.tryOnScopeDispose(()=>{const t=r.resolveUnref(e);t&&t.querySelectorAll("source").forEach(e=>e.removeEventListener("error",M.trigger))}),o.watch(c,t=>{const n=r.resolveUnref(e);n&&(n.volume=t)}),o.watch(b,t=>{const n=r.resolveUnref(e);n&&(n.muted=t)}),o.watch(h,t=>{const n=r.resolveUnref(e);n&&(n.playbackRate=t)}),o.watchEffect(()=>{if(!n)return;const o=r.resolveUnref(t.tracks),a=r.resolveUnref(e);o&&o.length&&a&&(a.querySelectorAll("track").forEach(e=>e.remove()),o.forEach(({default:e,kind:t,label:r,src:o,srcLang:i},s)=>{const c=n.createElement("track");c.default=e||!1,c.kind=t,c.label=r,c.src=o,c.srclang=i,c.default&&(_.value=s),a.appendChild(c)}))});const{ignoreUpdates:I}=r.watchIgnorable(a,t=>{const n=r.resolveUnref(e);n&&(n.currentTime=t)}),{ignoreUpdates:S}=r.watchIgnorable(p,t=>{const n=r.resolveUnref(e);n&&(t?n.play():n.pause())});f(e,"timeupdate",()=>I(()=>a.value=r.resolveUnref(e).currentTime)),f(e,"durationchange",()=>i.value=r.resolveUnref(e).duration),f(e,"progress",()=>v.value=Br(r.resolveUnref(e).buffered)),f(e,"seeking",()=>s.value=!0),f(e,"seeked",()=>s.value=!1),f(e,"waiting",()=>l.value=!0),f(e,"playing",()=>{l.value=!1,d.value=!1}),f(e,"ratechange",()=>h.value=r.resolveUnref(e).playbackRate),f(e,"stalled",()=>m.value=!0),f(e,"ended",()=>d.value=!0),f(e,"pause",()=>S(()=>p.value=!1)),f(e,"play",()=>S(()=>p.value=!0)),f(e,"enterpictureinpicture",()=>y.value=!0),f(e,"leavepictureinpicture",()=>y.value=!1),f(e,"volumechange",()=>{const t=r.resolveUnref(e);t&&(c.value=t.volume,b.value=t.muted)});const T=[],E=o.watch([e],()=>{const t=r.resolveUnref(e);t&&(E(),T[0]=f(t.textTracks,"addtrack",()=>g.value=Fr(t.textTracks)),T[1]=f(t.textTracks,"removetrack",()=>g.value=Fr(t.textTracks)),T[2]=f(t.textTracks,"change",()=>g.value=Fr(t.textTracks)))});return r.tryOnScopeDispose(()=>T.forEach(e=>e())),{currentTime:a,duration:i,waiting:l,seeking:s,ended:d,stalled:m,buffered:v,playing:p,rate:h,volume:c,muted:b,tracks:g,selectedTrack:_,enableTrack:C,disableTrack:k,supportsPictureInPicture:O,togglePictureInPicture:w,isPictureInPicture:y,onSourceError:M.on}}const Hr=()=>{const e=o.reactive({});return{get:t=>e[t],set:(t,n)=>o.set(e,t,n),has:t=>r.hasOwn(e,t),delete:t=>o.del(e,t),clear:()=>{Object.keys(e).forEach(t=>{o.del(e,t)})}}};function Yr(e,t){const n=()=>(null==t?void 0:t.cache)?o.reactive(t.cache):o.isVue2?Hr():o.reactive(new Map),r=n(),a=(...e)=>(null==t?void 0:t.getKey)?t.getKey(...e):JSON.stringify(e),i=(t,...n)=>(r.set(t,e(...n)),r.get(t)),s=(...e)=>i(a(...e),...e),c=(...e)=>{r.delete(a(...e))},l=()=>{r.clear()},u=(...e)=>{const t=a(...e);return r.has(t)?r.get(t):i(t,...e)};return u.load=s,u.delete=c,u.clear=l,u.generateKey=a,u.cache=r,u}function qr(e={}){const t=o.ref(),n=H(()=>"undefined"!==typeof performance&&"memory"in performance);if(n.value){const{interval:n=1e3}=e;r.useIntervalFn(()=>{t.value=performance.memory},n,{immediate:e.immediate,immediateCallback:e.immediateCallback})}return{isSupported:n,memory:t}}function Wr(){const e=o.ref(!1);return o.onMounted(()=>{e.value=!0}),e}function Kr(e={}){const{type:t="page",touch:n=!0,resetOnTouchEnds:r=!1,initialValue:a={x:0,y:0},window:i=l,eventFilter:s}=e,c=o.ref(a.x),u=o.ref(a.y),d=o.ref(null),p=e=>{"page"===t?(c.value=e.pageX,u.value=e.pageY):"client"===t?(c.value=e.clientX,u.value=e.clientY):"movement"===t&&(c.value=e.movementX,u.value=e.movementY),d.value="mouse"},h=()=>{c.value=a.x,u.value=a.y},m=e=>{if(e.touches.length>0){const n=e.touches[0];"page"===t?(c.value=n.pageX,u.value=n.pageY):"client"===t&&(c.value=n.clientX,u.value=n.clientY),d.value="touch"}},v=e=>void 0===s?p(e):s(()=>p(e),{}),g=e=>void 0===s?m(e):s(()=>m(e),{});return i&&(f(i,"mousemove",v,{passive:!0}),f(i,"dragover",v,{passive:!0}),n&&"movement"!==t&&(f(i,"touchstart",g,{passive:!0}),f(i,"touchmove",g,{passive:!0}),r&&f(i,"touchend",h,{passive:!0}))),{x:c,y:u,sourceType:d}}function $r(e,t={}){const{handleOutside:n=!0,window:r=l}=t,{x:a,y:i,sourceType:s}=Kr(t),u=o.ref(null!=e?e:null==r?void 0:r.document.body),d=o.ref(0),p=o.ref(0),h=o.ref(0),m=o.ref(0),v=o.ref(0),g=o.ref(0),_=o.ref(!0);let y=()=>{};return r&&(y=o.watch([u,a,i],()=>{const e=c(u);if(!e)return;const{left:t,top:o,width:s,height:l}=e.getBoundingClientRect();h.value=t+r.pageXOffset,m.value=o+r.pageYOffset,v.value=l,g.value=s;const f=a.value-h.value,y=i.value-m.value;_.value=0===s||0===l||f<0||y<0||f>s||y>l,!n&&_.value||(d.value=f,p.value=y)},{immediate:!0}),f(document,"mouseleave",()=>{_.value=!0})),{x:a,y:i,sourceType:s,elementX:d,elementY:p,elementPositionX:h,elementPositionY:m,elementHeight:v,elementWidth:g,isOutside:_,stop:y}}function Jr(e={}){const{touch:t=!0,drag:n=!0,initialValue:r=!1,window:a=l}=e,i=o.ref(r),s=o.ref(null);if(!a)return{pressed:i,sourceType:s};const u=e=>()=>{i.value=!0,s.value=e},d=()=>{i.value=!1,s.value=null},p=o.computed(()=>c(e.target)||a);return f(p,"mousedown",u("mouse"),{passive:!0}),f(a,"mouseleave",d,{passive:!0}),f(a,"mouseup",d,{passive:!0}),n&&(f(p,"dragstart",u("mouse"),{passive:!0}),f(a,"drop",d,{passive:!0}),f(a,"dragend",d,{passive:!0})),t&&(f(p,"touchstart",u("touch"),{passive:!0}),f(a,"touchend",d,{passive:!0}),f(a,"touchcancel",d,{passive:!0})),{pressed:i,sourceType:s}}var Qr=Object.getOwnPropertySymbols,Xr=Object.prototype.hasOwnProperty,Zr=Object.prototype.propertyIsEnumerable,eo=(e,t)=>{var n={};for(var r in e)Xr.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Qr)for(var r of Qr(e))t.indexOf(r)<0&&Zr.call(e,r)&&(n[r]=e[r]);return n};function to(e,t,n={}){const a=n,{window:i=l}=a,s=eo(a,["window"]);let u;const d=H(()=>i&&"MutationObserver"in i),p=()=>{u&&(u.disconnect(),u=void 0)},f=o.watch(()=>c(e),e=>{p(),d.value&&i&&e&&(u=new MutationObserver(t),u.observe(e,s))},{immediate:!0}),h=()=>{p(),f()};return r.tryOnScopeDispose(h),{isSupported:d,stop:h}}const no=(e={})=>{const{window:t=l}=e,n=null==t?void 0:t.navigator,r=H(()=>n&&"language"in n),a=o.ref(null==n?void 0:n.language);return f(t,"languagechange",()=>{n&&(a.value=n.language)}),{isSupported:r,language:a}};function ro(e={}){const{window:t=l}=e,n=null==t?void 0:t.navigator,r=H(()=>n&&"connection"in n),a=o.ref(!0),i=o.ref(!1),s=o.ref(void 0),c=o.ref(void 0),u=o.ref(void 0),d=o.ref(void 0),p=o.ref(void 0),h=o.ref(void 0),m=o.ref("unknown"),v=r.value&&n.connection;function g(){n&&(a.value=n.onLine,s.value=a.value?void 0:Date.now(),c.value=a.value?Date.now():void 0,v&&(u.value=v.downlink,d.value=v.downlinkMax,h.value=v.effectiveType,p.value=v.rtt,i.value=v.saveData,m.value=v.type))}return t&&(f(t,"offline",()=>{a.value=!1,s.value=Date.now()}),f(t,"online",()=>{a.value=!0,c.value=Date.now()})),v&&f(v,"change",g,!1),g(),{isSupported:r,isOnline:a,saveData:i,offlineAt:s,onlineAt:c,downlink:u,downlinkMax:d,effectiveType:h,rtt:p,type:m}}var oo=Object.defineProperty,ao=Object.getOwnPropertySymbols,io=Object.prototype.hasOwnProperty,so=Object.prototype.propertyIsEnumerable,co=(e,t,n)=>t in e?oo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,lo=(e,t)=>{for(var n in t||(t={}))io.call(t,n)&&co(e,n,t[n]);if(ao)for(var n of ao(t))so.call(t,n)&&co(e,n,t[n]);return e};function uo(e={}){const{controls:t=!1,interval:n="requestAnimationFrame"}=e,a=o.ref(new Date),i=()=>a.value=new Date,s="requestAnimationFrame"===n?tn(i,{immediate:!0}):r.useIntervalFn(i,n,{immediate:!0});return t?lo({now:a},s):a}function po(e){const t=o.ref(),n=()=>{t.value&&URL.revokeObjectURL(t.value),t.value=void 0};return o.watch(()=>o.unref(e),e=>{n(),e&&(t.value=URL.createObjectURL(e))},{immediate:!0}),r.tryOnScopeDispose(n),o.readonly(t)}function fo(e,t,n){if(r.isFunction(e)||o.isReadonly(e))return o.computed(()=>r.clamp(r.resolveUnref(e),r.resolveUnref(t),r.resolveUnref(n)));const a=o.ref(e);return o.computed({get(){return a.value=r.clamp(a.value,r.resolveUnref(t),r.resolveUnref(n))},set(e){a.value=r.clamp(e,r.resolveUnref(t),r.resolveUnref(n))}})}function ho(e){const{total:t=1/0,pageSize:n=10,page:a=1,onPageChange:i=r.noop,onPageSizeChange:s=r.noop,onPageCountChange:c=r.noop}=e,l=fo(n,1,1/0),u=o.computed(()=>Math.max(1,Math.ceil(o.unref(t)/o.unref(l)))),d=fo(a,1,u),p=o.computed(()=>1===d.value),f=o.computed(()=>d.value===u.value);function h(){d.value--}function m(){d.value++}o.isRef(a)&&r.syncRef(a,d),o.isRef(n)&&r.syncRef(n,l);const v={currentPage:d,currentPageSize:l,pageCount:u,isFirstPage:p,isLastPage:f,prev:h,next:m};return o.watch(d,()=>{i(o.reactive(v))}),o.watch(l,()=>{s(o.reactive(v))}),o.watch(u,()=>{c(o.reactive(v))}),v}function mo(e={}){const{isOnline:t}=ro(e);return t}function vo(e={}){const{window:t=l}=e,n=o.ref(!1),r=e=>{if(!t)return;e=e||t.event;const r=e.relatedTarget||e.toElement;n.value=!r};return t&&(f(t,"mouseout",r,{passive:!0}),f(t.document,"mouseleave",r,{passive:!0}),f(t.document,"mouseenter",r,{passive:!0})),n}function go(e,t={}){const{deviceOrientationTiltAdjust:n=(e=>e),deviceOrientationRollAdjust:r=(e=>e),mouseTiltAdjust:a=(e=>e),mouseRollAdjust:i=(e=>e),window:s=l}=t,c=o.reactive(Lt({window:s})),{elementX:u,elementY:d,elementWidth:p,elementHeight:f}=$r(e,{handleOutside:!1,window:s}),h=o.computed(()=>c.isSupported&&(null!=c.alpha&&0!==c.alpha||null!=c.gamma&&0!==c.gamma)?"deviceOrientation":"mouse"),m=o.computed(()=>{if("deviceOrientation"===h.value){const e=-c.beta/90;return r(e)}{const e=-(d.value-f.value/2)/f.value;return i(e)}}),v=o.computed(()=>{if("deviceOrientation"===h.value){const e=c.gamma/90;return n(e)}{const e=(u.value-p.value/2)/p.value;return a(e)}});return{roll:m,tilt:v,source:h}}var _o=Object.defineProperty,yo=Object.defineProperties,bo=Object.getOwnPropertyDescriptors,Oo=Object.getOwnPropertySymbols,Mo=Object.prototype.hasOwnProperty,ko=Object.prototype.propertyIsEnumerable,Co=(e,t,n)=>t in e?_o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,wo=(e,t)=>{for(var n in t||(t={}))Mo.call(t,n)&&Co(e,n,t[n]);if(Oo)for(var n of Oo(t))ko.call(t,n)&&Co(e,n,t[n]);return e},Io=(e,t)=>yo(e,bo(t));const So={x:0,y:0,pointerId:0,pressure:0,tiltX:0,tiltY:0,width:0,height:0,twist:0,pointerType:null},To=Object.keys(So);function Eo(e={}){const{target:t=l}=e,n=o.ref(!1),a=o.ref(e.initialValue||{});Object.assign(a.value,So,a.value);const i=t=>{n.value=!0,e.pointerTypes&&!e.pointerTypes.includes(t.pointerType)||(a.value=r.objectPick(t,To,!1))};return t&&(f(t,"pointerdown",i,{passive:!0}),f(t,"pointermove",i,{passive:!0}),f(t,"pointerleave",()=>n.value=!1,{passive:!0})),Io(wo({},r.toRefs(a)),{isInside:n})}function jo(e,t={}){const{document:n=u,pointerLockOptions:a}=t,i=H(()=>n&&"pointerLockElement"in n),s=o.ref(),l=o.ref();let d;async function p(t,n){var o;if(!i.value)throw new Error("Pointer Lock API is not supported by your browser.");if(l.value=t instanceof Event?t.currentTarget:null,d=t instanceof Event?null!=(o=c(e))?o:l.value:c(t),!d)throw new Error("Target element undefined.");return d.requestPointerLock(null!=n?n:a),await r.until(s).toBe(d)}async function h(){return!!s.value&&(n.exitPointerLock(),await r.until(s).toBeNull(),!0)}return i.value&&(f(n,"pointerlockchange",()=>{var e;const t=null!=(e=n.pointerLockElement)?e:s.value;d&&t===d&&(s.value=n.pointerLockElement,s.value||(d=l.value=null))}),f(n,"pointerlockerror",()=>{var e;const t=null!=(e=n.pointerLockElement)?e:s.value;if(d&&t===d){const e=n.pointerLockElement?"release":"acquire";throw new Error(`Failed to ${e} pointer lock.`)}})),{isSupported:i,element:s,triggerElement:l,lock:p,unlock:h}}function Do(e,n={}){const{threshold:r=50,onSwipe:a,onSwipeEnd:i,onSwipeStart:s,passive:c=!0,window:u=l}=n,d=o.reactive({x:0,y:0}),p=o.reactive({x:0,y:0}),h=o.computed(()=>d.x-p.x),m=o.computed(()=>d.y-p.y),{max:v,abs:g}=Math,_=o.computed(()=>v(g(h.value),g(m.value))>=r),y=o.ref(!1),b=o.computed(()=>_.value?g(h.value)>g(m.value)?h.value>0?t.SwipeDirection.LEFT:t.SwipeDirection.RIGHT:m.value>0?t.SwipeDirection.UP:t.SwipeDirection.DOWN:t.SwipeDirection.NONE),O=e=>[e.touches[0].clientX,e.touches[0].clientY],M=(e,t)=>{d.x=e,d.y=t},k=(e,t)=>{p.x=e,p.y=t};let C;const w=Lo(null==u?void 0:u.document);C=c?w?{passive:!0}:{capture:!1}:w?{passive:!1,capture:!0}:{capture:!0};const I=e=>{y.value&&(null==i||i(e,b.value)),y.value=!1},S=[f(e,"touchstart",e=>{C.capture&&!C.passive&&e.preventDefault();const[t,n]=O(e);M(t,n),k(t,n),null==s||s(e)},C),f(e,"touchmove",e=>{const[t,n]=O(e);k(t,n),!y.value&&_.value&&(y.value=!0),y.value&&(null==a||a(e))},C),f(e,"touchend",I,C),f(e,"touchcancel",I,C)],T=()=>S.forEach(e=>e());return{isPassiveEventSupported:w,isSwiping:y,direction:b,coordsStart:d,coordsEnd:p,lengthX:h,lengthY:m,stop:T}}function Lo(e){if(!e)return!1;let t=!1;const n={get passive(){return t=!0,!1}};return e.addEventListener("x",r.noop,n),e.removeEventListener("x",r.noop),t}function Ao(e,n={}){const a=r.resolveRef(e),{threshold:i=50,onSwipe:s,onSwipeEnd:c,onSwipeStart:l}=n,u=o.reactive({x:0,y:0}),d=(e,t)=>{u.x=e,u.y=t},p=o.reactive({x:0,y:0}),h=(e,t)=>{p.x=e,p.y=t},m=o.computed(()=>u.x-p.x),v=o.computed(()=>u.y-p.y),{max:g,abs:_}=Math,y=o.computed(()=>g(_(m.value),_(v.value))>=i),b=o.ref(!1),O=o.ref(!1),M=o.computed(()=>y.value?_(m.value)>_(v.value)?m.value>0?t.SwipeDirection.LEFT:t.SwipeDirection.RIGHT:v.value>0?t.SwipeDirection.UP:t.SwipeDirection.DOWN:t.SwipeDirection.NONE),k=e=>{var t,r,o;const a=0===e.buttons,i=1===e.buttons;return null==(o=null!=(r=null==(t=n.pointerTypes)?void 0:t.includes(e.pointerType))?r:a||i)||o},C=[f(e,"pointerdown",e=>{var t,n;if(!k(e))return;O.value=!0,null==(n=null==(t=a.value)?void 0:t.style)||n.setProperty("touch-action","none");const r=e.target;null==r||r.setPointerCapture(e.pointerId);const{clientX:o,clientY:i}=e;d(o,i),h(o,i),null==l||l(e)}),f(e,"pointermove",e=>{if(!k(e))return;if(!O.value)return;const{clientX:t,clientY:n}=e;h(t,n),!b.value&&y.value&&(b.value=!0),b.value&&(null==s||s(e))}),f(e,"pointerup",e=>{var t,n;k(e)&&(b.value&&(null==c||c(e,M.value)),O.value=!1,b.value=!1,null==(n=null==(t=a.value)?void 0:t.style)||n.setProperty("touch-action","initial"))})],w=()=>C.forEach(e=>e());return{isSwiping:o.readonly(b),direction:o.readonly(M),posStart:o.readonly(u),posEnd:o.readonly(p),distanceX:m,distanceY:v,stop:w}}function No(e){const t=W("(prefers-color-scheme: light)",e),n=W("(prefers-color-scheme: dark)",e);return o.computed(()=>n.value?"dark":t.value?"light":"no-preference")}function xo(e){const t=W("(prefers-contrast: more)",e),n=W("(prefers-contrast: less)",e),r=W("(prefers-contrast: custom)",e);return o.computed(()=>t.value?"more":n.value?"less":r.value?"custom":"no-preference")}function Ro(e={}){const{window:t=l}=e;if(!t)return o.ref(["en"]);const n=t.navigator,r=o.ref(n.languages);return f(t,"languagechange",()=>{r.value=n.languages}),r}function Po(e){const t=W("(prefers-reduced-motion: reduce)",e);return o.computed(()=>t.value?"reduce":"no-preference")}function Uo(e,t){const n=o.shallowRef(t);return o.watch(r.resolveRef(e),(e,t)=>{n.value=t},{flush:"sync"}),o.readonly(n)}t.SwipeDirection=void 0,function(e){e["UP"]="UP",e["RIGHT"]="RIGHT",e["DOWN"]="DOWN",e["LEFT"]="LEFT",e["NONE"]="NONE"}(t.SwipeDirection||(t.SwipeDirection={}));const Vo=(e={})=>{const{window:t=l}=e,n=H(()=>t&&"screen"in t&&"orientation"in t.screen),r=n.value?t.screen.orientation:{},a=o.ref(r.type),i=o.ref(r.angle||0);n.value&&f(t,"orientationchange",()=>{a.value=r.type,i.value=r.angle});const s=e=>n.value?r.lock(e):Promise.reject(new Error("Not supported")),c=()=>{n.value&&r.unlock()};return{isSupported:n,orientation:a,angle:i,lockOrientation:s,unlockOrientation:c}},Bo="--vueuse-safe-area-top",Fo="--vueuse-safe-area-right",Go="--vueuse-safe-area-bottom",zo="--vueuse-safe-area-left";function Ho(){const e=o.ref(""),t=o.ref(""),n=o.ref(""),a=o.ref("");if(r.isClient){const e=We(Bo),t=We(Fo),n=We(Go),o=We(zo);e.value="env(safe-area-inset-top, 0px)",t.value="env(safe-area-inset-right, 0px)",n.value="env(safe-area-inset-bottom, 0px)",o.value="env(safe-area-inset-left, 0px)",i(),f("resize",r.useDebounceFn(i))}function i(){e.value=Yo(Bo),t.value=Yo(Fo),n.value=Yo(Go),a.value=Yo(zo)}return{top:e,right:t,bottom:n,left:a,update:i}}function Yo(e){return getComputedStyle(document.documentElement).getPropertyValue(e)}function qo(e,t=r.noop,n={}){const{immediate:a=!0,manual:i=!1,type:s="text/javascript",async:c=!0,crossOrigin:l,referrerPolicy:d,noModule:p,defer:f,document:h=u,attrs:m={}}=n,v=o.ref(null);let g=null;const _=n=>new Promise((o,a)=>{const i=e=>(v.value=e,o(e),e);if(!h)return void o(!1);let u=!1,g=h.querySelector(`script[src="${r.resolveUnref(e)}"]`);g?g.hasAttribute("data-loaded")&&i(g):(g=h.createElement("script"),g.type=s,g.async=c,g.src=r.resolveUnref(e),f&&(g.defer=f),l&&(g.crossOrigin=l),p&&(g.noModule=p),d&&(g.referrerPolicy=d),Object.entries(m).forEach(([e,t])=>null==g?void 0:g.setAttribute(e,t)),u=!0),g.addEventListener("error",e=>a(e)),g.addEventListener("abort",e=>a(e)),g.addEventListener("load",()=>{g.setAttribute("data-loaded","true"),t(g),i(g)}),u&&(g=h.head.appendChild(g)),n||i(g)}),y=(e=!0)=>(g||(g=_(e)),g),b=()=>{if(!h)return;g=null,v.value&&(v.value=null);const t=h.querySelector(`script[src="${r.resolveUnref(e)}"]`);t&&h.head.removeChild(t)};return a&&!i&&r.tryOnMounted(y),i||r.tryOnUnmounted(b),{scriptTag:v,load:y,unload:b}}function Wo(e){const t=window.getComputedStyle(e);if("scroll"===t.overflowX||"scroll"===t.overflowY||"auto"===t.overflowX&&e.clientHeight<e.scrollHeight||"auto"===t.overflowY&&e.clientWidth<e.scrollWidth)return!0;{const t=e.parentNode;return!(!t||"BODY"===t.tagName)&&Wo(t)}}function Ko(e){const t=e||window.event,n=t.target;return!Wo(n)&&(t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1))}function $o(e,t=!1){const n=o.ref(t);let a,i=null;o.watch(r.resolveRef(e),e=>{if(e){const t=e;a=t.style.overflow,n.value&&(t.style.overflow="hidden")}},{immediate:!0});const s=()=>{const t=r.resolveUnref(e);t&&!n.value&&(r.isIOS&&(i=f(t,"touchmove",e=>{Ko(e)},{passive:!1})),t.style.overflow="hidden",n.value=!0)},c=()=>{const t=r.resolveUnref(e);t&&n.value&&(r.isIOS&&(null==i||i()),t.style.overflow=a,n.value=!1)};return r.tryOnScopeDispose(c),o.computed({get(){return n.value},set(e){e?s():c()}})}function Jo(e,t,n={}){const{window:r=l}=n;return Pe(e,t,null==r?void 0:r.sessionStorage,n)}var Qo=Object.defineProperty,Xo=Object.getOwnPropertySymbols,Zo=Object.prototype.hasOwnProperty,ea=Object.prototype.propertyIsEnumerable,ta=(e,t,n)=>t in e?Qo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,na=(e,t)=>{for(var n in t||(t={}))Zo.call(t,n)&&ta(e,n,t[n]);if(Xo)for(var n of Xo(t))ea.call(t,n)&&ta(e,n,t[n]);return e};function ra(e={},t={}){const{navigator:n=d}=t,o=n,a=H(()=>o&&"canShare"in o),i=async(t={})=>{if(a.value){const n=na(na({},r.resolveUnref(e)),r.resolveUnref(t));let a=!0;if(n.files&&o.canShare&&(a=o.canShare({files:n.files})),a)return o.share(n)}};return{isSupported:a,share:i}}const oa=(e,t)=>e.sort(t),aa=(e,t)=>e-t;function ia(...e){var t,n,r,a;const[i]=e;let s=aa,c={};2===e.length?"object"===typeof e[1]?(c=e[1],s=null!=(t=c.compareFn)?t:aa):s=null!=(n=e[1])?n:aa:e.length>2&&(s=null!=(r=e[1])?r:aa,c=null!=(a=e[2])?a:{});const{dirty:l=!1,sortFn:u=oa}=c;return l?(o.watchEffect(()=>{const e=u(o.unref(i),s);o.isRef(i)?i.value=e:i.splice(0,i.length,...e)}),i):o.computed(()=>u([...o.unref(i)],s))}function sa(e={}){const{interimResults:t=!0,continuous:n=!0,window:a=l}=e,i=r.resolveRef(e.lang||"en-US"),s=o.ref(!1),c=o.ref(!1),u=o.ref(""),d=o.shallowRef(void 0),p=(e=!s.value)=>{s.value=e},f=()=>{s.value=!0},h=()=>{s.value=!1},m=a&&(a.SpeechRecognition||a.webkitSpeechRecognition),v=H(()=>m);let g;return v.value&&(g=new m,g.continuous=n,g.interimResults=t,g.lang=o.unref(i),g.onstart=()=>{c.value=!1},o.watch(i,e=>{g&&!s.value&&(g.lang=e)}),g.onresult=e=>{const t=Array.from(e.results).map(e=>(c.value=e.isFinal,e[0])).map(e=>e.transcript).join("");u.value=t,d.value=void 0},g.onerror=e=>{d.value=e},g.onend=()=>{s.value=!1,g.lang=o.unref(i)},o.watch(s,()=>{s.value?g.start():g.stop()})),r.tryOnScopeDispose(()=>{s.value=!1}),{isSupported:v,isListening:s,isFinal:c,recognition:g,result:u,error:d,toggle:p,start:f,stop:h}}function ca(e,t={}){const{pitch:n=1,rate:a=1,volume:i=1,window:s=l}=t,c=s&&s.speechSynthesis,u=H(()=>c),d=o.ref(!1),p=o.ref("init"),f=r.resolveRef(e||""),h=r.resolveRef(t.lang||"en-US"),m=o.shallowRef(void 0),v=(e=!d.value)=>{d.value=e},g=e=>{e.lang=o.unref(h),e.voice=o.unref(t.voice)||null,e.pitch=n,e.rate=a,e.volume=i,e.onstart=()=>{d.value=!0,p.value="play"},e.onpause=()=>{d.value=!1,p.value="pause"},e.onresume=()=>{d.value=!0,p.value="play"},e.onend=()=>{d.value=!1,p.value="end"},e.onerror=e=>{m.value=e}},_=o.computed(()=>{d.value=!1,p.value="init";const e=new SpeechSynthesisUtterance(f.value);return g(e),e}),y=()=>{c.cancel(),_&&c.speak(_.value)},b=()=>{c.cancel(),d.value=!1};return u.value&&(g(_.value),o.watch(h,e=>{_.value&&!d.value&&(_.value.lang=e)}),t.voice&&o.watch(t.voice,()=>{c.cancel()}),o.watch(d,()=>{d.value?c.resume():c.pause()})),r.tryOnScopeDispose(()=>{d.value=!1}),{isSupported:u,isPlaying:d,status:p,utterance:_,error:m,stop:b,toggle:v,speak:y}}function la(e,t){const n=o.ref(e),r=o.computed(()=>Array.isArray(n.value)?n.value:Object.keys(n.value)),a=o.ref(r.value.indexOf(null!=t?t:r.value[0])),i=o.computed(()=>d(a.value)),s=o.computed(()=>0===a.value),c=o.computed(()=>a.value===r.value.length-1),l=o.computed(()=>r.value[a.value+1]),u=o.computed(()=>r.value[a.value-1]);function d(e){return Array.isArray(n.value)?n.value[e]:n.value[r.value[e]]}function p(e){if(r.value.includes(e))return d(r.value.indexOf(e))}function f(e){r.value.includes(e)&&(a.value=r.value.indexOf(e))}function h(){c.value||a.value++}function m(){s.value||a.value--}function v(e){O(e)&&f(e)}function g(e){return r.value.indexOf(e)===a.value+1}function _(e){return r.value.indexOf(e)===a.value-1}function y(e){return r.value.indexOf(e)===a.value}function b(e){return a.value<r.value.indexOf(e)}function O(e){return a.value>r.value.indexOf(e)}return{steps:n,stepNames:r,index:a,current:i,next:l,previous:u,isFirst:s,isLast:c,at:d,get:p,goTo:f,goToNext:h,goToPrevious:m,goBackTo:v,isNext:g,isPrevious:_,isCurrent:y,isBefore:b,isAfter:O}}var ua=Object.defineProperty,da=Object.getOwnPropertySymbols,pa=Object.prototype.hasOwnProperty,fa=Object.prototype.propertyIsEnumerable,ha=(e,t,n)=>t in e?ua(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ma=(e,t)=>{for(var n in t||(t={}))pa.call(t,n)&&ha(e,n,t[n]);if(da)for(var n of da(t))fa.call(t,n)&&ha(e,n,t[n]);return e};function va(e,t,n,a={}){var i;const{flush:s="pre",deep:c=!0,listenToStorageChanges:u=!0,writeDefaults:d=!0,mergeDefaults:p=!1,shallow:h,window:m=l,eventFilter:v,onError:g=(e=>{console.error(e)})}=a,_=r.resolveUnref(t),y=Te(_),b=(h?o.shallowRef:o.ref)(t),O=null!=(i=a.serializer)?i:xe[y];if(!n)try{n=Ie("getDefaultStorage",()=>{var e;return null==(e=l)?void 0:e.localStorage})()}catch(k){g(k)}async function M(t){if(n&&(!t||t.key===e))try{const o=t?t.newValue:await n.getItem(e);if(null==o)b.value=_,d&&null!==_&&await n.setItem(e,await O.write(_));else if(p){const e=await O.read(o);r.isFunction(p)?b.value=p(e,_):"object"!==y||Array.isArray(e)?b.value=e:b.value=ma(ma({},_),e)}else b.value=await O.read(o)}catch(k){g(k)}}return M(),m&&u&&f(m,"storage",e=>setTimeout(()=>M(e),0)),n&&r.watchWithFilter(b,async()=>{try{null==b.value?await n.removeItem(e):await n.setItem(e,await O.write(b.value))}catch(k){g(k)}},{flush:s,deep:c,eventFilter:v}),b}let ga=0;function _a(e,t={}){const n=o.ref(!1),{document:a=u,immediate:i=!0,manual:s=!1,id:c="vueuse_styletag_"+ ++ga}=t,l=o.ref(e);let d=()=>{};const p=()=>{if(!a)return;const e=a.getElementById(c)||a.createElement("style");e.isConnected||(e.type="text/css",e.id=c,t.media&&(e.media=t.media),a.head.appendChild(e)),n.value||(d=o.watch(l,t=>{e.textContent=t},{immediate:!0}),n.value=!0)},f=()=>{a&&n.value&&(d(),a.head.removeChild(a.getElementById(c)),n.value=!1)};return i&&!s&&r.tryOnMounted(p),s||r.tryOnScopeDispose(f),{id:c,css:l,unload:f,load:p,isLoaded:o.readonly(n)}}function ya(){const e=o.ref([]);return e.value.set=t=>{t&&e.value.push(t)},o.onBeforeUpdate(()=>{e.value.length=0}),e}function ba(e={}){const{document:t=u,selector:n="html",observe:a=!1,initialValue:i="ltr"}=e;function s(){var e,r;return null!=(r=null==(e=null==t?void 0:t.querySelector(n))?void 0:e.getAttribute("dir"))?r:i}const c=o.ref(s());return r.tryOnMounted(()=>c.value=s()),a&&t&&to(t.querySelector(n),()=>c.value=s(),{attributes:!0}),o.computed({get(){return c.value},set(e){var r,o;c.value=e,t&&(c.value?null==(r=t.querySelector(n))||r.setAttribute("dir",c.value):null==(o=t.querySelector(n))||o.removeAttribute("dir"))}})}function Oa(e){var t;const n=null!=(t=e.rangeCount)?t:0,r=new Array(n);for(let o=0;o<n;o++){const t=e.getRangeAt(o);r[o]=t}return r}function Ma(e={}){const{window:t=l}=e,n=o.ref(null),r=o.computed(()=>{var e,t;return null!=(t=null==(e=n.value)?void 0:e.toString())?t:""}),a=o.computed(()=>n.value?Oa(n.value):[]),i=o.computed(()=>a.value.map(e=>e.getBoundingClientRect()));function s(){n.value=null,t&&(n.value=t.getSelection())}return t&&f(t.document,"selectionchange",s),{text:r,rects:i,ranges:a,selection:n}}function ka(e){const t=o.ref(null==e?void 0:e.element),n=o.ref(null==e?void 0:e.input);function r(){var n,r;t.value&&(t.value.style.height="1px",t.value.style.height=(null==(n=t.value)?void 0:n.scrollHeight)+"px",null==(r=null==e?void 0:e.onResize)||r.call(e))}return o.watch([n,t],r,{immediate:!0}),Zt(t,()=>r()),(null==e?void 0:e.watch)&&o.watch(e.watch,r,{immediate:!0,deep:!0}),{textarea:t,input:n,triggerResize:r}}var Ca=Object.defineProperty,wa=Object.defineProperties,Ia=Object.getOwnPropertyDescriptors,Sa=Object.getOwnPropertySymbols,Ta=Object.prototype.hasOwnProperty,Ea=Object.prototype.propertyIsEnumerable,ja=(e,t,n)=>t in e?Ca(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Da=(e,t)=>{for(var n in t||(t={}))Ta.call(t,n)&&ja(e,n,t[n]);if(Sa)for(var n of Sa(t))Ea.call(t,n)&&ja(e,n,t[n]);return e},La=(e,t)=>wa(e,Ia(t));function Aa(e,t={}){const{throttle:n=200,trailing:o=!0}=t,a=r.throttleFilter(n,o),i=bt(e,La(Da({},t),{eventFilter:a}));return Da({},i)}var Na=Object.defineProperty,xa=Object.getOwnPropertySymbols,Ra=Object.prototype.hasOwnProperty,Pa=Object.prototype.propertyIsEnumerable,Ua=(e,t,n)=>t in e?Na(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Va=(e,t)=>{for(var n in t||(t={}))Ra.call(t,n)&&Ua(e,n,t[n]);if(xa)for(var n of xa(t))Pa.call(t,n)&&Ua(e,n,t[n]);return e},Ba=(e,t)=>{var n={};for(var r in e)Ra.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&xa)for(var r of xa(e))t.indexOf(r)<0&&Pa.call(e,r)&&(n[r]=e[r]);return n};const Fa=[{max:6e4,value:1e3,name:"second"},{max:276e4,value:6e4,name:"minute"},{max:72e6,value:36e5,name:"hour"},{max:5184e5,value:864e5,name:"day"},{max:24192e5,value:6048e5,name:"week"},{max:28512e6,value:2592e6,name:"month"},{max:1/0,value:31536e6,name:"year"}],Ga={justNow:"just now",past:e=>e.match(/\d/)?e+" ago":e,future:e=>e.match(/\d/)?"in "+e:e,month:(e,t)=>1===e?t?"last month":"next month":`${e} month${e>1?"s":""}`,year:(e,t)=>1===e?t?"last year":"next year":`${e} year${e>1?"s":""}`,day:(e,t)=>1===e?t?"yesterday":"tomorrow":`${e} day${e>1?"s":""}`,week:(e,t)=>1===e?t?"last week":"next week":`${e} week${e>1?"s":""}`,hour:e=>`${e} hour${e>1?"s":""}`,minute:e=>`${e} minute${e>1?"s":""}`,second:e=>`${e} second${e>1?"s":""}`,invalid:""},za=e=>e.toISOString().slice(0,10);function Ha(e,t={}){const{controls:n=!1,updateInterval:a=3e4}=t,i=uo({interval:a,controls:!0}),{now:s}=i,c=Ba(i,["now"]),l=o.computed(()=>Ya(new Date(r.resolveUnref(e)),t,o.unref(s.value)));return n?Va({timeAgo:l},c):l}function Ya(e,t={},n=Date.now()){var r;const{max:o,messages:a=Ga,fullDateFormatter:i=za,units:s=Fa,showSecond:c=!1,rounding:l="round"}=t,u="number"===typeof l?e=>+e.toFixed(l):Math[l],d=+n-+e,p=Math.abs(d);function f(e,t){return u(Math.abs(e)/t.value)}function h(e,t){const n=f(e,t),r=e>0,o=m(t.name,n,r);return m(r?"past":"future",o,r)}function m(e,t,n){const r=a[e];return"function"===typeof r?r(t,n):r.replace("{0}",t.toString())}if(p<6e4&&!c)return a.justNow;if("number"===typeof o&&p>o)return i(new Date(e));if("string"===typeof o){const t=null==(r=s.find(e=>e.name===o))?void 0:r.max;if(t&&p>t)return i(new Date(e))}for(const[v,g]of s.entries()){const e=f(d,g);if(e<=0&&s[v-1])return h(d,s[v-1]);if(p<g.max)return h(d,g)}return a.invalid}function qa(e,t,n){const{start:a}=r.useTimeoutFn(s,t),i=o.ref(!1);async function s(){i.value&&(await e(),a())}function c(){i.value||(i.value=!0,s())}function l(){i.value=!1}return(null==n?void 0:n.immediate)&&c(),r.tryOnScopeDispose(l),{isActive:i,pause:l,resume:c}}var Wa=Object.defineProperty,Ka=Object.getOwnPropertySymbols,$a=Object.prototype.hasOwnProperty,Ja=Object.prototype.propertyIsEnumerable,Qa=(e,t,n)=>t in e?Wa(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Xa=(e,t)=>{for(var n in t||(t={}))$a.call(t,n)&&Qa(e,n,t[n]);if(Ka)for(var n of Ka(t))Ja.call(t,n)&&Qa(e,n,t[n]);return e};function Za(e={}){const{controls:t=!1,offset:n=0,immediate:a=!0,interval:i="requestAnimationFrame",callback:s}=e,c=o.ref(r.timestamp()+n),l=()=>c.value=r.timestamp()+n,u=s?()=>{l(),s(c.value)}:l,d="requestAnimationFrame"===i?tn(u,{immediate:a}):r.useIntervalFn(u,i,{immediate:a});return t?Xa({timestamp:c},d):c}function ei(e=null,t={}){var n,a;const{document:i=u}=t,s=r.resolveRef(null!=(n=null!=e?e:null==i?void 0:i.title)?n:null),c=e&&r.isFunction(e);function l(e){if(!("titleTemplate"in t))return e;const n=t.titleTemplate||"%s";return r.isFunction(n)?n(e):o.unref(n).replace(/%s/g,e)}return o.watch(s,(e,t)=>{e!==t&&i&&(i.title=l(r.isString(e)?e:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&i&&!c&&to(null==(a=i.head)?void 0:a.querySelector("title"),()=>{i&&i.title!==s.value&&(s.value=l(i.title))},{childList:!0}),s}var ti=Object.defineProperty,ni=Object.getOwnPropertySymbols,ri=Object.prototype.hasOwnProperty,oi=Object.prototype.propertyIsEnumerable,ai=(e,t,n)=>t in e?ti(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ii=(e,t)=>{for(var n in t||(t={}))ri.call(t,n)&&ai(e,n,t[n]);if(ni)for(var n of ni(t))oi.call(t,n)&&ai(e,n,t[n]);return e};const si={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]},ci=ii({linear:r.identity},si);function li([e,t,n,r]){const o=(e,t)=>1-3*t+3*e,a=(e,t)=>3*t-6*e,i=e=>3*e,s=(e,t,n)=>((o(t,n)*e+a(t,n))*e+i(t))*e,c=(e,t,n)=>3*o(t,n)*e*e+2*a(t,n)*e+i(t),l=t=>{let r=t;for(let o=0;o<4;++o){const o=c(r,e,n);if(0===o)return r;const a=s(r,e,n)-t;r-=a/o}return r};return o=>e===t&&n===r?o:s(l(o),t,r)}function ui(e,t={}){const{delay:n=0,disabled:a=!1,duration:i=1e3,onFinished:s=r.noop,onStarted:c=r.noop,transition:l=r.identity}=t,u=o.computed(()=>{const e=o.unref(l);return r.isFunction(e)?e:li(e)}),d=o.computed(()=>{const t=o.unref(e);return r.isNumber(t)?t:t.map(o.unref)}),p=o.computed(()=>r.isNumber(d.value)?[d.value]:d.value),f=o.ref(p.value.slice(0));let h,m,v,g,_;const{resume:y,pause:b}=tn(()=>{const e=Date.now(),t=r.clamp(1-(v-e)/h,0,1);f.value=_.map((e,n)=>{var r;return e+(null!=(r=m[n])?r:0)*u.value(t)}),t>=1&&(b(),s())},{immediate:!1}),O=()=>{b(),h=o.unref(i),m=f.value.map((e,t)=>{var n,r;return(null!=(n=p.value[t])?n:0)-(null!=(r=f.value[t])?r:0)}),_=f.value.slice(0),g=Date.now(),v=g+h,y(),c()},M=r.useTimeoutFn(O,n,{immediate:!1});return o.watch(p,()=>{o.unref(a)||(o.unref(n)<=0?O():M.start())},{deep:!0}),o.watch(()=>o.unref(a),e=>{e&&(f.value=p.value.slice(0),b())}),o.computed(()=>{const e=o.unref(a)?p:f;return r.isNumber(d.value)?e.value[0]:e.value})}function di(e="history",t={}){const{initialValue:n={},removeNullishValues:a=!0,removeFalsyValues:i=!1,write:s=!0,window:c=l}=t;if(!c)return o.reactive(n);const u=o.reactive({});function d(){if("history"===e)return c.location.search||"";if("hash"===e){const e=c.location.hash||"",t=e.indexOf("?");return t>0?e.slice(t):""}return(c.location.hash||"").replace(/^#/,"")}function p(t){const n=t.toString();if("history"===e)return`${n?"?"+n:""}${c.location.hash||""}`;if("hash-params"===e)return`${c.location.search||""}${n?"#"+n:""}`;const r=c.location.hash||"#",o=r.indexOf("?");return o>0?`${r.slice(0,o)}${n?"?"+n:""}`:`${r}${n?"?"+n:""}`}function h(){return new URLSearchParams(d())}function m(e){const t=new Set(Object.keys(u));for(const n of e.keys()){const r=e.getAll(n);u[n]=r.length>1?r:e.get(n)||"",t.delete(n)}Array.from(t).forEach(e=>delete u[e])}const{pause:v,resume:g}=r.pausableWatch(u,()=>{const e=new URLSearchParams("");Object.keys(u).forEach(t=>{const n=u[t];Array.isArray(n)?n.forEach(n=>e.append(t,n)):a&&null==n||i&&!n?e.delete(t):e.set(t,n)}),_(e)},{deep:!0});function _(e,t){v(),t&&m(e),c.history.replaceState(c.history.state,c.document.title,c.location.pathname+p(e)),g()}function y(){s&&_(h(),!0)}f(c,"popstate",y,!1),"history"!==e&&f(c,"hashchange",y,!1);const b=h();return b.keys().next().value?m(b):Object.assign(u,n),u}function pi(e={}){var t,n;const r=o.ref(null!=(t=e.enabled)&&t),a=o.ref(null==(n=e.autoSwitch)||n),i=o.ref(e.videoDeviceId),s=o.ref(e.audioDeviceId),{navigator:c=d}=e,l=H(()=>{var e;return null==(e=null==c?void 0:c.mediaDevices)?void 0:e.getUserMedia}),u=o.shallowRef();function p(e){return"none"!==e.value&&!1!==e.value&&(null==e.value||{deviceId:e.value})}async function f(){if(l.value&&!u.value)return u.value=await c.mediaDevices.getUserMedia({video:p(i),audio:p(s)}),u.value}async function h(){var e;null==(e=u.value)||e.getTracks().forEach(e=>e.stop()),u.value=void 0}function m(){h(),r.value=!1}async function v(){return await f(),u.value&&(r.value=!0),u.value}async function g(){return h(),await v()}return o.watch(r,e=>{e?f():h()},{immediate:!0}),o.watch([i,s],()=>{a.value&&u.value&&g()},{immediate:!0}),{isSupported:l,stream:u,start:v,stop:m,restart:g,videoDeviceId:i,audioDeviceId:s,enabled:r,autoSwitch:a}}function fi(e,t,n,a={}){var i,s,c,l,u;const{clone:d=!1,passive:p=!1,eventName:f,deep:h=!1,defaultValue:m}=a,v=o.getCurrentInstance(),g=n||(null==v?void 0:v.emit)||(null==(i=null==v?void 0:v.$emit)?void 0:i.bind(v))||(null==(c=null==(s=null==v?void 0:v.proxy)?void 0:s.$emit)?void 0:c.bind(null==v?void 0:v.proxy));let _=f;if(!t)if(o.isVue2){const e=null==(u=null==(l=null==v?void 0:v.proxy)?void 0:l.$options)?void 0:u.model;t=(null==e?void 0:e.value)||"value",f||(_=(null==e?void 0:e.event)||"input")}else t="modelValue";_=f||_||"update:"+t.toString();const y=e=>d?r.isFunction(d)?d(e):Oe(e):e,b=()=>r.isDef(e[t])?y(e[t]):m;if(p){const n=b(),r=o.ref(n);return o.watch(()=>e[t],e=>r.value=y(e)),o.watch(r,n=>{(n!==e[t]||h)&&g(_,n)},{deep:h}),r}return o.computed({get(){return b()},set(e){g(_,e)}})}function hi(e,t,n={}){const r={};for(const o in e)r[o]=fi(e,o,t,n);return r}function mi(e){const{pattern:t=[],interval:n=0,navigator:o=d}=e||{},a=H(()=>"undefined"!==typeof o&&"vibrate"in o),i=r.resolveRef(t);let s;const c=(e=i.value)=>{a.value&&o.vibrate(e)},l=()=>{a.value&&o.vibrate(0),null==s||s.pause()};return n>0&&(s=r.useIntervalFn(c,n,{immediate:!1,immediateCallback:!1})),{isSupported:a,pattern:t,intervalControls:s,vibrate:c,stop:l}}function vi(e,t){const{containerStyle:n,wrapperProps:r,scrollTo:o,calculateRange:a,currentList:i,containerRef:s}="itemHeight"in t?Si(t,e):Ii(t,e);return{list:i,scrollTo:o,containerProps:{ref:s,onScroll:()=>{a()},style:n},wrapperProps:r}}function gi(e){const t=o.ref(null),n=dn(t),r=o.ref([]),a=o.shallowRef(e),i=o.ref({start:0,end:10});return{state:i,source:a,currentList:r,size:n,containerRef:t}}function _i(e,t,n){return r=>{if("number"===typeof n)return Math.ceil(r/n);const{start:o=0}=e.value;let a=0,i=0;for(let e=o;e<t.value.length;e++){const t=n(e);if(a+=t,i=e,a>r)break}return i-o}}function yi(e,t){return n=>{if("number"===typeof t)return Math.floor(n/t)+1;let r=0,o=0;for(let a=0;a<e.value.length;a++){const e=t(a);if(r+=e,r>=n){o=a;break}}return o+1}}function bi(e,t,n,r,{containerRef:o,state:a,currentList:i,source:s}){return()=>{const c=o.value;if(c){const o=n("vertical"===e?c.scrollTop:c.scrollLeft),l=r("vertical"===e?c.clientHeight:c.clientWidth),u=o-t,d=o+l+t;a.value={start:u<0?0:u,end:d>s.value.length?s.value.length:d},i.value=s.value.slice(a.value.start,a.value.end).map((e,t)=>({data:e,index:t+a.value.start}))}}}function Oi(e,t){return n=>{if("number"===typeof e){const t=n*e;return t}const r=t.value.slice(0,n).reduce((t,n,r)=>t+e(r),0);return r}}function Mi(e,t,n){o.watch([e.width,e.height,t],()=>{n()})}function ki(e,t){return o.computed(()=>"number"===typeof e?t.value.length*e:t.value.reduce((t,n,r)=>t+e(r),0))}const Ci={horizontal:"scrollLeft",vertical:"scrollTop"};function wi(e,t,n,r){return o=>{r.value&&(r.value[Ci[e]]=n(o),t())}}function Ii(e,t){const n=gi(t),{state:r,source:a,currentList:i,size:s,containerRef:c}=n,l={overflowX:"auto"},{itemWidth:u,overscan:d=5}=e,p=_i(r,a,u),f=yi(a,u),h=bi("horizontal",d,f,p,n),m=Oi(u,a),v=o.computed(()=>m(r.value.start)),g=ki(u,a);Mi(s,t,h);const _=wi("horizontal",h,m,c),y=o.computed(()=>({style:{height:"100%",width:g.value-v.value+"px",marginLeft:v.value+"px",display:"flex"}}));return{scrollTo:_,calculateRange:h,wrapperProps:y,containerStyle:l,currentList:i,containerRef:c}}function Si(e,t){const n=gi(t),{state:r,source:a,currentList:i,size:s,containerRef:c}=n,l={overflowY:"auto"},{itemHeight:u,overscan:d=5}=e,p=_i(r,a,u),f=yi(a,u),h=bi("vertical",d,f,p,n),m=Oi(u,a),v=o.computed(()=>m(r.value.start)),g=ki(u,a);Mi(s,t,h);const _=wi("vertical",h,m,c),y=o.computed(()=>({style:{width:"100%",height:g.value-v.value+"px",marginTop:v.value+"px"}}));return{calculateRange:h,scrollTo:_,containerStyle:l,wrapperProps:y,currentList:i,containerRef:c}}const Ti=(e={})=>{const{navigator:t=d,document:n=u}=e;let r;const a=H(()=>t&&"wakeLock"in t),i=o.ref(!1);async function s(){a.value&&r&&(n&&"visible"===n.visibilityState&&(r=await t.wakeLock.request("screen")),i.value=!r.released)}async function c(e){a.value&&(r=await t.wakeLock.request(e),i.value=!r.released)}async function l(){a.value&&r&&(await r.release(),i.value=!r.released,r=null)}return n&&f(n,"visibilitychange",s,{passive:!0}),{isSupported:a,isActive:i,request:c,release:l}},Ei=(e={})=>{const{window:t=l}=e,n=H(()=>!!t&&"Notification"in t),a=o.ref(null),i=async()=>{n.value&&"permission"in Notification&&"denied"!==Notification.permission&&await Notification.requestPermission()},s=r.createEventHook(),c=r.createEventHook(),u=r.createEventHook(),d=r.createEventHook(),p=async t=>{if(!n.value)return;await i();const r=Object.assign({},e,t);return a.value=new Notification(r.title||"",r),a.value.onclick=e=>s.trigger(e),a.value.onshow=e=>c.trigger(e),a.value.onerror=e=>u.trigger(e),a.value.onclose=e=>d.trigger(e),a.value},h=()=>{a.value&&a.value.close(),a.value=null};if(r.tryOnMounted(async()=>{n.value&&await i()}),r.tryOnScopeDispose(h),n.value&&t){const e=t.document;f(e,"visibilitychange",t=>{t.preventDefault(),"visible"===e.visibilityState&&h()})}return{isSupported:n,notification:a,show:p,close:h,onClick:s,onShow:c,onError:u,onClose:d}},ji="ping";function Di(e){return!0===e?{}:e}function Li(e,t={}){const{onConnected:n,onDisconnected:a,onError:i,onMessage:s,immediate:c=!0,autoClose:l=!0,protocols:u=[]}=t,d=o.ref(null),p=o.ref("CLOSED"),h=o.ref(),m=r.resolveRef(e);let v,g,_,y=!1,b=0,O=[];const M=(e=1e3,t)=>{h.value&&(y=!0,null==v||v(),h.value.close(e,t))},k=()=>{if(O.length&&h.value&&"OPEN"===p.value){for(const e of O)h.value.send(e);O=[]}},C=()=>{clearTimeout(_),_=void 0},w=(e,t=!0)=>h.value&&"OPEN"===p.value?(k(),h.value.send(e),!0):(t&&O.push(e),!1),I=()=>{if(y||"undefined"===typeof m.value)return;const e=new WebSocket(m.value,u);h.value=e,p.value="CONNECTING",e.onopen=()=>{p.value="OPEN",null==n||n(e),null==g||g(),k()},e.onclose=n=>{if(p.value="CLOSED",h.value=void 0,null==a||a(e,n),!y&&t.autoReconnect){const{retries:e=-1,delay:n=1e3,onFailed:r}=Di(t.autoReconnect);b+=1,"number"===typeof e&&(e<0||b<e)||"function"===typeof e&&e()?setTimeout(I,n):null==r||r()}},e.onerror=t=>{null==i||i(e,t)},e.onmessage=n=>{if(t.heartbeat){C();const{message:e=ji}=Di(t.heartbeat);if(n.data===e)return}d.value=n.data,null==s||s(e,n)}};if(t.heartbeat){const{message:e=ji,interval:n=1e3,pongTimeout:o=1e3}=Di(t.heartbeat),{pause:a,resume:i}=r.useIntervalFn(()=>{w(e,!1),null==_&&(_=setTimeout(()=>{M()},o))},n,{immediate:!1});v=a,g=i}l&&(f(window,"beforeunload",()=>M()),r.tryOnScopeDispose(M));const S=()=>{M(),y=!1,b=0,I()};return c&&o.watch(m,S,{immediate:!0}),{data:d,status:p,close:M,send:w,open:S,ws:h}}function Ai(e,t,n){const{window:a=l}=null!=n?n:{},i=o.ref(null),s=o.shallowRef(),c=function(e){s.value&&s.value.postMessage(e)},u=function(){s.value&&s.value.terminate()};return a&&(r.isString(e)?s.value=new Worker(e,t):r.isFunction(e)?s.value=e():s.value=e,s.value.onmessage=e=>{i.value=e.data},r.tryOnScopeDispose(()=>{s.value&&s.value.terminate()})),{data:i,post:c,terminate:u,worker:s}}const Ni=e=>t=>{const n=t.data[0];return Promise.resolve(e.apply(void 0,n)).then(e=>{postMessage(["SUCCESS",e])}).catch(e=>{postMessage(["ERROR",e])})},xi=e=>{if(0===e.length)return"";const t=e.map(e=>`'${e}'`).toString();return`importScripts(${t})`},Ri=(e,t)=>{const n=`${xi(t)}; onmessage=(${Ni})(${e})`,r=new Blob([n],{type:"text/javascript"}),o=URL.createObjectURL(r);return o},Pi=(e,t={})=>{const{dependencies:n=[],timeout:a,window:i=l}=t,s=o.ref(),c=o.ref("PENDING"),u=o.ref({}),d=o.ref(),p=(e="PENDING")=>{s.value&&s.value._url&&i&&(s.value.terminate(),URL.revokeObjectURL(s.value._url),u.value={},s.value=void 0,i.clearTimeout(d.value),c.value=e)};p(),r.tryOnScopeDispose(p);const f=()=>{const t=Ri(e,n),r=new Worker(t);return r._url=t,r.onmessage=e=>{const{resolve:t=(()=>{}),reject:n=(()=>{})}=u.value,[r,o]=e.data;switch(r){case"SUCCESS":t(o),p(r);break;default:n(o),p("ERROR");break}},r.onerror=e=>{const{reject:t=(()=>{})}=u.value;t(e),p("ERROR")},a&&(d.value=setTimeout(()=>p("TIMEOUT_EXPIRED"),a)),r},h=(...e)=>new Promise((t,n)=>{u.value={resolve:t,reject:n},s.value&&s.value.postMessage([[...e]]),c.value="RUNNING"}),m=(...e)=>"RUNNING"===c.value?(console.error("[useWebWorkerFn] You can only run one instance of the worker at a time."),Promise.reject()):(s.value=f(),h(...e));return{workerFn:m,workerStatus:c,workerTerminate:p}};function Ui({window:e=l}={}){if(!e)return o.ref(!1);const t=o.ref(e.document.hasFocus());return f(e,"blur",()=>{t.value=!1}),f(e,"focus",()=>{t.value=!0}),t}function Vi({window:e=l}={}){if(!e)return{x:o.ref(0),y:o.ref(0)};const t=o.ref(e.scrollX),n=o.ref(e.scrollY);return f(e,"scroll",()=>{t.value=e.scrollX,n.value=e.scrollY},{capture:!1,passive:!0}),{x:t,y:n}}function Bi(e={}){const{window:t=l,initialWidth:n=1/0,initialHeight:a=1/0,listenOrientation:i=!0,includeScrollbar:s=!0}=e,c=o.ref(n),u=o.ref(a),d=()=>{t&&(s?(c.value=t.innerWidth,u.value=t.innerHeight):(c.value=t.document.documentElement.clientWidth,u.value=t.document.documentElement.clientHeight))};return d(),r.tryOnMounted(d),f("resize",d,{passive:!0}),i&&f("orientationchange",d,{passive:!0}),{width:c,height:u}}t.DefaultMagicKeysAliasMap=Dr,t.StorageSerializers=xe,t.TransitionPresets=ci,t.asyncComputed=a,t.breakpointsAntDesign=Q,t.breakpointsBootstrapV5=$,t.breakpointsMasterCss=ee,t.breakpointsQuasar=X,t.breakpointsSematic=Z,t.breakpointsTailwind=K,t.breakpointsVuetify=J,t.cloneFnJSON=Oe,t.computedAsync=a,t.computedInject=i,t.createFetch=Ln,t.createUnrefFn=s,t.customStorageEventName=Re,t.defaultDocument=u,t.defaultLocation=p,t.defaultNavigator=d,t.defaultWindow=l,t.formatTimeAgo=Ya,t.getSSRHandler=Ie,t.mapGamepadToXbox360Controller=tr,t.onClickOutside=m,t.onKeyDown=S,t.onKeyPressed=T,t.onKeyStroke=I,t.onKeyUp=E,t.onLongPress=D,t.onStartTyping=N,t.setSSRHandler=Se,t.templateRef=x,t.unrefElement=c,t.useActiveElement=R,t.useAsyncQueue=P,t.useAsyncState=U,t.useBase64=F,t.useBattery=Y,t.useBluetooth=q,t.useBreakpoints=se,t.useBroadcastChannel=ce,t.useBrowserLocation=le,t.useCached=ue,t.useClipboard=de,t.useCloned=Me,t.useColorMode=Ye,t.useConfirmDialog=qe,t.useCssVar=We,t.useCurrentElement=Ke,t.useCycleList=$e,t.useDark=at,t.useDebouncedRefHistory=jt,t.useDeviceMotion=Dt,t.useDeviceOrientation=Lt,t.useDevicePixelRatio=At,t.useDevicesList=xt,t.useDisplayMedia=Rt,t.useDocumentVisibility=Pt,t.useDraggable=Wt,t.useDropZone=Kt,t.useElementBounding=en,t.useElementByPoint=ln,t.useElementHover=un,t.useElementSize=dn,t.useElementVisibility=pn,t.useEventBus=hn,t.useEventListener=f,t.useEventSource=mn,t.useEyeDropper=vn,t.useFavicon=gn,t.useFetch=An,t.useFileDialog=Gn,t.useFileSystemAccess=$n,t.useFocus=Jn,t.useFocusWithin=Qn,t.useFps=Xn,t.useFullscreen=er,t.useGamepad=nr,t.useGeolocation=rr,t.useIdle=ir,t.useImage=hr,t.useInfiniteScroll=Ir,t.useIntersectionObserver=Sr,t.useKeyModifier=Er,t.useLocalStorage=jr,t.useMagicKeys=Lr,t.useManualRefHistory=ut,t.useMediaControls=zr,t.useMediaQuery=W,t.useMemoize=Yr,t.useMemory=qr,t.useMounted=Wr,t.useMouse=Kr,t.useMouseInElement=$r,t.useMousePressed=Jr,t.useMutationObserver=to,t.useNavigatorLanguage=no,t.useNetwork=ro,t.useNow=uo,t.useObjectUrl=po,t.useOffsetPagination=ho,t.useOnline=mo,t.usePageLeave=vo,t.useParallax=go,t.usePermission=Nt,t.usePointer=Eo,t.usePointerLock=jo,t.usePointerSwipe=Ao,t.usePreferredColorScheme=No,t.usePreferredContrast=xo,t.usePreferredDark=Ue,t.usePreferredLanguages=Ro,t.usePreferredReducedMotion=Po,t.usePrevious=Uo,t.useRafFn=tn,t.useRefHistory=bt,t.useResizeObserver=Zt,t.useScreenOrientation=Vo,t.useScreenSafeArea=Ho,t.useScriptTag=qo,t.useScroll=vr,t.useScrollLock=$o,t.useSessionStorage=Jo,t.useShare=ra,t.useSorted=ia,t.useSpeechRecognition=sa,t.useSpeechSynthesis=ca,t.useStepper=la,t.useStorage=Pe,t.useStorageAsync=va,t.useStyleTag=_a,t.useSupported=H,t.useSwipe=Do,t.useTemplateRefsList=ya,t.useTextDirection=ba,t.useTextSelection=Ma,t.useTextareaAutosize=ka,t.useThrottledRefHistory=Aa,t.useTimeAgo=Ha,t.useTimeoutPoll=qa,t.useTimestamp=Za,t.useTitle=ei,t.useTransition=ui,t.useUrlSearchParams=di,t.useUserMedia=pi,t.useVModel=fi,t.useVModels=hi,t.useVibrate=mi,t.useVirtualList=vi,t.useWakeLock=Ti,t.useWebNotification=Ei,t.useWebSocket=Li,t.useWebWorker=Ai,t.useWebWorkerFn=Pi,t.useWindowFocus=Ui,t.useWindowScroll=Vi,t.useWindowSize=Bi,Object.keys(r).forEach((function(e){"default"===e||t.hasOwnProperty(e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})}))}).call(this,n("c8ba"))},"0974":function(e,t,n){"use strict";var r=n("e477");e.exports=r},"0a06":function(e,t,n){"use strict";var r=n("c532"),o=n("30b5"),a=n("f6b49"),i=n("5270"),s=n("4a7b"),c=n("848b"),l=c.validators;function u(e){this.defaults=e,this.interceptors={request:new a,response:new a}}u.prototype.request=function(e,t){"string"===typeof e?(t=t||{},t.url=e):t=e||{},t=s(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&c.assertOptions(n,{silentJSONParsing:l.transitional(l.boolean),forcedJSONParsing:l.transitional(l.boolean),clarifyTimeoutError:l.transitional(l.boolean)},!1);var r=[],o=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var a,u=[];if(this.interceptors.response.forEach((function(e){u.push(e.fulfilled,e.rejected)})),!o){var d=[i,void 0];Array.prototype.unshift.apply(d,r),d=d.concat(u),a=Promise.resolve(t);while(d.length)a=a.then(d.shift(),d.shift());return a}var p=t;while(r.length){var f=r.shift(),h=r.shift();try{p=f(p)}catch(m){h(m);break}}try{a=i(p)}catch(m){return Promise.reject(m)}while(u.length)a=a.then(u.shift(),u.shift());return a},u.prototype.getUri=function(e){return e=s(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){u.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){u.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}})),e.exports=u},"0a08":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return s}));var r=n("7a23"),o=n("83ec");const a=Object(r["ref"])(0),i=2e3,s=Symbol("zIndexContextKey"),c=e=>{const t=e||(Object(r["getCurrentInstance"])()?Object(r["inject"])(s,void 0):void 0),n=Object(r["computed"])(()=>{const e=Object(r["unref"])(t);return Object(o["d"])(e)?e:i}),c=Object(r["computed"])(()=>n.value+a.value),l=()=>(a.value++,c.value);return{initialZIndex:n,currentZIndex:c,nextZIndex:l}}},"0a36":function(e,t,n){"use strict";var r={foo:{}},o=Object;e.exports=function(){return{__proto__:r}.foo===r.foo&&!({__proto__:null}instanceof o)}},"0a3c":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],o=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,a=e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return a}))},"0a43":function(e,t,n){"use strict";var r=n("3876");e.exports=r},"0a84":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}});return t}))},"0aa1":function(e,t,n){"use strict";var r=n("a5eb"),o=n("4fff"),a=n("a016"),i=n("06fa"),s=i((function(){a(1)}));r({target:"Object",stat:!0,forced:s},{keys:function(e){return a(o(e))}})},"0b1d":function(e,t,n){"use strict";e.exports=function(e){return null===e||void 0===e}},"0b7b":function(e,t,n){"use strict";var r=n("8f95"),o=n("f8b6"),a=n("0b1d"),i=n("7463"),s=n("0363"),c=s("iterator");e.exports=function(e){if(!a(e))return o(e,c)||o(e,"@@iterator")||i[r(e)]}},"0c24":function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return s}));var r=n("7d20");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},a=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),i=(e,t)=>(e.install=n=>{n.directive(t,e)},e),s=e=>(e.install=r["NOOP"],e)},"0c33":function(e,t,n){"use strict";n("25a6");var r=n("a169");e.exports=r("Array").some},"0c57":function(e,t,n){"use strict";var r=n("a5eb"),o=n("7042"),a=n("baa7").CONSTRUCTOR,i=n("96ed"),s=n("9883"),c=n("fb2d"),l=n("fdbe"),u=i&&i.prototype;if(r({target:"Promise",proto:!0,forced:a,real:!0},{catch:function(e){return this.then(void 0,e)}}),!o&&c(i)){var d=s("Promise").prototype["catch"];u["catch"]!==d&&l(u,"catch",d,{unsafe:!0})}},"0c9f":function(e,t,n){"use strict";var r=n("7106"),o=n("0e6f"),a=n("437b"),i=n("2e13"),s=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in s||o(e,"flags")||!a(s,e)?t:r(i,e)}},"0ca8":function(e,t,n){"use strict";var r=n("ce18"),o=n("6220"),a=n("fb2d"),i=n("fc48"),s=n("8c12"),c=r([].push);e.exports=function(e){if(a(e))return e;if(o(e)){for(var t=e.length,n=[],r=0;r<t;r++){var l=e[r];"string"==typeof l?c(n,l):"number"!=typeof l&&"Number"!=i(l)&&"String"!=i(l)||c(n,s(l))}var u=n.length,d=!0;return function(e,t){if(d)return d=!1,t;if(o(this))return t;for(var r=0;r<u;r++)if(n[r]===e)return t}}}},"0caa":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
function t(e,t,n,r){var o={s:["thoddea sekondamni","thodde sekond"],ss:[e+" sekondamni",e+" sekond"],m:["eka mintan","ek minut"],mm:[e+" mintamni",e+" mintam"],h:["eka voran","ek vor"],hh:[e+" voramni",e+" voram"],d:["eka disan","ek dis"],dd:[e+" disamni",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineamni",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsamni",e+" vorsam"]};return r?o[n][0]:o[n][1]}var n=e.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,t){switch(t){case"D":return e+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokallim"===t?e:"donparam"===t?e>12?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"rati":e<12?"sokallim":e<16?"donparam":e<20?"sanje":"rati"}});return n}))},"0cae":function(e,t,n){"use strict";var r=n("a5eb"),o=n("3ac6"),a=n("6594"),i=n("06fa"),s=n("0273"),c=n("5b57"),l=n("5f7d"),u=n("fb2d"),d=n("dfdb"),p=n("2874"),f=n("4180").f,h=n("dee0").forEach,m=n("c1b2"),v=n("2f5a"),g=v.set,_=v.getterFor;e.exports=function(e,t,n){var v,y=-1!==e.indexOf("Map"),b=-1!==e.indexOf("Weak"),O=y?"set":"add",M=o[e],k=M&&M.prototype,C={};if(m&&u(M)&&(b||k.forEach&&!i((function(){(new M).entries().next()})))){v=t((function(t,n){g(l(t,w),{type:e,collection:new M}),void 0!=n&&c(n,t[O],{that:t,AS_ENTRIES:y})}));var w=v.prototype,I=_(e);h(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(e){var t="add"==e||"set"==e;!(e in k)||b&&"clear"==e||s(w,e,(function(n,r){var o=I(this).collection;if(!t&&b&&!d(n))return"get"==e&&void 0;var a=o[e](0===n?0:n,r);return t?this:a}))})),b||f(w,"size",{configurable:!0,get:function(){return I(this).collection.size}})}else v=n.getConstructor(t,e,y,O),a.enable();return p(v,e,!1,!0),C[e]=v,r({global:!0,forced:!0},C),b||n.setStrong(v,e,y),v}},"0cf0":function(e,t,n){"use strict";var r=n("b323"),o=n("9e57"),a=o.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,a)}},"0cfb":function(e,t,n){"use strict";var r=n("83ab"),o=n("d039"),a=n("cc12");e.exports=!r&&!o((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},"0d26":function(e,t,n){"use strict";var r=n("a902");e.exports=r},"0d26b":function(e,t,n){"use strict";var r=n("e330"),o=Error,a=r("".replace),i=function(e){return String(o(e).stack)}("zxcasd"),s=/\n\s*at [^:]*:[^\n]*/,c=s.test(i);e.exports=function(e,t){if(c&&"string"==typeof e&&!o.prepareStackTrace)while(t--)e=a(e,s,"");return e}},"0d51":function(e,t,n){"use strict";var r=String;e.exports=function(e){try{return r(e)}catch(t){return"Object"}}},"0dc8":function(e,t,n){e.exports=n("fc754")},"0df6":function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},"0e43":function(e,t,n){"use strict";var r=n("a38c");e.exports=r},"0e49":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}});return t}))},"0e67":function(e,t,n){"use strict";var r=n("f94a");r("iterator")},"0e69":function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return f})),n.d(t,"c",(function(){return p})),n.d(t,"d",(function(){return l})),n.d(t,"e",(function(){return d}));var r=n("83ec"),o=(n("bfce"),n("8afb")),a=n("0931"),i=n("7d20");const s="utils/dom/style",c=(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)},u=(e,t)=>{e&&t.trim()&&e.classList.add(...c(t))},d=(e,t)=>{e&&t.trim()&&e.classList.remove(...c(t))},p=(e,t)=>{var n;if(!a["isClient"]||!e||!t)return"";let r=Object(i["camelize"])(t);"float"===r&&(r="cssFloat");try{const t=e.style[r];if(t)return t;const o=null==(n=document.defaultView)?void 0:n.getComputedStyle(e,"");return o?o[r]:""}catch(o){return e.style[r]}};function f(e,t="px"){return e?Object(r["d"])(e)||Object(r["f"])(e)?`${e}${t}`:Object(i["isString"])(e)?e:void Object(o["a"])(s,"binding value must be a string or number"):""}},"0e6b":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:0,doy:4}});return t}))},"0e6f":function(e,t,n){"use strict";var r=n("ce18"),o=n("4fff"),a=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return a(o(e),t)}},"0e81":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"},n=e.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_Çar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),meridiem:function(e,t,n){return e<12?n?"öö":"ÖÖ":n?"ös":"ÖS"},meridiemParse:/öö|ÖÖ|ös|ÖS/,isPM:function(e){return"ös"===e||"ÖS"===e},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'ıncı";var r=e%10,o=e%100-r,a=e>=100?100:null;return e+(t[r]||t[o]||t[a])}},week:{dow:1,doy:7}});return n}))},"0f14":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return t}))},"0f38":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}});return t}))},"0f3d":function(e,t,n){"use strict";(function(e){function n(){return n=Object.assign?Object.assign.bind():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},n.apply(this,arguments)}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,a(e,t)}function o(e){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}function i(){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 s(e,t,n){return s=i()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=Function.bind.apply(e,r),i=new o;return n&&a(i,n.prototype),i},s.apply(null,arguments)}function c(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function l(e){var t="function"===typeof Map?new Map:void 0;return l=function(e){if(null===e||!c(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 s(e,arguments,o(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),a(n,e)},l(e)}Object.defineProperty(t,"__esModule",{value:!0});var u=/%[sdj%]/g,d=function(){};function p(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 f(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,a=n.length;if("function"===typeof e)return e.apply(null,n);if("string"===typeof e){var i=e.replace(u,(function(e){if("%%"===e)return"%";if(o>=a)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(t){return"[Circular]"}break;default:return e}}));return i}return e}function h(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}function m(e,t){return void 0===e||null===e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!h(t)||"string"!==typeof e||e))}function v(e,t,n){var r=[],o=0,a=e.length;function i(e){r.push.apply(r,e||[]),o++,o===a&&n(r)}e.forEach((function(e){t(e,i)}))}function g(e,t,n){var r=0,o=e.length;function a(i){if(i&&i.length)n(i);else{var s=r;r+=1,s<o?t(e[s],a):n([])}}a([])}function _(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,e[n]||[])})),t}"undefined"!==typeof e&&Object({NODE_ENV:"production",BASE_URL:""});var y=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 r(t,e),t}(l(Error));function b(e,t,n,r,o){if(t.first){var a=new Promise((function(t,a){var i=function(e){return r(e),e.length?a(new y(e,p(e))):t(o)},s=_(e);g(s,n,i)}));return a["catch"]((function(e){return e})),a}var i=!0===t.firstFields?Object.keys(e):t.firstFields||[],s=Object.keys(e),c=s.length,l=0,u=[],d=new Promise((function(t,a){var d=function(e){if(u.push.apply(u,e),l++,l===c)return r(u),u.length?a(new y(u,p(u))):t(o)};s.length||(r(u),t(o)),s.forEach((function(t){var r=e[t];-1!==i.indexOf(t)?g(r,n,d):v(r,n,d)}))}));return d["catch"]((function(e){return e})),d}function O(e){return!(!e||void 0===e.message)}function M(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 k(e,t){return function(n){var r;return r=e.fullFields?M(t,e.fullFields):t[n.field||e.fullField],O(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 C(e,t){if(t)for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];"object"===typeof o&&"object"===typeof e[r]?e[r]=n({},e[r],o):e[r]=o}return e}var w,I=function(e,t,n,r,o,a){!e.required||n.hasOwnProperty(e.field)&&!m(t,a||e.type)||r.push(f(o.messages.required,e.fullField))},S=function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(f(o.messages.whitespace,e.fullField))},T=function(){if(w)return w;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=("\n(?:\n(?:"+r+":){7}(?:"+r+"|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:"+r+":){6}(?:"+n+"|:"+r+"|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:"+r+":){5}(?::"+n+"|(?::"+r+"){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:"+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+"){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:"+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+"){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:"+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+"){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:"+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+"){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::"+r+"){0,5}:"+n+"|(?::"+r+"){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),a=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),i=new RegExp("^"+n+"$"),s=new RegExp("^"+o+"$"),c=function(e){return e&&e.exact?a:new RegExp("(?:"+t(e)+n+t(e)+")|(?:"+t(e)+o+t(e)+")","g")};c.v4=function(e){return e&&e.exact?i:new RegExp(""+t(e)+n+t(e),"g")},c.v6=function(e){return e&&e.exact?s:new RegExp(""+t(e)+o+t(e),"g")};var l="(?:(?:[a-z]+:)?//)",u="(?:\\S+(?::\\S*)?@)?",d=c.v4().source,p=c.v6().source,f="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",h="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",m="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",v="(?::\\d{2,5})?",g='(?:[/?#][^\\s"]*)?',_="(?:"+l+"|www\\.)"+u+"(?:localhost|"+d+"|"+p+"|"+f+h+m+")"+v+g;return w=new RegExp("(?:^"+_+"$)","i"),w},E={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,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},j={integer:function(e){return j.number(e)&&parseInt(e,10)===e},float:function(e){return j.number(e)&&!j.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(t){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&&!j.array(e)},method:function(e){return"function"===typeof e},email:function(e){return"string"===typeof e&&e.length<=320&&!!e.match(E.email)},url:function(e){return"string"===typeof e&&e.length<=2048&&!!e.match(T())},hex:function(e){return"string"===typeof e&&!!e.match(E.hex)}},D=function(e,t,n,r,o){if(e.required&&void 0===t)I(e,t,n,r,o);else{var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],i=e.type;a.indexOf(i)>-1?j[i](t)||r.push(f(o.messages.types[i],e.fullField,e.type)):i&&typeof t!==e.type&&r.push(f(o.messages.types[i],e.fullField,e.type))}},L=function(e,t,n,r,o){var a="number"===typeof e.len,i="number"===typeof e.min,s="number"===typeof e.max,c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,l=t,u=null,d="number"===typeof t,p="string"===typeof t,h=Array.isArray(t);if(d?u="number":p?u="string":h&&(u="array"),!u)return!1;h&&(l=t.length),p&&(l=t.replace(c,"_").length),a?l!==e.len&&r.push(f(o.messages[u].len,e.fullField,e.len)):i&&!s&&l<e.min?r.push(f(o.messages[u].min,e.fullField,e.min)):s&&!i&&l>e.max?r.push(f(o.messages[u].max,e.fullField,e.max)):i&&s&&(l<e.min||l>e.max)&&r.push(f(o.messages[u].range,e.fullField,e.min,e.max))},A="enum",N=function(e,t,n,r,o){e[A]=Array.isArray(e[A])?e[A]:[],-1===e[A].indexOf(t)&&r.push(f(o.messages[A],e.fullField,e[A].join(", ")))},x=function(e,t,n,r,o){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(f(o.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"===typeof e.pattern){var a=new RegExp(e.pattern);a.test(t)||r.push(f(o.messages.pattern.mismatch,e.fullField,t,e.pattern))}},R={required:I,whitespace:S,type:D,range:L,enum:N,pattern:x},P=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(m(t,"string")&&!e.required)return n();R.required(e,t,r,a,o,"string"),m(t,"string")||(R.type(e,t,r,a,o),R.range(e,t,r,a,o),R.pattern(e,t,r,a,o),!0===e.whitespace&&R.whitespace(e,t,r,a,o))}n(a)},U=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(m(t)&&!e.required)return n();R.required(e,t,r,a,o),void 0!==t&&R.type(e,t,r,a,o)}n(a)},V=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(""===t&&(t=void 0),m(t)&&!e.required)return n();R.required(e,t,r,a,o),void 0!==t&&(R.type(e,t,r,a,o),R.range(e,t,r,a,o))}n(a)},B=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(m(t)&&!e.required)return n();R.required(e,t,r,a,o),void 0!==t&&R.type(e,t,r,a,o)}n(a)},F=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(m(t)&&!e.required)return n();R.required(e,t,r,a,o),m(t)||R.type(e,t,r,a,o)}n(a)},G=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(m(t)&&!e.required)return n();R.required(e,t,r,a,o),void 0!==t&&(R.type(e,t,r,a,o),R.range(e,t,r,a,o))}n(a)},z=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(m(t)&&!e.required)return n();R.required(e,t,r,a,o),void 0!==t&&(R.type(e,t,r,a,o),R.range(e,t,r,a,o))}n(a)},H=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if((void 0===t||null===t)&&!e.required)return n();R.required(e,t,r,a,o,"array"),void 0!==t&&null!==t&&(R.type(e,t,r,a,o),R.range(e,t,r,a,o))}n(a)},Y=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(m(t)&&!e.required)return n();R.required(e,t,r,a,o),void 0!==t&&R.type(e,t,r,a,o)}n(a)},q="enum",W=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(m(t)&&!e.required)return n();R.required(e,t,r,a,o),void 0!==t&&R[q](e,t,r,a,o)}n(a)},K=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(m(t,"string")&&!e.required)return n();R.required(e,t,r,a,o),m(t,"string")||R.pattern(e,t,r,a,o)}n(a)},$=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(m(t,"date")&&!e.required)return n();var s;if(R.required(e,t,r,a,o),!m(t,"date"))s=t instanceof Date?t:new Date(t),R.type(e,s,r,a,o),s&&R.range(e,s.getTime(),r,a,o)}n(a)},J=function(e,t,n,r,o){var a=[],i=Array.isArray(t)?"array":typeof t;R.required(e,t,r,a,o,i),n(a)},Q=function(e,t,n,r,o){var a=e.type,i=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(m(t,a)&&!e.required)return n();R.required(e,t,r,i,o,a),m(t,a)||R.type(e,t,r,i,o)}n(i)},X=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(m(t)&&!e.required)return n();R.required(e,t,r,a,o)}n(a)},Z={string:P,method:U,number:V,boolean:B,regexp:F,integer:G,float:z,array:H,object:Y,enum:W,pattern:K,date:$,url:Q,hex:Q,email:Q,required:J,any:X};function ee(){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 te=ee(),ne=function(){function e(e){this.rules=null,this._messages=te,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=C(ee(),e)),this._messages},t.validate=function(t,r,o){var a=this;void 0===r&&(r={}),void 0===o&&(o=function(){});var i=t,s=r,c=o;if("function"===typeof s&&(c=s,s={}),!this.rules||0===Object.keys(this.rules).length)return c&&c(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=p(t),c(t,n)):c(null,i)}if(s.messages){var u=this.messages();u===te&&(u=ee()),C(u,s.messages),s.messages=u}else s.messages=this.messages();var d={},h=s.keys||Object.keys(this.rules);h.forEach((function(e){var r=a.rules[e],o=i[e];r.forEach((function(r){var s=r;"function"===typeof s.transform&&(i===t&&(i=n({},i)),o=i[e]=s.transform(o)),s="function"===typeof s?{validator:s}:n({},s),s.validator=a.getValidationMethod(s),s.validator&&(s.field=e,s.fullField=s.fullField||e,s.type=a.getType(s),d[e]=d[e]||[],d[e].push({rule:s,value:o,source:i,field:e}))}))}));var m={};return b(d,s,(function(t,r){var o,a=t.rule,c=("object"===a.type||"array"===a.type)&&("object"===typeof a.fields||"object"===typeof a.defaultField);function l(e,t){return n({},t,{fullField:a.fullField+"."+e,fullFields:a.fullFields?[].concat(a.fullFields,[e]):[e]})}function u(o){void 0===o&&(o=[]);var u=Array.isArray(o)?o:[o];!s.suppressWarning&&u.length&&e.warning("async-validator:",u),u.length&&void 0!==a.message&&(u=[].concat(a.message));var d=u.map(k(a,i));if(s.first&&d.length)return m[a.field]=1,r(d);if(c){if(a.required&&!t.value)return void 0!==a.message?d=[].concat(a.message).map(k(a,i)):s.error&&(d=[s.error(a,f(s.messages.required,a.field))]),r(d);var p={};a.defaultField&&Object.keys(t.value).map((function(e){p[e]=a.defaultField})),p=n({},p,t.rule.fields);var h={};Object.keys(p).forEach((function(e){var t=p[e],n=Array.isArray(t)?t:[t];h[e]=n.map(l.bind(null,e))}));var v=new e(h);v.messages(s.messages),t.rule.options&&(t.rule.options.messages=s.messages,t.rule.options.error=s.error),v.validate(t.value,t.rule.options||s,(function(e){var t=[];d&&d.length&&t.push.apply(t,d),e&&e.length&&t.push.apply(t,e),r(t.length?t:null)}))}else r(d)}if(c=c&&(a.required||!a.required&&t.value),a.field=t.field,a.asyncValidator)o=a.asyncValidator(a,t.value,u,t.source,s);else if(a.validator){try{o=a.validator(a,t.value,u,t.source,s)}catch(d){null==console.error||console.error(d),s.suppressValidatorError||setTimeout((function(){throw d}),0),u(d.message)}!0===o?u():!1===o?u("function"===typeof a.message?a.message(a.fullField||a.field):a.message||(a.fullField||a.field)+" fails"):o instanceof Array?u(o):o instanceof Error&&u(o.message)}o&&o.then&&o.then((function(){return u()}),(function(e){return u(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&&!Z.hasOwnProperty(e.type))throw new Error(f("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]?Z.required:Z[this.getType(e)]||void 0},e}();ne.register=function(e,t){if("function"!==typeof t)throw new Error("Cannot register a validator by type, validator is not a function");Z[e]=t},ne.warning=d,ne.messages=te,ne.validators=Z,t["default"]=ne}).call(this,n("4362"))},"0f59":function(e,t,n){"use strict";var r=n("9717");e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},"0f7c":function(e,t,n){"use strict";var r=n("688e");e.exports=Function.prototype.bind||r},"0f7c3":function(e,t,n){"use strict";var r=n("a5eb"),o=n("3ac6"),a=n("7106"),i=n("ce18"),s=n("7042"),c=n("c1b2"),l=n("8c68"),u=n("06fa"),d=n("0e6f"),p=n("437b"),f=n("6f8d"),h=n("a421"),m=n("2c75"),v=n("8c12"),g=n("2c6c"),_=n("4896"),y=n("a016"),b=n("0cf0"),O=n("8e11"),M=n("a205"),k=n("44ba"),C=n("4180"),w=n("c230"),I=n("7043"),S=n("fdbe"),T=n("2296"),E=n("d659"),j=n("b2ed"),D=n("6e9a"),L=n("3e80"),A=n("0363"),N=n("beea"),x=n("f94a"),R=n("bc31"),P=n("2874"),U=n("2f5a"),V=n("dee0").forEach,B=j("hidden"),F="Symbol",G="prototype",z=U.set,H=U.getterFor(F),Y=Object[G],q=o.Symbol,W=q&&q[G],K=o.TypeError,$=o.QObject,J=k.f,Q=C.f,X=O.f,Z=I.f,ee=i([].push),te=E("symbols"),ne=E("op-symbols"),re=E("wks"),oe=!$||!$[G]||!$[G].findChild,ae=c&&u((function(){return 7!=_(Q({},"a",{get:function(){return Q(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=J(Y,t);r&&delete Y[t],Q(e,t,n),r&&e!==Y&&Q(Y,t,r)}:Q,ie=function(e,t){var n=te[e]=_(W);return z(n,{type:F,tag:e,description:t}),c||(n.description=t),n},se=function(e,t,n){e===Y&&se(ne,t,n),f(e);var r=m(t);return f(n),d(te,r)?(n.enumerable?(d(e,B)&&e[B][r]&&(e[B][r]=!1),n=_(n,{enumerable:g(0,!1)})):(d(e,B)||Q(e,B,g(1,{})),e[B][r]=!0),ae(e,r,n)):Q(e,r,n)},ce=function(e,t){f(e);var n=h(t),r=y(n).concat(fe(n));return V(r,(function(t){c&&!a(ue,n,t)||se(e,t,n[t])})),e},le=function(e,t){return void 0===t?_(e):ce(_(e),t)},ue=function(e){var t=m(e),n=a(Z,this,t);return!(this===Y&&d(te,t)&&!d(ne,t))&&(!(n||!d(this,t)||!d(te,t)||d(this,B)&&this[B][t])||n)},de=function(e,t){var n=h(e),r=m(t);if(n!==Y||!d(te,r)||d(ne,r)){var o=J(n,r);return!o||!d(te,r)||d(n,B)&&n[B][r]||(o.enumerable=!0),o}},pe=function(e){var t=X(h(e)),n=[];return V(t,(function(e){d(te,e)||d(D,e)||ee(n,e)})),n},fe=function(e){var t=e===Y,n=X(t?ne:h(e)),r=[];return V(n,(function(e){!d(te,e)||t&&!d(Y,e)||ee(r,te[e])})),r};l||(q=function(){if(p(W,this))throw K("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?v(arguments[0]):void 0,t=L(e),n=function(e){this===Y&&a(n,ne,e),d(this,B)&&d(this[B],t)&&(this[B][t]=!1),ae(this,t,g(1,e))};return c&&oe&&ae(Y,t,{configurable:!0,set:n}),ie(t,e)},W=q[G],S(W,"toString",(function(){return H(this).tag})),S(q,"withoutSetter",(function(e){return ie(L(e),e)})),I.f=ue,C.f=se,w.f=ce,k.f=de,b.f=O.f=pe,M.f=fe,N.f=function(e){return ie(A(e),e)},c&&(T(W,"description",{configurable:!0,get:function(){return H(this).description}}),s||S(Y,"propertyIsEnumerable",ue,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!l,sham:!l},{Symbol:q}),V(y(re),(function(e){x(e)})),r({target:F,stat:!0,forced:!l},{useSetter:function(){oe=!0},useSimple:function(){oe=!1}}),r({target:"Object",stat:!0,forced:!l,sham:!c},{create:le,defineProperty:se,defineProperties:ce,getOwnPropertyDescriptor:de}),r({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:pe}),R(),P(q,F),D[B]=!0},"0fd4":function(e,t,n){"use strict";var r="object"==typeof document&&document.all,o="undefined"==typeof r&&void 0!==r;e.exports={all:r,IS_HTMLDDA:o}},"0ff2":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return t}))},1096:function(e,t,n){"use strict";n("be70");var r=n("0974");e.exports=r},"10e8":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e,t,n){return e<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",w:"1 สัปดาห์",ww:"%d สัปดาห์",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}});return t}))},"10fa":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("9ff4");let o;class a{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=o,!e&&o&&(this.index=(o.scopes||(o.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=o;try{return o=this,e()}finally{o=t}}}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.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0,this._active=!1}}}function i(e){return new a(e)}function s(e,t=o){t&&t.active&&t.effects.push(e)}function c(){return o}function l(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 _=30;let y;const b=Symbol(""),O=Symbol("");class M{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=y,t=I;while(e){if(e===this)return;e=e.parent}try{return this.parent=y,y=this,I=!0,g=1<<++v,v<=_?f(this):k(this),this.fn()}finally{v<=_&&h(this),g=1<<--v,y=this.parent,I=t,this.parent=void 0,this.deferStop&&this.stop()}}stop(){y===this?this.deferStop=!0:this.active&&(k(this),this.onStop&&this.onStop(),this.active=!1)}}function k(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}function C(e,t){e.effect&&(e=e.effect.fn);const n=new M(e);t&&(r.extend(n,t),t.scope&&s(n,t.scope)),t&&t.lazy||n.run();const o=n.run.bind(n);return o.effect=n,o}function w(e){e.effect.stop()}let I=!0;const S=[];function T(){S.push(I),I=!1}function E(){S.push(I),I=!0}function j(){const e=S.pop();I=void 0===e||e}function D(e,t,n){if(I&&y){let t=m.get(e);t||m.set(e,t=new Map);let r=t.get(n);r||t.set(n,r=u()),L(r)}}function L(e,t){let n=!1;v<=_?p(e)||(e.n|=g,n=!d(e)):n=!e.has(y),n&&(e.add(y),y.deps.push(e))}function A(e,t,n,o,a,i){const s=m.get(e);if(!s)return;let c=[];if("clear"===t)c=[...s.values()];else if("length"===n&&r.isArray(e)){const e=Number(o);s.forEach((t,n)=>{("length"===n||n>=e)&&c.push(t)})}else switch(void 0!==n&&c.push(s.get(n)),t){case"add":r.isArray(e)?r.isIntegerKey(n)&&c.push(s.get("length")):(c.push(s.get(b)),r.isMap(e)&&c.push(s.get(O)));break;case"delete":r.isArray(e)||(c.push(s.get(b)),r.isMap(e)&&c.push(s.get(O)));break;case"set":r.isMap(e)&&c.push(s.get(b));break}if(1===c.length)c[0]&&N(c[0]);else{const e=[];for(const t of c)t&&e.push(...t);N(u(e))}}function N(e,t){const n=r.isArray(e)?e:[...e];for(const r of n)r.computed&&x(r);for(const r of n)r.computed||x(r)}function x(e,t){(e!==y||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function R(e,t){var n;return null==(n=m.get(e))?void 0:n.get(t)}const P=r.makeMap("__proto__,__v_isRef,__isVue"),U=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(r.isSymbol)),V=q(),B=q(!1,!0),F=q(!0),G=q(!0,!0),z=H();function H(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...e){const n=Be(this);for(let t=0,o=this.length;t<o;t++)D(n,"get",t+"");const r=n[t](...e);return-1===r||!1===r?n[t](...e.map(Be)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...e){T();const n=Be(this)[t].apply(this,e);return j(),n}}),e}function Y(e){const t=Be(this);return D(t,"has",e),t.hasOwnProperty(e)}function q(e=!1,t=!1){return function(n,o,a){if("__v_isReactive"===o)return!e;if("__v_isReadonly"===o)return e;if("__v_isShallow"===o)return t;if("__v_raw"===o&&a===(e?t?Te:Se:t?Ie:we).get(n))return n;const i=r.isArray(n);if(!e){if(i&&r.hasOwn(z,o))return Reflect.get(z,o,a);if("hasOwnProperty"===o)return Y}const s=Reflect.get(n,o,a);return(r.isSymbol(o)?U.has(o):P(o))?s:(e||D(n,"get",o),t?s:qe(s)?i&&r.isIntegerKey(o)?s:s.value:r.isObject(s)?e?Ae(s):De(s):s)}}const W=$(),K=$(!0);function $(e=!1){return function(t,n,o,a){let i=t[n];if(Pe(i)&&qe(i)&&!qe(o))return!1;if(!e&&(Ue(o)||Pe(o)||(i=Be(i),o=Be(o)),!r.isArray(t)&&qe(i)&&!qe(o)))return i.value=o,!0;const s=r.isArray(t)&&r.isIntegerKey(n)?Number(n)<t.length:r.hasOwn(t,n),c=Reflect.set(t,n,o,a);return t===Be(a)&&(s?r.hasChanged(o,i)&&A(t,"set",n,o):A(t,"add",n,o)),c}}function J(e,t){const n=r.hasOwn(e,t);e[t];const o=Reflect.deleteProperty(e,t);return o&&n&&A(e,"delete",t,void 0),o}function Q(e,t){const n=Reflect.has(e,t);return r.isSymbol(t)&&U.has(t)||D(e,"has",t),n}function X(e){return D(e,"iterate",r.isArray(e)?"length":b),Reflect.ownKeys(e)}const Z={get:V,set:W,deleteProperty:J,has:Q,ownKeys:X},ee={get:F,set(e,t){return!0},deleteProperty(e,t){return!0}},te=r.extend({},Z,{get:B,set:K}),ne=r.extend({},ee,{get:G}),re=e=>e,oe=e=>Reflect.getPrototypeOf(e);function ae(e,t,n=!1,r=!1){e=e["__v_raw"];const o=Be(e),a=Be(t);n||(t!==a&&D(o,"get",t),D(o,"get",a));const{has:i}=oe(o),s=r?re:n?ze:Ge;return i.call(o,t)?s(e.get(t)):i.call(o,a)?s(e.get(a)):void(e!==o&&e.get(t))}function ie(e,t=!1){const n=this["__v_raw"],r=Be(n),o=Be(e);return t||(e!==o&&D(r,"has",e),D(r,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function se(e,t=!1){return e=e["__v_raw"],!t&&D(Be(e),"iterate",b),Reflect.get(e,"size",e)}function ce(e){e=Be(e);const t=Be(this),n=oe(t),r=n.has.call(t,e);return r||(t.add(e),A(t,"add",e,e)),this}function le(e,t){t=Be(t);const n=Be(this),{has:o,get:a}=oe(n);let i=o.call(n,e);i||(e=Be(e),i=o.call(n,e));const s=a.call(n,e);return n.set(e,t),i?r.hasChanged(t,s)&&A(n,"set",e,t):A(n,"add",e,t),this}function ue(e){const t=Be(this),{has:n,get:r}=oe(t);let o=n.call(t,e);o||(e=Be(e),o=n.call(t,e)),r&&r.call(t,e);const a=t.delete(e);return o&&A(t,"delete",e,void 0),a}function de(){const e=Be(this),t=0!==e.size,n=e.clear();return t&&A(e,"clear",void 0,void 0),n}function pe(e,t){return function(n,r){const o=this,a=o["__v_raw"],i=Be(a),s=t?re:e?ze:Ge;return!e&&D(i,"iterate",b),a.forEach((e,t)=>n.call(r,s(e),s(t),o))}}function fe(e,t,n){return function(...o){const a=this["__v_raw"],i=Be(a),s=r.isMap(i),c="entries"===e||e===Symbol.iterator&&s,l="keys"===e&&s,u=a[e](...o),d=n?re:t?ze:Ge;return!t&&D(i,"iterate",l?O:b),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:c?[d(e[0]),d(e[1])]:d(e),done:t}},[Symbol.iterator](){return this}}}}function he(e){return function(...t){return"delete"!==e&&this}}function me(){const e={get(e){return ae(this,e)},get size(){return se(this)},has:ie,add:ce,set:le,delete:ue,clear:de,forEach:pe(!1,!1)},t={get(e){return ae(this,e,!1,!0)},get size(){return se(this)},has:ie,add:ce,set:le,delete:ue,clear:de,forEach:pe(!1,!0)},n={get(e){return ae(this,e,!0)},get size(){return se(this,!0)},has(e){return ie.call(this,e,!0)},add:he("add"),set:he("set"),delete:he("delete"),clear:he("clear"),forEach:pe(!0,!1)},r={get(e){return ae(this,e,!0,!0)},get size(){return se(this,!0)},has(e){return ie.call(this,e,!0)},add:he("add"),set:he("set"),delete:he("delete"),clear:he("clear"),forEach:pe(!0,!0)},o=["keys","values","entries",Symbol.iterator];return o.forEach(o=>{e[o]=fe(o,!1,!1),n[o]=fe(o,!0,!1),t[o]=fe(o,!1,!0),r[o]=fe(o,!0,!0)}),[e,n,t,r]}const[ve,ge,_e,ye]=me();function be(e,t){const n=t?e?ye:_e:e?ge:ve;return(t,o,a)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(r.hasOwn(n,o)&&o in t?n:t,o,a)}const Oe={get:be(!1,!1)},Me={get:be(!1,!0)},ke={get:be(!0,!1)},Ce={get:be(!0,!0)},we=new WeakMap,Ie=new WeakMap,Se=new WeakMap,Te=new WeakMap;function Ee(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function je(e){return e["__v_skip"]||!Object.isExtensible(e)?0:Ee(r.toRawType(e))}function De(e){return Pe(e)?e:xe(e,!1,Z,Oe,we)}function Le(e){return xe(e,!1,te,Me,Ie)}function Ae(e){return xe(e,!0,ee,ke,Se)}function Ne(e){return xe(e,!0,ne,Ce,Te)}function xe(e,t,n,o,a){if(!r.isObject(e))return e;if(e["__v_raw"]&&(!t||!e["__v_isReactive"]))return e;const i=a.get(e);if(i)return i;const s=je(e);if(0===s)return e;const c=new Proxy(e,2===s?o:n);return a.set(e,c),c}function Re(e){return Pe(e)?Re(e["__v_raw"]):!(!e||!e["__v_isReactive"])}function Pe(e){return!(!e||!e["__v_isReadonly"])}function Ue(e){return!(!e||!e["__v_isShallow"])}function Ve(e){return Re(e)||Pe(e)}function Be(e){const t=e&&e["__v_raw"];return t?Be(t):e}function Fe(e){return r.def(e,"__v_skip",!0),e}const Ge=e=>r.isObject(e)?De(e):e,ze=e=>r.isObject(e)?Ae(e):e;function He(e){I&&y&&(e=Be(e),L(e.dep||(e.dep=u())))}function Ye(e,t){e=Be(e);const n=e.dep;n&&N(n)}function qe(e){return!(!e||!0!==e.__v_isRef)}function We(e){return $e(e,!1)}function Ke(e){return $e(e,!0)}function $e(e,t){return qe(e)?e:new Je(e,t)}class Je{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Be(e),this._value=t?e:Ge(e)}get value(){return He(this),this._value}set value(e){const t=this.__v_isShallow||Ue(e)||Pe(e);e=t?e:Be(e),r.hasChanged(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:Ge(e),Ye(this))}}function Qe(e){Ye(e)}function Xe(e){return qe(e)?e.value:e}function Ze(e){return r.isFunction(e)?e():Xe(e)}const et={get:(e,t,n)=>Xe(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return qe(o)&&!qe(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function tt(e){return Re(e)?e:new Proxy(e,et)}class nt{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:t,set:n}=e(()=>He(this),()=>Ye(this));this._get=t,this._set=n}get value(){return this._get()}set value(e){this._set(e)}}function rt(e){return new nt(e)}function ot(e){const t=r.isArray(e)?new Array(e.length):{};for(const n in e)t[n]=ct(e,n);return t}class at{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}get dep(){return R(Be(this._object),this._key)}}class it{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function st(e,t,n){return qe(e)?e:r.isFunction(e)?new it(e):r.isObject(e)&&arguments.length>1?ct(e,t,n):We(e)}function ct(e,t,n){const r=e[t];return qe(r)?r:new at(e,t,n)}class lt{constructor(e,t,n,r){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this["__v_isReadonly"]=!1,this._dirty=!0,this.effect=new M(e,()=>{this._dirty||(this._dirty=!0,Ye(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this["__v_isReadonly"]=n}get value(){const e=Be(this);return He(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function ut(e,t,n=!1){let o,a;const i=r.isFunction(e);i?(o=e,a=r.NOOP):(o=e.get,a=e.set);const s=new lt(o,a,i||!a,n);return s}const dt=Promise.resolve(),pt=[];let ft=!1;const ht=e=>{pt.push(e),ft||(ft=!0,dt.then(mt))},mt=()=>{for(let e=0;e<pt.length;e++)pt[e]();pt.length=0,ft=!1};class vt{constructor(e){let t;this.dep=void 0,this._dirty=!0,this.__v_isRef=!0,this["__v_isReadonly"]=!0;let n=!1,r=!1;this.effect=new M(e,e=>{if(this.dep){if(e)t=this._value,n=!0;else if(!r){const e=n?t:this._value;r=!0,n=!1,ht(()=>{this.effect.active&&this._get()!==e&&Ye(this),r=!1})}for(const e of this.dep)e.computed instanceof vt&&e.scheduler(!0)}this._dirty=!0}),this.effect.computed=this}_get(){return this._dirty?(this._dirty=!1,this._value=this.effect.run()):this._value}get value(){return He(this),Be(this)._get()}}function gt(e){return new vt(e)}t.EffectScope=a,t.ITERATE_KEY=b,t.ReactiveEffect=M,t.computed=ut,t.customRef=rt,t.deferredComputed=gt,t.effect=C,t.effectScope=i,t.enableTracking=E,t.getCurrentScope=c,t.isProxy=Ve,t.isReactive=Re,t.isReadonly=Pe,t.isRef=qe,t.isShallow=Ue,t.markRaw=Fe,t.onScopeDispose=l,t.pauseTracking=T,t.proxyRefs=tt,t.reactive=De,t.readonly=Ae,t.ref=We,t.resetTracking=j,t.shallowReactive=Le,t.shallowReadonly=Ne,t.shallowRef=Ke,t.stop=w,t.toRaw=Be,t.toRef=st,t.toRefs=ot,t.toValue=Ze,t.track=D,t.trigger=A,t.triggerRef=Qe,t.unref=Xe},1127:function(e,t,n){"use strict";function r(e,t){a(e)&&(e="100%");var n=i(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 a(e){return"string"===typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)}function i(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 c(e){return e<=1?"".concat(100*Number(e),"%"):e}function l(e){return 1===e.length?"0"+e:String(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.pad2=t.convertToPercentage=t.boundAlpha=t.isPercentage=t.isOnePointZero=t.clamp01=t.bound01=void 0,t.bound01=r,t.clamp01=o,t.isOnePointZero=a,t.isPercentage=i,t.boundAlpha=s,t.convertToPercentage=c,t.pad2=l},1175:function(e,t,n){"use strict";e.exports=n("10fa")},"11f2":function(e,t,n){"use strict";var r=n("a5eb"),o=n("9883"),a=n("0e6f"),i=n("8c12"),s=n("d659"),c=n("e0b4"),l=s("string-to-symbol-registry"),u=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!c},{for:function(e){var t=i(e);if(a(l,t))return l[t];var n=o("Symbol")(t);return l[t]=n,u[n]=t,n}})},1301:function(e,t,n){"use strict";var r=String;e.exports=function(e){try{return r(e)}catch(t){return"Object"}}},1317:function(e,t,n){"use strict";var r=n("06fa"),o=n("dfdb"),a=n("fc48"),i=n("6663"),s=Object.isExtensible,c=r((function(){s(1)}));e.exports=c||i?function(e){return!!o(e)&&((!i||"ArrayBuffer"!=a(e))&&(!s||s(e)))}:s},1344:function(e,t,n){"use strict";t["a"]=function(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)}))}}}},"13a1":function(e,t,n){"use strict";var r=n("3ac6"),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}},"13b6":function(e,t,n){"use strict";var r=n("223b");e.exports=r},"13cf":function(e,t,n){"use strict";var r=n("fc48"),o=n("ce18");e.exports=function(e){if("Function"===r(e))return o(e)}},"13d2":function(e,t,n){"use strict";var r=n("e330"),o=n("d039"),a=n("1626"),i=n("1a2d"),s=n("83ab"),c=n("5e77").CONFIGURABLE,l=n("8925"),u=n("69f3"),d=u.enforce,p=u.get,f=String,h=Object.defineProperty,m=r("".slice),v=r("".replace),g=r([].join),_=s&&!o((function(){return 8!==h((function(){}),"length",{value:8}).length})),y=String(String).split("String"),b=e.exports=function(e,t,n){"Symbol("===m(f(t),0,7)&&(t="["+v(f(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!i(e,"name")||c&&e.name!==t)&&(s?h(e,"name",{value:t,configurable:!0}):e.name=t),_&&n&&i(n,"arity")&&e.length!==n.arity&&h(e,"length",{value:n.arity});try{n&&i(n,"constructor")&&n.constructor?s&&h(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(o){}var r=d(e);return i(r,"source")||(r.source=g(y,"string"==typeof t?t:"")),e};Function.prototype.toString=b((function(){return a(this)&&p(this).source||l(this)}),"toString")},"13e9":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t={words:{ss:["секунда","секунде","секунди"],m:["један минут","једног минута"],mm:["минут","минута","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],d:["један дан","једног дана"],dd:["дан","дана","дана"],M:["један месец","једног месеца"],MM:["месец","месеца","месеци"],y:["једну годину","једне године"],yy:["годину","године","година"]},correctGrammaticalCase:function(e,t){return e%10>=1&&e%10<=4&&(e%100<10||e%100>=20)?e%10===1?t[0]:t[1]:t[2]},translate:function(e,n,r,o){var a,i=t.words[r];return 1===r.length?"y"===r&&n?"једна година":o||n?i[0]:i[1]:(a=t.correctGrammaticalCase(e,i),"yy"===r&&n&&"годину"===a?e+" година":e+" "+a)}},n=e.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){var e=["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"];return e[this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:t.translate,dd:t.translate,M:t.translate,MM:t.translate,y:t.translate,yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return n}))},1465:function(e,t,n){},"147b":function(e,t,n){"use strict";var r=n("a5eb"),o=n("dee0").filter,a=n("9c96"),i=a("filter");r({target:"Array",proto:!0,forced:!i},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},"14b1":function(e,t,n){e.exports=n("5c68")},"14d9":function(e,t,n){"use strict";var r=n("23e7"),o=n("7b0b"),a=n("07fa"),i=n("3a34"),s=n("3511"),c=n("d039"),l=c((function(){return 4294967297!==[].push.call({length:4294967296},1)})),u=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}},d=l||!u();r({target:"Array",proto:!0,arity:1,forced:d},{push:function(e){var t=o(this),n=a(t),r=arguments.length;s(n+r);for(var c=0;c<r;c++)t[n]=arguments[c],n++;return i(t,n),n}})},"14df":function(e,t,n){"use strict";var r=n("9883"),o=n("ce18"),a=n("0cf0"),i=n("a205"),s=n("6f8d"),c=o([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=a.f(s(e)),n=i.f;return n?c(t,n(e)):t}},1519:function(e,t,n){"use strict";n("bdf4");var r=n("a169");e.exports=r("Array").find},1626:function(e,t,n){"use strict";var r=n("8ea1"),o=r.all;e.exports=r.IS_HTMLDDA?function(e){return"function"==typeof e||e===o}:function(e){return"function"==typeof e}},"167b":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("oc-lnc",{months:{standalone:"genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre".split("_"),format:"de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[uèi a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[ièr a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}});return t}))},1696:function(e,t,n){"use strict";e.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;var r=42;for(t in e[t]=r,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,t);if(a.value!==r||!0!==a.enumerable)return!1}return!0}},"17c1":function(e,t,n){"use strict";var r=n("bcb4");n("5145"),e.exports=r},"182d":function(e,t,n){"use strict";var r=n("f8cd"),o=RangeError;e.exports=function(e,t){var n=r(e);if(n%t)throw o("Wrong offset");return n}},1875:function(e,t,n){"use strict";var r=n("0b1d"),o=TypeError;e.exports=function(e){if(r(e))throw o("Can't call method on "+e);return e}},1909:function(e,t,n){"use strict";var r=n("a493");e.exports=r},1967:function(e,t,n){"use strict";var r=n("3ac6"),o=n("06fa"),a=n("ce18"),i=n("8c12"),s=n("ff96").trim,c=n("81f0"),l=r.parseInt,u=r.Symbol,d=u&&u.iterator,p=/^[+-]?0x/i,f=a(p.exec),h=8!==l(c+"08")||22!==l(c+"0x16")||d&&!o((function(){l(Object(d))}));e.exports=h?function(e,t){var n=s(i(e));return l(n,t>>>0||(f(p,n)?16:10))}:l},"1a2d":function(e,t,n){"use strict";var r=n("e330"),o=n("7b0b"),a=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return a(o(e),t)}},"1ac8":function(e,t,n){!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}}}))},"1ad4":function(e,t,n){"use strict";n.d(t,"a",(function(){return Bn})),n.d(t,"b",(function(){return Be})),n.d(t,"c",(function(){return zn})),n.d(t,"d",(function(){return Yn})),n.d(t,"e",(function(){return qn})),n.d(t,"f",(function(){return sn})),n.d(t,"g",(function(){return lt})),n.d(t,"h",(function(){return he})),n.d(t,"i",(function(){return Fn})),n.d(t,"j",(function(){return cn}));for(var r=n("7c31"),o=n("eb54"),a={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},i={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},s="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),c="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),l=0;l<10;l++)a[48+l]=a[96+l]=String(l);for(l=1;l<=24;l++)a[l+111]="F"+l;for(l=65;l<=90;l++)a[l]=String.fromCharCode(l+32),i[l]=String.fromCharCode(l);for(var u in a)i.hasOwnProperty(u)||(i[u]=a[u]);function d(e){var t=s&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||c&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key,n=!t&&e.key||(e.shiftKey?i:a)[e.keyCode]||e.key||"Unidentified";return"Esc"==n&&(n="Escape"),"Del"==n&&(n="Delete"),"Left"==n&&(n="ArrowLeft"),"Up"==n&&(n="ArrowUp"),"Right"==n&&(n="ArrowRight"),"Down"==n&&(n="ArrowDown"),n}var p=n("6ffb");const f="undefined"!=typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform);function h(e){let t,n,r,o,a=e.split(/-(?!$)/),i=a[a.length-1];"Space"==i&&(i=" ");for(let s=0;s<a.length-1;s++){let e=a[s];if(/^(cmd|meta|m)$/i.test(e))o=!0;else if(/^a(lt)?$/i.test(e))t=!0;else if(/^(c|ctrl|control)$/i.test(e))n=!0;else if(/^s(hift)?$/i.test(e))r=!0;else{if(!/^mod$/i.test(e))throw new Error("Unrecognized modifier name: "+e);f?o=!0:n=!0}}return t&&(i="Alt-"+i),n&&(i="Ctrl-"+i),o&&(i="Meta-"+i),r&&(i="Shift-"+i),i}function m(e){let t=Object.create(null);for(let n in e)t[h(n)]=e[n];return t}function v(e,t,n=!0){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),n&&t.shiftKey&&(e="Shift-"+e),e}function g(e){return new p["d"]({props:{handleKeyDown:_(e)}})}function _(e){let t=m(e);return function(e,n){let r,o=d(n),i=t[v(o,n)];if(i&&i(e.state,e.dispatch,e))return!0;if(1==o.length&&" "!=o){if(n.shiftKey){let r=t[v(o,n,!1)];if(r&&r(e.state,e.dispatch,e))return!0}if((n.shiftKey||n.altKey||n.metaKey||o.charCodeAt(0)>127)&&(r=a[n.keyCode])&&r!=o){let o=t[v(r,n)];if(o&&o(e.state,e.dispatch,e))return!0}}return!1}}var y=n("6f27"),b=n("b923");const O=(e,t)=>!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function M(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("backward",e):n.parentOffset>0)?null:n}const k=(e,t,n)=>{let r=M(e,n);if(!r)return!1;let o=I(r);if(!o){let n=r.blockRange(),o=n&&Object(b["i"])(n);return null!=o&&(t&&t(e.tr.lift(n,o).scrollIntoView()),!0)}let a=o.nodeBefore;if(!a.type.spec.isolating&&H(e,o,t))return!0;if(0==r.parent.content.size&&(C(a,"end")||p["c"].isSelectable(a))){let n=Object(b["j"])(e.doc,r.before(),r.after(),y["j"].empty);if(n&&n.slice.size<n.to-n.from){if(t){let r=e.tr.step(n);r.setSelection(C(a,"end")?p["f"].findFrom(r.doc.resolve(r.mapping.map(o.pos,-1)),-1):p["c"].create(r.doc,o.pos-a.nodeSize)),t(r.scrollIntoView())}return!0}}return!(!a.isAtom||o.depth!=r.depth-1)&&(t&&t(e.tr.delete(o.pos-a.nodeSize,o.pos).scrollIntoView()),!0)};function C(e,t,n=!1){for(let r=e;r;r="start"==t?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(n&&1!=r.childCount)return!1}return!1}const w=(e,t,n)=>{let{$head:r,empty:o}=e.selection,a=r;if(!o)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):r.parentOffset>0)return!1;a=I(r)}let i=a&&a.nodeBefore;return!(!i||!p["c"].isSelectable(i))&&(t&&t(e.tr.setSelection(p["c"].create(e.doc,a.pos-i.nodeSize)).scrollIntoView()),!0)};function I(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function S(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("forward",e):n.parentOffset<n.parent.content.size)?null:n}const T=(e,t,n)=>{let r=S(e,n);if(!r)return!1;let o=j(r);if(!o)return!1;let a=o.nodeAfter;if(H(e,o,t))return!0;if(0==r.parent.content.size&&(C(a,"start")||p["c"].isSelectable(a))){let n=Object(b["j"])(e.doc,r.before(),r.after(),y["j"].empty);if(n&&n.slice.size<n.to-n.from){if(t){let r=e.tr.step(n);r.setSelection(C(a,"start")?p["f"].findFrom(r.doc.resolve(r.mapping.map(o.pos)),1):p["c"].create(r.doc,r.mapping.map(o.pos))),t(r.scrollIntoView())}return!0}}return!(!a.isAtom||o.depth!=r.depth-1)&&(t&&t(e.tr.delete(o.pos,o.pos+a.nodeSize).scrollIntoView()),!0)},E=(e,t,n)=>{let{$head:r,empty:o}=e.selection,a=r;if(!o)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",e):r.parentOffset<r.parent.content.size)return!1;a=j(r)}let i=a&&a.nodeAfter;return!(!i||!p["c"].isSelectable(i))&&(t&&t(e.tr.setSelection(p["c"].create(e.doc,a.pos)).scrollIntoView()),!0)};function j(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){let n=e.node(t);if(e.index(t)+1<n.childCount)return e.doc.resolve(e.after(t+1));if(n.type.spec.isolating)break}return null}const D=(e,t)=>{let n,r=e.selection,o=r instanceof p["c"];if(o){if(r.node.isTextblock||!Object(b["d"])(e.doc,r.from))return!1;n=r.from}else if(n=Object(b["h"])(e.doc,r.from,-1),null==n)return!1;if(t){let r=e.tr.join(n);o&&r.setSelection(p["c"].create(r.doc,n-e.doc.resolve(n).nodeBefore.nodeSize)),t(r.scrollIntoView())}return!0},L=(e,t)=>{let n,r=e.selection;if(r instanceof p["c"]){if(r.node.isTextblock||!Object(b["d"])(e.doc,r.to))return!1;n=r.to}else if(n=Object(b["h"])(e.doc,r.to,1),null==n)return!1;return t&&t(e.tr.join(n).scrollIntoView()),!0},A=(e,t)=>{let{$from:n,$to:r}=e.selection,o=n.blockRange(r),a=o&&Object(b["i"])(o);return null!=a&&(t&&t(e.tr.lift(o,a).scrollIntoView()),!0)},N=(e,t)=>{let{$head:n,$anchor:r}=e.selection;return!(!n.parent.type.spec.code||!n.sameParent(r))&&(t&&t(e.tr.insertText("\n").scrollIntoView()),!0)};function x(e){for(let t=0;t<e.edgeCount;t++){let{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}const R=(e,t)=>{let{$head:n,$anchor:r}=e.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let o=n.node(-1),a=n.indexAfter(-1),i=x(o.contentMatchAt(a));if(!i||!o.canReplaceWith(a,a,i))return!1;if(t){let r=n.after(),o=e.tr.replaceWith(r,r,i.createAndFill());o.setSelection(p["f"].near(o.doc.resolve(r),1)),t(o.scrollIntoView())}return!0},P=(e,t)=>{let n=e.selection,{$from:r,$to:o}=n;if(n instanceof p["a"]||r.parent.inlineContent||o.parent.inlineContent)return!1;let a=x(o.parent.contentMatchAt(o.indexAfter()));if(!a||!a.isTextblock)return!1;if(t){let n=(!r.parentOffset&&o.index()<o.parent.childCount?r:o).pos,i=e.tr.insert(n,a.createAndFill());i.setSelection(p["g"].create(i.doc,n+1)),t(i.scrollIntoView())}return!0},U=(e,t)=>{let{$cursor:n}=e.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let r=n.before();if(Object(b["e"])(e.doc,r))return t&&t(e.tr.split(r).scrollIntoView()),!0}let r=n.blockRange(),o=r&&Object(b["i"])(r);return null!=o&&(t&&t(e.tr.lift(r,o).scrollIntoView()),!0)};function V(e){return(t,n)=>{let{$from:r,$to:o}=t.selection;if(t.selection instanceof p["c"]&&t.selection.node.isBlock)return!(!r.parentOffset||!Object(b["e"])(t.doc,r.pos))&&(n&&n(t.tr.split(r.pos).scrollIntoView()),!0);if(!r.parent.isBlock)return!1;if(n){let a=o.parentOffset==o.parent.content.size,i=t.tr;(t.selection instanceof p["g"]||t.selection instanceof p["a"])&&i.deleteSelection();let s=0==r.depth?null:x(r.node(-1).contentMatchAt(r.indexAfter(-1))),c=e&&e(o.parent,a),l=c?[c]:a&&s?[{type:s}]:void 0,u=Object(b["e"])(i.doc,i.mapping.map(r.pos),1,l);if(l||u||!Object(b["e"])(i.doc,i.mapping.map(r.pos),1,s?[{type:s}]:void 0)||(s&&(l=[{type:s}]),u=!0),u&&(i.split(i.mapping.map(r.pos),1,l),!a&&!r.parentOffset&&r.parent.type!=s)){let e=i.mapping.map(r.before()),t=i.doc.resolve(e);s&&r.node(-1).canReplaceWith(t.index(),t.index()+1,s)&&i.setNodeMarkup(i.mapping.map(r.before()),s)}n(i.scrollIntoView())}return!0}}const B=V(),F=(e,t)=>{let n,{$from:r,to:o}=e.selection,a=r.sharedDepth(o);return 0!=a&&(n=r.before(a),t&&t(e.tr.setSelection(p["c"].create(e.doc,n))),!0)},G=(e,t)=>(t&&t(e.tr.setSelection(new p["a"](e.doc))),!0);function z(e,t,n){let r=t.nodeBefore,o=t.nodeAfter,a=t.index();return!!(r&&o&&r.type.compatibleContent(o.type))&&(!r.content.size&&t.parent.canReplace(a-1,a)?(n&&n(e.tr.delete(t.pos-r.nodeSize,t.pos).scrollIntoView()),!0):!(!t.parent.canReplace(a,a+1)||!o.isTextblock&&!Object(b["d"])(e.doc,t.pos))&&(n&&n(e.tr.clearIncompatible(t.pos,r.type,r.contentMatchAt(r.childCount)).join(t.pos).scrollIntoView()),!0))}function H(e,t,n){let r,o,a=t.nodeBefore,i=t.nodeAfter;if(a.type.spec.isolating||i.type.spec.isolating)return!1;if(z(e,t,n))return!0;let s=t.parent.canReplace(t.index(),t.index()+1);if(s&&(r=(o=a.contentMatchAt(a.childCount)).findWrapping(i.type))&&o.matchType(r[0]||i.type).validEnd){if(n){let o=t.pos+i.nodeSize,s=y["c"].empty;for(let e=r.length-1;e>=0;e--)s=y["c"].from(r[e].create(null,s));s=y["c"].from(a.copy(s));let c=e.tr.step(new b["a"](t.pos-1,o,t.pos,o,new y["j"](s,1,0),r.length,!0)),l=o+2*r.length;Object(b["d"])(c.doc,l)&&c.join(l),n(c.scrollIntoView())}return!0}let c=p["f"].findFrom(t,1),l=c&&c.$from.blockRange(c.$to),u=l&&Object(b["i"])(l);if(null!=u&&u>=t.depth)return n&&n(e.tr.lift(l,u).scrollIntoView()),!0;if(s&&C(i,"start",!0)&&C(a,"end")){let r=a,o=[];for(;;){if(o.push(r),r.isTextblock)break;r=r.lastChild}let s=i,c=1;for(;!s.isTextblock;s=s.firstChild)c++;if(r.canReplace(r.childCount,r.childCount,s.content)){if(n){let r=y["c"].empty;for(let e=o.length-1;e>=0;e--)r=y["c"].from(o[e].copy(r));let a=e.tr.step(new b["a"](t.pos-o.length,t.pos+i.nodeSize,t.pos+c,t.pos+i.nodeSize-c,new y["j"](r,o.length,0),0,!0));n(a.scrollIntoView())}return!0}}return!1}function Y(e){return function(t,n){let r=t.selection,o=e<0?r.$from:r.$to,a=o.depth;while(o.node(a).isInline){if(!a)return!1;a--}return!!o.node(a).isTextblock&&(n&&n(t.tr.setSelection(p["g"].create(t.doc,e<0?o.start(a):o.end(a)))),!0)}}const q=Y(-1),W=Y(1);function K(e,t=null){return function(n,r){let{$from:o,$to:a}=n.selection,i=o.blockRange(a),s=i&&Object(b["g"])(i,e,t);return!!s&&(r&&r(n.tr.wrap(i,s).scrollIntoView()),!0)}}function $(e,t=null){return function(n,r){let o=!1;for(let a=0;a<n.selection.ranges.length&&!o;a++){let{$from:{pos:r},$to:{pos:i}}=n.selection.ranges[a];n.doc.nodesBetween(r,i,(r,a)=>{if(o)return!1;if(r.isTextblock&&!r.hasMarkup(e,t))if(r.type==e)o=!0;else{let t=n.doc.resolve(a),r=t.index();o=t.parent.canReplaceWith(r,r+1,e)}})}if(!o)return!1;if(r){let o=n.tr;for(let r=0;r<n.selection.ranges.length;r++){let{$from:{pos:a},$to:{pos:i}}=n.selection.ranges[r];o.setBlockType(a,i,e,t)}r(o.scrollIntoView())}return!0}}function J(...e){return function(t,n,r){for(let o=0;o<e.length;o++)if(e[o](t,n,r))return!0;return!1}}let Q=J(O,k,w),X=J(O,T,E);const Z={Enter:J(N,P,U,B),"Mod-Enter":R,Backspace:Q,"Mod-Backspace":Q,"Shift-Backspace":Q,Delete:X,"Mod-Delete":X,"Mod-a":G},ee={"Ctrl-h":Z["Backspace"],"Alt-Backspace":Z["Mod-Backspace"],"Ctrl-d":Z["Delete"],"Ctrl-Alt-Backspace":Z["Mod-Delete"],"Alt-Delete":Z["Mod-Delete"],"Alt-d":Z["Mod-Delete"],"Ctrl-a":q,"Ctrl-e":W};for(let Wn in Z)ee[Wn]=Z[Wn];"undefined"!=typeof navigator?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!("undefined"==typeof os||!os.platform)&&os.platform();function te(e,t=null){return function(n,r){let{$from:o,$to:a}=n.selection,i=o.blockRange(a),s=!1,c=i;if(!i)return!1;if(i.depth>=2&&o.node(i.depth-1).type.compatibleContent(e)&&0==i.startIndex){if(0==o.index(i.depth-1))return!1;let e=n.doc.resolve(i.start-2);c=new y["g"](e,e,i.depth),i.endIndex<i.parent.childCount&&(i=new y["g"](o,n.doc.resolve(a.end(i.depth)),i.depth)),s=!0}let l=Object(b["g"])(c,e,t,i);return!!l&&(r&&r(ne(n.tr,i,l,s,e).scrollIntoView()),!0)}}function ne(e,t,n,r,o){let a=y["c"].empty;for(let u=n.length-1;u>=0;u--)a=y["c"].from(n[u].type.create(n[u].attrs,a));e.step(new b["a"](t.start-(r?2:0),t.end,t.start,t.end,new y["j"](a,0,0),n.length,!0));let i=0;for(let u=0;u<n.length;u++)n[u].type==o&&(i=u+1);let s=n.length-i,c=t.start+n.length-(r?2:0),l=t.parent;for(let u=t.startIndex,d=t.endIndex,p=!0;u<d;u++,p=!1)!p&&Object(b["e"])(e.doc,c,s)&&(e.split(c,s),c+=2*s),c+=l.child(u).nodeSize;return e}function re(e){return function(t,n){let{$from:r,$to:o}=t.selection,a=r.blockRange(o,t=>t.childCount>0&&t.firstChild.type==e);return!!a&&(!n||(r.node(a.depth-1).type==e?oe(t,n,e,a):ae(t,n,a)))}}function oe(e,t,n,r){let o=e.tr,a=r.end,i=r.$to.end(r.depth);a<i&&(o.step(new b["a"](a-1,i,a,i,new y["j"](y["c"].from(n.create(null,r.parent.copy())),1,0),1,!0)),r=new y["g"](o.doc.resolve(r.$from.pos),o.doc.resolve(i),r.depth));const s=Object(b["i"])(r);if(null==s)return!1;o.lift(r,s);let c=o.mapping.map(a,-1)-1;return Object(b["d"])(o.doc,c)&&o.join(c),t(o.scrollIntoView()),!0}function ae(e,t,n){let r=e.tr,o=n.parent;for(let f=n.end,h=n.endIndex-1,m=n.startIndex;h>m;h--)f-=o.child(h).nodeSize,r.delete(f-1,f+1);let a=r.doc.resolve(n.start),i=a.nodeAfter;if(r.mapping.map(n.end)!=n.start+a.nodeAfter.nodeSize)return!1;let s=0==n.startIndex,c=n.endIndex==o.childCount,l=a.node(-1),u=a.index(-1);if(!l.canReplace(u+(s?0:1),u+1,i.content.append(c?y["c"].empty:y["c"].from(o))))return!1;let d=a.pos,p=d+i.nodeSize;return r.step(new b["a"](d-(s?1:0),p+(c?1:0),d+1,p-1,new y["j"]((s?y["c"].empty:y["c"].from(o.copy(y["c"].empty))).append(c?y["c"].empty:y["c"].from(o.copy(y["c"].empty))),s?0:1,c?0:1),s?0:1)),t(r.scrollIntoView()),!0}function ie(e){return function(t,n){let{$from:r,$to:o}=t.selection,a=r.blockRange(o,t=>t.childCount>0&&t.firstChild.type==e);if(!a)return!1;let i=a.startIndex;if(0==i)return!1;let s=a.parent,c=s.child(i-1);if(c.type!=e)return!1;if(n){let r=c.lastChild&&c.lastChild.type==s.type,o=y["c"].from(r?e.create():null),i=new y["j"](y["c"].from(e.create(null,y["c"].from(s.type.create(null,o)))),r?3:1,0),l=a.start,u=a.end;n(t.tr.step(new b["a"](l-(r?3:1),u,l,u,i,1,!0)).scrollIntoView())}return!0}}function se(e){const{state:t,transaction:n}=e;let{selection:r}=n,{doc:o}=n,{storedMarks:a}=n;return{...t,apply:t.apply.bind(t),applyTransaction:t.applyTransaction.bind(t),filterTransaction:t.filterTransaction,plugins:t.plugins,schema:t.schema,reconfigure:t.reconfigure.bind(t),toJSON:t.toJSON.bind(t),get storedMarks(){return a},get selection(){return r},get doc(){return o},get tr(){return r=n.selection,o=n.doc,a=n.storedMarks,n}}}class ce{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:e,editor:t,state:n}=this,{view:r}=t,{tr:o}=n,a=this.buildProps(o);return Object.fromEntries(Object.entries(e).map(([e,t])=>{const n=(...e)=>{const n=t(...e)(a);return o.getMeta("preventDispatch")||this.hasCustomState||r.dispatch(o),n};return[e,n]}))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,t=!0){const{rawCommands:n,editor:r,state:o}=this,{view:a}=r,i=[],s=!!e,c=e||o.tr,l=()=>(s||!t||c.getMeta("preventDispatch")||this.hasCustomState||a.dispatch(c),i.every(e=>!0===e)),u={...Object.fromEntries(Object.entries(n).map(([e,n])=>{const r=(...e)=>{const r=this.buildProps(c,t),o=n(...e)(r);return i.push(o),u};return[e,r]})),run:l};return u}createCan(e){const{rawCommands:t,state:n}=this,r=!1,o=e||n.tr,a=this.buildProps(o,r),i=Object.fromEntries(Object.entries(t).map(([e,t])=>[e,(...e)=>t(...e)({...a,dispatch:void 0})]));return{...i,chain:()=>this.createChain(o,r)}}buildProps(e,t=!0){const{rawCommands:n,editor:r,state:o}=this,{view:a}=r,i={tr:e,editor:r,view:a,state:se({state:o,transaction:e}),dispatch:t?()=>{}:void 0,chain:()=>this.createChain(e,t),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(n).map(([e,t])=>[e,(...e)=>t(...e)(i)]))}};return i}}class le{constructor(){this.callbacks={}}on(e,t){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),this}emit(e,...t){const n=this.callbacks[e];return n&&n.forEach(e=>e.apply(this,t)),this}off(e,t){const n=this.callbacks[e];return n&&(t?this.callbacks[e]=n.filter(e=>e!==t):delete this.callbacks[e]),this}removeAllListeners(){this.callbacks={}}}function ue(e,t,n){if(void 0===e.config[t]&&e.parent)return ue(e.parent,t,n);if("function"===typeof e.config[t]){const r=e.config[t].bind({...n,parent:e.parent?ue(e.parent,t,n):null});return r}return e.config[t]}function de(e){const t=e.filter(e=>"extension"===e.type),n=e.filter(e=>"node"===e.type),r=e.filter(e=>"mark"===e.type);return{baseExtensions:t,nodeExtensions:n,markExtensions:r}}function pe(e){const t=[],{nodeExtensions:n,markExtensions:r}=de(e),o=[...n,...r],a={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return e.forEach(e=>{const n={name:e.name,options:e.options,storage:e.storage},r=ue(e,"addGlobalAttributes",n);if(!r)return;const o=r();o.forEach(e=>{e.types.forEach(n=>{Object.entries(e.attributes).forEach(([e,r])=>{t.push({type:n,name:e,attribute:{...a,...r}})})})})}),o.forEach(e=>{const n={name:e.name,options:e.options,storage:e.storage},r=ue(e,"addAttributes",n);if(!r)return;const o=r();Object.entries(o).forEach(([n,r])=>{const o={...a,...r};"function"===typeof(null===o||void 0===o?void 0:o.default)&&(o.default=o.default()),(null===o||void 0===o?void 0:o.isRequired)&&void 0===(null===o||void 0===o?void 0:o.default)&&delete o.default,t.push({type:e.name,name:n,attribute:o})})}),t}function fe(e,t){if("string"===typeof e){if(!t.nodes[e])throw Error(`There is no node type named '${e}'. Maybe you forgot to add the extension?`);return t.nodes[e]}return e}function he(...e){return e.filter(e=>!!e).reduce((e,t)=>{const n={...e};return Object.entries(t).forEach(([e,t])=>{const r=n[e];if(r)if("class"===e){const r=t.split(" "),o=n[e].split(" "),a=r.filter(e=>!o.includes(e));n[e]=[...o,...a].join(" ")}else n[e]="style"===e?[n[e],t].join("; "):t;else n[e]=t}),n},{})}function me(e,t){return t.filter(e=>e.attribute.rendered).map(t=>t.attribute.renderHTML?t.attribute.renderHTML(e.attrs)||{}:{[t.name]:e.attrs[t.name]}).reduce((e,t)=>he(e,t),{})}function ve(e){return"function"===typeof e}function ge(e,t,...n){return ve(e)?t?e.bind(t)(...n):e(...n):e}function _e(e={}){return 0===Object.keys(e).length&&e.constructor===Object}function ye(e){return"string"!==typeof e?e:e.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(e):"true"===e||"false"!==e&&e}function be(e,t){return e.style?e:{...e,getAttrs:n=>{const r=e.getAttrs?e.getAttrs(n):e.attrs;if(!1===r)return!1;const o=t.reduce((e,t)=>{const r=t.attribute.parseHTML?t.attribute.parseHTML(n):ye(n.getAttribute(t.name));return null===r||void 0===r?e:{...e,[t.name]:r}},{});return{...r,...o}}}}function Oe(e){return Object.fromEntries(Object.entries(e).filter(([e,t])=>("attrs"!==e||!_e(t))&&(null!==t&&void 0!==t)))}function Me(e,t){var n;const r=pe(e),{nodeExtensions:o,markExtensions:a}=de(e),i=null===(n=o.find(e=>ue(e,"topNode")))||void 0===n?void 0:n.name,s=Object.fromEntries(o.map(n=>{const o=r.filter(e=>e.type===n.name),a={name:n.name,options:n.options,storage:n.storage,editor:t},i=e.reduce((e,t)=>{const r=ue(t,"extendNodeSchema",a);return{...e,...r?r(n):{}}},{}),s=Oe({...i,content:ge(ue(n,"content",a)),marks:ge(ue(n,"marks",a)),group:ge(ue(n,"group",a)),inline:ge(ue(n,"inline",a)),atom:ge(ue(n,"atom",a)),selectable:ge(ue(n,"selectable",a)),draggable:ge(ue(n,"draggable",a)),code:ge(ue(n,"code",a)),defining:ge(ue(n,"defining",a)),isolating:ge(ue(n,"isolating",a)),attrs:Object.fromEntries(o.map(e=>{var t;return[e.name,{default:null===(t=null===e||void 0===e?void 0:e.attribute)||void 0===t?void 0:t.default}]}))}),c=ge(ue(n,"parseHTML",a));c&&(s.parseDOM=c.map(e=>be(e,o)));const l=ue(n,"renderHTML",a);l&&(s.toDOM=e=>l({node:e,HTMLAttributes:me(e,o)}));const u=ue(n,"renderText",a);return u&&(s.toText=u),[n.name,s]})),c=Object.fromEntries(a.map(n=>{const o=r.filter(e=>e.type===n.name),a={name:n.name,options:n.options,storage:n.storage,editor:t},i=e.reduce((e,t)=>{const r=ue(t,"extendMarkSchema",a);return{...e,...r?r(n):{}}},{}),s=Oe({...i,inclusive:ge(ue(n,"inclusive",a)),excludes:ge(ue(n,"excludes",a)),group:ge(ue(n,"group",a)),spanning:ge(ue(n,"spanning",a)),code:ge(ue(n,"code",a)),attrs:Object.fromEntries(o.map(e=>{var t;return[e.name,{default:null===(t=null===e||void 0===e?void 0:e.attribute)||void 0===t?void 0:t.default}]}))}),c=ge(ue(n,"parseHTML",a));c&&(s.parseDOM=c.map(e=>be(e,o)));const l=ue(n,"renderHTML",a);return l&&(s.toDOM=e=>l({mark:e,HTMLAttributes:me(e,o)})),[n.name,s]}));return new y["i"]({topNode:i,nodes:s,marks:c})}function ke(e,t){return t.nodes[e]||t.marks[e]||null}function Ce(e,t){return Array.isArray(t)?t.some(t=>{const n="string"===typeof t?t:t.name;return n===e.name}):t}const we=(e,t=500)=>{let n="";const r=e.parentOffset;return e.parent.nodesBetween(Math.max(0,r-t),r,(e,t,o,a)=>{var i,s;const c=(null===(s=(i=e.type.spec).toText)||void 0===s?void 0:s.call(i,{node:e,pos:t,parent:o,index:a}))||e.textContent||"%leaf%";n+=c.slice(0,Math.max(0,r-t))}),n};function Ie(e){return"[object RegExp]"===Object.prototype.toString.call(e)}class Se{constructor(e){this.find=e.find,this.handler=e.handler}}const Te=(e,t)=>{if(Ie(t))return t.exec(e);const n=t(e);if(!n)return null;const r=[n.text];return r.index=n.index,r.input=e,r.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),r.push(n.replaceWith)),r};function Ee(e){var t;const{editor:n,from:r,to:o,text:a,rules:i,plugin:s}=e,{view:c}=n;if(c.composing)return!1;const l=c.state.doc.resolve(r);if(l.parent.type.spec.code||(null===(t=l.nodeBefore||l.nodeAfter)||void 0===t?void 0:t.marks.find(e=>e.type.spec.code)))return!1;let u=!1;const d=we(l)+a;return i.forEach(e=>{if(u)return;const t=Te(d,e.find);if(!t)return;const i=c.state.tr,l=se({state:c.state,transaction:i}),p={from:r-(t[0].length-a.length),to:o},{commands:f,chain:h,can:m}=new ce({editor:n,state:l}),v=e.handler({state:l,range:p,match:t,commands:f,chain:h,can:m});null!==v&&i.steps.length&&(i.setMeta(s,{transform:i,from:r,to:o,text:a}),c.dispatch(i),u=!0)}),u}function je(e){const{editor:t,rules:n}=e,o=new r["c"]({state:{init(){return null},apply(e,t){const n=e.getMeta(o);return n||(e.selectionSet||e.docChanged?null:t)}},props:{handleTextInput(e,r,a,i){return Ee({editor:t,from:r,to:a,text:i,rules:n,plugin:o})},handleDOMEvents:{compositionend:e=>(setTimeout(()=>{const{$cursor:r}=e.state.selection;r&&Ee({editor:t,from:r.pos,to:r.pos,text:"",rules:n,plugin:o})}),!1)},handleKeyDown(e,r){if("Enter"!==r.key)return!1;const{$cursor:a}=e.state.selection;return!!a&&Ee({editor:t,from:a.pos,to:a.pos,text:"\n",rules:n,plugin:o})}},isInputRules:!0});return o}function De(e){return"number"===typeof e}const Le=(e,t)=>{if(Ie(t))return[...e.matchAll(t)];const n=t(e);return n?n.map(t=>{const n=[t.text];return n.index=t.index,n.input=e,n.data=t.data,t.replaceWith&&(t.text.includes(t.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),n.push(t.replaceWith)),n}):[]};function Ae(e){const{editor:t,state:n,from:r,to:o,rule:a}=e,{commands:i,chain:s,can:c}=new ce({editor:t,state:n}),l=[];n.doc.nodesBetween(r,o,(e,t)=>{if(!e.isTextblock||e.type.spec.code)return;const u=Math.max(r,t),d=Math.min(o,t+e.content.size),p=e.textBetween(u-t,d-t,void 0,""),f=Le(p,a.find);f.forEach(e=>{if(void 0===e.index)return;const t=u+e.index+1,r=t+e[0].length,o={from:n.tr.mapping.map(t),to:n.tr.mapping.map(r)},d=a.handler({state:n,range:o,match:e,commands:i,chain:s,can:c});l.push(d)})});const u=l.every(e=>null!==e);return u}function Ne(e){const{editor:t,rules:n}=e;let o=null,a=!1,i=!1;const s=n.map(e=>new r["c"]({view(e){const t=t=>{var n;o=(null===(n=e.dom.parentElement)||void 0===n?void 0:n.contains(t.target))?e.dom.parentElement:null};return window.addEventListener("dragstart",t),{destroy(){window.removeEventListener("dragstart",t)}}},props:{handleDOMEvents:{drop:e=>(i=o===e.dom.parentElement,!1),paste:(e,t)=>{var n;const r=null===(n=t.clipboardData)||void 0===n?void 0:n.getData("text/html");return a=!!(null===r||void 0===r?void 0:r.includes("data-pm-slice")),!1}}},appendTransaction:(n,r,o)=>{const s=n[0],c="paste"===s.getMeta("uiEvent")&&!a,l="drop"===s.getMeta("uiEvent")&&!i;if(!c&&!l)return;const u=r.doc.content.findDiffStart(o.doc.content),d=r.doc.content.findDiffEnd(o.doc.content);if(!De(u)||!d||u===d.b)return;const p=o.tr,f=se({state:o,transaction:p}),h=Ae({editor:t,state:f,from:Math.max(u-1,0),to:d.b-1,rule:e});return h&&p.steps.length?p:void 0}}));return s}function xe(e){const t=e.filter((t,n)=>e.indexOf(t)!==n);return[...new Set(t)]}class Re{constructor(e,t){this.splittableMarks=[],this.editor=t,this.extensions=Re.resolve(e),this.schema=Me(this.extensions,t),this.extensions.forEach(e=>{var t;this.editor.extensionStorage[e.name]=e.storage;const n={name:e.name,options:e.options,storage:e.storage,editor:this.editor,type:ke(e.name,this.schema)};if("mark"===e.type){const r=null===(t=ge(ue(e,"keepOnSplit",n)))||void 0===t||t;r&&this.splittableMarks.push(e.name)}const r=ue(e,"onBeforeCreate",n);r&&this.editor.on("beforeCreate",r);const o=ue(e,"onCreate",n);o&&this.editor.on("create",o);const a=ue(e,"onUpdate",n);a&&this.editor.on("update",a);const i=ue(e,"onSelectionUpdate",n);i&&this.editor.on("selectionUpdate",i);const s=ue(e,"onTransaction",n);s&&this.editor.on("transaction",s);const c=ue(e,"onFocus",n);c&&this.editor.on("focus",c);const l=ue(e,"onBlur",n);l&&this.editor.on("blur",l);const u=ue(e,"onDestroy",n);u&&this.editor.on("destroy",u)})}static resolve(e){const t=Re.sort(Re.flatten(e)),n=xe(t.map(e=>e.name));return n.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${n.map(e=>`'${e}'`).join(", ")}]. This can lead to issues.`),t}static flatten(e){return e.map(e=>{const t={name:e.name,options:e.options,storage:e.storage},n=ue(e,"addExtensions",t);return n?[e,...this.flatten(n())]:e}).flat(10)}static sort(e){const t=100;return e.sort((e,n)=>{const r=ue(e,"priority")||t,o=ue(n,"priority")||t;return r>o?-1:r<o?1:0})}get commands(){return this.extensions.reduce((e,t)=>{const n={name:t.name,options:t.options,storage:t.storage,editor:this.editor,type:ke(t.name,this.schema)},r=ue(t,"addCommands",n);return r?{...e,...r()}:e},{})}get plugins(){const{editor:e}=this,t=Re.sort([...this.extensions].reverse()),n=[],r=[],o=t.map(t=>{const o={name:t.name,options:t.options,storage:t.storage,editor:e,type:ke(t.name,this.schema)},a=[],i=ue(t,"addKeyboardShortcuts",o);let s={};if("mark"===t.type&&t.config.exitable&&(s.ArrowRight=()=>Gn.handleExit({editor:e,mark:t})),i){const t=Object.fromEntries(Object.entries(i()).map(([t,n])=>[t,()=>n({editor:e})]));s={...s,...t}}const c=g(s);a.push(c);const l=ue(t,"addInputRules",o);Ce(t,e.options.enableInputRules)&&l&&n.push(...l());const u=ue(t,"addPasteRules",o);Ce(t,e.options.enablePasteRules)&&u&&r.push(...u());const d=ue(t,"addProseMirrorPlugins",o);if(d){const e=d();a.push(...e)}return a}).flat();return[je({editor:e,rules:n}),...Ne({editor:e,rules:r}),...o]}get attributes(){return pe(this.extensions)}get nodeViews(){const{editor:e}=this,{nodeExtensions:t}=de(this.extensions);return Object.fromEntries(t.filter(e=>!!ue(e,"addNodeView")).map(t=>{const n=this.attributes.filter(e=>e.type===t.name),r={name:t.name,options:t.options,storage:t.storage,editor:e,type:fe(t.name,this.schema)},o=ue(t,"addNodeView",r);if(!o)return[];const a=(r,a,i,s)=>{const c=me(r,n);return o()({editor:e,node:r,getPos:i,decorations:s,HTMLAttributes:c,extension:t})};return[t.name,a]}))}}function Pe(e){return Object.prototype.toString.call(e).slice(8,-1)}function Ue(e){return"Object"===Pe(e)&&(e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype)}function Ve(e,t){const n={...e};return Ue(e)&&Ue(t)&&Object.keys(t).forEach(r=>{Ue(t[r])?r in e?n[r]=Ve(e[r],t[r]):Object.assign(n,{[r]:t[r]}):Object.assign(n,{[r]:t[r]})}),n}class Be{constructor(e={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=ge(ue(this,"addOptions",{name:this.name}))),this.storage=ge(ue(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new Be(e)}configure(e={}){const t=this.extend();return t.options=Ve(this.options,e),t.storage=ge(ue(t,"addStorage",{name:t.name,options:t.options})),t}extend(e={}){const t=new Be(e);return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`),t.options=ge(ue(t,"addOptions",{name:t.name})),t.storage=ge(ue(t,"addStorage",{name:t.name,options:t.options})),t}}function Fe(e,t,n){const{from:r,to:o}=t,{blockSeparator:a="\n\n",textSerializers:i={}}=n||{};let s="",c=!0;return e.nodesBetween(r,o,(e,n,l,u)=>{var d;const p=null===i||void 0===i?void 0:i[e.type.name];p?(e.isBlock&&!c&&(s+=a,c=!0),l&&(s+=p({node:e,pos:n,parent:l,index:u,range:t}))):e.isText?(s+=null===(d=null===e||void 0===e?void 0:e.text)||void 0===d?void 0:d.slice(Math.max(r,n)-n,o-n),c=!1):e.isBlock&&!c&&(s+=a,c=!0)}),s}function Ge(e){return Object.fromEntries(Object.entries(e.nodes).filter(([,e])=>e.spec.toText).map(([e,t])=>[e,t.spec.toText]))}const ze=Be.create({name:"clipboardTextSerializer",addProseMirrorPlugins(){return[new r["c"]({key:new r["d"]("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:e}=this,{state:t,schema:n}=e,{doc:r,selection:o}=t,{ranges:a}=o,i=Math.min(...a.map(e=>e.$from.pos)),s=Math.max(...a.map(e=>e.$to.pos)),c=Ge(n),l={from:i,to:s};return Fe(r,l,{textSerializers:c})}}})]}}),He=()=>({editor:e,view:t})=>(requestAnimationFrame(()=>{var n;e.isDestroyed||(t.dom.blur(),null===(n=null===window||void 0===window?void 0:window.getSelection())||void 0===n||n.removeAllRanges())}),!0),Ye=(e=!1)=>({commands:t})=>t.setContent("",e),qe=()=>({state:e,tr:t,dispatch:n})=>{const{selection:r}=t,{ranges:o}=r;return!n||(o.forEach(({$from:n,$to:r})=>{e.doc.nodesBetween(n.pos,r.pos,(e,n)=>{if(e.type.isText)return;const{doc:r,mapping:o}=t,a=r.resolve(o.map(n)),i=r.resolve(o.map(n+e.nodeSize)),s=a.blockRange(i);if(!s)return;const c=Object(b["i"])(s);if(e.type.isTextblock){const{defaultType:e}=a.parent.contentMatchAt(a.index());t.setNodeMarkup(s.start,e)}(c||0===c)&&t.lift(s,c)})}),!0)},We=e=>t=>e(t),Ke=()=>({state:e,dispatch:t})=>P(e,t),$e=(e,t)=>({editor:n,tr:o})=>{const{state:a}=n,i=a.doc.slice(e.from,e.to);o.deleteRange(e.from,e.to);const s=o.mapping.map(t);return o.insert(s,i.content),o.setSelection(new r["f"](o.doc.resolve(s-1))),!0},Je=()=>({tr:e,dispatch:t})=>{const{selection:n}=e,r=n.$anchor.node();if(r.content.size>0)return!1;const o=e.selection.$anchor;for(let a=o.depth;a>0;a-=1){const n=o.node(a);if(n.type===r.type){if(t){const t=o.before(a),n=o.after(a);e.delete(t,n).scrollIntoView()}return!0}}return!1},Qe=e=>({tr:t,state:n,dispatch:r})=>{const o=fe(e,n.schema),a=t.selection.$anchor;for(let e=a.depth;e>0;e-=1){const n=a.node(e);if(n.type===o){if(r){const n=a.before(e),r=a.after(e);t.delete(n,r).scrollIntoView()}return!0}}return!1},Xe=e=>({tr:t,dispatch:n})=>{const{from:r,to:o}=e;return n&&t.delete(r,o),!0},Ze=()=>({state:e,dispatch:t})=>O(e,t),et=()=>({commands:e})=>e.keyboardShortcut("Enter"),tt=()=>({state:e,dispatch:t})=>R(e,t);function nt(e,t,n={strict:!0}){const r=Object.keys(t);return!r.length||r.every(r=>n.strict?t[r]===e[r]:Ie(t[r])?t[r].test(e[r]):t[r]===e[r])}function rt(e,t,n={}){return e.find(e=>e.type===t&&nt(e.attrs,n))}function ot(e,t,n={}){return!!rt(e,t,n)}function at(e,t,n={}){if(!e||!t)return;let r=e.parent.childAfter(e.parentOffset);if(e.parentOffset===r.offset&&0!==r.offset&&(r=e.parent.childBefore(e.parentOffset)),!r.node)return;const o=rt([...r.node.marks],t,n);if(!o)return;let a=r.index,i=e.start()+r.offset,s=a+1,c=i+r.node.nodeSize;rt([...r.node.marks],t,n);while(a>0&&o.isInSet(e.parent.child(a-1).marks))a-=1,i-=e.parent.child(a).nodeSize;while(s<e.parent.childCount&&ot([...e.parent.child(s).marks],t,n))c+=e.parent.child(s).nodeSize,s+=1;return{from:i,to:c}}function it(e,t){if("string"===typeof e){if(!t.marks[e])throw Error(`There is no mark type named '${e}'. Maybe you forgot to add the extension?`);return t.marks[e]}return e}const st=(e,t={})=>({tr:n,state:o,dispatch:a})=>{const i=it(e,o.schema),{doc:s,selection:c}=n,{$from:l,from:u,to:d}=c;if(a){const e=at(l,i,t);if(e&&e.from<=u&&e.to>=d){const t=r["f"].create(s,e.from,e.to);n.setSelection(t)}}return!0},ct=e=>t=>{const n="function"===typeof e?e(t):e;for(let e=0;e<n.length;e+=1)if(n[e](t))return!0;return!1};function lt(e){return e instanceof r["f"]}function ut(e=0,t=0,n=0){return Math.min(Math.max(e,t),n)}function dt(e,t=null){if(!t)return null;const n=r["e"].atStart(e),o=r["e"].atEnd(e);if("start"===t||!0===t)return n;if("end"===t)return o;const a=n.from,i=o.to;return"all"===t?r["f"].create(e,ut(0,a,i),ut(e.content.size,a,i)):r["f"].create(e,ut(t,a,i),ut(t,a,i))}function pt(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}const ft=(e=null,t={})=>({editor:n,view:r,tr:o,dispatch:a})=>{t={scrollIntoView:!0,...t};const i=()=>{pt()&&r.dom.focus(),requestAnimationFrame(()=>{n.isDestroyed||(r.focus(),(null===t||void 0===t?void 0:t.scrollIntoView)&&n.commands.scrollIntoView())})};if(r.hasFocus()&&null===e||!1===e)return!0;if(a&&null===e&&!lt(n.state.selection))return i(),!0;const s=dt(o.doc,e)||n.state.selection,c=n.state.selection.eq(s);return a&&(c||o.setSelection(s),c&&o.storedMarks&&o.setStoredMarks(o.storedMarks),i()),!0},ht=(e,t)=>n=>e.every((e,r)=>t(e,{...n,index:r})),mt=(e,t)=>({tr:n,commands:r})=>r.insertContentAt({from:n.selection.from,to:n.selection.to},e,t);function vt(e){const t=`<body>${e}</body>`;return(new window.DOMParser).parseFromString(t,"text/html").body}function gt(e,t,n){if(n={slice:!0,parseOptions:{},...n},"object"===typeof e&&null!==e)try{return Array.isArray(e)&&e.length>0?y["c"].fromArray(e.map(e=>t.nodeFromJSON(e))):t.nodeFromJSON(e)}catch(r){return console.warn("[tiptap warn]: Invalid content.","Passed value:",e,"Error:",r),gt("",t,n)}if("string"===typeof e){const r=y["a"].fromSchema(t);return n.slice?r.parseSlice(vt(e),n.parseOptions).content:r.parse(vt(e),n.parseOptions)}return gt("",t,n)}function _t(e,t,n){const o=e.steps.length-1;if(o<t)return;const a=e.steps[o];if(!(a instanceof b["b"]||a instanceof b["a"]))return;const i=e.mapping.maps[o];let s=0;i.forEach((e,t,n,r)=>{0===s&&(s=r)}),e.setSelection(r["e"].near(e.doc.resolve(s),n))}const yt=e=>e.toString().startsWith("<"),bt=(e,t,n)=>({tr:r,dispatch:o,editor:a})=>{if(o){n={parseOptions:{},updateSelection:!0,...n};const o=gt(t,a.schema,{parseOptions:{preserveWhitespace:"full",...n.parseOptions}});if("<>"===o.toString())return!0;let{from:i,to:s}="number"===typeof e?{from:e,to:e}:{from:e.from,to:e.to},c=!0,l=!0;const u=yt(o)?o:[o];if(u.forEach(e=>{e.check(),c=!!c&&(e.isText&&0===e.marks.length),l=!!l&&e.isBlock}),i===s&&l){const{parent:e}=r.doc.resolve(i),t=e.isTextblock&&!e.type.spec.code&&!e.childCount;t&&(i-=1,s+=1)}c?Array.isArray(t)?r.insertText(t.map(e=>e.text||"").join(""),i,s):"object"===typeof t&&t&&t.text?r.insertText(t.text,i,s):r.insertText(t,i,s):r.replaceWith(i,s,o),n.updateSelection&&_t(r,r.steps.length-1,-1)}return!0},Ot=()=>({state:e,dispatch:t})=>D(e,t),Mt=()=>({state:e,dispatch:t})=>L(e,t),kt=()=>({state:e,dispatch:t})=>k(e,t),Ct=()=>({state:e,dispatch:t})=>T(e,t),wt=()=>({tr:e,state:t,dispatch:n})=>{try{const r=Object(b["h"])(t.doc,t.selection.$from.pos,-1);return null!==r&&void 0!==r&&(e.join(r,2),n&&n(e),!0)}catch{return!1}},It=()=>({state:e,dispatch:t,tr:n})=>{try{const r=Object(b["h"])(e.doc,e.selection.$from.pos,1);return null!==r&&void 0!==r&&(n.join(r,2),t&&t(n),!0)}catch(r){return!1}};function St(){return"undefined"!==typeof navigator&&/Mac/.test(navigator.platform)}function Tt(e){const t=e.split(/-(?!$)/);let n,r,o,a,i=t[t.length-1];"Space"===i&&(i=" ");for(let s=0;s<t.length-1;s+=1){const e=t[s];if(/^(cmd|meta|m)$/i.test(e))a=!0;else if(/^a(lt)?$/i.test(e))n=!0;else if(/^(c|ctrl|control)$/i.test(e))r=!0;else if(/^s(hift)?$/i.test(e))o=!0;else{if(!/^mod$/i.test(e))throw new Error("Unrecognized modifier name: "+e);pt()||St()?a=!0:r=!0}}return n&&(i="Alt-"+i),r&&(i="Ctrl-"+i),a&&(i="Meta-"+i),o&&(i="Shift-"+i),i}const Et=e=>({editor:t,view:n,tr:r,dispatch:o})=>{const a=Tt(e).split(/-(?!$)/),i=a.find(e=>!["Alt","Ctrl","Meta","Shift"].includes(e)),s=new KeyboardEvent("keydown",{key:"Space"===i?" ":i,altKey:a.includes("Alt"),ctrlKey:a.includes("Ctrl"),metaKey:a.includes("Meta"),shiftKey:a.includes("Shift"),bubbles:!0,cancelable:!0}),c=t.captureTransaction(()=>{n.someProp("handleKeyDown",e=>e(n,s))});return null===c||void 0===c||c.steps.forEach(e=>{const t=e.map(r.mapping);t&&o&&r.maybeStep(t)}),!0};function jt(e,t,n={}){const{from:r,to:o,empty:a}=e.selection,i=t?fe(t,e.schema):null,s=[];e.doc.nodesBetween(r,o,(e,t)=>{if(e.isText)return;const n=Math.max(r,t),a=Math.min(o,t+e.nodeSize);s.push({node:e,from:n,to:a})});const c=o-r,l=s.filter(e=>!i||i.name===e.node.type.name).filter(e=>nt(e.node.attrs,n,{strict:!1}));if(a)return!!l.length;const u=l.reduce((e,t)=>e+t.to-t.from,0);return u>=c}const Dt=(e,t={})=>({state:n,dispatch:r})=>{const o=fe(e,n.schema),a=jt(n,o,t);return!!a&&A(n,r)},Lt=()=>({state:e,dispatch:t})=>U(e,t),At=e=>({state:t,dispatch:n})=>{const r=fe(e,t.schema);return re(r)(t,n)},Nt=()=>({state:e,dispatch:t})=>N(e,t);function xt(e,t){return t.nodes[e]?"node":t.marks[e]?"mark":null}function Rt(e,t){const n="string"===typeof t?[t]:t;return Object.keys(e).reduce((t,r)=>(n.includes(r)||(t[r]=e[r]),t),{})}const Pt=(e,t)=>({tr:n,state:r,dispatch:o})=>{let a=null,i=null;const s=xt("string"===typeof e?e:e.name,r.schema);return!!s&&("node"===s&&(a=fe(e,r.schema)),"mark"===s&&(i=it(e,r.schema)),o&&n.selection.ranges.forEach(e=>{r.doc.nodesBetween(e.$from.pos,e.$to.pos,(e,r)=>{a&&a===e.type&&n.setNodeMarkup(r,void 0,Rt(e.attrs,t)),i&&e.marks.length&&e.marks.forEach(o=>{i===o.type&&n.addMark(r,r+e.nodeSize,i.create(Rt(o.attrs,t)))})})}),!0)},Ut=()=>({tr:e,dispatch:t})=>(t&&e.scrollIntoView(),!0),Vt=()=>({tr:e,commands:t})=>t.setTextSelection({from:0,to:e.doc.content.size}),Bt=()=>({state:e,dispatch:t})=>w(e,t),Ft=()=>({state:e,dispatch:t})=>E(e,t),Gt=()=>({state:e,dispatch:t})=>F(e,t),zt=()=>({state:e,dispatch:t})=>W(e,t),Ht=()=>({state:e,dispatch:t})=>q(e,t);function Yt(e,t,n={}){return gt(e,t,{slice:!1,parseOptions:n})}const qt=(e,t=!1,n={})=>({tr:r,editor:o,dispatch:a})=>{const{doc:i}=r,s=Yt(e,o.schema,n);return a&&r.replaceWith(0,i.content.size,s).setMeta("preventUpdate",!t),!0};function Wt(e,t){const n=it(t,e.schema),{from:r,to:o,empty:a}=e.selection,i=[];a?(e.storedMarks&&i.push(...e.storedMarks),i.push(...e.selection.$head.marks())):e.doc.nodesBetween(r,o,e=>{i.push(...e.marks)});const s=i.find(e=>e.type.name===n.name);return s?{...s.attrs}:{}}function Kt(e,t){for(let n=e.depth;n>0;n-=1){const r=e.node(n);if(t(r))return{pos:n>0?e.before(n):0,start:e.start(n),depth:n,node:r}}}function $t(e){return t=>Kt(t.$from,e)}function Jt(e){for(let t=0;t<e.edgeCount;t+=1){const{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}function Qt(e,t){const n=y["b"].fromSchema(t).serializeFragment(e),r=document.implementation.createHTMLDocument(),o=r.createElement("div");return o.appendChild(n),o.innerHTML}function Xt(e,t){const n={from:0,to:e.content.size};return Fe(e,n,t)}function Zt(e,t){const n=fe(t,e.schema),{from:r,to:o}=e.selection,a=[];e.doc.nodesBetween(r,o,e=>{a.push(e)});const i=a.reverse().find(e=>e.type.name===n.name);return i?{...i.attrs}:{}}function en(e,t){const n=xt("string"===typeof t?t:t.name,e.schema);return"node"===n?Zt(e,t):"mark"===n?Wt(e,t):{}}function tn(e,t,n){return Object.fromEntries(Object.entries(n).filter(([n])=>{const r=e.find(e=>e.type===t&&e.name===n);return!!r&&r.attribute.keepOnSplit}))}function nn(e,t,n={}){const{empty:r,ranges:o}=e.selection,a=t?it(t,e.schema):null;if(r)return!!(e.storedMarks||e.selection.$from.marks()).filter(e=>!a||a.name===e.type.name).find(e=>nt(e.attrs,n,{strict:!1}));let i=0;const s=[];if(o.forEach(({$from:t,$to:n})=>{const r=t.pos,o=n.pos;e.doc.nodesBetween(r,o,(e,t)=>{if(!e.isText&&!e.marks.length)return;const n=Math.max(r,t),a=Math.min(o,t+e.nodeSize),c=a-n;i+=c,s.push(...e.marks.map(e=>({mark:e,from:n,to:a})))})}),0===i)return!1;const c=s.filter(e=>!a||a.name===e.mark.type.name).filter(e=>nt(e.mark.attrs,n,{strict:!1})).reduce((e,t)=>e+t.to-t.from,0),l=s.filter(e=>!a||e.mark.type!==a&&e.mark.type.excludes(a)).reduce((e,t)=>e+t.to-t.from,0),u=c>0?c+l:c;return u>=i}function rn(e,t,n={}){if(!t)return jt(e,null,n)||nn(e,null,n);const r=xt(t,e.schema);return"node"===r?jt(e,t,n):"mark"===r&&nn(e,t,n)}function on(e,t){const{nodeExtensions:n}=de(t),r=n.find(t=>t.name===e);if(!r)return!1;const o={name:r.name,options:r.options,storage:r.storage},a=ge(ue(r,"group",o));return"string"===typeof a&&a.split(" ").includes("list")}function an(e){var t;const n=null===(t=e.type.createAndFill())||void 0===t?void 0:t.toJSON(),r=e.toJSON();return JSON.stringify(n)===JSON.stringify(r)}function sn(e){return e instanceof r["b"]}function cn(e,t,n){const r=0,o=e.state.doc.content.size,a=ut(t,r,o),i=ut(n,r,o),s=e.coordsAtPos(a),c=e.coordsAtPos(i,-1),l=Math.min(s.top,c.top),u=Math.max(s.bottom,c.bottom),d=Math.min(s.left,c.left),p=Math.max(s.right,c.right),f=p-d,h=u-l,m=d,v=l,g={top:l,bottom:u,left:d,right:p,width:f,height:h,x:m,y:v};return{...g,toJSON:()=>g}}function ln(e,t,n){var r;const{selection:o}=t;let a=null;if(lt(o)&&(a=o.$cursor),a){const t=null!==(r=e.storedMarks)&&void 0!==r?r:a.marks();return!!n.isInSet(t)||!t.some(e=>e.type.excludes(n))}const{ranges:i}=o;return i.some(({$from:t,$to:r})=>{let o=0===t.depth&&(e.doc.inlineContent&&e.doc.type.allowsMarkType(n));return e.doc.nodesBetween(t.pos,r.pos,(e,t,r)=>{if(o)return!1;if(e.isInline){const t=!r||r.type.allowsMarkType(n),a=!!n.isInSet(e.marks)||!e.marks.some(e=>e.type.excludes(n));o=t&&a}return!o}),o})}const un=(e,t={})=>({tr:n,state:r,dispatch:o})=>{const{selection:a}=n,{empty:i,ranges:s}=a,c=it(e,r.schema);if(o)if(i){const e=Wt(r,c);n.addStoredMark(c.create({...e,...t}))}else s.forEach(e=>{const o=e.$from.pos,a=e.$to.pos;r.doc.nodesBetween(o,a,(e,r)=>{const i=Math.max(r,o),s=Math.min(r+e.nodeSize,a),l=e.marks.find(e=>e.type===c);l?e.marks.forEach(e=>{c===e.type&&n.addMark(i,s,c.create({...e.attrs,...t}))}):n.addMark(i,s,c.create(t))})});return ln(r,n,c)},dn=(e,t)=>({tr:n})=>(n.setMeta(e,t),!0),pn=(e,t={})=>({state:n,dispatch:r,chain:o})=>{const a=fe(e,n.schema);return a.isTextblock?o().command(({commands:e})=>{const r=$(a,t)(n);return!!r||e.clearNodes()}).command(({state:e})=>$(a,t)(e,r)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},fn=e=>({tr:t,dispatch:n})=>{if(n){const{doc:n}=t,o=ut(e,0,n.content.size),a=r["b"].create(n,o);t.setSelection(a)}return!0},hn=e=>({tr:t,dispatch:n})=>{if(n){const{doc:n}=t,{from:o,to:a}="number"===typeof e?{from:e,to:e}:e,i=r["f"].atStart(n).from,s=r["f"].atEnd(n).to,c=ut(o,i,s),l=ut(a,i,s),u=r["f"].create(n,c,l);t.setSelection(u)}return!0},mn=e=>({state:t,dispatch:n})=>{const r=fe(e,t.schema);return ie(r)(t,n)};function vn(e,t){const n=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();if(n){const r=n.filter(e=>null===t||void 0===t?void 0:t.includes(e.type.name));e.tr.ensureMarks(r)}}const gn=({keepMarks:e=!0}={})=>({tr:t,state:n,dispatch:o,editor:a})=>{const{selection:i,doc:s}=t,{$from:c,$to:l}=i,u=a.extensionManager.attributes,d=tn(u,c.node().type.name,c.node().attrs);if(i instanceof r["b"]&&i.node.isBlock)return!(!c.parentOffset||!Object(b["e"])(s,c.pos))&&(o&&(e&&vn(n,a.extensionManager.splittableMarks),t.split(c.pos).scrollIntoView()),!0);if(!c.parent.isBlock)return!1;if(o){const o=l.parentOffset===l.parent.content.size;i instanceof r["f"]&&t.deleteSelection();const s=0===c.depth?void 0:Jt(c.node(-1).contentMatchAt(c.indexAfter(-1)));let u=o&&s?[{type:s,attrs:d}]:void 0,p=Object(b["e"])(t.doc,t.mapping.map(c.pos),1,u);if(u||p||!Object(b["e"])(t.doc,t.mapping.map(c.pos),1,s?[{type:s}]:void 0)||(p=!0,u=s?[{type:s,attrs:d}]:void 0),p&&(t.split(t.mapping.map(c.pos),1,u),s&&!o&&!c.parentOffset&&c.parent.type!==s)){const e=t.mapping.map(c.before()),n=t.doc.resolve(e);c.node(-1).canReplaceWith(n.index(),n.index()+1,s)&&t.setNodeMarkup(t.mapping.map(c.before()),s)}e&&vn(n,a.extensionManager.splittableMarks),t.scrollIntoView()}return!0},_n=e=>({tr:t,state:n,dispatch:o,editor:a})=>{var i;const s=fe(e,n.schema),{$from:c,$to:l}=n.selection,u=n.selection.node;if(u&&u.isBlock||c.depth<2||!c.sameParent(l))return!1;const d=c.node(-1);if(d.type!==s)return!1;const p=a.extensionManager.attributes;if(0===c.parent.content.size&&c.node(-1).childCount===c.indexAfter(-1)){if(2===c.depth||c.node(-3).type!==s||c.index(-2)!==c.node(-2).childCount-1)return!1;if(o){let e=y["c"].empty;const n=c.index(-1)?1:c.index(-2)?2:3;for(let t=c.depth-n;t>=c.depth-3;t-=1)e=y["c"].from(c.node(t).copy(e));const o=c.indexAfter(-1)<c.node(-2).childCount?1:c.indexAfter(-2)<c.node(-3).childCount?2:3,a=tn(p,c.node().type.name,c.node().attrs),l=(null===(i=s.contentMatch.defaultType)||void 0===i?void 0:i.createAndFill(a))||void 0;e=e.append(y["c"].from(s.createAndFill(null,l)||void 0));const u=c.before(c.depth-(n-1));t.replace(u,c.after(-o),new y["j"](e,4-n,0));let d=-1;t.doc.nodesBetween(u,t.doc.content.size,(e,t)=>{if(d>-1)return!1;e.isTextblock&&0===e.content.size&&(d=t+1)}),d>-1&&t.setSelection(r["f"].near(t.doc.resolve(d))),t.scrollIntoView()}return!0}const f=l.pos===c.end()?d.contentMatchAt(0).defaultType:null,h=tn(p,d.type.name,d.attrs),m=tn(p,c.node().type.name,c.node().attrs);t.delete(c.pos,l.pos);const v=f?[{type:s,attrs:h},{type:f,attrs:m}]:[{type:s,attrs:h}];if(!Object(b["e"])(t.doc,c.pos,2))return!1;if(o){const{selection:e,storedMarks:r}=n,{splittableMarks:i}=a.extensionManager,s=r||e.$to.parentOffset&&e.$from.marks();if(t.split(c.pos,2,v).scrollIntoView(),!s||!o)return!0;const l=s.filter(e=>i.includes(e.type.name));t.ensureMarks(l)}return!0},yn=(e,t)=>{const n=$t(e=>e.type===t)(e.selection);if(!n)return!0;const r=e.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(void 0===r)return!0;const o=e.doc.nodeAt(r),a=n.node.type===(null===o||void 0===o?void 0:o.type)&&Object(b["d"])(e.doc,n.pos);return!a||(e.join(n.pos),!0)},bn=(e,t)=>{const n=$t(e=>e.type===t)(e.selection);if(!n)return!0;const r=e.doc.resolve(n.start).after(n.depth);if(void 0===r)return!0;const o=e.doc.nodeAt(r),a=n.node.type===(null===o||void 0===o?void 0:o.type)&&Object(b["d"])(e.doc,r);return!a||(e.join(r),!0)},On=(e,t,n,r={})=>({editor:o,tr:a,state:i,dispatch:s,chain:c,commands:l,can:u})=>{const{extensions:d,splittableMarks:p}=o.extensionManager,f=fe(e,i.schema),h=fe(t,i.schema),{selection:m,storedMarks:v}=i,{$from:g,$to:_}=m,y=g.blockRange(_),b=v||m.$to.parentOffset&&m.$from.marks();if(!y)return!1;const O=$t(e=>on(e.type.name,d))(m);if(y.depth>=1&&O&&y.depth-O.depth<=1){if(O.node.type===f)return l.liftListItem(h);if(on(O.node.type.name,d)&&f.validContent(O.node.content)&&s)return c().command(()=>(a.setNodeMarkup(O.pos,f),!0)).command(()=>yn(a,f)).command(()=>bn(a,f)).run()}return n&&b&&s?c().command(()=>{const e=u().wrapInList(f,r),t=b.filter(e=>p.includes(e.type.name));return a.ensureMarks(t),!!e||l.clearNodes()}).wrapInList(f,r).command(()=>yn(a,f)).command(()=>bn(a,f)).run():c().command(()=>{const e=u().wrapInList(f,r);return!!e||l.clearNodes()}).wrapInList(f,r).command(()=>yn(a,f)).command(()=>bn(a,f)).run()},Mn=(e,t={},n={})=>({state:r,commands:o})=>{const{extendEmptyMarkRange:a=!1}=n,i=it(e,r.schema),s=nn(r,i,t);return s?o.unsetMark(i,{extendEmptyMarkRange:a}):o.setMark(i,t)},kn=(e,t,n={})=>({state:r,commands:o})=>{const a=fe(e,r.schema),i=fe(t,r.schema),s=jt(r,a,n);return s?o.setNode(i):o.setNode(a,n)},Cn=(e,t={})=>({state:n,commands:r})=>{const o=fe(e,n.schema),a=jt(n,o,t);return a?r.lift(o):r.wrapIn(o,t)},wn=()=>({state:e,dispatch:t})=>{const n=e.plugins;for(let r=0;r<n.length;r+=1){const o=n[r];let a;if(o.spec.isInputRules&&(a=o.getState(e))){if(t){const t=e.tr,n=a.transform;for(let e=n.steps.length-1;e>=0;e-=1)t.step(n.steps[e].invert(n.docs[e]));if(a.text){const n=t.doc.resolve(a.from).marks();t.replaceWith(a.from,a.to,e.schema.text(a.text,n))}else t.delete(a.from,a.to)}return!0}}return!1},In=()=>({tr:e,dispatch:t})=>{const{selection:n}=e,{empty:r,ranges:o}=n;return r||t&&o.forEach(t=>{e.removeMark(t.$from.pos,t.$to.pos)}),!0},Sn=(e,t={})=>({tr:n,state:r,dispatch:o})=>{var a;const{extendEmptyMarkRange:i=!1}=t,{selection:s}=n,c=it(e,r.schema),{$from:l,empty:u,ranges:d}=s;if(!o)return!0;if(u&&i){let{from:e,to:t}=s;const r=null===(a=l.marks().find(e=>e.type===c))||void 0===a?void 0:a.attrs,o=at(l,c,r);o&&(e=o.from,t=o.to),n.removeMark(e,t,c)}else d.forEach(e=>{n.removeMark(e.$from.pos,e.$to.pos,c)});return n.removeStoredMark(c),!0},Tn=(e,t={})=>({tr:n,state:r,dispatch:o})=>{let a=null,i=null;const s=xt("string"===typeof e?e:e.name,r.schema);return!!s&&("node"===s&&(a=fe(e,r.schema)),"mark"===s&&(i=it(e,r.schema)),o&&n.selection.ranges.forEach(e=>{const o=e.$from.pos,s=e.$to.pos;r.doc.nodesBetween(o,s,(e,r)=>{a&&a===e.type&&n.setNodeMarkup(r,void 0,{...e.attrs,...t}),i&&e.marks.length&&e.marks.forEach(a=>{if(i===a.type){const c=Math.max(r,o),l=Math.min(r+e.nodeSize,s);n.addMark(c,l,i.create({...a.attrs,...t}))}})})}),!0)},En=(e,t={})=>({state:n,dispatch:r})=>{const o=fe(e,n.schema);return K(o,t)(n,r)},jn=(e,t={})=>({state:n,dispatch:r})=>{const o=fe(e,n.schema);return te(o,t)(n,r)};var Dn=Object.freeze({__proto__:null,blur:He,clearContent:Ye,clearNodes:qe,command:We,createParagraphNear:Ke,cut:$e,deleteCurrentNode:Je,deleteNode:Qe,deleteRange:Xe,deleteSelection:Ze,enter:et,exitCode:tt,extendMarkRange:st,first:ct,focus:ft,forEach:ht,insertContent:mt,insertContentAt:bt,joinUp:Ot,joinDown:Mt,joinBackward:kt,joinForward:Ct,joinItemBackward:wt,joinItemForward:It,keyboardShortcut:Et,lift:Dt,liftEmptyBlock:Lt,liftListItem:At,newlineInCode:Nt,resetAttributes:Pt,scrollIntoView:Ut,selectAll:Vt,selectNodeBackward:Bt,selectNodeForward:Ft,selectParentNode:Gt,selectTextblockEnd:zt,selectTextblockStart:Ht,setContent:qt,setMark:un,setMeta:dn,setNode:pn,setNodeSelection:fn,setTextSelection:hn,sinkListItem:mn,splitBlock:gn,splitListItem:_n,toggleList:On,toggleMark:Mn,toggleNode:kn,toggleWrap:Cn,undoInputRule:wn,unsetAllMarks:In,unsetMark:Sn,updateAttributes:Tn,wrapIn:En,wrapInList:jn});const Ln=Be.create({name:"commands",addCommands(){return{...Dn}}}),An=Be.create({name:"editable",addProseMirrorPlugins(){return[new r["c"]({key:new r["d"]("editable"),props:{editable:()=>this.editor.options.editable}})]}}),Nn=Be.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:e}=this;return[new r["c"]({key:new r["d"]("focusEvents"),props:{handleDOMEvents:{focus:(t,n)=>{e.isFocused=!0;const r=e.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return t.dispatch(r),!1},blur:(t,n)=>{e.isFocused=!1;const r=e.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return t.dispatch(r),!1}}}})]}}),xn=Be.create({name:"keymap",addKeyboardShortcuts(){const e=()=>this.editor.commands.first(({commands:e})=>[()=>e.undoInputRule(),()=>e.command(({tr:t})=>{const{selection:n,doc:o}=t,{empty:a,$anchor:i}=n,{pos:s,parent:c}=i,l=i.parent.isTextblock?t.doc.resolve(s-1):i,u=l.parent.type.spec.isolating,d=i.pos-i.parentOffset,p=u&&1===l.parent.childCount?d===i.pos:r["e"].atStart(o).from===s;return!(!(a&&p&&c.type.isTextblock)||c.textContent.length)&&e.clearNodes()}),()=>e.deleteSelection(),()=>e.joinBackward(),()=>e.selectNodeBackward()]),t=()=>this.editor.commands.first(({commands:e})=>[()=>e.deleteSelection(),()=>e.deleteCurrentNode(),()=>e.joinForward(),()=>e.selectNodeForward()]),n=()=>this.editor.commands.first(({commands:e})=>[()=>e.newlineInCode(),()=>e.createParagraphNear(),()=>e.liftEmptyBlock(),()=>e.splitBlock()]),o={Enter:n,"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:e,"Mod-Backspace":e,"Shift-Backspace":e,Delete:t,"Mod-Delete":t,"Mod-a":()=>this.editor.commands.selectAll()},a={...o},i={...o,"Ctrl-h":e,"Alt-Backspace":e,"Ctrl-d":t,"Ctrl-Alt-Backspace":t,"Alt-Delete":t,"Alt-d":t,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return pt()||St()?i:a},addProseMirrorPlugins(){return[new r["c"]({key:new r["d"]("clearDocument"),appendTransaction:(e,t,n)=>{const o=e.some(e=>e.docChanged)&&!t.doc.eq(n.doc);if(!o)return;const{empty:a,from:i,to:s}=t.selection,c=r["e"].atStart(t.doc).from,l=r["e"].atEnd(t.doc).to,u=i===c&&s===l;if(a||!u)return;const d=0===n.doc.textBetween(0,n.doc.content.size," "," ").length;if(!d)return;const p=n.tr,f=se({state:n,transaction:p}),{commands:h}=new ce({editor:this.editor,state:f});return h.clearNodes(),p.steps.length?p:void 0}})]}}),Rn=Be.create({name:"tabindex",addProseMirrorPlugins(){return[new r["c"]({key:new r["d"]("tabindex"),props:{attributes:this.editor.isEditable?{tabindex:"0"}:{}}})]}});var Pn=Object.freeze({__proto__:null,ClipboardTextSerializer:ze,Commands:Ln,Editable:An,FocusEvents:Nn,Keymap:xn,Tabindex:Rn});const Un='.ProseMirror {\n position: relative;\n}\n\n.ProseMirror {\n word-wrap: break-word;\n white-space: pre-wrap;\n white-space: break-spaces;\n -webkit-font-variant-ligatures: none;\n font-variant-ligatures: none;\n font-feature-settings: "liga" 0; /* the above doesn\'t seem to work in Edge */\n}\n\n.ProseMirror [contenteditable="false"] {\n white-space: normal;\n}\n\n.ProseMirror [contenteditable="false"] [contenteditable="true"] {\n white-space: pre-wrap;\n}\n\n.ProseMirror pre {\n white-space: pre-wrap;\n}\n\nimg.ProseMirror-separator {\n display: inline !important;\n border: none !important;\n margin: 0 !important;\n width: 1px !important;\n height: 1px !important;\n}\n\n.ProseMirror-gapcursor {\n display: none;\n pointer-events: none;\n position: absolute;\n margin: 0;\n}\n\n.ProseMirror-gapcursor:after {\n content: "";\n display: block;\n position: absolute;\n top: -2px;\n width: 20px;\n border-top: 1px solid black;\n animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;\n}\n\n@keyframes ProseMirror-cursor-blink {\n to {\n visibility: hidden;\n }\n}\n\n.ProseMirror-hideselection *::selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection *::-moz-selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection * {\n caret-color: transparent;\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n display: block;\n}\n\n.tippy-box[data-animation=fade][data-state=hidden] {\n opacity: 0\n}';function Vn(e,t,n){const r=document.querySelector(`style[data-tiptap-style${n?"-"+n:""}]`);if(null!==r)return r;const o=document.createElement("style");return t&&o.setAttribute("nonce",t),o.setAttribute("data-tiptap-style"+(n?"-"+n:""),""),o.innerHTML=e,document.getElementsByTagName("head")[0].appendChild(o),o}class Bn extends le{constructor(e={}){super(),this.isFocused=!1,this.extensionStorage={},this.options={element:document.createElement("div"),content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions(e),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.createView(),this.injectCSS(),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),window.setTimeout(()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}))},0)}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&document&&(this.css=Vn(Un,this.options.injectNonce))}setOptions(e={}){this.options={...this.options,...e},this.view&&this.state&&!this.isDestroyed&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(e,t=!0){this.setOptions({editable:e}),t&&this.emit("update",{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin(e,t){const n=ve(t)?t(e,[...this.state.plugins]):[...this.state.plugins,e],r=this.state.reconfigure({plugins:n});this.view.updateState(r)}unregisterPlugin(e){if(this.isDestroyed)return;const t="string"===typeof e?e+"$":e.key,n=this.state.reconfigure({plugins:this.state.plugins.filter(e=>!e.key.startsWith(t))});this.view.updateState(n)}createExtensionManager(){const e=this.options.enableCoreExtensions?Object.values(Pn):[],t=[...e,...this.options.extensions].filter(e=>["extension","node","mark"].includes(null===e||void 0===e?void 0:e.type));this.extensionManager=new Re(t,this)}createCommandManager(){this.commandManager=new ce({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){const e=Yt(this.options.content,this.schema,this.options.parseOptions),t=dt(e,this.options.autofocus);this.view=new o["c"](this.options.element,{...this.options.editorProps,dispatchTransaction:this.dispatchTransaction.bind(this),state:r["a"].create({doc:e,selection:t||void 0})});const n=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(n),this.createNodeViews(),this.prependClass();const a=this.view.dom;a.editor=this}createNodeViews(){this.view.setProps({nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className="tiptap "+this.view.dom.className}captureTransaction(e){this.isCapturingTransaction=!0,e(),this.isCapturingTransaction=!1;const t=this.capturedTransaction;return this.capturedTransaction=null,t}dispatchTransaction(e){if(this.view.isDestroyed)return;if(this.isCapturingTransaction)return this.capturedTransaction?void e.steps.forEach(e=>{var t;return null===(t=this.capturedTransaction)||void 0===t?void 0:t.step(e)}):void(this.capturedTransaction=e);const t=this.state.apply(e),n=!this.state.selection.eq(t.selection);this.view.updateState(t),this.emit("transaction",{editor:this,transaction:e}),n&&this.emit("selectionUpdate",{editor:this,transaction:e});const r=e.getMeta("focus"),o=e.getMeta("blur");r&&this.emit("focus",{editor:this,event:r.event,transaction:e}),o&&this.emit("blur",{editor:this,event:o.event,transaction:e}),e.docChanged&&!e.getMeta("preventUpdate")&&this.emit("update",{editor:this,transaction:e})}getAttributes(e){return en(this.state,e)}isActive(e,t){const n="string"===typeof e?e:null,r="string"===typeof e?t:e;return rn(this.state,n,r)}getJSON(){return this.state.doc.toJSON()}getHTML(){return Qt(this.state.doc.content,this.schema)}getText(e){const{blockSeparator:t="\n\n",textSerializers:n={}}=e||{};return Xt(this.state.doc,{blockSeparator:t,textSerializers:{...Ge(this.schema),...n}})}get isEmpty(){return an(this.state.doc)}getCharacterCount(){return console.warn('[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.'),this.state.doc.content.size-2}destroy(){this.emit("destroy"),this.view&&this.view.destroy(),this.removeAllListeners()}get isDestroyed(){var e;return!(null===(e=this.view)||void 0===e?void 0:e.docView)}}function Fn(e){return new Se({find:e.find,handler:({state:t,range:n,match:o})=>{var a,i;const s=ge(e.getAttributes,void 0,o)||{},{tr:c}=t,l=e.blockReplace?n.from-1:n.from;let u=n.to;const d=e.type.create(s),{$to:p}=c.selection;if(o[1]){const e=o[0].lastIndexOf(o[1]);let t=l+e;t>u?t=u:u=t+o[1].length;const n=o[0][o[0].length-1];c.insertText(n,l+o[0].length-1),c.replaceWith(t,u,d)}else o[0]&&c.replaceWith(l,u,d);if(e.blockReplace&&e.addExtraNewline){if(p.nodeAfter)p.nodeAfter.isTextblock?c.setSelection(r["f"].create(c.doc,p.pos+1)):p.nodeAfter.isBlock?c.setSelection(r["b"].create(c.doc,p.pos)):c.setSelection(r["f"].create(c.doc,p.pos-1));else{const e=(null===(a=p.parent.type.contentMatch.defaultType)||void 0===a?void 0:a.create())||(null===(i=t.doc.type.contentMatch.defaultType)||void 0===i?void 0:i.create());if(e){const t=l+d.nodeSize;c.insert(t,e),c.setSelection(r["f"].create(c.doc,t))}}c.scrollIntoView()}}})}class Gn{constructor(e={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=ge(ue(this,"addOptions",{name:this.name}))),this.storage=ge(ue(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new Gn(e)}configure(e={}){const t=this.extend();return t.options=Ve(this.options,e),t.storage=ge(ue(t,"addStorage",{name:t.name,options:t.options})),t}extend(e={}){const t=new Gn(e);return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`),t.options=ge(ue(t,"addOptions",{name:t.name})),t.storage=ge(ue(t,"addStorage",{name:t.name,options:t.options})),t}static handleExit({editor:e,mark:t}){const{tr:n}=e.state,r=e.state.selection.$from,o=r.pos===r.end();if(o){const o=r.marks(),a=!!o.find(e=>(null===e||void 0===e?void 0:e.type.name)===t.name);if(!a)return!1;const i=o.find(e=>(null===e||void 0===e?void 0:e.type.name)===t.name);return i&&n.removeStoredMark(i),n.insertText(" ",r.pos),e.view.dispatch(n),!0}return!1}}class zn{constructor(e={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=ge(ue(this,"addOptions",{name:this.name}))),this.storage=ge(ue(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new zn(e)}configure(e={}){const t=this.extend();return t.options=Ve(this.options,e),t.storage=ge(ue(t,"addStorage",{name:t.name,options:t.options})),t}extend(e={}){const t=new zn(e);return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`),t.options=ge(ue(t,"addOptions",{name:t.name})),t.storage=ge(ue(t,"addStorage",{name:t.name,options:t.options})),t}}function Hn(){return"Android"===navigator.platform||/android/i.test(navigator.userAgent)}class Yn{constructor(e,t,n){this.isDragging=!1,this.component=e,this.editor=t.editor,this.options={stopEvent:null,ignoreMutation:null,...n},this.extension=t.extension,this.node=t.node,this.decorations=t.decorations,this.getPos=t.getPos,this.mount()}mount(){}get dom(){return this.editor.view.dom}get contentDOM(){return null}onDragStart(e){var t,n,o,a,i,s,c;const{view:l}=this.editor,u=e.target,d=3===u.nodeType?null===(t=u.parentElement)||void 0===t?void 0:t.closest("[data-drag-handle]"):u.closest("[data-drag-handle]");if(!this.dom||(null===(n=this.contentDOM)||void 0===n?void 0:n.contains(u))||!d)return;let p=0,f=0;if(this.dom!==d){const t=this.dom.getBoundingClientRect(),n=d.getBoundingClientRect(),r=null!==(o=e.offsetX)&&void 0!==o?o:null===(a=e.nativeEvent)||void 0===a?void 0:a.offsetX,c=null!==(i=e.offsetY)&&void 0!==i?i:null===(s=e.nativeEvent)||void 0===s?void 0:s.offsetY;p=n.x-t.x+r,f=n.y-t.y+c}null===(c=e.dataTransfer)||void 0===c||c.setDragImage(this.dom,p,f);const h=r["b"].create(l.state.doc,this.getPos()),m=l.state.tr.setSelection(h);l.dispatch(m)}stopEvent(e){var t;if(!this.dom)return!1;if("function"===typeof this.options.stopEvent)return this.options.stopEvent({event:e});const n=e.target,o=this.dom.contains(n)&&!(null===(t=this.contentDOM)||void 0===t?void 0:t.contains(n));if(!o)return!1;const a=e.type.startsWith("drag"),i="drop"===e.type,s=["INPUT","BUTTON","SELECT","TEXTAREA"].includes(n.tagName)||n.isContentEditable;if(s&&!i&&!a)return!0;const{isEditable:c}=this.editor,{isDragging:l}=this,u=!!this.node.type.spec.draggable,d=r["b"].isSelectable(this.node),p="copy"===e.type,f="paste"===e.type,h="cut"===e.type,m="mousedown"===e.type;if(!u&&d&&a&&e.preventDefault(),u&&a&&!l)return e.preventDefault(),!1;if(u&&c&&!l&&m){const e=n.closest("[data-drag-handle]"),t=e&&(this.dom===e||this.dom.contains(e));t&&(this.isDragging=!0,document.addEventListener("dragend",()=>{this.isDragging=!1},{once:!0}),document.addEventListener("drop",()=>{this.isDragging=!1},{once:!0}),document.addEventListener("mouseup",()=>{this.isDragging=!1},{once:!0}))}return!(l||i||p||f||h||m&&d)}ignoreMutation(e){if(!this.dom||!this.contentDOM)return!0;if("function"===typeof this.options.ignoreMutation)return this.options.ignoreMutation({mutation:e});if(this.node.isLeaf||this.node.isAtom)return!0;if("selection"===e.type)return!1;if(this.dom.contains(e.target)&&"childList"===e.type&&(pt()||Hn())&&this.editor.isFocused){const t=[...Array.from(e.addedNodes),...Array.from(e.removedNodes)];if(t.every(e=>e.isContentEditable))return!1}return this.contentDOM===e.target&&"attributes"===e.type||!this.contentDOM.contains(e.target)}updateAttributes(e){this.editor.commands.command(({tr:t})=>{const n=this.getPos();return t.setNodeMarkup(n,void 0,{...this.node.attrs,...e}),!0})}deleteNode(){const e=this.getPos(),t=e+this.node.nodeSize;this.editor.commands.deleteRange({from:e,to:t})}}function qn(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}},"1b0d":function(e,t,n){"use strict";var r=n("437b"),o=n("9412"),a=n("da43"),i=Array.prototype,s=String.prototype;e.exports=function(e){var t=e.includes;return e===i||r(i,e)&&t===i.includes?o:"string"==typeof e||e===s||r(s,e)&&t===s.includes?a:t}},"1b45":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ġi_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"ġurnata",dd:"%d ġranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return t}))},"1b65":function(e,t,n){"use strict";n.d(t,"a",(function(){return N}));var r=n("7a23"),o=n("d095"),a=n("72a5");const i=Object(r["ref"])(),s=Object(r["ref"])(0),c=Object(r["ref"])(0);let l=0;const u=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||e===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});while(n.nextNode())t.push(n.currentNode);return t},d=(e,t)=>{for(const n of e)if(!p(n,t))return n},p=(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},f=e=>{const t=u(e),n=d(t,e),r=d(t.reverse(),e);return[n,r]},h=e=>e instanceof HTMLInputElement&&"select"in e,m=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),c.value=window.performance.now(),e!==n&&h(e)&&t&&e.select()}};function v(e,t){const n=[...e],r=e.indexOf(t);return-1!==r&&n.splice(r,1),n}const g=()=>{let e=[];const t=t=>{const n=e[0];n&&t!==n&&n.pause(),e=v(e,t),e.unshift(t)},n=t=>{var n,r;e=v(e,t),null==(r=null==(n=e[0])?void 0:n.resume)||r.call(n)};return{push:t,remove:n}},_=(e,t=!1)=>{const n=document.activeElement;for(const r of e)if(m(r,t),document.activeElement!==n)return},y=g(),b=()=>s.value>c.value,O=()=>{i.value="pointer",s.value=window.performance.now()},M=()=>{i.value="keyboard",s.value=window.performance.now()},k=()=>(Object(r["onMounted"])(()=>{0===l&&(document.addEventListener("mousedown",O),document.addEventListener("touchstart",O),document.addEventListener("keydown",M)),l++}),Object(r["onBeforeUnmount"])(()=>{l--,l<=0&&(document.removeEventListener("mousedown",O),document.removeEventListener("touchstart",O),document.removeEventListener("keydown",M))}),{focusReason:i,lastUserFocusTimestamp:s,lastAutomatedFocusTimestamp:c}),C=e=>new CustomEvent(a["a"],{...a["b"],detail:e});var w=n("2711"),I=n("49c6"),S=n("0931");let T=[];const E=e=>{const t=e;t.key===I["a"].esc&&T.forEach(e=>e(t))},j=e=>{Object(r["onMounted"])(()=>{0===T.length&&document.addEventListener("keydown",E),S["isClient"]&&T.push(e)}),Object(r["onBeforeUnmount"])(()=>{T=T.filter(t=>t!==e),0===T.length&&S["isClient"]&&document.removeEventListener("keydown",E)})};var D=n("7d20");const L=Object(r["defineComponent"])({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[a["h"],a["g"],"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=Object(r["ref"])();let i,s;const{focusReason:c}=k();j(n=>{e.trapped&&!l.paused&&t("release-requested",n)});const l={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},d=n=>{if(!e.loop&&!e.trapped)return;if(l.paused)return;const{key:r,altKey:o,ctrlKey:a,metaKey:i,currentTarget:s,shiftKey:u}=n,{loop:d}=e,p=r===I["a"].tab&&!o&&!a&&!i,h=document.activeElement;if(p&&h){const e=s,[r,o]=f(e),a=r&&o;if(a)if(u||h!==o){if(u&&[r,e].includes(h)){const e=C({focusReason:c.value});t("focusout-prevented",e),e.defaultPrevented||(n.preventDefault(),d&&m(o,!0))}}else{const e=C({focusReason:c.value});t("focusout-prevented",e),e.defaultPrevented||(n.preventDefault(),d&&m(r,!0))}else if(h===e){const e=C({focusReason:c.value});t("focusout-prevented",e),e.defaultPrevented||n.preventDefault()}}};Object(r["provide"])(a["f"],{focusTrapRef:n,onKeydown:d}),Object(r["watch"])(()=>e.focusTrapEl,e=>{e&&(n.value=e)},{immediate:!0}),Object(r["watch"])([n],([e],[t])=>{e&&(e.addEventListener("keydown",d),e.addEventListener("focusin",v),e.addEventListener("focusout",g)),t&&(t.removeEventListener("keydown",d),t.removeEventListener("focusin",v),t.removeEventListener("focusout",g))});const p=e=>{t(a["h"],e)},h=e=>t(a["g"],e),v=o=>{const a=Object(r["unref"])(n);if(!a)return;const c=o.target,u=o.relatedTarget,d=c&&a.contains(c);if(!e.trapped){const e=u&&a.contains(u);e||(i=u)}d&&t("focusin",o),l.paused||e.trapped&&(d?s=c:m(s,!0))},g=a=>{const i=Object(r["unref"])(n);if(!l.paused&&i)if(e.trapped){const n=a.relatedTarget;Object(o["isNil"])(n)||i.contains(n)||setTimeout(()=>{if(!l.paused&&e.trapped){const e=C({focusReason:c.value});t("focusout-prevented",e),e.defaultPrevented||m(s,!0)}},0)}else{const e=a.target,n=e&&i.contains(e);n||t("focusout",a)}};async function O(){await Object(r["nextTick"])();const t=Object(r["unref"])(n);if(t){y.push(l);const n=t.contains(document.activeElement)?i:document.activeElement;i=n;const o=t.contains(n);if(!o){const o=new Event(a["d"],a["e"]);t.addEventListener(a["d"],p),t.dispatchEvent(o),o.defaultPrevented||Object(r["nextTick"])(()=>{let r=e.focusStartEl;Object(D["isString"])(r)||(m(r),document.activeElement!==r&&(r="first")),"first"===r&&_(u(t),!0),document.activeElement!==n&&"container"!==r||m(t)})}}}function M(){const e=Object(r["unref"])(n);if(e){e.removeEventListener(a["d"],p);const t=new CustomEvent(a["c"],{...a["e"],detail:{focusReason:c.value}});e.addEventListener(a["c"],h),e.dispatchEvent(t),t.defaultPrevented||"keyboard"!=c.value&&b()&&!e.contains(document.activeElement)||m(null!=i?i:document.body),e.removeEventListener(a["c"],h),y.remove(l)}}return Object(r["onMounted"])(()=>{e.trapped&&O(),Object(r["watch"])(()=>e.trapped,e=>{e?O():M()})}),Object(r["onBeforeUnmount"])(()=>{e.trapped&&M()}),{onKeydown:d}}});function A(e,t,n,o,a,i){return Object(r["renderSlot"])(e.$slots,"default",{handleKeydown:e.onKeydown})}var N=Object(w["a"])(L,[["render",A],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]])},"1c0a":function(e,t,n){"use strict";var r=n("d63b"),o=n("8f95");e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},"1c29":function(e,t,n){"use strict";n("fc93"),n("6f89"),n("8b7b"),n("e363"),n("64db"),n("22a9"),n("9080"),n("0e67"),n("e699"),n("e7cc"),n("2e85"),n("980e"),n("9ac4"),n("274e"),n("8d05"),n("ef09"),n("aa1b"),n("522d"),n("8176"),n("d1ac");var r=n("764b");e.exports=r.Symbol},"1cfd":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},n=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},r={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},o=function(e){return function(t,o,a,i){var s=n(t),c=r[e][n(t)];return 2===s&&(c=c[o?0:1]),c.replace(/%d/i,t)}},a=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],i=e.defineLocale("ar-ly",{months:a,monthsShort:a,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:o("s"),ss:o("s"),m:o("m"),mm:o("m"),h:o("h"),hh:o("h"),d:o("d"),dd:o("d"),M:o("M"),MM:o("M"),y:o("y"),yy:o("y")},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}});return i}))},"1d02":function(e,t,n){"use strict";var r=n("ebb5"),o=n("a258").findLastIndex,a=r.aTypedArray,i=r.exportTypedArrayMethod;i("findLastIndex",(function(e){return o(a(this),e,arguments.length>1?arguments[1]:void 0)}))},"1d2b":function(e,t,n){"use strict";e.exports=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)}}},"1d3a":function(e,t,n){"use strict";var r=n("a5eb"),o=n("6220"),a=n("bae4"),i=n("dfdb"),s=n("4508"),c=n("c74f"),l=n("a421"),u=n("6c15"),d=n("0363"),p=n("9c96"),f=n("eb541"),h=p("slice"),m=d("species"),v=Array,g=Math.max;r({target:"Array",proto:!0,forced:!h},{slice:function(e,t){var n,r,d,p=l(this),h=c(p),_=s(e,h),y=s(void 0===t?h:t,h);if(o(p)&&(n=p.constructor,a(n)&&(n===v||o(n.prototype))?n=void 0:i(n)&&(n=n[m],null===n&&(n=void 0)),n===v||void 0===n))return f(p,_,y);for(r=new(void 0===n?v:n)(g(y-_,0)),d=0;_<y;_++,d++)_ in p&&u(r,d,p[_]);return r.length=d,r}})},"1d80":function(e,t,n){"use strict";var r=n("7234"),o=TypeError;e.exports=function(e){if(r(e))throw o("Can't call method on "+e);return e}},"1dda":function(e,t,n){"use strict";var r=n("6220"),o=n("bae4"),a=n("dfdb"),i=n("0363"),s=i("species"),c=Array;e.exports=function(e){var t;return r(e)&&(t=e.constructor,o(t)&&(t===c||r(t.prototype))?t=void 0:a(t)&&(t=t[s],null===t&&(t=void 0))),void 0===t?c:t}},"1e52":function(e,t,n){"use strict";var r=n("2364");n("5145"),e.exports=r},"1eaf":function(e,t,n){e.exports=n("86d6")},"1fc1":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
function t(e,t){var n=e.split("_");return t%10===1&&t%100!==11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function n(e,n,r){var o={ss:n?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:n?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:n?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"};return"m"===r?n?"хвіліна":"хвіліну":"h"===r?n?"гадзіна":"гадзіну":e+" "+t(o[r],+e)}var r=e.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:n,mm:n,h:n,hh:n,d:"дзень",dd:n,M:"месяц",MM:n,y:"год",yy:n},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(e){return/^(дня|вечара)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночы":e<12?"раніцы":e<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!==2&&e%10!==3||e%100===12||e%100===13?e+"-ы":e+"-і";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}});return r}))},2016:function(e,t,n){"use strict";n.d(t,"a",(function(){return io}));var r=n("3653"),o=n("7a23");(function(){try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(".singleInvite-message[data-v-763f93b1]{display:flex;flex-direction:column;padding:0 16px;justify-content:center}.singleInvite-message .singleInvite-nick[data-v-763f93b1]{line-height:40px;text-align:center;font-size:20px;color:#333;letter-spacing:0;font-weight:500}.singleInvite-message .singleInvite-tips[data-v-763f93b1]{height:20px;font-size:14px;color:#97989c;letter-spacing:0;font-weight:400;text-align:center}.singleInvite-avatar[data-v-763f93b1]{width:100px;height:100px;border-radius:12px;margin:0 auto}.singleInvite-message[data-v-31053437]{color:#fff;display:flex;flex-direction:column;padding:0 16px;justify-content:center}.singleInvite-message .singleInvite-nick[data-v-31053437]{font-size:20px;letter-spacing:0;margin:0 auto;font-weight:600;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.singleInvite-message .singleInvite-tips[data-v-31053437]{font-size:14px;letter-spacing:0;text-align:center;font-weight:400}.singleInvite-avatar[data-v-31053437]{width:100px;height:100px;border-radius:12px}.singleInvite-header-mobile{display:flex;justify-content:flex-end;padding:0 26px}.singleInvite-header-mobile .singleAudio{margin:0 auto}.singleInvite-header-mobile .singleVideo{display:flex}.singleInvite-header-desktop{display:flex;flex-direction:column;justify-content:flex-start;align-items:center;position:relative;top:30%}.singleInvite-header-desktop .singleInvite-message .singleInvite-nick{font-style:normal;font-weight:600;font-size:40px;width:100%;line-height:56px;display:flex;align-items:center;justify-content:center;color:#fff}.singleInvite-header-desktop .singleInvite-message .singleInvite-nick .microphone-icon-container{width:24px;height:24px;background:rgba(0,0,0,.4);border-radius:12px;line-height:24px;margin-left:8px}.singleInvite-header-desktop .singleInvite-tips{font-style:normal;font-weight:400;font-size:14px;line-height:20px;color:#fff}.btn-operate-mobile[data-v-5bf037a3]{display:flex;flex-direction:column;align-items:center;margin-bottom:20px}.btn-operate-mobile .call-operate[data-v-5bf037a3]{width:50px;height:50px;border-radius:8vh;margin:0 5vw;box-sizing:border-box;display:flex;justify-content:center;align-items:center}.btn-operate-mobile .call-operate .invite-calling-item-loading[data-v-5bf037a3]{width:40px;height:40px;animation:rotation-5bf037a3 2s linear infinite}.btn-operate-mobile .call-operate .invite-calling-item-loading img[data-v-5bf037a3]{width:100%;height:100%}.btn-operate-mobile .call-operate img[data-v-5bf037a3]{width:100%;height:100%;background:none}.btn-operate-mobile .call-operate .switchAudioCall[data-v-5bf037a3]{width:6vw;height:3vh}.btn-operate-mobile .call-switch .call-operate[data-v-5bf037a3]{width:4vh;height:3vh}.btn-operate-mobile span[data-v-5bf037a3]{margin-top:10px}.btn-operate-desktop .call-operate[data-v-5bf037a3]{display:flex;flex-direction:column;width:40px;height:40px;margin:0 40px;cursor:pointer}.btn-operate-desktop .invite-calling-item-loading[data-v-5bf037a3]{width:40px;height:40px;animation:rotation-5bf037a3 2s linear infinite}@keyframes rotation-5bf037a3{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.btn-operate-desktop .invite-calling-item-loading img[data-v-5bf037a3]{width:100%;height:100%}.btn-operate-desktop img[data-v-5bf037a3]{width:100%;display:flex;flex-direction:row;justify-content:center;align-items:center;position:relative}.btn-operate-desktop span[data-v-5bf037a3]{display:block;margin-top:5px;white-space:nowrap;font-weight:400;font-size:14px;line-height:20px;text-align:center}.btn-operate-mobile[data-v-d3595e0b]{display:flex;flex-direction:column;align-items:center;margin-bottom:20px}.btn-operate-mobile .call-operate[data-v-d3595e0b]{width:50px;height:50px;border-radius:8vh;margin:0 5vw;box-sizing:border-box;display:flex;justify-content:center;align-items:center}.btn-operate-mobile .call-operate .invite-calling-item-loading[data-v-d3595e0b]{width:40px;height:40px;animation:rotation-d3595e0b 2s linear infinite}.btn-operate-mobile .call-operate .invite-calling-item-loading img[data-v-d3595e0b]{width:100%;height:100%}.btn-operate-mobile .call-operate img[data-v-d3595e0b]{width:100%;height:100%;background:none}.btn-operate-mobile .call-operate .switchAudioCall[data-v-d3595e0b]{width:6vw;height:3vh}.btn-operate-mobile .call-switch .call-operate[data-v-d3595e0b]{width:4vh;height:3vh}.btn-operate-mobile span[data-v-d3595e0b]{margin-top:10px}.btn-operate-desktop .call-operate[data-v-d3595e0b]{display:flex;flex-direction:column;width:40px;height:40px;margin:0 40px;cursor:pointer}.btn-operate-desktop .invite-calling-item-loading[data-v-d3595e0b]{width:40px;height:40px;animation:rotation-d3595e0b 2s linear infinite}@keyframes rotation-d3595e0b{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.btn-operate-desktop .invite-calling-item-loading img[data-v-d3595e0b]{width:100%;height:100%}.btn-operate-desktop img[data-v-d3595e0b]{width:100%;display:flex;flex-direction:row;justify-content:center;align-items:center;position:relative}.btn-operate-desktop span[data-v-d3595e0b]{display:block;margin-top:5px;white-space:nowrap;font-weight:400;font-size:14px;line-height:20px;text-align:center}.btn-operate-mobile[data-v-d28bf8d1]{display:flex;flex-direction:column;align-items:center;margin-bottom:20px}.btn-operate-mobile .call-operate[data-v-d28bf8d1]{width:50px;height:50px;border-radius:8vh;margin:0 5vw;box-sizing:border-box;display:flex;justify-content:center;align-items:center}.btn-operate-mobile .call-operate .invite-calling-item-loading[data-v-d28bf8d1]{width:40px;height:40px;animation:rotation-d28bf8d1 2s linear infinite}.btn-operate-mobile .call-operate .invite-calling-item-loading img[data-v-d28bf8d1]{width:100%;height:100%}.btn-operate-mobile .call-operate img[data-v-d28bf8d1]{width:100%;height:100%;background:none}.btn-operate-mobile .call-operate .switchAudioCall[data-v-d28bf8d1]{width:6vw;height:3vh}.btn-operate-mobile .call-switch .call-operate[data-v-d28bf8d1]{width:4vh;height:3vh}.btn-operate-mobile span[data-v-d28bf8d1]{margin-top:10px}.btn-operate-desktop .call-operate[data-v-d28bf8d1]{display:flex;flex-direction:column;width:40px;height:40px;margin:0 40px;cursor:pointer}.btn-operate-desktop .invite-calling-item-loading[data-v-d28bf8d1]{width:40px;height:40px;animation:rotation-d28bf8d1 2s linear infinite}@keyframes rotation-d28bf8d1{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.btn-operate-desktop .invite-calling-item-loading img[data-v-d28bf8d1]{width:100%;height:100%}.btn-operate-desktop img[data-v-d28bf8d1]{width:100%;display:flex;flex-direction:row;justify-content:center;align-items:center;position:relative}.btn-operate-desktop span[data-v-d28bf8d1]{display:block;margin-top:5px;white-space:nowrap;font-weight:400;font-size:14px;line-height:20px;text-align:center}.btn-operate-desktop .call-operate[data-v-96c9cbf4]{display:flex;flex-direction:column;width:40px;height:40px;margin:0 40px;cursor:pointer}.btn-operate-desktop img[data-v-96c9cbf4]{width:100%;display:flex;flex-direction:row;justify-content:center;align-items:center;position:relative}.btn-operate-desktop span[data-v-96c9cbf4]{display:block;margin-top:5px;white-space:nowrap;font-weight:400;font-size:14px;line-height:20px;text-align:center}.btn-operate-mobile[data-v-96c9cbf4]{display:flex;flex-direction:column;align-items:center;margin-bottom:20px}.btn-operate-mobile .call-operate[data-v-96c9cbf4]{width:28px;height:26px;border-radius:8vh;margin:0 5vw;box-sizing:border-box;display:flex;justify-content:center;align-items:center}.btn-operate-mobile .call-operate img[data-v-96c9cbf4]{width:100%;height:100%;background:none}.btn-operate-mobile span[data-v-96c9cbf4]{margin-top:10px}.btn-operate-item[data-v-07a98f5a]{display:flex;flex-direction:column;align-items:center;justify-content:flex-end}.btn-operate-item .invite-calling-header-left[data-v-07a98f5a]{position:absolute;right:-15vw}.btn-operate-item .invite-calling-header-left img[data-v-07a98f5a]{width:32px;height:32px}.btn-operate-mobile[data-v-d14af11d]{display:flex;flex-direction:column;align-items:center;margin-bottom:20px}.btn-operate-mobile .call-operate[data-v-d14af11d]{width:50px;height:50px;border-radius:8vh;margin:0 5vw;box-sizing:border-box;display:flex;justify-content:center;align-items:center}.btn-operate-mobile .call-operate .invite-calling-item-loading[data-v-d14af11d]{width:40px;height:40px;animation:rotation-d14af11d 2s linear infinite}.btn-operate-mobile .call-operate .invite-calling-item-loading img[data-v-d14af11d]{width:100%;height:100%}.btn-operate-mobile .call-operate img[data-v-d14af11d]{width:100%;height:100%;background:none}.btn-operate-mobile .call-operate .switchAudioCall[data-v-d14af11d]{width:6vw;height:3vh}.btn-operate-mobile .call-switch .call-operate[data-v-d14af11d]{width:4vh;height:3vh}.btn-operate-mobile span[data-v-d14af11d]{margin-top:10px}.btn-operate-desktop .call-operate[data-v-d14af11d]{display:flex;flex-direction:column;width:40px;height:40px;margin:0 40px;cursor:pointer}.btn-operate-desktop .invite-calling-item-loading[data-v-d14af11d]{width:40px;height:40px;animation:rotation-d14af11d 2s linear infinite}@keyframes rotation-d14af11d{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.btn-operate-desktop .invite-calling-item-loading img[data-v-d14af11d]{width:100%;height:100%}.btn-operate-desktop img[data-v-d14af11d]{width:100%;display:flex;flex-direction:row;justify-content:center;align-items:center;position:relative}.btn-operate-desktop span[data-v-d14af11d]{display:block;margin-top:5px;white-space:nowrap;font-weight:400;font-size:14px;line-height:20px;text-align:center}.btn-operate-mobile[data-v-c20ae8b3]{display:flex;flex-direction:column;align-items:center;margin-bottom:20px}.btn-operate-mobile .call-operate[data-v-c20ae8b3]{width:50px;height:50px;border-radius:8vh;margin:0 5vw;box-sizing:border-box;display:flex;justify-content:center;align-items:center}.btn-operate-mobile .call-operate .invite-calling-item-loading[data-v-c20ae8b3]{width:40px;height:40px;animation:rotation-c20ae8b3 2s linear infinite}.btn-operate-mobile .call-operate .invite-calling-item-loading img[data-v-c20ae8b3]{width:100%;height:100%}.btn-operate-mobile .call-operate img[data-v-c20ae8b3]{width:100%;height:100%;background:none}.btn-operate-mobile .call-operate .switchAudioCall[data-v-c20ae8b3]{width:6vw;height:3vh}.btn-operate-mobile .call-switch .call-operate[data-v-c20ae8b3]{width:4vh;height:3vh}.btn-operate-mobile span[data-v-c20ae8b3]{margin-top:10px}.btn-operate-desktop .call-operate[data-v-c20ae8b3]{display:flex;flex-direction:column;width:40px;height:40px;margin:0 40px;cursor:pointer}.btn-operate-desktop .invite-calling-item-loading[data-v-c20ae8b3]{width:40px;height:40px;animation:rotation-c20ae8b3 2s linear infinite}@keyframes rotation-c20ae8b3{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.btn-operate-desktop .invite-calling-item-loading img[data-v-c20ae8b3]{width:100%;height:100%}.btn-operate-desktop img[data-v-c20ae8b3]{width:100%;display:flex;flex-direction:row;justify-content:center;align-items:center;position:relative}.btn-operate-desktop span[data-v-c20ae8b3]{display:block;margin-top:5px;white-space:nowrap;font-weight:400;font-size:14px;line-height:20px;text-align:center}.btn-operate-mobile[data-v-9e11a5bd]{display:flex;flex-direction:column;align-items:center;margin-bottom:20px}.btn-operate-mobile .call-operate[data-v-9e11a5bd]{width:50px;height:50px;border-radius:8vh;margin:0 5vw;box-sizing:border-box;display:flex;justify-content:center;align-items:center}.btn-operate-mobile .call-operate .invite-calling-item-loading[data-v-9e11a5bd]{width:40px;height:40px;animation:rotation-9e11a5bd 2s linear infinite}.btn-operate-mobile .call-operate .invite-calling-item-loading img[data-v-9e11a5bd]{width:100%;height:100%}.btn-operate-mobile .call-operate img[data-v-9e11a5bd]{width:100%;height:100%;background:none}.btn-operate-mobile .call-operate .switchAudioCall[data-v-9e11a5bd]{width:6vw;height:3vh}.btn-operate-mobile .call-switch .call-operate[data-v-9e11a5bd]{width:4vh;height:3vh}.btn-operate-mobile span[data-v-9e11a5bd]{margin-top:10px}.btn-operate-desktop .call-operate[data-v-9e11a5bd]{display:flex;flex-direction:column;width:40px;height:40px;margin:0 40px;cursor:pointer}.btn-operate-desktop .invite-calling-item-loading[data-v-9e11a5bd]{width:40px;height:40px;animation:rotation-9e11a5bd 2s linear infinite}@keyframes rotation-9e11a5bd{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.btn-operate-desktop .invite-calling-item-loading img[data-v-9e11a5bd]{width:100%;height:100%}.btn-operate-desktop img[data-v-9e11a5bd]{width:100%;display:flex;flex-direction:row;justify-content:center;align-items:center;position:relative}.btn-operate-desktop span[data-v-9e11a5bd]{display:block;margin-top:5px;white-space:nowrap;font-weight:400;font-size:14px;line-height:20px;text-align:center}.text[data-v-da96c01e]{margin-bottom:20px}.control-wrapper-desktop[data-v-3e20fe82]{transform:translate(-50%);position:absolute;bottom:0;padding-bottom:40px;left:50%;width:100%;color:#fff;border-radius:inherit;background:linear-gradient(180deg,rgba(0,0,0,0) 0%,rgba(0,0,0,.4) 100%);display:flex;flex-direction:column;flex-wrap:wrap;align-items:center;user-select:none}.control-wrapper-desktop .panel-button-area[data-v-3e20fe82]{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-evenly;margin:30px 0;min-width:40%}.control-wrapper-desktop .panel-button-area .btn-operate-desktop .call-operate[data-v-3e20fe82]{display:flex;flex-direction:column;width:40px;height:40px;margin:0 40px;cursor:pointer}.control-wrapper-desktop .panel-button-area .btn-operate-desktop img[data-v-3e20fe82]{width:100%;display:flex;flex-direction:row;justify-content:center;align-items:center;position:relative}.control-wrapper-desktop .panel-button-area .btn-operate-desktop span[data-v-3e20fe82]{display:block;margin-top:5px;white-space:nowrap;font-weight:400;font-size:14px;line-height:20px;text-align:center}.control-wrapper-mobile[data-v-3e20fe82]{position:absolute;bottom:20px;width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center}.control-wrapper-mobile .btn-operate[data-v-3e20fe82]{display:flex;justify-content:center;align-items:center;position:relative;font-size:16px;letter-spacing:0;font-weight:400}.control-wrapper-mobile .btn-operate .mobile-reject[data-v-3e20fe82],.control-wrapper-mobile .btn-operate .mobile-accept[data-v-3e20fe82]{margin:0 40px 40px}.control-wrapper-mobile .btn-operate .mobile-switchAudioCall[data-v-3e20fe82]{font-size:14px}.black[data-v-3e20fe82]{color:#000}.white[data-v-3e20fe82]{color:#fff}.streamBox[data-v-ea64a17c]{width:100%;height:100%}.streamBox-mobile[data-v-ea64a17c]{position:relative}.streamBox-mobile .remoteList[data-v-ea64a17c]{position:fixed;top:60px;right:40px;z-index:999;width:140px;height:200px}.streamBox-mobile .remoteList .remoteListBox[data-v-ea64a17c]{width:140px;height:200px}.streamBox-mobile .localVideo[data-v-ea64a17c]{width:100vw;height:100vh}.streamBox-mobile .localVideo .remoteList[data-v-ea64a17c]{top:0;right:0}.streamBox-mobile .localVideo .remoteListBox[data-v-ea64a17c]{width:100vw;height:100vh}.streamBox-deskTop[data-v-ea64a17c]{position:relative;width:100%;height:100%}.streamBox-deskTop .switchScreen[data-v-ea64a17c]{cursor:pointer;position:absolute;top:20px;left:260px;z-index:999}.streamBox-deskTop .switchScreen .screenImg[data-v-ea64a17c]{width:16px}.streamBox-deskTop .remoteList-desk[data-v-ea64a17c]{position:absolute;top:20px;left:20px;width:260px;height:180px;z-index:999;background-color:#000}.streamBox-deskTop .remoteList-desk .remoteListBox[data-v-ea64a17c],.streamBox-deskTop .localVideo[data-v-ea64a17c]{width:100%;height:100%}.streamBox-deskTop .localVideo .remoteList[data-v-ea64a17c]{top:0;right:0}.streamBox-deskTop .localVideo .remoteListBox[data-v-ea64a17c]{width:100%;height:100%}.streamBox-deskTop .tag[data-v-ea64a17c]{color:#fff;z-index:inherit;background:rgba(0,0,0,.6);padding:2px 10px;border-top-right-radius:inherit;border-bottom-left-radius:inherit;font-size:14px;position:absolute;left:0;bottom:0;z-index:11;display:flex;align-items:center}.streamBox-deskTop .tag .microphone-icon-container[data-v-ea64a17c]{margin-left:0;margin-right:2px;width:20px;background-color:transparent}.float-control-panel[data-v-b8fb8f6e]{width:168px;height:56px;background:white;z-index:13;display:flex;flex-wrap:nowrap;justify-content:center;border-radius:40px;box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px}.float-control-item-icon[data-v-b8fb8f6e]{display:flex;flex-direction:row;justify-content:center;align-items:center;width:56px;height:56px;position:relative}.float-control-item-icon-container[data-v-b8fb8f6e]{border-radius:40px;width:40px;height:40px;margin:.5rem;cursor:pointer;display:flex;flex-direction:row;justify-content:center;align-items:center}.float-control-item-icon-container[data-v-b8fb8f6e]:hover{background:rgba(218,218,218,.3)}.minimize[data-v-7f0167b6]{margin-left:10px}.videoStyle{background:#00183c}.singleCall-mobile{width:100vw;height:100vh;display:flex;flex-direction:column;z-index:0}.singleCall-mobile .inviteHeader{width:100%;position:fixed;top:107px;z-index:99}.singleCall-mobile .live-pusher{width:100%;height:100%}.singleCall-desktop{width:100%;height:100%;text-align:center;z-index:0;background:#00183c;position:relative}.singleCall-desktop .toggleSize{position:absolute;right:12px;top:12px;z-index:13;cursor:pointer;display:flex;flex-direction:row;justify-content:flex-start}.singleCall-desktop .inviteHeader{position:absolute;left:50%;top:42%;transform:translate(-50%,-50%);z-index:99}.avatar[data-v-bab70197]{width:120px;height:120px;border-radius:12px;display:block;margin:40px auto 15px}.tips[data-v-bab70197]{width:126px;height:auto;font-family:PingFangSC-Regular;font-weight:400;font-size:14px;color:#333;letter-spacing:0;margin:16px auto 40px;text-align:center}.nick[data-v-bab70197]{font-size:20px;letter-spacing:0;margin:0 auto;font-weight:600;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center}.list-tips[data-v-bab70197]{width:112px;height:auto;font-family:PingFangSC-Regular;font-weight:400;font-size:14px;color:#333;letter-spacing:0;margin:0 auto 24px;text-align:center}.list[data-v-bab70197]{position:absolute;left:14vw;margin-top:0 auto;display:flex;width:272px;justify-content:center;flex-wrap:wrap}.list-item[data-v-bab70197]{flex:.25;text-align:center;width:64px;margin:2px}.list-item .list-avatar[data-v-bab70197]{border-radius:10%;width:64px;height:64px}.list-item .list-name[data-v-bab70197]{font-family:PingFangSC-Regular;font-weight:400;font-size:12px;color:#666;letter-spacing:0;line-height:18px}.groupInvite-header-desktop[data-v-7e67e4cf]{display:flex;flex-direction:column;justify-content:flex-start;align-items:center;position:absolute;top:32%;left:40%}.groupInvite-header-desktop .singleInvite-message .singleInvite-nick[data-v-7e67e4cf]{font-style:normal;font-weight:600;font-size:40px;width:100%;line-height:56px;display:flex;align-items:center;justify-content:center;color:#fff}.groupInvite-header-desktop .singleInvite-tips[data-v-7e67e4cf]{font-style:normal;font-weight:400;font-size:14px;line-height:20px;color:#fff}.control-wrapper-desktop[data-v-f3ff4c3f]{transform:translate(-50%);position:absolute;bottom:0;padding-bottom:40px;left:50%;width:100%;color:#fff;border-radius:inherit;background:linear-gradient(180deg,rgba(0,0,0,0) 0%,rgba(0,0,0,.4) 100%);display:flex;flex-direction:column;flex-wrap:wrap;align-items:center;user-select:none}.control-wrapper-desktop .panel-button-area[data-v-f3ff4c3f]{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-evenly;margin:30px 0;min-width:40%}.control-wrapper-desktop .panel-button-area .btn-operate-desktop .call-operate[data-v-f3ff4c3f]{display:flex;flex-direction:column;width:40px;height:40px;margin:0 40px;cursor:pointer}.control-wrapper-desktop .panel-button-area .btn-operate-desktop img[data-v-f3ff4c3f]{width:100%;display:flex;flex-direction:row;justify-content:center;align-items:center;position:relative}.control-wrapper-desktop .panel-button-area .btn-operate-desktop span[data-v-f3ff4c3f]{display:block;margin-top:5px;white-space:nowrap;font-weight:400;font-size:14px;line-height:20px;text-align:center}.control-wrapper-mobile[data-v-f3ff4c3f]{position:absolute;bottom:20px;width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center}.control-wrapper-mobile .btn-operate[data-v-f3ff4c3f]{display:flex;justify-content:center;align-items:center;position:relative;font-size:16px;letter-spacing:0;font-weight:400}.control-wrapper-mobile .btn-operate .mobile-reject[data-v-f3ff4c3f],.control-wrapper-mobile .btn-operate .mobile-accept[data-v-f3ff4c3f]{margin:0 40px 40px}.control-wrapper-mobile .btn-operate .mobile-switchAudioCall[data-v-f3ff4c3f]{font-size:14px}.black[data-v-f3ff4c3f]{color:#000}.white[data-v-f3ff4c3f]{color:#fff}.swipe{width:100%;height:100%;position:absolute;flex-wrap:wrap;display:flex;align-items:flex-start;align-content:flex-start}.swipe .swiper-sliders-container{position:relative;display:flex;flex-wrap:wrap;align-content:flex-start;width:100%;overflow-x:hidden}.swipe .swiper-sliders-container.swiper-sliders-container-column{flex-direction:column}.swipe .swiper-sliders-container.swiper-sliders-container-row{flex-direction:row}.swipe .swipe-dots-container{position:absolute;width:100%;display:flex;justify-content:center;top:400px}.swipe .swipe-dots-container .swipe-dots{width:8px;height:8px;background:#000;opacity:.15;border-radius:20px;margin:5px}.swipe .swipe-dots-container .swipe-current-dots{width:8px;height:8px;background:#000;opacity:1;border-radius:20px;margin:5px}.swiper-item[data-v-61c01897]{position:absolute;display:flex;flex-direction:row;flex-wrap:wrap}.slide-left-enter-active[data-v-61c01897]{transition:all .3s}.slide-left-leave-active[data-v-61c01897]{transform:all .3s}.slide-left-enter-from[data-v-61c01897]{transform:translate(100%)}.slide-left-leave-to[data-v-61c01897]{opacity:0;transform:translate(0)}.slide-right-enter-active[data-v-61c01897],.slide-right-leave-active[data-v-61c01897]{transition:all .3s}.slide-right-enter-from[data-v-61c01897]{opacity:0;transform:translate(-100%)}.slide-right-leave-to[data-v-61c01897]{opacity:0;transform:translate(100%)}#localVideo[data-v-96348cbc]{width:100%;height:100%}.invite-calling-list[data-v-96348cbc]{display:flex;flex-wrap:wrap;width:100%;justify-content:flex-start}.invite-calling-item[data-v-96348cbc]{height:187px;background-color:#000}.invite-calling-item image[data-v-96348cbc]{width:100%;height:100%}.invite-calling-item-message[data-v-96348cbc]{position:absolute;top:0;left:0;float:left;width:100%;height:100%;z-index:2}.invite-calling-item-message .tag[data-v-96348cbc]{color:#fff;z-index:inherit;background:rgba(0,0,0,.6);padding:2px 10px;border-top-right-radius:inherit;border-bottom-left-radius:inherit;font-size:14px;position:absolute;left:0;bottom:0;z-index:11;display:flex;align-items:center}.invite-calling-item-message .tag .microphone-icon-container[data-v-96348cbc]{margin-top:4px;margin-right:2px;width:16px;background-color:transparent}.invite-calling-item-loading[data-v-96348cbc]{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);width:40px;height:40px;animation:rotation-96348cbc 2s linear infinite}@keyframes rotation-96348cbc{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.invite-calling-item-loading img[data-v-96348cbc]{width:100%;height:100%}.invite-calling-item-id[data-v-96348cbc]{position:absolute;left:2%;bottom:2%;font-family:PingFangSC-Regular;font-weight:400;font-size:12px;color:#fff}.avatar[data-v-96348cbc]{background-color:#000;width:100%;height:100%}.calling-wrapper[data-v-ecba3372]{position:relative;width:100%;height:100%;border-radius:inherit;background:rgba(0,24,60,.7);backdrop-filter:blur(34px);display:flex;flex-direction:column;justify-content:center;overflow:hidden;z-index:-1}.calling-wrapper[data-v-ecba3372]:hover{z-index:inherit;transition:all .5s ease-in-out}#local-dialing[data-v-ecba3372],#localVideo[data-v-ecba3372]{background:rgba(32,32,32,.45);background-repeat:no-repeat;background-size:auto;background-position-x:center;background-position-y:calc(50% + 10px)}.panel-button-area[data-v-ecba3372]{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;margin:30px 0}.panel-dialing-info[data-v-ecba3372]{text-align:center}.control-wrapper[data-v-ecba3372]:hover{z-index:13}.control-item[data-v-ecba3372]{display:flex;flex-direction:column;width:100px;margin:0 20px}.invite-calling-item-loading[data-v-ecba3372]{position:absolute;left:calc(50% - 20px);top:calc(50% - 40px);width:40px;height:40px;animation:rotation-ecba3372 2s linear infinite}@keyframes rotation-ecba3372{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.invite-calling-item-loading img[data-v-ecba3372]{width:100%;height:100%}.tag[data-v-ecba3372]{color:#fff;z-index:inherit;background:rgba(0,0,0,.6);padding:2px 10px;border-top-right-radius:inherit;border-bottom-left-radius:inherit;font-size:14px;position:absolute;left:0;bottom:0;z-index:11;display:flex;align-items:center}.tag .microphone-icon-container[data-v-ecba3372]{margin-left:0;margin-right:2px;width:20px;background-color:transparent}.switch-large-small[data-v-ecba3372]{position:absolute;right:12px;top:12px;width:16px;height:16px;z-index:inherit;cursor:pointer}.small-h5[data-v-ecba3372]{position:absolute;width:94px;height:160px;min-height:100px;max-height:60%;top:30px;right:10px;z-index:2;overflow:hidden;background:#000;border-radius:4px}.small[data-v-ecba3372]{position:absolute;width:260px;height:170px;min-height:100px;max-height:60%;top:30px;left:30px;z-index:2;overflow:hidden;resize:both;background:#000;border-radius:4px}.large[data-v-ecba3372]{min-height:100px;width:100%;height:100%;z-index:1;border-radius:inherit;overflow:hidden}.large .switch-large-small[data-v-ecba3372]{display:none}.group-calling-container[data-v-ecba3372]{width:100%;height:100%;display:flex;flex-wrap:wrap;justify-content:center}.group-user-view[data-v-ecba3372]{width:33.333%;height:33.333%;position:relative;background:rgba(32,32,32,.45);backdrop-filter:blur(34px);color:#fff;overflow:hidden}.user-view-text-container[data-v-ecba3372]{position:absolute;left:0;top:0;width:100%;height:100%;z-index:11;display:flex;flex-direction:column;justify-content:center;align-items:center;transform:translateY(-20px)}.user-view-user-id[data-v-ecba3372]{font-family:PingFang SC;font-style:normal;font-weight:600;font-size:24px;line-height:34px}.user-view-info[data-v-ecba3372]{font-family:PingFang SC;font-style:normal;font-weight:400;font-size:12px;line-height:17px}.page-turn[data-v-ecba3372]{width:40px;height:86px;border-radius:4.21px;background:rgba(0,0,0,.2);position:absolute;top:50%;transform:translateY(-50%);z-index:11;display:flex;justify-content:center;align-items:center;cursor:pointer}.turn-icon-container[data-v-ecba3372]{width:14px;height:23px}.right[data-v-ecba3372]{right:0}.microphone-icon-container[data-v-ecba3372]{width:24px;height:24px;background:rgba(0,0,0,.4);border-radius:12px;display:flex;justify-content:center;align-items:center;margin-left:8px}.group-user-view-1[data-v-ecba3372]{width:100%;height:100%}.group-calling-container-1[data-v-ecba3372]{height:100%}.group-user-view-2[data-v-ecba3372]{width:50%;height:100%}.group-calling-container-2[data-v-ecba3372]{height:50%}.group-user-view-3[data-v-ecba3372],.group-user-view-4[data-v-ecba3372]{width:50%;height:50%}.group-calling-container-3[data-v-ecba3372],.group-calling-container-4[data-v-ecba3372]{height:100%}.group-user-view-5[data-v-ecba3372],.group-user-view-6[data-v-ecba3372]{width:33.333%;height:50%}.group-calling-container-5[data-v-ecba3372],.group-calling-container-6[data-v-ecba3372]{height:66%}.user-view-user-id-1[data-v-ecba3372]{font-size:24px}.user-view-user-id-2[data-v-ecba3372],.user-view-user-id-3[data-v-ecba3372],.user-view-user-id-4[data-v-ecba3372]{font-size:22px}.user-view-user-id-5[data-v-ecba3372],.user-view-user-id-6[data-v-ecba3372],.user-view-user-id-7[data-v-ecba3372],.user-view-user-id-8[data-v-ecba3372],.user-view-user-id-9[data-v-ecba3372]{font-size:18px}.float-control-panel[data-v-ecba3372]{width:168px;height:56px;background:white;z-index:13;position:fixed;top:20px;right:20px;display:flex;flex-wrap:nowrap;justify-content:center;border-radius:40px;box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px}.function-buttons[data-v-ecba3372]{position:absolute;right:12px;top:12px;z-index:13;cursor:pointer;display:flex;flex-direction:row;justify-content:flex-start}.minimize[data-v-ecba3372]{margin-left:10px}.float-control-item-icon[data-v-ecba3372]{display:flex;flex-direction:row;justify-content:center;align-items:center;width:56px;height:56px;position:relative}.float-control-item-icon-container[data-v-ecba3372]{border-radius:40px;width:40px;height:40px;margin:.5rem;cursor:pointer;display:flex;flex-direction:row;justify-content:center;align-items:center}.float-control-item-icon-container[data-v-ecba3372]:hover{background:rgba(218,218,218,.3)}.streamBox[data-v-522c44be]{width:100%;height:100%}.group-deskTop[data-v-bb1549c9]{background:#00183c;z-index:0}.toast-container[data-v-d9be0202]{position:fixed;display:flex;align-items:center;z-index:1002;justify-content:space-between;left:50%;transform:translate(-50%);padding:15px 15px 15px 20px;background-color:#000;color:#fff;box-sizing:border-box;border-radius:4px;border-width:1px;border-style:solid}.toast-container .toast-content[data-v-d9be0202]{margin-right:16px}.toast-container .toast-close-icon[data-v-d9be0202]{width:16px;line-height:16px;cursor:pointer}.toast-container .toast-close-icon[data-v-d9be0202]:before{font-style:normal;content:url(data:image/svg+xml;base64,PHN2ZyB0PSIxNjg4OTk4OTI4NDQ1IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjE2MDkiIHdpZHRoPSIxMCIgaGVpZ2h0PSIxMCI+PHBhdGggZD0iTTUxMiA0NjYuNzUyTDg2LjY1NiA0MS4zNDRhMzIgMzIgMCAwIDAtNDUuMzEyIDQ1LjMxMkw0NjYuNzUyIDUxMiA0MS4zNDQgOTM3LjM0NGEzMiAzMiAwIDAgMCA0NS4zMTIgNDUuMzEyTDUxMiA1NTcuMjQ4bDQyNS4zNDQgNDI1LjQwOGEzMiAzMiAwIDAgMCA0NS4zMTItNDUuMzEyTDU1Ny4yNDggNTEybDQyNS40MDgtNDI1LjM0NGEzMiAzMiAwIDAgMC00NS4zMTItNDUuMzEyTDUxMiA0NjYuNzUyeiIgZmlsbD0iIzcwNzA3MCIgcC1pZD0iMTYxMCI+PC9wYXRoPjwvc3ZnPg==)}.info[data-v-d9be0202]{border-color:#ebeef5;color:#909399;background-color:#edf2fc}.success[data-v-d9be0202]{color:#67c23a;background-color:#f0f9eb;border-color:#e1f3d8}.waring[data-v-d9be0202]{color:#e6a23c;background-color:#fdf6ec;border-color:#faecd8}.error[data-v-d9be0202]{color:#f56c6c;background-color:#fef0f0;border-color:#fde2e2}.slide-up-enter-active[data-v-d9be0202],.slide-up-leave-active[data-v-d9be0202]{transition:all .5s ease-out}.slide-up-enter-from[data-v-d9be0202]{opacity:0;transform:translate(-50%,20px)}.slide-up-leave-to[data-v-d9be0202]{opacity:0;transform:translate(-50%,-20px)}.fade-enter-from[data-v-d9be0202],.fade-leave-to[data-v-d9be0202]{opacity:0;transform:translate(-50%,-100%)}.TUICallKit-mobile{width:100vw;height:100vh;overflow:hidden;background-color:#fff}.TUICallKit-mobile .singCall{width:100vw;height:100vh}.transition-animation{transform:translateY(-100%);animation:slideInDown 1s ease forwards}@keyframes slideInDown{0%{transform:translateY(-100%)}to{transform:translateY(0)}}.TUICallKit-desktop{margin:0 auto;position:relative;border-radius:inherit;width:100%;height:100%;color:#fff;display:flex;flex-direction:column;justify-content:center;overflow:hidden;z-index:12;border-radius:16px}.TUICallKit-desktop .singCall{width:100%;height:100%}.miniMized{width:168px!important;height:56px!important;overflow:visible!important}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();const a=typeof wx<"u"&&"function"==typeof wx.getSystemInfoSync&&Boolean(wx.getSystemInfoSync().fontSizeSetting),i=typeof uni<"u"&&typeof uni>"u",s=a||i,c=typeof uni<"u",l=function(){return(typeof uni<"u"||typeof window<"u")&&!s}(),u=function(){return a?wx:c?uni:window}(),d=l&&window&&window.navigator&&window.navigator.userAgent||"",p=/Android/i.test(d),f=/(?:Windows Phone)/.test(d),h=/(?:SymbianOS)/.test(d),m=/iPad/i.test(d)||/iPhone/i.test(d)||/iPod/i.test(d),v=p||f||h||m,g=l&&!v;class _{constructor(){this.global=u,this.isPC=!1,this.isH5=!1,this.isWeChat=!1,this.isApp=!1,this.isUniPlatform=!1,this.isOfficial=!1,this.initEnv()}static getInstance(){return _.instance||(_.instance=new _),_.instance}initEnv(){this.isPC=g,this.isH5=v,this.isWeChat=a,this.isApp=i&&!a,this.isUniPlatform=c}initOfficial(e){this.isOfficial=1400187352===e||1400188366===e}}var y=(e=>(e[e.UNKNOWN=0]="UNKNOWN",e[e.AUDIO=1]="AUDIO",e[e.VIDEO=2]="VIDEO",e))(y||{}),b=(e=>(e.IDLE="idle",e.CALLING="calling",e.CONNECTED="connected",e))(b||{}),O=(e=>(e.CALL="call",e.CUSTOM="custom",e))(O||{}),M=(e=>(e.UNKNOWN="unknown",e.INVITER="inviter",e.INVITEE="invitee",e.CALLEE="callee",e.CALLER="caller",e))(M||{}),k=(e=>(e.CONTAIN="contain",e.COVER="cover",e.FILL="fill",e))(k||{}),C=(e=>(e.RESOLUTION_480P="480p",e.RESOLUTION_720P="720p",e.RESOLUTION_1080P="1080p",e))(C||{});const w={IDLE:"idle",BE_INVITED:"be-invited",DIALING_C2C:"dialing-c2c",DIALING_GROUP:"dialing-group",CALLING_C2C_AUDIO:"calling-c2c-audio",CALLING_C2C_VIDEO:"calling-c2c-video",CALLING_GROUP_AUDIO:"calling-group-audio",CALLING_GROUP_VIDEO:"calling-group-video"},I={CALL_STATUS:"callStatus",CALL_ROLE:"callRole",CALL_MEDIA_TYPE:"callMediaType",LOCAL_USER_INFO:"localUserInfo",REMOTE_USER_INFO_LIST:"remoteUserInfoList",CALLER_USER_INFO:"callerUserInfo",IS_GROUP:"isGroup",CALL_DURATION:"callDuration",CALL_TIPS:"callTips",TOAST_INFO:"toastInfo",IS_MINIMIZED:"isMinimized",LANGUAGE:"language",IS_CLICKABLE:"isClickable",DISPLAY_MODE:"displayMode",VIDEO_RESOLUTION:"videoResolution"},S={PREFIX:"【CallService】",AUDIO:"audio",VIDEO:"video",LOCAL_VIDEO:"localVideo",ERROR:"error",TIMEOUT:"timeout",RAF:"raf",INTERVAL:"interval",DEFAULT:"default",BOOLEAN:"boolean",STRING:"string",NUMBER:"number",OBJECT:"object",ARRAY:"array",FUNCTION:"function",...I};class T{constructor(){this.defaultStore={callStatus:b.IDLE,callRole:M.UNKNOWN,callMediaType:y.UNKNOWN,localUserInfo:{userId:""},remoteUserInfoList:[],callerUserInfo:{userId:""},isGroup:!1,callDuration:"00:00:00",callTips:"",toastInfo:{text:""},isMinimized:!1,language:"zh-cn",isClickable:!1,displayMode:k.COVER,videoResolution:C.RESOLUTION_480P},this.store=Object.assign({},this.defaultStore)}update(e,t){switch(e){default:this.store[e]=t}}getData(e){return e?this.store[e]:this.store}reset(e=[]){0===e.length&&(e=Object.keys(this.store));const t=e.reduce((e,t)=>({...e,[t]:this.defaultStore[t]}),{});this.store={...this.defaultStore,...this.store,...t}}}class E{constructor(){this.timerId=-1,this.storeMap={[O.CALL]:new T},this.task={}}static getInstance(){return E.instance||(E.instance=new E),E.instance}watch(e,t){this.task[e]||(this.task[e]={});const n=this.task[e];Object.keys(t).forEach(r=>{const o=t[r];n[r]||(n[r]=new Map),n[r].set(o,1),this.notify(e,r)})}unwatch(e,t){if(!this.task[e])return;const n=this.task[e];Object.keys(t).forEach(e=>{n[e].delete(t[e])})}update(e,t,n){var r;null==(r=this.storeMap[e])||r.update(t,n),this.notify(e,t)}getData(e,t){var n;return null==(n=this.storeMap[e])?void 0:n.getData(t)}notify(e,t){if(!this.task[e])return;const n=this.task[e];if(n[t]){const r=n[t],o=this.getData(e,t);for(const[e]of r.entries())e.call(this,o)}}reset(e,t=[],n=!1){if(e in this.storeMap){const r=this.storeMap[e];0===t.length&&(t=Object.keys(null==r?void 0:r.store)),r.reset(t),n&&t.forEach(t=>{this.notify(e,t)})}}updateStore(e,t){let n=t||O.CALL;Object.keys(e).forEach(t=>{this.update(n,t,e[t])})}}const j={hangup:"Hang up",reject:"Decline","other side reject call":"other side reject call","reject call":"Reject Call",accept:"Accept",cancel:"Cancel Call","other side line busy":"other side line busy","in busy":"in busy","call timeout":"call timeout","no response from the other side":"no response from the other side","end call":"end call",timeout:"timeout","kick out":"kick out","caller calling message":"Waiting for the callee to accept the invitation...","callee calling video message":"You are invited to a video call...","callee calling audio message":"You are invited to a audio call...","no microphone access":"no microphone access","no camera access":"no camera access",speaker:"speaker","Invited group call":"Invited you to a group call","Those involved":"Those involved in the call are",call:"call","video-call":"video call","audio-call":"audio call",search:"search","search-result":"search result","no-user":"user not found","member-not-added":"member not added","input-phone-userID":"phone number or userID","not-login":"not logged in","login-status-expire":"login status is invalid, please refresh the page and try again","experience-multi-call":"experience multi-person calls, please download the full-featured demo: ","not-support-multi-call":"multi-person call interface is not open",userID:"userID","already-enter":"entered the call",waiting:"Calling...","camera-opened":"Camera on","camera-closed":"Camera off","microphone-opened":"Mic on","microphone-closed":"Mic off",camera:"Camera",microphone:"Microphone","image-resolution":"Resolution","default-image-resolution":"Default","invited-person":"Invite","video-to-audio":"Switch to audio",me:"(me)","start-voice-call":"Audio call from ","start-video-call":"Video call from ","be-rejected":"Call declined, ","be-no-response":"No response, ","be-line-busy":"Line busy, ","be-canceled":"The call is canceled, ","voice-call-end":"Voice call ended","video-call-end":"Video call ended","method-call-failed":"Failed to sync the operation","failed-to-obtain-permission":"Failed to obtain permissions","environment-detection-failed":"Failed to check the environment","call-failed":"call method failed","microphone-unavailable":"No mic found","ban-device":"Device access denied","not-supported-webrtc":"Your current environment does not support WebRTC","is-already-calling":"TUICallKit is already on a call","need-init":"Before initiating a call with TUICallKit, ensure that the TUICallKitServer.init() method has executed successfully. ","can't call yourself":"Can't call yourself","Use-phone-and-computer":"Use your mobile phone and computer to experience video calls","Wechat scan right QR code":"Wechat scan right QR code",try:"try","Scan the QR code above":"Scan the QR code above","Make video calls yourself":"Make video calls yourself","accept-error":"Accept failed","accept-device-error":"Accept failed, unable to auth calling device","call-error":"Start call failed"},D={hangup:"挂断",reject:"拒绝","other side reject call":"对方已拒绝","reject call":"拒绝通话",accept:"接受",cancel:"取消通话","other side line busy":"对方忙线","in busy":"正在忙","call timeout":"呼叫超时","end call":"结束通话",timeout:"超时","kick out":"被踢","caller calling message":"正在等待对方接受邀请…","callee calling video message":"邀请您进行视频通话…","callee calling audio message":"邀请您进行语音通话…","no microphone access":"没有麦克风权限","no camera access":"没有摄像头权限",speaker:"扬声器","Invited group call":"邀请你参加多人通话","Those involved":"参与通话的有:",call:"通话","video-call":"视频通话","audio-call":"音频通话",search:"搜索","search-result":"搜索结果","Wechat scan right QR code":"微信扫右二维码","Use-phone-and-computer":"用手机与电脑互打体验视频通话",try:"试试","Scan the QR code above":"扫描上方二维码","Make video calls yourself":"自己玩转视频通话","no-user":"未搜索到用户","member-not-added":"未添加成员","not-login":"未登录","login-status-expire":"登录状态已失效,请刷新网页重试","experience-multi-call":"体验多人通话请下载全功能demo:","not-support-multi-call":"多人通话接口未开放","input-phone-userID":"请输入手机号/用户ID",userID:"用户ID","already-enter":"已经进入当前通话",waiting:"等待接听...","camera-opened":"摄像头已开","camera-closed":"摄像头已关","microphone-opened":"麦克风已开","microphone-closed":"麦克风已关",camera:"摄像头",microphone:"麦克风","image-resolution":"分辨率","default-image-resolution":"默认分辨率","invited-person":"添加成员","video-to-audio":"切到语音通话",me:"(我)","start-voice-call":"发起的语音通话","start-video-call":"发起的视频通话","be-rejected":"对方已拒绝,","be-no-response":"对方无应答,","be-line-busy":"对方忙线中,","be-canceled":"对方已取消","voice-call-end":"语音通话结束","video-call-end":"视频通话结束","method-call-failed":"同步操作失败","failed-to-obtain-permission":"权限获取失败","environment-detection-failed":"环境检测失败","call-failed":"调用失败","microphone-unavailable":"没有可用的麦克风设备","ban-device":"用户禁止使用设备","not-supported-webrtc":"当前环境不支持 WebRTC","is-already-calling":"TUICallKit 已在通话状态","need-init":"TUICallKit 发起通话前需保证 TUICallKitServer.init() 方法执行成功","can't call yourself":"不能呼叫自己","accept-error":"接通失败","accept-device-error":"接通失败,通话设备获取失败","call-error":"发起通话失败"},L={OTHER_SIDE:"other side",CANCEL:"cancel",OTHER_SIDE_REJECT_CALL:"other side reject call",REJECT_CALL:"reject call",OTHER_SIDE_LINE_BUSY:"other side line busy",IN_BUSY:"in busy",CALL_TIMEOUT:"call timeout",END_CALL:"end call",TIMEOUT:"timeout",KICK_OUT:"kick out",CALLER_CALLING_MSG:"caller calling message",CALLEE_CALLING_VIDEO_MSG:"callee calling video message",CALLEE_CALLING_AUDIO_MSG:"callee calling audio message",NO_MICROPHONE_DEVICE_PERMISSION:"no microphone access",NO_CAMERA_DEVICE_PERMISSION:"no camera access"},A={en:j,"zh-cn":D};function N(e){var t;const n=Z.getData(O.CALL,S.LANGUAGE);for(const o in A)if(o===n){const t=A[o];for(const n in t)if(n===e)return t[n]}const r=null==(t=e.en)?void 0:t.key;return console.error(`${S.PREFIX}translation is not found: ${e}.`),r}function x(){return function(e,t,n){const r=n.value,o=new Set;return n.value=async function(...e){if(o.has(this))console.warn(`${S.PREFIX}previous ${t}() is ongoing, please avoid repeated calls`);else try{o.add(this);const t=await r.apply(this,e);return o.delete(this),t}catch(n){throw o.delete(this),n}},n}}const R=function(e){if(typeof e!==S.OBJECT||null===e)return!1;const t=Object.getPrototypeOf(e);if(null===t)return!0;let n=t;for(;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return t===n};function P(e){const t=Math.floor(e/3600),n=Math.floor(e%3600/60),r=Math.floor(e%60);let o=t>9?""+t:"0"+t;return o+=n>9?":"+n:":0"+n,o+=r>9?":"+r:":0"+r,o}function U(e){const t=e.split(":");return 3600*parseInt(t[0])+60*parseInt(t[1])+parseInt(t[2])}function V(e){return-1!==(null==e?void 0:e.message.indexOf("is ongoing, please avoid repeated calls"))}function B(e){const{message:t}=e;return-1!==t.indexOf("NotAllowedError: Permission denied")}function F(e,t){let n={userId:e,nick:"",avatar:"",isAudioAvailable:!1,isVideoAvailable:!1,isEnter:!1,domId:t||e};return t?n:{...n,isEnter:!1}}const G=function(e){return typeof e===S.FUNCTION};let z=class{static generateTaskID(){return this.currentTaskID++}static run(e=S.TIMEOUT,t,n){n=(S.INTERVAL,{delay:2e3,count:0,backgroundTask:!0,...n}),R(t)&&(n={...n,...t}),G(e)&&(t=e,e=S.TIMEOUT);const r={taskID:this.generateTaskID(),loopCount:0,intervalID:null,timeoutID:null,taskName:e,callback:t,...n};return this.taskMap.set(r.taskID,r),e===S.INTERNAL?this.interval(r):this.timeout(r),r.taskID}static interval(e){const t=()=>{e.callback(),e.loopCount+=1,this.isBreakLoop(e)};return e.intervalID=setInterval(t,e.delay)}static timeout(e){const t=()=>{if(e.callback(),e.loopCount+=1,!this.isBreakLoop(e))return e.timeoutID=setTimeout(t,e.delay)};return e.timeoutID=setTimeout(t,e.delay)}static hasTask(e){return this.taskMap.has(e)}static clearTask(e){if(!this.taskMap.has(e))return!0;const{intervalID:t,timeoutID:n,onVisibilitychange:r}=this.taskMap.get(e);return t&&clearInterval(t),n&&clearTimeout(n),r&&document.removeEventListener("visibilitychange",r),this.taskMap.delete(e),!0}static isBreakLoop(e){return!this.taskMap.has(e.taskID)||0!==e.count&&e.loopCount>=e.count&&(this.clearTask(e.taskID),!0)}};z.taskMap=new Map,z.currentTaskID=1;var H=Object.defineProperty,Y=Object.getOwnPropertyDescriptor,q=(e,t,n,r)=>{for(var o,a=r>1?void 0:r?Y(t,n):t,i=e.length-1;i>=0;i--)(o=e[i])&&(a=(r?o(t,n,a):o(a))||a);return r&&a&&H(t,n,a),a};const W="2.3.2";let K="../static/phone_dialing.mp3",$="../static/phone_ringing.mp3";const J=class{constructor(){this._tim=null,this._TUICore=null,this._timerId=-1,this._callingBell=null,console.log(`${S.PREFIX}version: ${W}`),this._watchTUIStore()}static getInstance(){return J.instance||(J.instance=new J),J.instance}async init(e={}){try{let{sdkAppID:t,tim:n,userID:o,userSig:a,SDKAppID:i}=e;this._TUICore&&(t=this._TUICore.SDKAppID,n=this._TUICore.tim),this._tim=n,console.warn(`${S.PREFIX}init params: ${JSON.stringify(e)}`),this._tuiCallEngine||(this._tuiCallEngine=r["TUICallEngine"].createInstance({tim:n,SDKAppID:t||i})),this._addListenTuiCallEngineEvent(),Z.update(O.CALL,S.LOCAL_USER_INFO,{userId:o}),await this._tuiCallEngine.login({userID:o,userSig:a,assetsPath:""})}catch(t){throw console.error(`${S.PREFIX}init failed, error: ${JSON.stringify(t)}.`),t}}async destroyed(){try{const e=Z.getData(O.CALL,S.CALL_STATUS);if(e!==b.IDLE)throw new Error("please destroyed when status is idle, now status: "+e);this._removeListenTuiCallEngineEvent(),this._tuiCallEngine&&await this._tuiCallEngine.destroyInstance()}catch(e){throw console.error(`${S.PREFIX}destroyed failed, error: ${JSON.stringify(e)}.`),e}}async call(e){try{const{type:t,userID:n}=e;if(Z.getData(O.CALL,S.CALL_STATUS)!==b.IDLE)return;this._updateCallStoreBeforeCall(t,[{userId:n}]),this._executeExternalBeforeCalling();const r=await this._tuiCallEngine.call(e);0===(null==r?void 0:r.code)?(t===y.VIDEO&&await this.openCamera(S.LOCAL_VIDEO),await this._updateCallStoreAfterCall([n])):this._resetCallStore()}catch(t){if(V(t))return;throw this._noDevicePermissionToast(t,y.AUDIO),console.error(`${S.PREFIX}call failed, error: ${JSON.stringify(t)}.`),this._resetCallStore(),t}}async groupCall(e){try{const{userIDList:t,type:n,groupID:r}=e;if(Z.getData(O.CALL,S.CALL_STATUS)!==b.IDLE)return;const o=t.map(e=>({userId:e}));this._updateCallStoreBeforeCall(n,o,r),this._executeExternalBeforeCalling();const a=await this._tuiCallEngine.groupCall(e);0===(null==a?void 0:a.code)?(n===y.VIDEO&&await this.openCamera(S.LOCAL_VIDEO),await this._updateCallStoreAfterCall(t)):this._resetCallStore()}catch(t){if(V(t))return;throw this._noDevicePermissionToast(t,y.AUDIO),console.error(`${S.PREFIX}groupCall failed, error: ${JSON.stringify(t)}.`),this._resetCallStore(),t}}async inviteUser(e){const{userIDList:t=[]}=e;try{if(this._tuiCallEngine&&await this._tuiCallEngine.inviteUser(e)){await this._getRemoteUserProfile(t)}}catch(n){throw console.error(`${S.PREFIX}inviteUser failed, error: ${JSON.stringify(n)}.`),n}}async joinInGroupCall(e){try{await this._tuiCallEngine.joinInGroupCall(e),Z.update(O.CALL,S.CALL_STATUS,b.CONNECTED)}catch(t){throw console.error(`${S.PREFIX}joinInGroupCall failed, error: ${JSON.stringify(t)}.`),t}}setLogLevel(e){var t;null==(t=null==this?void 0:this._tuiCallEngine)||t.setLogLevel(e)}setLanguage(e){Z.update(O.CALL,S.LANGUAGE,e)}async setSelfInfo(e){const{nickName:t,avatar:n}=e;try{await this._tuiCallEngine.setSelfInfo({nickName:t,avatar:n})}catch(r){console.error(`${S.PREFIX}setSelfInfo failed, error: ${JSON.stringify(r)}.`)}}async enableAIVoice(e){try{await this._tuiCallEngine.enableAIVoice(e),console.log(`${S.PREFIX}enableAIVoice: ${e}.`)}catch(t){throw console.error(`${S.PREFIX}enableAIVoice failed, error: ${JSON.stringify(t)}.`),t}}async accept(){try{Z.update(O.CALL,S.CALL_STATUS,b.CONNECTED),await this._tuiCallEngine.accept()&&(Z.getData(O.CALL,S.CALL_MEDIA_TYPE)===y.VIDEO&&await this.openCamera(S.LOCAL_VIDEO),Z.update(O.CALL,S.IS_CLICKABLE,!0),this._setLocalUserInfoAudioVideoAvailable(!0,S.AUDIO),this._startTimer()),await this._tuiCallEngine.setVideoQuality(Z.getData(O.CALL,S.VIDEO_RESOLUTION))}catch(e){if(V(e))return;this._noDevicePermissionToast(e,y.AUDIO),this._resetCallStore()}}async hangup(){try{await this._tuiCallEngine.hangup()}catch{}this._resetCallStore()}async reject(){try{await this._tuiCallEngine.reject()}catch{}this._resetCallStore()}async openCamera(e){try{await this._tuiCallEngine.openCamera(e),this._setLocalUserInfoAudioVideoAvailable(!0,S.VIDEO)}catch(t){this._noDevicePermissionToast(t,y.VIDEO),console.error(`${S.PREFIX}openCamera error: ${JSON.stringify(t)}.`)}}async closeCamera(){try{await this._tuiCallEngine.closeCamera(),this._setLocalUserInfoAudioVideoAvailable(!1,S.VIDEO)}catch(e){console.error(`${S.PREFIX}openCamera error: ${JSON.stringify(e)}.`)}}async openMicrophone(){try{await this._tuiCallEngine.openMicrophone(),this._setLocalUserInfoAudioVideoAvailable(!0,S.AUDIO)}catch(e){console.error(`${S.PREFIX}openMicrophone failed, error: ${JSON.stringify(e)}.`)}}async closeMicrophone(){try{await this._tuiCallEngine.closeMicrophone(),this._setLocalUserInfoAudioVideoAvailable(!1,S.AUDIO)}catch(e){console.error(`${S.PREFIX}closeMicrophone failed, error: ${JSON.stringify(e)}.`)}}async switchCallMediaType(){try{const e=Z.getData(O.CALL,S.CALL_MEDIA_TYPE);if(e===y.AUDIO)return void console.warn(`${S.PREFIX}switchCallMediaType failed, ${e} not support.`);await this._tuiCallEngine.switchCallMediaType(y.AUDIO),Z.update(O.CALL,S.CALL_MEDIA_TYPE,y.AUDIO)}catch(e){console.error(`${S.PREFIX}switchCallMediaType failed, error: ${JSON.stringify(e)}.`)}}getTim(){return this._tim?this._tim:this._tuiCallEngine?this._tuiCallEngine.tim:(console.warn(S.PREFIX+"getTim warning: _tuiCallEngine Instance is not available."),null)}_addListenTuiCallEngineEvent(){this._tuiCallEngine?(this._tuiCallEngine.on(r["TUICallEvent"].ERROR,this._handleError,this),this._tuiCallEngine.on(r["TUICallEvent"].INVITED,this._handleNewInvitationReceived,this),this._tuiCallEngine.on(r["TUICallEvent"].USER_ACCEPT,this._handleUserAccept,this),this._tuiCallEngine.on(r["TUICallEvent"].USER_ENTER,this._handleUserEnter,this),this._tuiCallEngine.on(r["TUICallEvent"].USER_LEAVE,this._handleUserLeave,this),this._tuiCallEngine.on(r["TUICallEvent"].REJECT,this._handleInviteeReject,this),this._tuiCallEngine.on(r["TUICallEvent"].NO_RESP,this._handleNoResponse,this),this._tuiCallEngine.on(r["TUICallEvent"].LINE_BUSY,this._handleLineBusy,this),this._tuiCallEngine.on(r["TUICallEvent"].CALLING_CANCEL,this._handleCallingCancel,this),this._tuiCallEngine.on(r["TUICallEvent"].CALL_END,this._handleCallingEnd,this),this._tuiCallEngine.on(r["TUICallEvent"].SDK_READY,this._handleSDKReady,this),this._tuiCallEngine.on(r["TUICallEvent"].KICKED_OUT,this._handleKickedOut,this),this._tuiCallEngine.on(r["TUICallEvent"].CALL_TYPE_CHANGED,this._handleCallTypeChange,this),this._tuiCallEngine.on(r["TUICallEvent"].USER_VIDEO_AVAILABLE,this._handleUserVideoAvailable,this),this._tuiCallEngine.on(r["TUICallEvent"].USER_AUDIO_AVAILABLE,this._handleUserAudioAvailable,this),this._tuiCallEngine.on(r["TUICallEvent"].MESSAGE_SENT_BY_ME,this._messageSentByMe,this),this._tuiCallEngine.on(r["TUICallEvent"].USER_VOICE_VOLUME,this._handleUserVoiceVolume,this)):console.warn(S.PREFIX+"add engine event listener failed, engine is empty.")}_removeListenTuiCallEngineEvent(){this._tuiCallEngine.off(r["TUICallEvent"].ERROR,this._handleError),this._tuiCallEngine.off(r["TUICallEvent"].INVITED,this._handleNewInvitationReceived),this._tuiCallEngine.off(r["TUICallEvent"].USER_ACCEPT,this._handleUserAccept),this._tuiCallEngine.off(r["TUICallEvent"].USER_ENTER,this._handleUserEnter),this._tuiCallEngine.off(r["TUICallEvent"].USER_LEAVE,this._handleUserLeave),this._tuiCallEngine.off(r["TUICallEvent"].REJECT,this._handleInviteeReject),this._tuiCallEngine.off(r["TUICallEvent"].NO_RESP,this._handleNoResponse),this._tuiCallEngine.off(r["TUICallEvent"].LINE_BUSY,this._handleLineBusy),this._tuiCallEngine.off(r["TUICallEvent"].CALLING_CANCEL,this._handleCallingCancel),this._tuiCallEngine.off(r["TUICallEvent"].CALL_END,this._handleCallingEnd),this._tuiCallEngine.off(r["TUICallEvent"].SDK_READY,this._handleSDKReady),this._tuiCallEngine.off(r["TUICallEvent"].KICKED_OUT,this._handleKickedOut),this._tuiCallEngine.off(r["TUICallEvent"].CALL_TYPE_CHANGED,this._handleCallTypeChange),this._tuiCallEngine.on(r["TUICallEvent"].USER_VIDEO_AVAILABLE,this._handleUserVideoAvailable),this._tuiCallEngine.on(r["TUICallEvent"].USER_AUDIO_AVAILABLE,this._handleUserAudioAvailable),this._tuiCallEngine.off(r["TUICallEvent"].MESSAGE_SENT_BY_ME,this._messageSentByMe),this._tuiCallEngine.on(r["TUICallEvent"].USER_VOICE_VOLUME,this._handleUserVoiceVolume)}_handleError(e){console.error(`${S.PREFIX}_handleError, error: ${JSON.stringify(e)}.`)}async _handleNewInvitationReceived(e){console.warn(`${S.PREFIX}onCallReceived event data: ${JSON.stringify(e)}.`);const{sponsor:t="",isFromGroup:n,callMediaType:r,inviteData:o={},userIDList:a=[]}=e||e.data||{},i=Z.getData(O.CALL,S.LOCAL_USER_INFO),s=[t,...a.filter(e=>e!==i.userId)],c=r||o.callType,l=c===y.AUDIO?L.CALLEE_CALLING_AUDIO_MSG:L.CALLEE_CALLING_VIDEO_MSG,u={[S.IS_GROUP]:n,[S.CALL_STATUS]:b.CALLING,[S.CALL_ROLE]:M.CALLEE,[S.CALL_MEDIA_TYPE]:c,[S.CALL_TIPS]:N(l),[S.CALLER_USER_INFO]:{userId:t}};Z.updateStore(u,O.CALL),this._executeExternalBeforeCalling(),this.statusChanged&&this.statusChanged({oldStatus:w.IDLE,newStatus:w.BE_INVITED});const d=await this._getRemoteUserProfile(s),[p]=d.filter(e=>e.userId===t);d.length>0&&Z.updateStore({[S.REMOTE_USER_INFO_LIST]:d,[S.CALLER_USER_INFO]:{userId:t,nick:(null==p?void 0:p.nick)||"",avatar:(null==p?void 0:p.avatar)||""}},O.CALL)}_handleUserAccept(e){this._callerChangeToConnected(),console.warn(`${S.PREFIX}accept event data: ${JSON.stringify(e)}.`)}_handleUserEnter(e){this._callerChangeToConnected();const{userID:t}=e;let n=Z.getData(O.CALL,S.REMOTE_USER_INFO_LIST);n=n.map(e=>(e.userId===t&&(e.isEnter=!0),e)),n.length>0&&Z.update(O.CALL,S.REMOTE_USER_INFO_LIST,n),console.warn(`${S.PREFIX}userEnter event data: ${JSON.stringify(e)}.`)}_callerChangeToConnected(){const e=Z.getData(O.CALL,S.CALL_ROLE);Z.getData(O.CALL,S.CALL_STATUS)===b.CALLING&&e===M.CALLER&&(Z.update(O.CALL,S.CALL_STATUS,b.CONNECTED),this._startTimer())}_handleUserLeave(e){if(console.warn(`${S.PREFIX}userLeave event data: ${JSON.stringify(e)}.`),Z.getData(O.CALL,S.IS_GROUP)){const t=this._generateText(L.END_CALL,e.userID);Z.update(O.CALL,S.TOAST_INFO,{text:t})}e.userID&&this._deleteRemoteUser([e.userID])}_unNormalEventsManager(e,t){console.warn(`${S.PREFIX}${t} event data: ${JSON.stringify(e)}.`);const n=Z.getData(O.CALL,S.IS_GROUP);switch(t){case r["TUICallEvent"].REJECT:case r["TUICallEvent"].LINE_BUSY:{const{userID:o}=e;let a=t===r["TUICallEvent"].REJECT?L.OTHER_SIDE_REJECT_CALL:L.OTHER_SIDE_LINE_BUSY,i=this._generateText(a);n&&(a=t===r["TUICallEvent"].REJECT?L.REJECT_CALL:L.IN_BUSY,i=this._generateText(a,o)),Z.update(O.CALL,S.TOAST_INFO,{text:i}),o&&this._deleteRemoteUser([o]);break}case r["TUICallEvent"].NO_RESP:{const{userIDList:t=[]}=e,r=n?L.TIMEOUT:L.CALL_TIMEOUT,o=n?this._generateText(r,t.join()):this._generateText(r);Z.update(O.CALL,S.TOAST_INFO,{text:o}),t.length>0&&this._deleteRemoteUser(t);break}case r["TUICallEvent"].CALLING_CANCEL:this._resetCallStore();break}}_handleInviteeReject(e){this._unNormalEventsManager(e,r["TUICallEvent"].REJECT)}_handleNoResponse(e){this._unNormalEventsManager(e,r["TUICallEvent"].NO_RESP)}_handleLineBusy(e){this._unNormalEventsManager(e,r["TUICallEvent"].LINE_BUSY)}_handleCallingCancel(e){this._executeExternalAfterCalling(),this._unNormalEventsManager(e,r["TUICallEvent"].CALLING_CANCEL)}_handleCallingEnd(e){console.warn(`${S.PREFIX}callEnd event data: ${JSON.stringify(e)}.`),this._executeExternalAfterCalling(),this._resetCallStore()}async _handleSDKReady(e){let t=Z.getData(O.CALL,S.LOCAL_USER_INFO);t=await this._getMyProfile(t.userId),Z.update(O.CALL,S.LOCAL_USER_INFO,t)}_handleKickedOut(e){console.warn(`${S.PREFIX}kickOut event data: ${JSON.stringify(e)}.`),this.kickedOut&&this.kickedOut(e),Z.update(O.CALL,S.CALL_TIPS,this._generateText(L.KICK_OUT)),this._resetCallStore()}_handleCallTypeChange(e){const{newCallType:t}=e;Z.update(O.CALL,S.CALL_MEDIA_TYPE,t)}async _handleUserVideoAvailable(e){const{userID:t,isVideoAvailable:n}=e;console.log(`${S.PREFIX}_handleUserVideoAvailable event data: ${JSON.stringify(e)}.`),n&&await this._startRemoteView(t),this._setRemoteUserInfoAudioVideoAvailable(n,S.VIDEO,t)}_handleUserAudioAvailable(e){const{userID:t,isAudioAvailable:n}=e;console.log(`${S.PREFIX}_handleUserAudioAvailable event data: ${JSON.stringify(e)}.`),this._setRemoteUserInfoAudioVideoAvailable(n,S.AUDIO,t)}_messageSentByMe(e){const t=null==e?void 0:e.data;this.onMessageSentByMe&&this.onMessageSentByMe(t)}_handleUserVoiceVolume(e){try{const{volumeMap:t}=e;if(0===(t||[]).length)return;let n=Z.getData(O.CALL,S.LOCAL_USER_INFO),r=Z.getData(O.CALL,S.REMOTE_USER_INFO_LIST);const[o]=t.filter(e=>e.userId===n.userId),a=t.reduce((e,t)=>t.userId!==n.userId?{...e,[t.userId]:t.audioVolume}:e,{});n.volume=o.audioVolume,r=r.map(e=>({...e,volume:a[e.userId]}));const i={[S.LOCAL_USER_INFO]:n,[S.REMOTE_USER_INFO_LIST]:r};Z.updateStore(i,O.CALL)}catch{}}setCallback(e){const{beforeCalling:t,afterCalling:n,onMinimized:r,onMessageSentByMe:o,kickedOut:a,statusChanged:i}=e;t&&(this.beforeCalling=t),n&&(this.afterCalling=n),r&&(this.onMinimized=r),o&&(this.onMessageSentByMe=o),a&&(this.kickedOut=a),i&&(this.statusChanged=i)}toggleMinimize(){const e=Z.getData(O.CALL,S.IS_MINIMIZED);Z.update(O.CALL,S.IS_MINIMIZED,!e),console.log(`${S.PREFIX}toggleMinimize: ${e} -> ${!e}.`),this.onMinimized&&this.onMinimized(e,!e)}_executeExternalBeforeCalling(){this.beforeCalling&&this.beforeCalling()}_executeExternalAfterCalling(){this.afterCalling&&this.afterCalling()}setVideoDisplayMode(e){Z.update(O.CALL,S.DISPLAY_MODE,e)}async setVideoResolution(e){try{if(!e)return;Z.update(O.CALL,S.VIDEO_RESOLUTION,e),await this._tuiCallEngine.setVideoQuality(e)}catch(t){console.warn(`${S.PREFIX}setVideoResolution failed, error: ${JSON.stringify(t)}.`)}}async _startRemoteView(e){if(e)if(document.getElementById(e))try{const t=Z.getData(O.CALL,S.DISPLAY_MODE);await this._tuiCallEngine.startRemoteView({userID:e,videoViewDomID:e,options:{objectFit:t}})}catch(t){console.error(`${S.PREFIX}_startRemoteView error: ${JSON.stringify(t)}.`)}else console.warn(`${S.PREFIX}_startRemoteView can't find HTMLElement id: ${e}`);else console.log(S.PREFIX+"_startRemoteView userID is empty")}async _getMyProfile(e){var t,n,r;const o=F(e,S.LOCAL_VIDEO);try{const e=this._tuiCallEngine.tim;if(!e)return o;const a=await e.getMyProfile();return 0===(null==a?void 0:a.code)?{...o,userId:null==(t=null==a?void 0:a.data)?void 0:t.userID,nick:null==(n=null==a?void 0:a.data)?void 0:n.nick,avatar:null==(r=null==a?void 0:a.data)?void 0:r.avatar}:o}catch(a){return console.error(`${S.PREFIX}_getMyProfile failed, error: ${JSON.stringify(a)}.`),o}}async _getRemoteUserProfile(e){const t=e.map(e=>F(e));try{const n=this._tuiCallEngine.tim;if(!n)return t;const r=await n.getUserProfile({userIDList:e});return 0===(null==r?void 0:r.code)?((null==r?void 0:r.data)||[]).map(e=>({...F(e.userID),nick:e.nick,avatar:e.avatar})):t}catch(n){return console.error(`${S.PREFIX}_getRemoteUserProfile failed, error: ${JSON.stringify(n)}.`),t}}_setLocalUserInfoAudioVideoAvailable(e,t){let n=Z.getData(O.CALL,S.LOCAL_USER_INFO);t===S.AUDIO&&(n={...n,isAudioAvailable:e}),t===S.VIDEO&&(n={...n,isVideoAvailable:e}),Z.update(O.CALL,S.LOCAL_USER_INFO,n)}_setRemoteUserInfoAudioVideoAvailable(e,t,n){let r=Z.getData(O.CALL,S.REMOTE_USER_INFO_LIST);r=r.map(r=>{if(r.userId===n){if(t===S.AUDIO)return{...r,isAudioAvailable:e};if(t===S.VIDEO)return{...r,isVideoAvailable:e}}return r}),r.length>0&&Z.update(O.CALL,S.REMOTE_USER_INFO_LIST,r)}_updateCallStoreBeforeCall(e,t,n){const r={[S.CALL_MEDIA_TYPE]:e,[S.CALL_ROLE]:M.CALLER,[S.REMOTE_USER_INFO_LIST]:t,[S.IS_GROUP]:!!n,[S.CALL_TIPS]:N(L.CALLER_CALLING_MSG)};Z.updateStore({...r,[S.CALL_STATUS]:b.CALLING},O.CALL),this.statusChanged&&this.statusChanged({oldStatus:w.IDLE,newStatus:n?w.DIALING_GROUP:w.DIALING_C2C})}async _updateCallStoreAfterCall(e){Z.update(O.CALL,S.IS_CLICKABLE,!0),this._setLocalUserInfoAudioVideoAvailable(!0,S.AUDIO);const t=await this._getRemoteUserProfile(e);t.length>0&&Z.update(O.CALL,S.REMOTE_USER_INFO_LIST,t);try{await this._tuiCallEngine.setVideoQuality(Z.getData(O.CALL,S.VIDEO_RESOLUTION))}catch(n){console.warn(`${S.PREFIX}setVideoQuality failed, error: ${JSON.stringify(n)}.`)}}_generateText(e,t,n){let r=""+N(e);return Z.getData(O.CALL,S.IS_GROUP)&&(r=t?`${t} ${r}`:r,r=n?`${r} ${n}`:r),r}_generateStatusChangeText(){const e=Z.getData(O.CALL,S.CALL_STATUS);if(e===b.IDLE)return w.IDLE;const t=Z.getData(O.CALL,S.IS_GROUP);if(e===b.CALLING)return t?w.DIALING_GROUP:w.DIALING_C2C;const n=Z.getData(O.CALL,S.CALL_MEDIA_TYPE);return t?n===y.AUDIO?w.CALLING_GROUP_AUDIO:w.CALLING_GROUP_VIDEO:n===y.AUDIO?w.CALLING_C2C_AUDIO:w.CALLING_C2C_VIDEO}_resetCallStore(){const e=this._generateStatusChangeText();this._stopTimer();let t=Object.keys(I).filter(e=>{switch(I[e]){case S.CALL_STATUS:case S.LANGUAGE:case S.IS_GROUP:case S.LOCAL_USER_INFO:return!1;default:return!0}});t=t.map(e=>I[e]),Z.reset(O.CALL,t),Z.reset(O.CALL,[S.CALL_STATUS],!0);const n=this._generateStatusChangeText();e!==n&&this.statusChanged&&this.statusChanged({oldStatus:e,newStatus:n})}_noDevicePermissionToast(e,t){if(B(e)){let n="";t===y.AUDIO&&(n=this._generateText(L.NO_MICROPHONE_DEVICE_PERMISSION)),t===y.VIDEO&&(n=this._generateText(L.NO_CAMERA_DEVICE_PERMISSION)),n&&Z.update(O.CALL,S.TOAST_INFO,{text:n,type:S.ERROR}),console.error(`${S.PREFIX}call failed, error: ${e.message}.`)}}_startTimer(){-1===this._timerId&&(this._timerId=z.run(S.TIMEOUT,this._updateCallDuration.bind(this),{delay:1e3}))}_updateCallDuration(){let e=Z.getData(O.CALL,S.CALL_DURATION);const t=U(e);e=P(t+1),Z.update(O.CALL,S.CALL_DURATION,e)}_stopTimer(){-1!==this._timerId&&(z.clearTask(this._timerId),this._timerId=-1)}_deleteRemoteUser(e){if(0===e.length)return;let t=Z.getData(O.CALL,S.REMOTE_USER_INFO_LIST);e.forEach(e=>{t=t.filter(t=>t.userId!==e)}),Z.update(O.CALL,S.REMOTE_USER_INFO_LIST,t)}_watchTUIStore(){Z.watch(O.CALL,{[S.CALL_STATUS]:e=>{var t,n,r;if(e===b.CALLING){const e=Z.getData(O.CALL,S.CALL_ROLE)===M.CALLER?K:$;null==(t=null==this?void 0:this._callingBell)||t.setBellSrc(e),null==(n=null==this?void 0:this._callingBell)||n.play()}else null==(r=null==this?void 0:this._callingBell)||r.stop()}})}bindTUICore(e){this._TUICore=e}};let Q=J;q([x()],Q.prototype,"call",1),q([x()],Q.prototype,"groupCall",1),q([x()],Q.prototype,"inviteUser",1),q([x()],Q.prototype,"joinInGroupCall",1),q([x()],Q.prototype,"accept",1),q([x()],Q.prototype,"hangup",1),q([x()],Q.prototype,"reject",1),q([x()],Q.prototype,"openCamera",1),q([x()],Q.prototype,"closeCamera",1),q([x()],Q.prototype,"openMicrophone",1),q([x()],Q.prototype,"closeMicrophone",1),q([x()],Q.prototype,"switchCallMediaType",1);const X=_.getInstance(),Z=E.getInstance(),ee=Q.getInstance();window.$TUIStore=Z,window.$TUIGlobal=X;const te="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMAAAADACAMAAABlApw1AAAAnFBMVEUAbv////+82P8Icv/8/f/1+f+Huv8dfv9Glv8TeP8Mdf/w9v9Snf/s9P/S5f/5/P/j7/+gyf99tf8igf+rz//n8f/Y6P/G3//B2/+Ww/91sP83jf/y+P+01P9bof89kf8phf8YfP/e7P+Qv/9Mmf8th//M4v9yrv+31v+v0f+jyv9nqP9ipf+Lvf9sq/+Bt/95s/+Zxf+mzP+cx/8TBOLUAAAF3klEQVR42uza2W7qMBQF0L0bEwghaZinAkWFIiiFiv7/v13pKk6COmCnDz5IXs882Ar2mQzP8zzP8zzP8zzP8zzP8zzP8+QI5sdwelksLtPwOA9wZ1Zhqlih0nCFu9EME34jCZu4B9uB4g/UYAvpoqniL9Q0gmjLmDfES8jV7tJAtw2h+iMaGfUh0nZIQ0ORZ3kV84ssHY/TjF/EAoPCNuYVNdnN2/nRmO8mildicd+gmbFq2ItwJeoNWZUJC2pByop4FuCLYBazIpWVHr2wYr/Gt9Z7VrxAkBZLaocf7RRLLYjRHrKglvjFUrEwlBPQQpaO+NWRpRBCNBssnHDDiYWGlJvowMIZN51ZOECEpqKWwkBKTcn4BCELcxiYCzsFQULtE0Y+qSUSolmnXE4EI1G55Q7cG1CbwdCM2gDOBU/MNSIYihrMPbn/D22odWGsS20D18I6a9kIuocmzDUCGAsazE3gWrGUBSwsim3DsWdqPVjoUXuGW6166X1LTFXwRm0NC01qb3ArZE7BipJyDXWZy2AlK6OHWxfmXmHllbkL3BowN4aVsZRsaP/XDezh1uKvG1jArQNzI1gZSamLX5hLYCWR0qDr/TUO9ODWiVofFvrUTnCrVa802YjJhZrXFbF9Vey8NdSolRN0xdQDeK0VCMZlBuJYGQhiWIilhAHgo05BsKb2Adc6de6TlqDWXKUovseSGECdDslEziUEPDD3GMBQ8MjcA9zrUVvB0IpSMqHr1Zxh6ExNwpuJGm3C8gi4b05fH4J7PALAh21CuhEUxq6HdgfbsewcEpQzmjgw+n0saD7zX9cuMehQSldOa9GqR7IQU40VsnL0bjPYzyDFe723Eu+QYkstaeOGdkJN0MO/lNoON+yopZDjX/t2tpw4DEQBtC/edxMDwRA2kwAZlgmT//+3SWViBEYyNjFBNaXzxOstI9nqbg2QizUqpcXIDUgejoHcQ9VvV0OqOfYUuacZlZg9IZeSTBIduU61yRBdsgnwP6jyOvalGzc7SCLkAosErAC5SLIHcDK7u9CIS1tIOrdbHMNC59ICQCDVFvTPGMwrvx/ISHmRZgVm5FKBOwKzIhlZHphwSiemIRjv7k0BPh9HItOhA8eMAEhUEBUwccxIbY0+aHZqADIOfZ8LcSrKHh+zCJ+k/AotciJcFEm4gzJj8Mm+gzJt8ElXiRBxPJTypP4DsTO70G+SXQIeefral3VRokvy6+GLDpz97JH0WKk3nQy27dGovR1MUtnKuSV8XtlkIP9nUM7NkPN5qTJ5ru9xzVbIGe5RLAO5lcQJkvVKF5zKXsGC7WVoTZ5JNr9inLCLLQTG62xmJJGXXaeLohX3vMkszIkMO5I2HIw8cOjFI6WOM0+va4vuSJs8tAwIrInsGF9im2gNrt7W1ugerPXIgNiciGIcxKzyxXsQP74ihmYIETZTjyMXjgr64+7nMkzNDOWelsQLQBsDYvpq7NLtaesQF3TNGfEDkJUapcHTF7qtZBugXJbalPOAs4lGd92KUKLv0+3MUh1lsvYm4bfzsCTG9d9jiPXGdBuuaUCstx9bVGSZ+GRaVPDy1o9+OIIdQ0BfzH2H+HriQ4zr72MI9KfUtLlo+zNtl8QyfMhIZLoUrIjI1KhJTp+/YJ/dSh38FxJzn/ddcIQJNccJceZxMK080PhA5YZzTgbPp6a4IQrCt4SqWFSeULffDRQNGr3rxkTtIVVj1SkGubseCt6oEWsc8x4cqmpX856M3b9FAicAY2wdqq5Ve7pyUohgNzJZzCymNZsF9VsCfoYjgUXfluFgrlEd46t6AtocR/oNDoXCvH7xd6gGu9tkP3CJ3OrKGmP9imKSAY0VU/dX37V4xpFnqmPWw8GmqZdAfEV0Zk+1JEH5g7/VVijuE3SvfnytewUY4sSQ6lncPYCJb3XnW40HCFr1GDhhtOoJmgtwJyqACqACqAAqgBQBtq07k+eeiqIoiqIoiqIoiqIoiqIoiqL8N/4CmBFTXwX+GcMAAAAASUVORK5CYII=",ne={class:"singleInvite-message"},re=["src"],oe={class:"singleInvite-nick"},ae={key:0,class:"singleInvite-tips"},ie=Object(o["defineComponent"])({__name:"SingleAudio",props:{isSponsor:{type:Boolean,required:!0},remoteUsersList:{type:Object,required:!0},callAlertMessage:{type:String,required:!0},callStatus:{type:String,required:!0}},setup(e){function t(e){e.target.src=te}return(n,r)=>(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",ne,[Object(o["createElementVNode"])("img",{class:"singleInvite-avatar",src:e.remoteUsersList[0].avatar||Object(o["unref"])(te),onerror:t},null,8,re),Object(o["createElementVNode"])("label",oe,Object(o["toDisplayString"])(e.remoteUsersList[0].nick||e.remoteUsersList[0].userId),1),e.callStatus===Object(o["unref"])(b).CALLING?(Object(o["openBlock"])(),Object(o["createElementBlock"])("span",ae,Object(o["toDisplayString"])(e.callAlertMessage),1)):Object(o["createCommentVNode"])("",!0)]))}}),se=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},ce=se(ie,[["__scopeId","data-v-763f93b1"]]),le={class:"singleInvite-message"},ue={class:"singleInvite-nick"},de={class:"singleInvite-tips"},pe=["src"],fe=Object(o["defineComponent"])({__name:"SingleVideo",props:{isSponsor:{type:Boolean,required:!0},remoteUsersList:{type:Object,required:!0},callAlertMessage:{type:String,required:!0}},setup(e){function t(e){e.target.src=te}return(n,r)=>(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",null,[Object(o["createElementVNode"])("div",le,[Object(o["createElementVNode"])("label",ue,Object(o["toDisplayString"])(e.remoteUsersList[0].nick||e.remoteUsersList[0].userId),1),Object(o["createElementVNode"])("span",de,Object(o["toDisplayString"])(e.callAlertMessage),1)]),Object(o["createElementVNode"])("img",{class:"singleInvite-avatar",src:e.remoteUsersList[0].avatar||Object(o["unref"])(te),onerror:t},null,8,pe)]))}}),he=se(fe,[["__scopeId","data-v-31053437"]]),me={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",class:"design-iconfont"},ve={key:0},ge=Object(o["createElementVNode"])("path",{d:"M8.62462 7.17395C8.90076 7.17395 9.12462 7.38807 9.12462 7.65221C9.12462 7.89434 8.93651 8.09444 8.69246 8.12611L8.62462 8.13047H7.3335C7.05735 8.13047 6.8335 7.91635 6.8335 7.65221C6.8335 7.41009 7.0216 7.20998 7.26565 7.17832L7.3335 7.17395H8.62462Z",fill:"#43D92B"},null,-1),_e=[ge],ye={key:1},be=Object(o["createElementVNode"])("path",{d:"M8.62462 5.57971C8.90076 5.57971 9.12462 5.79384 9.12462 6.05797C9.12462 6.3001 8.93651 6.5002 8.69246 6.53187L8.62462 6.53623H7.3335C7.05735 6.53623 6.8335 6.32211 6.8335 6.05797C6.8335 5.81585 7.0216 5.61575 7.26565 5.58408L7.3335 5.57971H8.62462Z",fill:"#43D92B"},null,-1),Oe=[be],Me={key:2},ke=Object(o["createElementVNode"])("path",{d:"M8.62462 3.98547C8.90076 3.98547 9.12462 4.1996 9.12462 4.46373C9.12462 4.70586 8.93651 4.90596 8.69246 4.93763L8.62462 4.942H7.3335C7.05735 4.942 6.8335 4.72787 6.8335 4.46373C6.8335 4.22161 7.0216 4.02151 7.26565 3.98984L7.3335 3.98547H8.62462Z",fill:"#43D92B"},null,-1),Ce=[ke],we=Object(o["createElementVNode"])("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.3301 3.45938C11.2517 1.89175 9.77808 0.658081 8 0.658081C6.17253 0.658081 4.66667 1.96123 4.66667 3.59077V7.72539L4.66994 7.85678C4.7483 9.42442 6.22192 10.6581 8 10.6581C9.82747 10.6581 11.3333 9.35493 11.3333 7.72539V3.59077L11.3301 3.45938ZM6.0035 3.54179C6.06337 2.69234 6.92083 1.99146 8.00016 1.99146C9.11947 1.99146 10.0002 2.74521 10.0002 3.63675V7.67949L9.99682 7.77446C9.93695 8.62391 9.07949 9.32479 8.00016 9.32479C6.88086 9.32479 6.00016 8.57103 6.00016 7.67949V3.63675L6.0035 3.54179ZM8.33333 15.3333C8.51743 15.3333 8.66667 15.1841 8.66667 15V13.2964C11.5402 12.9793 14 10.6655 14 8.27322V7.68092C14 7.49682 13.8508 7.34758 13.6667 7.34758H13C12.8159 7.34758 12.6667 7.49682 12.6667 7.68092V8.27322L12.6634 8.39309C12.5681 10.1524 10.3982 11.9979 8.00396 12C8.00264 12 8.00132 12 8 12C7.99868 12 7.99736 12 7.99604 12C5.54737 11.9979 3.33333 10.0675 3.33333 8.27322L3.33043 7.65652C3.32956 7.47164 3.17839 7.32278 2.99352 7.32477L2.32975 7.33191C2.14706 7.33387 2 7.48252 2 7.66522V8.27322L2.00292 8.4162C2.09825 10.757 4.51708 12.9856 7.33333 13.2964V15C7.33333 15.1841 7.48257 15.3333 7.66667 15.3333H8.33333Z",fill:"#fff"},null,-1),Ie=Object(o["defineComponent"])({__name:"MicVolume",props:{volume:{}},setup(e){const t=e,{volume:n}=Object(o["toRefs"])(t);return(e,t)=>(Object(o["openBlock"])(),Object(o["createElementBlock"])("svg",me,[Object(o["unref"])(n)&&Object(o["unref"])(n)>0?(Object(o["openBlock"])(),Object(o["createElementBlock"])("g",ve,_e)):Object(o["createCommentVNode"])("",!0),Object(o["unref"])(n)&&Object(o["unref"])(n)>5?(Object(o["openBlock"])(),Object(o["createElementBlock"])("g",ye,Oe)):Object(o["createCommentVNode"])("",!0),Object(o["unref"])(n)&&Object(o["unref"])(n)>10?(Object(o["openBlock"])(),Object(o["createElementBlock"])("g",Me,Ce)):Object(o["createCommentVNode"])("",!0),we]))}}),Se={},Te={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",class:"design-iconfont"},Ee=Object(o["createElementVNode"])("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.82825 12.4759C5.58172 12.9048 6.43742 13.1978 7.33333 13.2967V15.0002C7.33333 15.1843 7.48257 15.3335 7.66667 15.3335H8.33333C8.51743 15.3335 8.66667 15.1843 8.66667 15.0002V13.2967C11.5402 12.9796 14 10.6658 14 8.27347V7.68116C14 7.49707 13.8508 7.34783 13.6667 7.34783H13C12.8159 7.34783 12.6667 7.49707 12.6667 7.68116V8.27347L12.6634 8.39333C12.5681 10.1526 10.3982 11.9982 8.00396 12.0002L8 12.0002L7.99604 12.0002C7.22514 11.9996 6.47749 11.8078 5.81487 11.4893L4.82825 12.4759ZM6.83168 10.4725C7.196 10.5927 7.5899 10.6583 8 10.6583C9.82747 10.6583 11.3333 9.35517 11.3333 7.72563V5.97083L6.83168 10.4725ZM10.9068 2.1547L4.73629 8.32524C4.70043 8.17327 4.67793 8.01689 4.66994 7.85702L4.66667 7.72563V3.59102C4.66667 1.96148 6.17253 0.658325 8 0.658325C9.24072 0.658325 10.3332 1.25901 10.9068 2.1547ZM3.62455 9.43698L2.64622 10.4153C2.26208 9.78985 2.03108 9.10804 2.00292 8.41644L2 8.27347V7.66546C2 7.48277 2.14706 7.33411 2.32975 7.33215L2.99352 7.32502C3.17839 7.32303 3.32956 7.47188 3.33043 7.65676L3.33333 8.27347C3.33333 8.66191 3.4371 9.05672 3.62455 9.43698Z",fill:"#fff"},null,-1),je=Object(o["createElementVNode"])("rect",{x:".609863",y:"13.4514",width:"19.0127",height:"1.5",rx:".75",transform:"rotate(-45 .609863 13.4514)",fill:"#FE3C44"},null,-1),De=[Ee,je];function Le(e,t){return Object(o["openBlock"])(),Object(o["createElementBlock"])("svg",Te,De)}const Ae=se(Se,[["render",Le]]),Ne={key:0,class:"singleInvite-header-mobile"},xe={key:1,class:"singleInvite-header-desktop"},Re={class:"singleInvite-message"},Pe={class:"singleInvite-nick"},Ue={key:0,class:"microphone-icon-container"},Ve={class:"singleInvite-tips"},Be=Object(o["defineComponent"])({__name:"InviteInfo",setup(e){const{CALL_ROLE:t,CALL_MEDIA_TYPE:n,IS_GROUP:r,REMOTE_USER_INFO_LIST:a,CALL_STATUS:i,CALL_DURATION:s,CALL_TIPS:c}=S,l=Object(o["ref"])(Z.getData(O.CALL,t)),u=Object(o["ref"])(Z.getData(O.CALL,n)),d=Object(o["ref"])(Z.getData(O.CALL,r)),p=Object(o["ref"])(Z.getData(O.CALL,a)),f=Object(o["ref"])(Z.getData(O.CALL,i)),h=Object(o["ref"])(Z.getData(O.CALL,s)),m=Object(o["ref"])(Z.getData(O.CALL,c)),v=!X.isPC,g=l.value===M.CALLER;return Object(o["onMounted"])(()=>{}),Z.watch(O.CALL,{[t]:e=>{l.value=e},[r]:e=>{d.value=e},[n]:e=>{u.value=e},[a]:e=>{p.value=e},[i]:e=>{f.value=e},[s]:e=>{h.value=e},[c]:e=>{m.value=e}}),Object(o["onUnmounted"])(()=>{Z.unwatch(O.CALL,{[i]:()=>{},[n]:()=>{},[t]:()=>{},[r]:()=>{},[s]:()=>{},[a]:()=>{},[c]:()=>{}})}),(e,t)=>{var n,r;return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",null,[!d.value&&v?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",Ne,[u.value===Object(o["unref"])(y).AUDIO&&0!==p.value.length?(Object(o["openBlock"])(),Object(o["createBlock"])(ce,{key:0,class:"singleAudio","remote-users-list":p.value,"is-sponsor":g,"call-alert-message":m.value,"call-status":f.value},null,8,["remote-users-list","call-alert-message","call-status"])):Object(o["createCommentVNode"])("",!0),u.value===Object(o["unref"])(y).VIDEO&&0!==p.value.length?(Object(o["openBlock"])(),Object(o["createBlock"])(he,{key:1,class:"singleVideo","remote-users-list":p.value,"is-sponsor":g,"call-alert-message":m.value},null,8,["remote-users-list","call-alert-message"])):Object(o["createCommentVNode"])("",!0)])):Object(o["createCommentVNode"])("",!0),d.value||v||0===p.value.length?Object(o["createCommentVNode"])("",!0):(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",xe,[Object(o["createElementVNode"])("div",Re,[Object(o["createElementVNode"])("label",Pe,[Object(o["createTextVNode"])(Object(o["toDisplayString"])(p.value[0].nick||p.value[0].userId)+" ",1),u.value===Object(o["unref"])(y).AUDIO&&"connected"===f.value?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",Ue,[null!=(n=p.value[0])&&n.isAudioAvailable?(Object(o["openBlock"])(),Object(o["createBlock"])(Ie,{key:0,volume:null==(r=p.value[0])?void 0:r.volume},null,8,["volume"])):(Object(o["openBlock"])(),Object(o["createBlock"])(Ae,{key:1}))])):Object(o["createCommentVNode"])("",!0)]),Object(o["createElementVNode"])("span",Ve,Object(o["toDisplayString"])("connected"==f.value?h.value:m.value),1)])]))])}}}),Fe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAAAw1BMVEUAAAD7WV77WF/7WF77WF/6WV/7WV76WF77WV/7WmD6WWD/XmP/Zmb/gID/gID/XmH6WV/7WF77WF77WF77WV76WF/6WV/7WV/7WV/8WV77WF/7WV/8WWD8WF/8W177Wl/7XGD6WGL/XWf/YGD6WF76WF7////++Pj+8vP9z9H7f4T6Ymj7lJj7jZH7iIz6aW/+/Pz8srT8rrD8mp78ubv6b3T6XGL92tv91db9x8n9vsD8qKv+6+v+5eb+3+H8oqX7dXpC6t/gAAAAJXRSTlMA7cO6idPGqYVCNxwMBgQf2vv58+nfzK+slXx0XktJPj00FRDZDO0oagAAA7VJREFUeNrE1wl2okAUBdDPjBic5zGJeUhEjUYTZ5P9r6pP253uIyoUCFV3Acrnv8OrolgGVsc0FF2rSqWSVNV0xTA71oC4eOipcgVXVWS190BpsjOmXkSgom5mbEqH1ZTARGpalLh86wURvLTylKSnOiKrP1FSHhXEojxSEjIyYpMzdK9sA3dpZOkeuXYZdyq3cxRbX0MCtH7c8VUkRM3F2r6MxMgxktCVkCCpSxGpSJhKUdgGEmfYESpXQQoU5qp+riEVtWfG4isgJYU80/wFpKbwzLD/GlJUC82BrSBVik3BDKTMiPf94fVF6oKDbkD/SOBAutlMORlcyDmuAWCPQR/c9K8uQAM32rUltMFRmy5ky+ConCW/BrhqkE8GnGXonAzOZDrzCO7Ob64KuFPO7v8Q4In+q0OAOv2ThxB5+tGCEC36UYAQL/SXBUEs+qMJQZp0YksQRLLF1IC/EEwIY9JvOoTRT5fBIoQpPhBRDwL1TodxgVQRRxH/saSCGLzvydfydXXcu7Ph0HX3q9ftfDHyEFWFaICIvOlus3euc9fzqYcoBhGLYPS+mjnBZsflCMws6oDV53QzdNi42+knmHTIZJ196zpRuPMPMDDJYBp+cbx404fN/Gsxno6mk8l4t309XK5mPUEog+U8/DZ3fdNtFh9Xwvm+9q/oMEYIJbwJvPn5z7oBGfMW61m0R9BJQyDv/fzvV+OQdL35l3UcIYBGVQQZ+5PnIczG8du+4aYqSbjte+34DBFq6VwYTnCLRCXctLsM9gGhds4VY9xQ+sWcneQwCMNQAEWqEFWXVZfsip2GeaYDEtz/VF11ZzdEVfV5B0DBjpLYDs4+v8KWnDoWmFVbgJ6CnAVPcipYYrUUqJswMyx4kVPKokHbhKFPJDknp4FFHYlC9SCyLEnJKWNRqx1EB5LNSiDdDHsk7xBEPp8xI7n1LFlIFKnXcS3csLakLaqitbeNyTsG8aYI1FOfD6Ryr2IiWaw+yRr+mB9LKoTeaxW2ItlJf5S2htncm6KiH1VlqX/j+uVZPq4D/dtlD4UJvDSDF6fw8hzeoMC3aOBNKnibDt6oxLdqg4Qgkv206+EDC/jIBj+0go/t8INL+OgWP7yGj+/f3dtBCQAgAMDACpawf0VBE/iQGy7Hzg8MfOHwEwvfePzI5FcuPrP5nc8PjX7p9FMr33r92OzXbj+3+73fAwdPPALIxTMfD5089QpgN8/9AuAxQD4D6PWw3zEvGpv9fgWfC/Q7gN9f8P8FGlRGjHL2An8AAAAASUVORK5CYII=",Ge="data:image/svg+xml;base64,IDxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBmaWxsPSJub25lIiB2aWV3Qm94PSIwIDAgNDAgNDAiIGNsYXNzPSJkZXNpZ24taWNvbmZvbnQiPgogICAgPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0wIDIwQzAgOC45NTQzMSA4Ljk1NDMxIDAgMjAgMEMzMS4wNDU3IDAgNDAgOC45NTQzMSA0MCAyMEM0MCAzMS4wNDU3IDMxLjA0NTcgNDAgMjAgNDBDOC45NTQzMSA0MCAwIDMxLjA0NTcgMCAyMFoiIGZpbGw9IiNGRTNDNDQiIC8+CiAgICA8cGF0aCBkPSJNMjUuNDQzNyAyMC40NDlDMjUuNDQzNyAyMi4xMTQyIDI1LjIzMzYgMjMuMzUxNSAyOC41MDg5IDIzLjcxMjZDMzEuNzg3NSAyNC4wNzM3IDMxLjM2NjYgMjEuNjc5NCAzMS4zNjYyIDIwLjA2NjlDMzEuMzY0OSAxOC4yMDYxIDI3LjA2MDIgMTUuNjE5IDIwLjI3MjYgMTUuNjE3M0MxMy40ODY2IDE1LjYxNzMgOS4xNzg5IDE4LjIwNSA5LjE3ODg4IDIwLjA2N0M5LjE3ODg3IDIxLjY4IDguNzU2MjEgMjQuMDcyNiAxMi4wMzMyIDIzLjcxMjNDMTUuMzEwMSAyMy4zNTM3IDE1LjEgMjIuMTE1NSAxNS4wOTg0IDIwLjQ0OTVDMTUuMTAxMyAxOS4yODYyIDE3Ljc1ODcgMTkuMDMxNiAyMC4yNzI1IDE5LjAyOThDMjIuNzg2MyAxOS4wMjgxIDI1LjQ0NTQgMTkuMjg0NCAyNS40NDM3IDIwLjQ0OVoiIGZpbGw9IiNmZmYiIC8+CiAgPC9zdmc+",ze="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjg5NTk1MTk0MDUzIiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjIzNDQiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTUxMiAxNzAuNjY2NjY3djg1LjMzMzMzM2EyNTYgMjU2IDAgMSAxLTIyMy41NzMzMzMgMTMxLjJMMjEzLjkzMDY2NyAzNDUuNkEzNDEuMzMzMzMzIDM0MS4zMzMzMzMgMCAxIDAgNTEyIDE3MC42NjY2Njd6IiBmaWxsPSIjMDAwMDAwIiBvcGFjaXR5PSIuMyIgcC1pZD0iMjM0NSI+PC9wYXRoPjwvc3ZnPg==",He="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAMAAAC5zwKfAAAAsVBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+3mHKcAAAAOnRSTlMAChshaFgmE25ORA9eSRa/sTLNloBjBlM/07qFKok2m3c786wukeTf3Kh07PCNe8fDtZ/o16Kl9/nJwyGDfwAABBtJREFUWMOs0cuKBSEMRVEfkEJFwUnKgQiC//+NHbvUWz1rbrKdLw5G/SNUUqGeIUppgZqiCKgvijwhUKeUCNwL+ZwxWxT4RCTuAwb2Qm2sXeIBOeJlqc9ENmhgg2aBgQOiBYA/E3ln1rYu0C6QdxUE8mZHvKjw/ZFh1Ed8TQyMe0CuswnCErViZPKghe+NQXG6MoGHJC8pVnq8QRKD4gU950NCtZrpXa3l3x7RItPD3NtDjhkobqaQt8lckQ3m3vshhxYY2GcP2JJil33pm+zA964y68vUfBB8OWQxfA+L95ssDflgIu+QVvGr0e9KRwGwRR+3OQS84CP1kDEJgMnFU9ECoD2gd00JNFx01BRdlQD77U5WAvTuUxIBaeG9XpAA3X1yWgK8XyB+aehXP53YbZdyQBjA8SFKYpWHNmRZ5aEQ6dn3/2D3NQy6262Nf6/qnH7nmplOEoBs8+gJTg5u7JIi9Mk2ffZcMn0pmiI0Ztt6HsrSvdYVIRJrTWBZuh/IX6DSuxQy4gWMVQ37gczVvZCKPfoSgKvSvvqBSYHPBKNu4aGhJtQxYj9wD2BVXDCIBlDDD6jfqQzDSxzHBBTRiAWMxAz6gONrFOPAu4RLhESm5jSO7wPmlwOIuKgw4Pk3U3E4jeru0UFUhUELf2UzgJG4Hue8dQ9RTbpjfKEXGo7hhM4jftwi/wCV4LE81QVXcxy37TwiF/sAluThmlSbgDXSlhl18wZHHyJkvEBlLNeKzrgbqESBT0jflciGrbnK2+J2sy6e4IdBQEg/1lDVXGg9x9nS73szPQCQkFFKNa87NQftuLe3kZaCYxgSMoAB6yhhyzXeTmUm73kf00AHkIgH6e5tQ6fiwIPM946anob68QhiRfoiumu8A7DyVFW13tnHtRHKei0GYaSg+0Yc4cDDovr9l8emR/BALMljIA8eLjS71jNN00qEl8umLV2GWtEfo4d41Wk9ED2Tf3o2I0HSb7c7UT/s0GNzVgWvHhBKFFWc/M6t5DRLQdQBxKLunyj0I0ozd/V8wEGKnWizj8fbOHWfplKWYrCeMZj+uj8TziTzlaAHKfkpcVh+SY8oakSvRcbaZJkkSVmGRbmaUQ4M+skHFcRqvgpUcPl5cz5B581qupckY28YpZg2M4bGED1pwlgqWXAN2rad56BtVqspDrwSrMTSW9HoaZSWlAOWntd4FbjC3v8gzBjaI/SiuWiRHXwOtuItlfUthV63Vj0C3q24Be9HzFJd4tGfjQTPs5LW+x3EoiybNHqntaMo9ytuwHbNUCpvFujNqIWq2C9AENPbhqU63ZU7dg7cTxACLrM7/36eL9nEPp3z5pSJaEiZtOL6/TVBzVjHA6sMczCbcbaYb9B6R894wbE8+7zJFU9lxl8D9Lp/VcLH/2j8UuYAAAAASUVORK5CYII=",Ye={class:"call-operate"},qe=["src"],We=["src"],Ke=Object(o["defineComponent"])({__name:"Hangup",props:{isMobile:{type:Boolean,required:!0},isClickable:{type:Boolean,required:!0},isGroupCall:{type:Boolean,required:!0},callType:{type:Number,required:!0}},setup(e){const t=e,n=t.isMobile?Fe:Ge,r=t.isMobile?"btn-operate-mobile":"btn-operate-desktop",a=t.isMobile&&!t.isGroupCall&&t.callType===y.VIDEO,i=!t.isMobile||a?He:ze,s=async()=>{await ee.hangup()};return(t,a)=>(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{class:Object(o["normalizeClass"])(Object(o["unref"])(r))},[Object(o["createElementVNode"])("div",Ye,[e.isClickable?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{key:1,onClick:s},[Object(o["createElementVNode"])("img",{src:Object(o["unref"])(n)},null,8,We)])):(Object(o["openBlock"])(),Object(o["createElementBlock"])("img",{key:0,class:"invite-calling-item-loading",src:Object(o["unref"])(i)},null,8,qe))]),Object(o["createElementVNode"])("span",null,Object(o["toDisplayString"])(Object(o["unref"])(N)("hangup")),1)],2))}}),$e=se(Ke,[["__scopeId","data-v-5bf037a3"]]),Je="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMAAAADACAMAAABlApw1AAAA81BMVEUAAAAPqmkQqmgWr2wQqmkQqmgPq2kPq2oQqmkXqnMhvHkQqmgQqmkPqmgQqmgPqmgQqmgPqmkPqmkQqmkRq2gPqWkPqmgQq2kPqmoVrWsUtXIrqoAQqWkPqWkQqmgPqWkPqmgPqmkQqmkQq2kQq2kTrWoQrGgRqmwTrmocqnEQqmgPqWjr9P8vtH4arW8Vq2zc7/QmsXip3tLp9P3W7fDP6+yE0bd5zbDg8fe/5uCx4Nab2chvy6rT7O6549yK07xaw5sgsHTl8vqS1sJPv5RIvY87uIc2t4LE5+Rmx6RgxZ+i281Buoq24tt/0LXK6ehVwZgDiGedAAAAK3RSTlMA6PEXgK2HQT0QB8B9+r389u/e0pp3ZFhSIwwG4v3hysa4saNtNTEtKQnjdBIG/QAAByZJREFUeNrt3QdW20AQBuCRZDuy5d4bAQIEyL9uGAgtgEMLkHb/06Q8zNpEOPY2SSTfCTx+s9omzZAGjltNlONeqW0V8rlcvmC1S168nKi6DoVcarOeXlu28Sx7eS1d30xRGLXctJfBXDJe2m1RqGxUVvNYSH61skHhkKrFbQix47Xgs8kt25Bgl10KUCNWhLRirEGBaFVXoMhKtUWmba+3oVB7fZtMalYsKGZVmmRKMlaABoVYkkxIJmxoYicMhFCzoJFVI722stAsu0X6NBMZaJdJaBvN9dcw4nWddHDewJg3Din3yoJB1itSLJ2DUbm02vTJwrisE9X0UZ9GsSUEYilGKqTiCEw8RdKSWQQomyRJTgmBKjkkpVFEwIoNkvDWQuCstyTslY0QsF8J//4MQiEjGMHbUPz/v9hCWdQIQf6PWQIj2Qn8+TOp6NCCkiWESilJC0llETLZFC0ijtCJ0wJiCKHYAhPAEkJoae7pwAnRA3SS5dB8QjeAx7I0lzRCKz3XAMghtHKvojsA5h4GbxBqb+gv6hA0+Hq0c3wF7eo0U/M1hIzOhuyXoy40e92kWRIQctJnD46WoFmCZtjKQMQx486gWWaLnudBxDGbMBxAM4+eVYOIOzblPXSr0TOSFgQMDtiUQ+hmJZWO4H32RAfyhMZx0oaAXp8x0zlkJxXuYq7YU5+gXYx8NAsQ8Z4x8zlU8JvNKhByz/7wFdpV6A/bFoTssCByyNqmp9YhhgfA3UC7dXqi1YaYHRZIDrVbNK0KIf4BfIN+VZq2AkFHLJgcWqEpDQjyD2Af+jXUHMX5B7AH/WI0qQhRO8zPNbQr0gQXwo5ZUDnkEleGsDMWVA6V6VHKhrD3LKgcslMSOzHuhPk6g341JdcZd8zXB+gXpzEb4i6Zv8/QzqYHG5BwzYLLoQ2+ExDXZf52oRvfFaxCxm5wObRKv7XykHHKfH3sQLt8i0/D4o79f/8dDHAV3Kn6z2SHNzAhzQ9ExZ2zPwz3ezDCo59SGUi5YU/tfYYhmRQRbULSAZt23IUxm/xSSdwRm9Q/h0F1FdfC+2zC0QBm8FG8BkmXEw/PE5i1RkTLkDTiS9AbGLbMl6IS9vh5kGk2kQNZfC4e9mCaQy6knQtvJOW5VIW07pA9uIVpVUpA3hHfxZiWoDKk8Y39F5hWpjjkddiDgx4Mi5MHBb6xB5cwzKMS5PHVxAUMK9E7KNDhx0GGtcmCCqf8asMsiwpQ4ZZf05tVoDxU6B7wK1aj8pSDEsf8OMionKIA+CsTxzAqR3mo8Wm8pxnBpDwVoMZdMMO4QBbUWNobTwVLMMiiNtTgK7pzGNSmEhTp9sfnWj2YUyIPqnxlD05gjkdxqDIaT2b9LoyJUxnKvOfX3MaUKQFleh/Gc8EApiSoCmX4XHAPU6rkQqFD9uA7DHHJgTp8RbTbhRkOkQ2FdgzvLW1+uKtG54A9uIIJy/x4XQ2+oPjWhQFr6r97OzX6JErzKyZVOh9Nrqvr/JJPFT4fDy+h3Sa/ZlWGTwb9DvTh16zkQS3+JPrUhV6enq9X+YXHqeYI0vSLC9UuTEXg8tdtlOodzo7g8zWUyLf4C09qDfps7MvTCHq3n1Rd5azyV85Uu2SPTkdToe331e15KvylP+Xes0cfrnnu3A9Vbpw3+GuX6l2wRx9v8Uvv7pBNOIcsW28djx3GXfQw+LrLpgyvIClOYzWoxB9F3OHxkD11cA05tcmXvzUY7TF/ipYadooelaFDZ5fNtjeAhDJxLqSIRCC/WHJlP0HhxCP40oOoopF6PJ0PbLYdiIpJf4bFyURwAUENmrICTTp7bLZ9CFmhaVXoMjpls51ARJWmtd5Bl9498yG5qGi36Il16HPGZvoosKhYF/ggWsLtkE2SX1RY2/SHCjS67LNZdjtYTEWgKICcwReVi4pCM4DicvsKJ7SYosIYnHwafcf87CT5SkCYfBrdY34JweIw8m77jBP+dtFKipbnkTfYYfIfztXoWR60O99lvk4xr6xUiSp5o4sh83GLOWW2aIYEDLjheSRQVikhX6ZN3tUhm9I/6WFOr5s0Ux1mnO9NLIXOuphbPSylCnuXF7+Hc//orof5vQlVscju4GaEhVjOyy/XGf2CqdEvWRvamqmW86+UbY5+4ezoly6PfvH4yJfvj34Dhei3sIh+E5Hot3GJfiOd6Lcyin4zqei384p+Q7Xot7SLflPBF9DWMfqNNaPf2vQFNJeNfnvf6DdYfgEtrn/a8qCZt0V+/rd5fzmN9n9KxgrQoBBLkinNigXFrEqTTNpeb0Oh9vo2mdaqrkCRlWqLAtGIFSGtGGtQgNyyDQl22aWgpWpxG0LseC1F4bBRWc1jIfnVygaFSsuNeRnMJePF3BaFUWqznl5btvEse3ktXd8MS948y3GriXLcK7WtQj6XyxesdsmLlxNV1yH1fgACmQEX1CWf4AAAAABJRU5ErkJggg==",Qe="data:image/svg+xml;base64,ICA8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgZmlsbD0ibm9uZSIgdmlld0JveD0iMCAwIDQwIDQwIiBjbGFzcz0iZGVzaWduLWljb25mb250Ij4KICAgIDxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMCAyMEMwIDguOTU0MzEgOC45NTQzMSAwIDIwIDBWMEMzMS4wNDU3IDAgNDAgOC45NTQzMSA0MCAyMFYyMEM0MCAzMS4wNDU3IDMxLjA0NTcgNDAgMjAgNDBWNDBDOC45NTQzMSA0MCAwIDMxLjA0NTcgMCAyMFYyMFoiIGZpbGw9IiMxOUQyNTUiIC8+CiAgICA8cGF0aCBkPSJNMjMuNTM5NyAxNi45NTM1QzI0LjcxNzIgMTguMTMxIDI1LjQ0MzYgMTkuMTU0NCAyOC4wMTQ5IDE3LjA5MzhDMzAuNTg4NSAxNS4wMzA4IDI4LjU5NzkgMTMuNjM1NCAyNy40NTczIDEyLjQ5NTVDMjYuMTQwNyAxMS4xODA2IDIxLjI2NzQgMTIuMzk1MSAxNi40NjY3IDE3LjE5MzVDMTEuNjY4MyAyMS45OTE5IDEwLjQ1MjEgMjYuODY3NyAxMS43Njg3IDI4LjE4NDRDMTIuOTA5MiAyOS4zMjQ5IDE0LjMwMjIgMzEuMzE1NiAxNi4zNjQ2IDI4Ljc0MzdDMTguNDI4MiAyNi4xNzMgMTcuNDA0MSAyNS40NDYgMTYuMjI0OCAyNC4yNjkxQzE1LjQwNDMgMjMuNDQ0NCAxNy4xMDM0IDIxLjM4NTMgMTguODc5NyAxOS42MDY2QzIwLjY1NiAxNy44Mjc4IDIyLjcxNzQgMTYuMTI4OCAyMy41Mzk3IDE2Ljk1MzVaIiBmaWxsPSJ3aGl0ZSIgLz4KICA8L3N2Zz4=",Xe="data:image/svg+xml;base64,IDxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBmaWxsPSJub25lIiB2aWV3Qm94PSIwIDAgNDAgNDAiIGNsYXNzPSJkZXNpZ24taWNvbmZvbnQiPgogICAgICAgIDxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIgogICAgICAgICAgICBkPSJNMCAyMEMwIDguOTU0MzEgOC45NTQzMSAwIDIwIDBDMzEuMDQ1NyAwIDQwIDguOTU0MzEgNDAgMjBDNDAgMzEuMDQ1NyAzMS4wNDU3IDQwIDIwIDQwQzguOTU0MzEgNDAgMCAzMS4wNDU3IDAgMjBaIgogICAgICAgICAgICBmaWxsPSIjMTlEMjU1IiAvPgogICAgICAgIDxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIgogICAgICAgICAgICBkPSJNMjQuMDQyMSAxNC44MTI5QzIzLjg4MTQgMTQuMDc5MiAyMy4zNjg0IDEzLjUyMzEgMjIuNzI5MSAxMy4zOTAyQzIxLjY2NzQgMTMuMjEyNiAyMC4zNDk1IDEzIDE3LjY2NjcgMTNDMTQuNzMxOSAxMyAxMy41MDExIDEzLjIwMDkgMTIuNTI2MyAxMy4zNjY5QzExLjkyMzUgMTMuNTI5NSAxMS40NDg0IDE0LjA2ODggMTEuMjkyNiAxNC43Njc1QzExLjE1MyAxNS42NDE5IDExIDE3LjgyOTggMTEgMTkuNjY2N0MxMSAyMS40NzI0IDExLjE0ODEgMjMuNjQ2MSAxMS4yOTEyIDI0LjUyMDVDMTEuNDUxOSAyNS4yNTQyIDExLjk2NDkgMjUuODEwMyAxMi42MDQyIDI1Ljk0MzFDMTMuNjY2IDI2LjEyMDcgMTQuOTgzOSAyNi4zMzMzIDE3LjY2NjcgMjYuMzMzM0MyMC4zNDk1IDI2LjMzMzMgMjEuNjY3NCAyNi4xMjA3IDIyLjczMDUgMjUuOTUyMkMyMy4zNzI2IDI1LjgxOTQgMjMuODg5MSAyNS4yNiAyNC4wNTEyIDI0LjUyMzFDMjQuMTg1MyAyMy42NDYxIDI0LjMzMzMgMjEuNDcyNCAyNC4zMzMzIDE5LjY2NjdDMjQuMzMzMyAxNy44NjA5IDI0LjE4NTMgMTUuNjg3MiAyNC4wNDIxIDE0LjgxMjlaTTEyLjY2NjcgMTUuNUMxMi42NjY3IDE1LjAzOTggMTMuMDM5OCAxNC42NjY3IDEzLjUgMTQuNjY2N0gxNC4zMzMzQzE0Ljc5MzYgMTQuNjY2NyAxNS4xNjY3IDE1LjAzOTggMTUuMTY2NyAxNS41QzE1LjE2NjcgMTUuOTYwMiAxNC43OTM2IDE2LjMzMzMgMTQuMzMzMyAxNi4zMzMzSDEzLjVDMTMuMDM5OCAxNi4zMzMzIDEyLjY2NjcgMTUuOTYwMiAxMi42NjY3IDE1LjVaTTI4LjUgMTQuNjY2N0MyNy4wOTQyIDE0LjY2NjcgMjYgMTYuNTQ3IDI2IDE3LjY0MjlWMjEuNjkwNUMyNiAyMi45ODA0IDI2LjgwMDggMjQuNjY2NyAyOC41IDI0LjY2NjdDMjkuMjg1OCAyNC42NjY3IDI5LjMzMzMgMjEuNDUyNCAyOS4zMzMzIDE5LjY2NjdDMjkuMzMzMyAxNy44ODEgMjkuMzMzMyAxNC42NjY3IDI4LjUgMTQuNjY2N1oiCiAgICAgICAgICAgIGZpbGw9IiNmZmYiIC8+CiAgICA8L3N2Zz4=",Ze={class:"call-operate"},et=["src"],tt=Object(o["defineComponent"])({__name:"Accept",props:{isMobile:{type:Boolean,required:!0},callType:{type:Number,required:!0}},setup(e){const t=e,n=t.isMobile?"btn-operate-mobile":"btn-operate-desktop",r=t.isMobile?Je:t.callType===y.AUDIO?Qe:Xe,a=async()=>{await ee.accept()};return(e,t)=>(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{class:Object(o["normalizeClass"])(Object(o["unref"])(n)),onClick:a},[Object(o["createElementVNode"])("div",Ze,[Object(o["createElementVNode"])("img",{src:Object(o["unref"])(r)},null,8,et)]),Object(o["createElementVNode"])("span",null,Object(o["toDisplayString"])(Object(o["unref"])(N)("accept")),1)],2))}}),nt=se(tt,[["__scopeId","data-v-d3595e0b"]]),rt={class:"call-operate"},ot=["src"],at=Object(o["defineComponent"])({__name:"Reject",props:{isMobile:{type:Boolean,required:!0}},setup(e){const t=e,n=t.isMobile?Fe:Ge,r=t.isMobile?"btn-operate-mobile":"btn-operate-desktop",a=async()=>{await ee.reject()};return(e,t)=>(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{class:Object(o["normalizeClass"])(Object(o["unref"])(r)),onClick:a},[Object(o["createElementVNode"])("div",rt,[Object(o["createElementVNode"])("img",{src:Object(o["unref"])(n)},null,8,ot)]),Object(o["createElementVNode"])("span",null,Object(o["toDisplayString"])(Object(o["unref"])(N)("reject")),1)],2))}}),it=se(at,[["__scopeId","data-v-d28bf8d1"]]),st="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAAkCAMAAADrTAnMAAAAn1BMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8Kd3m4AAAANHRSTlMA+LcMRx7t6ODcoIBxYUAInFv18cuOhn4yGBLRzb2ka1MnIw/61sWKeU06NyytpZWSVzYEGKQRgAAAAaZJREFUSMedVet6gjAMBVEElaGAeJvi/e6mW97/2Za0ED5gRe35w6H9Tgk5SWq8hd+WoYW1A3tLR3gAgJuOsAeIrobQj0i51FBO2igMJ4rdczRvqpQXE5V3xaaLe6PyYpbMBDdNhSlAaEwLPriwSJ2kYzs1QnDGRo4+LgwlfSDdtmqEYHpFA2Eg+QxpohYS+n62NKUA2xab2fgv42NgfHJI1wBfj4KukAV+MXPLjgMF2OzLiD6ZZ/1k5Gj1TaiAfbFsfPkR9I6sx7LNsCor+LLgMu1xiinwHajgyB/1kH4JNhBM4hSqZGz3B7J5iRnNLTwVjinLJXYN63TOWh7O9jGzXGCok5Pwt72Mdet03O8NNuGILKZSCdSyvABa5JYMupMe8Q0SwTz2Th+Icslxf+wkbSM9iydhP7BURU5Y5u1xoUhSV2DXrG+rFf3OTPIYQHT1kArIf6GRTVmpPkX4ENnaek9HRywC5ZyGG2robIURVafuZjFLUmZnu3a3Oh4j1XiUHtgWsb3xDjzgOli9quF57PqaN8DVeBux7p0zEkNIA9bNOWT8DweSes56/3r9AAAAAElFTkSuQmCC",ct="data:image/svg+xml;base64,ICAgIDxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBmaWxsPSJub25lIiB2aWV3Qm94PSIwIDAgNDAgNDAiIGNsYXNzPSJkZXNpZ24taWNvbmZvbnQiPgogICAgICAgIDxyZWN0IHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgcng9IjIwIiBmaWxsPSIjREFEQURBIiBmaWxsLW9wYWNpdHk9Ii4zIiAvPgogICAgICAgIDxwYXRoIGQ9Ik0xNy43MzExIDE1Ljc0ODVDMTcuNzMxMSAxNS40MzM5IDE4LjEzMzMgMTUuMjg5IDE4LjM1OTYgMTUuNTA3TDIyLjk4MDggMTkuNjgzMUMyMy4xMzE0IDE5LjgyOCAyMy4xMzE0IDIwLjA0NTMgMjIuOTgwOCAyMC4xNjZMMTguMzM0MSAyNC4zNDM1QzE4LjEwODYgMjQuNTYwOCAxNy43MDYzIDI0LjM5MTcgMTcuNzA2MyAyNC4xMDJWMjIuMzM5NkMxNy43MDYzIDIyLjE0NjQgMTcuNTMwMyAyMi4wMDE2IDE3LjMyOTYgMjIuMDAxNkMxNC4yMTQ3IDIyLjA3NCAxMi40MzE5IDIyLjg3MDcgMTAuNjQ5IDI0LjUzNjZDMTAuMzcyNiAyNC43NzggOS44OTUzOCAyNC41MzY2IDEwLjAyMDUgMjQuMTk4NkMxMS4xMDA3IDIxLjE1NjUgMTIuOTM0NSAxOC40MDQyIDE3LjczMTEgMTcuODAwNlYxNS43NDg1WiIgZmlsbD0iI2ZmZiIgLz4KICAgICAgICA8cGF0aCBkPSJNMjQuNzYwMyAxNy4wNDExQzI2LjQxMDMgMTguNjkxMSAyNi40MzI4IDIxLjM0MzggMjQuODEwNiAyMi45NjYxQzI0LjU3ODggMjMuMTk3OCAyNC4xOTk5IDIzLjE5NDYgMjMuOTY0MiAyMi45NTg5QzIzLjcyODQgMjIuNzIzMiAyMy43MjUyIDIyLjM0NDIgMjMuOTU3IDIyLjExMjRDMjUuMTE1NyAyMC45NTM3IDI1LjA5OTYgMTkuMDU4OSAyMy45MjExIDE3Ljg4MDNDMjMuNjg1MyAxNy42NDQ2IDIzLjY4MjEgMTcuMjY1NiAyMy45MTM5IDE3LjAzMzlDMjQuMTQ1NiAxNi44MDIxIDI0LjUyNDYgMTYuODA1MyAyNC43NjAzIDE3LjA0MTFaIiBmaWxsPSIjZmZmIiAvPgogICAgICAgIDxwYXRoIGQ9Ik0yNi44NzY1IDE0LjkyNUMyOS43MDUxIDE3Ljc1MzYgMjkuNzQzNyAyMi4zMDExIDI2Ljk2MjcgMjUuMDgyMUMyNi43MzEgMjUuMzEzOCAyNi4zNTIgMjUuMzEwNiAyNi4xMTYzIDI1LjA3NDlDMjUuODgwNiAyNC44MzkyIDI1Ljg3NzMgMjQuNDYwMiAyNi4xMDkxIDI0LjIyODVDMjguNDI2NiAyMS45MTEgMjguMzk0NCAxOC4xMjE0IDI2LjAzNzMgMTUuNzY0MkMyNS44MDE2IDE1LjUyODUgMjUuNzk4MyAxNS4xNDk1IDI2LjAzMDEgMTQuOTE3OEMyNi4yNjE4IDE0LjY4NiAyNi42NDA4IDE0LjY4OTMgMjYuODc2NSAxNC45MjVaIiBmaWxsPSIjZmZmIiAvPgogICAgPC9zdmc+",lt={class:"call-operate"},ut=["src"],dt=Object(o["defineComponent"])({__name:"SwitchAudioCall",props:{isMobile:{type:Boolean,required:!0}},setup(e){const t=e,n=t.isMobile?st:ct,r=t.isMobile?"btn-operate-mobile":"btn-operate-desktop",a=async()=>{await ee.switchCallMediaType()};return(e,t)=>(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{class:Object(o["normalizeClass"])(Object(o["unref"])(r)),onClick:a},[Object(o["createElementVNode"])("div",lt,[Object(o["createElementVNode"])("img",{src:Object(o["unref"])(n)},null,8,ut)]),Object(o["createElementVNode"])("span",null,Object(o["toDisplayString"])(Object(o["unref"])(N)("video-to-audio")),1)],2))}}),pt=se(dt,[["__scopeId","data-v-96c9cbf4"]]),ft="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAAe1BMVEX///8AAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9z+u+qAAAAKHRSTlMzAC8EKxkTKB0L70n76823e0Mhu1TAhDs29NWOd15NPyTdwqOdgGnjem2xqgAAAitJREFUWMOll+lyqzAMhU+8AA4UCNnbJmnT5fL+T3jHxHSMkQrU50cmzvKNjixkCytGMtFNqgQgVNroRHK/owEmUwikMjMXILUCKaXlDIDUAqyEllOAxP2dRSS/AmSKSaWSBxiBGRKGAySYqYQGZJitjAK8YYHexoAMi5SFgAQLlQwBBotlfIAUWCwhPUCKPyh1gEEClqcBjIHXNtArZcIBNEbarEPAeoORtAXQAWzbkbZkCBagOQPTJnQHUJyBaRPKAgxvYNqEWSF4CPLqqf1FT1UePBIYOsgHwZNG8qEHSPiqWl/F4XLML/W+8D+s4EtiWIVB/AcX1913MaxGaPjyfvhu473hoRfvC/jSaBjAZ7eXH+gJDKBBSgP2wMFm4Xwu6xMA7GlACkUDdgBK9/55A+BakAAFQQJKu9gVPcHGsCUBAiABNaw+++UXgNoD8PIdAKd3L6ArDWAsHNHpuy8/ADfaApPEG4C+qr/R6UgnkdnGq7cJ/x7h7JhtbNgkfv3UFMAmsWFKeWtT+OwWRZfSkinlhAQU1sOmJ5TOAQFIINlSBk51eT4Xjzq40wCJlSIB7QucPrp2aF8JgApbWjsm3Nbu2e4VtjTDANq7a14Hu2AAJmzrw462ry/58XIoWIAaHSxcS2Zamh4dbdU0oBodbSv917auB8f78oNFyNgLRuwVJ/qSFXvNi71oxl51oy/b8df9+IEjfuSJH7rix774wTN+9I0fvqPH//+TfI0R8kWyJgAAAABJRU5ErkJggg==",ht={class:"btn-operate-item"},mt={class:"invite-calling-header-left"},vt=["src"],gt=Object(o["defineComponent"])({__name:"SwitchCamera",setup(e){return(e,t)=>(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",ht,[Object(o["createElementVNode"])("div",mt,[Object(o["createElementVNode"])("img",{src:Object(o["unref"])(ft)},null,8,vt)])]))}}),_t=se(gt,[["__scopeId","data-v-07a98f5a"]]),yt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAABoCAMAAAAqwkWTAAAAqFBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8lQWY7VXb29/mlscAnQ2jn6u69xdFjd5ExS25GXn0wSm7p7PDh5erM09vBydSgrb2SoLN7jKJxhJwqRmpLY4Hu8POVo7WVorRccY0F8cuqAAAAHnRSTlMA7R4Ex+jZ0q5OSRXJ4Yz59biyo453bGVXPi8qC41r8AF3AAADgUlEQVRo3rzW147CMBAF0DHpld7Za5bQVyD+/+tWSHmgGGecmJznSFcej2dCfMl8mg/cIBPdrsgCd5BP5wnZtpyEAgoinCzJFiceetDwhrFDzS1yD5W8fEHNRCmY0ojqmwUwEMyontiHIT8mc50QNYQd004b91BLb+wYHcdFba7BoSKBBkTELdsIDY1Y5Vv10Vh/RZWSFBakSWUb+LDC71TkZLAk0yYlPqzxE00fpLAoXX3s6z6s6jukNoJlI1KKYF2kbDgB60RHcUEuvsB9v6YxvmL8VrgevqL3WrwQXxLSkxhM283+eDod95stmGJ65IPlfCtkqbidweLTgxlYdgf54LADy+NfWACOayGfFFdwBKYzYVfIF8XOcD6kYDgf5JvDGQwplRbguEmFGzgWZdAPGLaFVCi2YMjLKeeBYSOVNmDwHIPHupdKe4NHOwTHUSodwTGkOw8cJ6l0Aod3z1mCRX4AliURTdoImvAXhPyAvyxEG0GCKEEbQUho3k7QnKbtBE3pp52gnAbtBA3IbSfIrdzil/X6og8qv9ELKIPeWsq1Pqj8Ri8jwRimv/qh+ssYroK6jPXwp18Tf4x10f2v1upaG4ShKIzBupcy2Mvo0OaKdg+mhqjV///P5oE9lFU9N2uWufPSYiDH3MTcr0OJxmkWu+747PQ7MiJqOg9/ve7KMeSZ6ehhaPDa68EJFtuww0CPNzaglbVwS1psIzve/IPtYKC1ABKW6+gHy68gN81jZDkkFjP9c/QK4pdqj5W45SDfYWU9v1S5mxiwS3YpbbHYoYG7Cer4vmxjyvlErDQYFO74NK68wsRdOZdalh3GKoUrVwUnF8xm7O2ANRi5KIITZbjlMV/r5JtNXYvnPufYKQNI8UfAFFdUUpgj4EUZQCIkVlkPaE+FrUVqW5ywGpXdgHd9kF+Z4wxMpQzy9WlLLsPHzQ00SK7Ca1jVpHfdNU3n+qDqCVJLNerGjyAZfVPnaiC1BPZ5EECUB2FP0v9oRAdS0IhF9EhKNNGInknRKRbREymjRSN6CysMnudvhjMvDAaWOsEzxxRS6gR2v0W0I+XoWKZ7eUhVYE/WMkjVBEnV1knVqErWekvVTPz79mjchu82WtjxmvLbkRnEEU5sSwpyt7hli3KdOwRI25VU/UQktn3ZG3DINEK+7PB/pIkxxZZ6+Wh2LR/NguSjn/9F6h0IFyvQAAAAAElFTkSuQmCC",bt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAABoCAMAAAAqwkWTAAAAkFBMVEUAAAD////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////HztfO1N3p7O/K0dnv8fT9/f7R197a3uT7/Pz3+Prk6OzM0tvz9ffV2+H5+vvd4ufg5OknoyjnAAAAHnRSTlMA7bCNHgTo0k5JLBXJx/nf2djGuKN3bGVXPgv14/RLhx5LAAAEBklEQVRo3rTWxxXEIBADUIIDXnDOSf2XuXdnYPgNzJPQAfadnkcpmrTkRcHLtBFynDWj9hsExwUuhh+jEmddggdJl8UUWWSCV4n0zaUMPjKKuZtSWEgn5iarYKnKmL1IwIGIbJfWr3Cy97FVnBzOcotQisMDV19rk/AkP9W3tPDWLuyVNiBg9OsMapCoo5c7G4hsj5d0DTK1ftiBASGz3O66Ban2buUSxCS7pEBOXQ6Ogxy/mF6cI4D8/Ew9guhPxa0IYj+WJxCIOPwP/pSW3Y6CMBCFa4yYVaPGGF1vDqVQ/sH3f7ulhNltYKUz31VDyJxMz/wUTLokt8bYPCnA5Ev5XJkyffxLz5S6Ko9vsEhN7FGn01etU6zgv8L24JDEMxIMlIO6xgp76UxI4zk6AzLrDsz5cGL5YxZCDYCcUvvMiXQO4NAvdBK6zh7rHCRTu1vo5AAal6bNeFN8F8krYQpf6OFgSgSIdoJmzWc6pqSPKbdp7+Bg/zGococ3wtyVIwIHr+YofOMOLRhE/JrDnwaFL2o3HjoQobp7SIUofEsGMXjQghAKpWRQJVgWG7lQRQOpBZONUkfwmBnUjQYV4HJUL7GQLsigBmxe6ikSovBvrkHEU22lQgkZlEPAlv0q8UdpaegG0bDL7iYTsrTrzChRaPC4Bbc4vQi8UdrTDbqa8P5Z3+cXrKOnRe3vOjLINa33zxoXtWEM0wxATaO0pF031oQBkLlUgx17DmcUd9OaaEEGlZia1jrpOJzR+adas+1pEAbieIZumhkTX2jUGEcpBQrj4ft/OwPhvDRmuX+hduxekSzhP9pr73cPolDLENJ0DCP0Uzk7eysJiUtX8s7kLowMvGnyodoJzsBvqXTNMMIQQfEik5xBdG87bokZX3xyYMRq+jYzPljJveUDq+j/MoyQT6S6mz+tEA+sfAXVM/u6MFKmpGka5H5N5Eu10tOLGEZ4gzJS15V4qQJhYpj2gmGEJHU+PWooYLwDgc+otDAOjFSKEjE40n4ioTzX1oWR8je17AoQhZ4gOLGXYOTcgJF2B+HWpSUytUYjbQID5F8YMVmTjtZDAAkhsQsjZ2uMzbOWIRywIwL5DCMkyaYwJD6AaQvDiJuP6cGcIHuFEjGCEZIkK2q8egKkli6M2KwvJpE+88DUwx5KlhlGGLxOXnaHpf+KYt1ioSNW0FAU65YKPXOJRkbINUKPHkWnNUIPQhktmNCHX2EwVymZ383w4lnqZB1XCTusbMl/CSVCOTrU0n3fxyqwR2sZxGqCxGrrxGpURWu9xWomXr89Grbhu40Wdrim/HbGDMIMTmxrFGT1cEuUcZ2vt/02B5CWjlRte0jMd+ztNgb50NHE2xq2DDM++gMth+mh+w6ysAAAAABJRU5ErkJggg==",Ot="data:image/svg+xml;base64,ICA8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgZmlsbD0ibm9uZSIgdmlld0JveD0iMCAwIDQwIDQwIiBjbGFzcz0iZGVzaWduLWljb25mb250Ij4KICAgICAgICA8cmVjdCB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHJ4PSIyMCIgZmlsbD0iI0RBREFEQSIgZmlsbC1vcGFjaXR5PSIuMyIgLz4KICAgICAgICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIKICAgICAgICAgICAgZD0iTTE2LjY2NjUgMTQuMTY2N0MxNi42NjY1IDEyLjMyODQgMTguMTYxNSAxMC44MzM0IDE5Ljk5OTggMTAuODMzNEMyMS44MzgyIDEwLjgzMzQgMjMuMzMzMiAxMi4zMjg0IDIzLjMzMzIgMTQuMTY2N1YxOS4xNjY3QzIzLjMzMzIgMjEuMDA1IDIxLjgzODIgMjIuNSAxOS45OTk4IDIyLjVDMTguMTYxNSAyMi41IDE2LjY2NjUgMjEuMDA1IDE2LjY2NjUgMTkuMTY2N1YxNC4xNjY3Wk0xNi42NjY1IDI4LjMzMzRDMTYuNjY2NSAyNy44NzI1IDE3LjAzOTggMjcuNSAxNy40OTk4IDI3LjVIMjIuNDk5OEMyMi45NjA3IDI3LjUgMjMuMzMzMiAyNy44NzI1IDIzLjMzMzIgMjguMzMzNEMyMy4zMzMyIDI4Ljc5NDIgMjIuOTYwNyAyOS4xNjY3IDIyLjQ5OTggMjkuMTY2N0gxNy40OTk4QzE3LjAzOTggMjkuMTY2NyAxNi42NjY1IDI4Ljc5NDIgMTYuNjY2NSAyOC4zMzM0WiIKICAgICAgICAgICAgZmlsbD0iI2ZmZiIgLz4KICAgICAgICA8cGF0aAogICAgICAgICAgICBkPSJNMjUuODMzMiAxOC4zNTEyVjE5LjUwODNDMjUuODMzMiAyMi4wODExIDIzLjIyMTUgMjUgMTkuOTk5OCAyNUMxNi43NzgyIDI1IDE0LjE2NjUgMjIuMDgxMSAxNC4xNjY1IDE5LjUwODNWMTguMzMzNCIKICAgICAgICAgICAgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjEuNjY2NjciIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgLz4KICAgIDwvc3ZnPg==",Mt="data:image/svg+xml;base64,ICA8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgZmlsbD0ibm9uZSIgdmlld0JveD0iMCAwIDQwIDQwIiBjbGFzcz0iZGVzaWduLWljb25mb250Ij4KICAgIDxyZWN0IG9wYWNpdHk9Ii4zIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHJ4PSIyMCIgZmlsbD0iI2ZmZiIgLz4KICAgIDxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIgogICAgICBkPSJNMjAgMTEuNUMxOC4wNjk3IDExLjUgMTYuNSAxMi45Njc4IDE2LjUgMTQuNzcyN1YxOS42ODE4QzE2LjUgMjAuMjYyMyAxNi42NjIzIDIwLjgwNzggMTYuOTQ2OCAyMS4yODFMMjMuNDk5NyAxNC43MjgxQzIzLjQ3NDEgMTIuOTQzNyAyMS45MTQzIDExLjUgMjAgMTEuNVpNMjMuNSAxOC45NzA0TDE5LjU0MzYgMjIuOTI2OUMxOS42OTMgMjIuOTQ1MSAxOS44NDUzIDIyLjk1NDUgMjAgMjIuOTU0NUMyMS45MzAzIDIyLjk1NDUgMjMuNSAyMS40ODY3IDIzLjUgMTkuNjgxOFYxOC45NzA0Wk0xNS43MzIxIDIyLjQ5NTdDMTUuMTIwNyAyMS43NDUyIDE0Ljc1IDIwLjg3MjcgMTQuNzUgMjAuMDE3MVYxOC44NjM2TDE0Ljc0MzIgMTguNzYxQzE0LjY4OTIgMTguMzU3NSAxNC4zMjExIDE4LjA0NTQgMTMuODc1IDE4LjA0NTRDMTMuMzkxOCAxOC4wNDU0IDEzIDE4LjQxMTcgMTMgMTguODYzNlYyMC4wMTcxTDEzLjAwNDcgMjAuMjIxNUMxMy4wNjExIDIxLjQ2NDcgMTMuNjI4NCAyMi42ODgzIDE0LjUyNDUgMjMuNzAzM0wxNS43MzIxIDIyLjQ5NTdaTTE2Ljk0ODIgMjUuNTIyMkwxOC4yMDk0IDI0LjI2MUMxOC43Nzc3IDI0LjQ3MTUgMTkuMzgzNCAyNC41OTA5IDIwIDI0LjU5MDlDMjIuNjU4OSAyNC41OTA5IDI1LjExMzggMjIuMzcxNiAyNS4yNDQ1IDIwLjE5ODFMMjUuMjUgMjAuMDE3MVYxOC44ODExQzI1LjI1IDE4LjQyOTMgMjUuNjQxOCAxOC4wNjI5IDI2LjEyNSAxOC4wNjI5QzI2LjU3MTEgMTguMDYyOSAyNi45MzkyIDE4LjM3NTEgMjYuOTkzMiAxOC43Nzg1TDI3IDE4Ljg4MTFWMjAuMDE3MUMyNyAyMy4xNTE4IDIzLjY5NzYgMjYuMjI3MiAyMCAyNi4yMjcyQzE4LjkyNTYgMjYuMjI3MiAxNy44ODQ1IDI1Ljk2NzYgMTYuOTQ4MiAyNS41MjIyWk0xNi41IDI4LjY4MThDMTYuNSAyOC4yMjk0IDE2Ljg5MiAyNy44NjM2IDE3LjM3NSAyNy44NjM2SDIyLjYyNUMyMy4xMDg5IDI3Ljg2MzYgMjMuNSAyOC4yMjk0IDIzLjUgMjguNjgxOEMyMy41IDI5LjEzNDMgMjMuMTA4OSAyOS41IDIyLjYyNSAyOS41SDE3LjM3NUMxNi44OTIgMjkuNSAxNi41IDI5LjEzNDMgMTYuNSAyOC42ODE4WiIKICAgICAgZmlsbD0iI2ZmZiIgLz4KICAgIDxyZWN0IHg9IjI3LjI0OSIgeT0iMTEuNzY4OCIgd2lkdGg9IjEuNSIgaGVpZ2h0PSIyMiIgcng9Ii43NSIgdHJhbnNmb3JtPSJyb3RhdGUoNDUgMjcuMjQ5IDExLjc2ODgpIgogICAgICBmaWxsPSIjRkUzQzQ0IiAvPgogIDwvc3ZnPg==",kt=["src"],Ct=Object(o["defineComponent"])({__name:"Microphone",props:{isMobile:{type:Boolean,required:!0}},setup(e){const t=e,n=Object(o["ref"])([]),r=t.isMobile?"btn-operate-mobile":"btn-operate-desktop",a=Object(o["ref"])("");a.value=t.isMobile?yt:Ot,Object(o["watch"])(()=>{var e;return null==(e=n.value)?void 0:e.isAudioAvailable},()=>{s()},{deep:!0});const i=async()=>{var e;null!=(e=n.value)&&e.isAudioAvailable?await ee.closeMicrophone():await ee.openMicrophone()},s=async()=>{var e;null!=(e=n.value)&&e.isAudioAvailable?t.isMobile?a.value=yt:a.value=Ot:t.isMobile?a.value=bt:a.value=Mt};return Object(o["onMounted"])(()=>{Z.watch(O.CALL,{[S.LOCAL_USER_INFO]:e=>{n.value=e}})}),Object(o["onUnmounted"])(()=>{Z.unwatch(O.CALL,{[S.LOCAL_USER_INFO]:()=>{}})}),(e,t)=>(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{class:Object(o["normalizeClass"])(Object(o["unref"])(r))},[Object(o["createElementVNode"])("div",{class:"call-operate",onClick:i},[Object(o["createElementVNode"])("img",{src:a.value},null,8,kt)]),Object(o["createElementVNode"])("span",null,Object(o["toDisplayString"])(Object(o["unref"])(N)("microphone")),1)],2))}}),wt=se(Ct,[["__scopeId","data-v-d14af11d"]]),It="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAABoCAMAAAAqwkWTAAAA2FBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8lQWb3+Pnc4Oawusg8VXdJYYAtSGwpRGnT2eGRn7Lh5erBydRtgJlDXHw1T3IvSm7z9fft8PLl6O3X3OO2v8yptMOjr7+ap7iGlapne5VbcIxVa4h4iaB3iJ/L0tvK0drGzte5ws6bqLmWpLYxS27fH+7xAAAAInRSTlMABO3H0q5OyY4e4fsfjPXo59nYuLKjd2xlV0pIPi8qFxQLhSvRRQAAAuZJREFUaN601eeS2jAUBeCLbGMwvXdYjii7wLI92ZZk0t//jSIxTFiPkbGQ/P2S9YMzHK4vlNxk2C01HTdghQILXKdZ6g4nZNu44zEcwbzOmGzJDFoVxKi0BhkyNypVcVK1NCIzWR8J+VmDznouNLi9Mxvs16Cp1id9eQ9n8PK6rbXLOEu5rdVf0cHZnKLGrDEYYNmkteVgKJeovmkDxhpTOunChwX+xcmprsOKev5ETgBLgtikizqsqce0N/VhkT9VznUDVjVUU56DZTnFPoB1WTqiyGAdK1JExkEKnOjP1EYq2pE3tYxUlPMU5iElHoX0kZp+aBJqSE0tQwc9pKhHBy5S5GrvBPP94CNVPu2NoGWxXG6hZXTO1p5945xfQktpP9tVJDe/5BJC1pufiFPNkDRAcosrHg2arzhfIM6ApBYAjdqiQc/i4mqNGC2SKnq1RYOe7sXN8hFqFRLGurVJCPnMha8FqI2JqKNbm4SwDRdeoNYhIk+jNlUQ3mV5s/g/C5a4tmjQp5c5dh7/istXKDGiCY7bLnmMfc6Kr34cyrt7gNKEhjhuyU8HvcpPf4L0cCfOz1AaUhfH8QRB65WcNuz8Ecd3KHUpZxCE31z4BWku39pZzLprmgTh5rBhb8VxC5UmOUZB17K8NaQ3cXqDikOuQdD+K23+r4cbqLgUmAUtxMMXSN93J5WAmFnQtXi4/XBSYVQwC5qJh/sPJ5XCv2rtHQdAEIiiqIkNjUuwsdFluP9VaaxMbBwgx5HKjoQg8z6XbcSOjl0Gdr3ZD8ueIPaosjHBBh8b5UqcMLkVEJB7k4BkkliJ/Kht2WttCzNi1loO0/kdO751Ca2p0v5vYfuPAo2RRTQqdGIxGgsGVdSpwlsWR6uAnVUGqgRRtY4qqlj1psrE7+vR8+qRwvfaqVuFnaWU74UZZAInOqAg+eCWNlwnJ4BUi1TlhsQc9natubwB+cr8HzRRwJZPfLTc8dESwkcPSwpvc/EgQfkAAAAASUVORK5CYII=",St="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAABoCAMAAAAqwkWTAAAAdVBMVEUAAAD////////////////////////////////////////////////////////////////////////////////////////////////////////Hztf9/f7V2uH29/nt7/LR197O1NzL0trK0dnd4efz9ffY3eNuFy3tAAAAGnRSTlMAyO2wjR4E59nSTkks3/n1uKN3bGVXPhcUC/2+zKoAAAJVSURBVGjetNXXcsIwEIXhVUFumF6PCJD6/o+YxDMZTRKjspa+K674R+u1TPGOh51WounlYiH7Rii9Oxwpt/lWSYyQajunXEy3ruBRrTuT4yy6QlClp56rFYgkWuLbN0jQ7Imnq5Go7ijdTIFBzSiN2SzBstyYpOMIsImEQ7USE8g2dmwaE+mo8Z1XmGx1pqCTQAbiFFyDGlnUs0CnRya9t3SqkU3tmd5ZICPxcCPMClmtDI3TyEzTqBbZtaMLJ5GdHFk9I1CAMPTXBkVs/g1uiSKWf4enUIiiXzoU0/0K1SimJnL2KGhPToOCGvadwL8fBIoSP505ktyen29IMufc2pc3a+0dSTQNTIV417v9hiSVSX5Zb682NeRe2jWc8NhYofUQquCExsYMVW7n4sbGCLm928IJjI0f2roPRHhsvJD7WEhEj40fkkTHh++/9UCqIx0wznV8oevFPcQrPA60wzgbE3p/ebr8dJ5efKUdaW5o6Fj7XRo61vpKmtSE0Ie1Q2nofPnwrZ1gh4a/H0rux0OCGnbIlcIdNNSzQ670GuygJ8kOuVK4A0kLXsiV7jEdLD6rtYMbgEEYCIKfVJEX9N8kNWCs4UgDkSKCfbfLXsQ+HTsM7HizH5ZdQexSZWOCDT42ytVywtYttkCylVgt+Sy2sCDGomU1LM9/6/mK8X8U4r8pNFhFo0onVqOpYpBVnaq8ZXW0KtgZMlAQRGEdBaoYelMw8T4e7QW+GQi7D8rnaAY94kSWCnIstyTqOgcCUq5SVZHE8rW3HZHvHTWxS7Zk+ugC7XReZgJ+kWsAAAAASUVORK5CYII=",Tt={class:"btn-operate-mobile"},Et=["src"],jt=Object(o["defineComponent"])({__name:"Speaker",setup(e){const t=Object(o["ref"])(It),n=Object(o["ref"])(!0),r=()=>{n.value?i():a()},a=async()=>{t.value=It,n.value=!0},i=async()=>{t.value=St,n.value=!1};return(e,n)=>(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",Tt,[Object(o["createElementVNode"])("div",{class:"call-operate",onClick:r},[Object(o["createElementVNode"])("img",{src:t.value},null,8,Et)]),Object(o["createElementVNode"])("span",null,Object(o["toDisplayString"])(Object(o["unref"])(N)("speaker")),1)]))}}),Dt=se(jt,[["__scopeId","data-v-c20ae8b3"]]),Lt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAABoCAMAAAAqwkWTAAAAkFBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////8lQWaDk6g8VXb19/hxg5v6+/zo6+/f4+nb3+bBydSqtcNofJVJYYA2UHIwSm4nQ2ju8PO3wMxec47Fc9FRAAAAHHRSTlMAS+0eBOfZ0snGrowV3/n1uLKjjndsZVc+LyoLFK3R0wAAAtFJREFUaN6014luqzAQheGxw75k33uA0DZL0zR9/7e7cqVWKOSaMdjfA/DDeCQL4su263QWh7kcj2UexrN0vc3Itv0qkXhCJqs92eKJuQ8Nfy48Gm6X+ujkpzsaRkRgigT1twlhINxQPyKAoUCQuVGCHpIRmfGWE/QyWXpGnxOjt3hEbEJiACm4Y1tgoAVrfC9TDDZ9oU5ZBAuirHMNAlgRjDo6OSzJtaUsgDVBptmDCBZF/90Ibwqrph49t4BlC3pKwDrxdOEkrJMjavFiOBC3j2kJJ5atwU3gxORxeAkcSbQb527zAjgTUMMGDm0aoRAOhZoTcnVKEZyKfjs78NyLB3fw/P4BpGD5uj6Grl9gSemH54OlLlpqsPgeKYI9uLa7yTrMTQdnPrw5KT5/cH2H56vOHjpvdVUwVPUbdPZEtNJ2rgXTVVtadV0QdcFWd10WEhoVP1RBQxJl0Gk/rjy9Hw7vp7L9CtDJaGsSqs74c65MQltaG4QuBzQcLgahNaX8UIkHJT+U0owdukA5lh+fnx/lEcqFHZpRzA1Vam6v5a34cStf1fQqbiimkBs6q8538edblc7cUEg5M1QBQNk6sooZykkyQyWA460Zuh1VmhmSNGaGTo2nNtonZmj8r1ozxmEQhqGoYUE0MIBURCt3Y0Hc/36VB4ZMhJK8mlzAUuTE3/+/5EKLqq5xoVVVl9RCyVdnPbfFhTbru+Sr65lCvTTM1TXSMs3QysC09yCBebBBJuYLmmRmPtVZOmZMdCI1Mfhqk1vEKH+YgCTEydMkMSG33kci/3PiHIl8GcsXGsVOVV4SV/tqWUrkx6ulhNJrS9jX/9KL2IsyNDCLhjKdMBuNMgYxq5MybzE7mjLYsciACkGoWIcKqrDojQoT/x+P5g18fUTY+UJ5P5hBHnDCFwpyGW7xiOtcAJD8IlW/QGL+sbczIN990MRcsCWGj34B+Zek3m5aKggAAAAASUVORK5CYII=",At="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAABoCAMAAAAqwkWTAAAAeFBMVEUAAAD////////////////////+/v/////////////////////////////////////////////////////////////////////////////////////////Hztfs7/LM09v19vjg5On4+fvw8vTc4Ob29/nY3ePR197iGM+VAAAAHHRSTlMAyLCNHgT77OfSTkkV3/Xu2di4o3dsZVc+LyoL33XkRAAAAxRJREFUaN7VmumSqjAQRhNQFgX3fT7MsPr+b3ida5VTQ67pjgQuc/5a5TGh7YTuFnyS08H3ZJyGQRCmsfT8wykRrrnsvRDQCb39xZlkOt9GMBBt51MHmrMfgSTyzx01MwkmctZBc4xhQXx8UzNfwZLVXNgz8fAG3sQ20nYLvMViN7VajsTbSItFzZbowHLG3TYfHfFZ2/exQWc2H7QnkXCATMgwWMMJ6wnhSeGI1GhK1nDGOjHEgYRD5MfLuN7AKZtXUe7DMf6LfADnzP4ZcEs4ZznRPVOJHpD6Y9qhF3baxi3QC4v25nnoCa91P0Bv/LxHrNAbqx/3KvTIUXwTo0diMie4zw8SvSKf93jwuGYtruBxtsvagWqLVIAHxTVgZPFpBBZVplE9l6pMpuiR8ebsjdO5Pj+50n/aLXfjdNTn8xcUMLD9K4rAoTJ4yLiIvjwXmCgqbSW0R+dyF+2NHpW58GBPHRAV2/NZUYdFCAOK7VEKBkIhEpjQvz8va6Ao87Yny2AiEScbkfp+GG0PITqJg4WoCQwes+ggfL4oh8FDiHzhsUUNvqjzm9KeDy3yiLNIS9V5lukehkgSp3g7fzYvPKQoFilTpIj1EKJUhExRDqDWPHc1TxSKgCkqAeSaByVTFLBFNYCb5kHBFbG3Dnfazwd32FuXWojacWAhStnhXej54PaID2Z4S24w6HkntwgGyU5BuZ7faovw9rhJVf+fPtSKKfKJY8LgaR5LZIoOxMFHrCdQXNGJc5Trnlte45FjuaKEuJyY71V5xhWF1HXL5AmajC3yqAukwXNVGV+0p67E+vPJywKoy7ylIUQX6pJvOOdsRBH52kJ4uKIt+SJm4VF4zZx8teR7sop8tRS+C48q6JLnubtHVQYPznRBo3x6OiAZJZrGgQczRtGpcuCJOWW0oGpKdOQ4VGFwsFLnUMXbwcrRQxXYB2sZDNUEGbCtM3yjavjWm/tm4v9vj7pt+I6jhe2uKT+eMQM3gxPjGgXpPNwyxnGdDgNI4x2pemdIbPxjbzaDfL9nNNHVsOVg46N/AFdMocBqUNAVAAAAAElFTkSuQmCC",Nt="data:image/svg+xml;base64,IDxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBmaWxsPSJub25lIiB2aWV3Qm94PSIwIDAgNDAgNDAiIGNsYXNzPSJkZXNpZ24taWNvbmZvbnQiPgogICAgPHJlY3Qgd2lkdGg9IjQwIiBoZWlnaHQ9IjQwIiByeD0iMjAiIGZpbGw9IiNEQURBREEiIGZpbGwtb3BhY2l0eT0iLjMiIC8+CiAgICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIKICAgICAgZD0iTTI0LjAxNjQgMTQuNTM5NUMyMy44NDk4IDEzLjcxNDEgMjMuMzE4MiAxMy4wODg0IDIyLjY1NTYgMTIuOTM5QzIxLjU1NTMgMTIuNzM5MiAyMC4xODk1IDEyLjUgMTcuNDA5MSAxMi41QzE0LjM2NzYgMTIuNSAxMy4wOTIgMTIuNzI2IDEyLjA4MTggMTIuOTEyN0MxMS40NTcxIDEzLjA5NTcgMTAuOTY0NyAxMy43MDI0IDEwLjgwMzMgMTQuNDg4NEMxMC42NTg1IDE1LjQ3MjEgMTAuNSAxNy45MzM1IDEwLjUgMjBDMTAuNSAyMi4wMzE1IDEwLjY1MzUgMjQuNDc2OSAxMC44MDE4IDI1LjQ2MDVDMTAuOTY4NCAyNi4yODU5IDExLjUgMjYuOTExNiAxMi4xNjI1IDI3LjA2MUMxMy4yNjI5IDI3LjI2MDggMTQuNjI4NyAyNy41IDE3LjQwOTEgMjcuNUMyMC4xODk1IDI3LjUgMjEuNTU1MyAyNy4yNjA4IDIyLjY1NzEgMjcuMDcxMkMyMy4zMjI1IDI2LjkyMTggMjMuODU3OCAyNi4yOTI1IDI0LjAyNTggMjUuNDYzNEMyNC4xNjQ3IDI0LjQ3NjkgMjQuMzE4MiAyMi4wMzE1IDI0LjMxODIgMjBDMjQuMzE4MiAxNy45Njg1IDI0LjE2NDcgMTUuNTIzMSAyNC4wMTY0IDE0LjUzOTVaTTEyLjIyNzMgMTUuMjA4M0MxMi4yMjczIDE0Ljc0ODEgMTIuNjAwNCAxNC4zNzUgMTMuMDYwNiAxNC4zNzVIMTMuOTg0OEMxNC40NDUxIDE0LjM3NSAxNC44MTgyIDE0Ljc0ODEgMTQuODE4MiAxNS4yMDgzVjE1LjQxNjdDMTQuODE4MiAxNS44NzY5IDE0LjQ0NTEgMTYuMjUgMTMuOTg0OCAxNi4yNUgxMy4wNjA2QzEyLjYwMDQgMTYuMjUgMTIuMjI3MyAxNS44NzY5IDEyLjIyNzMgMTUuNDE2N1YxNS4yMDgzWk0yOC42MzY0IDE0LjM3NUMyNy4xNzk0IDE0LjM3NSAyNi4wNDU1IDE2LjQ5MDQgMjYuMDQ1NSAxNy43MjMyVjIyLjI3NjhDMjYuMDQ1NSAyMy43Mjc5IDI2Ljg3NTQgMjUuNjI1IDI4LjYzNjQgMjUuNjI1QzI5LjQ1MDggMjUuNjI1IDI5LjUgMjIuMDA4OSAyOS41IDIwQzI5LjUgMTcuOTkxMSAyOS41IDE0LjM3NSAyOC42MzY0IDE0LjM3NVoiCiAgICAgIGZpbGw9IiNmZmYiIC8+CiAgPC9zdmc+",xt="data:image/svg+xml;base64,ICA8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgZmlsbD0ibm9uZSIgdmlld0JveD0iMCAwIDQwIDQwIiBjbGFzcz0iZGVzaWduLWljb25mb250Ij4KICAgIDxyZWN0IHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgcng9IjIwIiBmaWxsPSIjREFEQURBIiBmaWxsLW9wYWNpdHk9Ii4zIiAvPgogICAgPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0yMi43MjIxIDEyLjk1NTdDMjIuNzAwMSAxMi45NDk2IDIyLjY3NzkgMTIuOTQ0IDIyLjY1NTYgMTIuOTM5QzIxLjU1NTMgMTIuNzM5MiAyMC4xODk1IDEyLjUgMTcuNDA5MSAxMi41QzE0LjM2NzYgMTIuNSAxMy4wOTIgMTIuNzI2IDEyLjA4MTggMTIuOTEyN0MxMS40NTcxIDEzLjA5NTcgMTAuOTY0NyAxMy43MDI0IDEwLjgwMzMgMTQuNDg4NEMxMC42NTg1IDE1LjQ3MjEgMTAuNSAxNy45MzM1IDEwLjUgMjBDMTAuNSAyMS43MzQzIDEwLjYxMTggMjMuNzcwMyAxMC43MzY5IDI0Ljk0MDlMMjIuNzIyMSAxMi45NTU3Wk0xMi43NTUgMjcuMTY1NEMxMy43NzA0IDI3LjMzNTUgMTUuMTAzMyAyNy41IDE3LjQwOTEgMjcuNUMyMC4xNjU4IDI3LjUgMjEuNTMxOSAyNy4yNjQ5IDIyLjYyODkgMjcuMDc2MUwyMi42NTcxIDI3LjA3MTJDMjMuMzIyNSAyNi45MjE4IDIzLjg1NzggMjYuMjkyNSAyNC4wMjU4IDI1LjQ2MzRDMjQuMTY0NyAyNC40NzY5IDI0LjMxODIgMjIuMDMxNSAyNC4zMTgyIDIwQzI0LjMxODIgMTguNTc5NyAyNC4yNDMyIDE2Ljk1NyAyNC4xNDczIDE1Ljc3M0wxMi43NTUgMjcuMTY1NFpNMTMuMDYwNiAxNC4zNzVDMTIuNjAwNCAxNC4zNzUgMTIuMjI3MyAxNC43NDgxIDEyLjIyNzMgMTUuMjA4M1YxNS40MTY3QzEyLjIyNzMgMTUuODc2OSAxMi42MDA0IDE2LjI1IDEzLjA2MDYgMTYuMjVIMTMuOTg0OEMxNC40NDUxIDE2LjI1IDE0LjgxODIgMTUuODc2OSAxNC44MTgyIDE1LjQxNjdWMTUuMjA4M0MxNC44MTgyIDE0Ljc0ODEgMTQuNDQ1MSAxNC4zNzUgMTMuOTg0OCAxNC4zNzVIMTMuMDYwNlpNMjYuMDQ1NSAxNy43MjMyQzI2LjA0NTUgMTYuNDkwNCAyNy4xNzk0IDE0LjM3NSAyOC42MzY0IDE0LjM3NUMyOS41IDE0LjM3NSAyOS41IDE3Ljk5MTEgMjkuNSAyMEMyOS41IDIyLjAwODkgMjkuNDUwOCAyNS42MjUgMjguNjM2NCAyNS42MjVDMjYuODc1NCAyNS42MjUgMjYuMDQ1NSAyMy43Mjc5IDI2LjA0NTUgMjIuMjc2OFYxNy43MjMyWiIgZmlsbD0iI2ZmZiIgLz4KICAgIDxyZWN0IHg9IjI0Ljg1NzQiIHk9IjExLjg1NjQiIHdpZHRoPSIxLjUiIGhlaWdodD0iMjIiIHJ4PSIuNzUiIHRyYW5zZm9ybT0icm90YXRlKDQ1IDI0Ljg1NzQgMTEuODU2NCkiIGZpbGw9IiNGRTNDNDQiIC8+CiAgPC9zdmc+",Rt={class:"call-operate"},Pt=["src"],Ut=Object(o["defineComponent"])({__name:"Camera",props:{isMobile:{type:Boolean,required:!0}},setup(e){const t=e,n=t.isMobile?"btn-operate-mobile":"btn-operate-desktop",r=Object(o["ref"])(""),a=Object(o["ref"])([]);r.value=t.isMobile?Lt:Nt,Object(o["watch"])(()=>{var e;return null==(e=a.value)?void 0:e.isVideoAvailable},()=>{s()},{deep:!0});const i=async()=>{var e;null!=(e=a.value)&&e.isVideoAvailable?await ee.closeCamera():await ee.openCamera("localVideo")},s=async()=>{var e;null!=(e=a.value)&&e.isVideoAvailable?t.isMobile?r.value=Lt:r.value=Nt:t.isMobile?r.value=At:r.value=xt};return Object(o["onMounted"])(()=>{Z.watch(O.CALL,{[S.LOCAL_USER_INFO]:e=>{a.value=e}})}),Object(o["onUnmounted"])(()=>{Z.unwatch(O.CALL,{[S.LOCAL_USER_INFO]:()=>{}})}),(e,t)=>(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{class:Object(o["normalizeClass"])(Object(o["unref"])(n)),onClick:i},[Object(o["createElementVNode"])("div",Rt,[Object(o["createElementVNode"])("img",{src:r.value},null,8,Pt)]),Object(o["createElementVNode"])("span",null,Object(o["toDisplayString"])(Object(o["unref"])(N)("camera")),1)],2))}}),Vt=se(Ut,[["__scopeId","data-v-9e11a5bd"]]),Bt={class:"text"},Ft=Object(o["defineComponent"])({__name:"Timer",props:{callDuration:{type:String,required:!0}},setup(e){return(t,n)=>(Object(o["openBlock"])(),Object(o["createElementBlock"])("span",Bt,Object(o["toDisplayString"])(e.callDuration),1))}}),Gt=se(Ft,[["__scopeId","data-v-da96c01e"]]),zt={key:0,class:"btn-operate"},Ht={class:"btn-operate"},Yt={class:"btn-operate"},qt={key:0,class:"btn-operate"},Wt={key:1,class:"btn-operate"},Kt={class:"btn-operate"},$t={key:2,class:"control-wrapper-desktop"},Jt={class:"panel-button-area"},Qt={key:3,class:"control-wrapper-desktop"},Xt={class:"panel-button-area"},Zt=Object(o["defineComponent"])({__name:"BtnOperate",setup(e){const t=Object(o["ref"])(Z.getData(O.CALL,S.CALL_ROLE)),n=Object(o["ref"])(Z.getData(O.CALL,S.CALL_MEDIA_TYPE)),r=Object(o["ref"])(Z.getData(O.CALL,S.CALL_STATUS)),a=Object(o["ref"])(Z.getData(O.CALL,S.IS_GROUP)),i=Object(o["ref"])(Z.getData(O.CALL,S.CALL_DURATION)),s=Object(o["ref"])(Z.getData(O.CALL,S.IS_CLICKABLE)),c=!X.isPC,l=X.isH5;let u=t.value===M.CALLER;const d=Object(o["ref"])(n.value===y.AUDIO?"black":"white");return Object(o["onMounted"])(()=>{Z.watch(O.CALL,{[S.CALL_ROLE]:e=>{u=e===M.CALLER,t.value=e},[S.IS_GROUP]:e=>{a.value=e},[S.CALL_MEDIA_TYPE]:e=>{n.value=e,d.value=n.value===y.AUDIO?"black":"white"},[S.CALL_STATUS]:e=>{r.value=e},[S.CALL_DURATION]:e=>{i.value=e},[S.IS_CLICKABLE]:e=>{s.value=e}})}),Object(o["onUnmounted"])(()=>{Z.unwatch(O.CALL,{[S.CALL_ROLE]:()=>{},[S.IS_GROUP]:()=>{},[S.CALL_MEDIA_TYPE]:()=>{},[S.CALL_STATUS]:()=>{},[S.CALL_DURATION]:()=>{},[S.IS_CLICKABLE]:()=>{}})}),(e,t)=>(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",null,[r.value===Object(o["unref"])(b).CALLING&&c?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{key:0,class:Object(o["normalizeClass"])(["control-wrapper-mobile",d.value])},[n.value===Object(o["unref"])(y).VIDEO&&Object(o["unref"])(u)&&!Object(o["unref"])(l)?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",zt,[Object(o["createVNode"])(pt,{class:"mobile-switchAudioCall","is-mobile":c})])):Object(o["createCommentVNode"])("",!0),Object(o["createElementVNode"])("div",Ht,[Object(o["unref"])(u)?Object(o["createCommentVNode"])("",!0):(Object(o["openBlock"])(),Object(o["createBlock"])(it,{key:0,class:"mobile-reject","is-mobile":c})),Object(o["unref"])(u)?(Object(o["openBlock"])(),Object(o["createBlock"])($e,{key:1,isGroupCall:a.value,callType:n.value,"is-mobile":c,isClickable:s.value},null,8,["isGroupCall","callType","isClickable"])):Object(o["createCommentVNode"])("",!0),n.value===Object(o["unref"])(y).VIDEO&&Object(o["unref"])(u)&&!Object(o["unref"])(l)?(Object(o["openBlock"])(),Object(o["createBlock"])(_t,{key:2})):Object(o["createCommentVNode"])("",!0),Object(o["unref"])(u)?Object(o["createCommentVNode"])("",!0):(Object(o["openBlock"])(),Object(o["createBlock"])(nt,{key:3,class:"mobile-accept","is-mobile":c,"call-type":n.value},null,8,["call-type"]))])],2)):Object(o["createCommentVNode"])("",!0),r.value===Object(o["unref"])(b).CONNECTED&&c?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{key:1,class:Object(o["normalizeClass"])(["control-wrapper-mobile",d.value])},[Object(o["createElementVNode"])("div",Yt,[Object(o["createVNode"])(Gt,{"call-duration":i.value},null,8,["call-duration"])]),n.value===Object(o["unref"])(y).VIDEO?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",qt,[Object(o["createVNode"])(pt,{class:"mobile-switchAudioCall","is-mobile":c})])):Object(o["createCommentVNode"])("",!0),n.value===Object(o["unref"])(y).VIDEO?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",Wt,[Object(o["createVNode"])(wt,{"is-mobile":c}),Object(o["unref"])(l)?Object(o["createCommentVNode"])("",!0):(Object(o["openBlock"])(),Object(o["createBlock"])(Dt,{key:0})),Object(o["createVNode"])(Vt,{"is-mobile":c})])):Object(o["createCommentVNode"])("",!0),Object(o["createElementVNode"])("div",Kt,[n.value===Object(o["unref"])(y).AUDIO?(Object(o["openBlock"])(),Object(o["createBlock"])(wt,{key:0,"is-mobile":c})):Object(o["createCommentVNode"])("",!0),Object(o["createVNode"])($e,{"is-mobile":c,isGroupCall:a.value,callType:n.value,isClickable:s.value},null,8,["isGroupCall","callType","isClickable"]),n.value!==Object(o["unref"])(y).VIDEO||Object(o["unref"])(l)?Object(o["createCommentVNode"])("",!0):(Object(o["openBlock"])(),Object(o["createBlock"])(_t,{key:1})),n.value!==Object(o["unref"])(y).AUDIO||Object(o["unref"])(l)?Object(o["createCommentVNode"])("",!0):(Object(o["openBlock"])(),Object(o["createBlock"])(Dt,{key:2}))])],2)):Object(o["createCommentVNode"])("",!0),r.value!==Object(o["unref"])(b).CALLING||c?Object(o["createCommentVNode"])("",!0):(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",$t,[Object(o["createElementVNode"])("div",Jt,[n.value===Object(o["unref"])(y).VIDEO?(Object(o["openBlock"])(),Object(o["createBlock"])(Vt,{key:0,"is-mobile":c})):Object(o["createCommentVNode"])("",!0),Object(o["unref"])(u)?(Object(o["openBlock"])(),Object(o["createBlock"])(wt,{key:1,"is-mobile":c})):Object(o["createCommentVNode"])("",!0),Object(o["unref"])(u)?Object(o["createCommentVNode"])("",!0):(Object(o["openBlock"])(),Object(o["createBlock"])(it,{key:2,"is-mobile":c})),Object(o["unref"])(u)?Object(o["createCommentVNode"])("",!0):(Object(o["openBlock"])(),Object(o["createBlock"])(nt,{key:3,"is-mobile":c,"call-type":n.value},null,8,["call-type"])),Object(o["unref"])(u)?(Object(o["openBlock"])(),Object(o["createBlock"])($e,{key:4,isGroupCall:a.value,callType:n.value,"is-mobile":c,isClickable:s.value},null,8,["isGroupCall","callType","isClickable"])):Object(o["createCommentVNode"])("",!0)])])),r.value!==Object(o["unref"])(b).CONNECTED||c?Object(o["createCommentVNode"])("",!0):(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",Qt,[Object(o["createElementVNode"])("div",Xt,[n.value===Object(o["unref"])(y).VIDEO?(Object(o["openBlock"])(),Object(o["createBlock"])(Vt,{key:0,"is-mobile":c})):Object(o["createCommentVNode"])("",!0),Object(o["createVNode"])(wt,{"is-mobile":c}),n.value===Object(o["unref"])(y).VIDEO?(Object(o["openBlock"])(),Object(o["createBlock"])(pt,{key:1,"is-mobile":c})):Object(o["createCommentVNode"])("",!0),Object(o["createVNode"])($e,{"is-mobile":c,isGroupCall:a.value,callType:n.value,isClickable:s.value},null,8,["isGroupCall","callType","isClickable"])])]))]))}}),en=se(Zt,[["__scopeId","data-v-3e20fe82"]]),tn="data:image/svg+xml;base64,ICA8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgZmlsbD0ibm9uZSIgdmlld0JveD0iMCAwIDE2IDE2IiBjbGFzcz0iZGVzaWduLWljb25mb250Ij4KICAgICAgICA8cGF0aAogICAgICAgICAgICBkPSJNMTMuNzMzIDYuOTk5OTZDMTMuNzk5NyA2Ljk5OTk2IDEzLjkzMyA2Ljk5OTk2IDEzLjk5OTcgNi45MzMyOUMxNC4xMzMgNi44NjY2MyAxNC4yNjYzIDYuNzMzMjkgMTQuMzMzIDYuNTk5OTZDMTQuMzk5NyA2LjQ2NjYzIDE0LjM5OTcgNi4yNjY2MyAxNC4zMzMgNi4wNjY2M0MxNC4yNjYzIDUuOTk5OTYgMTQuMjY2MyA1LjkzMzI5IDE0LjE5OTcgNS44NjY2M0wxMC4xOTk3IDEuODY2NjNDOS45MzMwMSAxLjU5OTk2IDkuNTMzMDEgMS41OTk5NiA5LjI2NjM0IDEuODY2NjNDOC45OTk2NyAyLjEzMzI5IDguOTk5NjcgMi41MzMyOSA5LjI2NjM0IDIuNzk5OTZMMTIuMTMzIDUuNjY2NjNIMS45OTk2N0MxLjU5OTY3IDUuNjY2NjMgMS4zMzMwMSA1LjkzMzI5IDEuMzMzMDEgNi4zMzMyOUMxLjMzMzAxIDYuNzMzMjkgMS41OTk2NyA2Ljk5OTk2IDEuOTk5NjcgNi45OTk5NkgxMy43MzNaTTEzLjk5OTcgOC45OTk5NkgyLjI2NjM0QzIuMTk5NjcgOC45OTk5NiAyLjA2NjM0IDguOTk5OTYgMS45OTk2NyA5LjA2NjYzQzEuODY2MzQgOS4xMzMyOSAxLjczMzAxIDkuMjY2NjMgMS42NjYzNCA5LjM5OTk2QzEuNTk5NjcgOS41MzMyOSAxLjU5OTY3IDkuNzMzMjkgMS42NjYzNCA5LjkzMzI5QzEuNzMzMDEgOS45OTk5NiAxLjczMzAxIDEwLjA2NjYgMS43OTk2NyAxMC4xMzMzTDUuNzk5NjcgMTQuMTMzM0M1LjkzMzAxIDE0LjI2NjYgNi4xMzMwMSAxNC4zMzMzIDYuMjY2MzQgMTQuMzMzM0M2LjM5OTY3IDE0LjMzMzMgNi41OTk2NyAxNC4yNjY2IDYuNzMzMDEgMTQuMTMzM0M2Ljk5OTY3IDEzLjg2NjYgNi45OTk2NyAxMy40NjY2IDYuNzMzMDEgMTMuMkwzLjg2NjM0IDEwLjMzMzNIMTMuOTk5N0MxNC4zOTk3IDEwLjMzMzMgMTQuNjY2MyAxMC4wNjY2IDE0LjY2NjMgOS42NjY2M0MxNC42NjYzIDkuMjY2NjMgMTQuMzk5NyA4Ljk5OTk2IDEzLjk5OTcgOC45OTk5NloiCiAgICAgICAgICAgIGZpbGw9IiNmZmYiIC8+CiAgICA8L3N2Zz4=",nn={class:"streamBox"},rn={key:0,class:"streamBox-mobile"},on=["id"],an={key:1,class:"streamBox-deskTop"},sn={key:0,class:"tag"},cn={class:"microphone-icon-container"},ln=["id"],un={class:"tag"},dn={class:"microphone-icon-container"},pn={class:"screenImg"},fn=["src"],hn=Object(o["defineComponent"])({__name:"PusherPlayer",setup(e){const t=Object(o["ref"])(Z.getData(O.CALL,S.CALL_MEDIA_TYPE)),n=Object(o["ref"])(Z.getData(O.CALL,S.CALL_STATUS)),r=Object(o["ref"])("small"),a=Object(o["ref"])("large"),i=Object(o["ref"])([]),s=Object(o["ref"])([]),c=Object(o["ref"])(!1),l=!X.isPC;Object(o["onMounted"])(()=>{Z.watch(O.CALL,{[S.LOCAL_USER_INFO]:e=>{s.value=e},[S.REMOTE_USER_INFO_LIST]:e=>{i.value=e},[S.CALL_STATUS]:e=>{n.value=e},[S.CALL_MEDIA_TYPE]:e=>{t.value=e}}),u()}),Object(o["onUnmounted"])(()=>{Z.unwatch(O.CALL,{[S.LOCAL_USER_INFO]:()=>{},[S.REMOTE_USER_INFO_LIST]:()=>{},[S.CALL_STATUS]:()=>{},[S.CALL_MEDIA_TYPE]:()=>{}})});const u=async()=>{[r.value,a.value]=[a.value,r.value],await Object(o["nextTick"])();const e=document.getElementsByClassName("large")[0],t=document.getElementsByClassName("small")[0];e.className="localVideo",t&&(l?(c.value=!0,t.className="remoteList"):t.className="remoteList-desk")};return(e,c)=>{var d,p,f,h,m,v,g,_;return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",nn,[l?Object(o["withDirectives"])((Object(o["openBlock"])(),Object(o["createElementBlock"])("div",rn,[Object(o["createElementVNode"])("div",{id:"localVideo",class:Object(o["normalizeClass"])(["localVideo",r.value]),onClick:c[0]||(c[0]=e=>n.value===Object(o["unref"])(b).CONNECTED?u():"")},null,2),0!==i.value.length?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{key:0,id:i.value[0].domId,class:Object(o["normalizeClass"])([a.value,"remoteList"]),onClick:c[1]||(c[1]=e=>n.value===Object(o["unref"])(b).CONNECTED?u():"")},null,10,on)):Object(o["createCommentVNode"])("",!0)],512)),[[o["vShow"],t.value===Object(o["unref"])(y).VIDEO]]):Object(o["createCommentVNode"])("",!0),l?Object(o["createCommentVNode"])("",!0):Object(o["withDirectives"])((Object(o["openBlock"])(),Object(o["createElementBlock"])("div",an,[Object(o["createElementVNode"])("div",{id:"localVideo",class:Object(o["normalizeClass"])(r.value)},[n.value===Object(o["unref"])(b).CONNECTED?(Object(o["openBlock"])(),Object(o["createElementBlock"])("span",sn,[Object(o["createElementVNode"])("div",cn,[null!=(d=s.value)&&d.isAudioAvailable?(Object(o["openBlock"])(),Object(o["createBlock"])(Ie,{key:0,volume:null==(p=s.value)?void 0:p.volume},null,8,["volume"])):(Object(o["openBlock"])(),Object(o["createBlock"])(Ae,{key:1}))]),Object(o["createTextVNode"])(" "+Object(o["toDisplayString"])(`${(null==(f=s.value)?void 0:f.nick)||(null==(h=s.value)?void 0:h.userId)} ${Object(o["unref"])(N)("me")}`),1)])):Object(o["createCommentVNode"])("",!0)],2),0!==i.value.length&&n.value===Object(o["unref"])(b).CONNECTED?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{key:0,class:Object(o["normalizeClass"])([a.value,"remoteList-desk"])},[Object(o["createElementVNode"])("div",{id:i.value[0].domId,class:"remoteListBox"},[Object(o["createElementVNode"])("span",un,[Object(o["createElementVNode"])("div",dn,[null!=(m=i.value[0])&&m.isAudioAvailable?(Object(o["openBlock"])(),Object(o["createBlock"])(Ie,{key:0,volume:null==(v=i.value[0])?void 0:v.volume},null,8,["volume"])):(Object(o["openBlock"])(),Object(o["createBlock"])(Ae,{key:1}))]),Object(o["createTextVNode"])(" "+Object(o["toDisplayString"])((null==(g=i.value[0])?void 0:g.nick)||(null==(_=i.value[0])?void 0:_.userId)),1)])],8,ln)],2)):Object(o["createCommentVNode"])("",!0),0!==i.value.length&&t.value===Object(o["unref"])(y).VIDEO&&i.value[0].isVideoAvailable?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{key:1,class:"switchScreen",onClick:u},[Object(o["createElementVNode"])("div",pn,[Object(o["createElementVNode"])("img",{src:Object(o["unref"])(tn)},null,8,fn)])])):Object(o["createCommentVNode"])("",!0)],512)),[[o["vShow"],t.value===Object(o["unref"])(y).VIDEO]])])}}}),mn=se(hn,[["__scopeId","data-v-ea64a17c"]]),vn="data:image/svg+xml;base64,IDxzdmcgd2lkdGg9IjI2IiBoZWlnaHQ9IjI2IiB2aWV3Qm94PSIwIDAgMjYgMjYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICAgICAgPHBhdGggZD0iTTE4LjQ0MzcgMTIuNDQ5QzE4LjQ0MzcgMTQuMTE0MiAxOC4yMzM2IDE1LjM1MTUgMjEuNTA4OSAxNS43MTI2QzI0Ljc4NzUgMTYuMDczNyAyNC4zNjY2IDEzLjY3OTQgMjQuMzY2MiAxMi4wNjY5QzI0LjM2NDkgMTAuMjA2MSAyMC4wNjAyIDcuNjE4OTUgMTMuMjcyNiA3LjYxNzNDNi40ODY2MiA3LjYxNzM1IDIuMTc4OSAxMC4yMDUgMi4xNzg4OCAxMi4wNjdDMi4xNzg4NyAxMy42OCAxLjc1NjIxIDE2LjA3MjYgNS4wMzMxNSAxNS43MTIzQzguMzEwMDkgMTUuMzUzNyA4LjEwMDA1IDE0LjExNTUgOC4wOTgzNyAxMi40NDk1QzguMTAxMzQgMTEuMjg2MiAxMC43NTg3IDExLjAzMTYgMTMuMjcyNSAxMS4wMjk4QzE1Ljc4NjMgMTEuMDI4MSAxOC40NDU0IDExLjI4NDQgMTguNDQzNyAxMi40NDlaIiBmaWxsPSIjRkUzQzQ0Ii8+CiAgICA8L3N2Zz4=",gn="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik02LjY2NjY2IDQuMTY2NjhDNi42NjY2NiAyLjMyODM0IDguMTYxNjYgMC44MzMzNDQgOS45OTk5OSAwLjgzMzM0NEMxMS44MzgzIDAuODMzMzQ0IDEzLjMzMzMgMi4zMjgzNCAxMy4zMzMzIDQuMTY2NjhWOS4xNjY2OEMxMy4zMzMzIDExLjAwNSAxMS44MzgzIDEyLjUgOS45OTk5OSAxMi41QzguMTYxNjYgMTIuNSA2LjY2NjY2IDExLjAwNSA2LjY2NjY2IDkuMTY2NjhWNC4xNjY2OFpNNi42NjY2NiAxOC4zMzMzQzYuNjY2NjYgMTcuODcyNSA3LjAzOTk5IDE3LjUgNy40OTk5OSAxNy41SDEyLjVDMTIuOTYwOCAxNy41IDEzLjMzMzMgMTcuODcyNSAxMy4zMzMzIDE4LjMzMzNDMTMuMzMzMyAxOC43OTQyIDEyLjk2MDggMTkuMTY2NyAxMi41IDE5LjE2NjdINy40OTk5OUM3LjAzOTk5IDE5LjE2NjcgNi42NjY2NiAxOC43OTQyIDYuNjY2NjYgMTguMzMzM1oiIGZpbGw9IiMxMDE0MTkiLz4KPHBhdGggZD0iTTE1LjgzMzMgOC4zNTEyVjkuNTA4MjVDMTUuODMzMyAxMi4wODEgMTMuMjIxNyAxNSA5Ljk5OTk5IDE1QzYuNzc4MzMgMTUgNC4xNjY2NiAxMi4wODEgNC4xNjY2NiA5LjUwODI1VjguMzMzMzQiIHN0cm9rZT0iIzEwMTQxOSIgc3Ryb2tlLXdpZHRoPSIxLjY2NjY3IiBzdHJva2UtbGluZWNhcD0icm91bmQiLz4KPC9zdmc+",_n="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAxNSAyMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC42MjQ3IDAuNzE5MTY4QzE0LjE5MzQgMC4zNzQxNTggMTMuNTY0MSAwLjQ0NDA4IDEzLjIxOTEgMC44NzUzNDJMMTAuODE2OCAzLjgzMjAzQzEwLjE3ODkgMy4wMjQ1NSA5LjE1Mzg3IDIuNTAwMDQgOC4wMDAwMSAyLjUwMDA0QzYuMDY5NzYgMi41MDAwNCA0LjUwMDAxIDMuOTY3ODUgNC41MDAwMSA1Ljc3Mjc2VjEwLjY4MTlDNC41MDAwMSAxMC45NTYzIDQuNTM2MyAxMS4yMjI5IDQuNjA0NjMgMTEuNDc3OEwzLjM4OCAxMi45NzUyQzIuOTg0NDkgMTIuMzQzMyAyLjc1MDAxIDExLjY1MjIgMi43NTAwMSAxMC45NzE3VjkuODE4MTlMMi43NDMxOSA5LjcxNTU2QzIuNjg5MiA5LjMxMjEzIDIuMzIxMDggOS4wMDAwMSAxLjg3NTAxIDkuMDAwMDFDMS4zOTE3NiA5LjAwMDAxIDEuMDAwMDEgOS4zNjYzMiAxLjAwMDAxIDkuODE4MTlWMTAuOTcxN0wxLjAwNDY2IDExLjE3NjFDMS4wNTU1NyAxMi4yOTY4IDEuNTIxNjEgMTMuNDAxNiAyLjI2OTM5IDE0LjM1MTlMMC4yMTkxMzcgMTYuODc1M0wwLjE0Njg2MSAxNi45NzgyQy0wLjExMjk3NyAxNy40MDE3IC0wLjAyMjc3NjcgMTcuOTYyNCAwLjM3NTMxMSAxOC4yODA5QzAuODA2NTczIDE4LjYyNTkgMS40MzU4NyAxOC41NTYgMS43ODA4OCAxOC4xMjQ3TDMuNzE2NjEgMTUuNzQyM0MzLjcxODQ5IDE1Ljc0MzcgMy43MjAzOCAxNS43NDUgMy43MjIyNyAxNS43NDY0TDQuMjk5NyAxNS4wMjQ2TDguMjgwODggMTAuMTI0N0wxNC43ODA5IDIuMTI0NzNMMTQuODUzMiAyLjAyMTkxQzE1LjExMyAxLjU5ODM0IDE1LjAyMjggMS4wMzc2NCAxNC42MjQ3IDAuNzE5MTY4Wk03LjcyNDk5IDEzLjk0NDZMMTEuNSA5LjIyNTgyVjEwLjY4MTlDMTEuNSAxMi40ODY4IDkuOTMwMjYgMTMuOTU0NiA4LjAwMDAxIDEzLjk1NDZDNy45MDc0NiAxMy45NTQ2IDcuODE1NzUgMTMuOTUxMiA3LjcyNDk5IDEzLjk0NDZaTTYuNjA0NDUgMTUuMzQ1M0w1LjUwNzk4IDE2LjcxNTlDNi4yOTIyNSAxNy4wMTM2IDcuMTM1MzIgMTcuMTgxOCA4LjAwMDAxIDE3LjE4MThDMTEuNjk3NiAxNy4xODE4IDE1IDE0LjEwNjQgMTUgMTAuOTcxN1Y5LjgzNTcyTDE0Ljk5MzIgOS43MzMwOUMxNC45MzkyIDkuMzI5NjYgMTQuNTcxMSA5LjAxNzU0IDE0LjEyNSA5LjAxNzU0QzEzLjY0MTggOS4wMTc1NCAxMy4yNSA5LjM4Mzg1IDEzLjI1IDkuODM1NzJWMTAuOTcxN0wxMy4yNDQ1IDExLjE1MjdDMTMuMTEzOCAxMy4zMjYyIDEwLjY1ODkgMTUuNTQ1NSA4LjAwMDAxIDE1LjU0NTVDNy41MjQyNCAxNS41NDU1IDcuMDU1MDEgMTUuNDc0NCA2LjYwNDQ1IDE1LjM0NTNaTTUuMzc1MDEgMTguODYzN0M0Ljg5MjAxIDE4Ljg2MzcgNC41MDAwMSAxOS4yMjk0IDQuNTAwMDEgMTkuNjgxOUM0LjUwMDAxIDIwLjEzNDMgNC44OTIwMSAyMC41IDUuMzc1MDEgMjAuNUgxMC42MjVDMTEuMTA4OSAyMC41IDExLjUgMjAuMTM0MyAxMS41IDE5LjY4MTlDMTEuNSAxOS4yMjk0IDExLjEwODkgMTguODYzNyAxMC42MjUgMTguODYzN0g1LjM3NTAxWiIgZmlsbD0iIzEwMTQxOSIvPgo8L3N2Zz4=",yn="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0yLjMzMzM3IDkuMzMzMzFIMC4zMzMzNzRWMC45OTk5OEMwLjMzMzM3NCAwLjYzMTc5IDAuNjMxODUxIDAuMzMzMzEzIDEuMDAwMDQgMC4zMzMzMTNMOS4zMzMzOCAwLjMzMzMxM1YyLjMzMzMxSDMuNzQ3NThMMTAuMDQwNSA4LjYyNjI0TDguNjI2MjcgMTAuMDQwNEwyLjMzMzM3IDMuNzQ3NTNWOS4zMzMzMVpNMTguMzMzMSAxMS4zMzMzSDIwLjMzMzFWMTkuNjY2NkMyMC4zMzMxIDIwLjAzNDggMjAuMDM0NyAyMC4zMzMzIDE5LjY2NjUgMjAuMzMzM0wxMS4zMzMxIDIwLjMzMzNMMTEuMzMzMSAxOC4zMzMzSDE2LjkxODlMMTAuNjI2IDEyLjA0MDNMMTIuMDQwMiAxMC42MjYxTDE4LjMzMzEgMTYuOTE5VjExLjMzMzNaIiBmaWxsPSIjMTAxNDE5Ii8+Cjwvc3ZnPg==",bn={class:"float-control-panel"},On={class:"float-control-item-icon"},Mn=["src"],kn={class:"float-control-item-icon"},Cn=["src"],wn=["src"],In={class:"float-control-item-icon"},Sn=["src"],Tn=Object(o["defineComponent"])({__name:"FloatWindow",props:{localUserInfo:{type:Object,required:!0}},emits:["closeFloatWindow"],setup(e,{emit:t}){const n=Object(o["ref"])(!0);function r(){t("closeFloatWindow")}async function a(){await ee.hangup()}async function i(){n.value?(await ee.closeMicrophone(),n.value=!1):(await ee.openMicrophone(),n.value=!0)}return(t,n)=>{var s;return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",bn,[Object(o["createElementVNode"])("div",On,[Object(o["createElementVNode"])("div",{class:"float-control-item-icon-container",onClick:a},[Object(o["createElementVNode"])("img",{src:Object(o["unref"])(vn)},null,8,Mn)])]),Object(o["createElementVNode"])("div",kn,[Object(o["createElementVNode"])("div",{class:"float-control-item-icon-container",onClick:i},[null!=(s=e.localUserInfo)&&s.isAudioAvailable?(Object(o["openBlock"])(),Object(o["createElementBlock"])("img",{key:0,src:Object(o["unref"])(gn)},null,8,Cn)):(Object(o["openBlock"])(),Object(o["createElementBlock"])("img",{key:1,src:Object(o["unref"])(_n)},null,8,wn))])]),Object(o["createElementVNode"])("div",In,[Object(o["createElementVNode"])("div",{class:"float-control-item-icon-container",onClick:r},[Object(o["createElementVNode"])("img",{src:Object(o["unref"])(yn)},null,8,Sn)])])])}}}),En=se(Tn,[["__scopeId","data-v-b8fb8f6e"]]),jn="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxyZWN0IHg9IjAuNzY5MjMxIiB5PSIwLjc2OTIzMSIgd2lkdGg9IjE4LjQ2MTUiIGhlaWdodD0iMTguNDYxNSIgcng9IjAuNzY5MjMxIiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjEuNTM4NDYiLz4KICAgIDxwYXRoIGQ9Ik0xMS41Mzg1IDEyLjMwNzdDMTEuNTM4NSAxMS44ODI5IDExLjg4MjkgMTEuNTM4NSAxMi4zMDc3IDExLjUzODVIMTkuMjMwOFYxOC40NjE1QzE5LjIzMDggMTguODg2NCAxOC44ODY0IDE5LjIzMDggMTguNDYxNiAxOS4yMzA4SDExLjUzODVWMTIuMzA3N1oiIHN0cm9rZT0id2hpdGUiIHN0cm9rZS13aWR0aD0iMS41Mzg0NiIvPgogICAgPHBhdGggZD0iTTAuNzY5Mjg3IDAuNzY5MjI2TDguOTcyMyA4LjkyNDEyIiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjEuNTM4NDYiLz4KICAgIDxwYXRoIGQ9Ik05LjQ5NjcgNC43MTcxNlY5LjQ0ODZINC43NDE0NiIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSIxLjUzODQ2IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KICA8L3N2Zz4=",Dn="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00LjY2NjgzIDkuMzMzMzdIMy4zMzM1VjQuMDAwMDRDMy4zMzM1IDMuNjMxODUgMy42MzE5NyAzLjMzMzM3IDQuMDAwMTYgMy4zMzMzN0w5LjMzMzUgMy4zMzMzN1Y0LjY2NjcxSDUuNjA5NjNMOS44MDQ5IDguODYxOTlMOC44NjIwOSA5LjgwNDhMNC42NjY4MyA1LjYwOTUyVjkuMzMzMzdaTTE1LjMzMzMgMTAuNjY2N0gxNi42NjY3VjE2QzE2LjY2NjcgMTYuMzY4MiAxNi4zNjgyIDE2LjY2NjcgMTYgMTYuNjY2N0wxMC42NjY3IDE2LjY2NjdMMTAuNjY2NyAxNS4zMzMzSDE0LjM5MDVMMTAuMTk1MyAxMS4xMzhMMTEuMTM4MSAxMC4xOTUyTDE1LjMzMzMgMTQuMzkwNVYxMC42NjY3WiIgZmlsbD0id2hpdGUiLz4KPHBhdGggZD0iTTAuNjY2NjY3IDEuMzMzMzNDMC42NjY2NjcgMC45NjUxNDQgMC45NjUxNDQgMC42NjY2NjcgMS4zMzMzMyAwLjY2NjY2N0gxOC42NjY3QzE5LjAzNDkgMC42NjY2NjcgMTkuMzMzMyAwLjk2NTE0NCAxOS4zMzMzIDEuMzMzMzNWMTguNjY2N0MxOS4zMzMzIDE5LjAzNDkgMTkuMDM0OSAxOS4zMzMzIDE4LjY2NjcgMTkuMzMzM0gxLjMzMzMzQzAuOTY1MTQzIDE5LjMzMzMgMC42NjY2NjcgMTkuMDM0OSAwLjY2NjY2NyAxOC42NjY3VjEuMzMzMzNaIiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjEuMzMzMzMiLz4KPC9zdmc+",Ln={class:"function-buttons"},An=["src"],Nn=["src"],xn=Object(o["defineComponent"])({__name:"ToggleSize",props:{allowedFullScreen:{type:Boolean,required:!0},allowedMinimized:{type:Boolean,required:!0}},emits:["openFloatWindow"],setup(e,{emit:t}){function n(){document.fullscreenElement&&document.exitFullscreen(),t("openFloatWindow")}function r(){const e=document.getElementById("tui-call-kit-id");document.fullscreenElement?document.exitFullscreen():e.requestFullscreen().catch(e=>{alert(`Error attempting to enable fullscreen mode: ${e.message} (${e.name})`)})}return(t,a)=>(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",Ln,[e.allowedMinimized?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{key:0,class:"minimize",onClick:n},[Object(o["createElementVNode"])("img",{src:Object(o["unref"])(jn)},null,8,An)])):Object(o["createCommentVNode"])("",!0),e.allowedFullScreen?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{key:1,class:"minimize",onClick:r},[Object(o["createElementVNode"])("img",{src:Object(o["unref"])(Dn)},null,8,Nn)])):Object(o["createCommentVNode"])("",!0)]))}}),Rn=se(xn,[["__scopeId","data-v-7f0167b6"]]),Pn={key:0,class:"inviteHeader"},Un={key:0,class:"inviteHeader"},Vn=Object(o["defineComponent"])({__name:"SingleCall",props:{allowedFullScreen:{type:Boolean,required:!0},allowedMinimized:{type:Boolean,required:!0}},setup(e){const t=e,n=!X.isPC,r=Object(o["ref"])(Z.getData(O.CALL,S.CALL_STATUS)),a=Object(o["ref"])(Z.getData(O.CALL,S.CALL_MEDIA_TYPE)),i=Object(o["ref"])(""),s=Object(o["ref"])(!1),c=Object(o["ref"])([]),l=Object(o["ref"])(t.allowedMinimized),u=Object(o["ref"])(t.allowedFullScreen);function d(){ee.toggleMinimize()}function p(){ee.toggleMinimize()}return Object(o["onMounted"])((function(){Z.watch(O.CALL,{[S.CALL_STATUS]:e=>{r.value=e,t.allowedMinimized&&(l.value="connected"===e)},[S.CALL_MEDIA_TYPE]:e=>{a.value=e,i.value=a.value===y.VIDEO?"videoStyle":""},[S.LOCAL_USER_INFO]:e=>{c.value=e},[S.IS_MINIMIZED]:e=>{s.value=e}})})),Object(o["onUnmounted"])(()=>{Z.unwatch(O.CALL,{[S.CALL_STATUS]:()=>{},[S.CALL_MEDIA_TYPE]:()=>{},[S.LOCAL_USER_INFO]:()=>{},[S.IS_MINIMIZED]:()=>{}})}),(e,t)=>(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",null,[n?Object(o["withDirectives"])((Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{key:0,class:Object(o["normalizeClass"])(["singleCall-mobile",i.value])},[r.value===Object(o["unref"])(b).CALLING||a.value===Object(o["unref"])(y).AUDIO?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",Pn,[Object(o["createVNode"])(Be)])):Object(o["createCommentVNode"])("",!0),Object(o["createVNode"])(mn),Object(o["createVNode"])(en,{class:"btnOperate"})],2)),[[o["vShow"],!s.value]]):Object(o["createCommentVNode"])("",!0),n?Object(o["createCommentVNode"])("",!0):Object(o["withDirectives"])((Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{key:1,class:Object(o["normalizeClass"])(["singleCall-desktop",i.value])},[Object(o["createVNode"])(Rn,{class:"toggleSize","allowed-full-screen":u.value,"allowed-minimized":l.value,onOpenFloatWindow:d},null,8,["allowed-full-screen","allowed-minimized"]),r.value===Object(o["unref"])(b).CALLING||a.value===Object(o["unref"])(y).AUDIO?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",Un,[Object(o["createVNode"])(Be)])):Object(o["createCommentVNode"])("",!0),Object(o["createVNode"])(mn),Object(o["createVNode"])(en,{class:"btnOperate"})],2)),[[o["vShow"],!s.value]]),s.value&&!n?(Object(o["openBlock"])(),Object(o["createBlock"])(En,{key:2,"local-user-info":c.value,onCloseFloatWindow:p},null,8,["local-user-info"])):Object(o["createCommentVNode"])("",!0)]))}}),Bn=["src"],Fn={class:"nick"},Gn={class:"tips"},zn={class:"list-tips"},Hn={class:"list"},Yn=["src"],qn={class:"list-name"},Wn=Object(o["defineComponent"])({__name:"InviteCallee",props:{remoteUsersList:{type:Array,required:!0},localUserInfo:{type:Object,required:!0},callerUserInfo:{type:Object,required:!0}},setup(e){const t=e;function n(e){e.target.src=te}const r=Object(o["computed"])(()=>[t.localUserInfo,...t.remoteUsersList]);return(t,a)=>(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",null,[Object(o["createElementVNode"])("img",{class:"avatar",src:e.callerUserInfo.avatar||Object(o["unref"])(te),onerror:n},null,8,Bn),Object(o["createElementVNode"])("div",Fn,Object(o["toDisplayString"])(e.callerUserInfo.nick||e.callerUserInfo.userId),1),Object(o["createElementVNode"])("div",Gn,Object(o["toDisplayString"])(Object(o["unref"])(N)("Invited group call")),1),Object(o["createElementVNode"])("div",zn,Object(o["toDisplayString"])(Object(o["unref"])(N)("Those involved")),1),Object(o["createElementVNode"])("div",Hn,[(Object(o["openBlock"])(!0),Object(o["createElementBlock"])(o["Fragment"],null,Object(o["renderList"])(r.value,(e,t)=>(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{key:t,class:"list-item"},[Object(o["createElementVNode"])("img",{class:"list-avatar",src:e.avatar||Object(o["unref"])(te),onerror:n},null,8,Yn),Object(o["createElementVNode"])("div",qn,Object(o["toDisplayString"])(e.nick||e.userId),1)]))),128))])]))}}),Kn=se(Wn,[["__scopeId","data-v-bab70197"]]),$n={class:"singleInvite-message"},Jn={class:"singleInvite-nick"},Qn={class:"singleInvite-tips"},Xn=Object(o["defineComponent"])({__name:"InviteInfo",setup(e){const t=!X.isPC,n=t?"groupInvite-header-mobile":"groupInvite-header-desktop",r=Object(o["ref"])(Z.getData(O.CALL,S.CALL_ROLE)),a=Object(o["ref"])(Z.getData(O.CALL,S.CALL_MEDIA_TYPE)),i=Object(o["ref"])(Z.getData(O.CALL,S.IS_GROUP)),s=Object(o["ref"])(Z.getData(O.CALL,S.REMOTE_USER_INFO_LIST)),c=Object(o["ref"])(Z.getData(O.CALL,S.CALL_STATUS)),l=Object(o["ref"])(Z.getData(O.CALL,S.CALL_DURATION)),u=Object(o["ref"])(""),d=Object(o["ref"])([]),p=Object(o["ref"])([]);return Object(o["onMounted"])(()=>{Z.watch(O.CALL,{[S.CALLER_USER_INFO]:e=>{p.value=e},[S.LOCAL_USER_INFO]:e=>{d.value=e},[S.CALL_ROLE]:e=>{r.value=e},[S.IS_GROUP]:e=>{i.value=e},[S.CALL_MEDIA_TYPE]:e=>{a.value=e},[S.REMOTE_USER_INFO_LIST]:e=>{s.value=e},[S.CALL_STATUS]:e=>{c.value=e},[S.CALL_DURATION]:e=>{l.value=e},[S.CALL_TIPS]:e=>{u.value=e}})}),Object(o["onUnmounted"])(()=>{Z.unwatch(O.CALL,{[S.CALLER_USER_INFO]:()=>{},[S.CALL_STATUS]:()=>{},[S.CALL_MEDIA_TYPE]:()=>{},[S.CALL_ROLE]:()=>{},[S.IS_GROUP]:()=>{},[S.CALL_DURATION]:()=>{},[S.REMOTE_USER_INFO_LIST]:()=>{},[S.CALL_TIPS]:()=>{}})}),(e,r)=>{var a,i;return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",null,[t&&0!==s.value.length?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{key:0,class:Object(o["normalizeClass"])(Object(o["unref"])(n))},[Object(o["createVNode"])(Kn,{"local-user-info":d.value,callerUserInfo:p.value,"remote-users-list":s.value},null,8,["local-user-info","callerUserInfo","remote-users-list"])],2)):Object(o["createCommentVNode"])("",!0),t||0===s.value.length?Object(o["createCommentVNode"])("",!0):(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{key:1,class:Object(o["normalizeClass"])(Object(o["unref"])(n))},[Object(o["createElementVNode"])("div",$n,[Object(o["createElementVNode"])("label",Jn,Object(o["toDisplayString"])((null==(a=p.value)?void 0:a.nick)||(null==(i=p.value)?void 0:i.userId)),1),Object(o["createElementVNode"])("span",Qn,Object(o["toDisplayString"])(u.value),1)])],2))])}}}),Zn=se(Xn,[["__scopeId","data-v-7e67e4cf"]]),er={class:"btn-operate"},tr={class:"btn-operate"},nr={key:0,class:"btn-operate"},rr={class:"btn-operate"},or={key:2,class:"control-wrapper-desktop"},ar={class:"panel-button-area"},ir={key:3,class:"control-wrapper-desktop"},sr={class:"panel-button-area"},cr="control-wrapper-mobile",lr="black",ur=Object(o["defineComponent"])({__name:"BtnOperate",setup(e){const t=Object(o["ref"])(Z.getData(O.CALL,S.CALL_ROLE)),n=Object(o["ref"])(Z.getData(O.CALL,S.CALL_MEDIA_TYPE)),r=Object(o["ref"])(Z.getData(O.CALL,S.CALL_STATUS)),a=Object(o["ref"])(Z.getData(O.CALL,S.IS_GROUP)),i=Object(o["ref"])(Z.getData(O.CALL,S.CALL_DURATION)),s=Object(o["ref"])(Z.getData(O.CALL,S.IS_CLICKABLE)),c=!X.isPC,l=X.isH5;let u=t.value===M.CALLER;const d=Object(o["ref"])([]);return Object(o["onMounted"])(()=>{Z.watch(O.CALL,{[S.LOCAL_USER_INFO]:e=>{d.value=e},[S.CALL_ROLE]:e=>{u=e===M.CALLER,t.value=e},[S.IS_GROUP]:e=>{a.value=e},[S.CALL_MEDIA_TYPE]:e=>{n.value=e},[S.CALL_STATUS]:e=>{r.value=e},[S.CALL_DURATION]:e=>{i.value=e},[S.IS_CLICKABLE]:e=>{s.value=e}})}),Object(o["onUnmounted"])(()=>{Z.unwatch(O.CALL,{[S.LOCAL_USER_INFO]:()=>{},[S.CALL_ROLE]:()=>{},[S.IS_GROUP]:()=>{},[S.CALL_MEDIA_TYPE]:()=>{},[S.CALL_STATUS]:()=>{},[S.CALL_DURATION]:()=>{},[S.IS_CLICKABLE]:()=>{}})}),(e,t)=>{const p=Object(o["resolveComponent"])("SwitchCamera");return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",null,[r.value===Object(o["unref"])(b).CALLING&&c?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{key:0,class:Object(o["normalizeClass"])([cr,lr])},[Object(o["createElementVNode"])("div",er,[Object(o["unref"])(u)?Object(o["createCommentVNode"])("",!0):(Object(o["openBlock"])(),Object(o["createBlock"])(it,{key:0,class:"mobile-reject","is-mobile":c})),Object(o["unref"])(u)?(Object(o["openBlock"])(),Object(o["createBlock"])($e,{key:1,isGroupCall:a.value,callType:n.value,"is-mobile":c,isClickable:s.value},null,8,["isGroupCall","callType","isClickable"])):Object(o["createCommentVNode"])("",!0),n.value===Object(o["unref"])(y).VIDEO&&Object(o["unref"])(u)?(Object(o["openBlock"])(),Object(o["createBlock"])(p,{key:2})):Object(o["createCommentVNode"])("",!0),Object(o["unref"])(u)?Object(o["createCommentVNode"])("",!0):(Object(o["openBlock"])(),Object(o["createBlock"])(nt,{key:3,class:"mobile-accept","is-mobile":c,"call-type":n.value},null,8,["call-type"]))])],2)):Object(o["createCommentVNode"])("",!0),r.value===Object(o["unref"])(b).CONNECTED&&c?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{key:1,class:Object(o["normalizeClass"])([cr,lr])},[Object(o["createElementVNode"])("div",tr,[Object(o["createVNode"])(Gt,{"call-duration":i.value,"call-type":n.value},null,8,["call-duration","call-type"])]),n.value===Object(o["unref"])(y).VIDEO?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",nr,[Object(o["createVNode"])(wt,{"local-user-info":d.value,"is-mobile":c},null,8,["local-user-info"]),Object(o["unref"])(l)?Object(o["createCommentVNode"])("",!0):(Object(o["openBlock"])(),Object(o["createBlock"])(Dt,{key:0})),Object(o["createVNode"])(Vt,{"is-mobile":c})])):Object(o["createCommentVNode"])("",!0),Object(o["createElementVNode"])("div",rr,[n.value===Object(o["unref"])(y).AUDIO?(Object(o["openBlock"])(),Object(o["createBlock"])(wt,{key:0,"local-user-info":d.value,"is-mobile":c},null,8,["local-user-info"])):Object(o["createCommentVNode"])("",!0),Object(o["createVNode"])($e,{"is-mobile":c,isGroupCall:a.value,callType:n.value,isClickable:s.value},null,8,["isGroupCall","callType","isClickable"]),n.value!==Object(o["unref"])(y).VIDEO||Object(o["unref"])(l)?Object(o["createCommentVNode"])("",!0):(Object(o["openBlock"])(),Object(o["createBlock"])(p,{key:1})),n.value!==Object(o["unref"])(y).AUDIO||Object(o["unref"])(l)?Object(o["createCommentVNode"])("",!0):(Object(o["openBlock"])(),Object(o["createBlock"])(Dt,{key:2}))])],2)):Object(o["createCommentVNode"])("",!0),r.value!==Object(o["unref"])(b).CALLING||c?Object(o["createCommentVNode"])("",!0):(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",or,[Object(o["createElementVNode"])("div",ar,[n.value===Object(o["unref"])(y).VIDEO?(Object(o["openBlock"])(),Object(o["createBlock"])(Vt,{key:0,"is-mobile":c})):Object(o["createCommentVNode"])("",!0),Object(o["unref"])(u)?(Object(o["openBlock"])(),Object(o["createBlock"])(wt,{key:1,"local-user-info":d.value,"is-mobile":c},null,8,["local-user-info"])):Object(o["createCommentVNode"])("",!0),Object(o["unref"])(u)?Object(o["createCommentVNode"])("",!0):(Object(o["openBlock"])(),Object(o["createBlock"])(it,{key:2,"is-mobile":c})),Object(o["unref"])(u)?Object(o["createCommentVNode"])("",!0):(Object(o["openBlock"])(),Object(o["createBlock"])(nt,{key:3,"is-mobile":c,"call-type":n.value},null,8,["call-type"])),Object(o["unref"])(u)?(Object(o["openBlock"])(),Object(o["createBlock"])($e,{key:4,isGroupCall:a.value,callType:n.value,"is-mobile":c,isClickable:s.value},null,8,["isGroupCall","callType","isClickable"])):Object(o["createCommentVNode"])("",!0)])])),r.value!==Object(o["unref"])(b).CONNECTED||c?Object(o["createCommentVNode"])("",!0):(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",ir,[Object(o["createElementVNode"])("div",sr,[n.value===Object(o["unref"])(y).VIDEO?(Object(o["openBlock"])(),Object(o["createBlock"])(Vt,{key:0,"is-mobile":c})):Object(o["createCommentVNode"])("",!0),Object(o["createVNode"])(wt,{"local-user-info":d.value,"is-mobile":c},null,8,["local-user-info"]),Object(o["createVNode"])($e,{"is-mobile":c,isGroupCall:a.value,callType:n.value,isClickable:s.value},null,8,["isGroupCall","callType","isClickable"])])]))])}}}),dr=se(ur,[["__scopeId","data-v-f3ff4c3f"]]);function pr({pageCount:e}){const t=Object(o["ref"])(),n=Object(o["ref"])(),r=Object(o["ref"])(0),a=Object(o["ref"])(Or.RIGHT);function i(e){t.value=e.changedTouches[0].pageX,n.value=e.changedTouches[0].pageY}function s(){r.value=r.value+1}function c(){r.value=r.value-1}function l(n){const o=n.changedTouches[0].pageX-t.value;if(!(Math.abs(o)<5)){if(o<0){if(r.value===e.value-1)return;a.value=Or.LEFT,s()}if(o>0){if(0===r.value)return;a.value=Or.RIGHT,c()}}}return Object(o["watch"])(e,()=>{1===e.value&&0!==r.value&&(r.value=0)}),Object(o["onMounted"])(()=>{document.addEventListener("touchstart",i,!1),document.addEventListener("touchend",l,!1)}),Object(o["onUnmounted"])(()=>{document.removeEventListener("touchstart",i,!1),document.removeEventListener("touchend",l,!1)}),{currentIndex:r,direction:a}}function fr(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n];r.className.includes("swiper-item")&&t.push(r)}return t}function hr(e){const t=Object(o["ref"])([]),n=()=>{const n=e.value.children,r=fr(n);t.value.length!==r.length&&(t.value=r)};return Object(o["onMounted"])(()=>{n()}),Object(o["onUpdated"])(()=>{n()}),t}const mr={class:"swipe"},vr={key:0,class:"swipe-dots-container"},gr=Object(o["defineComponent"])({__name:"Swiper",props:{grid:{}},setup(e){const t=e,n=Object(o["ref"])(),r=hr(n),a=Object(o["computed"])(()=>{const{rows:e=1,cols:n=1}=(null==t?void 0:t.grid)||{};return e*n}),i=Object(o["computed"])(()=>Math.ceil(r.value.length/a.value)),s=Object(o["computed"])(()=>i.value>1),{direction:c,currentIndex:l}=pr({pageCount:i});function u({count:e,width:t,height:n,rows:r,cols:o,currentIndex:i}){const s=[],c=e=>Math.floor(e/(r*o));for(let l=0;l<e;l++)s[l]={width:t,height:n,top:n*Math.floor((l-c(l)*a.value)/o)+"px",left:t*(Math.floor(l%o)+(c(l)-i)*r)+"px",visible:i===c(l)};return s}function d(e,t){return parseFloat(e.getPropertyValue(t)||0)}function p(e){r.value.forEach((t,n)=>{const{width:r,height:o,top:a,left:i,visible:s}=e[n];t.style.top=a,t.style.left=i,t.style.width=r+"px",t.style.height=o+"px",t.style.visible=s})}return Object(o["watch"])([r,l],()=>{var e;const o=n.value.clientWidth,{rows:a=1,cols:i=1}=(null==t?void 0:t.grid)||{},s=parseInt(o)/i,c=getComputedStyle(null==(e=r.value)?void 0:e[0]),f=d(c,"height");n.value.style.height=a*f+"px";const h=u({count:r.value.length,width:s,height:f,rows:a,cols:i,currentIndex:l.value});p(h)}),Object(o["provide"])("direction",c),(e,t)=>(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",mr,[Object(o["createElementVNode"])("div",{ref_key:"swiperContainerRef",ref:n,class:Object(o["normalizeClass"])("swiper-sliders-container")},[Object(o["renderSlot"])(e.$slots,"default")],512),s.value?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",vr,[(Object(o["openBlock"])(!0),Object(o["createElementBlock"])(o["Fragment"],null,Object(o["renderList"])(i.value,e=>(Object(o["openBlock"])(),Object(o["createElementBlock"])("span",{key:e,class:Object(o["normalizeClass"])(["swipe-dots",[Object(o["unref"])(l)===e-1?"swipe-current-dots":""]])},null,2))),128))])):Object(o["createCommentVNode"])("",!0)]))}}),_r={class:"swiper-item",name:"swiper-silder"},yr=Object(o["defineComponent"])({__name:"SwiperSlider",props:{index:{}},setup(e){return(e,t)=>(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",_r,[Object(o["renderSlot"])(e.$slots,"default",{},void 0,!0)]))}}),br=se(yr,[["__scopeId","data-v-61c01897"]]);var Or=(e=>(e.LEFT="left",e.RIGHT="right",e))(Or||{});const Mr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAMAAAC5zwKfAAAAsVBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+3mHKcAAAAOnRSTlMAChshaFgmE25ORA9eSRa/sTLNloBjBlM/07qFKok2m3c786wukeTf3Kh07PCNe8fDtZ/o16Kl9/nJwyGDfwAABBtJREFUWMOs0cuKBSEMRVEfkEJFwUnKgQiC//+NHbvUWz1rbrKdLw5G/SNUUqGeIUppgZqiCKgvijwhUKeUCNwL+ZwxWxT4RCTuAwb2Qm2sXeIBOeJlqc9ENmhgg2aBgQOiBYA/E3ln1rYu0C6QdxUE8mZHvKjw/ZFh1Ed8TQyMe0CuswnCErViZPKghe+NQXG6MoGHJC8pVnq8QRKD4gU950NCtZrpXa3l3x7RItPD3NtDjhkobqaQt8lckQ3m3vshhxYY2GcP2JJil33pm+zA964y68vUfBB8OWQxfA+L95ssDflgIu+QVvGr0e9KRwGwRR+3OQS84CP1kDEJgMnFU9ECoD2gd00JNFx01BRdlQD77U5WAvTuUxIBaeG9XpAA3X1yWgK8XyB+aehXP53YbZdyQBjA8SFKYpWHNmRZ5aEQ6dn3/2D3NQy6262Nf6/qnH7nmplOEoBs8+gJTg5u7JIi9Mk2ffZcMn0pmiI0Ztt6HsrSvdYVIRJrTWBZuh/IX6DSuxQy4gWMVQ37gczVvZCKPfoSgKvSvvqBSYHPBKNu4aGhJtQxYj9wD2BVXDCIBlDDD6jfqQzDSxzHBBTRiAWMxAz6gONrFOPAu4RLhESm5jSO7wPmlwOIuKgw4Pk3U3E4jeru0UFUhUELf2UzgJG4Hue8dQ9RTbpjfKEXGo7hhM4jftwi/wCV4LE81QVXcxy37TwiF/sAluThmlSbgDXSlhl18wZHHyJkvEBlLNeKzrgbqESBT0jflciGrbnK2+J2sy6e4IdBQEg/1lDVXGg9x9nS73szPQCQkFFKNa87NQftuLe3kZaCYxgSMoAB6yhhyzXeTmUm73kf00AHkIgH6e5tQ6fiwIPM946anob68QhiRfoiumu8A7DyVFW13tnHtRHKei0GYaSg+0Yc4cDDovr9l8emR/BALMljIA8eLjS71jNN00qEl8umLV2GWtEfo4d41Wk9ED2Tf3o2I0HSb7c7UT/s0GNzVgWvHhBKFFWc/M6t5DRLQdQBxKLunyj0I0ozd/V8wEGKnWizj8fbOHWfplKWYrCeMZj+uj8TziTzlaAHKfkpcVh+SY8oakSvRcbaZJkkSVmGRbmaUQ4M+skHFcRqvgpUcPl5cz5B581qupckY28YpZg2M4bGED1pwlgqWXAN2rad56BtVqspDrwSrMTSW9HoaZSWlAOWntd4FbjC3v8gzBjaI/SiuWiRHXwOtuItlfUthV63Vj0C3q24Be9HzFJd4tGfjQTPs5LW+x3EoiybNHqntaMo9ytuwHbNUCpvFujNqIWq2C9AENPbhqU63ZU7dg7cTxACLrM7/36eL9nEPp3z5pSJaEiZtOL6/TVBzVjHA6sMczCbcbaYb9B6R894wbE8+7zJFU9lxl8D9Lp/VcLH/2j8UuYAAAAASUVORK5CYII=",kr={class:"invite-calling-list"},Cr=["id"],wr={key:0,class:"invite-calling-item-loading"},Ir=["src"],Sr={key:1,class:"tag"},Tr={class:"microphone-icon-container"},Er=["src"],jr={key:0,class:"invite-calling-item-id"},Dr=Object(o["defineComponent"])({__name:"RemoteStreamList",props:{remoteList:{type:Array,required:!0},callStatus:{type:String,required:!0},localUserInfo:{type:Object,required:!0}},setup(e){const t=e,n=Object(o["computed"])(()=>[t.localUserInfo,...t.remoteList]);function r(e){e.target.src=te}return(t,a)=>(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",kr,[Object(o["createVNode"])(Object(o["unref"])(gr),{grid:{rows:2,cols:2}},{default:Object(o["withCtx"])(()=>[(Object(o["openBlock"])(!0),Object(o["createElementBlock"])(o["Fragment"],null,Object(o["renderList"])(n.value,(t,n)=>(Object(o["openBlock"])(),Object(o["createBlock"])(Object(o["unref"])(br),{key:""+t.userId,index:n,class:"invite-calling-item"},{default:Object(o["withCtx"])(()=>[Object(o["createElementVNode"])("div",{id:t.domId,class:"invite-calling-item-message"},[t.isEnter||"localVideo"===t.domId?Object(o["createCommentVNode"])("",!0):(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",wr,[Object(o["createElementVNode"])("img",{src:Object(o["unref"])(Mr)},null,8,Ir)])),t.isEnter&&"connected"===e.callStatus||"localVideo"===t.domId?(Object(o["openBlock"])(),Object(o["createElementBlock"])("span",Sr,[Object(o["createElementVNode"])("div",Tr,[t.isAudioAvailable?(Object(o["openBlock"])(),Object(o["createBlock"])(Ie,{key:0,volume:t.volume},null,8,["volume"])):(Object(o["openBlock"])(),Object(o["createBlock"])(Ae,{key:1}))]),Object(o["createTextVNode"])(" "+Object(o["toDisplayString"])("localVideo"===t.domId?Object(o["unref"])(N)("me"):t.nick||t.userId),1)])):Object(o["createCommentVNode"])("",!0)],8,Cr),Object(o["createElementVNode"])("img",{class:"avatar",src:t.avatar||Object(o["unref"])(te),onerror:r},null,8,Er),t.isEnter||"localVideo"===t.domId?Object(o["createCommentVNode"])("",!0):(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",jr,Object(o["toDisplayString"])(t.nick||t.userId),1))]),_:2},1032,["index"]))),128))]),_:1})]))}}),Lr=se(Dr,[["__scopeId","data-v-96348cbc"]]),Ar={class:"calling-wrapper"},Nr={key:0,class:"user-view-text-container"},xr={class:"tag"},Rr={class:"microphone-icon-container"},Pr=["id"],Ur={key:0,class:"invite-calling-item-loading"},Vr=["src"],Br={key:1,class:"user-view-text-container"},Fr={class:"tag"},Gr={class:"microphone-icon-container"},zr=Object(o["defineComponent"])({__name:"RemoteStreamList",props:{remoteList:{type:Array,required:!0},callStatus:{type:String,required:!0},callType:{type:Number,required:!0},localUserInfo:{type:Object,required:!0}},setup(e){const t=e,n=Object(o["ref"])(1),r=Object(o["ref"])([]),a=Object(o["ref"])("group-user-view"),i=Object(o["ref"])("group-calling-container"),s=Object(o["ref"])("user-view-user-id");async function c(){const e=[];for(let r=8*(n.value-1);r<8*n.value&&r<t.remoteList.length;r++)e.push(t.remoteList[r]);r.value=e}return Object(o["watch"])(r,async()=>{const e=r.value.length+1;a.value="group-user-view group-user-view-"+e,i.value="group-calling-container group-calling-container-"+e,s.value="user-view-user-id user-view-user-id-"+e},{flush:"post",deep:!0}),Object(o["watchEffect"])(async()=>{await c()}),(t,n)=>{var r,c;return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",Ar,[Object(o["createElementVNode"])("div",{class:Object(o["normalizeClass"])(i.value)},[Object(o["createElementVNode"])("div",{id:"localVideo",class:Object(o["normalizeClass"])(a.value)},["connected"!==e.callStatus||e.callType===Object(o["unref"])(y).AUDIO?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",Nr,[Object(o["createElementVNode"])("div",{class:Object(o["normalizeClass"])(s.value)},Object(o["toDisplayString"])(e.localUserInfo.nick||e.localUserInfo.userId),3)])):Object(o["createCommentVNode"])("",!0),Object(o["createElementVNode"])("span",xr,[Object(o["createElementVNode"])("div",Rr,[null!=(r=e.localUserInfo)&&r.isAudioAvailable?(Object(o["openBlock"])(),Object(o["createBlock"])(Ie,{key:0,volume:null==(c=e.localUserInfo)?void 0:c.volume},null,8,["volume"])):(Object(o["openBlock"])(),Object(o["createBlock"])(Ae,{key:1}))]),Object(o["createTextVNode"])(" "+Object(o["toDisplayString"])(e.localUserInfo.nick||e.localUserInfo.userId)+Object(o["toDisplayString"])(Object(o["unref"])(N)("me")),1)])],2),(Object(o["openBlock"])(!0),Object(o["createElementBlock"])(o["Fragment"],null,Object(o["renderList"])(e.remoteList,t=>(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{id:t.domId,key:t.userId,class:Object(o["normalizeClass"])(a.value)},[Object(o["createElementVNode"])("div",null,[t.isEnter?Object(o["createCommentVNode"])("",!0):(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",Ur,[Object(o["createElementVNode"])("img",{src:Object(o["unref"])(Mr)},null,8,Vr)])),"connected"!==e.callStatus||e.callType===Object(o["unref"])(y).AUDIO?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",Br,[Object(o["createElementVNode"])("div",{class:Object(o["normalizeClass"])(s.value)},Object(o["toDisplayString"])(t.nick||t.userId),3)])):Object(o["createCommentVNode"])("",!0)]),Object(o["createElementVNode"])("span",Fr,[Object(o["createElementVNode"])("div",Gr,[null!=t&&t.isAudioAvailable?(Object(o["openBlock"])(),Object(o["createBlock"])(Ie,{key:0,volume:null==t?void 0:t.volume},null,8,["volume"])):(Object(o["openBlock"])(),Object(o["createBlock"])(Ae,{key:1}))]),Object(o["createTextVNode"])(" "+Object(o["toDisplayString"])(t.nick||t.userId),1)])],10,Pr))),128))],2)])}}}),Hr=se(zr,[["__scopeId","data-v-ecba3372"]]),Yr={class:"streamBox"},qr=Object(o["defineComponent"])({__name:"PusherPlayer",setup(e){const t=Object(o["ref"])(Z.getData(O.CALL,S.CALL_STATUS)),n=Object(o["ref"])([]),r=Object(o["ref"])([]),a=Object(o["ref"])(Z.getData(O.CALL,S.CALL_MEDIA_TYPE)),i=!X.isPC;return Object(o["onMounted"])(()=>{Z.watch(O.CALL,{[S.LOCAL_USER_INFO]:e=>{r.value=e},[S.REMOTE_USER_INFO_LIST]:e=>{n.value=e},[S.CALL_STATUS]:e=>{t.value=e},[S.CALL_MEDIA_TYPE]:e=>{a.value=e}})}),Object(o["onUnmounted"])(()=>{Z.unwatch(O.CALL,{[S.LOCAL_USER_INFO]:()=>{},[S.REMOTE_USER_INFO_LIST]:()=>{},[S.CALL_STATUS]:()=>{},[S.CALL_MEDIA_TYPE]:()=>{}})}),(e,s)=>(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",Yr,[0!==n.value.length&&i?(Object(o["openBlock"])(),Object(o["createBlock"])(Lr,{key:0,"local-user-info":r.value,"remote-list":n.value,"call-status":t.value},null,8,["local-user-info","remote-list","call-status"])):Object(o["createCommentVNode"])("",!0),0===n.value.length||i?Object(o["createCommentVNode"])("",!0):(Object(o["openBlock"])(),Object(o["createBlock"])(Hr,{key:1,"local-user-info":r.value,"remote-list":n.value,"call-status":t.value,"call-type":a.value},null,8,["local-user-info","remote-list","call-status","call-type"]))]))}}),Wr=se(qr,[["__scopeId","data-v-522c44be"]]),Kr={key:0},$r=Object(o["defineComponent"])({__name:"GroupCall",setup(e){const t=Object(o["ref"])(Z.getData(O.CALL,S.CALL_ROLE)),n=Object(o["ref"])(Z.getData(O.CALL,S.CALL_STATUS)),r=Object(o["ref"])(Z.getData(O.CALL,S.CALL_MEDIA_TYPE)),a=X.isPC?"group-deskTop":"";return Object(o["onMounted"])(()=>{Z.watch(O.CALL,{[S.CALL_STATUS]:e=>{n.value=e},[S.CALL_MEDIA_TYPE]:e=>{r.value=e},[S.CALL_ROLE]:e=>{t.value=e}})}),Object(o["onUnmounted"])(()=>{Z.unwatch(O.CALL,{[S.CALL_STATUS]:()=>{},[S.CALL_MEDIA_TYPE]:()=>{},[S.CALL_ROLE]:()=>{}})}),(e,r)=>(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{class:Object(o["normalizeClass"])(Object(o["unref"])(a))},[n.value===Object(o["unref"])(b).CALLING&&t.value!==Object(o["unref"])(M).CALLER?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",Kr,[Object(o["createVNode"])(Zn)])):Object(o["createCommentVNode"])("",!0),n.value===Object(o["unref"])(b).CONNECTED||t.value===Object(o["unref"])(M).CALLER?(Object(o["openBlock"])(),Object(o["createBlock"])(Wr,{key:1})):Object(o["createCommentVNode"])("",!0),Object(o["createVNode"])(dr)],2))}}),Jr=se($r,[["__scopeId","data-v-bb1549c9"]]),Qr={class:"toast-content"},Xr=Object(o["defineComponent"])({__name:"Toast",props:{type:{},duration:{},message:{},index:{},showClose:{type:Boolean},destroy:{type:Function},close:{type:Function}},setup(e){const t=e,n=Object(o["ref"])(!1),r=Object(o["ref"])(null),a=()=>{t.destroy()},i=()=>{t.close(),n.value=!1},s=()=>{r.value&&clearTimeout(r.value),t.duration&&(r.value=setTimeout(()=>{i()},t.duration))};return Object(o["onMounted"])(()=>{n.value=!0,s()}),Object(o["onUnmounted"])(()=>{r.value&&clearTimeout(r.value)}),(e,t)=>(Object(o["openBlock"])(),Object(o["createBlock"])(o["Transition"],{name:"slide-up",onAfterLeave:a},{default:Object(o["withCtx"])(()=>[Object(o["withDirectives"])((Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{key:e.index,class:Object(o["normalizeClass"])("toast-container "+e.type)},[Object(o["createElementVNode"])("div",Qr,Object(o["toDisplayString"])(e.message),1),Object(o["withDirectives"])(Object(o["createElementVNode"])("i",{onClick:i,class:"toast-close-icon"},null,512),[[o["vShow"],e.showClose]])],2)),[[o["vShow"],n.value]])]),_:1}))}}),Zr=se(Xr,[["__scopeId","data-v-d9be0202"]]),eo={},to=[];let no=1;function ro(){var e,t,n;const r=to.length;return r>0?null==(n=null==(t=null==(e=to[r-1])?void 0:e.el)?void 0:t.style)?void 0:n.top:"30px"}function oo(){var e,t;const n=to.length;return n>0?null==(t=null==(e=to[n-1])?void 0:e.el)?void 0:t.offsetHeight:0}const ao=e=>{const{type:t,duration:n=3e3,message:r,showClose:a=!1,onClose:i}=e,s=document.body,c=document.createElement("div"),l=Object(o["createVNode"])(Zr,{type:t,duration:n,message:r,showClose:a,index:"toast-item-"+no++,close(){var e,t,n,r;const o=to.findIndex(e=>e===l);console.log(null==(t=null==(e=to[o])?void 0:e.el)?void 0:t.offsetHeight);const a=parseInt(null==(r=null==(n=to[o])?void 0:n.el)?void 0:r.offsetHeight)+20;for(let i=0;i<to.length;i++)i<o||(to[i].el.style.top=parseInt(to[i].el.style.top)-a+"px");to.splice(o,1)},destroy(){Object(o["render"])(null,c)}});Object(o["render"])(l,c),s.appendChild(c.firstElementChild);const u=ro(),d=oo();l.el.style.top=parseInt(u)+parseInt(d)+20+"px",to.push(l)};["info","waring","error","success"].forEach(e=>{let t={};eo[e]=n=>{"string"==typeof n?t.message=n:t=n,ao({type:e,...t})}}),eo.show=e=>{let t={};return"string"==typeof e?(t.message=e,t.type="info"):t=e,ao({type:"info",...t})};const io=Object(o["defineComponent"])({__name:"TUICallKit",props:{beforeCalling:{},afterCalling:{},onMinimized:{},onMessageSentByMe:{},kickedOut:{},statusChanged:{},allowedMinimized:{type:Boolean,default:!1},allowedFullScreen:{type:Boolean,default:!0},videoDisplayMode:{default:"cover"},videoResolution:{default:"480p"},lang:{default:"zh-cn"}},setup(e){const t=e,n=!X.isPC,r=Object(o["ref"])(Z.getData(O.CALL,S.CALL_STATUS)),a=Object(o["ref"])(Z.getData(O.CALL,S.IS_GROUP)),i=n?"TUICallKit-mobile transition-animation":"TUICallKit-desktop",s=Object(o["ref"])(""),{beforeCalling:c,afterCalling:l,onMinimized:u,onMessageSentByMe:d,allowedMinimized:p,allowedFullScreen:f,videoDisplayMode:h,videoResolution:m,lang:v,kickedOut:g,statusChanged:_}=Object(o["toRefs"])(t);function y(e,t){switch(t){case"info":null==eo||eo.info(e);break;case"error":null==eo||eo.error(e);break}}return Object(o["watchEffect"])(()=>{ee.setCallback({beforeCalling:c&&c.value,afterCalling:l&&l.value,onMinimized:u&&u.value,onMessageSentByMe:d&&d.value,kickedOut:g&&g.value,statusChanged:_&&_.value})}),Object(o["onMounted"])(()=>{ee.setLanguage(v.value),ee.setVideoDisplayMode(h.value),ee.setVideoResolution(m.value),Z.watch(O.CALL,{[S.CALL_STATUS]:e=>{r.value=e},[S.IS_GROUP]:e=>{a.value=e},[S.TOAST_INFO]:e=>{e.text&&y(e.text,e.type||"info")},[S.IS_MINIMIZED]:e=>{s.value=e?"miniMized":""}})}),Object(o["onUnmounted"])(()=>{Z.unwatch(O.CALL,{[S.CALL_STATUS]:()=>{},[S.IS_GROUP]:()=>{},[S.TOAST_INFO]:()=>{},[S.IS_MINIMIZED]:()=>{}})}),(e,t)=>r.value!==Object(o["unref"])(b).IDLE?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{key:0,id:"tui-call-kit-id",class:Object(o["normalizeClass"])([Object(o["unref"])(i),s.value])},[a.value?(Object(o["openBlock"])(),Object(o["createBlock"])(Jr,{key:1,class:"singCall"})):(Object(o["openBlock"])(),Object(o["createBlock"])(Vn,{key:0,class:"singCall","allowed-minimized":Object(o["unref"])(p),"allowed-full-screen":Object(o["unref"])(f)},null,8,["allowed-minimized","allowed-full-screen"]))],2)):Object(o["createCommentVNode"])("",!0)}}),so=e=>(e.component("TUICallKit",{server:ee}),ee.bindTUICore(e),io),co=e=>{e.component("TUICallKit",io),console.log("TUICallKit&mini installed",e)};io.plugin=so,io.install=co},"201b":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("ka",{months:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(e){return e.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/,(function(e,t,n){return"ი"===n?t+"ში":t+n+"ში"}))},past:function(e){return/(წამი|წუთი|საათი|დღე|თვე)/.test(e)?e.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(e)?e.replace(/წელი$/,"წლის წინ"):e},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(e){return 0===e?e:1===e?e+"-ლი":e<20||e<=100&&e%20===0||e%100===0?"მე-"+e:e+"-ე"},week:{dow:1,doy:7}});return t}))},"21b8":function(e,t,n){"use strict";var r=n("a5eb"),o=n("e9d9");r({target:"Function",proto:!0,forced:Function.bind!==o},{bind:o})},"223b":function(e,t,n){"use strict";var r=n("437b"),o=n("62a4"),a=Array.prototype;e.exports=function(e){var t=e.sort;return e===a||r(a,e)&&t===a.sort?o:t}},2296:function(e,t,n){"use strict";var r=n("4180");e.exports=function(e,t,n){return r.f(e,t,n)}},"22a4":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e)},"22a9":function(e,t,n){"use strict";var r=n("f94a");r("hasInstance")},"22f8":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(일|월|주)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"일";case"M":return e+"월";case"w":case"W":return e+"주";default:return e}},meridiemParse:/오전|오후/,isPM:function(e){return"오후"===e},meridiem:function(e,t,n){return e<12?"오전":"오후"}});return t}))},2303:function(e,t){},2364:function(e,t,n){"use strict";n("9103"),n("6f89"),n("3e47"),n("0e67");var r=n("beea");e.exports=r.f("iterator")},"23cb":function(e,t,n){"use strict";var r=n("5926"),o=Math.max,a=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):a(n,t)}},"23e7":function(e,t,n){"use strict";var r=n("da84"),o=n("06cf").f,a=n("9112"),i=n("cb2d"),s=n("6374"),c=n("e893"),l=n("94ca");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.dontCallGetSet?(h=o(u,d),p=h&&h.value):p=u[d],n=l(v?d:m+(g?".":"#")+d,e.forced),!n&&void 0!==p){if(typeof f==typeof p)continue;c(f,p)}(e.sham||p&&p.sham)&&a(f,"sham",!0),i(u,d,f,e)}}},2419:function(e,t,n){"use strict";n("9103"),n("6f89"),n("8c5a"),n("3e47");var r=n("764b");e.exports=r.Set},"241c":function(e,t,n){"use strict";var r=n("ca84"),o=n("7839"),a=o.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,a)}},2421:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},r=["کانونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمموز","ئاب","ئەیلوول","تشرینی یەكەم","تشرینی دووەم","كانونی یەکەم"],o=e.defineLocale("ku",{months:r,monthsShort:r,weekdays:"یهكشهممه_دووشهممه_سێشهممه_چوارشهممه_پێنجشهممه_ههینی_شهممه".split("_"),weekdaysShort:"یهكشهم_دووشهم_سێشهم_چوارشهم_پێنجشهم_ههینی_شهممه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ه_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ئێواره|بهیانی/,isPM:function(e){return/ئێواره/.test(e)},meridiem:function(e,t,n){return e<12?"بهیانی":"ئێواره"},calendar:{sameDay:"[ئهمرۆ كاتژمێر] LT",nextDay:"[بهیانی كاتژمێر] LT",nextWeek:"dddd [كاتژمێر] LT",lastDay:"[دوێنێ كاتژمێر] LT",lastWeek:"dddd [كاتژمێر] LT",sameElse:"L"},relativeTime:{future:"له %s",past:"%s",s:"چهند چركهیهك",ss:"چركه %d",m:"یهك خولهك",mm:"%d خولهك",h:"یهك كاتژمێر",hh:"%d كاتژمێر",d:"یهك ڕۆژ",dd:"%d ڕۆژ",M:"یهك مانگ",MM:"%d مانگ",y:"یهك ساڵ",yy:"%d ساڵ"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}});return o}))},"24b4":function(e,t,n){"use strict";n("5145");var r=n("8f95"),o=n("0e6f"),a=n("437b"),i=n("bc0d"),s=Array.prototype,c={DOMTokenList:!0,NodeList:!0};e.exports=function(e){var t=e.forEach;return e===s||a(s,e)&&t===s.forEach||o(c,r(e))?i:t}},2554:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
function t(e,t,n){var r=e+" ";switch(n){case"ss":return r+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi",r;case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta",r;case"h":return t?"jedan sat":"jednog sata";case"hh":return r+=1===e?"sat":2===e||3===e||4===e?"sata":"sati",r;case"dd":return r+=1===e?"dan":"dana",r;case"MM":return r+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci",r;case"yy":return r+=1===e?"godina":2===e||3===e||4===e?"godine":"godina",r}}var n=e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return n}))},"25a6":function(e,t,n){"use strict";var r=n("a5eb"),o=n("dee0").some,a=n("9f61"),i=a("some");r({target:"Array",proto:!0,forced:!i},{some:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},2616:function(e,t,n){"use strict";var r=n("0363"),o=n("7463"),a=r("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||i[a]===e)}},"26aa":function(e,t,n){"use strict";n("fc93");var r=n("a169");e.exports=r("Array").concat},"26f9":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function n(e,t,n,r){return t?"kelios sekundės":r?"kelių sekundžių":"kelias sekundes"}function r(e,t,n,r){return t?a(n)[0]:r?a(n)[1]:a(n)[2]}function o(e){return e%10===0||e>10&&e<20}function a(e){return t[e].split("_")}function i(e,t,n,i){var s=e+" ";return 1===e?s+r(e,t,n[0],i):t?s+(o(e)?a(n)[1]:a(n)[0]):i?s+a(n)[1]:s+(o(e)?a(n)[1]:a(n)[2])}var s=e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:n,ss:i,m:r,mm:i,h:r,hh:i,d:r,dd:i,M:r,MM:i,y:r,yy:i},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}});return s}))},2711:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n}},2714:function(e,t,n){var r="function"===typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,a=r&&o&&"function"===typeof o.get?o.get:null,i=r&&Map.prototype.forEach,s="function"===typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=s&&c&&"function"===typeof c.get?c.get:null,u=s&&Set.prototype.forEach,d="function"===typeof WeakMap&&WeakMap.prototype,p=d?WeakMap.prototype.has:null,f="function"===typeof WeakSet&&WeakSet.prototype,h=f?WeakSet.prototype.has:null,m="function"===typeof WeakRef&&WeakRef.prototype,v=m?WeakRef.prototype.deref:null,g=Boolean.prototype.valueOf,_=Object.prototype.toString,y=Function.prototype.toString,b=String.prototype.match,O=String.prototype.slice,M=String.prototype.replace,k=String.prototype.toUpperCase,C=String.prototype.toLowerCase,w=RegExp.prototype.test,I=Array.prototype.concat,S=Array.prototype.join,T=Array.prototype.slice,E=Math.floor,j="function"===typeof BigInt?BigInt.prototype.valueOf:null,D=Object.getOwnPropertySymbols,L="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?Symbol.prototype.toString:null,A="function"===typeof Symbol&&"object"===typeof Symbol.iterator,N="function"===typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===A||"symbol")?Symbol.toStringTag:null,x=Object.prototype.propertyIsEnumerable,R=("function"===typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function P(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||w.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"===typeof e){var r=e<0?-E(-e):E(e);if(r!==e){var o=String(r),a=O.call(t,o.length+1);return M.call(o,n,"$&_")+"."+M.call(M.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return M.call(t,n,"$&_")}var U=n(1),V=U.custom,B=J(V)?V:null;function F(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function G(e){return M.call(String(e),/"/g,""")}function z(e){return"[object Array]"===ee(e)&&(!N||!("object"===typeof e&&N in e))}function H(e){return"[object Date]"===ee(e)&&(!N||!("object"===typeof e&&N in e))}function Y(e){return"[object RegExp]"===ee(e)&&(!N||!("object"===typeof e&&N in e))}function q(e){return"[object Error]"===ee(e)&&(!N||!("object"===typeof e&&N in e))}function W(e){return"[object String]"===ee(e)&&(!N||!("object"===typeof e&&N in e))}function K(e){return"[object Number]"===ee(e)&&(!N||!("object"===typeof e&&N in e))}function $(e){return"[object Boolean]"===ee(e)&&(!N||!("object"===typeof e&&N in e))}function J(e){if(A)return e&&"object"===typeof e&&e instanceof Symbol;if("symbol"===typeof e)return!0;if(!e||"object"!==typeof e||!L)return!1;try{return L.call(e),!0}catch(t){}return!1}function Q(e){if(!e||"object"!==typeof e||!j)return!1;try{return j.call(e),!0}catch(t){}return!1}e.exports=function e(t,n,r,o){var s=n||{};if(Z(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Z(s,"maxStringLength")&&("number"===typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var c=!Z(s,"customInspect")||s.customInspect;if("boolean"!==typeof c&&"symbol"!==c)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Z(s,"indent")&&null!==s.indent&&"\t"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Z(s,"numericSeparator")&&"boolean"!==typeof s.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var d=s.numericSeparator;if("undefined"===typeof t)return"undefined";if(null===t)return"null";if("boolean"===typeof t)return t?"true":"false";if("string"===typeof t)return le(t,s);if("number"===typeof t){if(0===t)return 1/0/t>0?"0":"-0";var p=String(t);return d?P(t,p):p}if("bigint"===typeof t){var f=String(t)+"n";return d?P(t,f):f}var h="undefined"===typeof s.depth?5:s.depth;if("undefined"===typeof r&&(r=0),r>=h&&h>0&&"object"===typeof t)return z(t)?"[Array]":"[Object]";var m=me(s,r);if("undefined"===typeof o)o=[];else if(ne(o,t)>=0)return"[Circular]";function v(t,n,a){if(n&&(o=T.call(o),o.push(n)),a){var i={depth:s.depth};return Z(s,"quoteStyle")&&(i.quoteStyle=s.quoteStyle),e(t,i,r+1,o)}return e(t,s,r+1,o)}if("function"===typeof t&&!Y(t)){var _=te(t),y=ge(t,v);return"[Function"+(_?": "+_:" (anonymous)")+"]"+(y.length>0?" { "+S.call(y,", ")+" }":"")}if(J(t)){var b=A?M.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):L.call(t);return"object"!==typeof t||A?b:de(b)}if(ce(t)){for(var k="<"+C.call(String(t.nodeName)),w=t.attributes||[],E=0;E<w.length;E++)k+=" "+w[E].name+"="+F(G(w[E].value),"double",s);return k+=">",t.childNodes&&t.childNodes.length&&(k+="..."),k+="</"+C.call(String(t.nodeName))+">",k}if(z(t)){if(0===t.length)return"[]";var D=ge(t,v);return m&&!he(D)?"["+ve(D,m)+"]":"[ "+S.call(D,", ")+" ]"}if(q(t)){var V=ge(t,v);return"cause"in Error.prototype||!("cause"in t)||x.call(t,"cause")?0===V.length?"["+String(t)+"]":"{ ["+String(t)+"] "+S.call(V,", ")+" }":"{ ["+String(t)+"] "+S.call(I.call("[cause]: "+v(t.cause),V),", ")+" }"}if("object"===typeof t&&c){if(B&&"function"===typeof t[B]&&U)return U(t,{depth:h-r});if("symbol"!==c&&"function"===typeof t.inspect)return t.inspect()}if(re(t)){var X=[];return i&&i.call(t,(function(e,n){X.push(v(n,t,!0)+" => "+v(e,t))})),fe("Map",a.call(t),X,m)}if(ie(t)){var ue=[];return u&&u.call(t,(function(e){ue.push(v(e,t))})),fe("Set",l.call(t),ue,m)}if(oe(t))return pe("WeakMap");if(se(t))return pe("WeakSet");if(ae(t))return pe("WeakRef");if(K(t))return de(v(Number(t)));if(Q(t))return de(v(j.call(t)));if($(t))return de(g.call(t));if(W(t))return de(v(String(t)));if(!H(t)&&!Y(t)){var _e=ge(t,v),ye=R?R(t)===Object.prototype:t instanceof Object||t.constructor===Object,be=t instanceof Object?"":"null prototype",Oe=!ye&&N&&Object(t)===t&&N in t?O.call(ee(t),8,-1):be?"Object":"",Me=ye||"function"!==typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"",ke=Me+(Oe||be?"["+S.call(I.call([],Oe||[],be||[]),": ")+"] ":"");return 0===_e.length?ke+"{}":m?ke+"{"+ve(_e,m)+"}":ke+"{ "+S.call(_e,", ")+" }"}return String(t)};var X=Object.prototype.hasOwnProperty||function(e){return e in this};function Z(e,t){return X.call(e,t)}function ee(e){return _.call(e)}function te(e){if(e.name)return e.name;var t=b.call(y.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function ne(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function re(e){if(!a||!e||"object"!==typeof e)return!1;try{a.call(e);try{l.call(e)}catch(t){return!0}return e instanceof Map}catch(n){}return!1}function oe(e){if(!p||!e||"object"!==typeof e)return!1;try{p.call(e,p);try{h.call(e,h)}catch(t){return!0}return e instanceof WeakMap}catch(n){}return!1}function ae(e){if(!v||!e||"object"!==typeof e)return!1;try{return v.call(e),!0}catch(t){}return!1}function ie(e){if(!l||!e||"object"!==typeof e)return!1;try{l.call(e);try{a.call(e)}catch(t){return!0}return e instanceof Set}catch(n){}return!1}function se(e){if(!h||!e||"object"!==typeof e)return!1;try{h.call(e,h);try{p.call(e,p)}catch(t){return!0}return e instanceof WeakSet}catch(n){}return!1}function ce(e){return!(!e||"object"!==typeof e)&&("undefined"!==typeof HTMLElement&&e instanceof HTMLElement||"string"===typeof e.nodeName&&"function"===typeof e.getAttribute)}function le(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return le(O.call(e,0,t.maxStringLength),t)+r}var o=M.call(M.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,ue);return F(o,"single",t)}function ue(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+k.call(t.toString(16))}function de(e){return"Object("+e+")"}function pe(e){return e+" { ? }"}function fe(e,t,n,r){var o=r?ve(n,r):S.call(n,", ");return e+" ("+t+") {"+o+"}"}function he(e){for(var t=0;t<e.length;t++)if(ne(e[t],"\n")>=0)return!1;return!0}function me(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"===typeof e.indent&&e.indent>0))return null;n=S.call(Array(e.indent+1)," ")}return{base:n,prev:S.call(Array(t+1),n)}}function ve(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+S.call(e,","+n)+"\n"+t.prev}function ge(e,t){var n=z(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=Z(e,o)?t(e[o],e):""}var a,i="function"===typeof D?D(e):[];if(A){a={};for(var s=0;s<i.length;s++)a["$"+i[s]]=i[s]}for(var c in e)Z(e,c)&&(n&&String(Number(c))===c&&c<e.length||A&&a["$"+c]instanceof Symbol||(w.call(/[^\w$]/,c)?r.push(t(c,e)+": "+t(e[c],e)):r.push(c+": "+t(e[c],e))));if("function"===typeof D)for(var l=0;l<i.length;l++)x.call(e,i[l])&&r.push("["+t(i[l])+"]: "+t(e[i[l]],e));return r}},"274e":function(e,t,n){"use strict";var r=n("f94a");r("split")},"27ac":function(e,t,n){"use strict";var r=n("f4c9");e.exports=r},"27b6":function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return i}));var r=n("7a23"),o=n("0898"),a=n("d5eb");const i=Object(o["a"])({type:String,values:a["b"],required:!1}),s=Symbol("size"),c=()=>{const e=Object(r["inject"])(s,{});return Object(r["computed"])(()=>Object(r["unref"])(e.size)||"")}},"27bd":function(e,t,n){"use strict";n("a551");var r=n("764b"),o=r.Object;e.exports=function(e){return o.getOwnPropertyNames(e)}},"27d1":function(e,t,n){"use strict";var r=n("bc59");e.exports=r},2834:function(e,t,n){"use strict";var r=n("ebb5"),o=n("e330"),a=n("59ed"),i=n("dfb9"),s=r.aTypedArray,c=r.getTypedArrayConstructor,l=r.exportTypedArrayMethod,u=o(r.TypedArrayPrototype.sort);l("toSorted",(function(e){void 0!==e&&a(e);var t=s(this),n=i(c(t),t);return u(n,e)}))},2874:function(e,t,n){"use strict";var r=n("d63b"),o=n("4180").f,a=n("0273"),i=n("0e6f"),s=n("1c0a"),c=n("0363"),l=c("toStringTag");e.exports=function(e,t,n,c){if(e){var u=n?e:e.prototype;i(u,l)||o(u,l,{configurable:!0,value:t}),c&&!r&&a(u,"toString",s)}}},2921:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"sa":"SA":n?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần trước lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",w:"một tuần",ww:"%d tuần",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}});return t}))},"293c":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var o=t.words[r];return 1===r.length?n?o[0]:o[1]:e+" "+t.correctGrammaticalCase(e,o)}},n=e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){var e=["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"];return e[this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return n}))},"298b":function(e,t,n){e.exports=n("7c74")},"2a04":function(e,t,n){!function(t,n){e.exports=n()}(0,(function(){"use strict";var e="week",t="year";return function(n,r,o){var a=r.prototype;a.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 a=o(this).startOf(t).add(1,t).date(r),i=o(this).endOf(e);if(a.isBefore(i))return 1}var s=o(this).startOf(t).date(r).startOf(e).subtract(1,"millisecond"),c=this.diff(s,e,!0);return c<0?o(this).startOf("week").week():Math.ceil(c)},a.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}}))},"2a0a":function(e,t,n){"use strict";n("b309")},"2b0b":function(e,t,n){e.exports=n("6ebd")},"2b1b":function(e,t,n){"use strict";var r=n("04ff");e.exports=r},"2b58":function(e,t,n){e.exports=n("2d0f")},"2ba4":function(e,t,n){"use strict";var r=n("40d5"),o=Function.prototype,a=o.apply,i=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?i.bind(a):function(){return i.apply(a,arguments)})},"2bfb":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"vm":"VM":n?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}});return t}))},"2c28":function(e,t,n){"use strict";(function(e){n.d(t,"onClickOutside",(function(){return c})),n.d(t,"onLongPress",(function(){return u})),n.d(t,"useElementBounding",(function(){return _}));var r=n("3654"),o=n("f890");function a(e){var t;const n=Object(o["unref"])(e);return null!=(t=null==n?void 0:n.$el)?t:n}const i=r["isClient"]?window:void 0;r["isClient"]&&window.document,r["isClient"]&&window.navigator,r["isClient"]&&window.location;function s(...e){let t,n,s,c;if(Object(r["isString"])(e[0])?([n,s,c]=e,t=i):[t,n,s,c]=e,!t)return r["noop"];let l=r["noop"];const u=Object(o["watch"])(()=>a(t),e=>{l(),e&&(e.addEventListener(n,s,c),l=()=>{e.removeEventListener(n,s,c),l=r["noop"]})},{immediate:!0,flush:"post"}),d=()=>{u(),l()};return Object(r["tryOnScopeDispose"])(d),d}function c(e,t,n={}){const{window:r=i,ignore:c,capture:l=!0,detectIframe:u=!1}=n;if(!r)return;const d=Object(o["ref"])(!0);let p;const f=n=>{r.clearTimeout(p);const o=a(e),i=n.composedPath();o&&o!==n.target&&!i.includes(o)&&d.value&&(c&&c.length>0&&c.some(e=>{const t=a(e);return t&&(n.target===t||i.includes(t))})||t(n))},h=[s(r,"click",f,{passive:!0,capture:l}),s(r,"pointerdown",t=>{const n=a(e);d.value=!!n&&!t.composedPath().includes(n)},{passive:!0}),s(r,"pointerup",e=>{if(0===e.button){const t=e.composedPath();e.composedPath=()=>t,p=r.setTimeout(()=>f(e),50)}},{passive:!0}),u&&s(r,"blur",n=>{var r;const o=a(e);"IFRAME"!==(null==(r=document.activeElement)?void 0:r.tagName)||(null==o?void 0:o.contains(document.activeElement))||t(n)})].filter(Boolean),m=()=>h.forEach(e=>e());return m}Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;const l=500;function u(e,t,n){var r,i;const c=Object(o["computed"])(()=>a(e));let u=null;function d(){null!=u&&(clearTimeout(u),u=null)}function p(e){var r,o,a,i;(null==(r=null==n?void 0:n.modifiers)?void 0:r.self)&&e.target!==c.value||(d(),(null==(o=null==n?void 0:n.modifiers)?void 0:o.prevent)&&e.preventDefault(),(null==(a=null==n?void 0:n.modifiers)?void 0:a.stop)&&e.stopPropagation(),u=setTimeout(()=>t(e),null!=(i=null==n?void 0:n.delay)?i:l))}const f={capture:null==(r=null==n?void 0:n.modifiers)?void 0:r.capture,once:null==(i=null==n?void 0:n.modifiers)?void 0:i.once};s(c,"pointerdown",p,f),s(c,"pointerup",d,f),s(c,"pointerleave",d,f)}Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;const d="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof e?e:"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;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var f=Object.getOwnPropertySymbols,h=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable,v=(e,t)=>{var n={};for(var r in e)h.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&f)for(var r of f(e))t.indexOf(r)<0&&m.call(e,r)&&(n[r]=e[r]);return n};function g(e,t,n={}){const s=n,{window:c=i}=s,l=v(s,["window"]);let u;const d=c&&"ResizeObserver"in c,p=()=>{u&&(u.disconnect(),u=void 0)},f=Object(o["watch"])(()=>a(e),e=>{p(),d&&c&&e&&(u=new ResizeObserver(t),u.observe(e,l))},{immediate:!0,flush:"post"}),h=()=>{p(),f()};return Object(r["tryOnScopeDispose"])(h),{isSupported:d,stop:h}}function _(e,t={}){const{reset:n=!0,windowResize:i=!0,windowScroll:c=!0,immediate:l=!0}=t,u=Object(o["ref"])(0),d=Object(o["ref"])(0),p=Object(o["ref"])(0),f=Object(o["ref"])(0),h=Object(o["ref"])(0),m=Object(o["ref"])(0),v=Object(o["ref"])(0),_=Object(o["ref"])(0);function y(){const t=a(e);if(!t)return void(n&&(u.value=0,d.value=0,p.value=0,f.value=0,h.value=0,m.value=0,v.value=0,_.value=0));const r=t.getBoundingClientRect();u.value=r.height,d.value=r.bottom,p.value=r.left,f.value=r.right,h.value=r.top,m.value=r.width,v.value=r.x,_.value=r.y}return g(e,y),Object(o["watch"])(()=>a(e),e=>!e&&y()),c&&s("scroll",y,{passive:!0}),i&&s("resize",y,{passive:!0}),Object(r["tryOnMounted"])(()=>{l&&y()}),{height:u,bottom:d,left:p,right:f,top:h,width:m,x:v,y:_,update:y}}Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;new Map;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;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 y;(function(e){e["UP"]="UP",e["RIGHT"]="RIGHT",e["DOWN"]="DOWN",e["LEFT"]="LEFT",e["NONE"]="NONE"})(y||(y={}));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["identity"]}).call(this,n("c8ba"))},"2c34":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("1ad4");const o=r["c"].create({name:"text",group:"inline"})},"2c6c":function(e,t,n){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"2c75":function(e,t,n){"use strict";var r=n("7168"),o=n("c978");e.exports=function(e){var t=r(e,"string");return o(t)?t:t+""}},"2d00":function(e,t,n){"use strict";var r,o,a=n("da84"),i=n("342f"),s=a.process,c=a.Deno,l=s&&s.versions||c&&c.version,u=l&&l.v8;u&&(r=u.split("."),o=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&i&&(r=i.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=i.match(/Chrome\/(\d+)/),r&&(o=+r[1]))),e.exports=o},"2d0f":function(e,t,n){"use strict";var r=n("dce2");e.exports=r},"2d80":function(e,t,n){e.exports=n("0e43")},"2d83":function(e,t,n){"use strict";var r=n("387f");e.exports=function(e,t,n,o,a){var i=new Error(e);return r(i,t,n,o,a)}},"2d9a":function(e,t,n){"use strict";var r=n("ac0c");e.exports=r},"2e10":function(e,t,n){e.exports=n("b1a6")},"2e13":function(e,t,n){"use strict";var r=n("6f8d");e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},"2e67":function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},"2e85":function(e,t,n){"use strict";var r=n("f94a");r("replace")},"2e8c":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}});return t}))},"2ec7":function(e,t,n){"use strict";var r=n("716a");n("5145"),e.exports=r},"2ef0":function(e,t,n){(function(e,r){var o;
|
||
/**
|
||
* @license
|
||
* Lodash <https://lodash.com/>
|
||
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
||
* Released under MIT license <https://lodash.com/license>
|
||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
||
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||
*/(function(){var a,i="4.17.21",s=200,c="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",u="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",p=500,f="__lodash_placeholder__",h=1,m=2,v=4,g=1,_=2,y=1,b=2,O=4,M=8,k=16,C=32,w=64,I=128,S=256,T=512,E=30,j="...",D=800,L=16,A=1,N=2,x=3,R=1/0,P=9007199254740991,U=17976931348623157e292,V=NaN,B=4294967295,F=B-1,G=B>>>1,z=[["ary",I],["bind",y],["bindKey",b],["curry",M],["curryRight",k],["flip",T],["partial",C],["partialRight",w],["rearg",S]],H="[object Arguments]",Y="[object Array]",q="[object AsyncFunction]",W="[object Boolean]",K="[object Date]",$="[object DOMException]",J="[object Error]",Q="[object Function]",X="[object GeneratorFunction]",Z="[object Map]",ee="[object Number]",te="[object Null]",ne="[object Object]",re="[object Promise]",oe="[object Proxy]",ae="[object RegExp]",ie="[object Set]",se="[object String]",ce="[object Symbol]",le="[object Undefined]",ue="[object WeakMap]",de="[object WeakSet]",pe="[object ArrayBuffer]",fe="[object DataView]",he="[object Float32Array]",me="[object Float64Array]",ve="[object Int8Array]",ge="[object Int16Array]",_e="[object Int32Array]",ye="[object Uint8Array]",be="[object Uint8ClampedArray]",Oe="[object Uint16Array]",Me="[object Uint32Array]",ke=/\b__p \+= '';/g,Ce=/\b(__p \+=) '' \+/g,we=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ie=/&(?:amp|lt|gt|quot|#39);/g,Se=/[&<>"']/g,Te=RegExp(Ie.source),Ee=RegExp(Se.source),je=/<%-([\s\S]+?)%>/g,De=/<%([\s\S]+?)%>/g,Le=/<%=([\s\S]+?)%>/g,Ae=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ne=/^\w*$/,xe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Re=/[\\^$.*+?()[\]{}|]/g,Pe=RegExp(Re.source),Ue=/^\s+/,Ve=/\s/,Be=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Fe=/\{\n\/\* \[wrapped with (.+)\] \*/,Ge=/,? & /,ze=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,He=/[()=,{}\[\]\/\s]/,Ye=/\\(\\)?/g,qe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,We=/\w*$/,Ke=/^[-+]0x[0-9a-f]+$/i,$e=/^0b[01]+$/i,Je=/^\[object .+?Constructor\]$/,Qe=/^0o[0-7]+$/i,Xe=/^(?:0|[1-9]\d*)$/,Ze=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,et=/($^)/,tt=/['\n\r\u2028\u2029\\]/g,nt="\\ud800-\\udfff",rt="\\u0300-\\u036f",ot="\\ufe20-\\ufe2f",at="\\u20d0-\\u20ff",it=rt+ot+at,st="\\u2700-\\u27bf",ct="a-z\\xdf-\\xf6\\xf8-\\xff",lt="\\xac\\xb1\\xd7\\xf7",ut="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",dt="\\u2000-\\u206f",pt=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ft="A-Z\\xc0-\\xd6\\xd8-\\xde",ht="\\ufe0e\\ufe0f",mt=lt+ut+dt+pt,vt="['’]",gt="["+nt+"]",_t="["+mt+"]",yt="["+it+"]",bt="\\d+",Ot="["+st+"]",Mt="["+ct+"]",kt="[^"+nt+mt+bt+st+ct+ft+"]",Ct="\\ud83c[\\udffb-\\udfff]",wt="(?:"+yt+"|"+Ct+")",It="[^"+nt+"]",St="(?:\\ud83c[\\udde6-\\uddff]){2}",Tt="[\\ud800-\\udbff][\\udc00-\\udfff]",Et="["+ft+"]",jt="\\u200d",Dt="(?:"+Mt+"|"+kt+")",Lt="(?:"+Et+"|"+kt+")",At="(?:"+vt+"(?:d|ll|m|re|s|t|ve))?",Nt="(?:"+vt+"(?:D|LL|M|RE|S|T|VE))?",xt=wt+"?",Rt="["+ht+"]?",Pt="(?:"+jt+"(?:"+[It,St,Tt].join("|")+")"+Rt+xt+")*",Ut="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Vt="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Bt=Rt+xt+Pt,Ft="(?:"+[Ot,St,Tt].join("|")+")"+Bt,Gt="(?:"+[It+yt+"?",yt,St,Tt,gt].join("|")+")",zt=RegExp(vt,"g"),Ht=RegExp(yt,"g"),Yt=RegExp(Ct+"(?="+Ct+")|"+Gt+Bt,"g"),qt=RegExp([Et+"?"+Mt+"+"+At+"(?="+[_t,Et,"$"].join("|")+")",Lt+"+"+Nt+"(?="+[_t,Et+Dt,"$"].join("|")+")",Et+"?"+Dt+"+"+At,Et+"+"+Nt,Vt,Ut,bt,Ft].join("|"),"g"),Wt=RegExp("["+jt+nt+it+ht+"]"),Kt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,$t=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Jt=-1,Qt={};Qt[he]=Qt[me]=Qt[ve]=Qt[ge]=Qt[_e]=Qt[ye]=Qt[be]=Qt[Oe]=Qt[Me]=!0,Qt[H]=Qt[Y]=Qt[pe]=Qt[W]=Qt[fe]=Qt[K]=Qt[J]=Qt[Q]=Qt[Z]=Qt[ee]=Qt[ne]=Qt[ae]=Qt[ie]=Qt[se]=Qt[ue]=!1;var Xt={};Xt[H]=Xt[Y]=Xt[pe]=Xt[fe]=Xt[W]=Xt[K]=Xt[he]=Xt[me]=Xt[ve]=Xt[ge]=Xt[_e]=Xt[Z]=Xt[ee]=Xt[ne]=Xt[ae]=Xt[ie]=Xt[se]=Xt[ce]=Xt[ye]=Xt[be]=Xt[Oe]=Xt[Me]=!0,Xt[J]=Xt[Q]=Xt[ue]=!1;var Zt={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},en={"&":"&","<":"<",">":">",'"':""","'":"'"},tn={"&":"&","<":"<",">":">",""":'"',"'":"'"},nn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},rn=parseFloat,on=parseInt,an="object"==typeof e&&e&&e.Object===Object&&e,sn="object"==typeof self&&self&&self.Object===Object&&self,cn=an||sn||Function("return this")(),ln=t&&!t.nodeType&&t,un=ln&&"object"==typeof r&&r&&!r.nodeType&&r,dn=un&&un.exports===ln,pn=dn&&an.process,fn=function(){try{var e=un&&un.require&&un.require("util").types;return e||pn&&pn.binding&&pn.binding("util")}catch(t){}}(),hn=fn&&fn.isArrayBuffer,mn=fn&&fn.isDate,vn=fn&&fn.isMap,gn=fn&&fn.isRegExp,_n=fn&&fn.isSet,yn=fn&&fn.isTypedArray;function bn(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)}function On(e,t,n,r){var o=-1,a=null==e?0:e.length;while(++o<a){var i=e[o];t(r,i,n(i),e)}return r}function Mn(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(!1===t(e[n],n,e))break;return e}function kn(e,t){var n=null==e?0:e.length;while(n--)if(!1===t(e[n],n,e))break;return e}function Cn(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(!t(e[n],n,e))return!1;return!0}function wn(e,t){var n=-1,r=null==e?0:e.length,o=0,a=[];while(++n<r){var i=e[n];t(i,n,e)&&(a[o++]=i)}return a}function In(e,t){var n=null==e?0:e.length;return!!n&&Un(e,t,0)>-1}function Sn(e,t,n){var r=-1,o=null==e?0:e.length;while(++r<o)if(n(t,e[r]))return!0;return!1}function Tn(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}function En(e,t){var n=-1,r=t.length,o=e.length;while(++n<r)e[o+n]=t[n];return e}function jn(e,t,n,r){var o=-1,a=null==e?0:e.length;r&&a&&(n=e[++o]);while(++o<a)n=t(n,e[o],o,e);return n}function Dn(e,t,n,r){var o=null==e?0:e.length;r&&o&&(n=e[--o]);while(o--)n=t(n,e[o],o,e);return n}function Ln(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 An=Gn("length");function Nn(e){return e.split("")}function xn(e){return e.match(ze)||[]}function Rn(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function Pn(e,t,n,r){var o=e.length,a=n+(r?1:-1);while(r?a--:++a<o)if(t(e[a],a,e))return a;return-1}function Un(e,t,n){return t===t?hr(e,t,n):Pn(e,Bn,n)}function Vn(e,t,n,r){var o=n-1,a=e.length;while(++o<a)if(r(e[o],t))return o;return-1}function Bn(e){return e!==e}function Fn(e,t){var n=null==e?0:e.length;return n?qn(e,t)/n:V}function Gn(e){return function(t){return null==t?a:t[e]}}function zn(e){return function(t){return null==e?a:e[t]}}function Hn(e,t,n,r,o){return o(e,(function(e,o,a){n=r?(r=!1,e):t(n,e,o,a)})),n}function Yn(e,t){var n=e.length;e.sort(t);while(n--)e[n]=e[n].value;return e}function qn(e,t){var n,r=-1,o=e.length;while(++r<o){var i=t(e[r]);i!==a&&(n=n===a?i:n+i)}return n}function Wn(e,t){var n=-1,r=Array(e);while(++n<e)r[n]=t(n);return r}function Kn(e,t){return Tn(t,(function(t){return[t,e[t]]}))}function $n(e){return e?e.slice(0,_r(e)+1).replace(Ue,""):e}function Jn(e){return function(t){return e(t)}}function Qn(e,t){return Tn(t,(function(t){return e[t]}))}function Xn(e,t){return e.has(t)}function Zn(e,t){var n=-1,r=e.length;while(++n<r&&Un(t,e[n],0)>-1);return n}function er(e,t){var n=e.length;while(n--&&Un(t,e[n],0)>-1);return n}function tr(e,t){var n=e.length,r=0;while(n--)e[n]===t&&++r;return r}var nr=zn(Zt),rr=zn(en);function or(e){return"\\"+nn[e]}function ar(e,t){return null==e?a:e[t]}function ir(e){return Wt.test(e)}function sr(e){return Kt.test(e)}function cr(e){var t,n=[];while(!(t=e.next()).done)n.push(t.value);return n}function lr(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function ur(e,t){return function(n){return e(t(n))}}function dr(e,t){var n=-1,r=e.length,o=0,a=[];while(++n<r){var i=e[n];i!==t&&i!==f||(e[n]=f,a[o++]=n)}return a}function pr(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function fr(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function hr(e,t,n){var r=n-1,o=e.length;while(++r<o)if(e[r]===t)return r;return-1}function mr(e,t,n){var r=n+1;while(r--)if(e[r]===t)return r;return r}function vr(e){return ir(e)?br(e):An(e)}function gr(e){return ir(e)?Or(e):Nn(e)}function _r(e){var t=e.length;while(t--&&Ve.test(e.charAt(t)));return t}var yr=zn(tn);function br(e){var t=Yt.lastIndex=0;while(Yt.test(e))++t;return t}function Or(e){return e.match(Yt)||[]}function Mr(e){return e.match(qt)||[]}var kr=function e(t){t=null==t?cn:Cr.defaults(cn.Object(),t,Cr.pick(cn,$t));var n=t.Array,r=t.Date,o=t.Error,Ve=t.Function,ze=t.Math,nt=t.Object,rt=t.RegExp,ot=t.String,at=t.TypeError,it=n.prototype,st=Ve.prototype,ct=nt.prototype,lt=t["__core-js_shared__"],ut=st.toString,dt=ct.hasOwnProperty,pt=0,ft=function(){var e=/[^.]+$/.exec(lt&<.keys&<.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),ht=ct.toString,mt=ut.call(nt),vt=cn._,gt=rt("^"+ut.call(dt).replace(Re,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_t=dn?t.Buffer:a,yt=t.Symbol,bt=t.Uint8Array,Ot=_t?_t.allocUnsafe:a,Mt=ur(nt.getPrototypeOf,nt),kt=nt.create,Ct=ct.propertyIsEnumerable,wt=it.splice,It=yt?yt.isConcatSpreadable:a,St=yt?yt.iterator:a,Tt=yt?yt.toStringTag:a,Et=function(){try{var e=Wi(nt,"defineProperty");return e({},"",{}),e}catch(t){}}(),jt=t.clearTimeout!==cn.clearTimeout&&t.clearTimeout,Dt=r&&r.now!==cn.Date.now&&r.now,Lt=t.setTimeout!==cn.setTimeout&&t.setTimeout,At=ze.ceil,Nt=ze.floor,xt=nt.getOwnPropertySymbols,Rt=_t?_t.isBuffer:a,Pt=t.isFinite,Ut=it.join,Vt=ur(nt.keys,nt),Bt=ze.max,Ft=ze.min,Gt=r.now,Yt=t.parseInt,qt=ze.random,Wt=it.reverse,Kt=Wi(t,"DataView"),Zt=Wi(t,"Map"),en=Wi(t,"Promise"),tn=Wi(t,"Set"),nn=Wi(t,"WeakMap"),an=Wi(nt,"create"),sn=nn&&new nn,ln={},un=Ls(Kt),pn=Ls(Zt),fn=Ls(en),An=Ls(tn),Nn=Ls(nn),zn=yt?yt.prototype:a,hr=zn?zn.valueOf:a,br=zn?zn.toString:a;function Or(e){if(wu(e)&&!cu(e)&&!(e instanceof Sr)){if(e instanceof Ir)return e;if(dt.call(e,"__wrapped__"))return Ns(e)}return new Ir(e)}var kr=function(){function e(){}return function(t){if(!Cu(t))return{};if(kt)return kt(t);e.prototype=t;var n=new e;return e.prototype=a,n}}();function wr(){}function Ir(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=a}function Sr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=B,this.__views__=[]}function Tr(){var e=new Sr(this.__wrapped__);return e.__actions__=oi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=oi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=oi(this.__views__),e}function Er(){if(this.__filtered__){var e=new Sr(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function jr(){var e=this.__wrapped__.value(),t=this.__dir__,n=cu(e),r=t<0,o=n?e.length:0,a=Xi(0,o,this.__views__),i=a.start,s=a.end,c=s-i,l=r?s:i-1,u=this.__iteratees__,d=u.length,p=0,f=Ft(c,this.__takeCount__);if(!n||!r&&o==c&&f==c)return Va(e,this.__actions__);var h=[];e:while(c--&&p<f){l+=t;var m=-1,v=e[l];while(++m<d){var g=u[m],_=g.iteratee,y=g.type,b=_(v);if(y==N)v=b;else if(!b){if(y==A)continue e;break e}}h[p++]=v}return h}function Dr(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])}}function Lr(){this.__data__=an?an(null):{},this.size=0}function Ar(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function Nr(e){var t=this.__data__;if(an){var n=t[e];return n===d?a:n}return dt.call(t,e)?t[e]:a}function xr(e){var t=this.__data__;return an?t[e]!==a:dt.call(t,e)}function Rr(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=an&&t===a?d:t,this}function Pr(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])}}function Ur(){this.__data__=[],this.size=0}function Vr(e){var t=this.__data__,n=uo(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():wt.call(t,n,1),--this.size,!0}function Br(e){var t=this.__data__,n=uo(t,e);return n<0?a:t[n][1]}function Fr(e){return uo(this.__data__,e)>-1}function Gr(e,t){var n=this.__data__,r=uo(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function zr(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])}}function Hr(){this.size=0,this.__data__={hash:new Dr,map:new(Zt||Pr),string:new Dr}}function Yr(e){var t=Yi(this,e)["delete"](e);return this.size-=t?1:0,t}function qr(e){return Yi(this,e).get(e)}function Wr(e){return Yi(this,e).has(e)}function Kr(e,t){var n=Yi(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function $r(e){var t=-1,n=null==e?0:e.length;this.__data__=new zr;while(++t<n)this.add(e[t])}function Jr(e){return this.__data__.set(e,d),this}function Qr(e){return this.__data__.has(e)}function Xr(e){var t=this.__data__=new Pr(e);this.size=t.size}function Zr(){this.__data__=new Pr,this.size=0}function eo(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n}function to(e){return this.__data__.get(e)}function no(e){return this.__data__.has(e)}function ro(e,t){var n=this.__data__;if(n instanceof Pr){var r=n.__data__;if(!Zt||r.length<s-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new zr(r)}return n.set(e,t),this.size=n.size,this}function oo(e,t){var n=cu(e),r=!n&&su(e),o=!n&&!r&&fu(e),a=!n&&!r&&!o&&Bu(e),i=n||r||o||a,s=i?Wn(e.length,ot):[],c=s.length;for(var l in e)!t&&!dt.call(e,l)||i&&("length"==l||o&&("offset"==l||"parent"==l)||a&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||is(l,c))||s.push(l);return s}function ao(e){var t=e.length;return t?e[_a(0,t-1)]:a}function io(e,t){return Es(oi(e),go(t,0,e.length))}function so(e){return Es(oi(e))}function co(e,t,n){(n!==a&&!ou(e[t],n)||n===a&&!(t in e))&&mo(e,t,n)}function lo(e,t,n){var r=e[t];dt.call(e,t)&&ou(r,n)&&(n!==a||t in e)||mo(e,t,n)}function uo(e,t){var n=e.length;while(n--)if(ou(e[n][0],t))return n;return-1}function po(e,t,n,r){return ko(e,(function(e,o,a){t(r,e,n(e),a)})),r}function fo(e,t){return e&&ai(t,Md(t),e)}function ho(e,t){return e&&ai(t,kd(t),e)}function mo(e,t,n){"__proto__"==t&&Et?Et(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function vo(e,t){var r=-1,o=t.length,i=n(o),s=null==e;while(++r<o)i[r]=s?a:vd(e,t[r]);return i}function go(e,t,n){return e===e&&(n!==a&&(e=e<=n?e:n),t!==a&&(e=e>=t?e:t)),e}function _o(e,t,n,r,o,i){var s,c=t&h,l=t&m,u=t&v;if(n&&(s=o?n(e,r,o,i):n(e)),s!==a)return s;if(!Cu(e))return e;var d=cu(e);if(d){if(s=ts(e),!c)return oi(e,s)}else{var p=Qi(e),f=p==Q||p==X;if(fu(e))return Ka(e,c);if(p==ne||p==H||f&&!o){if(s=l||f?{}:ns(e),!c)return l?si(e,ho(s,e)):ii(e,fo(s,e))}else{if(!Xt[p])return o?e:{};s=rs(e,p,c)}}i||(i=new Xr);var g=i.get(e);if(g)return g;i.set(e,s),Pu(e)?e.forEach((function(r){s.add(_o(r,t,n,r,e,i))})):Iu(e)&&e.forEach((function(r,o){s.set(o,_o(r,t,n,o,e,i))}));var _=u?l?Bi:Vi:l?kd:Md,y=d?a:_(e);return Mn(y||e,(function(r,o){y&&(o=r,r=e[o]),lo(s,o,_o(r,t,n,o,e,i))})),s}function yo(e){var t=Md(e);return function(n){return bo(n,e,t)}}function bo(e,t,n){var r=n.length;if(null==e)return!r;e=nt(e);while(r--){var o=n[r],i=t[o],s=e[o];if(s===a&&!(o in e)||!i(s))return!1}return!0}function Oo(e,t,n){if("function"!=typeof e)throw new at(l);return ws((function(){e.apply(a,n)}),t)}function Mo(e,t,n,r){var o=-1,a=In,i=!0,c=e.length,l=[],u=t.length;if(!c)return l;n&&(t=Tn(t,Jn(n))),r?(a=Sn,i=!1):t.length>=s&&(a=Xn,i=!1,t=new $r(t));e:while(++o<c){var d=e[o],p=null==n?d:n(d);if(d=r||0!==d?d:0,i&&p===p){var f=u;while(f--)if(t[f]===p)continue e;l.push(d)}else a(t,p,r)||l.push(d)}return l}Or.templateSettings={escape:je,evaluate:De,interpolate:Le,variable:"",imports:{_:Or}},Or.prototype=wr.prototype,Or.prototype.constructor=Or,Ir.prototype=kr(wr.prototype),Ir.prototype.constructor=Ir,Sr.prototype=kr(wr.prototype),Sr.prototype.constructor=Sr,Dr.prototype.clear=Lr,Dr.prototype["delete"]=Ar,Dr.prototype.get=Nr,Dr.prototype.has=xr,Dr.prototype.set=Rr,Pr.prototype.clear=Ur,Pr.prototype["delete"]=Vr,Pr.prototype.get=Br,Pr.prototype.has=Fr,Pr.prototype.set=Gr,zr.prototype.clear=Hr,zr.prototype["delete"]=Yr,zr.prototype.get=qr,zr.prototype.has=Wr,zr.prototype.set=Kr,$r.prototype.add=$r.prototype.push=Jr,$r.prototype.has=Qr,Xr.prototype.clear=Zr,Xr.prototype["delete"]=eo,Xr.prototype.get=to,Xr.prototype.has=no,Xr.prototype.set=ro;var ko=ui(Lo),Co=ui(Ao,!0);function wo(e,t){var n=!0;return ko(e,(function(e,r,o){return n=!!t(e,r,o),n})),n}function Io(e,t,n){var r=-1,o=e.length;while(++r<o){var i=e[r],s=t(i);if(null!=s&&(c===a?s===s&&!Vu(s):n(s,c)))var c=s,l=i}return l}function So(e,t,n,r){var o=e.length;n=Ku(n),n<0&&(n=-n>o?0:o+n),r=r===a||r>o?o:Ku(r),r<0&&(r+=o),r=n>r?0:$u(r);while(n<r)e[n++]=t;return e}function To(e,t){var n=[];return ko(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function Eo(e,t,n,r,o){var a=-1,i=e.length;n||(n=as),o||(o=[]);while(++a<i){var s=e[a];t>0&&n(s)?t>1?Eo(s,t-1,n,r,o):En(o,s):r||(o[o.length]=s)}return o}var jo=di(),Do=di(!0);function Lo(e,t){return e&&jo(e,t,Md)}function Ao(e,t){return e&&Do(e,t,Md)}function No(e,t){return wn(t,(function(t){return Ou(e[t])}))}function xo(e,t){t=Ha(t,e);var n=0,r=t.length;while(null!=e&&n<r)e=e[Ds(t[n++])];return n&&n==r?e:a}function Ro(e,t,n){var r=t(e);return cu(e)?r:En(r,n(e))}function Po(e){return null==e?e===a?le:te:Tt&&Tt in nt(e)?Ki(e):ys(e)}function Uo(e,t){return e>t}function Vo(e,t){return null!=e&&dt.call(e,t)}function Bo(e,t){return null!=e&&t in nt(e)}function Fo(e,t,n){return e>=Ft(t,n)&&e<Bt(t,n)}function Go(e,t,r){var o=r?Sn:In,i=e[0].length,s=e.length,c=s,l=n(s),u=1/0,d=[];while(c--){var p=e[c];c&&t&&(p=Tn(p,Jn(t))),u=Ft(p.length,u),l[c]=!r&&(t||i>=120&&p.length>=120)?new $r(c&&p):a}p=e[0];var f=-1,h=l[0];e:while(++f<i&&d.length<u){var m=p[f],v=t?t(m):m;if(m=r||0!==m?m:0,!(h?Xn(h,v):o(d,v,r))){c=s;while(--c){var g=l[c];if(!(g?Xn(g,v):o(e[c],v,r)))continue e}h&&h.push(v),d.push(m)}}return d}function zo(e,t,n,r){return Lo(e,(function(e,o,a){t(r,n(e),o,a)})),r}function Ho(e,t,n){t=Ha(t,e),e=Os(e,t);var r=null==e?e:e[Ds(ac(t))];return null==r?a:bn(r,e,n)}function Yo(e){return wu(e)&&Po(e)==H}function qo(e){return wu(e)&&Po(e)==pe}function Wo(e){return wu(e)&&Po(e)==K}function Ko(e,t,n,r,o){return e===t||(null==e||null==t||!wu(e)&&!wu(t)?e!==e&&t!==t:$o(e,t,n,r,Ko,o))}function $o(e,t,n,r,o,a){var i=cu(e),s=cu(t),c=i?Y:Qi(e),l=s?Y:Qi(t);c=c==H?ne:c,l=l==H?ne:l;var u=c==ne,d=l==ne,p=c==l;if(p&&fu(e)){if(!fu(t))return!1;i=!0,u=!1}if(p&&!u)return a||(a=new Xr),i||Bu(e)?xi(e,t,n,r,o,a):Ri(e,t,c,n,r,o,a);if(!(n&g)){var f=u&&dt.call(e,"__wrapped__"),h=d&&dt.call(t,"__wrapped__");if(f||h){var m=f?e.value():e,v=h?t.value():t;return a||(a=new Xr),o(m,v,n,r,a)}}return!!p&&(a||(a=new Xr),Pi(e,t,n,r,o,a))}function Jo(e){return wu(e)&&Qi(e)==Z}function Qo(e,t,n,r){var o=n.length,i=o,s=!r;if(null==e)return!i;e=nt(e);while(o--){var c=n[o];if(s&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}while(++o<i){c=n[o];var l=c[0],u=e[l],d=c[1];if(s&&c[2]){if(u===a&&!(l in e))return!1}else{var p=new Xr;if(r)var f=r(u,d,l,e,t,p);if(!(f===a?Ko(d,u,g|_,r,p):f))return!1}}return!0}function Xo(e){if(!Cu(e)||ds(e))return!1;var t=Ou(e)?gt:Je;return t.test(Ls(e))}function Zo(e){return wu(e)&&Po(e)==ae}function ea(e){return wu(e)&&Qi(e)==ie}function ta(e){return wu(e)&&ku(e.length)&&!!Qt[Po(e)]}function na(e){return"function"==typeof e?e:null==e?jp:"object"==typeof e?cu(e)?ca(e[0],e[1]):sa(e):zp(e)}function ra(e){if(!fs(e))return Vt(e);var t=[];for(var n in nt(e))dt.call(e,n)&&"constructor"!=n&&t.push(n);return t}function oa(e){if(!Cu(e))return _s(e);var t=fs(e),n=[];for(var r in e)("constructor"!=r||!t&&dt.call(e,r))&&n.push(r);return n}function aa(e,t){return e<t}function ia(e,t){var r=-1,o=uu(e)?n(e.length):[];return ko(e,(function(e,n,a){o[++r]=t(e,n,a)})),o}function sa(e){var t=qi(e);return 1==t.length&&t[0][2]?ms(t[0][0],t[0][1]):function(n){return n===e||Qo(n,e,t)}}function ca(e,t){return cs(e)&&hs(t)?ms(Ds(e),t):function(n){var r=vd(n,e);return r===a&&r===t?_d(n,e):Ko(t,r,g|_)}}function la(e,t,n,r,o){e!==t&&jo(t,(function(i,s){if(o||(o=new Xr),Cu(i))ua(e,t,s,n,la,r,o);else{var c=r?r(ks(e,s),i,s+"",e,t,o):a;c===a&&(c=i),co(e,s,c)}}),kd)}function ua(e,t,n,r,o,i,s){var c=ks(e,n),l=ks(t,n),u=s.get(l);if(u)co(e,n,u);else{var d=i?i(c,l,n+"",e,t,s):a,p=d===a;if(p){var f=cu(l),h=!f&&fu(l),m=!f&&!h&&Bu(l);d=l,f||h||m?cu(c)?d=c:du(c)?d=oi(c):h?(p=!1,d=Ka(l,!0)):m?(p=!1,d=Za(l,!0)):d=[]:Nu(l)||su(l)?(d=c,su(c)?d=Qu(c):Cu(c)&&!Ou(c)||(d=ns(l))):p=!1}p&&(s.set(l,d),o(d,l,r,i,s),s["delete"](l)),co(e,n,d)}}function da(e,t){var n=e.length;if(n)return t+=t<0?n:0,is(t,n)?e[t]:a}function pa(e,t,n){t=t.length?Tn(t,(function(e){return cu(e)?function(t){return xo(t,1===e.length?e[0]:e)}:e})):[jp];var r=-1;t=Tn(t,Jn(Hi()));var o=ia(e,(function(e,n,o){var a=Tn(t,(function(t){return t(e)}));return{criteria:a,index:++r,value:e}}));return Yn(o,(function(e,t){return ti(e,t,n)}))}function fa(e,t){return ha(e,t,(function(t,n){return _d(e,n)}))}function ha(e,t,n){var r=-1,o=t.length,a={};while(++r<o){var i=t[r],s=xo(e,i);n(s,i)&&Ca(a,Ha(i,e),s)}return a}function ma(e){return function(t){return xo(t,e)}}function va(e,t,n,r){var o=r?Vn:Un,a=-1,i=t.length,s=e;e===t&&(t=oi(t)),n&&(s=Tn(e,Jn(n)));while(++a<i){var c=0,l=t[a],u=n?n(l):l;while((c=o(s,u,c,r))>-1)s!==e&&wt.call(s,c,1),wt.call(e,c,1)}return e}function ga(e,t){var n=e?t.length:0,r=n-1;while(n--){var o=t[n];if(n==r||o!==a){var a=o;is(o)?wt.call(e,o,1):Ra(e,o)}}return e}function _a(e,t){return e+Nt(qt()*(t-e+1))}function ya(e,t,r,o){var a=-1,i=Bt(At((t-e)/(r||1)),0),s=n(i);while(i--)s[o?i:++a]=e,e+=r;return s}function ba(e,t){var n="";if(!e||t<1||t>P)return n;do{t%2&&(n+=e),t=Nt(t/2),t&&(e+=e)}while(t);return n}function Oa(e,t){return Is(bs(e,t,jp),e+"")}function Ma(e){return ao(Fd(e))}function ka(e,t){var n=Fd(e);return Es(n,go(t,0,n.length))}function Ca(e,t,n,r){if(!Cu(e))return e;t=Ha(t,e);var o=-1,i=t.length,s=i-1,c=e;while(null!=c&&++o<i){var l=Ds(t[o]),u=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(o!=s){var d=c[l];u=r?r(d,l,c):a,u===a&&(u=Cu(d)?d:is(t[o+1])?[]:{})}lo(c,l,u),c=c[l]}return e}var wa=sn?function(e,t){return sn.set(e,t),e}:jp,Ia=Et?function(e,t){return Et(e,"toString",{configurable:!0,enumerable:!1,value:Ip(t),writable:!0})}:jp;function Sa(e){return Es(Fd(e))}function Ta(e,t,r){var o=-1,a=e.length;t<0&&(t=-t>a?0:a+t),r=r>a?a:r,r<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;var i=n(a);while(++o<a)i[o]=e[o+t];return i}function Ea(e,t){var n;return ko(e,(function(e,r,o){return n=t(e,r,o),!n})),!!n}function ja(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t===t&&o<=G){while(r<o){var a=r+o>>>1,i=e[a];null!==i&&!Vu(i)&&(n?i<=t:i<t)?r=a+1:o=a}return o}return Da(e,t,jp,n)}function Da(e,t,n,r){var o=0,i=null==e?0:e.length;if(0===i)return 0;t=n(t);var s=t!==t,c=null===t,l=Vu(t),u=t===a;while(o<i){var d=Nt((o+i)/2),p=n(e[d]),f=p!==a,h=null===p,m=p===p,v=Vu(p);if(s)var g=r||m;else g=u?m&&(r||f):c?m&&f&&(r||!h):l?m&&f&&!h&&(r||!v):!h&&!v&&(r?p<=t:p<t);g?o=d+1:i=d}return Ft(i,F)}function La(e,t){var n=-1,r=e.length,o=0,a=[];while(++n<r){var i=e[n],s=t?t(i):i;if(!n||!ou(s,c)){var c=s;a[o++]=0===i?0:i}}return a}function Aa(e){return"number"==typeof e?e:Vu(e)?V:+e}function Na(e){if("string"==typeof e)return e;if(cu(e))return Tn(e,Na)+"";if(Vu(e))return br?br.call(e):"";var t=e+"";return"0"==t&&1/e==-R?"-0":t}function xa(e,t,n){var r=-1,o=In,a=e.length,i=!0,c=[],l=c;if(n)i=!1,o=Sn;else if(a>=s){var u=t?null:Ei(e);if(u)return pr(u);i=!1,o=Xn,l=new $r}else l=t?[]:c;e:while(++r<a){var d=e[r],p=t?t(d):d;if(d=n||0!==d?d:0,i&&p===p){var f=l.length;while(f--)if(l[f]===p)continue e;t&&l.push(p),c.push(d)}else o(l,p,n)||(l!==c&&l.push(p),c.push(d))}return c}function Ra(e,t){return t=Ha(t,e),e=Os(e,t),null==e||delete e[Ds(ac(t))]}function Pa(e,t,n,r){return Ca(e,t,n(xo(e,t)),r)}function Ua(e,t,n,r){var o=e.length,a=r?o:-1;while((r?a--:++a<o)&&t(e[a],a,e));return n?Ta(e,r?0:a,r?a+1:o):Ta(e,r?a+1:0,r?o:a)}function Va(e,t){var n=e;return n instanceof Sr&&(n=n.value()),jn(t,(function(e,t){return t.func.apply(t.thisArg,En([e],t.args))}),n)}function Ba(e,t,r){var o=e.length;if(o<2)return o?xa(e[0]):[];var a=-1,i=n(o);while(++a<o){var s=e[a],c=-1;while(++c<o)c!=a&&(i[a]=Mo(i[a]||s,e[c],t,r))}return xa(Eo(i,1),t,r)}function Fa(e,t,n){var r=-1,o=e.length,i=t.length,s={};while(++r<o){var c=r<i?t[r]:a;n(s,e[r],c)}return s}function Ga(e){return du(e)?e:[]}function za(e){return"function"==typeof e?e:jp}function Ha(e,t){return cu(e)?e:cs(e,t)?[e]:js(Zu(e))}var Ya=Oa;function qa(e,t,n){var r=e.length;return n=n===a?r:n,!t&&n>=r?e:Ta(e,t,n)}var Wa=jt||function(e){return cn.clearTimeout(e)};function Ka(e,t){if(t)return e.slice();var n=e.length,r=Ot?Ot(n):new e.constructor(n);return e.copy(r),r}function $a(e){var t=new e.constructor(e.byteLength);return new bt(t).set(new bt(e)),t}function Ja(e,t){var n=t?$a(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function Qa(e){var t=new e.constructor(e.source,We.exec(e));return t.lastIndex=e.lastIndex,t}function Xa(e){return hr?nt(hr.call(e)):{}}function Za(e,t){var n=t?$a(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ei(e,t){if(e!==t){var n=e!==a,r=null===e,o=e===e,i=Vu(e),s=t!==a,c=null===t,l=t===t,u=Vu(t);if(!c&&!u&&!i&&e>t||i&&s&&l&&!c&&!u||r&&s&&l||!n&&l||!o)return 1;if(!r&&!i&&!u&&e<t||u&&n&&o&&!r&&!i||c&&n&&o||!s&&o||!l)return-1}return 0}function ti(e,t,n){var r=-1,o=e.criteria,a=t.criteria,i=o.length,s=n.length;while(++r<i){var c=ei(o[r],a[r]);if(c){if(r>=s)return c;var l=n[r];return c*("desc"==l?-1:1)}}return e.index-t.index}function ni(e,t,r,o){var a=-1,i=e.length,s=r.length,c=-1,l=t.length,u=Bt(i-s,0),d=n(l+u),p=!o;while(++c<l)d[c]=t[c];while(++a<s)(p||a<i)&&(d[r[a]]=e[a]);while(u--)d[c++]=e[a++];return d}function ri(e,t,r,o){var a=-1,i=e.length,s=-1,c=r.length,l=-1,u=t.length,d=Bt(i-c,0),p=n(d+u),f=!o;while(++a<d)p[a]=e[a];var h=a;while(++l<u)p[h+l]=t[l];while(++s<c)(f||a<i)&&(p[h+r[s]]=e[a++]);return p}function oi(e,t){var r=-1,o=e.length;t||(t=n(o));while(++r<o)t[r]=e[r];return t}function ai(e,t,n,r){var o=!n;n||(n={});var i=-1,s=t.length;while(++i<s){var c=t[i],l=r?r(n[c],e[c],c,n,e):a;l===a&&(l=e[c]),o?mo(n,c,l):lo(n,c,l)}return n}function ii(e,t){return ai(e,$i(e),t)}function si(e,t){return ai(e,Ji(e),t)}function ci(e,t){return function(n,r){var o=cu(n)?On:po,a=t?t():{};return o(n,e,Hi(r,2),a)}}function li(e){return Oa((function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:a,s=o>2?n[2]:a;i=e.length>3&&"function"==typeof i?(o--,i):a,s&&ss(n[0],n[1],s)&&(i=o<3?a:i,o=1),t=nt(t);while(++r<o){var c=n[r];c&&e(t,c,r,i)}return t}))}function ui(e,t){return function(n,r){if(null==n)return n;if(!uu(n))return e(n,r);var o=n.length,a=t?o:-1,i=nt(n);while(t?a--:++a<o)if(!1===r(i[a],a,i))break;return n}}function di(e){return function(t,n,r){var o=-1,a=nt(t),i=r(t),s=i.length;while(s--){var c=i[e?s:++o];if(!1===n(a[c],c,a))break}return t}}function pi(e,t,n){var r=t&y,o=mi(e);function a(){var t=this&&this!==cn&&this instanceof a?o:e;return t.apply(r?n:this,arguments)}return a}function fi(e){return function(t){t=Zu(t);var n=ir(t)?gr(t):a,r=n?n[0]:t.charAt(0),o=n?qa(n,1).join(""):t.slice(1);return r[e]()+o}}function hi(e){return function(t){return jn(Op(Kd(t).replace(zt,"")),e,"")}}function mi(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=kr(e.prototype),r=e.apply(n,t);return Cu(r)?r:n}}function vi(e,t,r){var o=mi(e);function i(){var s=arguments.length,c=n(s),l=s,u=zi(i);while(l--)c[l]=arguments[l];var d=s<3&&c[0]!==u&&c[s-1]!==u?[]:dr(c,u);if(s-=d.length,s<r)return Si(e,t,yi,i.placeholder,a,c,d,a,a,r-s);var p=this&&this!==cn&&this instanceof i?o:e;return bn(p,this,c)}return i}function gi(e){return function(t,n,r){var o=nt(t);if(!uu(t)){var i=Hi(n,3);t=Md(t),n=function(e){return i(o[e],e,o)}}var s=e(t,n,r);return s>-1?o[i?t[s]:s]:a}}function _i(e){return Ui((function(t){var n=t.length,r=n,o=Ir.prototype.thru;e&&t.reverse();while(r--){var i=t[r];if("function"!=typeof i)throw new at(l);if(o&&!s&&"wrapper"==Gi(i))var s=new Ir([],!0)}r=s?r:n;while(++r<n){i=t[r];var c=Gi(i),u="wrapper"==c?Fi(i):a;s=u&&us(u[0])&&u[1]==(I|M|C|S)&&!u[4].length&&1==u[9]?s[Gi(u[0])].apply(s,u[3]):1==i.length&&us(i)?s[c]():s.thru(i)}return function(){var e=arguments,r=e[0];if(s&&1==e.length&&cu(r))return s.plant(r).value();var o=0,a=n?t[o].apply(this,e):r;while(++o<n)a=t[o].call(this,a);return a}}))}function yi(e,t,r,o,i,s,c,l,u,d){var p=t&I,f=t&y,h=t&b,m=t&(M|k),v=t&T,g=h?a:mi(e);function _(){var a=arguments.length,y=n(a),b=a;while(b--)y[b]=arguments[b];if(m)var O=zi(_),M=tr(y,O);if(o&&(y=ni(y,o,i,m)),s&&(y=ri(y,s,c,m)),a-=M,m&&a<d){var k=dr(y,O);return Si(e,t,yi,_.placeholder,r,y,k,l,u,d-a)}var C=f?r:this,w=h?C[e]:e;return a=y.length,l?y=Ms(y,l):v&&a>1&&y.reverse(),p&&u<a&&(y.length=u),this&&this!==cn&&this instanceof _&&(w=g||mi(w)),w.apply(C,y)}return _}function bi(e,t){return function(n,r){return zo(n,e,t(r),{})}}function Oi(e,t){return function(n,r){var o;if(n===a&&r===a)return t;if(n!==a&&(o=n),r!==a){if(o===a)return r;"string"==typeof n||"string"==typeof r?(n=Na(n),r=Na(r)):(n=Aa(n),r=Aa(r)),o=e(n,r)}return o}}function Mi(e){return Ui((function(t){return t=Tn(t,Jn(Hi())),Oa((function(n){var r=this;return e(t,(function(e){return bn(e,r,n)}))}))}))}function ki(e,t){t=t===a?" ":Na(t);var n=t.length;if(n<2)return n?ba(t,e):t;var r=ba(t,At(e/vr(t)));return ir(t)?qa(gr(r),0,e).join(""):r.slice(0,e)}function Ci(e,t,r,o){var a=t&y,i=mi(e);function s(){var t=-1,c=arguments.length,l=-1,u=o.length,d=n(u+c),p=this&&this!==cn&&this instanceof s?i:e;while(++l<u)d[l]=o[l];while(c--)d[l++]=arguments[++t];return bn(p,a?r:this,d)}return s}function wi(e){return function(t,n,r){return r&&"number"!=typeof r&&ss(t,n,r)&&(n=r=a),t=Wu(t),n===a?(n=t,t=0):n=Wu(n),r=r===a?t<n?1:-1:Wu(r),ya(t,n,r,e)}}function Ii(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Ju(t),n=Ju(n)),e(t,n)}}function Si(e,t,n,r,o,i,s,c,l,u){var d=t&M,p=d?s:a,f=d?a:s,h=d?i:a,m=d?a:i;t|=d?C:w,t&=~(d?w:C),t&O||(t&=~(y|b));var v=[e,t,o,h,p,m,f,c,l,u],g=n.apply(a,v);return us(e)&&Cs(g,v),g.placeholder=r,Ss(g,e,t)}function Ti(e){var t=ze[e];return function(e,n){if(e=Ju(e),n=null==n?0:Ft(Ku(n),292),n&&Pt(e)){var r=(Zu(e)+"e").split("e"),o=t(r[0]+"e"+(+r[1]+n));return r=(Zu(o)+"e").split("e"),+(r[0]+"e"+(+r[1]-n))}return t(e)}}var Ei=tn&&1/pr(new tn([,-0]))[1]==R?function(e){return new tn(e)}:Up;function ji(e){return function(t){var n=Qi(t);return n==Z?lr(t):n==ie?fr(t):Kn(t,e(t))}}function Di(e,t,n,r,o,i,s,c){var u=t&b;if(!u&&"function"!=typeof e)throw new at(l);var d=r?r.length:0;if(d||(t&=~(C|w),r=o=a),s=s===a?s:Bt(Ku(s),0),c=c===a?c:Ku(c),d-=o?o.length:0,t&w){var p=r,f=o;r=o=a}var h=u?a:Fi(e),m=[e,t,n,r,o,p,f,i,s,c];if(h&&gs(m,h),e=m[0],t=m[1],n=m[2],r=m[3],o=m[4],c=m[9]=m[9]===a?u?0:e.length:Bt(m[9]-d,0),!c&&t&(M|k)&&(t&=~(M|k)),t&&t!=y)v=t==M||t==k?vi(e,t,c):t!=C&&t!=(y|C)||o.length?yi.apply(a,m):Ci(e,t,n,r);else var v=pi(e,t,n);var g=h?wa:Cs;return Ss(g(v,m),e,t)}function Li(e,t,n,r){return e===a||ou(e,ct[n])&&!dt.call(r,n)?t:e}function Ai(e,t,n,r,o,i){return Cu(e)&&Cu(t)&&(i.set(t,e),la(e,t,a,Ai,i),i["delete"](t)),e}function Ni(e){return Nu(e)?a:e}function xi(e,t,n,r,o,i){var s=n&g,c=e.length,l=t.length;if(c!=l&&!(s&&l>c))return!1;var u=i.get(e),d=i.get(t);if(u&&d)return u==t&&d==e;var p=-1,f=!0,h=n&_?new $r:a;i.set(e,t),i.set(t,e);while(++p<c){var m=e[p],v=t[p];if(r)var y=s?r(v,m,p,t,e,i):r(m,v,p,e,t,i);if(y!==a){if(y)continue;f=!1;break}if(h){if(!Ln(t,(function(e,t){if(!Xn(h,t)&&(m===e||o(m,e,n,r,i)))return h.push(t)}))){f=!1;break}}else if(m!==v&&!o(m,v,n,r,i)){f=!1;break}}return i["delete"](e),i["delete"](t),f}function Ri(e,t,n,r,o,a,i){switch(n){case fe:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case pe:return!(e.byteLength!=t.byteLength||!a(new bt(e),new bt(t)));case W:case K:case ee:return ou(+e,+t);case J:return e.name==t.name&&e.message==t.message;case ae:case se:return e==t+"";case Z:var s=lr;case ie:var c=r&g;if(s||(s=pr),e.size!=t.size&&!c)return!1;var l=i.get(e);if(l)return l==t;r|=_,i.set(e,t);var u=xi(s(e),s(t),r,o,a,i);return i["delete"](e),u;case ce:if(hr)return hr.call(e)==hr.call(t)}return!1}function Pi(e,t,n,r,o,i){var s=n&g,c=Vi(e),l=c.length,u=Vi(t),d=u.length;if(l!=d&&!s)return!1;var p=l;while(p--){var f=c[p];if(!(s?f in t:dt.call(t,f)))return!1}var h=i.get(e),m=i.get(t);if(h&&m)return h==t&&m==e;var v=!0;i.set(e,t),i.set(t,e);var _=s;while(++p<l){f=c[p];var y=e[f],b=t[f];if(r)var O=s?r(b,y,f,t,e,i):r(y,b,f,e,t,i);if(!(O===a?y===b||o(y,b,n,r,i):O)){v=!1;break}_||(_="constructor"==f)}if(v&&!_){var M=e.constructor,k=t.constructor;M==k||!("constructor"in e)||!("constructor"in t)||"function"==typeof M&&M instanceof M&&"function"==typeof k&&k instanceof k||(v=!1)}return i["delete"](e),i["delete"](t),v}function Ui(e){return Is(bs(e,a,Ks),e+"")}function Vi(e){return Ro(e,Md,$i)}function Bi(e){return Ro(e,kd,Ji)}var Fi=sn?function(e){return sn.get(e)}:Up;function Gi(e){var t=e.name+"",n=ln[t],r=dt.call(ln,t)?n.length:0;while(r--){var o=n[r],a=o.func;if(null==a||a==e)return o.name}return t}function zi(e){var t=dt.call(Or,"placeholder")?Or:e;return t.placeholder}function Hi(){var e=Or.iteratee||Dp;return e=e===Dp?na:e,arguments.length?e(arguments[0],arguments[1]):e}function Yi(e,t){var n=e.__data__;return ls(t)?n["string"==typeof t?"string":"hash"]:n.map}function qi(e){var t=Md(e),n=t.length;while(n--){var r=t[n],o=e[r];t[n]=[r,o,hs(o)]}return t}function Wi(e,t){var n=ar(e,t);return Xo(n)?n:a}function Ki(e){var t=dt.call(e,Tt),n=e[Tt];try{e[Tt]=a;var r=!0}catch(i){}var o=ht.call(e);return r&&(t?e[Tt]=n:delete e[Tt]),o}var $i=xt?function(e){return null==e?[]:(e=nt(e),wn(xt(e),(function(t){return Ct.call(e,t)})))}:Wp,Ji=xt?function(e){var t=[];while(e)En(t,$i(e)),e=Mt(e);return t}:Wp,Qi=Po;function Xi(e,t,n){var r=-1,o=n.length;while(++r<o){var a=n[r],i=a.size;switch(a.type){case"drop":e+=i;break;case"dropRight":t-=i;break;case"take":t=Ft(t,e+i);break;case"takeRight":e=Bt(e,t-i);break}}return{start:e,end:t}}function Zi(e){var t=e.match(Fe);return t?t[1].split(Ge):[]}function es(e,t,n){t=Ha(t,e);var r=-1,o=t.length,a=!1;while(++r<o){var i=Ds(t[r]);if(!(a=null!=e&&n(e,i)))break;e=e[i]}return a||++r!=o?a:(o=null==e?0:e.length,!!o&&ku(o)&&is(i,o)&&(cu(e)||su(e)))}function ts(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&dt.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function ns(e){return"function"!=typeof e.constructor||fs(e)?{}:kr(Mt(e))}function rs(e,t,n){var r=e.constructor;switch(t){case pe:return $a(e);case W:case K:return new r(+e);case fe:return Ja(e,n);case he:case me:case ve:case ge:case _e:case ye:case be:case Oe:case Me:return Za(e,n);case Z:return new r;case ee:case se:return new r(e);case ae:return Qa(e);case ie:return new r;case ce:return Xa(e)}}function os(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Be,"{\n/* [wrapped with "+t+"] */\n")}function as(e){return cu(e)||su(e)||!!(It&&e&&e[It])}function is(e,t){var n=typeof e;return t=null==t?P:t,!!t&&("number"==n||"symbol"!=n&&Xe.test(e))&&e>-1&&e%1==0&&e<t}function ss(e,t,n){if(!Cu(n))return!1;var r=typeof t;return!!("number"==r?uu(n)&&is(t,n.length):"string"==r&&t in n)&&ou(n[t],e)}function cs(e,t){if(cu(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Vu(e))||(Ne.test(e)||!Ae.test(e)||null!=t&&e in nt(t))}function ls(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function us(e){var t=Gi(e),n=Or[t];if("function"!=typeof n||!(t in Sr.prototype))return!1;if(e===n)return!0;var r=Fi(n);return!!r&&e===r[0]}function ds(e){return!!ft&&ft in e}(Kt&&Qi(new Kt(new ArrayBuffer(1)))!=fe||Zt&&Qi(new Zt)!=Z||en&&Qi(en.resolve())!=re||tn&&Qi(new tn)!=ie||nn&&Qi(new nn)!=ue)&&(Qi=function(e){var t=Po(e),n=t==ne?e.constructor:a,r=n?Ls(n):"";if(r)switch(r){case un:return fe;case pn:return Z;case fn:return re;case An:return ie;case Nn:return ue}return t});var ps=lt?Ou:Kp;function fs(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||ct;return e===n}function hs(e){return e===e&&!Cu(e)}function ms(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==a||e in nt(n)))}}function vs(e){var t=Bl(e,(function(e){return n.size===p&&n.clear(),e})),n=t.cache;return t}function gs(e,t){var n=e[1],r=t[1],o=n|r,a=o<(y|b|I),i=r==I&&n==M||r==I&&n==S&&e[7].length<=t[8]||r==(I|S)&&t[7].length<=t[8]&&n==M;if(!a&&!i)return e;r&y&&(e[2]=t[2],o|=n&y?0:O);var s=t[3];if(s){var c=e[3];e[3]=c?ni(c,s,t[4]):s,e[4]=c?dr(e[3],f):t[4]}return s=t[5],s&&(c=e[5],e[5]=c?ri(c,s,t[6]):s,e[6]=c?dr(e[5],f):t[6]),s=t[7],s&&(e[7]=s),r&I&&(e[8]=null==e[8]?t[8]:Ft(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o,e}function _s(e){var t=[];if(null!=e)for(var n in nt(e))t.push(n);return t}function ys(e){return ht.call(e)}function bs(e,t,r){return t=Bt(t===a?e.length-1:t,0),function(){var o=arguments,a=-1,i=Bt(o.length-t,0),s=n(i);while(++a<i)s[a]=o[t+a];a=-1;var c=n(t+1);while(++a<t)c[a]=o[a];return c[t]=r(s),bn(e,this,c)}}function Os(e,t){return t.length<2?e:xo(e,Ta(t,0,-1))}function Ms(e,t){var n=e.length,r=Ft(t.length,n),o=oi(e);while(r--){var i=t[r];e[r]=is(i,n)?o[i]:a}return e}function ks(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var Cs=Ts(wa),ws=Lt||function(e,t){return cn.setTimeout(e,t)},Is=Ts(Ia);function Ss(e,t,n){var r=t+"";return Is(e,os(r,As(Zi(r),n)))}function Ts(e){var t=0,n=0;return function(){var r=Gt(),o=L-(r-n);if(n=r,o>0){if(++t>=D)return arguments[0]}else t=0;return e.apply(a,arguments)}}function Es(e,t){var n=-1,r=e.length,o=r-1;t=t===a?r:t;while(++n<t){var i=_a(n,o),s=e[i];e[i]=e[n],e[n]=s}return e.length=t,e}var js=vs((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(xe,(function(e,n,r,o){t.push(r?o.replace(Ye,"$1"):n||e)})),t}));function Ds(e){if("string"==typeof e||Vu(e))return e;var t=e+"";return"0"==t&&1/e==-R?"-0":t}function Ls(e){if(null!=e){try{return ut.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function As(e,t){return Mn(z,(function(n){var r="_."+n[0];t&n[1]&&!In(e,r)&&e.push(r)})),e.sort()}function Ns(e){if(e instanceof Sr)return e.clone();var t=new Ir(e.__wrapped__,e.__chain__);return t.__actions__=oi(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function xs(e,t,r){t=(r?ss(e,t,r):t===a)?1:Bt(Ku(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];var i=0,s=0,c=n(At(o/t));while(i<o)c[s++]=Ta(e,i,i+=t);return c}function Rs(e){var t=-1,n=null==e?0:e.length,r=0,o=[];while(++t<n){var a=e[t];a&&(o[r++]=a)}return o}function Ps(){var e=arguments.length;if(!e)return[];var t=n(e-1),r=arguments[0],o=e;while(o--)t[o-1]=arguments[o];return En(cu(r)?oi(r):[r],Eo(t,1))}var Us=Oa((function(e,t){return du(e)?Mo(e,Eo(t,1,du,!0)):[]})),Vs=Oa((function(e,t){var n=ac(t);return du(n)&&(n=a),du(e)?Mo(e,Eo(t,1,du,!0),Hi(n,2)):[]})),Bs=Oa((function(e,t){var n=ac(t);return du(n)&&(n=a),du(e)?Mo(e,Eo(t,1,du,!0),a,n):[]}));function Fs(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===a?1:Ku(t),Ta(e,t<0?0:t,r)):[]}function Gs(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===a?1:Ku(t),t=r-t,Ta(e,0,t<0?0:t)):[]}function zs(e,t){return e&&e.length?Ua(e,Hi(t,3),!0,!0):[]}function Hs(e,t){return e&&e.length?Ua(e,Hi(t,3),!0):[]}function Ys(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&ss(e,t,n)&&(n=0,r=o),So(e,t,n,r)):[]}function qs(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:Ku(n);return o<0&&(o=Bt(r+o,0)),Pn(e,Hi(t,3),o)}function Ws(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return n!==a&&(o=Ku(n),o=n<0?Bt(r+o,0):Ft(o,r-1)),Pn(e,Hi(t,3),o,!0)}function Ks(e){var t=null==e?0:e.length;return t?Eo(e,1):[]}function $s(e){var t=null==e?0:e.length;return t?Eo(e,R):[]}function Js(e,t){var n=null==e?0:e.length;return n?(t=t===a?1:Ku(t),Eo(e,t)):[]}function Qs(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}function Xs(e){return e&&e.length?e[0]:a}function Zs(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:Ku(n);return o<0&&(o=Bt(r+o,0)),Un(e,t,o)}function ec(e){var t=null==e?0:e.length;return t?Ta(e,0,-1):[]}var tc=Oa((function(e){var t=Tn(e,Ga);return t.length&&t[0]===e[0]?Go(t):[]})),nc=Oa((function(e){var t=ac(e),n=Tn(e,Ga);return t===ac(n)?t=a:n.pop(),n.length&&n[0]===e[0]?Go(n,Hi(t,2)):[]})),rc=Oa((function(e){var t=ac(e),n=Tn(e,Ga);return t="function"==typeof t?t:a,t&&n.pop(),n.length&&n[0]===e[0]?Go(n,a,t):[]}));function oc(e,t){return null==e?"":Ut.call(e,t)}function ac(e){var t=null==e?0:e.length;return t?e[t-1]:a}function ic(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==a&&(o=Ku(n),o=o<0?Bt(r+o,0):Ft(o,r-1)),t===t?mr(e,t,o):Pn(e,Bn,o,!0)}function sc(e,t){return e&&e.length?da(e,Ku(t)):a}var cc=Oa(lc);function lc(e,t){return e&&e.length&&t&&t.length?va(e,t):e}function uc(e,t,n){return e&&e.length&&t&&t.length?va(e,t,Hi(n,2)):e}function dc(e,t,n){return e&&e.length&&t&&t.length?va(e,t,a,n):e}var pc=Ui((function(e,t){var n=null==e?0:e.length,r=vo(e,t);return ga(e,Tn(t,(function(e){return is(e,n)?+e:e})).sort(ei)),r}));function fc(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],a=e.length;t=Hi(t,3);while(++r<a){var i=e[r];t(i,r,e)&&(n.push(i),o.push(r))}return ga(e,o),n}function hc(e){return null==e?e:Wt.call(e)}function mc(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&ss(e,t,n)?(t=0,n=r):(t=null==t?0:Ku(t),n=n===a?r:Ku(n)),Ta(e,t,n)):[]}function vc(e,t){return ja(e,t)}function gc(e,t,n){return Da(e,t,Hi(n,2))}function _c(e,t){var n=null==e?0:e.length;if(n){var r=ja(e,t);if(r<n&&ou(e[r],t))return r}return-1}function yc(e,t){return ja(e,t,!0)}function bc(e,t,n){return Da(e,t,Hi(n,2),!0)}function Oc(e,t){var n=null==e?0:e.length;if(n){var r=ja(e,t,!0)-1;if(ou(e[r],t))return r}return-1}function Mc(e){return e&&e.length?La(e):[]}function kc(e,t){return e&&e.length?La(e,Hi(t,2)):[]}function Cc(e){var t=null==e?0:e.length;return t?Ta(e,1,t):[]}function wc(e,t,n){return e&&e.length?(t=n||t===a?1:Ku(t),Ta(e,0,t<0?0:t)):[]}function Ic(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===a?1:Ku(t),t=r-t,Ta(e,t<0?0:t,r)):[]}function Sc(e,t){return e&&e.length?Ua(e,Hi(t,3),!1,!0):[]}function Tc(e,t){return e&&e.length?Ua(e,Hi(t,3)):[]}var Ec=Oa((function(e){return xa(Eo(e,1,du,!0))})),jc=Oa((function(e){var t=ac(e);return du(t)&&(t=a),xa(Eo(e,1,du,!0),Hi(t,2))})),Dc=Oa((function(e){var t=ac(e);return t="function"==typeof t?t:a,xa(Eo(e,1,du,!0),a,t)}));function Lc(e){return e&&e.length?xa(e):[]}function Ac(e,t){return e&&e.length?xa(e,Hi(t,2)):[]}function Nc(e,t){return t="function"==typeof t?t:a,e&&e.length?xa(e,a,t):[]}function xc(e){if(!e||!e.length)return[];var t=0;return e=wn(e,(function(e){if(du(e))return t=Bt(e.length,t),!0})),Wn(t,(function(t){return Tn(e,Gn(t))}))}function Rc(e,t){if(!e||!e.length)return[];var n=xc(e);return null==t?n:Tn(n,(function(e){return bn(t,a,e)}))}var Pc=Oa((function(e,t){return du(e)?Mo(e,t):[]})),Uc=Oa((function(e){return Ba(wn(e,du))})),Vc=Oa((function(e){var t=ac(e);return du(t)&&(t=a),Ba(wn(e,du),Hi(t,2))})),Bc=Oa((function(e){var t=ac(e);return t="function"==typeof t?t:a,Ba(wn(e,du),a,t)})),Fc=Oa(xc);function Gc(e,t){return Fa(e||[],t||[],lo)}function zc(e,t){return Fa(e||[],t||[],Ca)}var Hc=Oa((function(e){var t=e.length,n=t>1?e[t-1]:a;return n="function"==typeof n?(e.pop(),n):a,Rc(e,n)}));function Yc(e){var t=Or(e);return t.__chain__=!0,t}function qc(e,t){return t(e),e}function Wc(e,t){return t(e)}var Kc=Ui((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return vo(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Sr&&is(n)?(r=r.slice(n,+n+(t?1:0)),r.__actions__.push({func:Wc,args:[o],thisArg:a}),new Ir(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(a),e}))):this.thru(o)}));function $c(){return Yc(this)}function Jc(){return new Ir(this.value(),this.__chain__)}function Qc(){this.__values__===a&&(this.__values__=qu(this.value()));var e=this.__index__>=this.__values__.length,t=e?a:this.__values__[this.__index__++];return{done:e,value:t}}function Xc(){return this}function Zc(e){var t,n=this;while(n instanceof wr){var r=Ns(n);r.__index__=0,r.__values__=a,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t}function el(){var e=this.__wrapped__;if(e instanceof Sr){var t=e;return this.__actions__.length&&(t=new Sr(this)),t=t.reverse(),t.__actions__.push({func:Wc,args:[hc],thisArg:a}),new Ir(t,this.__chain__)}return this.thru(hc)}function tl(){return Va(this.__wrapped__,this.__actions__)}var nl=ci((function(e,t,n){dt.call(e,n)?++e[n]:mo(e,n,1)}));function rl(e,t,n){var r=cu(e)?Cn:wo;return n&&ss(e,t,n)&&(t=a),r(e,Hi(t,3))}function ol(e,t){var n=cu(e)?wn:To;return n(e,Hi(t,3))}var al=gi(qs),il=gi(Ws);function sl(e,t){return Eo(vl(e,t),1)}function cl(e,t){return Eo(vl(e,t),R)}function ll(e,t,n){return n=n===a?1:Ku(n),Eo(vl(e,t),n)}function ul(e,t){var n=cu(e)?Mn:ko;return n(e,Hi(t,3))}function dl(e,t){var n=cu(e)?kn:Co;return n(e,Hi(t,3))}var pl=ci((function(e,t,n){dt.call(e,n)?e[n].push(t):mo(e,n,[t])}));function fl(e,t,n,r){e=uu(e)?e:Fd(e),n=n&&!r?Ku(n):0;var o=e.length;return n<0&&(n=Bt(o+n,0)),Uu(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Un(e,t,n)>-1}var hl=Oa((function(e,t,r){var o=-1,a="function"==typeof t,i=uu(e)?n(e.length):[];return ko(e,(function(e){i[++o]=a?bn(t,e,r):Ho(e,t,r)})),i})),ml=ci((function(e,t,n){mo(e,n,t)}));function vl(e,t){var n=cu(e)?Tn:ia;return n(e,Hi(t,3))}function gl(e,t,n,r){return null==e?[]:(cu(t)||(t=null==t?[]:[t]),n=r?a:n,cu(n)||(n=null==n?[]:[n]),pa(e,t,n))}var _l=ci((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));function yl(e,t,n){var r=cu(e)?jn:Hn,o=arguments.length<3;return r(e,Hi(t,4),n,o,ko)}function bl(e,t,n){var r=cu(e)?Dn:Hn,o=arguments.length<3;return r(e,Hi(t,4),n,o,Co)}function Ol(e,t){var n=cu(e)?wn:To;return n(e,Fl(Hi(t,3)))}function Ml(e){var t=cu(e)?ao:Ma;return t(e)}function kl(e,t,n){t=(n?ss(e,t,n):t===a)?1:Ku(t);var r=cu(e)?io:ka;return r(e,t)}function Cl(e){var t=cu(e)?so:Sa;return t(e)}function wl(e){if(null==e)return 0;if(uu(e))return Uu(e)?vr(e):e.length;var t=Qi(e);return t==Z||t==ie?e.size:ra(e).length}function Il(e,t,n){var r=cu(e)?Ln:Ea;return n&&ss(e,t,n)&&(t=a),r(e,Hi(t,3))}var Sl=Oa((function(e,t){if(null==e)return[];var n=t.length;return n>1&&ss(e,t[0],t[1])?t=[]:n>2&&ss(t[0],t[1],t[2])&&(t=[t[0]]),pa(e,Eo(t,1),[])})),Tl=Dt||function(){return cn.Date.now()};function El(e,t){if("function"!=typeof t)throw new at(l);return e=Ku(e),function(){if(--e<1)return t.apply(this,arguments)}}function jl(e,t,n){return t=n?a:t,t=e&&null==t?e.length:t,Di(e,I,a,a,a,a,t)}function Dl(e,t){var n;if("function"!=typeof t)throw new at(l);return e=Ku(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=a),n}}var Ll=Oa((function(e,t,n){var r=y;if(n.length){var o=dr(n,zi(Ll));r|=C}return Di(e,r,t,n,o)})),Al=Oa((function(e,t,n){var r=y|b;if(n.length){var o=dr(n,zi(Al));r|=C}return Di(t,r,e,n,o)}));function Nl(e,t,n){t=n?a:t;var r=Di(e,M,a,a,a,a,a,t);return r.placeholder=Nl.placeholder,r}function xl(e,t,n){t=n?a:t;var r=Di(e,k,a,a,a,a,a,t);return r.placeholder=xl.placeholder,r}function Rl(e,t,n){var r,o,i,s,c,u,d=0,p=!1,f=!1,h=!0;if("function"!=typeof e)throw new at(l);function m(t){var n=r,i=o;return r=o=a,d=t,s=e.apply(i,n),s}function v(e){return d=e,c=ws(y,t),p?m(e):s}function g(e){var n=e-u,r=e-d,o=t-n;return f?Ft(o,i-r):o}function _(e){var n=e-u,r=e-d;return u===a||n>=t||n<0||f&&r>=i}function y(){var e=Tl();if(_(e))return b(e);c=ws(y,g(e))}function b(e){return c=a,h&&r?m(e):(r=o=a,s)}function O(){c!==a&&Wa(c),d=0,r=u=o=c=a}function M(){return c===a?s:b(Tl())}function k(){var e=Tl(),n=_(e);if(r=arguments,o=this,u=e,n){if(c===a)return v(u);if(f)return Wa(c),c=ws(y,t),m(u)}return c===a&&(c=ws(y,t)),s}return t=Ju(t)||0,Cu(n)&&(p=!!n.leading,f="maxWait"in n,i=f?Bt(Ju(n.maxWait)||0,t):i,h="trailing"in n?!!n.trailing:h),k.cancel=O,k.flush=M,k}var Pl=Oa((function(e,t){return Oo(e,1,t)})),Ul=Oa((function(e,t,n){return Oo(e,Ju(t)||0,n)}));function Vl(e){return Di(e,T)}function Bl(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new at(l);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(Bl.Cache||zr),n}function Fl(e){if("function"!=typeof e)throw new at(l);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Gl(e){return Dl(2,e)}Bl.Cache=zr;var zl=Ya((function(e,t){t=1==t.length&&cu(t[0])?Tn(t[0],Jn(Hi())):Tn(Eo(t,1),Jn(Hi()));var n=t.length;return Oa((function(r){var o=-1,a=Ft(r.length,n);while(++o<a)r[o]=t[o].call(this,r[o]);return bn(e,this,r)}))})),Hl=Oa((function(e,t){var n=dr(t,zi(Hl));return Di(e,C,a,t,n)})),Yl=Oa((function(e,t){var n=dr(t,zi(Yl));return Di(e,w,a,t,n)})),ql=Ui((function(e,t){return Di(e,S,a,a,a,t)}));function Wl(e,t){if("function"!=typeof e)throw new at(l);return t=t===a?t:Ku(t),Oa(e,t)}function Kl(e,t){if("function"!=typeof e)throw new at(l);return t=null==t?0:Bt(Ku(t),0),Oa((function(n){var r=n[t],o=qa(n,0,t);return r&&En(o,r),bn(e,this,o)}))}function $l(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new at(l);return Cu(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Rl(e,t,{leading:r,maxWait:t,trailing:o})}function Jl(e){return jl(e,1)}function Ql(e,t){return Hl(za(t),e)}function Xl(){if(!arguments.length)return[];var e=arguments[0];return cu(e)?e:[e]}function Zl(e){return _o(e,v)}function eu(e,t){return t="function"==typeof t?t:a,_o(e,v,t)}function tu(e){return _o(e,h|v)}function nu(e,t){return t="function"==typeof t?t:a,_o(e,h|v,t)}function ru(e,t){return null==t||bo(e,t,Md(t))}function ou(e,t){return e===t||e!==e&&t!==t}var au=Ii(Uo),iu=Ii((function(e,t){return e>=t})),su=Yo(function(){return arguments}())?Yo:function(e){return wu(e)&&dt.call(e,"callee")&&!Ct.call(e,"callee")},cu=n.isArray,lu=hn?Jn(hn):qo;function uu(e){return null!=e&&ku(e.length)&&!Ou(e)}function du(e){return wu(e)&&uu(e)}function pu(e){return!0===e||!1===e||wu(e)&&Po(e)==W}var fu=Rt||Kp,hu=mn?Jn(mn):Wo;function mu(e){return wu(e)&&1===e.nodeType&&!Nu(e)}function vu(e){if(null==e)return!0;if(uu(e)&&(cu(e)||"string"==typeof e||"function"==typeof e.splice||fu(e)||Bu(e)||su(e)))return!e.length;var t=Qi(e);if(t==Z||t==ie)return!e.size;if(fs(e))return!ra(e).length;for(var n in e)if(dt.call(e,n))return!1;return!0}function gu(e,t){return Ko(e,t)}function _u(e,t,n){n="function"==typeof n?n:a;var r=n?n(e,t):a;return r===a?Ko(e,t,a,n):!!r}function yu(e){if(!wu(e))return!1;var t=Po(e);return t==J||t==$||"string"==typeof e.message&&"string"==typeof e.name&&!Nu(e)}function bu(e){return"number"==typeof e&&Pt(e)}function Ou(e){if(!Cu(e))return!1;var t=Po(e);return t==Q||t==X||t==q||t==oe}function Mu(e){return"number"==typeof e&&e==Ku(e)}function ku(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=P}function Cu(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function wu(e){return null!=e&&"object"==typeof e}var Iu=vn?Jn(vn):Jo;function Su(e,t){return e===t||Qo(e,t,qi(t))}function Tu(e,t,n){return n="function"==typeof n?n:a,Qo(e,t,qi(t),n)}function Eu(e){return Au(e)&&e!=+e}function ju(e){if(ps(e))throw new o(c);return Xo(e)}function Du(e){return null===e}function Lu(e){return null==e}function Au(e){return"number"==typeof e||wu(e)&&Po(e)==ee}function Nu(e){if(!wu(e)||Po(e)!=ne)return!1;var t=Mt(e);if(null===t)return!0;var n=dt.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ut.call(n)==mt}var xu=gn?Jn(gn):Zo;function Ru(e){return Mu(e)&&e>=-P&&e<=P}var Pu=_n?Jn(_n):ea;function Uu(e){return"string"==typeof e||!cu(e)&&wu(e)&&Po(e)==se}function Vu(e){return"symbol"==typeof e||wu(e)&&Po(e)==ce}var Bu=yn?Jn(yn):ta;function Fu(e){return e===a}function Gu(e){return wu(e)&&Qi(e)==ue}function zu(e){return wu(e)&&Po(e)==de}var Hu=Ii(aa),Yu=Ii((function(e,t){return e<=t}));function qu(e){if(!e)return[];if(uu(e))return Uu(e)?gr(e):oi(e);if(St&&e[St])return cr(e[St]());var t=Qi(e),n=t==Z?lr:t==ie?pr:Fd;return n(e)}function Wu(e){if(!e)return 0===e?e:0;if(e=Ju(e),e===R||e===-R){var t=e<0?-1:1;return t*U}return e===e?e:0}function Ku(e){var t=Wu(e),n=t%1;return t===t?n?t-n:t:0}function $u(e){return e?go(Ku(e),0,B):0}function Ju(e){if("number"==typeof e)return e;if(Vu(e))return V;if(Cu(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Cu(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=$n(e);var n=$e.test(e);return n||Qe.test(e)?on(e.slice(2),n?2:8):Ke.test(e)?V:+e}function Qu(e){return ai(e,kd(e))}function Xu(e){return e?go(Ku(e),-P,P):0===e?e:0}function Zu(e){return null==e?"":Na(e)}var ed=li((function(e,t){if(fs(t)||uu(t))ai(t,Md(t),e);else for(var n in t)dt.call(t,n)&&lo(e,n,t[n])})),td=li((function(e,t){ai(t,kd(t),e)})),nd=li((function(e,t,n,r){ai(t,kd(t),e,r)})),rd=li((function(e,t,n,r){ai(t,Md(t),e,r)})),od=Ui(vo);function ad(e,t){var n=kr(e);return null==t?n:fo(n,t)}var id=Oa((function(e,t){e=nt(e);var n=-1,r=t.length,o=r>2?t[2]:a;o&&ss(t[0],t[1],o)&&(r=1);while(++n<r){var i=t[n],s=kd(i),c=-1,l=s.length;while(++c<l){var u=s[c],d=e[u];(d===a||ou(d,ct[u])&&!dt.call(e,u))&&(e[u]=i[u])}}return e})),sd=Oa((function(e){return e.push(a,Ai),bn(Sd,a,e)}));function cd(e,t){return Rn(e,Hi(t,3),Lo)}function ld(e,t){return Rn(e,Hi(t,3),Ao)}function ud(e,t){return null==e?e:jo(e,Hi(t,3),kd)}function dd(e,t){return null==e?e:Do(e,Hi(t,3),kd)}function pd(e,t){return e&&Lo(e,Hi(t,3))}function fd(e,t){return e&&Ao(e,Hi(t,3))}function hd(e){return null==e?[]:No(e,Md(e))}function md(e){return null==e?[]:No(e,kd(e))}function vd(e,t,n){var r=null==e?a:xo(e,t);return r===a?n:r}function gd(e,t){return null!=e&&es(e,t,Vo)}function _d(e,t){return null!=e&&es(e,t,Bo)}var yd=bi((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=ht.call(t)),e[t]=n}),Ip(jp)),bd=bi((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=ht.call(t)),dt.call(e,t)?e[t].push(n):e[t]=[n]}),Hi),Od=Oa(Ho);function Md(e){return uu(e)?oo(e):ra(e)}function kd(e){return uu(e)?oo(e,!0):oa(e)}function Cd(e,t){var n={};return t=Hi(t,3),Lo(e,(function(e,r,o){mo(n,t(e,r,o),e)})),n}function wd(e,t){var n={};return t=Hi(t,3),Lo(e,(function(e,r,o){mo(n,r,t(e,r,o))})),n}var Id=li((function(e,t,n){la(e,t,n)})),Sd=li((function(e,t,n,r){la(e,t,n,r)})),Td=Ui((function(e,t){var n={};if(null==e)return n;var r=!1;t=Tn(t,(function(t){return t=Ha(t,e),r||(r=t.length>1),t})),ai(e,Bi(e),n),r&&(n=_o(n,h|m|v,Ni));var o=t.length;while(o--)Ra(n,t[o]);return n}));function Ed(e,t){return Dd(e,Fl(Hi(t)))}var jd=Ui((function(e,t){return null==e?{}:fa(e,t)}));function Dd(e,t){if(null==e)return{};var n=Tn(Bi(e),(function(e){return[e]}));return t=Hi(t),ha(e,n,(function(e,n){return t(e,n[0])}))}function Ld(e,t,n){t=Ha(t,e);var r=-1,o=t.length;o||(o=1,e=a);while(++r<o){var i=null==e?a:e[Ds(t[r])];i===a&&(r=o,i=n),e=Ou(i)?i.call(e):i}return e}function Ad(e,t,n){return null==e?e:Ca(e,t,n)}function Nd(e,t,n,r){return r="function"==typeof r?r:a,null==e?e:Ca(e,t,n,r)}var xd=ji(Md),Rd=ji(kd);function Pd(e,t,n){var r=cu(e),o=r||fu(e)||Bu(e);if(t=Hi(t,4),null==n){var a=e&&e.constructor;n=o?r?new a:[]:Cu(e)&&Ou(a)?kr(Mt(e)):{}}return(o?Mn:Lo)(e,(function(e,r,o){return t(n,e,r,o)})),n}function Ud(e,t){return null==e||Ra(e,t)}function Vd(e,t,n){return null==e?e:Pa(e,t,za(n))}function Bd(e,t,n,r){return r="function"==typeof r?r:a,null==e?e:Pa(e,t,za(n),r)}function Fd(e){return null==e?[]:Qn(e,Md(e))}function Gd(e){return null==e?[]:Qn(e,kd(e))}function zd(e,t,n){return n===a&&(n=t,t=a),n!==a&&(n=Ju(n),n=n===n?n:0),t!==a&&(t=Ju(t),t=t===t?t:0),go(Ju(e),t,n)}function Hd(e,t,n){return t=Wu(t),n===a?(n=t,t=0):n=Wu(n),e=Ju(e),Fo(e,t,n)}function Yd(e,t,n){if(n&&"boolean"!=typeof n&&ss(e,t,n)&&(t=n=a),n===a&&("boolean"==typeof t?(n=t,t=a):"boolean"==typeof e&&(n=e,e=a)),e===a&&t===a?(e=0,t=1):(e=Wu(e),t===a?(t=e,e=0):t=Wu(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=qt();return Ft(e+o*(t-e+rn("1e-"+((o+"").length-1))),t)}return _a(e,t)}var qd=hi((function(e,t,n){return t=t.toLowerCase(),e+(n?Wd(t):t)}));function Wd(e){return bp(Zu(e).toLowerCase())}function Kd(e){return e=Zu(e),e&&e.replace(Ze,nr).replace(Ht,"")}function $d(e,t,n){e=Zu(e),t=Na(t);var r=e.length;n=n===a?r:go(Ku(n),0,r);var o=n;return n-=t.length,n>=0&&e.slice(n,o)==t}function Jd(e){return e=Zu(e),e&&Ee.test(e)?e.replace(Se,rr):e}function Qd(e){return e=Zu(e),e&&Pe.test(e)?e.replace(Re,"\\$&"):e}var Xd=hi((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Zd=hi((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),ep=fi("toLowerCase");function tp(e,t,n){e=Zu(e),t=Ku(t);var r=t?vr(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return ki(Nt(o),n)+e+ki(At(o),n)}function np(e,t,n){e=Zu(e),t=Ku(t);var r=t?vr(e):0;return t&&r<t?e+ki(t-r,n):e}function rp(e,t,n){e=Zu(e),t=Ku(t);var r=t?vr(e):0;return t&&r<t?ki(t-r,n)+e:e}function op(e,t,n){return n||null==t?t=0:t&&(t=+t),Yt(Zu(e).replace(Ue,""),t||0)}function ap(e,t,n){return t=(n?ss(e,t,n):t===a)?1:Ku(t),ba(Zu(e),t)}function ip(){var e=arguments,t=Zu(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var sp=hi((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));function cp(e,t,n){return n&&"number"!=typeof n&&ss(e,t,n)&&(t=n=a),n=n===a?B:n>>>0,n?(e=Zu(e),e&&("string"==typeof t||null!=t&&!xu(t))&&(t=Na(t),!t&&ir(e))?qa(gr(e),0,n):e.split(t,n)):[]}var lp=hi((function(e,t,n){return e+(n?" ":"")+bp(t)}));function up(e,t,n){return e=Zu(e),n=null==n?0:go(Ku(n),0,e.length),t=Na(t),e.slice(n,n+t.length)==t}function dp(e,t,n){var r=Or.templateSettings;n&&ss(e,t,n)&&(t=a),e=Zu(e),t=nd({},t,r,Li);var i,s,c=nd({},t.imports,r.imports,Li),l=Md(c),d=Qn(c,l),p=0,f=t.interpolate||et,h="__p += '",m=rt((t.escape||et).source+"|"+f.source+"|"+(f===Le?qe:et).source+"|"+(t.evaluate||et).source+"|$","g"),v="//# sourceURL="+(dt.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Jt+"]")+"\n";e.replace(m,(function(t,n,r,o,a,c){return r||(r=o),h+=e.slice(p,c).replace(tt,or),n&&(i=!0,h+="' +\n__e("+n+") +\n'"),a&&(s=!0,h+="';\n"+a+";\n__p += '"),r&&(h+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),p=c+t.length,t})),h+="';\n";var g=dt.call(t,"variable")&&t.variable;if(g){if(He.test(g))throw new o(u)}else h="with (obj) {\n"+h+"\n}\n";h=(s?h.replace(ke,""):h).replace(Ce,"$1").replace(we,"$1;"),h="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var _=Mp((function(){return Ve(l,v+"return "+h).apply(a,d)}));if(_.source=h,yu(_))throw _;return _}function pp(e){return Zu(e).toLowerCase()}function fp(e){return Zu(e).toUpperCase()}function hp(e,t,n){if(e=Zu(e),e&&(n||t===a))return $n(e);if(!e||!(t=Na(t)))return e;var r=gr(e),o=gr(t),i=Zn(r,o),s=er(r,o)+1;return qa(r,i,s).join("")}function mp(e,t,n){if(e=Zu(e),e&&(n||t===a))return e.slice(0,_r(e)+1);if(!e||!(t=Na(t)))return e;var r=gr(e),o=er(r,gr(t))+1;return qa(r,0,o).join("")}function vp(e,t,n){if(e=Zu(e),e&&(n||t===a))return e.replace(Ue,"");if(!e||!(t=Na(t)))return e;var r=gr(e),o=Zn(r,gr(t));return qa(r,o).join("")}function gp(e,t){var n=E,r=j;if(Cu(t)){var o="separator"in t?t.separator:o;n="length"in t?Ku(t.length):n,r="omission"in t?Na(t.omission):r}e=Zu(e);var i=e.length;if(ir(e)){var s=gr(e);i=s.length}if(n>=i)return e;var c=n-vr(r);if(c<1)return r;var l=s?qa(s,0,c).join(""):e.slice(0,c);if(o===a)return l+r;if(s&&(c+=l.length-c),xu(o)){if(e.slice(c).search(o)){var u,d=l;o.global||(o=rt(o.source,Zu(We.exec(o))+"g")),o.lastIndex=0;while(u=o.exec(d))var p=u.index;l=l.slice(0,p===a?c:p)}}else if(e.indexOf(Na(o),c)!=c){var f=l.lastIndexOf(o);f>-1&&(l=l.slice(0,f))}return l+r}function _p(e){return e=Zu(e),e&&Te.test(e)?e.replace(Ie,yr):e}var yp=hi((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),bp=fi("toUpperCase");function Op(e,t,n){return e=Zu(e),t=n?a:t,t===a?sr(e)?Mr(e):xn(e):e.match(t)||[]}var Mp=Oa((function(e,t){try{return bn(e,a,t)}catch(n){return yu(n)?n:new o(n)}})),kp=Ui((function(e,t){return Mn(t,(function(t){t=Ds(t),mo(e,t,Ll(e[t],e))})),e}));function Cp(e){var t=null==e?0:e.length,n=Hi();return e=t?Tn(e,(function(e){if("function"!=typeof e[1])throw new at(l);return[n(e[0]),e[1]]})):[],Oa((function(n){var r=-1;while(++r<t){var o=e[r];if(bn(o[0],this,n))return bn(o[1],this,n)}}))}function wp(e){return yo(_o(e,h))}function Ip(e){return function(){return e}}function Sp(e,t){return null==e||e!==e?t:e}var Tp=_i(),Ep=_i(!0);function jp(e){return e}function Dp(e){return na("function"==typeof e?e:_o(e,h))}function Lp(e){return sa(_o(e,h))}function Ap(e,t){return ca(e,_o(t,h))}var Np=Oa((function(e,t){return function(n){return Ho(n,e,t)}})),xp=Oa((function(e,t){return function(n){return Ho(e,n,t)}}));function Rp(e,t,n){var r=Md(t),o=No(t,r);null!=n||Cu(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=No(t,Md(t)));var a=!(Cu(n)&&"chain"in n)||!!n.chain,i=Ou(e);return Mn(o,(function(n){var r=t[n];e[n]=r,i&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__),o=n.__actions__=oi(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,En([this.value()],arguments))})})),e}function Pp(){return cn._===this&&(cn._=vt),this}function Up(){}function Vp(e){return e=Ku(e),Oa((function(t){return da(t,e)}))}var Bp=Mi(Tn),Fp=Mi(Cn),Gp=Mi(Ln);function zp(e){return cs(e)?Gn(Ds(e)):ma(e)}function Hp(e){return function(t){return null==e?a:xo(e,t)}}var Yp=wi(),qp=wi(!0);function Wp(){return[]}function Kp(){return!1}function $p(){return{}}function Jp(){return""}function Qp(){return!0}function Xp(e,t){if(e=Ku(e),e<1||e>P)return[];var n=B,r=Ft(e,B);t=Hi(t),e-=B;var o=Wn(r,t);while(++n<e)t(n);return o}function Zp(e){return cu(e)?Tn(e,Ds):Vu(e)?[e]:oi(js(Zu(e)))}function ef(e){var t=++pt;return Zu(e)+t}var tf=Oi((function(e,t){return e+t}),0),nf=Ti("ceil"),rf=Oi((function(e,t){return e/t}),1),of=Ti("floor");function af(e){return e&&e.length?Io(e,jp,Uo):a}function sf(e,t){return e&&e.length?Io(e,Hi(t,2),Uo):a}function cf(e){return Fn(e,jp)}function lf(e,t){return Fn(e,Hi(t,2))}function uf(e){return e&&e.length?Io(e,jp,aa):a}function df(e,t){return e&&e.length?Io(e,Hi(t,2),aa):a}var pf=Oi((function(e,t){return e*t}),1),ff=Ti("round"),hf=Oi((function(e,t){return e-t}),0);function mf(e){return e&&e.length?qn(e,jp):0}function vf(e,t){return e&&e.length?qn(e,Hi(t,2)):0}return Or.after=El,Or.ary=jl,Or.assign=ed,Or.assignIn=td,Or.assignInWith=nd,Or.assignWith=rd,Or.at=od,Or.before=Dl,Or.bind=Ll,Or.bindAll=kp,Or.bindKey=Al,Or.castArray=Xl,Or.chain=Yc,Or.chunk=xs,Or.compact=Rs,Or.concat=Ps,Or.cond=Cp,Or.conforms=wp,Or.constant=Ip,Or.countBy=nl,Or.create=ad,Or.curry=Nl,Or.curryRight=xl,Or.debounce=Rl,Or.defaults=id,Or.defaultsDeep=sd,Or.defer=Pl,Or.delay=Ul,Or.difference=Us,Or.differenceBy=Vs,Or.differenceWith=Bs,Or.drop=Fs,Or.dropRight=Gs,Or.dropRightWhile=zs,Or.dropWhile=Hs,Or.fill=Ys,Or.filter=ol,Or.flatMap=sl,Or.flatMapDeep=cl,Or.flatMapDepth=ll,Or.flatten=Ks,Or.flattenDeep=$s,Or.flattenDepth=Js,Or.flip=Vl,Or.flow=Tp,Or.flowRight=Ep,Or.fromPairs=Qs,Or.functions=hd,Or.functionsIn=md,Or.groupBy=pl,Or.initial=ec,Or.intersection=tc,Or.intersectionBy=nc,Or.intersectionWith=rc,Or.invert=yd,Or.invertBy=bd,Or.invokeMap=hl,Or.iteratee=Dp,Or.keyBy=ml,Or.keys=Md,Or.keysIn=kd,Or.map=vl,Or.mapKeys=Cd,Or.mapValues=wd,Or.matches=Lp,Or.matchesProperty=Ap,Or.memoize=Bl,Or.merge=Id,Or.mergeWith=Sd,Or.method=Np,Or.methodOf=xp,Or.mixin=Rp,Or.negate=Fl,Or.nthArg=Vp,Or.omit=Td,Or.omitBy=Ed,Or.once=Gl,Or.orderBy=gl,Or.over=Bp,Or.overArgs=zl,Or.overEvery=Fp,Or.overSome=Gp,Or.partial=Hl,Or.partialRight=Yl,Or.partition=_l,Or.pick=jd,Or.pickBy=Dd,Or.property=zp,Or.propertyOf=Hp,Or.pull=cc,Or.pullAll=lc,Or.pullAllBy=uc,Or.pullAllWith=dc,Or.pullAt=pc,Or.range=Yp,Or.rangeRight=qp,Or.rearg=ql,Or.reject=Ol,Or.remove=fc,Or.rest=Wl,Or.reverse=hc,Or.sampleSize=kl,Or.set=Ad,Or.setWith=Nd,Or.shuffle=Cl,Or.slice=mc,Or.sortBy=Sl,Or.sortedUniq=Mc,Or.sortedUniqBy=kc,Or.split=cp,Or.spread=Kl,Or.tail=Cc,Or.take=wc,Or.takeRight=Ic,Or.takeRightWhile=Sc,Or.takeWhile=Tc,Or.tap=qc,Or.throttle=$l,Or.thru=Wc,Or.toArray=qu,Or.toPairs=xd,Or.toPairsIn=Rd,Or.toPath=Zp,Or.toPlainObject=Qu,Or.transform=Pd,Or.unary=Jl,Or.union=Ec,Or.unionBy=jc,Or.unionWith=Dc,Or.uniq=Lc,Or.uniqBy=Ac,Or.uniqWith=Nc,Or.unset=Ud,Or.unzip=xc,Or.unzipWith=Rc,Or.update=Vd,Or.updateWith=Bd,Or.values=Fd,Or.valuesIn=Gd,Or.without=Pc,Or.words=Op,Or.wrap=Ql,Or.xor=Uc,Or.xorBy=Vc,Or.xorWith=Bc,Or.zip=Fc,Or.zipObject=Gc,Or.zipObjectDeep=zc,Or.zipWith=Hc,Or.entries=xd,Or.entriesIn=Rd,Or.extend=td,Or.extendWith=nd,Rp(Or,Or),Or.add=tf,Or.attempt=Mp,Or.camelCase=qd,Or.capitalize=Wd,Or.ceil=nf,Or.clamp=zd,Or.clone=Zl,Or.cloneDeep=tu,Or.cloneDeepWith=nu,Or.cloneWith=eu,Or.conformsTo=ru,Or.deburr=Kd,Or.defaultTo=Sp,Or.divide=rf,Or.endsWith=$d,Or.eq=ou,Or.escape=Jd,Or.escapeRegExp=Qd,Or.every=rl,Or.find=al,Or.findIndex=qs,Or.findKey=cd,Or.findLast=il,Or.findLastIndex=Ws,Or.findLastKey=ld,Or.floor=of,Or.forEach=ul,Or.forEachRight=dl,Or.forIn=ud,Or.forInRight=dd,Or.forOwn=pd,Or.forOwnRight=fd,Or.get=vd,Or.gt=au,Or.gte=iu,Or.has=gd,Or.hasIn=_d,Or.head=Xs,Or.identity=jp,Or.includes=fl,Or.indexOf=Zs,Or.inRange=Hd,Or.invoke=Od,Or.isArguments=su,Or.isArray=cu,Or.isArrayBuffer=lu,Or.isArrayLike=uu,Or.isArrayLikeObject=du,Or.isBoolean=pu,Or.isBuffer=fu,Or.isDate=hu,Or.isElement=mu,Or.isEmpty=vu,Or.isEqual=gu,Or.isEqualWith=_u,Or.isError=yu,Or.isFinite=bu,Or.isFunction=Ou,Or.isInteger=Mu,Or.isLength=ku,Or.isMap=Iu,Or.isMatch=Su,Or.isMatchWith=Tu,Or.isNaN=Eu,Or.isNative=ju,Or.isNil=Lu,Or.isNull=Du,Or.isNumber=Au,Or.isObject=Cu,Or.isObjectLike=wu,Or.isPlainObject=Nu,Or.isRegExp=xu,Or.isSafeInteger=Ru,Or.isSet=Pu,Or.isString=Uu,Or.isSymbol=Vu,Or.isTypedArray=Bu,Or.isUndefined=Fu,Or.isWeakMap=Gu,Or.isWeakSet=zu,Or.join=oc,Or.kebabCase=Xd,Or.last=ac,Or.lastIndexOf=ic,Or.lowerCase=Zd,Or.lowerFirst=ep,Or.lt=Hu,Or.lte=Yu,Or.max=af,Or.maxBy=sf,Or.mean=cf,Or.meanBy=lf,Or.min=uf,Or.minBy=df,Or.stubArray=Wp,Or.stubFalse=Kp,Or.stubObject=$p,Or.stubString=Jp,Or.stubTrue=Qp,Or.multiply=pf,Or.nth=sc,Or.noConflict=Pp,Or.noop=Up,Or.now=Tl,Or.pad=tp,Or.padEnd=np,Or.padStart=rp,Or.parseInt=op,Or.random=Yd,Or.reduce=yl,Or.reduceRight=bl,Or.repeat=ap,Or.replace=ip,Or.result=Ld,Or.round=ff,Or.runInContext=e,Or.sample=Ml,Or.size=wl,Or.snakeCase=sp,Or.some=Il,Or.sortedIndex=vc,Or.sortedIndexBy=gc,Or.sortedIndexOf=_c,Or.sortedLastIndex=yc,Or.sortedLastIndexBy=bc,Or.sortedLastIndexOf=Oc,Or.startCase=lp,Or.startsWith=up,Or.subtract=hf,Or.sum=mf,Or.sumBy=vf,Or.template=dp,Or.times=Xp,Or.toFinite=Wu,Or.toInteger=Ku,Or.toLength=$u,Or.toLower=pp,Or.toNumber=Ju,Or.toSafeInteger=Xu,Or.toString=Zu,Or.toUpper=fp,Or.trim=hp,Or.trimEnd=mp,Or.trimStart=vp,Or.truncate=gp,Or.unescape=_p,Or.uniqueId=ef,Or.upperCase=yp,Or.upperFirst=bp,Or.each=ul,Or.eachRight=dl,Or.first=Xs,Rp(Or,function(){var e={};return Lo(Or,(function(t,n){dt.call(Or.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),Or.VERSION=i,Mn(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Or[e].placeholder=Or})),Mn(["drop","take"],(function(e,t){Sr.prototype[e]=function(n){n=n===a?1:Bt(Ku(n),0);var r=this.__filtered__&&!t?new Sr(this):this.clone();return r.__filtered__?r.__takeCount__=Ft(n,r.__takeCount__):r.__views__.push({size:Ft(n,B),type:e+(r.__dir__<0?"Right":"")}),r},Sr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Mn(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=n==A||n==x;Sr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Hi(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Mn(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Sr.prototype[e]=function(){return this[n](1).value()[0]}})),Mn(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Sr.prototype[e]=function(){return this.__filtered__?new Sr(this):this[n](1)}})),Sr.prototype.compact=function(){return this.filter(jp)},Sr.prototype.find=function(e){return this.filter(e).head()},Sr.prototype.findLast=function(e){return this.reverse().find(e)},Sr.prototype.invokeMap=Oa((function(e,t){return"function"==typeof e?new Sr(this):this.map((function(n){return Ho(n,e,t)}))})),Sr.prototype.reject=function(e){return this.filter(Fl(Hi(e)))},Sr.prototype.slice=function(e,t){e=Ku(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Sr(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==a&&(t=Ku(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},Sr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Sr.prototype.toArray=function(){return this.take(B)},Lo(Sr.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=Or[r?"take"+("last"==t?"Right":""):t],i=r||/^find/.test(t);o&&(Or.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,c=t instanceof Sr,l=s[0],u=c||cu(t),d=function(e){var t=o.apply(Or,En([e],s));return r&&p?t[0]:t};u&&n&&"function"==typeof l&&1!=l.length&&(c=u=!1);var p=this.__chain__,f=!!this.__actions__.length,h=i&&!p,m=c&&!f;if(!i&&u){t=m?t:new Sr(this);var v=e.apply(t,s);return v.__actions__.push({func:Wc,args:[d],thisArg:a}),new Ir(v,p)}return h&&m?e.apply(this,s):(v=this.thru(d),h?r?v.value()[0]:v.value():v)})})),Mn(["pop","push","shift","sort","splice","unshift"],(function(e){var t=it[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Or.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(cu(o)?o:[],e)}return this[n]((function(n){return t.apply(cu(n)?n:[],e)}))}})),Lo(Sr.prototype,(function(e,t){var n=Or[t];if(n){var r=n.name+"";dt.call(ln,r)||(ln[r]=[]),ln[r].push({name:t,func:n})}})),ln[yi(a,b).name]=[{name:"wrapper",func:a}],Sr.prototype.clone=Tr,Sr.prototype.reverse=Er,Sr.prototype.value=jr,Or.prototype.at=Kc,Or.prototype.chain=$c,Or.prototype.commit=Jc,Or.prototype.next=Qc,Or.prototype.plant=Zc,Or.prototype.reverse=el,Or.prototype.toJSON=Or.prototype.valueOf=Or.prototype.value=tl,Or.prototype.first=Or.prototype.head,St&&(Or.prototype[St]=Xc),Or},Cr=kr();cn._=Cr,o=function(){return Cr}.call(t,n,t,r),o===a||(r.exports=o)}).call(this)}).call(this,n("c8ba"),n("62e4")(e))},"2f5a":function(e,t,n){"use strict";var r,o,a,i=n("cce9"),s=n("3ac6"),c=n("dfdb"),l=n("0273"),u=n("0e6f"),d=n("7685"),p=n("b2ed"),f=n("6e9a"),h="Object already initialized",m=s.TypeError,v=s.WeakMap,g=function(e){return a(e)?o(e):r(e,{})},_=function(e){return function(t){var n;if(!c(t)||(n=o(t)).type!==e)throw m("Incompatible receiver, "+e+" required");return n}};if(i||d.state){var y=d.state||(d.state=new v);y.get=y.get,y.has=y.has,y.set=y.set,r=function(e,t){if(y.has(e))throw m(h);return t.facade=e,y.set(e,t),t},o=function(e){return y.get(e)||{}},a=function(e){return y.has(e)}}else{var b=p("state");f[b]=!0,r=function(e,t){if(u(e,b))throw m(h);return t.facade=e,l(e,b,t),t},o=function(e){return u(e,b)?e[b]:{}},a=function(e){return u(e,b)}}e.exports={set:r,get:o,has:a,enforce:g,getterFor:_}},"2f97":function(e,t,n){"use strict";var r=n("fb2d"),o=String,a=TypeError;e.exports=function(e){if("object"==typeof e||r(e))return e;throw a("Can't set "+o(e)+" as a prototype")}},3002:function(e,t,n){e.exports=n("96a8")},"304f":function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return c})),n.d(t,"d",(function(){return l}));var r=n("7a23");const o="el",a="is-",i=(e,t,n,r,o)=>{let a=`${e}-${t}`;return n&&(a+="-"+n),r&&(a+="__"+r),o&&(a+="--"+o),a},s=Symbol("namespaceContextKey"),c=e=>{const t=e||(Object(r["getCurrentInstance"])()?Object(r["inject"])(s,Object(r["ref"])(o)):Object(r["ref"])(o)),n=Object(r["computed"])(()=>Object(r["unref"])(t)||o);return n},l=(e,t)=>{const n=c(t),r=(t="")=>i(n.value,e,t,"",""),o=t=>t?i(n.value,e,"",t,""):"",s=t=>t?i(n.value,e,"","",t):"",l=(t,r)=>t&&r?i(n.value,e,t,r,""):"",u=(t,r)=>t&&r?i(n.value,e,"",t,r):"",d=(t,r)=>t&&r?i(n.value,e,t,"",r):"",p=(t,r,o)=>t&&r&&o?i(n.value,e,t,r,o):"",f=(e,...t)=>{const n=!(t.length>=1)||t[0];return e&&n?`${a}${e}`:""},h=e=>{const t={};for(const r in e)e[r]&&(t[`--${n.value}-${r}`]=e[r]);return t},m=t=>{const r={};for(const o in t)t[o]&&(r[`--${n.value}-${e}-${o}`]=t[o]);return r},v=e=>`--${n.value}-${e}`,g=t=>`--${n.value}-${e}-${t}`;return{namespace:n,b:r,e:o,m:s,be:l,em:u,bm:d,bem:p,is:f,cssVar:h,cssVarName:v,cssVarBlock:m,cssVarBlockName:g}}},"30b5":function(e,t,n){"use strict";var r=n("c532");function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var a;if(n)a=n(t);else if(r.isURLSearchParams(t))a=t.toString();else{var i=[];r.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),i.push(o(t)+"="+o(e))})))})),a=i.join("&")}if(a){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}},"30ef":function(e,t,n){"use strict";var r=n("f75e");e.exports=r},"31e7":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return c})),n.d(t,"d",(function(){return l})),n.d(t,"e",(function(){return a}));var r=n("9ad7"),o=n("0898");const a=Object(o["c"])([String,Object,Function]),i={Close:r["Close"]},s={Close:r["Close"],SuccessFilled:r["SuccessFilled"],InfoFilled:r["InfoFilled"],WarningFilled:r["WarningFilled"],CircleCloseFilled:r["CircleCloseFilled"]},c={success:r["SuccessFilled"],warning:r["WarningFilled"],error:r["CircleCloseFilled"],info:r["InfoFilled"]},l={validating:r["Loading"],success:r["CircleCheck"],error:r["CircleClose"]}},3327:function(e,t,n){"use strict";n("21b8");var r=n("a169");e.exports=r("Function").bind},3393:function(e,t,n){e.exports=n("b539")},"342f":function(e,t,n){"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},"344d":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("7a23"),o=n("8afb");const a=({from:e,replacement:t,scope:n,version:a,ref:i,type:s="API"},c)=>{Object(r["watch"])(()=>Object(r["unref"])(c),r=>{r&&Object(o["a"])(n,`[${s}] ${e} is about to be deprecated in version ${a}, please use ${t} instead.\nFor more detail, please visit: ${i}\n`)},{immediate:!0})}},3511:function(e,t,n){"use strict";var r=TypeError,o=9007199254740991;e.exports=function(e){if(e>o)throw r("Maximum allowed index exceeded");return e}},3515:function(e,t,n){"use strict";var r=n("437b"),o=n("d877"),a=Array.prototype;e.exports=function(e){var t=e.findIndex;return e===a||r(a,e)&&t===a.findIndex?o:t}},3581:function(e,t,n){var r;r=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){i(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 n(e){return(n="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 r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 a(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var c="undefined"!=typeof wx&&"function"==typeof wx.getSystemInfoSync&&Boolean(wx.getSystemInfoSync().fontSizeSetting),l="undefined"!=typeof qq&&"function"==typeof qq.getSystemInfoSync&&Boolean(qq.getSystemInfoSync().fontSizeSetting),u="undefined"!=typeof tt&&"function"==typeof tt.getSystemInfoSync&&Boolean(tt.getSystemInfoSync().fontSizeSetting),d="undefined"!=typeof swan&&"function"==typeof swan.getSystemInfoSync&&Boolean(swan.getSystemInfoSync().fontSizeSetting),p="undefined"!=typeof my&&"function"==typeof my.getSystemInfoSync&&Boolean(my.getSystemInfoSync().fontSizeSetting),f="undefined"!=typeof uni&&"undefined"==typeof window&&"function"==typeof uni.requireNativePlugin,h=f&&"ios"===uni.getDeviceInfo().platform.toLocaleLowerCase(),m=(f&&uni.getDeviceInfo().platform.toLocaleLowerCase(),c||l||u||d||p||f),v=l?qq:u?tt:d?swan:p?my:c?wx:f?uni:{},g=function(e){if("object"!==n(e)||null===e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;for(var r=t;null!==Object.getPrototypeOf(r);)r=Object.getPrototypeOf(r);return t===r};function _(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(g(e)){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}return!1}var y=function(){function e(){r(this,e)}return a(e,[{key:"request",value:function(e,t){var n=this,r=e.downloadUrl||"",o=(e.method||"PUT").toUpperCase(),a=e.url;if(e.qs){var i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"&",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"=";return _(e)?"":g(e)?Object.keys(e).map((function(r){var o=encodeURIComponent(r)+n;return Array.isArray(e[r])?e[r].map((function(e){return o+encodeURIComponent(e)})).join(t):o+encodeURIComponent(e[r])})).filter(Boolean).join(t):void 0}(e.qs);i&&(a+="".concat(-1===a.indexOf("?")?"?":"&").concat(i))}var s=new XMLHttpRequest;s.open(o,a,!0),s.responseType=e.dataType||"text";var c=e.headers||{};if(!_(c))for(var l in c)c.hasOwnProperty(l)&&"content-length"!==l.toLowerCase()&&"user-agent"!==l.toLowerCase()&&"origin"!==l.toLowerCase()&&"host"!==l.toLowerCase()&&s.setRequestHeader(l,c[l]);return s.onload=function(){if(200===s.status)t(null,n._xhrRes(s,n._xhrBody(s,r)));else{var e={code:s.status,message:JSON.stringify(s.responseText)};t(e,n._xhrRes(s,n._xhrBody(s)))}},s.onerror=function(e){var r=n._xhrBody(s),o={code:s.status,message:JSON.stringify(s.responseText)};r||s.statusText||0!==s.status||(e.message="CORS blocked or network error"),t(o,n._xhrRes(s,r)),o=null},e.onProgress&&s.upload&&(s.upload.onprogress=function(t){var n=t.total,r=t.loaded,o=Math.floor(100*r/n);e.onProgress({total:n,loaded:r,percent:(o>=100?100:o)/100})}),s.send(e.resources),s}},{key:"_xhrRes",value:function(e,t){var n={};return e.getAllResponseHeaders().trim().split("\n").forEach((function(e){if(e){var t=e.indexOf(":"),r=e.substr(0,t).trim().toLowerCase(),o=e.substr(t+1).trim();n[r]=o}})),{statusCode:e.status,statusMessage:e.statusText,headers:n,data:t}}},{key:"_xhrBody",value:function(e,t){return 200===e.status&&t?{location:t}:{response:e.responseText}}}]),e}(),b=["unknown","image","video","audio","log"],O=["name"],M=function(){function e(){r(this,e)}return a(e,[{key:"request",value:function(e,n){var r=this,o=e.resources,a=void 0===o?"":o,i=e.headers,c=void 0===i?{}:i,l=e.url,u=e.downloadUrl,d=void 0===u?"":u,f=l,m=null,g=d.match(/^(https?:\/\/[^/]+\/)([^/]*\/?)(.*)$/),_=decodeURIComponent(g[3]),y=_.indexOf("?")>-1?_.split("?")[0]:_,M={key:e.fileKey?e.fileKey:y,success_action_status:200,"Content-Type":""},k={};if(h){var C=l.split("?sign=");if(C.length>1){var w=C[1];f="".concat(C[0],"?sign=").concat(encodeURIComponent("".concat(w))),k.sign=decodeURIComponent(w),k.signature=decodeURIComponent(w)}}var I={url:f,header:c,name:"file",filePath:a,formData:t(t({},M),k),timeout:e.timeout||3e5};if(p){var S=I;S.name,I=t(t({},s(S,O)),{},{fileName:"file",fileType:b[e.fileType]})}return(m=v.uploadFile(t(t({},I),{},{success:function(e){r._handleResponse({response:e,downloadUrl:d,callback:n})},fail:function(e){r._handleResponse({response:e,downloadUrl:d,callback:n})}}))).onProgressUpdate&&m.onProgressUpdate((function(t){e.onProgress&&e.onProgress({total:t.totalBytesExpectedToSend,loaded:t.totalBytesSent,percent:Math.floor(t.progress)/100})})),m}},{key:"_handleResponse",value:function(e){var n=e.downloadUrl,r=e.response,o=e.callback,a=r.header,i={};if(a)for(var s in a)a.hasOwnProperty(s)&&(i[s.toLowerCase()]=a[s]);var c=+r.statusCode;200===c?o(null,{statusCode:c,headers:i,data:t(t({},r.data),{},{location:n})}):o({code:c,message:JSON.stringify(r.data)},{statusCode:c,headers:i,data:void 0})}}]),e}();return function(){function e(){r(this,e),console.log("TIMUploadPlugin.VERSION: ".concat("1.3.0")),this.retry=1,this.tryCount=0,this.systemClockOffset=0,this.httpRequest=m?new M:new y}return a(e,[{key:"uploadFile",value:function(e,t){var n=this;return this.httpRequest.request(e,(function(r,o){r&&n.tryCount<n.retry&&n.allowRetry(r)?(n.tryCount++,n.uploadFile(e,t)):(n.tryCount=0,t(r,o))}))}},{key:"allowRetry",value:function(e){var t=!1,n=!1;if(e){var r=e.headers&&(e.headers.date||e.headers.Date)||e.error&&e.error.ServerTime;try{var o=e.error&&e.error.Code,a=e.error&&e.error.Message;("RequestTimeTooSkewed"===o||"AccessDenied"===o&&"Request has expired"===a)&&(n=!0)}catch(c){}if(n&&r){var i=Date.now(),s=Date.parse(r);Math.abs(i+this.systemClockOffset-s)>=3e4&&(this.systemClockOffset=s-i,t=!0)}else 5===Math.floor(e.statusCode/100)&&(t=!0)}return t}}]),e}()},e.exports=r()},3584:function(e,t,n){"use strict";var r=n("ce18"),o=n("4e19");e.exports=function(e,t,n){try{return r(o(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(a){}}},"35b0":function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return l}));var r=n("7a23"),o=n("304f"),a=n("0931"),i=n("8afb");const s={prefix:Math.floor(1e4*Math.random()),current:0},c=Symbol("elIdInjection"),l=()=>Object(r["getCurrentInstance"])()?Object(r["inject"])(c,s):s,u=e=>{const t=l();a["isClient"]||t!==s||Object(i["a"])("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=Object(o["c"])(),c=Object(r["computed"])(()=>Object(r["unref"])(e)||`${n.value}-id-${t.prefix}-${t.current++}`);return c}},"362a":function(e,t,n){"use strict";var r=n("a5eb"),o=n("7042"),a=n("96ed"),i=n("06fa"),s=n("9883"),c=n("fb2d"),l=n("b0ea"),u=n("7ef9"),d=n("fdbe"),p=a&&a.prototype,f=!!a&&i((function(){p["finally"].call({then:function(){}},(function(){}))}));if(r({target:"Promise",proto:!0,real:!0,forced:f},{finally:function(e){var t=l(this,s("Promise")),n=c(e);return this.then(n?function(n){return u(t,e()).then((function(){return n}))}:e,n?function(n){return u(t,e()).then((function(){throw n}))}:e)}}),!o&&c(a)){var h=s("Promise").prototype["finally"];p["finally"]!==h&&d(p,"finally",h,{unsafe:!0})}},3653:function(e,t,n){!function(t,r){e.exports=r(n("5781"),n("595e"),n("e23e"),n("b3bc"))}(window,(function(e,t,n,r){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=30)}([function(e,t,n){"use strict";n.r(t),n.d(t,"mainUrl",(function(){return r})),n.d(t,"backupUrl",(function(){return o})),n.d(t,"Mode",(function(){return a})),n.d(t,"Role",(function(){return i})),n.d(t,"VIDEO_STAT_BIT",(function(){return s})),n.d(t,"AUDIO_STAT_BIT",(function(){return c})),n.d(t,"AUDIO_MUTE_BIT",(function(){return l})),n.d(t,"VIDEO_MUTE_BIT",(function(){return u})),n.d(t,"VIDEO_MUTED_MASK",(function(){return d})),n.d(t,"AUX_VIDEO_MUTED_MASK",(function(){return p})),n.d(t,"AUDIO_MUTED_MASK",(function(){return f})),n.d(t,"MAIN_STREAM_MSID",(function(){return h})),n.d(t,"AUX_STREAM_MSID",(function(){return m})),n.d(t,"StreamType",(function(){return v})),n.d(t,"TRTC_QUALITY_UNKNOWN",(function(){return g})),n.d(t,"TRTC_QUALITY_EXCELLENT",(function(){return _})),n.d(t,"TRTC_QUALITY_GOOD",(function(){return y})),n.d(t,"TRTC_QUALITY_POOR",(function(){return b})),n.d(t,"TRTC_QUALITY_BAD",(function(){return O})),n.d(t,"TRTC_QUALITY_VBAD",(function(){return M})),n.d(t,"TRTC_QUALITY_DISCONNECTED",(function(){return k})),n.d(t,"DTLS_STATE_UNKNOWN",(function(){return C})),n.d(t,"SuccessRate",(function(){return w})),n.d(t,"MTA_API_PENDING",(function(){return I})),n.d(t,"MTA_API_SUCCESS",(function(){return S})),n.d(t,"ConnectionState",(function(){return T})),n.d(t,"UPLINK_RECONNECTION_COUNT",(function(){return E})),n.d(t,"DOWNLINK_RECONNECTION_COUNT",(function(){return j})),n.d(t,"SIGNAL_RECONNECTION_COUNT",(function(){return D})),n.d(t,"KIBANA_EVENT",(function(){return L})),n.d(t,"SIGNAL_PING_TIMEOUT",(function(){return A})),n.d(t,"SIGNAL_PING_PONG_INTERVAL",(function(){return N})),n.d(t,"INNER_EVENT",(function(){return x})),n.d(t,"AI_NOISE_REDUCE_ASSETS_PATH",(function(){return R})),n.d(t,"MAX_NUMBER_ROOM_ID",(function(){return P})),n.d(t,"NAME",(function(){return U}));const r="wss://qcloud.rtc.qq.com:8687",o="wss://bk.rtc.qq.com:8687",a={RTC:1,LIVE:2},i={HOST:20,AUDIENCE:21},s=1,c=8,l=64,u=16,d=1,p=2,f=4,h="5Y2wZK8nANNAoVw6dSAHVjNxrD1ObBM2kBPV",m="224d130c-7b5c-415b-aaa2-79c2eb5a6df2",v={NONE:0,AUDIO:1,MAIN:2,AUX:7},g=0,_=1,y=2,b=3,O=4,M=5,k=6,C="unknown",w={JOIN:"join",PUBLISH:"publish",UNPUBLISH:"unpublish",LOCAL_STREAM_INITIALIZE:"local_stream_initialize",SUBSCRIBE:"subscribe",UNSUBSCRIBE:"unsubscibe",UPLINK_CONNECTION:"uplink_connection",UPLINK_RECONNECTION:"uplink_reconnection",DOWNLINK_CONNECTION:"downlink_connection",DOWNLINK_RECONNECTION:"downlink_reconnection",SIGNAL_CONNECTION:"signal_connection",SIGNAL_RECONNECTION:"signal_reconnection",UPDATE_STREAM:"update_stream"},I="pending",S="success",T={CONNECTING:"connecting",CONNECTED:"connected",DISCONNECTED:"disconnected"},E=30,j=30,D=30,L={SDK_CONSTRUCT:"sdkConstruct",SDK_LOGIN:"sdkLogin",DELTA_JOIN:"delta-join",REJOIN:"rejoin",LEAVE:"leave",DELTA_LEAVE:"delta-leave",PUBLISH:"publish",DELTA_PUBLISH:"delta-publish",UNPUBLISH:"unpublish",SUBSCRIBE:"subscribe",UNSUBSCRIBE:"unsubscribe",UPLINK_CONNECTION:"uplink-connection",UPLINK_RECONNECTION:"uplink-reconnection",DOWNLINK_CONNECTION:"downlink-connection",DOWNLINK_RECONNECTION:"downlink-reconnection",ON_TRACK:"ontrack",SET_LOCAL_DESCRIPTION:"setLocalDescription",SET_REMOTE_DESCRIPTION:"setRemoteDescription",ICE_CONNECTION_STATE:"iceConnectionState",LOCAL_STREAM_INITIALIZE:"stream-initialize",SIGNAL_CONNECTION:"websocketConnectionState",SIGNAL_RECONNECTION:"websocketReconnectionState",UPDATE_STREAM:"update-stream",RECOVER_SUBSCRIPTION:"recover-subscription"},A=6e3,N=1e4,x={SET_REMOTE_OFFER_FINISHED:"set-remote-offer-finished"},R="https://web.sdk.qcloud.com/trtc/webrtc/download/aiNoiseReduce/",P=2147483647,U={DEFAULT:"default",BOOLEAN:"boolean",STRING:"string",NUMBER:"number",OBJECT:"object",ARRAY:"array",FUNCTION:"function",FILE:"file",MAP:"map",SET:"set",UNDEFINED:"undefined",VIDEO:"video",AUDIO:"audio",ON_ERROR:"onError",MAIN:"main",RTC:"rtc",LIVE:"live",SMALL:"small",BIG:"big",AUXILIARY:"auxiliary",INVITER:"inviter",INVITEE:"invitee",VIDEO_INPUT:"videoinput",AUDIO_INPUT:"audioinput",LOCAL:"local",REMOTE:"remote",TRTC:"TRTC",WEB:"web",NORMAL:"normal",REJECT:"reject",IGNORE:"ignore",TIMEOUT:"timeout",RIC:"ric",RAF:"raf",INTERVAL:"interval",CANCEL:"cancel",BUSYLINE:"busyline",UNKNOWN:"unknown",SINGLE_CALL:"SingleCall",GROUP_CALL:"groupCall",CALLER:"caller",CALLEE:"callee",COVER:"cover",CONTAIN:"contain",FILL:"fill",AV_CALL:"av_call",CALLKIT_RECORDS_SVR:"callkit_records_svr",SINGLE:"single",GROUP:"group",START_CALL:"start_call",RECEIVE_CALL:"receive_call",CALL_ACCEPTED:"call_accepted",ACCEPT_CALL:"accept_call",CALL_MISSED:"call_missed",NOT_ANSWER_CALL:"not_answer_call",CALL_REJECTED:"call_rejected",REJECT_CALL:"reject_call",CALL_BUSY:"call_busy",IGNORE_CALL:"ignore_call",CANCEL_CALL:"cancel_call",CALL_CANCELED:"call_canceled",CALL_FAILED:"call_failed",CALL_END:"call_end",CALL_INTERRUPTED:"call_interrupted",INVITE_USER:"invite_user",JOIN_IN_GROUP_CALL:"join_in_group_call",EVENT_REPORT:"event_report",HEART_BEAT:"heartbeat",CALLING:"calling",BANNED:"banned"}},function(e,t,n){"use strict";n.r(t),n.d(t,"isMap",(function(){return a})),n.d(t,"isSet",(function(){return i})),n.d(t,"isFile",(function(){return s})),n.d(t,"isNumber",(function(){return c})),n.d(t,"isString",(function(){return l})),n.d(t,"isObject",(function(){return u})),n.d(t,"isBoolean",(function(){return d})),n.d(t,"isPlainObject",(function(){return p})),n.d(t,"isArray",(function(){return f})),n.d(t,"isUndefined",(function(){return h})),n.d(t,"isNativeClass",(function(){return v})),n.d(t,"isArrayOrObject",(function(){return g})),n.d(t,"isFunction",(function(){return _})),n.d(t,"isInstanceOfError",(function(){return y})),n.d(t,"getType",(function(){return b})),n.d(t,"TimeUtil",(function(){return M})),n.d(t,"stringifyError",(function(){return k})),n.d(t,"map2String",(function(){return C})),n.d(t,"randomString",(function(){return S})),n.d(t,"isValidType",(function(){return T})),n.d(t,"mapKeys",(function(){return E})),n.d(t,"mapValues",(function(){return j})),n.d(t,"generateRandomRoomID",(function(){return D})),n.d(t,"formatDuration",(function(){return A})),n.d(t,"compareVersion",(function(){return N})),n.d(t,"date2ISOString",(function(){return x})),n.d(t,"getHostType",(function(){return R})),n.d(t,"isCallSignaling",(function(){return P})),n.d(t,"performanceNow",(function(){return U}));var r=n(7),o=n(0);const a=function(e){return b(e)===o.NAME.MAP},i=function(e){return b(e)===o.NAME.SET},s=function(e){return b(e)===o.NAME.FILE},c=function(e){return null!==e&&(typeof e===o.NAME.NUMBER&&!isNaN(e-0)||typeof e===o.NAME.OBJECT&&e.constructor===Number)},l=function(e){return typeof e===o.NAME.STRING},u=function(e){return null!==e&&typeof e===o.NAME.OBJECT},d=function(e){return typeof e===o.NAME.BOOLEAN},p=function(e){if(typeof e!==o.NAME.OBJECT||null===e)return!1;const t=Object.getPrototypeOf(e);if(null===t)return!0;let n=t;for(;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return t===n},f=function(e){return typeof Array.isArray===o.NAME.FUNCTION?Array.isArray(e):b(e)===o.NAME.ARRAY},h=function(e){return typeof e===o.NAME.UNDEFINED},m=/^class\s/,v=function(e){return typeof e===o.NAME.FUNCTION&&m.test(e.toString())},g=function(e){return f(e)||u(e)},_=function(e){return typeof e===o.NAME.FUNCTION},y=function(e){return e instanceof Error},b=function(e){return Object.prototype.toString.call(e).match(/^\[object (.*)\]$/)[1].toLowerCase()};let O=0;Date.now||(Date.now=function(){return(new Date).getTime()});const M={now(){0===O&&(O=Date.now()-1);const e=Date.now()-O;return e>4294967295?(O+=4294967295,Date.now()-O):e},utc:()=>Math.round(Date.now()/1e3)},k=function(e){return JSON.stringify(e,["message","code"])},C=function(e){if(!a(e))return"not a map!!!";let t="";for(const[n,r]of e.entries()){if(a(r))return`[k=${n} -> ${C(r)}`;t+=`[k=${n} v=${r}] `}return t},w="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",I=w.length,S=function(){let e="";for(let t=32;t>0;--t)e+=w[Math.floor(Math.random()*I)];return e},T=function(e,t){for(const n in e)if(e[n]===t)return!0;return!1};function E(e,t){const n={};return Object.keys(e).forEach(r=>{n[t(e[r],r)]=e[r]}),n}function j(e,t){const n={};return Object.keys(e).forEach(r=>{n[r]=t(e[r],r)}),n}function D(){return Math.round(1e8*Math.random())}function L(e){return e<10?"0"+e:e}function A(e){if(e<60)return"00:00:"+L(e);if(e<3600){const t=parseInt(e/60),n=e-60*t;return`00:${L(t)}:${L(n)}`}const t=parseInt(e/3600),n=e-3600*t,r=parseInt(n/60),o=n-60*r;return`${L(t)}:${L(r)}:${L(o)}`}function N(e,t){e=e.split("."),t=t.split(".");const n=Math.max(e.length,t.length);for(;e.length<n;)e.push("0");for(;t.length<n;)t.push("0");for(let r=0;r<n;r++){const n=parseInt(e[r]),o=parseInt(t[r]);if(n>o)return 1;if(n<o)return-1}return 0}const x=function(){const e=new Date,t=e.toISOString(),n=e.getTimezoneOffset()/60;let r="";return r=n<0?n>-10?"+0"+Math.abs(100*n):"+"+Math.abs(100*n):n>=10?"-"+100*n:"-0"+100*n,t.replace("Z",r)};function R(){let e="unknown";return r.IS_MAC&&(e="mac"),r.IS_WIN&&(e="windows"),r.IS_IOS&&(e="ios"),r.IS_ANDROID&&(e="android"),e}function P(e){return e===o.NAME.AV_CALL}function U(){return performance&&performance.now?Math.floor(performance.now()):Date.now()}},function(e,t,n){"use strict";n.r(t);var r=n(8),o=n(1);let a=0;const i=new Map;function s(){const e=new Date;return`TUICallEngine ${e.toLocaleTimeString("en-US",{hour12:!1})}.${function(e){let t;switch(e.toString().length){case 1:t="00"+e;break;case 2:t="0"+e;break;default:t=e}return t}(e.getMilliseconds())}:`}const c={_data:[],_length:0,_visible:!1,arguments2String(e){let t;if(1===e.length)t=s()+e[0];else{t=s();for(let n=0,{length:r}=e;n<r;n++)Object(o.isArrayOrObject)(e[n])?Object(o.isInstanceOfError)(e[n])?t+=Object(o.stringifyError)(e[n]):t+=JSON.stringify(e[n]):t+=e[n],t+=" "}return t},debug(){if(a<=-1){const e=this.arguments2String(arguments);c.record(e,"debug"),r.a.debug(e)}},log(){if(a<=0){const e=this.arguments2String(arguments);c.record(e,"log"),r.a.log(e)}},info(){if(a<=1){const e=this.arguments2String(arguments);c.record(e,"info"),r.a.info(e)}},warn(){if(a<=2){const e=this.arguments2String(arguments);c.record(e,"warn"),r.a.warn(e)}},error(){if(a<=3){const e=this.arguments2String(arguments);c.record(e,"error"),r.a.error(e)}},time(e){i.set(e,o.TimeUtil.now())},timeEnd(e){if(i.has(e)){const t=o.TimeUtil.now()-i.get(e);return i.delete(e),t}return r.a.warn(`未找到对应label: ${e}, 请在调用 logger.timeEnd 前,调用 logger.time`),0},setLevel(e){e<4&&r.a.log(`${s()}set level from ${a} to ${e}`),a=e},getLevel:()=>a,record(e,t){1100===c._length&&(c._data.splice(0,100),c._length=1e3),c._length++,c._data.push(`${e} [${t}] \n`)},getLog:()=>c._data};t.default=c},function(e,t,n){"use strict";var r=n(18),o=Object.prototype.toString;function a(e){return"[object Array]"===o.call(e)}function i(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function c(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function l(e){return"[object Function]"===o.call(e)}function u(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),a(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)}e.exports={isArray:a,isArrayBuffer:function(e){return"[object ArrayBuffer]"===o.call(e)},isBuffer:function(e){return null!==e&&!i(e)&&null!==e.constructor&&!i(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:s,isPlainObject:c,isUndefined:i,isDate:function(e){return"[object Date]"===o.call(e)},isFile:function(e){return"[object File]"===o.call(e)},isBlob:function(e){return"[object Blob]"===o.call(e)},isFunction:l,isStream:function(e){return s(e)&&l(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:u,merge:function e(){var t={};function n(n,r){c(t[r])&&c(n)?t[r]=e(t[r],n):c(n)?t[r]=e({},n):a(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)u(arguments[r],n);return t},extend:function(e,t,n){return u(t,(function(t,o){e[o]=n&&"function"==typeof t?r(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={UNKNOWN:65535,NO_SDK_APPID:2e3,NO_ACCOUNT_TYPE:2001,NO_IDENTIFIER:2002,NO_USER_SIG:2003,NO_TINY_ID:2022,NO_A2KEY:2023,USER_NOT_LOGGED_IN:2024,NO_NETWORK:2805,FAILURE_SWITCH_TO_AUDIO:60001,FAILURE_SWITCH_TO_VIDEO:60002,NOT_MICROPHONE_LIST:60003,NOT_CAMERA_LIST:60004,NOT_MEDIA_ACCESS:60005,NOT_SUPPORT:60006,ERROR_PACKAGE_NOT_PURCHASED:-1001,ERROR_PACKAGE_NOT_SUPPORTED:-1002,ERROR_TIM_VERSION_OUTDATED:-1003,ERROR_PERMISSION_DENIED:-1101,ERROR_GET_DEVICE_LIST_FAIL:-1102,ERROR_INIT_FAIL:-1201,ERROR_PARAM_INVALID:-1202,ERROR_REQUEST_REFUSED:-1203,ERROR_REQUEST_REPEATED:-1204,ERROR_SCENE_NOT_SUPPORTED:-1205,ERROR_SIGNALING_SEND_FAIL:-1401,ERROR_INVALID_INVITEID:8010,ERROR_INVALID_SEND_FAIL:20003,ERROR_HTTP:3e4}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEVICEID_TYPE=t.DEVICE_TYPE=t.CALL_EXPERMENTEL_API_TYPE=t.LOG_LEVEL=t.MODE_TYPE=t.VALID_VIDEO_PROFILE_LIST=t.BUSINESS_ID=t.ACTION_TYPE=t.CALL_ROLE=t.CALL_STATUS=t.CMD_TYPE=t.CMD_TYPE_LIST=t.CALL_TYPE=void 0;var r=n(14);!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.AUDIO_CALL=1]="AUDIO_CALL",e[e.VIDEO_CALL=2]="VIDEO_CALL"}(t.CALL_TYPE||(t.CALL_TYPE={})),t.CMD_TYPE_LIST=["","audioCall","videoCall"],function(e){e.AUDIO_CALL="audioCall",e.VIDEO_CALL="videoCall",e.HANG_UP="hangup",e.SWITCH_TO_AUDIO="switchToAudio",e.SWITCH_TO_AUDIO_CALL="switch_to_audio_call",e.SWITCH_TO_VIDEO="switchToVideo"}(t.CMD_TYPE||(t.CMD_TYPE={})),function(e){e.IDLE="idle",e.CALLING="calling",e.CONNECTED="connected"}(t.CALL_STATUS||(t.CALL_STATUS={})),function(e){e.UNKNOWN="",e.INVITER="inviter",e.INVITEE="invitee"}(t.CALL_ROLE||(t.CALL_ROLE={})),function(e){e[e.INVITE=1]="INVITE",e[e.CANCEL_INVITE=2]="CANCEL_INVITE",e[e.ACCEPT_INVITE=3]="ACCEPT_INVITE",e[e.REJECT_INVITE=4]="REJECT_INVITE",e[e.INVITE_TIMEOUT=5]="INVITE_TIMEOUT"}(t.ACTION_TYPE||(t.ACTION_TYPE={})),function(e){e[e.SIGNAL=1]="SIGNAL"}(t.BUSINESS_ID||(t.BUSINESS_ID={})),t.VALID_VIDEO_PROFILE_LIST=Object.keys(r.TUICommonDefine.VideoEncoderParams),function(e){e.AUDIO="audio",e.VIDEO="video"}(t.MODE_TYPE||(t.MODE_TYPE={})),function(e){e[e.NORMAL=0]="NORMAL",e[e.RELEASE=1]="RELEASE",e[e.WARNING=2]="WARNING",e[e.ERROR=3]="ERROR",e[e.NONE=4]="NONE"}(t.LOG_LEVEL||(t.LOG_LEVEL={})),function(e){e[e.BASE=Math.pow(2,16)]="BASE",e[e.PRO=Math.pow(2,17)]="PRO",e[e.ULTIMATE=Math.pow(2,18)]="ULTIMATE"}(t.CALL_EXPERMENTEL_API_TYPE||(t.CALL_EXPERMENTEL_API_TYPE={})),function(e){e.AUDIO="audio",e.VIDEO="video",e.CAMERA="camera",e.MICROPHONES="microphones"}(t.DEVICE_TYPE||(t.DEVICE_TYPE={})),function(e){e.audio="microphoneId",e.video="cameraId"}(t.DEVICEID_TYPE||(t.DEVICEID_TYPE={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ERROR_CN_MESSAGE=t.ERROR_MESSAGE=void 0,t.ERROR_MESSAGE={NO_SDK_APPID:"无 SDKAppID",NO_ACCOUNT_TYPE:"无 accountType",NO_IDENTIFIER:"无 userID",NO_USER_SIG:"无 userSig",NO_NETWORK:"未连接到网络",FAILURE_SWITCH_TO_AUDIO:"switch to audio call error",FAILURE_SWITCH_TO_VIDEO:"switch to video call error",NOT_MICROPHONE_LIST:"No microphone or microphone permission denied",NOT_CAMERA_LIST:"No camera or camera permission denied",ERROR_NULL:"success",ERROR_PACKAGE_NOT_PURCHASED:"You do not currently have TUICallKit package, please open the free experience in the console or purchase the official package",ERROR_PACKAGE_NOT_SUPPORTED:'The package you purchased does not support this ability. You can refer to "Activate TRTC and IM": https://www.tencentcloud.com/document/product/647/50993#step-1.-activate-trtc-and-im',ERROR_TIM_VERSION_OUTDATED:"TIM SDK version is too old, Please upgrade version",ERROR_PERMISSION_DENIED:"camera permission refused / microphone permission refused. You can perform the trtc capability test at https://web.sdk.qcloud.com/trtc/webrtc/demo/detect/index.html to check whether the current environment supports audio and video calls",ERROR_GET_DEVICE_LIST_FAIL:"Failed to get device list",ERROR_INIT_FAIL:"init or login is not complete, this API needs to be used after init. To solve the problem, please go to: https://cloud.tencent.com/document/product/647/78769#3a61f42b-e06f-49af-88bf-362d40025887",ERROR_REQUEST_REFUSED:"The API is support use in the state of. To solve the problem, please go to: https://cloud.tencent.com/document/product/647/78769#5e65043d-e3dc-4bd3-8220-3ac7694dfa42",ERROR_REQUEST_REPEATED:"The current method is being executed, please do not call it repeatedly",ERROR_REQUEST_REPEATED_SWITCH:"Consistent with the current call type, please do not switch repeatedly",ERROR_SCENE_NOT_SUPPORTED:"In the current call scene, this function is not supported",ERROR_SIGNALING_SEND_FAIL:"signaling failed to send",ERROR_INVALID_INVITEID:"inviteID is invalid or invitation has been processed. To solve the problem, please go to: https://cloud.tencent.com/document/product/647/84363#e97ea97b-7812-42ed-89b7-2a3840ac0e3f",ERROR_INVALID_SEND_FAIL:"Invalid sender or receiver identifier! To solve the problem, please go to: https://cloud.tencent.com/document/product/647/84363#661be1b0-f649-4199-a343-958c3f4f4bbb",ERROR_PARAM_INVALID:"invalid parameter",ERROR_HTTP:"The current page is detected to be using the http protocol. To ensure smooth access and experience of all functions of TUICallEngine SDK for production environment users, please use the https protocol to access the audio and video application page. More Info: https://web.sdk.qcloud.com/trtc/webrtc/doc/en/tutorial-05-info-browser.html#h2-3",NOT_SUPPORT:"The current page does not have webRTC capability. You can perform the trtc capability test at https://web.sdk.qcloud.com/trtc/webrtc/demo/detect/index.html to check whether the current environment supports audio and video calls"},t.ERROR_CN_MESSAGE={NO_SDK_APPID:"无 SDKAppID",NO_ACCOUNT_TYPE:"无帐户类型",NO_IDENTIFIER:"无 userID",NO_USER_SIG:"无 userSig",NO_NETWORK:"未连接到网络",FAILURE_SWITCH_TO_AUDIO:"切换语音通话失败",FAILURE_SWITCH_TO_VIDEO:"切换视频通话失败",NOT_MICROPHONE_LIST:"没有麦克风权限",NOT_CAMERA_LIST:"没有摄像头权限",ERROR_NULL:"成功",ERROR_PACKAGE_NOT_PURCHASED:"您目前没有 TUICallKit 包,请在控制台开启免费体验或购买官方包",ERROR_PACKAGE_NOT_SUPPORTED:"您购买的套餐不支持该功能。可参考开通方式:https://cloud.tencent.com/document/product/647/84363#ff45b4ad-f605-42b8-a0af-b2397c8f3e1a",ERROR_TIM_VERSION_OUTDATED:"TIM SDK 版本太旧,请升级版本",ERROR_PERMISSION_DENIED:"摄像头/麦克风权限被拒绝,可以前往: https://web.sdk.qcloud.com/trtc/webrtc/demo/detect/index.html 进行 trtc 能力测试,查看当前环境是否支持音视频通话",ERROR_GET_DEVICE_LIST_FAIL:"获取设备列表失败",ERROR_INIT_FAIL:"TUICallEngine 初始化登录未完成,需要在 init 或 login 完成后使用此 API 。解决方案请前往: https://cloud.tencent.com/document/product/647/78769#3a61f42b-e06f-49af-88bf-362d40025887",ERROR_REQUEST_REFUSED:"当前通话状态无法使用该 API。解决方案请前往: https://cloud.tencent.com/document/product/647/78769#5e65043d-e3dc-4bd3-8220-3ac7694dfa42",ERROR_REQUEST_REPEATED:"当前方法正在执行中,请勿重复调用",ERROR_REQUEST_REPEATED_SWITCH:"与当前通话类型一致,请勿重复切换",ERROR_SCENE_NOT_SUPPORTED:"当前通话场景不支持该功能",ERROR_SIGNALING_SEND_FAIL:"信令发送失败",ERROR_INVALID_INVITEID:"邀请 ID 无效或邀请已处理。解决方案请前往: https://cloud.tencent.com/document/product/647/84363#e97ea97b-7812-42ed-89b7-2a3840ac0e3f",ERROR_INVALID_SEND_FAIL:"消息发送方或接收方 UserID 无效或不存在。解决方案请前往: https://cloud.tencent.com/document/product/647/84363#661be1b0-f649-4199-a343-958c3f4f4bbb",ERROR_PARAM_INVALID:"参数错误",ERROR_HTTP:"检测到当前页面正处于 http 协议下,为确保生产环境用户顺畅接入和体验 TUICallEngine SDK 的全部功能,请使用 https 协议访问音视频应用页面。详情请前往:https://web.sdk.qcloud.com/trtc/webrtc/doc/zh-cn/tutorial-05-info-browser.html#h2-3",NOT_SUPPORT:"当前页面不具备 webRTC 能力。可以前往: https://web.sdk.qcloud.com/trtc/webrtc/demo/detect/index.html 进行 trtc 能力测试,查看当前环境是否支持音视频通话"}},function(e,t,n){"use strict";n.r(t),n.d(t,"IN_Browser",(function(){return r})),n.d(t,"IN_WXMiniProgram",(function(){return o})),n.d(t,"USER_AGENT",(function(){return a})),n.d(t,"IS_IPAD",(function(){return c})),n.d(t,"IS_IPHONE",(function(){return l})),n.d(t,"IS_IPOD",(function(){return u})),n.d(t,"IS_IOS",(function(){return d})),n.d(t,"IOS_VERSION",(function(){return p})),n.d(t,"IS_ANDROID",(function(){return f})),n.d(t,"ANDROID_VERSION",(function(){return h})),n.d(t,"IS_OLD_ANDROID",(function(){return m})),n.d(t,"IS_NATIVE_ANDROID",(function(){return v})),n.d(t,"IS_FIREFOX",(function(){return g})),n.d(t,"FIREFOX_VERSION",(function(){return _})),n.d(t,"IS_EDGE",(function(){return y})),n.d(t,"EDGE_VERSION",(function(){return b})),n.d(t,"IS_EDG",(function(){return O})),n.d(t,"EDG_VERSION",(function(){return M})),n.d(t,"IS_CHROME",(function(){return k})),n.d(t,"CHROME_MAJOR_VERSION",(function(){return C})),n.d(t,"CHROME_VERSION",(function(){return w})),n.d(t,"IS_IE8",(function(){return I})),n.d(t,"IE_VERSION",(function(){return S})),n.d(t,"IS_SAFARI",(function(){return T})),n.d(t,"IS_ANY_SAFARI",(function(){return E})),n.d(t,"SAFARI_VERSION",(function(){return j})),n.d(t,"IS_TBS",(function(){return D})),n.d(t,"TBS_VERSION",(function(){return L})),n.d(t,"IS_X5MQQB",(function(){return A})),n.d(t,"IS_MQQB",(function(){return N})),n.d(t,"MQQB_VERSION",(function(){return x})),n.d(t,"IS_QQB",(function(){return R})),n.d(t,"IS_WECHAT",(function(){return P})),n.d(t,"WECHAT_VERSION",(function(){return U})),n.d(t,"IS_WIN",(function(){return V})),n.d(t,"IS_MAC",(function(){return B})),n.d(t,"IS_LINUX",(function(){return F})),n.d(t,"IS_WX",(function(){return G})),n.d(t,"IS_UCBROWSER",(function(){return z})),n.d(t,"IS_MIUIBROWSER",(function(){return H})),n.d(t,"IS_HUAWEIBROWSER",(function(){return Y})),n.d(t,"HUAWEI_VERSION",(function(){return q})),n.d(t,"BROWSER_VERSION",(function(){return W})),n.d(t,"IS_LOCAL",(function(){return K})),n.d(t,"getBrowserInfo",(function(){return J})),n.d(t,"getOsInfo",(function(){return Q}));const r="undefined"!=typeof window,o="undefined"!=typeof wx,a=window.navigator&&window.navigator.userAgent||"",i=/AppleWebKit\/([\d.]+)/i.exec(a),s=i?parseFloat(i.pop()):null,c=/iPad/i.test(a),l=/iPhone/i.test(a)&&!c,u=/iPod/i.test(a),d=l||c||u,p=function(){const e=a.match(/OS (\d+)_/i);return e&&e[1]?e[1]:null}(),f=/Android/i.test(a),h=function(){const e=a.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;const t=e[1]&&parseFloat(e[1]),n=e[2]&&parseFloat(e[2]);return t&&n?parseFloat(`${e[1]}.${e[2]}`):t||null}(),m=f&&/webkit/i.test(a)&&h<2.3,v=f&&h<5&&s<537,g=/Firefox/i.test(a),_=function(){const e=a.match(/Firefox\/(\d+)/);return e&&e[1]?parseFloat(e[1]):null}(),y=/Edge\//i.test(a),b=y&&function(){const e=a.match(/Edge\/(\d+)/i);if(e&&e[1])return e[1]}(),O=/Edg\//i.test(a),M=function(){const e=a.match(/Edg\/(\d+)/);return e&&e[1]?parseFloat(e[1]):null}(),k=!y&&/Chrome/i.test(a),C=function(){const e=a.match(/Chrome\/(\d+)/);return e&&e[1]?parseFloat(e[1]):null}(),w=function(){const e=a.match(/Chrome\/([\d.]+)/);return e&&e[1]?e[1]:null}(),I=/MSIE\s8\.0/.test(a),S=function(){const e=/MSIE\s(\d+)\.\d/.exec(a);let t=e&&parseFloat(e[1]);return!t&&/Trident\/7.0/i.test(a)&&/rv:11.0/.test(a)&&(t=11),t}(),T=/Safari/i.test(a)&&!k&&!f&&!y,E=T||d,j=function(){const e=a.match(/Version\/([\d.]+)/);return e&&e[1]?e[1]:null}(),D=/TBS\/\d+/i.test(a),L=function(){const e=a.match(/TBS\/(\d+)/i);if(e&&e[1])return e[1]}(),A=!D&&/MQQBrowser\/\d+/i.test(a)&&/COVC\/\d+/i.test(a),N=!D&&/MQQBrowser\/\d+/i.test(a),x=(N||A)&&function(){const e=a.match(/ MQQBrowser\/([\d.]+)/);return e&&e[1]?e[1]:null}(),R=!D&&/ QQBrowser\/\d+/i.test(a),P=/(micromessenger|webbrowser)/i.test(a),U=P&&function(){const e=a.match(/MicroMessenger\/(\d+)/i);if(e&&e[1])return e[1]}(),V=/Windows/i.test(a),B=/MAC OS X/i.test(a),F=/Linux/i.test(a),G=/MicroMessenger/i.test(a),z=/UCBrowser/i.test(a),H=/MiuiBrowser/i.test(a),Y=/HuaweiBrowser/i.test(a),q=Y&&function(){const e=a.match(/HuaweiBrowser\/([\d.]+)/);return e&&e[1]?e[1]:null}(),W=k?"Chrome/"+w:T?"Safari/"+j:"NotSupportedBrowser",K="file:"===location.protocol||"localhost"===location.hostname||/^\d+\.\d+\.\d+\.\d+$/.test(location.hostname),$=new Map([[g,["Firefox",_]],[O,["Edg",M]],[k,["Chrome",w]],[T,["Safari",j]],[D,["TBS",L]],[P&&l,["WeChat",U]],[N,["QQ(Mobile)",x]],[A,["QQ(Mobile X5)",x]],[Y,["HW",q]],[y,["EDGE",b]]]);function J(){let e="unknown",t="unknown";return $.get(!0)&&(e=$.get(!0)[0],t=$.get(!0)[1]),{name:e,version:t}}function Q(){let e="unknown";return B&&(e="mac"),V&&(e="windows"),f&&(e="android"),d&&(e="iOS"),{name:e}}},function(e,t,n){"use strict";(function(e){let n,r;n="undefined"!=typeof console?console:void 0!==e&&e.console?e.console:"undefined"!=typeof window&&window.console?window.console:{};const o=function(){},a=["assert","clear","count","debug","dir","dirxml","error","exception","group","groupCollapsed","groupEnd","info","log","markTimeline","profile","profileEnd","table","time","timeEnd","timeStamp","trace","warn"];let{length:i}=a;for(;i--;)r=a[i],console[r]||(n[r]=o);n.methods=a,t.a=n}).call(this,n(34))},function(e,t,n){"use strict";var r,o=this&&this.__extends||(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)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(4),i=n(6),s=function(e){function t(t){var n=t.message,r=t.code,o=void 0===r?a.default.UNKNOWN:r,s=e.call(this,n+" "+function(e){for(var t in i.ERROR_CN_MESSAGE)if(a.default[t]===e)return i.ERROR_CN_MESSAGE[t];return"UNKNOWN"}(o)+" <"+function(e){for(var t in a.default)if(a.default[t]===e)return t;return"UNKNOWN"}(o)+": "+o+">")||this;return s.code=o,s.name="TUICallEngineError",s.message_=n,s}return o(t,e),t.prototype.getCode=function(){return this.code},t}(Error);t.default=s},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(2),a=n(4),i=n.n(a),s=n(6);class c{constructor(e){this.sdkappid="",this.version="",this.userid="",this.platform="",this.useragent="",this.method=e,this.codeint=1,this.calltype=1,this.talktime=0,this.message="",this.text="",this.startts=Date.now(),this.endts=0,this.timespan=0,this.time="",this.networktype="",this.host=Object(r.getHostType)()}static bindController(e){c.prototype._eventStatController=e}setCommonInfo(e){const{SDKAppID:t,version:n,userID:o,platform:a,scene:i}=e;this.sdkappid=t,this.version=""+n,this.userid=o,this.platform=a,this.scene=i,this.time=Object(r.date2ISOString)(),this.startts&&this.endts&&!this.timespan&&(this.timespan=Math.abs(this.endts-this.startts))}setEnd(e=!1){this.endts=Date.now(),e?this._eventStatController.pushIn(this):setTimeout(()=>{this._eventStatController.pushIn(this)},0)}setError(e,t,n){return this.setNetworkType(n),t?(e.code&&this.setCode(e.code),e.message&&this.setMessage(e.message)):(this.setCode(i.a.NO_NETWORK),this.setMessage(s.ERROR_MESSAGE.NO_NETWORK)),this}setCode(e){return"ECONNABORTED"===e&&(this.codeint=103),Object(r.isNumber)(e)?this.codeint=e:o.default.warn("SSOLogData.setCode value not a number, please check!",e,typeof e),this}setMessage(e){return Object(r.isString)(e)?(this.message=e,this):this}setText(e){return Object(r.isNumber)(e)?this.text=e.toString():Object(r.isString)(e)&&(this.text=e),this}setTalkTime(e){return this.talktime=e,this}setMessageType(e){return this.msgType=e,this}setCallType(e){return this.calltype=e,this}setNetworkType(e){return Object(r.isUndefined)(e)?o.default.warn("SSOLogData.setNetworkType value is undefined, please check!"):this.networktype=e,this}}t.default=c},function(e,t,n){"use strict";n.r(t),t.default={SDK_CONSTRUCT:"sdkConstruct",SDK_READY:"sdkReady",SDK_NOT_READY:"sdkNotReady",LOGIN:"login",LOGOUT:"logout",CALL:"call",GROUP_CALL:"groupCall",ACCEPT:"accept",REJECT:"reject",HANGUP:"hangup",START_REMOTE_VIEW:"startRemoteView",STOP_REMOTE_VIEW:"stopRemoteView",START_LOCAL_VIEW:"startLocalView",STOP_LOCAL_VIEW:"stopLocalView",OPEN_CAMERA:"openCamera",CLOSE_CAMERA:"closeCamera",SET_MIC_MUTE:"setMicMute",SET_VIDEO_QUALITY:"setVideoQuality",SWITCH_TO_AUDIO_CALL:"switchToAudioCall",SWITCH_TO_VIDEO_CALL:"switchToVideoCall",CHANGE_CALL_STATUS:"changeCallStatus",TALK_TIME:"talktime",ERROR:"error",INVITED:"invited",GROUP_CALL_INVITEE_LIST_UPDATE:"group_call_invitee_list_update",USER_ENTER:"user_enter",USER_LEAVE:"user_leave",NO_RESP:"no_resp",LINE_BUSY:"line_busy",CALLING_CANCEL:"calling_cancel",KICKED_OUT:"kicked_out",CALLING_TIMEOUT:"calling_timeout",CALLING_END:"calling_end",USER_VIDEO_AVAILABLE:"user_video_available",USER_AUDIO_AVAILABLE:"user_audio_available",USER_VOICE_VOLUME:"user_voice_volume",CALL_TYPE_CHANGED:"call_type_changed",DEVICED_UPDATED:"deviced_updated",QUALITY_REPORT:"quality_report"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TUICallEvent=void 0,t.TUICallEvent={ERROR:"onError",SDK_READY:"sdkReady",ON_CALL_BEGIN:"onCallBegin",INVITED:"onInvited",ON_CALL_RECEIVED:"onCallReceived",USER_ACCEPT:"onUserAccept",USER_ENTER:"onUserEnter",USER_LEAVE:"onUserLeave",REJECT:"onReject",NO_RESP:"onNoResp",LINE_BUSY:"onLineBusy",CALLING_CANCEL:"onCallingCancel",ON_CALL_CANCELED:"onCallCanceled",KICKED_OUT:"onKickedOut",CALLING_TIMEOUT:"onCallingTimeout",CALL_END:"onCallEnd",CALLING_END:"onCallEnd",USER_VIDEO_AVAILABLE:"onUserVideoAvailable",USER_AUDIO_AVAILABLE:"onUserAudioAvailable",USER_VOICE_VOLUME:"onUserVoiceVolume",GROUP_CALL_INVITEE_LIST_UPDATE:"onGroupCallInviteeListUpdate",CALL_TYPE_CHANGED:"onCallTypeChanged",DEVICED_UPDATED:"onDeviceUpdated",MESSAGE_SENT_BY_ME:"onMessageSentByMe"}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return h}));var r=n(2),o=n(1);class a{constructor(){this._table="timweb-trtccalling",this._report=[]}pushIn(e){r.default.debug("SSOLogBody.pushIn",this._report.length,e),this._report.push(e)}backfill(e){Object(o.isArray)(e)&&0!==e.length&&(r.default.debug("SSOLogBody.backfill",this._report.length,e.length),this._report.unshift(...e))}getLogsNumInMemory(){return this._report.length}isEmpty(){return 0===this._report.length}_reset(){this._report.length=0,this._report=[]}getTable(){return this._table}getLogsInMemory(){const e=this._report.slice();return this._reset(),e}}var i=n(10),s=n(16),c=n(28),l=n.n(c);const u={CURRENT:{COMMON:"https://webim.tim.qq.com"},PRODUCTION:{COMMON:"https://webim.tim.qq.com"},OVERSEA_PRODUCTION:{COMMON:"https://api.im.qcloud.com"},SANDBOX:{COMMON:"https://events.tim.qq.com"},TEST:{COMMON:"https://test.tim.qq.com"}},d={IM_OPEN_STAT:"imopenstat"},p={TIM_WEB_TRTCCALLING_REPORT:"tweb_trtccalling_report"},f={imopenstat:"v4"};class h{constructor(){this.TAG="trtccalling-ssolog-event",this._reportBody=new a,this._version=s.version||"",this.MIN_THRESHOLD=20,this.MAX_THRESHOLD=100,this.WAITING_TIME=6e4,this.INTERVAL=2e4,this._timerID=0,this._resetLastReportTime(),this._startReportTimer(),this._retryCount=0,this.MAX_RETRY_COUNT=3}reportAtOnce(){r.default.debug("EventStatController.reportAtOnce"),this._report()}pushIn(e){e instanceof i.default&&(e.setCommonInfo({SDKAppID:Number(sessionStorage.getItem("sdkAppId")),version:this._version,userID:sessionStorage.getItem("userId")}),this._reportBody.pushIn(e),this._report())}_resetLastReportTime(){this._lastReportTime=Date.now()}_startReportTimer(){this._timerID=setInterval(()=>{Date.now()<this._lastReportTime+this.WAITING_TIME||this._reportBody.isEmpty()||this._report()},this.INTERVAL)}_stopReportTimer(){this._timerID>0&&(clearInterval(this._timerID),this._timerID=0)}_report(){if(this._reportBody.isEmpty())return;const e=Math.ceil(+new Date/1e3),t=sessionStorage.getItem("sdkAppId"),n=this._reportBody.getLogsInMemory(),a={table:this._reportBody.getTable(),report:n},i=`${u.CURRENT.COMMON}/${f.imopenstat}/${d.IM_OPEN_STAT}/${p.TIM_WEB_TRTCCALLING_REPORT}/?sdkappid=${t}&reqtime=${e}`;l.a.post(i,JSON.stringify(a)).then(()=>{this._resetLastReportTime(),this._retryCount>0&&(r.default.debug("EventStatController.report retry success"),this._retryCount=0)}).catch(e=>{r.default.warn("EventStatController.report, error:"+Object(o.stringifyError)(e)),this._reportBody.backfill(n),this._reportBody.getLogsNumInMemory()>this.MAX_THRESHOLD||this._retryCount===this.MAX_RETRY_COUNT||0===this._timerID?this._retryCount=0:this._retryCount+=1})}reset(){r.default.log("EventStatController.reset"),this._stopReportTimer(),this._report()}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TUICommonDefine=t.TUICallType=void 0,t.TUICallType={AUDIO_CALL:1,VIDEO_CALL:2,DEVCIED_CAMERA:"camera",DEVCIED_MICROPHONES:"microphones"},t.TUICommonDefine={VideoEncoderParams:{"120p":"120p","120p_2":"120p_2","180p":"180p","180p_2":"180p_2","240p":"240p","360p":"360p","360p_2":"360p_2","480p":"480p","480p_2":"480p_2","720p":"720p","1080p":"1080p","1440p":"1440p","4K":"4K"}}},function(e,t,n){"use strict";(function(t){var r=n(3),o=n(42),a=n(20),i={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var c,l={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==t&&"[object process]"===Object.prototype.toString.call(t))&&(c=n(21)),c),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(s(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional,n=t&&t.silentJSONParsing,o=t&&t.forcedJSONParsing,i=!n&&"json"===this.responseType;if(i||o&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(i){if("SyntaxError"===e.name)throw a(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){l.headers[e]=r.merge(i)})),e.exports=l}).call(this,n(41))},function(e){e.exports=JSON.parse('{"name":"tuicall-engine-webrtc","version":"1.4.7","description":"腾讯云 tuicall-engine-webrtc","main":"index","private":true,"dependencies":{"rtc-ai-denoiser":"^1.1.3","EventEmitter":"^1.0.0","axios":"^0.21.0","dayjs":"^1.11.7"},"peerDependencies":{"trtc-js-sdk":"^4.15.7","tim-js-sdk":"^2.27.2","tsignaling":"^1.0.5"},"devDependencies":{"@babel/preset-typescript":"^7.12.7","@tencent/eslint-config-tencent":"^0.16.1","@typescript-eslint/eslint-plugin":"^4.33.0","@typescript-eslint/parser":"^4.33.0","docdash-blue":"^1.1.9","eslint":"^7.27.0","eslint-config-google":"^0.14.0","eslint-plugin-prettier":"^4.0.0","fs-extra":"^9.0.1","jsdoc":"^3.6.11","prettier":"^2.5.0","pretty":"^2.0.0","replace":"^1.2.2","rimraf":"^4.1.2","ts-loader":"^8.4.0","typescript":"^3.9.7","watch":"^1.0.2","webpack":"^4.44.1","webpack-cli":"^3.3.12"},"scripts":{"watch":"watch \'npm run build_withcopy3\' src","dev":"npm run watch","build":"webpack --config webpack.config.js","build_withcopy":"npm run build && cp dist/npm/tuicall-engine-webrtc.js ../../github/TUICalling/Web/node_modules/tuicall-engine-webrtc/tuicall-engine-webrtc.js","build_withcopy2":"npm run build && cp dist/npm/tuicall-engine-webrtc.js ../sdk/trtc-calling-webrtc-demo/node_modules/tuicall-engine-webrtc/tuicall-engine-webrtc.js","build_withcopy3":"npm run build && cp dist/npm/tuicall-engine-webrtc.js ./example-js/tuicall-engine-webrtc.js","build:package":"node build/package-bundle.js","lint":"./node_modules/.bin/eslint ./src; exit 0","fix":"./node_modules/.bin/eslint --fix ./src; exit 0","prerelease":"npm run lint && npm run build && npm run doc && npm run build:package","doc":"npm run doc:clean && tsc --target ESNEXT && npm run doc:build","doc:build":"npm run changelog && npm run main && ./node_modules/.bin/jsdoc -c build/jsdoc/jsdoc.json && node ./build/jsdoc/fix-doc.js","doc:clean":"node ./build/jsdoc/clean-doc.js","changelog":"cp CHANGELOG.md build/jsdoc/tutorials/20-CHANGELOG.md","main":"cp README.md build/jsdoc/main.md"},"repository":{"type":"git","url":"https://github.com/tencentyun/TUICallKit/tree/main/Web"},"author":"Tencent Cloud Terminal R&D Center","license":"ISC"}')},function(t,n){t.exports=e},function(e,t,n){"use strict";e.exports=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)}}},function(e,t,n){"use strict";var r=n(3);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var a;if(n)a=n(t);else if(r.isURLSearchParams(t))a=t.toString();else{var i=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),i.push(o(t)+"="+o(e))})))})),a=i.join("&")}if(a){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}},function(e,t,n){"use strict";e.exports=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}},function(e,t,n){"use strict";var r=n(3),o=n(43),a=n(44),i=n(19),s=n(45),c=n(48),l=n(49),u=n(22);e.exports=function(e){return new Promise((function(t,n){var d=e.data,p=e.headers,f=e.responseType;r.isFormData(d)&&delete p["Content-Type"];var h=new XMLHttpRequest;if(e.auth){var m=e.auth.username||"",v=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";p.Authorization="Basic "+btoa(m+":"+v)}var g=s(e.baseURL,e.url);function _(){if(h){var r="getAllResponseHeaders"in h?c(h.getAllResponseHeaders()):null,a={data:f&&"text"!==f&&"json"!==f?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:e,request:h};o(t,n,a),h=null}}if(h.open(e.method.toUpperCase(),i(g,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,"onloadend"in h?h.onloadend=_:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(_)},h.onabort=function(){h&&(n(u("Request aborted",e,"ECONNABORTED",h)),h=null)},h.onerror=function(){n(u("Network Error",e,null,h)),h=null},h.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(u(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",h)),h=null},r.isStandardBrowserEnv()){var y=(e.withCredentials||l(g))&&e.xsrfCookieName?a.read(e.xsrfCookieName):void 0;y&&(p[e.xsrfHeaderName]=y)}"setRequestHeader"in h&&r.forEach(p,(function(e,t){void 0===d&&"content-type"===t.toLowerCase()?delete p[t]:h.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),f&&"json"!==f&&(h.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&h.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){h&&(h.abort(),n(e),h=null)})),d||(d=null),h.send(d)}))}},function(e,t,n){"use strict";var r=n(20);e.exports=function(e,t,n,o,a){var i=new Error(e);return r(i,t,n,o,a)}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";var r=n(3);e.exports=function(e,t){t=t||{};var n={},o=["url","method","data"],a=["headers","auth","proxy","params"],i=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function c(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function l(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=c(void 0,e[o])):n[o]=c(e[o],t[o])}r.forEach(o,(function(e){r.isUndefined(t[e])||(n[e]=c(void 0,t[e]))})),r.forEach(a,l),r.forEach(i,(function(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=c(void 0,e[o])):n[o]=c(void 0,t[o])})),r.forEach(s,(function(r){r in t?n[r]=c(e[r],t[r]):r in e&&(n[r]=c(void 0,e[r]))}));var u=o.concat(a).concat(i).concat(s),d=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===u.indexOf(e)}));return r.forEach(d,l),n}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}c((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(o=i.trys,!((o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.validateBusiness=t.businessValidate=void 0;var a=n(9),i=n(4),s=n(6),c=n(5);function l(e,t,n){return r(this,void 0,void 0,(function(){return o(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.tim.callExperimentalAPI("isCommercialAbilityEnabled",e)];case 1:if(r.sent().data.enabled)return[2,t.apply(this,n)];try{e===c.CALL_EXPERMENTEL_API_TYPE.BASE&&(this._callDataReport.setCodeAndMessage(i.default.ERROR_PACKAGE_NOT_SUPPORTED,s.ERROR_MESSAGE.ERROR_PACKAGE_NOT_SUPPORTED),this._callDataReport.uploadToKibana())}catch(e){console.warn("base ability check failed, userId:"+this.getUserID()+", error: "+e)}throw new a.default({message:s.ERROR_MESSAGE.ERROR_PACKAGE_NOT_SUPPORTED,code:i.default.ERROR_PACKAGE_NOT_SUPPORTED});case 2:throw 2905===r.sent().code?new a.default({message:s.ERROR_MESSAGE.ERROR_TIM_VERSION_OUTDATED+" >= 2.21.2",code:i.default.ERROR_TIM_VERSION_OUTDATED}):new a.default({message:s.ERROR_MESSAGE.ERROR_PACKAGE_NOT_SUPPORTED,code:i.default.ERROR_PACKAGE_NOT_SUPPORTED});case 3:return[2]}}))}))}t.businessValidate=function(e){return function(t,n,a){var i=a.value;return a.value=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,l.call(this,e,i,t)];case 1:return[2,n.sent()];case 2:throw n.sent();case 3:return[2]}}))}))},a}},t.validateBusiness=function(e,t){return r(this,void 0,void 0,(function(){var n;return o(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,e.callExperimentalAPI("isCommercialAbilityEnabled",t)];case 1:if((n=r.sent()).data.enabled)return[2,Promise.resolve(n.data.enabled)];throw new a.default({message:s.ERROR_MESSAGE.ERROR_PACKAGE_NOT_SUPPORTED,code:i.default.ERROR_PACKAGE_NOT_SUPPORTED});case 2:throw 2905===r.sent().code?new a.default({message:s.ERROR_MESSAGE.ERROR_TIM_VERSION_OUTDATED+" >= 2.21.2",code:i.default.ERROR_TIM_VERSION_OUTDATED}):new a.default({message:s.ERROR_MESSAGE.ERROR_PACKAGE_NOT_SUPPORTED,code:i.default.ERROR_PACKAGE_NOT_SUPPORTED});case 3:return[2]}}))}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.callRoleMapping=t.callTypeMapping=void 0;var r=n(5),o=n(0);t.callTypeMapping=function(e){var t=o.NAME.UNKNOWN;switch(e){case r.CALL_TYPE.AUDIO_CALL:t=o.NAME.AUDIO;break;case r.CALL_TYPE.VIDEO_CALL:t=o.NAME.VIDEO}return t},t.callRoleMapping=function(e){var t=e;return t===r.CALL_ROLE.INVITER?t=o.NAME.CALLER:t===r.CALL_ROLE.INVITEE&&(t=o.NAME.CALLEE),t}},function(e,t,n){e.exports=n(36)},function(e,t,n){e.exports=function(){"use strict";var e=6e4,t=36e5,n="millisecond",r="second",o="minute",a="hour",i="day",s="week",c="month",l="quarter",u="year",d="date",p="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|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,m={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("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},v=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},g={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+v(r,2,"0")+":"+v(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),a=n-o<0,i=t.clone().add(r+(a?-1:1),c);return+(-(r+(n-o)/(a?o-i:i-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:u,w:s,d:i,D:d,h:a,m:o,s:r,ms:n,Q:l}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},_="en",y={};y[_]=m;var b=function(e){return e instanceof C},O=function e(t,n,r){var o;if(!t)return _;if("string"==typeof t){var a=t.toLowerCase();y[a]&&(o=a),n&&(y[a]=n,o=a);var i=t.split("-");if(!o&&i.length>1)return e(i[0])}else{var s=t.name;y[s]=t,o=s}return!r&&o&&(_=o),o||!r&&_},M=function(e,t){if(b(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new C(n)},k=g;k.l=O,k.i=b,k.w=function(e,t){return M(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var C=function(){function m(e){this.$L=O(e.locale,null,!0),this.parse(e)}var v=m.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(k.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(f);if(r){var o=r[2]-1||0,a=(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,a)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},v.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()},v.$utils=function(){return k},v.isValid=function(){return!(this.$d.toString()===p)},v.isSame=function(e,t){var n=M(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return M(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<M(e)},v.$g=function(e,t,n){return k.u(e)?this[t]:this.set(n,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var n=this,l=!!k.u(t)||t,p=k.p(e),f=function(e,t){var r=k.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return l?r:r.endOf(i)},h=function(e,t){return k.w(n.toDate()[e].apply(n.toDate("s"),(l?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,v=this.$M,g=this.$D,_="set"+(this.$u?"UTC":"");switch(p){case u:return l?f(1,0):f(31,11);case c:return l?f(1,v):f(0,v+1);case s:var y=this.$locale().weekStart||0,b=(m<y?m+7:m)-y;return f(l?g-b:g+(6-b),v);case i:case d:return h(_+"Hours",0);case a:return h(_+"Minutes",1);case o:return h(_+"Seconds",2);case r:return h(_+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var s,l=k.p(e),p="set"+(this.$u?"UTC":""),f=(s={},s[i]=p+"Date",s[d]=p+"Date",s[c]=p+"Month",s[u]=p+"FullYear",s[a]=p+"Hours",s[o]=p+"Minutes",s[r]=p+"Seconds",s[n]=p+"Milliseconds",s)[l],h=l===i?this.$D+(t-this.$W):t;if(l===c||l===u){var m=this.clone().set(d,1);m.$d[f](h),m.init(),this.$d=m.set(d,Math.min(this.$D,m.daysInMonth())).$d}else f&&this.$d[f](h);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[k.p(e)]()},v.add=function(n,l){var d,p=this;n=Number(n);var f=k.p(l),h=function(e){var t=M(p);return k.w(t.date(t.date()+Math.round(e*n)),p)};if(f===c)return this.set(c,this.$M+n);if(f===u)return this.set(u,this.$y+n);if(f===i)return h(1);if(f===s)return h(7);var m=(d={},d[o]=e,d[a]=t,d[r]=1e3,d)[f]||1,v=this.$d.getTime()+n*m;return k.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=k.z(this),a=this.$H,i=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,o,a){return e&&(e[n]||e(t,r))||o[n].slice(0,a)},f=function(e){return k.s(a%12||12,e,"0")},m=u||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return k.s(t.$y,4,"0");case"M":return s+1;case"MM":return k.s(s+1,2,"0");case"MMM":return d(n.monthsShort,s,l,3);case"MMMM":return d(l,s);case"D":return t.$D;case"DD":return k.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,c,2);case"ddd":return d(n.weekdaysShort,t.$W,c,3);case"dddd":return c[t.$W];case"H":return String(a);case"HH":return k.s(a,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return m(a,i,!0);case"A":return m(a,i,!1);case"m":return String(i);case"mm":return k.s(i,2,"0");case"s":return String(t.$s);case"ss":return k.s(t.$s,2,"0");case"SSS":return k.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(n,d,p){var f,h=this,m=k.p(d),v=M(n),g=(v.utcOffset()-this.utcOffset())*e,_=this-v,y=function(){return k.m(h,v)};switch(m){case u:f=y()/12;break;case c:f=y();break;case l:f=y()/3;break;case s:f=(_-g)/6048e5;break;case i:f=(_-g)/864e5;break;case a:f=_/t;break;case o:f=_/e;break;case r:f=_/1e3;break;default:f=_}return p?f:k.a(f)},v.daysInMonth=function(){return this.endOf(c).$D},v.$locale=function(){return y[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=O(e,t,!0);return r&&(n.$L=r),n},v.clone=function(){return k.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},m}(),w=C.prototype;return M.prototype=w,[["$ms",n],["$s",r],["$m",o],["$H",a],["$W",i],["$M",c],["$y",u],["$D",d]].forEach((function(e){w[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),M.extend=function(e,t){return e.$i||(e(t,C,M),e.$i=!0),M},M.locale=O,M.isDayjs=b,M.unix=function(e){return M(1e3*e)},M.en=y[_],M.Ls=y,M.p={},M}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(31),o=n(12),a=n(14);t.default={TUICallEngine:r.default,TUICallEvent:o.TUICallEvent,TUICallType:a.TUICallType}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=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)},o=this&&this.__decorate||function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}c((r=r.apply(e,t||[])).next())}))},s=this&&this.__generator||function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(o=i.trys,!((o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},c=this&&this.__spreadArrays||function(){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 a=arguments[t],i=0,s=a.length;i<s;i++,o++)r[o]=a[i];return r};Object.defineProperty(t,"__esModule",{value:!0});var l=n(32),u=n(1),d=n(33),p=n(17),f=n(56),h=n(57),m=n(59),v=n(10),g=n(11),_=n(13),y=n(7),b=n(60),O=n(2),M=n(5),k=n(9),C=n(4),w=n(6),I=n(0),S=n(61),T=n(68),E=n(70),j=p,D=f,L=n(16),A="TUICallEngine",N="设备授权: https://web.sdk.qcloud.com/component/trtccalling/doc/TUICallEngine/web/tutorial-33-device-permission.html; 页面能力检测: https://web.sdk.qcloud.com/component/trtccalling/doc/TUICallEngine/web/tutorial-34-detect.html",x=function(){function e(e){this._localPlayOptions={mirror:!1,muted:!0,objectFit:I.NAME.COVER},this._remotePlayOptions={mirror:!1,muted:!1,objectFit:I.NAME.COVER},this._permission={audio:!1,video:!1},this._initialCallId="",this._sdkAppID=e.SDKAppID,this._isLogin=!1,this._trtcClient=null,this._userID="",this._userSig="",this._switchCallModeStatus=!0,this._timExternal=!1,this._inviterInviteID={},this._audioVideoSwitchIdList=[],this._acceptedUserObject={},this._callTimeout=30,this._callStatus=M.CALL_STATUS.IDLE,this._callType=M.CALL_TYPE.UNKNOWN,this._roomID=0,this._isInviter=!1,this._isGroupCall=!1,this._inviteeList=[],this._unHandledInviteeList=[],this._handledInviteeList=[],sessionStorage.setItem("sdkAppId",""+this._sdkAppID),this._localViewId="",this._netMonitor=new b.default,this._outerEmitter=new l.default,this._delegate=new m.default(this._outerEmitter),this._callDataReport=new T.CallDataReport({version:L.version,sdkAppId:e.SDKAppID}),this._dataReportObserver=new T.TUICallEngineObserver(this._outerEmitter,this._callDataReport),this._connectStartTime=0,e.tim&&(this._timExternal=!0),this.tim=e.tim||D.create(e),this._tsignalingClient=new h.default(this,r(r({tim:this.tim},e),{isRejectNotifyAll:!0})),this._callRecordReport=new E.CallRecordReport({version:L.version,tim:this.tim}),this._recordReportObserver=new E.TUICallEngineRecordObserver(this._outerEmitter,this._callRecordReport),this._quality="480p";var t=new v.default(g.default.SDK_CONSTRUCT);this._eventStatController=new _.default,v.default.bindController(this._eventStatController),t.setText("version="+L.version+"-ua="+y.USER_AGENT).setEnd(),O.default.info(A+" SDK Version:"+L.version+", SDKAppID:"+e.SDKAppID+", UserAgent:"+y.USER_AGENT)}return e.prototype.getDevicePermission=function(){return this._permission},e.prototype.setDevicePermission=function(e,t){this._permission[e]=t},e.prototype.getTrtcClient=function(){var e;return null===(e=this._trtcClient)||void 0===e?void 0:e.getClient()},e.prototype.getUserID=function(){return this._userID},e.prototype.setRoomID=function(e){this._roomID=e},e.prototype.getRoomID=function(){return this._roomID},e.prototype.getCallType=function(){return this._callType},e.prototype.setCallType=function(e){this._callType=e},e.prototype.isInviter=function(){return this._isInviter},e.prototype.setConnectStartTime=function(e){this._connectStartTime=e},e.prototype.getConnectStartTime=function(){return this._connectStartTime},e.prototype.getInviteeList=function(){return this._inviteeList},e.prototype.setInviteeList=function(e){this._inviteeList=c(e)},e.prototype.getCallDataReport=function(){return this._callDataReport},e.prototype.getCallRecordReport=function(){return this._callRecordReport},e.prototype.getUnHandledInviteeList=function(){return this._unHandledInviteeList||[]},e.prototype.setUnHandledInviteeList=function(e){this._unHandledInviteeList=c(e),O.default.log(A+".setUnHandledInviteeList",this._unHandledInviteeList)},e.prototype.addUnHandledInviteeList=function(e){var t=this;void 0===e&&(e=[]),0!==e.length&&e.forEach((function(e){-1===t._unHandledInviteeList.indexOf(e)&&t._unHandledInviteeList.push(e)}))},e.prototype.deleteUnHandledInviteeList=function(e){var t=this;void 0===e&&(e=[]),0!==e.length&&e.forEach((function(e){t._unHandledInviteeList=t._unHandledInviteeList.filter((function(t){return t!==e}))}))},e.prototype.getHandledInviteeList=function(){return this._handledInviteeList||[]},e.prototype.setHandledInviteeList=function(e){this._handledInviteeList=c(e),O.default.log(A+".setHandledInviteeList",this._handledInviteeList)},e.prototype.addHandledInviteeList=function(e){var t=this;void 0===e&&(e=[]),0!==e.length&&e.forEach((function(e){-1===t._handledInviteeList.indexOf(e)&&t._handledInviteeList.push(e)}))},e.prototype.deleteHandledInviteeList=function(e){var t=this;void 0===e&&(e=[]),0!==e.length&&e.forEach((function(e){t._handledInviteeList=t._handledInviteeList.filter((function(t){return t!==e}))}))},e.prototype.isGroupCall=function(){return this._isGroupCall},e.prototype.setIsGroupCall=function(e){this._isGroupCall=e},e.prototype.getGroupID=function(){return this._groupID},e.prototype.setGroupID=function(e){this._groupID=e},e.prototype.setLocalPlayOptions=function(e){void 0===e&&(e={}),this._localPlayOptions=r(r({},this._localPlayOptions),e)},e.prototype.getLocalPlayOptions=function(){return this._localPlayOptions||{}},e.prototype.setRemotePlayOptions=function(e){void 0===e&&(e={}),this._remotePlayOptions=r(r({},this._remotePlayOptions),e)},e.prototype.getRemotePlayOptions=function(){return this._remotePlayOptions||{}},e.prototype.addAcceptedUserList=function(e,t){var n=this;if(0!==t.length)if(e)0===(this._acceptedUserObject[e]||[]).length?this._acceptedUserObject[e]=t:t.forEach((function(t){-1===n._acceptedUserObject[e].indexOf(t)&&n._acceptedUserObject[e].push(t)}));else for(var r=this.getInviterInviteIdList(),o=function(e){var o=r[e],i=a.getInviterInviteIdUserList(o),s=t.filter((function(e){return-1!==i.indexOf(e)}));0===(a._acceptedUserObject[o]||[]).length?a._acceptedUserObject[o]=s:s.forEach((function(e){-1===n._acceptedUserObject[o].indexOf(e)&&n._acceptedUserObject[o].push(e)}))},a=this,i=0;i<r.length;i++)o(i)},e.prototype.getAcceptedUserList=function(e){return this._acceptedUserObject[e]||[]},e.prototype.setIsLogin=function(e){this._isLogin=e},e.prototype.getIsLogin=function(){return this._isLogin},e.createInstance=function(t){return e.instance||(e.instance=new e(t)),e.instance},e.prototype.destroyInstance=function(){return i(this,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return this.getIsLogin()?this._timExternal?[4,this.logout()]:[3,2]:[3,4];case 1:return t.sent(),[3,4];case 2:return[4,this.tim.destroy()];case 3:t.sent(),t.label=4;case 4:return this._callDataReport.reset(),this._dataReportObserver.removeLister(),this._callRecordReport.reset(),this._recordReportObserver.removeLister(),e.instance=null,[2]}}))}))},e.prototype.setLogLevel=function(e){O.default.setLevel(e),this._tsignalingClient.setLogLevel(e),j.Logger.setLogLevel(1)},e.prototype.on=function(e,t,n){this._outerEmitter.on(e,t,n||this)},e.prototype.off=function(e,t,n){this._outerEmitter.off(e,t,n||this)},e.prototype.init=function(e){return i(this,void 0,void 0,(function(){return s(this,(function(t){return[2,this.login(e)]}))}))},e.prototype.login=function(e){return i(this,void 0,void 0,(function(){var t,n,r,o,a;return s(this,(function(i){switch(i.label){case 0:if(this.getIsLogin())return O.default.warn(A+".login - userId has been login"),[2];i.label=1;case 1:return i.trys.push([1,3,,4]),O.default.debug(A+".login - params:",e),this._netMonitor.start(),t=e.userID,n=e.userSig,r=e.assetsPath,this._userID=t,this._callDataReport.setUserID(t),this._userSig=n,this._trtcClient=new d.default({sdkAppID:this._sdkAppID,userID:t,userSig:n,tuiCallEngine:this,assetsPath:r}),sessionStorage.setItem("userId",""+this._userID),[4,this._tsignalingClient.login({userID:t,userSig:n})];case 2:return o=i.sent(),this.setIsLogin(!0),this._setInterfaceUpLoad(g.default.LOGIN).setText("userId: "+this._userID+" login succeeded, assetsPath: "+r).setEnd(),[2,o];case 3:throw a=i.sent(),this._setInterfaceUpLoad(g.default.LOGIN).setText("userId: "+this._userID+" login failed, error: "+a).setEnd(),new Error(A+".login - userId: "+this._userID+" login failed, error: "+a+" ");case 4:return[2]}}))}))},e.prototype.logout=function(){return i(this,void 0,void 0,(function(){var e;return s(this,(function(t){switch(t.label){case 0:O.default.debug(A+".logout"),this._setInterfaceUpLoad(g.default.LOGOUT).setText("userId: "+this._userID+" logout").setEnd(),this._userID="",this._userSig="",t.label=1;case 1:return t.trys.push([1,5,,6]),[4,this._resetTUICallEngine()];case 2:return t.sent(),this._trtcClient.removeTRTCEvents(),this._trtcClient=null,this.setIsLogin(!1),this._timExternal?[3,4]:[4,this._tsignalingClient.logout()];case 3:t.sent(),t.label=4;case 4:return[2,!0];case 5:throw e=t.sent(),new Error(A+".logout failed, error: "+e+" ");case 6:return[2]}}))}))},e.prototype.call=function(e){var t,n;return i(this,void 0,void 0,(function(){var o,a,i,c,l,d,p,f,h,m,v,_;return s(this,(function(s){switch(s.label){case 0:O.default.log(A+".call - params:",e),this._callDataReport.setAbilityBit(!0),this._callDataReport.setCallScene(I.NAME.SINGLE_CALL),s.label=1;case 1:return s.trys.push([1,3,,4]),[4,null===(t=this._trtcClient)||void 0===t?void 0:t.getMediaDevicesAuth({audio:!0})];case 2:return s.sent(),[3,4];case 3:throw o=s.sent(),this._delegate.onError(C.default.NOT_MEDIA_ACCESS,JSON.stringify(o)),this._callDataReport.setCodeAndMessage(C.default.NOT_MEDIA_ACCESS,JSON.stringify(o)),this._callDataReport.uploadToKibana(),new Error(A+".call failed. error: "+o+". "+N);case 4:if(a=e.userID,i=e.type,c=e.offlinePushInfo,l=e.roomID,d=e.timeout,p=e.userData,this.getUserID()===a)throw O.default.log(A+".call failed. Called id can't be yourself. userId:"+this.getUserID()+", inviteeId:"+a),new Error(A+".call failed. Called id can't be yourself. userId:"+this.getUserID()+", inviteeId:"+a);this._callStatus=M.CALL_STATUS.CALLING,this._callType=i,this._isInviter=!0,this._inviterID=this._userID,this._inviteeID=a,this._isGroupCall=!1,this._groupID="",this._roomID=l||u.generateRandomRoomID(),this._callTimeout=d||this._callTimeout,O.default.info("roomID:"+this._roomID),f={callType:I.NAME.SINGLE,mediaType:i,inviteeList:[a]},s.label=5;case 5:return s.trys.push([5,11,,13]),[4,null===(n=this._trtcClient)||void 0===n?void 0:n.join(this._roomID)];case 6:return s.sent(),this._callDataReport.setEnterRoomTime((new Date).getTime()),this._tsignalingClient.setTSignalingIsJoined(!0),h=this._callDataReport.getCallData(),h=r(r({},h),{roomID:this._roomID,callRole:M.CALL_ROLE.INVITER,callType:this._callType,inviteeList:[a]}),this._callDataReport.setCallData(h),[4,this._tsignalingClient.invite({userID:a,type:i,roomID:this._roomID,timeout:this._callTimeout,offlinePushInfo:c,userIDList:[a],userData:p})];case 7:return m=s.sent(),this._callDataReport.setSendSignalingTime((new Date).getTime()),this.setHandledInviteeList([this._userID]),this.setUnHandledInviteeList([a]),v="callType: "+(i+1)+",\n conversationType: "+m.data.message.conversationType+", \n userId:{ "+m.data.message.from+" } invite userId:{ "+m.data.message.to+" }",0!==m.code?[3,8]:(this.addInviterInviteId(m.inviteID,[this._userID,a]),this._callDataReport.setInviteID(m.inviteID),this.setInitialCallId(m.inviteID),this._callRecordUpload(r({eventType:I.NAME.START_CALL},f)),this._setInterfaceUpLoad(g.default.CALL).setCallType(i+1).setText(v+" succeeded").setEnd(),[3,10]);case 8:return this._callDataReport.setCodeAndMessage(m.code,m.message),this._callDataReport.uploadToKibana(),this._callRecordUpload(r({eventType:I.NAME.CALL_FAILED},f)),this._setInterfaceUpLoad(g.default.CALL).setCallType(i+1).setText(v+" failed").setEnd(),[4,this._resetTUICallEngine()];case 9:s.sent(),s.label=10;case 10:return[2,m];case 11:return(_=s.sent()).getCode?this._callDataReport.setCodeAndMessage(_.getCode(),_.message):this._callDataReport.setCodeAndMessage(C.default.UNKNOWN,JSON.stringify(_)),this._callDataReport.uploadToKibana(),this._callRecordUpload(r({eventType:I.NAME.CALL_FAILED},f)),[4,this._resetTUICallEngine()];case 12:throw s.sent(),new k.default({message:A+"<call>: failed "+_.message,code:_.code});case 13:return[2]}}))}))},e.prototype.addAudioVideoSwitchIdList=function(e){e&&this._audioVideoSwitchIdList.push(e)},e.prototype.getAudioVideoSwitchIdList=function(){return this._audioVideoSwitchIdList||[]},e.prototype.addInviterInviteId=function(e,t){0!==t.length&&(0===(this._inviterInviteID[e]||[]).length?this._inviterInviteID[e]=t:this._inviterInviteID[e]=c(this._inviterInviteID[e],t))},e.prototype.getInviterInviteIdList=function(){return Object.keys(this._inviterInviteID||{})},e.prototype.getTotalInviterInviteIdList=function(){var e=this.getInviterInviteIdList();return c(this._audioVideoSwitchIdList,e)},e.prototype.getInviterInviteIdUserList=function(e){return this._inviterInviteID[e]||[]},e.prototype._setInterfaceUpLoad=function(e){return O.default.time(e),new v.default(e)},e.prototype.getInviterID=function(){return this._inviterID},e.prototype.setInviterID=function(e){this._inviterID=e},e.prototype.groupCall=function(e){var t,n;return i(this,void 0,void 0,(function(){var o,a,i,l,d,p,f,h,m,v,_,y;return s(this,(function(s){switch(s.label){case 0:if(0===(null===(t=null==e?void 0:e.userIDList)||void 0===t?void 0:t.length))throw new k.default({message:A+"<groupCall>: userIDList don'\t empty ",code:C.default.ERROR_PARAM_INVALID});O.default.debug(A+".groupCall - params:",e),s.label=1;case 1:return s.trys.push([1,3,,4]),[4,null===(n=this._trtcClient)||void 0===n?void 0:n.getMediaDevicesAuth({audio:!0})];case 2:return s.sent(),[3,4];case 3:throw o=s.sent(),this._delegate.onError(C.default.NOT_MEDIA_ACCESS,JSON.stringify(o)),new Error(A+".groupCall failed. error: "+o+". "+N);case 4:if(a=e.userIDList,i=e.type,l=e.groupID,d=e.offlinePushInfo,p=e.roomID,f=e.timeout,h=e.userData,-1!==(a=c(a)).indexOf(this.getUserID()))throw O.default.log(A+".groupCall failed. Called list can't contain yourself. userId:"+this.getUserID()+", inviteeIdList:"+a),new Error(A+".groupCall failed. Called list can't contain yourself. userId:"+this.getUserID()+", inviteeIdList:"+a);this._callType=i,this._isInviter=!0,this._isGroupCall=!0,this._inviterID=this._userID,this._groupID=l||"",this.setInviteeList(a),this.setHandledInviteeList([this._userID]),this.setUnHandledInviteeList(a),this._roomID||(this._roomID=p||u.generateRandomRoomID(),this._callStatus=M.CALL_STATUS.CALLING),this._callTimeout=f||this._callTimeout,this._callDataReport.setCallScene(I.NAME.GROUP_CALL),m={callType:I.NAME.GROUP,mediaType:i,inviteeList:a},s.label=5;case 5:return s.trys.push([5,8,,10]),[4,this._trtcClient.join(this._roomID)];case 6:return s.sent(),this._tsignalingClient.setTSignalingIsJoined(!0),[4,this._tsignalingClient.inviteInGroup({groupID:this._groupID,userIDList:a,type:i,roomID:this._roomID,timeout:this._callTimeout,offlinePushInfo:d,userData:h})];case 7:return v=s.sent(),O.default.log("groupCall res",v),l&&(_="callType: "+(i+1)+",\n conversationType: "+v.data.message.conversationType+",\n userId:{ "+v.data.message.from+" } invite { "+v.data.message.to+": "+a+" }",0===v.code?(this.addInviterInviteId(v.inviteID,c([this._userID],a)),this.setInitialCallId(v.inviteID),this._callRecordUpload(r({eventType:I.NAME.START_CALL},m)),this._setInterfaceUpLoad(g.default.GROUP_CALL).setCallType(i+1).setText(_+" succeeded").setEnd()):(this._callRecordUpload(r({eventType:I.NAME.CALL_FAILED},m)),this._setInterfaceUpLoad(g.default.GROUP_CALL).setCallType(i+1).setText(_+" failed").setEnd())),[2,v];case 8:return y=s.sent(),this._callRecordUpload(r({eventType:I.NAME.CALL_FAILED},m)),[4,this._resetTUICallEngine()];case 9:throw s.sent(),new k.default({message:A+"<groupCall>: failed "+y.message,code:y.code});case 10:return[2]}}))}))},e.prototype.joinInGroupCall=function(e){var t,n;return i(this,void 0,void 0,(function(){var r,o,a,i,c,l;return s(this,(function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,null===(t=this._trtcClient)||void 0===t?void 0:t.getMediaDevicesAuth({audio:!0})];case 1:return s.sent(),[3,3];case 2:throw r=s.sent(),new Error(A+".joinInGroupCall failed, error: "+r);case 3:return s.trys.push([3,5,,7]),o=e.roomID,a=e.type,i=e.groupID,this._callType=a,this._groupID=i,this._roomID=o,this._isGroupCall=!0,this._isInviter=!1,this.addHandledInviteeList([this.getUserID()]),this.changeCallStatus(M.CALL_STATUS.CALLING),[4,null===(n=this._trtcClient)||void 0===n?void 0:n.join(o)];case 4:return s.sent(),this.changeCallStatus(M.CALL_STATUS.CONNECTED),O.default.log(A+".joinInGroupCall roomID:"+o+",type:"+a+",userID:"+this.getUserID()),c={eventType:I.NAME.JOIN_IN_GROUP_CALL,callType:I.NAME.GROUP,mediaType:this._callType},this._callRecordUpload(c),this._callRecordReport.startHeartbeat(),[3,7];case 5:return l=s.sent(),[4,this._resetTUICallEngine()];case 6:throw s.sent(),new Error(A+".joinInGroupCall failed error: "+l);case 7:return[2]}}))}))},e.prototype.inviteUser=function(e){return i(this,void 0,void 0,(function(){var t,n,r,o,a,i,l,u,d,p,f,h,m=this;return s(this,(function(s){switch(s.label){case 0:if(!this.isGroupCall())throw O.default.error(A+".inviteUser failed - groupID:"+this._groupID+", roomID:"+this._roomID+", type:"+this._callType),new Error(A+".inviteUser failed - groupID:"+this._groupID+", roomID:"+this._roomID+", type:"+this._callType);if(!this.isInviter()&&this._callStatus!==M.CALL_STATUS.CONNECTED)throw O.default.error(A+".inviteUser failed - current status:"+this._callStatus+" not support"),new Error(A+".inviteUser failed - current status:"+this._callStatus+" not support");if(t=e.userIDList,n=void 0===t?[]:t,r=e.offlinePushInfo,0===n.length)throw O.default.error(A+".inviteUser failed - userIDList is empty"),new Error(A+".inviteUser failed - userIDList is empty");if(o=this.getHandledInviteeList(),a=this.getUnHandledInviteeList(),i=c(o,a),0===(l=n.filter((function(e){return-1===i.indexOf(e)}))).length)return O.default.error(A+".inviteUser failed - userIDList in call list. userIDList:"+JSON.stringify(n)+", call list:"+JSON.stringify(i)),[2,Promise.reject(A+".inviteUser failed - userIDList in call list. userIDList:"+JSON.stringify(n)+", call list:"+JSON.stringify(i))];n=l,s.label=1;case 1:return s.trys.push([1,3,,4]),u=this._handledInviteeList.filter((function(e){return e!==m._userID})),[4,this._tsignalingClient.inviteInGroup({groupID:this._groupID,userIDList:n,type:this._callType,roomID:this._roomID,timeout:this._callTimeout,inCallUserIDs:c(this._unHandledInviteeList,u),offlinePushInfo:r,initialCallId:this.getInitialCallId()})];case 2:return d=s.sent(),O.default.log("inviteUser res",d),p="callType: "+(this._callType+1)+",\n conversationType: "+d.data.message.conversationType+",\n userId:{ "+d.data.message.from+" } invite { "+d.data.message.to+": "+n+" }",0===d.code?(this.addUnHandledInviteeList(n),this.addInviterInviteId(d.inviteID,c([this._userID],n)),f={eventType:I.NAME.INVITE_USER,callType:I.NAME.GROUP,mediaType:this._callType,inviteeList:n},this._callRecordUpload(f),this._setInterfaceUpLoad(g.default.GROUP_CALL).setCallType(this._callType+1).setText(p+" succeeded").setEnd()):this._setInterfaceUpLoad(g.default.GROUP_CALL).setCallType(this._callType+1).setText(p+" failed").setEnd(),[2,d];case 3:throw h=s.sent(),new Error(A+".inviteUser failed, userId:"+this.getUserID()+", inviteeIdList:"+n+", error: "+h);case 4:return[2]}}))}))},e.prototype.accept=function(){var e,t,n,o,a,c;return i(this,void 0,void 0,(function(){var i,l,u,d,p,f,h,m,v,_,y;return s(this,(function(s){switch(s.label){case 0:if(O.default.debug(A+".accept"),this.getCallStatus()===M.CALL_STATUS.CONNECTED)return O.default.warn(A+".accept - already connected, avoid repeat accept"),[2];if(!this._tsignalingClient.getInviteData())return O.default.warn(A+".accept - there are no calls to accept"),[2];this._callDataReport.setCallAcceptTime((new Date).getTime()),s.label=1;case 1:return s.trys.push([1,5,,6]),[4,null===(e=this._trtcClient)||void 0===e?void 0:e.getMediaDevicesAuth({audio:!0})];case 2:return s.sent().audio?[3,4]:[4,this._resetTUICallEngine()];case 3:s.sent(),s.label=4;case 4:return[3,6];case 5:throw i=s.sent(),this.isGroupCall()&&(this._callDataReport.setCodeAndMessage(C.default.NOT_MEDIA_ACCESS,JSON.stringify(i)),this._callDataReport.uploadToKibana()),new Error(A+".accept failed, error: "+i+". "+N);case 6:l=this._tsignalingClient.getInviteData(),u=l.inviteID,d=l.inviteData,p=d.roomID,f=d.callType,O.default.debug(A+".accept - params","inviteID: "+u+",callType: "+f+",roomID: "+p+"."),this._callType=f,this._callStatus=M.CALL_STATUS.CALLING,console.log("accept roomId: "+p),h={},s.label=7;case 7:return s.trys.push([7,9,,11]),this._callDataReport.setEnterRoomTime((new Date).getTime()),[4,null===(t=this._trtcClient)||void 0===t?void 0:t.join(p)];case 8:return h=s.sent(),this.addHandledInviteeList([this.getUserID()]),this.deleteUnHandledInviteeList([this.getUserID()]),this.addAcceptedUserList(u,[this.getUserID()]),this._tsignalingClient.setInviteData(null),this.changeCallStatus(M.CALL_STATUS.CONNECTED),[3,11];case 9:return m=s.sent(),this.isGroupCall()||(m.getCode?this._callDataReport.setCodeAndMessage(m.getCode(),m.message):this._callDataReport.setCodeAndMessage(C.default.UNKNOWN,JSON.stringify(m)),this._callDataReport.uploadToKibana()),[4,this._resetTUICallEngine()];case 10:throw s.sent(),new Error(A+".accept failed, error: "+m);case 11:h=r(r({},h),{roomID:p,callType:f}),s.label=12;case 12:return s.trys.push([12,14,,16]),[4,this._tsignalingClient.accept({inviteID:u,callType:f})];case 13:return v=s.sent(),y="callType: "+(f+1)+",\n conversationType: "+v.data.message.conversationType+",\n userId:{ "+this._userID+" } accept userId:{ "+v.data.message.to+" } succeeded",this._callRecordUpload({eventType:I.NAME.ACCEPT_CALL}),this._callRecordReport.startHeartbeat(),this._setInterfaceUpLoad(g.default.ACCEPT).setCallType(f+1).setText(""+y).setEnd(),[3,16];case 14:return _=s.sent(),O.default.error(_),[4,this._resetTUICallEngine()];case 15:throw s.sent(),y="callType: "+(f+1)+",\n conversationType: "+(null===(o=null===(n=null==v?void 0:v.data)||void 0===n?void 0:n.message)||void 0===o?void 0:o.conversationType)+",\n userId:{ "+this._userID+" } accept userId:{ "+(null===(c=null===(a=null==v?void 0:v.data)||void 0===a?void 0:a.message)||void 0===c?void 0:c.to)+" } failed",this._setInterfaceUpLoad(g.default.ACCEPT).setCallType(f+1).setText(""+y).setEnd(),this.isGroupCall()||(this._callDataReport.setCodeAndMessage(C.default.UNKNOWN,JSON.stringify(_)),this._callDataReport.uploadToKibana()),new k.default({message:A+"<accept>: failed "+_.message,code:_.code});case 16:return this.isGroupCall()&&(y="callType: "+(f+1)+",\n conversationType: "+v.data.message.conversationType+",\n userId:{ "+this._userID+" } accept userId:{ "+v.data.message.to+" } succeeded",this._setInterfaceUpLoad(g.default.ACCEPT).setCallType(f+1).setText(y).setEnd()),[2,r(r({},h),v)]}}))}))},e.prototype.reject=function(){return i(this,void 0,void 0,(function(){var e,t,n,o,a,i,c,l,u;return s(this,(function(s){switch(s.label){case 0:if(!this._tsignalingClient.getInviteData())return O.default.warn(A+".reject - there are no calls to reject"),[2];e=this._callStatus===M.CALL_STATUS.CONNECTED,t=this._tsignalingClient.getInviteData(),n=t.inviteID,o=t.inviteData,a=o.callType,O.default.warn(A+".reject - params","inviteID: "+n+",callType: "+a+",isBusy: "+e+"."),s.label=1;case 1:return s.trys.push([1,5,,6]),[4,this._tsignalingClient.reject({inviteID:n,callType:a,isBusy:e})];case 2:return i=s.sent(),c="callType: "+(a+1)+",\n conversationType: "+i.data.message.conversationType+",\n userId:{ "+this._userID+" } reject userId:{ "+i.data.message.to+" } succeeded",this._setInterfaceUpLoad(g.default.REJECT).setCallType(a+1).setText(c).setEnd(),this._callRecordUpload({eventType:I.NAME.REJECT_CALL}),e?[3,4]:(l=this.generateEventData(),[4,this._resetTUICallEngine()]);case 3:s.sent(),this._delegate.onCallingCancel(r(r({userID:this._userID},l),{reason:I.NAME.REJECT})),s.label=4;case 4:return[2,i];case 5:throw u=s.sent(),new k.default({message:A+"<reject>: failed "+u.message,code:u.code});case 6:return[2]}}))}))},e.prototype.hangup=function(){var e;return i(this,void 0,void 0,(function(){var t,n,o,a,i,l,u,d,p,f,h,m,v,_,y,b,k,C,w,S;return s(this,(function(T){switch(T.label){case 0:if(O.default.warn(A+". - callStatus:"+this._callStatus+" _inviterInviteID:"+JSON.stringify(this._acceptedUserObject)),this._callStatus===M.CALL_STATUS.IDLE)throw new Error(A+".hangup failed. current status:"+this._callStatus);if(this._callStatus===M.CALL_STATUS.CALLING&&0===this.getInviterInviteIdList().length)throw new Error(A+".call/groupCall incomplete。please wait cancel");if(t=this.isGroupCall(),n=this.isInviter(),o=this.getUserID(),a=Math.round((Date.now()-this.getConnectStartTime())/1e3),i=this.getCallType(),u=this.getInviterInviteIdList(),this._callStatus!==M.CALL_STATUS.CONNECTED)return[3,8];T.label=1;case 1:return T.trys.push([1,5,,7]),[4,null===(e=this._trtcClient)||void 0===e?void 0:e.leave()];case 2:return T.sent(),0!==u.length?[3,4]:(m=this.generateCallEndData({callMediaType:i,totalTime:a}),this._delegate.onCallEnd(m),[4,this._resetTUICallEngine()]);case 3:T.sent(),T.label=4;case 4:return[3,7];case 5:return d=T.sent(),[4,this._resetTUICallEngine()];case 6:throw T.sent(),new Error(d);case 7:this._setInterfaceUpLoad(g.default.REJECT).setText("userId: "+this._userID+" hangup succeeded").setEnd(),T.label=8;case 8:p=this.getHandledInviteeList(),f=this.getUnHandledInviteeList(),h=this.generateEventData(),T.label=9;case 9:return T.trys.push([9,31,,32]),t?[3,16]:(m=this.generateCallEndData(),n?1!==f.length?[3,11]:[4,this._cancel()]:[3,13]);case 10:return l=T.sent(),this._delegate.onCallingCancel(r(r({userID:o},h),{reason:I.NAME.NORMAL})),[3,12];case 11:this._delegate.onCallEnd(m),T.label=12;case 12:return[3,14];case 13:this._delegate.onCallEnd(m),T.label=14;case 14:return[4,this._resetTUICallEngine()];case 15:return T.sent(),[3,30];case 16:return v=this.getCallStatus(),_={callType:i,userIDList:c(p.filter((function(e){return e!==o})),f),callEnd:a},n?v!==M.CALL_STATUS.CALLING?[3,19]:[4,this._cancel(this.getInviterInviteIdList())]:[3,24];case 17:return l=T.sent(),[4,this._resetTUICallEngine()];case 18:T.sent(),this._delegate.onCallingCancel(r(r({userID:o},h),{reason:I.NAME.NORMAL})),T.label=19;case 19:if(v!==M.CALL_STATUS.CONNECTED)return[3,23];y=function(e){var t,n,r,a,i,d;return s(this,(function(s){switch(s.label){case 0:return t=u[e],n=b.getInviterInviteIdUserList(t),(r=b.getAcceptedUserList(t)).length>0?(a=r.filter((function(e){return-1!==p.indexOf(e)})),i=n.filter((function(e){return-1!==f.indexOf(e)})),_.userIDList=c(a,i).filter((function(e){return e!==o})),O.default.warn("inviter emit hangup signal, notify userIDList:"+JSON.stringify(_.userIDList)),[4,b._tsignalingClient.hangup(_)]):[3,2];case 1:return l=s.sent(),[3,4];case 2:return d=b.getUnHandledInviteeList(),n.filter((function(e){return-1!==d.indexOf(e)})).length>0?(O.default.warn("inviter emit cancel signal, userIdList:"+n),[4,b._cancel([t])]):[3,4];case 3:l=s.sent(),s.label=4;case 4:return[2]}}))},b=this,w=0,T.label=20;case 20:return w<u.length?[5,y(w)]:[3,23];case 21:T.sent(),T.label=22;case 22:return w++,[3,20];case 23:return[3,28];case 24:k=function(e){var t,n,r,a,i,d;return s(this,(function(s){switch(s.label){case 0:return t=u[e],n=C.getInviterInviteIdUserList(t),(r=C.getAcceptedUserList(t)).length>0?(a=r.filter((function(e){return-1!==p.indexOf(e)})),i=n.filter((function(e){return-1!==f.indexOf(e)})),_.userIDList=c(a,i).filter((function(e){return e!==o})),O.default.warn("invitee emit hangup signal, notify userIDList:"+JSON.stringify(_.userIDList)),[4,C._tsignalingClient.hangup(_)]):[3,2];case 1:return l=s.sent(),[3,4];case 2:return d=C.getUnHandledInviteeList(),n.filter((function(e){return-1!==d.indexOf(e)})).length>0?(O.default.warn("invitee emit cancel signal, inviteID:"+t),[4,C._cancel([t])]):[3,4];case 3:l=s.sent(),s.label=4;case 4:return[2]}}))},C=this,w=0,T.label=25;case 25:return w<u.length?[5,k(w)]:[3,28];case 26:T.sent(),T.label=27;case 27:return w++,[3,25];case 28:return[4,this._resetTUICallEngine()];case 29:T.sent(),T.label=30;case 30:return[2,l];case 31:throw S=T.sent(),O.default.warn(A+".hangup failed, error: "+S),new Error(A+".hangup failed, error: "+S);case 32:return[2]}}))}))},e.prototype._cancel=function(e){return i(this,void 0,void 0,(function(){var t,n,r,o,a,i;return s(this,(function(s){switch(s.label){case 0:O.default.log("_cancel _inviterInviteID",this._inviterInviteID),t=[],s.label=1;case 1:s.trys.push([1,6,,7]),0===(e||[]).length&&(e=this.getInviterInviteIdList().slice(0,1)),n=0,s.label=2;case 2:return n<e.length?(r=e[n],[4,this._tsignalingClient.cancel({inviteID:r})]):[3,5];case 3:o=s.sent(),t.push(o),s.label=4;case 4:return n++,[3,2];case 5:return[3,7];case 6:throw a=s.sent(),new k.default({message:A+"<_cancel>: failed "+a.message,code:a.code});case 7:return i="cancel "+JSON.stringify(t)+" succeeded",O.default.log(A+"._cancel "+i),this._setInterfaceUpLoad(g.default.CALLING_CANCEL).setText(i).setEnd(),[2,t]}}))}))},e.prototype.startRemoteView=function(e){var t;return i(this,void 0,void 0,(function(){var n,r,o;return s(this,(function(a){return O.default.debug(A+".startRemoteView - params:",e),n=e.userID,r=e.videoViewDomID,o=e.options,this._setInterfaceUpLoad(g.default.START_REMOTE_VIEW).setText("remote userId:{ "+n+" } startRemoveView succeeded").setEnd(),[2,null===(t=this._trtcClient)||void 0===t?void 0:t.playRemoteVideo({videoViewDomID:r,userID:n,options:o})]}))}))},e.prototype.stopRemoteView=function(e){var t;return i(this,void 0,void 0,(function(){var n;return s(this,(function(r){return O.default.debug(A+".stopRemoteView - params:",e),n=e.userID,this._setInterfaceUpLoad(g.default.STOP_REMOTE_VIEW).setText("remote userId:{ "+n+" } stopRemoveView succeeded").setEnd(),[2,null===(t=this._trtcClient)||void 0===t?void 0:t.stopRemoteVideo({userID:n})]}))}))},e.prototype.startLocalView=function(e){var t;return i(this,void 0,void 0,(function(){var n,r,o,a;return s(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),O.default.debug(A+".startLocalView - params:",e),n=e.userID,r=e.videoViewDomID,o=e.options,this._localViewId=r,this._setInterfaceUpLoad(g.default.START_LOCAL_VIEW).setText("remote userId:{ "+n+" } startLocalView succeeded").setEnd(),[4,null===(t=this._trtcClient)||void 0===t?void 0:t.playLocalVideo({videoViewDomID:r,userID:n,options:o})];case 1:return i.sent(),[3,3];case 2:throw a=i.sent(),new Error(A+".startLocalView failed. error: "+a);case 3:return[2]}}))}))},e.prototype.stopLocalView=function(e){var t;return i(this,void 0,void 0,(function(){var n;return s(this,(function(r){return O.default.debug(A+".stopLocalView - params:",e),n=e.userID,this._localViewId="",this._setInterfaceUpLoad(g.default.STOP_LOCAL_VIEW).setText("remote userId:{ "+n+" } stopLocalView succeeded").setEnd(),[2,null===(t=this._trtcClient)||void 0===t?void 0:t.stopLocalVideo()]}))}))},e.prototype.openCamera=function(e){var t;return i(this,void 0,void 0,(function(){var n,r,o;return s(this,(function(a){switch(a.label){case 0:if(a.trys.push([0,2,,3]),n=e,!e){if(!this._localViewId)return O.default.error(A+".openCamera failed. error: A DOM parameter is required to render the camera data"),[2];O.default.warn(A+".openCamera warning. warn: A DOM parameter is required to render the camera data. "+A+".startLocalView() will be deprecated soon."),n=this._localViewId}return r={videoViewDomID:n,userID:this.getUserID()},[4,null===(t=this._trtcClient)||void 0===t?void 0:t.playLocalVideo(r)];case 1:return a.sent(),[3,3];case 2:throw o=a.sent(),O.default.error(A+".openCamera failed. error: "+o),new Error(A+".openCamera failed. error: "+o);case 3:return[2]}}))}))},e.prototype.closeCamera=function(){var e;return i(this,void 0,void 0,(function(){return s(this,(function(t){try{return this._setInterfaceUpLoad(g.default.CLOSE_CAMERA).setText("close camera").setEnd(),[2,null===(e=this._trtcClient)||void 0===e?void 0:e.stopLocalVideo()]}catch(e){throw new Error(A+".closeCamera failed. error: "+e)}return[2]}))}))},e.prototype.openMicrophone=function(){var e;return i(this,void 0,void 0,(function(){return s(this,(function(t){return this._setInterfaceUpLoad(g.default.SET_MIC_MUTE).setText("openMicrophone").setEnd(),[2,null===(e=this._trtcClient)||void 0===e?void 0:e.unMuteLocalAudio()]}))}))},e.prototype.closeMicrophone=function(){var e;return i(this,void 0,void 0,(function(){return s(this,(function(t){return this._setInterfaceUpLoad(g.default.SET_MIC_MUTE).setText("closeMicrophone").setEnd(),[2,null===(e=this._trtcClient)||void 0===e?void 0:e.muteLocalAudio()]}))}))},e.prototype.setVideoQuality=function(e){return i(this,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return O.default.debug(A+".setVideoQuality - quality:"+JSON.stringify(e)),e===this.getVideoQuality()?(O.default.warn(A+".setVideoQuality failed - profile not change"),[2]):(this._setInterfaceUpLoad(g.default.SET_VIDEO_QUALITY).setText("setVideoQuality: "+JSON.stringify(e)).setEnd(),this._quality=e,this._trtcClient?[4,this._trtcClient._setVideoProfile(this._trtcClient.getLocalStream(),e)]:[3,2]);case 1:t.sent(),t.label=2;case 2:return[2]}}))}))},e.prototype.getVideoQuality=function(){return this._quality},e.prototype.setVideoRenderParams=function(e){return i(this,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return this._trtcClient?[4,this._trtcClient._setVideoRenderParams(e)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))},e.prototype.switchCallMediaType=function(e){return i(this,void 0,void 0,(function(){var t;return s(this,(function(n){switch(n.label){case 0:if(this._callType===e)throw new k.default({message:A+"<switchCallMediaType>: "+w.ERROR_MESSAGE.ERROR_REQUEST_REPEATED_SWITCH,code:C.default.ERROR_REQUEST_REPEATED});if(!this._switchCallModeStatus)throw new Error(A+" audio and video call switching.");O.default.log(A+".switchCallMediaType",this._inviterID,this._inviteeID),this._setInterfaceUpLoad(g.default.SWITCH_TO_AUDIO_CALL).setText("switchCallMediaType").setEnd(),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this._tsignalingClient.switchCallMode({userID:this._isInviter?this._inviteeID:this._inviterID,callType:this._callType,roomID:this._roomID,timeout:this._callTimeout,mode:e===M.CALL_TYPE.AUDIO_CALL?M.MODE_TYPE.AUDIO:M.MODE_TYPE.VIDEO})];case 2:return n.sent(),this.setSwitchCallModeStatus(!1),[3,4];case 3:throw t=n.sent(),new Error(A+".switchCallMediaType failed, error: "+t);case 4:return[2]}}))}))},e.prototype.setSwitchCallModeStatus=function(e){this._switchCallModeStatus=e},e.prototype.getSwitchCallModeStatus=function(){return this._switchCallModeStatus},e.prototype.getDeviceList=function(e){var t,n;return i(this,void 0,void 0,(function(){return s(this,(function(r){switch(r.label){case 0:if(e!==M.DEVICE_TYPE.CAMERA)return[3,5];r.label=1;case 1:return r.trys.push([1,4,,5]),[4,null===(t=this._trtcClient)||void 0===t?void 0:t.getMediaDevicesAuth({video:!0,isThrowVideoError:!0})];case 2:return r.sent(),[4,j.getCameras()];case 3:return[2,r.sent()];case 4:throw r.sent(),new k.default({message:A+"<getDeviceList>: "+w.ERROR_MESSAGE.ERROR_PERMISSION_DENIED,code:C.default.ERROR_PERMISSION_DENIED});case 5:if(e!==M.DEVICE_TYPE.MICROPHONES)return[3,10];r.label=6;case 6:return r.trys.push([6,9,,10]),[4,null===(n=this._trtcClient)||void 0===n?void 0:n.getMediaDevicesAuth({audio:!0})];case 7:return r.sent(),[4,j.getMicrophones()];case 8:return[2,r.sent()];case 9:throw r.sent(),new k.default({message:A+"<getDeviceList>: "+w.ERROR_MESSAGE.ERROR_PERMISSION_DENIED,code:C.default.ERROR_PERMISSION_DENIED});case 10:return[2]}}))}))},e.prototype.switchDevice=function(e){var t;return i(this,void 0,void 0,(function(){var n,r;return s(this,(function(o){return n=e.deviceType,r=e.deviceId,O.default.debug(A+".switchDevice -params: deviceType:"+n+",deviceID:"+r),[2,null===(t=this._trtcClient)||void 0===t?void 0:t.switchDevice(n,r)]}))}))},e.prototype.setSelfInfo=function(e){return i(this,void 0,void 0,(function(){var t,n,r;return s(this,(function(o){return t=e.nickName,n=e.avatar,r={nick:t,avatar:n},!t&&delete r.nick,!n&&delete r.avatar,O.default.log(A+".setSelfInfo -params: nickName:"+r.nick+",avatar:"+r.avatar),[2,this.tim.updateMyProfile(r)]}))}))},e.prototype.generateCallEndData=function(e){var t=e||{},n=t.roomId,r=t.callMediaType,o=t.callRole,a=t.totalTime,i=t.userId;return n=n||this.getRoomID(),r=r||this.getCallType(),o||(o=this.isInviter()?M.CALL_ROLE.INVITER:M.CALL_ROLE.INVITEE),{roomID:n,callMediaType:r,callRole:o,totalTime:a=u.isUndefined(a)?Math.round((Date.now()-this.getConnectStartTime())/1e3):a,userID:i=i||this.getUserID()}},e.prototype.generateEventData=function(){return{callID:this.getInviterInviteIdList()[0],roomID:this._roomID,callRole:this._isInviter?I.NAME.INVITER:I.NAME.INVITEE,callMediaType:this._callType}},e.prototype.enableAIVoice=function(e){var t;return i(this,void 0,void 0,(function(){return s(this,(function(n){switch(n.label){case 0:return this._trtcClient?[4,null===(t=this._trtcClient)||void 0===t?void 0:t.enableAIVoice(e)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}}))}))},e.prototype._resetTUICallEngine=function(){var e;return i(this,void 0,void 0,(function(){var t;return s(this,(function(n){switch(n.label){case 0:return O.default.debug(A+"._resetTUICallEngine"),this._roomID=0,this._isInviter=!1,this._isGroupCall=!1,this.setSwitchCallModeStatus(!0),this._groupID="",this._callStatus=M.CALL_STATUS.IDLE,this._inviteeList=[],this._unHandledInviteeList=[],this._handledInviteeList=[],this._inviterInviteID={},this._audioVideoSwitchIdList=[],this._acceptedUserObject={},this._connectStartTime=0,this._switchCallModeStatus=!0,this._callRecordReport.stopHeartbeat(),this._initialCallId="",this._localViewId="",[4,null===(e=this._trtcClient)||void 0===e?void 0:e.reset()];case 1:return n.sent(),this._tsignalingClient.setInviteData(null),this._tsignalingClient.resetJoined(),(t=document.getElementById("_trtc_calling_layer"))&&(t.innerHTML=""),[2]}}))}))},e.prototype.getCallStatus=function(){return this._callStatus},e.prototype.changeCallStatus=function(e){this._callStatus!==e&&(O.default.debug(A+".changeCallStatus from "+this._callStatus+" to "+e),this._setInterfaceUpLoad(g.default.CHANGE_CALL_STATUS).setText("changeCallStatus from "+this._callStatus+" to "+e).setEnd(),this._callStatus=e)},e.prototype._callRecordUpload=function(e){var t=r(r({},e),{callRole:this.isInviter()?I.NAME.INVITER:I.NAME.INVITEE,userID:this.getUserID(),roomID:this.getRoomID(),inviteID:this.getInitialCallId()});this._callRecordReport.eventUpload(t)},e.prototype.extractCallingInfoFromMessage=function(e){if(!e)return"";if("TIMCustomElem"!==e.type)return"";var t=JSON.parse(e.payload.data);if(O.default.debug(A+".extractCallingInfoFromMessage - signalingData:",e.payload.data),t.businessID!==M.BUSINESS_ID.SIGNAL)return"";switch(t.actionType){case M.ACTION_TYPE.INVITE:var n=JSON.parse(t.data);return n.call_end>0?"结束通话,通话时长:"+u.formatDuration(n.call_end):0!==n.call_end&&n.room_id?"发起通话":"结束群聊";case M.ACTION_TYPE.CANCEL_INVITE:return"取消通话";case M.ACTION_TYPE.ACCEPT_INVITE:return"已接听";case M.ACTION_TYPE.REJECT_INVITE:return"拒绝通话";case M.ACTION_TYPE.INVITE_TIMEOUT:return"无应答";default:return""}},e.prototype.setInitialCallId=function(e){this._initialCallId=e},e.prototype.getInitialCallId=function(){return this._initialCallId},e.CALL_TYPE=M.CALL_TYPE,o([S.paramValidate(S.VALIDATE_PARAMS.login),a("design:type",Function),a("design:paramtypes",[Object]),a("design:returntype",Promise)],e.prototype,"init",null),o([S.paramValidate(S.VALIDATE_PARAMS.login),a("design:type",Function),a("design:paramtypes",[Object]),a("design:returntype",Promise)],e.prototype,"login",null),o([S.avoidRepeatedCall(),S.paramValidate(S.VALIDATE_PARAMS.call),S.statusValidate({init:!0,callStatus:[M.CALL_STATUS.IDLE]}),S.businessValidate(M.CALL_EXPERMENTEL_API_TYPE.BASE),a("design:type",Function),a("design:paramtypes",[Object]),a("design:returntype",Promise)],e.prototype,"call",null),o([S.avoidRepeatedCall(),S.paramValidate(S.VALIDATE_PARAMS.groupCall),S.statusValidate({init:!0,callStatus:[M.CALL_STATUS.IDLE]}),S.businessValidate(M.CALL_EXPERMENTEL_API_TYPE.PRO),a("design:type",Function),a("design:paramtypes",[Object]),a("design:returntype",Promise)],e.prototype,"groupCall",null),o([S.paramValidate(S.VALIDATE_PARAMS.joinInGroupCall),S.statusValidate({init:!0,callStatus:[M.CALL_STATUS.IDLE]}),S.businessValidate(M.CALL_EXPERMENTEL_API_TYPE.PRO),a("design:type",Function),a("design:paramtypes",[Object]),a("design:returntype",Promise)],e.prototype,"joinInGroupCall",null),o([S.paramValidate(S.VALIDATE_PARAMS.inviteUser),S.statusValidate({init:!0,callStatus:[M.CALL_STATUS.CALLING,M.CALL_STATUS.CONNECTED]}),S.businessValidate(M.CALL_EXPERMENTEL_API_TYPE.PRO),a("design:type",Function),a("design:paramtypes",[Object]),a("design:returntype",Promise)],e.prototype,"inviteUser",null),o([S.avoidRepeatedCall(),S.statusValidate({init:!0,callStatus:[M.CALL_STATUS.CALLING]}),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",Promise)],e.prototype,"accept",null),o([S.avoidRepeatedCall(),S.statusValidate({init:!0,callStatus:[M.CALL_STATUS.CALLING]}),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",Promise)],e.prototype,"reject",null),o([S.avoidRepeatedCall(),S.statusValidate({init:!0,callStatus:[M.CALL_STATUS.CALLING,M.CALL_STATUS.CONNECTED]}),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",Promise)],e.prototype,"hangup",null),o([S.paramValidate(S.VALIDATE_PARAMS.startRemoteView),S.statusValidate({init:!0,callStatus:[M.CALL_STATUS.CONNECTED]}),a("design:type",Function),a("design:paramtypes",[Object]),a("design:returntype",Promise)],e.prototype,"startRemoteView",null),o([S.paramValidate(S.VALIDATE_PARAMS.stopRemoteView),S.statusValidate({init:!0,callStatus:[M.CALL_STATUS.CONNECTED]}),a("design:type",Function),a("design:paramtypes",[Object]),a("design:returntype",Promise)],e.prototype,"stopRemoteView",null),o([S.paramValidate(S.VALIDATE_PARAMS.startLocalView),S.statusValidate({init:!0,callStatus:[M.CALL_STATUS.CALLING,M.CALL_STATUS.CONNECTED]}),S.apiCallQueue(),a("design:type",Function),a("design:paramtypes",[Object]),a("design:returntype",Promise)],e.prototype,"startLocalView",null),o([S.paramValidate(S.VALIDATE_PARAMS.stopLocalView),S.statusValidate({init:!0,callStatus:[M.CALL_STATUS.CALLING,M.CALL_STATUS.CONNECTED]}),S.apiCallQueue(),a("design:type",Function),a("design:paramtypes",[Object]),a("design:returntype",Promise)],e.prototype,"stopLocalView",null),o([S.statusValidate({init:!0,callStatus:[M.CALL_STATUS.CALLING,M.CALL_STATUS.CONNECTED]}),a("design:type",Function),a("design:paramtypes",[Object]),a("design:returntype",Promise)],e.prototype,"openCamera",null),o([S.statusValidate({init:!0,callStatus:[M.CALL_STATUS.CALLING,M.CALL_STATUS.CONNECTED]}),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",Promise)],e.prototype,"closeCamera",null),o([S.statusValidate({init:!0,callStatus:[M.CALL_STATUS.CALLING,M.CALL_STATUS.CONNECTED]}),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",Promise)],e.prototype,"openMicrophone",null),o([S.statusValidate({init:!0,callStatus:[M.CALL_STATUS.CALLING,M.CALL_STATUS.CONNECTED]}),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",Promise)],e.prototype,"closeMicrophone",null),o([S.paramValidate(S.VALIDATE_PARAMS.setVideoQuality),a("design:type",Function),a("design:paramtypes",[Object]),a("design:returntype",Promise)],e.prototype,"setVideoQuality",null),o([S.paramValidate(S.VALIDATE_PARAMS.setVideoRenderParams),a("design:type",Function),a("design:paramtypes",[Object]),a("design:returntype",Promise)],e.prototype,"setVideoRenderParams",null),o([S.paramValidate(S.VALIDATE_PARAMS.switchCallMediaType),S.statusValidate({init:!0,callStatus:[M.CALL_STATUS.CONNECTED,M.CALL_STATUS.CALLING],scene:!0}),a("design:type",Function),a("design:paramtypes",[Number]),a("design:returntype",Promise)],e.prototype,"switchCallMediaType",null),o([S.paramValidate(S.VALIDATE_PARAMS.getDeviceList),S.statusValidate({init:!0}),a("design:type",Function),a("design:paramtypes",[String]),a("design:returntype",Promise)],e.prototype,"getDeviceList",null),o([S.paramValidate(S.VALIDATE_PARAMS.switchDevice),S.statusValidate({init:!0,callStatus:[M.CALL_STATUS.CALLING,M.CALL_STATUS.CONNECTED]}),a("design:type",Function),a("design:paramtypes",[Object]),a("design:returntype",Promise)],e.prototype,"switchDevice",null),o([S.paramValidate(S.VALIDATE_PARAMS.setSelfInfo),S.statusValidate({init:!0}),a("design:type",Function),a("design:paramtypes",[Object]),a("design:returntype",Promise)],e.prototype,"setSelfInfo",null),o([S.statusValidate({init:!0}),a("design:type",Function),a("design:paramtypes",[Boolean]),a("design:returntype",Promise)],e.prototype,"enableAIVoice",null),o([S.paramValidate(S.VALIDATE_PARAMS.createInstance),a("design:type",Function),a("design:paramtypes",[Object]),a("design:returntype",void 0)],e,"createInstance",null),e}();t.default=x},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));const r=Function.prototype.apply,o=new WeakMap;function a(e){return o.has(e)||o.set(e,{}),o.get(e)}class i{constructor(e=null,t=console){const n=a(this);return n._events=new Set,n._callbacks={},n._console=t,n._maxListeners=null===e?null:parseInt(e,10),this}_addCallback(e,t,n,r){return this._getCallbacks(e).push({callback:t,context:n,weight:r}),this._getCallbacks(e).sort((e,t)=>e.weight>t.weight),this}_getCallbacks(e){return a(this)._callbacks[e]}_getCallbackIndex(e,t){return this._has(e)?this._getCallbacks(e).findIndex(e=>e.callback===t):null}_achieveMaxListener(e){return null!==a(this)._maxListeners&&a(this)._maxListeners<=this.listenersNumber(e)}_callbackIsExists(e,t,n){const r=this._getCallbackIndex(e,t),o=-1!==r?this._getCallbacks(e)[r]:void 0;return-1!==r&&o&&o.context===n}_has(e){return a(this)._events.has(e)}on(e,t,n=null,r=1){const o=a(this);if("function"!=typeof t)throw new TypeError(t+" is not a function");return this._has(e)?(this._achieveMaxListener(e)&&o._console.warn(`Max listeners (${o._maxListeners}) for event "${e}" is reached!`),this._callbackIsExists(...arguments)&&o._console.warn(`Event "${e}" already has the callback ${t}.`)):(o._events.add(e),o._callbacks[e]=[]),this._addCallback(...arguments),this}once(e,t,n=null,o=1){const a=(...o)=>(this.off(e,a),r.call(t,n,o));return this.on(e,a,n,o)}off(e,t=null){const n=a(this);let r;return this._has(e)&&(null===t?(n._events.delete(e),n._callbacks[e]=null):(r=this._getCallbackIndex(e,t),-1!==r&&(n._callbacks[e].splice(r,1),this.off(...arguments)))),this}emit(e,...t){return this._has(e)&&this._getCallbacks(e).forEach(e=>r.call(e.callback,e.context,t)),this}clear(){const e=a(this);return e._events.clear(),e._callbacks={},this}listenersNumber(e){return this._has(e)?this._getCallbacks(e).length:null}}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=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)},o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}c((r=r.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(o=i.trys,!((o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},i=this&&this.__spreadArrays||function(){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 a=arguments[t],i=0,s=a.length;i<s;i++,o++)r[o]=a[i];return r};Object.defineProperty(t,"__esModule",{value:!0});var s=n(17),c=n(2),l=n(35),u=n(5),d=n(1),p=n(10),f=n(11),h=n(13),m=n(9),v=n(4),g=n(6),_=n(5),y=n(55),b=n(26),O=n(0),M=n(0),k=n(7),C="TRTCClient",w=s,I=function(){function e(e){var t,n=this;this._sdkAppID=e.sdkAppID,this._userID=e.userID,this._userSig=e.userSig,this._tuiCallEngine=e.tuiCallEngine,this._videoAvailableMap=new Map,this._isJoined=!1,this._isPublished=!1,this._unPublishing=!1,this._localStream=null,this._remoteStreams=[],this._userIdDomMap=new Map,this._device={video:null,audio:null,microphoneList:[],cameraList:[]},this._prevDevices=[],this._assetsPath=e.assetsPath,this._eventStatController=new h.default,p.default.bindController(this._eventStatController),this._isAiNoiseSuppress=!0;var r=w.VERSION;d.compareVersion(r,"4.7.0")>=0?w.checkSystemRequirements().then((function(e){if(!e.result)throw n._tuiCallEngine._delegate.onError(v.default.NOT_SUPPORT,JSON.stringify(e)),new m.default({message:g.ERROR_MESSAGE.NOT_SUPPORT+" "+JSON.stringify(e),code:v.default.NOT_SUPPORT})})):w.checkSystemRequirements().then((function(e){if(!e)throw n._tuiCallEngine._delegate.onError(v.default.NOT_SUPPORT,e),new m.default({message:g.ERROR_MESSAGE.NOT_SUPPORT+" "+JSON.stringify(e),code:v.default.NOT_SUPPORT})})),this._frameWorkType=32,d.compareVersion(r,"4.15.1")>=0?(this._frameWorkType=30,this._component=14,((null===(t=null===window||void 0===window?void 0:window.localStorage)||void 0===t?void 0:t.getItem("_isTIMCallKit"))||(null===window||void 0===window?void 0:window._isTIMCallKit))&&(this._component=15)):this._component=3,this.init()}return e.prototype.init=function(){this._client=w.createClient({mode:M.NAME.RTC,sdkAppId:this._sdkAppID,userId:this._userID,userSig:this._userSig,frameWorkType:this._frameWorkType,component:this._component}),this.addTRTCEvents()},e.prototype.getClient=function(){return this._client},e.prototype.getRemoteStreams=function(){return this._remoteStreams},e.prototype.getLocalStream=function(){return this._localStream},e.prototype.getMicrophoneList=function(){return o(this,void 0,void 0,(function(){var e;return a(this,(function(t){switch(t.label){case 0:return[4,w.getMicrophones()];case 1:return e=t.sent(),this._device.microphoneList=e,[2]}}))}))},e.prototype.getCamerasList=function(){return o(this,void 0,void 0,(function(){var e;return a(this,(function(t){switch(t.label){case 0:return[4,w.getCameras()];case 1:return e=t.sent(),this._device.cameraList=e,[2]}}))}))},e.prototype.getDevices=function(e){return o(this,void 0,void 0,(function(){var t=this;return a(this,(function(n){switch(n.label){case 0:return[4,this.getMicrophoneList()];case 1:return n.sent(),0!==this._device.microphoneList.length?[3,3]:[4,this._tuiCallEngine._resetTUICallEngine()];case 2:return n.sent(),this._tuiCallEngine._delegate.onError(v.default.NOT_MICROPHONE_LIST,g.ERROR_MESSAGE.NOT_MICROPHONE_LIST),[2];case 3:return this._device.audio=JSON.parse(JSON.stringify(this._device.microphoneList[0])),e===u.CALL_TYPE.VIDEO_CALL&&this._tuiCallEngine.getDevicePermission().video?[4,this.getCamerasList()]:[3,5];case 4:n.sent(),this._device.video=JSON.parse(JSON.stringify(this._device.cameraList[0])),n.label=5;case 5:return this._prevDevices.length>0||(this._prevDevices=i(this._device.microphoneList,this._device.cameraList),navigator.mediaDevices.addEventListener("devicechange",(function(){return o(t,void 0,void 0,(function(){var e,t,n,r,o,s=this;return a(this,(function(a){switch(a.label){case 0:return[4,w.getMicrophones()];case 1:return e=a.sent(),[4,w.getCameras()];case 2:return t=a.sent(),n=i(e,t),this.setDevcies(n),r=n.filter((function(e){return s._prevDevices.findIndex((function(t){var n=t.deviceId;return e.deviceId===n}))<0})),o=this._prevDevices.filter((function(e){return n.findIndex((function(t){var n=t.deviceId;return e.deviceId===n}))<0})),r.length>0&&this.handleDevices(r),o.length>0&&this.handleDevicesRemoved(o),this._tuiCallEngine._delegate.onDeviceUpdated(this._device.microphoneList,this._device.cameraList,this._device.audio,this._device.video),this._prevDevices=n,[2]}}))}))}))),[2]}}))}))},e.prototype.setDevcies=function(e){this._device.microphoneList=e.filter((function(e){return e.kind===M.NAME.AUDIO_INPUT}))||[],this._device.cameraList=e.filter((function(e){return e.kind===M.NAME.VIDEO_INPUT}))||[]},e.prototype.handleDevices=function(e,t){var n=this;e.forEach((function(e){e.kind===M.NAME.AUDIO_INPUT?n.switchDevice(u.DEVICE_TYPE.AUDIO,e.deviceId):e.kind===M.NAME.VIDEO_INPUT&&t&&n.switchDevice(u.DEVICE_TYPE.VIDEO,e.deviceId)}))},e.prototype.handleDevicesRemoved=function(e){var t=this;e.forEach((function(e){e.kind===M.NAME.AUDIO_INPUT?t.isCurrentMicrophoneRemoved(e.deviceId)&&t.handleDevices(t._prevDevices):e.kind===M.NAME.VIDEO_INPUT&&t.isCurrentCameraRemoved(e.deviceId)&&t.handleDevices(t._prevDevices,!0)}))},e.prototype.isCurrentMicrophoneRemoved=function(e){var t=this._localStream.getAudioTrack();return!(!t||t.getSettings().deviceId!==e)},e.prototype.isCurrentCameraRemoved=function(e){var t=this._localStream.getVideoTrack();return!(!t||t.getSettings().deviceId!==e)},e.prototype.switchDevice=function(e,t){return o(this,void 0,void 0,(function(){var n;return a(this,(function(r){switch(r.label){case 0:return c.default.log(C+".switchDevice - params: deviceType:"+e+",deviceID:"+t),this._localStream?[4,this._localStream.switchDevice(e,t)]:[3,2];case 1:r.sent(),r.label=2;case 2:return n={deviceType:e,deviceId:t},this._device[e]=n,this._tuiCallEngine._delegate.onDeviceUpdated(this._device.microphoneList,this._device.cameraList,this._device.audio,this._device.video),[2]}}))}))},e.prototype.join=function(e){return o(this,void 0,void 0,(function(){var t,n,r,o,i;return a(this,(function(a){switch(a.label){case 0:return(t=this.getCallType())!==u.CALL_TYPE.VIDEO_CALL||this._tuiCallEngine.getDevicePermission().video?[3,2]:[4,this.getMediaDevicesAuth({video:!0})];case 1:a.sent(),a.label=2;case 2:return[4,this.getDevices(t)];case 3:if(a.sent(),this._isJoined)return c.default.warn(C+".join - duplicate RtcClient.join() observed"),[2];a.label=4;case 4:return a.trys.push([4,6,,7]),[4,this._client.join({roomId:e})];case 5:return a.sent(),this._isJoined=!0,this._tuiCallEngine.isInviter()||(n=this._tuiCallEngine.generateEventData(),this._tuiCallEngine._delegate.onCallBegin(n)),c.default.log(C+".join - join room success, callType:"+t),[3,7];case 6:throw r=a.sent(),c.default.error(C+".join - join room failed! "+r),new Error(C+".join - join room failed! "+r);case 7:if(this._tuiCallEngine.getCallStatus()===u.CALL_STATUS.IDLE)return c.default.warn(C+".join - early hangup"),[2,this._tuiCallEngine.hangup()];o={audio:!0,video:!1,userId:this._userID},t===u.CALL_TYPE.VIDEO_CALL&&this._tuiCallEngine.getDevicePermission().video&&(o.video=!0),a.label=8;case 8:return a.trys.push([8,15,,16]),this._localStream=w.createStream(o),[4,this._setVideoProfile(this._localStream)];case 9:return a.sent(),[4,this._localStream.initialize()];case 10:return a.sent(),this._tuiCallEngine.tim?[4,this._addAiNoiseReduce(this._tuiCallEngine.tim)]:[3,12];case 11:a.sent(),a.label=12;case 12:return c.default.log(C+".join - initialize local stream success"),this._tuiCallEngine.isInviter()?[3,14]:[4,this.publish()];case 13:a.sent(),a.label=14;case 14:return this._joinedTimestamp=new Date,[2,{audio:o.audio,video:o.video,userId:o.userId}];case 15:throw i=a.sent(),c.default.error(C+".join - failed to initialize local stream - "+i),new m.default({message:C+"<join>: "+g.ERROR_MESSAGE.ERROR_PERMISSION_DENIED,code:v.default.ERROR_PERMISSION_DENIED});case 16:return[2]}}))}))},e.prototype._addAiNoiseReduce=function(e){return o(this,void 0,void 0,(function(){var t,n,r;return a(this,(function(o){switch(o.label){case 0:return o.trys.push([0,6,,7]),[4,b.validateBusiness(e,_.CALL_EXPERMENTEL_API_TYPE.PRO)];case 1:return t=o.sent(),c.default.info(C+"._addAiNoiseReduce - aiNoiseReduceSupport."+t),t&&y?(this._assetsPath||c.default.warn(C+"._addAiNoiseReduce - please pass validate assetsPath"),this._aiNoiseSuppression=new y({assetsPath:this._assetsPath||O.AI_NOISE_REDUCE_ASSETS_PATH}),n=this,[4,this._aiNoiseSuppression.createProcessor({sdkAppId:this._sdkAppID,userId:this._userID,userSig:this._userSig})]):[3,5];case 2:return n._aiNoiseSuppressionProcessor=o.sent(),[4,this._aiNoiseSuppressionProcessor.process(this._localStream)];case 3:return o.sent(),[4,this.enableAIVoice(this._isAiNoiseSuppress)];case 4:o.sent(),o.label=5;case 5:return[3,7];case 6:return r=o.sent(),c.default.warn(C+"._addAiNoiseReduce - error."+r),[3,7];case 7:return[2]}}))}))},e.prototype.playLocalVideo=function(e){var t;return o(this,void 0,void 0,(function(){var n,r,o,i,s,l;return a(this,(function(a){switch(a.label){case 0:return a.trys.push([0,5,,6]),c.default.debug(C+".playLocalVideo - params:",e),n=e.videoViewDomID,r=e.userID,e.options&&this._tuiCallEngine.setLocalPlayOptions(e.options),o=this._tuiCallEngine.getLocalPlayOptions(),i=n,typeof n===M.NAME.STRING&&(i=document.getElementById(n)),this._userIdDomMap.set(r,i),!this._localStream||this._localStream.hasVideo()?[3,2]:(s=this._localStream.getVideoTrack(),[4,this.addTrack(s)]);case 1:a.sent(),a.label=2;case 2:return i?[4,null===(t=null==this?void 0:this._localStream)||void 0===t?void 0:t.play(i,o)]:[3,4];case 3:a.sent(),a.label=4;case 4:return[3,6];case 5:throw l=a.sent(),c.default.error(C+".playLocalVideo - failed, error:"+l),new Error(C+".playLocalVideo - failed, error:"+l);case 6:return[2]}}))}))},e.prototype.stopLocalVideo=function(){return o(this,void 0,void 0,(function(){var e,t;return a(this,(function(n){switch(n.label){case 0:return n.trys.push([0,6,,7]),this._localStream?this._localStream.hasAudio()?(e=this._localStream.getVideoTrack())?[4,this._localStream.removeTrack(e)]:[3,2]:[3,3]:[3,5];case 1:n.sent(),e.stop(),n.label=2;case 2:return[3,5];case 3:return[4,this.unpublish()];case 4:n.sent(),this._localStream.stop(),this._localStream.close(),this._localStream=null,this._userIdDomMap.delete(this._tuiCallEngine.getUserID()),n.label=5;case 5:return[3,7];case 6:throw t=n.sent(),c.default.error(C+".stopLocalVideo - failed to play local video "+t),new Error(C+".stopLocalVideo - failed to play local video "+t);case 7:return[2]}}))}))},e.prototype.playRemoteVideo=function(e){return o(this,void 0,void 0,(function(){var t,n,r,o,i,s;return a(this,(function(a){switch(a.label){case 0:c.default.debug(C+".playRemoteVideo - params:",e),t=e.videoViewDomID,n=e.userID,e.options&&this._tuiCallEngine.setRemotePlayOptions(e.options),r=this._tuiCallEngine.getRemotePlayOptions(),o=t,typeof t===M.NAME.STRING&&(o=document.getElementById(t)),this._userIdDomMap.set(n,o),a.label=1;case 1:if(a.trys.push([1,6,,7]),!(i=this._remoteStreams.find((function(e){return e.getUserId()===n}))))throw new Error("currentRemoteUserStream is empty");if(!o)throw new Error("domID is empty");return document.getElementById("_trtc_calling_audio_call-"+n)?[4,i.stop()]:[3,3];case 2:a.sent(),document.getElementById("_trtc_calling_audio_call-"+n).remove(),a.label=3;case 3:return[4,null==i?void 0:i.play(o,r)];case 4:return a.sent(),[4,null==i?void 0:i.unmuteVideo()];case 5:return a.sent(),[3,7];case 6:throw s=a.sent(),c.default.error(C+".playRemoteVideo - failed to play remote video reason: "+s),new Error(C+".playRemoteVideo - failed to play remote video reason: "+s);case 7:return[2]}}))}))},e.prototype.stopRemoteVideo=function(e){return o(this,void 0,void 0,(function(){var t,n,r;return a(this,(function(o){switch(o.label){case 0:c.default.debug(C+".stopRemoteVideo - params:",e),t=e.userID,o.label=1;case 1:return o.trys.push([1,4,,5]),(n=this._remoteStreams.find((function(e){return e.getUserId()===t})))&&n.hasVideo()?[4,n.muteVideo()]:[3,3];case 2:o.sent(),o.label=3;case 3:return[3,5];case 4:throw r=o.sent(),c.default.error(C+".stopRemoteVideo - failed to stop remote video "+r),new Error(C+".stopRemoteVideo - failed to stop remote video "+r);case 5:return[2]}}))}))},e.prototype.getCallType=function(){return this._tuiCallEngine.getCallType()},e.prototype.leave=function(){var e,t;return o(this,void 0,void 0,(function(){var n;return a(this,(function(r){switch(r.label){case 0:return c.default.log(C+"-leave._isJoined:"+this._isJoined),this._isJoined?[4,this.unpublish()]:(c.default.warn(C+".leave - please join() firstly"),[2]);case 1:return r.sent(),this._tuiCallEngine.getCallDataReport().setExitRoomTime((new Date).getTime()),[4,this._client.leave()];case 2:return r.sent(),this._isJoined=!1,this._isPublished=!1,null===(e=null==this?void 0:this._localStream)||void 0===e||e.close(),this._localStream=null,this._remoteStreams=[],this._userIdDomMap.clear(),this._videoAvailableMap.clear(),this._leaveTimestamp=new Date,this._client.enableAudioVolumeEvaluation(-1),null===(t=null==this?void 0:this._aiNoiseSuppressionProcessor)||void 0===t||t.destroy(),this._aiNoiseSuppressionProcessor=null,this._isAiNoiseSuppress=!0,n=Math.floor((this._leaveTimestamp-this._joinedTimestamp)/1e3),new p.default(f.default.TALK_TIME).setTalkTime(n).setText("talkTime record").setEnd(),[2]}}))}))},e.prototype.publish=function(){return o(this,void 0,void 0,(function(){var e;return a(this,(function(t){switch(t.label){case 0:if(!this._isJoined)return c.default.warn(C+".publish - please join() firstly"),[2];if(this._isPublished)return c.default.warn(C+".publish - duplicate RtcClient.publish() observed"),[2];if(this._tuiCallEngine.getCallStatus()===u.CALL_STATUS.IDLE)return c.default.warn(C+".join - early hangup"),this._tuiCallEngine.hangup(),[2];if(!this._localStream)return[2];t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this._client.publish(this._localStream)];case 2:return t.sent(),this._isPublished=!0,c.default.log(C+".publish success"),[3,4];case 3:return e=t.sent(),c.default.error(C+".publish - failed to publish local stream "+e),this._isPublished=!1,[3,4];case 4:return[2]}}))}))},e.prototype.unpublish=function(){return o(this,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return this._isPublished?this._localStream?this._unPublishing?(c.default.log(C+".unpublish - _unPublishing"),[2]):(this._unPublishing=!0,[4,this._client.unpublish(this._localStream)]):(c.default.warn(C+".unpublish - RtcClient._localStream is null"),[2]):(c.default.warn(C+".unpublish - RtcClient.unpublish() called but not published yet"),[2]);case 1:return e.sent(),c.default.log(C+".unpublish - complete"),this._unPublishing=!1,this._isPublished=!1,[2]}}))}))},e.prototype.playAudioStream=function(e){return o(this,void 0,void 0,(function(){var t,n,r,o;return a(this,(function(a){return t=e.getUserId(),n="_trtc_calling_audio_call-"+t,(r=document.getElementById("_trtc_calling_layer"))||((r=document.createElement("div")).setAttribute("id","_trtc_calling_layer"),r.style.display="none",document.body.appendChild(r)),(o=document.createElement("div")).setAttribute("id",n),r.appendChild(o),e&&(e.play(n),e.on("error",(function(t){if(16451===t.getCode()){var n=document.createElement("button");n.onclick=function(){c.default.log(C+".remoteStream - resume"),e.resume()},n.style.display="none",document.body.appendChild(n);var r=setTimeout((function(){n.click(),clearTimeout(r),document.body.removeChild(n)}),0)}}))),[2]}))}))},e.prototype.delegateVideoAvailableState=function(e,t){e&&this._videoAvailableMap.get(e)!==t&&(this._videoAvailableMap.set(e,t),this._tuiCallEngine._delegate.onUserVideoAvailable({userID:e,isVideoAvailable:t}))},e.prototype.querySubscribeSuccess=function(e){return void 0!==this._videoAvailableMap.get(e)},e.prototype.addTRTCEvents=function(){var e=this;this._client.on("error",(function(t){c.default.error(C+".handleEvents - client on error "+t);var n=t.getCode(),r=JSON.stringify({name:M.NAME.TRTC,error:t});e._tuiCallEngine._delegate.onError(n,r)})),this._client.on("client-banned",(function(t){return o(e,void 0,void 0,(function(){var e,n;return a(this,(function(o){switch(o.label){case 0:return c.default.error(C+".handleEvents - client has been banned for "+t),this._tuiCallEngine.getCallStatus()===u.CALL_STATUS.CONNECTED&&(e=this._tuiCallEngine.generateCallEndData(),this._tuiCallEngine._delegate.onCallEnd(e)),this._tuiCallEngine.getCallStatus()!==u.CALL_STATUS.CALLING?[3,2]:(n=r(r({},this._tuiCallEngine.generateEventData()),{reason:M.NAME.BANNED}),this._tuiCallEngine._delegate.onCallingCancel(r({userID:this._tuiCallEngine.getUserID()},n)),[4,this._tuiCallEngine._cancel()]);case 1:o.sent(),o.label=2;case 2:return[4,this._tuiCallEngine._resetTUICallEngine()];case 3:return o.sent(),[2]}}))}))})),this._client.on("peer-join",(function(t){return o(e,void 0,void 0,(function(){var e,n,r,o;return a(this,(function(a){switch(a.label){case 0:return e=t.userId,this._isPublished||!this._tuiCallEngine.isInviter()?[3,2]:[4,this.publish()];case 1:a.sent(),a.label=2;case 2:return c.default.log(C+".handleEvents - peer-join "+e),this._tuiCallEngine.getConnectStartTime()||(this._tuiCallEngine.setConnectStartTime(Date.now()),this._client.enableAudioVolumeEvaluation(1e3)),this._tuiCallEngine._delegate.onUserEnter(e),n=this._tuiCallEngine.isGroupCall(),this._tuiCallEngine.addHandledInviteeList([e]),this._tuiCallEngine.deleteUnHandledInviteeList([e]),this._tuiCallEngine.addAcceptedUserList(null,[e]),this._tuiCallEngine.getCallStatus()===u.CALL_STATUS.CALLING&&this._tuiCallEngine.isInviter()&&(r=this._tuiCallEngine.generateEventData(),this._tuiCallEngine._delegate.onCallBegin(r)),this._tuiCallEngine.changeCallStatus(u.CALL_STATUS.CONNECTED),n&&(o=this._tuiCallEngine.getHandledInviteeList(),this._tuiCallEngine._delegate.onGroupCallInviteeListUpdate(o)),[2]}}))}))})),this._client.on("peer-leave",(function(t){return o(e,void 0,void 0,(function(){var e,n,r,o,i,s,l,d;return a(this,(function(a){switch(a.label){case 0:return this._tuiCallEngine.getCallStatus()===u.CALL_STATUS.IDLE?[2]:(e=t.userId,c.default.log(C+".handleEvents - peer-leave:"+e),n=this._tuiCallEngine.isGroupCall(),this._tuiCallEngine.deleteHandledInviteeList([e]),this._videoAvailableMap.delete(e),this._tuiCallEngine._delegate.onUserLeave(e),n?(r=this._tuiCallEngine.getHandledInviteeList(),o=this._tuiCallEngine.getUnHandledInviteeList(),0!==r.length&&this._tuiCallEngine._delegate.onGroupCallInviteeListUpdate(r),i=this._tuiCallEngine.getUserID(),1!==r.length||r[0]!==i||0!==o.length?[3,2]:(s=this._tuiCallEngine.generateCallEndData(),this._tuiCallEngine._delegate.onCallEnd(s),[4,this._tuiCallEngine._resetTUICallEngine()])):[3,3]);case 1:a.sent(),a.label=2;case 2:return[3,6];case 3:return l=this._tuiCallEngine.getHandledInviteeList(),d={callType:this._tuiCallEngine.getCallType(),userIDList:[e],callEnd:Math.round((Date.now()-this._tuiCallEngine.getConnectStartTime())/1e3)},1!==l.length?[3,6]:[4,this._tuiCallEngine._tsignalingClient.hangup(d)];case 4:return a.sent(),[4,this._tuiCallEngine._resetTUICallEngine()];case 5:a.sent(),a.label=6;case 6:return[2]}}))}))})),this._client.on("stream-added",(function(t){return o(e,void 0,void 0,(function(){var e,n,r,o,i,s;return a(this,(function(a){switch(a.label){case 0:e=t.stream,n=e.getId(),r=e.getUserId(),c.default.log(C+".handleEvents - remote stream added, userID:"+r+" streamID:"+n+" type:"+e.getType()),a.label=1;case 1:return a.trys.push([1,3,,5]),[4,this._client.subscribe(e)];case 2:return a.sent(),[3,5];case 3:return o=a.sent(),i=o.getCode(),s=JSON.stringify({name:"TRTC",error:o}),[4,this._tuiCallEngine._resetTUICallEngine()];case 4:return a.sent(),this._tuiCallEngine._delegate.onError(i,s),[3,5];case 5:return[2]}}))}))})),this._client.on("stream-subscribed",(function(t){return o(e,void 0,void 0,(function(){var e,n;return a(this,(function(r){return e=t.stream,n=e.getUserId(),c.default.log(C+".handleEvents - stream subscribed, _remoteStreams:"+this._remoteStreams+", userID:"+n+", video: "+e.hasVideo()),this._remoteStreams.push(e),this._tuiCallEngine.getCallType()===u.CALL_TYPE.VIDEO_CALL&&this.delegateVideoAvailableState(n,e.hasVideo()),(this.getCallType()===u.CALL_TYPE.AUDIO_CALL||this._tuiCallEngine.getCallType()===u.CALL_TYPE.VIDEO_CALL&&!e.hasVideo())&&this.playAudioStream(e),[2]}))}))})),this._client.on("stream-removed",(function(t){var n=t.stream,r=n.getId(),o=n.getUserId(),a="_trtc_calling_audio_call-"+o;if(c.default.log(C+".handleEvents - remote stream-removed, streamID:"+r+" type:"+n.getType()),e._tuiCallEngine._delegate.onUserAudioAvailable({userID:o,isAudioAvailable:!1}),e._tuiCallEngine._delegate.onUserVideoAvailable({userID:o,isVideoAvailable:!1}),n.stop(),n.close(),e._remoteStreams=e._remoteStreams.filter((function(e){return e.getId()!==r})),e.getCallType()===u.CALL_TYPE.AUDIO_CALL){var i=document.getElementById("_trtc_calling_layer"),s=document.getElementById(a);i&&s&&i.removeChild(s)}e._videoAvailableMap.delete(o)})),this._client.on("stream-updated",(function(t){var n=t.stream,r=n.getUserId(),o=n.getType(),a=n.hasAudio(),i=n.hasVideo();c.default.log(C+".handleEvents - stream-updated, type:"+o+" hasAudio:"+a+" hasVideo:"+i),e.querySubscribeSuccess(r)&&e.delegateVideoAvailableState(r,!!i)})),this._client.on("mute-audio",(function(t){c.default.debug(C+".handleEvents - "+t.userId+" mute audio"),e._tuiCallEngine._delegate.onUserAudioAvailable({userID:t.userId,isAudioAvailable:!1})})),this._client.on("unmute-audio",(function(t){c.default.debug(C+".handleEvents - "+t.userId+" unmute audio"),e._tuiCallEngine._delegate.onUserAudioAvailable({userID:t.userId,isAudioAvailable:!0})})),this._client.on("mute-video",(function(t){c.default.debug(C+".handleEvents - "+t.userId+" mute video"),e.querySubscribeSuccess(t.userId)&&e.delegateVideoAvailableState(t.userId,!1)})),this._client.on("unmute-video",(function(t){c.default.debug(C+".handleEvents - "+t.userId+" unmute video"),e.querySubscribeSuccess(t.userId)&&e.delegateVideoAvailableState(t.userId,!0)})),this._client.on("audio-volume",(function(t){c.default.debug(C+".handleEvents - "+t+" audio volume"),e._tuiCallEngine._delegate.onUserVoiceVolume(t.result)})),this._client.on("connection-state-changed",(function(e){c.default.log(C+".handleEvents - RtcClient state changed from "+e.prevState+" to "+e.state)}))},e.prototype.removeTRTCEvents=function(){this._client.off("*")},e.prototype.muteLocalAudio=function(){var e;null===(e=this._localStream)||void 0===e||e.muteAudio()},e.prototype.unMuteLocalAudio=function(){var e;null===(e=this._localStream)||void 0===e||e.unmuteAudio()},e.prototype.switchCallMode=function(e){return o(this,void 0,void 0,(function(){var t;return a(this,(function(n){switch(n.label){case 0:switch(c.default.log(C+".switchCallMode - type",e),t=this._localStream.getVideoTrack(),e){case u.CALL_TYPE.VIDEO_CALL:return[3,1];case u.CALL_TYPE.AUDIO_CALL:return[3,2]}return[3,6];case 1:try{this.removeTrack(t),this._tuiCallEngine.setCallType(u.CALL_TYPE.AUDIO_CALL),this._tuiCallEngine.setSwitchCallModeStatus(!0),this._tuiCallEngine._delegate.onCallTypeChanged(u.CALL_TYPE.VIDEO_CALL,u.CALL_TYPE.AUDIO_CALL)}catch(e){this._tuiCallEngine._delegate.onError(v.default.FAILURE_SWITCH_TO_AUDIO,g.ERROR_MESSAGE.FAILURE_SWITCH_TO_AUDIO)}return[3,6];case 2:return n.trys.push([2,4,,5]),[4,this.addTrack(t)];case 3:return n.sent(),this._tuiCallEngine.setCallType(u.CALL_TYPE.VIDEO_CALL),this._tuiCallEngine.setSwitchCallModeStatus(!0),this._tuiCallEngine._delegate.onCallTypeChanged(u.CALL_TYPE.AUDIO_CALL,u.CALL_TYPE.VIDEO_CALL),[3,5];case 4:return n.sent(),this._tuiCallEngine._delegate.onError(v.default.FAILURE_SWITCH_TO_VIDEO,g.ERROR_MESSAGE.FAILURE_SWITCH_TO_VIDEO),[3,5];case 5:return[3,6];case 6:return[2]}}))}))},e.prototype.removeTrack=function(e){return o(this,void 0,void 0,(function(){var t;return a(this,(function(n){switch(n.label){case 0:if(c.default.log(C+".removeTrack ",!!e),!e)return[3,4];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this._localStream.removeTrack(e)];case 2:return n.sent(),e.stop(),[3,4];case 3:throw t=n.sent(),c.default.error(C+".removeTrack - failed to removeTrack local stream "+t),new Error(t);case 4:return[2]}}))}))},e.prototype.addTrack=function(e){var t,n;return o(this,void 0,void 0,(function(){var r,o,i,s,l;return a(this,(function(a){switch(a.label){case 0:return c.default.log(C+".addTrack ",!e),e?[3,7]:(r={userId:this._tuiCallEngine.getUserID(),audio:!1,video:!0},(o=null===(t=null==this?void 0:this._localStream)||void 0===t?void 0:t.getCameraId())&&(r.cameraId=o),i=w.createStream(r),[4,this._setVideoProfile(i)]);case 1:return a.sent(),[4,i.initialize()];case 2:a.sent(),s=i.getVideoTrack(),a.label=3;case 3:return a.trys.push([3,6,,7]),s?[4,null===(n=this._localStream)||void 0===n?void 0:n.addTrack(s)]:[3,5];case 4:a.sent(),a.label=5;case 5:return[3,7];case 6:throw l=a.sent(),c.default.error(C+".addTrack - failed to addTrack local stream "+l),new Error(l);case 7:return[2]}}))}))},e.prototype.reset=function(){return o(this,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return this._isJoined?[4,this.leave()]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))},e.prototype.getMediaDevicesAuth=function(e){return o(this,void 0,void 0,(function(){var t,n,r,o;return a(this,(function(a){switch(a.label){case 0:if(!l.checkProtocols())throw new m.default({message:""+g.ERROR_MESSAGE.ERROR_HTTP,code:v.default.ERROR_HTTP});if(t=this._tuiCallEngine.getDevicePermission(),!e.audio)return[3,4];if(k.IS_IOS&&t.audio)return[2,t];a.label=1;case 1:return a.trys.push([1,3,,4]),[4,navigator.mediaDevices.getUserMedia({audio:!0,video:!1})];case 2:return r=a.sent(),this.releaseStream(r),this._tuiCallEngine.setDevicePermission(u.DEVICE_TYPE.AUDIO,!0),[3,4];case 3:throw n=a.sent(),this._tuiCallEngine.setDevicePermission(u.DEVICE_TYPE.AUDIO,!1),new Error(n);case 4:if(!e.video)return[3,8];if(k.IS_IOS&&t.video)return[2,t];a.label=5;case 5:return a.trys.push([5,7,,8]),[4,navigator.mediaDevices.getUserMedia({audio:!1,video:!0})];case 6:return r=a.sent(),this.releaseStream(r),this._tuiCallEngine.setDevicePermission(u.DEVICE_TYPE.VIDEO,!0),[3,8];case 7:if(o=a.sent(),this._tuiCallEngine.setDevicePermission(u.DEVICE_TYPE.VIDEO,!1),c.default.error(C+".getMediaDevicesAuth - failed to get user video steam - "+o),e.isThrowVideoError)throw new Error(o);return[3,8];case 8:return[2,this._tuiCallEngine.getDevicePermission()]}}))}))},e.prototype.enableAIVoice=function(e){return o(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return this._isAiNoiseSuppress=e,this._aiNoiseSuppressionProcessor?(c.default.info(C+".enableAIVoice "+e),e?[4,this._aiNoiseSuppressionProcessor.enable()]:[3,2]):[2];case 1:return t.sent(),[3,4];case 2:return[4,this._aiNoiseSuppressionProcessor.disable()];case 3:t.sent(),t.label=4;case 4:return[2]}}))}))},e.prototype.releaseStream=function(e){for(var t=e.getTracks(),n=0;n<t.length;n++)t[n].stop()},e.prototype._setVideoProfile=function(e,t){return o(this,void 0,void 0,(function(){var n;return a(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,7]),e?(t=t||this._tuiCallEngine.getVideoQuality(),e?[4,e.setVideoProfile(t)]:[3,2]):(c.default.warn(C+"._setVideoProfile - stream is empty"),[2]);case 1:r.sent(),r.label=2;case 2:return[3,7];case 3:return"OverconstrainedError"!==r.sent().name?[3,5]:(console.error("当前摄像头不支持该 profile"),[4,(n=w.createStream({video:!0,audio:!1})).initialize()]);case 4:return r.sent(),this._localStream.replaceTrack(n.getVideoTrack()),[3,6];case 5:console.error("当前浏览器不支持动态调用该接口"),r.label=6;case 6:return[3,7];case 7:return[2]}}))}))},e.prototype._setVideoRenderParams=function(e){return o(this,void 0,void 0,(function(){var t,n,r,o,i,s,l,u,p,f,h,m,v,g,_;return a(this,(function(y){switch(y.label){case 0:return y.trys.push([0,11,,12]),n=(t=e||{}).userID,r=t.objectFit,o=void 0===r?"":r,n&&!this._userIdDomMap.has(n)?(c.default.warn(C+"._setVideoRenderParams - failed the userID: "+n+" does not have a play node"),[2]):(i={},o!==M.NAME.CONTAIN&&o!==M.NAME.COVER&&o!==M.NAME.FILL||(i.objectFit=e.objectFit),d.isBoolean(e.muted)&&(i.muted=e.muted),d.isBoolean(e.mirror)&&(i.mirror=e.mirror),s=this._tuiCallEngine.getUserID(),n!==s&&n?[3,3]:(this._tuiCallEngine.setLocalPlayOptions(i),l=this._tuiCallEngine.getLocalPlayOptions(),v=this._userIdDomMap.get(s),this._localStream?[4,this._localStream.play(v,l)]:[3,2]));case 1:y.sent(),y.label=2;case 2:y.label=3;case 3:if(n)return[3,7];this._tuiCallEngine.setRemotePlayOptions(i),m=this._tuiCallEngine.getRemotePlayOptions(),u=(u=Array.from(this._userIdDomMap,(function(e){return e[0]}))).filter((function(e){return e!==s})),p=function(e){var t,n;return a(this,(function(r){switch(r.label){case 0:return t=f._userIdDomMap.get(u[e]),n=f._remoteStreams.find((function(t){return t.getUserId()===u[e]})),n?[4,n.play(t,m)]:[3,2];case 1:r.sent(),r.label=2;case 2:return[2]}}))},f=this,h=0,y.label=4;case 4:return h<u.length?[5,p(h)]:[3,7];case 5:y.sent(),y.label=6;case 6:return h++,[3,4];case 7:return n&&n!==s?(this._tuiCallEngine.setRemotePlayOptions(i),m=this._tuiCallEngine.getRemotePlayOptions(),v=this._userIdDomMap.get(n),g=this._remoteStreams.find((function(e){return e.getUserId()===n})),g?[4,g.play(v,m)]:[3,9]):[3,10];case 8:y.sent(),y.label=9;case 9:y.label=10;case 10:return[3,12];case 11:return _=y.sent(),c.default.warn(C+"._setVideoRenderParams - failed call stream.play error: "+_),[3,12];case 12:return[2]}}))}))},e}();t.default=I},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkProtocols=void 0,t.checkProtocols=function(){if(!window)return!1;if(!window.location)return!1;var e=window.location,t=e.protocol,n=e.hostname;return"http:"!==t||"localhost"===n||"127.0.0.1"===n}},function(e,t,n){"use strict";var r=n(3),o=n(18),a=n(37),i=n(24);function s(e){var t=new a(e),n=o(a.prototype.request,t);return r.extend(n,a.prototype,t),r.extend(n,t),n}var c=s(n(15));c.Axios=a,c.create=function(e){return s(i(c.defaults,e))},c.Cancel=n(25),c.CancelToken=n(52),c.isCancel=n(23),c.all=function(e){return Promise.all(e)},c.spread=n(53),c.isAxiosError=n(54),e.exports=c,e.exports.default=c},function(e,t,n){"use strict";var r=n(3),o=n(19),a=n(38),i=n(39),s=n(24),c=n(50),l=c.validators;function u(e){this.defaults=e,this.interceptors={request:new a,response:new a}}u.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&c.assertOptions(t,{silentJSONParsing:l.transitional(l.boolean,"1.0.0"),forcedJSONParsing:l.transitional(l.boolean,"1.0.0"),clarifyTimeoutError:l.transitional(l.boolean,"1.0.0")},!1);var n=[],r=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var o,a=[];if(this.interceptors.response.forEach((function(e){a.push(e.fulfilled,e.rejected)})),!r){var u=[i,void 0];for(Array.prototype.unshift.apply(u,n),u=u.concat(a),o=Promise.resolve(e);u.length;)o=o.then(u.shift(),u.shift());return o}for(var d=e;n.length;){var p=n.shift(),f=n.shift();try{d=p(d)}catch(e){f(e);break}}try{o=i(d)}catch(e){return Promise.reject(e)}for(;a.length;)o=o.then(a.shift(),a.shift());return o},u.prototype.getUri=function(e){return e=s(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){u.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){u.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}})),e.exports=u},function(e,t,n){"use strict";var r=n(3);function o(){this.handlers=[]}o.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},function(e,t,n){"use strict";var r=n(3),o=n(40),a=n(23),i=n(15);function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return s(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||i.adapter)(e).then((function(t){return s(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return a(t)||(s(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},function(e,t,n){"use strict";var r=n(3),o=n(15);e.exports=function(e,t,n){var a=this||o;return r.forEach(n,(function(n){e=n.call(a,e,t)})),e}},function(e,t){var n,r,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var c,l=[],u=!1,d=-1;function p(){u&&c&&(u=!1,c.length?l=c.concat(l):d=-1,l.length&&f())}function f(){if(!u){var e=s(p);u=!0;for(var t=l.length;t;){for(c=l,l=[];++d<t;)c&&c[d].run();d=-1,t=l.length}c=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function m(){}o.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];l.push(new h(e,t)),1!==l.length||u||s(f)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=m,o.addListener=m,o.once=m,o.off=m,o.removeListener=m,o.removeAllListeners=m,o.emit=m,o.prependListener=m,o.prependOnceListener=m,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){"use strict";var r=n(3);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},function(e,t,n){"use strict";var r=n(22);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},function(e,t,n){"use strict";var r=n(3);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,a,i){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(a)&&s.push("domain="+a),!0===i&&s.push("secure"),document.cookie=s.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(){}}},function(e,t,n){"use strict";var r=n(46),o=n(47);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var r=n(3),o=["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"];e.exports=function(e){var t,n,a,i={};return e?(r.forEach(e.split("\n"),(function(e){if(a=e.indexOf(":"),t=r.trim(e.substr(0,a)).toLowerCase(),n=r.trim(e.substr(a+1)),t){if(i[t]&&o.indexOf(t)>=0)return;i[t]="set-cookie"===t?(i[t]?i[t]:[]).concat([n]):i[t]?i[t]+", "+n:n}})),i):i}},function(e,t,n){"use strict";var r=n(3);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(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=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},function(e,t,n){"use strict";var r=n(51),o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var a={},i=r.version.split(".");function s(e,t){for(var n=t?t.split("."):i,r=e.split("."),o=0;o<3;o++){if(n[o]>r[o])return!0;if(n[o]<r[o])return!1}return!1}o.transitional=function(e,t,n){var o=t&&s(t);function i(e,t){return"[Axios v"+r.version+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,s){if(!1===e)throw new Error(i(r," has been removed in "+t));return o&&!a[r]&&(a[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}},e.exports={isOlderVersion:s,assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),o=r.length;o-- >0;){var a=r[o],i=t[a];if(i){var s=e[a],c=void 0===s||i(s,a,e);if(!0!==c)throw new TypeError("option "+a+" must be "+c)}else if(!0!==n)throw Error("Unknown option "+a)}},validators:o}},function(e){e.exports=JSON.parse('{"name":"axios","version":"0.21.4","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}]}')},function(e,t,n){"use strict";var r=n(25);function o(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 r(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=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)},o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}c((r=r.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(o=i.trys,!((o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},i=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},s=this&&this.__spreadArrays||function(){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 a=arguments[t],i=0,s=a.length;i<s;i++,o++)r[o]=a[i];return r};Object.defineProperty(t,"__esModule",{value:!0});var c=n(58),l=n(2),u=n(5),d="TSignalClient",p=n(0),f=n(1),h=function(){function e(e,t){this._tuiCallEngine=e,this._tsignaling=new c(t),this._tsignalingReady=!1,this._joined=!1,this._newInvitationData=null,this._resolveMap=new Map,this.addTSignalEvents()}return e.prototype.setTSignalingIsJoined=function(e){this._joined=e},e.prototype.getTSignalingIsJoined=function(){return this._joined},e.prototype.setLogLevel=function(e){this._tsignaling.setLogLevel(e)},e.prototype.addTSignalEvents=function(){var e=this._tsignaling;e.on(c.EVENT.SDK_READY,this.onSdkReady,this),e.on(c.EVENT.SDK_NOT_READY,this.onSdkNotReady,this),e.on(c.EVENT.NEW_INVITATION_RECEIVED,this.onNewInvitationReceived,this),e.on(c.EVENT.INVITEE_ACCEPTED,this.onInviteeAccepted,this),e.on(c.EVENT.INVITEE_REJECTED,this.onInviteeRejected,this),e.on(c.EVENT.INVITATION_CANCELLED,this.onInvitationCancelled,this),e.on(c.EVENT.INVITATION_TIMEOUT,this.onInvitationTimeout,this),e.on(c.EVENT.KICKED_OUT,this.onKickedOut,this),e.on(c.EVENT.NET_STATE_CHANGE,this.onNetStateChange,this),c.EVENT.MESSAGE_SENT_BY_ME&&e.on(c.EVENT.MESSAGE_SENT_BY_ME,this.onMessageSentByMe,this)},e.prototype.onSdkReady=function(e){this._tsignalingReady=!0,this._tuiCallEngine._delegate.onSdkReady(e);var t=this._resolveMap.get("login");t&&(t.resolve(t.value),this._resolveMap.delete("login"))},e.prototype.onSdkNotReady=function(){this._tsignalingReady=!1},e.prototype.onNewInvitationReceived=function(e){var t,n,r;return o(this,void 0,void 0,(function(){var o,i,s,c,h,m,v,g,_,y,b;return a(this,(function(a){switch(a.label){case 0:return o=this._tuiCallEngine.getCallStatus(),l.default.log(d+".onNewInvitationReceived - params:",e,"currentCallStatus:"+o),i=e.data,s=i.inviter,c=i.inviteeList,h=i.data,m=i.inviteID,v=i.groupID,g=JSON.parse(h),f.isCallSignaling(null==g?void 0:g.businessID)?(g.room_id||(g.room_id=null===(t=null==g?void 0:g.data)||void 0===t?void 0:t.room_id),_=(null===(n=null==g?void 0:g.data)||void 0===n?void 0:n.initialCallId)||"",this._tuiCallEngine.getUserID()===s?[2]:(b={inviter:s,inviteeList:c,inviteID:m,isGroupCall:y=!!v,inviteData:g,groupID:v,initialCallId:_,currentCallStatus:o,inCallUserIDs:(null==g?void 0:g.inCallUserIDs)||[]},(null===(r=null==g?void 0:g.data)||void 0===r?void 0:r.cmd)!==u.CMD_TYPE.HANG_UP?[3,2]:(l.default.log(d+".hangup - params:",s,g,this._tuiCallEngine.getHandledInviteeList(),this._tuiCallEngine.getUnHandledInviteeList(),o,y),o===u.CALL_STATUS.IDLE?[2]:[4,this.handleHangupSignal(b)]))):[2];case 1:return a.sent(),[2];case 2:return!v&&this.judgeSwitchCallMode(g)?(o!==u.CALL_STATUS.IDLE&&this._tuiCallEngine.getRoomID()===g.room_id&&(this.handleSwitchCallMode(m,g),this._tuiCallEngine.addAudioVideoSwitchIdList(m)),[2]):o===u.CALL_STATUS.IDLE?[3,4]:[4,this.reject({inviteID:m,callType:g.call_type,isBusy:!0})];case 3:return a.sent(),this._tuiCallEngine.getCallRecordReport().eventUploadNotSave({inviteID:_||m,callRole:p.NAME.INVITEE,eventType:p.NAME.IGNORE_CALL,roomID:g.room_id,mediaType:g.call_type,callType:v?p.NAME.GROUP:p.NAME.SINGLE}),[2];case 4:return this.handleInvitedSignal(b),[2]}}))}))},e.prototype.handleHangupSignal=function(e){return o(this,void 0,void 0,(function(){var t,n,o,i,s,c,l,d,f,h;return a(this,(function(a){switch(a.label){case 0:if(t=e.inviter,n=e.inviteData,o=e.currentCallStatus,i=e.inviteeList,s=this._tuiCallEngine.isGroupCall(),c=this._tuiCallEngine.isInviter(),o===u.CALL_STATUS.CALLING){if(d=this._tuiCallEngine.getHandledInviteeList(),-1!==(f=this._tuiCallEngine.getUnHandledInviteeList()).indexOf(t)&&this._tuiCallEngine.deleteUnHandledInviteeList([t]),-1===d.indexOf(t))return[2]}else if(this._tuiCallEngine.deleteHandledInviteeList([t]),-1===(d=this._tuiCallEngine.getHandledInviteeList()).indexOf(t)&&d.length>1)return[2];return l=this._tuiCallEngine.generateCallEndData({totalTime:n.call_end||0}),s?[3,2]:[4,this._tuiCallEngine._resetTUICallEngine()];case 1:return a.sent(),this._tuiCallEngine._delegate.onCallEnd(l),[3,10];case 2:return this._tuiCallEngine.deleteHandledInviteeList([t]),d=this._tuiCallEngine.getHandledInviteeList(),f=this._tuiCallEngine.getUnHandledInviteeList(),c?1!==d.length||0!==f.length?[3,4]:[4,this._tuiCallEngine._resetTUICallEngine()]:[3,5];case 3:a.sent(),this._tuiCallEngine._delegate.onCallEnd(l),a.label=4;case 4:return[3,10];case 5:return o!==u.CALL_STATUS.CALLING?[3,8]:(-1!==i.indexOf(this._tuiCallEngine.getUserID())&&this._tuiCallEngine._delegate.onUserLeave(t),0!==d.length||1!==f.length?[3,7]:(h=this._tuiCallEngine.generateEventData(),[4,this._tuiCallEngine._resetTUICallEngine()]));case 6:a.sent(),this._tuiCallEngine._delegate.onCallingCancel(r(r({userID:t},h),{reason:p.NAME.NORMAL})),a.label=7;case 7:return[3,10];case 8:return 1!==d.length||0!==f.length?[3,10]:[4,this._tuiCallEngine._resetTUICallEngine()];case 9:a.sent(),this._tuiCallEngine._delegate.onCallEnd(l),a.label=10;case 10:return[2]}}))}))},e.prototype.handleInvitedSignal=function(e){return o(this,void 0,void 0,(function(){var t,n,o,i,c,l,d,f,h,m,v,g,_,y;return a(this,(function(a){return t=e.inviter,n=e.inviteeList,o=e.isGroupCall,i=e.groupID,c=e.inviteID,l=e.inviteData,d=e.inCallUserIDs,f=void 0===d?[]:d,h=e.initialCallId,m=void 0===h?"":h,this._tuiCallEngine.changeCallStatus(u.CALL_STATUS.CALLING),this._tuiCallEngine.setInviterID(t),this._tuiCallEngine.setInviteeList(n),this._tuiCallEngine.setRoomID(l.room_id),this._tuiCallEngine.setCallType(l.call_type),this._tuiCallEngine.addUnHandledInviteeList(s(n,f)),this._tuiCallEngine.addHandledInviteeList([t]),this._tuiCallEngine.addAcceptedUserList(c,[t]),this._tuiCallEngine.setInitialCallId(m),o&&(this._tuiCallEngine.setIsGroupCall(o),this._tuiCallEngine.setGroupID(i)),this._tuiCallEngine.addInviterInviteId(c,s([t],n)),v=f.filter((function(e){return-1===n.indexOf(e)})),this._newInvitationData={sponsor:t,userIDList:s(n,v),isFromGroup:o,inviteID:c,groupID:i,inviteData:{version:l.version,callType:l.call_type,roomID:l.room_id},userData:l.extInfo,calleeIdList:n},g=this._tuiCallEngine.getCallDataReport().getCallData(),g=r(r({},g),{roomID:l.room_id,inviteID:c,callRole:u.CALL_ROLE.INVITEE,callType:l.call_type,inviteeList:n,callScene:i?p.NAME.GROUP_CALL:p.NAME.SINGLE_CALL}),_=this._tuiCallEngine.generateEventData()||{},this._tuiCallEngine.getCallDataReport().setCallData(g),y={eventType:p.NAME.RECEIVE_CALL,callType:i?p.NAME.GROUP:p.NAME.SINGLE,mediaType:l.call_type,callRole:p.NAME.INVITEE,userID:this._tuiCallEngine.getUserID(),roomID:l.room_id,inviteID:m||c},this._tuiCallEngine.getCallRecordReport().eventUpload(y),this._tuiCallEngine._delegate.onInvited(r(r({},_),this._newInvitationData)),[2]}))}))},e.prototype.getInviteData=function(){return this._newInvitationData},e.prototype.setInviteData=function(e){this._newInvitationData=e},e.prototype.handleSwitchCallMode=function(e,t){var n={inviteID:e,callType:t.call_type,switch_to_audio_call:null},r={cmd:u.CMD_TYPE.SWITCH_TO_VIDEO};t.call_type===u.CALL_TYPE.VIDEO_CALL?(n.switch_to_audio_call=u.CMD_TYPE.SWITCH_TO_AUDIO_CALL,r.cmd=u.CMD_TYPE.SWITCH_TO_AUDIO):delete n.switch_to_audio_call;var o=this._tuiCallEngine.getCallStatus();if(this.accept(n,r),o===u.CALL_STATUS.CALLING){var a=t.call_type===u.CALL_TYPE.VIDEO_CALL?u.CALL_TYPE.AUDIO_CALL:u.CALL_TYPE.VIDEO_CALL;this._tuiCallEngine._delegate.onCallTypeChanged(t.call_type,a),this._newInvitationData.inviteData.callType=a,this._tuiCallEngine.setSwitchCallModeStatus(!1)}else o===u.CALL_STATUS.CONNECTED&&(this._tuiCallEngine.setSwitchCallModeStatus(!1),this._tuiCallEngine._trtcClient.switchCallMode(this._tuiCallEngine.getCallType()))},e.prototype.judgeSwitchCallMode=function(e){var t=e.switch_to_audio_call&&e.switch_to_audio_call===u.CMD_TYPE.SWITCH_TO_AUDIO_CALL||e.data&&e.data.cmd===u.CMD_TYPE.SWITCH_TO_AUDIO||e.data&&e.data.cmd===u.CMD_TYPE.SWITCH_TO_VIDEO;return l.default.log(d+".switchCallMode:",e,"isSwitchCallMode-"+t),t},e.prototype.onInviteeAccepted=function(e){return o(this,void 0,void 0,(function(){var t,n,o,i,s;return a(this,(function(a){switch(a.label){case 0:return l.default.log(d+".onInviteeAccepted - params:",e),t=JSON.parse(e.data.data),f.isCallSignaling(null==t?void 0:t.businessID)?(n=e.data.invitee,o=e.data.inviteID,-1===this._tuiCallEngine.getTotalInviterInviteIdList().indexOf(o)?[2]:this._tuiCallEngine.isGroupCall()||!this.judgeSwitchCallMode(t)||this._tuiCallEngine.getSwitchCallModeStatus()?(i=this._tuiCallEngine.getCallStatus(),n!==this._tuiCallEngine.getUserID()||i!==u.CALL_STATUS.CALLING?[3,2]:(s=this._tuiCallEngine.generateEventData(),[4,this._tuiCallEngine._resetTUICallEngine()])):(this._tuiCallEngine._trtcClient.switchCallMode(this._tuiCallEngine.getCallType()),[2])):[2];case 1:return a.sent(),this._tuiCallEngine._delegate.onCallingCancel(r({userID:n},s)),[2];case 2:return i===u.CALL_STATUS.CALLING&&this._tuiCallEngine.isInviter()&&(s=this._tuiCallEngine.generateEventData(),this._tuiCallEngine._delegate.onCallBegin(s)),this._tuiCallEngine.isInviter()&&this._tuiCallEngine.changeCallStatus(u.CALL_STATUS.CONNECTED),this._tuiCallEngine._delegate.onUserAccept(n),this._tuiCallEngine.addHandledInviteeList([n]),this._tuiCallEngine.deleteUnHandledInviteeList([n]),this._tuiCallEngine.addAcceptedUserList(o,[n]),[2]}}))}))},e.prototype.onInviteeRejected=function(e){var t;return o(this,void 0,void 0,(function(){var n,o,i,s,c,h,m,v,g,_,y,b,O;return a(this,(function(a){switch(a.label){case 0:return l.default.log(d+".onInviteeRejected - params:",e),n=e.data.inviteID,o=JSON.parse(e.data.data),f.isCallSignaling(null==o?void 0:o.businessID)?this._tuiCallEngine.isGroupCall()||this._tuiCallEngine.getSwitchCallModeStatus()||-1===this._tuiCallEngine.getAudioVideoSwitchIdList().indexOf(n)?(i=e.data.invitee,s=e.data.inviter,c=this._tuiCallEngine.getUserID(),(h=this._tuiCallEngine.getCallStatus())===u.CALL_STATUS.IDLE?[2]:-1===this._tuiCallEngine.getInviterInviteIdList().indexOf(n)?(this._tuiCallEngine.deleteUnHandledInviteeList([i]),[2]):(m=this._tuiCallEngine.generateEventData(),v=r({userID:i},m),c!==i||h!==u.CALL_STATUS.CALLING?[3,2]:[4,this._tuiCallEngine._resetTUICallEngine()])):(l.default.log(d+".onInviteeRejected - Audio and video switching is not available"),this._tuiCallEngine.setSwitchCallModeStatus(!0),[2]):[2];case 1:return a.sent(),this._tuiCallEngine._delegate.onCallingCancel(v),[2];case 2:return g=this._tuiCallEngine.isGroupCall(),_=this._tuiCallEngine.isInviter(),this._tuiCallEngine.deleteUnHandledInviteeList([i]),y=this._tuiCallEngine.getUnHandledInviteeList(),b=this._tuiCallEngine.getHandledInviteeList(),h===u.CALL_STATUS.CONNECTED&&-1!==b.indexOf(i)?[2]:"line_busy"===o.line_busy||""===o.line_busy||(null===(t=null==o?void 0:o.data)||void 0===t?void 0:t.message)&&"lineBusy"===o.data.message?g?[3,4]:[4,this._tuiCallEngine._resetTUICallEngine()]:[3,7];case 3:return a.sent(),this._tuiCallEngine._delegate.onCallingCancel(r(r({},v),{reason:p.NAME.BUSYLINE})),[3,6];case 4:return 0!==y.length||1!==b.length?[3,6]:[4,this._tuiCallEngine._resetTUICallEngine()];case 5:a.sent(),this._tuiCallEngine._delegate.onCallingCancel(r(r({},v),{reason:p.NAME.BUSYLINE})),a.label=6;case 6:return s===this._tuiCallEngine.getInviterID()&&this._tuiCallEngine._delegate.onLineBusy(i),[3,18];case 7:return g?[3,9]:[4,this._tuiCallEngine._resetTUICallEngine()];case 8:return a.sent(),this._tuiCallEngine._delegate.onCallingCancel(r(r({},v),{reason:p.NAME.REJECT})),this._tuiCallEngine._delegate.onReject(i),[3,18];case 9:return h!==u.CALL_STATUS.CALLING?[3,15]:_?0!==y.length||1!==b.length?[3,11]:[4,this._tuiCallEngine._resetTUICallEngine()]:[3,12];case 10:a.sent(),this._tuiCallEngine._delegate.onCallingCancel(r(r({},v),{reason:p.NAME.REJECT})),a.label=11;case 11:return[3,14];case 12:return 1!==y.length||0!==b.length?[3,14]:[4,this._tuiCallEngine._resetTUICallEngine()];case 13:a.sent(),this._tuiCallEngine._delegate.onCallingCancel(r(r({},v),{reason:p.NAME.REJECT})),a.label=14;case 14:return[3,17];case 15:return 0!==y.length||1!==b.length?[3,17]:(O=this._tuiCallEngine.generateCallEndData({userId:i}),[4,this._tuiCallEngine._resetTUICallEngine()]);case 16:a.sent(),this._tuiCallEngine._delegate.onCallEnd(O),a.label=17;case 17:this._tuiCallEngine._delegate.onReject(i),a.label=18;case 18:return[2]}}))}))},e.prototype.onInvitationCancelled=function(e){return o(this,void 0,void 0,(function(){var t,n;return a(this,(function(o){switch(o.label){case 0:return l.default.log(d+".onInvitationCancelled - params:",e,this._tuiCallEngine.getCallStatus()),t=JSON.parse(e.data.data),f.isCallSignaling(null==t?void 0:t.businessID)?this._tuiCallEngine.getCallStatus()===u.CALL_STATUS.IDLE||-1===this._tuiCallEngine.getInviterInviteIdList().indexOf(e.data.inviteID)?[2]:(n=this._tuiCallEngine.generateEventData(),[4,this._tuiCallEngine._resetTUICallEngine()]):[2];case 1:return o.sent(),this._tuiCallEngine._delegate.onCallingCancel(r(r({userID:this._tuiCallEngine.getUserID()},n),{reason:p.NAME.NORMAL})),[2]}}))}))},e.prototype.onInvitationTimeout=function(e){var t;return o(this,void 0,void 0,(function(){var n,o,i,s,c,f,h,m,v,g,_,y,b,O,M;return a(this,(function(a){switch(a.label){case 0:return n=e.data,o=n.inviter,i=n.inviteeList,s=void 0===i?[]:i,c=n.inviteID,f=this._tuiCallEngine.getUserID(),h=this._tuiCallEngine.isGroupCall(),m=this._tuiCallEngine.isInviter(),v=this._tuiCallEngine.getCallStatus(),this._tuiCallEngine.deleteUnHandledInviteeList(s),l.default.log(d+".onInvitationTimeout - params:",e,"currentUserID:"+f+" isInviter:"+m+" isGroupCall:"+h+" currentCallStatus:"+v+" inviteID:"+(null===(t=null==this?void 0:this._newInvitationData)||void 0===t?void 0:t.inviteID)),-1===this._tuiCallEngine.getInviterInviteIdList().indexOf(c)||v===u.CALL_STATUS.IDLE?[2]:(g=this._tuiCallEngine.getHandledInviteeList(),_=this._tuiCallEngine.getUnHandledInviteeList(),y=r(r({},this._tuiCallEngine.generateEventData()),{reason:p.NAME.TIMEOUT}),h?[3,2]:[4,this._tuiCallEngine._resetTUICallEngine()]);case 1:return a.sent(),m?(this._tuiCallEngine._delegate.onCallingCancel(r({userID:s[0]},y)),this._tuiCallEngine._delegate.onNoResp(o,s)):(this._tuiCallEngine._delegate.onCallingCancel(r({userID:s[0]||""},y)),b=this._tuiCallEngine.getCallRecordReport().getCallRecordData().head,this._tuiCallEngine.getCallRecordReport().eventUpload(r(r({},b),{eventType:p.NAME.NOT_ANSWER_CALL,inviteID:this._tuiCallEngine.getInitialCallId()}))),[3,12];case 2:return v!==u.CALL_STATUS.CALLING?[3,10]:m?0!==_.length?[3,4]:[4,this._tuiCallEngine._resetTUICallEngine()]:[3,5];case 3:a.sent(),this._tuiCallEngine._delegate.onCallingCancel(r({userID:s.join(",")},y)),a.label=4;case 4:return this._tuiCallEngine._delegate.onNoResp(o,s),[3,9];case 5:return-1!==s.indexOf(f)?[3,6]:(this._tuiCallEngine._delegate.onNoResp(o,s),[3,8]);case 6:return[4,this._tuiCallEngine._resetTUICallEngine()];case 7:a.sent(),this._tuiCallEngine._delegate.onCallingCancel(r({userID:f},y)),a.label=8;case 8:O=this._tuiCallEngine.getCallRecordReport().getCallRecordData().head,this._tuiCallEngine.getCallRecordReport().eventUpload(r(r({},O),{eventType:p.NAME.NOT_ANSWER_CALL,inviteID:this._tuiCallEngine.getInitialCallId()})),a.label=9;case 9:return[3,12];case 10:return this._tuiCallEngine._delegate.onNoResp(o,s),1!==g.length||0!==_.length?[3,12]:(M=this._tuiCallEngine.generateCallEndData(),[4,this._tuiCallEngine._resetTUICallEngine()]);case 11:a.sent(),this._tuiCallEngine._delegate.onCallEnd(M),a.label=12;case 12:return[2]}}))}))},e.prototype.onKickedOut=function(){return o(this,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return l.default.log(d+".onKickedOut"),this._tuiCallEngine.setIsLogin(!1),this._tuiCallEngine._trtcClient.removeTRTCEvents(),[4,this._tuiCallEngine._resetTUICallEngine()];case 1:return e.sent(),this._tuiCallEngine._delegate.onKickedOut(),[2]}}))}))},e.prototype.onNetStateChange=function(){l.default.debug(d+".onNetStateChange")},e.prototype.onMessageSentByMe=function(e){this._tuiCallEngine._delegate.onMessageSentByMe(e)},e.prototype.login=function(e){return o(this,void 0,void 0,(function(){var t=this;return a(this,(function(n){return[2,new Promise((function(n,r){t._tsignaling.login(e).then((function(e){var r;if(null===(r=e.data)||void 0===r?void 0:r.repeatLogin)return l.default.warn(d+".login - success: The TIM login status has been inherited into Call. IM 登录状态已成功被 Call 继承。"),void n();t._resolveMap.set("login",{resolve:n,value:e})})).catch((function(e){r(e)}))}))]}))}))},e.prototype.logout=function(){return o(this,void 0,void 0,(function(){return a(this,(function(e){return this._joined=!1,[2,this._tsignaling.logout()]}))}))},e.prototype.invite=function(e){return o(this,void 0,void 0,(function(){var t,n,o,i,s,c,l,u,d;return a(this,(function(a){switch(a.label){case 0:return t=e.userID,n=e.type,o=e.roomID,i=e.timeout,s=e.offlinePushInfo,c=e.userIDList,l=e.userData,u=void 0===l?"":l,[4,this._tsignaling.invite({userID:t,data:JSON.stringify(this.handleNewSignaling({version:0,call_type:n,room_id:o},{userIDs:c},u)),timeout:i,offlinePushInfo:s})];case 1:return d=a.sent(),[2,r(r({},d),{roomID:o,userID:t})]}}))}))},e.prototype.inviteInGroup=function(e){return o(this,void 0,void 0,(function(){var t,n,o,i,s,c,l,u,d,p,f,h;return a(this,(function(a){switch(a.label){case 0:return t=e.groupID,n=e.userIDList,o=e.roomID,i=e.type,s=e.timeout,c=e.offlinePushInfo,l=e.inCallUserIDs,u=e.userData,d=void 0===u?"":u,p=e.initialCallId,f=void 0===p?"":p,[4,this._tsignaling.inviteInGroup({groupID:t,inviteeList:n,data:JSON.stringify(this.handleNewSignaling({version:0,call_type:i,room_id:o,inCallUserIDs:l},{initialCallId:f},d)),timeout:s,offlinePushInfo:c})];case 1:return h=a.sent(),[2,r(r({},h),{roomID:o,groupID:t})]}}))}))},e.prototype.hangup=function(e){return o(this,void 0,void 0,(function(){var t,n,r,o,i,s,c,p;return a(this,(function(a){switch(a.label){case 0:return l.default.log(d+".hangup - params:",e),t=e.userIDList,n=e.callType,r=e.callEnd,i={version:0,call_type:n,call_end:o=void 0===r?0:r},s={cmd:u.CMD_TYPE.HANG_UP},c=JSON.stringify(this.handleNewSignaling(i,s)),this._tuiCallEngine.isGroupCall()&&this._tuiCallEngine.getGroupID()?[4,this._tsignaling.inviteInGroup({inviteeList:t,groupID:this._tuiCallEngine.getGroupID(),data:c,timeout:0})]:[3,2];case 1:return a.sent(),[3,4];case 2:return[4,this._tsignaling.invite({userID:t[0],data:c,timeout:0})];case 3:a.sent(),a.label=4;case 4:return this._joined=!1,p=this._tuiCallEngine.generateCallEndData({callMediaType:n,totalTime:o}),this._tuiCallEngine._delegate.onCallEnd(p),[2]}}))}))},e.prototype.accept=function(e,t){return o(this,void 0,void 0,(function(){var n,o,s;return a(this,(function(a){switch(a.label){case 0:return n=e.inviteID,o=e.callType,s=i(e,["inviteID","callType"]),[4,this._tsignaling.accept({inviteID:n,data:JSON.stringify(this.handleNewSignaling(r({version:0,call_type:o},s),t))})];case 1:return[2,a.sent()]}}))}))},e.prototype.reject=function(e){return o(this,void 0,void 0,(function(){var t,n,r,o;return a(this,(function(a){return t=e.inviteID,n=e.callType,r=e.isBusy,o={version:0,call_type:n},r&&(o.line_busy="line_busy"),[2,this._tsignaling.reject({inviteID:t,data:JSON.stringify(this.handleNewSignaling(o,{message:r?"lineBusy":""}))})]}))}))},e.prototype.cancel=function(e){return o(this,void 0,void 0,(function(){var t,n;return a(this,(function(r){return t=e.inviteID,n=JSON.stringify(this.handleNewSignaling({version:4,businessID:p.NAME.AV_CALL,call_type:this._tuiCallEngine.getCallType()})),[2,this._tsignaling.cancel({inviteID:t,data:n})]}))}))},e.prototype.resetJoined=function(){this._joined=!1},e.prototype.switchCallMode=function(e){return o(this,void 0,void 0,(function(){var t,n,r,o,i,s,c,l;return a(this,(function(a){switch(a.label){case 0:return t=e.userID,n=e.callType,r=e.roomID,o=e.timeout,i=e.mode,s={version:0,call_type:n,room_id:r,switch_to_audio_call:null},c={cmd:u.CMD_TYPE.SWITCH_TO_VIDEO},i===u.MODE_TYPE.AUDIO?(s.switch_to_audio_call=u.CMD_TYPE.SWITCH_TO_AUDIO_CALL,c.cmd=u.CMD_TYPE.SWITCH_TO_AUDIO):delete s.switch_to_audio_call,[4,this._tsignaling.invite({userID:t,data:JSON.stringify(this.handleNewSignaling(s,c)),timeout:o})];case 1:return(l=a.sent()).inviteID&&this._tuiCallEngine.addAudioVideoSwitchIdList(l.inviteID),[2]}}))}))},e.prototype.handleNewSignaling=function(e,t,n){return r(r({extInfo:n||""},e),{version:4,businessID:p.NAME.AV_CALL,platform:"Web",data:r({cmd:u.CMD_TYPE_LIST[e.call_type],room_id:e.room_id,message:""},t)})},e}();t.default=h},function(e,t){e.exports=r},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=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)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(12),a=n(2),i=n(10),s=n(11),c=n(13),l="TUICallObserver",u=function(){function e(e){this._eventEmitter=e,this._eventStatController=new c.default,i.default.bindController(this._eventStatController)}return e.prototype._setInterfaceUpLoad=function(e){return a.default.time(e),new i.default(e)},e.prototype.onError=function(e,t){a.default.debug(l+".onError code:"+e+" msg:"+t),this._eventEmitter.emit(o.TUICallEvent.ERROR,{code:e,msg:t}),this._setInterfaceUpLoad(s.default.ERROR).setText("").setEnd()},e.prototype.onSdkReady=function(e){a.default.debug(l+".onSdkReady params:"+e),this._eventEmitter.emit(o.TUICallEvent.SDK_READY,e),this._setInterfaceUpLoad(s.default.SDK_READY).setText("").setEnd()},e.prototype.onInvited=function(e){a.default.debug(l+".onInvited params:",e);var t=e.sponsor,n=e.userIDList,i=e.isFromGroup,c=e.inviteData,u=e.inviteID,d=e.userData,p=void 0===d?"":d,f=e.calleeIdList,h=e.callID,m=e.roomID,v=e.callMediaType,g=e.callRole,_={callID:h,calleeIdList:f,groupID:e.groupID,callMediaType:v,roomID:m,callRole:g,userData:p},y=r({sponsor:t,userIDList:n,isFromGroup:i,inviteData:c,inviteID:u},_);this._eventEmitter.emit(o.TUICallEvent.INVITED,y),this._eventEmitter.emit(o.TUICallEvent.ON_CALL_RECEIVED,_),this._setInterfaceUpLoad(s.default.INVITED).setText("TUICallEvent.INVITED emitted").setEnd()},e.prototype.onUserAccept=function(e){a.default.debug(l+".onUserAccept userID:"+e),this._eventEmitter.emit(o.TUICallEvent.USER_ACCEPT,{userID:e})},e.prototype.onCallBegin=function(e){a.default.debug(l+".onCallBegin params:"+JSON.stringify(e)),this._eventEmitter.emit(o.TUICallEvent.ON_CALL_BEGIN,e)},e.prototype.onUserEnter=function(e){a.default.debug(l+".onUserEnter userID:"+e),this._eventEmitter.emit(o.TUICallEvent.USER_ENTER,{userID:e}),this._setInterfaceUpLoad(s.default.USER_ENTER).setText("TUICallEvent.USER_ENTER emitted").setEnd()},e.prototype.onUserLeave=function(e){a.default.debug(l+".onUserLeave userID:"+e),this._eventEmitter.emit(o.TUICallEvent.USER_LEAVE,{userID:e}),this._setInterfaceUpLoad(s.default.USER_LEAVE).setText("TUICallEvent.USER_LEAVE emitted").setEnd()},e.prototype.onReject=function(e){a.default.debug(l+".onReject userID:"+e),this._eventEmitter.emit(o.TUICallEvent.REJECT,{userID:e}),this._setInterfaceUpLoad(s.default.REJECT).setText("TUICallEvent.REJECT emitted").setEnd()},e.prototype.onNoResp=function(e,t){a.default.debug(l+".onNoResp userIDList:",e,t),this._eventEmitter.emit(o.TUICallEvent.NO_RESP,{sponsor:e,userIDList:t}),this._setInterfaceUpLoad(s.default.NO_RESP).setText("TUICallEvent.NO_RESP emitted").setEnd()},e.prototype.onLineBusy=function(e){a.default.debug(l+".onLineBusy userID:"+e),this._eventEmitter.emit(o.TUICallEvent.LINE_BUSY,{userID:e}),this._setInterfaceUpLoad(s.default.LINE_BUSY).setText("TUICallEvent.LINE_BUSY emitted").setEnd()},e.prototype.onCallingCancel=function(e,t){void 0===t&&(t=""),a.default.debug(l+".onCallingCancel ",e),this._eventEmitter.emit(o.TUICallEvent.CALLING_CANCEL,e),this._eventEmitter.emit(o.TUICallEvent.ON_CALL_CANCELED,e),this._setInterfaceUpLoad(s.default.CALLING_CANCEL).setText("TUICallEvent.CALLING_CANCEL emitted").setEnd()},e.prototype.onKickedOut=function(){a.default.debug(l+".onKickedOut"),this._eventEmitter.emit(o.TUICallEvent.KICKED_OUT,{}),this._setInterfaceUpLoad(s.default.KICKED_OUT).setText("TUICallEvent.KICKED_OUT emitted").setEnd()},e.prototype.onCallingTimeout=function(e,t){a.default.debug(l+".onCallingTimeout userIDList:",t),this._eventEmitter.emit(o.TUICallEvent.CALLING_TIMEOUT,{sponsor:e,userIDList:t}),this._setInterfaceUpLoad(s.default.CALLING_TIMEOUT).setText("TUICallEvent.CALLING_TIMEOUT emitted").setEnd()},e.prototype.onCallEnd=function(e){a.default.debug(l+".onCallEnd params:"+e),this._eventEmitter.emit(o.TUICallEvent.CALLING_END,r(r({},e),{callEnd:e.totalTime})),this._setInterfaceUpLoad(s.default.CALLING_END).setText("TUICallEvent.CALLING_END emitted").setEnd()},e.prototype.onUserVideoAvailable=function(e){a.default.debug(l+".onUserVideoAvailable params:",e);var t=e.userID,n=e.isVideoAvailable;this._eventEmitter.emit(o.TUICallEvent.USER_VIDEO_AVAILABLE,{userID:t,isVideoAvailable:n});var r="TUICallEvent.USER_VIDEO_AVAILABLE emitted, userID: "+t+", video: "+n;this._setInterfaceUpLoad(s.default.USER_VIDEO_AVAILABLE).setText(r).setEnd()},e.prototype.onUserAudioAvailable=function(e){a.default.debug(l+".onUserAudioAvailable params:",e);var t=e.userID,n=e.isAudioAvailable;this._eventEmitter.emit(o.TUICallEvent.USER_AUDIO_AVAILABLE,{userID:t,isAudioAvailable:n});var r="TUICallEvent.USER_AUDIO_AVAILABLE emitted, userID: "+t+", mic: "+n;this._setInterfaceUpLoad(s.default.USER_AUDIO_AVAILABLE).setText(r).setEnd()},e.prototype.onUserVoiceVolume=function(e){this._eventEmitter.emit(o.TUICallEvent.USER_VOICE_VOLUME,{volumeMap:e}),this._setInterfaceUpLoad(s.default.USER_VOICE_VOLUME).setText("TUICallEvent.USER_VOICE_VOLUME emitted").setEnd()},e.prototype.onGroupCallInviteeListUpdate=function(e){this._eventEmitter.emit(o.TUICallEvent.GROUP_CALL_INVITEE_LIST_UPDATE,{userIDList:e}),this._setInterfaceUpLoad(s.default.GROUP_CALL_INVITEE_LIST_UPDATE).setText("TUICallEvent.GROUP_CALL_INVITEE_LIST_UPDATE emitted").setEnd()},e.prototype.onCallTypeChanged=function(e,t){this._eventEmitter.emit(o.TUICallEvent.CALL_TYPE_CHANGED,{oldCallType:e,newCallType:t}),this._setInterfaceUpLoad(s.default.CALL_TYPE_CHANGED).setText("TUICallEvent.CALL_TYPE_CHANGED "+t).setEnd()},e.prototype.onDeviceUpdated=function(e,t,n,r){this._eventEmitter.emit(o.TUICallEvent.DEVICED_UPDATED,{microphoneList:e,cameraList:t,currentMicrophone:n,currentCamera:r}),this._setInterfaceUpLoad(s.default.DEVICED_UPDATED).setText("TUICallEvent.GROUP_CALL_INVITEE_LIST_UPDATE emitted").setEnd()},e.prototype.onMessageSentByMe=function(e){this._eventEmitter.emit(o.TUICallEvent.MESSAGE_SENT_BY_ME,e)},e}();t.default=u},function(e,t,n){"use strict";n.r(t);var r=n(2);const o="none",a="online",i=function(){let e=window.location.protocol;return["http:","https:"].indexOf(e)<0&&(e="http:"),e};t.default=class{constructor(){this._networkType="",this.maxWaitTime=3e3}start(){this._networkType=a}_onNetworkStatusChange(e){this._networkType=e.networkType,e.isConnected?r.default.info("NetMonitor networkType:"+e.networkType):r.default.warn("NetMonitor no network, please check!")}probe(){return new Promise(e=>{if(window&&window.fetch)fetch(`${i()}//webim-1252463788.file.myqcloud.com/assets/test/speed.xml?random=${Math.random()}`).then(t=>{t.ok?e([!0,a]):e([!1,o])}).catch(()=>{e([!1,o])});else{const t=new XMLHttpRequest,n=setTimeout(()=>{r.default.warn("NetMonitor fetch timeout. Probably no network, please check!"),t.abort(),this._networkType=o,e([!1,o])},this.maxWaitTime);t.onreadystatechange=function(){4===t.readyState&&(clearTimeout(n),200===t.status||304===t.status?(this._networkType=a,e([!0,a])):(r.default.warn(`NetMonitor fetch status:${t.status}. Probably no network, please check!`),this._networkType=o,e([!1,o])))},t.open("GET",`${i()}//webim-1252463788.file.myqcloud.com/assets/test/speed.xml?random=${Math.random()}`),t.send()}})}getNetworkType(){return this._networkType}reset(){this._networkType=""}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.apiCallQueue=t.avoidRepeatedCall=t.statusValidate=t.deviceValidate=t.businessValidate=t.paramValidate=t.VALIDATE_PARAMS=void 0;var r=n(62);Object.defineProperty(t,"VALIDATE_PARAMS",{enumerable:!0,get:function(){return r.VALIDATE_PARAMS}});var o=n(63);Object.defineProperty(t,"paramValidate",{enumerable:!0,get:function(){return o.paramValidate}});var a=n(26);Object.defineProperty(t,"businessValidate",{enumerable:!0,get:function(){return a.businessValidate}});var i=n(64);Object.defineProperty(t,"deviceValidate",{enumerable:!0,get:function(){return i.deviceValidate}});var s=n(65);Object.defineProperty(t,"statusValidate",{enumerable:!0,get:function(){return s.statusValidate}});var c=n(66);Object.defineProperty(t,"avoidRepeatedCall",{enumerable:!0,get:function(){return c.avoidRepeatedCall}});var l=n(67);Object.defineProperty(t,"apiCallQueue",{enumerable:!0,get:function(){return l.apiCallQueue}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VALIDATE_PARAMS=void 0;var r=n(14),o=n(0);t.VALIDATE_PARAMS={createInstance:{SDKAppID:{required:!0,rules:[o.NAME.NUMBER],allowEmpty:!1},tim:{required:!1,rules:[o.NAME.OBJECT],allowEmpty:!0}},login:{userID:{required:!0,rules:[o.NAME.STRING],allowEmpty:!1},userSig:{required:!0,rules:[o.NAME.STRING],allowEmpty:!1}},call:{userID:{required:!0,rules:[o.NAME.STRING],allowEmpty:!1},type:{required:!0,rules:[o.NAME.NUMBER],range:[1,2],allowEmpty:!1},roomID:{required:!1,rules:[o.NAME.NUMBER],range:"1~"+o.MAX_NUMBER_ROOM_ID,allowEmpty:!1},timeout:{required:!1,rules:[o.NAME.NUMBER],allowEmpty:!1}},groupCall:{userIDList:{required:!0,rules:[o.NAME.ARRAY],allowEmpty:!1},type:{required:!0,rules:[o.NAME.NUMBER],range:[1,2],allowEmpty:!1},groupID:{required:!0,rules:[o.NAME.STRING],allowEmpty:!1},roomID:{required:!1,rules:[o.NAME.NUMBER],range:"1~"+o.MAX_NUMBER_ROOM_ID,allowEmpty:!1},timeout:{required:!1,rules:[o.NAME.NUMBER],allowEmpty:!1}},joinInGroupCall:{type:{required:!0,rules:[o.NAME.NUMBER],range:[1,2],allowEmpty:!1},groupID:{required:!0,rules:[o.NAME.STRING],allowEmpty:!1},roomID:{required:!0,rules:[o.NAME.NUMBER],allowEmpty:!1}},inviteUser:{userIDList:{required:!0,rules:[o.NAME.ARRAY],allowEmpty:!1}},startRemoteView:{userID:{required:!0,rules:[o.NAME.STRING],allowEmpty:!1},videoViewDomID:{required:!0,rules:[o.NAME.STRING],allowEmpty:!1}},stopRemoteView:{userID:{required:!0,rules:[o.NAME.STRING],allowEmpty:!1}},startLocalView:{userID:{required:!0,rules:[o.NAME.STRING],allowEmpty:!1},videoViewDomID:{required:!0,rules:[o.NAME.STRING],allowEmpty:!1}},stopLocalView:{userID:{required:!0,rules:[o.NAME.STRING],allowEmpty:!1}},switchDevice:{deviceType:{required:!0,rules:[o.NAME.STRING],allowEmpty:!1},deviceId:{required:!0,rules:[o.NAME.STRING],allowEmpty:!1}},setVideoQuality:[{key:"profile",required:!0,rules:[o.NAME.STRING,o.NAME.OBJECT],range:Object.keys(r.TUICommonDefine.VideoEncoderParams),allowEmpty:!1}],switchCallMediaType:[{key:"newMediaType",required:!0,rules:[o.NAME.NUMBER],range:[1,2],allowEmpty:!1}],getDeviceList:[{key:"deviceType",required:!0,rules:[o.NAME.STRING],range:["camera","microphones"],allowEmpty:!1}],setSelfInfo:{nickName:{required:!1,rules:[o.NAME.STRING],allowEmpty:!1},avatar:{required:!1,rules:[o.NAME.STRING],allowEmpty:!1}},setVideoRenderParams:{objectFit:{require:!1,rules:[o.NAME.STRING],range:[o.NAME.CONTAIN,o.NAME.COVER,o.NAME.FILL],allowEmpty:!1},muted:{require:!1,rules:[o.NAME.BOOLEAN],allowEmpty:!1},mirror:{require:!1,rules:[o.NAME.BOOLEAN],allowEmpty:!1}}}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=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)};Object.defineProperty(t,"__esModule",{value:!0}),t.paramValidate=void 0;var o=n(1),a=n(9),i=n(4);function s(e,t,n){try{if(o.isArray(e))for(var a=0;a<e.length;a++)c.call(this,r(r({},e[a]),{value:t[a],name:n}));else for(var i in e)c.call(this,r(r({},e[i]),{value:t[0][i],name:n,key:i}))}catch(e){throw e}}function c(e){var t=e.required,n=e.rules,r=e.range,s=e.value,c=e.allowEmpty,l=e.name,u=e.key;if(o.isUndefined(s)){if(t)throw new a.default({message:"API<"+l+">: "+u+" is required.",code:i.default.ERROR_PARAM_INVALID})}else{var d="";if(!n.some((function(e){return e===o.getType(s)}))){for(var p=0;p<n.length;p++){var f=n[p];d+=(f=f.replace(f[0],f[0].toUpperCase()))+"/"}throw d=d.substring(0,d.length-1),new a.default({message:"API<"+l+">: "+u+" must be "+d+", current "+u+" is "+typeof s+".",code:i.default.ERROR_PARAM_INVALID})}if(!1===c&&o.isString(s)&&""===s.trim())throw new a.default({message:"API<"+l+">: "+u+" is blank.",code:i.default.ERROR_PARAM_INVALID});if(o.isArray(r)&&r&&-1===r.indexOf(s))throw new a.default({message:"API<"+l+">: "+u+" error, only be "+r+", current "+u+" is "+s+".",code:i.default.ERROR_PARAM_INVALID});if(o.isString(r)&&-1!==r.indexOf("~")){var h=r.split("~");if(s<+h[0]||s>+h[1]||o.isNumber(s)&&Number.isNaN(s))throw new a.default({message:"API<"+l+">: "+u+" error, only be "+r+", current "+u+" is "+s+".",code:i.default.ERROR_PARAM_INVALID})}}}t.paramValidate=function(e){return function(t,n,r){var o=r.value;return r.value=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return s.call(this,e,t,n),o.apply(this,t)},r}}},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}c((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(o=i.trys,!((o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.deviceValidate=void 0;var a=n(9),i=n(4),s=n(6);function c(e,t,n){return r(this,void 0,void 0,(function(){var r,c;return o(this,(function(o){switch(o.label){case 0:if(this._permission[n])return[3,4];o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this._trtcClient.getMediaDevicesAuth((c={},c[n]=!0,c.isThrowVideoError=!0,c))];case 2:return o.sent(),[3,4];case 3:throw r=o.sent(),this._delegate.onError(i.default.NOT_MEDIA_ACCESS,JSON.stringify(r)),new a.default({message:"<doValidate>: "+s.ERROR_MESSAGE.ERROR_PERMISSION_DENIED,code:i.default.ERROR_PERMISSION_DENIED});case 4:return e.apply(this,t),[2]}}))}))}t.deviceValidate=function(e){return function(t,n,a){var i=a.value;return a.value=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,c.call(this,i,t,e)];case 1:return[2,n.sent()];case 2:throw n.sent();case 3:return[2]}}))}))},a}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.statusValidate=void 0;var r=n(9),o=n(4),a=n(6);function i(e,t,n){var i;if((null==e?void 0:e.init)&&!this._isLogin)throw new r.default({message:"API<"+n+">: "+a.ERROR_MESSAGE.ERROR_INIT_FAIL,code:o.default.ERROR_INIT_FAIL});if(-1===(null===(i=null==e?void 0:e.callStatus)||void 0===i?void 0:i.indexOf(this._callStatus)))throw new r.default({message:"API<"+n+">: "+a.ERROR_MESSAGE.ERROR_REQUEST_REFUSED+". support status: ["+e.callStatus.join(",")+"], current status: "+this._callStatus,code:o.default.ERROR_REQUEST_REFUSED});if((null==e?void 0:e.scene)&&this._isGroupCall)throw new r.default({message:"API<"+n+">: "+a.ERROR_MESSAGE.ERROR_SCENE_NOT_SUPPORTED,code:o.default.ERROR_SCENE_NOT_SUPPORTED})}t.statusValidate=function(e){return function(t,n,r){var o=r.value;return r.value=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return i.call(this,e,t,n),o.apply(this,t)},r}}},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}c((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(o=i.trys,!((o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.avoidRepeatedCall=void 0,t.avoidRepeatedCall=function(){return function(e,t,n){var a=n.value,i=new Set;return n.value=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return r(this,void 0,void 0,(function(){var n,r;return o(this,(function(o){switch(o.label){case 0:if(i.has(this))throw new Error("previous "+t+"() is ongoing, please avoid repeated calls");o.label=1;case 1:return o.trys.push([1,3,,4]),i.add(this),[4,a.apply(this,e)];case 2:return n=o.sent(),i.delete(this),[2,n];case 3:throw r=o.sent(),i.delete(this),r;case 4:return[2]}}))}))},n}}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=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)};Object.defineProperty(t,"__esModule",{value:!0}),t.apiCallQueue=void 0;var o=new WeakMap;t.apiCallQueue=function(){return function(e,t,n){var a=n.value,i=function(e){var t=e.fn,n=e.args,a=e.context,s=e.resolve,c=e.reject;t.apply(a,n).then(s,c).finally((function(){var e=o.get(a);e.shift(),e[0]&&i(r({},e[0]))}))};return n.value=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new Promise((function(n,r){if(o.has(e)){var s=o.get(e),c=s.length;s.push({fn:a,args:t,context:e,resolve:n,reject:r}),0===c&&i({fn:a,args:t,context:e,resolve:n,reject:r})}else o.set(e,[{fn:a,args:t,context:e,resolve:n,reject:r}]),i({fn:a,args:t,context:e,resolve:n,reject:r})}))},n}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TUICallEngineObserver=t.CallDataReport=void 0;var r=n(5),o=n(12),a=n(10),i=n(11),s=n(13),c=n(0),l=n(69),u=n(1),d=n(27),p=function(){function e(e){this._eventStatController=new s.default,a.default.bindController(this._eventStatController),this.initializeCallData(e),this._ssoLog=new a.default(i.default.QUALITY_REPORT)}return e.prototype.setCallData=function(e){this._callData=e},e.prototype.getCallData=function(){return this._callData},e.prototype.setInviteID=function(e){this._callData.inviteID=e},e.prototype.setTotalTime=function(e){this._callData.totalTime=e},e.prototype.setAbilityBit=function(e){this._callData.abilityBit=!!e},e.prototype.setEnterRoomTime=function(e){this._callData.enterRoomTime=l.convertTimeStampToString(e)},e.prototype.setSendSignalingTime=function(e){this._callData.sendSignalingTime=l.convertTimeStampToString(e)},e.prototype.setCallAcceptTime=function(e){this._callData.callAcceptTime=l.convertTimeStampToString(e)},e.prototype.setExitRoomTime=function(e){this._callData.exitRoomTime=l.convertTimeStampToString(e)},e.prototype.setCallEndTime=function(e){this._callData.callEndTime=e},e.prototype.setCodeAndMessage=function(e,t){this._callData.code=e||0,this._callData.message=t||""},e.prototype.setCallScene=function(e){this._callData.callScene=e||""},e.prototype.getResult=function(){return this._callData.result},e.prototype.setResult=function(e){this._callData.result=e||""},e.prototype.setUserID=function(e){this._callData.userID=e||""},e.prototype.packageCallDataToKibana=function(){var e=d.callTypeMapping(this._callData.callType),t=d.callRoleMapping(this._callData.callRole);return"CallData{version='"+this._callData.version+", platform="+this._callData.platform+", framework="+this._callData.framework+", sdk_app_id="+this._callData.sdkAppId+", user_id="+this._callData.userID+", room_id="+this._callData.roomID+", invite_id="+this._callData.inviteID+", invitee_list="+this._callData.inviteeList+", media_type="+e+", role="+t+", call_scene="+this._callData.callScene+", result="+this._callData.result+", total_time="+this._callData.totalTime+", total_score="+this._callData.totalScore+", ability_bit="+this._callData.abilityBit+", enter_room="+this._callData.enterRoomTime+", send_signaling="+this._callData.sendSignalingTime+", call_accept="+this._callData.callAcceptTime+", exit_room="+this._callData.exitRoomTime+", call_end="+this._callData.callEndTime+", code="+this._callData.code+", message="+this._callData.message+", network="+this._callData.network+", audio="+this._callData.audio+", video="+this._callData.video+"}"},e.prototype.initializeCallData=function(e){var t=e||{},n=t.version,o=void 0===n?"":n,a=t.sdkAppId,i=void 0===a?0:a,s=t.userID,l=void 0===s?"":s,d=u.getHostType();this._callData={version:o,platform:d,framework:c.NAME.WEB,sdkAppId:i,userID:l,roomID:0,inviteID:"",callRole:r.CALL_ROLE.UNKNOWN,callScene:"",callType:r.CALL_TYPE.UNKNOWN,inviteeList:[],result:c.NAME.UNKNOWN,totalTime:0,totalScore:0,code:0,message:"",abilityBit:!1,enterRoomTime:"",sendSignalingTime:"",callAcceptTime:"",exitRoomTime:"",callEndTime:"",network:0,audio:0,video:0}},e.prototype.reset=function(){this.initializeCallData(),this._ssoLog=null},e.prototype.clearCallDataAfterUpload=function(){var e=this.getCallData(),t=e.version,n=e.sdkAppId,r=e.userID;this.initializeCallData({version:t,sdkAppId:n,userID:r})},e.prototype.uploadToKibana=function(){try{this._ssoLog.setText(this.packageCallDataToKibana()).setEnd(),this.clearCallDataAfterUpload()}catch(e){}},e}();t.CallDataReport=p;var f=function(){function e(e,t){this._eventEmitter=e,this._callDataReport=t,this.registerListener()}return e.prototype.registerListener=function(){this._eventEmitter.on(o.TUICallEvent.CALLING_END,this.onCallEnd.bind(this)),this._eventEmitter.on(o.TUICallEvent.CALLING_CANCEL,this.onCallingCancel.bind(this)),this._eventEmitter.on(o.TUICallEvent.NO_RESP,this.onNoResponse.bind(this)),this._eventEmitter.on(o.TUICallEvent.LINE_BUSY,this.onLineBusy.bind(this)),this._eventEmitter.on(o.TUICallEvent.REJECT,this.onReject.bind(this))},e.prototype.removeLister=function(){this._eventEmitter.off(o.TUICallEvent.CALLING_END,this.onCallEnd.bind(this)),this._eventEmitter.off(o.TUICallEvent.CALLING_CANCEL,this.onCallingCancel.bind(this)),this._eventEmitter.off(o.TUICallEvent.NO_RESP,this.onNoResponse.bind(this)),this._eventEmitter.off(o.TUICallEvent.LINE_BUSY,this.onLineBusy.bind(this)),this._eventEmitter.off(o.TUICallEvent.REJECT,this.onReject.bind(this))},e.prototype.onCallEnd=function(e){var t=e.totalTime,n=void 0===t?0:t;this._callDataReport.setTotalTime(n),this._callDataReport.setResult(c.NAME.NORMAL),this._callDataReport.setCodeAndMessage(),this._callDataReport.uploadToKibana()},e.prototype.onCallingCancel=function(){this._callDataReport.getResult()||this._callDataReport.setResult(c.NAME.CANCEL),this._callDataReport.setCodeAndMessage(),this._callDataReport.uploadToKibana()},e.prototype.onNoResponse=function(){this._callDataReport.setResult(c.NAME.TIMEOUT)},e.prototype.onLineBusy=function(){this._callDataReport.setResult(c.NAME.BUSYLINE)},e.prototype.onReject=function(){this._callDataReport.setResult(c.NAME.REJECT)},e}();t.TUICallEngineObserver=f},function(e,t,n){"use strict";n.r(t),n.d(t,"setBaseTime",(function(){return c})),n.d(t,"getCurrentTime",(function(){return l})),n.d(t,"getTimestamp",(function(){return u})),n.d(t,"convertTimeStampToString",(function(){return d}));var r=n(2),o=n(29),a=n.n(o);let i=(new Date).getTime(),s=0;const c=function(e){i=e,s=i-(new Date).getTime();const t=new Date;t.setTime(e),r.default.info("baseTime from server: "+t+" offset: "+s)},l=function(){return(new Date).getTime()+s},u=function(){const e=new Date;return e.setTime(l()),e.toLocaleString()},d=e=>e<=0?"":a()(e).format("YYYY-MM-DD HH:mm:ss")},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=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)},o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}c((r=r.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(o=i.trys,!((o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.TUICallEngineRecordObserver=t.CallRecordReport=void 0;var i=n(5),s=n(12),c=n(0),l=n(2),u=n(71),d=n(7),p=n(27),f={serviceCommand:c.NAME.CALLKIT_RECORDS_SVR+".*"},h=function(){function e(e){this._tim=e.tim,this._heartbeat=-1,this._lastHeartBeatTime=-1,this.initializeCallData(e)}return e.prototype.getCallRecordData=function(){return this._callRecordData},e.prototype.initializeCallData=function(e){var t=e||{},n=t.version,r=void 0===n?"":n,o=t.userID,a=void 0===o?"":o,s=d.getOsInfo().name,l={version:1,command:c.NAME.EVENT_REPORT,sdk_version:r,seq:0,os_name:c.NAME.WEB,os_version:"0.0",device_name:s,framework:c.NAME.WEB,call_type:"",media_type:"",client_ts:0,role:i.CALL_ROLE.UNKNOWN,user_id:a,room_id:"",call_id:""};this._callRecordData={head:l,body:{event_type:"",code:0,message:"",invitee_list:[]}}},e.prototype.reset=function(){this.initializeCallData()},e.prototype._setCallType=function(e){e&&(this._callRecordData.head=r(r({},this._callRecordData.head),{call_type:e}))},e.prototype._setMediaType=function(e){e&&(this._callRecordData.head=r(r({},this._callRecordData.head),{media_type:p.callTypeMapping(e)}))},e.prototype._setCallRole=function(e){e&&(this._callRecordData.head=r(r({},this._callRecordData.head),{role:e}))},e.prototype._setUserID=function(e){e&&(this._callRecordData.head=r(r({},this._callRecordData.head),{user_id:e}))},e.prototype._setRoomID=function(e){e&&(this._callRecordData.head=r(r({},this._callRecordData.head),{room_id:""+e}))},e.prototype._setInviteID=function(e){void 0===e&&(e=""),e&&(this._callRecordData.head=r(r({},this._callRecordData.head),{call_id:e}))},e.prototype._setEventType=function(e){e&&(this._callRecordData.body=r(r({},this._callRecordData.body),{event_type:e}))},e.prototype._setInviteeList=function(e){void 0===e&&(e=[]),this._callRecordData.body=r(r({},this._callRecordData.body),{invitee_list:e})},e.prototype._setSeq=function(){var e=this.getCallRecordData().head.seq;this._callRecordData.head=r(r({},this._callRecordData.head),{seq:e+1})},e.prototype.eventUpload=function(e){var t;return o(this,void 0,void 0,(function(){var n,o,i,s,l,u,d,h,m,v,g,_,y,b;return a(this,(function(a){switch(a.label){case 0:return n=e.eventType,o=e.callType,i=e.mediaType,s=e.callRole,l=e.userID,u=e.roomID,d=e.inviteID,h=e.inviteeList,m=void 0===h?[]:h,n?(this._callRecordData.head=r(r({},this._callRecordData.head),{command:c.NAME.EVENT_REPORT,client_ts:Math.floor(Date.now()/1e3)}),this._setCallType(o),this._setMediaType(i),this._setCallRole(s),this._setUserID(l),this._setRoomID(u),this._setInviteID(d),this._setEventType(n),this._setInviteeList(m),this._setSeq(),v=this.getCallRecordData(),g=v.head,_=v.body,y={head:r(r({},g),{role:p.callRoleMapping(g.role)}),body:_},b=r(r({},f),{data:JSON.stringify(y)}),[4,null===(t=null==this?void 0:this._tim)||void 0===t?void 0:t.callExperimentalAPI("sendTRTCCustomData",b)]):[2];case 1:return a.sent(),[2]}}))}))},e.prototype.eventUploadNotSave=function(e){var t;return o(this,void 0,void 0,(function(){var n,o,i,s,c,l,u,d,h,m,v;return a(this,(function(a){switch(a.label){case 0:return n=e.eventType,o=e.callType,i=e.mediaType,s=e.callRole,c=e.roomID,l=e.inviteID,this._setSeq(),u=this.getCallRecordData(),d=u.head,h=u.body,m={head:r(r({},d),{role:p.callRoleMapping(s),call_id:l,call_type:o,media_type:p.callTypeMapping(i),room_id:""+c,client_ts:Math.floor(Date.now()/1e3)}),body:r(r({},h),{event_type:n})},v=r(r({},f),{data:JSON.stringify(m)}),[4,null===(t=null==this?void 0:this._tim)||void 0===t?void 0:t.callExperimentalAPI("sendTRTCCustomData",v)];case 1:return a.sent(),[2]}}))}))},e.prototype.heartBeatUpload=function(){var e;return o(this,void 0,void 0,(function(){var t,n,o;return a(this,(function(a){switch(a.label){case 0:return this._setSeq(),t=this._callRecordData.head,n={head:r(r({},t),{role:p.callRoleMapping(t.role),clientTs:Date.now(),command:c.NAME.HEART_BEAT}),body:{status:c.NAME.CALLING}},o=r(r({},f),{data:n}),[4,null===(e=null==this?void 0:this._tim)||void 0===e?void 0:e.callExperimentalAPI("sendTRTCCustomData",o)];case 1:return a.sent(),[2]}}))}))},e.prototype.startHeartbeat=function(){-1===this._heartbeat&&(l.default.info("start heart beat..."),this._heartbeat=u.default.run(c.NAME.TIMEOUT,this.doHeartbeat.bind(this),{delay:2e3,count:0,backgroundTask:!0}))},e.prototype.stopHeartbeat=function(){-1!==this._heartbeat&&(l.default.info("stop heart beat"),u.default.clearTask(this._heartbeat),this._heartbeat=-1,this._lastHeartBeatTime=-1)},e.prototype.doHeartbeat=function(){return o(this,void 0,void 0,(function(){var e;return a(this,(function(t){return this.heartBeatUpload(),e=Date.now(),this._lastHeartBeatTime>0&&e-this._lastHeartBeatTime>1e4&&l.default.warn("heartbeat took "+(e-this._lastHeartBeatTime)),this._lastHeartBeatTime=e,[2]}))}))},e}();t.CallRecordReport=h;var m=function(){function e(e,t){this._eventEmitter=e,this._callRecordDataReport=t,this._isCallAccepted=!1,this.registerListener()}return e.prototype.registerListener=function(){this._eventEmitter.on(s.TUICallEvent.USER_ACCEPT,this.onCallAccepted.bind(this)),this._eventEmitter.on(s.TUICallEvent.CALLING_END,this.onCallEnd.bind(this)),this._eventEmitter.on(s.TUICallEvent.CALLING_CANCEL,this.onCallingCancel.bind(this)),this._eventEmitter.on(s.TUICallEvent.NO_RESP,this.onNoResponse.bind(this)),this._eventEmitter.on(s.TUICallEvent.LINE_BUSY,this.onLineBusy.bind(this)),this._eventEmitter.on(s.TUICallEvent.REJECT,this.onReject.bind(this))},e.prototype.removeLister=function(){this._eventEmitter.off(s.TUICallEvent.USER_ACCEPT,this.onCallAccepted),this._eventEmitter.off(s.TUICallEvent.CALLING_END,this.onCallEnd),this._eventEmitter.off(s.TUICallEvent.CALLING_CANCEL,this.onCallingCancel),this._eventEmitter.off(s.TUICallEvent.NO_RESP,this.onNoResponse),this._eventEmitter.off(s.TUICallEvent.LINE_BUSY,this.onLineBusy),this._eventEmitter.off(s.TUICallEvent.REJECT,this.onReject)},e.prototype.onCallAccepted=function(){var e=this._callRecordDataReport.getCallRecordData().head;if((null==e?void 0:e.role)===c.NAME.INVITER){if(this._isCallAccepted&&e.call_type===c.NAME.GROUP)return;this._isCallAccepted=!0;var t={eventType:c.NAME.CALL_ACCEPTED};this._callRecordDataReport.eventUpload(t),this._callRecordDataReport.startHeartbeat()}},e.prototype.onCallEnd=function(){var e={eventType:c.NAME.CALL_END};this._isCallAccepted=!1,this._callRecordDataReport.eventUpload(e)},e.prototype.onCallingCancel=function(e){var t=this._callRecordDataReport.getCallRecordData().head,n=t.role===c.NAME.INVITER?c.NAME.CANCEL_CALL:c.NAME.CALL_CANCELED;this._isCallAccepted=!1;var r=(e||{}).reason;((void 0===r?"":r)===c.NAME.NORMAL||t.role===c.NAME.INVITER&&t.call_type===c.NAME.GROUP)&&this._callRecordDataReport.eventUpload({eventType:n})},e.prototype.onNoResponse=function(){this._uploadInC2C(c.NAME.TIMEOUT)},e.prototype.onLineBusy=function(){this._uploadInC2C(c.NAME.BUSYLINE)},e.prototype.onReject=function(){this._uploadInC2C(c.NAME.REJECT)},e.prototype._uploadInC2C=function(e){var t=this._callRecordDataReport.getCallRecordData().head;if((null==t?void 0:t.call_type)===c.NAME.SINGLE){var n="";switch(e){case c.NAME.TIMEOUT:n=t.role===c.NAME.INVITER?c.NAME.CALL_MISSED:c.NAME.NOT_ANSWER_CALL;break;case c.NAME.REJECT:n=t.role===c.NAME.INVITER&&c.NAME.CALL_REJECTED;break;case c.NAME.BUSYLINE:n=t.role===c.NAME.INVITER?c.NAME.CALL_BUSY:c.NAME.NOT_ANSWER_CALL;break;default:return}this._callRecordDataReport.eventUpload({eventType:n})}},e}();t.TUICallEngineRecordObserver=m},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=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)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),a=n(0),i=null===window||void 0===window?void 0:window.cancelAnimationFrame,s=function(){function e(){}return e.generateTaskID=function(){return this.currentTaskID++},e.run=function(e,t,n){void 0===e&&(e=a.NAME.TIMEOUT),n=e===a.NAME.INTERVAL?r({delay:2e3,count:0,backgroundTask:!0},n):e===a.NAME.RAF?r({fps:60,delay:16.6,count:0,backgroundTask:!0},n):r({delay:2e3,count:0,backgroundTask:!0},n),o.isObject(t)&&(n=r(r({},n),t)),o.isFunction(e)&&(t=e,e=a.NAME.TIMEOUT);var i=r({taskID:this.generateTaskID(),loopCount:0,intervalID:null,timeoutID:null,rafID:null,taskName:e,callback:t},n);return this.taskMap.set(i.taskID,i),this[e](i),i.taskID},e.interval=function(e){var t=this;return e.intervalID=setInterval((function(){e.callback(),e.loopCount+=1,t.isBreakLoop(e)}),e.delay)},e.timeout=function(e){var t=this,n=function(){if(e.callback(),e.loopCount+=1,!t.isBreakLoop(e))return e.timeoutID=setTimeout(n,e.delay)};return e.timeoutID=setTimeout(n,e.delay)},e.raf=function(e){var t=this;e.delay=(1e3/e.fps).toFixed(2);var n,r=o.performanceNow(),a=function(){if(document.hidden&&e.backgroundTask){if(n=o.performanceNow()-r,r=o.performanceNow(),e.callback(),e.loopCount+=1,t.isBreakLoop(e))return;return e.timeoutID=setTimeout(a,e.delay-Math.floor(n%e.delay))}if((n=o.performanceNow()-r)>=e.delay&&(r=o.performanceNow()-Math.floor(n%e.delay),e.callback(),e.loopCount+=1),!t.isBreakLoop(e))return e.rafID=requestAnimationFrame(a)};if(e.rafID=requestAnimationFrame(a),e.backgroundTask){var i=function(){if(document.hidden){var t=o.performanceNow()-r;t>=e.delay?a():e.timeoutID=setTimeout(a,e.delay-t)}};document.addEventListener("visibilitychange",i),e.onVisibilitychange=i,document.hidden&&i()}return e.taskID},e.hasTask=function(e){return this.taskMap.has(e)},e.clearTask=function(e){if(!this.taskMap.has(e))return!0;var t=this.taskMap.get(e),n=t.intervalID,r=t.timeoutID,o=t.rafID,a=t.onVisibilitychange;return n&&clearInterval(n),r&&clearTimeout(r),o&&i(o),a&&document.removeEventListener("visibilitychange",a),this.taskMap.delete(e),!0},e.isBreakLoop=function(e){return!this.taskMap.has(e.taskID)||0!==e.count&&e.loopCount>=e.count&&(this.clearTask(e.taskID),!0)},e.taskMap=new Map,e.currentTaskID=1,e}();t.default=s}]).default}))},3654:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n("8afd"),a=Object.defineProperty,i=Object.defineProperties,s=Object.getOwnPropertyDescriptors,c=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,d=(e,t,n)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,p=(e,t)=>{for(var n in t||(t={}))l.call(t,n)&&d(e,n,t[n]);if(c)for(var n of c(t))u.call(t,n)&&d(e,n,t[n]);return e},f=(e,t)=>i(e,s(t));function h(e,t){var n;const r=o.shallowRef();return o.watchEffect(()=>{r.value=e()},f(p({},t),{flush:null!=(n=null==t?void 0:t.flush)?n:"sync"})),o.readonly(r)}const m="undefined"!==typeof window,v=e=>"undefined"!==typeof e,g=(e,...t)=>{e||console.warn(...t)},_=Object.prototype.toString,y=e=>"boolean"===typeof e,b=e=>"function"===typeof e,O=e=>"number"===typeof e,M=e=>"string"===typeof e,k=e=>"[object Object]"===_.call(e),C=e=>"undefined"!==typeof window&&"[object Window]"===_.call(e),w=()=>Date.now(),I=()=>+Date.now(),S=(e,t,n)=>Math.min(n,Math.max(t,e)),T=()=>{},E=(e,t)=>(e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e+1))+e),j=m&&(null==(r=null==window?void 0:window.navigator)?void 0:r.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function D(e,t){function n(...n){e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})}return n}const L=e=>e();function A(e,t={}){let n,r;const a=a=>{const i=o.unref(e),s=o.unref(t.maxWait);if(n&&clearTimeout(n),i<=0||void 0!==s&&s<=0)return r&&(clearTimeout(r),r=null),a();s&&!r&&(r=setTimeout(()=>{n&&clearTimeout(n),r=null,a()},s)),n=setTimeout(()=>{r&&clearTimeout(r),r=null,a()},i)};return a}function N(e,t=!0,n=!0){let r,a=0,i=!0;const s=()=>{r&&(clearTimeout(r),r=void 0)},c=c=>{const l=o.unref(e),u=Date.now()-a;if(s(),l<=0)return a=Date.now(),c();u>l&&(n||!i)?(a=Date.now(),c()):t&&(r=setTimeout(()=>{a=Date.now(),i=!0,s(),c()},l)),n||r||(r=setTimeout(()=>i=!0,l)),i=!1};return c}function x(e=L){const t=o.ref(!0);function n(){t.value=!1}function r(){t.value=!0}const a=(...n)=>{t.value&&e(...n)};return{isActive:t,pause:n,resume:r,eventFilter:a}}function R(e="this function"){if(!o.isVue3)throw new Error(`[VueUse] ${e} is only works on Vue 3.`)}const P={mounted:o.isVue3?"mounted":"inserted",updated:o.isVue3?"updated":"componentUpdated",unmounted:o.isVue3?"unmounted":"unbind"};function U(e,t=!1,n="Timeout"){return new Promise((r,o)=>{t?setTimeout(()=>o(n),e):setTimeout(r,e)})}function V(e){return e}function B(e){let t;function n(){return t||(t=e()),t}return n.reset=async()=>{const e=t;t=void 0,e&&await e},n}function F(e){return e()}function G(e,...t){return t.some(t=>t in e)}function z(e,t){var n;if("number"===typeof e)return e+t;const r=(null==(n=e.match(/^-?[0-9]+\.?[0-9]*/))?void 0:n[0])||"",o=e.slice(r.length),a=parseFloat(r)+t;return Number.isNaN(a)?e:a+o}function H(e,t,n=!1){return t.reduce((t,r)=>(r in e&&(n&&void 0===e[r]||(t[r]=e[r])),t),{})}function Y(e,t){let n,r,a=void 0;const i=o.ref(!0),s=()=>{i.value=!0,r()};o.watch(e,s,{flush:"sync"});const c=b(t)?t:t.get,l=b(t)?void 0:t.set,u=o.customRef((e,t)=>(n=e,r=t,{get(){return i.value&&(a=c(),i.value=!1),n(),a},set(e){null==l||l(e)}}));return Object.isExtensible(u)&&(u.trigger=s),u}function q(){const e=[],t=t=>{const n=e.indexOf(t);-1!==n&&e.splice(n,1)},n=n=>(e.push(n),{off:()=>t(n)}),r=t=>{e.forEach(e=>e(t))};return{on:n,off:t,trigger:r}}function W(e){let t,n=!1;const r=o.effectScope(!0);return()=>(n||(t=r.run(e),n=!0),t)}function K(e){const t=Symbol("InjectionState"),n=(...n)=>{o.provide(t,e(...n))},r=()=>o.inject(t);return[n,r]}function $(e){return!!o.getCurrentScope()&&(o.onScopeDispose(e),!0)}function J(e){let t,n,r=0;const a=()=>{r-=1,n&&r<=0&&(n.stop(),t=void 0,n=void 0)};return(...i)=>(r+=1,t||(n=o.effectScope(!0),t=n.run(()=>e(...i))),$(a),t)}function Q(e,t,{enumerable:n=!1,unwrap:r=!0}={}){R();for(const[a,i]of Object.entries(t))"value"!==a&&(o.isRef(i)&&r?Object.defineProperty(e,a,{get(){return i.value},set(e){i.value=e},enumerable:n}):Object.defineProperty(e,a,{value:i,enumerable:n}));return e}function X(e,t){return null==t?o.unref(e):o.unref(e)[t]}function Z(e){return null!=o.unref(e)}function ee(...e){return o.computed(()=>e.every(e=>o.unref(e)))}function te(e){return o.computed(()=>!o.unref(e))}function ne(...e){return o.computed(()=>e.some(e=>o.unref(e)))}var re=Object.defineProperty,oe=Object.getOwnPropertySymbols,ae=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable,se=(e,t,n)=>t in e?re(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ce=(e,t)=>{for(var n in t||(t={}))ae.call(t,n)&&se(e,n,t[n]);if(oe)for(var n of oe(t))ie.call(t,n)&&se(e,n,t[n]);return e};function le(e,t){if("undefined"!==typeof Symbol){const n=ce({},e);return Object.defineProperty(n,Symbol.iterator,{enumerable:!1,value(){let e=0;return{next:()=>({value:t[e++],done:e>t.length})}}}),n}return Object.assign([...t],e)}function ue(e){return function(...t){return o.computed(()=>e.apply(this,t.map(e=>o.unref(e))))}}function de(e,t={}){let n=[];if(Array.isArray(t))n=t;else{const{includeOwnProperties:r=!0}=t;n.push(...Object.keys(e)),r&&n.push(...Object.getOwnPropertyNames(e))}return Object.fromEntries(n.map(t=>{const n=e[t];return[t,"function"===typeof n?ue(n.bind(e)):n]}))}function pe(e){if(!o.isRef(e))return o.reactive(e);const t=new Proxy({},{get(t,n,r){return o.unref(Reflect.get(e.value,n,r))},set(t,n,r){return o.isRef(e.value[n])&&!o.isRef(r)?e.value[n].value=r:e.value[n]=r,!0},deleteProperty(t,n){return Reflect.deleteProperty(e.value,n)},has(t,n){return Reflect.has(e.value,n)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return o.reactive(t)}function fe(e){return pe(o.computed(e))}function he(e,...t){const n=t.flat();return fe(()=>Object.fromEntries(Object.entries(o.toRefs(e)).filter(e=>!n.includes(e[0]))))}function me(e,...t){const n=t.flat();return o.reactive(Object.fromEntries(n.map(t=>[t,o.toRef(e,t)])))}function ve(e,t=1e4){return o.customRef((n,r)=>{let a,i=e;const s=()=>setTimeout(()=>{i=e,r()},o.unref(t));return $(()=>{clearTimeout(a)}),{get(){return n(),i},set(e){i=e,r(),clearTimeout(a),a=s()}}})}function ge(e,t=200,n={}){return D(A(t,n),e)}function _e(e,t=200,n={}){if(t<=0)return e;const r=o.ref(e.value),a=ge(()=>{r.value=e.value},t,n);return o.watch(e,()=>a()),r}function ye(e,t){return o.computed({get(){var n;return null!=(n=e.value)?n:t},set(t){e.value=t}})}function be(e,t=200,n=!0,r=!0){return D(N(t,n,r),e)}function Oe(e,t=200,n=!0,r=!0){if(t<=0)return e;const a=o.ref(e.value),i=be(()=>{a.value=e.value},t,n,r);return o.watch(e,()=>i()),a}function Me(e,t={}){let n,r,a=e;const i=o.customRef((e,t)=>(n=e,r=t,{get(){return s()},set(e){c(e)}}));function s(e=!0){return e&&n(),a}function c(e,n=!0){var o,i;if(e===a)return;const s=a;!1!==(null==(o=t.onBeforeChange)?void 0:o.call(t,e,s))&&(a=e,null==(i=t.onChanged)||i.call(t,e,s),n&&r())}const l=()=>s(!1),u=e=>c(e,!1),d=()=>s(!1),p=e=>c(e,!1);return Q(i,{get:s,set:c,untrackedGet:l,silentSet:u,peek:d,lay:p},{enumerable:!0})}const ke=Me;function Ce(e){return"function"===typeof e?o.computed(e):o.ref(e)}function we(e){return"function"===typeof e?e():o.unref(e)}function Ie(...e){if(2===e.length){const[t,n]=e;t.value=n}if(3===e.length)if(o.isVue2)o.set(...e);else{const[t,n,r]=e;t[n]=r}}function Se(e,t,n={}){const{flush:r="sync",deep:a=!1,immediate:i=!0,direction:s="both"}=n;let c,l;return"both"!==s&&"ltr"!==s||(c=o.watch(e,e=>t.value=e,{flush:r,deep:a,immediate:i})),"both"!==s&&"rtl"!==s||(l=o.watch(t,t=>e.value=t,{flush:r,deep:a,immediate:i})),()=>{null==c||c(),null==l||l()}}function Te(e,t,n={}){const{flush:r="sync",deep:a=!1,immediate:i=!0}=n;return Array.isArray(t)||(t=[t]),o.watch(e,e=>t.forEach(t=>t.value=e),{flush:r,deep:a,immediate:i})}var Ee=Object.defineProperty,je=Object.defineProperties,De=Object.getOwnPropertyDescriptors,Le=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable,xe=(e,t,n)=>t in e?Ee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Re=(e,t)=>{for(var n in t||(t={}))Ae.call(t,n)&&xe(e,n,t[n]);if(Le)for(var n of Le(t))Ne.call(t,n)&&xe(e,n,t[n]);return e},Pe=(e,t)=>je(e,De(t));function Ue(e){if(!o.isRef(e))return o.toRefs(e);const t=Array.isArray(e.value)?new Array(e.value.length):{};for(const n in e.value)t[n]=o.customRef(()=>({get(){return e.value[n]},set(t){if(Array.isArray(e.value)){const r=[...e.value];r[n]=t,e.value=r}else{const r=Pe(Re({},e.value),{[n]:t});Object.setPrototypeOf(r,e.value),e.value=r}}}));return t}function Ve(e,t=!0){o.getCurrentInstance()?o.onBeforeMount(e):t?e():o.nextTick(e)}function Be(e){o.getCurrentInstance()&&o.onBeforeUnmount(e)}function Fe(e,t=!0){o.getCurrentInstance()?o.onMounted(e):t?e():o.nextTick(e)}function Ge(e){o.getCurrentInstance()&&o.onUnmounted(e)}function ze(e){let t=!1;function n(n,{flush:r="sync",deep:a=!1,timeout:i,throwOnTimeout:s}={}){let c=null;const l=new Promise(i=>{c=o.watch(e,e=>{n(e)!==t&&(null==c||c(),i(e))},{flush:r,deep:a,immediate:!0})}),u=[l];return null!=i&&u.push(U(i,s).then(()=>o.unref(e)).finally(()=>null==c?void 0:c())),Promise.race(u)}function r(r,a){if(!o.isRef(r))return n(e=>e===r,a);const{flush:i="sync",deep:s=!1,timeout:c,throwOnTimeout:l}=null!=a?a:{};let u=null;const d=new Promise(n=>{u=o.watch([e,r],([e,r])=>{t!==(e===r)&&(null==u||u(),n(e))},{flush:i,deep:s,immediate:!0})}),p=[d];return null!=c&&p.push(U(c,l).then(()=>o.unref(e)).finally(()=>(null==u||u(),o.unref(e)))),Promise.race(p)}function a(e){return n(e=>Boolean(e),e)}function i(e){return r(null,e)}function s(e){return r(void 0,e)}function c(e){return n(Number.isNaN,e)}function l(e,t){return n(t=>{const n=Array.from(t);return n.includes(e)||n.includes(o.unref(e))},t)}function u(e){return d(1,e)}function d(e=1,t){let r=-1;return n(()=>(r+=1,r>=e),t)}if(Array.isArray(o.unref(e))){const e={toMatch:n,toContains:l,changed:u,changedTimes:d,get not(){return t=!t,this}};return e}{const e={toMatch:n,toBe:r,toBeTruthy:a,toBeNull:i,toBeNaN:c,toBeUndefined:s,changed:u,changedTimes:d,get not(){return t=!t,this}};return e}}function He(e=0,t={}){const n=o.ref(e),{max:r=1/0,min:a=-1/0}=t,i=(e=1)=>n.value=Math.min(r,n.value+e),s=(e=1)=>n.value=Math.max(a,n.value-e),c=()=>n.value,l=e=>n.value=e,u=(t=e)=>(e=t,l(t));return{count:n,inc:i,dec:s,get:c,set:l,reset:u}}const Ye=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,qe=/\[([^\]]+)]|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,We=(e,t)=>{const n=e.getFullYear(),r=e.getMonth(),o=e.getDate(),a=e.getHours(),i=e.getMinutes(),s=e.getSeconds(),c=e.getMilliseconds(),l=e.getDay(),u={YY:String(n).slice(-2),YYYY:n,M:r+1,MM:(""+(r+1)).padStart(2,"0"),D:String(o),DD:(""+o).padStart(2,"0"),H:String(a),HH:(""+a).padStart(2,"0"),h:(""+(a%12||12)).padStart(1,"0"),hh:(""+(a%12||12)).padStart(2,"0"),m:String(i),mm:(""+i).padStart(2,"0"),s:String(s),ss:(""+s).padStart(2,"0"),SSS:(""+c).padStart(3,"0"),d:l};return t.replace(qe,(e,t)=>t||u[e])},Ke=e=>{if(null===e)return new Date(NaN);if(void 0===e)return new Date;if(e instanceof Date)return new Date(e);if("string"===typeof e&&!/Z$/i.test(e)){const t=e.match(Ye);if(t){const e=t[2]-1||0,n=(t[7]||"0").substring(0,3);return new Date(t[1],e,t[3]||1,t[4]||0,t[5]||0,t[6]||0,n)}}return new Date(e)};function $e(e,t="HH:mm:ss"){return o.computed(()=>We(Ke(o.unref(e)),o.unref(t)))}function Je(e,t=1e3,n={}){const{immediate:r=!0,immediateCallback:a=!1}=n;let i=null;const s=o.ref(!1);function c(){i&&(clearInterval(i),i=null)}function l(){s.value=!1,c()}function u(){o.unref(t)<=0||(s.value=!0,a&&e(),c(),i=setInterval(e,o.unref(t)))}if(r&&m&&u(),o.isRef(t)){const e=o.watch(t,()=>{s.value&&m&&u()});$(e)}return $(l),{isActive:s,pause:l,resume:u}}var Qe=Object.defineProperty,Xe=Object.getOwnPropertySymbols,Ze=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,tt=(e,t,n)=>t in e?Qe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,nt=(e,t)=>{for(var n in t||(t={}))Ze.call(t,n)&&tt(e,n,t[n]);if(Xe)for(var n of Xe(t))et.call(t,n)&&tt(e,n,t[n]);return e};function rt(e=1e3,t={}){const{controls:n=!1,immediate:r=!0}=t,a=o.ref(0),i=Je(()=>a.value+=1,e,{immediate:r});return n?nt({counter:a},i):a}function ot(e,t={}){var n;const r=o.ref(null!=(n=t.initialValue)?n:null);return o.watch(e,()=>r.value=I(),t),r}function at(e,t,n={}){const{immediate:r=!0}=n,a=o.ref(!1);let i=null;function s(){i&&(clearTimeout(i),i=null)}function c(){a.value=!1,s()}function l(...n){s(),a.value=!0,i=setTimeout(()=>{a.value=!1,i=null,e(...n)},o.unref(t))}return r&&(a.value=!0,m&&l()),$(c),{isPending:a,start:l,stop:c}}var it=Object.defineProperty,st=Object.getOwnPropertySymbols,ct=Object.prototype.hasOwnProperty,lt=Object.prototype.propertyIsEnumerable,ut=(e,t,n)=>t in e?it(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,dt=(e,t)=>{for(var n in t||(t={}))ct.call(t,n)&&ut(e,n,t[n]);if(st)for(var n of st(t))lt.call(t,n)&&ut(e,n,t[n]);return e};function pt(e=1e3,t={}){const{controls:n=!1}=t,r=at(T,e,t),a=o.computed(()=>!r.isPending.value);return n?dt({ready:a},r):a}function ft(e=!1,t={}){const{truthyValue:n=!0,falsyValue:r=!1}=t,a=o.isRef(e),i=o.ref(e);function s(e){return arguments.length?(i.value=e,i.value):(i.value=i.value===o.unref(n)?o.unref(r):o.unref(n),i.value)}return a?s:[i,s]}function ht(e,t,n){let r=(null==n?void 0:n.immediate)?[]:[...e instanceof Function?e():Array.isArray(e)?e:o.unref(e)];return o.watch(e,(e,n,o)=>{const a=new Array(r.length),i=[];for(const t of e){let e=!1;for(let n=0;n<r.length;n++)if(!a[n]&&t===r[n]){a[n]=!0,e=!0;break}e||i.push(t)}const s=r.filter((e,t)=>!a[t]);t(e,r,i,s,o),r=[...e]},n)}var mt=Object.getOwnPropertySymbols,vt=Object.prototype.hasOwnProperty,gt=Object.prototype.propertyIsEnumerable,_t=(e,t)=>{var n={};for(var r in e)vt.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&mt)for(var r of mt(e))t.indexOf(r)<0&>.call(e,r)&&(n[r]=e[r]);return n};function yt(e,t,n={}){const r=n,{eventFilter:a=L}=r,i=_t(r,["eventFilter"]);return o.watch(e,D(a,t),i)}var bt=Object.getOwnPropertySymbols,Ot=Object.prototype.hasOwnProperty,Mt=Object.prototype.propertyIsEnumerable,kt=(e,t)=>{var n={};for(var r in e)Ot.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&bt)for(var r of bt(e))t.indexOf(r)<0&&Mt.call(e,r)&&(n[r]=e[r]);return n};function Ct(e,t,n){const r=n,{count:a}=r,i=kt(r,["count"]),s=o.ref(0),c=yt(e,(...e)=>{s.value+=1,s.value>=o.unref(a)&&o.nextTick(()=>c()),t(...e)},i);return{count:s,stop:c}}var wt=Object.defineProperty,It=Object.defineProperties,St=Object.getOwnPropertyDescriptors,Tt=Object.getOwnPropertySymbols,Et=Object.prototype.hasOwnProperty,jt=Object.prototype.propertyIsEnumerable,Dt=(e,t,n)=>t in e?wt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Lt=(e,t)=>{for(var n in t||(t={}))Et.call(t,n)&&Dt(e,n,t[n]);if(Tt)for(var n of Tt(t))jt.call(t,n)&&Dt(e,n,t[n]);return e},At=(e,t)=>It(e,St(t)),Nt=(e,t)=>{var n={};for(var r in e)Et.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Tt)for(var r of Tt(e))t.indexOf(r)<0&&jt.call(e,r)&&(n[r]=e[r]);return n};function xt(e,t,n={}){const r=n,{debounce:o=0,maxWait:a}=r,i=Nt(r,["debounce","maxWait"]);return yt(e,t,At(Lt({},i),{eventFilter:A(o,{maxWait:a})}))}var Rt=Object.defineProperty,Pt=Object.defineProperties,Ut=Object.getOwnPropertyDescriptors,Vt=Object.getOwnPropertySymbols,Bt=Object.prototype.hasOwnProperty,Ft=Object.prototype.propertyIsEnumerable,Gt=(e,t,n)=>t in e?Rt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,zt=(e,t)=>{for(var n in t||(t={}))Bt.call(t,n)&&Gt(e,n,t[n]);if(Vt)for(var n of Vt(t))Ft.call(t,n)&&Gt(e,n,t[n]);return e},Ht=(e,t)=>Pt(e,Ut(t)),Yt=(e,t)=>{var n={};for(var r in e)Bt.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Vt)for(var r of Vt(e))t.indexOf(r)<0&&Ft.call(e,r)&&(n[r]=e[r]);return n};function qt(e,t,n={}){const r=n,{eventFilter:a=L}=r,i=Yt(r,["eventFilter"]),s=D(a,t);let c,l,u;if("sync"===i.flush){const t=o.ref(!1);l=()=>{},c=e=>{t.value=!0,e(),t.value=!1},u=o.watch(e,(...e)=>{t.value||s(...e)},i)}else{const t=[],n=o.ref(0),r=o.ref(0);l=()=>{n.value=r.value},t.push(o.watch(e,()=>{r.value++},Ht(zt({},i),{flush:"sync"}))),c=e=>{const t=r.value;e(),n.value+=r.value-t},t.push(o.watch(e,(...e)=>{const t=n.value>0&&n.value===r.value;n.value=0,r.value=0,t||s(...e)},i)),u=()=>{t.forEach(e=>e())}}return{stop:u,ignoreUpdates:c,ignorePrevAsyncUpdates:l}}function Wt(e,t,n){const r=o.watch(e,(...e)=>(o.nextTick(()=>r()),t(...e)),n)}var Kt=Object.defineProperty,$t=Object.defineProperties,Jt=Object.getOwnPropertyDescriptors,Qt=Object.getOwnPropertySymbols,Xt=Object.prototype.hasOwnProperty,Zt=Object.prototype.propertyIsEnumerable,en=(e,t,n)=>t in e?Kt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,tn=(e,t)=>{for(var n in t||(t={}))Xt.call(t,n)&&en(e,n,t[n]);if(Qt)for(var n of Qt(t))Zt.call(t,n)&&en(e,n,t[n]);return e},nn=(e,t)=>$t(e,Jt(t)),rn=(e,t)=>{var n={};for(var r in e)Xt.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Qt)for(var r of Qt(e))t.indexOf(r)<0&&Zt.call(e,r)&&(n[r]=e[r]);return n};function on(e,t,n={}){const r=n,{eventFilter:o}=r,a=rn(r,["eventFilter"]),{eventFilter:i,pause:s,resume:c,isActive:l}=x(o),u=yt(e,t,nn(tn({},a),{eventFilter:i}));return{stop:u,pause:s,resume:c,isActive:l}}var an=Object.defineProperty,sn=Object.defineProperties,cn=Object.getOwnPropertyDescriptors,ln=Object.getOwnPropertySymbols,un=Object.prototype.hasOwnProperty,dn=Object.prototype.propertyIsEnumerable,pn=(e,t,n)=>t in e?an(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fn=(e,t)=>{for(var n in t||(t={}))un.call(t,n)&&pn(e,n,t[n]);if(ln)for(var n of ln(t))dn.call(t,n)&&pn(e,n,t[n]);return e},hn=(e,t)=>sn(e,cn(t)),mn=(e,t)=>{var n={};for(var r in e)un.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&ln)for(var r of ln(e))t.indexOf(r)<0&&dn.call(e,r)&&(n[r]=e[r]);return n};function vn(e,t,n={}){const r=n,{throttle:o=0,trailing:a=!0,leading:i=!0}=r,s=mn(r,["throttle","trailing","leading"]);return yt(e,t,hn(fn({},s),{eventFilter:N(o,a,i)}))}var gn=Object.defineProperty,_n=Object.defineProperties,yn=Object.getOwnPropertyDescriptors,bn=Object.getOwnPropertySymbols,On=Object.prototype.hasOwnProperty,Mn=Object.prototype.propertyIsEnumerable,kn=(e,t,n)=>t in e?gn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Cn=(e,t)=>{for(var n in t||(t={}))On.call(t,n)&&kn(e,n,t[n]);if(bn)for(var n of bn(t))Mn.call(t,n)&&kn(e,n,t[n]);return e},wn=(e,t)=>_n(e,yn(t));function In(e,t,n={}){let r;function o(){if(!r)return;const e=r;r=void 0,e()}function a(e){r=e}const i=(e,n)=>(o(),t(e,n,a)),s=qt(e,i,n),{ignoreUpdates:c}=s,l=()=>{let t;return c(()=>{t=i(Sn(e),En(e))}),t};return wn(Cn({},s),{trigger:l})}function Sn(e){return o.isReactive(e)?e:Array.isArray(e)?e.map(e=>Tn(e)):Tn(e)}function Tn(e){return"function"===typeof e?e():o.unref(e)}function En(e){return Array.isArray(e)?e.map(()=>{}):void 0}function jn(e,t,n){return o.watch(e,(e,n,r)=>{e&&t(e,n,r)},n)}t.__onlyVue3=R,t.and=ee,t.assert=g,t.autoResetRef=ve,t.bypassFilter=L,t.clamp=S,t.computedEager=h,t.computedWithControl=Y,t.containsProp=G,t.controlledComputed=Y,t.controlledRef=ke,t.createEventHook=q,t.createFilterWrapper=D,t.createGlobalState=W,t.createInjectionState=K,t.createReactiveFn=ue,t.createSharedComposable=J,t.createSingletonPromise=B,t.debounceFilter=A,t.debouncedRef=_e,t.debouncedWatch=xt,t.directiveHooks=P,t.eagerComputed=h,t.extendRef=Q,t.formatDate=We,t.get=X,t.identity=V,t.ignorableWatch=qt,t.increaseWithUnit=z,t.invoke=F,t.isBoolean=y,t.isClient=m,t.isDef=v,t.isDefined=Z,t.isFunction=b,t.isIOS=j,t.isNumber=O,t.isObject=k,t.isString=M,t.isWindow=C,t.logicAnd=ee,t.logicNot=te,t.logicOr=ne,t.makeDestructurable=le,t.noop=T,t.normalizeDate=Ke,t.not=te,t.now=w,t.objectPick=H,t.or=ne,t.pausableFilter=x,t.pausableWatch=on,t.promiseTimeout=U,t.rand=E,t.reactify=ue,t.reactifyObject=de,t.reactiveComputed=fe,t.reactiveOmit=he,t.reactivePick=me,t.refAutoReset=ve,t.refDebounced=_e,t.refDefault=ye,t.refThrottled=Oe,t.refWithControl=Me,t.resolveRef=Ce,t.resolveUnref=we,t.set=Ie,t.syncRef=Se,t.syncRefs=Te,t.throttleFilter=N,t.throttledRef=Oe,t.throttledWatch=vn,t.timestamp=I,t.toReactive=pe,t.toRefs=Ue,t.tryOnBeforeMount=Ve,t.tryOnBeforeUnmount=Be,t.tryOnMounted=Fe,t.tryOnScopeDispose=$,t.tryOnUnmounted=Ge,t.until=ze,t.useCounter=He,t.useDateFormat=$e,t.useDebounce=_e,t.useDebounceFn=ge,t.useInterval=rt,t.useIntervalFn=Je,t.useLastChanged=ot,t.useThrottle=Oe,t.useThrottleFn=be,t.useTimeout=pt,t.useTimeoutFn=at,t.useToggle=ft,t.watchArray=ht,t.watchAtMost=Ct,t.watchDebounced=xt,t.watchIgnorable=qt,t.watchOnce=Wt,t.watchPausable=on,t.watchThrottled=vn,t.watchTriggerable=In,t.watchWithFilter=yt,t.whenever=jn},"36b8":function(e,t,n){"use strict";var r=n("06fa"),o=n("0363"),a=n("c1b2"),i=n("7042"),s=o("iterator");e.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n=new URLSearchParams("a=1&a=2&b=3"),r="";return e.pathname="c%20d",t.forEach((function(e,n){t["delete"]("b"),r+=n+e})),n["delete"]("a",2),n["delete"]("b",void 0),i&&(!e.toJSON||!n.has("a",1)||n.has("a",2)||!n.has("a",void 0)||n.has("b"))||!t.size&&(i||!a)||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[s]||"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"!==r||"x"!==new URL("http://x",void 0).host}))},"36f7":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("1ad4");const o=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,a=r["c"].create({name:"image",addOptions(){return{inline:!1,allowBase64:!1,HTMLAttributes:{}}},inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes(){return{src:{default:null},alt:{default:null},title:{default:null}}},parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:e}){return["img",Object(r["h"])(this.options.HTMLAttributes,e)]},addCommands(){return{setImage:e=>({commands:t})=>t.insertContent({type:this.name,attrs:e})}},addInputRules(){return[Object(r["i"])({find:o,type:this.type,getAttributes:e=>{const[,,t,n,r]=e;return{src:n,alt:t,title:r}}})]}})},3818:function(e,t,n){e.exports=n("2ec7")},"386d":function(e,t,n){"use strict";var r=n("a5eb"),o=n("8550");r({target:"Array",proto:!0,forced:o!==[].lastIndexOf},{lastIndexOf:o})},3876:function(e,t,n){"use strict";var r=n("437b"),o=n("af5f"),a=String.prototype;e.exports=function(e){var t=e.startsWith;return"string"==typeof e||e===a||r(a,e)&&t===a.startsWith?o:t}},"387f":function(e,t,n){"use strict";e.exports=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,status:this.response&&this.response.status?this.response.status:null}},e}},3886:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}});return t}))},"38b3":function(e,t,n){"use strict";var r=n("9717"),o=r.match(/firefox\/(\d+)/i);e.exports=!!o&&+o[1]},3934:function(e,t,n){"use strict";var r=n("c532");e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(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=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return function(){return!0}}()},3940:function(e,t,n){"use strict";var r=n("c1b2"),o=n("06fa");e.exports=r&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},"39a6":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}});return t}))},"39bd":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};function r(e,t,n,r){var o="";if(t)switch(n){case"s":o="काही सेकंद";break;case"ss":o="%d सेकंद";break;case"m":o="एक मिनिट";break;case"mm":o="%d मिनिटे";break;case"h":o="एक तास";break;case"hh":o="%d तास";break;case"d":o="एक दिवस";break;case"dd":o="%d दिवस";break;case"M":o="एक महिना";break;case"MM":o="%d महिने";break;case"y":o="एक वर्ष";break;case"yy":o="%d वर्षे";break}else switch(n){case"s":o="काही सेकंदां";break;case"ss":o="%d सेकंदां";break;case"m":o="एका मिनिटा";break;case"mm":o="%d मिनिटां";break;case"h":o="एका तासा";break;case"hh":o="%d तासां";break;case"d":o="एका दिवसा";break;case"dd":o="%d दिवसां";break;case"M":o="एका महिन्या";break;case"MM":o="%d महिन्यां";break;case"y":o="एका वर्षा";break;case"yy":o="%d वर्षां";break}return o.replace(/%d/i,e)}var o=e.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,meridiemHour:function(e,t){return 12===e&&(e=0),"पहाटे"===t||"सकाळी"===t?e:"दुपारी"===t||"सायंकाळी"===t||"रात्री"===t?e>=12?e:e+12:void 0},meridiem:function(e,t,n){return e>=0&&e<6?"पहाटे":e<12?"सकाळी":e<17?"दुपारी":e<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}});return o}))},"3a34":function(e,t,n){"use strict";var r=n("83ab"),o=n("e8b5"),a=TypeError,i=Object.getOwnPropertyDescriptor,s=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(o(e)&&!i(e,"length").writable)throw a("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},"3a39":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},r=e.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(e,t){return 12===e&&(e=0),"राति"===t?e<4?e:e+12:"बिहान"===t?e:"दिउँसो"===t?e>=10?e:e+12:"साँझ"===t?e+12:void 0},meridiem:function(e,t,n){return e<3?"राति":e<12?"बिहान":e<16?"दिउँसो":e<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}});return r}))},"3a6c":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("zh-mo",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"D/M/YYYY",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}});return t}))},"3a9b":function(e,t,n){"use strict";var r=n("e330");e.exports=r({}.isPrototypeOf)},"3ac6":function(e,t,n){"use strict";(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||this||Function("return this")()}).call(this,n("c8ba"))},"3b1b":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"},n=e.defineLocale("tg",{months:{format:"январи_феврали_марти_апрели_майи_июни_июли_августи_сентябри_октябри_ноябри_декабри".split("_"),standalone:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_")},monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Имрӯз соати] LT",nextDay:"[Фардо соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/шаб|субҳ|рӯз|бегоҳ/,meridiemHour:function(e,t){return 12===e&&(e=0),"шаб"===t?e<4?e:e+12:"субҳ"===t?e:"рӯз"===t?e>=11?e:e+12:"бегоҳ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"шаб":e<11?"субҳ":e<16?"рӯз":e<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(e){var n=e%10,r=e>=100?100:null;return e+(t[e]||t[n]||t[r])},week:{dow:1,doy:7}});return n}))},"3b4c":function(e,t,n){e.exports=n("abf2")},"3b7b":function(e,t,n){"use strict";n("bbe3");var r=n("a169");e.exports=r("Array").indexOf},"3bbe":function(e,t,n){"use strict";var r=n("1626"),o=String,a=TypeError;e.exports=function(e){if("object"==typeof e||r(e))return e;throw a("Can't set "+o(e)+" as a prototype")}},"3c0d":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t={format:"leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),standalone:"ledna_února_března_dubna_května_června_července_srpna_září_října_listopadu_prosince".split("_")},n="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),r=[/^led/i,/^úno/i,/^bře/i,/^dub/i,/^kvě/i,/^(čvn|červen$|června)/i,/^(čvc|červenec|července)/i,/^srp/i,/^zář/i,/^říj/i,/^lis/i,/^pro/i],o=/^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;function a(e){return e>1&&e<5&&1!==~~(e/10)}function i(e,t,n,r){var o=e+" ";switch(n){case"s":return t||r?"pár sekund":"pár sekundami";case"ss":return t||r?o+(a(e)?"sekundy":"sekund"):o+"sekundami";case"m":return t?"minuta":r?"minutu":"minutou";case"mm":return t||r?o+(a(e)?"minuty":"minut"):o+"minutami";case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?o+(a(e)?"hodiny":"hodin"):o+"hodinami";case"d":return t||r?"den":"dnem";case"dd":return t||r?o+(a(e)?"dny":"dní"):o+"dny";case"M":return t||r?"měsíc":"měsícem";case"MM":return t||r?o+(a(e)?"měsíce":"měsíců"):o+"měsíci";case"y":return t||r?"rok":"rokem";case"yy":return t||r?o+(a(e)?"roky":"let"):o+"lety"}}var s=e.defineLocale("cs",{months:t,monthsShort:n,monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return s}))},"3c5d":function(e,t,n){"use strict";var r=n("da84"),o=n("c65b"),a=n("ebb5"),i=n("07fa"),s=n("182d"),c=n("7b0b"),l=n("d039"),u=r.RangeError,d=r.Int8Array,p=d&&d.prototype,f=p&&p.set,h=a.aTypedArray,m=a.exportTypedArrayMethod,v=!l((function(){var e=new Uint8ClampedArray(2);return o(f,e,{length:1,0:3},1),3!==e[1]})),g=v&&a.NATIVE_ARRAY_BUFFER_VIEWS&&l((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=c(e);if(v)return o(f,this,n,t);var r=this.length,a=i(n),l=0;if(a+t>r)throw u("Wrong length");while(l<a)this[t+l]=n[l++]}),!v||g)},"3ce8":function(e,t,n){"use strict";n("51b8"),e.exports=n("3ac6")},"3de5":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},n={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"},r=e.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",ss:"%d விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}வது/,ordinal:function(e){return e+"வது"},preparse:function(e){return e.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(e,t,n){return e<2?" யாமம்":e<6?" வைகறை":e<10?" காலை":e<14?" நண்பகல்":e<18?" எற்பாடு":e<22?" மாலை":" யாமம்"},meridiemHour:function(e,t){return 12===e&&(e=0),"யாமம்"===t?e<2?e:e+12:"வைகறை"===t||"காலை"===t||"நண்பகல்"===t&&e>=10?e:e+12},week:{dow:0,doy:6}});return r}))},"3e23":function(e,t,n){"use strict";var r=TypeError,o=9007199254740991;e.exports=function(e){if(e>o)throw r("Maximum allowed index exceeded");return e}},"3e47":function(e,t,n){"use strict";var r=n("cbd0").charAt,o=n("8c12"),a=n("2f5a"),i=n("b7a8"),s=n("ddb5"),c="String Iterator",l=a.set,u=a.getterFor(c);i(String,"String",(function(e){l(this,{type:c,string:o(e),index:0})}),(function(){var e,t=u(this),n=t.string,o=t.index;return o>=n.length?s(void 0,!0):(e=r(n,o),t.index+=e.length,s(e,!1))}))},"3e476":function(e,t,n){"use strict";var r=n("a5eb"),o=n("c1b2"),a=n("4180").f;r({target:"Object",stat:!0,forced:Object.defineProperty!==a,sham:!o},{defineProperty:a})},"3e80":function(e,t,n){"use strict";var r=n("ce18"),o=0,a=Math.random(),i=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+i(++o+a,36)}},"3e92":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},n={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"},r=e.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(e){return e.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ರಾತ್ರಿ"===t?e<4?e:e+12:"ಬೆಳಿಗ್ಗೆ"===t?e:"ಮಧ್ಯಾಹ್ನ"===t?e>=10?e:e+12:"ಸಂಜೆ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ರಾತ್ರಿ":e<10?"ಬೆಳಿಗ್ಗೆ":e<17?"ಮಧ್ಯಾಹ್ನ":e<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(e){return e+"ನೇ"},week:{dow:0,doy:6}});return r}))},"3eb1":function(e,t,n){"use strict";var r=n("0f7c"),o=n("00ce"),a=o("%Function.prototype.apply%"),i=o("%Function.prototype.call%"),s=o("%Reflect.apply%",!0)||r.call(i,a),c=o("%Object.getOwnPropertyDescriptor%",!0),l=o("%Object.defineProperty%",!0),u=o("%Math.max%");if(l)try{l({},"a",{value:1})}catch(p){l=null}e.exports=function(e){var t=s(r,i,arguments);if(c&&l){var n=c(t,"length");n.configurable&&l(t,"length",{value:1+u(0,e.length-(arguments.length-1))})}return t};var d=function(){return s(r,a,arguments)};l?l(e.exports,"apply",{value:d}):e.exports.apply=d},"3eda":function(e,t,n){"use strict";var r=n("9717");e.exports=/ipad|iphone|ipod/i.test(r)&&"undefined"!=typeof Pebble},"3ef4":function(e,t,n){"use strict";n.d(t,"a",(function(){return P}));var r=n("7a23"),o=n("0931"),a=n("0388"),i=n("54bb"),s=n("f5f6"),c=n("0898"),l=n("31e7");const u=["success","info","warning","error"],d=Object(s["a"])({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:o["isClient"]?document.body:void 0}),p=Object(c["b"])({customClass:{type:String,default:d.customClass},center:{type:Boolean,default:d.center},dangerouslyUseHTMLString:{type:Boolean,default:d.dangerouslyUseHTMLString},duration:{type:Number,default:d.duration},icon:{type:l["e"],default:d.icon},id:{type:String,default:d.id},message:{type:Object(c["c"])([String,Object,Function]),default:d.message},onClose:{type:Object(c["c"])(Function),required:!1},showClose:{type:Boolean,default:d.showClose},type:{type:String,values:u,default:d.type},offset:{type:Number,default:d.offset},zIndex:{type:Number,default:d.zIndex},grouping:{type:Boolean,default:d.grouping},repeatNum:{type:Number,default:d.repeatNum}}),f={destroy:()=>!0},h=Object(r["shallowReactive"])([]),m=e=>{const t=h.findIndex(t=>t.id===e),n=h[t];let r;return t>0&&(r=h[t-1]),{current:n,prev:r}},v=e=>{const{prev:t}=m(e);return t?t.vm.exposed.bottom.value:0},g=(e,t)=>{const n=h.findIndex(t=>t.id===e);return n>0?20:t};var _=n("2711"),y=n("edd9"),b=n("49c6");const O=["id"],M=["innerHTML"],k=Object(r["defineComponent"])({name:"ElMessage"}),C=Object(r["defineComponent"])({...k,props:p,emits:f,setup(e,{expose:t}){const n=e,{Close:s}=l["b"],{ns:c,zIndex:u}=Object(y["b"])("message"),{currentZIndex:d,nextZIndex:p}=u,f=Object(r["ref"])(),h=Object(r["ref"])(!1),m=Object(r["ref"])(0);let _=void 0;const k=Object(r["computed"])(()=>n.type?"error"===n.type?"danger":n.type:"info"),C=Object(r["computed"])(()=>{const e=n.type;return{[c.bm("icon",e)]:e&&l["c"][e]}}),w=Object(r["computed"])(()=>n.icon||l["c"][n.type]||""),I=Object(r["computed"])(()=>v(n.id)),S=Object(r["computed"])(()=>g(n.id,n.offset)+I.value),T=Object(r["computed"])(()=>m.value+S.value),E=Object(r["computed"])(()=>({top:S.value+"px",zIndex:d.value}));function j(){0!==n.duration&&({stop:_}=Object(o["useTimeoutFn"])(()=>{L()},n.duration))}function D(){null==_||_()}function L(){h.value=!1}function A({code:e}){e===b["a"].esc&&L()}return Object(r["onMounted"])(()=>{j(),p(),h.value=!0}),Object(r["watch"])(()=>n.repeatNum,()=>{D(),j()}),Object(o["useEventListener"])(document,"keydown",A),Object(o["useResizeObserver"])(f,()=>{m.value=f.value.getBoundingClientRect().height}),t({visible:h,bottom:T,close:L}),(e,t)=>(Object(r["openBlock"])(),Object(r["createBlock"])(r["Transition"],{name:Object(r["unref"])(c).b("fade"),onBeforeLeave:e.onClose,onAfterLeave:t[0]||(t[0]=t=>e.$emit("destroy")),persisted:""},{default:Object(r["withCtx"])(()=>[Object(r["withDirectives"])(Object(r["createElementVNode"])("div",{id:e.id,ref_key:"messageRef",ref:f,class:Object(r["normalizeClass"])([Object(r["unref"])(c).b(),{[Object(r["unref"])(c).m(e.type)]:e.type&&!e.icon},Object(r["unref"])(c).is("center",e.center),Object(r["unref"])(c).is("closable",e.showClose),e.customClass]),style:Object(r["normalizeStyle"])(Object(r["unref"])(E)),role:"alert",onMouseenter:D,onMouseleave:j},[e.repeatNum>1?(Object(r["openBlock"])(),Object(r["createBlock"])(Object(r["unref"])(a["a"]),{key:0,value:e.repeatNum,type:Object(r["unref"])(k),class:Object(r["normalizeClass"])(Object(r["unref"])(c).e("badge"))},null,8,["value","type","class"])):Object(r["createCommentVNode"])("v-if",!0),Object(r["unref"])(w)?(Object(r["openBlock"])(),Object(r["createBlock"])(Object(r["unref"])(i["a"]),{key:1,class:Object(r["normalizeClass"])([Object(r["unref"])(c).e("icon"),Object(r["unref"])(C)])},{default:Object(r["withCtx"])(()=>[(Object(r["openBlock"])(),Object(r["createBlock"])(Object(r["resolveDynamicComponent"])(Object(r["unref"])(w))))]),_:1},8,["class"])):Object(r["createCommentVNode"])("v-if",!0),Object(r["renderSlot"])(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],{key:1},[Object(r["createCommentVNode"])(" Caution here, message could've been compromised, never use user's input as message "),Object(r["createElementVNode"])("p",{class:Object(r["normalizeClass"])(Object(r["unref"])(c).e("content")),innerHTML:e.message},null,10,M)],2112)):(Object(r["openBlock"])(),Object(r["createElementBlock"])("p",{key:0,class:Object(r["normalizeClass"])(Object(r["unref"])(c).e("content"))},Object(r["toDisplayString"])(e.message),3))]),e.showClose?(Object(r["openBlock"])(),Object(r["createBlock"])(Object(r["unref"])(i["a"]),{key:2,class:Object(r["normalizeClass"])(Object(r["unref"])(c).e("closeBtn")),onClick:Object(r["withModifiers"])(L,["stop"])},{default:Object(r["withCtx"])(()=>[Object(r["createVNode"])(Object(r["unref"])(s))]),_:1},8,["class","onClick"])):Object(r["createCommentVNode"])("v-if",!0)],46,O),[[r["vShow"],h.value]])]),_:3},8,["name","onBeforeLeave"]))}});var w=Object(_["a"])(C,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]),I=n("7d20"),S=n("83ec"),T=n("8afb"),E=n("93b2");let j=1;const D=e=>{const t=!e||Object(I["isString"])(e)||Object(r["isVNode"])(e)||Object(I["isFunction"])(e)?{message:e}:e,n={...d,...t};if(n.appendTo){if(Object(I["isString"])(n.appendTo)){let e=document.querySelector(n.appendTo);Object(S["b"])(e)||(Object(T["a"])("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),e=document.body),n.appendTo=e}}else n.appendTo=document.body;return n},L=e=>{const t=h.indexOf(e);if(-1===t)return;h.splice(t,1);const{handler:n}=e;n.close()},A=({appendTo:e,...t},n)=>{const o="message_"+j++,a=t.onClose,i=document.createElement("div"),s={...t,id:o,onClose:()=>{null==a||a(),L(d)},onDestroy:()=>{Object(r["render"])(null,i)}},c=Object(r["createVNode"])(w,s,Object(I["isFunction"])(s.message)||Object(r["isVNode"])(s.message)?{default:Object(I["isFunction"])(s.message)?s.message:()=>s.message}:null);c.appContext=n||N._context,Object(r["render"])(c,i),e.appendChild(i.firstElementChild);const l=c.component,u={close:()=>{l.exposed.visible.value=!1}},d={id:o,vnode:c,vm:l,handler:u,props:c.component.props};return d},N=(e={},t)=>{if(!o["isClient"])return{close:()=>{}};if(Object(S["d"])(E["b"].max)&&h.length>=E["b"].max)return{close:()=>{}};const n=D(e);if(n.grouping&&h.length){const e=h.find(({vnode:e})=>{var t;return(null==(t=e.props)?void 0:t.message)===n.message});if(e)return e.props.repeatNum+=1,e.props.type=n.type,e.handler}const r=A(n,t);return h.push(r),r.handler};function x(e){for(const t of h)e&&e!==t.props.type||t.handler.close()}u.forEach(e=>{N[e]=(t={},n)=>{const r=D(t);return N({...r,type:e},n)}}),N.closeAll=x,N._context=null;var R=n("0c24");const P=Object(R["c"])(N,"$message")},"3f4e":function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("abc5");const o="devtools-plugin:setup",a="plugin:settings:set";var i=n("5134");class s{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(s){}this.fallbacks={getSettings(){return o},setSettings(e){try{localStorage.setItem(r,JSON.stringify(e))}catch(s){}o=e},now(){return Object(i["a"])()}},t&&t.on(a,(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 c(e,t){const n=e,a=Object(r["b"])(),i=Object(r["a"])(),c=r["c"]&&n.enableEarlyProxy;if(!i||!a.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__&&c){const e=c?new s(n,i):null,r=a.__VUE_DEVTOOLS_PLUGINS__=a.__VUE_DEVTOOLS_PLUGINS__||[];r.push({pluginDescriptor:n,setupFn:t,proxy:e}),e&&t(e.proxiedTarget)}else i.emit(o,e,t)}},4035:function(e,t,n){"use strict";var r=n("e332");e.exports=r},"40d5":function(e,t,n){"use strict";var r=n("d039");e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},"410b":function(e,t,n){"use strict";var r=n("a5eb"),o=n("dee0").map,a=n("9c96"),i=a("map");r({target:"Array",proto:!0,forced:!i},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},4127:function(e,t,n){"use strict";var r=n("5402"),o=n("d233"),a=n("b313"),i=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},c=Array.isArray,l=Array.prototype.push,u=function(e,t){l.apply(e,c(t)?t:[t])},d=Date.prototype.toISOString,p=a["default"],f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,format:p,formatter:a.formatters[p],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},h=function(e){return"string"===typeof e||"number"===typeof e||"boolean"===typeof e||"symbol"===typeof e||"bigint"===typeof e},m={},v=function e(t,n,a,i,s,l,d,p,v,g,_,y,b,O,M,k){var C=t,w=k,I=0,S=!1;while(void 0!==(w=w.get(m))&&!S){var T=w.get(t);if(I+=1,"undefined"!==typeof T){if(T===I)throw new RangeError("Cyclic object value");S=!0}"undefined"===typeof w.get(m)&&(I=0)}if("function"===typeof p?C=p(n,C):C instanceof Date?C=_(C):"comma"===a&&c(C)&&(C=o.maybeMap(C,(function(e){return e instanceof Date?_(e):e}))),null===C){if(s)return d&&!O?d(n,f.encoder,M,"key",y):n;C=""}if(h(C)||o.isBuffer(C)){if(d){var E=O?n:d(n,f.encoder,M,"key",y);return[b(E)+"="+b(d(C,f.encoder,M,"value",y))]}return[b(n)+"="+b(String(C))]}var j,D=[];if("undefined"===typeof C)return D;if("comma"===a&&c(C))O&&d&&(C=o.maybeMap(C,d)),j=[{value:C.length>0?C.join(",")||null:void 0}];else if(c(p))j=p;else{var L=Object.keys(C);j=v?L.sort(v):L}for(var A=i&&c(C)&&1===C.length?n+"[]":n,N=0;N<j.length;++N){var x=j[N],R="object"===typeof x&&"undefined"!==typeof x.value?x.value:C[x];if(!l||null!==R){var P=c(C)?"function"===typeof a?a(A,x):A:A+(g?"."+x:"["+x+"]");k.set(t,I);var U=r();U.set(m,k),u(D,e(R,P,a,i,s,l,"comma"===a&&O&&c(C)?null:d,p,v,g,_,y,b,O,M,U))}}return D},g=function(e){if(!e)return f;if(null!==e.encoder&&"undefined"!==typeof e.encoder&&"function"!==typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||f.charset;if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=a["default"];if("undefined"!==typeof e.format){if(!i.call(a.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=a.formatters[n],o=f.filter;return("function"===typeof e.filter||c(e.filter))&&(o=e.filter),{addQueryPrefix:"boolean"===typeof e.addQueryPrefix?e.addQueryPrefix:f.addQueryPrefix,allowDots:"undefined"===typeof e.allowDots?f.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:f.charsetSentinel,delimiter:"undefined"===typeof e.delimiter?f.delimiter:e.delimiter,encode:"boolean"===typeof e.encode?e.encode:f.encode,encoder:"function"===typeof e.encoder?e.encoder:f.encoder,encodeValuesOnly:"boolean"===typeof e.encodeValuesOnly?e.encodeValuesOnly:f.encodeValuesOnly,filter:o,format:n,formatter:r,serializeDate:"function"===typeof e.serializeDate?e.serializeDate:f.serializeDate,skipNulls:"boolean"===typeof e.skipNulls?e.skipNulls:f.skipNulls,sort:"function"===typeof e.sort?e.sort:null,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:f.strictNullHandling}};e.exports=function(e,t){var n,o,a=e,i=g(t);"function"===typeof i.filter?(o=i.filter,a=o("",a)):c(i.filter)&&(o=i.filter,n=o);var l,d=[];if("object"!==typeof a||null===a)return"";l=t&&t.arrayFormat in s?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var p=s[l];if(t&&"commaRoundTrip"in t&&"boolean"!==typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var f="comma"===p&&t&&t.commaRoundTrip;n||(n=Object.keys(a)),i.sort&&n.sort(i.sort);for(var h=r(),m=0;m<n.length;++m){var _=n[m];i.skipNulls&&null===a[_]||u(d,v(a[_],_,p,f,i.strictNullHandling,i.skipNulls,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,h))}var y=d.join(i.delimiter),b=!0===i.addQueryPrefix?"?":"";return i.charsetSentinel&&("iso-8859-1"===i.charset?b+="utf8=%26%2310003%3B&":b+="utf8=%E2%9C%93&"),y.length>0?b+y:""}},4180:function(e,t,n){"use strict";var r=n("c1b2"),o=n("77b2"),a=n("3940"),i=n("6f8d"),s=n("2c75"),c=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d="enumerable",p="configurable",f="writable";t.f=r?a?function(e,t,n){if(i(e),t=s(t),i(n),"function"===typeof e&&"prototype"===t&&"value"in n&&f in n&&!n[f]){var r=u(e,t);r&&r[f]&&(e[t]=n.value,n={configurable:p in n?n[p]:r[p],enumerable:d in n?n[d]:r[d],writable:!1})}return l(e,t,n)}:l:function(e,t,n){if(i(e),t=s(t),i(n),o)try{return l(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}},"41b5":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("1ad4");const o=r["c"].create({name:"doc",topNode:!0,content:"block+"})},4202:function(e,t,n){"use strict";n("147b");var r=n("a169");e.exports=r("Array").filter},4221:function(e,t,n){"use strict";n("e342");var r=n("764b");e.exports=r.Math.hypot},"423e":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}});return t}))},"42e6":function(e,t,n){"use strict";var r=n("06fa");e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},4328:function(e,t,n){"use strict";var r=n("4127"),o=n("9e6a"),a=n("b313");e.exports={formats:a,parse:o,stringify:r}},4344:function(e,t,n){"use strict";var r=n("1dda");e.exports=function(e,t){return new(r(e))(0===t?0:t)}},4362:function(e,t,n){t.nextTick=function(e){var t=Array.prototype.slice.call(arguments);t.shift(),setTimeout((function(){e.apply(null,t)}),0)},t.platform=t.arch=t.execPath=t.title="browser",t.pid=1,t.browser=!0,t.env={},t.argv=[],t.binding=function(e){throw new Error("No such module. (Possibly not yet loaded)")},function(){var e,r="/";t.cwd=function(){return r},t.chdir=function(t){e||(e=n("df7c")),r=e.resolve(t,r)}}(),t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},"437b":function(e,t,n){"use strict";var r=n("ce18");e.exports=r({}.isPrototypeOf)},4402:function(e,t,n){"use strict";var r=n("f446");e.exports=r},"440c":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
function t(e,t,n,r){var o={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?o[n][0]:o[n][1]}function n(e){var t=e.substr(0,e.indexOf(" "));return o(t)?"a "+e:"an "+e}function r(e){var t=e.substr(0,e.indexOf(" "));return o(t)?"viru "+e:"virun "+e}function o(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10,n=e/10;return o(0===t?n:t)}if(e<1e4){while(e>=10)e/=10;return o(e)}return e/=1e3,o(e)}var a=e.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:n,past:r,s:"e puer Sekonnen",ss:"%d Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d Méint",y:t,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return a}))},"446f":function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return s}));var r=n("9ad7"),o=n("0898"),a=n("27b6"),i=n("31e7");const s=["default","primary","success","warning","info","danger","text",""],c=["button","submit","reset"],l=Object(o["b"])({size:a["c"],disabled:Boolean,type:{type:String,values:s,default:""},icon:{type:i["e"]},nativeType:{type:String,values:c,default:"button"},loading:Boolean,loadingIcon:{type:i["e"],default:()=>r["Loading"]},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:Object(o["c"])([String,Object]),default:"button"}}),u={click:e=>e instanceof MouseEvent}},"44a4":function(e,t,n){e.exports=n("8eeb")},"44ad":function(e,t,n){"use strict";var r=n("e330"),o=n("d039"),a=n("c6b6"),i=Object,s=r("".split);e.exports=o((function(){return!i("z").propertyIsEnumerable(0)}))?function(e){return"String"==a(e)?s(e,""):i(e)}:i},"44b3":function(e,t,n){"use strict";n("4c06");var r=n("a169");e.exports=r("Array").reduce},"44ba":function(e,t,n){"use strict";var r=n("c1b2"),o=n("7106"),a=n("7043"),i=n("2c6c"),s=n("a421"),c=n("2c75"),l=n("0e6f"),u=n("77b2"),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=s(e),t=c(t),u)try{return d(e,t)}catch(n){}if(l(e,t))return i(!o(a.f,e,t),e[t])}},4500:function(e,t,n){"use strict";var r=n("a5eb"),o=n("7106"),a=n("ad27"),i=n("baa7").CONSTRUCTOR;r({target:"Promise",stat:!0,forced:i},{reject:function(e){var t=a.f(this);return o(t.reject,void 0,e),t.promise}})},4508:function(e,t,n){"use strict";var r=n("c7d2"),o=Math.max,a=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):a(n,t)}},4573:function(e,t,n){e.exports=n("24b4")},4625:function(e,t,n){"use strict";var r=n("c6b6"),o=n("e330");e.exports=function(e){if("Function"===r(e))return o(e)}},"464e":function(e,t,n){"use strict";var r=n("a5eb"),o=n("ce18"),a=Date,i=o(a.prototype.getTime);r({target:"Date",stat:!0},{now:function(){return i(new a)}})},"467f":function(e,t,n){"use strict";var r=n("2d83");e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},"471b":function(e,t,n){"use strict";var r=n("6414"),o=n("7106"),a=n("4fff"),i=n("faaa"),s=n("2616"),c=n("bae4"),l=n("c74f"),u=n("6c15"),d=n("d9f3"),p=n("0b7b"),f=Array;e.exports=function(e){var t=a(e),n=c(this),h=arguments.length,m=h>1?arguments[1]:void 0,v=void 0!==m;v&&(m=r(m,h>2?arguments[2]:void 0));var g,_,y,b,O,M,k=p(t),C=0;if(!k||this===f&&s(k))for(g=l(t),_=n?new this(g):f(g);g>C;C++)M=v?m(t[C],C):t[C],u(_,C,M);else for(b=d(t,k),O=b.next,_=n?new this:[];!(y=o(O,b)).done;C++)M=v?i(b,m,[y.value,C],!0):y.value,u(_,C,M);return _.length=C,_}},"47c7":function(e,t,n){e.exports=n("cdb4")},"47e2":function(e,t,n){"use strict";n.d(t,"a",(function(){return Xt})),n.d(t,"b",(function(){return Zt}));var r=n("f83d");
|
||
/*!
|
||
* message-compiler v9.2.2
|
||
* (c) 2022 kazuya kawaguchi
|
||
* Released under the MIT License.
|
||
*/const o={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,__EXTEND_POINT__:15};o.EXPECTED_TOKEN,o.INVALID_TOKEN_IN_PLACEHOLDER,o.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o.UNKNOWN_ESCAPE_SEQUENCE,o.INVALID_UNICODE_ESCAPE_SEQUENCE,o.UNBALANCED_CLOSING_BRACE,o.UNTERMINATED_CLOSING_BRACE,o.EMPTY_PLACEHOLDER,o.NOT_ALLOW_NEST_PLACEHOLDER,o.INVALID_LINKED_FORMAT,o.MUST_HAVE_MESSAGES_IN_PLURAL,o.UNEXPECTED_EMPTY_LINKED_MODIFIER,o.UNEXPECTED_EMPTY_LINKED_KEY,o.UNEXPECTED_LEXICAL_ANALYSIS;function a(e,t,n={}){const{domain:r,messages:o,args:a}=n,i=e,s=new SyntaxError(String(i));return s.code=e,t&&(s.location=t),s.domain=r,s}function i(e){throw e}function s(e,t,n){return{line:e,column:t,offset:n}}function c(e,t,n){const r={start:e,end:t};return null!=n&&(r.source=n),r}const l=" ",u="\r",d="\n",p=String.fromCharCode(8232),f=String.fromCharCode(8233);function h(e){const t=e;let n=0,r=1,o=1,a=0;const i=e=>t[e]===u&&t[e+1]===d,s=e=>t[e]===d,c=e=>t[e]===f,l=e=>t[e]===p,h=e=>i(e)||s(e)||c(e)||l(e),m=()=>n,v=()=>r,g=()=>o,_=()=>a,y=e=>i(e)||c(e)||l(e)?d:t[e],b=()=>y(n),O=()=>y(n+a);function M(){return a=0,h(n)&&(r++,o=0),i(n)&&n++,n++,o++,t[n]}function k(){return i(n+a)&&a++,a++,t[n+a]}function C(){n=0,r=1,o=1,a=0}function w(e=0){a=e}function I(){const e=n+a;while(e!==n)M();a=0}return{index:m,line:v,column:g,peekOffset:_,charAt:y,currentChar:b,currentPeek:O,next:M,peek:k,reset:C,resetPeek:w,skipToPeek:I}}const m=void 0,v="'",g="tokenizer";function _(e,t={}){const n=!1!==t.location,r=h(e),i=()=>r.index(),u=()=>s(r.line(),r.column(),r.index()),p=u(),f=i(),_={currentType:14,offset:f,startLoc:p,endLoc:p,lastType:14,lastOffset:f,lastStartLoc:p,lastEndLoc:p,braceNest:0,inLinked:!1,text:""},y=()=>_,{onError:b}=t;function O(e,t,n,...r){const o=y();if(t.column+=n,t.offset+=n,b){const n=c(o.startLoc,t),i=a(e,n,{domain:g,args:r});b(i)}}function M(e,t,r){e.endLoc=u(),e.currentType=t;const o={type:t};return n&&(o.loc=c(e.startLoc,e.endLoc)),null!=r&&(o.value=r),o}const k=e=>M(e,14);function C(e,t){return e.currentChar()===t?(e.next(),t):(O(o.EXPECTED_TOKEN,u(),0,t),"")}function w(e){let t="";while(e.currentPeek()===l||e.currentPeek()===d)t+=e.currentPeek(),e.peek();return t}function I(e){const t=w(e);return e.skipToPeek(),t}function S(e){if(e===m)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function T(e){if(e===m)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}function E(e,t){const{currentType:n}=t;if(2!==n)return!1;w(e);const r=S(e.currentPeek());return e.resetPeek(),r}function j(e,t){const{currentType:n}=t;if(2!==n)return!1;w(e);const r="-"===e.currentPeek()?e.peek():e.currentPeek(),o=T(r);return e.resetPeek(),o}function D(e,t){const{currentType:n}=t;if(2!==n)return!1;w(e);const r=e.currentPeek()===v;return e.resetPeek(),r}function L(e,t){const{currentType:n}=t;if(8!==n)return!1;w(e);const r="."===e.currentPeek();return e.resetPeek(),r}function A(e,t){const{currentType:n}=t;if(9!==n)return!1;w(e);const r=S(e.currentPeek());return e.resetPeek(),r}function N(e,t){const{currentType:n}=t;if(8!==n&&12!==n)return!1;w(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?S(e.peek()):!("@"===t||"%"===t||"|"===t||":"===t||"."===t||t===l||!t)&&(t===d?(e.peek(),r()):S(t))},o=r();return e.resetPeek(),o}function R(e){w(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function P(e){const t=w(e),n="%"===e.currentPeek()&&"{"===e.peek();return e.resetPeek(),{isModulo:n,hasSpace:t.length>0}}function U(e,t=!0){const n=(t=!1,r="",o=!1)=>{const a=e.currentPeek();return"{"===a?"%"!==r&&t:"@"!==a&&a?"%"===a?(e.peek(),n(t,"%",!0)):"|"===a?!("%"!==r&&!o)||!(r===l||r===d):a===l?(e.peek(),n(!0,l,o)):a!==d||(e.peek(),n(!0,d,o)):"%"===r||t},r=n();return t&&e.resetPeek(),r}function V(e,t){const n=e.currentChar();return n===m?m:t(n)?(e.next(),n):null}function B(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 V(e,t)}function F(e){const t=e=>{const t=e.charCodeAt(0);return t>=48&&t<=57};return V(e,t)}function G(e){const t=e=>{const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102};return V(e,t)}function z(e){let t="",n="";while(t=F(e))n+=t;return n}function H(e){I(e);const t=e.currentChar();return"%"!==t&&O(o.EXPECTED_TOKEN,u(),0,t),e.next(),"%"}function Y(e){let t="";while(1){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if("%"===n){if(!U(e))break;t+=n,e.next()}else if(n===l||n===d)if(U(e))t+=n,e.next();else{if(R(e))break;t+=n,e.next()}else t+=n,e.next()}return t}function q(e){I(e);let t="",n="";while(t=B(e))n+=t;return e.currentChar()===m&&O(o.UNTERMINATED_CLOSING_BRACE,u(),0),n}function W(e){I(e);let t="";return"-"===e.currentChar()?(e.next(),t+="-"+z(e)):t+=z(e),e.currentChar()===m&&O(o.UNTERMINATED_CLOSING_BRACE,u(),0),t}function K(e){I(e),C(e,"'");let t="",n="";const r=e=>e!==v&&e!==d;while(t=V(e,r))n+="\\"===t?$(e):t;const a=e.currentChar();return a===d||a===m?(O(o.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,u(),0),a===d&&(e.next(),C(e,"'")),n):(C(e,"'"),n)}function $(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),"\\"+t;case"u":return J(e,t,4);case"U":return J(e,t,6);default:return O(o.UNKNOWN_ESCAPE_SEQUENCE,u(),0,t),""}}function J(e,t,n){C(e,t);let r="";for(let a=0;a<n;a++){const n=G(e);if(!n){O(o.INVALID_UNICODE_ESCAPE_SEQUENCE,u(),0,`\\${t}${r}${e.currentChar()}`);break}r+=n}return`\\${t}${r}`}function Q(e){I(e);let t="",n="";const r=e=>"{"!==e&&"}"!==e&&e!==l&&e!==d;while(t=V(e,r))n+=t;return n}function X(e){let t="",n="";while(t=B(e))n+=t;return n}function Z(e){const t=(n=!1,r)=>{const o=e.currentChar();return"{"!==o&&"%"!==o&&"@"!==o&&"|"!==o&&o?o===l?r:o===d?(r+=o,e.next(),t(n,r)):(r+=o,e.next(),t(!0,r)):r};return t(!1,"")}function ee(e){I(e);const t=C(e,"|");return I(e),t}function te(e,t){let n=null;const r=e.currentChar();switch(r){case"{":return t.braceNest>=1&&O(o.NOT_ALLOW_NEST_PLACEHOLDER,u(),0),e.next(),n=M(t,2,"{"),I(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&O(o.EMPTY_PLACEHOLDER,u(),0),e.next(),n=M(t,3,"}"),t.braceNest--,t.braceNest>0&&I(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&O(o.UNTERMINATED_CLOSING_BRACE,u(),0),n=ne(e,t)||k(t),t.braceNest=0,n;default:let r=!0,a=!0,i=!0;if(R(e))return t.braceNest>0&&O(o.UNTERMINATED_CLOSING_BRACE,u(),0),n=M(t,1,ee(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(5===t.currentType||6===t.currentType||7===t.currentType))return O(o.UNTERMINATED_CLOSING_BRACE,u(),0),t.braceNest=0,re(e,t);if(r=E(e,t))return n=M(t,5,q(e)),I(e),n;if(a=j(e,t))return n=M(t,6,W(e)),I(e),n;if(i=D(e,t))return n=M(t,7,K(e)),I(e),n;if(!r&&!a&&!i)return n=M(t,13,Q(e)),O(o.INVALID_TOKEN_IN_PLACEHOLDER,u(),0,n.value),I(e),n;break}return n}function ne(e,t){const{currentType:n}=t;let r=null;const a=e.currentChar();switch(8!==n&&9!==n&&12!==n&&10!==n||a!==d&&a!==l||O(o.INVALID_LINKED_FORMAT,u(),0),a){case"@":return e.next(),r=M(t,8,"@"),t.inLinked=!0,r;case".":return I(e),e.next(),M(t,9,".");case":":return I(e),e.next(),M(t,10,":");default:return R(e)?(r=M(t,1,ee(e)),t.braceNest=0,t.inLinked=!1,r):L(e,t)||N(e,t)?(I(e),ne(e,t)):A(e,t)?(I(e),M(t,12,X(e))):x(e,t)?(I(e),"{"===a?te(e,t)||r:M(t,11,Z(e))):(8===n&&O(o.INVALID_LINKED_FORMAT,u(),0),t.braceNest=0,t.inLinked=!1,re(e,t))}}function re(e,t){let n={type:14};if(t.braceNest>0)return te(e,t)||k(t);if(t.inLinked)return ne(e,t)||k(t);const r=e.currentChar();switch(r){case"{":return te(e,t)||k(t);case"}":return O(o.UNBALANCED_CLOSING_BRACE,u(),0),e.next(),M(t,3,"}");case"@":return ne(e,t)||k(t);default:if(R(e))return n=M(t,1,ee(e)),t.braceNest=0,t.inLinked=!1,n;const{isModulo:r,hasSpace:a}=P(e);if(r)return a?M(t,0,Y(e)):M(t,4,H(e));if(U(e))return M(t,0,Y(e));break}return n}function oe(){const{currentType:e,offset:t,startLoc:n,endLoc:o}=_;return _.lastType=e,_.lastOffset=t,_.lastStartLoc=n,_.lastEndLoc=o,_.offset=i(),_.startLoc=u(),r.currentChar()===m?M(_,14):re(r,_)}return{nextToken:oe,currentOffset:i,currentPosition:u,context:y}}const y="parser",b=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function O(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 M(e={}){const t=!1!==e.location,{onError:n}=e;function i(e,t,r,o,...i){const s=e.currentPosition();if(s.offset+=o,s.column+=o,n){const e=c(r,s),o=a(t,e,{domain:y,args:i});n(o)}}function s(e,n,r){const o={type:e,start:n,end:n};return t&&(o.loc={start:r,end:r}),o}function l(e,n,r,o){e.end=n,o&&(e.type=o),t&&e.loc&&(e.loc.end=r)}function u(e,t){const n=e.context(),r=s(3,n.offset,n.startLoc);return r.value=t,l(r,e.currentOffset(),e.currentPosition()),r}function d(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:o}=n,a=s(5,r,o);return a.index=parseInt(t,10),e.nextToken(),l(a,e.currentOffset(),e.currentPosition()),a}function p(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:o}=n,a=s(4,r,o);return a.key=t,e.nextToken(),l(a,e.currentOffset(),e.currentPosition()),a}function f(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:o}=n,a=s(9,r,o);return a.value=t.replace(b,O),e.nextToken(),l(a,e.currentOffset(),e.currentPosition()),a}function h(e){const t=e.nextToken(),n=e.context(),{lastOffset:r,lastStartLoc:a}=n,c=s(8,r,a);return 12!==t.type?(i(e,o.UNEXPECTED_EMPTY_LINKED_MODIFIER,n.lastStartLoc,0),c.value="",l(c,r,a),{nextConsumeToken:t,node:c}):(null==t.value&&i(e,o.UNEXPECTED_LEXICAL_ANALYSIS,n.lastStartLoc,0,k(t)),c.value=t.value||"",l(c,e.currentOffset(),e.currentPosition()),{node:c})}function m(e,t){const n=e.context(),r=s(7,n.offset,n.startLoc);return r.value=t,l(r,e.currentOffset(),e.currentPosition()),r}function v(e){const t=e.context(),n=s(6,t.offset,t.startLoc);let r=e.nextToken();if(9===r.type){const t=h(e);n.modifier=t.node,r=t.nextConsumeToken||e.nextToken()}switch(10!==r.type&&i(e,o.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,k(r)),r=e.nextToken(),2===r.type&&(r=e.nextToken()),r.type){case 11:null==r.value&&i(e,o.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,k(r)),n.key=m(e,r.value||"");break;case 5:null==r.value&&i(e,o.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,k(r)),n.key=p(e,r.value||"");break;case 6:null==r.value&&i(e,o.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,k(r)),n.key=d(e,r.value||"");break;case 7:null==r.value&&i(e,o.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,k(r)),n.key=f(e,r.value||"");break;default:i(e,o.UNEXPECTED_EMPTY_LINKED_KEY,t.lastStartLoc,0);const a=e.context(),c=s(7,a.offset,a.startLoc);return c.value="",l(c,a.offset,a.startLoc),n.key=c,l(n,a.offset,a.startLoc),{nextConsumeToken:r,node:n}}return l(n,e.currentOffset(),e.currentPosition()),{node:n}}function g(e){const t=e.context(),n=1===t.currentType?e.currentOffset():t.offset,r=1===t.currentType?t.endLoc:t.startLoc,a=s(2,n,r);a.items=[];let c=null;do{const n=c||e.nextToken();switch(c=null,n.type){case 0:null==n.value&&i(e,o.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,k(n)),a.items.push(u(e,n.value||""));break;case 6:null==n.value&&i(e,o.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,k(n)),a.items.push(d(e,n.value||""));break;case 5:null==n.value&&i(e,o.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,k(n)),a.items.push(p(e,n.value||""));break;case 7:null==n.value&&i(e,o.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,k(n)),a.items.push(f(e,n.value||""));break;case 8:const r=v(e);a.items.push(r.node),c=r.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 l(a,h,m),a}function M(e,t,n,r){const a=e.context();let c=0===r.items.length;const u=s(1,t,n);u.cases=[],u.cases.push(r);do{const t=g(e);c||(c=0===t.items.length),u.cases.push(t)}while(14!==a.currentType);return c&&i(e,o.MUST_HAVE_MESSAGES_IN_PLURAL,n,0),l(u,e.currentOffset(),e.currentPosition()),u}function C(e){const t=e.context(),{offset:n,startLoc:r}=t,o=g(e);return 14===t.currentType?o:M(e,n,r,o)}function w(n){const a=_(n,Object(r["a"])({},e)),c=a.context(),u=s(0,c.offset,c.startLoc);return t&&u.loc&&(u.loc.source=n),u.body=C(a),14!==c.currentType&&i(a,o.UNEXPECTED_LEXICAL_ANALYSIS,c.lastStartLoc,0,n[c.offset]||""),l(u,a.currentOffset(),a.currentPosition()),u}return{parse:w}}function k(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 C(e,t={}){const n={ast:e,helpers:new Set},r=()=>n,o=e=>(n.helpers.add(e),e);return{context:r,helper:o}}function w(e,t){for(let n=0;n<e.length;n++)I(e[n],t)}function I(e,t){switch(e.type){case 1:w(e.cases,t),t.helper("plural");break;case 2:w(e.items,t);break;case 6:const n=e;I(n.key,t),t.helper("linked"),t.helper("type");break;case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function S(e,t={}){const n=C(e);n.helper("normalize"),e.body&&I(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function T(e,t){const{sourceMap:n,filename:r,breakLineCode:o,needIndent:a}=t,i={source:e.loc.source,filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:o,needIndent:a,indentLevel:0},s=()=>i;function c(e,t){i.code+=e}function l(e,t=!0){const n=t?o:"";c(a?n+" ".repeat(e):n)}function u(e=!0){const t=++i.indentLevel;e&&l(t)}function d(e=!0){const t=--i.indentLevel;e&&l(t)}function p(){l(i.indentLevel)}const f=e=>"_"+e,h=()=>i.needIndent;return{context:s,push:c,indent:u,deindent:d,newline:p,helper:f,needIndent:h}}function E(e,t){const{helper:n}=e;e.push(n("linked")+"("),A(e,t.key),t.modifier?(e.push(", "),A(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function j(e,t){const{helper:n,needIndent:r}=e;e.push(n("normalize")+"(["),e.indent(r());const o=t.items.length;for(let a=0;a<o;a++){if(A(e,t.items[a]),a===o-1)break;e.push(", ")}e.deindent(r()),e.push("])")}function D(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(A(e,t.cases[n]),n===o-1)break;e.push(", ")}e.deindent(r()),e.push("])")}}function L(e,t){t.body?A(e,t.body):e.push("null")}function A(e,t){const{helper:n}=e;switch(t.type){case 0:L(e,t);break;case 1:D(e,t);break;case 2:j(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 N=(e,t={})=>{const n=Object(r["q"])(t.mode)?t.mode:"normal",o=Object(r["q"])(t.filename)?t.filename:"message.intl",a=!!t.sourceMap,i=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",s=t.needIndent?t.needIndent:"arrow"!==n,c=e.helpers||[],l=T(e,{mode:n,filename:o,sourceMap:a,breakLineCode:i,needIndent:s});l.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(s),c.length>0&&(l.push(`const { ${c.map(e=>`${e}: _${e}`).join(", ")} } = ctx`),l.newline()),l.push("return "),A(l,e),l.deindent(s),l.push("}");const{code:u,map:d}=l.context();return{ast:e,code:u,map:d?d.toJSON():void 0}};function x(e,t={}){const n=Object(r["a"])({},t),o=M(n),a=o.parse(e);return S(a,n),N(a,n)}
|
||
/*!
|
||
* devtools-if v9.2.2
|
||
* (c) 2022 kazuya kawaguchi
|
||
* Released under the MIT License.
|
||
*/const R={I18nInit:"i18n:init",FunctionTranslate:"function:translate"},P=[];
|
||
/*!
|
||
* core-base v9.2.2
|
||
* (c) 2022 kazuya kawaguchi
|
||
* Released under the MIT License.
|
||
*/P[0]={["w"]:[0],["i"]:[3,0],["["]:[4],["o"]:[7]},P[1]={["w"]:[1],["."]:[2],["["]:[4],["o"]:[7]},P[2]={["w"]:[2],["i"]:[3,0],["0"]:[3,0]},P[3]={["i"]:[3,0],["0"]:[3,0],["w"]:[1,1],["."]:[2,1],["["]:[4,1],["o"]:[7,1]},P[4]={["'"]:[5,0],['"']:[6,0],["["]:[4,2],["]"]:[1,3],["o"]:8,["l"]:[4,0]},P[5]={["'"]:[4,0],["o"]:8,["l"]:[5,0]},P[6]={['"']:[4,0],["o"]:8,["l"]:[6,0]};const U=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function V(e){return U.test(e)}function B(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 F(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 G(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(V(t)?B(t):"*"+t)}function z(e){const t=[];let n,r,o,a,i,s,c,l=-1,u=0,d=0;const p=[];function f(){const t=e[l+1];if(5===u&&"'"===t||6===u&&'"'===t)return l++,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=G(r),!1===r)return!1;p[1]()}};while(null!==u)if(l++,n=e[l],"\\"!==n||!f()){if(a=F(n),c=P[u],i=c[a]||c["l"]||8,8===i)return;if(u=i[0],void 0!==i[1]&&(s=p[i[1]],s&&(o=n,!1===s())))return;if(7===u)return t}}const H=new Map;function Y(e,t){return Object(r["n"])(e)?e[t]:null}function q(e,t){if(!Object(r["n"])(e))return null;let n=H.get(t);if(n||(n=z(t),n&&H.set(t,n)),!n)return null;const o=n.length;let a=e,i=0;while(i<o){const e=a[n[i]];if(void 0===e)return null;a=e,i++}return a}const W=e=>e,K=e=>"",$="text",J=e=>0===e.length?"":e.join(""),Q=r["s"];function X(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=Object(r["m"])(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Object(r["m"])(e.named.count)||Object(r["m"])(e.named.n))?Object(r["m"])(e.named.count)?e.named.count:Object(r["m"])(e.named.n)?e.named.n:t:t}function ee(e,t){t.count||(t.count=e),t.n||(t.n=e)}function te(e={}){const t=e.locale,n=Z(e),o=Object(r["n"])(e.pluralRules)&&Object(r["q"])(t)&&Object(r["l"])(e.pluralRules[t])?e.pluralRules[t]:X,a=Object(r["n"])(e.pluralRules)&&Object(r["q"])(t)&&Object(r["l"])(e.pluralRules[t])?X:void 0,i=e=>e[o(n,e.length,a)],s=e.list||[],c=e=>s[e],l=e.named||{};Object(r["m"])(e.pluralIndex)&&ee(n,l);const u=e=>l[e];function d(t){const n=Object(r["l"])(e.messages)?e.messages(t):!!Object(r["n"])(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):K)}const p=t=>e.modifiers?e.modifiers[t]:W,f=Object(r["o"])(e.processor)&&Object(r["l"])(e.processor.normalize)?e.processor.normalize:J,h=Object(r["o"])(e.processor)&&Object(r["l"])(e.processor.interpolate)?e.processor.interpolate:Q,m=Object(r["o"])(e.processor)&&Object(r["q"])(e.processor.type)?e.processor.type:$,v=(e,...t)=>{const[n,o]=t;let a="text",i="";1===t.length?Object(r["n"])(n)?(i=n.modifier||i,a=n.type||a):Object(r["q"])(n)&&(i=n||i):2===t.length&&(Object(r["q"])(n)&&(i=n||i),Object(r["q"])(o)&&(a=o||a));let s=d(e)(g);return"vnode"===a&&Object(r["h"])(s)&&i&&(s=s[0]),i?p(i)(s,a):s},g={["list"]:c,["named"]:u,["plural"]:i,["linked"]:v,["message"]:d,["type"]:m,["interpolate"]:h,["normalize"]:f};return g}let ne=null;function re(e){ne=e}function oe(e,t,n){ne&&ne.emit(R.I18nInit,{timestamp:Date.now(),i18n:e,version:t,meta:n})}const ae=ie(R.FunctionTranslate);function ie(e){return t=>ne&&ne.emit(e,t)}const se={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,__EXTEND_POINT__:7};se.NOT_FOUND_KEY,se.FALLBACK_TO_TRANSLATE,se.CANNOT_FORMAT_NUMBER,se.FALLBACK_TO_NUMBER_FORMAT,se.CANNOT_FORMAT_DATE,se.FALLBACK_TO_DATE_FORMAT;function ce(e,t,n){return[...new Set([n,...Object(r["h"])(t)?t:Object(r["n"])(t)?Object.keys(t):Object(r["q"])(t)?[t]:[n]])]}function le(e,t,n){const o=Object(r["q"])(n)?n:me,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let i=a.__localeChainCache.get(o);if(!i){i=[];let e=[n];while(Object(r["h"])(e))e=ue(i,e,t);const s=Object(r["h"])(t)||!Object(r["o"])(t)?t:t["default"]?t["default"]:null;e=Object(r["q"])(s)?[s]:s,Object(r["h"])(e)&&ue(i,e,!1),a.__localeChainCache.set(o,i)}return i}function ue(e,t,n){let o=!0;for(let a=0;a<t.length&&Object(r["i"])(o);a++){const i=t[a];Object(r["q"])(i)&&(o=de(e,t[a],n))}return o}function de(e,t,n){let r;const o=t.split("-");do{const t=o.join("-");r=pe(e,t,n),o.splice(-1,1)}while(o.length&&!0===r);return r}function pe(e,t,n){let o=!1;if(!e.includes(t)&&(o=!0,t)){o="!"!==t[t.length-1];const a=t.replace(/!/g,"");e.push(a),(Object(r["h"])(n)||Object(r["o"])(n))&&n[a]&&(o=n[a])}return o}const fe="9.2.2",he=-1,me="en-US",ve="",ge=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function _e(){return{upper:(e,t)=>"text"===t&&Object(r["q"])(e)?e.toUpperCase():"vnode"===t&&Object(r["n"])(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&Object(r["q"])(e)?e.toLowerCase():"vnode"===t&&Object(r["n"])(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&Object(r["q"])(e)?ge(e):"vnode"===t&&Object(r["n"])(e)&&"__v_isVNode"in e?ge(e.children):e}}let ye,be,Oe;function Me(e){ye=e}function ke(e){be=e}function Ce(e){Oe=e}let we=null;const Ie=e=>{we=e},Se=()=>we;let Te=null;const Ee=e=>{Te=e},je=()=>Te;let De=0;function Le(e={}){const t=Object(r["q"])(e.version)?e.version:fe,n=Object(r["q"])(e.locale)?e.locale:me,o=Object(r["h"])(e.fallbackLocale)||Object(r["o"])(e.fallbackLocale)||Object(r["q"])(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,a=Object(r["o"])(e.messages)?e.messages:{[n]:{}},i=Object(r["o"])(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},s=Object(r["o"])(e.numberFormats)?e.numberFormats:{[n]:{}},c=Object(r["a"])({},e.modifiers||{},_e()),l=e.pluralRules||{},u=Object(r["l"])(e.missing)?e.missing:null,d=!Object(r["i"])(e.missingWarn)&&!Object(r["p"])(e.missingWarn)||e.missingWarn,p=!Object(r["i"])(e.fallbackWarn)&&!Object(r["p"])(e.fallbackWarn)||e.fallbackWarn,f=!!e.fallbackFormat,h=!!e.unresolving,m=Object(r["l"])(e.postTranslation)?e.postTranslation:null,v=Object(r["o"])(e.processor)?e.processor:null,g=!Object(r["i"])(e.warnHtmlMessage)||e.warnHtmlMessage,_=!!e.escapeParameter,y=Object(r["l"])(e.messageCompiler)?e.messageCompiler:ye,b=Object(r["l"])(e.messageResolver)?e.messageResolver:be||Y,O=Object(r["l"])(e.localeFallbacker)?e.localeFallbacker:Oe||ce,M=Object(r["n"])(e.fallbackContext)?e.fallbackContext:void 0,k=Object(r["l"])(e.onWarn)?e.onWarn:r["t"],C=e,w=Object(r["n"])(C.__datetimeFormatters)?C.__datetimeFormatters:new Map,I=Object(r["n"])(C.__numberFormatters)?C.__numberFormatters:new Map,S=Object(r["n"])(C.__meta)?C.__meta:{};De++;const T={version:t,cid:De,locale:n,fallbackLocale:o,messages:a,modifiers:c,pluralRules:l,missing:u,missingWarn:d,fallbackWarn:p,fallbackFormat:f,unresolving:h,postTranslation:m,processor:v,warnHtmlMessage:g,escapeParameter:_,messageCompiler:y,messageResolver:b,localeFallbacker:O,fallbackContext:M,onWarn:k,__meta:S};return T.datetimeFormats=i,T.numberFormats=s,T.__datetimeFormatters=w,T.__numberFormatters=I,__INTLIFY_PROD_DEVTOOLS__&&oe(T,t,S),T}function Ae(e,t,n,o,a){const{missing:i,onWarn:s}=e;if(null!==i){const o=i(e,n,t,a);return Object(r["q"])(o)?o:t}return t}function Ne(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}const xe=e=>e;let Re=Object.create(null);function Pe(e,t={}){{const n=t.onCacheKey||xe,r=n(e),o=Re[r];if(o)return o;let a=!1;const s=t.onError||i;t.onError=e=>{a=!0,s(e)};const{code:c}=x(e,t),l=new Function("return "+c)();return a?l:Re[r]=l}}let Ue=o.__EXTEND_POINT__;const Ve=()=>++Ue,Be={INVALID_ARGUMENT:Ue,INVALID_DATE_ARGUMENT:Ve(),INVALID_ISO_DATE_ARGUMENT:Ve(),__EXTEND_POINT__:Ve()};function Fe(e){return a(e,null,void 0)}Be.INVALID_ARGUMENT,Be.INVALID_DATE_ARGUMENT,Be.INVALID_ISO_DATE_ARGUMENT;const Ge=()=>"",ze=e=>Object(r["l"])(e);function He(e,...t){const{fallbackFormat:n,postTranslation:o,unresolving:a,messageCompiler:i,fallbackLocale:s,messages:c}=e,[l,u]=$e(...t),d=Object(r["i"])(u.missingWarn)?u.missingWarn:e.missingWarn,p=Object(r["i"])(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,f=Object(r["i"])(u.escapeParameter)?u.escapeParameter:e.escapeParameter,h=!!u.resolvedMessage,m=Object(r["q"])(u.default)||Object(r["i"])(u.default)?Object(r["i"])(u.default)?i?l:()=>l:u.default:n?i?l:()=>l:"",v=n||""!==m,g=Object(r["q"])(u.locale)?u.locale:e.locale;f&&Ye(u);let[_,y,b]=h?[l,g,c[g]||{}]:qe(e,l,g,s,p,d),O=_,M=l;if(h||Object(r["q"])(O)||ze(O)||v&&(O=m,M=O),!h&&(!Object(r["q"])(O)&&!ze(O)||!Object(r["q"])(y)))return a?he:l;let k=!1;const C=()=>{k=!0},w=ze(O)?O:We(e,l,y,O,M,C);if(k)return O;const I=Qe(e,y,b,u),S=te(I),T=Ke(e,w,S),E=o?o(T,l):T;if(__INTLIFY_PROD_DEVTOOLS__){const t={timestamp:Date.now(),key:Object(r["q"])(l)?l:ze(O)?O.key:"",locale:y||(ze(O)?O.locale:""),format:Object(r["q"])(O)?O:ze(O)?O.source:"",message:E};t.meta=Object(r["a"])({},e.__meta,Se()||{}),ae(t)}return E}function Ye(e){Object(r["h"])(e.list)?e.list=e.list.map(e=>Object(r["q"])(e)?Object(r["b"])(e):e):Object(r["n"])(e.named)&&Object.keys(e.named).forEach(t=>{Object(r["q"])(e.named[t])&&(e.named[t]=Object(r["b"])(e.named[t]))})}function qe(e,t,n,o,a,i){const{messages:s,onWarn:c,messageResolver:l,localeFallbacker:u}=e,d=u(e,o,n);let p,f={},h=null,m=n,v=null;const g="translate";for(let _=0;_<d.length;_++){p=v=d[_],f=s[p]||{};if(null===(h=l(f,t))&&(h=f[t]),Object(r["q"])(h)||Object(r["l"])(h))break;const n=Ae(e,t,p,i,g);n!==t&&(h=n),m=v}return[h,p,f]}function We(e,t,n,r,o,a){const{messageCompiler:i,warnHtmlMessage:s}=e;if(ze(r)){const e=r;return e.locale=e.locale||n,e.key=e.key||t,e}if(null==i){const e=()=>r;return e.locale=n,e.key=t,e}const c=i(r,Je(e,n,o,r,s,a));return c.locale=n,c.key=t,c.source=r,c}function Ke(e,t,n){const r=t(n);return r}function $e(...e){const[t,n,o]=e,a={};if(!Object(r["q"])(t)&&!Object(r["m"])(t)&&!ze(t))throw Fe(Be.INVALID_ARGUMENT);const i=Object(r["m"])(t)?String(t):(ze(t),t);return Object(r["m"])(n)?a.plural=n:Object(r["q"])(n)?a.default=n:Object(r["o"])(n)&&!Object(r["k"])(n)?a.named=n:Object(r["h"])(n)&&(a.list=n),Object(r["m"])(o)?a.plural=o:Object(r["q"])(o)?a.default=o:Object(r["o"])(o)&&Object(r["a"])(a,o),[i,a]}function Je(e,t,n,o,a,i){return{warnHtmlMessage:a,onError:e=>{throw i&&i(e),e},onCacheKey:e=>Object(r["d"])(t,n,e)}}function Qe(e,t,n,o){const{modifiers:a,pluralRules:i,messageResolver:s,fallbackLocale:c,fallbackWarn:l,missingWarn:u,fallbackContext:d}=e,p=o=>{let a=s(n,o);if(null==a&&d){const[,,e]=qe(d,o,t,c,l,u);a=s(e,o)}if(Object(r["q"])(a)){let n=!1;const r=()=>{n=!0},i=We(e,o,t,a,o,r);return n?Ge:i}return ze(a)?a:Ge},f={locale:t,modifiers:a,pluralRules:i,messages:p};return e.processor&&(f.processor=e.processor),o.list&&(f.list=o.list),o.named&&(f.named=o.named),Object(r["m"])(o.plural)&&(f.pluralIndex=o.plural),f}const Xe="undefined"!==typeof Intl;Xe&&Intl.DateTimeFormat,Xe&&Intl.NumberFormat;function Ze(e,...t){const{datetimeFormats:n,unresolving:o,fallbackLocale:a,onWarn:i,localeFallbacker:s}=e,{__datetimeFormatters:c}=e;const[l,u,d,p]=tt(...t),f=Object(r["i"])(d.missingWarn)?d.missingWarn:e.missingWarn,h=(Object(r["i"])(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn,!!d.part),m=Object(r["q"])(d.locale)?d.locale:e.locale,v=s(e,a,m);if(!Object(r["q"])(l)||""===l)return new Intl.DateTimeFormat(m,p).format(u);let g,_={},y=null,b=m,O=null;const M="datetime format";for(let w=0;w<v.length;w++){if(g=O=v[w],_=n[g]||{},y=_[l],Object(r["o"])(y))break;Ae(e,l,g,f,M),b=O}if(!Object(r["o"])(y)||!Object(r["q"])(g))return o?he:l;let k=`${g}__${l}`;Object(r["k"])(p)||(k=`${k}__${JSON.stringify(p)}`);let C=c.get(k);return C||(C=new Intl.DateTimeFormat(g,Object(r["a"])({},y,p)),c.set(k,C)),h?C.formatToParts(u):C.format(u)}const et=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function tt(...e){const[t,n,o,a]=e,i={};let s,c={};if(Object(r["q"])(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Fe(Be.INVALID_ISO_DATE_ARGUMENT);const n=e[3]?e[3].trim().startsWith("T")?`${e[1].trim()}${e[3].trim()}`:`${e[1].trim()}T${e[3].trim()}`:e[1].trim();s=new Date(n);try{s.toISOString()}catch(l){throw Fe(Be.INVALID_ISO_DATE_ARGUMENT)}}else if(Object(r["j"])(t)){if(isNaN(t.getTime()))throw Fe(Be.INVALID_DATE_ARGUMENT);s=t}else{if(!Object(r["m"])(t))throw Fe(Be.INVALID_ARGUMENT);s=t}return Object(r["q"])(n)?i.key=n:Object(r["o"])(n)&&Object.keys(n).forEach(e=>{et.includes(e)?c[e]=n[e]:i[e]=n[e]}),Object(r["q"])(o)?i.locale=o:Object(r["o"])(o)&&(c=o),Object(r["o"])(a)&&(c=a),[i.key||"",s,i,c]}function nt(e,t,n){const r=e;for(const o in n){const e=`${t}__${o}`;r.__datetimeFormatters.has(e)&&r.__datetimeFormatters.delete(e)}}function rt(e,...t){const{numberFormats:n,unresolving:o,fallbackLocale:a,onWarn:i,localeFallbacker:s}=e,{__numberFormatters:c}=e;const[l,u,d,p]=at(...t),f=Object(r["i"])(d.missingWarn)?d.missingWarn:e.missingWarn,h=(Object(r["i"])(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn,!!d.part),m=Object(r["q"])(d.locale)?d.locale:e.locale,v=s(e,a,m);if(!Object(r["q"])(l)||""===l)return new Intl.NumberFormat(m,p).format(u);let g,_={},y=null,b=m,O=null;const M="number format";for(let w=0;w<v.length;w++){if(g=O=v[w],_=n[g]||{},y=_[l],Object(r["o"])(y))break;Ae(e,l,g,f,M),b=O}if(!Object(r["o"])(y)||!Object(r["q"])(g))return o?he:l;let k=`${g}__${l}`;Object(r["k"])(p)||(k=`${k}__${JSON.stringify(p)}`);let C=c.get(k);return C||(C=new Intl.NumberFormat(g,Object(r["a"])({},y,p)),c.set(k,C)),h?C.formatToParts(u):C.format(u)}const ot=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function at(...e){const[t,n,o,a]=e,i={};let s={};if(!Object(r["m"])(t))throw Fe(Be.INVALID_ARGUMENT);const c=t;return Object(r["q"])(n)?i.key=n:Object(r["o"])(n)&&Object.keys(n).forEach(e=>{ot.includes(e)?s[e]=n[e]:i[e]=n[e]}),Object(r["q"])(o)?i.locale=o:Object(r["o"])(o)&&(s=o),Object(r["o"])(a)&&(s=a),[i.key||"",c,i,s]}function it(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__&&(Object(r["e"])().__INTLIFY_PROD_DEVTOOLS__=!1);var st=n("7a23");n("3f4e");
|
||
/*!
|
||
* vue-devtools v9.2.2
|
||
* (c) 2022 kazuya kawaguchi
|
||
* Released under the MIT License.
|
||
*/
|
||
const ct="9.2.2";function lt(){let e=!1;"boolean"!==typeof __VUE_I18N_FULL_INSTALL__&&(e=!0,Object(r["e"])().__VUE_I18N_FULL_INSTALL__=!0),"boolean"!==typeof __VUE_I18N_LEGACY_API__&&(e=!0,Object(r["e"])().__VUE_I18N_LEGACY_API__=!0),"boolean"!==typeof __INTLIFY_PROD_DEVTOOLS__&&(Object(r["e"])().__INTLIFY_PROD_DEVTOOLS__=!1)}let ut=se.__EXTEND_POINT__;const dt=()=>++ut,pt={FALLBACK_TO_ROOT:ut,NOT_SUPPORTED_PRESERVE:dt(),NOT_SUPPORTED_FORMATTER:dt(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:dt(),NOT_SUPPORTED_GET_CHOICE_INDEX:dt(),COMPONENT_NAME_LEGACY_COMPATIBLE:dt(),NOT_FOUND_PARENT_SCOPE:dt()};pt.FALLBACK_TO_ROOT,pt.NOT_SUPPORTED_PRESERVE,pt.NOT_SUPPORTED_FORMATTER,pt.NOT_SUPPORTED_PRESERVE_DIRECTIVE,pt.NOT_SUPPORTED_GET_CHOICE_INDEX,pt.COMPONENT_NAME_LEGACY_COMPATIBLE,pt.NOT_FOUND_PARENT_SCOPE;let ft=o.__EXTEND_POINT__;const ht=()=>++ft,mt={UNEXPECTED_RETURN_TYPE:ft,INVALID_ARGUMENT:ht(),MUST_BE_CALL_SETUP_TOP:ht(),NOT_INSLALLED:ht(),NOT_AVAILABLE_IN_LEGACY_MODE:ht(),REQUIRED_VALUE:ht(),INVALID_VALUE:ht(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:ht(),NOT_INSLALLED_WITH_PROVIDE:ht(),UNEXPECTED_ERROR:ht(),NOT_COMPATIBLE_LEGACY_VUE_I18N:ht(),BRIDGE_SUPPORT_VUE_2_ONLY:ht(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:ht(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:ht(),__EXTEND_POINT__:ht()};function vt(e,...t){return a(e,null,void 0)}mt.UNEXPECTED_RETURN_TYPE,mt.INVALID_ARGUMENT,mt.MUST_BE_CALL_SETUP_TOP,mt.NOT_INSLALLED,mt.UNEXPECTED_ERROR,mt.NOT_AVAILABLE_IN_LEGACY_MODE,mt.REQUIRED_VALUE,mt.INVALID_VALUE,mt.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN,mt.NOT_INSLALLED_WITH_PROVIDE,mt.NOT_COMPATIBLE_LEGACY_VUE_I18N,mt.BRIDGE_SUPPORT_VUE_2_ONLY,mt.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION,mt.NOT_AVAILABLE_COMPOSITION_IN_LEGACY;const gt=Object(r["r"])("__transrateVNode"),_t=Object(r["r"])("__datetimeParts"),yt=Object(r["r"])("__numberParts"),bt=Object(r["r"])("__setPluralRules");Object(r["r"])("__intlifyMeta");const Ot=Object(r["r"])("__injectWithOption");function Mt(e){if(!Object(r["n"])(e))return e;for(const t in e)if(Object(r["f"])(e,t))if(t.includes(".")){const n=t.split("."),o=n.length-1;let a=e;for(let e=0;e<o;e++)n[e]in a||(a[n[e]]={}),a=a[n[e]];a[n[o]]=e[t],delete e[t],Object(r["n"])(a[n[o]])&&Mt(a[n[o]])}else Object(r["n"])(e[t])&&Mt(e[t]);return e}function kt(e,t){const{messages:n,__i18n:o,messageResolver:a,flatJson:i}=t,s=Object(r["o"])(n)?n:Object(r["h"])(o)?{}:{[e]:{}};if(Object(r["h"])(o)&&o.forEach(e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:n}=e;t?(s[t]=s[t]||{},wt(n,s[t])):wt(n,s)}else Object(r["q"])(e)&&wt(JSON.parse(e),s)}),null==a&&i)for(const c in s)Object(r["f"])(s,c)&&Mt(s[c]);return s}const Ct=e=>!Object(r["n"])(e)||Object(r["h"])(e);function wt(e,t){if(Ct(e)||Ct(t))throw vt(mt.INVALID_VALUE);for(const n in e)Object(r["f"])(e,n)&&(Ct(e[n])||Ct(t[n])?t[n]=e[n]:wt(e[n],t[n]))}function It(e){return e.type}function St(e,t,n){let o=Object(r["n"])(t.messages)?t.messages:{};"__i18nGlobal"in n&&(o=kt(e.locale.value,{messages:o,__i18n:n.__i18nGlobal}));const a=Object.keys(o);if(a.length&&a.forEach(t=>{e.mergeLocaleMessage(t,o[t])}),Object(r["n"])(t.datetimeFormats)){const n=Object.keys(t.datetimeFormats);n.length&&n.forEach(n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])})}if(Object(r["n"])(t.numberFormats)){const n=Object.keys(t.numberFormats);n.length&&n.forEach(n=>{e.mergeNumberFormat(n,t.numberFormats[n])})}}function Tt(e){return Object(st["createVNode"])(st["Text"],null,e,0)}const Et="__INTLIFY_META__";let jt=0;function Dt(e){return(t,n,r,o)=>e(n,r,Object(st["getCurrentInstance"])()||void 0,o)}const Lt=()=>{const e=Object(st["getCurrentInstance"])();let t=null;return e&&(t=It(e)[Et])?{[Et]:t}:null};function At(e={},t){const{__root:n}=e,o=void 0===n;let a=!Object(r["i"])(e.inheritLocale)||e.inheritLocale;const i=Object(st["ref"])(n&&a?n.locale.value:Object(r["q"])(e.locale)?e.locale:me),s=Object(st["ref"])(n&&a?n.fallbackLocale.value:Object(r["q"])(e.fallbackLocale)||Object(r["h"])(e.fallbackLocale)||Object(r["o"])(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:i.value),c=Object(st["ref"])(kt(i.value,e)),l=Object(st["ref"])(Object(r["o"])(e.datetimeFormats)?e.datetimeFormats:{[i.value]:{}}),u=Object(st["ref"])(Object(r["o"])(e.numberFormats)?e.numberFormats:{[i.value]:{}});let d=n?n.missingWarn:!Object(r["i"])(e.missingWarn)&&!Object(r["p"])(e.missingWarn)||e.missingWarn,p=n?n.fallbackWarn:!Object(r["i"])(e.fallbackWarn)&&!Object(r["p"])(e.fallbackWarn)||e.fallbackWarn,f=n?n.fallbackRoot:!Object(r["i"])(e.fallbackRoot)||e.fallbackRoot,h=!!e.fallbackFormat,m=Object(r["l"])(e.missing)?e.missing:null,v=Object(r["l"])(e.missing)?Dt(e.missing):null,g=Object(r["l"])(e.postTranslation)?e.postTranslation:null,_=n?n.warnHtmlMessage:!Object(r["i"])(e.warnHtmlMessage)||e.warnHtmlMessage,y=!!e.escapeParameter;const b=n?n.modifiers:Object(r["o"])(e.modifiers)?e.modifiers:{};let O,M=e.pluralRules||n&&n.pluralRules;const k=()=>{o&&Ee(null);const t={version:ct,locale:i.value,fallbackLocale:s.value,messages:c.value,modifiers:b,pluralRules:M,missing:null===v?void 0:v,missingWarn:d,fallbackWarn:p,fallbackFormat:h,unresolving:!0,postTranslation:null===g?void 0:g,warnHtmlMessage:_,escapeParameter:y,messageResolver:e.messageResolver,__meta:{framework:"vue"}};t.datetimeFormats=l.value,t.numberFormats=u.value,t.__datetimeFormatters=Object(r["o"])(O)?O.__datetimeFormatters:void 0,t.__numberFormatters=Object(r["o"])(O)?O.__numberFormatters:void 0;const n=Le(t);return o&&Ee(n),n};function C(){return[i.value,s.value,c.value,l.value,u.value]}O=k(),Ne(O,i.value,s.value);const w=Object(st["computed"])({get:()=>i.value,set:e=>{i.value=e,O.locale=i.value}}),I=Object(st["computed"])({get:()=>s.value,set:e=>{s.value=e,O.fallbackLocale=s.value,Ne(O,i.value,e)}}),S=Object(st["computed"])(()=>c.value),T=Object(st["computed"])(()=>l.value),E=Object(st["computed"])(()=>u.value);function j(){return Object(r["l"])(g)?g:null}function D(e){g=e,O.postTranslation=e}function L(){return m}function A(e){null!==e&&(v=Dt(e)),m=e,O.missing=v}const N=(e,t,a,i,s,c)=>{let l;if(C(),__INTLIFY_PROD_DEVTOOLS__)try{Ie(Lt()),o||(O.fallbackContext=n?je():void 0),l=e(O)}finally{Ie(null),o||(O.fallbackContext=void 0)}else l=e(O);if(Object(r["m"])(l)&&l===he){const[e,r]=t();return n&&f?i(n):s(e)}if(c(l))return l;throw vt(mt.UNEXPECTED_RETURN_TYPE)};function x(...e){return N(t=>Reflect.apply(He,null,[t,...e]),()=>$e(...e),"translate",t=>Reflect.apply(t.t,t,[...e]),e=>e,e=>Object(r["q"])(e))}function R(...e){const[t,n,o]=e;if(o&&!Object(r["n"])(o))throw vt(mt.INVALID_ARGUMENT);return x(t,n,Object(r["a"])({resolvedMessage:!0},o||{}))}function P(...e){return N(t=>Reflect.apply(Ze,null,[t,...e]),()=>tt(...e),"datetime format",t=>Reflect.apply(t.d,t,[...e]),()=>ve,e=>Object(r["q"])(e))}function U(...e){return N(t=>Reflect.apply(rt,null,[t,...e]),()=>at(...e),"number format",t=>Reflect.apply(t.n,t,[...e]),()=>ve,e=>Object(r["q"])(e))}function V(e){return e.map(e=>Object(r["q"])(e)||Object(r["m"])(e)||Object(r["i"])(e)?Tt(String(e)):e)}const B=e=>e,F={normalize:V,interpolate:B,type:"vnode"};function G(...e){return N(t=>{let n;const r=t;try{r.processor=F,n=Reflect.apply(He,null,[r,...e])}finally{r.processor=null}return n},()=>$e(...e),"translate",t=>t[gt](...e),e=>[Tt(e)],e=>Object(r["h"])(e))}function z(...e){return N(t=>Reflect.apply(rt,null,[t,...e]),()=>at(...e),"number format",t=>t[yt](...e),()=>[],e=>Object(r["q"])(e)||Object(r["h"])(e))}function H(...e){return N(t=>Reflect.apply(Ze,null,[t,...e]),()=>tt(...e),"datetime format",t=>t[_t](...e),()=>[],e=>Object(r["q"])(e)||Object(r["h"])(e))}function Y(e){M=e,O.pluralRules=M}function q(e,t){const n=Object(r["q"])(t)?t:i.value,o=$(n);return null!==O.messageResolver(o,e)}function W(e){let t=null;const n=le(O,s.value,i.value);for(let r=0;r<n.length;r++){const o=c.value[n[r]]||{},a=O.messageResolver(o,e);if(null!=a){t=a;break}}return t}function K(e){const t=W(e);return null!=t?t:n&&n.tm(e)||{}}function $(e){return c.value[e]||{}}function J(e,t){c.value[e]=t,O.messages=c.value}function Q(e,t){c.value[e]=c.value[e]||{},wt(t,c.value[e]),O.messages=c.value}function X(e){return l.value[e]||{}}function Z(e,t){l.value[e]=t,O.datetimeFormats=l.value,nt(O,e,t)}function ee(e,t){l.value[e]=Object(r["a"])(l.value[e]||{},t),O.datetimeFormats=l.value,nt(O,e,t)}function te(e){return u.value[e]||{}}function ne(e,t){u.value[e]=t,O.numberFormats=u.value,it(O,e,t)}function re(e,t){u.value[e]=Object(r["a"])(u.value[e]||{},t),O.numberFormats=u.value,it(O,e,t)}jt++,n&&r["g"]&&(Object(st["watch"])(n.locale,e=>{a&&(i.value=e,O.locale=e,Ne(O,i.value,s.value))}),Object(st["watch"])(n.fallbackLocale,e=>{a&&(s.value=e,O.fallbackLocale=e,Ne(O,i.value,s.value))}));const oe={id:jt,locale:w,fallbackLocale:I,get inheritLocale(){return a},set inheritLocale(e){a=e,e&&n&&(i.value=n.locale.value,s.value=n.fallbackLocale.value,Ne(O,i.value,s.value))},get availableLocales(){return Object.keys(c.value).sort()},messages:S,get modifiers(){return b},get pluralRules(){return M||{}},get isGlobal(){return o},get missingWarn(){return d},set missingWarn(e){d=e,O.missingWarn=d},get fallbackWarn(){return p},set fallbackWarn(e){p=e,O.fallbackWarn=p},get fallbackRoot(){return f},set fallbackRoot(e){f=e},get fallbackFormat(){return h},set fallbackFormat(e){h=e,O.fallbackFormat=h},get warnHtmlMessage(){return _},set warnHtmlMessage(e){_=e,O.warnHtmlMessage=e},get escapeParameter(){return y},set escapeParameter(e){y=e,O.escapeParameter=e},t:x,getLocaleMessage:$,setLocaleMessage:J,mergeLocaleMessage:Q,getPostTranslationHandler:j,setPostTranslationHandler:D,getMissingHandler:L,setMissingHandler:A,[bt]:Y};return oe.datetimeFormats=T,oe.numberFormats=E,oe.rt=R,oe.te=q,oe.tm=K,oe.d=P,oe.n=U,oe.getDateTimeFormat=X,oe.setDateTimeFormat=Z,oe.mergeDateTimeFormat=ee,oe.getNumberFormat=te,oe.setNumberFormat=ne,oe.mergeNumberFormat=re,oe[Ot]=e.__injectWithOption,oe[gt]=G,oe[_t]=H,oe[yt]=z,oe}function Nt(e){const t=Object(r["q"])(e.locale)?e.locale:me,n=Object(r["q"])(e.fallbackLocale)||Object(r["h"])(e.fallbackLocale)||Object(r["o"])(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:t,o=Object(r["l"])(e.missing)?e.missing:void 0,a=!Object(r["i"])(e.silentTranslationWarn)&&!Object(r["p"])(e.silentTranslationWarn)||!e.silentTranslationWarn,i=!Object(r["i"])(e.silentFallbackWarn)&&!Object(r["p"])(e.silentFallbackWarn)||!e.silentFallbackWarn,s=!Object(r["i"])(e.fallbackRoot)||e.fallbackRoot,c=!!e.formatFallbackMessages,l=Object(r["o"])(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,d=Object(r["l"])(e.postTranslation)?e.postTranslation:void 0,p=!Object(r["q"])(e.warnHtmlInMessage)||"off"!==e.warnHtmlInMessage,f=!!e.escapeParameterHtml,h=!Object(r["i"])(e.sync)||e.sync;let m=e.messages;if(Object(r["o"])(e.sharedMessages)){const t=e.sharedMessages,n=Object.keys(t);m=n.reduce((e,n)=>{const o=e[n]||(e[n]={});return Object(r["a"])(o,t[n]),e},m||{})}const{__i18n:v,__root:g,__injectWithOption:_}=e,y=e.datetimeFormats,b=e.numberFormats,O=e.flatJson;return{locale:t,fallbackLocale:n,messages:m,flatJson:O,datetimeFormats:y,numberFormats:b,missing:o,missingWarn:a,fallbackWarn:i,fallbackRoot:s,fallbackFormat:c,modifiers:l,pluralRules:u,postTranslation:d,warnHtmlMessage:p,escapeParameter:f,messageResolver:e.messageResolver,inheritLocale:h,__i18n:v,__root:g,__injectWithOption:_}}function xt(e={},t){{const t=At(Nt(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 Object(r["i"])(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(e){t.missingWarn=Object(r["i"])(e)?!e:e},get silentFallbackWarn(){return Object(r["i"])(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(e){t.fallbackWarn=Object(r["i"])(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,o,a]=e,i={};let s=null,c=null;if(!Object(r["q"])(n))throw vt(mt.INVALID_ARGUMENT);const l=n;return Object(r["q"])(o)?i.locale=o:Object(r["h"])(o)?s=o:Object(r["o"])(o)&&(c=o),Object(r["h"])(a)?s=a:Object(r["o"])(a)&&(c=a),Reflect.apply(t.t,t,[l,s||c||{},i])},rt(...e){return Reflect.apply(t.rt,t,[...e])},tc(...e){const[n,o,a]=e,i={plural:1};let s=null,c=null;if(!Object(r["q"])(n))throw vt(mt.INVALID_ARGUMENT);const l=n;return Object(r["q"])(o)?i.locale=o:Object(r["m"])(o)?i.plural=o:Object(r["h"])(o)?s=o:Object(r["o"])(o)&&(c=o),Object(r["q"])(a)?i.locale=a:Object(r["h"])(a)?s=a:Object(r["o"])(a)&&(c=a),Reflect.apply(t.t,t,[l,s||c||{},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 Reflect.apply(t.d,t,[...e])},getDateTimeFormat(e){return t.getDateTimeFormat(e)},setDateTimeFormat(e,n){t.setDateTimeFormat(e,n)},mergeDateTimeFormat(e,n){t.mergeDateTimeFormat(e,n)},n(...e){return Reflect.apply(t.n,t,[...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 Rt={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};function Pt({slots:e},t){if(1===t.length&&"default"===t[0]){const t=e.default?e.default():[];return t.reduce((e,t)=>[...e,...Object(r["h"])(t.children)?t.children:[t]],[])}return t.reduce((t,n)=>{const r=e[n];return r&&(t[n]=r()),t},{})}function Ut(e){return st["Fragment"]}const Vt={name:"i18n-t",props:Object(r["a"])({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Object(r["m"])(e)||!isNaN(e)}},Rt),setup(e,t){const{slots:n,attrs:o}=t,a=e.i18n||Zt({useScope:e.scope,__useComponent:!0});return()=>{const i=Object.keys(n).filter(e=>"_"!==e),s={};e.locale&&(s.locale=e.locale),void 0!==e.plural&&(s.plural=Object(r["q"])(e.plural)?+e.plural:e.plural);const c=Pt(t,i),l=a[gt](e.keypath,c,s),u=Object(r["a"])({},o),d=Object(r["q"])(e.tag)||Object(r["n"])(e.tag)?e.tag:Ut();return Object(st["h"])(d,u,l)}}};function Bt(e){return Object(r["h"])(e)&&!Object(r["q"])(e[0])}function Ft(e,t,n,o){const{slots:a,attrs:i}=t;return()=>{const t={part:!0};let s={};e.locale&&(t.locale=e.locale),Object(r["q"])(e.format)?t.key=e.format:Object(r["n"])(e.format)&&(Object(r["q"])(e.format.key)&&(t.key=e.format.key),s=Object.keys(e.format).reduce((t,o)=>n.includes(o)?Object(r["a"])({},t,{[o]:e.format[o]}):t,{}));const c=o(e.value,t,s);let l=[t.key];Object(r["h"])(c)?l=c.map((e,t)=>{const n=a[e.type],r=n?n({[e.type]:e.value,index:t,parts:c}):[e.value];return Bt(r)&&(r[0].key=`${e.type}-${t}`),r}):Object(r["q"])(c)&&(l=[c]);const u=Object(r["a"])({},i),d=Object(r["q"])(e.tag)||Object(r["n"])(e.tag)?e.tag:Ut();return Object(st["h"])(d,u,l)}}const Gt={name:"i18n-n",props:Object(r["a"])({value:{type:Number,required:!0},format:{type:[String,Object]}},Rt),setup(e,t){const n=e.i18n||Zt({useScope:"parent",__useComponent:!0});return Ft(e,t,ot,(...e)=>n[yt](...e))}},zt={name:"i18n-d",props:Object(r["a"])({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Rt),setup(e,t){const n=e.i18n||Zt({useScope:"parent",__useComponent:!0});return Ft(e,t,et,(...e)=>n[_t](...e))}};function Ht(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 Yt(e){const t=t=>{const{instance:n,modifiers:r,value:o}=t;if(!n||!n.$)throw vt(mt.UNEXPECTED_ERROR);const a=Ht(e,n.$);const i=qt(o);return[Reflect.apply(a.t,a,[...Wt(i)]),a]},n=(n,o)=>{const[a,i]=t(o);r["g"]&&e.global===i&&(n.__i18nWatcher=Object(st["watch"])(i.locale,()=>{o.instance&&o.instance.$forceUpdate()})),n.__composer=i,n.textContent=a},o=e=>{r["g"]&&e.__i18nWatcher&&(e.__i18nWatcher(),e.__i18nWatcher=void 0,delete e.__i18nWatcher),e.__composer&&(e.__composer=void 0,delete e.__composer)},a=(e,{value:t})=>{if(e.__composer){const n=e.__composer,r=qt(t);e.textContent=Reflect.apply(n.t,n,[...Wt(r)])}},i=e=>{const[n]=t(e);return{textContent:n}};return{created:n,unmounted:o,beforeUpdate:a,getSSRProps:i}}function qt(e){if(Object(r["q"])(e))return{path:e};if(Object(r["o"])(e)){if(!("path"in e))throw vt(mt.REQUIRED_VALUE,"path");return e}throw vt(mt.INVALID_VALUE)}function Wt(e){const{path:t,locale:n,args:o,choice:a,plural:i}=e,s={},c=o||{};return Object(r["q"])(n)&&(s.locale=n),Object(r["m"])(a)&&(s.plural=a),Object(r["m"])(i)&&(s.plural=i),[t,c,s]}function Kt(e,t,...n){const o=Object(r["o"])(n[0])?n[0]:{},a=!!o.useI18nComponentName,i=!Object(r["i"])(o.globalInstall)||o.globalInstall;i&&(e.component(a?"i18n":Vt.name,Vt),e.component(Gt.name,Gt),e.component(zt.name,zt)),e.directive("t",Yt(t))}function $t(e,t,n){return{beforeCreate(){const r=Object(st["getCurrentInstance"])();if(!r)throw vt(mt.UNEXPECTED_ERROR);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=Jt(e,n):(n.__injectWithOption=!0,this.$i18n=xt(n))}else o.__i18n?this===this.$root?this.$i18n=Jt(e,o):this.$i18n=xt({__i18n:o.__i18n,__injectWithOption:!0,__root:t}):this.$i18n=e;o.__i18nGlobal&&St(t,o,o),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(){0},unmounted(){const e=Object(st["getCurrentInstance"])();if(!e)throw vt(mt.UNEXPECTED_ERROR);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 Jt(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=kt(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}const Qt=Object(r["r"])("global-vue-i18n");function Xt(e={},t){const n=__VUE_I18N_LEGACY_API__&&Object(r["i"])(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,o=!Object(r["i"])(e.globalInjection)||e.globalInjection,a=!__VUE_I18N_LEGACY_API__||!n||!!e.allowComposition,i=new Map,[s,c]=en(e,n),l=Object(r["r"])("");function u(e){return i.get(e)||null}function d(e,t){i.set(e,t)}function p(e){i.delete(e)}{const e={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return a},async install(t,...r){t.__VUE_I18N_SYMBOL__=l,t.provide(t.__VUE_I18N_SYMBOL__,e),!n&&o&&un(t,e.global),__VUE_I18N_FULL_INSTALL__&&Kt(t,e,...r),__VUE_I18N_LEGACY_API__&&n&&t.mixin($t(c,c.__composer,e));const a=t.unmount;t.unmount=()=>{e.dispose(),a()}},get global(){return c},dispose(){s.stop()},__instances:i,__getInstance:u,__setInstance:d,__deleteInstance:p};return e}}function Zt(e={}){const t=Object(st["getCurrentInstance"])();if(null==t)throw vt(mt.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&null!=t.appContext.app&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw vt(mt.NOT_INSLALLED);const n=tn(t),o=rn(n),a=It(t),i=nn(e,a);if(__VUE_I18N_LEGACY_API__&&"legacy"===n.mode&&!e.__useComponent){if(!n.allowComposition)throw vt(mt.NOT_AVAILABLE_IN_LEGACY_MODE);return sn(t,i,o,e)}if("global"===i)return St(o,e,a),o;if("parent"===i){let r=on(n,t,e.__useComponent);return null==r&&(r=o),r}const s=n;let c=s.__getInstance(t);if(null==c){const n=Object(r["a"])({},e);"__i18n"in a&&(n.__i18n=a.__i18n),o&&(n.__root=o),c=At(n),an(s,t,c),s.__setInstance(t,c)}return c}function en(e,t,n){const r=Object(st["effectScope"])();{const n=__VUE_I18N_LEGACY_API__&&t?r.run(()=>xt(e)):r.run(()=>At(e));if(null==n)throw vt(mt.UNEXPECTED_ERROR);return[r,n]}}function tn(e){{const t=Object(st["inject"])(e.isCE?Qt:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw vt(e.isCE?mt.NOT_INSLALLED_WITH_PROVIDE:mt.UNEXPECTED_ERROR);return t}}function nn(e,t){return Object(r["k"])(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function rn(e){return"composition"===e.mode?e.global:e.global.__composer}function on(e,t,n=!1){let r=null;const o=t.root;let a=t.parent;while(null!=a){const t=e;if("composition"===e.mode)r=t.__getInstance(a);else if(__VUE_I18N_LEGACY_API__){const e=t.__getInstance(a);null!=e&&(r=e.__composer,n&&r&&!r[Ot]&&(r=null))}if(null!=r)break;if(o===a)break;a=a.parent}return r}function an(e,t,n){Object(st["onMounted"])(()=>{0},t),Object(st["onUnmounted"])(()=>{e.__deleteInstance(t)},t)}function sn(e,t,n,o={}){const a="local"===t,i=Object(st["shallowRef"])(null);if(a&&e.proxy&&!e.proxy.$options.i18n&&!e.proxy.$options.__i18n)throw vt(mt.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const s=!Object(r["i"])(o.inheritLocale)||o.inheritLocale,c=Object(st["ref"])(a&&s?n.locale.value:Object(r["q"])(o.locale)?o.locale:me),l=Object(st["ref"])(a&&s?n.fallbackLocale.value:Object(r["q"])(o.fallbackLocale)||Object(r["h"])(o.fallbackLocale)||Object(r["o"])(o.fallbackLocale)||!1===o.fallbackLocale?o.fallbackLocale:c.value),u=Object(st["ref"])(kt(c.value,o)),d=Object(st["ref"])(Object(r["o"])(o.datetimeFormats)?o.datetimeFormats:{[c.value]:{}}),p=Object(st["ref"])(Object(r["o"])(o.numberFormats)?o.numberFormats:{[c.value]:{}}),f=a?n.missingWarn:!Object(r["i"])(o.missingWarn)&&!Object(r["p"])(o.missingWarn)||o.missingWarn,h=a?n.fallbackWarn:!Object(r["i"])(o.fallbackWarn)&&!Object(r["p"])(o.fallbackWarn)||o.fallbackWarn,m=a?n.fallbackRoot:!Object(r["i"])(o.fallbackRoot)||o.fallbackRoot,v=!!o.fallbackFormat,g=Object(r["l"])(o.missing)?o.missing:null,_=Object(r["l"])(o.postTranslation)?o.postTranslation:null,y=a?n.warnHtmlMessage:!Object(r["i"])(o.warnHtmlMessage)||o.warnHtmlMessage,b=!!o.escapeParameter,O=a?n.modifiers:Object(r["o"])(o.modifiers)?o.modifiers:{},M=o.pluralRules||a&&n.pluralRules;function k(){return[c.value,l.value,u.value,d.value,p.value]}const C=Object(st["computed"])({get:()=>i.value?i.value.locale.value:c.value,set:e=>{i.value&&(i.value.locale.value=e),c.value=e}}),w=Object(st["computed"])({get:()=>i.value?i.value.fallbackLocale.value:l.value,set:e=>{i.value&&(i.value.fallbackLocale.value=e),l.value=e}}),I=Object(st["computed"])(()=>i.value?i.value.messages.value:u.value),S=Object(st["computed"])(()=>d.value),T=Object(st["computed"])(()=>p.value);function E(){return i.value?i.value.getPostTranslationHandler():_}function j(e){i.value&&i.value.setPostTranslationHandler(e)}function D(){return i.value?i.value.getMissingHandler():g}function L(e){i.value&&i.value.setMissingHandler(e)}function A(e){return k(),e()}function N(...e){return i.value?A(()=>Reflect.apply(i.value.t,null,[...e])):A(()=>"")}function x(...e){return i.value?Reflect.apply(i.value.rt,null,[...e]):""}function R(...e){return i.value?A(()=>Reflect.apply(i.value.d,null,[...e])):A(()=>"")}function P(...e){return i.value?A(()=>Reflect.apply(i.value.n,null,[...e])):A(()=>"")}function U(e){return i.value?i.value.tm(e):{}}function V(e,t){return!!i.value&&i.value.te(e,t)}function B(e){return i.value?i.value.getLocaleMessage(e):{}}function F(e,t){i.value&&(i.value.setLocaleMessage(e,t),u.value[e]=t)}function G(e,t){i.value&&i.value.mergeLocaleMessage(e,t)}function z(e){return i.value?i.value.getDateTimeFormat(e):{}}function H(e,t){i.value&&(i.value.setDateTimeFormat(e,t),d.value[e]=t)}function Y(e,t){i.value&&i.value.mergeDateTimeFormat(e,t)}function q(e){return i.value?i.value.getNumberFormat(e):{}}function W(e,t){i.value&&(i.value.setNumberFormat(e,t),p.value[e]=t)}function K(e,t){i.value&&i.value.mergeNumberFormat(e,t)}const $={get id(){return i.value?i.value.id:-1},locale:C,fallbackLocale:w,messages:I,datetimeFormats:S,numberFormats:T,get inheritLocale(){return i.value?i.value.inheritLocale:s},set inheritLocale(e){i.value&&(i.value.inheritLocale=e)},get availableLocales(){return i.value?i.value.availableLocales:Object.keys(u.value)},get modifiers(){return i.value?i.value.modifiers:O},get pluralRules(){return i.value?i.value.pluralRules:M},get isGlobal(){return!!i.value&&i.value.isGlobal},get missingWarn(){return i.value?i.value.missingWarn:f},set missingWarn(e){i.value&&(i.value.missingWarn=e)},get fallbackWarn(){return i.value?i.value.fallbackWarn:h},set fallbackWarn(e){i.value&&(i.value.missingWarn=e)},get fallbackRoot(){return i.value?i.value.fallbackRoot:m},set fallbackRoot(e){i.value&&(i.value.fallbackRoot=e)},get fallbackFormat(){return i.value?i.value.fallbackFormat:v},set fallbackFormat(e){i.value&&(i.value.fallbackFormat=e)},get warnHtmlMessage(){return i.value?i.value.warnHtmlMessage:y},set warnHtmlMessage(e){i.value&&(i.value.warnHtmlMessage=e)},get escapeParameter(){return i.value?i.value.escapeParameter:b},set escapeParameter(e){i.value&&(i.value.escapeParameter=e)},t:N,getPostTranslationHandler:E,setPostTranslationHandler:j,getMissingHandler:D,setMissingHandler:L,rt:x,d:R,n:P,tm:U,te:V,getLocaleMessage:B,setLocaleMessage:F,mergeLocaleMessage:G,getDateTimeFormat:z,setDateTimeFormat:H,mergeDateTimeFormat:Y,getNumberFormat:q,setNumberFormat:W,mergeNumberFormat:K};function J(e){e.locale.value=c.value,e.fallbackLocale.value=l.value,Object.keys(u.value).forEach(t=>{e.mergeLocaleMessage(t,u.value[t])}),Object.keys(d.value).forEach(t=>{e.mergeDateTimeFormat(t,d.value[t])}),Object.keys(p.value).forEach(t=>{e.mergeNumberFormat(t,p.value[t])}),e.escapeParameter=b,e.fallbackFormat=v,e.fallbackRoot=m,e.fallbackWarn=h,e.missingWarn=f,e.warnHtmlMessage=y}return Object(st["onBeforeMount"])(()=>{if(null==e.proxy||null==e.proxy.$i18n)throw vt(mt.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const n=i.value=e.proxy.$i18n.__composer;"global"===t?(c.value=n.locale.value,l.value=n.fallbackLocale.value,u.value=n.messages.value,d.value=n.datetimeFormats.value,p.value=n.numberFormats.value):a&&J(n)}),$}const cn=["locale","fallbackLocale","availableLocales"],ln=["t","rt","d","n","tm"];function un(e,t){const n=Object.create(null);cn.forEach(e=>{const r=Object.getOwnPropertyDescriptor(t,e);if(!r)throw vt(mt.UNEXPECTED_ERROR);const o=Object(st["isRef"])(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 vt(mt.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,"$"+n,r)})}if(Me(Pe),ke(q),Ce(le),lt(),__INTLIFY_PROD_DEVTOOLS__){const e=Object(r["e"])();e.__INTLIFY__=!0,re(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}},"484e":function(e,t,n){"use strict";var r=n("a5eb"),o=n("471b"),a=n("7de7"),i=!a((function(e){Array.from(e)}));r({target:"Array",stat:!0,forced:i},{from:o})},"485a":function(e,t,n){"use strict";var r=n("c65b"),o=n("1626"),a=n("861d"),i=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&o(n=e.toString)&&!a(s=r(n,e)))return s;if(o(n=e.valueOf)&&!a(s=r(n,e)))return s;if("string"!==t&&o(n=e.toString)&&!a(s=r(n,e)))return s;throw i("Can't convert object to primitive value")}},"485c":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"},n=e.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"bir neçə saniyə",ss:"%d saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(e){return/^(gündüz|axşam)$/.test(e)},meridiem:function(e,t,n){return e<4?"gecə":e<12?"səhər":e<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(e){if(0===e)return e+"-ıncı";var n=e%10,r=e%100-n,o=e>=100?100:null;return e+(t[n]||t[r]||t[o])},week:{dow:1,doy:7}});return n}))},4896:function(e,t,n){"use strict";var r,o=n("6f8d"),a=n("c230"),i=n("9e57"),s=n("6e9a"),c=n("edbd"),l=n("7a37"),u=n("b2ed"),d=">",p="<",f="prototype",h="script",m=u("IE_PROTO"),v=function(){},g=function(e){return p+h+d+e+p+"/"+h+d},_=function(e){e.write(g("")),e.close();var t=e.parentWindow.Object;return e=null,t},y=function(){var e,t=l("iframe"),n="java"+h+":";return t.style.display="none",c.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(g("document.F=Object")),e.close(),e.F},b=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}b="undefined"!=typeof document?document.domain&&r?_(r):y():_(r);var e=i.length;while(e--)delete b[f][i[e]];return b()};s[m]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(v[f]=o(e),n=new v,v[f]=null,n[m]=e):n=b(),void 0===t?n:a.f(n,t)}},4947:function(e,t,n){"use strict";var r=n("fdbc");e.exports=r},"49ab":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1200?"上午":1200===r?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}});return t}))},"49c6":function(e,t,n){"use strict";n.d(t,"a",(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"}},"4a7b":function(e,t,n){"use strict";var r=n("c532");e.exports=function(e,t){t=t||{};var n={};function o(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function a(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(e[n],t[n])}function i(e){if(!r.isUndefined(t[e]))return o(void 0,t[e])}function s(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(void 0,t[n])}function c(n){return n in t?o(e[n],t[n]):n in e?o(void 0,e[n]):void 0}var l={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:c};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=l[e]||a,o=t(e);r.isUndefined(o)&&t!==c||(n[e]=o)})),n}},"4aa6":function(e,t,n){"use strict";var r,o,a=n("3ac6"),i=n("9717"),s=a.process,c=a.Deno,l=s&&s.versions||c&&c.version,u=l&&l.v8;u&&(r=u.split("."),o=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&i&&(r=i.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=i.match(/Chrome\/(\d+)/),r&&(o=+r[1]))),e.exports=o},"4af5":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValidCSSUnit=t.stringInputToObject=t.inputToRGB=void 0;var r=n("d756"),o=n("fc75"),a=n("1127");function i(e){var t={r:0,g:0,b:0},n=1,o=null,i=null,s=null,c=!1,l=!1;return"string"===typeof e&&(e=f(e)),"object"===typeof e&&(h(e.r)&&h(e.g)&&h(e.b)?(t=(0,r.rgbToRgb)(e.r,e.g,e.b),c=!0,l="%"===String(e.r).substr(-1)?"prgb":"rgb"):h(e.h)&&h(e.s)&&h(e.v)?(o=(0,a.convertToPercentage)(e.s),i=(0,a.convertToPercentage)(e.v),t=(0,r.hsvToRgb)(e.h,o,i),c=!0,l="hsv"):h(e.h)&&h(e.s)&&h(e.l)&&(o=(0,a.convertToPercentage)(e.s),s=(0,a.convertToPercentage)(e.l),t=(0,r.hslToRgb)(e.h,o,s),c=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=(0,a.boundAlpha)(n),{ok:c,format:e.format||l,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}}t.inputToRGB=i;var s="[-\\+]?\\d+%?",c="[-\\+]?\\d*\\.\\d+%?",l="(?:".concat(c,")|(?:").concat(s,")"),u="[\\s|\\(]+(".concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")\\s*\\)?"),d="[\\s|\\(]+(".concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")\\s*\\)?"),p={CSS_UNIT:new RegExp(l),rgb:new RegExp("rgb"+u),rgba:new RegExp("rgba"+d),hsl:new RegExp("hsl"+u),hsla:new RegExp("hsla"+d),hsv:new RegExp("hsv"+u),hsva:new RegExp("hsva"+d),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 f(e){if(e=e.trim().toLowerCase(),0===e.length)return!1;var t=!1;if(o.names[e])e=o.names[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=p.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=p.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=p.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=p.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=p.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=p.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=p.hex8.exec(e),n?{r:(0,r.parseIntFromHex)(n[1]),g:(0,r.parseIntFromHex)(n[2]),b:(0,r.parseIntFromHex)(n[3]),a:(0,r.convertHexToDecimal)(n[4]),format:t?"name":"hex8"}:(n=p.hex6.exec(e),n?{r:(0,r.parseIntFromHex)(n[1]),g:(0,r.parseIntFromHex)(n[2]),b:(0,r.parseIntFromHex)(n[3]),format:t?"name":"hex"}:(n=p.hex4.exec(e),n?{r:(0,r.parseIntFromHex)(n[1]+n[1]),g:(0,r.parseIntFromHex)(n[2]+n[2]),b:(0,r.parseIntFromHex)(n[3]+n[3]),a:(0,r.convertHexToDecimal)(n[4]+n[4]),format:t?"name":"hex8"}:(n=p.hex3.exec(e),!!n&&{r:(0,r.parseIntFromHex)(n[1]+n[1]),g:(0,r.parseIntFromHex)(n[2]+n[2]),b:(0,r.parseIntFromHex)(n[3]+n[3]),format:t?"name":"hex"})))))))))}function h(e){return Boolean(p.CSS_UNIT.exec(String(e)))}t.stringInputToObject=f,t.isValidCSSUnit=h},"4b11":function(e,t,n){"use strict";e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},"4ba9":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
function t(e,t,n){var r=e+" ";switch(n){case"ss":return r+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi",r;case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta",r;case"h":return t?"jedan sat":"jednog sata";case"hh":return r+=1===e?"sat":2===e||3===e||4===e?"sata":"sati",r;case"dd":return r+=1===e?"dan":"dana",r;case"MM":return r+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci",r;case"yy":return r+=1===e?"godina":2===e||3===e||4===e?"godine":"godina",r}}var n=e.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:return"[prošlu] [nedjelju] [u] LT";case 3:return"[prošlu] [srijedu] [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return n}))},"4bea":function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return s}));var r=n("7a23"),o=n("5112");const a=e=>{const t=Object(r["getCurrentInstance"])();return Object(r["computed"])(()=>{var n,r;return null==(r=null==(n=null==t?void 0:t.proxy)?void 0:n.$props)?void 0:r[e]})};var i=n("27b6");const s=(e,t={})=>{const n=Object(r["ref"])(void 0),s=t.prop?n:a("size"),c=t.global?n:Object(i["b"])(),l=t.form?{size:void 0}:Object(r["inject"])(o["a"],void 0),u=t.formItem?{size:void 0}:Object(r["inject"])(o["b"],void 0);return Object(r["computed"])(()=>s.value||Object(r["unref"])(e)||(null==u?void 0:u.size)||(null==l?void 0:l.size)||c.value||"")},c=e=>{const t=a("disabled"),n=Object(r["inject"])(o["a"],void 0);return Object(r["computed"])(()=>t.value||Object(r["unref"])(e)||(null==n?void 0:n.disabled)||!1)}},"4c06":function(e,t,n){"use strict";var r=n("a5eb"),o=n("e460").left,a=n("9f61"),i=n("4aa6"),s=n("0149"),c=!s&&i>79&&i<83,l=c||!a("reduce");r({target:"Array",proto:!0,forced:l},{reduce:function(e){var t=arguments.length;return o(this,e,t,t>1?arguments[1]:void 0)}})},"4c19":function(e,t,n){"use strict";var r=n("437b"),o=n("26aa"),a=Array.prototype;e.exports=function(e){var t=e.concat;return e===a||r(a,e)&&t===a.concat?o:t}},"4c3d":function(e,t,n){"use strict";(function(t){var r=n("c532"),o=n("c8af"),a=n("387f"),i=n("cafa"),s={"Content-Type":"application/x-www-form-urlencoded"};function c(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function l(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof t&&"[object process]"===Object.prototype.toString.call(t))&&(e=n("b50d")),e}function u(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(o){if("SyntaxError"!==o.name)throw o}return(n||JSON.stringify)(e)}var d={transitional:i,adapter:l(),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(c(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(c(t,"application/json"),u(e)):e}],transformResponse:[function(e){var t=this.transitional||d.transitional,n=t&&t.silentJSONParsing,o=t&&t.forcedJSONParsing,i=!n&&"json"===this.responseType;if(i||o&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(s){if(i){if("SyntaxError"===s.name)throw a(s,this,"E_JSON_PARSE");throw s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){d.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){d.headers[e]=r.merge(s)})),e.exports=d}).call(this,n("4362"))},"4c43":function(e,t,n){e.exports=n("03d2")},"4c52":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=Symbol()},"4cb3":function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return u}));var r=n("7a23"),o=n("d095"),a={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",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"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},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"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},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"}}};const i=e=>(t,n)=>s(t,n,Object(r["unref"])(e)),s=(e,t,n)=>Object(o["get"])(n,e,e).replace(/\{(\w+)\}/g,(e,n)=>{var r;return""+(null!=(r=null==t?void 0:t[n])?r:`{${n}}`)}),c=e=>{const t=Object(r["computed"])(()=>Object(r["unref"])(e).name),n=Object(r["isRef"])(e)?e:Object(r["ref"])(e);return{lang:t,locale:n,t:i(e)}},l=Symbol("localeContextKey"),u=e=>{const t=e||Object(r["inject"])(l,Object(r["ref"])());return c(Object(r["computed"])(()=>t.value||a))}},"4d64":function(e,t,n){"use strict";var r=n("fc6a"),o=n("23cb"),a=n("07fa"),i=function(e){return function(t,n,i){var s,c=r(t),l=a(c),u=o(i,l);if(e&&n!=n){while(l>u)if(s=c[u++],s!=s)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:i(!0),indexOf:i(!1)}},"4e19":function(e,t,n){"use strict";var r=n("fb2d"),o=n("1301"),a=TypeError;e.exports=function(e){if(r(e))return e;throw a(o(e)+" is not a function")}},"4e66":function(e,t,n){"use strict";var r=n("a5eb"),o=n("9883"),a=n("7042"),i=n("96ed"),s=n("baa7").CONSTRUCTOR,c=n("7ef9"),l=o("Promise"),u=a&&!s;r({target:"Promise",stat:!0,forced:a||s},{resolve:function(e){return c(u&&this===l?i:this,e)}})},"4ea1":function(e,t,n){"use strict";var r=n("d429"),o=n("ebb5"),a=n("bcbf"),i=n("5926"),s=n("f495"),c=o.aTypedArray,l=o.getTypedArrayConstructor,u=o.exportTypedArrayMethod,d=!!function(){try{new Int8Array(1)["with"](2,{valueOf:function(){throw 8}})}catch(e){return 8===e}}();u("with",{with:function(e,t){var n=c(this),o=i(e),u=a(n)?s(t):+t;return r(n,l(n),o,u)}}["with"],!d)},"4f90":function(e,t,n){"use strict";var r=n("a5eb"),o=n("437b"),a=n("5779"),i=n("ec62"),s=n("dad0"),c=n("4896"),l=n("0273"),u=n("2c6c"),d=n("e12b"),p=n("56ba"),f=n("5b57"),h=n("d645"),m=n("0363"),v=m("toStringTag"),g=Error,_=[].push,y=function(e,t){var n,r=o(b,this);i?n=i(g(),r?a(this):b):(n=r?this:c(b),l(n,v,"Error")),void 0!==t&&l(n,"message",h(t)),p(n,y,n.stack,1),arguments.length>2&&d(n,arguments[2]);var s=[];return f(e,_,{that:s}),l(n,"errors",s),n};i?i(y,g):s(y,g,{name:!0});var b=y.prototype=c(g.prototype,{constructor:u(1,y),message:u(1,""),name:u(1,"AggregateError")});r({global:!0,constructor:!0,arity:2},{AggregateError:y})},"4fff":function(e,t,n){"use strict";var r=n("1875"),o=Object;e.exports=function(e){return o(r(e))}},5038:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}});return t}))},"505e":function(e,t,n){e.exports=n("17c1")},"50c4":function(e,t,n){"use strict";var r=n("5926"),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},"50dc":function(e,t,n){"use strict";var r=n("7328");e.exports=r},5107:function(e,t,n){"use strict";n("410b");var r=n("a169");e.exports=r("Array").map},5112:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));const r=Symbol("formContextKey"),o=Symbol("formItemContextKey")},5120:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Meitheamh","Iúil","Lúnasa","Meán Fómhair","Deireadh Fómhair","Samhain","Nollaig"],n=["Ean","Feabh","Márt","Aib","Beal","Meith","Iúil","Lún","M.F.","D.F.","Samh","Noll"],r=["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Sathairn"],o=["Domh","Luan","Máirt","Céad","Déar","Aoine","Sath"],a=["Do","Lu","Má","Cé","Dé","A","Sa"],i=e.defineLocale("ga",{months:t,monthsShort:n,monthsParseExact:!0,weekdays:r,weekdaysShort:o,weekdaysMin:a,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Amárach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inné ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s ó shin",s:"cúpla soicind",ss:"%d soicind",m:"nóiméad",mm:"%d nóiméad",h:"uair an chloig",hh:"%d uair an chloig",d:"lá",dd:"%d lá",M:"mí",MM:"%d míonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){var t=1===e?"d":e%10===2?"na":"mh";return e+t},week:{dow:1,doy:4}});return i}))},5134:function(e,t,n){"use strict";(function(e){let r,o;function a(){var t;return void 0!==r||("undefined"!==typeof window&&window.performance?(r=!0,o=window.performance):"undefined"!==typeof e&&(null===(t=e.perf_hooks)||void 0===t?void 0:t.performance)?(r=!0,o=e.perf_hooks.performance):r=!1),r}function i(){return a()?o.now():Date.now()}n.d(t,"a",(function(){return i}))}).call(this,n("c8ba"))},5141:function(e,t,n){"use strict";n.d(t,"a",(function(){return gs}));var r=n("7a23"),o=n("3b4c"),a=n.n(o),i=n("844d"),s=n.n(i);function c(e){return c="function"==typeof a.a&&"symbol"==typeof s.a?function(e){return typeof e}:function(e){return e&&"function"==typeof a.a&&e.constructor===a.a&&e!==a.a.prototype?"symbol":typeof e},c(e)}n("d9e2");var l=n("0dc8"),u=n.n(l),d=n("e946"),p=n.n(d),f=n("52da"),h=n.n(f),m=n("d254"),v=n.n(m);function g(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 _(e,t){var n;if(e){if("string"===typeof e)return g(e,t);var r=h()(n=Object.prototype.toString.call(e)).call(n,8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?v()(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?g(e,t):void 0}}function y(e,t){var n="undefined"!==typeof a.a&&u()(e)||e["@@iterator"];if(!n){if(p()(e)||(n=_(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,s=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){c=!0,i=e},f:function(){try{s||null==n["return"]||n["return"]()}finally{if(c)throw i}}}}var b={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},O=function(e,t,n){var r,o=b[e];return r="string"===typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},M=O;function k(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var C={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},w={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},I={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},S={date:k({formats:C,defaultWidth:"full"}),time:k({formats:w,defaultWidth:"full"}),dateTime:k({formats:I,defaultWidth:"full"})},T=S,E={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},j=function(e,t,n,r){return E[e]},D=j;function L(e){return function(t,n){var r,o=null!==n&&void 0!==n&&n.context?String(n.context):"standalone";if("formatting"===o&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,i=null!==n&&void 0!==n&&n.width?String(n.width):a;r=e.formattingValues[i]||e.formattingValues[a]}else{var s=e.defaultWidth,c=null!==n&&void 0!==n&&n.width?String(n.width):e.defaultWidth;r=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return r[l]}}var A={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},N={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},x={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},R={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},P={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},U={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},V=function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},B={ordinalNumber:V,era:L({values:A,defaultWidth:"wide"}),quarter:L({values:N,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:L({values:x,defaultWidth:"wide"}),day:L({values:R,defaultWidth:"wide"}),dayPeriod:L({values:P,defaultWidth:"wide",formattingValues:U,defaultFormattingWidth:"wide"})},F=B;function G(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;var i,s=a[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(c)?H(c,(function(e){return e.test(s)})):z(c,(function(e){return e.test(s)}));i=e.valueCallback?e.valueCallback(l):l,i=n.valueCallback?n.valueCallback(i):i;var u=t.slice(s.length);return{value:i,rest:u}}}function z(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function H(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function Y(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var o=r[0],a=t.match(e.parsePattern);if(!a)return null;var i=e.valueCallback?e.valueCallback(a[0]):a[0];i=n.valueCallback?n.valueCallback(i):i;var s=t.slice(o.length);return{value:i,rest:s}}}var q=/^(\d+)(th|st|nd|rd)?/i,W=/\d+/i,K={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},$={any:[/^b/i,/^(a|c)/i]},J={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Q={any:[/1/i,/2/i,/3/i,/4/i]},X={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Z={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},ee={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},te={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},ne={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},re={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},oe={ordinalNumber:Y({matchPattern:q,parsePattern:W,valueCallback:function(e){return parseInt(e,10)}}),era:G({matchPatterns:K,defaultMatchWidth:"wide",parsePatterns:$,defaultParseWidth:"any"}),quarter:G({matchPatterns:J,defaultMatchWidth:"wide",parsePatterns:Q,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:G({matchPatterns:X,defaultMatchWidth:"wide",parsePatterns:Z,defaultParseWidth:"any"}),day:G({matchPatterns:ee,defaultMatchWidth:"wide",parsePatterns:te,defaultParseWidth:"any"}),dayPeriod:G({matchPatterns:ne,defaultMatchWidth:"any",parsePatterns:re,defaultParseWidth:"any"})},ae=oe,ie={code:"en-US",formatDistance:M,formatLong:T,formatRelative:D,localize:F,match:ae,options:{weekStartsOn:0,firstWeekContainsDate:1}},se=ie,ce=se;function le(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function ue(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function de(e){ue(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===c(e)&&"[object Date]"===t?new Date(e.getTime()):"number"===typeof e||"[object Number]"===t?new Date(e):("string"!==typeof e&&"[object String]"!==t||"undefined"===typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function pe(e,t){ue(2,arguments);var n=de(e).getTime(),r=le(t);return new Date(n+r)}function fe(e,t){ue(2,arguments);var n=le(t);return pe(e,-n)}function he(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}var me=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},ve=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},ge=function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],o=r[1],a=r[2];if(!a)return me(e,t);switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;case"PPPP":default:n=t.dateTime({width:"full"});break}return n.replace("{{date}}",me(o,t)).replace("{{time}}",ve(a,t))},_e={p:ve,P:ge},ye=_e;function be(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}var Oe=["D","DD"],Me=["YY","YYYY"];function ke(e){return-1!==Oe.indexOf(e)}function Ce(e){return-1!==Me.indexOf(e)}function we(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}function Ie(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Se=n("acf5"),Te=n.n(Se),Ee=n("2d80"),je=n.n(Ee),De=n("8c96"),Le=n.n(De),Ae=n("78b2"),Ne=n.n(Ae);function xe(e,t){var n;return xe=Le.a?Ne()(n=Le.a).call(n):function(e,t){return e.__proto__=t,e},xe(e,t)}function Re(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Te()(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),je()(e,"prototype",{writable:!1}),t&&xe(e,t)}var Pe=n("c90a"),Ue=n.n(Pe),Ve=n("cca4"),Be=n.n(Ve);function Fe(e){var t;return Fe=Le.a?Ne()(t=Be.a).call(t):function(e){return e.__proto__||Be()(e)},Fe(e)}n("f8c9");function Ge(){if("undefined"===typeof Reflect||!Ue.a)return!1;if(Ue.a.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Ue()(Boolean,[],(function(){}))),!0}catch(e){return!1}}function ze(e,t){if(t&&("object"===c(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ie(e)}function He(e){var t=Ge();return function(){var n,r=Fe(e);if(t){var o=Fe(this).constructor;n=Ue()(r,arguments,o)}else n=r.apply(this,arguments);return ze(this,n)}}function Ye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var qe=n("e60a"),We=n.n(qe);function Ke(e,t){if("object"!==c(e)||null===e)return e;var n=e[We.a];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function $e(e){var t=Ke(e,"string");return"symbol"===c(t)?t:String(t)}function Je(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),je()(e,$e(r.key),r)}}function Qe(e,t,n){return t&&Je(e.prototype,t),n&&Je(e,n),je()(e,"prototype",{writable:!1}),e}function Xe(e,t,n){return t=$e(t),t in e?je()(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ze=10,et=function(){function e(){Ye(this,e),Xe(this,"priority",void 0),Xe(this,"subPriority",0)}return Qe(e,[{key:"validate",value:function(e,t){return!0}}]),e}(),tt=function(e){Re(n,e);var t=He(n);function n(e,r,o,a,i){var s;return Ye(this,n),s=t.call(this),s.value=e,s.validateValue=r,s.setValue=o,s.priority=a,i&&(s.subPriority=i),s}return Qe(n,[{key:"validate",value:function(e,t){return this.validateValue(e,this.value,t)}},{key:"set",value:function(e,t,n){return this.setValue(e,t,this.value,n)}}]),n}(et),nt=function(e){Re(n,e);var t=He(n);function n(){var e;Ye(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),Xe(Ie(e),"priority",Ze),Xe(Ie(e),"subPriority",-1),e}return Qe(n,[{key:"set",value:function(e,t){if(t.timestampIsSet)return e;var n=new Date(0);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}}]),n}(et),rt=function(){function e(){Ye(this,e),Xe(this,"incompatibleTokens",void 0),Xe(this,"priority",void 0),Xe(this,"subPriority",void 0)}return Qe(e,[{key:"run",value:function(e,t,n,r){var o=this.parse(e,t,n,r);return o?{setter:new tt(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}},{key:"validate",value:function(e,t,n){return!0}}]),e}(),ot=function(e){Re(n,e);var t=He(n);function n(){var e;Ye(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),Xe(Ie(e),"priority",140),Xe(Ie(e),"incompatibleTokens",["R","u","t","T"]),e}return Qe(n,[{key:"parse",value:function(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});case"GGGG":default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}},{key:"set",value:function(e,t,n){return t.era=n,e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(rt),at=(Math.pow(10,8),6e4),it=36e5,st=1e3,ct={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},lt={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function ut(e,t){return e?{value:t(e.value),rest:e.rest}:e}function dt(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function pt(e,t){var n=t.match(e);if(!n)return null;if("Z"===n[0])return{value:0,rest:t.slice(1)};var r="+"===n[1]?1:-1,o=n[2]?parseInt(n[2],10):0,a=n[3]?parseInt(n[3],10):0,i=n[5]?parseInt(n[5],10):0;return{value:r*(o*it+a*at+i*st),rest:t.slice(n[0].length)}}function ft(e){return dt(ct.anyDigitsSigned,e)}function ht(e,t){switch(e){case 1:return dt(ct.singleDigit,t);case 2:return dt(ct.twoDigits,t);case 3:return dt(ct.threeDigits,t);case 4:return dt(ct.fourDigits,t);default:return dt(new RegExp("^\\d{1,"+e+"}"),t)}}function mt(e,t){switch(e){case 1:return dt(ct.singleDigitSigned,t);case 2:return dt(ct.twoDigitsSigned,t);case 3:return dt(ct.threeDigitsSigned,t);case 4:return dt(ct.fourDigitsSigned,t);default:return dt(new RegExp("^-?\\d{1,"+e+"}"),t)}}function vt(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function gt(e,t){var n,r=t>0,o=r?t:1-t;if(o<=50)n=e||100;else{var a=o+50,i=100*Math.floor(a/100),s=e>=a%100;n=e+i-(s?100:0)}return r?n:1-n}function _t(e){return e%400===0||e%4===0&&e%100!==0}var yt=function(e){Re(n,e);var t=He(n);function n(){var e;Ye(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),Xe(Ie(e),"priority",130),Xe(Ie(e),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),e}return Qe(n,[{key:"parse",value:function(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return ut(ht(4,e),r);case"yo":return ut(n.ordinalNumber(e,{unit:"year"}),r);default:return ut(ht(t.length,e),r)}}},{key:"validate",value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:"set",value:function(e,t,n){var r=e.getUTCFullYear();if(n.isTwoDigitYear){var o=gt(n.year,r);return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e}var a="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(a,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(rt),bt={};function Ot(){return bt}function Mt(e,t){var n,r,o,a,i,s,c,l;ue(1,arguments);var u=Ot(),d=le(null!==(n=null!==(r=null!==(o=null!==(a=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==a?a:null===t||void 0===t||null===(i=t.locale)||void 0===i||null===(s=i.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:u.weekStartsOn)&&void 0!==r?r:null===(c=u.locale)||void 0===c||null===(l=c.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=de(e),f=p.getUTCDay(),h=(f<d?7:0)+f-d;return p.setUTCDate(p.getUTCDate()-h),p.setUTCHours(0,0,0,0),p}function kt(e,t){var n,r,o,a,i,s,c,l;ue(1,arguments);var u=de(e),d=u.getUTCFullYear(),p=Ot(),f=le(null!==(n=null!==(r=null!==(o=null!==(a=null===t||void 0===t?void 0:t.firstWeekContainsDate)&&void 0!==a?a:null===t||void 0===t||null===(i=t.locale)||void 0===i||null===(s=i.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:p.firstWeekContainsDate)&&void 0!==r?r:null===(c=p.locale)||void 0===c||null===(l=c.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==n?n:1);if(!(f>=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(d+1,0,f),h.setUTCHours(0,0,0,0);var m=Mt(h,t),v=new Date(0);v.setUTCFullYear(d,0,f),v.setUTCHours(0,0,0,0);var g=Mt(v,t);return u.getTime()>=m.getTime()?d+1:u.getTime()>=g.getTime()?d:d-1}var Ct=function(e){Re(n,e);var t=He(n);function n(){var e;Ye(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),Xe(Ie(e),"priority",130),Xe(Ie(e),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),e}return Qe(n,[{key:"parse",value:function(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return ut(ht(4,e),r);case"Yo":return ut(n.ordinalNumber(e,{unit:"year"}),r);default:return ut(ht(t.length,e),r)}}},{key:"validate",value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:"set",value:function(e,t,n,r){var o=kt(e,r);if(n.isTwoDigitYear){var a=gt(n.year,o);return e.setUTCFullYear(a,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),Mt(e,r)}var i="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(i,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),Mt(e,r)}}]),n}(rt);function wt(e){ue(1,arguments);var t=1,n=de(e),r=n.getUTCDay(),o=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-o),n.setUTCHours(0,0,0,0),n}var It=function(e){Re(n,e);var t=He(n);function n(){var e;Ye(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),Xe(Ie(e),"priority",130),Xe(Ie(e),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),e}return Qe(n,[{key:"parse",value:function(e,t){return mt("R"===t?4:t.length,e)}},{key:"set",value:function(e,t,n){var r=new Date(0);return r.setUTCFullYear(n,0,4),r.setUTCHours(0,0,0,0),wt(r)}}]),n}(rt),St=function(e){Re(n,e);var t=He(n);function n(){var e;Ye(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),Xe(Ie(e),"priority",130),Xe(Ie(e),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),e}return Qe(n,[{key:"parse",value:function(e,t){return mt("u"===t?4:t.length,e)}},{key:"set",value:function(e,t,n){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(rt),Tt=function(e){Re(n,e);var t=He(n);function n(){var e;Ye(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),Xe(Ie(e),"priority",120),Xe(Ie(e),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),e}return Qe(n,[{key:"parse",value:function(e,t,n){switch(t){case"Q":case"QQ":return ht(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}]),n}(rt),Et=function(e){Re(n,e);var t=He(n);function n(){var e;Ye(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),Xe(Ie(e),"priority",120),Xe(Ie(e),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),e}return Qe(n,[{key:"parse",value:function(e,t,n){switch(t){case"q":case"qq":return ht(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}]),n}(rt),jt=function(e){Re(n,e);var t=He(n);function n(){var e;Ye(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),Xe(Ie(e),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),Xe(Ie(e),"priority",110),e}return Qe(n,[{key:"parse",value:function(e,t,n){var r=function(e){return e-1};switch(t){case"M":return ut(dt(ct.month,e),r);case"MM":return ut(ht(2,e),r);case"Mo":return ut(n.ordinalNumber(e,{unit:"month"}),r);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}(rt),Dt=function(e){Re(n,e);var t=He(n);function n(){var e;Ye(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),Xe(Ie(e),"priority",110),Xe(Ie(e),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),e}return Qe(n,[{key:"parse",value:function(e,t,n){var r=function(e){return e-1};switch(t){case"L":return ut(dt(ct.month,e),r);case"LL":return ut(ht(2,e),r);case"Lo":return ut(n.ordinalNumber(e,{unit:"month"}),r);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}(rt);function Lt(e,t){var n,r,o,a,i,s,c,l;ue(1,arguments);var u=Ot(),d=le(null!==(n=null!==(r=null!==(o=null!==(a=null===t||void 0===t?void 0:t.firstWeekContainsDate)&&void 0!==a?a:null===t||void 0===t||null===(i=t.locale)||void 0===i||null===(s=i.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:u.firstWeekContainsDate)&&void 0!==r?r:null===(c=u.locale)||void 0===c||null===(l=c.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==n?n:1),p=kt(e,t),f=new Date(0);f.setUTCFullYear(p,0,d),f.setUTCHours(0,0,0,0);var h=Mt(f,t);return h}var At=6048e5;function Nt(e,t){ue(1,arguments);var n=de(e),r=Mt(n,t).getTime()-Lt(n,t).getTime();return Math.round(r/At)+1}function xt(e,t,n){ue(2,arguments);var r=de(e),o=le(t),a=Nt(r,n)-o;return r.setUTCDate(r.getUTCDate()-7*a),r}var Rt=function(e){Re(n,e);var t=He(n);function n(){var e;Ye(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),Xe(Ie(e),"priority",100),Xe(Ie(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),e}return Qe(n,[{key:"parse",value:function(e,t,n){switch(t){case"w":return dt(ct.week,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return ht(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n,r){return Mt(xt(e,n,r),r)}}]),n}(rt);function Pt(e){ue(1,arguments);var t=de(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=wt(r),a=new Date(0);a.setUTCFullYear(n,0,4),a.setUTCHours(0,0,0,0);var i=wt(a);return t.getTime()>=o.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}function Ut(e){ue(1,arguments);var t=Pt(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=wt(n);return r}var Vt=6048e5;function Bt(e){ue(1,arguments);var t=de(e),n=wt(t).getTime()-Ut(t).getTime();return Math.round(n/Vt)+1}function Ft(e,t){ue(2,arguments);var n=de(e),r=le(t),o=Bt(n)-r;return n.setUTCDate(n.getUTCDate()-7*o),n}var Gt=function(e){Re(n,e);var t=He(n);function n(){var e;Ye(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),Xe(Ie(e),"priority",100),Xe(Ie(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),e}return Qe(n,[{key:"parse",value:function(e,t,n){switch(t){case"I":return dt(ct.week,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return ht(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n){return wt(Ft(e,n))}}]),n}(rt),zt=[31,28,31,30,31,30,31,31,30,31,30,31],Ht=[31,29,31,30,31,30,31,31,30,31,30,31],Yt=function(e){Re(n,e);var t=He(n);function n(){var e;Ye(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),Xe(Ie(e),"priority",90),Xe(Ie(e),"subPriority",1),Xe(Ie(e),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),e}return Qe(n,[{key:"parse",value:function(e,t,n){switch(t){case"d":return dt(ct.date,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return ht(t.length,e)}}},{key:"validate",value:function(e,t){var n=e.getUTCFullYear(),r=_t(n),o=e.getUTCMonth();return r?t>=1&&t<=Ht[o]:t>=1&&t<=zt[o]}},{key:"set",value:function(e,t,n){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e}}]),n}(rt),qt=function(e){Re(n,e);var t=He(n);function n(){var e;Ye(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),Xe(Ie(e),"priority",90),Xe(Ie(e),"subpriority",1),Xe(Ie(e),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),e}return Qe(n,[{key:"parse",value:function(e,t,n){switch(t){case"D":case"DD":return dt(ct.dayOfYear,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return ht(t.length,e)}}},{key:"validate",value:function(e,t){var n=e.getUTCFullYear(),r=_t(n);return r?t>=1&&t<=366:t>=1&&t<=365}},{key:"set",value:function(e,t,n){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e}}]),n}(rt);function Wt(e,t,n){var r,o,a,i,s,c,l,u;ue(2,arguments);var d=Ot(),p=le(null!==(r=null!==(o=null!==(a=null!==(i=null===n||void 0===n?void 0:n.weekStartsOn)&&void 0!==i?i:null===n||void 0===n||null===(s=n.locale)||void 0===s||null===(c=s.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==a?a:d.weekStartsOn)&&void 0!==o?o:null===(l=d.locale)||void 0===l||null===(u=l.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==r?r:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=de(e),h=le(t),m=f.getUTCDay(),v=h%7,g=(v+7)%7,_=(g<p?7:0)+h-m;return f.setUTCDate(f.getUTCDate()+_),f}var Kt=function(e){Re(n,e);var t=He(n);function n(){var e;Ye(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),Xe(Ie(e),"priority",90),Xe(Ie(e),"incompatibleTokens",["D","i","e","c","t","T"]),e}return Qe(n,[{key:"parse",value:function(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return e=Wt(e,n,r),e.setUTCHours(0,0,0,0),e}}]),n}(rt),$t=function(e){Re(n,e);var t=He(n);function n(){var e;Ye(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),Xe(Ie(e),"priority",90),Xe(Ie(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),e}return Qe(n,[{key:"parse",value:function(e,t,n,r){var o=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return ut(ht(t.length,e),o);case"eo":return ut(n.ordinalNumber(e,{unit:"day"}),o);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return e=Wt(e,n,r),e.setUTCHours(0,0,0,0),e}}]),n}(rt),Jt=function(e){Re(n,e);var t=He(n);function n(){var e;Ye(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),Xe(Ie(e),"priority",90),Xe(Ie(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),e}return Qe(n,[{key:"parse",value:function(e,t,n,r){var o=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return ut(ht(t.length,e),o);case"co":return ut(n.ordinalNumber(e,{unit:"day"}),o);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return e=Wt(e,n,r),e.setUTCHours(0,0,0,0),e}}]),n}(rt);function Qt(e,t){ue(2,arguments);var n=le(t);n%7===0&&(n-=7);var r=1,o=de(e),a=o.getUTCDay(),i=n%7,s=(i+7)%7,c=(s<r?7:0)+n-a;return o.setUTCDate(o.getUTCDate()+c),o}var Xt=function(e){Re(n,e);var t=He(n);function n(){var e;Ye(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),Xe(Ie(e),"priority",90),Xe(Ie(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),e}return Qe(n,[{key:"parse",value:function(e,t,n){var r=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return ht(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return ut(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiii":return ut(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return ut(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiii":default:return ut(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r)}}},{key:"validate",value:function(e,t){return t>=1&&t<=7}},{key:"set",value:function(e,t,n){return e=Qt(e,n),e.setUTCHours(0,0,0,0),e}}]),n}(rt),Zt=function(e){Re(n,e);var t=He(n);function n(){var e;Ye(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),Xe(Ie(e),"priority",80),Xe(Ie(e),"incompatibleTokens",["b","B","H","k","t","T"]),e}return Qe(n,[{key:"parse",value:function(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(vt(n),0,0,0),e}}]),n}(rt),en=function(e){Re(n,e);var t=He(n);function n(){var e;Ye(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),Xe(Ie(e),"priority",80),Xe(Ie(e),"incompatibleTokens",["a","B","H","k","t","T"]),e}return Qe(n,[{key:"parse",value:function(e,t,n){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(vt(n),0,0,0),e}}]),n}(rt),tn=function(e){Re(n,e);var t=He(n);function n(){var e;Ye(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),Xe(Ie(e),"priority",80),Xe(Ie(e),"incompatibleTokens",["a","b","t","T"]),e}return Qe(n,[{key:"parse",value:function(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(vt(n),0,0,0),e}}]),n}(rt),nn=function(e){Re(n,e);var t=He(n);function n(){var e;Ye(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),Xe(Ie(e),"priority",70),Xe(Ie(e),"incompatibleTokens",["H","K","k","t","T"]),e}return Qe(n,[{key:"parse",value:function(e,t,n){switch(t){case"h":return dt(ct.hour12h,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return ht(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=12}},{key:"set",value:function(e,t,n){var r=e.getUTCHours()>=12;return r&&n<12?e.setUTCHours(n+12,0,0,0):r||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e}}]),n}(rt),rn=function(e){Re(n,e);var t=He(n);function n(){var e;Ye(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),Xe(Ie(e),"priority",70),Xe(Ie(e),"incompatibleTokens",["a","b","h","K","k","t","T"]),e}return Qe(n,[{key:"parse",value:function(e,t,n){switch(t){case"H":return dt(ct.hour23h,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return ht(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=23}},{key:"set",value:function(e,t,n){return e.setUTCHours(n,0,0,0),e}}]),n}(rt),on=function(e){Re(n,e);var t=He(n);function n(){var e;Ye(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),Xe(Ie(e),"priority",70),Xe(Ie(e),"incompatibleTokens",["h","H","k","t","T"]),e}return Qe(n,[{key:"parse",value:function(e,t,n){switch(t){case"K":return dt(ct.hour11h,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return ht(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){var r=e.getUTCHours()>=12;return r&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e}}]),n}(rt),an=function(e){Re(n,e);var t=He(n);function n(){var e;Ye(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),Xe(Ie(e),"priority",70),Xe(Ie(e),"incompatibleTokens",["a","b","h","H","K","t","T"]),e}return Qe(n,[{key:"parse",value:function(e,t,n){switch(t){case"k":return dt(ct.hour24h,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return ht(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=24}},{key:"set",value:function(e,t,n){var r=n<=24?n%24:n;return e.setUTCHours(r,0,0,0),e}}]),n}(rt),sn=function(e){Re(n,e);var t=He(n);function n(){var e;Ye(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),Xe(Ie(e),"priority",60),Xe(Ie(e),"incompatibleTokens",["t","T"]),e}return Qe(n,[{key:"parse",value:function(e,t,n){switch(t){case"m":return dt(ct.minute,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return ht(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCMinutes(n,0,0),e}}]),n}(rt),cn=function(e){Re(n,e);var t=He(n);function n(){var e;Ye(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),Xe(Ie(e),"priority",50),Xe(Ie(e),"incompatibleTokens",["t","T"]),e}return Qe(n,[{key:"parse",value:function(e,t,n){switch(t){case"s":return dt(ct.second,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return ht(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCSeconds(n,0),e}}]),n}(rt),ln=function(e){Re(n,e);var t=He(n);function n(){var e;Ye(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),Xe(Ie(e),"priority",30),Xe(Ie(e),"incompatibleTokens",["t","T"]),e}return Qe(n,[{key:"parse",value:function(e,t){var n=function(e){return Math.floor(e*Math.pow(10,3-t.length))};return ut(ht(t.length,e),n)}},{key:"set",value:function(e,t,n){return e.setUTCMilliseconds(n),e}}]),n}(rt),un=function(e){Re(n,e);var t=He(n);function n(){var e;Ye(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),Xe(Ie(e),"priority",10),Xe(Ie(e),"incompatibleTokens",["t","T","x"]),e}return Qe(n,[{key:"parse",value:function(e,t){switch(t){case"X":return pt(lt.basicOptionalMinutes,e);case"XX":return pt(lt.basic,e);case"XXXX":return pt(lt.basicOptionalSeconds,e);case"XXXXX":return pt(lt.extendedOptionalSeconds,e);case"XXX":default:return pt(lt.extended,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}]),n}(rt),dn=function(e){Re(n,e);var t=He(n);function n(){var e;Ye(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),Xe(Ie(e),"priority",10),Xe(Ie(e),"incompatibleTokens",["t","T","X"]),e}return Qe(n,[{key:"parse",value:function(e,t){switch(t){case"x":return pt(lt.basicOptionalMinutes,e);case"xx":return pt(lt.basic,e);case"xxxx":return pt(lt.basicOptionalSeconds,e);case"xxxxx":return pt(lt.extendedOptionalSeconds,e);case"xxx":default:return pt(lt.extended,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}]),n}(rt),pn=function(e){Re(n,e);var t=He(n);function n(){var e;Ye(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),Xe(Ie(e),"priority",40),Xe(Ie(e),"incompatibleTokens","*"),e}return Qe(n,[{key:"parse",value:function(e){return ft(e)}},{key:"set",value:function(e,t,n){return[new Date(1e3*n),{timestampIsSet:!0}]}}]),n}(rt),fn=function(e){Re(n,e);var t=He(n);function n(){var e;Ye(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),Xe(Ie(e),"priority",20),Xe(Ie(e),"incompatibleTokens","*"),e}return Qe(n,[{key:"parse",value:function(e){return ft(e)}},{key:"set",value:function(e,t,n){return[new Date(n),{timestampIsSet:!0}]}}]),n}(rt),hn={G:new ot,y:new yt,Y:new Ct,R:new It,u:new St,Q:new Tt,q:new Et,M:new jt,L:new Dt,w:new Rt,I:new Gt,d:new Yt,D:new qt,E:new Kt,e:new $t,c:new Jt,i:new Xt,a:new Zt,b:new en,B:new tn,h:new nn,H:new rn,K:new on,k:new an,m:new sn,s:new cn,S:new ln,X:new un,x:new dn,t:new pn,T:new fn},mn=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,vn=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,gn=/^'([^]*?)'?$/,_n=/''/g,yn=/\S/,bn=/[a-zA-Z]/;function On(e,t,n,r){var o,a,i,s,l,u,d,p,f,h,m,v,g,_,b,O,M,k;ue(3,arguments);var C=String(e),w=String(t),I=Ot(),S=null!==(o=null!==(a=null===r||void 0===r?void 0:r.locale)&&void 0!==a?a:I.locale)&&void 0!==o?o:ce;if(!S.match)throw new RangeError("locale must contain match property");var T=le(null!==(i=null!==(s=null!==(l=null!==(u=null===r||void 0===r?void 0:r.firstWeekContainsDate)&&void 0!==u?u:null===r||void 0===r||null===(d=r.locale)||void 0===d||null===(p=d.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==l?l:I.firstWeekContainsDate)&&void 0!==s?s:null===(f=I.locale)||void 0===f||null===(h=f.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==i?i:1);if(!(T>=1&&T<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var E=le(null!==(m=null!==(v=null!==(g=null!==(_=null===r||void 0===r?void 0:r.weekStartsOn)&&void 0!==_?_:null===r||void 0===r||null===(b=r.locale)||void 0===b||null===(O=b.options)||void 0===O?void 0:O.weekStartsOn)&&void 0!==g?g:I.weekStartsOn)&&void 0!==v?v:null===(M=I.locale)||void 0===M||null===(k=M.options)||void 0===k?void 0:k.weekStartsOn)&&void 0!==m?m:0);if(!(E>=0&&E<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===w)return""===C?de(n):new Date(NaN);var j,D={firstWeekContainsDate:T,weekStartsOn:E,locale:S},L=[new nt],A=w.match(vn).map((function(e){var t=e[0];if(t in ye){var n=ye[t];return n(e,S.formatLong)}return e})).join("").match(mn),N=[],x=y(A);try{var R=function(){var t=j.value;null!==r&&void 0!==r&&r.useAdditionalWeekYearTokens||!Ce(t)||we(t,w,e),null!==r&&void 0!==r&&r.useAdditionalDayOfYearTokens||!ke(t)||we(t,w,e);var n=t[0],o=hn[n];if(o){var a=o.incompatibleTokens;if(Array.isArray(a)){var i=N.find((function(e){return a.includes(e.token)||e.token===n}));if(i)throw new RangeError("The format string mustn't contain `".concat(i.fullToken,"` and `").concat(t,"` at the same time"))}else if("*"===o.incompatibleTokens&&N.length>0)throw new RangeError("The format string mustn't contain `".concat(t,"` and any other token at the same time"));N.push({token:n,fullToken:t});var s=o.run(C,t,S.match,D);if(!s)return{v:new Date(NaN)};L.push(s.setter),C=s.rest}else{if(n.match(bn))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if("''"===t?t="'":"'"===n&&(t=Mn(t)),0!==C.indexOf(t))return{v:new Date(NaN)};C=C.slice(t.length)}};for(x.s();!(j=x.n()).done;){var P=R();if("object"===c(P))return P.v}}catch(q){x.e(q)}finally{x.f()}if(C.length>0&&yn.test(C))return new Date(NaN);var U=L.map((function(e){return e.priority})).sort((function(e,t){return t-e})).filter((function(e,t,n){return n.indexOf(e)===t})).map((function(e){return L.filter((function(t){return t.priority===e})).sort((function(e,t){return t.subPriority-e.subPriority}))})).map((function(e){return e[0]})),V=de(n);if(isNaN(V.getTime()))return new Date(NaN);var B,F=fe(V,be(V)),G={},z=y(U);try{for(z.s();!(B=z.n()).done;){var H=B.value;if(!H.validate(F,D))return new Date(NaN);var Y=H.set(F,G,D);Array.isArray(Y)?(F=Y[0],he(G,Y[1])):F=Y}}catch(q){z.e(q)}finally{z.f()}return F}function Mn(e){return e.match(gn)[1].replace(_n,"'")}function kn(e){return ue(1,arguments),e instanceof Date||"object"===c(e)&&"[object Date]"===Object.prototype.toString.call(e)}function Cn(e){if(ue(1,arguments),!kn(e)&&"number"!==typeof e)return!1;var t=de(e);return!isNaN(Number(t))}function wn(e){ue(1,arguments);var t=de(e),n=t.getFullYear(),r=t.getMonth(),o=new Date(0);return o.setFullYear(n,r+1,0),o.setHours(0,0,0,0),o.getDate()}function In(e,t){ue(2,arguments);var n=de(e),r=le(t),o=n.getFullYear(),a=n.getDate(),i=new Date(0);i.setFullYear(o,r,15),i.setHours(0,0,0,0);var s=wn(i);return n.setMonth(r,Math.min(a,s)),n}function Sn(e,t){if(ue(2,arguments),"object"!==c(t)||null===t)throw new RangeError("values parameter must be an object");var n=de(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=In(n,t.month)),null!=t.date&&n.setDate(le(t.date)),null!=t.hours&&n.setHours(le(t.hours)),null!=t.minutes&&n.setMinutes(le(t.minutes)),null!=t.seconds&&n.setSeconds(le(t.seconds)),null!=t.milliseconds&&n.setMilliseconds(le(t.milliseconds)),n)}function Tn(e,t){ue(2,arguments);var n=de(e),r=le(t);return n.setHours(r),n}function En(e,t){ue(2,arguments);var n=de(e),r=le(t);return n.setMinutes(r),n}function jn(e,t){ue(2,arguments);var n=de(e),r=le(t);return n.setSeconds(r),n}function Dn(e,t){ue(2,arguments);var n=de(e),r=le(t);return n.setMilliseconds(r),n}function Ln(e,t){ue(2,arguments);var n=de(e),r=de(t);return n.getTime()<r.getTime()}function An(e,t){ue(2,arguments);var n=de(e),r=de(t);return n.getTime()===r.getTime()}function Nn(e,t){ue(2,arguments);var n=de(e),r=de(t);return n.getTime()>r.getTime()}function xn(e){ue(1,arguments);var t=de(e),n=t.getHours();return n}function Rn(e){ue(1,arguments);var t=de(e),n=t.getMinutes();return n}function Pn(e){ue(1,arguments);var t=de(e),n=t.getSeconds();return n}var Un=864e5;function Vn(e){ue(1,arguments);var t=de(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),o=n-r;return Math.floor(o/Un)+1}function Bn(e,t){var n=e<0?"-":"",r=Math.abs(e).toString();while(r.length<t)r="0"+r;return n+r}var Fn={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return Bn("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):Bn(n+1,2)},d:function(e,t){return Bn(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return Bn(e.getUTCHours()%12||12,t.length)},H:function(e,t){return Bn(e.getUTCHours(),t.length)},m:function(e,t){return Bn(e.getUTCMinutes(),t.length)},s:function(e,t){return Bn(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds(),o=Math.floor(r*Math.pow(10,n-3));return Bn(o,t.length)}},Gn=Fn,zn={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Hn={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return Gn.y(e,t)},Y:function(e,t,n,r){var o=kt(e,r),a=o>0?o:1-o;if("YY"===t){var i=a%100;return Bn(i,2)}return"Yo"===t?n.ordinalNumber(a,{unit:"year"}):Bn(a,t.length)},R:function(e,t){var n=Pt(e);return Bn(n,t.length)},u:function(e,t){var n=e.getUTCFullYear();return Bn(n,t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Bn(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Bn(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return Gn.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return Bn(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var o=Nt(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):Bn(o,t.length)},I:function(e,t,n){var r=Bt(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):Bn(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):Gn.d(e,t)},D:function(e,t,n){var r=Vn(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):Bn(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var o=e.getUTCDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return Bn(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var o=e.getUTCDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return Bn(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return Bn(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours(),o=r/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,o=e.getUTCHours();switch(r=12===o?zn.noon:0===o?zn.midnight:o/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,o=e.getUTCHours();switch(r=o>=17?zn.evening:o>=12?zn.afternoon:o>=4?zn.morning:zn.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Gn.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):Gn.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):Bn(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):Bn(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Gn.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Gn.s(e,t)},S:function(e,t){return Gn.S(e,t)},X:function(e,t,n,r){var o=r._originalDate||e,a=o.getTimezoneOffset();if(0===a)return"Z";switch(t){case"X":return qn(a);case"XXXX":case"XX":return Wn(a);case"XXXXX":case"XXX":default:return Wn(a,":")}},x:function(e,t,n,r){var o=r._originalDate||e,a=o.getTimezoneOffset();switch(t){case"x":return qn(a);case"xxxx":case"xx":return Wn(a);case"xxxxx":case"xxx":default:return Wn(a,":")}},O:function(e,t,n,r){var o=r._originalDate||e,a=o.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Yn(a,":");case"OOOO":default:return"GMT"+Wn(a,":")}},z:function(e,t,n,r){var o=r._originalDate||e,a=o.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Yn(a,":");case"zzzz":default:return"GMT"+Wn(a,":")}},t:function(e,t,n,r){var o=r._originalDate||e,a=Math.floor(o.getTime()/1e3);return Bn(a,t.length)},T:function(e,t,n,r){var o=r._originalDate||e,a=o.getTime();return Bn(a,t.length)}};function Yn(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),a=r%60;if(0===a)return n+String(o);var i=t||"";return n+String(o)+i+Bn(a,2)}function qn(e,t){if(e%60===0){var n=e>0?"-":"+";return n+Bn(Math.abs(e)/60,2)}return Wn(e,t)}function Wn(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e),a=Bn(Math.floor(o/60),2),i=Bn(o%60,2);return r+a+n+i}var Kn=Hn,$n=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Jn=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Qn=/^'([^]*?)'?$/,Xn=/''/g,Zn=/[a-zA-Z]/;function er(e,t,n){var r,o,a,i,s,c,l,u,d,p,f,h,m,v,g,_,y,b;ue(2,arguments);var O=String(t),M=Ot(),k=null!==(r=null!==(o=null===n||void 0===n?void 0:n.locale)&&void 0!==o?o:M.locale)&&void 0!==r?r:ce,C=le(null!==(a=null!==(i=null!==(s=null!==(c=null===n||void 0===n?void 0:n.firstWeekContainsDate)&&void 0!==c?c:null===n||void 0===n||null===(l=n.locale)||void 0===l||null===(u=l.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==s?s:M.firstWeekContainsDate)&&void 0!==i?i:null===(d=M.locale)||void 0===d||null===(p=d.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==a?a:1);if(!(C>=1&&C<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var w=le(null!==(f=null!==(h=null!==(m=null!==(v=null===n||void 0===n?void 0:n.weekStartsOn)&&void 0!==v?v:null===n||void 0===n||null===(g=n.locale)||void 0===g||null===(_=g.options)||void 0===_?void 0:_.weekStartsOn)&&void 0!==m?m:M.weekStartsOn)&&void 0!==h?h:null===(y=M.locale)||void 0===y||null===(b=y.options)||void 0===b?void 0:b.weekStartsOn)&&void 0!==f?f:0);if(!(w>=0&&w<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!k.localize)throw new RangeError("locale must contain localize property");if(!k.formatLong)throw new RangeError("locale must contain formatLong property");var I=de(e);if(!Cn(I))throw new RangeError("Invalid time value");var S=be(I),T=fe(I,S),E={firstWeekContainsDate:C,weekStartsOn:w,locale:k,_originalDate:I},j=O.match(Jn).map((function(e){var t=e[0];if("p"===t||"P"===t){var n=ye[t];return n(e,k.formatLong)}return e})).join("").match($n).map((function(r){if("''"===r)return"'";var o=r[0];if("'"===o)return tr(r);var a=Kn[o];if(a)return null!==n&&void 0!==n&&n.useAdditionalWeekYearTokens||!Ce(r)||we(r,t,String(e)),null!==n&&void 0!==n&&n.useAdditionalDayOfYearTokens||!ke(r)||we(r,t,String(e)),a(T,r,k.localize,E);if(o.match(Zn))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return r})).join("");return j}function tr(e){var t=e.match(Qn);return t?t[1].replace(Xn,"'"):e}function nr(e){ue(1,arguments);var t=de(e),n=t.getMonth();return n}function rr(e){ue(1,arguments);var t=de(e),n=t.getDay();return n}function or(e){return ue(1,arguments),de(e).getFullYear()}function ar(e,t){var n;ue(1,arguments);var r=le(null!==(n=null===t||void 0===t?void 0:t.additionalDigits)&&void 0!==n?n:2);if(2!==r&&1!==r&&0!==r)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!==typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var o,a=ur(e);if(a.date){var i=dr(a.date,r);o=pr(i.restDateString,i.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var s,c=o.getTime(),l=0;if(a.time&&(l=hr(a.time),isNaN(l)))return new Date(NaN);if(!a.timezone){var u=new Date(c+l),d=new Date(0);return d.setFullYear(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()),d.setHours(u.getUTCHours(),u.getUTCMinutes(),u.getUTCSeconds(),u.getUTCMilliseconds()),d}return s=vr(a.timezone),isNaN(s)?new Date(NaN):new Date(c+l+s)}var ir={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},sr=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,cr=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,lr=/^([+-])(\d{2})(?::?(\d{2}))?$/;function ur(e){var t,n={},r=e.split(ir.dateTimeDelimiter);if(r.length>2)return n;if(/:/.test(r[0])?t=r[0]:(n.date=r[0],t=r[1],ir.timeZoneDelimiter.test(n.date)&&(n.date=e.split(ir.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length))),t){var o=ir.timezone.exec(t);o?(n.time=t.replace(o[1],""),n.timezone=o[1]):n.time=t}return n}function dr(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var o=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:null===a?o:100*a,restDateString:e.slice((r[1]||r[2]).length)}}function pr(e,t){if(null===t)return new Date(NaN);var n=e.match(sr);if(!n)return new Date(NaN);var r=!!n[4],o=fr(n[1]),a=fr(n[2])-1,i=fr(n[3]),s=fr(n[4]),c=fr(n[5])-1;if(r)return Mr(t,s,c)?gr(t,s,c):new Date(NaN);var l=new Date(0);return br(t,a,i)&&Or(t,o)?(l.setUTCFullYear(t,a,Math.max(o,i)),l):new Date(NaN)}function fr(e){return e?parseInt(e):1}function hr(e){var t=e.match(cr);if(!t)return NaN;var n=mr(t[1]),r=mr(t[2]),o=mr(t[3]);return kr(n,r,o)?n*it+r*at+1e3*o:NaN}function mr(e){return e&&parseFloat(e.replace(",","."))||0}function vr(e){if("Z"===e)return 0;var t=e.match(lr);if(!t)return 0;var n="+"===t[1]?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return Cr(r,o)?n*(r*it+o*at):NaN}function gr(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var o=r.getUTCDay()||7,a=7*(t-1)+n+1-o;return r.setUTCDate(r.getUTCDate()+a),r}var _r=[31,null,31,30,31,30,31,31,30,31,30,31];function yr(e){return e%400===0||e%4===0&&e%100!==0}function br(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(_r[t]||(yr(e)?29:28))}function Or(e,t){return t>=1&&t<=(yr(e)?366:365)}function Mr(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function kr(e,t,n){return 24===e?0===t&&0===n:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function Cr(e,t){return t>=0&&t<=59}function wr(e,t){var n,r,o,a,i,s,c,l;ue(1,arguments);var u=Ot(),d=le(null!==(n=null!==(r=null!==(o=null!==(a=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==a?a:null===t||void 0===t||null===(i=t.locale)||void 0===i||null===(s=i.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:u.weekStartsOn)&&void 0!==r?r:null===(c=u.locale)||void 0===c||null===(l=c.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=de(e),f=p.getDay(),h=(f<d?7:0)+f-d;return p.setDate(p.getDate()-h),p.setHours(0,0,0,0),p}function Ir(e,t){var n,r,o,a,i,s,c,l;ue(1,arguments);var u=Ot(),d=le(null!==(n=null!==(r=null!==(o=null!==(a=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==a?a:null===t||void 0===t||null===(i=t.locale)||void 0===i||null===(s=i.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:u.weekStartsOn)&&void 0!==r?r:null===(c=u.locale)||void 0===c||null===(l=c.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=de(e),f=p.getDay(),h=6+(f<d?-7:0)-(f-d);return p.setDate(p.getDate()+h),p.setHours(23,59,59,999),p}function Sr(e,t){ue(2,arguments);var n=de(e),r=le(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}function Tr(e,t){ue(2,arguments);var n=de(e),r=le(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}function Er(e,t){ue(2,arguments);var n=de(e),r=le(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var o=n.getDate(),a=new Date(n.getTime());a.setMonth(n.getMonth()+r+1,0);var i=a.getDate();return o>=i?a:(n.setFullYear(a.getFullYear(),a.getMonth(),o),n)}function jr(e,t){if(ue(2,arguments),!t||"object"!==c(t))return new Date(NaN);var n=t.years?le(t.years):0,r=t.months?le(t.months):0,o=t.weeks?le(t.weeks):0,a=t.days?le(t.days):0,i=t.hours?le(t.hours):0,s=t.minutes?le(t.minutes):0,l=t.seconds?le(t.seconds):0,u=de(e),d=r||n?Er(u,r+12*n):u,p=a||o?Tr(d,a+7*o):d,f=s+60*i,h=l+60*f,m=1e3*h,v=new Date(p.getTime()+m);return v}function Dr(e,t){var n;ue(1,arguments);var r=e||{},o=de(r.start),a=de(r.end),i=a.getTime();if(!(o.getTime()<=i))throw new RangeError("Invalid interval");var s=[],c=o;c.setHours(0,0,0,0);var l=Number(null!==(n=null===t||void 0===t?void 0:t.step)&&void 0!==n?n:1);if(l<1||isNaN(l))throw new RangeError("`options.step` must be a number greater than 1");while(c.getTime()<=i)s.push(de(c)),c.setDate(c.getDate()+l),c.setHours(0,0,0,0);return s}function Lr(e){ue(1,arguments);var t=de(e);return t.setHours(0,0,0,0),t}var Ar=864e5;function Nr(e,t){ue(2,arguments);var n=Lr(e),r=Lr(t),o=n.getTime()-be(n),a=r.getTime()-be(r);return Math.round((o-a)/Ar)}function xr(e,t){var n,r,o,a,i,s,c,l;ue(1,arguments);var u=de(e),d=u.getFullYear(),p=Ot(),f=le(null!==(n=null!==(r=null!==(o=null!==(a=null===t||void 0===t?void 0:t.firstWeekContainsDate)&&void 0!==a?a:null===t||void 0===t||null===(i=t.locale)||void 0===i||null===(s=i.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:p.firstWeekContainsDate)&&void 0!==r?r:null===(c=p.locale)||void 0===c||null===(l=c.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==n?n:1);if(!(f>=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setFullYear(d+1,0,f),h.setHours(0,0,0,0);var m=wr(h,t),v=new Date(0);v.setFullYear(d,0,f),v.setHours(0,0,0,0);var g=wr(v,t);return u.getTime()>=m.getTime()?d+1:u.getTime()>=g.getTime()?d:d-1}function Rr(e,t){var n,r,o,a,i,s,c,l;ue(1,arguments);var u=Ot(),d=le(null!==(n=null!==(r=null!==(o=null!==(a=null===t||void 0===t?void 0:t.firstWeekContainsDate)&&void 0!==a?a:null===t||void 0===t||null===(i=t.locale)||void 0===i||null===(s=i.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:u.firstWeekContainsDate)&&void 0!==r?r:null===(c=u.locale)||void 0===c||null===(l=c.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==n?n:1),p=xr(e,t),f=new Date(0);f.setFullYear(p,0,d),f.setHours(0,0,0,0);var h=wr(f,t);return h}var Pr=6048e5;function Ur(e,t){ue(1,arguments);var n=de(e),r=wr(n,t).getTime()-Rr(n,t).getTime();return Math.round(r/Pr)+1}function Vr(e){return ue(1,arguments),wr(e,{weekStartsOn:1})}function Br(e){ue(1,arguments);var t=de(e),n=t.getFullYear(),r=new Date(0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);var o=Vr(r),a=new Date(0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);var i=Vr(a);return t.getTime()>=o.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}function Fr(e){ue(1,arguments);var t=Br(e),n=new Date(0);n.setFullYear(t,0,4),n.setHours(0,0,0,0);var r=Vr(n);return r}var Gr=6048e5;function zr(e){ue(1,arguments);var t=de(e),n=Vr(t).getTime()-Fr(t).getTime();return Math.round(n/Gr)+1}function Hr(e,t){ue(2,arguments);var n=le(t);return Er(e,-n)}function Yr(e,t){ue(2,arguments);var n=le(t);return Er(e,12*n)}function qr(e,t){ue(2,arguments);var n=le(t);return Yr(e,-n)}function Wr(e,t){ue(2,arguments);var n=le(t);return Tr(e,-n)}function Kr(e,t){if(ue(2,arguments),!t||"object"!==c(t))return new Date(NaN);var n=t.years?le(t.years):0,r=t.months?le(t.months):0,o=t.weeks?le(t.weeks):0,a=t.days?le(t.days):0,i=t.hours?le(t.hours):0,s=t.minutes?le(t.minutes):0,l=t.seconds?le(t.seconds):0,u=Hr(e,r+12*n),d=Wr(u,a+7*o),p=s+60*i,f=l+60*p,h=1e3*f,m=new Date(d.getTime()-h);return m}function $r(){return Object(r["openBlock"])(),Object(r["createElementBlock"])("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[Object(r["createElementVNode"])("path",{d:"M29.333 8c0-2.208-1.792-4-4-4h-18.667c-2.208 0-4 1.792-4 4v18.667c0 2.208 1.792 4 4 4h18.667c2.208 0 4-1.792 4-4v-18.667zM26.667 8v18.667c0 0.736-0.597 1.333-1.333 1.333 0 0-18.667 0-18.667 0-0.736 0-1.333-0.597-1.333-1.333 0 0 0-18.667 0-18.667 0-0.736 0.597-1.333 1.333-1.333 0 0 18.667 0 18.667 0 0.736 0 1.333 0.597 1.333 1.333z"}),Object(r["createElementVNode"])("path",{d:"M20 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"}),Object(r["createElementVNode"])("path",{d:"M9.333 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"}),Object(r["createElementVNode"])("path",{d:"M4 14.667h24c0.736 0 1.333-0.597 1.333-1.333s-0.597-1.333-1.333-1.333h-24c-0.736 0-1.333 0.597-1.333 1.333s0.597 1.333 1.333 1.333z"})])}function Jr(){return Object(r["openBlock"])(),Object(r["createElementBlock"])("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[Object(r["createElementVNode"])("path",{d:"M23.057 7.057l-16 16c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l16-16c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0z"}),Object(r["createElementVNode"])("path",{d:"M7.057 8.943l16 16c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885l-16-16c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"})])}function Qr(){return Object(r["openBlock"])(),Object(r["createElementBlock"])("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[Object(r["createElementVNode"])("path",{d:"M20.943 23.057l-7.057-7.057c0 0 7.057-7.057 7.057-7.057 0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-8 8c-0.521 0.521-0.521 1.365 0 1.885l8 8c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"})])}function Xr(){return Object(r["openBlock"])(),Object(r["createElementBlock"])("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[Object(r["createElementVNode"])("path",{d:"M12.943 24.943l8-8c0.521-0.521 0.521-1.365 0-1.885l-8-8c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885l7.057 7.057c0 0-7.057 7.057-7.057 7.057-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0z"})])}function Zr(){return Object(r["openBlock"])(),Object(r["createElementBlock"])("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[Object(r["createElementVNode"])("path",{d:"M16 1.333c-8.095 0-14.667 6.572-14.667 14.667s6.572 14.667 14.667 14.667c8.095 0 14.667-6.572 14.667-14.667s-6.572-14.667-14.667-14.667zM16 4c6.623 0 12 5.377 12 12s-5.377 12-12 12c-6.623 0-12-5.377-12-12s5.377-12 12-12z"}),Object(r["createElementVNode"])("path",{d:"M14.667 8v8c0 0.505 0.285 0.967 0.737 1.193l5.333 2.667c0.658 0.329 1.46 0.062 1.789-0.596s0.062-1.46-0.596-1.789l-4.596-2.298c0 0 0-7.176 0-7.176 0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"})])}function eo(){return Object(r["openBlock"])(),Object(r["createElementBlock"])("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[Object(r["createElementVNode"])("path",{d:"M24.943 19.057l-8-8c-0.521-0.521-1.365-0.521-1.885 0l-8 8c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l7.057-7.057c0 0 7.057 7.057 7.057 7.057 0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"})])}function to(){return Object(r["openBlock"])(),Object(r["createElementBlock"])("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[Object(r["createElementVNode"])("path",{d:"M7.057 12.943l8 8c0.521 0.521 1.365 0.521 1.885 0l8-8c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-7.057 7.057c0 0-7.057-7.057-7.057-7.057-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"})])}const no=(e,t,n,r,o)=>{const a=On(e,t.slice(0,e.length),new Date);return Cn(a)&&kn(a)?r||o?a:Sn(a,{hours:+n.hours,minutes:+(null==n?void 0:n.minutes),seconds:+(null==n?void 0:n.seconds),milliseconds:0}):null},ro=(e,t,n,r,o)=>{const a=Array.isArray(n)?n[0]:n;if("string"==typeof t)return no(e,t,a,r,o);if(Array.isArray(t)){let n=null;for(const i of t)if(n=no(e,i,a,r,o),n)break;return n}return"function"==typeof t?t(e):null},oo=e=>e?new Date(e):new Date,ao=(e,t,n)=>{if(t){const t=(e.getMonth()+1).toString().padStart(2,"0"),r=e.getDate().toString().padStart(2,"0"),o=e.getHours().toString().padStart(2,"0"),a=e.getMinutes().toString().padStart(2,"0"),i=n?e.getSeconds().toString().padStart(2,"0"):"00";return`${e.getFullYear()}-${t}-${r}T${o}:${a}:${i}.000Z`}const r=Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds());return new Date(r).toISOString()},io=e=>{let t=oo(JSON.parse(JSON.stringify(e)));return t=Tn(t,0),t=En(t,0),t=jn(t,0),t=Dn(t,0),t},so=(e,t,n,r)=>{let o=e?oo(e):oo();return(t||0===t)&&(o=Tn(o,+t)),(n||0===n)&&(o=En(o,+n)),(r||0===r)&&(o=jn(o,+r)),Dn(o,0)},co=(e,t)=>!(!e||!t)&&Ln(io(e),io(t)),lo=(e,t)=>!(!e||!t)&&An(io(e),io(t)),uo=(e,t)=>!(!e||!t)&&Nn(io(e),io(t)),po=(e,t,n)=>e&&e[0]&&e[1]?uo(n,e[0])&&co(n,e[1]):!!(e&&e[0]&&t)&&(uo(n,e[0])&&co(n,t)||co(n,e[0])&&uo(n,t)),fo=e=>{const t=Sn(new Date(e),{date:1});return io(t)},ho=(e,t,n)=>t&&(n||0===n)?Object.fromEntries(["hours","minutes","seconds"].map(r=>r===t?[r,n]:[r,isNaN(+e[r])?void 0:+e[r]])):{hours:isNaN(+e.hours)?void 0:+e.hours,minutes:isNaN(+e.minutes)?void 0:+e.minutes,seconds:isNaN(+e.seconds)?void 0:+e.seconds},mo=e=>({hours:xn(e),minutes:Rn(e),seconds:Pn(e)}),vo=Object(r["reactive"])({menuFocused:!1,shiftKeyInMenu:!1}),go=()=>{const e=e=>{vo.menuFocused=e},t=e=>{vo.shiftKeyInMenu!==e&&(vo.shiftKeyInMenu=e)};return{control:Object(r["computed"])(()=>({shiftKeyInMenu:vo.shiftKeyInMenu,menuFocused:vo.menuFocused})),setMenuFocused:e,setShiftKey:t}};function _o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var yo={exports:{}};(function(e){function t(e){return e&&e.__esModule?e:{default:e}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(yo);var bo=yo.exports,Oo={exports:{}};(function(e,t){function n(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,e.exports=t.default})(Oo,Oo.exports);var Mo=Oo.exports;const ko=_o(Mo);var Co={exports:{}};(function(e,t){function n(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,e.exports=t.default})(Co,Co.exports);var wo=Co.exports;const Io=_o(wo);function So(e,t){var n=Lo(t);return n.formatToParts?Eo(n,e):jo(n,e)}var To={year:0,month:1,day:2,hour:3,minute:4,second:5};function Eo(e,t){try{for(var n=e.formatToParts(t),r=[],o=0;o<n.length;o++){var a=To[n[o].type];a>=0&&(r[a]=parseInt(n[o].value,10))}return r}catch(i){if(i instanceof RangeError)return[NaN];throw i}}function jo(e,t){var n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[r[3],r[1],r[2],r[4],r[5],r[6]]}var Do={};function Lo(e){if(!Do[e]){var t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),n="06/25/2014, 00:00:00"===t||"06/25/2014 00:00:00"===t;Do[e]=n?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return Do[e]}function Ao(e,t,n,r,o,a,i){var s=new Date(0);return s.setUTCFullYear(e,t,n),s.setUTCHours(r,o,a,i),s}var No=36e5,xo=6e4,Ro={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function Po(e,t,n){var r,o,a;if(!e||(r=Ro.timezoneZ.exec(e),r))return 0;if(r=Ro.timezoneHH.exec(e),r)return a=parseInt(r[1],10),Fo(a)?-a*No:NaN;if(r=Ro.timezoneHHMM.exec(e),r){a=parseInt(r[1],10);var i=parseInt(r[2],10);return Fo(a,i)?(o=Math.abs(a)*No+i*xo,a>0?-o:o):NaN}if(zo(e)){t=new Date(t||Date.now());var s=n?t:Uo(t),c=Vo(s,e),l=n?c:Bo(t,c,e);return-l}return NaN}function Uo(e){return Ao(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function Vo(e,t){var n=So(e,t),r=Ao(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime(),o=e.getTime(),a=o%1e3;return o-=a>=0?a:1e3+a,r-o}function Bo(e,t,n){var r=e.getTime(),o=r-t,a=Vo(new Date(o),n);if(t===a)return t;o-=a-t;var i=Vo(new Date(o),n);return a===i?a:Math.max(a,i)}function Fo(e,t){return-23<=e&&e<=23&&(null==t||0<=t&&t<=59)}var Go={};function zo(e){if(Go[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),Go[e]=!0,!0}catch{return!1}}var Ho=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/;const Yo=Ho;var qo=36e5,Wo=6e4,Ko=2,$o={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:Yo};function Jo(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(null===e)return new Date(NaN);var n=t||{},r=null==n.additionalDigits?Ko:ko(n.additionalDigits);if(2!==r&&1!==r&&0!==r)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))return new Date(e.getTime());if("number"==typeof e||"[object Number]"===Object.prototype.toString.call(e))return new Date(e);if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var o=Qo(e),a=Xo(o.date,r),i=a.year,s=a.restDateString,c=Zo(s,i);if(isNaN(c))return new Date(NaN);if(c){var l,u=c.getTime(),d=0;if(o.time&&(d=ea(o.time),isNaN(d)))return new Date(NaN);if(o.timeZone||n.timeZone){if(l=Po(o.timeZone||n.timeZone,new Date(u+d)),isNaN(l))return new Date(NaN)}else l=Io(new Date(u+d)),l=Io(new Date(u+d+l));return new Date(u+d+l)}return new Date(NaN)}function Qo(e){var t,n={},r=$o.dateTimePattern.exec(e);if(r?(n.date=r[1],t=r[3]):(r=$o.datePattern.exec(e),r?(n.date=r[1],t=r[2]):(n.date=null,t=e)),t){var o=$o.timeZone.exec(t);o?(n.time=t.replace(o[1],""),n.timeZone=o[1].trim()):n.time=t}return n}function Xo(e,t){var n,r=$o.YYY[t],o=$o.YYYYY[t];if(n=$o.YYYY.exec(e)||o.exec(e),n){var a=n[1];return{year:parseInt(a,10),restDateString:e.slice(a.length)}}if(n=$o.YY.exec(e)||r.exec(e),n){var i=n[1];return{year:100*parseInt(i,10),restDateString:e.slice(i.length)}}return{year:null}}function Zo(e,t){if(null===t)return null;var n,r,o,a;if(0===e.length)return r=new Date(0),r.setUTCFullYear(t),r;if(n=$o.MM.exec(e),n)return r=new Date(0),o=parseInt(n[1],10)-1,aa(t,o)?(r.setUTCFullYear(t,o),r):new Date(NaN);if(n=$o.DDD.exec(e),n){r=new Date(0);var i=parseInt(n[1],10);return ia(t,i)?(r.setUTCFullYear(t,0,i),r):new Date(NaN)}if(n=$o.MMDD.exec(e),n){r=new Date(0),o=parseInt(n[1],10)-1;var s=parseInt(n[2],10);return aa(t,o,s)?(r.setUTCFullYear(t,o,s),r):new Date(NaN)}if(n=$o.Www.exec(e),n)return a=parseInt(n[1],10)-1,sa(t,a)?ta(t,a):new Date(NaN);if(n=$o.WwwD.exec(e),n){a=parseInt(n[1],10)-1;var c=parseInt(n[2],10)-1;return sa(t,a,c)?ta(t,a,c):new Date(NaN)}return null}function ea(e){var t,n,r;if(t=$o.HH.exec(e),t)return n=parseFloat(t[1].replace(",",".")),ca(n)?n%24*qo:NaN;if(t=$o.HHMM.exec(e),t)return n=parseInt(t[1],10),r=parseFloat(t[2].replace(",",".")),ca(n,r)?n%24*qo+r*Wo:NaN;if(t=$o.HHMMSS.exec(e),t){n=parseInt(t[1],10),r=parseInt(t[2],10);var o=parseFloat(t[3].replace(",","."));return ca(n,r,o)?n%24*qo+r*Wo+1e3*o:NaN}return null}function ta(e,t,n){t=t||0,n=n||0;var r=new Date(0);r.setUTCFullYear(e,0,4);var o=r.getUTCDay()||7,a=7*t+n+1-o;return r.setUTCDate(r.getUTCDate()+a),r}var na=[31,28,31,30,31,30,31,31,30,31,30,31],ra=[31,29,31,30,31,30,31,31,30,31,30,31];function oa(e){return e%400===0||e%4===0&&e%100!==0}function aa(e,t,n){if(t<0||t>11)return!1;if(null!=n){if(n<1)return!1;var r=oa(e);if(r&&n>ra[t]||!r&&n>na[t])return!1}return!0}function ia(e,t){if(t<1)return!1;var n=oa(e);return!(n&&t>366||!n&&t>365)}function sa(e,t,n){return!(t<0||t>52||null!=n&&(n<0||n>6))}function ca(e,t,n){return!(null!=e&&(e<0||e>=25)||null!=t&&(t<0||t>=60)||null!=n&&(n<0||n>=60))}var la={exports:{}},ua={exports:{}};(function(e,t){function n(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,e.exports=t.default})(ua,ua.exports);var da=ua.exports;(function(e,t){var n=bo.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var r=n(da);function o(e){return(0,r.default)({},e)}e.exports=t.default})(la,la.exports);var pa=la.exports;const fa=_o(pa);function ha(e,t,n){var r=Jo(e,n),o=Po(t,r,!0),a=new Date(r.getTime()-o),i=new Date(0);return i.setFullYear(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()),i.setHours(a.getUTCHours(),a.getUTCMinutes(),a.getUTCSeconds(),a.getUTCMilliseconds()),i}function ma(e,t,n){if("string"==typeof e&&!e.match(Yo)){var r=fa(n);return r.timeZone=t,Jo(e,r)}var o=Jo(e,n),a=Ao(o.getFullYear(),o.getMonth(),o.getDate(),o.getHours(),o.getMinutes(),o.getSeconds(),o.getMilliseconds()).getTime(),i=Po(t,new Date(a));return new Date(a+i)}const va=(e,t=3)=>{const n=[];for(let r=0;r<e.length;r+=t)n.push([e[r],e[r+1],e[r+2]]);return n};function ga(e){return t=>new Intl.DateTimeFormat(e,{weekday:"short",timeZone:"UTC"}).format(new Date(`2017-01-0${t}T00:00:00+00:00`)).slice(0,2)}function _a(e){return t=>er(new Date(`2017-01-0${t}T00:00:00+00:00`),"EEEEEE",{locale:e})}const ya=(e,t,n)=>{const r=[1,2,3,4,5,6,7];let o;if(null!==e)try{o=r.map(_a(e))}catch{o=r.map(ga(t))}else o=r.map(ga(t));const a=o.slice(0,n),i=o.slice(n+1,o.length);return[o[n]].concat(...i).concat(...a)},ba=(e,t)=>{const n=[];for(let r=+e[0];r<=+e[1];r++)n.push({value:+r,text:""+r});return t?n.reverse():n},Oa=(e,t,n)=>{const r=[1,2,3,4,5,6,7,8,9,10,11,12].map(e=>{const t=e<10?"0"+e:e;return new Date(`2017-${t}-01T00:00:00+00:00`)});if(null!==e)try{const t="long"===n?"MMMM":"MMM";return r.map((n,r)=>{const o=er(n,t,{locale:e});return{text:o.charAt(0).toUpperCase()+o.substring(1),value:r}})}catch{}const o=new Intl.DateTimeFormat(t,{month:n,timeZone:"UTC"});return r.map((e,t)=>{const n=o.format(e);return{text:n.charAt(0).toUpperCase()+n.substring(1),value:t}})},Ma=e=>[12,1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11][e],ka=e=>{const t=Object(r["unref"])(e);return null!=t&&t.$el?null==t?void 0:t.$el:t},Ca=e=>Object.assign({type:"dot"},e),wa=e=>!!Array.isArray(e)&&(!!e[0]&&!!e[1]),Ia={prop:e=>`"${e}" prop must be enabled!`,dateArr:e=>`You need to use array as "model-value" binding in order to support "${e}"`},Sa=e=>e,Ta=e=>0===e?e:!e||isNaN(+e)?null:+e,Ea=e=>0===e||!!e,ja=e=>null===e,Da=e=>{if(e)return[...e.querySelectorAll("input, button, select, textarea, a[href]")][0]},La=e=>Object.assign({menuAppear:"",open:"dp-slide-down",close:"dp-slide-up",next:"calendar-next",previous:"calendar-prev",vNext:"dp-slide-up",vPrevious:"dp-slide-down"},e),Aa=e=>Object.assign({toggleOverlay:"Toggle overlay",menu:"Datepicker menu",input:"Datepicker input",calendarWrap:"Calendar wrapper",calendarDays:"Calendar days",openTimePicker:"Open time picker",closeTimePicker:"Close time Picker",incrementValue:e=>"Increment "+e,decrementValue:e=>"Decrement "+e,openTpOverlay:e=>`Open ${e} overlay`,amPmButton:"Switch AM/PM mode",openYearsOverlay:"Open years overlay",openMonthsOverlay:"Open months overlay",nextMonth:"Next month",prevMonth:"Previous month",day:()=>""},e),Na=e=>null===e?0:"boolean"==typeof e?e?2:0:+e>=2?+e:2,xa=(e,t,n)=>e||("string"==typeof n?n:t),Ra=e=>"boolean"==typeof e?!!e&&La({}):La(e),Pa=()=>({enterSubmit:!0,tabSubmit:!0,openMenu:!0,rangeSeparator:" - "}),Ua=e=>Object.assign({months:[],years:[],times:{hours:[],minutes:[],seconds:[]}},e),Va=e=>Object.assign({showSelect:!0,showCancel:!0,showNow:!1,showPreview:!0},e),Ba=e=>{const t=()=>{if(e.partialRange)return null;throw new Error(Ia.prop("partial-range"))},n=Object(r["computed"])(()=>({ariaLabels:Aa(e.ariaLabels),textInputOptions:Object.assign(Pa(),e.textInputOptions),multiCalendars:Na(e.multiCalendars),previewFormat:xa(e.previewFormat,e.format,i()),filters:Ua(e.filters),transitions:Ra(e.transitions),startTime:h(),actionRow:Va(e.actionRow)})),o=t=>{if(e.range)return t();throw new Error(Ia.prop("range"))},a=()=>{const t=e.enableSeconds?":ss":"";return e.is24?"HH:mm"+t:`hh:mm${t} aa`},i=()=>e.format?e.format:e.monthPicker?"MM/yyyy":e.timePicker?a():e.weekPicker?"MM/dd/yyyy":e.yearPicker?"yyyy":e.enableTimePicker?"MM/dd/yyyy, "+a():"MM/dd/yyyy",s=(t,r)=>{if("function"==typeof e.format)return e.format(t);const o=r||i(),a=e.formatLocale?{locale:e.formatLocale}:void 0;return Array.isArray(t)?`${er(t[0],o,a)}${e.modelAuto&&!t[1]?"":n.value.textInputOptions.rangeSeparator||"-"}${t[1]?er(t[1],o,a):""}`:er(t,o,a)},c=t=>e.timezone?ha(t,e.timezone):t,l=t=>e.timezone?ma(t,e.timezone):t,u=Object(r["computed"])(()=>t=>{var n;return null==(n=e.hideNavigation)?void 0:n.includes(t)}),d=t=>{var n,r,o,a;return!(!Array.isArray(e.allowedDates)||null!=(n=e.allowedDates)&&n.length)||(null!=(r=e.arrMapValues)&&r.allowedDates?!y(t,e.arrMapValues.allowedDates):!(null==(o=e.allowedDates)||!o.length)&&!(null!=(a=e.allowedDates)&&a.some(e=>lo(c(oo(e)),c(t)))))},p=t=>{var r;const o=!!e.maxDate&&uo(c(t),c(oo(e.maxDate))),a=!!e.minDate&&co(c(t),c(oo(e.minDate))),i=y(t,null!=(r=e.arrMapValues)&&r.disabledDates?e.arrMapValues.disabledDates:e.disabledDates),s=n.value.filters.months.map(e=>+e).includes(nr(t)),l=!!e.disabledWeekDays.length&&e.disabledWeekDays.some(e=>+e===rr(t)),u=d(t),p=or(t),f=p<+e.yearRange[0]||p>+e.yearRange[1];return!(o||a||i||s||f||l||u)},f=t=>{const n={hours:xn(oo()),minutes:Rn(oo()),seconds:e.enableSeconds?Pn(oo()):0};return Object.assign(n,t)},h=()=>e.range?e.startTime&&Array.isArray(e.startTime)?[f(e.startTime[0]),f(e.startTime[1])]:null:e.startTime&&!Array.isArray(e.startTime)?f(e.startTime):null,m=e=>!p(e),v=e=>Array.isArray(e)?Cn(e[0])&&(!e[1]||Cn(e[1])):!!e&&Cn(e),g=e=>e instanceof Date?e:ar(e),_=t=>{const n=wr(c(t),{weekStartsOn:+e.weekStart}),r=Ir(c(t),{weekStartsOn:+e.weekStart});return[n,r]},y=(e,t)=>!e||(t instanceof Map?!!t.get(P(e)):Array.isArray(t)?t.some(t=>lo(c(oo(t)),c(e))):t(oo(JSON.parse(JSON.stringify(e))))),b=(e,t,n)=>{let r=e?oo(e):oo();return(t||0===t)&&(r=In(r,t)),n&&(r=Sr(r,n)),r},O=e=>Sn(oo(),mo(e)),M=e=>Sn(oo(),{hours:+e.hours||0,minutes:+e.minutes||0,seconds:+e.seconds||0}),k=(e,t,n,r)=>{if(!e)return!0;if(r){const r="max"===n?Ln(e,t):Nn(e,t),o={seconds:0,milliseconds:0};return r||An(Sn(e,o),Sn(t,o))}return"max"===n?e.getTime()<=t.getTime():e.getTime()>=t.getTime()},C=()=>!e.enableTimePicker||e.monthPicker||e.yearPicker||e.ignoreTimeValidation,w=e=>Array.isArray(e)?[e[0]?O(e[0]):null,e[1]?O(e[1]):null]:O(e),I=t=>{const n=e.maxTime?M(e.maxTime):oo(e.maxDate);return Array.isArray(t)?k(t[0],n,"max",!!e.maxDate)&&k(t[1],n,"max",!!e.maxDate):k(t,n,"max",!!e.maxDate)},S=(t,n)=>{const r=e.minTime?M(e.minTime):oo(e.minDate);return Array.isArray(t)?k(t[0],r,"min",!!e.minDate)&&k(t[1],r,"min",!!e.minDate)&&n:k(t,r,"min",!!e.minDate)&&n},T=t=>{let n=!0;if(!t||C())return!0;const r=e.minDate||e.maxDate?t:w(t);if((e.maxTime||e.maxDate)&&(n=I(Sa(r))),(e.minTime||e.minDate)&&(n=S(Sa(r),n)),e.disabledTimes){const r=Array.isArray(t)?[mo(t[0]),t[1]?mo(t[1]):void 0]:mo(t);n=!e.disabledTimes(r)}return n},E=(t,n)=>{const r=oo(JSON.parse(JSON.stringify(t))),o=[];for(let a=0;a<7;a++){const t=Tr(r,a),i=nr(t)!==n;o.push({text:e.hideOffsetDates&&i?"":t.getDate(),value:t,current:!i,classData:{}})}return o},j=(t,n)=>{switch(!0===e.sixWeeks?"append":e.sixWeeks){case"prepend":return[!0,!1];case"center":return[0==t,!0];case"fair":return[0==t||n>t,!0];case"append":return[!1,!1];default:return[!1,!1]}},D=(t,n)=>{const r=[],o=oo(c(new Date(n,t))),a=oo(c(new Date(n,t+1,0))),i=e.weekStart,s=wr(o,{weekStartsOn:i}),l=e=>{const n=E(e,t);if(r.push({days:n}),!r[r.length-1].days.some(e=>lo(io(e.value),io(a)))){const t=Tr(e,7);l(t)}};if(l(s),e.sixWeeks&&r.length<6){const e=6-r.length,t=(o.getDay()+7-i)%7,n=6-(a.getDay()+7-i)%7,[s,c]=j(t,n);for(let a=1;a<=e;a++)if(c?!!(a%2)==s:s){const e=r[0].days[0],t=E(Tr(e.value,-7),nr(o));r.unshift({days:t})}else{const e=r[r.length-1],t=e.days[e.days.length-1],n=E(Tr(t.value,1),nr(o));r.push({days:n})}}return r},L=(e,t,n)=>[Sn(oo(e),{date:1}),Sn(oo(),{month:t,year:n,date:1})],A=(t,n)=>co(...L(e.minDate,t,n))||lo(...L(e.minDate,t,n)),N=(t,n)=>uo(...L(e.maxDate,t,n))||lo(...L(e.maxDate,t,n)),x=(t,n,r)=>{let o=!1;return e.maxDate&&r&&N(t,n)&&(o=!0),e.minDate&&!r&&A(t,n)&&(o=!0),o},R=(t,n,r,o)=>{let a=!1;return o?e.minDate&&e.maxDate?a=x(t,n,r):(e.minDate&&A(t,n)||e.maxDate&&N(t,n))&&(a=!0):a=!0,a},P=e=>{const t=io(c(oo(e))).toISOString(),[n]=t.split("T");return n},U=e=>new Map(e.map(e=>[P(e),!0])),V=e=>Array.isArray(e)&&e.length>0;return{checkPartialRangeValue:t,checkRangeEnabled:o,getZonedDate:c,getZonedToUtc:l,formatDate:s,getDefaultPattern:i,validateDate:p,getDefaultStartTime:h,isDisabled:m,isValidDate:v,sanitizeDate:g,getWeekFromDate:_,matchDate:y,setDateMonthOrYear:b,isValidTime:T,getCalendarDays:D,validateMonthYearInRange:R,validateMaxDate:N,validateMinDate:A,assignDefaultTime:f,mapDatesArrToMap:t=>{V(e.allowedDates)&&(t.allowedDates=U(e.allowedDates)),V(e.highlight)&&(t.highlightedDates=U(e.highlight)),V(e.disabledDates)&&(t.disabledDates=U(e.disabledDates))},defaults:n,hideNavigationButtons:u}},Fa=Object(r["reactive"])({monthYear:[],calendar:[],time:[],actionRow:[],selectionGrid:[],timePicker:{0:[],1:[]},monthPicker:[]}),Ga=Object(r["ref"])(null),za=Object(r["ref"])(!1),Ha=Object(r["ref"])(!1),Ya=Object(r["ref"])(!1),qa=Object(r["ref"])(!1),Wa=Object(r["ref"])(0),Ka=Object(r["ref"])(0),$a=()=>{const e=Object(r["computed"])(()=>za.value?[...Fa.selectionGrid,Fa.actionRow].filter(e=>e.length):Ha.value?[...Fa.timePicker[0],...Fa.timePicker[1],qa.value?[]:[Ga.value],Fa.actionRow].filter(e=>e.length):Ya.value?[...Fa.monthPicker,Fa.actionRow]:[Fa.monthYear,...Fa.calendar,Fa.time,Fa.actionRow].filter(e=>e.length)),t=t=>{Wa.value=t?Wa.value+1:Wa.value-1;let n=null;e.value[Ka.value]&&(n=e.value[Ka.value][Wa.value]),n||(Wa.value=t?Wa.value-1:Wa.value+1)},n=t=>{0===Ka.value&&!t||Ka.value===e.value.length&&t||(Ka.value=t?Ka.value+1:Ka.value-1,e.value[Ka.value]?e.value[Ka.value]&&!e.value[Ka.value][Wa.value]&&0!==Wa.value&&(Wa.value=e.value[Ka.value].length-1):Ka.value=t?Ka.value-1:Ka.value+1)},o=t=>{let n=null;e.value[Ka.value]&&(n=e.value[Ka.value][Wa.value]),n?n.focus({preventScroll:!za.value}):Wa.value=t?Wa.value-1:Wa.value+1},a=()=>{t(!0),o(!0)},i=()=>{t(!1),o(!1)},s=()=>{n(!1),o(!0)},c=()=>{n(!0),o(!0)},l=(e,t)=>{Fa[t]=e},u=(e,t)=>{Fa[t]=e},d=()=>{Wa.value=0,Ka.value=0};return{buildMatrix:l,buildMultiLevelMatrix:u,setTimePickerBackRef:e=>{Ga.value=e},setSelectionGrid:e=>{za.value=e,d(),e||(Fa.selectionGrid=[])},setTimePicker:(e,t=!1)=>{Ha.value=e,qa.value=t,d(),e||(Fa.timePicker[0]=[],Fa.timePicker[1]=[])},setTimePickerElements:(e,t=0)=>{Fa.timePicker[t]=e},arrowRight:a,arrowLeft:i,arrowUp:s,arrowDown:c,clearArrowNav:()=>{Fa.monthYear=[],Fa.calendar=[],Fa.time=[],Fa.actionRow=[],Fa.selectionGrid=[],Fa.timePicker[0]=[],Fa.timePicker[1]=[],za.value=!1,Ha.value=!1,qa.value=!1,Ya.value=!1,d(),Ga.value=null},setMonthPicker:e=>{Ya.value=e,d()},refSets:Fa}},Ja=e=>Array.isArray(e),Qa=e=>Array.isArray(e),Xa=e=>Array.isArray(e)&&2===e.length,Za=(e,t,n,o,a)=>{const{getDefaultStartTime:i,isDisabled:s,sanitizeDate:c,getWeekFromDate:l,setDateMonthOrYear:u,validateMonthYearInRange:d,defaults:p}=Ba(e),f=Object(r["computed"])({get:()=>e.internalModelValue,set:n=>{!e.readonly&&!e.disabled&&t("update:internal-model-value",n)}}),h=Object(r["ref"])([]);Object(r["watch"])(f,(t,n)=>{e.range?C():An(t,n)||C()});const m=Object(r["toRef"])(e,"multiCalendars");Object(r["watch"])(m,()=>{oe(0)});const v=Object(r["ref"])([{month:nr(oo()),year:or(oo())}]);Object(r["watch"])(v,()=>{v.value.forEach((e,n)=>{t("update-month-year",{instance:n,month:e.month,year:e.year})})},{deep:!0});const g=Object(r["reactive"])({hours:e.range?[xn(oo()),xn(oo())]:xn(oo()),minutes:e.range?[Rn(oo()),Rn(oo())]:Rn(oo()),seconds:e.range?[0,0]:0}),_=Object(r["computed"])(()=>e=>v.value[e]?v.value[e].month:0),y=Object(r["computed"])(()=>e=>v.value[e]?v.value[e].year:0),b=Object(r["computed"])(()=>{var t;return!(null!=(t=e.flow)&&t.length&&!e.partialFlow)||a.value===e.flow.length}),O=(e,t,n)=>{var r,o;v.value[e]||(v.value[e]={month:0,year:0}),v.value[e].month=ja(t)?null==(r=v.value[e])?void 0:r.month:t,v.value[e].year=ja(n)?null==(o=v.value[e])?void 0:o.year:n},M=(e,t)=>{g[e]=t},k=()=>{e.startDate&&(O(0,nr(oo(e.startDate)),or(oo(e.startDate))),p.value.multiCalendars&&oe(0))};Object(r["onMounted"])(()=>{f.value||(k(),p.value.startTime&&N()),C(!0),e.focusStartDate&&e.startDate&&k()});const C=(t=!1)=>f.value?Array.isArray(f.value)?(h.value=f.value,E(t)):I(f.value,t):e.timePicker?j():e.monthPicker&&!e.range?D():e.yearPicker&&!e.range?L():p.value.multiCalendars&&t&&!e.startDate?w(oo(),t):void 0,w=(t,n=!1)=>{if((!p.value.multiCalendars||!e.multiStatic||n)&&O(0,nr(t),or(t)),p.value.multiCalendars)for(let e=1;e<p.value.multiCalendars;e++){const t=Sn(oo(),{month:_.value(e-1),year:y.value(e-1)}),n=jr(t,{months:1});v.value[e]={month:nr(n),year:or(n)}}},I=(e,t)=>{w(e),M("hours",xn(e)),M("minutes",Rn(e)),M("seconds",Pn(e)),p.value.multiCalendars&&t&&R()},S=(t,n)=>{t[1]&&e.showLastInRange?w(t[1],n):w(t[0],n);const r=(e,n)=>[e(t[0]),t[1]?e(t[1]):g[n][1]];M("hours",r(xn,"hours")),M("minutes",r(Rn,"minutes")),M("seconds",r(Pn,"seconds"))},T=(t,n)=>{if((e.range||e.weekPicker)&&!e.multiDates)return S(t,n);if(e.multiDates){const e=t[t.length-1];return I(e,n)}},E=t=>{const n=f.value;T(n,t),p.value.multiCalendars&&e.multiCalendarsSolo&&R()},j=()=>{if(N(),e.range){const e=g.hours,t=g.minutes;f.value=[so(oo(),e[0],t[0],A()),so(oo(),e[1],t[1],A(!1))]}else f.value=so(oo(),g.hours,g.minutes,A())},D=()=>{e.multiDates?f.value=[u(oo(),_.value(0),y.value(0))]:f.value=u(oo(),_.value(0),y.value(0))},L=()=>{f.value=oo()},A=(t=!0)=>e.enableSeconds?Array.isArray(g.seconds)?t?g.seconds[0]:g.seconds[1]:g.seconds:0,N=()=>{const t=i();if(t){const n=Array.isArray(t),r=n?[+t[0].hours,+t[1].hours]:+t.hours,o=n?[+t[0].minutes,+t[1].minutes]:+t.minutes,a=n?[+t[0].seconds,+t[1].seconds]:+t.seconds;M("hours",r),M("minutes",o),e.enableSeconds&&M("seconds",a)}},x=()=>Array.isArray(f.value)&&f.value.length?f.value[f.value.length-1]:null,R=()=>{if(Array.isArray(f.value)&&2===f.value.length){const t=oo(oo(f.value[1]?f.value[1]:Er(f.value[0],1))),[n,r]=[nr(f.value[0]),or(f.value[0])],[o,a]=[nr(f.value[1]),or(f.value[1])];(n!==o||n===o&&r!==a)&&e.multiCalendarsSolo&&O(1,nr(t),or(t))}else f.value&&!Array.isArray(f.value)&&O(0,nr(f.value),or(f.value))},P=e=>{const t=Er(e,1);return{month:nr(t),year:or(t)}},U=e=>{const t=nr(oo(e)),n=or(oo(e));if(O(0,t,n),p.value.multiCalendars>0)for(let r=1;r<p.value.multiCalendars;r++){const t=P(Sn(oo(e),{year:_.value(r-1),month:y.value(r-1)}));O(r,t.month,t.year)}},V=t=>{if(f.value&&Array.isArray(f.value))if(f.value.some(e=>lo(t,e))){const e=f.value.filter(e=>!lo(e,t));f.value=e.length?e:null}else(e.multiDatesLimit&&+e.multiDatesLimit>f.value.length||!e.multiDatesLimit)&&f.value.push(t);else f.value=[t]},B=(e,t)=>{const n=uo(e,t)?t:e,r=uo(t,e)?t:e;return Dr({start:n,end:r})},F=(t,n=0)=>{if(Array.isArray(f.value)&&f.value[n]){const r=Nr(t,f.value[n]),o=B(f.value[n],t),a=1===o.length?0:o.filter(e=>s(e)).length,i=Math.abs(r)-a;if(e.minRange&&e.maxRange)return i>=+e.minRange&&i<=+e.maxRange;if(e.minRange)return i>=+e.minRange;if(e.maxRange)return i<=+e.maxRange}return!0},G=n=>Array.isArray(f.value)&&2===f.value.length?e.fixedStart&&(uo(n,f.value[0])||lo(n,f.value[0]))?[f.value[0],n]:e.fixedEnd&&(co(n,f.value[1])||lo(n,f.value[1]))?[n,f.value[1]]:(t("invalid-fixed-range",n),f.value):[],z=()=>{e.autoApply&&b.value&&t("auto-apply",e.partialFlow)},H=()=>{e.autoApply&&t("select-date")},Y=e=>!Dr({start:e[0],end:e[1]}).some(e=>s(e)),q=e=>(f.value=l(oo(e.value)),z()),W=t=>{const r=so(oo(t.value),g.hours,g.minutes,A());e.multiDates?V(r):f.value=r,n(),z()},K=()=>{h.value=f.value?f.value.slice():[],2===h.value.length&&!e.fixedStart&&!e.fixedEnd&&(h.value=[])},$=(t,n)=>{const r=[oo(t.value),Tr(oo(t.value),+e.autoRange)];Y(r)&&(n&&U(t.value),h.value=r)},J=t=>{Q(t.value)||!F(t.value,e.fixedStart?0:1)||(h.value=G(oo(t.value)))},Q=t=>!!e.noDisabledRange&&B(h.value[0],t).some(e=>s(e)),X=(n,r)=>(K(),e.autoRange?$(n,r):e.fixedStart||e.fixedEnd?J(n):void(h.value[0]?F(oo(n.value))&&!Q(n.value)&&(co(oo(n.value),oo(h.value[0]))?(h.value.unshift(oo(n.value)),t("range-end",h.value[0])):(h.value[1]=oo(n.value),t("range-end",h.value[1]))):(h.value[0]=oo(n.value),t("range-start",h.value[0])))),Z=e=>{h.value[e]=so(h.value[e],g.hours[e],g.minutes[e],A(1!==e))},ee=()=>{var e,n;h.value[0]&&h.value[1]&&+(null==(e=h.value)?void 0:e[0])>+(null==(n=h.value)?void 0:n[1])&&(h.value.reverse(),t("range-start",h.value[0]),t("range-end",h.value[1]))},te=()=>{h.value.length&&(h.value[0]&&!h.value[1]?Z(0):(Z(0),Z(1),n()),ee(),f.value=h.value.slice(),h.value[0]&&h.value[1]&&e.autoApply&&t("auto-apply"),h.value[0]&&!h.value[1]&&e.modelAuto&&e.autoApply&&t("auto-apply"))},ne=(t,n=!1)=>{if(!(s(t.value)||!t.current&&e.hideOffsetDates)){if(e.weekPicker)return q(t);if(!e.range)return W(t);Qa(g.hours)&&Qa(g.minutes)&&!e.multiDates&&(X(t,n),te())}},re=t=>{const n=t[0];return"local"===e.weekNumbers?Ur(n.value,{weekStartsOn:+e.weekStart}):"iso"===e.weekNumbers?zr(n.value):"function"==typeof e.weekNumbers?e.weekNumbers(n.value):""},oe=e=>{for(let t=e-1;t>=0;t--){const e=Hr(Sn(oo(),{month:_.value(t+1),year:y.value(t+1)}),1);O(t,nr(e),or(e))}for(let t=e+1;t<=p.value.multiCalendars-1;t++){const e=Er(Sn(oo(),{month:_.value(t-1),year:y.value(t-1)}),1);O(t,nr(e),or(e))}},ae=e=>u(oo(),_.value(e),y.value(e)),ie=e=>so(e,g.hours,g.minutes,A()),se=e=>{V(ae(e))},ce=(t,n)=>{const r=e.monthPicker?_.value(t)!==n.month||!n.fromNav:y.value(t)!==n.year||!n.fromNav;if(O(t,n.month,n.year),p.value.multiCalendars&&!e.multiCalendarsSolo&&oe(t),e.monthPicker||e.yearPicker)if(e.multiDates)r&&se(t);else if(e.range){if(r&&F(ae(t))){let e=f.value?f.value.slice():[];2===e.length&&null!==e[1]&&(e=[]),e.length?co(ae(t),e[0])?e.unshift(ae(t)):e[1]=ae(t):e=[ae(t)],f.value=e}}else(e.autoApplyMonth||r)&&(f.value=ae(t));o(e.multiCalendarsSolo?t:void 0)},le=async(o=!1)=>{if(e.autoApply&&(e.monthPicker||e.yearPicker)){await Object(r["nextTick"])();const n=!!e.monthPicker&&o;e.range?t("auto-apply",n||!f.value||1===f.value.length):t("auto-apply",n)}n()},ue=(t,n)=>{const r=Sn(oo(),{month:_.value(n),year:y.value(n)}),a=t<0?Er(r,1):Hr(r,1);d(nr(a),or(a),t<0,e.preventMinMaxNavigation)&&(O(n,nr(a),or(a)),p.value.multiCalendars&&!e.multiCalendarsSolo&&oe(n),o())},de=n=>{Ja(n)&&Ja(f.value)&&Qa(g.hours)&&Qa(g.minutes)?(n[0]&&f.value[0]&&(f.value[0]=so(n[0],g.hours[0],g.minutes[0],A())),n[1]&&f.value[1]&&(f.value[1]=so(n[1],g.hours[1],g.minutes[1],A(!1)))):e.multiDates&&Array.isArray(f.value)?f.value[f.value.length-1]=ie(n):!e.range&&!Xa(n)&&(f.value=ie(n)),t("time-update")},pe=(t,r=!0,o=!1)=>{const a=r?t:g.hours,i=r||o?g.minutes:t,s=o?t:g.seconds;if(e.range&&Xa(f.value)&&Qa(a)&&Qa(i)&&Qa(s)&&!e.disableTimeRangeValidation){const e=e=>so(f.value[e],a[e],i[e],s[e]),t=e=>Dn(f.value[e],0);if(lo(f.value[0],f.value[1])&&(Nn(e(0),t(1))||Ln(e(1),t(0))))return}if(M("hours",a),M("minutes",i),M("seconds",s),f.value)if(e.multiDates){const e=x();e&&de(e)}else de(f.value);else e.timePicker&&de(e.range?[oo(),oo()]:oo());n()},fe=(t,n)=>{e.monthChangeOnScroll&&ue("inverse"!==e.monthChangeOnScroll?-t.deltaY:t.deltaY,n)},he=(t,n,r=!1)=>{e.monthChangeOnArrows&&e.vertical===r&&me(t,n)},me=(e,t)=>{ue("right"===e?-1:1,t)};return{time:g,month:_,year:y,modelValue:f,calendars:v,monthYearSelect:le,isDisabled:s,updateTime:pe,getWeekNum:re,selectDate:ne,updateMonthYear:ce,handleScroll:fe,getMarker:t=>e.markers.find(e=>lo(c(t.value),c(e.date))),handleArrow:he,handleSwipe:me,selectCurrentDate:()=>{e.range?f.value&&Array.isArray(f.value)&&f.value[0]?f.value=co(oo(),f.value[0])?[oo(),f.value[0]]:[f.value[0],oo()]:f.value=[oo()]:f.value=oo(),H()},presetDateRange:(t,n)=>{n||t.length&&t.length<=2&&e.range&&(f.value=t.map(e=>oo(e)),H(),e.multiCalendars&&Object(r["nextTick"])().then(()=>C(!0)))}}},ei=(e,t,n)=>{const o=Object(r["ref"])(),{getZonedToUtc:a,getZonedDate:i,formatDate:s,getDefaultPattern:c,checkRangeEnabled:l,checkPartialRangeValue:u,isValidDate:d,setDateMonthOrYear:p,defaults:f}=Ba(t),h=Object(r["ref"])(""),m=Object(r["toRef"])(t,"format");Object(r["watch"])(o,()=>{e("internal-model-change",o.value)}),Object(r["watch"])(m,()=>{x()});const v=e=>{const n=e||oo();return t.modelType?P(n):{hours:xn(n),minutes:Rn(n),seconds:t.enableSeconds?Pn(n):0}},g=e=>t.modelType?P(e):{month:nr(e),year:or(e)},_=e=>Array.isArray(e)?l(()=>[Sr(oo(),e[0]),e[1]?Sr(oo(),e[1]):u()]):Sr(oo(),+e),y=(e,n)=>"string"!=typeof e&&"number"!=typeof e||!t.modelType?n:R(e),b=e=>Array.isArray(e)?[y(e[0],so(null,+e[0].hours,+e[0].minutes,e[0].seconds)),y(e[1],so(null,+e[1].hours,+e[1].minutes,e[1].seconds))]:y(e,so(null,e.hours,e.minutes,e.seconds)),O=e=>Array.isArray(e)?t.multiDates?e.map(e=>y(e,p(null,+e.month,+e.year))):l(()=>[y(e[0],p(null,+e[0].month,+e[0].year)),y(e[1],e[1]?p(null,+e[1].month,+e[1].year):u())]):y(e,p(null,+e.month,+e.year)),M=e=>{if(Array.isArray(e))return e.map(e=>R(e));throw new Error(Ia.dateArr("multi-dates"))},k=e=>{if(Array.isArray(e))return[oo(e[0]),oo(e[1])];throw new Error(Ia.dateArr("week-picker"))},C=e=>t.modelAuto?Array.isArray(e)?[R(e[0]),R(e[1])]:t.autoApply?[R(e)]:[R(e),null]:Array.isArray(e)?l(()=>[R(e[0]),e[1]?R(e[1]):u()]):R(e),w=()=>{Array.isArray(o.value)&&t.range&&1===o.value.length&&o.value.push(u())},I=()=>{const e=o.value;return[P(e[0]),e[1]?P(e[1]):u()]},S=()=>o.value[1]?I():P(Sa(o.value[0])),T=()=>(o.value||[]).map(e=>P(e)),E=()=>(w(),t.modelAuto?S():t.multiDates?T():Array.isArray(o.value)?l(()=>I()):P(Sa(o.value))),j=e=>e?t.timePicker?b(Sa(e)):t.monthPicker?O(Sa(e)):t.yearPicker?_(Sa(e)):t.multiDates?M(Sa(e)):t.weekPicker?k(Sa(e)):C(Sa(e)):null,D=e=>{const t=j(e);d(Sa(t))?(o.value=Sa(t),x()):(o.value=null,h.value="")},L=()=>{var e;const t=e=>{var t;return er(e,null==(t=f.value.textInputOptions)?void 0:t.format)};return`${t(o.value[0])} ${null==(e=f.value.textInputOptions)?void 0:e.rangeSeparator} ${o.value[1]?t(o.value[1]):""}`},A=()=>{var e;return n.value&&o.value?Array.isArray(o.value)?L():er(o.value,null==(e=f.value.textInputOptions)?void 0:e.format):s(o.value)},N=()=>{var e;return o.value?t.multiDates?o.value.map(e=>s(e)).join("; "):t.textInput&&"string"==typeof(null==(e=f.value.textInputOptions)?void 0:e.format)?A():s(o.value):""},x=()=>{!t.format||"string"==typeof t.format||t.textInput&&"string"==typeof t.textInputOptions.format?h.value=N():h.value=t.format(o.value)},R=e=>{if(t.utc){const n=new Date(e);return"preserve"===t.utc?new Date(n.getTime()+6e4*n.getTimezoneOffset()):n}return t.modelType?"date"===t.modelType||"timestamp"===t.modelType?i(new Date(e)):"format"!==t.modelType||"string"!=typeof t.format&&t.format?i(On(e,t.modelType,new Date)):On(e,c(),new Date):i(new Date(e))},P=e=>e?t.utc?ao(e,"preserve"===t.utc,t.enableSeconds):t.modelType?"timestamp"===t.modelType?+a(e):"format"!==t.modelType||"string"!=typeof t.format&&t.format?s(a(e),t.modelType):s(a(e)):a(e):"",U=t=>{e("update:model-value",t)},V=e=>Array.isArray(o.value)?t.multiDates?o.value.map(t=>e(t)):[e(o.value[0]),o.value[1]?e(o.value[1]):u()]:e(Sa(o.value)),B=e=>U(Sa(V(e)));return{inputValue:h,internalModelValue:o,checkBeforeEmit:()=>!!o.value&&(t.range?t.partialRange?o.value.length>=1:2===o.value.length:!!o.value),parseExternalModelValue:D,formatInputValue:x,emitModelValue:()=>(x(),t.monthPicker?B(g):t.timePicker?B(v):t.yearPicker?B(or):t.weekPicker?U(o.value):U(E()))}},ti=(e,t)=>{const{validateMonthYearInRange:n,validateMaxDate:o,validateMinDate:a,defaults:i}=Ba(e),s=(e,t)=>{let n=e;return i.value.filters.months.includes(nr(n))?(n=t?Er(e,1):Hr(e,1),s(n,t)):n},c=(e,t)=>{let n=e;return i.value.filters.years.includes(or(n))?(n=t?Yr(e,1):qr(e,1),c(n,t)):n},l=t=>{const r=Sn(new Date,{month:e.month,year:e.year});let o=t?Er(r,1):Hr(r,1);e.disableYearSelect&&(o=Sr(o,e.year));let a=nr(o),l=or(o);i.value.filters.months.includes(a)&&(o=s(o,t),a=nr(o),l=or(o)),i.value.filters.years.includes(l)&&(o=c(o,t),l=or(o)),n(a,l,t,e.preventMinMaxNavigation)&&u(a,l)},u=(e,n)=>{t("update-month-year",{month:e,year:n})},d=Object(r["computed"])(()=>t=>{if(!e.preventMinMaxNavigation||t&&!e.maxDate||!t&&!e.minDate)return!1;const n=Sn(new Date,{month:e.month,year:e.year}),r=t?Er(n,1):Hr(n,1),i=[nr(r),or(r)];return t?!o(...i):!a(...i)});return{handleMonthYearChange:l,isDisabled:d,updateMonthYear:u}};var ni=(e=>(e.center="center",e.left="left",e.right="right",e))(ni||{});const ri=(e,t,n,o)=>{const a=Object(r["ref"])({top:"0",left:"0",transform:"none",opacity:"0"}),i=Object(r["ref"])(!1),s=Object(r["toRef"])(o,"teleportCenter"),c=Object(r["computed"])(()=>i.value?"-100%":"0"),l=()=>{u(),a.value.opacity="0"};Object(r["watch"])(s,()=>{y()}),Object(r["onMounted"])(()=>{u()});const u=()=>{const e=ka(t);if(e){const{top:t,left:n,width:r,height:o}=m(e);a.value.top=t+o/2+"px",h(n,r,50)}},d=e=>{if(o.teleport){const t=e.getBoundingClientRect();return{left:t.left+window.scrollX,top:t.top+window.scrollY}}return{top:0,left:0}},p=(e,t)=>{a.value.left=e+t+"px",a.value.transform=`translate(-100%, ${c.value})`},f=e=>{a.value.left=e+"px",a.value.transform=`translate(0, ${c.value})`},h=(e,t,n)=>{o.position===ni.left&&f(e),o.position===ni.right&&p(e,t),o.position===ni.center&&(a.value.left=e+t/2+"px",a.value.transform=n?`translate(-50%, -${n}%)`:`translate(-50%, ${c.value})`)},m=e=>{const{width:t,height:n}=e.getBoundingClientRect(),{top:r,left:a}=o.altPosition?o.altPosition(e):d(e);return{top:+r,left:+a,width:t,height:n}},v=()=>{const e=ka(t);if(e){const{top:t,left:n,width:r,height:o}=m(e),i=C();a.value.top=t+o/2+"px",h(n,r,"top"===i?100:0)}},g=()=>{a.value.left="50%",a.value.top="50%",a.value.transform="translate(-50%, -50%)",a.value.position="fixed",delete a.value.opacity},_=()=>{const e=ka(t),{top:n,left:r,transform:i}=o.altPosition(e);a.value={top:n+"px",left:r+"px",transform:i||""}},y=(e=!0)=>{if(!o.inline)return s.value?g():null!==o.altPosition?_():(e&&n("recalculate-position"),I())},b=({inputEl:e,menuEl:t,left:n,width:r})=>{window.screen.width>768&&h(n,r),k(e,t)},O=(e,t)=>{const{top:n,left:r,height:s,width:c}=m(e);a.value.top=s+n+ +o.offset+"px",i.value=!1,b({inputEl:e,menuEl:t,left:r,width:c})},M=(e,t)=>{const{top:n,left:r,width:s}=m(e);a.value.top=n-+o.offset+"px",i.value=!0,b({inputEl:e,menuEl:t,left:r,width:s})},k=(e,t)=>{if(o.autoPosition){const{left:n,width:r}=m(e),{left:o,right:a}=t.getBoundingClientRect();return o<=0?f(n):a>=document.documentElement.clientWidth?p(n,r):h(n,r)}},C=()=>{const n=ka(e),r=ka(t);if(n&&r){const{height:e}=n.getBoundingClientRect(),{top:t,height:o}=r.getBoundingClientRect(),a=window.innerHeight-t-o,i=t;return e<=a?"bottom":e>a&&e<=i?"top":a>=i?"bottom":"top"}return"bottom"},w=(e,t)=>"bottom"===C()?O(e,t):M(e,t),I=()=>{const n=ka(t),r=ka(e);if(n&&r)return o.autoPosition?w(n,r):O(n,r)},S=function(e){if(e){const t=e.scrollHeight>e.clientHeight,n=-1!==window.getComputedStyle(e).overflowY.indexOf("hidden");return t&&!n}return!0},T=function(e){return e&&e!==document.body&&e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?S(e)?e:T(e.parentNode):window};return{openOnTop:i,menuStyle:a,resetPosition:l,setMenuPosition:y,setInitialPosition:v,getScrollableParent:T}},oi=[{name:"clock-icon",use:["time","calendar"]},{name:"arrow-left",use:["month-year","calendar"]},{name:"arrow-right",use:["month-year","calendar"]},{name:"arrow-up",use:["time","calendar","month-year"]},{name:"arrow-down",use:["time","calendar","month-year"]},{name:"calendar-icon",use:["month-year","time","calendar"]},{name:"day",use:["calendar"]},{name:"month-overlay-value",use:["calendar","month-year"]},{name:"year-overlay-value",use:["calendar","month-year"]},{name:"year-overlay",use:["month-year"]},{name:"month-overlay",use:["month-year"]},{name:"month-overlay-header",use:["month-year"]},{name:"year-overlay-header",use:["month-year"]},{name:"hours-overlay-value",use:["calendar","time"]},{name:"minutes-overlay-value",use:["calendar","time"]},{name:"seconds-overlay-value",use:["calendar","time"]},{name:"hours",use:["calendar","time"]},{name:"minutes",use:["calendar","time"]},{name:"month",use:["calendar","month-year"]},{name:"year",use:["calendar","month-year"]},{name:"action-buttons",use:["action"]},{name:"action-preview",use:["action"]},{name:"calendar-header",use:["calendar"]},{name:"marker-tooltip",use:["calendar"]},{name:"action-extra",use:["menu"]},{name:"time-picker-overlay",use:["calendar","time"]},{name:"am-pm-button",use:["calendar","time"]},{name:"left-sidebar",use:["menu"]},{name:"right-sidebar",use:["menu"]},{name:"month-year",use:["month-year"]},{name:"time-picker",use:["menu"]},{name:"action-row",use:["action"]},{name:"marker",use:["calendar"]}],ai=[{name:"trigger"},{name:"input-icon"},{name:"clear-icon"},{name:"dp-input"}],ii={all:()=>oi,monthYear:()=>oi.filter(e=>e.use.includes("month-year")),input:()=>ai,timePicker:()=>oi.filter(e=>e.use.includes("time")),action:()=>oi.filter(e=>e.use.includes("action")),calendar:()=>oi.filter(e=>e.use.includes("calendar")),menu:()=>oi.filter(e=>e.use.includes("menu"))},si=(e,t,n)=>{const r=[];return ii[t]().forEach(t=>{e[t.name]&&r.push(t.name)}),n&&n.length&&n.forEach(e=>{e.slot&&r.push(e.slot)}),r},ci=e=>({transitionName:Object(r["computed"])(()=>t=>e&&"boolean"!=typeof e?t?e.open:e.close:""),showTransition:!!e}),li={multiCalendars:{type:[Boolean,Number,String],default:null},modelValue:{type:[String,Date,Array,Object,Number],default:null},modelType:{type:String,default:null},position:{type:String,default:"center"},dark:{type:Boolean,default:!1},format:{type:[String,Function],default:()=>null},closeOnScroll:{type:Boolean,default:!1},autoPosition:{type:Boolean,default:!0},closeOnAutoApply:{type:Boolean,default:!0},altPosition:{type:Function,default:null},transitions:{type:[Boolean,Object],default:!0},formatLocale:{type:Object,default:null},utc:{type:[Boolean,String],default:!1},ariaLabels:{type:Object,default:()=>({})},offset:{type:[Number,String],default:10},hideNavigation:{type:Array,default:()=>[]},timezone:{type:String,default:null},vertical:{type:Boolean,default:!1},disableMonthYearSelect:{type:Boolean,default:!1},disableYearSelect:{type:Boolean,default:!1},menuClassName:{type:String,default:null},dayClass:{type:Function,default:null},yearRange:{type:Array,default:()=>[1900,2100]},multiCalendarsSolo:{type:Boolean,default:!1},calendarCellClassName:{type:String,default:null},enableTimePicker:{type:Boolean,default:!0},autoApply:{type:Boolean,default:!1},disabledDates:{type:[Array,Function],default:()=>[]},monthNameFormat:{type:String,default:"short"},startDate:{type:[Date,String],default:null},startTime:{type:[Object,Array],default:null},hideOffsetDates:{type:Boolean,default:!1},autoRange:{type:[Number,String],default:null},noToday:{type:Boolean,default:!1},disabledWeekDays:{type:Array,default:()=>[]},allowedDates:{type:Array,default:null},showNowButton:{type:Boolean,default:!1},nowButtonLabel:{type:String,default:"Now"},markers:{type:Array,default:()=>[]},modeHeight:{type:[Number,String],default:255},escClose:{type:Boolean,default:!0},spaceConfirm:{type:Boolean,default:!0},monthChangeOnArrows:{type:Boolean,default:!0},presetRanges:{type:Array,default:()=>[]},flow:{type:Array,default:()=>[]},partialFlow:{type:Boolean,default:!1},preventMinMaxNavigation:{type:Boolean,default:!1},minRange:{type:[Number,String],default:null},maxRange:{type:[Number,String],default:null},multiDatesLimit:{type:[Number,String],default:null},reverseYears:{type:Boolean,default:!1},keepActionRow:{type:Boolean,default:!1},weekPicker:{type:Boolean,default:!1},filters:{type:Object,default:()=>({})},arrowNavigation:{type:Boolean,default:!1},multiStatic:{type:Boolean,default:!0},disableTimeRangeValidation:{type:Boolean,default:!1},highlight:{type:[Array,Function],default:null},highlightWeekDays:{type:Array,default:null},highlightDisabledDays:{type:Boolean,default:!1},teleport:{type:[String,Boolean],default:null},teleportCenter:{type:Boolean,default:!1},locale:{type:String,default:"en-Us"},weekNumName:{type:String,default:"W"},weekStart:{type:[Number,String],default:1},weekNumbers:{type:[String,Function],default:null},calendarClassName:{type:String,default:null},noSwipe:{type:Boolean,default:!1},monthChangeOnScroll:{type:[Boolean,String],default:!0},dayNames:{type:[Function,Array],default:null},monthPicker:{type:Boolean,default:!1},customProps:{type:Object,default:null},yearPicker:{type:Boolean,default:!1},modelAuto:{type:Boolean,default:!1},selectText:{type:String,default:"Select"},cancelText:{type:String,default:"Cancel"},previewFormat:{type:[String,Function],default:()=>""},multiDates:{type:Boolean,default:!1},partialRange:{type:Boolean,default:!0},ignoreTimeValidation:{type:Boolean,default:!1},minDate:{type:[Date,String],default:null},maxDate:{type:[Date,String],default:null},minTime:{type:Object,default:null},maxTime:{type:Object,default:null},name:{type:String,default:null},placeholder:{type:String,default:""},hideInputIcon:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},state:{type:Boolean,default:null},required:{type:Boolean,default:!1},autocomplete:{type:String,default:"off"},inputClassName:{type:String,default:null},inlineWithInput:{type:Boolean,default:!1},textInputOptions:{type:Object,default:()=>null},fixedStart:{type:Boolean,default:!1},fixedEnd:{type:Boolean,default:!1},timePicker:{type:Boolean,default:!1},enableSeconds:{type:Boolean,default:!1},is24:{type:Boolean,default:!0},noHoursOverlay:{type:Boolean,default:!1},noMinutesOverlay:{type:Boolean,default:!1},noSecondsOverlay:{type:Boolean,default:!1},hoursGridIncrement:{type:[String,Number],default:1},minutesGridIncrement:{type:[String,Number],default:5},secondsGridIncrement:{type:[String,Number],default:5},hoursIncrement:{type:[Number,String],default:1},minutesIncrement:{type:[Number,String],default:1},secondsIncrement:{type:[Number,String],default:1},range:{type:Boolean,default:!1},uid:{type:String,default:null},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inline:{type:Boolean,default:!1},textInput:{type:Boolean,default:!1},onClickOutside:{type:Function,default:null},noDisabledRange:{type:Boolean,default:!1},sixWeeks:{type:[Boolean,String],default:!1},actionRow:{type:Object,default:()=>({})},allowPreventDefault:{type:Boolean,default:!1},closeOnClearValue:{type:Boolean,default:!0},focusStartDate:{type:Boolean,default:!1},disabledTimes:{type:Function,default:void 0},showLastInRange:{type:Boolean,default:!0},timePickerInline:{type:Boolean,default:!1},calendar:{type:Function,default:null},autoApplyMonth:{type:Boolean,default:!0}},ui={key:1,class:"dp__input_wrap"},di=["id","name","inputmode","placeholder","disabled","readonly","required","value","autocomplete","aria-label","onKeydown"],pi={key:2,class:"dp__clear_icon"},fi=Object(r["defineComponent"])({__name:"DatepickerInput",props:{isMenuOpen:{type:Boolean,default:!1},inputValue:{type:String,default:""},...li},emits:["clear","open","update:input-value","set-input-date","close","select-date","set-empty-date","toggle","focus-prev","focus","blur","real-blur"],setup(e,{expose:t,emit:n}){const o=e,{getDefaultPattern:a,isValidDate:i,defaults:s,getDefaultStartTime:c,assignDefaultTime:l}=Ba(o),u=Object(r["ref"])(),d=Object(r["ref"])(null),p=Object(r["ref"])(!1),f=Object(r["ref"])(!1),h=Object(r["computed"])(()=>({dp__pointer:!o.disabled&&!o.readonly&&!o.textInput,dp__disabled:o.disabled,dp__input_readonly:!o.textInput,dp__input:!0,dp__input_icon_pad:!o.hideInputIcon,dp__input_valid:o.state,dp__input_invalid:!1===o.state,dp__input_focus:p.value||o.isMenuOpen,dp__input_reg:!o.textInput,[o.inputClassName]:!!o.inputClassName})),m=()=>{n("set-input-date",null),o.autoApply&&(n("set-empty-date"),u.value=null)},v=e=>{var t;const n=c();return ro(e,(null==(t=s.value.textInputOptions)?void 0:t.format)||a(),n||l({}),o.inputValue,f.value)},g=e=>{const{rangeSeparator:t}=s.value.textInputOptions,[n,r]=e.split(""+t);if(n){const e=v(n.trim()),t=r?v(r.trim()):null,o=e&&t?[e,t]:[e];u.value=e?o:null}},_=()=>{f.value=!0},y=e=>{if(o.range)g(e);else if(o.multiDates){const t=e.split(";");u.value=t.map(e=>v(e.trim())).filter(e=>e)}else u.value=v(e)},b=e=>{var t,r;const a="string"==typeof e?e:null==(t=e.target)?void 0:t.value;""!==a?(null!=(r=s.value.textInputOptions)&&r.openMenu&&!o.isMenuOpen&&n("open"),y(a),n("set-input-date",u.value)):m(),f.value=!1,n("update:input-value",a)},O=e=>{var t,r;o.textInput?(y(e.target.value),null!=(t=s.value.textInputOptions)&&t.enterSubmit&&i(u.value)&&""!==o.inputValue?(n("set-input-date",u.value,!0),u.value=null):null!=(r=s.value.textInputOptions)&&r.enterSubmit&&""===o.inputValue&&(u.value=null,n("clear"))):C(e)},M=e=>{var t,r,a;o.textInput&&null!=(t=s.value.textInputOptions)&&t.tabSubmit&&y(e.target.value),null!=(r=s.value.textInputOptions)&&r.tabSubmit&&i(u.value)&&""!==o.inputValue?(n("set-input-date",u.value,!0),u.value=null):null!=(a=s.value.textInputOptions)&&a.tabSubmit&&""===o.inputValue&&(u.value=null,n("clear"))},k=()=>{p.value=!0,n("focus")},C=e=>{var t;e.preventDefault(),e.stopImmediatePropagation(),e.stopPropagation(),o.textInput&&null!=(t=s.value.textInputOptions)&&t.openMenu&&!o.inlineWithInput?(n("toggle"),s.value.textInputOptions.enterSubmit&&n("select-date")):o.textInput||n("toggle")},w=()=>{n("real-blur"),p.value=!1,(!o.isMenuOpen||o.inline&&o.inlineWithInput)&&n("blur"),o.autoApply&&o.textInput&&u.value&&!o.isMenuOpen&&(n("set-input-date",u.value),n("select-date"),u.value=null)},I=()=>{n("clear")},S=e=>{if(!o.textInput){if("Tab"===e.code)return;e.preventDefault()}};return t({focusInput:()=>{var e;null==(e=d.value)||e.focus({preventScroll:!0})},setParsedDate:e=>{u.value=e}}),(t,o)=>{var a;return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{onClick:C},[!t.$slots.trigger||t.$slots["dp-input"]||t.inline?Object(r["createCommentVNode"])("",!0):Object(r["renderSlot"])(t.$slots,"trigger",{key:0}),t.$slots.trigger||t.inline&&!t.inlineWithInput?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",ui,[!t.$slots["dp-input"]||t.$slots.trigger||t.inline?Object(r["createCommentVNode"])("",!0):Object(r["renderSlot"])(t.$slots,"dp-input",{key:0,value:e.inputValue,isMenuOpen:e.isMenuOpen,onInput:b,onEnter:O,onTab:M,onClear:I,onBlur:w,onKeypress:S,onPaste:_}),t.$slots["dp-input"]?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createElementBlock"])("input",{key:1,ref_key:"inputRef",ref:d,id:t.uid?"dp-input-"+t.uid:void 0,name:t.name,class:Object(r["normalizeClass"])(h.value),inputmode:t.textInput?"text":"none",placeholder:t.placeholder,disabled:t.disabled,readonly:t.readonly,required:t.required,value:e.inputValue,autocomplete:t.autocomplete,"aria-label":null==(a=Object(r["unref"])(s).ariaLabels)?void 0:a.input,onInput:b,onKeydown:[Object(r["withKeys"])(O,["enter"]),Object(r["withKeys"])(M,["tab"]),S],onBlur:w,onFocus:k,onKeypress:S,onPaste:_},null,42,di)),Object(r["createElementVNode"])("div",{onClick:o[2]||(o[2]=e=>n("toggle"))},[t.$slots["input-icon"]&&!t.hideInputIcon?(Object(r["openBlock"])(),Object(r["createElementBlock"])("span",{key:0,class:"dp__input_icon",onClick:o[0]||(o[0]=e=>n("toggle"))},[Object(r["renderSlot"])(t.$slots,"input-icon")])):Object(r["createCommentVNode"])("",!0),t.$slots["input-icon"]||t.hideInputIcon||t.$slots["dp-input"]?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createBlock"])(Object(r["unref"])($r),{key:1,onClick:o[1]||(o[1]=e=>n("toggle")),class:"dp__input_icon dp__input_icons"}))]),t.$slots["clear-icon"]&&e.inputValue&&t.clearable&&!t.disabled&&!t.readonly?(Object(r["openBlock"])(),Object(r["createElementBlock"])("span",pi,[Object(r["renderSlot"])(t.$slots,"clear-icon",{clear:I})])):Object(r["createCommentVNode"])("",!0),!t.clearable||t.$slots["clear-icon"]||!e.inputValue||t.disabled||t.readonly?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createBlock"])(Object(r["unref"])(Jr),{key:3,class:"dp__clear_icon dp__input_icons",onClick:Object(r["withModifiers"])(I,["stop","prevent"])},null,8,["onClick"]))]))])}}}),hi=["title"],mi={class:"dp__action_buttons"},vi=["onKeydown","disabled"],gi=Object(r["defineComponent"])({__name:"ActionRow",props:{menuMount:{type:Boolean,default:!1},internalModelValue:{type:[Date,Array],default:null},calendarWidth:{type:Number,default:0},...li},emits:["close-picker","select-date","select-now","invalid-select"],setup(e,{emit:t}){const n=e,{formatDate:o,isValidTime:a,defaults:i}=Ba(n),{buildMatrix:s}=$a(),c=Object(r["ref"])(null),l=Object(r["ref"])(null);Object(r["onMounted"])(()=>{n.arrowNavigation&&s([ka(c),ka(l)],"actionRow")});const u=Object(r["computed"])(()=>!(n.range&&!n.partialRange&&n.internalModelValue)||2===n.internalModelValue.length),d=Object(r["computed"])(()=>!p.value||!f.value||!u.value),p=Object(r["computed"])(()=>!(n.enableTimePicker&&!n.ignoreTimeValidation)||a(n.internalModelValue)),f=Object(r["computed"])(()=>!n.monthPicker||(n.range&&Array.isArray(n.internalModelValue)?!n.internalModelValue.filter(e=>!b(e)).length:b(n.internalModelValue))),h=()=>{const e=i.value.previewFormat;return n.timePicker||n.monthPicker,e(Sa(n.internalModelValue))},m=()=>{const e=n.internalModelValue;return i.value.multiCalendars>0?`${v(e[0])} - ${v(e[1])}`:[v(e[0]),v(e[1])]},v=e=>o(e,i.value.previewFormat),g=Object(r["computed"])(()=>n.internalModelValue&&n.menuMount?"string"==typeof i.value.previewFormat?Array.isArray(n.internalModelValue)?2===n.internalModelValue.length&&n.internalModelValue[1]?m():n.multiDates?n.internalModelValue.map(e=>""+v(e)):n.modelAuto?""+v(n.internalModelValue[0]):v(n.internalModelValue[0])+" -":v(n.internalModelValue):h():""),_=()=>n.multiDates?"; ":" - ",y=Object(r["computed"])(()=>Array.isArray(g.value)?g.value.join(_()):g.value),b=e=>{if(!n.monthPicker)return!0;let t=!0;const r=oo(fo(e));if(n.minDate&&n.maxDate){const e=oo(fo(n.minDate)),t=oo(fo(n.maxDate));return uo(r,e)&&co(r,t)||lo(r,e)||lo(r,t)}if(n.minDate){const e=oo(fo(n.minDate));t=uo(r,e)||lo(r,e)}if(n.maxDate){const e=oo(fo(n.maxDate));t=co(r,e)||lo(r,e)}return t},O=()=>{p.value&&f.value&&u.value?t("select-date"):t("invalid-select")};return(t,n)=>(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{class:"dp__action_row",style:Object(r["normalizeStyle"])(e.calendarWidth?{width:e.calendarWidth+"px"}:{})},[t.$slots["action-row"]?Object(r["renderSlot"])(t.$slots,"action-row",Object(r["normalizeProps"])(Object(r["mergeProps"])({key:0},{internalModelValue:e.internalModelValue,disabled:d.value,selectDate:()=>t.$emit("select-date"),closePicker:()=>t.$emit("close-picker")}))):(Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],{key:1},[Object(r["unref"])(i).actionRow.showPreview?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{key:0,class:"dp__selection_preview",title:y.value},[t.$slots["action-preview"]?Object(r["renderSlot"])(t.$slots,"action-preview",{key:0,value:e.internalModelValue}):Object(r["createCommentVNode"])("",!0),t.$slots["action-preview"]?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],{key:1},[Object(r["createTextVNode"])(Object(r["toDisplayString"])(y.value),1)],64))],8,hi)):Object(r["createCommentVNode"])("",!0),Object(r["createElementVNode"])("div",mi,[t.$slots["action-buttons"]?Object(r["renderSlot"])(t.$slots,"action-buttons",{key:0,value:e.internalModelValue}):Object(r["createCommentVNode"])("",!0),t.$slots["action-buttons"]?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],{key:1},[!t.inline&&Object(r["unref"])(i).actionRow.showCancel?(Object(r["openBlock"])(),Object(r["createElementBlock"])("button",{key:0,type:"button",ref_key:"cancelButtonRef",ref:c,class:"dp__action_button dp__action_cancel",onClick:n[0]||(n[0]=e=>t.$emit("close-picker")),onKeydown:[n[1]||(n[1]=Object(r["withKeys"])(e=>t.$emit("close-picker"),["enter"])),n[2]||(n[2]=Object(r["withKeys"])(e=>t.$emit("close-picker"),["space"]))]},Object(r["toDisplayString"])(t.cancelText),545)):Object(r["createCommentVNode"])("",!0),t.showNowButton||Object(r["unref"])(i).actionRow.showNow?(Object(r["openBlock"])(),Object(r["createElementBlock"])("button",{key:1,type:"button",ref_key:"cancelButtonRef",ref:c,class:"dp__action_button dp__action_cancel",onClick:n[3]||(n[3]=e=>t.$emit("select-now")),onKeydown:[n[4]||(n[4]=Object(r["withKeys"])(e=>t.$emit("select-now"),["enter"])),n[5]||(n[5]=Object(r["withKeys"])(e=>t.$emit("select-now"),["space"]))]},Object(r["toDisplayString"])(t.nowButtonLabel),545)):Object(r["createCommentVNode"])("",!0),Object(r["unref"])(i).actionRow.showSelect?(Object(r["openBlock"])(),Object(r["createElementBlock"])("button",{key:2,type:"button",class:"dp__action_button dp__action_select",onKeydown:[Object(r["withKeys"])(O,["enter"]),Object(r["withKeys"])(O,["space"])],onClick:O,disabled:d.value,ref_key:"selectButtonRef",ref:l},Object(r["toDisplayString"])(t.selectText),41,vi)):Object(r["createCommentVNode"])("",!0)],64))])],64))],4))}}),_i=["aria-label"],yi={class:"dp__calendar_header",role:"row"},bi={key:0,class:"dp__calendar_header_item",role:"gridcell"},Oi=Object(r["createElementVNode"])("div",{class:"dp__calendar_header_separator"},null,-1),Mi=["aria-label"],ki={key:0,role:"gridcell",class:"dp__calendar_item dp__week_num"},Ci={class:"dp__cell_inner"},wi=["aria-selected","aria-disabled","aria-label","onClick","onKeydown","onMouseenter","onMouseleave"],Ii=Object(r["defineComponent"])({__name:"Calendar",props:{mappedDates:{type:Array,default:()=>[]},getWeekNum:{type:Function,default:()=>""},specificMode:{type:Boolean,default:!1},instance:{type:Number,default:0},month:{type:Number,default:0},year:{type:Number,default:0},...li},emits:["select-date","set-hover-date","handle-scroll","mount","handle-swipe","handle-space","tooltip-open","tooltip-close"],setup(e,{expose:t,emit:n}){const o=e,{buildMultiLevelMatrix:a}=$a(),{setDateMonthOrYear:i,defaults:s}=Ba(o),c=Object(r["ref"])(null),l=Object(r["ref"])({bottom:"",left:"",transform:""}),u=Object(r["ref"])([]),d=Object(r["ref"])(null),p=Object(r["ref"])(!0),f=Object(r["ref"])(""),h=Object(r["ref"])({startX:0,endX:0,startY:0,endY:0}),m=Object(r["ref"])([]),v=Object(r["ref"])({left:"50%"}),g=Object(r["computed"])(()=>o.calendar?o.calendar(o.mappedDates):o.mappedDates),_=Object(r["computed"])(()=>o.dayNames?Array.isArray(o.dayNames)?o.dayNames:o.dayNames(o.locale,+o.weekStart):ya(o.formatLocale,o.locale,+o.weekStart));Object(r["onMounted"])(()=>{n("mount",{cmp:"calendar",refs:u}),o.noSwipe||d.value&&(d.value.addEventListener("touchstart",E,{passive:!1}),d.value.addEventListener("touchend",j,{passive:!1}),d.value.addEventListener("touchmove",D,{passive:!1})),o.monthChangeOnScroll&&d.value&&d.value.addEventListener("wheel",N,{passive:!1})});const y=e=>e?o.vertical?"vNext":"next":o.vertical?"vPrevious":"previous",b=(e,t)=>{if(o.transitions){const n=io(i(oo(),o.month,o.year));f.value=uo(io(i(oo(),e,t)),n)?s.value.transitions[y(!0)]:s.value.transitions[y(!1)],p.value=!1,Object(r["nextTick"])(()=>{p.value=!0})}},O=Object(r["computed"])(()=>({[o.calendarClassName]:!!o.calendarClassName})),M=Object(r["computed"])(()=>e=>{const t=Ca(e);return{dp__marker_dot:"dot"===t.type,dp__marker_line:"line"===t.type}}),k=Object(r["computed"])(()=>e=>lo(e,c.value)),C=Object(r["computed"])(()=>({dp__calendar:!0,dp__calendar_next:s.value.multiCalendars>0&&0!==o.instance})),w=Object(r["computed"])(()=>e=>!o.hideOffsetDates||e.current),I=Object(r["computed"])(()=>o.specificMode?{height:o.modeHeight+"px"}:void 0),S=async(e,t,o)=>{var a,i;if(n("set-hover-date",e),null!=(i=null==(a=e.marker)?void 0:a.tooltip)&&i.length){const a=ka(u.value[t][o]);if(a){const{width:t,height:o}=a.getBoundingClientRect();c.value=e.value;let i={left:t/2+"px"},s=-50;if(await Object(r["nextTick"])(),m.value[0]){const{left:e,width:n}=m.value[0].getBoundingClientRect();e<0&&(i={left:"0"},s=0,v.value.left=t/2+"px"),window.innerWidth<e+n&&(i={right:"0"},s=0,v.value.left=n-t/2+"px")}l.value={bottom:o+"px",...i,transform:`translateX(${s}%)`},n("tooltip-open",e.marker)}}},T=e=>{c.value&&(c.value=null,l.value=JSON.parse(JSON.stringify({bottom:"",left:"",transform:""})),n("tooltip-close",e.marker))},E=e=>{h.value.startX=e.changedTouches[0].screenX,h.value.startY=e.changedTouches[0].screenY},j=e=>{h.value.endX=e.changedTouches[0].screenX,h.value.endY=e.changedTouches[0].screenY,L()},D=e=>{o.vertical&&!o.inline&&e.preventDefault()},L=()=>{const e=o.vertical?"Y":"X";Math.abs(h.value["start"+e]-h.value["end"+e])>10&&n("handle-swipe",h.value["start"+e]>h.value["end"+e]?"right":"left")},A=(e,t,n)=>{e&&(Array.isArray(u.value[t])?u.value[t][n]=e:u.value[t]=[e]),o.arrowNavigation&&a(u.value,"calendar")},N=e=>{o.monthChangeOnScroll&&(e.preventDefault(),n("handle-scroll",e))};return t({triggerTransition:b}),(t,n)=>{var o;return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{class:Object(r["normalizeClass"])(C.value)},[Object(r["createElementVNode"])("div",{style:Object(r["normalizeStyle"])(I.value),ref_key:"calendarWrapRef",ref:d,role:"grid",class:Object(r["normalizeClass"])(O.value),"aria-label":null==(o=Object(r["unref"])(s).ariaLabels)?void 0:o.calendarWrap},[e.specificMode?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],{key:0},[Object(r["createElementVNode"])("div",yi,[t.weekNumbers?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",bi,Object(r["toDisplayString"])(t.weekNumName),1)):Object(r["createCommentVNode"])("",!0),(Object(r["openBlock"])(!0),Object(r["createElementBlock"])(r["Fragment"],null,Object(r["renderList"])(_.value,(e,n)=>(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{class:"dp__calendar_header_item",role:"gridcell",key:n},[t.$slots["calendar-header"]?Object(r["renderSlot"])(t.$slots,"calendar-header",{key:0,day:e,index:n}):Object(r["createCommentVNode"])("",!0),t.$slots["calendar-header"]?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],{key:1},[Object(r["createTextVNode"])(Object(r["toDisplayString"])(e),1)],64))]))),128))]),Oi,Object(r["createVNode"])(r["Transition"],{name:f.value,css:!!t.transitions},{default:Object(r["withCtx"])(()=>{var o;return[p.value?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{key:0,class:"dp__calendar",role:"grid","aria-label":null==(o=Object(r["unref"])(s).ariaLabels)?void 0:o.calendarDays},[(Object(r["openBlock"])(!0),Object(r["createElementBlock"])(r["Fragment"],null,Object(r["renderList"])(g.value,(o,a)=>(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{class:"dp__calendar_row",role:"row",key:a},[t.weekNumbers?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",ki,[Object(r["createElementVNode"])("div",Ci,Object(r["toDisplayString"])(e.getWeekNum(o.days)),1)])):Object(r["createCommentVNode"])("",!0),(Object(r["openBlock"])(!0),Object(r["createElementBlock"])(r["Fragment"],null,Object(r["renderList"])(o.days,(e,o)=>{var i,c,u;return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{role:"gridcell",class:"dp__calendar_item",ref_for:!0,ref:e=>A(e,a,o),key:o+a,"aria-selected":e.classData.dp__active_date||e.classData.dp__range_start||e.classData.dp__range_start,"aria-disabled":e.classData.dp__cell_disabled,"aria-label":null==(c=null==(i=Object(r["unref"])(s).ariaLabels)?void 0:i.day)?void 0:c.call(i,e),tabindex:"0",onClick:Object(r["withModifiers"])(n=>t.$emit("select-date",e),["stop","prevent"]),onKeydown:[Object(r["withKeys"])(n=>t.$emit("select-date",e),["enter"]),Object(r["withKeys"])(n=>t.$emit("handle-space",e),["space"])],onMouseenter:t=>S(e,a,o),onMouseleave:t=>T(e)},[Object(r["createElementVNode"])("div",{class:Object(r["normalizeClass"])(["dp__cell_inner",e.classData])},[t.$slots.day&&w.value(e)?Object(r["renderSlot"])(t.$slots,"day",{key:0,day:+e.text,date:e.value}):Object(r["createCommentVNode"])("",!0),t.$slots.day?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],{key:1},[Object(r["createTextVNode"])(Object(r["toDisplayString"])(e.text),1)],64)),e.marker&&w.value(e)?(Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],{key:2},[t.$slots.marker?Object(r["renderSlot"])(t.$slots,"marker",{key:0,marker:e.marker,day:+e.text,date:e.value}):(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{key:1,class:Object(r["normalizeClass"])(M.value(e.marker)),style:Object(r["normalizeStyle"])(e.marker.color?{backgroundColor:e.marker.color}:{})},null,6))],64)):Object(r["createCommentVNode"])("",!0),k.value(e.value)?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{key:3,class:"dp__marker_tooltip",ref_for:!0,ref_key:"activeTooltip",ref:m,style:Object(r["normalizeStyle"])(l.value)},[null!=(u=e.marker)&&u.tooltip?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{key:0,class:"dp__tooltip_content",onClick:n[0]||(n[0]=Object(r["withModifiers"])(()=>{},["stop"]))},[(Object(r["openBlock"])(!0),Object(r["createElementBlock"])(r["Fragment"],null,Object(r["renderList"])(e.marker.tooltip,(n,o)=>(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{key:o,class:"dp__tooltip_text"},[t.$slots["marker-tooltip"]?Object(r["renderSlot"])(t.$slots,"marker-tooltip",{key:0,tooltip:n,day:e.value}):Object(r["createCommentVNode"])("",!0),t.$slots["marker-tooltip"]?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],{key:1},[Object(r["createElementVNode"])("div",{class:"dp__tooltip_mark",style:Object(r["normalizeStyle"])(n.color?{backgroundColor:n.color}:{})},null,4),Object(r["createElementVNode"])("div",null,Object(r["toDisplayString"])(n.text),1)],64))]))),128)),Object(r["createElementVNode"])("div",{class:"dp__arrow_bottom_tp",style:Object(r["normalizeStyle"])(v.value)},null,4)])):Object(r["createCommentVNode"])("",!0)],4)):Object(r["createCommentVNode"])("",!0)],2)],40,wi)}),128))]))),128))],8,Mi)):Object(r["createCommentVNode"])("",!0)]}),_:3},8,["name","css"])],64))],14,_i)],2)}}}),Si=["aria-label","aria-disabled"],Ti=Object(r["defineComponent"])({__name:"ActionIcon",props:{ariaLabel:{},disabled:{type:Boolean}},emits:["activate","set-ref"],setup(e,{emit:t}){const n=Object(r["ref"])(null);return Object(r["onMounted"])(()=>t("set-ref",n)),(e,t)=>(Object(r["openBlock"])(),Object(r["createElementBlock"])("button",{type:"button",class:"dp__btn dp__month_year_col_nav",onClick:t[0]||(t[0]=t=>e.$emit("activate")),onKeydown:[t[1]||(t[1]=Object(r["withKeys"])(Object(r["withModifiers"])(t=>e.$emit("activate"),["prevent"]),["enter"])),t[2]||(t[2]=Object(r["withKeys"])(Object(r["withModifiers"])(t=>e.$emit("activate"),["prevent"]),["space"]))],tabindex:"0","aria-label":e.ariaLabel,"aria-disabled":e.disabled,ref_key:"elRef",ref:n},[Object(r["createElementVNode"])("span",{class:Object(r["normalizeClass"])(["dp__inner_nav",{dp__inner_nav_disabled:e.disabled}])},[Object(r["renderSlot"])(e.$slots,"default")],2)],40,Si))}}),Ei=["onKeydown"],ji={class:"dp__selection_grid_header"},Di=["aria-selected","aria-disabled","onClick","onKeydown","onMouseover"],Li=["aria-label","onKeydown"],Ai=Object(r["defineComponent"])({__name:"SelectionGrid",props:{items:{type:Array,default:()=>[]},modelValue:{type:[String,Number],default:null},multiModelValue:{type:Array,default:()=>[]},disabledValues:{type:Array,default:()=>[]},minValue:{type:[Number,String],default:null},maxValue:{type:[Number,String],default:null},year:{type:Number,default:0},skipActive:{type:Boolean,default:!1},headerRefs:{type:Array,default:()=>[]},skipButtonRef:{type:Boolean,default:!1},monthPicker:{type:Boolean,default:!1},yearPicker:{type:Boolean,default:!1},escClose:{type:Boolean,default:!0},type:{type:String,default:null},arrowNavigation:{type:Boolean,default:!1},autoApply:{type:Boolean,default:!1},textInput:{type:Boolean,default:!1},ariaLabels:{type:Object,default:()=>({})},hideNavigation:{type:Array,default:()=>[]},internalModelValue:{type:[Date,Array],default:null},autoApplyMonth:{type:Boolean,default:!1}},emits:["update:model-value","selected","toggle","reset-flow"],setup(e,{expose:t,emit:n}){const o=e,{setSelectionGrid:a,buildMultiLevelMatrix:i,setMonthPicker:s}=$a(),{hideNavigationButtons:c}=Ba(o),l=Object(r["ref"])(!1),u=Object(r["ref"])(null),d=Object(r["ref"])(null),p=Object(r["ref"])([]),f=Object(r["ref"])(),h=Object(r["ref"])(null),m=Object(r["ref"])(0),v=Object(r["ref"])(null);Object(r["onBeforeUpdate"])(()=>{u.value=null}),Object(r["onMounted"])(()=>{var e;Object(r["nextTick"])().then(()=>I()),_(),g(!0),null==(e=u.value)||e.focus({preventScroll:!0})}),Object(r["onUnmounted"])(()=>g(!1));const g=e=>{var t;o.arrowNavigation&&(null!=(t=o.headerRefs)&&t.length?s(e):a(e))},_=()=>{const e=ka(d);e&&(o.textInput||e.focus({preventScroll:!0}),l.value=e.clientHeight<e.scrollHeight)},y=Object(r["computed"])(()=>({dp__overlay:!0})),b=Object(r["computed"])(()=>({dp__overlay_col:!0})),O=e=>o.monthPicker&&!o.autoApplyMonth?lo(o.internalModelValue,Sr(In(new Date,e.value),o.year)):!o.skipActive&&e.value===o.modelValue,M=Object(r["computed"])(()=>o.items.map(e=>e.filter(e=>e).map(e=>{var t,n,r;const a=o.disabledValues.some(t=>t===e.value)||w(e.value),i=null!=(t=o.multiModelValue)&&t.length?null==(n=o.multiModelValue)?void 0:n.some(t=>lo(t,Sr(o.monthPicker?In(new Date,e.value):new Date,o.monthPicker?o.year:e.value))):O(e);return{...e,className:{dp__overlay_cell_active:i,dp__overlay_cell:!i,dp__overlay_cell_disabled:a,dp__overlay_cell_active_disabled:a&&i,dp__overlay_cell_pad:!0,dp__cell_in_between:!(null==(r=o.multiModelValue)||!r.length||!o.skipActive)&&T(e.value)}}}))),k=Object(r["computed"])(()=>({dp__button:!0,dp__overlay_action:!0,dp__over_action_scroll:l.value,dp__button_bottom:o.autoApply})),C=Object(r["computed"])(()=>{var e,t;return{dp__overlay_container:!0,dp__container_flex:(null==(e=o.items)?void 0:e.length)<=6,dp__container_block:(null==(t=o.items)?void 0:t.length)>6}}),w=e=>{const t=o.maxValue||0===o.maxValue,n=o.minValue||0===o.minValue;return!(!t&&!n)&&(t&&n?+e>+o.maxValue||+e<+o.minValue:t?+e>+o.maxValue:!!n&&+e<+o.minValue)},I=()=>{const e=ka(u),t=ka(d),n=ka(h),r=ka(v),o=n?n.getBoundingClientRect().height:0;t&&(m.value=t.getBoundingClientRect().height-o),e&&r&&(r.scrollTop=e.offsetTop-r.offsetTop-(m.value/2-e.getBoundingClientRect().height)-o)},S=e=>{!o.disabledValues.some(t=>t===e)&&!w(e)&&(n("update:model-value",e),n("selected"))},T=e=>{const t=o.monthPicker?o.year:e;return po(o.multiModelValue,Sr(o.monthPicker?In(new Date,f.value||0):new Date,o.monthPicker?t:f.value||t),Sr(o.monthPicker?In(new Date,e):new Date,t))},E=()=>{n("toggle"),n("reset-flow")},j=()=>{o.escClose&&E()},D=(e,t,n,r)=>{e&&(t.value===+o.modelValue&&!o.disabledValues.includes(t.value)&&(u.value=e),o.arrowNavigation&&(Array.isArray(p.value[n])?p.value[n][r]=e:p.value[n]=[e],L()))},L=()=>{var e,t;const n=null!=(e=o.headerRefs)&&e.length?[o.headerRefs].concat(p.value):p.value.concat([o.skipButtonRef?[]:[h.value]]);i(Sa(n),null!=(t=o.headerRefs)&&t.length?"monthPicker":"selectionGrid")},A=e=>{o.arrowNavigation||e.stopImmediatePropagation()};return t({focusGrid:_}),(t,n)=>{var o;return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{ref_key:"gridWrapRef",ref:d,class:Object(r["normalizeClass"])(y.value),role:"dialog",tabindex:"0",onKeydown:[Object(r["withKeys"])(j,["esc"]),n[0]||(n[0]=Object(r["withKeys"])(e=>A(e),["left"])),n[1]||(n[1]=Object(r["withKeys"])(e=>A(e),["up"])),n[2]||(n[2]=Object(r["withKeys"])(e=>A(e),["down"])),n[3]||(n[3]=Object(r["withKeys"])(e=>A(e),["right"]))]},[Object(r["createElementVNode"])("div",{class:Object(r["normalizeClass"])(C.value),ref_key:"containerRef",ref:v,role:"grid",style:Object(r["normalizeStyle"])({height:m.value+"px"})},[Object(r["createElementVNode"])("div",ji,[Object(r["renderSlot"])(t.$slots,"header")]),t.$slots.overlay?Object(r["renderSlot"])(t.$slots,"overlay",{key:0}):(Object(r["openBlock"])(!0),Object(r["createElementBlock"])(r["Fragment"],{key:1},Object(r["renderList"])(M.value,(n,o)=>(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{class:Object(r["normalizeClass"])(["dp__overlay_row",{dp__flex_row:M.value.length>=3}]),key:o,role:"row"},[(Object(r["openBlock"])(!0),Object(r["createElementBlock"])(r["Fragment"],null,Object(r["renderList"])(n,(n,a)=>(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{role:"gridcell",class:Object(r["normalizeClass"])(b.value),key:n.value,"aria-selected":n.value===e.modelValue&&!e.disabledValues.includes(n.value),"aria-disabled":n.className.dp__overlay_cell_disabled,ref_for:!0,ref:e=>D(e,n,o,a),tabindex:"0",onClick:e=>S(n.value),onKeydown:[Object(r["withKeys"])(e=>S(n.value),["enter"]),Object(r["withKeys"])(e=>S(n.value),["space"])],onMouseover:e=>f.value=n.value},[Object(r["createElementVNode"])("div",{class:Object(r["normalizeClass"])(n.className)},[t.$slots.item?Object(r["renderSlot"])(t.$slots,"item",{key:0,item:n}):Object(r["createCommentVNode"])("",!0),t.$slots.item?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],{key:1},[Object(r["createTextVNode"])(Object(r["toDisplayString"])(n.text),1)],64))],2)],42,Di))),128))],2))),128))],6),t.$slots["button-icon"]?Object(r["withDirectives"])((Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{key:0,role:"button","aria-label":null==(o=e.ariaLabels)?void 0:o.toggleOverlay,class:Object(r["normalizeClass"])(k.value),tabindex:"0",ref_key:"toggleButton",ref:h,onClick:E,onKeydown:[Object(r["withKeys"])(E,["enter"]),Object(r["withKeys"])(E,["tab"])]},[Object(r["renderSlot"])(t.$slots,"button-icon")],42,Li)),[[r["vShow"],!Object(r["unref"])(c)(e.type)]]):Object(r["createCommentVNode"])("",!0)],42,Ei)}}}),Ni=["aria-label"],xi=Object(r["defineComponent"])({__name:"RegularPicker",props:{ariaLabel:{type:String,default:""},showSelectionGrid:{type:Boolean,default:!1},modelValue:{type:Number,default:null},items:{type:Array,default:()=>[]},disabledValues:{type:Array,default:()=>[]},minValue:{type:Number,default:null},maxValue:{type:Number,default:null},slotName:{type:String,default:""},overlaySlot:{type:String,default:""},headerRefs:{type:Array,default:()=>[]},escClose:{type:Boolean,default:!0},type:{type:String,default:null},transitions:{type:[Object,Boolean],default:!1},arrowNavigation:{type:Boolean,default:!1},autoApply:{type:Boolean,default:!1},textInput:{type:Boolean,default:!1},ariaLabels:{type:Object,default:()=>({})},hideNavigation:{type:Array,default:()=>[]}},emits:["update:model-value","toggle","set-ref"],setup(e,{emit:t}){const n=e,{transitionName:o,showTransition:a}=ci(n.transitions),i=Object(r["ref"])(null);return Object(r["onMounted"])(()=>t("set-ref",i)),(t,n)=>(Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],null,[Object(r["createElementVNode"])("button",{type:"button",class:"dp__btn dp__month_year_select",onClick:n[0]||(n[0]=e=>t.$emit("toggle")),onKeydown:[n[1]||(n[1]=Object(r["withKeys"])(Object(r["withModifiers"])(e=>t.$emit("toggle"),["prevent"]),["enter"])),n[2]||(n[2]=Object(r["withKeys"])(Object(r["withModifiers"])(e=>t.$emit("toggle"),["prevent"]),["space"]))],"aria-label":e.ariaLabel,tabindex:"0",ref_key:"elRef",ref:i},[Object(r["renderSlot"])(t.$slots,"default")],40,Ni),Object(r["createVNode"])(r["Transition"],{name:Object(r["unref"])(o)(e.showSelectionGrid),css:Object(r["unref"])(a)},{default:Object(r["withCtx"])(()=>[e.showSelectionGrid?(Object(r["openBlock"])(),Object(r["createBlock"])(Ai,Object(r["mergeProps"])({key:0},{modelValue:e.modelValue,items:e.items,disabledValues:e.disabledValues,minValue:e.minValue,maxValue:e.maxValue,escClose:e.escClose,type:e.type,arrowNavigation:e.arrowNavigation,textInput:e.textInput,autoApply:e.autoApply,ariaLabels:e.ariaLabels,hideNavigation:e.hideNavigation},{"header-refs":[],"onUpdate:modelValue":n[3]||(n[3]=e=>t.$emit("update:model-value",e)),onToggle:n[4]||(n[4]=e=>t.$emit("toggle"))}),Object(r["createSlots"])({"button-icon":Object(r["withCtx"])(()=>[t.$slots["calendar-icon"]?Object(r["renderSlot"])(t.$slots,"calendar-icon",{key:0}):Object(r["createCommentVNode"])("",!0),t.$slots["calendar-icon"]?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createBlock"])(Object(r["unref"])($r),{key:1}))]),_:2},[t.$slots[e.slotName]?{name:"item",fn:Object(r["withCtx"])(({item:n})=>[Object(r["renderSlot"])(t.$slots,e.slotName,{item:n})]),key:"0"}:void 0,t.$slots[e.overlaySlot]?{name:"overlay",fn:Object(r["withCtx"])(()=>[Object(r["renderSlot"])(t.$slots,e.overlaySlot)]),key:"1"}:void 0,t.$slots[e.overlaySlot+"-header"]?{name:"header",fn:Object(r["withCtx"])(()=>[Object(r["renderSlot"])(t.$slots,e.overlaySlot+"-header")]),key:"2"}:void 0]),1040)):Object(r["createCommentVNode"])("",!0)]),_:3},8,["name","css"])],64))}}),Ri={class:"dp__month_year_row"},Pi={class:"dp__month_picker_header"},Ui=["aria-label"],Vi=["aria-label"],Bi=["aria-label"],Fi=Object(r["defineComponent"])({__name:"MonthYearPicker",props:{month:{type:Number,default:0},year:{type:Number,default:0},instance:{type:Number,default:0},years:{type:Array,default:()=>[]},months:{type:Array,default:()=>[]},internalModelValue:{type:[Date,Array],default:null},...li},emits:["update-month-year","month-year-select","mount","reset-flow","overlay-closed"],setup(e,{expose:t,emit:n}){const o=e,{defaults:a}=Ba(o),{transitionName:i,showTransition:s}=ci(a.value.transitions),{buildMatrix:c}=$a(),{handleMonthYearChange:l,isDisabled:u,updateMonthYear:d}=ti(o,n),p=Object(r["ref"])(!1),f=Object(r["ref"])(!1),h=Object(r["ref"])([null,null,null,null]),m=Object(r["ref"])(null),v=Object(r["ref"])(null),g=Object(r["ref"])(null);Object(r["onMounted"])(()=>{n("mount")});const _=e=>({get:()=>o[e],set:t=>{const r="month"===e?"year":"month";n("update-month-year",{[e]:t,[r]:o[r]}),n("month-year-select","year"===e),"month"===e?P(!0):U(!0)}}),y=Object(r["computed"])(_("month")),b=Object(r["computed"])(_("year")),O=e=>{const t=or(oo(e));return o.year===t},M=Object(r["computed"])(()=>o.monthPicker&&Array.isArray(o.disabledDates)?o.disabledDates.map(e=>oo(e)).filter(e=>O(e)).map(e=>nr(e)):[]),k=Object(r["computed"])(()=>e=>{const t="month"===e;return{showSelectionGrid:(t?p:f).value,items:(t?L:A).value,disabledValues:a.value.filters[t?"months":"years"].concat(M.value),minValue:(t?S:w).value,maxValue:(t?T:I).value,headerRefs:t&&o.monthPicker?[m.value,v.value,g.value]:[],escClose:o.escClose,transitions:a.value.transitions,ariaLabels:a.value.ariaLabels,textInput:o.textInput,autoApply:o.autoApply,arrowNavigation:o.arrowNavigation,hideNavigation:o.hideNavigation}}),C=Object(r["computed"])(()=>e=>({month:o.month,year:o.year,items:"month"===e?o.months:o.years,instance:o.instance,updateMonthYear:d,toggle:"month"===e?P:U})),w=Object(r["computed"])(()=>o.minDate?or(oo(o.minDate)):null),I=Object(r["computed"])(()=>o.maxDate?or(oo(o.maxDate)):null),S=Object(r["computed"])(()=>{if(o.minDate&&w.value){if(w.value>o.year)return 12;if(w.value===o.year)return nr(oo(o.minDate))}return null}),T=Object(r["computed"])(()=>o.maxDate&&I.value?I.value<o.year?-1:I.value===o.year?nr(oo(o.maxDate)):null:null),E=Object(r["computed"])(()=>(o.range||o.multiDates)&&o.internalModelValue&&(o.monthPicker||o.yearPicker)?o.internalModelValue:[]),j=e=>{const t=[],n=e=>e;for(let r=0;r<e.length;r+=3){const o=[e[r],e[r+1],e[r+2]];t.push(n(o))}return t},D=Object(r["computed"])(()=>{const e=o.months.find(e=>e.value===o.month);return e||{text:"",value:0}}),L=Object(r["computed"])(()=>j(o.months)),A=Object(r["computed"])(()=>j(o.years)),N=Object(r["computed"])(()=>!a.value.multiCalendars||(!!o.multiCalendarsSolo||0===o.instance)),x=Object(r["computed"])(()=>!a.value.multiCalendars||(!!o.multiCalendarsSolo||o.instance===a.value.multiCalendars-1)),R=(e,t)=>{e.value=void 0!==t?t:!e.value},P=(e=!1,t)=>{V(e),R(p,t),p.value||n("overlay-closed")},U=(e=!1,t)=>{V(e),R(f,t),f.value||n("overlay-closed")},V=e=>{e||n("reset-flow")},B=(e=!1)=>{u.value(e)||n("update-month-year",{year:e?o.year+1:o.year-1,month:o.month,fromNav:!0})},F=(e,t)=>{o.arrowNavigation&&(h.value[t]=ka(e),c(h.value,"monthYear"))};return t({toggleMonthPicker:P,toggleYearPicker:U,handleMonthYearChange:l}),(t,n)=>{var c,p,h,_,O;return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",Ri,[t.$slots["month-year"]?Object(r["renderSlot"])(t.$slots,"month-year",Object(r["normalizeProps"])(Object(r["mergeProps"])({key:0},{month:e.month,year:e.year,months:e.months,years:e.years,updateMonthYear:Object(r["unref"])(d),handleMonthYearChange:Object(r["unref"])(l),instance:e.instance}))):(Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],{key:1},[t.monthPicker||t.yearPicker?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],{key:0},[N.value&&!t.vertical?(Object(r["openBlock"])(),Object(r["createBlock"])(Ti,{key:0,"aria-label":null==(c=Object(r["unref"])(a).ariaLabels)?void 0:c.prevMonth,disabled:Object(r["unref"])(u)(!1),onActivate:n[0]||(n[0]=e=>Object(r["unref"])(l)(!1)),onSetRef:n[1]||(n[1]=e=>F(e,0))},{default:Object(r["withCtx"])(()=>[t.$slots["arrow-left"]?Object(r["renderSlot"])(t.$slots,"arrow-left",{key:0}):Object(r["createCommentVNode"])("",!0),t.$slots["arrow-left"]?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createBlock"])(Object(r["unref"])(Qr),{key:1}))]),_:3},8,["aria-label","disabled"])):Object(r["createCommentVNode"])("",!0),Object(r["createElementVNode"])("div",{class:Object(r["normalizeClass"])(["dp__month_year_wrap",{dp__year_disable_select:o.disableYearSelect}])},[Object(r["createVNode"])(xi,Object(r["mergeProps"])({type:"month","slot-name":"month-overlay-val","overlay-slot":"overlay-month","aria-label":null==(p=Object(r["unref"])(a).ariaLabels)?void 0:p.openMonthsOverlay,modelValue:y.value,"onUpdate:modelValue":n[2]||(n[2]=e=>y.value=e)},k.value("month"),{onToggle:P,onSetRef:n[3]||(n[3]=e=>F(e,1))}),Object(r["createSlots"])({default:Object(r["withCtx"])(()=>[t.$slots.month?Object(r["renderSlot"])(t.$slots,"month",Object(r["normalizeProps"])(Object(r["mergeProps"])({key:0},D.value))):Object(r["createCommentVNode"])("",!0),t.$slots.month?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],{key:1},[Object(r["createTextVNode"])(Object(r["toDisplayString"])(D.value.text),1)],64))]),_:2},[t.$slots["calendar-icon"]?{name:"calendar-icon",fn:Object(r["withCtx"])(()=>[Object(r["renderSlot"])(t.$slots,"calendar-icon")]),key:"0"}:void 0,t.$slots["month-overlay-value"]?{name:"month-overlay-val",fn:Object(r["withCtx"])(({item:e})=>[Object(r["renderSlot"])(t.$slots,"month-overlay-value",{text:e.text,value:e.value})]),key:"1"}:void 0,t.$slots["month-overlay"]?{name:"overlay-month",fn:Object(r["withCtx"])(()=>[Object(r["renderSlot"])(t.$slots,"month-overlay",Object(r["normalizeProps"])(Object(r["guardReactiveProps"])(C.value("month"))))]),key:"2"}:void 0,t.$slots["month-overlay-header"]?{name:"overlay-month-header",fn:Object(r["withCtx"])(()=>[Object(r["renderSlot"])(t.$slots,"month-overlay-header",{toggle:P})]),key:"3"}:void 0]),1040,["aria-label","modelValue"]),o.disableYearSelect?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createBlock"])(xi,Object(r["mergeProps"])({key:0,type:"year","slot-name":"year-overlay-val","overlay-slot":"overlay-year","aria-label":null==(h=Object(r["unref"])(a).ariaLabels)?void 0:h.openYearsOverlay,modelValue:b.value,"onUpdate:modelValue":n[4]||(n[4]=e=>b.value=e)},k.value("year"),{onToggle:U,onSetRef:n[5]||(n[5]=e=>F(e,2))}),Object(r["createSlots"])({default:Object(r["withCtx"])(()=>[t.$slots.year?Object(r["renderSlot"])(t.$slots,"year",{key:0,year:e.year}):Object(r["createCommentVNode"])("",!0),t.$slots.year?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],{key:1},[Object(r["createTextVNode"])(Object(r["toDisplayString"])(e.year),1)],64))]),_:2},[t.$slots["calendar-icon"]?{name:"calendar-icon",fn:Object(r["withCtx"])(()=>[Object(r["renderSlot"])(t.$slots,"calendar-icon")]),key:"0"}:void 0,t.$slots["year-overlay-value"]?{name:"year-overlay-val",fn:Object(r["withCtx"])(({item:e})=>[Object(r["renderSlot"])(t.$slots,"year-overlay-value",{text:e.text,value:e.value})]),key:"1"}:void 0,t.$slots["year-overlay"]?{name:"overlay-year",fn:Object(r["withCtx"])(()=>[Object(r["renderSlot"])(t.$slots,"year-overlay",Object(r["normalizeProps"])(Object(r["guardReactiveProps"])(C.value("year"))))]),key:"2"}:void 0,t.$slots["year-overlay-header"]?{name:"overlay-year-header",fn:Object(r["withCtx"])(()=>[Object(r["renderSlot"])(t.$slots,"year-overlay-header",{toggle:U})]),key:"3"}:void 0]),1040,["aria-label","modelValue"]))],2),N.value&&t.vertical?(Object(r["openBlock"])(),Object(r["createBlock"])(Ti,{key:1,"aria-label":null==(_=Object(r["unref"])(a).ariaLabels)?void 0:_.prevMonth,disabled:Object(r["unref"])(u)(!1),onActivate:n[6]||(n[6]=e=>Object(r["unref"])(l)(!1))},{default:Object(r["withCtx"])(()=>[t.$slots["arrow-up"]?Object(r["renderSlot"])(t.$slots,"arrow-up",{key:0}):Object(r["createCommentVNode"])("",!0),t.$slots["arrow-up"]?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createBlock"])(Object(r["unref"])(eo),{key:1}))]),_:3},8,["aria-label","disabled"])):Object(r["createCommentVNode"])("",!0),x.value?(Object(r["openBlock"])(),Object(r["createBlock"])(Ti,{key:2,ref:"rightIcon",disabled:Object(r["unref"])(u)(!0),"aria-label":null==(O=Object(r["unref"])(a).ariaLabels)?void 0:O.nextMonth,onActivate:n[7]||(n[7]=e=>Object(r["unref"])(l)(!0)),onSetRef:n[8]||(n[8]=e=>F(e,3))},{default:Object(r["withCtx"])(()=>[t.$slots[t.vertical?"arrow-down":"arrow-right"]?Object(r["renderSlot"])(t.$slots,t.vertical?"arrow-down":"arrow-right",{key:0}):Object(r["createCommentVNode"])("",!0),t.$slots[t.vertical?"arrow-down":"arrow-right"]?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createBlock"])(Object(r["resolveDynamicComponent"])(t.vertical?Object(r["unref"])(to):Object(r["unref"])(Xr)),{key:1}))]),_:3},8,["disabled","aria-label"])):Object(r["createCommentVNode"])("",!0)],64)),t.monthPicker?(Object(r["openBlock"])(),Object(r["createBlock"])(Ai,Object(r["mergeProps"])({key:1},k.value("month"),{"skip-active":t.range,"internal-model-value":e.internalModelValue,year:e.year,"auto-apply-month":t.autoApplyMonth,"multi-model-value":E.value,"month-picker":"",modelValue:y.value,"onUpdate:modelValue":n[17]||(n[17]=e=>y.value=e),onToggle:P,onSelected:n[18]||(n[18]=e=>t.$emit("overlay-closed"))}),Object(r["createSlots"])({header:Object(r["withCtx"])(()=>{var o,c,l;return[Object(r["createElementVNode"])("div",Pi,[Object(r["createElementVNode"])("div",{class:"dp__month_year_col_nav",tabindex:"0",ref_key:"mpPrevIconRef",ref:m,onClick:n[9]||(n[9]=e=>B(!1)),onKeydown:n[10]||(n[10]=Object(r["withKeys"])(e=>B(!1),["enter"]))},[Object(r["createElementVNode"])("div",{class:Object(r["normalizeClass"])(["dp__inner_nav",{dp__inner_nav_disabled:Object(r["unref"])(u)(!1)}]),role:"button","aria-label":null==(o=Object(r["unref"])(a).ariaLabels)?void 0:o.prevMonth},[t.$slots["arrow-left"]?Object(r["renderSlot"])(t.$slots,"arrow-left",{key:0}):Object(r["createCommentVNode"])("",!0),t.$slots["arrow-left"]?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createBlock"])(Object(r["unref"])(Qr),{key:1}))],10,Ui)],544),Object(r["createElementVNode"])("div",{class:"dp__pointer",role:"button",ref_key:"mpYearButtonRef",ref:v,"aria-label":null==(c=Object(r["unref"])(a).ariaLabels)?void 0:c.openYearsOverlay,tabindex:"0",onClick:n[11]||(n[11]=()=>U(!1)),onKeydown:n[12]||(n[12]=Object(r["withKeys"])(()=>U(!1),["enter"]))},[t.$slots.year?Object(r["renderSlot"])(t.$slots,"year",{key:0,year:e.year}):Object(r["createCommentVNode"])("",!0),t.$slots.year?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],{key:1},[Object(r["createTextVNode"])(Object(r["toDisplayString"])(e.year),1)],64))],40,Vi),Object(r["createElementVNode"])("div",{class:"dp__month_year_col_nav",tabindex:"0",ref_key:"mpNextIconRef",ref:g,onClick:n[13]||(n[13]=e=>B(!0)),onKeydown:n[14]||(n[14]=Object(r["withKeys"])(e=>B(!0),["enter"]))},[Object(r["createElementVNode"])("div",{class:Object(r["normalizeClass"])(["dp__inner_nav",{dp__inner_nav_disabled:Object(r["unref"])(u)(!0)}]),role:"button","aria-label":null==(l=Object(r["unref"])(a).ariaLabels)?void 0:l.nextMonth},[t.$slots["arrow-right"]?Object(r["renderSlot"])(t.$slots,"arrow-right",{key:0}):Object(r["createCommentVNode"])("",!0),t.$slots["arrow-right"]?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createBlock"])(Object(r["unref"])(Xr),{key:1}))],10,Bi)],544)]),Object(r["createVNode"])(r["Transition"],{name:Object(r["unref"])(i)(f.value),css:Object(r["unref"])(s)},{default:Object(r["withCtx"])(()=>[f.value?(Object(r["openBlock"])(),Object(r["createBlock"])(Ai,Object(r["mergeProps"])({key:0},k.value("year"),{modelValue:b.value,"onUpdate:modelValue":n[15]||(n[15]=e=>b.value=e),onToggle:U,onSelected:n[16]||(n[16]=e=>t.$emit("overlay-closed"))}),Object(r["createSlots"])({"button-icon":Object(r["withCtx"])(()=>[t.$slots["calendar-icon"]?Object(r["renderSlot"])(t.$slots,"calendar-icon",{key:0}):Object(r["createCommentVNode"])("",!0),t.$slots["calendar-icon"]?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createBlock"])(Object(r["unref"])($r),{key:1}))]),_:2},[t.$slots["year-overlay-value"]?{name:"item",fn:Object(r["withCtx"])(({item:e})=>[Object(r["renderSlot"])(t.$slots,"year-overlay-value",{text:e.text,value:e.value})]),key:"0"}:void 0]),1040,["modelValue"])):Object(r["createCommentVNode"])("",!0)]),_:3},8,["name","css"])]}),_:2},[t.$slots["month-overlay-value"]?{name:"item",fn:Object(r["withCtx"])(({item:e})=>[Object(r["renderSlot"])(t.$slots,"month-overlay-value",{text:e.text,value:e.value})]),key:"0"}:void 0]),1040,["skip-active","internal-model-value","year","auto-apply-month","multi-model-value","modelValue"])):Object(r["createCommentVNode"])("",!0),t.yearPicker?(Object(r["openBlock"])(),Object(r["createBlock"])(Ai,Object(r["mergeProps"])({key:2},k.value("year"),{modelValue:b.value,"onUpdate:modelValue":n[19]||(n[19]=e=>b.value=e),"multi-model-value":E.value,"skip-active":t.range,"skip-button-ref":"","year-picker":"",onToggle:U,onSelected:n[20]||(n[20]=e=>t.$emit("overlay-closed"))}),Object(r["createSlots"])({_:2},[t.$slots["year-overlay-value"]?{name:"item",fn:Object(r["withCtx"])(({item:e})=>[Object(r["renderSlot"])(t.$slots,"year-overlay-value",{text:e.text,value:e.value})]),key:"0"}:void 0]),1040,["modelValue","multi-model-value","skip-active"])):Object(r["createCommentVNode"])("",!0)],64))])}}}),Gi={key:0,class:"dp__time_input"},zi=["aria-label","onKeydown","onClick"],Hi=Object(r["createElementVNode"])("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1),Yi=Object(r["createElementVNode"])("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1),qi=["aria-label","onKeydown","onClick"],Wi=["aria-label","onKeydown","onClick"],Ki=Object(r["createElementVNode"])("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1),$i=Object(r["createElementVNode"])("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1),Ji={key:0},Qi=["aria-label","onKeydown"],Xi=Object(r["defineComponent"])({__name:"TimeInput",props:{hours:{type:Number,default:0},minutes:{type:Number,default:0},seconds:{type:Number,default:0},closeTimePickerBtn:{type:Object,default:null},order:{type:Number,default:0},...li},emits:["set-hours","set-minutes","update:hours","update:minutes","update:seconds","reset-flow","mounted","overlay-closed","am-pm-change"],setup(e,{expose:t,emit:n}){const o=e,{setTimePickerElements:a,setTimePickerBackRef:i}=$a(),{defaults:s}=Ba(o),{transitionName:c,showTransition:l}=ci(s.value.transitions),u=Object(r["reactive"])({hours:!1,minutes:!1,seconds:!1}),d=Object(r["ref"])("AM"),p=Object(r["ref"])(null),f=Object(r["ref"])([]);Object(r["onMounted"])(()=>{n("mounted")});const h=e=>Sn(new Date,{hours:e.hours,minutes:e.minutes,seconds:o.enableSeconds?e.seconds:0,milliseconds:0}),m=Object(r["computed"])(()=>({hours:o.hours,minutes:o.minutes,seconds:o.seconds})),v=Object(r["computed"])(()=>e=>!w(+o[e]+ +o[e+"Increment"],e)),g=Object(r["computed"])(()=>e=>!w(+o[e]-+o[e+"Increment"],e)),_=(e,t)=>jr(Sn(oo(),e),t),y=(e,t)=>Kr(Sn(oo(),e),t),b=Object(r["computed"])(()=>({dp__time_col:!0,dp__time_col_block:!o.timePickerInline,dp__time_col_reg_block:!o.enableSeconds&&o.is24&&!o.timePickerInline,dp__time_col_reg_inline:!o.enableSeconds&&o.is24&&o.timePickerInline,dp__time_col_reg_with_button:!o.enableSeconds&&!o.is24,dp__time_col_sec:o.enableSeconds&&o.is24,dp__time_col_sec_with_button:o.enableSeconds&&!o.is24})),O=Object(r["computed"])(()=>{const e=[{type:"hours"},{type:"",separator:!0},{type:"minutes"}];return o.enableSeconds?e.concat([{type:"",separator:!0},{type:"seconds"}]):e}),M=Object(r["computed"])(()=>O.value.filter(e=>!e.separator)),k=Object(r["computed"])(()=>e=>{if("hours"===e){const e=D(+o.hours);return{text:e<10?"0"+e:""+e,value:e}}return{text:o[e]<10?"0"+o[e]:""+o[e],value:o[e]}}),C=e=>{const t=o.is24?24:12,n="hours"===e?t:60,r=+o[e+"GridIncrement"],a="hours"!==e||o.is24?0:r,i=[];for(let o=a;o<n;o+=r)i.push({value:o,text:o<10?"0"+o:""+o});return"hours"===e&&!o.is24&&i.push({value:0,text:"12"}),va(i)},w=(e,t)=>{const n=o.minTime?h(ho(o.minTime)):null,r=o.maxTime?h(ho(o.maxTime)):null,a=h(ho(m.value,t,e));return n&&r?(Ln(a,r)||An(a,r))&&(Nn(a,n)||An(a,n)):n?Nn(a,n)||An(a,n):!r||(Ln(a,r)||An(a,r))},I=Object(r["computed"])(()=>e=>C(e).flat().filter(e=>Ea(e.value)).map(e=>e.value).filter(t=>!w(t,e))),S=e=>o[`no${e[0].toUpperCase()+e.slice(1)}Overlay`],T=e=>{S(e)||(u[e]=!u[e],u[e]||n("overlay-closed"))},E=e=>"hours"===e?xn:"minutes"===e?Rn:Pn,j=(e,t=!0)=>{const r=t?_:y,a=t?+o[e+"Increment"]:-+o[e+"Increment"];w(+o[e]+a,e)&&n("update:"+e,E(e)(r({[e]:+o[e]},{[e]:+o[e+"Increment"]})))},D=e=>o.is24?e:(d.value=e>=12?"PM":"AM",Ma(e)),L=()=>{"PM"===d.value?(d.value="AM",n("update:hours",o.hours-12)):(d.value="PM",n("update:hours",o.hours+12)),n("am-pm-change",d.value)},A=e=>{u[e]=!0},N=(e,t,n)=>{if(e&&o.arrowNavigation){Array.isArray(f.value[t])?f.value[t][n]=e:f.value[t]=[e];const r=f.value.reduce((e,t)=>t.map((n,r)=>[...e[r]||[],t[r]]),[]);i(o.closeTimePickerBtn),p.value&&(r[1]=r[1].concat(p.value)),a(r,o.order)}},x=(e,t)=>"hours"!==e||o.is24?n("update:"+e,t):n("update:"+e,"PM"===d.value?t+12:t);return t({openChildCmp:A}),(e,t)=>{var n;return e.disabled?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",Gi,[(Object(r["openBlock"])(!0),Object(r["createElementBlock"])(r["Fragment"],null,Object(r["renderList"])(O.value,(t,n)=>{var a,i,c;return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{key:n,class:Object(r["normalizeClass"])(b.value)},[t.separator?(Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],{key:0},[Object(r["createTextVNode"])(" : ")],64)):(Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],{key:1},[Object(r["createElementVNode"])("button",{type:"button",class:Object(r["normalizeClass"])({dp__btn:!0,dp__inc_dec_button:!o.timePickerInline,dp__inc_dec_button_inline:o.timePickerInline,dp__tp_inline_btn_top:o.timePickerInline,dp__inc_dec_button_disabled:v.value(t.type)}),"aria-label":null==(a=Object(r["unref"])(s).ariaLabels)?void 0:a.incrementValue(t.type),tabindex:"0",onKeydown:[Object(r["withKeys"])(e=>j(t.type),["enter"]),Object(r["withKeys"])(e=>j(t.type),["space"])],onClick:e=>j(t.type),ref_for:!0,ref:e=>N(e,n,0)},[o.timePickerInline?(Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],{key:1},[Hi,Yi],64)):(Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],{key:0},[e.$slots["arrow-up"]?Object(r["renderSlot"])(e.$slots,"arrow-up",{key:0}):Object(r["createCommentVNode"])("",!0),e.$slots["arrow-up"]?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createBlock"])(Object(r["unref"])(eo),{key:1}))],64))],42,zi),Object(r["createElementVNode"])("button",{type:"button","aria-label":null==(i=Object(r["unref"])(s).ariaLabels)?void 0:i.openTpOverlay(t.type),class:Object(r["normalizeClass"])(["dp__btn",S(t.type)?void 0:{dp__time_display:!0,dp__time_display_block:!o.timePickerInline,dp__time_display_inline:o.timePickerInline}]),tabindex:"0",onKeydown:[Object(r["withKeys"])(e=>T(t.type),["enter"]),Object(r["withKeys"])(e=>T(t.type),["space"])],onClick:e=>T(t.type),ref_for:!0,ref:e=>N(e,n,1)},[e.$slots[t.type]?Object(r["renderSlot"])(e.$slots,t.type,{key:0,text:k.value(t.type).text,value:k.value(t.type).value}):Object(r["createCommentVNode"])("",!0),e.$slots[t.type]?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],{key:1},[Object(r["createTextVNode"])(Object(r["toDisplayString"])(k.value(t.type).text),1)],64))],42,qi),Object(r["createElementVNode"])("button",{type:"button",class:Object(r["normalizeClass"])({dp__btn:!0,dp__inc_dec_button:!o.timePickerInline,dp__inc_dec_button_inline:o.timePickerInline,dp__tp_inline_btn_bottom:o.timePickerInline,dp__inc_dec_button_disabled:g.value(t.type)}),"aria-label":null==(c=Object(r["unref"])(s).ariaLabels)?void 0:c.decrementValue(t.type),tabindex:"0",onKeydown:[Object(r["withKeys"])(e=>j(t.type,!1),["enter"]),Object(r["withKeys"])(e=>j(t.type,!1),["space"])],onClick:e=>j(t.type,!1),ref_for:!0,ref:e=>N(e,n,2)},[o.timePickerInline?(Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],{key:1},[Ki,$i],64)):(Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],{key:0},[e.$slots["arrow-down"]?Object(r["renderSlot"])(e.$slots,"arrow-down",{key:0}):Object(r["createCommentVNode"])("",!0),e.$slots["arrow-down"]?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createBlock"])(Object(r["unref"])(to),{key:1}))],64))],42,Wi)],64))],2)}),128)),e.is24?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",Ji,[e.$slots["am-pm-button"]?Object(r["renderSlot"])(e.$slots,"am-pm-button",{key:0,toggle:L,value:d.value}):Object(r["createCommentVNode"])("",!0),e.$slots["am-pm-button"]?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createElementBlock"])("button",{key:1,ref_key:"amPmButton",ref:p,type:"button",class:"dp__pm_am_button",role:"button","aria-label":null==(n=Object(r["unref"])(s).ariaLabels)?void 0:n.amPmButton,tabindex:"0",onClick:L,onKeydown:[Object(r["withKeys"])(Object(r["withModifiers"])(L,["prevent"]),["enter"]),Object(r["withKeys"])(Object(r["withModifiers"])(L,["prevent"]),["space"])]},Object(r["toDisplayString"])(d.value),41,Qi))])),(Object(r["openBlock"])(!0),Object(r["createElementBlock"])(r["Fragment"],null,Object(r["renderList"])(M.value,(n,o)=>(Object(r["openBlock"])(),Object(r["createBlock"])(r["Transition"],{key:o,name:Object(r["unref"])(c)(u[n.type]),css:Object(r["unref"])(l)},{default:Object(r["withCtx"])(()=>[u[n.type]?(Object(r["openBlock"])(),Object(r["createBlock"])(Ai,{key:0,items:C(n.type),"disabled-values":Object(r["unref"])(s).filters.times[n.type].concat(I.value(n.type)),"esc-close":e.escClose,"aria-labels":Object(r["unref"])(s).ariaLabels,"hide-navigation":e.hideNavigation,"onUpdate:modelValue":e=>x(n.type,e),onSelected:e=>T(n.type),onToggle:e=>T(n.type),onResetFlow:t[0]||(t[0]=t=>e.$emit("reset-flow")),type:n.type},Object(r["createSlots"])({"button-icon":Object(r["withCtx"])(()=>[e.$slots["clock-icon"]?Object(r["renderSlot"])(e.$slots,"clock-icon",{key:0}):Object(r["createCommentVNode"])("",!0),e.$slots["clock-icon"]?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createBlock"])(Object(r["unref"])(Zr),{key:1}))]),_:2},[e.$slots[n.type+"-overlay-value"]?{name:"item",fn:Object(r["withCtx"])(({item:t})=>[Object(r["renderSlot"])(e.$slots,n.type+"-overlay-value",{text:t.text,value:t.value})]),key:"0"}:void 0]),1032,["items","disabled-values","esc-close","aria-labels","hide-navigation","onUpdate:modelValue","onSelected","onToggle","type"])):Object(r["createCommentVNode"])("",!0)]),_:2},1032,["name","css"]))),128))]))}}}),Zi=["aria-label"],es=["tabindex"],ts=["aria-label"],ns=Object(r["defineComponent"])({__name:"TimePicker",props:{hours:{type:[Number,Array],default:0},minutes:{type:[Number,Array],default:0},seconds:{type:[Number,Array],default:0},internalModelValue:{type:[Date,Array],default:null},...li},emits:["update:hours","update:minutes","update:seconds","mount","reset-flow","overlay-opened","overlay-closed","am-pm-change"],setup(e,{expose:t,emit:n}){const o=e,{buildMatrix:a,setTimePicker:i}=$a(),s=Object(r["useSlots"])(),{hideNavigationButtons:c,defaults:l}=Ba(o),{transitionName:u,showTransition:d}=ci(l.value.transitions),p=Object(r["ref"])(null),f=Object(r["ref"])(null),h=Object(r["ref"])([]),m=Object(r["ref"])(null);Object(r["onMounted"])(()=>{n("mount"),!o.timePicker&&o.arrowNavigation?a([ka(p.value)],"time"):i(!0,o.timePicker)});const v=Object(r["computed"])(()=>!o.range||!o.modelAuto||wa(o.internalModelValue)),g=Object(r["ref"])(!1),_=e=>({hours:Array.isArray(o.hours)?o.hours[e]:o.hours,minutes:Array.isArray(o.minutes)?o.minutes[e]:o.minutes,seconds:Array.isArray(o.seconds)?o.seconds[e]:o.seconds}),y=Object(r["computed"])(()=>{const e=[];if(o.range)for(let t=0;t<2;t++)e.push(_(t));else e.push(_(0));return e}),b=(e,t=!1,a="")=>{t||n("reset-flow"),g.value=e,n(e?"overlay-opened":"overlay-closed"),o.arrowNavigation&&i(e),Object(r["nextTick"])(()=>{""!==a&&h.value[0]&&h.value[0].openChildCmp(a)})},O=Object(r["computed"])(()=>({dp__btn:!0,dp__button:!0,dp__button_bottom:o.autoApply&&!o.keepActionRow})),M=si(s,"timePicker"),k=(e,t,n)=>o.range?0===t?[e,y.value[1][n]]:[y.value[0][n],e]:e,C=e=>{n("update:hours",e)},w=e=>{n("update:minutes",e)},I=e=>{n("update:seconds",e)},S=()=>{if(m.value){const e=Da(m.value);e&&e.focus({preventScroll:!0})}};return t({toggleTimePicker:b}),(t,n)=>{var o;return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",null,[t.timePicker||t.timePickerInline?Object(r["createCommentVNode"])("",!0):Object(r["withDirectives"])((Object(r["openBlock"])(),Object(r["createElementBlock"])("button",{key:0,type:"button",class:Object(r["normalizeClass"])(O.value),"aria-label":null==(o=Object(r["unref"])(l).ariaLabels)?void 0:o.openTimePicker,tabindex:"0",ref_key:"openTimePickerBtn",ref:p,onKeydown:[n[0]||(n[0]=Object(r["withKeys"])(e=>b(!0),["enter"])),n[1]||(n[1]=Object(r["withKeys"])(e=>b(!0),["space"]))],onClick:n[2]||(n[2]=e=>b(!0))},[t.$slots["clock-icon"]?Object(r["renderSlot"])(t.$slots,"clock-icon",{key:0}):Object(r["createCommentVNode"])("",!0),t.$slots["clock-icon"]?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createBlock"])(Object(r["unref"])(Zr),{key:1}))],42,Zi)),[[r["vShow"],!Object(r["unref"])(c)("time")]]),Object(r["createVNode"])(r["Transition"],{name:Object(r["unref"])(u)(g.value),css:Object(r["unref"])(d)&&!t.timePickerInline},{default:Object(r["withCtx"])(()=>{var o;return[g.value||t.timePicker||t.timePickerInline?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{key:0,class:Object(r["normalizeClass"])({dp__overlay:!t.timePickerInline}),ref_key:"overlayRef",ref:m,tabindex:t.timePickerInline?void 0:0},[Object(r["createElementVNode"])("div",{class:Object(r["normalizeClass"])(t.timePickerInline?"dp__time_picker_inline_container":"dp__overlay_container dp__container_flex dp__time_picker_overlay_container"),style:{display:"flex"}},[t.$slots["time-picker-overlay"]?Object(r["renderSlot"])(t.$slots,"time-picker-overlay",{key:0,hours:e.hours,minutes:e.minutes,seconds:e.seconds,setHours:C,setMinutes:w,setSeconds:I}):Object(r["createCommentVNode"])("",!0),t.$slots["time-picker-overlay"]?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{key:1,class:Object(r["normalizeClass"])(t.timePickerInline?"dp__flex":"dp__overlay_row dp__flex_row")},[(Object(r["openBlock"])(!0),Object(r["createElementBlock"])(r["Fragment"],null,Object(r["renderList"])(y.value,(e,o)=>Object(r["withDirectives"])((Object(r["openBlock"])(),Object(r["createBlock"])(Xi,Object(r["mergeProps"])({key:o},{...t.$props,order:o,hours:e.hours,minutes:e.minutes,seconds:e.seconds,closeTimePickerBtn:f.value,disabled:0===o?t.fixedStart:t.fixedEnd},{ref_for:!0,ref_key:"timeInputRefs",ref:h,"onUpdate:hours":e=>C(k(e,o,"hours")),"onUpdate:minutes":e=>w(k(e,o,"minutes")),"onUpdate:seconds":e=>I(k(e,o,"seconds")),onMounted:S,onOverlayClosed:S,onAmPmChange:n[3]||(n[3]=e=>t.$emit("am-pm-change",e))}),Object(r["createSlots"])({_:2},[Object(r["renderList"])(Object(r["unref"])(M),(e,n)=>({name:e,fn:Object(r["withCtx"])(n=>[Object(r["renderSlot"])(t.$slots,e,Object(r["normalizeProps"])(Object(r["guardReactiveProps"])(n)))])}))]),1040,["onUpdate:hours","onUpdate:minutes","onUpdate:seconds"])),[[r["vShow"],0===o||v.value]])),128))],2)),t.timePicker||t.timePickerInline?Object(r["createCommentVNode"])("",!0):Object(r["withDirectives"])((Object(r["openBlock"])(),Object(r["createElementBlock"])("button",{key:2,type:"button",ref_key:"closeTimePickerBtn",ref:f,class:Object(r["normalizeClass"])(O.value),"aria-label":null==(o=Object(r["unref"])(l).ariaLabels)?void 0:o.closeTimePicker,tabindex:"0",onKeydown:[n[4]||(n[4]=Object(r["withKeys"])(e=>b(!1),["enter"])),n[5]||(n[5]=Object(r["withKeys"])(e=>b(!1),["space"]))],onClick:n[6]||(n[6]=e=>b(!1))},[t.$slots["calendar-icon"]?Object(r["renderSlot"])(t.$slots,"calendar-icon",{key:0}):Object(r["createCommentVNode"])("",!0),t.$slots["calendar-icon"]?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createBlock"])(Object(r["unref"])($r),{key:1}))],42,ts)),[[r["vShow"],!Object(r["unref"])(c)("time")]])],2)],10,es)):Object(r["createCommentVNode"])("",!0)]}),_:3},8,["name","css"])])}}}),rs=(e,t)=>{const{isDisabled:n,matchDate:o,getWeekFromDate:a,defaults:i}=Ba(t),s=Object(r["ref"])(null),c=Object(r["ref"])(oo()),l=e=>{!e.current&&t.hideOffsetDates||(s.value=e.value)},u=()=>{s.value=null},d=n=>!(Array.isArray(e.value)&&t.range&&e.value[0]&&s.value)||(n?uo(s.value,e.value[0]):co(s.value,e.value[0])),p=(t,n)=>{const r=()=>e.value?n?e.value[0]||null:e.value[1]:null,o=e.value&&Array.isArray(e.value)?r():null;return lo(oo(t.value),o)},f=t=>{const n=Array.isArray(e.value)?e.value[0]:null;return!t||!co(s.value||null,n)},h=(n,r=!0)=>(t.range||t.weekPicker)&&Array.isArray(e.value)&&2===e.value.length?!(t.hideOffsetDates&&!n.current)&&lo(oo(n.value),e.value[r?0:1]):!!t.range&&(p(n,r)&&f(r)||lo(n.value,Array.isArray(e.value)?e.value[0]:null)&&d(r)),m=(t,n,r)=>!(!Array.isArray(e.value)||!e.value[0]||1!==e.value.length)&&(!t&&(r?uo(e.value[0],n.value):co(e.value[0],n.value))),v=n=>!(!e.value||t.hideOffsetDates&&!n.current)&&(t.range?!(!t.modelAuto||!Array.isArray(e.value))&&lo(n.value,e.value[0]?e.value[0]:c.value):t.multiDates&&Array.isArray(e.value)?e.value.some(e=>lo(e,n.value)):lo(n.value,e.value?e.value:c.value)),g=e=>{if(t.autoRange||t.weekPicker){if(s.value){if(t.hideOffsetDates&&!e.current)return!1;const n=Tr(s.value,+t.autoRange),r=a(oo(s.value));return t.weekPicker?lo(r[1],oo(e.value)):lo(n,oo(e.value))}return!1}return!1},_=e=>{if(t.autoRange||t.weekPicker){if(s.value){const n=Tr(s.value,+t.autoRange);if(t.hideOffsetDates&&!e.current)return!1;const r=a(oo(s.value));return t.weekPicker?uo(e.value,r[0])&&co(e.value,r[1]):uo(e.value,s.value)&&co(e.value,n)}return!1}return!1},y=e=>{if(t.autoRange||t.weekPicker){if(s.value){if(t.hideOffsetDates&&!e.current)return!1;const n=a(oo(s.value));return t.weekPicker?lo(n[0],e.value):lo(s.value,e.value)}return!1}return!1},b=t=>po(e.value,s.value,t.value),O=()=>!(!t.modelAuto||!Array.isArray(t.internalModelValue))&&!!t.internalModelValue[0],M=()=>!t.modelAuto||wa(t.internalModelValue),k=r=>{if(Array.isArray(e.value)&&e.value.length||t.weekPicker)return!1;const o=!t.range||!h(r)&&!h(r,!1);return!n(r.value)&&!v(r)&&!(!r.current&&t.hideOffsetDates)&&o},C=e=>t.range?!!t.modelAuto&&(O()&&v(e)):v(e),w=e=>{var n;return!!t.highlight&&o(e.value,null!=(n=t.arrMapValues)&&n.highlightedDates?t.arrMapValues.highlightedDates:t.highlight)},I=e=>n(e.value)&&!1===t.highlightDisabledDays,S=e=>t.highlightWeekDays&&t.highlightWeekDays.includes(e.value.getDay()),T=e=>!(!t.range&&!t.weekPicker||i.value.multiCalendars>0&&!e.current||!M()||!e.current&&t.hideOffsetDates||v(e))&&b(e),E=e=>{const{isRangeStart:r,isRangeEnd:o}=L(e),a=!!t.range&&(r||o);return{dp__cell_offset:!e.current,dp__pointer:!t.disabled&&!(!e.current&&t.hideOffsetDates)&&!n(e.value),dp__cell_disabled:n(e.value),dp__cell_highlight:!I(e)&&(w(e)||S(e))&&!C(e)&&!a,dp__cell_highlight_active:!I(e)&&(w(e)||S(e))&&C(e),dp__today:!t.noToday&&lo(e.value,c.value)&&e.current}},j=e=>({dp__active_date:C(e),dp__date_hover:k(e)}),D=e=>({...A(e),...N(e),dp__range_between_week:T(e)&&t.weekPicker}),L=e=>{const t=i.value.multiCalendars>0?e.current&&h(e)&&M():h(e)&&M(),n=i.value.multiCalendars>0?e.current&&h(e,!1)&&M():h(e,!1)&&M();return{isRangeStart:t,isRangeEnd:n}},A=e=>{const{isRangeStart:n,isRangeEnd:r}=L(e);return{dp__range_start:n,dp__range_end:r,dp__range_between:T(e)&&!t.weekPicker,dp__date_hover_start:m(k(e),e,!0),dp__date_hover_end:m(k(e),e,!1)}},N=e=>({...A(e),dp__cell_auto_range:_(e),dp__cell_auto_range_start:y(e),dp__cell_auto_range_end:g(e)}),x=e=>t.range?t.autoRange?N(e):t.modelAuto?{...j(e),...A(e)}:A(e):t.weekPicker?D(e):j(e);return{setHoverDate:l,clearHoverDate:u,getDayClassData:e=>t.hideOffsetDates&&!e.current?{}:{...E(e),...x(e),[t.dayClass?t.dayClass(e.value):""]:!0,[t.calendarCellClassName]:!!t.calendarCellClassName}}},os=["id","onKeydown"],as={key:0,class:"dp__sidebar_left"},is={key:1,class:"dp__preset_ranges"},ss=["onClick"],cs={key:2,class:"dp__sidebar_right"},ls={key:3,class:"dp__action_extra"},us=Object(r["defineComponent"])({__name:"DatepickerMenu",props:{openOnTop:{type:Boolean,default:!1},internalModelValue:{type:[Date,Array],default:null},arrMapValues:{type:Object,default:()=>({})},...li},emits:["close-picker","select-date","auto-apply","time-update","flow-step","update-month-year","invalid-select","update:internal-model-value","recalculate-position","invalid-fixed-range","tooltip-open","tooltip-close","time-picker-open","time-picker-close","am-pm-change","range-start","range-end"],setup(e,{expose:t,emit:n}){const o=e,a=Object(r["computed"])(()=>{const{openOnTop:e,internalModelValue:t,arrMapValues:n,...r}=o;return r}),{setMenuFocused:i,setShiftKey:s,control:c}=go(),{getCalendarDays:l,defaults:u}=Ba(o),d=Object(r["useSlots"])(),p=Object(r["ref"])(null),f=Object(r["reactive"])({timePicker:!(o.enableTimePicker&&!o.timePicker&&!o.monthPicker),monthYearInput:!!o.timePicker,calendar:!1}),h=Object(r["ref"])([]),m=Object(r["ref"])([]),v=Object(r["ref"])(null),g=Object(r["ref"])(null),_=Object(r["ref"])(0),y=Object(r["ref"])(!1),b=Object(r["ref"])(0);Object(r["onMounted"])(()=>{var e;y.value=!0,(null==(e=o.presetRanges)||!e.length)&&!d["left-sidebar"]&&!d["right-sidebar"]&&(ne(),window.addEventListener("resize",ne));const t=ka(g);if(t&&!o.textInput&&!o.inline&&(i(!0),I()),t){const e=e=>{o.allowPreventDefault&&e.preventDefault(),e.stopImmediatePropagation(),e.stopPropagation()};t.addEventListener("pointerdown",e),t.addEventListener("mousedown",e)}}),Object(r["onUnmounted"])(()=>{window.removeEventListener("resize",ne)});const{arrowRight:O,arrowLeft:M,arrowDown:k,arrowUp:C}=$a(),w=e=>{e||0===e?m.value[e].triggerTransition(D.value(e),L.value(e)):m.value.forEach((e,t)=>e.triggerTransition(D.value(t),L.value(t)))},I=()=>{const e=ka(g);e&&e.focus({preventScroll:!0})},S=()=>{var e;null!=(e=o.flow)&&e.length&&-1!==b.value&&(b.value+=1,n("flow-step",b.value),_e())},T=()=>{b.value=-1},{calendars:E,modelValue:j,month:D,year:L,time:A,updateTime:N,updateMonthYear:x,selectDate:R,getWeekNum:P,monthYearSelect:U,handleScroll:V,handleArrow:B,handleSwipe:F,getMarker:G,selectCurrentDate:z,presetDateRange:H}=Za(o,n,S,w,b),{setHoverDate:Y,clearHoverDate:q,getDayClassData:W}=rs(j,o),K={modelValue:j,month:D,year:L,time:A,updateTime:N,updateMonthYear:x,selectDate:R,presetDateRange:H,handleMonthYearChange:e=>{h.value[0]&&h.value[0].handleMonthYearChange(e)}};Object(r["watch"])(E,()=>{o.openOnTop&&setTimeout(()=>{n("recalculate-position")},0)},{deep:!0});const $=si(d,"calendar"),J=si(d,"action"),Q=si(d,"timePicker"),X=si(d,"monthYear"),Z=Object(r["computed"])(()=>o.openOnTop?"dp__arrow_bottom":"dp__arrow_top"),ee=Object(r["computed"])(()=>ba(o.yearRange,o.reverseYears)),te=Object(r["computed"])(()=>Oa(o.formatLocale,o.locale,o.monthNameFormat)),ne=()=>{const e=ka(p);e&&(_.value=e.getBoundingClientRect().width)},re=Object(r["computed"])(()=>e=>l(D.value(e),L.value(e))),oe=Object(r["computed"])(()=>u.value.multiCalendars>0?[...Array(u.value.multiCalendars).keys()]:[0]),ae=Object(r["computed"])(()=>e=>1===e),ie=Object(r["computed"])(()=>o.monthPicker||o.timePicker||o.yearPicker),se=Object(r["computed"])(()=>({dp__menu_inner:!0,dp__flex_display:u.value.multiCalendars>0})),ce=Object(r["computed"])(()=>({dp__instance_calendar:u.value.multiCalendars>0})),le=Object(r["computed"])(()=>({dp__menu_disabled:o.disabled,dp__menu_readonly:o.readonly})),ue=Object(r["computed"])(()=>e=>pe(re,e)),de=Object(r["computed"])(()=>({dp__menu:!0,dp__menu_index:!o.inline,dp__relative:o.inline,[o.menuClassName]:!!o.menuClassName})),pe=(e,t)=>e.value(t).map(e=>({...e,days:e.days.map(e=>(e.marker=G(e),e.classData=W(e),e))})),fe=e=>{e.stopPropagation(),e.stopImmediatePropagation()},he=()=>{o.escClose&&n("close-picker")},me=(e,t=!1)=>{R(e,t),o.spaceConfirm&&n("select-date")},ve=e=>{var t;null!=(t=o.flow)&&t.length&&(f[e]=!0,Object.keys(f).filter(e=>!f[e]).length||_e())},ge=(e,t,n,r,...a)=>{if(o.flow[b.value]===e){const e=r?t.value[0]:t.value;e&&e[n](...a)}},_e=()=>{ge("month",h,"toggleMonthPicker",!0,!0),ge("year",h,"toggleYearPicker",!0,!0),ge("calendar",v,"toggleTimePicker",!1,!1,!0),ge("time",v,"toggleTimePicker",!1,!0,!0);const e=o.flow[b.value];("hours"===e||"minutes"===e||"seconds"===e)&&ge(e,v,"toggleTimePicker",!1,!0,!0,e)},ye=e=>{if(o.arrowNavigation){if("up"===e)return C();if("down"===e)return k();if("left"===e)return M();if("right"===e)return O()}else"left"===e||"up"===e?B("left",0,"up"===e):B("right",0,"down"===e)},be=e=>{s(e.shiftKey),!o.disableMonthYearSelect&&"Tab"===e.code&&e.target.classList.contains("dp__menu")&&c.value.shiftKeyInMenu&&(e.preventDefault(),e.stopImmediatePropagation(),n("close-picker"))},Oe=()=>{I(),n("time-picker-close")},Me=e=>{var t,n,r,o,a;null==(t=v.value)||t.toggleTimePicker(!1,!1),null==(r=null==(n=h.value)?void 0:n[e])||r.toggleMonthPicker(!1,!1),null==(a=null==(o=h.value)?void 0:o[e])||a.toggleYearPicker(!1,!1)};return t({updateMonthYear:x,switchView:(e,t=0)=>{var n,r,o,a,i;return"month"===e?null==(r=null==(n=h.value)?void 0:n[t])?void 0:r.toggleMonthPicker(!1,!0):"year"===e?null==(a=null==(o=h.value)?void 0:o[t])?void 0:a.toggleYearPicker(!1,!0):"time"===e?null==(i=v.value)?void 0:i.toggleTimePicker(!0,!1):Me(t)}}),(t,n)=>{var o;return Object(r["openBlock"])(),Object(r["createBlock"])(r["Transition"],{appear:"",name:null==(o=Object(r["unref"])(u).transitions)?void 0:o.menuAppear,css:!!t.transitions},{default:Object(r["withCtx"])(()=>{var o,i;return[Object(r["createElementVNode"])("div",{id:t.uid?"dp-menu-"+t.uid:void 0,tabindex:"0",ref_key:"dpMenuRef",ref:g,role:"dialog",class:Object(r["normalizeClass"])(de.value),onMouseleave:n[14]||(n[14]=(...e)=>Object(r["unref"])(q)&&Object(r["unref"])(q)(...e)),onClick:fe,onKeydown:[Object(r["withKeys"])(he,["esc"]),n[15]||(n[15]=Object(r["withKeys"])(Object(r["withModifiers"])(e=>ye("left"),["prevent"]),["left"])),n[16]||(n[16]=Object(r["withKeys"])(Object(r["withModifiers"])(e=>ye("up"),["prevent"]),["up"])),n[17]||(n[17]=Object(r["withKeys"])(Object(r["withModifiers"])(e=>ye("down"),["prevent"]),["down"])),n[18]||(n[18]=Object(r["withKeys"])(Object(r["withModifiers"])(e=>ye("right"),["prevent"]),["right"])),be]},[(t.disabled||t.readonly)&&t.inline?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{key:0,class:Object(r["normalizeClass"])(le.value)},null,2)):Object(r["createCommentVNode"])("",!0),t.inline||t.teleportCenter?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{key:1,class:Object(r["normalizeClass"])(Z.value)},null,2)),Object(r["createElementVNode"])("div",{class:Object(r["normalizeClass"])({dp__menu_content_wrapper:(null==(o=t.presetRanges)?void 0:o.length)||!!t.$slots["left-sidebar"]||!!t.$slots["right-sidebar"]})},[t.$slots["left-sidebar"]?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",as,[Object(r["renderSlot"])(t.$slots,"left-sidebar",Object(r["normalizeProps"])(Object(r["guardReactiveProps"])(K)))])):Object(r["createCommentVNode"])("",!0),null!=(i=t.presetRanges)&&i.length?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",is,[(Object(r["openBlock"])(!0),Object(r["createElementBlock"])(r["Fragment"],null,Object(r["renderList"])(t.presetRanges,(e,n)=>(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{key:n,style:Object(r["normalizeStyle"])(e.style||{}),class:"dp__preset_range",onClick:t=>Object(r["unref"])(H)(e.range,!!e.slot)},[e.slot?Object(r["renderSlot"])(t.$slots,e.slot,{key:0,presetDateRange:Object(r["unref"])(H),label:e.label,range:e.range}):(Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],{key:1},[Object(r["createTextVNode"])(Object(r["toDisplayString"])(e.label),1)],64))],12,ss))),128))])):Object(r["createCommentVNode"])("",!0),Object(r["createElementVNode"])("div",{class:"dp__instance_calendar",ref_key:"calendarWrapperRef",ref:p,role:"document"},[Object(r["createElementVNode"])("div",{class:Object(r["normalizeClass"])(se.value)},[(Object(r["openBlock"])(!0),Object(r["createElementBlock"])(r["Fragment"],null,Object(r["renderList"])(oe.value,(o,i)=>(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{key:o,class:Object(r["normalizeClass"])(ce.value)},[t.disableMonthYearSelect||t.timePicker?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createBlock"])(Fi,Object(r["mergeProps"])({key:0,ref_for:!0,ref:e=>{e&&(h.value[i]=e)},months:te.value,years:ee.value,month:Object(r["unref"])(D)(o),year:Object(r["unref"])(L)(o),instance:o,"internal-model-value":e.internalModelValue},a.value,{onMount:n[0]||(n[0]=e=>ve("monthYearInput")),onResetFlow:T,onUpdateMonthYear:e=>Object(r["unref"])(x)(o,e),onMonthYearSelect:Object(r["unref"])(U),onOverlayClosed:I}),Object(r["createSlots"])({_:2},[Object(r["renderList"])(Object(r["unref"])(X),(e,n)=>({name:e,fn:Object(r["withCtx"])(n=>[Object(r["renderSlot"])(t.$slots,e,Object(r["normalizeProps"])(Object(r["guardReactiveProps"])(n)))])}))]),1040,["months","years","month","year","instance","internal-model-value","onUpdateMonthYear","onMonthYearSelect"])),Object(r["createVNode"])(Ii,Object(r["mergeProps"])({ref_for:!0,ref:e=>{e&&(m.value[i]=e)},"specific-mode":ie.value,"get-week-num":Object(r["unref"])(P),instance:o,"mapped-dates":ue.value(o),month:Object(r["unref"])(D)(o),year:Object(r["unref"])(L)(o)},a.value,{onSelectDate:e=>Object(r["unref"])(R)(e,!ae.value(o)),onHandleSpace:e=>me(e,!ae.value(o)),onSetHoverDate:n[1]||(n[1]=e=>Object(r["unref"])(Y)(e)),onHandleScroll:e=>Object(r["unref"])(V)(e,o),onHandleSwipe:e=>Object(r["unref"])(F)(e,o),onMount:n[2]||(n[2]=e=>ve("calendar")),onResetFlow:T,onTooltipOpen:n[3]||(n[3]=e=>t.$emit("tooltip-open",e)),onTooltipClose:n[4]||(n[4]=e=>t.$emit("tooltip-close",e))}),Object(r["createSlots"])({_:2},[Object(r["renderList"])(Object(r["unref"])($),(e,n)=>({name:e,fn:Object(r["withCtx"])(n=>[Object(r["renderSlot"])(t.$slots,e,Object(r["normalizeProps"])(Object(r["guardReactiveProps"])({...n})))])}))]),1040,["specific-mode","get-week-num","instance","mapped-dates","month","year","onSelectDate","onHandleSpace","onHandleScroll","onHandleSwipe"])],2))),128))],2),Object(r["createElementVNode"])("div",null,[t.$slots["time-picker"]?Object(r["renderSlot"])(t.$slots,"time-picker",Object(r["normalizeProps"])(Object(r["mergeProps"])({key:0},{time:Object(r["unref"])(A),updateTime:Object(r["unref"])(N)}))):(Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],{key:1},[!t.enableTimePicker||t.monthPicker||t.weekPicker?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createBlock"])(ns,Object(r["mergeProps"])({key:0,ref_key:"timePickerRef",ref:v,hours:Object(r["unref"])(A).hours,minutes:Object(r["unref"])(A).minutes,seconds:Object(r["unref"])(A).seconds,"internal-model-value":e.internalModelValue},a.value,{onMount:n[5]||(n[5]=e=>ve("timePicker")),"onUpdate:hours":n[6]||(n[6]=e=>Object(r["unref"])(N)(e)),"onUpdate:minutes":n[7]||(n[7]=e=>Object(r["unref"])(N)(e,!1)),"onUpdate:seconds":n[8]||(n[8]=e=>Object(r["unref"])(N)(e,!1,!0)),onResetFlow:T,onOverlayClosed:Oe,onOverlayOpened:n[9]||(n[9]=e=>t.$emit("time-picker-open",e)),onAmPmChange:n[10]||(n[10]=e=>t.$emit("am-pm-change",e))}),Object(r["createSlots"])({_:2},[Object(r["renderList"])(Object(r["unref"])(Q),(e,n)=>({name:e,fn:Object(r["withCtx"])(n=>[Object(r["renderSlot"])(t.$slots,e,Object(r["normalizeProps"])(Object(r["guardReactiveProps"])(n)))])}))]),1040,["hours","minutes","seconds","internal-model-value"]))],64))])],512),t.$slots["right-sidebar"]?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",cs,[Object(r["renderSlot"])(t.$slots,"right-sidebar",Object(r["normalizeProps"])(Object(r["guardReactiveProps"])(K)))])):Object(r["createCommentVNode"])("",!0),t.$slots["action-extra"]?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",ls,[t.$slots["action-extra"]?Object(r["renderSlot"])(t.$slots,"action-extra",{key:0,selectCurrentDate:Object(r["unref"])(z)}):Object(r["createCommentVNode"])("",!0)])):Object(r["createCommentVNode"])("",!0)],2),!t.autoApply||t.keepActionRow?(Object(r["openBlock"])(),Object(r["createBlock"])(gi,Object(r["mergeProps"])({key:2,"menu-mount":y.value,"calendar-width":_.value,"internal-model-value":e.internalModelValue},a.value,{onClosePicker:n[11]||(n[11]=e=>t.$emit("close-picker")),onSelectDate:n[12]||(n[12]=e=>t.$emit("select-date")),onInvalidSelect:n[13]||(n[13]=e=>t.$emit("invalid-select")),onSelectNow:Object(r["unref"])(z)}),Object(r["createSlots"])({_:2},[Object(r["renderList"])(Object(r["unref"])(J),(e,n)=>({name:e,fn:Object(r["withCtx"])(n=>[Object(r["renderSlot"])(t.$slots,e,Object(r["normalizeProps"])(Object(r["guardReactiveProps"])({...n})))])}))]),1040,["menu-mount","calendar-width","internal-model-value","onSelectNow"])):Object(r["createCommentVNode"])("",!0)],42,os)]}),_:3},8,["name","css"])}}}),ds=typeof window<"u"?window:void 0,ps=()=>{},fs=e=>!!Object(r["getCurrentScope"])()&&(Object(r["onScopeDispose"])(e),!0),hs=(e,t,n,o)=>{if(!e)return ps;let a=ps;const i=Object(r["watch"])(()=>Object(r["unref"])(e),e=>{a(),e&&(e.addEventListener(t,n,o),a=()=>{e.removeEventListener(t,n,o),a=ps})},{immediate:!0,flush:"post"}),s=()=>{i(),a()};return fs(s),s},ms=(e,t,n,r={})=>{const{window:o=ds,event:a="pointerdown"}=r;return o?hs(o,a,r=>{const o=ka(e),a=ka(t);!o||!a||o===r.target||r.composedPath().includes(o)||r.composedPath().includes(a)||n(r)},{passive:!0}):void 0},vs=Object(r["defineComponent"])({__name:"VueDatePicker",props:{...li},emits:["update:model-value","text-submit","closed","cleared","open","focus","blur","internal-model-change","recalculate-position","flow-step","update-month-year","invalid-select","invalid-fixed-range","tooltip-open","tooltip-close","time-picker-open","time-picker-close","am-pm-change","range-start","range-end"],setup(e,{expose:t,emit:n}){const o=e,a=Object(r["useSlots"])(),i=Object(r["ref"])(!1),s=Object(r["toRef"])(o,"modelValue"),c=Object(r["toRef"])(o,"timezone"),l=Object(r["ref"])(null),u=Object(r["ref"])(null),d=Object(r["ref"])(!1),p=Object(r["ref"])(null),f=Object(r["reactive"])({disabledDates:null,allowedDates:null,highlightedDates:null}),{setMenuFocused:h,setShiftKey:m}=go(),{clearArrowNav:v}=$a(),{validateDate:g,isValidTime:_,defaults:y,mapDatesArrToMap:b}=Ba(o);Object(r["onMounted"])(()=>{D(o.modelValue),o.inline||(T(p.value).addEventListener("scroll",U),window.addEventListener("resize",V)),o.inline&&(i.value=!0),b(f)}),Object(r["onUnmounted"])(()=>{if(!o.inline){const e=T(p.value);e&&e.removeEventListener("scroll",U),window.removeEventListener("resize",V)}});const O=si(a,"all",o.presetRanges),M=si(a,"input");Object(r["watch"])([s,c],()=>{D(s.value)},{deep:!0});const{openOnTop:k,menuStyle:C,resetPosition:w,setMenuPosition:I,setInitialPosition:S,getScrollableParent:T}=ri(l,u,n,o),{inputValue:E,internalModelValue:j,parseExternalModelValue:D,emitModelValue:L,formatInputValue:A,checkBeforeEmit:N}=ei(n,o,d),x=Object(r["computed"])(()=>({dp__main:!0,dp__theme_dark:o.dark,dp__theme_light:!o.dark,dp__flex_display:o.inline,dp__flex_display_with_input:o.inlineWithInput})),R=Object(r["computed"])(()=>o.dark?"dp__theme_dark":"dp__theme_light"),P=Object(r["computed"])(()=>o.teleport?{to:"boolean"==typeof o.teleport?"body":o.teleport,disabled:o.inline}:{class:"dp__outer_menu_wrap"}),U=()=>{i.value&&(o.closeOnScroll?K():I())},V=()=>{i.value&&I()},B=async()=>{var e,t,a;!o.disabled&&!o.readonly&&(w(),await Object(r["nextTick"])(),i.value=!0,await Object(r["nextTick"])(),S(),await Object(r["nextTick"])(),I(),delete C.value.opacity,!(null!=(e=y.value.transitions)&&e.menuAppear)&&o.transitions&&(null==(a=null==(t=l.value)?void 0:t.$el)||a.classList.add("dp__menu_transitioned")),i.value&&n("open"),i.value||W(),D(o.modelValue))},F=()=>{E.value="",W(),n("update:model-value",null),n("cleared"),o.closeOnClearValue&&K()},G=()=>{const e=j.value;return!(e&&(Array.isArray(e)||!g(e)))||!!Array.isArray(e)&&(!(2!==e.length||!g(e[0])||!g(e[1]))||g(e[0]))},z=()=>{N()&&G()?(L(),K()):n("invalid-select",j.value)},H=e=>{Y(),L(),o.closeOnAutoApply&&!e&&K()},Y=()=>{u.value&&o.textInput&&u.value.setParsedDate(j.value)},q=(e=!1)=>{o.autoApply&&_(j.value)&&G()&&(o.range&&Array.isArray(j.value)?(o.partialRange||2===j.value.length)&&H(e):H(e))},W=()=>{o.textInput||(j.value=null)},K=()=>{o.inline||(i.value&&(i.value=!1,h(!1),m(!1),v(),n("closed"),S(),E.value&&D(s.value)),W())},$=(e,t)=>{e?(j.value=e,t&&(z(),n("text-submit"))):j.value=null},J=()=>{o.autoApply&&_(j.value)&&L(),Y()},Q=()=>i.value?K():B(),X=e=>{j.value=e},Z=()=>{o.textInput&&(d.value=!0,A()),n("focus")},ee=()=>{o.textInput&&(d.value=!1,D(o.modelValue)),n("blur")},te=e=>{l.value&&l.value.updateMonthYear(0,{month:Ta(e.month),year:Ta(e.year)})},ne=e=>{D(e||o.modelValue)},re=(e,t)=>{var n;null==(n=l.value)||n.switchView(e,t)};return ms(l,u,o.onClickOutside?()=>o.onClickOutside(G):K),t({closeMenu:K,selectDate:z,clearValue:F,openMenu:B,onScroll:U,formatInputValue:A,updateInternalModelValue:X,setMonthYear:te,parseModel:ne,switchView:re}),(e,t)=>(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{class:Object(r["normalizeClass"])(x.value),ref_key:"pickerWrapperRef",ref:p},[Object(r["createVNode"])(fi,Object(r["mergeProps"])({ref_key:"inputRef",ref:u,"is-menu-open":i.value,"input-value":Object(r["unref"])(E),"onUpdate:inputValue":t[0]||(t[0]=e=>Object(r["isRef"])(E)?E.value=e:null)},e.$props,{onClear:F,onOpen:B,onSetInputDate:$,onSetEmptyDate:Object(r["unref"])(L),onSelectDate:z,onToggle:Q,onClose:K,onFocus:Z,onBlur:ee,onRealBlur:t[1]||(t[1]=e=>d.value=!1)}),Object(r["createSlots"])({_:2},[Object(r["renderList"])(Object(r["unref"])(M),(t,n)=>({name:t,fn:Object(r["withCtx"])(n=>[Object(r["renderSlot"])(e.$slots,t,Object(r["normalizeProps"])(Object(r["guardReactiveProps"])(n)))])}))]),1040,["is-menu-open","input-value","onSetEmptyDate"]),i.value?(Object(r["openBlock"])(),Object(r["createBlock"])(Object(r["resolveDynamicComponent"])(e.teleport?r["Teleport"]:"div"),Object(r["normalizeProps"])(Object(r["mergeProps"])({key:0},P.value)),{default:Object(r["withCtx"])(()=>[i.value?(Object(r["openBlock"])(),Object(r["createBlock"])(us,Object(r["mergeProps"])({key:0,ref_key:"dpMenuRef",ref:l,class:R.value,style:e.inline?void 0:Object(r["unref"])(C),"open-on-top":Object(r["unref"])(k),"arr-map-values":f},e.$props,{"internal-model-value":Object(r["unref"])(j),"onUpdate:internalModelValue":t[2]||(t[2]=e=>Object(r["isRef"])(j)?j.value=e:null),onClosePicker:K,onSelectDate:z,onAutoApply:q,onTimeUpdate:J,onFlowStep:t[3]||(t[3]=t=>e.$emit("flow-step",t)),onUpdateMonthYear:t[4]||(t[4]=t=>e.$emit("update-month-year",t)),onInvalidSelect:t[5]||(t[5]=t=>e.$emit("invalid-select",Object(r["unref"])(j))),onInvalidFixedRange:t[6]||(t[6]=t=>e.$emit("invalid-fixed-range",t)),onRecalculatePosition:Object(r["unref"])(I),onTooltipOpen:t[7]||(t[7]=t=>e.$emit("tooltip-open",t)),onTooltipClose:t[8]||(t[8]=t=>e.$emit("tooltip-close",t)),onTimePickerOpen:t[9]||(t[9]=t=>e.$emit("time-picker-open",t)),onTimePickerClose:t[10]||(t[10]=t=>e.$emit("time-picker-close",t)),onAmPmChange:t[11]||(t[11]=t=>e.$emit("am-pm-change",t)),onRangeStart:t[12]||(t[12]=t=>e.$emit("range-start",t)),onRangeEnd:t[13]||(t[13]=t=>e.$emit("range-end",t))}),Object(r["createSlots"])({_:2},[Object(r["renderList"])(Object(r["unref"])(O),(t,n)=>({name:t,fn:Object(r["withCtx"])(n=>[Object(r["renderSlot"])(e.$slots,t,Object(r["normalizeProps"])(Object(r["guardReactiveProps"])({...n})))])}))]),1040,["class","style","open-on-top","arr-map-values","internal-model-value","onRecalculatePosition"])):Object(r["createCommentVNode"])("",!0)]),_:3},16)):Object(r["createCommentVNode"])("",!0)],2))}}),gs=(()=>{const e=vs;return e.install=t=>{t.component("Vue3DatePicker",e)},e})(),_s=Object.freeze(Object.defineProperty({__proto__:null,default:gs},Symbol.toStringTag,{value:"Module"}));Object.entries(_s).forEach(([e,t])=>{"default"!==e&&(gs[e]=t)})},5145:function(e,t,n){"use strict";n("9103");var r=n("78a2"),o=n("3ac6"),a=n("8f95"),i=n("0273"),s=n("7463"),c=n("0363"),l=c("toStringTag");for(var u in r){var d=o[u],p=d&&d.prototype;p&&a(p)!==l&&i(p,l,u),s[u]=s.Array}},5156:function(e,t,n){"use strict";var r="undefined"!==typeof Symbol&&Symbol,o=n("1696");e.exports=function(){return"function"===typeof r&&("function"===typeof Symbol&&("symbol"===typeof r("foo")&&("symbol"===typeof Symbol("bar")&&o())))}},"51b8":function(e,t,n){"use strict";var r=n("a5eb"),o=n("3ac6");r({global:!0,forced:o.globalThis!==o},{globalThis:o})},5202:function(e,t,n){"use strict";n.d(t,"a",(function(){return Mn})),n.d(t,"b",(function(){return kn}));var r=n("1ad4"),o=n("7c31"),a="top",i="bottom",s="right",c="left",l="auto",u=[a,i,s,c],d="start",p="end",f="clippingParents",h="viewport",m="popper",v="reference",g=u.reduce((function(e,t){return e.concat([t+"-"+d,t+"-"+p])}),[]),_=[].concat(u,[l]).reduce((function(e,t){return e.concat([t,t+"-"+d,t+"-"+p])}),[]),y="beforeRead",b="read",O="afterRead",M="beforeMain",k="main",C="afterMain",w="beforeWrite",I="write",S="afterWrite",T=[y,b,O,M,k,C,w,I,S];function E(e){return e?(e.nodeName||"").toLowerCase():null}function j(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function D(e){var t=j(e).Element;return e instanceof t||e instanceof Element}function L(e){var t=j(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function A(e){if("undefined"==typeof ShadowRoot)return!1;var t=j(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function N(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];!L(o)||!E(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 x(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]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]),i=a.reduce((function(e,t){return e[t]="",e}),{});!L(r)||!E(r)||(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}}var R={name:"applyStyles",enabled:!0,phase:"write",fn:N,effect:x,requires:["computeStyles"]};function P(e){return e.split("-")[0]}var U=Math.max,V=Math.min,B=Math.round;function F(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(L(e)&&t){var a=e.offsetHeight,i=e.offsetWidth;i>0&&(r=B(n.width)/i||1),a>0&&(o=B(n.height)/a||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 G(e){var t=F(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 z(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&A(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function H(e){return j(e).getComputedStyle(e)}function Y(e){return["table","td","th"].indexOf(E(e))>=0}function q(e){return((D(e)?e.ownerDocument:e.document)||window.document).documentElement}function W(e){return"html"===E(e)?e:e.assignedSlot||e.parentNode||(A(e)?e.host:null)||q(e)}function K(e){return L(e)&&"fixed"!==H(e).position?e.offsetParent:null}function $(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox"),n=-1!==navigator.userAgent.indexOf("Trident");if(n&&L(e)){var r=H(e);if("fixed"===r.position)return null}var o=W(e);for(A(o)&&(o=o.host);L(o)&&["html","body"].indexOf(E(o))<0;){var a=H(o);if("none"!==a.transform||"none"!==a.perspective||"paint"===a.contain||-1!==["transform","perspective"].indexOf(a.willChange)||t&&"filter"===a.willChange||t&&a.filter&&"none"!==a.filter)return o;o=o.parentNode}return null}function J(e){for(var t=j(e),n=K(e);n&&Y(n)&&"static"===H(n).position;)n=K(n);return n&&("html"===E(n)||"body"===E(n)&&"static"===H(n).position)?t:n||$(e)||t}function Q(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function X(e,t,n){return U(e,V(t,n))}function Z(e,t,n){var r=X(e,t,n);return r>n?n:r}function ee(){return{top:0,right:0,bottom:0,left:0}}function te(e){return Object.assign({},ee(),e)}function ne(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var re=function(e,t){return e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e,te("number"!=typeof e?e:ne(e,u))};function oe(e){var t,n=e.state,r=e.name,o=e.options,l=n.elements.arrow,u=n.modifiersData.popperOffsets,d=P(n.placement),p=Q(d),f=[c,s].indexOf(d)>=0,h=f?"height":"width";if(l&&u){var m=re(o.padding,n),v=G(l),g="y"===p?a:c,_="y"===p?i:s,y=n.rects.reference[h]+n.rects.reference[p]-u[p]-n.rects.popper[h],b=u[p]-n.rects.reference[p],O=J(l),M=O?"y"===p?O.clientHeight||0:O.clientWidth||0:0,k=y/2-b/2,C=m[g],w=M-v[h]-m[_],I=M/2-v[h]/2+k,S=X(C,I,w),T=p;n.modifiersData[r]=(t={},t[T]=S,t.centerOffset=S-I,t)}}function ae(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)||!z(t.elements.popper,o)||(t.elements.arrow=o))}var ie={name:"arrow",enabled:!0,phase:"main",fn:oe,effect:ae,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function se(e){return e.split("-")[1]}var ce={top:"auto",right:"auto",bottom:"auto",left:"auto"};function le(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:B(t*o)/o||0,y:B(n*o)/o||0}}function ue(e){var t,n=e.popper,r=e.popperRect,o=e.placement,l=e.variation,u=e.offsets,d=e.position,f=e.gpuAcceleration,h=e.adaptive,m=e.roundOffsets,v=e.isFixed,g=u.x,_=void 0===g?0:g,y=u.y,b=void 0===y?0:y,O="function"==typeof m?m({x:_,y:b}):{x:_,y:b};_=O.x,b=O.y;var M=u.hasOwnProperty("x"),k=u.hasOwnProperty("y"),C=c,w=a,I=window;if(h){var S=J(n),T="clientHeight",E="clientWidth";if(S===j(n)&&(S=q(n),"static"!==H(S).position&&"absolute"===d&&(T="scrollHeight",E="scrollWidth")),S=S,o===a||(o===c||o===s)&&l===p){w=i;var D=v&&S===I&&I.visualViewport?I.visualViewport.height:S[T];b-=D-r.height,b*=f?1:-1}if(o===c||(o===a||o===i)&&l===p){C=s;var L=v&&S===I&&I.visualViewport?I.visualViewport.width:S[E];_-=L-r.width,_*=f?1:-1}}var A,N=Object.assign({position:d},h&&ce),x=!0===m?le({x:_,y:b}):{x:_,y:b};return _=x.x,b=x.y,f?Object.assign({},N,(A={},A[w]=k?"0":"",A[C]=M?"0":"",A.transform=(I.devicePixelRatio||1)<=1?"translate("+_+"px, "+b+"px)":"translate3d("+_+"px, "+b+"px, 0)",A)):Object.assign({},N,(t={},t[w]=k?b+"px":"",t[C]=M?_+"px":"",t.transform="",t))}function de(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,a=n.adaptive,i=void 0===a||a,s=n.roundOffsets,c=void 0===s||s,l={placement:P(t.placement),variation:se(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,ue(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ue(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var pe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:de,data:{}},fe={passive:!0};function he(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=void 0===o||o,i=r.resize,s=void 0===i||i,c=j(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach((function(e){e.addEventListener("scroll",n.update,fe)})),s&&c.addEventListener("resize",n.update,fe),function(){a&&l.forEach((function(e){e.removeEventListener("scroll",n.update,fe)})),s&&c.removeEventListener("resize",n.update,fe)}}var me={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:he,data:{}},ve={left:"right",right:"left",bottom:"top",top:"bottom"};function ge(e){return e.replace(/left|right|bottom|top/g,(function(e){return ve[e]}))}var _e={start:"end",end:"start"};function ye(e){return e.replace(/start|end/g,(function(e){return _e[e]}))}function be(e){var t=j(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Oe(e){return F(q(e)).left+be(e).scrollLeft}function Me(e){var t=j(e),n=q(e),r=t.visualViewport,o=n.clientWidth,a=n.clientHeight,i=0,s=0;return r&&(o=r.width,a=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(i=r.offsetLeft,s=r.offsetTop)),{width:o,height:a,x:i+Oe(e),y:s}}function ke(e){var t,n=q(e),r=be(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=U(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=U(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+Oe(e),c=-r.scrollTop;return"rtl"===H(o||n).direction&&(s+=U(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:s,y:c}}function Ce(e){var t=H(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function we(e){return["html","body","#document"].indexOf(E(e))>=0?e.ownerDocument.body:L(e)&&Ce(e)?e:we(W(e))}function Ie(e,t){var n;void 0===t&&(t=[]);var r=we(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=j(r),i=o?[a].concat(a.visualViewport||[],Ce(r)?r:[]):r,s=t.concat(i);return o?s:s.concat(Ie(W(i)))}function Se(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Te(e){var t=F(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 Ee(e,t){return t===h?Se(Me(e)):D(t)?Te(t):Se(ke(q(e)))}function je(e){var t=Ie(W(e)),n=["absolute","fixed"].indexOf(H(e).position)>=0,r=n&&L(e)?J(e):e;return D(r)?t.filter((function(e){return D(e)&&z(e,r)&&"body"!==E(e)})):[]}function De(e,t,n){var r="clippingParents"===t?je(e):[].concat(t),o=[].concat(r,[n]),a=o[0],i=o.reduce((function(t,n){var r=Ee(e,n);return t.top=U(r.top,t.top),t.right=V(r.right,t.right),t.bottom=V(r.bottom,t.bottom),t.left=U(r.left,t.left),t}),Ee(e,a));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function Le(e){var t,n=e.reference,r=e.element,o=e.placement,l=o?P(o):null,u=o?se(o):null,f=n.x+n.width/2-r.width/2,h=n.y+n.height/2-r.height/2;switch(l){case a:t={x:f,y:n.y-r.height};break;case i:t={x:f,y:n.y+n.height};break;case s:t={x:n.x+n.width,y:h};break;case c:t={x:n.x-r.width,y:h};break;default:t={x:n.x,y:n.y}}var m=l?Q(l):null;if(null!=m){var v="y"===m?"height":"width";switch(u){case d:t[m]=t[m]-(n[v]/2-r[v]/2);break;case p:t[m]=t[m]+(n[v]/2-r[v]/2);break}}return t}function Ae(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,c=n.boundary,l=void 0===c?f:c,d=n.rootBoundary,p=void 0===d?h:d,g=n.elementContext,_=void 0===g?m:g,y=n.altBoundary,b=void 0!==y&&y,O=n.padding,M=void 0===O?0:O,k=te("number"!=typeof M?M:ne(M,u)),C=_===m?v:m,w=e.rects.popper,I=e.elements[b?C:_],S=De(D(I)?I:I.contextElement||q(e.elements.popper),l,p),T=F(e.elements.reference),E=Le({reference:T,element:w,strategy:"absolute",placement:o}),j=Se(Object.assign({},w,E)),L=_===m?j:T,A={top:S.top-L.top+k.top,bottom:L.bottom-S.bottom+k.bottom,left:S.left-L.left+k.left,right:L.right-S.right+k.right},N=e.modifiersData.offset;if(_===m&&N){var x=N[o];Object.keys(A).forEach((function(e){var t=[s,i].indexOf(e)>=0?1:-1,n=[a,i].indexOf(e)>=0?"y":"x";A[e]+=x[n]*t}))}return A}function Ne(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,i=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=void 0===c?_:c,d=se(r),p=d?s?g:g.filter((function(e){return se(e)===d})):u,f=p.filter((function(e){return l.indexOf(e)>=0}));0===f.length&&(f=p);var h=f.reduce((function(t,n){return t[n]=Ae(e,{placement:n,boundary:o,rootBoundary:a,padding:i})[P(n)],t}),{});return Object.keys(h).sort((function(e,t){return h[e]-h[t]}))}function xe(e){if(P(e)===l)return[];var t=ge(e);return[ye(e),t,ye(t)]}function Re(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,u=void 0===o||o,p=n.altAxis,f=void 0===p||p,h=n.fallbackPlacements,m=n.padding,v=n.boundary,g=n.rootBoundary,_=n.altBoundary,y=n.flipVariations,b=void 0===y||y,O=n.allowedAutoPlacements,M=t.options.placement,k=P(M),C=k===M,w=h||(C||!b?[ge(M)]:xe(M)),I=[M].concat(w).reduce((function(e,n){return e.concat(P(n)===l?Ne(t,{placement:n,boundary:v,rootBoundary:g,padding:m,flipVariations:b,allowedAutoPlacements:O}):n)}),[]),S=t.rects.reference,T=t.rects.popper,E=new Map,j=!0,D=I[0],L=0;L<I.length;L++){var A=I[L],N=P(A),x=se(A)===d,R=[a,i].indexOf(N)>=0,U=R?"width":"height",V=Ae(t,{placement:A,boundary:v,rootBoundary:g,altBoundary:_,padding:m}),B=R?x?s:c:x?i:a;S[U]>T[U]&&(B=ge(B));var F=ge(B),G=[];if(u&&G.push(V[N]<=0),f&&G.push(V[B]<=0,V[F]<=0),G.every((function(e){return e}))){D=A,j=!1;break}E.set(A,G)}if(j)for(var z=b?3:1,H=function(e){var t=I.find((function(t){var n=E.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return D=t,"break"},Y=z;Y>0;Y--){var q=H(Y);if("break"===q)break}t.placement!==D&&(t.modifiersData[r]._skip=!0,t.placement=D,t.reset=!0)}}var Pe={name:"flip",enabled:!0,phase:"main",fn:Re,requiresIfExists:["offset"],data:{_skip:!1}};function Ue(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 Ve(e){return[a,s,i,c].some((function(t){return e[t]>=0}))}function Be(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=Ae(t,{elementContext:"reference"}),s=Ae(t,{altBoundary:!0}),c=Ue(i,r),l=Ue(s,o,a),u=Ve(c),d=Ve(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}var Fe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Be};function Ge(e,t,n){var r=P(e),o=[c,a].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,l=i[0],u=i[1];return l=l||0,u=(u||0)*o,[c,s].indexOf(r)>=0?{x:u,y:l}:{x:l,y:u}}function ze(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=void 0===o?[0,0]:o,i=_.reduce((function(e,n){return e[n]=Ge(n,t.rects,a),e}),{}),s=i[t.placement],c=s.x,l=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=i}var He={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ze};function Ye(e){var t=e.state,n=e.name;t.modifiersData[n]=Le({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var qe={name:"popperOffsets",enabled:!0,phase:"read",fn:Ye,data:{}};function We(e){return"x"===e?"y":"x"}function Ke(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,l=void 0===o||o,u=n.altAxis,p=void 0!==u&&u,f=n.boundary,h=n.rootBoundary,m=n.altBoundary,v=n.padding,g=n.tether,_=void 0===g||g,y=n.tetherOffset,b=void 0===y?0:y,O=Ae(t,{boundary:f,rootBoundary:h,padding:v,altBoundary:m}),M=P(t.placement),k=se(t.placement),C=!k,w=Q(M),I=We(w),S=t.modifiersData.popperOffsets,T=t.rects.reference,E=t.rects.popper,j="function"==typeof b?b(Object.assign({},t.rects,{placement:t.placement})):b,D="number"==typeof j?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(S){if(l){var N,x="y"===w?a:c,R="y"===w?i:s,B="y"===w?"height":"width",F=S[w],z=F+O[x],H=F-O[R],Y=_?-E[B]/2:0,q=k===d?T[B]:E[B],W=k===d?-E[B]:-T[B],K=t.elements.arrow,$=_&&K?G(K):{width:0,height:0},te=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ee(),ne=te[x],re=te[R],oe=X(0,T[B],$[B]),ae=C?T[B]/2-Y-oe-ne-D.mainAxis:q-oe-ne-D.mainAxis,ie=C?-T[B]/2+Y+oe+re+D.mainAxis:W+oe+re+D.mainAxis,ce=t.elements.arrow&&J(t.elements.arrow),le=ce?"y"===w?ce.clientTop||0:ce.clientLeft||0:0,ue=null!=(N=null==L?void 0:L[w])?N:0,de=F+ae-ue-le,pe=F+ie-ue,fe=X(_?V(z,de):z,F,_?U(H,pe):H);S[w]=fe,A[w]=fe-F}if(p){var he,me="x"===w?a:c,ve="x"===w?i:s,ge=S[I],_e="y"===I?"height":"width",ye=ge+O[me],be=ge-O[ve],Oe=-1!==[a,c].indexOf(M),Me=null!=(he=null==L?void 0:L[I])?he:0,ke=Oe?ye:ge-T[_e]-E[_e]-Me+D.altAxis,Ce=Oe?ge+T[_e]+E[_e]-Me-D.altAxis:be,we=_&&Oe?Z(ke,ge,Ce):X(_?ke:ye,ge,_?Ce:be);S[I]=we,A[I]=we-ge}t.modifiersData[r]=A}}var $e={name:"preventOverflow",enabled:!0,phase:"main",fn:Ke,requiresIfExists:["offset"]};function Je(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Qe(e){return e!==j(e)&&L(e)?Je(e):be(e)}function Xe(e){var t=e.getBoundingClientRect(),n=B(t.width)/e.offsetWidth||1,r=B(t.height)/e.offsetHeight||1;return 1!==n||1!==r}function Ze(e,t,n){void 0===n&&(n=!1);var r=L(t),o=L(t)&&Xe(t),a=q(t),i=F(e,o),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&(("body"!==E(t)||Ce(a))&&(s=Qe(t)),L(t)?(c=F(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=Oe(a))),{x:i.left+s.scrollLeft-c.x,y:i.top+s.scrollTop-c.y,width:i.width,height:i.height}}function et(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name);var a=[].concat(e.requires||[],e.requiresIfExists||[]);a.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 tt(e){var t=et(e);return T.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}function nt(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}function rt(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 ot={placement:"bottom",modifiers:[],strategy:"absolute"};function at(){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 it(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,a=void 0===o?ot:o;return function(e,t,n){void 0===n&&(n=a);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},ot,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},i=[],s=!1,c={state:o,setOptions:function(n){var i="function"==typeof n?n(o.options):n;u(),o.options=Object.assign({},a,o.options,i),o.scrollParents={reference:D(e)?Ie(e):e.contextElement?Ie(e.contextElement):[],popper:Ie(t)};var s=tt(rt([].concat(r,o.options.modifiers)));return o.orderedModifiers=s.filter((function(e){return e.enabled})),l(),c.update()},forceUpdate:function(){if(!s){var e=o.elements,t=e.reference,n=e.popper;if(at(t,n)){o.rects={reference:Ze(t,J(n),"fixed"===o.options.strategy),popper:G(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 a=o.orderedModifiers[r],i=a.fn,l=a.options,u=void 0===l?{}:l,d=a.name;"function"==typeof i&&(o=i({state:o,options:u,name:d,instance:c})||o)}else o.reset=!1,r=-1}}},update:nt((function(){return new Promise((function(e){c.forceUpdate(),e(o)}))})),destroy:function(){u(),s=!0}};if(!at(e,t))return c;function l(){o.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,a=e.effect;if("function"==typeof a){var s=a({state:o,name:t,instance:c,options:r}),l=function(){};i.push(s||l)}}))}function u(){i.forEach((function(e){return e()})),i=[]}return c.setOptions(n).then((function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)})),c}}it();
|
||
/**!
|
||
* tippy.js v6.3.7
|
||
* (c) 2017-2021 atomiks
|
||
* MIT License
|
||
*/var st=[me,qe,pe,R],ct=(it({defaultModifiers:st}),[me,qe,pe,R,He,Pe,$e,ie,Fe]),lt=it({defaultModifiers:ct}),ut="tippy-box",dt="tippy-content",pt="tippy-backdrop",ft="tippy-arrow",ht="tippy-svg-arrow",mt={passive:!0,capture:!0},vt=function(){return document.body};function gt(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function _t(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function yt(e,t){return"function"===typeof e?e.apply(void 0,t):e}function bt(e,t){return 0===t?e:function(r){clearTimeout(n),n=setTimeout((function(){e(r)}),t)};var n}function Ot(e){return e.split(/\s+/).filter(Boolean)}function Mt(e){return[].concat(e)}function kt(e,t){-1===e.indexOf(t)&&e.push(t)}function Ct(e){return e.filter((function(t,n){return e.indexOf(t)===n}))}function wt(e){return e.split("-")[0]}function It(e){return[].slice.call(e)}function St(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function Tt(){return document.createElement("div")}function Et(e){return["Element","Fragment"].some((function(t){return _t(e,t)}))}function jt(e){return _t(e,"NodeList")}function Dt(e){return _t(e,"MouseEvent")}function Lt(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function At(e){return Et(e)?[e]:jt(e)?It(e):Array.isArray(e)?e:It(document.querySelectorAll(e))}function Nt(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function xt(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function Rt(e){var t,n=Mt(e),r=n[0];return null!=r&&null!=(t=r.ownerDocument)&&t.body?r.ownerDocument:document}function Pt(e,t){var n=t.clientX,r=t.clientY;return e.every((function(e){var t=e.popperRect,o=e.popperState,a=e.props,i=a.interactiveBorder,s=wt(o.placement),c=o.modifiersData.offset;if(!c)return!0;var l="bottom"===s?c.top.y:0,u="top"===s?c.bottom.y:0,d="right"===s?c.left.x:0,p="left"===s?c.right.x:0,f=t.top-r+l>i,h=r-t.bottom-u>i,m=t.left-n+d>i,v=n-t.right-p>i;return f||h||m||v}))}function Ut(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[r](t,n)}))}function Vt(e,t){var n=t;while(n){var r;if(e.contains(n))return!0;n=null==n.getRootNode||null==(r=n.getRootNode())?void 0:r.host}return!1}var Bt={isTouch:!1},Ft=0;function Gt(){Bt.isTouch||(Bt.isTouch=!0,window.performance&&document.addEventListener("mousemove",zt))}function zt(){var e=performance.now();e-Ft<20&&(Bt.isTouch=!1,document.removeEventListener("mousemove",zt)),Ft=e}function Ht(){var e=document.activeElement;if(Lt(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function Yt(){document.addEventListener("touchstart",Gt,mt),window.addEventListener("blur",Ht)}var qt="undefined"!==typeof window&&"undefined"!==typeof document,Wt=!!qt&&!!window.msCrypto;var Kt={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},$t={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},Jt=Object.assign({appendTo:vt,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},Kt,$t),Qt=Object.keys(Jt),Xt=function(e){var t=Object.keys(e);t.forEach((function(t){Jt[t]=e[t]}))};function Zt(e){var t=e.plugins||[],n=t.reduce((function(t,n){var r,o=n.name,a=n.defaultValue;o&&(t[o]=void 0!==e[o]?e[o]:null!=(r=Jt[o])?r:a);return t}),{});return Object.assign({},e,n)}function en(e,t){var n=t?Object.keys(Zt(Object.assign({},Jt,{plugins:t}))):Qt,r=n.reduce((function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(o){t[n]=r}return t}),{});return r}function tn(e,t){var n=Object.assign({},t,{content:yt(t.content,[e])},t.ignoreAttributes?{}:en(e,t.plugins));return n.aria=Object.assign({},Jt.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}var nn=function(){return"innerHTML"};function rn(e,t){e[nn()]=t}function on(e){var t=Tt();return!0===e?t.className=ft:(t.className=ht,Et(e)?t.appendChild(e):rn(t,e)),t}function an(e,t){Et(t.content)?(rn(e,""),e.appendChild(t.content)):"function"!==typeof t.content&&(t.allowHTML?rn(e,t.content):e.textContent=t.content)}function sn(e){var t=e.firstElementChild,n=It(t.children);return{box:t,content:n.find((function(e){return e.classList.contains(dt)})),arrow:n.find((function(e){return e.classList.contains(ft)||e.classList.contains(ht)})),backdrop:n.find((function(e){return e.classList.contains(pt)}))}}function cn(e){var t=Tt(),n=Tt();n.className=ut,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=Tt();function o(n,r){var o=sn(t),a=o.box,i=o.content,s=o.arrow;r.theme?a.setAttribute("data-theme",r.theme):a.removeAttribute("data-theme"),"string"===typeof r.animation?a.setAttribute("data-animation",r.animation):a.removeAttribute("data-animation"),r.inertia?a.setAttribute("data-inertia",""):a.removeAttribute("data-inertia"),a.style.maxWidth="number"===typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?a.setAttribute("role",r.role):a.removeAttribute("role"),n.content===r.content&&n.allowHTML===r.allowHTML||an(i,e.props),r.arrow?s?n.arrow!==r.arrow&&(a.removeChild(s),a.appendChild(on(r.arrow))):a.appendChild(on(r.arrow)):s&&a.removeChild(s)}return r.className=dt,r.setAttribute("data-state","hidden"),an(r,e.props),t.appendChild(n),n.appendChild(r),o(e.props,e.props),{popper:t,onUpdate:o}}cn.$$tippy=!0;var ln=1,un=[],dn=[];function pn(e,t){var n,r,o,a,i,s,c,l=tn(e,Object.assign({},Jt,Zt(St(t)))),u=!1,d=!1,p=!1,f=!1,h=[],m=bt(J,l.interactiveDebounce),v=ln++,g=null,_=Ct(l.plugins),y={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},b={id:v,reference:e,popper:Tt(),popperInstance:g,props:l,state:y,plugins:_,clearDelayTimeouts:ce,setProps:le,setContent:ue,show:de,hide:pe,hideWithInteractivity:fe,enable:ie,disable:se,unmount:he,destroy:me};if(!l.render)return b;var O=l.render(b),M=O.popper,k=O.onUpdate;M.setAttribute("data-tippy-root",""),M.id="tippy-"+b.id,b.popper=M,e._tippy=b,M._tippy=b;var C=_.map((function(e){return e.fn(b)})),w=e.hasAttribute("aria-expanded");return W(),R(),A(),N("onCreate",[b]),l.showOnCreate&&oe(),M.addEventListener("mouseenter",(function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()})),M.addEventListener("mouseleave",(function(){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&j().addEventListener("mousemove",m)})),b;function I(){var e=b.props.touch;return Array.isArray(e)?e:[e,0]}function S(){return"hold"===I()[0]}function T(){var e;return!(null==(e=b.props.render)||!e.$$tippy)}function E(){return c||e}function j(){var e=E().parentNode;return e?Rt(e):document}function D(){return sn(M)}function L(e){return b.state.isMounted&&!b.state.isVisible||Bt.isTouch||a&&"focus"===a.type?0:gt(b.props.delay,e?0:1,Jt.delay)}function A(e){void 0===e&&(e=!1),M.style.pointerEvents=b.props.interactive&&!e?"":"none",M.style.zIndex=""+b.props.zIndex}function N(e,t,n){var r;(void 0===n&&(n=!0),C.forEach((function(n){n[e]&&n[e].apply(n,t)})),n)&&(r=b.props)[e].apply(r,t)}function x(){var t=b.props.aria;if(t.content){var n="aria-"+t.content,r=M.id,o=Mt(b.props.triggerTarget||e);o.forEach((function(e){var t=e.getAttribute(n);if(b.state.isVisible)e.setAttribute(n,t?t+" "+r:r);else{var o=t&&t.replace(r,"").trim();o?e.setAttribute(n,o):e.removeAttribute(n)}}))}}function R(){if(!w&&b.props.aria.expanded){var t=Mt(b.props.triggerTarget||e);t.forEach((function(e){b.props.interactive?e.setAttribute("aria-expanded",b.state.isVisible&&e===E()?"true":"false"):e.removeAttribute("aria-expanded")}))}}function P(){j().removeEventListener("mousemove",m),un=un.filter((function(e){return e!==m}))}function U(t){if(!Bt.isTouch||!p&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!b.props.interactive||!Vt(M,n)){if(Mt(b.props.triggerTarget||e).some((function(e){return Vt(e,n)}))){if(Bt.isTouch)return;if(b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else N("onClickOutside",[b,t]);!0===b.props.hideOnClick&&(b.clearDelayTimeouts(),b.hide(),d=!0,setTimeout((function(){d=!1})),b.state.isMounted||G())}}}function V(){p=!0}function B(){p=!1}function F(){var e=j();e.addEventListener("mousedown",U,!0),e.addEventListener("touchend",U,mt),e.addEventListener("touchstart",B,mt),e.addEventListener("touchmove",V,mt)}function G(){var e=j();e.removeEventListener("mousedown",U,!0),e.removeEventListener("touchend",U,mt),e.removeEventListener("touchstart",B,mt),e.removeEventListener("touchmove",V,mt)}function z(e,t){Y(e,(function(){!b.state.isVisible&&M.parentNode&&M.parentNode.contains(M)&&t()}))}function H(e,t){Y(e,t)}function Y(e,t){var n=D().box;function r(e){e.target===n&&(Ut(n,"remove",r),t())}if(0===e)return t();Ut(n,"remove",i),Ut(n,"add",r),i=r}function q(t,n,r){void 0===r&&(r=!1);var o=Mt(b.props.triggerTarget||e);o.forEach((function(e){e.addEventListener(t,n,r),h.push({node:e,eventType:t,handler:n,options:r})}))}function W(){S()&&(q("touchstart",$,{passive:!0}),q("touchend",Q,{passive:!0})),Ot(b.props.trigger).forEach((function(e){if("manual"!==e)switch(q(e,$),e){case"mouseenter":q("mouseleave",Q);break;case"focus":q(Wt?"focusout":"blur",X);break;case"focusin":q("focusout",X);break}}))}function K(){h.forEach((function(e){var t=e.node,n=e.eventType,r=e.handler,o=e.options;t.removeEventListener(n,r,o)})),h=[]}function $(e){var t,n=!1;if(b.state.isEnabled&&!Z(e)&&!d){var r="focus"===(null==(t=a)?void 0:t.type);a=e,c=e.currentTarget,R(),!b.state.isVisible&&Dt(e)&&un.forEach((function(t){return t(e)})),"click"===e.type&&(b.props.trigger.indexOf("mouseenter")<0||u)&&!1!==b.props.hideOnClick&&b.state.isVisible?n=!0:oe(e),"click"===e.type&&(u=!n),n&&!r&&ae(e)}}function J(e){var t=e.target,n=E().contains(t)||M.contains(t);if("mousemove"!==e.type||!n){var r=re().concat(M).map((function(e){var t,n=e._tippy,r=null==(t=n.popperInstance)?void 0:t.state;return r?{popperRect:e.getBoundingClientRect(),popperState:r,props:l}:null})).filter(Boolean);Pt(r,e)&&(P(),ae(e))}}function Q(e){var t=Z(e)||b.props.trigger.indexOf("click")>=0&&u;t||(b.props.interactive?b.hideWithInteractivity(e):ae(e))}function X(e){b.props.trigger.indexOf("focusin")<0&&e.target!==E()||b.props.interactive&&e.relatedTarget&&M.contains(e.relatedTarget)||ae(e)}function Z(e){return!!Bt.isTouch&&S()!==e.type.indexOf("touch")>=0}function ee(){te();var t=b.props,n=t.popperOptions,r=t.placement,o=t.offset,a=t.getReferenceClientRect,i=t.moveTransition,c=T()?sn(M).arrow:null,l=a?{getBoundingClientRect:a,contextElement:a.contextElement||E()}:e,u={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(T()){var n=D(),r=n.box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?r.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?r.setAttribute("data-"+e,""):r.removeAttribute("data-"+e)})),t.attributes.popper={}}}},d=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!i}},u];T()&&c&&d.push({name:"arrow",options:{element:c,padding:3}}),d.push.apply(d,(null==n?void 0:n.modifiers)||[]),b.popperInstance=lt(l,M,Object.assign({},n,{placement:r,onFirstUpdate:s,modifiers:d}))}function te(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function ne(){var e,t=b.props.appendTo,n=E();e=b.props.interactive&&t===vt||"parent"===t?n.parentNode:yt(t,[n]),e.contains(M)||e.appendChild(M),b.state.isMounted=!0,ee()}function re(){return It(M.querySelectorAll("[data-tippy-root]"))}function oe(e){b.clearDelayTimeouts(),e&&N("onTrigger",[b,e]),F();var t=L(!0),r=I(),o=r[0],a=r[1];Bt.isTouch&&"hold"===o&&a&&(t=a),t?n=setTimeout((function(){b.show()}),t):b.show()}function ae(e){if(b.clearDelayTimeouts(),N("onUntrigger",[b,e]),b.state.isVisible){if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&u)){var t=L(!1);t?r=setTimeout((function(){b.state.isVisible&&b.hide()}),t):o=requestAnimationFrame((function(){b.hide()}))}}else G()}function ie(){b.state.isEnabled=!0}function se(){b.hide(),b.state.isEnabled=!1}function ce(){clearTimeout(n),clearTimeout(r),cancelAnimationFrame(o)}function le(t){if(!b.state.isDestroyed){N("onBeforeUpdate",[b,t]),K();var n=b.props,r=tn(e,Object.assign({},n,St(t),{ignoreAttributes:!0}));b.props=r,W(),n.interactiveDebounce!==r.interactiveDebounce&&(P(),m=bt(J,r.interactiveDebounce)),n.triggerTarget&&!r.triggerTarget?Mt(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):r.triggerTarget&&e.removeAttribute("aria-expanded"),R(),A(),k&&k(n,r),b.popperInstance&&(ee(),re().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)}))),N("onAfterUpdate",[b,t])}}function ue(e){b.setProps({content:e})}function de(){var e=b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,r=Bt.isTouch&&!b.props.touch,o=gt(b.props.duration,0,Jt.duration);if(!(e||t||n||r)&&!E().hasAttribute("disabled")&&(N("onShow",[b],!1),!1!==b.props.onShow(b))){if(b.state.isVisible=!0,T()&&(M.style.visibility="visible"),A(),F(),b.state.isMounted||(M.style.transition="none"),T()){var a=D(),i=a.box,c=a.content;Nt([i,c],0)}s=function(){var e;if(b.state.isVisible&&!f){if(f=!0,M.offsetHeight,M.style.transition=b.props.moveTransition,T()&&b.props.animation){var t=D(),n=t.box,r=t.content;Nt([n,r],o),xt([n,r],"visible")}x(),R(),kt(dn,b),null==(e=b.popperInstance)||e.forceUpdate(),N("onMount",[b]),b.props.animation&&T()&&H(o,(function(){b.state.isShown=!0,N("onShown",[b])}))}},ne()}}function pe(){var e=!b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,r=gt(b.props.duration,1,Jt.duration);if(!(e||t||n)&&(N("onHide",[b],!1),!1!==b.props.onHide(b))){if(b.state.isVisible=!1,b.state.isShown=!1,f=!1,u=!1,T()&&(M.style.visibility="hidden"),P(),G(),A(!0),T()){var o=D(),a=o.box,i=o.content;b.props.animation&&(Nt([a,i],r),xt([a,i],"hidden"))}x(),R(),b.props.animation?T()&&z(r,b.unmount):b.unmount()}}function fe(e){j().addEventListener("mousemove",m),kt(un,m),m(e)}function he(){b.state.isVisible&&b.hide(),b.state.isMounted&&(te(),re().forEach((function(e){e._tippy.unmount()})),M.parentNode&&M.parentNode.removeChild(M),dn=dn.filter((function(e){return e!==b})),b.state.isMounted=!1,N("onHidden",[b]))}function me(){b.state.isDestroyed||(b.clearDelayTimeouts(),b.unmount(),K(),delete e._tippy,b.state.isDestroyed=!0,N("onDestroy",[b]))}}function fn(e,t){void 0===t&&(t={});var n=Jt.plugins.concat(t.plugins||[]);Yt();var r=Object.assign({},t,{plugins:n}),o=At(e),a=o.reduce((function(e,t){var n=t&&pn(t,r);return n&&e.push(n),e}),[]);return Et(e)?a[0]:a}fn.defaultProps=Jt,fn.setDefaultProps=Xt,fn.currentInput=Bt;Object.assign({},R,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}});fn.setDefaultProps({render:cn});var hn=fn;class mn{constructor({editor:e,element:t,view:n,tippyOptions:o={},updateDelay:a=250,shouldShow:i}){this.preventHide=!1,this.shouldShow=({view:e,state:t,from:n,to:o})=>{const{doc:a,selection:i}=t,{empty:s}=i,c=!a.textBetween(n,o).length&&Object(r["g"])(t.selection),l=this.element.contains(document.activeElement),u=e.hasFocus()||l;return!(!u||s||c||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:e})=>{var t;this.preventHide?this.preventHide=!1:(null===e||void 0===e?void 0:e.relatedTarget)&&(null===(t=this.element.parentNode)||void 0===t?void 0:t.contains(e.relatedTarget))||this.hide()},this.tippyBlurHandler=e=>{this.blurHandler({event:e})},this.handleDebouncedUpdate=(e,t)=>{const n=!(null===t||void 0===t?void 0:t.selection.eq(e.state.selection)),r=!(null===t||void 0===t?void 0:t.doc.eq(e.state.doc));(n||r)&&(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(e,n,r,t)},this.updateDelay))},this.updateHandler=(e,t,n,o)=>{var a,i,s;const{state:c,composing:l}=e,{selection:u}=c,d=!t&&!n;if(l||d)return;this.createTooltip();const{ranges:p}=u,f=Math.min(...p.map(e=>e.$from.pos)),h=Math.max(...p.map(e=>e.$to.pos)),m=null===(a=this.shouldShow)||void 0===a?void 0:a.call(this,{editor:this.editor,view:e,state:c,oldState:o,from:f,to:h});m?(null===(i=this.tippy)||void 0===i||i.setProps({getReferenceClientRect:(null===(s=this.tippyOptions)||void 0===s?void 0:s.getReferenceClientRect)||(()=>{if(Object(r["f"])(c.selection)){let t=e.nodeDOM(f);const n=t.dataset.nodeViewWrapper?t:t.querySelector("[data-node-view-wrapper]");if(n&&(t=n.firstChild),t)return t.getBoundingClientRect()}return Object(r["j"])(e,f,h)})}),this.show()):this.hide()},this.editor=e,this.element=t,this.view=n,this.updateDelay=a,i&&(this.shouldShow=i),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=o,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:e}=this.editor.options,t=!!e.parentElement;!this.tippy&&t&&(this.tippy=hn(e,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"top",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(e,t){const{state:n}=e,r=n.selection.$from.pos!==n.selection.$to.pos;if(this.updateDelay>0&&r)return void this.handleDebouncedUpdate(e,t);const o=!(null===t||void 0===t?void 0:t.selection.eq(e.state.selection)),a=!(null===t||void 0===t?void 0:t.doc.eq(e.state.doc));this.updateHandler(e,o,a,t)}show(){var e;null===(e=this.tippy)||void 0===e||e.show()}hide(){var e;null===(e=this.tippy)||void 0===e||e.hide()}destroy(){var e,t;(null===(e=this.tippy)||void 0===e?void 0:e.popper.firstChild)&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),null===(t=this.tippy)||void 0===t||t.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const vn=e=>new o["c"]({key:"string"===typeof e.pluginKey?new o["d"](e.pluginKey):e.pluginKey,view:t=>new mn({view:t,...e})});r["b"].create({name:"bubbleMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"bubbleMenu",updateDelay:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[vn({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,updateDelay:this.options.updateDelay,shouldShow:this.options.shouldShow})]:[]}});var gn=n("7a23");class _n{constructor({editor:e,element:t,view:n,tippyOptions:r={},shouldShow:o}){this.preventHide=!1,this.shouldShow=({view:e,state:t})=>{const{selection:n}=t,{$anchor:r,empty:o}=n,a=1===r.depth,i=r.parent.isTextblock&&!r.parent.type.spec.code&&!r.parent.textContent;return!!(e.hasFocus()&&o&&a&&i&&this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:e})=>{var t;this.preventHide?this.preventHide=!1:(null===e||void 0===e?void 0:e.relatedTarget)&&(null===(t=this.element.parentNode)||void 0===t?void 0:t.contains(e.relatedTarget))||this.hide()},this.tippyBlurHandler=e=>{this.blurHandler({event:e})},this.editor=e,this.element=t,this.view=n,o&&(this.shouldShow=o),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=r,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:e}=this.editor.options,t=!!e.parentElement;!this.tippy&&t&&(this.tippy=hn(e,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"right",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(e,t){var n,o,a;const{state:i}=e,{doc:s,selection:c}=i,{from:l,to:u}=c,d=t&&t.doc.eq(s)&&t.selection.eq(c);if(d)return;this.createTooltip();const p=null===(n=this.shouldShow)||void 0===n?void 0:n.call(this,{editor:this.editor,view:e,state:i,oldState:t});p?(null===(o=this.tippy)||void 0===o||o.setProps({getReferenceClientRect:(null===(a=this.tippyOptions)||void 0===a?void 0:a.getReferenceClientRect)||(()=>Object(r["j"])(e,l,u))}),this.show()):this.hide()}show(){var e;null===(e=this.tippy)||void 0===e||e.show()}hide(){var e;null===(e=this.tippy)||void 0===e||e.hide()}destroy(){var e,t;(null===(e=this.tippy)||void 0===e?void 0:e.popper.firstChild)&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),null===(t=this.tippy)||void 0===t||t.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const yn=e=>new o["c"]({key:"string"===typeof e.pluginKey?new o["d"](e.pluginKey):e.pluginKey,view:t=>new _n({view:t,...e})});r["b"].create({name:"floatingMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"floatingMenu",shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[yn({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,shouldShow:this.options.shouldShow})]:[]}}),Object(gn["defineComponent"])({name:"BubbleMenu",props:{pluginKey:{type:[String,Object],default:"bubbleMenu"},editor:{type:Object,required:!0},updateDelay:{type:Number,default:void 0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},setup(e,{slots:t}){const n=Object(gn["ref"])(null);return Object(gn["onMounted"])(()=>{const{updateDelay:t,editor:r,pluginKey:o,shouldShow:a,tippyOptions:i}=e;r.registerPlugin(vn({updateDelay:t,editor:r,element:n.value,pluginKey:o,shouldShow:a,tippyOptions:i}))}),Object(gn["onBeforeUnmount"])(()=>{const{pluginKey:t,editor:n}=e;n.unregisterPlugin(t)}),()=>{var e;return Object(gn["h"])("div",{ref:n},null===(e=t.default)||void 0===e?void 0:e.call(t))}}});function bn(e){return Object(gn["customRef"])((t,n)=>({get(){return t(),e},set(t){e=t,requestAnimationFrame(()=>{requestAnimationFrame(()=>{n()})})}}))}class On extends r["a"]{constructor(e={}){return super(e),this.vueRenderers=Object(gn["reactive"])(new Map),this.contentComponent=null,this.reactiveState=bn(this.view.state),this.reactiveExtensionStorage=bn(this.extensionStorage),this.on("transaction",()=>{this.reactiveState.value=this.view.state,this.reactiveExtensionStorage.value=this.extensionStorage}),Object(gn["markRaw"])(this)}get state(){return this.reactiveState?this.reactiveState.value:this.view.state}get storage(){return this.reactiveExtensionStorage?this.reactiveExtensionStorage.value:super.storage}registerPlugin(e,t){super.registerPlugin(e,t),this.reactiveState.value=this.view.state}unregisterPlugin(e){super.unregisterPlugin(e),this.reactiveState.value=this.view.state}}const Mn=Object(gn["defineComponent"])({name:"EditorContent",props:{editor:{default:null,type:Object}},setup(e){const t=Object(gn["ref"])(),n=Object(gn["getCurrentInstance"])();return Object(gn["watchEffect"])(()=>{const r=e.editor;r&&r.options.element&&t.value&&Object(gn["nextTick"])(()=>{if(!t.value||!r.options.element.firstChild)return;const e=Object(gn["unref"])(t.value);t.value.append(...r.options.element.childNodes),r.contentComponent=n.ctx._,r.setOptions({element:e}),r.createNodeViews()})}),Object(gn["onBeforeUnmount"])(()=>{const t=e.editor;if(!t)return;if(t.isDestroyed||t.view.setProps({nodeViews:{}}),t.contentComponent=null,!t.options.element.firstChild)return;const n=document.createElement("div");n.append(...t.options.element.childNodes),t.setOptions({element:n})}),{rootEl:t}},render(){const e=[];return this.editor&&this.editor.vueRenderers.forEach(t=>{const n=Object(gn["h"])(gn["Teleport"],{to:t.teleportElement,key:t.id},Object(gn["h"])(t.component,{ref:t.id,...t.props}));e.push(n)}),Object(gn["h"])("div",{ref:e=>{this.rootEl=e}},...e)}}),kn=(Object(gn["defineComponent"])({name:"FloatingMenu",props:{pluginKey:{type:null,default:"floatingMenu"},editor:{type:Object,required:!0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},setup(e,{slots:t}){const n=Object(gn["ref"])(null);return Object(gn["onMounted"])(()=>{const{pluginKey:t,editor:r,tippyOptions:o,shouldShow:a}=e;r.registerPlugin(yn({pluginKey:t,editor:r,element:n.value,tippyOptions:o,shouldShow:a}))}),Object(gn["onBeforeUnmount"])(()=>{const{pluginKey:t,editor:n}=e;n.unregisterPlugin(t)}),()=>{var e;return Object(gn["h"])("div",{ref:n},null===(e=t.default)||void 0===e?void 0:e.call(t))}}}),Object(gn["defineComponent"])({name:"NodeViewContent",props:{as:{type:String,default:"div"}},render(){return Object(gn["h"])(this.as,{style:{whiteSpace:"pre-wrap"},"data-node-view-content":""})}}),Object(gn["defineComponent"])({name:"NodeViewWrapper",props:{as:{type:String,default:"div"}},inject:["onDragStart","decorationClasses"],render(){var e,t;return Object(gn["h"])(this.as,{class:this.decorationClasses,style:{whiteSpace:"normal"},"data-node-view-wrapper":"",onDragstart:this.onDragStart},null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e))}}),(e={})=>{const t=Object(gn["shallowRef"])();return Object(gn["onMounted"])(()=>{t.value=new On(e)}),Object(gn["onBeforeUnmount"])(()=>{var e;null===(e=t.value)||void 0===e||e.destroy()}),t});Boolean;r["d"]},"522d":function(e,t,n){"use strict";var r=n("3ac6"),o=n("2874");o(r.JSON,"JSON",!0)},5270:function(e,t,n){"use strict";var r=n("c532"),o=n("c401"),a=n("2e67"),i=n("4c3d"),s=n("7a77");function c(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s("canceled")}e.exports=function(e){c(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]}));var t=e.adapter||i.adapter;return t(e).then((function(t){return c(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return a(t)||(c(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},5294:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],n=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"],r=e.defineLocale("ur",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}});return r}))},"52bd":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,t,n){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,t){return 12===e&&(e=0),"ekuseni"===t?e:"emini"===t?e>=11?e:e+12:"entsambama"===t||"ebusuku"===t?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}});return t}))},"52d7":function(e,t,n){"use strict";var r=n("437b"),o=n("b43a"),a=Array.prototype;e.exports=function(e){var t=e.fill;return e===a||r(a,e)&&t===a.fill?o:t}},"52da":function(e,t,n){e.exports=n("4035")},5377:function(e,t,n){"use strict";var r=n("da84"),o=n("83ab"),a=n("edd0"),i=n("ad6d"),s=n("d039"),c=r.RegExp,l=c.prototype,u=o&&s((function(){var e=!0;try{c(".","d")}catch(u){e=!1}var t={},n="",r=e?"dgimsy":"gimsy",o=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var i in e&&(a.hasIndices="d"),a)o(i,a[i]);var s=Object.getOwnPropertyDescriptor(l,"flags").get.call(t);return s!==r||n!==r}));u&&a(l,"flags",{configurable:!0,get:i})},5402:function(e,t,n){"use strict";var r=n("00ce"),o=n("545e"),a=n("2714"),i=r("%TypeError%"),s=r("%WeakMap%",!0),c=r("%Map%",!0),l=o("WeakMap.prototype.get",!0),u=o("WeakMap.prototype.set",!0),d=o("WeakMap.prototype.has",!0),p=o("Map.prototype.get",!0),f=o("Map.prototype.set",!0),h=o("Map.prototype.has",!0),m=function(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n},v=function(e,t){var n=m(e,t);return n&&n.value},g=function(e,t,n){var r=m(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},_=function(e,t){return!!m(e,t)};e.exports=function(){var e,t,n,r={assert:function(e){if(!r.has(e))throw new i("Side channel does not contain "+a(e))},get:function(r){if(s&&r&&("object"===typeof r||"function"===typeof r)){if(e)return l(e,r)}else if(c){if(t)return p(t,r)}else if(n)return v(n,r)},has:function(r){if(s&&r&&("object"===typeof r||"function"===typeof r)){if(e)return d(e,r)}else if(c){if(t)return h(t,r)}else if(n)return _(n,r);return!1},set:function(r,o){s&&r&&("object"===typeof r||"function"===typeof r)?(e||(e=new s),u(e,r,o)):c?(t||(t=new c),f(t,r,o)):(n||(n={key:{},next:null}),g(n,r,o))}};return r}},"545e":function(e,t,n){"use strict";var r=n("00ce"),o=n("3eb1"),a=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"===typeof n&&a(e,".prototype.")>-1?o(n):n}},5495:function(e,t,n){"use strict";var r=Math.ceil,o=Math.floor;e.exports=Math.trunc||function(e){var t=+e;return(t>0?o:r)(t)}},"54bb":function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n("7a23"),o=n("0898");const a=Object(o["b"])({size:{type:Object(o["c"])([Number,String])},color:{type:String}});var i=n("2711"),s=n("304f"),c=n("83ec"),l=n("0e69");const u=Object(r["defineComponent"])({name:"ElIcon",inheritAttrs:!1}),d=Object(r["defineComponent"])({...u,props:a,setup(e){const t=e,n=Object(s["d"])("icon"),o=Object(r["computed"])(()=>{const{size:e,color:n}=t;return e||n?{fontSize:Object(c["g"])(e)?void 0:Object(l["b"])(e),"--color":n}:{}});return(e,t)=>(Object(r["openBlock"])(),Object(r["createElementBlock"])("i",Object(r["mergeProps"])({class:Object(r["unref"])(n).b(),style:Object(r["unref"])(o)},e.$attrs),[Object(r["renderSlot"])(e.$slots,"default")],16))}});var p=Object(i["a"])(d,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]),f=n("0c24");const h=Object(f["a"])(p)},5502:function(e,t,n){"use strict";n.d(t,"a",(function(){return X})),n.d(t,"c",(function(){return i}));var r=n("7a23"),o=n("3f4e"),a="store";function i(e){return void 0===e&&(e=null),Object(r["inject"])(null!==e?e:a)}function s(e,t){return e.filter(t)[0]}function c(e,t){if(void 0===t&&(t=[]),null===e||"object"!==typeof e)return e;var n=s(t,(function(t){return t.original===e}));if(n)return n.copy;var r=Array.isArray(e)?[]:{};return t.push({original:e,copy:r}),Object.keys(e).forEach((function(n){r[n]=c(e[n],t)})),r}function l(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function u(e){return null!==e&&"object"===typeof e}function d(e){return e&&"function"===typeof e.then}function p(e,t){if(!e)throw new Error("[vuex] "+t)}function f(e,t){return function(){return e(t)}}function h(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function m(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;g(e,n,[],e._modules.root,!0),v(e,n,t)}function v(e,t,n){var o=e._state,a=e._scope;e.getters={},e._makeLocalGettersCache=Object.create(null);var i=e._wrappedGetters,s={},c={},u=Object(r["effectScope"])(!0);u.run((function(){l(i,(function(t,n){s[n]=f(t,e),c[n]=Object(r["computed"])((function(){return s[n]()})),Object.defineProperty(e.getters,n,{get:function(){return c[n].value},enumerable:!0})}))})),e._state=Object(r["reactive"])({data:t}),e._scope=u,e.strict&&k(e),o&&n&&e._withCommit((function(){o.data=null})),a&&a.stop()}function g(e,t,n,r,o){var a=!n.length,i=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[i]&&console.error("[vuex] duplicate namespace "+i+" for the namespaced module "+n.join("/")),e._modulesNamespaceMap[i]=r),!a&&!o){var s=C(t,n.slice(0,-1)),c=n[n.length-1];e._withCommit((function(){c in s&&console.warn('[vuex] state field "'+c+'" was overridden by a module with the same name at "'+n.join(".")+'"'),s[c]=r.state}))}var l=r.context=_(e,i,n);r.forEachMutation((function(t,n){var r=i+n;b(e,r,t,l)})),r.forEachAction((function(t,n){var r=t.root?n:i+n,o=t.handler||t;O(e,r,o,l)})),r.forEachGetter((function(t,n){var r=i+n;M(e,r,t,l)})),r.forEachChild((function(r,a){g(e,t,n.concat(a),r,o)}))}function _(e,t,n){var r=""===t,o={dispatch:r?e.dispatch:function(n,r,o){var a=w(n,r,o),i=a.payload,s=a.options,c=a.type;if(s&&s.root||(c=t+c,e._actions[c]))return e.dispatch(c,i);console.error("[vuex] unknown local action type: "+a.type+", global type: "+c)},commit:r?e.commit:function(n,r,o){var a=w(n,r,o),i=a.payload,s=a.options,c=a.type;s&&s.root||(c=t+c,e._mutations[c])?e.commit(c,i,s):console.error("[vuex] unknown local mutation type: "+a.type+", global type: "+c)}};return Object.defineProperties(o,{getters:{get:r?function(){return e.getters}:function(){return y(e,t)}},state:{get:function(){return C(e.state,n)}}}),o}function y(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach((function(o){if(o.slice(0,r)===t){var a=o.slice(r);Object.defineProperty(n,a,{get:function(){return e.getters[o]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function b(e,t,n,r){var o=e._mutations[t]||(e._mutations[t]=[]);o.push((function(t){n.call(e,r.state,t)}))}function O(e,t,n,r){var o=e._actions[t]||(e._actions[t]=[]);o.push((function(t){var o=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},t);return d(o)||(o=Promise.resolve(o)),e._devtoolHook?o.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):o}))}function M(e,t,n,r){e._wrappedGetters[t]?console.error("[vuex] duplicate getter key: "+t):e._wrappedGetters[t]=function(e){return n(r.state,r.getters,e.state,e.getters)}}function k(e){Object(r["watch"])((function(){return e._state.data}),(function(){p(e._committing,"do not mutate vuex store state outside mutation handlers.")}),{deep:!0,flush:"sync"})}function C(e,t){return t.reduce((function(e,t){return e[t]}),e)}function w(e,t,n){return u(e)&&e.type&&(n=t,t=e,e=e.type),p("string"===typeof e,"expects string as the type, but found "+typeof e+"."),{type:e,payload:t,options:n}}var I="vuex bindings",S="vuex:mutations",T="vuex:actions",E="vuex",j=0;function D(e,t){Object(o["a"])({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[I]},(function(n){n.addTimelineLayer({id:S,label:"Vuex Mutations",color:L}),n.addTimelineLayer({id:T,label:"Vuex Actions",color:L}),n.addInspector({id:E,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree((function(n){if(n.app===e&&n.inspectorId===E)if(n.filter){var r=[];U(r,t._modules.root,n.filter,""),n.rootNodes=r}else n.rootNodes=[P(t._modules.root,"")]})),n.on.getInspectorState((function(n){if(n.app===e&&n.inspectorId===E){var r=n.nodeId;y(t,r),n.state=V(F(t._modules,r),"root"===r?t.getters:t._makeLocalGettersCache,r)}})),n.on.editInspectorState((function(n){if(n.app===e&&n.inspectorId===E){var r=n.nodeId,o=n.path;"root"!==r&&(o=r.split("/").filter(Boolean).concat(o)),t._withCommit((function(){n.set(t._state.data,o,n.state.value)}))}})),t.subscribe((function(e,t){var r={};e.payload&&(r.payload=e.payload),r.state=t,n.notifyComponentUpdate(),n.sendInspectorTree(E),n.sendInspectorState(E),n.addTimelineEvent({layerId:S,event:{time:Date.now(),title:e.type,data:r}})})),t.subscribeAction({before:function(e,t){var r={};e.payload&&(r.payload=e.payload),e._id=j++,e._time=Date.now(),r.state=t,n.addTimelineEvent({layerId:T,event:{time:e._time,title:e.type,groupId:e._id,subtitle:"start",data:r}})},after:function(e,t){var r={},o=Date.now()-e._time;r.duration={_custom:{type:"duration",display:o+"ms",tooltip:"Action duration",value:o}},e.payload&&(r.payload=e.payload),r.state=t,n.addTimelineEvent({layerId:T,event:{time:Date.now(),title:e.type,groupId:e._id,subtitle:"end",data:r}})}})}))}var L=8702998,A=6710886,N=16777215,x={label:"namespaced",textColor:N,backgroundColor:A};function R(e){return e&&"root"!==e?e.split("/").slice(-2,-1)[0]:"Root"}function P(e,t){return{id:t||"root",label:R(t),tags:e.namespaced?[x]:[],children:Object.keys(e._children).map((function(n){return P(e._children[n],t+n+"/")}))}}function U(e,t,n,r){r.includes(n)&&e.push({id:r||"root",label:r.endsWith("/")?r.slice(0,r.length-1):r||"Root",tags:t.namespaced?[x]:[]}),Object.keys(t._children).forEach((function(o){U(e,t._children[o],n,r+o+"/")}))}function V(e,t,n){t="root"===n?t:t[n];var r=Object.keys(t),o={state:Object.keys(e.state).map((function(t){return{key:t,editable:!0,value:e.state[t]}}))};if(r.length){var a=B(t);o.getters=Object.keys(a).map((function(e){return{key:e.endsWith("/")?R(e):e,editable:!1,value:G((function(){return a[e]}))}}))}return o}function B(e){var t={};return Object.keys(e).forEach((function(n){var r=n.split("/");if(r.length>1){var o=t,a=r.pop();r.forEach((function(e){o[e]||(o[e]={_custom:{value:{},display:e,tooltip:"Module",abstract:!0}}),o=o[e]._custom.value})),o[a]=G((function(){return e[n]}))}else t[n]=G((function(){return e[n]}))})),t}function F(e,t){var n=t.split("/").filter((function(e){return e}));return n.reduce((function(e,r,o){var a=e[r];if(!a)throw new Error('Missing module "'+r+'" for path "'+t+'".');return o===n.length-1?a:a._children}),"root"===t?e:e.root._children)}function G(e){try{return e()}catch(t){return t}}var z=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"===typeof n?n():n)||{}},H={namespaced:{configurable:!0}};H.namespaced.get=function(){return!!this._rawModule.namespaced},z.prototype.addChild=function(e,t){this._children[e]=t},z.prototype.removeChild=function(e){delete this._children[e]},z.prototype.getChild=function(e){return this._children[e]},z.prototype.hasChild=function(e){return e in this._children},z.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},z.prototype.forEachChild=function(e){l(this._children,e)},z.prototype.forEachGetter=function(e){this._rawModule.getters&&l(this._rawModule.getters,e)},z.prototype.forEachAction=function(e){this._rawModule.actions&&l(this._rawModule.actions,e)},z.prototype.forEachMutation=function(e){this._rawModule.mutations&&l(this._rawModule.mutations,e)},Object.defineProperties(z.prototype,H);var Y=function(e){this.register([],e,!1)};function q(e,t,n){if(J(e,n),t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r))return void console.warn("[vuex] trying to add a new module '"+r+"' on hot reloading, manual reload is needed");q(e.concat(r),t.getChild(r),n.modules[r])}}Y.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},Y.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return t=t.getChild(n),e+(t.namespaced?n+"/":"")}),"")},Y.prototype.update=function(e){q([],this.root,e)},Y.prototype.register=function(e,t,n){var r=this;void 0===n&&(n=!0),J(e,t);var o=new z(t,n);if(0===e.length)this.root=o;else{var a=this.get(e.slice(0,-1));a.addChild(e[e.length-1],o)}t.modules&&l(t.modules,(function(t,o){r.register(e.concat(o),t,n)}))},Y.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],r=t.getChild(n);r?r.runtime&&t.removeChild(n):console.warn("[vuex] trying to unregister module '"+n+"', which is not registered")},Y.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var W={assert:function(e){return"function"===typeof e},expected:"function"},K={assert:function(e){return"function"===typeof e||"object"===typeof e&&"function"===typeof e.handler},expected:'function or object with "handler" function'},$={getters:W,mutations:W,actions:K};function J(e,t){Object.keys($).forEach((function(n){if(t[n]){var r=$[n];l(t[n],(function(t,o){p(r.assert(t),Q(e,n,o,t,r.expected))}))}}))}function Q(e,t,n,r,o){var a=t+" should be "+o+' but "'+t+"."+n+'"';return e.length>0&&(a+=' in module "'+e.join(".")+'"'),a+=" is "+JSON.stringify(r)+".",a}function X(e){return new Z(e)}var Z=function e(t){var n=this;void 0===t&&(t={}),p("undefined"!==typeof Promise,"vuex requires a Promise polyfill in this browser."),p(this instanceof e,"store must be called with the new operator.");var r=t.plugins;void 0===r&&(r=[]);var o=t.strict;void 0===o&&(o=!1);var a=t.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new Y(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=a;var i=this,s=this,c=s.dispatch,l=s.commit;this.dispatch=function(e,t){return c.call(i,e,t)},this.commit=function(e,t,n){return l.call(i,e,t,n)},this.strict=o;var u=this._modules.root.state;g(this,u,[],this._modules.root),v(this,u),r.forEach((function(e){return e(n)}))},ee={state:{configurable:!0}};Z.prototype.install=function(e,t){e.provide(t||a,this),e.config.globalProperties.$store=this;var n=void 0===this._devtools||this._devtools;n&&D(e,this)},ee.state.get=function(){return this._state.data},ee.state.set=function(e){p(!1,"use store.replaceState() to explicit replace store state.")},Z.prototype.commit=function(e,t,n){var r=this,o=w(e,t,n),a=o.type,i=o.payload,s=o.options,c={type:a,payload:i},l=this._mutations[a];l?(this._withCommit((function(){l.forEach((function(e){e(i)}))})),this._subscribers.slice().forEach((function(e){return e(c,r.state)})),s&&s.silent&&console.warn("[vuex] mutation type: "+a+". Silent option has been removed. Use the filter functionality in the vue-devtools")):console.error("[vuex] unknown mutation type: "+a)},Z.prototype.dispatch=function(e,t){var n=this,r=w(e,t),o=r.type,a=r.payload,i={type:o,payload:a},s=this._actions[o];if(s){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(i,n.state)}))}catch(l){console.warn("[vuex] error in before action subscribers: "),console.error(l)}var c=s.length>1?Promise.all(s.map((function(e){return e(a)}))):s[0](a);return new Promise((function(e,t){c.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(i,n.state)}))}catch(l){console.warn("[vuex] error in after action subscribers: "),console.error(l)}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(i,n.state,e)}))}catch(l){console.warn("[vuex] error in error action subscribers: "),console.error(l)}t(e)}))}))}console.error("[vuex] unknown action type: "+o)},Z.prototype.subscribe=function(e,t){return h(e,this._subscribers,t)},Z.prototype.subscribeAction=function(e,t){var n="function"===typeof e?{before:e}:e;return h(n,this._actionSubscribers,t)},Z.prototype.watch=function(e,t,n){var o=this;return p("function"===typeof e,"store.watch only accepts a function."),Object(r["watch"])((function(){return e(o.state,o.getters)}),t,Object.assign({},n))},Z.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._state.data=e}))},Z.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"===typeof e&&(e=[e]),p(Array.isArray(e),"module path must be a string or an Array."),p(e.length>0,"cannot register the root module by using registerModule."),this._modules.register(e,t),g(this,this.state,e,this._modules.get(e),n.preserveState),v(this,this.state)},Z.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),p(Array.isArray(e),"module path must be a string or an Array."),this._modules.unregister(e),this._withCommit((function(){var n=C(t.state,e.slice(0,-1));delete n[e[e.length-1]]})),m(this)},Z.prototype.hasModule=function(e){return"string"===typeof e&&(e=[e]),p(Array.isArray(e),"module path must be a string or an Array."),this._modules.isRegistered(e)},Z.prototype.hotUpdate=function(e){this._modules.update(e),m(this,!0)},Z.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(Z.prototype,ee);var te=ce((function(e,t){var n={};return se(t)||console.error("[vuex] mapState: mapper parameter must be either an Array or an Object"),ie(t).forEach((function(t){var r=t.key,o=t.val;n[r]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var r=le(this.$store,"mapState",e);if(!r)return;t=r.context.state,n=r.context.getters}return"function"===typeof o?o.call(this,t,n):t[o]},n[r].vuex=!0})),n})),ne=ce((function(e,t){var n={};return se(t)||console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"),ie(t).forEach((function(t){var r=t.key,o=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.commit;if(e){var a=le(this.$store,"mapMutations",e);if(!a)return;r=a.context.commit}return"function"===typeof o?o.apply(this,[r].concat(t)):r.apply(this.$store,[o].concat(t))}})),n})),re=ce((function(e,t){var n={};return se(t)||console.error("[vuex] mapGetters: mapper parameter must be either an Array or an Object"),ie(t).forEach((function(t){var r=t.key,o=t.val;o=e+o,n[r]=function(){if(!e||le(this.$store,"mapGetters",e)){if(o in this.$store.getters)return this.$store.getters[o];console.error("[vuex] unknown getter: "+o)}},n[r].vuex=!0})),n})),oe=ce((function(e,t){var n={};return se(t)||console.error("[vuex] mapActions: mapper parameter must be either an Array or an Object"),ie(t).forEach((function(t){var r=t.key,o=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.dispatch;if(e){var a=le(this.$store,"mapActions",e);if(!a)return;r=a.context.dispatch}return"function"===typeof o?o.apply(this,[r].concat(t)):r.apply(this.$store,[o].concat(t))}})),n})),ae=function(e){return{mapState:te.bind(null,e),mapGetters:re.bind(null,e),mapMutations:ne.bind(null,e),mapActions:oe.bind(null,e)}};function ie(e){return se(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function se(e){return Array.isArray(e)||u(e)}function ce(e){return function(t,n){return"string"!==typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function le(e,t,n){var r=e._modulesNamespaceMap[n];return r||console.error("[vuex] module namespace not found in "+t+"(): "+n),r}function ue(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var n=e.filter;void 0===n&&(n=function(e,t,n){return!0});var r=e.transformer;void 0===r&&(r=function(e){return e});var o=e.mutationTransformer;void 0===o&&(o=function(e){return e});var a=e.actionFilter;void 0===a&&(a=function(e,t){return!0});var i=e.actionTransformer;void 0===i&&(i=function(e){return e});var s=e.logMutations;void 0===s&&(s=!0);var l=e.logActions;void 0===l&&(l=!0);var u=e.logger;return void 0===u&&(u=console),function(e){var d=c(e.state);"undefined"!==typeof u&&(s&&e.subscribe((function(e,a){var i=c(a);if(n(e,d,i)){var s=fe(),l=o(e),p="mutation "+e.type+s;de(u,p,t),u.log("%c prev state","color: #9E9E9E; font-weight: bold",r(d)),u.log("%c mutation","color: #03A9F4; font-weight: bold",l),u.log("%c next state","color: #4CAF50; font-weight: bold",r(i)),pe(u)}d=i})),l&&e.subscribeAction((function(e,n){if(a(e,n)){var r=fe(),o=i(e),s="action "+e.type+r;de(u,s,t),u.log("%c action","color: #03A9F4; font-weight: bold",o),pe(u)}})))}}function de(e,t,n){var r=n?e.groupCollapsed:e.group;try{r.call(e,t)}catch(o){e.log(t)}}function pe(e){try{e.groupEnd()}catch(t){e.log("—— log end ——")}}function fe(){var e=new Date;return" @ "+me(e.getHours(),2)+":"+me(e.getMinutes(),2)+":"+me(e.getSeconds(),2)+"."+me(e.getMilliseconds(),3)}function he(e,t){return new Array(t+1).join(e)}function me(e,t){return he("0",t-e.toString().length)+e}var ve={version:"4.1.0",Store:Z,storeKey:a,createStore:X,useStore:i,mapState:te,mapMutations:ne,mapGetters:re,mapActions:oe,createNamespacedHelpers:ae,createLogger:ue};t["b"]=ve},"55c9":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],o=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,a=e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}});return a}))},"55d0":function(e,t,n){"use strict";var r=n("a5eb"),o=n("f44f");r({target:"Object",stat:!0,arity:2,forced:Object.assign!==o},{assign:o})},5692:function(e,t,n){"use strict";var r=n("c430"),o=n("c6cd");(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.32.0",mode:r?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.32.0/LICENSE",source:"https://github.com/zloirock/core-js"})},"56ba":function(e,t,n){"use strict";var r=n("0273"),o=n("f7c8"),a=n("f3a3"),i=Error.captureStackTrace;e.exports=function(e,t,n,s){a&&(i?i(e,t):r(e,"stack",o(n,s)))}},"56c4":function(e,t,n){"use strict";n("a8b3");var r=n("a169");e.exports=r("Array").forEach},"56c5":function(e,t,n){"use strict";var r=n("a5eb"),o=n("ec62");r({target:"Object",stat:!0},{setPrototypeOf:o})},"56ef":function(e,t,n){"use strict";var r=n("d066"),o=n("e330"),a=n("241c"),i=n("7418"),s=n("825a"),c=o([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=a.f(s(e)),n=i.f;return n?c(t,n(e)):t}},"576c":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}});return t}))},5779:function(e,t,n){"use strict";var r=n("0e6f"),o=n("fb2d"),a=n("4fff"),i=n("b2ed"),s=n("f5fb"),c=i("IE_PROTO"),l=Object,u=l.prototype;e.exports=s?l.getPrototypeOf:function(e){var t=a(e);if(r(t,c))return t[c];var n=t.constructor;return o(n)&&t instanceof n?n.prototype:t instanceof l?u:null}},"577e":function(e,t,n){"use strict";var r=n("f5df"),o=String;e.exports=function(e){if("Symbol"===r(e))throw TypeError("Cannot convert a Symbol value to a string");return o(e)}},5781:function(e,t,n){(function(t){!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 n(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){u(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(){r=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(T){c=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var o=t&&t.prototype instanceof p?t:p,a=Object.create(o.prototype),i=new C(r||[]);return a._invoke=function(e,t,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return I()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var s=O(i,n);if(s){if(s===d)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 c=u(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,i),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(T){return{type:"throw",arg:T}}}e.wrap=l;var d={};function p(){}function f(){}function h(){}var m={};c(m,a,(function(){return this}));var v=Object.getPrototypeOf,g=v&&v(v(w([])));g&&g!==t&&n.call(g,a)&&(m=g);var _=h.prototype=p.prototype=Object.create(m);function y(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function r(o,a,i,s){var c=u(e[o],e,a);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(d).then((function(e){l.value=e,i(l)}),(function(e){return r("throw",e,i,s)}))}s(c.arg)}var o;this._invoke=function(e,n){function a(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(a,a):a()}}function O(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,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var r=u(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,d;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,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function M(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 C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(M,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=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 o.next=o}}return{next:I}}function I(){return{value:void 0,done:!0}}return f.prototype=h,c(_,"constructor",h),c(h,"constructor",f),f.displayName=c(h,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,c(e,s,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},y(b.prototype),c(b.prototype,i,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new b(l(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},y(_),c(_,s,"Generator"),c(_,a,(function(){return this})),c(_,"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=w,C.prototype={constructor:C,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 i.type="throw",i.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 a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.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 a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,d):this.complete(i)},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),d},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),d}},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:w(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function o(e){return o="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},o(e)}function a(e,t,n,r,o,a,i){try{var s=e[a](i),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(r,o)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){a(i,r,o,s,c,"next",e)}function c(e){a(i,r,o,s,c,"throw",e)}s(void 0)}))}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(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&&c(e.prototype,t),n&&c(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function h(){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 m(e,t,n){return m=h()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&f(o,n.prototype),o},m.apply(null,arguments)}function v(e){var t="function"==typeof Map?new Map:void 0;return v=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 m(e,arguments,p(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),f(r,e)},v(e)}function g(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 _(e){var t=h();return function(){var n,r=p(e);if(t){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g(this,n)}}function y(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}function b(){return b="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=y(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},b.apply(this,arguments)}function O(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,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(l){s=!0,o=l}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}}(e,t)||k(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 M(e){return function(e){if(Array.isArray(e))return C(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||k(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 k(e,t){if(e){if("string"==typeof e)return C(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)?C(e,t):void 0}}function C(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 w(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=k(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 a,i=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){s=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(s)throw a}}}}function I(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var S="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof t?t:"undefined"!=typeof self?self:{},T=function(e){return e&&e.Math==Math&&e},E=T("object"==typeof globalThis&&globalThis)||T("object"==typeof window&&window)||T("object"==typeof self&&self)||T("object"==typeof S&&S)||function(){return this}()||Function("return this")(),j={},D=function(e){try{return!!e()}catch(n){return!0}},L=!D((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),A=!D((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),N=A,x=Function.prototype.call,R=N?x.bind(x):function(){return x.apply(x,arguments)},P={},U={}.propertyIsEnumerable,V=Object.getOwnPropertyDescriptor,B=V&&!U.call({1:2},1);P.f=B?function(e){var t=V(this,e);return!!t&&t.enumerable}:U;var F,G,z=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},H=A,Y=Function.prototype,q=Y.call,W=H&&Y.bind.bind(q,q),K=function(e){return H?W(e):function(){return q.apply(e,arguments)}},$=K,J=$({}.toString),Q=$("".slice),X=function(e){return Q(J(e),8,-1)},Z=X,ee=K,te=function(e){if("Function"===Z(e))return ee(e)},ne=D,re=X,oe=Object,ae=te("".split),ie=ne((function(){return!oe("z").propertyIsEnumerable(0)}))?function(e){return"String"==re(e)?ae(e,""):oe(e)}:oe,se=function(e){return null==e},ce=se,le=TypeError,ue=function(e){if(ce(e))throw le("Can't call method on "+e);return e},de=ie,pe=ue,fe=function(e){return de(pe(e))},he="object"==typeof document&&document.all,me={all:he,IS_HTMLDDA:void 0===he&&void 0!==he},ve=me.all,ge=me.IS_HTMLDDA?function(e){return"function"==typeof e||e===ve}:function(e){return"function"==typeof e},_e=ge,ye=me.all,be=me.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:_e(e)||e===ye}:function(e){return"object"==typeof e?null!==e:_e(e)},Oe=E,Me=ge,ke=function(e){return Me(e)?e:void 0},Ce=function(e,t){return arguments.length<2?ke(Oe[e]):Oe[e]&&Oe[e][t]},we=te({}.isPrototypeOf),Ie=Ce("navigator","userAgent")||"",Se=E,Te=Ie,Ee=Se.process,je=Se.Deno,De=Ee&&Ee.versions||je&&je.version,Le=De&&De.v8;Le&&(G=(F=Le.split("."))[0]>0&&F[0]<4?1:+(F[0]+F[1])),!G&&Te&&(!(F=Te.match(/Edge\/(\d+)/))||F[1]>=74)&&(F=Te.match(/Chrome\/(\d+)/))&&(G=+F[1]);var Ae=G,Ne=Ae,xe=D,Re=!!Object.getOwnPropertySymbols&&!xe((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Ne&&Ne<41})),Pe=Re&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ue=Ce,Ve=ge,Be=we,Fe=Object,Ge=Pe?function(e){return"symbol"==typeof e}:function(e){var t=Ue("Symbol");return Ve(t)&&Be(t.prototype,Fe(e))},ze=String,He=function(e){try{return ze(e)}catch(n){return"Object"}},Ye=ge,qe=He,We=TypeError,Ke=function(e){if(Ye(e))return e;throw We(qe(e)+" is not a function")},$e=Ke,Je=se,Qe=function(e,t){var n=e[t];return Je(n)?void 0:$e(n)},Xe=R,Ze=ge,et=be,tt=TypeError,nt={exports:{}},rt=E,ot=Object.defineProperty,at=function(e,t){try{ot(rt,e,{value:t,configurable:!0,writable:!0})}catch(r){rt[e]=t}return t},it=at,st="__core-js_shared__",ct=E[st]||it(st,{}),lt=ct;(nt.exports=function(e,t){return lt[e]||(lt[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.25.5",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.25.5/LICENSE",source:"https://github.com/zloirock/core-js"});var ut=ue,dt=Object,pt=function(e){return dt(ut(e))},ft=pt,ht=te({}.hasOwnProperty),mt=Object.hasOwn||function(e,t){return ht(ft(e),t)},vt=te,gt=0,_t=Math.random(),yt=vt(1..toString),bt=function(e){return"Symbol("+(void 0===e?"":e)+")_"+yt(++gt+_t,36)},Ot=E,Mt=nt.exports,kt=mt,Ct=bt,wt=Re,It=Pe,St=Mt("wks"),Tt=Ot.Symbol,Et=Tt&&Tt.for,jt=It?Tt:Tt&&Tt.withoutSetter||Ct,Dt=function(e){if(!kt(St,e)||!wt&&"string"!=typeof St[e]){var t="Symbol."+e;wt&&kt(Tt,e)?St[e]=Tt[e]:St[e]=It&&Et?Et(t):jt(t)}return St[e]},Lt=R,At=be,Nt=Ge,xt=Qe,Rt=function(e,t){var n,r;if("string"===t&&Ze(n=e.toString)&&!et(r=Xe(n,e)))return r;if(Ze(n=e.valueOf)&&!et(r=Xe(n,e)))return r;if("string"!==t&&Ze(n=e.toString)&&!et(r=Xe(n,e)))return r;throw tt("Can't convert object to primitive value")},Pt=TypeError,Ut=Dt("toPrimitive"),Vt=function(e,t){if(!At(e)||Nt(e))return e;var n,r=xt(e,Ut);if(r){if(void 0===t&&(t="default"),n=Lt(r,e,t),!At(n)||Nt(n))return n;throw Pt("Can't convert object to primitive value")}return void 0===t&&(t="number"),Rt(e,t)},Bt=Vt,Ft=Ge,Gt=function(e){var t=Bt(e,"string");return Ft(t)?t:t+""},zt=be,Ht=E.document,Yt=zt(Ht)&&zt(Ht.createElement),qt=function(e){return Yt?Ht.createElement(e):{}},Wt=qt,Kt=!L&&!D((function(){return 7!=Object.defineProperty(Wt("div"),"a",{get:function(){return 7}}).a})),$t=L,Jt=R,Qt=P,Xt=z,Zt=fe,en=Gt,tn=mt,nn=Kt,rn=Object.getOwnPropertyDescriptor;j.f=$t?rn:function(e,t){if(e=Zt(e),t=en(t),nn)try{return rn(e,t)}catch(r){}if(tn(e,t))return Xt(!Jt(Qt.f,e,t),e[t])};var on={},an=L&&D((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),sn=be,cn=String,ln=TypeError,un=function(e){if(sn(e))return e;throw ln(cn(e)+" is not an object")},dn=L,pn=Kt,fn=an,hn=un,mn=Gt,vn=TypeError,gn=Object.defineProperty,_n=Object.getOwnPropertyDescriptor,yn="enumerable",bn="configurable",On="writable";on.f=dn?fn?function(e,t,n){if(hn(e),t=mn(t),hn(n),"function"==typeof e&&"prototype"===t&&"value"in n&&On in n&&!n.writable){var r=_n(e,t);r&&r.writable&&(e[t]=n.value,n={configurable:bn in n?n.configurable:r.configurable,enumerable:yn in n?n.enumerable:r.enumerable,writable:!1})}return gn(e,t,n)}:gn:function(e,t,n){if(hn(e),t=mn(t),hn(n),pn)try{return gn(e,t,n)}catch(o){}if("get"in n||"set"in n)throw vn("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var Mn=on,kn=z,Cn=L?function(e,t,n){return Mn.f(e,t,kn(1,n))}:function(e,t,n){return e[t]=n,e},wn={exports:{}},In=L,Sn=mt,Tn=Function.prototype,En=In&&Object.getOwnPropertyDescriptor,jn=Sn(Tn,"name"),Dn={EXISTS:jn,PROPER:jn&&"something"===function(){}.name,CONFIGURABLE:jn&&(!In||In&&En(Tn,"name").configurable)},Ln=ge,An=ct,Nn=te(Function.toString);Ln(An.inspectSource)||(An.inspectSource=function(e){return Nn(e)});var xn,Rn,Pn,Un=An.inspectSource,Vn=ge,Bn=E.WeakMap,Fn=Vn(Bn)&&/native code/.test(String(Bn)),Gn=nt.exports,zn=bt,Hn=Gn("keys"),Yn=function(e){return Hn[e]||(Hn[e]=zn(e))},qn={},Wn=Fn,Kn=E,$n=be,Jn=Cn,Qn=mt,Xn=ct,Zn=Yn,er=qn,tr="Object already initialized",nr=Kn.TypeError,rr=Kn.WeakMap;if(Wn||Xn.state){var or=Xn.state||(Xn.state=new rr);or.get=or.get,or.has=or.has,or.set=or.set,xn=function(e,t){if(or.has(e))throw nr(tr);return t.facade=e,or.set(e,t),t},Rn=function(e){return or.get(e)||{}},Pn=function(e){return or.has(e)}}else{var ar=Zn("state");er[ar]=!0,xn=function(e,t){if(Qn(e,ar))throw nr(tr);return t.facade=e,Jn(e,ar,t),t},Rn=function(e){return Qn(e,ar)?e[ar]:{}},Pn=function(e){return Qn(e,ar)}}var ir={set:xn,get:Rn,has:Pn,enforce:function(e){return Pn(e)?Rn(e):xn(e,{})},getterFor:function(e){return function(t){var n;if(!$n(t)||(n=Rn(t)).type!==e)throw nr("Incompatible receiver, "+e+" required");return n}}},sr=D,cr=ge,lr=mt,ur=L,dr=Dn.CONFIGURABLE,pr=Un,fr=ir.enforce,hr=ir.get,mr=Object.defineProperty,vr=ur&&!sr((function(){return 8!==mr((function(){}),"length",{value:8}).length})),gr=String(String).split("String"),_r=wn.exports=function(e,t,n){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!lr(e,"name")||dr&&e.name!==t)&&(ur?mr(e,"name",{value:t,configurable:!0}):e.name=t),vr&&n&&lr(n,"arity")&&e.length!==n.arity&&mr(e,"length",{value:n.arity});try{n&&lr(n,"constructor")&&n.constructor?ur&&mr(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(a){}var r=fr(e);return lr(r,"source")||(r.source=gr.join("string"==typeof t?t:"")),e};Function.prototype.toString=_r((function(){return cr(this)&&hr(this).source||pr(this)}),"toString");var yr=ge,br=on,Or=wn.exports,Mr=at,kr=function(e,t,n,r){r||(r={});var o=r.enumerable,a=void 0!==r.name?r.name:t;if(yr(n)&&Or(n,a,r),r.global)o?e[t]=n:Mr(t,n);else{try{r.unsafe?e[t]&&(o=!0):delete e[t]}catch(s){}o?e[t]=n:br.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},Cr={},wr=Math.ceil,Ir=Math.floor,Sr=Math.trunc||function(e){var t=+e;return(t>0?Ir:wr)(t)},Tr=function(e){var t=+e;return t!=t||0===t?0:Sr(t)},Er=Tr,jr=Math.max,Dr=Math.min,Lr=function(e,t){var n=Er(e);return n<0?jr(n+t,0):Dr(n,t)},Ar=Tr,Nr=Math.min,xr=function(e){return e>0?Nr(Ar(e),9007199254740991):0},Rr=xr,Pr=function(e){return Rr(e.length)},Ur=fe,Vr=Lr,Br=Pr,Fr=function(e){return function(t,n,r){var o,a=Ur(t),i=Br(a),s=Vr(r,i);if(e&&n!=n){for(;i>s;)if((o=a[s++])!=o)return!0}else for(;i>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},Gr={includes:Fr(!0),indexOf:Fr(!1)},zr=mt,Hr=fe,Yr=Gr.indexOf,qr=qn,Wr=te([].push),Kr=function(e,t){var n,r=Hr(e),o=0,a=[];for(n in r)!zr(qr,n)&&zr(r,n)&&Wr(a,n);for(;t.length>o;)zr(r,n=t[o++])&&(~Yr(a,n)||Wr(a,n));return a},$r=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Jr=Kr,Qr=$r.concat("length","prototype");Cr.f=Object.getOwnPropertyNames||function(e){return Jr(e,Qr)};var Xr={};Xr.f=Object.getOwnPropertySymbols;var Zr=Ce,eo=Cr,to=Xr,no=un,ro=te([].concat),oo=Zr("Reflect","ownKeys")||function(e){var t=eo.f(no(e)),n=to.f;return n?ro(t,n(e)):t},ao=mt,io=oo,so=j,co=on,lo=D,uo=ge,po=/#|\.prototype\./,fo=function(e,t){var n=mo[ho(e)];return n==go||n!=vo&&(uo(t)?lo(t):!!t)},ho=fo.normalize=function(e){return String(e).replace(po,".").toLowerCase()},mo=fo.data={},vo=fo.NATIVE="N",go=fo.POLYFILL="P",_o=fo,yo=E,bo=j.f,Oo=Cn,Mo=kr,ko=at,Co=function(e,t,n){for(var r=io(t),o=co.f,a=so.f,i=0;i<r.length;i++){var s=r[i];ao(e,s)||n&&ao(n,s)||o(e,s,a(t,s))}},wo=_o,Io=function(e,t){var n,r,o,a,i,s=e.target,c=e.global,l=e.stat;if(n=c?yo:l?yo[s]||ko(s,{}):(yo[s]||{}).prototype)for(r in t){if(a=t[r],o=e.dontCallGetSet?(i=bo(n,r))&&i.value:n[r],!wo(c?r:s+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof a==typeof o)continue;Co(a,o)}(e.sham||o&&o.sham)&&Oo(a,"sham",!0),Mo(n,r,a,e)}},So=Io,To=D,Eo=fe,jo=j.f,Do=L,Lo=To((function(){jo(1)}));function Ao(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}So({target:"Object",stat:!0,forced:!Do||Lo,sham:!Do},{getOwnPropertyDescriptor:function(e,t){return jo(Eo(e),t)}}),function(e,t){e.exports=function(){function e(t,n,r){function o(i,s){if(!n[i]){if(!t[i]){if(!s&&Ao)return Ao(i);if(a)return a(i,!0);var c=new Error("Cannot find module '"+i+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[i]={exports:{}};t[i][0].call(l.exports,(function(e){return o(t[i][1][e]||e)}),l,l.exports,e,t,n,r)}return n[i].exports}for(var a=Ao,i=0;i<r.length;i++)o(r[i]);return o}return e}()({1:[function(e,t,n){var r=(0,e("./adapter_factory.js").adapterFactory)({window:"undefined"==typeof window?void 0:window});t.exports=r},{"./adapter_factory.js":2}],2:[function(e,t,n){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)}Object.defineProperty(n,"__esModule",{value:!0}),n.adapterFactory=p;var o=d(e("./utils")),a=d(e("./chrome/chrome_shim")),i=d(e("./firefox/firefox_shim")),s=d(e("./safari/safari_shim")),c=d(e("./common_shim")),l=d(e("sdp"));function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function d(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=a?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(o,i,s):o[i]=e[i]}return o.default=e,n&&n.set(e,o),o}function p(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).window,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shimChrome:!0,shimFirefox:!0,shimSafari:!0},n=o.log,r=o.detectBrowser(e),u={browserDetails:r,commonShim:c,extractVersion:o.extractVersion,disableLog:o.disableLog,disableWarnings:o.disableWarnings,sdp:l};switch(r.browser){case"chrome":if(!a||!a.shimPeerConnection||!t.shimChrome)return n("Chrome shim is not included in this adapter release."),u;if(null===r.version)return n("Chrome shim can not determine version, not shimming."),u;n("adapter.js shimming chrome."),u.browserShim=a,c.shimAddIceCandidateNullOrEmpty(e,r),c.shimParameterlessSetLocalDescription(e,r),a.shimGetUserMedia(e,r),a.shimMediaStream(e,r),a.shimPeerConnection(e,r),a.shimOnTrack(e,r),a.shimAddTrackRemoveTrack(e,r),a.shimGetSendersWithDtmf(e,r),a.shimGetStats(e,r),a.shimSenderReceiverGetStats(e,r),a.fixNegotiationNeeded(e,r),c.shimRTCIceCandidate(e,r),c.shimRTCIceCandidateRelayProtocol(e,r),c.shimConnectionState(e,r),c.shimMaxMessageSize(e,r),c.shimSendThrowTypeError(e,r),c.removeExtmapAllowMixed(e,r);break;case"firefox":if(!i||!i.shimPeerConnection||!t.shimFirefox)return n("Firefox shim is not included in this adapter release."),u;n("adapter.js shimming firefox."),u.browserShim=i,c.shimAddIceCandidateNullOrEmpty(e,r),c.shimParameterlessSetLocalDescription(e,r),i.shimGetUserMedia(e,r),i.shimPeerConnection(e,r),i.shimOnTrack(e,r),i.shimRemoveStream(e,r),i.shimSenderGetStats(e,r),i.shimReceiverGetStats(e,r),i.shimRTCDataChannel(e,r),i.shimAddTransceiver(e,r),i.shimGetParameters(e,r),i.shimCreateOffer(e,r),i.shimCreateAnswer(e,r),c.shimRTCIceCandidate(e,r),c.shimConnectionState(e,r),c.shimMaxMessageSize(e,r),c.shimSendThrowTypeError(e,r);break;case"safari":if(!s||!t.shimSafari)return n("Safari shim is not included in this adapter release."),u;n("adapter.js shimming safari."),u.browserShim=s,c.shimAddIceCandidateNullOrEmpty(e,r),c.shimParameterlessSetLocalDescription(e,r),s.shimRTCIceServerUrls(e,r),s.shimCreateOfferLegacy(e,r),s.shimCallbacksAPI(e,r),s.shimLocalStreamsAPI(e,r),s.shimRemoteStreamsAPI(e,r),s.shimTrackEventTransceiver(e,r),s.shimGetUserMedia(e,r),s.shimAudioContext(e,r),c.shimRTCIceCandidate(e,r),c.shimRTCIceCandidateRelayProtocol(e,r),c.shimMaxMessageSize(e,r),c.shimSendThrowTypeError(e,r),c.removeExtmapAllowMixed(e,r);break;default:n("Unsupported browser!")}return u}},{"./chrome/chrome_shim":3,"./common_shim":6,"./firefox/firefox_shim":7,"./safari/safari_shim":10,"./utils":11,sdp:12}],3:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.fixNegotiationNeeded=b,n.shimAddTrackRemoveTrack=_,n.shimAddTrackRemoveTrackWithNative=g,Object.defineProperty(n,"shimGetDisplayMedia",{enumerable:!0,get:function(){return a.shimGetDisplayMedia}}),n.shimGetSendersWithDtmf=h,n.shimGetStats=m,Object.defineProperty(n,"shimGetUserMedia",{enumerable:!0,get:function(){return o.shimGetUserMedia}}),n.shimMediaStream=p,n.shimOnTrack=f,n.shimPeerConnection=y,n.shimSenderReceiverGetStats=v;var r=s(e("../utils.js")),o=e("./getusermedia"),a=e("./getdisplaymedia");function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}function s(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==d(e)&&"function"!=typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}function c(e,t,n){return(t=l(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){var t=u(e,"string");return"symbol"===d(t)?t:String(t)}function u(e,t){if("object"!==d(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function d(e){return d="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},d(e)}function p(e){e.MediaStream=e.MediaStream||e.webkitMediaStream}function f(e){if("object"===d(e)&&e.RTCPeerConnection&&!("ontrack"in e.RTCPeerConnection.prototype)){Object.defineProperty(e.RTCPeerConnection.prototype,"ontrack",{get:function(){return this._ontrack},set:function(e){this._ontrack&&this.removeEventListener("track",this._ontrack),this.addEventListener("track",this._ontrack=e)},enumerable:!0,configurable:!0});var t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){var n=this;return this._ontrackpoly||(this._ontrackpoly=function(t){t.stream.addEventListener("addtrack",(function(r){var o;o=e.RTCPeerConnection.prototype.getReceivers?n.getReceivers().find((function(e){return e.track&&e.track.id===r.track.id})):{track:r.track};var a=new Event("track");a.track=r.track,a.receiver=o,a.transceiver={receiver:o},a.streams=[t.stream],n.dispatchEvent(a)})),t.stream.getTracks().forEach((function(r){var o;o=e.RTCPeerConnection.prototype.getReceivers?n.getReceivers().find((function(e){return e.track&&e.track.id===r.id})):{track:r};var a=new Event("track");a.track=r,a.receiver=o,a.transceiver={receiver:o},a.streams=[t.stream],n.dispatchEvent(a)}))},this.addEventListener("addstream",this._ontrackpoly)),t.apply(this,arguments)}}else r.wrapPeerConnectionEvent(e,"track",(function(e){return e.transceiver||Object.defineProperty(e,"transceiver",{value:{receiver:e.receiver}}),e}))}function h(e){if("object"===d(e)&&e.RTCPeerConnection&&!("getSenders"in e.RTCPeerConnection.prototype)&&"createDTMFSender"in e.RTCPeerConnection.prototype){var 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()};var n=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(e,r){var o=n.apply(this,arguments);return o||(o=t(this,e),this._senders.push(o)),o};var r=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(e){r.apply(this,arguments);var t=this._senders.indexOf(e);-1!==t&&this._senders.splice(t,1)}}var o=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(e){var n=this;this._senders=this._senders||[],o.apply(this,[e]),e.getTracks().forEach((function(e){n._senders.push(t(n,e))}))};var a=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(e){var t=this;this._senders=this._senders||[],a.apply(this,[e]),e.getTracks().forEach((function(e){var n=t._senders.find((function(t){return t.track===e}));n&&t._senders.splice(t._senders.indexOf(n),1)}))}}else if("object"===d(e)&&e.RTCPeerConnection&&"getSenders"in e.RTCPeerConnection.prototype&&"createDTMFSender"in e.RTCPeerConnection.prototype&&e.RTCRtpSender&&!("dtmf"in e.RTCRtpSender.prototype)){var i=e.RTCPeerConnection.prototype.getSenders;e.RTCPeerConnection.prototype.getSenders=function(){var e=this,t=i.apply(this,[]);return t.forEach((function(t){return t._pc=e})),t},Object.defineProperty(e.RTCRtpSender.prototype,"dtmf",{get:function(){return void 0===this._dtmf&&("audio"===this.track.kind?this._dtmf=this._pc.createDTMFSender(this.track):this._dtmf=null),this._dtmf}})}}function m(e){if(e.RTCPeerConnection){var t=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){var e=this,n=Array.prototype.slice.call(arguments),r=n[0],o=n[1],a=n[2];if(arguments.length>0&&"function"==typeof r)return t.apply(this,arguments);if(0===t.length&&(0===arguments.length||"function"!=typeof r))return t.apply(this,[]);var i=function(e){var t={};return e.result().forEach((function(e){var n={id:e.id,timestamp:e.timestamp,type:{localcandidate:"local-candidate",remotecandidate:"remote-candidate"}[e.type]||e.type};e.names().forEach((function(t){n[t]=e.stat(t)})),t[n.id]=n})),t},s=function(e){return new Map(Object.keys(e).map((function(t){return[t,e[t]]})))};if(arguments.length>=2){var c=function(e){o(s(i(e)))};return t.apply(this,[c,r])}return new Promise((function(n,r){t.apply(e,[function(e){n(s(i(e)))},r])})).then(o,a)}}}function v(e){if("object"===d(e)&&e.RTCPeerConnection&&e.RTCRtpSender&&e.RTCRtpReceiver){if(!("getStats"in e.RTCRtpSender.prototype)){var t=e.RTCPeerConnection.prototype.getSenders;t&&(e.RTCPeerConnection.prototype.getSenders=function(){var e=this,n=t.apply(this,[]);return n.forEach((function(t){return t._pc=e})),n});var n=e.RTCPeerConnection.prototype.addTrack;n&&(e.RTCPeerConnection.prototype.addTrack=function(){var e=n.apply(this,arguments);return e._pc=this,e}),e.RTCRtpSender.prototype.getStats=function(){var e=this;return this._pc.getStats().then((function(t){return r.filterStats(t,e.track,!0)}))}}if(!("getStats"in e.RTCRtpReceiver.prototype)){var o=e.RTCPeerConnection.prototype.getReceivers;o&&(e.RTCPeerConnection.prototype.getReceivers=function(){var e=this,t=o.apply(this,[]);return t.forEach((function(t){return t._pc=e})),t}),r.wrapPeerConnectionEvent(e,"track",(function(e){return e.receiver._pc=e.srcElement,e})),e.RTCRtpReceiver.prototype.getStats=function(){var e=this;return this._pc.getStats().then((function(t){return r.filterStats(t,e.track,!1)}))}}if("getStats"in e.RTCRtpSender.prototype&&"getStats"in e.RTCRtpReceiver.prototype){var a=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){if(arguments.length>0&&arguments[0]instanceof e.MediaStreamTrack){var t,n,r,o=arguments[0];return this.getSenders().forEach((function(e){e.track===o&&(t?r=!0:t=e)})),this.getReceivers().forEach((function(e){return e.track===o&&(n?r=!0:n=e),e.track===o})),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 a.apply(this,arguments)}}}}function g(e){e.RTCPeerConnection.prototype.getLocalStreams=function(){var e=this;return this._shimmedLocalStreams=this._shimmedLocalStreams||{},Object.keys(this._shimmedLocalStreams).map((function(t){return e._shimmedLocalStreams[t][0]}))};var t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(e,n){if(!n)return t.apply(this,arguments);this._shimmedLocalStreams=this._shimmedLocalStreams||{};var 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};var n=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(e){var t=this;this._shimmedLocalStreams=this._shimmedLocalStreams||{},e.getTracks().forEach((function(e){if(t.getSenders().find((function(t){return t.track===e})))throw new DOMException("Track already exists.","InvalidAccessError")}));var r=this.getSenders();n.apply(this,arguments);var o=this.getSenders().filter((function(e){return-1===r.indexOf(e)}));this._shimmedLocalStreams[e.id]=[e].concat(o)};var 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)};var o=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(e){var t=this;return this._shimmedLocalStreams=this._shimmedLocalStreams||{},e&&Object.keys(this._shimmedLocalStreams).forEach((function(n){var r=t._shimmedLocalStreams[n].indexOf(e);-1!==r&&t._shimmedLocalStreams[n].splice(r,1),1===t._shimmedLocalStreams[n].length&&delete t._shimmedLocalStreams[n]})),o.apply(this,arguments)}}function _(e,t){if(e.RTCPeerConnection){if(e.RTCPeerConnection.prototype.addTrack&&t.version>=65)return g(e);var n=e.RTCPeerConnection.prototype.getLocalStreams;e.RTCPeerConnection.prototype.getLocalStreams=function(){var e=this,t=n.apply(this);return this._reverseStreams=this._reverseStreams||{},t.map((function(t){return e._reverseStreams[t.id]}))};var r=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(t){var n=this;if(this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},t.getTracks().forEach((function(e){if(n.getSenders().find((function(t){return t.track===e})))throw new DOMException("Track already exists.","InvalidAccessError")})),!this._reverseStreams[t.id]){var o=new e.MediaStream(t.getTracks());this._streams[t.id]=o,this._reverseStreams[o.id]=t,t=o}r.apply(this,[t])};var o=e.RTCPeerConnection.prototype.removeStream;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){var r=this;if("closed"===this.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");var o=[].slice.call(arguments,1);if(1!==o.length||!o[0].getTracks().find((function(e){return e===t})))throw new DOMException("The adapter.js addTrack polyfill only supports a single stream which is associated with the specified track.","NotSupportedError");if(this.getSenders().find((function(e){return e.track===t})))throw new DOMException("Track already exists.","InvalidAccessError");this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{};var a=this._streams[n.id];if(a)a.addTrack(t),Promise.resolve().then((function(){r.dispatchEvent(new Event("negotiationneeded"))}));else{var i=new e.MediaStream([t]);this._streams[n.id]=i,this._reverseStreams[i.id]=n,this.addStream(i)}return this.getSenders().find((function(e){return e.track===t}))},["createOffer","createAnswer"].forEach((function(t){var n=e.RTCPeerConnection.prototype[t],r=c({},t,(function(){var e=this,t=arguments;return arguments.length&&"function"==typeof arguments[0]?n.apply(this,[function(n){var r=s(e,n);t[0].apply(null,[r])},function(e){t[1]&&t[1].apply(null,e)},arguments[2]]):n.apply(this,arguments).then((function(t){return s(e,t)}))}));e.RTCPeerConnection.prototype[t]=r[t]}));var a=e.RTCPeerConnection.prototype.setLocalDescription;e.RTCPeerConnection.prototype.setLocalDescription=function(){return arguments.length&&arguments[0].type?(arguments[0]=l(this,arguments[0]),a.apply(this,arguments)):a.apply(this,arguments)};var i=Object.getOwnPropertyDescriptor(e.RTCPeerConnection.prototype,"localDescription");Object.defineProperty(e.RTCPeerConnection.prototype,"localDescription",{get:function(){var e=i.get.apply(this);return""===e.type?e:s(this,e)}}),e.RTCPeerConnection.prototype.removeTrack=function(e){var t,n=this;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");this._streams=this._streams||{},Object.keys(this._streams).forEach((function(r){n._streams[r].getTracks().find((function(t){return e.track===t}))&&(t=n._streams[r])})),t&&(1===t.getTracks().length?this.removeStream(this._reverseStreams[t.id]):t.removeTrack(e.track),this.dispatchEvent(new Event("negotiationneeded")))}}function s(e,t){var n=t.sdp;return Object.keys(e._reverseStreams||[]).forEach((function(t){var 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 l(e,t){var n=t.sdp;return Object.keys(e._reverseStreams||[]).forEach((function(t){var 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})}}function y(e,t){!e.RTCPeerConnection&&e.webkitRTCPeerConnection&&(e.RTCPeerConnection=e.webkitRTCPeerConnection),e.RTCPeerConnection&&t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach((function(t){var n=e.RTCPeerConnection.prototype[t],r=c({},t,(function(){return arguments[0]=new("addIceCandidate"===t?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),n.apply(this,arguments)}));e.RTCPeerConnection.prototype[t]=r[t]}))}function b(e,t){r.wrapPeerConnectionEvent(e,"negotiationneeded",(function(e){var n=e.target;if(!(t.version<72||n.getConfiguration&&"plan-b"===n.getConfiguration().sdpSemantics)||"stable"===n.signalingState)return e}))}},{"../utils.js":11,"./getdisplaymedia":4,"./getusermedia":5}],4:[function(e,t,n){function r(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((function(t){var r=n.video&&n.video.width,o=n.video&&n.video.height,a=n.video&&n.video.frameRate;return n.video={mandatory:{chromeMediaSource:"desktop",chromeMediaSourceId:t,maxFrameRate:a||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"))}Object.defineProperty(n,"__esModule",{value:!0}),n.shimGetDisplayMedia=r},{}],5:[function(e,t,n){function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function o(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==a(e)&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var c=i?Object.getOwnPropertyDescriptor(e,s):null;c&&(c.get||c.set)?Object.defineProperty(o,s,c):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o}function a(e){return a="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},a(e)}Object.defineProperty(n,"__esModule",{value:!0}),n.shimGetUserMedia=s;var i=o(e("../utils.js")).log;function s(e,t){var n=e&&e.navigator;if(n.mediaDevices){var r=function(e){if("object"!==a(e)||e.mandatory||e.optional)return e;var t={};return Object.keys(e).forEach((function(n){if("require"!==n&&"advanced"!==n&&"mediaSource"!==n){var r="object"===a(e[n])?e[n]:{ideal:e[n]};void 0!==r.exact&&"number"==typeof r.exact&&(r.min=r.max=r.exact);var 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||[];var i={};"number"==typeof r.ideal?(i[o("min",n)]=r.ideal,t.optional.push(i),(i={})[o("max",n)]=r.ideal,t.optional.push(i)):(i[o("",n)]=r.ideal,t.optional.push(i))}void 0!==r.exact&&"number"!=typeof r.exact?(t.mandatory=t.mandatory||{},t.mandatory[o("",n)]=r.exact):["min","max"].forEach((function(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"===a(e.audio)){var s=function(e,t,n){t in e&&!(n in e)&&(e[n]=e[t],delete e[t])};s((e=JSON.parse(JSON.stringify(e))).audio,"autoGainControl","googAutoGainControl"),s(e.audio,"noiseSuppression","googNoiseSuppression"),e.audio=r(e.audio)}if(e&&"object"===a(e.video)){var c=e.video.facingMode;c=c&&("object"===a(c)?c:{ideal:c});var l,u=t.version<66;if(c&&("user"===c.exact||"environment"===c.exact||"user"===c.ideal||"environment"===c.ideal)&&(!n.mediaDevices.getSupportedConstraints||!n.mediaDevices.getSupportedConstraints().facingMode||u)&&(delete e.video.facingMode,"environment"===c.exact||"environment"===c.ideal?l=["back","rear"]:"user"!==c.exact&&"user"!==c.ideal||(l=["front"]),l))return n.mediaDevices.enumerateDevices().then((function(t){var n=(t=t.filter((function(e){return"videoinput"===e.kind}))).find((function(e){return l.some((function(t){return e.label.toLowerCase().includes(t)}))}));return!n&&t.length&&l.includes("back")&&(n=t[t.length-1]),n&&(e.video.deviceId=c.exact?{exact:n.deviceId}:{ideal:n.deviceId}),e.video=r(e.video),i("chrome: "+JSON.stringify(e)),o(e)}));e.video=r(e.video)}return i("chrome: "+JSON.stringify(e)),o(e)},s=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:function(){return this.name+(this.message&&": ")+this.message}}},c=function(e,t,r){o(e,(function(e){n.webkitGetUserMedia(e,t,(function(e){r&&r(s(e))}))}))};if(n.getUserMedia=c.bind(n),n.mediaDevices.getUserMedia){var l=n.mediaDevices.getUserMedia.bind(n.mediaDevices);n.mediaDevices.getUserMedia=function(e){return o(e,(function(e){return l(e).then((function(t){if(e.audio&&!t.getAudioTracks().length||e.video&&!t.getVideoTracks().length)throw t.getTracks().forEach((function(e){e.stop()})),new DOMException("","NotFoundError");return t}),(function(e){return Promise.reject(s(e))}))}))}}}}},{"../utils.js":11}],6:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.removeExtmapAllowMixed=h,n.shimAddIceCandidateNullOrEmpty=m,n.shimConnectionState=f,n.shimMaxMessageSize=d,n.shimParameterlessSetLocalDescription=v,n.shimRTCIceCandidate=l,n.shimRTCIceCandidateRelayProtocol=u,n.shimSendThrowTypeError=p;var r=s(e("sdp")),o=i(e("./utils"));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}function i(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==c(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function s(e){return e&&e.__esModule?e:{default:e}}function c(e){return c="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},c(e)}function l(e){if(!(!e.RTCIceCandidate||e.RTCIceCandidate&&"foundation"in e.RTCIceCandidate.prototype)){var t=e.RTCIceCandidate;e.RTCIceCandidate=function(e){if("object"===c(e)&&e.candidate&&0===e.candidate.indexOf("a=")&&((e=JSON.parse(JSON.stringify(e))).candidate=e.candidate.substring(2)),e.candidate&&e.candidate.length){var n=new t(e),o=r.default.parseCandidate(e.candidate);for(var a in o)a in n||Object.defineProperty(n,a,{value:o[a]});return n.toJSON=function(){return{candidate:n.candidate,sdpMid:n.sdpMid,sdpMLineIndex:n.sdpMLineIndex,usernameFragment:n.usernameFragment}},n}return new t(e)},e.RTCIceCandidate.prototype=t.prototype,o.wrapPeerConnectionEvent(e,"icecandidate",(function(t){return t.candidate&&Object.defineProperty(t,"candidate",{value:new e.RTCIceCandidate(t.candidate),writable:"false"}),t}))}}function u(e){!e.RTCIceCandidate||e.RTCIceCandidate&&"relayProtocol"in e.RTCIceCandidate.prototype||o.wrapPeerConnectionEvent(e,"icecandidate",(function(e){if(e.candidate){var t=r.default.parseCandidate(e.candidate.candidate);"relay"===t.type&&(e.candidate.relayProtocol={0:"tls",1:"tcp",2:"udp"}[t.priority>>24])}return e}))}function d(e,t){if(e.RTCPeerConnection){"sctp"in e.RTCPeerConnection.prototype||Object.defineProperty(e.RTCPeerConnection.prototype,"sctp",{get:function(){return void 0===this._sctp?null:this._sctp}});var n=function(e){if(!e||!e.sdp)return!1;var t=r.default.splitSections(e.sdp);return t.shift(),t.some((function(e){var t=r.default.parseMLine(e);return t&&"application"===t.kind&&-1!==t.protocol.indexOf("SCTP")}))},o=function(e){var t=e.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);if(null===t||t.length<2)return-1;var n=parseInt(t[1],10);return n!=n?-1:n},a=function(e){var 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){var o=65536;"firefox"===t.browser&&57===t.version&&(o=65535);var a=r.default.matchPrefix(e.sdp,"a=max-message-size:");return a.length>0?o=parseInt(a[0].substring(19),10):"firefox"===t.browser&&-1!==n&&(o=2147483637),o},s=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){if(this._sctp=null,"chrome"===t.browser&&t.version>=76&&"plan-b"===this.getConfiguration().sdpSemantics&&Object.defineProperty(this,"sctp",{get:function(){return void 0===this._sctp?null:this._sctp},enumerable:!0,configurable:!0}),n(arguments[0])){var e,r=o(arguments[0]),c=a(r),l=i(arguments[0],r);e=0===c&&0===l?Number.POSITIVE_INFINITY:0===c||0===l?Math.max(c,l):Math.min(c,l);var u={};Object.defineProperty(u,"maxMessageSize",{get:function(){return e}}),this._sctp=u}return s.apply(this,arguments)}}}function p(e){if(e.RTCPeerConnection&&"createDataChannel"in e.RTCPeerConnection.prototype){var t=e.RTCPeerConnection.prototype.createDataChannel;e.RTCPeerConnection.prototype.createDataChannel=function(){var e=t.apply(this,arguments);return n(e,this),e},o.wrapPeerConnectionEvent(e,"datachannel",(function(e){return n(e.channel,e.target),e}))}function n(e,t){var n=e.send;e.send=function(){var 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)}}}function f(e){if(e.RTCPeerConnection&&!("connectionState"in e.RTCPeerConnection.prototype)){var t=e.RTCPeerConnection.prototype;Object.defineProperty(t,"connectionState",{get:function(){return{completed:"connected",checking:"connecting"}[this.iceConnectionState]||this.iceConnectionState},enumerable:!0,configurable:!0}),Object.defineProperty(t,"onconnectionstatechange",{get:function(){return this._onconnectionstatechange||null},set:function(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((function(e){var n=t[e];t[e]=function(){return this._connectionstatechangepoly||(this._connectionstatechangepoly=function(e){var t=e.target;if(t._lastConnectionState!==t.connectionState){t._lastConnectionState=t.connectionState;var n=new Event("connectionstatechange",e);t.dispatchEvent(n)}return e},this.addEventListener("iceconnectionstatechange",this._connectionstatechangepoly)),n.apply(this,arguments)}}))}}function h(e,t){if(e.RTCPeerConnection&&!("chrome"===t.browser&&t.version>=71||"safari"===t.browser&&t.version>=605)){var n=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(t){if(t&&t.sdp&&-1!==t.sdp.indexOf("\na=extmap-allow-mixed")){var r=t.sdp.split("\n").filter((function(e){return"a=extmap-allow-mixed"!==e.trim()})).join("\n");e.RTCSessionDescription&&t instanceof e.RTCSessionDescription?arguments[0]=new e.RTCSessionDescription({type:t.type,sdp:r}):t.sdp=r}return n.apply(this,arguments)}}}function m(e,t){if(e.RTCPeerConnection&&e.RTCPeerConnection.prototype){var 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())})}}function v(e,t){if(e.RTCPeerConnection&&e.RTCPeerConnection.prototype){var n=e.RTCPeerConnection.prototype.setLocalDescription;n&&0!==n.length&&(e.RTCPeerConnection.prototype.setLocalDescription=function(){var e=this,t=arguments[0]||{};if("object"!==c(t)||t.type&&t.sdp)return n.apply(this,arguments);if(!(t={type:t.type,sdp:t.sdp}).type)switch(this.signalingState){case"stable":case"have-local-offer":case"have-remote-pranswer":t.type="offer";break;default:t.type="answer"}return t.sdp||"offer"!==t.type&&"answer"!==t.type?n.apply(this,[t]):("offer"===t.type?this.createOffer:this.createAnswer).apply(this).then((function(t){return n.apply(e,[t])}))})}}},{"./utils":11,sdp:12}],7:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.shimAddTransceiver=C,n.shimCreateAnswer=S,n.shimCreateOffer=I,Object.defineProperty(n,"shimGetDisplayMedia",{enumerable:!0,get:function(){return a.shimGetDisplayMedia}}),n.shimGetParameters=w,Object.defineProperty(n,"shimGetUserMedia",{enumerable:!0,get:function(){return o.shimGetUserMedia}}),n.shimOnTrack=_,n.shimPeerConnection=y,n.shimRTCDataChannel=k,n.shimReceiverGetStats=O,n.shimRemoveStream=M,n.shimSenderGetStats=b;var r=s(e("../utils")),o=e("./getusermedia"),a=e("./getdisplaymedia");function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}function s(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==g(e)&&"function"!=typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}function c(e){return p(e)||d(e)||u(e)||l()}function l(){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 u(e,t){if(e){if("string"==typeof e)return f(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)?f(e,t):void 0}}function d(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function p(e){if(Array.isArray(e))return f(e)}function f(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 h(e,t,n){return(t=m(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e){var t=v(e,"string");return"symbol"===g(t)?t:String(t)}function v(e,t){if("object"!==g(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==g(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function g(e){return g="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},g(e)}function _(e){"object"===g(e)&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get:function(){return{receiver:this.receiver}}})}function y(e,t){if("object"===g(e)&&(e.RTCPeerConnection||e.mozRTCPeerConnection)){!e.RTCPeerConnection&&e.mozRTCPeerConnection&&(e.RTCPeerConnection=e.mozRTCPeerConnection),t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach((function(t){var n=e.RTCPeerConnection.prototype[t],r=h({},t,(function(){return arguments[0]=new("addIceCandidate"===t?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),n.apply(this,arguments)}));e.RTCPeerConnection.prototype[t]=r[t]}));var 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(){var e=Array.prototype.slice.call(arguments),o=e[0],a=e[1],i=e[2];return r.apply(this,[o||null]).then((function(e){if(t.version<53&&!a)try{e.forEach((function(e){e.type=n[e.type]||e.type}))}catch(r){if("TypeError"!==r.name)throw r;e.forEach((function(t,r){e.set(r,Object.assign({},t,{type:n[t.type]||t.type}))}))}return e})).then(a,i)}}}function b(e){if("object"===g(e)&&e.RTCPeerConnection&&e.RTCRtpSender&&(!e.RTCRtpSender||!("getStats"in e.RTCRtpSender.prototype))){var t=e.RTCPeerConnection.prototype.getSenders;t&&(e.RTCPeerConnection.prototype.getSenders=function(){var e=this,n=t.apply(this,[]);return n.forEach((function(t){return t._pc=e})),n});var n=e.RTCPeerConnection.prototype.addTrack;n&&(e.RTCPeerConnection.prototype.addTrack=function(){var 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 O(e){if("object"===g(e)&&e.RTCPeerConnection&&e.RTCRtpSender&&(!e.RTCRtpSender||!("getStats"in e.RTCRtpReceiver.prototype))){var t=e.RTCPeerConnection.prototype.getReceivers;t&&(e.RTCPeerConnection.prototype.getReceivers=function(){var e=this,n=t.apply(this,[]);return n.forEach((function(t){return t._pc=e})),n}),r.wrapPeerConnectionEvent(e,"track",(function(e){return e.receiver._pc=e.srcElement,e})),e.RTCRtpReceiver.prototype.getStats=function(){return this._pc.getStats(this.track)}}}function M(e){e.RTCPeerConnection&&!("removeStream"in e.RTCPeerConnection.prototype)&&(e.RTCPeerConnection.prototype.removeStream=function(e){var t=this;r.deprecated("removeStream","removeTrack"),this.getSenders().forEach((function(n){n.track&&e.getTracks().includes(n.track)&&t.removeTrack(n)}))})}function k(e){e.DataChannel&&!e.RTCDataChannel&&(e.RTCDataChannel=e.DataChannel)}function C(e){if("object"===g(e)&&e.RTCPeerConnection){var t=e.RTCPeerConnection.prototype.addTransceiver;t&&(e.RTCPeerConnection.prototype.addTransceiver=function(){this.setParametersPromises=[];var e=arguments[1]&&arguments[1].sendEncodings;void 0===e&&(e=[]);var n=(e=c(e)).length>0;n&&e.forEach((function(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")}));var r=t.apply(this,arguments);if(n){var o=r.sender,a=o.getParameters();(!("encodings"in a)||1===a.encodings.length&&0===Object.keys(a.encodings[0]).length)&&(a.encodings=e,o.sendEncodings=e,this.setParametersPromises.push(o.setParameters(a).then((function(){delete o.sendEncodings})).catch((function(){delete o.sendEncodings}))))}return r})}}function w(e){if("object"===g(e)&&e.RTCRtpSender){var t=e.RTCRtpSender.prototype.getParameters;t&&(e.RTCRtpSender.prototype.getParameters=function(){var e=t.apply(this,arguments);return"encodings"in e||(e.encodings=[].concat(this.sendEncodings||[{}])),e})}}function I(e){if("object"===g(e)&&e.RTCPeerConnection){var t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(){var e=arguments,n=this;return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then((function(){return t.apply(n,e)})).finally((function(){n.setParametersPromises=[]})):t.apply(this,arguments)}}}function S(e){if("object"===g(e)&&e.RTCPeerConnection){var t=e.RTCPeerConnection.prototype.createAnswer;e.RTCPeerConnection.prototype.createAnswer=function(){var e=arguments,n=this;return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then((function(){return t.apply(n,e)})).finally((function(){n.setParametersPromises=[]})):t.apply(this,arguments)}}}},{"../utils":11,"./getdisplaymedia":8,"./getusermedia":9}],8:[function(e,t,n){function r(e,t){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||e.navigator.mediaDevices&&(e.navigator.mediaDevices.getDisplayMedia=function(n){if(!n||!n.video){var r=new DOMException("getDisplayMedia without video constraints is undefined");return r.name="NotFoundError",r.code=8,Promise.reject(r)}return!0===n.video?n.video={mediaSource:t}:n.video.mediaSource=t,e.navigator.mediaDevices.getUserMedia(n)})}Object.defineProperty(n,"__esModule",{value:!0}),n.shimGetDisplayMedia=r},{}],9:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.shimGetUserMedia=s;var r=a(e("../utils"));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}function a(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var c=a?Object.getOwnPropertyDescriptor(e,s):null;c&&(c.get||c.set)?Object.defineProperty(r,s,c):r[s]=e[s]}return r.default=e,n&&n.set(e,r),r}function i(e){return 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},i(e)}function s(e,t){var n=e&&e.navigator,o=e&&e.MediaStreamTrack;if(n.getUserMedia=function(e,t,o){r.deprecated("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),n.mediaDevices.getUserMedia(e).then(t,o)},!(t.version>55&&"autoGainControl"in n.mediaDevices.getSupportedConstraints())){var a=function(e,t,n){t in e&&!(n in e)&&(e[n]=e[t],delete e[t])},s=n.mediaDevices.getUserMedia.bind(n.mediaDevices);if(n.mediaDevices.getUserMedia=function(e){return"object"===i(e)&&"object"===i(e.audio)&&(e=JSON.parse(JSON.stringify(e)),a(e.audio,"autoGainControl","mozAutoGainControl"),a(e.audio,"noiseSuppression","mozNoiseSuppression")),s(e)},o&&o.prototype.getSettings){var c=o.prototype.getSettings;o.prototype.getSettings=function(){var e=c.apply(this,arguments);return a(e,"mozAutoGainControl","autoGainControl"),a(e,"mozNoiseSuppression","noiseSuppression"),e}}if(o&&o.prototype.applyConstraints){var l=o.prototype.applyConstraints;o.prototype.applyConstraints=function(e){return"audio"===this.kind&&"object"===i(e)&&(e=JSON.parse(JSON.stringify(e)),a(e,"autoGainControl","mozAutoGainControl"),a(e,"noiseSuppression","mozNoiseSuppression")),l.apply(this,[e])}}}}},{"../utils":11}],10:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.shimAudioContext=m,n.shimCallbacksAPI=l,n.shimConstraints=d,n.shimCreateOfferLegacy=h,n.shimGetUserMedia=u,n.shimLocalStreamsAPI=s,n.shimRTCIceServerUrls=p,n.shimRemoteStreamsAPI=c,n.shimTrackEventTransceiver=f;var r=a(e("../utils"));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}function a(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var c=a?Object.getOwnPropertyDescriptor(e,s):null;c&&(c.get||c.set)?Object.defineProperty(r,s,c):r[s]=e[s]}return r.default=e,n&&n.set(e,r),r}function i(e){return 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},i(e)}function s(e){if("object"===i(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)){var t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addStream=function(e){var n=this;this._localStreams||(this._localStreams=[]),this._localStreams.includes(e)||this._localStreams.push(e),e.getAudioTracks().forEach((function(r){return t.call(n,r,e)})),e.getVideoTracks().forEach((function(r){return t.call(n,r,e)}))},e.RTCPeerConnection.prototype.addTrack=function(e){for(var n=this,r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];return o&&o.forEach((function(e){n._localStreams?n._localStreams.includes(e)||n._localStreams.push(e):n._localStreams=[e]})),t.apply(this,arguments)}}"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(e){var t=this;this._localStreams||(this._localStreams=[]);var n=this._localStreams.indexOf(e);if(-1!==n){this._localStreams.splice(n,1);var r=e.getTracks();this.getSenders().forEach((function(e){r.includes(e.track)&&t.removeTrack(e)}))}})}}function c(e){if("object"===i(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:function(){return this._onaddstream},set:function(e){var t=this;this._onaddstream&&(this.removeEventListener("addstream",this._onaddstream),this.removeEventListener("track",this._onaddstreampoly)),this.addEventListener("addstream",this._onaddstream=e),this.addEventListener("track",this._onaddstreampoly=function(e){e.streams.forEach((function(e){if(t._remoteStreams||(t._remoteStreams=[]),!t._remoteStreams.includes(e)){t._remoteStreams.push(e);var n=new Event("addstream");n.stream=e,t.dispatchEvent(n)}}))})}});var t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){var e=this;return this._onaddstreampoly||this.addEventListener("track",this._onaddstreampoly=function(t){t.streams.forEach((function(t){if(e._remoteStreams||(e._remoteStreams=[]),!(e._remoteStreams.indexOf(t)>=0)){e._remoteStreams.push(t);var n=new Event("addstream");n.stream=t,e.dispatchEvent(n)}}))}),t.apply(e,arguments)}}}function l(e){if("object"===i(e)&&e.RTCPeerConnection){var t=e.RTCPeerConnection.prototype,n=t.createOffer,r=t.createAnswer,o=t.setLocalDescription,a=t.setRemoteDescription,s=t.addIceCandidate;t.createOffer=function(e,t){var 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){var n=arguments.length>=2?arguments[2]:arguments[0],o=r.apply(this,[n]);return t?(o.then(e,t),Promise.resolve()):o};var c=function(e,t,n){var r=o.apply(this,[e]);return n?(r.then(t,n),Promise.resolve()):r};t.setLocalDescription=c,c=function(e,t,n){var r=a.apply(this,[e]);return n?(r.then(t,n),Promise.resolve()):r},t.setRemoteDescription=c,c=function(e,t,n){var r=s.apply(this,[e]);return n?(r.then(t,n),Promise.resolve()):r},t.addIceCandidate=c}}function u(e){var t=e&&e.navigator;if(t.mediaDevices&&t.mediaDevices.getUserMedia){var n=t.mediaDevices,r=n.getUserMedia.bind(n);t.mediaDevices.getUserMedia=function(e){return r(d(e))}}!t.getUserMedia&&t.mediaDevices&&t.mediaDevices.getUserMedia&&(t.getUserMedia=function(e,n,r){t.mediaDevices.getUserMedia(e).then(n,r)}.bind(t))}function d(e){return e&&void 0!==e.video?Object.assign({},e,{video:r.compactObject(e.video)}):e}function p(e){if(e.RTCPeerConnection){var t=e.RTCPeerConnection;e.RTCPeerConnection=function(e,n){if(e&&e.iceServers){for(var o=[],a=0;a<e.iceServers.length;a++){var i=e.iceServers[a];void 0===i.urls&&i.url?(r.deprecated("RTCIceServer.url","RTCIceServer.urls"),(i=JSON.parse(JSON.stringify(i))).urls=i.url,delete i.url,o.push(i)):o.push(e.iceServers[a])}e.iceServers=o}return new t(e,n)},e.RTCPeerConnection.prototype=t.prototype,"generateCertificate"in t&&Object.defineProperty(e.RTCPeerConnection,"generateCertificate",{get:function(){return t.generateCertificate}})}}function f(e){"object"===i(e)&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get:function(){return{receiver:this.receiver}}})}function h(e){var t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(e){if(e){void 0!==e.offerToReceiveAudio&&(e.offerToReceiveAudio=!!e.offerToReceiveAudio);var n=this.getTransceivers().find((function(e){return"audio"===e.receiver.track.kind}));!1===e.offerToReceiveAudio&&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.offerToReceiveAudio||n||this.addTransceiver("audio",{direction:"recvonly"}),void 0!==e.offerToReceiveVideo&&(e.offerToReceiveVideo=!!e.offerToReceiveVideo);var r=this.getTransceivers().find((function(e){return"video"===e.receiver.track.kind}));!1===e.offerToReceiveVideo&&r?"sendrecv"===r.direction?r.setDirection?r.setDirection("sendonly"):r.direction="sendonly":"recvonly"===r.direction&&(r.setDirection?r.setDirection("inactive"):r.direction="inactive"):!0!==e.offerToReceiveVideo||r||this.addTransceiver("video",{direction:"recvonly"})}return t.apply(this,arguments)}}function m(e){"object"!==i(e)||e.AudioContext||(e.AudioContext=e.webkitAudioContext)}},{"../utils":11}],11:[function(e,t,n){function r(e,t,n){return(t=o(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){var t=a(e,"string");return"symbol"===i(t)?t:String(t)}function a(e,t){if("object"!==i(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function i(e){return 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},i(e)}Object.defineProperty(n,"__esModule",{value:!0}),n.compactObject=g,n.deprecated=h,n.detectBrowser=m,n.disableLog=d,n.disableWarnings=p,n.extractVersion=l,n.filterStats=y,n.log=f,n.walkStats=_,n.wrapPeerConnectionEvent=u;var s=!0,c=!0;function l(e,t,n){var r=e.match(t);return r&&r.length>=n&&parseInt(r[n],10)}function u(e,t,n){if(e.RTCPeerConnection){var r=e.RTCPeerConnection.prototype,o=r.addEventListener;r.addEventListener=function(e,r){if(e!==t)return o.apply(this,arguments);var a=function(e){var 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,a),o.apply(this,[e,a])};var a=r.removeEventListener;r.removeEventListener=function(e,n){if(e!==t||!this._eventMap||!this._eventMap[t])return a.apply(this,arguments);if(!this._eventMap[t].has(n))return a.apply(this,arguments);var 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,a.apply(this,[e,r])},Object.defineProperty(r,"on"+t,{get:function(){return this["_on"+t]},set:function(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 d(e){return"boolean"!=typeof e?new Error("Argument type: "+i(e)+". Please use a boolean."):(s=e,e?"adapter.js logging disabled":"adapter.js logging enabled")}function p(e){return"boolean"!=typeof e?new Error("Argument type: "+i(e)+". Please use a boolean."):(c=!e,"adapter.js deprecation warnings "+(e?"disabled":"enabled"))}function f(){if("object"===("undefined"==typeof window?"undefined":i(window))){if(s)return;"undefined"!=typeof console&&"function"==typeof console.log&&console.log.apply(console,arguments)}}function h(e,t){c&&console.warn(e+" is deprecated, please use "+t+" instead.")}function m(e){var t={browser:null,version:null};if(void 0===e||!e.navigator||!e.navigator.userAgent)return t.browser="Not a browser.",t;var n=e.navigator;if(n.mozGetUserMedia)t.browser="firefox",t.version=l(n.userAgent,/Firefox\/(\d+)\./,1);else if(n.webkitGetUserMedia||!1===e.isSecureContext&&e.webkitRTCPeerConnection)t.browser="chrome",t.version=l(n.userAgent,/Chrom(e|ium)\/(\d+)\./,2);else{if(!e.RTCPeerConnection||!n.userAgent.match(/AppleWebKit\/(\d+)\./))return t.browser="Not a supported browser.",t;t.browser="safari",t.version=l(n.userAgent,/AppleWebKit\/(\d+)\./,1),t.supportsUnifiedPlan=e.RTCRtpTransceiver&&"currentDirection"in e.RTCRtpTransceiver.prototype}return t}function v(e){return"[object Object]"===Object.prototype.toString.call(e)}function g(e){return v(e)?Object.keys(e).reduce((function(t,n){var o=v(e[n]),a=o?g(e[n]):e[n],i=o&&!Object.keys(a).length;return void 0===a||i?t:Object.assign(t,r({},n,a))}),{}):e}function _(e,t,n){t&&!n.has(t.id)&&(n.set(t.id,t),Object.keys(t).forEach((function(r){r.endsWith("Id")?_(e,e.get(t[r]),n):r.endsWith("Ids")&&t[r].forEach((function(t){_(e,e.get(t),n)}))})))}function y(e,t,n){var r=n?"outbound-rtp":"inbound-rtp",o=new Map;if(null===t)return o;var a=[];return e.forEach((function(e){"track"===e.type&&e.trackIdentifier===t.id&&a.push(e)})),a.forEach((function(t){e.forEach((function(n){n.type===r&&n.trackId===t.id&&_(e,n,o)}))})),o}},{}],12:[function(e,t,n){var 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},o={generateIdentifier:function(){return Math.random().toString(36).substring(2,12)}};o.localCName=o.generateIdentifier(),o.splitLines=function(e){return e.trim().split("\n").map((function(e){return e.trim()}))},o.splitSections=function(e){return e.split("\nm=").map((function(e,t){return(t>0?"m="+e:e).trim()+"\r\n"}))},o.getDescription=function(e){var t=o.splitSections(e);return t&&t[0]},o.getMediaSections=function(e){var t=o.splitSections(e);return t.shift(),t},o.matchPrefix=function(e,t){return o.splitLines(e).filter((function(e){return 0===e.indexOf(t)}))},o.parseCandidate=function(e){for(var t=void 0,n={foundation:(t=0===e.indexOf("a=candidate:")?e.substring(12).split(" "):e.substring(10).split(" "))[0],component:{1:"rtp",2:"rtcp"}[t[1]]||t[1],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:void 0===n[t[r]]&&(n[t[r]]=t[r+1])}return n},o.writeCandidate=function(e){var t=[];t.push(e.foundation);var n=e.component;"rtp"===n?t.push(1):"rtcp"===n?t.push(2):t.push(n),t.push(e.protocol.toUpperCase()),t.push(e.priority),t.push(e.address||e.ip),t.push(e.port);var r=e.type;return t.push("typ"),t.push(r),"host"!==r&&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(" ")},o.parseIceOptions=function(e){return e.substring(14).split(" ")},o.parseRtpMap=function(e){var t=e.substring(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},o.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"},o.parseExtmap=function(e){var t=e.substring(9).split(" ");return{id:parseInt(t[0],10),direction:t[0].indexOf("/")>0?t[0].split("/")[1]:"sendrecv",uri:t[1],attributes:t.slice(2).join(" ")}},o.writeExtmap=function(e){return"a=extmap:"+(e.id||e.preferredId)+(e.direction&&"sendrecv"!==e.direction?"/"+e.direction:"")+" "+e.uri+(e.attributes?" "+e.attributes:"")+"\r\n"},o.parseFmtp=function(e){for(var t={},n=void 0,r=e.substring(e.indexOf(" ")+1).split(";"),o=0;o<r.length;o++)t[(n=r[o].trim().split("="))[0].trim()]=n[1];return t},o.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){void 0!==e.parameters[t]?r.push(t+"="+e.parameters[t]):r.push(t)})),t+="a=fmtp:"+n+" "+r.join(";")+"\r\n"}return t},o.parseRtcpFb=function(e){var t=e.substring(e.indexOf(" ")+1).split(" ");return{type:t.shift(),parameter:t.join(" ")}},o.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},o.parseSsrcMedia=function(e){var t=e.indexOf(" "),n={ssrc:parseInt(e.substring(7,t),10)},r=e.indexOf(":",t);return r>-1?(n.attribute=e.substring(t+1,r),n.value=e.substring(r+1)):n.attribute=e.substring(t+1),n},o.parseSsrcGroup=function(e){var t=e.substring(13).split(" ");return{semantics:t.shift(),ssrcs:t.map((function(e){return parseInt(e,10)}))}},o.getMid=function(e){var t=o.matchPrefix(e,"a=mid:")[0];if(t)return t.substring(6)},o.parseFingerprint=function(e){var t=e.substring(14).split(" ");return{algorithm:t[0].toLowerCase(),value:t[1].toUpperCase()}},o.getDtlsParameters=function(e,t){return{role:"auto",fingerprints:o.matchPrefix(e+t,"a=fingerprint:").map(o.parseFingerprint)}},o.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},o.parseCryptoLine=function(e){var t=e.substring(9).split(" ");return{tag:parseInt(t[0],10),cryptoSuite:t[1],keyParams:t[2],sessionParams:t.slice(3)}},o.writeCryptoLine=function(e){return"a=crypto:"+e.tag+" "+e.cryptoSuite+" "+("object"===r(e.keyParams)?o.writeCryptoKeyParams(e.keyParams):e.keyParams)+(e.sessionParams?" "+e.sessionParams.join(" "):"")+"\r\n"},o.parseCryptoKeyParams=function(e){if(0!==e.indexOf("inline:"))return null;var t=e.substring(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}},o.writeCryptoKeyParams=function(e){return e.keyMethod+":"+e.keySalt+(e.lifeTime?"|"+e.lifeTime:"")+(e.mkiValue&&e.mkiLength?"|"+e.mkiValue+":"+e.mkiLength:"")},o.getCryptoParameters=function(e,t){return o.matchPrefix(e+t,"a=crypto:").map(o.parseCryptoLine)},o.getIceParameters=function(e,t){var n=o.matchPrefix(e+t,"a=ice-ufrag:")[0],r=o.matchPrefix(e+t,"a=ice-pwd:")[0];return n&&r?{usernameFragment:n.substring(12),password:r.substring(10)}:null},o.writeIceParameters=function(e){var t="a=ice-ufrag:"+e.usernameFragment+"\r\na=ice-pwd:"+e.password+"\r\n";return e.iceLite&&(t+="a=ice-lite\r\n"),t},o.parseRtpParameters=function(e){var t={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},n=o.splitLines(e)[0].split(" ");t.profile=n[2];for(var r=3;r<n.length;r++){var a=n[r],i=o.matchPrefix(e,"a=rtpmap:"+a+" ")[0];if(i){var s=o.parseRtpMap(i),c=o.matchPrefix(e,"a=fmtp:"+a+" ");switch(s.parameters=c.length?o.parseFmtp(c[0]):{},s.rtcpFeedback=o.matchPrefix(e,"a=rtcp-fb:"+a+" ").map(o.parseRtcpFb),t.codecs.push(s),s.name.toUpperCase()){case"RED":case"ULPFEC":t.fecMechanisms.push(s.name.toUpperCase())}}}o.matchPrefix(e,"a=extmap:").forEach((function(e){t.headerExtensions.push(o.parseExtmap(e))}));var l=o.matchPrefix(e,"a=rtcp-fb:* ").map(o.parseRtcpFb);return t.codecs.forEach((function(e){l.forEach((function(t){e.rtcpFeedback.find((function(e){return e.type===t.type&&e.parameter===t.parameter}))||e.rtcpFeedback.push(t)}))})),t},o.writeRtpDescription=function(e,t){var n="";n+="m="+e+" ",n+=t.codecs.length>0?"9":"0",n+=" "+(t.profile||"UDP/TLS/RTP/SAVPF")+" ",n+=t.codecs.map((function(e){return void 0!==e.preferredPayloadType?e.preferredPayloadType:e.payloadType})).join(" ")+"\r\n",n+="c=IN IP4 0.0.0.0\r\n",n+="a=rtcp:9 IN IP4 0.0.0.0\r\n",t.codecs.forEach((function(e){n+=o.writeRtpMap(e),n+=o.writeFmtp(e),n+=o.writeRtcpFb(e)}));var r=0;return t.codecs.forEach((function(e){e.maxptime>r&&(r=e.maxptime)})),r>0&&(n+="a=maxptime:"+r+"\r\n"),t.headerExtensions&&t.headerExtensions.forEach((function(e){n+=o.writeExtmap(e)})),n},o.parseRtpEncodingParameters=function(e){var t=[],n=o.parseRtpParameters(e),r=-1!==n.fecMechanisms.indexOf("RED"),a=-1!==n.fecMechanisms.indexOf("ULPFEC"),i=o.matchPrefix(e,"a=ssrc:").map((function(e){return o.parseSsrcMedia(e)})).filter((function(e){return"cname"===e.attribute})),s=i.length>0&&i[0].ssrc,c=void 0,l=o.matchPrefix(e,"a=ssrc-group:FID").map((function(e){return e.substring(17).split(" ").map((function(e){return parseInt(e,10)}))}));l.length>0&&l[0].length>1&&l[0][0]===s&&(c=l[0][1]),n.codecs.forEach((function(e){if("RTX"===e.name.toUpperCase()&&e.parameters.apt){var n={ssrc:s,codecPayloadType:parseInt(e.parameters.apt,10)};s&&c&&(n.rtx={ssrc:c}),t.push(n),r&&((n=JSON.parse(JSON.stringify(n))).fec={ssrc:s,mechanism:a?"red+ulpfec":"red"},t.push(n))}})),0===t.length&&s&&t.push({ssrc:s});var u=o.matchPrefix(e,"b=");return u.length&&(u=0===u[0].indexOf("b=TIAS:")?parseInt(u[0].substring(7),10):0===u[0].indexOf("b=AS:")?1e3*parseInt(u[0].substring(5),10)*.95-16e3:void 0,t.forEach((function(e){e.maxBitrate=u}))),t},o.parseRtcpParameters=function(e){var t={},n=o.matchPrefix(e,"a=ssrc:").map((function(e){return o.parseSsrcMedia(e)})).filter((function(e){return"cname"===e.attribute}))[0];n&&(t.cname=n.value,t.ssrc=n.ssrc);var r=o.matchPrefix(e,"a=rtcp-rsize");t.reducedSize=r.length>0,t.compound=0===r.length;var a=o.matchPrefix(e,"a=rtcp-mux");return t.mux=a.length>0,t},o.writeRtcpParameters=function(e){var t="";return e.reducedSize&&(t+="a=rtcp-rsize\r\n"),e.mux&&(t+="a=rtcp-mux\r\n"),void 0!==e.ssrc&&e.cname&&(t+="a=ssrc:"+e.ssrc+" cname:"+e.cname+"\r\n"),t},o.parseMsid=function(e){var t=void 0,n=o.matchPrefix(e,"a=msid:");if(1===n.length)return{stream:(t=n[0].substring(7).split(" "))[0],track:t[1]};var r=o.matchPrefix(e,"a=ssrc:").map((function(e){return o.parseSsrcMedia(e)})).filter((function(e){return"msid"===e.attribute}));return r.length>0?{stream:(t=r[0].value.split(" "))[0],track:t[1]}:void 0},o.parseSctpDescription=function(e){var t=o.parseMLine(e),n=o.matchPrefix(e,"a=max-message-size:"),r=void 0;n.length>0&&(r=parseInt(n[0].substring(19),10)),isNaN(r)&&(r=65536);var a=o.matchPrefix(e,"a=sctp-port:");if(a.length>0)return{port:parseInt(a[0].substring(12),10),protocol:t.fmt,maxMessageSize:r};var i=o.matchPrefix(e,"a=sctpmap:");if(i.length>0){var s=i[0].substring(10).split(" ");return{port:parseInt(s[0],10),protocol:s[1],maxMessageSize:r}}},o.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("")},o.generateSessionId=function(){return Math.random().toString().substr(2,22)},o.writeSessionBoilerplate=function(e,t,n){var r=void 0!==t?t:2;return"v=0\r\no="+(n||"thisisadapterortc")+" "+(e||o.generateSessionId())+" "+r+" IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\n"},o.getDirection=function(e,t){for(var n=o.splitLines(e),r=0;r<n.length;r++)switch(n[r]){case"a=sendrecv":case"a=sendonly":case"a=recvonly":case"a=inactive":return n[r].substring(2)}return t?o.getDirection(t):"sendrecv"},o.getKind=function(e){return o.splitLines(e)[0].split(" ")[0].substring(2)},o.isRejected=function(e){return"0"===e.split(" ",2)[1]},o.parseMLine=function(e){var t=o.splitLines(e)[0].substring(2).split(" ");return{kind:t[0],port:parseInt(t[1],10),protocol:t[2],fmt:t.slice(3).join(" ")}},o.parseOLine=function(e){var t=o.matchPrefix(e,"o=")[0].substring(2).split(" ");return{username:t[0],sessionId:t[1],sessionVersion:parseInt(t[2],10),netType:t[3],addressType:t[4],address:t[5]}},o.isValidSDP=function(e){if("string"!=typeof e||0===e.length)return!1;for(var t=o.splitLines(e),n=0;n<t.length;n++)if(t[n].length<2||"="!==t[n].charAt(1))return!1;return!0},"object"===(void 0===t?"undefined":r(t))&&(t.exports=o)},{}]},{},[1])(1)}({exports:{}});var No="4.15.14",xo={},Ro=Kr,Po=$r,Uo=Object.keys||function(e){return Ro(e,Po)},Vo=L,Bo=an,Fo=on,Go=un,zo=fe,Ho=Uo;xo.f=Vo&&!Bo?Object.defineProperties:function(e,t){Go(e);for(var n,r=zo(t),o=Ho(t),a=o.length,i=0;a>i;)Fo.f(e,n=o[i++],r[n]);return e};var Yo,qo=Ce("document","documentElement"),Wo=un,Ko=xo,$o=$r,Jo=qn,Qo=qo,Xo=qt,Zo=Yn("IE_PROTO"),ea=function(){},ta=function(e){return"<script>"+e+"<\/script>"},na=function(e){e.write(ta("")),e.close();var t=e.parentWindow.Object;return e=null,t},ra=function(){try{Yo=new ActiveXObject("htmlfile")}catch(o){}var e,t;ra="undefined"!=typeof document?document.domain&&Yo?na(Yo):((t=Xo("iframe")).style.display="none",Qo.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(ta("document.F=Object")),e.close(),e.F):na(Yo);for(var n=$o.length;n--;)delete ra.prototype[$o[n]];return ra()};Jo[Zo]=!0;var oa=Object.create||function(e,t){var n;return null!==e?(ea.prototype=Wo(e),n=new ea,ea.prototype=null,n[Zo]=e):n=ra(),void 0===t?n:Ko.f(n,t)},aa=Dt,ia=oa,sa=on.f,ca=aa("unscopables"),la=Array.prototype;null==la[ca]&&sa(la,ca,{configurable:!0,value:ia(null)});var ua,da,pa,fa=function(e){la[ca][e]=!0},ha={},ma=!D((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),va=mt,ga=ge,_a=pt,ya=ma,ba=Yn("IE_PROTO"),Oa=Object,Ma=Oa.prototype,ka=ya?Oa.getPrototypeOf:function(e){var t=_a(e);if(va(t,ba))return t[ba];var n=t.constructor;return ga(n)&&t instanceof n?n.prototype:t instanceof Oa?Ma:null},Ca=D,wa=ge,Ia=be,Sa=ka,Ta=kr,Ea=Dt("iterator"),ja=!1;[].keys&&("next"in(pa=[].keys())?(da=Sa(Sa(pa)))!==Object.prototype&&(ua=da):ja=!0);var Da=!Ia(ua)||Ca((function(){var e={};return ua[Ea].call(e)!==e}));Da&&(ua={}),wa(ua[Ea])||Ta(ua,Ea,(function(){return this}));var La={IteratorPrototype:ua,BUGGY_SAFARI_ITERATORS:ja},Aa=on.f,Na=mt,xa=Dt("toStringTag"),Ra=function(e,t,n){e&&!n&&(e=e.prototype),e&&!Na(e,xa)&&Aa(e,xa,{configurable:!0,value:t})},Pa=La.IteratorPrototype,Ua=oa,Va=z,Ba=Ra,Fa=ha,Ga=function(){return this},za=function(e,t,n,r){var o=t+" Iterator";return e.prototype=Ua(Pa,{next:Va(+!r,n)}),Ba(e,o,!1),Fa[o]=Ga,e},Ha=ge,Ya=String,qa=TypeError,Wa=te,Ka=un,$a=function(e){if("object"==typeof e||Ha(e))return e;throw qa("Can't set "+Ya(e)+" as a prototype")},Ja=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Wa(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(o){}return function(n,r){return Ka(n),$a(r),t?e(n,r):n.__proto__=r,n}}():void 0),Qa=Io,Xa=R,Za=ge,ei=za,ti=ka,ni=Ja,ri=Ra,oi=Cn,ai=kr,ii=ha,si=Dn.PROPER,ci=Dn.CONFIGURABLE,li=La.IteratorPrototype,ui=La.BUGGY_SAFARI_ITERATORS,di=Dt("iterator"),pi="keys",fi="values",hi="entries",mi=function(){return this},vi=function(e,t,n,r,o,a,i){ei(n,t,r);var s,c,l,u=function(e){if(e===o&&m)return m;if(!ui&&e in f)return f[e];switch(e){case pi:case fi:case hi:return function(){return new n(this,e)}}return function(){return new n(this)}},d=t+" Iterator",p=!1,f=e.prototype,h=f[di]||f["@@iterator"]||o&&f[o],m=!ui&&h||u(o),v="Array"==t&&f.entries||h;if(v&&(s=ti(v.call(new e)))!==Object.prototype&&s.next&&(ti(s)!==li&&(ni?ni(s,li):Za(s[di])||ai(s,di,mi)),ri(s,d,!0)),si&&o==fi&&h&&h.name!==fi&&(ci?oi(f,"name",fi):(p=!0,m=function(){return Xa(h,this)})),o)if(c={values:u(fi),keys:a?m:u(pi),entries:u(hi)},i)for(l in c)(ui||p||!(l in f))&&ai(f,l,c[l]);else Qa({target:t,proto:!0,forced:ui||p},c);return f[di]!==m&&ai(f,di,m,{name:o}),ii[t]=m,c},gi=function(e,t){return{value:e,done:t}},_i=fe,yi=fa,bi=ha,Oi=ir,Mi=on.f,ki=vi,Ci=gi,wi=L,Ii="Array Iterator",Si=Oi.set,Ti=Oi.getterFor(Ii),Ei=ki(Array,"Array",(function(e,t){Si(this,{type:Ii,target:_i(e),index:0,kind:t})}),(function(){var e=Ti(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,Ci(void 0,!0)):Ci("keys"==n?r:"values"==n?t[r]:[r,t[r]],!1)}),"values"),ji=bi.Arguments=bi.Array;if(yi("keys"),yi("values"),yi("entries"),wi&&"values"!==ji.name)try{Mi(ji,"name",{value:"values"})}catch(qq){}var Di={};Di[Dt("toStringTag")]="z";var Li="[object z]"===String(Di),Ai=Li,Ni=ge,xi=X,Ri=Dt("toStringTag"),Pi=Object,Ui="Arguments"==xi(function(){return arguments}()),Vi=Ai?xi: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(qq){}}(t=Pi(e),Ri))?n:Ui?xi(t):"Object"==(r=xi(t))&&Ni(t.callee)?"Arguments":r},Bi=Vi,Fi=Li?{}.toString:function(){return"[object "+Bi(this)+"]"};Li||kr(Object.prototype,"toString",Fi,{unsafe:!0});var Gi={exports:{}},zi={},Hi=Gt,Yi=on,qi=z,Wi=function(e,t,n){var r=Hi(t);r in e?Yi.f(e,r,qi(0,n)):e[r]=n},Ki=Lr,$i=Pr,Ji=Wi,Qi=Array,Xi=Math.max,Zi=function(e,t,n){for(var r=$i(e),o=Ki(t,r),a=Ki(void 0===n?r:n,r),i=Qi(Xi(a-o,0)),s=0;o<a;o++,s++)Ji(i,s,e[o]);return i.length=s,i},es=X,ts=fe,ns=Cr.f,rs=Zi,os="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];zi.f=function(e){return os&&"Window"==es(e)?function(e){try{return ns(e)}catch(qq){return rs(os)}}(e):ns(ts(e))};var as=D((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),is=D,ss=be,cs=X,ls=as,us=Object.isExtensible,ds=is((function(){us(1)}))||ls?function(e){return!!ss(e)&&(!ls||"ArrayBuffer"!=cs(e))&&(!us||us(e))}:us,ps=!D((function(){return Object.isExtensible(Object.preventExtensions({}))})),fs=Io,hs=te,ms=qn,vs=be,gs=mt,_s=on.f,ys=Cr,bs=zi,Os=ds,Ms=ps,ks=!1,Cs=bt("meta"),ws=0,Is=function(e){_s(e,Cs,{value:{objectID:"O"+ws++,weakData:{}}})},Ss=Gi.exports={enable:function(){Ss.enable=function(){},ks=!0;var e=ys.f,t=hs([].splice),n={};n[Cs]=1,e(n).length&&(ys.f=function(n){for(var r=e(n),o=0,a=r.length;o<a;o++)if(r[o]===Cs){t(r,o,1);break}return r},fs({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:bs.f}))},fastKey:function(e,t){if(!vs(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!gs(e,Cs)){if(!Os(e))return"F";if(!t)return"E";Is(e)}return e[Cs].objectID},getWeakData:function(e,t){if(!gs(e,Cs)){if(!Os(e))return!0;if(!t)return!1;Is(e)}return e[Cs].weakData},onFreeze:function(e){return Ms&&ks&&Os(e)&&!gs(e,Cs)&&Is(e),e}};ms[Cs]=!0;var Ts=Ke,Es=A,js=te(te.bind),Ds=function(e,t){return Ts(e),void 0===t?e:Es?js(e,t):function(){return e.apply(t,arguments)}},Ls=ha,As=Dt("iterator"),Ns=Array.prototype,xs=function(e){return void 0!==e&&(Ls.Array===e||Ns[As]===e)},Rs=Vi,Ps=Qe,Us=se,Vs=ha,Bs=Dt("iterator"),Fs=function(e){if(!Us(e))return Ps(e,Bs)||Ps(e,"@@iterator")||Vs[Rs(e)]},Gs=R,zs=Ke,Hs=un,Ys=He,qs=Fs,Ws=TypeError,Ks=function(e,t){var n=arguments.length<2?qs(e):t;if(zs(n))return Hs(Gs(n,e));throw Ws(Ys(e)+" is not iterable")},$s=R,Js=un,Qs=Qe,Xs=function(e,t,n){var r,o;Js(e);try{if(!(r=Qs(e,"return"))){if("throw"===t)throw n;return n}r=$s(r,e)}catch(qq){o=!0,r=qq}if("throw"===t)throw n;if(o)throw r;return Js(r),n},Zs=Ds,ec=R,tc=un,nc=He,rc=xs,oc=Pr,ac=we,ic=Ks,sc=Fs,cc=Xs,lc=TypeError,uc=function(e,t){this.stopped=e,this.result=t},dc=uc.prototype,pc=function(e,t,n){var r,o,a,i,s,c,l,u=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_RECORD),f=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),m=Zs(t,u),v=function(e){return r&&cc(r,"normal",e),new uc(!0,e)},g=function(e){return d?(tc(e),h?m(e[0],e[1],v):m(e[0],e[1])):h?m(e,v):m(e)};if(p)r=e.iterator;else if(f)r=e;else{if(!(o=sc(e)))throw lc(nc(e)+" is not iterable");if(rc(o)){for(a=0,i=oc(e);i>a;a++)if((s=g(e[a]))&&ac(dc,s))return s;return new uc(!1)}r=ic(e,o)}for(c=p?e.next:r.next;!(l=ec(c,r)).done;){try{s=g(l.value)}catch(qq){cc(r,"throw",qq)}if("object"==typeof s&&s&&ac(dc,s))return s}return new uc(!1)},fc=we,hc=TypeError,mc=function(e,t){if(fc(t,e))return e;throw hc("Incorrect invocation")},vc=Dt("iterator"),gc=!1;try{var _c=0,yc={next:function(){return{done:!!_c++}},return:function(){gc=!0}};yc[vc]=function(){return this},Array.from(yc,(function(){throw 2}))}catch(qq){}var bc=function(e,t){if(!t&&!gc)return!1;var n=!1;try{var r={};r[vc]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(qq){}return n},Oc=ge,Mc=be,kc=Ja,Cc=function(e,t,n){var r,o;return kc&&Oc(r=t.constructor)&&r!==n&&Mc(o=r.prototype)&&o!==n.prototype&&kc(e,o),e},wc=Io,Ic=E,Sc=te,Tc=_o,Ec=kr,jc=Gi.exports,Dc=pc,Lc=mc,Ac=ge,Nc=se,xc=be,Rc=D,Pc=bc,Uc=Ra,Vc=Cc,Bc=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),a=r?"set":"add",i=Ic[e],s=i&&i.prototype,c=i,l={},u=function(e){var t=Sc(s[e]);Ec(s,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!xc(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!xc(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!xc(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(Tc(e,!Ac(i)||!(o||s.forEach&&!Rc((function(){(new i).entries().next()})))))c=n.getConstructor(t,e,r,a),jc.enable();else if(Tc(e,!0)){var d=new c,p=d[a](o?{}:-0,1)!=d,f=Rc((function(){d.has(1)})),h=Pc((function(e){new i(e)})),m=!o&&Rc((function(){for(var e=new i,t=5;t--;)e[a](t,t);return!e.has(-0)}));h||((c=t((function(e,t){Lc(e,s);var n=Vc(new i,e,c);return Nc(t)||Dc(t,n[a],{that:n,AS_ENTRIES:r}),n}))).prototype=s,s.constructor=c),(f||m)&&(u("delete"),u("has"),r&&u("get")),(m||p)&&u(a),o&&s.clear&&delete s.clear}return l[e]=c,wc({global:!0,constructor:!0,forced:c!=i},l),Uc(c,e),o||n.setStrong(c,e,r),c},Fc=kr,Gc=function(e,t,n){for(var r in t)Fc(e,r,t[r],n);return e},zc=Ce,Hc=on,Yc=L,qc=Dt("species"),Wc=function(e){var t=zc(e),n=Hc.f;Yc&&t&&!t[qc]&&n(t,qc,{configurable:!0,get:function(){return this}})},Kc=on.f,$c=oa,Jc=Gc,Qc=Ds,Xc=mc,Zc=se,el=pc,tl=vi,nl=gi,rl=Wc,ol=L,al=Gi.exports.fastKey,il=ir.set,sl=ir.getterFor,cl={getConstructor:function(e,t,n,r){var o=e((function(e,o){Xc(e,a),il(e,{type:t,index:$c(null),first:void 0,last:void 0,size:0}),ol||(e.size=0),Zc(o)||el(o,e[r],{that:e,AS_ENTRIES:n})})),a=o.prototype,i=sl(t),s=function(e,t,n){var r,o,a=i(e),s=c(e,t);return s?s.value=n:(a.last=s={index:o=al(t,!0),key:t,value:n,previous:r=a.last,next:void 0,removed:!1},a.first||(a.first=s),r&&(r.next=s),ol?a.size++:e.size++,"F"!==o&&(a.index[o]=s)),e},c=function(e,t){var n,r=i(e),o=al(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return Jc(a,{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,ol?e.size=0:this.size=0},delete:function(e){var t=this,n=i(t),r=c(t,e);if(r){var o=r.next,a=r.previous;delete n.index[r.index],r.removed=!0,a&&(a.next=o),o&&(o.previous=a),n.first==r&&(n.first=o),n.last==r&&(n.last=a),ol?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=i(this),r=Qc(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!c(this,e)}}),Jc(a,n?{get:function(e){var t=c(this,e);return t&&t.value},set:function(e,t){return s(this,0===e?0:e,t)}}:{add:function(e){return s(this,e=0===e?0:e,e)}}),ol&&Kc(a,"size",{get:function(){return i(this).size}}),o},setStrong:function(e,t,n){var r=t+" Iterator",o=sl(t),a=sl(r);tl(e,t,(function(e,t){il(this,{type:r,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=a(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)?nl("keys"==t?n.key:"values"==t?n.value:[n.key,n.value],!1):(e.target=void 0,nl(void 0,!0))}),n?"entries":"values",!n,!0),rl(t)}};Bc("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),cl);var ll=Vi,ul=String,dl=function(e){if("Symbol"===ll(e))throw TypeError("Cannot convert a Symbol value to a string");return ul(e)},pl=te,fl=Tr,hl=dl,ml=ue,vl=pl("".charAt),gl=pl("".charCodeAt),_l=pl("".slice),yl=function(e){return function(t,n){var r,o,a=hl(ml(t)),i=fl(n),s=a.length;return i<0||i>=s?e?"":void 0:(r=gl(a,i))<55296||r>56319||i+1===s||(o=gl(a,i+1))<56320||o>57343?e?vl(a,i):r:e?_l(a,i,i+2):o-56320+(r-55296<<10)+65536}},bl={codeAt:yl(!1),charAt:yl(!0)},Ol=bl.charAt,Ml=dl,kl=ir,Cl=vi,wl=gi,Il="String Iterator",Sl=kl.set,Tl=kl.getterFor(Il);Cl(String,"String",(function(e){Sl(this,{type:Il,string:Ml(e),index:0})}),(function(){var e,t=Tl(this),n=t.string,r=t.index;return r>=n.length?wl(void 0,!0):(e=Ol(n,r),t.index+=e.length,wl(e,!1))}));var El={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},jl=qt("span").classList,Dl=jl&&jl.constructor&&jl.constructor.prototype,Ll=Dl===Object.prototype?void 0:Dl,Al=E,Nl=El,xl=Ll,Rl=Ei,Pl=Cn,Ul=Dt,Vl=Ul("iterator"),Bl=Ul("toStringTag"),Fl=Rl.values,Gl=function(e,t){if(e){if(e[Vl]!==Fl)try{Pl(e,Vl,Fl)}catch(qq){e[Vl]=Fl}if(e[Bl]||Pl(e,Bl,t),Nl[t])for(var n in Rl)if(e[n]!==Rl[n])try{Pl(e,n,Rl[n])}catch(qq){e[n]=Rl[n]}}};for(var zl in Nl)Gl(Al[zl]&&Al[zl].prototype,zl);Gl(xl,"DOMTokenList");var Hl=A,Yl=Function.prototype,ql=Yl.apply,Wl=Yl.call,Kl="object"==typeof Reflect&&Reflect.apply||(Hl?Wl.bind(ql):function(){return Wl.apply(ql,arguments)}),$l=te([].slice),Jl=TypeError,Ql=function(e,t){if(e<t)throw Jl("Not enough arguments");return e},Xl=E,Zl=Kl,eu=ge,tu=$l,nu=Ql,ru=/MSIE .\./.test(Ie),ou=Xl.Function,au=function(e){return ru?function(t,n){var r=nu(arguments.length,1)>2,o=eu(t)?t:ou(t),a=r?tu(arguments,2):void 0;return e(r?function(){Zl(o,this,a)}:o,n)}:e},iu={setTimeout:au(Xl.setTimeout),setInterval:au(Xl.setInterval)},su=iu.setInterval;Io({global:!0,bind:!0,forced:E.setInterval!==su},{setInterval:su});var cu=iu.setTimeout;Io({global:!0,bind:!0,forced:E.setTimeout!==cu},{setTimeout:cu}),Bc("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),cl);var lu=X,uu=Array.isArray||function(e){return"Array"==lu(e)},du=te,pu=D,fu=ge,hu=Vi,mu=Un,vu=function(){},gu=[],_u=Ce("Reflect","construct"),yu=/^\s*(?:class|function)\b/,bu=du(yu.exec),Ou=!yu.exec(vu),Mu=function(e){if(!fu(e))return!1;try{return _u(vu,gu,e),!0}catch(qq){return!1}},ku=function(e){if(!fu(e))return!1;switch(hu(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Ou||!!bu(yu,mu(e))}catch(qq){return!0}};ku.sham=!0;var Cu=!_u||pu((function(){var e;return Mu(Mu.call)||!Mu(Object)||!Mu((function(){e=!0}))||e}))?ku:Mu,wu=uu,Iu=Cu,Su=be,Tu=Dt("species"),Eu=Array,ju=function(e){var t;return wu(e)&&(t=e.constructor,(Iu(t)&&(t===Eu||wu(t.prototype))||Su(t)&&null===(t=t[Tu]))&&(t=void 0)),void 0===t?Eu:t},Du=function(e,t){return new(ju(e))(0===t?0:t)},Lu=Ds,Au=ie,Nu=pt,xu=Pr,Ru=Du,Pu=te([].push),Uu=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,a=6==e,i=7==e,s=5==e||a;return function(c,l,u,d){for(var p,f,h=Nu(c),m=Au(h),v=Lu(l,u),g=xu(m),_=0,y=d||Ru,b=t?y(c,g):n||i?y(c,0):void 0;g>_;_++)if((s||_ in m)&&(f=v(p=m[_],_,h),e))if(t)b[_]=f;else if(f)switch(e){case 3:return!0;case 5:return p;case 6:return _;case 2:Pu(b,p)}else switch(e){case 4:return!1;case 7:Pu(b,p)}return a?-1:r||o?o:b}},Vu={forEach:Uu(0),map:Uu(1),filter:Uu(2),some:Uu(3),every:Uu(4),find:Uu(5),findIndex:Uu(6),filterReject:Uu(7)},Bu=D,Fu=Ae,Gu=Dt("species"),zu=function(e){return Fu>=51||!Bu((function(){var t=[];return(t.constructor={})[Gu]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Hu=Vu.map;Io({target:"Array",proto:!0,forced:!zu("map")},{map:function(e){return Hu(this,e,arguments.length>1?arguments[1]:void 0)}});var Yu=L,qu=uu,Wu=TypeError,Ku=Object.getOwnPropertyDescriptor,$u=Yu&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(qq){return qq instanceof TypeError}}(),Ju=TypeError,Qu=function(e){if(e>9007199254740991)throw Ju("Maximum allowed index exceeded");return e},Xu=He,Zu=TypeError,ed=function(e,t){if(!delete e[t])throw Zu("Cannot delete property "+Xu(t)+" of "+Xu(e))},td=Io,nd=pt,rd=Lr,od=Tr,ad=Pr,id=$u?function(e,t){if(qu(e)&&!Ku(e,"length").writable)throw Wu("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},sd=Qu,cd=Du,ld=Wi,ud=ed,dd=zu("splice"),pd=Math.max,fd=Math.min;td({target:"Array",proto:!0,forced:!dd},{splice:function(e,t){var n,r,o,a,i,s,c=nd(this),l=ad(c),u=rd(e,l),d=arguments.length;for(0===d?n=r=0:1===d?(n=0,r=l-u):(n=d-2,r=fd(pd(od(t),0),l-u)),sd(l+n-r),o=cd(c,r),a=0;a<r;a++)(i=u+a)in c&&ld(o,a,c[i]);if(o.length=r,n<r){for(a=u;a<l-r;a++)s=a+n,(i=a+r)in c?c[s]=c[i]:ud(c,s);for(a=l;a>l-r+n;a--)ud(c,a-1)}else if(n>r)for(a=l-r;a>u;a--)s=a+n-1,(i=a+r-1)in c?c[s]=c[i]:ud(c,s);for(a=0;a<n;a++)c[a+u]=arguments[a+2];return id(c,l-r+n),o}});var hd=D,md=function(e,t){var n=[][e];return!!n&&hd((function(){n.call(null,t||function(){return 1},1)}))},vd=Vu.forEach,gd=md("forEach")?[].forEach:function(e){return vd(this,e,arguments.length>1?arguments[1]:void 0)};Io({target:"Array",proto:!0,forced:[].forEach!=gd},{forEach:gd});var _d=E,yd=El,bd=Ll,Od=gd,Md=Cn,kd=function(e){if(e&&e.forEach!==Od)try{Md(e,"forEach",Od)}catch(qq){e.forEach=Od}};for(var Cd in yd)yd[Cd]&&kd(_d[Cd]&&_d[Cd].prototype);kd(bd);var wd=Io,Id=ie,Sd=fe,Td=md,Ed=te([].join),jd=Id!=Object,Dd=Td("join",",");wd({target:"Array",proto:!0,forced:jd||!Dd},{join:function(e){return Ed(Sd(this),void 0===e?",":e)}});var Ld=Vu.filter;Io({target:"Array",proto:!0,forced:!zu("filter")},{filter:function(e){return Ld(this,e,arguments.length>1?arguments[1]:void 0)}});var Ad=Io,Nd=D,xd=uu,Rd=be,Pd=pt,Ud=Pr,Vd=Qu,Bd=Wi,Fd=Du,Gd=zu,zd=Ae,Hd=Dt("isConcatSpreadable"),Yd=zd>=51||!Nd((function(){var e=[];return e[Hd]=!1,e.concat()[0]!==e})),qd=Gd("concat"),Wd=function(e){if(!Rd(e))return!1;var t=e[Hd];return void 0!==t?!!t:xd(e)};Ad({target:"Array",proto:!0,arity:1,forced:!Yd||!qd},{concat:function(e){var t,n,r,o,a,i=Pd(this),s=Fd(i,0),c=0;for(t=-1,r=arguments.length;t<r;t++)if(Wd(a=-1===t?i:arguments[t]))for(o=Ud(a),Vd(c+o),n=0;n<o;n++,c++)n in a&&Bd(s,c,a[n]);else Vd(c+1),Bd(s,c++,a);return s.length=c,s}});var Kd=te,$d=kr,Jd=Date.prototype,Qd="Invalid Date",Xd="toString",Zd=Kd(Jd.toString),ep=Kd(Jd.getTime);String(new Date(NaN))!=Qd&&$d(Jd,Xd,(function(){var e=ep(this);return e==e?Zd(this):Qd}));var tp=Tr,np=dl,rp=ue,op=RangeError,ap=function(e){var t=np(rp(this)),n="",r=tp(e);if(r<0||1/0==r)throw op("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n},ip=te,sp=xr,cp=dl,lp=ue,up=ip(ap),dp=ip("".slice),pp=Math.ceil,fp=function(e){return function(t,n,r){var o,a,i=cp(lp(t)),s=sp(n),c=i.length,l=void 0===r?" ":cp(r);return s<=c||""==l?i:((a=up(l,pp((o=s-c)/l.length))).length>o&&(a=dp(a,0,o)),e?i+a:a+i)}},hp={start:fp(!1),end:fp(!0)},mp=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(Ie),vp=hp.start;Io({target:"String",proto:!0,forced:mp},{padStart:function(e){return vp(this,e,arguments.length>1?arguments[1]:void 0)}});var gp=un,_p=function(){var e=gp(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},yp=D,bp=E.RegExp,Op=yp((function(){var e=bp("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),Mp=Op||yp((function(){return!bp("a","y").sticky})),kp={BROKEN_CARET:Op||yp((function(){var e=bp("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:Mp,UNSUPPORTED_Y:Op},Cp=D,wp=E.RegExp,Ip=Cp((function(){var e=wp(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Sp=D,Tp=E.RegExp,Ep=Sp((function(){var e=Tp("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),jp=R,Dp=te,Lp=dl,Ap=_p,Np=kp,xp=nt.exports,Rp=oa,Pp=ir.get,Up=Ip,Vp=Ep,Bp=xp("native-string-replace",String.prototype.replace),Fp=RegExp.prototype.exec,Gp=Fp,zp=Dp("".charAt),Hp=Dp("".indexOf),Yp=Dp("".replace),qp=Dp("".slice),Wp=function(){var e=/a/,t=/b*/g;return jp(Fp,e,"a"),jp(Fp,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),Kp=Np.BROKEN_CARET,$p=void 0!==/()??/.exec("")[1];(Wp||$p||Kp||Up||Vp)&&(Gp=function(e){var t,n,r,o,a,i,s,c=this,l=Pp(c),u=Lp(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=jp(Gp,d,u),c.lastIndex=d.lastIndex,t;var p=l.groups,f=Kp&&c.sticky,h=jp(Ap,c),m=c.source,v=0,g=u;if(f&&(h=Yp(h,"y",""),-1===Hp(h,"g")&&(h+="g"),g=qp(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==zp(u,c.lastIndex-1))&&(m="(?: "+m+")",g=" "+g,v++),n=new RegExp("^(?:"+m+")",h)),$p&&(n=new RegExp("^"+m+"$(?!\\s)",h)),Wp&&(r=c.lastIndex),o=jp(Fp,f?n:c,g),f?o?(o.input=qp(o.input,v),o[0]=qp(o[0],v),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:Wp&&o&&(c.lastIndex=c.global?o.index+o[0].length:r),$p&&o&&o.length>1&&jp(Bp,o[0],n,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(o[a]=void 0)})),o&&p)for(o.groups=i=Rp(null),a=0;a<p.length;a++)i[(s=p[a])[0]]=o[s[1]];return o});var Jp=Gp;Io({target:"RegExp",proto:!0,forced:/./.exec!==Jp},{exec:Jp});var Qp=te,Xp=kr,Zp=Jp,ef=D,tf=Dt,nf=Cn,rf=tf("species"),of=RegExp.prototype,af=function(e,t,n,r){var o=tf(e),a=!ef((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),i=a&&!ef((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[rf]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!a||!i||n){var s=Qp(/./[o]),c=t(o,""[e],(function(e,t,n,r,o){var i=Qp(e),c=t.exec;return c===Zp||c===of.exec?a&&!o?{done:!0,value:s(t,n,r)}:{done:!0,value:i(n,t,r)}:{done:!1}}));Xp(String.prototype,e,c[0]),Xp(of,o,c[1])}r&&nf(of[o],"sham",!0)},sf=bl.charAt,cf=function(e,t,n){return t+(n?sf(e,t).length:1)},lf=te,uf=pt,df=Math.floor,pf=lf("".charAt),ff=lf("".replace),hf=lf("".slice),mf=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,vf=/\$([$&'`]|\d{1,2})/g,gf=R,_f=un,yf=ge,bf=X,Of=Jp,Mf=TypeError,kf=function(e,t){var n=e.exec;if(yf(n)){var r=gf(n,e,t);return null!==r&&_f(r),r}if("RegExp"===bf(e))return gf(Of,e,t);throw Mf("RegExp#exec called on incompatible receiver")},Cf=Kl,wf=R,If=te,Sf=af,Tf=D,Ef=un,jf=ge,Df=se,Lf=Tr,Af=xr,Nf=dl,xf=ue,Rf=cf,Pf=Qe,Uf=function(e,t,n,r,o,a){var i=n+e.length,s=r.length,c=vf;return void 0!==o&&(o=uf(o),c=mf),ff(a,c,(function(a,c){var l;switch(pf(c,0)){case"$":return"$";case"&":return e;case"`":return hf(t,0,n);case"'":return hf(t,i);case"<":l=o[hf(c,1,-1)];break;default:var u=+c;if(0===u)return a;if(u>s){var d=df(u/10);return 0===d?a:d<=s?void 0===r[d-1]?pf(c,1):r[d-1]+pf(c,1):a}l=r[u-1]}return void 0===l?"":l}))},Vf=kf,Bf=Dt("replace"),Ff=Math.max,Gf=Math.min,zf=If([].concat),Hf=If([].push),Yf=If("".indexOf),qf=If("".slice),Wf="$0"==="a".replace(/./,"$0"),Kf=!!/./[Bf]&&""===/./[Bf]("a","$0"),$f=!Tf((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}));Sf("replace",(function(e,t,n){var r=Kf?"$":"$0";return[function(e,n){var r=xf(this),o=Df(e)?void 0:Pf(e,Bf);return o?wf(o,e,r,n):wf(t,Nf(r),e,n)},function(e,o){var a=Ef(this),i=Nf(e);if("string"==typeof o&&-1===Yf(o,r)&&-1===Yf(o,"$<")){var s=n(t,a,i,o);if(s.done)return s.value}var c=jf(o);c||(o=Nf(o));var l=a.global;if(l){var u=a.unicode;a.lastIndex=0}for(var d=[];;){var p=Vf(a,i);if(null===p)break;if(Hf(d,p),!l)break;""===Nf(p[0])&&(a.lastIndex=Rf(i,Af(a.lastIndex),u))}for(var f,h="",m=0,v=0;v<d.length;v++){for(var g=Nf((p=d[v])[0]),_=Ff(Gf(Lf(p.index),i.length),0),y=[],b=1;b<p.length;b++)Hf(y,void 0===(f=p[b])?f:String(f));var O=p.groups;if(c){var M=zf([g],y,_,i);void 0!==O&&Hf(M,O);var k=Nf(Cf(o,void 0,M))}else k=Uf(g,i,_,y,O,o);_>=m&&(h+=qf(i,m,_)+k,m=_+g.length)}return h+qf(i,m)}]}),!$f||!Wf||Kf);var Jf=R,Qf=mt,Xf=we,Zf=_p,eh=RegExp.prototype,th=function(e){var t=e.flags;return void 0!==t||"flags"in eh||Qf(e,"flags")||!Xf(eh,e)?t:Jf(Zf,e)},nh=Dn.PROPER,rh=kr,oh=un,ah=dl,ih=D,sh=th,ch="toString",lh=RegExp.prototype.toString,uh=ih((function(){return"/a/b"!=lh.call({source:"a",flags:"b"})})),dh=nh&&lh.name!=ch;(uh||dh)&&rh(RegExp.prototype,ch,(function(){var e=oh(this);return"/"+ah(e.source)+"/"+ah(sh(e))}),{unsafe:!0});var ph=D,fh=Dt("iterator"),hh=!ph((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[fh]||"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})),mh=Zi,vh=Math.floor,gh=function(e,t){var n=e.length,r=vh(n/2);return n<8?_h(e,t):yh(e,gh(mh(e,0,r),t),gh(mh(e,r),t),t)},_h=function(e,t){for(var n,r,o=e.length,a=1;a<o;){for(r=a,n=e[a];r&&t(e[r-1],n)>0;)e[r]=e[--r];r!==a++&&(e[r]=n)}return e},yh=function(e,t,n,r){for(var o=t.length,a=n.length,i=0,s=0;i<o||s<a;)e[i+s]=i<o&&s<a?r(t[i],n[s])<=0?t[i++]:n[s++]:i<o?t[i++]:n[s++];return e},bh=gh,Oh=Io,Mh=E,kh=R,Ch=te,wh=L,Ih=hh,Sh=kr,Th=Gc,Eh=Ra,jh=za,Dh=ir,Lh=mc,Ah=ge,Nh=mt,xh=Ds,Rh=Vi,Ph=un,Uh=be,Vh=dl,Bh=oa,Fh=z,Gh=Ks,zh=Fs,Hh=Ql,Yh=bh,qh=Dt("iterator"),Wh="URLSearchParams",Kh="URLSearchParamsIterator",$h=Dh.set,Jh=Dh.getterFor(Wh),Qh=Dh.getterFor(Kh),Xh=Object.getOwnPropertyDescriptor,Zh=function(e){if(!wh)return Mh[e];var t=Xh(Mh,e);return t&&t.value},em=Zh("fetch"),tm=Zh("Request"),nm=Zh("Headers"),rm=tm&&tm.prototype,om=nm&&nm.prototype,am=Mh.RegExp,im=Mh.TypeError,sm=Mh.decodeURIComponent,cm=Mh.encodeURIComponent,lm=Ch("".charAt),um=Ch([].join),dm=Ch([].push),pm=Ch("".replace),fm=Ch([].shift),hm=Ch([].splice),mm=Ch("".split),vm=Ch("".slice),gm=/\+/g,_m=Array(4),ym=function(e){return _m[e-1]||(_m[e-1]=am("((?:%[\\da-f]{2}){"+e+"})","gi"))},bm=function(e){try{return sm(e)}catch(qq){return e}},Om=function(e){var t=pm(e,gm," "),n=4;try{return sm(t)}catch(qq){for(;n;)t=pm(t,ym(n--),bm);return t}},Mm=/[!'()~]|%20/g,km={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},Cm=function(e){return km[e]},wm=function(e){return pm(cm(e),Mm,Cm)},Im=jh((function(e,t){$h(this,{type:Kh,iterator:Gh(Jh(e).entries),kind:t})}),"Iterator",(function(){var e=Qh(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}),!0),Sm=function(e){this.entries=[],this.url=null,void 0!==e&&(Uh(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===lm(e,0)?vm(e,1):e:Vh(e)))};Sm.prototype={type:Wh,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,o,a,i,s,c=zh(e);if(c)for(n=(t=Gh(e,c)).next;!(r=kh(n,t)).done;){if(a=(o=Gh(Ph(r.value))).next,(i=kh(a,o)).done||(s=kh(a,o)).done||!kh(a,o).done)throw im("Expected sequence with length 2");dm(this.entries,{key:Vh(i.value),value:Vh(s.value)})}else for(var l in e)Nh(e,l)&&dm(this.entries,{key:l,value:Vh(e[l])})},parseQuery:function(e){if(e)for(var t,n,r=mm(e,"&"),o=0;o<r.length;)(t=r[o++]).length&&(n=mm(t,"="),dm(this.entries,{key:Om(fm(n)),value:Om(um(n,"="))}))},serialize:function(){for(var e,t=this.entries,n=[],r=0;r<t.length;)e=t[r++],dm(n,wm(e.key)+"="+wm(e.value));return um(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var Tm=function(){Lh(this,Em);var e=arguments.length>0?arguments[0]:void 0;$h(this,new Sm(e))},Em=Tm.prototype;if(Th(Em,{append:function(e,t){Hh(arguments.length,2);var n=Jh(this);dm(n.entries,{key:Vh(e),value:Vh(t)}),n.updateURL()},delete:function(e){Hh(arguments.length,1);for(var t=Jh(this),n=t.entries,r=Vh(e),o=0;o<n.length;)n[o].key===r?hm(n,o,1):o++;t.updateURL()},get:function(e){Hh(arguments.length,1);for(var t=Jh(this).entries,n=Vh(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){Hh(arguments.length,1);for(var t=Jh(this).entries,n=Vh(e),r=[],o=0;o<t.length;o++)t[o].key===n&&dm(r,t[o].value);return r},has:function(e){Hh(arguments.length,1);for(var t=Jh(this).entries,n=Vh(e),r=0;r<t.length;)if(t[r++].key===n)return!0;return!1},set:function(e,t){Hh(arguments.length,1);for(var n,r=Jh(this),o=r.entries,a=!1,i=Vh(e),s=Vh(t),c=0;c<o.length;c++)(n=o[c]).key===i&&(a?hm(o,c--,1):(a=!0,n.value=s));a||dm(o,{key:i,value:s}),r.updateURL()},sort:function(){var e=Jh(this);Yh(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,n=Jh(this).entries,r=xh(e,arguments.length>1?arguments[1]:void 0),o=0;o<n.length;)r((t=n[o++]).value,t.key,this)},keys:function(){return new Im(this,"keys")},values:function(){return new Im(this,"values")},entries:function(){return new Im(this,"entries")}},{enumerable:!0}),Sh(Em,qh,Em.entries,{name:"entries"}),Sh(Em,"toString",(function(){return Jh(this).serialize()}),{enumerable:!0}),Eh(Tm,Wh),Oh({global:!0,constructor:!0,forced:!Ih},{URLSearchParams:Tm}),!Ih&&Ah(nm)){var jm=Ch(om.has),Dm=Ch(om.set),Lm=function(e){if(Uh(e)){var t,n=e.body;if(Rh(n)===Wh)return t=e.headers?new nm(e.headers):new nm,jm(t,"content-type")||Dm(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),Bh(e,{body:Fh(0,Vh(n)),headers:Fh(0,t)})}return e};if(Ah(em)&&Oh({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return em(e,arguments.length>1?Lm(arguments[1]):{})}}),Ah(tm)){var Am=function(e){return Lh(this,rm),new tm(e,arguments.length>1?Lm(arguments[1]):{})};rm.constructor=Am,Am.prototype=rm,Oh({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Am})}}var Nm={URLSearchParams:Tm,getState:Jh},xm=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t},Rm=R,Pm=un,Um=se,Vm=ue,Bm=xm,Fm=dl,Gm=Qe,zm=kf;af("search",(function(e,t,n){return[function(t){var n=Vm(this),r=Um(t)?void 0:Gm(t,e);return r?Rm(r,t,n):new RegExp(t)[e](Fm(n))},function(e){var r=Pm(this),o=Fm(e),a=n(t,r,o);if(a.done)return a.value;var i=r.lastIndex;Bm(i,0)||(r.lastIndex=0);var s=zm(r,o);return Bm(r.lastIndex,i)||(r.lastIndex=i),null===s?-1:s.index}]})),(new Date).getTime();var Hm=0,Ym=function(){return(new Date).getTime()+Hm},qm=function(){var e=new Date;return e.setTime(Ym()),e.toLocaleString()},Wm=R,Km=un,$m=se,Jm=xr,Qm=dl,Xm=ue,Zm=Qe,ev=cf,tv=kf;af("match",(function(e,t,n){return[function(t){var n=Xm(this),r=$m(t)?void 0:Zm(t,e);return r?Wm(r,t,n):new RegExp(t)[e](Qm(n))},function(e){var r=Km(this),o=Qm(e),a=n(t,r,o);if(a.done)return a.value;if(!r.global)return tv(r,o);var i=r.unicode;r.lastIndex=0;for(var s,c=[],l=0;null!==(s=tv(r,o));){var u=Qm(s[0]);c[l]=u,""===u&&(r.lastIndex=ev(o,Jm(r.lastIndex),i)),l++}return 0===l?null:c}]}));var nv=be,rv=X,ov=Dt("match"),av=function(e){var t;return nv(e)&&(void 0!==(t=e[ov])?!!t:"RegExp"==rv(e))},iv=on.f,sv=L,cv=E,lv=te,uv=_o,dv=Cc,pv=Cn,fv=Cr.f,hv=we,mv=av,vv=dl,gv=th,_v=kp,yv=function(e,t,n){n in e||iv(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})},bv=kr,Ov=D,Mv=mt,kv=ir.enforce,Cv=Wc,wv=Ip,Iv=Ep,Sv=Dt("match"),Tv=cv.RegExp,Ev=Tv.prototype,jv=cv.SyntaxError,Dv=lv(Ev.exec),Lv=lv("".charAt),Av=lv("".replace),Nv=lv("".indexOf),xv=lv("".slice),Rv=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Pv=/a/g,Uv=/a/g,Vv=new Tv(Pv)!==Pv,Bv=_v.MISSED_STICKY,Fv=_v.UNSUPPORTED_Y,Gv=sv&&(!Vv||Bv||wv||Iv||Ov((function(){return Uv[Sv]=!1,Tv(Pv)!=Pv||Tv(Uv)==Uv||"/a/i"!=Tv(Pv,"i")})));if(uv("RegExp",Gv)){for(var zv=function(e,t){var n,r,o,a,i,s,c=hv(Ev,this),l=mv(e),u=void 0===t,d=[],p=e;if(!c&&l&&u&&e.constructor===zv)return e;if((l||hv(Ev,e))&&(e=e.source,u&&(t=gv(p))),e=void 0===e?"":vv(e),t=void 0===t?"":vv(t),p=e,wv&&"dotAll"in Pv&&(r=!!t&&Nv(t,"s")>-1)&&(t=Av(t,/s/g,"")),n=t,Bv&&"sticky"in Pv&&(o=!!t&&Nv(t,"y")>-1)&&Fv&&(t=Av(t,/y/g,"")),Iv&&(a=function(e){for(var t,n=e.length,r=0,o="",a=[],i={},s=!1,c=!1,l=0,u="";r<=n;r++){if("\\"===(t=Lv(e,r)))t+=Lv(e,++r);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:Dv(Rv,xv(e,r+1))&&(r+=2,c=!0),o+=t,l++;continue;case">"===t&&c:if(""===u||Mv(i,u))throw new jv("Invalid capture group name");i[u]=!0,a[a.length]=[u,l],c=!1,u="";continue}c?u+=t:o+=t}return[o,a]}(e),e=a[0],d=a[1]),i=dv(Tv(e,t),c?this:Ev,zv),(r||o||d.length)&&(s=kv(i),r&&(s.dotAll=!0,s.raw=zv(function(e){for(var t,n=e.length,r=0,o="",a=!1;r<=n;r++)"\\"!==(t=Lv(e,r))?a||"."!==t?("["===t?a=!0:"]"===t&&(a=!1),o+=t):o+="[\\s\\S]":o+=t+Lv(e,++r);return o}(e),n)),o&&(s.sticky=!0),d.length&&(s.groups=d)),e!==p)try{pv(i,"source",""===p?"(?:)":p)}catch(qq){}return i},Hv=fv(Tv),Yv=0;Hv.length>Yv;)yv(zv,Tv,Hv[Yv++]);Ev.constructor=zv,zv.prototype=Ev,bv(cv,"RegExp",zv,{constructor:!0})}Cv("RegExp");var qv=te(1..valueOf),Wv="\t\n\v\f\r \u2028\u2029\ufeff",Kv=ue,$v=dl,Jv=te("".replace),Qv="[\t\n\v\f\r \u2028\u2029\ufeff]",Xv=RegExp("^"+Qv+Qv+"*"),Zv=RegExp(Qv+Qv+"*$"),eg=function(e){return function(t){var n=$v(Kv(t));return 1&e&&(n=Jv(n,Xv,"")),2&e&&(n=Jv(n,Zv,"")),n}},tg={start:eg(1),end:eg(2),trim:eg(3)},ng=L,rg=E,og=te,ag=_o,ig=kr,sg=mt,cg=Cc,lg=we,ug=Ge,dg=Vt,pg=D,fg=Cr.f,hg=j.f,mg=on.f,vg=qv,gg=tg.trim,_g="Number",yg=rg.Number,bg=yg.prototype,Og=rg.TypeError,Mg=og("".slice),kg=og("".charCodeAt),Cg=function(e){var t=dg(e,"number");return"bigint"==typeof t?t:wg(t)},wg=function(e){var t,n,r,o,a,i,s,c,l=dg(e,"number");if(ug(l))throw Og("Cannot convert a Symbol value to a number");if("string"==typeof l&&l.length>2)if(l=gg(l),43===(t=kg(l,0))||45===t){if(88===(n=kg(l,2))||120===n)return NaN}else if(48===t){switch(kg(l,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+l}for(i=(a=Mg(l,2)).length,s=0;s<i;s++)if((c=kg(a,s))<48||c>o)return NaN;return parseInt(a,r)}return+l};if(ag(_g,!yg(" 0o1")||!yg("0b1")||yg("+0x1"))){for(var Ig,Sg=function(e){var t=arguments.length<1?0:yg(Cg(e)),n=this;return lg(bg,n)&&pg((function(){vg(n)}))?cg(Object(t),n,Sg):t},Tg=ng?fg(yg):"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(","),Eg=0;Tg.length>Eg;Eg++)sg(yg,Ig=Tg[Eg])&&!sg(Sg,Ig)&&mg(Sg,Ig,hg(yg,Ig));Sg.prototype=bg,bg.constructor=Sg,ig(rg,_g,Sg,{constructor:!0})}var jg=Gr.includes,Dg=fa;Io({target:"Array",proto:!0,forced:D((function(){return!Array(1).includes()}))},{includes:function(e){return jg(this,e,arguments.length>1?arguments[1]:void 0)}}),Dg("includes");var Lg=av,Ag=TypeError,Ng=function(e){if(Lg(e))throw Ag("The method doesn't accept regular expressions");return e},xg=Dt("match"),Rg=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[xg]=!1,"/./"[e](t)}catch(o){}}return!1},Pg=Io,Ug=Ng,Vg=ue,Bg=dl,Fg=Rg,Gg=te("".indexOf);Pg({target:"String",proto:!0,forced:!Fg("includes")},{includes:function(e){return!!~Gg(Bg(Vg(this)),Bg(Ug(e)),arguments.length>1?arguments[1]:void 0)}});var zg=Io,Hg=Gr.indexOf,Yg=md,qg=te([].indexOf),Wg=!!qg&&1/qg([1],1,-0)<0,Kg=Yg("indexOf");zg({target:"Array",proto:!0,forced:Wg||!Kg},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return Wg?qg(this,e,t)||0:Hg(this,e,t)}});var $g=pt,Jg=ka,Qg=ma;Io({target:"Object",stat:!0,forced:D((function(){Jg(1)})),sham:!Qg},{getPrototypeOf:function(e){return Jg($g(e))}});var Xg=Kl,Zg=Ke,e_=un;Io({target:"Reflect",stat:!0,forced:!D((function(){Reflect.apply((function(){}))}))},{apply:function(e,t,n){return Xg(Zg(e),t,e_(n))}});var t_=L,n_=Dn.EXISTS,r_=te,o_=on.f,a_=Function.prototype,i_=r_(a_.toString),s_=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,c_=r_(s_.exec);t_&&!n_&&o_(a_,"name",{configurable:!0,get:function(){try{return c_(s_,i_(this))[1]}catch(qq){return""}}});var l_=Io,u_=Date,d_=te(u_.prototype.getTime);l_({target:"Date",stat:!0},{now:function(){return d_(new u_)}});var p_,f_,h_,m_,v_="process"==X(E.process),g_=Cu,__=He,y_=TypeError,b_=function(e){if(g_(e))return e;throw y_(__(e)+" is not a constructor")},O_=un,M_=b_,k_=se,C_=Dt("species"),w_=function(e,t){var n,r=O_(e).constructor;return void 0===r||k_(n=O_(r)[C_])?t:M_(n)},I_=/(?:ipad|iphone|ipod).*applewebkit/i.test(Ie),S_=E,T_=Kl,E_=Ds,j_=ge,D_=mt,L_=D,A_=qo,N_=$l,x_=qt,R_=Ql,P_=I_,U_=v_,V_=S_.setImmediate,B_=S_.clearImmediate,F_=S_.process,G_=S_.Dispatch,z_=S_.Function,H_=S_.MessageChannel,Y_=S_.String,q_=0,W_={},K_="onreadystatechange";try{p_=S_.location}catch(qq){}var $_=function(e){if(D_(W_,e)){var t=W_[e];delete W_[e],t()}},J_=function(e){return function(){$_(e)}},Q_=function(e){$_(e.data)},X_=function(e){S_.postMessage(Y_(e),p_.protocol+"//"+p_.host)};V_&&B_||(V_=function(e){R_(arguments.length,1);var t=j_(e)?e:z_(e),n=N_(arguments,1);return W_[++q_]=function(){T_(t,void 0,n)},f_(q_),q_},B_=function(e){delete W_[e]},U_?f_=function(e){F_.nextTick(J_(e))}:G_&&G_.now?f_=function(e){G_.now(J_(e))}:H_&&!P_?(m_=(h_=new H_).port2,h_.port1.onmessage=Q_,f_=E_(m_.postMessage,m_)):S_.addEventListener&&j_(S_.postMessage)&&!S_.importScripts&&p_&&"file:"!==p_.protocol&&!L_(X_)?(f_=X_,S_.addEventListener("message",Q_,!1)):f_=K_ in x_("script")?function(e){A_.appendChild(x_("script")).onreadystatechange=function(){A_.removeChild(this),$_(e)}}:function(e){setTimeout(J_(e),0)});var Z_,ey,ty,ny,ry,oy,ay,iy,sy={set:V_,clear:B_},cy=E,ly=/ipad|iphone|ipod/i.test(Ie)&&void 0!==cy.Pebble,uy=/web0s(?!.*chrome)/i.test(Ie),dy=E,py=Ds,fy=j.f,hy=sy.set,my=I_,vy=ly,gy=uy,_y=v_,yy=dy.MutationObserver||dy.WebKitMutationObserver,by=dy.document,Oy=dy.process,My=dy.Promise,ky=fy(dy,"queueMicrotask"),Cy=ky&&ky.value;Cy||(Z_=function(){var e,t;for(_y&&(e=Oy.domain)&&e.exit();ey;){t=ey.fn,ey=ey.next;try{t()}catch(qq){throw ey?ny():ty=void 0,qq}}ty=void 0,e&&e.enter()},my||_y||gy||!yy||!by?!vy&&My&&My.resolve?((ay=My.resolve(void 0)).constructor=My,iy=py(ay.then,ay),ny=function(){iy(Z_)}):_y?ny=function(){Oy.nextTick(Z_)}:(hy=py(hy,dy),ny=function(){hy(Z_)}):(ry=!0,oy=by.createTextNode(""),new yy(Z_).observe(oy,{characterData:!0}),ny=function(){oy.data=ry=!ry}));var wy=Cy||function(e){var t={fn:e,next:void 0};ty&&(ty.next=t),ey||(ey=t,ny()),ty=t},Iy=E,Sy=function(e){try{return{error:!1,value:e()}}catch(qq){return{error:!0,value:qq}}},Ty=function(){this.head=null,this.tail=null};Ty.prototype={add:function(e){var t={item:e,next:null};this.head?this.tail.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}};var Ey=Ty,jy=E.Promise,Dy="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,Ly=!Dy&&!v_&&"object"==typeof window&&"object"==typeof document,Ay=E,Ny=jy,xy=ge,Ry=_o,Py=Un,Uy=Dt,Vy=Ly,By=Dy,Fy=Ae;Ny&&Ny.prototype;var Gy=Uy("species"),zy=!1,Hy=xy(Ay.PromiseRejectionEvent),Yy=Ry("Promise",(function(){var e=Py(Ny),t=e!==String(Ny);if(!t&&66===Fy)return!0;if(!Fy||Fy<51||!/native code/.test(e)){var n=new Ny((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};if((n.constructor={})[Gy]=r,!(zy=n.then((function(){}))instanceof r))return!0}return!t&&(Vy||By)&&!Hy})),qy={CONSTRUCTOR:Yy,REJECTION_EVENT:Hy,SUBCLASSING:zy},Wy={},Ky=Ke,$y=TypeError,Jy=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw $y("Bad Promise constructor");t=e,n=r})),this.resolve=Ky(t),this.reject=Ky(n)};Wy.f=function(e){return new Jy(e)};var Qy,Xy,Zy,eb=Io,tb=v_,nb=E,rb=R,ob=kr,ab=Ja,ib=Ra,sb=Wc,cb=Ke,lb=ge,ub=be,db=mc,pb=w_,fb=sy.set,hb=wy,mb=function(e,t){var n=Iy.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))},vb=Sy,gb=Ey,_b=ir,yb=jy,bb=Wy,Ob="Promise",Mb=qy.CONSTRUCTOR,kb=qy.REJECTION_EVENT,Cb=qy.SUBCLASSING,wb=_b.getterFor(Ob),Ib=_b.set,Sb=yb&&yb.prototype,Tb=yb,Eb=Sb,jb=nb.TypeError,Db=nb.document,Lb=nb.process,Ab=bb.f,Nb=Ab,xb=!!(Db&&Db.createEvent&&nb.dispatchEvent),Rb="unhandledrejection",Pb=function(e){var t;return!(!ub(e)||!lb(t=e.then))&&t},Ub=function(e,t){var n,r,o,a=t.value,i=1==t.state,s=i?e.ok:e.fail,c=e.resolve,l=e.reject,u=e.domain;try{s?(i||(2===t.rejection&&zb(t),t.rejection=1),!0===s?n=a:(u&&u.enter(),n=s(a),u&&(u.exit(),o=!0)),n===e.promise?l(jb("Promise-chain cycle")):(r=Pb(n))?rb(r,n,c,l):c(n)):l(a)}catch(qq){u&&!o&&u.exit(),l(qq)}},Vb=function(e,t){e.notified||(e.notified=!0,hb((function(){for(var n,r=e.reactions;n=r.get();)Ub(n,e);e.notified=!1,t&&!e.rejection&&Fb(e)})))},Bb=function(e,t,n){var r,o;xb?((r=Db.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),nb.dispatchEvent(r)):r={promise:t,reason:n},!kb&&(o=nb["on"+e])?o(r):e===Rb&&mb("Unhandled promise rejection",n)},Fb=function(e){rb(fb,nb,(function(){var t,n=e.facade,r=e.value;if(Gb(e)&&(t=vb((function(){tb?Lb.emit("unhandledRejection",r,n):Bb(Rb,n,r)})),e.rejection=tb||Gb(e)?2:1,t.error))throw t.value}))},Gb=function(e){return 1!==e.rejection&&!e.parent},zb=function(e){rb(fb,nb,(function(){var t=e.facade;tb?Lb.emit("rejectionHandled",t):Bb("rejectionhandled",t,e.value)}))},Hb=function(e,t,n){return function(r){e(t,r,n)}},Yb=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Vb(e,!0))},qb=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw jb("Promise can't be resolved itself");var r=Pb(t);r?hb((function(){var n={done:!1};try{rb(r,t,Hb(qb,n,e),Hb(Yb,n,e))}catch(qq){Yb(n,qq,e)}})):(e.value=t,e.state=1,Vb(e,!1))}catch(qq){Yb({done:!1},qq,e)}}};if(Mb&&(Eb=(Tb=function(e){db(this,Eb),cb(e),rb(Qy,this);var t=wb(this);try{e(Hb(qb,t),Hb(Yb,t))}catch(qq){Yb(t,qq)}}).prototype,(Qy=function(e){Ib(this,{type:Ob,done:!1,notified:!1,parent:!1,reactions:new gb,rejection:!1,state:0,value:void 0})}).prototype=ob(Eb,"then",(function(e,t){var n=wb(this),r=Ab(pb(this,Tb));return n.parent=!0,r.ok=!lb(e)||e,r.fail=lb(t)&&t,r.domain=tb?Lb.domain:void 0,0==n.state?n.reactions.add(r):hb((function(){Ub(r,n)})),r.promise})),Xy=function(){var e=new Qy,t=wb(e);this.promise=e,this.resolve=Hb(qb,t),this.reject=Hb(Yb,t)},bb.f=Ab=function(e){return e===Tb||void 0===e?new Xy(e):Nb(e)},lb(yb)&&Sb!==Object.prototype)){Zy=Sb.then,Cb||ob(Sb,"then",(function(e,t){var n=this;return new Tb((function(e,t){rb(Zy,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete Sb.constructor}catch(qq){}ab&&ab(Sb,Eb)}eb({global:!0,constructor:!0,wrap:!0,forced:Mb},{Promise:Tb}),ib(Tb,Ob,!1),sb(Ob);var Wb=jy,Kb=qy.CONSTRUCTOR||!bc((function(e){Wb.all(e).then(void 0,(function(){}))})),$b=R,Jb=Ke,Qb=Wy,Xb=Sy,Zb=pc;Io({target:"Promise",stat:!0,forced:Kb},{all:function(e){var t=this,n=Qb.f(t),r=n.resolve,o=n.reject,a=Xb((function(){var n=Jb(t.resolve),a=[],i=0,s=1;Zb(e,(function(e){var c=i++,l=!1;s++,$b(n,t,e).then((function(e){l||(l=!0,a[c]=e,--s||r(a))}),o)})),--s||r(a)}));return a.error&&o(a.value),n.promise}});var eO=Io,tO=qy.CONSTRUCTOR,nO=jy,rO=Ce,oO=ge,aO=kr,iO=nO&&nO.prototype;if(eO({target:"Promise",proto:!0,forced:tO,real:!0},{catch:function(e){return this.then(void 0,e)}}),oO(nO)){var sO=rO("Promise").prototype.catch;iO.catch!==sO&&aO(iO,"catch",sO,{unsafe:!0})}var cO=R,lO=Ke,uO=Wy,dO=Sy,pO=pc;Io({target:"Promise",stat:!0,forced:Kb},{race:function(e){var t=this,n=uO.f(t),r=n.reject,o=dO((function(){var o=lO(t.resolve);pO(e,(function(e){cO(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var fO=R,hO=Wy;Io({target:"Promise",stat:!0,forced:qy.CONSTRUCTOR},{reject:function(e){var t=hO.f(this);return fO(t.reject,void 0,e),t.promise}});var mO=un,vO=be,gO=Wy,_O=function(e,t){if(mO(e),vO(t)&&t.constructor===e)return t;var n=gO.f(e);return(0,n.resolve)(t),n.promise},yO=Io,bO=qy.CONSTRUCTOR,OO=_O;Ce("Promise"),yO({target:"Promise",stat:!0,forced:bO},{resolve:function(e){return OO(this,e)}});var MO=pt,kO=Uo;Io({target:"Object",stat:!0,forced:D((function(){kO(1)}))},{keys:function(e){return kO(MO(e))}});var CO="canvas",wO="audio",IO="video",SO="screen",TO="small",EO="big",jO="auxiliary",DO="aux",LO="smallVideo",AO="user",NO="environment",xO="mute",RO="unmute",PO="ended",UO="playing",VO="pause",BO="error",FO="loadeddata",GO="audioinput",zO="videoinput",HO="detail",YO="text",qO="main",WO="backup",KO="banned",$O="kick",JO="user_time_out",QO="room_disband",XO="sei-message",ZO="PLAYING",eM="PAUSED",tM="STOPPED",nM="inactive",rM="sendonly",oM="recvonly",aM="add",iM="remove",sM="replace",cM="track",lM="wss://trtc.rtc.qq.com",uM="wss://webrtc.qq.com",dM="qcloud",pM="trtc",fM="webrtc",hM="",mM="jssdk_log",vM="jssdk_event",gM="jssdk_new_endreport",_M=function(e){return hM=e},yM=1,bM=2,OM="live",MM=20,kM=21,CM="anchor",wM="audience",IM="5Y2wZK8nANNAoVw6dSAHVjNxrD1ObBM2kBPV",SM="224d130c-7b5c-415b-aaa2-79c2eb5a6df2",TM=2,EM=qO,jM=jO,DM="unknown",LM="DISCONNECTED",AM="CONNECTING",NM="RECONNECTING",xM="CONNECTED",RM="new",PM="connecting",UM="failed",VM="closed",BM="disconnected",FM="connected",GM="completed",zM=30,HM="join",YM="delta-join",qM="rejoin",WM="leave",KM="delta-leave",$M="publish",JM="delta-publish",QM="unpublish",XM="subscribe",ZM="unsubscribe",ek="uplink-connection",tk="uplink-reconnection",nk="downlink-connection",rk="downlink-reconnection",ok="setLocalDescription",ak="setRemoteDescription",ik="iceConnectionState",sk="stream-initialize",ck="websocketConnectionState",lk="websocketReconnectionState",uk="update-stream",dk="recover-subscription",pk="start-mix-transcode",fk="stop-mix-transcode",hk="player-error",mk="schedule",vk="unsubscribe",gk="subscribe_change",_k="unified-plan",yk="plan-b",bk={MANUAL:"manual",PRESET_LAYOUT:"preset-layout"},Ok={REMOTE:"$PLACE_HOLDER_REMOTE$"},Mk={IT_AUDIO_VIDEO:0,IT_PICTURE:2,IT_CANVAS:3,IT_PURE_AUDIO:4,IT_PURE_VIDEO:5},kk="string",Ck="number",wk="boolean",Ik="array",Sk="object",Tk={ADD:aM,REMOVE:iM},Ek={unknown:0,wifi:1,"4g":2,"3g":3,"2g":4,wired:5},jk=-1,Dk=0,Lk=1,Ak=EO,Nk=TO,xk=6048e5,Rk="schedule.rtc.qq.com",Pk="schedule.rtc.qcloud.com",Uk="schedule.rtc.tencentcloud.com",Vk="schedule-ecdn.rtc.tencentcloud.com",Bk="",Fk=function(e){return Bk=e},Gk="TRTC",zk="Client",Hk="LocalStream",Yk="RemoteStream",qk="Stream",Wk="web.sdk.qcloud.com",Kk="web.sdk.tencent.cn",$k="web.sdk.cloud.tencent.cn",Jk="https://console.cloud.tencent.com/trtc",Qk="https://".concat(Wk,"/trtc/webrtc/doc"),Xk="".concat(Qk,"/zh-cn/"),Zk="trtc_error_assistance",eC="default",tC="communications",nC={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,NONE:5},rC=1,oC=2,aC=1,iC=2,sC=Object.keys(nC),cC=["normal leave","timeout leave","kick","role change"],lC=2e3,uC="ric",dC="raf",pC="interval",fC="timeout",hC="Resolution reset to 1080p, need to upgrade ability here https://cloud.tencent.com/document/product/647/85386",mC={"TRTC.checkSystemRequirements":40001,"TRTC.isScreenShareSupported":40002,"TRTC.isSmallStreamSupported":40003,"TRTC.createClient.rtc":40004,"TRTC.createClient.live":40005,"TRTC.createClient.intRoomId":40006,"TRTC.createClient.stringRoomId":40007,"TRTC.createClient.autoSubscribe":40008,"TRTC.createClient.manualSubscribe":40009,"TRTC.enableUploadLog":40010,"TRTC.disableUploadLog":40011,"Client.publish":40012,"Client.publish.isAuxiliary":40013,"Client.switchRole":40014,"Client.startPublishCDNStream":40015,"Client.stopPublishCDNStream":40016,"Client.startMixTranscode":40017,"Client.stopMixTranscode":40018,"Client.enableAudioVolumeEvaluation":40019,"Client.enableSmallStream":40020,"Client.disableSmallStream":40021,"Client.setSmallStreamProfile":40022,"Client.setRemoteVideoStreamType":40023,"Client.sendSEIMessage":40024,"Client.setProxyServer":40025,"Client.setTurnServer":40026,"LocalStream.setAudioProfile.standard":40027,"LocalStream.setAudioProfile.high":40028,"LocalStream.setAudioProfile.standard-stereo":40029,"LocalStream.setAudioProfile.high-stereo":40030,"LocalStream.setVideoProfile.120p":40031,"LocalStream.setVideoProfile.120p_2":40032,"LocalStream.setVideoProfile.180p":40033,"LocalStream.setVideoProfile.180p_2":40034,"LocalStream.setVideoProfile.240p":40035,"LocalStream.setVideoProfile.240p_2":40036,"LocalStream.setVideoProfile.360p":40037,"LocalStream.setVideoProfile.360p_2":40038,"LocalStream.setVideoProfile.480p":40039,"LocalStream.setVideoProfile.480p_2":40040,"LocalStream.setVideoProfile.720p":40041,"LocalStream.setVideoProfile.1080p":40042,"LocalStream.setVideoProfile.1440p":40043,"LocalStream.setVideoProfile.4K":40044,"LocalStream.setScreenProfile.480p":40045,"LocalStream.setScreenProfile.480p_2":40046,"LocalStream.setScreenProfile.720p":40047,"LocalStream.setScreenProfile.720p_2":40048,"LocalStream.setScreenProfile.1080p":40049,"LocalStream.setScreenProfile.1080p_2":40050,"LocalStream.setVideoContentHint.motion":40051,"LocalStream.setVideoContentHint.detail":40052,"LocalStream.setVideoContentHint.text":40053,"LocalStream.setAudioCaptureVolume":40054,"LocalStream.getVideoFrame":40055,"RemoteStream.setAudioOutput":40056,"RemoteStream.getVideoFrame":40057,AI_DENOISER:1700,SPATIAL_AUDIO:1701,"2K_4K":1704},vC=["width","height","frameRate","facingMode","sampleRate","sampleSize","channelCount","deviceId"],gC=ue,_C=dl,yC=/"/g,bC=te("".replace),OC=function(e,t,n,r){var o=_C(gC(e)),a="<"+t;return""!==n&&(a+=" "+n+'="'+bC(_C(r),yC,""")+'"'),a+">"+o+"</"+t+">"},MC=D,kC=function(e){return MC((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))},CC=OC;Io({target:"String",proto:!0,forced:kC("link")},{link:function(e){return CC(this,"a","href",e)}}),Io({target:"Array",stat:!0},{isArray:uu});var wC="AVOID_REPEATED_CALL",IC="INVALID_PARAMETER_REQUIRED",SC="INVALID_PARAMETER_TYPE",TC="INVALID_PARAMETER_EMPTY",EC="INVALID_PARAMETER_INSTANCE",jC="INVALID_PARAMETER_RANGE",DC="API_CALL_TIMEOUT",LC="SIGNAL_CHANNEL_RECONNECTION_FAILED",AC="SIGNAL_CHANNEL_SETUP_FAILED",NC="ERROR_MESSAGE",xC="EXCHANGE_SDP_TIMEOUT",RC="DOWNLINK_RECONNECTION_FAILED",PC="EXCHANGE_SDP_FAILED",UC="UPLINK_RECONNECTION_FAILED",VC="INVALID_PURE_AUDIO",BC="INVALID_STREAMID",FC="INVALID_USER_DEFINE_RECORDID",GC="INVALID_USER_DEFINE_PUSH_ARGS",zC="INVALID_PROXY",HC="INVALID_JOIN",YC="INVALID_ROOMID_STRING",qC="INVALID_ROOMID_INTEGER",WC="JOIN_ROOM_TIMEOUT",KC="JOIN_ROOM_FAILED",$C="REJOIN_ROOM_FAILED",JC="INVALID_DESTROY",QC="INVALID_PUBLISH",XC="INVALID_UNPUBLISH",ZC="INVALID_AUDIENCE",ew="INVALID_INITIALIZE",tw="INVALID_DUPLICATE_PUBLISHING",nw="INVALID_REMOTE_STREAM",rw="SUBSCRIBE_FAILED",ow="INVALID_ROLE",aw="INVALID_OPERATION_SWITCH_ROLE",iw="SWITCH_ROLE_TIMEOUT",sw="SWITCH_ROLE_FAILED",cw="CLIENT_BANNED",lw="INVALID_OPERATION_START_PUBLISH_CDN",uw="INVALID_OPERATION_STOP_PUBLISH_CDN",dw="INVALID_STREAM_ID",pw="START_PUBLISH_CDN_FAILED",fw="STOP_PUBLISH_CDN_FAILED",hw="START_MIX_TRANSCODE",mw="STOP_MIX_TRANSCODE",vw="INVALID_AUDIO_VOLUME",gw="ENABLE_SMALL_STREAM_PUBLISHED",_w="DISABLE_SMALL_STREAM_PUBLISHED",yw="NOT_SUPPORTED_SMALL_STREAM",bw="INVALID_SMALL_STREAM_PROFILE",Ow="INVALID_PARAMETER_REMOTE_STREAM",Mw="INVALID_SWITCH_DEVICE",kw="INVALID_SWITCH_DEVICE_PUBLISHING",Cw="INVALID_REPLACE_TRACK",ww="INVALID_INITIALIZE_LOCAL_STREAM",Iw="INVALID_ADD_TRACK_REPETITIVE",Sw="INVALID_ADD_TRACK_REMOVING",Tw="INVALID_ADD_TRACK_PUBLISHING",Ew="INVALID_STREAM_INITIALIZED",jw="INVALID_ADD_TRACK_NUMBER",Dw="INVALID_REMOVE_AUDIO_TRACK",Lw="INVALID_REMOVE_AUDIO_ADDING",Aw="INVALID_REMOVE_AUDIO_ON",Nw="INVALID_REMOVE_TRACK_PUBLISHING",xw="INVALID_REMOVE_TRACK_NOT_PUBLISHING",Rw="INVALID_REMOVE_TRACK_NUMBER",Pw="INVALID_REPLACE_TRACK_NO_TRACK",Uw="REPEAT_JOIN",Vw="CLIENT_DESTROYED",Bw="START_MIX_TRANSCODE_FAILED",Fw="STOP_MIX_TRANSCODE_FAILED",Gw="MIX_TRANSCODE_NOT_STARTED",zw="CANNOT_LESS_THAN_ZERO",Hw="MIX_PARAMS_VIDEO_FRAMERATE",Yw="MIX_PARAMS_VIDEO_GOP",qw="MIX_PARAMS_AUDIO_BITRATE",Ww="MIX_PARAMS_USER_Z_ORDER",Kw="MIX_PARAMS_NOT_SELF",$w="MIX_PARAMS_USER_STREAM",Jw="INVALID_ELEMENT_ID",Qw="INVALID_ELEMENT_ID_TYPE",Xw="PLAY_FAILED",Zw="INVALID_CREATE_STREAM_SOURCE",eI="INVALID_CREATE_STREAM_SCREEN",tI="INVALID_CREATE_STREAM_AUDIO",nI="INVALID_CREATE_STREAM_SCREEN_AUDIO",rI="NOT_SUPPORTED_HTTP",oI="NOT_SUPPORTED_WEBRTC",aI="NOT_SUPPORTED_PROFILE",iI="NOT_SUPPORTED_H264ENCODE",sI="NOT_SUPPORTED_H264DECODE",cI="NOT_SUPPORTED_TRACK",lI="NOT_SUPPORTED_SWITCH_DEVICE",uI="NOT_SUPPORTED_CAPTURE",dI="NOT_SUPPORTED_AUX",pI="MICROPHONE_NOT_FOUND",fI="CAMERA_NOT_FOUND",hI="SIGNAL_RESPONSE_FAILED",mI="CATCH_HANDLER_ERROR",vI="API_NOT_EXIST",gI="CONNECTION_CLOSED",_I="SUBSCRIBE_ALL_FALSE",yI="SEI_NOT_SUPPORT",bI="SEI_DISABLED",OI="SEI_EMPTY",MI="SEI_OVERSIZE",kI="SEI_BEFORE_PUBLISH",CI="SEI_NOT_VIDEO",wI="CALL_FREQUENCY_LIMIT",II="CONNECTION_ABORTED",SI="API_CALL_ABORTED",TI="DUPLICATE_AUX",EI={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,a="".concat(t||n.name),i="";return i=Array.isArray(n.type)?n.type.join("|"):n.type,"'".concat(a,"' must be type of ").concat(i," when calling ").concat(r,"(), received type: ").concat(vT(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,a="".concat(t||n.name),i="".concat(n.instanceOf.name||n.instanceOf);return"'".concat(a,"' must be instanceof ").concat(i," when calling ").concat(r,"(), received type: ").concat(vT(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},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.",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_DESTROY:"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(wM,', please call switchRole("').concat(CM,'") firstly before publish().'),INVALID_INITIALIZE:"cannot publish stream because stream is not initialized, is switching device, or has been closed.",INVALID_DUPLICATE_PUBLISHING:function(e){return"duplicate ".concat(e," stream publishing, please unpublish your prev ").concat(e," stream 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){var t=e.message,n=e.stream;return"failed to subscribe ".concat(n.getUserId()," ").concat(n.getType()," stream, reason: ").concat(t,".")},INVALID_ROLE:"switchRole can only be called in live mode.",INVALID_PARAMETER_SWITCH_ROLE:"role could only be set to a value as ".concat(CM," or ").concat(wM,"."),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.code," errMsg: ").concat(e.message,".")},CLIENT_BANNED:function(e){return"client was banned because of "+e.message+"."},INVALID_OPERATION_START_PUBLISH_CDN:"please call startPublishCDNStream() before client join the room or after client join the room and successfully publish the local stream.",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 on your browser.",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_REPLACE_TRACK_NO_TRACK:function(e){return"cannot replace ".concat(e.kind," track because stream has not ").concat(e.kind," track")},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,".")},PLAY_FAILED:function(e){return"".concat(e.media," play failed,browser exception: ").concat(e.error.toString())},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:"http protocol does not support the ability to capture and publish streams, please use the https protocol.",NOT_SUPPORTED_WEBRTC:"your browser or environment does not support full WebRTC capabilities.",NOT_SUPPORTED_PROFILE:"your browser does not support setVideoProfile.",NOT_SUPPORTED_MEDIA:"your browser or environment 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_TRACK:function(e){return"".concat(e,"Track is not supported on your browser.")},NOT_SUPPORTED_SWITCH_DEVICE:"switchDevice is not supported on your browser.",NOT_SUPPORTED_CAPTURE:"Your browser or environment does not support screen sharing, please check whether the browser version.",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'.")},API_NOT_EXIST:function(e){var t=e.name;return"experimental api ".concat(t," does not exist.")},REPEAT_JOIN:function(e){return"[".concat(e,"] is calling client.join api or has already joined room, please avoid repeated join.")},CONNECTION_CLOSED:"remoteStream has been unsubscribed or unpublished by remote user.",SUBSCRIBE_ALL_FALSE:"cannot subscribe when both audio & video are false, use client.unsubscribe() instead",CLIENT_DESTROYED:function(e){var t=e.funName;return"failed to call ".concat(t,"() because client was destroyed.")},SEI_NOT_SUPPORT:function(e){return"not support to sendSEIMessage".concat(!1===e?" without using h264 codec":"")},SEI_DISABLED:"SEI is disabled, to enable SEI: TRTC.createClient({ enableSEI: true })",SEI_EMPTY:"buffer cannot be empty",SEI_OVERSIZE:function(e){return"buffer size(".concat(e,") is over 1000 Bytes")},SEI_BEFORE_PUBLISH:"please call sendSEIMessage() after publish() success",SEI_NOT_VIDEO:"cannot send sei when localStream has not video.",CALL_FREQUENCY_LIMIT:function(e){var t=e.isSize,n=e.name,r=e.timesInSecond,o=e.maxSizeInSecond;return"api ".concat(n," call ").concat(t?"size":"times"," is over ").concat(t?o+" bytes":r," in a second.")},CONNECTION_ABORTED:function(e){return"connection aborted due to: "+e},API_CALL_ABORTED:function(e){return e.message.includes("REMOTE_STREAM_NOT_EXIST")?"Subscribe ".concat(e.stream.getUserId()," ").concat(e.stream.getType()," stream aborted, reason: remote user ").concat(e.stream.getUserId()," unpublished stream."):"API aborted, reason: ".concat(e.message)},DUPLICATE_AUX:"only one auxiliary stream can be published in a room.",NOT_SUPPORTED_AUX:"publish auxiliary stream is not supported on your browser."},jI=E,DI=D,LI=dl,AI=tg.trim,NI=te("".charAt),xI=jI.parseFloat,RI=jI.Symbol,PI=RI&&RI.iterator,UI=1/xI("\t\n\v\f\r \u2028\u2029\ufeff-0")!=-1/0||PI&&!DI((function(){xI(Object(PI))}))?function(e){var t=AI(LI(e)),n=xI(t);return 0===n&&"-"==NI(t,0)?-0:n}:xI;Io({global:!0,forced:parseFloat!=UI},{parseFloat:UI});var VI=window.navigator&&window.navigator.userAgent||"",BI=/AppleWebKit\/([\d.]+)/i.exec(VI);BI&&parseFloat(BI.pop());var FI=/iPad/i.test(VI),GI=navigator.maxTouchPoints&&navigator.maxTouchPoints>2&&/Macintosh/.test(VI),zI=/iPhone/i.test(VI)&&!FI,HI=/iPod/i.test(VI),YI=zI||FI||HI||GI,qI=/Android/i.test(VI);qI&&function(){var e=VI.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])}(),qI&&/webkit/i.test(VI);var WI=/Firefox/i.test(VI),KI=WI&&function(){var e=VI.match(/Firefox\/(\d+)/);return e&&e[1]?parseFloat(e[1]):null}(),$I=/Edge\//i.test(VI),JI=$I&&function(){var e=VI.match(/Edge\/(\d+)/i);if(e&&e[1])return e[1]}(),QI=/Edg\//i.test(VI),XI=QI&&function(){var e=VI.match(/Edg\/(\d+)/);return e&&e[1]?parseFloat(e[1]):null}(),ZI=/SogouMobileBrowser\//i.test(VI),eS=ZI&&function(){var e=VI.match(/SogouMobileBrowser\/(\d+)/);return e&&e[1]?parseFloat(e[1]):null}(),tS=/MetaSr\s/i.test(VI),nS=tS&&function(){var e=VI.match(/MetaSr(\s\d+(\.\d+)+)/);return e&&e[1]?parseFloat(e[1]):null}(),rS=/TBS\/\d+/i.test(VI),oS=rS&&function(){var e=VI.match(/TBS\/(\d+)/i);if(e&&e[1])return e[1]}(),aS=/XWEB\/\d+/i.test(VI),iS=aS&&function(){var e=VI.match(/XWEB\/(\d+)/i);if(e&&e[1])return e[1]}();/MSIE\s8\.0/.test(VI),/MSIE\/\d+/i.test(VI)&&function(){var e=/MSIE\s(\d+)\.\d/.exec(VI),t=e&&parseFloat(e[1]);!t&&/Trident\/7.0/i.test(VI)&&/rv:11.0/.test(VI)&&(t=11)}();var sS=/(micromessenger|webbrowser)/i.test(VI),cS=sS&&function(){var e=VI.match(/MicroMessenger\/(\d+)/i);if(e&&e[1])return e[1]}(),lS=!rS&&/MQQBrowser\/\d+/i.test(VI)&&/COVC\/\d+/i.test(VI),uS=!rS&&/MQQBrowser\/\d+/i.test(VI)&&!/COVC\/\d+/i.test(VI),dS=(uS||lS)&&function(){var e=VI.match(/ MQQBrowser\/([\d.]+)/);return e&&e[1]?e[1]:null}(),pS=!rS&&/ QQBrowser\/\d+/i.test(VI),fS=pS&&function(){var e=VI.match(/ QQBrowser\/([\d.]+)/);return e&&e[1]?e[1]:null}(),hS=!rS&&/QQBrowserLite\/\d+/i.test(VI),mS=hS&&function(){var e=VI.match(/QQBrowserLite\/([\d.]+)/);return e&&e[1]?e[1]:null}(),vS=!rS&&/MQBHD\/\d+/i.test(VI),gS=vS&&function(){var e=VI.match(/MQBHD\/([\d.]+)/);return e&&e[1]?e[1]:null}(),_S=/Windows/i.test(VI),yS=!YI&&/MAC OS X/i.test(VI),bS=!qI&&/Linux/i.test(VI);/MicroMessenger/i.test(VI);var OS=/UCBrowser/i.test(VI);/Electron/i.test(VI);var MS,kS,CS=/MiuiBrowser/i.test(VI),wS=CS&&function(){var e=VI.match(/MiuiBrowser\/([\d.]+)/);return e&&e[1]?e[1]:null}(),IS=/HuaweiBrowser/i.test(VI),SS=/Huawei/i.test(VI),TS=IS&&function(){var e=VI.match(/HuaweiBrowser\/([\d.]+)/);return e&&e[1]?e[1]:null}(),ES=/SamsungBrowser/i.test(VI),jS=ES&&function(){var e=VI.match(/SamsungBrowser\/([\d.]+)/);return e&&e[1]?e[1]:null}(),DS=/HeyTapBrowser/i.test(VI),LS=DS&&function(){var e=VI.match(/HeyTapBrowser\/([\d.]+)/);return e&&e[1]?e[1]:null}(),AS=/VivoBrowser/i.test(VI),NS=AS&&function(){var e=VI.match(/VivoBrowser\/([\d.]+)/);return e&&e[1]?e[1]:null}(),xS=function(){var e=VI.match(/Chrome\/(\d+)/);return e&&e[1]?Number(e[1]):null},RS=/Chrome/i.test(VI),PS=!$I&&!tS&&!ZI&&!rS&&!aS&&!QI&&!pS&&!CS&&!IS&&!ES&&!DS&&!AS&&/Chrome/i.test(VI),US=PS&&xS(),VS=PS&&function(){var e=VI.match(/Chrome\/([\d.]+)/);return e&&e[1]?e[1]:null}(),BS=!RS&&!uS&&!lS&&!hS&&!vS&&/Safari/i.test(VI),FS=function(){if(BS){var e=VI.match(/Version\/([\d.]+)/);if(e&&e[1])return e[1]}return""}(),GS=/Android.*(wv|.0.0.0)/.test(VI),zS=function(){if(GI)return FS;if(YI){var e=VI.match(/OS (\d+)_(\d+)/i);if(e&&e[1]){var t=e[1];return e[2]&&(t+=".".concat(e[2])),t}}return""}(),HS=Number(zS.split(".")[0]),YS="15.1"===FS,qS="15.1"===zS,WS=14===(MS=Number(zS.split(".")[0]))||13===MS,KS="file:"===location.protocol||"localhost"===location.hostname||"127.0.0.1"===location.hostname,$S=function(){if(lT(kS))try{kS=window.localStorage}catch(qq){xE.warn(qq),kS=!1}return kS},JS=new Map([[WI,["Firefox",KI]],[QI,["Edg",XI]],[PS,["Chrome",VS]],[BS,["Safari",FS]],[rS,["TBS",oS]],[aS,["XWEB",iS]],[sS&&zI,["WeChat",cS]],[pS,["QQ(Win)",fS]],[uS,["QQ(Mobile)",dS]],[lS,["QQ(Mobile X5)",dS]],[hS,["QQ(Mac)",mS]],[vS,["QQ(iPad)",gS]],[CS,["MI",wS]],[IS,["HW",TS]],[ES,["Samsung",jS]],[DS,["OPPO",LS]],[AS,["VIVO",NS]],[$I,["EDGE",JI]],[ZI,["SogouMobile",eS]],[tS,["Sogou",nS]]]);function QS(){var e="unknown",t="unknown";return JS.get(!0)&&(e=JS.get(!0)[0],t=JS.get(!0)[1]),{name:e,version:t}}var XS=function(e,t){return t?Qk+"/"+e+"/"+t:Qk+"/"+e+"/index.html"},ZS=function(){if(!$S())return!1;var e=localStorage.getItem(Zk);e&&!function(e){var t=e.saveTime&&(new Date).getTime()-e.saveTime>=xk,n=!e.saveVersion||e.saveVersion!==No;return t||n}(JSON.parse(e))||(xE.info("init debug info"),function(){var e=new XMLHttpRequest;if(e.open("GET","https://web.sdk.qcloud.com/trtc/webrtc/download/error-message/0.0.3/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(Zk,JSON.stringify({message:e.responseText,saveTime:(new Date).getTime(),saveVersion:No})),document.body.removeChild(t)}}())};function eT(e){var t=e.key,n=e.data,r=e.link,o=e.addDocLink,a=void 0===o||o,i="",s="",c="";cT(EI[t])?i=EI[t](n):uT(EI[t])&&(i=EI[t]);var l=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(Zk);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=l.TRTC_ERROR_INFO,d=l.TRTC_ERROR_LINK;r?c="".concat(r.className,".html#").concat(r.fnName):d&&d[t]&&(cT(d[t])?c=d[t](n):uT(d[t])&&(c=d[t]));var p=i;return MT()&&(u&&u[t]&&(cT(u[t])?s=u[t](n):uT(u[t])&&(s=u[t])),s&&(p=a?s+"\n请查看文档: "+XS("zh-cn",c)+"\n\n":s+"\n\n",p+=i)),a&&(p+=" \nRefer to: "+XS("en",c)+"\n"),p}var tT=function(){return function(e){var t=window.location.search.match(new RegExp("(\\?|&)"+e+"=([^&]*)(&|$)"));return t?decodeURIComponent(t[2]):""}("trtc_env")},nT=function(e){return(e=Number(e))>0&&e<14e8},rT=function(e,t){var n;n=hM?hM.includes("http")?hM:"https://"+hM:nT(e)?"https://apisgp.my-imcloud.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 oT(){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 a=n||"unknown";if(r)switch(r){case"cellular":case"wimax":a=o||"unknown";break;case"wifi":a="wifi";break;case"ethernet":a="wired";break;case"none":case"other":case"unknown":a="unknown"}return a}var aT=function(e){if(!e||"object"!==o(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 iT(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return e<=1?n:iT(e-1,n,t+n)}function sT(e){var t=Math.round(e/2)+1;return t>6?13e3:1e3*iT(t)}var cT=function(e){return"function"==typeof e},lT=function(e){return void 0===e},uT=function(e){return"string"==typeof e},dT=function(e){return"number"==typeof e},pT=function(e){return"boolean"==typeof e},fT=function(e){return"object"===vT(e)},hT=function(e){return"array"===vT(e)},mT=function(e){return vT(e)==="MediaStreamTrack".toLowerCase()};function vT(e){return Reflect.apply(Object.prototype.toString,e,[]).replace(/^\[object\s(\w+)\]$/,"$1").toLowerCase()}function gT(e){var t={};return t.urls="turn:".concat(e.url),lT(e.username)||lT(e.credential)||(t.username=e.username,t.credential=e.credential,t.credentialType="password",lT(e.credentialType)||(t.credentialType=e.credentialType)),t}function _T(){return performance&&performance.now?Math.floor(performance.now()):Date.now()}function yT(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"big";if(!uT(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 bT,OT,MT=function(){var e=navigator.language||navigator.userLanguage;return"zh"===e.substr(0,2)},kT=(bT=!1,OT=document.visibilityState,function(){document.visibilityState!==OT&&xE.info("visibility change: ".concat(document.visibilityState)),bT||(document.addEventListener("visibilitychange",(function(){xE.info("visibility change: "+document.visibilityState),OT=document.visibilityState})),bT=!0)});window.AudioContext=window.AudioContext||window.webkitAudioContext||window.mozAudioContext;var CT=function(){return new window.AudioContext},wT=function(){var e;return function(){return e||(e=new window.AudioContext,e.onstatechange=function(){xE.info("gain context state: ".concat(e.state)),"suspended"===e.state?(e.resume(),document.addEventListener("click",e.resume)):"interrupted"===e.state?e.resume():document.removeEventListener("click",e.resume)},e)}}(),IT=!!window.AudioWorkletNode,ST=function(e,t){var n=e.emit;return e.emit=function(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];try{n.apply(e,o)}catch(qq){var i=eT({key:mI,data:{name:t,event:o[0]},addDocLink:!1});xE.warn(i+"\n\n"+qq.stack)}},e},TT=function(e){return+e<10?"0".concat(e):e},ET=function(e){var t=e.match(/^\d+\.\d+\.\d+/)[0];if(!t)return e;var n=t.split("."),r=TT(n[1])+TT(n[2]);return n[1]-15>0&&(n[1]="15"),n[2]-15>0&&(n[2]="15"),n.join(".")+"."+r};function jT(e,t){try{if(hT(e))return"[".concat(e.map((function(e){return jT(e,t)})).join(","),"]");if(!aT(e)||!hT(t))return JSON.stringify(e);var n={},r=new Set(t);return Object.keys(e).forEach((function(t){r.has(t)&&(n[t]=e[t])})),JSON.stringify(n)}catch(qq){return"{}"}}function DT(e){var t=e.url,n=e.body,r=e.method,o=e.timeout,a=new XMLHttpRequest;return new Promise((function(e,i){a.onload=function(t){if(a.status>=200&&a.status<300&&a.responseText.length>0)try{var n=JSON.parse(a.response);e({data:n})}catch(qq){e({data:a.response})}else a.status>0&&i({code:a.status,message:"request failed, readyState:".concat(a.readyState," status:").concat(a.status," loaded size:").concat(t.loaded)})};var s=function(e){i({code:a.readyState,message:"request ".concat(e.type,", readyState:").concat(a.readyState," status:").concat(a.status," loaded size:").concat(e.loaded)})};a.onerror=s,a.onabort=s,a.ontimeout=s,a.timeout=o||5e3,a.open(r||"POST",t,!0),a.send(n)}))}var LT={exports:{}};!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 a(e,t,r,a,i){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new o(r,a||e,i),c=n?n+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function i(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,a=r.length,i=new Array(a);o<a;o++)i[o]=r[o].fn;return i},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,a,i){var s=n?n+e:e;if(!this._events[s])return!1;var c,l,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,a),!0;case 6:return u.fn.call(u.context,t,r,o,a,i),!0}for(l=1,c=new Array(d-1);l<d;l++)c[l-1]=arguments[l];u.fn.apply(u.context,c)}else{var p,f=u.length;for(l=0;l<f;l++)switch(u[l].once&&this.removeListener(e,u[l].fn,void 0,!0),d){case 1:u[l].fn.call(u[l].context);break;case 2:u[l].fn.call(u[l].context,t);break;case 3:u[l].fn.call(u[l].context,t,r);break;case 4:u[l].fn.call(u[l].context,t,r,o);break;default:if(!c)for(p=1,c=new Array(d-1);p<d;p++)c[p-1]=arguments[p];u[l].fn.apply(u[l].context,c)}}return!0},s.prototype.on=function(e,t,n){return a(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return a(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,o){var a=n?n+e:e;if(!this._events[a])return this;if(!t)return i(this,a),this;var s=this._events[a];if(s.fn)s.fn!==t||o&&!s.once||r&&s.context!==r||i(this,a);else{for(var c=0,l=[],u=s.length;c<u;c++)(s[c].fn!==t||o&&!s[c].once||r&&s[c].context!==r)&&l.push(s[c]);l.length?this._events[a]=1===l.length?l[0]:l:i(this,a)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&i(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}(LT);var AT=LT.exports,NT=new AT,xT=1,RT=2,PT=3,UT=4,VT=5,BT=20,FT=21,GT=22,zT=23,HT=24,YT=27,qT=28,WT=29,KT=30,$T=31,JT=32,QT=33,XT=40,ZT=41,eE=52,tE=100,nE=101,rE=102,oE=103,aE=110,iE=111,sE=112,cE=113,lE=114,uE=115,dE=116,pE=120,fE=121,hE=122,mE=123,vE=130,gE=131,_E=132,yE=133,bE=134,OE=135,ME=136,kE=137,CE=200,wE=201,IE=300,SE=301,TE=302,EE=303;function jE(e){var t=e.retryFunction,n=e.settings,o=e.onError,a=e.onRetrying,s=e.onRetryFailed,c=e.context;return function(){for(var e=this,l=arguments.length,u=new Array(l),d=0;d<l;d++)u[d]=arguments[d];var p=n.retries||5,f=0,h=-1,m=0,v=function(){var l=i(r().mark((function i(l,d){var g,_,y,b;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return g=c||e,r.prev=1,r.next=4,t.apply(g,u);case 4:_=r.sent,f=0,l(_),r.next=14;break;case 9:r.prev=9,r.t0=r.catch(1),y=function(){clearTimeout(h),f=0,m=2,d(r.t0)},b=function(){2!==m&&f<p?(f++,m=1,cT(a)&&a.call(g,f,y),h=setTimeout((function(){h=-1,v(l,d)}),lT(n.timeout)?1e3:n.timeout)):(y(),cT(s)&&s.call(g,r.t0))},cT(o)?o.call(g,r.t0,b,d,u):b();case 14:case"end":return r.stop()}}),i,null,[[1,9]])})));return function(e,t){return l.apply(this,arguments)}}();return new Promise(v)}}var DE=l((function e(t){s(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})),LE=function(){function e(t){s(this,e),this.id_=t.id,this.userId_=t.userId,this.sdkAppId_=t.sdkAppId,this.type_=t.type,this.isLocal_=!pT(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){xE.log({log:"[".concat(this.isLocal_?"↑":"↓").concat(this.id_,"] ").concat(this.type_?this.type_+" ":"").concat(t),level:e,forAllJoinedClients:lT(this.userId_),userId:this.userId_,sdkAppId:this.sdkAppId_})}},{key:"info",value:function(e){this.log(nC.INFO,e)}},{key:"debug",value:function(e){this.log(nC.DEBUG,e)}},{key:"warn",value:function(e){this.log(nC.WARN,e)}},{key:"error",value:function(e){this.log(nC.ERROR,e)}}]),e}(),AE=!(YI||qI),NE=function(){function e(){var t=this;s(this,e),this.clients_=new Set,this.queue_=[],this.timeoutId_=-1,this.logLevel_=nC.DEBUG,this.logLevelToUpload_=nC.INFO,this.enableUploadLog_=!0,this.isAbleToUpload_=!1,this.checkURLParam(),NT.on(KT,(function(e){var n=e.client;-1===t.timeoutId_&&t.startUpload(),t.clients_.add(n)})),NT.on(QT,(function(e){var n=e.client;return t.clients_.delete(n)})),NT.on($T,(function(e){e&&aT(e.config)&&sC[e.config.logLevelToUpload]&&(t.logLevelToUpload_=e.config.logLevelToUpload)})),NT.on(UT,this.setIsAbleToUpload,this),NT.on(VT,this.setIsAbleToUpload,this)}var t,n;return l(e,[{key:"getIsAbleToUpload",value:function(){return this.isAbleToUpload_}},{key:"setIsAbleToUpload",value:function(){this.isAbleToUpload_=!0,NT.off(UT,this.setIsAbleToUpload,this),NT.off(VT,this.setIsAbleToUpload,this)}},{key:"startUpload",value:(n=i(r().mark((function e(){var t=this;return r().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:"getLogsToUpload",value:function(){var e=this,t={map:new Map,splicedQueue:[]};if(this.queue_[0].forAllJoinedClients&&0===this.clients_.size)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(r().mark((function e(){var t,n,o,a,i,s,c,l,u,d;return r().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,o=t.splicedQueue,0!==n.size){e.next=5;break}return e.abrupt("return");case 5:e.prev=5,a=M(n.values()),i=0;case 8:if(!(i<a.length)){e.next=16;break}return s=a[i],c=s.userId,l=s.sdkAppId,u=s.logs,e.next=12,this.uploadLogWithRetry(JSON.stringify({timestamp:qm(),sdkAppId:String(l),userId:c,version:No,log:u.map((function(e){return e.log})).join("\n")}),l);case 12:u.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:d=o.filter((function(e){return!e.uploaded})),d.length>0&&(this.queue_=d.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 jE({retryFunction:function(){return DT({url:rT(t,mM),body: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(Ym()),String.prototype.padStart?"[".concat(t.toTimeString().replace(/.*(\d{2}:\d{2}:\d{2}).*/,"$1"),":").concat(t.getMilliseconds().toString().padStart(3,"0"),"] <").concat(sC[e],">"):"[".concat(t.toTimeString().replace(/.*(\d{2}:\d{2}:\d{2}).*/,"$1"),":").concat(t.getMilliseconds(),"] <").concat(sC[e],">")}},{key:"getLogLevel",value:function(){return this.logLevel_}},{key:"setLogLevel",value:function(e){lT(sC[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,a=e.userId,i=e.sdkAppId;if(t="".concat(this.getPrefix(n)," ").concat(t),this.enableUploadLog_&&n>=this.logLevelToUpload_&&this.queue_.push(new DE({log:t,level:n,userId:a,sdkAppId:i,forAllJoinedClients:o})),!(n<this.logLevel_)){var s=sC[n]?sC[n].toLowerCase():"info";AE?console[s]("%cTRTC%c%s","padding: 1px 4px;border-radius: 3px;color: #fff;background: #1E88E5;","display: inline",t):console[s](t)}}},{key:"debug",value:function(e){this.log({log:e,level:nC.DEBUG})}},{key:"info",value:function(e){this.log({log:e,level:nC.INFO})}},{key:"warn",value:function(e){this.log({log:e,level:nC.WARN})}},{key:"error",value:function(e){this.log({log:e,level:nC.ERROR})}},{key:"createLogger",value:function(e){return new LE(e)}},{key:"checkURLParam",value:function(){var e=new URLSearchParams(location.search).get("logLevelToUpload");sC[e]&&(this.logLevelToUpload_=e)}}]),e}(),xE=new NE,RE=!0,PE=be,UE=Math.floor,VE=Number.isInteger||function(e){return!PE(e)&&isFinite(e)&&UE(e)===e};Io({target:"Number",stat:!0},{isInteger:VE});var BE,FE=Io,GE=te,zE=j.f,HE=xr,YE=dl,qE=Ng,WE=ue,KE=Rg,$E=GE("".startsWith),JE=GE("".slice),QE=Math.min,XE=KE("startsWith");FE({target:"String",proto:!0,forced:!(!XE&&(BE=zE(String.prototype,"startsWith"),BE&&!BE.writable))&&!XE},{startsWith:function(e){var t=YE(WE(this));qE(e);var n=HE(QE(arguments.length>1?arguments[1]:void 0,t.length)),r=YE(e);return $E?$E(t,r,n):JE(t,n,n+r.length)===r}});var ZE=L,ej=te,tj=R,nj=D,rj=Uo,oj=Xr,aj=P,ij=pt,sj=ie,cj=Object.assign,lj=Object.defineProperty,uj=ej([].concat),dj=!cj||nj((function(){if(ZE&&1!==cj({b:1},cj(lj({},"a",{enumerable:!0,get:function(){lj(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=cj({},e)[n]||rj(cj({},t)).join("")!=r}))?function(e,t){for(var n=ij(e),r=arguments.length,o=1,a=oj.f,i=aj.f;r>o;)for(var s,c=sj(arguments[o++]),l=a?uj(rj(c),a(c)):rj(c),u=l.length,d=0;u>d;)s=l[d++],ZE&&!tj(i,c,s)||(n[s]=c[s]);return n}:cj,pj=dj;Io({target:"Object",stat:!0,arity:2,forced:Object.assign!==pj},{assign:pj});var fj=te,hj=Ke,mj=be,vj=mt,gj=$l,_j=A,yj=Function,bj=fj([].concat),Oj=fj([].join),Mj={},kj=function(e,t,n){if(!vj(Mj,t)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";Mj[t]=yj("C,a","return new C("+Oj(r,",")+")")}return Mj[t](e,n)},Cj=_j?yj.bind:function(e){var t=hj(this),n=t.prototype,r=gj(arguments,1),o=function(){var n=bj(r,gj(arguments));return this instanceof o?kj(t,n.length,n):t.apply(e,n)};return mj(n)&&(o.prototype=n),o},wj=Cj;Io({target:"Function",proto:!0,forced:Function.bind!==wj},{bind:wj});var Ij=Io,Sj=Vu.findIndex,Tj=fa,Ej="findIndex",jj=!0;Ej in[]&&Array(1).findIndex((function(){jj=!1})),Ij({target:"Array",proto:!0,forced:jj},{findIndex:function(e){return Sj(this,e,arguments.length>1?arguments[1]:void 0)}}),Tj(Ej);var Dj=L,Lj=te,Aj=Uo,Nj=fe,xj=Lj(P.f),Rj=Lj([].push),Pj=function(e){return function(t){for(var n,r=Nj(t),o=Aj(r),a=o.length,i=0,s=[];a>i;)n=o[i++],Dj&&!xj(r,n)||Rj(s,e?[n,r[n]]:r[n]);return s}},Uj={entries:Pj(!0),values:Pj(!1)}.values;Io({target:"Object",stat:!0},{values:function(e){return Uj(e)}});var Vj=1,Bj=5,Fj=2,Gj=3,zj=4,Hj="DISCONNECTED",Yj="CONNECTING",qj="RECONNECTING",Wj="CONNECTED",Kj={CLIENT_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,PUBLISH_STATE_CHANGE_RESULT:4112,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,UPDATE_CONSTRAINT_CONFIG_RES:772},$j=[Kj.UPDATE_REMOTE_MUTE_STAT,Kj.UPLINK_NETWORK_STATS,Kj.USER_LIST_RES,Kj.MUTE_RESULT],Jj={CLIENT_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",PUBLISH_STATE_CHANGE_RESULT:"publish-state-change-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",UPDATE_CONSTRAINT_CONFIG_RES:"update-contraint-config-res"},Qj="publish_change",Xj="publish_state_change",Zj="join",eD="leave",tD="quality_report",nD="mute_uplink",rD="publish",oD="unpublish",aD="subscribe",iD="unsubscribe",sD="subscribe_change",cD="start_publishing",lD="stop_publishing",uD="start_push_user_cdn",dD="stop_push_user_cdn",pD="start_mcu_mix",fD="stop_mcu_mix",hD="get_user_list",mD="change_role",vD="update_constraint_config",gD={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,API_CALL_ABORTED:16461,UNKNOWN:65535},_D=function(e){d(n,e);var t=_(n);function n(e){var r,o=e.name,a=void 0===o?"RtcError":o,i=e.message,c=e.code,l=void 0===c?gD.UNKNOWN:c,u=e.extraCode,d=void 0===u?0:u,p=e.constraint;s(this,n);var f="<".concat(function(e){for(var t in gD)if(gD[t]===e)return t;return"UNKNOWN"}(l)," 0x").concat(l.toString(16),">");return(r=t.call(this,i+"".concat(p?" constraint: ".concat(p):"")+"".concat(null!=i&&i.includes(f)?"":" "+f))).code_=l,r.extraCode_=d,r.name=a,r.message_=i,p&&(r.constraint=p),r}return l(n,[{key:"getCode",value:function(){return this.code_}},{key:"getExtraCode",value:function(){return this.extraCode_}}]),n}(v(Error)),yD=32768,bD=32769,OD=32770,MD=32771,kD=32772,CD=32773,wD=32774,ID=32775,SD=32777,TD=32778,ED=32779,jD=32780,DD=32781,LD=32782,AD=32783,ND=32784,xD=32785,RD=32786,PD=32787,UD=32788,VD=32789,BD=32790,FD=32791,GD=32792,zD=32793,HD=32794,YD=32795,qD=32796,WD=32797,KD=32798,$D=32799,JD=32800,QD=32801,XD=32802,ZD=32803,eL=32804,tL=new Map,nL=function(e,t){var n=tL.get(e);n||(tL.set(e,[]),n=tL.get(e)),n.push(t)},rL=function(e){var t=tL.get(e),n=[];return t?(tL.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},oL=Object.prototype.hasOwnProperty;function aL(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(aT(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(oL.call(e,t))return!1;return!0}return!1}var iL=function(){function e(){s(this,e);var t=QS(),n=t.name,r=t.version;this.roomIdMap_=new Map,this.configs_={sdkAppId:"",userId:"",version:No,env:dM,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(!KS){var t=n(n(n({},e),this.configs_),{},{userId:e.userId||this.configs_.userId});lT(t.code)&&(t.code="failed"===t.result?gD.UNKNOWN:0),this.sendRequest(rT(this.configs_.sdkAppId,vM),t)}}},{key:"logSuccessEvent",value:function(e){KS||(this.logEvent(n(n({},e),{},{result:"success",roomId:this.roomIdMap_.get(e.userId)})),this.configs_.env===dM&&this.uploadEventToKibana(n(n({},e),{},{result:"success"})))}},{key:"logFailedEvent",value:function(e){if(!KS){var t=e.eventType,r=e.code,o=e.error,a=e.userId,i={roomId:this.roomIdMap_.get(a),userId:a,eventType:t,result:"failed",code:r||(o instanceof _D?o.getExtraCode()||o.getCode():gD.UNKNOWN)};this.logEvent(i),this.configs_.env===dM&&this.uploadEventToKibana(n(n({},i),{},{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:qm(),sdkAppId:this.configs_.sdkAppId,userId:n||this.configs_.userId,version:this.configs_.version,log:t};r&&(o.errorInfo=r.message),this.sendRequest(rT(this.configs_.sdkAppId,mM),o)}},{key:"sendRequest",value:function(e,t){var n=this;xE.getIsAbleToUpload()?DT({url:e,body:JSON.stringify(t)}).catch((function(){})):setTimeout((function(){n.sendRequest(e,t)}),1e3)}}]),e}(),sL=new iL,cL=function(){function e(t){s(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;var n="?sdkAppId=".concat(encodeURIComponent(this.sdkAppId_),"&userId=").concat(encodeURIComponent(this.userId_),"&userSig=").concat(encodeURIComponent(this.userSig_),"&roomId=").concat(encodeURIComponent(t.roomId)),r=this.client_.getSystemResult();if(r&&r.detail){var o=r.detail,a=o.isH264EncodeSupported,i=o.isVp8EncodeSupported,c=o.isH264DecodeSupported,l=o.isVp8DecodeSupported;n+="&enc264=".concat(Number(a),"&dec264=").concat(Number(c),"&encVp8=").concat(Number(i),"&decVp8=").concat(Number(l))}t.signalDomainWhenUnifiedProxy&&(n+="&signalDomain=".concat(encodeURIComponent(t.signalDomainWhenUnifiedProxy))),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_=Hj,this.reconnectionCount_=0,this.reconnectionTimer_=-1,this.lastMessageTime_=-1,this.seq_=0,this.log_=xE.createLogger({id:"ws|"+this.userId_,userId:this.userId_,sdkAppId:this.sdkAppId_}),this.emitter_=new AT}return l(e,[{key:"isOnline",get:function(){return this.currentState_===Wj&&Date.now()-this.lastMessageTime_<12e3}},{key:"connect",value:function(){var e=this;return new Promise((function(t,n){e.log_.info("connect to url: ".concat(e.urlWithParam_)),e.emitConnectionStateChanged(Yj),e.socket_=new WebSocket(e.urlWithParam_),e.bindSocket(e.socket_),e.backupTimer_=setTimeout((function(){e.isConnected_||(e.log_.info("trying to connect to backupUrl"),e.tryConnectBackup())}),5e3);var r=setTimeout((function(){e.close(),n(new _D({code:gD.JOIN_ROOM_FAILED,message:"join room timeout"}))}),1e4);e.once(Gj,(function(){clearTimeout(r),t()})),e.once(zj,(function(e){clearTimeout(r),n(e)}))}))}},{key:"tryConnectBackup",value:function(){this.backupSocket_||(this.unbindAndCloseSocket(qO),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===qO){if(this.socket_){this.unbindSocket(this.socket_);try{this.socket_.close(1e3)}catch(qq){}this.socket_=null}}else if(this.backupSocket_){this.unbindSocket(this.backupSocket_);try{this.backupSocket_.close(1e3)}catch(qq){}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.isReconnecting_&&aL(this.signalInfo_)&&this.stopReconnection(),this.clearBackupTimer(),e.target===this.socket_?(this.unbindAndCloseSocket(WO),this.socketInUse_=this.socket_):(this.unbindAndCloseSocket(qO),this.socketInUse_=this.backupSocket_);var t=e.target.url;this.log_.info("websocket[".concat(t,"] is connected")),this.currentState_===Yj?this.addSignalEvent(FD,"signal channel is connected"):this.currentState_===qj&&this.addSignalEvent(YD,"signal channel reconnect success"),this.emitConnectionStateChanged(Wj),this.emitter_.emit(Gj)}}},{key:"onclose",value:function(e){var t=e.target.url,n=e.target===this.socketInUse_;if(this.log_.info("websocket[".concat(t," InUse: ").concat(n,"] is closed with code: ").concat(e.code)),n&&(this.isConnected_=!1,this.emitConnectionStateChanged(Hj),this.addSignalEvent(BD,"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);var r=this.socketInUse_===this.socket_;this.socket_=this.backupSocket_=this.socketInUse_=null,this.reconnect(r?WO:qO)}}},{key:"onerror",value:function(e){var t=e.target.url;if(this.log_.error("websocket[".concat(t,"] error observed")),this.isConnected_){if(e.target===this.socketInUse_){this.isConnected_=!1,this.unbindAndCloseSocket(qO),this.unbindAndCloseSocket(WO);var n=this.socketInUse_===this.socket_;this.socketInUse_=null,this.reconnect(n?WO:qO)}}else this.isReconnecting_||sL.logFailedEvent({userId:this.client_.getUserId(),eventType:ck,code:gD.UNKNOWN}),e.target==this.socket_?(this.unbindAndCloseSocket(qO),this.reconnect(WO)):(this.unbindAndCloseSocket(WO),this.reconnect(qO));this.isConnecting_=!1,this.isConnected_=!1}},{key:"onmessage",value:function(e){if(this.isConnected_){this.lastMessageTime_=Date.now();var t=JSON.parse(e.data),n=t.cmd,r=t.data,o=Object.values(Kj),a=Object.keys(Kj)[o.indexOf(n)],i=Jj[a];switch($j.includes(n)||(this.log_.debug("received msg: ".concat(e.data)),this.log_.info("Received event: [ ".concat(i||"unknown cmd: "+n," ]"))),n){case Kj.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){Hm=e-(new Date).getTime();var t=new Date;t.setTime(e),xE.info("baseTime from server: "+t+" offset: "+Hm)}(r.svrTime),this.log_.info("ChannelSetup Success"),sL.logSuccessEvent({userId:this.userId_,eventType:ck}),this.emitter_.emit(Vj,{signalInfo:this.signalInfo_});else{var s=new _D({code:gD.SIGNAL_CHANNEL_SETUP_FAILED,extraCode:t.code,message:eT({key:AC,data:{errorCode:t.code,errorMsg:t.message}})});this.log_.error("".concat(t.code,", ").concat(t.message)),this.close(),sL.logFailedEvent({userId:this.userId_,eventType:ck,error:s}),this.emitter_.emit(Bj,s)}break;case Kj.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(i,{data:t});break;case Kj.CHANNEL_RECONNECT_RESULT:0===t.code?(this.log_.warn("reconnect success"),this.stopReconnection(),sL.logSuccessEvent({userId:this.userId_,eventType:lk}),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(i,{data:t})}}}},{key:"addSignalEvent",value:function(e,t){nL(this.userId_,{eventId:e,eventDesc:t,timestamp:Ym(),userId:this.userId_,tinyId:this.signalInfo_.tinyId})}},{key:"reconnect",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:qO;if(this.isConnecting_||-1!==this.reconnectionTimer_)this.log_.info("signal channel is reconnecting, ignoring current reconnection");else{if(NT.emit(XT,this.client_),this.reconnectionCount_>=zM){this.log_.warn("SDK has tried reconnect signal channel for ".concat(zM," times, but all failed. please check your network"));var n=new _D({code:gD.SIGNAL_CHANNEL_RECONNECTION_FAILED,message:eT({key:LC})});return sL.logFailedEvent({userId:this.client_.getUserId(),eventType:lk,error:n}),this.addSignalEvent(qD,"signal channel reconnect fail"),void this.emitter_.emit(zj,n)}this.isConnecting_=!0,this.reconnectionCount_++,this.currentState_!==qj&&(this.emitConnectionStateChanged(qj),this.addSignalEvent(HD,"signal channel is reconnecting")),this.log_.warn("reconnecting to ".concat(t," signal channel [").concat(this.reconnectionCount_,"/").concat(zM,"]"));var r=this.getReconnectionUrl(t);t===qO?(this.socket_=new WebSocket(r),this.bindSocket(this.socket_)):(this.backupSocket_=new WebSocket(r),this.bindSocket(this.backupSocket_));var o=sT(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===qO?WO:qO)}),o)}}},{key:"isConnected",value:function(){return this.isConnected_}},{key:"isReconnecting_",get:function(){return-1!==this.reconnectionTimer_}},{key:"getReconnectionUrl",value:function(e){var t=e===qO?this.urlWithParam_:this.backupUrlWithParam_;if(!aL(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,a=void 0===o?5e3:o,i=e.responseCommand,s=e.commandDesc,c=e.enableLog,l=void 0===c||c;return new Promise((function(e,o){var c=setTimeout((function(){t.off(i,u);var e=new _D({code:gD.API_CALL_TIMEOUT,message:eT({key:DC,data:{commandDesc:s,command:n}})});l&&t.log_.warn(e),o(e)}),a),u=function n(r){r.data.seq===d&&(clearTimeout(c),t.off(i,n),e(r))};t.on(i,u);var d=t.send(n,r)}))}},{key:"sendWaitForResponseWithRetry",value:function(){var e=this,t=arguments.length<=0?void 0:arguments[0],n=t.commandDesc,r=t.command,o=t.retries,a=void 0===o?0:o,i=t.retryTimeout,s=void 0===i?0:i;return jE({retryFunction:this.sendWaitForResponse,onRetrying:function(t){e.log_.warn("".concat(n||r," timeout observed, retrying [").concat(t,"/").concat(a,"]"))},settings:{retries:a,timeout:s},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.signalInfo_={},this.isConnecting_=!1,this.isConnected_=!1,this.socketInUse_=null,this.unbindAndCloseSocket(qO),this.unbindAndCloseSocket(WO),this.emitConnectionStateChanged(Hj)}},{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(Fj,{prevState:this.currentState_,state:e}),this.currentState_=e)}}]),e}(),lL=Io,uL=Vu.find,dL=fa,pL="find",fL=!0;pL in[]&&Array(1).find((function(){fL=!1})),lL({target:"Array",proto:!0,forced:fL},{find:function(e){return uL(this,e,arguments.length>1?arguments[1]:void 0)}}),dL(pL);var hL={},mL={},vL={exports:{}},gL=vL.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(gL).forEach((function(e){gL[e].forEach((function(e){e.reg||(e.reg=/(.*)/),e.format||(e.format="%s")}))})),function(e){var t=function(e){return String(Number(e))===e?Number(e):e},n=function(e,n,r){var o=e.name&&e.names;e.push&&!n[e.push]?n[e.push]=[]:o&&!n[e.name]&&(n[e.name]={});var a=e.push?{}:o?n[e.name]:n;!function(e,n,r,o){if(o&&!r)n[o]=t(e[1]);else for(var a=0;a<r.length;a+=1)null!=e[a+1]&&(n[r[a]]=t(e[a+1]))}(r.match(e.reg),a,e.names,e.name),e.push&&n[e.push].push(a)},r=vL.exports,o=RegExp.prototype.test.bind(/^([a-z])=(.*)/);e.parse=function(e){var t={},a=[],i=t;return e.split(/(\r\n|\r|\n)/).filter(o).forEach((function(e){var t=e[0],o=e.slice(2);"m"===t&&(a.push({rtp:[],fmtp:[]}),i=a[a.length-1]);for(var s=0;s<(r[t]||[]).length;s+=1){var c=r[t][s];if(c.reg.test(o))return n(c,i,o)}})),t.media=a,t};var a=function(e,n){var r=n.split(/=(.+)/,2);return 2===r.length?e[r[0]]=t(r[1]):1===r.length&&n.length>1&&(e[r[0]]=void 0),e};e.parseParams=function(e){return e.split(/;\s?/).reduce(a,{})},e.parseFmtpConfig=e.parseParams,e.parsePayloads=function(e){return e.toString().split(" ").map(Number)},e.parseRemoteCandidates=function(e){for(var n=[],r=e.split(" ").map(t),o=0;o<r.length;o+=3)n.push({component:r[o],ip:r[o+1],port:r[o+2]});return n},e.parseImageAttributes=function(e){return e.split(" ").map((function(e){return e.substring(1,e.length-1).split(",").reduce(a,{})}))},e.parseSimulcastStreamList=function(e){return e.split(";").map((function(e){return e.split(",").map((function(e){var n,r=!1;return"~"!==e[0]?n=t(e):(n=t(e.substring(1,e.length)),r=!0),{scid:n,paused:r}}))}))}}(mL);var _L=vL.exports,yL=/%[sdv%]/g,bL=function(e){var t=1,n=arguments,r=n.length;return e.replace(yL,(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""}}))},OL=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 a=t.names[o];t.name?r.push(n[t.name][a]):r.push(n[t.names[o]])}else r.push(n[t.name]);return bL.apply(null,r)},ML=["v","o","s","i","u","e","p","c","b","t","r","z","a"],kL=["i","c","b","a"],CL=mL,wL=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||ML,r=t.innerOrder||kL,o=[];return n.forEach((function(t){_L[t].forEach((function(n){n.name in e&&null!=e[n.name]?o.push(OL(t,n,e)):n.push in e&&null!=e[n.push]&&e[n.push].forEach((function(e){o.push(OL(t,n,e))}))}))})),e.media.forEach((function(e){o.push(OL("m",_L.m[0],e)),r.forEach((function(t){_L[t].forEach((function(n){n.name in e&&null!=e[n.name]?o.push(OL(t,n,e)):n.push in e&&null!=e[n.push]&&e[n.push].forEach((function(e){o.push(OL(t,n,e))}))}))}))})),o.join("\r\n")+"\r\n"};hL.write=wL,hL.parse=CL.parse,hL.parseParams=CL.parseParams,hL.parseFmtpConfig=CL.parseFmtpConfig,hL.parsePayloads=CL.parsePayloads,hL.parseRemoteCandidates=CL.parseRemoteCandidates,hL.parseImageAttributes=CL.parseImageAttributes,hL.parseSimulcastStreamList=CL.parseSimulcastStreamList;var IL,SL,TL,EL,jL=function(e){return hL.parse(e)},DL=function(e){return hL.write(e)},LL=function(e){var t=jL(e);return t.media.forEach((function(e){e.type===wO&&e.fmtp.forEach((function(e){e.config+=";sprop-stereo=1;stereo=1"}))})),DL(t)},AL=Io,NL=te,xL=Tr,RL=qv,PL=ap,UL=D,VL=RangeError,BL=String,FL=Math.floor,GL=NL(PL),zL=NL("".slice),HL=NL(1..toFixed),YL=function(e,t,n){return 0===t?n:t%2==1?YL(e,t-1,n*e):YL(e*e,t/2,n)},qL=function(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=FL(o/1e7)},WL=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=FL(r/t),r=r%t*1e7},KL=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=BL(e[t]);n=""===n?r:n+GL("0",7-r.length)+r}return n};AL({target:"Number",proto:!0,forced:UL((function(){return"0.000"!==HL(8e-5,3)||"1"!==HL(.9,0)||"1.25"!==HL(1.255,2)||"1000000000000000128"!==HL(0xde0b6b3a7640080,0)}))||!UL((function(){HL({})}))},{toFixed:function(e){var t,n,r,o,a=RL(this),i=xL(e),s=[0,0,0,0,0,0],c="",l="0";if(i<0||i>20)throw VL("Incorrect fraction digits");if(a!=a)return"NaN";if(a<=-1e21||a>=1e21)return BL(a);if(a<0&&(c="-",a=-a),a>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}(a*YL(2,69,1))-69)<0?a*YL(2,-t,1):a/YL(2,t,1),n*=4503599627370496,(t=52-t)>0){for(qL(s,0,n),r=i;r>=7;)qL(s,1e7,0),r-=7;for(qL(s,YL(10,r,1),0),r=t-1;r>=23;)WL(s,1<<23),r-=23;WL(s,1<<r),qL(s,1,1),WL(s,2),l=KL(s)}else qL(s,0,n),qL(s,1<<-t,0),l=KL(s)+GL("0",i);return i>0?c+((o=l.length)<=i?"0."+GL("0",i-o)+l:zL(l,0,o-i)+"."+zL(l,o-i)):c+l}});var $L=(null===(IL=window)||void 0===IL?void 0:IL.requestIdleCallback)||function(e){var t=Date.now();return setTimeout((function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})}),1e3)},JL=(null===(SL=window)||void 0===SL?void 0:SL.cancelIdleCallback)||function(e){clearTimeout(e)},QL=(null===(TL=window)||void 0===TL?void 0:TL.cancelAnimationFrame)||(null===(EL=window)||void 0===EL?void 0:EL.mozCancelAnimationFrame),XL=function(){function e(){s(this,e)}return l(e,null,[{key:"generateTaskID",value:function(){return this.currentTaskID++}},{key:"run",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:fC,t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;r=n(n({},e===pC?{delay:2e3,count:0,backgroundTask:!0}:e===uC?{delay:1e4,count:0}:e===dC?{fps:60,delay:16.6,count:0,backgroundTask:!0}:{delay:2e3,count:0,backgroundTask:!0}),r),fT(t)&&(r=n(n({},r),t)),cT(e)&&(t=e,e=fC);var o=n({taskID:this.generateTaskID(),loopCount:0,intervalID:null,timeoutID:null,rafID:null,ricID:null,taskName:e,callback:t},r);return this.taskMap.set(o.taskID,o),this[e](o),o.taskID}},{key:"interval",value:function(e){var t=this;return e.intervalID=setInterval((function(){e.callback(),e.loopCount+=1,t.isBreakLoop(e)}),e.delay)}},{key:"timeout",value:function(e){var t=this;return e.timeoutID=setTimeout((function n(){if(e.callback(),e.loopCount+=1,!t.isBreakLoop(e))return e.timeoutID=setTimeout(n,e.delay)}),e.delay)}},{key:"ric",value:function(e){var t,n=this,r=_T();return e.ricID=$L((function o(){if((t=_T()-r)>=e.delay&&(r=_T()-Math.floor(t%e.delay),e.callback(),e.loopCount+=1),!n.isBreakLoop(e))return e.ricID=$L(o,{timeout:e.delay})}),{timeout:e.delay})}},{key:"raf",value:function(e){var t=this;e.delay=(1e3/e.fps).toFixed(2);var n,r=_T(),o=function o(){if(document.hidden&&e.backgroundTask){if(n=_T()-r,r=_T(),e.callback(),e.loopCount+=1,t.isBreakLoop(e))return;return e.timeoutID=setTimeout(o,e.delay-Math.floor(n%e.delay))}if((n=_T()-r)>=e.delay&&(r=_T()-Math.floor(n%e.delay),e.callback(),e.loopCount+=1),!t.isBreakLoop(e))return e.rafID=requestAnimationFrame(o)};if(e.rafID=requestAnimationFrame(o),e.backgroundTask){var a=function(){if(document.hidden){var t=_T()-r;t>=e.delay?o():e.timeoutID=setTimeout(o,e.delay-t)}};document.addEventListener("visibilitychange",a),e.onVisibilitychange=a,document.hidden&&a()}return e.taskID}},{key:"hasTask",value:function(e){return this.taskMap.has(e)}},{key:"clearTask",value:function(e){if(!this.taskMap.has(e))return!0;var t=this.taskMap.get(e),n=t.intervalID,r=t.timeoutID,o=t.rafID,a=t.ricID,i=t.onVisibilitychange;return n&&clearInterval(n),r&&clearTimeout(r),o&&QL(o),a&&JL(a),i&&document.removeEventListener("visibilitychange",i),this.taskMap.delete(e),!0}},{key:"isBreakLoop",value:function(e){return!this.taskMap.has(e.taskID)||0!==e.count&&e.loopCount>=e.count&&(this.clearTask(e.taskID),!0)}}]),e}();u(XL,"taskMap",new Map),u(XL,"currentTaskID",1);var ZL=function(){function e(){s(this,e),this.prefix_="TRTC",this.queue_=new Map,this.checkStorage()}return l(e,[{key:"getRealKey",value:function(e){return"".concat(this.prefix_,"_").concat(e)}},{key:"checkStorage",value:function(){var e=this;if($S()){var t=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}));t.forEach((function(e){return localStorage.removeItem(e)}))}}},{key:"doFlush",value:function(){if($S())try{var e,t=w(this.queue_);try{for(t.s();!(e=t.n()).done;){var n=O(e.value,2),r=n[0],o=n[1];localStorage.setItem(r,JSON.stringify(o))}}catch(i){t.e(i)}finally{t.f()}}catch(qq){xE.warn(qq)}}},{key:"getItem",value:function(e){if(!$S())return null;try{var t=JSON.parse(localStorage.getItem(this.getRealKey(e)));return t&&t.expiresIn>=Date.now()?t.value:null}catch(qq){xE.warn(qq)}}},{key:"setItem",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if($S())try{var r={expiresIn:Date.now()+xk,value:t};n?localStorage.setItem(this.getRealKey(e),JSON.stringify(r)):(this.queue_.set(this.getRealKey(e),r),XL.hasTask(this.intervalId_)||(this.intervalId_=XL.run(uC,this.doFlush.bind(this),{count:1})))}catch(qq){xE.warn(qq)}}},{key:"deleteItem",value:function(e){if(!$S())return!1;try{return e=this.getRealKey(e),this.queue_.delete(e),localStorage.removeItem(e),!0}catch(qq){return xE.warn(qq),!1}}},{key:"clear",value:function(){if($S())try{localStorage.clear()}catch(qq){xE.warn(qq)}}}]),e}(),eA=new ZL,tA={result:!1,detail:{isBrowserSupported:!1,isWebRTCSupported:!1,isMediaDevicesSupported:!1,isH264EncodeSupported:!1,isVp8EncodeSupported:!1,isH264DecodeSupported:!1,isVp8DecodeSupported:!1}},nA="checkResult",rA=function(){return!OS&&!$I&&!(QI&&XI<80)&&!(WI&&KI<56)},oA=function(){return["RTCPeerConnection","webkitRTCPeerConnection","RTCIceGatherer"].filter((function(e){return e in window})).length>0},aA=function(){if(!navigator.mediaDevices)return!1;var e=["getUserMedia","enumerateDevices"];return e.filter((function(e){return e in navigator.mediaDevices})).length===e.length},iA=function(){var e=i(r().mark((function e(){var t,n,o,a,i,s;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!tA.detail.isH264EncodeSupported||!tA.detail.isVp8EncodeSupported){e.next=2;break}return e.abrupt("return",{isH264EncodeSupported:tA.detail.isH264EncodeSupported,isVp8EncodeSupported:tA.detail.isVp8EncodeSupported});case 2:return t="",n=!1,o=!1,e.prev=5,a=new RTCPeerConnection,(i=document.createElement(CO)).getContext("2d"),s=i.captureStream(0),a.addTrack(s.getVideoTracks()[0],s),e.next=13,a.createOffer();case 13:return-1!==(t=e.sent).sdp.toLowerCase().indexOf("h264")&&(n=!0),-1!==t.sdp.toLowerCase().indexOf("vp8")&&(o=!0),a.close(),tA.detail.isH264EncodeSupported=n,tA.detail.isVp8EncodeSupported=o,e.abrupt("return",{isH264EncodeSupported:tA.detail.isH264EncodeSupported,isVp8EncodeSupported:tA.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 sA(){return cA.apply(this,arguments)}function cA(){return cA=i(r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=i(r().mark((function e(t){var n,o,a,s,c,l,u,d,p,f,h,m,v,g;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={encode:!1,decode:!1},o=null,e.prev=2,a=document.createElement("canvas"),s=a.getContext("2d"),a.width=640,a.height=480,c=setInterval((function(){s.fillText("test",Math.floor(640*Math.random()),Math.floor(480*Math.random()))}),33),l=-1,u=-1,o=function(){clearInterval(l),clearInterval(c),clearTimeout(u),p.close(),f.close(),d.getTracks().forEach((function(e){return e.stop()}))},u=setTimeout((function(){o(),t(n)}),3e3),d=a.captureStream(),p=new RTCPeerConnection({}),f=new RTCPeerConnection({offerToReceiveAudio:!0,offerToReceiveVideo:!0}),p.addEventListener("icecandidate",(function(e){return f.addIceCandidate(e.candidate)})),f.addEventListener("icecandidate",(function(e){return p.addIceCandidate(e.candidate)})),p.addTrack(d.getVideoTracks()[0],d),e.next=20,p.createOffer();case 20:return h=e.sent,e.next=23,p.setLocalDescription(h);case 23:return e.next=25,f.setRemoteDescription(h);case 25:return e.next=27,f.createAnswer();case 27:return m=e.sent,v=jL(m.sdp),g=v.media[0].rtp.findIndex((function(e){return"H264"===e.codec})),v.media[0].rtp=[v.media[0].rtp[g]],v.media[0].fmtp=v.media[0].fmtp.filter((function(e){return e.payload===v.media[0].rtp[0].payload})),v.media[0].rtcpFb=v.media[0].rtcpFb.filter((function(e){return e.payload===v.media[0].rtp[0].payload})),m.sdp=DL(v),e.next=36,f.setLocalDescription(m);case 36:return e.next=38,p.setRemoteDescription(m);case 38:l=setInterval(i(r().mark((function e(){var a,i;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n.encode&&n.decode&&(o(),t(n)),e.next=3,p.getStats();case 3:return a=e.sent,e.next=6,f.getStats();case 6:i=e.sent,n.encode||a.forEach((function(e){"outbound-rtp"===e.type&&e.mediaType===IO&&e.framesEncoded>0&&(n.encode=!0)})),n.decode||i.forEach((function(e){"inbound-rtp"===e.type&&e.mediaType===IO&&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),o(),xE.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)}))),cA.apply(this,arguments)}var lA=function(){var e=i(r().mark((function e(){var t,n,o,a;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!tA.detail.isH264DecodeSupported||!tA.detail.isVp8DecodeSupported){e.next=2;break}return e.abrupt("return",{isH264DecodeSupported:tA.detail.isH264DecodeSupported,isVp8DecodeSupported:tA.detail.isVp8DecodeSupported});case 2:return t="",n=!1,o=!1,e.prev=5,a=new RTCPeerConnection,e.next=9,a.createOffer({offerToReceiveAudio:1,offerToReceiveVideo:1});case 9:return-1!==(t=e.sent).sdp.toLowerCase().indexOf("h264")&&(n=!0),-1!==t.sdp.toLowerCase().indexOf("vp8")&&(o=!0),a.close(),e.abrupt("return",{isH264DecodeSupported:n,isVp8DecodeSupported:o});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)}}(),uA=function(){var e=i(r().mark((function e(){var t,n,o,a,i,s,c,l,u,d,p,f,h;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(pA()){e.next=2;break}return e.abrupt("return",tA);case 2:return t=rA(),n=oA(),o=aA(),e.next=7,iA();case 7:return a=e.sent,i=a.isH264EncodeSupported,s=a.isVp8EncodeSupported,e.next=12,lA();case 12:if(c=e.sent,l=c.isH264DecodeSupported,u=c.isVp8DecodeSupported,i&&s){e.next=21;break}return e.next=18,iA();case 18:d=e.sent,i=d.isH264EncodeSupported,s=d.isVp8EncodeSupported;case 21:if(!(i&&l&&(DS||AS||GS)&&!rS&&xS()<79)){e.next=29;break}return e.next=24,sA();case 24:p=e.sent,f=p.encode,h=p.decode,i=f,l=h;case 29:return tA.result=t&&n&&o&&(i||s)&&(l||u),tA.detail.isBrowserSupported=t,tA.detail.isWebRTCSupported=n,tA.detail.isMediaDevicesSupported=o,tA.detail.isH264EncodeSupported=i,tA.detail.isVp8EncodeSupported=s,tA.detail.isH264DecodeSupported=l,tA.detail.isVp8DecodeSupported=u,fA(),eA.setItem(nA,{ua:navigator.userAgent,checkResult:tA},!0),e.abrupt("return",tA);case 40:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),dA=function(e,t){var n=null;return function(){if(n)return n;for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(n=e.apply(t||this,o)).then((function(e){return n=null,e})).catch((function(e){throw n=null,e})),n}}(uA);function pA(){return Object.keys(tA.detail).findIndex((function(e){return!tA.detail[e]}))>=0}function fA(){pA()&&(xE.warn(eT({key:oI})),xE.info("".concat(navigator.userAgent," ").concat(JSON.stringify(tA.detail))))}function hA(){return!(!navigator.mediaDevices||!navigator.mediaDevices.getDisplayMedia)}function mA(){return"RTCPeerConnection"in window&&"getReceivers"in window.RTCPeerConnection.prototype}function vA(){return"RTCPeerConnection"in window&&"getSenders"in window.RTCPeerConnection.prototype}function gA(){return"RTCPeerConnection"in window&&"getTransceivers"in window.RTCPeerConnection.prototype}function _A(){return"RTCPeerConnection"in window&&"addTransceiver"in window.RTCPeerConnection.prototype}function yA(){return"RTCRtpSender"in window&&"replaceTrack"in window.RTCRtpSender.prototype}function bA(){return"RTCRtpSender"in window&&"setParameters"in window.RTCRtpSender.prototype&&vA()}function OA(){return!!lT(navigator.mediaDevices)&&(xE.error(EI.NOT_SUPPORTED_MEDIA),!0)}function MA(){return"http:"===location.protocol&&!KS&&(xE.warn(eT({key:rI})),!0)}var kA="RTCRtpSender"in window&&"createEncodedStreams"in window.RTCRtpSender.prototype&&xS()>=86;function CA(e){return!("candidate-pair"!==e.type||!e.nominated||"in-progress"!==e.state&&"succeeded"!==e.state)&&!(pT(e.selected)&&!e.selected)}var wA=new Map([[qI,"Android"],[YI,"iOS"],[_S,"Windows"],[yS,"MacOS"],[bS,"Linux"]]);function IA(){var e="unknown";return wA.get(!0)&&(e=wA.get(!0)),e}function SA(){var e="";return screen.width&&(e+=(screen.width?screen.width*window.devicePixelRatio:"")+" * "+(screen.height?screen.height*window.devicePixelRatio:"")),e}function TA(){var e=!1;return(navigator.getUserMedia||navigator.mediaDevices&&navigator.mediaDevices.getUserMedia)&&(e=!0),e}function EA(){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 jA(){return!(sS&&xS()<86)&&!(YI&&dT(zS)&&zS<15)&&!(US&&US<63)&&!(!rA()||!("captureStream"in HTMLCanvasElement.prototype))}var DA=window.MediaStreamTrack&&"getSettings"in MediaStreamTrack.prototype,LA=window.MediaStreamTrack&&"getCapabilities"in MediaStreamTrack.prototype,AA=function(){var e,t,n;return(null===(e=window)||void 0===e?void 0:e.OffscreenCanvas)&&(null===(t=window)||void 0===t?void 0:t.MediaStreamTrackProcessor)&&(null===(n=window)||void 0===n?void 0:n.MediaStreamTrackGenerator)};!function(){MA();var e=eA.getItem(nA);e&&e.ua===navigator.userAgent&&(tA=e.checkResult),dA()}();var NA={STREAM_ADDED:"stream-added",STREAM_REMOVED:"stream-removed",STREAM_UPDATED:"stream-updated",STREAM_PUBLISHED:"stream-published",STREAM_SUBSCRIBED:"stream-subscribed",STREAM_UNSUBSCRIBED:"stream-unsubscribed",STATE_CHANGED:"state-changed",ERROR:"error",CONNECTION_STATE_CHANGED:"connection-state-changed",SEI_MESSAGE:XO},xA={STREAM_ADDED:"stream-added",STREAM_REMOVED:"stream-removed",STREAM_UPDATED:"stream-updated",STREAM_SUBSCRIBED:"stream-subscribed",CONNECTION_STATE_CHANGED:"connection-state-changed",PEER_JOIN:"peer-join",PEER_LEAVE:"peer-leave",MUTE_AUDIO:"mute-audio",MUTE_VIDEO:"mute-video",UNMUTE_AUDIO:"unmute-audio",UNMUTE_VIDEO:"unmute-video",CLIENT_BANNED:"client-banned",NETWORK_QUALITY:"network-quality",AUDIO_VOLUME:"audio-volume",SEI_MESSAGE:XO,ERROR:"error"},RA="player-state-changed",PA="screen-sharing-stopped",UA="connection-state-changed",VA="device-auto-recovered",BA="error",FA="player-state-changed",GA=OC;Io({target:"String",proto:!0,forced:kC("small")},{small:function(){return GA(this,"small","","")}});var zA=function(){function e(t){s(this,e);var n=t.getUserId();this.log_=xE.createLogger({id:n,userId:n,sdkAppId:t.getSDKAppId()}),this.prevReportTime_=0,this.prevReport_={},this.prevEncoderImplementation_="",this.prevQualityLimitationReason_="",this.prevDecoderImplementationMap_=new Map}var t,n,o,a;return l(e,[{key:"statInterval",get:function(){return 0===this.prevReportTime_?2:(Date.now()-this.prevReportTime_)/1e3}},{key:"getSenderStats",value:(a=i(r().mark((function e(t){var n,o,a,i,s=this;return r().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},small:{bytesSent:0,packetsSent:0,framesEncoded:0,frameWidth:0,frameHeight:0,framesSent:0,fpsCapture:0},auxiliary:{bytesSent:0,packetsSent:0,framesEncoded:0,frameWidth:0,frameHeight:0,framesSent:0,fpsCapture:0},rtt:0},o=t.getPeerConnection(),a=t.getSSRC(),!o){e.next=15;break}return e.prev=4,e.next=7,o.getStats();case 7:e.sent.forEach((function(e){if("outbound-rtp"===e.type)if(e.mediaType===IO){if(!WI&&0===e.bytesSent)return;e.ssrc!==a.video||lT(e.encoderImplementation)||s.prevEncoderImplementation_===e.encoderImplementation||(s.log_.info("encoderImplementation change to ".concat(e.encoderImplementation)),s.prevEncoderImplementation_=e.encoderImplementation),e.ssrc!==a.video||lT(e.qualityLimitationReason)||s.prevQualityLimitationReason_===e.qualityLimitationReason||(s.log_.info("qualityLimitationReason change to ".concat(e.qualityLimitationReason)),s.prevQualityLimitationReason_=e.qualityLimitationReason);var r=IO;e.ssrc===a.small?r=TO:e.ssrc===a.auxiliary&&(r=jO),n[r].bytesSent=e.bytesSent,n[r].packetsSent=e.packetsSent,n[r].framesEncoded=e.framesEncoded}else e.mediaType===wO&&(n.audio.bytesSent=e.bytesSent,n.audio.packetsSent=e.packetsSent);else"candidate-pair"===e.type?CA(e)&&dT(e.currentRoundTripTime)&&(n.rtt=Math.floor(1e3*e.currentRoundTripTime)):"media-source"===e.type&&(e.kind===wO?(n.audio.audioLevel=e.audioLevel||0,n.audio.totalAudioEnergy=e.totalAudioEnergy||0):e.kind===IO&&(e.trackIdentifier===t.getVideoTrackId(IO)?n.video.fpsCapture=e.framesPerSecond:e.trackIdentifier===t.getVideoTrackId(jO)?n.auxiliary.fpsCapture=e.framesPerSecond:n.small.fpsCapture=e.framesPerSecond));var o;lT(e.audioLevel)||(n.audio.audioLevel=e.audioLevel||0,n.audio.totalAudioEnergy=e.totalAudioEnergy||0),lT(e.frameWidth)||(e.trackIdentifier===t.getVideoTrackId(IO)||e.ssrc===a.video?o=IO:e.trackIdentifier===t.getVideoTrackId(jO)||e.ssrc===a.auxiliary?o=jO:e.trackIdentifier!==t.getVideoTrackId(TO)&&e.ssrc!==a.small||(o=TO),o&&(n[o].frameWidth=e.frameWidth,n[o].frameHeight=e.frameHeight,n[o].framesSent=e.framesSent))})),0===n.audio.audioLevel&&(n.audio.audioLevel=(null===(i=t.getLocalStream())||void 0===i?void 0:i.getInternalAudioLevel())||0),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(4),this.log_.warn("failed to getStats on sender connection "+e.t0);case 15:return e.abrupt("return",n);case 16:case"end":return e.stop()}}),e,this,[[4,12]])}))),function(e){return a.apply(this,arguments)})},{key:"getReceiverStats",value:(o=i(r().mark((function e(t){var n,o,a,i,s,c=this;return r().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}},!(o=t.getPeerConnection())){e.next=16;break}return e.prev=3,a=t.getSSRC(),i=t.getTrackState(),e.next=8,o.getStats();case 8:e.sent.forEach((function(e){if("inbound-rtp"===e.type){if(e.mediaType===wO&&e.ssrc===a.audio&&i.audio)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===IO){if(WI&&0===e.bytesReceived)return;e.ssrc===a.video&&i.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||c.prevDecoderImplementationMap_.has(n.userId)&&c.prevDecoderImplementationMap_.get(n.userId)===e.decoderImplementation||(c.log_.info("".concat(n.userId," decoderImplementation change to ").concat(e.decoderImplementation)),c.prevDecoderImplementationMap_.set(n.userId,e.decoderImplementation))),e.ssrc===a.auxiliary&&i.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"candidate-pair"===e.type&&CA(e)&&dT(e.currentRoundTripTime)&&(n.rtt=Math.floor(1e3*e.currentRoundTripTime));lT(e.frameWidth)||(e.trackIdentifier!==t.getMainStreamVideoTrackId()&&e.ssrc!==a.video||(n.video.frameWidth=e.frameWidth,n.video.frameHeight=e.frameHeight),e.trackIdentifier!==t.getAuxStreamVideoTrackId()&&e.ssrc!==a.auxiliary||(n.auxiliary.frameWidth=e.frameWidth,n.auxiliary.frameHeight=e.frameHeight)),lT(e.audioLevel)||(n.audio.audioLevel=e.audioLevel||0,n.audio.totalAudioEnergy=e.totalAudioEnergy||0)})),0===n.audio.audioLevel&&(n.audio.audioLevel=(null===(s=t.getMainStream())||void 0===s?void 0:s.getInternalAudioLevel())||0),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(3),this.log_.warn("failed to getStats on receiver connection "+e.t0);case 16:return e.abrupt("return",n);case 17:case"end":return e.stop()}}),e,this,[[3,13]])}))),function(e){return o.apply(this,arguments)})},{key:"getStats",value:(n=i(r().mark((function e(t,n){var o,a,i,s,c,l,u;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o={},!t){e.next=5;break}return e.next=4,this.getSenderStats(t);case 4:o=e.sent;case 5:a=[],i=w(n),e.prev=7,i.s();case 9:if((s=i.n()).done){e.next=17;break}return(c=O(s.value,2))[0],l=c[1],e.next=13,this.getReceiverStats(l);case 13:u=e.sent,a.push(u);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:o,receiverStats:a});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(aL(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(!aL(n.senderStats)){var a;a={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};var i=[],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(i.push(s),n.senderStats.small.bytesSent){var c={uint32_video_stream_type:3,uint32_video_codec_fps:n.senderStats.small.framesSent||0,uint32_video_capture_fps:n.senderStats.small.fpsCapture||0,uint32_video_width:n.senderStats.small.frameWidth||0,uint32_video_height:n.senderStats.small.frameHeight||0,uint32_video_codec_bitrate:n.senderStats.small.bytesSent,uint32_video_enc_fps:n.senderStats.small.framesEncoded||0};i.push(c)}if(n.senderStats.auxiliary.bytesSent){var l={uint32_video_stream_type:7,uint32_video_codec_fps:n.senderStats.auxiliary.framesSent||0,uint32_video_capture_fps:n.senderStats.auxiliary.fpsCapture||0,uint32_video_width:n.senderStats.auxiliary.frameWidth||0,uint32_video_height:n.senderStats.auxiliary.frameHeight||0,uint32_video_codec_bitrate:n.senderStats.auxiliary.bytesSent,uint32_video_enc_fps:n.senderStats.auxiliary.framesEncoded||0};i.push(l)}var u={uint32_bitrate:0,uint32_rtt:n.senderStats.rtt};r.msg_up_stream_info={msg_audio_status:a,msg_video_status:i,msg_network_status:u}}var d=this.statInterval;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 a=o.get(e.userId+"_"+EM),i=a?a.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:i,uint32_video_dec_fps:e.video.framesDecoded};t.msg_video_status.push(s)}if(e.hasAuxiliary){var c=o.get(e.userId+"_"+jM),l=c?c.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:l,uint32_video_dec_fps:e.auxiliary.framesDecoded};t.msg_video_status.push(u)}r.msg_down_stream_info.push(t)}));var p=this.prevReport_;if(this.prevReport_=JSON.parse(JSON.stringify(r)),r.msg_up_stream_info.msg_audio_status&&p.msg_up_stream_info.msg_audio_status){var f=p.msg_up_stream_info.msg_audio_status,h=r.msg_up_stream_info.msg_audio_status,m=this.getDifferenceValue(f.uint32_audio_codec_bitrate,h.uint32_audio_codec_bitrate);h.uint32_audio_codec_bitrate=Math.round(8*m/d),r.msg_up_stream_info.msg_network_status.uint32_bitrate+=h.uint32_audio_codec_bitrate}var v=p.msg_up_stream_info.msg_video_status;r.msg_up_stream_info.msg_video_status.forEach((function(e){var n=v.find((function(t){return t.uint32_video_stream_type===e.uint32_video_stream_type}));if(!n||0===n.uint32_video_codec_bitrate)return e.uint32_video_codec_bitrate=0,e.uint32_video_enc_fps=0,void(e.uint32_video_codec_fps=0);var o=n.uint32_video_codec_bitrate,a=n.uint32_video_enc_fps,i=n.uint32_video_codec_fps,s=t.getDifferenceValue(o,e.uint32_video_codec_bitrate);e.uint32_video_codec_bitrate=Math.round(8*s/d),r.msg_up_stream_info.msg_network_status.uint32_bitrate+=e.uint32_video_codec_bitrate,e.uint32_video_enc_fps=Math.round(t.getDifferenceValue(a,e.uint32_video_enc_fps)/d),e.uint32_video_codec_fps=Math.round(t.getDifferenceValue(i,e.uint32_video_codec_fps)/d)}));var g=r.msg_down_stream_info,_=p.msg_down_stream_info;return g.forEach((function(e){var n=_.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 a=t.getDifferenceValue(o.uint32_audio_codec_bitrate,r.uint32_audio_codec_bitrate);r.uint32_audio_codec_bitrate=Math.round(8*a/d),r.uint32_audio_total_bitrate=Math.round(8*a/d)}if(e.msg_video_status&&n.msg_video_status){var i=e.msg_video_status,s=n.msg_video_status;i.forEach((function(e){var n=s.find((function(t){return t.uint32_video_stream_type===e.uint32_video_stream_type}));if(!n)return e.uint32_video_receive=0,e.uint32_video_origin_lost=0,e.uint32_video_codec_bitrate=0,e.uint32_video_receive_fps=0,void(e.uint32_video_dec_fps=0);var r=n.uint32_video_receive,o=n.uint32_video_origin_lost,a=n.uint32_video_codec_bitrate,i=n.uint32_video_receive_fps,c=n.uint32_video_dec_fps;e.uint32_video_origin_lost=t.getDifferenceValue(o,e.uint32_video_origin_lost),e.uint32_video_receive=t.getDifferenceValue(r,e.uint32_video_receive)+e.uint32_video_origin_lost;var l=t.getDifferenceValue(a,e.uint32_video_codec_bitrate);e.uint32_video_codec_bitrate=Math.round(8*l/d);var u=t.getDifferenceValue(i,e.uint32_video_receive_fps);e.uint32_video_receive_fps=Math.round(u/d),e.uint32_video_dec_fps=Math.round(t.getDifferenceValue(c,e.uint32_video_dec_fps)/d)}))}}})),r}},{key:"getStatsReport",value:(t=i(r().mark((function e(t){var n,o,a,i,s;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.uplinkConnection,o=t.downlinkConnections,a=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_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}}]},e.next=4,this.getStats(n,o);case 4:return s=e.sent,"{}"===JSON.stringify(this.prevReport_)&&(this.prevReport_=JSON.parse(JSON.stringify(i))),this.prepareReport({stats:s,report:i,freezeMap:a,uplinkConnection:n,downlinkConnections:o}),this.prevReportTime_=Date.now(),e.abrupt("return",i);case 9:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"reset",value:function(){this.prevReportTime_=0,this.prevReport_={},this.prevEncoderImplementation_="",this.prevQualityLimitationReason_="",this.prevDecoderImplementationMap_=new Map}}]),e}(),HA=function(){function e(t){var n=t.signalChannel,r=t.connections,o=t.client;s(this,e),this.client_=o,this.signalChannel_=n,this.connections_=r,this.client_=o,this.log_=xE.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 AT,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(M(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(Jj.UPLINK_NETWORK_STATS,(function(t){e.handleUplinkNetworkQuality(t)})),this.signalChannel_.on(Fj,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,a=r-o,i=n.delay;if(i&&this.updateDelay(i),0===r&&0===o)return;this.uplinkLoss_=a<=0?0:Math.round(a/r*100),this.uplinkRTT_=n.rtt,this.uplinkNetworkQuality=this.getNetworkQuality(this.uplinkLoss_,this.uplinkRTT_)}}},{key:"handleDownlinkNetworkQuality",value:(n=i(r().mark((function e(){var t,n,o,a,i,s,c,l,u,d,p,f,h,m,v,g=this;return r().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=M(this.connections_.values()),n=t.filter((function(e){return e.getPeerConnection()&&e.getPeerConnection().connectionState===FM})),t.filter((function(e){return e.getPeerConnection()&&g.isPeerConnectionDisconnected(e.getPeerConnection())})).length!==t.length){e.next=9;break}return this.downlinkNetworkQuality=6,e.abrupt("return");case 9:o=0;case 10:if(!(o<n.length)){e.next=31;break}return a=n[o].getPeerConnection(),e.next=14,this.getStat(a);case 14:if(i=e.sent,s=i.rtt,c=i.totalPacketsLost,l=i.totalPacketsReceived,this.downlinkPrevStatMap_.has(a)){e.next=21;break}return this.downlinkPrevStatMap_.set(a,{totalPacketsLost:c,totalPacketsReceived:l}),e.abrupt("continue",28);case 21:u=0,d=this.downlinkPrevStatMap_.get(a),p=c-d.totalPacketsLost,f=l-d.totalPacketsReceived,u=p<=0||f<0?0:Math.round(p/(p+f)*100),this.downlinkPrevStatMap_.set(a,{totalPacketsLost:c,totalPacketsReceived:l}),this.downlinkLossAndRTTMap_.set(a,{rtt:s,loss:u,userId:n[o].getUserId()});case 28:o++,e.next=10;break;case 31:if(M(this.downlinkPrevStatMap_.keys()).forEach((function(e){g.isPeerConnectionDisconnected(e)&&(g.downlinkPrevStatMap_.delete(e),g.downlinkLossAndRTTMap_.delete(e))})),0!==this.downlinkLossAndRTTMap_.size){e.next=34;break}return e.abrupt("return");case 34:h=this.getAverageLossAndRTT(M(this.downlinkLossAndRTTMap_.values())),m=h.rtt,v=h.loss,this.downlinkRTT_=m,this.downlinkLoss_=v,this.downlinkNetworkQuality=this.getNetworkQuality(v,m);case 38:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"getStat",value:(t=i(r().mark((function e(t){var n,o,a,i;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n={rtt:0,totalPacketsLost:0,totalPacketsReceived:0},t&&mA()){e.next=3;break}return e.abrupt("return",n);case 3:o=t.getReceivers(),e.prev=4,a=0;case 6:if(!(a<o.length)){e.next=15;break}return i=o[a],e.next=10,i.getStats();case 10:e.sent.forEach((function(e){"candidate-pair"===e.type&&dT(e.currentRoundTripTime)&&(n.rtt=Math.round(1e3*e.currentRoundTripTime)),"inbound-rtp"!==e.type||e.mediaType!==wO&&e.mediaType!==IO||(n.totalPacketsLost+=e.packetsLost,n.totalPacketsReceived+=e.packetsReceived)}));case 12:a++,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===Hj?(this.uplinkRTT_=0,this.uplinkLoss_=0,this.uplinkNetworkQuality=6):e.state===Wj&&6===this.uplinkNetworkQuality&&(this.uplinkNetworkQuality=5)}},{key:"handleUplinkConnectionStateChange",value:function(e){var t=e.state;t===LM?(this.uplinkLoss_=0,this.uplinkRTT_=0,this.uplinkNetworkQuality=6):t===xM&&6===this.uplinkNetworkQuality&&(this.uplinkNetworkQuality=5)}},{key:"isPeerConnectionDisconnected",value:function(e){return!(!e||e.connectionState!==BM&&e.connectionState!==UM&&e.connectionState!==VM)}},{key:"setUplinkConnection",value:function(e){this.uplinkConnection_=e,this.uplinkConnection_?this.uplinkConnection_.on(NA.CONNECTION_STATE_CHANGED,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_=XL.run(uC,(function(){e.handleDownlinkNetworkQuality(),NT.emit(IE,{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(xA.NETWORK_QUALITY,{uplinkNetworkQuality:e.uplinkNetworkQuality,downlinkNetworkQuality:e.downlinkNetworkQuality,uplinkRTT:e.uplinkRTT_,uplinkLoss:e.uplinkLoss_,downlinkRTT:e.downlinkRTT_,downlinkLoss:e.downlinkLoss_})}),{delay:2e3})):this.log_.info("network quality calculating is already started")}},{key:"stop",value:function(){this.log_.info("stop network quality calculating"),-1!==this.interval_&&(XL.clearTask(this.interval_),this.interval_=-1),this.downlinkLossAndRTTMap_.clear(),this.downlinkPrevStatMap_.clear()}},{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,a=t.connections_.get(n);a&&a.setDelay({videoDelay:r,audioDelay:o})}))}}]),e}(),YA=function(){function e(t){s(this,e),this.log_=xE.createLogger({id:t.client.getUserId(),userId:t.client.getUserId(),sdkAppId:t.client.getSDKAppId()}),this.localStream_=null,this.prevDevices_=[],this.initialize()}var t,n;return l(e,[{key:"initialize",value:function(){navigator.mediaDevices&&navigator.mediaDevices.addEventListener&&(this.onDeviceChange=this.onDeviceChange.bind(this),navigator.mediaDevices.addEventListener("devicechange",this.onDeviceChange))}},{key:"destroy",value:function(){navigator.mediaDevices&&navigator.mediaDevices.removeEventListener&&navigator.mediaDevices.removeEventListener("devicechange",this.onDeviceChange)}},{key:"onDeviceChange",value:(n=i(r().mark((function e(){var t,n,o,a=this;return r().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,JA();case 4:t=e.sent,n=t.filter((function(e){return a.prevDevices_.findIndex((function(t){var n=t.deviceId;return e.deviceId===n}))<0})),o=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),o.length>0&&this.handleDeviceRemoved(t,o),this.prevDevices_=t;case 10:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"setLocalStream",value:(t=i(r().mark((function e(t){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=4;break}return e.next=3,JA();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){var n,r;if(this.localStream_){this.log_.warn("devicesAdded: ".concat(JSON.stringify(t))),this.localStream_.updateDeviceIdInUse();var o=t.filter((function(e){return e.kind===zO})),a=t.filter((function(e){return e.kind===GO})),i=e.filter((function(e){return e.kind===zO})),s=e.filter((function(e){return e.kind===GO})),c=o.length>0&&0===i.length&&"live"!==(null===(n=this.localStream_.getVideoTrack())||void 0===n?void 0:n.readyState),l=a.length>0&&0===s.length&&"live"!==(null===(r=this.localStream_.getAudioTrack())||void 0===r?void 0:r.readyState);if(l&&c)return this.log_.info("new microphone and camera detected, but there was no device before."),void this.localStream_.recoverCapture({audio:!0,video:!0,cameraId:o[0].deviceId,microphoneId:a[0].deviceId});c&&(this.log_.info("new camera detected, but there was no camera before."),this.localStream_.recoverCapture({audio:!1,video:!0,cameraId:o[0].deviceId})),l&&(this.log_.info("new microphone detected, but there was no microphone before."),this.localStream_.recoverCapture({audio:!0,video:!1,microphoneId:a[0].deviceId}))}}},{key:"handleDeviceRemoved",value:function(e,t){if(this.localStream_){this.log_.warn("devicesRemoved: ".concat(JSON.stringify(t))),this.localStream_.updateDeviceIdInUse();var n=!1,r=!1,o=this.localStream_.getCameraId(),a=this.localStream_.getMicrophoneId();if(a===eC){var i=this.localStream_.getMicrophoneGroupId(),s=e.filter((function(e){return e.deviceId===eC&&e.kind===GO}))[0];s&&s.groupId!==i&&(r=!0)}if(t.forEach((function(e){var t=e.deviceId;o.length>0&&t===o?n=!0:a.length>0&&t===a&&(r=!0)})),n&&r)return this.log_.warn("current camera and microphone in use is lost, cameraId: ".concat(o,", microphoneId: ").concat(a)),void((this.localStream_.getAudio()||this.localStream_.getVideo())&&this.localStream_.recoverCapture({video:!0,audio:!0}));n&&(this.log_.warn("current camera in use is lost, deviceId: ".concat(o)),this.localStream_.getVideo()&&this.localStream_.recoverCapture({video:!0,audio:!1})),r&&(this.log_.warn("current microphone in use is lost, deviceId: ".concat(a)),this.localStream_.getAudio()&&this.localStream_.recoverCapture({video:!1,audio:!0}))}}}]),e}();function qA(){return qA=i(r().mark((function e(){var t;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!MA()&&!OA()){e.next=2;break}return e.abrupt("return",[]);case 2:return e.next=4,KA();case 4:return t=e.sent,e.abrupt("return",t.filter((function(e){return e.kind===zO})).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),e.getCapabilities&&(r.getCapabilities=function(){return e.getCapabilities()}),r})));case 6:case"end":return e.stop()}}),e)}))),qA.apply(this,arguments)}var WA=new Set;function KA(){return $A.apply(this,arguments)}function $A(){return($A=i(r().mark((function e(){var t;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!MA()&&!OA()){e.next=2;break}return e.abrupt("return",[]);case 2:return e.next=4,navigator.mediaDevices.enumerateDevices();case 4:return(t=e.sent).forEach((function(e){WA.add("".concat(e.deviceId,"_").concat(e.kind))})),e.abrupt("return",t);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function JA(){return QA.apply(this,arguments)}function QA(){return QA=i(r().mark((function e(){var t;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,KA();case 2:return t=e.sent,e.abrupt("return",t.filter((function(e){return e.kind!==GO||e.deviceId!=tC})).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),e.getCapabilities&&(r.getCapabilities=function(){return e.getCapabilities()}),r})));case 4:case"end":return e.stop()}}),e)}))),QA.apply(this,arguments)}function XA(){return ZA.apply(this,arguments)}function ZA(){return ZA=i(r().mark((function e(){var t;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,KA();case 2:return t=e.sent,e.abrupt("return",t.filter((function(e){return e.kind===GO&&e.deviceId!==tC})).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),e.getCapabilities&&(r.getCapabilities=function(){return e.getCapabilities()}),r})));case 4:case"end":return e.stop()}}),e)}))),ZA.apply(this,arguments)}function eN(){return tN.apply(this,arguments)}function tN(){return tN=i(r().mark((function e(){var t;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,KA();case 2: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 4:case"end":return e.stop()}}),e)}))),tN.apply(this,arguments)}function nN(e){var t;if(e instanceof CanvasCaptureMediaStreamTrack)return!1;if(!(e instanceof window.MediaStreamTrack))return!1;var n=e.label.toLocaleLowerCase();if(n.includes("camera")||n.includes("webcam"))return!0;var r="".concat(null===(t=e.getSettings())||void 0===t?void 0:t.deviceId,"_").concat(zO);return!!WA.has(r)}function rN(e,t){return oN.apply(this,arguments)}function oN(){return(oN=i(r().mark((function e(t,n){var o,a;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,XA();case 2:if(o=e.sent,(null==(a=o.find((function(e){return e.deviceId===eC})))?void 0:a.groupId)!==t||a.label!==n){e.next=6;break}return e.abrupt("return",!0);case 6:return e.abrupt("return",!1);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var aN,iN=wn.exports,sN=on,cN=un,lN=Xs,uN=Ds,dN=R,pN=pt,fN=function(e,t,n,r){try{return r?t(cN(n)[0],n[1]):t(n)}catch(qq){lN(e,"throw",qq)}},hN=xs,mN=Cu,vN=Pr,gN=Wi,_N=Ks,yN=Fs,bN=Array,ON=function(e){var t=pN(e),n=mN(this),r=arguments.length,o=r>1?arguments[1]:void 0,a=void 0!==o;a&&(o=uN(o,r>2?arguments[2]:void 0));var i,s,c,l,u,d,p=yN(t),f=0;if(!p||this===bN&&hN(p))for(i=vN(t),s=n?new this(i):bN(i);i>f;f++)d=a?o(t[f],f):t[f],gN(s,f,d);else for(u=(l=_N(t,p)).next,s=n?new this:[];!(c=dN(u,l)).done;f++)d=a?fN(l,o,[c.value,f],!0):c.value,gN(s,f,d);return s.length=f,s},MN=te,kN=2147483647,CN=/[^\0-\u007E]/,wN=/[.\u3002\uFF0E\uFF61]/g,IN="Overflow: input needs wider integers to process",SN=RangeError,TN=MN(wN.exec),EN=Math.floor,jN=String.fromCharCode,DN=MN("".charCodeAt),LN=MN([].join),AN=MN([].push),NN=MN("".replace),xN=MN("".split),RN=MN("".toLowerCase),PN=function(e){return e+22+75*(e<26)},UN=function(e,t,n){var r=0;for(e=n?EN(e/700):e>>1,e+=EN(e/t);e>455;)e=EN(e/35),r+=36;return EN(r+36*e/(e+38))},VN=function(e){var t=[];e=function(e){for(var t=[],n=0,r=e.length;n<r;){var o=DN(e,n++);if(o>=55296&&o<=56319&&n<r){var a=DN(e,n++);56320==(64512&a)?AN(t,((1023&o)<<10)+(1023&a)+65536):(AN(t,o),n--)}else AN(t,o)}return t}(e);var n,r,o=e.length,a=128,i=0,s=72;for(n=0;n<e.length;n++)(r=e[n])<128&&AN(t,jN(r));var c=t.length,l=c;for(c&&AN(t,"-");l<o;){var u=kN;for(n=0;n<e.length;n++)(r=e[n])>=a&&r<u&&(u=r);var d=l+1;if(u-a>EN((kN-i)/d))throw SN(IN);for(i+=(u-a)*d,a=u,n=0;n<e.length;n++){if((r=e[n])<a&&++i>kN)throw SN(IN);if(r==a){for(var p=i,f=36;;){var h=f<=s?1:f>=s+26?26:f-s;if(p<h)break;var m=p-h,v=36-h;AN(t,jN(PN(h+m%v))),p=EN(m/v),f+=36}AN(t,jN(PN(p))),s=UN(i,d,l==c),i=0,l++}}i++,a++}return LN(t,"")},BN=Io,FN=L,GN=hh,zN=E,HN=Ds,YN=te,qN=kr,WN=function(e,t,n){return n.get&&iN(n.get,t,{getter:!0}),n.set&&iN(n.set,t,{setter:!0}),sN.f(e,t,n)},KN=mc,$N=mt,JN=dj,QN=ON,XN=Zi,ZN=bl.codeAt,ex=function(e){var t,n,r=[],o=xN(NN(RN(e),wN,"."),".");for(t=0;t<o.length;t++)n=o[t],AN(r,TN(CN,n)?"xn--"+VN(n):n);return LN(r,".")},tx=dl,nx=Ra,rx=Ql,ox=Nm,ax=ir,ix=ax.set,sx=ax.getterFor("URL"),cx=ox.URLSearchParams,lx=ox.getState,ux=zN.URL,dx=zN.TypeError,px=zN.parseInt,fx=Math.floor,hx=Math.pow,mx=YN("".charAt),vx=YN(/./.exec),gx=YN([].join),_x=YN(1..toString),yx=YN([].pop),bx=YN([].push),Ox=YN("".replace),Mx=YN([].shift),kx=YN("".split),Cx=YN("".slice),wx=YN("".toLowerCase),Ix=YN([].unshift),Sx="Invalid scheme",Tx="Invalid host",Ex="Invalid port",jx=/[a-z]/i,Dx=/[\d+-.a-z]/i,Lx=/\d/,Ax=/^0x/i,Nx=/^[0-7]+$/,xx=/^\d+$/,Rx=/^[\da-f]+$/i,Px=/[\0\t\n\r #%/:<>?@[\\\]^|]/,Ux=/[\0\t\n\r #/:<>?@[\\\]^|]/,Vx=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,Bx=/[\t\n\r]/g,Fx=function(e){var t,n,r,o;if("number"==typeof e){for(t=[],n=0;n<4;n++)Ix(t,e%256),e=fx(e/256);return gx(t,".")}if("object"==typeof e){for(t="",r=function(e){for(var t=null,n=1,r=null,o=0,a=0;a<8;a++)0!==e[a]?(o>n&&(t=r,n=o),r=null,o=0):(null===r&&(r=a),++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+=_x(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},Gx={},zx=JN({},Gx,{" ":1,'"':1,"<":1,">":1,"`":1}),Hx=JN({},zx,{"#":1,"?":1,"{":1,"}":1}),Yx=JN({},Hx,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),qx=function(e,t){var n=ZN(e,0);return n>32&&n<127&&!$N(t,e)?e:encodeURIComponent(e)},Wx={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Kx=function(e,t){var n;return 2==e.length&&vx(jx,mx(e,0))&&(":"==(n=mx(e,1))||!t&&"|"==n)},$x=function(e){var t;return e.length>1&&Kx(Cx(e,0,2))&&(2==e.length||"/"===(t=mx(e,2))||"\\"===t||"?"===t||"#"===t)},Jx=function(e){return"."===e||"%2e"===wx(e)},Qx={},Xx={},Zx={},eR={},tR={},nR={},rR={},oR={},aR={},iR={},sR={},cR={},lR={},uR={},dR={},pR={},fR={},hR={},mR={},vR={},gR={},_R=function(e,t,n){var r,o,a,i=tx(e);if(t){if(o=this.parse(i))throw dx(o);this.searchParams=null}else{if(void 0!==n&&(r=new _R(n,!0)),o=this.parse(i,null,r))throw dx(o);(a=lx(new cx)).bindURL(this),this.searchParams=a}};_R.prototype={type:"URL",parse:function(e,t,n){var r,o,a,i,s,c=this,l=t||Qx,u=0,d="",p=!1,f=!1,h=!1;for(e=tx(e),t||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,e=Ox(e,Vx,"")),e=Ox(e,Bx,""),r=QN(e);u<=r.length;){switch(o=r[u],l){case Qx:if(!o||!vx(jx,o)){if(t)return Sx;l=Zx;continue}d+=wx(o),l=Xx;break;case Xx:if(o&&(vx(Dx,o)||"+"==o||"-"==o||"."==o))d+=wx(o);else{if(":"!=o){if(t)return Sx;d="",l=Zx,u=0;continue}if(t&&(c.isSpecial()!=$N(Wx,d)||"file"==d&&(c.includesCredentials()||null!==c.port)||"file"==c.scheme&&!c.host))return;if(c.scheme=d,t)return void(c.isSpecial()&&Wx[c.scheme]==c.port&&(c.port=null));d="","file"==c.scheme?l=uR:c.isSpecial()&&n&&n.scheme==c.scheme?l=eR:c.isSpecial()?l=oR:"/"==r[u+1]?(l=tR,u++):(c.cannotBeABaseURL=!0,bx(c.path,""),l=mR)}break;case Zx:if(!n||n.cannotBeABaseURL&&"#"!=o)return Sx;if(n.cannotBeABaseURL&&"#"==o){c.scheme=n.scheme,c.path=XN(n.path),c.query=n.query,c.fragment="",c.cannotBeABaseURL=!0,l=gR;break}l="file"==n.scheme?uR:nR;continue;case eR:if("/"!=o||"/"!=r[u+1]){l=nR;continue}l=aR,u++;break;case tR:if("/"==o){l=iR;break}l=hR;continue;case nR:if(c.scheme=n.scheme,o==aN)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=XN(n.path),c.query=n.query;else if("/"==o||"\\"==o&&c.isSpecial())l=rR;else if("?"==o)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=XN(n.path),c.query="",l=vR;else{if("#"!=o){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=XN(n.path),c.path.length--,l=hR;continue}c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=XN(n.path),c.query=n.query,c.fragment="",l=gR}break;case rR:if(!c.isSpecial()||"/"!=o&&"\\"!=o){if("/"!=o){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,l=hR;continue}l=iR}else l=aR;break;case oR:if(l=aR,"/"!=o||"/"!=mx(d,u+1))continue;u++;break;case aR:if("/"!=o&&"\\"!=o){l=iR;continue}break;case iR:if("@"==o){p&&(d="%40"+d),p=!0,a=QN(d);for(var m=0;m<a.length;m++){var v=a[m];if(":"!=v||h){var g=qx(v,Yx);h?c.password+=g:c.username+=g}else h=!0}d=""}else if(o==aN||"/"==o||"?"==o||"#"==o||"\\"==o&&c.isSpecial()){if(p&&""==d)return"Invalid authority";u-=QN(d).length+1,d="",l=sR}else d+=o;break;case sR:case cR:if(t&&"file"==c.scheme){l=pR;continue}if(":"!=o||f){if(o==aN||"/"==o||"?"==o||"#"==o||"\\"==o&&c.isSpecial()){if(c.isSpecial()&&""==d)return Tx;if(t&&""==d&&(c.includesCredentials()||null!==c.port))return;if(i=c.parseHost(d))return i;if(d="",l=fR,t)return;continue}"["==o?f=!0:"]"==o&&(f=!1),d+=o}else{if(""==d)return Tx;if(i=c.parseHost(d))return i;if(d="",l=lR,t==cR)return}break;case lR:if(!vx(Lx,o)){if(o==aN||"/"==o||"?"==o||"#"==o||"\\"==o&&c.isSpecial()||t){if(""!=d){var _=px(d,10);if(_>65535)return Ex;c.port=c.isSpecial()&&_===Wx[c.scheme]?null:_,d=""}if(t)return;l=fR;continue}return Ex}d+=o;break;case uR:if(c.scheme="file","/"==o||"\\"==o)l=dR;else{if(!n||"file"!=n.scheme){l=hR;continue}if(o==aN)c.host=n.host,c.path=XN(n.path),c.query=n.query;else if("?"==o)c.host=n.host,c.path=XN(n.path),c.query="",l=vR;else{if("#"!=o){$x(gx(XN(r,u),""))||(c.host=n.host,c.path=XN(n.path),c.shortenPath()),l=hR;continue}c.host=n.host,c.path=XN(n.path),c.query=n.query,c.fragment="",l=gR}}break;case dR:if("/"==o||"\\"==o){l=pR;break}n&&"file"==n.scheme&&!$x(gx(XN(r,u),""))&&(Kx(n.path[0],!0)?bx(c.path,n.path[0]):c.host=n.host),l=hR;continue;case pR:if(o==aN||"/"==o||"\\"==o||"?"==o||"#"==o){if(!t&&Kx(d))l=hR;else if(""==d){if(c.host="",t)return;l=fR}else{if(i=c.parseHost(d))return i;if("localhost"==c.host&&(c.host=""),t)return;d="",l=fR}continue}d+=o;break;case fR:if(c.isSpecial()){if(l=hR,"/"!=o&&"\\"!=o)continue}else if(t||"?"!=o)if(t||"#"!=o){if(o!=aN&&(l=hR,"/"!=o))continue}else c.fragment="",l=gR;else c.query="",l=vR;break;case hR:if(o==aN||"/"==o||"\\"==o&&c.isSpecial()||!t&&("?"==o||"#"==o)){if(".."===(s=wx(s=d))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(c.shortenPath(),"/"==o||"\\"==o&&c.isSpecial()||bx(c.path,"")):Jx(d)?"/"==o||"\\"==o&&c.isSpecial()||bx(c.path,""):("file"==c.scheme&&!c.path.length&&Kx(d)&&(c.host&&(c.host=""),d=mx(d,0)+":"),bx(c.path,d)),d="","file"==c.scheme&&(o==aN||"?"==o||"#"==o))for(;c.path.length>1&&""===c.path[0];)Mx(c.path);"?"==o?(c.query="",l=vR):"#"==o&&(c.fragment="",l=gR)}else d+=qx(o,Hx);break;case mR:"?"==o?(c.query="",l=vR):"#"==o?(c.fragment="",l=gR):o!=aN&&(c.path[0]+=qx(o,Gx));break;case vR:t||"#"!=o?o!=aN&&("'"==o&&c.isSpecial()?c.query+="%27":c.query+="#"==o?"%23":qx(o,Gx)):(c.fragment="",l=gR);break;case gR:o!=aN&&(c.fragment+=qx(o,zx))}u++}},parseHost:function(e){var t,n,r;if("["==mx(e,0)){if("]"!=mx(e,e.length-1))return Tx;if(t=function(e){var t,n,r,o,a,i,s,c=[0,0,0,0,0,0,0,0],l=0,u=null,d=0,p=function(){return mx(e,d)};if(":"==p()){if(":"!=mx(e,1))return;d+=2,u=++l}for(;p();){if(8==l)return;if(":"!=p()){for(t=n=0;n<4&&vx(Rx,p());)t=16*t+px(p(),16),d++,n++;if("."==p()){if(0==n)return;if(d-=n,l>6)return;for(r=0;p();){if(o=null,r>0){if(!("."==p()&&r<4))return;d++}if(!vx(Lx,p()))return;for(;vx(Lx,p());){if(a=px(p(),10),null===o)o=a;else{if(0==o)return;o=10*o+a}if(o>255)return;d++}c[l]=256*c[l]+o,2!=++r&&4!=r||l++}if(4!=r)return;break}if(":"==p()){if(d++,!p())return}else if(p())return;c[l++]=t}else{if(null!==u)return;d++,u=++l}}if(null!==u)for(i=l-u,l=7;0!=l&&i>0;)s=c[l],c[l--]=c[u+i-1],c[u+--i]=s;else if(8!=l)return;return c}(Cx(e,1,-1)),!t)return Tx;this.host=t}else if(this.isSpecial()){if(e=ex(e),vx(Px,e))return Tx;if(t=function(e){var t,n,r,o,a,i,s,c=kx(e,".");if(c.length&&""==c[c.length-1]&&c.length--,(t=c.length)>4)return e;for(n=[],r=0;r<t;r++){if(""==(o=c[r]))return e;if(a=10,o.length>1&&"0"==mx(o,0)&&(a=vx(Ax,o)?16:8,o=Cx(o,8==a?1:2)),""===o)i=0;else{if(!vx(10==a?xx:8==a?Nx:Rx,o))return e;i=px(o,a)}bx(n,i)}for(r=0;r<t;r++)if(i=n[r],r==t-1){if(i>=hx(256,5-t))return null}else if(i>255)return null;for(s=yx(n),r=0;r<n.length;r++)s+=n[r]*hx(256,3-r);return s}(e),null===t)return Tx;this.host=t}else{if(vx(Ux,e))return Tx;for(t="",n=QN(e),r=0;r<n.length;r++)t+=qx(n[r],Gx);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return $N(Wx,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&Kx(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,n=e.username,r=e.password,o=e.host,a=e.port,i=e.path,s=e.query,c=e.fragment,l=t+":";return null!==o?(l+="//",e.includesCredentials()&&(l+=n+(r?":"+r:"")+"@"),l+=Fx(o),null!==a&&(l+=":"+a)):"file"==t&&(l+="//"),l+=e.cannotBeABaseURL?i[0]:i.length?"/"+gx(i,"/"):"",null!==s&&(l+="?"+s),null!==c&&(l+="#"+c),l},setHref:function(e){var t=this.parse(e);if(t)throw dx(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new yR(e.path[0]).origin}catch(qq){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+Fx(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(tx(e)+":",Qx)},getUsername:function(){return this.username},setUsername:function(e){var t=QN(tx(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<t.length;n++)this.username+=qx(t[n],Yx)}},getPassword:function(){return this.password},setPassword:function(e){var t=QN(tx(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<t.length;n++)this.password+=qx(t[n],Yx)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?Fx(e):Fx(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,sR)},getHostname:function(){var e=this.host;return null===e?"":Fx(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,cR)},getPort:function(){var e=this.port;return null===e?"":tx(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=tx(e))?this.port=null:this.parse(e,lR))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+gx(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,fR))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=tx(e))?this.query=null:("?"==mx(e,0)&&(e=Cx(e,1)),this.query="",this.parse(e,vR)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=tx(e))?("#"==mx(e,0)&&(e=Cx(e,1)),this.fragment="",this.parse(e,gR)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var yR=function(e){var t=KN(this,bR),n=rx(arguments.length,1)>1?arguments[1]:void 0,r=ix(t,new _R(e,!1,n));FN||(t.href=r.serialize(),t.origin=r.getOrigin(),t.protocol=r.getProtocol(),t.username=r.getUsername(),t.password=r.getPassword(),t.host=r.getHost(),t.hostname=r.getHostname(),t.port=r.getPort(),t.pathname=r.getPathname(),t.search=r.getSearch(),t.searchParams=r.getSearchParams(),t.hash=r.getHash())},bR=yR.prototype,OR=function(e,t){return{get:function(){return sx(this)[e]()},set:t&&function(e){return sx(this)[t](e)},configurable:!0,enumerable:!0}};if(FN&&(WN(bR,"href",OR("serialize","setHref")),WN(bR,"origin",OR("getOrigin")),WN(bR,"protocol",OR("getProtocol","setProtocol")),WN(bR,"username",OR("getUsername","setUsername")),WN(bR,"password",OR("getPassword","setPassword")),WN(bR,"host",OR("getHost","setHost")),WN(bR,"hostname",OR("getHostname","setHostname")),WN(bR,"port",OR("getPort","setPort")),WN(bR,"pathname",OR("getPathname","setPathname")),WN(bR,"search",OR("getSearch","setSearch")),WN(bR,"searchParams",OR("getSearchParams")),WN(bR,"hash",OR("getHash","setHash"))),qN(bR,"toJSON",(function(){return sx(this).serialize()}),{enumerable:!0}),qN(bR,"toString",(function(){return sx(this).serialize()}),{enumerable:!0}),ux){var MR=ux.createObjectURL,kR=ux.revokeObjectURL;MR&&qN(yR,"createObjectURL",HN(MR,ux)),kR&&qN(yR,"revokeObjectURL",HN(kR,ux))}nx(yR,"URL"),BN({global:!0,constructor:!0,forced:!GN,sham:!FN},{URL:yR});var CR,wR,IR=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"}),SR=!1,TR=function(){function e(t){s(this,e),this.context_=t.context,this.addModuleToContext()}var t;return l(e,[{key:"addModuleToContext",value:(t=i(r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.context_.audioWorklet.addModule(URL.createObjectURL(IR));case 3:xE.info("worklet addModule success"),NT.emit(TE),SR=!0,e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),xE.info("worklet addModule catch error. ".concat(e.t0.message)),NT.emit(EE);case 12:case"end":return e.stop()}}),e,this,[[0,8]])}))),function(){return t.apply(this,arguments)})},{key:"initWorkletSuccess",get:function(){return SR}}]),e}(),ER=0,jR=function(){function e(t){s(this,e);var n=t.track,r=t.log,o=t.stream;this.volume_=0,this.log_=r,this.track_=n,this.stream_=o,ER+=1,CR||(CR=CT()),this.audioCtx_=CR,this.destination_=this.audioCtx_.destination;var a=new MediaStream;a.addTrack(this.track_),this.streamSource_=this.audioCtx_.createMediaStreamSource(a),this.audioWorkletNode_=null,this.scriptProcessorNode_=null,this.interval_=200,NT.on(SE,this.resume,this),NT.on(JT,this.handleAudioLevelInterval,this),IT?(NT.on(TE,this.initAudioWorklet,this),NT.on(EE,this.initScriptProcessor,this),this.preload()):this.initScriptProcessor()}return l(e,[{key:"preload",value:function(){wR?wR.initWorkletSuccess&&this.initAudioWorklet():wR=new TR({context:CR})}},{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_})}catch(qq){this.log_.warn("load volume meter failed, load again. error: "+qq),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(qq){this.log_.error("volumeMeter init script processor error: "+qq),ER-=1}}},{key:"destroy",value:function(){var e;this.streamSource_&&this.streamSource_.disconnect(),this.scriptProcessorNode_&&(this.scriptProcessorNode_.onaudioprocess=null,this.scriptProcessorNode_.disconnect()),this.audioWorkletNode_&&(this.audioWorkletNode_.port.postMessage({name:"stop"}),this.audioWorkletNode_.port.onmessage=null,this.audioWorkletNode_.disconnect()),this.audioWorkletNode_=null,this.scriptProcessorNode_=null,this.audioCtx_=null,NT.off(SE,this.resume,this),NT.off(JT,this.handleAudioLevelInterval,this),NT.off(TE,this.initAudioWorklet,this),NT.off(EE,this.initScriptProcessor,this),ER>0&&(ER-=1),0===ER&&(null===(e=CR)||void 0===e||e.close(),CR=null,wR=null)}},{key:"resume",value:function(){var e;null===(e=CR)||void 0===e||e.resume()}},{key:"getInternalAudioLevel",value:function(){return this.volume_}},{key:"getCalculatedVolume",value:function(){return this.volume_.toFixed(2)}},{key:"handleAudioLevelInterval",value:function(e){var t,n=e.interval;this.interval_=n,null===(t=this.audioWorkletNode_)||void 0===t||t.port.postMessage({name:"setIntervalTime",intervalTime:n})}}]),e}(),DR=function(){function e(t){s(this,e),this.stream_=t.stream,this.userId_=t.stream.getUserId(),this.log_=this.stream_.getLogger(),this.track_=t.track,t.gainedTrack&&(this.gainedTrack_=t.gainedTrack),this.div_=t.div,this.muted_=t.muted,this.outputDeviceId_=t.outputDeviceId,this.volume_=t.volume,this.pausedRetryCount_=5,this.emitter_=new AT,this.initializeElement(),this.state_="NONE",this.volumeMeter_=new jR({stream:this.stream_,track:this.gainedTrack_||this.track_,log:this.log_})}var t,n,o,a;return l(e,[{key:"isPlaying",get:function(){return this.state_===ZO}},{key:"initializeElement",value:function(){if(this.isAudioElementInit()){var e=new MediaStream;e.addTrack(this.gainedTrack_||this.track_);var t=document.createElement(wO);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:(a=i(r().mark((function e(){var t;return r().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),t=eT({key:Xw,data:{media:"Audio",error:e.t0}}),this.log_.warn(t),!t.includes("NotAllowedError")){e.next=16;break}throw new _D({code:gD.PLAY_NOT_ALLOWED,message:t});case 16:case"end":return e.stop()}}),e,this,[[4,10]])}))),function(){return a.apply(this,arguments)})},{key:"handleEvents",value:function(){this.handleElementEvent=this.handleElementEvent.bind(this),this.handleTrackEvent=this.handleTrackEvent.bind(this),this.element_&&(this.element_.addEventListener(UO,this.handleElementEvent),this.element_.addEventListener(PO,this.handleElementEvent),this.element_.addEventListener(VO,this.handleElementEvent),this.element_.addEventListener(BO,this.handleElementEvent)),this.track_.addEventListener(PO,this.handleTrackEvent),this.track_.addEventListener(xO,this.handleTrackEvent),this.track_.addEventListener(RO,this.handleTrackEvent),this.track_.readyState===PO&&this.handleTrackEvent({type:PO}),this.track_.muted&&this.handleTrackEvent({type:xO})}},{key:"handleElementEvent",value:(o=i(r().mark((function e(t){var n,o,a,i,s,c,l,u=this;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.type,e.t0=n,e.next=e.t0===UO?4:e.t0===PO?9:e.t0===VO?12:e.t0===BO?21:32;break;case 4:return this.log_.info("audio player is playing"),this.state_=ZO,NT.emit(oE,{stream:this.stream_}),this.emitter_.emit(FA,{state:this.state_,reason:UO}),e.abrupt("break",32);case 9:return this.log_.info("audio player is ended"),this.state_!==tM&&(this.state_=tM,this.emitter_.emit(FA,{state:this.state_,reason:PO})),e.abrupt("break",32);case 12:return this.log_.info("audio player is paused"),this.state_=eM,this.emitter_.emit(FA,{state:this.state_,reason:VO}),(o=this.div_&&document.getElementById(this.div_.id))||this.log_.warn("audio player has been remove, element ID: ".concat(this.div_.id)),a=xS(),this.pausedRetryCount_>0&&(dT(a)&&a<=70||!o)&&(this.resume(),this.pausedRetryCount_--),YI&&(this.interval_=XL.run((function(){u.element_&&u.state_===eM&&u.resume()}),{delay:3e3})),e.abrupt("break",32);case 21:if(!this.element_||!this.element_.error){e.next=31;break}return i="".concat(IA(),"/").concat(QS().name,"/").concat(QS().version),e.next=25,KW.getSpeakers();case 25:s=e.sent,c=s[0].label,(l=s.find((function(e){return e.deviceId===u.outputDeviceId_})))&&(c=l.label),this.log_.error("audio player error observed. code: ".concat(this.element_.error.code," message: ").concat(this.element_.error.message," deviceInfo: ").concat(i," speaker: ").concat(c)),sL.uploadEvent({log:"stat-".concat(this.stream_.getType(),"-audio-").concat(hk,"-").concat(this.element_.error.code,"-").concat(i,"-").concat(c),userId:this.userId_,error:this.element_.error});case 31:return e.abrupt("break",32);case 32:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"handleTrackEvent",value:function(e){var t=e.type;switch(t){case PO:this.log_.info("audio track is ended"),this.state_!==tM&&(this.state_=tM,this.emitter_.emit(FA,{state:this.state_,reason:PO})),NT.emit(kE,{stream:this.stream_,type:t});break;case xO:this.log_.info("audio track is unable to provide media output"),this.stream_.isRemote()||kT(),this.state_!==eM&&(this.state_=eM,this.emitter_.emit(FA,{state:this.state_,reason:xO})),NT.emit(ME,{stream:this.stream_,type:t});break;case RO:this.log_.info("audio track is able to provide media output"),this.state_===eM&&(this.state_=ZO,this.emitter_.emit(FA,{state:this.state_,reason:RO}))}}},{key:"unbindEvents",value:function(){this.element_&&(this.element_.removeEventListener(UO,this.handleElementEvent),this.element_.removeEventListener(PO,this.handleElementEvent),this.element_.removeEventListener(VO,this.handleElementEvent),this.element_.removeEventListener(BO,this.handleElementEvent)),this.track_&&(this.track_.removeEventListener(PO,this.handleTrackEvent),this.track_.removeEventListener(xO,this.handleTrackEvent),this.track_.removeEventListener(RO,this.handleTrackEvent))}},{key:"setSinkId",value:(n=i(r().mark((function e(t){return r().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("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),this.interval_>0&&XL.clearTask(this.interval_)}},{key:"resume",value:(t=i(r().mark((function e(){var t;return r().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),t=eT({key:Xw,data:{media:"Audio",error:e.t0}}),this.log_.warn(t),!t.includes("NotAllowedError")){e.next=13;break}throw new _D({code:gD.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"===zS||"15.3"===zS||"15.4"===zS)||"local"!==this.stream_.getType()||!this.muted_||(this.log_.info("audioElement is muted."),!1)}}]),e}(),LR=Dn.PROPER,AR=D,NR=Wv,xR=tg.trim;Io({target:"String",proto:!0,forced:function(e){return AR((function(){return!!NR[e]()||"
"!=="
"[e]()||LR&&NR[e].name!==e}))}("trim")},{trim:function(){return xR(this)}});var RR="trtc_autoplay",PR="".concat(RR,"_mask"),UR="".concat(RR,"_wrapper"),VR="".concat(RR,"_header"),BR="".concat(RR,"_content"),FR="".concat(RR,"_action_wrapper"),GR="".concat(RR,"_question"),zR="".concat(RR,"_collapse"),HR="".concat(RR,"_action_confirm"),YR="".concat(RR,"_detail"),qR="#2473E8",WR="dialog",KR="".concat(WR,"-show"),$R="".concat(WR,"-1"),JR="".concat(WR,"-2"),QR=!1,XR=function(){return!!document.querySelector(".".concat(UR))},ZR="".concat(Qk,"/").concat(MT()?"zh-cn":"en","/tutorial-21-advanced-auto-play-policy.html"),eP="<br><a href='".concat(ZR,"' target='_blank'>").concat(MT()?"其他方案?":"Any other solution?","</a>"),tP="".concat(MT()?"浏览器自动播放策略:在用户与页面产生交互(点击、触摸)之前,浏览器禁止播放有声媒体。该弹窗用于帮助用户恢复音视频播放。".concat(eP):"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(eP)),nP=function(){function e(){if(s(this,e),this.dialogNode_=null,this.bodyPosition_="",this.content="音视频播放被浏览器拦截,请点击“恢复播放”。",MT()||(this.content='Media playback failed. Click the "Resume" to resume playback.'),!QR){var t=document.createElement("style");t.innerHTML=".".concat(PR,"{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(PR," div:not(.").concat(FR,"){display:block !important;}.").concat(UR,"{padding:14px;background:#fff;border-radius:3px;box-shadow:0px 3px 15px #434343;border:1px solid #d1cfcf;max-width:500px;}.").concat(UR," a{color:").concat(qR,";}.").concat(VR,"{overflow:hidden;text-overflow:ellipsis;font-size:16px;font-weight:600;}.").concat(BR,"{margin:8px 0;}.").concat(FR,"{width:100%;display:flex !important;align-items:center;justify-content:right;float:right;}.").concat(zR,"{margin-right:auto;cursor:pointer}.").concat(GR,"{height:100%;line-height:16px;cursor:pointer;}.").concat(HR,"{margin-left:8px;color:#fff;background:").concat(qR,";padding:4px 12px;outline:none;border:1px solid;border-radius:3px;font-weight:bold;}.").concat(HR,":hover{opacity:0.9;}.").concat(zR,",.").concat(HR,",.").concat(BR,",.").concat(GR,"{font-size:14px;}@media screen and (max-width:750px){.").concat(UR,"{width:80vw;}}"),document.head.appendChild(t),QR=!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(PR,"\"><div class='").concat(UR,"'><div class='").concat(VR,"'>").concat(location.host,"</div><div class='").concat(BR,"'>").concat(this.content,"</div><div class='").concat(YR,'\' style="visibility:hidden;width:100%;height:0;font-size:12px;color:gray;">').concat(tP,"</div><div class='").concat(FR,"'></div></div></div>").trim();var t=document.createElement("button");t.className=HR,t.innerText=MT()?"恢复播放":"Resume",t.onclick=this.onConfirm.bind(this);var n=document.createElement("div");n.className=GR,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=zR,r.innerText="".concat(MT()?"详情 >":"Detail >"),r.onclick=this.onCollapseClick.bind(this);var o=e.content.firstChild,a=o.querySelector(".".concat(FR));return a.appendChild(r),a.appendChild(n),a.appendChild(t),o}},{key:"addDiaLog",value:function(){XR()||(this.dialogNode_=this.createDiaLog(),document.body.appendChild(this.dialogNode_),this.dialogNode_.onclick=this.onConfirm.bind(this),this.dialogNode_.querySelector(".".concat(UR)).onclick=function(e){return e.stopPropagation()},this.bodyPosition_=document.body.style.position,document.body.style.position="fixed",xE.info("show autoplay dialog"),sL.uploadEvent({log:KR}))}},{key:"deleteDiaLog",value:function(){this.dialogNode_&&(document.body.removeChild(this.dialogNode_),document.body.style.position=this.bodyPosition_,this.dialogNode_=null)}},{key:"onConfirm",value:function(){xE.warn("confirm clicked, try resume stream"),NT.emit(SE),this.deleteDiaLog()}},{key:"onCollapseClick",value:function(){var e=this.dialogNode_.querySelector(".".concat(YR));e.style.visibility="".concat(this.showDetail_?"hidden":"visible"),e.style.height="".concat(this.showDetail_?0:"fit-content"),this.showDetail_=!this.showDetail_,this.isCollapseClicked_||sL.uploadEvent({log:$R}),this.isCollapseClicked_=!0}},{key:"onQuestionClick",value:function(){window.open(ZR,"_blank"),this.isQuestionClicked_||sL.uploadEvent({log:JR}),this.isQuestionClicked_=!0}}]),e}(),rP=function(){function e(t){s(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 AT,this.initializeElement(),this.state_="NONE",this.pausedRetryCount_=5}var t;return l(e,[{key:"isPlaying",get:function(){return this.state_===ZO}},{key:"initializeElement",value:function(){var e=new MediaStream;e.addTrack(this.track_);var t=document.createElement(IO);t.srcObject=e,t.muted=!0;var n="width: 100%; height: 100%; object-fit: ".concat(this.objectFit_,";");this.mirror_&&(n+="transform: scaleX(-1);"),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?"scaleX(-1)":"",this.mirror_=e)}},{key:"setObjectFit",value:function(e){this.element_&&(this.element_.style.objectFit="".concat(e),this.objectFit_=e)}},{key:"play",value:(t=i(r().mark((function e(){var t;return r().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),t=eT({key:Xw,data:{media:"Video",error:e.t0}}),this.log_.warn(t),!t.includes("NotAllowedError")){e.next=11;break}throw new _D({code:gD.PLAY_NOT_ALLOWED,message:t});case 11:case"end":return e.stop()}}),e,this,[[0,5]])}))),function(){return t.apply(this,arguments)})},{key:"handleEvents",value:function(){this.handleElementEvent=this.handleElementEvent.bind(this),this.handleTrackEvent=this.handleTrackEvent.bind(this),this.element_.addEventListener(UO,this.handleElementEvent),this.element_.addEventListener(PO,this.handleElementEvent),this.element_.addEventListener(VO,this.handleElementEvent),this.element_.addEventListener(BO,this.handleElementEvent),this.element_.addEventListener(FO,this.handleElementEvent),this.track_.addEventListener(PO,this.handleTrackEvent),this.track_.addEventListener(xO,this.handleTrackEvent),this.track_.addEventListener(RO,this.handleTrackEvent),this.track_.readyState===PO&&this.handleTrackEvent({type:PO}),this.track_.muted&&this.handleTrackEvent({type:xO})}},{key:"handleElementEvent",value:function(e){var t=this;switch(e.type){case UO:this.log_.info("video player is playing"),this.state_=ZO,NT.emit(rE,{stream:this.stream_}),this.emitter_.emit(FA,{state:this.state_,reason:UO}),this.interval_&&(XL.clearTask(this.interval_),this.interval_=null);break;case PO:this.log_.info("video player is ended"),this.state_!==tM&&(this.state_=tM,this.emitter_.emit(FA,{state:this.state_,reason:PO}));break;case VO:this.log_.info("video player is paused"),this.div_&&!document.getElementById(this.div_.id)&&this.log_.warn("video player has been remove, element ID: ".concat(this.div_.id)),this.state_=eM,this.emitter_.emit(FA,{state:this.state_,reason:VO}),this.pausedRetryCount_>0&&!XR()&&(this.log_.info("video player auto resume when video paused"),this.resume(),this.pausedRetryCount_--),YI&&(this.interval_=XL.run((function(){t.element_&&t.state_===eM&&t.resume()}),{delay:3e3}));break;case BO:if(this.element_&&this.element_.error){var n="".concat(IA(),"/").concat(QS().name,"/").concat(QS().version);this.log_.error("video player error observed. code: ".concat(this.element_.error.code," message: ").concat(this.element_.error.message," deviceInfo: ").concat(n)),sL.uploadEvent({log:"stat-".concat(this.stream_.getType(),"-video-").concat(hk,"-").concat(this.element_.error.code,"-").concat(n),userId:this.userId_,error:this.element_.error})}break;case FO:NT.emit(yE,{stream:this.stream_})}}},{key:"handleTrackEvent",value:function(e){var t=e.type;switch(t){case PO:this.log_.info("video track is ended"),NT.emit(OE,{stream:this.stream_,type:t}),this.state_!==tM&&(this.state_=tM,this.emitter_.emit(FA,{state:this.state_,reason:PO}));break;case xO:this.log_.info("video track is unable to provide media output"),this.stream_.isRemote()||kT(),NT.emit(vE,{stream:this.stream_,type:t}),this.state_!==eM&&(this.state_=eM,this.emitter_.emit(FA,{state:this.state_,reason:xO}));break;case RO:this.log_.info("video track is able to provide media output"),NT.emit(gE,{stream:this.stream_}),this.state_===eM&&(this.state_=ZO,this.emitter_.emit(FA,{state:this.state_,reason:RO}))}}},{key:"unbindEvents",value:function(){this.element_&&(this.element_.removeEventListener(UO,this.handleElementEvent),this.element_.removeEventListener(PO,this.handleElementEvent),this.element_.removeEventListener(VO,this.handleElementEvent),this.element_.removeEventListener(BO,this.handleElementEvent),this.element_.removeEventListener(FO,this.handleElementEvent)),this.track_&&(this.track_.removeEventListener(PO,this.handleTrackEvent),this.track_.removeEventListener(xO,this.handleTrackEvent),this.track_.removeEventListener(RO,this.handleTrackEvent))}},{key:"stop",value:function(){this.unbindEvents(),this.div_&&this.div_.removeChild(this.element_),this.element_.srcObject=null,this.element_=null,this.interval_&&XL.clearTask(this.interval_)}},{key:"resume",value:function(){return this.play()}},{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}(),oP="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView,aP=Tr,iP=xr,sP=RangeError,cP=function(e){if(void 0===e)return 0;var t=aP(e),n=iP(t);if(t!==n)throw sP("Wrong length or index");return n},lP=Array,uP=Math.abs,dP=Math.pow,pP=Math.floor,fP=Math.log,hP=Math.LN2,mP={pack:function(e,t,n){var r,o,a,i=lP(n),s=8*n-t-1,c=(1<<s)-1,l=c>>1,u=23===t?dP(2,-24)-dP(2,-77):0,d=e<0||0===e&&1/e<0?1:0,p=0;for((e=uP(e))!=e||1/0===e?(o=e!=e?1:0,r=c):(r=pP(fP(e)/hP),e*(a=dP(2,-r))<1&&(r--,a*=2),(e+=r+l>=1?u/a:u*dP(2,1-l))*a>=2&&(r++,a/=2),r+l>=c?(o=0,r=c):r+l>=1?(o=(e*a-1)*dP(2,t),r+=l):(o=e*dP(2,l-1)*dP(2,t),r=0));t>=8;)i[p++]=255&o,o/=256,t-=8;for(r=r<<t|o,s+=t;s>0;)i[p++]=255&r,r/=256,s-=8;return i[--p]|=128*d,i},unpack:function(e,t){var n,r=e.length,o=8*r-t-1,a=(1<<o)-1,i=a>>1,s=o-7,c=r-1,l=e[c--],u=127&l;for(l>>=7;s>0;)u=256*u+e[c--],s-=8;for(n=u&(1<<-s)-1,u>>=-s,s+=t;s>0;)n=256*n+e[c--],s-=8;if(0===u)u=1-i;else{if(u===a)return n?NaN:l?-1/0:1/0;n+=dP(2,t),u-=i}return(l?-1:1)*n*dP(2,u-t)}},vP=pt,gP=Lr,_P=Pr,yP=function(e){for(var t=vP(this),n=_P(t),r=arguments.length,o=gP(r>1?arguments[1]:void 0,n),a=r>2?arguments[2]:void 0,i=void 0===a?n:gP(a,n);i>o;)t[o++]=e;return t},bP=E,OP=te,MP=L,kP=oP,CP=Dn,wP=Cn,IP=Gc,SP=D,TP=mc,EP=Tr,jP=xr,DP=cP,LP=mP,AP=ka,NP=Ja,xP=Cr.f,RP=on.f,PP=yP,UP=Zi,VP=Ra,BP=CP.PROPER,FP=CP.CONFIGURABLE,GP=ir.get,zP=ir.set,HP="ArrayBuffer",YP="DataView",qP="Wrong index",WP=bP.ArrayBuffer,KP=WP,$P=KP&&KP.prototype,JP=bP.DataView,QP=JP&&JP.prototype,XP=Object.prototype,ZP=bP.Array,eU=bP.RangeError,tU=OP(PP),nU=OP([].reverse),rU=LP.pack,oU=LP.unpack,aU=function(e){return[255&e]},iU=function(e){return[255&e,e>>8&255]},sU=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},cU=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},lU=function(e){return rU(e,23,4)},uU=function(e){return rU(e,52,8)},dU=function(e,t){RP(e.prototype,t,{get:function(){return GP(this)[t]}})},pU=function(e,t,n,r){var o=DP(n),a=GP(e);if(o+t>a.byteLength)throw eU(qP);var i=GP(a.buffer).bytes,s=o+a.byteOffset,c=UP(i,s,s+t);return r?c:nU(c)},fU=function(e,t,n,r,o,a){var i=DP(n),s=GP(e);if(i+t>s.byteLength)throw eU(qP);for(var c=GP(s.buffer).bytes,l=i+s.byteOffset,u=r(+o),d=0;d<t;d++)c[l+d]=u[a?d:t-d-1]};if(kP){var hU=BP&&WP.name!==HP;if(SP((function(){WP(1)}))&&SP((function(){new WP(-1)}))&&!SP((function(){return new WP,new WP(1.5),new WP(NaN),1!=WP.length||hU&&!FP})))hU&&FP&&wP(WP,"name",HP);else{(KP=function(e){return TP(this,$P),new WP(DP(e))}).prototype=$P;for(var mU,vU=xP(WP),gU=0;vU.length>gU;)(mU=vU[gU++])in KP||wP(KP,mU,WP[mU]);$P.constructor=KP}NP&&AP(QP)!==XP&&NP(QP,XP);var _U=new JP(new KP(2)),yU=OP(QP.setInt8);_U.setInt8(0,2147483648),_U.setInt8(1,2147483649),!_U.getInt8(0)&&_U.getInt8(1)||IP(QP,{setInt8:function(e,t){yU(this,e,t<<24>>24)},setUint8:function(e,t){yU(this,e,t<<24>>24)}},{unsafe:!0})}else $P=(KP=function(e){TP(this,$P);var t=DP(e);zP(this,{bytes:tU(ZP(t),0),byteLength:t}),MP||(this.byteLength=t)}).prototype,JP=function(e,t,n){TP(this,QP),TP(e,$P);var r=GP(e).byteLength,o=EP(t);if(o<0||o>r)throw eU("Wrong offset");if(o+(n=void 0===n?r-o:jP(n))>r)throw eU("Wrong length");zP(this,{buffer:e,byteLength:n,byteOffset:o}),MP||(this.buffer=e,this.byteLength=n,this.byteOffset=o)},QP=JP.prototype,MP&&(dU(KP,"byteLength"),dU(JP,"buffer"),dU(JP,"byteLength"),dU(JP,"byteOffset")),IP(QP,{getInt8:function(e){return pU(this,1,e)[0]<<24>>24},getUint8:function(e){return pU(this,1,e)[0]},getInt16:function(e){var t=pU(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=pU(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return cU(pU(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return cU(pU(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return oU(pU(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return oU(pU(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){fU(this,1,e,aU,t)},setUint8:function(e,t){fU(this,1,e,aU,t)},setInt16:function(e,t){fU(this,2,e,iU,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){fU(this,2,e,iU,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){fU(this,4,e,sU,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){fU(this,4,e,sU,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){fU(this,4,e,lU,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){fU(this,8,e,uU,t,arguments.length>2?arguments[2]:void 0)}});VP(KP,HP),VP(JP,YP);var bU={ArrayBuffer:KP,DataView:JP},OU=Io,MU=te,kU=D,CU=un,wU=Lr,IU=xr,SU=w_,TU=bU.ArrayBuffer,EU=bU.DataView,jU=EU.prototype,DU=MU(TU.prototype.slice),LU=MU(jU.getUint8),AU=MU(jU.setUint8);OU({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:kU((function(){return!new TU(2).slice(1,void 0).byteLength}))},{slice:function(e,t){if(DU&&void 0===t)return DU(CU(this),e);for(var n=CU(this).byteLength,r=wU(e,n),o=wU(void 0===t?n:t,n),a=new(SU(this,TU))(IU(o-r)),i=new EU(this),s=new EU(a),c=0;r<o;)AU(s,c++,LU(i,r++));return a}}),Io({global:!0,constructor:!0,forced:!oP},{DataView:bU.DataView});var NU=Io,xU=uu,RU=te([].reverse),PU=[1,2];NU({target:"Array",proto:!0,forced:String(PU)===String(PU.reverse())},{reverse:function(){return xU(this)&&(this.length=this.length),RU(this)}});var UU=Ke,VU=pt,BU=ie,FU=Pr,GU=TypeError,zU=function(e){return function(t,n,r,o){UU(n);var a=VU(t),i=BU(a),s=FU(a),c=e?s-1:0,l=e?-1:1;if(r<2)for(;;){if(c in i){o=i[c],c+=l;break}if(c+=l,e?c<0:s<=c)throw GU("Reduce of empty array with no initial value")}for(;e?c>=0:s>c;c+=l)c in i&&(o=n(o,i[c],c,a));return o}},HU={left:zU(!1),right:zU(!0)},YU=HU.left,qU=Ae,WU=v_;Io({target:"Array",proto:!0,forced:!md("reduce")||!WU&&qU>79&&qU<83},{reduce:function(e){var t=arguments.length;return YU(this,e,t,t>1?arguments[1]:void 0)}});var KU=Wc,$U="ArrayBuffer",JU=bU.ArrayBuffer;Io({global:!0,constructor:!0,forced:E.ArrayBuffer!==JU},{ArrayBuffer:JU}),KU($U);var QU=Io,XU=uu,ZU=Cu,eV=be,tV=Lr,nV=Pr,rV=fe,oV=Wi,aV=Dt,iV=$l,sV=zu("slice"),cV=aV("species"),lV=Array,uV=Math.max;QU({target:"Array",proto:!0,forced:!sV},{slice:function(e,t){var n,r,o,a=rV(this),i=nV(a),s=tV(e,i),c=tV(void 0===t?i:t,i);if(XU(a)&&(n=a.constructor,(ZU(n)&&(n===lV||XU(n.prototype))||eV(n)&&null===(n=n[cV]))&&(n=void 0),n===lV||void 0===n))return iV(a,s,c);for(r=new(void 0===n?lV:n)(uV(c-s,0)),o=0;s<c;s++,o++)s in a&&oV(r,o,a[s]);return r.length=o,r}});var dV=E,pV=D,fV=te,hV=dl,mV=tg.trim,vV=Wv,gV=dV.parseInt,_V=dV.Symbol,yV=_V&&_V.iterator,bV=/^[+-]?0x/i,OV=fV(bV.exec),MV=8!==gV(vV+"08")||22!==gV(vV+"0x16")||yV&&!pV((function(){gV(Object(yV))}))?function(e,t){var n=mV(hV(e));return gV(n,t>>>0||(OV(bV,n)?16:10))}:gV;Io({global:!0,forced:parseInt!=MV},{parseInt:MV});var kV,CV,wV,IV={exports:{}},SV=oP,TV=L,EV=E,jV=ge,DV=be,LV=mt,AV=Vi,NV=He,xV=Cn,RV=kr,PV=on.f,UV=we,VV=ka,BV=Ja,FV=Dt,GV=bt,zV=ir.enforce,HV=ir.get,YV=EV.Int8Array,qV=YV&&YV.prototype,WV=EV.Uint8ClampedArray,KV=WV&&WV.prototype,$V=YV&&VV(YV),JV=qV&&VV(qV),QV=Object.prototype,XV=EV.TypeError,ZV=FV("toStringTag"),eB=GV("TYPED_ARRAY_TAG"),tB="TypedArrayConstructor",nB=SV&&!!BV&&"Opera"!==AV(EV.opera),rB=!1,oB={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},aB={BigInt64Array:8,BigUint64Array:8},iB=function(e){var t=VV(e);if(DV(t)){var n=HV(t);return n&&LV(n,tB)?n.TypedArrayConstructor:iB(t)}},sB=function(e){if(!DV(e))return!1;var t=AV(e);return LV(oB,t)||LV(aB,t)};for(kV in oB)(wV=(CV=EV[kV])&&CV.prototype)?zV(wV).TypedArrayConstructor=CV:nB=!1;for(kV in aB)(wV=(CV=EV[kV])&&CV.prototype)&&(zV(wV).TypedArrayConstructor=CV);if((!nB||!jV($V)||$V===Function.prototype)&&($V=function(){throw XV("Incorrect invocation")},nB))for(kV in oB)EV[kV]&&BV(EV[kV],$V);if((!nB||!JV||JV===QV)&&(JV=$V.prototype,nB))for(kV in oB)EV[kV]&&BV(EV[kV].prototype,JV);if(nB&&VV(KV)!==JV&&BV(KV,JV),TV&&!LV(JV,ZV))for(kV in rB=!0,PV(JV,ZV,{get:function(){return DV(this)?this[eB]:void 0}}),oB)EV[kV]&&xV(EV[kV],eB,kV);var cB={NATIVE_ARRAY_BUFFER_VIEWS:nB,TYPED_ARRAY_TAG:rB&&eB,aTypedArray:function(e){if(sB(e))return e;throw XV("Target is not a typed array")},aTypedArrayConstructor:function(e){if(jV(e)&&(!BV||UV($V,e)))return e;throw XV(NV(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n,r){if(TV){if(n)for(var o in oB){var a=EV[o];if(a&&LV(a.prototype,e))try{delete a.prototype[e]}catch(qq){try{a.prototype[e]=t}catch(s){}}}JV[e]&&!n||RV(JV,e,n?t:nB&&qV[e]||t,r)}},exportTypedArrayStaticMethod:function(e,t,n){var r,o;if(TV){if(BV){if(n)for(r in oB)if((o=EV[r])&&LV(o,e))try{delete o[e]}catch(qq){}if($V[e]&&!n)return;try{return RV($V,e,n?t:nB&&$V[e]||t)}catch(qq){}}for(r in oB)!(o=EV[r])||o[e]&&!n||RV(o,e,t)}},getTypedArrayConstructor:iB,isView:function(e){if(!DV(e))return!1;var t=AV(e);return"DataView"===t||LV(oB,t)||LV(aB,t)},isTypedArray:sB,TypedArray:$V,TypedArrayPrototype:JV},lB=E,uB=D,dB=bc,pB=cB.NATIVE_ARRAY_BUFFER_VIEWS,fB=lB.ArrayBuffer,hB=lB.Int8Array,mB=!pB||!uB((function(){hB(1)}))||!uB((function(){new hB(-1)}))||!dB((function(e){new hB,new hB(null),new hB(1.5),new hB(e)}),!0)||uB((function(){return 1!==new hB(new fB(2),1,void 0).length})),vB=Tr,gB=RangeError,_B=function(e){var t=vB(e);if(t<0)throw gB("The argument can't be less than 0");return t},yB=RangeError,bB=function(e,t){var n=_B(e);if(n%t)throw yB("Wrong offset");return n},OB=Vi,MB=te("".slice),kB=Vt,CB=TypeError,wB=function(e){var t=kB(e,"number");if("number"==typeof t)throw CB("Can't convert number to bigint");return BigInt(t)},IB=Ds,SB=R,TB=b_,EB=pt,jB=Pr,DB=Ks,LB=Fs,AB=xs,NB=function(e){return"Big"===MB(OB(e),0,3)},xB=cB.aTypedArrayConstructor,RB=wB,PB=Io,UB=E,VB=R,BB=L,FB=mB,GB=cB,zB=bU,HB=mc,YB=z,qB=Cn,WB=VE,KB=xr,$B=cP,JB=bB,QB=Gt,XB=mt,ZB=Vi,eF=be,tF=Ge,nF=oa,rF=we,oF=Ja,aF=Cr.f,iF=function(e){var t,n,r,o,a,i,s,c,l=TB(this),u=EB(e),d=arguments.length,p=d>1?arguments[1]:void 0,f=void 0!==p,h=LB(u);if(h&&!AB(h))for(c=(s=DB(u,h)).next,u=[];!(i=SB(c,s)).done;)u.push(i.value);for(f&&d>2&&(p=IB(p,arguments[2])),n=jB(u),r=new(xB(l))(n),o=NB(r),t=0;n>t;t++)a=f?p(u[t],t):u[t],r[t]=o?RB(a):+a;return r},sF=Vu.forEach,cF=Wc,lF=on,uF=j,dF=Cc,pF=ir.get,fF=ir.set,hF=ir.enforce,mF=lF.f,vF=uF.f,gF=Math.round,_F=UB.RangeError,yF=zB.ArrayBuffer,bF=yF.prototype,OF=zB.DataView,MF=GB.NATIVE_ARRAY_BUFFER_VIEWS,kF=GB.TYPED_ARRAY_TAG,CF=GB.TypedArray,wF=GB.TypedArrayPrototype,IF=GB.aTypedArrayConstructor,SF=GB.isTypedArray,TF="BYTES_PER_ELEMENT",EF="Wrong length",jF=function(e,t){IF(e);for(var n=0,r=t.length,o=new e(r);r>n;)o[n]=t[n++];return o},DF=function(e,t){mF(e,t,{get:function(){return pF(this)[t]}})},LF=function(e){var t;return rF(bF,e)||"ArrayBuffer"==(t=ZB(e))||"SharedArrayBuffer"==t},AF=function(e,t){return SF(e)&&!tF(t)&&t in e&&WB(+t)&&t>=0},NF=function(e,t){return t=QB(t),AF(e,t)?YB(2,e[t]):vF(e,t)},xF=function(e,t,n){return t=QB(t),!(AF(e,t)&&eF(n)&&XB(n,"value"))||XB(n,"get")||XB(n,"set")||n.configurable||XB(n,"writable")&&!n.writable||XB(n,"enumerable")&&!n.enumerable?mF(e,t,n):(e[t]=n.value,e)};BB?(MF||(uF.f=NF,lF.f=xF,DF(wF,"buffer"),DF(wF,"byteOffset"),DF(wF,"byteLength"),DF(wF,"length")),PB({target:"Object",stat:!0,forced:!MF},{getOwnPropertyDescriptor:NF,defineProperty:xF}),IV.exports=function(e,t,n){var r=e.match(/\d+$/)[0]/8,o=e+(n?"Clamped":"")+"Array",a="get"+e,i="set"+e,s=UB[o],c=s,l=c&&c.prototype,u={},d=function(e,t){mF(e,t,{get:function(){return function(e,t){var n=pF(e);return n.view[a](t*r+n.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,o){var a=pF(e);n&&(o=(o=gF(o))<0?0:o>255?255:255&o),a.view[i](t*r+a.byteOffset,o,!0)}(this,t,e)},enumerable:!0})};MF?FB&&(c=t((function(e,t,n,o){return HB(e,l),dF(eF(t)?LF(t)?void 0!==o?new s(t,JB(n,r),o):void 0!==n?new s(t,JB(n,r)):new s(t):SF(t)?jF(c,t):VB(iF,c,t):new s($B(t)),e,c)})),oF&&oF(c,CF),sF(aF(s),(function(e){e in c||qB(c,e,s[e])})),c.prototype=l):(c=t((function(e,t,n,o){HB(e,l);var a,i,s,u=0,p=0;if(eF(t)){if(!LF(t))return SF(t)?jF(c,t):VB(iF,c,t);a=t,p=JB(n,r);var f=t.byteLength;if(void 0===o){if(f%r)throw _F(EF);if((i=f-p)<0)throw _F(EF)}else if((i=KB(o)*r)+p>f)throw _F(EF);s=i/r}else s=$B(t),a=new yF(i=s*r);for(fF(e,{buffer:a,byteOffset:p,byteLength:i,length:s,view:new OF(a)});u<s;)d(e,u++)})),oF&&oF(c,CF),l=c.prototype=nF(wF)),l.constructor!==c&&qB(l,"constructor",c),hF(l).TypedArrayConstructor=c,kF&&qB(l,kF,o);var p=c!=s;u[o]=c,PB({global:!0,constructor:!0,forced:p,sham:!MF},u),TF in c||qB(c,TF,r),TF in l||qB(l,TF,r),cF(o)}):IV.exports=function(){},(0,IV.exports)("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}));var RF=pt,PF=Lr,UF=Pr,VF=ed,BF=Math.min,FF=[].copyWithin||function(e,t){var n=RF(this),r=UF(n),o=PF(e,r),a=PF(t,r),i=arguments.length>2?arguments[2]:void 0,s=BF((void 0===i?r:PF(i,r))-a,r-o),c=1;for(a<o&&o<a+s&&(c=-1,a+=s-1,o+=s-1);s-- >0;)a in n?n[o]=n[a]:VF(n,o),o+=c,a+=c;return n},GF=cB,zF=te(FF),HF=GF.aTypedArray;(0,GF.exportTypedArrayMethod)("copyWithin",(function(e,t){return zF(HF(this),e,t,arguments.length>2?arguments[2]:void 0)}));var YF=Vu.every,qF=cB.aTypedArray;(0,cB.exportTypedArrayMethod)("every",(function(e){return YF(qF(this),e,arguments.length>1?arguments[1]:void 0)}));var WF=yP,KF=wB,$F=Vi,JF=R,QF=D,XF=cB.aTypedArray,ZF=cB.exportTypedArrayMethod,eG=te("".slice);ZF("fill",(function(e){var t=arguments.length;XF(this);var n="Big"===eG($F(this),0,3)?KF(e):+e;return JF(WF,this,n,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),QF((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e})));var tG=Pr,nG=w_,rG=cB.aTypedArrayConstructor,oG=cB.getTypedArrayConstructor,aG=function(e){return rG(nG(e,oG(e)))},iG=function(e,t){for(var n=0,r=tG(t),o=new e(r);r>n;)o[n]=t[n++];return o},sG=aG,cG=Vu.filter,lG=function(e,t){return iG(sG(e),t)},uG=cB.aTypedArray;(0,cB.exportTypedArrayMethod)("filter",(function(e){var t=cG(uG(this),e,arguments.length>1?arguments[1]:void 0);return lG(this,t)}));var dG=Vu.find,pG=cB.aTypedArray;(0,cB.exportTypedArrayMethod)("find",(function(e){return dG(pG(this),e,arguments.length>1?arguments[1]:void 0)}));var fG=Vu.findIndex,hG=cB.aTypedArray;(0,cB.exportTypedArrayMethod)("findIndex",(function(e){return fG(hG(this),e,arguments.length>1?arguments[1]:void 0)}));var mG=Vu.forEach,vG=cB.aTypedArray;(0,cB.exportTypedArrayMethod)("forEach",(function(e){mG(vG(this),e,arguments.length>1?arguments[1]:void 0)}));var gG=Gr.includes,_G=cB.aTypedArray;(0,cB.exportTypedArrayMethod)("includes",(function(e){return gG(_G(this),e,arguments.length>1?arguments[1]:void 0)}));var yG=Gr.indexOf,bG=cB.aTypedArray;(0,cB.exportTypedArrayMethod)("indexOf",(function(e){return yG(bG(this),e,arguments.length>1?arguments[1]:void 0)}));var OG=E,MG=D,kG=te,CG=cB,wG=Ei,IG=Dt("iterator"),SG=OG.Uint8Array,TG=kG(wG.values),EG=kG(wG.keys),jG=kG(wG.entries),DG=CG.aTypedArray,LG=CG.exportTypedArrayMethod,AG=SG&&SG.prototype,NG=!MG((function(){AG[IG].call([1])})),xG=!!AG&&AG.values&&AG[IG]===AG.values&&"values"===AG.values.name,RG=function(){return TG(DG(this))};LG("entries",(function(){return jG(DG(this))}),NG),LG("keys",(function(){return EG(DG(this))}),NG),LG("values",RG,NG||!xG,{name:"values"}),LG(IG,RG,NG||!xG,{name:"values"});var PG=cB.aTypedArray,UG=cB.exportTypedArrayMethod,VG=te([].join);UG("join",(function(e){return VG(PG(this),e)}));var BG=Kl,FG=fe,GG=Tr,zG=Pr,HG=md,YG=Math.min,qG=[].lastIndexOf,WG=!!qG&&1/[1].lastIndexOf(1,-0)<0,KG=HG("lastIndexOf"),$G=WG||!KG?function(e){if(WG)return BG(qG,this,arguments)||0;var t=FG(this),n=zG(t),r=n-1;for(arguments.length>1&&(r=YG(r,GG(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in t&&t[r]===e)return r||0;return-1}:qG,JG=Kl,QG=$G,XG=cB.aTypedArray;(0,cB.exportTypedArrayMethod)("lastIndexOf",(function(e){var t=arguments.length;return JG(QG,XG(this),t>1?[e,arguments[1]]:[e])}));var ZG=Vu.map,ez=aG,tz=cB.aTypedArray;(0,cB.exportTypedArrayMethod)("map",(function(e){return ZG(tz(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(ez(e))(t)}))}));var nz=HU.left,rz=cB.aTypedArray;(0,cB.exportTypedArrayMethod)("reduce",(function(e){var t=arguments.length;return nz(rz(this),e,t,t>1?arguments[1]:void 0)}));var oz=HU.right,az=cB.aTypedArray;(0,cB.exportTypedArrayMethod)("reduceRight",(function(e){var t=arguments.length;return oz(az(this),e,t,t>1?arguments[1]:void 0)}));var iz=cB.aTypedArray,sz=cB.exportTypedArrayMethod,cz=Math.floor;sz("reverse",(function(){for(var e,t=this,n=iz(t).length,r=cz(n/2),o=0;o<r;)e=t[o],t[o++]=t[--n],t[n]=e;return t}));var lz=E,uz=R,dz=cB,pz=Pr,fz=bB,hz=pt,mz=D,vz=lz.RangeError,gz=lz.Int8Array,_z=gz&&gz.prototype,yz=_z&&_z.set,bz=dz.aTypedArray,Oz=dz.exportTypedArrayMethod,Mz=!mz((function(){var e=new Uint8ClampedArray(2);return uz(yz,e,{length:1,0:3},1),3!==e[1]})),kz=Mz&&dz.NATIVE_ARRAY_BUFFER_VIEWS&&mz((function(){var e=new gz(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));Oz("set",(function(e){bz(this);var t=fz(arguments.length>1?arguments[1]:void 0,1),n=hz(e);if(Mz)return uz(yz,this,n,t);var r=this.length,o=pz(n),a=0;if(o+t>r)throw vz("Wrong length");for(;a<o;)this[t+a]=n[a++]}),!Mz||kz);var Cz=aG,wz=$l,Iz=cB.aTypedArray;(0,cB.exportTypedArrayMethod)("slice",(function(e,t){for(var n=wz(Iz(this),e,t),r=Cz(this),o=0,a=n.length,i=new r(a);a>o;)i[o]=n[o++];return i}),D((function(){new Int8Array(1).slice()})));var Sz=Vu.some,Tz=cB.aTypedArray;(0,cB.exportTypedArrayMethod)("some",(function(e){return Sz(Tz(this),e,arguments.length>1?arguments[1]:void 0)}));var Ez=Ie.match(/firefox\/(\d+)/i),jz=!!Ez&&+Ez[1],Dz=/MSIE|Trident/.test(Ie),Lz=Ie.match(/AppleWebKit\/(\d+)\./),Az=!!Lz&&+Lz[1],Nz=te,xz=D,Rz=Ke,Pz=bh,Uz=jz,Vz=Dz,Bz=Ae,Fz=Az,Gz=cB.aTypedArray,zz=cB.exportTypedArrayMethod,Hz=E.Uint16Array,Yz=Hz&&Nz(Hz.prototype.sort),qz=!(!Yz||xz((function(){Yz(new Hz(2),null)}))&&xz((function(){Yz(new Hz(2),{})}))),Wz=!!Yz&&!xz((function(){if(Bz)return Bz<74;if(Uz)return Uz<67;if(Vz)return!0;if(Fz)return Fz<602;var e,t,n=new Hz(516),r=Array(516);for(e=0;e<516;e++)t=e%4,n[e]=515-e,r[e]=e-2*t+3;for(Yz(n,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(n[e]!==r[e])return!0}));zz("sort",(function(e){return void 0!==e&&Rz(e),Wz?Yz(this,e):Pz(Gz(this),function(e){return function(t,n){return void 0!==e?+e(t,n)||0:n!=n?-1:t!=t?1:0===t&&0===n?1/t>0&&1/n<0?1:-1:t>n}}(e))}),!Wz||qz);var Kz=xr,$z=Lr,Jz=aG,Qz=cB.aTypedArray;(0,cB.exportTypedArrayMethod)("subarray",(function(e,t){var n=Qz(this),r=n.length,o=$z(e,r);return new(Jz(n))(n.buffer,n.byteOffset+o*n.BYTES_PER_ELEMENT,Kz((void 0===t?r:$z(t,r))-o))}));var Xz=Kl,Zz=cB,eH=D,tH=$l,nH=E.Int8Array,rH=Zz.aTypedArray,oH=Zz.exportTypedArrayMethod,aH=[].toLocaleString,iH=!!nH&&eH((function(){aH.call(new nH(1))}));oH("toLocaleString",(function(){return Xz(aH,iH?tH(rH(this)):rH(this),tH(arguments))}),eH((function(){return[1,2].toLocaleString()!=new nH([1,2]).toLocaleString()}))||!eH((function(){nH.prototype.toLocaleString.call([1,2])})));var sH=cB.exportTypedArrayMethod,cH=D,lH=te,uH=E.Uint8Array,dH=uH&&uH.prototype||{},pH=[].toString,fH=lH([].join);cH((function(){pH.call({})}))&&(pH=function(){return fH(this)});var hH=dH.toString!=pH;sH("toString",pH,hH);var mH=function(){function e(t,n,r){s(this,e),this.isUplink_=r,this.connection_=t,this.log_=n,this.seiMessageList_=[],this.smallVideoSeiMessageList_=[],this.seiPayloadType_=243,this.runningAbortMap_=new Map,this.abortMap_=new Map,this.onSEIMessage=null}return l(e,[{key:"isRunning",get:function(){return!!this.runningAbortMap_.size>0}},{key:"start",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.seiMessageList_,r=e.createEncodedStreams(),o=r.readable,a=r.writable,i=new TransformStream({transform:this.isUplink_?function(e,r){return t.encodeVideoFrame(e,r,n)}:function(n,r){var o,a;return t.decodeVideoFrame(n,r,e===(null===(o=t.connection_)||void 0===o||null===(a=o.getPeerConnection())||void 0===a?void 0:a.getReceivers()[iC]))}}),s=new AbortController;o.pipeThrough(i).pipeTo(a,{signal:s.signal}).catch((function(){})),this.runningAbortMap_.set(e,s)}},{key:"restart",value:function(e,t){this.stop(),this.start(e,t)}},{key:"stop",value:function(e){var t;null===(t=this.runningAbortMap_.get(e))||void 0===t||t.abort(),this.runningAbortMap_.delete(e)}},{key:"destroy",value:function(){this.stop(),this.runningAbortMap_.forEach((function(e){return e.abort()})),this.runningAbortMap_.clear(),this.abortMap_.forEach((function(e){return e.abort()})),this.abortMap_.clear(),this.log_=null,this.onSEIMessage=null,this.connection_=null}},{key:"handleEncodedStreams",value:function(){var e=this;try{var t=this.connection_.getPeerConnection();this.clearUnusedSenderOrReceiver(t),this.isUplink_?t.getSenders().forEach((function(t,n){if(!e.runningAbortMap_.has(t)&&!e.abortMap_.has(t))if(n===rC||n===oC){var r=n===oC?e.smallVideoSeiMessageList_:e.seiMessageList_;e.isRunning?e.restart(t,r):e.start(t,r)}else e.pipeSenderOrReceiver(t)})):t.getReceivers().forEach((function(t,n){var r;e.runningAbortMap_.has(t)||e.abortMap_.has(t)||(n!==aC&&n!==iC||(null===(r=t.track)||void 0===r?void 0:r.kind)!==IO?e.pipeSenderOrReceiver(t):e.isRunning?e.restart(t):e.start(t))}))}catch(qq){this.log_.warn(qq)}}},{key:"pipeSenderOrReceiver",value:function(e){var t=e.createEncodedStreams(),n=t.readable,r=t.writable,o=new AbortController;this.abortMap_.set(e,o),n.pipeTo(r,{signal:o.signal}).catch((function(){}))}},{key:"clearUnusedSenderOrReceiver",value:function(e){var t=this;this.abortMap_.forEach((function(n,r){(t.isUplink_?e.getSenders():e.getReceivers()).find((function(e){return e===r}))||(n.abort(),t.abortMap_.delete(r))}))}},{key:"push",value:function(e,t){t&&t.seiPayloadType&&(this.seiPayloadType_=t.seiPayloadType),this.seiMessageList_.push(e),this.smallVideoSeiMessageList_.push(e)}},{key:"hasSEI",value:function(e){var t=new DataView(e);return 1===t.getInt32(0)&&6===t.getInt8(4)}},{key:"isEmptyFrame",value:function(e){return"empty"===e.type||0===e.data.byteLength}},{key:"getNaluCount",value:function(e){for(var t=0,n=0,r=new DataView(e),o=0;o<e.byteLength;o++)switch(r.getUint8(o)){case 0:t++;break;case 1:2!==t&&3!==t||n++,t=0;break;default:t=0}return n}},{key:"encodeVideoFrame",value:function(e,t,n){try{if(this.connection_.isH264&&n.length>0&&!this.isEmptyFrame(e)){var r=9-this.getNaluCount(e.data);if(r<=0)return;for(var o=n.splice(0,r).reverse().map(this.encodeSEINalu.bind(this)),a=o.reduce((function(e,t){return e+t.dataView.byteLength}),0),i=new ArrayBuffer(a+e.data.byteLength),s=new DataView(i),c=new DataView(e.data),l=0,u=0;u<o.length;u++)for(var d=0;d<o[u].dataView.byteLength;d++)s.setInt8(l++,o[u].dataView.getInt8(d));for(var p=0;p<e.data.byteLength;p++)s.setInt8(l++,c.getInt8(p));e.data=i,this.log_.debug("".concat(o.length," sei sent"))}}catch(qq){this.log_.warn(qq)}t.enqueue(e)}},{key:"decodeVideoFrame",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];try{if(this.connection_.isH264&&!this.isEmptyFrame(e)&&this.hasSEI(e.data)){for(var o=[],a=new DataView(e.data),i=0,s=-1,c=-1,l=0;l<e.data.byteLength;l++){var u=a.getUint8(l);if(0===u)i++;else if(1===u){if(2===i||3===i){var d=l-i;-1===s?s=d:-1===c&&(c=d,o.push(new vH(new DataView(a.buffer.slice(s,c)))),s=d,c=-1);var p=6===a.getUint8(l+1);if(!p){e.data=new DataView(a.buffer.slice(d)).buffer;break}}i=0}else i=0}this.log_.debug("".concat(o.length," sei received")),cT(this.onSEIMessage)&&o.reverse().forEach((function(e){n.onSEIMessage({seiPayloadType:e.seiPayloadType,data:e.seiPayload.buffer,isFromAuxiliary:r})}))}}catch(qq){this.log_.warn(qq)}t.enqueue(e)}},{key:"encodeSEINalu",value:function(e){var t=e.byteLength,n=parseInt(t/255),r=t%255,o=[];o.push(0,0,0,1,6,this.seiPayloadType_);for(var a=0;a<n;a++)o.push(255);o.push(r);var i=new DataView(e);return o.push.apply(o,M(new Uint8Array(i.buffer))),o.push(128),new vH(new DataView(new Uint8Array(o).buffer),!0)}}]),e}(),vH=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];s(this,e),this.dataView=t,this.isSEI&&(n?this.addPreventionByte():this.removePreventionByte())}return l(e,[{key:"addPreventionByte",value:function(){for(var e=this.seiPayloadStartIndex,t=this.dataView.byteLength-2,n=[],r=0,o=e;o<=t;o++){var a=this.dataView.getInt8(o);switch(a){case 0:case 1:case 2:case 3:2===r&&(n.push(3),r=0),0==a?r++:r=0,n.push(a);break;default:r=0,n.push(a)}}n.push(this.dataView.getInt8(this.dataView.byteLength-1));var i=new DataView(new Uint8Array([].concat(M(new Uint8Array(this.dataView.buffer).slice(0,e)),n)).buffer);this.dataView=i}},{key:"removePreventionByte",value:function(){for(var e=this.seiPayloadStartIndex,t=this.dataView.byteLength-1,n=[],r=0,o=e;o<=t;o++)switch(this.dataView.getInt8(o)){case 0:r++,n.push(this.dataView.getInt8(o));break;case 3:2!==r&&n.push(this.dataView.getInt8(o)),r=0;break;default:n.push(this.dataView.getInt8(o)),r=0}var a=new DataView(new Uint8Array([].concat(M(new Uint8Array(this.dataView.buffer).slice(0,e)),n)).buffer);this.dataView=a}},{key:"isSEI",get:function(){return 6===this.dataView.getUint8(4)}},{key:"seiPayloadStartIndex",get:function(){for(var e=6,t=6;t<this.dataView.buffer.byteLength&&(e++,255===this.dataView.getUint8(t));t++);return e}},{key:"seiPayloadType",get:function(){return this.isSEI?this.dataView.getUint8(5):null}},{key:"seiPayload",get:function(){if(!this.isSEI)return null;for(var e=0,t=6,n=6;n<this.dataView.buffer.byteLength;n++){var r=this.dataView.getUint8(n);if(t++,255!==r){e+=r;break}e+=255}for(var o=new ArrayBuffer(e),a=new DataView(o),i=0;i<o.byteLength;i++,t++)a.setInt8(i,this.dataView.getInt8(t));return a}}]),e}(),gH=function(){function e(t){s(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_=xE.createLogger({id:"n|"+this.userId_,userId:this.client_.getUserId(),sdkAppId:this.client_.getSDKAppId(),isLocal:this.isUplink_}),this.signalChannel_=t.signalChannel,this.peerConnection_=null,this.isErrorObserved_=!1,this.emitter_=new AT,this.currentState_=LM,this.waitForPeerConnectionConnectedPromise_=null,this.isReconnecting_=!1,this.reconnectionCount_=0,this.reconnectionTimer_=-1,this.isFirstConnection_=!0,this.delay_={audioDelay:0,videoDelay:0},this.enableSEI_=t.enableSEI,this.enableSEI_&&kA&&(this.sei_=new mH(this,this.log_,this.isUplink_))}var t;return l(e,[{key:"initialize",value:function(){var e={encodedInsertableStreams:this.enableSEI_&&kA,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(),this.sei_&&(this.sei_.destroy(),this.sei_=null)}},{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(LM))}},{key:"getDTLSTransportState",value:function(){if(!this.peerConnection_)return DM;var e=null;if(this.isUplink_){if(!vA()||0===this.peerConnection_.getSenders().length)return DM;e=this.peerConnection_.getSenders()[0].transport}else{if(!mA()||0===this.peerConnection_.getReceivers().length)return DM;e=this.peerConnection_.getReceivers()[0].transport}return e?e.state:DM}},{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===PM&&this.emitConnectionStateChangedEvent(AM),e.target.connectionState===UM||e.target.connectionState===VM){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 _D({message:r,code:gD.ICE_TRANSPORT_ERROR});sL.logFailedEvent({userId:this.client_.getUserId(),eventType:ik,error:o}),this.emitConnectionStateChangedEvent(LM),this.isErrorObserved_||this.emitter_.emit(NA.ERROR,o)}e.target.connectionState!==FM&&e.target.connectionState!==GM||(this.logSelectedCandidate(),sL.logSuccessEvent({userId:this.client_.getUserId(),eventType:ik}),this.emitConnectionStateChangedEvent(xM))}},{key:"emitConnectionStateChangedEvent",value:function(e){e!==this.currentState_&&(this.currentState_===NM&&e===AM||(NT.emit(CE,{client:this.client_,connection:this,prevState:this.currentState_,state:e}),this.emitter_.emit(NA.CONNECTION_STATE_CHANGED,{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:Ym(),userId:n,tinyId:this.client_.getTinyId()};this.isUplink_||(r.remoteUserId=this.userId_,r.remoteTinyId=this.tinyId_),nL(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(r().mark((function e(){var t,n,o,a,i,s,c;return r().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=w(t),e.prev=6,n.s();case 8:if((o=n.n()).done){e.next=18;break}if((a=O(o.value,2))[0],!CA(i=a[1])){e.next=16;break}return s=t.get(i.localCandidateId),c=t.get(i.remoteCandidateId),s&&this.log_.info("local candidate: ".concat(s.candidateType," ").concat(s.protocol,":").concat(s.ip||s.address,":").concat(s.port," ").concat(s.networkType||""," ").concat("relay"===s.candidateType?"relayProtocol:"+s.relayProtocol:"")),c&&this.log_.info("remote candidate: ".concat(c.candidateType," ").concat(c.protocol,":").concat(c.ip||c.address,":").concat(c.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_===xM)return t();var r=-1,o=function(e){e.state===xM&&(clearTimeout(r),i(),t())},a=function(t){t.client===e.client_&&(clearTimeout(r),i(),n(new _D({code:gD.API_CALL_ABORTED,message:eT({key:II,data:"leave room"})})))},i=function(){NT.off(GT,a,e),e.emitter_.off(NA.CONNECTION_STATE_CHANGED,o,e)};r=setTimeout((function(){i();var e=new _D({code:gD.API_CALL_TIMEOUT,message:"connection timeout"});n(e)}),1e4),NT.on(GT,a,e),e.emitter_.on(NA.CONNECTION_STATE_CHANGED,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(NM),this.reconnect(),this.addEventInternal(this.isUplink_?WD:JD,"".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(Gj,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_}},{key:"isH264",get:function(){var e,t;return!(null===(e=this.peerConnection_)||void 0===e||null===(t=e.remoteDescription)||void 0===t||!t.sdp.includes("H264"))}}]),e}(),_H=function(){function e(){s(this,e),this.set_=new Set,NT.on(xT,this.add,this),NT.on(UT,this.add,this),NT.on(VT,this.delete,this),NT.on(GT,this.delete,this)}return l(e,[{key:"add",value:function(e){var t=e.client,n=e.roomId;if("rtc"!==t.getMode()){var r=this.getKey(t.getUserId(),n||t.getRoomId(),t.getSDKAppId(),t.getUseStringRoomId());this.set_.add(r)}}},{key:"delete",value:function(e){var t=e.client;if("rtc"!==t.getMode()){var n=this.getKey(t.getUserId(),t.getRoomId(),t.getSDKAppId(),t.getUseStringRoomId());this.set_.delete(n)}}},{key:"getKey",value:function(e,t,n,r){return"".concat(n,"_").concat(t,"_").concat(e,"_").concat(r)}},{key:"isJoined",value:function(e){var t=e.userId,n=e.roomId,r=e.sdkAppId,o=e.client;return"rtc"!==o.getMode()&&this.set_.has(this.getKey(t,n,r,o.getUseStringRoomId()))}}]),e}(),yH=new _H;function bH(e,t,n,r){if(this.useStringRoomId_){if(!uT(e)||!/^[A-Za-z\d\s!#$%&()+\-:;<=.>?@[\]^_{}|~,]{1,64}$/.test(e))throw new _D({code:gD.INVALID_PARAMETER,message:eT({key:YC,data:t,link:{className:r,fnName:n}})})}else if(!(dT(e)&&/^[1-9]\d*$/.test(String(e))&&e<4294967295))throw new _D({code:gD.INVALID_PARAMETER,message:eT({key:qC,data:t,link:{className:r,fnName:n}})})}function OH(e,t,n,r){if(!/^[A-Za-z\d_-]*$/.test(e))throw new _D({code:gD.INVALID_PARAMETER,message:eT({key:dw,data:t,link:{className:r,fnName:n}})})}var MH={createClient:{name:"clientConfig",required:!0,type:Sk,properties:{sdkAppId:{required:!0,type:Ck,allowEmpty:!1},userId:{required:!0,type:kk,allowEmpty:!1},userSig:{required:!0,type:kk,allowEmpty:!1},mode:{required:!0,type:kk,values:["rtc",OM]},useStringRoomId:{type:wk},autoSubscribe:{type:wk},enableAutoPlayDialog:{type:wk},streamId:{type:kk},userDefineRecordId:{type:kk},pureAudioPushMode:{type:Ck,values:[1,2]},enableSEI:{type:wk}}},createStream:{name:"streamConfig",required:!0,type:Sk,properties:{userId:{type:kk},audio:{type:wk},video:{type:wk},screen:{type:wk},screenAudio:{type:wk},microphoneId:{type:kk},cameraId:{type:kk},facingMode:{type:[kk,Sk]},audioSource:{instanceOf:window.MediaStreamTrack},videoSource:{instanceOf:window.MediaStreamTrack}},validate:function(e){if(!lT(e.screen)&&e.screen&&lT(e.audio)&&(e.audio=!1),!(lT(e.audio)&&lT(e.video)||lT(e.audioSource)&&lT(e.videoSource)))throw new _D({code:gD.INVALID_PARAMETER,message:eT({key:Zw})});if(!lT(e.screen)&&!0===e.screen&&!0===e.video)throw new _D({code:gD.INVALID_PARAMETER,message:eT({key:eI})});if(e.audio&&e.screenAudio)throw new _D({code:gD.INVALID_PARAMETER,message:eT({key:tI})});if(!0!==e.screen&&!0===e.screenAudio)throw new _D({code:gD.INVALID_PARAMETER,message:eT({key:nI})});if(!lT(e.screen)&&!0===e.screen&&!this.isScreenShareSupported())throw new _D({code:gD.INVALID_OPERATION,message:eT({key:uI})})}}},kH={join:{name:"options",required:!0,type:Sk,properties:{roomId:{required:!0,type:[Ck,kk],allowEmpty:!1,validate:bH},role:{type:[kk],values:[CM,wM]},privateMapKey:{type:[kk]}},validate:function(e){if(this.isJoined_)throw new _D({code:gD.INVALID_OPERATION,message:eT({key:HC})});if(this.checkDestroy(),yH.isJoined({userId:this.userId_,roomId:e.roomId,sdkAppId:this.sdkAppId_,client:this}))throw new _D({code:gD.INVALID_OPERATION,message:eT({key:Uw,data:this.userId_})})}},publish:[{name:"stream",required:!0,instanceOf:Hk,validate:function(e){if(!this.isJoined_)throw new _D({code:gD.INVALID_OPERATION,message:eT({key:QC})});if(this.mode_===OM&&this.role_===wM)throw new _D({code:gD.INVALID_OPERATION,message:eT({key:ZC})});if(!e.getIsReadyToPublish())throw new _D({code:gD.INVALID_OPERATION,message:eT({key:ew})});if(this.notPublishWithoutH264Supported_)throw new _D({code:gD.NOT_SUPPORTED_H264,message:eT({key:iI})})}},{name:"options",type:Sk,defaultValue:{isAuxiliary:!1},properties:{isAuxiliary:{type:wk,defaultValue:!1,validate:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e&&!_A())throw new _D({code:gD.NOT_SUPPORTED,message:eT({key:dI})});if(this.uplinkConnection_&&(e&&this.uplinkConnection_.isAuxStreamPublished||!e&&this.uplinkConnection_.isMainStreamPublished))throw new _D({code:gD.INVALID_OPERATION,message:eT({key:tw,data:e?jO:"local"})});var t=this.localScreenStream_||M(this.connections_.values()).findIndex((function(e){return e.getTrackState().auxiliary}))>=0;if(!this.enableMultiAuxStream_&&e&&t)throw new _D({code:gD.INVALID_OPERATION,message:eT({key:TI})})}}}}],unpublish:{name:"stream",required:!0,instanceOf:Hk,validate:function(e){if(e!==this.localStream_&&e!==this.localAuxStream_){if(this.localStream_||this.localAuxStream_)throw new _D({code:gD.INVALID_PARAMETER,message:eT({key:XC})});this.log_.warn("Client currently has no published stream, please call publish() first.")}}},subscribe:[{name:"stream",required:!0,instanceOf:Yk,validate:function(e){if(!e.getConnection())throw new _D({code:gD.INVALID_OPERATION,message:eT({key:nw})});if(this.notSubscribeWithoutH264Supported_)throw new _D({code:gD.NOT_SUPPORTED_H264,message:eT({key:sI})})}},{name:"options",type:Sk,properties:{audio:{type:wk},video:{type:wk},smallVideo:{type:wk}},validate:function(e){var t=e.audio,n=e.video,r=e.smallVideo;if(!1===t&&!1===n&&(lT(r)||!1===r))throw new _D({code:gD.INVALID_OPERATION,message:eT({key:_I})})}}],unsubscribe:{name:"stream",required:!0,instanceOf:Yk,validate:function(e){if(!e.getConnection())throw new _D({code:gD.INVALID_OPERATION,message:eT({key:nw})})}},switchRole:{name:"role",required:!0,values:[CM,wM],validate:function(){if(this.mode_!==OM)throw new _D({code:gD.INVALID_PARAMETER,message:eT({key:ow})});if(!this.isJoined_)throw new _D({code:gD.INVALID_OPERATION,message:eT({key:aw})})}},startPublishCDNStream:{name:"options",required:!1,properties:{streamId:{type:kk,validate:OH},streamType:{type:kk,values:["main","auxiliary"]},appId:{type:Ck,allowEmpty:!1},bizId:{type:Ck,allowEmpty:!1},url:{type:kk,allowEmpty:!1}},validate:function(){if(this.isDestroyed_)throw new _D({code:gD.INVALID_OPERATION,message:eT({key:Vw,data:{funName:"startPublishCDNStream"}})})}},startMixTranscode:{name:"config",required:!0,type:Sk,properties:{mode:{type:kk,values:["preset-layout","manual"]},streamId:{type:kk,validate:OH},videoWidth:{type:Ck,notLessThanZero:!0},videoHeight:{type:Ck,notLessThanZero:!0},videoBitrate:{type:Ck,notLessThanZero:!0,allowEmpty:!1},videoFramerate:{type:Ck,validate:function(e,t,n,r){if(e<=0||e>30)throw new _D({code:gD.INVALID_PARAMETER,message:eT({key:Hw,link:{className:r,fnName:n}})})}},videoGOP:{type:Ck,validate:function(e,t,n,r){if(e<1||e>8)throw new _D({code:gD.INVALID_PARAMETER,message:eT({key:Yw,link:{className:r,fnName:n}})})}},audioSampleRate:{type:Ck,notLessThanZero:!0},audioBitrate:{type:Ck,validate:function(e,t,n,r){if(e<32||e>192)throw new _D({code:gD.INVALID_PARAMETER,message:eT({key:qw,link:{className:r,fnName:n}})})}},audioChannels:{type:Ck,values:[1,2]},backgroundColor:{type:Ck},backgroundImage:{type:kk},mixUsers:{required:!0,type:Ik,arrayItem:{require:!0,type:Sk,properties:{userId:{required:!0,type:kk},roomId:{type:[kk,Ck],validate:bH},pureAudio:{type:wk},width:{type:Ck,notLessThanZero:!0},height:{type:Ck,notLessThanZero:!0},locationX:{type:Ck,notLessThanZero:!0},locationY:{type:Ck,notLessThanZero:!0},zOrder:{type:Ck},streamType:{type:kk,values:["main","auxiliary"]},renderMode:{type:Ck,values:[0,1,2,4]}}}}},validate:function(e,t,n,r,o){var a=0,i=0,s=e.mixUsers,c=[];if(s.forEach((function(e,t){if(c.push(e.userId),!e.pureAudio){if(!e.zOrder||e.zOrder<1||e.zOrder>15)throw new _D({code:gD.INVALID_PARAMETER,message:eT({key:Ww,data:"config.mixUsers[".concat(t,"].zOrder"),link:{className:r,fnName:n}})});e.width+e.locationX>a&&(a=e.width+e.locationX),e.height+e.locationY>i&&(i=e.height+e.locationY)}})),c.indexOf(this.getUserId())<0)throw new _D({code:gD.INVALID_PARAMETER,message:eT({key:Kw,link:{className:r,fnName:n}})});if(e.videoWidth<a||e.videoHeight<i)throw new _D({code:gD.INVALID_PARAMETER,message:eT({key:$w,link:{className:r,fnName:n}})})}},sendSEIMessage:[{name:"buffer",required:!0,instanceOf:ArrayBuffer,validate:function(e){if(!kA)throw new _D({code:gD.NOT_SUPPORTED,message:eT({key:yI})});if(!this.enableSEI_)throw new _D({code:gD.INVALID_OPERATION,message:eT({key:bI})});if(e.byteLength>1e3)throw new _D({code:gD.INVALID_PARAMETER,message:eT({key:MI,data:e.byteLength})});if(0===e.byteLength)throw new _D({code:gD.INVALID_PARAMETER,message:eT({key:OI})});if(!this.uplinkConnection_||!this.localStream_)throw new _D({code:gD.INVALID_PARAMETER,message:eT({key:kI})});if(!this.localStream_.hasVideo())throw new _D({code:gD.INVALID_OPERATION,message:eT({key:CI})});var t=this.uplinkConnection_.isH264;if(!t)throw new _D({code:gD.NOT_SUPPORTED,message:eT({key:yI,data:t})})}},{name:"options",type:Sk,properties:{seiPayloadType:{type:Ck,values:[5,243]}}}]},CH={switchDevice:[{name:"type",required:!0,type:kk,values:[wO,IO]},{name:"deviceId",required:!0,type:kk,validate:function(){if(this.screen_&&!this.audio_||this.audioSource_||this.videoSource_)throw new _D({code:gD.INVALID_OPERATION,message:eT({key:Mw})});if(this.publishState_===Dk)throw new _D({code:gD.INVALID_OPERATION,message:eT({key:kw})});if(!yA())throw new _D({code:gD.NOT_SUPPORTED,message:eT({key:lI})})}}],setAudioCaptureVolume:{name:"volume",type:Ck}},wH={play:[{name:"elementId",required:!0,type:[kk,"HTMLDivElement"],validate:function(e,t,n){if(uT(e)){var r=document.getElementById(e);if(!r)throw new _D({code:gD.INVALID_PARAMETER,message:eT({key:Jw,data:{key:t,fnName:n}})});if(!(r instanceof HTMLDivElement))throw new _D({code:gD.INVALID_PARAMETER,message:eT({key:Qw,data:{key:t,fnName:n,type:vT(r)}})})}}},{name:"options",type:Sk,properties:{objectFit:{type:kk,values:["contain","cover","fill"]},muted:{type:wk},mirror:{type:wk}}}],addTrack:{name:cM,instanceOf:window.MediaStreamTrack,validate:function(e){if(this.isAddingTrack_)throw new _D({code:gD.INVALID_OPERATION,message:eT({key:Iw})});if(this.isRemovingTrack_)throw new _D({code:gD.INVALID_OPERATION,message:eT({key:Sw})});if(this.publishState_===Dk)throw new _D({code:gD.INVALID_OPERATION,message:eT({key:Tw})});var t=this.getMediaStream();if(!t)throw new _D({code:gD.INVALID_OPERATION,message:eT({key:Ew})});if(e.kind===wO&&t.getAudioTracks().length>0||e.kind===IO&&t.getVideoTracks().length>0)throw new _D({code:gD.INVALID_OPERATION,message:eT({key:jw})});if(!gA()&&!vA())throw new _D({code:gD.NOT_SUPPORTED,message:eT({key:cI,data:aM})})}},removeTrack:{name:cM,instanceOf:window.MediaStreamTrack,validate:function(e){if(this.isAddingTrack_)throw new _D({code:gD.INVALID_OPERATION,message:eT({key:Lw})});if(this.isRemovingTrack_)throw new _D({code:gD.INVALID_OPERATION,message:eT({key:Aw})});if(this.publishState_===Dk)throw new _D({code:gD.INVALID_OPERATION,message:eT({key:Nw})});var t=this.getMediaStream();if(!t)throw new _D({code:gD.INVALID_OPERATION,message:eT({key:Ew})});if(-1===t.getTracks().indexOf(e))throw new _D({code:gD.INVALID_PARAMETER,message:eT({key:xw})});if(!gA()){if(1===t.getTracks().length)throw new _D({code:gD.INVALID_OPERATION,message:eT({key:Rw})});if(e.kind===wO)throw new _D({code:gD.INVALID_PARAMETER,message:eT({key:Dw})});if(!vA())throw new _D({code:gD.NOT_SUPPORTED,message:eT({key:cI,data:iM})})}}},replaceTrack:{name:cM,instanceOf:window.MediaStreamTrack,validate:function(e){var t=this.getMediaStream();if(!t)throw new _D({code:gD.INVALID_OPERATION,message:eT({key:ww})});if(this.publishState_===Dk)throw new _D({code:gD.INVALID_OPERATION,message:eT({key:Cw})});if(e.kind===wO&&t.getAudioTracks().length<=0||e.kind===IO&&t.getVideoTracks().length<=0)throw new _D({code:gD.INVALID_PARAMETER,message:eT({key:Pw,data:e})});if(!yA())throw new _D({code:gD.NOT_SUPPORTED,message:eT({key:cI,data:sM})})}}},IH={TRTC:MH,CLIENT:kH,LOCAL_STREAM:CH,STREAM:wH};function SH(){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),a=0;a<e;a++)r[a]=arguments[a];return EH.call(this,t,r,n,this.name_),o.apply(this,r)},r}}function TH(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,n,o){var a=o.value;return o.value=i(r().mark((function e(){var o,i,s,c=arguments;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(o=c.length,i=new Array(o),s=0;s<o;s++)i[s]=c[s];return EH.call(this,t,i,n,this.name_),e.abrupt("return",a.apply(this,i));case 3:case"end":return e.stop()}}),e,this)}))),o}}function EH(e,t,n,r){try{for(var o=0;o<e.length;o++)jH.call(this,{rule:e[o],value:t[o],key:e[o].name,fnName:n,className:r})}catch(qq){throw xE.error(qq),qq}}function jH(e){var t=this,n=e.rule,r=e.value,o=e.key,a=e.fnName,i=e.className;if(lT(r)){if(n.required)throw new _D({code:gD.INVALID_PARAMETER,message:eT({key:IC,data:{key:o,rule:n,fnName:a,value:r},link:{className:i,fnName:a}})});if(lT(n.defaultValue))return;r=n.defaultValue}if(Array.isArray(n.type)){if(!n.type.map((function(e){return e.toLowerCase()})).includes(vT(r)))throw new _D({code:gD.INVALID_PARAMETER,message:eT({key:SC,data:{key:o,rule:n,fnName:a,value:r},link:{className:i,fnName:a}})})}else if(!lT(n.type)&&vT(r)!==n.type)throw new _D({code:gD.INVALID_PARAMETER,message:eT({key:SC,data:{key:o,rule:n,fnName:a,value:r},link:{className:i,fnName:a}})});if(!1===n.allowEmpty){var s=dT(r)&&(0===r||Number.isNaN(r)),c=uT(r)&&""===r.trim();if(s||c)throw new _D({code:gD.INVALID_PARAMETER,message:eT({key:TC,data:{key:o,rule:n,fnName:a,value:r},link:{className:i,fnName:a}})})}if(n.notLessThanZero&&dT(r)&&r<0)throw new _D({code:gD.INVALID_PARAMETER,message:eT({key:zw,data:{key:o,rule:n,fnName:a,value:r},link:{className:i,fnName:a}})});if(uT(n.instanceOf)){if(!r||r.name_!==n.instanceOf)throw new _D({code:gD.INVALID_PARAMETER,message:eT({key:EC,data:{key:o,rule:n,fnName:a,value:r},link:{className:i,fnName:a}})})}else if(cT(n.instanceOf)&&!(r instanceof n.instanceOf))throw new _D({code:gD.INVALID_PARAMETER,message:eT({key:EC,data:{key:o,rule:n,fnName:a,value:r},link:{className:i,fnName:a}})});if(n.values&&!n.values.includes(r))throw new _D({code:gD.INVALID_PARAMETER,message:eT({key:jC,data:{key:o,rule:n,fnName:a,value:r},link:{className:i,fnName:a}})});var l=n.properties;aT(l)&&fT(r)&&Object.keys(l).forEach((function(e){jH.call(t,{rule:l[e],value:r&&r[e],key:"".concat(o,".").concat(e),fnName:a,className:i})}));var u=n.arrayItem;aT(u)&&hT(r)&&r.forEach((function(e,n){jH.call(t,{rule:u,value:e,key:"".concat(o,"[").concat(n,"]"),fnName:a,className:i})})),cT(n.validate)&&n.validate.call(this,r,o,a,i,this)}Io({target:"Number",stat:!0},{isNaN:function(e){return e!=e}});var DH=Io,LH=D,AH=zi.f;DH({target:"Object",stat:!0,forced:LH((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:AH});var NH,xH,RH=ON;function PH(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{retries:5,timeout:2e3};return function(t,n,r){var o=jE({retryFunction:r.value,settings:e,onError:e.onError,onRetrying:e.onRetrying,onRetryFailed:e.onRetryFailed});return r.value=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.apply(this,t)},r}}Io({target:"Array",stat:!0,forced:!bc((function(e){Array.from(e)}))},{from:RH});var UH,VH,BH,FH,GH=5e3,zH={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},HH=l((function e(t){s(this,e),this.str_identifier=String(t.userId),this.uint64_tinyid=Number(t.tinyId),this.uint32_role=t.role})),YH=(NH=PH({timeout:500,retries:3}),xH=function(){function e(t){var n=this;s(this,e),this.frameWorkType_=t.frameWorkType||30,this.component_=t.component||0,this.client_=t.client,this.keyPrefix_="key_point",this.storageKey_="".concat(this.keyPrefix_,"_").concat(this.client_.getUserId()),this.log_=xE.createLogger({id:"kpm|"+this.client_.getUserId(),userId:this.client_.getUserId(),sdkAppId:this.client_.getSDKAppId()}),Object.getOwnPropertyNames(this.__proto__).forEach((function(e){e.startsWith("handle")&&cT(n[e])&&(n[e]=function(e){var t=e.fn,n=e.context;return i(r().mark((function e(){var o,a,i,s=arguments;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(e.prev=0,o=s.length,a=new Array(o),i=0;i<o;i++)a[i]=s[i];return e.next=4,t.apply(n||this,a);case 4:return e.abrupt("return",e.sent);case 7:e.prev=7,e.t0=e.catch(0),xE.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_=XL.run(uC,this.setStorage.bind(this),{delay:2e4})}var t,o,a;return l(e,[{key:"initData",value:function(){var e;this.firstPublishedUserList_=[],this.networkQuality_={totalUplinkRTT:0,totalUplinkLoss:0,count:0,totalDownlinkRTTAndLossMap:new Map},this.basicInfo={string_sdk_version:No,uint32_os_type:15,string_device_name:"",string_http_user_agent:navigator.userAgent,string_os_version:"",string_domain:location.host,uint32_avg_rtt:0,uint32_avg_up_loss:0,uint32_scene:"live"===(null===(e=this.client_)||void 0===e?void 0:e.getMode())?1:0,uint32_joining_duration:0,uint32_networkType:Ek[oT()],uint32_framework:this.frameWorkType_,uint32_component:this.component_},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(){NT.on(xT,this.handleJoinStart,this),NT.on(qT,this.handleWSStart,this),NT.on(WT,this.handleWSEnd,this),NT.on(RT,this.handleJoinSendCMD,this),NT.on(PT,this.handleJoinReceivedCMDResponce,this),NT.on(UT,this.handleJoinSuccess,this),NT.on(VT,this.handleJoinFailed,this),NT.on(HT,this.handleReceivedPublishUserList,this),NT.on(CE,this.handleConnectionStateChanged,this),NT.on(BT,this.handleLeaveStart,this),NT.on(GT,this.handleLeaveSuccess,this),NT.on(FT,this.handleLeaveSendCMD,this),NT.on(wE,this.handleSendSubscribeCMD,this),NT.on(rE,this.handleVideoPlaying,this),NT.on(oE,this.handleAudioPlaying,this),NT.on(IE,this.handleNetworkQuality,this),NT.on(zT,this.handleHeartbeatStats,this),NT.on(iE,this.handleRemoteStreamAdded,this),NT.on(sE,this.handleRemoteStreamSubscribeStart,this),NT.on(cE,this.handleRemoteStreamSubscribed,this),NT.on(dE,this.handleRemoteStreamRemoved,this),NT.on(yE,this.handleVideoLoadedData,this),NT.on(_E,this.handlePlayStream,this),NT.on(YT,this.handlePublishStart,this),NT.on(fE,this.handleLocalStreamInitStart,this),NT.on(hE,this.handleLocalStreamInitEnd,this),NT.on(mE,this.handleLocalStreamInitFailed,this)}},{key:"uninstallEvents",value:function(){NT.off(xT,this.handleJoinStart,this),NT.off(qT,this.handleWSStart,this),NT.off(WT,this.handleWSEnd,this),NT.off(RT,this.handleJoinSendCMD,this),NT.off(PT,this.handleJoinReceivedCMDResponce,this),NT.off(HT,this.handleReceivedPublishUserList,this),NT.off(CE,this.handleConnectionStateChanged,this),NT.off(BT,this.handleLeaveStart,this),NT.off(GT,this.handleLeaveSuccess,this),NT.off(UT,this.handleJoinSuccess,this),NT.off(VT,this.handleJoinFailed,this),NT.off(FT,this.handleLeaveSendCMD,this),NT.off(wE,this.handleSendSubscribeCMD,this),NT.off(rE,this.handleVideoPlaying,this),NT.off(oE,this.handleAudioPlaying,this),NT.off(IE,this.handleNetworkQuality,this),NT.off(zT,this.handleHeartbeatStats,this),NT.off(iE,this.handleRemoteStreamAdded,this),NT.off(sE,this.handleRemoteStreamSubscribeStart,this),NT.off(cE,this.handleRemoteStreamSubscribed,this),NT.off(dE,this.handleRemoteStreamRemoved,this),NT.off(yE,this.handleVideoLoadedData,this),NT.off(_E,this.handlePlayStream,this),NT.off(YT,this.handlePublishStart,this),NT.off(fE,this.handleLocalStreamInitStart,this),NT.off(hE,this.handleLocalStreamInitEnd,this),NT.off(mE,this.handleLocalStreamInitFailed,this)}},{key:"destroy",value:function(){this.uninstallEvents(),XL.clearTask(this.intervalId_),this.client_=null}},{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 _D?Number(n.getExtraCode()||n.getCode()):gD.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===xM){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(EM));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 t=e.client,r=e.stream;if(this.hitTest(t)){var o=r.getUserId(),a=r.getType(),i="".concat(o,"_").concat(a),s=this.remoteStreamStatsMap_.get(i);if(s)s.stream=r;else{var c={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:n({},zH),stream:r};c.statsToReport.msg_user_info=new HH({userId:o,tinyId:r.getTinyId(),role:MM}),c.statsToReport.uint32_stream_type=a===EM?2:7,this.remoteStreamStatsMap_.set(i,c)}}}},{key:"handleRemoteStreamSubscribeStart",value:function(e){var t=e.client,n=e.stream;if(this.hitTest(t)){var r=n.getUserId(),o=n.getType(),a="".concat(r,"_").concat(o),i=this.remoteStreamStatsMap_.get(a);i&&0===i.subscribeStartTime&&(i.subscribeStartTime=Date.now())}}},{key:"handleSendSubscribeCMD",value:function(e){if(this.hitTest(e.client)){var t=new HH(e),n=Date.now(),r="".concat(e.userId,"_").concat(EM);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(jM);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(),a="".concat(r,"_").concat(o),i=this.remoteStreamStatsMap_.get(a);i&&0===i.subscribedTime&&(i.subscribedTime=Date.now(),i.stream=n)}}},{key:"handleRemoteStreamRemoved",value:function(e){var t=e.client,n=e.stream;if(this.hitTest(t)){var r=n.getUserId(),o=n.getType(),a=this.remoteStreamStatsMap_.get("".concat(r,"_").concat(o));a&&(a.stream=null)}}},{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 a=this.pathMainVideoMap_.get(r);if(0===a.statsToReport.uint64_render_first_frame_time&&(a.statsToReport.uint64_render_first_frame_time=o),this.remoteStreamStatsMap_.has(r)){var i=this.remoteStreamStatsMap_.get(r),s=i.statsToReport,c=i.playStreamTime,l=i.subscribedTime;0===s.uint32_video_render_first&&c-l<=100&&(s.uint32_video_render_first=o-a.sendSubscribeCMDTime)}}if(t.getType()===jM&&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,a=t.networkQuality_.totalDownlinkRTTAndLossMap.get(o);a?(a.totalRTT+=n,a.totalLoss+=r,a.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 a=r.msg_video_status[0],i=a.uint32_video_codec_bitrate,s=a.uint32_video_enc_fps,c=a.uint32_video_width,l=a.uint32_video_height;this.localStreamStats_.totalVideoBitrate+=i,this.localStreamStats_.totalVideoFPS+=s,this.localStreamStats_.totalVideoWidth+=c,this.localStreamStats_.totalVideoHeight+=l,this.localStreamStats_.videoCount++}if(r.msg_audio_status){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,a=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(a,"_").concat(n?EM:jM);if(t.remoteStreamStatsMap_.has(o)){var i,s,c=t.remoteStreamStatsMap_.get(o);(n&&null!==(i=c.stream)&&void 0!==i&&i.isMainVideoSubscribed||r&&null!==(s=c.stream)&&void 0!==s&&s.isAuxVideoSubscribed)&&(c.totalVideoFPS+=e.uint32_video_receive_fps,c.totalVideoBitrate+=e.uint32_video_codec_bitrate,c.videoCount++,0===c.statsToReport.uint32_video_width&&(c.statsToReport.uint32_video_width=e.uint32_video_width),0===c.statsToReport.uint32_video_height&&(c.statsToReport.uint32_video_height=e.uint32_video_height))}})),r){var i="".concat(a,"_").concat(EM);if(t.remoteStreamStatsMap_.has(i)){var s,c=t.remoteStreamStatsMap_.get(i);null!==(s=c.stream)&&void 0!==s&&s.isMainAudioSubscribed&&(c.totalAudioBitrate+=r.uint32_audio_codec_bitrate,c.audioCount++,Math.floor(100*r.audioLevel)>0&&(c.totalAudioLevel+=r.audioLevel,c.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 _D?r.getExtraCode()||r.getCode():{NotFoundError:1,NotAllowedError:2,NotReadableError:3,OverConstrainedError:4,AbortError:5}[r.name]||gD.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:(a=i(r().mark((function e(){var t;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!(t=eA.getItem(this.storageKey_))){e.next=6;break}return e.next=5,this.upload(t);case 5:eA.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 a.apply(this,arguments)})},{key:"setStorage",value:function(){this.prepareReport();var e=this.getReportData();0!==e.msg_path_enter_room.uint64_start_time&&eA.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),a=o.totalLoss,i=o.count;t.statsToReport.uint32_avg_down_loss=Math.floor(a/i)}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,wO),t.statsToReport.uint32_video_play_time=s.getDuration(n,IO)),t.statsToReport.uint32_video_render_first=Math.min(t.statsToReport.uint32_video_render_first,GH);var c=e.client_.getBadCaseDetector();if(c){var l=c.getDataFreezeDuration(n),u=l.dataFreeze,d=l.count,p=c.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),c.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>GH&&(t.statsToReport.uint64_play_first_frame_time=t.statsToReport.uint64_start_enter_time+GH):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>GH&&(t.statsToReport.uint64_render_first_frame_time=t.statsToReport.uint64_start_enter_time+GH):e.pathMainVideoMap_.delete(n)})),this.pathJoinRoom_.uint64_end_time-this.pathJoinRoom_.uint64_start_time>GH&&(this.pathJoinRoom_.uint64_end_time=this.pathJoinRoom_.uint64_start_time+GH)}},{key:"getReportData",value:function(){var e=this.client_.getSignalInfo();return{uint32_sdk_app_id:Number(this.client_.getSDKAppId()),msg_user_info:new HH({userId:this.client_.getUserId(),tinyId:this.client_.getTinyId(),role:this.client_.getRole()===CM?MM:kM}),msg_basic_info:this.basicInfo,uint32_acc_ip:yT(e.relayIp),uint32_client_ip:yT(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:M(this.pathMainVideoMap_.values()).map((function(e){return e.statsToReport})),msg_quality_statistics:M(this.remoteStreamStatsMap_.values()).map((function(e){return e.statsToReport})),str_room_name:String(this.client_.getRoomId()),msg_path_recv_audio:M(this.pathMainAudioMap_.values()).map((function(e){return e.statsToReport})),uint32_info_client_ip:yT(e.clientIp,"small"),error_code:[],msg_local_statistics:this.localStreamStats_.statsToReport,msg_function_state:qH.getStateArray()}}},{key:"report",value:(o=i(r().mark((function e(){var t;return r().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:eA.deleteItem(this.storageKey_),qH.clearStateArray(),this.initData(),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),this.log_.warn(e.t0);case 12:case"end":return e.stop()}}),e,this,[[0,9]])}))),function(){return o.apply(this,arguments)})},{key:"upload",value:(t=i(r().mark((function e(t){var n,o,a;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(KS||0===t.msg_path_enter_room.uint64_start_time||[Wk,Kk,$k].findIndex((function(e){return e===location.host}))>=0)){e.next=2;break}return e.abrupt("return");case 2:return n=Number(this.client_.getSDKAppId()),o=rT(n,gM),e.next=6,DT({url:o,body:JSON.stringify(t)});case 6:if("ok"===(a=e.sent).data){e.next=9;break}throw"key point upload failed: ".concat(a.data);case 9:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),e}(),I(xH.prototype,"upload",[NH],Object.getOwnPropertyDescriptor(xH.prototype,"upload"),xH.prototype),xH),qH=function(){function e(){s(this,e)}return l(e,null,[{key:"handleFunctionState",value:function(e){var t,n,r,o,a=e.className,i=e.fnName,s=e.params;if(!(KS||[Wk,Kk,$k].findIndex((function(e){return e===location.host}))>=0)){var c,l=[];if(a)switch(i){case"createClient":null!==(t=s[0])&&void 0!==t&&t.mode&&l.push("".concat(a,".").concat(i,".").concat(s[0].mode)),null!==(n=s[0])&&void 0!==n&&n.useStringRoomId?l.push("".concat(a,".").concat(i,".stringRoomId")):l.push("".concat(a,".").concat(i,".intRoomId")),null!==(r=s[0])&&void 0!==r&&r.autoSubscribe?l.push("".concat(a,".").concat(i,".autoSubscribe")):l.push("".concat(a,".").concat(i,".manualSubscribe"));break;case"publish":null!==(o=s[1])&&void 0!==o&&o.isAuxiliary?l.push("".concat(a,".").concat(i,".isAuxiliary")):l.push("".concat(a,".").concat(i));break;case"setAudioProfile":case"setVideoProfile":case"setScreenProfile":case"setVideoContentHint":uT(s[0])&&l.push("".concat(a,".").concat(i,".").concat(s[0]));break;default:l.push("".concat(a,".").concat(i))}else l.push(i);for(var u=0;u<l.length;u++){if(!(c=mC[l[u]]))return;this.stateMap.has(c)?this.stateMap.get(c).int32_call_times+=1:this.stateMap.set(c,{int32_id:c,int32_call_times:1})}}}},{key:"getStateArray",value:function(){return Array.from(this.stateMap.values())}},{key:"clearStateArray",value:function(){this.stateMap.clear()}}]),e}();function WH(e){return function(t,n,r){var o=r.value;return r.value=function(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];try{e||(e=this.name_),qH.handleFunctionState({className:e,fnName:n,params:r}),e=void 0}catch(qq){this.log_.info(qq)}return o.apply(this,r)},r}}u(qH,"stateMap",new Map);var KH=(UH=TH.apply(void 0,M(IH.STREAM.play)),VH=WH(),BH=WH(),FH=function(){function e(t){s(this,e),this.name_=qk,this.userId_=t.userId,this.isRemote_=t.isRemote,this.type_=t.type,this.log_=xE.createLogger({id:"s".concat(t.seq?t.seq:"","|").concat(this.userId_),userId:lT(t.client)?void 0:t.client.getUserId(),sdkAppId:lT(t.client)?void 0:t.client.getSDKAppId(),isLocal:!this.isRemote_,type:this.isRemote_?this.type_:""}),this.client_=null,lT(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_="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)})),this.audioOutputDeviceId_=0,this.audioVolume_=1,this.emitter_=ST(new AT,this.name_),this.connectionState_=LM,this.installEvents(),lT(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(Qk,"/en/LocalStream.html#play. TRTC.createStream 接口的 mirror 选项从 v4.12.1 开始被废弃,请使用 localStream.play 设置本地流预览镜像,参考文档:").concat(Qk,"/zh-cn/LocalStream.html#play。"))}var t,o,a,c,u;return l(e,[{key:"installEvents",value:function(){NT.on(SE,this.restartPlayback,this)}},{key:"uninstallEvents",value:function(){NT.off(SE,this.restartPlayback,this)}},{key:"getType",value:function(){return this.type_}},{key:"getLogger",value:function(){return this.log_}},{key:"isSubscribed",get:function(){return this.type_===EM&&this.connection_.isMainStreamSubscribed||this.type_===jM&&this.connection_.isAuxStreamSubscribed}},{key:"isMainVideoSubscribed",get:function(){var e=this.getSubscribedState();return this.type_===EM&&e&&e.video}},{key:"isMainAudioSubscribed",get:function(){var e=this.getSubscribedState();return this.type_===EM&&e&&e.audio}},{key:"isAuxVideoSubscribed",get:function(){var e=this.getSubscribedState();return this.type_===jM&&e&&e.auxiliary}},{key:"isSmallVideoSubscribed",get:function(){var e=this.getSubscribedState();return this.type_===EM&&e&&e.smallVideo}},{key:"emitConnectionStateChanged",value:function(e){e.state!==this.connectionState_&&(e.state!==LM&&this.isRemote_&&!this.isSubscribed||(this.emitter_.emit(UA,e),this.connectionState_=e.state))}},{key:"setConnection",value:function(e){this.connection_!==e&&(e instanceof gH?(null!==this.connection_&&this.connection_.off(NA.CONNECTION_STATE_CHANGED,this.emitConnectionStateChanged,this),e.on(NA.CONNECTION_STATE_CHANGED,this.emitConnectionStateChanged,this)):null===e&&this.connection_.off(NA.CONNECTION_STATE_CHANGED,this.emitConnectionStateChanged,this),this.connection_=e)}},{key:"getConnection",value:function(){return this.connection_}},{key:"play",value:(u=i(r().mark((function e(t,n){var o,a,i;return r().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&&!lT(n.muted)&&(this.muted_=n.muted),n&&!lT(n.objectFit)&&(this.objectFit_=n.objectFit),this.isScreenShare()?this.mirror_=!1:n&&!lT(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&&(o=t,uT(t)&&(o=document.getElementById(t)),o.appendChild(this.div_),this.elementId_=t),e.abrupt("return");case 9:return this.isPlaying_=!0,(a=document.createElement("div")).setAttribute("id","player_".concat(this.id_)),a.setAttribute("style","width: 100%; height: 100%; position: relative; background-color: black; overflow: hidden;"),i=t,uT(t)&&(i=document.getElementById(t)),i.appendChild(a),this.elementId_=t,this.div_=a,this.isRemote_||(this.muted_=!0),n&&!lT(n.muted)&&(this.muted_=n.muted),this.isScreenShare()&&(this.objectFit_="contain"),n&&!lT(n.objectFit)&&(this.objectFit_=n.objectFit),this.isScreenShare()?this.mirror_=!1:(this.isRemote_||(this.mirror_=!0),n&&!lT(n.mirror)&&(this.mirror_=n.mirror)),NT.emit(_E,{stream:this}),e.next=26,Promise.all([this.playAudio(),this.playVideo()]);case 26:NT.emit(tE,{stream:this});case 27:case"end":return e.stop()}}),e,this)}))),function(e,t){return u.apply(this,arguments)})},{key:"playAudio",value:(c=i(r().mark((function e(){var t,o,a=this;return r().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(t=this.getAudioTrack(),this.audioPlayer_||!t){e.next=17;break}return this.log_.info("create AudioPlayer and play"),this.audioPlayer_=new DR({stream:this,track:t,gainedTrack:null===(o=this.gain_)||void 0===o?void 0:o.audioTrack,div:this.div_,muted:this.muted_,outputDeviceId:this.audioOutputDeviceId_,volume:this.audioVolume_}),this.audioPlayer_.on(FA,(function(e){var t={type:wO,state:e.state,reason:e.reason};NT.emit(nE,n({stream:a},t)),a.emitter_.emit(RA,t)})),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 nP,this.emitter_.emit(BA,e.t0),e.t0;case 17:case"end":return e.stop()}}),e,this,[[7,12]])}))),function(){return c.apply(this,arguments)})},{key:"playVideo",value:(a=i(r().mark((function e(){var t,o=this;return r().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(t=this.getVideoTrack(),this.videoPlayer_||!t){e.next=18;break}return NT.emit(bE,{stream:this}),this.log_.info("create VideoPlayer and play"),this.videoPlayer_=new rP({stream:this,track:t,div:this.div_,muted:this.muted_,objectFit:this.objectFit_,mirror:this.mirror_}),this.videoPlayer_.on(FA,(function(e){var t={type:IO,state:e.state,reason:e.reason};NT.emit(nE,n({stream:o},t)),o.emitter_.emit(RA,t)})),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 nP,this.emitter_.emit(BA,e.t0),e.t0;case 18:case"end":return e.stop()}}),e,this,[[8,13]])}))),function(){return a.apply(this,arguments)})},{key:"stopAudio",value:function(){this.audioPlayer_&&(this.log_.info("stop AudioPlayer"),this.audioPlayer_.stop(),this.audioPlayer_=null)}},{key:"stopVideo",value:function(){this.videoPlayer_&&(this.log_.info("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:(o=i(r().mark((function e(){return r().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("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 o.apply(this,arguments)})},{key:"close",value:function(){this.log_.info("close stream"),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,wO),this.doEnableTrack(wO,!1)}},{key:"muteVideo",value:function(){return this.addRemoteEvent(!0,IO),this.doEnableTrack(IO,!1)}},{key:"unmuteAudio",value:function(){return this.addRemoteEvent(!1,wO),this.doEnableTrack(wO,!0)}},{key:"unmuteVideo",value:function(){return this.addRemoteEvent(!1,IO),this.doEnableTrack(IO,!0)}},{key:"addRemoteEvent",value:function(e,t){if(this.isRemote_&&this.client_){var n=this.client_.getUserId(),r="".concat(e?xO:RO," remote ").concat(t);nL(n,{eventId:t===wO?e?xD:PD:e?ND:RD,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===wO?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:(t=i(r().mark((function e(t){var n;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.log_.info("setAudioOutput ".concat(t)),this.audioOutputDeviceId_=t,!this.audioPlayer_){e.next=5;break}return e.next=5,this.audioPlayer_.setSinkId(t);case 5:return e.next=7,eN();case 7:n=e.sent,this.log_.info("speakers: ".concat(JSON.stringify(n)));case 9:case"end":return e.stop()}}),e,this)}))),function(e){return t.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_===EM&&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_===jM?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()===jO}},{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}(),I(FH.prototype,"play",[UH],Object.getOwnPropertyDescriptor(FH.prototype,"play"),FH.prototype),I(FH.prototype,"setAudioOutput",[VH],Object.getOwnPropertyDescriptor(FH.prototype,"setAudioOutput"),FH.prototype),I(FH.prototype,"getVideoFrame",[BH],Object.getOwnPropertyDescriptor(FH.prototype,"getVideoFrame"),FH.prototype),FH),$H=function(e){d(r,e);var t=_(r);function r(e){var o;s(this,r);var a={isRemote:!0,type:e.type},i=n(n({},e),a);return(o=t.call(this,i)).name_=Yk,o.isStreamAddedEventEmitted_=!1,o.isAbleToCallSubscription_=!0,o}return l(r,[{key:"installEvents",value:function(){b(p(r.prototype),"installEvents",this).call(this),NT.on(cE,this.handleStreamSubscribed,this),NT.on(lE,this.handleStreamUnsubscribed,this)}},{key:"uninstallEvents",value:function(){b(p(r.prototype),"uninstallEvents",this).call(this),NT.off(cE,this.handleStreamSubscribed,this),NT.off(lE,this.handleStreamUnsubscribed,this)}},{key:"handleStreamSubscribed",value:function(e){e.client===this.client_&&e.stream===this&&this.connection_.getCurrentState()===xM&&this.emitConnectionStateChanged({prevState:LM,state:xM})}},{key:"handleStreamUnsubscribed",value:function(e){e.client===this.client_&&e.stream===this&&this.emitConnectionStateChanged({prevState:xM,state:LM})}},{key:"getType",value:function(){return b(p(r.prototype),"getType",this).call(this)}},{key:"getIsAbleToCallSubscription",value:function(){return this.isAbleToCallSubscription_}},{key:"setIsAbleToCallSubscription",value:function(e){this.isAbleToCallSubscription_=e}},{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?b(p(r.prototype),"getAudioTrack",this).call(this):null}},{key:"getVideoTrack",value:function(){if(!this.connection_)return null;var e=this.connection_.getTrackState();return this.type_===EM&&!e.video||this.type_===jM&&!e.auxiliary?null:b(p(r.prototype),"getVideoTrack",this).call(this)}},{key:"close",value:function(){b(p(r.prototype),"close",this).call(this)}}]),r}(KH),JH=function(){function e(t){s(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,o;return l(e,[{key:"isEnabled",get:function(){return"webrtc"!==this.client_.getEnv()}},{key:"recover",value:(o=i(r().mark((function e(t){var n,o,a;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.getUserId(),o=t.getType(),this.hasAutoRecoveryFlag(n,o)){e.next=5;break}return e.abrupt("return");case 5:if(a=this.getUnsubscribedStream(n,o)?"unsubscribe":"subscribe",e.prev=6,xE.warn("recover() try to recover subscription [".concat(a,"][").concat(n,"][").concat(o,"]")),"subscribe"!==a){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:sL.logSuccessEvent({userId:this.client_.getUserId(),eventType:dk}),xE.warn("recover() recover successfully [".concat(a,"][").concat(n,"][").concat(o,"]")),e.next=23;break;case 19:e.prev=19,e.t0=e.catch(6),xE.error("recover() recover failed [".concat(a,"][").concat(n,"][").concat(o,"]"),e.t0),sL.logFailedEvent({userId:this.client_.getUserId(),eventType:dk,error:e.t0});case 23:this.deleteAutoRecoveryFlag(n,o);case 24:case"end":return e.stop()}}),e,this,[[6,19]])}))),function(e){return o.apply(this,arguments)})},{key:"recoverSubscription",value:(n=i(r().mark((function e(t,n){var o,a,i,s,c;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=this.getOptions(t,n.getType()),a=this.getSubscribedStream(t,n.getType()),o&&a){e.next=4;break}return e.abrupt("return");case 4:i=this.getStreamMuteState(a),s=i.isAudioMuted,c=i.isVideoMuted,this.mergeStream(a,n),this.recoverPlayingState(a),s&&a.doEnableTrack(wO,!1),c&&a.doEnableTrack(IO,!1);case 9:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"recoverUnsubscription",value:(t=i(r().mark((function e(t,n){var o;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=this.getUnsubscribedStream(t,n.getType())){e.next=3;break}return e.abrupt("return");case 3:this.mergeStream(o,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 a=new Map;a.set(t.getType(),n),this.subscriptedOptions_.set(e,a)}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=M(this.subscribedStreams_.entries());e<t.length;e++)for(var n=O(t[e],2),r=n[0],o=0,a=M(n[1].entries());o<a.length;o++){var i=O(a[o],1)[0];this.setAutoRecoveryFlag(r,i)}for(var s=0,c=M(this.unsubscribedStreams_.entries());s<c.length;s++)for(var l=O(c[s],2),u=l[0],d=0,p=M(l[1].entries());d<p.length;d++){var f=O(p[d],1)[0];this.setAutoRecoveryFlag(u,f)}}},{key:"setAutoRecoveryFlag",value:function(e,t){if(xE.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}(),QH=function(){function e(t){s(this,e),this.player_=t,this.canvas_=document.createElement(CO),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(),t=e.videoHeight,n=e.videoWidth,r=n*this.canvas_.height/(t*this.canvas_.width);if(r>1.05||r<.95){var o=n*t/(this.canvas_.width*this.canvas_.height);this.setCanvasRect(n/Math.sqrt(o),t/Math.sqrt(o))}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_.width=0,this.canvas_.height=0,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}(),XH=new Blob(['let t,e,a,i;onmessage=function(n){const{action:h,data:s}=n.data;switch(h){case"render":a=s.canvas,t=a.width,e=a.height,i=a.getContext("2d"),function(t,e){const n=new TransformStream({async transform(t,e){const n=t.displayWidth,h=t.displayHeight,s=n*a.height/(h*a.width);if(s>1.05||s<.95){const t=n*h/(a.width*a.height);a.width=n/Math.sqrt(t),a.height=h/Math.sqrt(t)}i.drawImage(t,0,0,a.width,a.height);const o=new VideoFrame(a,{timestamp:t.timestamp});t.close(),e.enqueue(o)}});t.pipeThrough(n).pipeTo(e)}(s.readable,s.writable)}}'],{type:"application/javascript"}),ZH=function(){function e(t){s(this,e);var n=t.videoTrack;this.width=void 0,this.height=void 0,this.canvas=document.createElement("canvas"),this.offscreen=null,this.smallGenerator=new MediaStreamTrackGenerator({kind:"video"}),this.smallWritable=this.smallGenerator.writable,this.bigProcessor=new MediaStreamTrackProcessor({track:n}),this.bigReadable=this.bigProcessor.readable,this.initWorker()}return l(e,[{key:"initWorker",value:function(){try{this.worker=new Worker(URL.createObjectURL(XH)),xE.info("init worker processor success")}catch(e){xE.warn("init worker processor failed. ".concat(e.error))}}},{key:"setCanvasRect",value:function(e,t){this.width=e,this.height=t,this.canvas.width=e,this.canvas.height=t,this.offscreen=this.canvas.transferControlToOffscreen(),this.worker.postMessage({action:"render",data:{canvas:this.offscreen,readable:this.bigReadable,writable:this.smallWritable}},[this.offscreen,this.bigReadable,this.smallWritable])}},{key:"generatorVideoTrack",value:function(){var e=new MediaStream([this.smallGenerator]);return null==e?void 0:e.getTracks()[0]}},{key:"destroy",value:function(){this.worker.terminate()}}]),e}(),eY=function(){function e(t){s(this,e),this.localStream_=t,this.player_=null,this.processor_=null,this.initOffscreenSuccess_=!1}var t;return l(e,[{key:"initialize",value:(t=i(r().mark((function e(){var t;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(AA()&&(null===(t=navigator)||void 0===t?void 0:t.hardwareConcurrency)>=6)){e.next=13;break}return e.prev=1,e.next=4,this.initOffscreen();case 4:this.initOffscreenSuccess_=!0,xE.info("Initialize VideoGenerator successfully!"),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),this.initCanvas();case 11:e.next=14;break;case 13:this.initCanvas();case 14:case"end":return e.stop()}}),e,this,[[1,8]])}))),function(){return t.apply(this,arguments)})},{key:"generateSmallVideoTrack",value:function(e){var t,n=e.height,r=e.width,o=e.frameRate,a=this.getSmallVideoProfile(r,n);return this.initOffscreenSuccess_?(this.processor_.setCanvasRect(a.width,a.height),t=this.processor_.generatorVideoTrack()):(this.processor_.setCanvasRect(a.width,a.height),this.player_.setRect({width:a.width,height:a.height}),t=this.processor_.generateVideoTrackFromCanvasCapture(o),this.interval_=XL.run(dC,this.render.bind(this),{fps:o})),t}},{key:"render",value:function(){this.processor_.canDrawVideoToCanvas&&this.processor_.drawVideoToCanvas()}},{key:"destroy",value:function(){XL.clearTask(this.interval_),this.processor_&&this.processor_.destroy()}},{key:"initOffscreen",value:function(){this.processor_=new ZH({videoTrack:this.localStream_.getVideoTrack()})}},{key:"initCanvas",value:function(){this.player_=new rP({stream:this.localStream_,track:this.localStream_.getVideoTrack(),muted:!0,objectFit:"cover",mirror:!1}),this.player_.play().then((function(){xE.info("VideoGenerator: play local video success")})).catch((function(){xE.error("VideoGenerator: Failed to play local video")})),this.processor_=new QH(this.player_)}},{key:"getSmallVideoProfile",value:function(e,t){var n,r=this.localStream_.getVideoTrack(),o=this.localStream_.getVideoProfile();if(DA){var a=r.getSettings();a&&a.width&&a.height&&(o.width=a.width,o.height=a.height)}var i=o.width*o.height,s=e*t;return xE.info("big stream resolution: ".concat(o.width,"*").concat(o.height," small stream resolution: ").concat(e,"*").concat(t," ")),n=i>s?i/s:i/19200,{width:parseInt(o.width/Math.sqrt(n)),height:parseInt(o.height/Math.sqrt(n))}}}]),e}(),tY=new Map,nY=function(){var e=i(r().mark((function e(t){var n,o,a,i,s,c,l;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!OA()){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,oY(t);case 4:if(n=e.sent,xE.info("getUserMedia with constraints: "+JSON.stringify(n)),!n.audio){e.next=11;break}return e.next=9,KW.getMicrophones();case 9:o=e.sent,xE.info("microphones: ".concat(jT(o,["deviceId","label"])));case 11:if(!n.video){e.next=16;break}return e.next=14,KW.getCameras();case 14:a=e.sent,xE.info("cameras: ".concat(jT(a,["deviceId","label"])));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(!a||0!==a.length){e.next=27;break}throw new _D({code:gD.DEVICE_NOT_FOUND,message:eT({key:fI})});case 27:if(!o||0!==o.length){e.next=29;break}throw new _D({code:gD.DEVICE_NOT_FOUND,message:eT({key:pI})});case 29:throw n.audio&&(null===(i=o)||void 0===i?void 0:i.length)>0&&(c=o.find((function(e){return e.deviceId===t.microphoneId})))&&c.getCapabilities&&xE.warn(jT(c.getCapabilities(),vC)),n.video&&(null===(s=a)||void 0===s?void 0:s.length)>0&&(l=a.find((function(e){return e.deviceId===t.cameraId})))&&l.getCapabilities&&xE.warn(jT(l.getCapabilities(),vC)),new _D({code:gD.INITIALIZE_FAILED,name:e.t0.name,message:e.t0.message,constraint:e.t0.constraint});case 32:case"end":return e.stop()}}),e,null,[[16,22]])})));return function(t){return e.apply(this,arguments)}}(),rY=jE({retryFunction:nY,settings:{retries:3,timeout:500},onError:function(e,t,n,r){xE.warn("getUserMedia error: ".concat(e)),"NotReadableError"===e.name?(r[0].video&&(r[0].maxResoution=!1,r[0].frameRate=r[0].frameRate>10?10:5),t()):e.message.includes("deviceId")&&r[0].retryWhenExactFailed?(r[0].useExact=!1,t()):n(e)},onRetrying:function(e){xE.warn("getUserMedia retrying [".concat(e,"/3]"))}});function oY(e){return{audio:aY(e),video:iY(e)}}function aY(e){if(!e.audio)return!1;var t={};return aL(e.microphoneId)||(t.deviceId=e.useExact?{exact:e.microphoneId}:e.microphoneId),dT(e.channelCount)&&e.channelCount>1&&(t.channelCount=e.channelCount),pT(e.echoCancellation)&&!e.echoCancellation&&(t.echoCancellation=!1),pT(e.noiseSuppression)&&!e.noiseSuppression&&(t.noiseSuppression=!1),pT(e.autoGainControl)&&!e.autoGainControl&&(t.autoGainControl=!1),!!aL(t)||t}function iY(e){if(!e.video)return!1;var t=e.maxResoution,n=void 0===t||t,r={};return e.cameraId?r.deviceId=e.useExact?{exact:e.cameraId}:e.cameraId:e.facingMode&&(r.facingMode=e.facingMode),e.width&&(r.width={ideal:e.width},n&&(r.width.max=e.width)),e.height&&(r.height={ideal:e.height},n&&(r.height.max=e.height)),WI&&yS&&e.width&&e.height&&e.width*e.height<101376&&(r.width=e.width,r.height=e.height),e.frameRate&&(r.frameRate=e.frameRate),!!aL(r)||r}var sY=function(){var e=i(r().mark((function e(t){var n,o,a,i,s,c,l,u,d;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!OA()){e.next=2;break}return e.abrupt("return");case 2:if(n=null,!(PS&&US<74||BS)){e.next=27;break}return o=lY(t),xE.info("getDisplayMedia with constraints: "+JSON.stringify(o)),e.next=8,navigator.mediaDevices.getDisplayMedia(o);case 8:if(a=e.sent,!t.screenAudio){e.next=14;break}return xE.warn("Your browser not support capture system audio"),e.abrupt("return",a);case 14:if(!t.audio){e.next=24;break}return i=cY(t),xE.info("getUserMedia with constraints: "+JSON.stringify(i)),e.next=19,navigator.mediaDevices.getUserMedia(i);case 19:return n=e.sent,a.addTrack(n.getAudioTracks()[0]),e.abrupt("return",a);case 24:return e.abrupt("return",a);case 25:e.next=53;break;case 27:if(!t.screenAudio){e.next=37;break}return t.audioConstraints={echoCancellation:t.echoCancellation,autoGainControl:t.autoGainControl,noiseSuppression:t.noiseSuppression,sampleRate:44100},s=lY(t),xE.info("getDisplayMedia with constraints: "+JSON.stringify(s)),e.next=33,navigator.mediaDevices.getDisplayMedia(s);case 33:return c=e.sent,e.abrupt("return",c);case 37:return l=lY(t),xE.info("getDisplayMedia with constraints: "+JSON.stringify(l)),e.next=41,navigator.mediaDevices.getDisplayMedia(l);case 41:if(u=e.sent,!t.audio){e.next=52;break}return d=cY(t),xE.info("getUserMedia with constraints: "+JSON.stringify(d)),e.next=47,navigator.mediaDevices.getUserMedia(d);case 47:return n=e.sent,u.addTrack(n.getAudioTracks()[0]),e.abrupt("return",u);case 52:return e.abrupt("return",u);case 53:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function cY(e){var t={echoCancellation:e.echoCancellation,autoGainControl:e.autoGainControl,noiseSuppression:e.noiseSuppression,sampleRate:e.sampleRate,channelCount:e.channelCount};return lT(e.microphoneId)||(t.deviceId=e.microphoneId),{audio:t,video:!1}}function lY(e){var t={systemAudio:"include",selfBrowserSurface:"include",surfaceSwitching:"include"},n={width:BS?{max:e.width}:{ideal:e.width,max:e.width},height:BS?{max:e.height}:{ideal:e.height,max:e.height},frameRate:e.frameRate,displaySurface:"monitor"};return t.video=n,lT(e.audioConstraints)||(t.audio=e.audioConstraints),t}var uY,dY,pY,fY,hY,mY,vY,gY,_Y,yY,bY,OY,MY,kY,CY=new Map([["120p",{width:160,height:120,frameRate:15,bitrate:200}],["120p_2",{width:160,height:120,frameRate:15,bitrate:100}],["180p",{width:320,height:180,frameRate:15,bitrate:350}],["180p_2",{width:320,height:180,frameRate:15,bitrate:150}],["240p",{width:320,height:240,frameRate:15,bitrate:400}],["240p_2",{width:320,height:240,frameRate:15,bitrate:200}],["360p",{width:640,height:360,frameRate:15,bitrate:800}],["360p_2",{width:640,height:360,frameRate:15,bitrate:400}],["480p",{width:640,height:480,frameRate:15,bitrate:900}],["480p_2",{width:640,height:480,frameRate:15,bitrate:500}],["720p",{width:1280,height:720,frameRate:15,bitrate:1500}],["1080p",{width:1920,height:1080,frameRate:15,bitrate:2e3}],["1440p",{width:2560,height:1440,frameRate:30,bitrate:4860}],["4K",{width:3840,height:2160,frameRate:30,bitrate:9e3}]]),wY=new Map([["480p",{width:640,height:480,frameRate:5,bitrate:900}],["480p_2",{width:640,height:480,frameRate:30,bitrate:1e3}],["720p",{width:1280,height:720,frameRate:5,bitrate:1200}],["720p_2",{width:1280,height:720,frameRate:30,bitrate:3e3}],["1080p",{width:1920,height:1080,frameRate:5,bitrate:1600}],["1080p_2",{width:1920,height:1080,frameRate:30,bitrate:4e3}]]),IY=new Map([["standard",{sampleRate:48e3,channelCount:1,bitrate:40}],["standard-stereo",{sampleRate:48e3,channelCount:2,bitrate:64}],["high",{sampleRate:48e3,channelCount:1,bitrate:128}],["high-stereo",{sampleRate:48e3,channelCount:2,bitrate:192}]]),SY=new Map,TY=(uY=WH(Hk),dY=WH(Hk),pY=WH(Hk),fY=WH(Hk),hY=TH.apply(void 0,M(IH.LOCAL_STREAM.switchDevice)),mY=TH(IH.STREAM.addTrack),vY=TH(IH.STREAM.removeTrack),gY=TH(IH.STREAM.replaceTrack),_Y=PH({retries:10,timeout:3e3,onRetryFailed:function(e){sL.logFailedEvent({userId:this.client_?this.client_.getUserId():this.userId_,eventType:uk,error:e}),this.emitter_.emit(BA,new _D({code:gD.DEVICE_AUTO_RECOVER_FAILED,message:e.message}))}}),yY=SH(IH.LOCAL_STREAM.setAudioCaptureVolume),bY=WH(Hk),OY=function(e){d(w,e);var t,a,c,u,f,h,m,v,g,y,O,M,k,C=_(w);function w(e){var t;s(this,w);var r=n(n({},e),{isRemote:!1,type:"local"});return(t=C.call(this,r)).name_=Hk,t.client_=null,t.video_=e.video,t.audio_=e.audio,t.cameraId_=e.cameraId,t.cameraGroupId_="",t.facingMode_=e.facingMode,t.microphoneId_=e.microphoneId,t.microphoneGroupId_="",t.microphoneLabel_="",t.videoSource_=e.videoSource,t.audioSource_=e.audioSource,t.screen_=e.screen,t.screenAudio_=e.screenAudio,t.audioProfile_={echoCancellation:!0,autoGainControl:!0,noiseSuppression:!0,sampleRate:48e3,channelCount:1,bitrate:40},t.screenAudio_&&(t.audioProfile_.echoCancellation=!0,t.audioProfile_.autoGainControl=!1,t.audioProfile_.noiseSuppression=!1),pT(e.echoCancellation)&&(t.audioProfile_.echoCancellation=e.echoCancellation),pT(e.autoGainControl)&&(t.audioProfile_.autoGainControl=e.autoGainControl),pT(e.noiseSuppression)&&(t.audioProfile_.noiseSuppression=e.noiseSuppression),t.videoProfile_=CY.get("480p_2"),t.screenProfile_=wY.get("1080p"),t.videoSetting_=null,t.muteState_={video:!1,audio:!1,auxVideo:!1},t.beautyStatus_=!1,t.prevAudioRecoverTime_=0,t.prevVideoRecoverTime_=0,t.isAudioRecovering_=!1,t.isVideoRecovering_=!1,t.initState(),t.canvas_=null,t.canvasInterval_=null,t.canvasTrack_=null,t.gain_={audioTrack:null,source:null,gainNode:null},t.captureVolume_=100,t.enableAutoRecoverCapture_=!!lT(e.enableAutoRecoverCapture)||e.enableAutoRecoverCapture,t.enableAutoRecoverOther_=!pT(e.enableAutoRecoverOther)||e.enableAutoRecoverOther,t.log_.info("stream created: ".concat(t.id_," autoRecover: ").concat(t.enableAutoRecoverCapture_)),t.isAIDenoiser=!1,t}return l(w,[{key:"initState",value:function(){this.isAddingTrack_=!1,this.isRemovingTrack_=!1,this.setIsReadyToPublish(!1),this.setPublishState(jk)}},{key:"installEvents",value:function(){b(p(w.prototype),"installEvents",this).call(this),NT.on(OE,this.onVideoTrackStopped,this),NT.on(vE,this.onVideoTrackStopped,this),NT.on(kE,this.onAudioTrackStopped,this),NT.on(ME,this.onAudioTrackStopped,this)}},{key:"uninstallEvents",value:function(){b(p(w.prototype),"uninstallEvents",this).call(this),NT.off(OE,this.onVideoTrackStopped,this),NT.off(vE,this.onVideoTrackStopped,this),NT.off(kE,this.onAudioTrackStopped,this),NT.off(ME,this.onAudioTrackStopped,this)}},{key:"initialize",value:function(){var e=this;return new Promise((function(t,n){if(MA())n(new _D({code:gD.INVALID_OPERATION,message:eT({key:rI})}));else{if(lT(e.audio_)){var r=new MediaStream;return lT(e.audioSource_)||(r.addTrack(e.audioSource_),e.updateAudioPlayingState(!0)),lT(e.videoSource_)||(r.addTrack(e.videoSource_),e.updateVideoPlayingState(!0)),e.setMediaStream(r),sL.logSuccessEvent({userId:e.client_?e.client_.getUserId():e.userId_,eventType:sk,kind:"custom"}),e.setIsReadyToPublish(!0),t()}e.screen_?(e.log_.info("initialize stream audio: "+e.audio_+" screenAudio: "+e.screenAudio_+" screen: "+e.screen_),sY({audio:e.audio_,screenAudio:e.screenAudio_,microphoneId:e.microphoneId_,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 r.applyConstraints&&r.applyConstraints({frameRate:{min:e.screenProfile_.frameRate,ideal:e.screenProfile_.frameRate},width:e.screenProfile_.width,height:e.screenProfile_.height}).catch((function(t){e.warn("screen applyConstraints failed: ".concat(t))})),e.listenForScreenSharingStopped(r),e.setVideoContentHint(HO),e.updateDeviceIdInUse(),e.setIsReadyToPublish(!0),e.log_.info(JSON.stringify(r.getSettings())),sL.logSuccessEvent({userId:e.client_?e.client_.getUserId():e.userId_,eventType:sk,kind:"getDisplayMedia"}),t()})).catch((function(t){sL.logFailedEvent({userId:e.client_?e.client_.getUserId():e.userId_,eventType:sk,kind:"getDisplayMedia",error:t}),e.log_.error("getDisplayMedia error observed "+t),n(t instanceof _D?t:new _D({code:gD.INITIALIZE_FAILED,name:t.name,message:t.message}))}))):(NT.emit(fE,{stream:e,audio:e.audio_,video:e.video_}),e.log_.info("initialize stream audio: "+e.audio_+" video: "+e.video_),rY({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,useExact:!0,retryWhenExactFailed:!0}).then((function(n){return NT.emit(hE,{stream:e,audio:e.audio_,video:e.video_}),e.setMediaStream(n),n.getTracks().forEach((function(t){if(DA){var n=t.getSettings();e.log_.debug("".concat(t.kind," settings: ").concat(JSON.stringify(n))),t.kind===IO&&(e.videoSetting_=n)}LA&&e.log_.info("".concat(t.kind," capabilities: ").concat(jT(t.getCapabilities(),vC)))})),e.updateAudioPlayingState(e.audio_),e.updateVideoPlayingState(e.video_),e.updateDeviceIdInUse(),e.log_.info("gotStream hasAudio: "+e.hasAudio()+" hasVideo: "+e.hasVideo()),e.setIsReadyToPublish(!0),sL.logSuccessEvent({userId:e.client_?e.client_.getUserId():e.userId_,eventType:sk,kind:"getUserMedia"}),t()})).catch((function(t){NT.emit(mE,{stream:e,audio:e.audio_,video:e.video_,error:t}),sL.logFailedEvent({userId:e.client_?e.client_.getUserId():e.userId_,eventType:sk,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(PA)}))}},{key:"muteAudio",value:function(){var e=b(p(w.prototype),"muteAudio",this).call(this);return e&&(this.log_.info("localStream mute audio"),this.sendMutedFlag(wO,!0)),e}},{key:"muteVideo",value:function(){var e=b(p(w.prototype),"muteVideo",this).call(this);return e&&(this.log_.info("localStream mute video"),this.sendMutedFlag(IO,!0)),e}},{key:"unmuteAudio",value:function(){var e=b(p(w.prototype),"unmuteAudio",this).call(this);return e&&(this.log_.info("localStream unmute audio"),this.sendMutedFlag(wO,!1)),e}},{key:"unmuteVideo",value:function(){var e=b(p(w.prototype),"unmuteVideo",this).call(this);return e&&(this.log_.info("localStream unmute video"),this.sendMutedFlag(IO,!1)),e}},{key:"sendMutedFlag",value:function(e,t){this.setMuteState(e,t);var n=this.getConnection();if(n){n.sendMutedFlag(this.muteState_,this);var r=n.getUserId(),o=n.getTinyId(),a="".concat(t?xO:RO," local ").concat(e," track");nL(r,{eventId:e===wO?t?kD:wD:t?CD:ID,eventDesc:a,timestamp:Ym(),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:(k=i(r().mark((function e(t){var a,i,s;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("object"===o(t)?a=t:void 0===(a=IY.get(t))&&(a=IY.get("standard")),this.log_.info("setAudioProfile: "+JSON.stringify(a)),!(i=this.getAudioTrack())){e.next=6;break}return e.next=6,i.applyConstraints(a);case 6:if(s=this.audioProfile_.bitrate!==a.bitrate,this.audioProfile_=n(n({},this.audioProfile_),a),!s||!this.connection_){e.next=12;break}return e.next=11,this.connection_.setBandwidth({bandwidth:this.audioProfile_.bitrate,type:wO});case 11:this.connection_.sendMediaSettings(this);case 12:case"end":return e.stop()}}),e,this)}))),function(e){return k.apply(this,arguments)})},{key:"setVideoProfile",value:(M=i(r().mark((function e(t){var o,a,i,s;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.connection_||bA()){e.next=2;break}throw new _D({code:gD.NOT_SUPPORTED,message:eT({key:aI})});case 2:if(aT(t)?a=n(n({},this.videoProfile_),t):uT(t)&&(a=CY.get(t),lT(a)&&(a=CY.get("480p_2"))),null!==(o=this.client_)&&void 0!==o&&o.get2k4kFlag()&&(1!==this.client_.get2k4kFlag()&&!this.screen_&&a.height*a.width>=3686400?(a.width=1920,a.height=1080,this.log_.warn(hC)):qH.handleFunctionState({fnName:"2K_4K"})),a&&a.width*a.height>921600&&WS&&(a.width=1280,a.height=720,this.log_.warn("reset to 1280 * 720 on iOS 13~14")),this.log_.info("setVideoProfile "+JSON.stringify(a)),!(i=this.getVideoTrack())){e.next=10;break}return e.next=10,i.applyConstraints(a);case 10:if(s=this.videoProfile_.bitrate!==a.bitrate,this.videoProfile_=a,!s||!this.connection_){e.next=16;break}return e.next=15,this.connection_.setBandwidth({bandwidth:a.bitrate,type:IO,videoType:EO});case 15:this.connection_.sendMediaSettings(this);case 16:case"end":return e.stop()}}),e,this)}))),function(e){return M.apply(this,arguments)})},{key:"getVideoBitrate",value:function(){return this.screen_?this.screenProfile_.bitrate:this.videoProfile_.bitrate}},{key:"getAudioBitrate",value:function(){return this.audioProfile_.bitrate}},{key:"setScreenProfile",value:function(e){var t=e;uT(e)&&(t=wY.get(e)||wY.get("1080p")),this.log_.info("setScreenProfile "+JSON.stringify(e)),this.screenProfile_=t}},{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:(O=i(r().mark((function e(t,n){var o,a,i,s,c,l,u,d,p,f,h,m,v,g,_,y,b,O;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.mediaStream_&&this.cameraId_!==n&&this.facingMode_!==n){e.next=2;break}return e.abrupt("return");case 2:if(a=t===IO,!(o=t===wO)||n!==this.microphoneId_){e.next=11;break}if(n===eC){e.next=7;break}return e.abrupt("return");case 7:return e.next=9,rN(this.microphoneGroupId_,this.microphoneLabel_);case 9:if(!e.sent){e.next=11;break}return e.abrupt("return");case 11:return this.setIsReadyToPublish(!1),this.log_.info("switchDevice "+t+" to: "+n),o&&(i=this.getAudioTrack(),s=this.getMicrophoneTrackMixed(),i&&i.stop(),s&&s.stop()),a&&((c=this.getVideoTrack())&&c.stop(),SS&&(l=this.getAudioTrack())&&(this.log_.info("stop audio track first in huawei env"),l.stop())),e.prev=15,e.next=18,rY({audio:o||SS,video:a,facingMode:n===AO||n===NO?n:void 0,cameraId:a?n:this.cameraId_,microphoneId:o?n:this.microphoneId_,width:this.videoProfile_.width,height:this.videoProfile_.height,frameRate:this.videoProfile_.frameRate,sampleRate:this.audioProfile_.sampleRate,channelCount:this.audioProfile_.channelCount,useExact:!0,retryWhenExactFailed:!1});case 18:if(u=e.sent,d=null,!o){e.next=25;break}(p=u.getAudioTracks()[0])&&this.isAudioTrackMixed()?(f=this.getAudioTrack(),h=KW.AudioMixerPlugin.getAudioTrackMap(),m=KW.AudioMixerPlugin.mix({targetTrack:p,sourceList:h.get(f.id).sourceList,trackList:h.get(f.id).trackList}),d=m):d=p,e.next=34;break;case 25:if(!(d=u.getVideoTracks()[0])||!this.isVideoTrackBeautified()){e.next=30;break}return e.next=29,this.generateBeautyTrack(d);case 29:d=e.sent;case 30:if(!(v=u.getAudioTracks()[0])||!SS){e.next=34;break}return e.next=34,this.replaceTrack(v);case 34:return e.next=36,this.replaceTrack(d);case 36:this.updateDeviceIdInUse(),(g=this.getConnection())&&(_=g.getUserId(),y=g.getTinyId(),b=jD,O="switch camera",o&&(b=DD,O="switch microphone"),nL(_,{eventId:b,eventDesc:O,timestamp:Ym(),userId:_,tinyId:y})),this.log_.info("switch ".concat(o?"microphone":"camera"," success ")),o&&(this.audio_=!0),a&&(this.video_=!0,n!==NO&&n!==AO||(this.facingMode_=n)),this.setIsReadyToPublish(!0),e.next=50;break;case 45:throw e.prev=45,e.t0=e.catch(15),this.log_.error(e.t0),o?this.recoverCapture({audio:!0,video:!1,microphoneId:this.microphoneId_}):this.recoverCapture({audio:!1,video:!0,cameraId:this.cameraId_,facingMode:this.facingMode_}),e.t0;case 50:case"end":return e.stop()}}),e,this,[[15,45]])}))),function(e,t){return O.apply(this,arguments)})},{key:"addTrack",value:(y=i(r().mark((function e(t){var n,o,a;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,t.kind===IO&&DA&&(n=t.getSettings(),!this.videoSetting_||n.width===this.videoSetting_.width&&n.height===this.videoSetting_.height||this.log_.warn("video resolution of the track (".concat(n.width," x ").concat(n.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.isAddingTrack_=!0,this.keepMuteState(t),this.mediaStream_.addTrack(t),!(o=this.getConnection())){e.next=11;break}return a=null,t.kind===IO&&(qS||YS)&&mT(t)&&(a=this.getCanvasTrack()),e.next=11,o.addTrack(a||t,this);case 11:t.kind===wO?(this.audio_=!0,this.updateAudioPlayingState(!0),100!==this.captureVolume_&&this.setAudioCaptureVolume(this.captureVolume_)):(this.video_=!0,this.updateVideoPlayingState(!0)),this.isAddingTrack_=!1,e.next=20;break;case 15:throw e.prev=15,e.t0=e.catch(0),this.mediaStream_.removeTrack(t),this.isAddingTrack_=!1,e.t0;case 20:case"end":return e.stop()}}),e,this,[[0,15]])}))),function(e){return y.apply(this,arguments)})},{key:"removeTrack",value:(g=i(r().mark((function e(t){var n;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,this.isRemovingTrack_=!0,!(n=this.getConnection())){e.next=17;break}if(t.kind!==IO||!qS&&!YS||!this.canvasTrack_){e.next=10;break}return e.next=7,n.removeTrack(this.canvasTrack_,this);case 7:this.clearCanvas(),e.next=17;break;case 10:if(t.kind!==wO||!this.gain_.audioTrack){e.next=15;break}return e.next=13,n.removeTrack(this.gain_.audioTrack,this);case 13:e.next=17;break;case 15:return e.next=17,n.removeTrack(t,this);case 17:this.mediaStream_.removeTrack(t),t.kind===wO?(this.audio_=!1,this.updateAudioPlayingState(!1),this.stopGainNode()):(this.video_=!1,this.updateVideoPlayingState(!1)),this.isRemovingTrack_=!1,e.next=26;break;case 22:throw e.prev=22,e.t0=e.catch(0),this.isRemovingTrack_=!1,e.t0;case 26:case"end":return e.stop()}}),e,this,[[0,22]])}))),function(e){return g.apply(this,arguments)})},{key:"replaceTrack",value:(v=i(r().mark((function e(t){var n,o,a;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.kind===IO&&DA&&(n=t.getSettings(),!this.videoSetting_||n.width===this.videoSetting_.width&&n.height===this.videoSetting_.height||this.log_.warn("video resolution of the track (".concat(n.width," x ").concat(n.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),o=this.mediaStream_,t.kind!==wO){e.next=12;break}if(o.removeTrack(o.getAudioTracks()[0]),o.addTrack(t),b(p(w.prototype),"restartAudio",this).call(this),!this.gain_.gainNode){e.next=10;break}return this.reconnectGainNode(t),e.abrupt("return");case 10:e.next=15;break;case 12:o.removeTrack(o.getVideoTracks()[0]),o.addTrack(t),b(p(w.prototype),"restartVideo",this).call(this);case 15:if(!(a=this.getConnection())){e.next=21;break}if(t.kind!==IO||!qS&&!YS||!this.canvasTrack_){e.next=19;break}return e.abrupt("return");case 19:return e.next=21,a.replaceTrack(t,this);case 21:case"end":return e.stop()}}),e,this)}))),function(e){return v.apply(this,arguments)})},{key:"recoverCapture",value:(m=i(r().mark((function e(t){var n,o,a,i,s,c,l,u,d,p,f,h,m,v,g,_,y;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(!this.mediaStream_||!this.enableAutoRecoverCapture_||t.audio&&!t.video&&this.isAudioRecovering_||t.video&&!t.audio&&this.isVideoRecovering_)){e.next=2;break}return e.abrupt("return");case 2:return t.audio&&(this.isAudioRecovering_=!0),t.video&&(this.isVideoRecovering_=!0),this.log_.warn("recoverCapture() trying "+JSON.stringify(t)),n=this.audio_&&t.audio,o=this.video_&&t.video,e.prev=7,e.next=10,KW.getCameras();case 10:return a=e.sent,e.next=13,KW.getMicrophones();case 13:if(i=e.sent,o&&0===a.length&&(o=!1,this.log_.warn("recoverCapture() video flag is true, but no camera detected, set video to false")),n&&0===i.length&&(n=!1,this.log_.warn("recoverCapture() audio flag is true, but no microphone detected, set audio to false")),n||o){e.next=21;break}return t.audio&&(this.isAudioRecovering_=!1),t.video&&(this.isVideoRecovering_=!1),this.log_.warn("recoverCapture() both audio and video are false, aborted"),e.abrupt("return");case 21:return s=t&&a.findIndex((function(e){return e.deviceId===t.cameraId}))>=0,c=t&&i.findIndex((function(e){return e.deviceId===t.microphoneId}))>=0,n&&(null===(l=this.getAudioTrack())||void 0===l||l.stop()),o&&(null===(u=this.getVideoTrack())||void 0===u||u.stop()),e.next=27,rY({audio:n,video:o,cameraId:s?t.cameraId:void 0,microphoneId:c?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 27:d=e.sent,p=d.getTracks(),f=0;case 30:if(!(f<p.length)){e.next=57;break}if((h=p[f]).kind!==wO||!this.isAudioTrackMixed()){e.next=43;break}if(m=this.getAudioTrack(),v=KW.AudioMixerPlugin.getAudioTrackMap(),(g=v.get(m.id)).hasMicrophone){e.next=39;break}return h.stop(),e.abrupt("continue",54);case 39:return _=KW.AudioMixerPlugin.mix({targetTrack:h,sourceList:g.sourceList,trackList:g.trackList}),e.next=42,this.replaceTrack(_);case 42:return e.abrupt("continue",54);case 43:if(h.kind!==IO||!this.isVideoTrackBeautified()){e.next=50;break}return e.next=46,this.generateBeautyTrack(h);case 46:return y=e.sent,e.next=49,this.replaceTrack(y);case 49:return e.abrupt("continue",54);case 50:return e.next=52,this.replaceTrack(h);case 52:if("ended"!==h.readyState){e.next=54;break}throw new Error("new track is failed, muted ".concat(h.muted," readyState ").concat(h.readyState));case 54:f++,e.next=30;break;case 57:this.updateDeviceIdInUse(),sL.logSuccessEvent({userId:this.client_?this.client_.getUserId():this.userId_,eventType:uk}),t.audio&&(this.isAudioRecovering_=!1),t.video&&(this.isVideoRecovering_=!1),this.log_.warn("recoverCapture() successfully"),this.emitter_.emit(VA,{isCamera:t.video,isMicrophone:t.audio,cameraId:this.cameraId_,microphoneId:this.microphoneId_}),e.next=71;break;case 65:throw e.prev=65,e.t0=e.catch(7),t.audio&&(this.isAudioRecovering_=!1),t.video&&(this.isVideoRecovering_=!1),this.log_.warn("recoverCapture() failed, "+e.t0),e.t0;case 71:case"end":return e.stop()}}),e,this,[[7,65]])}))),function(e){return m.apply(this,arguments)})},{key:"updateDeviceIdInUse",value:function(){var e=this;if(!this.mediaStream_)return this.cameraId_="",this.cameraGroupId_="",this.microphoneId_="",void(this.microphoneGroupId_="");DA&&this.mediaStream_.getTracks().forEach((function(t){if(t.kind===wO&&e.isAudioTrackMixed()){var n=e.getMicrophoneTrackMixed();if(n){var r=n.getSettings(),o=r.deviceId,a=r.groupId;o&&(e.microphoneId_=o,e.microphoneGroupId_=a,e.microphoneLabel_=n.label)}}else if(t.kind===IO&&e.isVideoTrackBeautified()){var i=e.getBeautyOriginTrack();if(i){var s=i.getSettings(),c=s.deviceId,l=s.groupId;c&&(e.cameraId_=c,e.cameraGroupId_=l)}}else{var u=t.getSettings(),d=u.deviceId,p=u.groupId;d&&(t.kind===wO?(e.microphoneId_=d,e.microphoneGroupId_=p,e.microphoneLabel_=t.label):t.kind!==IO||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(KW.AudioMixerPlugin){var e=KW.AudioMixerPlugin.getAudioTrackMap(),t=this.getAudioTrack();if(e&&t&&e.has(t.id))return!0}return!1}},{key:"getMicrophoneTrackMixed",value:function(){if(KW.AudioMixerPlugin){var e=KW.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(KW.beautyTrackMap){var e=KW.beautyTrackMap,t=this.getVideoTrack();if(t&&e.has(t.id))return!0}return!1}},{key:"getBeautyOriginTrack",value:function(){if(KW.beautyTrackMap){var e=KW.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:(h=i(r().mark((function e(t){var n,o,a,i;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=null,o=this.getVideoTrack(),a=KW.beautyTrackMap.get(o.id),i=a.param,a.type){e.next=8;break}n=a.pluginInstance.generateBeautyTrack(t),e.next=22;break;case 8:e.t0=a.type,e.next="beauty"===e.t0?11:"virtual"===e.t0?13:"mixed"===e.t0?17:21;break;case 11:return n=a.pluginInstance.generateBeautyTrack(t),e.abrupt("break",22);case 13:return e.next=15,a.pluginInstance.generateVirtualTrack({videoTrack:t,type:i.type,img:i.img});case 15:case 19:return n=e.sent,e.abrupt("break",22);case 17:return e.next=19,a.pluginInstance.generateMixedTrack({videoTrack:t,type:i.type,img:i.img});case 21:return e.abrupt("break",22);case 22:return a.pluginInstance.deleteSource(o.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 h.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===HO||e.contentHint===YO)}},{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:"syncMuteState",value:function(){var e=this.getAudioTrack(),t=this.getVideoTrack();if(e){var n=!e.enabled;this.setMuteState(wO,n)}if(t){var r=!t.enabled;this.setMuteState(IO,r)}this.connection_&&this.connection_.sendMutedFlag(this.muteState_,this)}},{key:"keepMuteState",value:function(e){e instanceof window.MediaStreamTrack&&this.muteState_[e.kind]&&(e.enabled=!1,this.log_.warn("prev ".concat(e.kind," track is muted, keep mute state")))}},{key:"onVideoTrackStopped",value:(f=i(r().mark((function e(t){var n,o,a=this;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.stream,o=t.type,n===this&&this.video_&&this.cameraId_&&nN(this.getVideoTrack())&&!this.isVideoRecovering_&&(o!==xO||!yS||!BS)){e.next=3;break}return e.abrupt("return");case 3:if(!(Date.now()-this.prevVideoRecoverTime_<lC)){e.next=6;break}return setTimeout((function(){return a.onVideoTrackStopped({stream:n,type:o})}),lC),e.abrupt("return");case 6:o===xO?setTimeout((function(){var e=a.getVideoTrack();null!=e&&e.muted&&"visible"===document.visibilityState&&a.recoverVideoCapture(o)}),5e3):this.recoverVideoCapture(o);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return f.apply(this,arguments)})},{key:"onAudioTrackStopped",value:(u=i(r().mark((function e(t){var n,o,a=this;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.stream,o=t.type,!(n!==this||!this.audio_||!this.microphoneId_||this.isAudioRecovering_||o===xO&&yS&&BS)){e.next=3;break}return e.abrupt("return");case 3:if(!(Date.now()-this.prevAudioRecoverTime_<lC)){e.next=6;break}return setTimeout((function(){return a.onAudioTrackStopped({stream:n,type:o})}),lC),e.abrupt("return");case 6:o===xO?setTimeout((function(){var e=a.getAudioTrack();null!=e&&e.muted&&"visible"===document.visibilityState&&a.recoverAudioCapture(o)}),5e3):this.recoverAudioCapture(o);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return u.apply(this,arguments)})},{key:"recoverAudioCapture",value:(c=i(r().mark((function e(t){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.prevAudioRecoverTime_=Date.now(),sL.uploadEvent({log:"stat-local-audio-".concat(t),userId:this.userId_}),e.t0=this,e.next=5,this.getRecoverCaptureDeviceId(!1);case 5:e.t1=e.sent,e.t2={audio:!0,video:!1,microphoneId:e.t1},e.t0.recoverCapture.call(e.t0,e.t2);case 8:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"recoverVideoCapture",value:(a=i(r().mark((function e(t){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.prevVideoRecoverTime_=Date.now(),sL.uploadEvent({log:"stat-local-video-".concat(t),userId:this.userId_}),e.t0=this,e.next=5,this.getRecoverCaptureDeviceId(!0);case 5:e.t1=e.sent,e.t2={audio:!1,video:!0,cameraId:e.t1},e.t0.recoverCapture.call(e.t0,e.t2);case 8:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"getRecoverCaptureDeviceId",value:(t=i(r().mark((function e(){var t,n,o,a,i=arguments;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=!(i.length>0&&void 0!==i[0])||i[0],!(n=t?this.cameraId_:this.microphoneId_)||!this.enableAutoRecoverOther_){e.next=17;break}if(SY.has(n)?SY.set(n,SY.get(n)+1):SY.set(n,1),!((o=SY.get(n))>=3)){e.next=17;break}if(!t){e.next=12;break}return e.next=9,KW.getCameras();case 9:e.t0=e.sent.find((function(e){return!SY.has(e.deviceId)})),e.next=15;break;case 12:return e.next=14,KW.getMicrophones();case 14:e.t0=e.sent.find((function(e){return!SY.has(e.deviceId)}));case 15:(a=e.t0)&&(this.log_.warn("".concat(t?"camera":"mic"," ").concat(n," capture fail ").concat(o," times, change new ").concat(a.deviceId)),n=a.deviceId);case 17:return e.abrupt("return",n);case 18:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"setAudioVolume",value:function(e){b(p(w.prototype),"setAudioVolume",this).call(this,e)}},{key:"clearCanvas",value:function(){this.canvasInterval_&&(XL.clearTask(this.canvasInterval_),this.canvasInterval_=null,this.canvas_=null,this.canvasTrack_=null)}},{key:"getCanvasTrack",value:function(){var e=this;if(this.canvasTrack_)return this.canvasTrack_;this.log_.info("gen canvas track");var t=this.getVideoTrack().getSettings(),n=t.width,r=t.height,o=t.frameRate;this.canvas_=document.createElement("canvas");var a=this.canvas_.getContext("2d");this.canvas_.width=n,this.canvas_.height=r,this.canvasInterval_=XL.run(dC,(function(){if(e.hasVideo()){var t=e.getVideoTrack().getSettings();t.width===e.canvas_.width&&t.height===e.canvas_.height||(e.canvas_.width=t.width,e.canvas_.height=t.height)}e.videoPlayer_&&e.videoPlayer_.element_&&a.drawImage(e.videoPlayer_.element_,0,0,e.canvas_.width,e.canvas_.height)}),{fps:Math.max(15,o)});var i=this.canvas_.captureStream();return this.canvasTrack_=i.getVideoTracks()[0],this.canvasTrack_}},{key:"setClient",value:function(e,t){e&&(this.log_.setUserId(e.getUserId()),this.log_.setSdkAppId(e.getSDKAppId()),t||this.syncMuteState()),this.client_=e}},{key:"setAudioCaptureVolume",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100;if(!this.hasAudio()||t<0||!yA())return!1;if(this.captureVolume_===t)return!0;this.captureVolume_=t,this.log_.info("setCaptureVolume "+t),t/=100;var n=wT();if(this.gain_.gainNode)this.gain_.gainNode.gain.value=t;else{var r,o=new MediaStream;o.addTrack(this.getAudioTrack());var a=n.createMediaStreamDestination(),i=n.createMediaStreamSource(o),s=n.createGain();s.gain.value=t,i.connect(s),s.connect(a);var c=a.stream.getAudioTracks()[0],l=function(t){return e.log_.info("gained audio track ".concat(t))};c.onmute=function(){return l("muted")},c.onunmute=function(){return l("unmuted")},c.onended=function(){return l("ended")},this.gain_={source:i,audioTrack:c,gainNode:s},null===(r=this.connection_)||void 0===r||r.replaceTrack(c),b(p(w.prototype),"restartAudio",this).call(this)}return!0}},{key:"getGainedTrack",value:function(){return this.gain_.audioTrack}},{key:"reconnectGainNode",value:function(e){this.log_.warn("reconnect gain node");var t=new MediaStream;t.addTrack(e);var n=wT().createMediaStreamSource(t);n.connect(this.gain_.gainNode),this.gain_.source.disconnect(),this.gain_.source=n}},{key:"stopGainNode",value:function(){var e=this.gain_,t=e.audioTrack,n=e.source,r=e.gainNode;r&&(n.disconnect(),r.disconnect(),t.onmute=null,t.onunmute=null,t.onended=null,t.stop(),this.gain_={source:null,gainNode:null,audioTrack:null}),this.captureVolume_=100}},{key:"close",value:function(){this.setIsReadyToPublish(!1),this.stopGainNode(),b(p(w.prototype),"close",this).call(this)}},{key:"setIsAIDenoiser",value:function(e){this.isAIDenoiser=e}}]),w}(KH),I(OY.prototype,"setAudioProfile",[uY],Object.getOwnPropertyDescriptor(OY.prototype,"setAudioProfile"),OY.prototype),I(OY.prototype,"setVideoProfile",[dY],Object.getOwnPropertyDescriptor(OY.prototype,"setVideoProfile"),OY.prototype),I(OY.prototype,"setScreenProfile",[pY],Object.getOwnPropertyDescriptor(OY.prototype,"setScreenProfile"),OY.prototype),I(OY.prototype,"setVideoContentHint",[fY],Object.getOwnPropertyDescriptor(OY.prototype,"setVideoContentHint"),OY.prototype),I(OY.prototype,"switchDevice",[hY],Object.getOwnPropertyDescriptor(OY.prototype,"switchDevice"),OY.prototype),I(OY.prototype,"addTrack",[mY],Object.getOwnPropertyDescriptor(OY.prototype,"addTrack"),OY.prototype),I(OY.prototype,"removeTrack",[vY],Object.getOwnPropertyDescriptor(OY.prototype,"removeTrack"),OY.prototype),I(OY.prototype,"replaceTrack",[gY],Object.getOwnPropertyDescriptor(OY.prototype,"replaceTrack"),OY.prototype),I(OY.prototype,"recoverCapture",[_Y],Object.getOwnPropertyDescriptor(OY.prototype,"recoverCapture"),OY.prototype),I(OY.prototype,"setAudioCaptureVolume",[yY,bY],Object.getOwnPropertyDescriptor(OY.prototype,"setAudioCaptureVolume"),OY.prototype),OY),EY={voiceActivityDetection:!1},jY=(MY=PH({retries:1,timeout:0,onRetrying:function(e){this.log_.warn("connection timeout, retrying [".concat(e,"]"))},onError:function(e,t,n){e.message.includes("timeout")?(this.reset(),this.initialize(),t()):n(e)}}),kY=function(e){d(D,e);var t,o,a,c,u,f,h,m,v,g,y,O,M,k,C,w,I,S,T,E,j=_(D);function D(e){var t;return s(this,D),(t=j.call(this,e)).localStream_=null,t.exchangeSDPTimeout_=-1,t.localAuxStream_=null,t.publishingStream_=null,t.isPublishingAuxStream_=!1,t.smallGenerator_=null,t.isSDPExchanging_=!1,t.ssrc_={audio:0,video:0,small:0,auxiliary:0},t.mediaSettings_={videoCodec:"",videoWidth:0,videoHeight:0,videoBps:0,videoFps:0,audioCodec:"opus",audioFs:0,audioChannel:0,audioBps:0,smallVideoWidth:0,smallVideoHeight:0,smallVideoFps:0,smallVideoBps:0,auxVideoWidth:0,auxVideoHeight:0,auxVideoFps:0,auxVideoBps:0},t.mixedAudioTrack_=null,t}return l(D,[{key:"isMainStreamPublished",get:function(){return!!this.localStream_}},{key:"isAuxStreamPublished",get:function(){return!!this.localAuxStream_}},{key:"publishState",get:function(){var e=this,t={audio:!1,bigVideo:!1,smallVideo:!1,auxVideo:!1};if(this.peerConnection_){var n,r,o,a,i=this.peerConnection_.getSenders();i&&(gA()?(t.audio=!(null===(n=i[0])||void 0===n||!n.track),t.bigVideo=!(null===(r=i[1])||void 0===r||!r.track),t.smallVideo=!(null===(o=i[2])||void 0===o||!o.track),t.auxVideo=!(null===(a=i[3])||void 0===a||!a.track)):i.forEach((function(n){n.track&&(n.track.kind===wO?t.audio=!0:(t.bigVideo=!0,e.smallGenerator_&&(t.smallVideo=!0)))})))}return t}},{key:"initialize",value:function(){b(p(D.prototype),"initialize",this).call(this),this.installEvents()}},{key:"reset",value:function(){this.isReconnecting_&&this.stopReconnection(),this.closePeerConnection(),this.uninstallEvents(),this.clearExchangeSDPTimeout(),this.localStream_&&this.localStream_.clearCanvas()}},{key:"close",value:function(){b(p(D.prototype),"close",this).call(this),this.reset(),this.emitConnectionStateChangedEvent(LM),this.smallGenerator_&&(this.smallGenerator_.destroy(),this.smallGenerator_=null)}},{key:"installEvents",value:function(){this.emitter_.on(NA.ERROR,this.handleError,this),this.emitter_.on(NA.CONNECTION_STATE_CHANGED,this.handleConnectionStateChange,this)}},{key:"uninstallEvents",value:function(){this.emitter_.off(NA.ERROR,this.handleError,this),this.emitter_.off(NA.CONNECTION_STATE_CHANGED,this.handleConnectionStateChange,this)}},{key:"publish",value:(E=i(r().mark((function e(t,n){var o,a,i,s;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.publishingStream_=t,this.isPublishingAuxStream_=n,a=t.getVideoTrack(),i=null,!a||n||!this.client_.getIsEnableSmallStream()){e.next=9;break}return this.smallGenerator_=new eY(t),e.next=8,this.smallGenerator_.initialize();case 8:i=this.smallGenerator_.generateSmallVideoTrack(this.client_.smallStreamConfig_);case 9:if(s=t.getVideoProfile(),!this.client_.get2k4kFlag()){e.next=18;break}if(1===this.client_.get2k4kFlag()||t.getScreen()||!(s.height*s.width>=3686400)){e.next=18;break}return s.width=1920,s.height=1080,this.log_.warn(hC),e.next=18,t.setVideoProfile(s);case 18:if(!(qI&&115===xS()&&s.width*s.height<=230400)){e.next=22;break}return this.log_.warn("fallback video to 480p"),e.next=22,t.setVideoProfile("480p_2");case 22:if(this.updateMediaSettings(t,n),!_A()){e.next=33;break}if(!YI||11!==HS){e.next=29;break}return e.next=27,this.publishByAddTrack(t,i);case 27:e.next=31;break;case 29:return e.next=31,this.publishByTransceiver(t,i,n);case 31:e.next=35;break;case 33:return e.next=35,this.publishByAddTrack(t,i);case 35:return this.publishingStream_=null,this.isPublishingAuxStream_=!1,n?this.localAuxStream_=t:this.localStream_=t,null===(o=this.sei_)||void 0===o||o.handleEncodedStreams(),e.abrupt("return",t);case 40:case"end":return e.stop()}}),e,this)}))),function(e,t){return E.apply(this,arguments)})},{key:"publishByTransceiver",value:(T=i(r().mark((function e(t,n,o){var a,i,s,c,l,u,d;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.log_.info("publish by transceiver"),a=t.getMediaStream(),i=t.getAudioTrack(),s=t.getVideoTrack(),c=null,(qS||YS)&&mT(s)&&(c=t.getCanvasTrack()),0!==(l=this.peerConnection_.getTransceivers()).length){e.next=16;break}return this.peerConnection_.addTransceiver(i||wO,{direction:rM,streams:[a]}),this.peerConnection_.addTransceiver(o?IO:c||s||IO,{direction:rM,streams:[a]}),this.peerConnection_.addTransceiver(n||IO,{direction:rM,streams:[a]}),this.peerConnection_.addTransceiver(o?c||s:IO,{direction:rM,streams:[a]}),e.next=14,this.connect();case 14:e.next=46;break;case 16:if(u=[],!i){e.next=29;break}if(!l[0].sender.track){e.next=24;break}return this.mixAudioTrack(l[0].sender.track,i),e.next=22,l[0].sender.replaceTrack(this.mixedAudioTrack_);case 22:e.next=27;break;case 24:return e.next=26,l[0].sender.replaceTrack(i);case 26:u.push(0);case 27:return e.next=29,this.setBandwidth({bandwidth:t.getAudioBitrate(),type:wO});case 29:if(!s){e.next=42;break}return d=o?3:1,e.next=33,l[d].sender.replaceTrack(c||s);case 33:return e.next=35,this.setBandwidth({bandwidth:t.getVideoBitrate(),type:IO,videoType:o?jO:EO});case 35:if(u.push(d),!n){e.next=42;break}return e.next=39,l[2].sender.replaceTrack(n);case 39:return e.next=41,this.setBandwidth({bandwidth:this.client_.smallStreamConfig.bitrate,type:IO,videoType:TO});case 41:u.push(2);case 42:return e.next=44,this.setTransceiverDirection(rM,u);case 44:return e.next=46,this.doPublishChange();case 46:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return T.apply(this,arguments)})},{key:"publishByAddTrack",value:(S=i(r().mark((function e(t,n){var o,a,i,s;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.log_.info("publish by addtrack"),o=t.getMediaStream(),a=t.getAudioTrack(),i=t.getVideoTrack(),a&&this.peerConnection_.addTrack(a,o),i&&(this.peerConnection_.addTrack(i,o),n&&((s=new MediaStream).addTrack(n),this.peerConnection_.addTrack(n,s))),e.next=8,this.connect();case 8:case"end":return e.stop()}}),e,this)}))),function(e,t){return S.apply(this,arguments)})},{key:"unpublish",value:(I=i(r().mark((function e(t){var o,a,i,s;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(gA()){e.next=2;break}return e.abrupt("return",this.doUnpublish());case 2:if(o=t.getAudioTrack(),a=t===this.localAuxStream_,i=[],!this.peerConnection_){e.next=33;break}if(s=this.peerConnection_.getSenders(),!o){e.next=18;break}if(!this.mixedAudioTrack_){e.next=15;break}return this.log_.info("has mixed audioTrack, use another audioTrack"),e.next=12,s[0].replaceTrack(a?this.localStream_.getAudioTrack():this.localAuxStream_.getAudioTrack());case 12:this.destroyMixedAudioTrack(),e.next=18;break;case 15:return e.next=17,s[0].replaceTrack(null);case 17:i.push(0);case 18:if(!a){e.next=26;break}return e.next=21,s[3].replaceTrack(null);case 21:this.localAuxStream_=null,this.mediaSettings_=n(n({},this.mediaSettings_),{},{auxVideoBps:0,auxVideoFps:0,auxVideoWidth:0,auxVideoHeight:0}),i.push(3),e.next=33;break;case 26:return e.next=28,s[1].replaceTrack(null);case 28:return e.next=30,s[2].replaceTrack(null);case 30:this.localStream_=null,this.mediaSettings_=n(n({},this.mediaSettings_),{},{videoWidth:0,videoHeight:0,videoBps:0,videoFps:0,audioFs:0,audioChannel:0,audioBps:0,smallVideoWidth:0,smallVideoHeight:0,smallVideoFps:0,smallVideoBps:0}),i.push(1,2);case 33:if(!this.localStream_&&!this.localAuxStream_){e.next=40;break}return e.next=36,this.setTransceiverDirection(nM,i);case 36:return e.next=38,this.doPublishChange();case 38:e.next=42;break;case 40:return e.next=42,this.doUnpublish();case 42:case"end":return e.stop()}}),e,this)}))),function(e){return I.apply(this,arguments)})},{key:"doPublishChange",value:(w=i(r().mark((function e(){var t,n;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={state:this.publishState,constraintConfig:this.mediaSettings_},e.next=3,this.signalChannel_.sendWaitForResponse({command:Xj,data:t,responseCommand:Jj.PUBLISH_STATE_CHANGE_RESULT});case 3:n=e.sent,this.checkPublishResultCode(n.data.code,n.data.message);case 5:case"end":return e.stop()}}),e,this)}))),function(){return w.apply(this,arguments)})},{key:"doUnpublish",value:function(){var e=this;return this.signalChannel_.sendWaitForResponse({command:oD,commandDesc:"unpublish",responseCommand:Jj.UNPUBLISH_RESULT}).then((function(){e.close()})).catch((function(){e.close()}))}},{key:"updateMediaSettings",value:function(e,t){var n=this;this.localAuxStream_&&e===this.localAuxStream_&&(t=!0);var r=this.client_.getSystemResult().detail,o=r.isH264EncodeSupported,a=r.isVp8EncodeSupported;if(o?this.mediaSettings_.videoCodec="H264":a&&(this.mediaSettings_.videoCodec="VP8"),DA){var i=e.getMediaStream();null==i||i.getTracks().forEach((function(r){var o=r.getSettings();if(r.kind===wO){var a=1;o.channelCount&&(a=o.channelCount),n.mediaSettings_.audioChannel=a,n.mediaSettings_.audioBps=1e3*e.getAudioBitrate(),n.mediaSettings_.audioFs=o.sampleRate}else if(r.kind===IO){if(t)return n.mediaSettings_.auxVideoWidth=o.width,n.mediaSettings_.auxVideoHeight=o.height,n.mediaSettings_.auxVideoFps=o.frameRate,void(n.mediaSettings_.auxVideoBps=1e3*e.getVideoBitrate());n.client_.getIsEnableSmallStream()&&(n.mediaSettings_.smallVideoWidth=n.client_.smallStreamConfig.width,n.mediaSettings_.smallVideoHeight=n.client_.smallStreamConfig.height,n.mediaSettings_.smallVideoFps=n.client_.smallStreamConfig.frameRate,n.mediaSettings_.smallVideoBps=1e3*n.client_.smallStreamConfig.bitrate),n.mediaSettings_.videoWidth=o.width,n.mediaSettings_.videoHeight=o.height,n.mediaSettings_.videoFps=o.frameRate,n.mediaSettings_.videoBps=1e3*e.getVideoBitrate()}}))}else this.updateMediaSettingsFromProfile(e);this.log_.info("updateMediaSettings: "+JSON.stringify(this.mediaSettings_))}},{key:"updateMediaSettingsFromProfile",value:function(e){if(e){if(e.hasAudio()){var t=e.getAudioProfile();this.mediaSettings_.audioChannel=t.channelCount,this.mediaSettings_.audioBps=1e3*t.bitrate,this.mediaSettings_.audioFs=t.sampleRate}if(e.hasVideo()){var n=e.getVideoProfile();this.mediaSettings_.videoWidth=n.width,this.mediaSettings_.videoHeight=n.height,this.mediaSettings_.videoFps=n.frameRate,this.mediaSettings_.videoBps=1e3*n.bitrate}}}},{key:"sendMediaSettings",value:function(e){var t=this;this.updateMediaSettings(e),this.signalChannel_.sendWaitForResponse({command:vD,data:this.mediaSettings_,responseCommand:Jj.UPDATE_CONSTRAINT_CONFIG_RES}).then((function(e){0!==e.data.code&&t.log_.warn(e.data.message)})).catch(this.log_.warn)}},{key:"addTrack",value:(C=i(r().mark((function e(t,n){var o,a;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.peerConnection_){e.next=2;break}return e.abrupt("return");case 2:if(a=n===this.localAuxStream_,this.log_.info("is adding ".concat(t.kind," track to current published local ").concat(a?jO:qO," stream")),null===(o=this.sei_)||void 0===o||o.handleEncodedStreams(),!gA()){e.next=10;break}return e.next=8,this.addTrackByTransceiver(t,n);case 8:e.next=12;break;case 10:return e.next=12,this.addTrackBySender(t);case 12:nL(this.userId_,{eventId:t.kind===wO?bD:yD,eventDesc:"add ".concat(t.kind," track to current published stream"),timestamp:Ym(),userId:this.userId_,tinyId:this.tinyId_});case 13:case"end":return e.stop()}}),e,this)}))),function(e,t){return C.apply(this,arguments)})},{key:"addTrackByTransceiver",value:(k=i(r().mark((function e(t,n){var o,a,i,s;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=n===this.localAuxStream_,a=this.peerConnection_.getTransceivers(),t.kind!==wO){e.next=13;break}if(!a[0].sender.track){e.next=9;break}return this.mixAudioTrack(a[0].sender.track,t),e.next=7,a[0].sender.replaceTrack(this.mixedAudioTrack_);case 7:e.next=11;break;case 9:return e.next=11,a[0].sender.replaceTrack(t);case 11:e.next=26;break;case 13:return i=o?3:1,e.next=16,a[i].sender.replaceTrack(t);case 16:if(1!==i||!this.client_.getIsEnableSmallStream()){e.next=23;break}return this.smallGenerator_=new eY(this.localStream_),e.next=20,this.smallGenerator_.initialize();case 20:return s=this.smallGenerator_.generateSmallVideoTrack(this.client_.smallStreamConfig_),e.next=23,a[2].sender.replaceTrack(s);case 23:if(a[i].direction!==nM){e.next=26;break}return e.next=26,this.setTransceiverDirection(rM,[i]);case 26:return this.updateMediaSettings(n,o),e.next=29,this.doPublishChange();case 29:case"end":return e.stop()}}),e,this)}))),function(e,t){return k.apply(this,arguments)})},{key:"addTrackBySender",value:(M=i(r().mark((function e(t){var n,o,a,i,s;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(gA()&&this.peerConnection_.getTransceivers().findIndex((function(e){return"stopped"===e.direction}))>=0)){e.next=4;break}return this.log_.warn("transceiver is stopping, negotiate sdp first"),e.next=4,this.updateOffer(Tk.REMOVE,t);case 4:if(!(n=this.peerConnection_.getSenders().find((function(e){return e.track&&e.track.kind===t.kind})))){e.next=11;break}return this.log_.warn("sender already exists, remove sender first"),o=n.track,this.removeSender(n),e.next=11,this.updateOffer(Tk.REMOVE,o);case 11:if(a=this.localStream_.getMediaStream(),this.peerConnection_.addTrack(t,a),t.kind!==IO||!this.client_.getIsEnableSmallStream()){e.next=21;break}return this.smallGenerator_=new eY(this.localStream_),e.next=17,this.smallGenerator_.initialize();case 17:i=this.smallGenerator_.generateSmallVideoTrack(this.client_.smallStreamConfig_),(s=new MediaStream).addTrack(i),this.peerConnection_.addTrack(i,s);case 21:return e.next=23,this.updateOffer(Tk.ADD,t);case 23:case"end":return e.stop()}}),e,this)}))),function(e){return M.apply(this,arguments)})},{key:"isNeedToResetOfferOrder",value:function(){if(this.sdpSemantics_===yk||!this.peerConnection_||!this.peerConnection_.localDescription)return!1;for(var e=this.peerConnection_.localDescription.sdp,t=jL(e),n=0;n<t.media.length;n++)if(0===t.media[n].mid&&t.media[n].type===IO)return!0;return!1}},{key:"removeSender",value:function(e){var t=null;gA()&&(t=this.peerConnection_.getTransceivers().find((function(t){return t.sender&&t.sender.track===e.track}))),this.peerConnection_.removeTrack(e),t&&cT(t.stop)&&(this.log_.info("stop transceiver"),t.stop())}},{key:"removeTrack",value:(O=i(r().mark((function e(t,n){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.peerConnection_){e.next=2;break}return e.abrupt("return");case 2:if(this.log_.info("is removing ".concat(t.kind," track from current published local ").concat(n===this.localAuxStream_?jO:qO," stream")),!gA()){e.next=8;break}return e.next=6,this.removeTrackByTransceiver(t,n);case 6:e.next=10;break;case 8:return e.next=10,this.removeTrackBySender(t);case 10:nL(this.userId_,{eventId:t.kind===wO?MD:OD,eventDesc:"remove ".concat(t.kind," track from current published stream"),timestamp:Ym(),userId:this.userId_,tinyId:this.tinyId_});case 11:case"end":return e.stop()}}),e,this)}))),function(e,t){return O.apply(this,arguments)})},{key:"removeTrackByTransceiver",value:(y=i(r().mark((function e(t,n){var o,a,i;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=n===this.localAuxStream_,a=this.peerConnection_.getTransceivers(),t.kind!==wO){e.next=13;break}if(!this.mixedAudioTrack_){e.next=9;break}return e.next=6,a[0].sender.replaceTrack(o?this.localStream_.getAudioTrack():this.localAuxStream_.getAudioTrack());case 6:this.destroyMixedAudioTrack(),e.next=11;break;case 9:return e.next=11,a[0].sender.replaceTrack(null);case 11:e.next=23;break;case 13:return i=o?3:1,e.next=16,a[i].sender.replaceTrack(null);case 16:if(1!==i||!this.smallGenerator_){e.next=21;break}return this.smallGenerator_.destroy(),this.smallGenerator_=null,e.next=21,a[2].sender.replaceTrack(null);case 21:return e.next=23,this.setTransceiverDirection(nM,[i]);case 23:return this.updateMediaSettings(n,o),e.next=26,this.doPublishChange();case 26:case"end":return e.stop()}}),e,this)}))),function(e,t){return y.apply(this,arguments)})},{key:"setTransceiverDirection",value:(g=i(r().mark((function e(t,n){var o,a,i,s,c,l;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(WI){e.next=2;break}return e.abrupt("return");case 2:if(o=!1,a=!1,this.log_.info("setting transceiver ".concat(n.join(",")," direction to ").concat(t)),i=this.peerConnection_.getTransceivers(),n.forEach((function(e){i[e].direction!==t&&(i[e].direction=t,o=!0)})),!o){e.next=14;break}return this.log_.info("updating offer"),e.next=11,this.peerConnection_.createOffer();case 11:return s=e.sent,e.next=14,this.peerConnection_.setLocalDescription(s);case 14:if(c=-1,l=this.peerConnection_.remoteDescription.sdp.split("\r\n").map((function(e){if(e.match(new RegExp("a=(".concat(nM,"|").concat(oM,"|").concat(rM,")")))&&c++,n.includes(c)){if(t===nM&&e.includes("a=".concat(oM)))return a=!0,"a=".concat(t);if(t===rM&&e.includes("a=".concat(nM)))return a=!0,"a=".concat(oM)}return e})).join("\r\n"),!a){e.next=20;break}return this.log_.info("updating answer"),e.next=20,this.peerConnection_.setRemoteDescription({type:"answer",sdp:l});case 20:case"end":return e.stop()}}),e,this)}))),function(e,t){return g.apply(this,arguments)})},{key:"removeTrackBySender",value:(v=i(r().mark((function e(t){var n,o,a=this;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.kind!==IO||!this.isNeedToResetOfferOrder()){e.next=7;break}return this.reset(),this.initialize(),null===(n=this.localStream_.getMediaStream())||void 0===n||n.removeTrack(t),e.next=6,this.publish(this.localStream_);case 6:return e.abrupt("return");case 7:return(o=this.peerConnection_.getSenders().find((function(e){return e.track===t})))&&(this.removeSender(o),t.kind===IO&&this.smallGenerator_&&(this.smallGenerator_.destroy(),this.smallGenerator_=null,this.peerConnection_.getSenders().forEach((function(e){e.track&&e.track.kind===IO&&a.removeSender(e)})))),e.next=11,this.updateOffer(Tk.REMOVE,t);case 11:case"end":return e.stop()}}),e,this)}))),function(e){return v.apply(this,arguments)})},{key:"replaceTrack",value:(m=i(r().mark((function e(t,n){var o,a,i,s,c,l,u;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((a=null===(o=this.peerConnection_)||void 0===o?void 0:o.getSenders())&&0!==a.length){e.next=3;break}throw new _D({code:gD.INVALID_OPERATION,message:eT({key:Cw})});case 3:if(i=n===this.localAuxStream_,this.log_.info("is replacing ".concat(t.kind," track to current published local ").concat(i?jO:qO," stream")),t.kind!==wO||!a[0]){e.next=16;break}if(!(this.mixedAudioTrack_&&null!==(s=this.localStream_)&&void 0!==s&&s.hasAudio()&&null!==(c=this.localAuxStream_)&&void 0!==c&&c.hasAudio())){e.next=14;break}return this.destroyMixedAudioTrack(),l=i?this.localStream_.getAudioTrack():this.localAuxStream_.getAudioTrack(),this.mixAudioTrack(t,l),e.next=12,a[0].replaceTrack(this.mixedAudioTrack_);case 12:e.next=16;break;case 14:return e.next=16,a[0].replaceTrack(t);case 16:if(t.kind!==IO){e.next=32;break}if(n!==this.localStream_||!a[1]){e.next=29;break}return e.next=20,a[1].replaceTrack(t);case 20:if(!this.smallGenerator_||!a[2]){e.next=29;break}return this.log_.info("replacing smallVideo"),this.smallGenerator_.destroy(),this.smallGenerator_=new eY(this.localStream_),e.next=26,this.smallGenerator_.initialize();case 26:return u=this.smallGenerator_.generateSmallVideoTrack(this.client_.smallStreamConfig_),e.next=29,a[2].replaceTrack(u);case 29:if(n!==this.localAuxStream_||!a[3]){e.next=32;break}return e.next=32,a[3].replaceTrack(t);case 32:nL(this.userId_,{eventId:t.kind===wO?AD:LD,eventDesc:"replace ".concat(t.kind," track from current published stream"),timestamp:Ym(),userId:this.userId_,tinyId:this.tinyId_});case 33:case"end":return e.stop()}}),e,this)}))),function(e,t){return m.apply(this,arguments)})},{key:"updateOffer",value:(h=i(r().mark((function e(t,n){var o,a,i,s,c,l,u;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.peerConnection_.createOffer(EY);case 3:return o=e.sent,WI&&(o.sdp=this.setSDPDirection(o.sdp,"sendrecv")),e.next=7,this.peerConnection_.setLocalDescription(o);case 7:return a=this.updateMediaSettings(this.localStream_||this.localAuxStream_),i={action:t,trackId:n.id,kind:n.kind===IO?"bigVideo":n.kind,type:"offer",sdp:this.peerConnection_.localDescription.sdp,constraintConfig:a,state:this.publishState},this.log_.info("createOffer success, sending updated offer to remote server"),this.log_.debug("updatedOffer: "+i.sdp),e.next=13,this.signalChannel_.sendWaitForResponse({command:Qj,data:i,responseCommand:Jj.UPDATE_OFFER_RESULT,timeout:1e4,commandDesc:"update offer"});case 13:return s=e.sent,c=s.data,l=c.code,u=c.message,0!==l&&this.checkPublishResultCode(l,u),e.next=18,this.acceptAnswer(s.data.data);case 18:this.updateSSRC(o.sdp),sL.logSuccessEvent({userId:this.client_.getUserId(),eventType:ok,kind:"offer"}),e.next=27;break;case 22:throw e.prev=22,e.t0=e.catch(0),this.log_.error(e.t0),sL.logFailedEvent({userId:this.client_.getUserId(),eventType:ok,kind:"offer",error:e.t0}),e.t0;case 27:case"end":return e.stop()}}),e,this,[[0,22]])}))),function(e,t){return h.apply(this,arguments)})},{key:"setBandwidth",value:(f=i(r().mark((function e(t){var n,o,a,i,s,c,l,u;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.bandwidth,o=t.type,a=t.videoType,i=void 0===a?"":a,s=t.sdp,bA()||!s){e.next=3;break}return e.abrupt("return",o===IO?this.updateVideoBandwidthRestriction(s,n,i):this.updateAudioBandwidthRestriction(s,n));case 3:if(c=0,o===IO&&(c=i===TO?2:i===jO?3:1),!(l=this.peerConnection_.getSenders()[c])){e.next=22;break}return(u=l.getParameters()).encodings&&0!==u.encodings.length||(u.encodings=[{}]),"unlimited"===n?delete u.encodings[0].maxBitrate:u.encodings[0].maxBitrate=1e3*n,e.prev=10,e.next=13,l.setParameters(u);case 13:return this.log_.info(i+o+" bandwidth was set to "+n+" kbps"),e.abrupt("return",s);case 17:if(e.prev=17,e.t0=e.catch(10),this.log_.info("failed to set bandwidth by setting maxBitrate: "+e.t0),!s){e.next=22;break}return e.abrupt("return",o===IO?this.updateVideoBandwidthRestriction(s,n,i):this.updateAudioBandwidthRestriction(s,n));case 22:return e.abrupt("return",s);case 23:case"end":return e.stop()}}),e,this,[[10,17]])}))),function(e){return f.apply(this,arguments)})},{key:"updateVideoBandwidthRestriction",value:function(e,t,n){var r="AS";WI&&(r="TIAS",t*=1e3);var o=0,a=-1;return n===TO?o=1:n===jO&&(o=2),e=e.replace(/m=video (.*)\r\nc=IN (.*)\r\n/g,(function(e){return++a===o?"".concat(e,"b=").concat(r,":").concat(t,"\r\n"):e})),e}},{key:"updateAudioBandwidthRestriction",value:function(e,t){var n="AS";return WI&&(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:"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:(u=i(r().mark((function e(){return r().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 u.apply(this,arguments)})},{key:"exchangeSDP",value:(c=i(r().mark((function e(){return r().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:(a=i(r().mark((function e(){var t;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.peerConnection_.createOffer(EY);case 3:return t=e.sent,e.next=6,this.peerConnection_.setLocalDescription(t);case 6:this.updateSSRC(t.sdp),sL.logSuccessEvent({userId:this.client_.getUserId(),eventType:ok,kind:"offer"}),e.next=14;break;case 10:throw e.prev=10,e.t0=e.catch(0),sL.logFailedEvent({userId:this.client_.getUserId(),eventType:ok,kind:"offer",error:e.t0}),e.t0;case 14:case"end":return e.stop()}}),e,this,[[0,10]])}))),function(){return a.apply(this,arguments)})},{key:"doExchangeSDP",value:function(){var e=this;return new Promise((function(t,n){e.exchangeSDPTimeout_=setTimeout((function(){e.signalChannel_.off(Jj.PUBLISH_RESULT,o),e.clearExchangeSDPTimeout();var t=new _D({code:gD.API_CALL_TIMEOUT,message:eT({key:xC})});n(t)}),1e4);var o=function(){var o=i(r().mark((function o(a){var i,s,c;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(r.prev=0,e.clearExchangeSDPTimeout(),i=a.data,s=i.code,c=i.message,0!==s){r.next=9;break}return r.next=6,e.acceptAnswer(a.data.data);case 6:t(),r.next=10;break;case 9:e.checkPublishResultCode(s,c);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()}}),o,null,[[0,12]])})));return function(e){return o.apply(this,arguments)}}(),a={type:e.peerConnection_.localDescription.type,sdp:e.removeVideoOrientation(e.peerConnection_.localDescription.sdp),screen:(e.publishingStream_||e.localStream_).hasScreenTrack(),state:e.publishState,constraintConfig:e.mediaSettings_};e.signalChannel_.once(Jj.PUBLISH_RESULT,o),e.log_.debug("sending sdp offer: "+a.sdp),e.signalChannel_.send(rD,a)}))}},{key:"setSDPDirection",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"all",r=jL(e);return r.media.forEach((function(e){"all"!==n&&e.type!==n||(e.direction=t)})),DL(r)}},{key:"acceptAnswer",value:(o=i(r().mark((function e(t){var n,o,a,i,s,c,l;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,n=this.removeVideoOrientation(t.sdp),!(o=this.publishingStream_||this.localStream_)){e.next=15;break}if(a=o.getVideoBitrate(),i=o.getAudioBitrate(),!a){e.next=11;break}return s=this.isPublishingAuxStream_?jO:EO,e.next=10,this.setBandwidth({bandwidth:a,type:IO,sdp:n,videoType:s});case 10:n=e.sent;case 11:if(!i){e.next=15;break}return e.next=14,this.setBandwidth({bandwidth:i,type:wO,sdp:n});case 14:n=e.sent;case 15:if(!this.client_.getIsEnableSmallStream()){e.next=20;break}return c=this.client_.smallStreamConfig,e.next=19,this.setBandwidth({bandwidth:c.bitrate,type:IO,videoType:TO,sdp:n});case 19:n=e.sent;case 20:return l={type:t.type,sdp:n},e.next=23,this.peerConnection_.setRemoteDescription(l);case 23:this.log_.debug("accepted answer: "+n),sL.logSuccessEvent({userId:this.client_.getUserId(),eventType:ak,kind:"answer"}),e.next=32;break;case 27:throw e.prev=27,e.t0=e.catch(0),sL.logFailedEvent({userId:this.client_.getUserId(),eventType:ak,kind:"answer",error:e.t0}),this.log_.error("failed to accept remote answer "+e.t0),e.t0;case 32:case"end":return e.stop()}}),e,this,[[0,27]])}))),function(e){return o.apply(this,arguments)})},{key:"sendMutedFlag",value:function(e,t){if(t!==this.localAuxStream_){var n={audio:e.audio,bigVideo:e.video,auxVideo:e.auxVideo};this.log_.info("send muted state: ".concat(JSON.stringify(n))),this.signalChannel_.send(nD,n)}}},{key:"getIsReconnecting",value:function(){return this.isReconnecting_}},{key:"reconnect",value:(t=i(r().mark((function e(){var t,n,o=this;return r().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 _D({code:gD.UPLINK_RECONNECTION_FAILED,message:eT({key:UC})}),sL.logFailedEvent({userId:this.client_.getUserId(),eventType:tk,error:t}),this.addEventInternal($D,"uplink-connection reconnect fail"),this.emitConnectionStateChangedEvent(LM),this.emitter_.emit(NA.ERROR,t),e.abrupt("return");case 12:if(this.signalChannel_.getCurrentState()===Wj){e.next=16;break}return this.log_.warn("reconnect() signal channel is not connected, suspend reconnection until signal is connected"),this.signalChannel_.once(Gj,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=sT(this.reconnectionCount_),this.reconnectionTimer_=setTimeout((function(){o.log_.warn("reconnect() uplink reconnect timeout(".concat(n/1e3,"s), try again")),o.clearReconnectionTimer(),o.reconnect()}),n),!(this.isSDPExchanging_||this.peerConnection_&&this.peerConnection_.connectionState===PM)){e.next=23;break}return e.abrupt("return");case 23:return e.next=25,this.signalChannel_.sendWaitForResponse({command:oD,responseCommand:Jj.UNPUBLISH_RESULT,enableLog:!1});case 25:if(this.reset(),this.initialize(),!this.localStream_){e.next=30;break}return e.next=30,this.publish(this.localStream_);case 30:if(!this.localAuxStream_){e.next=33;break}return e.next=33,this.publish(this.localAuxStream_,!0);case 33:sL.logSuccessEvent({userId:this.client_.getUserId(),eventType:tk}),this.log_.warn("reconnect() uplink reconnect successfully"),this.addEventInternal(KD,"uplink-connection reconnect success"),this.stopReconnection(),this.localStream_.syncMuteState(),e.next=42;break;case 40:e.prev=40,e.t0=e.catch(17);case 42:case"end":return e.stop()}}),e,this,[[17,40]])}))),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()===gD.ICE_TRANSPORT_ERROR&&(this.isFirstConnection_&&(this.isFirstConnection_=!1,sL.logFailedEvent({userId:this.client_.getUserId(),eventType:ek,error:e})),this.isReconnecting_||this.startReconnection())}},{key:"handleConnectionStateChange",value:function(e){e.state===xM&&this.isFirstConnection_&&(this.isFirstConnection_=!1,sL.logSuccessEvent({userId:this.client_.getUserId(),eventType:ek}),this.addEventInternal(GD,"uplink-connection is connected"))}},{key:"updateSSRC",value:function(e){var t=this;try{jL(e).media.forEach((function(e,n){if(e.type===wO){var r=e.ssrcs[0];r&&(t.ssrc_.audio=r.id)}else{if(t.sdpSemantics_===yk)return void e.ssrcGroups.forEach((function(e,n){var r=Number(e.ssrcs.split(" ")[0]);0===n?t.ssrc_.video=r:1===n&&(t.ssrc_.small=r)}));var o=e.ssrcs[0];if(!o)return;switch(n){case 1:t.ssrc_.video=o.id;break;case 2:t.ssrc_.small=o.id;break;case 3:t.ssrc_.auxiliary=o.id}}}))}catch(qq){}}},{key:"getVideoTrackId",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:IO;if(this.peerConnection_){var t=this.peerConnection_.getSenders();if(e===IO&&t[1]&&t[1].track)return t[1].track.id;if(e===TO&&t[2]&&t[2].track)return t[2].track.id;if(e===jO&&t[3]&&t[3].track)return t[3].track.id}if(this.localStream_&&e===IO){var n=this.localStream_.getVideoTrack();if(n)return n.id}if(this.localAuxStream_&&e===jO){var r=this.localAuxStream_.getVideoTrack();if(r)return r.id}return""}},{key:"getSSRC",value:function(){return this.ssrc_}},{key:"checkPublishResultCode",value:function(e,t){if(0!==e)throw 1028===e?(this.log_.error(EI.NOT_SUPPORTED_H264ENCODE),new _D({code:gD.NOT_SUPPORTED_H264,message:eT({key:iI})})):new _D({code:gD.UNKNOWN,message:eT({key:hI,data:{signalResponse:Jj.PUBLISH_RESULT,code:e,message:t}})})}},{key:"getLocalStream",value:function(){return this.localStream_}},{key:"sendSEI",value:function(e,t){this.sei_.push(e,t)}},{key:"mixAudioTrack",value:function(e,t){this.log_.info("mix audio track"),this.mixedAudioTrack_=function(e){var t=CT(),n=t.createMediaStreamDestination(),r=[];e.forEach((function(e){var o=new MediaStream;o.addTrack(e);var a=t.createMediaStreamSource(o);a.connect(n),r.push(a)}));var o=n.stream.getAudioTracks()[0];return tY.set(o,{destination:n,track:o,mediaStreamSourceList:r}),o}([e,t])}},{key:"destroyMixedAudioTrack",value:function(){this.mixedAudioTrack_&&(this.log_.info("destroy audio track"),function(e){if(tY.has(e)){var t=tY.get(e),n=t.destination,r=t.track,o=t.mediaStreamSourceList;r.stop(),n.disconnect(),o.forEach((function(e){e.disconnect()})),tY.delete(e)}}(this.mixedAudioTrack_),this.mixedAudioTrack_=null)}}]),D}(gH),I(kY.prototype,"publish",[MY],Object.getOwnPropertyDescriptor(kY.prototype,"publish"),kY.prototype),kY),DY=te,LY=Gc,AY=Gi.exports.getWeakData,NY=mc,xY=un,RY=se,PY=be,UY=pc,VY=mt,BY=ir.set,FY=ir.getterFor,GY=Vu.find,zY=Vu.findIndex,HY=DY([].splice),YY=0,qY=function(e){return e.frozen||(e.frozen=new WY)},WY=function(){this.entries=[]},KY=function(e,t){return GY(e.entries,(function(e){return e[0]===t}))};WY.prototype={get:function(e){var t=KY(this,e);if(t)return t[1]},has:function(e){return!!KY(this,e)},set:function(e,t){var n=KY(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=zY(this.entries,(function(t){return t[0]===e}));return~t&&HY(this.entries,t,1),!!~t}};var $Y,JY={getConstructor:function(e,t,n,r){var o=e((function(e,o){NY(e,a),BY(e,{type:t,id:YY++,frozen:void 0}),RY(o)||UY(o,e[r],{that:e,AS_ENTRIES:n})})),a=o.prototype,i=FY(t),s=function(e,t,n){var r=i(e),o=AY(xY(t),!0);return!0===o?qY(r).set(t,n):o[r.id]=n,e};return LY(a,{delete:function(e){var t=i(this);if(!PY(e))return!1;var n=AY(e);return!0===n?qY(t).delete(e):n&&VY(n,t.id)&&delete n[t.id]},has:function(e){var t=i(this);if(!PY(e))return!1;var n=AY(e);return!0===n?qY(t).has(e):n&&VY(n,t.id)}}),LY(a,n?{get:function(e){var t=i(this);if(PY(e)){var n=AY(e);return!0===n?qY(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return s(this,e,t)}}:{add:function(e){return s(this,e,!0)}}),o}},QY=E,XY=te,ZY=Gc,eq=Gi.exports,tq=Bc,nq=JY,rq=be,oq=ds,aq=ir.enforce,iq=Fn,sq=!QY.ActiveXObject&&"ActiveXObject"in QY,cq=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},lq=tq("WeakMap",cq,nq);if(iq&&sq){$Y=nq.getConstructor(cq,"WeakMap",!0),eq.enable();var uq=lq.prototype,dq=XY(uq.delete),pq=XY(uq.has),fq=XY(uq.get),hq=XY(uq.set);ZY(uq,{delete:function(e){if(rq(e)&&!oq(e)){var t=aq(this);return t.frozen||(t.frozen=new $Y),dq(this,e)||t.frozen.delete(e)}return dq(this,e)},has:function(e){if(rq(e)&&!oq(e)){var t=aq(this);return t.frozen||(t.frozen=new $Y),pq(this,e)||t.frozen.has(e)}return pq(this,e)},get:function(e){if(rq(e)&&!oq(e)){var t=aq(this);return t.frozen||(t.frozen=new $Y),pq(this,e)?fq(this,e):t.frozen.get(e)}return fq(this,e)},set:function(e,t){if(rq(e)&&!oq(e)){var n=aq(this);n.frozen||(n.frozen=new $Y),pq(this,e)?hq(this,e,t):n.frozen.set(e,t)}else hq(this,e,t);return this}})}var mq=Io,vq=jy,gq=D,_q=Ce,yq=ge,bq=w_,Oq=_O,Mq=kr,kq=vq&&vq.prototype;if(mq({target:"Promise",proto:!0,real:!0,forced:!!vq&&gq((function(){kq.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=bq(this,_q("Promise")),n=yq(e);return this.then(n?function(n){return Oq(t,e()).then((function(){return n}))}:e,n?function(n){return Oq(t,e()).then((function(){throw n}))}:e)}}),yq(vq)){var Cq=_q("Promise").prototype.finally;kq.finally!==Cq&&Mq(kq,"finally",Cq,{unsafe:!0})}var wq,Iq,Sq,Tq,Eq,jq=new WeakMap;function Dq(){return function(e,t,r){var o=r.value,a=function e(t){var r=t.fn,o=t.args,a=t.context,i=t.resolve,s=t.reject;r.apply(a,o).then(i,s).finally((function(){var t=jq.get(a);t&&(t.shift(),t[0]&&e(n({},t[0])))}))};return r.value=function(){for(var e=this,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return new Promise((function(n,i){if(jq.has(e)){var s=jq.get(e),c=s.length;s.push({fn:o,args:r,context:e,resolve:n,reject:i,name:t}),0===c&&a({fn:o,args:r,context:e,resolve:n,reject:i})}else jq.set(e,[{fn:o,args:r,context:e,resolve:n,reject:i,name:t}]),a({fn:o,args:r,context:e,resolve:n,reject:i})}))},r}}var Lq=(wq=Dq(),Iq=PH({retries:1,timeout:0,onRetrying:function(e){this.log_.warn("connection timeout, retrying [".concat(e,"]"))},onError:function(e,t,n){e.message.includes("timeout")?t():n(e)}}),Sq=Dq(),Tq=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e4;return function(t,n,r){var o=r.value;return r.value=function(){for(var t=this,r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return new Promise((function(r,i){var s=setTimeout((function(){return i(new Error("".concat(n," timeout")))}),e);o.apply(t,a).then(r,i).finally((function(){clearTimeout(s)}))}))},r}}(),Eq=function(e){d(g,e);var t,a,c,u,f,h,m,v=_(g);function g(e){var t;return s(this,g),(t=v.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.isSDPExchanging_=!1,t.installEvents(),t}return l(g,[{key:"getMixUserList",value:function(){return this.mixUserList_?this.mixUserList_.map((function(e){var t=e.userId,n=e.flag;return{userId:t,hasAudio:!!(8&n),hasVideo:!!(1&n),hasAuxiliary:!!(4&n)}})):void 0}},{key:"setMixUserList",value:function(e){(!this.mixUserList_||hT(this.mixUserList_)&&!function(e,t){if(t.length===e.length){var n,r=w(t);try{var i=function(){var t=n.value,r=e.find((function(e){return e.userId===t.userId}));if(!r||r.flag!==t.flag)return{v:!1}};for(r.s();!(n=r.n()).done;){var s=i();if("object"===o(s))return s.v}}catch(a){r.e(a)}finally{r.f()}return!0}return!1}(this.mixUserList_,e))&&(this.mixUserList_=e,this.emitter_.emit(NA.STREAM_UPDATED,{stream:this.getMainStream()}))}},{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:"isSmallStreamSubscribed",get:function(){return this.subscribeState_.smallVideo&&this.trackState_.smallVideo}},{key:"isBigStreamSubscribed",get:function(){return this.subscribeState_.video&&this.trackState_.video}},{key:"isStreamUnpublished",value:function(e){return e.getType()===qO?!this.trackState_.audio&&!this.trackState_.video:!this.trackState_.auxiliary}},{key:"initialize",value:function(){b(p(g.prototype),"initialize",this).call(this),this.peerConnection_.ontrack=this.onTrack.bind(this)}},{key:"close",value:function(){var e,t,n,r=this;b(p(g.prototype),"close",this).call(this),this.trackState_.audio=!1,this.trackState_.video=!1,this.trackState_.smallVideo=!1,this.trackState_.auxiliary=!1,this.emitConnectionStateChangedEvent(LM),e=this,t=function(e){e.fn;var t=e.args,n=e.resolve,o=e.reject,a=e.name;if("subscribe"===a){if(!r.client_.getIsJoined())return o(new _D({code:gD.API_CALL_ABORTED,message:eT({key:SI,data:{message:"leave room",stream:t[0]}})}));if(r.isStreamUnpublished(t[0]))return o(new _D({code:gD.API_CALL_ABORTED,message:eT({key:SI,data:{message:"remote user ".concat(r.userId_," unpublished stream"),stream:t[0]}})}))}else if("unsubscribe"===a)return n();n()},null===(n=jq.get(e))||void 0===n||n.forEach(t),jq.delete(e),this.remoteStreams_.forEach((function(e){var t=e;t.setConnection(null),t.uninstallEvents(),t.getIsStreamAddedEventEmitted()&&r.emitter_.emit(NA.STREAM_REMOVED,{stream:t})})),this.remoteStreams_.clear(),this.uninstallEvents()}},{key:"installEvents",value:function(){var e=this;NT.on(aE,this.onRemoteStreamUpdate,this),this.emitter_.on(NA.ERROR,(function(t){t.getCode()===gD.ICE_TRANSPORT_ERROR&&(e.isFirstConnection_&&(e.isFirstConnection_=!1,sL.logFailedEvent({userId:e.client_.getUserId(),eventType:nk,error:t})),e.isReconnecting_||e.startReconnection())})),this.emitter_.on(NA.CONNECTION_STATE_CHANGED,(function(t){t.state===xM&&e.isFirstConnection_&&(e.isFirstConnection_=!1,sL.logSuccessEvent({userId:e.client_.getUserId(),eventType:nk}),e.addEventInternal(zD,"downlink-connection is connected"))}))}},{key:"uninstallEvents",value:function(){NT.removeListener(aE,this.onRemoteStreamUpdate,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===jO?SM:IM,n=this.remoteStreams_.get(t);if(!n)return;e.action===Tk.ADD?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===wO?t.updateAudioPlayingState(this.subscribeState_.audio):t.updateVideoPlayingState(e===jO?this.subscribeState_.auxiliary:this.subscribeState_.video||this.subscribeState_.smallVideo),t.getIsStreamAddedEventEmitted()?this.emitter_.emit(NA.STREAM_UPDATED,{stream:t}):(this.emitter_.emit(NA.STREAM_ADDED,{stream:t}),this.currentState_===xM&&t.emitConnectionStateChanged({prevState:LM,state:xM}))}},{key:"handleRemoteRemoveTrack",value:function(e,t){t.getIsStreamAddedEventEmitted()&&(this.log_.info("remote remove ".concat(e," track")),e===jO||!this.trackState_.audio&&!this.trackState_.video?(this.log_.info("remote stream ".concat(t.getType()," removed")),this.currentState_===xM&&t.emitConnectionStateChanged({prevState:xM,state:LM}),this.emitter_.emit(NA.STREAM_REMOVED,{stream:t})):(e===wO?t.updateAudioPlayingState(!1):(e!==LO||this.isSmallStreamSubscribed)&&t.updateVideoPlayingState(!1),this.emitter_.emit(NA.STREAM_UPDATED,{stream:t})))}},{key:"updateTrackState",value:function(e,t){var n=e===Tk.ADD;switch(t){case wO:this.trackState_.audio=n;break;case IO:this.trackState_.video=n;break;case jO:this.trackState_.auxiliary=n;break;case LO:this.trackState_.smallVideo=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)),this.sdpSemantics_===_k){var r=function(e){var t=hL.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===wO)n.audio.push(IM);else if(e.type==IO){var r=t===TM?IM:SM;n.video.push(r)}}})),n}(this.peerConnection_.remoteDescription.sdp);if(n.kind===wO){if(0===r.audio.length||t.id!==IM)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))}sL.logEvent({eventType:"ontrack",kind:n.kind});var o=!1,a=this.remoteStreams_.get(t.id),i=t.id===IM?EM:jM;if(lT(a)&&((a=new $H({type:i,userId:this.userId_,client:this.client_})).setConnection(this),this.remoteStreams_.set(t.id,a),o=!0),a.setMediaStream(t),n.kind===wO?a.updateAudioPlayingState(this.subscribeState_.audio):i===EM?a.updateVideoPlayingState(this.subscribeState_.video||this.subscribeState_.smallVideo):a.updateVideoPlayingState(this.subscribeState_.auxiliary),(i!==jM||this.trackState_.auxiliary)&&(i!==EM||this.trackState_.audio||this.trackState_.video)){var s=this.client_.getSubscriptionManager();s&&s.hasAutoRecoveryFlag(this.userId_,i)||(o?this.emitter_.emit(NA.STREAM_ADDED,{stream:a}):this.emitter_.emit(NA.STREAM_UPDATED,{stream:a}))}}},{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])&&e.match(/^a=rtcp-fb:\d+/)&&n.set(r+1,e.match(/^a=rtcp-fb:\d+/)[0]+" rrtr")}));for(var r=M(n),o=0;o<r.length;o++){var a=O(r[o],2),i=a[0],s=a[1];t.splice(i+o,0,s)}return t.join("\r\n")}},{key:"addSPSDescription",value:function(e){var t=jL(e);return t.media.forEach((function(e){e.type===IO&&e.fmtp.forEach((function(e){e.config+=";sps-pps-idr-in-keyframe=1"}))})),DL(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=jL(e);return n.media.forEach((function(e){e.ext=e.ext.filter((function(e){return!t.includes(e.uri)}))})),DL(n)}},{key:"isSubscriptionStateNotChanged",value:function(e,t){return e.getType()===EM?(null==t?void 0:t.audio)===this.subscribeState_.audio&&(null==t?void 0:t.video)===this.subscribeState_.video&&this.isSubscribeSmall(t):e.getType()===jM?!lT(t.video)&&this.subscribeState_.auxiliary===t.video:void 0}},{key:"isSubscribeSmall",value:function(e){return lT(e.smallVideo)&&!this.subscribeState_.smallVideo}},{key:"subscribe",value:(m=i(r().mark((function e(t,n){var o,a,i,s,c,l;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,i=n.emitEvent,s=void 0===i||i,c=t.getType(),(null===(o=this.peerConnection_)||void 0===o?void 0:o.connectionState)!==RM&&(null===(a=this.peerConnection_)||void 0===a?void 0:a.connectionState)!==PM){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 s&&lT(n.smallVideo)&&this.emitter_.emit(NA.STREAM_SUBSCRIBED,{stream:t,result:!0}),e.abrupt("return",t);case 13:if(c===qO?(lT(n.audio)||(this.subscribeState_.audio=n.audio),lT(n.video)||(this.subscribeState_.video=n.video),this.subscribeState_.smallVideo=(null==n?void 0:n.smallVideo)||!1,this.addEventInternal(this.subscribeState_.audio?SD:ED,this.subscribeState_.audio?"subscribe audio":"unsubscribe audio"),this.addEventInternal(this.subscribeState_.video?SD:ED,this.subscribeState_.video?"subscribe video":"unsubscribe video"),this.addEventInternal(this.subscribeState_.smallVideo?ZD:eL,this.subscribeState_.smallVideo?"subscribe smallVideo":"unsubscribe smallVideo")):lT(n.video)||(this.subscribeState_.auxiliary=n.video),this.log_.info("subscribe ".concat(c," stream with options ").concat(JSON.stringify(n)," current state: ").concat(JSON.stringify(this.subscribeState_))),!this.peerConnection_&&!this.isSDPExchanging_){e.next=23;break}return l=gk,this.isMainStreamSubscribed||this.isAuxStreamSubscribed||(l=vk),e.next=20,this.sendSubscription(l);case 20:c===qO?(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 s&&this.emitter_.emit(NA.STREAM_SUBSCRIBED,{stream:t,result:!0}),e.abrupt("return",t);case 30:if(e.prev=30,e.t0=e.catch(0),!this.client_.getIsJoined()||!this.isStreamUnpublished(t)){e.next=35;break}throw this.log_.warn("".concat(e.t0.message," ").concat(JSON.stringify(this.trackState_))),new _D({code:gD.REMOTE_STREAM_NOT_EXIST,message:"remote user ".concat(this.userId_," unpublished stream")});case 35:throw e.t0;case 36:case"end":return e.stop()}}),e,this,[[0,30]])}))),function(e,t){return m.apply(this,arguments)})},{key:"unsubscribe",value:(h=i(r().mark((function e(t){var n,o,a;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((n=t.getType())!==qO){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 o=vk,(n===EM&&this.isAuxStreamSubscribed||n===jM&&this.isMainStreamSubscribed)&&(o=gk),this.log_.info("unsubscribe ".concat(n," stream with ").concat(JSON.stringify(this.subscribeState_))),e.next=19,this.sendSubscription(o);case 19:return t.updateVideoPlayingState(!1),t.updateAudioPlayingState(!1),o===vk&&((a=t.getMediaStream())&&a.getTracks().forEach((function(e){return a.removeTrack(e)})),this.closePeerConnection(),this.emitConnectionStateChangedEvent(LM)),this.addEventInternal(ED,"unsubscribe audio"),this.addEventInternal(TD,"unsubscribe video"),e.abrupt("return",t);case 25:case"end":return e.stop()}}),e,this)}))),function(e){return h.apply(this,arguments)})},{key:"sendSubscription",value:function(e){var t=this,n={srcTinyId:this.tinyId_,srcUserId:this.userId_},r=iD,o=Jj.UNSUBSCRIBE_RESULT;return e===gk&&(n={audio:this.subscribeState_.audio,bigVideo:this.subscribeState_.video,auxVideo:this.subscribeState_.auxiliary,smallVideo:this.subscribeState_.smallVideo,srcTinyId:this.tinyId_},r=sD,o=Jj.SUBSCRIBE_CHANGE_RESULT),this.signalChannel_.sendWaitForResponse({command:r,data:n,responseCommand:o,timeout:1e4}).then((function(n){var r=n.data;if(0!==r.code){var o=new _D({code:r.code,message:eT({key:NC,data:{type:e,message:r.message}})});throw t.log_.error(o),o}}))}},{key:"connect",value:(f=i(r().mark((function e(){return r().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 f.apply(this,arguments)})},{key:"exchangeSDP",value:(u=i(r().mark((function e(){var t,n,o,a,i,s;return r().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,o=t.sdp,a={type:n,sdp:o,srcUserId:this.userId_,srcTinyId:this.tinyId_,audio:this.subscribeState_.audio,bigVideo:this.subscribeState_.video,auxVideo:this.subscribeState_.auxiliary,smallVideo:this.subscribeState_.smallVideo},NT.emit(wE,{client:this.client_,connection:this,userId:this.userId_,tinyId:this.tinyId_,role:MM,subscribeState:this.subscribeState_,trackState:this.trackState_}),e.next=10,this.signalChannel_.sendWaitForResponse({command:aD,commandDesc:"exchange sdp",data:a,responseCommand:Jj.SUBSCRIBE_RESULT,timeout:1e4});case 10:if(i=e.sent,this.peerConnection_){e.next=15;break}throw s=new _D({code:gD.INVALID_OPERATION,message:eT({key:gI})}),this.log_.warn(s),s;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 u.apply(this,arguments)})},{key:"createOffer",value:(c=i(r().mark((function e(){var t,n;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={voiceActivityDetection:!1},_A()&&this.sdpSemantics_===_k?(this.peerConnection_.addTransceiver(wO,{direction:"recvonly"}),this.peerConnection_.addTransceiver(IO,{direction:"recvonly"}),this.peerConnection_.addTransceiver(IO,{direction:"recvonly"})):(t.offerToReceiveAudio=!0,t.offerToReceiveVideo=!0),e.next=4,this.peerConnection_.createOffer(t);case 4:return n=e.sent,e.next=7,lA();case 7:return e.sent.isH264DecodeSupported||(this.log_.warn("remove h264 desc from sdp"),n.sdp=(r=n.sdp,o=void 0,(o=jL(r)).media.forEach((function(e){if(e.type===IO){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(" ")}})),DL(o))),n.sdp=this.addRRTRLine(n.sdp),n.sdp=this.addSPSDescription(n.sdp),n.sdp=LL(n.sdp),this.sdpSemantics_===_k&&(n.sdp=this.removeSDESDescription(n.sdp)),e.next=16,this.peerConnection_.setLocalDescription(n);case 16:case"end":return e.stop()}var r,o}),e,this)}))),function(){return c.apply(this,arguments)})},{key:"onSubscribeResult",value:(a=i(r().mark((function e(t){var o,a,i,s,c,l,u,d=this;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=t&&t.data||{},a=o.code,i=o.message,s=void 0===i?"":i,c=t&&t.data&&t.data.data||{},l=c.type,u=c.sdp,77393!==a){e.next=5;break}throw this.log_.error(EI.NOT_SUPPORTED_H264DECODE),new _D({code:gD.NOT_SUPPORTED_H264,message:eT({key:sI})});case 5:if(e.prev=5,0===a){e.next=8;break}throw new _D({code:a,message:eT({key:PC,data:{errMsg:s}})});case 8:return this.log_.debug("accept remote answer: "+u),e.next=11,this.peerConnection_.setRemoteDescription({type:l,sdp:u});case 11:this.sei_&&(this.sei_.handleEncodedStreams(),this.sei_.onSEIMessage=function(e){d.emitter_.emit(NA.SEI_MESSAGE,n(n({},e),{},{userId:d.userId_}))}),this.updateSSRC(u),e.next=19;break;case 15:throw e.prev=15,e.t0=e.catch(5),this.log_.error(e.t0),e.t0;case 19:case"end":return e.stop()}}),e,this,[[5,15]])}))),function(e){return a.apply(this,arguments)})},{key:"updateSSRC",value:function(e){var t=this;try{jL(e).media.forEach((function(e){if(e.type===wO){var n=e.ssrcs.find((function(e){return e.value.includes(IM)}));n&&(t.ssrc_.audio=n.id)}else{var r=e.ssrcs.find((function(e){return e.value.includes(IM)})),o=e.ssrcs.find((function(e){return e.value.includes(SM)}));r&&(t.ssrc_.video=r.id),o&&(t.ssrc_.auxiliary=o.id)}}))}catch(qq){}}},{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(IM)}},{key:"getAuxStream",value:function(){return this.remoteStreams_.get(SM)}},{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(r().mark((function e(){var t,n,o=this;return r().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 _D({code:gD.DOWNLINK_RECONNECTION_FAILED,message:eT({key:RC})}),sL.logFailedEvent({userId:this.client_.getUserId(),eventType:rk,error:t}),this.addEventInternal(XD,"downlink-connection reconnect fail"),this.emitConnectionStateChangedEvent(LM),this.emitter_.emit(NA.ERROR,t),e.abrupt("return");case 12:if(this.signalChannel_.getCurrentState()===Wj){e.next=16;break}return this.log_.warn("reconnect() signal channel is not connected, suspend reconnection until signal is connected"),this.signalChannel_.once(Gj,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=sT(this.reconnectionCount_),this.reconnectionTimer_=setTimeout((function(){o.log_.warn("reconnect() downlink [".concat(o.userId_,"] reconnect timeout(").concat(n/1e3,"s), try again")),o.clearReconnectionTimer(),o.reconnect()}),n),!(this.isSDPExchanging_||this.peerConnection_&&this.peerConnection_.connectionState===PM)){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"),sL.logSuccessEvent({userId:this.client_.getUserId(),eventType:rk}),this.addEventInternal(QD,"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&&M(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(IM)),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=w(this.remoteStreams_.values());try{for(n.s();!(t=n.n()).done;){var r=t.value,o=r.getType();(o===EM&&(this.trackState_.audio||this.trackState_.video)||o===jM&&this.trackState_.auxiliary)&&e.setAutoRecoveryFlag(this.userId_,r.getType())}}catch(i){n.e(i)}finally{n.f()}}b(p(g.prototype),"startReconnection",this).call(this)}},{key:"getCurrentState",value:function(){return this.currentState_}},{key:"hasMainStream",value:function(){return this.trackState_.video||this.trackState_.audio||this.trackState_.smallVideo}},{key:"hasAuxStream",value:function(){return this.trackState_.auxiliary}}]),g}(gH),I(Eq.prototype,"subscribe",[wq,Iq],Object.getOwnPropertyDescriptor(Eq.prototype,"subscribe"),Eq.prototype),I(Eq.prototype,"unsubscribe",[Sq],Object.getOwnPropertyDescriptor(Eq.prototype,"unsubscribe"),Eq.prototype),I(Eq.prototype,"exchangeSDP",[Tq],Object.getOwnPropertyDescriptor(Eq.prototype,"exchangeSDP"),Eq.prototype),Eq),Aq=function(){function e(){s(this,e),this.startTime=0,this.endTime=0,this.start()}return l(e,[{key:"start",value:function(){0===this.startTime&&(this.startTime=_T())}},{key:"stop",value:function(){0===this.endTime&&(this.endTime=_T())}},{key:"getDuration",value:function(){return 0===this.endTime?_T()-this.startTime:this.endTime-this.startTime}}]),e}(),Nq=function(){function e(t){s(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,o;return l(e,[{key:"installEvents",value:function(){NT.on(bE,this.handlePlayVideoStart,this),NT.on(vE,this.onVideoTrackMuted,this),NT.on(gE,this.onVideoTrackUnmuted,this),NT.on(dE,this.handleStreamStopped,this),NT.on(lE,this.handleStreamStopped,this),NT.on(rE,this.handleVideoPlaying,this)}},{key:"uninstallEvents",value:function(){NT.off(bE,this.handlePlayVideoStart,this),NT.off(vE,this.onVideoTrackMuted,this),NT.off(gE,this.onVideoTrackUnmuted,this),NT.off(dE,this.handleStreamStopped,this),NT.off(lE,this.handleStreamStopped,this),NT.off(rE,this.handleVideoPlaying,this)}},{key:"start",value:function(){var e=this;-1===this.intervalId_&&(this.installEvents(),this.intervalId_=XL.run(i(r().mark((function t(){return r().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]])}))),{delay:1e3}))}},{key:"stop",value:function(){-1!==this.intervalId_&&(this.uninstallEvents(),XL.clearTask(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),a=this.dataFreezeMap_.get(o),i=new Aq;a?a.durationItemList.push(i):this.dataFreezeMap_.set(o,{userId:n,type:r,durationItemList:[i],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(),a="".concat(r,"_").concat(o);this.stopDataFreeze({key:a,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 a=o.durationItemList[o.durationItemList.length-1];a.stop();var i=a.getDuration();i>500?(sL.logEvent({eventType:"videoFrozenCount",delta:i}),this.monitorFreezeData_.set(t,{userId:n,type:r,duration:i})):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:(o=i(r().mark((function e(){var t,n,o,a,i,s,c,l,u,d,p;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=this.client_.getConnections(),n={},o=w(t),e.prev=3,o.s();case 5:if((a=o.n()).done){e.next=20;break}if(i=O(a.value,2),s=i[0],(c=i[1]).getPeerConnection()){e.next=9;break}return e.abrupt("continue",18);case 9:return l=c.getSubscribeState(),u=c.getTrackState(),e.next=13,this.statsCalculator_.getReceiverStats(c);case 13:d=e.sent,(p={userId:d.userId,tinyId:s,hasVideo:u.video&&l.video,hasAuxiliary:u.auxiliary&&l.auxiliary,video:{framesDecoded:0},auxiliary:{framesDecoded:0}}).hasVideo&&(p.video.framesDecoded=d.video.framesDecoded),p.hasAuxiliary&&(p.auxiliary.framesDecoded=d.auxiliary.framesDecoded),n[d.userId]=p;case 18:e.next=5;break;case 20:e.next=25;break;case 22:e.prev=22,e.t0=e.catch(3),o.e(e.t0);case 25:return e.prev=25,o.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 o.apply(this,arguments)})},{key:"detectFPS",value:(n=i(r().mark((function e(){var t,n,o,a,i,s;return r().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=r().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:o=t[n].tinyId,a=this.client_.getMutedStates(),t[n].hasVideo&&this.prevStats_[n].hasVideo&&a.has(o)&&!a.get(o).videoMuted&&(i=t[n].video.framesDecoded-this.prevStats_[n].video.framesDecoded,this.handleRenderFreeze({userId:n,type:EM,fps:i})),t[n].hasAuxiliary&&this.prevStats_[n].hasAuxiliary&&(s=t[n].auxiliary.framesDecoded-this.prevStats_[n].auxiliary.framesDecoded,this.handleRenderFreeze({userId:n,type:jM,fps:s})),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(r().mark((function e(t){var n,o,a,i,s,c,l,u;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.userId,o=t.fps,a=t.type,i="".concat(n,"_").concat(a),s=this.renderFreezeMap_.get(i),o<=2?(c=_T(),s&&!s.isFreeze&&(s.freezeTimeline.push({startTime:c,endTime:void 0}),s.isFreeze=!0),s||this.renderFreezeMap_.set(i,{userId:n,type:a,isFreeze:!0,freezeTimeline:[{startTime:c,endTime:void 0}],renderFreezeTotal:0})):s&&s.isFreeze&&(s.isFreeze=!1,(l=s.freezeTimeline.pop()).endTime=_T(),u=l.endTime-l.startTime,s.freezeTimeline.push(l),s.renderFreezeTotal+=Math.min(5e3,u));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_.set(n,{isPlayingFired:!1})}}},{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=_T()-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}(),xq=l((function e(t){s(this,e),this.userId=t.userId,this.tinyId=t.tinyId,this.role=t.role===MM?CM:wM})),Rq={exports:{}};!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,a,i){return n((s=n(n(t,e),n(o,i)))<<(c=a)|s>>>32-c,r);var s,c}function o(e,t,n,o,a,i,s){return r(t&n|~t&o,e,t,a,i,s)}function a(e,t,n,o,a,i,s){return r(t&o|n&~o,e,t,a,i,s)}function i(e,t,n,o,a,i,s){return r(t^n^o,e,t,a,i,s)}function s(e,t,n,o,a,i,s){return r(n^(t|~o),e,t,a,i,s)}function c(e,t){var r,c,l,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)c=p,l=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=a(p,f=o(f,h,m,p,e[r+15],22,1236535329),h,m,e[r+1],5,-165796510),m=a(m,p,f,h,e[r+6],9,-1069501632),h=a(h,m,p,f,e[r+11],14,643717713),f=a(f,h,m,p,e[r],20,-373897302),p=a(p,f,h,m,e[r+5],5,-701558691),m=a(m,p,f,h,e[r+10],9,38016083),h=a(h,m,p,f,e[r+15],14,-660478335),f=a(f,h,m,p,e[r+4],20,-405537848),p=a(p,f,h,m,e[r+9],5,568446438),m=a(m,p,f,h,e[r+14],9,-1019803690),h=a(h,m,p,f,e[r+3],14,-187363961),f=a(f,h,m,p,e[r+8],20,1163531501),p=a(p,f,h,m,e[r+13],5,-1444681467),m=a(m,p,f,h,e[r+2],9,-51403784),h=a(h,m,p,f,e[r+7],14,1735328473),p=i(p,f=a(f,h,m,p,e[r+12],20,-1926607734),h,m,e[r+5],4,-378558),m=i(m,p,f,h,e[r+8],11,-2022574463),h=i(h,m,p,f,e[r+11],16,1839030562),f=i(f,h,m,p,e[r+14],23,-35309556),p=i(p,f,h,m,e[r+1],4,-1530992060),m=i(m,p,f,h,e[r+4],11,1272893353),h=i(h,m,p,f,e[r+7],16,-155497632),f=i(f,h,m,p,e[r+10],23,-1094730640),p=i(p,f,h,m,e[r+13],4,681279174),m=i(m,p,f,h,e[r],11,-358537222),h=i(h,m,p,f,e[r+3],16,-722521979),f=i(f,h,m,p,e[r+6],23,76029189),p=i(p,f,h,m,e[r+9],4,-640364487),m=i(m,p,f,h,e[r+12],11,-421815835),h=i(h,m,p,f,e[r+15],16,530742520),p=s(p,f=i(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,c),f=n(f,l),h=n(h,u),m=n(m,d);return[p,f,h,m]}function l(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="0123456789abcdef",o="";for(n=0;n<e.length;n+=1)t=e.charCodeAt(n),o+=r.charAt(t>>>4&15)+r.charAt(15&t);return o}function p(e){return unescape(encodeURIComponent(e))}function f(e){return function(e){return l(c(u(e),8*e.length))}(p(e))}function h(e,t){return function(e,t){var n,r,o=u(e),a=[],i=[];for(a[15]=i[15]=void 0,o.length>16&&(o=c(o,8*e.length)),n=0;n<16;n+=1)a[n]=909522486^o[n],i[n]=1549556828^o[n];return r=c(a.concat(u(t)),512+8*t.length),l(c(i.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}(S)}(Rq);var Pq=Rq.exports,Uq=function(){function e(t){s(this,e),this.client_=t.client,this.signalChannel_=t.signalChannel,this.log_=xE.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,o,a;return l(e,[{key:"isPresetLayoutMode",get:function(){return this.config_&&this.config_.mode===bk.PRESET_LAYOUT}},{key:"installEvents",value:function(){NT.on(cE,this.onStreamSubscribed,this),NT.on(lE,this.onStreamUnsubscribed,this),this.client_.on("stream-removed",this.onStreamRemoved,this)}},{key:"uninstallEvents",value:function(){NT.off(cE,this.onStreamSubscribed,this),NT.off(lE,this.onStreamUnsubscribed,this),this.client_.off("stream-removed",this.onStreamRemoved,this)}},{key:"reset",value:function(){this.uninstallEvents(),this.isMixing_=!1,this.config_=null}},{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:(a=i(r().mark((function e(t){var n,o,a;return r().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_),o=this.getOutputParam(t),a=this.getOutputSessionId({config:t,roomId:this.client_.getRoomId(),userId:this.client_.getUserId()}),!this.isMixing_||!this.data_||a===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:a,inputParam:n,outputParam:o});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 a.apply(this,arguments)})},{key:"doStartMixTranscode",value:(o=i(r().mark((function e(t){var n,o,a,i,s,c,l,u;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.outputSessionId,o=t.inputParam,a=t.outputParam,i={roomId:String(this.client_.getRoomId()),mcuRequestTime:Date.now(),outputSessionId:n,inputParam:o,outputParam:a},this.data_=i,this.log_.info("startMixTranscode: ".concat(JSON.stringify(i))),this.isMixing_=!0,e.prev=5,e.next=8,this.signalChannel_.sendWaitForResponse({command:pD,data:i,timeout:5e3,responseCommand:Jj.START_MIX_TRANSCODE_RES,commandDesc:"startMixTranscode"});case 8:if(s=e.sent,c=s.data,l=c.code,u=c.message,0===l){e.next=15;break}throw-102083===l&&(u="Please enable relayed-push in ".concat(Jk," and try later, refer to ").concat(Xk,"tutorial-26-advanced-publish-cdn-stream.html")),this.log_.error("startMixTranscode failed, errCode: ".concat(l," errMsg: ").concat(u)),this.isMixing_=!1,new _D({code:gD.START_MIX_TRANSCODE_FAILED,message:eT({key:Bw,data:{message:u},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 o.apply(this,arguments)})},{key:"reStartMixTranscode",value:function(){this.isMixing_&&this.startMixTranscode(this.config_)}},{key:"stopMixTranscode",value:(n=i(r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isMixing_){e.next=2;break}throw new _D({code:gD.INVALID_OPERATION,message:eT({key:Gw})});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(r().mark((function e(){var t,n,o,a,i;return r().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:fD,data:t,timeout:5e3,responseCommand:Jj.STOP_MIX_TRANSCODE_RES,commandDesc:"stopMixTranscode"});case 4:if(n=e.sent,o=n.data,a=o.code,i=o.message,0!==a){e.next=10;break}this.isMixing_=!1,e.next=12;break;case 10:throw this.log_.error("stopMixTranscode failed, errCode: ".concat(a," errMsg: ").concat(i)),new _D({code:gD.STOP_MIX_TRANSCODE_FAILED,message:eT({key:Fw,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 uT(t.streamId)&&t.streamId.length>0?t.streamId:Pq("".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:lT(e.streamType)||e.streamType!==jM?0:1,inputType:e.pureAudio?Mk.IT_PURE_AUDIO:Mk.IT_AUDIO_VIDEO,renderMode:e.renderMode||0}}));return e.mode===bk.PRESET_LAYOUT&&(r.forEach((function(e){if(e.userId===Ok.REMOTE){var n=M(t.values()).find((function(e){return!e.isUsed}));n&&(e.userId=n.remoteStream.getUserId(),e.streamType=n.remoteStream.getType()===jM?1:0,n.isUsed=!0)}})),r=r.filter((function(e){return e.userId!==Ok.REMOTE}))),r}},{key:"getOutputParam",value:function(e){var t=e.streamId||"";return{streamId:t,streamType:t.length>0?1:0,width:lT(e.videoWidth)?640:e.videoWidth,height:lT(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}(),Vq=function(){function e(t){s(this,e),this.client_=t.client,this.signalChannel_=t.signalChannel,this.publishTencentMainStreamObj_={params_:null,streamId_:void 0,isPublishing_:!1},this.publishTencentAuxStreamObj_={params_:null,streamId_:void 0,isPublishing_:!1},this.publishGivenCDNData_=null,this.isPublishingGivenCDN_=!1}var t,n,o,a,c,u;return l(e,[{key:"setSignalChannel",value:function(e){this.signalChannel_=e.signalChannel}},{key:"getIsPublishingTencentCDN",value:function(){return this.publishTencentMainStreamObj_.isPublishing_||this.publishTencentAuxStreamObj_.isPublishing_}},{key:"getIsPublishingGivenCDN",value:function(){return this.isPublishingGivenCDN_}},{key:"generatePublishCDNStreamId",value:function(e,t){if(!e){var n="".concat(this.client_.getRoomId(),"_").concat(this.client_.getUserId(),"_").concat(t);return/^[A-Za-z\d_-]*$/.test(n)||(n=Pq(n)),"".concat(this.client_.getSDKAppId(),"_").concat(n)}return e}},{key:"generatePublishCDNSessionId",value:function(e){return Pq("".concat(this.client_.getRoomId(),"_").concat(this.client_.getUserId(),"_").concat(e))}},{key:"startPublishTencentCDN",value:(u=i(r().mark((function e(t){var n,o,a,i;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.streamType===DO?(this.publishTencentAuxStreamObj_.params_=t,this.publishTencentAuxStreamObj_.isPublishing_=!0):(this.publishTencentMainStreamObj_.params_=t,this.publishTencentMainStreamObj_.isPublishing_=!0),this.client_.isJoined_){e.next=3;break}return e.abrupt("return");case 3:return n=this.generatePublishCDNStreamId(t.streamId,t.streamType),o=this.generatePublishCDNSessionId(t.streamType),a=t.streamType===DO?1:0,i={requestTime:Date.now(),sessionId:o,streamId:n,streamType:a},e.next=9,this.doStartPublishTencentCDN(i,t.streamType);case 9:case"end":return e.stop()}}),e,this)}))),function(e){return u.apply(this,arguments)})},{key:"doStartPublishTencentCDN",value:(c=i(r().mark((function e(t,n){var o,a,i,s;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,xE.info("startPublishTencentCDN: "+JSON.stringify(t)),e.next=4,this.signalChannel_.sendWaitForResponseWithRetry({command:cD,data:t,timeout:2e3,responseCommand:Jj.START_PUBLISH_TENCENT_CDN_RES,commandDesc:"startPublishCDNStream",retries:2});case 4:if(o=e.sent,a=o.data,i=a.code,s=a.message,0!==i){e.next=10;break}n===DO?this.publishTencentAuxStreamObj_.streamId_=t.streamId:this.publishTencentMainStreamObj_.streamId_=t.streamId,e.next=14;break;case 10:throw n===DO?this.publishTencentAuxStreamObj_.isPublishing_=!1:this.publishTencentMainStreamObj_.isPublishing_=!1,-102083===i&&(s="Please enable relayed-push in ".concat(Jk," and try later, refer to ").concat(Xk,"tutorial-26-advanced-publish-cdn-stream.html")),xE.error("startPublishTencentCDN failed, errCode: ".concat(i,", errMsg: ").concat(s)),new _D({code:gD.START_PUBLISH_CDN_FAILED,message:eT({key:pw,data:{message:s},link:{className:"Client",fnName:"startPublishCDNStream"}})});case 14:e.next=20;break;case 16:throw e.prev=16,e.t0=e.catch(0),n===DO?this.publishTencentAuxStreamObj_.isPublishing_=!1:this.publishTencentMainStreamObj_.isPublishing_=!1,e.t0;case 20:case"end":return e.stop()}}),e,this,[[0,16]])}))),function(e,t){return c.apply(this,arguments)})},{key:"resetPublishTencentParam",value:function(e){e===qO&&(this.publishTencentMainStreamObj_={params_:null,streamId_:void 0,isPublishing_:!1}),e===DO&&(this.publishTencentAuxStreamObj_={params_:null,streamId_:void 0,isPublishing_:!1})}},{key:"stopPublishTencentCDN",value:(a=i(r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.client_.isJoined_){e.next=4;break}return this.resetPublishTencentParam(qO),this.resetPublishTencentParam(DO),e.abrupt("return");case 4:if(!this.publishTencentMainStreamObj_.isPublishing_){e.next=7;break}return e.next=7,this.doStopPublishTencentCDN(qO);case 7:if(!this.publishTencentAuxStreamObj_.isPublishing_){e.next=10;break}return e.next=10,this.doStopPublishTencentCDN(DO);case 10:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"doStopPublishTencentCDN",value:(o=i(r().mark((function e(t){var n,o,a,i,s;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={requestTime:Date.now(),sessionId:Pq("".concat(this.client_.getRoomId(),"_").concat(this.client_.getUserId(),"_").concat(t))},xE.info("stopPublishTencentCDN: "+JSON.stringify(n)),e.next=4,this.signalChannel_.sendWaitForResponse({command:lD,data:n,timeout:5e3,responseCommand:Jj.STOP_PUBLISH_TENCENT_CDN_RES,commandDesc:"stopPublishCDNStream"});case 4:if(o=e.sent,a=o.data,i=a.code,s=a.message,0!==i){e.next=10;break}this.resetPublishTencentParam(t),e.next=17;break;case 10:if(-102069!==i){e.next=15;break}xE.warn("stopPublishTencentCDN failed, can not stopPublishTencentCDN in auto relayed-push mode"),this.resetPublishTencentParam(t),e.next=17;break;case 15:throw xE.error("stopPublishTencentCDN failed, errCode: ".concat(i," errMsg: ").concat(s)),new _D({code:gD.STOP_PUBLISH_CDN_FAILED,message:eT({key:fw,data:{message:s},link:{className:"Client",fnName:"stopPublishCDNStream"}})});case 17:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"startPublishGivenCDN",value:(n=i(r().mark((function e(t){var n,o,a,i,s,c;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.streamType===qO?this.publishTencentMainStreamObj_.streamId_:this.publishTencentAuxStreamObj_.streamId_,o={pushRequestTime:Date.now(),pushAppId:t.appId,pushBizId:t.bizId,pushCdnUrl:t.url,pushStreamType:t.streamType,pushStreamId:n},xE.info("startPublishGivenCDN: "+JSON.stringify(o)),this.publishGivenCDNData_=o,this.isPublishingGivenCDN_=!0,this.client_.isJoined_){e.next=7;break}return e.abrupt("return");case 7:return e.prev=7,e.next=10,this.signalChannel_.sendWaitForResponse({command:uD,data:o,timeout:5e3,responseCommand:Jj.START_PUBLISH_GIVEN_CDN_RES,commandDesc:"startPublishCDNStream"});case 10:if(a=e.sent,i=a.data,s=i.code,c=i.message,0===s){e.next=17;break}throw xE.error("startPublishGivenCDN failed, errCode: ".concat(s,", errMsg: ").concat(c)),this.publishGivenCDNData_=null,this.isPublishingGivenCDN_=!1,new _D({code:gD.START_PUBLISH_CDN_FAILED,message:eT({key:pw,data:{message:c},link:{className:"Client",fnName:"startPublishCDNStream"}})});case 17:e.next=24;break;case 19:throw e.prev=19,e.t0=e.catch(7),this.publishGivenCDNData_=null,this.isPublishingGivenCDN_=!1,e.t0;case 24:case"end":return e.stop()}}),e,this,[[7,19]])}))),function(e){return n.apply(this,arguments)})},{key:"stopPublishGivenCDN",value:(t=i(r().mark((function e(){var t,n,o,a,i,s,c,l,u,d;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.client_.isJoined_){e.next=4;break}return this.publishGivenCDNData_=null,this.isPublishingGivenCDN_=!1,e.abrupt("return");case 4:return t=this.publishGivenCDNData_,n=t.pushAppId,o=t.pushBizId,a=t.pushCdnUrl,i=t.pushStreamType,s={pushRequestTime:Date.now(),pushAppId:n,pushBizId:o,pushCdnUrl:a,pushStreamType:i},xE.info("stopPublishGivenCDN: "+JSON.stringify(s)),e.next=9,this.signalChannel_.sendWaitForResponse({command:dD,data:s,timeout:5e3,responseCommand:Jj.STOP_PUBLISH_GIVEN_CDN_RES,commandDesc:"stopPublishCDNStream"});case 9:if(c=e.sent,l=c.data,u=l.code,d=l.message,0!==u){e.next=16;break}this.publishGivenCDNData_=null,this.isPublishingGivenCDN_=!1,e.next=18;break;case 16:throw xE.error("stopPublishGivenCDN failed, errCode: ".concat(u," errMsg: ").concat(d)),new _D({code:gD.STOP_PUBLISH_CDN_FAILED,message:eT({key:fw,data:{message:d},link:{className:"Client",fnName:"stopPublishCDNStream"}})});case 18:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"handleCDNConfigForJoinData",value:function(e){var t,n=e;if(this.publishTencentMainStreamObj_.isPublishing_||this.publishTencentAuxStreamObj_.isPublishing_){var r={};uT(n)&&(r=JSON.parse(n)),r.Str_uc_params||(r.Str_uc_params={}),this.publishTencentMainStreamObj_.isPublishing_&&(this.publishTencentMainStreamObj_.streamId_?r.Str_uc_params.userdefine_streamid_main=this.publishTencentMainStreamObj_.streamId_:this.publishTencentMainStreamObj_.params_&&(r.Str_uc_params.userdefine_streamid_main=this.generatePublishCDNStreamId(this.publishTencentMainStreamObj_.params_.streamId,qO))),this.publishTencentAuxStreamObj_.isPublishing_&&(this.publishTencentAuxStreamObj_.streamId_?r.Str_uc_params.userdefine_streamid_aux=this.publishTencentAuxStreamObj_.streamId_:this.publishTencentAuxStreamObj_.params_&&(r.Str_uc_params.userdefine_streamid_aux=this.generatePublishCDNStreamId(this.publishTencentAuxStreamObj_.params_.streamId,DO))),n=JSON.stringify(r)}if(this.isPublishingGivenCDN_){var o=this.publishGivenCDNData_,a=o.pushAppId,i=o.pushBizId,s=o.pushCdnUrl,c=o.pushStreamType,l=o.pushStreamId;t={pushRequestTime:Date.now(),pushAppId:a,pushBizId:i,pushCdnUrl:s,pushStreamType:c,pushStreamId:l}}return{bussinessInfo:n,pushUserCdnInfo:t}}},{key:"reset",value:function(){this.resetPublishTencentParam(qO),this.resetPublishTencentParam(DO),this.publishGivenCDNData_=null,this.isPublishingGivenCDN_=!1}}]),e}(),Bq=function(){function e(t){s(this,e),this.client_=t.client,this.durationMap_=new Map,this.installEvents()}return l(e,[{key:"installEvents",value:function(){NT.on(cE,this.handleSubscribed,this),NT.on(aE,this.handleStreamTrackUpdated,this),NT.on(lE,this.handleStreamStopped,this),NT.on(dE,this.handleStreamStopped,this)}},{key:"uninstallEvents",value:function(){NT.off(cE,this.handleSubscribed,this),NT.off(aE,this.handleStreamTrackUpdated,this),NT.off(lE,this.handleStreamStopped,this),NT.off(dE,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(),a="".concat(r,"_").concat(o);if(n.hasAudio())if(n.isMainAudioSubscribed){var i=new Aq,s=this.durationMap_.get(a);s?this.isRecording(s.audio)||s.audio.push(i):this.durationMap_.set(a,{userId:r,type:o,audio:[i],video:[]})}else this.stopDurationItem(a,wO);if(n.hasVideo())if(o===EM&&n.isMainVideoSubscribed||o===jM&&n.isAuxVideoSubscribed){var c=new Aq,l=this.durationMap_.get(a);l?this.isRecording(l.video)||l.video.push(c):this.durationMap_.set(a,{userId:r,type:o,audio:[],video:[c]})}else this.stopDurationItem(a,IO)}}},{key:"handleStreamStopped",value:function(e){var t=e.client,n=e.stream;if(this.clientHitTest(t)){var r=n.getUserId(),o=n.getType(),a="".concat(r,"_").concat(o);this.stopDurationItem(a,wO),this.stopDurationItem(a,IO)}}},{key:"handleStreamTrackUpdated",value:function(e){var t=e.client,n=e.userId,r=e.tinyId,o=e.kind,a=e.action;if(this.clientHitTest(t)&&this.client_.getConnections().has(r)){var i=o===jO?o:EM,s="".concat(n,"_").concat(i);if(a===Tk.ADD){var c=this.client_.getConnections().get(r).getSubscribeState();if(o===wO&&!c.audio||o===IO&&!c.video||o===jO&&!c.auxiliary)return;var l=new Aq,u=this.durationMap_.get(s);u?(o!==wO||this.isRecording(u.audio)||u.audio.push(l),o===wO||this.isRecording(u.video)||u.video.push(l)):this.durationMap_.set(s,{userId:n,type:i,audio:o===wO?[l]:[],video:o===wO?[]:[l]})}else this.stopDurationItem(s,o===wO?wO:IO)}}},{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()}},{key:"destroy",value:function(){this.client_=null,this.uninstallEvents()}}]),e}();function Fq(){return function(e,t,n){var o=n.value,a=new Set;return n.value=i(r().mark((function e(){var n,i,s,c,l=arguments;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!a.has(this)){e.next=2;break}throw new _D({code:gD.INVALID_OPERATION,message:eT({key:wC,data:{name:t}})});case 2:for(e.prev=2,a.add(this),n=l.length,i=new Array(n),s=0;s<n;s++)i[s]=l[s];return e.next=7,o.apply(this,i);case 7:return c=e.sent,a.delete(this),e.abrupt("return",c);case 12:throw e.prev=12,e.t0=e.catch(2),a.delete(this),e.t0;case 16:case"end":return e.stop()}}),e,this,[[2,12]])}))),n}}var Gq=null,zq=!0;function Hq(e){pT(e)&&e!==zq&&(zq=e,xE.info("setIsNeedToSchedule "+e))}function Yq(e){return Wq.apply(this,arguments)}function Wq(){return Wq=i(r().mark((function e(t){var n,o,a,i,s,c,l,u,d,p,f,h,m;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.userId,o=t.sdkAppId,a=t.useStringRoomId,i=t.roomId,s=t.userSig,zq||!Gq){e.next=3;break}return e.abrupt("return",{isCached:!0,result:Gq});case 3:return c={delta:0,count:[1,1],msg:[]},e.prev=4,(l=new FormData).append("userId",String(n)),l.append("sdkAppId",String(o)),l.append("isStrGroupId",a),l.append("groupId",String(i)),l.append("sdkVersion",No),l.append("userSig",String(s)),Bk&&l.append("oversea",!0),u=_T(),e.next=16,Xq(l,c,o);case 16:return(d=e.sent).config&&(d.config.loggerDomain&&_M(d.config.loggerDomain),pT(d.config.scheduleCache)&&Hq(!d.config.scheduleCache)),c.delta=_T()-u,Kq({stat:c,userId:n}),Gq=d,e.abrupt("return",{isCached:!1,result:d});case 24:throw e.prev=24,e.t0=e.catch(4),p=hT(e.t0)?e.t0[0]:e.t0,f=dT(p.code)?p.code:0,h="get websocket url failed: ".concat(p.message.includes("timeout")?"timeout":p.message),m=new _D({code:gD.SCHEDULE_FAILED,extraCode:f,message:eT({key:KC,data:{error:h,code:f}})}),xE.error(m),Kq({stat:c,userId:n,roomId:i,error:m}),m;case 33:case"end":return e.stop()}}),e,null,[[4,24]])}))),Wq.apply(this,arguments)}function Kq(e){var t=e.stat,n=e.userId,r=e.error;r?sL.logFailedEvent({eventType:mk,error:r,userId:n}):sL.logSuccessEvent({eventType:mk,delta:t.delta,userId:n}),sL.uploadEvent({log:"stat-schedule:"+JSON.stringify(t),userId:n})}function $q(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:qO;return t=Bk||(nT(e)?n===qO?Uk:Vk:n===qO?Rk:Pk),"https://".concat(t,"/api/v1/config")}function Jq(e,t,n){return new Promise((function(r,o){DT({url:e,body:t,timeout:n.timeout}).then((function(e){0===e.data.code?r(e.data.data):o({code:e.data.code,message:e.data.msg})})).catch(o)}))}NT.on(VT,(function(){return Hq(!0)})),NT.on(ZT,(function(){return Hq(!0)})),NT.on(eE,(function(){return Hq(!0)})),NT.on(XT,(function(){return Hq(!0)})),NT.on(CE,(function(e){e.state===NM&&Hq(!0)}));var Qq=function(e,t){return jE({retryFunction:Jq,settings:{retries:3,timeout:0},onError:t,onRetrying:e})};function Xq(e,t,n){return new Promise((function(r,o){var a,i=null;(a=[Qq((function(e){return t.count[0]=e+1}),(function(e,n){t.msg[0]=e.message,i||n()}))($q(n,qO),e,{get timeout(){return 1e3*iT(2+t.count[0])}}),Qq((function(e){return t.count[1]=e+1}),(function(e,n){t.msg[1]=e.message,i||n()}))($q(n,WO),e,{get timeout(){return 1e3*iT(2+t.count[1])}})],new Promise((function(e,t){var n=[];a.forEach((function(r){r.then(e).catch((function(e){n.push(e),n.length===a.length&&t(n)}))}))}))).then((function(e){r(i=e)})).catch(o)}))}var Zq,eW,tW,nW,rW,oW,aW,iW,sW,cW,lW,uW,dW,pW,fW,hW,mW,vW,gW,_W,yW,bW,OW,MW,kW,CW,wW,IW,SW,TW,EW,jW,DW,LW,AW,NW,xW,RW,PW,UW,VW,BW,FW,GW=function(){function e(){s(this,e)}return l(e,[{key:"call",value:function(e,t){return cT(this[e])?this[e](t):Promise.reject(new _D({code:gD.INVALID_PARAMETER,message:eT({key:vI,data:{name:e}})}))}},{key:"updatePrivateMapKey",value:function(e){var t=e.privateMapKey;return e.client.setProperty("privateMapKey",t),Promise.resolve()}}]),e}(),zW=new GW,HW=(Zq=Fq(),eW=TH(IH.CLIENT.join),tW=PH({retries:1,timeout:0,onError:function(e,t,n){this.isUsingCachedSchedule_?(this.log_.warn("is using cached schedule, retry join"),Hq(!0),this.reset(),t()):(NT.emit(VT,{client:this,error:e}),sL.logFailedEvent({userId:this.userId_,eventType:HM,error:e}),this.reset(),this.log_.error(e),n(e))}}),nW=Fq(),rW=PH({retries:3}),oW=Fq(),aW=TH.apply(void 0,M(IH.CLIENT.publish)),iW=WH(zk),sW=Fq(),cW=TH(IH.CLIENT.unpublish),lW=TH.apply(void 0,M(IH.CLIENT.subscribe)),uW=TH(IH.CLIENT.unsubscribe),dW=Fq(),pW=TH(IH.CLIENT.switchRole),fW=WH(zk),hW=TH(IH.CLIENT.startPublishCDNStream),mW=WH(zk),vW=WH(zk),gW=TH(IH.CLIENT.startMixTranscode),_W=WH(zk),yW=WH(zk),bW=WH(zk),OW=WH(zk),MW=WH(zk),kW=WH(zk),CW=WH(zk),wW=SH.apply(void 0,M(IH.CLIENT.sendSEIMessage)),IW=WH(zk),DW={timesInSecond:30,maxSizeInSecond:8e3,getSize:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t[0].byteLength}},LW=DW.timesInSecond,AW=DW.maxSizeInSecond,NW=DW.getSize,SW=function(e,t,n){var r=n.value,o=new Map;return NT.on(QT,(function(e){var t=e.client;return o.delete(t)})),n.value=function(){var e=o.get(this);e||(e={callCountInSecond:0,timestamp:0,totalSizeInSecond:0},o.set(this,e)),0===e.timestamp?e.timestamp=Date.now():Date.now()-e.timestamp>1e3&&(e.timestamp=Date.now(),e.callCountInSecond=0,e.totalSizeInSecond=0);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];if(NW&&(e.totalSizeInSecond+=NW.apply(void 0,a)),0!==e.timestamp&&Date.now()-e.timestamp<1e3&&(e.callCountInSecond>=LW||e.totalSizeInSecond>AW))throw new _D({code:gD.INVALID_OPERATION,message:eT({key:wI,data:{isTimes:e.callCountInSecond>=LW,isSize:e.totalSizeInSecond>AW,name:t,timesInSecond:LW,maxSizeInSecond:AW}})});return e.callCountInSecond++,r.apply(this,a)},n},TW=WH(zk),EW=WH(zk),jW=function(){function e(t){var n,r;s(this,e),this.name_=zk,this.mode_=t.mode,this.sdpSemantics_=yk,lT(t.sdpSemantics)?function(){var e;if(lT(window.RTCRtpTransceiver))return!1;if(!("currentDirection"in RTCRtpTransceiver.prototype))return!1;var t=null,n=!1;try{(t=new RTCPeerConnection({sdpSemantics:_k})).addTransceiver(wO),n=!0}catch(qq){}return null===(e=t)||void 0===e||e.close(),n}()&&(this.sdpSemantics_=_k):this.sdpSemantics_=t.sdpSemantics,this.sdkAppId_=t.sdkAppId,this.userId_=t.userId,this.log_=xE.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_=CM,this.privateMapKey_="",this.tinyId_=0,this.env_="",this.proxy_=null,this.unifiedProxy_=null,this.connections_=new Map,this.mutedStates_=new Map,this.userMap_=new Map,this.syncUserListInterval_=-1,this.localStream_=null,this.localAuxStream_=null,this.uplinkConnection_=null,this.emitter_=ST(new AT,this.name_),this.isJoined_=!1,this.heartbeat_=-1,this.lastHeartBeatTime_=-1,this.stats_=new zA(this),this.joinTimeout_=-1,this.changeBigSmallRecords_=new Map,this.networkQuality_=null,this.badCaseDetector_=null,this.networkType_=oT(),this.autoSubscribe_=!!lT(t.autoSubscribe)||t.autoSubscribe,this.joinedTimestamp_=0,this.joinOptions_={},this.basis_=(r={browser:QS().name+"/"+QS().version,os:IA(),displayResolution:SA(),isScreenShareSupported:hA(),isWebRTCSupported:oA(),isGetUserMediaSupported:TA(),isWebAudioSupported:EA(),isWebSocketsSupported:"WebSocket"in window&&2===window.WebSocket.CLOSING,isWebCodecSupported:(n={AudioDecoder:!1,AudioEncoder:!1,VideoDecoder:!1,VideoEncoder:!1,ImageDecoder:!1},lT(window.AudioDecoder)||(n.AudioDecoder=!0),lT(window.AudioEncoder)||(n.AudioEncoder=!0),lT(window.VideoDecoder)||(n.VideoDecoder=!0),lT(window.VideoEncoder)||(n.VideoEncoder=!0),lT(window.ImageDecoder)||(n.ImageDecoder=!0),n),isMediaSessionSupported:"mediaSession"in navigator&&!lT(navigator.mediaSession.setActionHandler),isWebTransportSupported:!lT(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_=new Vq({client:this}),this.keyPointManager_=new YH({client:this,frameWorkType:t.frameWorkType,component:t.component}),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,trtcCapability:null},this.isUsingCachedSchedule_=!1,this.enableAutoPlayDialog_=!!lT(t.enableAutoPlayDialog)||t.enableAutoPlayDialog,this.enableMultiAuxStream_=!lT(t.enableMultiAuxStream)&&t.enableMultiAuxStream,this.signalInfo_={},this.enableSEI_=!lT(t.enableSEI)&&t.enableSEI,this.isDestroyed_=!1}var t,o,a,c,u,d,p,f,h,m,v,g,_,y,b,k,C,I,S,T,E,j,D,L,A,N,x;return l(e,[{key:"initBussinessInfo_",value:function(e){this.bussinessInfo_=e.bussinessInfo;var t={};if(uT(e.bussinessInfo)&&(t=JSON.parse(e.bussinessInfo)),!lT(e.pureAudioPushMode)){if(!Number.isInteger(Number(e.pureAudioPushMode)))throw new _D({code:gD.INVALID_PARAMETER,message:eT({key:VC})});this.pureAudioPushMode_=e.pureAudioPushMode,t.Str_uc_params||(t.Str_uc_params={}),t.Str_uc_params.pure_audio_push_mod=this.pureAudioPushMode_}if(!lT(e.streamId)){if(!(uT(e.streamId)&&String(e.streamId)&&String(e.streamId).length<=64))throw new _D({code:gD.INVALID_PARAMETER,message:eT({key:BC})});t.Str_uc_params||(t.Str_uc_params={}),t.Str_uc_params.userdefine_streamid_main=e.streamId}if(!lT(e.userDefineRecordId)){if(null===e.userDefineRecordId.match(/^[A-Za-z0-9_-]{1,64}$/gi))throw new _D({code:gD.INVALID_PARAMETER,message:eT({key:FC})});t.Str_uc_params||(t.Str_uc_params={}),t.Str_uc_params.userdefine_record_id=e.userDefineRecordId}if(!lT(e.userDefinePushArgs)){if(!(uT(e.userDefinePushArgs)&&String(e.userDefinePushArgs)&&String(e.userDefinePushArgs).length<=256))throw new _D({code:gD.INVALID_PARAMETER,message:eT({key:GC})});t.Str_uc_params||(t.Str_uc_params={}),t.Str_uc_params.userdefine_push_args=e.userDefinePushArgs}e.enableServerAudioMix&&(t.Str_uc_params||(t.Str_uc_params={}),t.Str_uc_params.enable_server_audio_mix=1,t.Str_uc_params.uc_biz_type=1e3),aL(t)||(this.bussinessInfo_=JSON.stringify(t))}},{key:"schedule",value:(x=i(r().mark((function e(t){var o,a,i;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Yq({userId:this.userId_,sdkAppId:this.sdkAppId_,roomId:t,useStringRoomId:this.useStringRoomId_,version:this.version_,userSig:this.userSig_});case 2:o=e.sent,a=o.result,i=o.isCached,this.isUsingCachedSchedule_=i,a&&(this.log_.info("schedule with cache:".concat(i," : ").concat(JSON.stringify(a))),a.trtcCapability=null==a?void 0:a.trtcAutoConf,this.schedule_=n(n({},this.schedule_),a),NT.emit($T,this.schedule_));case 7:case"end":return e.stop()}}),e,this)}))),function(e){return x.apply(this,arguments)})},{key:"getSignalChannelUrl",value:function(){var e={mainUrl:"",backupUrl:""},t=tT();return t?e.mainUrl=e.backupUrl="wss://".concat(t,".rtc.qq.com"):this.proxy_?e.mainUrl=e.backupUrl=this.proxy_:this.unifiedProxy_?e.mainUrl=e.backupUrl="wss://".concat(this.unifiedProxy_):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:"getIceTransportPolicy",value:function(){return this.iceTransportPolicy_||this.schedule_.iceTransportPolicy||"all"}},{key:"initialize",value:function(e){var t=this;this.log_.info("setup signal channel");var n=this.getSignalChannelUrl(),r=n.mainUrl,o=n.backupUrl;return this.signalChannel_=new cL({sdkAppId:this.sdkAppId_,userId:this.userId_,userSig:this.userSig_,roomId:e.roomId,url:r,backupUrl:o,signalDomainWhenUnifiedProxy:this.unifiedProxy_?this.schedule_.domains[0]:void 0,client:this}),this.networkQuality_||(this.networkQuality_=new HA({connections:this.connections_,signalChannel:this.signalChannel_,userId:this.userId_,client:this}),this.networkQuality_.on(xA.NETWORK_QUALITY,(function(e){t.emitter_.emit(xA.NETWORK_QUALITY,e)}))),this.deviceDetector_||(this.deviceDetector_=new YA({client:this})),this.subscriptionManager_||(this.subscriptionManager_=new JH({client:this})),this.badCaseDetector_||(this.badCaseDetector_=new Nq({client:this,stats:this.stats_})),this.callDurationCalculator_||(this.callDurationCalculator_=new Bq({client:this})),this.mixTranscodeManager_||(this.mixTranscodeManager_=new Uq({client:this,signalChannel:this.signalChannel_})),this.publishCDNManager_&&this.publishCDNManager_.setSignalChannel({signalChannel:this.signalChannel_}),this.signalChannel_.on(Fj,(function(e){t.log_.info("SignalChannel state changed from ".concat(e.prevState," to ").concat(e.state)),t.emitter_.emit(xA.CONNECTION_STATE_CHANGED,e)})),this.signalChannel_.on(zj,(function(e){t.reset(),t.emitter_.emit(xA.ERROR,e)})),this.signalChannel_.once(Vj,(function(e){t.tinyId_=e.signalInfo.tinyId,NT.emit(WT,{client:t})})),this.signalChannel_.on(Jj.PEER_JOIN,this.onPeerJoin,this),this.signalChannel_.on(Jj.PEER_LEAVE,this.onPeerLeave,this),this.signalChannel_.on(Jj.UPDATE_REMOTE_MUTE_STAT,(function(e){Date.now()-t.lastHeartBeatTime_>=1e4&&t.doHeartbeat(),NT.emit(HT,{client:t,data:e.data}),t.onPublishedUserList(e.data),t.onUpdateRemoteMuteStat(e.data)})),this.signalChannel_.on(Jj.CLIENT_BANNED,(function(e){var n,r=e.data.data.reason;if(sL.uploadEvent({log:"stat-banned:".concat(r),userId:t.userId_}),r===KO)n="you got banned by the admin";else if(r===$O)n="duplicated userId joining the room";else if(r===QO)n="the room has been disbanded by the admin",r=r.replace("_","-");else if(r===JO)return t.log_.warn("".concat(r," last heart beat time: ").concat(t.lastHeartBeatTime_," interval: ").concat(Date.now()-t.lastHeartBeatTime_,", visibility: ").concat(document.visibilityState)),void t.reJoin();t.log_["kick"===r?"error":"info"]("user was banned because of [".concat(r,"]")),t.reset(),t.emitter_.emit(xA.CLIENT_BANNED,{reason:r,message:eT({key:cw,data:{message:n,reason:r}})||r})})),NT.emit(qT,{client:this}),this.signalChannel_.connect()}},{key:"preJoin",value:(N=i(r().mark((function e(t){var n,o,a,i;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.joinOptions_=t,e.next=3,dA();case 3:if(this.checkSystemResult_=e.sent,this.checkDestroy(),(n=tT())||(n=dM,this.proxy_&&(this.proxy_.startsWith(lM)?n=pM:this.proxy_.startsWith(uM)&&(n=fM))),this.env_=n,sL.setConfig({env:n,sdkAppId:this.sdkAppId_,userId:this.userId_,roomId:t.roomId}),this.uploadTrtcStats(),o=this.checkSystemResult_.detail,a=o.isH264EncodeSupported,i=o.isVp8EncodeSupported,oA()&&(a||i)){e.next=13;break}throw new _D({code:gD.NOT_SUPPORTED,message:eT({key:oI})});case 13:case"end":return e.stop()}}),e,this)}))),function(e){return N.apply(this,arguments)})},{key:"join",value:(A=i(r().mark((function e(t){var n,o=this;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.roomId_=t.roomId,lT(t.role)||(this.role_=t.role),lT(t.privateMapKey)||(this.privateMapKey_=t.privateMapKey),n=_T(),NT.emit(xT,{client:this}),nL(this.userId_,{eventId:UD,eventDesc:"joining room",timestamp:Ym(),userId:this.userId_,tinyId:this.tinyId_}),e.next=8,this.preJoin(t);case 8:return e.abrupt("return",new Promise(function(){var e=i(r().mark((function e(a,i){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o.joinReject_=i,e.prev=1,o.proxy_||o.schedule_.domains){e.next=5;break}return e.next=5,o.schedule(t.roomId);case 5:return o.checkDestroy(),e.next=8,o.initialize(t);case 8:return e.next=10,o.doJoin(t);case 10:o.signalInfo_=o.signalChannel_.getSignalInfo(),NT.emit(UT,{client:o}),o.joinedTimestamp_=_T(),sL.logSuccessEvent({userId:o.userId_,eventType:YM,delta:o.joinedTimestamp_-n}),sL.logSuccessEvent({userId:o.userId_,eventType:HM}),sL.uploadEvent({log:"stat-autoplay-dialog:".concat(o.enableAutoPlayDialog_),userId:o.userId_}),sL.uploadEvent({log:"stat-conv-".concat(KS,"-").concat(location.hostname),userId:o.userId_}),a(),e.next=23;break;case 20:e.prev=20,e.t0=e.catch(1),i(e.t0);case 23:o.joinReject_=null;case 24:case"end":return e.stop()}}),e,null,[[1,20]])})));return function(t,n){return e.apply(this,arguments)}}()));case 9:case"end":return e.stop()}}),e,this)}))),function(e){return A.apply(this,arguments)})},{key:"checkDestroy",value:function(){if(this.isDestroyed_)throw new _D({code:gD.INVALID_OPERATION,message:eT({key:Vw,data:{funName:"join"}})})}},{key:"uploadTrtcStats",value:(L=i(r().mark((function e(){var t,n,o,a,i,s,c,l,u,d,p,f,h;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,KW.getMicrophones();case 3:o=e.sent,t=o&&o.length,e.next=9;break;case 7:e.prev=7,e.t0=e.catch(0);case 9:return e.prev=9,e.next=12,KW.getCameras();case 12:a=e.sent,n=a&&a.length,e.next=18;break;case 16:e.prev=16,e.t1=e.catch(9);case 18:i={microphone:t,camera:n},s=this.checkSystemResult_.detail,c=s.isH264EncodeSupported,l=s.isVp8EncodeSupported,u=s.isH264DecodeSupported,d=s.isVp8DecodeSupported,p={webRTC:this.basis_.isWebRTCSupported,getUserMedia:this.basis_.isGetUserMediaSupported,webSocket:this.basis_.isWebSocketsSupported,screenShare:this.basis_.isScreenShareSupported,webAudio:this.basis_.isWebAudioSupported,h264Encode:c,h264Decode:u,vp8Encode:l,vp8Decode:d},f={browser:this.basis_.browser,os:this.basis_.os,trtc:p,devices:i},h={isWebCodecSupported:this.basis_.isWebCodecSupported,isMediaSessionSupported:this.basis_.isMediaSessionSupported,isWebTransportSupported:this.basis_.isWebTransportSupported},sL.uploadEvent({log:"trtcstats-"+JSON.stringify(f),userId:this.userId_}),this.log_.info("TrtcStats-"+JSON.stringify(f)),sL.uploadEvent({log:"trtcadvancedstats-"+JSON.stringify(h),userId:this.userId_});case 26:case"end":return e.stop()}}),e,this,[[0,7],[9,16]])}))),function(){return L.apply(this,arguments)})},{key:"doJoin",value:function(e){var t=this;return new Promise((function(e,n){t.log_.info("Join() => joining room: ".concat(t.roomId_," useStringRoomId: ").concat(t.useStringRoomId_," mode: ").concat(t.mode_," role: ").concat(t.role_));var r={roomId:String(t.roomId_),useStringRoomId:t.useStringRoomId_,privateMapKey:t.privateMapKey_,trtcRole:t.role_===CM?MM:kM,trtcScene:t.mode_===OM?bM:yM,sdpSemantics:t.sdpSemantics_,version:ET(t.version_),ua:navigator&&navigator.userAgent||"",autoSubscribe:t.autoSubscribe_,terminalType:qI?4:zI?2:FI?3:yS?12:_S?5:bS?13:1,netType:Ek[oT()],bussinessInfo:t.bussinessInfo_,receiveMix:!0};if(t.publishCDNManager_){var o=t.publishCDNManager_.handleCDNConfigForJoinData(t.bussinessInfo_),a=o.bussinessInfo,i=o.pushUserCdnInfo;Object.assign(r,{bussinessInfo:a,pushUserCdnInfo:i})}t.log_.debug("join room signal data: ".concat(JSON.stringify(r))),t.joinTimeout_=setTimeout((function(){n(new _D({code:gD.JOIN_ROOM_FAILED,message:eT({key:WC})}))}),5e3),NT.emit(RT,{client:t}),t.signalChannel_.once(Bj,(function(e){t.clearJoinTimeout(),NT.emit(WT,{client:t,error:e}),n(e)})),t.signalChannel_.send(Zj,r),t.signalChannel_.once(Jj.JOIN_ROOM_RESULT,(function(r){t.clearJoinTimeout();var o=r.data,a=o.code,i=o.message,s=o.data;t.onPublishedUserList({data:{userList:s.publishers}}),NT.emit(PT,{client:t,code:a}),0===a?(t.isJoined_=!0,t.log_.info("Join room success, start heartbeat"),t.startHeartbeat(),t.badCaseDetector_&&t.badCaseDetector_.start(),t.syncUserList(),t.startSyncUserListInterval(),e()):(t.log_.error("Join room failed result: "+a+" error: "+i),n(new _D({code:gD.JOIN_ROOM_FAILED,extraCode:a,message:eT({key:KC,data:{error:i,code:a}})})))}))}))}},{key:"reJoin",value:(D=i(r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isJoined_){e.next=3;break}return this.log_.warn("reJoin abort"),e.abrupt("return");case 3:return this.isJoined_=!1,e.prev=4,this.log_.warn("reJoin pending: ".concat(this.joinOptions_.roomId)),this.subscriptionManager_&&this.subscriptionManager_.markAllStream(),this.signalChannel_.close(),e.next=10,this.signalChannel_.connect();case 10:return e.next=12,this.doJoin(n(n({},this.joinOptions_),{},{role:this.role_,privateMapKey:this.privateMapKey_}));case 12:this.log_.warn("reJoin success"),sL.logSuccessEvent({userId:this.userId_,eventType:qM}),this.checkConnectionsToReconnect(),this.uplinkConnection_&&!this.uplinkConnection_.getIsReconnecting()&&this.uplinkConnection_.startReconnection(),this.mixTranscodeManager_&&this.mixTranscodeManager_.reStartMixTranscode(),e.next=25;break;case 19:e.prev=19,e.t0=e.catch(4),this.log_.warn("reJoin fail "+e.t0),this.reset(),sL.logFailedEvent({userId:this.userId_,eventType:qM,error:e.t0}),this.emitter_.emit(xA.ERROR,new _D({code:gD.JOIN_ROOM_FAILED,message:eT({key:$C,data:{roomId:this.joinOptions_.roomId}})}));case 25:case"end":return e.stop()}}),e,this,[[4,19]])}))),function(){return D.apply(this,arguments)})},{key:"leave",value:(j=i(r().mark((function e(){var t;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return NT.emit(BT,{client:this}),nL(this.userId_,{eventId:VD,eventDesc:"leaving room",timestamp:Ym(),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(),NT.emit(GT,{client:this}),sL.logSuccessEvent({userId:this.userId_,eventType:WM}),t=Math.floor((_T()-this.joinedTimestamp_)/1e3),sL.logSuccessEvent({userId:this.userId_,eventType:KM,delta:t});case 14:case"end":return e.stop()}}),e,this,[[2,7]])}))),function(){return j.apply(this,arguments)})},{key:"doLeave",value:function(){this.isJoined_&&(NT.emit(FT,{client:this}),this.log_.info("leave() => leaving room"),this.signalChannel_.send(eD),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:"clearJoinTimeout",value:function(){clearTimeout(this.joinTimeout_),this.joinTimeout_=-1}},{key:"destroy",value:function(){var e,t,n;if(this.isJoined_)throw this.log_.warn(EI.INVALID_DESTROY),new _D({code:gD.INVALID_OPERATION,message:eT({key:JC})});this.isDestroyed_||(this.log_.info("destroy client"),this.joinReject_&&(this.joinReject_(new _D({code:gD.INVALID_OPERATION,message:eT({key:Vw,data:{funName:"join"}})})),this.clearJoinTimeout(),this.reset()),this.off("*"),null===(e=this.callDurationCalculator_)||void 0===e||e.destroy(),null===(t=this.keyPointManager_)||void 0===t||t.destroy(),null===(n=this.deviceDetector_)||void 0===n||n.destroy(),this.callDurationCalculator_=null,this.keyPointManager_=null,this.deviceDetector_=null,this.badCaseDetector_=null,this.publishCDNManager_=null,this.isDestroyed_=!0,NT.emit(QT,{client:this}))}},{key:"reset",value:function(){this.isJoined_=!1,this.schedule_={domains:null,iceServers:null,iceTransportPolicy:null,trtcCapability:null},this.keyPointManager_&&this.keyPointManager_.prepareReport(),this.mixTranscodeManager_&&(this.mixTranscodeManager_.reset(),this.mixTranscodeManager_=null),this.publishCDNManager_&&this.publishCDNManager_.reset(),this.userMap_.clear(),this.stopSyncUserListInterval(),this.stopHeartbeat(),this.closeConnections(),this.mutedStates_.clear(),this.clearNetworkQuality(),this.badCaseDetector_&&this.callDurationCalculator_&&this.uploadAllCallStats(),this.closeUplink(),this.signalChannel_&&(this.log_.info("destroying SignalChannel"),this.signalChannel_.close(),this.signalChannel_=null),this.stats_.reset()}},{key:"startSyncUserListInterval",value:function(){-1===this.syncUserListInterval_&&(this.syncUserListInterval_=XL.run(uC,this.syncUserList.bind(this)))}},{key:"stopSyncUserListInterval",value:function(){XL.clearTask(this.syncUserListInterval_),this.syncUserListInterval_=-1}},{key:"syncUserList",value:(E=i(r().mark((function e(){var t,n=this;return r().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(xA.PEER_JOIN,{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 E.apply(this,arguments)})},{key:"getUserList",value:function(){return this.signalChannel_?this.signalChannel_.sendWaitForResponse({command:hD,responseCommand:Jj.USER_LIST_RES,enableLog:!1,timeout:2e3}).then((function(e){var t=e.data,n=t.code,r=t.message;if(0===n)return(t.data&&t.data.userList||[]).map((function(e){var t=e.userId,n=e.srcTinyId,r=e.role;return new xq({userId:t,tinyId:n,role:r})}));throw eT({key:hI,data:{signalResponse:Jj.USER_LIST_RES,code:n,message:r}})})):[]}},{key:"publish",value:(T=i(r().mark((function e(t){var n,o,a,i,s,c,l,u,d=this,p=arguments;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=p.length>1&&void 0!==p[1]?p[1]:{isAuxiliary:!1},t.setPublishState(Dk),this.isPublishing_=!0,o=_T(),NT.emit(YT,{client:this,stream:t}),a=n.isAuxiliary,i=a?jO:qO,s=t.getScreen(),this.log_.info("publish() => publishing ".concat(s?SO+" ":"").concat(i," stream ").concat(t.getId())),c=this.uplinkConnection_,e.prev=10,c||((c=new jY({userId:this.userId_,tinyId:this.tinyId_,client:this,isUplink:!0,signalChannel:this.signalChannel_,enableSEI:this.enableSEI_})).initialize(),c.on(NA.ERROR,(function(e){var t=e.getCode();t!==gD.ICE_TRANSPORT_ERROR&&(t===gD.UPLINK_RECONNECTION_FAILED&&d.closeUplink(),d.emitter_.emit(xA.ERROR,e))}))),t.setConnection(c),e.next=15,c.publish(t,a);case 15:this.log_.info("local ".concat(s?SO+" ":"").concat(i," stream is published")),this.isPublishing_=!1,a?this.localAuxStream_=t:(this.localStream_=t,this.deviceDetector_&&this.deviceDetector_.setLocalStream(this.localStream_),this.localStream_.getBeautyStatus()&&this.log_.info("beauty stream is published successfully")),t.setPublishState(Lk),t.setClient(this,a),this.uplinkConnection_=c,l=_T(),u=l-o,sL.logSuccessEvent({userId:this.userId_,eventType:$M}),sL.logSuccessEvent({userId:this.userId_,eventType:JM,delta:u}),t.hasAudio()&&nL(this.userId_,{eventId:bD,eventDesc:"publish audio track",timestamp:Ym(),userId:this.userId_,tinyId:this.tinyId_}),t.hasVideo()&&nL(this.userId_,{eventId:yD,eventDesc:"publish video track",timestamp:Ym(),userId:this.userId_,tinyId:this.tinyId_}),this.networkQuality_&&this.networkQuality_.setUplinkConnection(this.uplinkConnection_),NT.emit(pE,{localStream:t,isAuxiliary:a,client:this}),this.notPublishWithoutH264Supported_=!1,t.isAIDenoiser&&qH.handleFunctionState({fnName:"AI_DENOISER"}),e.next=42;break;case 33:throw e.prev=33,e.t0=e.catch(10),e.t0 instanceof _D&&e.t0.getCode()===gD.NOT_SUPPORTED_H264&&(this.notPublishWithoutH264Supported_=!0),t.setPublishState(jk),c.close(),this.log_.error("failed to publish stream "+e.t0),this.isPublishing_=!1,sL.logFailedEvent({userId:this.userId_,eventType:$M,error:e.t0}),e.t0;case 42:case"end":return e.stop()}}),e,this,[[10,33]])}))),function(e){return T.apply(this,arguments)})},{key:"unpublish",value:(S=i(r().mark((function e(t){var n,o;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.uplinkConnection_){e.next=2;break}return e.abrupt("return");case 2:return n=t===this.localAuxStream_,o=t.getScreen(),this.log_.info("unpublish() => unpublishing local ".concat(o?SO+" ":"").concat(n?jO:qO," stream")),e.prev=5,e.next=8,this.uplinkConnection_.unpublish(t);case 8:t.setClient(null),t.setConnection(null),n?this.localAuxStream_=null:(this.localStream_=null,t.hasAudio()&&nL(this.userId_,{eventId:MD,eventDesc:"unpublish audio track",timestamp:Ym(),userId:this.userId_,tinyId:this.tinyId_}),t.hasVideo()&&nL(this.userId_,{eventId:OD,eventDesc:"unpublish video track",timestamp:Ym(),userId:this.userId_,tinyId:this.tinyId_})),this.localStream_||this.localAuxStream_||this.closeUplink(),sL.logSuccessEvent({userId:this.userId_,eventType:QM}),e.next=19;break;case 15:throw e.prev=15,e.t0=e.catch(5),sL.logFailedEvent({userId:this.userId_,eventType:QM,error:e.t0}),e.t0;case 19:case"end":return e.stop()}}),e,this,[[5,15]])}))),function(e){return S.apply(this,arguments)})},{key:"closeUplink",value:function(){this.uplinkConnection_&&(this.uplinkConnection_.close(),this.uplinkConnection_=null,this.networkQuality_&&this.networkQuality_.setUplinkConnection(null),this.localStream_&&(this.localStream_.setClient(null),this.localStream_.setConnection(null),this.localStream_=null),this.localAuxStream_&&(this.localAuxStream_.setClient(null),this.localAuxStream_.setConnection(null),this.localAuxStream_=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:(I=i(r().mark((function e(t,n){var o,a,i;return r().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))),lT(n)&&(n={audio:!0,video:!0}),lT(n.audio)&&(n.audio=!0),lT(n.smallVideo)?lT(n.video)&&(n.video=!0):n.smallVideo?lT(n.video)?(n.video=!1,n.smallVideo=!0):n.video&&(n.video=!0,delete n.smallVideo,this.log_.warn("options.video and options.smallVideo can't be both true")):lT(n.video)&&(n.video=!0,delete n.smallVideo),n.video&&this.changeBigSmallRecords_.delete(t.getUserId()),o=t.getConnection(),n.smallVideo&&(o.getTrackState().smallVideo||(this.setRemoteVideoStreamType(t,"small"),n.video=!0,delete n.smallVideo)),e.prev=7,NT.emit(sE,{client:this,stream:t}),e.next=11,o.subscribe(t,n);case 11:this.subscriptionManager_&&this.subscriptionManager_.addSubscriptionRecord(t.getUserId(),t,n),this.notSubscribeWithoutH264Supported_=!1,sL.logSuccessEvent({userId:this.userId_,eventType:XM}),e.next=24;break;case 16:throw e.prev=16,e.t0=e.catch(7),(a=e.t0 instanceof _D?e.t0.getCode():gD.UNKNOWN)===gD.NOT_SUPPORTED_H264&&(this.notSubscribeWithoutH264Supported_=!0),(i=new _D(a===gD.REMOTE_STREAM_NOT_EXIST?{code:gD.API_CALL_ABORTED,message:eT({key:SI,data:{message:e.t0.message,stream:t}})}:{code:a,message:eT({key:rw,data:{message:e.t0.message,stream:t}})})).getCode()===gD.API_CALL_ABORTED?this.log_.warn(i):this.log_.error(i),sL.logFailedEvent({userId:this.userId_,eventType:XM,error:i}),i;case 24:case"end":return e.stop()}}),e,this,[[7,16]])}))),function(e,t){return I.apply(this,arguments)})},{key:"unsubscribe",value:(C=i(r().mark((function e(t){var n;return r().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),NT.emit(lE,{client:this,stream:t}),sL.logSuccessEvent({userId:this.userId_,eventType:ZM}),e.next=14;break;case 10:throw e.prev=10,e.t0=e.catch(1),sL.logFailedEvent({userId:this.userId_,eventType:ZM,error:e.t0}),e.t0;case 14:case"end":return e.stop()}}),e,this,[[1,10]])}))),function(e){return C.apply(this,arguments)})},{key:"switchRole",value:(k=i(r().mark((function e(t){return r().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:return t===wM&&this.uplinkConnection_&&this.closeUplink(),this.log_.info("switchRole() => switch role to: "+t),e.next=6,this.doSwitchRole(t);case 6:case"end":return e.stop()}}),e,this)}))),function(e){return k.apply(this,arguments)})},{key:"doSwitchRole",value:function(e){var t,n,r=this,o={command:mD,data:{role:e===CM?MM:kM,privateMapKey:this.privateMapKey_},responseCommand:Jj.SWITCH_ROLE_RES,retries:(null===(t=this.schedule_.config)||void 0===t||null===(n=t.retries)||void 0===n?void 0:n.switchRole)||1};return this.log_.info("switchRole signal data: "+JSON.stringify(o.data)),this.signalChannel_.sendWaitForResponseWithRetry(o).then((function(t){var n=t.data,o=n.code,a=n.message;if(0!==o)throw new _D({code:gD.SWITCH_ROLE_FAILED,message:eT({key:sw,data:{errMsg:a,errCode:o}})});r.role_=e})).catch((function(e){throw e instanceof _D&&e.getCode()===gD.API_CALL_TIMEOUT&&(e=new _D({code:gD.SWITCH_ROLE_FAILED,message:eT({key:iw})})),r.log_.error(e),e}))}},{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,t=[];return this.mutedStates_.forEach((function(r,o,a){var i=e.connections_.get(o);i&&t.push(n({userId:i.getUserId()},r))})),t}},{key:"getTransportStats",value:(b=i(r().mark((function e(){var t,n,o,a,i,s,c;return r().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:o=w(this.connections_),e.prev=7,o.s();case 9:if((a=o.n()).done){e.next=17;break}return(i=O(a.value,2))[0],s=i[1],e.next=13,this.stats_.getReceiverStats(s);case 13:c=e.sent,t.downlinksRTT[c.userId]=c.rtt;case 15:e.next=9;break;case 17:e.next=22;break;case 19:e.prev=19,e.t0=e.catch(7),o.e(e.t0);case 22:return e.prev=22,o.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 b.apply(this,arguments)})},{key:"getLocalAudioStats",value:(y=i(r().mark((function e(){var t,n;return r().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 y.apply(this,arguments)})},{key:"getLocalVideoStats",value:(_=i(r().mark((function e(){var t,n;return r().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 _.apply(this,arguments)})},{key:"getRemoteAudioStats",value:(g=i(r().mark((function e(){var t,n,o,a,i,s,c,l;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t={},n=w(this.connections_),e.prev=2,n.s();case 4:if((o=n.n()).done){e.next=13;break}return(a=O(o.value,2))[0],i=a[1],s=i.getDelay(),c=s.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:c});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 g.apply(this,arguments)})},{key:"getRemoteVideoStats",value:(v=i(r().mark((function e(){var t,n,o,a,i,s,c,l,u,d=arguments;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=d.length>0&&void 0!==d[0]?d[0]:EM,n={},o=w(this.connections_),e.prev=3,o.s();case 5:if((a=o.n()).done){e.next=15;break}return(i=O(a.value,2))[0],s=i[1],e.next=9,this.stats_.getReceiverStats(s);case 9:c=e.sent,l=s.getDelay(),u=l.videoDelay,t===EM&&c.hasVideo&&(n[c.userId]={bytesReceived:c.video.bytesReceived,packetsReceived:c.video.packetsReceived,packetsLost:c.video.packetsLost,framesDecoded:c.video.framesDecoded,frameWidth:c.video.frameWidth,frameHeight:c.video.frameHeight,end2EndDelay:u}),t===jM&&c.hasAuxiliary&&(n[c.userId]={bytesReceived:c.auxiliary.bytesReceived,packetsReceived:c.auxiliary.packetsReceived,packetsLost:c.auxiliary.packetsLost,framesDecoded:c.auxiliary.framesDecoded,frameWidth:c.auxiliary.frameWidth,frameHeight:c.auxiliary.frameHeight,end2EndDelay:u});case 13:e.next=5;break;case 15:e.next=20;break;case 17:e.prev=17,e.t0=e.catch(3),o.e(e.t0);case 20:return e.prev=20,o.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 v.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_=XL.run(uC,this.doHeartbeat.bind(this),{delay:2e3}))}},{key:"stopHeartbeat",value:function(){-1!==this.heartbeat_&&(this.log_.info("stopHeartbeat"),XL.clearTask(this.heartbeat_),this.heartbeat_=-1,this.lastHeartBeatTime_=-1)}},{key:"doHeartbeat",value:(m=i(r().mark((function e(){var t,o,a,i,s,c;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=this.badCaseDetector_.getMonitorFreeze(),e.next=3,this.stats_.getStatsReport({uplinkConnection:this.uplinkConnection_,downlinkConnections:this.connections_,freezeMap:o});case 3:if(a=e.sent,NT.emit(zT,{client:this,stats:a}),null===(t=this.badCaseDetector_)||void 0===t||t.resetMonitor(),this.signalChannel_){e.next=8;break}return e.abrupt("return");case 8:i=this.signalChannel_.isConnected()?rL(this.userId_):[],s=n(n({str_sdk_version:this.version_,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:Ek[this.networkType_]}},a),{},{msg_event_msg:i}),this.signalChannel_.send(tD,s),c=Date.now(),this.lastHeartBeatTime_>0&&c-this.lastHeartBeatTime_>1e4&&this.log_.warn("heartbeat took ".concat(c-this.lastHeartBeatTime_)),this.lastHeartBeatTime_=c,!this.isRelayChanged_&&this.isRelayMaybeFailed()&&(this.reJoin(),this.isRelayChanged_=!0);case 15:case"end":return e.stop()}}),e,this)}))),function(){return m.apply(this,arguments)})},{key:"onRemoteStreamAdded",value:function(e){var t=e.content,n=t.userId,r=t.tinyId,o=t.audio,a=t.bigVideo,i=t.auxVideo,s=t.smallVideo;if(null!==n){this.userMap_.has(n)||(this.userMap_.set(n,new xq({userId:n,tinyId:r,role:CM})),this.emitter_.emit(xA.PEER_JOIN,{userId:n}));var c=this.connections_.get(r);if(c){if(c.getIsReconnecting())return;this.log_.warn("duplicated stream-added observed, rebuild the connection"),c.close(),this.connections_.delete(r)}var l={audio:o,video:a,auxiliary:i,smallVideo:s};this.log_.info("remote peer [".concat(n,"] published stream. trackState: ").concat(JSON.stringify(l))),this.createDownlinkConnection({userId:n,tinyId:r,trackState:l})}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,a=new Lq({userId:n,tinyId:r,client:this,isUplink:!1,signalChannel:this.signalChannel_,autoSubscribe:this.autoSubscribe_,trackState:o,enableSEI:this.enableSEI_});this.connections_.set(r,a),this.installDownlinkEvents(a,n,r),this.autoSubscribe_?(a.initialize(),a.connect().catch((function(){!a.getMainStream()&&a.hasMainStream()&&t.initRemoteStream({type:EM,userId:n,downlinkConnection:a}),!a.getAuxStream()&&a.hasAuxStream()&&t.initRemoteStream({type:jM,userId:n,downlinkConnection:a})}))):(a.hasMainStream()&&this.initRemoteStream({type:EM,userId:n,downlinkConnection:a}),a.hasAuxStream()&&this.initRemoteStream({type:jM,userId:n,downlinkConnection:a}))}},{key:"initRemoteStream",value:function(e){var t=e.type,n=e.userId,r=e.downlinkConnection,o=new $H({type:t,userId:n,client:this});o.setConnection(r),r.setRemoteStream(t===EM?IM:SM,o),o.setIsStreamAddedEventEmitted(!0),NT.emit(iE,{client:this,stream:o}),this.emitter_.emit(xA.STREAM_ADDED,{stream:o})}},{key:"installDownlinkEvents",value:function(e,t,n){var r=this;e.on(NA.SEI_MESSAGE,(function(e){r.emitter_.emit(xA.SEI_MESSAGE,e)})),e.on(NA.STREAM_ADDED,(function(e){e.stream.setIsStreamAddedEventEmitted(!0),NT.emit(iE,{client:r,stream:e.stream}),r.emitter_.emit(xA.STREAM_ADDED,{stream:e.stream})})),e.on(NA.STREAM_REMOVED,(function(e){r.changeBigSmallRecords_.delete(e.stream.getUserId()),e.stream.stop(),e.stream.setIsStreamAddedEventEmitted(!1),r.subscriptionManager_&&r.subscriptionManager_.deleteAutoRecoveryFlag(e.stream.getUserId(),e.stream.getType()),NT.emit(dE,{client:r,stream:e.stream}),r.emitter_.emit(xA.STREAM_REMOVED,{stream:e.stream})})),e.on(NA.STREAM_UPDATED,(function(t){NT.emit(uE,{client:r,stream:t.stream});var n=e.getMixUserList();n&&(t.mixUserList=n),r.emitter_.emit(xA.STREAM_UPDATED,t)})),e.on(NA.STREAM_SUBSCRIBED,(function(e){NT.emit(cE,{client:r,stream:e.stream}),r.emitter_.emit(xA.STREAM_SUBSCRIBED,{stream:e.stream})})),e.on(NA.ERROR,(function(e){var t=e.getCode();t!==gD.ICE_TRANSPORT_ERROR&&(t===gD.DOWNLINK_RECONNECTION_FAILED&&r.closeDownLink(n),r.emitter_.emit(xA.ERROR,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 xq({userId:r,tinyId:n,role:o})),this.emitter_.emit(xA.PEER_JOIN,{userId:r}))}},{key:"onPeerLeave",value:function(e){var t=e.data.data,n=t.srcTinyId,r=t.userId,o=t.reason,a=void 0===o?0:o;this.log_.info("peer leave [".concat(r,"]: ").concat(cC[a])),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(xA.PEER_LEAVE,{userId:t})}},{key:"onPublishedUserList",value:function(e){var t=this;try{var n=M(e.data.userList);e.data.mixRobotList&&n.push.apply(n,M(e.data.mixRobotList)),e.data.fakeMixUser&&n.push(e.data.fakeMixUser);var r=n.map((function(e){return e.userId}));this.connections_.forEach((function(e){var n=e.getUserId(),o=e.getTinyId();r.findIndex((function(e){return e===n}))<0&&(t.log_.info("peer unpublished detected [".concat(n,"]")),t.closeDownLink(o))})),n.forEach((function(e){var n=e.userId,r=e.srcTinyId,o=e.flag,a=e.mixUserList;if(n!==t.userId_){var i=!!(1&o),s=!!(8&o),c=!!(4&o),l=!!(2&o),u=t.connections_.get(r);if((l||i)&&t.checkSubscribeBigSmallVideo(u,l),u){var d=u.getTrackState(),p=d.audio,f=d.video,h=d.auxiliary,m=d.smallVideo;hT(a)&&u.setMixUserList(a),!f&&i&&NT.emit(aE,{client:t,tinyId:r,userId:n,action:Tk.ADD,kind:IO}),!p&&s&&NT.emit(aE,{client:t,tinyId:r,userId:n,action:Tk.ADD,kind:wO}),!h&&c&&NT.emit(aE,{client:t,tinyId:r,userId:n,action:Tk.ADD,kind:jO}),!m&&l&&NT.emit(aE,{client:t,tinyId:r,userId:n,action:Tk.ADD,kind:LO}),f&&!i&&NT.emit(aE,{client:t,tinyId:r,userId:n,action:Tk.REMOVE,kind:IO}),p&&!s&&NT.emit(aE,{client:t,tinyId:r,userId:n,action:Tk.REMOVE,kind:wO}),h&&!c&&NT.emit(aE,{client:t,tinyId:r,userId:n,action:Tk.REMOVE,kind:jO}),m&&!l&&NT.emit(aE,{client:t,tinyId:r,userId:n,action:Tk.REMOVE,kind:LO})}else t.log_.info("peer published detected [".concat(n,"]")),t.onRemoteStreamAdded({content:{audio:s,bigVideo:i,auxVideo:c,smallVideo:l,userId:n,tinyId:r}})}}))}catch(qq){}}},{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 a=o.getMainStream();if(a&&a.getIsStreamAddedEventEmitted()){var i=!!(1&e.flag),s=!!(8&e.flag),c=!!(2&e.flag),l=!!(64&e.flag),u=!!(16&e.flag),d=t.mutedStates_.get(n);if(void 0===d)return t.mutedStates_.set(n,{hasAudio:s,hasVideo:i,hasSmall:c,audioMuted:l,videoMuted:u}),i?u?t.emitter_.emit(xA.MUTE_VIDEO,{userId:r}):t.emitter_.emit(xA.UNMUTE_VIDEO,{userId:r}):t.emitter_.emit(xA.MUTE_VIDEO,{userId:r}),void(s?l?t.emitter_.emit(xA.MUTE_AUDIO,{userId:r}):t.emitter_.emit(xA.UNMUTE_AUDIO,{userId:r}):t.emitter_.emit(xA.MUTE_AUDIO,{userId:r}));var p=!d.audioMuted&&d.hasAudio,f=!l&&s,h=!d.videoMuted&&d.hasVideo,m=!u&&i;t.mutedStates_.set(n,{hasAudio:s,hasVideo:i,hasSmall:c,audioMuted:l,videoMuted:u}),p!==f&&(f?t.emitter_.emit(xA.UNMUTE_AUDIO,{userId:r}):t.emitter_.emit(xA.MUTE_AUDIO,{userId:r})),h!==m&&(m?t.emitter_.emit(xA.UNMUTE_VIDEO,{userId:r}):t.emitter_.emit(xA.MUTE_VIDEO,{userId:r}))}}else t.mutedStates_.delete(n)}}))}},{key:"getEnv",value:function(){return this.env_}},{key:"getSubscriptionManager",value:function(){return this.subscriptionManager_}},{key:"startPublishCDNStream",value:(h=i(r().mark((function e(){var t,n=arguments;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.length>0&&void 0!==n[0]?n[0]:{},this.log_.info("startPublishCDNStream with params: ".concat(JSON.stringify(t),"; isJoined: ").concat(this.isJoined_,"; hasMainStream: ").concat(!!this.localStream_,"; hasAuxStream: ").concat(!!this.localAuxStream_,";")),t.streamType=t.streamType||qO,t.streamType===jO&&(t.streamType=DO),t.streamId=t.streamId||"",!this.isJoined_){e.next=10;break}if(t.streamType!==qO||this.localStream_){e.next=8;break}throw new _D({code:gD.INVALID_OPERATION,message:eT({key:lw})});case 8:if(t.streamType!==DO||this.localAuxStream_){e.next=10;break}throw new _D({code:gD.INVALID_OPERATION,message:eT({key:lw})});case 10:return e.next=12,this.publishCDNManager_.startPublishTencentCDN(t);case 12:if(!(t.appId&&t.bizId&&t.url)){e.next=15;break}return e.next=15,this.publishCDNManager_.startPublishGivenCDN(t);case 15:case"end":return e.stop()}}),e,this)}))),function(){return h.apply(this,arguments)})},{key:"stopPublishCDNStream",value:(f=i(r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.publishCDNManager_.getIsPublishingTencentCDN()){e.next=2;break}throw new _D({code:gD.INVALID_OPERATION,message:eT({key:uw})});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 f.apply(this,arguments)})},{key:"startMixTranscode",value:(p=i(r().mark((function e(t){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isJoined_&&this.mixTranscodeManager_){e.next=2;break}throw new _D({code:gD.INVALID_OPERATION,message:eT({key:hw})});case 2:return lT(t.mode)&&(t.mode=bk.MANUAL),e.prev=3,this.log_.info("startMixTranscode with config ".concat(JSON.stringify(t))),sL.uploadEvent({log:"mix-transcode-mode:".concat(t.mode),userId:this.userId_}),e.next=8,this.mixTranscodeManager_.startMixTranscode(t);case 8:sL.logSuccessEvent({userId:this.userId_,eventType:pk}),e.next=15;break;case 11:throw e.prev=11,e.t0=e.catch(3),sL.logFailedEvent({userId:this.userId_,eventType:pk,error:e.t0}),e.t0;case 15:case"end":return e.stop()}}),e,this,[[3,11]])}))),function(e){return p.apply(this,arguments)})},{key:"stopMixTranscode",value:(d=i(r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isJoined_&&this.mixTranscodeManager_){e.next=2;break}throw new _D({code:gD.INVALID_OPERATION,message:eT({key:mw})});case 2:return e.prev=2,e.next=5,this.mixTranscodeManager_.stopMixTranscode();case 5:sL.logSuccessEvent({userId:this.userId_,eventType:fk}),e.next=12;break;case 8:throw e.prev=8,e.t0=e.catch(2),sL.logFailedEvent({userId:this.userId_,eventType:fk,error:e.t0}),e.t0;case 12:case"end":return e.stop()}}),e,this,[[2,8]])}))),function(){return d.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(!dT(t))throw new _D({code:gD.INVALID_PARAMETER,message:eT({key:vw})});if(this.log_.info("enableAudioVolumeEvaluation with interval: "+t),t<=0)return this.enableAudioVolumeEvaluation_=!1,XL.clearTask(this.audioVolumeIntervalId_),void(this.audioVolumeIntervalId_=null);t=Math.floor(Math.max(t,16)),NT.emit(JT,{interval:t}),this.audioVolumeIntervalId_&&(XL.clearTask(this.audioVolumeIntervalId_),this.audioVolumeIntervalId_=null),this.enableAudioVolumeEvaluation_=!0,this.audioVolumeIntervalId_=XL.run(dC,(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(xA.AUDIO_VOLUME,{result:t})}),{fps:1e3/t,backgroundTask:n})}},{key:"callExperimentalAPI",value:function(e,t){return zW.call(e,n({client:this},t))}},{key:"setProperty",value:function(e,t){var n="".concat(e,"_");lT(this[n])||(this[n]=t)}},{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,IO),dataFreeze:e.badCaseDetector_.getDataFreezeDuration(n).dataFreeze,renderFreeze:e.badCaseDetector_.getRenderFreezeDuration(n).renderFreeze};sL.uploadEvent({log:"callStats-"+JSON.stringify(r),userId:e.userId_})})),this.badCaseDetector_.stop(),this.callDurationCalculator_.reset()}},{key:"enableSmallStream",value:(u=i(r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.isPublished()&&!this.isPublishing_){e.next=2;break}throw new _D({code:gD.INVALID_OPERATION,message:eT({key:gw})});case 2:if(!jA()){e.next=7;break}this.setIsEnableSmallStream(!0),this.log_.info("SmallStream successfully enabled"),e.next=8;break;case 7:throw new _D({code:gD.INVALID_OPERATION,message:eT({key:yw})});case 8:case"end":return e.stop()}}),e,this)}))),function(){return u.apply(this,arguments)})},{key:"disableSmallStream",value:(c=i(r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.isPublished()&&!this.isPublishing_){e.next=2;break}throw new _D({code:gD.INVALID_OPERATION,message:eT({key:_w})});case 2:this.setIsEnableSmallStream(!1),this.log_.info("SmallStream successfully disabled");case 4:case"end":return e.stop()}}),e,this)}))),function(){return c.apply(this,arguments)})},{key:"setSmallStreamProfile",value:function(e){var t=this;e&&e.framerate&&(e.frameRate=e.framerate),e.width*e.height>307200&&(e.width=320,e.height=240,this.log_.info("Small stream resolution is beyond limitation, which is invalid. Reset to 320 * 240")),Object.keys(this.smallStreamConfig_).forEach((function(n){e[n]&&(t.smallStreamConfig_[n]=e[n])}));var n=this.smallStreamConfig_,r=n.width,o=n.height,a=n.bitrate,i=n.frameRate;if(this.log_.info("setSmallStreamProfile: bitrate=".concat(a,", frameRate=").concat(i,", height=").concat(o,", width=").concat(r)),r<0||o<0||a<0||i<0)throw new _D({code:gD.INVALID_PARAMETER,message:eT({key:bw})})}},{key:"setRemoteVideoStreamType",value:(a=i(r().mark((function e(t,n){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t instanceof $H){e.next=2;break}throw new _D({code:gD.INVALID_PARAMETER,message:eT({key:Ow})});case 2:if(t.getConnection()){e.next=4;break}throw new _D({code:gD.INVALID_OPERATION,message:eT({key:nw})});case 4:if(t.getType()!==jM){e.next=6;break}return e.abrupt("return");case 6:e.t0=n,e.next=e.t0===Ak||e.t0===Nk?9:12;break;case 9:return e.next=11,this.changeVideoType(t,n);case 11:case 12:return e.abrupt("break",13);case 13:case"end":return e.stop()}}),e,this)}))),function(e,t){return a.apply(this,arguments)})},{key:"changeVideoType",value:(o=i(r().mark((function e(t,n){var o,a;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o=t.getUserId(),a={stream:t,options:{video:n===Ak,smallVideo:n===Nk},isSubscribing:!1,reSubscribeCount:10},this.changeBigSmallRecords_.set(o,a),this.log_.info("set [".concat(o,"] ").concat(t.getType()," stream video prefer type: ").concat(n));case 5:case"end":return e.stop()}}),e,this)}))),function(e,t){return o.apply(this,arguments)})},{key:"checkSubscribeBigSmallVideo",value:(t=i(r().mark((function e(t,n){var o,a,i,s,c,l,u,d,p,f,h;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=t&&t.isBigStreamSubscribed||null!=t&&t.isSmallStreamSubscribed){e.next=2;break}return e.abrupt("return");case 2:if(o=t.getUserId(),this.changeBigSmallRecords_.has(o)){e.next=5;break}return e.abrupt("return");case 5:if(a=this.changeBigSmallRecords_.get(o),i=t.getSubscribeState(),s=i.video,c=i.smallVideo,l=a.stream,u=a.options,d=a.isSubscribing,p=a.reSubscribeCount,!(u.video&&s||u.smallVideo&&c&&n)){e.next=10;break}return e.abrupt("return");case 10:if(f={video:u.video,smallVideo:u.smallVideo},!(n&&t.isBigStreamSubscribed||t.isSmallStreamSubscribed)){e.next=31;break}if(e.prev=12,!(u&&l&&!d&&p>=1)){e.next=24;break}return a.isSubscribing=!0,a.reSubscribeCount=p-1,h=l.getConnection(),!n&&h.isSmallStreamSubscribed&&(f={video:!0,smallVideo:!1}),f.emitEvent=!1,e.next=21,null==h?void 0:h.subscribe(l,f);case 21:this.log_.info("change [".concat(o,"] to ").concat(f.smallVideo?"small":"big"," video successfully. count ").concat(10-a.reSubscribeCount,".")),a.isSubscribing=!1,a.reSubscribeCount=10;case 24:e.next=31;break;case 26:e.prev=26,e.t0=e.catch(12),this.log_.info("change [".concat(o,"] to ").concat(f.smallVideo?"small":"big"," video failed. count ").concat(10-a.reSubscribeCount,".")),a.isSubscribing=!1,0===p&&this.changeBigSmallRecords_.delete(o);case 31:case"end":return e.stop()}}),e,this,[[12,26]])}))),function(e,n){return t.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=M(this.connections_.values());return this.uplinkConnection_&&e.push(this.uplinkConnection_),e}},{key:"isRelayMaybeFailed",value:function(){if(!this.signalChannel_.isOnline)return!1;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===VM&&(e.log_.warn("[".concat(t.getUserId(),"] pc is closed but not reconnect")),t.startReconnection())}}))}},{key:"getEnableAutoPlayDialog",value:function(){return this.enableAutoPlayDialog_}},{key:"sendSEIMessage",value:function(e,t){this.uplinkConnection_.sendSEI(e,t)}},{key:"setProxyServer",value:function(e){if(this.log_.info("set proxy server: ".concat(JSON.stringify(e))),uT(e)){if(!e.startsWith("wss://"))throw new _D({code:gD.INVALID_PARAMETER,message:eT({key:zC})});this.proxy_=e}else if(aT(e)){var t=e.websocketProxy,n=e.loggerProxy,r=e.scheduleProxy,o=e.unifiedProxy;t&&(this.proxy_=t),n&&_M(n),r&&Fk(r),o&&(this.unifiedProxy_=o,_M("https://".concat(o)),Fk(o))}}},{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(gT(e))})):aT(e)&&t.push(gT(e)),this.turnServers_=t}},{key:"get2k4kFlag",value:function(){var e,t;return(null===(e=this.schedule_)||void 0===e||null===(t=e.trtcCapability)||void 0===t?void 0:t["2k4k"])||2}}]),e}(),I(jW.prototype,"join",[Zq,eW,tW],Object.getOwnPropertyDescriptor(jW.prototype,"join"),jW.prototype),I(jW.prototype,"leave",[nW],Object.getOwnPropertyDescriptor(jW.prototype,"leave"),jW.prototype),I(jW.prototype,"getUserList",[rW],Object.getOwnPropertyDescriptor(jW.prototype,"getUserList"),jW.prototype),I(jW.prototype,"publish",[oW,aW,iW],Object.getOwnPropertyDescriptor(jW.prototype,"publish"),jW.prototype),I(jW.prototype,"unpublish",[sW,cW],Object.getOwnPropertyDescriptor(jW.prototype,"unpublish"),jW.prototype),I(jW.prototype,"subscribe",[lW],Object.getOwnPropertyDescriptor(jW.prototype,"subscribe"),jW.prototype),I(jW.prototype,"unsubscribe",[uW],Object.getOwnPropertyDescriptor(jW.prototype,"unsubscribe"),jW.prototype),I(jW.prototype,"switchRole",[dW,pW,fW],Object.getOwnPropertyDescriptor(jW.prototype,"switchRole"),jW.prototype),I(jW.prototype,"startPublishCDNStream",[hW,mW],Object.getOwnPropertyDescriptor(jW.prototype,"startPublishCDNStream"),jW.prototype),I(jW.prototype,"stopPublishCDNStream",[vW],Object.getOwnPropertyDescriptor(jW.prototype,"stopPublishCDNStream"),jW.prototype),I(jW.prototype,"startMixTranscode",[gW,_W],Object.getOwnPropertyDescriptor(jW.prototype,"startMixTranscode"),jW.prototype),I(jW.prototype,"stopMixTranscode",[yW],Object.getOwnPropertyDescriptor(jW.prototype,"stopMixTranscode"),jW.prototype),I(jW.prototype,"enableAudioVolumeEvaluation",[bW],Object.getOwnPropertyDescriptor(jW.prototype,"enableAudioVolumeEvaluation"),jW.prototype),I(jW.prototype,"enableSmallStream",[OW],Object.getOwnPropertyDescriptor(jW.prototype,"enableSmallStream"),jW.prototype),I(jW.prototype,"disableSmallStream",[MW],Object.getOwnPropertyDescriptor(jW.prototype,"disableSmallStream"),jW.prototype),I(jW.prototype,"setSmallStreamProfile",[kW],Object.getOwnPropertyDescriptor(jW.prototype,"setSmallStreamProfile"),jW.prototype),I(jW.prototype,"setRemoteVideoStreamType",[CW],Object.getOwnPropertyDescriptor(jW.prototype,"setRemoteVideoStreamType"),jW.prototype),I(jW.prototype,"sendSEIMessage",[wW,IW,SW],Object.getOwnPropertyDescriptor(jW.prototype,"sendSEIMessage"),jW.prototype),I(jW.prototype,"setProxyServer",[TW],Object.getOwnPropertyDescriptor(jW.prototype,"setProxyServer"),jW.prototype),I(jW.prototype,"setTurnServer",[EW],Object.getOwnPropertyDescriptor(jW.prototype,"setTurnServer"),jW.prototype),jW),YW=0,qW=0,WW=(xW=WH(Gk),RW=WH(Gk),PW=WH(Gk),UW=SH(IH.TRTC.createClient),VW=WH(Gk),BW=SH(IH.TRTC.createStream),FW=function(){function e(){s(this,e),this.name_=Gk,this.VERSION=No,this.Logger={loggerManager:xE,LogLevel:nC,setLogLevel:function(e){xE.setLogLevel(e),e<=1&&ZS()},enableUploadLog:function(){qH.handleFunctionState({fnName:"TRTC.enableUploadLog"}),xE.enableUploadLog()},disableUploadLog:function(){xE.warn("disableUploadLog"),qH.handleFunctionState({fnName:"TRTC.disableUploadLog"}),xE.disableUploadLog()}}}var t;return l(e,[{key:"checkSystemRequirements",value:(t=i(r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,dA();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(){return t.apply(this,arguments)})},{key:"isScreenShareSupported",value:function(){return hA()}},{key:"isSmallStreamSupported",value:function(){return jA()}},{key:"getDevices",value:function(){return JA()}},{key:"getCameras",value:function(){return function(){return qA.apply(this,arguments)}()}},{key:"getMicrophones",value:function(){return XA()}},{key:"getSpeakers",value:function(){return eN()}},{key:"createClient",value:function(e){!function(){if(RE&&(RE=!1,xE.getLogLevel()!=KW.Logger.LogLevel.NONE&&(console.info("******************************************************************************"),console.info("* TRTC Web SDK"),console.info("* API Document: "+"".concat(Xk,"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("******************************************************************************")),xE.info("TRTC Web SDK Version: 4.15.14"),xE.info("UserAgent: "+navigator.userAgent),xE.info("URL of current page: "+location.href),navigator.userAgentData&&cT(navigator.userAgentData.getHighEntropyValues)))try{navigator.userAgentData.getHighEntropyValues(["architecture","bitness","model","platformVersion","fullVersionList"]).then((function(e){var t="UAData: ".concat(e.platform,"/").concat(e.platformVersion);e.architecture&&e.bitness&&(t+=" ".concat(e.architecture,"/").concat(e.bitness)),e.mobile&&(t+=" mobile"),e.model&&(t+=" model: ".concat(e.model)),e.fullVersionList&&(t+=" ".concat(e.fullVersionList.filter((function(e){return"Not/A)Brand"!==e.brand})).map((function(e){return"".concat(e.brand,"/").concat(e.version)})).join(","))),xE.info(t)})).catch((function(){}))}catch(qq){}}();var t={version:this.VERSION},r=new HW(n(n(n({},t),e),{},{seq:++YW}));return NT.emit(KT,{client:r}),r}},{key:"createStream",value:function(e){return new TY(n(n({},e),{},{seq:++qW}))}}]),e}(),I(FW.prototype,"checkSystemRequirements",[xW],Object.getOwnPropertyDescriptor(FW.prototype,"checkSystemRequirements"),FW.prototype),I(FW.prototype,"isScreenShareSupported",[RW],Object.getOwnPropertyDescriptor(FW.prototype,"isScreenShareSupported"),FW.prototype),I(FW.prototype,"isSmallStreamSupported",[PW],Object.getOwnPropertyDescriptor(FW.prototype,"isSmallStreamSupported"),FW.prototype),I(FW.prototype,"createClient",[UW,VW],Object.getOwnPropertyDescriptor(FW.prototype,"createClient"),FW.prototype),I(FW.prototype,"createStream",[BW],Object.getOwnPropertyDescriptor(FW.prototype,"createStream"),FW.prototype),FW),KW=new WW;return KW}))}).call(this,n("c8ba"))},5926:function(e,t,n){"use strict";var r=n("b42e");e.exports=function(e){var t=+e;return t!==t||0===t?0:r(t)}},"594a":function(e,t,n){"use strict";var r=n("a5eb"),o=n("dee0").findIndex,a=n("c44e"),i="findIndex",s=!0;i in[]&&Array(1)[i]((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{findIndex:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),a(i)},"595e":function(e,t,n){(function(t){!function(t,r){e.exports=r(n("5781"))}(0,(function(e){function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=n(e);function o(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 a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(){i=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",s=r.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(T){c=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var o=t&&t.prototype instanceof p?t:p,a=Object.create(o.prototype),i=new C(r||[]);return a._invoke=function(e,t,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return I()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var s=O(i,n);if(s){if(s===d)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 c=u(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,i),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(T){return{type:"throw",arg:T}}}e.wrap=l;var d={};function p(){}function f(){}function h(){}var m={};c(m,o,(function(){return this}));var v=Object.getPrototypeOf,g=v&&v(v(w([])));g&&g!==t&&n.call(g,o)&&(m=g);var _=h.prototype=p.prototype=Object.create(m);function y(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function r(o,a,i,s){var c=u(e[o],e,a);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(d).then((function(e){l.value=e,i(l)}),(function(e){return r("throw",e,i,s)}))}s(c.arg)}var o;this._invoke=function(e,n){function a(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(a,a):a()}}function O(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,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var r=u(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,d;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,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function M(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 C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(M,this),this.reset(!0)}function w(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,a=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 a.next=a}}return{next:I}}function I(){return{value:void 0,done:!0}}return f.prototype=h,c(_,"constructor",h),c(h,"constructor",f),f.displayName=c(h,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,c(e,s,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},y(b.prototype),c(b.prototype,a,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new b(l(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},y(_),c(_,s,"Generator"),c(_,o,(function(){return this})),c(_,"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=w,C.prototype={constructor:C,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 i.type="throw",i.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 a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.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 a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,d):this.complete(i)},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),d},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),d}},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:w(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function s(e,t,n,r,o,a,i){try{var s=e[a](i),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(r,o)}function c(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){s(a,r,o,i,c,"next",e)}function c(e){s(a,r,o,i,c,"throw",e)}i(void 0)}))}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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 d(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof t?t:"undefined"!=typeof self?self:{},h=function(e){try{return!!e()}catch(n){return!0}},m=!h((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),v=m,g=Function.prototype,_=g.call,y=v&&g.bind.bind(_,_),b=function(e){return v?y(e):function(){return _.apply(e,arguments)}},O=b,M=O({}.toString),k=O("".slice),C=function(e){return k(M(e),8,-1)},w=C,I=b,S=function(e){if("Function"===w(e))return I(e)},T=h,E=C,j=Object,D=S("".split),L=T((function(){return!j("z").propertyIsEnumerable(0)}))?function(e){return"String"==E(e)?D(e,""):j(e)}:j,A=function(e){return null==e},N=A,x=TypeError,R=function(e){if(N(e))throw x("Can't call method on "+e);return e},P=L,U=R,V=function(e){return P(U(e))},B=function(e){return e&&e.Math==Math&&e},F=B("object"==typeof globalThis&&globalThis)||B("object"==typeof window&&window)||B("object"==typeof self&&self)||B("object"==typeof f&&f)||function(){return this}()||Function("return this")(),G={exports:{}},z=F,H=Object.defineProperty,Y=function(e,t){try{H(z,e,{value:t,configurable:!0,writable:!0})}catch(r){z[e]=t}return t},q=Y,W="__core-js_shared__",K=F[W]||q(W,{}),$=K;(G.exports=function(e,t){return $[e]||($[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.25.5",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.25.5/LICENSE",source:"https://github.com/zloirock/core-js"});var J,Q,X=R,Z=Object,ee=function(e){return Z(X(e))},te=ee,ne=S({}.hasOwnProperty),re=Object.hasOwn||function(e,t){return ne(te(e),t)},oe=S,ae=0,ie=Math.random(),se=oe(1..toString),ce=function(e){return"Symbol("+(void 0===e?"":e)+")_"+se(++ae+ie,36)},le="object"==typeof document&&document.all,ue={all:le,IS_HTMLDDA:void 0===le&&void 0!==le},de=ue.all,pe=ue.IS_HTMLDDA?function(e){return"function"==typeof e||e===de}:function(e){return"function"==typeof e},fe=F,he=pe,me=function(e){return he(e)?e:void 0},ve=function(e,t){return arguments.length<2?me(fe[e]):fe[e]&&fe[e][t]},ge=ve("navigator","userAgent")||"",_e=F,ye=ge,be=_e.process,Oe=_e.Deno,Me=be&&be.versions||Oe&&Oe.version,ke=Me&&Me.v8;ke&&(Q=(J=ke.split("."))[0]>0&&J[0]<4?1:+(J[0]+J[1])),!Q&&ye&&(!(J=ye.match(/Edge\/(\d+)/))||J[1]>=74)&&(J=ye.match(/Chrome\/(\d+)/))&&(Q=+J[1]);var Ce=Q,we=Ce,Ie=h,Se=!!Object.getOwnPropertySymbols&&!Ie((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&we&&we<41})),Te=Se&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ee=F,je=G.exports,De=re,Le=ce,Ae=Se,Ne=Te,xe=je("wks"),Re=Ee.Symbol,Pe=Re&&Re.for,Ue=Ne?Re:Re&&Re.withoutSetter||Le,Ve=function(e){if(!De(xe,e)||!Ae&&"string"!=typeof xe[e]){var t="Symbol."+e;Ae&&De(Re,e)?xe[e]=Re[e]:xe[e]=Ne&&Pe?Pe(t):Ue(t)}return xe[e]},Be=pe,Fe=ue.all,Ge=ue.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:Be(e)||e===Fe}:function(e){return"object"==typeof e?null!==e:Be(e)},ze=Ge,He=String,Ye=TypeError,qe=function(e){if(ze(e))return e;throw Ye(He(e)+" is not an object")},We={},Ke=!h((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),$e=Ke&&h((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Je={},Qe=Ge,Xe=F.document,Ze=Qe(Xe)&&Qe(Xe.createElement),et=function(e){return Ze?Xe.createElement(e):{}},tt=et,nt=!Ke&&!h((function(){return 7!=Object.defineProperty(tt("div"),"a",{get:function(){return 7}}).a})),rt=m,ot=Function.prototype.call,at=rt?ot.bind(ot):function(){return ot.apply(ot,arguments)},it=S({}.isPrototypeOf),st=ve,ct=pe,lt=it,ut=Object,dt=Te?function(e){return"symbol"==typeof e}:function(e){var t=st("Symbol");return ct(t)&<(t.prototype,ut(e))},pt=String,ft=function(e){try{return pt(e)}catch(n){return"Object"}},ht=pe,mt=ft,vt=TypeError,gt=function(e){if(ht(e))return e;throw vt(mt(e)+" is not a function")},_t=gt,yt=A,bt=function(e,t){var n=e[t];return yt(n)?void 0:_t(n)},Ot=at,Mt=pe,kt=Ge,Ct=TypeError,wt=at,It=Ge,St=dt,Tt=bt,Et=function(e,t){var n,r;if("string"===t&&Mt(n=e.toString)&&!kt(r=Ot(n,e)))return r;if(Mt(n=e.valueOf)&&!kt(r=Ot(n,e)))return r;if("string"!==t&&Mt(n=e.toString)&&!kt(r=Ot(n,e)))return r;throw Ct("Can't convert object to primitive value")},jt=TypeError,Dt=Ve("toPrimitive"),Lt=function(e,t){if(!It(e)||St(e))return e;var n,r=Tt(e,Dt);if(r){if(void 0===t&&(t="default"),n=wt(r,e,t),!It(n)||St(n))return n;throw jt("Can't convert object to primitive value")}return void 0===t&&(t="number"),Et(e,t)},At=Lt,Nt=dt,xt=function(e){var t=At(e,"string");return Nt(t)?t:t+""},Rt=Ke,Pt=nt,Ut=$e,Vt=qe,Bt=xt,Ft=TypeError,Gt=Object.defineProperty,zt=Object.getOwnPropertyDescriptor,Ht="enumerable",Yt="configurable",qt="writable";Je.f=Rt?Ut?function(e,t,n){if(Vt(e),t=Bt(t),Vt(n),"function"==typeof e&&"prototype"===t&&"value"in n&&qt in n&&!n.writable){var r=zt(e,t);r&&r.writable&&(e[t]=n.value,n={configurable:Yt in n?n.configurable:r.configurable,enumerable:Ht in n?n.enumerable:r.enumerable,writable:!1})}return Gt(e,t,n)}:Gt:function(e,t,n){if(Vt(e),t=Bt(t),Vt(n),Pt)try{return Gt(e,t,n)}catch(o){}if("get"in n||"set"in n)throw Ft("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var Wt=Math.ceil,Kt=Math.floor,$t=Math.trunc||function(e){var t=+e;return(t>0?Kt:Wt)(t)},Jt=function(e){var t=+e;return t!=t||0===t?0:$t(t)},Qt=Jt,Xt=Math.max,Zt=Math.min,en=function(e,t){var n=Qt(e);return n<0?Xt(n+t,0):Zt(n,t)},tn=Jt,nn=Math.min,rn=function(e){return e>0?nn(tn(e),9007199254740991):0},on=rn,an=function(e){return on(e.length)},sn=V,cn=en,ln=an,un=function(e){return function(t,n,r){var o,a=sn(t),i=ln(a),s=cn(r,i);if(e&&n!=n){for(;i>s;)if((o=a[s++])!=o)return!0}else for(;i>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},dn={includes:un(!0),indexOf:un(!1)},pn={},fn=re,hn=V,mn=dn.indexOf,vn=pn,gn=S([].push),_n=function(e,t){var n,r=hn(e),o=0,a=[];for(n in r)!fn(vn,n)&&fn(r,n)&&gn(a,n);for(;t.length>o;)fn(r,n=t[o++])&&(~mn(a,n)||gn(a,n));return a},yn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],bn=_n,On=yn,Mn=Object.keys||function(e){return bn(e,On)},kn=Ke,Cn=$e,wn=Je,In=qe,Sn=V,Tn=Mn;We.f=kn&&!Cn?Object.defineProperties:function(e,t){In(e);for(var n,r=Sn(t),o=Tn(t),a=o.length,i=0;a>i;)wn.f(e,n=o[i++],r[n]);return e};var En,jn=ve("document","documentElement"),Dn=G.exports,Ln=ce,An=Dn("keys"),Nn=function(e){return An[e]||(An[e]=Ln(e))},xn=qe,Rn=We,Pn=yn,Un=pn,Vn=jn,Bn=et,Fn=Nn("IE_PROTO"),Gn=function(){},zn=function(e){return"<script>"+e+"<\/script>"},Hn=function(e){e.write(zn("")),e.close();var t=e.parentWindow.Object;return e=null,t},Yn=function(){try{En=new ActiveXObject("htmlfile")}catch(o){}var e,t;Yn="undefined"!=typeof document?document.domain&&En?Hn(En):((t=Bn("iframe")).style.display="none",Vn.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(zn("document.F=Object")),e.close(),e.F):Hn(En);for(var n=Pn.length;n--;)delete Yn.prototype[Pn[n]];return Yn()};Un[Fn]=!0;var qn=Object.create||function(e,t){var n;return null!==e?(Gn.prototype=xn(e),n=new Gn,Gn.prototype=null,n[Fn]=e):n=Yn(),void 0===t?n:Rn.f(n,t)},Wn=Ve,Kn=qn,$n=Je.f,Jn=Wn("unscopables"),Qn=Array.prototype;null==Qn[Jn]&&$n(Qn,Jn,{configurable:!0,value:Kn(null)});var Xn,Zn,er,tr={},nr=pe,rr=F.WeakMap,or=nr(rr)&&/native code/.test(String(rr)),ar=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},ir=Je,sr=ar,cr=Ke?function(e,t,n){return ir.f(e,t,sr(1,n))}:function(e,t,n){return e[t]=n,e},lr=or,ur=F,dr=Ge,pr=cr,fr=re,hr=K,mr=Nn,vr=pn,gr="Object already initialized",_r=ur.TypeError,yr=ur.WeakMap;if(lr||hr.state){var br=hr.state||(hr.state=new yr);br.get=br.get,br.has=br.has,br.set=br.set,Xn=function(e,t){if(br.has(e))throw _r(gr);return t.facade=e,br.set(e,t),t},Zn=function(e){return br.get(e)||{}},er=function(e){return br.has(e)}}else{var Or=mr("state");vr[Or]=!0,Xn=function(e,t){if(fr(e,Or))throw _r(gr);return t.facade=e,pr(e,Or,t),t},Zn=function(e){return fr(e,Or)?e[Or]:{}},er=function(e){return fr(e,Or)}}var Mr={set:Xn,get:Zn,has:er,enforce:function(e){return er(e)?Zn(e):Xn(e,{})},getterFor:function(e){return function(t){var n;if(!dr(t)||(n=Zn(t)).type!==e)throw _r("Incompatible receiver, "+e+" required");return n}}},kr={},Cr={},wr={}.propertyIsEnumerable,Ir=Object.getOwnPropertyDescriptor,Sr=Ir&&!wr.call({1:2},1);Cr.f=Sr?function(e){var t=Ir(this,e);return!!t&&t.enumerable}:wr;var Tr=Ke,Er=at,jr=Cr,Dr=ar,Lr=V,Ar=xt,Nr=re,xr=nt,Rr=Object.getOwnPropertyDescriptor;kr.f=Tr?Rr:function(e,t){if(e=Lr(e),t=Ar(t),xr)try{return Rr(e,t)}catch(r){}if(Nr(e,t))return Dr(!Er(jr.f,e,t),e[t])};var Pr={exports:{}},Ur=Ke,Vr=re,Br=Function.prototype,Fr=Ur&&Object.getOwnPropertyDescriptor,Gr=Vr(Br,"name"),zr={EXISTS:Gr,PROPER:Gr&&"something"===function(){}.name,CONFIGURABLE:Gr&&(!Ur||Ur&&Fr(Br,"name").configurable)},Hr=pe,Yr=K,qr=S(Function.toString);Hr(Yr.inspectSource)||(Yr.inspectSource=function(e){return qr(e)});var Wr=Yr.inspectSource,Kr=h,$r=pe,Jr=re,Qr=Ke,Xr=zr.CONFIGURABLE,Zr=Wr,eo=Mr.enforce,to=Mr.get,no=Object.defineProperty,ro=Qr&&!Kr((function(){return 8!==no((function(){}),"length",{value:8}).length})),oo=String(String).split("String"),ao=Pr.exports=function(e,t,n){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!Jr(e,"name")||Xr&&e.name!==t)&&(Qr?no(e,"name",{value:t,configurable:!0}):e.name=t),ro&&n&&Jr(n,"arity")&&e.length!==n.arity&&no(e,"length",{value:n.arity});try{n&&Jr(n,"constructor")&&n.constructor?Qr&&no(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(a){}var r=eo(e);return Jr(r,"source")||(r.source=oo.join("string"==typeof t?t:"")),e};Function.prototype.toString=ao((function(){return $r(this)&&to(this).source||Zr(this)}),"toString");var io=pe,so=Je,co=Pr.exports,lo=Y,uo=function(e,t,n,r){r||(r={});var o=r.enumerable,a=void 0!==r.name?r.name:t;if(io(n)&&co(n,a,r),r.global)o?e[t]=n:lo(t,n);else{try{r.unsafe?e[t]&&(o=!0):delete e[t]}catch(s){}o?e[t]=n:so.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},po={},fo=_n,ho=yn.concat("length","prototype");po.f=Object.getOwnPropertyNames||function(e){return fo(e,ho)};var mo={};mo.f=Object.getOwnPropertySymbols;var vo,go,_o,yo=ve,bo=po,Oo=mo,Mo=qe,ko=S([].concat),Co=yo("Reflect","ownKeys")||function(e){var t=bo.f(Mo(e)),n=Oo.f;return n?ko(t,n(e)):t},wo=re,Io=Co,So=kr,To=Je,Eo=h,jo=pe,Do=/#|\.prototype\./,Lo=function(e,t){var n=No[Ao(e)];return n==Ro||n!=xo&&(jo(t)?Eo(t):!!t)},Ao=Lo.normalize=function(e){return String(e).replace(Do,".").toLowerCase()},No=Lo.data={},xo=Lo.NATIVE="N",Ro=Lo.POLYFILL="P",Po=Lo,Uo=F,Vo=kr.f,Bo=cr,Fo=uo,Go=Y,zo=function(e,t,n){for(var r=Io(t),o=To.f,a=So.f,i=0;i<r.length;i++){var s=r[i];wo(e,s)||n&&wo(n,s)||o(e,s,a(t,s))}},Ho=Po,Yo=function(e,t){var n,r,o,a,i,s=e.target,c=e.global,l=e.stat;if(n=c?Uo:l?Uo[s]||Go(s,{}):(Uo[s]||{}).prototype)for(r in t){if(a=t[r],o=e.dontCallGetSet?(i=Vo(n,r))&&i.value:n[r],!Ho(c?r:s+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof a==typeof o)continue;zo(a,o)}(e.sham||o&&o.sham)&&Bo(a,"sham",!0),Fo(n,r,a,e)}},qo=!h((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Wo=re,Ko=pe,$o=ee,Jo=qo,Qo=Nn("IE_PROTO"),Xo=Object,Zo=Xo.prototype,ea=Jo?Xo.getPrototypeOf:function(e){var t=$o(e);if(Wo(t,Qo))return t[Qo];var n=t.constructor;return Ko(n)&&t instanceof n?n.prototype:t instanceof Xo?Zo:null},ta=h,na=pe,ra=Ge,oa=ea,aa=uo,ia=Ve("iterator"),sa=!1;[].keys&&("next"in(_o=[].keys())?(go=oa(oa(_o)))!==Object.prototype&&(vo=go):sa=!0);var ca=!ra(vo)||ta((function(){var e={};return vo[ia].call(e)!==e}));ca&&(vo={}),na(vo[ia])||aa(vo,ia,(function(){return this}));var la={IteratorPrototype:vo,BUGGY_SAFARI_ITERATORS:sa},ua=Je.f,da=re,pa=Ve("toStringTag"),fa=function(e,t,n){e&&!n&&(e=e.prototype),e&&!da(e,pa)&&ua(e,pa,{configurable:!0,value:t})},ha=la.IteratorPrototype,ma=qn,va=ar,ga=fa,_a=tr,ya=function(){return this},ba=pe,Oa=String,Ma=TypeError,ka=S,Ca=qe,wa=function(e){if("object"==typeof e||ba(e))return e;throw Ma("Can't set "+Oa(e)+" as a prototype")},Ia=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=ka(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(o){}return function(n,r){return Ca(n),wa(r),t?e(n,r):n.__proto__=r,n}}():void 0),Sa=Yo,Ta=at,Ea=pe,ja=function(e,t,n,r){var o=t+" Iterator";return e.prototype=ma(ha,{next:va(+!r,n)}),ga(e,o,!1),_a[o]=ya,e},Da=ea,La=Ia,Aa=fa,Na=cr,xa=uo,Ra=tr,Pa=zr.PROPER,Ua=zr.CONFIGURABLE,Va=la.IteratorPrototype,Ba=la.BUGGY_SAFARI_ITERATORS,Fa=Ve("iterator"),Ga="keys",za="values",Ha="entries",Ya=function(){return this},qa=function(e,t,n,r,o,a,i){ja(n,t,r);var s,c,l,u=function(e){if(e===o&&m)return m;if(!Ba&&e in f)return f[e];switch(e){case Ga:case za:case Ha:return function(){return new n(this,e)}}return function(){return new n(this)}},d=t+" Iterator",p=!1,f=e.prototype,h=f[Fa]||f["@@iterator"]||o&&f[o],m=!Ba&&h||u(o),v="Array"==t&&f.entries||h;if(v&&(s=Da(v.call(new e)))!==Object.prototype&&s.next&&(Da(s)!==Va&&(La?La(s,Va):Ea(s[Fa])||xa(s,Fa,Ya)),Aa(s,d,!0)),Pa&&o==za&&h&&h.name!==za&&(Ua?Na(f,"name",za):(p=!0,m=function(){return Ta(h,this)})),o)if(c={values:u(za),keys:a?m:u(Ga),entries:u(Ha)},i)for(l in c)(Ba||p||!(l in f))&&xa(f,l,c[l]);else Sa({target:t,proto:!0,forced:Ba||p},c);return f[Fa]!==m&&xa(f,Fa,m,{name:o}),Ra[t]=m,c},Wa=function(e,t){return{value:e,done:t}},Ka=V,$a=function(e){Qn[Jn][e]=!0},Ja=tr,Qa=Mr,Xa=Je.f,Za=qa,ei=Wa,ti=Ke,ni="Array Iterator",ri=Qa.set,oi=Qa.getterFor(ni),ai=Za(Array,"Array",(function(e,t){ri(this,{type:ni,target:Ka(e),index:0,kind:t})}),(function(){var e=oi(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,ei(void 0,!0)):ei("keys"==n?r:"values"==n?t[r]:[r,t[r]],!1)}),"values"),ii=Ja.Arguments=Ja.Array;if($a("keys"),$a("values"),$a("entries"),ti&&"values"!==ii.name)try{Xa(ii,"name",{value:"values"})}catch(GO){}var si={exports:{}},ci={},li=xt,ui=Je,di=ar,pi=function(e,t,n){var r=li(t);r in e?ui.f(e,r,di(0,n)):e[r]=n},fi=en,hi=an,mi=pi,vi=Array,gi=Math.max,_i=function(e,t,n){for(var r=hi(e),o=fi(t,r),a=fi(void 0===n?r:n,r),i=vi(gi(a-o,0)),s=0;o<a;o++,s++)mi(i,s,e[o]);return i.length=s,i},yi=C,bi=V,Oi=po.f,Mi=_i,ki="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];ci.f=function(e){return ki&&"Window"==yi(e)?function(e){try{return Oi(e)}catch(GO){return Mi(ki)}}(e):Oi(bi(e))};var Ci=h((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),wi=h,Ii=Ge,Si=C,Ti=Ci,Ei=Object.isExtensible,ji=wi((function(){Ei(1)}))||Ti?function(e){return!!Ii(e)&&(!Ti||"ArrayBuffer"!=Si(e))&&(!Ei||Ei(e))}:Ei,Di=!h((function(){return Object.isExtensible(Object.preventExtensions({}))})),Li=Yo,Ai=S,Ni=pn,xi=Ge,Ri=re,Pi=Je.f,Ui=po,Vi=ci,Bi=ji,Fi=Di,Gi=!1,zi=ce("meta"),Hi=0,Yi=function(e){Pi(e,zi,{value:{objectID:"O"+Hi++,weakData:{}}})},qi=si.exports={enable:function(){qi.enable=function(){},Gi=!0;var e=Ui.f,t=Ai([].splice),n={};n[zi]=1,e(n).length&&(Ui.f=function(n){for(var r=e(n),o=0,a=r.length;o<a;o++)if(r[o]===zi){t(r,o,1);break}return r},Li({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Vi.f}))},fastKey:function(e,t){if(!xi(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!Ri(e,zi)){if(!Bi(e))return"F";if(!t)return"E";Yi(e)}return e[zi].objectID},getWeakData:function(e,t){if(!Ri(e,zi)){if(!Bi(e))return!0;if(!t)return!1;Yi(e)}return e[zi].weakData},onFreeze:function(e){return Fi&&Gi&&Bi(e)&&!Ri(e,zi)&&Yi(e),e}};Ni[zi]=!0;var Wi=gt,Ki=m,$i=S(S.bind),Ji=function(e,t){return Wi(e),void 0===t?e:Ki?$i(e,t):function(){return e.apply(t,arguments)}},Qi=tr,Xi=Ve("iterator"),Zi=Array.prototype,es=function(e){return void 0!==e&&(Qi.Array===e||Zi[Xi]===e)},ts={};ts[Ve("toStringTag")]="z";var ns="[object z]"===String(ts),rs=ns,os=pe,as=C,is=Ve("toStringTag"),ss=Object,cs="Arguments"==as(function(){return arguments}()),ls=rs?as: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(GO){}}(t=ss(e),is))?n:cs?as(t):"Object"==(r=as(t))&&os(t.callee)?"Arguments":r},us=ls,ds=bt,ps=A,fs=tr,hs=Ve("iterator"),ms=function(e){if(!ps(e))return ds(e,hs)||ds(e,"@@iterator")||fs[us(e)]},vs=at,gs=gt,_s=qe,ys=ft,bs=ms,Os=TypeError,Ms=function(e,t){var n=arguments.length<2?bs(e):t;if(gs(n))return _s(vs(n,e));throw Os(ys(e)+" is not iterable")},ks=at,Cs=qe,ws=bt,Is=Ji,Ss=at,Ts=qe,Es=ft,js=es,Ds=an,Ls=it,As=Ms,Ns=ms,xs=function(e,t,n){var r,o;Cs(e);try{if(!(r=ws(e,"return"))){if("throw"===t)throw n;return n}r=ks(r,e)}catch(GO){o=!0,r=GO}if("throw"===t)throw n;if(o)throw r;return Cs(r),n},Rs=TypeError,Ps=function(e,t){this.stopped=e,this.result=t},Us=Ps.prototype,Vs=function(e,t,n){var r,o,a,i,s,c,l,u=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_RECORD),f=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),m=Is(t,u),v=function(e){return r&&xs(r,"normal",e),new Ps(!0,e)},g=function(e){return d?(Ts(e),h?m(e[0],e[1],v):m(e[0],e[1])):h?m(e,v):m(e)};if(p)r=e.iterator;else if(f)r=e;else{if(!(o=Ns(e)))throw Rs(Es(e)+" is not iterable");if(js(o)){for(a=0,i=Ds(e);i>a;a++)if((s=g(e[a]))&&Ls(Us,s))return s;return new Ps(!1)}r=As(e,o)}for(c=p?e.next:r.next;!(l=Ss(c,r)).done;){try{s=g(l.value)}catch(GO){xs(r,"throw",GO)}if("object"==typeof s&&s&&Ls(Us,s))return s}return new Ps(!1)},Bs=it,Fs=TypeError,Gs=function(e,t){if(Bs(t,e))return e;throw Fs("Incorrect invocation")},zs=Ve("iterator"),Hs=!1;try{var Ys=0,qs={next:function(){return{done:!!Ys++}},return:function(){Hs=!0}};qs[zs]=function(){return this},Array.from(qs,(function(){throw 2}))}catch(GO){}var Ws=function(e,t){if(!t&&!Hs)return!1;var n=!1;try{var r={};r[zs]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(GO){}return n},Ks=pe,$s=Ge,Js=Ia,Qs=function(e,t,n){var r,o;return Js&&Ks(r=t.constructor)&&r!==n&&$s(o=r.prototype)&&o!==n.prototype&&Js(e,o),e},Xs=Yo,Zs=F,ec=S,tc=Po,nc=uo,rc=si.exports,oc=Vs,ac=Gs,ic=pe,sc=A,cc=Ge,lc=h,uc=Ws,dc=fa,pc=Qs,fc=uo,hc=function(e,t,n){for(var r in t)fc(e,r,t[r],n);return e},mc=ve,vc=Je,gc=Ke,_c=Ve("species"),yc=function(e){var t=mc(e),n=vc.f;gc&&t&&!t[_c]&&n(t,_c,{configurable:!0,get:function(){return this}})},bc=Je.f,Oc=qn,Mc=hc,kc=Ji,Cc=Gs,wc=A,Ic=Vs,Sc=qa,Tc=Wa,Ec=yc,jc=Ke,Dc=si.exports.fastKey,Lc=Mr.set,Ac=Mr.getterFor,Nc={getConstructor:function(e,t,n,r){var o=e((function(e,o){Cc(e,a),Lc(e,{type:t,index:Oc(null),first:void 0,last:void 0,size:0}),jc||(e.size=0),wc(o)||Ic(o,e[r],{that:e,AS_ENTRIES:n})})),a=o.prototype,i=Ac(t),s=function(e,t,n){var r,o,a=i(e),s=c(e,t);return s?s.value=n:(a.last=s={index:o=Dc(t,!0),key:t,value:n,previous:r=a.last,next:void 0,removed:!1},a.first||(a.first=s),r&&(r.next=s),jc?a.size++:e.size++,"F"!==o&&(a.index[o]=s)),e},c=function(e,t){var n,r=i(e),o=Dc(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return Mc(a,{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,jc?e.size=0:this.size=0},delete:function(e){var t=this,n=i(t),r=c(t,e);if(r){var o=r.next,a=r.previous;delete n.index[r.index],r.removed=!0,a&&(a.next=o),o&&(o.previous=a),n.first==r&&(n.first=o),n.last==r&&(n.last=a),jc?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=i(this),r=kc(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!c(this,e)}}),Mc(a,n?{get:function(e){var t=c(this,e);return t&&t.value},set:function(e,t){return s(this,0===e?0:e,t)}}:{add:function(e){return s(this,e=0===e?0:e,e)}}),jc&&bc(a,"size",{get:function(){return i(this).size}}),o},setStrong:function(e,t,n){var r=t+" Iterator",o=Ac(t),a=Ac(r);Sc(e,t,(function(e,t){Lc(this,{type:r,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=a(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)?Tc("keys"==t?n.key:"values"==t?n.value:[n.key,n.value],!1):(e.target=void 0,Tc(void 0,!0))}),n?"entries":"values",!n,!0),Ec(t)}},xc=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),a=r?"set":"add",i=Zs[e],s=i&&i.prototype,c=i,l={},u=function(e){var t=ec(s[e]);nc(s,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!cc(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!cc(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!cc(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(tc(e,!ic(i)||!(o||s.forEach&&!lc((function(){(new i).entries().next()})))))c=n.getConstructor(t,e,r,a),rc.enable();else if(tc(e,!0)){var d=new c,p=d[a](o?{}:-0,1)!=d,f=lc((function(){d.has(1)})),h=uc((function(e){new i(e)})),m=!o&&lc((function(){for(var e=new i,t=5;t--;)e[a](t,t);return!e.has(-0)}));h||((c=t((function(e,t){ac(e,s);var n=pc(new i,e,c);return sc(t)||oc(t,n[a],{that:n,AS_ENTRIES:r}),n}))).prototype=s,s.constructor=c),(f||m)&&(u("delete"),u("has"),r&&u("get")),(m||p)&&u(a),o&&s.clear&&delete s.clear}return l[e]=c,Xs({global:!0,constructor:!0,forced:c!=i},l),dc(c,e),o||n.setStrong(c,e,r),c};xc("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),Nc);var Rc=ls,Pc=ns?{}.toString:function(){return"[object "+Rc(this)+"]"};ns||uo(Object.prototype,"toString",Pc,{unsafe:!0});var Uc=ls,Vc=String,Bc=function(e){if("Symbol"===Uc(e))throw TypeError("Cannot convert a Symbol value to a string");return Vc(e)},Fc=S,Gc=Jt,zc=Bc,Hc=R,Yc=Fc("".charAt),qc=Fc("".charCodeAt),Wc=Fc("".slice),Kc=function(e){return function(t,n){var r,o,a=zc(Hc(t)),i=Gc(n),s=a.length;return i<0||i>=s?e?"":void 0:(r=qc(a,i))<55296||r>56319||i+1===s||(o=qc(a,i+1))<56320||o>57343?e?Yc(a,i):r:e?Wc(a,i,i+2):o-56320+(r-55296<<10)+65536}},$c={codeAt:Kc(!1),charAt:Kc(!0)}.charAt,Jc=Bc,Qc=Mr,Xc=qa,Zc=Wa,el="String Iterator",tl=Qc.set,nl=Qc.getterFor(el);Xc(String,"String",(function(e){tl(this,{type:el,string:Jc(e),index:0})}),(function(){var e,t=nl(this),n=t.string,r=t.index;return r>=n.length?Zc(void 0,!0):(e=$c(n,r),t.index+=e.length,Zc(e,!1))}));var rl=et("span").classList,ol=rl&&rl.constructor&&rl.constructor.prototype,al=ol===Object.prototype?void 0:ol,il=F,sl={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},cl=al,ll=ai,ul=cr,dl=Ve,pl=dl("iterator"),fl=dl("toStringTag"),hl=ll.values,ml=function(e,t){if(e){if(e[pl]!==hl)try{ul(e,pl,hl)}catch(GO){e[pl]=hl}if(e[fl]||ul(e,fl,t),sl[t])for(var n in ll)if(e[n]!==ll[n])try{ul(e,n,ll[n])}catch(GO){e[n]=ll[n]}}};for(var vl in sl)ml(il[vl]&&il[vl].prototype,vl);ml(cl,"DOMTokenList");var gl=C,_l=Array.isArray||function(e){return"Array"==gl(e)},yl=S,bl=h,Ol=pe,Ml=ls,kl=Wr,Cl=function(){},wl=[],Il=ve("Reflect","construct"),Sl=/^\s*(?:class|function)\b/,Tl=yl(Sl.exec),El=!Sl.exec(Cl),jl=function(e){if(!Ol(e))return!1;try{return Il(Cl,wl,e),!0}catch(GO){return!1}},Dl=function(e){if(!Ol(e))return!1;switch(Ml(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return El||!!Tl(Sl,kl(e))}catch(GO){return!0}};Dl.sham=!0;var Ll=!Il||bl((function(){var e;return jl(jl.call)||!jl(Object)||!jl((function(){e=!0}))||e}))?Dl:jl,Al=h,Nl=Ce,xl=Ve("species"),Rl=function(e){return Nl>=51||!Al((function(){var t=[];return(t.constructor={})[xl]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Pl=S([].slice),Ul=Yo,Vl=_l,Bl=Ll,Fl=Ge,Gl=en,zl=an,Hl=V,Yl=pi,ql=Ve,Wl=Pl,Kl=Rl("slice"),$l=ql("species"),Jl=Array,Ql=Math.max;Ul({target:"Array",proto:!0,forced:!Kl},{slice:function(e,t){var n,r,o,a=Hl(this),i=zl(a),s=Gl(e,i),c=Gl(void 0===t?i:t,i);if(Vl(a)&&(n=a.constructor,(Bl(n)&&(n===Jl||Vl(n.prototype))||Fl(n)&&null===(n=n[$l]))&&(n=void 0),n===Jl||void 0===n))return Wl(a,s,c);for(r=new(void 0===n?Jl:n)(Ql(c-s,0)),o=0;s<c;s++,o++)s in a&&Yl(r,o,a[s]);return r.length=o,r}});var Xl=Yo,Zl=Date,eu=S(Zl.prototype.getTime);Xl({target:"Date",stat:!0},{now:function(){return eu(new Zl)}});var tu=S,nu=uo,ru=Date.prototype,ou="Invalid Date",au="toString",iu=tu(ru.toString),su=tu(ru.getTime);String(new Date(NaN))!=ou&&nu(ru,au,(function(){var e=su(this);return e==e?iu(this):ou}));var cu=TypeError,lu=_l,uu=Ll,du=Ge,pu=Ve("species"),fu=Array,hu=function(e){var t;return lu(e)&&(t=e.constructor,(uu(t)&&(t===fu||lu(t.prototype))||du(t)&&null===(t=t[pu]))&&(t=void 0)),void 0===t?fu:t},mu=function(e,t){return new(hu(e))(0===t?0:t)},vu=Yo,gu=h,_u=_l,yu=Ge,bu=ee,Ou=an,Mu=function(e){if(e>9007199254740991)throw cu("Maximum allowed index exceeded");return e},ku=pi,Cu=mu,wu=Rl,Iu=Ce,Su=Ve("isConcatSpreadable"),Tu=Iu>=51||!gu((function(){var e=[];return e[Su]=!1,e.concat()[0]!==e})),Eu=wu("concat"),ju=function(e){if(!yu(e))return!1;var t=e[Su];return void 0!==t?!!t:_u(e)};vu({target:"Array",proto:!0,arity:1,forced:!Tu||!Eu},{concat:function(e){var t,n,r,o,a,i=bu(this),s=Cu(i,0),c=0;for(t=-1,r=arguments.length;t<r;t++)if(ju(a=-1===t?i:arguments[t]))for(o=Ou(a),Mu(c+o),n=0;n<o;n++,c++)n in a&&ku(s,c,a[n]);else Mu(c+1),ku(s,c++,a);return s.length=c,s}});var Du=S(1..valueOf),Lu=R,Au=Bc,Nu=S("".replace),xu="[\t\n\v\f\r \u2028\u2029\ufeff]",Ru=RegExp("^"+xu+xu+"*"),Pu=RegExp(xu+xu+"*$"),Uu=function(e){return function(t){var n=Au(Lu(t));return 1&e&&(n=Nu(n,Ru,"")),2&e&&(n=Nu(n,Pu,"")),n}},Vu={start:Uu(1),end:Uu(2),trim:Uu(3)},Bu=Ke,Fu=F,Gu=S,zu=Po,Hu=uo,Yu=re,qu=Qs,Wu=it,Ku=dt,$u=Lt,Ju=h,Qu=po.f,Xu=kr.f,Zu=Je.f,ed=Du,td=Vu.trim,nd="Number",rd=Fu.Number,od=rd.prototype,ad=Fu.TypeError,id=Gu("".slice),sd=Gu("".charCodeAt),cd=function(e){var t=$u(e,"number");return"bigint"==typeof t?t:ld(t)},ld=function(e){var t,n,r,o,a,i,s,c,l=$u(e,"number");if(Ku(l))throw ad("Cannot convert a Symbol value to a number");if("string"==typeof l&&l.length>2)if(l=td(l),43===(t=sd(l,0))||45===t){if(88===(n=sd(l,2))||120===n)return NaN}else if(48===t){switch(sd(l,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+l}for(i=(a=id(l,2)).length,s=0;s<i;s++)if((c=sd(a,s))<48||c>o)return NaN;return parseInt(a,r)}return+l};if(zu(nd,!rd(" 0o1")||!rd("0b1")||rd("+0x1"))){for(var ud,dd=function(e){var t=arguments.length<1?0:rd(cd(e)),n=this;return Wu(od,n)&&Ju((function(){ed(n)}))?qu(Object(t),n,dd):t},pd=Bu?Qu(rd):"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(","),fd=0;pd.length>fd;fd++)Yu(rd,ud=pd[fd])&&!Yu(dd,ud)&&Zu(dd,ud,Xu(rd,ud));dd.prototype=od,od.constructor=dd,Hu(Fu,nd,dd,{constructor:!0})}var hd,md,vd,gd,_d="process"==C(F.process),yd=Ll,bd=ft,Od=TypeError,Md=function(e){if(yd(e))return e;throw Od(bd(e)+" is not a constructor")},kd=qe,Cd=Md,wd=A,Id=Ve("species"),Sd=function(e,t){var n,r=kd(e).constructor;return void 0===r||wd(n=kd(r)[Id])?t:Cd(n)},Td=m,Ed=Function.prototype,jd=Ed.apply,Dd=Ed.call,Ld="object"==typeof Reflect&&Reflect.apply||(Td?Dd.bind(jd):function(){return Dd.apply(jd,arguments)}),Ad=TypeError,Nd=/(?:ipad|iphone|ipod).*applewebkit/i.test(ge),xd=F,Rd=Ld,Pd=Ji,Ud=pe,Vd=re,Bd=h,Fd=jn,Gd=Pl,zd=et,Hd=function(e,t){if(e<t)throw Ad("Not enough arguments");return e},Yd=Nd,qd=_d,Wd=xd.setImmediate,Kd=xd.clearImmediate,$d=xd.process,Jd=xd.Dispatch,Qd=xd.Function,Xd=xd.MessageChannel,Zd=xd.String,ep=0,tp={},np="onreadystatechange";try{hd=xd.location}catch(GO){}var rp=function(e){if(Vd(tp,e)){var t=tp[e];delete tp[e],t()}},op=function(e){return function(){rp(e)}},ap=function(e){rp(e.data)},ip=function(e){xd.postMessage(Zd(e),hd.protocol+"//"+hd.host)};Wd&&Kd||(Wd=function(e){Hd(arguments.length,1);var t=Ud(e)?e:Qd(e),n=Gd(arguments,1);return tp[++ep]=function(){Rd(t,void 0,n)},md(ep),ep},Kd=function(e){delete tp[e]},qd?md=function(e){$d.nextTick(op(e))}:Jd&&Jd.now?md=function(e){Jd.now(op(e))}:Xd&&!Yd?(gd=(vd=new Xd).port2,vd.port1.onmessage=ap,md=Pd(gd.postMessage,gd)):xd.addEventListener&&Ud(xd.postMessage)&&!xd.importScripts&&hd&&"file:"!==hd.protocol&&!Bd(ip)?(md=ip,xd.addEventListener("message",ap,!1)):md=np in zd("script")?function(e){Fd.appendChild(zd("script")).onreadystatechange=function(){Fd.removeChild(this),rp(e)}}:function(e){setTimeout(op(e),0)});var sp,cp,lp,up,dp,pp,fp,hp,mp={set:Wd,clear:Kd},vp=F,gp=/ipad|iphone|ipod/i.test(ge)&&void 0!==vp.Pebble,_p=/web0s(?!.*chrome)/i.test(ge),yp=F,bp=Ji,Op=kr.f,Mp=mp.set,kp=Nd,Cp=gp,wp=_p,Ip=_d,Sp=yp.MutationObserver||yp.WebKitMutationObserver,Tp=yp.document,Ep=yp.process,jp=yp.Promise,Dp=Op(yp,"queueMicrotask"),Lp=Dp&&Dp.value;Lp||(sp=function(){var e,t;for(Ip&&(e=Ep.domain)&&e.exit();cp;){t=cp.fn,cp=cp.next;try{t()}catch(GO){throw cp?up():lp=void 0,GO}}lp=void 0,e&&e.enter()},kp||Ip||wp||!Sp||!Tp?!Cp&&jp&&jp.resolve?((fp=jp.resolve(void 0)).constructor=jp,hp=bp(fp.then,fp),up=function(){hp(sp)}):Ip?up=function(){Ep.nextTick(sp)}:(Mp=bp(Mp,yp),up=function(){Mp(sp)}):(dp=!0,pp=Tp.createTextNode(""),new Sp(sp).observe(pp,{characterData:!0}),up=function(){pp.data=dp=!dp}));var Ap=Lp||function(e){var t={fn:e,next:void 0};lp&&(lp.next=t),cp||(cp=t,up()),lp=t},Np=F,xp=function(e){try{return{error:!1,value:e()}}catch(GO){return{error:!0,value:GO}}},Rp=function(){this.head=null,this.tail=null};Rp.prototype={add:function(e){var t={item:e,next:null};this.head?this.tail.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}};var Pp=Rp,Up=F.Promise,Vp="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,Bp=!Vp&&!_d&&"object"==typeof window&&"object"==typeof document,Fp=F,Gp=Up,zp=pe,Hp=Po,Yp=Wr,qp=Ve,Wp=Bp,Kp=Vp,$p=Ce;Gp&&Gp.prototype;var Jp=qp("species"),Qp=!1,Xp=zp(Fp.PromiseRejectionEvent),Zp=Hp("Promise",(function(){var e=Yp(Gp),t=e!==String(Gp);if(!t&&66===$p)return!0;if(!$p||$p<51||!/native code/.test(e)){var n=new Gp((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};if((n.constructor={})[Jp]=r,!(Qp=n.then((function(){}))instanceof r))return!0}return!t&&(Wp||Kp)&&!Xp})),ef={CONSTRUCTOR:Zp,REJECTION_EVENT:Xp,SUBCLASSING:Qp},tf={},nf=gt,rf=TypeError,of=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw rf("Bad Promise constructor");t=e,n=r})),this.resolve=nf(t),this.reject=nf(n)};tf.f=function(e){return new of(e)};var af,sf,cf,lf=Yo,uf=_d,df=F,pf=at,ff=uo,hf=Ia,mf=fa,vf=yc,gf=gt,_f=pe,yf=Ge,bf=Gs,Of=Sd,Mf=mp.set,kf=Ap,Cf=function(e,t){var n=Np.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))},wf=xp,If=Pp,Sf=Mr,Tf=Up,Ef=tf,jf="Promise",Df=ef.CONSTRUCTOR,Lf=ef.REJECTION_EVENT,Af=ef.SUBCLASSING,Nf=Sf.getterFor(jf),xf=Sf.set,Rf=Tf&&Tf.prototype,Pf=Tf,Uf=Rf,Vf=df.TypeError,Bf=df.document,Ff=df.process,Gf=Ef.f,zf=Gf,Hf=!!(Bf&&Bf.createEvent&&df.dispatchEvent),Yf="unhandledrejection",qf=function(e){var t;return!(!yf(e)||!_f(t=e.then))&&t},Wf=function(e,t){var n,r,o,a=t.value,i=1==t.state,s=i?e.ok:e.fail,c=e.resolve,l=e.reject,u=e.domain;try{s?(i||(2===t.rejection&&Xf(t),t.rejection=1),!0===s?n=a:(u&&u.enter(),n=s(a),u&&(u.exit(),o=!0)),n===e.promise?l(Vf("Promise-chain cycle")):(r=qf(n))?pf(r,n,c,l):c(n)):l(a)}catch(GO){u&&!o&&u.exit(),l(GO)}},Kf=function(e,t){e.notified||(e.notified=!0,kf((function(){for(var n,r=e.reactions;n=r.get();)Wf(n,e);e.notified=!1,t&&!e.rejection&&Jf(e)})))},$f=function(e,t,n){var r,o;Hf?((r=Bf.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),df.dispatchEvent(r)):r={promise:t,reason:n},!Lf&&(o=df["on"+e])?o(r):e===Yf&&Cf("Unhandled promise rejection",n)},Jf=function(e){pf(Mf,df,(function(){var t,n=e.facade,r=e.value;if(Qf(e)&&(t=wf((function(){uf?Ff.emit("unhandledRejection",r,n):$f(Yf,n,r)})),e.rejection=uf||Qf(e)?2:1,t.error))throw t.value}))},Qf=function(e){return 1!==e.rejection&&!e.parent},Xf=function(e){pf(Mf,df,(function(){var t=e.facade;uf?Ff.emit("rejectionHandled",t):$f("rejectionhandled",t,e.value)}))},Zf=function(e,t,n){return function(r){e(t,r,n)}},eh=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Kf(e,!0))},th=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw Vf("Promise can't be resolved itself");var r=qf(t);r?kf((function(){var n={done:!1};try{pf(r,t,Zf(th,n,e),Zf(eh,n,e))}catch(GO){eh(n,GO,e)}})):(e.value=t,e.state=1,Kf(e,!1))}catch(GO){eh({done:!1},GO,e)}}};if(Df&&(Uf=(Pf=function(e){bf(this,Uf),gf(e),pf(af,this);var t=Nf(this);try{e(Zf(th,t),Zf(eh,t))}catch(GO){eh(t,GO)}}).prototype,(af=function(e){xf(this,{type:jf,done:!1,notified:!1,parent:!1,reactions:new If,rejection:!1,state:0,value:void 0})}).prototype=ff(Uf,"then",(function(e,t){var n=Nf(this),r=Gf(Of(this,Pf));return n.parent=!0,r.ok=!_f(e)||e,r.fail=_f(t)&&t,r.domain=uf?Ff.domain:void 0,0==n.state?n.reactions.add(r):kf((function(){Wf(r,n)})),r.promise})),sf=function(){var e=new af,t=Nf(e);this.promise=e,this.resolve=Zf(th,t),this.reject=Zf(eh,t)},Ef.f=Gf=function(e){return e===Pf||void 0===e?new sf(e):zf(e)},_f(Tf)&&Rf!==Object.prototype)){cf=Rf.then,Af||ff(Rf,"then",(function(e,t){var n=this;return new Pf((function(e,t){pf(cf,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete Rf.constructor}catch(GO){}hf&&hf(Rf,Uf)}lf({global:!0,constructor:!0,wrap:!0,forced:Df},{Promise:Pf}),mf(Pf,jf,!1),vf(jf);var nh=Up,rh=ef.CONSTRUCTOR||!Ws((function(e){nh.all(e).then(void 0,(function(){}))})),oh=at,ah=gt,ih=tf,sh=xp,ch=Vs;Yo({target:"Promise",stat:!0,forced:rh},{all:function(e){var t=this,n=ih.f(t),r=n.resolve,o=n.reject,a=sh((function(){var n=ah(t.resolve),a=[],i=0,s=1;ch(e,(function(e){var c=i++,l=!1;s++,oh(n,t,e).then((function(e){l||(l=!0,a[c]=e,--s||r(a))}),o)})),--s||r(a)}));return a.error&&o(a.value),n.promise}});var lh=Yo,uh=ef.CONSTRUCTOR,dh=Up,ph=ve,fh=pe,hh=uo,mh=dh&&dh.prototype;if(lh({target:"Promise",proto:!0,forced:uh,real:!0},{catch:function(e){return this.then(void 0,e)}}),fh(dh)){var vh=ph("Promise").prototype.catch;mh.catch!==vh&&hh(mh,"catch",vh,{unsafe:!0})}var gh=at,_h=gt,yh=tf,bh=xp,Oh=Vs;Yo({target:"Promise",stat:!0,forced:rh},{race:function(e){var t=this,n=yh.f(t),r=n.reject,o=bh((function(){var o=_h(t.resolve);Oh(e,(function(e){gh(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var Mh=at,kh=tf;Yo({target:"Promise",stat:!0,forced:ef.CONSTRUCTOR},{reject:function(e){var t=kh.f(this);return Mh(t.reject,void 0,e),t.promise}});var Ch=qe,wh=Ge,Ih=tf,Sh=Yo,Th=ef.CONSTRUCTOR,Eh=function(e,t){if(Ch(e),wh(t)&&t.constructor===e)return t;var n=Ih.f(e);return(0,n.resolve)(t),n.promise};ve("Promise"),Sh({target:"Promise",stat:!0,forced:Th},{resolve:function(e){return Eh(this,e)}}),window.AudioContext=window.AudioContext||window.webkitAudioContext||window.mozAudioContext;var jh,Dh=function(){if(jh)return jh;jh=new window.AudioContext({sampleRate:48e3});var e=function e(){"suspended"===jh.state?(jh.resume(),document.removeEventListener("click",e)):"interrupted"===jh.state?jh.resume():document.removeEventListener("click",e)};return document.addEventListener("click",e),jh.onstatechange=function(){e()},jh},Lh="input",Ah="output";function Nh(e){return xh(e)?"intl-schedule.rtc.qq.com":"schedule.rtc.qq.com"}var xh=function(e){return(e=Number(e))>0&&e<14e8};function Rh(e){return Ph.apply(this,arguments)}function Ph(){return(Ph=c(i().mark((function e(t){var n,r,o,a,s,c,l,u,d,p,f,h,m,v,g;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.sdkAppId,r=t.userId,o=t.userSig,a=t.timestamp,s=Nh(n),c="https://".concat(s,"/api/v1/audioAiAuth?sdkAppId=").concat(n,"&userId=").concat(r,"&userSig=").concat(o,"×tamp=").concat(a),e.next=5,fetch(c);case 5:return l=e.sent,e.next=8,l.json();case 8:if(u=e.sent,d=u.data,p=d.errCode,f=d.errMsg,h=d.sign,"1"!==(m=d.status)){e.next=16;break}return e.abrupt("return",{auth:!0,sign:h,status:m,message:f});case 16:v="Init RTCAIDenoiser failed.",g="",e.t0=p,e.next=1===e.t0?21:2===e.t0?23:3===e.t0?25:4===e.t0?27:5===e.t0?29:6===e.t0?31:33;break;case 21:return g="Please check your params.",e.abrupt("break",33);case 23:return g="You need to buy packages. Refer to: https://cloud.tencent.com/document/product/647/44247",e.abrupt("break",33);case 25:return g="Server is invalid. Please contact our engineer. ",e.abrupt("break",33);case 27:return g="Your packages is not active. Refer to: https://cloud.tencent.com/document/product/647/44247",e.abrupt("break",33);case 29:return g="Your packages is expired. Refer to: https://cloud.tencent.com/document/product/647/44247",e.abrupt("break",33);case 31:return g="Your version is not supported.",e.abrupt("break",33);case 33:return e.abrupt("return",{auth:!1,status:m,message:f?"".concat(v," Reason: ").concat(f,". ").concat(g):"".concat(v,", ").concat(g)});case 34:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Uh={exports:{}};!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 a(e,t,r,a,i){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new o(r,a||e,i),c=n?n+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function i(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,a=r.length,i=new Array(a);o<a;o++)i[o]=r[o].fn;return i},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,a,i){var s=n?n+e:e;if(!this._events[s])return!1;var c,l,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,a),!0;case 6:return u.fn.call(u.context,t,r,o,a,i),!0}for(l=1,c=new Array(d-1);l<d;l++)c[l-1]=arguments[l];u.fn.apply(u.context,c)}else{var p,f=u.length;for(l=0;l<f;l++)switch(u[l].once&&this.removeListener(e,u[l].fn,void 0,!0),d){case 1:u[l].fn.call(u[l].context);break;case 2:u[l].fn.call(u[l].context,t);break;case 3:u[l].fn.call(u[l].context,t,r);break;case 4:u[l].fn.call(u[l].context,t,r,o);break;default:if(!c)for(p=1,c=new Array(d-1);p<d;p++)c[p-1]=arguments[p];u[l].fn.apply(u[l].context,c)}}return!0},s.prototype.on=function(e,t,n){return a(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return a(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,o){var a=n?n+e:e;if(!this._events[a])return this;if(!t)return i(this,a),this;var s=this._events[a];if(s.fn)s.fn!==t||o&&!s.once||r&&s.context!==r||i(this,a);else{for(var c=0,l=[],u=s.length;c<u;c++)(s[c].fn!==t||o&&!s[c].once||r&&s[c].context!==r)&&l.push(s[c]);l.length?this._events[a]=1===l.length?l[0]:l:i(this,a)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&i(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}(Uh);var Vh=Uh.exports,Bh="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView,Fh=Jt,Gh=rn,zh=RangeError,Hh=function(e){if(void 0===e)return 0;var t=Fh(e),n=Gh(t);if(t!==n)throw zh("Wrong length or index");return n},Yh=Array,qh=Math.abs,Wh=Math.pow,Kh=Math.floor,$h=Math.log,Jh=Math.LN2,Qh=ee,Xh=en,Zh=an,em=function(e){for(var t=Qh(this),n=Zh(t),r=arguments.length,o=Xh(r>1?arguments[1]:void 0,n),a=r>2?arguments[2]:void 0,i=void 0===a?n:Xh(a,n);i>o;)t[o++]=e;return t},tm=F,nm=S,rm=Ke,om=Bh,am=zr,im=cr,sm=hc,cm=h,lm=Gs,um=Jt,dm=rn,pm=Hh,fm={pack:function(e,t,n){var r,o,a,i=Yh(n),s=8*n-t-1,c=(1<<s)-1,l=c>>1,u=23===t?Wh(2,-24)-Wh(2,-77):0,d=e<0||0===e&&1/e<0?1:0,p=0;for((e=qh(e))!=e||1/0===e?(o=e!=e?1:0,r=c):(r=Kh($h(e)/Jh),e*(a=Wh(2,-r))<1&&(r--,a*=2),(e+=r+l>=1?u/a:u*Wh(2,1-l))*a>=2&&(r++,a/=2),r+l>=c?(o=0,r=c):r+l>=1?(o=(e*a-1)*Wh(2,t),r+=l):(o=e*Wh(2,l-1)*Wh(2,t),r=0));t>=8;)i[p++]=255&o,o/=256,t-=8;for(r=r<<t|o,s+=t;s>0;)i[p++]=255&r,r/=256,s-=8;return i[--p]|=128*d,i},unpack:function(e,t){var n,r=e.length,o=8*r-t-1,a=(1<<o)-1,i=a>>1,s=o-7,c=r-1,l=e[c--],u=127&l;for(l>>=7;s>0;)u=256*u+e[c--],s-=8;for(n=u&(1<<-s)-1,u>>=-s,s+=t;s>0;)n=256*n+e[c--],s-=8;if(0===u)u=1-i;else{if(u===a)return n?NaN:l?-1/0:1/0;n+=Wh(2,t),u-=i}return(l?-1:1)*n*Wh(2,u-t)}},hm=ea,mm=Ia,vm=po.f,gm=Je.f,_m=em,ym=_i,bm=fa,Om=am.PROPER,Mm=am.CONFIGURABLE,km=Mr.get,Cm=Mr.set,wm="ArrayBuffer",Im="DataView",Sm="Wrong index",Tm=tm.ArrayBuffer,Em=Tm,jm=Em&&Em.prototype,Dm=tm.DataView,Lm=Dm&&Dm.prototype,Am=Object.prototype,Nm=tm.Array,xm=tm.RangeError,Rm=nm(_m),Pm=nm([].reverse),Um=fm.pack,Vm=fm.unpack,Bm=function(e){return[255&e]},Fm=function(e){return[255&e,e>>8&255]},Gm=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},zm=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},Hm=function(e){return Um(e,23,4)},Ym=function(e){return Um(e,52,8)},qm=function(e,t){gm(e.prototype,t,{get:function(){return km(this)[t]}})},Wm=function(e,t,n,r){var o=pm(n),a=km(e);if(o+t>a.byteLength)throw xm(Sm);var i=km(a.buffer).bytes,s=o+a.byteOffset,c=ym(i,s,s+t);return r?c:Pm(c)},Km=function(e,t,n,r,o,a){var i=pm(n),s=km(e);if(i+t>s.byteLength)throw xm(Sm);for(var c=km(s.buffer).bytes,l=i+s.byteOffset,u=r(+o),d=0;d<t;d++)c[l+d]=u[a?d:t-d-1]};if(om){var $m=Om&&Tm.name!==wm;if(cm((function(){Tm(1)}))&&cm((function(){new Tm(-1)}))&&!cm((function(){return new Tm,new Tm(1.5),new Tm(NaN),1!=Tm.length||$m&&!Mm})))$m&&Mm&&im(Tm,"name",wm);else{(Em=function(e){return lm(this,jm),new Tm(pm(e))}).prototype=jm;for(var Jm,Qm=vm(Tm),Xm=0;Qm.length>Xm;)(Jm=Qm[Xm++])in Em||im(Em,Jm,Tm[Jm]);jm.constructor=Em}mm&&hm(Lm)!==Am&&mm(Lm,Am);var Zm=new Dm(new Em(2)),ev=nm(Lm.setInt8);Zm.setInt8(0,2147483648),Zm.setInt8(1,2147483649),!Zm.getInt8(0)&&Zm.getInt8(1)||sm(Lm,{setInt8:function(e,t){ev(this,e,t<<24>>24)},setUint8:function(e,t){ev(this,e,t<<24>>24)}},{unsafe:!0})}else jm=(Em=function(e){lm(this,jm);var t=pm(e);Cm(this,{bytes:Rm(Nm(t),0),byteLength:t}),rm||(this.byteLength=t)}).prototype,Lm=(Dm=function(e,t,n){lm(this,Lm),lm(e,jm);var r=km(e).byteLength,o=um(t);if(o<0||o>r)throw xm("Wrong offset");if(o+(n=void 0===n?r-o:dm(n))>r)throw xm("Wrong length");Cm(this,{buffer:e,byteLength:n,byteOffset:o}),rm||(this.buffer=e,this.byteLength=n,this.byteOffset=o)}).prototype,rm&&(qm(Em,"byteLength"),qm(Dm,"buffer"),qm(Dm,"byteLength"),qm(Dm,"byteOffset")),sm(Lm,{getInt8:function(e){return Wm(this,1,e)[0]<<24>>24},getUint8:function(e){return Wm(this,1,e)[0]},getInt16:function(e){var t=Wm(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=Wm(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return zm(Wm(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return zm(Wm(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return Vm(Wm(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return Vm(Wm(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){Km(this,1,e,Bm,t)},setUint8:function(e,t){Km(this,1,e,Bm,t)},setInt16:function(e,t){Km(this,2,e,Fm,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){Km(this,2,e,Fm,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){Km(this,4,e,Gm,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){Km(this,4,e,Gm,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){Km(this,4,e,Hm,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){Km(this,8,e,Ym,t,arguments.length>2?arguments[2]:void 0)}});bm(Em,wm),bm(Dm,Im);var tv={ArrayBuffer:Em,DataView:Dm},nv=Yo,rv=S,ov=h,av=qe,iv=en,sv=rn,cv=Sd,lv=tv.ArrayBuffer,uv=tv.DataView,dv=uv.prototype,pv=rv(lv.prototype.slice),fv=rv(dv.getUint8),hv=rv(dv.setUint8);nv({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:ov((function(){return!new lv(2).slice(1,void 0).byteLength}))},{slice:function(e,t){if(pv&&void 0===t)return pv(av(this),e);for(var n=av(this).byteLength,r=iv(e,n),o=iv(void 0===t?n:t,n),a=new(cv(this,lv))(sv(o-r)),i=new uv(this),s=new uv(a),c=0;r<o;)hv(s,c++,fv(i,r++));return a}});var mv,vv,gv,_v={exports:{}},yv=Bh,bv=Ke,Ov=F,Mv=pe,kv=Ge,Cv=re,wv=ls,Iv=ft,Sv=cr,Tv=uo,Ev=Je.f,jv=it,Dv=ea,Lv=Ia,Av=Ve,Nv=ce,xv=Mr.enforce,Rv=Mr.get,Pv=Ov.Int8Array,Uv=Pv&&Pv.prototype,Vv=Ov.Uint8ClampedArray,Bv=Vv&&Vv.prototype,Fv=Pv&&Dv(Pv),Gv=Uv&&Dv(Uv),zv=Object.prototype,Hv=Ov.TypeError,Yv=Av("toStringTag"),qv=Nv("TYPED_ARRAY_TAG"),Wv="TypedArrayConstructor",Kv=yv&&!!Lv&&"Opera"!==wv(Ov.opera),$v=!1,Jv={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},Qv={BigInt64Array:8,BigUint64Array:8},Xv=function(e){var t=Dv(e);if(kv(t)){var n=Rv(t);return n&&Cv(n,Wv)?n.TypedArrayConstructor:Xv(t)}},Zv=function(e){if(!kv(e))return!1;var t=wv(e);return Cv(Jv,t)||Cv(Qv,t)};for(mv in Jv)(gv=(vv=Ov[mv])&&vv.prototype)?xv(gv).TypedArrayConstructor=vv:Kv=!1;for(mv in Qv)(gv=(vv=Ov[mv])&&vv.prototype)&&(xv(gv).TypedArrayConstructor=vv);if((!Kv||!Mv(Fv)||Fv===Function.prototype)&&(Fv=function(){throw Hv("Incorrect invocation")},Kv))for(mv in Jv)Ov[mv]&&Lv(Ov[mv],Fv);if((!Kv||!Gv||Gv===zv)&&(Gv=Fv.prototype,Kv))for(mv in Jv)Ov[mv]&&Lv(Ov[mv].prototype,Gv);if(Kv&&Dv(Bv)!==Gv&&Lv(Bv,Gv),bv&&!Cv(Gv,Yv))for(mv in $v=!0,Ev(Gv,Yv,{get:function(){return kv(this)?this[qv]:void 0}}),Jv)Ov[mv]&&Sv(Ov[mv],qv,mv);var eg={NATIVE_ARRAY_BUFFER_VIEWS:Kv,TYPED_ARRAY_TAG:$v&&qv,aTypedArray:function(e){if(Zv(e))return e;throw Hv("Target is not a typed array")},aTypedArrayConstructor:function(e){if(Mv(e)&&(!Lv||jv(Fv,e)))return e;throw Hv(Iv(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n,r){if(bv){if(n)for(var o in Jv){var a=Ov[o];if(a&&Cv(a.prototype,e))try{delete a.prototype[e]}catch(GO){try{a.prototype[e]=t}catch(s){}}}Gv[e]&&!n||Tv(Gv,e,n?t:Kv&&Uv[e]||t,r)}},exportTypedArrayStaticMethod:function(e,t,n){var r,o;if(bv){if(Lv){if(n)for(r in Jv)if((o=Ov[r])&&Cv(o,e))try{delete o[e]}catch(GO){}if(Fv[e]&&!n)return;try{return Tv(Fv,e,n?t:Kv&&Fv[e]||t)}catch(GO){}}for(r in Jv)!(o=Ov[r])||o[e]&&!n||Tv(o,e,t)}},getTypedArrayConstructor:Xv,isView:function(e){if(!kv(e))return!1;var t=wv(e);return"DataView"===t||Cv(Jv,t)||Cv(Qv,t)},isTypedArray:Zv,TypedArray:Fv,TypedArrayPrototype:Gv},tg=F,ng=h,rg=Ws,og=eg.NATIVE_ARRAY_BUFFER_VIEWS,ag=tg.ArrayBuffer,ig=tg.Int8Array,sg=!og||!ng((function(){ig(1)}))||!ng((function(){new ig(-1)}))||!rg((function(e){new ig,new ig(null),new ig(1.5),new ig(e)}),!0)||ng((function(){return 1!==new ig(new ag(2),1,void 0).length})),cg=Ge,lg=Math.floor,ug=Number.isInteger||function(e){return!cg(e)&&isFinite(e)&&lg(e)===e},dg=Jt,pg=RangeError,fg=function(e){var t=dg(e);if(t<0)throw pg("The argument can't be less than 0");return t},hg=RangeError,mg=function(e,t){var n=fg(e);if(n%t)throw hg("Wrong offset");return n},vg=ls,gg=S("".slice),_g=Lt,yg=TypeError,bg=function(e){var t=_g(e,"number");if("number"==typeof t)throw yg("Can't convert number to bigint");return BigInt(t)},Og=Ji,Mg=at,kg=Md,Cg=ee,wg=an,Ig=Ms,Sg=ms,Tg=es,Eg=function(e){return"Big"===gg(vg(e),0,3)},jg=eg.aTypedArrayConstructor,Dg=bg,Lg=Ji,Ag=L,Ng=ee,xg=an,Rg=mu,Pg=S([].push),Ug=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,a=6==e,i=7==e,s=5==e||a;return function(c,l,u,d){for(var p,f,h=Ng(c),m=Ag(h),v=Lg(l,u),g=xg(m),_=0,y=d||Rg,b=t?y(c,g):n||i?y(c,0):void 0;g>_;_++)if((s||_ in m)&&(f=v(p=m[_],_,h),e))if(t)b[_]=f;else if(f)switch(e){case 3:return!0;case 5:return p;case 6:return _;case 2:Pg(b,p)}else switch(e){case 4:return!1;case 7:Pg(b,p)}return a?-1:r||o?o:b}},Vg={forEach:Ug(0),map:Ug(1),filter:Ug(2),some:Ug(3),every:Ug(4),find:Ug(5),findIndex:Ug(6),filterReject:Ug(7)},Bg=Yo,Fg=F,Gg=at,zg=Ke,Hg=sg,Yg=eg,qg=tv,Wg=Gs,Kg=ar,$g=cr,Jg=ug,Qg=rn,Xg=Hh,Zg=mg,e_=xt,t_=re,n_=ls,r_=Ge,o_=dt,a_=qn,i_=it,s_=Ia,c_=po.f,l_=function(e){var t,n,r,o,a,i,s,c,l=kg(this),u=Cg(e),d=arguments.length,p=d>1?arguments[1]:void 0,f=void 0!==p,h=Sg(u);if(h&&!Tg(h))for(c=(s=Ig(u,h)).next,u=[];!(i=Mg(c,s)).done;)u.push(i.value);for(f&&d>2&&(p=Og(p,arguments[2])),n=wg(u),r=new(jg(l))(n),o=Eg(r),t=0;n>t;t++)a=f?p(u[t],t):u[t],r[t]=o?Dg(a):+a;return r},u_=Vg.forEach,d_=yc,p_=Je,f_=kr,h_=Qs,m_=Mr.get,v_=Mr.set,g_=Mr.enforce,__=p_.f,y_=f_.f,b_=Math.round,O_=Fg.RangeError,M_=qg.ArrayBuffer,k_=M_.prototype,C_=qg.DataView,w_=Yg.NATIVE_ARRAY_BUFFER_VIEWS,I_=Yg.TYPED_ARRAY_TAG,S_=Yg.TypedArray,T_=Yg.TypedArrayPrototype,E_=Yg.aTypedArrayConstructor,j_=Yg.isTypedArray,D_="BYTES_PER_ELEMENT",L_="Wrong length",A_=function(e,t){E_(e);for(var n=0,r=t.length,o=new e(r);r>n;)o[n]=t[n++];return o},N_=function(e,t){__(e,t,{get:function(){return m_(this)[t]}})},x_=function(e){var t;return i_(k_,e)||"ArrayBuffer"==(t=n_(e))||"SharedArrayBuffer"==t},R_=function(e,t){return j_(e)&&!o_(t)&&t in e&&Jg(+t)&&t>=0},P_=function(e,t){return t=e_(t),R_(e,t)?Kg(2,e[t]):y_(e,t)},U_=function(e,t,n){return t=e_(t),!(R_(e,t)&&r_(n)&&t_(n,"value"))||t_(n,"get")||t_(n,"set")||n.configurable||t_(n,"writable")&&!n.writable||t_(n,"enumerable")&&!n.enumerable?__(e,t,n):(e[t]=n.value,e)};zg?(w_||(f_.f=P_,p_.f=U_,N_(T_,"buffer"),N_(T_,"byteOffset"),N_(T_,"byteLength"),N_(T_,"length")),Bg({target:"Object",stat:!0,forced:!w_},{getOwnPropertyDescriptor:P_,defineProperty:U_}),_v.exports=function(e,t,n){var r=e.match(/\d+$/)[0]/8,o=e+(n?"Clamped":"")+"Array",a="get"+e,i="set"+e,s=Fg[o],c=s,l=c&&c.prototype,u={},d=function(e,t){__(e,t,{get:function(){return function(e,t){var n=m_(e);return n.view[a](t*r+n.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,o){var a=m_(e);n&&(o=(o=b_(o))<0?0:o>255?255:255&o),a.view[i](t*r+a.byteOffset,o,!0)}(this,t,e)},enumerable:!0})};w_?Hg&&(c=t((function(e,t,n,o){return Wg(e,l),h_(r_(t)?x_(t)?void 0!==o?new s(t,Zg(n,r),o):void 0!==n?new s(t,Zg(n,r)):new s(t):j_(t)?A_(c,t):Gg(l_,c,t):new s(Xg(t)),e,c)})),s_&&s_(c,S_),u_(c_(s),(function(e){e in c||$g(c,e,s[e])})),c.prototype=l):(c=t((function(e,t,n,o){Wg(e,l);var a,i,s,u=0,p=0;if(r_(t)){if(!x_(t))return j_(t)?A_(c,t):Gg(l_,c,t);a=t,p=Zg(n,r);var f=t.byteLength;if(void 0===o){if(f%r)throw O_(L_);if((i=f-p)<0)throw O_(L_)}else if((i=Qg(o)*r)+p>f)throw O_(L_);s=i/r}else s=Xg(t),a=new M_(i=s*r);for(v_(e,{buffer:a,byteOffset:p,byteLength:i,length:s,view:new C_(a)});u<s;)d(e,u++)})),s_&&s_(c,S_),l=c.prototype=a_(T_)),l.constructor!==c&&$g(l,"constructor",c),g_(l).TypedArrayConstructor=c,I_&&$g(l,I_,o);var p=c!=s;u[o]=c,Bg({global:!0,constructor:!0,forced:p,sham:!w_},u),D_ in c||$g(c,D_,r),D_ in l||$g(l,D_,r),d_(o)}):_v.exports=function(){},(0,_v.exports)("Float32",(function(e){return function(t,n,r){return e(this,t,n,r)}}));var V_=ft,B_=TypeError,F_=ee,G_=en,z_=an,H_=function(e,t){if(!delete e[t])throw B_("Cannot delete property "+V_(t)+" of "+V_(e))},Y_=Math.min,q_=[].copyWithin||function(e,t){var n=F_(this),r=z_(n),o=G_(e,r),a=G_(t,r),i=arguments.length>2?arguments[2]:void 0,s=Y_((void 0===i?r:G_(i,r))-a,r-o),c=1;for(a<o&&o<a+s&&(c=-1,a+=s-1,o+=s-1);s-- >0;)a in n?n[o]=n[a]:H_(n,o),o+=c,a+=c;return n},W_=eg,K_=S(q_),$_=W_.aTypedArray;(0,W_.exportTypedArrayMethod)("copyWithin",(function(e,t){return K_($_(this),e,t,arguments.length>2?arguments[2]:void 0)}));var J_=Vg.every,Q_=eg.aTypedArray;(0,eg.exportTypedArrayMethod)("every",(function(e){return J_(Q_(this),e,arguments.length>1?arguments[1]:void 0)}));var X_=em,Z_=bg,ey=ls,ty=at,ny=h,ry=eg.aTypedArray,oy=eg.exportTypedArrayMethod,ay=S("".slice);oy("fill",(function(e){var t=arguments.length;ry(this);var n="Big"===ay(ey(this),0,3)?Z_(e):+e;return ty(X_,this,n,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),ny((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e})));var iy=an,sy=Sd,cy=eg.aTypedArrayConstructor,ly=eg.getTypedArrayConstructor,uy=function(e){return cy(sy(e,ly(e)))},dy=function(e,t){for(var n=0,r=iy(t),o=new e(r);r>n;)o[n]=t[n++];return o},py=uy,fy=Vg.filter,hy=function(e,t){return dy(py(e),t)},my=eg.aTypedArray;(0,eg.exportTypedArrayMethod)("filter",(function(e){var t=fy(my(this),e,arguments.length>1?arguments[1]:void 0);return hy(this,t)}));var vy=Vg.find,gy=eg.aTypedArray;(0,eg.exportTypedArrayMethod)("find",(function(e){return vy(gy(this),e,arguments.length>1?arguments[1]:void 0)}));var _y=Vg.findIndex,yy=eg.aTypedArray;(0,eg.exportTypedArrayMethod)("findIndex",(function(e){return _y(yy(this),e,arguments.length>1?arguments[1]:void 0)}));var by=Vg.forEach,Oy=eg.aTypedArray;(0,eg.exportTypedArrayMethod)("forEach",(function(e){by(Oy(this),e,arguments.length>1?arguments[1]:void 0)}));var My=dn.includes,ky=eg.aTypedArray;(0,eg.exportTypedArrayMethod)("includes",(function(e){return My(ky(this),e,arguments.length>1?arguments[1]:void 0)}));var Cy=dn.indexOf,wy=eg.aTypedArray;(0,eg.exportTypedArrayMethod)("indexOf",(function(e){return Cy(wy(this),e,arguments.length>1?arguments[1]:void 0)}));var Iy=F,Sy=h,Ty=S,Ey=eg,jy=ai,Dy=Ve("iterator"),Ly=Iy.Uint8Array,Ay=Ty(jy.values),Ny=Ty(jy.keys),xy=Ty(jy.entries),Ry=Ey.aTypedArray,Py=Ey.exportTypedArrayMethod,Uy=Ly&&Ly.prototype,Vy=!Sy((function(){Uy[Dy].call([1])})),By=!!Uy&&Uy.values&&Uy[Dy]===Uy.values&&"values"===Uy.values.name,Fy=function(){return Ay(Ry(this))};Py("entries",(function(){return xy(Ry(this))}),Vy),Py("keys",(function(){return Ny(Ry(this))}),Vy),Py("values",Fy,Vy||!By,{name:"values"}),Py(Dy,Fy,Vy||!By,{name:"values"});var Gy=eg.aTypedArray,zy=eg.exportTypedArrayMethod,Hy=S([].join);zy("join",(function(e){return Hy(Gy(this),e)}));var Yy=h,qy=Ld,Wy=V,Ky=Jt,$y=an,Jy=function(e,t){var n=[][e];return!!n&&Yy((function(){n.call(null,t||function(){return 1},1)}))},Qy=Math.min,Xy=[].lastIndexOf,Zy=!!Xy&&1/[1].lastIndexOf(1,-0)<0,eb=Jy("lastIndexOf"),tb=Zy||!eb?function(e){if(Zy)return qy(Xy,this,arguments)||0;var t=Wy(this),n=$y(t),r=n-1;for(arguments.length>1&&(r=Qy(r,Ky(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in t&&t[r]===e)return r||0;return-1}:Xy,nb=Ld,rb=tb,ob=eg.aTypedArray;(0,eg.exportTypedArrayMethod)("lastIndexOf",(function(e){var t=arguments.length;return nb(rb,ob(this),t>1?[e,arguments[1]]:[e])}));var ab=Vg.map,ib=uy,sb=eg.aTypedArray;(0,eg.exportTypedArrayMethod)("map",(function(e){return ab(sb(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(ib(e))(t)}))}));var cb=gt,lb=ee,ub=L,db=an,pb=TypeError,fb=function(e){return function(t,n,r,o){cb(n);var a=lb(t),i=ub(a),s=db(a),c=e?s-1:0,l=e?-1:1;if(r<2)for(;;){if(c in i){o=i[c],c+=l;break}if(c+=l,e?c<0:s<=c)throw pb("Reduce of empty array with no initial value")}for(;e?c>=0:s>c;c+=l)c in i&&(o=n(o,i[c],c,a));return o}},hb={left:fb(!1),right:fb(!0)},mb=hb.left,vb=eg.aTypedArray;(0,eg.exportTypedArrayMethod)("reduce",(function(e){var t=arguments.length;return mb(vb(this),e,t,t>1?arguments[1]:void 0)}));var gb=hb.right,_b=eg.aTypedArray;(0,eg.exportTypedArrayMethod)("reduceRight",(function(e){var t=arguments.length;return gb(_b(this),e,t,t>1?arguments[1]:void 0)}));var yb=eg.aTypedArray,bb=eg.exportTypedArrayMethod,Ob=Math.floor;bb("reverse",(function(){for(var e,t=this,n=yb(t).length,r=Ob(n/2),o=0;o<r;)e=t[o],t[o++]=t[--n],t[n]=e;return t}));var Mb=F,kb=at,Cb=eg,wb=an,Ib=mg,Sb=ee,Tb=h,Eb=Mb.RangeError,jb=Mb.Int8Array,Db=jb&&jb.prototype,Lb=Db&&Db.set,Ab=Cb.aTypedArray,Nb=Cb.exportTypedArrayMethod,xb=!Tb((function(){var e=new Uint8ClampedArray(2);return kb(Lb,e,{length:1,0:3},1),3!==e[1]})),Rb=xb&&Cb.NATIVE_ARRAY_BUFFER_VIEWS&&Tb((function(){var e=new jb(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));Nb("set",(function(e){Ab(this);var t=Ib(arguments.length>1?arguments[1]:void 0,1),n=Sb(e);if(xb)return kb(Lb,this,n,t);var r=this.length,o=wb(n),a=0;if(o+t>r)throw Eb("Wrong length");for(;a<o;)this[t+a]=n[a++]}),!xb||Rb);var Pb=uy,Ub=Pl,Vb=eg.aTypedArray;(0,eg.exportTypedArrayMethod)("slice",(function(e,t){for(var n=Ub(Vb(this),e,t),r=Pb(this),o=0,a=n.length,i=new r(a);a>o;)i[o]=n[o++];return i}),h((function(){new Int8Array(1).slice()})));var Bb=Vg.some,Fb=eg.aTypedArray;(0,eg.exportTypedArrayMethod)("some",(function(e){return Bb(Fb(this),e,arguments.length>1?arguments[1]:void 0)}));var Gb=_i,zb=Math.floor,Hb=function(e,t){var n=e.length,r=zb(n/2);return n<8?Yb(e,t):qb(e,Hb(Gb(e,0,r),t),Hb(Gb(e,r),t),t)},Yb=function(e,t){for(var n,r,o=e.length,a=1;a<o;){for(r=a,n=e[a];r&&t(e[r-1],n)>0;)e[r]=e[--r];r!==a++&&(e[r]=n)}return e},qb=function(e,t,n,r){for(var o=t.length,a=n.length,i=0,s=0;i<o||s<a;)e[i+s]=i<o&&s<a?r(t[i],n[s])<=0?t[i++]:n[s++]:i<o?t[i++]:n[s++];return e},Wb=Hb,Kb=ge.match(/firefox\/(\d+)/i),$b=!!Kb&&+Kb[1],Jb=/MSIE|Trident/.test(ge),Qb=ge.match(/AppleWebKit\/(\d+)\./),Xb=!!Qb&&+Qb[1],Zb=S,eO=h,tO=gt,nO=Wb,rO=$b,oO=Jb,aO=Ce,iO=Xb,sO=eg.aTypedArray,cO=eg.exportTypedArrayMethod,lO=F.Uint16Array,uO=lO&&Zb(lO.prototype.sort),dO=!(!uO||eO((function(){uO(new lO(2),null)}))&&eO((function(){uO(new lO(2),{})}))),pO=!!uO&&!eO((function(){if(aO)return aO<74;if(rO)return rO<67;if(oO)return!0;if(iO)return iO<602;var e,t,n=new lO(516),r=Array(516);for(e=0;e<516;e++)t=e%4,n[e]=515-e,r[e]=e-2*t+3;for(uO(n,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(n[e]!==r[e])return!0}));cO("sort",(function(e){return void 0!==e&&tO(e),pO?uO(this,e):nO(sO(this),function(e){return function(t,n){return void 0!==e?+e(t,n)||0:n!=n?-1:t!=t?1:0===t&&0===n?1/t>0&&1/n<0?1:-1:t>n}}(e))}),!pO||dO);var fO=rn,hO=en,mO=uy,vO=eg.aTypedArray;(0,eg.exportTypedArrayMethod)("subarray",(function(e,t){var n=vO(this),r=n.length,o=hO(e,r);return new(mO(n))(n.buffer,n.byteOffset+o*n.BYTES_PER_ELEMENT,fO((void 0===t?r:hO(t,r))-o))}));var gO=Ld,_O=eg,yO=h,bO=Pl,OO=F.Int8Array,MO=_O.aTypedArray,kO=_O.exportTypedArrayMethod,CO=[].toLocaleString,wO=!!OO&&yO((function(){CO.call(new OO(1))}));kO("toLocaleString",(function(){return gO(CO,wO?bO(MO(this)):MO(this),bO(arguments))}),yO((function(){return[1,2].toLocaleString()!=new OO([1,2]).toLocaleString()}))||!yO((function(){OO.prototype.toLocaleString.call([1,2])})));var IO=eg.exportTypedArrayMethod,SO=h,TO=S,EO=F.Uint8Array,jO=EO&&EO.prototype||{},DO=[].toString,LO=TO([].join);SO((function(){DO.call({})}))&&(DO=function(){return LO(this)});var AO=jO.toString!=DO;IO("toString",DO,AO),Yo({global:!0,constructor:!0,forced:!Bh},{DataView:tv.DataView});var NO=yc,xO="ArrayBuffer",RO=tv.ArrayBuffer;function PO(e,t){t=t||{};var n=e.numberOfChannels,r=e.sampleRate,o=t.float32?3:1,a=3===o?32:16;return function(e,t,n,r,o){var a=o/8,i=r*a,s=new ArrayBuffer(44+e.length*a),c=new DataView(s);return UO(c,0,"RIFF"),c.setUint32(4,36+e.length*a,!0),UO(c,8,"WAVE"),UO(c,12,"fmt "),c.setUint32(16,16,!0),c.setUint16(20,t,!0),c.setUint16(22,r,!0),c.setUint32(24,n,!0),c.setUint32(28,n*i,!0),c.setUint16(32,i,!0),c.setUint16(34,o,!0),UO(c,36,"data"),c.setUint32(40,e.length*a,!0),1===t?function(e,t,n){for(var r=0;r<n.length;r++,t+=2){var o=Math.max(-1,Math.min(1,n[r]));e.setInt16(t,o<0?32768*o:32767*o,!0)}}(c,44,e):function(e,t,n){for(var r=0;r<n.length;r++,t+=4)e.setFloat32(t,n[r],!0)}(c,44,e),s}(2===n?function(e,t){for(var n=e.length+t.length,r=new Float32Array(n),o=0,a=0;o<n;)r[o++]=e[a],r[o++]=t[a],a++;return r}(e.getChannelData(0),e.getChannelData(1)):e.getChannelData(0),o,r,n,a)}function UO(e,t,n){for(var r=0;r<n.length;r++)e.setUint8(t+r,n.charCodeAt(r))}Yo({global:!0,constructor:!0,forced:F.ArrayBuffer!==RO},{ArrayBuffer:RO}),NO(xO);var VO=function(){function e(t){l(this,e),this.audioContext_=t,this.inputPCM_=new Float32Array,this.outputPCM_=new Float32Array}return d(e,[{key:"onDump",value:function(e,t){if(t===Lh){var n=this.inputPCM_.length,r=new Float32Array(n+e[0].length);r.set(this.inputPCM_),r.set(e[0],n),this.inputPCM_=r}if(t===Ah){var o=this.outputPCM_.length,a=new Float32Array(o+e[0].length);a.set(this.outputPCM_),a.set(e[0],o),this.outputPCM_=a}}},{key:"getBlob",value:function(e){var t=e===Lh?this.inputPCM_:this.outputPCM_,n=this.audioContext_.createBuffer(2,t.length,48e3);n.copyToChannel(t,0,0),n.copyToChannel(t,1,0);var r=PO(n);return n=null,new window.Blob([new DataView(r)],{type:"audio/wav"})}},{key:"reset",value:function(){this.inputPCM_=new Float32Array,this.outputPCM_=new Float32Array}},{key:"destroy",value:function(){this.inputPCM_=null,this.outputPCM_=null}}]),e}(),BO=function(){function e(t){var n=this,r=t.sdkAppId,o=t.userId,a=t.audioContext,i=t.sign,s=t.status,c=t.worklet,u=t.timestamp,d=t.logger;l(this,e),this.audioContext_=a,this.destination_=this.audioContext_.createMediaStreamDestination(),this.gainNode_=this.audioContext_.createGain(),this.gainNode_.gain.value=1.1,this.log_=d,this.workletNode_=c,this.workletNode_.connect(this.gainNode_).connect(this.destination_),this.workletNode_.port.postMessage({type:"init",data:{sdkAppId:String(r),userId:o,timestamp:u,sign:i,status:s}}),this.workletNode_.port.onmessage=function(e){var t=e.data,r=t.type,o=t.data;if("ondump"===r&&n.isDumping_){var a=o.inputPCM,i=o.outputPCM;n.dump_.onDump(a,Lh),n.dump_.onDump(i,Ah)}"dumped"===r&&n.dumped()},this.trackConstraint_={},this.localStream_=null,this.audioTrack_=null,this.source_=null,this.denoiserTrack_=null,this.enableDenoise_=!0,this.emitter_=new Vh,this.dump_=new VO(this.audioContext_)}var t,n,o,a;return d(e,[{key:"dumped",value:function(){this.isDumping_=!1;var e=this.dump_.getBlob(Lh),t=this.dump_.getBlob(Ah);this.emitter_.emit("ondumpend",{blob:e,name:Lh}),this.emitter_.emit("ondumpend",{blob:t,name:Ah}),this.dump_.reset()}},{key:"process",value:(a=c(i().mark((function e(t){var n,r,o;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.localStream_=t,this.log_.info("RTCAIDenoiser: denoiser process stream ID: ".concat(t.getId(),".")),this.audioTrack_=null==t?void 0:t.getAudioTrack(),this.audioTrack_){e.next=5;break}throw new Error("RTCAIDenoiser: cannot process localStream without audioTrack.");case 5:return e.next=7,this.audioTrack_.getSettings();case 7:return n=e.sent,this.destination_.channelCount=(null==n?void 0:n.channelCount)||1,(r=new MediaStream).addTrack(this.audioTrack_),this.source_=this.audioContext_.createMediaStreamSource(r),e.next=14,this.source_.connect(this.workletNode_);case 14:return this.trackConstraint_=this.audioTrack_.getConstraints(),this.trackConstraint_.noiseSuppression=!1,e.next=18,this.audioTrack_.applyConstraints(this.trackConstraint_);case 18:return o=this.destination_.stream,this.denoiserTrack_=o.getAudioTracks()[0],e.next=22,this.localStream_.replaceTrack(this.denoiserTrack_);case 22:this.localStream_&&this.localStream_.setIsAIDenoiser&&this.localStream_.setIsAIDenoiser(!0);case 23:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"updateTrack",value:(o=c(i().mark((function e(t){var n,r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=new MediaStream,e.next=3,n.addTrack(t);case 3:r=this.audioContext_.createMediaStreamSource(n),this.source_.disconnect(),r.connect(this.workletNode_),this.audioTrack_.stop(),this.audioTrack_=t,this.source_=r,this.log_.info("RTCAIDenoiser: ".concat(this.localStream_.getUserId()," updateTrack success."));case 10:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"disable",value:(n=c(i().mark((function e(){var t;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.enableDenoise_=!1,null===(t=this.workletNode_)||void 0===t||t.port.postMessage({type:"disable"}),this.trackConstraint_.noiseSuppression=!0,e.next=5,this.audioTrack_.applyConstraints(this.trackConstraint_);case 5:return this.log_.info("RTCAIDenoiser: disable ai denoiser."),e.abrupt("return",this.enableDenoise_);case 7:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"enable",value:(t=c(i().mark((function e(){var t;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.enableDenoise_=!0,null===(t=this.workletNode_)||void 0===t||t.port.postMessage({type:"enable"}),this.trackConstraint_.noiseSuppression=!1,e.next=5,this.audioTrack_.applyConstraints(this.trackConstraint_);case 5:return this.log_.info("RTCAIDenoiser: enable ai denoiser."),e.abrupt("return",this.enableDenoise_);case 7:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"startDump",value:function(){return this.isDumping_?(this.log_.info("RTCAIDenoiser: data is currently being dumped."),!1):(this.workletNode_.port.postMessage({type:"startDump"}),this.dump_?this.dump_.reset():this.dump_=new VO(this.audioContext_),this.isDumping_=!0,this.log_.info("RTCAIDenoiser: start dump data."),!0)}},{key:"stopDump",value:function(){this.isDumping_&&(this.workletNode_.port.postMessage({type:"stopDump"}),this.isDumping_=!1,this.log_.info("RTCAIDenoiser: stop dump data."))}},{key:"getAudioTrack",value:function(){return this.audioTrack_}},{key:"getDenoiserTrack",value:function(){return this.denoiserTrack_}},{key:"enabled",get:function(){return this.enableDenoise_}},{key:"destroy",value:function(){var e,t,n,r,o,a,i;this.log_.info("RTCAIDenoiser: ".concat(this.localStream_.getUserId()," destroy processor.")),null===(e=this.localStream_)||void 0===e||e.stop(),null===(t=this.audioTrack_)||void 0===t||t.stop(),null===(n=this.workletNode_)||void 0===n||n.port.postMessage({type:"destroy"}),this.workletNode_.port.onmessage=null,null===(r=this.source_)||void 0===r||r.disconnect(),null===(o=this.destination_)||void 0===o||o.disconnect(),null===(a=this.workletNode_)||void 0===a||a.disconnect(),null===(i=this.dump_)||void 0===i||i.destroy(),this.emitter_.removeAllListeners()}},{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:"resetDenoiser",value:function(e){if(r.default){var t=r.default.DenoiserMap;null!=t&&t.has(e.getUserId())&&t.delete(e.getUserId())}}}]),e}();r.default&&(r.default.addDenoiserProcessor=function(e){var t=e.processor,n=e.userId;if(r.default.DenoiserMap)r.default.DenoiserMap.set(n,t);else{var o=new Map;o.set(n,t),r.default.DenoiserMap=o}});var FO=function(){function e(t){var n=t.assetsPath;l(this,e),this.audioContext_=Dh(),this.assetsPath_=n,this.isLoaded_=!1}var t,n,o;return d(e,[{key:"createProcessor",value:(o=c(i().mark((function e(t){var n,o,s,c,l,u,d,p,f;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.default?r.default.Logger.loggerManager.createLogger({id:t.userId,userId:t.userId,sdkAppId:t.sdkAppId}):{info:console.log},o=String(Date.now()).slice(0,-3),e.next=4,Rh(a(a({},t),{},{timestamp:o}));case 4:if(s=e.sent,c=s.auth,l=s.sign,u=s.status,d=s.message,c){e.next=12;break}throw n.info("RTCAIDenoiser: ".concat(t.userId," auth result: ").concat(c,". Message: ").concat(d)),new Error(d);case 12:return e.next=14,this.load();case 14:return e.next=16,this.initWorklet();case 16:return p=e.sent,f=new BO(a(a({},t),{},{audioContext:this.audioContext_,timestamp:o,sign:l,status:u,worklet:p,logger:n})),n.info("RTCAIDenoiser: ".concat(t.userId," create denoiser processor success.")),r.default&&r.default.addDenoiserProcessor({processor:f,userId:t.userId}),e.abrupt("return",f);case 21:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"load",value:(n=c(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isLoaded_){e.next=10;break}return e.prev=1,e.next=4,this.audioContext_.audioWorklet.addModule("".concat(this.assetsPath_,"/denoiser-wasm.js"));case 4:this.isLoaded_=!0,e.next=10;break;case 7:e.prev=7,e.t0=e.catch(1),console.error("Init assets from ".concat(this.assetsPath_," failed! Reason: ").concat(e.t0));case 10:case"end":return e.stop()}}),e,this,[[1,7]])}))),function(){return n.apply(this,arguments)})},{key:"initWorklet",value:(t=c(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.abrupt("return",new AudioWorkletNode(this.audioContext_,"trtc-denoiser-processor",{numberOfInputs:1,numberOfOutputs:1}));case 4:return e.prev=4,e.t0=e.catch(0),e.next=8,this.load();case 8:return e.abrupt("return",new AudioWorkletNode(this.audioContext_,"trtc-denoiser-processor",{numberOfInputs:1,numberOfOutputs:1}));case 9:case"end":return e.stop()}}),e,this,[[0,4]])}))),function(){return t.apply(this,arguments)})},{key:"destroy",value:function(){var e;null===(e=this.audioContext_)||void 0===e||e.close()}},{key:"isSupported",value:function(){return"AudioWorklet"in window&&"WebAssembly"in window}}]),e}();return FO}))}).call(this,n("c8ba"))},"598a":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],n=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"],r=e.defineLocale("dv",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(e){return"މފ"===e},meridiem:function(e,t,n){return e<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",ss:"d% ސިކުންތު",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:7,doy:12}});return r}))},"59ed":function(e,t,n){"use strict";var r=n("1626"),o=n("0d51"),a=TypeError;e.exports=function(e){if(r(e))return e;throw a(o(e)+" is not a function")}},"5a0c":function(e,t,n){!function(t,n){e.exports=n()}(0,(function(){"use strict";var e=1e3,t=6e4,n=36e5,r="millisecond",o="second",a="minute",i="hour",s="day",c="week",l="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("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},g=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},_={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,l),a=n-o<0,i=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-o)/(a?o-i:i-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:p,h:i,m:a,s:o,ms:r,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",b={};b[y]=v;var O=function(e){return e instanceof w},M=function e(t,n,r){var o;if(!t)return y;if("string"==typeof t){var a=t.toLowerCase();b[a]&&(o=a),n&&(b[a]=n,o=a);var i=t.split("-");if(!o&&i.length>1)return e(i[0])}else{var s=t.name;b[s]=t,o=s}return!r&&o&&(y=o),o||!r&&y},k=function(e,t){if(O(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new w(n)},C=_;C.l=M,C.i=O,C.w=function(e,t){return k(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var w=function(){function v(e){this.$L=M(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,a=(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,a)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}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=k(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return k(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<k(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,_="set"+(this.$u?"UTC":"");switch(u){case d:return r?f(1,0):f(31,11);case l:return r?f(1,v):f(0,v+1);case c:var y=this.$locale().weekStart||0,b=(m<y?m+7:m)-y;return f(r?g-b:g+(6-b),v);case s:case p:return h(_+"Hours",0);case i:return h(_+"Minutes",1);case a:return h(_+"Seconds",2);case o:return h(_+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var n,c=C.p(e),u="set"+(this.$u?"UTC":""),f=(n={},n[s]=u+"Date",n[p]=u+"Date",n[l]=u+"Month",n[d]=u+"FullYear",n[i]=u+"Hours",n[a]=u+"Minutes",n[o]=u+"Seconds",n[r]=u+"Milliseconds",n)[c],h=c===s?this.$D+(t-this.$W):t;if(c===l||c===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=k(f);return C.w(t.date(t.date()+Math.round(e*r)),f)};if(h===l)return this.set(l,this.$M+r);if(h===d)return this.set(d,this.$y+r);if(h===s)return m(1);if(h===c)return m(7);var v=(p={},p[a]=t,p[i]=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),a=this.$H,i=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,o,a){return e&&(e[n]||e(t,r))||o[n].slice(0,a)},p=function(e){return C.s(a%12||12,e,"0")},h=u||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(m,(function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return C.s(t.$y,4,"0");case"M":return s+1;case"MM":return C.s(s+1,2,"0");case"MMM":return d(n.monthsShort,s,l,3);case"MMMM":return d(l,s);case"D":return t.$D;case"DD":return C.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,c,2);case"ddd":return d(n.weekdaysShort,t.$W,c,3);case"dddd":return c[t.$W];case"H":return String(a);case"HH":return C.s(a,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return h(a,i,!0);case"A":return h(a,i,!1);case"m":return String(i);case"mm":return C.s(i,2,"0");case"s":return String(t.$s);case"ss":return C.s(t.$s,2,"0");case"SSS":return C.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(r,p,f){var h,m=this,v=C.p(p),g=k(r),_=(g.utcOffset()-this.utcOffset())*t,y=this-g,b=function(){return C.m(m,g)};switch(v){case d:h=b()/12;break;case l:h=b();break;case u:h=b()/3;break;case c:h=(y-_)/6048e5;break;case s:h=(y-_)/864e5;break;case i:h=y/n;break;case a:h=y/t;break;case o:h=y/e;break;default:h=y}return f?h:C.a(h)},g.daysInMonth=function(){return this.endOf(l).$D},g.$locale=function(){return b[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=M(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=w.prototype;return k.prototype=I,[["$ms",r],["$s",o],["$m",a],["$H",i],["$W",s],["$M",l],["$y",d],["$D",p]].forEach((function(e){I[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),k.extend=function(e,t){return e.$i||(e(t,w,k),e.$i=!0),k},k.locale=M,k.isDayjs=O,k.unix=function(e){return k(1e3*e)},k.en=b[y],k.Ls=b,k.p={},k}))},"5a89":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("d5eb");n("6806");const o=e=>["",...r["b"]].includes(e)},"5ab9":function(e,t,n){"use strict";n("e519");var r=n("764b");e.exports=r.Array.isArray},"5afb":function(e,t,n){"use strict";var r,o,a,i,s=n("3ac6"),c=n("a0b9"),l=n("6414"),u=n("fb2d"),d=n("0e6f"),p=n("06fa"),f=n("edbd"),h=n("eb541"),m=n("7a37"),v=n("f868"),g=n("0f59"),_=n("0149"),y=s.setImmediate,b=s.clearImmediate,O=s.process,M=s.Dispatch,k=s.Function,C=s.MessageChannel,w=s.String,I=0,S={},T="onreadystatechange";p((function(){r=s.location}));var E=function(e){if(d(S,e)){var t=S[e];delete S[e],t()}},j=function(e){return function(){E(e)}},D=function(e){E(e.data)},L=function(e){s.postMessage(w(e),r.protocol+"//"+r.host)};y&&b||(y=function(e){v(arguments.length,1);var t=u(e)?e:k(e),n=h(arguments,1);return S[++I]=function(){c(t,void 0,n)},o(I),I},b=function(e){delete S[e]},_?o=function(e){O.nextTick(j(e))}:M&&M.now?o=function(e){M.now(j(e))}:C&&!g?(a=new C,i=a.port2,a.port1.onmessage=D,o=l(i.postMessage,i)):s.addEventListener&&u(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!p(L)?(o=L,s.addEventListener("message",D,!1)):o=T in m("script")?function(e){f.appendChild(m("script"))[T]=function(){f.removeChild(this),E(e)}}:function(e){setTimeout(j(e),0)}),e.exports={set:y,clear:b}},"5aff":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'ünji",4:"'ünji",100:"'ünji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"},n=e.defineLocale("tk",{months:"Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr".split("_"),monthsShort:"Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek".split("_"),weekdays:"Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe".split("_"),weekdaysShort:"Ýek_Duş_Siş_Çar_Pen_Ann_Şen".split("_"),weekdaysMin:"Ýk_Dş_Sş_Çr_Pn_An_Şn".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[düýn] LT",lastWeek:"[geçen] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s soň",past:"%s öň",s:"birnäçe sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir gün",dd:"%d gün",M:"bir aý",MM:"%d aý",y:"bir ýyl",yy:"%d ýyl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'unjy";var r=e%10,o=e%100-r,a=e>=100?100:null;return e+(t[r]||t[o]||t[a])}},week:{dow:1,doy:7}});return n}))},"5b14":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function n(e,t,n,r){var o=e;switch(n){case"s":return r||t?"néhány másodperc":"néhány másodperce";case"ss":return o+(r||t)?" másodperc":" másodperce";case"m":return"egy"+(r||t?" perc":" perce");case"mm":return o+(r||t?" perc":" perce");case"h":return"egy"+(r||t?" óra":" órája");case"hh":return o+(r||t?" óra":" órája");case"d":return"egy"+(r||t?" nap":" napja");case"dd":return o+(r||t?" nap":" napja");case"M":return"egy"+(r||t?" hónap":" hónapja");case"MM":return o+(r||t?" hónap":" hónapja");case"y":return"egy"+(r||t?" év":" éve");case"yy":return o+(r||t?" év":" éve")}return""}function r(e){return(e?"":"[múlt] ")+"["+t[this.day()]+"] LT[-kor]"}var o=e.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan._feb._márc._ápr._máj._jún._júl._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,n){return e<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return r.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return r.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return o}))},"5b1a":function(e,t,n){e.exports=n("0d26")},"5b57":function(e,t,n){"use strict";var r=n("6414"),o=n("7106"),a=n("6f8d"),i=n("1301"),s=n("2616"),c=n("c74f"),l=n("437b"),u=n("d9f3"),d=n("0b7b"),p=n("8a3b"),f=TypeError,h=function(e,t){this.stopped=e,this.result=t},m=h.prototype;e.exports=function(e,t,n){var v,g,_,y,b,O,M,k=n&&n.that,C=!(!n||!n.AS_ENTRIES),w=!(!n||!n.IS_RECORD),I=!(!n||!n.IS_ITERATOR),S=!(!n||!n.INTERRUPTED),T=r(t,k),E=function(e){return v&&p(v,"normal",e),new h(!0,e)},j=function(e){return C?(a(e),S?T(e[0],e[1],E):T(e[0],e[1])):S?T(e,E):T(e)};if(w)v=e.iterator;else if(I)v=e;else{if(g=d(e),!g)throw f(i(e)+" is not iterable");if(s(g)){for(_=0,y=c(e);y>_;_++)if(b=j(e[_]),b&&l(m,b))return b;return new h(!1)}v=u(e,g)}O=w?e.next:v.next;while(!(M=o(O,v)).done){try{b=j(M.value)}catch(D){p(v,"throw",D)}if("object"==typeof b&&b&&l(m,b))return b}return new h(!1)}},"5c3a":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:function(e){return e.week()!==this.week()?"[下]dddLT":"[本]dddLT"},lastDay:"[昨天]LT",lastWeek:function(e){return this.week()!==e.week()?"[上]dddLT":"[本]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s后",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",w:"1 周",ww:"%d 周",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}});return t}))},"5c4c":function(e,t,n){"use strict";var r=n("a0cd");e.exports=r},"5c68":function(e,t,n){"use strict";var r=n("e392");e.exports=r},"5c6c":function(e,t,n){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"5cbb":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",ss:"%d సెకన్లు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(e,t){return 12===e&&(e=0),"రాత్రి"===t?e<4?e:e+12:"ఉదయం"===t?e:"మధ్యాహ్నం"===t?e>=10?e:e+12:"సాయంత్రం"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"రాత్రి":e<10?"ఉదయం":e<17?"మధ్యాహ్నం":e<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}});return t}))},"5cce":function(e,t){e.exports={version:"0.26.1"}},"5ce5":function(e,t,n){"use strict";var r=n("a5eb"),o=n("9883"),a=n("06fa"),i=n("f868"),s=n("8c12"),c=n("36b8"),l=o("URL"),u=c&&a((function(){l.canParse()}));r({target:"URL",stat:!0,forced:!u},{canParse:function(e){var t=i(arguments.length,1),n=s(e),r=t<2||void 0===arguments[1]?void 0:s(arguments[1]);try{return!!new l(n,r)}catch(o){return!1}}})},"5d55":function(e,t,n){"use strict";n("5145");var r=n("8f95"),o=n("0e6f"),a=n("437b"),i=n("30ef"),s=Array.prototype,c={DOMTokenList:!0,NodeList:!0};e.exports=function(e){var t=e.keys;return e===s||a(s,e)&&t===s.keys||o(c,r(e))?i:t}},"5e0f":function(e,t,n){!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)},a=function(e,t,n,r,a){var i=e.name?e:e.$locale(),s=o(i[t]),c=o(i[n]),l=s||c.map((function(e){return e.slice(0,r)}));if(!a)return l;var u=i.weekStart;return l.map((function(e,t){return l[(t+(u||0))%7]}))},i=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()])},c=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):a(e,"months")},monthsShort:function(t){return t?t.format("MMM"):a(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):a(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):a(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):a(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return s(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return c.bind(this)()},n.localeData=function(){var e=i();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 a(i(),"months")},n.monthsShort=function(){return a(i(),"monthsShort","months",3)},n.weekdays=function(e){return a(i(),"weekdays",null,null,e)},n.weekdaysShort=function(e){return a(i(),"weekdaysShort","weekdays",3,e)},n.weekdaysMin=function(e){return a(i(),"weekdaysMin","weekdays",2,e)}}}))},"5e76":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="top",o="bottom",a="right",i="left",s="auto",c=[r,o,a,i],l="start",u="end",d="clippingParents",p="viewport",f="popper",h="reference",m=c.reduce((function(e,t){return e.concat([t+"-"+l,t+"-"+u])}),[]),v=[].concat(c,[s]).reduce((function(e,t){return e.concat([t,t+"-"+l,t+"-"+u])}),[]),g="beforeRead",_="read",y="afterRead",b="beforeMain",O="main",M="afterMain",k="beforeWrite",C="write",w="afterWrite",I=[g,_,y,b,O,M,k,C,w];function S(e){return e?(e.nodeName||"").toLowerCase():null}function T(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function E(e){var t=T(e).Element;return e instanceof t||e instanceof Element}function j(e){var t=T(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function D(e){if("undefined"==typeof ShadowRoot)return!1;var t=T(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function L(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];!j(o)||!S(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 A(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]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]),i=a.reduce((function(e,t){return e[t]="",e}),{});!j(r)||!S(r)||(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}}var N={name:"applyStyles",enabled:!0,phase:"write",fn:L,effect:A,requires:["computeStyles"]};function x(e){return e.split("-")[0]}var R=Math.max,P=Math.min,U=Math.round;function V(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(j(e)&&t){var a=e.offsetHeight,i=e.offsetWidth;i>0&&(r=U(n.width)/i||1),a>0&&(o=U(n.height)/a||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 B(e){var t=V(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 F(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&D(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function G(e){return T(e).getComputedStyle(e)}function z(e){return["table","td","th"].indexOf(S(e))>=0}function H(e){return((E(e)?e.ownerDocument:e.document)||window.document).documentElement}function Y(e){return"html"===S(e)?e:e.assignedSlot||e.parentNode||(D(e)?e.host:null)||H(e)}function q(e){return j(e)&&"fixed"!==G(e).position?e.offsetParent:null}function W(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox"),n=-1!==navigator.userAgent.indexOf("Trident");if(n&&j(e)){var r=G(e);if("fixed"===r.position)return null}var o=Y(e);for(D(o)&&(o=o.host);j(o)&&["html","body"].indexOf(S(o))<0;){var a=G(o);if("none"!==a.transform||"none"!==a.perspective||"paint"===a.contain||-1!==["transform","perspective"].indexOf(a.willChange)||t&&"filter"===a.willChange||t&&a.filter&&"none"!==a.filter)return o;o=o.parentNode}return null}function K(e){for(var t=T(e),n=q(e);n&&z(n)&&"static"===G(n).position;)n=q(n);return n&&("html"===S(n)||"body"===S(n)&&"static"===G(n).position)?t:n||W(e)||t}function $(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function J(e,t,n){return R(e,P(t,n))}function Q(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 Z(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,Z("number"!=typeof e?e:ee(e,c))};function ne(e){var t,n=e.state,s=e.name,c=e.options,l=n.elements.arrow,u=n.modifiersData.popperOffsets,d=x(n.placement),p=$(d),f=[i,a].indexOf(d)>=0,h=f?"height":"width";if(l&&u){var m=te(c.padding,n),v=B(l),g="y"===p?r:i,_="y"===p?o:a,y=n.rects.reference[h]+n.rects.reference[p]-u[p]-n.rects.popper[h],b=u[p]-n.rects.reference[p],O=K(l),M=O?"y"===p?O.clientHeight||0:O.clientWidth||0:0,k=y/2-b/2,C=m[g],w=M-v[h]-m[_],I=M/2-v[h]/2+k,S=J(C,I,w),T=p;n.modifiersData[s]=(t={},t[T]=S,t.centerOffset=S-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)||!F(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 ae(e){return e.split("-")[1]}var ie={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 ce(e){var t,n=e.popper,s=e.popperRect,c=e.placement,l=e.variation,d=e.offsets,p=e.position,f=e.gpuAcceleration,h=e.adaptive,m=e.roundOffsets,v=e.isFixed,g=d.x,_=void 0===g?0:g,y=d.y,b=void 0===y?0:y,O="function"==typeof m?m({x:_,y:b}):{x:_,y:b};_=O.x,b=O.y;var M=d.hasOwnProperty("x"),k=d.hasOwnProperty("y"),C=i,w=r,I=window;if(h){var S=K(n),E="clientHeight",j="clientWidth";if(S===T(n)&&(S=H(n),"static"!==G(S).position&&"absolute"===p&&(E="scrollHeight",j="scrollWidth")),S=S,c===r||(c===i||c===a)&&l===u){w=o;var D=v&&S===I&&I.visualViewport?I.visualViewport.height:S[E];b-=D-s.height,b*=f?1:-1}if(c===i||(c===r||c===o)&&l===u){C=a;var L=v&&S===I&&I.visualViewport?I.visualViewport.width:S[j];_-=L-s.width,_*=f?1:-1}}var A,N=Object.assign({position:p},h&&ie),x=!0===m?se({x:_,y:b}):{x:_,y:b};return _=x.x,b=x.y,f?Object.assign({},N,(A={},A[w]=k?"0":"",A[C]=M?"0":"",A.transform=(I.devicePixelRatio||1)<=1?"translate("+_+"px, "+b+"px)":"translate3d("+_+"px, "+b+"px, 0)",A)):Object.assign({},N,(t={},t[w]=k?b+"px":"",t[C]=M?_+"px":"",t.transform="",t))}function le(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,a=n.adaptive,i=void 0===a||a,s=n.roundOffsets,c=void 0===s||s,l={placement:x(t.placement),variation:ae(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,ce(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ce(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var ue={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:le,data:{}},de={passive:!0};function pe(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=void 0===o||o,i=r.resize,s=void 0===i||i,c=T(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach((function(e){e.addEventListener("scroll",n.update,de)})),s&&c.addEventListener("resize",n.update,de),function(){a&&l.forEach((function(e){e.removeEventListener("scroll",n.update,de)})),s&&c.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 _e(e){var t=T(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function ye(e){return V(H(e)).left+_e(e).scrollLeft}function be(e){var t=T(e),n=H(e),r=t.visualViewport,o=n.clientWidth,a=n.clientHeight,i=0,s=0;return r&&(o=r.width,a=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(i=r.offsetLeft,s=r.offsetTop)),{width:o,height:a,x:i+ye(e),y:s}}function Oe(e){var t,n=H(e),r=_e(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=R(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=R(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+ye(e),c=-r.scrollTop;return"rtl"===G(o||n).direction&&(s+=R(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:s,y:c}}function Me(e){var t=G(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function ke(e){return["html","body","#document"].indexOf(S(e))>=0?e.ownerDocument.body:j(e)&&Me(e)?e:ke(Y(e))}function Ce(e,t){var n;void 0===t&&(t=[]);var r=ke(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=T(r),i=o?[a].concat(a.visualViewport||[],Me(r)?r:[]):r,s=t.concat(i);return o?s:s.concat(Ce(Y(i)))}function we(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=V(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 Se(e,t){return t===p?we(be(e)):E(t)?Ie(t):we(Oe(H(e)))}function Te(e){var t=Ce(Y(e)),n=["absolute","fixed"].indexOf(G(e).position)>=0,r=n&&j(e)?K(e):e;return E(r)?t.filter((function(e){return E(e)&&F(e,r)&&"body"!==S(e)})):[]}function Ee(e,t,n){var r="clippingParents"===t?Te(e):[].concat(t),o=[].concat(r,[n]),a=o[0],i=o.reduce((function(t,n){var r=Se(e,n);return t.top=R(r.top,t.top),t.right=P(r.right,t.right),t.bottom=P(r.bottom,t.bottom),t.left=R(r.left,t.left),t}),Se(e,a));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function je(e){var t,n=e.reference,s=e.element,c=e.placement,d=c?x(c):null,p=c?ae(c):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 a:t={x:n.x+n.width,y:h};break;case i:t={x:n.x-s.width,y:h};break;default:t={x:n.x,y:n.y}}var m=d?$(d):null;if(null!=m){var v="y"===m?"height":"width";switch(p){case l: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 De(e,t){void 0===t&&(t={});var n=t,i=n.placement,s=void 0===i?e.placement:i,l=n.boundary,u=void 0===l?d:l,m=n.rootBoundary,v=void 0===m?p:m,g=n.elementContext,_=void 0===g?f:g,y=n.altBoundary,b=void 0!==y&&y,O=n.padding,M=void 0===O?0:O,k=Z("number"!=typeof M?M:ee(M,c)),C=_===f?h:f,w=e.rects.popper,I=e.elements[b?C:_],S=Ee(E(I)?I:I.contextElement||H(e.elements.popper),u,v),T=V(e.elements.reference),j=je({reference:T,element:w,strategy:"absolute",placement:s}),D=we(Object.assign({},w,j)),L=_===f?D:T,A={top:S.top-L.top+k.top,bottom:L.bottom-S.bottom+k.bottom,left:S.left-L.left+k.left,right:L.right-S.right+k.right},N=e.modifiersData.offset;if(_===f&&N){var x=N[s];Object.keys(A).forEach((function(e){var t=[a,o].indexOf(e)>=0?1:-1,n=[r,o].indexOf(e)>=0?"y":"x";A[e]+=x[n]*t}))}return A}function Le(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,i=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=void 0===l?v:l,d=ae(r),p=d?s?m:m.filter((function(e){return ae(e)===d})):c,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]=De(e,{placement:n,boundary:o,rootBoundary:a,padding:i})[x(n)],t}),{});return Object.keys(h).sort((function(e,t){return h[e]-h[t]}))}function Ae(e){if(x(e)===s)return[];var t=me(e);return[ge(e),t,ge(t)]}function Ne(e){var t=e.state,n=e.options,c=e.name;if(!t.modifiersData[c]._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,_=n.altBoundary,y=n.flipVariations,b=void 0===y||y,O=n.allowedAutoPlacements,M=t.options.placement,k=x(M),C=k===M,w=h||(C||!b?[me(M)]:Ae(M)),I=[M].concat(w).reduce((function(e,n){return e.concat(x(n)===s?Le(t,{placement:n,boundary:v,rootBoundary:g,padding:m,flipVariations:b,allowedAutoPlacements:O}):n)}),[]),S=t.rects.reference,T=t.rects.popper,E=new Map,j=!0,D=I[0],L=0;L<I.length;L++){var A=I[L],N=x(A),R=ae(A)===l,P=[r,o].indexOf(N)>=0,U=P?"width":"height",V=De(t,{placement:A,boundary:v,rootBoundary:g,altBoundary:_,padding:m}),B=P?R?a:i:R?o:r;S[U]>T[U]&&(B=me(B));var F=me(B),G=[];if(d&&G.push(V[N]<=0),f&&G.push(V[B]<=0,V[F]<=0),G.every((function(e){return e}))){D=A,j=!1;break}E.set(A,G)}if(j)for(var z=b?3:1,H=function(e){var t=I.find((function(t){var n=E.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return D=t,"break"},Y=z;Y>0;Y--){var q=H(Y);if("break"===q)break}t.placement!==D&&(t.modifiersData[c]._skip=!0,t.placement=D,t.reset=!0)}}var xe={name:"flip",enabled:!0,phase:"main",fn:Ne,requiresIfExists:["offset"],data:{_skip:!1}};function Re(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 Pe(e){return[r,a,o,i].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,a=t.modifiersData.preventOverflow,i=De(t,{elementContext:"reference"}),s=De(t,{altBoundary:!0}),c=Re(i,r),l=Re(s,o,a),u=Pe(c),d=Pe(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}var Ve={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Ue};function Be(e,t,n){var o=x(e),s=[i,r].indexOf(o)>=0?-1:1,c="function"==typeof n?n(Object.assign({},t,{placement:e})):n,l=c[0],u=c[1];return l=l||0,u=(u||0)*s,[i,a].indexOf(o)>=0?{x:u,y:l}:{x:l,y:u}}function Fe(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=void 0===o?[0,0]:o,i=v.reduce((function(e,n){return e[n]=Be(n,t.rects,a),e}),{}),s=i[t.placement],c=s.x,l=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=i}var Ge={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Fe};function ze(e){var t=e.state,n=e.name;t.modifiersData[n]=je({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var He={name:"popperOffsets",enabled:!0,phase:"read",fn:ze,data:{}};function Ye(e){return"x"===e?"y":"x"}function qe(e){var t=e.state,n=e.options,s=e.name,c=n.mainAxis,u=void 0===c||c,d=n.altAxis,p=void 0!==d&&d,f=n.boundary,h=n.rootBoundary,m=n.altBoundary,v=n.padding,g=n.tether,_=void 0===g||g,y=n.tetherOffset,b=void 0===y?0:y,O=De(t,{boundary:f,rootBoundary:h,padding:v,altBoundary:m}),M=x(t.placement),k=ae(t.placement),C=!k,w=$(M),I=Ye(w),S=t.modifiersData.popperOffsets,T=t.rects.reference,E=t.rects.popper,j="function"==typeof b?b(Object.assign({},t.rects,{placement:t.placement})):b,D="number"==typeof j?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(S){if(u){var N,U="y"===w?r:i,V="y"===w?o:a,F="y"===w?"height":"width",G=S[w],z=G+O[U],H=G-O[V],Y=_?-E[F]/2:0,q=k===l?T[F]:E[F],W=k===l?-E[F]:-T[F],Z=t.elements.arrow,ee=_&&Z?B(Z):{width:0,height:0},te=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:X(),ne=te[U],re=te[V],oe=J(0,T[F],ee[F]),ie=C?T[F]/2-Y-oe-ne-D.mainAxis:q-oe-ne-D.mainAxis,se=C?-T[F]/2+Y+oe+re+D.mainAxis:W+oe+re+D.mainAxis,ce=t.elements.arrow&&K(t.elements.arrow),le=ce?"y"===w?ce.clientTop||0:ce.clientLeft||0:0,ue=null!=(N=null==L?void 0:L[w])?N:0,de=G+ie-ue-le,pe=G+se-ue,fe=J(_?P(z,de):z,G,_?R(H,pe):H);S[w]=fe,A[w]=fe-G}if(p){var he,me="x"===w?r:i,ve="x"===w?o:a,ge=S[I],_e="y"===I?"height":"width",ye=ge+O[me],be=ge-O[ve],Oe=-1!==[r,i].indexOf(M),Me=null!=(he=null==L?void 0:L[I])?he:0,ke=Oe?ye:ge-T[_e]-E[_e]-Me+D.altAxis,Ce=Oe?ge+T[_e]+E[_e]-Me-D.altAxis:be,we=_&&Oe?Q(ke,ge,Ce):J(_?ke:ye,ge,_?Ce:be);S[I]=we,A[I]=we-ge}t.modifiersData[s]=A}}var We={name:"preventOverflow",enabled:!0,phase:"main",fn:qe,requiresIfExists:["offset"]};function Ke(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function $e(e){return e!==T(e)&&j(e)?Ke(e):_e(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 Qe(e,t,n){void 0===n&&(n=!1);var r=j(t),o=j(t)&&Je(t),a=H(t),i=V(e,o),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&(("body"!==S(t)||Me(a))&&(s=$e(t)),j(t)?(c=V(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=ye(a))),{x:i.left+s.scrollLeft-c.x,y:i.top+s.scrollTop-c.y,width:i.width,height:i.height}}function Xe(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name);var a=[].concat(e.requires||[],e.requiresIfExists||[]);a.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 Ze(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,a=void 0===o?nt:o;return function(e,t,n){void 0===n&&(n=a);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},nt,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},i=[],s=!1,c={state:o,setOptions:function(n){var i="function"==typeof n?n(o.options):n;u(),o.options=Object.assign({},a,o.options,i),o.scrollParents={reference:E(e)?Ce(e):e.contextElement?Ce(e.contextElement):[],popper:Ce(t)};var s=Ze(tt([].concat(r,o.options.modifiers)));return o.orderedModifiers=s.filter((function(e){return e.enabled})),l(),c.update()},forceUpdate:function(){if(!s){var e=o.elements,t=e.reference,n=e.popper;if(rt(t,n)){o.rects={reference:Qe(t,K(n),"fixed"===o.options.strategy),popper:B(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 a=o.orderedModifiers[r],i=a.fn,l=a.options,u=void 0===l?{}:l,d=a.name;"function"==typeof i&&(o=i({state:o,options:u,name:d,instance:c})||o)}else o.reset=!1,r=-1}}},update:et((function(){return new Promise((function(e){c.forceUpdate(),e(o)}))})),destroy:function(){u(),s=!0}};if(!rt(e,t))return c;function l(){o.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,a=e.effect;if("function"==typeof a){var s=a({state:o,name:t,instance:c,options:r}),l=function(){};i.push(s||l)}}))}function u(){i.forEach((function(e){return e()})),i=[]}return c.setOptions(n).then((function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)})),c}}var at=ot(),it=[fe,He,ue,N],st=ot({defaultModifiers:it}),ct=[fe,He,ue,N,Ge,xe,We,oe,Ve],lt=ot({defaultModifiers:ct});t.afterMain=M,t.afterRead=y,t.afterWrite=w,t.applyStyles=N,t.arrow=oe,t.auto=s,t.basePlacements=c,t.beforeMain=b,t.beforeRead=g,t.beforeWrite=k,t.bottom=o,t.clippingParents=d,t.computeStyles=ue,t.createPopper=lt,t.createPopperBase=at,t.createPopperLite=st,t.detectOverflow=De,t.end=u,t.eventListeners=fe,t.flip=xe,t.hide=Ve,t.left=i,t.main=O,t.modifierPhases=I,t.offset=Ge,t.placements=v,t.popper=f,t.popperGenerator=ot,t.popperOffsets=He,t.preventOverflow=We,t.read=_,t.reference=h,t.right=a,t.start=l,t.top=r,t.variationPlacements=m,t.viewport=p,t.write=C},"5e77":function(e,t,n){"use strict";var r=n("83ab"),o=n("1a2d"),a=Function.prototype,i=r&&Object.getOwnPropertyDescriptor,s=o(a,"name"),c=s&&"something"===function(){}.name,l=s&&(!r||r&&i(a,"name").configurable);e.exports={EXISTS:s,PROPER:c,CONFIGURABLE:l}},"5f02":function(e,t,n){"use strict";var r=n("c532");e.exports=function(e){return r.isObject(e)&&!0===e.isAxiosError}},"5f7d":function(e,t,n){"use strict";var r=n("437b"),o=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw o("Incorrect invocation")}},"5f9e":function(e,t,n){"use strict";var r=n("437b"),o=n("4202"),a=Array.prototype;e.exports=function(e){var t=e.filter;return e===a||r(a,e)&&t===a.filter?o:t}},"5fbd":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?":e":1===t||2===t?":a":":e";return e+n},week:{dow:1,doy:4}});return t}))},"600a":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("1ad4"),o=n("7c31"),a=n("eb54");const i=r["b"].create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new o["c"]({key:new o["d"]("placeholder"),props:{decorations:({doc:e,selection:t})=>{const n=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:r}=t,o=[];if(!n)return null;const i=e.type.createAndFill(),s=(null===i||void 0===i?void 0:i.sameMarkup(e))&&null===i.content.findDiffStart(e.content);return e.descendants((e,t)=>{const n=r>=t&&r<=t+e.nodeSize,i=!e.isLeaf&&!e.childCount;if((n||!this.options.showOnlyCurrent)&&i){const r=[this.options.emptyNodeClass];s&&r.push(this.options.emptyEditorClass);const i=a["a"].node(t,t+e.nodeSize,{class:r.join(" "),"data-placeholder":"function"===typeof this.options.placeholder?this.options.placeholder({editor:this.editor,node:e,pos:t,hasAnchor:n}):this.options.placeholder});o.push(i)}return this.options.includeChildren}),a["b"].create(e,o)}}})]}})},"606e":function(e,t,n){"use strict";var r=n("5f9e");e.exports=r},6117:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdays:"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),weekdaysShort:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),weekdaysMin:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-يىلىM-ئاينىڭD-كۈنى",LLL:"YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm",LLLL:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},meridiemParse:/يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,meridiemHour:function(e,t){return 12===e&&(e=0),"يېرىم كېچە"===t||"سەھەر"===t||"چۈشتىن بۇرۇن"===t?e:"چۈشتىن كېيىن"===t||"كەچ"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var r=100*e+t;return r<600?"يېرىم كېچە":r<900?"سەھەر":r<1130?"چۈشتىن بۇرۇن":r<1230?"چۈش":r<1800?"چۈشتىن كېيىن":"كەچ"},calendar:{sameDay:"[بۈگۈن سائەت] LT",nextDay:"[ئەتە سائەت] LT",nextWeek:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"-كۈنى";case"w":case"W":return e+"-ھەپتە";default:return e}},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:7}});return t}))},6140:function(e,t,n){"use strict";var r=n("a5eb"),o=n("1967");r({target:"Number",stat:!0,forced:Number.parseInt!=o},{parseInt:o})},6220:function(e,t,n){"use strict";var r=n("fc48");e.exports=Array.isArray||function(e){return"Array"==r(e)}},"62a4":function(e,t,n){"use strict";n("845a");var r=n("a169");e.exports=r("Array").sort},"62d0":function(e,t,n){"use strict";var r=n("8c68");e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},"62e4":function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},6326:function(e,t,n){"use strict";n("f8b4");var r=n("764b");e.exports=r.Reflect.construct},6374:function(e,t,n){"use strict";var r=n("da84"),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}},6386:function(e,t,n){"use strict";var r=n("a421"),o=n("4508"),a=n("c74f"),i=function(e){return function(t,n,i){var s,c=r(t),l=a(c),u=o(i,l);if(e&&n!=n){while(l>u)if(s=c[u++],s!=s)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:i(!0),indexOf:i(!1)}},"638c":function(e,t,n){"use strict";var r=n("ce18"),o=n("06fa"),a=n("fc48"),i=Object,s=r("".split);e.exports=o((function(){return!i("z").propertyIsEnumerable(0)}))?function(e){return"String"==a(e)?s(e,""):i(e)}:i},6403:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}});return t}))},6414:function(e,t,n){"use strict";var r=n("13cf"),o=n("4e19"),a=n("a180"),i=r(r.bind);e.exports=function(e,t){return o(e),void 0===t?e:a?i(e,t):function(){return e.apply(t,arguments)}}},"64db":function(e,t){},6594:function(e,t,n){"use strict";var r=n("a5eb"),o=n("ce18"),a=n("6e9a"),i=n("dfdb"),s=n("0e6f"),c=n("4180").f,l=n("0cf0"),u=n("8e11"),d=n("1317"),p=n("3e80"),f=n("42e6"),h=!1,m=p("meta"),v=0,g=function(e){c(e,m,{value:{objectID:"O"+v++,weakData:{}}})},_=function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,m)){if(!d(e))return"F";if(!t)return"E";g(e)}return e[m].objectID},y=function(e,t){if(!s(e,m)){if(!d(e))return!0;if(!t)return!1;g(e)}return e[m].weakData},b=function(e){return f&&h&&d(e)&&!s(e,m)&&g(e),e},O=function(){M.enable=function(){},h=!0;var e=l.f,t=o([].splice),n={};n[m]=1,e(n).length&&(l.f=function(n){for(var r=e(n),o=0,a=r.length;o<a;o++)if(r[o]===m){t(r,o,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:u.f}))},M=e.exports={enable:O,fastKey:_,getWeakData:y,onFreeze:b};a[m]=!0},"65b8":function(e,t,n){e.exports=n("27ac")},"65db":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,n){return e>11?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}});return t}))},6605:function(e,t,n){"use strict";n.d(t,"a",(function(){return tt})),n.d(t,"b",(function(){return V}));var r=n("7a23");n("3f4e");
|
||
/*!
|
||
* vue-router v4.2.4
|
||
* (c) 2023 Eduardo San Martin Morote
|
||
* @license MIT
|
||
*/
|
||
const o="undefined"!==typeof window;function a(e){return e.__esModule||"Module"===e[Symbol.toStringTag]}const i=Object.assign;function s(e,t){const n={};for(const r in t){const o=t[r];n[r]=l(o)?o.map(e):e(o)}return n}const c=()=>{},l=Array.isArray;const u=/\/$/,d=e=>e.replace(u,"");function p(e,t,n="/"){let r,o={},a="",i="";const s=t.indexOf("#");let c=t.indexOf("?");return s<c&&s>=0&&(c=-1),c>-1&&(r=t.slice(0,c),a=t.slice(c+1,s>-1?s:t.length),o=e(a)),s>-1&&(r=r||t.slice(0,s),i=t.slice(s,t.length)),r=b(null!=r?r:t,n),{fullPath:r+(a&&"?")+a+i,path:r,query:o,hash:i}}function f(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function h(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function m(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&v(t.matched[r],n.matched[o])&&g(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function v(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function g(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!_(e[n],t[n]))return!1;return!0}function _(e,t){return l(e)?y(e,t):l(t)?y(t,e):e===t}function y(e,t){return l(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):1===e.length&&e[0]===t}function b(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];".."!==o&&"."!==o||r.push("");let a,i,s=n.length-1;for(a=0;a<r.length;a++)if(i=r[a],"."!==i){if(".."!==i)break;s>1&&s--}return n.slice(0,s).join("/")+"/"+r.slice(a-(a===r.length?1:0)).join("/")}var O,M;(function(e){e["pop"]="pop",e["push"]="push"})(O||(O={})),function(e){e["back"]="back",e["forward"]="forward",e["unknown"]=""}(M||(M={}));function k(e){if(!e)if(o){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),d(e)}const C=/^[^#]+#/;function w(e,t){return e.replace(C,"#")+t}function I(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 S=()=>({left:window.pageXOffset,top:window.pageYOffset});function T(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=I(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 E(e,t){const n=history.state?history.state.position-t:-1;return n+e}const j=new Map;function D(e,t){j.set(e,t)}function L(e){const t=j.get(e);return j.delete(e),t}let A=()=>location.protocol+"//"+location.host;function N(e,t){const{pathname:n,search:r,hash:o}=t,a=e.indexOf("#");if(a>-1){let t=o.includes(e.slice(a))?e.slice(a).length:1,n=o.slice(t);return"/"!==n[0]&&(n="/"+n),h(n,"")}const i=h(n,e);return i+r+o}function x(e,t,n,r){let o=[],a=[],s=null;const c=({state:a})=>{const i=N(e,location),c=n.value,l=t.value;let u=0;if(a){if(n.value=i,t.value=a,s&&s===c)return void(s=null);u=l?a.position-l.position:0}else r(i);o.forEach(e=>{e(n.value,c,{delta:u,type:O.pop,direction:u?u>0?M.forward:M.back:M.unknown})})};function l(){s=n.value}function u(e){o.push(e);const t=()=>{const t=o.indexOf(e);t>-1&&o.splice(t,1)};return a.push(t),t}function d(){const{history:e}=window;e.state&&e.replaceState(i({},e.state,{scroll:S()}),"")}function p(){for(const e of a)e();a=[],window.removeEventListener("popstate",c),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",c),window.addEventListener("beforeunload",d,{passive:!0}),{pauseListeners:l,listen:u,destroy:p}}function R(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?S():null}}function P(e){const{history:t,location:n}=window,r={value:N(e,n)},o={value:t.state};function a(r,a,i){const s=e.indexOf("#"),c=s>-1?(n.host&&document.querySelector("base")?e:e.slice(s))+r:A()+e+r;try{t[i?"replaceState":"pushState"](a,"",c),o.value=a}catch(l){console.error(l),n[i?"replace":"assign"](c)}}function s(e,n){const s=i({},t.state,R(o.value.back,e,o.value.forward,!0),n,{position:o.value.position});a(e,s,!0),r.value=e}function c(e,n){const s=i({},o.value,t.state,{forward:e,scroll:S()});a(s.current,s,!0);const c=i({},R(r.value,e,null),{position:s.position+1},n);a(e,c,!1),r.value=e}return o.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:r,state:o,push:c,replace:s}}function U(e){e=k(e);const t=P(e),n=x(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}const o=i({location:"",base:e,go:r,createHref:w.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 V(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),U(e)}function B(e){return"string"===typeof e||e&&"object"===typeof e}function F(e){return"string"===typeof e||"symbol"===typeof e}const G={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},z=Symbol("");var H;(function(e){e[e["aborted"]=4]="aborted",e[e["cancelled"]=8]="cancelled",e[e["duplicated"]=16]="duplicated"})(H||(H={}));function Y(e,t){return i(new Error,{type:e,[z]:!0},t)}function q(e,t){return e instanceof Error&&z in e&&(null==t||!!(e.type&t))}const W="[^/]+?",K={sensitive:!1,strict:!1,start:!0,end:!0},$=/[.+*?^${}()[\]/\\]/g;function J(e,t){const n=i({},K,t),r=[];let o=n.start?"^":"";const a=[];for(const i of e){const e=i.length?[]:[90];n.strict&&!i.length&&(o+="/");for(let t=0;t<i.length;t++){const r=i[t];let s=40+(n.sensitive?.25:0);if(0===r.type)t||(o+="/"),o+=r.value.replace($,"\\$&"),s+=40;else if(1===r.type){const{value:e,repeatable:n,optional:c,regexp:l}=r;a.push({name:e,repeatable:n,optional:c});const u=l||W;if(u!==W){s+=10;try{new RegExp(`(${u})`)}catch(d){throw new Error(`Invalid custom RegExp for param "${e}" (${u}): `+d.message)}}let p=n?`((?:${u})(?:/(?:${u}))*)`:`(${u})`;t||(p=c&&i.length<2?`(?:/${p})`:"/"+p),c&&(p+="?"),o+=p,s+=20,c&&(s+=-8),n&&(s+=-20),".*"===u&&(s+=-50)}e.push(s)}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 s=new RegExp(o,n.sensitive?"":"i");function c(e){const t=e.match(s),n={};if(!t)return null;for(let r=1;r<t.length;r++){const e=t[r]||"",o=a[r-1];n[o.name]=e&&o.repeatable?e.split("/"):e}return n}function u(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:a,repeatable:i,optional:s}=e,c=a in t?t[a]:"";if(l(c)&&!i)throw new Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);const u=l(c)?c.join("/"):c;if(!u){if(!s)throw new Error(`Missing required param "${a}"`);o.length<2&&(n.endsWith("/")?n=n.slice(0,-1):r=!0)}n+=u}}return n||"/"}return{re:s,score:r,keys:a,parse:c,stringify:u}}function Q(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 X(e,t){let n=0;const r=e.score,o=t.score;while(n<r.length&&n<o.length){const e=Q(r[n],o[n]);if(e)return e;n++}if(1===Math.abs(o.length-r.length)){if(Z(r))return 1;if(Z(o))return-1}return o.length-r.length}function Z(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const ee={type:0,value:""},te=/[a-zA-Z0-9_]/;function ne(e){if(!e)return[[]];if("/"===e)return[[ee]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(e){throw new Error(`ERR (${n})/"${l}": ${e}`)}let n=0,r=n;const o=[];let a;function i(){a&&o.push(a),a=[]}let s,c=0,l="",u="";function d(){l&&(0===n?a.push({type:0,value:l}):1===n||2===n||3===n?(a.length>1&&("*"===s||"+"===s)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:l,regexp:u,repeatable:"*"===s||"+"===s,optional:"*"===s||"?"===s})):t("Invalid state to consume buffer"),l="")}function p(){l+=s}while(c<e.length)if(s=e[c++],"\\"!==s||2===n)switch(n){case 0:"/"===s?(l&&d(),i()):":"===s?(d(),n=1):p();break;case 4:p(),n=r;break;case 1:"("===s?n=2:te.test(s)?p():(d(),n=0,"*"!==s&&"?"!==s&&"+"!==s&&c--);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&&c--,u="";break;default:t("Unknown state");break}else r=n,n=4;return 2===n&&t(`Unfinished custom RegExp for param "${l}"`),d(),i(),o}function re(e,t,n){const r=J(ne(e.path),n);const o=i(r,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf===!t.record.aliasOf&&t.children.push(o),o}function oe(e,t){const n=[],r=new Map;function o(e){return r.get(e)}function a(e,n,r){const o=!r,l=ie(e);l.aliasOf=r&&r.record;const d=ue(t,e),p=[l];if("alias"in e){const t="string"===typeof e.alias?[e.alias]:e.alias;for(const e of t)p.push(i({},l,{components:r?r.record.components:l.components,path:e,aliasOf:r?r.record:l}))}let f,h;for(const t of p){const{path:i}=t;if(n&&"/"!==i[0]){const e=n.record.path,r="/"===e[e.length-1]?"":"/";t.path=n.record.path+(i&&r+i)}if(f=re(t,n,d),r?r.alias.push(f):(h=h||f,h!==f&&h.alias.push(f),o&&e.name&&!ce(f)&&s(e.name)),l.children){const e=l.children;for(let t=0;t<e.length;t++)a(e[t],f,r&&r.children[t])}r=r||f,(f.record.components&&Object.keys(f.record.components).length||f.record.name||f.record.redirect)&&u(f)}return h?()=>{s(h)}:c}function s(e){if(F(e)){const t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(s),t.alias.forEach(s))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(s),e.alias.forEach(s))}}function l(){return n}function u(e){let t=0;while(t<n.length&&X(e,n[t])>=0&&(e.record.path!==n[t].record.path||!de(e,n[t])))t++;n.splice(t,0,e),e.record.name&&!ce(e)&&r.set(e.record.name,e)}function d(e,t){let o,a,s,c={};if("name"in e&&e.name){if(o=r.get(e.name),!o)throw Y(1,{location:e});0,s=o.record.name,c=i(ae(t.params,o.keys.filter(e=>!e.optional).map(e=>e.name)),e.params&&ae(e.params,o.keys.map(e=>e.name))),a=o.stringify(c)}else if("path"in e)a=e.path,o=n.find(e=>e.re.test(a)),o&&(c=o.parse(a),s=o.record.name);else{if(o=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!o)throw Y(1,{location:e,currentLocation:t});s=o.record.name,c=i({},t.params,e.params),a=o.stringify(c)}const l=[];let u=o;while(u)l.unshift(u.record),u=u.parent;return{name:s,path:a,params:c,matched:l,meta:le(l)}}return t=ue({strict:!1,end:!0,sensitive:!1},t),e.forEach(e=>a(e)),{addRoute:a,resolve:d,removeRoute:s,getRoutes:l,getRecordMatcher:o}}function ae(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function ie(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:se(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function se(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]="object"===typeof n?n[r]:n;return t}function ce(e){while(e){if(e.record.aliasOf)return!0;e=e.parent}return!1}function le(e){return e.reduce((e,t)=>i(e,t.meta),{})}function ue(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function de(e,t){return t.children.some(t=>t===e||de(e,t))}const pe=/#/g,fe=/&/g,he=/\//g,me=/=/g,ve=/\?/g,ge=/\+/g,_e=/%5B/g,ye=/%5D/g,be=/%5E/g,Oe=/%60/g,Me=/%7B/g,ke=/%7C/g,Ce=/%7D/g,we=/%20/g;function Ie(e){return encodeURI(""+e).replace(ke,"|").replace(_e,"[").replace(ye,"]")}function Se(e){return Ie(e).replace(Me,"{").replace(Ce,"}").replace(be,"^")}function Te(e){return Ie(e).replace(ge,"%2B").replace(we,"+").replace(pe,"%23").replace(fe,"%26").replace(Oe,"`").replace(Me,"{").replace(Ce,"}").replace(be,"^")}function Ee(e){return Te(e).replace(me,"%3D")}function je(e){return Ie(e).replace(pe,"%23").replace(ve,"%3F")}function De(e){return null==e?"":je(e).replace(he,"%2F")}function Le(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}function Ae(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(ge," "),n=e.indexOf("="),a=Le(n<0?e:e.slice(0,n)),i=n<0?null:Le(e.slice(n+1));if(a in t){let e=t[a];l(e)||(e=t[a]=[e]),e.push(i)}else t[a]=i}return t}function Ne(e){let t="";for(let n in e){const r=e[n];if(n=Ee(n),null==r){void 0!==r&&(t+=(t.length?"&":"")+n);continue}const o=l(r)?r.map(e=>e&&Te(e)):[r&&Te(r)];o.forEach(e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))})}return t}function xe(e){const t={};for(const n in e){const r=e[n];void 0!==r&&(t[n]=l(r)?r.map(e=>null==e?null:""+e):null==r?r:""+r)}return t}const Re=Symbol(""),Pe=Symbol(""),Ue=Symbol(""),Ve=Symbol(""),Be=Symbol("");function Fe(){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.slice(),reset:n}}function Ge(e,t,n,r,o){const a=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((i,s)=>{const c=e=>{!1===e?s(Y(4,{from:n,to:t})):e instanceof Error?s(e):B(e)?s(Y(2,{from:t,to:e})):(a&&r.enterCallbacks[o]===a&&"function"===typeof e&&a.push(e),i())},l=e.call(r&&r.instances[o],t,n,c);let u=Promise.resolve(l);e.length<3&&(u=u.then(c)),u.catch(e=>s(e))})}function ze(e,t,n,r){const o=[];for(const i of e){0;for(const e in i.components){let s=i.components[e];if("beforeRouteEnter"===t||i.instances[e])if(He(s)){const a=s.__vccOpts||s,c=a[t];c&&o.push(Ge(c,n,r,i,e))}else{let c=s();0,o.push(()=>c.then(o=>{if(!o)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${i.path}"`));const s=a(o)?o.default:o;i.components[e]=s;const c=s.__vccOpts||s,l=c[t];return l&&Ge(l,n,r,i,e)()}))}}}return o}function He(e){return"object"===typeof e||"displayName"in e||"props"in e||"__vccOpts"in e}function Ye(e){const t=Object(r["inject"])(Ue),n=Object(r["inject"])(Ve),o=Object(r["computed"])(()=>t.resolve(Object(r["unref"])(e.to))),a=Object(r["computed"])(()=>{const{matched:e}=o.value,{length:t}=e,r=e[t-1],a=n.matched;if(!r||!a.length)return-1;const i=a.findIndex(v.bind(null,r));if(i>-1)return i;const s=Je(e[t-2]);return t>1&&Je(r)===s&&a[a.length-1].path!==s?a.findIndex(v.bind(null,e[t-2])):i}),i=Object(r["computed"])(()=>a.value>-1&&$e(n.params,o.value.params)),s=Object(r["computed"])(()=>a.value>-1&&a.value===n.matched.length-1&&g(n.params,o.value.params));function l(n={}){return Ke(n)?t[Object(r["unref"])(e.replace)?"replace":"push"](Object(r["unref"])(e.to)).catch(c):Promise.resolve()}return{route:o,href:Object(r["computed"])(()=>o.value.href),isActive:i,isExactActive:s,navigate:l}}const qe=Object(r["defineComponent"])({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Ye,setup(e,{slots:t}){const n=Object(r["reactive"])(Ye(e)),{options:o}=Object(r["inject"])(Ue),a=Object(r["computed"])(()=>({[Qe(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[Qe(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:Object(r["h"])("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:a.value},o)}}}),We=qe;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 $e(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(!l(o)||o.length!==r.length||r.some((e,t)=>e!==o[t]))return!1}return!0}function Je(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Qe=(e,t,n)=>null!=e?e:null!=t?t:n,Xe=Object(r["defineComponent"])({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const o=Object(r["inject"])(Be),a=Object(r["computed"])(()=>e.route||o.value),s=Object(r["inject"])(Pe,0),c=Object(r["computed"])(()=>{let e=Object(r["unref"])(s);const{matched:t}=a.value;let n;while((n=t[e])&&!n.components)e++;return e}),l=Object(r["computed"])(()=>a.value.matched[c.value]);Object(r["provide"])(Pe,Object(r["computed"])(()=>c.value+1)),Object(r["provide"])(Re,l),Object(r["provide"])(Be,a);const u=Object(r["ref"])();return Object(r["watch"])(()=>[u.value,l.value,e.name],([e,t,n],[r,o,a])=>{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&&v(t,o)&&r||(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:"post"}),()=>{const o=a.value,s=e.name,c=l.value,d=c&&c.components[s];if(!d)return Ze(n.default,{Component:d,route:o});const p=c.props[s],f=p?!0===p?o.params:"function"===typeof p?p(o):p:null,h=e=>{e.component.isUnmounted&&(c.instances[s]=null)},m=Object(r["h"])(d,i({},f,t,{onVnodeUnmounted:h,ref:u}));return Ze(n.default,{Component:m,route:o})||m}}});function Ze(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const et=Xe;function tt(e){const t=oe(e.routes,e),n=e.parseQuery||Ae,a=e.stringifyQuery||Ne,u=e.history;const d=Fe(),h=Fe(),v=Fe(),g=Object(r["shallowRef"])(G);let _=G;o&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const y=s.bind(null,e=>""+e),b=s.bind(null,De),M=s.bind(null,Le);function k(e,n){let r,o;return F(e)?(r=t.getRecordMatcher(e),o=n):o=e,t.addRoute(o,r)}function C(e){const n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function w(){return t.getRoutes().map(e=>e.record)}function I(e){return!!t.getRecordMatcher(e)}function j(e,r){if(r=i({},r||g.value),"string"===typeof e){const o=p(n,e,r.path),a=t.resolve({path:o.path},r),s=u.createHref(o.fullPath);return i(o,a,{params:M(a.params),hash:Le(o.hash),redirectedFrom:void 0,href:s})}let o;if("path"in e)o=i({},e,{path:p(n,e.path,r.path).path});else{const t=i({},e.params);for(const e in t)null==t[e]&&delete t[e];o=i({},e,{params:b(t)}),r.params=b(r.params)}const s=t.resolve(o,r),c=e.hash||"";s.params=y(M(s.params));const l=f(a,i({},e,{hash:Se(c),path:s.path})),d=u.createHref(l);return i({fullPath:l,hash:c,query:a===Ne?xe(e.query):e.query||{}},s,{redirectedFrom:void 0,href:d})}function A(e){return"string"===typeof e?p(n,e,g.value.path):i({},e)}function N(e,t){if(_!==e)return Y(8,{from:t,to:e})}function x(e){return U(e)}function R(e){return x(i(A(e),{replace:!0}))}function P(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=A(r):{path:r},r.params={}),i({query:e.query,hash:e.hash,params:"path"in r?{}:e.params},r)}}function U(e,t){const n=_=j(e),r=g.value,o=e.state,s=e.force,c=!0===e.replace,l=P(n);if(l)return U(i(A(l),{state:"object"===typeof l?i({},o,l.state):o,force:s,replace:c}),t||n);const u=n;let d;return u.redirectedFrom=t,!s&&m(a,r,n)&&(d=Y(16,{to:u,from:r}),ne(r,r,!0,!1)),(d?Promise.resolve(d):z(u,r)).catch(e=>q(e)?q(e,2)?e:te(e):Z(e,u,r)).then(e=>{if(e){if(q(e,2))return U(i({replace:c},A(e.to),{state:"object"===typeof e.to?i({},o,e.to.state):o,force:s}),t||u)}else e=W(u,r,!0,c,o);return H(u,r,e),e})}function V(e,t){const n=N(e,t);return n?Promise.reject(n):Promise.resolve()}function B(e){const t=ie.values().next().value;return t&&"function"===typeof t.runWithContext?t.runWithContext(e):e()}function z(e,t){let n;const[r,o,a]=nt(e,t);n=ze(r.reverse(),"beforeRouteLeave",e,t);for(const s of r)s.leaveGuards.forEach(r=>{n.push(Ge(r,e,t))});const i=V.bind(null,e,t);return n.push(i),ce(n).then(()=>{n=[];for(const r of d.list())n.push(Ge(r,e,t));return n.push(i),ce(n)}).then(()=>{n=ze(o,"beforeRouteUpdate",e,t);for(const r of o)r.updateGuards.forEach(r=>{n.push(Ge(r,e,t))});return n.push(i),ce(n)}).then(()=>{n=[];for(const r of a)if(r.beforeEnter)if(l(r.beforeEnter))for(const o of r.beforeEnter)n.push(Ge(o,e,t));else n.push(Ge(r.beforeEnter,e,t));return n.push(i),ce(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=ze(a,"beforeRouteEnter",e,t),n.push(i),ce(n))).then(()=>{n=[];for(const r of h.list())n.push(Ge(r,e,t));return n.push(i),ce(n)}).catch(e=>q(e,8)?e:Promise.reject(e))}function H(e,t,n){v.list().forEach(r=>B(()=>r(e,t,n)))}function W(e,t,n,r,a){const s=N(e,t);if(s)return s;const c=t===G,l=o?history.state:{};n&&(r||c?u.replace(e.fullPath,i({scroll:c&&l&&l.scroll},a)):u.push(e.fullPath,a)),g.value=e,ne(e,t,n,c),te()}let K;function $(){K||(K=u.listen((e,t,n)=>{if(!se.listening)return;const r=j(e),a=P(r);if(a)return void U(i(a,{replace:!0}),r).catch(c);_=r;const s=g.value;o&&D(E(s.fullPath,n.delta),S()),z(r,s).catch(e=>q(e,12)?e:q(e,2)?(U(e.to,r).then(e=>{q(e,20)&&!n.delta&&n.type===O.pop&&u.go(-1,!1)}).catch(c),Promise.reject()):(n.delta&&u.go(-n.delta,!1),Z(e,r,s))).then(e=>{e=e||W(r,s,!1),e&&(n.delta&&!q(e,8)?u.go(-n.delta,!1):n.type===O.pop&&q(e,20)&&u.go(-1,!1)),H(r,s,e)}).catch(c)}))}let J,Q=Fe(),X=Fe();function Z(e,t,n){te(e);const r=X.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function ee(){return J&&g.value!==G?Promise.resolve():new Promise((e,t)=>{Q.add([e,t])})}function te(e){return J||(J=!e,$(),Q.list().forEach(([t,n])=>e?n(e):t()),Q.reset()),e}function ne(t,n,a,i){const{scrollBehavior:s}=e;if(!o||!s)return Promise.resolve();const c=!a&&L(E(t.fullPath,0))||(i||!a)&&history.state&&history.state.scroll||null;return Object(r["nextTick"])().then(()=>s(t,n,c)).then(e=>e&&T(e)).catch(e=>Z(e,t,n))}const re=e=>u.go(e);let ae;const ie=new Set,se={currentRoute:g,listening:!0,addRoute:k,removeRoute:C,hasRoute:I,getRoutes:w,resolve:j,options:e,push:x,replace:R,go:re,back:()=>re(-1),forward:()=>re(1),beforeEach:d.add,beforeResolve:h.add,afterEach:v.add,onError:X.add,isReady:ee,install(e){const t=this;e.component("RouterLink",We),e.component("RouterView",et),e.config.globalProperties.$router=t,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>Object(r["unref"])(g)}),o&&!ae&&g.value===G&&(ae=!0,x(u.location).catch(e=>{0}));const n={};for(const r in G)Object.defineProperty(n,r,{get:()=>g.value[r],enumerable:!0});e.provide(Ue,t),e.provide(Ve,Object(r["shallowReactive"])(n)),e.provide(Be,g);const a=e.unmount;ie.add(e),e.unmount=function(){ie.delete(e),ie.size<1&&(_=G,K&&K(),K=null,g.value=G,ae=!1,J=!1),a()}}};function ce(e){return e.reduce((e,t)=>e.then(()=>B(t)),Promise.resolve())}return se}function nt(e,t){const n=[],r=[],o=[],a=Math.max(t.matched.length,e.matched.length);for(let i=0;i<a;i++){const a=t.matched[i];a&&(e.matched.find(e=>v(e,a))?r.push(a):n.push(a));const s=e.matched[i];s&&(t.matched.find(e=>v(e,s))||o.push(s))}return[n,r,o]}},6663:function(e,t,n){"use strict";var r=n("06fa");e.exports=r((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},"666a":function(e,t,n){"use strict";n("b6fe");var r=n("0c9f");e.exports=r},6725:function(e,t,n){"use strict";var r=n("c7d2"),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},6783:function(e,t,n){"use strict";var r=n("bae4"),o=n("1301"),a=TypeError;e.exports=function(e){if(r(e))return e;throw a(o(e)+" is not a constructor")}},6784:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],n=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"],r=e.defineLocale("sd",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",ss:"%d سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}});return r}))},6806:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r}));const r=["year","month","date","dates","week","datetime","datetimerange","daterange","monthrange"],o=["sun","mon","tue","wed","thu","fri","sat"]},"680e":function(e,t,n){"use strict";var r=n("4fff"),o=n("4508"),a=n("c74f");e.exports=function(e){var t=r(this),n=a(t),i=arguments.length,s=o(i>1?arguments[1]:void 0,n),c=i>2?arguments[2]:void 0,l=void 0===c?n:o(c,n);while(l>s)t[s++]=e;return t}},6813:function(e,t,n){"use strict";n("ef6d"),n("e3db"),n("0c57"),n("c799"),n("4500"),n("4e66")},6850:function(e,t,n){"use strict";var r=n("a5eb"),o=n("6386").includes,a=n("06fa"),i=n("c44e"),s=a((function(){return!Array(1).includes()}));r({target:"Array",proto:!0,forced:s},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i("includes")},6887:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
function t(e,t,n){var r={mm:"munutenn",MM:"miz",dd:"devezh"};return e+" "+o(r[n],e)}function n(e){switch(r(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}function r(e){return e>9?r(e%10):e}function o(e,t){return 2===t?a(e):e}function a(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}var i=[/^gen/i,/^c[ʼ\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],s=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,c=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,l=/^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,u=[/^sul/i,/^lun/i,/^meurzh/i,/^merc[ʼ\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],d=[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],p=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i],f=e.defineLocale("br",{months:"Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:p,fullWeekdaysParse:u,shortWeekdaysParse:d,minWeekdaysParse:p,monthsRegex:s,monthsShortRegex:s,monthsStrictRegex:c,monthsShortStrictRegex:l,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warcʼhoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Decʼh da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s ʼzo",s:"un nebeud segondennoù",ss:"%d eilenn",m:"ur vunutenn",mm:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:n},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(e){var t=1===e?"añ":"vet";return e+t},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(e){return"g.m."===e},meridiem:function(e,t,n){return e<12?"a.m.":"g.m."}});return f}))},"688b":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",ss:"%d hēkona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return t}))},"688e":function(e,t,n){"use strict";var r="Function.prototype.bind called on incompatible ",o=Array.prototype.slice,a=Object.prototype.toString,i="[object Function]";e.exports=function(e){var t=this;if("function"!==typeof t||a.call(t)!==i)throw new TypeError(r+t);for(var n,s=o.call(arguments,1),c=function(){if(this instanceof n){var r=t.apply(this,s.concat(o.call(arguments)));return Object(r)===r?r:this}return t.apply(e,s.concat(o.call(arguments)))},l=Math.max(0,t.length-s.length),u=[],d=0;d<l;d++)u.push("$"+d);if(n=Function("binder","return function ("+u.join(",")+"){ return binder.apply(this,arguments); }")(c),t.prototype){var p=function(){};p.prototype=t.prototype,n.prototype=new p,p.prototype=null}return n}},"68ec":function(e,t,n){"use strict";n("56c5");var r=n("764b");e.exports=r.Object.setPrototypeOf},6909:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"за %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"една минута",mm:"%d минути",h:"еден час",hh:"%d часа",d:"еден ден",dd:"%d дена",M:"еден месец",MM:"%d месеци",y:"една година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}});return t}))},"69f3":function(e,t,n){"use strict";var r,o,a,i=n("cdce"),s=n("da84"),c=n("861d"),l=n("9112"),u=n("1a2d"),d=n("c6cd"),p=n("f772"),f=n("d012"),h="Object already initialized",m=s.TypeError,v=s.WeakMap,g=function(e){return a(e)?o(e):r(e,{})},_=function(e){return function(t){var n;if(!c(t)||(n=o(t)).type!==e)throw m("Incompatible receiver, "+e+" required");return n}};if(i||d.state){var y=d.state||(d.state=new v);y.get=y.get,y.has=y.has,y.set=y.set,r=function(e,t){if(y.has(e))throw m(h);return t.facade=e,y.set(e,t),t},o=function(e){return y.get(e)||{}},a=function(e){return y.has(e)}}else{var b=p("state");f[b]=!0,r=function(e,t){if(u(e,b))throw m(h);return t.facade=e,l(e,b,t),t},o=function(e){return u(e,b)?e[b]:{}},a=function(e){return u(e,b)}}e.exports={set:r,get:o,has:a,enforce:g,getterFor:_}},"6ab4":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("0931");const o=()=>r["isClient"]&&/firefox/i.test(window.navigator.userAgent)},"6b0d":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n}},"6b51":function(e,t,n){"use strict";n("e2c3"),n("2303"),n("e788"),n("b4aa");var r=n("764b");e.exports=r.URLSearchParams},"6c15":function(e,t,n){"use strict";var r=n("2c75"),o=n("4180"),a=n("2c6c");e.exports=function(e,t,n){var i=r(t);i in e?o.f(e,i,a(0,n)):e[i]=n}},"6c5d":function(e,t,n){"use strict";var r=n("4c19");e.exports=r},"6ce3":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",w:"en uke",ww:"%d uker",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return t}))},"6ce5":function(e,t,n){"use strict";var r=n("df7e"),o=n("ebb5"),a=o.aTypedArray,i=o.exportTypedArrayMethod,s=o.getTypedArrayConstructor;i("toReversed",(function(){return r(a(this),s(this))}))},"6d79":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"},n=e.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(e){var n=e%10,r=e>=100?100:null;return e+(t[e]||t[n]||t[r])},week:{dow:1,doy:7}});return n}))},"6d83":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}});return t}))},"6e98":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){switch(this.day()){case 0:return"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT";default:return"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"}},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return t}))},"6e9a":function(e,t,n){"use strict";e.exports={}},"6ebd":function(e,t,n){"use strict";n("c5a8");var r=n("764b");e.exports=r.setTimeout},"6f12":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return t}))},"6f19":function(e,t,n){"use strict";var r=n("9112"),o=n("0d26b"),a=n("b980"),i=Error.captureStackTrace;e.exports=function(e,t,n,s){a&&(i?i(e,t):r(e,"stack",o(n,s)))}},"6f27":function(e,t,n){"use strict";function r(e){this.content=e}n.d(t,"a",(function(){return re})),n.d(t,"b",(function(){return ye})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return d})),n.d(t,"e",(function(){return ee})),n.d(t,"f",(function(){return L})),n.d(t,"g",(function(){return j})),n.d(t,"h",(function(){return p})),n.d(t,"i",(function(){return te})),n.d(t,"j",(function(){return f})),r.prototype={constructor:r,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return-1==t?void 0:this.content[t+1]},update:function(e,t,n){var o=n&&n!=e?this.remove(n):this,a=o.find(e),i=o.content.slice();return-1==a?i.push(n||e,t):(i[a+1]=t,n&&(i[a]=n)),new r(i)},remove:function(e){var t=this.find(e);if(-1==t)return this;var n=this.content.slice();return n.splice(t,2),new r(n)},addToStart:function(e,t){return new r([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new r(n)},addBefore:function(e,t,n){var o=this.remove(t),a=o.content.slice(),i=o.find(e);return a.splice(-1==i?a.length:i,0,t,n),new r(a)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return e=r.from(e),e.size?new r(e.content.concat(this.subtract(e).content)):this},append:function(e){return e=r.from(e),e.size?new r(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=r.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},toObject:function(){var e={};return this.forEach((function(t,n){e[t]=n})),e},get size(){return this.content.length>>1}},r.from=function(e){if(e instanceof r)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new r(t)};var o=r;function a(e,t,n){for(let r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;let o=e.child(r),i=t.child(r);if(o!=i){if(!o.sameMarkup(i))return n;if(o.isText&&o.text!=i.text){for(let e=0;o.text[e]==i.text[e];e++)n++;return n}if(o.content.size||i.content.size){let e=a(o.content,i.content,n+1);if(null!=e)return e}n+=o.nodeSize}else n+=o.nodeSize}}function i(e,t,n,r){for(let o=e.childCount,a=t.childCount;;){if(0==o||0==a)return o==a?null:{a:n,b:r};let s=e.child(--o),c=t.child(--a),l=s.nodeSize;if(s!=c){if(!s.sameMarkup(c))return{a:n,b:r};if(s.isText&&s.text!=c.text){let e=0,t=Math.min(s.text.length,c.text.length);while(e<t&&s.text[s.text.length-e-1]==c.text[c.text.length-e-1])e++,n--,r--;return{a:n,b:r}}if(s.content.size||c.content.size){let e=i(s.content,c.content,n-1,r-1);if(e)return e}n-=l,r-=l}else n-=l,r-=l}}class s{constructor(e,t){if(this.content=e,this.size=t||0,null==t)for(let n=0;n<e.length;n++)this.size+=e[n].nodeSize}nodesBetween(e,t,n,r=0,o){for(let a=0,i=0;i<t;a++){let s=this.content[a],c=i+s.nodeSize;if(c>e&&!1!==n(s,r+i,o||null,a)&&s.content.size){let o=i+1;s.nodesBetween(Math.max(0,e-o),Math.min(s.content.size,t-o),n,r+o)}i=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,n,r){let o="",a=!0;return this.nodesBetween(e,t,(i,s)=>{i.isText?(o+=i.text.slice(Math.max(e,s)-s,t-s),a=!n):i.isLeaf?(r?o+="function"===typeof r?r(i):r:i.type.spec.leafText&&(o+=i.type.spec.leafText(i)),a=!n):!a&&i.isBlock&&(o+=n,a=!0)},0),o}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,n=e.firstChild,r=this.content.slice(),o=0;for(t.isText&&t.sameMarkup(n)&&(r[r.length-1]=t.withText(t.text+n.text),o=1);o<e.content.length;o++)r.push(e.content[o]);return new s(r,this.size+e.size)}cut(e,t=this.size){if(0==e&&t==this.size)return this;let n=[],r=0;if(t>e)for(let o=0,a=0;a<t;o++){let i=this.content[o],s=a+i.nodeSize;s>e&&((a<e||s>t)&&(i=i.isText?i.cut(Math.max(0,e-a),Math.min(i.text.length,t-a)):i.cut(Math.max(0,e-a-1),Math.min(i.content.size,t-a-1))),n.push(i),r+=i.nodeSize),a=s}return new s(n,r)}cutByIndex(e,t){return e==t?s.empty:0==e&&t==this.content.length?this:new s(this.content.slice(e,t))}replaceChild(e,t){let n=this.content[e];if(n==t)return this;let r=this.content.slice(),o=this.size+t.nodeSize-n.nodeSize;return r[e]=t,new s(r,o)}addToStart(e){return new s([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new s(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw new RangeError("Index "+e+" out of range for "+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,n=0;t<this.content.length;t++){let r=this.content[t];e(r,n,t),n+=r.nodeSize}}findDiffStart(e,t=0){return a(this,e,t)}findDiffEnd(e,t=this.size,n=e.size){return i(this,e,t,n)}findIndex(e,t=-1){if(0==e)return l(0,e);if(e==this.size)return l(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let n=0,r=0;;n++){let o=this.child(n),a=r+o.nodeSize;if(a>=e)return a==e||t>0?l(n+1,a):l(n,r);r=a}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,t){if(!t)return s.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new s(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return s.empty;let t,n=0;for(let r=0;r<e.length;r++){let o=e[r];n+=o.nodeSize,r&&o.isText&&e[r-1].sameMarkup(o)?(t||(t=e.slice(0,r)),t[t.length-1]=o.withText(t[t.length-1].text+o.text)):t&&t.push(o)}return new s(t||e,n)}static from(e){if(!e)return s.empty;if(e instanceof s)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new s([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}s.empty=new s([],0);const c={index:0,offset:0};function l(e,t){return c.index=e,c.offset=t,c}function u(e,t){if(e===t)return!0;if(!e||"object"!=typeof e||!t||"object"!=typeof t)return!1;let n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!u(e[n],t[n]))return!1}else{for(let n in e)if(!(n in t)||!u(e[n],t[n]))return!1;for(let n in t)if(!(n in e))return!1}return!0}class d{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,n=!1;for(let r=0;r<e.length;r++){let o=e[r];if(this.eq(o))return e;if(this.type.excludes(o.type))t||(t=e.slice(0,r));else{if(o.type.excludes(this.type))return e;!n&&o.type.rank>this.type.rank&&(t||(t=e.slice(0,r)),t.push(this),n=!0),t&&t.push(o)}}return t||(t=e.slice()),n||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&u(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Mark.fromJSON");let n=e.marks[t.type];if(!n)throw new RangeError(`There is no mark type ${t.type} in this schema`);return n.create(t.attrs)}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].eq(t[n]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&0==e.length)return d.none;if(e instanceof d)return[e];let t=e.slice();return t.sort((e,t)=>e.type.rank-t.type.rank),t}}d.none=[];class p extends Error{}class f{constructor(e,t,n){this.content=e,this.openStart=t,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let n=m(this.content,e+this.openStart,t);return n&&new f(n,this.openStart,this.openEnd)}removeBetween(e,t){return new f(h(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return f.empty;let n=t.openStart||0,r=t.openEnd||0;if("number"!=typeof n||"number"!=typeof r)throw new RangeError("Invalid input for Slice.fromJSON");return new f(s.fromJSON(e,t.content),n,r)}static maxOpen(e,t=!0){let n=0,r=0;for(let o=e.firstChild;o&&!o.isLeaf&&(t||!o.type.spec.isolating);o=o.firstChild)n++;for(let o=e.lastChild;o&&!o.isLeaf&&(t||!o.type.spec.isolating);o=o.lastChild)r++;return new f(e,n,r)}}function h(e,t,n){let{index:r,offset:o}=e.findIndex(t),a=e.maybeChild(r),{index:i,offset:s}=e.findIndex(n);if(o==t||a.isText){if(s!=n&&!e.child(i).isText)throw new RangeError("Removing non-flat range");return e.cut(0,t).append(e.cut(n))}if(r!=i)throw new RangeError("Removing non-flat range");return e.replaceChild(r,a.copy(h(a.content,t-o-1,n-o-1)))}function m(e,t,n,r){let{index:o,offset:a}=e.findIndex(t),i=e.maybeChild(o);if(a==t||i.isText)return r&&!r.canReplace(o,o,n)?null:e.cut(0,t).append(n).append(e.cut(t));let s=m(i.content,t-a-1,n);return s&&e.replaceChild(o,i.copy(s))}function v(e,t,n){if(n.openStart>e.depth)throw new p("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new p("Inconsistent open depths");return g(e,t,n,0)}function g(e,t,n,r){let o=e.index(r),a=e.node(r);if(o==t.index(r)&&r<e.depth-n.openStart){let i=g(e,t,n,r+1);return a.copy(a.content.replaceChild(o,i))}if(n.content.size){if(n.openStart||n.openEnd||e.depth!=r||t.depth!=r){let{start:o,end:i}=w(n,e);return M(a,k(e,o,i,t,r))}{let r=e.parent,o=r.content;return M(r,o.cut(0,e.parentOffset).append(n.content).append(o.cut(t.parentOffset)))}}return M(a,C(e,t,r))}function _(e,t){if(!t.type.compatibleContent(e.type))throw new p("Cannot join "+t.type.name+" onto "+e.type.name)}function y(e,t,n){let r=e.node(n);return _(r,t.node(n)),r}function b(e,t){let n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function O(e,t,n,r){let o=(t||e).node(n),a=0,i=t?t.index(n):o.childCount;e&&(a=e.index(n),e.depth>n?a++:e.textOffset&&(b(e.nodeAfter,r),a++));for(let s=a;s<i;s++)b(o.child(s),r);t&&t.depth==n&&t.textOffset&&b(t.nodeBefore,r)}function M(e,t){return e.type.checkContent(t),e.copy(t)}function k(e,t,n,r,o){let a=e.depth>o&&y(e,t,o+1),i=r.depth>o&&y(n,r,o+1),c=[];return O(null,e,o,c),a&&i&&t.index(o)==n.index(o)?(_(a,i),b(M(a,k(e,t,n,r,o+1)),c)):(a&&b(M(a,C(e,t,o+1)),c),O(t,n,o,c),i&&b(M(i,C(n,r,o+1)),c)),O(r,null,o,c),new s(c)}function C(e,t,n){let r=[];if(O(null,e,n,r),e.depth>n){let o=y(e,t,n+1);b(M(o,C(e,t,n+1)),r)}return O(t,null,n,r),new s(r)}function w(e,t){let n=t.depth-e.openStart,r=t.node(n),o=r.copy(e.content);for(let a=n-1;a>=0;a--)o=t.node(a).copy(s.from(o));return{start:o.resolveNoCache(e.openStart+n),end:o.resolveNoCache(o.content.size-e.openEnd-n)}}f.empty=new f(s.empty,0,0);class I{constructor(e,t,n){this.pos=e,this.path=t,this.parentOffset=n,this.depth=t.length/3-1}resolveDepth(e){return null==e?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[3*this.resolveDepth(e)]}index(e){return this.path[3*this.resolveDepth(e)+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e!=this.depth||this.textOffset?1:0)}start(e){return e=this.resolveDepth(e),0==e?0:this.path[3*e-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]+this.path[3*e].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):0==e?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let n=this.path[3*t],r=0==t?0:this.path[3*t-1]+1;for(let o=0;o<e;o++)r+=n.child(o).nodeSize;return r}marks(){let e=this.parent,t=this.index();if(0==e.content.size)return d.none;if(this.textOffset)return e.child(t).marks;let n=e.maybeChild(t-1),r=e.maybeChild(t);if(!n){let e=n;n=r,r=e}let o=n.marks;for(var a=0;a<o.length;a++)!1!==o[a].type.spec.inclusive||r&&o[a].isInSet(r.marks)||(o=o[a--].removeFromSet(o));return o}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let n=t.marks,r=e.parent.maybeChild(e.index());for(var o=0;o<n.length;o++)!1!==n[o].type.spec.inclusive||r&&n[o].isInSet(r.marks)||(n=n[o--].removeFromSet(n));return n}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new j(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset}static resolve(e,t){if(!(t>=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");let n=[],r=0,o=t;for(let a=e;;){let{index:e,offset:t}=a.content.findIndex(o),i=o-t;if(n.push(a,e,r+t),!i)break;if(a=a.child(e),a.isText)break;o=i-1,r+=t+1}return new I(t,n,o)}static resolveCached(e,t){for(let r=0;r<S.length;r++){let n=S[r];if(n.pos==t&&n.doc==e)return n}let n=S[T]=I.resolve(e,t);return T=(T+1)%E,n}}let S=[],T=0,E=12;class j{constructor(e,t,n){this.$from=e,this.$to=t,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const D=Object.create(null);class L{constructor(e,t,n,r=d.none){this.type=e,this.attrs=t,this.marks=r,this.content=n||s.empty}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,n,r=0){this.content.nodesBetween(e,t,n,r,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,t,n,r){return this.content.textBetween(e,t,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,n){return this.type==e&&u(this.attrs,t||e.defaultAttrs||D)&&d.sameSet(this.marks,n||d.none)}copy(e=null){return e==this.content?this:new L(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new L(this.type,this.attrs,this.content,e)}cut(e,t=this.content.size){return 0==e&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,n=!1){if(e==t)return f.empty;let r=this.resolve(e),o=this.resolve(t),a=n?0:r.sharedDepth(t),i=r.start(a),s=r.node(a),c=s.content.cut(r.pos-i,o.pos-i);return new f(c,r.depth-a,o.depth-a)}replace(e,t,n){return v(this.resolve(e),this.resolve(t),n)}nodeAt(e){for(let t=this;;){let{index:n,offset:r}=t.content.findIndex(e);if(t=t.maybeChild(n),!t)return null;if(r==e||t.isText)return t;e-=r+1}}childAfter(e){let{index:t,offset:n}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:n}}childBefore(e){if(0==e)return{node:null,index:0,offset:0};let{index:t,offset:n}=this.content.findIndex(e);if(n<e)return{node:this.content.child(t),index:t,offset:n};let r=this.content.child(t-1);return{node:r,index:t-1,offset:n-r.nodeSize}}resolve(e){return I.resolveCached(this,e)}resolveNoCache(e){return I.resolve(this,e)}rangeHasMark(e,t,n){let r=!1;return t>e&&this.nodesBetween(e,t,e=>(n.isInSet(e.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),N(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,n=s.empty,r=0,o=n.childCount){let a=this.contentMatchAt(e).matchFragment(n,r,o),i=a&&a.matchFragment(this.content,t);if(!i||!i.validEnd)return!1;for(let s=r;s<o;s++)if(!this.type.allowsMarks(n.child(s).marks))return!1;return!0}canReplaceWith(e,t,n,r){if(r&&!this.type.allowsMarks(r))return!1;let o=this.contentMatchAt(e).matchType(n),a=o&&o.matchFragment(this.content,t);return!!a&&a.validEnd}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content);let e=d.none;for(let t=0;t<this.marks.length;t++)e=this.marks[t].addToSet(e);if(!d.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(e=>e.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(e=>e.toJSON())),e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");let n=null;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");n=t.marks.map(e.markFromJSON)}if("text"==t.type){if("string"!=typeof t.text)throw new RangeError("Invalid text node in JSON");return e.text(t.text,n)}let r=s.fromJSON(e,t.content);return e.nodeType(t.type).create(t.attrs,r,n)}}L.prototype.text=void 0;class A extends L{constructor(e,t,n,r){if(super(e,t,null,r),!n)throw new RangeError("Empty text nodes are not allowed");this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):N(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new A(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new A(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return 0==e&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function N(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}class x{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let n=new R(e,t);if(null==n.next)return x.empty;let r=P(n);n.next&&n.err("Unexpected trailing text");let o=W(H(r));return K(o,n),o}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,n=e.childCount){let r=this;for(let o=t;r&&o<n;o++)r=r.matchType(e.child(o).type);return r}get inlineContent(){return 0!=this.next.length&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!t.isText&&!t.hasRequiredAttrs())return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let n=0;n<e.next.length;n++)if(this.next[t].type==e.next[n].type)return!0;return!1}fillBefore(e,t=!1,n=0){let r=[this];function o(a,i){let c=a.matchFragment(e,n);if(c&&(!t||c.validEnd))return s.from(i.map(e=>e.createAndFill()));for(let e=0;e<a.next.length;e++){let{type:t,next:n}=a.next[e];if(!t.isText&&!t.hasRequiredAttrs()&&-1==r.indexOf(n)){r.push(n);let e=o(n,i.concat(t));if(e)return e}}return null}return o(this,[])}findWrapping(e){for(let n=0;n<this.wrapCache.length;n+=2)if(this.wrapCache[n]==e)return this.wrapCache[n+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),n=[{match:this,type:null,via:null}];while(n.length){let r=n.shift(),o=r.match;if(o.matchType(e)){let e=[];for(let t=r;t.type;t=t.via)e.push(t.type);return e.reverse()}for(let e=0;e<o.next.length;e++){let{type:a,next:i}=o.next[e];a.isLeaf||a.hasRequiredAttrs()||a.name in t||r.type&&!i.validEnd||(n.push({match:a.contentMatch,type:a,via:r}),t[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(n){e.push(n);for(let r=0;r<n.next.length;r++)-1==e.indexOf(n.next[r].next)&&t(n.next[r].next)}return t(this),e.map((t,n)=>{let r=n+(t.validEnd?"*":" ")+" ";for(let o=0;o<t.next.length;o++)r+=(o?", ":"")+t.next[o].type.name+"->"+e.indexOf(t.next[o].next);return r}).join("\n")}}x.empty=new x(!0);class R{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function P(e){let t=[];do{t.push(U(e))}while(e.eat("|"));return 1==t.length?t[0]:{type:"choice",exprs:t}}function U(e){let t=[];do{t.push(V(e))}while(e.next&&")"!=e.next&&"|"!=e.next);return 1==t.length?t[0]:{type:"seq",exprs:t}}function V(e){let t=z(e);for(;;)if(e.eat("+"))t={type:"plus",expr:t};else if(e.eat("*"))t={type:"star",expr:t};else if(e.eat("?"))t={type:"opt",expr:t};else{if(!e.eat("{"))break;t=F(e,t)}return t}function B(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");let t=Number(e.next);return e.pos++,t}function F(e,t){let n=B(e),r=n;return e.eat(",")&&(r="}"!=e.next?B(e):-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:t}}function G(e,t){let n=e.nodeTypes,r=n[t];if(r)return[r];let o=[];for(let a in n){let e=n[a];e.groups.indexOf(t)>-1&&o.push(e)}return 0==o.length&&e.err("No node type or group '"+t+"' found"),o}function z(e){if(e.eat("(")){let t=P(e);return e.eat(")")||e.err("Missing closing paren"),t}if(!/\W/.test(e.next)){let t=G(e,e.next).map(t=>(null==e.inline?e.inline=t.isInline:e.inline!=t.isInline&&e.err("Mixing inline and block content"),{type:"name",value:t}));return e.pos++,1==t.length?t[0]:{type:"choice",exprs:t}}e.err("Unexpected token '"+e.next+"'")}function H(e){let t=[[]];return o(a(e,0),n()),t;function n(){return t.push([])-1}function r(e,n,r){let o={term:r,to:n};return t[e].push(o),o}function o(e,t){e.forEach(e=>e.to=t)}function a(e,t){if("choice"==e.type)return e.exprs.reduce((e,n)=>e.concat(a(n,t)),[]);if("seq"!=e.type){if("star"==e.type){let i=n();return r(t,i),o(a(e.expr,i),i),[r(i)]}if("plus"==e.type){let i=n();return o(a(e.expr,t),i),o(a(e.expr,i),i),[r(i)]}if("opt"==e.type)return[r(t)].concat(a(e.expr,t));if("range"==e.type){let i=t;for(let t=0;t<e.min;t++){let t=n();o(a(e.expr,i),t),i=t}if(-1==e.max)o(a(e.expr,i),i);else for(let t=e.min;t<e.max;t++){let t=n();r(i,t),o(a(e.expr,i),t),i=t}return[r(i)]}if("name"==e.type)return[r(t,void 0,e.value)];throw new Error("Unknown expr type")}for(let r=0;;r++){let i=a(e.exprs[r],t);if(r==e.exprs.length-1)return i;o(i,t=n())}}}function Y(e,t){return t-e}function q(e,t){let n=[];return r(t),n.sort(Y);function r(t){let o=e[t];if(1==o.length&&!o[0].term)return r(o[0].to);n.push(t);for(let e=0;e<o.length;e++){let{term:t,to:a}=o[e];t||-1!=n.indexOf(a)||r(a)}}}function W(e){let t=Object.create(null);return n(q(e,0));function n(r){let o=[];r.forEach(t=>{e[t].forEach(({term:t,to:n})=>{if(!t)return;let r;for(let e=0;e<o.length;e++)o[e][0]==t&&(r=o[e][1]);q(e,n).forEach(e=>{r||o.push([t,r=[]]),-1==r.indexOf(e)&&r.push(e)})})});let a=t[r.join(",")]=new x(r.indexOf(e.length-1)>-1);for(let e=0;e<o.length;e++){let r=o[e][1].sort(Y);a.next.push({type:o[e][0],next:t[r.join(",")]||n(r)})}return a}}function K(e,t){for(let n=0,r=[e];n<r.length;n++){let e=r[n],o=!e.validEnd,a=[];for(let t=0;t<e.next.length;t++){let{type:n,next:i}=e.next[t];a.push(n.name),!o||n.isText||n.hasRequiredAttrs()||(o=!1),-1==r.indexOf(i)&&r.push(i)}o&&t.err("Only non-generatable nodes ("+a.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function $(e){let t=Object.create(null);for(let n in e){let r=e[n];if(!r.hasDefault)return null;t[n]=r.default}return t}function J(e,t){let n=Object.create(null);for(let r in e){let o=t&&t[r];if(void 0===o){let t=e[r];if(!t.hasDefault)throw new RangeError("No value supplied for attribute "+r);o=t.default}n[r]=o}return n}function Q(e){let t=Object.create(null);if(e)for(let n in e)t[n]=new Z(e[n]);return t}class X{constructor(e,t,n){this.name=e,this.schema=t,this.spec=n,this.markSet=null,this.groups=n.group?n.group.split(" "):[],this.attrs=Q(n.attrs),this.defaultAttrs=$(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(n.inline||"text"==e),this.isText="text"==e}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==x.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:J(this.attrs,e)}create(e=null,t,n){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new L(this,this.computeAttrs(e),s.from(t),d.setFrom(n))}createChecked(e=null,t,n){return t=s.from(t),this.checkContent(t),new L(this,this.computeAttrs(e),t,d.setFrom(n))}createAndFill(e=null,t,n){if(e=this.computeAttrs(e),t=s.from(t),t.size){let e=this.contentMatch.fillBefore(t);if(!e)return null;t=e.append(t)}let r=this.contentMatch.matchFragment(t),o=r&&r.fillBefore(s.empty,!0);return o?new L(this,e,t.append(o),d.setFrom(n)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(let n=0;n<e.childCount;n++)if(!this.allowsMarks(e.child(n).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}allowsMarkType(e){return null==this.markSet||this.markSet.indexOf(e)>-1}allowsMarks(e){if(null==this.markSet)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){if(null==this.markSet)return e;let t;for(let n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?t&&t.push(e[n]):t||(t=e.slice(0,n));return t?t.length?t:d.none:e}static compile(e,t){let n=Object.create(null);e.forEach((e,r)=>n[e]=new X(e,t,r));let r=t.spec.topNode||"doc";if(!n[r])throw new RangeError("Schema is missing its top node type ('"+r+"')");if(!n.text)throw new RangeError("Every schema needs a 'text' type");for(let o in n.text.attrs)throw new RangeError("The text node type should not have attributes");return n}}class Z{constructor(e){this.hasDefault=Object.prototype.hasOwnProperty.call(e,"default"),this.default=e.default}get isRequired(){return!this.hasDefault}}class ee{constructor(e,t,n,r){this.name=e,this.rank=t,this.schema=n,this.spec=r,this.attrs=Q(r.attrs),this.excluded=null;let o=$(this.attrs);this.instance=o?new d(this,o):null}create(e=null){return!e&&this.instance?this.instance:new d(this,J(this.attrs,e))}static compile(e,t){let n=Object.create(null),r=0;return e.forEach((e,o)=>n[e]=new ee(e,r++,t,o)),n}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}excludes(e){return this.excluded.indexOf(e)>-1}}class te{constructor(e){this.cached=Object.create(null);let t=this.spec={};for(let r in e)t[r]=e[r];t.nodes=o.from(e.nodes),t.marks=o.from(e.marks||{}),this.nodes=X.compile(this.spec.nodes,this),this.marks=ee.compile(this.spec.marks,this);let n=Object.create(null);for(let r in this.nodes){if(r in this.marks)throw new RangeError(r+" can not be both a node and a mark");let e=this.nodes[r],t=e.spec.content||"",o=e.spec.marks;e.contentMatch=n[t]||(n[t]=x.parse(t,this.nodes)),e.inlineContent=e.contentMatch.inlineContent,e.markSet="_"==o?null:o?ne(this,o.split(" ")):""!=o&&e.inlineContent?null:[]}for(let r in this.marks){let e=this.marks[r],t=e.spec.excludes;e.excluded=null==t?[e]:""==t?[]:ne(this,t.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,t=null,n,r){if("string"==typeof e)e=this.nodeType(e);else{if(!(e instanceof X))throw new RangeError("Invalid node type: "+e);if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}return e.createChecked(t,n,r)}text(e,t){let n=this.nodes.text;return new A(n,n.defaultAttrs,e,d.setFrom(t))}mark(e,t){return"string"==typeof e&&(e=this.marks[e]),e.create(t)}nodeFromJSON(e){return L.fromJSON(this,e)}markFromJSON(e){return d.fromJSON(this,e)}nodeType(e){let t=this.nodes[e];if(!t)throw new RangeError("Unknown node type: "+e);return t}}function ne(e,t){let n=[];for(let r=0;r<t.length;r++){let o=t[r],a=e.marks[o],i=a;if(a)n.push(a);else for(let t in e.marks){let r=e.marks[t];("_"==o||r.spec.group&&r.spec.group.split(" ").indexOf(o)>-1)&&n.push(i=r)}if(!i)throw new SyntaxError("Unknown mark type: '"+t[r]+"'")}return n}class re{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[],t.forEach(e=>{e.tag?this.tags.push(e):e.style&&this.styles.push(e)}),this.normalizeLists=!this.tags.some(t=>{if(!/^(ul|ol)\b/.test(t.tag)||!t.node)return!1;let n=e.nodes[t.node];return n.contentMatch.matchType(n)})}parse(e,t={}){let n=new pe(this,t,!1);return n.addAll(e,t.from,t.to),n.finish()}parseSlice(e,t={}){let n=new pe(this,t,!0);return n.addAll(e,t.from,t.to),f.maxOpen(n.finish())}matchTag(e,t,n){for(let r=n?this.tags.indexOf(n)+1:0;r<this.tags.length;r++){let n=this.tags[r];if(he(e,n.tag)&&(void 0===n.namespace||e.namespaceURI==n.namespace)&&(!n.context||t.matchesContext(n.context))){if(n.getAttrs){let t=n.getAttrs(e);if(!1===t)continue;n.attrs=t||void 0}return n}}}matchStyle(e,t,n,r){for(let o=r?this.styles.indexOf(r)+1:0;o<this.styles.length;o++){let r=this.styles[o],a=r.style;if(!(0!=a.indexOf(e)||r.context&&!n.matchesContext(r.context)||a.length>e.length&&(61!=a.charCodeAt(e.length)||a.slice(e.length+1)!=t))){if(r.getAttrs){let e=r.getAttrs(t);if(!1===e)continue;r.attrs=e||void 0}return r}}}static schemaRules(e){let t=[];function n(e){let n=null==e.priority?50:e.priority,r=0;for(;r<t.length;r++){let e=t[r],o=null==e.priority?50:e.priority;if(o<n)break}t.splice(r,0,e)}for(let r in e.marks){let t=e.marks[r].spec.parseDOM;t&&t.forEach(e=>{n(e=ve(e)),e.mark||e.ignore||e.clearMark||(e.mark=r)})}for(let r in e.nodes){let t=e.nodes[r].spec.parseDOM;t&&t.forEach(e=>{n(e=ve(e)),e.node||e.ignore||e.mark||(e.node=r)})}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new re(e,re.schemaRules(e)))}}const oe={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},ae={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},ie={ol:!0,ul:!0},se=1,ce=2,le=4;function ue(e,t,n){return null!=t?(t?se:0)|("full"===t?ce:0):e&&"pre"==e.whitespace?se|ce:n&~le}class de{constructor(e,t,n,r,o,a,i){this.type=e,this.attrs=t,this.marks=n,this.pendingMarks=r,this.solid=o,this.options=i,this.content=[],this.activeMarks=d.none,this.stashMarks=[],this.match=a||(i&le?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(s.from(e));if(!t){let t,n=this.type.contentMatch;return(t=n.findWrapping(e.type))?(this.match=n,t):null}this.match=this.type.contentMatch.matchFragment(t)}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&se)){let e,t=this.content[this.content.length-1];if(t&&t.isText&&(e=/[ \t\r\n\u000c]+$/.exec(t.text))){let n=t;t.text.length==e[0].length?this.content.pop():this.content[this.content.length-1]=n.withText(n.text.slice(0,n.text.length-e[0].length))}}let t=s.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(s.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}popFromStashMark(e){for(let t=this.stashMarks.length-1;t>=0;t--)if(e.eq(this.stashMarks[t]))return this.stashMarks.splice(t,1)[0]}applyPending(e){for(let t=0,n=this.pendingMarks;t<n.length;t++){let r=n[t];(this.type?this.type.allowsMarkType(r.type):ge(r.type,e))&&!r.isInSet(this.activeMarks)&&(this.activeMarks=r.addToSet(this.activeMarks),this.pendingMarks=r.removeFromSet(this.pendingMarks))}}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!oe.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class pe{constructor(e,t,n){this.parser=e,this.options=t,this.isOpen=n,this.open=0;let r,o=t.topNode,a=ue(null,t.preserveWhitespace,0)|(n?le:0);r=o?new de(o.type,o.attrs,d.none,d.none,!0,t.topMatch||o.type.contentMatch,a):new de(n?null:e.schema.topNodeType,null,d.none,d.none,!0,null,a),this.nodes=[r],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e){3==e.nodeType?this.addTextNode(e):1==e.nodeType&&this.addElement(e)}withStyleRules(e,t){let n=e.getAttribute("style");if(!n)return t();let r=this.readStyles(me(n));if(!r)return;let[o,a]=r,i=this.top;for(let s=0;s<a.length;s++)this.removePendingMark(a[s],i);for(let s=0;s<o.length;s++)this.addPendingMark(o[s]);t();for(let s=0;s<o.length;s++)this.removePendingMark(o[s],i);for(let s=0;s<a.length;s++)this.addPendingMark(a[s])}addTextNode(e){let t=e.nodeValue,n=this.top;if(n.options&ce||n.inlineContext(e)||/[^ \t\r\n\u000c]/.test(t)){if(n.options&se)t=n.options&ce?t.replace(/\r\n?/g,"\n"):t.replace(/\r?\n|\r/g," ");else if(t=t.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(t)&&this.open==this.nodes.length-1){let r=n.content[n.content.length-1],o=e.previousSibling;(!r||o&&"BR"==o.nodeName||r.isText&&/[ \t\r\n\u000c]$/.test(r.text))&&(t=t.slice(1))}t&&this.insertNode(this.parser.schema.text(t)),this.findInText(e)}else this.findInside(e)}addElement(e,t){let n,r=e.nodeName.toLowerCase();ie.hasOwnProperty(r)&&this.parser.normalizeLists&&fe(e);let o=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(n=this.parser.matchTag(e,this,t));if(o?o.ignore:ae.hasOwnProperty(r))this.findInside(e),this.ignoreFallback(e);else if(!o||o.skip||o.closeParent){o&&o.closeParent?this.open=Math.max(0,this.open-1):o&&o.skip.nodeType&&(e=o.skip);let t,n=this.top,a=this.needsBlock;if(oe.hasOwnProperty(r))n.content.length&&n.content[0].isInline&&this.open&&(this.open--,n=this.top),t=!0,n.type||(this.needsBlock=!0);else if(!e.firstChild)return void this.leafFallback(e);o&&o.skip?this.addAll(e):this.withStyleRules(e,()=>this.addAll(e)),t&&this.sync(n),this.needsBlock=a}else this.withStyleRules(e,()=>{this.addElementByRule(e,o,!1===o.consuming?n:void 0)})}leafFallback(e){"BR"==e.nodeName&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode("\n"))}ignoreFallback(e){"BR"!=e.nodeName||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text("-"))}readStyles(e){let t=d.none,n=d.none;for(let r=0;r<e.length;r+=2)for(let o=void 0;;){let a=this.parser.matchStyle(e[r],e[r+1],this,o);if(!a)break;if(a.ignore)return null;if(a.clearMark?this.top.pendingMarks.concat(this.top.activeMarks).forEach(e=>{a.clearMark(e)&&(n=e.addToSet(n))}):t=this.parser.schema.marks[a.mark].create(a.attrs).addToSet(t),!1!==a.consuming)break;o=a}return[t,n]}addElementByRule(e,t,n){let r,o,a;if(t.node)o=this.parser.schema.nodes[t.node],o.isLeaf?this.insertNode(o.create(t.attrs))||this.leafFallback(e):r=this.enter(o,t.attrs||null,t.preserveWhitespace);else{let e=this.parser.schema.marks[t.mark];a=e.create(t.attrs),this.addPendingMark(a)}let i=this.top;if(o&&o.isLeaf)this.findInside(e);else if(n)this.addElement(e,n);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(e=>this.insertNode(e));else{let n=e;"string"==typeof t.contentElement?n=e.querySelector(t.contentElement):"function"==typeof t.contentElement?n=t.contentElement(e):t.contentElement&&(n=t.contentElement),this.findAround(e,n,!0),this.addAll(n)}r&&this.sync(i)&&this.open--,a&&this.removePendingMark(a,i)}addAll(e,t,n){let r=t||0;for(let o=t?e.childNodes[t]:e.firstChild,a=null==n?null:e.childNodes[n];o!=a;o=o.nextSibling,++r)this.findAtPoint(e,r),this.addDOM(o);this.findAtPoint(e,r)}findPlace(e){let t,n;for(let r=this.open;r>=0;r--){let o=this.nodes[r],a=o.findWrapping(e);if(a&&(!t||t.length>a.length)&&(t=a,n=o,!a.length))break;if(o.solid)break}if(!t)return!1;this.sync(n);for(let r=0;r<t.length;r++)this.enterInner(t[r],null,!1);return!0}insertNode(e){if(e.isInline&&this.needsBlock&&!this.top.type){let e=this.textblockFromContext();e&&this.enterInner(e)}if(this.findPlace(e)){this.closeExtra();let t=this.top;t.applyPending(e.type),t.match&&(t.match=t.match.matchType(e.type));let n=t.activeMarks;for(let r=0;r<e.marks.length;r++)t.type&&!t.type.allowsMarkType(e.marks[r].type)||(n=e.marks[r].addToSet(n));return t.content.push(e.mark(n)),!0}return!1}enter(e,t,n){let r=this.findPlace(e.create(t));return r&&this.enterInner(e,t,!0,n),r}enterInner(e,t=null,n=!1,r){this.closeExtra();let o=this.top;o.applyPending(e),o.match=o.match&&o.match.matchType(e);let a=ue(e,r,o.options);o.options&le&&0==o.content.length&&(a|=le),this.nodes.push(new de(e,t,o.activeMarks,o.pendingMarks,n,null,a)),this.open++}closeExtra(e=!1){let t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync(e){for(let t=this.open;t>=0;t--)if(this.nodes[t]==e)return this.open=t,!0;return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let n=this.nodes[t].content;for(let t=n.length-1;t>=0;t--)e+=n[t].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&this.find[n].offset==t&&(this.find[n].pos=this.currentPos)}findInside(e){if(this.find)for(let t=0;t<this.find.length;t++)null==this.find[t].pos&&1==e.nodeType&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)}findAround(e,t,n){if(e!=t&&this.find)for(let r=0;r<this.find.length;r++)if(null==this.find[r].pos&&1==e.nodeType&&e.contains(this.find[r].node)){let e=t.compareDocumentPosition(this.find[r].node);e&(n?2:4)&&(this.find[r].pos=this.currentPos)}}findInText(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split("/"),n=this.options.context,r=!this.isOpen&&(!n||n.parent.type==this.nodes[0].type),o=-(n?n.depth+1:0)+(r?0:1),a=(e,i)=>{for(;e>=0;e--){let s=t[e];if(""==s){if(e==t.length-1||0==e)continue;for(;i>=o;i--)if(a(e-1,i))return!0;return!1}{let e=i>0||0==i&&r?this.nodes[i].type:n&&i>=o?n.node(i-o).type:null;if(!e||e.name!=s&&-1==e.groups.indexOf(s))return!1;i--}}return!0};return a(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let n=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(let t in this.parser.schema.nodes){let e=this.parser.schema.nodes[t];if(e.isTextblock&&e.defaultAttrs)return e}}addPendingMark(e){let t=_e(e,this.top.pendingMarks);t&&this.top.stashMarks.push(t),this.top.pendingMarks=e.addToSet(this.top.pendingMarks)}removePendingMark(e,t){for(let n=this.open;n>=0;n--){let r=this.nodes[n],o=r.pendingMarks.lastIndexOf(e);if(o>-1)r.pendingMarks=e.removeFromSet(r.pendingMarks);else{r.activeMarks=e.removeFromSet(r.activeMarks);let t=r.popFromStashMark(e);t&&r.type&&r.type.allowsMarkType(t.type)&&(r.activeMarks=t.addToSet(r.activeMarks))}if(r==t)break}}}function fe(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let e=1==t.nodeType?t.nodeName.toLowerCase():null;e&&ie.hasOwnProperty(e)&&n?(n.appendChild(t),t=n):"li"==e?n=t:e&&(n=null)}}function he(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function me(e){let t,n=/\s*([\w-]+)\s*:\s*([^;]+)/g,r=[];while(t=n.exec(e))r.push(t[1],t[2].trim());return r}function ve(e){let t={};for(let n in e)t[n]=e[n];return t}function ge(e,t){let n=t.schema.nodes;for(let r in n){let o=n[r];if(!o.allowsMarkType(e))continue;let a=[],i=e=>{a.push(e);for(let n=0;n<e.edgeCount;n++){let{type:r,next:o}=e.edge(n);if(r==t)return!0;if(a.indexOf(o)<0&&i(o))return!0}};if(i(o.contentMatch))return!0}}function _e(e,t){for(let n=0;n<t.length;n++)if(e.eq(t[n]))return t[n]}class ye{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},n){n||(n=Oe(t).createDocumentFragment());let r=n,o=[];return e.forEach(e=>{if(o.length||e.marks.length){let n=0,a=0;while(n<o.length&&a<e.marks.length){let t=e.marks[a];if(this.marks[t.type.name]){if(!t.eq(o[n][0])||!1===t.type.spec.spanning)break;n++,a++}else a++}while(n<o.length)r=o.pop()[1];while(a<e.marks.length){let n=e.marks[a++],i=this.serializeMark(n,e.isInline,t);i&&(o.push([n,r]),r.appendChild(i.dom),r=i.contentDOM||i.dom)}}r.appendChild(this.serializeNodeInner(e,t))}),n}serializeNodeInner(e,t){let{dom:n,contentDOM:r}=ye.renderSpec(Oe(t),this.nodes[e.type.name](e));if(r){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,t,r)}return n}serializeNode(e,t={}){let n=this.serializeNodeInner(e,t);for(let r=e.marks.length-1;r>=0;r--){let o=this.serializeMark(e.marks[r],e.isInline,t);o&&((o.contentDOM||o.dom).appendChild(n),n=o.dom)}return n}serializeMark(e,t,n={}){let r=this.marks[e.type.name];return r&&ye.renderSpec(Oe(n),r(e,t))}static renderSpec(e,t,n=null){if("string"==typeof t)return{dom:e.createTextNode(t)};if(null!=t.nodeType)return{dom:t};if(t.dom&&null!=t.dom.nodeType)return t;let r,o=t[0],a=o.indexOf(" ");a>0&&(n=o.slice(0,a),o=o.slice(a+1));let i=n?e.createElementNS(n,o):e.createElement(o),s=t[1],c=1;if(s&&"object"==typeof s&&null==s.nodeType&&!Array.isArray(s)){c=2;for(let e in s)if(null!=s[e]){let t=e.indexOf(" ");t>0?i.setAttributeNS(e.slice(0,t),e.slice(t+1),s[e]):i.setAttribute(e,s[e])}}for(let l=c;l<t.length;l++){let o=t[l];if(0===o){if(l<t.length-1||l>c)throw new RangeError("Content hole must be the only child of its parent node");return{dom:i,contentDOM:i}}{let{dom:t,contentDOM:a}=ye.renderSpec(e,o,n);if(i.appendChild(t),a){if(r)throw new RangeError("Multiple content holes");r=a}}}return{dom:i,contentDOM:r}}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new ye(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let t=be(e.nodes);return t.text||(t.text=e=>e.text),t}static marksFromSchema(e){return be(e.marks)}}function be(e){let t={};for(let n in e){let r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function Oe(e){return e.document||window.document}},"6f50":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}});return t}))},"6f89":function(e,t){},"6f8d":function(e,t,n){"use strict";var r=n("dfdb"),o=String,a=TypeError;e.exports=function(e){if(r(e))return e;throw a(o(e)+" is not an object")}},"6ffb":function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return I})),n.d(t,"c",(function(){return p})),n.d(t,"d",(function(){return T})),n.d(t,"e",(function(){return D})),n.d(t,"f",(function(){return i})),n.d(t,"g",(function(){return u}));var r=n("6f27"),o=n("b923");const a=Object.create(null);class i{constructor(e,t,n){this.$anchor=e,this.$head=t,this.ranges=n||[new s(e.min(t),e.max(t))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,t=r["j"].empty){let n=t.content.lastChild,o=null;for(let r=0;r<t.openEnd;r++)o=n,n=n.lastChild;let a=e.steps.length,i=this.ranges;for(let s=0;s<i.length;s++){let{$from:c,$to:l}=i[s],u=e.mapping.slice(a);e.replaceRange(u.map(c.pos),u.map(l.pos),s?r["j"].empty:t),0==s&&g(e,a,(n?n.isInline:o&&o.isTextblock)?-1:1)}}replaceWith(e,t){let n=e.steps.length,r=this.ranges;for(let o=0;o<r.length;o++){let{$from:a,$to:i}=r[o],s=e.mapping.slice(n),c=s.map(a.pos),l=s.map(i.pos);o?e.deleteRange(c,l):(e.replaceRangeWith(c,l,t),g(e,n,t.isInline?-1:1))}}static findFrom(e,t,n=!1){let r=e.parent.inlineContent?new u(e):v(e.node(0),e.parent,e.pos,e.index(),t,n);if(r)return r;for(let o=e.depth-1;o>=0;o--){let r=t<0?v(e.node(0),e.node(o),e.before(o+1),e.index(o),t,n):v(e.node(0),e.node(o),e.after(o+1),e.index(o)+1,t,n);if(r)return r}return null}static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new h(e.node(0))}static atStart(e){return v(e,e,0,0,1)||new h(e)}static atEnd(e){return v(e,e,e.content.size,e.childCount,-1)||new h(e)}static fromJSON(e,t){if(!t||!t.type)throw new RangeError("Invalid input for Selection.fromJSON");let n=a[t.type];if(!n)throw new RangeError(`No selection type ${t.type} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in a)throw new RangeError("Duplicate use of selection JSON ID "+e);return a[e]=t,t.prototype.jsonID=e,t}getBookmark(){return u.between(this.$anchor,this.$head).getBookmark()}}i.prototype.visible=!0;class s{constructor(e,t){this.$from=e,this.$to=t}}let c=!1;function l(e){c||e.parent.inlineContent||(c=!0,console["warn"]("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}class u extends i{constructor(e,t=e){l(e),l(t),super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,t){let n=e.resolve(t.map(this.head));if(!n.parent.inlineContent)return i.near(n);let r=e.resolve(t.map(this.anchor));return new u(r.parent.inlineContent?r:n,n)}replace(e,t=r["j"].empty){if(super.replace(e,t),t==r["j"].empty){let t=this.$from.marksAcross(this.$to);t&&e.ensureMarks(t)}}eq(e){return e instanceof u&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new d(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,t){if("number"!=typeof t.anchor||"number"!=typeof t.head)throw new RangeError("Invalid input for TextSelection.fromJSON");return new u(e.resolve(t.anchor),e.resolve(t.head))}static create(e,t,n=t){let r=e.resolve(t);return new this(r,n==t?r:e.resolve(n))}static between(e,t,n){let r=e.pos-t.pos;if(n&&!r||(n=r>=0?1:-1),!t.parent.inlineContent){let e=i.findFrom(t,n,!0)||i.findFrom(t,-n,!0);if(!e)return i.near(t,n);t=e.$head}return e.parent.inlineContent||(0==r?e=t:(e=(i.findFrom(e,-n,!0)||i.findFrom(e,n,!0)).$anchor,e.pos<t.pos!=r<0&&(e=t))),new u(e,t)}}i.jsonID("text",u);class d{constructor(e,t){this.anchor=e,this.head=t}map(e){return new d(e.map(this.anchor),e.map(this.head))}resolve(e){return u.between(e.resolve(this.anchor),e.resolve(this.head))}}class p extends i{constructor(e){let t=e.nodeAfter,n=e.node(0).resolve(e.pos+t.nodeSize);super(e,n),this.node=t}map(e,t){let{deleted:n,pos:r}=t.mapResult(this.anchor),o=e.resolve(r);return n?i.near(o):new p(o)}content(){return new r["j"](r["c"].from(this.node),0,0)}eq(e){return e instanceof p&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new f(this.anchor)}static fromJSON(e,t){if("number"!=typeof t.anchor)throw new RangeError("Invalid input for NodeSelection.fromJSON");return new p(e.resolve(t.anchor))}static create(e,t){return new p(e.resolve(t))}static isSelectable(e){return!e.isText&&!1!==e.type.spec.selectable}}p.prototype.visible=!1,i.jsonID("node",p);class f{constructor(e){this.anchor=e}map(e){let{deleted:t,pos:n}=e.mapResult(this.anchor);return t?new d(n,n):new f(n)}resolve(e){let t=e.resolve(this.anchor),n=t.nodeAfter;return n&&p.isSelectable(n)?new p(t):i.near(t)}}class h extends i{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,t=r["j"].empty){if(t==r["j"].empty){e.delete(0,e.doc.content.size);let t=i.atStart(e.doc);t.eq(e.selection)||e.setSelection(t)}else super.replace(e,t)}toJSON(){return{type:"all"}}static fromJSON(e){return new h(e)}map(e){return new h(e)}eq(e){return e instanceof h}getBookmark(){return m}}i.jsonID("all",h);const m={map(){return this},resolve(e){return new h(e)}};function v(e,t,n,r,o,a=!1){if(t.inlineContent)return u.create(e,n);for(let i=r-(o>0?0:1);o>0?i<t.childCount:i>=0;i+=o){let r=t.child(i);if(r.isAtom){if(!a&&p.isSelectable(r))return p.create(e,n-(o<0?r.nodeSize:0))}else{let t=v(e,r,n+o,o<0?r.childCount:0,o,a);if(t)return t}n+=r.nodeSize*o}return null}function g(e,t,n){let r=e.steps.length-1;if(r<t)return;let a=e.steps[r];if(!(a instanceof o["b"]||a instanceof o["a"]))return;let s,c=e.mapping.maps[r];c.forEach((e,t,n,r)=>{null==s&&(s=r)}),e.setSelection(i.near(e.doc.resolve(s),n))}const _=1,y=2,b=4;class O extends o["c"]{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(e){if(e.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=(this.updated|_)&~y,this.storedMarks=null,this}get selectionSet(){return(this.updated&_)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=y,this}ensureMarks(e){return r["d"].sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&y)>0}addStep(e,t){super.addStep(e,t),this.updated=this.updated&~y,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,t=!0){let n=this.selection;return t&&(e=e.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||r["d"].none))),n.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,t,n){let r=this.doc.type.schema;if(null==t)return e?this.replaceSelectionWith(r.text(e),!0):this.deleteSelection();{if(null==n&&(n=t),n=null==n?t:n,!e)return this.deleteRange(t,n);let o=this.storedMarks;if(!o){let e=this.doc.resolve(t);o=n==t?e.marks():e.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(t,n,r.text(e,o)),this.selection.empty||this.setSelection(i.near(this.selection.$to)),this}}setMeta(e,t){return this.meta["string"==typeof e?e:e.key]=t,this}getMeta(e){return this.meta["string"==typeof e?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=b,this}get scrolledIntoView(){return(this.updated&b)>0}}function M(e,t){return t&&e?e.bind(t):e}class k{constructor(e,t,n){this.name=e,this.init=M(t.init,n),this.apply=M(t.apply,n)}}const C=[new k("doc",{init(e){return e.doc||e.schema.topNodeType.createAndFill()},apply(e){return e.doc}}),new k("selection",{init(e,t){return e.selection||i.atStart(t.doc)},apply(e){return e.selection}}),new k("storedMarks",{init(e){return e.storedMarks||null},apply(e,t,n,r){return r.selection.$cursor?e.storedMarks:null}}),new k("scrollToSelection",{init(){return 0},apply(e,t){return e.scrolledIntoView?t+1:t}})];class w{constructor(e,t){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=C.slice(),t&&t.forEach(e=>{if(this.pluginsByKey[e.key])throw new RangeError("Adding different instances of a keyed plugin ("+e.key+")");this.plugins.push(e),this.pluginsByKey[e.key]=e,e.spec.state&&this.fields.push(new k(e.key,e.spec.state,e))})}}class I{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,t=-1){for(let n=0;n<this.config.plugins.length;n++)if(n!=t){let t=this.config.plugins[n];if(t.spec.filterTransaction&&!t.spec.filterTransaction.call(t,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let t=[e],n=this.applyInner(e),r=null;for(;;){let o=!1;for(let a=0;a<this.config.plugins.length;a++){let i=this.config.plugins[a];if(i.spec.appendTransaction){let s=r?r[a].n:0,c=r?r[a].state:this,l=s<t.length&&i.spec.appendTransaction.call(i,s?t.slice(s):t,c,n);if(l&&n.filterTransaction(l,a)){if(l.setMeta("appendedTransaction",e),!r){r=[];for(let e=0;e<this.config.plugins.length;e++)r.push(e<a?{state:n,n:t.length}:{state:this,n:0})}t.push(l),n=n.applyInner(l),o=!0}r&&(r[a]={state:n,n:t.length})}}if(!o)return{state:n,transactions:t}}}applyInner(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let t=new I(this.config),n=this.config.fields;for(let r=0;r<n.length;r++){let o=n[r];t[o.name]=o.apply(e,this[o.name],this,t)}return t}get tr(){return new O(this)}static create(e){let t=new w(e.doc?e.doc.type.schema:e.schema,e.plugins),n=new I(t);for(let r=0;r<t.fields.length;r++)n[t.fields[r].name]=t.fields[r].init(e,n);return n}reconfigure(e){let t=new w(this.schema,e.plugins),n=t.fields,r=new I(t);for(let o=0;o<n.length;o++){let t=n[o].name;r[t]=this.hasOwnProperty(t)?this[t]:n[o].init(e,r)}return r}toJSON(e){let t={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(t.storedMarks=this.storedMarks.map(e=>e.toJSON())),e&&"object"==typeof e)for(let n in e){if("doc"==n||"selection"==n)throw new RangeError("The JSON fields `doc` and `selection` are reserved");let r=e[n],o=r.spec.state;o&&o.toJSON&&(t[n]=o.toJSON.call(r,this[r.key]))}return t}static fromJSON(e,t,n){if(!t)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let o=new w(e.schema,e.plugins),a=new I(o);return o.fields.forEach(o=>{if("doc"==o.name)a.doc=r["f"].fromJSON(e.schema,t.doc);else if("selection"==o.name)a.selection=i.fromJSON(a.doc,t.selection);else if("storedMarks"==o.name)t.storedMarks&&(a.storedMarks=t.storedMarks.map(e.schema.markFromJSON));else{if(n)for(let r in n){let i=n[r],s=i.spec.state;if(i.key==o.name&&s&&s.fromJSON&&Object.prototype.hasOwnProperty.call(t,r))return void(a[o.name]=s.fromJSON.call(i,e,t[r],a))}a[o.name]=o.init(e,a)}}),a}}function S(e,t,n){for(let r in e){let o=e[r];o instanceof Function?o=o.bind(t):"handleDOMEvents"==r&&(o=S(o,t,{})),n[r]=o}return n}class T{constructor(e){this.spec=e,this.props={},e.props&&S(e.props,this,this.props),this.key=e.key?e.key.key:j("plugin")}getState(e){return e[this.key]}}const E=Object.create(null);function j(e){return e in E?e+"$"+ ++E[e]:(E[e]=0,e+"$")}class D{constructor(e="key"){this.key=j(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}},7042:function(e,t,n){"use strict";e.exports=!0},7043:function(e,t,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,a=o&&!r.call({1:2},1);t.f=a?function(e){var t=o(this,e);return!!t&&t.enumerable}:r},7106:function(e,t,n){"use strict";var r=n("a180"),o=Function.prototype.call;e.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},7116:function(e,t,n){"use strict";var r=n("a5eb"),o=n("4fff"),a=n("4508"),i=n("c7d2"),s=n("c74f"),c=n("ffb3"),l=n("3e23"),u=n("4344"),d=n("6c15"),p=n("741b"),f=n("9c96"),h=f("splice"),m=Math.max,v=Math.min;r({target:"Array",proto:!0,forced:!h},{splice:function(e,t){var n,r,f,h,g,_,y=o(this),b=s(y),O=a(e,b),M=arguments.length;for(0===M?n=r=0:1===M?(n=0,r=b-O):(n=M-2,r=v(m(i(t),0),b-O)),l(b+n-r),f=u(y,r),h=0;h<r;h++)g=O+h,g in y&&d(f,h,y[g]);if(f.length=r,n<r){for(h=O;h<b-r;h++)g=h+r,_=h+n,g in y?y[_]=y[g]:p(y,_);for(h=b;h>b-r+n;h--)p(y,h-1)}else if(n>r)for(h=b-r;h>O;h--)g=h+r-1,_=h+n-1,g in y?y[_]=y[g]:p(y,_);for(h=0;h<n;h++)y[h+O]=arguments[h+2];return c(y,b-r+n),f}})},7118:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),n="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),r=e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}});return r}))},"711e":function(e,t,n){"use strict";var r=n("a5eb"),o=n("680e"),a=n("c44e");r({target:"Array",proto:!0},{fill:o}),a("fill")},"712a":function(e,t,n){(function(e,r){r(t,n("b8ca"))})(0,(function(e,t){"use strict";const n=Math.min,r=Math.max,o=Math.round,a=Math.floor,i=e=>({x:e,y:e});function s(e){return u(e)?(e.nodeName||"").toLowerCase():"#document"}function c(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function l(e){var t;return null==(t=(u(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function u(e){return e instanceof Node||e instanceof c(e).Node}function d(e){return e instanceof Element||e instanceof c(e).Element}function p(e){return e instanceof HTMLElement||e instanceof c(e).HTMLElement}function f(e){return"undefined"!==typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof c(e).ShadowRoot)}function h(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=b(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function m(e){return["table","td","th"].includes(s(e))}function v(e){const t=_(),n=b(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function g(e){let t=M(e);while(p(t)&&!y(t)){if(v(t))return t;t=M(t)}return null}function _(){return!("undefined"===typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function y(e){return["html","body","#document"].includes(s(e))}function b(e){return c(e).getComputedStyle(e)}function O(e){return d(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function M(e){if("html"===s(e))return e;const t=e.assignedSlot||e.parentNode||f(e)&&e.host||l(e);return f(t)?t.host:t}function k(e){const t=M(e);return y(t)?e.ownerDocument?e.ownerDocument.body:e.body:p(t)&&h(t)?t:k(t)}function C(e,t){var n;void 0===t&&(t=[]);const r=k(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=c(r);return o?t.concat(a,a.visualViewport||[],h(r)?r:[]):t.concat(r,C(r))}function w(e){const t=b(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=p(e),i=a?e.offsetWidth:n,s=a?e.offsetHeight:r,c=o(n)!==i||o(r)!==s;return c&&(n=i,r=s),{width:n,height:r,$:c}}function I(e){return d(e)?e:e.contextElement}function S(e){const t=I(e);if(!p(t))return i(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:s}=w(t);let c=(s?o(n.width):n.width)/r,l=(s?o(n.height):n.height)/a;return c&&Number.isFinite(c)||(c=1),l&&Number.isFinite(l)||(l=1),{x:c,y:l}}const T=i(0);function E(e){const t=c(e);return _()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:T}function j(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==c(e))&&t}function D(e,n,r,o){void 0===n&&(n=!1),void 0===r&&(r=!1);const a=e.getBoundingClientRect(),s=I(e);let l=i(1);n&&(o?d(o)&&(l=S(o)):l=S(e));const u=j(s,r,o)?E(s):i(0);let p=(a.left+u.x)/l.x,f=(a.top+u.y)/l.y,h=a.width/l.x,m=a.height/l.y;if(s){const e=c(s),t=o&&d(o)?c(o):o;let n=e.frameElement;while(n&&o&&t!==e){const e=S(n),t=n.getBoundingClientRect(),r=b(n),o=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;p*=e.x,f*=e.y,h*=e.x,m*=e.y,p+=o,f+=a,n=c(n).frameElement}}return t.rectToClientRect({width:h,height:m,x:p,y:f})}function L(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=p(n),a=l(n);if(n===a)return t;let c={scrollLeft:0,scrollTop:0},u=i(1);const d=i(0);if((o||!o&&"fixed"!==r)&&(("body"!==s(n)||h(a))&&(c=O(n)),p(n))){const e=D(n);u=S(n),d.x=e.x+n.clientLeft,d.y=e.y+n.clientTop}return{width:t.width*u.x,height:t.height*u.y,x:t.x*u.x-c.scrollLeft*u.x+d.x,y:t.y*u.y-c.scrollTop*u.y+d.y}}function A(e){return Array.from(e.getClientRects())}function N(e){return D(l(e)).left+O(e).scrollLeft}function x(e){const t=l(e),n=O(e),o=e.ownerDocument.body,a=r(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=r(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+N(e);const c=-n.scrollTop;return"rtl"===b(o).direction&&(s+=r(t.clientWidth,o.clientWidth)-a),{width:a,height:i,x:s,y:c}}function R(e,t){const n=c(e),r=l(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,s=0,u=0;if(o){a=o.width,i=o.height;const e=_();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,u=o.offsetTop)}return{width:a,height:i,x:s,y:u}}function P(e,t){const n=D(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=p(e)?S(e):i(1),s=e.clientWidth*a.x,c=e.clientHeight*a.y,l=o*a.x,u=r*a.y;return{width:s,height:c,x:l,y:u}}function U(e,n,r){let o;if("viewport"===n)o=R(e,r);else if("document"===n)o=x(l(e));else if(d(n))o=P(n,r);else{const t=E(e);o={...n,x:n.x-t.x,y:n.y-t.y}}return t.rectToClientRect(o)}function V(e,t){const n=M(e);return!(n===t||!d(n)||y(n))&&("fixed"===b(n).position||V(n,t))}function B(e,t){const n=t.get(e);if(n)return n;let r=C(e).filter(e=>d(e)&&"body"!==s(e)),o=null;const a="fixed"===b(e).position;let i=a?M(e):e;while(d(i)&&!y(i)){const t=b(i),n=v(i);n||"fixed"!==t.position||(o=null);const s=a?!n&&!o:!n&&"static"===t.position&&!!o&&["absolute","fixed"].includes(o.position)||h(i)&&!n&&V(e,i);s?r=r.filter(e=>e!==i):o=t,i=M(i)}return t.set(e,r),r}function F(e){let{element:t,boundary:o,rootBoundary:a,strategy:i}=e;const s="clippingAncestors"===o?B(t,this._c):[].concat(o),c=[...s,a],l=c[0],u=c.reduce((e,o)=>{const a=U(t,o,i);return e.top=r(a.top,e.top),e.right=n(a.right,e.right),e.bottom=n(a.bottom,e.bottom),e.left=r(a.left,e.left),e},U(t,l,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function G(e){return w(e)}function z(e,t,n){const r=p(t),o=l(t),a="fixed"===n,c=D(e,!0,a,t);let u={scrollLeft:0,scrollTop:0};const d=i(0);if(r||!r&&!a)if(("body"!==s(t)||h(o))&&(u=O(t)),r){const e=D(t,!0,a,t);d.x=e.x+t.clientLeft,d.y=e.y+t.clientTop}else o&&(d.x=N(o));return{x:c.left+u.scrollLeft-d.x,y:c.top+u.scrollTop-d.y,width:c.width,height:c.height}}function H(e,t){return p(e)&&"fixed"!==b(e).position?t?t(e):e.offsetParent:null}function Y(e,t){const n=c(e);if(!p(e))return n;let r=H(e,t);while(r&&m(r)&&"static"===b(r).position)r=H(r,t);return r&&("html"===s(r)||"body"===s(r)&&"static"===b(r).position&&!v(r))?n:r||g(e)||n}const q=async function(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||Y,a=this.getDimensions;return{reference:z(t,await o(n),r),floating:{x:0,y:0,...await a(n)}}};function W(e){return"rtl"===b(e).direction}const K={convertOffsetParentRelativeRectToViewportRelativeRect:L,getDocumentElement:l,getClippingRect:F,getOffsetParent:Y,getElementRects:q,getClientRects:A,getDimensions:G,getScale:S,isElement:d,isRTL:W};function $(e,t){let o,i=null;const s=l(e);function c(){clearTimeout(o),i&&i.disconnect(),i=null}function u(l,d){void 0===l&&(l=!1),void 0===d&&(d=1),c();const{left:p,top:f,width:h,height:m}=e.getBoundingClientRect();if(l||t(),!h||!m)return;const v=a(f),g=a(s.clientWidth-(p+h)),_=a(s.clientHeight-(f+m)),y=a(p),b=-v+"px "+-g+"px "+-_+"px "+-y+"px",O={rootMargin:b,threshold:r(0,n(1,d))||1};let M=!0;function k(e){const t=e[0].intersectionRatio;if(t!==d){if(!M)return u();t?u(!1,t):o=setTimeout(()=>{u(!1,1e-7)},100)}M=!1}try{i=new IntersectionObserver(k,{...O,root:s.ownerDocument})}catch(C){i=new IntersectionObserver(k,O)}i.observe(e)}return u(!0),c}function J(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i="function"===typeof ResizeObserver,layoutShift:s="function"===typeof IntersectionObserver,animationFrame:c=!1}=r,l=I(e),u=o||a?[...l?C(l):[],...C(t)]:[];u.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)});const d=l&&s?$(l,n):null;let p,f=-1,h=null;i&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{h&&h.observe(t)})),n()}),l&&!c&&h.observe(l),h.observe(t));let m=c?D(e):null;function v(){const t=D(e);!m||t.x===m.x&&t.y===m.y&&t.width===m.width&&t.height===m.height||n(),m=t,p=requestAnimationFrame(v)}return c&&v(),n(),()=>{u.forEach(e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),d&&d(),h&&h.disconnect(),h=null,c&&cancelAnimationFrame(p)}}const Q=(e,n,r)=>{const o=new Map,a={platform:K,...r},i={...a.platform,_c:o};return t.computePosition(e,n,{...a,platform:i})};Object.defineProperty(e,"arrow",{enumerable:!0,get:function(){return t.arrow}}),Object.defineProperty(e,"autoPlacement",{enumerable:!0,get:function(){return t.autoPlacement}}),Object.defineProperty(e,"detectOverflow",{enumerable:!0,get:function(){return t.detectOverflow}}),Object.defineProperty(e,"flip",{enumerable:!0,get:function(){return t.flip}}),Object.defineProperty(e,"hide",{enumerable:!0,get:function(){return t.hide}}),Object.defineProperty(e,"inline",{enumerable:!0,get:function(){return t.inline}}),Object.defineProperty(e,"limitShift",{enumerable:!0,get:function(){return t.limitShift}}),Object.defineProperty(e,"offset",{enumerable:!0,get:function(){return t.offset}}),Object.defineProperty(e,"shift",{enumerable:!0,get:function(){return t.shift}}),Object.defineProperty(e,"size",{enumerable:!0,get:function(){return t.size}}),e.autoUpdate=J,e.computePosition=Q,e.getOverflowAncestors=C,e.platform=K}))},7156:function(e,t,n){"use strict";var r=n("1626"),o=n("861d"),a=n("d2bb");e.exports=function(e,t,n){var i,s;return a&&r(i=t.constructor)&&i!==n&&o(s=i.prototype)&&s!==n.prototype&&a(e,s),e}},"715d":function(e,t){},7168:function(e,t,n){"use strict";var r=n("7106"),o=n("dfdb"),a=n("c978"),i=n("f8b6"),s=n("a3f5"),c=n("0363"),l=TypeError,u=c("toPrimitive");e.exports=function(e,t){if(!o(e)||a(e))return e;var n,c=i(e,u);if(c){if(void 0===t&&(t="default"),n=r(c,e,t),!o(n)||a(n))return n;throw l("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},"716a":function(e,t,n){"use strict";n("8e5c"),n("9103"),n("6f89"),n("6813"),n("84d2"),n("75df"),n("362a"),n("3e47");var r=n("764b");e.exports=r.Promise},"718c":function(e,t,n){"use strict";n("9103");var r=n("a5eb"),o=n("3ac6"),a=n("7106"),i=n("ce18"),s=n("c1b2"),c=n("36b8"),l=n("fdbe"),u=n("2296"),d=n("bc4a"),p=n("2874"),f=n("99da"),h=n("2f5a"),m=n("5f7d"),v=n("fb2d"),g=n("0e6f"),_=n("6414"),y=n("8f95"),b=n("6f8d"),O=n("dfdb"),M=n("8c12"),k=n("4896"),C=n("2c6c"),w=n("d9f3"),I=n("0b7b"),S=n("f868"),T=n("0363"),E=n("ade5"),j=T("iterator"),D="URLSearchParams",L=D+"Iterator",A=h.set,N=h.getterFor(D),x=h.getterFor(L),R=Object.getOwnPropertyDescriptor,P=function(e){if(!s)return o[e];var t=R(o,e);return t&&t.value},U=P("fetch"),V=P("Request"),B=P("Headers"),F=V&&V.prototype,G=B&&B.prototype,z=o.RegExp,H=o.TypeError,Y=o.decodeURIComponent,q=o.encodeURIComponent,W=i("".charAt),K=i([].join),$=i([].push),J=i("".replace),Q=i([].shift),X=i([].splice),Z=i("".split),ee=i("".slice),te=/\+/g,ne=Array(4),re=function(e){return ne[e-1]||(ne[e-1]=z("((?:%[\\da-f]{2}){"+e+"})","gi"))},oe=function(e){try{return Y(e)}catch(t){return e}},ae=function(e){var t=J(e,te," "),n=4;try{return Y(t)}catch(r){while(n)t=J(t,re(n--),oe);return t}},ie=/[!'()~]|%20/g,se={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ce=function(e){return se[e]},le=function(e){return J(q(e),ie,ce)},ue=f((function(e,t){A(this,{type:L,iterator:w(N(e).entries),kind:t})}),"Iterator",(function(){var e=x(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}),!0),de=function(e){this.entries=[],this.url=null,void 0!==e&&(O(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===W(e,0)?ee(e,1):e:M(e)))};de.prototype={type:D,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,o,i,s,c,l=I(e);if(l){t=w(e,l),n=t.next;while(!(r=a(n,t)).done){if(o=w(b(r.value)),i=o.next,(s=a(i,o)).done||(c=a(i,o)).done||!a(i,o).done)throw H("Expected sequence with length 2");$(this.entries,{key:M(s.value),value:M(c.value)})}}else for(var u in e)g(e,u)&&$(this.entries,{key:u,value:M(e[u])})},parseQuery:function(e){if(e){var t,n,r=Z(e,"&"),o=0;while(o<r.length)t=r[o++],t.length&&(n=Z(t,"="),$(this.entries,{key:ae(Q(n)),value:ae(K(n,"="))}))}},serialize:function(){var e,t=this.entries,n=[],r=0;while(r<t.length)e=t[r++],$(n,le(e.key)+"="+le(e.value));return K(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var pe=function(){m(this,fe);var e=arguments.length>0?arguments[0]:void 0,t=A(this,new de(e));s||(this.size=t.entries.length)},fe=pe.prototype;if(d(fe,{append:function(e,t){var n=N(this);S(arguments.length,2),$(n.entries,{key:M(e),value:M(t)}),s||this.length++,n.updateURL()},delete:function(e){var t=N(this),n=S(arguments.length,1),r=t.entries,o=M(e),a=n<2?void 0:arguments[1],i=void 0===a?a:M(a),c=0;while(c<r.length){var l=r[c];if(l.key!==o||void 0!==i&&l.value!==i)c++;else if(X(r,c,1),void 0!==i)break}s||(this.size=r.length),t.updateURL()},get:function(e){var t=N(this).entries;S(arguments.length,1);for(var n=M(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){var t=N(this).entries;S(arguments.length,1);for(var n=M(e),r=[],o=0;o<t.length;o++)t[o].key===n&&$(r,t[o].value);return r},has:function(e){var t=N(this).entries,n=S(arguments.length,1),r=M(e),o=n<2?void 0:arguments[1],a=void 0===o?o:M(o),i=0;while(i<t.length){var s=t[i++];if(s.key===r&&(void 0===a||s.value===a))return!0}return!1},set:function(e,t){var n=N(this);S(arguments.length,1);for(var r,o=n.entries,a=!1,i=M(e),c=M(t),l=0;l<o.length;l++)r=o[l],r.key===i&&(a?X(o,l--,1):(a=!0,r.value=c));a||$(o,{key:i,value:c}),s||(this.size=o.length),n.updateURL()},sort:function(){var e=N(this);E(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){var t,n=N(this).entries,r=_(e,arguments.length>1?arguments[1]:void 0),o=0;while(o<n.length)t=n[o++],r(t.value,t.key,this)},keys:function(){return new ue(this,"keys")},values:function(){return new ue(this,"values")},entries:function(){return new ue(this,"entries")}},{enumerable:!0}),l(fe,j,fe.entries,{name:"entries"}),l(fe,"toString",(function(){return N(this).serialize()}),{enumerable:!0}),s&&u(fe,"size",{get:function(){return N(this).entries.length},configurable:!0,enumerable:!0}),p(pe,D),r({global:!0,constructor:!0,forced:!c},{URLSearchParams:pe}),!c&&v(B)){var he=i(G.has),me=i(G.set),ve=function(e){if(O(e)){var t,n=e.body;if(y(n)===D)return t=e.headers?new B(e.headers):new B,he(t,"content-type")||me(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),k(e,{body:C(0,M(n)),headers:C(0,t)})}return e};if(v(U)&&r({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return U(e,arguments.length>1?ve(arguments[1]):{})}}),v(V)){var ge=function(e){return m(this,F),new V(e,arguments.length>1?ve(arguments[1]):{})};F.constructor=ge,ge.prototype=F,r({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:ge})}}e.exports={URLSearchParams:pe,getState:N}},7190:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n("7a23"),o=n("1175"),a=n("304f"),i=n("8afb"),s=n("0931"),c=n("0e69"),l=n("c79f");const u=(e,t={})=>{Object(r["isRef"])(e)||Object(i["b"])("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||Object(a["d"])("popup"),u=Object(o["computed"])(()=>n.bm("parent","hidden"));if(!s["isClient"]||Object(c["d"])(document.body,u.value))return;let d=0,p=!1,f="0";const h=()=>{setTimeout(()=>{Object(c["e"])(null==document?void 0:document.body,u.value),p&&document&&(document.body.style.width=f)},200)};Object(r["watch"])(e,e=>{if(!e)return void h();p=!Object(c["d"])(document.body,u.value),p&&(f=document.body.style.width),d=Object(l["a"])(n.namespace.value);const t=document.documentElement.clientHeight<document.body.scrollHeight,r=Object(c["c"])(document.body,"overflowY");d>0&&(t||"scroll"===r)&&p&&(document.body.style.width=`calc(100% - ${d}px)`),Object(c["a"])(document.body,u.value)}),Object(r["onScopeDispose"])(()=>h())}},7234:function(e,t,n){"use strict";e.exports=function(e){return null===e||void 0===e}},7282:function(e,t,n){"use strict";var r=n("e330"),o=n("59ed");e.exports=function(e,t,n){try{return r(o(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(a){}}},"72a5":function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return r})),n.d(t,"e",(function(){return i})),n.d(t,"f",(function(){return u})),n.d(t,"g",(function(){return l})),n.d(t,"h",(function(){return c}));const r="focus-trap.focus-after-trapped",o="focus-trap.focus-after-released",a="focus-trap.focusout-prevented",i={cancelable:!0,bubbles:!1},s={cancelable:!0,bubbles:!1},c="focusAfterTrapped",l="focusAfterReleased",u=Symbol("elFocusTrap")},7328:function(e,t,n){"use strict";n("6140");var r=n("764b");e.exports=r.Number.parseInt},7333:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}});return t}))},"740b":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tinycolor=t.TinyColor=void 0;var r=n("d756"),o=n("fc75"),a=n("4af5"),i=n("1127"),s=function(){function e(t,n){var o;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"===typeof t&&(t=(0,r.numberInputToObject)(t)),this.originalInput=t;var i=(0,a.inputToRGB)(t);this.originalInput=t,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(o=n.format)&&void 0!==o?o:i.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=i.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,a=r.g/255,i=r.b/255;return e=o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4),t=a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4),n=i<=.03928?i/12.92:Math.pow((i+.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=(0,i.boundAlpha)(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var e=this.toHsl().s;return 0===e},e.prototype.toHsv=function(){var e=(0,r.rgbToHsv)(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=(0,r.rgbToHsv)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=(0,r.rgbToHsl)(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=(0,r.rgbToHsl)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),(0,r.rgbToHex)(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),(0,r.rgbaToHex)(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.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(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*(0,i.bound01)(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*(0,i.bound01)(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="#"+(0,r.rgbToHex)(this.r,this.g,this.b,!1),t=0,n=Object.entries(o.names);t<n.length;t++){var a=n[t],i=a[0],s=a[1];if(e===s)return i}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=(0,i.clamp01)(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=(0,i.clamp01)(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=(0,i.clamp01)(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=(0,i.clamp01)(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(),a=n/100,i={r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b,a:(o.a-r.a)*a+r.a};return new e(i)},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,a=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,a.push(new e(r));return a},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,a=n.v,i=[],s=1/t;while(t--)i.push(new e({h:r,s:o,v:a})),a=(a+s)%1;return i},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(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},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],a=360/t,i=1;i<t;i++)o.push(new e({h:(r+i*a)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function c(e,t){return void 0===e&&(e=""),void 0===t&&(t={}),new s(e,t)}t.TinyColor=s,t.tinycolor=c},7418:function(e,t,n){"use strict";t.f=Object.getOwnPropertySymbols},"741b":function(e,t,n){"use strict";var r=n("1301"),o=TypeError;e.exports=function(e,t){if(!delete e[t])throw o("Cannot delete property "+r(t)+" of "+r(e))}},7437:function(e,t,n){},7463:function(e,t,n){"use strict";e.exports={}},"74a0":function(e,t,n){"use strict";
|
||
/*!
|
||
* escape-html
|
||
* Copyright(c) 2012-2013 TJ Holowaychuk
|
||
* Copyright(c) 2015 Andreas Lubbe
|
||
* Copyright(c) 2015 Tiancheng "Timothy" Gu
|
||
* MIT Licensed
|
||
*/var r=/["'&<>]/;function o(e){var t,n=""+e,o=r.exec(n);if(!o)return n;var a="",i=0,s=0;for(i=o.index;i<n.length;i++){switch(n.charCodeAt(i)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}s!==i&&(a+=n.substring(s,i)),s=i+1,a+=t}return s!==i?a+n.substring(s,i):a}e.exports=o},"74dc":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}});return t}))},"75df":function(e,t,n){"use strict";var r=n("a5eb"),o=n("7106"),a=n("4e19"),i=n("9883"),s=n("ad27"),c=n("9b8d"),l=n("5b57"),u=n("f135"),d="No one promise resolved";r({target:"Promise",stat:!0,forced:u},{any:function(e){var t=this,n=i("AggregateError"),r=s.f(t),u=r.resolve,p=r.reject,f=c((function(){var r=a(t.resolve),i=[],s=0,c=1,f=!1;l(e,(function(e){var a=s++,l=!1;c++,o(r,t,e).then((function(e){l||f||(f=!0,u(e))}),(function(e){l||f||(l=!0,i[a]=e,--c||p(new n(i,d)))}))})),--c||p(new n(i,d))}));return f.error&&p(f.value),r.promise}})},"764b":function(e,t,n){"use strict";e.exports={}},"766b":function(e,t,n){"use strict";var r=n("4896"),o=n("2296"),a=n("bc4a"),i=n("6414"),s=n("5f7d"),c=n("0b1d"),l=n("5b57"),u=n("b7a8"),d=n("ddb5"),p=n("d383"),f=n("c1b2"),h=n("6594").fastKey,m=n("2f5a"),v=m.set,g=m.getterFor;e.exports={getConstructor:function(e,t,n,u){var d=e((function(e,o){s(e,p),v(e,{type:t,index:r(null),first:void 0,last:void 0,size:0}),f||(e.size=0),c(o)||l(o,e[u],{that:e,AS_ENTRIES:n})})),p=d.prototype,m=g(t),_=function(e,t,n){var r,o,a=m(e),i=y(e,t);return i?i.value=n:(a.last=i={index:o=h(t,!0),key:t,value:n,previous:r=a.last,next:void 0,removed:!1},a.first||(a.first=i),r&&(r.next=i),f?a.size++:e.size++,"F"!==o&&(a.index[o]=i)),e},y=function(e,t){var n,r=m(e),o=h(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return a(p,{clear:function(){var e=this,t=m(e),n=t.index,r=t.first;while(r)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete n[r.index],r=r.next;t.first=t.last=void 0,f?t.size=0:e.size=0},delete:function(e){var t=this,n=m(t),r=y(t,e);if(r){var o=r.next,a=r.previous;delete n.index[r.index],r.removed=!0,a&&(a.next=o),o&&(o.previous=a),n.first==r&&(n.first=o),n.last==r&&(n.last=a),f?n.size--:t.size--}return!!r},forEach:function(e){var t,n=m(this),r=i(e,arguments.length>1?arguments[1]:void 0);while(t=t?t.next:n.first){r(t.value,t.key,this);while(t&&t.removed)t=t.previous}},has:function(e){return!!y(this,e)}}),a(p,n?{get:function(e){var t=y(this,e);return t&&t.value},set:function(e,t){return _(this,0===e?0:e,t)}}:{add:function(e){return _(this,e=0===e?0:e,e)}}),f&&o(p,"size",{configurable:!0,get:function(){return m(this).size}}),d},setStrong:function(e,t,n){var r=t+" Iterator",o=g(t),a=g(r);u(e,t,(function(e,t){v(this,{type:r,target:e,state:o(e),kind:t,last:void 0})}),(function(){var e=a(this),t=e.kind,n=e.last;while(n&&n.removed)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?d("keys"==t?n.key:"values"==t?n.value:[n.key,n.value],!1):(e.target=void 0,d(void 0,!0))}),n?"entries":"values",!n,!0),p(t)}}},7685:function(e,t,n){"use strict";var r=n("3ac6"),o=n("13a1"),a="__core-js_shared__",i=r[a]||o(a,{});e.exports=i},"77b2":function(e,t,n){"use strict";var r=n("c1b2"),o=n("06fa"),a=n("7a37");e.exports=!r&&!o((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},7839:function(e,t,n){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"78a2":function(e,t,n){"use strict";e.exports={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}},"78b2":function(e,t,n){e.exports=n("b5b3")},"793c":function(e,t,n){"use strict";n("af81");var r=n("764b");e.exports=r.parseInt},"7a23":function(e,t,n){"use strict";n.r(t),n.d(t,"EffectScope",(function(){return a})),n.d(t,"ReactiveEffect",(function(){return M})),n.d(t,"customRef",(function(){return nt})),n.d(t,"effect",(function(){return C})),n.d(t,"effectScope",(function(){return i})),n.d(t,"getCurrentScope",(function(){return c})),n.d(t,"isProxy",(function(){return Ue})),n.d(t,"isReactive",(function(){return xe})),n.d(t,"isReadonly",(function(){return Re})),n.d(t,"isRef",(function(){return Ye})),n.d(t,"isShallow",(function(){return Pe})),n.d(t,"markRaw",(function(){return Be})),n.d(t,"onScopeDispose",(function(){return l})),n.d(t,"proxyRefs",(function(){return et})),n.d(t,"reactive",(function(){return je})),n.d(t,"readonly",(function(){return Le})),n.d(t,"ref",(function(){return qe})),n.d(t,"shallowReactive",(function(){return De})),n.d(t,"shallowReadonly",(function(){return Ae})),n.d(t,"shallowRef",(function(){return We})),n.d(t,"stop",(function(){return w})),n.d(t,"toRaw",(function(){return Ve})),n.d(t,"toRef",(function(){return it})),n.d(t,"toRefs",(function(){return rt})),n.d(t,"toValue",(function(){return Xe})),n.d(t,"triggerRef",(function(){return Je})),n.d(t,"unref",(function(){return Qe})),n.d(t,"camelize",(function(){return r["camelize"]})),n.d(t,"capitalize",(function(){return r["capitalize"]})),n.d(t,"normalizeClass",(function(){return r["normalizeClass"]})),n.d(t,"normalizeProps",(function(){return r["normalizeProps"]})),n.d(t,"normalizeStyle",(function(){return r["normalizeStyle"]})),n.d(t,"toDisplayString",(function(){return r["toDisplayString"]})),n.d(t,"toHandlerKey",(function(){return r["toHandlerKey"]})),n.d(t,"BaseTransition",(function(){return Ln})),n.d(t,"BaseTransitionPropsValidators",(function(){return jn})),n.d(t,"Comment",(function(){return ea})),n.d(t,"Fragment",(function(){return Xo})),n.d(t,"KeepAlive",(function(){return Yn})),n.d(t,"Static",(function(){return ta})),n.d(t,"Suspense",(function(){return an})),n.d(t,"Teleport",(function(){return Jo})),n.d(t,"Text",(function(){return Zo})),n.d(t,"assertNumber",(function(){return dt})),n.d(t,"callWithAsyncErrorHandling",(function(){return ft})),n.d(t,"callWithErrorHandling",(function(){return pt})),n.d(t,"cloneVNode",(function(){return Ma})),n.d(t,"compatUtils",(function(){return fi})),n.d(t,"computed",(function(){return ni})),n.d(t,"createBlock",(function(){return da})),n.d(t,"createCommentVNode",(function(){return wa})),n.d(t,"createElementBlock",(function(){return ua})),n.d(t,"createElementVNode",(function(){return _a})),n.d(t,"createHydrationRenderer",(function(){return Uo})),n.d(t,"createPropsRestProxy",(function(){return zr})),n.d(t,"createRenderer",(function(){return Po})),n.d(t,"createSlots",(function(){return br})),n.d(t,"createStaticVNode",(function(){return Ca})),n.d(t,"createTextVNode",(function(){return ka})),n.d(t,"createVNode",(function(){return ya})),n.d(t,"defineAsyncComponent",(function(){return Fn})),n.d(t,"defineComponent",(function(){return Vn})),n.d(t,"defineEmits",(function(){return jr})),n.d(t,"defineExpose",(function(){return Dr})),n.d(t,"defineModel",(function(){return Nr})),n.d(t,"defineOptions",(function(){return Lr})),n.d(t,"defineProps",(function(){return Er})),n.d(t,"defineSlots",(function(){return Ar})),n.d(t,"devtools",(function(){return Rt})),n.d(t,"getCurrentInstance",(function(){return xa})),n.d(t,"getTransitionRawChildren",(function(){return Un})),n.d(t,"guardReactiveProps",(function(){return Oa})),n.d(t,"h",(function(){return ri})),n.d(t,"handleError",(function(){return ht})),n.d(t,"hasInjectionContext",(function(){return fo})),n.d(t,"initCustomFormatter",(function(){return ii})),n.d(t,"inject",(function(){return po})),n.d(t,"isMemoSame",(function(){return ci})),n.d(t,"isRuntimeOnly",(function(){return $a})),n.d(t,"isVNode",(function(){return pa})),n.d(t,"mergeDefaults",(function(){return Fr})),n.d(t,"mergeModels",(function(){return Gr})),n.d(t,"mergeProps",(function(){return Ea})),n.d(t,"nextTick",(function(){return wt})),n.d(t,"onActivated",(function(){return Wn})),n.d(t,"onBeforeMount",(function(){return tr})),n.d(t,"onBeforeUnmount",(function(){return ar})),n.d(t,"onBeforeUpdate",(function(){return rr})),n.d(t,"onDeactivated",(function(){return Kn})),n.d(t,"onErrorCaptured",(function(){return ur})),n.d(t,"onMounted",(function(){return nr})),n.d(t,"onRenderTracked",(function(){return lr})),n.d(t,"onRenderTriggered",(function(){return cr})),n.d(t,"onServerPrefetch",(function(){return sr})),n.d(t,"onUnmounted",(function(){return ir})),n.d(t,"onUpdated",(function(){return or})),n.d(t,"openBlock",(function(){return oa})),n.d(t,"popScopeId",(function(){return Wt})),n.d(t,"provide",(function(){return uo})),n.d(t,"pushScopeId",(function(){return qt})),n.d(t,"queuePostFlushCb",(function(){return jt})),n.d(t,"registerRuntimeCompiler",(function(){return Ka})),n.d(t,"renderList",(function(){return yr})),n.d(t,"renderSlot",(function(){return Or})),n.d(t,"resolveComponent",(function(){return fr})),n.d(t,"resolveDirective",(function(){return vr})),n.d(t,"resolveDynamicComponent",(function(){return mr})),n.d(t,"resolveFilter",(function(){return pi})),n.d(t,"resolveTransitionHooks",(function(){return Nn})),n.d(t,"setBlockTracking",(function(){return ca})),n.d(t,"setDevtoolsHook",(function(){return Vt})),n.d(t,"setTransitionHooks",(function(){return Pn})),n.d(t,"ssrContextKey",(function(){return oi})),n.d(t,"ssrUtils",(function(){return di})),n.d(t,"toHandlers",(function(){return kr})),n.d(t,"transformVNodeArgs",(function(){return ha})),n.d(t,"useAttrs",(function(){return Pr})),n.d(t,"useModel",(function(){return Ur})),n.d(t,"useSSRContext",(function(){return ai})),n.d(t,"useSlots",(function(){return Rr})),n.d(t,"useTransitionState",(function(){return Tn})),n.d(t,"version",(function(){return li})),n.d(t,"warn",(function(){return ut})),n.d(t,"watch",(function(){return On})),n.d(t,"watchEffect",(function(){return gn})),n.d(t,"watchPostEffect",(function(){return _n})),n.d(t,"watchSyncEffect",(function(){return yn})),n.d(t,"withAsyncContext",(function(){return Hr})),n.d(t,"withCtx",(function(){return $t})),n.d(t,"withDefaults",(function(){return xr})),n.d(t,"withDirectives",(function(){return In})),n.d(t,"withMemo",(function(){return si})),n.d(t,"withScopeId",(function(){return Kt})),n.d(t,"Transition",(function(){return Qi})),n.d(t,"TransitionGroup",(function(){return gs})),n.d(t,"VueElement",(function(){return Hi})),n.d(t,"createApp",(function(){return Xs})),n.d(t,"createSSRApp",(function(){return Zs})),n.d(t,"defineCustomElement",(function(){return Fi})),n.d(t,"defineSSRCustomElement",(function(){return Gi})),n.d(t,"hydrate",(function(){return Qs})),n.d(t,"initDirectivesForSSR",(function(){return nc})),n.d(t,"render",(function(){return Js})),n.d(t,"useCssModule",(function(){return Yi})),n.d(t,"useCssVars",(function(){return qi})),n.d(t,"vModelCheckbox",(function(){return Is})),n.d(t,"vModelDynamic",(function(){return As})),n.d(t,"vModelRadio",(function(){return Ts})),n.d(t,"vModelSelect",(function(){return Es})),n.d(t,"vModelText",(function(){return ws})),n.d(t,"vShow",(function(){return Gs})),n.d(t,"withKeys",(function(){return Fs})),n.d(t,"withModifiers",(function(){return Vs})),n.d(t,"compile",(function(){return rc}));var r=n("9ff4");let o;class a{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=o,!e&&o&&(this.index=(o.scopes||(o.scopes=[])).push(this)-1)}get active(){return this._active}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.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0,this._active=!1}}}function i(e){return new a(e)}function s(e,t=o){t&&t.active&&t.effects.push(e)}function c(){return o}function l(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 _=30;let y;const b=Symbol(""),O=Symbol("");class M{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=y,t=I;while(e){if(e===this)return;e=e.parent}try{return this.parent=y,y=this,I=!0,g=1<<++v,v<=_?f(this):k(this),this.fn()}finally{v<=_&&h(this),g=1<<--v,y=this.parent,I=t,this.parent=void 0,this.deferStop&&this.stop()}}stop(){y===this?this.deferStop=!0:this.active&&(k(this),this.onStop&&this.onStop(),this.active=!1)}}function k(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}function C(e,t){e.effect&&(e=e.effect.fn);const n=new M(e);t&&(Object(r["extend"])(n,t),t.scope&&s(n,t.scope)),t&&t.lazy||n.run();const o=n.run.bind(n);return o.effect=n,o}function w(e){e.effect.stop()}let I=!0;const S=[];function T(){S.push(I),I=!1}function E(){const e=S.pop();I=void 0===e||e}function j(e,t,n){if(I&&y){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;D(r,o)}}function D(e,t){let n=!1;v<=_?p(e)||(e.n|=g,n=!d(e)):n=!e.has(y),n&&(e.add(y),y.deps.push(e))}function L(e,t,n,o,a,i){const s=m.get(e);if(!s)return;let c=[];if("clear"===t)c=[...s.values()];else if("length"===n&&Object(r["isArray"])(e)){const e=Number(o);s.forEach((t,n)=>{("length"===n||n>=e)&&c.push(t)})}else switch(void 0!==n&&c.push(s.get(n)),t){case"add":Object(r["isArray"])(e)?Object(r["isIntegerKey"])(n)&&c.push(s.get("length")):(c.push(s.get(b)),Object(r["isMap"])(e)&&c.push(s.get(O)));break;case"delete":Object(r["isArray"])(e)||(c.push(s.get(b)),Object(r["isMap"])(e)&&c.push(s.get(O)));break;case"set":Object(r["isMap"])(e)&&c.push(s.get(b));break}if(1===c.length)c[0]&&A(c[0]);else{const e=[];for(const t of c)t&&e.push(...t);A(u(e))}}function A(e,t){const n=Object(r["isArray"])(e)?e:[...e];for(const r of n)r.computed&&N(r,t);for(const r of n)r.computed||N(r,t)}function N(e,t){(e!==y||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function x(e,t){var n;return null==(n=m.get(e))?void 0:n.get(t)}const R=Object(r["makeMap"])("__proto__,__v_isRef,__isVue"),P=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(r["isSymbol"])),U=Y(),V=Y(!1,!0),B=Y(!0),F=Y(!0,!0),G=z();function z(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...e){const n=Ve(this);for(let t=0,o=this.length;t<o;t++)j(n,"get",t+"");const r=n[t](...e);return-1===r||!1===r?n[t](...e.map(Ve)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...e){T();const n=Ve(this)[t].apply(this,e);return E(),n}}),e}function H(e){const t=Ve(this);return j(t,"has",e),t.hasOwnProperty(e)}function Y(e=!1,t=!1){return function(n,o,a){if("__v_isReactive"===o)return!e;if("__v_isReadonly"===o)return e;if("__v_isShallow"===o)return t;if("__v_raw"===o&&a===(e?t?Se:Ie:t?we:Ce).get(n))return n;const i=Object(r["isArray"])(n);if(!e){if(i&&Object(r["hasOwn"])(G,o))return Reflect.get(G,o,a);if("hasOwnProperty"===o)return H}const s=Reflect.get(n,o,a);return(Object(r["isSymbol"])(o)?P.has(o):R(o))?s:(e||j(n,"get",o),t?s:Ye(s)?i&&Object(r["isIntegerKey"])(o)?s:s.value:Object(r["isObject"])(s)?e?Le(s):je(s):s)}}const q=K(),W=K(!0);function K(e=!1){return function(t,n,o,a){let i=t[n];if(Re(i)&&Ye(i)&&!Ye(o))return!1;if(!e&&(Pe(o)||Re(o)||(i=Ve(i),o=Ve(o)),!Object(r["isArray"])(t)&&Ye(i)&&!Ye(o)))return i.value=o,!0;const s=Object(r["isArray"])(t)&&Object(r["isIntegerKey"])(n)?Number(n)<t.length:Object(r["hasOwn"])(t,n),c=Reflect.set(t,n,o,a);return t===Ve(a)&&(s?Object(r["hasChanged"])(o,i)&&L(t,"set",n,o,i):L(t,"add",n,o)),c}}function $(e,t){const n=Object(r["hasOwn"])(e,t),o=e[t],a=Reflect.deleteProperty(e,t);return a&&n&&L(e,"delete",t,void 0,o),a}function J(e,t){const n=Reflect.has(e,t);return Object(r["isSymbol"])(t)&&P.has(t)||j(e,"has",t),n}function Q(e){return j(e,"iterate",Object(r["isArray"])(e)?"length":b),Reflect.ownKeys(e)}const X={get:U,set:q,deleteProperty:$,has:J,ownKeys:Q},Z={get:B,set(e,t){return!0},deleteProperty(e,t){return!0}},ee=Object(r["extend"])({},X,{get:V,set:W}),te=Object(r["extend"])({},Z,{get:F}),ne=e=>e,re=e=>Reflect.getPrototypeOf(e);function oe(e,t,n=!1,r=!1){e=e["__v_raw"];const o=Ve(e),a=Ve(t);n||(t!==a&&j(o,"get",t),j(o,"get",a));const{has:i}=re(o),s=r?ne:n?Ge:Fe;return i.call(o,t)?s(e.get(t)):i.call(o,a)?s(e.get(a)):void(e!==o&&e.get(t))}function ae(e,t=!1){const n=this["__v_raw"],r=Ve(n),o=Ve(e);return t||(e!==o&&j(r,"has",e),j(r,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function ie(e,t=!1){return e=e["__v_raw"],!t&&j(Ve(e),"iterate",b),Reflect.get(e,"size",e)}function se(e){e=Ve(e);const t=Ve(this),n=re(t),r=n.has.call(t,e);return r||(t.add(e),L(t,"add",e,e)),this}function ce(e,t){t=Ve(t);const n=Ve(this),{has:o,get:a}=re(n);let i=o.call(n,e);i||(e=Ve(e),i=o.call(n,e));const s=a.call(n,e);return n.set(e,t),i?Object(r["hasChanged"])(t,s)&&L(n,"set",e,t,s):L(n,"add",e,t),this}function le(e){const t=Ve(this),{has:n,get:r}=re(t);let o=n.call(t,e);o||(e=Ve(e),o=n.call(t,e));const a=r?r.call(t,e):void 0,i=t.delete(e);return o&&L(t,"delete",e,void 0,a),i}function ue(){const e=Ve(this),t=0!==e.size,n=void 0,r=e.clear();return t&&L(e,"clear",void 0,void 0,n),r}function de(e,t){return function(n,r){const o=this,a=o["__v_raw"],i=Ve(a),s=t?ne:e?Ge:Fe;return!e&&j(i,"iterate",b),a.forEach((e,t)=>n.call(r,s(e),s(t),o))}}function pe(e,t,n){return function(...o){const a=this["__v_raw"],i=Ve(a),s=Object(r["isMap"])(i),c="entries"===e||e===Symbol.iterator&&s,l="keys"===e&&s,u=a[e](...o),d=n?ne:t?Ge:Fe;return!t&&j(i,"iterate",l?O:b),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:c?[d(e[0]),d(e[1])]:d(e),done:t}},[Symbol.iterator](){return this}}}}function fe(e){return function(...t){return"delete"!==e&&this}}function he(){const e={get(e){return oe(this,e)},get size(){return ie(this)},has:ae,add:se,set:ce,delete:le,clear:ue,forEach:de(!1,!1)},t={get(e){return oe(this,e,!1,!0)},get size(){return ie(this)},has:ae,add:se,set:ce,delete:le,clear:ue,forEach:de(!1,!0)},n={get(e){return oe(this,e,!0)},get size(){return ie(this,!0)},has(e){return ae.call(this,e,!0)},add:fe("add"),set:fe("set"),delete:fe("delete"),clear:fe("clear"),forEach:de(!0,!1)},r={get(e){return oe(this,e,!0,!0)},get size(){return ie(this,!0)},has(e){return ae.call(this,e,!0)},add:fe("add"),set:fe("set"),delete:fe("delete"),clear:fe("clear"),forEach:de(!0,!0)},o=["keys","values","entries",Symbol.iterator];return o.forEach(o=>{e[o]=pe(o,!1,!1),n[o]=pe(o,!0,!1),t[o]=pe(o,!1,!0),r[o]=pe(o,!0,!0)}),[e,n,t,r]}const[me,ve,ge,_e]=he();function ye(e,t){const n=t?e?_e:ge:e?ve:me;return(t,o,a)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(Object(r["hasOwn"])(n,o)&&o in t?n:t,o,a)}const be={get:ye(!1,!1)},Oe={get:ye(!1,!0)},Me={get:ye(!0,!1)},ke={get:ye(!0,!0)};const Ce=new WeakMap,we=new WeakMap,Ie=new WeakMap,Se=new WeakMap;function Te(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ee(e){return e["__v_skip"]||!Object.isExtensible(e)?0:Te(Object(r["toRawType"])(e))}function je(e){return Re(e)?e:Ne(e,!1,X,be,Ce)}function De(e){return Ne(e,!1,ee,Oe,we)}function Le(e){return Ne(e,!0,Z,Me,Ie)}function Ae(e){return Ne(e,!0,te,ke,Se)}function Ne(e,t,n,o,a){if(!Object(r["isObject"])(e))return e;if(e["__v_raw"]&&(!t||!e["__v_isReactive"]))return e;const i=a.get(e);if(i)return i;const s=Ee(e);if(0===s)return e;const c=new Proxy(e,2===s?o:n);return a.set(e,c),c}function xe(e){return Re(e)?xe(e["__v_raw"]):!(!e||!e["__v_isReactive"])}function Re(e){return!(!e||!e["__v_isReadonly"])}function Pe(e){return!(!e||!e["__v_isShallow"])}function Ue(e){return xe(e)||Re(e)}function Ve(e){const t=e&&e["__v_raw"];return t?Ve(t):e}function Be(e){return Object(r["def"])(e,"__v_skip",!0),e}const Fe=e=>Object(r["isObject"])(e)?je(e):e,Ge=e=>Object(r["isObject"])(e)?Le(e):e;function ze(e){I&&y&&(e=Ve(e),D(e.dep||(e.dep=u())))}function He(e,t){e=Ve(e);const n=e.dep;n&&A(n)}function Ye(e){return!(!e||!0!==e.__v_isRef)}function qe(e){return Ke(e,!1)}function We(e){return Ke(e,!0)}function Ke(e,t){return Ye(e)?e:new $e(e,t)}class $e{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Ve(e),this._value=t?e:Fe(e)}get value(){return ze(this),this._value}set value(e){const t=this.__v_isShallow||Pe(e)||Re(e);e=t?e:Ve(e),Object(r["hasChanged"])(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:Fe(e),He(this,e))}}function Je(e){He(e,void 0)}function Qe(e){return Ye(e)?e.value:e}function Xe(e){return Object(r["isFunction"])(e)?e():Qe(e)}const Ze={get:(e,t,n)=>Qe(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return Ye(o)&&!Ye(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function et(e){return xe(e)?e:new Proxy(e,Ze)}class tt{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:t,set:n}=e(()=>ze(this),()=>He(this));this._get=t,this._set=n}get value(){return this._get()}set value(e){this._set(e)}}function nt(e){return new tt(e)}function rt(e){const t=Object(r["isArray"])(e)?new Array(e.length):{};for(const n in e)t[n]=st(e,n);return t}class ot{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}get dep(){return x(Ve(this._object),this._key)}}class at{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function it(e,t,n){return Ye(e)?e:Object(r["isFunction"])(e)?new at(e):Object(r["isObject"])(e)&&arguments.length>1?st(e,t,n):qe(e)}function st(e,t,n){const r=e[t];return Ye(r)?r:new ot(e,t,n)}class ct{constructor(e,t,n,r){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this["__v_isReadonly"]=!1,this._dirty=!0,this.effect=new M(e,()=>{this._dirty||(this._dirty=!0,He(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this["__v_isReadonly"]=n}get value(){const e=Ve(this);return ze(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function lt(e,t,n=!1){let o,a;const i=Object(r["isFunction"])(e);i?(o=e,a=r["NOOP"]):(o=e.get,a=e.set);const s=new ct(o,a,i||!a,n);return s}function ut(e,...t){}function dt(e,t){}function pt(e,t,n,r){let o;try{o=r?e(...r):e()}catch(a){ht(a,t,n)}return o}function ft(e,t,n,o){if(Object(r["isFunction"])(e)){const a=pt(e,t,n,o);return a&&Object(r["isPromise"])(a)&&a.catch(e=>{ht(e,t,n)}),a}const a=[];for(let r=0;r<e.length;r++)a.push(ft(e[r],t,n,o));return a}function ht(e,t,n,r=!0){const o=t?t.vnode:null;if(t){let r=t.parent;const o=t.proxy,a=n;while(r){const t=r.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,o,a))return;r=r.parent}const i=t.appContext.config.errorHandler;if(i)return void pt(i,null,10,[e,o,a])}mt(e,n,o,r)}function mt(e,t,n,r=!0){console.error(e)}let vt=!1,gt=!1;const _t=[];let yt=0;const bt=[];let Ot=null,Mt=0;const kt=Promise.resolve();let Ct=null;function wt(e){const t=Ct||kt;return e?t.then(this?e.bind(this):e):t}function It(e){let t=yt+1,n=_t.length;while(t<n){const r=t+n>>>1,o=At(_t[r]);o<e?t=r+1:n=r}return t}function St(e){_t.length&&_t.includes(e,vt&&e.allowRecurse?yt+1:yt)||(null==e.id?_t.push(e):_t.splice(It(e.id),0,e),Tt())}function Tt(){vt||gt||(gt=!0,Ct=kt.then(xt))}function Et(e){const t=_t.indexOf(e);t>yt&&_t.splice(t,1)}function jt(e){Object(r["isArray"])(e)?bt.push(...e):Ot&&Ot.includes(e,e.allowRecurse?Mt+1:Mt)||bt.push(e),Tt()}function Dt(e,t=(vt?yt+1:0)){for(0;t<_t.length;t++){const e=_t[t];e&&e.pre&&(_t.splice(t,1),t--,e())}}function Lt(e){if(bt.length){const e=[...new Set(bt)];if(bt.length=0,Ot)return void Ot.push(...e);for(Ot=e,Ot.sort((e,t)=>At(e)-At(t)),Mt=0;Mt<Ot.length;Mt++)Ot[Mt]();Ot=null,Mt=0}}const At=e=>null==e.id?1/0:e.id,Nt=(e,t)=>{const n=At(e)-At(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function xt(e){gt=!1,vt=!0,_t.sort(Nt);r["NOOP"];try{for(yt=0;yt<_t.length;yt++){const e=_t[yt];e&&!1!==e.active&&pt(e,null,14)}}finally{yt=0,_t.length=0,Lt(e),vt=!1,Ct=null,(_t.length||bt.length)&&xt(e)}}let Rt,Pt=[],Ut=!1;function Vt(e,t){var n,r;if(Rt=e,Rt)Rt.enabled=!0,Pt.forEach(({event:e,args:t})=>Rt.emit(e,...t)),Pt=[];else if("undefined"!==typeof window&&window.HTMLElement&&!(null==(r=null==(n=window.navigator)?void 0:n.userAgent)?void 0:r.includes("jsdom"))){const e=t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[];e.push(e=>{Vt(e,t)}),setTimeout(()=>{Rt||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Ut=!0,Pt=[])},3e3)}else Ut=!0,Pt=[]}function Bt(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||r["EMPTY_OBJ"];let a=n;const i=t.startsWith("update:"),s=i&&t.slice(7);if(s&&s in o){const e=("modelValue"===s?"model":s)+"Modifiers",{number:t,trim:i}=o[e]||r["EMPTY_OBJ"];i&&(a=n.map(e=>Object(r["isString"])(e)?e.trim():e)),t&&(a=n.map(r["looseToNumber"]))}let c;let l=o[c=Object(r["toHandlerKey"])(t)]||o[c=Object(r["toHandlerKey"])(Object(r["camelize"])(t))];!l&&i&&(l=o[c=Object(r["toHandlerKey"])(Object(r["hyphenate"])(t))]),l&&ft(l,e,6,a);const u=o[c+"Once"];if(u){if(e.emitted){if(e.emitted[c])return}else e.emitted={};e.emitted[c]=!0,ft(u,e,6,a)}}function Ft(e,t,n=!1){const o=t.emitsCache,a=o.get(e);if(void 0!==a)return a;const i=e.emits;let s={},c=!1;if(!Object(r["isFunction"])(e)){const o=e=>{const n=Ft(e,t,!0);n&&(c=!0,Object(r["extend"])(s,n))};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return i||c?(Object(r["isArray"])(i)?i.forEach(e=>s[e]=null):Object(r["extend"])(s,i),Object(r["isObject"])(e)&&o.set(e,s),s):(Object(r["isObject"])(e)&&o.set(e,null),null)}function Gt(e,t){return!(!e||!Object(r["isOn"])(t))&&(t=t.slice(2).replace(/Once$/,""),Object(r["hasOwn"])(e,t[0].toLowerCase()+t.slice(1))||Object(r["hasOwn"])(e,Object(r["hyphenate"])(t))||Object(r["hasOwn"])(e,t))}let zt=null,Ht=null;function Yt(e){const t=zt;return zt=e,Ht=e&&e.type.__scopeId||null,t}function qt(e){Ht=e}function Wt(){Ht=null}const Kt=e=>$t;function $t(e,t=zt,n){if(!t)return e;if(e._n)return e;const r=(...n)=>{r._d&&ca(-1);const o=Yt(t);let a;try{a=e(...n)}finally{Yt(o),r._d&&ca(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function Jt(e){const{type:t,vnode:n,proxy:o,withProxy:a,props:i,propsOptions:[s],slots:c,attrs:l,emit:u,render:d,renderCache:p,data:f,setupState:h,ctx:m,inheritAttrs:v}=e;let g,_;const y=Yt(e);try{if(4&n.shapeFlag){const e=a||o;g=Ia(d.call(e,e,p,i,h,f,m)),_=l}else{const e=t;0,g=Ia(e.length>1?e(i,{attrs:l,slots:c,emit:u}):e(i,null)),_=t.props?l:Xt(l)}}catch(O){na.length=0,ht(O,e,1),g=ya(ea)}let b=g;if(_&&!1!==v){const e=Object.keys(_),{shapeFlag:t}=b;e.length&&7&t&&(s&&e.some(r["isModelListener"])&&(_=Zt(_,s)),b=Ma(b,_))}return n.dirs&&(b=Ma(b),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&(b.transition=n.transition),g=b,Yt(y),g}function Qt(e){let t;for(let n=0;n<e.length;n++){const r=e[n];if(!pa(r))return;if(r.type!==ea||"v-if"===r.children){if(t)return;t=r}}return t}const Xt=e=>{let t;for(const n in e)("class"===n||"style"===n||Object(r["isOn"])(n))&&((t||(t={}))[n]=e[n]);return t},Zt=(e,t)=>{const n={};for(const o in e)Object(r["isModelListener"])(o)&&o.slice(9)in t||(n[o]=e[o]);return n};function en(e,t,n){const{props:r,children:o,component:a}=e,{props:i,children:s,patchFlag:c}=t,l=a.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&c>=0))return!(!o&&!s||s&&s.$stable)||r!==i&&(r?!i||tn(r,i,l):!!i);if(1024&c)return!0;if(16&c)return r?tn(r,i,l):!!i;if(8&c){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(i[n]!==r[n]&&!Gt(l,n))return!0}}return!1}function tn(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 a=r[o];if(t[a]!==e[a]&&!Gt(n,a))return!0}return!1}function nn({vnode:e,parent:t},n){while(t&&t.subTree===e)(e=t.vnode).el=n,t=t.parent}const rn=e=>e.__isSuspense,on={name:"Suspense",__isSuspense:!0,process(e,t,n,r,o,a,i,s,c,l){null==e?cn(t,n,r,o,a,i,s,c,l):ln(e,t,n,r,o,i,s,c,l)},hydrate:dn,create:un,normalize:pn},an=on;function sn(e,t){const n=e.props&&e.props[t];Object(r["isFunction"])(n)&&n()}function cn(e,t,n,r,o,a,i,s,c){const{p:l,o:{createElement:u}}=c,d=u("div"),p=e.suspense=un(e,o,r,t,d,n,a,i,s,c);l(null,p.pendingBranch=e.ssContent,d,null,r,p,a,i),p.deps>0?(sn(e,"onPending"),sn(e,"onFallback"),l(null,e.ssFallback,t,n,r,null,a,i),mn(p,e.ssFallback)):p.resolve(!1,!0)}function ln(e,t,n,r,o,a,i,s,{p:c,um:l,o:{createElement:u}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const p=t.ssContent,f=t.ssFallback,{activeBranch:h,pendingBranch:m,isInFallback:v,isHydrating:g}=d;if(m)d.pendingBranch=p,fa(p,m)?(c(m,p,d.hiddenContainer,null,o,d,a,i,s),d.deps<=0?d.resolve():v&&(c(h,f,n,r,o,null,a,i,s),mn(d,f))):(d.pendingId++,g?(d.isHydrating=!1,d.activeBranch=m):l(m,o,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u("div"),v?(c(null,p,d.hiddenContainer,null,o,d,a,i,s),d.deps<=0?d.resolve():(c(h,f,n,r,o,null,a,i,s),mn(d,f))):h&&fa(p,h)?(c(h,p,n,r,o,d,a,i,s),d.resolve(!0)):(c(null,p,d.hiddenContainer,null,o,d,a,i,s),d.deps<=0&&d.resolve()));else if(h&&fa(p,h))c(h,p,n,r,o,d,a,i,s),mn(d,p);else if(sn(t,"onPending"),d.pendingBranch=p,d.pendingId++,c(null,p,d.hiddenContainer,null,o,d,a,i,s),d.deps<=0)d.resolve();else{const{timeout:e,pendingId:t}=d;e>0?setTimeout(()=>{d.pendingId===t&&d.fallback(f)},e):0===e&&d.fallback(f)}}function un(e,t,n,o,a,i,s,c,l,u,d=!1){const{p:p,m:f,um:h,n:m,o:{parentNode:v,remove:g}}=u;let _;const y=vn(e);y&&(null==t?void 0:t.pendingBranch)&&(_=t.pendingId,t.deps++);const b=e.props?Object(r["toNumber"])(e.props.timeout):void 0;const O={vnode:e,parent:t,parentComponent:n,isSVG:s,container:o,hiddenContainer:a,anchor:i,deps:0,pendingId:0,timeout:"number"===typeof b?b:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:d,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){const{vnode:r,activeBranch:o,pendingBranch:a,pendingId:i,effects:s,parentComponent:c,container:l}=O;if(O.isHydrating)O.isHydrating=!1;else if(!e){const e=o&&a.transition&&"out-in"===a.transition.mode;e&&(o.transition.afterLeave=()=>{i===O.pendingId&&f(a,l,t,0)});let{anchor:t}=O;o&&(t=m(o),h(o,c,O,!0)),e||f(a,l,t,0)}mn(O,a),O.pendingBranch=null,O.isInFallback=!1;let u=O.parent,d=!1;while(u){if(u.pendingBranch){u.effects.push(...s),d=!0;break}u=u.parent}d||jt(s),O.effects=[],y&&t&&t.pendingBranch&&_===t.pendingId&&(t.deps--,0!==t.deps||n||t.resolve()),sn(r,"onResolve")},fallback(e){if(!O.pendingBranch)return;const{vnode:t,activeBranch:n,parentComponent:r,container:o,isSVG:a}=O;sn(t,"onFallback");const i=m(n),s=()=>{O.isInFallback&&(p(null,e,o,i,r,null,a,c,l),mn(O,e))},u=e.transition&&"out-in"===e.transition.mode;u&&(n.transition.afterLeave=s),O.isInFallback=!0,h(n,r,null,!0),u||s()},move(e,t,n){O.activeBranch&&f(O.activeBranch,e,t,n),O.container=e},next(){return O.activeBranch&&m(O.activeBranch)},registerDep(e,t){const n=!!O.pendingBranch;n&&O.deps++;const r=e.vnode.el;e.asyncDep.catch(t=>{ht(t,e,0)}).then(o=>{if(e.isUnmounted||O.isUnmounted||O.pendingId!==e.suspenseId)return;e.asyncResolved=!0;const{vnode:a}=e;Wa(e,o,!1),r&&(a.el=r);const i=!r&&e.subTree.el;t(e,a,v(r||e.subTree.el),r?null:m(e.subTree),O,s,l),i&&g(i),nn(e,a.el),n&&0===--O.deps&&O.resolve()})},unmount(e,t){O.isUnmounted=!0,O.activeBranch&&h(O.activeBranch,n,e,t),O.pendingBranch&&h(O.pendingBranch,n,e,t)}};return O}function dn(e,t,n,r,o,a,i,s,c){const l=t.suspense=un(t,r,n,e.parentNode,document.createElement("div"),null,o,a,i,s,!0),u=c(e,l.pendingBranch=t.ssContent,n,l,a,i);return 0===l.deps&&l.resolve(!1,!0),u}function pn(e){const{shapeFlag:t,children:n}=e,r=32&t;e.ssContent=fn(r?n.default:n),e.ssFallback=r?fn(n.fallback):ya(ea)}function fn(e){let t;if(Object(r["isFunction"])(e)){const n=sa&&e._c;n&&(e._d=!1,oa()),e=e(),n&&(e._d=!0,t=ra,aa())}if(Object(r["isArray"])(e)){const t=Qt(e);0,e=t}return e=Ia(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(t=>t!==e)),e}function hn(e,t){t&&t.pendingBranch?Object(r["isArray"])(e)?t.effects.push(...e):t.effects.push(e):jt(e)}function mn(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e,o=n.el=t.el;r&&r.subTree===n&&(r.vnode.el=o,nn(r,o))}function vn(e){var t;return null!=(null==(t=e.props)?void 0:t.suspensible)&&!1!==e.props.suspensible}function gn(e,t){return Mn(e,null,t)}function _n(e,t){return Mn(e,null,{flush:"post"})}function yn(e,t){return Mn(e,null,{flush:"sync"})}const bn={};function On(e,t,n){return Mn(e,t,n)}function Mn(e,t,{immediate:n,deep:o,flush:a,onTrack:i,onTrigger:s}=r["EMPTY_OBJ"]){var l;const u=c()===(null==(l=Na)?void 0:l.scope)?Na:null;let d,p,f=!1,h=!1;if(Ye(e)?(d=()=>e.value,f=Pe(e)):xe(e)?(d=()=>e,o=!0):Object(r["isArray"])(e)?(h=!0,f=e.some(e=>xe(e)||Pe(e)),d=()=>e.map(e=>Ye(e)?e.value:xe(e)?wn(e):Object(r["isFunction"])(e)?pt(e,u,2):void 0)):d=Object(r["isFunction"])(e)?t?()=>pt(e,u,2):()=>{if(!u||!u.isUnmounted)return p&&p(),ft(e,u,3,[v])}:r["NOOP"],t&&o){const e=d;d=()=>wn(e())}let m,v=e=>{p=b.onStop=()=>{pt(e,u,4)}};if(Ha){if(v=r["NOOP"],t?n&&ft(t,u,3,[d(),h?[]:void 0,v]):d(),"sync"!==a)return r["NOOP"];{const e=ai();m=e.__watcherHandles||(e.__watcherHandles=[])}}let g=h?new Array(e.length).fill(bn):bn;const _=()=>{if(b.active)if(t){const e=b.run();(o||f||(h?e.some((e,t)=>Object(r["hasChanged"])(e,g[t])):Object(r["hasChanged"])(e,g)))&&(p&&p(),ft(t,u,3,[e,g===bn?void 0:h&&g[0]===bn?[]:g,v]),g=e)}else b.run()};let y;_.allowRecurse=!!t,"sync"===a?y=_:"post"===a?y=()=>Ro(_,u&&u.suspense):(_.pre=!0,u&&(_.id=u.uid),y=()=>St(_));const b=new M(d,y);t?n?_():g=b.run():"post"===a?Ro(b.run.bind(b),u&&u.suspense):b.run();const O=()=>{b.stop(),u&&u.scope&&Object(r["remove"])(u.scope.effects,b)};return m&&m.push(O),O}function kn(e,t,n){const o=this.proxy,a=Object(r["isString"])(e)?e.includes(".")?Cn(o,e):()=>o[e]:e.bind(o,o);let i;Object(r["isFunction"])(t)?i=t:(i=t.handler,n=t);const s=Na;Va(this);const c=Mn(a,i.bind(o),n);return s?Va(s):Ba(),c}function Cn(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 wn(e,t){if(!Object(r["isObject"])(e)||e["__v_skip"])return e;if(t=t||new Set,t.has(e))return e;if(t.add(e),Ye(e))wn(e.value,t);else if(Object(r["isArray"])(e))for(let n=0;n<e.length;n++)wn(e[n],t);else if(Object(r["isSet"])(e)||Object(r["isMap"])(e))e.forEach(e=>{wn(e,t)});else if(Object(r["isPlainObject"])(e))for(const n in e)wn(e[n],t);return e}function In(e,t){const n=zt;if(null===n)return e;const o=Za(n)||n.proxy,a=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[e,n,s,c=r["EMPTY_OBJ"]]=t[i];e&&(Object(r["isFunction"])(e)&&(e={mounted:e,updated:e}),e.deep&&wn(n),a.push({dir:e,instance:o,value:n,oldValue:void 0,arg:s,modifiers:c}))}return e}function Sn(e,t,n,r){const o=e.dirs,a=t&&t.dirs;for(let i=0;i<o.length;i++){const s=o[i];a&&(s.oldValue=a[i].value);let c=s.dir[r];c&&(T(),ft(c,n,8,[e.el,s,e,t]),E())}}function Tn(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return nr(()=>{e.isMounted=!0}),ar(()=>{e.isUnmounting=!0}),e}const En=[Function,Array],jn={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:En,onEnter:En,onAfterEnter:En,onEnterCancelled:En,onBeforeLeave:En,onLeave:En,onAfterLeave:En,onLeaveCancelled:En,onBeforeAppear:En,onAppear:En,onAfterAppear:En,onAppearCancelled:En},Dn={name:"BaseTransition",props:jn,setup(e,{slots:t}){const n=xa(),r=Tn();let o;return()=>{const a=t.default&&Un(t.default(),!0);if(!a||!a.length)return;let i=a[0];if(a.length>1){let e=!1;for(const t of a)if(t.type!==ea){0,i=t,e=!0;break}}const s=Ve(e),{mode:c}=s;if(r.isLeaving)return xn(i);const l=Rn(i);if(!l)return xn(i);const u=Nn(l,s,r,n);Pn(l,u);const d=n.subTree,p=d&&Rn(d);let f=!1;const{getTransitionKey:h}=l.type;if(h){const e=h();void 0===o?o=e:e!==o&&(o=e,f=!0)}if(p&&p.type!==ea&&(!fa(l,p)||f)){const e=Nn(p,s,r,n);if(Pn(p,e),"out-in"===c)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,!1!==n.update.active&&n.update()},xn(i);"in-out"===c&&l.type!==ea&&(e.delayLeave=(e,t,n)=>{const o=An(r,p);o[String(p.key)]=p,e._leaveCb=()=>{t(),e._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=n})}return i}}},Ln=Dn;function An(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 Nn(e,t,n,o){const{appear:a,mode:i,persisted:s=!1,onBeforeEnter:c,onEnter:l,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:p,onLeave:f,onAfterLeave:h,onLeaveCancelled:m,onBeforeAppear:v,onAppear:g,onAfterAppear:_,onAppearCancelled:y}=t,b=String(e.key),O=An(n,e),M=(e,t)=>{e&&ft(e,o,9,t)},k=(e,t)=>{const n=t[1];M(e,t),Object(r["isArray"])(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},C={mode:i,persisted:s,beforeEnter(t){let r=c;if(!n.isMounted){if(!a)return;r=v||c}t._leaveCb&&t._leaveCb(!0);const o=O[b];o&&fa(e,o)&&o.el._leaveCb&&o.el._leaveCb(),M(r,[t])},enter(e){let t=l,r=u,o=d;if(!n.isMounted){if(!a)return;t=g||l,r=_||u,o=y||d}let i=!1;const s=e._enterCb=t=>{i||(i=!0,M(t?o:r,[e]),C.delayedLeave&&C.delayedLeave(),e._enterCb=void 0)};t?k(t,[e,s]):s()},leave(t,r){const o=String(e.key);if(t._enterCb&&t._enterCb(!0),n.isUnmounting)return r();M(p,[t]);let a=!1;const i=t._leaveCb=n=>{a||(a=!0,r(),M(n?m:h,[t]),t._leaveCb=void 0,O[o]===e&&delete O[o])};O[o]=e,f?k(f,[t,i]):i()},clone(e){return Nn(e,t,n,o)}};return C}function xn(e){if(zn(e))return e=Ma(e),e.children=null,e}function Rn(e){return zn(e)?e.children?e.children[0]:void 0:e}function Pn(e,t){6&e.shapeFlag&&e.component?Pn(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 Un(e,t=!1,n){let r=[],o=0;for(let a=0;a<e.length;a++){let i=e[a];const s=null==n?i.key:String(n)+String(null!=i.key?i.key:a);i.type===Xo?(128&i.patchFlag&&o++,r=r.concat(Un(i.children,t,s))):(t||i.type!==ea)&&r.push(null!=s?Ma(i,{key:s}):i)}if(o>1)for(let a=0;a<r.length;a++)r[a].patchFlag=-2;return r}function Vn(e,t){return Object(r["isFunction"])(e)?(()=>Object(r["extend"])({name:e.name},t,{setup:e}))():e}const Bn=e=>!!e.type.__asyncLoader;function Fn(e){Object(r["isFunction"])(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:o,delay:a=200,timeout:i,suspensible:s=!0,onError:c}=e;let l,u=null,d=0;const p=()=>(d++,u=null,f()),f=()=>{let e;return u||(e=u=t().catch(e=>{if(e=e instanceof Error?e:new Error(String(e)),c)return new Promise((t,n)=>{const r=()=>t(p()),o=()=>n(e);c(e,r,o,d+1)});throw e}).then(t=>e!==u&&u?u:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),l=t,t)))};return Vn({name:"AsyncComponentWrapper",__asyncLoader:f,get __asyncResolved(){return l},setup(){const e=Na;if(l)return()=>Gn(l,e);const t=t=>{u=null,ht(t,e,13,!o)};if(s&&e.suspense||Ha)return f().then(t=>()=>Gn(t,e)).catch(e=>(t(e),()=>o?ya(o,{error:e}):null));const r=qe(!1),c=qe(),d=qe(!!a);return a&&setTimeout(()=>{d.value=!1},a),null!=i&&setTimeout(()=>{if(!r.value&&!c.value){const e=new Error(`Async component timed out after ${i}ms.`);t(e),c.value=e}},i),f().then(()=>{r.value=!0,e.parent&&zn(e.parent.vnode)&&St(e.parent.update)}).catch(e=>{t(e),c.value=e}),()=>r.value&&l?Gn(l,e):c.value&&o?ya(o,{error:c.value}):n&&!d.value?ya(n):void 0}})}function Gn(e,t){const{ref:n,props:r,children:o,ce:a}=t.vnode,i=ya(e,r,o);return i.ref=n,i.ce=a,delete t.vnode.ce,i}const zn=e=>e.type.__isKeepAlive,Hn={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=xa(),o=n.ctx;if(!o.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const a=new Map,i=new Set;let s=null;const c=n.suspense,{renderer:{p:l,m:u,um:d,o:{createElement:p}}}=o,f=p("div");function h(e){Qn(e),d(e,n,c,!0)}function m(e){a.forEach((t,n)=>{const r=ei(t.type);!r||e&&e(r)||v(n)})}function v(e){const t=a.get(e);s&&fa(t,s)?s&&Qn(s):h(t),a.delete(e),i.delete(e)}o.activate=(e,t,n,o,a)=>{const i=e.component;u(e,t,n,0,c),l(i.vnode,e,t,n,i,c,o,e.slotScopeIds,a),Ro(()=>{i.isDeactivated=!1,i.a&&Object(r["invokeArrayFns"])(i.a);const t=e.props&&e.props.onVnodeMounted;t&&ja(t,i.parent,e)},c)},o.deactivate=e=>{const t=e.component;u(e,f,null,1,c),Ro(()=>{t.da&&Object(r["invokeArrayFns"])(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&ja(n,t.parent,e),t.isDeactivated=!0},c)},On(()=>[e.include,e.exclude],([e,t])=>{e&&m(t=>qn(e,t)),t&&m(e=>!qn(t,e))},{flush:"post",deep:!0});let g=null;const _=()=>{null!=g&&a.set(g,Xn(n.subTree))};return nr(_),or(_),ar(()=>{a.forEach(e=>{const{subTree:t,suspense:r}=n,o=Xn(t);if(e.type!==o.type||e.key!==o.key)h(e);else{Qn(o);const e=o.component.da;e&&Ro(e,r)}})}),()=>{if(g=null,!t.default)return null;const n=t.default(),r=n[0];if(n.length>1)return s=null,n;if(!pa(r)||!(4&r.shapeFlag)&&!(128&r.shapeFlag))return s=null,r;let o=Xn(r);const c=o.type,l=ei(Bn(o)?o.type.__asyncResolved||{}:c),{include:u,exclude:d,max:p}=e;if(u&&(!l||!qn(u,l))||d&&l&&qn(d,l))return s=o,r;const f=null==o.key?c:o.key,h=a.get(f);return o.el&&(o=Ma(o),128&r.shapeFlag&&(r.ssContent=o)),g=f,h?(o.el=h.el,o.component=h.component,o.transition&&Pn(o,o.transition),o.shapeFlag|=512,i.delete(f),i.add(f)):(i.add(f),p&&i.size>parseInt(p,10)&&v(i.values().next().value)),o.shapeFlag|=256,s=o,rn(r.type)?r:o}}},Yn=Hn;function qn(e,t){return Object(r["isArray"])(e)?e.some(e=>qn(e,t)):Object(r["isString"])(e)?e.split(",").includes(t):!!Object(r["isRegExp"])(e)&&e.test(t)}function Wn(e,t){$n(e,"a",t)}function Kn(e,t){$n(e,"da",t)}function $n(e,t,n=Na){const r=e.__wdc||(e.__wdc=()=>{let t=n;while(t){if(t.isDeactivated)return;t=t.parent}return e()});if(Zn(t,r,n),n){let e=n.parent;while(e&&e.parent)zn(e.parent.vnode)&&Jn(r,t,n,e),e=e.parent}}function Jn(e,t,n,o){const a=Zn(t,e,o,!0);ir(()=>{Object(r["remove"])(o[t],a)},n)}function Qn(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Xn(e){return 128&e.shapeFlag?e.ssContent:e}function Zn(e,t,n=Na,r=!1){if(n){const o=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...r)=>{if(n.isUnmounted)return;T(),Va(n);const o=ft(t,n,e,r);return Ba(),E(),o});return r?o.unshift(a):o.push(a),a}}const er=e=>(t,n=Na)=>(!Ha||"sp"===e)&&Zn(e,(...e)=>t(...e),n),tr=er("bm"),nr=er("m"),rr=er("bu"),or=er("u"),ar=er("bum"),ir=er("um"),sr=er("sp"),cr=er("rtg"),lr=er("rtc");function ur(e,t=Na){Zn("ec",e,t)}const dr="components",pr="directives";function fr(e,t){return gr(dr,e,!0,t)||e}const hr=Symbol.for("v-ndc");function mr(e){return Object(r["isString"])(e)?gr(dr,e,!1)||e:e||hr}function vr(e){return gr(pr,e)}function gr(e,t,n=!0,o=!1){const a=zt||Na;if(a){const n=a.type;if(e===dr){const e=ei(n,!1);if(e&&(e===t||e===Object(r["camelize"])(t)||e===Object(r["capitalize"])(Object(r["camelize"])(t))))return n}const i=_r(a[e]||n[e],t)||_r(a.appContext[e],t);return!i&&o?n:i}}function _r(e,t){return e&&(e[t]||e[Object(r["camelize"])(t)]||e[Object(r["capitalize"])(Object(r["camelize"])(t))])}function yr(e,t,n,o){let a;const i=n&&n[o];if(Object(r["isArray"])(e)||Object(r["isString"])(e)){a=new Array(e.length);for(let n=0,r=e.length;n<r;n++)a[n]=t(e[n],n,void 0,i&&i[n])}else if("number"===typeof e){0,a=new Array(e);for(let n=0;n<e;n++)a[n]=t(n+1,n,void 0,i&&i[n])}else if(Object(r["isObject"])(e))if(e[Symbol.iterator])a=Array.from(e,(e,n)=>t(e,n,void 0,i&&i[n]));else{const n=Object.keys(e);a=new Array(n.length);for(let r=0,o=n.length;r<o;r++){const o=n[r];a[r]=t(e[o],o,r,i&&i[r])}}else a=[];return n&&(n[o]=a),a}function br(e,t){for(let n=0;n<t.length;n++){const o=t[n];if(Object(r["isArray"])(o))for(let t=0;t<o.length;t++)e[o[t].name]=o[t].fn;else o&&(e[o.name]=o.key?(...e)=>{const t=o.fn(...e);return t&&(t.key=o.key),t}:o.fn)}return e}function Or(e,t,n={},r,o){if(zt.isCE||zt.parent&&Bn(zt.parent)&&zt.parent.isCE)return"default"!==t&&(n.name=t),ya("slot",n,r&&r());let a=e[t];a&&a._c&&(a._d=!1),oa();const i=a&&Mr(a(n)),s=da(Xo,{key:n.key||i&&i.key||"_"+t},i||(r?r():[]),i&&1===e._?64:-2);return!o&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),a&&a._c&&(a._d=!0),s}function Mr(e){return e.some(e=>!pa(e)||e.type!==ea&&!(e.type===Xo&&!Mr(e.children)))?e:null}function kr(e,t){const n={};for(const o in e)n[t&&/[A-Z]/.test(o)?"on:"+o:Object(r["toHandlerKey"])(o)]=e[o];return n}const Cr=e=>e?Fa(e)?Za(e)||e.proxy:Cr(e.parent):null,wr=Object(r["extend"])(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=>Cr(e.parent),$root:e=>Cr(e.root),$emit:e=>e.emit,$options:e=>Jr(e),$forceUpdate:e=>e.f||(e.f=()=>St(e.update)),$nextTick:e=>e.n||(e.n=wt.bind(e.proxy)),$watch:e=>kn.bind(e)}),Ir=(e,t)=>e!==r["EMPTY_OBJ"]&&!e.__isScriptSetup&&Object(r["hasOwn"])(e,t),Sr={get({_:e},t){const{ctx:n,setupState:o,data:a,props:i,accessCache:s,type:c,appContext:l}=e;let u;if("$"!==t[0]){const c=s[t];if(void 0!==c)switch(c){case 1:return o[t];case 2:return a[t];case 4:return n[t];case 3:return i[t]}else{if(Ir(o,t))return s[t]=1,o[t];if(a!==r["EMPTY_OBJ"]&&Object(r["hasOwn"])(a,t))return s[t]=2,a[t];if((u=e.propsOptions[0])&&Object(r["hasOwn"])(u,t))return s[t]=3,i[t];if(n!==r["EMPTY_OBJ"]&&Object(r["hasOwn"])(n,t))return s[t]=4,n[t];Yr&&(s[t]=0)}}const d=wr[t];let p,f;return d?("$attrs"===t&&j(e,"get",t),d(e)):(p=c.__cssModules)&&(p=p[t])?p:n!==r["EMPTY_OBJ"]&&Object(r["hasOwn"])(n,t)?(s[t]=4,n[t]):(f=l.config.globalProperties,Object(r["hasOwn"])(f,t)?f[t]:void 0)},set({_:e},t,n){const{data:o,setupState:a,ctx:i}=e;return Ir(a,t)?(a[t]=n,!0):o!==r["EMPTY_OBJ"]&&Object(r["hasOwn"])(o,t)?(o[t]=n,!0):!Object(r["hasOwn"])(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(i[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:a,propsOptions:i}},s){let c;return!!n[s]||e!==r["EMPTY_OBJ"]&&Object(r["hasOwn"])(e,s)||Ir(t,s)||(c=i[0])&&Object(r["hasOwn"])(c,s)||Object(r["hasOwn"])(o,s)||Object(r["hasOwn"])(wr,s)||Object(r["hasOwn"])(a.config.globalProperties,s)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:Object(r["hasOwn"])(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};const Tr=Object(r["extend"])({},Sr,{get(e,t){if(t!==Symbol.unscopables)return Sr.get(e,t,e)},has(e,t){const n="_"!==t[0]&&!Object(r["isGloballyWhitelisted"])(t);return n}});function Er(){return null}function jr(){return null}function Dr(e){0}function Lr(e){0}function Ar(){return null}function Nr(){0}function xr(e,t){return null}function Rr(){return Vr().slots}function Pr(){return Vr().attrs}function Ur(e,t,n){const r=xa();if(n&&n.local){const n=qe(e[t]);return On(()=>e[t],e=>n.value=e),On(n,n=>{n!==e[t]&&r.emit("update:"+t,n)}),n}return{__v_isRef:!0,get value(){return e[t]},set value(e){r.emit("update:"+t,e)}}}function Vr(){const e=xa();return e.setupContext||(e.setupContext=Xa(e))}function Br(e){return Object(r["isArray"])(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}function Fr(e,t){const n=Br(e);for(const o in t){if(o.startsWith("__skip"))continue;let e=n[o];e?Object(r["isArray"])(e)||Object(r["isFunction"])(e)?e=n[o]={type:e,default:t[o]}:e.default=t[o]:null===e&&(e=n[o]={default:t[o]}),e&&t["__skip_"+o]&&(e.skipFactory=!0)}return n}function Gr(e,t){return e&&t?Object(r["isArray"])(e)&&Object(r["isArray"])(t)?e.concat(t):Object(r["extend"])({},Br(e),Br(t)):e||t}function zr(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function Hr(e){const t=xa();let n=e();return Ba(),Object(r["isPromise"])(n)&&(n=n.catch(e=>{throw Va(t),e})),[n,()=>Va(t)]}let Yr=!0;function qr(e){const t=Jr(e),n=e.proxy,o=e.ctx;Yr=!1,t.beforeCreate&&Kr(t.beforeCreate,e,"bc");const{data:a,computed:i,methods:s,watch:c,provide:l,inject:u,created:d,beforeMount:p,mounted:f,beforeUpdate:h,updated:m,activated:v,deactivated:g,beforeDestroy:_,beforeUnmount:y,destroyed:b,unmounted:O,render:M,renderTracked:k,renderTriggered:C,errorCaptured:w,serverPrefetch:I,expose:S,inheritAttrs:T,components:E,directives:j,filters:D}=t,L=null;if(u&&Wr(u,o,L),s)for(const N in s){const e=s[N];Object(r["isFunction"])(e)&&(o[N]=e.bind(n))}if(a){0;const t=a.call(n,n);0,Object(r["isObject"])(t)&&(e.data=je(t))}if(Yr=!0,i)for(const N in i){const e=i[N],t=Object(r["isFunction"])(e)?e.bind(n,n):Object(r["isFunction"])(e.get)?e.get.bind(n,n):r["NOOP"];0;const a=!Object(r["isFunction"])(e)&&Object(r["isFunction"])(e.set)?e.set.bind(n):r["NOOP"],s=ni({get:t,set:a});Object.defineProperty(o,N,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e})}if(c)for(const r in c)$r(c[r],o,n,r);if(l){const e=Object(r["isFunction"])(l)?l.call(n):l;Reflect.ownKeys(e).forEach(t=>{uo(t,e[t])})}function A(e,t){Object(r["isArray"])(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(d&&Kr(d,e,"c"),A(tr,p),A(nr,f),A(rr,h),A(or,m),A(Wn,v),A(Kn,g),A(ur,w),A(lr,k),A(cr,C),A(ar,y),A(ir,O),A(sr,I),Object(r["isArray"])(S))if(S.length){const t=e.exposed||(e.exposed={});S.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})})}else e.exposed||(e.exposed={});M&&e.render===r["NOOP"]&&(e.render=M),null!=T&&(e.inheritAttrs=T),E&&(e.components=E),j&&(e.directives=j)}function Wr(e,t,n=r["NOOP"]){Object(r["isArray"])(e)&&(e=to(e));for(const o in e){const n=e[o];let a;a=Object(r["isObject"])(n)?"default"in n?po(n.from||o,n.default,!0):po(n.from||o):po(n),Ye(a)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e}):t[o]=a}}function Kr(e,t,n){ft(Object(r["isArray"])(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function $r(e,t,n,o){const a=o.includes(".")?Cn(n,o):()=>n[o];if(Object(r["isString"])(e)){const n=t[e];Object(r["isFunction"])(n)&&On(a,n)}else if(Object(r["isFunction"])(e))On(a,e.bind(n));else if(Object(r["isObject"])(e))if(Object(r["isArray"])(e))e.forEach(e=>$r(e,t,n,o));else{const o=Object(r["isFunction"])(e.handler)?e.handler.bind(n):t[e.handler];Object(r["isFunction"])(o)&&On(a,o,e)}else 0}function Jr(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:a,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,c=i.get(t);let l;return c?l=c:a.length||n||o?(l={},a.length&&a.forEach(e=>Qr(l,e,s,!0)),Qr(l,t,s)):l=t,Object(r["isObject"])(t)&&i.set(t,l),l}function Qr(e,t,n,r=!1){const{mixins:o,extends:a}=t;a&&Qr(e,a,n,!0),o&&o.forEach(t=>Qr(e,t,n,!0));for(const i in t)if(r&&"expose"===i);else{const r=Xr[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}const Xr={data:Zr,props:oo,emits:oo,methods:ro,computed:ro,beforeCreate:no,created:no,beforeMount:no,mounted:no,beforeUpdate:no,updated:no,beforeDestroy:no,beforeUnmount:no,destroyed:no,unmounted:no,activated:no,deactivated:no,errorCaptured:no,serverPrefetch:no,components:ro,directives:ro,watch:ao,provide:Zr,inject:eo};function Zr(e,t){return t?e?function(){return Object(r["extend"])(Object(r["isFunction"])(e)?e.call(this,this):e,Object(r["isFunction"])(t)?t.call(this,this):t)}:t:e}function eo(e,t){return ro(to(e),to(t))}function to(e){if(Object(r["isArray"])(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function no(e,t){return e?[...new Set([].concat(e,t))]:t}function ro(e,t){return e?Object(r["extend"])(Object.create(null),e,t):t}function oo(e,t){return e?Object(r["isArray"])(e)&&Object(r["isArray"])(t)?[...new Set([...e,...t])]:Object(r["extend"])(Object.create(null),Br(e),Br(null!=t?t:{})):t}function ao(e,t){if(!e)return t;if(!t)return e;const n=Object(r["extend"])(Object.create(null),e);for(const r in t)n[r]=no(e[r],t[r]);return n}function io(){return{app:null,config:{isNativeTag:r["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 so=0;function co(e,t){return function(n,o=null){Object(r["isFunction"])(n)||(n=Object(r["extend"])({},n)),null==o||Object(r["isObject"])(o)||(o=null);const a=io();const i=new Set;let s=!1;const c=a.app={_uid:so++,_component:n,_props:o,_container:null,_context:a,_instance:null,version:li,get config(){return a.config},set config(e){0},use(e,...t){return i.has(e)||(e&&Object(r["isFunction"])(e.install)?(i.add(e),e.install(c,...t)):Object(r["isFunction"])(e)&&(i.add(e),e(c,...t))),c},mixin(e){return a.mixins.includes(e)||a.mixins.push(e),c},component(e,t){return t?(a.components[e]=t,c):a.components[e]},directive(e,t){return t?(a.directives[e]=t,c):a.directives[e]},mount(r,i,l){if(!s){0;const u=ya(n,o);return u.appContext=a,i&&t?t(u,r):e(u,r,l),s=!0,c._container=r,r.__vue_app__=c,Za(u.component)||u.component.proxy}},unmount(){s&&(e(null,c._container),delete c._container.__vue_app__)},provide(e,t){return a.provides[e]=t,c},runWithContext(e){lo=c;try{return e()}finally{lo=null}}};return c}}let lo=null;function uo(e,t){if(Na){let n=Na.provides;const r=Na.parent&&Na.parent.provides;r===n&&(n=Na.provides=Object.create(r)),n[e]=t}else 0}function po(e,t,n=!1){const o=Na||zt;if(o||lo){const a=o?null==o.parent?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:lo._context.provides;if(a&&e in a)return a[e];if(arguments.length>1)return n&&Object(r["isFunction"])(t)?t.call(o&&o.proxy):t}else 0}function fo(){return!!(Na||zt||lo)}function ho(e,t,n,o=!1){const a={},i={};Object(r["def"])(i,ma,1),e.propsDefaults=Object.create(null),vo(e,t,a,i);for(const r in e.propsOptions[0])r in a||(a[r]=void 0);n?e.props=o?a:De(a):e.type.props?e.props=a:e.props=i,e.attrs=i}function mo(e,t,n,o){const{props:a,attrs:i,vnode:{patchFlag:s}}=e,c=Ve(a),[l]=e.propsOptions;let u=!1;if(!(o||s>0)||16&s){let o;vo(e,t,a,i)&&(u=!0);for(const i in c)t&&(Object(r["hasOwn"])(t,i)||(o=Object(r["hyphenate"])(i))!==i&&Object(r["hasOwn"])(t,o))||(l?!n||void 0===n[i]&&void 0===n[o]||(a[i]=go(l,c,i,void 0,e,!0)):delete a[i]);if(i!==c)for(const e in i)t&&Object(r["hasOwn"])(t,e)||(delete i[e],u=!0)}else if(8&s){const n=e.vnode.dynamicProps;for(let o=0;o<n.length;o++){let s=n[o];if(Gt(e.emitsOptions,s))continue;const d=t[s];if(l)if(Object(r["hasOwn"])(i,s))d!==i[s]&&(i[s]=d,u=!0);else{const t=Object(r["camelize"])(s);a[t]=go(l,c,t,d,e,!1)}else d!==i[s]&&(i[s]=d,u=!0)}}u&&L(e,"set","$attrs")}function vo(e,t,n,o){const[a,i]=e.propsOptions;let s,c=!1;if(t)for(let l in t){if(Object(r["isReservedProp"])(l))continue;const u=t[l];let d;a&&Object(r["hasOwn"])(a,d=Object(r["camelize"])(l))?i&&i.includes(d)?(s||(s={}))[d]=u:n[d]=u:Gt(e.emitsOptions,l)||l in o&&u===o[l]||(o[l]=u,c=!0)}if(i){const t=Ve(n),o=s||r["EMPTY_OBJ"];for(let s=0;s<i.length;s++){const c=i[s];n[c]=go(a,t,c,o[c],e,!Object(r["hasOwn"])(o,c))}}return c}function go(e,t,n,o,a,i){const s=e[n];if(null!=s){const e=Object(r["hasOwn"])(s,"default");if(e&&void 0===o){const e=s.default;if(s.type!==Function&&!s.skipFactory&&Object(r["isFunction"])(e)){const{propsDefaults:r}=a;n in r?o=r[n]:(Va(a),o=r[n]=e.call(null,t),Ba())}else o=e}s[0]&&(i&&!e?o=!1:!s[1]||""!==o&&o!==Object(r["hyphenate"])(n)||(o=!0))}return o}function _o(e,t,n=!1){const o=t.propsCache,a=o.get(e);if(a)return a;const i=e.props,s={},c=[];let l=!1;if(!Object(r["isFunction"])(e)){const o=e=>{l=!0;const[n,o]=_o(e,t,!0);Object(r["extend"])(s,n),o&&c.push(...o)};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}if(!i&&!l)return Object(r["isObject"])(e)&&o.set(e,r["EMPTY_ARR"]),r["EMPTY_ARR"];if(Object(r["isArray"])(i))for(let d=0;d<i.length;d++){0;const e=Object(r["camelize"])(i[d]);yo(e)&&(s[e]=r["EMPTY_OBJ"])}else if(i){0;for(const e in i){const t=Object(r["camelize"])(e);if(yo(t)){const n=i[e],o=s[t]=Object(r["isArray"])(n)||Object(r["isFunction"])(n)?{type:n}:Object(r["extend"])({},n);if(o){const e=Mo(Boolean,o.type),n=Mo(String,o.type);o[0]=e>-1,o[1]=n<0||e<n,(e>-1||Object(r["hasOwn"])(o,"default"))&&c.push(t)}}}}const u=[s,c];return Object(r["isObject"])(e)&&o.set(e,u),u}function yo(e){return"$"!==e[0]}function bo(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:null===e?"null":""}function Oo(e,t){return bo(e)===bo(t)}function Mo(e,t){return Object(r["isArray"])(t)?t.findIndex(t=>Oo(t,e)):Object(r["isFunction"])(t)&&Oo(t,e)?0:-1}const ko=e=>"_"===e[0]||"$stable"===e,Co=e=>Object(r["isArray"])(e)?e.map(Ia):[Ia(e)],wo=(e,t,n)=>{if(t._n)return t;const r=$t((...e)=>Co(t(...e)),n);return r._c=!1,r},Io=(e,t,n)=>{const o=e._ctx;for(const a in e){if(ko(a))continue;const n=e[a];if(Object(r["isFunction"])(n))t[a]=wo(a,n,o);else if(null!=n){0;const e=Co(n);t[a]=()=>e}}},So=(e,t)=>{const n=Co(t);e.slots.default=()=>n},To=(e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=Ve(t),Object(r["def"])(t,"_",n)):Io(t,e.slots={})}else e.slots={},t&&So(e,t);Object(r["def"])(e.slots,ma,1)},Eo=(e,t,n)=>{const{vnode:o,slots:a}=e;let i=!0,s=r["EMPTY_OBJ"];if(32&o.shapeFlag){const e=t._;e?n&&1===e?i=!1:(Object(r["extend"])(a,t),n||1!==e||delete a._):(i=!t.$stable,Io(t,a)),s=t}else t&&(So(e,t),s={default:1});if(i)for(const r in a)ko(r)||r in s||delete a[r]};function jo(e,t,n,o,a=!1){if(Object(r["isArray"])(e))return void e.forEach((e,i)=>jo(e,t&&(Object(r["isArray"])(t)?t[i]:t),n,o,a));if(Bn(o)&&!a)return;const i=4&o.shapeFlag?Za(o.component)||o.component.proxy:o.el,s=a?null:i,{i:c,r:l}=e;const u=t&&t.r,d=c.refs===r["EMPTY_OBJ"]?c.refs={}:c.refs,p=c.setupState;if(null!=u&&u!==l&&(Object(r["isString"])(u)?(d[u]=null,Object(r["hasOwn"])(p,u)&&(p[u]=null)):Ye(u)&&(u.value=null)),Object(r["isFunction"])(l))pt(l,c,12,[s,d]);else{const t=Object(r["isString"])(l),o=Ye(l);if(t||o){const c=()=>{if(e.f){const n=t?Object(r["hasOwn"])(p,l)?p[l]:d[l]:l.value;a?Object(r["isArray"])(n)&&Object(r["remove"])(n,i):Object(r["isArray"])(n)?n.includes(i)||n.push(i):t?(d[l]=[i],Object(r["hasOwn"])(p,l)&&(p[l]=d[l])):(l.value=[i],e.k&&(d[e.k]=l.value))}else t?(d[l]=s,Object(r["hasOwn"])(p,l)&&(p[l]=s)):o&&(l.value=s,e.k&&(d[e.k]=s))};s?(c.id=-1,Ro(c,n)):c()}else 0}}let Do=!1;const Lo=e=>/svg/.test(e.namespaceURI)&&"foreignObject"!==e.tagName,Ao=e=>8===e.nodeType;function No(e){const{mt:t,p:n,o:{patchProp:o,createText:a,nextSibling:i,parentNode:s,remove:c,insert:l,createComment:u}}=e,d=(e,t)=>{if(!t.hasChildNodes())return n(null,e,t),Lt(),void(t._vnode=e);Do=!1,p(t.firstChild,e,null,null,null),Lt(),t._vnode=e,Do&&console.error("Hydration completed but contains mismatches.")},p=(n,r,o,c,u,d=!1)=>{const _=Ao(n)&&"["===n.data,y=()=>v(n,r,o,c,u,_),{type:b,ref:O,shapeFlag:M,patchFlag:k}=r;let C=n.nodeType;r.el=n,-2===k&&(d=!1,r.dynamicChildren=null);let w=null;switch(b){case Zo:3!==C?""===r.children?(l(r.el=a(""),s(n),n),w=n):w=y():(n.data!==r.children&&(Do=!0,n.data=r.children),w=i(n));break;case ea:w=8!==C||_?y():i(n);break;case ta:if(_&&(n=i(n),C=n.nodeType),1===C||3===C){w=n;const e=!r.children.length;for(let t=0;t<r.staticCount;t++)e&&(r.children+=1===w.nodeType?w.outerHTML:w.data),t===r.staticCount-1&&(r.anchor=w),w=i(w);return _?i(w):w}y();break;case Xo:w=_?m(n,r,o,c,u,d):y();break;default:if(1&M)w=1!==C||r.type.toLowerCase()!==n.tagName.toLowerCase()?y():f(n,r,o,c,u,d);else if(6&M){r.slotScopeIds=u;const e=s(n);if(t(r,e,null,o,c,Lo(e),d),w=_?g(n):i(n),w&&Ao(w)&&"teleport end"===w.data&&(w=i(w)),Bn(r)){let t;_?(t=ya(Xo),t.anchor=w?w.previousSibling:e.lastChild):t=3===n.nodeType?ka(""):ya("div"),t.el=n,r.component.subTree=t}}else 64&M?w=8!==C?y():r.type.hydrate(n,r,o,c,u,d,e,h):128&M&&(w=r.type.hydrate(n,r,o,c,Lo(s(n)),u,d,e,p))}return null!=O&&jo(O,null,c,r),w},f=(e,t,n,a,i,s)=>{s=s||!!t.dynamicChildren;const{type:l,props:u,patchFlag:d,shapeFlag:p,dirs:f}=t,m="input"===l&&f||"option"===l;if(m||-1!==d){if(f&&Sn(t,null,n,"created"),u)if(m||!s||48&d)for(const t in u)(m&&t.endsWith("value")||Object(r["isOn"])(t)&&!Object(r["isReservedProp"])(t))&&o(e,t,null,u[t],!1,void 0,n);else u.onClick&&o(e,"onClick",null,u.onClick,!1,void 0,n);let l;if((l=u&&u.onVnodeBeforeMount)&&ja(l,n,t),f&&Sn(t,null,n,"beforeMount"),((l=u&&u.onVnodeMounted)||f)&&hn(()=>{l&&ja(l,n,t),f&&Sn(t,null,n,"mounted")},a),16&p&&(!u||!u.innerHTML&&!u.textContent)){let r=h(e.firstChild,t,e,n,a,i,s);while(r){Do=!0;const e=r;r=r.nextSibling,c(e)}}else 8&p&&e.textContent!==t.children&&(Do=!0,e.textContent=t.children)}return e.nextSibling},h=(e,t,r,o,a,i,s)=>{s=s||!!t.dynamicChildren;const c=t.children,l=c.length;for(let u=0;u<l;u++){const t=s?c[u]:c[u]=Ia(c[u]);if(e)e=p(e,t,o,a,i,s);else{if(t.type===Zo&&!t.children)continue;Do=!0,n(null,t,r,null,o,a,Lo(r),i)}}return e},m=(e,t,n,r,o,a)=>{const{slotScopeIds:c}=t;c&&(o=o?o.concat(c):c);const d=s(e),p=h(i(e),t,d,n,r,o,a);return p&&Ao(p)&&"]"===p.data?i(t.anchor=p):(Do=!0,l(t.anchor=u("]"),d,p),p)},v=(e,t,r,o,a,l)=>{if(Do=!0,t.el=null,l){const t=g(e);while(1){const n=i(e);if(!n||n===t)break;c(n)}}const u=i(e),d=s(e);return c(e),n(null,t,d,u,r,o,Lo(d),a),u},g=e=>{let t=0;while(e)if(e=i(e),e&&Ao(e)&&("["===e.data&&t++,"]"===e.data)){if(0===t)return i(e);t--}return e};return[d,p]}function xo(){}const Ro=hn;function Po(e){return Vo(e)}function Uo(e){return Vo(e,No)}function Vo(e,t){xo();const n=Object(r["getGlobalThis"])();n.__VUE__=!0;const{insert:o,remove:a,patchProp:i,createElement:s,createText:c,createComment:l,setText:u,setElementText:d,parentNode:p,nextSibling:f,setScopeId:h=r["NOOP"],insertStaticContent:m}=e,v=(e,t,n,r=null,o=null,a=null,i=!1,s=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!fa(e,t)&&(r=W(e),G(e,o,a,!0),e=null),-2===t.patchFlag&&(c=!1,t.dynamicChildren=null);const{type:l,ref:u,shapeFlag:d}=t;switch(l){case Zo:g(e,t,n,r);break;case ea:_(e,t,n,r);break;case ta:null==e&&y(t,n,r,i);break;case Xo:L(e,t,n,r,o,a,i,s,c);break;default:1&d?k(e,t,n,r,o,a,i,s,c):6&d?A(e,t,n,r,o,a,i,s,c):(64&d||128&d)&&l.process(e,t,n,r,o,a,i,s,c,$)}null!=u&&o&&jo(u,e&&e.ref,a,t||e,!t)},g=(e,t,n,r)=>{if(null==e)o(t.el=c(t.children),n,r);else{const n=t.el=e.el;t.children!==e.children&&u(n,t.children)}},_=(e,t,n,r)=>{null==e?o(t.el=l(t.children||""),n,r):t.el=e.el},y=(e,t,n,r)=>{[e.el,e.anchor]=m(e.children,t,n,r,e.el,e.anchor)},b=({el:e,anchor:t},n,r)=>{let a;while(e&&e!==t)a=f(e),o(e,n,r),e=a;o(t,n,r)},O=({el:e,anchor:t})=>{let n;while(e&&e!==t)n=f(e),a(e),e=n;a(t)},k=(e,t,n,r,o,a,i,s,c)=>{i=i||"svg"===t.type,null==e?C(t,n,r,o,a,i,s,c):S(e,t,o,a,i,s,c)},C=(e,t,n,a,c,l,u,p)=>{let f,h;const{type:m,props:v,shapeFlag:g,transition:_,dirs:y}=e;if(f=e.el=s(e.type,l,v&&v.is,v),8&g?d(f,e.children):16&g&&I(e.children,f,null,a,c,l&&"foreignObject"!==m,u,p),y&&Sn(e,null,a,"created"),w(f,e,e.scopeId,u,a),v){for(const t in v)"value"===t||Object(r["isReservedProp"])(t)||i(f,t,null,v[t],l,e.children,a,c,q);"value"in v&&i(f,"value",null,v.value),(h=v.onVnodeBeforeMount)&&ja(h,a,e)}y&&Sn(e,null,a,"beforeMount");const b=(!c||c&&!c.pendingBranch)&&_&&!_.persisted;b&&_.beforeEnter(f),o(f,t,n),((h=v&&v.onVnodeMounted)||b||y)&&Ro(()=>{h&&ja(h,a,e),b&&_.enter(f),y&&Sn(e,null,a,"mounted")},c)},w=(e,t,n,r,o)=>{if(n&&h(e,n),r)for(let a=0;a<r.length;a++)h(e,r[a]);if(o){let n=o.subTree;if(t===n){const t=o.vnode;w(e,t,t.scopeId,t.slotScopeIds,o.parent)}}},I=(e,t,n,r,o,a,i,s,c=0)=>{for(let l=c;l<e.length;l++){const c=e[l]=s?Sa(e[l]):Ia(e[l]);v(null,c,t,n,r,o,a,i,s)}},S=(e,t,n,o,a,s,c)=>{const l=t.el=e.el;let{patchFlag:u,dynamicChildren:p,dirs:f}=t;u|=16&e.patchFlag;const h=e.props||r["EMPTY_OBJ"],m=t.props||r["EMPTY_OBJ"];let v;n&&Bo(n,!1),(v=m.onVnodeBeforeUpdate)&&ja(v,n,t,e),f&&Sn(t,e,n,"beforeUpdate"),n&&Bo(n,!0);const g=a&&"foreignObject"!==t.type;if(p?j(e.dynamicChildren,p,l,n,o,g,s):c||U(e,t,l,null,n,o,g,s,!1),u>0){if(16&u)D(l,t,h,m,n,o,a);else if(2&u&&h.class!==m.class&&i(l,"class",null,m.class,a),4&u&&i(l,"style",h.style,m.style,a),8&u){const r=t.dynamicProps;for(let t=0;t<r.length;t++){const s=r[t],c=h[s],u=m[s];u===c&&"value"!==s||i(l,s,c,u,a,e.children,n,o,q)}}1&u&&e.children!==t.children&&d(l,t.children)}else c||null!=p||D(l,t,h,m,n,o,a);((v=m.onVnodeUpdated)||f)&&Ro(()=>{v&&ja(v,n,t,e),f&&Sn(t,e,n,"updated")},o)},j=(e,t,n,r,o,a,i)=>{for(let s=0;s<t.length;s++){const c=e[s],l=t[s],u=c.el&&(c.type===Xo||!fa(c,l)||70&c.shapeFlag)?p(c.el):n;v(c,l,u,null,r,o,a,i,!0)}},D=(e,t,n,o,a,s,c)=>{if(n!==o){if(n!==r["EMPTY_OBJ"])for(const l in n)Object(r["isReservedProp"])(l)||l in o||i(e,l,n[l],null,c,t.children,a,s,q);for(const l in o){if(Object(r["isReservedProp"])(l))continue;const u=o[l],d=n[l];u!==d&&"value"!==l&&i(e,l,d,u,c,t.children,a,s,q)}"value"in o&&i(e,"value",n.value,o.value)}},L=(e,t,n,r,a,i,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?(o(d,n,r),o(p,n,r),I(t.children,n,p,a,i,s,l,u)):f>0&&64&f&&h&&e.dynamicChildren?(j(e.dynamicChildren,h,n,a,i,s,l),(null!=t.key||a&&t===a.subTree)&&Fo(e,t,!0)):U(e,t,n,p,a,i,s,l,u)},A=(e,t,n,r,o,a,i,s,c)=>{t.slotScopeIds=s,null==e?512&t.shapeFlag?o.ctx.activate(t,n,r,i,c):N(t,n,r,o,a,i,c):x(e,t,c)},N=(e,t,n,r,o,a,i)=>{const s=e.component=Aa(e,r,o);if(zn(e)&&(s.ctx.renderer=$),Ya(s),s.asyncDep){if(o&&o.registerDep(s,R),!e.el){const e=s.subTree=ya(ea);_(null,e,t,n)}}else R(s,e,t,n,o,a,i)},x=(e,t,n)=>{const r=t.component=e.component;if(en(e,t,n)){if(r.asyncDep&&!r.asyncResolved)return void P(r,t,n);r.next=t,Et(r.update),r.update()}else t.el=e.el,r.vnode=t},R=(e,t,n,o,a,i,s)=>{const c=()=>{if(e.isMounted){let t,{next:n,bu:o,u:c,parent:l,vnode:u}=e,d=n;0,Bo(e,!1),n?(n.el=u.el,P(e,n,s)):n=u,o&&Object(r["invokeArrayFns"])(o),(t=n.props&&n.props.onVnodeBeforeUpdate)&&ja(t,l,n,u),Bo(e,!0);const f=Jt(e);0;const h=e.subTree;e.subTree=f,v(h,f,p(h.el),W(h),e,a,i),n.el=f.el,null===d&&nn(e,f.el),c&&Ro(c,a),(t=n.props&&n.props.onVnodeUpdated)&&Ro(()=>ja(t,l,n,u),a)}else{let s;const{el:c,props:l}=t,{bm:u,m:d,parent:p}=e,f=Bn(t);if(Bo(e,!1),u&&Object(r["invokeArrayFns"])(u),!f&&(s=l&&l.onVnodeBeforeMount)&&ja(s,p,t),Bo(e,!0),c&&Q){const n=()=>{e.subTree=Jt(e),Q(c,e.subTree,e,a,null)};f?t.type.__asyncLoader().then(()=>!e.isUnmounted&&n()):n()}else{0;const r=e.subTree=Jt(e);0,v(null,r,n,o,e,a,i),t.el=r.el}if(d&&Ro(d,a),!f&&(s=l&&l.onVnodeMounted)){const e=t;Ro(()=>ja(s,p,e),a)}(256&t.shapeFlag||p&&Bn(p.vnode)&&256&p.vnode.shapeFlag)&&e.a&&Ro(e.a,a),e.isMounted=!0,t=n=o=null}},l=e.effect=new M(c,()=>St(u),e.scope),u=e.update=()=>l.run();u.id=e.uid,Bo(e,!0),u()},P=(e,t,n)=>{t.component=e;const r=e.vnode.props;e.vnode=t,e.next=null,mo(e,t.props,r,n),Eo(e,t.children,n),T(),Dt(),E()},U=(e,t,n,r,o,a,i,s,c=!1)=>{const l=e&&e.children,u=e?e.shapeFlag:0,p=t.children,{patchFlag:f,shapeFlag:h}=t;if(f>0){if(128&f)return void B(l,p,n,r,o,a,i,s,c);if(256&f)return void V(l,p,n,r,o,a,i,s,c)}8&h?(16&u&&q(l,o,a),p!==l&&d(n,p)):16&u?16&h?B(l,p,n,r,o,a,i,s,c):q(l,o,a,!0):(8&u&&d(n,""),16&h&&I(p,n,r,o,a,i,s,c))},V=(e,t,n,o,a,i,s,c,l)=>{e=e||r["EMPTY_ARR"],t=t||r["EMPTY_ARR"];const u=e.length,d=t.length,p=Math.min(u,d);let f;for(f=0;f<p;f++){const r=t[f]=l?Sa(t[f]):Ia(t[f]);v(e[f],r,n,null,a,i,s,c,l)}u>d?q(e,a,i,!0,!1,p):I(t,n,o,a,i,s,c,l,p)},B=(e,t,n,o,a,i,s,c,l)=>{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]=l?Sa(t[u]):Ia(t[u]);if(!fa(r,o))break;v(r,o,n,null,a,i,s,c,l),u++}while(u<=p&&u<=f){const r=e[p],o=t[f]=l?Sa(t[f]):Ia(t[f]);if(!fa(r,o))break;v(r,o,n,null,a,i,s,c,l),p--,f--}if(u>p){if(u<=f){const e=f+1,r=e<d?t[e].el:o;while(u<=f)v(null,t[u]=l?Sa(t[u]):Ia(t[u]),n,r,a,i,s,c,l),u++}}else if(u>f)while(u<=p)G(e[u],a,i,!0),u++;else{const h=u,m=u,g=new Map;for(u=m;u<=f;u++){const e=t[u]=l?Sa(t[u]):Ia(t[u]);null!=e.key&&g.set(e.key,u)}let _,y=0;const b=f-m+1;let O=!1,M=0;const k=new Array(b);for(u=0;u<b;u++)k[u]=0;for(u=h;u<=p;u++){const r=e[u];if(y>=b){G(r,a,i,!0);continue}let o;if(null!=r.key)o=g.get(r.key);else for(_=m;_<=f;_++)if(0===k[_-m]&&fa(r,t[_])){o=_;break}void 0===o?G(r,a,i,!0):(k[o-m]=u+1,o>=M?M=o:O=!0,v(r,t[o],n,null,a,i,s,c,l),y++)}const C=O?Go(k):r["EMPTY_ARR"];for(_=C.length-1,u=b-1;u>=0;u--){const e=m+u,r=t[e],p=e+1<d?t[e+1].el:o;0===k[u]?v(null,r,n,p,a,i,s,c,l):O&&(_<0||u!==C[_]?F(r,n,p,2):_--)}}},F=(e,t,n,r,a=null)=>{const{el:i,type:s,transition:c,children:l,shapeFlag:u}=e;if(6&u)return void F(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,$);if(s===Xo){o(i,t,n);for(let e=0;e<l.length;e++)F(l[e],t,n,r);return void o(e.anchor,t,n)}if(s===ta)return void b(e,t,n);const d=2!==r&&1&u&&c;if(d)if(0===r)c.beforeEnter(i),o(i,t,n),Ro(()=>c.enter(i),a);else{const{leave:e,delayLeave:r,afterLeave:a}=c,s=()=>o(i,t,n),l=()=>{e(i,()=>{s(),a&&a()})};r?r(i,s,l):l()}else o(i,t,n)},G=(e,t,n,r=!1,o=!1)=>{const{type:a,props:i,ref:s,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:p}=e;if(null!=s&&jo(s,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const f=1&u&&p,h=!Bn(e);let m;if(h&&(m=i&&i.onVnodeBeforeUnmount)&&ja(m,t,e),6&u)Y(e.component,n,r);else{if(128&u)return void e.suspense.unmount(n,r);f&&Sn(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,o,$,r):l&&(a!==Xo||d>0&&64&d)?q(l,t,n,!1,!0):(a===Xo&&384&d||!o&&16&u)&&q(c,t,n),r&&z(e)}(h&&(m=i&&i.onVnodeUnmounted)||f)&&Ro(()=>{m&&ja(m,t,e),f&&Sn(e,null,t,"unmounted")},n)},z=e=>{const{type:t,el:n,anchor:r,transition:o}=e;if(t===Xo)return void H(n,r);if(t===ta)return void O(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()},H=(e,t)=>{let n;while(e!==t)n=f(e),a(e),e=n;a(t)},Y=(e,t,n)=>{const{bum:o,scope:a,update:i,subTree:s,um:c}=e;o&&Object(r["invokeArrayFns"])(o),a.stop(),i&&(i.active=!1,G(s,e,t,n)),c&&Ro(c,t),Ro(()=>{e.isUnmounted=!0},t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},q=(e,t,n,r=!1,o=!1,a=0)=>{for(let i=a;i<e.length;i++)G(e[i],t,n,r,o)},W=e=>6&e.shapeFlag?W(e.component.subTree):128&e.shapeFlag?e.suspense.next():f(e.anchor||e.el),K=(e,t,n)=>{null==e?t._vnode&&G(t._vnode,null,null,!0):v(t._vnode||null,e,t,null,null,null,n),Dt(),Lt(),t._vnode=e},$={p:v,um:G,m:F,r:z,mt:N,mc:I,pc:U,pbc:j,n:W,o:e};let J,Q;return t&&([J,Q]=t($)),{render:K,hydrate:J,createApp:co(K,J)}}function Bo({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Fo(e,t,n=!1){const o=e.children,a=t.children;if(Object(r["isArray"])(o)&&Object(r["isArray"])(a))for(let r=0;r<o.length;r++){const e=o[r];let t=a[r];1&t.shapeFlag&&!t.dynamicChildren&&((t.patchFlag<=0||32===t.patchFlag)&&(t=a[r]=Sa(a[r]),t.el=e.el),n||Fo(e,t)),t.type===Zo&&(t.el=e.el)}}function Go(e){const t=e.slice(),n=[0];let r,o,a,i,s;const c=e.length;for(r=0;r<c;r++){const c=e[r];if(0!==c){if(o=n[n.length-1],e[o]<c){t[r]=o,n.push(r);continue}a=0,i=n.length-1;while(a<i)s=a+i>>1,e[n[s]]<c?a=s+1:i=s;c<e[n[a]]&&(a>0&&(t[r]=n[a-1]),n[a]=r)}}a=n.length,i=n[a-1];while(a-- >0)n[a]=i,i=t[i];return n}const zo=e=>e.__isTeleport,Ho=e=>e&&(e.disabled||""===e.disabled),Yo=e=>"undefined"!==typeof SVGElement&&e instanceof SVGElement,qo=(e,t)=>{const n=e&&e.to;if(Object(r["isString"])(n)){if(t){const e=t(n);return e}return null}return n},Wo={__isTeleport:!0,process(e,t,n,r,o,a,i,s,c,l){const{mc:u,pc:d,pbc:p,o:{insert:f,querySelector:h,createText:m,createComment:v}}=l,g=Ho(t.props);let{shapeFlag:_,children:y,dynamicChildren:b}=t;if(null==e){const e=t.el=m(""),l=t.anchor=m("");f(e,n,r),f(l,n,r);const d=t.target=qo(t.props,h),p=t.targetAnchor=m("");d&&(f(p,d),i=i||Yo(d));const v=(e,t)=>{16&_&&u(y,e,t,o,a,i,s,c)};g?v(n,l):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=Ho(e.props),v=m?n:u,_=m?r:f;if(i=i||Yo(u),b?(p(e.dynamicChildren,b,v,o,a,i,s),Fo(e,t,!0)):c||d(e,t,v,_,o,a,i,s,!1),g)m||Ko(t,n,r,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=qo(t.props,h);e&&Ko(t,e,null,l,0)}else m&&Ko(t,u,f,l,1)}Qo(t)},remove(e,t,n,r,{um:o,o:{remove:a}},i){const{shapeFlag:s,children:c,anchor:l,targetAnchor:u,target:d,props:p}=e;if(d&&a(u),(i||!Ho(p))&&(a(l),16&s))for(let f=0;f<c.length;f++){const e=c[f];o(e,t,n,!0,!!e.dynamicChildren)}},move:Ko,hydrate:$o};function Ko(e,t,n,{o:{insert:r},m:o},a=2){0===a&&r(e.targetAnchor,t,n);const{el:i,anchor:s,shapeFlag:c,children:l,props:u}=e,d=2===a;if(d&&r(i,t,n),(!d||Ho(u))&&16&c)for(let p=0;p<l.length;p++)o(l[p],t,n,2);d&&r(s,t,n)}function $o(e,t,n,r,o,a,{o:{nextSibling:i,parentNode:s,querySelector:c}},l){const u=t.target=qo(t.props,c);if(u){const c=u._lpa||u.firstChild;if(16&t.shapeFlag)if(Ho(t.props))t.anchor=l(i(e),t,s(e),n,r,o,a),t.targetAnchor=c;else{t.anchor=i(e);let s=c;while(s)if(s=i(s),s&&8===s.nodeType&&"teleport anchor"===s.data){t.targetAnchor=s,u._lpa=t.targetAnchor&&i(t.targetAnchor);break}l(c,t,u,n,r,o,a)}Qo(t)}return t.anchor&&i(t.anchor)}const Jo=Wo;function Qo(e){const t=e.ctx;if(t&&t.ut){let n=e.children[0].el;while(n!==e.targetAnchor)1===n.nodeType&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}const Xo=Symbol.for("v-fgt"),Zo=Symbol.for("v-txt"),ea=Symbol.for("v-cmt"),ta=Symbol.for("v-stc"),na=[];let ra=null;function oa(e=!1){na.push(ra=e?null:[])}function aa(){na.pop(),ra=na[na.length-1]||null}let ia,sa=1;function ca(e){sa+=e}function la(e){return e.dynamicChildren=sa>0?ra||r["EMPTY_ARR"]:null,aa(),sa>0&&ra&&ra.push(e),e}function ua(e,t,n,r,o,a){return la(_a(e,t,n,r,o,a,!0))}function da(e,t,n,r,o){return la(ya(e,t,n,r,o,!0))}function pa(e){return!!e&&!0===e.__v_isVNode}function fa(e,t){return e.type===t.type&&e.key===t.key}function ha(e){ia=e}const ma="__vInternal",va=({key:e})=>null!=e?e:null,ga=({ref:e,ref_key:t,ref_for:n})=>("number"===typeof e&&(e=""+e),null!=e?Object(r["isString"])(e)||Ye(e)||Object(r["isFunction"])(e)?{i:zt,r:e,k:t,f:!!n}:e:null);function _a(e,t=null,n=null,o=0,a=null,i=(e===Xo?0:1),s=!1,c=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&va(t),ref:t&&ga(t),scopeId:Ht,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:i,patchFlag:o,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:zt};return c?(Ta(l,n),128&i&&e.normalize(l)):n&&(l.shapeFlag|=Object(r["isString"])(n)?8:16),sa>0&&!s&&ra&&(l.patchFlag>0||6&i)&&32!==l.patchFlag&&ra.push(l),l}const ya=ba;function ba(e,t=null,n=null,o=0,a=null,i=!1){if(e&&e!==hr||(e=ea),pa(e)){const r=Ma(e,t,!0);return n&&Ta(r,n),sa>0&&!i&&ra&&(6&r.shapeFlag?ra[ra.indexOf(e)]=r:ra.push(r)),r.patchFlag|=-2,r}if(ti(e)&&(e=e.__vccOpts),t){t=Oa(t);let{class:e,style:n}=t;e&&!Object(r["isString"])(e)&&(t.class=Object(r["normalizeClass"])(e)),Object(r["isObject"])(n)&&(Ue(n)&&!Object(r["isArray"])(n)&&(n=Object(r["extend"])({},n)),t.style=Object(r["normalizeStyle"])(n))}const s=Object(r["isString"])(e)?1:rn(e)?128:zo(e)?64:Object(r["isObject"])(e)?4:Object(r["isFunction"])(e)?2:0;return _a(e,t,n,o,a,s,i,!0)}function Oa(e){return e?Ue(e)||ma in e?Object(r["extend"])({},e):e:null}function Ma(e,t,n=!1){const{props:o,ref:a,patchFlag:i,children:s}=e,c=t?Ea(o||{},t):o,l={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&va(c),ref:t&&t.ref?n&&a?Object(r["isArray"])(a)?a.concat(ga(t)):[a,ga(t)]:ga(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Xo?-1===i?16:16|i:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ma(e.ssContent),ssFallback:e.ssFallback&&Ma(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l}function ka(e=" ",t=0){return ya(Zo,null,e,t)}function Ca(e,t){const n=ya(ta,null,e);return n.staticCount=t,n}function wa(e="",t=!1){return t?(oa(),da(ea,null,e)):ya(ea,null,e)}function Ia(e){return null==e||"boolean"===typeof e?ya(ea):Object(r["isArray"])(e)?ya(Xo,null,e.slice()):"object"===typeof e?Sa(e):ya(Zo,null,String(e))}function Sa(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:Ma(e)}function Ta(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if(Object(r["isArray"])(t))n=16;else if("object"===typeof t){if(65&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),Ta(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||ma in t?3===r&&zt&&(1===zt.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=zt}}else Object(r["isFunction"])(t)?(t={default:t,_ctx:zt},n=32):(t=String(t),64&o?(n=16,t=[ka(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ea(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const e in o)if("class"===e)t.class!==o.class&&(t.class=Object(r["normalizeClass"])([t.class,o.class]));else if("style"===e)t.style=Object(r["normalizeStyle"])([t.style,o.style]);else if(Object(r["isOn"])(e)){const n=t[e],a=o[e];!a||n===a||Object(r["isArray"])(n)&&n.includes(a)||(t[e]=n?[].concat(n,a):a)}else""!==e&&(t[e]=o[e])}return t}function ja(e,t,n,r=null){ft(e,t,7,[n,r])}const Da=io();let La=0;function Aa(e,t,n){const o=e.type,i=(t?t.appContext:e.appContext)||Da,s={uid:La++,vnode:e,type:o,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new a(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:_o(o,i),emitsOptions:Ft(o,i),emit:null,emitted:null,propsDefaults:r["EMPTY_OBJ"],inheritAttrs:o.inheritAttrs,ctx:r["EMPTY_OBJ"],data:r["EMPTY_OBJ"],props:r["EMPTY_OBJ"],attrs:r["EMPTY_OBJ"],slots:r["EMPTY_OBJ"],refs:r["EMPTY_OBJ"],setupState:r["EMPTY_OBJ"],setupContext:null,attrsProxy:null,slotsProxy: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=Bt.bind(null,s),e.ce&&e.ce(s),s}let Na=null;const xa=()=>Na||zt;let Ra,Pa,Ua="__VUE_INSTANCE_SETTERS__";(Pa=Object(r["getGlobalThis"])()[Ua])||(Pa=Object(r["getGlobalThis"])()[Ua]=[]),Pa.push(e=>Na=e),Ra=e=>{Pa.length>1?Pa.forEach(t=>t(e)):Pa[0](e)};const Va=e=>{Ra(e),e.scope.on()},Ba=()=>{Na&&Na.scope.off(),Ra(null)};function Fa(e){return 4&e.vnode.shapeFlag}let Ga,za,Ha=!1;function Ya(e,t=!1){Ha=t;const{props:n,children:r}=e.vnode,o=Fa(e);ho(e,n,o,t),To(e,r);const a=o?qa(e,t):void 0;return Ha=!1,a}function qa(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Be(new Proxy(e.ctx,Sr));const{setup:o}=n;if(o){const n=e.setupContext=o.length>1?Xa(e):null;Va(e),T();const a=pt(o,e,0,[e.props,n]);if(E(),Ba(),Object(r["isPromise"])(a)){if(a.then(Ba,Ba),t)return a.then(n=>{Wa(e,n,t)}).catch(t=>{ht(t,e,0)});e.asyncDep=a}else Wa(e,a,t)}else Ja(e,t)}function Wa(e,t,n){Object(r["isFunction"])(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Object(r["isObject"])(t)&&(e.setupState=et(t)),Ja(e,n)}function Ka(e){Ga=e,za=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,Tr))}}const $a=()=>!Ga;function Ja(e,t,n){const o=e.type;if(!e.render){if(!t&&Ga&&!o.render){const t=o.template||Jr(e).template;if(t){0;const{isCustomElement:n,compilerOptions:a}=e.appContext.config,{delimiters:i,compilerOptions:s}=o,c=Object(r["extend"])(Object(r["extend"])({isCustomElement:n,delimiters:i},a),s);o.render=Ga(t,c)}}e.render=o.render||r["NOOP"],za&&za(e)}Va(e),T(),qr(e),E(),Ba()}function Qa(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return j(e,"get","$attrs"),t[n]}}))}function Xa(e){const t=t=>{e.exposed=t||{}};return{get attrs(){return Qa(e)},slots:e.slots,emit:e.emit,expose:t}}function Za(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(et(Be(e.exposed)),{get(t,n){return n in t?t[n]:n in wr?wr[n](e):void 0},has(e,t){return t in e||t in wr}}))}function ei(e,t=!0){return Object(r["isFunction"])(e)?e.displayName||e.name:e.name||t&&e.__name}function ti(e){return Object(r["isFunction"])(e)&&"__vccOpts"in e}const ni=(e,t)=>lt(e,t,Ha);function ri(e,t,n){const o=arguments.length;return 2===o?Object(r["isObject"])(t)&&!Object(r["isArray"])(t)?pa(t)?ya(e,null,[t]):ya(e,t):ya(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):3===o&&pa(n)&&(n=[n]),ya(e,t,n))}const oi=Symbol.for("v-scx"),ai=()=>{{const e=po(oi);return e}};function ii(){return void 0}function si(e,t,n,r){const o=n[r];if(o&&ci(o,e))return o;const a=t();return a.memo=e.slice(),n[r]=a}function ci(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let o=0;o<n.length;o++)if(Object(r["hasChanged"])(n[o],t[o]))return!1;return sa>0&&ra&&ra.push(e),!0}const li="3.3.4",ui={createComponentInstance:Aa,setupComponent:Ya,renderComponentRoot:Jt,setCurrentRenderingInstance:Yt,isVNode:pa,normalizeVNode:Ia},di=ui,pi=null,fi=null,hi="http://www.w3.org/2000/svg",mi="undefined"!==typeof document?document:null,vi=mi&&mi.createElement("template"),gi={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?mi.createElementNS(hi,e):mi.createElement(e,n?{is:n}:void 0);return"select"===e&&r&&null!=r.multiple&&o.setAttribute("multiple",r.multiple),o},createText:e=>mi.createTextNode(e),createComment:e=>mi.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>mi.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,a){const i=n?n.previousSibling:t.lastChild;if(o&&(o===a||o.nextSibling)){while(1)if(t.insertBefore(o.cloneNode(!0),n),o===a||!(o=o.nextSibling))break}else{vi.innerHTML=r?`<svg>${e}</svg>`:e;const o=vi.content;if(r){const e=o.firstChild;while(e.firstChild)o.appendChild(e.firstChild);o.removeChild(e)}t.insertBefore(o,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function _i(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 yi(e,t,n){const o=e.style,a=Object(r["isString"])(n);if(n&&!a){if(t&&!Object(r["isString"])(t))for(const e in t)null==n[e]&&Oi(o,e,"");for(const e in n)Oi(o,e,n[e])}else{const r=o.display;a?t!==n&&(o.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(o.display=r)}}const bi=/\s*!important$/;function Oi(e,t,n){if(Object(r["isArray"])(n))n.forEach(n=>Oi(e,t,n));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=Ci(e,t);bi.test(n)?e.setProperty(Object(r["hyphenate"])(o),n.replace(bi,""),"important"):e[o]=n}}const Mi=["Webkit","Moz","ms"],ki={};function Ci(e,t){const n=ki[t];if(n)return n;let o=Object(r["camelize"])(t);if("filter"!==o&&o in e)return ki[t]=o;o=Object(r["capitalize"])(o);for(let r=0;r<Mi.length;r++){const n=Mi[r]+o;if(n in e)return ki[t]=n}return t}const wi="http://www.w3.org/1999/xlink";function Ii(e,t,n,o,a){if(o&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(wi,t.slice(6,t.length)):e.setAttributeNS(wi,t,n);else{const o=Object(r["isSpecialBooleanAttr"])(t);null==n||o&&!Object(r["includeBooleanAttr"])(n)?e.removeAttribute(t):e.setAttribute(t,o?"":n)}}function Si(e,t,n,o,a,i,s){if("innerHTML"===t||"textContent"===t)return o&&s(o,a,i),void(e[t]=null==n?"":n);const c=e.tagName;if("value"===t&&"PROGRESS"!==c&&!c.includes("-")){e._value=n;const r="OPTION"===c?e.getAttribute("value"):e.value,o=null==n?"":n;return r!==o&&(e.value=o),void(null==n&&e.removeAttribute(t))}let l=!1;if(""===n||null==n){const o=typeof e[t];"boolean"===o?n=Object(r["includeBooleanAttr"])(n):null==n&&"string"===o?(n="",l=!0):"number"===o&&(n=0,l=!0)}try{e[t]=n}catch(u){0}l&&e.removeAttribute(t)}function Ti(e,t,n,r){e.addEventListener(t,n,r)}function Ei(e,t,n,r){e.removeEventListener(t,n,r)}function ji(e,t,n,r,o=null){const a=e._vei||(e._vei={}),i=a[t];if(r&&i)i.value=r;else{const[n,s]=Li(t);if(r){const i=a[t]=Ri(r,o);Ti(e,n,i,s)}else i&&(Ei(e,n,i,s),a[t]=void 0)}}const Di=/(?:Once|Passive|Capture)$/;function Li(e){let t;if(Di.test(e)){let n;t={};while(n=e.match(Di))e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}const n=":"===e[2]?e.slice(3):Object(r["hyphenate"])(e.slice(2));return[n,t]}let Ai=0;const Ni=Promise.resolve(),xi=()=>Ai||(Ni.then(()=>Ai=0),Ai=Date.now());function Ri(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();ft(Pi(e,n.value),t,5,[e])};return n.value=e,n.attached=xi(),n}function Pi(e,t){if(Object(r["isArray"])(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 Ui=/^on[a-z]/,Vi=(e,t,n,o,a=!1,i,s,c,l)=>{"class"===t?_i(e,o,a):"style"===t?yi(e,n,o):Object(r["isOn"])(t)?Object(r["isModelListener"])(t)||ji(e,t,n,o,s):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):Bi(e,t,o,a))?Si(e,t,o,i,s,c,l):("true-value"===t?e._trueValue=o:"false-value"===t&&(e._falseValue=o),Ii(e,t,o,a))};function Bi(e,t,n,o){return o?"innerHTML"===t||"textContent"===t||!!(t in e&&Ui.test(t)&&Object(r["isFunction"])(n)):"spellcheck"!==t&&"draggable"!==t&&"translate"!==t&&("form"!==t&&(("list"!==t||"INPUT"!==e.tagName)&&(("type"!==t||"TEXTAREA"!==e.tagName)&&((!Ui.test(t)||!Object(r["isString"])(n))&&t in e))))}function Fi(e,t){const n=Vn(e);class r extends Hi{constructor(e){super(n,e,t)}}return r.def=n,r}const Gi=e=>Fi(e,Qs),zi="undefined"!==typeof HTMLElement?HTMLElement:class{};class Hi extends zi{constructor(e,t={},n){super(),this._def=e,this._props=t,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,wt(()=>{this._connected||(Js(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let n=0;n<this.attributes.length;n++)this._setAttr(this.attributes[n].name);new MutationObserver(e=>{for(const t of e)this._setAttr(t.attributeName)}).observe(this,{attributes:!0});const e=(e,t=!1)=>{const{props:n,styles:o}=e;let a;if(n&&!Object(r["isArray"])(n))for(const i in n){const e=n[i];(e===Number||e&&e.type===Number)&&(i in this._props&&(this._props[i]=Object(r["toNumber"])(this._props[i])),(a||(a=Object.create(null)))[Object(r["camelize"])(i)]=!0)}this._numberProps=a,t&&this._resolveProps(e),this._applyStyles(o),this._update()},t=this._def.__asyncLoader;t?t().then(t=>e(t,!0)):e(this._def)}_resolveProps(e){const{props:t}=e,n=Object(r["isArray"])(t)?t:Object.keys(t||{});for(const r of Object.keys(this))"_"!==r[0]&&n.includes(r)&&this._setProp(r,this[r],!0,!1);for(const o of n.map(r["camelize"]))Object.defineProperty(this,o,{get(){return this._getProp(o)},set(e){this._setProp(o,e)}})}_setAttr(e){let t=this.getAttribute(e);const n=Object(r["camelize"])(e);this._numberProps&&this._numberProps[n]&&(t=Object(r["toNumber"])(t)),this._setProp(n,t,!1)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,o=!0){t!==this._props[e]&&(this._props[e]=t,o&&this._instance&&this._update(),n&&(!0===t?this.setAttribute(Object(r["hyphenate"])(e),""):"string"===typeof t||"number"===typeof t?this.setAttribute(Object(r["hyphenate"])(e),t+""):t||this.removeAttribute(Object(r["hyphenate"])(e))))}_update(){Js(this._createVNode(),this.shadowRoot)}_createVNode(){const e=ya(this._def,Object(r["extend"])({},this._props));return this._instance||(e.ce=e=>{this._instance=e,e.isCE=!0;const t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,{detail:t}))};e.emit=(e,...n)=>{t(e,n),Object(r["hyphenate"])(e)!==e&&t(Object(r["hyphenate"])(e),n)};let n=this;while(n=n&&(n.parentNode||n.host))if(n instanceof Hi){e.parent=n._instance,e.provides=n._instance.provides;break}}),e}_applyStyles(e){e&&e.forEach(e=>{const t=document.createElement("style");t.textContent=e,this.shadowRoot.appendChild(t)})}}function Yi(e="$style"){{const t=xa();if(!t)return r["EMPTY_OBJ"];const n=t.type.__cssModules;if(!n)return r["EMPTY_OBJ"];const o=n[e];return o||r["EMPTY_OBJ"]}}function qi(e){const t=xa();if(!t)return;const n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(e=>Ki(e,n))},r=()=>{const r=e(t.proxy);Wi(t.subTree,r),n(r)};_n(r),nr(()=>{const e=new MutationObserver(r);e.observe(t.subTree.el.parentNode,{childList:!0}),ir(()=>e.disconnect())})}function Wi(e,t){if(128&e.shapeFlag){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Wi(n.activeBranch,t)})}while(e.component)e=e.component.subTree;if(1&e.shapeFlag&&e.el)Ki(e.el,t);else if(e.type===Xo)e.children.forEach(e=>Wi(e,t));else if(e.type===ta){let{el:n,anchor:r}=e;while(n){if(Ki(n,t),n===r)break;n=n.nextSibling}}}function Ki(e,t){if(1===e.nodeType){const n=e.style;for(const e in t)n.setProperty("--"+e,t[e])}}const $i="transition",Ji="animation",Qi=(e,{slots:t})=>ri(Ln,ns(e),t);Qi.displayName="Transition";const Xi={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},Zi=Qi.props=Object(r["extend"])({},jn,Xi),es=(e,t=[])=>{Object(r["isArray"])(e)?e.forEach(e=>e(...t)):e&&e(...t)},ts=e=>!!e&&(Object(r["isArray"])(e)?e.some(e=>e.length>1):e.length>1);function ns(e){const t={};for(const r in e)r in Xi||(t[r]=e[r]);if(!1===e.css)return t;const{name:n="v",type:o,duration:a,enterFromClass:i=n+"-enter-from",enterActiveClass:s=n+"-enter-active",enterToClass:c=n+"-enter-to",appearFromClass:l=i,appearActiveClass:u=s,appearToClass:d=c,leaveFromClass:p=n+"-leave-from",leaveActiveClass:f=n+"-leave-active",leaveToClass:h=n+"-leave-to"}=e,m=rs(a),v=m&&m[0],g=m&&m[1],{onBeforeEnter:_,onEnter:y,onEnterCancelled:b,onLeave:O,onLeaveCancelled:M,onBeforeAppear:k=_,onAppear:C=y,onAppearCancelled:w=b}=t,I=(e,t,n)=>{is(e,t?d:c),is(e,t?u:s),n&&n()},S=(e,t)=>{e._isLeaving=!1,is(e,p),is(e,h),is(e,f),t&&t()},T=e=>(t,n)=>{const r=e?C:y,a=()=>I(t,e,n);es(r,[t,a]),ss(()=>{is(t,e?l:i),as(t,e?d:c),ts(r)||ls(t,o,v,a)})};return Object(r["extend"])(t,{onBeforeEnter(e){es(_,[e]),as(e,i),as(e,s)},onBeforeAppear(e){es(k,[e]),as(e,l),as(e,u)},onEnter:T(!1),onAppear:T(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>S(e,t);as(e,p),fs(),as(e,f),ss(()=>{e._isLeaving&&(is(e,p),as(e,h),ts(O)||ls(e,o,g,n))}),es(O,[e,n])},onEnterCancelled(e){I(e,!1),es(b,[e])},onAppearCancelled(e){I(e,!0),es(w,[e])},onLeaveCancelled(e){S(e),es(M,[e])}})}function rs(e){if(null==e)return null;if(Object(r["isObject"])(e))return[os(e.enter),os(e.leave)];{const t=os(e);return[t,t]}}function os(e){const t=Object(r["toNumber"])(e);return t}function as(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e._vtc||(e._vtc=new Set)).add(t)}function is(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 ss(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let cs=0;function ls(e,t,n,r){const o=e._endId=++cs,a=()=>{o===e._endId&&r()};if(n)return setTimeout(a,n);const{type:i,timeout:s,propCount:c}=us(e,t);if(!i)return r();const l=i+"end";let u=0;const d=()=>{e.removeEventListener(l,p),a()},p=t=>{t.target===e&&++u>=c&&d()};setTimeout(()=>{u<c&&d()},s+1),e.addEventListener(l,p)}function us(e,t){const n=window.getComputedStyle(e),r=e=>(n[e]||"").split(", "),o=r($i+"Delay"),a=r($i+"Duration"),i=ds(o,a),s=r(Ji+"Delay"),c=r(Ji+"Duration"),l=ds(s,c);let u=null,d=0,p=0;t===$i?i>0&&(u=$i,d=i,p=a.length):t===Ji?l>0&&(u=Ji,d=l,p=c.length):(d=Math.max(i,l),u=d>0?i>l?$i:Ji:null,p=u?u===$i?a.length:c.length:0);const f=u===$i&&/\b(transform|all)(,|$)/.test(r($i+"Property").toString());return{type:u,timeout:d,propCount:p,hasTransform:f}}function ds(e,t){while(e.length<t.length)e=e.concat(e);return Math.max(...t.map((t,n)=>ps(t)+ps(e[n])))}function ps(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function fs(){return document.body.offsetHeight}const hs=new WeakMap,ms=new WeakMap,vs={name:"TransitionGroup",props:Object(r["extend"])({},Zi,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=xa(),r=Tn();let o,a;return or(()=>{if(!o.length)return;const t=e.moveClass||(e.name||"v")+"-move";if(!Os(o[0].el,n.vnode.el,t))return;o.forEach(_s),o.forEach(ys);const r=o.filter(bs);fs(),r.forEach(e=>{const n=e.el,r=n.style;as(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,is(n,t))};n.addEventListener("transitionend",o)})}),()=>{const i=Ve(e),s=ns(i);let c=i.tag||Xo;o=a,a=t.default?Un(t.default()):[];for(let e=0;e<a.length;e++){const t=a[e];null!=t.key&&Pn(t,Nn(t,s,r,n))}if(o)for(let e=0;e<o.length;e++){const t=o[e];Pn(t,Nn(t,s,r,n)),hs.set(t,t.el.getBoundingClientRect())}return ya(c,null,a)}}};vs.props;const gs=vs;function _s(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function ys(e){ms.set(e,e.el.getBoundingClientRect())}function bs(e){const t=hs.get(e),n=ms.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 Os(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:a}=us(r);return o.removeChild(r),a}const Ms=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Object(r["isArray"])(t)?e=>Object(r["invokeArrayFns"])(t,e):t};function ks(e){e.target.composing=!0}function Cs(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ws={created(e,{modifiers:{lazy:t,trim:n,number:o}},a){e._assign=Ms(a);const i=o||a.props&&"number"===a.props.type;Ti(e,t?"change":"input",t=>{if(t.target.composing)return;let o=e.value;n&&(o=o.trim()),i&&(o=Object(r["looseToNumber"])(o)),e._assign(o)}),n&&Ti(e,"change",()=>{e.value=e.value.trim()}),t||(Ti(e,"compositionstart",ks),Ti(e,"compositionend",Cs),Ti(e,"change",Cs))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:a}},i){if(e._assign=Ms(i),e.composing)return;if(document.activeElement===e&&"range"!==e.type){if(n)return;if(o&&e.value.trim()===t)return;if((a||"number"===e.type)&&Object(r["looseToNumber"])(e.value)===t)return}const s=null==t?"":t;e.value!==s&&(e.value=s)}},Is={deep:!0,created(e,t,n){e._assign=Ms(n),Ti(e,"change",()=>{const t=e._modelValue,n=Ds(e),o=e.checked,a=e._assign;if(Object(r["isArray"])(t)){const e=Object(r["looseIndexOf"])(t,n),i=-1!==e;if(o&&!i)a(t.concat(n));else if(!o&&i){const n=[...t];n.splice(e,1),a(n)}}else if(Object(r["isSet"])(t)){const e=new Set(t);o?e.add(n):e.delete(n),a(e)}else a(Ls(e,o))})},mounted:Ss,beforeUpdate(e,t,n){e._assign=Ms(n),Ss(e,t,n)}};function Ss(e,{value:t,oldValue:n},o){e._modelValue=t,Object(r["isArray"])(t)?e.checked=Object(r["looseIndexOf"])(t,o.props.value)>-1:Object(r["isSet"])(t)?e.checked=t.has(o.props.value):t!==n&&(e.checked=Object(r["looseEqual"])(t,Ls(e,!0)))}const Ts={created(e,{value:t},n){e.checked=Object(r["looseEqual"])(t,n.props.value),e._assign=Ms(n),Ti(e,"change",()=>{e._assign(Ds(e))})},beforeUpdate(e,{value:t,oldValue:n},o){e._assign=Ms(o),t!==n&&(e.checked=Object(r["looseEqual"])(t,o.props.value))}},Es={deep:!0,created(e,{value:t,modifiers:{number:n}},o){const a=Object(r["isSet"])(t);Ti(e,"change",()=>{const t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?Object(r["looseToNumber"])(Ds(e)):Ds(e));e._assign(e.multiple?a?new Set(t):t:t[0])}),e._assign=Ms(o)},mounted(e,{value:t}){js(e,t)},beforeUpdate(e,t,n){e._assign=Ms(n)},updated(e,{value:t}){js(e,t)}};function js(e,t){const n=e.multiple;if(!n||Object(r["isArray"])(t)||Object(r["isSet"])(t)){for(let o=0,a=e.options.length;o<a;o++){const a=e.options[o],i=Ds(a);if(n)Object(r["isArray"])(t)?a.selected=Object(r["looseIndexOf"])(t,i)>-1:a.selected=t.has(i);else if(Object(r["looseEqual"])(Ds(a),t))return void(e.selectedIndex!==o&&(e.selectedIndex=o))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function Ds(e){return"_value"in e?e._value:e.value}function Ls(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const As={created(e,t,n){xs(e,t,n,null,"created")},mounted(e,t,n){xs(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){xs(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){xs(e,t,n,r,"updated")}};function Ns(e,t){switch(e){case"SELECT":return Es;case"TEXTAREA":return ws;default:switch(t){case"checkbox":return Is;case"radio":return Ts;default:return ws}}}function xs(e,t,n,r,o){const a=Ns(e.tagName,n.props&&n.props.type),i=a[o];i&&i(e,t,n,r)}function Rs(){ws.getSSRProps=({value:e})=>({value:e}),Ts.getSSRProps=({value:e},t)=>{if(t.props&&Object(r["looseEqual"])(t.props.value,e))return{checked:!0}},Is.getSSRProps=({value:e},t)=>{if(Object(r["isArray"])(e)){if(t.props&&Object(r["looseIndexOf"])(e,t.props.value)>-1)return{checked:!0}}else if(Object(r["isSet"])(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},As.getSSRProps=(e,t)=>{if("string"!==typeof t.type)return;const n=Ns(t.type.toUpperCase(),t.props&&t.props.type);return n.getSSRProps?n.getSSRProps(e,t):void 0}}const Ps=["ctrl","shift","alt","meta"],Us={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)=>Ps.some(n=>e[n+"Key"]&&!t.includes(n))},Vs=(e,t)=>(n,...r)=>{for(let e=0;e<t.length;e++){const r=Us[t[e]];if(r&&r(n,t))return}return e(n,...r)},Bs={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Fs=(e,t)=>n=>{if(!("key"in n))return;const o=Object(r["hyphenate"])(n.key);return t.some(e=>e===o||Bs[e]===o)?e(n):void 0},Gs={beforeMount(e,{value:t},{transition:n}){e._vod="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):zs(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),zs(e,!0),r.enter(e)):r.leave(e,()=>{zs(e,!1)}):zs(e,t))},beforeUnmount(e,{value:t}){zs(e,t)}};function zs(e,t){e.style.display=t?e._vod:"none"}function Hs(){Gs.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const Ys=Object(r["extend"])({patchProp:Vi},gi);let qs,Ws=!1;function Ks(){return qs||(qs=Po(Ys))}function $s(){return qs=Ws?qs:Uo(Ys),Ws=!0,qs}const Js=(...e)=>{Ks().render(...e)},Qs=(...e)=>{$s().hydrate(...e)},Xs=(...e)=>{const t=Ks().createApp(...e);const{mount:n}=t;return t.mount=e=>{const o=ec(e);if(!o)return;const a=t._component;Object(r["isFunction"])(a)||a.render||a.template||(a.template=o.innerHTML),o.innerHTML="";const i=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t},Zs=(...e)=>{const t=$s().createApp(...e);const{mount:n}=t;return t.mount=e=>{const t=ec(e);if(t)return n(t,!0,t instanceof SVGElement)},t};function ec(e){if(Object(r["isString"])(e)){const t=document.querySelector(e);return t}return e}let tc=!1;const nc=()=>{tc||(tc=!0,Rs(),Hs())};const rc=()=>{0}},"7a37":function(e,t,n){"use strict";var r=n("3ac6"),o=n("dfdb"),a=r.document,i=o(a)&&o(a.createElement);e.exports=function(e){return i?a.createElement(e):{}}},"7a77":function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},"7aac":function(e,t,n){"use strict";var r=n("c532");e.exports=r.isStandardBrowserEnv()?function(){return{write:function(e,t,n,o,a,i){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(a)&&s.push("domain="+a),!0===i&&s.push("secure"),document.cookie=s.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)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},"7b0b":function(e,t,n){"use strict";var r=n("1d80"),o=Object;e.exports=function(e){return o(r(e))}},"7be6":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),n="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function r(e){return e>1&&e<5}function o(e,t,n,o){var a=e+" ";switch(n){case"s":return t||o?"pár sekúnd":"pár sekundami";case"ss":return t||o?a+(r(e)?"sekundy":"sekúnd"):a+"sekundami";case"m":return t?"minúta":o?"minútu":"minútou";case"mm":return t||o?a+(r(e)?"minúty":"minút"):a+"minútami";case"h":return t?"hodina":o?"hodinu":"hodinou";case"hh":return t||o?a+(r(e)?"hodiny":"hodín"):a+"hodinami";case"d":return t||o?"deň":"dňom";case"dd":return t||o?a+(r(e)?"dni":"dní"):a+"dňami";case"M":return t||o?"mesiac":"mesiacom";case"MM":return t||o?a+(r(e)?"mesiace":"mesiacov"):a+"mesiacmi";case"y":return t||o?"rok":"rokom";case"yy":return t||o?a+(r(e)?"roky":"rokov"):a+"rokmi"}}var a=e.defineLocale("sk",{months:t,monthsShort:n,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:o,ss:o,m:o,mm:o,h:o,hh:o,d:o,dd:o,M:o,MM:o,y:o,yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return a}))},"7c31":function(e,t,n){"use strict";var r=n("6ffb");n.d(t,"a",(function(){return r["b"]})),n.d(t,"b",(function(){return r["c"]})),n.d(t,"c",(function(){return r["d"]})),n.d(t,"d",(function(){return r["e"]})),n.d(t,"e",(function(){return r["f"]})),n.d(t,"f",(function(){return r["g"]}))},"7c74":function(e,t,n){"use strict";var r=n("b337");e.exports=r},"7c78":function(e,t,n){e.exports=n("b83c")},"7ca7":function(e,t,n){"use strict";var r=n("d52b");e.exports=r},"7d20":function(e,t,n){"use strict";e.exports=n("eafd")},"7de7":function(e,t,n){"use strict";var r=n("0363"),o=r("iterator"),a=!1;try{var i=0,s={next:function(){return{done:!!i++}},return:function(){a=!0}};s[o]=function(){return this},Array.from(s,(function(){throw 2}))}catch(c){}e.exports=function(e,t){if(!t&&!a)return!1;var n=!1;try{var r={};r[o]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(c){}return n}},"7ef9":function(e,t,n){"use strict";var r=n("6f8d"),o=n("dfdb"),a=n("ad27");e.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=a.f(e),i=n.resolve;return i(t),n.promise}},"7f33":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/ọjọ́\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}});return t}))},8155:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
function t(e,t,n,r){var o=e+" ";switch(n){case"s":return t||r?"nekaj sekund":"nekaj sekundami";case"ss":return o+=1===e?t?"sekundo":"sekundi":2===e?t||r?"sekundi":"sekundah":e<5?t||r?"sekunde":"sekundah":"sekund",o;case"m":return t?"ena minuta":"eno minuto";case"mm":return o+=1===e?t?"minuta":"minuto":2===e?t||r?"minuti":"minutama":e<5?t||r?"minute":"minutami":t||r?"minut":"minutami",o;case"h":return t?"ena ura":"eno uro";case"hh":return o+=1===e?t?"ura":"uro":2===e?t||r?"uri":"urama":e<5?t||r?"ure":"urami":t||r?"ur":"urami",o;case"d":return t||r?"en dan":"enim dnem";case"dd":return o+=1===e?t||r?"dan":"dnem":2===e?t||r?"dni":"dnevoma":t||r?"dni":"dnevi",o;case"M":return t||r?"en mesec":"enim mesecem";case"MM":return o+=1===e?t||r?"mesec":"mesecem":2===e?t||r?"meseca":"mesecema":e<5?t||r?"mesece":"meseci":t||r?"mesecev":"meseci",o;case"y":return t||r?"eno leto":"enim letom";case"yy":return o+=1===e?t||r?"leto":"letom":2===e?t||r?"leti":"letoma":e<5?t||r?"leta":"leti":t||r?"let":"leti",o}}var n=e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return n}))},8176:function(e,t){},"81e9":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),n=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",t[7],t[8],t[9]];function r(e,t,n,r){var a="";switch(n){case"s":return r?"muutaman sekunnin":"muutama sekunti";case"ss":a=r?"sekunnin":"sekuntia";break;case"m":return r?"minuutin":"minuutti";case"mm":a=r?"minuutin":"minuuttia";break;case"h":return r?"tunnin":"tunti";case"hh":a=r?"tunnin":"tuntia";break;case"d":return r?"päivän":"päivä";case"dd":a=r?"päivän":"päivää";break;case"M":return r?"kuukauden":"kuukausi";case"MM":a=r?"kuukauden":"kuukautta";break;case"y":return r?"vuoden":"vuosi";case"yy":a=r?"vuoden":"vuotta";break}return a=o(e,r)+" "+a,a}function o(e,r){return e<10?r?n[e]:t[e]:e}var a=e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return a}))},"81f0":function(e,t,n){"use strict";e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},8230:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},r=e.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:0,doy:6}});return r}))},"825a":function(e,t,n){"use strict";var r=n("861d"),o=String,a=TypeError;e.exports=function(e){if(r(e))return e;throw a(o(e)+" is not an object")}},"82ec":function(e,t,n){e.exports=n("13b6")},8376:function(e,t,n){"use strict";var r=n("a5eb"),o=n("8c68"),a=n("06fa"),i=n("a205"),s=n("4fff"),c=!o||a((function(){i.f(1)}));r({target:"Object",stat:!0,forced:c},{getOwnPropertySymbols:function(e){var t=i.f;return t?t(s(e)):[]}})},8383:function(e,t,n){"use strict";var r=n("793c");e.exports=r},"83ab":function(e,t,n){"use strict";var r=n("d039");e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"83b9":function(e,t,n){"use strict";var r=n("d9255"),o=n("e683");e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},"83ec":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return c})),n.d(t,"d",(function(){return s})),n.d(t,"e",(function(){return u})),n.d(t,"f",(function(){return d})),n.d(t,"g",(function(){return a}));var r=n("7d20"),o=n("d095");n("7a23");const a=e=>void 0===e,i=e=>"boolean"===typeof e,s=e=>"number"===typeof e,c=e=>!e&&0!==e||Object(r["isArray"])(e)&&0===e.length||Object(r["isObject"])(e)&&!Object.keys(e).length,l=e=>"undefined"!==typeof Element&&e instanceof Element,u=e=>Object(o["isNil"])(e),d=e=>!!Object(r["isString"])(e)&&!Number.isNaN(Number(e))},"83ee":function(e,t,n){"use strict";var r=n("b302").PROPER,o=n("06fa"),a=n("81f0"),i="
";e.exports=function(e){return o((function(){return!!a[e]()||i[e]()!==i||r&&a[e].name!==e}))}},"844d":function(e,t,n){e.exports=n("1e52")},"845a":function(e,t,n){"use strict";var r=n("a5eb"),o=n("ce18"),a=n("4e19"),i=n("4fff"),s=n("c74f"),c=n("741b"),l=n("8c12"),u=n("06fa"),d=n("ade5"),p=n("9f61"),f=n("38b3"),h=n("a465"),m=n("4aa6"),v=n("a93d"),g=[],_=o(g.sort),y=o(g.push),b=u((function(){g.sort(void 0)})),O=u((function(){g.sort(null)})),M=p("sort"),k=!u((function(){if(m)return m<70;if(!(f&&f>3)){if(h)return!0;if(v)return v<603;var e,t,n,r,o="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)g.push({k:t+r,v:n})}for(g.sort((function(e,t){return t.v-e.v})),r=0;r<g.length;r++)t=g[r].k.charAt(0),o.charAt(o.length-1)!==t&&(o+=t);return"DGBEFHACIJK"!==o}})),C=b||!O||!M||!k,w=function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:l(t)>l(n)?1:-1}};r({target:"Array",proto:!0,forced:C},{sort:function(e){void 0!==e&&a(e);var t=i(this);if(k)return void 0===e?_(t):_(t,e);var n,r,o=[],l=s(t);for(r=0;r<l;r++)r in t&&y(o,t[r]);d(o,w(e)),n=s(o),r=0;while(r<n)t[r]=o[r++];while(r<l)c(t,r++);return t}})},"848b":function(e,t,n){"use strict";var r=n("5cce").version,o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var a={};function i(e,t,n){if("object"!==typeof e)throw new TypeError("options must be an object");var r=Object.keys(e),o=r.length;while(o-- >0){var a=r[o],i=t[a];if(i){var s=e[a],c=void 0===s||i(s,a,e);if(!0!==c)throw new TypeError("option "+a+" must be "+c)}else if(!0!==n)throw Error("Unknown option "+a)}}o.transitional=function(e,t,n){function o(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,i){if(!1===e)throw new Error(o(r," has been removed"+(t?" in "+t:"")));return t&&!a[r]&&(a[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,i)}},e.exports={assertOptions:i,validators:o}},"84aa":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Миналата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[Миналия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",w:"седмица",ww:"%d седмици",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}});return t}))},"84d2":function(e,t,n){"use strict";var r=n("a5eb"),o=n("7106"),a=n("4e19"),i=n("ad27"),s=n("9b8d"),c=n("5b57"),l=n("f135");r({target:"Promise",stat:!0,forced:l},{allSettled:function(e){var t=this,n=i.f(t),r=n.resolve,l=n.reject,u=s((function(){var n=a(t.resolve),i=[],s=0,l=1;c(e,(function(e){var a=s++,c=!1;l++,o(n,t,e).then((function(e){c||(c=!0,i[a]={status:"fulfilled",value:e},--l||r(i))}),(function(e){c||(c=!0,i[a]={status:"rejected",reason:e},--l||r(i))}))})),--l||r(i)}));return u.error&&l(u.value),n.promise}})},8550:function(e,t,n){"use strict";var r=n("a0b9"),o=n("a421"),a=n("c7d2"),i=n("c74f"),s=n("9f61"),c=Math.min,l=[].lastIndexOf,u=!!l&&1/[1].lastIndexOf(1,-0)<0,d=s("lastIndexOf"),p=u||!d;e.exports=p?function(e){if(u)return r(l,this,arguments)||0;var t=o(this),n=i(t),s=n-1;for(arguments.length>1&&(s=c(s,a(arguments[1]))),s<0&&(s=n+s);s>=0;s--)if(s in t&&t[s]===e)return s||0;return-1}:l},"85ed":function(e,t,n){"use strict";var r=n("0cae"),o=n("766b");r("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),o)},"861d":function(e,t,n){"use strict";var r=n("1626"),o=n("8ea1"),a=o.all;e.exports=o.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:r(e)||e===a}:function(e){return"object"==typeof e?null!==e:r(e)}},8689:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},n={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"},r=e.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",ss:"%d စက္ကန့်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(e){return e.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}});return r}))},"86d6":function(e,t,n){"use strict";var r=n("4221");e.exports=r},8840:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return 0===e.indexOf("un")?"n"+e:"en "+e},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return t}))},8861:function(e,t,n){"use strict";var r=n("a5eb"),o=n("3ac6"),a=n("d175"),i=a(o.setTimeout,!0);r({global:!0,bind:!0,forced:o.setTimeout!==i},{setTimeout:i})},8925:function(e,t,n){"use strict";var r=n("e330"),o=n("1626"),a=n("c6cd"),i=r(Function.toString);o(a.inspectSource)||(a.inspectSource=function(e){return i(e)}),e.exports=a.inspectSource},"898b":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],o=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,a=e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4},invalidDate:"Fecha inválida"});return a}))},"89d4":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("7d20");const o=e=>{if(!e)return{onClick:r["NOOP"],onMousedown:r["NOOP"],onMouseup:r["NOOP"]};let t=!1,n=!1;const o=r=>{t&&n&&e(r),t=n=!1},a=e=>{t=e.target===e.currentTarget},i=e=>{n=e.target===e.currentTarget};return{onClick:o,onMousedown:a,onMouseup:i}}},"8a3b":function(e,t,n){"use strict";var r=n("7106"),o=n("6f8d"),a=n("f8b6");e.exports=function(e,t,n){var i,s;o(e);try{if(i=a(e,"return"),!i){if("throw"===t)throw n;return n}i=r(i,e)}catch(c){s=!0,i=c}if("throw"===t)throw n;if(s)throw i;return o(i),n}},"8afb":function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return o}));class r extends Error{constructor(e){super(e),this.name="ElementPlusError"}}function o(e,t){throw new r(`[${e}] ${t}`)}function a(e,t){0}},"8afd":function(e,t,n){"use strict";n.r(t),n.d(t,"set",(function(){return c})),n.d(t,"del",(function(){return l})),n.d(t,"Vue2",(function(){return i})),n.d(t,"isVue2",(function(){return o})),n.d(t,"isVue3",(function(){return a})),n.d(t,"install",(function(){return s}));var r=n("7a23");n.d(t,"Vue",(function(){return r})),n.d(t,"EffectScope",(function(){return r["EffectScope"]})),n.d(t,"ReactiveEffect",(function(){return r["ReactiveEffect"]})),n.d(t,"customRef",(function(){return r["customRef"]})),n.d(t,"effect",(function(){return r["effect"]})),n.d(t,"effectScope",(function(){return r["effectScope"]})),n.d(t,"getCurrentScope",(function(){return r["getCurrentScope"]})),n.d(t,"isProxy",(function(){return r["isProxy"]})),n.d(t,"isReactive",(function(){return r["isReactive"]})),n.d(t,"isReadonly",(function(){return r["isReadonly"]})),n.d(t,"isRef",(function(){return r["isRef"]})),n.d(t,"isShallow",(function(){return r["isShallow"]})),n.d(t,"markRaw",(function(){return r["markRaw"]})),n.d(t,"onScopeDispose",(function(){return r["onScopeDispose"]})),n.d(t,"proxyRefs",(function(){return r["proxyRefs"]})),n.d(t,"reactive",(function(){return r["reactive"]})),n.d(t,"readonly",(function(){return r["readonly"]})),n.d(t,"ref",(function(){return r["ref"]})),n.d(t,"shallowReactive",(function(){return r["shallowReactive"]})),n.d(t,"shallowReadonly",(function(){return r["shallowReadonly"]})),n.d(t,"shallowRef",(function(){return r["shallowRef"]})),n.d(t,"stop",(function(){return r["stop"]})),n.d(t,"toRaw",(function(){return r["toRaw"]})),n.d(t,"toRef",(function(){return r["toRef"]})),n.d(t,"toRefs",(function(){return r["toRefs"]})),n.d(t,"toValue",(function(){return r["toValue"]})),n.d(t,"triggerRef",(function(){return r["triggerRef"]})),n.d(t,"unref",(function(){return r["unref"]})),n.d(t,"camelize",(function(){return r["camelize"]})),n.d(t,"capitalize",(function(){return r["capitalize"]})),n.d(t,"normalizeClass",(function(){return r["normalizeClass"]})),n.d(t,"normalizeProps",(function(){return r["normalizeProps"]})),n.d(t,"normalizeStyle",(function(){return r["normalizeStyle"]})),n.d(t,"toDisplayString",(function(){return r["toDisplayString"]})),n.d(t,"toHandlerKey",(function(){return r["toHandlerKey"]})),n.d(t,"BaseTransition",(function(){return r["BaseTransition"]})),n.d(t,"BaseTransitionPropsValidators",(function(){return r["BaseTransitionPropsValidators"]})),n.d(t,"Comment",(function(){return r["Comment"]})),n.d(t,"Fragment",(function(){return r["Fragment"]})),n.d(t,"KeepAlive",(function(){return r["KeepAlive"]})),n.d(t,"Static",(function(){return r["Static"]})),n.d(t,"Suspense",(function(){return r["Suspense"]})),n.d(t,"Teleport",(function(){return r["Teleport"]})),n.d(t,"Text",(function(){return r["Text"]})),n.d(t,"assertNumber",(function(){return r["assertNumber"]})),n.d(t,"callWithAsyncErrorHandling",(function(){return r["callWithAsyncErrorHandling"]})),n.d(t,"callWithErrorHandling",(function(){return r["callWithErrorHandling"]})),n.d(t,"cloneVNode",(function(){return r["cloneVNode"]})),n.d(t,"compatUtils",(function(){return r["compatUtils"]})),n.d(t,"computed",(function(){return r["computed"]})),n.d(t,"createBlock",(function(){return r["createBlock"]})),n.d(t,"createCommentVNode",(function(){return r["createCommentVNode"]})),n.d(t,"createElementBlock",(function(){return r["createElementBlock"]})),n.d(t,"createElementVNode",(function(){return r["createElementVNode"]})),n.d(t,"createHydrationRenderer",(function(){return r["createHydrationRenderer"]})),n.d(t,"createPropsRestProxy",(function(){return r["createPropsRestProxy"]})),n.d(t,"createRenderer",(function(){return r["createRenderer"]})),n.d(t,"createSlots",(function(){return r["createSlots"]})),n.d(t,"createStaticVNode",(function(){return r["createStaticVNode"]})),n.d(t,"createTextVNode",(function(){return r["createTextVNode"]})),n.d(t,"createVNode",(function(){return r["createVNode"]})),n.d(t,"defineAsyncComponent",(function(){return r["defineAsyncComponent"]})),n.d(t,"defineComponent",(function(){return r["defineComponent"]})),n.d(t,"defineEmits",(function(){return r["defineEmits"]})),n.d(t,"defineExpose",(function(){return r["defineExpose"]})),n.d(t,"defineModel",(function(){return r["defineModel"]})),n.d(t,"defineOptions",(function(){return r["defineOptions"]})),n.d(t,"defineProps",(function(){return r["defineProps"]})),n.d(t,"defineSlots",(function(){return r["defineSlots"]})),n.d(t,"devtools",(function(){return r["devtools"]})),n.d(t,"getCurrentInstance",(function(){return r["getCurrentInstance"]})),n.d(t,"getTransitionRawChildren",(function(){return r["getTransitionRawChildren"]})),n.d(t,"guardReactiveProps",(function(){return r["guardReactiveProps"]})),n.d(t,"h",(function(){return r["h"]})),n.d(t,"handleError",(function(){return r["handleError"]})),n.d(t,"hasInjectionContext",(function(){return r["hasInjectionContext"]})),n.d(t,"initCustomFormatter",(function(){return r["initCustomFormatter"]})),n.d(t,"inject",(function(){return r["inject"]})),n.d(t,"isMemoSame",(function(){return r["isMemoSame"]})),n.d(t,"isRuntimeOnly",(function(){return r["isRuntimeOnly"]})),n.d(t,"isVNode",(function(){return r["isVNode"]})),n.d(t,"mergeDefaults",(function(){return r["mergeDefaults"]})),n.d(t,"mergeModels",(function(){return r["mergeModels"]})),n.d(t,"mergeProps",(function(){return r["mergeProps"]})),n.d(t,"nextTick",(function(){return r["nextTick"]})),n.d(t,"onActivated",(function(){return r["onActivated"]})),n.d(t,"onBeforeMount",(function(){return r["onBeforeMount"]})),n.d(t,"onBeforeUnmount",(function(){return r["onBeforeUnmount"]})),n.d(t,"onBeforeUpdate",(function(){return r["onBeforeUpdate"]})),n.d(t,"onDeactivated",(function(){return r["onDeactivated"]})),n.d(t,"onErrorCaptured",(function(){return r["onErrorCaptured"]})),n.d(t,"onMounted",(function(){return r["onMounted"]})),n.d(t,"onRenderTracked",(function(){return r["onRenderTracked"]})),n.d(t,"onRenderTriggered",(function(){return r["onRenderTriggered"]})),n.d(t,"onServerPrefetch",(function(){return r["onServerPrefetch"]})),n.d(t,"onUnmounted",(function(){return r["onUnmounted"]})),n.d(t,"onUpdated",(function(){return r["onUpdated"]})),n.d(t,"openBlock",(function(){return r["openBlock"]})),n.d(t,"popScopeId",(function(){return r["popScopeId"]})),n.d(t,"provide",(function(){return r["provide"]})),n.d(t,"pushScopeId",(function(){return r["pushScopeId"]})),n.d(t,"queuePostFlushCb",(function(){return r["queuePostFlushCb"]})),n.d(t,"registerRuntimeCompiler",(function(){return r["registerRuntimeCompiler"]})),n.d(t,"renderList",(function(){return r["renderList"]})),n.d(t,"renderSlot",(function(){return r["renderSlot"]})),n.d(t,"resolveComponent",(function(){return r["resolveComponent"]})),n.d(t,"resolveDirective",(function(){return r["resolveDirective"]})),n.d(t,"resolveDynamicComponent",(function(){return r["resolveDynamicComponent"]})),n.d(t,"resolveFilter",(function(){return r["resolveFilter"]})),n.d(t,"resolveTransitionHooks",(function(){return r["resolveTransitionHooks"]})),n.d(t,"setBlockTracking",(function(){return r["setBlockTracking"]})),n.d(t,"setDevtoolsHook",(function(){return r["setDevtoolsHook"]})),n.d(t,"setTransitionHooks",(function(){return r["setTransitionHooks"]})),n.d(t,"ssrContextKey",(function(){return r["ssrContextKey"]})),n.d(t,"ssrUtils",(function(){return r["ssrUtils"]})),n.d(t,"toHandlers",(function(){return r["toHandlers"]})),n.d(t,"transformVNodeArgs",(function(){return r["transformVNodeArgs"]})),n.d(t,"useAttrs",(function(){return r["useAttrs"]})),n.d(t,"useModel",(function(){return r["useModel"]})),n.d(t,"useSSRContext",(function(){return r["useSSRContext"]})),n.d(t,"useSlots",(function(){return r["useSlots"]})),n.d(t,"useTransitionState",(function(){return r["useTransitionState"]})),n.d(t,"version",(function(){return r["version"]})),n.d(t,"warn",(function(){return r["warn"]})),n.d(t,"watch",(function(){return r["watch"]})),n.d(t,"watchEffect",(function(){return r["watchEffect"]})),n.d(t,"watchPostEffect",(function(){return r["watchPostEffect"]})),n.d(t,"watchSyncEffect",(function(){return r["watchSyncEffect"]})),n.d(t,"withAsyncContext",(function(){return r["withAsyncContext"]})),n.d(t,"withCtx",(function(){return r["withCtx"]})),n.d(t,"withDefaults",(function(){return r["withDefaults"]})),n.d(t,"withDirectives",(function(){return r["withDirectives"]})),n.d(t,"withMemo",(function(){return r["withMemo"]})),n.d(t,"withScopeId",(function(){return r["withScopeId"]})),n.d(t,"Transition",(function(){return r["Transition"]})),n.d(t,"TransitionGroup",(function(){return r["TransitionGroup"]})),n.d(t,"VueElement",(function(){return r["VueElement"]})),n.d(t,"createApp",(function(){return r["createApp"]})),n.d(t,"createSSRApp",(function(){return r["createSSRApp"]})),n.d(t,"defineCustomElement",(function(){return r["defineCustomElement"]})),n.d(t,"defineSSRCustomElement",(function(){return r["defineSSRCustomElement"]})),n.d(t,"hydrate",(function(){return r["hydrate"]})),n.d(t,"initDirectivesForSSR",(function(){return r["initDirectivesForSSR"]})),n.d(t,"render",(function(){return r["render"]})),n.d(t,"useCssModule",(function(){return r["useCssModule"]})),n.d(t,"useCssVars",(function(){return r["useCssVars"]})),n.d(t,"vModelCheckbox",(function(){return r["vModelCheckbox"]})),n.d(t,"vModelDynamic",(function(){return r["vModelDynamic"]})),n.d(t,"vModelRadio",(function(){return r["vModelRadio"]})),n.d(t,"vModelSelect",(function(){return r["vModelSelect"]})),n.d(t,"vModelText",(function(){return r["vModelText"]})),n.d(t,"vShow",(function(){return r["vShow"]})),n.d(t,"withKeys",(function(){return r["withKeys"]})),n.d(t,"withModifiers",(function(){return r["withModifiers"]})),n.d(t,"compile",(function(){return r["compile"]}));var o=!1,a=!0,i=void 0;function s(){}function c(e,t,n){return Array.isArray(e)?(e.length=Math.max(e.length,t),e.splice(t,1,n),n):(e[t]=n,n)}function l(e,t){Array.isArray(e)?e.splice(t,1):delete e[t]}},"8b7b":function(e,t,n){"use strict";n("0f7c3"),n("11f2"),n("9c8b"),n("0054"),n("8376")},"8c12":function(e,t,n){"use strict";var r=n("8f95"),o=String;e.exports=function(e){if("Symbol"===r(e))throw TypeError("Cannot convert a Symbol value to a string");return o(e)}},"8c58":function(e,t,n){"use strict";var r=n("0363"),o=r("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[o]=!1,"/./"[e](t)}catch(r){}}return!1}},"8c5a":function(e,t,n){"use strict";n("85ed")},"8c68":function(e,t,n){"use strict";var r=n("4aa6"),o=n("06fa"),a=n("3ac6"),i=a.String;e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},"8c96":function(e,t,n){e.exports=n("e1ba")},"8cf4":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var r=n("7a23"),o=n("5112"),a=n("35b0");const i=()=>{const e=Object(r["inject"])(o["a"],void 0),t=Object(r["inject"])(o["b"],void 0);return{form:e,formItem:t}},s=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:o})=>{n||(n=Object(r["ref"])(!1)),o||(o=Object(r["ref"])(!1));const i=Object(r["ref"])();let s=void 0;const c=Object(r["computed"])(()=>{var n;return!!(!e.label&&t&&t.inputIds&&(null==(n=t.inputIds)?void 0:n.length)<=1)});return Object(r["onMounted"])(()=>{s=Object(r["watch"])([Object(r["toRef"])(e,"id"),n],([e,n])=>{const r=null!=e?e:n?void 0:Object(a["a"])().value;r!==i.value&&((null==t?void 0:t.removeInputId)&&(i.value&&t.removeInputId(i.value),(null==o?void 0:o.value)||n||!r||t.addInputId(r)),i.value=r)},{immediate:!0})}),Object(r["onUnmounted"])(()=>{s&&s(),(null==t?void 0:t.removeInputId)&&i.value&&t.removeInputId(i.value)}),{isLabeledByFormItem:c,inputId:i}}},"8cfd":function(e,t,n){"use strict";var r=n("437b"),o=n("3327"),a=Function.prototype;e.exports=function(e){var t=e.bind;return e===a||r(a,e)&&t===a.bind?o:t}},"8d05":function(e,t,n){"use strict";var r=n("f94a"),o=n("bc31");r("toPrimitive"),o()},"8d47":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
function t(e){return"undefined"!==typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}var n=e.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(e,t){return e?"string"===typeof t&&/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(e,t,n){return e>11?n?"μμ":"ΜΜ":n?"πμ":"ΠΜ"},isPM:function(e){return"μ"===(e+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(e,n){var r=this._calendarEl[e],o=n&&n.hours();return t(r)&&(r=r.apply(n)),r.replace("{}",o%12===1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}});return n}))},"8d57":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),r=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^paź/i,/^lis/i,/^gru/i];function o(e){return e%10<5&&e%10>1&&~~(e/10)%10!==1}function a(e,t,n){var r=e+" ";switch(n){case"ss":return r+(o(e)?"sekundy":"sekund");case"m":return t?"minuta":"minutę";case"mm":return r+(o(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return r+(o(e)?"godziny":"godzin");case"ww":return r+(o(e)?"tygodnie":"tygodni");case"MM":return r+(o(e)?"miesiące":"miesięcy");case"yy":return r+(o(e)?"lata":"lat")}}var i=e.defineLocale("pl",{months:function(e,r){return e?/D MMMM/.test(r)?n[e.month()]:t[e.month()]:t},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:a,m:a,mm:a,h:a,hh:a,d:"1 dzień",dd:"%d dni",w:"tydzień",ww:a,M:"miesiąc",MM:a,y:"rok",yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return i}))},"8d82":function(e,t,n){!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")}}}))},"8df4":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},n={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"},r=e.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یکشنبه_دوشنبه_سهشنبه_چهارشنبه_پنجشنبه_جمعه_شنبه".split("_"),weekdaysShort:"یکشنبه_دوشنبه_سهشنبه_چهارشنبه_پنجشنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(e){return/بعد از ظهر/.test(e)},meridiem:function(e,t,n){return e<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"%d ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(e){return e.replace(/[۰-۹]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}});return r}))},"8df4b":function(e,t,n){"use strict";var r=n("7a77");function o(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;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},o.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},o.source=function(){var e,t=new o((function(t){e=t}));return{token:t,cancel:e}},e.exports=o},"8e06":function(e,t,n){"use strict";var r=n("1b0d");e.exports=r},"8e11":function(e,t,n){"use strict";var r=n("fc48"),o=n("a421"),a=n("0cf0").f,i=n("e890"),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(e){try{return a(e)}catch(t){return i(s)}};e.exports.f=function(e){return s&&"Window"==r(e)?c(e):a(o(e))}},"8e5c":function(e,t,n){"use strict";n("4f90")},"8e73":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},r=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},o={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},a=function(e){return function(t,n,a,i){var s=r(t),c=o[e][r(t)];return 2===s&&(c=c[n?0:1]),c.replace(/%d/i,t)}},i=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],s=e.defineLocale("ar",{months:i,monthsShort:i,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:a("s"),ss:a("s"),m:a("m"),mm:a("m"),h:a("h"),hh:a("h"),d:a("d"),dd:a("d"),M:a("M"),MM:a("M"),y:a("y"),yy:a("y")},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}});return s}))},"8ea1":function(e,t,n){"use strict";var r="object"==typeof document&&document.all,o="undefined"==typeof r&&void 0!==r;e.exports={all:r,IS_HTMLDDA:o}},"8eeb":function(e,t,n){"use strict";var r=n("bc0f");e.exports=r},"8f19":function(e,t,n){!function(t,n){e.exports=n()}(0,(function(){"use strict";return function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var o=this.$utils(),a=(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 o.s(t.week(),"w"===e?1:2,"0");case"W":case"WW":return o.s(t.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return o.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 r.bind(this)(a)}}}))},"8f95":function(e,t,n){"use strict";var r=n("d63b"),o=n("fb2d"),a=n("fc48"),i=n("0363"),s=i("toStringTag"),c=Object,l="Arguments"==a(function(){return arguments}()),u=function(e,t){try{return e[t]}catch(n){}};e.exports=r?a:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=u(t=c(e),s))?n:l?a(t):"Object"==(r=a(t))&&o(t.callee)?"Arguments":r}},9043:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"},r=e.defineLocale("bn",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t&&e>=4||"দুপুর"===t&&e<5||"বিকাল"===t?e+12:e},meridiem:function(e,t,n){return e<4?"রাত":e<10?"সকাল":e<17?"দুপুর":e<20?"বিকাল":"রাত"},week:{dow:0,doy:6}});return r}))},"904d":function(e,t,n){"use strict";var r=n("b82f");e.exports=r},"907a":function(e,t,n){"use strict";var r=n("ebb5"),o=n("07fa"),a=n("5926"),i=r.aTypedArray,s=r.exportTypedArrayMethod;s("at",(function(e){var t=i(this),n=o(t),r=a(e),s=r>=0?r:n+r;return s<0||s>=n?void 0:t[s]}))},9080:function(e,t,n){"use strict";var r=n("f94a");r("isConcatSpreadable")},9097:function(e,t,n){"use strict";n("464e");var r=n("764b");e.exports=r.Date.now},"90b3":function(e,t,n){"use strict";var r=n("52d7");e.exports=r},"90e3":function(e,t,n){"use strict";var r=n("e330"),o=0,a=Math.random(),i=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+i(++o+a,36)}},"90ea":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}});return t}))},9103:function(e,t,n){"use strict";var r=n("a421"),o=n("c44e"),a=n("7463"),i=n("2f5a"),s=n("4180").f,c=n("b7a8"),l=n("ddb5"),u=n("7042"),d=n("c1b2"),p="Array Iterator",f=i.set,h=i.getterFor(p);e.exports=c(Array,"Array",(function(e,t){f(this,{type:p,target:r(e),index:0,kind:t})}),(function(){var e=h(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,l(void 0,!0)):l("keys"==n?r:"values"==n?t[r]:[r,t[r]],!1)}),"values");var m=a.Arguments=a.Array;if(o("keys"),o("values"),o("entries"),!u&&d&&"values"!==m.name)try{s(m,"name",{value:"values"})}catch(v){}},9112:function(e,t,n){"use strict";var r=n("83ab"),o=n("9bf2"),a=n("5c6c");e.exports=r?function(e,t,n){return o.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},9215:function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return p})),n.d(t,"c",(function(){return f})),n.d(t,"d",(function(){return d})),n.d(t,"e",(function(){return c})),n.d(t,"f",(function(){return u}));var r=n("7a23"),o=n("7d20"),a=n("8afb");const i="utils/vue/vnode";var s=(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))(s||{});function c(e){return Object(r["isVNode"])(e)&&e.type===r["Fragment"]}function l(e){return Object(r["isVNode"])(e)&&e.type===r["Comment"]}function u(e){return Object(r["isVNode"])(e)&&!c(e)&&!l(e)}const d=e=>{if(!Object(r["isVNode"])(e))return Object(a["a"])(i,"[getNormalizedProps] must be a VNode"),{};const t=e.props||{},n=(Object(r["isVNode"])(e.type)?e.type.props:void 0)||{},s={};return Object.keys(n).forEach(e=>{Object(o["hasOwn"])(n[e],"default")&&(s[e]=n[e].default)}),Object.keys(t).forEach(e=>{s[Object(o["camelize"])(e)]=t[e]}),s},p=e=>{if(!Object(o["isArray"])(e)||e.length>1)throw new Error("expect to receive a single Vue element child");return e[0]},f=e=>{const t=Object(o["isArray"])(e)?e:[e],n=[];return t.forEach(e=>{var t;Object(o["isArray"])(e)?n.push(...f(e)):Object(r["isVNode"])(e)&&Object(o["isArray"])(e.children)?n.push(...f(e.children)):(n.push(e),Object(r["isVNode"])(e)&&(null==(t=e.component)?void 0:t.subTree)&&n.push(...f(e.component.subTree)))}),n}},"92cd":function(e,t,n){"use strict";n("1d3a");var r=n("a169");e.exports=r("Array").slice},9361:function(e,t,n){"use strict";var r=n("d17d");e.exports=r},"93b2":function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return i}));var r=n("7a23"),o=n("edd9"),a=n("e47e");const i={},s=Object(r["defineComponent"])({name:"ElConfigProvider",props:a["a"],setup(e,{slots:t}){Object(r["watch"])(()=>e.message,e=>{Object.assign(i,null!=e?e:{})},{immediate:!0,deep:!0});const n=Object(o["a"])(e);return()=>Object(r["renderSlot"])(t,"default",{config:null==n?void 0:n.value})}})},9412:function(e,t,n){"use strict";n("6850");var r=n("a169");e.exports=r("Array").includes},9474:function(e,t,n){e.exports=n("8383")},"94ca":function(e,t,n){"use strict";var r=n("d039"),o=n("1626"),a=/#|\.prototype\./,i=function(e,t){var n=c[s(e)];return n==u||n!=l&&(o(t)?r(t):!!t)},s=i.normalize=function(e){return String(e).replace(a,".").toLowerCase()},c=i.data={},l=i.NATIVE="N",u=i.POLYFILL="P";e.exports=i},"957c":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
function t(e,t){var n=e.split("_");return t%10===1&&t%100!==11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function n(e,n,r){var o={ss:n?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:n?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",ww:"неделя_недели_недель",MM:"месяц_месяца_месяцев",yy:"год_года_лет"};return"m"===r?n?"минута":"минуту":e+" "+t(o[r],+e)}var r=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i],o=e.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:r,longMonthsParse:r,shortMonthsParse:r,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня, в] LT",nextDay:"[Завтра, в] LT",lastDay:"[Вчера, в] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В следующее] dddd, [в] LT";case 1:case 2:case 4:return"[В следующий] dddd, [в] LT";case 3:case 5:case 6:return"[В следующую] dddd, [в] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd, [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd, [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd, [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:n,m:n,mm:n,h:"час",hh:n,d:"день",dd:n,w:"неделя",ww:n,M:"месяц",MM:n,y:"год",yy:n},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:4}});return o}))},"958b":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
function t(e,t,n,r){switch(n){case"s":return t?"хэдхэн секунд":"хэдхэн секундын";case"ss":return e+(t?" секунд":" секундын");case"m":case"mm":return e+(t?" минут":" минутын");case"h":case"hh":return e+(t?" цаг":" цагийн");case"d":case"dd":return e+(t?" өдөр":" өдрийн");case"M":case"MM":return e+(t?" сар":" сарын");case"y":case"yy":return e+(t?" жил":" жилийн");default:return e}}var n=e.defineLocale("mn",{months:"Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар".split("_"),monthsShort:"1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар".split("_"),monthsParseExact:!0,weekdays:"Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба".split("_"),weekdaysShort:"Ням_Дав_Мяг_Лха_Пүр_Баа_Бям".split("_"),weekdaysMin:"Ня_Да_Мя_Лх_Пү_Ба_Бя".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY оны MMMMын D",LLL:"YYYY оны MMMMын D HH:mm",LLLL:"dddd, YYYY оны MMMMын D HH:mm"},meridiemParse:/ҮӨ|ҮХ/i,isPM:function(e){return"ҮХ"===e},meridiem:function(e,t,n){return e<12?"ҮӨ":"ҮХ"},calendar:{sameDay:"[Өнөөдөр] LT",nextDay:"[Маргааш] LT",nextWeek:"[Ирэх] dddd LT",lastDay:"[Өчигдөр] LT",lastWeek:"[Өнгөрсөн] dddd LT",sameElse:"L"},relativeTime:{future:"%s дараа",past:"%s өмнө",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2} өдөр/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+" өдөр";default:return e}}});return n}))},9609:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"},n=e.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кечээ саат] LT",lastWeek:"[Өткөн аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",ss:"%d секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(чи|чы|чү|чу)/,ordinal:function(e){var n=e%10,r=e>=100?100:null;return e+(t[e]||t[n]||t[r])},week:{dow:1,doy:7}});return n}))},9686:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"},r=e.defineLocale("bn-bd",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/রাত|ভোর|সকাল|দুপুর|বিকাল|সন্ধ্যা|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t?e<4?e:e+12:"ভোর"===t||"সকাল"===t?e:"দুপুর"===t?e>=3?e:e+12:"বিকাল"===t||"সন্ধ্যা"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"রাত":e<6?"ভোর":e<12?"সকাল":e<15?"দুপুর":e<18?"বিকাল":e<20?"সন্ধ্যা":"রাত"},week:{dow:0,doy:6}});return r}))},"96a8":function(e,t,n){"use strict";var r=n("9097");e.exports=r},"96ed":function(e,t,n){"use strict";var r=n("3ac6");e.exports=r.Promise},9717:function(e,t,n){"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},"972c":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
function t(e,t,n){var r={ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"săptămâni",MM:"luni",yy:"ani"},o=" ";return(e%100>=20||e>=100&&e%100===0)&&(o=" de "),e+o+r[n]}var n=e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:t,m:"un minut",mm:t,h:"o oră",hh:t,d:"o zi",dd:t,w:"o săptămână",ww:t,M:"o lună",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}});return n}))},9785:function(e,t,n){"use strict";var r=n("f6d8");e.exports=r},9797:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var t=e,n="",r=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"];return t>20?n=40===t||50===t||60===t||80===t||100===t?"fed":"ain":t>0&&(n=r[t]),e+n},week:{dow:1,doy:4}});return t}))},"980e":function(e,t,n){"use strict";var r=n("f94a");r("search")},9834:function(e,t,n){"use strict";n.r(t),n.d(t,"__onlyVue27Plus",(function(){return V})),n.d(t,"__onlyVue3",(function(){return U})),n.d(t,"assert",(function(){return g})),n.d(t,"autoResetRef",(function(){return ve})),n.d(t,"bypassFilter",(function(){return N})),n.d(t,"clamp",(function(){return S})),n.d(t,"computedEager",(function(){return h})),n.d(t,"computedWithControl",(function(){return K})),n.d(t,"containsProp",(function(){return Y})),n.d(t,"controlledComputed",(function(){return K})),n.d(t,"controlledRef",(function(){return ke})),n.d(t,"createEventHook",(function(){return J})),n.d(t,"createFilterWrapper",(function(){return A})),n.d(t,"createGlobalState",(function(){return Q})),n.d(t,"createInjectionState",(function(){return X})),n.d(t,"createReactiveFn",(function(){return ue})),n.d(t,"createSharedComposable",(function(){return Z})),n.d(t,"createSingletonPromise",(function(){return z})),n.d(t,"debounceFilter",(function(){return x})),n.d(t,"debouncedRef",(function(){return _e})),n.d(t,"debouncedWatch",(function(){return $t})),n.d(t,"directiveHooks",(function(){return B})),n.d(t,"eagerComputed",(function(){return h})),n.d(t,"extendRef",(function(){return ee})),n.d(t,"formatDate",(function(){return at})),n.d(t,"get",(function(){return te})),n.d(t,"hasOwn",(function(){return D})),n.d(t,"identity",(function(){return G})),n.d(t,"ignorableWatch",(function(){return sn})),n.d(t,"increaseWithUnit",(function(){return q})),n.d(t,"invoke",(function(){return H})),n.d(t,"isBoolean",(function(){return y})),n.d(t,"isClient",(function(){return m})),n.d(t,"isDef",(function(){return v})),n.d(t,"isDefined",(function(){return ne})),n.d(t,"isFunction",(function(){return b})),n.d(t,"isIOS",(function(){return j})),n.d(t,"isNumber",(function(){return O})),n.d(t,"isObject",(function(){return k})),n.d(t,"isString",(function(){return M})),n.d(t,"isWindow",(function(){return C})),n.d(t,"makeDestructurable",(function(){return le})),n.d(t,"noop",(function(){return T})),n.d(t,"normalizeDate",(function(){return it})),n.d(t,"now",(function(){return w})),n.d(t,"objectPick",(function(){return W})),n.d(t,"pausableFilter",(function(){return P})),n.d(t,"pausableWatch",(function(){return yn})),n.d(t,"promiseTimeout",(function(){return F})),n.d(t,"rand",(function(){return E})),n.d(t,"reactify",(function(){return ue})),n.d(t,"reactifyObject",(function(){return de})),n.d(t,"reactiveComputed",(function(){return fe})),n.d(t,"reactiveOmit",(function(){return he})),n.d(t,"reactivePick",(function(){return me})),n.d(t,"refAutoReset",(function(){return ve})),n.d(t,"refDebounced",(function(){return _e})),n.d(t,"refDefault",(function(){return ye})),n.d(t,"refThrottled",(function(){return Oe})),n.d(t,"refWithControl",(function(){return Me})),n.d(t,"resolveRef",(function(){return Ce})),n.d(t,"resolveUnref",(function(){return L})),n.d(t,"set",(function(){return we})),n.d(t,"syncRef",(function(){return Ie})),n.d(t,"syncRefs",(function(){return Se})),n.d(t,"throttleFilter",(function(){return R})),n.d(t,"throttledRef",(function(){return Oe})),n.d(t,"throttledWatch",(function(){return jn})),n.d(t,"timestamp",(function(){return I})),n.d(t,"toReactive",(function(){return pe})),n.d(t,"toRefs",(function(){return Pe})),n.d(t,"tryOnBeforeMount",(function(){return Ue})),n.d(t,"tryOnBeforeUnmount",(function(){return Ve})),n.d(t,"tryOnMounted",(function(){return Be})),n.d(t,"tryOnScopeDispose",(function(){return $})),n.d(t,"tryOnUnmounted",(function(){return Fe})),n.d(t,"until",(function(){return ze})),n.d(t,"useArrayEvery",(function(){return He})),n.d(t,"useArrayFilter",(function(){return Ye})),n.d(t,"useArrayFind",(function(){return qe})),n.d(t,"useArrayFindIndex",(function(){return We})),n.d(t,"useArrayFindLast",(function(){return $e})),n.d(t,"useArrayJoin",(function(){return Je})),n.d(t,"useArrayMap",(function(){return Qe})),n.d(t,"useArrayReduce",(function(){return Xe})),n.d(t,"useArraySome",(function(){return Ze})),n.d(t,"useArrayUnique",(function(){return et})),n.d(t,"useCounter",(function(){return tt})),n.d(t,"useDateFormat",(function(){return st})),n.d(t,"useDebounce",(function(){return _e})),n.d(t,"useDebounceFn",(function(){return ge})),n.d(t,"useInterval",(function(){return mt})),n.d(t,"useIntervalFn",(function(){return ct})),n.d(t,"useLastChanged",(function(){return vt})),n.d(t,"useThrottle",(function(){return Oe})),n.d(t,"useThrottleFn",(function(){return be})),n.d(t,"useTimeout",(function(){return Ct})),n.d(t,"useTimeoutFn",(function(){return gt})),n.d(t,"useToNumber",(function(){return wt})),n.d(t,"useToString",(function(){return It})),n.d(t,"useToggle",(function(){return St})),n.d(t,"watchArray",(function(){return Tt})),n.d(t,"watchAtMost",(function(){return Ut})),n.d(t,"watchDebounced",(function(){return $t})),n.d(t,"watchIgnorable",(function(){return sn})),n.d(t,"watchOnce",(function(){return cn})),n.d(t,"watchPausable",(function(){return yn})),n.d(t,"watchThrottled",(function(){return jn})),n.d(t,"watchTriggerable",(function(){return Bn})),n.d(t,"watchWithFilter",(function(){return At})),n.d(t,"whenever",(function(){return Hn}));var r,o=n("f890"),a=Object.defineProperty,i=Object.defineProperties,s=Object.getOwnPropertyDescriptors,c=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,d=(e,t,n)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,p=(e,t)=>{for(var n in t||(t={}))l.call(t,n)&&d(e,n,t[n]);if(c)for(var n of c(t))u.call(t,n)&&d(e,n,t[n]);return e},f=(e,t)=>i(e,s(t));function h(e,t){var n;const r=Object(o["shallowRef"])();return Object(o["watchEffect"])(()=>{r.value=e()},f(p({},t),{flush:null!=(n=null==t?void 0:t.flush)?n:"sync"})),Object(o["readonly"])(r)}const m="undefined"!==typeof window,v=e=>"undefined"!==typeof e,g=(e,...t)=>{e||console.warn(...t)},_=Object.prototype.toString,y=e=>"boolean"===typeof e,b=e=>"function"===typeof e,O=e=>"number"===typeof e,M=e=>"string"===typeof e,k=e=>"[object Object]"===_.call(e),C=e=>"undefined"!==typeof window&&"[object Window]"===_.call(e),w=()=>Date.now(),I=()=>+Date.now(),S=(e,t,n)=>Math.min(n,Math.max(t,e)),T=()=>{},E=(e,t)=>(e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e+1))+e),j=m&&(null==(r=null==window?void 0:window.navigator)?void 0:r.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent),D=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);function L(e){return"function"===typeof e?e():Object(o["unref"])(e)}function A(e,t){function n(...n){return new Promise((r,o)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(o)})}return n}const N=e=>e();function x(e,t={}){let n,r,o=T;const a=e=>{clearTimeout(e),o(),o=T},i=i=>{const s=L(e),c=L(t.maxWait);return n&&a(n),s<=0||void 0!==c&&c<=0?(r&&(a(r),r=null),Promise.resolve(i())):new Promise((e,l)=>{o=t.rejectOnCancel?l:e,c&&!r&&(r=setTimeout(()=>{n&&a(n),r=null,e(i())},c)),n=setTimeout(()=>{r&&a(r),r=null,e(i())},s)})};return i}function R(e,t=!0,n=!0,r=!1){let o,a,i=0,s=!0,c=T;const l=()=>{o&&(clearTimeout(o),o=void 0,c(),c=T)},u=u=>{const d=L(e),p=Date.now()-i,f=()=>a=u();return l(),d<=0?(i=Date.now(),f()):(p>d&&(n||!s)?(i=Date.now(),f()):t&&(a=new Promise((e,t)=>{c=r?t:e,o=setTimeout(()=>{i=Date.now(),s=!0,e(f()),l()},Math.max(0,d-p))})),n||o||(o=setTimeout(()=>s=!0,d)),s=!1,a)};return u}function P(e=N){const t=Object(o["ref"])(!0);function n(){t.value=!1}function r(){t.value=!0}const a=(...n)=>{t.value&&e(...n)};return{isActive:Object(o["readonly"])(t),pause:n,resume:r,eventFilter:a}}function U(e="this function"){if(!o["isVue3"])throw new Error(`[VueUse] ${e} is only works on Vue 3.`)}function V(e="this function"){if(!o["isVue3"]&&!o["version"].startsWith("2.7."))throw new Error(`[VueUse] ${e} is only works on Vue 2.7 or above.`)}const B={mounted:o["isVue3"]?"mounted":"inserted",updated:o["isVue3"]?"updated":"componentUpdated",unmounted:o["isVue3"]?"unmounted":"unbind"};function F(e,t=!1,n="Timeout"){return new Promise((r,o)=>{t?setTimeout(()=>o(n),e):setTimeout(r,e)})}function G(e){return e}function z(e){let t;function n(){return t||(t=e()),t}return n.reset=async()=>{const e=t;t=void 0,e&&await e},n}function H(e){return e()}function Y(e,...t){return t.some(t=>t in e)}function q(e,t){var n;if("number"===typeof e)return e+t;const r=(null==(n=e.match(/^-?[0-9]+\.?[0-9]*/))?void 0:n[0])||"",o=e.slice(r.length),a=parseFloat(r)+t;return Number.isNaN(a)?e:a+o}function W(e,t,n=!1){return t.reduce((t,r)=>(r in e&&(n&&void 0===e[r]||(t[r]=e[r])),t),{})}function K(e,t){let n,r,a=void 0;const i=Object(o["ref"])(!0),s=()=>{i.value=!0,r()};Object(o["watch"])(e,s,{flush:"sync"});const c=b(t)?t:t.get,l=b(t)?void 0:t.set,u=Object(o["customRef"])((e,t)=>(n=e,r=t,{get(){return i.value&&(a=c(),i.value=!1),n(),a},set(e){null==l||l(e)}}));return Object.isExtensible(u)&&(u.trigger=s),u}function $(e){return!!Object(o["getCurrentScope"])()&&(Object(o["onScopeDispose"])(e),!0)}function J(){const e=[],t=t=>{const n=e.indexOf(t);-1!==n&&e.splice(n,1)},n=n=>{e.push(n);const r=()=>t(n);return $(r),{off:r}},r=t=>{e.forEach(e=>e(t))};return{on:n,off:t,trigger:r}}function Q(e){let t,n=!1;const r=Object(o["effectScope"])(!0);return()=>(n||(t=r.run(e),n=!0),t)}function X(e){const t=Symbol("InjectionState"),n=(...n)=>{const r=e(...n);return Object(o["provide"])(t,r),r},r=()=>Object(o["inject"])(t);return[n,r]}function Z(e){let t,n,r=0;const a=()=>{r-=1,n&&r<=0&&(n.stop(),t=void 0,n=void 0)};return(...i)=>(r+=1,t||(n=Object(o["effectScope"])(!0),t=n.run(()=>e(...i))),$(a),t)}function ee(e,t,{enumerable:n=!1,unwrap:r=!0}={}){V();for(const[a,i]of Object.entries(t))"value"!==a&&(Object(o["isRef"])(i)&&r?Object.defineProperty(e,a,{get(){return i.value},set(e){i.value=e},enumerable:n}):Object.defineProperty(e,a,{value:i,enumerable:n}));return e}function te(e,t){return null==t?Object(o["unref"])(e):Object(o["unref"])(e)[t]}function ne(e){return null!=Object(o["unref"])(e)}var re=Object.defineProperty,oe=Object.getOwnPropertySymbols,ae=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable,se=(e,t,n)=>t in e?re(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ce=(e,t)=>{for(var n in t||(t={}))ae.call(t,n)&&se(e,n,t[n]);if(oe)for(var n of oe(t))ie.call(t,n)&&se(e,n,t[n]);return e};function le(e,t){if("undefined"!==typeof Symbol){const n=ce({},e);return Object.defineProperty(n,Symbol.iterator,{enumerable:!1,value(){let e=0;return{next:()=>({value:t[e++],done:e>t.length})}}}),n}return Object.assign([...t],e)}function ue(e,t){const n=!1===(null==t?void 0:t.computedGetter)?o["unref"]:L;return function(...t){return Object(o["computed"])(()=>e.apply(this,t.map(e=>n(e))))}}function de(e,t={}){let n,r=[];if(Array.isArray(t))r=t;else{n=t;const{includeOwnProperties:o=!0}=t;r.push(...Object.keys(e)),o&&r.push(...Object.getOwnPropertyNames(e))}return Object.fromEntries(r.map(t=>{const r=e[t];return[t,"function"===typeof r?ue(r.bind(e),n):r]}))}function pe(e){if(!Object(o["isRef"])(e))return Object(o["reactive"])(e);const t=new Proxy({},{get(t,n,r){return Object(o["unref"])(Reflect.get(e.value,n,r))},set(t,n,r){return Object(o["isRef"])(e.value[n])&&!Object(o["isRef"])(r)?e.value[n].value=r:e.value[n]=r,!0},deleteProperty(t,n){return Reflect.deleteProperty(e.value,n)},has(t,n){return Reflect.has(e.value,n)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return Object(o["reactive"])(t)}function fe(e){return pe(Object(o["computed"])(e))}function he(e,...t){const n=t.flat();return fe(()=>Object.fromEntries(Object.entries(Object(o["toRefs"])(e)).filter(e=>!n.includes(e[0]))))}function me(e,...t){const n=t.flat();return Object(o["reactive"])(Object.fromEntries(n.map(t=>[t,Object(o["toRef"])(e,t)])))}function ve(e,t=1e4){return Object(o["customRef"])((n,r)=>{let o,a=e;const i=()=>setTimeout(()=>{a=e,r()},L(t));return $(()=>{clearTimeout(o)}),{get(){return n(),a},set(e){a=e,r(),clearTimeout(o),o=i()}}})}function ge(e,t=200,n={}){return A(x(t,n),e)}function _e(e,t=200,n={}){const r=Object(o["ref"])(e.value),a=ge(()=>{r.value=e.value},t,n);return Object(o["watch"])(e,()=>a()),r}function ye(e,t){return Object(o["computed"])({get(){var n;return null!=(n=e.value)?n:t},set(t){e.value=t}})}function be(e,t=200,n=!1,r=!0,o=!1){return A(R(t,n,r,o),e)}function Oe(e,t=200,n=!0,r=!0){if(t<=0)return e;const a=Object(o["ref"])(e.value),i=be(()=>{a.value=e.value},t,n,r);return Object(o["watch"])(e,()=>i()),a}function Me(e,t={}){let n,r,a=e;const i=Object(o["customRef"])((e,t)=>(n=e,r=t,{get(){return s()},set(e){c(e)}}));function s(e=!0){return e&&n(),a}function c(e,n=!0){var o,i;if(e===a)return;const s=a;!1!==(null==(o=t.onBeforeChange)?void 0:o.call(t,e,s))&&(a=e,null==(i=t.onChanged)||i.call(t,e,s),n&&r())}const l=()=>s(!1),u=e=>c(e,!1),d=()=>s(!1),p=e=>c(e,!1);return ee(i,{get:s,set:c,untrackedGet:l,silentSet:u,peek:d,lay:p},{enumerable:!0})}const ke=Me;function Ce(e){return"function"===typeof e?Object(o["computed"])(e):Object(o["ref"])(e)}function we(...e){if(2===e.length){const[t,n]=e;t.value=n}if(3===e.length)if(o["isVue2"])Object(o["set"])(...e);else{const[t,n,r]=e;t[n]=r}}function Ie(e,t,n={}){var r,a;const{flush:i="sync",deep:s=!1,immediate:c=!0,direction:l="both",transform:u={}}=n;let d,p;const f=null!=(r=u.ltr)?r:e=>e,h=null!=(a=u.rtl)?a:e=>e;return"both"!==l&&"ltr"!==l||(d=Object(o["watch"])(e,e=>t.value=f(e),{flush:i,deep:s,immediate:c})),"both"!==l&&"rtl"!==l||(p=Object(o["watch"])(t,t=>e.value=h(t),{flush:i,deep:s,immediate:c})),()=>{null==d||d(),null==p||p()}}function Se(e,t,n={}){const{flush:r="sync",deep:a=!1,immediate:i=!0}=n;return Array.isArray(t)||(t=[t]),Object(o["watch"])(e,e=>t.forEach(t=>t.value=e),{flush:r,deep:a,immediate:i})}var Te=Object.defineProperty,Ee=Object.defineProperties,je=Object.getOwnPropertyDescriptors,De=Object.getOwnPropertySymbols,Le=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,Ne=(e,t,n)=>t in e?Te(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xe=(e,t)=>{for(var n in t||(t={}))Le.call(t,n)&&Ne(e,n,t[n]);if(De)for(var n of De(t))Ae.call(t,n)&&Ne(e,n,t[n]);return e},Re=(e,t)=>Ee(e,je(t));function Pe(e){if(!Object(o["isRef"])(e))return Object(o["toRefs"])(e);const t=Array.isArray(e.value)?new Array(e.value.length):{};for(const n in e.value)t[n]=Object(o["customRef"])(()=>({get(){return e.value[n]},set(t){if(Array.isArray(e.value)){const r=[...e.value];r[n]=t,e.value=r}else{const r=Re(xe({},e.value),{[n]:t});Object.setPrototypeOf(r,e.value),e.value=r}}}));return t}function Ue(e,t=!0){Object(o["getCurrentInstance"])()?Object(o["onBeforeMount"])(e):t?e():Object(o["nextTick"])(e)}function Ve(e){Object(o["getCurrentInstance"])()&&Object(o["onBeforeUnmount"])(e)}function Be(e,t=!0){Object(o["getCurrentInstance"])()?Object(o["onMounted"])(e):t?e():Object(o["nextTick"])(e)}function Fe(e){Object(o["getCurrentInstance"])()&&Object(o["onUnmounted"])(e)}function Ge(e,t=!1){function n(n,{flush:r="sync",deep:a=!1,timeout:i,throwOnTimeout:s}={}){let c=null;const l=new Promise(i=>{c=Object(o["watch"])(e,e=>{n(e)!==t&&(null==c||c(),i(e))},{flush:r,deep:a,immediate:!0})}),u=[l];return null!=i&&u.push(F(i,s).then(()=>L(e)).finally(()=>null==c?void 0:c())),Promise.race(u)}function r(r,a){if(!Object(o["isRef"])(r))return n(e=>e===r,a);const{flush:i="sync",deep:s=!1,timeout:c,throwOnTimeout:l}=null!=a?a:{};let u=null;const d=new Promise(n=>{u=Object(o["watch"])([e,r],([e,r])=>{t!==(e===r)&&(null==u||u(),n(e))},{flush:i,deep:s,immediate:!0})}),p=[d];return null!=c&&p.push(F(c,l).then(()=>L(e)).finally(()=>(null==u||u(),L(e)))),Promise.race(p)}function a(e){return n(e=>Boolean(e),e)}function i(e){return r(null,e)}function s(e){return r(void 0,e)}function c(e){return n(Number.isNaN,e)}function l(e,t){return n(t=>{const n=Array.from(t);return n.includes(e)||n.includes(L(e))},t)}function u(e){return d(1,e)}function d(e=1,t){let r=-1;return n(()=>(r+=1,r>=e),t)}if(Array.isArray(L(e))){const r={toMatch:n,toContains:l,changed:u,changedTimes:d,get not(){return Ge(e,!t)}};return r}{const o={toMatch:n,toBe:r,toBeTruthy:a,toBeNull:i,toBeNaN:c,toBeUndefined:s,changed:u,changedTimes:d,get not(){return Ge(e,!t)}};return o}}function ze(e){return Ge(e)}function He(e,t){return Object(o["computed"])(()=>L(e).every((e,n,r)=>t(L(e),n,r)))}function Ye(e,t){return Object(o["computed"])(()=>L(e).map(e=>L(e)).filter(t))}function qe(e,t){return Object(o["computed"])(()=>L(L(e).find((e,n,r)=>t(L(e),n,r))))}function We(e,t){return Object(o["computed"])(()=>L(e).findIndex((e,n,r)=>t(L(e),n,r)))}function Ke(e,t){let n=e.length;while(n-- >0)if(t(e[n],n,e))return e[n]}function $e(e,t){return Object(o["computed"])(()=>L(Array.prototype.findLast?L(e).findLast((e,n,r)=>t(L(e),n,r)):Ke(L(e),(e,n,r)=>t(L(e),n,r))))}function Je(e,t){return Object(o["computed"])(()=>L(e).map(e=>L(e)).join(L(t)))}function Qe(e,t){return Object(o["computed"])(()=>L(e).map(e=>L(e)).map(t))}function Xe(e,t,...n){const r=(e,n,r)=>t(L(e),L(n),r);return Object(o["computed"])(()=>{const t=L(e);return n.length?t.reduce(r,L(n[0])):t.reduce(r)})}function Ze(e,t){return Object(o["computed"])(()=>L(e).some((e,n,r)=>t(L(e),n,r)))}function et(e){return Object(o["computed"])(()=>[...new Set(L(e).map(e=>L(e)))])}function tt(e=0,t={}){const n=Object(o["ref"])(e),{max:r=1/0,min:a=-1/0}=t,i=(e=1)=>n.value=Math.min(r,n.value+e),s=(e=1)=>n.value=Math.max(a,n.value-e),c=()=>n.value,l=e=>n.value=Math.max(a,Math.min(r,e)),u=(t=e)=>(e=t,l(t));return{count:n,inc:i,dec:s,get:c,set:l,reset:u}}const nt=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,rt=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a{1,2}|A{1,2}|m{1,2}|s{1,2}|Z{1,2}|SSS/g,ot=(e,t,n,r)=>{let o=e<12?"AM":"PM";return r&&(o=o.split("").reduce((e,t)=>e+(t+"."),"")),n?o.toLowerCase():o},at=(e,t,n={})=>{var r;const o=e.getFullYear(),a=e.getMonth(),i=e.getDate(),s=e.getHours(),c=e.getMinutes(),l=e.getSeconds(),u=e.getMilliseconds(),d=e.getDay(),p=null!=(r=n.customMeridiem)?r:ot,f={YY:()=>String(o).slice(-2),YYYY:()=>o,M:()=>a+1,MM:()=>(""+(a+1)).padStart(2,"0"),MMM:()=>e.toLocaleDateString(n.locales,{month:"short"}),MMMM:()=>e.toLocaleDateString(n.locales,{month:"long"}),D:()=>String(i),DD:()=>(""+i).padStart(2,"0"),H:()=>String(s),HH:()=>(""+s).padStart(2,"0"),h:()=>(""+(s%12||12)).padStart(1,"0"),hh:()=>(""+(s%12||12)).padStart(2,"0"),m:()=>String(c),mm:()=>(""+c).padStart(2,"0"),s:()=>String(l),ss:()=>(""+l).padStart(2,"0"),SSS:()=>(""+u).padStart(3,"0"),d:()=>d,dd:()=>e.toLocaleDateString(n.locales,{weekday:"narrow"}),ddd:()=>e.toLocaleDateString(n.locales,{weekday:"short"}),dddd:()=>e.toLocaleDateString(n.locales,{weekday:"long"}),A:()=>p(s,c),AA:()=>p(s,c,!1,!0),a:()=>p(s,c,!0),aa:()=>p(s,c,!0,!0)};return t.replace(rt,(e,t)=>t||f[e]())},it=e=>{if(null===e)return new Date(NaN);if(void 0===e)return new Date;if(e instanceof Date)return new Date(e);if("string"===typeof e&&!/Z$/i.test(e)){const t=e.match(nt);if(t){const e=t[2]-1||0,n=(t[7]||"0").substring(0,3);return new Date(t[1],e,t[3]||1,t[4]||0,t[5]||0,t[6]||0,n)}}return new Date(e)};function st(e,t="HH:mm:ss",n={}){return Object(o["computed"])(()=>at(it(L(e)),L(t),n))}function ct(e,t=1e3,n={}){const{immediate:r=!0,immediateCallback:a=!1}=n;let i=null;const s=Object(o["ref"])(!1);function c(){i&&(clearInterval(i),i=null)}function l(){s.value=!1,c()}function u(){const n=L(t);n<=0||(s.value=!0,a&&e(),c(),i=setInterval(e,n))}if(r&&m&&u(),Object(o["isRef"])(t)||b(t)){const e=Object(o["watch"])(t,()=>{s.value&&m&&u()});$(e)}return $(l),{isActive:s,pause:l,resume:u}}var lt=Object.defineProperty,ut=Object.getOwnPropertySymbols,dt=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable,ft=(e,t,n)=>t in e?lt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ht=(e,t)=>{for(var n in t||(t={}))dt.call(t,n)&&ft(e,n,t[n]);if(ut)for(var n of ut(t))pt.call(t,n)&&ft(e,n,t[n]);return e};function mt(e=1e3,t={}){const{controls:n=!1,immediate:r=!0,callback:a}=t,i=Object(o["ref"])(0),s=()=>i.value+=1,c=()=>{i.value=0},l=ct(a?()=>{s(),a(i.value)}:s,e,{immediate:r});return n?ht({counter:i,reset:c},l):i}function vt(e,t={}){var n;const r=Object(o["ref"])(null!=(n=t.initialValue)?n:null);return Object(o["watch"])(e,()=>r.value=I(),t),r}function gt(e,t,n={}){const{immediate:r=!0}=n,a=Object(o["ref"])(!1);let i=null;function s(){i&&(clearTimeout(i),i=null)}function c(){a.value=!1,s()}function l(...n){s(),a.value=!0,i=setTimeout(()=>{a.value=!1,i=null,e(...n)},L(t))}return r&&(a.value=!0,m&&l()),$(c),{isPending:Object(o["readonly"])(a),start:l,stop:c}}var _t=Object.defineProperty,yt=Object.getOwnPropertySymbols,bt=Object.prototype.hasOwnProperty,Ot=Object.prototype.propertyIsEnumerable,Mt=(e,t,n)=>t in e?_t(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,kt=(e,t)=>{for(var n in t||(t={}))bt.call(t,n)&&Mt(e,n,t[n]);if(yt)for(var n of yt(t))Ot.call(t,n)&&Mt(e,n,t[n]);return e};function Ct(e=1e3,t={}){const{controls:n=!1,callback:r}=t,a=gt(null!=r?r:T,e,t),i=Object(o["computed"])(()=>!a.isPending.value);return n?kt({ready:i},a):i}function wt(e,t={}){const{method:n="parseFloat",radix:r,nanToZero:a}=t;return Object(o["computed"])(()=>{let t=L(e);return"string"===typeof t&&(t=Number[n](t,r)),a&&isNaN(t)&&(t=0),t})}function It(e){return Object(o["computed"])(()=>""+L(e))}function St(e=!1,t={}){const{truthyValue:n=!0,falsyValue:r=!1}=t,a=Object(o["isRef"])(e),i=Object(o["ref"])(e);function s(e){if(arguments.length)return i.value=e,i.value;{const e=L(n);return i.value=i.value===e?L(r):e,i.value}}return a?s:[i,s]}function Tt(e,t,n){let r=(null==n?void 0:n.immediate)?[]:[...e instanceof Function?e():Array.isArray(e)?e:Object(o["unref"])(e)];return Object(o["watch"])(e,(e,n,o)=>{const a=new Array(r.length),i=[];for(const t of e){let e=!1;for(let n=0;n<r.length;n++)if(!a[n]&&t===r[n]){a[n]=!0,e=!0;break}e||i.push(t)}const s=r.filter((e,t)=>!a[t]);t(e,r,i,s,o),r=[...e]},n)}var Et=Object.getOwnPropertySymbols,jt=Object.prototype.hasOwnProperty,Dt=Object.prototype.propertyIsEnumerable,Lt=(e,t)=>{var n={};for(var r in e)jt.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Et)for(var r of Et(e))t.indexOf(r)<0&&Dt.call(e,r)&&(n[r]=e[r]);return n};function At(e,t,n={}){const r=n,{eventFilter:a=N}=r,i=Lt(r,["eventFilter"]);return Object(o["watch"])(e,A(a,t),i)}var Nt=Object.getOwnPropertySymbols,xt=Object.prototype.hasOwnProperty,Rt=Object.prototype.propertyIsEnumerable,Pt=(e,t)=>{var n={};for(var r in e)xt.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Nt)for(var r of Nt(e))t.indexOf(r)<0&&Rt.call(e,r)&&(n[r]=e[r]);return n};function Ut(e,t,n){const r=n,{count:a}=r,i=Pt(r,["count"]),s=Object(o["ref"])(0),c=At(e,(...e)=>{s.value+=1,s.value>=L(a)&&Object(o["nextTick"])(()=>c()),t(...e)},i);return{count:s,stop:c}}var Vt=Object.defineProperty,Bt=Object.defineProperties,Ft=Object.getOwnPropertyDescriptors,Gt=Object.getOwnPropertySymbols,zt=Object.prototype.hasOwnProperty,Ht=Object.prototype.propertyIsEnumerable,Yt=(e,t,n)=>t in e?Vt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,qt=(e,t)=>{for(var n in t||(t={}))zt.call(t,n)&&Yt(e,n,t[n]);if(Gt)for(var n of Gt(t))Ht.call(t,n)&&Yt(e,n,t[n]);return e},Wt=(e,t)=>Bt(e,Ft(t)),Kt=(e,t)=>{var n={};for(var r in e)zt.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Gt)for(var r of Gt(e))t.indexOf(r)<0&&Ht.call(e,r)&&(n[r]=e[r]);return n};function $t(e,t,n={}){const r=n,{debounce:o=0,maxWait:a}=r,i=Kt(r,["debounce","maxWait"]);return At(e,t,Wt(qt({},i),{eventFilter:x(o,{maxWait:a})}))}var Jt=Object.defineProperty,Qt=Object.defineProperties,Xt=Object.getOwnPropertyDescriptors,Zt=Object.getOwnPropertySymbols,en=Object.prototype.hasOwnProperty,tn=Object.prototype.propertyIsEnumerable,nn=(e,t,n)=>t in e?Jt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,rn=(e,t)=>{for(var n in t||(t={}))en.call(t,n)&&nn(e,n,t[n]);if(Zt)for(var n of Zt(t))tn.call(t,n)&&nn(e,n,t[n]);return e},on=(e,t)=>Qt(e,Xt(t)),an=(e,t)=>{var n={};for(var r in e)en.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Zt)for(var r of Zt(e))t.indexOf(r)<0&&tn.call(e,r)&&(n[r]=e[r]);return n};function sn(e,t,n={}){const r=n,{eventFilter:a=N}=r,i=an(r,["eventFilter"]),s=A(a,t);let c,l,u;if("sync"===i.flush){const t=Object(o["ref"])(!1);l=()=>{},c=e=>{t.value=!0,e(),t.value=!1},u=Object(o["watch"])(e,(...e)=>{t.value||s(...e)},i)}else{const t=[],n=Object(o["ref"])(0),r=Object(o["ref"])(0);l=()=>{n.value=r.value},t.push(Object(o["watch"])(e,()=>{r.value++},on(rn({},i),{flush:"sync"}))),c=e=>{const t=r.value;e(),n.value+=r.value-t},t.push(Object(o["watch"])(e,(...e)=>{const t=n.value>0&&n.value===r.value;n.value=0,r.value=0,t||s(...e)},i)),u=()=>{t.forEach(e=>e())}}return{stop:u,ignoreUpdates:c,ignorePrevAsyncUpdates:l}}function cn(e,t,n){const r=Object(o["watch"])(e,(...e)=>(Object(o["nextTick"])(()=>r()),t(...e)),n)}var ln=Object.defineProperty,un=Object.defineProperties,dn=Object.getOwnPropertyDescriptors,pn=Object.getOwnPropertySymbols,fn=Object.prototype.hasOwnProperty,hn=Object.prototype.propertyIsEnumerable,mn=(e,t,n)=>t in e?ln(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,vn=(e,t)=>{for(var n in t||(t={}))fn.call(t,n)&&mn(e,n,t[n]);if(pn)for(var n of pn(t))hn.call(t,n)&&mn(e,n,t[n]);return e},gn=(e,t)=>un(e,dn(t)),_n=(e,t)=>{var n={};for(var r in e)fn.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&pn)for(var r of pn(e))t.indexOf(r)<0&&hn.call(e,r)&&(n[r]=e[r]);return n};function yn(e,t,n={}){const r=n,{eventFilter:o}=r,a=_n(r,["eventFilter"]),{eventFilter:i,pause:s,resume:c,isActive:l}=P(o),u=At(e,t,gn(vn({},a),{eventFilter:i}));return{stop:u,pause:s,resume:c,isActive:l}}var bn=Object.defineProperty,On=Object.defineProperties,Mn=Object.getOwnPropertyDescriptors,kn=Object.getOwnPropertySymbols,Cn=Object.prototype.hasOwnProperty,wn=Object.prototype.propertyIsEnumerable,In=(e,t,n)=>t in e?bn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Sn=(e,t)=>{for(var n in t||(t={}))Cn.call(t,n)&&In(e,n,t[n]);if(kn)for(var n of kn(t))wn.call(t,n)&&In(e,n,t[n]);return e},Tn=(e,t)=>On(e,Mn(t)),En=(e,t)=>{var n={};for(var r in e)Cn.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&kn)for(var r of kn(e))t.indexOf(r)<0&&wn.call(e,r)&&(n[r]=e[r]);return n};function jn(e,t,n={}){const r=n,{throttle:o=0,trailing:a=!0,leading:i=!0}=r,s=En(r,["throttle","trailing","leading"]);return At(e,t,Tn(Sn({},s),{eventFilter:R(o,a,i)}))}var Dn=Object.defineProperty,Ln=Object.defineProperties,An=Object.getOwnPropertyDescriptors,Nn=Object.getOwnPropertySymbols,xn=Object.prototype.hasOwnProperty,Rn=Object.prototype.propertyIsEnumerable,Pn=(e,t,n)=>t in e?Dn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Un=(e,t)=>{for(var n in t||(t={}))xn.call(t,n)&&Pn(e,n,t[n]);if(Nn)for(var n of Nn(t))Rn.call(t,n)&&Pn(e,n,t[n]);return e},Vn=(e,t)=>Ln(e,An(t));function Bn(e,t,n={}){let r;function o(){if(!r)return;const e=r;r=void 0,e()}function a(e){r=e}const i=(e,n)=>(o(),t(e,n,a)),s=sn(e,i,n),{ignoreUpdates:c}=s,l=()=>{let t;return c(()=>{t=i(Fn(e),zn(e))}),t};return Vn(Un({},s),{trigger:l})}function Fn(e){return Object(o["isReactive"])(e)?e:Array.isArray(e)?e.map(e=>Gn(e)):Gn(e)}function Gn(e){return"function"===typeof e?e():Object(o["unref"])(e)}function zn(e){return Array.isArray(e)?e.map(()=>{}):void 0}function Hn(e,t,n){return Object(o["watch"])(e,(e,n,r)=>{e&&t(e,n,r)},n)}},"986a":function(e,t,n){"use strict";var r=n("ebb5"),o=n("a258").findLast,a=r.aTypedArray,i=r.exportTypedArrayMethod;i("findLast",(function(e){return o(a(this),e,arguments.length>1?arguments[1]:void 0)}))},9883:function(e,t,n){"use strict";var r=n("764b"),o=n("3ac6"),a=n("fb2d"),i=function(e){return a(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e])||i(o[e]):r[e]&&r[e][t]||o[e]&&o[e][t]}},9885:function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return c})),n.d(t,"d",(function(){return a})),n.d(t,"e",(function(){return s}));const r='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',o=e=>{const t=getComputedStyle(e);return"fixed"!==t.position&&null!==e.offsetParent},a=e=>Array.from(e.querySelectorAll(r)).filter(e=>i(e)&&o(e)),i=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}},s=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},c=e=>!e.getAttribute("aria-owns"),l=(e,t,n)=>{const{parentNode:r}=e;if(!r)return null;const o=r.querySelectorAll(n),a=Array.prototype.indexOf.call(o,e);return o[a+t]||null},u=e=>{e&&(e.focus(),!c(e)&&e.click())}},"997e":function(e,t,n){"use strict";n("db16")},"99a4":function(e,t,n){"use strict";var r=n("dee0").forEach,o=n("9f61"),a=o("forEach");e.exports=a?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},"99da":function(e,t,n){"use strict";var r=n("bb83").IteratorPrototype,o=n("4896"),a=n("2c6c"),i=n("2874"),s=n("7463"),c=function(){return this};e.exports=function(e,t,n,l){var u=t+" Iterator";return e.prototype=o(r,{next:a(+!l,n)}),i(e,u,!1,!0),s[u]=c,e}},"9a6b":function(e,t,n){"use strict";var r=n("a5eb"),o=n("ff96").trim,a=n("83ee");r({target:"String",proto:!0,forced:a("trim")},{trim:function(){return o(this)}})},"9a73":function(e,t,n){e.exports=n("8e06")},"9ac4":function(e,t,n){"use strict";var r=n("f94a");r("species")},"9ad7":function(e,t,n){"use strict";
|
||
/*! Element Plus Icons Vue v2.1.0 */var r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,s=(e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})},c=(e,t,n,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let c of a(t))!i.call(e,c)&&c!==n&&r(e,c,{get:()=>t[c],enumerable:!(s=o(t,c))||s.enumerable});return e},l=e=>c(r({},"__esModule",{value:!0}),e),u={};s(u,{AddLocation:()=>b,Aim:()=>T,AlarmClock:()=>R,Apple:()=>z,ArrowDown:()=>re,ArrowDownBold:()=>J,ArrowLeft:()=>ge,ArrowLeftBold:()=>ue,ArrowRight:()=>De,ArrowRightBold:()=>Ce,ArrowUp:()=>Ye,ArrowUpBold:()=>Ue,Avatar:()=>Xe,Back:()=>it,Baseball:()=>ht,Basketball:()=>Ot,Bell:()=>Pt,BellFilled:()=>Tt,Bicycle:()=>Ht,Bottom:()=>hn,BottomLeft:()=>Xt,BottomRight:()=>sn,Bowl:()=>On,Box:()=>jn,Briefcase:()=>Pn,Brush:()=>Qn,BrushFilled:()=>Hn,Burger:()=>or,Calendar:()=>dr,Camera:()=>wr,CameraFilled:()=>_r,CaretBottom:()=>Lr,CaretLeft:()=>Vr,CaretRight:()=>qr,CaretTop:()=>Zr,Cellphone:()=>io,ChatDotRound:()=>mo,ChatDotSquare:()=>ko,ChatLineRound:()=>Do,ChatLineSquare:()=>Vo,ChatRound:()=>qo,ChatSquare:()=>Zo,Check:()=>ia,Checked:()=>fa,Cherry:()=>ba,Chicken:()=>Sa,ChromeFilled:()=>Ra,CircleCheck:()=>Qa,CircleCheckFilled:()=>za,CircleClose:()=>pi,CircleCloseFilled:()=>oi,CirclePlus:()=>Ti,CirclePlusFilled:()=>yi,Clock:()=>Pi,Close:()=>Qi,CloseBold:()=>Hi,Cloudy:()=>os,Coffee:()=>_s,CoffeeCup:()=>ds,Coin:()=>Ss,ColdDrink:()=>Ns,Collection:()=>$s,CollectionTag:()=>Fs,Comment:()=>nc,Compass:()=>uc,Connection:()=>_c,Coordinate:()=>Ic,CopyDocument:()=>Nc,Cpu:()=>Gc,CreditCard:()=>Jc,Crop:()=>ol,DArrowLeft:()=>dl,DArrowRight:()=>_l,DCaret:()=>wl,DataAnalysis:()=>Ll,DataBoard:()=>Fl,DataLine:()=>Kl,Delete:()=>gu,DeleteFilled:()=>tu,DeleteLocation:()=>uu,Dessert:()=>Cu,Discount:()=>Lu,Dish:()=>qu,DishDot:()=>Vu,Document:()=>Nd,DocumentAdd:()=>Zu,DocumentChecked:()=>id,DocumentCopy:()=>fd,DocumentDelete:()=>bd,DocumentRemove:()=>Sd,Download:()=>Fd,Drizzling:()=>Kd,Edit:()=>lp,EditPen:()=>tp,Eleme:()=>kp,ElemeFilled:()=>vp,ElementPlus:()=>jp,Expand:()=>Pp,Failed:()=>Hp,Female:()=>Zp,Files:()=>sf,Film:()=>mf,Filter:()=>Mf,Finished:()=>Ef,FirstAidKit:()=>Pf,Flag:()=>Hf,Fold:()=>Qf,Folder:()=>Vh,FolderAdd:()=>oh,FolderChecked:()=>dh,FolderDelete:()=>_h,FolderOpened:()=>wh,FolderRemove:()=>Lh,Food:()=>qh,Football:()=>em,ForkSpoon:()=>sm,Fries:()=>hm,FullScreen:()=>Om,Goblet:()=>$m,GobletFull:()=>Tm,GobletSquare:()=>Gm,GobletSquareFull:()=>xm,GoldMedal:()=>rv,Goods:()=>gv,GoodsFilled:()=>uv,Grape:()=>Cv,Grid:()=>Dv,Guide:()=>Vv,Handbag:()=>qv,Headset:()=>Zv,Help:()=>fg,HelpFilled:()=>ig,Hide:()=>Og,Histogram:()=>Tg,HomeFilled:()=>xg,HotWater:()=>Gg,House:()=>$g,IceCream:()=>v_,IceCreamRound:()=>n_,IceCreamSquare:()=>l_,IceDrink:()=>k_,IceTea:()=>j_,InfoFilled:()=>P_,Iphone:()=>H_,Key:()=>Q_,KnifeFork:()=>oy,Lightning:()=>py,Link:()=>yy,List:()=>Iy,Loading:()=>Ay,Location:()=>rb,LocationFilled:()=>By,LocationInformation:()=>$y,Lock:()=>db,Lollipop:()=>_b,MagicStick:()=>wb,Magnet:()=>Lb,Male:()=>Fb,Management:()=>Kb,MapLocation:()=>nO,Medal:()=>uO,Memo:()=>yO,Menu:()=>IO,Message:()=>FO,MessageBox:()=>AO,Mic:()=>KO,Microphone:()=>tM,MilkTea:()=>cM,Minus:()=>mM,Money:()=>CM,Monitor:()=>DM,Moon:()=>qM,MoonNight:()=>VM,More:()=>ik,MoreFilled:()=>ZM,MostlyCloudy:()=>fk,Mouse:()=>Ok,Mug:()=>Tk,Mute:()=>Hk,MuteNotification:()=>Rk,NoSmoking:()=>Qk,Notebook:()=>aC,Notification:()=>fC,Odometer:()=>MC,OfficeBuilding:()=>DC,Open:()=>VC,Operation:()=>qC,Opportunity:()=>ZC,Orange:()=>iw,Paperclip:()=>fw,PartlyCloudy:()=>Ow,Pear:()=>Tw,Phone:()=>Gw,PhoneFilled:()=>xw,Picture:()=>dI,PictureFilled:()=>$w,PictureRounded:()=>rI,PieChart:()=>yI,Place:()=>TI,Platform:()=>xI,Plus:()=>GI,Pointer:()=>$I,Position:()=>nS,Postcard:()=>uS,Pouring:()=>gS,Present:()=>SS,PriceTag:()=>xS,Printer:()=>GS,Promotion:()=>$S,QuartzWatch:()=>oT,QuestionFilled:()=>dT,Rank:()=>_T,Reading:()=>NT,ReadingLamp:()=>IT,Refresh:()=>tE,RefreshLeft:()=>FT,RefreshRight:()=>KT,Refrigerator:()=>cE,Remove:()=>kE,RemoveFilled:()=>mE,Right:()=>jE,ScaleToOriginal:()=>PE,School:()=>qE,Scissor:()=>ZE,Search:()=>ij,Select:()=>fj,Sell:()=>bj,SemiSelect:()=>Sj,Service:()=>Nj,SetUp:()=>Hj,Setting:()=>Qj,Share:()=>oD,Ship:()=>dD,Shop:()=>_D,ShoppingBag:()=>ID,ShoppingCart:()=>FD,ShoppingCartFull:()=>ND,ShoppingTrolley:()=>KD,Smoking:()=>nL,Soccer:()=>lL,SoldOut:()=>vL,Sort:()=>PL,SortDown:()=>kL,SortUp:()=>jL,Stamp:()=>HL,Star:()=>oA,StarFilled:()=>QL,Stopwatch:()=>pA,SuccessFilled:()=>yA,Sugar:()=>IA,Suitcase:()=>FA,SuitcaseLine:()=>AA,Sunny:()=>KA,Sunrise:()=>tN,Sunset:()=>cN,Switch:()=>DN,SwitchButton:()=>vN,SwitchFilled:()=>CN,TakeawayBox:()=>UN,Ticket:()=>YN,Tickets:()=>XN,Timer:()=>sx,ToiletPaper:()=>mx,Tools:()=>Mx,Top:()=>Yx,TopLeft:()=>jx,TopRight:()=>Ux,TrendCharts:()=>Xx,Trophy:()=>pR,TrophyBase:()=>aR,TurnOff:()=>bR,Umbrella:()=>SR,Unlock:()=>xR,Upload:()=>$R,UploadFilled:()=>GR,User:()=>lP,UserFilled:()=>nP,Van:()=>vP,VideoCamera:()=>jP,VideoCameraFilled:()=>kP,VideoPause:()=>PP,VideoPlay:()=>HP,View:()=>QP,Wallet:()=>fU,WalletFilled:()=>oU,WarnTriangleFilled:()=>bU,Warning:()=>NU,WarningFilled:()=>SU,Watch:()=>zU,Watermelon:()=>JU,WindPower:()=>rV,ZoomIn:()=>uV,ZoomOut:()=>gV}),e.exports=l(u);var d={name:"AddLocation"},p=n("7a23"),f=(e,t)=>{let n=e.__vccOpts||e;for(let[r,o]of t)n[r]=o;return n},h={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},m=(0,p.createElementVNode)("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32z"},null,-1),v=(0,p.createElementVNode)("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416zM512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544z"},null,-1),g=(0,p.createElementVNode)("path",{fill:"currentColor",d:"M544 384h96a32 32 0 1 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96v-96a32 32 0 0 1 64 0v96z"},null,-1),_=[m,v,g];function y(e,t,n,r,o,a){return(0,p.openBlock)(),(0,p.createElementBlock)("svg",h,_)}var b=f(d,[["render",y],["__file","add-location.vue"]]),O={name:"Aim"},M=n("7a23"),k={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},C=(0,M.createElementVNode)("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),w=(0,M.createElementVNode)("path",{fill:"currentColor",d:"M512 96a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V128a32 32 0 0 1 32-32zm0 576a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V704a32 32 0 0 1 32-32zM96 512a32 32 0 0 1 32-32h192a32 32 0 0 1 0 64H128a32 32 0 0 1-32-32zm576 0a32 32 0 0 1 32-32h192a32 32 0 1 1 0 64H704a32 32 0 0 1-32-32z"},null,-1),I=[C,w];function S(e,t,n,r,o,a){return(0,M.openBlock)(),(0,M.createElementBlock)("svg",k,I)}var T=f(O,[["render",S],["__file","aim.vue"]]),E={name:"AlarmClock"},j=n("7a23"),D={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},L=(0,j.createElementVNode)("path",{fill:"currentColor",d:"M512 832a320 320 0 1 0 0-640 320 320 0 0 0 0 640zm0 64a384 384 0 1 1 0-768 384 384 0 0 1 0 768z"},null,-1),A=(0,j.createElementVNode)("path",{fill:"currentColor",d:"m292.288 824.576 55.424 32-48 83.136a32 32 0 1 1-55.424-32l48-83.136zm439.424 0-55.424 32 48 83.136a32 32 0 1 0 55.424-32l-48-83.136zM512 512h160a32 32 0 1 1 0 64H480a32 32 0 0 1-32-32V320a32 32 0 0 1 64 0v192zM90.496 312.256A160 160 0 0 1 312.32 90.496l-46.848 46.848a96 96 0 0 0-128 128L90.56 312.256zm835.264 0A160 160 0 0 0 704 90.496l46.848 46.848a96 96 0 0 1 128 128l46.912 46.912z"},null,-1),N=[L,A];function x(e,t,n,r,o,a){return(0,j.openBlock)(),(0,j.createElementBlock)("svg",D,N)}var R=f(E,[["render",x],["__file","alarm-clock.vue"]]),P={name:"Apple"},U=n("7a23"),V={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},B=(0,U.createElementVNode)("path",{fill:"currentColor",d:"M599.872 203.776a189.44 189.44 0 0 1 64.384-4.672l2.624.128c31.168 1.024 51.2 4.096 79.488 16.32 37.632 16.128 74.496 45.056 111.488 89.344 96.384 115.264 82.752 372.8-34.752 521.728-7.68 9.728-32 41.6-30.72 39.936a426.624 426.624 0 0 1-30.08 35.776c-31.232 32.576-65.28 49.216-110.08 50.048-31.36.64-53.568-5.312-84.288-18.752l-6.528-2.88c-20.992-9.216-30.592-11.904-47.296-11.904-18.112 0-28.608 2.88-51.136 12.672l-6.464 2.816c-28.416 12.224-48.32 18.048-76.16 19.2-74.112 2.752-116.928-38.08-180.672-132.16-96.64-142.08-132.608-349.312-55.04-486.4 46.272-81.92 129.92-133.632 220.672-135.04 32.832-.576 60.288 6.848 99.648 22.72 27.136 10.88 34.752 13.76 37.376 14.272 16.256-20.16 27.776-36.992 34.56-50.24 13.568-26.304 27.2-59.968 40.704-100.8a32 32 0 1 1 60.8 20.224c-12.608 37.888-25.408 70.4-38.528 97.664zm-51.52 78.08c-14.528 17.792-31.808 37.376-51.904 58.816a32 32 0 1 1-46.72-43.776l12.288-13.248c-28.032-11.2-61.248-26.688-95.68-26.112-70.4 1.088-135.296 41.6-171.648 105.792C121.6 492.608 176 684.16 247.296 788.992c34.816 51.328 76.352 108.992 130.944 106.944 52.48-2.112 72.32-34.688 135.872-34.688 63.552 0 81.28 34.688 136.96 33.536 56.448-1.088 75.776-39.04 126.848-103.872 107.904-136.768 107.904-362.752 35.776-449.088-72.192-86.272-124.672-84.096-151.68-85.12-41.472-4.288-81.6 12.544-113.664 25.152z"},null,-1),F=[B];function G(e,t,n,r,o,a){return(0,U.openBlock)(),(0,U.createElementBlock)("svg",V,F)}var z=f(P,[["render",G],["__file","apple.vue"]]),H={name:"ArrowDownBold"},Y=n("7a23"),q={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},W=(0,Y.createElementVNode)("path",{fill:"currentColor",d:"M104.704 338.752a64 64 0 0 1 90.496 0l316.8 316.8 316.8-316.8a64 64 0 0 1 90.496 90.496L557.248 791.296a64 64 0 0 1-90.496 0L104.704 429.248a64 64 0 0 1 0-90.496z"},null,-1),K=[W];function $(e,t,n,r,o,a){return(0,Y.openBlock)(),(0,Y.createElementBlock)("svg",q,K)}var J=f(H,[["render",$],["__file","arrow-down-bold.vue"]]),Q={name:"ArrowDown"},X=n("7a23"),Z={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ee=(0,X.createElementVNode)("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),te=[ee];function ne(e,t,n,r,o,a){return(0,X.openBlock)(),(0,X.createElementBlock)("svg",Z,te)}var re=f(Q,[["render",ne],["__file","arrow-down.vue"]]),oe={name:"ArrowLeftBold"},ae=n("7a23"),ie={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},se=(0,ae.createElementVNode)("path",{fill:"currentColor",d:"M685.248 104.704a64 64 0 0 1 0 90.496L368.448 512l316.8 316.8a64 64 0 0 1-90.496 90.496L232.704 557.248a64 64 0 0 1 0-90.496l362.048-362.048a64 64 0 0 1 90.496 0z"},null,-1),ce=[se];function le(e,t,n,r,o,a){return(0,ae.openBlock)(),(0,ae.createElementBlock)("svg",ie,ce)}var ue=f(oe,[["render",le],["__file","arrow-left-bold.vue"]]),de={name:"ArrowLeft"},pe=n("7a23"),fe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},he=(0,pe.createElementVNode)("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),me=[he];function ve(e,t,n,r,o,a){return(0,pe.openBlock)(),(0,pe.createElementBlock)("svg",fe,me)}var ge=f(de,[["render",ve],["__file","arrow-left.vue"]]),_e={name:"ArrowRightBold"},ye=n("7a23"),be={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Oe=(0,ye.createElementVNode)("path",{fill:"currentColor",d:"M338.752 104.704a64 64 0 0 0 0 90.496l316.8 316.8-316.8 316.8a64 64 0 0 0 90.496 90.496l362.048-362.048a64 64 0 0 0 0-90.496L429.248 104.704a64 64 0 0 0-90.496 0z"},null,-1),Me=[Oe];function ke(e,t,n,r,o,a){return(0,ye.openBlock)(),(0,ye.createElementBlock)("svg",be,Me)}var Ce=f(_e,[["render",ke],["__file","arrow-right-bold.vue"]]),we={name:"ArrowRight"},Ie=n("7a23"),Se={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Te=(0,Ie.createElementVNode)("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),Ee=[Te];function je(e,t,n,r,o,a){return(0,Ie.openBlock)(),(0,Ie.createElementBlock)("svg",Se,Ee)}var De=f(we,[["render",je],["__file","arrow-right.vue"]]),Le={name:"ArrowUpBold"},Ae=n("7a23"),Ne={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},xe=(0,Ae.createElementVNode)("path",{fill:"currentColor",d:"M104.704 685.248a64 64 0 0 0 90.496 0l316.8-316.8 316.8 316.8a64 64 0 0 0 90.496-90.496L557.248 232.704a64 64 0 0 0-90.496 0L104.704 594.752a64 64 0 0 0 0 90.496z"},null,-1),Re=[xe];function Pe(e,t,n,r,o,a){return(0,Ae.openBlock)(),(0,Ae.createElementBlock)("svg",Ne,Re)}var Ue=f(Le,[["render",Pe],["__file","arrow-up-bold.vue"]]),Ve={name:"ArrowUp"},Be=n("7a23"),Fe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Ge=(0,Be.createElementVNode)("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),ze=[Ge];function He(e,t,n,r,o,a){return(0,Be.openBlock)(),(0,Be.createElementBlock)("svg",Fe,ze)}var Ye=f(Ve,[["render",He],["__file","arrow-up.vue"]]),qe={name:"Avatar"},We=n("7a23"),Ke={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},$e=(0,We.createElementVNode)("path",{fill:"currentColor",d:"M628.736 528.896A416 416 0 0 1 928 928H96a415.872 415.872 0 0 1 299.264-399.104L512 704l116.736-175.104zM720 304a208 208 0 1 1-416 0 208 208 0 0 1 416 0z"},null,-1),Je=[$e];function Qe(e,t,n,r,o,a){return(0,We.openBlock)(),(0,We.createElementBlock)("svg",Ke,Je)}var Xe=f(qe,[["render",Qe],["__file","avatar.vue"]]),Ze={name:"Back"},et=n("7a23"),tt={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},nt=(0,et.createElementVNode)("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64z"},null,-1),rt=(0,et.createElementVNode)("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),ot=[nt,rt];function at(e,t,n,r,o,a){return(0,et.openBlock)(),(0,et.createElementBlock)("svg",tt,ot)}var it=f(Ze,[["render",at],["__file","back.vue"]]),st={name:"Baseball"},ct=n("7a23"),lt={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ut=(0,ct.createElementVNode)("path",{fill:"currentColor",d:"M195.2 828.8a448 448 0 1 1 633.6-633.6 448 448 0 0 1-633.6 633.6zm45.248-45.248a384 384 0 1 0 543.104-543.104 384 384 0 0 0-543.104 543.104z"},null,-1),dt=(0,ct.createElementVNode)("path",{fill:"currentColor",d:"M497.472 96.896c22.784 4.672 44.416 9.472 64.896 14.528a256.128 256.128 0 0 0 350.208 350.208c5.056 20.48 9.856 42.112 14.528 64.896A320.128 320.128 0 0 1 497.472 96.896zM108.48 491.904a320.128 320.128 0 0 1 423.616 423.68c-23.04-3.648-44.992-7.424-65.728-11.52a256.128 256.128 0 0 0-346.496-346.432 1736.64 1736.64 0 0 1-11.392-65.728z"},null,-1),pt=[ut,dt];function ft(e,t,n,r,o,a){return(0,ct.openBlock)(),(0,ct.createElementBlock)("svg",lt,pt)}var ht=f(st,[["render",ft],["__file","baseball.vue"]]),mt={name:"Basketball"},vt=n("7a23"),gt={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_t=(0,vt.createElementVNode)("path",{fill:"currentColor",d:"M778.752 788.224a382.464 382.464 0 0 0 116.032-245.632 256.512 256.512 0 0 0-241.728-13.952 762.88 762.88 0 0 1 125.696 259.584zm-55.04 44.224a699.648 699.648 0 0 0-125.056-269.632 256.128 256.128 0 0 0-56.064 331.968 382.72 382.72 0 0 0 181.12-62.336zm-254.08 61.248A320.128 320.128 0 0 1 557.76 513.6a715.84 715.84 0 0 0-48.192-48.128 320.128 320.128 0 0 1-379.264 88.384 382.4 382.4 0 0 0 110.144 229.696 382.4 382.4 0 0 0 229.184 110.08zM129.28 481.088a256.128 256.128 0 0 0 331.072-56.448 699.648 699.648 0 0 0-268.8-124.352 382.656 382.656 0 0 0-62.272 180.8zm106.56-235.84a762.88 762.88 0 0 1 258.688 125.056 256.512 256.512 0 0 0-13.44-241.088A382.464 382.464 0 0 0 235.84 245.248zm318.08-114.944c40.576 89.536 37.76 193.92-8.448 281.344a779.84 779.84 0 0 1 66.176 66.112 320.832 320.832 0 0 1 282.112-8.128 382.4 382.4 0 0 0-110.144-229.12 382.4 382.4 0 0 0-229.632-110.208zM828.8 828.8a448 448 0 1 1-633.6-633.6 448 448 0 0 1 633.6 633.6z"},null,-1),yt=[_t];function bt(e,t,n,r,o,a){return(0,vt.openBlock)(),(0,vt.createElementBlock)("svg",gt,yt)}var Ot=f(mt,[["render",bt],["__file","basketball.vue"]]),Mt={name:"BellFilled"},kt=n("7a23"),Ct={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},wt=(0,kt.createElementVNode)("path",{fill:"currentColor",d:"M640 832a128 128 0 0 1-256 0h256zm192-64H134.4a38.4 38.4 0 0 1 0-76.8H192V448c0-154.88 110.08-284.16 256.32-313.6a64 64 0 1 1 127.36 0A320.128 320.128 0 0 1 832 448v243.2h57.6a38.4 38.4 0 0 1 0 76.8H832z"},null,-1),It=[wt];function St(e,t,n,r,o,a){return(0,kt.openBlock)(),(0,kt.createElementBlock)("svg",Ct,It)}var Tt=f(Mt,[["render",St],["__file","bell-filled.vue"]]),Et={name:"Bell"},jt=n("7a23"),Dt={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Lt=(0,jt.createElementVNode)("path",{fill:"currentColor",d:"M512 64a64 64 0 0 1 64 64v64H448v-64a64 64 0 0 1 64-64z"},null,-1),At=(0,jt.createElementVNode)("path",{fill:"currentColor",d:"M256 768h512V448a256 256 0 1 0-512 0v320zm256-640a320 320 0 0 1 320 320v384H192V448a320 320 0 0 1 320-320z"},null,-1),Nt=(0,jt.createElementVNode)("path",{fill:"currentColor",d:"M96 768h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32zm352 128h128a64 64 0 0 1-128 0z"},null,-1),xt=[Lt,At,Nt];function Rt(e,t,n,r,o,a){return(0,jt.openBlock)(),(0,jt.createElementBlock)("svg",Dt,xt)}var Pt=f(Et,[["render",Rt],["__file","bell.vue"]]),Ut={name:"Bicycle"},Vt=n("7a23"),Bt={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Ft=(0,Vt.createStaticVNode)('<path fill="currentColor" d="M256 832a128 128 0 1 0 0-256 128 128 0 0 0 0 256zm0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384z"></path><path fill="currentColor" d="M288 672h320q32 0 32 32t-32 32H288q-32 0-32-32t32-32z"></path><path fill="currentColor" d="M768 832a128 128 0 1 0 0-256 128 128 0 0 0 0 256zm0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384z"></path><path fill="currentColor" d="M480 192a32 32 0 0 1 0-64h160a32 32 0 0 1 31.04 24.256l96 384a32 32 0 0 1-62.08 15.488L615.04 192H480zM96 384a32 32 0 0 1 0-64h128a32 32 0 0 1 30.336 21.888l64 192a32 32 0 1 1-60.672 20.224L200.96 384H96z"></path><path fill="currentColor" d="m373.376 599.808-42.752-47.616 320-288 42.752 47.616z"></path>',5),Gt=[Ft];function zt(e,t,n,r,o,a){return(0,Vt.openBlock)(),(0,Vt.createElementBlock)("svg",Bt,Gt)}var Ht=f(Ut,[["render",zt],["__file","bicycle.vue"]]),Yt={name:"BottomLeft"},qt=n("7a23"),Wt={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Kt=(0,qt.createElementVNode)("path",{fill:"currentColor",d:"M256 768h416a32 32 0 1 1 0 64H224a32 32 0 0 1-32-32V352a32 32 0 0 1 64 0v416z"},null,-1),$t=(0,qt.createElementVNode)("path",{fill:"currentColor",d:"M246.656 822.656a32 32 0 0 1-45.312-45.312l544-544a32 32 0 0 1 45.312 45.312l-544 544z"},null,-1),Jt=[Kt,$t];function Qt(e,t,n,r,o,a){return(0,qt.openBlock)(),(0,qt.createElementBlock)("svg",Wt,Jt)}var Xt=f(Yt,[["render",Qt],["__file","bottom-left.vue"]]),Zt={name:"BottomRight"},en=n("7a23"),tn={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},nn=(0,en.createElementVNode)("path",{fill:"currentColor",d:"M352 768a32 32 0 1 0 0 64h448a32 32 0 0 0 32-32V352a32 32 0 0 0-64 0v416H352z"},null,-1),rn=(0,en.createElementVNode)("path",{fill:"currentColor",d:"M777.344 822.656a32 32 0 0 0 45.312-45.312l-544-544a32 32 0 0 0-45.312 45.312l544 544z"},null,-1),on=[nn,rn];function an(e,t,n,r,o,a){return(0,en.openBlock)(),(0,en.createElementBlock)("svg",tn,on)}var sn=f(Zt,[["render",an],["__file","bottom-right.vue"]]),cn={name:"Bottom"},ln=n("7a23"),un={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},dn=(0,ln.createElementVNode)("path",{fill:"currentColor",d:"M544 805.888V168a32 32 0 1 0-64 0v637.888L246.656 557.952a30.72 30.72 0 0 0-45.312 0 35.52 35.52 0 0 0 0 48.064l288 306.048a30.72 30.72 0 0 0 45.312 0l288-306.048a35.52 35.52 0 0 0 0-48 30.72 30.72 0 0 0-45.312 0L544 805.824z"},null,-1),pn=[dn];function fn(e,t,n,r,o,a){return(0,ln.openBlock)(),(0,ln.createElementBlock)("svg",un,pn)}var hn=f(cn,[["render",fn],["__file","bottom.vue"]]),mn={name:"Bowl"},vn=n("7a23"),gn={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_n=(0,vn.createElementVNode)("path",{fill:"currentColor",d:"M714.432 704a351.744 351.744 0 0 0 148.16-256H161.408a351.744 351.744 0 0 0 148.16 256h404.864zM288 766.592A415.68 415.68 0 0 1 96 416a32 32 0 0 1 32-32h768a32 32 0 0 1 32 32 415.68 415.68 0 0 1-192 350.592V832a64 64 0 0 1-64 64H352a64 64 0 0 1-64-64v-65.408zM493.248 320h-90.496l254.4-254.4a32 32 0 1 1 45.248 45.248L493.248 320zm187.328 0h-128l269.696-155.712a32 32 0 0 1 32 55.424L680.576 320zM352 768v64h320v-64H352z"},null,-1),yn=[_n];function bn(e,t,n,r,o,a){return(0,vn.openBlock)(),(0,vn.createElementBlock)("svg",gn,yn)}var On=f(mn,[["render",bn],["__file","bowl.vue"]]),Mn={name:"Box"},kn=n("7a23"),Cn={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},wn=(0,kn.createElementVNode)("path",{fill:"currentColor",d:"M317.056 128 128 344.064V896h768V344.064L706.944 128H317.056zm-14.528-64h418.944a32 32 0 0 1 24.064 10.88l206.528 236.096A32 32 0 0 1 960 332.032V928a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V332.032a32 32 0 0 1 7.936-21.12L278.4 75.008A32 32 0 0 1 302.528 64z"},null,-1),In=(0,kn.createElementVNode)("path",{fill:"currentColor",d:"M64 320h896v64H64z"},null,-1),Sn=(0,kn.createElementVNode)("path",{fill:"currentColor",d:"M448 327.872V640h128V327.872L526.08 128h-28.16L448 327.872zM448 64h128l64 256v352a32 32 0 0 1-32 32H416a32 32 0 0 1-32-32V320l64-256z"},null,-1),Tn=[wn,In,Sn];function En(e,t,n,r,o,a){return(0,kn.openBlock)(),(0,kn.createElementBlock)("svg",Cn,Tn)}var jn=f(Mn,[["render",En],["__file","box.vue"]]),Dn={name:"Briefcase"},Ln=n("7a23"),An={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Nn=(0,Ln.createElementVNode)("path",{fill:"currentColor",d:"M320 320V128h384v192h192v192H128V320h192zM128 576h768v320H128V576zm256-256h256.064V192H384v128z"},null,-1),xn=[Nn];function Rn(e,t,n,r,o,a){return(0,Ln.openBlock)(),(0,Ln.createElementBlock)("svg",An,xn)}var Pn=f(Dn,[["render",Rn],["__file","briefcase.vue"]]),Un={name:"BrushFilled"},Vn=n("7a23"),Bn={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Fn=(0,Vn.createElementVNode)("path",{fill:"currentColor",d:"M608 704v160a96 96 0 0 1-192 0V704h-96a128 128 0 0 1-128-128h640a128 128 0 0 1-128 128h-96zM192 512V128.064h640V512H192z"},null,-1),Gn=[Fn];function zn(e,t,n,r,o,a){return(0,Vn.openBlock)(),(0,Vn.createElementBlock)("svg",Bn,Gn)}var Hn=f(Un,[["render",zn],["__file","brush-filled.vue"]]),Yn={name:"Brush"},qn=n("7a23"),Wn={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Kn=(0,qn.createElementVNode)("path",{fill:"currentColor",d:"M896 448H128v192a64 64 0 0 0 64 64h192v192h256V704h192a64 64 0 0 0 64-64V448zm-770.752-64c0-47.552 5.248-90.24 15.552-128 14.72-54.016 42.496-107.392 83.2-160h417.28l-15.36 70.336L736 96h211.2c-24.832 42.88-41.92 96.256-51.2 160a663.872 663.872 0 0 0-6.144 128H960v256a128 128 0 0 1-128 128H704v160a32 32 0 0 1-32 32H352a32 32 0 0 1-32-32V768H192A128 128 0 0 1 64 640V384h61.248zm64 0h636.544c-2.048-45.824.256-91.584 6.848-137.216 4.48-30.848 10.688-59.776 18.688-86.784h-96.64l-221.12 141.248L561.92 160H256.512c-25.856 37.888-43.776 75.456-53.952 112.832-8.768 32.064-13.248 69.12-13.312 111.168z"},null,-1),$n=[Kn];function Jn(e,t,n,r,o,a){return(0,qn.openBlock)(),(0,qn.createElementBlock)("svg",Wn,$n)}var Qn=f(Yn,[["render",Jn],["__file","brush.vue"]]),Xn={name:"Burger"},Zn=n("7a23"),er={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},tr=(0,Zn.createElementVNode)("path",{fill:"currentColor",d:"M160 512a32 32 0 0 0-32 32v64a32 32 0 0 0 30.08 32H864a32 32 0 0 0 32-32v-64a32 32 0 0 0-32-32H160zm736-58.56A96 96 0 0 1 960 544v64a96 96 0 0 1-51.968 85.312L855.36 833.6a96 96 0 0 1-89.856 62.272H258.496A96 96 0 0 1 168.64 833.6l-52.608-140.224A96 96 0 0 1 64 608v-64a96 96 0 0 1 64-90.56V448a384 384 0 1 1 768 5.44zM832 448a320 320 0 0 0-640 0h640zM512 704H188.352l40.192 107.136a32 32 0 0 0 29.952 20.736h507.008a32 32 0 0 0 29.952-20.736L835.648 704H512z"},null,-1),nr=[tr];function rr(e,t,n,r,o,a){return(0,Zn.openBlock)(),(0,Zn.createElementBlock)("svg",er,nr)}var or=f(Xn,[["render",rr],["__file","burger.vue"]]),ar={name:"Calendar"},ir=n("7a23"),sr={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},cr=(0,ir.createElementVNode)("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),lr=[cr];function ur(e,t,n,r,o,a){return(0,ir.openBlock)(),(0,ir.createElementBlock)("svg",sr,lr)}var dr=f(ar,[["render",ur],["__file","calendar.vue"]]),pr={name:"CameraFilled"},fr=n("7a23"),hr={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},mr=(0,fr.createElementVNode)("path",{fill:"currentColor",d:"M160 224a64 64 0 0 0-64 64v512a64 64 0 0 0 64 64h704a64 64 0 0 0 64-64V288a64 64 0 0 0-64-64H748.416l-46.464-92.672A64 64 0 0 0 644.736 96H379.328a64 64 0 0 0-57.216 35.392L275.776 224H160zm352 435.2a115.2 115.2 0 1 0 0-230.4 115.2 115.2 0 0 0 0 230.4zm0 140.8a256 256 0 1 1 0-512 256 256 0 0 1 0 512z"},null,-1),vr=[mr];function gr(e,t,n,r,o,a){return(0,fr.openBlock)(),(0,fr.createElementBlock)("svg",hr,vr)}var _r=f(pr,[["render",gr],["__file","camera-filled.vue"]]),yr={name:"Camera"},br=n("7a23"),Or={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Mr=(0,br.createElementVNode)("path",{fill:"currentColor",d:"M896 256H128v576h768V256zm-199.424-64-32.064-64h-304.96l-32 64h369.024zM96 192h160l46.336-92.608A64 64 0 0 1 359.552 64h304.96a64 64 0 0 1 57.216 35.328L768.192 192H928a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32zm416 512a160 160 0 1 0 0-320 160 160 0 0 0 0 320zm0 64a224 224 0 1 1 0-448 224 224 0 0 1 0 448z"},null,-1),kr=[Mr];function Cr(e,t,n,r,o,a){return(0,br.openBlock)(),(0,br.createElementBlock)("svg",Or,kr)}var wr=f(yr,[["render",Cr],["__file","camera.vue"]]),Ir={name:"CaretBottom"},Sr=n("7a23"),Tr={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Er=(0,Sr.createElementVNode)("path",{fill:"currentColor",d:"m192 384 320 384 320-384z"},null,-1),jr=[Er];function Dr(e,t,n,r,o,a){return(0,Sr.openBlock)(),(0,Sr.createElementBlock)("svg",Tr,jr)}var Lr=f(Ir,[["render",Dr],["__file","caret-bottom.vue"]]),Ar={name:"CaretLeft"},Nr=n("7a23"),xr={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Rr=(0,Nr.createElementVNode)("path",{fill:"currentColor",d:"M672 192 288 511.936 672 832z"},null,-1),Pr=[Rr];function Ur(e,t,n,r,o,a){return(0,Nr.openBlock)(),(0,Nr.createElementBlock)("svg",xr,Pr)}var Vr=f(Ar,[["render",Ur],["__file","caret-left.vue"]]),Br={name:"CaretRight"},Fr=n("7a23"),Gr={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},zr=(0,Fr.createElementVNode)("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"},null,-1),Hr=[zr];function Yr(e,t,n,r,o,a){return(0,Fr.openBlock)(),(0,Fr.createElementBlock)("svg",Gr,Hr)}var qr=f(Br,[["render",Yr],["__file","caret-right.vue"]]),Wr={name:"CaretTop"},Kr=n("7a23"),$r={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Jr=(0,Kr.createElementVNode)("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"},null,-1),Qr=[Jr];function Xr(e,t,n,r,o,a){return(0,Kr.openBlock)(),(0,Kr.createElementBlock)("svg",$r,Qr)}var Zr=f(Wr,[["render",Xr],["__file","caret-top.vue"]]),eo={name:"Cellphone"},to=n("7a23"),no={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ro=(0,to.createElementVNode)("path",{fill:"currentColor",d:"M256 128a64 64 0 0 0-64 64v640a64 64 0 0 0 64 64h512a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64H256zm0-64h512a128 128 0 0 1 128 128v640a128 128 0 0 1-128 128H256a128 128 0 0 1-128-128V192A128 128 0 0 1 256 64zm128 128h256a32 32 0 1 1 0 64H384a32 32 0 0 1 0-64zm128 640a64 64 0 1 1 0-128 64 64 0 0 1 0 128z"},null,-1),oo=[ro];function ao(e,t,n,r,o,a){return(0,to.openBlock)(),(0,to.createElementBlock)("svg",no,oo)}var io=f(eo,[["render",ao],["__file","cellphone.vue"]]),so={name:"ChatDotRound"},co=n("7a23"),lo={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},uo=(0,co.createElementVNode)("path",{fill:"currentColor",d:"m174.72 855.68 135.296-45.12 23.68 11.84C388.096 849.536 448.576 864 512 864c211.84 0 384-166.784 384-352S723.84 160 512 160 128 326.784 128 512c0 69.12 24.96 139.264 70.848 199.232l22.08 28.8-46.272 115.584zm-45.248 82.56A32 32 0 0 1 89.6 896l58.368-145.92C94.72 680.32 64 596.864 64 512 64 299.904 256 96 512 96s448 203.904 448 416-192 416-448 416a461.056 461.056 0 0 1-206.912-48.384l-175.616 58.56z"},null,-1),po=(0,co.createElementVNode)("path",{fill:"currentColor",d:"M512 563.2a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4zm192 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4zm-384 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4z"},null,-1),fo=[uo,po];function ho(e,t,n,r,o,a){return(0,co.openBlock)(),(0,co.createElementBlock)("svg",lo,fo)}var mo=f(so,[["render",ho],["__file","chat-dot-round.vue"]]),vo={name:"ChatDotSquare"},go=n("7a23"),_o={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},yo=(0,go.createElementVNode)("path",{fill:"currentColor",d:"M273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64v570.88L273.536 736zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128H296z"},null,-1),bo=(0,go.createElementVNode)("path",{fill:"currentColor",d:"M512 499.2a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4zm192 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4zm-384 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4z"},null,-1),Oo=[yo,bo];function Mo(e,t,n,r,o,a){return(0,go.openBlock)(),(0,go.createElementBlock)("svg",_o,Oo)}var ko=f(vo,[["render",Mo],["__file","chat-dot-square.vue"]]),Co={name:"ChatLineRound"},wo=n("7a23"),Io={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},So=(0,wo.createElementVNode)("path",{fill:"currentColor",d:"m174.72 855.68 135.296-45.12 23.68 11.84C388.096 849.536 448.576 864 512 864c211.84 0 384-166.784 384-352S723.84 160 512 160 128 326.784 128 512c0 69.12 24.96 139.264 70.848 199.232l22.08 28.8-46.272 115.584zm-45.248 82.56A32 32 0 0 1 89.6 896l58.368-145.92C94.72 680.32 64 596.864 64 512 64 299.904 256 96 512 96s448 203.904 448 416-192 416-448 416a461.056 461.056 0 0 1-206.912-48.384l-175.616 58.56z"},null,-1),To=(0,wo.createElementVNode)("path",{fill:"currentColor",d:"M352 576h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32zm32-192h256q32 0 32 32t-32 32H384q-32 0-32-32t32-32z"},null,-1),Eo=[So,To];function jo(e,t,n,r,o,a){return(0,wo.openBlock)(),(0,wo.createElementBlock)("svg",Io,Eo)}var Do=f(Co,[["render",jo],["__file","chat-line-round.vue"]]),Lo={name:"ChatLineSquare"},Ao=n("7a23"),No={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},xo=(0,Ao.createElementVNode)("path",{fill:"currentColor",d:"M160 826.88 273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64v570.88zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128H296z"},null,-1),Ro=(0,Ao.createElementVNode)("path",{fill:"currentColor",d:"M352 512h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32zm0-192h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32z"},null,-1),Po=[xo,Ro];function Uo(e,t,n,r,o,a){return(0,Ao.openBlock)(),(0,Ao.createElementBlock)("svg",No,Po)}var Vo=f(Lo,[["render",Uo],["__file","chat-line-square.vue"]]),Bo={name:"ChatRound"},Fo=n("7a23"),Go={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},zo=(0,Fo.createElementVNode)("path",{fill:"currentColor",d:"m174.72 855.68 130.048-43.392 23.424 11.392C382.4 849.984 444.352 864 512 864c223.744 0 384-159.872 384-352 0-192.832-159.104-352-384-352S128 319.168 128 512a341.12 341.12 0 0 0 69.248 204.288l21.632 28.8-44.16 110.528zm-45.248 82.56A32 32 0 0 1 89.6 896l56.512-141.248A405.12 405.12 0 0 1 64 512C64 299.904 235.648 96 512 96s448 203.904 448 416-173.44 416-448 416c-79.68 0-150.848-17.152-211.712-46.72l-170.88 56.96z"},null,-1),Ho=[zo];function Yo(e,t,n,r,o,a){return(0,Fo.openBlock)(),(0,Fo.createElementBlock)("svg",Go,Ho)}var qo=f(Bo,[["render",Yo],["__file","chat-round.vue"]]),Wo={name:"ChatSquare"},Ko=n("7a23"),$o={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Jo=(0,Ko.createElementVNode)("path",{fill:"currentColor",d:"M273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64v570.88L273.536 736zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128H296z"},null,-1),Qo=[Jo];function Xo(e,t,n,r,o,a){return(0,Ko.openBlock)(),(0,Ko.createElementBlock)("svg",$o,Qo)}var Zo=f(Wo,[["render",Xo],["__file","chat-square.vue"]]),ea={name:"Check"},ta=n("7a23"),na={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ra=(0,ta.createElementVNode)("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),oa=[ra];function aa(e,t,n,r,o,a){return(0,ta.openBlock)(),(0,ta.createElementBlock)("svg",na,oa)}var ia=f(ea,[["render",aa],["__file","check.vue"]]),sa={name:"Checked"},ca=n("7a23"),la={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ua=(0,ca.createElementVNode)("path",{fill:"currentColor",d:"M704 192h160v736H160V192h160.064v64H704v-64zM311.616 537.28l-45.312 45.248L447.36 763.52l316.8-316.8-45.312-45.184L447.36 673.024 311.616 537.28zM384 192V96h256v96H384z"},null,-1),da=[ua];function pa(e,t,n,r,o,a){return(0,ca.openBlock)(),(0,ca.createElementBlock)("svg",la,da)}var fa=f(sa,[["render",pa],["__file","checked.vue"]]),ha={name:"Cherry"},ma=n("7a23"),va={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ga=(0,ma.createElementVNode)("path",{fill:"currentColor",d:"M261.056 449.6c13.824-69.696 34.88-128.96 63.36-177.728 23.744-40.832 61.12-88.64 112.256-143.872H320a32 32 0 0 1 0-64h384a32 32 0 1 1 0 64H554.752c14.912 39.168 41.344 86.592 79.552 141.76 47.36 68.48 84.8 106.752 106.304 114.304a224 224 0 1 1-84.992 14.784c-22.656-22.912-47.04-53.76-73.92-92.608-38.848-56.128-67.008-105.792-84.352-149.312-55.296 58.24-94.528 107.52-117.76 147.2-23.168 39.744-41.088 88.768-53.568 147.072a224.064 224.064 0 1 1-64.96-1.6zM288 832a160 160 0 1 0 0-320 160 160 0 0 0 0 320zm448-64a160 160 0 1 0 0-320 160 160 0 0 0 0 320z"},null,-1),_a=[ga];function ya(e,t,n,r,o,a){return(0,ma.openBlock)(),(0,ma.createElementBlock)("svg",va,_a)}var ba=f(ha,[["render",ya],["__file","cherry.vue"]]),Oa={name:"Chicken"},Ma=n("7a23"),ka={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Ca=(0,Ma.createElementVNode)("path",{fill:"currentColor",d:"M349.952 716.992 478.72 588.16a106.688 106.688 0 0 1-26.176-19.072 106.688 106.688 0 0 1-19.072-26.176L304.704 671.744c.768 3.072 1.472 6.144 2.048 9.216l2.048 31.936 31.872 1.984c3.136.64 6.208 1.28 9.28 2.112zm57.344 33.152a128 128 0 1 1-216.32 114.432l-1.92-32-32-1.92a128 128 0 1 1 114.432-216.32L416.64 469.248c-2.432-101.44 58.112-239.104 149.056-330.048 107.328-107.328 231.296-85.504 316.8 0 85.44 85.44 107.328 209.408 0 316.8-91.008 90.88-228.672 151.424-330.112 149.056L407.296 750.08zm90.496-226.304c49.536 49.536 233.344-7.04 339.392-113.088 78.208-78.208 63.232-163.072 0-226.304-63.168-63.232-148.032-78.208-226.24 0C504.896 290.496 448.32 474.368 497.792 523.84zM244.864 708.928a64 64 0 1 0-59.84 59.84l56.32-3.52 3.52-56.32zm8.064 127.68a64 64 0 1 0 59.84-59.84l-56.32 3.52-3.52 56.32z"},null,-1),wa=[Ca];function Ia(e,t,n,r,o,a){return(0,Ma.openBlock)(),(0,Ma.createElementBlock)("svg",ka,wa)}var Sa=f(Oa,[["render",Ia],["__file","chicken.vue"]]),Ta={name:"ChromeFilled"},Ea=n("7a23"),ja={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},Da=(0,Ea.createElementVNode)("path",{fill:"currentColor",d:"M938.67 512.01c0-44.59-6.82-87.6-19.54-128H682.67a212.372 212.372 0 0 1 42.67 128c.06 38.71-10.45 76.7-30.42 109.87l-182.91 316.8c235.65-.01 426.66-191.02 426.66-426.67z"},null,-1),La=(0,Ea.createElementVNode)("path",{fill:"currentColor",d:"M576.79 401.63a127.92 127.92 0 0 0-63.56-17.6c-22.36-.22-44.39 5.43-63.89 16.38s-35.79 26.82-47.25 46.02a128.005 128.005 0 0 0-2.16 127.44l1.24 2.13a127.906 127.906 0 0 0 46.36 46.61 127.907 127.907 0 0 0 63.38 17.44c22.29.2 44.24-5.43 63.68-16.33a127.94 127.94 0 0 0 47.16-45.79v-.01l1.11-1.92a127.984 127.984 0 0 0 .29-127.46 127.957 127.957 0 0 0-46.36-46.91z"},null,-1),Aa=(0,Ea.createElementVNode)("path",{fill:"currentColor",d:"M394.45 333.96A213.336 213.336 0 0 1 512 298.67h369.58A426.503 426.503 0 0 0 512 85.34a425.598 425.598 0 0 0-171.74 35.98 425.644 425.644 0 0 0-142.62 102.22l118.14 204.63a213.397 213.397 0 0 1 78.67-94.21zm117.56 604.72H512zm-97.25-236.73a213.284 213.284 0 0 1-89.54-86.81L142.48 298.6c-36.35 62.81-57.13 135.68-57.13 213.42 0 203.81 142.93 374.22 333.95 416.55h.04l118.19-204.71a213.315 213.315 0 0 1-122.77-21.91z"},null,-1),Na=[Da,La,Aa];function xa(e,t,n,r,o,a){return(0,Ea.openBlock)(),(0,Ea.createElementBlock)("svg",ja,Na)}var Ra=f(Ta,[["render",xa],["__file","chrome-filled.vue"]]),Pa={name:"CircleCheckFilled"},Ua=n("7a23"),Va={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Ba=(0,Ua.createElementVNode)("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),Fa=[Ba];function Ga(e,t,n,r,o,a){return(0,Ua.openBlock)(),(0,Ua.createElementBlock)("svg",Va,Fa)}var za=f(Pa,[["render",Ga],["__file","circle-check-filled.vue"]]),Ha={name:"CircleCheck"},Ya=n("7a23"),qa={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Wa=(0,Ya.createElementVNode)("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),Ka=(0,Ya.createElementVNode)("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),$a=[Wa,Ka];function Ja(e,t,n,r,o,a){return(0,Ya.openBlock)(),(0,Ya.createElementBlock)("svg",qa,$a)}var Qa=f(Ha,[["render",Ja],["__file","circle-check.vue"]]),Xa={name:"CircleCloseFilled"},Za=n("7a23"),ei={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ti=(0,Za.createElementVNode)("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),ni=[ti];function ri(e,t,n,r,o,a){return(0,Za.openBlock)(),(0,Za.createElementBlock)("svg",ei,ni)}var oi=f(Xa,[["render",ri],["__file","circle-close-filled.vue"]]),ai={name:"CircleClose"},ii=n("7a23"),si={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ci=(0,ii.createElementVNode)("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),li=(0,ii.createElementVNode)("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),ui=[ci,li];function di(e,t,n,r,o,a){return(0,ii.openBlock)(),(0,ii.createElementBlock)("svg",si,ui)}var pi=f(ai,[["render",di],["__file","circle-close.vue"]]),fi={name:"CirclePlusFilled"},hi=n("7a23"),mi={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},vi=(0,hi.createElementVNode)("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-38.4 409.6H326.4a38.4 38.4 0 1 0 0 76.8h147.2v147.2a38.4 38.4 0 0 0 76.8 0V550.4h147.2a38.4 38.4 0 0 0 0-76.8H550.4V326.4a38.4 38.4 0 1 0-76.8 0v147.2z"},null,-1),gi=[vi];function _i(e,t,n,r,o,a){return(0,hi.openBlock)(),(0,hi.createElementBlock)("svg",mi,gi)}var yi=f(fi,[["render",_i],["__file","circle-plus-filled.vue"]]),bi={name:"CirclePlus"},Oi=n("7a23"),Mi={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ki=(0,Oi.createElementVNode)("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64z"},null,-1),Ci=(0,Oi.createElementVNode)("path",{fill:"currentColor",d:"M480 672V352a32 32 0 1 1 64 0v320a32 32 0 0 1-64 0z"},null,-1),wi=(0,Oi.createElementVNode)("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),Ii=[ki,Ci,wi];function Si(e,t,n,r,o,a){return(0,Oi.openBlock)(),(0,Oi.createElementBlock)("svg",Mi,Ii)}var Ti=f(bi,[["render",Si],["__file","circle-plus.vue"]]),Ei={name:"Clock"},ji=n("7a23"),Di={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Li=(0,ji.createElementVNode)("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),Ai=(0,ji.createElementVNode)("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),Ni=(0,ji.createElementVNode)("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32z"},null,-1),xi=[Li,Ai,Ni];function Ri(e,t,n,r,o,a){return(0,ji.openBlock)(),(0,ji.createElementBlock)("svg",Di,xi)}var Pi=f(Ei,[["render",Ri],["__file","clock.vue"]]),Ui={name:"CloseBold"},Vi=n("7a23"),Bi={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Fi=(0,Vi.createElementVNode)("path",{fill:"currentColor",d:"M195.2 195.2a64 64 0 0 1 90.496 0L512 421.504 738.304 195.2a64 64 0 0 1 90.496 90.496L602.496 512 828.8 738.304a64 64 0 0 1-90.496 90.496L512 602.496 285.696 828.8a64 64 0 0 1-90.496-90.496L421.504 512 195.2 285.696a64 64 0 0 1 0-90.496z"},null,-1),Gi=[Fi];function zi(e,t,n,r,o,a){return(0,Vi.openBlock)(),(0,Vi.createElementBlock)("svg",Bi,Gi)}var Hi=f(Ui,[["render",zi],["__file","close-bold.vue"]]),Yi={name:"Close"},qi=n("7a23"),Wi={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Ki=(0,qi.createElementVNode)("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),$i=[Ki];function Ji(e,t,n,r,o,a){return(0,qi.openBlock)(),(0,qi.createElementBlock)("svg",Wi,$i)}var Qi=f(Yi,[["render",Ji],["__file","close.vue"]]),Xi={name:"Cloudy"},Zi=n("7a23"),es={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ts=(0,Zi.createElementVNode)("path",{fill:"currentColor",d:"M598.4 831.872H328.192a256 256 0 0 1-34.496-510.528A352 352 0 1 1 598.4 831.872zm-271.36-64h272.256a288 288 0 1 0-248.512-417.664L335.04 381.44l-34.816 3.584a192 192 0 0 0 26.88 382.848z"},null,-1),ns=[ts];function rs(e,t,n,r,o,a){return(0,Zi.openBlock)(),(0,Zi.createElementBlock)("svg",es,ns)}var os=f(Xi,[["render",rs],["__file","cloudy.vue"]]),as={name:"CoffeeCup"},is=n("7a23"),ss={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},cs=(0,is.createElementVNode)("path",{fill:"currentColor",d:"M768 192a192 192 0 1 1-8 383.808A256.128 256.128 0 0 1 512 768H320A256 256 0 0 1 64 512V160a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32v32zm0 64v256a128 128 0 1 0 0-256zM96 832h640a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64zm32-640v320a192 192 0 0 0 192 192h192a192 192 0 0 0 192-192V192H128z"},null,-1),ls=[cs];function us(e,t,n,r,o,a){return(0,is.openBlock)(),(0,is.createElementBlock)("svg",ss,ls)}var ds=f(as,[["render",us],["__file","coffee-cup.vue"]]),ps={name:"Coffee"},fs=n("7a23"),hs={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ms=(0,fs.createElementVNode)("path",{fill:"currentColor",d:"M822.592 192h14.272a32 32 0 0 1 31.616 26.752l21.312 128A32 32 0 0 1 858.24 384h-49.344l-39.04 546.304A32 32 0 0 1 737.92 960H285.824a32 32 0 0 1-32-29.696L214.912 384H165.76a32 32 0 0 1-31.552-37.248l21.312-128A32 32 0 0 1 187.136 192h14.016l-6.72-93.696A32 32 0 0 1 226.368 64h571.008a32 32 0 0 1 31.936 34.304L822.592 192zm-64.128 0 4.544-64H260.736l4.544 64h493.184zm-548.16 128H820.48l-10.688-64H214.208l-10.688 64h6.784zm68.736 64 36.544 512H708.16l36.544-512H279.04z"},null,-1),vs=[ms];function gs(e,t,n,r,o,a){return(0,fs.openBlock)(),(0,fs.createElementBlock)("svg",hs,vs)}var _s=f(ps,[["render",gs],["__file","coffee.vue"]]),ys={name:"Coin"},bs=n("7a23"),Os={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Ms=(0,bs.createElementVNode)("path",{fill:"currentColor",d:"m161.92 580.736 29.888 58.88C171.328 659.776 160 681.728 160 704c0 82.304 155.328 160 352 160s352-77.696 352-160c0-22.272-11.392-44.16-31.808-64.32l30.464-58.432C903.936 615.808 928 657.664 928 704c0 129.728-188.544 224-416 224S96 833.728 96 704c0-46.592 24.32-88.576 65.92-123.264z"},null,-1),ks=(0,bs.createElementVNode)("path",{fill:"currentColor",d:"m161.92 388.736 29.888 58.88C171.328 467.84 160 489.792 160 512c0 82.304 155.328 160 352 160s352-77.696 352-160c0-22.272-11.392-44.16-31.808-64.32l30.464-58.432C903.936 423.808 928 465.664 928 512c0 129.728-188.544 224-416 224S96 641.728 96 512c0-46.592 24.32-88.576 65.92-123.264z"},null,-1),Cs=(0,bs.createElementVNode)("path",{fill:"currentColor",d:"M512 544c-227.456 0-416-94.272-416-224S284.544 96 512 96s416 94.272 416 224-188.544 224-416 224zm0-64c196.672 0 352-77.696 352-160S708.672 160 512 160s-352 77.696-352 160 155.328 160 352 160z"},null,-1),ws=[Ms,ks,Cs];function Is(e,t,n,r,o,a){return(0,bs.openBlock)(),(0,bs.createElementBlock)("svg",Os,ws)}var Ss=f(ys,[["render",Is],["__file","coin.vue"]]),Ts={name:"ColdDrink"},Es=n("7a23"),js={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Ds=(0,Es.createElementVNode)("path",{fill:"currentColor",d:"M768 64a192 192 0 1 1-69.952 370.88L480 725.376V896h96a32 32 0 1 1 0 64H320a32 32 0 1 1 0-64h96V725.376L76.8 273.536a64 64 0 0 1-12.8-38.4v-10.688a32 32 0 0 1 32-32h71.808l-65.536-83.84a32 32 0 0 1 50.432-39.424l96.256 123.264h337.728A192.064 192.064 0 0 1 768 64zM656.896 192.448H800a32 32 0 0 1 32 32v10.624a64 64 0 0 1-12.8 38.4l-80.448 107.2a128 128 0 1 0-81.92-188.16v-.064zm-357.888 64 129.472 165.76a32 32 0 0 1-50.432 39.36l-160.256-205.12H144l304 404.928 304-404.928H299.008z"},null,-1),Ls=[Ds];function As(e,t,n,r,o,a){return(0,Es.openBlock)(),(0,Es.createElementBlock)("svg",js,Ls)}var Ns=f(Ts,[["render",As],["__file","cold-drink.vue"]]),xs={name:"CollectionTag"},Rs=n("7a23"),Ps={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Us=(0,Rs.createElementVNode)("path",{fill:"currentColor",d:"M256 128v698.88l196.032-156.864a96 96 0 0 1 119.936 0L768 826.816V128H256zm-32-64h576a32 32 0 0 1 32 32v797.44a32 32 0 0 1-51.968 24.96L531.968 720a32 32 0 0 0-39.936 0L243.968 918.4A32 32 0 0 1 192 893.44V96a32 32 0 0 1 32-32z"},null,-1),Vs=[Us];function Bs(e,t,n,r,o,a){return(0,Rs.openBlock)(),(0,Rs.createElementBlock)("svg",Ps,Vs)}var Fs=f(xs,[["render",Bs],["__file","collection-tag.vue"]]),Gs={name:"Collection"},zs=n("7a23"),Hs={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Ys=(0,zs.createElementVNode)("path",{fill:"currentColor",d:"M192 736h640V128H256a64 64 0 0 0-64 64v544zm64-672h608a32 32 0 0 1 32 32v672a32 32 0 0 1-32 32H160l-32 57.536V192A128 128 0 0 1 256 64z"},null,-1),qs=(0,zs.createElementVNode)("path",{fill:"currentColor",d:"M240 800a48 48 0 1 0 0 96h592v-96H240zm0-64h656v160a64 64 0 0 1-64 64H240a112 112 0 0 1 0-224zm144-608v250.88l96-76.8 96 76.8V128H384zm-64-64h320v381.44a32 32 0 0 1-51.968 24.96L480 384l-108.032 86.4A32 32 0 0 1 320 445.44V64z"},null,-1),Ws=[Ys,qs];function Ks(e,t,n,r,o,a){return(0,zs.openBlock)(),(0,zs.createElementBlock)("svg",Hs,Ws)}var $s=f(Gs,[["render",Ks],["__file","collection.vue"]]),Js={name:"Comment"},Qs=n("7a23"),Xs={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Zs=(0,Qs.createElementVNode)("path",{fill:"currentColor",d:"M736 504a56 56 0 1 1 0-112 56 56 0 0 1 0 112zm-224 0a56 56 0 1 1 0-112 56 56 0 0 1 0 112zm-224 0a56 56 0 1 1 0-112 56 56 0 0 1 0 112zM128 128v640h192v160l224-160h352V128H128z"},null,-1),ec=[Zs];function tc(e,t,n,r,o,a){return(0,Qs.openBlock)(),(0,Qs.createElementBlock)("svg",Xs,ec)}var nc=f(Js,[["render",tc],["__file","comment.vue"]]),rc={name:"Compass"},oc=n("7a23"),ac={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ic=(0,oc.createElementVNode)("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),sc=(0,oc.createElementVNode)("path",{fill:"currentColor",d:"M725.888 315.008C676.48 428.672 624 513.28 568.576 568.64c-55.424 55.424-139.968 107.904-253.568 157.312a12.8 12.8 0 0 1-16.896-16.832c49.536-113.728 102.016-198.272 157.312-253.632 55.36-55.296 139.904-107.776 253.632-157.312a12.8 12.8 0 0 1 16.832 16.832z"},null,-1),cc=[ic,sc];function lc(e,t,n,r,o,a){return(0,oc.openBlock)(),(0,oc.createElementBlock)("svg",ac,cc)}var uc=f(rc,[["render",lc],["__file","compass.vue"]]),dc={name:"Connection"},pc=n("7a23"),fc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},hc=(0,pc.createElementVNode)("path",{fill:"currentColor",d:"M640 384v64H448a128 128 0 0 0-128 128v128a128 128 0 0 0 128 128h320a128 128 0 0 0 128-128V576a128 128 0 0 0-64-110.848V394.88c74.56 26.368 128 97.472 128 181.056v128a192 192 0 0 1-192 192H448a192 192 0 0 1-192-192V576a192 192 0 0 1 192-192h192z"},null,-1),mc=(0,pc.createElementVNode)("path",{fill:"currentColor",d:"M384 640v-64h192a128 128 0 0 0 128-128V320a128 128 0 0 0-128-128H256a128 128 0 0 0-128 128v128a128 128 0 0 0 64 110.848v70.272A192.064 192.064 0 0 1 64 448V320a192 192 0 0 1 192-192h320a192 192 0 0 1 192 192v128a192 192 0 0 1-192 192H384z"},null,-1),vc=[hc,mc];function gc(e,t,n,r,o,a){return(0,pc.openBlock)(),(0,pc.createElementBlock)("svg",fc,vc)}var _c=f(dc,[["render",gc],["__file","connection.vue"]]),yc={name:"Coordinate"},bc=n("7a23"),Oc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Mc=(0,bc.createElementVNode)("path",{fill:"currentColor",d:"M480 512h64v320h-64z"},null,-1),kc=(0,bc.createElementVNode)("path",{fill:"currentColor",d:"M192 896h640a64 64 0 0 0-64-64H256a64 64 0 0 0-64 64zm64-128h512a128 128 0 0 1 128 128v64H128v-64a128 128 0 0 1 128-128zm256-256a192 192 0 1 0 0-384 192 192 0 0 0 0 384zm0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512z"},null,-1),Cc=[Mc,kc];function wc(e,t,n,r,o,a){return(0,bc.openBlock)(),(0,bc.createElementBlock)("svg",Oc,Cc)}var Ic=f(yc,[["render",wc],["__file","coordinate.vue"]]),Sc={name:"CopyDocument"},Tc=n("7a23"),Ec={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},jc=(0,Tc.createElementVNode)("path",{fill:"currentColor",d:"M768 832a128 128 0 0 1-128 128H192A128 128 0 0 1 64 832V384a128 128 0 0 1 128-128v64a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64h64z"},null,-1),Dc=(0,Tc.createElementVNode)("path",{fill:"currentColor",d:"M384 128a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64H384zm0-64h448a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H384a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64z"},null,-1),Lc=[jc,Dc];function Ac(e,t,n,r,o,a){return(0,Tc.openBlock)(),(0,Tc.createElementBlock)("svg",Ec,Lc)}var Nc=f(Sc,[["render",Ac],["__file","copy-document.vue"]]),xc={name:"Cpu"},Rc=n("7a23"),Pc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Uc=(0,Rc.createElementVNode)("path",{fill:"currentColor",d:"M320 256a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h384a64 64 0 0 0 64-64V320a64 64 0 0 0-64-64H320zm0-64h384a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128H320a128 128 0 0 1-128-128V320a128 128 0 0 1 128-128z"},null,-1),Vc=(0,Rc.createElementVNode)("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32zm160 0a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32zm-320 0a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32zm160 896a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32zm160 0a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32zm-320 0a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32zM64 512a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32zm0-160a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32zm0 320a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32zm896-160a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32zm0-160a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32zm0 320a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32z"},null,-1),Bc=[Uc,Vc];function Fc(e,t,n,r,o,a){return(0,Rc.openBlock)(),(0,Rc.createElementBlock)("svg",Pc,Bc)}var Gc=f(xc,[["render",Fc],["__file","cpu.vue"]]),zc={name:"CreditCard"},Hc=n("7a23"),Yc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},qc=(0,Hc.createElementVNode)("path",{fill:"currentColor",d:"M896 324.096c0-42.368-2.496-55.296-9.536-68.48a52.352 52.352 0 0 0-22.144-22.08c-13.12-7.04-26.048-9.536-68.416-9.536H228.096c-42.368 0-55.296 2.496-68.48 9.536a52.352 52.352 0 0 0-22.08 22.144c-7.04 13.12-9.536 26.048-9.536 68.416v375.808c0 42.368 2.496 55.296 9.536 68.48a52.352 52.352 0 0 0 22.144 22.08c13.12 7.04 26.048 9.536 68.416 9.536h567.808c42.368 0 55.296-2.496 68.48-9.536a52.352 52.352 0 0 0 22.08-22.144c7.04-13.12 9.536-26.048 9.536-68.416V324.096zm64 0v375.808c0 57.088-5.952 77.76-17.088 98.56-11.136 20.928-27.52 37.312-48.384 48.448-20.864 11.136-41.6 17.088-98.56 17.088H228.032c-57.088 0-77.76-5.952-98.56-17.088a116.288 116.288 0 0 1-48.448-48.384c-11.136-20.864-17.088-41.6-17.088-98.56V324.032c0-57.088 5.952-77.76 17.088-98.56 11.136-20.928 27.52-37.312 48.384-48.448 20.864-11.136 41.6-17.088 98.56-17.088H795.84c57.088 0 77.76 5.952 98.56 17.088 20.928 11.136 37.312 27.52 48.448 48.384 11.136 20.864 17.088 41.6 17.088 98.56z"},null,-1),Wc=(0,Hc.createElementVNode)("path",{fill:"currentColor",d:"M64 320h896v64H64v-64zm0 128h896v64H64v-64zm128 192h256v64H192z"},null,-1),Kc=[qc,Wc];function $c(e,t,n,r,o,a){return(0,Hc.openBlock)(),(0,Hc.createElementBlock)("svg",Yc,Kc)}var Jc=f(zc,[["render",$c],["__file","credit-card.vue"]]),Qc={name:"Crop"},Xc=n("7a23"),Zc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},el=(0,Xc.createElementVNode)("path",{fill:"currentColor",d:"M256 768h672a32 32 0 1 1 0 64H224a32 32 0 0 1-32-32V96a32 32 0 0 1 64 0v672z"},null,-1),tl=(0,Xc.createElementVNode)("path",{fill:"currentColor",d:"M832 224v704a32 32 0 1 1-64 0V256H96a32 32 0 0 1 0-64h704a32 32 0 0 1 32 32z"},null,-1),nl=[el,tl];function rl(e,t,n,r,o,a){return(0,Xc.openBlock)(),(0,Xc.createElementBlock)("svg",Zc,nl)}var ol=f(Qc,[["render",rl],["__file","crop.vue"]]),al={name:"DArrowLeft"},il=n("7a23"),sl={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},cl=(0,il.createElementVNode)("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),ll=[cl];function ul(e,t,n,r,o,a){return(0,il.openBlock)(),(0,il.createElementBlock)("svg",sl,ll)}var dl=f(al,[["render",ul],["__file","d-arrow-left.vue"]]),pl={name:"DArrowRight"},fl=n("7a23"),hl={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ml=(0,fl.createElementVNode)("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),vl=[ml];function gl(e,t,n,r,o,a){return(0,fl.openBlock)(),(0,fl.createElementBlock)("svg",hl,vl)}var _l=f(pl,[["render",gl],["__file","d-arrow-right.vue"]]),yl={name:"DCaret"},bl=n("7a23"),Ol={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Ml=(0,bl.createElementVNode)("path",{fill:"currentColor",d:"m512 128 288 320H224l288-320zM224 576h576L512 896 224 576z"},null,-1),kl=[Ml];function Cl(e,t,n,r,o,a){return(0,bl.openBlock)(),(0,bl.createElementBlock)("svg",Ol,kl)}var wl=f(yl,[["render",Cl],["__file","d-caret.vue"]]),Il={name:"DataAnalysis"},Sl=n("7a23"),Tl={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},El=(0,Sl.createElementVNode)("path",{fill:"currentColor",d:"m665.216 768 110.848 192h-73.856L591.36 768H433.024L322.176 960H248.32l110.848-192H160a32 32 0 0 1-32-32V192H64a32 32 0 0 1 0-64h896a32 32 0 1 1 0 64h-64v544a32 32 0 0 1-32 32H665.216zM832 192H192v512h640V192zM352 448a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0v-64a32 32 0 0 1 32-32zm160-64a32 32 0 0 1 32 32v128a32 32 0 0 1-64 0V416a32 32 0 0 1 32-32zm160-64a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V352a32 32 0 0 1 32-32z"},null,-1),jl=[El];function Dl(e,t,n,r,o,a){return(0,Sl.openBlock)(),(0,Sl.createElementBlock)("svg",Tl,jl)}var Ll=f(Il,[["render",Dl],["__file","data-analysis.vue"]]),Al={name:"DataBoard"},Nl=n("7a23"),xl={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Rl=(0,Nl.createElementVNode)("path",{fill:"currentColor",d:"M32 128h960v64H32z"},null,-1),Pl=(0,Nl.createElementVNode)("path",{fill:"currentColor",d:"M192 192v512h640V192H192zm-64-64h768v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V128z"},null,-1),Ul=(0,Nl.createElementVNode)("path",{fill:"currentColor",d:"M322.176 960H248.32l144.64-250.56 55.424 32L322.176 960zm453.888 0h-73.856L576 741.44l55.424-32L776.064 960z"},null,-1),Vl=[Rl,Pl,Ul];function Bl(e,t,n,r,o,a){return(0,Nl.openBlock)(),(0,Nl.createElementBlock)("svg",xl,Vl)}var Fl=f(Al,[["render",Bl],["__file","data-board.vue"]]),Gl={name:"DataLine"},zl=n("7a23"),Hl={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Yl=(0,zl.createElementVNode)("path",{fill:"currentColor",d:"M359.168 768H160a32 32 0 0 1-32-32V192H64a32 32 0 0 1 0-64h896a32 32 0 1 1 0 64h-64v544a32 32 0 0 1-32 32H665.216l110.848 192h-73.856L591.36 768H433.024L322.176 960H248.32l110.848-192zM832 192H192v512h640V192zM342.656 534.656a32 32 0 1 1-45.312-45.312L444.992 341.76l125.44 94.08L679.04 300.032a32 32 0 1 1 49.92 39.936L581.632 524.224 451.008 426.24 342.656 534.592z"},null,-1),ql=[Yl];function Wl(e,t,n,r,o,a){return(0,zl.openBlock)(),(0,zl.createElementBlock)("svg",Hl,ql)}var Kl=f(Gl,[["render",Wl],["__file","data-line.vue"]]),$l={name:"DeleteFilled"},Jl=n("7a23"),Ql={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Xl=(0,Jl.createElementVNode)("path",{fill:"currentColor",d:"M352 192V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64H96a32 32 0 0 1 0-64h256zm64 0h192v-64H416v64zM192 960a32 32 0 0 1-32-32V256h704v672a32 32 0 0 1-32 32H192zm224-192a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32zm192 0a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32z"},null,-1),Zl=[Xl];function eu(e,t,n,r,o,a){return(0,Jl.openBlock)(),(0,Jl.createElementBlock)("svg",Ql,Zl)}var tu=f($l,[["render",eu],["__file","delete-filled.vue"]]),nu={name:"DeleteLocation"},ru=n("7a23"),ou={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},au=(0,ru.createElementVNode)("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32z"},null,-1),iu=(0,ru.createElementVNode)("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416zM512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544z"},null,-1),su=(0,ru.createElementVNode)("path",{fill:"currentColor",d:"M384 384h256q32 0 32 32t-32 32H384q-32 0-32-32t32-32z"},null,-1),cu=[au,iu,su];function lu(e,t,n,r,o,a){return(0,ru.openBlock)(),(0,ru.createElementBlock)("svg",ou,cu)}var uu=f(nu,[["render",lu],["__file","delete-location.vue"]]),du={name:"Delete"},pu=n("7a23"),fu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},hu=(0,pu.createElementVNode)("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),mu=[hu];function vu(e,t,n,r,o,a){return(0,pu.openBlock)(),(0,pu.createElementBlock)("svg",fu,mu)}var gu=f(du,[["render",vu],["__file","delete.vue"]]),_u={name:"Dessert"},yu=n("7a23"),bu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Ou=(0,yu.createElementVNode)("path",{fill:"currentColor",d:"M128 416v-48a144 144 0 0 1 168.64-141.888 224.128 224.128 0 0 1 430.72 0A144 144 0 0 1 896 368v48a384 384 0 0 1-352 382.72V896h-64v-97.28A384 384 0 0 1 128 416zm287.104-32.064h193.792a143.808 143.808 0 0 1 58.88-132.736 160.064 160.064 0 0 0-311.552 0 143.808 143.808 0 0 1 58.88 132.8zm-72.896 0a72 72 0 1 0-140.48 0h140.48zm339.584 0h140.416a72 72 0 1 0-140.48 0zM512 736a320 320 0 0 0 318.4-288.064H193.6A320 320 0 0 0 512 736zM384 896.064h256a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64z"},null,-1),Mu=[Ou];function ku(e,t,n,r,o,a){return(0,yu.openBlock)(),(0,yu.createElementBlock)("svg",bu,Mu)}var Cu=f(_u,[["render",ku],["__file","dessert.vue"]]),wu={name:"Discount"},Iu=n("7a23"),Su={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Tu=(0,Iu.createElementVNode)("path",{fill:"currentColor",d:"M224 704h576V318.336L552.512 115.84a64 64 0 0 0-81.024 0L224 318.336V704zm0 64v128h576V768H224zM593.024 66.304l259.2 212.096A32 32 0 0 1 864 303.168V928a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V303.168a32 32 0 0 1 11.712-24.768l259.2-212.096a128 128 0 0 1 162.112 0z"},null,-1),Eu=(0,Iu.createElementVNode)("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256z"},null,-1),ju=[Tu,Eu];function Du(e,t,n,r,o,a){return(0,Iu.openBlock)(),(0,Iu.createElementBlock)("svg",Su,ju)}var Lu=f(wu,[["render",Du],["__file","discount.vue"]]),Au={name:"DishDot"},Nu=n("7a23"),xu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Ru=(0,Nu.createElementVNode)("path",{fill:"currentColor",d:"m384.064 274.56.064-50.688A128 128 0 0 1 512.128 96c70.528 0 127.68 57.152 127.68 127.68v50.752A448.192 448.192 0 0 1 955.392 768H68.544A448.192 448.192 0 0 1 384 274.56zM96 832h832a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64zm32-128h768a384 384 0 1 0-768 0zm447.808-448v-32.32a63.68 63.68 0 0 0-63.68-63.68 64 64 0 0 0-64 63.936V256h127.68z"},null,-1),Pu=[Ru];function Uu(e,t,n,r,o,a){return(0,Nu.openBlock)(),(0,Nu.createElementBlock)("svg",xu,Pu)}var Vu=f(Au,[["render",Uu],["__file","dish-dot.vue"]]),Bu={name:"Dish"},Fu=n("7a23"),Gu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},zu=(0,Fu.createElementVNode)("path",{fill:"currentColor",d:"M480 257.152V192h-96a32 32 0 0 1 0-64h256a32 32 0 1 1 0 64h-96v65.152A448 448 0 0 1 955.52 768H68.48A448 448 0 0 1 480 257.152zM128 704h768a384 384 0 1 0-768 0zM96 832h832a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64z"},null,-1),Hu=[zu];function Yu(e,t,n,r,o,a){return(0,Fu.openBlock)(),(0,Fu.createElementBlock)("svg",Gu,Hu)}var qu=f(Bu,[["render",Yu],["__file","dish.vue"]]),Wu={name:"DocumentAdd"},Ku=n("7a23"),$u={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Ju=(0,Ku.createElementVNode)("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-32zm320 512V448h64v128h128v64H544v128h-64V640H352v-64h128z"},null,-1),Qu=[Ju];function Xu(e,t,n,r,o,a){return(0,Ku.openBlock)(),(0,Ku.createElementBlock)("svg",$u,Qu)}var Zu=f(Wu,[["render",Xu],["__file","document-add.vue"]]),ed={name:"DocumentChecked"},td=n("7a23"),nd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},rd=(0,td.createElementVNode)("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320h165.504zM832 384H576V128H192v768h640V384zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm318.4 582.144 180.992-180.992L704.64 510.4 478.4 736.64 320 578.304l45.248-45.312L478.4 646.144z"},null,-1),od=[rd];function ad(e,t,n,r,o,a){return(0,td.openBlock)(),(0,td.createElementBlock)("svg",nd,od)}var id=f(ed,[["render",ad],["__file","document-checked.vue"]]),sd={name:"DocumentCopy"},cd=n("7a23"),ld={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ud=(0,cd.createElementVNode)("path",{fill:"currentColor",d:"M128 320v576h576V320H128zm-32-64h640a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32zM960 96v704a32 32 0 0 1-32 32h-96v-64h64V128H384v64h-64V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32zM256 672h320v64H256v-64zm0-192h320v64H256v-64z"},null,-1),dd=[ud];function pd(e,t,n,r,o,a){return(0,cd.openBlock)(),(0,cd.createElementBlock)("svg",ld,dd)}var fd=f(sd,[["render",pd],["__file","document-copy.vue"]]),hd={name:"DocumentDelete"},md=n("7a23"),vd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},gd=(0,md.createElementVNode)("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320h165.504zM832 384H576V128H192v768h640V384zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm308.992 546.304-90.496-90.624 45.248-45.248 90.56 90.496 90.496-90.432 45.248 45.248-90.496 90.56 90.496 90.496-45.248 45.248-90.496-90.496-90.56 90.496-45.248-45.248 90.496-90.496z"},null,-1),_d=[gd];function yd(e,t,n,r,o,a){return(0,md.openBlock)(),(0,md.createElementBlock)("svg",vd,_d)}var bd=f(hd,[["render",yd],["__file","document-delete.vue"]]),Od={name:"DocumentRemove"},Md=n("7a23"),kd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Cd=(0,Md.createElementVNode)("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320h165.504zM832 384H576V128H192v768h640V384zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm192 512h320v64H352v-64z"},null,-1),wd=[Cd];function Id(e,t,n,r,o,a){return(0,Md.openBlock)(),(0,Md.createElementBlock)("svg",kd,wd)}var Sd=f(Od,[["render",Id],["__file","document-remove.vue"]]),Td={name:"Document"},Ed=n("7a23"),jd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Dd=(0,Ed.createElementVNode)("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),Ld=[Dd];function Ad(e,t,n,r,o,a){return(0,Ed.openBlock)(),(0,Ed.createElementBlock)("svg",jd,Ld)}var Nd=f(Td,[["render",Ad],["__file","document.vue"]]),xd={name:"Download"},Rd=n("7a23"),Pd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Ud=(0,Rd.createElementVNode)("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64zm384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64v450.304z"},null,-1),Vd=[Ud];function Bd(e,t,n,r,o,a){return(0,Rd.openBlock)(),(0,Rd.createElementBlock)("svg",Pd,Vd)}var Fd=f(xd,[["render",Bd],["__file","download.vue"]]),Gd={name:"Drizzling"},zd=n("7a23"),Hd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Yd=(0,zd.createElementVNode)("path",{fill:"currentColor",d:"m739.328 291.328-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 97.28 78.72 175.936 175.808 175.936h400a192 192 0 0 0 35.776-380.672zM959.552 480a256 256 0 0 1-256 256h-400A239.808 239.808 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 959.552 480zM288 800h64v64h-64v-64zm192 0h64v64h-64v-64zm-96 96h64v64h-64v-64zm192 0h64v64h-64v-64zm96-96h64v64h-64v-64z"},null,-1),qd=[Yd];function Wd(e,t,n,r,o,a){return(0,zd.openBlock)(),(0,zd.createElementBlock)("svg",Hd,qd)}var Kd=f(Gd,[["render",Wd],["__file","drizzling.vue"]]),$d={name:"EditPen"},Jd=n("7a23"),Qd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Xd=(0,Jd.createElementVNode)("path",{fill:"currentColor",d:"m199.04 672.64 193.984 112 224-387.968-193.92-112-224 388.032zm-23.872 60.16 32.896 148.288 144.896-45.696L175.168 732.8zM455.04 229.248l193.92 112 56.704-98.112-193.984-112-56.64 98.112zM104.32 708.8l384-665.024 304.768 175.936L409.152 884.8h.064l-248.448 78.336L104.32 708.8zm384 254.272v-64h448v64h-448z"},null,-1),Zd=[Xd];function ep(e,t,n,r,o,a){return(0,Jd.openBlock)(),(0,Jd.createElementBlock)("svg",Qd,Zd)}var tp=f($d,[["render",ep],["__file","edit-pen.vue"]]),np={name:"Edit"},rp=n("7a23"),op={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ap=(0,rp.createElementVNode)("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640V512z"},null,-1),ip=(0,rp.createElementVNode)("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"},null,-1),sp=[ap,ip];function cp(e,t,n,r,o,a){return(0,rp.openBlock)(),(0,rp.createElementBlock)("svg",op,sp)}var lp=f(np,[["render",cp],["__file","edit.vue"]]),up={name:"ElemeFilled"},dp=n("7a23"),pp={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},fp=(0,dp.createElementVNode)("path",{fill:"currentColor",d:"M176 64h672c61.824 0 112 50.176 112 112v672a112 112 0 0 1-112 112H176A112 112 0 0 1 64 848V176c0-61.824 50.176-112 112-112zm150.528 173.568c-152.896 99.968-196.544 304.064-97.408 456.96a330.688 330.688 0 0 0 456.96 96.64c9.216-5.888 17.6-11.776 25.152-18.56a18.24 18.24 0 0 0 4.224-24.32L700.352 724.8a47.552 47.552 0 0 0-65.536-14.272A234.56 234.56 0 0 1 310.592 641.6C240 533.248 271.104 387.968 379.456 316.48a234.304 234.304 0 0 1 276.352 15.168c1.664.832 2.56 2.56 3.392 4.224 5.888 8.384 3.328 19.328-5.12 25.216L456.832 489.6a47.552 47.552 0 0 0-14.336 65.472l16 24.384c5.888 8.384 16.768 10.88 25.216 5.056l308.224-199.936a19.584 19.584 0 0 0 6.72-23.488v-.896c-4.992-9.216-10.048-17.6-15.104-26.88-99.968-151.168-304.064-194.88-456.96-95.744zM786.88 504.704l-62.208 40.32c-8.32 5.888-10.88 16.768-4.992 25.216L760 632.32c5.888 8.448 16.768 11.008 25.152 5.12l31.104-20.16a55.36 55.36 0 0 0 16-76.48l-20.224-31.04a19.52 19.52 0 0 0-25.152-5.12z"},null,-1),hp=[fp];function mp(e,t,n,r,o,a){return(0,dp.openBlock)(),(0,dp.createElementBlock)("svg",pp,hp)}var vp=f(up,[["render",mp],["__file","eleme-filled.vue"]]),gp={name:"Eleme"},_p=n("7a23"),yp={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},bp=(0,_p.createElementVNode)("path",{fill:"currentColor",d:"M300.032 188.8c174.72-113.28 408-63.36 522.24 109.44 5.76 10.56 11.52 20.16 17.28 30.72v.96a22.4 22.4 0 0 1-7.68 26.88l-352.32 228.48c-9.6 6.72-22.08 3.84-28.8-5.76l-18.24-27.84a54.336 54.336 0 0 1 16.32-74.88l225.6-146.88c9.6-6.72 12.48-19.2 5.76-28.8-.96-1.92-1.92-3.84-3.84-4.8a267.84 267.84 0 0 0-315.84-17.28c-123.84 81.6-159.36 247.68-78.72 371.52a268.096 268.096 0 0 0 370.56 78.72 54.336 54.336 0 0 1 74.88 16.32l17.28 26.88c5.76 9.6 3.84 21.12-4.8 27.84-8.64 7.68-18.24 14.4-28.8 21.12a377.92 377.92 0 0 1-522.24-110.4c-113.28-174.72-63.36-408 111.36-522.24zm526.08 305.28a22.336 22.336 0 0 1 28.8 5.76l23.04 35.52a63.232 63.232 0 0 1-18.24 87.36l-35.52 23.04c-9.6 6.72-22.08 3.84-28.8-5.76l-46.08-71.04c-6.72-9.6-3.84-22.08 5.76-28.8l71.04-46.08z"},null,-1),Op=[bp];function Mp(e,t,n,r,o,a){return(0,_p.openBlock)(),(0,_p.createElementBlock)("svg",yp,Op)}var kp=f(gp,[["render",Mp],["__file","eleme.vue"]]),Cp={name:"ElementPlus"},wp=n("7a23"),Ip={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Sp=(0,wp.createElementVNode)("path",{fill:"currentColor",d:"M839.7 734.7c0 33.3-17.9 41-17.9 41S519.7 949.8 499.2 960c-10.2 5.1-20.5 5.1-30.7 0 0 0-314.9-184.3-325.1-192-5.1-5.1-10.2-12.8-12.8-20.5V368.6c0-17.9 20.5-28.2 20.5-28.2L466 158.6c12.8-5.1 25.6-5.1 38.4 0 0 0 279 161.3 309.8 179.2 17.9 7.7 28.2 25.6 25.6 46.1-.1-5-.1 317.5-.1 350.8zM714.2 371.2c-64-35.8-217.6-125.4-217.6-125.4-7.7-5.1-20.5-5.1-30.7 0L217.6 389.1s-17.9 10.2-17.9 23v297c0 5.1 5.1 12.8 7.7 17.9 7.7 5.1 256 148.5 256 148.5 7.7 5.1 17.9 5.1 25.6 0 15.4-7.7 250.9-145.9 250.9-145.9s12.8-5.1 12.8-30.7v-74.2l-276.5 169v-64c0-17.9 7.7-30.7 20.5-46.1L745 535c5.1-7.7 10.2-20.5 10.2-30.7v-66.6l-279 169v-69.1c0-15.4 5.1-30.7 17.9-38.4l220.1-128zM919 135.7c0-5.1-5.1-7.7-7.7-7.7h-58.9V66.6c0-5.1-5.1-5.1-10.2-5.1l-30.7 5.1c-5.1 0-5.1 2.6-5.1 5.1V128h-56.3c-5.1 0-5.1 5.1-7.7 5.1v38.4h69.1v64c0 5.1 5.1 5.1 10.2 5.1l30.7-5.1c5.1 0 5.1-2.6 5.1-5.1v-56.3h64l-2.5-38.4z"},null,-1),Tp=[Sp];function Ep(e,t,n,r,o,a){return(0,wp.openBlock)(),(0,wp.createElementBlock)("svg",Ip,Tp)}var jp=f(Cp,[["render",Ep],["__file","element-plus.vue"]]),Dp={name:"Expand"},Lp=n("7a23"),Ap={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Np=(0,Lp.createElementVNode)("path",{fill:"currentColor",d:"M128 192h768v128H128V192zm0 256h512v128H128V448zm0 256h768v128H128V704zm576-352 192 160-192 128V352z"},null,-1),xp=[Np];function Rp(e,t,n,r,o,a){return(0,Lp.openBlock)(),(0,Lp.createElementBlock)("svg",Ap,xp)}var Pp=f(Dp,[["render",Rp],["__file","expand.vue"]]),Up={name:"Failed"},Vp=n("7a23"),Bp={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Fp=(0,Vp.createElementVNode)("path",{fill:"currentColor",d:"m557.248 608 135.744-135.744-45.248-45.248-135.68 135.744-135.808-135.68-45.248 45.184L466.752 608l-135.68 135.68 45.184 45.312L512 653.248l135.744 135.744 45.248-45.248L557.312 608zM704 192h160v736H160V192h160v64h384v-64zm-320 0V96h256v96H384z"},null,-1),Gp=[Fp];function zp(e,t,n,r,o,a){return(0,Vp.openBlock)(),(0,Vp.createElementBlock)("svg",Bp,Gp)}var Hp=f(Up,[["render",zp],["__file","failed.vue"]]),Yp={name:"Female"},qp=n("7a23"),Wp={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Kp=(0,qp.createElementVNode)("path",{fill:"currentColor",d:"M512 640a256 256 0 1 0 0-512 256 256 0 0 0 0 512zm0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640z"},null,-1),$p=(0,qp.createElementVNode)("path",{fill:"currentColor",d:"M512 640q32 0 32 32v256q0 32-32 32t-32-32V672q0-32 32-32z"},null,-1),Jp=(0,qp.createElementVNode)("path",{fill:"currentColor",d:"M352 800h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32z"},null,-1),Qp=[Kp,$p,Jp];function Xp(e,t,n,r,o,a){return(0,qp.openBlock)(),(0,qp.createElementBlock)("svg",Wp,Qp)}var Zp=f(Yp,[["render",Xp],["__file","female.vue"]]),ef={name:"Files"},tf=n("7a23"),nf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},rf=(0,tf.createElementVNode)("path",{fill:"currentColor",d:"M128 384v448h768V384H128zm-32-64h832a32 32 0 0 1 32 32v512a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32zm64-128h704v64H160zm96-128h512v64H256z"},null,-1),of=[rf];function af(e,t,n,r,o,a){return(0,tf.openBlock)(),(0,tf.createElementBlock)("svg",nf,of)}var sf=f(ef,[["render",af],["__file","files.vue"]]),cf={name:"Film"},lf=n("7a23"),uf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},df=(0,lf.createElementVNode)("path",{fill:"currentColor",d:"M160 160v704h704V160H160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32z"},null,-1),pf=(0,lf.createElementVNode)("path",{fill:"currentColor",d:"M320 288V128h64v352h256V128h64v160h160v64H704v128h160v64H704v128h160v64H704v160h-64V544H384v352h-64V736H128v-64h192V544H128v-64h192V352H128v-64h192z"},null,-1),ff=[df,pf];function hf(e,t,n,r,o,a){return(0,lf.openBlock)(),(0,lf.createElementBlock)("svg",uf,ff)}var mf=f(cf,[["render",hf],["__file","film.vue"]]),vf={name:"Filter"},gf=n("7a23"),_f={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},yf=(0,gf.createElementVNode)("path",{fill:"currentColor",d:"M384 523.392V928a32 32 0 0 0 46.336 28.608l192-96A32 32 0 0 0 640 832V523.392l280.768-343.104a32 32 0 1 0-49.536-40.576l-288 352A32 32 0 0 0 576 512v300.224l-128 64V512a32 32 0 0 0-7.232-20.288L195.52 192H704a32 32 0 1 0 0-64H128a32 32 0 0 0-24.768 52.288L384 523.392z"},null,-1),bf=[yf];function Of(e,t,n,r,o,a){return(0,gf.openBlock)(),(0,gf.createElementBlock)("svg",_f,bf)}var Mf=f(vf,[["render",Of],["__file","filter.vue"]]),kf={name:"Finished"},Cf=n("7a23"),wf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},If=(0,Cf.createElementVNode)("path",{fill:"currentColor",d:"M280.768 753.728 691.456 167.04a32 32 0 1 1 52.416 36.672L314.24 817.472a32 32 0 0 1-45.44 7.296l-230.4-172.8a32 32 0 0 1 38.4-51.2l203.968 152.96zM736 448a32 32 0 1 1 0-64h192a32 32 0 1 1 0 64H736zM608 640a32 32 0 0 1 0-64h319.936a32 32 0 1 1 0 64H608zM480 832a32 32 0 1 1 0-64h447.936a32 32 0 1 1 0 64H480z"},null,-1),Sf=[If];function Tf(e,t,n,r,o,a){return(0,Cf.openBlock)(),(0,Cf.createElementBlock)("svg",wf,Sf)}var Ef=f(kf,[["render",Tf],["__file","finished.vue"]]),jf={name:"FirstAidKit"},Df=n("7a23"),Lf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Af=(0,Df.createElementVNode)("path",{fill:"currentColor",d:"M192 256a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V320a64 64 0 0 0-64-64H192zm0-64h640a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H192A128 128 0 0 1 64 768V320a128 128 0 0 1 128-128z"},null,-1),Nf=(0,Df.createElementVNode)("path",{fill:"currentColor",d:"M544 512h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96v-96a32 32 0 0 1 64 0v96zM352 128v64h320v-64H352zm-32-64h384a32 32 0 0 1 32 32v128a32 32 0 0 1-32 32H320a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32z"},null,-1),xf=[Af,Nf];function Rf(e,t,n,r,o,a){return(0,Df.openBlock)(),(0,Df.createElementBlock)("svg",Lf,xf)}var Pf=f(jf,[["render",Rf],["__file","first-aid-kit.vue"]]),Uf={name:"Flag"},Vf=n("7a23"),Bf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Ff=(0,Vf.createElementVNode)("path",{fill:"currentColor",d:"M288 128h608L736 384l160 256H288v320h-96V64h96v64z"},null,-1),Gf=[Ff];function zf(e,t,n,r,o,a){return(0,Vf.openBlock)(),(0,Vf.createElementBlock)("svg",Bf,Gf)}var Hf=f(Uf,[["render",zf],["__file","flag.vue"]]),Yf={name:"Fold"},qf=n("7a23"),Wf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Kf=(0,qf.createElementVNode)("path",{fill:"currentColor",d:"M896 192H128v128h768V192zm0 256H384v128h512V448zm0 256H128v128h768V704zM320 384 128 512l192 128V384z"},null,-1),$f=[Kf];function Jf(e,t,n,r,o,a){return(0,qf.openBlock)(),(0,qf.createElementBlock)("svg",Wf,$f)}var Qf=f(Yf,[["render",Jf],["__file","fold.vue"]]),Xf={name:"FolderAdd"},Zf=n("7a23"),eh={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},th=(0,Zf.createElementVNode)("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192H128zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32zm384 416V416h64v128h128v64H544v128h-64V608H352v-64h128z"},null,-1),nh=[th];function rh(e,t,n,r,o,a){return(0,Zf.openBlock)(),(0,Zf.createElementBlock)("svg",eh,nh)}var oh=f(Xf,[["render",rh],["__file","folder-add.vue"]]),ah={name:"FolderChecked"},ih=n("7a23"),sh={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ch=(0,ih.createElementVNode)("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192H128zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32zm414.08 502.144 180.992-180.992L736.32 494.4 510.08 720.64l-158.4-158.336 45.248-45.312L510.08 630.144z"},null,-1),lh=[ch];function uh(e,t,n,r,o,a){return(0,ih.openBlock)(),(0,ih.createElementBlock)("svg",sh,lh)}var dh=f(ah,[["render",uh],["__file","folder-checked.vue"]]),ph={name:"FolderDelete"},fh=n("7a23"),hh={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},mh=(0,fh.createElementVNode)("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192H128zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32zm370.752 448-90.496-90.496 45.248-45.248L512 530.752l90.496-90.496 45.248 45.248L557.248 576l90.496 90.496-45.248 45.248L512 621.248l-90.496 90.496-45.248-45.248L466.752 576z"},null,-1),vh=[mh];function gh(e,t,n,r,o,a){return(0,fh.openBlock)(),(0,fh.createElementBlock)("svg",hh,vh)}var _h=f(ph,[["render",gh],["__file","folder-delete.vue"]]),yh={name:"FolderOpened"},bh=n("7a23"),Oh={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Mh=(0,bh.createElementVNode)("path",{fill:"currentColor",d:"M878.08 448H241.92l-96 384h636.16l96-384zM832 384v-64H485.76L357.504 192H128v448l57.92-231.744A32 32 0 0 1 216.96 384H832zm-24.96 512H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h287.872l128.384 128H864a32 32 0 0 1 32 32v96h23.04a32 32 0 0 1 31.04 39.744l-112 448A32 32 0 0 1 807.04 896z"},null,-1),kh=[Mh];function Ch(e,t,n,r,o,a){return(0,bh.openBlock)(),(0,bh.createElementBlock)("svg",Oh,kh)}var wh=f(yh,[["render",Ch],["__file","folder-opened.vue"]]),Ih={name:"FolderRemove"},Sh=n("7a23"),Th={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Eh=(0,Sh.createElementVNode)("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192H128zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32zm256 416h320v64H352v-64z"},null,-1),jh=[Eh];function Dh(e,t,n,r,o,a){return(0,Sh.openBlock)(),(0,Sh.createElementBlock)("svg",Th,jh)}var Lh=f(Ih,[["render",Dh],["__file","folder-remove.vue"]]),Ah={name:"Folder"},Nh=n("7a23"),xh={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Rh=(0,Nh.createElementVNode)("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192H128zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32z"},null,-1),Ph=[Rh];function Uh(e,t,n,r,o,a){return(0,Nh.openBlock)(),(0,Nh.createElementBlock)("svg",xh,Ph)}var Vh=f(Ah,[["render",Uh],["__file","folder.vue"]]),Bh={name:"Food"},Fh=n("7a23"),Gh={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},zh=(0,Fh.createElementVNode)("path",{fill:"currentColor",d:"M128 352.576V352a288 288 0 0 1 491.072-204.224 192 192 0 0 1 274.24 204.48 64 64 0 0 1 57.216 74.24C921.6 600.512 850.048 710.656 736 756.992V800a96 96 0 0 1-96 96H384a96 96 0 0 1-96-96v-43.008c-114.048-46.336-185.6-156.48-214.528-330.496A64 64 0 0 1 128 352.64zm64-.576h64a160 160 0 0 1 320 0h64a224 224 0 0 0-448 0zm128 0h192a96 96 0 0 0-192 0zm439.424 0h68.544A128.256 128.256 0 0 0 704 192c-15.36 0-29.952 2.688-43.52 7.616 11.328 18.176 20.672 37.76 27.84 58.304A64.128 64.128 0 0 1 759.424 352zM672 768H352v32a32 32 0 0 0 32 32h256a32 32 0 0 0 32-32v-32zm-342.528-64h365.056c101.504-32.64 165.76-124.928 192.896-288H136.576c27.136 163.072 91.392 255.36 192.896 288z"},null,-1),Hh=[zh];function Yh(e,t,n,r,o,a){return(0,Fh.openBlock)(),(0,Fh.createElementBlock)("svg",Gh,Hh)}var qh=f(Bh,[["render",Yh],["__file","food.vue"]]),Wh={name:"Football"},Kh=n("7a23"),$h={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Jh=(0,Kh.createElementVNode)("path",{fill:"currentColor",d:"M512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896zm0-64a384 384 0 1 0 0-768 384 384 0 0 0 0 768z"},null,-1),Qh=(0,Kh.createElementVNode)("path",{fill:"currentColor",d:"M186.816 268.288c16-16.384 31.616-31.744 46.976-46.08 17.472 30.656 39.808 58.112 65.984 81.28l-32.512 56.448a385.984 385.984 0 0 1-80.448-91.648zm653.696-5.312a385.92 385.92 0 0 1-83.776 96.96l-32.512-56.384a322.923 322.923 0 0 0 68.48-85.76c15.552 14.08 31.488 29.12 47.808 45.184zM465.984 445.248l11.136-63.104a323.584 323.584 0 0 0 69.76 0l11.136 63.104a387.968 387.968 0 0 1-92.032 0zm-62.72-12.8A381.824 381.824 0 0 1 320 396.544l32-55.424a319.885 319.885 0 0 0 62.464 27.712l-11.2 63.488zm300.8-35.84a381.824 381.824 0 0 1-83.328 35.84l-11.2-63.552A319.885 319.885 0 0 0 672 341.184l32 55.424zm-520.768 364.8a385.92 385.92 0 0 1 83.968-97.28l32.512 56.32c-26.88 23.936-49.856 52.352-67.52 84.032-16-13.44-32.32-27.712-48.96-43.072zm657.536.128a1442.759 1442.759 0 0 1-49.024 43.072 321.408 321.408 0 0 0-67.584-84.16l32.512-56.32c33.216 27.456 61.696 60.352 84.096 97.408zM465.92 578.752a387.968 387.968 0 0 1 92.032 0l-11.136 63.104a323.584 323.584 0 0 0-69.76 0l-11.136-63.104zm-62.72 12.8 11.2 63.552a319.885 319.885 0 0 0-62.464 27.712L320 627.392a381.824 381.824 0 0 1 83.264-35.84zm300.8 35.84-32 55.424a318.272 318.272 0 0 0-62.528-27.712l11.2-63.488c29.44 8.64 57.28 20.736 83.264 35.776z"},null,-1),Xh=[Jh,Qh];function Zh(e,t,n,r,o,a){return(0,Kh.openBlock)(),(0,Kh.createElementBlock)("svg",$h,Xh)}var em=f(Wh,[["render",Zh],["__file","football.vue"]]),tm={name:"ForkSpoon"},nm=n("7a23"),rm={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},om=(0,nm.createElementVNode)("path",{fill:"currentColor",d:"M256 410.304V96a32 32 0 0 1 64 0v314.304a96 96 0 0 0 64-90.56V96a32 32 0 0 1 64 0v223.744a160 160 0 0 1-128 156.8V928a32 32 0 1 1-64 0V476.544a160 160 0 0 1-128-156.8V96a32 32 0 0 1 64 0v223.744a96 96 0 0 0 64 90.56zM672 572.48C581.184 552.128 512 446.848 512 320c0-141.44 85.952-256 192-256s192 114.56 192 256c0 126.848-69.184 232.128-160 252.48V928a32 32 0 1 1-64 0V572.48zM704 512c66.048 0 128-82.56 128-192s-61.952-192-128-192-128 82.56-128 192 61.952 192 128 192z"},null,-1),am=[om];function im(e,t,n,r,o,a){return(0,nm.openBlock)(),(0,nm.createElementBlock)("svg",rm,am)}var sm=f(tm,[["render",im],["__file","fork-spoon.vue"]]),cm={name:"Fries"},lm=n("7a23"),um={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},dm=(0,lm.createElementVNode)("path",{fill:"currentColor",d:"M608 224v-64a32 32 0 0 0-64 0v336h26.88A64 64 0 0 0 608 484.096V224zm101.12 160A64 64 0 0 0 672 395.904V384h64V224a32 32 0 1 0-64 0v160h37.12zm74.88 0a92.928 92.928 0 0 1 91.328 110.08l-60.672 323.584A96 96 0 0 1 720.32 896H303.68a96 96 0 0 1-94.336-78.336L148.672 494.08A92.928 92.928 0 0 1 240 384h-16V224a96 96 0 0 1 188.608-25.28A95.744 95.744 0 0 1 480 197.44V160a96 96 0 0 1 188.608-25.28A96 96 0 0 1 800 224v160h-16zM670.784 512a128 128 0 0 1-99.904 48H453.12a128 128 0 0 1-99.84-48H352v-1.536a128.128 128.128 0 0 1-9.984-14.976L314.88 448H240a28.928 28.928 0 0 0-28.48 34.304L241.088 640h541.824l29.568-157.696A28.928 28.928 0 0 0 784 448h-74.88l-27.136 47.488A132.405 132.405 0 0 1 672 510.464V512h-1.216zM480 288a32 32 0 0 0-64 0v196.096A64 64 0 0 0 453.12 496H480V288zm-128 96V224a32 32 0 0 0-64 0v160h64-37.12A64 64 0 0 1 352 395.904zm-98.88 320 19.072 101.888A32 32 0 0 0 303.68 832h416.64a32 32 0 0 0 31.488-26.112L770.88 704H253.12z"},null,-1),pm=[dm];function fm(e,t,n,r,o,a){return(0,lm.openBlock)(),(0,lm.createElementBlock)("svg",um,pm)}var hm=f(cm,[["render",fm],["__file","fries.vue"]]),mm={name:"FullScreen"},vm=n("7a23"),gm={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_m=(0,vm.createElementVNode)("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),ym=[_m];function bm(e,t,n,r,o,a){return(0,vm.openBlock)(),(0,vm.createElementBlock)("svg",gm,ym)}var Om=f(mm,[["render",bm],["__file","full-screen.vue"]]),Mm={name:"GobletFull"},km=n("7a23"),Cm={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},wm=(0,km.createElementVNode)("path",{fill:"currentColor",d:"M256 320h512c0-78.592-12.608-142.4-36.928-192h-434.24C269.504 192.384 256 256.256 256 320zm503.936 64H264.064a256.128 256.128 0 0 0 495.872 0zM544 638.4V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.4A320 320 0 0 1 192 320c0-85.632 21.312-170.944 64-256h512c42.688 64.32 64 149.632 64 256a320 320 0 0 1-288 318.4z"},null,-1),Im=[wm];function Sm(e,t,n,r,o,a){return(0,km.openBlock)(),(0,km.createElementBlock)("svg",Cm,Im)}var Tm=f(Mm,[["render",Sm],["__file","goblet-full.vue"]]),Em={name:"GobletSquareFull"},jm=n("7a23"),Dm={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Lm=(0,jm.createElementVNode)("path",{fill:"currentColor",d:"M256 270.912c10.048 6.72 22.464 14.912 28.992 18.624a220.16 220.16 0 0 0 114.752 30.72c30.592 0 49.408-9.472 91.072-41.152l.64-.448c52.928-40.32 82.368-55.04 132.288-54.656 55.552.448 99.584 20.8 142.72 57.408l1.536 1.28V128H256v142.912zm.96 76.288C266.368 482.176 346.88 575.872 512 576c157.44.064 237.952-85.056 253.248-209.984a952.32 952.32 0 0 1-40.192-35.712c-32.704-27.776-63.36-41.92-101.888-42.24-31.552-.256-50.624 9.28-93.12 41.6l-.576.448c-52.096 39.616-81.024 54.208-129.792 54.208-54.784 0-100.48-13.376-142.784-37.056zM480 638.848C250.624 623.424 192 442.496 192 319.68V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v224c0 122.816-58.624 303.68-288 318.912V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.848z"},null,-1),Am=[Lm];function Nm(e,t,n,r,o,a){return(0,jm.openBlock)(),(0,jm.createElementBlock)("svg",Dm,Am)}var xm=f(Em,[["render",Nm],["__file","goblet-square-full.vue"]]),Rm={name:"GobletSquare"},Pm=n("7a23"),Um={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Vm=(0,Pm.createElementVNode)("path",{fill:"currentColor",d:"M544 638.912V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.848C250.624 623.424 192 442.496 192 319.68V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v224c0 122.816-58.624 303.68-288 318.912zM256 319.68c0 149.568 80 256.192 256 256.256C688.128 576 768 469.568 768 320V128H256v191.68z"},null,-1),Bm=[Vm];function Fm(e,t,n,r,o,a){return(0,Pm.openBlock)(),(0,Pm.createElementBlock)("svg",Um,Bm)}var Gm=f(Rm,[["render",Fm],["__file","goblet-square.vue"]]),zm={name:"Goblet"},Hm=n("7a23"),Ym={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},qm=(0,Hm.createElementVNode)("path",{fill:"currentColor",d:"M544 638.4V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.4A320 320 0 0 1 192 320c0-85.632 21.312-170.944 64-256h512c42.688 64.32 64 149.632 64 256a320 320 0 0 1-288 318.4zM256 320a256 256 0 1 0 512 0c0-78.592-12.608-142.4-36.928-192h-434.24C269.504 192.384 256 256.256 256 320z"},null,-1),Wm=[qm];function Km(e,t,n,r,o,a){return(0,Hm.openBlock)(),(0,Hm.createElementBlock)("svg",Ym,Wm)}var $m=f(zm,[["render",Km],["__file","goblet.vue"]]),Jm={name:"GoldMedal"},Qm=n("7a23"),Xm={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},Zm=(0,Qm.createElementVNode)("path",{fill:"currentColor",d:"m772.13 452.84 53.86-351.81c1.32-10.01-1.17-18.68-7.49-26.02S804.35 64 795.01 64H228.99v-.01h-.06c-9.33 0-17.15 3.67-23.49 11.01s-8.83 16.01-7.49 26.02l53.87 351.89C213.54 505.73 193.59 568.09 192 640c2 90.67 33.17 166.17 93.5 226.5S421.33 957.99 512 960c90.67-2 166.17-33.17 226.5-93.5 60.33-60.34 91.49-135.83 93.5-226.5-1.59-71.94-21.56-134.32-59.87-187.16zM640.01 128h117.02l-39.01 254.02c-20.75-10.64-40.74-19.73-59.94-27.28-5.92-3-11.95-5.8-18.08-8.41V128h.01zM576 128v198.76c-13.18-2.58-26.74-4.43-40.67-5.55-8.07-.8-15.85-1.2-23.33-1.2-10.54 0-21.09.66-31.64 1.96a359.844 359.844 0 0 0-32.36 4.79V128h128zm-192 0h.04v218.3c-6.22 2.66-12.34 5.5-18.36 8.56-19.13 7.54-39.02 16.6-59.66 27.16L267.01 128H384zm308.99 692.99c-48 48-108.33 73-180.99 75.01-72.66-2.01-132.99-27.01-180.99-75.01S258.01 712.66 256 640c2.01-72.66 27.01-132.99 75.01-180.99 19.67-19.67 41.41-35.47 65.22-47.41 38.33-15.04 71.15-23.92 98.44-26.65 5.07-.41 10.2-.7 15.39-.88.63-.01 1.28-.03 1.91-.03.66 0 1.35.03 2.02.04 5.11.17 10.15.46 15.13.86 27.4 2.71 60.37 11.65 98.91 26.79 23.71 11.93 45.36 27.69 64.96 47.29 48 48 73 108.33 75.01 180.99-2.01 72.65-27.01 132.98-75.01 180.98z"},null,-1),ev=(0,Qm.createElementVNode)("path",{fill:"currentColor",d:"M544 480H416v64h64v192h-64v64h192v-64h-64z"},null,-1),tv=[Zm,ev];function nv(e,t,n,r,o,a){return(0,Qm.openBlock)(),(0,Qm.createElementBlock)("svg",Xm,tv)}var rv=f(Jm,[["render",nv],["__file","gold-medal.vue"]]),ov={name:"GoodsFilled"},av=n("7a23"),iv={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},sv=(0,av.createElementVNode)("path",{fill:"currentColor",d:"M192 352h640l64 544H128l64-544zm128 224h64V448h-64v128zm320 0h64V448h-64v128zM384 288h-64a192 192 0 1 1 384 0h-64a128 128 0 1 0-256 0z"},null,-1),cv=[sv];function lv(e,t,n,r,o,a){return(0,av.openBlock)(),(0,av.createElementBlock)("svg",iv,cv)}var uv=f(ov,[["render",lv],["__file","goods-filled.vue"]]),dv={name:"Goods"},pv=n("7a23"),fv={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},hv=(0,pv.createElementVNode)("path",{fill:"currentColor",d:"M320 288v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4h131.072a32 32 0 0 1 31.808 28.8l57.6 576a32 32 0 0 1-31.808 35.2H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320zm64 0h256v-22.336C640 189.248 582.272 128 512 128c-70.272 0-128 61.248-128 137.664v22.4zm-64 64H217.92l-51.2 512h690.56l-51.264-512H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0v-96z"},null,-1),mv=[hv];function vv(e,t,n,r,o,a){return(0,pv.openBlock)(),(0,pv.createElementBlock)("svg",fv,mv)}var gv=f(dv,[["render",vv],["__file","goods.vue"]]),_v={name:"Grape"},yv=n("7a23"),bv={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Ov=(0,yv.createElementVNode)("path",{fill:"currentColor",d:"M544 195.2a160 160 0 0 1 96 60.8 160 160 0 1 1 146.24 254.976 160 160 0 0 1-128 224 160 160 0 1 1-292.48 0 160 160 0 0 1-128-224A160 160 0 1 1 384 256a160 160 0 0 1 96-60.8V128h-64a32 32 0 0 1 0-64h192a32 32 0 0 1 0 64h-64v67.2zM512 448a96 96 0 1 0 0-192 96 96 0 0 0 0 192zm-256 0a96 96 0 1 0 0-192 96 96 0 0 0 0 192zm128 224a96 96 0 1 0 0-192 96 96 0 0 0 0 192zm128 224a96 96 0 1 0 0-192 96 96 0 0 0 0 192zm128-224a96 96 0 1 0 0-192 96 96 0 0 0 0 192zm128-224a96 96 0 1 0 0-192 96 96 0 0 0 0 192z"},null,-1),Mv=[Ov];function kv(e,t,n,r,o,a){return(0,yv.openBlock)(),(0,yv.createElementBlock)("svg",bv,Mv)}var Cv=f(_v,[["render",kv],["__file","grape.vue"]]),wv={name:"Grid"},Iv=n("7a23"),Sv={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Tv=(0,Iv.createElementVNode)("path",{fill:"currentColor",d:"M640 384v256H384V384h256zm64 0h192v256H704V384zm-64 512H384V704h256v192zm64 0V704h192v192H704zm-64-768v192H384V128h256zm64 0h192v192H704V128zM320 384v256H128V384h192zm0 512H128V704h192v192zm0-768v192H128V128h192z"},null,-1),Ev=[Tv];function jv(e,t,n,r,o,a){return(0,Iv.openBlock)(),(0,Iv.createElementBlock)("svg",Sv,Ev)}var Dv=f(wv,[["render",jv],["__file","grid.vue"]]),Lv={name:"Guide"},Av=n("7a23"),Nv={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},xv=(0,Av.createElementVNode)("path",{fill:"currentColor",d:"M640 608h-64V416h64v192zm0 160v160a32 32 0 0 1-32 32H416a32 32 0 0 1-32-32V768h64v128h128V768h64zM384 608V416h64v192h-64zm256-352h-64V128H448v128h-64V96a32 32 0 0 1 32-32h192a32 32 0 0 1 32 32v160z"},null,-1),Rv=(0,Av.createElementVNode)("path",{fill:"currentColor",d:"m220.8 256-71.232 80 71.168 80H768V256H220.8zm-14.4-64H800a32 32 0 0 1 32 32v224a32 32 0 0 1-32 32H206.4a32 32 0 0 1-23.936-10.752l-99.584-112a32 32 0 0 1 0-42.496l99.584-112A32 32 0 0 1 206.4 192zm678.784 496-71.104 80H266.816V608h547.2l71.168 80zm-56.768-144H234.88a32 32 0 0 0-32 32v224a32 32 0 0 0 32 32h593.6a32 32 0 0 0 23.936-10.752l99.584-112a32 32 0 0 0 0-42.496l-99.584-112A32 32 0 0 0 828.48 544z"},null,-1),Pv=[xv,Rv];function Uv(e,t,n,r,o,a){return(0,Av.openBlock)(),(0,Av.createElementBlock)("svg",Nv,Pv)}var Vv=f(Lv,[["render",Uv],["__file","guide.vue"]]),Bv={name:"Handbag"},Fv=n("7a23"),Gv={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},zv=(0,Fv.createElementVNode)("path",{fill:"currentColor",d:"M887.01 264.99c-6-5.99-13.67-8.99-23.01-8.99H704c-1.34-54.68-20.01-100.01-56-136s-81.32-54.66-136-56c-54.68 1.34-100.01 20.01-136 56s-54.66 81.32-56 136H160c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.67-8.99 23.01v640c0 9.35 2.99 17.02 8.99 23.01S150.66 960 160 960h704c9.35 0 17.02-2.99 23.01-8.99S896 937.34 896 928V288c0-9.35-2.99-17.02-8.99-23.01zM421.5 165.5c24.32-24.34 54.49-36.84 90.5-37.5 35.99.68 66.16 13.18 90.5 37.5s36.84 54.49 37.5 90.5H384c.68-35.99 13.18-66.16 37.5-90.5zM832 896H192V320h128v128h64V320h256v128h64V320h128v576z"},null,-1),Hv=[zv];function Yv(e,t,n,r,o,a){return(0,Fv.openBlock)(),(0,Fv.createElementBlock)("svg",Gv,Hv)}var qv=f(Bv,[["render",Yv],["__file","handbag.vue"]]),Wv={name:"Headset"},Kv=n("7a23"),$v={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Jv=(0,Kv.createElementVNode)("path",{fill:"currentColor",d:"M896 529.152V512a384 384 0 1 0-768 0v17.152A128 128 0 0 1 320 640v128a128 128 0 1 1-256 0V512a448 448 0 1 1 896 0v256a128 128 0 1 1-256 0V640a128 128 0 0 1 192-110.848zM896 640a64 64 0 0 0-128 0v128a64 64 0 0 0 128 0V640zm-768 0v128a64 64 0 0 0 128 0V640a64 64 0 1 0-128 0z"},null,-1),Qv=[Jv];function Xv(e,t,n,r,o,a){return(0,Kv.openBlock)(),(0,Kv.createElementBlock)("svg",$v,Qv)}var Zv=f(Wv,[["render",Xv],["__file","headset.vue"]]),eg={name:"HelpFilled"},tg=n("7a23"),ng={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},rg=(0,tg.createElementVNode)("path",{fill:"currentColor",d:"M926.784 480H701.312A192.512 192.512 0 0 0 544 322.688V97.216A416.064 416.064 0 0 1 926.784 480zm0 64A416.064 416.064 0 0 1 544 926.784V701.312A192.512 192.512 0 0 0 701.312 544h225.472zM97.28 544h225.472A192.512 192.512 0 0 0 480 701.312v225.472A416.064 416.064 0 0 1 97.216 544zm0-64A416.064 416.064 0 0 1 480 97.216v225.472A192.512 192.512 0 0 0 322.688 480H97.216z"},null,-1),og=[rg];function ag(e,t,n,r,o,a){return(0,tg.openBlock)(),(0,tg.createElementBlock)("svg",ng,og)}var ig=f(eg,[["render",ag],["__file","help-filled.vue"]]),sg={name:"Help"},cg=n("7a23"),lg={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ug=(0,cg.createElementVNode)("path",{fill:"currentColor",d:"m759.936 805.248-90.944-91.008A254.912 254.912 0 0 1 512 768a254.912 254.912 0 0 1-156.992-53.76l-90.944 91.008A382.464 382.464 0 0 0 512 896c94.528 0 181.12-34.176 247.936-90.752zm45.312-45.312A382.464 382.464 0 0 0 896 512c0-94.528-34.176-181.12-90.752-247.936l-91.008 90.944C747.904 398.4 768 452.864 768 512c0 59.136-20.096 113.6-53.76 156.992l91.008 90.944zm-45.312-541.184A382.464 382.464 0 0 0 512 128c-94.528 0-181.12 34.176-247.936 90.752l90.944 91.008A254.912 254.912 0 0 1 512 256c59.136 0 113.6 20.096 156.992 53.76l90.944-91.008zm-541.184 45.312A382.464 382.464 0 0 0 128 512c0 94.528 34.176 181.12 90.752 247.936l91.008-90.944A254.912 254.912 0 0 1 256 512c0-59.136 20.096-113.6 53.76-156.992l-91.008-90.944zm417.28 394.496a194.56 194.56 0 0 0 22.528-22.528C686.912 602.56 704 559.232 704 512a191.232 191.232 0 0 0-67.968-146.56A191.296 191.296 0 0 0 512 320a191.232 191.232 0 0 0-146.56 67.968C337.088 421.44 320 464.768 320 512a191.232 191.232 0 0 0 67.968 146.56C421.44 686.912 464.768 704 512 704c47.296 0 90.56-17.088 124.032-45.44zM512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),dg=[ug];function pg(e,t,n,r,o,a){return(0,cg.openBlock)(),(0,cg.createElementBlock)("svg",lg,dg)}var fg=f(sg,[["render",pg],["__file","help.vue"]]),hg={name:"Hide"},mg=n("7a23"),vg={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},gg=(0,mg.createElementVNode)("path",{fill:"currentColor",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"},null,-1),_g=(0,mg.createElementVNode)("path",{fill:"currentColor",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"},null,-1),yg=[gg,_g];function bg(e,t,n,r,o,a){return(0,mg.openBlock)(),(0,mg.createElementBlock)("svg",vg,yg)}var Og=f(hg,[["render",bg],["__file","hide.vue"]]),Mg={name:"Histogram"},kg=n("7a23"),Cg={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},wg=(0,kg.createElementVNode)("path",{fill:"currentColor",d:"M416 896V128h192v768H416zm-288 0V448h192v448H128zm576 0V320h192v576H704z"},null,-1),Ig=[wg];function Sg(e,t,n,r,o,a){return(0,kg.openBlock)(),(0,kg.createElementBlock)("svg",Cg,Ig)}var Tg=f(Mg,[["render",Sg],["__file","histogram.vue"]]),Eg={name:"HomeFilled"},jg=n("7a23"),Dg={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Lg=(0,jg.createElementVNode)("path",{fill:"currentColor",d:"M512 128 128 447.936V896h255.936V640H640v256h255.936V447.936z"},null,-1),Ag=[Lg];function Ng(e,t,n,r,o,a){return(0,jg.openBlock)(),(0,jg.createElementBlock)("svg",Dg,Ag)}var xg=f(Eg,[["render",Ng],["__file","home-filled.vue"]]),Rg={name:"HotWater"},Pg=n("7a23"),Ug={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Vg=(0,Pg.createElementVNode)("path",{fill:"currentColor",d:"M273.067 477.867h477.866V409.6H273.067v68.267zm0 68.266v51.2A187.733 187.733 0 0 0 460.8 785.067h102.4a187.733 187.733 0 0 0 187.733-187.734v-51.2H273.067zm-34.134-204.8h546.134a34.133 34.133 0 0 1 34.133 34.134v221.866a256 256 0 0 1-256 256H460.8a256 256 0 0 1-256-256V375.467a34.133 34.133 0 0 1 34.133-34.134zM512 34.133a34.133 34.133 0 0 1 34.133 34.134v170.666a34.133 34.133 0 0 1-68.266 0V68.267A34.133 34.133 0 0 1 512 34.133zM375.467 102.4a34.133 34.133 0 0 1 34.133 34.133v102.4a34.133 34.133 0 0 1-68.267 0v-102.4a34.133 34.133 0 0 1 34.134-34.133zm273.066 0a34.133 34.133 0 0 1 34.134 34.133v102.4a34.133 34.133 0 1 1-68.267 0v-102.4a34.133 34.133 0 0 1 34.133-34.133zM170.667 921.668h682.666a34.133 34.133 0 1 1 0 68.267H170.667a34.133 34.133 0 1 1 0-68.267z"},null,-1),Bg=[Vg];function Fg(e,t,n,r,o,a){return(0,Pg.openBlock)(),(0,Pg.createElementBlock)("svg",Ug,Bg)}var Gg=f(Rg,[["render",Fg],["__file","hot-water.vue"]]),zg={name:"House"},Hg=n("7a23"),Yg={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},qg=(0,Hg.createElementVNode)("path",{fill:"currentColor",d:"M192 413.952V896h640V413.952L512 147.328 192 413.952zM139.52 374.4l352-293.312a32 32 0 0 1 40.96 0l352 293.312A32 32 0 0 1 896 398.976V928a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V398.976a32 32 0 0 1 11.52-24.576z"},null,-1),Wg=[qg];function Kg(e,t,n,r,o,a){return(0,Hg.openBlock)(),(0,Hg.createElementBlock)("svg",Yg,Wg)}var $g=f(zg,[["render",Kg],["__file","house.vue"]]),Jg={name:"IceCreamRound"},Qg=n("7a23"),Xg={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Zg=(0,Qg.createElementVNode)("path",{fill:"currentColor",d:"m308.352 489.344 226.304 226.304a32 32 0 0 0 45.248 0L783.552 512A192 192 0 1 0 512 240.448L308.352 444.16a32 32 0 0 0 0 45.248zm135.744 226.304L308.352 851.392a96 96 0 0 1-135.744-135.744l135.744-135.744-45.248-45.248a96 96 0 0 1 0-135.808L466.752 195.2A256 256 0 0 1 828.8 557.248L625.152 760.96a96 96 0 0 1-135.808 0l-45.248-45.248zM398.848 670.4 353.6 625.152 217.856 760.896a32 32 0 0 0 45.248 45.248L398.848 670.4zm248.96-384.64a32 32 0 0 1 0 45.248L466.624 512a32 32 0 1 1-45.184-45.248l180.992-181.056a32 32 0 0 1 45.248 0zm90.496 90.496a32 32 0 0 1 0 45.248L557.248 602.496A32 32 0 1 1 512 557.248l180.992-180.992a32 32 0 0 1 45.312 0z"},null,-1),e_=[Zg];function t_(e,t,n,r,o,a){return(0,Qg.openBlock)(),(0,Qg.createElementBlock)("svg",Xg,e_)}var n_=f(Jg,[["render",t_],["__file","ice-cream-round.vue"]]),r_={name:"IceCreamSquare"},o_=n("7a23"),a_={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},i_=(0,o_.createElementVNode)("path",{fill:"currentColor",d:"M416 640h256a32 32 0 0 0 32-32V160a32 32 0 0 0-32-32H352a32 32 0 0 0-32 32v448a32 32 0 0 0 32 32h64zm192 64v160a96 96 0 0 1-192 0V704h-64a96 96 0 0 1-96-96V160a96 96 0 0 1 96-96h320a96 96 0 0 1 96 96v448a96 96 0 0 1-96 96h-64zm-64 0h-64v160a32 32 0 1 0 64 0V704z"},null,-1),s_=[i_];function c_(e,t,n,r,o,a){return(0,o_.openBlock)(),(0,o_.createElementBlock)("svg",a_,s_)}var l_=f(r_,[["render",c_],["__file","ice-cream-square.vue"]]),u_={name:"IceCream"},d_=n("7a23"),p_={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},f_=(0,d_.createElementVNode)("path",{fill:"currentColor",d:"M128.64 448a208 208 0 0 1 193.536-191.552 224 224 0 0 1 445.248 15.488A208.128 208.128 0 0 1 894.784 448H896L548.8 983.68a32 32 0 0 1-53.248.704L128 448h.64zm64.256 0h286.208a144 144 0 0 0-286.208 0zm351.36 0h286.272a144 144 0 0 0-286.272 0zm-294.848 64 271.808 396.608L778.24 512H249.408zM511.68 352.64a207.872 207.872 0 0 1 189.184-96.192 160 160 0 0 0-314.752 5.632c52.608 12.992 97.28 46.08 125.568 90.56z"},null,-1),h_=[f_];function m_(e,t,n,r,o,a){return(0,d_.openBlock)(),(0,d_.createElementBlock)("svg",p_,h_)}var v_=f(u_,[["render",m_],["__file","ice-cream.vue"]]),g_={name:"IceDrink"},__=n("7a23"),y_={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},b_=(0,__.createElementVNode)("path",{fill:"currentColor",d:"M512 448v128h239.68l16.064-128H512zm-64 0H256.256l16.064 128H448V448zm64-255.36V384h247.744A256.128 256.128 0 0 0 512 192.64zm-64 8.064A256.448 256.448 0 0 0 264.256 384H448V200.704zm64-72.064A320.128 320.128 0 0 1 825.472 384H896a32 32 0 1 1 0 64h-64v1.92l-56.96 454.016A64 64 0 0 1 711.552 960H312.448a64 64 0 0 1-63.488-56.064L192 449.92V448h-64a32 32 0 0 1 0-64h70.528A320.384 320.384 0 0 1 448 135.04V96a96 96 0 0 1 96-96h128a32 32 0 1 1 0 64H544a32 32 0 0 0-32 32v32.64zM743.68 640H280.32l32.128 256h399.104l32.128-256z"},null,-1),O_=[b_];function M_(e,t,n,r,o,a){return(0,__.openBlock)(),(0,__.createElementBlock)("svg",y_,O_)}var k_=f(g_,[["render",M_],["__file","ice-drink.vue"]]),C_={name:"IceTea"},w_=n("7a23"),I_={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},S_=(0,w_.createElementVNode)("path",{fill:"currentColor",d:"M197.696 259.648a320.128 320.128 0 0 1 628.608 0A96 96 0 0 1 896 352v64a96 96 0 0 1-71.616 92.864l-49.408 395.072A64 64 0 0 1 711.488 960H312.512a64 64 0 0 1-63.488-56.064l-49.408-395.072A96 96 0 0 1 128 416v-64a96 96 0 0 1 69.696-92.352zM264.064 256h495.872a256.128 256.128 0 0 0-495.872 0zm495.424 256H264.512l48 384h398.976l48-384zM224 448h576a32 32 0 0 0 32-32v-64a32 32 0 0 0-32-32H224a32 32 0 0 0-32 32v64a32 32 0 0 0 32 32zm160 192h64v64h-64v-64zm192 64h64v64h-64v-64zm-128 64h64v64h-64v-64zm64-192h64v64h-64v-64z"},null,-1),T_=[S_];function E_(e,t,n,r,o,a){return(0,w_.openBlock)(),(0,w_.createElementBlock)("svg",I_,T_)}var j_=f(C_,[["render",E_],["__file","ice-tea.vue"]]),D_={name:"InfoFilled"},L_=n("7a23"),A_={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},N_=(0,L_.createElementVNode)("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),x_=[N_];function R_(e,t,n,r,o,a){return(0,L_.openBlock)(),(0,L_.createElementBlock)("svg",A_,x_)}var P_=f(D_,[["render",R_],["__file","info-filled.vue"]]),U_={name:"Iphone"},V_=n("7a23"),B_={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},F_=(0,V_.createElementVNode)("path",{fill:"currentColor",d:"M224 768v96.064a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V768H224zm0-64h576V160a64 64 0 0 0-64-64H288a64 64 0 0 0-64 64v544zm32 288a96 96 0 0 1-96-96V128a96 96 0 0 1 96-96h512a96 96 0 0 1 96 96v768a96 96 0 0 1-96 96H256zm304-144a48 48 0 1 1-96 0 48 48 0 0 1 96 0z"},null,-1),G_=[F_];function z_(e,t,n,r,o,a){return(0,V_.openBlock)(),(0,V_.createElementBlock)("svg",B_,G_)}var H_=f(U_,[["render",z_],["__file","iphone.vue"]]),Y_={name:"Key"},q_=n("7a23"),W_={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},K_=(0,q_.createElementVNode)("path",{fill:"currentColor",d:"M448 456.064V96a32 32 0 0 1 32-32.064L672 64a32 32 0 0 1 0 64H512v128h160a32 32 0 0 1 0 64H512v128a256 256 0 1 1-64 8.064zM512 896a192 192 0 1 0 0-384 192 192 0 0 0 0 384z"},null,-1),$_=[K_];function J_(e,t,n,r,o,a){return(0,q_.openBlock)(),(0,q_.createElementBlock)("svg",W_,$_)}var Q_=f(Y_,[["render",J_],["__file","key.vue"]]),X_={name:"KnifeFork"},Z_=n("7a23"),ey={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ty=(0,Z_.createElementVNode)("path",{fill:"currentColor",d:"M256 410.56V96a32 32 0 0 1 64 0v314.56A96 96 0 0 0 384 320V96a32 32 0 0 1 64 0v224a160 160 0 0 1-128 156.8V928a32 32 0 1 1-64 0V476.8A160 160 0 0 1 128 320V96a32 32 0 0 1 64 0v224a96 96 0 0 0 64 90.56zm384-250.24V544h126.72c-3.328-78.72-12.928-147.968-28.608-207.744-14.336-54.528-46.848-113.344-98.112-175.872zM640 608v320a32 32 0 1 1-64 0V64h64c85.312 89.472 138.688 174.848 160 256 21.312 81.152 32 177.152 32 288H640z"},null,-1),ny=[ty];function ry(e,t,n,r,o,a){return(0,Z_.openBlock)(),(0,Z_.createElementBlock)("svg",ey,ny)}var oy=f(X_,[["render",ry],["__file","knife-fork.vue"]]),ay={name:"Lightning"},iy=n("7a23"),sy={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},cy=(0,iy.createElementVNode)("path",{fill:"currentColor",d:"M288 671.36v64.128A239.808 239.808 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 736 734.016v-64.768a192 192 0 0 0 3.328-377.92l-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 91.968 70.464 167.36 160.256 175.232z"},null,-1),ly=(0,iy.createElementVNode)("path",{fill:"currentColor",d:"M416 736a32 32 0 0 1-27.776-47.872l128-224a32 32 0 1 1 55.552 31.744L471.168 672H608a32 32 0 0 1 27.776 47.872l-128 224a32 32 0 1 1-55.68-31.744L552.96 736H416z"},null,-1),uy=[cy,ly];function dy(e,t,n,r,o,a){return(0,iy.openBlock)(),(0,iy.createElementBlock)("svg",sy,uy)}var py=f(ay,[["render",dy],["__file","lightning.vue"]]),fy={name:"Link"},hy=n("7a23"),my={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},vy=(0,hy.createElementVNode)("path",{fill:"currentColor",d:"M715.648 625.152 670.4 579.904l90.496-90.56c75.008-74.944 85.12-186.368 22.656-248.896-62.528-62.464-173.952-52.352-248.96 22.656L444.16 353.6l-45.248-45.248 90.496-90.496c100.032-99.968 251.968-110.08 339.456-22.656 87.488 87.488 77.312 239.424-22.656 339.456l-90.496 90.496zm-90.496 90.496-90.496 90.496C434.624 906.112 282.688 916.224 195.2 828.8c-87.488-87.488-77.312-239.424 22.656-339.456l90.496-90.496 45.248 45.248-90.496 90.56c-75.008 74.944-85.12 186.368-22.656 248.896 62.528 62.464 173.952 52.352 248.96-22.656l90.496-90.496 45.248 45.248zm0-362.048 45.248 45.248L398.848 670.4 353.6 625.152 625.152 353.6z"},null,-1),gy=[vy];function _y(e,t,n,r,o,a){return(0,hy.openBlock)(),(0,hy.createElementBlock)("svg",my,gy)}var yy=f(fy,[["render",_y],["__file","link.vue"]]),by={name:"List"},Oy=n("7a23"),My={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ky=(0,Oy.createElementVNode)("path",{fill:"currentColor",d:"M704 192h160v736H160V192h160v64h384v-64zM288 512h448v-64H288v64zm0 256h448v-64H288v64zm96-576V96h256v96H384z"},null,-1),Cy=[ky];function wy(e,t,n,r,o,a){return(0,Oy.openBlock)(),(0,Oy.createElementBlock)("svg",My,Cy)}var Iy=f(by,[["render",wy],["__file","list.vue"]]),Sy={name:"Loading"},Ty=n("7a23"),Ey={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},jy=(0,Ty.createElementVNode)("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),Dy=[jy];function Ly(e,t,n,r,o,a){return(0,Ty.openBlock)(),(0,Ty.createElementBlock)("svg",Ey,Dy)}var Ay=f(Sy,[["render",Ly],["__file","loading.vue"]]),Ny={name:"LocationFilled"},xy=n("7a23"),Ry={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Py=(0,xy.createElementVNode)("path",{fill:"currentColor",d:"M512 928c23.936 0 117.504-68.352 192.064-153.152C803.456 661.888 864 535.808 864 416c0-189.632-155.84-320-352-320S160 226.368 160 416c0 120.32 60.544 246.4 159.936 359.232C394.432 859.84 488 928 512 928zm0-435.2a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm0 140.8a204.8 204.8 0 1 1 0-409.6 204.8 204.8 0 0 1 0 409.6z"},null,-1),Uy=[Py];function Vy(e,t,n,r,o,a){return(0,xy.openBlock)(),(0,xy.createElementBlock)("svg",Ry,Uy)}var By=f(Ny,[["render",Vy],["__file","location-filled.vue"]]),Fy={name:"LocationInformation"},Gy=n("7a23"),zy={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Hy=(0,Gy.createElementVNode)("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32z"},null,-1),Yy=(0,Gy.createElementVNode)("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416zM512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544z"},null,-1),qy=(0,Gy.createElementVNode)("path",{fill:"currentColor",d:"M512 512a96 96 0 1 0 0-192 96 96 0 0 0 0 192zm0 64a160 160 0 1 1 0-320 160 160 0 0 1 0 320z"},null,-1),Wy=[Hy,Yy,qy];function Ky(e,t,n,r,o,a){return(0,Gy.openBlock)(),(0,Gy.createElementBlock)("svg",zy,Wy)}var $y=f(Fy,[["render",Ky],["__file","location-information.vue"]]),Jy={name:"Location"},Qy=n("7a23"),Xy={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Zy=(0,Qy.createElementVNode)("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416zM512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544z"},null,-1),eb=(0,Qy.createElementVNode)("path",{fill:"currentColor",d:"M512 512a96 96 0 1 0 0-192 96 96 0 0 0 0 192zm0 64a160 160 0 1 1 0-320 160 160 0 0 1 0 320z"},null,-1),tb=[Zy,eb];function nb(e,t,n,r,o,a){return(0,Qy.openBlock)(),(0,Qy.createElementBlock)("svg",Xy,tb)}var rb=f(Jy,[["render",nb],["__file","location.vue"]]),ob={name:"Lock"},ab=n("7a23"),ib={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},sb=(0,ab.createElementVNode)("path",{fill:"currentColor",d:"M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32H224zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96z"},null,-1),cb=(0,ab.createElementVNode)("path",{fill:"currentColor",d:"M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32zm192-160v-64a192 192 0 1 0-384 0v64h384zM512 64a256 256 0 0 1 256 256v128H256V320A256 256 0 0 1 512 64z"},null,-1),lb=[sb,cb];function ub(e,t,n,r,o,a){return(0,ab.openBlock)(),(0,ab.createElementBlock)("svg",ib,lb)}var db=f(ob,[["render",ub],["__file","lock.vue"]]),pb={name:"Lollipop"},fb=n("7a23"),hb={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},mb=(0,fb.createElementVNode)("path",{fill:"currentColor",d:"M513.28 448a64 64 0 1 1 76.544 49.728A96 96 0 0 0 768 448h64a160 160 0 0 1-320 0h1.28zm-126.976-29.696a256 256 0 1 0 43.52-180.48A256 256 0 0 1 832 448h-64a192 192 0 0 0-381.696-29.696zm105.664 249.472L285.696 874.048a96 96 0 0 1-135.68-135.744l206.208-206.272a320 320 0 1 1 135.744 135.744zm-54.464-36.032a321.92 321.92 0 0 1-45.248-45.248L195.2 783.552a32 32 0 1 0 45.248 45.248l197.056-197.12z"},null,-1),vb=[mb];function gb(e,t,n,r,o,a){return(0,fb.openBlock)(),(0,fb.createElementBlock)("svg",hb,vb)}var _b=f(pb,[["render",gb],["__file","lollipop.vue"]]),yb={name:"MagicStick"},bb=n("7a23"),Ob={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Mb=(0,bb.createElementVNode)("path",{fill:"currentColor",d:"M512 64h64v192h-64V64zm0 576h64v192h-64V640zM160 480v-64h192v64H160zm576 0v-64h192v64H736zM249.856 199.04l45.248-45.184L430.848 289.6 385.6 334.848 249.856 199.104zM657.152 606.4l45.248-45.248 135.744 135.744-45.248 45.248L657.152 606.4zM114.048 923.2 68.8 877.952l316.8-316.8 45.248 45.248-316.8 316.8zM702.4 334.848 657.152 289.6l135.744-135.744 45.248 45.248L702.4 334.848z"},null,-1),kb=[Mb];function Cb(e,t,n,r,o,a){return(0,bb.openBlock)(),(0,bb.createElementBlock)("svg",Ob,kb)}var wb=f(yb,[["render",Cb],["__file","magic-stick.vue"]]),Ib={name:"Magnet"},Sb=n("7a23"),Tb={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Eb=(0,Sb.createElementVNode)("path",{fill:"currentColor",d:"M832 320V192H704v320a192 192 0 1 1-384 0V192H192v128h128v64H192v128a320 320 0 0 0 640 0V384H704v-64h128zM640 512V128h256v384a384 384 0 1 1-768 0V128h256v384a128 128 0 1 0 256 0z"},null,-1),jb=[Eb];function Db(e,t,n,r,o,a){return(0,Sb.openBlock)(),(0,Sb.createElementBlock)("svg",Tb,jb)}var Lb=f(Ib,[["render",Db],["__file","magnet.vue"]]),Ab={name:"Male"},Nb=n("7a23"),xb={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Rb=(0,Nb.createElementVNode)("path",{fill:"currentColor",d:"M399.5 849.5a225 225 0 1 0 0-450 225 225 0 0 0 0 450zm0 56.25a281.25 281.25 0 1 1 0-562.5 281.25 281.25 0 0 1 0 562.5zm253.125-787.5h225q28.125 0 28.125 28.125T877.625 174.5h-225q-28.125 0-28.125-28.125t28.125-28.125z"},null,-1),Pb=(0,Nb.createElementVNode)("path",{fill:"currentColor",d:"M877.625 118.25q28.125 0 28.125 28.125v225q0 28.125-28.125 28.125T849.5 371.375v-225q0-28.125 28.125-28.125z"},null,-1),Ub=(0,Nb.createElementVNode)("path",{fill:"currentColor",d:"M604.813 458.9 565.1 419.131l292.613-292.668 39.825 39.824z"},null,-1),Vb=[Rb,Pb,Ub];function Bb(e,t,n,r,o,a){return(0,Nb.openBlock)(),(0,Nb.createElementBlock)("svg",xb,Vb)}var Fb=f(Ab,[["render",Bb],["__file","male.vue"]]),Gb={name:"Management"},zb=n("7a23"),Hb={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Yb=(0,zb.createElementVNode)("path",{fill:"currentColor",d:"M576 128v288l96-96 96 96V128h128v768H320V128h256zm-448 0h128v768H128V128z"},null,-1),qb=[Yb];function Wb(e,t,n,r,o,a){return(0,zb.openBlock)(),(0,zb.createElementBlock)("svg",Hb,qb)}var Kb=f(Gb,[["render",Wb],["__file","management.vue"]]),$b={name:"MapLocation"},Jb=n("7a23"),Qb={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Xb=(0,Jb.createElementVNode)("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416zM512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544z"},null,-1),Zb=(0,Jb.createElementVNode)("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256zm345.6 192L960 960H672v-64H352v64H64l102.4-256h691.2zm-68.928 0H235.328l-76.8 192h706.944l-76.8-192z"},null,-1),eO=[Xb,Zb];function tO(e,t,n,r,o,a){return(0,Jb.openBlock)(),(0,Jb.createElementBlock)("svg",Qb,eO)}var nO=f($b,[["render",tO],["__file","map-location.vue"]]),rO={name:"Medal"},oO=n("7a23"),aO={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},iO=(0,oO.createElementVNode)("path",{fill:"currentColor",d:"M512 896a256 256 0 1 0 0-512 256 256 0 0 0 0 512zm0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640z"},null,-1),sO=(0,oO.createElementVNode)("path",{fill:"currentColor",d:"M576 128H448v200a286.72 286.72 0 0 1 64-8c19.52 0 40.832 2.688 64 8V128zm64 0v219.648c24.448 9.088 50.56 20.416 78.4 33.92L757.44 128H640zm-256 0H266.624l39.04 253.568c27.84-13.504 53.888-24.832 78.336-33.92V128zM229.312 64h565.376a32 32 0 0 1 31.616 36.864L768 480c-113.792-64-199.104-96-256-96-56.896 0-142.208 32-256 96l-58.304-379.136A32 32 0 0 1 229.312 64z"},null,-1),cO=[iO,sO];function lO(e,t,n,r,o,a){return(0,oO.openBlock)(),(0,oO.createElementBlock)("svg",aO,cO)}var uO=f(rO,[["render",lO],["__file","medal.vue"]]),dO={name:"Memo"},pO=n("7a23"),fO={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},hO=(0,pO.createElementVNode)("path",{fill:"currentColor",d:"M480 320h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32z"},null,-1),mO=(0,pO.createElementVNode)("path",{fill:"currentColor",d:"M887.01 72.99C881.01 67 873.34 64 864 64H160c-9.35 0-17.02 3-23.01 8.99C131 78.99 128 86.66 128 96v832c0 9.35 2.99 17.02 8.99 23.01S150.66 960 160 960h704c9.35 0 17.02-2.99 23.01-8.99S896 937.34 896 928V96c0-9.35-3-17.02-8.99-23.01zM192 896V128h96v768h-96zm640 0H352V128h480v768z"},null,-1),vO=(0,pO.createElementVNode)("path",{fill:"currentColor",d:"M480 512h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32zm0 192h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32z"},null,-1),gO=[hO,mO,vO];function _O(e,t,n,r,o,a){return(0,pO.openBlock)(),(0,pO.createElementBlock)("svg",fO,gO)}var yO=f(dO,[["render",_O],["__file","memo.vue"]]),bO={name:"Menu"},OO=n("7a23"),MO={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},kO=(0,OO.createElementVNode)("path",{fill:"currentColor",d:"M160 448a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32H160zm448 0a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32H608zM160 896a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32H160zm448 0a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32H608z"},null,-1),CO=[kO];function wO(e,t,n,r,o,a){return(0,OO.openBlock)(),(0,OO.createElementBlock)("svg",MO,CO)}var IO=f(bO,[["render",wO],["__file","menu.vue"]]),SO={name:"MessageBox"},TO=n("7a23"),EO={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},jO=(0,TO.createElementVNode)("path",{fill:"currentColor",d:"M288 384h448v64H288v-64zm96-128h256v64H384v-64zM131.456 512H384v128h256V512h252.544L721.856 192H302.144L131.456 512zM896 576H704v128H320V576H128v256h768V576zM275.776 128h472.448a32 32 0 0 1 28.608 17.664l179.84 359.552A32 32 0 0 1 960 519.552V864a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V519.552a32 32 0 0 1 3.392-14.336l179.776-359.552A32 32 0 0 1 275.776 128z"},null,-1),DO=[jO];function LO(e,t,n,r,o,a){return(0,TO.openBlock)(),(0,TO.createElementBlock)("svg",EO,DO)}var AO=f(SO,[["render",LO],["__file","message-box.vue"]]),NO={name:"Message"},xO=n("7a23"),RO={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},PO=(0,xO.createElementVNode)("path",{fill:"currentColor",d:"M128 224v512a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V224H128zm0-64h768a64 64 0 0 1 64 64v512a128 128 0 0 1-128 128H192A128 128 0 0 1 64 736V224a64 64 0 0 1 64-64z"},null,-1),UO=(0,xO.createElementVNode)("path",{fill:"currentColor",d:"M904 224 656.512 506.88a192 192 0 0 1-289.024 0L120 224h784zm-698.944 0 210.56 240.704a128 128 0 0 0 192.704 0L818.944 224H205.056z"},null,-1),VO=[PO,UO];function BO(e,t,n,r,o,a){return(0,xO.openBlock)(),(0,xO.createElementBlock)("svg",RO,VO)}var FO=f(NO,[["render",BO],["__file","message.vue"]]),GO={name:"Mic"},zO=n("7a23"),HO={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},YO=(0,zO.createElementVNode)("path",{fill:"currentColor",d:"M480 704h160a64 64 0 0 0 64-64v-32h-96a32 32 0 0 1 0-64h96v-96h-96a32 32 0 0 1 0-64h96v-96h-96a32 32 0 0 1 0-64h96v-32a64 64 0 0 0-64-64H384a64 64 0 0 0-64 64v32h96a32 32 0 0 1 0 64h-96v96h96a32 32 0 0 1 0 64h-96v96h96a32 32 0 0 1 0 64h-96v32a64 64 0 0 0 64 64h96zm64 64v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768h-96a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64h256a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128h-96z"},null,-1),qO=[YO];function WO(e,t,n,r,o,a){return(0,zO.openBlock)(),(0,zO.createElementBlock)("svg",HO,qO)}var KO=f(GO,[["render",WO],["__file","mic.vue"]]),$O={name:"Microphone"},JO=n("7a23"),QO={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},XO=(0,JO.createElementVNode)("path",{fill:"currentColor",d:"M512 128a128 128 0 0 0-128 128v256a128 128 0 1 0 256 0V256a128 128 0 0 0-128-128zm0-64a192 192 0 0 1 192 192v256a192 192 0 1 1-384 0V256A192 192 0 0 1 512 64zm-32 832v-64a288 288 0 0 1-288-288v-32a32 32 0 0 1 64 0v32a224 224 0 0 0 224 224h64a224 224 0 0 0 224-224v-32a32 32 0 1 1 64 0v32a288 288 0 0 1-288 288v64h64a32 32 0 1 1 0 64H416a32 32 0 1 1 0-64h64z"},null,-1),ZO=[XO];function eM(e,t,n,r,o,a){return(0,JO.openBlock)(),(0,JO.createElementBlock)("svg",QO,ZO)}var tM=f($O,[["render",eM],["__file","microphone.vue"]]),nM={name:"MilkTea"},rM=n("7a23"),oM={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},aM=(0,rM.createElementVNode)("path",{fill:"currentColor",d:"M416 128V96a96 96 0 0 1 96-96h128a32 32 0 1 1 0 64H512a32 32 0 0 0-32 32v32h320a96 96 0 0 1 11.712 191.296l-39.68 581.056A64 64 0 0 1 708.224 960H315.776a64 64 0 0 1-63.872-59.648l-39.616-581.056A96 96 0 0 1 224 128h192zM276.48 320l39.296 576h392.448l4.8-70.784a224.064 224.064 0 0 1 30.016-439.808L747.52 320H276.48zM224 256h576a32 32 0 1 0 0-64H224a32 32 0 0 0 0 64zm493.44 503.872 21.12-309.12a160 160 0 0 0-21.12 309.12z"},null,-1),iM=[aM];function sM(e,t,n,r,o,a){return(0,rM.openBlock)(),(0,rM.createElementBlock)("svg",oM,iM)}var cM=f(nM,[["render",sM],["__file","milk-tea.vue"]]),lM={name:"Minus"},uM=n("7a23"),dM={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},pM=(0,uM.createElementVNode)("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z"},null,-1),fM=[pM];function hM(e,t,n,r,o,a){return(0,uM.openBlock)(),(0,uM.createElementBlock)("svg",dM,fM)}var mM=f(lM,[["render",hM],["__file","minus.vue"]]),vM={name:"Money"},gM=n("7a23"),_M={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},yM=(0,gM.createElementVNode)("path",{fill:"currentColor",d:"M256 640v192h640V384H768v-64h150.976c14.272 0 19.456 1.472 24.64 4.288a29.056 29.056 0 0 1 12.16 12.096c2.752 5.184 4.224 10.368 4.224 24.64v493.952c0 14.272-1.472 19.456-4.288 24.64a29.056 29.056 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H233.024c-14.272 0-19.456-1.472-24.64-4.288a29.056 29.056 0 0 1-12.16-12.096c-2.688-5.184-4.224-10.368-4.224-24.576V640h64z"},null,-1),bM=(0,gM.createElementVNode)("path",{fill:"currentColor",d:"M768 192H128v448h640V192zm64-22.976v493.952c0 14.272-1.472 19.456-4.288 24.64a29.056 29.056 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H105.024c-14.272 0-19.456-1.472-24.64-4.288a29.056 29.056 0 0 1-12.16-12.096C65.536 682.432 64 677.248 64 663.04V169.024c0-14.272 1.472-19.456 4.288-24.64a29.056 29.056 0 0 1 12.096-12.16C85.568 129.536 90.752 128 104.96 128h685.952c14.272 0 19.456 1.472 24.64 4.288a29.056 29.056 0 0 1 12.16 12.096c2.752 5.184 4.224 10.368 4.224 24.64z"},null,-1),OM=(0,gM.createElementVNode)("path",{fill:"currentColor",d:"M448 576a160 160 0 1 1 0-320 160 160 0 0 1 0 320zm0-64a96 96 0 1 0 0-192 96 96 0 0 0 0 192z"},null,-1),MM=[yM,bM,OM];function kM(e,t,n,r,o,a){return(0,gM.openBlock)(),(0,gM.createElementBlock)("svg",_M,MM)}var CM=f(vM,[["render",kM],["__file","money.vue"]]),wM={name:"Monitor"},IM=n("7a23"),SM={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},TM=(0,IM.createElementVNode)("path",{fill:"currentColor",d:"M544 768v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768H192A128 128 0 0 1 64 640V256a128 128 0 0 1 128-128h640a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128H544zM192 192a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H192z"},null,-1),EM=[TM];function jM(e,t,n,r,o,a){return(0,IM.openBlock)(),(0,IM.createElementBlock)("svg",SM,EM)}var DM=f(wM,[["render",jM],["__file","monitor.vue"]]),LM={name:"MoonNight"},AM=n("7a23"),NM={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},xM=(0,AM.createElementVNode)("path",{fill:"currentColor",d:"M384 512a448 448 0 0 1 215.872-383.296A384 384 0 0 0 213.76 640h188.8A448.256 448.256 0 0 1 384 512zM171.136 704a448 448 0 0 1 636.992-575.296A384 384 0 0 0 499.328 704h-328.32z"},null,-1),RM=(0,AM.createElementVNode)("path",{fill:"currentColor",d:"M32 640h960q32 0 32 32t-32 32H32q-32 0-32-32t32-32zm128 128h384a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64zm160 127.68 224 .256a32 32 0 0 1 32 32V928a32 32 0 0 1-32 32l-224-.384a32 32 0 0 1-32-32v-.064a32 32 0 0 1 32-32z"},null,-1),PM=[xM,RM];function UM(e,t,n,r,o,a){return(0,AM.openBlock)(),(0,AM.createElementBlock)("svg",NM,PM)}var VM=f(LM,[["render",UM],["__file","moon-night.vue"]]),BM={name:"Moon"},FM=n("7a23"),GM={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},zM=(0,FM.createElementVNode)("path",{fill:"currentColor",d:"M240.448 240.448a384 384 0 1 0 559.424 525.696 448 448 0 0 1-542.016-542.08 390.592 390.592 0 0 0-17.408 16.384zm181.056 362.048a384 384 0 0 0 525.632 16.384A448 448 0 1 1 405.056 76.8a384 384 0 0 0 16.448 525.696z"},null,-1),HM=[zM];function YM(e,t,n,r,o,a){return(0,FM.openBlock)(),(0,FM.createElementBlock)("svg",GM,HM)}var qM=f(BM,[["render",YM],["__file","moon.vue"]]),WM={name:"MoreFilled"},KM=n("7a23"),$M={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},JM=(0,KM.createElementVNode)("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),QM=[JM];function XM(e,t,n,r,o,a){return(0,KM.openBlock)(),(0,KM.createElementBlock)("svg",$M,QM)}var ZM=f(WM,[["render",XM],["__file","more-filled.vue"]]),ek={name:"More"},tk=n("7a23"),nk={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},rk=(0,tk.createElementVNode)("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),ok=[rk];function ak(e,t,n,r,o,a){return(0,tk.openBlock)(),(0,tk.createElementBlock)("svg",nk,ok)}var ik=f(ek,[["render",ak],["__file","more.vue"]]),sk={name:"MostlyCloudy"},ck=n("7a23"),lk={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},uk=(0,ck.createElementVNode)("path",{fill:"currentColor",d:"M737.216 357.952 704 349.824l-11.776-32a192.064 192.064 0 0 0-367.424 23.04l-8.96 39.04-39.04 8.96A192.064 192.064 0 0 0 320 768h368a207.808 207.808 0 0 0 207.808-208 208.32 208.32 0 0 0-158.592-202.048zm15.168-62.208A272.32 272.32 0 0 1 959.744 560a271.808 271.808 0 0 1-271.552 272H320a256 256 0 0 1-57.536-505.536 256.128 256.128 0 0 1 489.92-30.72z"},null,-1),dk=[uk];function pk(e,t,n,r,o,a){return(0,ck.openBlock)(),(0,ck.createElementBlock)("svg",lk,dk)}var fk=f(sk,[["render",pk],["__file","mostly-cloudy.vue"]]),hk={name:"Mouse"},mk=n("7a23"),vk={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},gk=(0,mk.createElementVNode)("path",{fill:"currentColor",d:"M438.144 256c-68.352 0-92.736 4.672-117.76 18.112-20.096 10.752-35.52 26.176-46.272 46.272C260.672 345.408 256 369.792 256 438.144v275.712c0 68.352 4.672 92.736 18.112 117.76 10.752 20.096 26.176 35.52 46.272 46.272C345.408 891.328 369.792 896 438.144 896h147.712c68.352 0 92.736-4.672 117.76-18.112 20.096-10.752 35.52-26.176 46.272-46.272C763.328 806.592 768 782.208 768 713.856V438.144c0-68.352-4.672-92.736-18.112-117.76a110.464 110.464 0 0 0-46.272-46.272C678.592 260.672 654.208 256 585.856 256H438.144zm0-64h147.712c85.568 0 116.608 8.96 147.904 25.6 31.36 16.768 55.872 41.344 72.576 72.64C823.104 321.536 832 352.576 832 438.08v275.84c0 85.504-8.96 116.544-25.6 147.84a174.464 174.464 0 0 1-72.64 72.576C702.464 951.104 671.424 960 585.92 960H438.08c-85.504 0-116.544-8.96-147.84-25.6a174.464 174.464 0 0 1-72.64-72.704c-16.768-31.296-25.664-62.336-25.664-147.84v-275.84c0-85.504 8.96-116.544 25.6-147.84a174.464 174.464 0 0 1 72.768-72.576c31.232-16.704 62.272-25.6 147.776-25.6z"},null,-1),_k=(0,mk.createElementVNode)("path",{fill:"currentColor",d:"M512 320q32 0 32 32v128q0 32-32 32t-32-32V352q0-32 32-32zm32-96a32 32 0 0 1-64 0v-64a32 32 0 0 0-32-32h-96a32 32 0 0 1 0-64h96a96 96 0 0 1 96 96v64z"},null,-1),yk=[gk,_k];function bk(e,t,n,r,o,a){return(0,mk.openBlock)(),(0,mk.createElementBlock)("svg",vk,yk)}var Ok=f(hk,[["render",bk],["__file","mouse.vue"]]),Mk={name:"Mug"},kk=n("7a23"),Ck={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},wk=(0,kk.createElementVNode)("path",{fill:"currentColor",d:"M736 800V160H160v640a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64zm64-544h63.552a96 96 0 0 1 96 96v224a96 96 0 0 1-96 96H800v128a128 128 0 0 1-128 128H224A128 128 0 0 1 96 800V128a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32v128zm0 64v288h63.552a32 32 0 0 0 32-32V352a32 32 0 0 0-32-32H800z"},null,-1),Ik=[wk];function Sk(e,t,n,r,o,a){return(0,kk.openBlock)(),(0,kk.createElementBlock)("svg",Ck,Ik)}var Tk=f(Mk,[["render",Sk],["__file","mug.vue"]]),Ek={name:"MuteNotification"},jk=n("7a23"),Dk={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Lk=(0,jk.createElementVNode)("path",{fill:"currentColor",d:"m241.216 832 63.616-64H768V448c0-42.368-10.24-82.304-28.48-117.504l46.912-47.232C815.36 331.392 832 387.84 832 448v320h96a32 32 0 1 1 0 64H241.216zm-90.24 0H96a32 32 0 1 1 0-64h96V448a320.128 320.128 0 0 1 256-313.6V128a64 64 0 1 1 128 0v6.4a319.552 319.552 0 0 1 171.648 97.088l-45.184 45.44A256 256 0 0 0 256 448v278.336L151.04 832zM448 896h128a64 64 0 0 1-128 0z"},null,-1),Ak=(0,jk.createElementVNode)("path",{fill:"currentColor",d:"M150.72 859.072a32 32 0 0 1-45.44-45.056l704-708.544a32 32 0 0 1 45.44 45.056l-704 708.544z"},null,-1),Nk=[Lk,Ak];function xk(e,t,n,r,o,a){return(0,jk.openBlock)(),(0,jk.createElementBlock)("svg",Dk,Nk)}var Rk=f(Ek,[["render",xk],["__file","mute-notification.vue"]]),Pk={name:"Mute"},Uk=n("7a23"),Vk={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Bk=(0,Uk.createElementVNode)("path",{fill:"currentColor",d:"m412.16 592.128-45.44 45.44A191.232 191.232 0 0 1 320 512V256a192 192 0 1 1 384 0v44.352l-64 64V256a128 128 0 1 0-256 0v256c0 30.336 10.56 58.24 28.16 80.128zm51.968 38.592A128 128 0 0 0 640 512v-57.152l64-64V512a192 192 0 0 1-287.68 166.528l47.808-47.808zM314.88 779.968l46.144-46.08A222.976 222.976 0 0 0 480 768h64a224 224 0 0 0 224-224v-32a32 32 0 1 1 64 0v32a288 288 0 0 1-288 288v64h64a32 32 0 1 1 0 64H416a32 32 0 1 1 0-64h64v-64c-61.44 0-118.4-19.2-165.12-52.032zM266.752 737.6A286.976 286.976 0 0 1 192 544v-32a32 32 0 0 1 64 0v32c0 56.832 21.184 108.8 56.064 148.288L266.752 737.6z"},null,-1),Fk=(0,Uk.createElementVNode)("path",{fill:"currentColor",d:"M150.72 859.072a32 32 0 0 1-45.44-45.056l704-708.544a32 32 0 0 1 45.44 45.056l-704 708.544z"},null,-1),Gk=[Bk,Fk];function zk(e,t,n,r,o,a){return(0,Uk.openBlock)(),(0,Uk.createElementBlock)("svg",Vk,Gk)}var Hk=f(Pk,[["render",zk],["__file","mute.vue"]]),Yk={name:"NoSmoking"},qk=n("7a23"),Wk={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Kk=(0,qk.createElementVNode)("path",{fill:"currentColor",d:"M440.256 576H256v128h56.256l-64 64H224a32 32 0 0 1-32-32V544a32 32 0 0 1 32-32h280.256l-64 64zm143.488 128H704V583.744L775.744 512H928a32 32 0 0 1 32 32v192a32 32 0 0 1-32 32H519.744l64-64zM768 576v128h128V576H768zm-29.696-207.552 45.248 45.248-497.856 497.856-45.248-45.248zM256 64h64v320h-64zM128 192h64v192h-64zM64 512h64v256H64z"},null,-1),$k=[Kk];function Jk(e,t,n,r,o,a){return(0,qk.openBlock)(),(0,qk.createElementBlock)("svg",Wk,$k)}var Qk=f(Yk,[["render",Jk],["__file","no-smoking.vue"]]),Xk={name:"Notebook"},Zk=n("7a23"),eC={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},tC=(0,Zk.createElementVNode)("path",{fill:"currentColor",d:"M192 128v768h640V128H192zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32z"},null,-1),nC=(0,Zk.createElementVNode)("path",{fill:"currentColor",d:"M672 128h64v768h-64zM96 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32zm0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32zm0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32zm0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32z"},null,-1),rC=[tC,nC];function oC(e,t,n,r,o,a){return(0,Zk.openBlock)(),(0,Zk.createElementBlock)("svg",eC,rC)}var aC=f(Xk,[["render",oC],["__file","notebook.vue"]]),iC={name:"Notification"},sC=n("7a23"),cC={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},lC=(0,sC.createElementVNode)("path",{fill:"currentColor",d:"M512 128v64H256a64 64 0 0 0-64 64v512a64 64 0 0 0 64 64h512a64 64 0 0 0 64-64V512h64v256a128 128 0 0 1-128 128H256a128 128 0 0 1-128-128V256a128 128 0 0 1 128-128h256z"},null,-1),uC=(0,sC.createElementVNode)("path",{fill:"currentColor",d:"M768 384a128 128 0 1 0 0-256 128 128 0 0 0 0 256zm0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384z"},null,-1),dC=[lC,uC];function pC(e,t,n,r,o,a){return(0,sC.openBlock)(),(0,sC.createElementBlock)("svg",cC,dC)}var fC=f(iC,[["render",pC],["__file","notification.vue"]]),hC={name:"Odometer"},mC=n("7a23"),vC={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},gC=(0,mC.createElementVNode)("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=(0,mC.createElementVNode)("path",{fill:"currentColor",d:"M192 512a320 320 0 1 1 640 0 32 32 0 1 1-64 0 256 256 0 1 0-512 0 32 32 0 0 1-64 0z"},null,-1),yC=(0,mC.createElementVNode)("path",{fill:"currentColor",d:"M570.432 627.84A96 96 0 1 1 509.568 608l60.992-187.776A32 32 0 1 1 631.424 440l-60.992 187.776zM502.08 734.464a32 32 0 1 0 19.84-60.928 32 32 0 0 0-19.84 60.928z"},null,-1),bC=[gC,_C,yC];function OC(e,t,n,r,o,a){return(0,mC.openBlock)(),(0,mC.createElementBlock)("svg",vC,bC)}var MC=f(hC,[["render",OC],["__file","odometer.vue"]]),kC={name:"OfficeBuilding"},CC=n("7a23"),wC={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},IC=(0,CC.createElementVNode)("path",{fill:"currentColor",d:"M192 128v704h384V128H192zm-32-64h448a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32z"},null,-1),SC=(0,CC.createElementVNode)("path",{fill:"currentColor",d:"M256 256h256v64H256v-64zm0 192h256v64H256v-64zm0 192h256v64H256v-64zm384-128h128v64H640v-64zm0 128h128v64H640v-64zM64 832h896v64H64v-64z"},null,-1),TC=(0,CC.createElementVNode)("path",{fill:"currentColor",d:"M640 384v448h192V384H640zm-32-64h256a32 32 0 0 1 32 32v512a32 32 0 0 1-32 32H608a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32z"},null,-1),EC=[IC,SC,TC];function jC(e,t,n,r,o,a){return(0,CC.openBlock)(),(0,CC.createElementBlock)("svg",wC,EC)}var DC=f(kC,[["render",jC],["__file","office-building.vue"]]),LC={name:"Open"},AC=n("7a23"),NC={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},xC=(0,AC.createElementVNode)("path",{fill:"currentColor",d:"M329.956 257.138a254.862 254.862 0 0 0 0 509.724h364.088a254.862 254.862 0 0 0 0-509.724H329.956zm0-72.818h364.088a327.68 327.68 0 1 1 0 655.36H329.956a327.68 327.68 0 1 1 0-655.36z"},null,-1),RC=(0,AC.createElementVNode)("path",{fill:"currentColor",d:"M694.044 621.227a109.227 109.227 0 1 0 0-218.454 109.227 109.227 0 0 0 0 218.454zm0 72.817a182.044 182.044 0 1 1 0-364.088 182.044 182.044 0 0 1 0 364.088z"},null,-1),PC=[xC,RC];function UC(e,t,n,r,o,a){return(0,AC.openBlock)(),(0,AC.createElementBlock)("svg",NC,PC)}var VC=f(LC,[["render",UC],["__file","open.vue"]]),BC={name:"Operation"},FC=n("7a23"),GC={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},zC=(0,FC.createElementVNode)("path",{fill:"currentColor",d:"M389.44 768a96.064 96.064 0 0 1 181.12 0H896v64H570.56a96.064 96.064 0 0 1-181.12 0H128v-64h261.44zm192-288a96.064 96.064 0 0 1 181.12 0H896v64H762.56a96.064 96.064 0 0 1-181.12 0H128v-64h453.44zm-320-288a96.064 96.064 0 0 1 181.12 0H896v64H442.56a96.064 96.064 0 0 1-181.12 0H128v-64h133.44z"},null,-1),HC=[zC];function YC(e,t,n,r,o,a){return(0,FC.openBlock)(),(0,FC.createElementBlock)("svg",GC,HC)}var qC=f(BC,[["render",YC],["__file","operation.vue"]]),WC={name:"Opportunity"},KC=n("7a23"),$C={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},JC=(0,KC.createElementVNode)("path",{fill:"currentColor",d:"M384 960v-64h192.064v64H384zm448-544a350.656 350.656 0 0 1-128.32 271.424C665.344 719.04 640 763.776 640 813.504V832H320v-14.336c0-48-19.392-95.36-57.216-124.992a351.552 351.552 0 0 1-128.448-344.256c25.344-136.448 133.888-248.128 269.76-276.48A352.384 352.384 0 0 1 832 416zm-544 32c0-132.288 75.904-224 192-224v-64c-154.432 0-256 122.752-256 288h64z"},null,-1),QC=[JC];function XC(e,t,n,r,o,a){return(0,KC.openBlock)(),(0,KC.createElementBlock)("svg",$C,QC)}var ZC=f(WC,[["render",XC],["__file","opportunity.vue"]]),ew={name:"Orange"},tw=n("7a23"),nw={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},rw=(0,tw.createElementVNode)("path",{fill:"currentColor",d:"M544 894.72a382.336 382.336 0 0 0 215.936-89.472L577.024 622.272c-10.24 6.016-21.248 10.688-33.024 13.696v258.688zm261.248-134.784A382.336 382.336 0 0 0 894.656 544H635.968c-3.008 11.776-7.68 22.848-13.696 33.024l182.976 182.912zM894.656 480a382.336 382.336 0 0 0-89.408-215.936L622.272 446.976c6.016 10.24 10.688 21.248 13.696 33.024h258.688zm-134.72-261.248A382.336 382.336 0 0 0 544 129.344v258.688c11.776 3.008 22.848 7.68 33.024 13.696l182.912-182.976zM480 129.344a382.336 382.336 0 0 0-215.936 89.408l182.912 182.976c10.24-6.016 21.248-10.688 33.024-13.696V129.344zm-261.248 134.72A382.336 382.336 0 0 0 129.344 480h258.688c3.008-11.776 7.68-22.848 13.696-33.024L218.752 264.064zM129.344 544a382.336 382.336 0 0 0 89.408 215.936l182.976-182.912A127.232 127.232 0 0 1 388.032 544H129.344zm134.72 261.248A382.336 382.336 0 0 0 480 894.656V635.968a127.232 127.232 0 0 1-33.024-13.696L264.064 805.248zM512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896zm0-384a64 64 0 1 0 0-128 64 64 0 0 0 0 128z"},null,-1),ow=[rw];function aw(e,t,n,r,o,a){return(0,tw.openBlock)(),(0,tw.createElementBlock)("svg",nw,ow)}var iw=f(ew,[["render",aw],["__file","orange.vue"]]),sw={name:"Paperclip"},cw=n("7a23"),lw={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},uw=(0,cw.createElementVNode)("path",{fill:"currentColor",d:"M602.496 240.448A192 192 0 1 1 874.048 512l-316.8 316.8A256 256 0 0 1 195.2 466.752L602.496 59.456l45.248 45.248L240.448 512A192 192 0 0 0 512 783.552l316.8-316.8a128 128 0 1 0-181.056-181.056L353.6 579.904a32 32 0 1 0 45.248 45.248l294.144-294.144 45.312 45.248L444.096 670.4a96 96 0 1 1-135.744-135.744l294.144-294.208z"},null,-1),dw=[uw];function pw(e,t,n,r,o,a){return(0,cw.openBlock)(),(0,cw.createElementBlock)("svg",lw,dw)}var fw=f(sw,[["render",pw],["__file","paperclip.vue"]]),hw={name:"PartlyCloudy"},mw=n("7a23"),vw={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},gw=(0,mw.createElementVNode)("path",{fill:"currentColor",d:"M598.4 895.872H328.192a256 256 0 0 1-34.496-510.528A352 352 0 1 1 598.4 895.872zm-271.36-64h272.256a288 288 0 1 0-248.512-417.664L335.04 445.44l-34.816 3.584a192 192 0 0 0 26.88 382.848z"},null,-1),_w=(0,mw.createElementVNode)("path",{fill:"currentColor",d:"M139.84 501.888a256 256 0 1 1 417.856-277.12c-17.728 2.176-38.208 8.448-61.504 18.816A192 192 0 1 0 189.12 460.48a6003.84 6003.84 0 0 0-49.28 41.408z"},null,-1),yw=[gw,_w];function bw(e,t,n,r,o,a){return(0,mw.openBlock)(),(0,mw.createElementBlock)("svg",vw,yw)}var Ow=f(hw,[["render",bw],["__file","partly-cloudy.vue"]]),Mw={name:"Pear"},kw=n("7a23"),Cw={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ww=(0,kw.createElementVNode)("path",{fill:"currentColor",d:"M542.336 258.816a443.255 443.255 0 0 0-9.024 25.088 32 32 0 1 1-60.8-20.032l1.088-3.328a162.688 162.688 0 0 0-122.048 131.392l-17.088 102.72-20.736 15.36C256.192 552.704 224 610.88 224 672c0 120.576 126.4 224 288 224s288-103.424 288-224c0-61.12-32.192-119.296-89.728-161.92l-20.736-15.424-17.088-102.72a162.688 162.688 0 0 0-130.112-133.12zm-40.128-66.56c7.936-15.552 16.576-30.08 25.92-43.776 23.296-33.92 49.408-59.776 78.528-77.12a32 32 0 1 1 32.704 55.04c-20.544 12.224-40.064 31.552-58.432 58.304a316.608 316.608 0 0 0-9.792 15.104 226.688 226.688 0 0 1 164.48 181.568l12.8 77.248C819.456 511.36 864 587.392 864 672c0 159.04-157.568 288-352 288S160 831.04 160 672c0-84.608 44.608-160.64 115.584-213.376l12.8-77.248a226.624 226.624 0 0 1 213.76-189.184z"},null,-1),Iw=[ww];function Sw(e,t,n,r,o,a){return(0,kw.openBlock)(),(0,kw.createElementBlock)("svg",Cw,Iw)}var Tw=f(Mw,[["render",Sw],["__file","pear.vue"]]),Ew={name:"PhoneFilled"},jw=n("7a23"),Dw={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Lw=(0,jw.createElementVNode)("path",{fill:"currentColor",d:"M199.232 125.568 90.624 379.008a32 32 0 0 0 6.784 35.2l512.384 512.384a32 32 0 0 0 35.2 6.784l253.44-108.608a32 32 0 0 0 10.048-52.032L769.6 633.92a32 32 0 0 0-36.928-5.952l-130.176 65.088-271.488-271.552 65.024-130.176a32 32 0 0 0-5.952-36.928L251.2 115.52a32 32 0 0 0-51.968 10.048z"},null,-1),Aw=[Lw];function Nw(e,t,n,r,o,a){return(0,jw.openBlock)(),(0,jw.createElementBlock)("svg",Dw,Aw)}var xw=f(Ew,[["render",Nw],["__file","phone-filled.vue"]]),Rw={name:"Phone"},Pw=n("7a23"),Uw={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Vw=(0,Pw.createElementVNode)("path",{fill:"currentColor",d:"M79.36 432.256 591.744 944.64a32 32 0 0 0 35.2 6.784l253.44-108.544a32 32 0 0 0 9.984-52.032l-153.856-153.92a32 32 0 0 0-36.928-6.016l-69.888 34.944L358.08 394.24l35.008-69.888a32 32 0 0 0-5.952-36.928L233.152 133.568a32 32 0 0 0-52.032 10.048L72.512 397.056a32 32 0 0 0 6.784 35.2zm60.48-29.952 81.536-190.08L325.568 316.48l-24.64 49.216-20.608 41.216 32.576 32.64 271.552 271.552 32.64 32.64 41.216-20.672 49.28-24.576 104.192 104.128-190.08 81.472L139.84 402.304zM512 320v-64a256 256 0 0 1 256 256h-64a192 192 0 0 0-192-192zm0-192V64a448 448 0 0 1 448 448h-64a384 384 0 0 0-384-384z"},null,-1),Bw=[Vw];function Fw(e,t,n,r,o,a){return(0,Pw.openBlock)(),(0,Pw.createElementBlock)("svg",Uw,Bw)}var Gw=f(Rw,[["render",Fw],["__file","phone.vue"]]),zw={name:"PictureFilled"},Hw=n("7a23"),Yw={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},qw=(0,Hw.createElementVNode)("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),Ww=[qw];function Kw(e,t,n,r,o,a){return(0,Hw.openBlock)(),(0,Hw.createElementBlock)("svg",Yw,Ww)}var $w=f(zw,[["render",Kw],["__file","picture-filled.vue"]]),Jw={name:"PictureRounded"},Qw=n("7a23"),Xw={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Zw=(0,Qw.createElementVNode)("path",{fill:"currentColor",d:"M512 128a384 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),eI=(0,Qw.createElementVNode)("path",{fill:"currentColor",d:"M640 288q64 0 64 64t-64 64q-64 0-64-64t64-64zM214.656 790.656l-45.312-45.312 185.664-185.6a96 96 0 0 1 123.712-10.24l138.24 98.688a32 32 0 0 0 39.872-2.176L906.688 422.4l42.624 47.744L699.52 693.696a96 96 0 0 1-119.808 6.592l-138.24-98.752a32 32 0 0 0-41.152 3.456l-185.664 185.6z"},null,-1),tI=[Zw,eI];function nI(e,t,n,r,o,a){return(0,Qw.openBlock)(),(0,Qw.createElementBlock)("svg",Xw,tI)}var rI=f(Jw,[["render",nI],["__file","picture-rounded.vue"]]),oI={name:"Picture"},aI=n("7a23"),iI={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},sI=(0,aI.createElementVNode)("path",{fill:"currentColor",d:"M160 160v704h704V160H160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32z"},null,-1),cI=(0,aI.createElementVNode)("path",{fill:"currentColor",d:"M384 288q64 0 64 64t-64 64q-64 0-64-64t64-64zM185.408 876.992l-50.816-38.912L350.72 556.032a96 96 0 0 1 134.592-17.856l1.856 1.472 122.88 99.136a32 32 0 0 0 44.992-4.864l216-269.888 49.92 39.936-215.808 269.824-.256.32a96 96 0 0 1-135.04 14.464l-122.88-99.072-.64-.512a32 32 0 0 0-44.8 5.952L185.408 876.992z"},null,-1),lI=[sI,cI];function uI(e,t,n,r,o,a){return(0,aI.openBlock)(),(0,aI.createElementBlock)("svg",iI,lI)}var dI=f(oI,[["render",uI],["__file","picture.vue"]]),pI={name:"PieChart"},fI=n("7a23"),hI={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},mI=(0,fI.createElementVNode)("path",{fill:"currentColor",d:"M448 68.48v64.832A384.128 384.128 0 0 0 512 896a384.128 384.128 0 0 0 378.688-320h64.768A448.128 448.128 0 0 1 64 512 448.128 448.128 0 0 1 448 68.48z"},null,-1),vI=(0,fI.createElementVNode)("path",{fill:"currentColor",d:"M576 97.28V448h350.72A384.064 384.064 0 0 0 576 97.28zM512 64V33.152A448 448 0 0 1 990.848 512H512V64z"},null,-1),gI=[mI,vI];function _I(e,t,n,r,o,a){return(0,fI.openBlock)(),(0,fI.createElementBlock)("svg",hI,gI)}var yI=f(pI,[["render",_I],["__file","pie-chart.vue"]]),bI={name:"Place"},OI=n("7a23"),MI={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},kI=(0,OI.createElementVNode)("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384zm0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512z"},null,-1),CI=(0,OI.createElementVNode)("path",{fill:"currentColor",d:"M512 512a32 32 0 0 1 32 32v256a32 32 0 1 1-64 0V544a32 32 0 0 1 32-32z"},null,-1),wI=(0,OI.createElementVNode)("path",{fill:"currentColor",d:"M384 649.088v64.96C269.76 732.352 192 771.904 192 800c0 37.696 139.904 96 320 96s320-58.304 320-96c0-28.16-77.76-67.648-192-85.952v-64.96C789.12 671.04 896 730.368 896 800c0 88.32-171.904 160-384 160s-384-71.68-384-160c0-69.696 106.88-128.96 256-150.912z"},null,-1),II=[kI,CI,wI];function SI(e,t,n,r,o,a){return(0,OI.openBlock)(),(0,OI.createElementBlock)("svg",MI,II)}var TI=f(bI,[["render",SI],["__file","place.vue"]]),EI={name:"Platform"},jI=n("7a23"),DI={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},LI=(0,jI.createElementVNode)("path",{fill:"currentColor",d:"M448 832v-64h128v64h192v64H256v-64h192zM128 704V128h768v576H128z"},null,-1),AI=[LI];function NI(e,t,n,r,o,a){return(0,jI.openBlock)(),(0,jI.createElementBlock)("svg",DI,AI)}var xI=f(EI,[["render",NI],["__file","platform.vue"]]),RI={name:"Plus"},PI=n("7a23"),UI={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},VI=(0,PI.createElementVNode)("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),BI=[VI];function FI(e,t,n,r,o,a){return(0,PI.openBlock)(),(0,PI.createElementBlock)("svg",UI,BI)}var GI=f(RI,[["render",FI],["__file","plus.vue"]]),zI={name:"Pointer"},HI=n("7a23"),YI={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},qI=(0,HI.createElementVNode)("path",{fill:"currentColor",d:"M511.552 128c-35.584 0-64.384 28.8-64.384 64.448v516.48L274.048 570.88a94.272 94.272 0 0 0-112.896-3.456 44.416 44.416 0 0 0-8.96 62.208L332.8 870.4A64 64 0 0 0 384 896h512V575.232a64 64 0 0 0-45.632-61.312l-205.952-61.76A96 96 0 0 1 576 360.192V192.448C576 156.8 547.2 128 511.552 128zM359.04 556.8l24.128 19.2V192.448a128.448 128.448 0 1 1 256.832 0v167.744a32 32 0 0 0 22.784 30.656l206.016 61.76A128 128 0 0 1 960 575.232V896a64 64 0 0 1-64 64H384a128 128 0 0 1-102.4-51.2L101.056 668.032A108.416 108.416 0 0 1 128 512.512a158.272 158.272 0 0 1 185.984 8.32L359.04 556.8z"},null,-1),WI=[qI];function KI(e,t,n,r,o,a){return(0,HI.openBlock)(),(0,HI.createElementBlock)("svg",YI,WI)}var $I=f(zI,[["render",KI],["__file","pointer.vue"]]),JI={name:"Position"},QI=n("7a23"),XI={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ZI=(0,QI.createElementVNode)("path",{fill:"currentColor",d:"m249.6 417.088 319.744 43.072 39.168 310.272L845.12 178.88 249.6 417.088zm-129.024 47.168a32 32 0 0 1-7.68-61.44l777.792-311.04a32 32 0 0 1 41.6 41.6l-310.336 775.68a32 32 0 0 1-61.44-7.808L512 516.992l-391.424-52.736z"},null,-1),eS=[ZI];function tS(e,t,n,r,o,a){return(0,QI.openBlock)(),(0,QI.createElementBlock)("svg",XI,eS)}var nS=f(JI,[["render",tS],["__file","position.vue"]]),rS={name:"Postcard"},oS=n("7a23"),aS={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},iS=(0,oS.createElementVNode)("path",{fill:"currentColor",d:"M160 224a32 32 0 0 0-32 32v512a32 32 0 0 0 32 32h704a32 32 0 0 0 32-32V256a32 32 0 0 0-32-32H160zm0-64h704a96 96 0 0 1 96 96v512a96 96 0 0 1-96 96H160a96 96 0 0 1-96-96V256a96 96 0 0 1 96-96z"},null,-1),sS=(0,oS.createElementVNode)("path",{fill:"currentColor",d:"M704 320a64 64 0 1 1 0 128 64 64 0 0 1 0-128zM288 448h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32zm0 128h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32z"},null,-1),cS=[iS,sS];function lS(e,t,n,r,o,a){return(0,oS.openBlock)(),(0,oS.createElementBlock)("svg",aS,cS)}var uS=f(rS,[["render",lS],["__file","postcard.vue"]]),dS={name:"Pouring"},pS=n("7a23"),fS={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},hS=(0,pS.createElementVNode)("path",{fill:"currentColor",d:"m739.328 291.328-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 97.28 78.72 175.936 175.808 175.936h400a192 192 0 0 0 35.776-380.672zM959.552 480a256 256 0 0 1-256 256h-400A239.808 239.808 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 959.552 480zM224 800a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32zm192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32zm192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32zm192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32z"},null,-1),mS=[hS];function vS(e,t,n,r,o,a){return(0,pS.openBlock)(),(0,pS.createElementBlock)("svg",fS,mS)}var gS=f(dS,[["render",vS],["__file","pouring.vue"]]),_S={name:"Present"},yS=n("7a23"),bS={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},OS=(0,yS.createElementVNode)("path",{fill:"currentColor",d:"M480 896V640H192v-64h288V320H192v576h288zm64 0h288V320H544v256h288v64H544v256zM128 256h768v672a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V256z"},null,-1),MS=(0,yS.createElementVNode)("path",{fill:"currentColor",d:"M96 256h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32z"},null,-1),kS=(0,yS.createElementVNode)("path",{fill:"currentColor",d:"M416 256a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256z"},null,-1),CS=(0,yS.createElementVNode)("path",{fill:"currentColor",d:"M608 256a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256z"},null,-1),wS=[OS,MS,kS,CS];function IS(e,t,n,r,o,a){return(0,yS.openBlock)(),(0,yS.createElementBlock)("svg",bS,wS)}var SS=f(_S,[["render",IS],["__file","present.vue"]]),TS={name:"PriceTag"},ES=n("7a23"),jS={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},DS=(0,ES.createElementVNode)("path",{fill:"currentColor",d:"M224 318.336V896h576V318.336L552.512 115.84a64 64 0 0 0-81.024 0L224 318.336zM593.024 66.304l259.2 212.096A32 32 0 0 1 864 303.168V928a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V303.168a32 32 0 0 1 11.712-24.768l259.2-212.096a128 128 0 0 1 162.112 0z"},null,-1),LS=(0,ES.createElementVNode)("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256z"},null,-1),AS=[DS,LS];function NS(e,t,n,r,o,a){return(0,ES.openBlock)(),(0,ES.createElementBlock)("svg",jS,AS)}var xS=f(TS,[["render",NS],["__file","price-tag.vue"]]),RS={name:"Printer"},PS=n("7a23"),US={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},VS=(0,PS.createElementVNode)("path",{fill:"currentColor",d:"M256 768H105.024c-14.272 0-19.456-1.472-24.64-4.288a29.056 29.056 0 0 1-12.16-12.096C65.536 746.432 64 741.248 64 727.04V379.072c0-42.816 4.48-58.304 12.8-73.984 8.384-15.616 20.672-27.904 36.288-36.288 15.68-8.32 31.168-12.8 73.984-12.8H256V64h512v192h68.928c42.816 0 58.304 4.48 73.984 12.8 15.616 8.384 27.904 20.672 36.288 36.288 8.32 15.68 12.8 31.168 12.8 73.984v347.904c0 14.272-1.472 19.456-4.288 24.64a29.056 29.056 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H768v192H256V768zm64-192v320h384V576H320zm-64 128V512h512v192h128V379.072c0-29.376-1.408-36.48-5.248-43.776a23.296 23.296 0 0 0-10.048-10.048c-7.232-3.84-14.4-5.248-43.776-5.248H187.072c-29.376 0-36.48 1.408-43.776 5.248a23.296 23.296 0 0 0-10.048 10.048c-3.84 7.232-5.248 14.4-5.248 43.776V704h128zm64-448h384V128H320v128zm-64 128h64v64h-64v-64zm128 0h64v64h-64v-64z"},null,-1),BS=[VS];function FS(e,t,n,r,o,a){return(0,PS.openBlock)(),(0,PS.createElementBlock)("svg",US,BS)}var GS=f(RS,[["render",FS],["__file","printer.vue"]]),zS={name:"Promotion"},HS=n("7a23"),YS={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},qS=(0,HS.createElementVNode)("path",{fill:"currentColor",d:"m64 448 832-320-128 704-446.08-243.328L832 192 242.816 545.472 64 448zm256 512V657.024L512 768 320 960z"},null,-1),WS=[qS];function KS(e,t,n,r,o,a){return(0,HS.openBlock)(),(0,HS.createElementBlock)("svg",YS,WS)}var $S=f(zS,[["render",KS],["__file","promotion.vue"]]),JS={name:"QuartzWatch"},QS=n("7a23"),XS={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},ZS=(0,QS.createElementVNode)("path",{fill:"currentColor",d:"M422.02 602.01v-.03c-6.68-5.99-14.35-8.83-23.01-8.51-8.67.32-16.17 3.66-22.5 10.02-6.33 6.36-9.5 13.7-9.5 22.02s3 15.82 8.99 22.5c8.68 8.68 19.02 11.35 31.01 8s19.49-10.85 22.5-22.5c3.01-11.65.51-22.15-7.49-31.49v-.01zM384 512c0-9.35-3-17.02-8.99-23.01-6-5.99-13.66-8.99-23.01-8.99-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.66 8.99 23.01 8.99 9.35 0 17.02-3 23.01-8.99 5.99-6 8.99-13.67 8.99-23.01zm6.53-82.49c11.65 3.01 22.15.51 31.49-7.49h.04c5.99-6.68 8.83-14.34 8.51-23.01-.32-8.67-3.66-16.16-10.02-22.5-6.36-6.33-13.7-9.5-22.02-9.5s-15.82 3-22.5 8.99c-8.68 8.69-11.35 19.02-8 31.01 3.35 11.99 10.85 19.49 22.5 22.5zm242.94 0c11.67-3.03 19.01-10.37 22.02-22.02 3.01-11.65.51-22.15-7.49-31.49h.01c-6.68-5.99-14.18-8.99-22.5-8.99s-15.66 3.16-22.02 9.5c-6.36 6.34-9.7 13.84-10.02 22.5-.32 8.66 2.52 16.33 8.51 23.01 9.32 8.02 19.82 10.52 31.49 7.49zM512 640c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.67 8.99 23.01 8.99 9.35 0 17.02-3 23.01-8.99 5.99-6 8.99-13.66 8.99-23.01s-3-17.02-8.99-23.01c-6-5.99-13.66-8.99-23.01-8.99zm183.01-151.01c-6-5.99-13.66-8.99-23.01-8.99s-17.02 3-23.01 8.99c-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.66 8.99 23.01 8.99s17.02-3 23.01-8.99c5.99-6 8.99-13.67 8.99-23.01 0-9.35-3-17.02-8.99-23.01z"},null,-1),eT=(0,QS.createElementVNode)("path",{fill:"currentColor",d:"M832 512c-2-90.67-33.17-166.17-93.5-226.5-20.43-20.42-42.6-37.49-66.5-51.23V64H352v170.26c-23.9 13.74-46.07 30.81-66.5 51.24-60.33 60.33-91.49 135.83-93.5 226.5 2 90.67 33.17 166.17 93.5 226.5 20.43 20.43 42.6 37.5 66.5 51.24V960h320V789.74c23.9-13.74 46.07-30.81 66.5-51.24 60.33-60.34 91.49-135.83 93.5-226.5zM416 128h192v78.69c-29.85-9.03-61.85-13.93-96-14.69-34.15.75-66.15 5.65-96 14.68V128zm192 768H416v-78.68c29.85 9.03 61.85 13.93 96 14.68 34.15-.75 66.15-5.65 96-14.68V896zm-96-128c-72.66-2.01-132.99-27.01-180.99-75.01S258.01 584.66 256 512c2.01-72.66 27.01-132.99 75.01-180.99S439.34 258.01 512 256c72.66 2.01 132.99 27.01 180.99 75.01S765.99 439.34 768 512c-2.01 72.66-27.01 132.99-75.01 180.99S584.66 765.99 512 768z"},null,-1),tT=(0,QS.createElementVNode)("path",{fill:"currentColor",d:"M512 320c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.66-8.99 23.01 0 9.35 3 17.02 8.99 23.01 6 5.99 13.67 8.99 23.01 8.99 9.35 0 17.02-3 23.01-8.99 5.99-6 8.99-13.66 8.99-23.01 0-9.35-3-17.02-8.99-23.01-6-5.99-13.66-8.99-23.01-8.99zm112.99 273.5c-8.66-.32-16.33 2.52-23.01 8.51-7.98 9.32-10.48 19.82-7.49 31.49s10.49 19.17 22.5 22.5 22.35.66 31.01-8v.04c5.99-6.68 8.99-14.18 8.99-22.5s-3.16-15.66-9.5-22.02-13.84-9.7-22.5-10.02z"},null,-1),nT=[ZS,eT,tT];function rT(e,t,n,r,o,a){return(0,QS.openBlock)(),(0,QS.createElementBlock)("svg",XS,nT)}var oT=f(JS,[["render",rT],["__file","quartz-watch.vue"]]),aT={name:"QuestionFilled"},iT=n("7a23"),sT={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},cT=(0,iT.createElementVNode)("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),lT=[cT];function uT(e,t,n,r,o,a){return(0,iT.openBlock)(),(0,iT.createElementBlock)("svg",sT,lT)}var dT=f(aT,[["render",uT],["__file","question-filled.vue"]]),pT={name:"Rank"},fT=n("7a23"),hT={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},mT=(0,fT.createElementVNode)("path",{fill:"currentColor",d:"m186.496 544 41.408 41.344a32 32 0 1 1-45.248 45.312l-96-96a32 32 0 0 1 0-45.312l96-96a32 32 0 1 1 45.248 45.312L186.496 480h290.816V186.432l-41.472 41.472a32 32 0 1 1-45.248-45.184l96-96.128a32 32 0 0 1 45.312 0l96 96.064a32 32 0 0 1-45.248 45.184l-41.344-41.28V480H832l-41.344-41.344a32 32 0 0 1 45.248-45.312l96 96a32 32 0 0 1 0 45.312l-96 96a32 32 0 0 1-45.248-45.312L832 544H541.312v293.44l41.344-41.28a32 32 0 1 1 45.248 45.248l-96 96a32 32 0 0 1-45.312 0l-96-96a32 32 0 1 1 45.312-45.248l41.408 41.408V544H186.496z"},null,-1),vT=[mT];function gT(e,t,n,r,o,a){return(0,fT.openBlock)(),(0,fT.createElementBlock)("svg",hT,vT)}var _T=f(pT,[["render",gT],["__file","rank.vue"]]),yT={name:"ReadingLamp"},bT=n("7a23"),OT={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},MT=(0,bT.createElementVNode)("path",{fill:"currentColor",d:"M352 896h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32zm-44.672-768-99.52 448h608.384l-99.52-448H307.328zm-25.6-64h460.608a32 32 0 0 1 31.232 25.088l113.792 512A32 32 0 0 1 856.128 640H167.872a32 32 0 0 1-31.232-38.912l113.792-512A32 32 0 0 1 281.664 64z"},null,-1),kT=(0,bT.createElementVNode)("path",{fill:"currentColor",d:"M672 576q32 0 32 32v128q0 32-32 32t-32-32V608q0-32 32-32zm-192-.064h64V960h-64z"},null,-1),CT=[MT,kT];function wT(e,t,n,r,o,a){return(0,bT.openBlock)(),(0,bT.createElementBlock)("svg",OT,CT)}var IT=f(yT,[["render",wT],["__file","reading-lamp.vue"]]),ST={name:"Reading"},TT=n("7a23"),ET={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},jT=(0,TT.createElementVNode)("path",{fill:"currentColor",d:"m512 863.36 384-54.848v-638.72L525.568 222.72a96 96 0 0 1-27.136 0L128 169.792v638.72l384 54.848zM137.024 106.432l370.432 52.928a32 32 0 0 0 9.088 0l370.432-52.928A64 64 0 0 1 960 169.792v638.72a64 64 0 0 1-54.976 63.36l-388.48 55.488a32 32 0 0 1-9.088 0l-388.48-55.488A64 64 0 0 1 64 808.512v-638.72a64 64 0 0 1 73.024-63.36z"},null,-1),DT=(0,TT.createElementVNode)("path",{fill:"currentColor",d:"M480 192h64v704h-64z"},null,-1),LT=[jT,DT];function AT(e,t,n,r,o,a){return(0,TT.openBlock)(),(0,TT.createElementBlock)("svg",ET,LT)}var NT=f(ST,[["render",AT],["__file","reading.vue"]]),xT={name:"RefreshLeft"},RT=n("7a23"),PT={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},UT=(0,RT.createElementVNode)("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),VT=[UT];function BT(e,t,n,r,o,a){return(0,RT.openBlock)(),(0,RT.createElementBlock)("svg",PT,VT)}var FT=f(xT,[["render",BT],["__file","refresh-left.vue"]]),GT={name:"RefreshRight"},zT=n("7a23"),HT={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},YT=(0,zT.createElementVNode)("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),qT=[YT];function WT(e,t,n,r,o,a){return(0,zT.openBlock)(),(0,zT.createElementBlock)("svg",HT,qT)}var KT=f(GT,[["render",WT],["__file","refresh-right.vue"]]),$T={name:"Refresh"},JT=n("7a23"),QT={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},XT=(0,JT.createElementVNode)("path",{fill:"currentColor",d:"M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"},null,-1),ZT=[XT];function eE(e,t,n,r,o,a){return(0,JT.openBlock)(),(0,JT.createElementBlock)("svg",QT,ZT)}var tE=f($T,[["render",eE],["__file","refresh.vue"]]),nE={name:"Refrigerator"},rE=n("7a23"),oE={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},aE=(0,rE.createElementVNode)("path",{fill:"currentColor",d:"M256 448h512V160a32 32 0 0 0-32-32H288a32 32 0 0 0-32 32v288zm0 64v352a32 32 0 0 0 32 32h448a32 32 0 0 0 32-32V512H256zm32-448h448a96 96 0 0 1 96 96v704a96 96 0 0 1-96 96H288a96 96 0 0 1-96-96V160a96 96 0 0 1 96-96zm32 224h64v96h-64v-96zm0 288h64v96h-64v-96z"},null,-1),iE=[aE];function sE(e,t,n,r,o,a){return(0,rE.openBlock)(),(0,rE.createElementBlock)("svg",oE,iE)}var cE=f(nE,[["render",sE],["__file","refrigerator.vue"]]),lE={name:"RemoveFilled"},uE=n("7a23"),dE={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},pE=(0,uE.createElementVNode)("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zM288 512a38.4 38.4 0 0 0 38.4 38.4h371.2a38.4 38.4 0 0 0 0-76.8H326.4A38.4 38.4 0 0 0 288 512z"},null,-1),fE=[pE];function hE(e,t,n,r,o,a){return(0,uE.openBlock)(),(0,uE.createElementBlock)("svg",dE,fE)}var mE=f(lE,[["render",hE],["__file","remove-filled.vue"]]),vE={name:"Remove"},gE=n("7a23"),_E={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},yE=(0,gE.createElementVNode)("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64z"},null,-1),bE=(0,gE.createElementVNode)("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),OE=[yE,bE];function ME(e,t,n,r,o,a){return(0,gE.openBlock)(),(0,gE.createElementBlock)("svg",_E,OE)}var kE=f(vE,[["render",ME],["__file","remove.vue"]]),CE={name:"Right"},wE=n("7a23"),IE={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},SE=(0,wE.createElementVNode)("path",{fill:"currentColor",d:"M754.752 480H160a32 32 0 1 0 0 64h594.752L521.344 777.344a32 32 0 0 0 45.312 45.312l288-288a32 32 0 0 0 0-45.312l-288-288a32 32 0 1 0-45.312 45.312L754.752 480z"},null,-1),TE=[SE];function EE(e,t,n,r,o,a){return(0,wE.openBlock)(),(0,wE.createElementBlock)("svg",IE,TE)}var jE=f(CE,[["render",EE],["__file","right.vue"]]),DE={name:"ScaleToOriginal"},LE=n("7a23"),AE={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},NE=(0,LE.createElementVNode)("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),xE=[NE];function RE(e,t,n,r,o,a){return(0,LE.openBlock)(),(0,LE.createElementBlock)("svg",AE,xE)}var PE=f(DE,[["render",RE],["__file","scale-to-original.vue"]]),UE={name:"School"},VE=n("7a23"),BE={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},FE=(0,VE.createElementVNode)("path",{fill:"currentColor",d:"M224 128v704h576V128H224zm-32-64h640a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32z"},null,-1),GE=(0,VE.createElementVNode)("path",{fill:"currentColor",d:"M64 832h896v64H64zm256-640h128v96H320z"},null,-1),zE=(0,VE.createElementVNode)("path",{fill:"currentColor",d:"M384 832h256v-64a128 128 0 1 0-256 0v64zm128-256a192 192 0 0 1 192 192v128H320V768a192 192 0 0 1 192-192zM320 384h128v96H320zm256-192h128v96H576zm0 192h128v96H576z"},null,-1),HE=[FE,GE,zE];function YE(e,t,n,r,o,a){return(0,VE.openBlock)(),(0,VE.createElementBlock)("svg",BE,HE)}var qE=f(UE,[["render",YE],["__file","school.vue"]]),WE={name:"Scissor"},KE=n("7a23"),$E={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},JE=(0,KE.createElementVNode)("path",{fill:"currentColor",d:"m512.064 578.368-106.88 152.768a160 160 0 1 1-23.36-78.208L472.96 522.56 196.864 128.256a32 32 0 1 1 52.48-36.736l393.024 561.344a160 160 0 1 1-23.36 78.208l-106.88-152.704zm54.4-189.248 208.384-297.6a32 32 0 0 1 52.48 36.736l-221.76 316.672-39.04-55.808zm-376.32 425.856a96 96 0 1 0 110.144-157.248 96 96 0 0 0-110.08 157.248zm643.84 0a96 96 0 1 0-110.08-157.248 96 96 0 0 0 110.08 157.248z"},null,-1),QE=[JE];function XE(e,t,n,r,o,a){return(0,KE.openBlock)(),(0,KE.createElementBlock)("svg",$E,QE)}var ZE=f(WE,[["render",XE],["__file","scissor.vue"]]),ej={name:"Search"},tj=n("7a23"),nj={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},rj=(0,tj.createElementVNode)("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),oj=[rj];function aj(e,t,n,r,o,a){return(0,tj.openBlock)(),(0,tj.createElementBlock)("svg",nj,oj)}var ij=f(ej,[["render",aj],["__file","search.vue"]]),sj={name:"Select"},cj=n("7a23"),lj={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},uj=(0,cj.createElementVNode)("path",{fill:"currentColor",d:"M77.248 415.04a64 64 0 0 1 90.496 0l226.304 226.304L846.528 188.8a64 64 0 1 1 90.56 90.496l-543.04 543.04-316.8-316.8a64 64 0 0 1 0-90.496z"},null,-1),dj=[uj];function pj(e,t,n,r,o,a){return(0,cj.openBlock)(),(0,cj.createElementBlock)("svg",lj,dj)}var fj=f(sj,[["render",pj],["__file","select.vue"]]),hj={name:"Sell"},mj=n("7a23"),vj={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},gj=(0,mj.createElementVNode)("path",{fill:"currentColor",d:"M704 288h131.072a32 32 0 0 1 31.808 28.8L886.4 512h-64.384l-16-160H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0v-96H217.92l-51.2 512H512v64H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4zm-64 0v-22.336C640 189.248 582.272 128 512 128c-70.272 0-128 61.248-128 137.664v22.4h256zm201.408 483.84L768 698.496V928a32 32 0 1 1-64 0V698.496l-73.344 73.344a32 32 0 1 1-45.248-45.248l128-128a32 32 0 0 1 45.248 0l128 128a32 32 0 1 1-45.248 45.248z"},null,-1),_j=[gj];function yj(e,t,n,r,o,a){return(0,mj.openBlock)(),(0,mj.createElementBlock)("svg",vj,_j)}var bj=f(hj,[["render",yj],["__file","sell.vue"]]),Oj={name:"SemiSelect"},Mj=n("7a23"),kj={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Cj=(0,Mj.createElementVNode)("path",{fill:"currentColor",d:"M128 448h768q64 0 64 64t-64 64H128q-64 0-64-64t64-64z"},null,-1),wj=[Cj];function Ij(e,t,n,r,o,a){return(0,Mj.openBlock)(),(0,Mj.createElementBlock)("svg",kj,wj)}var Sj=f(Oj,[["render",Ij],["__file","semi-select.vue"]]),Tj={name:"Service"},Ej=n("7a23"),jj={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Dj=(0,Ej.createElementVNode)("path",{fill:"currentColor",d:"M864 409.6a192 192 0 0 1-37.888 349.44A256.064 256.064 0 0 1 576 960h-96a32 32 0 1 1 0-64h96a192.064 192.064 0 0 0 181.12-128H736a32 32 0 0 1-32-32V416a32 32 0 0 1 32-32h32c10.368 0 20.544.832 30.528 2.432a288 288 0 0 0-573.056 0A193.235 193.235 0 0 1 256 384h32a32 32 0 0 1 32 32v320a32 32 0 0 1-32 32h-32a192 192 0 0 1-96-358.4 352 352 0 0 1 704 0zM256 448a128 128 0 1 0 0 256V448zm640 128a128 128 0 0 0-128-128v256a128 128 0 0 0 128-128z"},null,-1),Lj=[Dj];function Aj(e,t,n,r,o,a){return(0,Ej.openBlock)(),(0,Ej.createElementBlock)("svg",jj,Lj)}var Nj=f(Tj,[["render",Aj],["__file","service.vue"]]),xj={name:"SetUp"},Rj=n("7a23"),Pj={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Uj=(0,Rj.createElementVNode)("path",{fill:"currentColor",d:"M224 160a64 64 0 0 0-64 64v576a64 64 0 0 0 64 64h576a64 64 0 0 0 64-64V224a64 64 0 0 0-64-64H224zm0-64h576a128 128 0 0 1 128 128v576a128 128 0 0 1-128 128H224A128 128 0 0 1 96 800V224A128 128 0 0 1 224 96z"},null,-1),Vj=(0,Rj.createElementVNode)("path",{fill:"currentColor",d:"M384 416a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256z"},null,-1),Bj=(0,Rj.createElementVNode)("path",{fill:"currentColor",d:"M480 320h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32zm160 416a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256z"},null,-1),Fj=(0,Rj.createElementVNode)("path",{fill:"currentColor",d:"M288 640h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32z"},null,-1),Gj=[Uj,Vj,Bj,Fj];function zj(e,t,n,r,o,a){return(0,Rj.openBlock)(),(0,Rj.createElementBlock)("svg",Pj,Gj)}var Hj=f(xj,[["render",zj],["__file","set-up.vue"]]),Yj={name:"Setting"},qj=n("7a23"),Wj={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Kj=(0,qj.createElementVNode)("path",{fill:"currentColor",d:"M600.704 64a32 32 0 0 1 30.464 22.208l35.2 109.376c14.784 7.232 28.928 15.36 42.432 24.512l112.384-24.192a32 32 0 0 1 34.432 15.36L944.32 364.8a32 32 0 0 1-4.032 37.504l-77.12 85.12a357.12 357.12 0 0 1 0 49.024l77.12 85.248a32 32 0 0 1 4.032 37.504l-88.704 153.6a32 32 0 0 1-34.432 15.296L708.8 803.904c-13.44 9.088-27.648 17.28-42.368 24.512l-35.264 109.376A32 32 0 0 1 600.704 960H423.296a32 32 0 0 1-30.464-22.208L357.696 828.48a351.616 351.616 0 0 1-42.56-24.64l-112.32 24.256a32 32 0 0 1-34.432-15.36L79.68 659.2a32 32 0 0 1 4.032-37.504l77.12-85.248a357.12 357.12 0 0 1 0-48.896l-77.12-85.248A32 32 0 0 1 79.68 364.8l88.704-153.6a32 32 0 0 1 34.432-15.296l112.32 24.256c13.568-9.152 27.776-17.408 42.56-24.64l35.2-109.312A32 32 0 0 1 423.232 64H600.64zm-23.424 64H446.72l-36.352 113.088-24.512 11.968a294.113 294.113 0 0 0-34.816 20.096l-22.656 15.36-116.224-25.088-65.28 113.152 79.68 88.192-1.92 27.136a293.12 293.12 0 0 0 0 40.192l1.92 27.136-79.808 88.192 65.344 113.152 116.224-25.024 22.656 15.296a294.113 294.113 0 0 0 34.816 20.096l24.512 11.968L446.72 896h130.688l36.48-113.152 24.448-11.904a288.282 288.282 0 0 0 34.752-20.096l22.592-15.296 116.288 25.024 65.28-113.152-79.744-88.192 1.92-27.136a293.12 293.12 0 0 0 0-40.256l-1.92-27.136 79.808-88.128-65.344-113.152-116.288 24.96-22.592-15.232a287.616 287.616 0 0 0-34.752-20.096l-24.448-11.904L577.344 128zM512 320a192 192 0 1 1 0 384 192 192 0 0 1 0-384zm0 64a128 128 0 1 0 0 256 128 128 0 0 0 0-256z"},null,-1),$j=[Kj];function Jj(e,t,n,r,o,a){return(0,qj.openBlock)(),(0,qj.createElementBlock)("svg",Wj,$j)}var Qj=f(Yj,[["render",Jj],["__file","setting.vue"]]),Xj={name:"Share"},Zj=n("7a23"),eD={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},tD=(0,Zj.createElementVNode)("path",{fill:"currentColor",d:"m679.872 348.8-301.76 188.608a127.808 127.808 0 0 1 5.12 52.16l279.936 104.96a128 128 0 1 1-22.464 59.904l-279.872-104.96a128 128 0 1 1-16.64-166.272l301.696-188.608a128 128 0 1 1 33.92 54.272z"},null,-1),nD=[tD];function rD(e,t,n,r,o,a){return(0,Zj.openBlock)(),(0,Zj.createElementBlock)("svg",eD,nD)}var oD=f(Xj,[["render",rD],["__file","share.vue"]]),aD={name:"Ship"},iD=n("7a23"),sD={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},cD=(0,iD.createElementVNode)("path",{fill:"currentColor",d:"M512 386.88V448h405.568a32 32 0 0 1 30.72 40.768l-76.48 267.968A192 192 0 0 1 687.168 896H336.832a192 192 0 0 1-184.64-139.264L75.648 488.768A32 32 0 0 1 106.368 448H448V117.888a32 32 0 0 1 47.36-28.096l13.888 7.616L512 96v2.88l231.68 126.4a32 32 0 0 1-2.048 57.216L512 386.88zm0-70.272 144.768-65.792L512 171.84v144.768zM512 512H148.864l18.24 64H856.96l18.24-64H512zM185.408 640l28.352 99.2A128 128 0 0 0 336.832 832h350.336a128 128 0 0 0 123.072-92.8l28.352-99.2H185.408z"},null,-1),lD=[cD];function uD(e,t,n,r,o,a){return(0,iD.openBlock)(),(0,iD.createElementBlock)("svg",sD,lD)}var dD=f(aD,[["render",uD],["__file","ship.vue"]]),pD={name:"Shop"},fD=n("7a23"),hD={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},mD=(0,fD.createElementVNode)("path",{fill:"currentColor",d:"M704 704h64v192H256V704h64v64h384v-64zm188.544-152.192C894.528 559.616 896 567.616 896 576a96 96 0 1 1-192 0 96 96 0 1 1-192 0 96 96 0 1 1-192 0 96 96 0 1 1-192 0c0-8.384 1.408-16.384 3.392-24.192L192 128h640l60.544 423.808z"},null,-1),vD=[mD];function gD(e,t,n,r,o,a){return(0,fD.openBlock)(),(0,fD.createElementBlock)("svg",hD,vD)}var _D=f(pD,[["render",gD],["__file","shop.vue"]]),yD={name:"ShoppingBag"},bD=n("7a23"),OD={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},MD=(0,bD.createElementVNode)("path",{fill:"currentColor",d:"M704 320v96a32 32 0 0 1-32 32h-32V320H384v128h-32a32 32 0 0 1-32-32v-96H192v576h640V320H704zm-384-64a192 192 0 1 1 384 0h160a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32h160zm64 0h256a128 128 0 1 0-256 0z"},null,-1),kD=(0,bD.createElementVNode)("path",{fill:"currentColor",d:"M192 704h640v64H192z"},null,-1),CD=[MD,kD];function wD(e,t,n,r,o,a){return(0,bD.openBlock)(),(0,bD.createElementBlock)("svg",OD,CD)}var ID=f(yD,[["render",wD],["__file","shopping-bag.vue"]]),SD={name:"ShoppingCartFull"},TD=n("7a23"),ED={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},jD=(0,TD.createElementVNode)("path",{fill:"currentColor",d:"M432 928a48 48 0 1 1 0-96 48 48 0 0 1 0 96zm320 0a48 48 0 1 1 0-96 48 48 0 0 1 0 96zM96 128a32 32 0 0 1 0-64h160a32 32 0 0 1 31.36 25.728L320.64 256H928a32 32 0 0 1 31.296 38.72l-96 448A32 32 0 0 1 832 768H384a32 32 0 0 1-31.36-25.728L229.76 128H96zm314.24 576h395.904l82.304-384H333.44l76.8 384z"},null,-1),DD=(0,TD.createElementVNode)("path",{fill:"currentColor",d:"M699.648 256 608 145.984 516.352 256h183.296zm-140.8-151.04a64 64 0 0 1 98.304 0L836.352 320H379.648l179.2-215.04z"},null,-1),LD=[jD,DD];function AD(e,t,n,r,o,a){return(0,TD.openBlock)(),(0,TD.createElementBlock)("svg",ED,LD)}var ND=f(SD,[["render",AD],["__file","shopping-cart-full.vue"]]),xD={name:"ShoppingCart"},RD=n("7a23"),PD={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},UD=(0,RD.createElementVNode)("path",{fill:"currentColor",d:"M432 928a48 48 0 1 1 0-96 48 48 0 0 1 0 96zm320 0a48 48 0 1 1 0-96 48 48 0 0 1 0 96zM96 128a32 32 0 0 1 0-64h160a32 32 0 0 1 31.36 25.728L320.64 256H928a32 32 0 0 1 31.296 38.72l-96 448A32 32 0 0 1 832 768H384a32 32 0 0 1-31.36-25.728L229.76 128H96zm314.24 576h395.904l82.304-384H333.44l76.8 384z"},null,-1),VD=[UD];function BD(e,t,n,r,o,a){return(0,RD.openBlock)(),(0,RD.createElementBlock)("svg",PD,VD)}var FD=f(xD,[["render",BD],["__file","shopping-cart.vue"]]),GD={name:"ShoppingTrolley"},zD=n("7a23"),HD={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},YD=(0,zD.createElementVNode)("path",{fill:"currentColor",d:"M368 833c-13.3 0-24.5 4.5-33.5 13.5S321 866.7 321 880s4.5 24.5 13.5 33.5 20.2 13.8 33.5 14.5c13.3-.7 24.5-5.5 33.5-14.5S415 893.3 415 880s-4.5-24.5-13.5-33.5S381.3 833 368 833zm439-193c7.4 0 13.8-2.2 19.5-6.5S836 623.3 838 616l112-448c2-10-.2-19.2-6.5-27.5S929 128 919 128H96c-9.3 0-17 3-23 9s-9 13.7-9 23 3 17 9 23 13.7 9 23 9h96v576h672c9.3 0 17-3 23-9s9-13.7 9-23-3-17-9-23-13.7-9-23-9H256v-64h551zM256 192h622l-96 384H256V192zm432 641c-13.3 0-24.5 4.5-33.5 13.5S641 866.7 641 880s4.5 24.5 13.5 33.5 20.2 13.8 33.5 14.5c13.3-.7 24.5-5.5 33.5-14.5S735 893.3 735 880s-4.5-24.5-13.5-33.5S701.3 833 688 833z"},null,-1),qD=[YD];function WD(e,t,n,r,o,a){return(0,zD.openBlock)(),(0,zD.createElementBlock)("svg",HD,qD)}var KD=f(GD,[["render",WD],["__file","shopping-trolley.vue"]]),$D={name:"Smoking"},JD=n("7a23"),QD={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},XD=(0,JD.createElementVNode)("path",{fill:"currentColor",d:"M256 576v128h640V576H256zm-32-64h704a32 32 0 0 1 32 32v192a32 32 0 0 1-32 32H224a32 32 0 0 1-32-32V544a32 32 0 0 1 32-32z"},null,-1),ZD=(0,JD.createElementVNode)("path",{fill:"currentColor",d:"M704 576h64v128h-64zM256 64h64v320h-64zM128 192h64v192h-64zM64 512h64v256H64z"},null,-1),eL=[XD,ZD];function tL(e,t,n,r,o,a){return(0,JD.openBlock)(),(0,JD.createElementBlock)("svg",QD,eL)}var nL=f($D,[["render",tL],["__file","smoking.vue"]]),rL={name:"Soccer"},oL=n("7a23"),aL={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},iL=(0,oL.createElementVNode)("path",{fill:"currentColor",d:"M418.496 871.04 152.256 604.8c-16.512 94.016-2.368 178.624 42.944 224 44.928 44.928 129.344 58.752 223.296 42.24zm72.32-18.176a573.056 573.056 0 0 0 224.832-137.216 573.12 573.12 0 0 0 137.216-224.832L533.888 171.84a578.56 578.56 0 0 0-227.52 138.496A567.68 567.68 0 0 0 170.432 532.48l320.384 320.384zM871.04 418.496c16.512-93.952 2.688-178.368-42.24-223.296-44.544-44.544-128.704-58.048-222.592-41.536L871.04 418.496zM149.952 874.048c-112.96-112.96-88.832-408.96 111.168-608.96C461.056 65.152 760.96 36.928 874.048 149.952c113.024 113.024 86.784 411.008-113.152 610.944-199.936 199.936-497.92 226.112-610.944 113.152zm452.544-497.792 22.656-22.656a32 32 0 0 1 45.248 45.248l-22.656 22.656 45.248 45.248A32 32 0 1 1 647.744 512l-45.248-45.248L557.248 512l45.248 45.248a32 32 0 1 1-45.248 45.248L512 557.248l-45.248 45.248L512 647.744a32 32 0 1 1-45.248 45.248l-45.248-45.248-22.656 22.656a32 32 0 1 1-45.248-45.248l22.656-22.656-45.248-45.248A32 32 0 1 1 376.256 512l45.248 45.248L466.752 512l-45.248-45.248a32 32 0 1 1 45.248-45.248L512 466.752l45.248-45.248L512 376.256a32 32 0 0 1 45.248-45.248l45.248 45.248z"},null,-1),sL=[iL];function cL(e,t,n,r,o,a){return(0,oL.openBlock)(),(0,oL.createElementBlock)("svg",aL,sL)}var lL=f(rL,[["render",cL],["__file","soccer.vue"]]),uL={name:"SoldOut"},dL=n("7a23"),pL={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},fL=(0,dL.createElementVNode)("path",{fill:"currentColor",d:"M704 288h131.072a32 32 0 0 1 31.808 28.8L886.4 512h-64.384l-16-160H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0v-96H217.92l-51.2 512H512v64H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4zm-64 0v-22.336C640 189.248 582.272 128 512 128c-70.272 0-128 61.248-128 137.664v22.4h256zm201.408 476.16a32 32 0 1 1 45.248 45.184l-128 128a32 32 0 0 1-45.248 0l-128-128a32 32 0 1 1 45.248-45.248L704 837.504V608a32 32 0 1 1 64 0v229.504l73.408-73.408z"},null,-1),hL=[fL];function mL(e,t,n,r,o,a){return(0,dL.openBlock)(),(0,dL.createElementBlock)("svg",pL,hL)}var vL=f(uL,[["render",mL],["__file","sold-out.vue"]]),gL={name:"SortDown"},_L=n("7a23"),yL={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},bL=(0,_L.createElementVNode)("path",{fill:"currentColor",d:"M576 96v709.568L333.312 562.816A32 32 0 1 0 288 608l297.408 297.344A32 32 0 0 0 640 882.688V96a32 32 0 0 0-64 0z"},null,-1),OL=[bL];function ML(e,t,n,r,o,a){return(0,_L.openBlock)(),(0,_L.createElementBlock)("svg",yL,OL)}var kL=f(gL,[["render",ML],["__file","sort-down.vue"]]),CL={name:"SortUp"},wL=n("7a23"),IL={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},SL=(0,wL.createElementVNode)("path",{fill:"currentColor",d:"M384 141.248V928a32 32 0 1 0 64 0V218.56l242.688 242.688A32 32 0 1 0 736 416L438.592 118.656A32 32 0 0 0 384 141.248z"},null,-1),TL=[SL];function EL(e,t,n,r,o,a){return(0,wL.openBlock)(),(0,wL.createElementBlock)("svg",IL,TL)}var jL=f(CL,[["render",EL],["__file","sort-up.vue"]]),DL={name:"Sort"},LL=n("7a23"),AL={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},NL=(0,LL.createElementVNode)("path",{fill:"currentColor",d:"M384 96a32 32 0 0 1 64 0v786.752a32 32 0 0 1-54.592 22.656L95.936 608a32 32 0 0 1 0-45.312h.128a32 32 0 0 1 45.184 0L384 805.632V96zm192 45.248a32 32 0 0 1 54.592-22.592L928.064 416a32 32 0 0 1 0 45.312h-.128a32 32 0 0 1-45.184 0L640 218.496V928a32 32 0 1 1-64 0V141.248z"},null,-1),xL=[NL];function RL(e,t,n,r,o,a){return(0,LL.openBlock)(),(0,LL.createElementBlock)("svg",AL,xL)}var PL=f(DL,[["render",RL],["__file","sort.vue"]]),UL={name:"Stamp"},VL=n("7a23"),BL={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},FL=(0,VL.createElementVNode)("path",{fill:"currentColor",d:"M624 475.968V640h144a128 128 0 0 1 128 128H128a128 128 0 0 1 128-128h144V475.968a192 192 0 1 1 224 0zM128 896v-64h768v64H128z"},null,-1),GL=[FL];function zL(e,t,n,r,o,a){return(0,VL.openBlock)(),(0,VL.createElementBlock)("svg",BL,GL)}var HL=f(UL,[["render",zL],["__file","stamp.vue"]]),YL={name:"StarFilled"},qL=n("7a23"),WL={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},KL=(0,qL.createElementVNode)("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),$L=[KL];function JL(e,t,n,r,o,a){return(0,qL.openBlock)(),(0,qL.createElementBlock)("svg",WL,$L)}var QL=f(YL,[["render",JL],["__file","star-filled.vue"]]),XL={name:"Star"},ZL=n("7a23"),eA={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},tA=(0,ZL.createElementVNode)("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),nA=[tA];function rA(e,t,n,r,o,a){return(0,ZL.openBlock)(),(0,ZL.createElementBlock)("svg",eA,nA)}var oA=f(XL,[["render",rA],["__file","star.vue"]]),aA={name:"Stopwatch"},iA=n("7a23"),sA={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},cA=(0,iA.createElementVNode)("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),lA=(0,iA.createElementVNode)("path",{fill:"currentColor",d:"M672 234.88c-39.168 174.464-80 298.624-122.688 372.48-64 110.848-202.624 30.848-138.624-80C453.376 453.44 540.48 355.968 672 234.816z"},null,-1),uA=[cA,lA];function dA(e,t,n,r,o,a){return(0,iA.openBlock)(),(0,iA.createElementBlock)("svg",sA,uA)}var pA=f(aA,[["render",dA],["__file","stopwatch.vue"]]),fA={name:"SuccessFilled"},hA=n("7a23"),mA={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},vA=(0,hA.createElementVNode)("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),gA=[vA];function _A(e,t,n,r,o,a){return(0,hA.openBlock)(),(0,hA.createElementBlock)("svg",mA,gA)}var yA=f(fA,[["render",_A],["__file","success-filled.vue"]]),bA={name:"Sugar"},OA=n("7a23"),MA={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},kA=(0,OA.createElementVNode)("path",{fill:"currentColor",d:"m801.728 349.184 4.48 4.48a128 128 0 0 1 0 180.992L534.656 806.144a128 128 0 0 1-181.056 0l-4.48-4.48-19.392 109.696a64 64 0 0 1-108.288 34.176L78.464 802.56a64 64 0 0 1 34.176-108.288l109.76-19.328-4.544-4.544a128 128 0 0 1 0-181.056l271.488-271.488a128 128 0 0 1 181.056 0l4.48 4.48 19.392-109.504a64 64 0 0 1 108.352-34.048l142.592 143.04a64 64 0 0 1-34.24 108.16l-109.248 19.2zm-548.8 198.72h447.168v2.24l60.8-60.8a63.808 63.808 0 0 0 18.752-44.416h-426.88l-89.664 89.728a64.064 64.064 0 0 0-10.24 13.248zm0 64c2.752 4.736 6.144 9.152 10.176 13.248l135.744 135.744a64 64 0 0 0 90.496 0L638.4 611.904H252.928zm490.048-230.976L625.152 263.104a64 64 0 0 0-90.496 0L416.768 380.928h326.208zM123.712 757.312l142.976 142.976 24.32-137.6a25.6 25.6 0 0 0-29.696-29.632l-137.6 24.256zm633.6-633.344-24.32 137.472a25.6 25.6 0 0 0 29.632 29.632l137.28-24.064-142.656-143.04z"},null,-1),CA=[kA];function wA(e,t,n,r,o,a){return(0,OA.openBlock)(),(0,OA.createElementBlock)("svg",MA,CA)}var IA=f(bA,[["render",wA],["__file","sugar.vue"]]),SA={name:"SuitcaseLine"},TA=n("7a23"),EA={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},jA=(0,TA.createElementVNode)("path",{fill:"currentColor",d:"M922.5 229.5c-24.32-24.34-54.49-36.84-90.5-37.5H704v-64c-.68-17.98-7.02-32.98-19.01-44.99S658.01 64.66 640 64H384c-17.98.68-32.98 7.02-44.99 19.01S320.66 110 320 128v64H192c-35.99.68-66.16 13.18-90.5 37.5C77.16 253.82 64.66 283.99 64 320v448c.68 35.99 13.18 66.16 37.5 90.5s54.49 36.84 90.5 37.5h640c35.99-.68 66.16-13.18 90.5-37.5s36.84-54.49 37.5-90.5V320c-.68-35.99-13.18-66.16-37.5-90.5zM384 128h256v64H384v-64zM256 832h-64c-17.98-.68-32.98-7.02-44.99-19.01S128.66 786.01 128 768V448h128v384zm448 0H320V448h384v384zm192-64c-.68 17.98-7.02 32.98-19.01 44.99S850.01 831.34 832 832h-64V448h128v320zm0-384H128v-64c.69-17.98 7.02-32.98 19.01-44.99S173.99 256.66 192 256h640c17.98.69 32.98 7.02 44.99 19.01S895.34 301.99 896 320v64z"},null,-1),DA=[jA];function LA(e,t,n,r,o,a){return(0,TA.openBlock)(),(0,TA.createElementBlock)("svg",EA,DA)}var AA=f(SA,[["render",LA],["__file","suitcase-line.vue"]]),NA={name:"Suitcase"},xA=n("7a23"),RA={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},PA=(0,xA.createElementVNode)("path",{fill:"currentColor",d:"M128 384h768v-64a64 64 0 0 0-64-64H192a64 64 0 0 0-64 64v64zm0 64v320a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V448H128zm64-256h640a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H192A128 128 0 0 1 64 768V320a128 128 0 0 1 128-128z"},null,-1),UA=(0,xA.createElementVNode)("path",{fill:"currentColor",d:"M384 128v64h256v-64H384zm0-64h256a64 64 0 0 1 64 64v64a64 64 0 0 1-64 64H384a64 64 0 0 1-64-64v-64a64 64 0 0 1 64-64z"},null,-1),VA=[PA,UA];function BA(e,t,n,r,o,a){return(0,xA.openBlock)(),(0,xA.createElementBlock)("svg",RA,VA)}var FA=f(NA,[["render",BA],["__file","suitcase.vue"]]),GA={name:"Sunny"},zA=n("7a23"),HA={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},YA=(0,zA.createElementVNode)("path",{fill:"currentColor",d:"M512 704a192 192 0 1 0 0-384 192 192 0 0 0 0 384zm0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512zm0-704a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 768a32 32 0 0 1 32 32v64a32 32 0 1 1-64 0v-64a32 32 0 0 1 32-32zM195.2 195.2a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 1 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm543.104 543.104a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 0 1-45.248 45.248l-45.248-45.248a32 32 0 0 1 0-45.248zM64 512a32 32 0 0 1 32-32h64a32 32 0 0 1 0 64H96a32 32 0 0 1-32-32zm768 0a32 32 0 0 1 32-32h64a32 32 0 1 1 0 64h-64a32 32 0 0 1-32-32zM195.2 828.8a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248L240.448 828.8a32 32 0 0 1-45.248 0zm543.104-543.104a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248l-45.248 45.248a32 32 0 0 1-45.248 0z"},null,-1),qA=[YA];function WA(e,t,n,r,o,a){return(0,zA.openBlock)(),(0,zA.createElementBlock)("svg",HA,qA)}var KA=f(GA,[["render",WA],["__file","sunny.vue"]]),$A={name:"Sunrise"},JA=n("7a23"),QA={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},XA=(0,JA.createElementVNode)("path",{fill:"currentColor",d:"M32 768h960a32 32 0 1 1 0 64H32a32 32 0 1 1 0-64zm129.408-96a352 352 0 0 1 701.184 0h-64.32a288 288 0 0 0-572.544 0h-64.32zM512 128a32 32 0 0 1 32 32v96a32 32 0 0 1-64 0v-96a32 32 0 0 1 32-32zm407.296 168.704a32 32 0 0 1 0 45.248l-67.84 67.84a32 32 0 1 1-45.248-45.248l67.84-67.84a32 32 0 0 1 45.248 0zm-814.592 0a32 32 0 0 1 45.248 0l67.84 67.84a32 32 0 1 1-45.248 45.248l-67.84-67.84a32 32 0 0 1 0-45.248z"},null,-1),ZA=[XA];function eN(e,t,n,r,o,a){return(0,JA.openBlock)(),(0,JA.createElementBlock)("svg",QA,ZA)}var tN=f($A,[["render",eN],["__file","sunrise.vue"]]),nN={name:"Sunset"},rN=n("7a23"),oN={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},aN=(0,rN.createElementVNode)("path",{fill:"currentColor",d:"M82.56 640a448 448 0 1 1 858.88 0h-67.2a384 384 0 1 0-724.288 0H82.56zM32 704h960q32 0 32 32t-32 32H32q-32 0-32-32t32-32zm256 128h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32z"},null,-1),iN=[aN];function sN(e,t,n,r,o,a){return(0,rN.openBlock)(),(0,rN.createElementBlock)("svg",oN,iN)}var cN=f(nN,[["render",sN],["__file","sunset.vue"]]),lN={name:"SwitchButton"},uN=n("7a23"),dN={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},pN=(0,uN.createElementVNode)("path",{fill:"currentColor",d:"M352 159.872V230.4a352 352 0 1 0 320 0v-70.528A416.128 416.128 0 0 1 512 960a416 416 0 0 1-160-800.128z"},null,-1),fN=(0,uN.createElementVNode)("path",{fill:"currentColor",d:"M512 64q32 0 32 32v320q0 32-32 32t-32-32V96q0-32 32-32z"},null,-1),hN=[pN,fN];function mN(e,t,n,r,o,a){return(0,uN.openBlock)(),(0,uN.createElementBlock)("svg",dN,hN)}var vN=f(lN,[["render",mN],["__file","switch-button.vue"]]),gN={name:"SwitchFilled"},_N=n("7a23"),yN={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},bN=(0,_N.createElementVNode)("path",{fill:"currentColor",d:"M247.47 358.4v.04c.07 19.17 7.72 37.53 21.27 51.09s31.92 21.2 51.09 21.27c39.86 0 72.41-32.6 72.41-72.4s-32.6-72.36-72.41-72.36-72.36 32.55-72.36 72.36z"},null,-1),ON=(0,_N.createElementVNode)("path",{fill:"currentColor",d:"M492.38 128H324.7c-52.16 0-102.19 20.73-139.08 57.61a196.655 196.655 0 0 0-57.61 139.08V698.7c-.01 25.84 5.08 51.42 14.96 75.29s24.36 45.56 42.63 63.83 39.95 32.76 63.82 42.65a196.67 196.67 0 0 0 75.28 14.98h167.68c3.03 0 5.46-2.43 5.46-5.42V133.42c.6-2.99-1.83-5.42-5.46-5.42zm-56.11 705.88H324.7c-17.76.13-35.36-3.33-51.75-10.18s-31.22-16.94-43.61-29.67c-25.3-25.35-39.81-59.1-39.81-95.32V324.69c-.13-17.75 3.33-35.35 10.17-51.74a131.695 131.695 0 0 1 29.64-43.62c25.39-25.3 59.14-39.81 95.36-39.81h111.57v644.36zm402.12-647.67a196.655 196.655 0 0 0-139.08-57.61H580.48c-3.03 0-4.82 2.43-4.82 4.82v757.16c-.6 2.99 1.79 5.42 5.42 5.42h118.23a196.69 196.69 0 0 0 139.08-57.61A196.655 196.655 0 0 0 896 699.31V325.29a196.69 196.69 0 0 0-57.61-139.08zm-111.3 441.92c-42.83 0-77.82-34.99-77.82-77.82s34.98-77.82 77.82-77.82c42.83 0 77.82 34.99 77.82 77.82s-34.99 77.82-77.82 77.82z"},null,-1),MN=[bN,ON];function kN(e,t,n,r,o,a){return(0,_N.openBlock)(),(0,_N.createElementBlock)("svg",yN,MN)}var CN=f(gN,[["render",kN],["__file","switch-filled.vue"]]),wN={name:"Switch"},IN=n("7a23"),SN={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},TN=(0,IN.createElementVNode)("path",{fill:"currentColor",d:"M118.656 438.656a32 32 0 0 1 0-45.248L416 96l4.48-3.776A32 32 0 0 1 461.248 96l3.712 4.48a32.064 32.064 0 0 1-3.712 40.832L218.56 384H928a32 32 0 1 1 0 64H141.248a32 32 0 0 1-22.592-9.344zM64 608a32 32 0 0 1 32-32h786.752a32 32 0 0 1 22.656 54.592L608 928l-4.48 3.776a32.064 32.064 0 0 1-40.832-49.024L805.632 640H96a32 32 0 0 1-32-32z"},null,-1),EN=[TN];function jN(e,t,n,r,o,a){return(0,IN.openBlock)(),(0,IN.createElementBlock)("svg",SN,EN)}var DN=f(wN,[["render",jN],["__file","switch.vue"]]),LN={name:"TakeawayBox"},AN=n("7a23"),NN={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},xN=(0,AN.createElementVNode)("path",{fill:"currentColor",d:"M832 384H192v448h640V384zM96 320h832V128H96v192zm800 64v480a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V384H64a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32h896a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32h-64zM416 512h192a32 32 0 0 1 0 64H416a32 32 0 0 1 0-64z"},null,-1),RN=[xN];function PN(e,t,n,r,o,a){return(0,AN.openBlock)(),(0,AN.createElementBlock)("svg",NN,RN)}var UN=f(LN,[["render",PN],["__file","takeaway-box.vue"]]),VN={name:"Ticket"},BN=n("7a23"),FN={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},GN=(0,BN.createElementVNode)("path",{fill:"currentColor",d:"M640 832H64V640a128 128 0 1 0 0-256V192h576v160h64V192h256v192a128 128 0 1 0 0 256v192H704V672h-64v160zm0-416v192h64V416h-64z"},null,-1),zN=[GN];function HN(e,t,n,r,o,a){return(0,BN.openBlock)(),(0,BN.createElementBlock)("svg",FN,zN)}var YN=f(VN,[["render",HN],["__file","ticket.vue"]]),qN={name:"Tickets"},WN=n("7a23"),KN={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},$N=(0,WN.createElementVNode)("path",{fill:"currentColor",d:"M192 128v768h640V128H192zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm160 448h384v64H320v-64zm0-192h192v64H320v-64zm0 384h384v64H320v-64z"},null,-1),JN=[$N];function QN(e,t,n,r,o,a){return(0,WN.openBlock)(),(0,WN.createElementBlock)("svg",KN,JN)}var XN=f(qN,[["render",QN],["__file","tickets.vue"]]),ZN={name:"Timer"},ex=n("7a23"),tx={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},nx=(0,ex.createElementVNode)("path",{fill:"currentColor",d:"M512 896a320 320 0 1 0 0-640 320 320 0 0 0 0 640zm0 64a384 384 0 1 1 0-768 384 384 0 0 1 0 768z"},null,-1),rx=(0,ex.createElementVNode)("path",{fill:"currentColor",d:"M512 320a32 32 0 0 1 32 32l-.512 224a32 32 0 1 1-64 0L480 352a32 32 0 0 1 32-32z"},null,-1),ox=(0,ex.createElementVNode)("path",{fill:"currentColor",d:"M448 576a64 64 0 1 0 128 0 64 64 0 1 0-128 0zm96-448v128h-64V128h-96a32 32 0 0 1 0-64h256a32 32 0 1 1 0 64h-96z"},null,-1),ax=[nx,rx,ox];function ix(e,t,n,r,o,a){return(0,ex.openBlock)(),(0,ex.createElementBlock)("svg",tx,ax)}var sx=f(ZN,[["render",ix],["__file","timer.vue"]]),cx={name:"ToiletPaper"},lx=n("7a23"),ux={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},dx=(0,lx.createElementVNode)("path",{fill:"currentColor",d:"M595.2 128H320a192 192 0 0 0-192 192v576h384V352c0-90.496 32.448-171.2 83.2-224zM736 64c123.712 0 224 128.96 224 288S859.712 640 736 640H576v320H64V320A256 256 0 0 1 320 64h416zM576 352v224h160c84.352 0 160-97.28 160-224s-75.648-224-160-224-160 97.28-160 224z"},null,-1),px=(0,lx.createElementVNode)("path",{fill:"currentColor",d:"M736 448c-35.328 0-64-43.008-64-96s28.672-96 64-96 64 43.008 64 96-28.672 96-64 96z"},null,-1),fx=[dx,px];function hx(e,t,n,r,o,a){return(0,lx.openBlock)(),(0,lx.createElementBlock)("svg",ux,fx)}var mx=f(cx,[["render",hx],["__file","toilet-paper.vue"]]),vx={name:"Tools"},gx=n("7a23"),_x={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},yx=(0,gx.createElementVNode)("path",{fill:"currentColor",d:"M764.416 254.72a351.68 351.68 0 0 1 86.336 149.184H960v192.064H850.752a351.68 351.68 0 0 1-86.336 149.312l54.72 94.72-166.272 96-54.592-94.72a352.64 352.64 0 0 1-172.48 0L371.136 936l-166.272-96 54.72-94.72a351.68 351.68 0 0 1-86.336-149.312H64v-192h109.248a351.68 351.68 0 0 1 86.336-149.312L204.8 160l166.208-96h.192l54.656 94.592a352.64 352.64 0 0 1 172.48 0L652.8 64h.128L819.2 160l-54.72 94.72zM704 499.968a192 192 0 1 0-384 0 192 192 0 0 0 384 0z"},null,-1),bx=[yx];function Ox(e,t,n,r,o,a){return(0,gx.openBlock)(),(0,gx.createElementBlock)("svg",_x,bx)}var Mx=f(vx,[["render",Ox],["__file","tools.vue"]]),kx={name:"TopLeft"},Cx=n("7a23"),wx={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Ix=(0,Cx.createElementVNode)("path",{fill:"currentColor",d:"M256 256h416a32 32 0 1 0 0-64H224a32 32 0 0 0-32 32v448a32 32 0 0 0 64 0V256z"},null,-1),Sx=(0,Cx.createElementVNode)("path",{fill:"currentColor",d:"M246.656 201.344a32 32 0 0 0-45.312 45.312l544 544a32 32 0 0 0 45.312-45.312l-544-544z"},null,-1),Tx=[Ix,Sx];function Ex(e,t,n,r,o,a){return(0,Cx.openBlock)(),(0,Cx.createElementBlock)("svg",wx,Tx)}var jx=f(kx,[["render",Ex],["__file","top-left.vue"]]),Dx={name:"TopRight"},Lx=n("7a23"),Ax={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Nx=(0,Lx.createElementVNode)("path",{fill:"currentColor",d:"M768 256H353.6a32 32 0 1 1 0-64H800a32 32 0 0 1 32 32v448a32 32 0 0 1-64 0V256z"},null,-1),xx=(0,Lx.createElementVNode)("path",{fill:"currentColor",d:"M777.344 201.344a32 32 0 0 1 45.312 45.312l-544 544a32 32 0 0 1-45.312-45.312l544-544z"},null,-1),Rx=[Nx,xx];function Px(e,t,n,r,o,a){return(0,Lx.openBlock)(),(0,Lx.createElementBlock)("svg",Ax,Rx)}var Ux=f(Dx,[["render",Px],["__file","top-right.vue"]]),Vx={name:"Top"},Bx=n("7a23"),Fx={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Gx=(0,Bx.createElementVNode)("path",{fill:"currentColor",d:"M572.235 205.282v600.365a30.118 30.118 0 1 1-60.235 0V205.282L292.382 438.633a28.913 28.913 0 0 1-42.646 0 33.43 33.43 0 0 1 0-45.236l271.058-288.045a28.913 28.913 0 0 1 42.647 0L834.5 393.397a33.43 33.43 0 0 1 0 45.176 28.913 28.913 0 0 1-42.647 0l-219.618-233.23z"},null,-1),zx=[Gx];function Hx(e,t,n,r,o,a){return(0,Bx.openBlock)(),(0,Bx.createElementBlock)("svg",Fx,zx)}var Yx=f(Vx,[["render",Hx],["__file","top.vue"]]),qx={name:"TrendCharts"},Wx=n("7a23"),Kx={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},$x=(0,Wx.createElementVNode)("path",{fill:"currentColor",d:"M128 896V128h768v768H128zm291.712-327.296 128 102.4 180.16-201.792-47.744-42.624-139.84 156.608-128-102.4-180.16 201.792 47.744 42.624 139.84-156.608zM816 352a48 48 0 1 0-96 0 48 48 0 0 0 96 0z"},null,-1),Jx=[$x];function Qx(e,t,n,r,o,a){return(0,Wx.openBlock)(),(0,Wx.createElementBlock)("svg",Kx,Jx)}var Xx=f(qx,[["render",Qx],["__file","trend-charts.vue"]]),Zx={name:"TrophyBase"},eR=n("7a23"),tR={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},nR=(0,eR.createElementVNode)("path",{fill:"currentColor",d:"M918.4 201.6c-6.4-6.4-12.8-9.6-22.4-9.6H768V96c0-9.6-3.2-16-9.6-22.4C752 67.2 745.6 64 736 64H288c-9.6 0-16 3.2-22.4 9.6C259.2 80 256 86.4 256 96v96H128c-9.6 0-16 3.2-22.4 9.6-6.4 6.4-9.6 16-9.6 22.4 3.2 108.8 25.6 185.6 64 224 34.4 34.4 77.56 55.65 127.65 61.99 10.91 20.44 24.78 39.25 41.95 56.41 40.86 40.86 91 65.47 150.4 71.9V768h-96c-9.6 0-16 3.2-22.4 9.6-6.4 6.4-9.6 12.8-9.6 22.4s3.2 16 9.6 22.4c6.4 6.4 12.8 9.6 22.4 9.6h256c9.6 0 16-3.2 22.4-9.6 6.4-6.4 9.6-12.8 9.6-22.4s-3.2-16-9.6-22.4c-6.4-6.4-12.8-9.6-22.4-9.6h-96V637.26c59.4-7.71 109.54-30.01 150.4-70.86 17.2-17.2 31.51-36.06 42.81-56.55 48.93-6.51 90.02-27.7 126.79-61.85 38.4-38.4 60.8-112 64-224 0-6.4-3.2-16-9.6-22.4zM256 438.4c-19.2-6.4-35.2-19.2-51.2-35.2-22.4-22.4-35.2-70.4-41.6-147.2H256v182.4zm390.4 80C608 553.6 566.4 576 512 576s-99.2-19.2-134.4-57.6C342.4 480 320 438.4 320 384V128h384v256c0 54.4-19.2 99.2-57.6 134.4zm172.8-115.2c-16 16-32 25.6-51.2 35.2V256h92.8c-6.4 76.8-19.2 124.8-41.6 147.2zM768 896H256c-9.6 0-16 3.2-22.4 9.6-6.4 6.4-9.6 12.8-9.6 22.4s3.2 16 9.6 22.4c6.4 6.4 12.8 9.6 22.4 9.6h512c9.6 0 16-3.2 22.4-9.6 6.4-6.4 9.6-12.8 9.6-22.4s-3.2-16-9.6-22.4c-6.4-6.4-12.8-9.6-22.4-9.6z"},null,-1),rR=[nR];function oR(e,t,n,r,o,a){return(0,eR.openBlock)(),(0,eR.createElementBlock)("svg",tR,rR)}var aR=f(Zx,[["render",oR],["__file","trophy-base.vue"]]),iR={name:"Trophy"},sR=n("7a23"),cR={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},lR=(0,sR.createElementVNode)("path",{fill:"currentColor",d:"M480 896V702.08A256.256 256.256 0 0 1 264.064 512h-32.64a96 96 0 0 1-91.968-68.416L93.632 290.88a76.8 76.8 0 0 1 73.6-98.88H256V96a32 32 0 0 1 32-32h448a32 32 0 0 1 32 32v96h88.768a76.8 76.8 0 0 1 73.6 98.88L884.48 443.52A96 96 0 0 1 792.576 512h-32.64A256.256 256.256 0 0 1 544 702.08V896h128a32 32 0 1 1 0 64H352a32 32 0 1 1 0-64h128zm224-448V128H320v320a192 192 0 1 0 384 0zm64 0h24.576a32 32 0 0 0 30.656-22.784l45.824-152.768A12.8 12.8 0 0 0 856.768 256H768v192zm-512 0V256h-88.768a12.8 12.8 0 0 0-12.288 16.448l45.824 152.768A32 32 0 0 0 231.424 448H256z"},null,-1),uR=[lR];function dR(e,t,n,r,o,a){return(0,sR.openBlock)(),(0,sR.createElementBlock)("svg",cR,uR)}var pR=f(iR,[["render",dR],["__file","trophy.vue"]]),fR={name:"TurnOff"},hR=n("7a23"),mR={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},vR=(0,hR.createElementVNode)("path",{fill:"currentColor",d:"M329.956 257.138a254.862 254.862 0 0 0 0 509.724h364.088a254.862 254.862 0 0 0 0-509.724H329.956zm0-72.818h364.088a327.68 327.68 0 1 1 0 655.36H329.956a327.68 327.68 0 1 1 0-655.36z"},null,-1),gR=(0,hR.createElementVNode)("path",{fill:"currentColor",d:"M329.956 621.227a109.227 109.227 0 1 0 0-218.454 109.227 109.227 0 0 0 0 218.454zm0 72.817a182.044 182.044 0 1 1 0-364.088 182.044 182.044 0 0 1 0 364.088z"},null,-1),_R=[vR,gR];function yR(e,t,n,r,o,a){return(0,hR.openBlock)(),(0,hR.createElementBlock)("svg",mR,_R)}var bR=f(fR,[["render",yR],["__file","turn-off.vue"]]),OR={name:"Umbrella"},MR=n("7a23"),kR={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},CR=(0,MR.createElementVNode)("path",{fill:"currentColor",d:"M320 768a32 32 0 1 1 64 0 64 64 0 0 0 128 0V512H64a448 448 0 1 1 896 0H576v256a128 128 0 1 1-256 0zm570.688-320a384.128 384.128 0 0 0-757.376 0h757.376z"},null,-1),wR=[CR];function IR(e,t,n,r,o,a){return(0,MR.openBlock)(),(0,MR.createElementBlock)("svg",kR,wR)}var SR=f(OR,[["render",IR],["__file","umbrella.vue"]]),TR={name:"Unlock"},ER=n("7a23"),jR={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},DR=(0,ER.createElementVNode)("path",{fill:"currentColor",d:"M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32H224zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96z"},null,-1),LR=(0,ER.createElementVNode)("path",{fill:"currentColor",d:"M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32zm178.304-295.296A192.064 192.064 0 0 0 320 320v64h352l96 38.4V448H256V320a256 256 0 0 1 493.76-95.104l-59.456 23.808z"},null,-1),AR=[DR,LR];function NR(e,t,n,r,o,a){return(0,ER.openBlock)(),(0,ER.createElementBlock)("svg",jR,AR)}var xR=f(TR,[["render",NR],["__file","unlock.vue"]]),RR={name:"UploadFilled"},PR=n("7a23"),UR={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},VR=(0,PR.createElementVNode)("path",{fill:"currentColor",d:"M544 864V672h128L512 480 352 672h128v192H320v-1.6c-5.376.32-10.496 1.6-16 1.6A240 240 0 0 1 64 624c0-123.136 93.12-223.488 212.608-237.248A239.808 239.808 0 0 1 512 192a239.872 239.872 0 0 1 235.456 194.752c119.488 13.76 212.48 114.112 212.48 237.248a240 240 0 0 1-240 240c-5.376 0-10.56-1.28-16-1.6v1.6H544z"},null,-1),BR=[VR];function FR(e,t,n,r,o,a){return(0,PR.openBlock)(),(0,PR.createElementBlock)("svg",UR,BR)}var GR=f(RR,[["render",FR],["__file","upload-filled.vue"]]),zR={name:"Upload"},HR=n("7a23"),YR={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},qR=(0,HR.createElementVNode)("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64zm384-578.304V704h-64V247.296L237.248 490.048 192 444.8 508.8 128l316.8 316.8-45.312 45.248L544 253.696z"},null,-1),WR=[qR];function KR(e,t,n,r,o,a){return(0,HR.openBlock)(),(0,HR.createElementBlock)("svg",YR,WR)}var $R=f(zR,[["render",KR],["__file","upload.vue"]]),JR={name:"UserFilled"},QR=n("7a23"),XR={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ZR=(0,QR.createElementVNode)("path",{fill:"currentColor",d:"M288 320a224 224 0 1 0 448 0 224 224 0 1 0-448 0zm544 608H160a32 32 0 0 1-32-32v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 0 1-32 32z"},null,-1),eP=[ZR];function tP(e,t,n,r,o,a){return(0,QR.openBlock)(),(0,QR.createElementBlock)("svg",XR,eP)}var nP=f(JR,[["render",tP],["__file","user-filled.vue"]]),rP={name:"User"},oP=n("7a23"),aP={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},iP=(0,oP.createElementVNode)("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384zm0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512zm320 320v-96a96 96 0 0 0-96-96H288a96 96 0 0 0-96 96v96a32 32 0 1 1-64 0v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 1 1-64 0z"},null,-1),sP=[iP];function cP(e,t,n,r,o,a){return(0,oP.openBlock)(),(0,oP.createElementBlock)("svg",aP,sP)}var lP=f(rP,[["render",cP],["__file","user.vue"]]),uP={name:"Van"},dP=n("7a23"),pP={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},fP=(0,dP.createElementVNode)("path",{fill:"currentColor",d:"M128.896 736H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v96h164.544a32 32 0 0 1 31.616 27.136l54.144 352A32 32 0 0 1 922.688 736h-91.52a144 144 0 1 1-286.272 0H415.104a144 144 0 1 1-286.272 0zm23.36-64a143.872 143.872 0 0 1 239.488 0H568.32c17.088-25.6 42.24-45.376 71.744-55.808V256H128v416h24.256zm655.488 0h77.632l-19.648-128H704v64.896A144 144 0 0 1 807.744 672zm48.128-192-14.72-96H704v96h151.872zM688 832a80 80 0 1 0 0-160 80 80 0 0 0 0 160zm-416 0a80 80 0 1 0 0-160 80 80 0 0 0 0 160z"},null,-1),hP=[fP];function mP(e,t,n,r,o,a){return(0,dP.openBlock)(),(0,dP.createElementBlock)("svg",pP,hP)}var vP=f(uP,[["render",mP],["__file","van.vue"]]),gP={name:"VideoCameraFilled"},_P=n("7a23"),yP={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},bP=(0,_P.createElementVNode)("path",{fill:"currentColor",d:"m768 576 192-64v320l-192-64v96a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V480a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32v96zM192 768v64h384v-64H192zm192-480a160 160 0 0 1 320 0 160 160 0 0 1-320 0zm64 0a96 96 0 1 0 192.064-.064A96 96 0 0 0 448 288zm-320 32a128 128 0 1 1 256.064.064A128 128 0 0 1 128 320zm64 0a64 64 0 1 0 128 0 64 64 0 0 0-128 0z"},null,-1),OP=[bP];function MP(e,t,n,r,o,a){return(0,_P.openBlock)(),(0,_P.createElementBlock)("svg",yP,OP)}var kP=f(gP,[["render",MP],["__file","video-camera-filled.vue"]]),CP={name:"VideoCamera"},wP=n("7a23"),IP={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},SP=(0,wP.createElementVNode)("path",{fill:"currentColor",d:"M704 768V256H128v512h576zm64-416 192-96v512l-192-96v128a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32v128zm0 71.552v176.896l128 64V359.552l-128 64zM192 320h192v64H192v-64z"},null,-1),TP=[SP];function EP(e,t,n,r,o,a){return(0,wP.openBlock)(),(0,wP.createElementBlock)("svg",IP,TP)}var jP=f(CP,[["render",EP],["__file","video-camera.vue"]]),DP={name:"VideoPause"},LP=n("7a23"),AP={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},NP=(0,LP.createElementVNode)("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768zm-96-544q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32zm192 0q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32z"},null,-1),xP=[NP];function RP(e,t,n,r,o,a){return(0,LP.openBlock)(),(0,LP.createElementBlock)("svg",AP,xP)}var PP=f(DP,[["render",RP],["__file","video-pause.vue"]]),UP={name:"VideoPlay"},VP=n("7a23"),BP={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},FP=(0,VP.createElementVNode)("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768zm-48-247.616L668.608 512 464 375.616v272.768zm10.624-342.656 249.472 166.336a48 48 0 0 1 0 79.872L474.624 718.272A48 48 0 0 1 400 678.336V345.6a48 48 0 0 1 74.624-39.936z"},null,-1),GP=[FP];function zP(e,t,n,r,o,a){return(0,VP.openBlock)(),(0,VP.createElementBlock)("svg",BP,GP)}var HP=f(UP,[["render",zP],["__file","video-play.vue"]]),YP={name:"View"},qP=n("7a23"),WP={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},KP=(0,qP.createElementVNode)("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),$P=[KP];function JP(e,t,n,r,o,a){return(0,qP.openBlock)(),(0,qP.createElementBlock)("svg",WP,$P)}var QP=f(YP,[["render",JP],["__file","view.vue"]]),XP={name:"WalletFilled"},ZP=n("7a23"),eU={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},tU=(0,ZP.createElementVNode)("path",{fill:"currentColor",d:"M688 512a112 112 0 1 0 0 224h208v160H128V352h768v160H688zm32 160h-32a48 48 0 0 1 0-96h32a48 48 0 0 1 0 96zm-80-544 128 160H384l256-160z"},null,-1),nU=[tU];function rU(e,t,n,r,o,a){return(0,ZP.openBlock)(),(0,ZP.createElementBlock)("svg",eU,nU)}var oU=f(XP,[["render",rU],["__file","wallet-filled.vue"]]),aU={name:"Wallet"},iU=n("7a23"),sU={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},cU=(0,iU.createElementVNode)("path",{fill:"currentColor",d:"M640 288h-64V128H128v704h384v32a32 32 0 0 0 32 32H96a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32h512a32 32 0 0 1 32 32v192z"},null,-1),lU=(0,iU.createElementVNode)("path",{fill:"currentColor",d:"M128 320v512h768V320H128zm-32-64h832a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32z"},null,-1),uU=(0,iU.createElementVNode)("path",{fill:"currentColor",d:"M704 640a64 64 0 1 1 0-128 64 64 0 0 1 0 128z"},null,-1),dU=[cU,lU,uU];function pU(e,t,n,r,o,a){return(0,iU.openBlock)(),(0,iU.createElementBlock)("svg",sU,dU)}var fU=f(aU,[["render",pU],["__file","wallet.vue"]]),hU={name:"WarnTriangleFilled"},mU=n("7a23"),vU={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},gU=(0,mU.createElementVNode)("path",{fill:"currentColor",d:"M928.99 755.83 574.6 203.25c-12.89-20.16-36.76-32.58-62.6-32.58s-49.71 12.43-62.6 32.58L95.01 755.83c-12.91 20.12-12.9 44.91.01 65.03 12.92 20.12 36.78 32.51 62.59 32.49h708.78c25.82.01 49.68-12.37 62.59-32.49 12.91-20.12 12.92-44.91.01-65.03zM554.67 768h-85.33v-85.33h85.33V768zm0-426.67v298.66h-85.33V341.32l85.33.01z"},null,-1),_U=[gU];function yU(e,t,n,r,o,a){return(0,mU.openBlock)(),(0,mU.createElementBlock)("svg",vU,_U)}var bU=f(hU,[["render",yU],["__file","warn-triangle-filled.vue"]]),OU={name:"WarningFilled"},MU=n("7a23"),kU={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},CU=(0,MU.createElementVNode)("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),wU=[CU];function IU(e,t,n,r,o,a){return(0,MU.openBlock)(),(0,MU.createElementBlock)("svg",kU,wU)}var SU=f(OU,[["render",IU],["__file","warning-filled.vue"]]),TU={name:"Warning"},EU=n("7a23"),jU={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},DU=(0,EU.createElementVNode)("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768zm48-176a48 48 0 1 1-96 0 48 48 0 0 1 96 0zm-48-464a32 32 0 0 1 32 32v288a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32z"},null,-1),LU=[DU];function AU(e,t,n,r,o,a){return(0,EU.openBlock)(),(0,EU.createElementBlock)("svg",jU,LU)}var NU=f(TU,[["render",AU],["__file","warning.vue"]]),xU={name:"Watch"},RU=n("7a23"),PU={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},UU=(0,RU.createElementVNode)("path",{fill:"currentColor",d:"M512 768a256 256 0 1 0 0-512 256 256 0 0 0 0 512zm0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640z"},null,-1),VU=(0,RU.createElementVNode)("path",{fill:"currentColor",d:"M480 352a32 32 0 0 1 32 32v160a32 32 0 0 1-64 0V384a32 32 0 0 1 32-32z"},null,-1),BU=(0,RU.createElementVNode)("path",{fill:"currentColor",d:"M480 512h128q32 0 32 32t-32 32H480q-32 0-32-32t32-32zm128-256V128H416v128h-64V64h320v192h-64zM416 768v128h192V768h64v192H352V768h64z"},null,-1),FU=[UU,VU,BU];function GU(e,t,n,r,o,a){return(0,RU.openBlock)(),(0,RU.createElementBlock)("svg",PU,FU)}var zU=f(xU,[["render",GU],["__file","watch.vue"]]),HU={name:"Watermelon"},YU=n("7a23"),qU={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},WU=(0,YU.createElementVNode)("path",{fill:"currentColor",d:"m683.072 600.32-43.648 162.816-61.824-16.512 53.248-198.528L576 493.248l-158.4 158.4-45.248-45.248 158.4-158.4-55.616-55.616-198.528 53.248-16.512-61.824 162.816-43.648L282.752 200A384 384 0 0 0 824 741.248L683.072 600.32zm231.552 141.056a448 448 0 1 1-632-632l632 632z"},null,-1),KU=[WU];function $U(e,t,n,r,o,a){return(0,YU.openBlock)(),(0,YU.createElementBlock)("svg",qU,KU)}var JU=f(HU,[["render",$U],["__file","watermelon.vue"]]),QU={name:"WindPower"},XU=n("7a23"),ZU={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},eV=(0,XU.createElementVNode)("path",{fill:"currentColor",d:"M160 64q32 0 32 32v832q0 32-32 32t-32-32V96q0-32 32-32zm416 354.624 128-11.584V168.96l-128-11.52v261.12zm-64 5.824V151.552L320 134.08V160h-64V64l616.704 56.064A96 96 0 0 1 960 215.68v144.64a96 96 0 0 1-87.296 95.616L256 512V224h64v217.92l192-17.472zm256-23.232 98.88-8.96A32 32 0 0 0 896 360.32V215.68a32 32 0 0 0-29.12-31.872l-98.88-8.96v226.368z"},null,-1),tV=[eV];function nV(e,t,n,r,o,a){return(0,XU.openBlock)(),(0,XU.createElementBlock)("svg",ZU,tV)}var rV=f(QU,[["render",nV],["__file","wind-power.vue"]]),oV={name:"ZoomIn"},aV=n("7a23"),iV={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},sV=(0,aV.createElementVNode)("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),cV=[sV];function lV(e,t,n,r,o,a){return(0,aV.openBlock)(),(0,aV.createElementBlock)("svg",iV,cV)}var uV=f(oV,[["render",lV],["__file","zoom-in.vue"]]),dV={name:"ZoomOut"},pV=n("7a23"),fV={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},hV=(0,pV.createElementVNode)("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),mV=[hV];function vV(e,t,n,r,o,a){return(0,pV.openBlock)(),(0,pV.createElementBlock)("svg",fV,mV)}var gV=f(dV,[["render",vV],["__file","zoom-out.vue"]])},"9b8d":function(e,t,n){"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},"9bb8":function(e,t,n){"use strict";var r=n("a5eb"),o=n("06fa"),a=n("a421"),i=n("44ba").f,s=n("c1b2"),c=!s||o((function(){i(1)}));r({target:"Object",stat:!0,forced:c,sham:!s},{getOwnPropertyDescriptor:function(e,t){return i(a(e),t)}})},"9bf2":function(e,t,n){"use strict";var r=n("83ab"),o=n("0cfb"),a=n("aed9"),i=n("825a"),s=n("a04b"),c=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d="enumerable",p="configurable",f="writable";t.f=r?a?function(e,t,n){if(i(e),t=s(t),i(n),"function"===typeof e&&"prototype"===t&&"value"in n&&f in n&&!n[f]){var r=u(e,t);r&&r[f]&&(e[t]=n.value,n={configurable:p in n?n[p]:r[p],enumerable:d in n?n[d]:r[d],writable:!1})}return l(e,t,n)}:l:function(e,t,n){if(i(e),t=s(t),i(n),o)try{return l(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}},"9c8b":function(e,t,n){"use strict";var r=n("a5eb"),o=n("0e6f"),a=n("c978"),i=n("1301"),s=n("d659"),c=n("e0b4"),l=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!c},{keyFor:function(e){if(!a(e))throw TypeError(i(e)+" is not a symbol");if(o(l,e))return l[e]}})},"9c96":function(e,t,n){"use strict";var r=n("06fa"),o=n("0363"),a=n("4aa6"),i=o("species");e.exports=function(e){return a>=51||!r((function(){var t=[],n=t.constructor={};return n[i]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},"9e51":function(e,t,n){"use strict";var r=n("f96e"),o=TypeError;e.exports=function(e){if(r(e))throw o("The method doesn't accept regular expressions");return e}},"9e57":function(e,t,n){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"9e6a":function(e,t,n){"use strict";var r=n("d233"),o=Object.prototype.hasOwnProperty,a=Array.isArray,i={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},c=function(e,t){return e&&"string"===typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},l="utf8=%26%2310003%3B",u="utf8=%E2%9C%93",d=function(e,t){var n,d={__proto__:null},p=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,f=t.parameterLimit===1/0?void 0:t.parameterLimit,h=p.split(t.delimiter,f),m=-1,v=t.charset;if(t.charsetSentinel)for(n=0;n<h.length;++n)0===h[n].indexOf("utf8=")&&(h[n]===u?v="utf-8":h[n]===l&&(v="iso-8859-1"),m=n,n=h.length);for(n=0;n<h.length;++n)if(n!==m){var g,_,y=h[n],b=y.indexOf("]="),O=-1===b?y.indexOf("="):b+1;-1===O?(g=t.decoder(y,i.decoder,v,"key"),_=t.strictNullHandling?null:""):(g=t.decoder(y.slice(0,O),i.decoder,v,"key"),_=r.maybeMap(c(y.slice(O+1),t),(function(e){return t.decoder(e,i.decoder,v,"value")}))),_&&t.interpretNumericEntities&&"iso-8859-1"===v&&(_=s(_)),y.indexOf("[]=")>-1&&(_=a(_)?[_]:_),o.call(d,g)?d[g]=r.combine(d[g],_):d[g]=_}return d},p=function(e,t,n,r){for(var o=r?t:c(t,n),a=e.length-1;a>=0;--a){var i,s=e[a];if("[]"===s&&n.parseArrays)i=[].concat(o);else{i=n.plainObjects?Object.create(null):{};var l="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=parseInt(l,10);n.parseArrays||""!==l?!isNaN(u)&&s!==l&&String(u)===l&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(i=[],i[u]=o):"__proto__"!==l&&(i[l]=o):i={0:o}}o=i}return o},f=function(e,t,n,r){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,c=n.depth>0&&i.exec(a),l=c?a.slice(0,c.index):a,u=[];if(l){if(!n.plainObjects&&o.call(Object.prototype,l)&&!n.allowPrototypes)return;u.push(l)}var d=0;while(n.depth>0&&null!==(c=s.exec(a))&&d<n.depth){if(d+=1,!n.plainObjects&&o.call(Object.prototype,c[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(c[1])}return c&&u.push("["+a.slice(c.index)+"]"),p(u,t,n,r)}},h=function(e){if(!e)return i;if(null!==e.decoder&&void 0!==e.decoder&&"function"!==typeof e.decoder)throw new TypeError("Decoder has to be a function.");if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t="undefined"===typeof e.charset?i.charset:e.charset;return{allowDots:"undefined"===typeof e.allowDots?i.allowDots:!!e.allowDots,allowPrototypes:"boolean"===typeof e.allowPrototypes?e.allowPrototypes:i.allowPrototypes,allowSparse:"boolean"===typeof e.allowSparse?e.allowSparse:i.allowSparse,arrayLimit:"number"===typeof e.arrayLimit?e.arrayLimit:i.arrayLimit,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:i.charsetSentinel,comma:"boolean"===typeof e.comma?e.comma:i.comma,decoder:"function"===typeof e.decoder?e.decoder:i.decoder,delimiter:"string"===typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:i.delimiter,depth:"number"===typeof e.depth||!1===e.depth?+e.depth:i.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"===typeof e.interpretNumericEntities?e.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"===typeof e.parameterLimit?e.parameterLimit:i.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"===typeof e.plainObjects?e.plainObjects:i.plainObjects,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:i.strictNullHandling}};e.exports=function(e,t){var n=h(t);if(""===e||null===e||"undefined"===typeof e)return n.plainObjects?Object.create(null):{};for(var o="string"===typeof e?d(e,n):e,a=n.plainObjects?Object.create(null):{},i=Object.keys(o),s=0;s<i.length;++s){var c=i[s],l=f(c,o[c],n,"string"===typeof e);a=r.merge(a,l,n)}return!0===n.allowSparse?a:r.compact(a)}},"9f26":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,n=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,r=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,o=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i],a=e.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:t,monthsShortStrictRegex:n,monthsParse:o,longMonthsParse:o,shortMonthsParse:o,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case"D":return e+(1===e?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}});return a}))},"9f61":function(e,t,n){"use strict";var r=n("06fa");e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){return 1},1)}))}},"9ff4":function(e,t,n){"use strict";n.r(t),function(e){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,"EMPTY_ARR",(function(){return a})),n.d(t,"EMPTY_OBJ",(function(){return o})),n.d(t,"NO",(function(){return s})),n.d(t,"NOOP",(function(){return i})),n.d(t,"PatchFlagNames",(function(){return K})),n.d(t,"camelize",(function(){return N})),n.d(t,"capitalize",(function(){return P})),n.d(t,"def",(function(){return F})),n.d(t,"escapeHtml",(function(){return we})),n.d(t,"escapeHtmlComment",(function(){return Se})),n.d(t,"extend",(function(){return d})),n.d(t,"genPropsAccessExp",(function(){return W})),n.d(t,"generateCodeFrame",(function(){return Z})),n.d(t,"getGlobalThis",(function(){return Y})),n.d(t,"hasChanged",(function(){return V})),n.d(t,"hasOwn",(function(){return h})),n.d(t,"hyphenate",(function(){return R})),n.d(t,"includeBooleanAttr",(function(){return ge})),n.d(t,"invokeArrayFns",(function(){return B})),n.d(t,"isArray",(function(){return m})),n.d(t,"isBooleanAttr",(function(){return ve})),n.d(t,"isBuiltInDirective",(function(){return D})),n.d(t,"isDate",(function(){return _})),n.d(t,"isFunction",(function(){return b})),n.d(t,"isGloballyWhitelisted",(function(){return Q})),n.d(t,"isHTMLTag",(function(){return de})),n.d(t,"isIntegerKey",(function(){return E})),n.d(t,"isKnownHtmlAttr",(function(){return Me})),n.d(t,"isKnownSvgAttr",(function(){return ke})),n.d(t,"isMap",(function(){return v})),n.d(t,"isModelListener",(function(){return u})),n.d(t,"isObject",(function(){return k})),n.d(t,"isOn",(function(){return l})),n.d(t,"isPlainObject",(function(){return T})),n.d(t,"isPromise",(function(){return C})),n.d(t,"isRegExp",(function(){return y})),n.d(t,"isReservedProp",(function(){return j})),n.d(t,"isSSRSafeAttrName",(function(){return be})),n.d(t,"isSVGTag",(function(){return pe})),n.d(t,"isSet",(function(){return g})),n.d(t,"isSpecialBooleanAttr",(function(){return me})),n.d(t,"isString",(function(){return O})),n.d(t,"isSymbol",(function(){return M})),n.d(t,"isVoidTag",(function(){return fe})),n.d(t,"looseEqual",(function(){return Ee})),n.d(t,"looseIndexOf",(function(){return je})),n.d(t,"looseToNumber",(function(){return G})),n.d(t,"makeMap",(function(){return r})),n.d(t,"normalizeClass",(function(){return ie})),n.d(t,"normalizeProps",(function(){return se})),n.d(t,"normalizeStyle",(function(){return ee})),n.d(t,"objectToString",(function(){return w})),n.d(t,"parseStringStyle",(function(){return oe})),n.d(t,"propsToAttrMap",(function(){return Oe})),n.d(t,"remove",(function(){return p})),n.d(t,"slotFlagsText",(function(){return $})),n.d(t,"stringifyStyle",(function(){return ae})),n.d(t,"toDisplayString",(function(){return De})),n.d(t,"toHandlerKey",(function(){return U})),n.d(t,"toNumber",(function(){return z})),n.d(t,"toRawType",(function(){return S})),n.d(t,"toTypeString",(function(){return I}));const o={},a=[],i=()=>{},s=()=>!1,c=/^on[^a-z]/,l=e=>c.test(e),u=e=>e.startsWith("onUpdate:"),d=Object.assign,p=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},f=Object.prototype.hasOwnProperty,h=(e,t)=>f.call(e,t),m=Array.isArray,v=e=>"[object Map]"===I(e),g=e=>"[object Set]"===I(e),_=e=>"[object Date]"===I(e),y=e=>"[object RegExp]"===I(e),b=e=>"function"===typeof e,O=e=>"string"===typeof e,M=e=>"symbol"===typeof e,k=e=>null!==e&&"object"===typeof e,C=e=>k(e)&&b(e.then)&&b(e.catch),w=Object.prototype.toString,I=e=>w.call(e),S=e=>I(e).slice(8,-1),T=e=>"[object Object]"===I(e),E=e=>O(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,j=r(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),D=r("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),L=e=>{const t=Object.create(null);return n=>{const r=t[n];return r||(t[n]=e(n))}},A=/-(\w)/g,N=L(e=>e.replace(A,(e,t)=>t?t.toUpperCase():"")),x=/\B([A-Z])/g,R=L(e=>e.replace(x,"-$1").toLowerCase()),P=L(e=>e.charAt(0).toUpperCase()+e.slice(1)),U=L(e=>e?"on"+P(e):""),V=(e,t)=>!Object.is(e,t),B=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},F=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},G=e=>{const t=parseFloat(e);return isNaN(t)?e:t},z=e=>{const t=O(e)?Number(e):NaN;return isNaN(t)?e:t};let H;const Y=()=>H||(H="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof e?e:{}),q=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;function W(e){return q.test(e)?"__props."+e:`__props[${JSON.stringify(e)}]`}const K={[1]:"TEXT",[2]:"CLASS",[4]:"STYLE",[8]:"PROPS",[16]:"FULL_PROPS",[32]:"HYDRATE_EVENTS",[64]:"STABLE_FRAGMENT",[128]:"KEYED_FRAGMENT",[256]:"UNKEYED_FRAGMENT",[512]:"NEED_PATCH",[1024]:"DYNAMIC_SLOTS",[2048]:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},$={[1]:"STABLE",[2]:"DYNAMIC",[3]:"FORWARDED"},J="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console",Q=r(J),X=2;function Z(e,t=0,n=e.length){let r=e.split(/(\r?\n)/);const o=r.filter((e,t)=>t%2===1);r=r.filter((e,t)=>t%2===0);let a=0;const i=[];for(let s=0;s<r.length;s++)if(a+=r[s].length+(o[s]&&o[s].length||0),a>=t){for(let e=s-X;e<=s+X||n>a;e++){if(e<0||e>=r.length)continue;const c=e+1;i.push(`${c}${" ".repeat(Math.max(3-String(c).length,0))}| ${r[e]}`);const l=r[e].length,u=o[e]&&o[e].length||0;if(e===s){const e=t-(a-(l+u)),r=Math.max(1,n>a?l-e:n-t);i.push(" | "+" ".repeat(e)+"^".repeat(r))}else if(e>s){if(n>a){const e=Math.max(Math.min(n-a,l),1);i.push(" | "+"^".repeat(e))}a+=l+u}}break}return i.join("\n")}function ee(e){if(m(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=O(r)?oe(r):ee(r);if(o)for(const e in o)t[e]=o[e]}return t}return O(e)||k(e)?e:void 0}const te=/;(?![^(]*\))/g,ne=/:([^]+)/,re=/\/\*[^]*?\*\//g;function oe(e){const t={};return e.replace(re,"").split(te).forEach(e=>{if(e){const n=e.split(ne);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function ae(e){let t="";if(!e||O(e))return t;for(const n in e){const r=e[n],o=n.startsWith("--")?n:R(n);(O(r)||"number"===typeof r)&&(t+=`${o}:${r};`)}return t}function ie(e){let t="";if(O(e))t=e;else if(m(e))for(let n=0;n<e.length;n++){const r=ie(e[n]);r&&(t+=r+" ")}else if(k(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function se(e){if(!e)return null;let{class:t,style:n}=e;return t&&!O(t)&&(e.class=ie(t)),n&&(e.style=ee(n)),e}const ce="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",le="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",ue="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",de=r(ce),pe=r(le),fe=r(ue),he="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",me=r(he),ve=r(he+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");function ge(e){return!!e||""===e}const _e=/[>/="'\u0009\u000a\u000c\u0020]/,ye={};function be(e){if(ye.hasOwnProperty(e))return ye[e];const t=_e.test(e);return t&&console.error("unsafe attribute name: "+e),ye[e]=!t}const Oe={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},Me=r("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap"),ke=r("xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan"),Ce=/["'&<>]/;function we(e){const t=""+e,n=Ce.exec(t);if(!n)return t;let r,o,a="",i=0;for(o=n.index;o<t.length;o++){switch(t.charCodeAt(o)){case 34:r=""";break;case 38:r="&";break;case 39:r="'";break;case 60:r="<";break;case 62:r=">";break;default:continue}i!==o&&(a+=t.slice(i,o)),i=o+1,a+=r}return i!==o?a+t.slice(i,o):a}const Ie=/^-?>|<!--|-->|--!>|<!-$/g;function Se(e){return e.replace(Ie,"")}function Te(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Ee(e[r],t[r]);return n}function Ee(e,t){if(e===t)return!0;let n=_(e),r=_(t);if(n||r)return!(!n||!r)&&e.getTime()===t.getTime();if(n=M(e),r=M(t),n||r)return e===t;if(n=m(e),r=m(t),n||r)return!(!n||!r)&&Te(e,t);if(n=k(e),r=k(t),n||r){if(!n||!r)return!1;const o=Object.keys(e).length,a=Object.keys(t).length;if(o!==a)return!1;for(const n in e){const r=e.hasOwnProperty(n),o=t.hasOwnProperty(n);if(r&&!o||!r&&o||!Ee(e[n],t[n]))return!1}}return String(e)===String(t)}function je(e,t){return e.findIndex(e=>Ee(e,t))}const De=e=>O(e)?e:null==e?"":m(e)||k(e)&&(e.toString===w||!b(e.toString))?JSON.stringify(e,Le,2):String(e),Le=(e,t)=>t&&t.__v_isRef?Le(e,t.value):v(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n])=>(e[t+" =>"]=n,e),{})}:g(t)?{[`Set(${t.size})`]:[...t.values()]}:!k(t)||m(t)||T(t)?t:String(t)}.call(this,n("c8ba"))},a016:function(e,t,n){"use strict";var r=n("b323"),o=n("9e57");e.exports=Object.keys||function(e){return r(e,o)}},a019:function(e,t,n){"use strict";var r=n("b311"),o=n.n(r);t["a"]=e=>{const t=void 0===(null===e||void 0===e?void 0:e.appendToBody)||e.appendToBody;return{toClipboard(e,n){return new Promise((r,a)=>{const i=document.createElement("button"),s=new o.a(i,{text:()=>e,action:()=>"copy",container:void 0!==n?n:document.body});s.on("success",e=>{s.destroy(),r(e)}),s.on("error",e=>{s.destroy(),a(e)}),t&&document.body.appendChild(i),i.click(),t&&document.body.removeChild(i)})}}}},a04b:function(e,t,n){"use strict";var r=n("c04e"),o=n("d9b5");e.exports=function(e){var t=r(e,"string");return o(t)?t:t+""}},a0b9:function(e,t,n){"use strict";var r=n("a180"),o=Function.prototype,a=o.apply,i=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?i.bind(a):function(){return i.apply(a,arguments)})},a0bf:function(e,t,n){"use strict";var r=Number.isNaN||function(e){return"number"===typeof e&&e!==e};function o(e,t){return e===t||!(!r(e)||!r(t))}function a(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!o(e[n],t[n]))return!1;return!0}function i(e,t){void 0===t&&(t=a);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 a=e.apply(this,r);return n={lastResult:a,lastArgs:r,lastThis:this},a}return r.clear=function(){n=null},r}e.exports=i},a0bf7:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mostReadable=t.isReadable=t.readability=void 0;var r=n("740b");function o(e,t){var n=new r.TinyColor(e),o=new r.TinyColor(t);return(Math.max(n.getLuminance(),o.getLuminance())+.05)/(Math.min(n.getLuminance(),o.getLuminance())+.05)}function a(e,t,n){var r,a;void 0===n&&(n={level:"AA",size:"small"});var i=o(e,t);switch((null!==(r=n.level)&&void 0!==r?r:"AA")+(null!==(a=n.size)&&void 0!==a?a:"small")){case"AAsmall":case"AAAlarge":return i>=4.5;case"AAlarge":return i>=3;case"AAAsmall":return i>=7;default:return!1}}function i(e,t,n){void 0===n&&(n={includeFallbackColors:!1,level:"AA",size:"small"});for(var s=null,c=0,l=n.includeFallbackColors,u=n.level,d=n.size,p=0,f=t;p<f.length;p++){var h=f[p],m=o(e,h);m>c&&(c=m,s=new r.TinyColor(h))}return a(e,s,{level:u,size:d})||!l?s:(n.includeFallbackColors=!1,i(e,["#fff","#000"],n))}t.readability=o,t.isReadable=a,t.mostReadable=i},a0cd:function(e,t,n){"use strict";n("0aa1");var r=n("764b");e.exports=r.Object.keys},a0d3:function(e,t,n){"use strict";var r=n("0f7c");e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},a0e5:function(e,t,n){"use strict";var r=n("06fa"),o=n("fb2d"),a=/#|\.prototype\./,i=function(e,t){var n=c[s(e)];return n==u||n!=l&&(o(t)?r(t):!!t)},s=i.normalize=function(e){return String(e).replace(a,".").toLowerCase()},c=i.data={},l=i.NATIVE="N",u=i.POLYFILL="P";e.exports=i},a0e6:function(e,t,n){"use strict";var r,o,a,i,s,c=n("3ac6"),l=n("6414"),u=n("44ba").f,d=n("5afb").set,p=n("e889"),f=n("0f59"),h=n("3eda"),m=n("f86d"),v=n("0149"),g=c.MutationObserver||c.WebKitMutationObserver,_=c.document,y=c.process,b=c.Promise,O=u(c,"queueMicrotask"),M=O&&O.value;if(!M){var k=new p,C=function(){var e,t;v&&(e=y.domain)&&e.exit();while(t=k.get())try{t()}catch(n){throw k.head&&r(),n}e&&e.enter()};f||v||m||!g||!_?!h&&b&&b.resolve?(i=b.resolve(void 0),i.constructor=b,s=l(i.then,i),r=function(){s(C)}):v?r=function(){y.nextTick(C)}:(d=l(d,c),r=function(){d(C)}):(o=!0,a=_.createTextNode(""),new g(C).observe(a,{characterData:!0}),r=function(){a.data=o=!o}),M=function(e){k.head||r(),k.add(e)}}e.exports=M},a169:function(e,t,n){"use strict";var r=n("764b");e.exports=function(e){return r[e+"Prototype"]}},a180:function(e,t,n){"use strict";var r=n("06fa");e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},a205:function(e,t,n){"use strict";t.f=Object.getOwnPropertySymbols},a258:function(e,t,n){"use strict";var r=n("0366"),o=n("44ad"),a=n("7b0b"),i=n("07fa"),s=function(e){var t=1==e;return function(n,s,c){var l,u,d=a(n),p=o(d),f=r(s,c),h=i(p);while(h-- >0)if(l=p[h],u=f(l,h,d),u)switch(e){case 0:return l;case 1:return h}return t?-1:void 0}};e.exports={findLast:s(0),findLastIndex:s(1)}},a356:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},n={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},r=function(e){return function(r,o,a,i){var s=t(r),c=n[e][t(r)];return 2===s&&(c=c[o?0:1]),c.replace(/%d/i,r)}},o=["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],a=e.defineLocale("ar-dz",{months:o,monthsShort:o,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:0,doy:4}});return a}))},a38c:function(e,t,n){"use strict";n("3e476");var r=n("764b"),o=r.Object,a=e.exports=function(e,t,n){return o.defineProperty(e,t,n)};o.defineProperty.sham&&(a.sham=!0)},a3e3:function(e,t,n){e.exports=n("6c5d")},a3f5:function(e,t,n){"use strict";var r=n("7106"),o=n("fb2d"),a=n("dfdb"),i=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&o(n=e.toString)&&!a(s=r(n,e)))return s;if(o(n=e.valueOf)&&!a(s=r(n,e)))return s;if("string"!==t&&o(n=e.toString)&&!a(s=r(n,e)))return s;throw i("Can't convert object to primitive value")}},a421:function(e,t,n){"use strict";var r=n("638c"),o=n("1875");e.exports=function(e){return r(o(e))}},a465:function(e,t,n){"use strict";var r=n("9717");e.exports=/MSIE|Trident/.test(r)},a493:function(e,t,n){"use strict";n("715d"),n("8d05");var r=n("beea");e.exports=r.f("toPrimitive")},a4fc:function(e,t,n){e.exports=n("0a43")},a551:function(e,t,n){"use strict";var r=n("a5eb"),o=n("06fa"),a=n("8e11").f,i=o((function(){return!Object.getOwnPropertyNames(1)}));r({target:"Object",stat:!0,forced:i},{getOwnPropertyNames:a})},a5eb:function(e,t,n){"use strict";var r=n("3ac6"),o=n("a0b9"),a=n("13cf"),i=n("fb2d"),s=n("44ba").f,c=n("a0e5"),l=n("764b"),u=n("6414"),d=n("0273"),p=n("0e6f"),f=function(e){var t=function(n,r,a){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,a)}return o(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var n,o,h,m,v,g,_,y,b,O=e.target,M=e.global,k=e.stat,C=e.proto,w=M?r:k?r[O]:(r[O]||{}).prototype,I=M?l:l[O]||d(l,O,{})[O],S=I.prototype;for(m in t)n=c(M?m:O+(k?".":"#")+m,e.forced),o=!n&&w&&p(w,m),g=I[m],o&&(e.dontCallGetSet?(b=s(w,m),_=b&&b.value):_=w[m]),v=o&&_?_:t[m],o&&typeof g==typeof v||(y=e.bind&&o?u(v,r):e.wrap&&o?f(v):C&&i(v)?a(v):v,(e.sham||v&&v.sham||g&&g.sham)&&d(y,"sham",!0),d(I,m,y),C&&(h=O+"Prototype",p(l,h)||d(l,h,{}),d(l[h],m,v),e.real&&S&&(n||!S[m])&&d(S,m,v)))}},a7ea:function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return o}));var r=n("7d20");const o=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),a=e=>Object(r["capitalize"])(e)},a7fa:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des".split("_"),weekdays:"Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm"},calendar:{sameDay:"[Bi lɛrɛ] LT",nextDay:"[Sini lɛrɛ] LT",nextWeek:"dddd [don lɛrɛ] LT",lastDay:"[Kunu lɛrɛ] LT",lastWeek:"dddd [tɛmɛnen lɛrɛ] LT",sameElse:"L"},relativeTime:{future:"%s kɔnɔ",past:"a bɛ %s bɔ",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"lɛrɛ kelen",hh:"lɛrɛ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}});return t}))},a8b3:function(e,t,n){"use strict";var r=n("a5eb"),o=n("99a4");r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},a902:function(e,t,n){"use strict";n("0054");var r=n("764b"),o=n("a0b9");r.JSON||(r.JSON={stringify:JSON.stringify}),e.exports=function(e,t,n){return o(r.JSON.stringify,null,arguments)}},a93d:function(e,t,n){"use strict";var r=n("9717"),o=r.match(/AppleWebKit\/(\d+)\./);e.exports=!!o&&+o[1]},aa1b:function(e,t,n){"use strict";var r=n("f94a");r("unscopables")},aa9b:function(e,t,n){"use strict";var r=n("5ab9");e.exports=r},aaf2:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
function t(e,t,n,r){var o={s:["थोडया सॅकंडांनी","थोडे सॅकंड"],ss:[e+" सॅकंडांनी",e+" सॅकंड"],m:["एका मिणटान","एक मिनूट"],mm:[e+" मिणटांनी",e+" मिणटां"],h:["एका वरान","एक वर"],hh:[e+" वरांनी",e+" वरां"],d:["एका दिसान","एक दीस"],dd:[e+" दिसांनी",e+" दीस"],M:["एका म्हयन्यान","एक म्हयनो"],MM:[e+" म्हयन्यानी",e+" म्हयने"],y:["एका वर्सान","एक वर्स"],yy:[e+" वर्सांनी",e+" वर्सां"]};return r?o[n][0]:o[n][1]}var n=e.defineLocale("gom-deva",{months:{standalone:"जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),format:"जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार".split("_"),weekdaysShort:"आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.".split("_"),weekdaysMin:"आ_सो_मं_बु_ब्रे_सु_शे".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [वाजतां]",LTS:"A h:mm:ss [वाजतां]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [वाजतां]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [वाजतां]",llll:"ddd, D MMM YYYY, A h:mm [वाजतां]"},calendar:{sameDay:"[आयज] LT",nextDay:"[फाल्यां] LT",nextWeek:"[फुडलो] dddd[,] LT",lastDay:"[काल] LT",lastWeek:"[फाटलो] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s आदीं",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(वेर)/,ordinal:function(e,t){switch(t){case"D":return e+"वेर";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:0,doy:3},meridiemParse:/राती|सकाळीं|दनपारां|सांजे/,meridiemHour:function(e,t){return 12===e&&(e=0),"राती"===t?e<4?e:e+12:"सकाळीं"===t?e:"दनपारां"===t?e>12?e:e+12:"सांजे"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"राती":e<12?"सकाळीं":e<16?"दनपारां":e<20?"सांजे":"राती"}});return n}))},ab36:function(e,t,n){"use strict";var r=n("861d"),o=n("9112");e.exports=function(e,t){r(t)&&"cause"in t&&o(e,"cause",t.cause)}},abc5:function(e,t,n){"use strict";(function(e){function r(){return o().__VUE_DEVTOOLS_GLOBAL_HOOK__}function o(){return"undefined"!==typeof navigator&&"undefined"!==typeof window?window:"undefined"!==typeof e?e:{}}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a}));const a="function"===typeof Proxy}).call(this,n("c8ba"))},abf2:function(e,t,n){"use strict";var r=n("1c29");n("5145"),e.exports=r},ac0c:function(e,t,n){"use strict";n("de6a");var r=n("764b");e.exports=r.Object.getPrototypeOf},acf5:function(e,t,n){e.exports=n("4402")},ad27:function(e,t,n){"use strict";var r=n("4e19"),o=TypeError,a=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw o("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new a(e)}},ad6d:function(e,t,n){"use strict";var r=n("825a");e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},ada2:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
function t(e,t){var n=e.split("_");return t%10===1&&t%100!==11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function n(e,n,r){var o={ss:n?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:n?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:n?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"};return"m"===r?n?"хвилина":"хвилину":"h"===r?n?"година":"годину":e+" "+t(o[r],+e)}function r(e,t){var n,r={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return!0===e?r["nominative"].slice(1,7).concat(r["nominative"].slice(0,1)):e?(n=/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative",r[n][e.day()]):r["nominative"]}function o(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}var a=e.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:r,weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:o("[Сьогодні "),nextDay:o("[Завтра "),lastDay:o("[Вчора "),nextWeek:o("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return o("[Минулої] dddd [").call(this);case 1:case 2:case 4:return o("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:n,m:n,mm:n,h:"годину",hh:n,d:"день",dd:n,M:"місяць",MM:n,y:"рік",yy:n},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(e){return/^(дня|вечора)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночі":e<12?"ранку":e<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}});return a}))},ade5:function(e,t,n){"use strict";var r=n("e890"),o=Math.floor,a=function(e,t){var n=e.length,c=o(n/2);return n<8?i(e,t):s(e,a(r(e,0,c),t),a(r(e,c),t),t)},i=function(e,t){var n,r,o=e.length,a=1;while(a<o){r=a,n=e[a];while(r&&t(e[r-1],n)>0)e[r]=e[--r];r!==a++&&(e[r]=n)}return e},s=function(e,t,n,r){var o=t.length,a=n.length,i=0,s=0;while(i<o||s<a)e[i+s]=i<o&&s<a?r(t[i],n[s])<=0?t[i++]:n[s++]:i<o?t[i++]:n[s++];return e};e.exports=a},aeaa:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.legacyRandom=t.fromRatio=void 0;var r=n("740b"),o=n("1127");function a(e,t){var n={r:(0,o.convertToPercentage)(e.r),g:(0,o.convertToPercentage)(e.g),b:(0,o.convertToPercentage)(e.b)};return void 0!==e.a&&(n.a=Number(e.a)),new r.TinyColor(n,t)}function i(){return new r.TinyColor({r:Math.random(),g:Math.random(),b:Math.random()})}t.fromRatio=a,t.legacyRandom=i},aeb0:function(e,t,n){"use strict";var r=n("9bf2").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}})}},aed9:function(e,t,n){"use strict";var r=n("83ab"),o=n("d039");e.exports=r&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},af5f:function(e,t,n){"use strict";n("db04");var r=n("a169");e.exports=r("String").startsWith},af81:function(e,t,n){"use strict";var r=n("a5eb"),o=n("1967");r({global:!0,forced:parseInt!=o},{parseInt:o})},b0bc:function(e,t,n){e.exports=n("90b3")},b0ea:function(e,t,n){"use strict";var r=n("6f8d"),o=n("6783"),a=n("0b1d"),i=n("0363"),s=i("species");e.exports=function(e,t){var n,i=r(e).constructor;return void 0===i||a(n=r(i)[s])?t:o(n)}},b181:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return r}));const r="update:modelValue",o="change",a="input"},b1a6:function(e,t,n){"use strict";e.exports=n("1096")},b29d:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(e){return"ຕອນແລງ"===e},meridiem:function(e,t,n){return e<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",ss:"%d ວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},dayOfMonthOrdinalParse:/(ທີ່)\d{1,2}/,ordinal:function(e){return"ທີ່"+e}});return t}))},b2ed:function(e,t,n){"use strict";var r=n("d659"),o=n("3e80"),a=r("keys");e.exports=function(e){return a[e]||(a[e]=o(e))}},b302:function(e,t,n){"use strict";var r=n("c1b2"),o=n("0e6f"),a=Function.prototype,i=r&&Object.getOwnPropertyDescriptor,s=o(a,"name"),c=s&&"something"===function(){}.name,l=s&&(!r||r&&i(a,"name").configurable);e.exports={EXISTS:s,PROPER:c,CONFIGURABLE:l}},b309:function(e,t,n){"use strict";var r=n("0cae"),o=n("766b");r("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),o)},b311:function(e,t,n){
|
||
/*!
|
||
* clipboard.js v2.0.11
|
||
* https://clipboardjs.com/
|
||
*
|
||
* Licensed MIT © Zeno Rocha
|
||
*/
|
||
(function(t,n){e.exports=n()})(0,(function(){return function(){var e={686:function(e,t,n){"use strict";n.d(t,{default:function(){return L}});var r=n(279),o=n.n(r),a=n(370),i=n.n(a),s=n(817),c=n.n(s);function l(e){try{return document.execCommand(e)}catch(t){return!1}}var u=function(e){var t=c()(e);return l("cut"),t},d=u;function p(e){var t="rtl"===document.documentElement.getAttribute("dir"),n=document.createElement("textarea");n.style.fontSize="12pt",n.style.border="0",n.style.padding="0",n.style.margin="0",n.style.position="absolute",n.style[t?"right":"left"]="-9999px";var r=window.pageYOffset||document.documentElement.scrollTop;return n.style.top="".concat(r,"px"),n.setAttribute("readonly",""),n.value=e,n}var f=function(e,t){var n=p(e);t.container.appendChild(n);var r=c()(n);return l("copy"),n.remove(),r},h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"===typeof e?n=f(e,t):e instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null===e||void 0===e?void 0:e.type)?n=f(e.value,t):(n=c()(e),l("copy")),n},m=h;function v(e){return v="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},v(e)}var g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.action,n=void 0===t?"copy":t,r=e.container,o=e.target,a=e.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==o){if(!o||"object"!==v(o)||1!==o.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&o.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(o.hasAttribute("readonly")||o.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return a?m(a,{container:r}):o?"cut"===n?d(o):m(o,{container:r}):void 0},_=g;function y(e){return y="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},y(e)}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function O(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 M(e,t,n){return t&&O(e.prototype,t),n&&O(e,n),e}function k(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&&C(e,t)}function C(e,t){return C=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},C(e,t)}function w(e){var t=T();return function(){var n,r=E(e);if(t){var o=E(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return I(this,n)}}function I(e,t){return!t||"object"!==y(t)&&"function"!==typeof t?S(e):t}function S(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function T(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}function j(e,t){var n="data-clipboard-".concat(e);if(t.hasAttribute(n))return t.getAttribute(n)}var D=function(e){k(n,e);var t=w(n);function n(e,r){var o;return b(this,n),o=t.call(this),o.resolveOptions(r),o.listenClick(e),o}return M(n,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"===typeof e.action?e.action:this.defaultAction,this.target="function"===typeof e.target?e.target:this.defaultTarget,this.text="function"===typeof e.text?e.text:this.defaultText,this.container="object"===y(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=i()(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget,n=this.action(t)||"copy",r=_({action:n,container:this.container,target:this.target(t),text:this.text(t)});this.emit(r?"success":"error",{action:n,text:r,trigger:t,clearSelection:function(){t&&t.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(e){return j("action",e)}},{key:"defaultTarget",value:function(e){var t=j("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return j("text",e)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return m(e,t)}},{key:"cut",value:function(e){return d(e)}},{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"===typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach((function(e){n=n&&!!document.queryCommandSupported(e)})),n}}]),n}(o()),L=D},828:function(e){var t=9;if("undefined"!==typeof Element&&!Element.prototype.matches){var n=Element.prototype;n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}function r(e,n){while(e&&e.nodeType!==t){if("function"===typeof e.matches&&e.matches(n))return e;e=e.parentNode}}e.exports=r},438:function(e,t,n){var r=n(828);function o(e,t,n,r,o){var a=i.apply(this,arguments);return e.addEventListener(n,a,o),{destroy:function(){e.removeEventListener(n,a,o)}}}function a(e,t,n,r,a){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,a)})))}function i(e,t,n,o){return function(n){n.delegateTarget=r(n.target,t),n.delegateTarget&&o.call(e,n)}}e.exports=a},879: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){var t=Object.prototype.toString.call(e);return"[object Function]"===t}},370:function(e,t,n){var r=n(879),o=n(438);function a(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 i(e,t,n);if(r.nodeList(e))return s(e,t,n);if(r.string(e))return c(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function i(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}function s(e,t,n){return Array.prototype.forEach.call(e,(function(e){e.addEventListener(t,n)})),{destroy:function(){Array.prototype.forEach.call(e,(function(e){e.removeEventListener(t,n)}))}}}function c(e,t,n){return o(document.body,e,t,n)}e.exports=a},817:function(e){function t(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}e.exports=t},279:function(e){function t(){}t.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){var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,o=n.length;for(r;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 a=0,i=r.length;a<i;a++)r[a].fn!==t&&r[a].fn._!==t&&o.push(r[a]);return o.length?n[e]=o:delete n[e],this}},e.exports=t,e.exports.TinyEmitter=t}},t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}return function(){n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,{a:t}),t}}(),function(){n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}}(),function(){n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),n(686)}().default}))},b313:function(e,t,n){"use strict";var r=String.prototype.replace,o=/%20/g,a={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports={default:a.RFC3986,formatters:{RFC1738:function(e){return r.call(e,o,"+")},RFC3986:function(e){return String(e)}},RFC1738:a.RFC1738,RFC3986:a.RFC3986}},b323:function(e,t,n){"use strict";var r=n("ce18"),o=n("0e6f"),a=n("a421"),i=n("6386").indexOf,s=n("6e9a"),c=r([].push);e.exports=function(e,t){var n,r=a(e),l=0,u=[];for(n in r)!o(s,n)&&o(r,n)&&c(u,n);while(t.length>l)o(r,n=t[l++])&&(~i(u,n)||c(u,n));return u}},b337:function(e,t,n){"use strict";var r=n("437b"),o=n("44b3"),a=Array.prototype;e.exports=function(e){var t=e.reduce;return e===a||r(a,e)&&t===a.reduce?o:t}},b375:function(e,t,n){!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)}}}))},b3bc:function(e,t,n){!function(t,r){e.exports=r(n("e23e"))}(window,(function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=7)}([function(e,t,n){"use strict";n.d(t,"e",(function(){return u})),n.d(t,"g",(function(){return d})),n.d(t,"c",(function(){return p})),n.d(t,"f",(function(){return f})),n.d(t,"b",(function(){return m})),n.d(t,"d",(function(){return v})),n.d(t,"a",(function(){return y})),n.d(t,"h",(function(){return b}));const r="undefined"!=typeof window,o=("undefined"!=typeof wx&&wx.getSystemInfoSync,r&&window.navigator&&window.navigator.userAgent||""),a=/AppleWebKit\/([\d.]+)/i.exec(o),i=(a&&parseFloat(a.pop()),/iPad/i.test(o)),s=(/iPhone/i.test(o),/iPod/i.test(o),function(){const e=o.match(/OS (\d+)_/i);e&&e[1]&&e[1]}(),/Android/i.test(o)),c=(function(){const e=o.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;const t=e[1]&&parseFloat(e[1]),n=e[2]&&parseFloat(e[2]);t&&n&&parseFloat(e[1]+"."+e[2])}(),s&&/webkit/i.test(o),/Firefox/i.test(o),/Edge/i.test(o)),l=(!c&&/Chrome/i.test(o),function(){const e=o.match(/Chrome\/(\d+)/);e&&e[1]&&parseFloat(e[1])}(),/MSIE/.test(o),/MSIE\s8\.0/.test(o),function(){const e=/MSIE\s(\d+)\.\d/.exec(o);let t=e&&parseFloat(e[1]);!t&&/Trident\/7.0/i.test(o)&&/rv:11.0/.test(o)&&(t=11)}(),/Safari/i.test(o),/TBS\/\d+/i.test(o));(function(){const e=o.match(/TBS\/(\d+)/i);e&&e[1]&&e[1]})(),!l&&/MQQBrowser\/\d+/i.test(o),!l&&/ QQBrowser\/\d+/i.test(o),/(micromessenger|webbrowser)/i.test(o),/Windows/i.test(o),/MAC OS X/i.test(o),/MicroMessenger/i.test(o),n(2),n(1);const u=function(e){return"map"===g(e)},d=function(e){return"set"===g(e)},p=function(e){return"file"===g(e)},f=function(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);if(null===t)return!0;let n=t;for(;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return t===n},h=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"array"===g(e)},m=function(e){return h(e)||function(e){return null!==e&&"object"==typeof e}(e)},v=function(e){return e instanceof Error},g=function(e){return Object.prototype.toString.call(e).match(/^\[object (.*)\]$/)[1].toLowerCase()};let _=0;Date.now||(Date.now=function(){return(new Date).getTime()});const y={now:function(){0===_&&(_=Date.now()-1);const e=Date.now()-_;return e>4294967295?(_+=4294967295,Date.now()-_):e},utc:function(){return Math.round(Date.now()/1e3)}},b=function(e){return JSON.stringify(e,["message","code"])}},function(e,t,n){"use strict";n.r(t);var r=n(3),o=n(0);let a=0;const i=new Map;function s(){const e=new Date;return"TSignaling "+e.toLocaleTimeString("en-US",{hour12:!1})+"."+function(e){let t;switch(e.toString().length){case 1:t="00"+e;break;case 2:t="0"+e;break;default:t=e}return t}(e.getMilliseconds())+":"}const c={_data:[],_length:0,_visible:!1,arguments2String(e){let t;if(1===e.length)t=s()+e[0];else{t=s();for(let n=0,r=e.length;n<r;n++)Object(o.b)(e[n])?Object(o.d)(e[n])?t+=Object(o.h)(e[n]):t+=JSON.stringify(e[n]):t+=e[n],t+=" "}return t},debug:function(){if(a<=-1){const e=this.arguments2String(arguments);c.record(e,"debug"),r.a.debug(e)}},log:function(){if(a<=0){const e=this.arguments2String(arguments);c.record(e,"log"),r.a.log(e)}},info:function(){if(a<=1){const e=this.arguments2String(arguments);c.record(e,"info"),r.a.info(e)}},warn:function(){if(a<=2){const e=this.arguments2String(arguments);c.record(e,"warn"),r.a.warn(e)}},error:function(){if(a<=3){const e=this.arguments2String(arguments);c.record(e,"error"),r.a.error(e)}},time:function(e){i.set(e,o.a.now())},timeEnd:function(e){if(i.has(e)){const t=o.a.now()-i.get(e);return i.delete(e),t}return r.a.warn(`未找到对应label: ${e}, 请在调用 logger.timeEnd 前,调用 logger.time`),0},setLevel:function(e){e<4&&r.a.log(s()+"set level from "+a+" to "+e),a=e},record:function(e,t){1100===c._length&&(c._data.splice(0,100),c._length=1e3),c._length++,c._data.push(`${e} [${t}] \n`)},getLog:function(){return c._data}};t.default=c},function(e,t,n){"use strict";n.r(t),t.default={MSG_PRIORITY_HIGH:"High",MSG_PRIORITY_NORMAL:"Normal",MSG_PRIORITY_LOW:"Low",MSG_PRIORITY_LOWEST:"Lowest",KICKED_OUT_MULT_ACCOUNT:"multipleAccount",KICKED_OUT_MULT_DEVICE:"multipleDevice",KICKED_OUT_USERSIG_EXPIRED:"userSigExpired",NET_STATE_CONNECTED:"connected",NET_STATE_CONNECTING:"connecting",NET_STATE_DISCONNECTED:"disconnected",ENTER_ROOM_SUCCESS:"JoinedSuccess",ALREADY_IN_ROOM:"AlreadyInGroup"}},function(e,t,n){"use strict";(function(e){let n,r;n="undefined"!=typeof console?console:void 0!==e&&e.console?e.console:"undefined"!=typeof window&&window.console?window.console:{};const o=function(){},a=["assert","clear","count","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","profile","profileEnd","table","time","timeEnd","timeStamp","trace","warn"];let i=a.length;for(;i--;)r=a[i],console[r]||(n[r]=o);t.a=n}).call(this,n(9))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={NEW_INVITATION_RECEIVED:"ts_new_invitation_received",INVITEE_ACCEPTED:"ts_invitee_accepted",INVITEE_REJECTED:"ts_invitee_rejected",INVITATION_CANCELLED:"ts_invitation_cancelled",INVITATION_TIMEOUT:"ts_invitation_timeout",SDK_READY:"ts_im_ready",SDK_NOT_READY:"ts_im_not_ready",TEXT_MESSAGE_RECEIVED:"ts_text_message_received",CUSTOM_MESSAGE_RECEIVED:"ts_custom_message_received",REMOTE_USER_JOIN:"ts_remote_user_join",REMOTE_USER_LEAVE:"ts_remote_user_leave",KICKED_OUT:"ts_kicked_out",NET_STATE_CHANGE:"ts_net_state_change",MESSAGE_SENT_BY_ME:"ts_message_sent_by_me"}},function(e,t,n){"use strict";var r,o,a;Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorCode=t.BusinessID=t.ActionType=void 0,function(e){e[e.INVITE=1]="INVITE",e[e.CANCEL_INVITE=2]="CANCEL_INVITE",e[e.ACCEPT_INVITE=3]="ACCEPT_INVITE",e[e.REJECT_INVITE=4]="REJECT_INVITE",e[e.INVITE_TIMEOUT=5]="INVITE_TIMEOUT"}(r||(r={})),t.ActionType=r,function(e){e[e.SIGNAL=1]="SIGNAL"}(o||(o={})),t.BusinessID=o,function(e){e[e.ERR_INVALID_PARAMETERS=6017]="ERR_INVALID_PARAMETERS",e[e.ERR_SDK_SIGNALING_INVALID_INVITE_ID=8010]="ERR_SDK_SIGNALING_INVALID_INVITE_ID",e[e.ERR_SDK_SIGNALING_NO_PERMISSION=8011]="ERR_SDK_SIGNALING_NO_PERMISSION"}(a||(a={})),t.ErrorCode=a},function(t,n){t.exports=e},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=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)},o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}c((r=r.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(o=i.trys,!((o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},i=this&&this.__spreadArrays||function(){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 a=arguments[t],i=0,s=a.length;i<s;i++,o++)r[o]=a[i];return r};Object.defineProperty(t,"__esModule",{value:!0});var s=n(5),c=n(8),l=n(4),u=n(2),d=n(1),p=n(10),f=n(11),h=n(12),m=n(13),v=n(6),g=n(15).version,_=n(16),y=function(){function e(e){if(this._outerEmitter=null,this._safetyCallbackFactory=null,this._tim=null,this._imSDKAppID=0,this._userID=null,this._groupID="",this._isHandling=!1,this._inviteInfoMap=new Map,this._isRejectNotifyAll=!1,this.offlineSupport=!0,d.default.info("TSignaling version:"+g),p.default(e.SDKAppID))return d.default.error("TSignaling 请传入 SDKAppID !!!"),null;p.default(e.offlineSupport)||"boolean"!=typeof e.offlineSupport?this.offlineSupport=!0:this.offlineSupport=e.offlineSupport,this._outerEmitter=new c.default,this._outerEmitter._emit=this._outerEmitter.emit,this._outerEmitter.emit=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[0],r=[n,{name:e[0],data:e[1]}];this._outerEmitter._emit.apply(this._outerEmitter,i(r))}.bind(this),this._safetyCallbackFactory=new h.default,e.tim?this._tim=e.tim:this._tim=v.create({SDKAppID:e.SDKAppID,scene:"TSignaling"}),e.isRejectNotifyAll&&(this._isRejectNotifyAll=!0),this.messageClient=new _.default({tim:this._tim}),this._imSDKAppID=e.SDKAppID,this._tim.on(v.EVENT.SDK_READY,this._onIMReady.bind(this)),this._tim.on(v.EVENT.SDK_NOT_READY,this._onIMNotReady.bind(this)),this._tim.on(v.EVENT.KICKED_OUT,this._onKickedOut.bind(this)),this._tim.on(v.EVENT.NET_STATE_CHANGE,this._onNetStateChange.bind(this)),this._tim.on(v.EVENT.MESSAGE_RECEIVED,this._onMessageReceived.bind(this))}return e.prototype.setLogLevel=function(e){d.default.setLevel(e),this._tim.setLogLevel(e)},e.prototype.login=function(e){return o(this,void 0,void 0,(function(){return a(this,(function(t){return d.default.log("TSignaling.login",e),this._userID=e.userID,[2,this._tim.login(e)]}))}))},e.prototype.logout=function(){return o(this,void 0,void 0,(function(){return a(this,(function(e){return d.default.log("TSignaling.logout"),this._userID="",this._inviteInfoMap.clear(),[2,this._tim.logout()]}))}))},e.prototype.on=function(e,t,n){d.default.log("TSignaling.on eventName:"+e),this._outerEmitter.on(e,this._safetyCallbackFactory.defense(e,t,n),n)},e.prototype.off=function(e,t){d.default.log("TSignaling.off eventName:"+e);var n=this._safetyCallbackFactory.find(e,t);null!==n&&(this._outerEmitter.off(e,n),this._safetyCallbackFactory.delete(e,t))},e.prototype.joinGroup=function(e){return o(this,void 0,void 0,(function(){return a(this,(function(t){return d.default.log("TSignaling.joinGroup groupID:"+e),this._groupID=e,[2,this._tim.joinGroup({groupID:e})]}))}))},e.prototype.quitGroup=function(e){return o(this,void 0,void 0,(function(){return a(this,(function(t){return d.default.log("TSignaling.quitGroup groupID:"+e),[2,this._tim.quitGroup(e)]}))}))},e.prototype.sendTextMessage=function(e){return o(this,void 0,void 0,(function(){var t;return a(this,(function(n){return t=this._tim.createTextMessage({to:e.to,conversationType:!0===e.groupFlag?v.TYPES.CONV_GROUP:v.TYPES.CONV_C2C,priority:e.priority||v.TYPES.MSG_PRIORITY_NORMAL,payload:{text:e.text}}),[2,this._tim.sendMessage(t)]}))}))},e.prototype.sendCustomMessage=function(e){return o(this,void 0,void 0,(function(){var t;return a(this,(function(n){return t=this._tim.createCustomMessage({to:e.to,conversationType:!0===e.groupFlag?v.TYPES.CONV_GROUP:v.TYPES.CONV_C2C,priority:e.priority||v.TYPES.MSG_PRIORITY_NORMAL,payload:{data:e.data||"",description:e.description||"",extension:e.extension||""}}),[2,this._tim.sendMessage(t)]}))}))},e.prototype.invite=function(e){return o(this,void 0,void 0,(function(){var t,n,o,i,c,l,u,h,v;return a(this,(function(a){switch(a.label){case 0:return t=m.generate(),d.default.log("TSignaling.invite",e,"inviteID="+t),p.default(e)||p.default(e.userID)?[2,Promise.reject(new f.default({code:s.ErrorCode.ERR_INVALID_PARAMETERS,message:"userID is invalid"}))]:(n=e.userID,o=e.data,i=e.timeout,c=e.offlinePushInfo,l=e.onlineUserOnly,u=void 0!==l&&l,h={businessID:s.BusinessID.SIGNAL,inviteID:t,inviter:this._userID,actionType:s.ActionType.INVITE,inviteeList:[n],data:o,timeout:p.default(i)?0:i,groupID:"",onlineUserOnly:u},[4,this._sendCustomMessage(n,h,c)]);case 1:return 0===(v=a.sent()).code?(d.default.log("TSignaling.invite ok"),this._inviteInfoMap.set(t,r(r({},h),{message:v.data.message})),this._startTimer(h,!0),[2,{inviteID:t,code:v.code,data:v.data}]):[2,v]}}))}))},e.prototype.inviteSync=function(e,t,n){var r=m.generate();d.default.log("TSignaling.inviteSync",e,"inviteID="+r),(p.default(e)||p.default(e.userID))&&n&&n(s.ErrorCode.ERR_INVALID_PARAMETERS,"userID is missing");var o=e.userID,a=e.data,i=e.timeout,c=e.offlinePushInfo,l=e.onlineUserOnly,u=void 0!==l&&l,f={businessID:s.BusinessID.SIGNAL,inviteID:r,inviter:this._userID,actionType:s.ActionType.INVITE,inviteeList:[o],data:a,timeout:p.default(i)?0:i,groupID:"",onlineUserOnly:u};return this._sendCustomMessageSync(o,f,(function(){d.default.log("TSignaling.inviteSync ok"),t&&t()}),(function(e,t){n&&n(e,t)}),c),r},e.prototype.inviteInGroup=function(e){return o(this,void 0,void 0,(function(){var t,n,o,i,c,l,u,h,v,g;return a(this,(function(a){switch(a.label){case 0:return t=m.generate(),d.default.log("TSignaling.inviteInGroup",e,"inviteID="+t),p.default(e)||p.default(e.groupID)?[2,Promise.reject(new f.default({code:s.ErrorCode.ERR_INVALID_PARAMETERS,message:"groupID is invalid"}))]:(n=e.groupID,o=e.inviteeList,i=e.data,c=e.timeout,l=e.offlinePushInfo,u=e.onlineUserOnly,h=void 0!==u&&u,v={businessID:s.BusinessID.SIGNAL,inviteID:t,inviter:this._userID,actionType:s.ActionType.INVITE,inviteeList:o,data:i,timeout:p.default(c)?0:c,groupID:n,onlineUserOnly:h},[4,this._sendCustomMessage(n,v,l)]);case 1:return 0===(g=a.sent()).code?(d.default.log("TSignaling.inviteInGroup ok"),this._inviteInfoMap.set(t,r(r({},v),{message:g.data.message})),this._startTimer(v,!0),[2,{inviteID:t,code:g.code,data:g.data}]):[2,g]}}))}))},e.prototype.inviteInGroupSync=function(e,t,n){var r=m.generate();d.default.log("TSignaling.inviteInGroupSync",e,"inviteID="+r),(p.default(e)||p.default(e.groupID))&&n&&n(s.ErrorCode.ERR_INVALID_PARAMETERS,"groupID is missing");var o=e.groupID,a=e.inviteeList,i=e.data,c=e.timeout,l=e.offlinePushInfo,u=e.onlineUserOnly,f=void 0!==u&&u,h={businessID:s.BusinessID.SIGNAL,inviteID:r,inviter:this._userID,actionType:s.ActionType.INVITE,inviteeList:a,data:i,timeout:p.default(c)?0:c,groupID:o,onlineUserOnly:f};return this._sendCustomMessageSync(o,h,(function(){d.default.log("TSignaling.inviteInGroupSync ok"),t&&t()}),(function(e,t){n&&n(e,t)}),l),r},e.prototype.cancel=function(e){return o(this,void 0,void 0,(function(){var t,n,r,o,i,c,l,u,h;return a(this,(function(a){switch(a.label){case 0:return d.default.log("TSignaling.cancel",e),p.default(e)||p.default(e.inviteID)||!this._inviteInfoMap.has(e.inviteID)||this._isHandling?[2,Promise.reject(new f.default({code:s.ErrorCode.ERR_SDK_SIGNALING_INVALID_INVITE_ID,message:"inviteID is invalid or invitation has been processed"}))]:(this._isHandling=!0,t=e.inviteID,n=e.data,r=this._inviteInfoMap.get(t),o=r.inviter,i=r.groupID,c=r.inviteeList,o!==this._userID?[3,2]:(l={businessID:s.BusinessID.SIGNAL,inviteID:t,inviter:o,actionType:s.ActionType.CANCEL_INVITE,inviteeList:c,data:n,timeout:0,groupID:i},u=i||c[0],[4,this._sendCustomMessage(u,l)]));case 1:return h=a.sent(),this._isHandling=!1,h&&0===h.code?(d.default.log("TSignaling.cancel ok"),this._deleteInviteInfoByID(t),[2,{inviteID:t,code:h.code,data:h.data}]):[2,h];case 2:return d.default.error("TSignaling.cancel unmatched inviter="+o+" and userID="+this._userID),this._isHandling=!1,[2,Promise.reject(new f.default({code:s.ErrorCode.ERR_SDK_SIGNALING_NO_PERMISSION,message:"信令请求无权限,比如取消非自己发起的邀请,接受或则拒绝非发给自己的邀请"}))]}}))}))},e.prototype.accept=function(e){return o(this,void 0,void 0,(function(){var t,n,r,o,i,c,l,u;return a(this,(function(a){switch(a.label){case 0:return d.default.log("TSignaling.accept",e),p.default(e)||p.default(e.inviteID)||!this._inviteInfoMap.has(e.inviteID)||this._isHandling?[2,Promise.reject(new f.default({code:s.ErrorCode.ERR_SDK_SIGNALING_INVALID_INVITE_ID,message:"inviteID is invalid or invitation has been processed"}))]:(this._isHandling=!0,t=e.inviteID,n=e.data,r=this._inviteInfoMap.get(t),o=r.inviter,i=r.groupID,r.inviteeList.includes(this._userID)?(c={businessID:s.BusinessID.SIGNAL,inviteID:t,inviter:o,actionType:s.ActionType.ACCEPT_INVITE,inviteeList:[this._userID],data:n,timeout:0,groupID:i},l=i||o,[4,this._sendCustomMessage(l,c)]):[3,2]);case 1:return u=a.sent(),this._isHandling=!1,u&&0===u.code?(d.default.log("TSignaling.accept ok"),this._updateLocalInviteInfo(c),[2,{inviteID:t,code:u.code,data:u.data}]):[2,u];case 2:return d.default.error("TSignaling.accept inviteeList do not include userID="+this._userID+". inviteID="+t+" groupID="+i),this._isHandling=!1,[2,Promise.reject(new f.default({code:s.ErrorCode.ERR_SDK_SIGNALING_INVALID_INVITE_ID,message:"inviteID is invalid or invitation has been processed"}))]}}))}))},e.prototype.reject=function(e){return o(this,void 0,void 0,(function(){var t,n,r,o,i,c,l,u;return a(this,(function(a){switch(a.label){case 0:return d.default.log("TSignaling.reject",e),p.default(e)||p.default(e.inviteID)||!this._inviteInfoMap.has(e.inviteID)||this._isHandling?[2,Promise.reject(new f.default({code:s.ErrorCode.ERR_SDK_SIGNALING_INVALID_INVITE_ID,message:"inviteID is invalid or invitation has been processed"}))]:(this._isHandling=!0,t=e.inviteID,n=e.data,r=this._inviteInfoMap.get(t),o=r.inviter,i=r.groupID,r.inviteeList.includes(this._userID)?(c={businessID:s.BusinessID.SIGNAL,inviteID:t,inviter:o,actionType:s.ActionType.REJECT_INVITE,inviteeList:[this._userID],data:n,timeout:0,groupID:i},l=i||o,[4,this._sendCustomMessage(l,c)]):[3,2]);case 1:return u=a.sent(),this._isHandling=!1,u&&0===u.code?(d.default.log("TSignaling.reject ok"),this._updateLocalInviteInfo(c),[2,{inviteID:t,code:u.code,data:u.data}]):[2,u];case 2:return d.default.error("TSignaling.reject inviteeList do not include userID="+this._userID+". inviteID="+t+" groupID="+i),this._isHandling=!1,[2,Promise.reject(new f.default({code:s.ErrorCode.ERR_SDK_SIGNALING_INVALID_INVITE_ID,message:"inviteID is invalid or invitation has been processed"}))]}}))}))},e.prototype._onIMReady=function(e){return o(this,void 0,void 0,(function(){var e;return a(this,(function(t){switch(t.label){case 0:return d.default.log("TSignaling._onIMReady"),this._outerEmitter.emit(l.default.SDK_READY),!0!==this.offlineSupport?[3,2]:[4,this.messageClient.getHistoricalSignaling()];case 1:e=t.sent(),!p.default(e)&&this._onMessageReceived({data:e}),t.label=2;case 2:return[2]}}))}))},e.prototype._onIMNotReady=function(e){d.default.log("TSignaling.onSdkNotReady"),this._outerEmitter.emit(l.default.SDK_NOT_READY)},e.prototype._onKickedOut=function(e){d.default.log("TSignaling._onKickedOut"),this._outerEmitter.emit(l.default.KICKED_OUT,e.data)},e.prototype._onNetStateChange=function(e){d.default.log("TSignaling._onNetStateChange"),this._outerEmitter.emit(l.default.NET_STATE_CHANGE,e.data)},e.prototype._onMessageReceived=function(e){var t=this;d.default.log("TSignaling._onMessageReceived inviteID="+JSON.stringify(e));var n=e.data,r=n.filter((function(e){return e.type===v.TYPES.MSG_TEXT}));d.default.log("TSignaling._onMessageReceived textMessages"+JSON.stringify(r)),p.default(r)||this._outerEmitter.emit(l.default.TEXT_MESSAGE_RECEIVED,r);var o=n.filter((function(e){return e.type===v.TYPES.MSG_GRP_TIP&&e.payload.operationType===v.TYPES.GRP_TIP_MBR_JOIN}));p.default(o)||this._outerEmitter.emit(l.default.REMOTE_USER_JOIN,o);var a=n.filter((function(e){return e.type===v.TYPES.MSG_GRP_TIP&&e.payload.operationType===v.TYPES.GRP_TIP_MBR_QUIT}));p.default(a)||this._outerEmitter.emit(l.default.REMOTE_USER_LEAVE,a);var i=n.filter((function(e){return e.type===v.TYPES.MSG_CUSTOM})),c=[];i.forEach((function(e){var n,r=e.payload.data,o=!0;try{n=JSON.parse(r)}catch(e){o=!1}if(o){var a=n.businessID,i=n.actionType;if(1===a)switch(i){case s.ActionType.INVITE:t._onNewInvitationReceived(n,e);break;case s.ActionType.REJECT_INVITE:t._onInviteeRejected(n);break;case s.ActionType.ACCEPT_INVITE:t._onInviteeAccepted(n);break;case s.ActionType.CANCEL_INVITE:t._onInvitationCancelled(n);break;case s.ActionType.INVITE_TIMEOUT:t._onInvitationTimeout(n)}else{if("av_call"===a)return!0;d.default.warn("TSignaling._onMessageReceived unknown businessID="+a),c.push(e)}}else c.push(e)})),p.default(c)||this._outerEmitter.emit(l.default.CUSTOM_MESSAGE_RECEIVED,c)},e.prototype._hasLocalInviteInfo=function(e,t){var n=e.inviteID,r=e.groupID;if(d.default.log("TSignaling._hasLocalInviteInfo inviteID="+n+" groupID="+r),!this._inviteInfoMap.has(n))return!1;var o=this._inviteInfoMap.get(n).inviteeList;return!r||(t?o.length>0:o.length>0&&o.includes(this._userID))},e.prototype._startTimer=function(e,t){var n=this;void 0===t&&(t=!0);var r=e.timeout;if(d.default.log("TSignaling._startTimer timeout="+r+" isInvitator="+t+" timeoutStatus="+(0===r)),0!==r)var o=t?r+5:r,a=1,i=setInterval((function(){var r=n._hasLocalInviteInfo(e,t);d.default.log("TSignaling.setInterval hasInviteInfo="+r),a<o&&r?++a:(r&&n._sendTimeoutNotice(e,t),clearInterval(i))}),1e3)},e.prototype._sendTimeoutNotice=function(e,t){return o(this,void 0,void 0,(function(){var n,r,o,i,c,u,p,f;return a(this,(function(a){switch(a.label){case 0:return n=e.inviteID,r=e.groupID,o=e.inviteeList,i=e.inviter,c=e.data,u=t?r||o[0]:r||i,d.default.log("TSignaling._sendTimeoutNotice inviteID="+n+" to="+u+" isInvitator="+t),p={businessID:s.BusinessID.SIGNAL,inviteID:n,inviter:i,actionType:s.ActionType.INVITE_TIMEOUT,inviteeList:t?o:[this._userID],data:c,timeout:0,groupID:r},[4,this._sendCustomMessage(u,p)];case 1:return(f=a.sent())&&0===f.code&&(this._outerEmitter.emit(l.default.INVITATION_TIMEOUT,{inviter:i,inviteID:n,groupID:r,inviteeList:p.inviteeList,isSelfTimeout:!0}),t?this._deleteInviteInfoByID(n):this._updateLocalInviteInfo(p)),[2,f]}}))}))},e.prototype._onNewInvitationReceived=function(t,n){var o=t.inviteID,a=t.inviter,i=t.inviteeList,s=t.groupID,c=i.includes(this._userID);d.default.log("TSignaling._onNewInvitationReceived",t,"myselfIncluded="+c),(s&&c||!s)&&(this._inviteInfoMap.has(o)||this._inviteInfoMap.set(o,r(r({},t),{message:n})),this._outerEmitter.emit(e.EVENT.NEW_INVITATION_RECEIVED,{inviteID:o,inviter:a,groupID:s,inviteeList:i,data:t.data||""}),this._startTimer(t,!1))},e.prototype._onInviteeRejected=function(e){var t=e.inviteID,n=e.inviter,r=e.groupID,o=this._inviteInfoMap.has(t);d.default.log("TSignaling._onInviteeRejected inviteID="+t+" hasInviteID="+o+" inviter="+n+" groupID="+r+" _isRejectNotifyAll="+this._isRejectNotifyAll),(r&&o||!r||this._isRejectNotifyAll)&&(this._updateLocalInviteInfo(e),this._outerEmitter.emit(l.default.INVITEE_REJECTED,{inviteID:t,inviter:n,groupID:r,invitee:e.inviteeList[0],data:e.data||""}))},e.prototype._onInviteeAccepted=function(e){var t=e.inviteID,n=e.inviter,r=e.groupID,o=this._inviteInfoMap.has(t);d.default.log("TSignaling._onInviteeAccepted inviteID="+t+" hasInviteID="+o+" inviter="+n+" groupID="+r),(r&&o||!r)&&(this._updateLocalInviteInfo(e),this._outerEmitter.emit(l.default.INVITEE_ACCEPTED,{inviteID:t,inviter:n,groupID:r,invitee:e.inviteeList[0],data:e.data||""}))},e.prototype._onInvitationCancelled=function(e){var t=e.inviteID,n=e.inviter,r=e.groupID,o=this._inviteInfoMap.has(t);d.default.log("TSignaling._onInvitationCancelled inviteID="+t+" hasInviteID="+o+" inviter="+n+" groupID="+r),(r&&o||!r)&&(this._deleteInviteInfoByID(t),this._outerEmitter.emit(l.default.INVITATION_CANCELLED,{inviteID:t,inviter:n,groupID:r,data:e.data||""}))},e.prototype._onInvitationTimeout=function(e){var t=e.inviteID,n=e.inviter,r=e.groupID,o=e.data,a=this._inviteInfoMap.has(t);d.default.log("TSignaling._onInvitationTimeout inviteID="+t+" hasInviteID="+a+" inviter="+n+" groupID="+r),d.default.log("TSignaling._onInvitationTimeout data="+e.data);var i=JSON.parse(o),s=r&&(0===i.call_end||p.default(i.room_id));p.default(i.room_id)&&i.call_end>0||s||(r&&a||!r)&&(this._updateLocalInviteInfo(e),this._outerEmitter.emit(l.default.INVITATION_TIMEOUT,{inviteID:t,inviter:n,groupID:r,inviteeList:e.inviteeList,isSelfTimeout:!1}))},e.prototype._updateLocalInviteInfo=function(e){var t=e.inviteID,n=e.inviter,r=e.inviteeList,o=e.groupID;if(d.default.log("TSignaling._updateLocalInviteInfo inviteID="+t+" inviter="+n+" groupID="+o),o){if(this._inviteInfoMap.has(t)){var a=r[0],i=this._inviteInfoMap.get(t).inviteeList;i.includes(a)&&(i.splice(i.indexOf(a),1),d.default.log("TSignaling._updateLocalInviteInfo remove "+a+" from localInviteeList. "+i.length+" invitees left")),0===i.length&&this._deleteInviteInfoByID(t)}}else this._deleteInviteInfoByID(t)},e.prototype._deleteInviteInfoByID=function(e){this._inviteInfoMap.has(e)&&(d.default.log("TSignaling._deleteInviteInfoByID remove "+e+" from inviteInfoMap."),this._inviteInfoMap.delete(e))},e.prototype._genMessageControlInfo=function(e){void 0===e&&(e={});var t=e.data,n=void 0===t?"":t,r=e.onlineUserOnly,o=e.inviteID,a=void 0===o?"":o,i=e.actionType,c={_onlineOnlyFlag:!1};a&&this._inviteInfoMap.get(a)&&(c=this._inviteInfoMap.get(a).message);var l={onlineUserOnly:c._onlineOnlyFlag||r||!1,messageControlInfo:{excludedFromContentModeration:!0,excludedFromUnreadCount:!1,excludedFromLastMessage:!1}};if(i===s.ActionType.INVITE_TIMEOUT){var u=!!n.match(/excludeTimeoutSignalingFromHistoryMessage/);return l.messageControlInfo.excludedFromUnreadCount=u,l.messageControlInfo.excludedFromLastMessage=u,l}var d=!!n.match(/excludeFromHistoryMessage/),p=!!n.match(/excludeOriginalSignalingFromHistoryMessage/);return l.messageControlInfo.excludedFromUnreadCount=d||p,l.messageControlInfo.excludedFromLastMessage=d||p,l},e.prototype._sendCustomMessage=function(e,t,n){var i,c,u,p;return o(this,void 0,void 0,(function(){var o,f,h,m,g,_,y;return a(this,(function(a){switch(a.label){case 0:return o=t.groupID,f=this._tim.createCustomMessage({to:e,conversationType:o?v.TYPES.CONV_GROUP:v.TYPES.CONV_C2C,priority:v.TYPES.MSG_PRIORITY_HIGH,payload:{data:JSON.stringify(t)}}),h=this._genMessageControlInfo(t),t.actionType!==s.ActionType.INVITE?[3,2]:(g={title:(m=n||{}).title||"",description:m.description||"您有一个通话请求",androidOPPOChannelID:m.androidOPPOChannelID||"",extension:this._handleOfflineInfo(t,m.extension||"")},d.default.log("TSignaling.offlinePushInfo "+JSON.stringify(g)),[4,this._tim.sendMessage(f,r({offlinePushInfo:{title:g.title,description:g.description,androidOPPOChannelID:g.androidOPPOChannelID,extension:g.extension}},h))]);case 1:return _=a.sent(),(null===(i=null==_?void 0:_.data)||void 0===i?void 0:i.message)&&this._outerEmitter.emit(l.default.MESSAGE_SENT_BY_ME,null===(c=null==_?void 0:_.data)||void 0===c?void 0:c.message),[2,_];case 2:return[4,this._tim.sendMessage(f,h)];case 3:return y=a.sent(),(null===(u=null==y?void 0:y.data)||void 0===u?void 0:u.message)&&this._outerEmitter.emit(l.default.MESSAGE_SENT_BY_ME,null===(p=null==y?void 0:y.data)||void 0===p?void 0:p.message),[2,y]}}))}))},e.prototype._sendCustomMessageSync=function(e,t,n,i,s){return o(this,void 0,void 0,(function(){var o;return a(this,(function(a){switch(a.label){case 0:return[4,this._sendCustomMessage(e,t,s)];case 1:return 0===(o=a.sent()).code?(this._inviteInfoMap.set(t.inviteID,r(r({},t),{message:o.data.message})),this._startTimer(t,!0),n()):i(o.code,o.message||""),[2]}}))}))},e.prototype._handleOfflineInfo=function(e,t){var n=JSON.parse(e.data),r={action:e.actionType,call_type:n.call_type,room_id:n.room_id,call_id:e.inviteID,timeout:n.timeout,version:4,invited_list:e.inviteeList};e.groupID&&(r.group_id=e.groupID);var o={entity:{action:2,chatType:e.groupID?2:1,content:JSON.stringify(r),sendTime:parseInt(Date.now()/1e3+""),sender:e.inviter,version:1},userData:t||""},a=JSON.stringify(o);return d.default.log("TSignaling._handleOfflineInfo "+a),a},e.EVENT=l.default,e.TYPES=u.default,e}();t.default=y},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));const r=Function.prototype.apply,o=new WeakMap;function a(e){return o.has(e)||o.set(e,{}),o.get(e)}class i{constructor(e=null,t=console){const n=a(this);return n._events=new Set,n._callbacks={},n._console=t,n._maxListeners=null===e?null:parseInt(e,10),this}_addCallback(e,t,n,r){return this._getCallbacks(e).push({callback:t,context:n,weight:r}),this._getCallbacks(e).sort((e,t)=>e.weight>t.weight),this}_getCallbacks(e){return a(this)._callbacks[e]}_getCallbackIndex(e,t){return this._has(e)?this._getCallbacks(e).findIndex(e=>e.callback===t):null}_achieveMaxListener(e){return null!==a(this)._maxListeners&&a(this)._maxListeners<=this.listenersNumber(e)}_callbackIsExists(e,t,n){const r=this._getCallbackIndex(e,t),o=-1!==r?this._getCallbacks(e)[r]:void 0;return-1!==r&&o&&o.context===n}_has(e){return a(this)._events.has(e)}on(e,t,n=null,r=1){const o=a(this);if("function"!=typeof t)throw new TypeError(t+" is not a function");return this._has(e)?(this._achieveMaxListener(e)&&o._console.warn(`Max listeners (${o._maxListeners}) for event "${e}" is reached!`),this._callbackIsExists(...arguments)&&o._console.warn(`Event "${e}" already has the callback ${t}.`)):(o._events.add(e),o._callbacks[e]=[]),this._addCallback(...arguments),this}once(e,t,n=null,o=1){const a=(...o)=>(this.off(e,a),r.call(t,n,o));return this.on(e,a,n,o)}off(e,t=null){const n=a(this);let r;return this._has(e)&&(null===t?(n._events.delete(e),n._callbacks[e]=null):(r=this._getCallbackIndex(e,t),-1!==r&&(n._callbacks[e].splice(r,1),this.off(...arguments)))),this}emit(e,...t){return this._has(e)&&this._getCallbacks(e).forEach(e=>r.call(e.callback,e.context,t)),this}clear(){const e=a(this);return e._events.clear(),e._callbacks={},this}listenersNumber(e){return this._has(e)?this._getCallbacks(e).length:null}}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";n.r(t);var r=n(0);const o=Object.prototype.hasOwnProperty;t.default=function(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(Object(r.f)(e)){for(const t in e)if(o.call(e,t))return!1;return!0}return!!(Object(r.e)(e)||Object(r.g)(e)||Object(r.c)(e))&&0===e.size}},function(e,t,n){"use strict";n.r(t);class r extends Error{constructor(e){super(),this.code=e.code,this.message=e.message,this.data=e.data||{}}}t.default=r},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(4),a=n.n(o);t.default=class{constructor(){this._funcMap=new Map}defense(e,t,n){if("string"!=typeof e)return null;if(0===e.length)return null;if("function"!=typeof t)return null;if(this._funcMap.has(e)&&this._funcMap.get(e).has(t))return this._funcMap.get(e).get(t);this._funcMap.has(e)||this._funcMap.set(e,new Map);let r=null;return this._funcMap.get(e).has(t)?r=this._funcMap.get(e).get(t):(r=this._pack(e,t,n),this._funcMap.get(e).set(t,r)),r}defenseOnce(e,t,n){return"function"!=typeof t?null:this._pack(e,t,n)}find(e,t){return"string"!=typeof e||0===e.length||"function"!=typeof t?null:this._funcMap.has(e)?this._funcMap.get(e).has(t)?this._funcMap.get(e).get(t):(r.default.log(`SafetyCallback.find: 找不到 func —— ${e}/${""!==t.name?t.name:"[anonymous]"}`),null):(r.default.log(`SafetyCallback.find: 找不到 eventName-${e} 对应的 func`),null)}delete(e,t){return"function"==typeof t&&!!this._funcMap.has(e)&&!!this._funcMap.get(e).has(t)&&(this._funcMap.get(e).delete(t),0===this._funcMap.get(e).size&&this._funcMap.delete(e),!0)}_pack(e,t,n){return function(){try{t.apply(n,Array.from(arguments))}catch(t){const o=Object.values(a.a).indexOf(e),i=Object.keys(a.a)[o];r.default.error(`接入侧事件 EVENT.${i} 对应的回调函数逻辑存在问题,请检查!`,t)}}}}},function(e,t,n){
|
||
/**
|
||
* UUID.js - RFC-compliant UUID Generator for JavaScript
|
||
*
|
||
* @file
|
||
* @author LiosK
|
||
* @version v4.2.12
|
||
* @license Apache License 2.0: Copyright (c) 2010-2022 LiosK
|
||
*/
|
||
var r;r=function(t){"use strict";function r(){var e=o._getRandomInt;this.timestamp=0,this.tick=0,this.sequence=e(14),this.node=1099511627776*(1|e(8))+e(40)}function o(){}return o.generate=function(){var e=o._getRandomInt,t=o._hexAligner;return t(e(32),8)+"-"+t(e(16),4)+"-"+t(16384|e(12),4)+"-"+t(32768|e(14),4)+"-"+t(e(48),12)},o._getRandomInt=function(e){if(e<0||e>53)return NaN;var t=0|1073741824*Math.random();return e>30?t+1073741824*(0|Math.random()*(1<<e-30)):t>>>30-e},o._hexAligner=function(e,t){for(var n=e.toString(16),r=t-n.length,o="0";r>0;r>>>=1,o+=o)1&r&&(n=o+n);return n},o.overwrittenUUID=t,function(){var e=o._getRandomInt;o.useMathRandom=function(){o._getRandomInt=e};var t=null,r=e;"undefined"!=typeof window&&(t=window.crypto||window.msCrypto)?t.getRandomValues&&"undefined"!=typeof Uint32Array&&(r=function(e){if(e<0||e>53)return NaN;var n=new Uint32Array(e>32?2:1);return n=t.getRandomValues(n)||n,e>32?n[0]+4294967296*(n[1]>>>64-e):n[0]>>>32-e}):(t=n(14))&&t.randomBytes&&(r=function(e){if(e<0||e>53)return NaN;var n=t.randomBytes(e>32?8:4),r=n.readUInt32BE(0);return e>32?r+4294967296*(n.readUInt32BE(4)>>>64-e):r>>>32-e}),o._getRandomInt=r}(),o.FIELD_NAMES=["timeLow","timeMid","timeHiAndVersion","clockSeqHiAndReserved","clockSeqLow","node"],o.FIELD_SIZES=[32,16,16,8,8,48],o.genV4=function(){var e=o._getRandomInt;return(new o)._init(e(32),e(16),16384|e(12),128|e(6),e(8),e(48))},o.parse=function(e){var t;if(t=/^\s*(urn:uuid:|\{)?([0-9a-f]{8})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{2})([0-9a-f]{2})-([0-9a-f]{12})(\})?\s*$/i.exec(e)){var n=t[1]||"",r=t[8]||"";if(n+r===""||"{"===n&&"}"===r||"urn:uuid:"===n.toLowerCase()&&""===r)return(new o)._init(parseInt(t[2],16),parseInt(t[3],16),parseInt(t[4],16),parseInt(t[5],16),parseInt(t[6],16),parseInt(t[7],16))}return null},o.prototype._init=function(){var e=o.FIELD_NAMES,t=o.FIELD_SIZES,n=o._binAligner,r=o._hexAligner;this.intFields=new Array(6),this.bitFields=new Array(6),this.hexFields=new Array(6);for(var a=0;a<6;a++){var i=parseInt(arguments[a]||0);this.intFields[a]=this.intFields[e[a]]=i,this.bitFields[a]=this.bitFields[e[a]]=n(i,t[a]),this.hexFields[a]=this.hexFields[e[a]]=r(i,t[a]>>>2)}return this.version=this.intFields.timeHiAndVersion>>>12&15,this.bitString=this.bitFields.join(""),this.hexNoDelim=this.hexFields.join(""),this.hexString=this.hexFields[0]+"-"+this.hexFields[1]+"-"+this.hexFields[2]+"-"+this.hexFields[3]+this.hexFields[4]+"-"+this.hexFields[5],this.urn="urn:uuid:"+this.hexString,this},o._binAligner=function(e,t){for(var n=e.toString(2),r=t-n.length,o="0";r>0;r>>>=1,o+=o)1&r&&(n=o+n);return n},o.prototype.toString=function(){return this.hexString},o.prototype.equals=function(e){if(!(e instanceof o))return!1;for(var t=0;t<6;t++)if(this.intFields[t]!==e.intFields[t])return!1;return!0},o.NIL=(new o)._init(0,0,0,0,0,0),o.genV1=function(){null==o._state&&o.resetState();var e=(new Date).getTime(),t=o._state;e!=t.timestamp?(e<t.timestamp&&t.sequence++,t.timestamp=e,t.tick=o._getRandomInt(12)):t.tick<9992?t.tick+=1+o._getRandomInt(3):t.sequence++;var n=o._getTimeFieldValues(t.timestamp),r=n.low+t.tick,a=4095&n.hi|4096;t.sequence&=16383;var i=t.sequence>>>8|128,s=255&t.sequence;return(new o)._init(r,n.mid,a,i,s,t.node)},o.resetState=function(){o._state=new r},o._tsRatio=1/4,o._state=null,o._getTimeFieldValues=function(e){var t=e-Date.UTC(1582,9,15),n=t/4294967296*1e4&268435455;return{low:1e4*(268435455&t)%4294967296,mid:65535&n,hi:n>>>16,timestamp:t}},"object"==typeof e.exports&&(e.exports=o),o}(r)},function(e,t){},function(e){e.exports=JSON.parse('{"name":"tsignaling","version":"1.0.7","description":"腾讯云 Web 信令 SDK","main":"./src/index.ts","scripts":{"lint":"./node_modules/.bin/eslint ./src","fix":"./node_modules/.bin/eslint --fix ./src","ts2js":"tsc src/index.ts --outDir build/ts2js","doc":"npm run ts2js && npm run doc:clean && npm run doc:build","doc:build":"./node_modules/.bin/jsdoc -c build/jsdoc/jsdoc.json && node ./build/jsdoc/fix-doc.js","doc:clean":"node ./build/jsdoc/clean-doc.js","build:wx":"cross-env NODE_ENV=wx webpack --config webpack.prod.config.js","build:web":"node node_modules/cross-env/src/bin/cross-env.js NODE_ENV=web node_modules/webpack/bin/webpack.js --config webpack.prod.config.js","build:package":"node build/package-bundle.js","prerelease":"npm run changelog && npm run build:web && npm run build:wx && npm run build:package && node ./build/copy.js","start:wx":"cross-env NODE_ENV=wx webpack-dev-server --config webpack.config.js","start:web":"node node_modules/cross-env/src/bin/cross-env.js NODE_ENV=web node_modules/webpack-dev-server/bin/webpack-dev-server.js --config webpack.dev.config.js","build_withcopy":"npm run build:web && cp dist/npm/tsignaling-js.js ../TIM-demo-web/node_modules/tsignaling/tsignaling-js.js","build_withcopy:mp":"npm run build:wx && cp dist/npm/tsignaling-wx.js ../TIM-demo-mini/static/component/TRTCCalling/utils/tsignaling-wx.js","changelog":"cp CHANGELOG.md build/jsdoc/tutorials/CHANGELOG.md"},"husky":{"hooks":{"pre-commit":"npm run lint"}},"lint-staged":{"*.{.ts,.tsx}":["eslint","git add"]},"keywords":["腾讯云","即时通信","信令"],"author":"","license":"ISC","devDependencies":{"conventional-changelog-cli":"^2.1.1","cross-env":"^7.0.2","fs-extra":"^9.0.1","html-webpack-plugin":"^4.3.0","ts-loader":"^7.0.5","typescript":"^3.9.9","webpack":"^4.43.0","@types/node":"18.11.9","webpack-cli":"^3.3.11","webpack-dev-server":"^3.11.0"},"dependencies":{"@typescript-eslint/eslint-plugin":"^4.22.1","@typescript-eslint/parser":"^4.22.1","EventEmitter":"^1.0.0","docdash-blue":"1.1.9","eslint":"^5.16.0","eslint-config-google":"^0.13.0","eslint-plugin-classes":"^0.1.1","jsdoc":"^3.6.4","jsdoc-plugin-typescript":"^2.0.5","pretty":"^2.0.0","replace":"^1.2.0","uuidjs":"^4.2.5"}}')},function(e,t,n){"use strict";var r,o=this&&this.__extends||(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)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}c((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(o=i.trys,!((o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}};Object.defineProperty(t,"__esModule",{value:!0});var s=n(5),c=n(6),l=function(){function e(){Object.defineProperty(this,"currentTime",{get:function(){return(new Date).getTime()}})}return e.prototype.doFilter=function(e){return a(this,void 0,void 0,(function(){return i(this,(function(e){return[2]}))}))},e}(),u=function(){function e(){this.filterList=[],this.result=[]}return e.prototype.register=function(e){this.filterList.push(e)},e.prototype.run=function(e){return void 0===e&&(e=[]),a(this,void 0,void 0,(function(){var t,n;return i(this,(function(r){switch(r.label){case 0:this.result=e,t=0,r.label=1;case 1:return t<this.filterList.length?(n=this,[4,this.filterList[t].doFilter(this.result)]):[3,4];case 2:n.result=r.sent(),r.label=3;case 3:return t++,[3,1];case 4:return[2,this.result]}}))}))},e}(),d=function(e){function t(t){var n=e.call(this)||this;return n.tim=null,n.expiredTime=3e4,n.maxCircleLength=20,n.tim=t.tim,n}return o(t,e),t.prototype.doFilter=function(e){return a(this,void 0,void 0,(function(){var e,t,n,r,o,a,s,c;return i(this,(function(i){switch(i.label){case 0:return e=[],[4,this.tim.getConversationList()];case 1:if(t=i.sent(),n=t.code,r=t.data,o=r.conversationList.length,a=o<=20?o:this.maxCircleLength,0===n)for(s=0;s<a;s++)(c=r.conversationList[s]).unreadCount>0&&c.lastMessage.lastTime&&1e3*c.lastMessage.lastTime>this.currentTime-this.expiredTime&&e.push(c);return[2,e]}}))}))},t}(l),p=function(e){function t(t){var n=e.call(this)||this;return n.tim=null,n.expiredTime=3e4,n.tim=t.tim,n}return o(t,e),t.prototype.doFilter=function(e){return a(this,void 0,void 0,(function(){var t,n,r,o,a,s,l,u,d=this;return i(this,(function(i){switch(i.label){case 0:t=[],n=0,i.label=1;case 1:return n<e.length?(r=e[n],o=r.conversationID,a=r.unreadCount,[4,this.tim.getMessageList({conversationID:o,count:a<=15?a:15})]):[3,4];case 2:s=i.sent(),l=s.code,u=s.data,0===l&&t.push(u.messageList.filter((function(e){return e.type===c.TYPES.MSG_CUSTOM&&e.time&&1e3*e.time>d.currentTime-d.expiredTime}))),i.label=3;case 3:return n++,[3,1];case 4:return[2,t.flat().sort((function(e,t){return e.time-t.time}))]}}))}))},t}(l),f=function(e){function t(){return e.call(this)||this}return o(t,e),t.prototype.doFilter=function(e){return a(this,void 0,void 0,(function(){return i(this,(function(t){return[2,e.filter((function(e){var t=!1;try{t=JSON.parse(e.payload.data).businessID===s.BusinessID.SIGNAL}catch(e){}return t}))]}))}))},t}(l),h=function(e){function t(){return e.call(this)||this}return o(t,e),t.prototype.doFilter=function(e){return a(this,void 0,void 0,(function(){var t,n,r;return i(this,(function(o){return Array.isArray(e)?0===e.length?[2,[]]:(t=new Map,e.forEach((function(e,n){var r=JSON.parse(e.payload.data),o=r.inviteID,a=r.actionType;!t.has(o)||t.get(o).actionType!==s.ActionType.INVITE||a!==s.ActionType.CANCEL_INVITE&&a!==s.ActionType.ACCEPT_INVITE&&a!==s.ActionType.REJECT_INVITE&&a!==s.ActionType.INVITE_TIMEOUT?t.set(o,{index:n,actionType:a}):t.delete(o)})),n=[],t.forEach((function(e){e.actionType===s.ActionType.INVITE&&n.push(e.index)})),0===n.length?[2,[]]:(r=[],n.sort((function(e,t){return e-t})).forEach((function(t){r.push(e[t])})),[2,r])):[2,[]]}))}))},t}(l),m=function(){function e(e){this.tim=null;var t=e.tim;this.tim=t}return e.prototype.getHistoricalSignaling=function(){return a(this,void 0,void 0,(function(){var e;return i(this,(function(t){return(e=new u).register(new d({tim:this.tim})),e.register(new p({tim:this.tim})),e.register(new f),e.register(new h),[2,e.run()]}))}))},e}();t.default=m}]).default}))},b3eb:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
function t(e,t,n,r){var o={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?o[n][0]:o[n][1]}var n=e.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return n}))},b42e:function(e,t,n){"use strict";var r=Math.ceil,o=Math.floor;e.exports=Math.trunc||function(e){var t=+e;return(t>0?o:r)(t)}},b43a:function(e,t,n){"use strict";n("711e");var r=n("a169");e.exports=r("Array").fill},b469:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
function t(e,t,n,r){var o={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?o[n][0]:o[n][1]}var n=e.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return n}))},b4aa:function(e,t){},b4d1:function(e,t,n){e.exports=n("083a")},b50d:function(e,t,n){"use strict";var r=n("c532"),o=n("467f"),a=n("7aac"),i=n("30b5"),s=n("83b9"),c=n("c345"),l=n("3934"),u=n("2d83"),d=n("cafa"),p=n("7a77");e.exports=function(e){return new Promise((function(t,n){var f,h=e.data,m=e.headers,v=e.responseType;function g(){e.cancelToken&&e.cancelToken.unsubscribe(f),e.signal&&e.signal.removeEventListener("abort",f)}r.isFormData(h)&&delete m["Content-Type"];var _=new XMLHttpRequest;if(e.auth){var y=e.auth.username||"",b=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";m.Authorization="Basic "+btoa(y+":"+b)}var O=s(e.baseURL,e.url);function M(){if(_){var r="getAllResponseHeaders"in _?c(_.getAllResponseHeaders()):null,a=v&&"text"!==v&&"json"!==v?_.response:_.responseText,i={data:a,status:_.status,statusText:_.statusText,headers:r,config:e,request:_};o((function(e){t(e),g()}),(function(e){n(e),g()}),i),_=null}}if(_.open(e.method.toUpperCase(),i(O,e.params,e.paramsSerializer),!0),_.timeout=e.timeout,"onloadend"in _?_.onloadend=M:_.onreadystatechange=function(){_&&4===_.readyState&&(0!==_.status||_.responseURL&&0===_.responseURL.indexOf("file:"))&&setTimeout(M)},_.onabort=function(){_&&(n(u("Request aborted",e,"ECONNABORTED",_)),_=null)},_.onerror=function(){n(u("Network Error",e,null,_)),_=null},_.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||d;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(u(t,e,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",_)),_=null},r.isStandardBrowserEnv()){var k=(e.withCredentials||l(O))&&e.xsrfCookieName?a.read(e.xsrfCookieName):void 0;k&&(m[e.xsrfHeaderName]=k)}"setRequestHeader"in _&&r.forEach(m,(function(e,t){"undefined"===typeof h&&"content-type"===t.toLowerCase()?delete m[t]:_.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(_.withCredentials=!!e.withCredentials),v&&"json"!==v&&(_.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&_.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&_.upload&&_.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(f=function(e){_&&(n(!e||e&&e.type?new p("canceled"):e),_.abort(),_=null)},e.cancelToken&&e.cancelToken.subscribe(f),e.signal&&(e.signal.aborted?f():e.signal.addEventListener("abort",f))),h||(h=null),_.send(h)}))}},b539:function(e,t,n){"use strict";var r=n("e635");e.exports=r},b53d:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}});return t}))},b540:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(e,t){return 12===e&&(e=0),"enjing"===t?e:"siyang"===t?e>=11?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}});return t}))},b5b3:function(e,t,n){"use strict";var r=n("8cfd");e.exports=r},b5b7:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],o=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,a=e.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:4},invalidDate:"Fecha inválida"});return a}))},b622:function(e,t,n){"use strict";var r=n("da84"),o=n("5692"),a=n("1a2d"),i=n("90e3"),s=n("04f8"),c=n("fdbf"),l=r.Symbol,u=o("wks"),d=c?l["for"]||l:l&&l.withoutSetter||i;e.exports=function(e){return a(u,e)||(u[e]=s&&a(l,e)?l[e]:d("Symbol."+e)),u[e]}},b6c4:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("93b2"),o=n("0c24");const a=Object(o["a"])(r["a"])},b6ce:function(e,t,n){e.exports=n("4947")},b6fe:function(e,t){},b7a8:function(e,t,n){"use strict";var r=n("a5eb"),o=n("7106"),a=n("7042"),i=n("b302"),s=n("fb2d"),c=n("99da"),l=n("5779"),u=n("ec62"),d=n("2874"),p=n("0273"),f=n("fdbe"),h=n("0363"),m=n("7463"),v=n("bb83"),g=i.PROPER,_=i.CONFIGURABLE,y=v.IteratorPrototype,b=v.BUGGY_SAFARI_ITERATORS,O=h("iterator"),M="keys",k="values",C="entries",w=function(){return this};e.exports=function(e,t,n,i,h,v,I){c(n,t,i);var S,T,E,j=function(e){if(e===h&&x)return x;if(!b&&e in A)return A[e];switch(e){case M:return function(){return new n(this,e)};case k:return function(){return new n(this,e)};case C:return function(){return new n(this,e)}}return function(){return new n(this)}},D=t+" Iterator",L=!1,A=e.prototype,N=A[O]||A["@@iterator"]||h&&A[h],x=!b&&N||j(h),R="Array"==t&&A.entries||N;if(R&&(S=l(R.call(new e)),S!==Object.prototype&&S.next&&(a||l(S)===y||(u?u(S,y):s(S[O])||f(S,O,w)),d(S,D,!0,!0),a&&(m[D]=w))),g&&h==k&&N&&N.name!==k&&(!a&&_?p(A,"name",k):(L=!0,x=function(){return o(N,this)})),h)if(T={values:j(k),keys:v?x:j(M),entries:j(C)},I)for(E in T)(b||L||!(E in A))&&f(A,E,T[E]);else r({target:t,proto:!0,forced:b||L},T);return a&&!I||A[O]===x||f(A,O,x,{name:h}),m[t]=x,T}},b7e9:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}});return t}))},b82f:function(e,t,n){"use strict";n("55d0");var r=n("764b");e.exports=r.Object.assign},b83c:function(e,t,n){"use strict";var r=n("b887");e.exports=r},b84c:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._må._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_må_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return t}))},b887:function(e,t,n){"use strict";n("9bb8");var r=n("764b"),o=r.Object,a=e.exports=function(e,t){return o.getOwnPropertyDescriptor(e,t)};o.getOwnPropertyDescriptor.sham&&(a.sham=!0)},b8ca:function(e,t,n){"use strict";n.r(t),n.d(t,"rectToClientRect",(function(){return I})),n.d(t,"arrow",(function(){return j})),n.d(t,"autoPlacement",(function(){return L})),n.d(t,"computePosition",(function(){return T})),n.d(t,"detectOverflow",(function(){return E})),n.d(t,"flip",(function(){return A})),n.d(t,"hide",(function(){return R})),n.d(t,"inline",(function(){return V})),n.d(t,"limitShift",(function(){return z})),n.d(t,"offset",(function(){return F})),n.d(t,"shift",(function(){return G})),n.d(t,"size",(function(){return H}));const r=["top","right","bottom","left"],o=["start","end"],a=r.reduce((e,t)=>e.concat(t,t+"-"+o[0],t+"-"+o[1]),[]),i=Math.min,s=Math.max,c=(Math.round,Math.floor,{left:"right",right:"left",bottom:"top",top:"bottom"}),l={start:"end",end:"start"};function u(e,t,n){return s(e,i(t,n))}function d(e,t){return"function"===typeof e?e(t):e}function p(e){return e.split("-")[0]}function f(e){return e.split("-")[1]}function h(e){return"x"===e?"y":"x"}function m(e){return"y"===e?"height":"width"}function v(e){return["top","bottom"].includes(p(e))?"y":"x"}function g(e){return h(v(e))}function _(e,t,n){void 0===n&&(n=!1);const r=f(e),o=g(e),a=m(o);let i="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=k(i)),[i,k(i)]}function y(e){const t=k(e);return[b(e),t,b(t)]}function b(e){return e.replace(/start|end/g,e=>l[e])}function O(e,t,n){const r=["left","right"],o=["right","left"],a=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?a:i;default:return[]}}function M(e,t,n,r){const o=f(e);let a=O(p(e),"start"===n,r);return o&&(a=a.map(e=>e+"-"+o),t&&(a=a.concat(a.map(b)))),a}function k(e){return e.replace(/left|right|bottom|top/g,e=>c[e])}function C(e){return{top:0,right:0,bottom:0,left:0,...e}}function w(e){return"number"!==typeof e?C(e):{top:e,right:e,bottom:e,left:e}}function I(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function S(e,t,n){let{reference:r,floating:o}=e;const a=v(t),i=g(t),s=m(i),c=p(t),l="y"===a,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,h=r[s]/2-o[s]/2;let _;switch(c){case"top":_={x:u,y:r.y-o.height};break;case"bottom":_={x:u,y:r.y+r.height};break;case"right":_={x:r.x+r.width,y:d};break;case"left":_={x:r.x-o.width,y:d};break;default:_={x:r.x,y:r.y}}switch(f(t)){case"start":_[i]-=h*(n&&l?-1:1);break;case"end":_[i]+=h*(n&&l?-1:1);break}return _}const T=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,s=a.filter(Boolean),c=await(null==i.isRTL?void 0:i.isRTL(t));let l=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=S(l,r,c),p=r,f={},h=0;for(let m=0;m<s.length;m++){const{name:n,fn:a}=s[m],{x:v,y:g,data:_,reset:y}=await a({x:u,y:d,initialPlacement:r,placement:p,strategy:o,middlewareData:f,rects:l,platform:i,elements:{reference:e,floating:t}});u=null!=v?v:u,d=null!=g?g:d,f={...f,[n]:{...f[n],..._}},y&&h<=50&&(h++,"object"===typeof y&&(y.placement&&(p=y.placement),y.rects&&(l=!0===y.rects?await i.getElementRects({reference:e,floating:t,strategy:o}):y.rects),({x:u,y:d}=S(l,p,c))),m=-1)}return{x:u,y:d,placement:p,strategy:o,middlewareData:f}};async function E(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:a,rects:i,elements:s,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:f=!1,padding:h=0}=d(t,e),m=w(h),v="floating"===p?"reference":"floating",g=s[f?v:p],_=I(await a.getClippingRect({element:null==(n=await(null==a.isElement?void 0:a.isElement(g)))||n?g:g.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(s.floating)),boundary:l,rootBoundary:u,strategy:c})),y="floating"===p?{...i.floating,x:r,y:o}:i.reference,b=await(null==a.getOffsetParent?void 0:a.getOffsetParent(s.floating)),O=await(null==a.isElement?void 0:a.isElement(b))&&await(null==a.getScale?void 0:a.getScale(b))||{x:1,y:1},M=I(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:y,offsetParent:b,strategy:c}):y);return{top:(_.top-M.top+m.top)/O.y,bottom:(M.bottom-_.bottom+m.bottom)/O.y,left:(_.left-M.left+m.left)/O.x,right:(M.right-_.right+m.right)/O.x}}const j=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:s,elements:c}=t,{element:l,padding:p=0}=d(e,t)||{};if(null==l)return{};const h=w(p),v={x:n,y:r},_=g(o),y=m(_),b=await s.getDimensions(l),O="y"===_,M=O?"top":"left",k=O?"bottom":"right",C=O?"clientHeight":"clientWidth",I=a.reference[y]+a.reference[_]-v[_]-a.floating[y],S=v[_]-a.reference[_],T=await(null==s.getOffsetParent?void 0:s.getOffsetParent(l));let E=T?T[C]:0;E&&await(null==s.isElement?void 0:s.isElement(T))||(E=c.floating[C]||a.floating[y]);const j=I/2-S/2,D=E/2-b[y]/2-1,L=i(h[M],D),A=i(h[k],D),N=L,x=E-b[y]-A,R=E/2-b[y]/2+j,P=u(N,R,x),U=null!=f(o)&&R!=P&&a.reference[y]/2-(R<N?L:A)-b[y]/2<0,V=U?R<N?N-R:x-R:0;return{[_]:v[_]-V,data:{[_]:P,centerOffset:R-P+V}}}});function D(e,t,n){const r=e?[...n.filter(t=>f(t)===e),...n.filter(t=>f(t)!==e)]:n.filter(e=>p(e)===e);return r.filter(n=>!e||(f(n)===e||!!t&&b(n)!==n))}const L=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,o;const{rects:i,middlewareData:s,placement:c,platform:l,elements:u}=t,{crossAxis:h=!1,alignment:m,allowedPlacements:v=a,autoAlignment:g=!0,...y}=d(e,t),b=void 0!==m||v===a?D(m||null,g,v):v,O=await E(t,y),M=(null==(n=s.autoPlacement)?void 0:n.index)||0,k=b[M];if(null==k)return{};const C=_(k,i,await(null==l.isRTL?void 0:l.isRTL(u.floating)));if(c!==k)return{reset:{placement:b[0]}};const w=[O[p(k)],O[C[0]],O[C[1]]],I=[...(null==(r=s.autoPlacement)?void 0:r.overflows)||[],{placement:k,overflows:w}],S=b[M+1];if(S)return{data:{index:M+1,overflows:I},reset:{placement:S}};const T=I.map(e=>{const t=f(e.placement);return[e.placement,t&&h?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),j=T.filter(e=>e[2].slice(0,f(e[0])?2:3).every(e=>e<=0)),L=(null==(o=j[0])?void 0:o[0])||T[0][0];return L!==c?{data:{index:M+1,overflows:I},reset:{placement:L}}:{}}}},A=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:o,rects:a,initialPlacement:i,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:v=!0,...g}=d(e,t),b=p(r),O=p(i)===i,C=await(null==s.isRTL?void 0:s.isRTL(c.floating)),w=f||(O||!v?[k(i)]:y(i));f||"none"===m||w.push(...M(i,v,m,C));const I=[i,...w],S=await E(t,g),T=[];let j=(null==(n=o.flip)?void 0:n.overflows)||[];if(l&&T.push(S[b]),u){const e=_(r,a,C);T.push(S[e[0]],S[e[1]])}if(j=[...j,{placement:r,overflows:T}],!T.every(e=>e<=0)){var D,L;const e=((null==(D=o.flip)?void 0:D.index)||0)+1,t=I[e];if(t)return{data:{index:e,overflows:j},reset:{placement:t}};let n=null==(L=j.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:L.placement;if(!n)switch(h){case"bestFit":{var A;const e=null==(A=j.map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:A[0];e&&(n=e);break}case"initialPlacement":n=i;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function N(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function x(e){return r.some(t=>e[t]>=0)}const R=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=d(e,t);switch(r){case"referenceHidden":{const e=await E(t,{...o,elementContext:"reference"}),r=N(e,n.reference);return{data:{referenceHiddenOffsets:r,referenceHidden:x(r)}}}case"escaped":{const e=await E(t,{...o,altBoundary:!0}),r=N(e,n.floating);return{data:{escapedOffsets:r,escaped:x(r)}}}default:return{}}}}};function P(e){const t=i(...e.map(e=>e.left)),n=i(...e.map(e=>e.top)),r=s(...e.map(e=>e.right)),o=s(...e.map(e=>e.bottom));return{x:t,y:n,width:r-t,height:o-n}}function U(e){const t=e.slice().sort((e,t)=>e.y-t.y),n=[];let r=null;for(let o=0;o<t.length;o++){const e=t[o];!r||e.y-r.y>r.height/2?n.push([e]):n[n.length-1].push(e),r=e}return n.map(e=>I(P(e)))}const V=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){const{placement:n,elements:r,rects:o,platform:a,strategy:c}=t,{padding:l=2,x:u,y:f}=d(e,t),h=Array.from(await(null==a.getClientRects?void 0:a.getClientRects(r.reference))||[]),m=U(h),g=I(P(h)),_=w(l);function y(){if(2===m.length&&m[0].left>m[1].right&&null!=u&&null!=f)return m.find(e=>u>e.left-_.left&&u<e.right+_.right&&f>e.top-_.top&&f<e.bottom+_.bottom)||g;if(m.length>=2){if("y"===v(n)){const e=m[0],t=m[m.length-1],r="top"===p(n),o=e.top,a=t.bottom,i=r?e.left:t.left,s=r?e.right:t.right,c=s-i,l=a-o;return{top:o,bottom:a,left:i,right:s,width:c,height:l,x:i,y:o}}const e="left"===p(n),t=s(...m.map(e=>e.right)),r=i(...m.map(e=>e.left)),o=m.filter(n=>e?n.left===r:n.right===t),a=o[0].top,c=o[o.length-1].bottom,l=r,u=t,d=u-l,f=c-a;return{top:a,bottom:c,left:l,right:u,width:d,height:f,x:l,y:a}}return g}const b=await a.getElementRects({reference:{getBoundingClientRect:y},floating:r.floating,strategy:c});return o.reference.x!==b.reference.x||o.reference.y!==b.reference.y||o.reference.width!==b.reference.width||o.reference.height!==b.reference.height?{reset:{rects:b}}:{}}}};async function B(e,t){const{placement:n,platform:r,elements:o}=e,a=await(null==r.isRTL?void 0:r.isRTL(o.floating)),i=p(n),s=f(n),c="y"===v(n),l=["left","top"].includes(i)?-1:1,u=a&&c?-1:1,h=d(t,e);let{mainAxis:m,crossAxis:g,alignmentAxis:_}="number"===typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...h};return s&&"number"===typeof _&&(g="end"===s?-1*_:_),c?{x:g*u,y:m*l}:{x:m*l,y:g*u}}const F=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,o=await B(t,e);return{x:n+o.x,y:r+o.y,data:o}}}},G=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=d(e,t),l={x:n,y:r},f=await E(t,c),m=v(p(o)),g=h(m);let _=l[g],y=l[m];if(a){const e="y"===g?"top":"left",t="y"===g?"bottom":"right",n=_+f[e],r=_-f[t];_=u(n,_,r)}if(i){const e="y"===m?"top":"left",t="y"===m?"bottom":"right",n=y+f[e],r=y-f[t];y=u(n,y,r)}const b=s.fn({...t,[g]:_,[m]:y});return{...b,data:{x:b.x-n,y:b.y-r}}}}},z=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:i}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=d(e,t),u={x:n,y:r},f=v(o),m=h(f);let g=u[m],_=u[f];const y=d(s,t),b="number"===typeof y?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(c){const e="y"===m?"height":"width",t=a.reference[m]-a.floating[e]+b.mainAxis,n=a.reference[m]+a.reference[e]-b.mainAxis;g<t?g=t:g>n&&(g=n)}if(l){var O,M;const e="y"===m?"width":"height",t=["top","left"].includes(p(o)),n=a.reference[f]-a.floating[e]+(t&&(null==(O=i.offset)?void 0:O[f])||0)+(t?0:b.crossAxis),r=a.reference[f]+a.reference[e]+(t?0:(null==(M=i.offset)?void 0:M[f])||0)-(t?b.crossAxis:0);_<n?_=n:_>r&&(_=r)}return{[m]:g,[f]:_}}}},H=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:a}=t,{apply:c=(()=>{}),...l}=d(e,t),u=await E(t,l),h=p(n),m=f(n),g="y"===v(n),{width:_,height:y}=r.floating;let b,O;"top"===h||"bottom"===h?(b=h,O=m===(await(null==o.isRTL?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(O=h,b="end"===m?"top":"bottom");const M=y-u[b],k=_-u[O],C=!t.middlewareData.shift;let w=M,I=k;if(g){const e=_-u.left-u.right;I=m||C?i(k,e):e}else{const e=y-u.top-u.bottom;w=m||C?i(M,e):e}if(C&&!m){const e=s(u.left,0),t=s(u.right,0),n=s(u.top,0),r=s(u.bottom,0);g?I=_-2*(0!==e||0!==t?e+t:s(u.left,u.right)):w=y-2*(0!==n||0!==r?n+r:s(u.top,u.bottom))}await c({...t,availableWidth:I,availableHeight:w});const S=await o.getDimensions(a.floating);return _!==S.width||y!==S.height?{reset:{rects:!0}}:{}}}}},b923:function(e,t,n){"use strict";n.d(t,"a",(function(){return w})),n.d(t,"b",(function(){return C})),n.d(t,"c",(function(){return pe})),n.d(t,"d",(function(){return z})),n.d(t,"e",(function(){return F})),n.d(t,"f",(function(){return K})),n.d(t,"g",(function(){return A})),n.d(t,"h",(function(){return Y})),n.d(t,"i",(function(){return D})),n.d(t,"j",(function(){return $}));var r=n("6f27");const o=65535,a=Math.pow(2,16);function i(e,t){return e+t*a}function s(e){return e&o}function c(e){return(e-(e&o))/a}const l=1,u=2,d=4,p=8;class f{constructor(e,t,n){this.pos=e,this.delInfo=t,this.recover=n}get deleted(){return(this.delInfo&p)>0}get deletedBefore(){return(this.delInfo&(l|d))>0}get deletedAfter(){return(this.delInfo&(u|d))>0}get deletedAcross(){return(this.delInfo&d)>0}}class h{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&h.empty)return h.empty}recover(e){let t=0,n=s(e);if(!this.inverted)for(let r=0;r<n;r++)t+=this.ranges[3*r+2]-this.ranges[3*r+1];return this.ranges[3*n]+t+c(e)}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,n){let r=0,o=this.inverted?2:1,a=this.inverted?1:2;for(let s=0;s<this.ranges.length;s+=3){let c=this.ranges[s]-(this.inverted?r:0);if(c>e)break;let h=this.ranges[s+o],m=this.ranges[s+a],v=c+h;if(e<=v){let o=h?e==c?-1:e==v?1:t:t,a=c+r+(o<0?0:m);if(n)return a;let g=e==(t<0?c:v)?null:i(s/3,e-c),_=e==c?u:e==v?l:d;return(t<0?e!=c:e!=v)&&(_|=p),new f(a,_,g)}r+=m-h}return n?e+r:new f(e+r,0,null)}touches(e,t){let n=0,r=s(t),o=this.inverted?2:1,a=this.inverted?1:2;for(let i=0;i<this.ranges.length;i+=3){let t=this.ranges[i]-(this.inverted?n:0);if(t>e)break;let s=this.ranges[i+o],c=t+s;if(e<=c&&i==3*r)return!0;n+=this.ranges[i+a]-s}return!1}forEach(e){let t=this.inverted?2:1,n=this.inverted?1:2;for(let r=0,o=0;r<this.ranges.length;r+=3){let a=this.ranges[r],i=a-(this.inverted?o:0),s=a+(this.inverted?0:o),c=this.ranges[r+t],l=this.ranges[r+n];e(i,i+c,s,s+l),o+=l-c}}invert(){return new h(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return 0==e?h.empty:new h(e<0?[0,-e,0]:[0,0,e])}}h.empty=new h([]);class m{constructor(e=[],t,n=0,r=e.length){this.maps=e,this.mirror=t,this.from=n,this.to=r}slice(e=0,t=this.maps.length){return new m(this.maps,this.mirror,e,t)}copy(){return new m(this.maps.slice(),this.mirror&&this.mirror.slice(),this.from,this.to)}appendMap(e,t){this.to=this.maps.push(e),null!=t&&this.setMirror(this.maps.length-1,t)}appendMapping(e){for(let t=0,n=this.maps.length;t<e.maps.length;t++){let r=e.getMirror(t);this.appendMap(e.maps[t],null!=r&&r<t?n+r:void 0)}}getMirror(e){if(this.mirror)for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}setMirror(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,n=this.maps.length+e.maps.length;t>=0;t--){let r=e.getMirror(t);this.appendMap(e.maps[t].invert(),null!=r&&r>t?n-r-1:void 0)}}invert(){let e=new m;return e.appendMappingInverted(this),e}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let n=this.from;n<this.to;n++)e=this.maps[n].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,n){let r=0;for(let o=this.from;o<this.to;o++){let n=this.maps[o],a=n.mapResult(e,t);if(null!=a.recover){let t=this.getMirror(o);if(null!=t&&t>o&&t<this.to){o=t,e=this.maps[t].recover(a.recover);continue}}r|=a.delInfo,e=a.pos}return n?e:new f(e,r,null)}}const v=Object.create(null);class g{getMap(){return h.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw new RangeError("Invalid input for Step.fromJSON");let n=v[t.stepType];if(!n)throw new RangeError(`No step type ${t.stepType} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in v)throw new RangeError("Duplicate use of step JSON ID "+e);return v[e]=t,t.prototype.jsonID=e,t}}class _{constructor(e,t){this.doc=e,this.failed=t}static ok(e){return new _(e,null)}static fail(e){return new _(null,e)}static fromReplace(e,t,n,o){try{return _.ok(e.replace(t,n,o))}catch(a){if(a instanceof r["h"])return _.fail(a.message);throw a}}}function y(e,t,n){let o=[];for(let r=0;r<e.childCount;r++){let a=e.child(r);a.content.size&&(a=a.copy(y(a.content,t,a))),a.isInline&&(a=t(a,n,r)),o.push(a)}return r["c"].fromArray(o)}class b extends g{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=e.resolve(this.from),o=n.node(n.sharedDepth(this.to)),a=new r["j"](y(t.content,(e,t)=>e.isAtom&&t.type.allowsMarkType(this.mark.type)?e.mark(this.mark.addToSet(e.marks)):e,o),t.openStart,t.openEnd);return _.fromReplace(e,this.from,this.to,a)}invert(){return new O(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted||t.pos>=n.pos?null:new b(t.pos,n.pos,this.mark)}merge(e){return e instanceof b&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new b(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new b(t.from,t.to,e.markFromJSON(t.mark))}}g.jsonID("addMark",b);class O extends g{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=new r["j"](y(t.content,e=>e.mark(this.mark.removeFromSet(e.marks)),e),t.openStart,t.openEnd);return _.fromReplace(e,this.from,this.to,n)}invert(){return new b(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted||t.pos>=n.pos?null:new O(t.pos,n.pos,this.mark)}merge(e){return e instanceof O&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new O(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new O(t.from,t.to,e.markFromJSON(t.mark))}}g.jsonID("removeMark",O);class M extends g{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return _.fail("No node at mark step's position");let n=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return _.fromReplace(e,this.pos,this.pos+1,new r["j"](r["c"].from(n),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);if(t){let e=this.mark.addToSet(t.marks);if(e.length==t.marks.length){for(let n=0;n<t.marks.length;n++)if(!t.marks[n].isInSet(e))return new M(this.pos,t.marks[n]);return new M(this.pos,this.mark)}}return new k(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new M(t.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new M(t.pos,e.markFromJSON(t.mark))}}g.jsonID("addNodeMark",M);class k extends g{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return _.fail("No node at mark step's position");let n=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return _.fromReplace(e,this.pos,this.pos+1,new r["j"](r["c"].from(n),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);return t&&this.mark.isInSet(t.marks)?new M(this.pos,this.mark):this}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new k(t.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new k(t.pos,e.markFromJSON(t.mark))}}g.jsonID("removeNodeMark",k);class C extends g{constructor(e,t,n,r=!1){super(),this.from=e,this.to=t,this.slice=n,this.structure=r}apply(e){return this.structure&&I(e,this.from,this.to)?_.fail("Structure replace would overwrite content"):_.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new h([this.from,this.to-this.from,this.slice.size])}invert(e){return new C(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deletedAcross&&n.deletedAcross?null:new C(t.pos,Math.max(t.pos,n.pos),this.slice)}merge(e){if(!(e instanceof C)||e.structure||this.structure)return null;if(this.from+this.slice.size!=e.from||this.slice.openEnd||e.slice.openStart){if(e.to!=this.from||this.slice.openStart||e.slice.openEnd)return null;{let t=this.slice.size+e.slice.size==0?r["j"].empty:new r["j"](e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new C(e.from,this.to,t,this.structure)}}{let t=this.slice.size+e.slice.size==0?r["j"].empty:new r["j"](this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new C(this.from,this.to+(e.to-e.from),t,this.structure)}}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new C(t.from,t.to,r["j"].fromJSON(e,t.slice),!!t.structure)}}g.jsonID("replace",C);class w extends g{constructor(e,t,n,r,o,a,i=!1){super(),this.from=e,this.to=t,this.gapFrom=n,this.gapTo=r,this.slice=o,this.insert=a,this.structure=i}apply(e){if(this.structure&&(I(e,this.from,this.gapFrom)||I(e,this.gapTo,this.to)))return _.fail("Structure gap-replace would overwrite content");let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return _.fail("Gap is not a flat range");let n=this.slice.insertAt(this.insert,t.content);return n?_.fromReplace(e,this.from,this.to,n):_.fail("Content does not fit in gap")}getMap(){return new h([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let t=this.gapTo-this.gapFrom;return new w(this.from,this.from+this.slice.size+t,this.from+this.insert,this.from+this.insert+t,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1),r=e.map(this.gapFrom,-1),o=e.map(this.gapTo,1);return t.deletedAcross&&n.deletedAcross||r<t.pos||o>n.pos?null:new w(t.pos,n.pos,r,o,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to||"number"!=typeof t.gapFrom||"number"!=typeof t.gapTo||"number"!=typeof t.insert)throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new w(t.from,t.to,t.gapFrom,t.gapTo,r["j"].fromJSON(e,t.slice),t.insert,!!t.structure)}}function I(e,t,n){let r=e.resolve(t),o=n-t,a=r.depth;while(o>0&&a>0&&r.indexAfter(a)==r.node(a).childCount)a--,o--;if(o>0){let e=r.node(a).maybeChild(r.indexAfter(a));while(o>0){if(!e||e.isLeaf)return!0;e=e.firstChild,o--}}return!1}function S(e,t,n,r){let o,a,i=[],s=[];e.doc.nodesBetween(t,n,(e,c,l)=>{if(!e.isInline)return;let u=e.marks;if(!r.isInSet(u)&&l.type.allowsMarkType(r.type)){let l=Math.max(c,t),d=Math.min(c+e.nodeSize,n),p=r.addToSet(u);for(let e=0;e<u.length;e++)u[e].isInSet(p)||(o&&o.to==l&&o.mark.eq(u[e])?o.to=d:i.push(o=new O(l,d,u[e])));a&&a.to==l?a.to=d:s.push(a=new b(l,d,r))}}),i.forEach(t=>e.step(t)),s.forEach(t=>e.step(t))}function T(e,t,n,o){let a=[],i=0;e.doc.nodesBetween(t,n,(e,s)=>{if(!e.isInline)return;i++;let c=null;if(o instanceof r["e"]){let t,n=e.marks;while(t=o.isInSet(n))(c||(c=[])).push(t),n=t.removeFromSet(n)}else o?o.isInSet(e.marks)&&(c=[o]):c=e.marks;if(c&&c.length){let r=Math.min(s+e.nodeSize,n);for(let e=0;e<c.length;e++){let n,o=c[e];for(let e=0;e<a.length;e++){let t=a[e];t.step==i-1&&o.eq(a[e].style)&&(n=t)}n?(n.to=r,n.step=i):a.push({style:o,from:Math.max(s,t),to:r,step:i})}}}),a.forEach(t=>e.step(new O(t.from,t.to,t.style)))}function E(e,t,n,o=n.contentMatch){let a=e.doc.nodeAt(t),i=[],s=t+1;for(let c=0;c<a.childCount;c++){let t=a.child(c),l=s+t.nodeSize,u=o.matchType(t.type);if(u){o=u;for(let r=0;r<t.marks.length;r++)n.allowsMarkType(t.marks[r].type)||e.step(new O(s,l,t.marks[r]));if(t.isText&&!n.spec.code){let e,o,a=/\r?\n|\r/g;while(e=a.exec(t.text))o||(o=new r["j"](r["c"].from(n.schema.text(" ",n.allowedMarks(t.marks))),0,0)),i.push(new C(s+e.index,s+e.index+e[0].length,o))}}else i.push(new C(s,l,r["j"].empty));s=l}if(!o.validEnd){let t=o.fillBefore(r["c"].empty,!0);e.replace(s,s,new r["j"](t,0,0))}for(let r=i.length-1;r>=0;r--)e.step(i[r])}function j(e,t,n){return(0==t||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function D(e){let t=e.parent,n=t.content.cutByIndex(e.startIndex,e.endIndex);for(let r=e.depth;;--r){let t=e.$from.node(r),o=e.$from.index(r),a=e.$to.indexAfter(r);if(r<e.depth&&t.canReplace(o,a,n))return r;if(0==r||t.type.spec.isolating||!j(t,o,a))break}return null}function L(e,t,n){let{$from:o,$to:a,depth:i}=t,s=o.before(i+1),c=a.after(i+1),l=s,u=c,d=r["c"].empty,p=0;for(let m=i,v=!1;m>n;m--)v||o.index(m)>0?(v=!0,d=r["c"].from(o.node(m).copy(d)),p++):l--;let f=r["c"].empty,h=0;for(let m=i,v=!1;m>n;m--)v||a.after(m+1)<a.end(m)?(v=!0,f=r["c"].from(a.node(m).copy(f)),h++):u++;e.step(new w(l,u,s,c,new r["j"](d.append(f),p,h),d.size-p,!0))}function A(e,t,n=null,r=e){let o=x(e,t),a=o&&R(r,t);return a?o.map(N).concat({type:t,attrs:n}).concat(a.map(N)):null}function N(e){return{type:e,attrs:null}}function x(e,t){let{parent:n,startIndex:r,endIndex:o}=e,a=n.contentMatchAt(r).findWrapping(t);if(!a)return null;let i=a.length?a[0]:t;return n.canReplaceWith(r,o,i)?a:null}function R(e,t){let{parent:n,startIndex:r,endIndex:o}=e,a=n.child(r),i=t.contentMatch.findWrapping(a.type);if(!i)return null;let s=i.length?i[i.length-1]:t,c=s.contentMatch;for(let l=r;c&&l<o;l++)c=c.matchType(n.child(l).type);return c&&c.validEnd?i:null}function P(e,t,n){let o=r["c"].empty;for(let s=n.length-1;s>=0;s--){if(o.size){let e=n[s].type.contentMatch.matchFragment(o);if(!e||!e.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}o=r["c"].from(n[s].type.create(n[s].attrs,o))}let a=t.start,i=t.end;e.step(new w(a,i,a,i,new r["j"](o,0,0),n.length,!0))}function U(e,t,n,o,a){if(!o.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let i=e.steps.length;e.doc.nodesBetween(t,n,(t,n)=>{if(t.isTextblock&&!t.hasMarkup(o,a)&&V(e.doc,e.mapping.slice(i).map(n),o)){e.clearIncompatible(e.mapping.slice(i).map(n,1),o);let s=e.mapping.slice(i),c=s.map(n,1),l=s.map(n+t.nodeSize,1);return e.step(new w(c,l,c+1,l-1,new r["j"](r["c"].from(o.create(a,null,t.marks)),0,0),1,!0)),!1}})}function V(e,t,n){let r=e.resolve(t),o=r.index();return r.parent.canReplaceWith(o,o+1,n)}function B(e,t,n,o,a){let i=e.doc.nodeAt(t);if(!i)throw new RangeError("No node at given position");n||(n=i.type);let s=n.create(o,null,a||i.marks);if(i.isLeaf)return e.replaceWith(t,t+i.nodeSize,s);if(!n.validContent(i.content))throw new RangeError("Invalid content for node type "+n.name);e.step(new w(t,t+i.nodeSize,t+1,t+i.nodeSize-1,new r["j"](r["c"].from(s),0,0),1,!0))}function F(e,t,n=1,r){let o=e.resolve(t),a=o.depth-n,i=r&&r[r.length-1]||o.parent;if(a<0||o.parent.type.spec.isolating||!o.parent.canReplace(o.index(),o.parent.childCount)||!i.type.validContent(o.parent.content.cutByIndex(o.index(),o.parent.childCount)))return!1;for(let l=o.depth-1,u=n-2;l>a;l--,u--){let e=o.node(l),t=o.index(l);if(e.type.spec.isolating)return!1;let n=e.content.cutByIndex(t,e.childCount),a=r&&r[u+1];a&&(n=n.replaceChild(0,a.type.create(a.attrs)));let i=r&&r[u]||e;if(!e.canReplace(t+1,e.childCount)||!i.type.validContent(n))return!1}let s=o.indexAfter(a),c=r&&r[0];return o.node(a).canReplaceWith(s,s,c?c.type:o.node(a+1).type)}function G(e,t,n=1,o){let a=e.doc.resolve(t),i=r["c"].empty,s=r["c"].empty;for(let c=a.depth,l=a.depth-n,u=n-1;c>l;c--,u--){i=r["c"].from(a.node(c).copy(i));let e=o&&o[u];s=r["c"].from(e?e.type.create(e.attrs,s):a.node(c).copy(s))}e.step(new C(t,t,new r["j"](i.append(s),n,n),!0))}function z(e,t){let n=e.resolve(t),r=n.index();return H(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function H(e,t){return!(!e||!t||e.isLeaf||!e.canAppend(t))}function Y(e,t,n=-1){let r=e.resolve(t);for(let o=r.depth;;o--){let e,a,i=r.index(o);if(o==r.depth?(e=r.nodeBefore,a=r.nodeAfter):n>0?(e=r.node(o+1),i++,a=r.node(o).maybeChild(i)):(e=r.node(o).maybeChild(i-1),a=r.node(o+1)),e&&!e.isTextblock&&H(e,a)&&r.node(o).canReplace(i,i+1))return t;if(0==o)break;t=n<0?r.before(o):r.after(o)}}function q(e,t,n){let o=new C(t-n,t+n,r["j"].empty,!0);e.step(o)}function W(e,t,n){let r=e.resolve(t);if(r.parent.canReplaceWith(r.index(),r.index(),n))return t;if(0==r.parentOffset)for(let o=r.depth-1;o>=0;o--){let e=r.index(o);if(r.node(o).canReplaceWith(e,e,n))return r.before(o+1);if(e>0)return null}if(r.parentOffset==r.parent.content.size)for(let o=r.depth-1;o>=0;o--){let e=r.indexAfter(o);if(r.node(o).canReplaceWith(e,e,n))return r.after(o+1);if(e<r.node(o).childCount)return null}return null}function K(e,t,n){let r=e.resolve(t);if(!n.content.size)return t;let o=n.content;for(let a=0;a<n.openStart;a++)o=o.firstChild.content;for(let a=1;a<=(0==n.openStart&&n.size?2:1);a++)for(let e=r.depth;e>=0;e--){let t=e==r.depth?0:r.pos<=(r.start(e+1)+r.end(e+1))/2?-1:1,n=r.index(e)+(t>0?1:0),i=r.node(e),s=!1;if(1==a)s=i.canReplace(n,n,o);else{let e=i.contentMatchAt(n).findWrapping(o.firstChild.type);s=e&&i.canReplaceWith(n,n,e[0])}if(s)return 0==t?r.pos:t<0?r.before(e+1):r.after(e+1)}return null}function $(e,t,n=t,o=r["j"].empty){if(t==n&&!o.size)return null;let a=e.resolve(t),i=e.resolve(n);return J(a,i,o)?new C(t,n,o):new Q(a,i,o).fit()}function J(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}g.jsonID("replaceAround",w);class Q{constructor(e,t,n){this.$from=e,this.$to=t,this.unplaced=n,this.frontier=[],this.placed=r["c"].empty;for(let r=0;r<=e.depth;r++){let t=e.node(r);this.frontier.push({type:t.type,match:t.contentMatchAt(e.indexAfter(r))})}for(let o=e.depth;o>0;o--)this.placed=r["c"].from(e.node(o).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){while(this.unplaced.size){let e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,n=this.$from,o=this.close(e<0?this.$to:n.doc.resolve(e));if(!o)return null;let a=this.placed,i=n.depth,s=o.depth;while(i&&s&&1==a.childCount)a=a.firstChild.content,i--,s--;let c=new r["j"](a,i,s);return e>-1?new w(n.pos,e,this.$to.pos,this.$to.end(),c,t):c.size||n.pos!=this.$to.pos?new C(n.pos,o.pos,c):null}findFittable(){let e=this.unplaced.openStart;for(let t=this.unplaced.content,n=0,r=this.unplaced.openEnd;n<e;n++){let o=t.firstChild;if(t.childCount>1&&(r=0),o.type.spec.isolating&&r<=n){e=n;break}t=o.content}for(let t=1;t<=2;t++)for(let n=1==t?e:this.unplaced.openStart;n>=0;n--){let e,o=null;n?(o=ee(this.unplaced.content,n-1).firstChild,e=o.content):e=this.unplaced.content;let a=e.firstChild;for(let i=this.depth;i>=0;i--){let e,{type:s,match:c}=this.frontier[i],l=null;if(1==t&&(a?c.matchType(a.type)||(l=c.fillBefore(r["c"].from(a),!1)):o&&s.compatibleContent(o.type)))return{sliceDepth:n,frontierDepth:i,parent:o,inject:l};if(2==t&&a&&(e=c.findWrapping(a.type)))return{sliceDepth:n,frontierDepth:i,parent:o,wrap:e};if(o&&c.matchType(o.type))break}}}openMore(){let{content:e,openStart:t,openEnd:n}=this.unplaced,o=ee(e,t);return!(!o.childCount||o.firstChild.isLeaf)&&(this.unplaced=new r["j"](e,t+1,Math.max(n,o.size+t>=e.size-n?t+1:0)),!0)}dropNode(){let{content:e,openStart:t,openEnd:n}=this.unplaced,o=ee(e,t);if(o.childCount<=1&&t>0){let a=e.size-t<=t+o.size;this.unplaced=new r["j"](X(e,t-1,1),t-1,a?t-1:n)}else this.unplaced=new r["j"](X(e,t,1),t,n)}placeNodes({sliceDepth:e,frontierDepth:t,parent:n,inject:o,wrap:a}){while(this.depth>t)this.closeFrontierNode();if(a)for(let r=0;r<a.length;r++)this.openFrontierNode(a[r]);let i=this.unplaced,s=n?n.content:i.content,c=i.openStart-e,l=0,u=[],{match:d,type:p}=this.frontier[t];if(o){for(let e=0;e<o.childCount;e++)u.push(o.child(e));d=d.matchFragment(o)}let f=s.size+e-(i.content.size-i.openEnd);while(l<s.childCount){let e=s.child(l),t=d.matchType(e.type);if(!t)break;l++,(l>1||0==c||e.content.size)&&(d=t,u.push(te(e.mark(p.allowedMarks(e.marks)),1==l?c:0,l==s.childCount?f:-1)))}let h=l==s.childCount;h||(f=-1),this.placed=Z(this.placed,t,r["c"].from(u)),this.frontier[t].match=d,h&&f<0&&n&&n.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let r=0,m=s;r<f;r++){let e=m.lastChild;this.frontier.push({type:e.type,match:e.contentMatchAt(e.childCount)}),m=e.content}this.unplaced=h?0==e?r["j"].empty:new r["j"](X(i.content,e-1,1),e-1,f<0?i.openEnd:e-1):new r["j"](X(i.content,e,l),i.openStart,i.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e,t=this.frontier[this.depth];if(!t.type.isTextblock||!ne(this.$to,this.$to.depth,t.type,t.match,!1)||this.$to.depth==this.depth&&(e=this.findCloseLevel(this.$to))&&e.depth==this.depth)return-1;let{depth:n}=this.$to,r=this.$to.after(n);while(n>1&&r==this.$to.end(--n))++r;return r}findCloseLevel(e){e:for(let t=Math.min(this.depth,e.depth);t>=0;t--){let{match:n,type:r}=this.frontier[t],o=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),a=ne(e,t,r,n,o);if(a){for(let n=t-1;n>=0;n--){let{match:t,type:r}=this.frontier[n],o=ne(e,n,r,t,!0);if(!o||o.childCount)continue e}return{depth:t,fit:a,move:o?e.doc.resolve(e.after(t+1)):e}}}}close(e){let t=this.findCloseLevel(e);if(!t)return null;while(this.depth>t.depth)this.closeFrontierNode();t.fit.childCount&&(this.placed=Z(this.placed,t.depth,t.fit)),e=t.move;for(let n=t.depth+1;n<=e.depth;n++){let t=e.node(n),r=t.type.contentMatch.fillBefore(t.content,!0,e.index(n));this.openFrontierNode(t.type,t.attrs,r)}return e}openFrontierNode(e,t=null,n){let o=this.frontier[this.depth];o.match=o.match.matchType(e),this.placed=Z(this.placed,this.depth,r["c"].from(e.create(t,n))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let e=this.frontier.pop(),t=e.match.fillBefore(r["c"].empty,!0);t.childCount&&(this.placed=Z(this.placed,this.frontier.length,t))}}function X(e,t,n){return 0==t?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy(X(e.firstChild.content,t-1,n)))}function Z(e,t,n){return 0==t?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(Z(e.lastChild.content,t-1,n)))}function ee(e,t){for(let n=0;n<t;n++)e=e.firstChild.content;return e}function te(e,t,n){if(t<=0)return e;let o=e.content;return t>1&&(o=o.replaceChild(0,te(o.firstChild,t-1,1==o.childCount?n-1:0))),t>0&&(o=e.type.contentMatch.fillBefore(o).append(o),n<=0&&(o=o.append(e.type.contentMatch.matchFragment(o).fillBefore(r["c"].empty,!0)))),e.copy(o)}function ne(e,t,n,r,o){let a=e.node(t),i=o?e.indexAfter(t):e.index(t);if(i==a.childCount&&!n.compatibleContent(a.type))return null;let s=r.fillBefore(a.content,!0,i);return s&&!re(n,a.content,i)?s:null}function re(e,t,n){for(let r=n;r<t.childCount;r++)if(!e.allowsMarks(t.child(r).marks))return!0;return!1}function oe(e){return e.spec.defining||e.spec.definingForContent}function ae(e,t,n,o){if(!o.size)return e.deleteRange(t,n);let a=e.doc.resolve(t),i=e.doc.resolve(n);if(J(a,i,o))return e.step(new C(t,n,o));let s=le(a,e.doc.resolve(n));0==s[s.length-1]&&s.pop();let c=-(a.depth+1);s.unshift(c);for(let r=a.depth,f=a.pos-1;r>0;r--,f--){let e=a.node(r).type.spec;if(e.defining||e.definingAsContext||e.isolating)break;s.indexOf(r)>-1?c=r:a.before(r)==f&&s.splice(1,0,-r)}let l=s.indexOf(c),u=[],d=o.openStart;for(let r=o.content,f=0;;f++){let e=r.firstChild;if(u.push(e),f==o.openStart)break;r=e.content}for(let r=d-1;r>=0;r--){let e=u[r].type,t=oe(e);if(t&&a.node(l).type!=e)d=r;else if(t||!e.isTextblock)break}for(let f=o.openStart;f>=0;f--){let t=(f+d+1)%(o.openStart+1),c=u[t];if(c)for(let u=0;u<s.length;u++){let d=s[(u+l)%s.length],p=!0;d<0&&(p=!1,d=-d);let f=a.node(d-1),h=a.index(d-1);if(f.canReplaceWith(h,h,c.type,c.marks))return e.replace(a.before(d),p?i.after(d):n,new r["j"](ie(o.content,0,o.openStart,t),t,o.openEnd))}}let p=e.steps.length;for(let r=s.length-1;r>=0;r--){if(e.replace(t,n,o),e.steps.length>p)break;let c=s[r];c<0||(t=a.before(c),n=i.after(c))}}function ie(e,t,n,o,a){if(t<n){let r=e.firstChild;e=e.replaceChild(0,r.copy(ie(r.content,t+1,n,o,r)))}if(t>o){let t=a.contentMatchAt(0),n=t.fillBefore(e).append(e);e=n.append(t.matchFragment(n).fillBefore(r["c"].empty,!0))}return e}function se(e,t,n,o){if(!o.isInline&&t==n&&e.doc.resolve(t).parent.content.size){let r=W(e.doc,t,o.type);null!=r&&(t=n=r)}e.replaceRange(t,n,new r["j"](r["c"].from(o),0,0))}function ce(e,t,n){let r=e.doc.resolve(t),o=e.doc.resolve(n),a=le(r,o);for(let i=0;i<a.length;i++){let t=a[i],n=i==a.length-1;if(n&&0==t||r.node(t).type.contentMatch.validEnd)return e.delete(r.start(t),o.end(t));if(t>0&&(n||r.node(t-1).canReplace(r.index(t-1),o.indexAfter(t-1))))return e.delete(r.before(t),o.after(t))}for(let i=1;i<=r.depth&&i<=o.depth;i++)if(t-r.start(i)==r.depth-i&&n>r.end(i)&&o.end(i)-n!=o.depth-i)return e.delete(r.before(i),n);e.delete(t,n)}function le(e,t){let n=[],r=Math.min(e.depth,t.depth);for(let o=r;o>=0;o--){let r=e.start(o);if(r<e.pos-(e.depth-o)||t.end(o)>t.pos+(t.depth-o)||e.node(o).type.spec.isolating||t.node(o).type.spec.isolating)break;(r==t.start(o)||o==e.depth&&o==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&o&&t.start(o-1)==r-1)&&n.push(o)}return n}class ue extends g{constructor(e,t,n){super(),this.pos=e,this.attr=t,this.value=n}apply(e){let t=e.nodeAt(this.pos);if(!t)return _.fail("No node at attribute step's position");let n=Object.create(null);for(let r in t.attrs)n[r]=t.attrs[r];n[this.attr]=this.value;let o=t.type.create(n,null,t.marks);return _.fromReplace(e,this.pos,this.pos+1,new r["j"](r["c"].from(o),0,t.isLeaf?0:1))}getMap(){return h.empty}invert(e){return new ue(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new ue(t.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,t){if("number"!=typeof t.pos||"string"!=typeof t.attr)throw new RangeError("Invalid input for AttrStep.fromJSON");return new ue(t.pos,t.attr,t.value)}}g.jsonID("attr",ue);let de=class extends Error{};de=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n},de.prototype=Object.create(Error.prototype),de.prototype.constructor=de,de.prototype.name="TransformError";class pe{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new m}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new de(t.failed);return this}maybeStep(e){let t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}get docChanged(){return this.steps.length>0}addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}replace(e,t=e,n=r["j"].empty){let o=$(this.doc,e,t,n);return o&&this.step(o),this}replaceWith(e,t,n){return this.replace(e,t,new r["j"](r["c"].from(n),0,0))}delete(e,t){return this.replace(e,t,r["j"].empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,n){return ae(this,e,t,n),this}replaceRangeWith(e,t,n){return se(this,e,t,n),this}deleteRange(e,t){return ce(this,e,t),this}lift(e,t){return L(this,e,t),this}join(e,t=1){return q(this,e,t),this}wrap(e,t){return P(this,e,t),this}setBlockType(e,t=e,n,r=null){return U(this,e,t,n,r),this}setNodeMarkup(e,t,n=null,r){return B(this,e,t,n,r),this}setNodeAttribute(e,t,n){return this.step(new ue(e,t,n)),this}addNodeMark(e,t){return this.step(new M(e,t)),this}removeNodeMark(e,t){if(!(t instanceof r["d"])){let n=this.doc.nodeAt(e);if(!n)throw new RangeError("No node at position "+e);if(t=t.isInSet(n.marks),!t)return this}return this.step(new k(e,t)),this}split(e,t=1,n){return G(this,e,t,n),this}addMark(e,t,n){return S(this,e,t,n),this}removeMark(e,t,n){return T(this,e,t,n),this}clearIncompatible(e,t,n){return E(this,e,t,n),this}}},b97c:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t={ss:"sekundes_sekundēm_sekunde_sekundes".split("_"),m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function n(e,t,n){return n?t%10===1&&t%100!==11?e[2]:e[3]:t%10===1&&t%100!==11?e[0]:e[1]}function r(e,r,o){return e+" "+n(t[o],e,r)}function o(e,r,o){return n(t[o],e,r)}function a(e,t){return t?"dažas sekundes":"dažām sekundēm"}var i=e.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:a,ss:r,m:o,mm:r,h:o,hh:r,d:o,dd:r,M:o,MM:r,y:o,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return i}))},b980:function(e,t,n){"use strict";var r=n("d039"),o=n("5c6c");e.exports=!r((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",o(1,7)),7!==e.stack)}))},baa7:function(e,t,n){"use strict";var r=n("3ac6"),o=n("96ed"),a=n("fb2d"),i=n("a0e5"),s=n("e899"),c=n("0363"),l=n("e246"),u=n("eba9"),d=n("7042"),p=n("4aa6"),f=o&&o.prototype,h=c("species"),m=!1,v=a(r.PromiseRejectionEvent),g=i("Promise",(function(){var e=s(o),t=e!==String(o);if(!t&&66===p)return!0;if(d&&(!f["catch"]||!f["finally"]))return!0;if(!p||p<51||!/native code/.test(e)){var n=new o((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))},a=n.constructor={};if(a[h]=r,m=n.then((function(){}))instanceof r,!m)return!0}return!t&&(l||u)&&!v}));e.exports={CONSTRUCTOR:g,REJECTION_EVENT:v,SUBCLASSING:m}},bae4:function(e,t,n){"use strict";var r=n("ce18"),o=n("06fa"),a=n("fb2d"),i=n("8f95"),s=n("9883"),c=n("e899"),l=function(){},u=[],d=s("Reflect","construct"),p=/^\s*(?:class|function)\b/,f=r(p.exec),h=!p.exec(l),m=function(e){if(!a(e))return!1;try{return d(l,u,e),!0}catch(t){return!1}},v=function(e){if(!a(e))return!1;switch(i(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!f(p,c(e))}catch(t){return!0}};v.sham=!0,e.exports=!d||o((function(){var e;return m(m.call)||!m(Object)||!m((function(){e=!0}))||e}))?v:m},bb71:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
function t(e,t,n,r){var o={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?o[n][0]:o[n][1]}var n=e.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return n}))},bb83:function(e,t,n){"use strict";var r,o,a,i=n("06fa"),s=n("fb2d"),c=n("dfdb"),l=n("4896"),u=n("5779"),d=n("fdbe"),p=n("0363"),f=n("7042"),h=p("iterator"),m=!1;[].keys&&(a=[].keys(),"next"in a?(o=u(u(a)),o!==Object.prototype&&(r=o)):m=!0);var v=!c(r)||i((function(){var e={};return r[h].call(e)!==e}));v?r={}:f&&(r=l(r)),s(r[h])||d(r,h,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:m}},bbe3:function(e,t,n){"use strict";var r=n("a5eb"),o=n("13cf"),a=n("6386").indexOf,i=n("9f61"),s=o([].indexOf),c=!!s&&1/s([1],1,-0)<0,l=c||!i("indexOf");r({target:"Array",proto:!0,forced:l},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return c?s(this,e,t)||0:a(this,e,t)}})},bc0d:function(e,t,n){"use strict";var r=n("56c4");e.exports=r},bc0f:function(e,t,n){"use strict";var r=n("437b"),o=n("fbaa"),a=String.prototype;e.exports=function(e){var t=e.trim;return"string"==typeof e||e===a||r(a,e)&&t===a.trim?o:t}},bc31:function(e,t,n){"use strict";var r=n("7106"),o=n("9883"),a=n("0363"),i=n("fdbe");e.exports=function(){var e=o("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,s=a("toPrimitive");t&&!t[s]&&i(t,s,(function(e){return r(n,this)}),{arity:1})}},bc3a:function(e,t,n){e.exports=n("cee4")},bc4a:function(e,t,n){"use strict";var r=n("fdbe");e.exports=function(e,t,n){for(var o in t)n&&n.unsafe&&e[o]?e[o]=t[o]:r(e,o,t[o],n);return e}},bc59:function(e,t,n){"use strict";n("3e47"),n("484e");var r=n("764b");e.exports=r.Array.from},bcb4:function(e,t,n){"use strict";n("9103"),n("2a0a"),n("6f89"),n("3e47");var r=n("764b");e.exports=r.Map},bcbf:function(e,t,n){"use strict";var r=n("f5df");e.exports=function(e){var t=r(e);return"BigInt64Array"==t||"BigUint64Array"==t}},bd7d:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toMsFilter=void 0;var r=n("d756"),o=n("740b");function a(e,t){var n=new o.TinyColor(e),a="#"+(0,r.rgbaToArgbHex)(n.r,n.g,n.b,n.a),i=a,s=n.gradientType?"GradientType = 1, ":"";if(t){var c=new o.TinyColor(t);i="#"+(0,r.rgbaToArgbHex)(c.r,c.g,c.b,c.a)}return"progid:DXImageTransform.Microsoft.gradient(".concat(s,"startColorstr=").concat(a,",endColorstr=").concat(i,")")}t.toMsFilter=a},bdf4:function(e,t,n){"use strict";var r=n("a5eb"),o=n("dee0").find,a=n("c44e"),i="find",s=!0;i in[]&&Array(1)[i]((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),a(i)},be44:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("7a23"),o=n("0e69");const a=(e,t,n)=>{let a={offsetX:0,offsetY:0};const i=t=>{const n=t.clientX,r=t.clientY,{offsetX:i,offsetY:s}=a,c=e.value.getBoundingClientRect(),l=c.left,u=c.top,d=c.width,p=c.height,f=document.documentElement.clientWidth,h=document.documentElement.clientHeight,m=-l+i,v=-u+s,g=f-l-d+i,_=h-u-p+s,y=t=>{const c=Math.min(Math.max(i+t.clientX-n,m),g),l=Math.min(Math.max(s+t.clientY-r,v),_);a={offsetX:c,offsetY:l},e.value.style.transform=`translate(${Object(o["b"])(c)}, ${Object(o["b"])(l)})`},b=()=>{document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",b)};document.addEventListener("mousemove",y),document.addEventListener("mouseup",b)},s=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",i)},c=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",i)};Object(r["onMounted"])(()=>{Object(r["watchEffect"])(()=>{n.value?s():c()})}),Object(r["onBeforeUnmount"])(()=>{c()})}},be70:function(e,t,n){"use strict";n("51b8")},beea:function(e,t,n){"use strict";var r=n("0363");t.f=r},bf37:function(e,t,n){"use strict";e.exports="function"==typeof Bun&&Bun&&"string"==typeof Bun.version},bfce:function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o}));var r=n("d095");const o=e=>Object.keys(e),a=e=>Object.entries(e),i=(e,t,n)=>({get value(){return Object(r["get"])(e,t,n)},set value(n){Object(r["set"])(e,t,n)}})},c04e:function(e,t,n){"use strict";var r=n("c65b"),o=n("861d"),a=n("d9b5"),i=n("dc4a"),s=n("485a"),c=n("b622"),l=TypeError,u=c("toPrimitive");e.exports=function(e,t){if(!o(e)||a(e))return e;var n,c=i(e,u);if(c){if(void 0===t&&(t="default"),n=r(c,e,t),!o(n)||a(n))return n;throw l("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},c109:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",ss:"%d ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}});return t}))},c192:function(e,t,n){e.exports=n("50dc")},c1b2:function(e,t,n){"use strict";var r=n("06fa");e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},c1df:function(e,t,n){(function(e){var t;//! moment.js
|
||
//! version : 2.29.4
|
||
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
||
//! license : MIT
|
||
//! momentjs.com
|
||
(function(t,n){e.exports=n()})(0,(function(){"use strict";var r,o;function a(){return r.apply(null,arguments)}function i(e){r=e}function s(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function c(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function l(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function u(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(l(e,t))return!1;return!0}function d(e){return void 0===e}function p(e){return"number"===typeof e||"[object Number]"===Object.prototype.toString.call(e)}function f(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function h(e,t){var n,r=[],o=e.length;for(n=0;n<o;++n)r.push(t(e[n],n));return r}function m(e,t){for(var n in t)l(t,n)&&(e[n]=t[n]);return l(t,"toString")&&(e.toString=t.toString),l(t,"valueOf")&&(e.valueOf=t.valueOf),e}function v(e,t,n,r){return Jn(e,t,n,r,!0).utc()}function g(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function _(e){return null==e._pf&&(e._pf=g()),e._pf}function y(e){if(null==e._isValid){var t=_(e),n=o.call(t.parsedDateParts,(function(e){return null!=e})),r=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(r=r&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return r;e._isValid=r}return e._isValid}function b(e){var t=v(NaN);return null!=e?m(_(t),e):_(t).userInvalidated=!0,t}o=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var O=a.momentProperties=[],M=!1;function k(e,t){var n,r,o,a=O.length;if(d(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),d(t._i)||(e._i=t._i),d(t._f)||(e._f=t._f),d(t._l)||(e._l=t._l),d(t._strict)||(e._strict=t._strict),d(t._tzm)||(e._tzm=t._tzm),d(t._isUTC)||(e._isUTC=t._isUTC),d(t._offset)||(e._offset=t._offset),d(t._pf)||(e._pf=_(t)),d(t._locale)||(e._locale=t._locale),a>0)for(n=0;n<a;n++)r=O[n],o=t[r],d(o)||(e[r]=o);return e}function C(e){k(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===M&&(M=!0,a.updateOffset(this),M=!1)}function w(e){return e instanceof C||null!=e&&null!=e._isAMomentObject}function I(e){!1===a.suppressDeprecationWarnings&&"undefined"!==typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function S(e,t){var n=!0;return m((function(){if(null!=a.deprecationHandler&&a.deprecationHandler(null,e),n){var r,o,i,s=[],c=arguments.length;for(o=0;o<c;o++){if(r="","object"===typeof arguments[o]){for(i in r+="\n["+o+"] ",arguments[0])l(arguments[0],i)&&(r+=i+": "+arguments[0][i]+", ");r=r.slice(0,-2)}else r=arguments[o];s.push(r)}I(e+"\nArguments: "+Array.prototype.slice.call(s).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var T,E={};function j(e,t){null!=a.deprecationHandler&&a.deprecationHandler(e,t),E[e]||(I(t),E[e]=!0)}function D(e){return"undefined"!==typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function L(e){var t,n;for(n in e)l(e,n)&&(t=e[n],D(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function A(e,t){var n,r=m({},e);for(n in t)l(t,n)&&(c(e[n])&&c(t[n])?(r[n]={},m(r[n],e[n]),m(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)l(e,n)&&!l(t,n)&&c(e[n])&&(r[n]=m({},r[n]));return r}function N(e){null!=e&&this.set(e)}a.suppressDeprecationWarnings=!1,a.deprecationHandler=null,T=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)l(e,t)&&n.push(t);return n};var x={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function R(e,t,n){var r=this._calendar[e]||this._calendar["sameElse"];return D(r)?r.call(t,n):r}function P(e,t,n){var r=""+Math.abs(e),o=t-r.length,a=e>=0;return(a?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var U=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,V=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,B={},F={};function G(e,t,n,r){var o=r;"string"===typeof r&&(o=function(){return this[r]()}),e&&(F[e]=o),t&&(F[t[0]]=function(){return P(o.apply(this,arguments),t[1],t[2])}),n&&(F[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function z(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function H(e){var t,n,r=e.match(U);for(t=0,n=r.length;t<n;t++)F[r[t]]?r[t]=F[r[t]]:r[t]=z(r[t]);return function(t){var o,a="";for(o=0;o<n;o++)a+=D(r[o])?r[o].call(t,e):r[o];return a}}function Y(e,t){return e.isValid()?(t=q(t,e.localeData()),B[t]=B[t]||H(t),B[t](e)):e.localeData().invalidDate()}function q(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}V.lastIndex=0;while(n>=0&&V.test(e))e=e.replace(V,r),V.lastIndex=0,n-=1;return e}var W={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"};function K(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(U).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var $="Invalid date";function J(){return this._invalidDate}var Q="%d",X=/\d{1,2}/;function Z(e){return this._ordinal.replace("%d",e)}var ee={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function te(e,t,n,r){var o=this._relativeTime[n];return D(o)?o(e,t,n,r):o.replace(/%d/i,e)}function ne(e,t){var n=this._relativeTime[e>0?"future":"past"];return D(n)?n(t):n.replace(/%s/i,t)}var re={};function oe(e,t){var n=e.toLowerCase();re[n]=re[n+"s"]=re[t]=e}function ae(e){return"string"===typeof e?re[e]||re[e.toLowerCase()]:void 0}function ie(e){var t,n,r={};for(n in e)l(e,n)&&(t=ae(n),t&&(r[t]=e[n]));return r}var se={};function ce(e,t){se[e]=t}function le(e){var t,n=[];for(t in e)l(e,t)&&n.push({unit:t,priority:se[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}function ue(e){return e%4===0&&e%100!==0||e%400===0}function de(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function pe(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=de(t)),n}function fe(e,t){return function(n){return null!=n?(me(this,e,n),a.updateOffset(this,t),this):he(this,e)}}function he(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function me(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&ue(e.year())&&1===e.month()&&29===e.date()?(n=pe(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),tt(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function ve(e){return e=ae(e),D(this[e])?this[e]():this}function ge(e,t){if("object"===typeof e){e=ie(e);var n,r=le(e),o=r.length;for(n=0;n<o;n++)this[r[n].unit](e[r[n].unit])}else if(e=ae(e),D(this[e]))return this[e](t);return this}var _e,ye=/\d/,be=/\d\d/,Oe=/\d{3}/,Me=/\d{4}/,ke=/[+-]?\d{6}/,Ce=/\d\d?/,we=/\d\d\d\d?/,Ie=/\d\d\d\d\d\d?/,Se=/\d{1,3}/,Te=/\d{1,4}/,Ee=/[+-]?\d{1,6}/,je=/\d+/,De=/[+-]?\d+/,Le=/Z|[+-]\d\d:?\d\d/gi,Ae=/Z|[+-]\d\d(?::?\d\d)?/gi,Ne=/[+-]?\d+(\.\d{1,3})?/,xe=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function Re(e,t,n){_e[e]=D(t)?t:function(e,r){return e&&n?n:t}}function Pe(e,t){return l(_e,e)?_e[e](t._strict,t._locale):new RegExp(Ue(e))}function Ue(e){return Ve(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,o){return t||n||r||o})))}function Ve(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}_e={};var Be={};function Fe(e,t){var n,r,o=t;for("string"===typeof e&&(e=[e]),p(t)&&(o=function(e,n){n[t]=pe(e)}),r=e.length,n=0;n<r;n++)Be[e[n]]=o}function Ge(e,t){Fe(e,(function(e,n,r,o){r._w=r._w||{},t(e,r._w,r,o)}))}function ze(e,t,n){null!=t&&l(Be,e)&&Be[e](t,n._a,n,e)}var He,Ye=0,qe=1,We=2,Ke=3,$e=4,Je=5,Qe=6,Xe=7,Ze=8;function et(e,t){return(e%t+t)%t}function tt(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=et(t,12);return e+=(t-n)/12,1===n?ue(e)?29:28:31-n%7%2}He=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},G("M",["MM",2],"Mo",(function(){return this.month()+1})),G("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),G("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),oe("month","M"),ce("month",8),Re("M",Ce),Re("MM",Ce,be),Re("MMM",(function(e,t){return t.monthsShortRegex(e)})),Re("MMMM",(function(e,t){return t.monthsRegex(e)})),Fe(["M","MM"],(function(e,t){t[qe]=pe(e)-1})),Fe(["MMM","MMMM"],(function(e,t,n,r){var o=n._locale.monthsParse(e,r,n._strict);null!=o?t[qe]=o:_(n).invalidMonth=e}));var nt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),rt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ot=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,at=xe,it=xe;function st(e,t){return e?s(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||ot).test(t)?"format":"standalone"][e.month()]:s(this._months)?this._months:this._months["standalone"]}function ct(e,t){return e?s(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[ot.test(t)?"format":"standalone"][e.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort["standalone"]}function lt(e,t,n){var r,o,a,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=v([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return n?"MMM"===t?(o=He.call(this._shortMonthsParse,i),-1!==o?o:null):(o=He.call(this._longMonthsParse,i),-1!==o?o:null):"MMM"===t?(o=He.call(this._shortMonthsParse,i),-1!==o?o:(o=He.call(this._longMonthsParse,i),-1!==o?o:null)):(o=He.call(this._longMonthsParse,i),-1!==o?o:(o=He.call(this._shortMonthsParse,i),-1!==o?o:null))}function ut(e,t,n){var r,o,a;if(this._monthsParseExact)return lt.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=v([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(a="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function dt(e,t){var n;if(!e.isValid())return e;if("string"===typeof t)if(/^\d+$/.test(t))t=pe(t);else if(t=e.localeData().monthsParse(t),!p(t))return e;return n=Math.min(e.date(),tt(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function pt(e){return null!=e?(dt(this,e),a.updateOffset(this,!0),this):he(this,"Month")}function ft(){return tt(this.year(),this.month())}function ht(e){return this._monthsParseExact?(l(this,"_monthsRegex")||vt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=at),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function mt(e){return this._monthsParseExact?(l(this,"_monthsRegex")||vt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=it),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function vt(){function e(e,t){return t.length-e.length}var t,n,r=[],o=[],a=[];for(t=0;t<12;t++)n=v([2e3,t]),r.push(this.monthsShort(n,"")),o.push(this.months(n,"")),a.push(this.months(n,"")),a.push(this.monthsShort(n,""));for(r.sort(e),o.sort(e),a.sort(e),t=0;t<12;t++)r[t]=Ve(r[t]),o[t]=Ve(o[t]);for(t=0;t<24;t++)a[t]=Ve(a[t]);this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function gt(e){return ue(e)?366:365}G("Y",0,0,(function(){var e=this.year();return e<=9999?P(e,4):"+"+e})),G(0,["YY",2],0,(function(){return this.year()%100})),G(0,["YYYY",4],0,"year"),G(0,["YYYYY",5],0,"year"),G(0,["YYYYYY",6,!0],0,"year"),oe("year","y"),ce("year",1),Re("Y",De),Re("YY",Ce,be),Re("YYYY",Te,Me),Re("YYYYY",Ee,ke),Re("YYYYYY",Ee,ke),Fe(["YYYYY","YYYYYY"],Ye),Fe("YYYY",(function(e,t){t[Ye]=2===e.length?a.parseTwoDigitYear(e):pe(e)})),Fe("YY",(function(e,t){t[Ye]=a.parseTwoDigitYear(e)})),Fe("Y",(function(e,t){t[Ye]=parseInt(e,10)})),a.parseTwoDigitYear=function(e){return pe(e)+(pe(e)>68?1900:2e3)};var _t=fe("FullYear",!0);function yt(){return ue(this.year())}function bt(e,t,n,r,o,a,i){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,o,a,i),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,o,a,i),s}function Ot(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Mt(e,t,n){var r=7+t-n,o=(7+Ot(e,0,r).getUTCDay()-t)%7;return-o+r-1}function kt(e,t,n,r,o){var a,i,s=(7+n-r)%7,c=Mt(e,r,o),l=1+7*(t-1)+s+c;return l<=0?(a=e-1,i=gt(a)+l):l>gt(e)?(a=e+1,i=l-gt(e)):(a=e,i=l),{year:a,dayOfYear:i}}function Ct(e,t,n){var r,o,a=Mt(e.year(),t,n),i=Math.floor((e.dayOfYear()-a-1)/7)+1;return i<1?(o=e.year()-1,r=i+wt(o,t,n)):i>wt(e.year(),t,n)?(r=i-wt(e.year(),t,n),o=e.year()+1):(o=e.year(),r=i),{week:r,year:o}}function wt(e,t,n){var r=Mt(e,t,n),o=Mt(e+1,t,n);return(gt(e)-r+o)/7}function It(e){return Ct(e,this._week.dow,this._week.doy).week}G("w",["ww",2],"wo","week"),G("W",["WW",2],"Wo","isoWeek"),oe("week","w"),oe("isoWeek","W"),ce("week",5),ce("isoWeek",5),Re("w",Ce),Re("ww",Ce,be),Re("W",Ce),Re("WW",Ce,be),Ge(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=pe(e)}));var St={dow:0,doy:6};function Tt(){return this._week.dow}function Et(){return this._week.doy}function jt(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Dt(e){var t=Ct(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Lt(e,t){return"string"!==typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"===typeof e?e:null):parseInt(e,10)}function At(e,t){return"string"===typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Nt(e,t){return e.slice(t,7).concat(e.slice(0,t))}G("d",0,"do","day"),G("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),G("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),G("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),G("e",0,0,"weekday"),G("E",0,0,"isoWeekday"),oe("day","d"),oe("weekday","e"),oe("isoWeekday","E"),ce("day",11),ce("weekday",11),ce("isoWeekday",11),Re("d",Ce),Re("e",Ce),Re("E",Ce),Re("dd",(function(e,t){return t.weekdaysMinRegex(e)})),Re("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),Re("dddd",(function(e,t){return t.weekdaysRegex(e)})),Ge(["dd","ddd","dddd"],(function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);null!=o?t.d=o:_(n).invalidWeekday=e})),Ge(["d","e","E"],(function(e,t,n,r){t[r]=pe(e)}));var xt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Rt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Pt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ut=xe,Vt=xe,Bt=xe;function Ft(e,t){var n=s(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Nt(n,this._week.dow):e?n[e.day()]:n}function Gt(e){return!0===e?Nt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function zt(e){return!0===e?Nt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Ht(e,t,n){var r,o,a,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=v([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===t?(o=He.call(this._weekdaysParse,i),-1!==o?o:null):"ddd"===t?(o=He.call(this._shortWeekdaysParse,i),-1!==o?o:null):(o=He.call(this._minWeekdaysParse,i),-1!==o?o:null):"dddd"===t?(o=He.call(this._weekdaysParse,i),-1!==o?o:(o=He.call(this._shortWeekdaysParse,i),-1!==o?o:(o=He.call(this._minWeekdaysParse,i),-1!==o?o:null))):"ddd"===t?(o=He.call(this._shortWeekdaysParse,i),-1!==o?o:(o=He.call(this._weekdaysParse,i),-1!==o?o:(o=He.call(this._minWeekdaysParse,i),-1!==o?o:null))):(o=He.call(this._minWeekdaysParse,i),-1!==o?o:(o=He.call(this._weekdaysParse,i),-1!==o?o:(o=He.call(this._shortWeekdaysParse,i),-1!==o?o:null)))}function Yt(e,t,n){var r,o,a;if(this._weekdaysParseExact)return Ht.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=v([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function qt(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Lt(e,this.localeData()),this.add(e-t,"d")):t}function Wt(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Kt(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=At(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function $t(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Xt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=Ut),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Jt(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Xt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Vt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Qt(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Xt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Bt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Xt(){function e(e,t){return t.length-e.length}var t,n,r,o,a,i=[],s=[],c=[],l=[];for(t=0;t<7;t++)n=v([2e3,1]).day(t),r=Ve(this.weekdaysMin(n,"")),o=Ve(this.weekdaysShort(n,"")),a=Ve(this.weekdays(n,"")),i.push(r),s.push(o),c.push(a),l.push(r),l.push(o),l.push(a);i.sort(e),s.sort(e),c.sort(e),l.sort(e),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Zt(){return this.hours()%12||12}function en(){return this.hours()||24}function tn(e,t){G(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function nn(e,t){return t._meridiemParse}function rn(e){return"p"===(e+"").toLowerCase().charAt(0)}G("H",["HH",2],0,"hour"),G("h",["hh",2],0,Zt),G("k",["kk",2],0,en),G("hmm",0,0,(function(){return""+Zt.apply(this)+P(this.minutes(),2)})),G("hmmss",0,0,(function(){return""+Zt.apply(this)+P(this.minutes(),2)+P(this.seconds(),2)})),G("Hmm",0,0,(function(){return""+this.hours()+P(this.minutes(),2)})),G("Hmmss",0,0,(function(){return""+this.hours()+P(this.minutes(),2)+P(this.seconds(),2)})),tn("a",!0),tn("A",!1),oe("hour","h"),ce("hour",13),Re("a",nn),Re("A",nn),Re("H",Ce),Re("h",Ce),Re("k",Ce),Re("HH",Ce,be),Re("hh",Ce,be),Re("kk",Ce,be),Re("hmm",we),Re("hmmss",Ie),Re("Hmm",we),Re("Hmmss",Ie),Fe(["H","HH"],Ke),Fe(["k","kk"],(function(e,t,n){var r=pe(e);t[Ke]=24===r?0:r})),Fe(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),Fe(["h","hh"],(function(e,t,n){t[Ke]=pe(e),_(n).bigHour=!0})),Fe("hmm",(function(e,t,n){var r=e.length-2;t[Ke]=pe(e.substr(0,r)),t[$e]=pe(e.substr(r)),_(n).bigHour=!0})),Fe("hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[Ke]=pe(e.substr(0,r)),t[$e]=pe(e.substr(r,2)),t[Je]=pe(e.substr(o)),_(n).bigHour=!0})),Fe("Hmm",(function(e,t,n){var r=e.length-2;t[Ke]=pe(e.substr(0,r)),t[$e]=pe(e.substr(r))})),Fe("Hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[Ke]=pe(e.substr(0,r)),t[$e]=pe(e.substr(r,2)),t[Je]=pe(e.substr(o))}));var on=/[ap]\.?m?\.?/i,an=fe("Hours",!0);function sn(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var cn,ln={calendar:x,longDateFormat:W,invalidDate:$,ordinal:Q,dayOfMonthOrdinalParse:X,relativeTime:ee,months:nt,monthsShort:rt,week:St,weekdays:xt,weekdaysMin:Pt,weekdaysShort:Rt,meridiemParse:on},un={},dn={};function pn(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function fn(e){return e?e.toLowerCase().replace("_","-"):e}function hn(e){var t,n,r,o,a=0;while(a<e.length){o=fn(e[a]).split("-"),t=o.length,n=fn(e[a+1]),n=n?n.split("-"):null;while(t>0){if(r=vn(o.slice(0,t).join("-")),r)return r;if(n&&n.length>=t&&pn(o,n)>=t-1)break;t--}a++}return cn}function mn(e){return null!=e.match("^[^/\\\\]*$")}function vn(r){var o=null;if(void 0===un[r]&&"undefined"!==typeof e&&e&&e.exports&&mn(r))try{o=cn._abbr,t,n("4678")("./"+r),gn(o)}catch(a){un[r]=null}return un[r]}function gn(e,t){var n;return e&&(n=d(t)?bn(e):_n(e,t),n?cn=n:"undefined"!==typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),cn._abbr}function _n(e,t){if(null!==t){var n,r=ln;if(t.abbr=e,null!=un[e])j("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=un[e]._config;else if(null!=t.parentLocale)if(null!=un[t.parentLocale])r=un[t.parentLocale]._config;else{if(n=vn(t.parentLocale),null==n)return dn[t.parentLocale]||(dn[t.parentLocale]=[]),dn[t.parentLocale].push({name:e,config:t}),null;r=n._config}return un[e]=new N(A(r,t)),dn[e]&&dn[e].forEach((function(e){_n(e.name,e.config)})),gn(e),un[e]}return delete un[e],null}function yn(e,t){if(null!=t){var n,r,o=ln;null!=un[e]&&null!=un[e].parentLocale?un[e].set(A(un[e]._config,t)):(r=vn(e),null!=r&&(o=r._config),t=A(o,t),null==r&&(t.abbr=e),n=new N(t),n.parentLocale=un[e],un[e]=n),gn(e)}else null!=un[e]&&(null!=un[e].parentLocale?(un[e]=un[e].parentLocale,e===gn()&&gn(e)):null!=un[e]&&delete un[e]);return un[e]}function bn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return cn;if(!s(e)){if(t=vn(e),t)return t;e=[e]}return hn(e)}function On(){return T(un)}function Mn(e){var t,n=e._a;return n&&-2===_(e).overflow&&(t=n[qe]<0||n[qe]>11?qe:n[We]<1||n[We]>tt(n[Ye],n[qe])?We:n[Ke]<0||n[Ke]>24||24===n[Ke]&&(0!==n[$e]||0!==n[Je]||0!==n[Qe])?Ke:n[$e]<0||n[$e]>59?$e:n[Je]<0||n[Je]>59?Je:n[Qe]<0||n[Qe]>999?Qe:-1,_(e)._overflowDayOfYear&&(t<Ye||t>We)&&(t=We),_(e)._overflowWeeks&&-1===t&&(t=Xe),_(e)._overflowWeekday&&-1===t&&(t=Ze),_(e).overflow=t),e}var kn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Cn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,wn=/Z|[+-]\d\d(?::?\d\d)?/,In=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Sn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Tn=/^\/?Date\((-?\d+)/i,En=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,jn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Dn(e){var t,n,r,o,a,i,s=e._i,c=kn.exec(s)||Cn.exec(s),l=In.length,u=Sn.length;if(c){for(_(e).iso=!0,t=0,n=l;t<n;t++)if(In[t][1].exec(c[1])){o=In[t][0],r=!1!==In[t][2];break}if(null==o)return void(e._isValid=!1);if(c[3]){for(t=0,n=u;t<n;t++)if(Sn[t][1].exec(c[3])){a=(c[2]||" ")+Sn[t][0];break}if(null==a)return void(e._isValid=!1)}if(!r&&null!=a)return void(e._isValid=!1);if(c[4]){if(!wn.exec(c[4]))return void(e._isValid=!1);i="Z"}e._f=o+(a||"")+(i||""),zn(e)}else e._isValid=!1}function Ln(e,t,n,r,o,a){var i=[An(e),rt.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(o,10)];return a&&i.push(parseInt(a,10)),i}function An(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Nn(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function xn(e,t,n){if(e){var r=Rt.indexOf(e),o=new Date(t[0],t[1],t[2]).getDay();if(r!==o)return _(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function Rn(e,t,n){if(e)return jn[e];if(t)return 0;var r=parseInt(n,10),o=r%100,a=(r-o)/100;return 60*a+o}function Pn(e){var t,n=En.exec(Nn(e._i));if(n){if(t=Ln(n[4],n[3],n[2],n[5],n[6],n[7]),!xn(n[1],t,e))return;e._a=t,e._tzm=Rn(n[8],n[9],n[10]),e._d=Ot.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),_(e).rfc2822=!0}else e._isValid=!1}function Un(e){var t=Tn.exec(e._i);null===t?(Dn(e),!1===e._isValid&&(delete e._isValid,Pn(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:a.createFromInputFallback(e)))):e._d=new Date(+t[1])}function Vn(e,t,n){return null!=e?e:null!=t?t:n}function Bn(e){var t=new Date(a.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Fn(e){var t,n,r,o,a,i=[];if(!e._d){for(r=Bn(e),e._w&&null==e._a[We]&&null==e._a[qe]&&Gn(e),null!=e._dayOfYear&&(a=Vn(e._a[Ye],r[Ye]),(e._dayOfYear>gt(a)||0===e._dayOfYear)&&(_(e)._overflowDayOfYear=!0),n=Ot(a,0,e._dayOfYear),e._a[qe]=n.getUTCMonth(),e._a[We]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=i[t]=r[t];for(;t<7;t++)e._a[t]=i[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Ke]&&0===e._a[$e]&&0===e._a[Je]&&0===e._a[Qe]&&(e._nextDay=!0,e._a[Ke]=0),e._d=(e._useUTC?Ot:bt).apply(null,i),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ke]=24),e._w&&"undefined"!==typeof e._w.d&&e._w.d!==o&&(_(e).weekdayMismatch=!0)}}function Gn(e){var t,n,r,o,a,i,s,c,l;t=e._w,null!=t.GG||null!=t.W||null!=t.E?(a=1,i=4,n=Vn(t.GG,e._a[Ye],Ct(Qn(),1,4).year),r=Vn(t.W,1),o=Vn(t.E,1),(o<1||o>7)&&(c=!0)):(a=e._locale._week.dow,i=e._locale._week.doy,l=Ct(Qn(),a,i),n=Vn(t.gg,e._a[Ye],l.year),r=Vn(t.w,l.week),null!=t.d?(o=t.d,(o<0||o>6)&&(c=!0)):null!=t.e?(o=t.e+a,(t.e<0||t.e>6)&&(c=!0)):o=a),r<1||r>wt(n,a,i)?_(e)._overflowWeeks=!0:null!=c?_(e)._overflowWeekday=!0:(s=kt(n,r,o,a,i),e._a[Ye]=s.year,e._dayOfYear=s.dayOfYear)}function zn(e){if(e._f!==a.ISO_8601)if(e._f!==a.RFC_2822){e._a=[],_(e).empty=!0;var t,n,r,o,i,s,c,l=""+e._i,u=l.length,d=0;for(r=q(e._f,e._locale).match(U)||[],c=r.length,t=0;t<c;t++)o=r[t],n=(l.match(Pe(o,e))||[])[0],n&&(i=l.substr(0,l.indexOf(n)),i.length>0&&_(e).unusedInput.push(i),l=l.slice(l.indexOf(n)+n.length),d+=n.length),F[o]?(n?_(e).empty=!1:_(e).unusedTokens.push(o),ze(o,n,e)):e._strict&&!n&&_(e).unusedTokens.push(o);_(e).charsLeftOver=u-d,l.length>0&&_(e).unusedInput.push(l),e._a[Ke]<=12&&!0===_(e).bigHour&&e._a[Ke]>0&&(_(e).bigHour=void 0),_(e).parsedDateParts=e._a.slice(0),_(e).meridiem=e._meridiem,e._a[Ke]=Hn(e._locale,e._a[Ke],e._meridiem),s=_(e).era,null!==s&&(e._a[Ye]=e._locale.erasConvertYear(s,e._a[Ye])),Fn(e),Mn(e)}else Pn(e);else Dn(e)}function Hn(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(r=e.isPM(n),r&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function Yn(e){var t,n,r,o,a,i,s=!1,c=e._f.length;if(0===c)return _(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;o<c;o++)a=0,i=!1,t=k({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[o],zn(t),y(t)&&(i=!0),a+=_(t).charsLeftOver,a+=10*_(t).unusedTokens.length,_(t).score=a,s?a<r&&(r=a,n=t):(null==r||a<r||i)&&(r=a,n=t,i&&(s=!0));m(e,n||t)}function qn(e){if(!e._d){var t=ie(e._i),n=void 0===t.day?t.date:t.day;e._a=h([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),Fn(e)}}function Wn(e){var t=new C(Mn(Kn(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Kn(e){var t=e._i,n=e._f;return e._locale=e._locale||bn(e._l),null===t||void 0===n&&""===t?b({nullInput:!0}):("string"===typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new C(Mn(t)):(f(t)?e._d=t:s(n)?Yn(e):n?zn(e):$n(e),y(e)||(e._d=null),e))}function $n(e){var t=e._i;d(t)?e._d=new Date(a.now()):f(t)?e._d=new Date(t.valueOf()):"string"===typeof t?Un(e):s(t)?(e._a=h(t.slice(0),(function(e){return parseInt(e,10)})),Fn(e)):c(t)?qn(e):p(t)?e._d=new Date(t):a.createFromInputFallback(e)}function Jn(e,t,n,r,o){var a={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(c(e)&&u(e)||s(e)&&0===e.length)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=o,a._l=n,a._i=e,a._f=t,a._strict=r,Wn(a)}function Qn(e,t,n,r){return Jn(e,t,n,r,!1)}a.createFromInputFallback=S("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),a.ISO_8601=function(){},a.RFC_2822=function(){};var Xn=S("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Qn.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:b()})),Zn=S("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Qn.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:b()}));function er(e,t){var n,r;if(1===t.length&&s(t[0])&&(t=t[0]),!t.length)return Qn();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}function tr(){var e=[].slice.call(arguments,0);return er("isBefore",e)}function nr(){var e=[].slice.call(arguments,0);return er("isAfter",e)}var rr=function(){return Date.now?Date.now():+new Date},or=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ar(e){var t,n,r=!1,o=or.length;for(t in e)if(l(e,t)&&(-1===He.call(or,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<o;++n)if(e[or[n]]){if(r)return!1;parseFloat(e[or[n]])!==pe(e[or[n]])&&(r=!0)}return!0}function ir(){return this._isValid}function sr(){return jr(NaN)}function cr(e){var t=ie(e),n=t.year||0,r=t.quarter||0,o=t.month||0,a=t.week||t.isoWeek||0,i=t.day||0,s=t.hour||0,c=t.minute||0,l=t.second||0,u=t.millisecond||0;this._isValid=ar(t),this._milliseconds=+u+1e3*l+6e4*c+1e3*s*60*60,this._days=+i+7*a,this._months=+o+3*r+12*n,this._data={},this._locale=bn(),this._bubble()}function lr(e){return e instanceof cr}function ur(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function dr(e,t,n){var r,o=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),i=0;for(r=0;r<o;r++)(n&&e[r]!==t[r]||!n&&pe(e[r])!==pe(t[r]))&&i++;return i+a}function pr(e,t){G(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+P(~~(e/60),2)+t+P(~~e%60,2)}))}pr("Z",":"),pr("ZZ",""),Re("Z",Ae),Re("ZZ",Ae),Fe(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=hr(Ae,e)}));var fr=/([\+\-]|\d\d)/gi;function hr(e,t){var n,r,o,a=(t||"").match(e);return null===a?null:(n=a[a.length-1]||[],r=(n+"").match(fr)||["-",0,0],o=60*r[1]+pe(r[2]),0===o?0:"+"===r[0]?o:-o)}function mr(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(w(e)||f(e)?e.valueOf():Qn(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),a.updateOffset(n,!1),n):Qn(e).local()}function vr(e){return-Math.round(e._d.getTimezoneOffset())}function gr(e,t,n){var r,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"===typeof e){if(e=hr(Ae,e),null===e)return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=vr(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),o!==e&&(!t||this._changeInProgress?xr(this,jr(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,a.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:vr(this)}function _r(e,t){return null!=e?("string"!==typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function yr(e){return this.utcOffset(0,e)}function br(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(vr(this),"m")),this}function Or(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"===typeof this._i){var e=hr(Le,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Mr(e){return!!this.isValid()&&(e=e?Qn(e).utcOffset():0,(this.utcOffset()-e)%60===0)}function kr(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Cr(){if(!d(this._isDSTShifted))return this._isDSTShifted;var e,t={};return k(t,this),t=Kn(t),t._a?(e=t._isUTC?v(t._a):Qn(t._a),this._isDSTShifted=this.isValid()&&dr(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function wr(){return!!this.isValid()&&!this._isUTC}function Ir(){return!!this.isValid()&&this._isUTC}function Sr(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}a.updateOffset=function(){};var Tr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Er=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function jr(e,t){var n,r,o,a=e,i=null;return lr(e)?a={ms:e._milliseconds,d:e._days,M:e._months}:p(e)||!isNaN(+e)?(a={},t?a[t]=+e:a.milliseconds=+e):(i=Tr.exec(e))?(n="-"===i[1]?-1:1,a={y:0,d:pe(i[We])*n,h:pe(i[Ke])*n,m:pe(i[$e])*n,s:pe(i[Je])*n,ms:pe(ur(1e3*i[Qe]))*n}):(i=Er.exec(e))?(n="-"===i[1]?-1:1,a={y:Dr(i[2],n),M:Dr(i[3],n),w:Dr(i[4],n),d:Dr(i[5],n),h:Dr(i[6],n),m:Dr(i[7],n),s:Dr(i[8],n)}):null==a?a={}:"object"===typeof a&&("from"in a||"to"in a)&&(o=Ar(Qn(a.from),Qn(a.to)),a={},a.ms=o.milliseconds,a.M=o.months),r=new cr(a),lr(e)&&l(e,"_locale")&&(r._locale=e._locale),lr(e)&&l(e,"_isValid")&&(r._isValid=e._isValid),r}function Dr(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Lr(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Ar(e,t){var n;return e.isValid()&&t.isValid()?(t=mr(t,e),e.isBefore(t)?n=Lr(e,t):(n=Lr(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Nr(e,t){return function(n,r){var o,a;return null===r||isNaN(+r)||(j(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=n,n=r,r=a),o=jr(n,r),xr(this,o,e),this}}function xr(e,t,n,r){var o=t._milliseconds,i=ur(t._days),s=ur(t._months);e.isValid()&&(r=null==r||r,s&&dt(e,he(e,"Month")+s*n),i&&me(e,"Date",he(e,"Date")+i*n),o&&e._d.setTime(e._d.valueOf()+o*n),r&&a.updateOffset(e,i||s))}jr.fn=cr.prototype,jr.invalid=sr;var Rr=Nr(1,"add"),Pr=Nr(-1,"subtract");function Ur(e){return"string"===typeof e||e instanceof String}function Vr(e){return w(e)||f(e)||Ur(e)||p(e)||Fr(e)||Br(e)||null===e||void 0===e}function Br(e){var t,n,r=c(e)&&!u(e),o=!1,a=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],i=a.length;for(t=0;t<i;t+=1)n=a[t],o=o||l(e,n);return r&&o}function Fr(e){var t=s(e),n=!1;return t&&(n=0===e.filter((function(t){return!p(t)&&Ur(e)})).length),t&&n}function Gr(e){var t,n,r=c(e)&&!u(e),o=!1,a=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<a.length;t+=1)n=a[t],o=o||l(e,n);return r&&o}function zr(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Hr(e,t){1===arguments.length&&(arguments[0]?Vr(arguments[0])?(e=arguments[0],t=void 0):Gr(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Qn(),r=mr(n,this).startOf("day"),o=a.calendarFormat(this,r)||"sameElse",i=t&&(D(t[o])?t[o].call(this,n):t[o]);return this.format(i||this.localeData().calendar(o,this,Qn(n)))}function Yr(){return new C(this)}function qr(e,t){var n=w(e)?e:Qn(e);return!(!this.isValid()||!n.isValid())&&(t=ae(t)||"millisecond","millisecond"===t?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function Wr(e,t){var n=w(e)?e:Qn(e);return!(!this.isValid()||!n.isValid())&&(t=ae(t)||"millisecond","millisecond"===t?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function Kr(e,t,n,r){var o=w(e)?e:Qn(e),a=w(t)?t:Qn(t);return!!(this.isValid()&&o.isValid()&&a.isValid())&&(r=r||"()",("("===r[0]?this.isAfter(o,n):!this.isBefore(o,n))&&(")"===r[1]?this.isBefore(a,n):!this.isAfter(a,n)))}function $r(e,t){var n,r=w(e)?e:Qn(e);return!(!this.isValid()||!r.isValid())&&(t=ae(t)||"millisecond","millisecond"===t?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function Jr(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Qr(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Xr(e,t,n){var r,o,a;if(!this.isValid())return NaN;if(r=mr(e,this),!r.isValid())return NaN;switch(o=6e4*(r.utcOffset()-this.utcOffset()),t=ae(t),t){case"year":a=Zr(this,r)/12;break;case"month":a=Zr(this,r);break;case"quarter":a=Zr(this,r)/3;break;case"second":a=(this-r)/1e3;break;case"minute":a=(this-r)/6e4;break;case"hour":a=(this-r)/36e5;break;case"day":a=(this-r-o)/864e5;break;case"week":a=(this-r-o)/6048e5;break;default:a=this-r}return n?a:de(a)}function Zr(e,t){if(e.date()<t.date())return-Zr(t,e);var n,r,o=12*(t.year()-e.year())+(t.month()-e.month()),a=e.clone().add(o,"months");return t-a<0?(n=e.clone().add(o-1,"months"),r=(t-a)/(a-n)):(n=e.clone().add(o+1,"months"),r=(t-a)/(n-a)),-(o+r)||0}function eo(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function to(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?Y(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):D(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",Y(n,"Z")):Y(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function no(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r,o="moment",a="";return this.isLocal()||(o=0===this.utcOffset()?"moment.utc":"moment.parseZone",a="Z"),e="["+o+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=a+'[")]',this.format(e+t+n+r)}function ro(e){e||(e=this.isUtc()?a.defaultFormatUtc:a.defaultFormat);var t=Y(this,e);return this.localeData().postformat(t)}function oo(e,t){return this.isValid()&&(w(e)&&e.isValid()||Qn(e).isValid())?jr({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ao(e){return this.from(Qn(),e)}function io(e,t){return this.isValid()&&(w(e)&&e.isValid()||Qn(e).isValid())?jr({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function so(e){return this.to(Qn(),e)}function co(e){var t;return void 0===e?this._locale._abbr:(t=bn(e),null!=t&&(this._locale=t),this)}a.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",a.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var lo=S("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function uo(){return this._locale}var po=1e3,fo=60*po,ho=60*fo,mo=3506328*ho;function vo(e,t){return(e%t+t)%t}function go(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-mo:new Date(e,t,n).valueOf()}function _o(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-mo:Date.UTC(e,t,n)}function yo(e){var t,n;if(e=ae(e),void 0===e||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?_o:go,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=vo(t+(this._isUTC?0:this.utcOffset()*fo),ho);break;case"minute":t=this._d.valueOf(),t-=vo(t,fo);break;case"second":t=this._d.valueOf(),t-=vo(t,po);break}return this._d.setTime(t),a.updateOffset(this,!0),this}function bo(e){var t,n;if(e=ae(e),void 0===e||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?_o:go,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=ho-vo(t+(this._isUTC?0:this.utcOffset()*fo),ho)-1;break;case"minute":t=this._d.valueOf(),t+=fo-vo(t,fo)-1;break;case"second":t=this._d.valueOf(),t+=po-vo(t,po)-1;break}return this._d.setTime(t),a.updateOffset(this,!0),this}function Oo(){return this._d.valueOf()-6e4*(this._offset||0)}function Mo(){return Math.floor(this.valueOf()/1e3)}function ko(){return new Date(this.valueOf())}function Co(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function wo(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Io(){return this.isValid()?this.toISOString():null}function So(){return y(this)}function To(){return m({},_(this))}function Eo(){return _(this).overflow}function jo(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Do(e,t){var n,r,o,i=this._eras||bn("en")._eras;for(n=0,r=i.length;n<r;++n){switch(typeof i[n].since){case"string":o=a(i[n].since).startOf("day"),i[n].since=o.valueOf();break}switch(typeof i[n].until){case"undefined":i[n].until=1/0;break;case"string":o=a(i[n].until).startOf("day").valueOf(),i[n].until=o.valueOf();break}}return i}function Lo(e,t,n){var r,o,a,i,s,c=this.eras();for(e=e.toUpperCase(),r=0,o=c.length;r<o;++r)if(a=c[r].name.toUpperCase(),i=c[r].abbr.toUpperCase(),s=c[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(i===e)return c[r];break;case"NNNN":if(a===e)return c[r];break;case"NNNNN":if(s===e)return c[r];break}else if([a,i,s].indexOf(e)>=0)return c[r]}function Ao(e,t){var n=e.since<=e.until?1:-1;return void 0===t?a(e.since).year():a(e.since).year()+(t-e.offset)*n}function No(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""}function xo(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""}function Ro(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""}function Po(){var e,t,n,r,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=o[e].since<=o[e].until?1:-1,r=this.clone().startOf("day").valueOf(),o[e].since<=r&&r<=o[e].until||o[e].until<=r&&r<=o[e].since)return(this.year()-a(o[e].since).year())*n+o[e].offset;return this.year()}function Uo(e){return l(this,"_erasNameRegex")||Yo.call(this),e?this._erasNameRegex:this._erasRegex}function Vo(e){return l(this,"_erasAbbrRegex")||Yo.call(this),e?this._erasAbbrRegex:this._erasRegex}function Bo(e){return l(this,"_erasNarrowRegex")||Yo.call(this),e?this._erasNarrowRegex:this._erasRegex}function Fo(e,t){return t.erasAbbrRegex(e)}function Go(e,t){return t.erasNameRegex(e)}function zo(e,t){return t.erasNarrowRegex(e)}function Ho(e,t){return t._eraYearOrdinalRegex||je}function Yo(){var e,t,n=[],r=[],o=[],a=[],i=this.eras();for(e=0,t=i.length;e<t;++e)r.push(Ve(i[e].name)),n.push(Ve(i[e].abbr)),o.push(Ve(i[e].narrow)),a.push(Ve(i[e].name)),a.push(Ve(i[e].abbr)),a.push(Ve(i[e].narrow));this._erasRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+o.join("|")+")","i")}function qo(e,t){G(0,[e,e.length],0,t)}function Wo(e){return Zo.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Ko(e){return Zo.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function $o(){return wt(this.year(),1,4)}function Jo(){return wt(this.isoWeekYear(),1,4)}function Qo(){var e=this.localeData()._week;return wt(this.year(),e.dow,e.doy)}function Xo(){var e=this.localeData()._week;return wt(this.weekYear(),e.dow,e.doy)}function Zo(e,t,n,r,o){var a;return null==e?Ct(this,r,o).year:(a=wt(e,r,o),t>a&&(t=a),ea.call(this,e,t,n,r,o))}function ea(e,t,n,r,o){var a=kt(e,t,n,r,o),i=Ot(a.year,0,a.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}function ta(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}G("N",0,0,"eraAbbr"),G("NN",0,0,"eraAbbr"),G("NNN",0,0,"eraAbbr"),G("NNNN",0,0,"eraName"),G("NNNNN",0,0,"eraNarrow"),G("y",["y",1],"yo","eraYear"),G("y",["yy",2],0,"eraYear"),G("y",["yyy",3],0,"eraYear"),G("y",["yyyy",4],0,"eraYear"),Re("N",Fo),Re("NN",Fo),Re("NNN",Fo),Re("NNNN",Go),Re("NNNNN",zo),Fe(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var o=n._locale.erasParse(e,r,n._strict);o?_(n).era=o:_(n).invalidEra=e})),Re("y",je),Re("yy",je),Re("yyy",je),Re("yyyy",je),Re("yo",Ho),Fe(["y","yy","yyy","yyyy"],Ye),Fe(["yo"],(function(e,t,n,r){var o;n._locale._eraYearOrdinalRegex&&(o=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Ye]=n._locale.eraYearOrdinalParse(e,o):t[Ye]=parseInt(e,10)})),G(0,["gg",2],0,(function(){return this.weekYear()%100})),G(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),qo("gggg","weekYear"),qo("ggggg","weekYear"),qo("GGGG","isoWeekYear"),qo("GGGGG","isoWeekYear"),oe("weekYear","gg"),oe("isoWeekYear","GG"),ce("weekYear",1),ce("isoWeekYear",1),Re("G",De),Re("g",De),Re("GG",Ce,be),Re("gg",Ce,be),Re("GGGG",Te,Me),Re("gggg",Te,Me),Re("GGGGG",Ee,ke),Re("ggggg",Ee,ke),Ge(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=pe(e)})),Ge(["gg","GG"],(function(e,t,n,r){t[r]=a.parseTwoDigitYear(e)})),G("Q",0,"Qo","quarter"),oe("quarter","Q"),ce("quarter",7),Re("Q",ye),Fe("Q",(function(e,t){t[qe]=3*(pe(e)-1)})),G("D",["DD",2],"Do","date"),oe("date","D"),ce("date",9),Re("D",Ce),Re("DD",Ce,be),Re("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),Fe(["D","DD"],We),Fe("Do",(function(e,t){t[We]=pe(e.match(Ce)[0])}));var na=fe("Date",!0);function ra(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}G("DDD",["DDDD",3],"DDDo","dayOfYear"),oe("dayOfYear","DDD"),ce("dayOfYear",4),Re("DDD",Se),Re("DDDD",Oe),Fe(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=pe(e)})),G("m",["mm",2],0,"minute"),oe("minute","m"),ce("minute",14),Re("m",Ce),Re("mm",Ce,be),Fe(["m","mm"],$e);var oa=fe("Minutes",!1);G("s",["ss",2],0,"second"),oe("second","s"),ce("second",15),Re("s",Ce),Re("ss",Ce,be),Fe(["s","ss"],Je);var aa,ia,sa=fe("Seconds",!1);for(G("S",0,0,(function(){return~~(this.millisecond()/100)})),G(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),G(0,["SSS",3],0,"millisecond"),G(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),G(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),G(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),G(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),G(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),G(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),oe("millisecond","ms"),ce("millisecond",16),Re("S",Se,ye),Re("SS",Se,be),Re("SSS",Se,Oe),aa="SSSS";aa.length<=9;aa+="S")Re(aa,je);function ca(e,t){t[Qe]=pe(1e3*("0."+e))}for(aa="S";aa.length<=9;aa+="S")Fe(aa,ca);function la(){return this._isUTC?"UTC":""}function ua(){return this._isUTC?"Coordinated Universal Time":""}ia=fe("Milliseconds",!1),G("z",0,0,"zoneAbbr"),G("zz",0,0,"zoneName");var da=C.prototype;function pa(e){return Qn(1e3*e)}function fa(){return Qn.apply(null,arguments).parseZone()}function ha(e){return e}da.add=Rr,da.calendar=Hr,da.clone=Yr,da.diff=Xr,da.endOf=bo,da.format=ro,da.from=oo,da.fromNow=ao,da.to=io,da.toNow=so,da.get=ve,da.invalidAt=Eo,da.isAfter=qr,da.isBefore=Wr,da.isBetween=Kr,da.isSame=$r,da.isSameOrAfter=Jr,da.isSameOrBefore=Qr,da.isValid=So,da.lang=lo,da.locale=co,da.localeData=uo,da.max=Zn,da.min=Xn,da.parsingFlags=To,da.set=ge,da.startOf=yo,da.subtract=Pr,da.toArray=Co,da.toObject=wo,da.toDate=ko,da.toISOString=to,da.inspect=no,"undefined"!==typeof Symbol&&null!=Symbol.for&&(da[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),da.toJSON=Io,da.toString=eo,da.unix=Mo,da.valueOf=Oo,da.creationData=jo,da.eraName=No,da.eraNarrow=xo,da.eraAbbr=Ro,da.eraYear=Po,da.year=_t,da.isLeapYear=yt,da.weekYear=Wo,da.isoWeekYear=Ko,da.quarter=da.quarters=ta,da.month=pt,da.daysInMonth=ft,da.week=da.weeks=jt,da.isoWeek=da.isoWeeks=Dt,da.weeksInYear=Qo,da.weeksInWeekYear=Xo,da.isoWeeksInYear=$o,da.isoWeeksInISOWeekYear=Jo,da.date=na,da.day=da.days=qt,da.weekday=Wt,da.isoWeekday=Kt,da.dayOfYear=ra,da.hour=da.hours=an,da.minute=da.minutes=oa,da.second=da.seconds=sa,da.millisecond=da.milliseconds=ia,da.utcOffset=gr,da.utc=yr,da.local=br,da.parseZone=Or,da.hasAlignedHourOffset=Mr,da.isDST=kr,da.isLocal=wr,da.isUtcOffset=Ir,da.isUtc=Sr,da.isUTC=Sr,da.zoneAbbr=la,da.zoneName=ua,da.dates=S("dates accessor is deprecated. Use date instead.",na),da.months=S("months accessor is deprecated. Use month instead",pt),da.years=S("years accessor is deprecated. Use year instead",_t),da.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",_r),da.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Cr);var ma=N.prototype;function va(e,t,n,r){var o=bn(),a=v().set(r,t);return o[n](a,e)}function ga(e,t,n){if(p(e)&&(t=e,e=void 0),e=e||"",null!=t)return va(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=va(e,r,n,"month");return o}function _a(e,t,n,r){"boolean"===typeof e?(p(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,p(t)&&(n=t,t=void 0),t=t||"");var o,a=bn(),i=e?a._week.dow:0,s=[];if(null!=n)return va(t,(n+i)%7,r,"day");for(o=0;o<7;o++)s[o]=va(t,(o+i)%7,r,"day");return s}function ya(e,t){return ga(e,t,"months")}function ba(e,t){return ga(e,t,"monthsShort")}function Oa(e,t,n){return _a(e,t,n,"weekdays")}function Ma(e,t,n){return _a(e,t,n,"weekdaysShort")}function ka(e,t,n){return _a(e,t,n,"weekdaysMin")}ma.calendar=R,ma.longDateFormat=K,ma.invalidDate=J,ma.ordinal=Z,ma.preparse=ha,ma.postformat=ha,ma.relativeTime=te,ma.pastFuture=ne,ma.set=L,ma.eras=Do,ma.erasParse=Lo,ma.erasConvertYear=Ao,ma.erasAbbrRegex=Vo,ma.erasNameRegex=Uo,ma.erasNarrowRegex=Bo,ma.months=st,ma.monthsShort=ct,ma.monthsParse=ut,ma.monthsRegex=mt,ma.monthsShortRegex=ht,ma.week=It,ma.firstDayOfYear=Et,ma.firstDayOfWeek=Tt,ma.weekdays=Ft,ma.weekdaysMin=zt,ma.weekdaysShort=Gt,ma.weekdaysParse=Yt,ma.weekdaysRegex=$t,ma.weekdaysShortRegex=Jt,ma.weekdaysMinRegex=Qt,ma.isPM=rn,ma.meridiem=sn,gn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===pe(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),a.lang=S("moment.lang is deprecated. Use moment.locale instead.",gn),a.langData=S("moment.langData is deprecated. Use moment.localeData instead.",bn);var Ca=Math.abs;function wa(){var e=this._data;return this._milliseconds=Ca(this._milliseconds),this._days=Ca(this._days),this._months=Ca(this._months),e.milliseconds=Ca(e.milliseconds),e.seconds=Ca(e.seconds),e.minutes=Ca(e.minutes),e.hours=Ca(e.hours),e.months=Ca(e.months),e.years=Ca(e.years),this}function Ia(e,t,n,r){var o=jr(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function Sa(e,t){return Ia(this,e,t,1)}function Ta(e,t){return Ia(this,e,t,-1)}function Ea(e){return e<0?Math.floor(e):Math.ceil(e)}function ja(){var e,t,n,r,o,a=this._milliseconds,i=this._days,s=this._months,c=this._data;return a>=0&&i>=0&&s>=0||a<=0&&i<=0&&s<=0||(a+=864e5*Ea(La(s)+i),i=0,s=0),c.milliseconds=a%1e3,e=de(a/1e3),c.seconds=e%60,t=de(e/60),c.minutes=t%60,n=de(t/60),c.hours=n%24,i+=de(n/24),o=de(Da(i)),s+=o,i-=Ea(La(o)),r=de(s/12),s%=12,c.days=i,c.months=s,c.years=r,this}function Da(e){return 4800*e/146097}function La(e){return 146097*e/4800}function Aa(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=ae(e),"month"===e||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Da(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(La(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function Na(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*pe(this._months/12):NaN}function xa(e){return function(){return this.as(e)}}var Ra=xa("ms"),Pa=xa("s"),Ua=xa("m"),Va=xa("h"),Ba=xa("d"),Fa=xa("w"),Ga=xa("M"),za=xa("Q"),Ha=xa("y");function Ya(){return jr(this)}function qa(e){return e=ae(e),this.isValid()?this[e+"s"]():NaN}function Wa(e){return function(){return this.isValid()?this._data[e]:NaN}}var Ka=Wa("milliseconds"),$a=Wa("seconds"),Ja=Wa("minutes"),Qa=Wa("hours"),Xa=Wa("days"),Za=Wa("months"),ei=Wa("years");function ti(){return de(this.days()/7)}var ni=Math.round,ri={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function oi(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}function ai(e,t,n,r){var o=jr(e).abs(),a=ni(o.as("s")),i=ni(o.as("m")),s=ni(o.as("h")),c=ni(o.as("d")),l=ni(o.as("M")),u=ni(o.as("w")),d=ni(o.as("y")),p=a<=n.ss&&["s",a]||a<n.s&&["ss",a]||i<=1&&["m"]||i<n.m&&["mm",i]||s<=1&&["h"]||s<n.h&&["hh",s]||c<=1&&["d"]||c<n.d&&["dd",c];return null!=n.w&&(p=p||u<=1&&["w"]||u<n.w&&["ww",u]),p=p||l<=1&&["M"]||l<n.M&&["MM",l]||d<=1&&["y"]||["yy",d],p[2]=t,p[3]=+e>0,p[4]=r,oi.apply(null,p)}function ii(e){return void 0===e?ni:"function"===typeof e&&(ni=e,!0)}function si(e,t){return void 0!==ri[e]&&(void 0===t?ri[e]:(ri[e]=t,"s"===e&&(ri.ss=t-1),!0))}function ci(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,o=!1,a=ri;return"object"===typeof e&&(t=e,e=!1),"boolean"===typeof e&&(o=e),"object"===typeof t&&(a=Object.assign({},ri,t),null!=t.s&&null==t.ss&&(a.ss=t.s-1)),n=this.localeData(),r=ai(this,!o,a,n),o&&(r=n.pastFuture(+this,r)),n.postformat(r)}var li=Math.abs;function ui(e){return(e>0)-(e<0)||+e}function di(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,o,a,i,s,c=li(this._milliseconds)/1e3,l=li(this._days),u=li(this._months),d=this.asSeconds();return d?(e=de(c/60),t=de(e/60),c%=60,e%=60,n=de(u/12),u%=12,r=c?c.toFixed(3).replace(/\.?0+$/,""):"",o=d<0?"-":"",a=ui(this._months)!==ui(d)?"-":"",i=ui(this._days)!==ui(d)?"-":"",s=ui(this._milliseconds)!==ui(d)?"-":"",o+"P"+(n?a+n+"Y":"")+(u?a+u+"M":"")+(l?i+l+"D":"")+(t||e||c?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(c?s+r+"S":"")):"P0D"}var pi=cr.prototype;return pi.isValid=ir,pi.abs=wa,pi.add=Sa,pi.subtract=Ta,pi.as=Aa,pi.asMilliseconds=Ra,pi.asSeconds=Pa,pi.asMinutes=Ua,pi.asHours=Va,pi.asDays=Ba,pi.asWeeks=Fa,pi.asMonths=Ga,pi.asQuarters=za,pi.asYears=Ha,pi.valueOf=Na,pi._bubble=ja,pi.clone=Ya,pi.get=qa,pi.milliseconds=Ka,pi.seconds=$a,pi.minutes=Ja,pi.hours=Qa,pi.days=Xa,pi.weeks=ti,pi.months=Za,pi.years=ei,pi.humanize=ci,pi.toISOString=di,pi.toString=di,pi.toJSON=di,pi.locale=co,pi.localeData=uo,pi.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",di),pi.lang=lo,G("X",0,0,"unix"),G("x",0,0,"valueOf"),Re("x",De),Re("X",Ne),Fe("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),Fe("x",(function(e,t,n){n._d=new Date(pe(e))})),
|
||
//! moment.js
|
||
a.version="2.29.4",i(Qn),a.fn=da,a.min=tr,a.max=nr,a.now=rr,a.utc=v,a.unix=pa,a.months=ya,a.isDate=f,a.locale=gn,a.invalid=b,a.duration=jr,a.isMoment=w,a.weekdays=Oa,a.parseZone=fa,a.localeData=bn,a.isDuration=lr,a.monthsShort=ba,a.weekdaysMin=ka,a.defineLocale=_n,a.updateLocale=yn,a.locales=On,a.weekdaysShort=Ma,a.normalizeUnits=ae,a.relativeTimeRounding=ii,a.relativeTimeThreshold=si,a.calendarFormat=zr,a.prototype=da,a.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},a}))}).call(this,n("62e4")(e))},c230:function(e,t,n){"use strict";var r=n("c1b2"),o=n("3940"),a=n("4180"),i=n("6f8d"),s=n("a421"),c=n("a016");t.f=r&&!o?Object.defineProperties:function(e,t){i(e);var n,r=s(t),o=c(t),l=o.length,u=0;while(l>u)a.f(e,n=o[u++],r[n]);return e}},c2f0:function(e,t,n){"use strict";e.exports=function(e,t){try{1==arguments.length?console.error(e):console.error(e,t)}catch(n){}}},c345:function(e,t,n){"use strict";var r=n("c532"),o=["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"];e.exports=function(e){var t,n,a,i={};return e?(r.forEach(e.split("\n"),(function(e){if(a=e.indexOf(":"),t=r.trim(e.substr(0,a)).toLowerCase(),n=r.trim(e.substr(a+1)),t){if(i[t]&&o.indexOf(t)>=0)return;i[t]="set-cookie"===t?(i[t]?i[t]:[]).concat([n]):i[t]?i[t]+", "+n:n}})),i):i}},c349:function(e,t,n){"use strict";n.d(t,"a",(function(){return V}));var r=n("7a23"),o=n("0931"),a=n("d095"),i=n("54bb"),s=n("9ad7"),c=n("6ab4"),l=n("83ec");let u=void 0;const d=`\n height:0 !important;\n visibility:hidden !important;\n ${Object(c["a"])()?"":"overflow:hidden !important;"}\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n`,p=["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 f(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")),a=p.map(e=>`${e}:${t.getPropertyValue(e)}`).join(";");return{contextStyle:a,paddingSize:r,borderSize:o,boxSizing:n}}function h(e,t=1,n){var r;u||(u=document.createElement("textarea"),document.body.appendChild(u));const{paddingSize:o,borderSize:a,boxSizing:i,contextStyle:s}=f(e);u.setAttribute("style",`${s};${d}`),u.value=e.value||e.placeholder||"";let c=u.scrollHeight;const p={};"border-box"===i?c+=a:"content-box"===i&&(c-=o),u.value="";const h=u.scrollHeight-o;if(Object(l["d"])(t)){let e=h*t;"border-box"===i&&(e=e+o+a),c=Math.max(e,c),p.minHeight=e+"px"}if(Object(l["d"])(n)){let e=h*n;"border-box"===i&&(e=e+o+a),c=Math.min(e,c)}return p.height=c+"px",null==(r=u.parentNode)||r.removeChild(u),u=void 0,p}var m=n("7d20"),v=n("0898"),g=n("27b6"),_=n("31e7"),y=n("f5f6"),b=n("b181");const O=Object(v["b"])({id:{type:String,default:void 0},size:g["c"],disabled:Boolean,modelValue:{type:Object(v["c"])([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:Object(v["c"])([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:_["e"]},prefixIcon:{type:_["e"]},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:Object(v["c"])([Object,Array,String]),default:()=>Object(y["a"])({})}}),M={[b["c"]]:e=>Object(m["isString"])(e),input:e=>Object(m["isString"])(e),change:e=>Object(m["isString"])(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 k=n("2711"),C=n("c9ac"),w=n("8cf4"),I=n("4bea"),S=n("304f");function T(e,{afterFocus:t,afterBlur:n}={}){const a=Object(r["getCurrentInstance"])(),{emit:i}=a,s=Object(r["shallowRef"])(),c=Object(r["ref"])(!1),l=e=>{c.value||(c.value=!0,i("focus",e),null==t||t())},u=e=>{var t;e.relatedTarget&&(null==(t=s.value)?void 0:t.contains(e.relatedTarget))||(c.value=!1,i("blur",e),null==n||n())},d=()=>{var t;null==(t=e.value)||t.focus()};return Object(r["watch"])(s,e=>{e&&e.setAttribute("tabindex","-1")}),Object(o["useEventListener"])(s,"click",d),{wrapperRef:s,isFocused:c,handleFocus:l,handleBlur:u}}var E=n("8afb");function j(e){const t=Object(r["ref"])();function n(){if(void 0==e.value)return;const{selectionStart:n,selectionEnd:r,value:o}=e.value;if(null==n||null==r)return;const a=o.slice(0,Math.max(0,n)),i=o.slice(Math.max(0,r));t.value={selectionStart:n,selectionEnd:r,value:o,beforeTxt:a,afterTxt:i}}function o(){if(void 0==e.value||void 0==t.value)return;const{value:n}=e.value,{beforeTxt:r,afterTxt:o,selectionStart:a}=t.value;if(void 0==r||void 0==o||void 0==a)return;let i=n.length;if(n.endsWith(o))i=n.length-o.length;else if(n.startsWith(r))i=r.length;else{const e=r[a-1],t=n.indexOf(e,a-1);-1!==t&&(i=t+1)}e.value.setSelectionRange(i,i)}return[n,o]}var D=n("22a4");const L=["role"],A=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form"],N=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form"],x=Object(r["defineComponent"])({name:"ElInput",inheritAttrs:!1}),R=Object(r["defineComponent"])({...x,props:O,emits:M,setup(e,{expose:t,emit:n}){const c=e,l=Object(r["useAttrs"])(),u=Object(r["useSlots"])(),d=Object(r["computed"])(()=>{const e={};return"combobox"===c.containerRole&&(e["aria-haspopup"]=l["aria-haspopup"],e["aria-owns"]=l["aria-owns"],e["aria-expanded"]=l["aria-expanded"]),e}),p=Object(r["computed"])(()=>["textarea"===c.type?R.b():x.b(),x.m(M.value),x.is("disabled",k.value),x.is("exceed",ie.value),{[x.b("group")]:u.prepend||u.append,[x.bm("group","append")]:u.append,[x.bm("group","prepend")]:u.prepend,[x.m("prefix")]:u.prefix||c.prefixIcon,[x.m("suffix")]:u.suffix||c.suffixIcon||c.clearable||c.showPassword,[x.bm("suffix","password-clear")]:ne.value&&re.value},l.class]),f=Object(r["computed"])(()=>[x.e("wrapper"),x.is("focus",q.value)]),v=Object(C["a"])({excludeKeys:Object(r["computed"])(()=>Object.keys(d.value))}),{form:g,formItem:y}=Object(w["a"])(),{inputId:O}=Object(w["b"])(c,{formItemContext:y}),M=Object(I["b"])(),k=Object(I["a"])(),x=Object(S["d"])("input"),R=Object(S["d"])("textarea"),P=Object(r["shallowRef"])(),U=Object(r["shallowRef"])(),V=Object(r["ref"])(!1),B=Object(r["ref"])(!1),F=Object(r["ref"])(!1),G=Object(r["ref"])(),z=Object(r["shallowRef"])(c.inputStyle),H=Object(r["computed"])(()=>P.value||U.value),{wrapperRef:Y,isFocused:q,handleFocus:W,handleBlur:K}=T(H,{afterBlur(){var e;c.validateEvent&&(null==(e=null==y?void 0:y.validate)||e.call(y,"blur").catch(e=>Object(E["a"])(e)))}}),$=Object(r["computed"])(()=>{var e;return null!=(e=null==g?void 0:g.statusIcon)&&e}),J=Object(r["computed"])(()=>(null==y?void 0:y.validateState)||""),Q=Object(r["computed"])(()=>J.value&&_["d"][J.value]),X=Object(r["computed"])(()=>F.value?s["View"]:s["Hide"]),Z=Object(r["computed"])(()=>[l.style,c.inputStyle]),ee=Object(r["computed"])(()=>[c.inputStyle,z.value,{resize:c.resize}]),te=Object(r["computed"])(()=>Object(a["isNil"])(c.modelValue)?"":String(c.modelValue)),ne=Object(r["computed"])(()=>c.clearable&&!k.value&&!c.readonly&&!!te.value&&(q.value||V.value)),re=Object(r["computed"])(()=>c.showPassword&&!k.value&&!c.readonly&&!!te.value&&(!!te.value||q.value)),oe=Object(r["computed"])(()=>c.showWordLimit&&!!v.value.maxlength&&("text"===c.type||"textarea"===c.type)&&!k.value&&!c.readonly&&!c.showPassword),ae=Object(r["computed"])(()=>te.value.length),ie=Object(r["computed"])(()=>!!oe.value&&ae.value>Number(v.value.maxlength)),se=Object(r["computed"])(()=>!!u.suffix||!!c.suffixIcon||ne.value||c.showPassword||oe.value||!!J.value&&$.value),[ce,le]=j(P);Object(o["useResizeObserver"])(U,e=>{if(pe(),!oe.value||"both"!==c.resize)return;const t=e[0],{width:n}=t.contentRect;G.value={right:`calc(100% - ${n+15+6}px)`}});const ue=()=>{const{type:e,autosize:t}=c;if(o["isClient"]&&"textarea"===e&&U.value)if(t){const e=Object(m["isObject"])(t)?t.minRows:void 0,n=Object(m["isObject"])(t)?t.maxRows:void 0,o=h(U.value,e,n);z.value={overflowY:"hidden",...o},Object(r["nextTick"])(()=>{U.value.offsetHeight,z.value=o})}else z.value={minHeight:h(U.value).minHeight}},de=e=>{let t=!1;return()=>{var n;if(t||!c.autosize)return;const r=null===(null==(n=U.value)?void 0:n.offsetParent);r||(e(),t=!0)}},pe=de(ue),fe=()=>{const e=H.value,t=c.formatter?c.formatter(te.value):te.value;e&&e.value!==t&&(e.value=t)},he=async e=>{ce();let{value:t}=e.target;c.formatter&&(t=c.parser?c.parser(t):t),B.value||(t!==te.value?(n(b["c"],t),n("input",t),await Object(r["nextTick"])(),fe(),le()):fe())},me=e=>{n("change",e.target.value)},ve=e=>{n("compositionstart",e),B.value=!0},ge=e=>{var t;n("compositionupdate",e);const r=null==(t=e.target)?void 0:t.value,o=r[r.length-1]||"";B.value=!Object(D["a"])(o)},_e=e=>{n("compositionend",e),B.value&&(B.value=!1,he(e))},ye=()=>{F.value=!F.value,be()},be=async()=>{var e;await Object(r["nextTick"])(),null==(e=H.value)||e.focus()},Oe=()=>{var e;return null==(e=H.value)?void 0:e.blur()},Me=e=>{V.value=!1,n("mouseleave",e)},ke=e=>{V.value=!0,n("mouseenter",e)},Ce=e=>{n("keydown",e)},we=()=>{var e;null==(e=H.value)||e.select()},Ie=()=>{n(b["c"],""),n("change",""),n("clear"),n("input","")};return Object(r["watch"])(()=>c.modelValue,()=>{var e;Object(r["nextTick"])(()=>ue()),c.validateEvent&&(null==(e=null==y?void 0:y.validate)||e.call(y,"change").catch(e=>Object(E["a"])(e)))}),Object(r["watch"])(te,()=>fe()),Object(r["watch"])(()=>c.type,async()=>{await Object(r["nextTick"])(),fe(),ue()}),Object(r["onMounted"])(()=>{!c.formatter&&c.parser&&Object(E["a"])("ElInput","If you set the parser, you also need to set the formatter."),fe(),Object(r["nextTick"])(ue)}),t({input:P,textarea:U,ref:H,textareaStyle:ee,autosize:Object(r["toRef"])(c,"autosize"),focus:be,blur:Oe,select:we,clear:Ie,resizeTextarea:ue}),(e,t)=>Object(r["withDirectives"])((Object(r["openBlock"])(),Object(r["createElementBlock"])("div",Object(r["mergeProps"])(Object(r["unref"])(d),{class:Object(r["unref"])(p),style:Object(r["unref"])(Z),role:e.containerRole,onMouseenter:ke,onMouseleave:Me}),[Object(r["createCommentVNode"])(" input "),"textarea"!==e.type?(Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],{key:0},[Object(r["createCommentVNode"])(" prepend slot "),e.$slots.prepend?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{key:0,class:Object(r["normalizeClass"])(Object(r["unref"])(x).be("group","prepend"))},[Object(r["renderSlot"])(e.$slots,"prepend")],2)):Object(r["createCommentVNode"])("v-if",!0),Object(r["createElementVNode"])("div",{ref_key:"wrapperRef",ref:Y,class:Object(r["normalizeClass"])(Object(r["unref"])(f))},[Object(r["createCommentVNode"])(" prefix slot "),e.$slots.prefix||e.prefixIcon?(Object(r["openBlock"])(),Object(r["createElementBlock"])("span",{key:0,class:Object(r["normalizeClass"])(Object(r["unref"])(x).e("prefix"))},[Object(r["createElementVNode"])("span",{class:Object(r["normalizeClass"])(Object(r["unref"])(x).e("prefix-inner"))},[Object(r["renderSlot"])(e.$slots,"prefix"),e.prefixIcon?(Object(r["openBlock"])(),Object(r["createBlock"])(Object(r["unref"])(i["a"]),{key:0,class:Object(r["normalizeClass"])(Object(r["unref"])(x).e("icon"))},{default:Object(r["withCtx"])(()=>[(Object(r["openBlock"])(),Object(r["createBlock"])(Object(r["resolveDynamicComponent"])(e.prefixIcon)))]),_:1},8,["class"])):Object(r["createCommentVNode"])("v-if",!0)],2)],2)):Object(r["createCommentVNode"])("v-if",!0),Object(r["createElementVNode"])("input",Object(r["mergeProps"])({id:Object(r["unref"])(O),ref_key:"input",ref:P,class:Object(r["unref"])(x).e("inner")},Object(r["unref"])(v),{type:e.showPassword?F.value?"text":"password":e.type,disabled:Object(r["unref"])(k),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,form:c.form,onCompositionstart:ve,onCompositionupdate:ge,onCompositionend:_e,onInput:he,onFocus:t[0]||(t[0]=(...e)=>Object(r["unref"])(W)&&Object(r["unref"])(W)(...e)),onBlur:t[1]||(t[1]=(...e)=>Object(r["unref"])(K)&&Object(r["unref"])(K)(...e)),onChange:me,onKeydown:Ce}),null,16,A),Object(r["createCommentVNode"])(" suffix slot "),Object(r["unref"])(se)?(Object(r["openBlock"])(),Object(r["createElementBlock"])("span",{key:1,class:Object(r["normalizeClass"])(Object(r["unref"])(x).e("suffix"))},[Object(r["createElementVNode"])("span",{class:Object(r["normalizeClass"])(Object(r["unref"])(x).e("suffix-inner"))},[Object(r["unref"])(ne)&&Object(r["unref"])(re)&&Object(r["unref"])(oe)?Object(r["createCommentVNode"])("v-if",!0):(Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],{key:0},[Object(r["renderSlot"])(e.$slots,"suffix"),e.suffixIcon?(Object(r["openBlock"])(),Object(r["createBlock"])(Object(r["unref"])(i["a"]),{key:0,class:Object(r["normalizeClass"])(Object(r["unref"])(x).e("icon"))},{default:Object(r["withCtx"])(()=>[(Object(r["openBlock"])(),Object(r["createBlock"])(Object(r["resolveDynamicComponent"])(e.suffixIcon)))]),_:1},8,["class"])):Object(r["createCommentVNode"])("v-if",!0)],64)),Object(r["unref"])(ne)?(Object(r["openBlock"])(),Object(r["createBlock"])(Object(r["unref"])(i["a"]),{key:1,class:Object(r["normalizeClass"])([Object(r["unref"])(x).e("icon"),Object(r["unref"])(x).e("clear")]),onMousedown:Object(r["withModifiers"])(Object(r["unref"])(m["NOOP"]),["prevent"]),onClick:Ie},{default:Object(r["withCtx"])(()=>[Object(r["createVNode"])(Object(r["unref"])(s["CircleClose"]))]),_:1},8,["class","onMousedown"])):Object(r["createCommentVNode"])("v-if",!0),Object(r["unref"])(re)?(Object(r["openBlock"])(),Object(r["createBlock"])(Object(r["unref"])(i["a"]),{key:2,class:Object(r["normalizeClass"])([Object(r["unref"])(x).e("icon"),Object(r["unref"])(x).e("password")]),onClick:ye},{default:Object(r["withCtx"])(()=>[(Object(r["openBlock"])(),Object(r["createBlock"])(Object(r["resolveDynamicComponent"])(Object(r["unref"])(X))))]),_:1},8,["class"])):Object(r["createCommentVNode"])("v-if",!0),Object(r["unref"])(oe)?(Object(r["openBlock"])(),Object(r["createElementBlock"])("span",{key:3,class:Object(r["normalizeClass"])(Object(r["unref"])(x).e("count"))},[Object(r["createElementVNode"])("span",{class:Object(r["normalizeClass"])(Object(r["unref"])(x).e("count-inner"))},Object(r["toDisplayString"])(Object(r["unref"])(ae))+" / "+Object(r["toDisplayString"])(Object(r["unref"])(v).maxlength),3)],2)):Object(r["createCommentVNode"])("v-if",!0),Object(r["unref"])(J)&&Object(r["unref"])(Q)&&Object(r["unref"])($)?(Object(r["openBlock"])(),Object(r["createBlock"])(Object(r["unref"])(i["a"]),{key:4,class:Object(r["normalizeClass"])([Object(r["unref"])(x).e("icon"),Object(r["unref"])(x).e("validateIcon"),Object(r["unref"])(x).is("loading","validating"===Object(r["unref"])(J))])},{default:Object(r["withCtx"])(()=>[(Object(r["openBlock"])(),Object(r["createBlock"])(Object(r["resolveDynamicComponent"])(Object(r["unref"])(Q))))]),_:1},8,["class"])):Object(r["createCommentVNode"])("v-if",!0)],2)],2)):Object(r["createCommentVNode"])("v-if",!0)],2),Object(r["createCommentVNode"])(" append slot "),e.$slots.append?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{key:1,class:Object(r["normalizeClass"])(Object(r["unref"])(x).be("group","append"))},[Object(r["renderSlot"])(e.$slots,"append")],2)):Object(r["createCommentVNode"])("v-if",!0)],64)):(Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],{key:1},[Object(r["createCommentVNode"])(" textarea "),Object(r["createElementVNode"])("textarea",Object(r["mergeProps"])({id:Object(r["unref"])(O),ref_key:"textarea",ref:U,class:Object(r["unref"])(R).e("inner")},Object(r["unref"])(v),{tabindex:e.tabindex,disabled:Object(r["unref"])(k),readonly:e.readonly,autocomplete:e.autocomplete,style:Object(r["unref"])(ee),"aria-label":e.label,placeholder:e.placeholder,form:c.form,onCompositionstart:ve,onCompositionupdate:ge,onCompositionend:_e,onInput:he,onFocus:t[2]||(t[2]=(...e)=>Object(r["unref"])(W)&&Object(r["unref"])(W)(...e)),onBlur:t[3]||(t[3]=(...e)=>Object(r["unref"])(K)&&Object(r["unref"])(K)(...e)),onChange:me,onKeydown:Ce}),null,16,N),Object(r["unref"])(oe)?(Object(r["openBlock"])(),Object(r["createElementBlock"])("span",{key:0,style:Object(r["normalizeStyle"])(G.value),class:Object(r["normalizeClass"])(Object(r["unref"])(x).e("count"))},Object(r["toDisplayString"])(Object(r["unref"])(ae))+" / "+Object(r["toDisplayString"])(Object(r["unref"])(v).maxlength),7)):Object(r["createCommentVNode"])("v-if",!0)],64))],16,L)),[[r["vShow"],"hidden"!==e.type]])}});var P=Object(k["a"])(R,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]),U=n("0c24");const V=Object(U["a"])(P)},c3a1:function(e,t,n){"use strict";n.d(t,"a",(function(){return _S}));const r="2.3.9",o=Symbol("INSTALLED_KEY");var a=n("edd9");const i=(e=[])=>{const t=(t,n)=>{t[o]||(t[o]=!0,e.forEach(e=>t.use(e)),n&&Object(a["a"])(n,t,!0))};return{version:r,install:t}};var s=n("7a23"),c=n("0931"),l=n("0898"),u=n("83ec"),d=n("b181");const p=Object(l["b"])({zIndex:{type:Object(l["c"])([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})=>Object(u["d"])(e)&&Object(u["a"])(t),[d["a"]]:e=>Object(u["a"])(e)};var h=n("2711"),m=n("304f"),v=n("0e69"),g=n("8afb"),_=n("c79f");const y="ElAffix",b=Object(s["defineComponent"])({name:y}),O=Object(s["defineComponent"])({...b,props:p,emits:f,setup(e,{expose:t,emit:n}){const r=e,o=Object(m["d"])("affix"),a=Object(s["shallowRef"])(),i=Object(s["shallowRef"])(),l=Object(s["shallowRef"])(),{height:u}=Object(c["useWindowSize"])(),{height:d,width:p,top:f,bottom:h,update:b}=Object(c["useElementBounding"])(i,{windowScroll:!1}),O=Object(c["useElementBounding"])(a),M=Object(s["ref"])(!1),k=Object(s["ref"])(0),C=Object(s["ref"])(0),w=Object(s["computed"])(()=>({height:M.value?d.value+"px":"",width:M.value?p.value+"px":""})),I=Object(s["computed"])(()=>{if(!M.value)return{};const e=r.offset?Object(v["b"])(r.offset):0;return{height:d.value+"px",width:p.value+"px",top:"top"===r.position?e:"",bottom:"bottom"===r.position?e:"",transform:C.value?`translateY(${C.value}px)`:"",zIndex:r.zIndex}}),S=()=>{if(l.value)if(k.value=l.value instanceof Window?document.documentElement.scrollTop:l.value.scrollTop||0,"top"===r.position)if(r.target){const e=O.bottom.value-r.offset-d.value;M.value=r.offset>f.value&&O.bottom.value>0,C.value=e<0?e:0}else M.value=r.offset>f.value;else if(r.target){const e=u.value-O.top.value-r.offset-d.value;M.value=u.value-r.offset<h.value&&u.value>O.top.value,C.value=e<0?-e:0}else M.value=u.value-r.offset<h.value},T=()=>{b(),n("scroll",{scrollTop:k.value,fixed:M.value})};return Object(s["watch"])(M,e=>n("change",e)),Object(s["onMounted"])(()=>{var e;r.target?(a.value=null!=(e=document.querySelector(r.target))?e:void 0,a.value||Object(g["b"])(y,"Target is not existed: "+r.target)):a.value=document.documentElement,l.value=Object(_["b"])(i.value,!0),b()}),Object(c["useEventListener"])(l,"scroll",T),Object(s["watchEffect"])(S),t({update:S,updateRoot:b}),(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{ref_key:"root",ref:i,class:Object(s["normalizeClass"])(Object(s["unref"])(o).b()),style:Object(s["normalizeStyle"])(Object(s["unref"])(w))},[Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])({[Object(s["unref"])(o).m("fixed")]:M.value}),style:Object(s["normalizeStyle"])(Object(s["unref"])(I))},[Object(s["renderSlot"])(e.$slots,"default")],6)],6))}});var M=Object(h["a"])(O,[["__file","/home/runner/work/element-plus/element-plus/packages/components/affix/src/affix.vue"]]),k=n("0c24");const C=Object(k["a"])(M);var w=n("54bb"),I=n("bfce"),S=n("31e7");const T=["light","dark"],E=Object(l["b"])({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:Object(I["c"])(S["c"]),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:T,default:"light"}}),j={close:e=>e instanceof MouseEvent},D=Object(s["defineComponent"])({name:"ElAlert"}),L=Object(s["defineComponent"])({...D,props:E,emits:j,setup(e,{emit:t}){const n=e,{Close:r}=S["b"],o=Object(s["useSlots"])(),a=Object(m["d"])("alert"),i=Object(s["ref"])(!0),c=Object(s["computed"])(()=>S["c"][n.type]),l=Object(s["computed"])(()=>[a.e("icon"),{[a.is("big")]:!!n.description||!!o.default}]),u=Object(s["computed"])(()=>({[a.is("bold")]:n.description||o.default})),d=e=>{i.value=!1,t("close",e)};return(e,t)=>(Object(s["openBlock"])(),Object(s["createBlock"])(s["Transition"],{name:Object(s["unref"])(a).b("fade"),persisted:""},{default:Object(s["withCtx"])(()=>[Object(s["withDirectives"])(Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])([Object(s["unref"])(a).b(),Object(s["unref"])(a).m(e.type),Object(s["unref"])(a).is("center",e.center),Object(s["unref"])(a).is(e.effect)]),role:"alert"},[e.showIcon&&Object(s["unref"])(c)?(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(w["a"]),{key:0,class:Object(s["normalizeClass"])(Object(s["unref"])(l))},{default:Object(s["withCtx"])(()=>[(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["resolveDynamicComponent"])(Object(s["unref"])(c))))]),_:1},8,["class"])):Object(s["createCommentVNode"])("v-if",!0),Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(a).e("content"))},[e.title||e.$slots.title?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",{key:0,class:Object(s["normalizeClass"])([Object(s["unref"])(a).e("title"),Object(s["unref"])(u)])},[Object(s["renderSlot"])(e.$slots,"title",{},()=>[Object(s["createTextVNode"])(Object(s["toDisplayString"])(e.title),1)])],2)):Object(s["createCommentVNode"])("v-if",!0),e.$slots.default||e.description?(Object(s["openBlock"])(),Object(s["createElementBlock"])("p",{key:1,class:Object(s["normalizeClass"])(Object(s["unref"])(a).e("description"))},[Object(s["renderSlot"])(e.$slots,"default",{},()=>[Object(s["createTextVNode"])(Object(s["toDisplayString"])(e.description),1)])],2)):Object(s["createCommentVNode"])("v-if",!0),e.closable?(Object(s["openBlock"])(),Object(s["createElementBlock"])(s["Fragment"],{key:2},[e.closeText?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:0,class:Object(s["normalizeClass"])([Object(s["unref"])(a).e("close-btn"),Object(s["unref"])(a).is("customed")]),onClick:d},Object(s["toDisplayString"])(e.closeText),3)):(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(w["a"]),{key:1,class:Object(s["normalizeClass"])(Object(s["unref"])(a).e("close-btn")),onClick:d},{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(Object(s["unref"])(r))]),_:1},8,["class"]))],64)):Object(s["createCommentVNode"])("v-if",!0)],2)],2),[[s["vShow"],i.value]])]),_:3},8,["name"]))}});var A=Object(h["a"])(L,[["__file","/home/runner/work/element-plus/element-plus/packages/components/alert/src/alert.vue"]]);const N=Object(k["a"])(A);var x=n("d095"),R=n("9ad7"),P=n("c349");const U=4,V={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"}},B=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),F=Symbol("scrollbarContextKey"),G=Object(l["b"])({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),z="Thumb",H=Object(s["defineComponent"])({__name:"thumb",props:G,setup(e){const t=e,n=Object(s["inject"])(F),r=Object(m["d"])("scrollbar");n||Object(g["b"])(z,"can not inject scrollbar context");const o=Object(s["ref"])(),a=Object(s["ref"])(),i=Object(s["ref"])({}),l=Object(s["ref"])(!1);let u=!1,d=!1,p=c["isClient"]?document.onselectstart:null;const f=Object(s["computed"])(()=>V[t.vertical?"vertical":"horizontal"]),h=Object(s["computed"])(()=>B({size:t.size,move:t.move,bar:f.value})),v=Object(s["computed"])(()=>o.value[f.value.offset]**2/n.wrapElement[f.value.scrollSize]/t.ratio/a.value[f.value.offset]),_=e=>{var t;if(e.stopPropagation(),e.ctrlKey||[1,2].includes(e.button))return;null==(t=window.getSelection())||t.removeAllRanges(),b(e);const n=e.currentTarget;n&&(i.value[f.value.axis]=n[f.value.offset]-(e[f.value.client]-n.getBoundingClientRect()[f.value.direction]))},y=e=>{if(!a.value||!o.value||!n.wrapElement)return;const t=Math.abs(e.target.getBoundingClientRect()[f.value.direction]-e[f.value.client]),r=a.value[f.value.offset]/2,i=100*(t-r)*v.value/o.value[f.value.offset];n.wrapElement[f.value.scroll]=i*n.wrapElement[f.value.scrollSize]/100},b=e=>{e.stopImmediatePropagation(),u=!0,document.addEventListener("mousemove",O),document.addEventListener("mouseup",M),p=document.onselectstart,document.onselectstart=()=>!1},O=e=>{if(!o.value||!a.value)return;if(!1===u)return;const t=i.value[f.value.axis];if(!t)return;const r=-1*(o.value.getBoundingClientRect()[f.value.direction]-e[f.value.client]),s=a.value[f.value.offset]-t,c=100*(r-s)*v.value/o.value[f.value.offset];n.wrapElement[f.value.scroll]=c*n.wrapElement[f.value.scrollSize]/100},M=()=>{u=!1,i.value[f.value.axis]=0,document.removeEventListener("mousemove",O),document.removeEventListener("mouseup",M),w(),d&&(l.value=!1)},k=()=>{d=!1,l.value=!!t.size},C=()=>{d=!0,l.value=u};Object(s["onBeforeUnmount"])(()=>{w(),document.removeEventListener("mouseup",M)});const w=()=>{document.onselectstart!==p&&(document.onselectstart=p)};return Object(c["useEventListener"])(Object(s["toRef"])(n,"scrollbarElement"),"mousemove",k),Object(c["useEventListener"])(Object(s["toRef"])(n,"scrollbarElement"),"mouseleave",C),(e,t)=>(Object(s["openBlock"])(),Object(s["createBlock"])(s["Transition"],{name:Object(s["unref"])(r).b("fade"),persisted:""},{default:Object(s["withCtx"])(()=>[Object(s["withDirectives"])(Object(s["createElementVNode"])("div",{ref_key:"instance",ref:o,class:Object(s["normalizeClass"])([Object(s["unref"])(r).e("bar"),Object(s["unref"])(r).is(Object(s["unref"])(f).key)]),onMousedown:y},[Object(s["createElementVNode"])("div",{ref_key:"thumb",ref:a,class:Object(s["normalizeClass"])(Object(s["unref"])(r).e("thumb")),style:Object(s["normalizeStyle"])(Object(s["unref"])(h)),onMousedown:_},null,38)],34),[[s["vShow"],e.always||l.value]])]),_:1},8,["name"]))}});var Y=Object(h["a"])(H,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const q=Object(l["b"])({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),W=Object(s["defineComponent"])({__name:"bar",props:q,setup(e,{expose:t}){const n=e,r=Object(s["ref"])(0),o=Object(s["ref"])(0),a=e=>{if(e){const t=e.offsetHeight-U,a=e.offsetWidth-U;o.value=100*e.scrollTop/t*n.ratioY,r.value=100*e.scrollLeft/a*n.ratioX}};return t({handleScroll:a}),(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])(s["Fragment"],null,[Object(s["createVNode"])(Y,{move:r.value,ratio:e.ratioX,size:e.width,always:e.always},null,8,["move","ratio","size","always"]),Object(s["createVNode"])(Y,{move:o.value,ratio:e.ratioY,size:e.height,vertical:"",always:e.always},null,8,["move","ratio","size","always"])],64))}});var K=Object(h["a"])(W,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const $=Object(l["b"])({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:Object(l["c"])([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:Boolean,minSize:{type:Number,default:20}}),J={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(u["d"])};var Q=n("7d20");const X="ElScrollbar",Z=Object(s["defineComponent"])({name:X}),ee=Object(s["defineComponent"])({...Z,props:$,emits:J,setup(e,{expose:t,emit:n}){const r=e,o=Object(m["d"])("scrollbar");let a=void 0,i=void 0;const l=Object(s["ref"])(),d=Object(s["ref"])(),p=Object(s["ref"])(),f=Object(s["ref"])("0"),h=Object(s["ref"])("0"),_=Object(s["ref"])(),y=Object(s["ref"])(1),b=Object(s["ref"])(1),O=Object(s["computed"])(()=>{const e={};return r.height&&(e.height=Object(v["b"])(r.height)),r.maxHeight&&(e.maxHeight=Object(v["b"])(r.maxHeight)),[r.wrapStyle,e]}),M=Object(s["computed"])(()=>[r.wrapClass,o.e("wrap"),{[o.em("wrap","hidden-default")]:!r.native}]),k=Object(s["computed"])(()=>[o.e("view"),r.viewClass]),C=()=>{var e;d.value&&(null==(e=_.value)||e.handleScroll(d.value),n("scroll",{scrollTop:d.value.scrollTop,scrollLeft:d.value.scrollLeft}))};function w(e,t){Object(Q["isObject"])(e)?d.value.scrollTo(e):Object(u["d"])(e)&&Object(u["d"])(t)&&d.value.scrollTo(e,t)}const I=e=>{Object(u["d"])(e)?d.value.scrollTop=e:Object(g["a"])(X,"value must be a number")},S=e=>{Object(u["d"])(e)?d.value.scrollLeft=e:Object(g["a"])(X,"value must be a number")},T=()=>{if(!d.value)return;const e=d.value.offsetHeight-U,t=d.value.offsetWidth-U,n=e**2/d.value.scrollHeight,o=t**2/d.value.scrollWidth,a=Math.max(n,r.minSize),i=Math.max(o,r.minSize);y.value=n/(e-n)/(a/(e-a)),b.value=o/(t-o)/(i/(t-i)),h.value=a+U<e?a+"px":"",f.value=i+U<t?i+"px":""};return Object(s["watch"])(()=>r.noresize,e=>{e?(null==a||a(),null==i||i()):(({stop:a}=Object(c["useResizeObserver"])(p,T)),i=Object(c["useEventListener"])("resize",T))},{immediate:!0}),Object(s["watch"])(()=>[r.maxHeight,r.height],()=>{r.native||Object(s["nextTick"])(()=>{var e;T(),d.value&&(null==(e=_.value)||e.handleScroll(d.value))})}),Object(s["provide"])(F,Object(s["reactive"])({scrollbarElement:l,wrapElement:d})),Object(s["onMounted"])(()=>{r.native||Object(s["nextTick"])(()=>{T()})}),Object(s["onUpdated"])(()=>T()),t({wrapRef:d,update:T,scrollTo:w,setScrollTop:I,setScrollLeft:S,handleScroll:C}),(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{ref_key:"scrollbarRef",ref:l,class:Object(s["normalizeClass"])(Object(s["unref"])(o).b())},[Object(s["createElementVNode"])("div",{ref_key:"wrapRef",ref:d,class:Object(s["normalizeClass"])(Object(s["unref"])(M)),style:Object(s["normalizeStyle"])(Object(s["unref"])(O)),onScroll:C},[(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["resolveDynamicComponent"])(e.tag),{ref_key:"resizeRef",ref:p,class:Object(s["normalizeClass"])(Object(s["unref"])(k)),style:Object(s["normalizeStyle"])(e.viewStyle)},{default:Object(s["withCtx"])(()=>[Object(s["renderSlot"])(e.$slots,"default")]),_:3},8,["class","style"]))],38),e.native?Object(s["createCommentVNode"])("v-if",!0):(Object(s["openBlock"])(),Object(s["createBlock"])(K,{key:0,ref_key:"barRef",ref:_,height:h.value,width:f.value,always:e.always,"ratio-x":b.value,"ratio-y":y.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});var te=Object(h["a"])(ee,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);const ne=Object(k["a"])(te),re=Symbol("popper"),oe=Symbol("popperContent"),ae=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],ie=Object(l["b"])({role:{type:String,values:ae,default:"tooltip"}}),se=Object(s["defineComponent"])({name:"ElPopper",inheritAttrs:!1}),ce=Object(s["defineComponent"])({...se,props:ie,setup(e,{expose:t}){const n=e,r=Object(s["ref"])(),o=Object(s["ref"])(),a=Object(s["ref"])(),i=Object(s["ref"])(),c=Object(s["computed"])(()=>n.role),l={triggerRef:r,popperInstanceRef:o,contentRef:a,referenceRef:i,role:c};return t(l),Object(s["provide"])(re,l),(e,t)=>Object(s["renderSlot"])(e.$slots,"default")}});var le=Object(h["a"])(ce,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const ue=Object(k["a"])(le),de=Symbol("elTooltip");function pe(){let e;const t=(t,r)=>{n(),e=window.setTimeout(t,r)},n=()=>window.clearTimeout(e);return Object(c["tryOnScopeDispose"])(()=>n()),{registerTimeout:t,cancelTimeout:n}}const fe=Object(l["b"])({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),he=({showAfter:e,hideAfter:t,autoClose:n,open:r,close:o})=>{const{registerTimeout:a}=pe(),{registerTimeout:i,cancelTimeout:c}=pe(),l=t=>{a(()=>{r(t);const e=Object(s["unref"])(n);Object(u["d"])(e)&&e>0&&i(()=>{o(t)},e)},Object(s["unref"])(e))},d=e=>{c(),a(()=>{o(e)},Object(s["unref"])(t))};return{onOpen:l,onClose:d}};var me=n("5e76");const ve=["fixed","absolute"],ge=Object(l["b"])({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:Object(l["c"])(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:me["placements"],default:"bottom"},popperOptions:{type:Object(l["c"])(Object),default:()=>({})},strategy:{type:String,values:ve,default:"absolute"}}),_e=Object(l["b"])({...ge,id:String,style:{type:Object(l["c"])([String,Array,Object])},className:{type:Object(l["c"])([String,Array,Object])},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:Object(l["c"])([String,Array,Object])},popperStyle:{type:Object(l["c"])([String,Array,Object])},referenceEl:{type:Object(l["c"])(Object)},triggerTargetEl:{type:Object(l["c"])(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),ye={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},be=Object(l["b"])({...fe,..._e,appendTo:{type:Object(l["c"])([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:Object(l["c"])(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean}),Oe=Object(l["b"])({virtualRef:{type:Object(l["c"])(Object)},virtualTriggering:Boolean,onMouseenter:{type:Object(l["c"])(Function)},onMouseleave:{type:Object(l["c"])(Function)},onClick:{type:Object(l["c"])(Function)},onKeydown:{type:Object(l["c"])(Function)},onFocus:{type:Object(l["c"])(Function)},onBlur:{type:Object(l["c"])(Function)},onContextmenu:{type:Object(l["c"])(Function)},id:String,open:Boolean});var Me=n("49c6");const ke=Object(l["b"])({...Oe,disabled:Boolean,trigger:{type:Object(l["c"])([String,Array]),default:"hover"},triggerKeys:{type:Object(l["c"])(Array),default:()=>[Me["a"].enter,Me["a"].space]}}),Ce=Object(l["a"])({type:Object(l["c"])(Boolean),default:null}),we=Object(l["a"])({type:Object(l["c"])(Function)}),Ie=e=>{const t="update:"+e,n="onUpdate:"+e,r=[t],o={[e]:Ce,[n]:we},a=({indicator:r,toggleReason:o,shouldHideWhenRouteChanges:a,shouldProceed:i,onShow:l,onHide:d})=>{const p=Object(s["getCurrentInstance"])(),{emit:f}=p,h=p.props,m=Object(s["computed"])(()=>Object(Q["isFunction"])(h[n])),v=Object(s["computed"])(()=>null===h[e]),g=e=>{!0!==r.value&&(r.value=!0,o&&(o.value=e),Object(Q["isFunction"])(l)&&l(e))},_=e=>{!1!==r.value&&(r.value=!1,o&&(o.value=e),Object(Q["isFunction"])(d)&&d(e))},y=e=>{if(!0===h.disabled||Object(Q["isFunction"])(i)&&!i())return;const n=m.value&&c["isClient"];n&&f(t,!0),!v.value&&n||g(e)},b=e=>{if(!0===h.disabled||!c["isClient"])return;const n=m.value&&c["isClient"];n&&f(t,!1),!v.value&&n||_(e)},O=e=>{Object(u["a"])(e)&&(h.disabled&&e?m.value&&f(t,!1):r.value!==e&&(e?g():_()))},M=()=>{r.value?b():y()};return Object(s["watch"])(()=>h[e],O),a&&void 0!==p.appContext.config.globalProperties.$route&&Object(s["watch"])(()=>({...p.proxy.$route}),()=>{a.value&&r.value&&b()}),Object(s["onMounted"])(()=>{O(h[e])}),{hide:b,show:y,toggle:M,hasUpdateHandler:m}};return{useModelToggle:a,useModelToggleProps:o,useModelToggleEmits:r}},{useModelToggle:Se,useModelToggleProps:Te,useModelToggleEmits:Ee}=Ie("modelValue"),je=Object(l["b"])({arrowOffset:{type:Number,default:5}}),{useModelToggleProps:De,useModelToggleEmits:Le,useModelToggle:Ae}=Ie("visible"),Ne=Object(l["b"])({...ie,...De,...be,...ke,...je,showArrow:{type:Boolean,default:!0}}),xe=[...Le,"before-show","before-hide","show","hide","open","close"],Re=(e,t)=>Object(Q["isArray"])(e)?e.includes(t):e===t,Pe=(e,t,n)=>r=>{Re(Object(s["unref"])(e),t)&&n(r)},Ue=(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},Ve=e=>t=>"mouse"===t.pointerType?e(t):void 0,Be=Symbol("elForwardRef"),Fe=e=>{const t=t=>{e.value=t};Object(s["provide"])(Be,{setForwardRef:t})},Ge=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),ze="ElOnlyChild",He=Object(s["defineComponent"])({name:ze,setup(e,{slots:t,attrs:n}){var r;const o=Object(s["inject"])(Be),a=Ge(null!=(r=null==o?void 0:o.setForwardRef)?r:Q["NOOP"]);return()=>{var e;const r=null==(e=t.default)?void 0:e.call(t,n);if(!r)return null;if(r.length>1)return Object(g["a"])(ze,"requires exact only one valid child."),null;const o=Ye(r);return o?Object(s["withDirectives"])(Object(s["cloneVNode"])(o,n),[[a]]):(Object(g["a"])(ze,"no valid child node found"),null)}}});function Ye(e){if(!e)return null;const t=e;for(const n of t){if(Object(Q["isObject"])(n))switch(n.type){case s["Comment"]:continue;case s["Text"]:case"svg":return qe(n);case s["Fragment"]:return Ye(n.children);default:return n}return qe(n)}return null}function qe(e){const t=Object(m["d"])("only-child");return Object(s["createVNode"])("span",{class:t.e("content")},[e])}const We=Object(s["defineComponent"])({name:"ElPopperTrigger",inheritAttrs:!1}),Ke=Object(s["defineComponent"])({...We,props:Oe,setup(e,{expose:t}){const n=e,{role:r,triggerRef:o}=Object(s["inject"])(re,void 0);Fe(o);const a=Object(s["computed"])(()=>l.value?n.id:void 0),i=Object(s["computed"])(()=>{if(r&&"tooltip"===r.value)return n.open&&n.id?n.id:void 0}),l=Object(s["computed"])(()=>{if(r&&"tooltip"!==r.value)return r.value}),d=Object(s["computed"])(()=>l.value?""+n.open:void 0);let p=void 0;return Object(s["onMounted"])(()=>{Object(s["watch"])(()=>n.virtualRef,e=>{e&&(o.value=Object(c["unrefElement"])(e))},{immediate:!0}),Object(s["watch"])(o,(e,t)=>{null==p||p(),p=void 0,Object(u["b"])(e)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(r=>{var o;const a=n[r];a&&(e.addEventListener(r.slice(2).toLowerCase(),a),null==(o=null==t?void 0:t.removeEventListener)||o.call(t,r.slice(2).toLowerCase(),a))}),p=Object(s["watch"])([a,i,l,d],t=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((n,r)=>{Object(x["isNil"])(t[r])?e.removeAttribute(n):e.setAttribute(n,t[r])})},{immediate:!0})),Object(u["b"])(t)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(e=>t.removeAttribute(e))},{immediate:!0})}),Object(s["onBeforeUnmount"])(()=>{null==p||p(),p=void 0}),t({triggerRef:o}),(e,t)=>e.virtualTriggering?Object(s["createCommentVNode"])("v-if",!0):(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(He),Object(s["mergeProps"])({key:0},e.$attrs,{"aria-controls":Object(s["unref"])(a),"aria-describedby":Object(s["unref"])(i),"aria-expanded":Object(s["unref"])(d),"aria-haspopup":Object(s["unref"])(l)}),{default:Object(s["withCtx"])(()=>[Object(s["renderSlot"])(e.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var $e=Object(h["a"])(Ke,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]);const Je=Object(s["defineComponent"])({name:"ElTooltipTrigger"}),Qe=Object(s["defineComponent"])({...Je,props:ke,setup(e,{expose:t}){const n=e,r=Object(m["d"])("tooltip"),{controlled:o,id:a,open:i,onOpen:c,onClose:l,onToggle:u}=Object(s["inject"])(de,void 0),d=Object(s["ref"])(null),p=()=>{if(Object(s["unref"])(o)||n.disabled)return!0},f=Object(s["toRef"])(n,"trigger"),h=Ue(p,Pe(f,"hover",c)),v=Ue(p,Pe(f,"hover",l)),g=Ue(p,Pe(f,"click",e=>{0===e.button&&u(e)})),_=Ue(p,Pe(f,"focus",c)),y=Ue(p,Pe(f,"focus",l)),b=Ue(p,Pe(f,"contextmenu",e=>{e.preventDefault(),u(e)})),O=Ue(p,e=>{const{code:t}=e;n.triggerKeys.includes(t)&&(e.preventDefault(),u(e))});return t({triggerRef:d}),(e,t)=>(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])($e),{id:Object(s["unref"])(a),"virtual-ref":e.virtualRef,open:Object(s["unref"])(i),"virtual-triggering":e.virtualTriggering,class:Object(s["normalizeClass"])(Object(s["unref"])(r).e("trigger")),onBlur:Object(s["unref"])(y),onClick:Object(s["unref"])(g),onContextmenu:Object(s["unref"])(b),onFocus:Object(s["unref"])(_),onMouseenter:Object(s["unref"])(h),onMouseleave:Object(s["unref"])(v),onKeydown:Object(s["unref"])(O)},{default:Object(s["withCtx"])(()=>[Object(s["renderSlot"])(e.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var Xe=Object(h["a"])(Qe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]),Ze=n("35b0");let et;const tt=()=>{const e=Object(m["c"])(),t=Object(Ze["b"])(),n=Object(s["computed"])(()=>`${e.value}-popper-container-${t.prefix}`),r=Object(s["computed"])(()=>"#"+n.value);return{id:n,selector:r}},nt=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},rt=()=>{const{id:e,selector:t}=tt();return Object(s["onBeforeMount"])(()=>{c["isClient"]&&(et||document.body.querySelector(t.value)||(et=nt(e.value)))}),{id:e,selector:t}},ot=(e,t)=>{const n=Object(s["ref"])(!1),r=Object(s["ref"])(),o=()=>{t("focus")},a=e=>{var n;"pointer"!==(null==(n=e.detail)?void 0:n.focusReason)&&(r.value="first",t("blur"))},i=t=>{e.visible&&!n.value&&(t.target&&(r.value=t.target),n.value=!0)},c=t=>{e.trapping||("pointer"===t.detail.focusReason&&t.preventDefault(),n.value=!1)},l=()=>{n.value=!1,t("close")};return{focusStartRef:r,trapped:n,onFocusAfterReleased:a,onFocusAfterTrapped:o,onFocusInTrap:i,onFocusoutPrevented:c,onReleaseRequested:l}},at=(e,t=[])=>{const{placement:n,strategy:r,popperOptions:o}=e,a={placement:n,strategy:r,...o,modifiers:[...st(e),...t]};return ct(a,null==o?void 0:o.modifiers),a},it=e=>{if(c["isClient"])return Object(c["unrefElement"])(e)};function st(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:r}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function ct(e,t){t&&(e.modifiers=[...e.modifiers,...null!=t?t:[]])}const lt=(e,t,n={})=>{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:e})=>{const t=ut(e);Object.assign(i.value,t)},requires:["computeStyles"]},o=Object(s["computed"])(()=>{const{onFirstUpdate:e,placement:t,strategy:o,modifiers:a}=Object(s["unref"])(n);return{onFirstUpdate:e,placement:t||"bottom",strategy:o||"absolute",modifiers:[...a||[],r,{name:"applyStyles",enabled:!1}]}}),a=Object(s["shallowRef"])(),i=Object(s["ref"])({styles:{popper:{position:Object(s["unref"])(o).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),c=()=>{a.value&&(a.value.destroy(),a.value=void 0)};return Object(s["watch"])(o,e=>{const t=Object(s["unref"])(a);t&&t.setOptions(e)},{deep:!0}),Object(s["watch"])([e,t],([e,t])=>{c(),e&&t&&(a.value=Object(me["createPopper"])(e,t,Object(s["unref"])(o)))}),Object(s["onBeforeUnmount"])(()=>{c()}),{state:Object(s["computed"])(()=>{var e;return{...(null==(e=Object(s["unref"])(a))?void 0:e.state)||{}}}),styles:Object(s["computed"])(()=>Object(s["unref"])(i).styles),attributes:Object(s["computed"])(()=>Object(s["unref"])(i).attributes),update:()=>{var e;return null==(e=Object(s["unref"])(a))?void 0:e.update()},forceUpdate:()=>{var e;return null==(e=Object(s["unref"])(a))?void 0:e.forceUpdate()},instanceRef:Object(s["computed"])(()=>Object(s["unref"])(a))}};function ut(e){const t=Object.keys(e.elements),n=Object(x["fromPairs"])(t.map(t=>[t,e.styles[t]||{}])),r=Object(x["fromPairs"])(t.map(t=>[t,e.attributes[t]]));return{styles:n,attributes:r}}const dt=0,pt=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:r,role:o}=Object(s["inject"])(re,void 0),a=Object(s["ref"])(),i=Object(s["ref"])(),c=Object(s["computed"])(()=>({name:"eventListeners",enabled:!!e.visible})),l=Object(s["computed"])(()=>{var e;const t=Object(s["unref"])(a),n=null!=(e=Object(s["unref"])(i))?e:dt;return{name:"arrow",enabled:!Object(x["isUndefined"])(t),options:{element:t,padding:n}}}),u=Object(s["computed"])(()=>({onFirstUpdate:()=>{m()},...at(e,[Object(s["unref"])(l),Object(s["unref"])(c)])})),d=Object(s["computed"])(()=>it(e.referenceEl)||Object(s["unref"])(r)),{attributes:p,state:f,styles:h,update:m,forceUpdate:v,instanceRef:g}=lt(d,n,u);return Object(s["watch"])(g,e=>t.value=e),Object(s["onMounted"])(()=>{Object(s["watch"])(()=>{var e;return null==(e=Object(s["unref"])(d))?void 0:e.getBoundingClientRect()},()=>{m()})}),{attributes:p,arrowRef:a,contentRef:n,instanceRef:g,state:f,styles:h,role:o,forceUpdate:v,update:m}};var ft=n("0a08");const ht=(e,{attributes:t,styles:n,role:r})=>{const{nextZIndex:o}=Object(ft["b"])(),a=Object(m["d"])("popper"),i=Object(s["computed"])(()=>Object(s["unref"])(t).popper),c=Object(s["ref"])(e.zIndex||o()),l=Object(s["computed"])(()=>[a.b(),a.is("pure",e.pure),a.is(e.effect),e.popperClass]),u=Object(s["computed"])(()=>[{zIndex:Object(s["unref"])(c)},Object(s["unref"])(n).popper,e.popperStyle||{}]),d=Object(s["computed"])(()=>"dialog"===r.value?"false":void 0),p=Object(s["computed"])(()=>Object(s["unref"])(n).arrow||{}),f=()=>{c.value=e.zIndex||o()};return{ariaModal:d,arrowStyle:p,contentAttrs:i,contentClass:l,contentStyle:u,contentZIndex:c,updateZIndex:f}};var mt=n("5112"),vt=n("1b65");const gt=Object(s["defineComponent"])({name:"ElPopperContent"}),_t=Object(s["defineComponent"])({...gt,props:_e,emits:ye,setup(e,{expose:t,emit:n}){const r=e,{focusStartRef:o,trapped:a,onFocusAfterReleased:i,onFocusAfterTrapped:c,onFocusInTrap:l,onFocusoutPrevented:d,onReleaseRequested:p}=ot(r,n),{attributes:f,arrowRef:h,contentRef:m,styles:v,instanceRef:g,role:_,update:y}=pt(r),{ariaModal:b,arrowStyle:O,contentAttrs:M,contentClass:k,contentStyle:C,updateZIndex:w}=ht(r,{styles:v,attributes:f,role:_}),I=Object(s["inject"])(mt["b"],void 0),S=Object(s["ref"])();Object(s["provide"])(oe,{arrowStyle:O,arrowRef:h,arrowOffset:S}),I&&(I.addInputId||I.removeInputId)&&Object(s["provide"])(mt["b"],{...I,addInputId:Q["NOOP"],removeInputId:Q["NOOP"]});let T=void 0;const E=(e=!0)=>{y(),e&&w()},j=()=>{E(!1),r.visible&&r.focusOnShow?a.value=!0:!1===r.visible&&(a.value=!1)};return Object(s["onMounted"])(()=>{Object(s["watch"])(()=>r.triggerTargetEl,(e,t)=>{null==T||T(),T=void 0;const n=Object(s["unref"])(e||m.value),o=Object(s["unref"])(t||m.value);Object(u["b"])(n)&&(T=Object(s["watch"])([_,()=>r.ariaLabel,b,()=>r.id],e=>{["role","aria-label","aria-modal","id"].forEach((t,r)=>{Object(x["isNil"])(e[r])?n.removeAttribute(t):n.setAttribute(t,e[r])})},{immediate:!0})),o!==n&&Object(u["b"])(o)&&["role","aria-label","aria-modal","id"].forEach(e=>{o.removeAttribute(e)})},{immediate:!0}),Object(s["watch"])(()=>r.visible,j,{immediate:!0})}),Object(s["onBeforeUnmount"])(()=>{null==T||T(),T=void 0}),t({popperContentRef:m,popperInstanceRef:g,updatePopper:E,contentStyle:C}),(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",Object(s["mergeProps"])({ref_key:"contentRef",ref:m},Object(s["unref"])(M),{style:Object(s["unref"])(C),class:Object(s["unref"])(k),tabindex:"-1",onMouseenter:t[0]||(t[0]=t=>e.$emit("mouseenter",t)),onMouseleave:t[1]||(t[1]=t=>e.$emit("mouseleave",t))}),[Object(s["createVNode"])(Object(s["unref"])(vt["a"]),{trapped:Object(s["unref"])(a),"trap-on-focus-in":!0,"focus-trap-el":Object(s["unref"])(m),"focus-start-el":Object(s["unref"])(o),onFocusAfterTrapped:Object(s["unref"])(c),onFocusAfterReleased:Object(s["unref"])(i),onFocusin:Object(s["unref"])(l),onFocusoutPrevented:Object(s["unref"])(d),onReleaseRequested:Object(s["unref"])(p)},{default:Object(s["withCtx"])(()=>[Object(s["renderSlot"])(e.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var yt=Object(h["a"])(_t,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const bt=Object(s["defineComponent"])({name:"ElTooltipContent",inheritAttrs:!1}),Ot=Object(s["defineComponent"])({...bt,props:be,setup(e,{expose:t}){const n=e,{selector:r}=tt(),o=Object(m["d"])("tooltip"),a=Object(s["ref"])(null),i=Object(s["ref"])(!1),{controlled:l,id:u,open:d,trigger:p,onClose:f,onOpen:h,onShow:v,onHide:g,onBeforeShow:_,onBeforeHide:y}=Object(s["inject"])(de,void 0),b=Object(s["computed"])(()=>n.transition||o.namespace.value+"-fade-in-linear"),O=Object(s["computed"])(()=>n.persistent);Object(s["onBeforeUnmount"])(()=>{i.value=!0});const M=Object(s["computed"])(()=>!!Object(s["unref"])(O)||Object(s["unref"])(d)),k=Object(s["computed"])(()=>!n.disabled&&Object(s["unref"])(d)),C=Object(s["computed"])(()=>n.appendTo||r.value),w=Object(s["computed"])(()=>{var e;return null!=(e=n.style)?e:{}}),I=Object(s["computed"])(()=>!Object(s["unref"])(d)),S=()=>{g()},T=()=>{if(Object(s["unref"])(l))return!0},E=Ue(T,()=>{n.enterable&&"hover"===Object(s["unref"])(p)&&h()}),j=Ue(T,()=>{"hover"===Object(s["unref"])(p)&&f()}),D=()=>{var e,t;null==(t=null==(e=a.value)?void 0:e.updatePopper)||t.call(e),null==_||_()},L=()=>{null==y||y()},A=()=>{v(),x=Object(c["onClickOutside"])(Object(s["computed"])(()=>{var e;return null==(e=a.value)?void 0:e.popperContentRef}),()=>{if(Object(s["unref"])(l))return;const e=Object(s["unref"])(p);"hover"!==e&&f()})},N=()=>{n.virtualTriggering||f()};let x;return Object(s["watch"])(()=>Object(s["unref"])(d),e=>{e||null==x||x()},{flush:"post"}),Object(s["watch"])(()=>n.content,()=>{var e,t;null==(t=null==(e=a.value)?void 0:e.updatePopper)||t.call(e)}),t({contentRef:a}),(e,t)=>(Object(s["openBlock"])(),Object(s["createBlock"])(s["Teleport"],{disabled:!e.teleported,to:Object(s["unref"])(C)},[Object(s["createVNode"])(s["Transition"],{name:Object(s["unref"])(b),onAfterLeave:S,onBeforeEnter:D,onAfterEnter:A,onBeforeLeave:L},{default:Object(s["withCtx"])(()=>[Object(s["unref"])(M)?Object(s["withDirectives"])((Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(yt),Object(s["mergeProps"])({key:0,id:Object(s["unref"])(u),ref_key:"contentRef",ref:a},e.$attrs,{"aria-label":e.ariaLabel,"aria-hidden":Object(s["unref"])(I),"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,Object(s["unref"])(w)],"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,visible:Object(s["unref"])(k),"z-index":e.zIndex,onMouseenter:Object(s["unref"])(E),onMouseleave:Object(s["unref"])(j),onBlur:N,onClose:Object(s["unref"])(f)}),{default:Object(s["withCtx"])(()=>[i.value?Object(s["createCommentVNode"])("v-if",!0):Object(s["renderSlot"])(e.$slots,"default",{key:0})]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[s["vShow"],Object(s["unref"])(k)]]):Object(s["createCommentVNode"])("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var Mt=Object(h["a"])(Ot,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const kt=Object(s["defineComponent"])({name:"ElPopperArrow",inheritAttrs:!1}),Ct=Object(s["defineComponent"])({...kt,props:je,setup(e,{expose:t}){const n=e,r=Object(m["d"])("popper"),{arrowOffset:o,arrowRef:a,arrowStyle:i}=Object(s["inject"])(oe,void 0);return Object(s["watch"])(()=>n.arrowOffset,e=>{o.value=e}),Object(s["onBeforeUnmount"])(()=>{a.value=void 0}),t({arrowRef:a}),(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",{ref_key:"arrowRef",ref:a,class:Object(s["normalizeClass"])(Object(s["unref"])(r).e("arrow")),style:Object(s["normalizeStyle"])(Object(s["unref"])(i)),"data-popper-arrow":""},null,6))}});var wt=Object(h["a"])(Ct,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const It=["innerHTML"],St={key:1},Tt=Object(s["defineComponent"])({name:"ElTooltip"}),Et=Object(s["defineComponent"])({...Tt,props:Ne,emits:xe,setup(e,{expose:t,emit:n}){const r=e;rt();const o=Object(Ze["a"])(),a=Object(s["ref"])(),i=Object(s["ref"])(),c=()=>{var e;const t=Object(s["unref"])(a);t&&(null==(e=t.popperInstanceRef)||e.update())},l=Object(s["ref"])(!1),d=Object(s["ref"])(),{show:p,hide:f,hasUpdateHandler:h}=Ae({indicator:l,toggleReason:d}),{onOpen:m,onClose:v}=he({showAfter:Object(s["toRef"])(r,"showAfter"),hideAfter:Object(s["toRef"])(r,"hideAfter"),autoClose:Object(s["toRef"])(r,"autoClose"),open:p,close:f}),g=Object(s["computed"])(()=>Object(u["a"])(r.visible)&&!h.value);Object(s["provide"])(de,{controlled:g,id:o,open:Object(s["readonly"])(l),trigger:Object(s["toRef"])(r,"trigger"),onOpen:e=>{m(e)},onClose:e=>{v(e)},onToggle:e=>{Object(s["unref"])(l)?v(e):m(e)},onShow:()=>{n("show",d.value)},onHide:()=>{n("hide",d.value)},onBeforeShow:()=>{n("before-show",d.value)},onBeforeHide:()=>{n("before-hide",d.value)},updatePopper:c}),Object(s["watch"])(()=>r.disabled,e=>{e&&l.value&&(l.value=!1)});const _=e=>{var t,n;const r=null==(n=null==(t=i.value)?void 0:t.contentRef)?void 0:n.popperContentRef,o=(null==e?void 0:e.relatedTarget)||document.activeElement;return r&&r.contains(o)};return Object(s["onDeactivated"])(()=>l.value&&f()),t({popperRef:a,contentRef:i,isFocusInsideContent:_,updatePopper:c,onOpen:m,onClose:v,hide:f}),(e,t)=>(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(ue),{ref_key:"popperRef",ref:a,role:e.role},{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(Xe,{disabled:e.disabled,trigger:e.trigger,"trigger-keys":e.triggerKeys,"virtual-ref":e.virtualRef,"virtual-triggering":e.virtualTriggering},{default:Object(s["withCtx"])(()=>[e.$slots.default?Object(s["renderSlot"])(e.$slots,"default",{key:0}):Object(s["createCommentVNode"])("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),Object(s["createVNode"])(Mt,{ref_key:"contentRef",ref:i,"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,"trigger-target-el":e.triggerTargetEl,"show-after":e.showAfter,strategy:e.strategy,teleported:e.teleported,transition:e.transition,"virtual-triggering":e.virtualTriggering,"z-index":e.zIndex,"append-to":e.appendTo},{default:Object(s["withCtx"])(()=>[Object(s["renderSlot"])(e.$slots,"content",{},()=>[e.rawContent?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",{key:0,innerHTML:e.content},null,8,It)):(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",St,Object(s["toDisplayString"])(e.content),1))]),e.showArrow?(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(wt),{key:0,"arrow-offset":e.arrowOffset},null,8,["arrow-offset"])):Object(s["createCommentVNode"])("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","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}});var jt=Object(h["a"])(Et,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);const Dt=Object(k["a"])(jt),Lt=Object(l["b"])({valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:Object(l["c"])(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:Object(l["c"])([Function,Array]),default:Q["NOOP"]},popperClass:{type:String,default:""},triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:{type:Boolean,default:!1},hideLoading:{type:Boolean,default:!1},label:{type:String},teleported:be.teleported,highlightFirstItem:{type:Boolean,default:!1},fitInputWidth:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},name:String}),At={[d["c"]]:e=>Object(Q["isString"])(e),[d["b"]]:e=>Object(Q["isString"])(e),[d["a"]]:e=>Object(Q["isString"])(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,select:e=>Object(Q["isObject"])(e)};var Nt=n("c9ac"),xt=n("4bea");const Rt=()=>Math.floor(1e4*Math.random()),Pt=["aria-expanded","aria-owns"],Ut={key:0},Vt=["id","aria-selected","onClick"],Bt="ElAutocomplete",Ft=Object(s["defineComponent"])({name:Bt,inheritAttrs:!1}),Gt=Object(s["defineComponent"])({...Ft,props:Lt,emits:At,setup(e,{expose:t,emit:n}){const r=e,o=Object(Nt["a"])(),a=Object(s["useAttrs"])(),i=Object(xt["a"])(),l=Object(m["d"])("autocomplete"),u=Object(s["ref"])(),p=Object(s["ref"])(),f=Object(s["ref"])(),h=Object(s["ref"])();let v=!1,_=!1;const y=Object(s["ref"])([]),b=Object(s["ref"])(-1),O=Object(s["ref"])(""),M=Object(s["ref"])(!1),k=Object(s["ref"])(!1),C=Object(s["ref"])(!1),I=Object(s["computed"])(()=>l.b(String(Rt()))),S=Object(s["computed"])(()=>a.style),T=Object(s["computed"])(()=>{const e=y.value.length>0;return(e||C.value)&&M.value}),E=Object(s["computed"])(()=>!r.hideLoading&&C.value),j=Object(s["computed"])(()=>u.value?Array.from(u.value.$el.querySelectorAll("input")):[]),D=async()=>{await Object(s["nextTick"])(),T.value&&(O.value=u.value.$el.offsetWidth+"px")},L=()=>{b.value=-1},A=async e=>{if(k.value)return;const t=e=>{C.value=!1,k.value||(Object(Q["isArray"])(e)?(y.value=e,b.value=r.highlightFirstItem?0:-1):Object(g["b"])(Bt,"autocomplete suggestions must be an array"))};if(C.value=!0,Object(Q["isArray"])(r.fetchSuggestions))t(r.fetchSuggestions);else{const n=await r.fetchSuggestions(e,t);Object(Q["isArray"])(n)&&t(n)}},N=Object(x["debounce"])(A,r.debounce),U=e=>{const t=!!e;if(n(d["b"],e),n(d["c"],e),k.value=!1,M.value||(M.value=t),!r.triggerOnFocus&&!e)return k.value=!0,void(y.value=[]);N(e)},V=e=>{var t;i.value||("INPUT"!==(null==(t=e.target)?void 0:t.tagName)||j.value.includes(document.activeElement))&&(M.value=!0)},B=e=>{n(d["a"],e)},F=e=>{_?_=!1:(M.value=!0,n("focus",e),r.triggerOnFocus&&!v&&N(String(r.modelValue)))},G=e=>{setTimeout(()=>{var t;(null==(t=f.value)?void 0:t.isFocusInsideContent())?_=!0:(M.value&&q(),n("blur",e))})},z=()=>{M.value=!1,n(d["c"],""),n("clear")},H=async()=>{T.value&&b.value>=0&&b.value<y.value.length?$(y.value[b.value]):r.selectWhenUnmatched&&(n("select",{value:r.modelValue}),y.value=[],b.value=-1)},Y=e=>{T.value&&(e.preventDefault(),e.stopPropagation(),q())},q=()=>{M.value=!1},W=()=>{var e;null==(e=u.value)||e.focus()},K=()=>{var e;null==(e=u.value)||e.blur()},$=async e=>{n(d["b"],e[r.valueKey]),n(d["c"],e[r.valueKey]),n("select",e),y.value=[],b.value=-1},J=e=>{if(!T.value||C.value)return;if(e<0)return void(b.value=-1);e>=y.value.length&&(e=y.value.length-1);const t=p.value.querySelector("."+l.be("suggestion","wrap")),n=t.querySelectorAll(`.${l.be("suggestion","list")} li`),r=n[e],o=t.scrollTop,{offsetTop:a,scrollHeight:i}=r;a+i>o+t.clientHeight&&(t.scrollTop+=i),a<o&&(t.scrollTop-=i),b.value=e,u.value.ref.setAttribute("aria-activedescendant",`${I.value}-item-${b.value}`)};return Object(c["onClickOutside"])(h,()=>{T.value&&q()}),Object(s["onMounted"])(()=>{u.value.ref.setAttribute("role","textbox"),u.value.ref.setAttribute("aria-autocomplete","list"),u.value.ref.setAttribute("aria-controls","id"),u.value.ref.setAttribute("aria-activedescendant",`${I.value}-item-${b.value}`),v=u.value.ref.hasAttribute("readonly")}),t({highlightedIndex:b,activated:M,loading:C,inputRef:u,popperRef:f,suggestions:y,handleSelect:$,handleKeyEnter:H,focus:W,blur:K,close:q,highlight:J}),(e,t)=>(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(Dt),{ref_key:"popperRef",ref:f,visible:Object(s["unref"])(T),placement:e.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[Object(s["unref"])(l).e("popper"),e.popperClass],teleported:e.teleported,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:Object(s["unref"])(l).namespace.value+"-zoom-in-top",persistent:"",role:"listbox",onBeforeShow:D,onHide:L},{content:Object(s["withCtx"])(()=>[Object(s["createElementVNode"])("div",{ref_key:"regionRef",ref:p,class:Object(s["normalizeClass"])([Object(s["unref"])(l).b("suggestion"),Object(s["unref"])(l).is("loading",Object(s["unref"])(E))]),style:Object(s["normalizeStyle"])({[e.fitInputWidth?"width":"minWidth"]:O.value,outline:"none"}),role:"region"},[Object(s["createVNode"])(Object(s["unref"])(ne),{id:Object(s["unref"])(I),tag:"ul","wrap-class":Object(s["unref"])(l).be("suggestion","wrap"),"view-class":Object(s["unref"])(l).be("suggestion","list"),role:"listbox"},{default:Object(s["withCtx"])(()=>[Object(s["unref"])(E)?(Object(s["openBlock"])(),Object(s["createElementBlock"])("li",Ut,[Object(s["createVNode"])(Object(s["unref"])(w["a"]),{class:Object(s["normalizeClass"])(Object(s["unref"])(l).is("loading"))},{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(Object(s["unref"])(R["Loading"]))]),_:1},8,["class"])])):(Object(s["openBlock"])(!0),Object(s["createElementBlock"])(s["Fragment"],{key:1},Object(s["renderList"])(y.value,(t,n)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("li",{id:`${Object(s["unref"])(I)}-item-${n}`,key:n,class:Object(s["normalizeClass"])({highlighted:b.value===n}),role:"option","aria-selected":b.value===n,onClick:e=>$(t)},[Object(s["renderSlot"])(e.$slots,"default",{item:t},()=>[Object(s["createTextVNode"])(Object(s["toDisplayString"])(t[e.valueKey]),1)])],10,Vt))),128))]),_:3},8,["id","wrap-class","view-class"])],6)]),default:Object(s["withCtx"])(()=>[Object(s["createElementVNode"])("div",{ref_key:"listboxRef",ref:h,class:Object(s["normalizeClass"])([Object(s["unref"])(l).b(),e.$attrs.class]),style:Object(s["normalizeStyle"])(Object(s["unref"])(S)),role:"combobox","aria-haspopup":"listbox","aria-expanded":Object(s["unref"])(T),"aria-owns":Object(s["unref"])(I)},[Object(s["createVNode"])(Object(s["unref"])(P["a"]),Object(s["mergeProps"])({ref_key:"inputRef",ref:u},Object(s["unref"])(o),{clearable:e.clearable,disabled:Object(s["unref"])(i),name:e.name,"model-value":e.modelValue,onInput:U,onChange:B,onFocus:F,onBlur:G,onClear:z,onKeydown:[t[0]||(t[0]=Object(s["withKeys"])(Object(s["withModifiers"])(e=>J(b.value-1),["prevent"]),["up"])),t[1]||(t[1]=Object(s["withKeys"])(Object(s["withModifiers"])(e=>J(b.value+1),["prevent"]),["down"])),Object(s["withKeys"])(H,["enter"]),Object(s["withKeys"])(q,["tab"]),Object(s["withKeys"])(Y,["esc"])],onMousedown:V}),Object(s["createSlots"])({_:2},[e.$slots.prepend?{name:"prepend",fn:Object(s["withCtx"])(()=>[Object(s["renderSlot"])(e.$slots,"prepend")])}:void 0,e.$slots.append?{name:"append",fn:Object(s["withCtx"])(()=>[Object(s["renderSlot"])(e.$slots,"append")])}:void 0,e.$slots.prefix?{name:"prefix",fn:Object(s["withCtx"])(()=>[Object(s["renderSlot"])(e.$slots,"prefix")])}:void 0,e.$slots.suffix?{name:"suffix",fn:Object(s["withCtx"])(()=>[Object(s["renderSlot"])(e.$slots,"suffix")])}:void 0]),1040,["clearable","disabled","name","model-value","onKeydown"])],14,Pt)]),_:3},8,["visible","placement","popper-class","teleported","transition"]))}});var zt=Object(h["a"])(Gt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/autocomplete/src/autocomplete.vue"]]);const Ht=Object(k["a"])(zt);var Yt=n("d5eb");const qt=Object(l["b"])({size:{type:[Number,String],values:Yt["b"],default:"",validator:e=>Object(u["d"])(e)},shape:{type:String,values:["circle","square"],default:"circle"},icon:{type:S["e"]},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:Object(l["c"])(String),default:"cover"}}),Wt={error:e=>e instanceof Event},Kt=["src","alt","srcset"],$t=Object(s["defineComponent"])({name:"ElAvatar"}),Jt=Object(s["defineComponent"])({...$t,props:qt,emits:Wt,setup(e,{emit:t}){const n=e,r=Object(m["d"])("avatar"),o=Object(s["ref"])(!1),a=Object(s["computed"])(()=>{const{size:e,icon:t,shape:o}=n,a=[r.b()];return Object(Q["isString"])(e)&&a.push(r.m(e)),t&&a.push(r.m("icon")),o&&a.push(r.m(o)),a}),i=Object(s["computed"])(()=>{const{size:e}=n;return Object(u["d"])(e)?r.cssVarBlock({size:Object(v["b"])(e)||""}):void 0}),c=Object(s["computed"])(()=>({objectFit:n.fit}));function l(e){o.value=!0,t("error",e)}return Object(s["watch"])(()=>n.src,()=>o.value=!1),(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",{class:Object(s["normalizeClass"])(Object(s["unref"])(a)),style:Object(s["normalizeStyle"])(Object(s["unref"])(i))},[!e.src&&!e.srcSet||o.value?e.icon?(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(w["a"]),{key:1},{default:Object(s["withCtx"])(()=>[(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["resolveDynamicComponent"])(e.icon)))]),_:1})):Object(s["renderSlot"])(e.$slots,"default",{key:2}):(Object(s["openBlock"])(),Object(s["createElementBlock"])("img",{key:0,src:e.src,alt:e.alt,srcset:e.srcSet,style:Object(s["normalizeStyle"])(Object(s["unref"])(c)),onError:l},null,44,Kt))],6))}});var Qt=Object(h["a"])(Jt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/avatar/src/avatar.vue"]]);const Xt=Object(k["a"])(Qt),Zt={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},en={click:e=>e instanceof MouseEvent},tn=(e,t,n)=>{const r=Object(s["shallowRef"])(),o=Object(s["shallowRef"])(),a=Object(s["ref"])(!1),i=()=>{r.value&&(a.value=r.value.scrollTop>=e.visibilityHeight)},l=e=>{var n;null==(n=r.value)||n.scrollTo({top:0,behavior:"smooth"}),t("click",e)},u=Object(c["useThrottleFn"])(i,300,!0);return Object(c["useEventListener"])(o,"scroll",u),Object(s["onMounted"])(()=>{var t;o.value=document,r.value=document.documentElement,e.target&&(r.value=null!=(t=document.querySelector(e.target))?t:void 0,r.value||Object(g["b"])(n,"target does not exist: "+e.target),o.value=r.value),i()}),{visible:a,handleClick:l}},nn="ElBacktop",rn=Object(s["defineComponent"])({name:nn}),on=Object(s["defineComponent"])({...rn,props:Zt,emits:en,setup(e,{emit:t}){const n=e,r=Object(m["d"])("backtop"),{handleClick:o,visible:a}=tn(n,t,nn),i=Object(s["computed"])(()=>({right:n.right+"px",bottom:n.bottom+"px"}));return(e,t)=>(Object(s["openBlock"])(),Object(s["createBlock"])(s["Transition"],{name:Object(s["unref"])(r).namespace.value+"-fade-in"},{default:Object(s["withCtx"])(()=>[Object(s["unref"])(a)?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:0,style:Object(s["normalizeStyle"])(Object(s["unref"])(i)),class:Object(s["normalizeClass"])(Object(s["unref"])(r).b()),onClick:t[0]||(t[0]=Object(s["withModifiers"])((...e)=>Object(s["unref"])(o)&&Object(s["unref"])(o)(...e),["stop"]))},[Object(s["renderSlot"])(e.$slots,"default",{},()=>[Object(s["createVNode"])(Object(s["unref"])(w["a"]),{class:Object(s["normalizeClass"])(Object(s["unref"])(r).e("icon"))},{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(Object(s["unref"])(R["CaretTop"]))]),_:1},8,["class"])])],6)):Object(s["createCommentVNode"])("v-if",!0)]),_:3},8,["name"]))}});var an=Object(h["a"])(on,[["__file","/home/runner/work/element-plus/element-plus/packages/components/backtop/src/backtop.vue"]]);const sn=Object(k["a"])(an);var cn=n("0388");const ln=Symbol("breadcrumbKey"),un=Object(l["b"])({separator:{type:String,default:"/"},separatorIcon:{type:S["e"]}}),dn=Object(s["defineComponent"])({name:"ElBreadcrumb"}),pn=Object(s["defineComponent"])({...dn,props:un,setup(e){const t=e,n=Object(m["d"])("breadcrumb"),r=Object(s["ref"])();return Object(s["provide"])(ln,t),Object(s["onMounted"])(()=>{const e=r.value.querySelectorAll("."+n.e("item"));e.length&&e[e.length-1].setAttribute("aria-current","page")}),(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{ref_key:"breadcrumb",ref:r,class:Object(s["normalizeClass"])(Object(s["unref"])(n).b()),"aria-label":"Breadcrumb",role:"navigation"},[Object(s["renderSlot"])(e.$slots,"default")],2))}});var fn=Object(h["a"])(pn,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb.vue"]]);const hn=Object(l["b"])({to:{type:Object(l["c"])([String,Object]),default:""},replace:{type:Boolean,default:!1}}),mn=Object(s["defineComponent"])({name:"ElBreadcrumbItem"}),vn=Object(s["defineComponent"])({...mn,props:hn,setup(e){const t=e,n=Object(s["getCurrentInstance"])(),r=Object(s["inject"])(ln,void 0),o=Object(m["d"])("breadcrumb"),a=n.appContext.config.globalProperties.$router,i=Object(s["ref"])(),c=()=>{t.to&&a&&(t.replace?a.replace(t.to):a.push(t.to))};return(e,t)=>{var n,a;return Object(s["openBlock"])(),Object(s["createElementBlock"])("span",{class:Object(s["normalizeClass"])(Object(s["unref"])(o).e("item"))},[Object(s["createElementVNode"])("span",{ref_key:"link",ref:i,class:Object(s["normalizeClass"])([Object(s["unref"])(o).e("inner"),Object(s["unref"])(o).is("link",!!e.to)]),role:"link",onClick:c},[Object(s["renderSlot"])(e.$slots,"default")],2),(null==(n=Object(s["unref"])(r))?void 0:n.separatorIcon)?(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(w["a"]),{key:0,class:Object(s["normalizeClass"])(Object(s["unref"])(o).e("separator"))},{default:Object(s["withCtx"])(()=>[(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["resolveDynamicComponent"])(Object(s["unref"])(r).separatorIcon)))]),_:1},8,["class"])):(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",{key:1,class:Object(s["normalizeClass"])(Object(s["unref"])(o).e("separator")),role:"presentation"},Object(s["toDisplayString"])(null==(a=Object(s["unref"])(r))?void 0:a.separator),3))],2)}}});var gn=Object(h["a"])(vn,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb-item.vue"]]);const _n=Object(k["a"])(fn,{BreadcrumbItem:gn}),yn=Object(k["d"])(gn);var bn=n("cf2e"),On=n("5a0c"),Mn=n.n(On);const kn=(e,t)=>[e>0?e-1:void 0,e,e<t?e+1:void 0],Cn=e=>Array.from(Array.from({length:e}).keys()),wn=e=>e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),In=e=>e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),Sn=function(e,t){const n=Object(Q["isDate"])(e),r=Object(Q["isDate"])(t);return n&&r?e.getTime()===t.getTime():!n&&!r&&e===t},Tn=function(e,t){const n=Object(Q["isArray"])(e),r=Object(Q["isArray"])(t);return n&&r?e.length===t.length&&e.every((e,n)=>Sn(e,t[n])):!n&&!r&&Sn(e,t)},En=function(e,t,n){const r=Object(u["c"])(t)||"x"===t?Mn()(e).locale(n):Mn()(e,t).locale(n);return r.isValid()?r:void 0},jn=function(e,t,n){return Object(u["c"])(t)?e:"x"===t?+e:Mn()(e).locale(n).format(t)},Dn=(e,t)=>{var n;const r=[],o=null==t?void 0:t();for(let a=0;a<e;a++)r.push(null!=(n=null==o?void 0:o.includes(a))&&n);return r},Ln=(e,t)=>{const n=e.subtract(1,"month").endOf("month").date();return Cn(t).map((e,r)=>n-(t-r-1))},An=e=>{const t=e.daysInMonth();return Cn(t).map((e,t)=>t+1)},Nn=e=>Cn(e.length/7).map(t=>{const n=7*t;return e.slice(n,n+7)}),xn=Object(l["b"])({selectedDay:{type:Object(l["c"])(Object)},range:{type:Object(l["c"])(Array)},date:{type:Object(l["c"])(Object),required:!0},hideHeader:{type:Boolean}}),Rn={pick:e=>Object(Q["isObject"])(e)};var Pn=n("5e0f"),Un=n.n(Pn),Vn=n("4cb3"),Bn=n("6806");const Fn=(e,t)=>{Mn.a.extend(Un.a);const n=Mn.a.localeData().firstDayOfWeek(),{t:r,lang:o}=Object(Vn["b"])(),a=Mn()().locale(o.value),i=Object(s["computed"])(()=>!!e.range&&!!e.range.length),c=Object(s["computed"])(()=>{let t=[];if(i.value){const[n,r]=e.range,o=Cn(r.date()-n.date()+1).map(e=>({text:n.date()+e,type:"current"}));let a=o.length%7;a=0===a?0:7-a;const i=Cn(a).map((e,t)=>({text:t+1,type:"next"}));t=o.concat(i)}else{const r=e.date.startOf("month").day(),o=Ln(e.date,(r-n+7)%7).map(e=>({text:e,type:"prev"})),a=An(e.date).map(e=>({text:e,type:"current"}));t=[...o,...a];const i=7-(t.length%7||7),s=Cn(i).map((e,t)=>({text:t+1,type:"next"}));t=t.concat(s)}return Nn(t)}),l=Object(s["computed"])(()=>{const e=n;return 0===e?Bn["a"].map(e=>r("el.datepicker.weeks."+e)):Bn["a"].slice(e).concat(Bn["a"].slice(0,e)).map(e=>r("el.datepicker.weeks."+e))}),u=(t,n)=>{switch(n){case"prev":return e.date.startOf("month").subtract(1,"month").date(t);case"next":return e.date.startOf("month").add(1,"month").date(t);case"current":return e.date.date(t)}},d=({text:e,type:n})=>{const r=u(e,n);t("pick",r)},p=({text:t,type:n})=>{const r=u(t,n);return{isSelected:r.isSame(e.selectedDay),type:n+"-month",day:r.format("YYYY-MM-DD"),date:r.toDate()}};return{now:a,isInRange:i,rows:c,weekDays:l,getFormattedDate:u,handlePickDay:d,getSlotData:p}},Gn={key:0},zn=["onClick"],Hn=Object(s["defineComponent"])({name:"DateTable"}),Yn=Object(s["defineComponent"])({...Hn,props:xn,emits:Rn,setup(e,{expose:t,emit:n}){const r=e,{isInRange:o,now:a,rows:i,weekDays:c,getFormattedDate:l,handlePickDay:u,getSlotData:d}=Fn(r,n),p=Object(m["d"])("calendar-table"),f=Object(m["d"])("calendar-day"),h=({text:e,type:t})=>{const n=[t];if("current"===t){const o=l(e,t);o.isSame(r.selectedDay,"day")&&n.push(f.is("selected")),o.isSame(a,"day")&&n.push(f.is("today"))}return n};return t({getFormattedDate:l}),(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("table",{class:Object(s["normalizeClass"])([Object(s["unref"])(p).b(),Object(s["unref"])(p).is("range",Object(s["unref"])(o))]),cellspacing:"0",cellpadding:"0"},[e.hideHeader?Object(s["createCommentVNode"])("v-if",!0):(Object(s["openBlock"])(),Object(s["createElementBlock"])("thead",Gn,[(Object(s["openBlock"])(!0),Object(s["createElementBlock"])(s["Fragment"],null,Object(s["renderList"])(Object(s["unref"])(c),e=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("th",{key:e},Object(s["toDisplayString"])(e),1))),128))])),Object(s["createElementVNode"])("tbody",null,[(Object(s["openBlock"])(!0),Object(s["createElementBlock"])(s["Fragment"],null,Object(s["renderList"])(Object(s["unref"])(i),(t,n)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("tr",{key:n,class:Object(s["normalizeClass"])({[Object(s["unref"])(p).e("row")]:!0,[Object(s["unref"])(p).em("row","hide-border")]:0===n&&e.hideHeader})},[(Object(s["openBlock"])(!0),Object(s["createElementBlock"])(s["Fragment"],null,Object(s["renderList"])(t,(t,n)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("td",{key:n,class:Object(s["normalizeClass"])(h(t)),onClick:e=>Object(s["unref"])(u)(t)},[Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(f).b())},[Object(s["renderSlot"])(e.$slots,"date-cell",{data:Object(s["unref"])(d)(t)},()=>[Object(s["createElementVNode"])("span",null,Object(s["toDisplayString"])(t.text),1)])],2)],10,zn))),128))],2))),128))])],2))}});var qn=Object(h["a"])(Yn,[["__file","/home/runner/work/element-plus/element-plus/packages/components/calendar/src/date-table.vue"]]),Wn=n("344d");const Kn=(e,t)=>{const n=e.endOf("month"),r=t.startOf("month"),o=n.isSame(r,"week"),a=o?r.add(1,"week"):r;return[[e,n],[a.startOf("week"),t]]},$n=(e,t)=>{const n=e.endOf("month"),r=e.add(1,"month").startOf("month"),o=n.isSame(r,"week")?r.add(1,"week"):r,a=o.endOf("month"),i=t.startOf("month"),s=a.isSame(i,"week")?i.add(1,"week"):i;return[[e,n],[o.startOf("week"),a],[s.startOf("week"),t]]},Jn=(e,t,n)=>{const r=Object(s["useSlots"])(),{lang:o}=Object(Vn["b"])(),a=Object(s["ref"])(),i=Mn()().locale(o.value),c=Object(s["computed"])({get(){return e.modelValue?u.value:a.value},set(e){if(!e)return;a.value=e;const n=e.toDate();t(d["b"],n),t(d["c"],n)}}),l=Object(s["computed"])(()=>{if(!e.range)return[];const t=e.range.map(e=>Mn()(e).locale(o.value)),[r,a]=t;return r.isAfter(a)?(Object(g["a"])(n,"end time should be greater than start time"),[]):r.isSame(a,"month")?v(r,a):r.add(1,"month").month()!==a.month()?(Object(g["a"])(n,"start time and end time interval must not exceed two months"),[]):v(r,a)}),u=Object(s["computed"])(()=>e.modelValue?Mn()(e.modelValue).locale(o.value):c.value||(l.value.length?l.value[0][0]:i)),p=Object(s["computed"])(()=>u.value.subtract(1,"month").date(1)),f=Object(s["computed"])(()=>u.value.add(1,"month").date(1)),h=Object(s["computed"])(()=>u.value.subtract(1,"year").date(1)),m=Object(s["computed"])(()=>u.value.add(1,"year").date(1)),v=(e,t)=>{const r=e.startOf("week"),o=t.endOf("week"),a=r.get("month"),i=o.get("month");return a===i?[[r,o]]:(a+1)%12===i?Kn(r,o):a+2===i||(a+1)%11===i?$n(r,o):(Object(g["a"])(n,"start time and end time interval must not exceed two months"),[])},_=e=>{c.value=e},y=e=>{const t={"prev-month":p.value,"next-month":f.value,"prev-year":h.value,"next-year":m.value,today:i},n=t[e];n.isSame(u.value,"day")||_(n)};return Object(Wn["a"])({from:'"dateCell"',replacement:'"date-cell"',scope:"ElCalendar",version:"2.3.0",ref:"https://element-plus.org/en-US/component/calendar.html#slots",type:"Slot"},Object(s["computed"])(()=>!!r.dateCell)),{calculateValidatedDateRange:v,date:u,realSelectedDay:c,pickDay:_,selectDate:y,validatedRange:l}},Qn=e=>Object(Q["isArray"])(e)&&2===e.length&&e.every(e=>Object(Q["isDate"])(e)),Xn=Object(l["b"])({modelValue:{type:Date},range:{type:Object(l["c"])(Array),validator:Qn}}),Zn={[d["c"]]:e=>Object(Q["isDate"])(e),[d["b"]]:e=>Object(Q["isDate"])(e)},er="ElCalendar",tr=Object(s["defineComponent"])({name:er}),nr=Object(s["defineComponent"])({...tr,props:Xn,emits:Zn,setup(e,{expose:t,emit:n}){const r=e,o=Object(m["d"])("calendar"),{calculateValidatedDateRange:a,date:i,pickDay:c,realSelectedDay:l,selectDate:u,validatedRange:d}=Jn(r,n,er),{t:p}=Object(Vn["b"])(),f=Object(s["computed"])(()=>{const e="el.datepicker.month"+i.value.format("M");return`${i.value.year()} ${p("el.datepicker.year")} ${p(e)}`});return t({selectedDay:l,pickDay:c,selectDate:u,calculateValidatedDateRange:a}),(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(o).b())},[Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(o).e("header"))},[Object(s["renderSlot"])(e.$slots,"header",{date:Object(s["unref"])(f)},()=>[Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(o).e("title"))},Object(s["toDisplayString"])(Object(s["unref"])(f)),3),0===Object(s["unref"])(d).length?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:0,class:Object(s["normalizeClass"])(Object(s["unref"])(o).e("button-group"))},[Object(s["createVNode"])(Object(s["unref"])(bn["b"]),null,{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(Object(s["unref"])(bn["a"]),{size:"small",onClick:t[0]||(t[0]=e=>Object(s["unref"])(u)("prev-month"))},{default:Object(s["withCtx"])(()=>[Object(s["createTextVNode"])(Object(s["toDisplayString"])(Object(s["unref"])(p)("el.datepicker.prevMonth")),1)]),_:1}),Object(s["createVNode"])(Object(s["unref"])(bn["a"]),{size:"small",onClick:t[1]||(t[1]=e=>Object(s["unref"])(u)("today"))},{default:Object(s["withCtx"])(()=>[Object(s["createTextVNode"])(Object(s["toDisplayString"])(Object(s["unref"])(p)("el.datepicker.today")),1)]),_:1}),Object(s["createVNode"])(Object(s["unref"])(bn["a"]),{size:"small",onClick:t[2]||(t[2]=e=>Object(s["unref"])(u)("next-month"))},{default:Object(s["withCtx"])(()=>[Object(s["createTextVNode"])(Object(s["toDisplayString"])(Object(s["unref"])(p)("el.datepicker.nextMonth")),1)]),_:1})]),_:1})],2)):Object(s["createCommentVNode"])("v-if",!0)])],2),0===Object(s["unref"])(d).length?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:0,class:Object(s["normalizeClass"])(Object(s["unref"])(o).e("body"))},[Object(s["createVNode"])(qn,{date:Object(s["unref"])(i),"selected-day":Object(s["unref"])(l),onPick:Object(s["unref"])(c)},Object(s["createSlots"])({_:2},[e.$slots["date-cell"]||e.$slots.dateCell?{name:"date-cell",fn:Object(s["withCtx"])(t=>[e.$slots["date-cell"]?Object(s["renderSlot"])(e.$slots,"date-cell",Object(s["normalizeProps"])(Object(s["mergeProps"])({key:0},t))):Object(s["renderSlot"])(e.$slots,"dateCell",Object(s["normalizeProps"])(Object(s["mergeProps"])({key:1},t)))])}:void 0]),1032,["date","selected-day","onPick"])],2)):(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:1,class:Object(s["normalizeClass"])(Object(s["unref"])(o).e("body"))},[(Object(s["openBlock"])(!0),Object(s["createElementBlock"])(s["Fragment"],null,Object(s["renderList"])(Object(s["unref"])(d),(t,n)=>(Object(s["openBlock"])(),Object(s["createBlock"])(qn,{key:n,date:t[0],"selected-day":Object(s["unref"])(l),range:t,"hide-header":0!==n,onPick:Object(s["unref"])(c)},Object(s["createSlots"])({_:2},[e.$slots["date-cell"]||e.$slots.dateCell?{name:"date-cell",fn:Object(s["withCtx"])(t=>[e.$slots["date-cell"]?Object(s["renderSlot"])(e.$slots,"date-cell",Object(s["normalizeProps"])(Object(s["mergeProps"])({key:0},t))):Object(s["renderSlot"])(e.$slots,"dateCell",Object(s["normalizeProps"])(Object(s["mergeProps"])({key:1},t)))])}:void 0]),1032,["date","selected-day","range","hide-header","onPick"]))),128))],2))],2))}});var rr=Object(h["a"])(nr,[["__file","/home/runner/work/element-plus/element-plus/packages/components/calendar/src/calendar.vue"]]);const or=Object(k["a"])(rr),ar=Object(l["b"])({header:{type:String,default:""},bodyStyle:{type:Object(l["c"])([String,Object,Array]),default:""},shadow:{type:String,values:["always","hover","never"],default:"always"}}),ir=Object(s["defineComponent"])({name:"ElCard"}),sr=Object(s["defineComponent"])({...ir,props:ar,setup(e){const t=Object(m["d"])("card");return(e,n)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{class:Object(s["normalizeClass"])([Object(s["unref"])(t).b(),Object(s["unref"])(t).is(e.shadow+"-shadow")])},[e.$slots.header||e.header?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:0,class:Object(s["normalizeClass"])(Object(s["unref"])(t).e("header"))},[Object(s["renderSlot"])(e.$slots,"header",{},()=>[Object(s["createTextVNode"])(Object(s["toDisplayString"])(e.header),1)])],2)):Object(s["createCommentVNode"])("v-if",!0),Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(t).e("body")),style:Object(s["normalizeStyle"])(e.bodyStyle)},[Object(s["renderSlot"])(e.$slots,"default")],6)],2))}});var cr=Object(h["a"])(sr,[["__file","/home/runner/work/element-plus/element-plus/packages/components/card/src/card.vue"]]);const lr=Object(k["a"])(cr),ur=Object(l["b"])({initialIndex:{type:Number,default:0},height:{type:String,default:""},trigger:{type:String,values:["hover","click"],default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:{type:String,values:["","none","outside"],default:""},arrow:{type:String,values:["always","hover","never"],default:"hover"},type:{type:String,values:["","card"],default:""},loop:{type:Boolean,default:!0},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},pauseOnHover:{type:Boolean,default:!0}}),dr={change:(e,t)=>[e,t].every(u["d"])},pr=Symbol("carouselContextKey");var fr=n("9215");const hr=(e,t,n)=>{const r=Object(fr["c"])(e.subTree).filter(e=>{var n;return Object(s["isVNode"])(e)&&(null==(n=e.type)?void 0:n.name)===t&&!!e.component}),o=r.map(e=>e.component.uid);return o.map(e=>n[e]).filter(e=>!!e)},mr=(e,t)=>{const n={},r=Object(s["shallowRef"])([]),o=o=>{n[o.uid]=o,r.value=hr(e,t,n)},a=e=>{delete n[e],r.value=r.value.filter(t=>t.uid!==e)};return{children:r,addChild:o,removeChild:a}},vr=300,gr=(e,t,n)=>{const{children:r,addChild:o,removeChild:a}=mr(Object(s["getCurrentInstance"])(),"ElCarouselItem"),i=Object(s["ref"])(-1),l=Object(s["ref"])(null),u=Object(s["ref"])(!1),d=Object(s["ref"])(),p=Object(s["ref"])(0),f=Object(s["computed"])(()=>"never"!==e.arrow&&!Object(s["unref"])(v)),h=Object(s["computed"])(()=>r.value.some(e=>e.props.label.toString().length>0)),m=Object(s["computed"])(()=>"card"===e.type),v=Object(s["computed"])(()=>"vertical"===e.direction),_=Object(s["computed"])(()=>"auto"!==e.height?{height:e.height}:{height:p.value+"px",overflow:"hidden"}),y=Object(x["throttle"])(e=>{C(e)},vr,{trailing:!0}),b=Object(x["throttle"])(e=>{L(e)},vr);function O(){l.value&&(clearInterval(l.value),l.value=null)}function M(){e.interval<=0||!e.autoplay||l.value||(l.value=setInterval(()=>k(),e.interval))}const k=()=>{i.value<r.value.length-1?i.value=i.value+1:e.loop&&(i.value=0)};function C(t){if(Object(Q["isString"])(t)){const e=r.value.filter(e=>e.props.name===t);e.length>0&&(t=r.value.indexOf(e[0]))}if(t=Number(t),Number.isNaN(t)||t!==Math.floor(t))return void Object(g["a"])(n,"index must be integer.");const o=r.value.length,a=i.value;i.value=t<0?e.loop?o-1:0:t>=o?e.loop?0:o-1:t,a===i.value&&w(a),R()}function w(e){r.value.forEach((t,n)=>{t.translateItem(n,i.value,e)})}function I(e,t){var n,o,a,i;const c=Object(s["unref"])(r),l=c.length;if(0===l||!e.states.inStage)return!1;const u=t+1,d=t-1,p=l-1,f=c[p].states.active,h=c[0].states.active,m=null==(o=null==(n=c[u])?void 0:n.states)?void 0:o.active,v=null==(i=null==(a=c[d])?void 0:a.states)?void 0:i.active;return t===p&&h||m?"left":!!(0===t&&f||v)&&"right"}function S(){u.value=!0,e.pauseOnHover&&O()}function T(){u.value=!1,M()}function E(e){Object(s["unref"])(v)||r.value.forEach((t,n)=>{e===I(t,n)&&(t.states.hover=!0)})}function j(){Object(s["unref"])(v)||r.value.forEach(e=>{e.states.hover=!1})}function D(e){i.value=e}function L(t){"hover"===e.trigger&&t!==i.value&&(i.value=t)}function A(){C(i.value-1)}function N(){C(i.value+1)}function R(){O(),M()}function P(t){"auto"===e.height&&(p.value=t)}Object(s["watch"])(()=>i.value,(e,n)=>{w(n),n>-1&&t("change",e,n)}),Object(s["watch"])(()=>e.autoplay,e=>{e?M():O()}),Object(s["watch"])(()=>e.loop,()=>{C(i.value)}),Object(s["watch"])(()=>e.interval,()=>{R()}),Object(s["watch"])(()=>r.value,()=>{r.value.length>0&&C(e.initialIndex)});const U=Object(s["shallowRef"])();return Object(s["onMounted"])(()=>{U.value=Object(c["useResizeObserver"])(d.value,()=>{w()}),M()}),Object(s["onBeforeUnmount"])(()=>{O(),d.value&&U.value&&U.value.stop()}),Object(s["provide"])(pr,{root:d,isCardType:m,isVertical:v,items:r,loop:e.loop,addItem:o,removeItem:a,setActiveItem:C,setContainerHeight:P}),{root:d,activeIndex:i,arrowDisplay:f,hasLabel:h,hover:u,isCardType:m,items:r,isVertical:v,containerStyle:_,handleButtonEnter:E,handleButtonLeave:j,handleIndicatorClick:D,handleMouseEnter:S,handleMouseLeave:T,setActiveItem:C,prev:A,next:N,throttledArrowClick:y,throttledIndicatorHover:b}},_r=["onMouseenter","onClick"],yr={key:0},br="ElCarousel",Or=Object(s["defineComponent"])({name:br}),Mr=Object(s["defineComponent"])({...Or,props:ur,emits:dr,setup(e,{expose:t,emit:n}){const r=e,{root:o,activeIndex:a,arrowDisplay:i,hasLabel:c,hover:l,isCardType:u,items:d,isVertical:p,containerStyle:f,handleButtonEnter:h,handleButtonLeave:v,handleIndicatorClick:g,handleMouseEnter:_,handleMouseLeave:y,setActiveItem:b,prev:O,next:M,throttledArrowClick:k,throttledIndicatorHover:C}=gr(r,n,br),I=Object(m["d"])("carousel"),S=Object(s["computed"])(()=>{const e=[I.b(),I.m(r.direction)];return Object(s["unref"])(u)&&e.push(I.m("card")),e}),T=Object(s["computed"])(()=>{const e=[I.e("indicators"),I.em("indicators",r.direction)];return Object(s["unref"])(c)&&e.push(I.em("indicators","labels")),"outside"===r.indicatorPosition&&e.push(I.em("indicators","outside")),Object(s["unref"])(p)&&e.push(I.em("indicators","right")),e});return t({setActiveItem:b,prev:O,next:M}),(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{ref_key:"root",ref:o,class:Object(s["normalizeClass"])(Object(s["unref"])(S)),onMouseenter:t[6]||(t[6]=Object(s["withModifiers"])((...e)=>Object(s["unref"])(_)&&Object(s["unref"])(_)(...e),["stop"])),onMouseleave:t[7]||(t[7]=Object(s["withModifiers"])((...e)=>Object(s["unref"])(y)&&Object(s["unref"])(y)(...e),["stop"]))},[Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(I).e("container")),style:Object(s["normalizeStyle"])(Object(s["unref"])(f))},[Object(s["unref"])(i)?(Object(s["openBlock"])(),Object(s["createBlock"])(s["Transition"],{key:0,name:"carousel-arrow-left",persisted:""},{default:Object(s["withCtx"])(()=>[Object(s["withDirectives"])(Object(s["createElementVNode"])("button",{type:"button",class:Object(s["normalizeClass"])([Object(s["unref"])(I).e("arrow"),Object(s["unref"])(I).em("arrow","left")]),onMouseenter:t[0]||(t[0]=e=>Object(s["unref"])(h)("left")),onMouseleave:t[1]||(t[1]=(...e)=>Object(s["unref"])(v)&&Object(s["unref"])(v)(...e)),onClick:t[2]||(t[2]=Object(s["withModifiers"])(e=>Object(s["unref"])(k)(Object(s["unref"])(a)-1),["stop"]))},[Object(s["createVNode"])(Object(s["unref"])(w["a"]),null,{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(Object(s["unref"])(R["ArrowLeft"]))]),_:1})],34),[[s["vShow"],("always"===e.arrow||Object(s["unref"])(l))&&(r.loop||Object(s["unref"])(a)>0)]])]),_:1})):Object(s["createCommentVNode"])("v-if",!0),Object(s["unref"])(i)?(Object(s["openBlock"])(),Object(s["createBlock"])(s["Transition"],{key:1,name:"carousel-arrow-right",persisted:""},{default:Object(s["withCtx"])(()=>[Object(s["withDirectives"])(Object(s["createElementVNode"])("button",{type:"button",class:Object(s["normalizeClass"])([Object(s["unref"])(I).e("arrow"),Object(s["unref"])(I).em("arrow","right")]),onMouseenter:t[3]||(t[3]=e=>Object(s["unref"])(h)("right")),onMouseleave:t[4]||(t[4]=(...e)=>Object(s["unref"])(v)&&Object(s["unref"])(v)(...e)),onClick:t[5]||(t[5]=Object(s["withModifiers"])(e=>Object(s["unref"])(k)(Object(s["unref"])(a)+1),["stop"]))},[Object(s["createVNode"])(Object(s["unref"])(w["a"]),null,{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(Object(s["unref"])(R["ArrowRight"]))]),_:1})],34),[[s["vShow"],("always"===e.arrow||Object(s["unref"])(l))&&(r.loop||Object(s["unref"])(a)<Object(s["unref"])(d).length-1)]])]),_:1})):Object(s["createCommentVNode"])("v-if",!0),Object(s["renderSlot"])(e.$slots,"default")],6),"none"!==e.indicatorPosition?(Object(s["openBlock"])(),Object(s["createElementBlock"])("ul",{key:0,class:Object(s["normalizeClass"])(Object(s["unref"])(T))},[(Object(s["openBlock"])(!0),Object(s["createElementBlock"])(s["Fragment"],null,Object(s["renderList"])(Object(s["unref"])(d),(t,n)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("li",{key:n,class:Object(s["normalizeClass"])([Object(s["unref"])(I).e("indicator"),Object(s["unref"])(I).em("indicator",e.direction),Object(s["unref"])(I).is("active",n===Object(s["unref"])(a))]),onMouseenter:e=>Object(s["unref"])(C)(n),onClick:Object(s["withModifiers"])(e=>Object(s["unref"])(g)(n),["stop"])},[Object(s["createElementVNode"])("button",{class:Object(s["normalizeClass"])(Object(s["unref"])(I).e("button"))},[Object(s["unref"])(c)?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",yr,Object(s["toDisplayString"])(t.props.label),1)):Object(s["createCommentVNode"])("v-if",!0)],2)],42,_r))),128))],2)):Object(s["createCommentVNode"])("v-if",!0)],34))}});var kr=Object(h["a"])(Mr,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel.vue"]]);const Cr=Object(l["b"])({name:{type:String,default:""},label:{type:[String,Number],default:""}}),wr=(e,t)=>{const n=Object(s["inject"])(pr),r=Object(s["getCurrentInstance"])();n||Object(g["a"])(t,"usage: <el-carousel></el-carousel-item></el-carousel>"),r||Object(g["a"])(t,"compositional hook can only be invoked inside setups");const o=.83,a=Object(s["ref"])(),i=Object(s["ref"])(!1),c=Object(s["ref"])(0),l=Object(s["ref"])(1),d=Object(s["ref"])(!1),p=Object(s["ref"])(!1),f=Object(s["ref"])(!1),h=Object(s["ref"])(!1),{isCardType:m,isVertical:v}=n;function _(e,t,n){const r=n-1,o=t-1,a=t+1,i=n/2;return 0===t&&e===r?-1:t===r&&0===e?n:e<o&&t-e>=i?n+1:e>a&&e-t>=i?-2:e}function y(e,t){var r,a;const i=Object(s["unref"])(v)?(null==(r=n.root.value)?void 0:r.offsetHeight)||0:(null==(a=n.root.value)?void 0:a.offsetWidth)||0;return f.value?i*((2-o)*(e-t)+1)/4:e<t?-(1+o)*i/4:(3+o)*i/4}function b(e,t,r){const o=n.root.value;if(!o)return 0;const a=(r?o.offsetHeight:o.offsetWidth)||0;return a*(e-t)}const O=(e,t,r)=>{var i;const g=Object(s["unref"])(m),O=null!=(i=n.items.value.length)?i:Number.NaN,M=e===t;g||Object(u["g"])(r)||(h.value=M||e===r),!M&&O>2&&n.loop&&(e=_(e,t,O));const k=Object(s["unref"])(v);d.value=M,g?(f.value=Math.round(Math.abs(e-t))<=1,c.value=y(e,t),l.value=Object(s["unref"])(d)?1:o):c.value=b(e,t,k),p.value=!0,M&&a.value&&n.setContainerHeight(a.value.offsetHeight)};function M(){if(n&&Object(s["unref"])(m)){const e=n.items.value.findIndex(({uid:e})=>e===r.uid);n.setActiveItem(e)}}return Object(s["onMounted"])(()=>{n.addItem({props:e,states:Object(s["reactive"])({hover:i,translate:c,scale:l,active:d,ready:p,inStage:f,animating:h}),uid:r.uid,translateItem:O})}),Object(s["onUnmounted"])(()=>{n.removeItem(r.uid)}),{carouselItemRef:a,active:d,animating:h,hover:i,inStage:f,isVertical:v,translate:c,isCardType:m,scale:l,ready:p,handleItemClick:M}},Ir="ElCarouselItem",Sr=Object(s["defineComponent"])({name:"ElCarouselItem"}),Tr=Object(s["defineComponent"])({...Sr,props:Cr,setup(e){const t=e,n=Object(m["d"])("carousel"),{carouselItemRef:r,active:o,animating:a,hover:i,inStage:c,isVertical:l,translate:u,isCardType:d,scale:p,ready:f,handleItemClick:h}=wr(t,Ir),v=Object(s["computed"])(()=>{const e="translate"+(Object(s["unref"])(l)?"Y":"X"),t=`${e}(${Object(s["unref"])(u)}px)`,n=`scale(${Object(s["unref"])(p)})`,r=[t,n].join(" ");return{transform:r}});return(e,t)=>Object(s["withDirectives"])((Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{ref_key:"carouselItemRef",ref:r,class:Object(s["normalizeClass"])([Object(s["unref"])(n).e("item"),Object(s["unref"])(n).is("active",Object(s["unref"])(o)),Object(s["unref"])(n).is("in-stage",Object(s["unref"])(c)),Object(s["unref"])(n).is("hover",Object(s["unref"])(i)),Object(s["unref"])(n).is("animating",Object(s["unref"])(a)),{[Object(s["unref"])(n).em("item","card")]:Object(s["unref"])(d),[Object(s["unref"])(n).em("item","card-vertical")]:Object(s["unref"])(d)&&Object(s["unref"])(l)}]),style:Object(s["normalizeStyle"])(Object(s["unref"])(v)),onClick:t[0]||(t[0]=(...e)=>Object(s["unref"])(h)&&Object(s["unref"])(h)(...e))},[Object(s["unref"])(d)?Object(s["withDirectives"])((Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:0,class:Object(s["normalizeClass"])(Object(s["unref"])(n).e("mask"))},null,2)),[[s["vShow"],!Object(s["unref"])(o)]]):Object(s["createCommentVNode"])("v-if",!0),Object(s["renderSlot"])(e.$slots,"default")],6)),[[s["vShow"],Object(s["unref"])(f)]])}});var Er=Object(h["a"])(Tr,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel-item.vue"]]);const jr=Object(k["a"])(kr,{CarouselItem:Er}),Dr=Object(k["d"])(Er);var Lr=n("27b6");const Ar={modelValue:{type:[Number,String,Boolean],default:void 0},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:Lr["c"],tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},Nr={[d["c"]]:e=>Object(Q["isString"])(e)||Object(u["d"])(e)||Object(u["a"])(e),change:e=>Object(Q["isString"])(e)||Object(u["d"])(e)||Object(u["a"])(e)},xr=Symbol("checkboxGroupContextKey"),Rr=({model:e,isChecked:t})=>{const n=Object(s["inject"])(xr,void 0),r=Object(s["computed"])(()=>{var r,o;const a=null==(r=null==n?void 0:n.max)?void 0:r.value,i=null==(o=null==n?void 0:n.min)?void 0:o.value;return!Object(u["g"])(a)&&e.value.length>=a&&!t.value||!Object(u["g"])(i)&&e.value.length<=i&&t.value}),o=Object(xt["a"])(Object(s["computed"])(()=>(null==n?void 0:n.disabled.value)||r.value));return{isDisabled:o,isLimitDisabled:r}};var Pr=n("8cf4");const Ur=(e,{model:t,isLimitExceeded:n,hasOwnLabel:r,isDisabled:o,isLabeledByFormItem:a})=>{const i=Object(s["inject"])(xr,void 0),{formItem:c}=Object(Pr["a"])(),{emit:l}=Object(s["getCurrentInstance"])();function u(t){var n,r;return t===e.trueLabel||!0===t?null==(n=e.trueLabel)||n:null!=(r=e.falseLabel)&&r}function d(e,t){l("change",u(e),t)}function p(e){if(n.value)return;const t=e.target;l("change",u(t.checked),e)}async function f(i){if(!n.value&&!r.value&&!o.value&&a.value){const n=i.composedPath(),r=n.some(e=>"LABEL"===e.tagName);r||(t.value=u([!1,e.falseLabel].includes(t.value)),await Object(s["nextTick"])(),d(t.value,i))}}const h=Object(s["computed"])(()=>(null==i?void 0:i.validateEvent)||e.validateEvent);return Object(s["watch"])(()=>e.modelValue,()=>{h.value&&(null==c||c.validate("change").catch(e=>Object(g["a"])(e)))}),{handleChange:p,onClickRoot:f}},Vr=e=>{const t=Object(s["ref"])(!1),{emit:n}=Object(s["getCurrentInstance"])(),r=Object(s["inject"])(xr,void 0),o=Object(s["computed"])(()=>!1===Object(u["g"])(r)),a=Object(s["ref"])(!1),i=Object(s["computed"])({get(){var n,a;return o.value?null==(n=null==r?void 0:r.modelValue)?void 0:n.value:null!=(a=e.modelValue)?a:t.value},set(e){var i,s;o.value&&Object(Q["isArray"])(e)?(a.value=void 0!==(null==(i=null==r?void 0:r.max)?void 0:i.value)&&e.length>(null==r?void 0:r.max.value),!1===a.value&&(null==(s=null==r?void 0:r.changeEvent)||s.call(r,e))):(n(d["c"],e),t.value=e)}});return{model:i,isGroup:o,isLimitExceeded:a}},Br=(e,t,{model:n})=>{const r=Object(s["inject"])(xr,void 0),o=Object(s["ref"])(!1),a=Object(s["computed"])(()=>{const t=n.value;return Object(u["a"])(t)?t:Object(Q["isArray"])(t)?Object(Q["isObject"])(e.label)?t.map(s["toRaw"]).some(t=>Object(x["isEqual"])(t,e.label)):t.map(s["toRaw"]).includes(e.label):null!==t&&void 0!==t?t===e.trueLabel:!!t}),i=Object(xt["b"])(Object(s["computed"])(()=>{var e;return null==(e=null==r?void 0:r.size)?void 0:e.value}),{prop:!0}),c=Object(xt["b"])(Object(s["computed"])(()=>{var e;return null==(e=null==r?void 0:r.size)?void 0:e.value})),l=Object(s["computed"])(()=>!(!t.default&&!e.label));return{checkboxButtonSize:i,isChecked:a,isFocused:o,checkboxSize:c,hasOwnLabel:l}},Fr=(e,{model:t})=>{function n(){Object(Q["isArray"])(t.value)&&!t.value.includes(e.label)?t.value.push(e.label):t.value=e.trueLabel||!0}e.checked&&n()},Gr=(e,t)=>{const{formItem:n}=Object(Pr["a"])(),{model:r,isGroup:o,isLimitExceeded:a}=Vr(e),{isFocused:i,isChecked:s,checkboxButtonSize:c,checkboxSize:l,hasOwnLabel:u}=Br(e,t,{model:r}),{isDisabled:d}=Rr({model:r,isChecked:s}),{inputId:p,isLabeledByFormItem:f}=Object(Pr["b"])(e,{formItemContext:n,disableIdGeneration:u,disableIdManagement:o}),{handleChange:h,onClickRoot:m}=Ur(e,{model:r,isLimitExceeded:a,hasOwnLabel:u,isDisabled:d,isLabeledByFormItem:f});return Fr(e,{model:r}),{inputId:p,isLabeledByFormItem:f,isChecked:s,isDisabled:d,isFocused:i,checkboxButtonSize:c,checkboxSize:l,hasOwnLabel:u,model:r,handleChange:h,onClickRoot:m}},zr=["tabindex","role","aria-checked"],Hr=["id","aria-hidden","name","tabindex","disabled","true-value","false-value"],Yr=["id","aria-hidden","disabled","value","name","tabindex"],qr=Object(s["defineComponent"])({name:"ElCheckbox"}),Wr=Object(s["defineComponent"])({...qr,props:Ar,emits:Nr,setup(e){const t=e,n=Object(s["useSlots"])(),{inputId:r,isLabeledByFormItem:o,isChecked:a,isDisabled:i,isFocused:c,checkboxSize:l,hasOwnLabel:u,model:d,handleChange:p,onClickRoot:f}=Gr(t,n),h=Object(m["d"])("checkbox"),v=Object(s["computed"])(()=>[h.b(),h.m(l.value),h.is("disabled",i.value),h.is("bordered",t.border),h.is("checked",a.value)]),g=Object(s["computed"])(()=>[h.e("input"),h.is("disabled",i.value),h.is("checked",a.value),h.is("indeterminate",t.indeterminate),h.is("focus",c.value)]);return(e,t)=>(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["resolveDynamicComponent"])(!Object(s["unref"])(u)&&Object(s["unref"])(o)?"span":"label"),{class:Object(s["normalizeClass"])(Object(s["unref"])(v)),"aria-controls":e.indeterminate?e.controls:null,onClick:Object(s["unref"])(f)},{default:Object(s["withCtx"])(()=>[Object(s["createElementVNode"])("span",{class:Object(s["normalizeClass"])(Object(s["unref"])(g)),tabindex:e.indeterminate?0:void 0,role:e.indeterminate?"checkbox":void 0,"aria-checked":e.indeterminate?"mixed":void 0},[e.trueLabel||e.falseLabel?Object(s["withDirectives"])((Object(s["openBlock"])(),Object(s["createElementBlock"])("input",{key:0,id:Object(s["unref"])(r),"onUpdate:modelValue":t[0]||(t[0]=e=>Object(s["isRef"])(d)?d.value=e:null),class:Object(s["normalizeClass"])(Object(s["unref"])(h).e("original")),type:"checkbox","aria-hidden":e.indeterminate?"true":"false",name:e.name,tabindex:e.tabindex,disabled:Object(s["unref"])(i),"true-value":e.trueLabel,"false-value":e.falseLabel,onChange:t[1]||(t[1]=(...e)=>Object(s["unref"])(p)&&Object(s["unref"])(p)(...e)),onFocus:t[2]||(t[2]=e=>c.value=!0),onBlur:t[3]||(t[3]=e=>c.value=!1)},null,42,Hr)),[[s["vModelCheckbox"],Object(s["unref"])(d)]]):Object(s["withDirectives"])((Object(s["openBlock"])(),Object(s["createElementBlock"])("input",{key:1,id:Object(s["unref"])(r),"onUpdate:modelValue":t[4]||(t[4]=e=>Object(s["isRef"])(d)?d.value=e:null),class:Object(s["normalizeClass"])(Object(s["unref"])(h).e("original")),type:"checkbox","aria-hidden":e.indeterminate?"true":"false",disabled:Object(s["unref"])(i),value:e.label,name:e.name,tabindex:e.tabindex,onChange:t[5]||(t[5]=(...e)=>Object(s["unref"])(p)&&Object(s["unref"])(p)(...e)),onFocus:t[6]||(t[6]=e=>c.value=!0),onBlur:t[7]||(t[7]=e=>c.value=!1)},null,42,Yr)),[[s["vModelCheckbox"],Object(s["unref"])(d)]]),Object(s["createElementVNode"])("span",{class:Object(s["normalizeClass"])(Object(s["unref"])(h).e("inner"))},null,2)],10,zr),Object(s["unref"])(u)?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",{key:0,class:Object(s["normalizeClass"])(Object(s["unref"])(h).e("label"))},[Object(s["renderSlot"])(e.$slots,"default"),e.$slots.default?Object(s["createCommentVNode"])("v-if",!0):(Object(s["openBlock"])(),Object(s["createElementBlock"])(s["Fragment"],{key:0},[Object(s["createTextVNode"])(Object(s["toDisplayString"])(e.label),1)],64))],2)):Object(s["createCommentVNode"])("v-if",!0)]),_:3},8,["class","aria-controls","onClick"]))}});var Kr=Object(h["a"])(Wr,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue"]]);const $r=["name","tabindex","disabled","true-value","false-value"],Jr=["name","tabindex","disabled","value"],Qr=Object(s["defineComponent"])({name:"ElCheckboxButton"}),Xr=Object(s["defineComponent"])({...Qr,props:Ar,emits:Nr,setup(e){const t=e,n=Object(s["useSlots"])(),{isFocused:r,isChecked:o,isDisabled:a,checkboxButtonSize:i,model:c,handleChange:l}=Gr(t,n),u=Object(s["inject"])(xr,void 0),d=Object(m["d"])("checkbox"),p=Object(s["computed"])(()=>{var e,t,n,r;const o=null!=(t=null==(e=null==u?void 0:u.fill)?void 0:e.value)?t:"";return{backgroundColor:o,borderColor:o,color:null!=(r=null==(n=null==u?void 0:u.textColor)?void 0:n.value)?r:"",boxShadow:o?"-1px 0 0 0 "+o:void 0}}),f=Object(s["computed"])(()=>[d.b("button"),d.bm("button",i.value),d.is("disabled",a.value),d.is("checked",o.value),d.is("focus",r.value)]);return(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("label",{class:Object(s["normalizeClass"])(Object(s["unref"])(f))},[e.trueLabel||e.falseLabel?Object(s["withDirectives"])((Object(s["openBlock"])(),Object(s["createElementBlock"])("input",{key:0,"onUpdate:modelValue":t[0]||(t[0]=e=>Object(s["isRef"])(c)?c.value=e:null),class:Object(s["normalizeClass"])(Object(s["unref"])(d).be("button","original")),type:"checkbox",name:e.name,tabindex:e.tabindex,disabled:Object(s["unref"])(a),"true-value":e.trueLabel,"false-value":e.falseLabel,onChange:t[1]||(t[1]=(...e)=>Object(s["unref"])(l)&&Object(s["unref"])(l)(...e)),onFocus:t[2]||(t[2]=e=>r.value=!0),onBlur:t[3]||(t[3]=e=>r.value=!1)},null,42,$r)),[[s["vModelCheckbox"],Object(s["unref"])(c)]]):Object(s["withDirectives"])((Object(s["openBlock"])(),Object(s["createElementBlock"])("input",{key:1,"onUpdate:modelValue":t[4]||(t[4]=e=>Object(s["isRef"])(c)?c.value=e:null),class:Object(s["normalizeClass"])(Object(s["unref"])(d).be("button","original")),type:"checkbox",name:e.name,tabindex:e.tabindex,disabled:Object(s["unref"])(a),value:e.label,onChange:t[5]||(t[5]=(...e)=>Object(s["unref"])(l)&&Object(s["unref"])(l)(...e)),onFocus:t[6]||(t[6]=e=>r.value=!0),onBlur:t[7]||(t[7]=e=>r.value=!1)},null,42,Jr)),[[s["vModelCheckbox"],Object(s["unref"])(c)]]),e.$slots.default||e.label?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",{key:2,class:Object(s["normalizeClass"])(Object(s["unref"])(d).be("button","inner")),style:Object(s["normalizeStyle"])(Object(s["unref"])(o)?Object(s["unref"])(p):void 0)},[Object(s["renderSlot"])(e.$slots,"default",{},()=>[Object(s["createTextVNode"])(Object(s["toDisplayString"])(e.label),1)])],6)):Object(s["createCommentVNode"])("v-if",!0)],2))}});var Zr=Object(h["a"])(Xr,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-button.vue"]]);const eo=Object(l["b"])({modelValue:{type:Object(l["c"])(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:Lr["c"],label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}}),to={[d["c"]]:e=>Object(Q["isArray"])(e),change:e=>Object(Q["isArray"])(e)},no=Object(s["defineComponent"])({name:"ElCheckboxGroup"}),ro=Object(s["defineComponent"])({...no,props:eo,emits:to,setup(e,{emit:t}){const n=e,r=Object(m["d"])("checkbox"),{formItem:o}=Object(Pr["a"])(),{inputId:a,isLabeledByFormItem:i}=Object(Pr["b"])(n,{formItemContext:o}),c=async e=>{t(d["c"],e),await Object(s["nextTick"])(),t("change",e)},l=Object(s["computed"])({get(){return n.modelValue},set(e){c(e)}});return Object(s["provide"])(xr,{...Object(x["pick"])(Object(s["toRefs"])(n),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:l,changeEvent:c}),Object(s["watch"])(()=>n.modelValue,()=>{n.validateEvent&&(null==o||o.validate("change").catch(e=>Object(g["a"])(e)))}),(e,t)=>{var n;return Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["resolveDynamicComponent"])(e.tag),{id:Object(s["unref"])(a),class:Object(s["normalizeClass"])(Object(s["unref"])(r).b("group")),role:"group","aria-label":Object(s["unref"])(i)?void 0:e.label||"checkbox-group","aria-labelledby":Object(s["unref"])(i)?null==(n=Object(s["unref"])(o))?void 0:n.labelId:void 0},{default:Object(s["withCtx"])(()=>[Object(s["renderSlot"])(e.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var oo=Object(h["a"])(ro,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-group.vue"]]);const ao=Object(k["a"])(Kr,{CheckboxButton:Zr,CheckboxGroup:oo}),io=Object(k["d"])(Zr),so=Object(k["d"])(oo),co=Object(l["b"])({size:Lr["c"],disabled:Boolean,label:{type:[String,Number,Boolean],default:""}}),lo=Object(l["b"])({...co,modelValue:{type:[String,Number,Boolean],default:""},name:{type:String,default:""},border:Boolean}),uo={[d["c"]]:e=>Object(Q["isString"])(e)||Object(u["d"])(e)||Object(u["a"])(e),[d["a"]]:e=>Object(Q["isString"])(e)||Object(u["d"])(e)||Object(u["a"])(e)},po=Symbol("radioGroupKey"),fo=(e,t)=>{const n=Object(s["ref"])(),r=Object(s["inject"])(po,void 0),o=Object(s["computed"])(()=>!!r),a=Object(s["computed"])({get(){return o.value?r.modelValue:e.modelValue},set(a){o.value?r.changeEvent(a):t&&t(d["c"],a),n.value.checked=e.modelValue===e.label}}),i=Object(xt["b"])(Object(s["computed"])(()=>null==r?void 0:r.size)),c=Object(xt["a"])(Object(s["computed"])(()=>null==r?void 0:r.disabled)),l=Object(s["ref"])(!1),u=Object(s["computed"])(()=>c.value||o.value&&a.value!==e.label?-1:0);return{radioRef:n,isGroup:o,radioGroup:r,focus:l,size:i,disabled:c,tabIndex:u,modelValue:a}},ho=["value","name","disabled"],mo=Object(s["defineComponent"])({name:"ElRadio"}),vo=Object(s["defineComponent"])({...mo,props:lo,emits:uo,setup(e,{emit:t}){const n=e,r=Object(m["d"])("radio"),{radioRef:o,radioGroup:a,focus:i,size:c,disabled:l,modelValue:u}=fo(n,t);function d(){Object(s["nextTick"])(()=>t("change",u.value))}return(e,t)=>{var n;return Object(s["openBlock"])(),Object(s["createElementBlock"])("label",{class:Object(s["normalizeClass"])([Object(s["unref"])(r).b(),Object(s["unref"])(r).is("disabled",Object(s["unref"])(l)),Object(s["unref"])(r).is("focus",Object(s["unref"])(i)),Object(s["unref"])(r).is("bordered",e.border),Object(s["unref"])(r).is("checked",Object(s["unref"])(u)===e.label),Object(s["unref"])(r).m(Object(s["unref"])(c))])},[Object(s["createElementVNode"])("span",{class:Object(s["normalizeClass"])([Object(s["unref"])(r).e("input"),Object(s["unref"])(r).is("disabled",Object(s["unref"])(l)),Object(s["unref"])(r).is("checked",Object(s["unref"])(u)===e.label)])},[Object(s["withDirectives"])(Object(s["createElementVNode"])("input",{ref_key:"radioRef",ref:o,"onUpdate:modelValue":t[0]||(t[0]=e=>Object(s["isRef"])(u)?u.value=e:null),class:Object(s["normalizeClass"])(Object(s["unref"])(r).e("original")),value:e.label,name:e.name||(null==(n=Object(s["unref"])(a))?void 0:n.name),disabled:Object(s["unref"])(l),type:"radio",onFocus:t[1]||(t[1]=e=>i.value=!0),onBlur:t[2]||(t[2]=e=>i.value=!1),onChange:d},null,42,ho),[[s["vModelRadio"],Object(s["unref"])(u)]]),Object(s["createElementVNode"])("span",{class:Object(s["normalizeClass"])(Object(s["unref"])(r).e("inner"))},null,2)],2),Object(s["createElementVNode"])("span",{class:Object(s["normalizeClass"])(Object(s["unref"])(r).e("label")),onKeydown:t[3]||(t[3]=Object(s["withModifiers"])(()=>{},["stop"]))},[Object(s["renderSlot"])(e.$slots,"default",{},()=>[Object(s["createTextVNode"])(Object(s["toDisplayString"])(e.label),1)])],34)],2)}}});var go=Object(h["a"])(vo,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio.vue"]]);const _o=Object(l["b"])({...co,name:{type:String,default:""}}),yo=["value","name","disabled"],bo=Object(s["defineComponent"])({name:"ElRadioButton"}),Oo=Object(s["defineComponent"])({...bo,props:_o,setup(e){const t=e,n=Object(m["d"])("radio"),{radioRef:r,focus:o,size:a,disabled:i,modelValue:c,radioGroup:l}=fo(t),u=Object(s["computed"])(()=>({backgroundColor:(null==l?void 0:l.fill)||"",borderColor:(null==l?void 0:l.fill)||"",boxShadow:(null==l?void 0:l.fill)?"-1px 0 0 0 "+l.fill:"",color:(null==l?void 0:l.textColor)||""}));return(e,t)=>{var d;return Object(s["openBlock"])(),Object(s["createElementBlock"])("label",{class:Object(s["normalizeClass"])([Object(s["unref"])(n).b("button"),Object(s["unref"])(n).is("active",Object(s["unref"])(c)===e.label),Object(s["unref"])(n).is("disabled",Object(s["unref"])(i)),Object(s["unref"])(n).is("focus",Object(s["unref"])(o)),Object(s["unref"])(n).bm("button",Object(s["unref"])(a))])},[Object(s["withDirectives"])(Object(s["createElementVNode"])("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":t[0]||(t[0]=e=>Object(s["isRef"])(c)?c.value=e:null),class:Object(s["normalizeClass"])(Object(s["unref"])(n).be("button","original-radio")),value:e.label,type:"radio",name:e.name||(null==(d=Object(s["unref"])(l))?void 0:d.name),disabled:Object(s["unref"])(i),onFocus:t[1]||(t[1]=e=>o.value=!0),onBlur:t[2]||(t[2]=e=>o.value=!1)},null,42,yo),[[s["vModelRadio"],Object(s["unref"])(c)]]),Object(s["createElementVNode"])("span",{class:Object(s["normalizeClass"])(Object(s["unref"])(n).be("button","inner")),style:Object(s["normalizeStyle"])(Object(s["unref"])(c)===e.label?Object(s["unref"])(u):{}),onKeydown:t[3]||(t[3]=Object(s["withModifiers"])(()=>{},["stop"]))},[Object(s["renderSlot"])(e.$slots,"default",{},()=>[Object(s["createTextVNode"])(Object(s["toDisplayString"])(e.label),1)])],38)],2)}}});var Mo=Object(h["a"])(Oo,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-button.vue"]]);const ko=Object(l["b"])({id:{type:String,default:void 0},size:Lr["c"],disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:""},fill:{type:String,default:""},label:{type:String,default:void 0},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0}}),Co=uo,wo=["id","aria-label","aria-labelledby"],Io=Object(s["defineComponent"])({name:"ElRadioGroup"}),So=Object(s["defineComponent"])({...Io,props:ko,emits:Co,setup(e,{emit:t}){const n=e,r=Object(m["d"])("radio"),o=Object(Ze["a"])(),a=Object(s["ref"])(),{formItem:i}=Object(Pr["a"])(),{inputId:c,isLabeledByFormItem:l}=Object(Pr["b"])(n,{formItemContext:i}),u=e=>{t(d["c"],e),Object(s["nextTick"])(()=>t("change",e))};Object(s["onMounted"])(()=>{const e=a.value.querySelectorAll("[type=radio]"),t=e[0];!Array.from(e).some(e=>e.checked)&&t&&(t.tabIndex=0)});const p=Object(s["computed"])(()=>n.name||o.value);return Object(s["provide"])(po,Object(s["reactive"])({...Object(s["toRefs"])(n),changeEvent:u,name:p})),Object(s["watch"])(()=>n.modelValue,()=>{n.validateEvent&&(null==i||i.validate("change").catch(e=>Object(g["a"])(e)))}),(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{id:Object(s["unref"])(c),ref_key:"radioGroupRef",ref:a,class:Object(s["normalizeClass"])(Object(s["unref"])(r).b("group")),role:"radiogroup","aria-label":Object(s["unref"])(l)?void 0:e.label||"radio-group","aria-labelledby":Object(s["unref"])(l)?Object(s["unref"])(i).labelId:void 0},[Object(s["renderSlot"])(e.$slots,"default")],10,wo))}});var To=Object(h["a"])(So,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-group.vue"]]);const Eo=Object(k["a"])(go,{RadioButton:Mo,RadioGroup:To}),jo=Object(k["d"])(To),Do=Object(k["d"])(Mo);var Lo=Object(s["defineComponent"])({name:"NodeContent",setup(){const e=Object(m["d"])("cascader-node");return{ns:e}},render(){const{ns:e}=this,{node:t,panel:n}=this.$parent,{data:r,label:o}=t,{renderLabelFn:a}=n;return Object(s["h"])("span",{class:e.e("label")},a?a({node:t,data:r}):o)}});const Ao=Symbol(),No=Object(s["defineComponent"])({name:"ElCascaderNode",components:{ElCheckbox:ao,ElRadio:Eo,NodeContent:Lo,ElIcon:w["a"],Check:R["Check"],Loading:R["Loading"],ArrowRight:R["ArrowRight"]},props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup(e,{emit:t}){const n=Object(s["inject"])(Ao),r=Object(m["d"])("cascader-node"),o=Object(s["computed"])(()=>n.isHoverMenu),a=Object(s["computed"])(()=>n.config.multiple),i=Object(s["computed"])(()=>n.config.checkStrictly),c=Object(s["computed"])(()=>{var e;return null==(e=n.checkedNodes[0])?void 0:e.uid}),l=Object(s["computed"])(()=>e.node.isDisabled),u=Object(s["computed"])(()=>e.node.isLeaf),d=Object(s["computed"])(()=>i.value&&!u.value||!l.value),p=Object(s["computed"])(()=>h(n.expandingNode)),f=Object(s["computed"])(()=>i.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)},_=()=>{n.lazyLoad(e.node,()=>{u.value||v()})},y=e=>{o.value&&(b(),!u.value&&t("expand",e))},b=()=>{const{node:t}=e;d.value&&!t.loading&&(t.loaded?v():_())},O=()=>{o.value&&!u.value||(!u.value||l.value||i.value||a.value?b():k(!0))},M=t=>{i.value?(g(t),e.node.loaded&&v()):k(t)},k=t=>{e.node.loaded?(g(t),!i.value&&v()):_()};return{panel:n,isHoverMenu:o,multiple:a,checkStrictly:i,checkedNodeId:c,isDisabled:l,isLeaf:u,expandable:d,inExpandingPath:p,inCheckedPath:f,ns:r,handleHoverExpand:y,handleExpand:b,handleClick:O,handleCheck:k,handleSelectCheck:M}}}),xo=["id","aria-haspopup","aria-owns","aria-expanded","tabindex"],Ro=Object(s["createElementVNode"])("span",null,null,-1);function Po(e,t,n,r,o,a){const i=Object(s["resolveComponent"])("el-checkbox"),c=Object(s["resolveComponent"])("el-radio"),l=Object(s["resolveComponent"])("check"),u=Object(s["resolveComponent"])("el-icon"),d=Object(s["resolveComponent"])("node-content"),p=Object(s["resolveComponent"])("loading"),f=Object(s["resolveComponent"])("arrow-right");return Object(s["openBlock"])(),Object(s["createElementBlock"])("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:Object(s["normalizeClass"])([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))},[Object(s["createCommentVNode"])(" prefix "),e.multiple?(Object(s["openBlock"])(),Object(s["createBlock"])(i,{key:0,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:e.isDisabled,onClick:t[0]||(t[0]=Object(s["withModifiers"])(()=>{},["stop"])),"onUpdate:modelValue":e.handleSelectCheck},null,8,["model-value","indeterminate","disabled","onUpdate:modelValue"])):e.checkStrictly?(Object(s["openBlock"])(),Object(s["createBlock"])(c,{key:1,"model-value":e.checkedNodeId,label:e.node.uid,disabled:e.isDisabled,"onUpdate:modelValue":e.handleSelectCheck,onClick:t[1]||(t[1]=Object(s["withModifiers"])(()=>{},["stop"]))},{default:Object(s["withCtx"])(()=>[Object(s["createCommentVNode"])("\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 "),Ro]),_:1},8,["model-value","label","disabled","onUpdate:modelValue"])):e.isLeaf&&e.node.checked?(Object(s["openBlock"])(),Object(s["createBlock"])(u,{key:2,class:Object(s["normalizeClass"])(e.ns.e("prefix"))},{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(l)]),_:1},8,["class"])):Object(s["createCommentVNode"])("v-if",!0),Object(s["createCommentVNode"])(" content "),Object(s["createVNode"])(d),Object(s["createCommentVNode"])(" postfix "),e.isLeaf?Object(s["createCommentVNode"])("v-if",!0):(Object(s["openBlock"])(),Object(s["createElementBlock"])(s["Fragment"],{key:3},[e.node.loading?(Object(s["openBlock"])(),Object(s["createBlock"])(u,{key:0,class:Object(s["normalizeClass"])([e.ns.is("loading"),e.ns.e("postfix")])},{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(p)]),_:1},8,["class"])):(Object(s["openBlock"])(),Object(s["createBlock"])(u,{key:1,class:Object(s["normalizeClass"])(["arrow-right",e.ns.e("postfix")])},{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(f)]),_:1},8,["class"]))],64))],42,xo)}var Uo=Object(h["a"])(No,[["render",Po],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/node.vue"]]);const Vo=Object(s["defineComponent"])({name:"ElCascaderMenu",components:{Loading:R["Loading"],ElIcon:w["a"],ElScrollbar:ne,ElCascaderNode:Uo},props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=Object(s["getCurrentInstance"])(),n=Object(m["d"])("cascader-menu"),{t:r}=Object(Vn["b"])(),o=Rt();let a=null,i=null;const c=Object(s["inject"])(Ao),l=Object(s["ref"])(null),u=Object(s["computed"])(()=>!e.nodes.length),d=Object(s["computed"])(()=>!c.initialLoaded),p=Object(s["computed"])(()=>`cascader-menu-${o}-${e.index}`),f=e=>{a=e.target},h=e=>{if(c.isHoverMenu&&a&&l.value)if(a.contains(e.target)){v();const n=t.vnode.el,{left:r}=n.getBoundingClientRect(),{offsetWidth:o,offsetHeight:i}=n,s=e.clientX-r,c=a.offsetTop,u=c+a.offsetHeight;l.value.innerHTML=`\n <path style="pointer-events: auto;" fill="transparent" d="M${s} ${c} L${o} 0 V${c} Z" />\n <path style="pointer-events: auto;" fill="transparent" d="M${s} ${u} L${o} ${i} V${u} Z" />\n `}else i||(i=window.setTimeout(g,c.config.hoverThreshold))},v=()=>{i&&(clearTimeout(i),i=null)},g=()=>{l.value&&(l.value.innerHTML="",v())};return{ns:n,panel:c,hoverZone:l,isEmpty:u,isLoading:d,menuId:p,t:r,handleExpand:f,handleMouseMove:h,clearHoverZone:g}}});function Bo(e,t,n,r,o,a){const i=Object(s["resolveComponent"])("el-cascader-node"),c=Object(s["resolveComponent"])("loading"),l=Object(s["resolveComponent"])("el-icon"),u=Object(s["resolveComponent"])("el-scrollbar");return Object(s["openBlock"])(),Object(s["createBlock"])(u,{key:e.menuId,tag:"ul",role:"menu",class:Object(s["normalizeClass"])(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:Object(s["withCtx"])(()=>{var t;return[(Object(s["openBlock"])(!0),Object(s["createElementBlock"])(s["Fragment"],null,Object(s["renderList"])(e.nodes,t=>(Object(s["openBlock"])(),Object(s["createBlock"])(i,{key:t.uid,node:t,"menu-id":e.menuId,onExpand:e.handleExpand},null,8,["node","menu-id","onExpand"]))),128)),e.isLoading?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:0,class:Object(s["normalizeClass"])(e.ns.e("empty-text"))},[Object(s["createVNode"])(l,{size:"14",class:Object(s["normalizeClass"])(e.ns.is("loading"))},{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(c)]),_:1},8,["class"]),Object(s["createTextVNode"])(" "+Object(s["toDisplayString"])(e.t("el.cascader.loading")),1)],2)):e.isEmpty?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:1,class:Object(s["normalizeClass"])(e.ns.e("empty-text"))},Object(s["toDisplayString"])(e.t("el.cascader.noData")),3)):(null==(t=e.panel)?void 0:t.isHoverMenu)?(Object(s["openBlock"])(),Object(s["createElementBlock"])("svg",{key:2,ref:"hoverZone",class:Object(s["normalizeClass"])(e.ns.e("hover-zone"))},null,2)):Object(s["createCommentVNode"])("v-if",!0)]}),_:1},8,["class","wrap-class","view-class","onMousemove","onMouseleave"])}var Fo=Object(h["a"])(Vo,[["render",Bo],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/menu.vue"]]),Go=n("a7ea");let zo=0;const Ho=e=>{const t=[e];let{parent:n}=e;while(n)t.unshift(n),n=n.parent;return t};class Yo{constructor(e,t,n,r=!1){this.data=e,this.config=t,this.parent=n,this.root=r,this.uid=zo++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:o,label:a,children:i}=t,s=e[i],c=Ho(this);this.level=r?0:n?n.level+1:1,this.value=e[o],this.label=e[a],this.pathNodes=c,this.pathValues=c.map(e=>e.value),this.pathLabels=c.map(e=>e.label),this.childrenData=s,this.children=(s||[]).map(e=>new Yo(e,t,this)),this.loaded=!t.lazy||this.isLeaf||!Object(u["c"])(s)}get isDisabled(){const{data:e,parent:t,config:n}=this,{disabled:r,checkStrictly:o}=n,a=Object(Q["isFunction"])(r)?r(e,this):!!e[r];return a||!o&&(null==t?void 0:t.isDisabled)}get isLeaf(){const{data:e,config:t,childrenData:n,loaded:r}=this,{lazy:o,leaf:a}=t,i=Object(Q["isFunction"])(a)?a(e,this):e[a];return Object(u["g"])(i)?!(o&&!r)&&!(Array.isArray(n)&&n.length):!!i}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(e){const{childrenData:t,children:n}=this,r=new Yo(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"+Object(Go["a"])(e);this.children.forEach(r=>{r&&(r.broadcast(e,...t),r[n]&&r[n](...t))})}emit(e,...t){const{parent:n}=this,r="onChild"+Object(Go["a"])(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.filter(e=>!e.isDisabled).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 qo=(e,t)=>e.reduce((e,n)=>(n.isLeaf?e.push(n):(!t&&e.push(n),e=e.concat(qo(n.children,t))),e),[]);class Wo{constructor(e,t){this.config=t;const n=(e||[]).map(e=>new Yo(e,this.config));this.nodes=n,this.allNodes=qo(n,!1),this.leafNodes=qo(n,!0)}getNodes(){return this.nodes}getFlattedNodes(e){return e?this.leafNodes:this.allNodes}appendNode(e,t){const n=t?t.appendChild(e):new Yo(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=>Object(x["isEqual"])(t.value,e)||Object(x["isEqual"])(t.pathValues,e));return n||null}getSameNode(e){if(!e)return null;const t=this.getFlattedNodes(!1).find(({value:t,level:n})=>Object(x["isEqual"])(e.value,t)&&e.level===n);return t||null}}const Ko=Object(l["b"])({modelValue:{type:Object(l["c"])([Number,String,Array])},options:{type:Object(l["c"])(Array),default:()=>[]},props:{type:Object(l["c"])(Object),default:()=>({})}}),$o={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:Q["NOOP"],value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},Jo=e=>Object(s["computed"])(()=>({...$o,...e.props}));var Qo=n("9885");const Xo=e=>{if(!e)return 0;const t=e.id.split("-");return Number(t[t.length-2])},Zo=e=>{if(!e)return;const t=e.querySelector("input");t?t.click():Object(Qo["c"])(e)&&e.click()},ea=(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},ta=e=>[...new Set(e)],na=e=>e||0===e?Array.isArray(e)?e:[e]:[],ra=Object(s["defineComponent"])({name:"ElCascaderPanel",components:{ElCascaderMenu:Fo},props:{...Ko,border:{type:Boolean,default:!0},renderLabel:Function},emits:[d["c"],d["a"],"close","expand-change"],setup(e,{emit:t,slots:n}){let r=!1;const o=Object(m["d"])("cascader"),a=Jo(e);let i=null;const l=Object(s["ref"])(!0),p=Object(s["ref"])([]),f=Object(s["ref"])(null),h=Object(s["ref"])([]),v=Object(s["ref"])(null),g=Object(s["ref"])([]),y=Object(s["computed"])(()=>"hover"===a.value.expandTrigger),b=Object(s["computed"])(()=>e.renderLabel||n.default),O=()=>{const{options:t}=e,n=a.value;r=!1,i=new Wo(t,n),h.value=[i.getNodes()],n.lazy&&Object(u["c"])(e.options)?(l.value=!1,M(void 0,e=>{e&&(i=new Wo(e,n),h.value=[i.getNodes()]),l.value=!0,j(!1,!0)})):j(!1,!0)},M=(e,t)=>{const n=a.value;e=e||new Yo({},n,void 0,!0),e.loading=!0;const r=n=>{const r=e,o=r.root?null:r;n&&(null==i||i.appendNodes(n,o)),r.loading=!1,r.loaded=!0,r.childrenData=r.childrenData||[],t&&t(n)};n.lazyLoad(e,r)},k=(e,n)=>{var r;const{level:o}=e,a=h.value.slice(0,o);let i;e.isLeaf?i=e.pathNodes[o-2]:(i=e,a.push(e.children)),(null==(r=v.value)?void 0:r.uid)!==(null==i?void 0:i.uid)&&(v.value=e,h.value=a,!n&&t("expand-change",(null==e?void 0:e.pathValues)||[]))},C=(e,n,o=!0)=>{const{checkStrictly:i,multiple:s}=a.value,c=g.value[0];r=!0,!s&&(null==c||c.doCheck(!1)),e.doCheck(n),E(),o&&!s&&!i&&t("close"),!o&&!s&&!i&&w(e)},w=e=>{e&&(e=e.parent,w(e),e&&k(e))},I=e=>null==i?void 0:i.getFlattedNodes(e),S=e=>{var t;return null==(t=I(e))?void 0:t.filter(e=>!1!==e.checked)},T=()=>{g.value.forEach(e=>e.doCheck(!1)),E(),h.value=h.value.slice(0,1),v.value=null,t("expand-change",[])},E=()=>{var e;const{checkStrictly:t,multiple:n}=a.value,r=g.value,o=S(!t),i=ea(r,o),s=i.map(e=>e.valueByOption);g.value=i,f.value=n?s:null!=(e=s[0])?e:null},j=(t=!1,n=!1)=>{const{modelValue:o}=e,{lazy:s,multiple:c,checkStrictly:u}=a.value,d=!u;if(l.value&&!r&&(n||!Object(x["isEqual"])(o,f.value)))if(s&&!t){const e=ta(Object(x["flattenDeep"])(na(o))),t=e.map(e=>null==i?void 0:i.getNodeByValue(e)).filter(e=>!!e&&!e.loaded&&!e.loading);t.length?t.forEach(e=>{M(e,()=>j(!1,n))}):j(!0,n)}else{const e=c?na(o):[o],t=ta(e.map(e=>null==i?void 0:i.getNodeByValue(e,d)));D(t,n),f.value=Object(x["cloneDeep"])(o)}},D=(t,n=!0)=>{const{checkStrictly:r}=a.value,o=g.value,c=t.filter(e=>!!e&&(r||e.isLeaf)),l=null==i?void 0:i.getSameNode(v.value),u=n&&l||c[0];u?u.pathNodes.forEach(e=>k(e,!0)):v.value=null,o.forEach(e=>e.doCheck(!1)),e.props.multiple?Object(s["reactive"])(c).forEach(e=>e.doCheck(!0)):c.forEach(e=>e.doCheck(!0)),g.value=c,Object(s["nextTick"])(L)},L=()=>{c["isClient"]&&p.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`);Object(_["c"])(e,n)}})},A=e=>{const t=e.target,{code:n}=e;switch(n){case Me["a"].up:case Me["a"].down:{e.preventDefault();const r=n===Me["a"].up?-1:1;Object(Qo["a"])(Object(Qo["b"])(t,r,`.${o.b("node")}[tabindex="-1"]`));break}case Me["a"].left:{e.preventDefault();const n=p.value[Xo(t)-1],r=null==n?void 0:n.$el.querySelector(`.${o.b("node")}[aria-expanded="true"]`);Object(Qo["a"])(r);break}case Me["a"].right:{e.preventDefault();const n=p.value[Xo(t)+1],r=null==n?void 0:n.$el.querySelector(`.${o.b("node")}[tabindex="-1"]`);Object(Qo["a"])(r);break}case Me["a"].enter:Zo(t);break}};return Object(s["provide"])(Ao,Object(s["reactive"])({config:a,expandingNode:v,checkedNodes:g,isHoverMenu:y,initialLoaded:l,renderLabelFn:b,lazyLoad:M,expandNode:k,handleCheckChange:C})),Object(s["watch"])([a,()=>e.options],O,{deep:!0,immediate:!0}),Object(s["watch"])(()=>e.modelValue,()=>{r=!1,j()},{deep:!0}),Object(s["watch"])(()=>f.value,n=>{Object(x["isEqual"])(n,e.modelValue)||(t(d["c"],n),t(d["a"],n))}),Object(s["onBeforeUpdate"])(()=>p.value=[]),Object(s["onMounted"])(()=>!Object(u["c"])(e.modelValue)&&j()),{ns:o,menuList:p,menus:h,checkedNodes:g,handleKeyDown:A,handleCheckChange:C,getFlattedNodes:I,getCheckedNodes:S,clearCheckedNodes:T,calculateCheckedValue:E,scrollToExpandingNode:L}}});function oa(e,t,n,r,o,a){const i=Object(s["resolveComponent"])("el-cascader-menu");return Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{class:Object(s["normalizeClass"])([e.ns.b("panel"),e.ns.is("bordered",e.border)]),onKeydown:t[0]||(t[0]=(...t)=>e.handleKeyDown&&e.handleKeyDown(...t))},[(Object(s["openBlock"])(!0),Object(s["createElementBlock"])(s["Fragment"],null,Object(s["renderList"])(e.menus,(t,n)=>(Object(s["openBlock"])(),Object(s["createBlock"])(i,{key:n,ref_for:!0,ref:t=>e.menuList[n]=t,index:n,nodes:[...t]},null,8,["index","nodes"]))),128))],34)}var aa=Object(h["a"])(ra,[["render",oa],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/index.vue"]]);aa.install=e=>{e.component(aa.name,aa)};const ia=aa,sa=ia,ca=Object(l["b"])({type:{type:String,values:["success","info","warning","danger",""],default:""},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:{type:String,default:""},size:{type:String,values:Yt["b"],default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),la={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},ua=Object(s["defineComponent"])({name:"ElTag"}),da=Object(s["defineComponent"])({...ua,props:ca,emits:la,setup(e,{emit:t}){const n=e,r=Object(xt["b"])(),o=Object(m["d"])("tag"),a=Object(s["computed"])(()=>{const{type:e,hit:t,effect:a,closable:i,round:s}=n;return[o.b(),o.is("closable",i),o.m(e),o.m(r.value),o.m(a),o.is("hit",t),o.is("round",s)]}),i=e=>{t("close",e)},c=e=>{t("click",e)};return(e,t)=>e.disableTransitions?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",{key:0,class:Object(s["normalizeClass"])(Object(s["unref"])(a)),style:Object(s["normalizeStyle"])({backgroundColor:e.color}),onClick:c},[Object(s["createElementVNode"])("span",{class:Object(s["normalizeClass"])(Object(s["unref"])(o).e("content"))},[Object(s["renderSlot"])(e.$slots,"default")],2),e.closable?(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(w["a"]),{key:0,class:Object(s["normalizeClass"])(Object(s["unref"])(o).e("close")),onClick:Object(s["withModifiers"])(i,["stop"])},{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(Object(s["unref"])(R["Close"]))]),_:1},8,["class","onClick"])):Object(s["createCommentVNode"])("v-if",!0)],6)):(Object(s["openBlock"])(),Object(s["createBlock"])(s["Transition"],{key:1,name:Object(s["unref"])(o).namespace.value+"-zoom-in-center",appear:""},{default:Object(s["withCtx"])(()=>[Object(s["createElementVNode"])("span",{class:Object(s["normalizeClass"])(Object(s["unref"])(a)),style:Object(s["normalizeStyle"])({backgroundColor:e.color}),onClick:c},[Object(s["createElementVNode"])("span",{class:Object(s["normalizeClass"])(Object(s["unref"])(o).e("content"))},[Object(s["renderSlot"])(e.$slots,"default")],2),e.closable?(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(w["a"]),{key:0,class:Object(s["normalizeClass"])(Object(s["unref"])(o).e("close")),onClick:Object(s["withModifiers"])(i,["stop"])},{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(Object(s["unref"])(R["Close"]))]),_:1},8,["class","onClick"])):Object(s["createCommentVNode"])("v-if",!0)],6)]),_:3},8,["name"]))}});var pa=Object(h["a"])(da,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);const fa=Object(k["a"])(pa),ha=Object(l["b"])({...Ko,size:Lr["c"],placeholder:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,filterMethod:{type:Object(l["c"])(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:Object(l["c"])(Function),default:()=>!0},popperClass:{type:String,default:""},teleported:be.teleported,tagType:{...ca.type,default:"info"},validateEvent:{type:Boolean,default:!0}}),ma={[d["c"]]:e=>!!e||null===e,[d["a"]]:e=>!!e||null===e,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,visibleChange:e=>Object(u["a"])(e),expandChange:e=>!!e,removeTag:e=>!!e};var va=n("22a4");const ga=new Map;let _a;function ya(e,t){let n=[];return Array.isArray(t.arg)?n=t.arg:Object(u["b"])(t.arg)&&n.push(t.arg),function(r,o){const a=t.instance.popperRef,i=r.target,s=null==o?void 0:o.target,c=!t||!t.instance,l=!i||!s,u=e.contains(i)||e.contains(s),d=e===i,p=n.length&&n.some(e=>null==e?void 0:e.contains(i))||n.length&&n.includes(s),f=a&&(a.contains(i)||a.contains(s));c||l||u||d||p||f||t.value(r,o)}}c["isClient"]&&(document.addEventListener("mousedown",e=>_a=e),document.addEventListener("mouseup",e=>{for(const t of ga.values())for(const{documentHandler:n}of t)n(e,_a)}));const ba={beforeMount(e,t){ga.has(e)||ga.set(e,[]),ga.get(e).push({documentHandler:ya(e,t),bindingFn:t.value})},updated(e,t){ga.has(e)||ga.set(e,[]);const n=ga.get(e),r=n.findIndex(e=>e.bindingFn===t.oldValue),o={documentHandler:ya(e,t),bindingFn:t.value};r>=0?n.splice(r,1,o):n.push(o)},unmounted(e){ga.delete(e)}},Oa={key:0},Ma=["placeholder","onKeydown"],ka=["onClick"],Ca="ElCascader",wa=Object(s["defineComponent"])({name:Ca}),Ia=Object(s["defineComponent"])({...wa,props:ha,emits:ma,setup(e,{expose:t,emit:n}){const r=e,o={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"]}]},a=Object(s["useAttrs"])();let i=0,l=0;const u=Object(m["d"])("cascader"),p=Object(m["d"])("input"),{t:f}=Object(Vn["b"])(),{form:h,formItem:v}=Object(Pr["a"])(),_=Object(s["ref"])(null),y=Object(s["ref"])(null),b=Object(s["ref"])(null),O=Object(s["ref"])(null),M=Object(s["ref"])(null),k=Object(s["ref"])(!1),C=Object(s["ref"])(!1),I=Object(s["ref"])(!1),S=Object(s["ref"])(!1),T=Object(s["ref"])(""),E=Object(s["ref"])(""),j=Object(s["ref"])([]),D=Object(s["ref"])([]),L=Object(s["ref"])([]),A=Object(s["ref"])(!1),N=Object(s["computed"])(()=>a.style),U=Object(s["computed"])(()=>r.disabled||(null==h?void 0:h.disabled)),V=Object(s["computed"])(()=>r.placeholder||f("el.cascader.placeholder")),B=Object(s["computed"])(()=>E.value||j.value.length>0||A.value?"":V.value),F=Object(xt["b"])(),G=Object(s["computed"])(()=>["small"].includes(F.value)?"small":"default"),z=Object(s["computed"])(()=>!!r.props.multiple),H=Object(s["computed"])(()=>!r.filterable||z.value),Y=Object(s["computed"])(()=>z.value?E.value:T.value),q=Object(s["computed"])(()=>{var e;return(null==(e=O.value)?void 0:e.checkedNodes)||[]}),W=Object(s["computed"])(()=>!(!r.clearable||U.value||I.value||!C.value)&&!!q.value.length),K=Object(s["computed"])(()=>{const{showAllLevels:e,separator:t}=r,n=q.value;return n.length?z.value?"":n[0].calcText(e,t):""}),$=Object(s["computed"])({get(){return Object(x["cloneDeep"])(r.modelValue)},set(e){n(d["c"],e),n(d["a"],e),r.validateEvent&&(null==v||v.validate("change").catch(e=>Object(g["a"])(e)))}}),J=Object(s["computed"])(()=>[u.b(),u.m(F.value),u.is("disabled",U.value),a.class]),X=Object(s["computed"])(()=>[p.e("icon"),"icon-arrow-down",u.is("reverse",k.value)]),Z=Object(s["computed"])(()=>u.is("focus",k.value||S.value)),ee=Object(s["computed"])(()=>{var e,t;return null==(t=null==(e=_.value)?void 0:e.popperRef)?void 0:t.contentRef}),te=e=>{var t,o,a;U.value||(e=null!=e?e:!k.value,e!==k.value&&(k.value=e,null==(o=null==(t=y.value)?void 0:t.input)||o.setAttribute("aria-expanded",""+e),e?(re(),Object(s["nextTick"])(null==(a=O.value)?void 0:a.scrollToExpandingNode)):r.filterable&&ve(),n("visibleChange",e)))},re=()=>{Object(s["nextTick"])(()=>{var e;null==(e=_.value)||e.updatePopper()})},oe=()=>{I.value=!1},ae=e=>{const{showAllLevels:t,separator:n}=r;return{node:e,key:e.uid,text:e.calcText(t,n),hitState:!1,closable:!U.value&&!e.isDisabled,isCollapseTag:!1}},ie=e=>{var t;const r=e.node;r.doCheck(!1),null==(t=O.value)||t.calculateCheckedValue(),n("removeTag",r.valueByOption)},se=()=>{if(!z.value)return;const e=q.value,t=[],n=[];if(e.forEach(e=>n.push(ae(e))),D.value=n,e.length){const[n,...o]=e,a=o.length;t.push(ae(n)),a&&(r.collapseTags?t.push({key:-1,text:"+ "+a,closable:!1,isCollapseTag:!0}):o.forEach(e=>t.push(ae(e))))}j.value=t},ce=()=>{var e,t;const{filterMethod:n,showAllLevels:o,separator:a}=r,i=null==(t=null==(e=O.value)?void 0:e.getFlattedNodes(!r.props.checkStrictly))?void 0:t.filter(e=>!e.isDisabled&&(e.calcText(o,a),n(e,Y.value)));z.value&&(j.value.forEach(e=>{e.hitState=!1}),D.value.forEach(e=>{e.hitState=!1})),I.value=!0,L.value=i,re()},le=()=>{var e;let t;t=I.value&&M.value?M.value.$el.querySelector("."+u.e("suggestion-item")):null==(e=O.value)?void 0:e.$el.querySelector(`.${u.b("node")}[tabindex="-1"]`),t&&(t.focus(),!I.value&&t.click())},ue=()=>{var e,t;const n=null==(e=y.value)?void 0:e.input,r=b.value,o=null==(t=M.value)?void 0:t.$el;if(c["isClient"]&&n){if(o){const e=o.querySelector("."+u.e("suggestion-list"));e.style.minWidth=n.offsetWidth+"px"}if(r){const{offsetHeight:e}=r,t=j.value.length>0?Math.max(e+6,i)+"px":i+"px";n.style.height=t,re()}}},de=e=>{var t;return null==(t=O.value)?void 0:t.getCheckedNodes(e)},pe=e=>{re(),n("expandChange",e)},fe=e=>{var t;const n=null==(t=e.target)?void 0:t.value;if("compositionend"===e.type)A.value=!1,Object(s["nextTick"])(()=>Ce(n));else{const e=n[n.length-1]||"";A.value=!Object(va["a"])(e)}},he=e=>{if(!A.value)switch(e.code){case Me["a"].enter:te();break;case Me["a"].down:te(!0),Object(s["nextTick"])(le),e.preventDefault();break;case Me["a"].esc:!0===k.value&&(e.preventDefault(),e.stopPropagation(),te(!1));break;case Me["a"].tab:te(!1);break}},me=()=>{var e;null==(e=O.value)||e.clearCheckedNodes(),!k.value&&r.filterable&&ve(),te(!1)},ve=()=>{const{value:e}=K;T.value=e,E.value=e},ge=e=>{var t,n;const{checked:r}=e;z.value?null==(t=O.value)||t.handleCheckChange(e,!r,!1):(!r&&(null==(n=O.value)||n.handleCheckChange(e,!0,!1)),te(!1))},_e=e=>{const t=e.target,{code:n}=e;switch(n){case Me["a"].up:case Me["a"].down:{const e=n===Me["a"].up?-1:1;Object(Qo["a"])(Object(Qo["b"])(t,e,`.${u.e("suggestion-item")}[tabindex="-1"]`));break}case Me["a"].enter:t.click();break}},ye=()=>{const e=j.value,t=e[e.length-1];l=E.value?0:l+1,!t||!l||r.collapseTags&&e.length>1||(t.hitState?ie(t):t.hitState=!0)},be=e=>{const t=e.target,r=u.e("search-input");t.className===r&&(S.value=!0),n("focus",e)},Oe=e=>{S.value=!1,n("blur",e)},ke=Object(x["debounce"])(()=>{const{value:e}=Y;if(!e)return;const t=r.beforeFilter(e);Object(Q["isPromise"])(t)?t.then(ce).catch(()=>{}):!1!==t?ce():oe()},r.debounce),Ce=(e,t)=>{!k.value&&te(!0),(null==t?void 0:t.isComposing)||(e?ke():oe())},we=e=>Number.parseFloat(Object(c["useCssVar"])(p.cssVarName("input-height"),e).value)-2;return Object(s["watch"])(I,re),Object(s["watch"])([q,U],se),Object(s["watch"])(j,()=>{Object(s["nextTick"])(()=>ue())}),Object(s["watch"])(F,async()=>{await Object(s["nextTick"])();const e=y.value.input;i=we(e)||i,ue()}),Object(s["watch"])(K,ve,{immediate:!0}),Object(s["onMounted"])(()=>{const e=y.value.input,t=we(e);i=e.offsetHeight||t,Object(c["useResizeObserver"])(e,ue)}),t({getCheckedNodes:de,cascaderPanelRef:O,togglePopperVisible:te,contentRef:ee}),(e,t)=>(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(Dt),{ref_key:"tooltipRef",ref:_,visible:k.value,teleported:e.teleported,"popper-class":[Object(s["unref"])(u).e("dropdown"),e.popperClass],"popper-options":o,"fallback-placements":["bottom-start","bottom","top-start","top","right","left"],"stop-popper-mouse-event":!1,"gpu-acceleration":!1,placement:"bottom-start",transition:Object(s["unref"])(u).namespace.value+"-zoom-in-top",effect:"light",pure:"",persistent:"",onHide:oe},{default:Object(s["withCtx"])(()=>[Object(s["withDirectives"])((Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(J)),style:Object(s["normalizeStyle"])(Object(s["unref"])(N)),onClick:t[5]||(t[5]=()=>te(!Object(s["unref"])(H)||void 0)),onKeydown:he,onMouseenter:t[6]||(t[6]=e=>C.value=!0),onMouseleave:t[7]||(t[7]=e=>C.value=!1)},[Object(s["createVNode"])(Object(s["unref"])(P["a"]),{ref_key:"input",ref:y,modelValue:T.value,"onUpdate:modelValue":t[1]||(t[1]=e=>T.value=e),placeholder:Object(s["unref"])(B),readonly:Object(s["unref"])(H),disabled:Object(s["unref"])(U),"validate-event":!1,size:Object(s["unref"])(F),class:Object(s["normalizeClass"])(Object(s["unref"])(Z)),tabindex:Object(s["unref"])(z)&&e.filterable&&!Object(s["unref"])(U)?-1:void 0,onCompositionstart:fe,onCompositionupdate:fe,onCompositionend:fe,onFocus:be,onBlur:Oe,onInput:Ce},{suffix:Object(s["withCtx"])(()=>[Object(s["unref"])(W)?(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(w["a"]),{key:"clear",class:Object(s["normalizeClass"])([Object(s["unref"])(p).e("icon"),"icon-circle-close"]),onClick:Object(s["withModifiers"])(me,["stop"])},{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(Object(s["unref"])(R["CircleClose"]))]),_:1},8,["class","onClick"])):(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(w["a"]),{key:"arrow-down",class:Object(s["normalizeClass"])(Object(s["unref"])(X)),onClick:t[0]||(t[0]=Object(s["withModifiers"])(e=>te(),["stop"]))},{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(Object(s["unref"])(R["ArrowDown"]))]),_:1},8,["class"]))]),_:1},8,["modelValue","placeholder","readonly","disabled","size","class","tabindex"]),Object(s["unref"])(z)?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:0,ref_key:"tagWrapper",ref:b,class:Object(s["normalizeClass"])(Object(s["unref"])(u).e("tags"))},[(Object(s["openBlock"])(!0),Object(s["createElementBlock"])(s["Fragment"],null,Object(s["renderList"])(j.value,t=>(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(fa),{key:t.key,type:e.tagType,size:Object(s["unref"])(G),hit:t.hitState,closable:t.closable,"disable-transitions":"",onClose:e=>ie(t)},{default:Object(s["withCtx"])(()=>[!1===t.isCollapseTag?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",Oa,Object(s["toDisplayString"])(t.text),1)):(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(Dt),{key:1,disabled:k.value||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom",effect:"light"},{default:Object(s["withCtx"])(()=>[Object(s["createElementVNode"])("span",null,Object(s["toDisplayString"])(t.text),1)]),content:Object(s["withCtx"])(()=>[Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(u).e("collapse-tags"))},[(Object(s["openBlock"])(!0),Object(s["createElementBlock"])(s["Fragment"],null,Object(s["renderList"])(D.value.slice(1),(t,n)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:n,class:Object(s["normalizeClass"])(Object(s["unref"])(u).e("collapse-tag"))},[(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(fa),{key:t.key,class:"in-tooltip",type:e.tagType,size:Object(s["unref"])(G),hit:t.hitState,closable:t.closable,"disable-transitions":"",onClose:e=>ie(t)},{default:Object(s["withCtx"])(()=>[Object(s["createElementVNode"])("span",null,Object(s["toDisplayString"])(t.text),1)]),_:2},1032,["type","size","hit","closable","onClose"]))],2))),128))],2)]),_:2},1032,["disabled"]))]),_:2},1032,["type","size","hit","closable","onClose"]))),128)),e.filterable&&!Object(s["unref"])(U)?Object(s["withDirectives"])((Object(s["openBlock"])(),Object(s["createElementBlock"])("input",{key:0,"onUpdate:modelValue":t[2]||(t[2]=e=>E.value=e),type:"text",class:Object(s["normalizeClass"])(Object(s["unref"])(u).e("search-input")),placeholder:Object(s["unref"])(K)?"":Object(s["unref"])(V),onInput:t[3]||(t[3]=e=>Ce(E.value,e)),onClick:t[4]||(t[4]=Object(s["withModifiers"])(e=>te(!0),["stop"])),onKeydown:Object(s["withKeys"])(ye,["delete"]),onCompositionstart:fe,onCompositionupdate:fe,onCompositionend:fe,onFocus:be,onBlur:Oe},null,42,Ma)),[[s["vModelText"],E.value]]):Object(s["createCommentVNode"])("v-if",!0)],2)):Object(s["createCommentVNode"])("v-if",!0)],38)),[[Object(s["unref"])(ba),()=>te(!1),Object(s["unref"])(ee)]])]),content:Object(s["withCtx"])(()=>[Object(s["withDirectives"])(Object(s["createVNode"])(Object(s["unref"])(ia),{ref_key:"cascaderPanelRef",ref:O,modelValue:Object(s["unref"])($),"onUpdate:modelValue":t[8]||(t[8]=e=>Object(s["isRef"])($)?$.value=e:null),options:e.options,props:r.props,border:!1,"render-label":e.$slots.default,onExpandChange:pe,onClose:t[9]||(t[9]=t=>e.$nextTick(()=>te(!1)))},null,8,["modelValue","options","props","render-label"]),[[s["vShow"],!I.value]]),e.filterable?Object(s["withDirectives"])((Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(ne),{key:0,ref_key:"suggestionPanel",ref:M,tag:"ul",class:Object(s["normalizeClass"])(Object(s["unref"])(u).e("suggestion-panel")),"view-class":Object(s["unref"])(u).e("suggestion-list"),onKeydown:_e},{default:Object(s["withCtx"])(()=>[L.value.length?(Object(s["openBlock"])(!0),Object(s["createElementBlock"])(s["Fragment"],{key:0},Object(s["renderList"])(L.value,e=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("li",{key:e.uid,class:Object(s["normalizeClass"])([Object(s["unref"])(u).e("suggestion-item"),Object(s["unref"])(u).is("checked",e.checked)]),tabindex:-1,onClick:t=>ge(e)},[Object(s["createElementVNode"])("span",null,Object(s["toDisplayString"])(e.text),1),e.checked?(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(w["a"]),{key:0},{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(Object(s["unref"])(R["Check"]))]),_:1})):Object(s["createCommentVNode"])("v-if",!0)],10,ka))),128)):Object(s["renderSlot"])(e.$slots,"empty",{key:1},()=>[Object(s["createElementVNode"])("li",{class:Object(s["normalizeClass"])(Object(s["unref"])(u).e("empty-text"))},Object(s["toDisplayString"])(Object(s["unref"])(f)("el.cascader.noMatch")),3)])]),_:3},8,["class","view-class"])),[[s["vShow"],I.value]]):Object(s["createCommentVNode"])("v-if",!0)]),_:3},8,["visible","teleported","popper-class","transition"]))}});var Sa=Object(h["a"])(Ia,[["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader/src/cascader.vue"]]);Sa.install=e=>{e.component(Sa.name,Sa)};const Ta=Sa,Ea=Ta,ja=Object(l["b"])({checked:{type:Boolean,default:!1}}),Da={"update:checked":e=>Object(u["a"])(e),[d["a"]]:e=>Object(u["a"])(e)},La=Object(s["defineComponent"])({name:"ElCheckTag"}),Aa=Object(s["defineComponent"])({...La,props:ja,emits:Da,setup(e,{emit:t}){const n=e,r=Object(m["d"])("check-tag"),o=Object(s["computed"])(()=>[r.b(),r.is("checked",n.checked)]),a=()=>{const e=!n.checked;t(d["a"],e),t("update:checked",e)};return(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",{class:Object(s["normalizeClass"])(Object(s["unref"])(o)),onClick:a},[Object(s["renderSlot"])(e.$slots,"default")],2))}});var Na=Object(h["a"])(Aa,[["__file","/home/runner/work/element-plus/element-plus/packages/components/check-tag/src/check-tag.vue"]]);const xa=Object(k["a"])(Na);var Ra=n("f5f6");const Pa=Object(l["b"])({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:Object(l["c"])([Number,Object]),default:()=>Object(Ra["a"])({})},sm:{type:Object(l["c"])([Number,Object]),default:()=>Object(Ra["a"])({})},md:{type:Object(l["c"])([Number,Object]),default:()=>Object(Ra["a"])({})},lg:{type:Object(l["c"])([Number,Object]),default:()=>Object(Ra["a"])({})},xl:{type:Object(l["c"])([Number,Object]),default:()=>Object(Ra["a"])({})}}),Ua=Symbol("rowContextKey"),Va=Object(s["defineComponent"])({name:"ElCol"}),Ba=Object(s["defineComponent"])({...Va,props:Pa,setup(e){const t=e,{gutter:n}=Object(s["inject"])(Ua,{gutter:Object(s["computed"])(()=>0)}),r=Object(m["d"])("col"),o=Object(s["computed"])(()=>{const e={};return n.value&&(e.paddingLeft=e.paddingRight=n.value/2+"px"),e}),a=Object(s["computed"])(()=>{const e=[],o=["span","offset","pull","push"];o.forEach(n=>{const o=t[n];Object(u["d"])(o)&&("span"===n?e.push(r.b(""+t[n])):o>0&&e.push(r.b(`${n}-${t[n]}`)))});const a=["xs","sm","md","lg","xl"];return a.forEach(n=>{Object(u["d"])(t[n])?e.push(r.b(`${n}-${t[n]}`)):Object(Q["isObject"])(t[n])&&Object.entries(t[n]).forEach(([t,o])=>{e.push("span"!==t?r.b(`${n}-${t}-${o}`):r.b(`${n}-${o}`))})}),n.value&&e.push(r.is("guttered")),[r.b(),e]});return(e,t)=>(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["resolveDynamicComponent"])(e.tag),{class:Object(s["normalizeClass"])(Object(s["unref"])(a)),style:Object(s["normalizeStyle"])(Object(s["unref"])(o))},{default:Object(s["withCtx"])(()=>[Object(s["renderSlot"])(e.$slots,"default")]),_:3},8,["class","style"]))}});var Fa=Object(h["a"])(Ba,[["__file","/home/runner/work/element-plus/element-plus/packages/components/col/src/col.vue"]]);const Ga=Object(k["a"])(Fa),za=e=>typeof Object(u["d"])(e),Ha=Object(l["b"])({accordion:Boolean,modelValue:{type:Object(l["c"])([Array,String,Number]),default:()=>Object(Ra["a"])([])}}),Ya={[d["c"]]:za,[d["a"]]:za},qa=Symbol("collapseContextKey"),Wa=(e,t)=>{const n=Object(s["ref"])(Object(x["castArray"])(e.modelValue)),r=r=>{n.value=r;const o=e.accordion?n.value[0]:n.value;t(d["c"],o),t(d["a"],o)},o=t=>{if(e.accordion)r([n.value[0]===t?"":t]);else{const e=[...n.value],o=e.indexOf(t);o>-1?e.splice(o,1):e.push(t),r(e)}};return Object(s["watch"])(()=>e.modelValue,()=>n.value=Object(x["castArray"])(e.modelValue),{deep:!0}),Object(s["provide"])(qa,{activeNames:n,handleItemClick:o}),{activeNames:n,setActiveNames:r}},Ka=()=>{const e=Object(m["d"])("collapse"),t=Object(s["computed"])(()=>e.b());return{rootKls:t}},$a=Object(s["defineComponent"])({name:"ElCollapse"}),Ja=Object(s["defineComponent"])({...$a,props:Ha,emits:Ya,setup(e,{expose:t,emit:n}){const r=e,{activeNames:o,setActiveNames:a}=Wa(r,n),{rootKls:i}=Ka();return t({activeNames:o,setActiveNames:a}),(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(i)),role:"tablist","aria-multiselectable":"true"},[Object(s["renderSlot"])(e.$slots,"default")],2))}});var Qa=Object(h["a"])(Ja,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse.vue"]]);const Xa=Object(s["defineComponent"])({name:"ElCollapseTransition"}),Za=Object(s["defineComponent"])({...Xa,setup(e){const t=Object(m["d"])("collapse-transition"),n=e=>{e.style.maxHeight="",e.style.overflow=e.dataset.oldOverflow,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom},r={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.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},enterCancelled(e){n(e)},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){n(e)},leaveCancelled(e){n(e)}};return(e,n)=>(Object(s["openBlock"])(),Object(s["createBlock"])(s["Transition"],Object(s["mergeProps"])({name:Object(s["unref"])(t).b()},Object(s["toHandlers"])(r)),{default:Object(s["withCtx"])(()=>[Object(s["renderSlot"])(e.$slots,"default")]),_:3},16,["name"]))}});var ei=Object(h["a"])(Za,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse-transition/src/collapse-transition.vue"]]);ei.install=e=>{e.component(ei.name,ei)};const ti=ei,ni=ti,ri=Object(l["b"])({title:{type:String,default:""},name:{type:Object(l["c"])([String,Number]),default:()=>Rt()},disabled:Boolean}),oi=e=>{const t=Object(s["inject"])(qa),n=Object(s["ref"])(!1),r=Object(s["ref"])(!1),o=Object(s["ref"])(Rt()),a=Object(s["computed"])(()=>null==t?void 0:t.activeNames.value.includes(e.name)),i=()=>{setTimeout(()=>{r.value?r.value=!1:n.value=!0},50)},c=()=>{e.disabled||(null==t||t.handleItemClick(e.name),n.value=!1,r.value=!0)},l=()=>{null==t||t.handleItemClick(e.name)};return{focusing:n,id:o,isActive:a,handleFocus:i,handleHeaderClick:c,handleEnterClick:l}},ai=(e,{focusing:t,isActive:n,id:r})=>{const o=Object(m["d"])("collapse"),a=Object(s["computed"])(()=>[o.b("item"),o.is("active",Object(s["unref"])(n)),o.is("disabled",e.disabled)]),i=Object(s["computed"])(()=>[o.be("item","header"),o.is("active",Object(s["unref"])(n)),{focusing:Object(s["unref"])(t)&&!e.disabled}]),c=Object(s["computed"])(()=>[o.be("item","arrow"),o.is("active",Object(s["unref"])(n))]),l=Object(s["computed"])(()=>o.be("item","wrap")),u=Object(s["computed"])(()=>o.be("item","content")),d=Object(s["computed"])(()=>o.b("content-"+Object(s["unref"])(r))),p=Object(s["computed"])(()=>o.b("head-"+Object(s["unref"])(r)));return{arrowKls:c,headKls:i,rootKls:a,itemWrapperKls:l,itemContentKls:u,scopedContentId:d,scopedHeadId:p}},ii=["aria-expanded","aria-controls","aria-describedby"],si=["id","tabindex"],ci=["id","aria-hidden","aria-labelledby"],li=Object(s["defineComponent"])({name:"ElCollapseItem"}),ui=Object(s["defineComponent"])({...li,props:ri,setup(e,{expose:t}){const n=e,{focusing:r,id:o,isActive:a,handleFocus:i,handleHeaderClick:c,handleEnterClick:l}=oi(n),{arrowKls:u,headKls:d,rootKls:p,itemWrapperKls:f,itemContentKls:h,scopedContentId:m,scopedHeadId:v}=ai(n,{focusing:r,isActive:a,id:o});return t({isActive:a}),(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(p))},[Object(s["createElementVNode"])("div",{role:"tab","aria-expanded":Object(s["unref"])(a),"aria-controls":Object(s["unref"])(m),"aria-describedby":Object(s["unref"])(m)},[Object(s["createElementVNode"])("div",{id:Object(s["unref"])(v),class:Object(s["normalizeClass"])(Object(s["unref"])(d)),role:"button",tabindex:e.disabled?-1:0,onClick:t[0]||(t[0]=(...e)=>Object(s["unref"])(c)&&Object(s["unref"])(c)(...e)),onKeypress:t[1]||(t[1]=Object(s["withKeys"])(Object(s["withModifiers"])((...e)=>Object(s["unref"])(l)&&Object(s["unref"])(l)(...e),["stop","prevent"]),["space","enter"])),onFocus:t[2]||(t[2]=(...e)=>Object(s["unref"])(i)&&Object(s["unref"])(i)(...e)),onBlur:t[3]||(t[3]=e=>r.value=!1)},[Object(s["renderSlot"])(e.$slots,"title",{},()=>[Object(s["createTextVNode"])(Object(s["toDisplayString"])(e.title),1)]),Object(s["createVNode"])(Object(s["unref"])(w["a"]),{class:Object(s["normalizeClass"])(Object(s["unref"])(u))},{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(Object(s["unref"])(R["ArrowRight"]))]),_:1},8,["class"])],42,si)],8,ii),Object(s["createVNode"])(Object(s["unref"])(ti),null,{default:Object(s["withCtx"])(()=>[Object(s["withDirectives"])(Object(s["createElementVNode"])("div",{id:Object(s["unref"])(m),class:Object(s["normalizeClass"])(Object(s["unref"])(f)),role:"tabpanel","aria-hidden":!Object(s["unref"])(a),"aria-labelledby":Object(s["unref"])(v)},[Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(h))},[Object(s["renderSlot"])(e.$slots,"default")],2)],10,ci),[[s["vShow"],Object(s["unref"])(a)]])]),_:3})],2))}});var di=Object(h["a"])(ui,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse-item.vue"]]);const pi=Object(k["a"])(Qa,{CollapseItem:di}),fi=Object(k["d"])(di),hi=Object(l["b"])({color:{type:Object(l["c"])(Object),required:!0},vertical:{type:Boolean,default:!1}});let mi=!1;function vi(e,t){if(!c["isClient"])return;const n=function(e){var n;null==(n=t.drag)||n.call(t,e)},r=function(e){var o;document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",r),document.removeEventListener("touchmove",n),document.removeEventListener("touchend",r),document.onselectstart=null,document.ondragstart=null,mi=!1,null==(o=t.end)||o.call(t,e)},o=function(e){var o;mi||(e.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n),document.addEventListener("mouseup",r),document.addEventListener("touchmove",n),document.addEventListener("touchend",r),mi=!0,null==(o=t.start)||o.call(t,e))};e.addEventListener("mousedown",o),e.addEventListener("touchstart",o)}const gi=(e,t)=>{if(!c["isClient"]||!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},_i=e=>{let t=0,n=e;while(n)t+=n.offsetTop,n=n.offsetParent;return t},yi=(e,t)=>Math.abs(_i(e)-_i(t)),bi=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}},Oi=e=>{const t=Object(s["getCurrentInstance"])(),n=Object(s["shallowRef"])(),r=Object(s["shallowRef"])();function o(e){const t=e.target;t!==n.value&&a(e)}function a(o){if(!r.value||!n.value)return;const a=t.vnode.el,i=a.getBoundingClientRect(),{clientX:s,clientY:c}=bi(o);if(e.vertical){let t=c-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=s-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))}}return{thumb:n,bar:r,handleDrag:a,handleClick:o}},Mi=(e,{bar:t,thumb:n,handleDrag:r})=>{const o=Object(s["getCurrentInstance"])(),a=Object(m["d"])("color-alpha-slider"),i=Object(s["ref"])(0),c=Object(s["ref"])(0),l=Object(s["ref"])();function u(){if(!n.value)return 0;if(e.vertical)return 0;const t=o.vnode.el,r=e.color.get("alpha");return t?Math.round(r*(t.offsetWidth-n.value.offsetWidth/2)/100):0}function d(){if(!n.value)return 0;const t=o.vnode.el;if(!e.vertical)return 0;const r=e.color.get("alpha");return t?Math.round(r*(t.offsetHeight-n.value.offsetHeight/2)/100):0}function p(){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""}function f(){i.value=u(),c.value=d(),l.value=p()}Object(s["onMounted"])(()=>{if(!t.value||!n.value)return;const e={drag:e=>{r(e)},end:e=>{r(e)}};vi(t.value,e),vi(n.value,e),f()}),Object(s["watch"])(()=>e.color.get("alpha"),()=>f()),Object(s["watch"])(()=>e.color.value,()=>f());const h=Object(s["computed"])(()=>[a.b(),a.is("vertical",e.vertical)]),g=Object(s["computed"])(()=>a.e("bar")),_=Object(s["computed"])(()=>a.e("thumb")),y=Object(s["computed"])(()=>({background:l.value})),b=Object(s["computed"])(()=>({left:Object(v["b"])(i.value),top:Object(v["b"])(c.value)}));return{rootKls:h,barKls:g,barStyle:y,thumbKls:_,thumbStyle:b,update:f}},ki="ElColorAlphaSlider",Ci=Object(s["defineComponent"])({name:ki}),wi=Object(s["defineComponent"])({...Ci,props:hi,setup(e,{expose:t}){const n=e,{bar:r,thumb:o,handleDrag:a,handleClick:i}=Oi(n),{rootKls:c,barKls:l,barStyle:u,thumbKls:d,thumbStyle:p,update:f}=Mi(n,{bar:r,thumb:o,handleDrag:a});return t({update:f,bar:r,thumb:o}),(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(c))},[Object(s["createElementVNode"])("div",{ref_key:"bar",ref:r,class:Object(s["normalizeClass"])(Object(s["unref"])(l)),style:Object(s["normalizeStyle"])(Object(s["unref"])(u)),onClick:t[0]||(t[0]=(...e)=>Object(s["unref"])(i)&&Object(s["unref"])(i)(...e))},null,6),Object(s["createElementVNode"])("div",{ref_key:"thumb",ref:o,class:Object(s["normalizeClass"])(Object(s["unref"])(d)),style:Object(s["normalizeStyle"])(Object(s["unref"])(p))},null,6)],2))}});var Ii=Object(h["a"])(wi,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/alpha-slider.vue"]]);const Si=Object(s["defineComponent"])({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(e){const t=Object(m["d"])("color-hue-slider"),n=Object(s["getCurrentInstance"])(),r=Object(s["ref"])(),o=Object(s["ref"])(),a=Object(s["ref"])(0),i=Object(s["ref"])(0),c=Object(s["computed"])(()=>e.color.get("hue"));function l(e){const t=e.target;t!==r.value&&u(e)}function u(t){if(!o.value||!r.value)return;const a=n.vnode.el,i=a.getBoundingClientRect(),{clientX:s,clientY:c}=bi(t);let l;if(e.vertical){let e=c-i.top;e=Math.min(e,i.height-r.value.offsetHeight/2),e=Math.max(r.value.offsetHeight/2,e),l=Math.round((e-r.value.offsetHeight/2)/(i.height-r.value.offsetHeight)*360)}else{let e=s-i.left;e=Math.min(e,i.width-r.value.offsetWidth/2),e=Math.max(r.value.offsetWidth/2,e),l=Math.round((e-r.value.offsetWidth/2)/(i.width-r.value.offsetWidth)*360)}e.color.set("hue",l)}function d(){if(!r.value)return 0;const t=n.vnode.el;if(e.vertical)return 0;const o=e.color.get("hue");return t?Math.round(o*(t.offsetWidth-r.value.offsetWidth/2)/360):0}function p(){if(!r.value)return 0;const t=n.vnode.el;if(!e.vertical)return 0;const o=e.color.get("hue");return t?Math.round(o*(t.offsetHeight-r.value.offsetHeight/2)/360):0}function f(){a.value=d(),i.value=p()}return Object(s["watch"])(()=>c.value,()=>{f()}),Object(s["onMounted"])(()=>{if(!o.value||!r.value)return;const e={drag:e=>{u(e)},end:e=>{u(e)}};vi(o.value,e),vi(r.value,e),f()}),{bar:o,thumb:r,thumbLeft:a,thumbTop:i,hueValue:c,handleClick:l,update:f,ns:t}}});function Ti(e,t,n,r,o,a){return Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{class:Object(s["normalizeClass"])([e.ns.b(),e.ns.is("vertical",e.vertical)])},[Object(s["createElementVNode"])("div",{ref:"bar",class:Object(s["normalizeClass"])(e.ns.e("bar")),onClick:t[0]||(t[0]=(...t)=>e.handleClick&&e.handleClick(...t))},null,2),Object(s["createElementVNode"])("div",{ref:"thumb",class:Object(s["normalizeClass"])(e.ns.e("thumb")),style:Object(s["normalizeStyle"])({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}var Ei=Object(h["a"])(Si,[["render",Ti],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/hue-slider.vue"]]);const ji=Object(l["b"])({modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:Lr["c"],popperClass:{type:String,default:""},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},predefine:{type:Object(l["c"])(Array)},validateEvent:{type:Boolean,default:!0}}),Di={[d["c"]]:e=>Object(Q["isString"])(e)||Object(x["isNil"])(e),[d["a"]]:e=>Object(Q["isString"])(e)||Object(x["isNil"])(e),activeChange:e=>Object(Q["isString"])(e)||Object(x["isNil"])(e)},Li=Symbol("colorPickerContextKey"),Ai=function(e,t,n){return[e,t*n/((e=(2-t)*n)<1?e:2-e)||0,e/2]},Ni=function(e){return"string"===typeof e&&e.includes(".")&&1===Number.parseFloat(e)},xi=function(e){return"string"===typeof e&&e.includes("%")},Ri=function(e,t){Ni(e)&&(e="100%");const n=xi(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)},Pi={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},Ui=e=>{e=Math.min(Math.round(e),255);const t=Math.floor(e/16),n=e%16;return`${Pi[t]||t}${Pi[n]||n}`},Vi=function({r:e,g:t,b:n}){return Number.isNaN(+e)||Number.isNaN(+t)||Number.isNaN(+n)?"":`#${Ui(e)}${Ui(t)}${Ui(n)}`},Bi={A:10,B:11,C:12,D:13,E:14,F:15},Fi=function(e){return 2===e.length?16*(Bi[e[0].toUpperCase()]||+e[0])+(Bi[e[1].toUpperCase()]||+e[1]):Bi[e[1].toUpperCase()]||+e[1]},Gi=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 a=(n+t)/2,i=0===n?2*r/(o+r):2*t/(n+t);return{h:e,s:100*i,v:100*a}},zi=(e,t,n)=>{e=Ri(e,255),t=Ri(t,255),n=Ri(n,255);const r=Math.max(e,t,n),o=Math.min(e,t,n);let a;const i=r,s=r-o,c=0===r?0:s/r;if(r===o)a=0;else{switch(r){case e:a=(t-n)/s+(t<n?6:0);break;case t:a=(n-e)/s+2;break;case n:a=(e-t)/s+4;break}a/=6}return{h:360*a,s:100*c,v:100*i}},Hi=function(e,t,n){e=6*Ri(e,360),t=Ri(t,100),n=Ri(n,100);const r=Math.floor(e),o=e-r,a=n*(1-t),i=n*(1-o*t),s=n*(1-(1-o)*t),c=r%6,l=[n,i,a,a,s,n][c],u=[s,n,n,i,a,a][c],d=[a,a,s,n,n,i][c];return{r:Math.round(255*l),g:Math.round(255*u),b:Math.round(255*d)}};class Yi{constructor(e={}){this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this.enableAlpha=!1,this.format="hex",this.value="";for(const t in e)Object(Q["hasOwn"])(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)Object(Q["hasOwn"])(e,n)&&this.set(n,e[n])}get(e){return"alpha"===e?Math.floor(this["_"+e]):this["_"+e]}toRgb(){return Hi(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}=Gi(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}=zi(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,a;3===n.length?(r=Fi(n[0]+n[0]),o=Fi(n[1]+n[1]),a=Fi(n[2]+n[2])):6!==n.length&&8!==n.length||(r=Fi(n.slice(0,2)),o=Fi(n.slice(2,4)),a=Fi(n.slice(4,6))),8===n.length?this._alpha=Fi(n.slice(6))/255*100:3!==n.length&&6!==n.length||(this._alpha=100);const{h:i,s:s,v:c}=zi(r,o,a);t(i,s,c)}}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=Ai(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=`${Vi(Hi(e,t,n))}${Ui(255*r/100)}`;break;default:{const{r:r,g:o,b:a}=Hi(e,t,n);this.value=`rgba(${r}, ${o}, ${a}, ${this.get("alpha")/100})`}}else switch(o){case"hsl":{const r=Ai(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:a}=Hi(e,t,n);this.value=`rgb(${r}, ${o}, ${a})`;break}default:this.value=Vi(Hi(e,t,n))}}}const qi=Object(s["defineComponent"])({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0}},setup(e){const t=Object(m["d"])("color-predefine"),{currentColor:n}=Object(s["inject"])(Li),r=Object(s["ref"])(a(e.colors,e.color));function o(t){e.color.fromString(e.colors[t])}function a(e,t){return e.map(e=>{const n=new Yi;return n.enableAlpha=!0,n.format="rgba",n.fromString(e),n.selected=n.value===t.value,n})}return Object(s["watch"])(()=>n.value,e=>{const t=new Yi;t.fromString(e),r.value.forEach(e=>{e.selected=t.compare(e)})}),Object(s["watchEffect"])(()=>{r.value=a(e.colors,e.color)}),{rgbaColors:r,handleSelect:o,ns:t}}}),Wi=["onClick"];function Ki(e,t,n,r,o,a){return Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{class:Object(s["normalizeClass"])(e.ns.b())},[Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(e.ns.e("colors"))},[(Object(s["openBlock"])(!0),Object(s["createElementBlock"])(s["Fragment"],null,Object(s["renderList"])(e.rgbaColors,(t,n)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:e.colors[n],class:Object(s["normalizeClass"])([e.ns.e("color-selector"),e.ns.is("alpha",t._alpha<100),{selected:t.selected}]),onClick:t=>e.handleSelect(n)},[Object(s["createElementVNode"])("div",{style:Object(s["normalizeStyle"])({backgroundColor:t.value})},null,4)],10,Wi))),128))],2)],2)}var $i=Object(h["a"])(qi,[["render",Ki],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/predefine.vue"]]);const Ji=Object(s["defineComponent"])({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(e){const t=Object(m["d"])("color-svpanel"),n=Object(s["getCurrentInstance"])(),r=Object(s["ref"])(0),o=Object(s["ref"])(0),a=Object(s["ref"])("hsl(0, 100%, 50%)"),i=Object(s["computed"])(()=>{const t=e.color.get("hue"),n=e.color.get("value");return{hue:t,value:n}});function c(){const t=e.color.get("saturation"),i=e.color.get("value"),s=n.vnode.el,{clientWidth:c,clientHeight:l}=s;o.value=t*c/100,r.value=(100-i)*l/100,a.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}function l(t){const a=n.vnode.el,i=a.getBoundingClientRect(),{clientX:s,clientY:c}=bi(t);let l=s-i.left,u=c-i.top;l=Math.max(0,l),l=Math.min(l,i.width),u=Math.max(0,u),u=Math.min(u,i.height),o.value=l,r.value=u,e.color.set({saturation:l/i.width*100,value:100-u/i.height*100})}return Object(s["watch"])(()=>i.value,()=>{c()}),Object(s["onMounted"])(()=>{vi(n.vnode.el,{drag:e=>{l(e)},end:e=>{l(e)}}),c()}),{cursorTop:r,cursorLeft:o,background:a,colorValue:i,handleDrag:l,update:c,ns:t}}}),Qi=Object(s["createElementVNode"])("div",null,null,-1),Xi=[Qi];function Zi(e,t,n,r,o,a){return Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{class:Object(s["normalizeClass"])(e.ns.b()),style:Object(s["normalizeStyle"])({backgroundColor:e.background})},[Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(e.ns.e("white"))},null,2),Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(e.ns.e("black"))},null,2),Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(e.ns.e("cursor")),style:Object(s["normalizeStyle"])({top:e.cursorTop+"px",left:e.cursorLeft+"px"})},Xi,6)],6)}var es=Object(h["a"])(Ji,[["render",Zi],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/sv-panel.vue"]]);const ts=["id","aria-label","aria-labelledby","aria-description","tabindex","onKeydown"],ns=Object(s["defineComponent"])({name:"ElColorPicker"}),rs=Object(s["defineComponent"])({...ns,props:ji,emits:Di,setup(e,{expose:t,emit:n}){const r=e,{t:o}=Object(Vn["b"])(),a=Object(m["d"])("color"),{formItem:i}=Object(Pr["a"])(),c=Object(xt["b"])(),l=Object(xt["a"])(),{inputId:u,isLabeledByFormItem:p}=Object(Pr["b"])(r,{formItemContext:i}),f=Object(s["ref"])(),h=Object(s["ref"])(),v=Object(s["ref"])(),_=Object(s["ref"])();let y=!0;const b=Object(s["reactive"])(new Yi({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue})),O=Object(s["ref"])(!1),M=Object(s["ref"])(!1),k=Object(s["ref"])(""),C=Object(s["computed"])(()=>r.modelValue||M.value?j(b,r.showAlpha):"transparent"),I=Object(s["computed"])(()=>r.modelValue||M.value?b.value:""),S=Object(s["computed"])(()=>p.value?void 0:r.label||o("el.colorpicker.defaultLabel")),T=Object(s["computed"])(()=>p.value?null==i?void 0:i.labelId:void 0),E=Object(s["computed"])(()=>[a.b("picker"),a.is("disabled",l.value),a.bm("picker",c.value)]);function j(e,t){if(!(e instanceof Yi))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 D(e){O.value=e}const L=Object(x["debounce"])(D,100);function A(){l.value||D(!0)}function N(){L(!1),U()}function U(){Object(s["nextTick"])(()=>{r.modelValue?b.fromString(r.modelValue):(b.value="",Object(s["nextTick"])(()=>{M.value=!1}))})}function V(){l.value||L(!O.value)}function B(){b.fromString(k.value)}function F(){const e=b.value;n(d["c"],e),n("change",e),r.validateEvent&&(null==i||i.validate("change").catch(e=>Object(g["a"])(e))),L(!1),Object(s["nextTick"])(()=>{const e=new Yi({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue});b.compare(e)||U()})}function G(){L(!1),n(d["c"],null),n("change",null),null!==r.modelValue&&r.validateEvent&&(null==i||i.validate("change").catch(e=>Object(g["a"])(e))),U()}return Object(s["onMounted"])(()=>{r.modelValue&&(k.value=I.value)}),Object(s["watch"])(()=>r.modelValue,e=>{e?e&&e!==b.value&&(y=!1,b.fromString(e)):M.value=!1}),Object(s["watch"])(()=>I.value,e=>{k.value=e,y&&n("activeChange",e),y=!0}),Object(s["watch"])(()=>b.value,()=>{r.modelValue||M.value||(M.value=!0)}),Object(s["watch"])(()=>O.value,()=>{Object(s["nextTick"])(()=>{var e,t,n;null==(e=f.value)||e.update(),null==(t=h.value)||t.update(),null==(n=v.value)||n.update()})}),Object(s["provide"])(Li,{currentColor:I}),t({color:b,show:A,hide:N}),(e,t)=>(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(Dt),{ref_key:"popper",ref:_,visible:O.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[Object(s["unref"])(a).be("picker","panel"),Object(s["unref"])(a).b("dropdown"),e.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",transition:Object(s["unref"])(a).namespace.value+"-zoom-in-top",persistent:""},{content:Object(s["withCtx"])(()=>[Object(s["withDirectives"])((Object(s["openBlock"])(),Object(s["createElementBlock"])("div",null,[Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(a).be("dropdown","main-wrapper"))},[Object(s["createVNode"])(Ei,{ref_key:"hue",ref:f,class:"hue-slider",color:Object(s["unref"])(b),vertical:""},null,8,["color"]),Object(s["createVNode"])(es,{ref_key:"sv",ref:h,color:Object(s["unref"])(b)},null,8,["color"])],2),e.showAlpha?(Object(s["openBlock"])(),Object(s["createBlock"])(Ii,{key:0,ref_key:"alpha",ref:v,color:Object(s["unref"])(b)},null,8,["color"])):Object(s["createCommentVNode"])("v-if",!0),e.predefine?(Object(s["openBlock"])(),Object(s["createBlock"])($i,{key:1,ref:"predefine",color:Object(s["unref"])(b),colors:e.predefine},null,8,["color","colors"])):Object(s["createCommentVNode"])("v-if",!0),Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(a).be("dropdown","btns"))},[Object(s["createElementVNode"])("span",{class:Object(s["normalizeClass"])(Object(s["unref"])(a).be("dropdown","value"))},[Object(s["createVNode"])(Object(s["unref"])(P["a"]),{modelValue:k.value,"onUpdate:modelValue":t[0]||(t[0]=e=>k.value=e),"validate-event":!1,size:"small",onKeyup:Object(s["withKeys"])(B,["enter"]),onBlur:B},null,8,["modelValue","onKeyup"])],2),Object(s["createVNode"])(Object(s["unref"])(bn["a"]),{class:Object(s["normalizeClass"])(Object(s["unref"])(a).be("dropdown","link-btn")),text:"",size:"small",onClick:G},{default:Object(s["withCtx"])(()=>[Object(s["createTextVNode"])(Object(s["toDisplayString"])(Object(s["unref"])(o)("el.colorpicker.clear")),1)]),_:1},8,["class"]),Object(s["createVNode"])(Object(s["unref"])(bn["a"]),{plain:"",size:"small",class:Object(s["normalizeClass"])(Object(s["unref"])(a).be("dropdown","btn")),onClick:F},{default:Object(s["withCtx"])(()=>[Object(s["createTextVNode"])(Object(s["toDisplayString"])(Object(s["unref"])(o)("el.colorpicker.confirm")),1)]),_:1},8,["class"])],2)])),[[Object(s["unref"])(ba),N]])]),default:Object(s["withCtx"])(()=>[Object(s["createElementVNode"])("div",{id:Object(s["unref"])(u),class:Object(s["normalizeClass"])(Object(s["unref"])(E)),role:"button","aria-label":Object(s["unref"])(S),"aria-labelledby":Object(s["unref"])(T),"aria-description":Object(s["unref"])(o)("el.colorpicker.description",{color:e.modelValue||""}),tabindex:e.tabindex,onKeydown:Object(s["withKeys"])(V,["enter"])},[Object(s["unref"])(l)?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:0,class:Object(s["normalizeClass"])(Object(s["unref"])(a).be("picker","mask"))},null,2)):Object(s["createCommentVNode"])("v-if",!0),Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(a).be("picker","trigger")),onClick:V},[Object(s["createElementVNode"])("span",{class:Object(s["normalizeClass"])([Object(s["unref"])(a).be("picker","color"),Object(s["unref"])(a).is("alpha",e.showAlpha)])},[Object(s["createElementVNode"])("span",{class:Object(s["normalizeClass"])(Object(s["unref"])(a).be("picker","color-inner")),style:Object(s["normalizeStyle"])({backgroundColor:Object(s["unref"])(C)})},[Object(s["withDirectives"])(Object(s["createVNode"])(Object(s["unref"])(w["a"]),{class:Object(s["normalizeClass"])([Object(s["unref"])(a).be("picker","icon"),Object(s["unref"])(a).is("icon-arrow-down")])},{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(Object(s["unref"])(R["ArrowDown"]))]),_:1},8,["class"]),[[s["vShow"],e.modelValue||M.value]]),e.modelValue||M.value?Object(s["createCommentVNode"])("v-if",!0):(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(w["a"]),{key:0,class:Object(s["normalizeClass"])([Object(s["unref"])(a).be("picker","empty"),Object(s["unref"])(a).is("icon-close")])},{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(Object(s["unref"])(R["Close"]))]),_:1},8,["class"]))],6)],2)],2)],42,ts)]),_:1},8,["visible","popper-class","transition"]))}});var os=Object(h["a"])(rs,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/color-picker.vue"]]);const as=Object(k["a"])(os);var is=n("b6c4");const ss=Object(s["defineComponent"])({name:"ElContainer"}),cs=Object(s["defineComponent"])({...ss,props:{direction:{type:String}},setup(e){const t=e,n=Object(s["useSlots"])(),r=Object(m["d"])("container"),o=Object(s["computed"])(()=>{if("vertical"===t.direction)return!0;if("horizontal"===t.direction)return!1;if(n&&n.default){const e=n.default();return e.some(e=>{const t=e.type.name;return"ElHeader"===t||"ElFooter"===t})}return!1});return(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("section",{class:Object(s["normalizeClass"])([Object(s["unref"])(r).b(),Object(s["unref"])(r).is("vertical",Object(s["unref"])(o))])},[Object(s["renderSlot"])(e.$slots,"default")],2))}});var ls=Object(h["a"])(cs,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/container.vue"]]);const us=Object(s["defineComponent"])({name:"ElAside"}),ds=Object(s["defineComponent"])({...us,props:{width:{type:String,default:null}},setup(e){const t=e,n=Object(m["d"])("aside"),r=Object(s["computed"])(()=>t.width?n.cssVarBlock({width:t.width}):{});return(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("aside",{class:Object(s["normalizeClass"])(Object(s["unref"])(n).b()),style:Object(s["normalizeStyle"])(Object(s["unref"])(r))},[Object(s["renderSlot"])(e.$slots,"default")],6))}});var ps=Object(h["a"])(ds,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/aside.vue"]]);const fs=Object(s["defineComponent"])({name:"ElFooter"}),hs=Object(s["defineComponent"])({...fs,props:{height:{type:String,default:null}},setup(e){const t=e,n=Object(m["d"])("footer"),r=Object(s["computed"])(()=>t.height?n.cssVarBlock({height:t.height}):{});return(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("footer",{class:Object(s["normalizeClass"])(Object(s["unref"])(n).b()),style:Object(s["normalizeStyle"])(Object(s["unref"])(r))},[Object(s["renderSlot"])(e.$slots,"default")],6))}});var ms=Object(h["a"])(hs,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/footer.vue"]]);const vs=Object(s["defineComponent"])({name:"ElHeader"}),gs=Object(s["defineComponent"])({...vs,props:{height:{type:String,default:null}},setup(e){const t=e,n=Object(m["d"])("header"),r=Object(s["computed"])(()=>t.height?n.cssVarBlock({height:t.height}):{});return(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("header",{class:Object(s["normalizeClass"])(Object(s["unref"])(n).b()),style:Object(s["normalizeStyle"])(Object(s["unref"])(r))},[Object(s["renderSlot"])(e.$slots,"default")],6))}});var _s=Object(h["a"])(gs,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/header.vue"]]);const ys=Object(s["defineComponent"])({name:"ElMain"}),bs=Object(s["defineComponent"])({...ys,setup(e){const t=Object(m["d"])("main");return(e,n)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("main",{class:Object(s["normalizeClass"])(Object(s["unref"])(t).b())},[Object(s["renderSlot"])(e.$slots,"default")],2))}});var Os=Object(h["a"])(bs,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/main.vue"]]);const Ms=Object(k["a"])(ls,{Aside:ps,Footer:ms,Header:_s,Main:Os}),ks=Object(k["d"])(ps),Cs=Object(k["d"])(ms),ws=Object(k["d"])(_s),Is=Object(k["d"])(Os);var Ss=n("f906"),Ts=n.n(Ss),Es=n("8f19"),js=n.n(Es),Ds=n("2a04"),Ls=n.n(Ds),As=n("1ac8"),Ns=n.n(As),xs=n("8d82"),Rs=n.n(xs),Ps=n("d758"),Us=n.n(Ps),Vs=n("b375"),Bs=n.n(Vs);const Fs=Symbol(),Gs=Object(l["b"])({disabledHours:{type:Object(l["c"])(Function)},disabledMinutes:{type:Object(l["c"])(Function)},disabledSeconds:{type:Object(l["c"])(Function)}}),zs=Object(l["b"])({visible:Boolean,actualVisible:{type:Boolean,default:void 0},format:{type:String,default:""}}),Hs=Object(l["b"])({id:{type:Object(l["c"])([Array,String])},name:{type:Object(l["c"])([Array,String]),default:""},popperClass:{type:String,default:""},format:String,valueFormat:String,type:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:Object(l["c"])([String,Object]),default:R["CircleClose"]},editable:{type:Boolean,default:!0},prefixIcon:{type:Object(l["c"])([String,Object]),default:""},size:Lr["c"],readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:""},popperOptions:{type:Object(l["c"])(Object),default:()=>({})},modelValue:{type:Object(l["c"])([Date,Array,String,Number]),default:""},rangeSeparator:{type:String,default:"-"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:Object(l["c"])([Date,Array])},defaultTime:{type:Object(l["c"])([Date,Array])},isRange:{type:Boolean,default:!1},...Gs,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:{type:Boolean,default:!1},label:{type:String,default:void 0},tabindex:{type:Object(l["c"])([String,Number]),default:0},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean}),Ys=Object(l["b"])({...Hs,type:{type:Object(l["c"])(String),default:"date"}}),qs=["date","dates","year","month","week","range"],Ws=Object(l["b"])({disabledDate:{type:Object(l["c"])(Function)},date:{type:Object(l["c"])(Object),required:!0},minDate:{type:Object(l["c"])(Object)},maxDate:{type:Object(l["c"])(Object)},parsedValue:{type:Object(l["c"])([Object,Array])},rangeState:{type:Object(l["c"])(Object),default:()=>({endDate:null,selecting:!1})}}),Ks=Object(l["b"])({type:{type:Object(l["c"])(String),required:!0,values:Bn["b"]}}),$s=Object(l["b"])({unlinkPanels:Boolean,parsedValue:{type:Object(l["c"])(Array)}}),Js=e=>({type:String,values:qs,default:e}),Qs=Object(l["b"])({...Ks,parsedValue:{type:Object(l["c"])([Object,Array])},visible:{type:Boolean},format:{type:String,default:""}}),Xs=Object(l["b"])({...Ws,cellClassName:{type:Object(l["c"])(Function)},showWeekNumber:Boolean,selectionMode:Js("date")}),Zs=e=>{if(!Object(Q["isArray"])(e))return!1;const[t,n]=e;return Mn.a.isDayjs(t)&&Mn.a.isDayjs(n)&&t.isSameOrBefore(n)},ec=(e,{lang:t,unit:n,unlinkPanels:r})=>{let o;if(Object(Q["isArray"])(e)){let[o,a]=e.map(e=>Mn()(e).locale(t));return r||(a=o.add(1,n)),[o,a]}return o=e?Mn()(e):Mn()(),o=o.locale(t),[o,o.add(1,n)]},tc=(e,t,{columnIndexOffset:n,startDate:r,nextEndDate:o,now:a,unit:i,relativeDateGetter:s,setCellMetadata:c,setRowMetadata:l})=>{for(let u=0;u<e.row;u++){const d=t[u];for(let t=0;t<e.column;t++){let l=d[t+n];l||(l={row:u,column:t,type:"normal",inRange:!1,start:!1,end:!1});const p=u*e.column+t,f=s(p);l.dayjs=f,l.date=f.toDate(),l.timestamp=f.valueOf(),l.type="normal",l.inRange=!!(r&&f.isSameOrAfter(r,i)&&o&&f.isSameOrBefore(o,i))||!!(r&&f.isSameOrBefore(r,i)&&o&&f.isSameOrAfter(o,i)),(null==r?void 0:r.isSameOrAfter(o))?(l.start=!!o&&f.isSame(o,i),l.end=r&&f.isSame(r,i)):(l.start=!!r&&f.isSame(r,i),l.end=!!o&&f.isSame(o,i));const h=f.isSame(a,i);h&&(l.type="today"),null==c||c(l,{rowIndex:u,columnIndex:t}),d[t+n]=l}null==l||l(d)}},nc=Object(l["b"])({cell:{type:Object(l["c"])(Object)}});var rc=Object(s["defineComponent"])({name:"ElDatePickerCell",props:nc,setup(e){const t=Object(m["d"])("date-table-cell"),{slots:n}=Object(s["inject"])(Fs);return()=>{const{cell:r}=e;if(n.default){const e=n.default(r).filter(e=>-2!==e.patchFlag&&"Symbol(Comment)"!==e.type.toString());if(e.length)return e}return Object(s["createVNode"])("div",{class:t.b()},[Object(s["createVNode"])("span",{class:t.e("text")},[null==r?void 0:r.text])])}}});const oc=["aria-label","onMousedown"],ac={key:0,scope:"col"},ic=["aria-label"],sc=["aria-current","aria-selected","tabindex"],cc=Object(s["defineComponent"])({__name:"basic-date-table",props:Xs,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const r=e,o=Object(m["d"])("date-table"),{t:a,lang:i}=Object(Vn["b"])(),c=Object(s["ref"])(),l=Object(s["ref"])(),u=Object(s["ref"])(),d=Object(s["ref"])(),p=Object(s["ref"])([[],[],[],[],[],[]]);let f=!1;const h=r.date.$locale().weekStart||7,v=r.date.locale("en").localeData().weekdaysShort().map(e=>e.toLowerCase()),g=Object(s["computed"])(()=>h>3?7-h:-h),_=Object(s["computed"])(()=>{const e=r.date.startOf("month");return e.subtract(e.day()||7,"day")}),y=Object(s["computed"])(()=>v.concat(v).slice(h,h+7)),b=Object(s["computed"])(()=>Object(x["flatten"])(I.value).some(e=>e.isCurrent)),O=Object(s["computed"])(()=>{const e=r.date.startOf("month"),t=e.day()||7,n=e.daysInMonth(),o=e.subtract(1,"month").daysInMonth();return{startOfMonthDay:t,dateCountOfMonth:n,dateCountOfLastMonth:o}}),M=Object(s["computed"])(()=>"dates"===r.selectionMode?na(r.parsedValue):[]),k=(e,{count:t,rowIndex:n,columnIndex:r})=>{const{startOfMonthDay:o,dateCountOfMonth:a,dateCountOfLastMonth:i}=Object(s["unref"])(O),c=Object(s["unref"])(g);if(!(n>=0&&n<=1))return t<=a?e.text=t:(e.text=t-a,e.type="next-month"),!0;{const a=o+c<0?7+o+c:o+c;if(r+7*n>=a)return e.text=t,!0;e.text=i-(a-r%7)+1+7*n,e.type="prev-month"}return!1},C=(e,{columnIndex:t,rowIndex:n},o)=>{const{disabledDate:a,cellClassName:i}=r,c=Object(s["unref"])(M),l=k(e,{count:o,rowIndex:n,columnIndex:t}),u=e.dayjs.toDate();return e.selected=c.find(t=>t.valueOf()===e.dayjs.valueOf()),e.isSelected=!!e.selected,e.isCurrent=E(e),e.disabled=null==a?void 0:a(u),e.customClass=null==i?void 0:i(u),l},w=e=>{if("week"===r.selectionMode){const[t,n]=r.showWeekNumber?[1,7]:[0,6],o=B(e[t+1]);e[t].inRange=o,e[t].start=o,e[n].inRange=o,e[n].end=o}},I=Object(s["computed"])(()=>{const{minDate:e,maxDate:t,rangeState:n,showWeekNumber:o}=r,a=g.value,c=p.value,l="day";let u=1;if(o)for(let r=0;r<6;r++)c[r][0]||(c[r][0]={type:"week",text:_.value.add(7*r+1,l).week()});return tc({row:6,column:7},c,{startDate:e,columnIndexOffset:o?1:0,nextEndDate:n.endDate||t||n.selecting&&e||null,now:Mn()().locale(Object(s["unref"])(i)).startOf(l),unit:l,relativeDateGetter:e=>_.value.add(e-a,l),setCellMetadata:(...e)=>{C(...e,u)&&(u+=1)},setRowMetadata:w}),c});Object(s["watch"])(()=>r.date,async()=>{var e,t;(null==(e=c.value)?void 0:e.contains(document.activeElement))&&(await Object(s["nextTick"])(),null==(t=l.value)||t.focus())});const S=async()=>{var e;null==(e=l.value)||e.focus()},T=(e="")=>["normal","today"].includes(e),E=e=>"date"===r.selectionMode&&T(e.type)&&j(e,r.parsedValue),j=(e,t)=>!!t&&Mn()(t).locale(i.value).isSame(r.date.date(Number(e.text)),"day"),D=e=>{const t=[];return T(e.type)&&!e.disabled?(t.push("available"),"today"===e.type&&t.push("today")):t.push(e.type),E(e)&&t.push("current"),e.inRange&&(T(e.type)||"week"===r.selectionMode)&&(t.push("in-range"),e.start&&t.push("start-date"),e.end&&t.push("end-date")),e.disabled&&t.push("disabled"),e.selected&&t.push("selected"),e.customClass&&t.push(e.customClass),t.join(" ")},L=(e,t)=>{const n=7*e+(t-(r.showWeekNumber?1:0))-g.value;return _.value.add(n,"day")},A=e=>{var t;if(!r.rangeState.selecting)return;let o=e.target;if("SPAN"===o.tagName&&(o=null==(t=o.parentNode)?void 0:t.parentNode),"DIV"===o.tagName&&(o=o.parentNode),"TD"!==o.tagName)return;const a=o.parentNode.rowIndex-1,i=o.cellIndex;I.value[a][i].disabled||a===u.value&&i===d.value||(u.value=a,d.value=i,n("changerange",{selecting:!0,endDate:L(a,i)}))},N=e=>!b.value&&1===(null==e?void 0:e.text)&&"normal"===e.type||e.isCurrent,R=e=>{f||b.value||"date"!==r.selectionMode||V(e,!0)},P=e=>{const t=e.target.closest("td");t&&(f=!0)},U=e=>{const t=e.target.closest("td");t&&(f=!1)},V=(e,t=!1)=>{const o=e.target.closest("td");if(!o)return;const a=o.parentNode.rowIndex-1,i=o.cellIndex,s=I.value[a][i];if(s.disabled||"week"===s.type)return;const c=L(a,i);if("range"===r.selectionMode)r.rangeState.selecting&&r.minDate?(c>=r.minDate?n("pick",{minDate:r.minDate,maxDate:c}):n("pick",{minDate:c,maxDate:r.minDate}),n("select",!1)):(n("pick",{minDate:c,maxDate:null}),n("select",!0));else if("date"===r.selectionMode)n("pick",c,t);else if("week"===r.selectionMode){const e=c.week(),t=`${c.year()}w${e}`;n("pick",{year:c.year(),week:e,value:t,date:c.startOf("week")})}else if("dates"===r.selectionMode){const e=s.selected?na(r.parsedValue).filter(e=>(null==e?void 0:e.valueOf())!==c.valueOf()):na(r.parsedValue).concat([c]);n("pick",e)}},B=e=>{if("week"!==r.selectionMode)return!1;let t=r.date.startOf("day");if("prev-month"===e.type&&(t=t.subtract(1,"month")),"next-month"===e.type&&(t=t.add(1,"month")),t=t.date(Number.parseInt(e.text,10)),r.parsedValue&&!Array.isArray(r.parsedValue)){const e=(r.parsedValue.day()-h+7)%7-1,n=r.parsedValue.subtract(e,"day");return n.isSame(t,"day")}return!1};return t({focus:S}),(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("table",{role:"grid","aria-label":Object(s["unref"])(a)("el.datepicker.dateTablePrompt"),cellspacing:"0",cellpadding:"0",class:Object(s["normalizeClass"])([Object(s["unref"])(o).b(),{"is-week-mode":"week"===e.selectionMode}]),onClick:V,onMousemove:A,onMousedown:Object(s["withModifiers"])(P,["prevent"]),onMouseup:U},[Object(s["createElementVNode"])("tbody",{ref_key:"tbodyRef",ref:c},[Object(s["createElementVNode"])("tr",null,[e.showWeekNumber?(Object(s["openBlock"])(),Object(s["createElementBlock"])("th",ac,Object(s["toDisplayString"])(Object(s["unref"])(a)("el.datepicker.week")),1)):Object(s["createCommentVNode"])("v-if",!0),(Object(s["openBlock"])(!0),Object(s["createElementBlock"])(s["Fragment"],null,Object(s["renderList"])(Object(s["unref"])(y),(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("th",{key:t,scope:"col","aria-label":Object(s["unref"])(a)("el.datepicker.weeksFull."+e)},Object(s["toDisplayString"])(Object(s["unref"])(a)("el.datepicker.weeks."+e)),9,ic))),128))]),(Object(s["openBlock"])(!0),Object(s["createElementBlock"])(s["Fragment"],null,Object(s["renderList"])(Object(s["unref"])(I),(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("tr",{key:t,class:Object(s["normalizeClass"])([Object(s["unref"])(o).e("row"),{current:B(e[1])}])},[(Object(s["openBlock"])(!0),Object(s["createElementBlock"])(s["Fragment"],null,Object(s["renderList"])(e,(e,n)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("td",{key:`${t}.${n}`,ref_for:!0,ref:t=>N(e)&&(l.value=t),class:Object(s["normalizeClass"])(D(e)),"aria-current":e.isCurrent?"date":void 0,"aria-selected":e.isCurrent,tabindex:N(e)?0:-1,onFocus:R},[Object(s["createVNode"])(Object(s["unref"])(rc),{cell:e},null,8,["cell"])],42,sc))),128))],2))),128))],512)],42,oc))}});var lc=Object(h["a"])(cc,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-date-table.vue"]]);const uc=Object(l["b"])({...Ws,selectionMode:Js("month")}),dc=["aria-label"],pc=["aria-selected","aria-label","tabindex","onKeydown"],fc={class:"cell"},hc=Object(s["defineComponent"])({__name:"basic-month-table",props:uc,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const r=e,o=(e,t,n)=>{const r=Mn()().locale(n).startOf("month").month(t).year(e),o=r.daysInMonth();return Cn(o).map(e=>r.add(e,"day").toDate())},a=Object(m["d"])("month-table"),{t:i,lang:c}=Object(Vn["b"])(),l=Object(s["ref"])(),u=Object(s["ref"])(),d=Object(s["ref"])(r.date.locale("en").localeData().monthsShort().map(e=>e.toLowerCase())),p=Object(s["ref"])([[],[],[]]),f=Object(s["ref"])(),h=Object(s["ref"])(),g=Object(s["computed"])(()=>{var e,t;const n=p.value,o=Mn()().locale(c.value).startOf("month");for(let a=0;a<3;a++){const i=n[a];for(let n=0;n<4;n++){const s=i[n]||(i[n]={row:a,column:n,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1});s.type="normal";const c=4*a+n,l=r.date.startOf("year").month(c),u=r.rangeState.endDate||r.maxDate||r.rangeState.selecting&&r.minDate||null;s.inRange=!!(r.minDate&&l.isSameOrAfter(r.minDate,"month")&&u&&l.isSameOrBefore(u,"month"))||!!(r.minDate&&l.isSameOrBefore(r.minDate,"month")&&u&&l.isSameOrAfter(u,"month")),(null==(e=r.minDate)?void 0:e.isSameOrAfter(u))?(s.start=!(!u||!l.isSame(u,"month")),s.end=r.minDate&&l.isSame(r.minDate,"month")):(s.start=!(!r.minDate||!l.isSame(r.minDate,"month")),s.end=!(!u||!l.isSame(u,"month")));const d=o.isSame(l);d&&(s.type="today"),s.text=c,s.disabled=(null==(t=r.disabledDate)?void 0:t.call(r,l.toDate()))||!1}}return n}),_=()=>{var e;null==(e=u.value)||e.focus()},y=e=>{const t={},n=r.date.year(),a=new Date,i=e.text;return t.disabled=!!r.disabledDate&&o(n,i,c.value).every(r.disabledDate),t.current=na(r.parsedValue).findIndex(e=>Mn.a.isDayjs(e)&&e.year()===n&&e.month()===i)>=0,t.today=a.getFullYear()===n&&a.getMonth()===i,e.inRange&&(t["in-range"]=!0,e.start&&(t["start-date"]=!0),e.end&&(t["end-date"]=!0)),t},b=e=>{const t=r.date.year(),n=e.text;return na(r.date).findIndex(e=>e.year()===t&&e.month()===n)>=0},O=e=>{var t;if(!r.rangeState.selecting)return;let o=e.target;if("A"===o.tagName&&(o=null==(t=o.parentNode)?void 0:t.parentNode),"DIV"===o.tagName&&(o=o.parentNode),"TD"!==o.tagName)return;const a=o.parentNode.rowIndex,i=o.cellIndex;g.value[a][i].disabled||a===f.value&&i===h.value||(f.value=a,h.value=i,n("changerange",{selecting:!0,endDate:r.date.startOf("year").month(4*a+i)}))},M=e=>{var t;const o=null==(t=e.target)?void 0:t.closest("td");if("TD"!==(null==o?void 0:o.tagName))return;if(Object(v["d"])(o,"disabled"))return;const a=o.cellIndex,i=o.parentNode.rowIndex,s=4*i+a,c=r.date.startOf("year").month(s);"range"===r.selectionMode?r.rangeState.selecting?(r.minDate&&c>=r.minDate?n("pick",{minDate:r.minDate,maxDate:c}):n("pick",{minDate:c,maxDate:r.minDate}),n("select",!1)):(n("pick",{minDate:c,maxDate:null}),n("select",!0)):n("pick",s)};return Object(s["watch"])(()=>r.date,async()=>{var e,t;(null==(e=l.value)?void 0:e.contains(document.activeElement))&&(await Object(s["nextTick"])(),null==(t=u.value)||t.focus())}),t({focus:_}),(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("table",{role:"grid","aria-label":Object(s["unref"])(i)("el.datepicker.monthTablePrompt"),class:Object(s["normalizeClass"])(Object(s["unref"])(a).b()),onClick:M,onMousemove:O},[Object(s["createElementVNode"])("tbody",{ref_key:"tbodyRef",ref:l},[(Object(s["openBlock"])(!0),Object(s["createElementBlock"])(s["Fragment"],null,Object(s["renderList"])(Object(s["unref"])(g),(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("tr",{key:t},[(Object(s["openBlock"])(!0),Object(s["createElementBlock"])(s["Fragment"],null,Object(s["renderList"])(e,(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("td",{key:t,ref_for:!0,ref:t=>b(e)&&(u.value=t),class:Object(s["normalizeClass"])(y(e)),"aria-selected":""+b(e),"aria-label":Object(s["unref"])(i)("el.datepicker.month"+(+e.text+1)),tabindex:b(e)?0:-1,onKeydown:[Object(s["withKeys"])(Object(s["withModifiers"])(M,["prevent","stop"]),["space"]),Object(s["withKeys"])(Object(s["withModifiers"])(M,["prevent","stop"]),["enter"])]},[Object(s["createElementVNode"])("div",null,[Object(s["createElementVNode"])("span",fc,Object(s["toDisplayString"])(Object(s["unref"])(i)("el.datepicker.months."+d.value[e.text])),1)])],42,pc))),128))]))),128))],512)],42,dc))}});var mc=Object(h["a"])(hc,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-month-table.vue"]]);const{date:vc,disabledDate:gc,parsedValue:_c}=Ws,yc=Object(l["b"])({date:vc,disabledDate:gc,parsedValue:_c}),bc=["aria-label"],Oc=["aria-selected","tabindex","onKeydown"],Mc={class:"cell"},kc={key:1},Cc=Object(s["defineComponent"])({__name:"basic-year-table",props:yc,emits:["pick"],setup(e,{expose:t,emit:n}){const r=e,o=(e,t)=>{const n=Mn()(String(e)).locale(t).startOf("year"),r=n.endOf("year"),o=r.dayOfYear();return Cn(o).map(e=>n.add(e,"day").toDate())},a=Object(m["d"])("year-table"),{t:i,lang:c}=Object(Vn["b"])(),l=Object(s["ref"])(),u=Object(s["ref"])(),d=Object(s["computed"])(()=>10*Math.floor(r.date.year()/10)),p=()=>{var e;null==(e=u.value)||e.focus()},f=e=>{const t={},n=Mn()().locale(c.value);return t.disabled=!!r.disabledDate&&o(e,c.value).every(r.disabledDate),t.current=na(r.parsedValue).findIndex(t=>t.year()===e)>=0,t.today=n.year()===e,t},h=e=>e===d.value&&r.date.year()<d.value&&r.date.year()>d.value+9||na(r.date).findIndex(t=>t.year()===e)>=0,g=e=>{const t=e.target,r=t.closest("td");if(r&&r.textContent){if(Object(v["d"])(r,"disabled"))return;const e=r.textContent||r.innerText;n("pick",Number(e))}};return Object(s["watch"])(()=>r.date,async()=>{var e,t;(null==(e=l.value)?void 0:e.contains(document.activeElement))&&(await Object(s["nextTick"])(),null==(t=u.value)||t.focus())}),t({focus:p}),(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("table",{role:"grid","aria-label":Object(s["unref"])(i)("el.datepicker.yearTablePrompt"),class:Object(s["normalizeClass"])(Object(s["unref"])(a).b()),onClick:g},[Object(s["createElementVNode"])("tbody",{ref_key:"tbodyRef",ref:l},[(Object(s["openBlock"])(),Object(s["createElementBlock"])(s["Fragment"],null,Object(s["renderList"])(3,(e,t)=>Object(s["createElementVNode"])("tr",{key:t},[(Object(s["openBlock"])(),Object(s["createElementBlock"])(s["Fragment"],null,Object(s["renderList"])(4,(e,n)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])(s["Fragment"],{key:t+"_"+n},[4*t+n<10?(Object(s["openBlock"])(),Object(s["createElementBlock"])("td",{key:0,ref_for:!0,ref:e=>h(Object(s["unref"])(d)+4*t+n)&&(u.value=e),class:Object(s["normalizeClass"])(["available",f(Object(s["unref"])(d)+4*t+n)]),"aria-selected":""+h(Object(s["unref"])(d)+4*t+n),tabindex:h(Object(s["unref"])(d)+4*t+n)?0:-1,onKeydown:[Object(s["withKeys"])(Object(s["withModifiers"])(g,["prevent","stop"]),["space"]),Object(s["withKeys"])(Object(s["withModifiers"])(g,["prevent","stop"]),["enter"])]},[Object(s["createElementVNode"])("span",Mc,Object(s["toDisplayString"])(Object(s["unref"])(d)+4*t+n),1)],42,Oc)):(Object(s["openBlock"])(),Object(s["createElementBlock"])("td",kc))],64))),64))])),64))],512)],10,bc))}});var wc=Object(h["a"])(Cc,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-year-table.vue"]]);const Ic=Object(l["b"])({...zs,datetimeRole:String,parsedValue:{type:Object(l["c"])(Object)}}),Sc=({getAvailableHours:e,getAvailableMinutes:t,getAvailableSeconds:n})=>{const r=(r,o,a,i)=>{const s={hour:e,minute:t,second:n};let c=r;return["hour","minute","second"].forEach(e=>{if(s[e]){let t;const n=s[e];switch(e){case"minute":t=n(c.hour(),o,i);break;case"second":t=n(c.hour(),c.minute(),o,i);break;default:t=n(o,i);break}if((null==t?void 0:t.length)&&!t.includes(c[e]())){const n=a?0:t.length-1;c=c[e](t[n])}}}),c},o={},a=([e,t])=>{o[e]=t};return{timePickerOptions:o,getAvailableTime:r,onSetOption:a}},Tc=e=>{const t=(e,t)=>e||t,n=e=>!0!==e;return e.map(t).filter(n)},Ec=(e,t,n)=>{const r=(t,n)=>Dn(24,e&&(()=>null==e?void 0:e(t,n))),o=(e,n,r)=>Dn(60,t&&(()=>null==t?void 0:t(e,n,r))),a=(e,t,r,o)=>Dn(60,n&&(()=>null==n?void 0:n(e,t,r,o)));return{getHoursList:r,getMinutesList:o,getSecondsList:a}},jc=(e,t,n)=>{const{getHoursList:r,getMinutesList:o,getSecondsList:a}=Ec(e,t,n),i=(e,t)=>Tc(r(e,t)),s=(e,t,n)=>Tc(o(e,t,n)),c=(e,t,n,r)=>Tc(a(e,t,n,r));return{getAvailableHours:i,getAvailableMinutes:s,getAvailableSeconds:c}},Dc=e=>{const t=Object(s["ref"])(e.parsedValue);return Object(s["watch"])(()=>e.visible,n=>{n||(t.value=e.parsedValue)}),t},Lc=["hours","minutes","seconds"],Ac="HH:mm:ss",Nc="YYYY-MM-DD",xc={date:Nc,dates:Nc,week:"gggg[w]ww",year:"YYYY",month:"YYYY-MM",datetime:`${Nc} ${Ac}`,monthrange:"YYYY-MM",daterange:Nc,datetimerange:`${Nc} ${Ac}`},Rc=Object(l["b"])({role:{type:String,required:!0},spinnerDate:{type:Object(l["c"])(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:Object(l["c"])(String),default:""},...Gs}),Pc=100,Uc=600,Vc={beforeMount(e,t){const n=t.value,{interval:r=Pc,delay:o=Uc}=Object(Q["isFunction"])(n)?{}:n;let a,i;const s=()=>Object(Q["isFunction"])(n)?n():n.handler(),c=()=>{i&&(clearTimeout(i),i=void 0),a&&(clearInterval(a),a=void 0)};e.addEventListener("mousedown",e=>{0===e.button&&(c(),s(),document.addEventListener("mouseup",()=>c(),{once:!0}),i=setTimeout(()=>{a=setInterval(()=>{s()},r)},o))})}},Bc=["onClick"],Fc=["onMouseenter"],Gc=Object(s["defineComponent"])({__name:"basic-time-spinner",props:Rc,emits:["change","select-range","set-option"],setup(e,{emit:t}){const n=e,r=Object(m["d"])("time"),{getHoursList:o,getMinutesList:a,getSecondsList:i}=Ec(n.disabledHours,n.disabledMinutes,n.disabledSeconds);let c=!1;const l=Object(s["ref"])(),u=Object(s["ref"])(),d=Object(s["ref"])(),p=Object(s["ref"])(),f={hours:u,minutes:d,seconds:p},h=Object(s["computed"])(()=>n.showSeconds?Lc:Lc.slice(0,2)),g=Object(s["computed"])(()=>{const{spinnerDate:e}=n,t=e.hour(),r=e.minute(),o=e.second();return{hours:t,minutes:r,seconds:o}}),_=Object(s["computed"])(()=>{const{hours:e,minutes:t}=Object(s["unref"])(g);return{hours:o(n.role),minutes:a(e,n.role),seconds:i(e,t,n.role)}}),y=Object(s["computed"])(()=>{const{hours:e,minutes:t,seconds:n}=Object(s["unref"])(g);return{hours:kn(e,23),minutes:kn(t,59),seconds:kn(n,59)}}),b=Object(x["debounce"])(e=>{c=!1,k(e)},200),O=e=>{const t=!!n.amPmMode;if(!t)return"";const r="A"===n.amPmMode;let o=e<12?" am":" pm";return r&&(o=o.toUpperCase()),o},M=e=>{let n;switch(e){case"hours":n=[0,2];break;case"minutes":n=[3,5];break;case"seconds":n=[6,8];break}const[r,o]=n;t("select-range",r,o),l.value=e},k=e=>{S(e,Object(s["unref"])(g)[e])},C=()=>{k("hours"),k("minutes"),k("seconds")},I=e=>e.querySelector(`.${r.namespace.value}-scrollbar__wrap`),S=(e,t)=>{if(n.arrowControl)return;const r=Object(s["unref"])(f[e]);r&&r.$el&&(I(r.$el).scrollTop=Math.max(0,t*T(e)))},T=e=>{const t=Object(s["unref"])(f[e]),n=null==t?void 0:t.$el.querySelector("li");return n&&Number.parseFloat(Object(v["c"])(n,"height"))||0},E=()=>{D(1)},j=()=>{D(-1)},D=e=>{l.value||M("hours");const t=l.value,n=Object(s["unref"])(g)[t],r="hours"===l.value?24:60,o=L(t,n,e,r);A(t,o),S(t,o),Object(s["nextTick"])(()=>M(t))},L=(e,t,n,r)=>{let o=(t+n+r)%r;const a=Object(s["unref"])(_)[e];while(a[o]&&o!==t)o=(o+n+r)%r;return o},A=(e,r)=>{const o=Object(s["unref"])(_)[e],a=o[r];if(a)return;const{hours:i,minutes:c,seconds:l}=Object(s["unref"])(g);let u;switch(e){case"hours":u=n.spinnerDate.hour(r).minute(c).second(l);break;case"minutes":u=n.spinnerDate.hour(i).minute(r).second(l);break;case"seconds":u=n.spinnerDate.hour(i).minute(c).second(r);break}t("change",u)},N=(e,{value:t,disabled:n})=>{n||(A(e,t),M(e),S(e,t))},P=e=>{c=!0,b(e);const t=Math.min(Math.round((I(Object(s["unref"])(f[e]).$el).scrollTop-(.5*U(e)-10)/T(e)+3)/T(e)),"hours"===e?23:59);A(e,t)},U=e=>Object(s["unref"])(f[e]).$el.offsetHeight,V=()=>{const e=e=>{const t=Object(s["unref"])(f[e]);t&&t.$el&&(I(t.$el).onscroll=()=>{P(e)})};e("hours"),e("minutes"),e("seconds")};Object(s["onMounted"])(()=>{Object(s["nextTick"])(()=>{!n.arrowControl&&V(),C(),"start"===n.role&&M("hours")})});const B=(e,t)=>{f[t].value=e};return t("set-option",[n.role+"_scrollDown",D]),t("set-option",[n.role+"_emitSelectRange",M]),Object(s["watch"])(()=>n.spinnerDate,()=>{c||C()}),(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{class:Object(s["normalizeClass"])([Object(s["unref"])(r).b("spinner"),{"has-seconds":e.showSeconds}])},[e.arrowControl?Object(s["createCommentVNode"])("v-if",!0):(Object(s["openBlock"])(!0),Object(s["createElementBlock"])(s["Fragment"],{key:0},Object(s["renderList"])(Object(s["unref"])(h),t=>(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(ne),{key:t,ref_for:!0,ref:e=>B(e,t),class:Object(s["normalizeClass"])(Object(s["unref"])(r).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":Object(s["unref"])(r).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:e=>M(t),onMousemove:e=>k(t)},{default:Object(s["withCtx"])(()=>[(Object(s["openBlock"])(!0),Object(s["createElementBlock"])(s["Fragment"],null,Object(s["renderList"])(Object(s["unref"])(_)[t],(n,o)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("li",{key:o,class:Object(s["normalizeClass"])([Object(s["unref"])(r).be("spinner","item"),Object(s["unref"])(r).is("active",o===Object(s["unref"])(g)[t]),Object(s["unref"])(r).is("disabled",n)]),onClick:e=>N(t,{value:o,disabled:n})},["hours"===t?(Object(s["openBlock"])(),Object(s["createElementBlock"])(s["Fragment"],{key:0},[Object(s["createTextVNode"])(Object(s["toDisplayString"])(("0"+(e.amPmMode?o%12||12:o)).slice(-2))+Object(s["toDisplayString"])(O(o)),1)],64)):(Object(s["openBlock"])(),Object(s["createElementBlock"])(s["Fragment"],{key:1},[Object(s["createTextVNode"])(Object(s["toDisplayString"])(("0"+o).slice(-2)),1)],64))],10,Bc))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),e.arrowControl?(Object(s["openBlock"])(!0),Object(s["createElementBlock"])(s["Fragment"],{key:1},Object(s["renderList"])(Object(s["unref"])(h),t=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:t,class:Object(s["normalizeClass"])([Object(s["unref"])(r).be("spinner","wrapper"),Object(s["unref"])(r).is("arrow")]),onMouseenter:e=>M(t)},[Object(s["withDirectives"])((Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(w["a"]),{class:Object(s["normalizeClass"])(["arrow-up",Object(s["unref"])(r).be("spinner","arrow")])},{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(Object(s["unref"])(R["ArrowUp"]))]),_:1},8,["class"])),[[Object(s["unref"])(Vc),j]]),Object(s["withDirectives"])((Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(w["a"]),{class:Object(s["normalizeClass"])(["arrow-down",Object(s["unref"])(r).be("spinner","arrow")])},{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(Object(s["unref"])(R["ArrowDown"]))]),_:1},8,["class"])),[[Object(s["unref"])(Vc),E]]),Object(s["createElementVNode"])("ul",{class:Object(s["normalizeClass"])(Object(s["unref"])(r).be("spinner","list"))},[(Object(s["openBlock"])(!0),Object(s["createElementBlock"])(s["Fragment"],null,Object(s["renderList"])(Object(s["unref"])(y)[t],(n,o)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("li",{key:o,class:Object(s["normalizeClass"])([Object(s["unref"])(r).be("spinner","item"),Object(s["unref"])(r).is("active",n===Object(s["unref"])(g)[t]),Object(s["unref"])(r).is("disabled",Object(s["unref"])(_)[t][n])])},["number"===typeof n?(Object(s["openBlock"])(),Object(s["createElementBlock"])(s["Fragment"],{key:0},["hours"===t?(Object(s["openBlock"])(),Object(s["createElementBlock"])(s["Fragment"],{key:0},[Object(s["createTextVNode"])(Object(s["toDisplayString"])(("0"+(e.amPmMode?n%12||12:n)).slice(-2))+Object(s["toDisplayString"])(O(n)),1)],64)):(Object(s["openBlock"])(),Object(s["createElementBlock"])(s["Fragment"],{key:1},[Object(s["createTextVNode"])(Object(s["toDisplayString"])(("0"+n).slice(-2)),1)],64))],64)):Object(s["createCommentVNode"])("v-if",!0)],2))),128))],2)],42,Fc))),128)):Object(s["createCommentVNode"])("v-if",!0)],2))}});var zc=Object(h["a"])(Gc,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/basic-time-spinner.vue"]]);const Hc=Object(s["defineComponent"])({__name:"panel-time-pick",props:Ic,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,r=Object(s["inject"])("EP_PICKER_BASE"),{arrowControl:o,disabledHours:a,disabledMinutes:i,disabledSeconds:c,defaultValue:l}=r.props,{getAvailableHours:d,getAvailableMinutes:p,getAvailableSeconds:f}=jc(a,i,c),h=Object(m["d"])("time"),{t:v,lang:g}=Object(Vn["b"])(),_=Object(s["ref"])([0,2]),y=Dc(n),b=Object(s["computed"])(()=>Object(u["g"])(n.actualVisible)?h.namespace.value+"-zoom-in-top":""),O=Object(s["computed"])(()=>n.format.includes("ss")),M=Object(s["computed"])(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),k=e=>{const t=Mn()(e).locale(g.value),n=A(t);return t.isSame(n)},C=()=>{t("pick",y.value,!1)},w=(e=!1,r=!1)=>{r||t("pick",n.parsedValue,e)},I=e=>{if(!n.visible)return;const r=A(e).millisecond(0);t("pick",r,!0)},S=(e,n)=>{t("select-range",e,n),_.value=[e,n]},T=e=>{const t=[0,3].concat(O.value?[6]:[]),n=["hours","minutes"].concat(O.value?["seconds"]:[]),r=t.indexOf(_.value[0]),o=(r+e+t.length)%t.length;j["start_emitSelectRange"](n[o])},E=e=>{const t=e.code,{left:n,right:r,up:o,down:a}=Me["a"];if([n,r].includes(t)){const r=t===n?-1:1;return T(r),void e.preventDefault()}if([o,a].includes(t)){const n=t===o?-1:1;return j["start_scrollDown"](n),void e.preventDefault()}},{timePickerOptions:j,onSetOption:D,getAvailableTime:L}=Sc({getAvailableHours:d,getAvailableMinutes:p,getAvailableSeconds:f}),A=e=>L(e,n.datetimeRole||"",!0),N=e=>e?Mn()(e,n.format).locale(g.value):null,x=e=>e?e.format(n.format):null,R=()=>Mn()(l).locale(g.value);return t("set-picker-option",["isValidValue",k]),t("set-picker-option",["formatToString",x]),t("set-picker-option",["parseUserInput",N]),t("set-picker-option",["handleKeydownInput",E]),t("set-picker-option",["getRangeAvailableTime",A]),t("set-picker-option",["getDefaultValue",R]),(e,t)=>(Object(s["openBlock"])(),Object(s["createBlock"])(s["Transition"],{name:Object(s["unref"])(b)},{default:Object(s["withCtx"])(()=>[e.actualVisible||e.visible?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:0,class:Object(s["normalizeClass"])(Object(s["unref"])(h).b("panel"))},[Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])([Object(s["unref"])(h).be("panel","content"),{"has-seconds":Object(s["unref"])(O)}])},[Object(s["createVNode"])(zc,{ref:"spinner",role:e.datetimeRole||"start","arrow-control":Object(s["unref"])(o),"show-seconds":Object(s["unref"])(O),"am-pm-mode":Object(s["unref"])(M),"spinner-date":e.parsedValue,"disabled-hours":Object(s["unref"])(a),"disabled-minutes":Object(s["unref"])(i),"disabled-seconds":Object(s["unref"])(c),onChange:I,onSetOption:Object(s["unref"])(D),onSelectRange:S},null,8,["role","arrow-control","show-seconds","am-pm-mode","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onSetOption"])],2),Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(h).be("panel","footer"))},[Object(s["createElementVNode"])("button",{type:"button",class:Object(s["normalizeClass"])([Object(s["unref"])(h).be("panel","btn"),"cancel"]),onClick:C},Object(s["toDisplayString"])(Object(s["unref"])(v)("el.datepicker.cancel")),3),Object(s["createElementVNode"])("button",{type:"button",class:Object(s["normalizeClass"])([Object(s["unref"])(h).be("panel","btn"),"confirm"]),onClick:t[0]||(t[0]=e=>w())},Object(s["toDisplayString"])(Object(s["unref"])(v)("el.datepicker.confirm")),3)],2)],2)):Object(s["createCommentVNode"])("v-if",!0)]),_:1},8,["name"]))}});var Yc=Object(h["a"])(Hc,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/panel-time-pick.vue"]]);const qc=["onClick"],Wc=["aria-label"],Kc=["aria-label"],$c=["aria-label"],Jc=["aria-label"],Qc=Object(s["defineComponent"])({__name:"panel-date-pick",props:Qs,emits:["pick","set-picker-option","panel-change"],setup(e,{emit:t}){const n=e,r=(e,t,n)=>!0,o=Object(m["d"])("picker-panel"),a=Object(m["d"])("date-picker"),i=Object(s["useAttrs"])(),c=Object(s["useSlots"])(),{t:l,lang:u}=Object(Vn["b"])(),d=Object(s["inject"])("EP_PICKER_BASE"),p=Object(s["inject"])(de),{shortcuts:f,disabledDate:h,cellClassName:v,defaultTime:g,arrowControl:_}=d.props,y=Object(s["toRef"])(d.props,"defaultValue"),b=Object(s["ref"])(),O=Object(s["ref"])(Mn()().locale(u.value)),M=Object(s["ref"])(!1),k=Object(s["computed"])(()=>Mn()(g).locale(u.value)),C=Object(s["computed"])(()=>O.value.month()),I=Object(s["computed"])(()=>O.value.year()),S=Object(s["ref"])([]),T=Object(s["ref"])(null),E=Object(s["ref"])(null),j=e=>!(S.value.length>0)||r(e,S.value,n.format||"HH:mm:ss"),D=e=>!g||ne.value||M.value?W.value?e.millisecond(0):e.startOf("day"):k.value.year(e.year()).month(e.month()).date(e.date()),L=(e,...n)=>{if(e)if(Object(Q["isArray"])(e)){const r=e.map(D);t("pick",r,...n)}else t("pick",D(e),...n);else t("pick",e,...n);T.value=null,E.value=null,M.value=!1},A=(e,t)=>{if("date"===F.value){e=e;let r=n.parsedValue?n.parsedValue.year(e.year()).month(e.month()).date(e.date()):e;j(r)||(r=S.value[0][0].year(e.year()).month(e.month()).date(e.date())),O.value=r,L(r,W.value||t)}else"week"===F.value?L(e.date):"dates"===F.value&&L(e,!0)},N=e=>{const t=e?"add":"subtract";O.value=O.value[t](1,"month"),ye("month")},x=e=>{const t=O.value,n=e?"add":"subtract";O.value="year"===U.value?t[n](10,"year"):t[n](1,"year"),ye("year")},U=Object(s["ref"])("date"),V=Object(s["computed"])(()=>{const e=l("el.datepicker.year");if("year"===U.value){const t=10*Math.floor(I.value/10);return e?`${t} ${e} - ${t+9} ${e}`:`${t} - ${t+9}`}return`${I.value} ${e}`}),B=e=>{const n=Object(Q["isFunction"])(e.value)?e.value():e.value;n?L(Mn()(n).locale(u.value)):e.onClick&&e.onClick({attrs:i,slots:c,emit:t})},F=Object(s["computed"])(()=>{const{type:e}=n;return["week","month","year","dates"].includes(e)?e:"date"}),G=Object(s["computed"])(()=>"date"===F.value?U.value:F.value),z=Object(s["computed"])(()=>!!f.length),H=async e=>{O.value=O.value.startOf("month").month(e),"month"===F.value?L(O.value,!1):(U.value="date",["month","year","date","week"].includes(F.value)&&(L(O.value,!0),await Object(s["nextTick"])(),ve())),ye("month")},Y=async e=>{"year"===F.value?(O.value=O.value.startOf("year").year(e),L(O.value,!1)):(O.value=O.value.year(e),U.value="month",["month","year","date","week"].includes(F.value)&&(L(O.value,!0),await Object(s["nextTick"])(),ve())),ye("year")},q=async e=>{U.value=e,await Object(s["nextTick"])(),ve()},W=Object(s["computed"])(()=>"datetime"===n.type||"datetimerange"===n.type),K=Object(s["computed"])(()=>W.value||"dates"===F.value),$=Object(s["computed"])(()=>!!h&&(!n.parsedValue||(Object(Q["isArray"])(n.parsedValue)?h(n.parsedValue[0].toDate()):h(n.parsedValue.toDate())))),J=()=>{if("dates"===F.value)L(n.parsedValue);else{let e=n.parsedValue;if(!e){const t=Mn()(g).locale(u.value),n=me();e=t.year(n.year()).month(n.month()).date(n.date())}O.value=e,L(e)}},X=Object(s["computed"])(()=>!!h&&h(Mn()().locale(u.value).toDate())),Z=()=>{const e=Mn()().locale(u.value),t=e.toDate();M.value=!0,h&&h(t)||!j(t)||(O.value=Mn()().locale(u.value),L(O.value))},ee=Object(s["computed"])(()=>In(n.format)),te=Object(s["computed"])(()=>wn(n.format)),ne=Object(s["computed"])(()=>E.value?E.value:n.parsedValue||y.value?(n.parsedValue||O.value).format(ee.value):void 0),re=Object(s["computed"])(()=>T.value?T.value:n.parsedValue||y.value?(n.parsedValue||O.value).format(te.value):void 0),oe=Object(s["ref"])(!1),ae=()=>{oe.value=!0},ie=()=>{oe.value=!1},se=e=>({hour:e.hour(),minute:e.minute(),second:e.second(),year:e.year(),month:e.month(),date:e.date()}),ce=(e,t,r)=>{const{hour:o,minute:a,second:i}=se(e),s=n.parsedValue?n.parsedValue.hour(o).minute(a).second(i):e;O.value=s,L(O.value,!0),r||(oe.value=t)},le=e=>{const t=Mn()(e,ee.value).locale(u.value);if(t.isValid()&&j(t)){const{year:e,month:n,date:r}=se(O.value);O.value=t.year(e).month(n).date(r),E.value=null,oe.value=!1,L(O.value,!0)}},ue=e=>{const t=Mn()(e,te.value).locale(u.value);if(t.isValid()){if(h&&h(t.toDate()))return;const{hour:e,minute:n,second:r}=se(O.value);O.value=t.hour(e).minute(n).second(r),T.value=null,L(O.value,!0)}},pe=e=>Mn.a.isDayjs(e)&&e.isValid()&&(!h||!h(e.toDate())),fe=e=>"dates"===F.value?e.map(e=>e.format(n.format)):e.format(n.format),he=e=>Mn()(e,n.format).locale(u.value),me=()=>{const e=Mn()(y.value).locale(u.value);if(!y.value){const e=k.value;return Mn()().hour(e.hour()).minute(e.minute()).second(e.second()).locale(u.value)}return e},ve=async()=>{var e;["week","month","year","date"].includes(F.value)&&(null==(e=b.value)||e.focus(),"week"===F.value&&_e(Me["a"].down))},ge=e=>{const{code:t}=e,n=[Me["a"].up,Me["a"].down,Me["a"].left,Me["a"].right,Me["a"].home,Me["a"].end,Me["a"].pageUp,Me["a"].pageDown];n.includes(t)&&(_e(t),e.stopPropagation(),e.preventDefault()),[Me["a"].enter,Me["a"].space,Me["a"].numpadEnter].includes(t)&&null===T.value&&null===E.value&&(e.preventDefault(),L(O.value,!1))},_e=e=>{var n;const{up:r,down:o,left:a,right:i,home:s,end:c,pageUp:l,pageDown:d}=Me["a"],p={year:{[r]:-4,[o]:4,[a]:-1,[i]:1,offset:(e,t)=>e.setFullYear(e.getFullYear()+t)},month:{[r]:-4,[o]:4,[a]:-1,[i]:1,offset:(e,t)=>e.setMonth(e.getMonth()+t)},week:{[r]:-1,[o]:1,[a]:-1,[i]:1,offset:(e,t)=>e.setDate(e.getDate()+7*t)},date:{[r]:-7,[o]:7,[a]:-1,[i]:1,[s]:e=>-e.getDay(),[c]:e=>6-e.getDay(),[l]:e=>-new Date(e.getFullYear(),e.getMonth(),0).getDate(),[d]:e=>new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),offset:(e,t)=>e.setDate(e.getDate()+t)}},f=O.value.toDate();while(Math.abs(O.value.diff(f,"year",!0))<1){const r=p[G.value];if(!r)return;if(r.offset(f,Object(Q["isFunction"])(r[e])?r[e](f):null!=(n=r[e])?n:0),h&&h(f))break;const o=Mn()(f).locale(u.value);O.value=o,t("pick",o,!0);break}},ye=e=>{t("panel-change",O.value.toDate(),e,U.value)};return Object(s["watch"])(()=>F.value,e=>{["month","year"].includes(e)?U.value=e:U.value="date"},{immediate:!0}),Object(s["watch"])(()=>U.value,()=>{null==p||p.updatePopper()}),Object(s["watch"])(()=>y.value,e=>{e&&(O.value=me())},{immediate:!0}),Object(s["watch"])(()=>n.parsedValue,e=>{if(e){if("dates"===F.value)return;if(Array.isArray(e))return;O.value=e}else O.value=me()},{immediate:!0}),t("set-picker-option",["isValidValue",pe]),t("set-picker-option",["formatToString",fe]),t("set-picker-option",["parseUserInput",he]),t("set-picker-option",["handleFocusPicker",ve]),(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{class:Object(s["normalizeClass"])([Object(s["unref"])(o).b(),Object(s["unref"])(a).b(),{"has-sidebar":e.$slots.sidebar||Object(s["unref"])(z),"has-time":Object(s["unref"])(W)}])},[Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(o).e("body-wrapper"))},[Object(s["renderSlot"])(e.$slots,"sidebar",{class:Object(s["normalizeClass"])(Object(s["unref"])(o).e("sidebar"))}),Object(s["unref"])(z)?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:0,class:Object(s["normalizeClass"])(Object(s["unref"])(o).e("sidebar"))},[(Object(s["openBlock"])(!0),Object(s["createElementBlock"])(s["Fragment"],null,Object(s["renderList"])(Object(s["unref"])(f),(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("button",{key:t,type:"button",class:Object(s["normalizeClass"])(Object(s["unref"])(o).e("shortcut")),onClick:t=>B(e)},Object(s["toDisplayString"])(e.text),11,qc))),128))],2)):Object(s["createCommentVNode"])("v-if",!0),Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(o).e("body"))},[Object(s["unref"])(W)?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:0,class:Object(s["normalizeClass"])(Object(s["unref"])(a).e("time-header"))},[Object(s["createElementVNode"])("span",{class:Object(s["normalizeClass"])(Object(s["unref"])(a).e("editor-wrap"))},[Object(s["createVNode"])(Object(s["unref"])(P["a"]),{placeholder:Object(s["unref"])(l)("el.datepicker.selectDate"),"model-value":Object(s["unref"])(re),size:"small","validate-event":!1,onInput:t[0]||(t[0]=e=>T.value=e),onChange:ue},null,8,["placeholder","model-value"])],2),Object(s["withDirectives"])((Object(s["openBlock"])(),Object(s["createElementBlock"])("span",{class:Object(s["normalizeClass"])(Object(s["unref"])(a).e("editor-wrap"))},[Object(s["createVNode"])(Object(s["unref"])(P["a"]),{placeholder:Object(s["unref"])(l)("el.datepicker.selectTime"),"model-value":Object(s["unref"])(ne),size:"small","validate-event":!1,onFocus:ae,onInput:t[1]||(t[1]=e=>E.value=e),onChange:le},null,8,["placeholder","model-value"]),Object(s["createVNode"])(Object(s["unref"])(Yc),{visible:oe.value,format:Object(s["unref"])(ee),"time-arrow-control":Object(s["unref"])(_),"parsed-value":O.value,onPick:ce},null,8,["visible","format","time-arrow-control","parsed-value"])],2)),[[Object(s["unref"])(ba),ie]])],2)):Object(s["createCommentVNode"])("v-if",!0),Object(s["withDirectives"])(Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])([Object(s["unref"])(a).e("header"),("year"===U.value||"month"===U.value)&&Object(s["unref"])(a).e("header--bordered")])},[Object(s["createElementVNode"])("span",{class:Object(s["normalizeClass"])(Object(s["unref"])(a).e("prev-btn"))},[Object(s["createElementVNode"])("button",{type:"button","aria-label":Object(s["unref"])(l)("el.datepicker.prevYear"),class:Object(s["normalizeClass"])(["d-arrow-left",Object(s["unref"])(o).e("icon-btn")]),onClick:t[2]||(t[2]=e=>x(!1))},[Object(s["createVNode"])(Object(s["unref"])(w["a"]),null,{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(Object(s["unref"])(R["DArrowLeft"]))]),_:1})],10,Wc),Object(s["withDirectives"])(Object(s["createElementVNode"])("button",{type:"button","aria-label":Object(s["unref"])(l)("el.datepicker.prevMonth"),class:Object(s["normalizeClass"])([Object(s["unref"])(o).e("icon-btn"),"arrow-left"]),onClick:t[3]||(t[3]=e=>N(!1))},[Object(s["createVNode"])(Object(s["unref"])(w["a"]),null,{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(Object(s["unref"])(R["ArrowLeft"]))]),_:1})],10,Kc),[[s["vShow"],"date"===U.value]])],2),Object(s["createElementVNode"])("span",{role:"button",class:Object(s["normalizeClass"])(Object(s["unref"])(a).e("header-label")),"aria-live":"polite",tabindex:"0",onKeydown:t[4]||(t[4]=Object(s["withKeys"])(e=>q("year"),["enter"])),onClick:t[5]||(t[5]=e=>q("year"))},Object(s["toDisplayString"])(Object(s["unref"])(V)),35),Object(s["withDirectives"])(Object(s["createElementVNode"])("span",{role:"button","aria-live":"polite",tabindex:"0",class:Object(s["normalizeClass"])([Object(s["unref"])(a).e("header-label"),{active:"month"===U.value}]),onKeydown:t[6]||(t[6]=Object(s["withKeys"])(e=>q("month"),["enter"])),onClick:t[7]||(t[7]=e=>q("month"))},Object(s["toDisplayString"])(Object(s["unref"])(l)("el.datepicker.month"+(Object(s["unref"])(C)+1))),35),[[s["vShow"],"date"===U.value]]),Object(s["createElementVNode"])("span",{class:Object(s["normalizeClass"])(Object(s["unref"])(a).e("next-btn"))},[Object(s["withDirectives"])(Object(s["createElementVNode"])("button",{type:"button","aria-label":Object(s["unref"])(l)("el.datepicker.nextMonth"),class:Object(s["normalizeClass"])([Object(s["unref"])(o).e("icon-btn"),"arrow-right"]),onClick:t[8]||(t[8]=e=>N(!0))},[Object(s["createVNode"])(Object(s["unref"])(w["a"]),null,{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(Object(s["unref"])(R["ArrowRight"]))]),_:1})],10,$c),[[s["vShow"],"date"===U.value]]),Object(s["createElementVNode"])("button",{type:"button","aria-label":Object(s["unref"])(l)("el.datepicker.nextYear"),class:Object(s["normalizeClass"])([Object(s["unref"])(o).e("icon-btn"),"d-arrow-right"]),onClick:t[9]||(t[9]=e=>x(!0))},[Object(s["createVNode"])(Object(s["unref"])(w["a"]),null,{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(Object(s["unref"])(R["DArrowRight"]))]),_:1})],10,Jc)],2)],2),[[s["vShow"],"time"!==U.value]]),Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(o).e("content")),onKeydown:ge},["date"===U.value?(Object(s["openBlock"])(),Object(s["createBlock"])(lc,{key:0,ref_key:"currentViewRef",ref:b,"selection-mode":Object(s["unref"])(F),date:O.value,"parsed-value":e.parsedValue,"disabled-date":Object(s["unref"])(h),"cell-class-name":Object(s["unref"])(v),onPick:A},null,8,["selection-mode","date","parsed-value","disabled-date","cell-class-name"])):Object(s["createCommentVNode"])("v-if",!0),"year"===U.value?(Object(s["openBlock"])(),Object(s["createBlock"])(wc,{key:1,ref_key:"currentViewRef",ref:b,date:O.value,"disabled-date":Object(s["unref"])(h),"parsed-value":e.parsedValue,onPick:Y},null,8,["date","disabled-date","parsed-value"])):Object(s["createCommentVNode"])("v-if",!0),"month"===U.value?(Object(s["openBlock"])(),Object(s["createBlock"])(mc,{key:2,ref_key:"currentViewRef",ref:b,date:O.value,"parsed-value":e.parsedValue,"disabled-date":Object(s["unref"])(h),onPick:H},null,8,["date","parsed-value","disabled-date"])):Object(s["createCommentVNode"])("v-if",!0)],34)],2)],2),Object(s["withDirectives"])(Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(o).e("footer"))},[Object(s["withDirectives"])(Object(s["createVNode"])(Object(s["unref"])(bn["a"]),{text:"",size:"small",class:Object(s["normalizeClass"])(Object(s["unref"])(o).e("link-btn")),disabled:Object(s["unref"])(X),onClick:Z},{default:Object(s["withCtx"])(()=>[Object(s["createTextVNode"])(Object(s["toDisplayString"])(Object(s["unref"])(l)("el.datepicker.now")),1)]),_:1},8,["class","disabled"]),[[s["vShow"],"dates"!==Object(s["unref"])(F)]]),Object(s["createVNode"])(Object(s["unref"])(bn["a"]),{plain:"",size:"small",class:Object(s["normalizeClass"])(Object(s["unref"])(o).e("link-btn")),disabled:Object(s["unref"])($),onClick:J},{default:Object(s["withCtx"])(()=>[Object(s["createTextVNode"])(Object(s["toDisplayString"])(Object(s["unref"])(l)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])],2),[[s["vShow"],Object(s["unref"])(K)&&"date"===U.value]])],2))}});var Xc=Object(h["a"])(Qc,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-date-pick.vue"]]);const Zc=Object(l["b"])({...Ks,...$s}),el=e=>{const{emit:t}=Object(s["getCurrentInstance"])(),n=Object(s["useAttrs"])(),r=Object(s["useSlots"])(),o=o=>{const a=Object(Q["isFunction"])(o.value)?o.value():o.value;a?t("pick",[Mn()(a[0]).locale(e.value),Mn()(a[1]).locale(e.value)]):o.onClick&&o.onClick({attrs:n,slots:r,emit:t})};return o},tl=(e,{defaultValue:t,leftDate:n,rightDate:r,unit:o,onParsedValueChanged:a})=>{const{emit:i}=Object(s["getCurrentInstance"])(),{pickerNs:c}=Object(s["inject"])(Fs),l=Object(m["d"])("date-range-picker"),{t:u,lang:d}=Object(Vn["b"])(),p=el(d),f=Object(s["ref"])(),h=Object(s["ref"])(),v=Object(s["ref"])({endDate:null,selecting:!1}),g=e=>{v.value=e},_=(e=!1)=>{const t=Object(s["unref"])(f),n=Object(s["unref"])(h);Zs([t,n])&&i("pick",[t,n],e)},y=e=>{v.value.selecting=e,e||(v.value.endDate=null)},b=()=>{const[a,i]=ec(Object(s["unref"])(t),{lang:Object(s["unref"])(d),unit:o,unlinkPanels:e.unlinkPanels});f.value=void 0,h.value=void 0,n.value=a,r.value=i};return Object(s["watch"])(t,e=>{e&&b()},{immediate:!0}),Object(s["watch"])(()=>e.parsedValue,e=>{if(Object(Q["isArray"])(e)&&2===e.length){const[t,r]=e;f.value=t,n.value=t,h.value=r,a(Object(s["unref"])(f),Object(s["unref"])(h))}else b()},{immediate:!0}),{minDate:f,maxDate:h,rangeState:v,lang:d,ppNs:c,drpNs:l,handleChangeRange:g,handleRangeConfirm:_,handleShortcutClick:p,onSelect:y,t:u}},nl=["onClick"],rl=["disabled"],ol=["disabled"],al=["disabled"],il=["disabled"],sl="month",cl=Object(s["defineComponent"])({__name:"panel-date-range",props:Zc,emits:["pick","set-picker-option","calendar-change","panel-change"],setup(e,{emit:t}){const n=e,r=Object(s["inject"])("EP_PICKER_BASE"),{disabledDate:o,cellClassName:a,format:i,defaultTime:c,arrowControl:l,clearable:u}=r.props,d=Object(s["toRef"])(r.props,"shortcuts"),p=Object(s["toRef"])(r.props,"defaultValue"),{lang:f}=Object(Vn["b"])(),h=Object(s["ref"])(Mn()().locale(f.value)),m=Object(s["ref"])(Mn()().locale(f.value).add(1,sl)),{minDate:v,maxDate:g,rangeState:_,ppNs:y,drpNs:b,handleChangeRange:O,handleRangeConfirm:M,handleShortcutClick:k,onSelect:C,t:I}=tl(n,{defaultValue:p,leftDate:h,rightDate:m,unit:sl,onParsedValueChanged:ye}),S=Object(s["ref"])({min:null,max:null}),T=Object(s["ref"])({min:null,max:null}),E=Object(s["computed"])(()=>`${h.value.year()} ${I("el.datepicker.year")} ${I("el.datepicker.month"+(h.value.month()+1))}`),j=Object(s["computed"])(()=>`${m.value.year()} ${I("el.datepicker.year")} ${I("el.datepicker.month"+(m.value.month()+1))}`),D=Object(s["computed"])(()=>h.value.year()),L=Object(s["computed"])(()=>h.value.month()),A=Object(s["computed"])(()=>m.value.year()),N=Object(s["computed"])(()=>m.value.month()),x=Object(s["computed"])(()=>!!d.value.length),U=Object(s["computed"])(()=>null!==S.value.min?S.value.min:v.value?v.value.format(z.value):""),V=Object(s["computed"])(()=>null!==S.value.max?S.value.max:g.value||v.value?(g.value||v.value).format(z.value):""),B=Object(s["computed"])(()=>null!==T.value.min?T.value.min:v.value?v.value.format(G.value):""),F=Object(s["computed"])(()=>null!==T.value.max?T.value.max:g.value||v.value?(g.value||v.value).format(G.value):""),G=Object(s["computed"])(()=>In(i)),z=Object(s["computed"])(()=>wn(i)),H=()=>{h.value=h.value.subtract(1,"year"),n.unlinkPanels||(m.value=h.value.add(1,"month")),Z("year")},Y=()=>{h.value=h.value.subtract(1,"month"),n.unlinkPanels||(m.value=h.value.add(1,"month")),Z("month")},q=()=>{n.unlinkPanels?m.value=m.value.add(1,"year"):(h.value=h.value.add(1,"year"),m.value=h.value.add(1,"month")),Z("year")},W=()=>{n.unlinkPanels?m.value=m.value.add(1,"month"):(h.value=h.value.add(1,"month"),m.value=h.value.add(1,"month")),Z("month")},K=()=>{h.value=h.value.add(1,"year"),Z("year")},$=()=>{h.value=h.value.add(1,"month"),Z("month")},J=()=>{m.value=m.value.subtract(1,"year"),Z("year")},X=()=>{m.value=m.value.subtract(1,"month"),Z("month")},Z=e=>{t("panel-change",[h.value.toDate(),m.value.toDate()],e)},ee=Object(s["computed"])(()=>{const e=(L.value+1)%12,t=L.value+1>=12?1:0;return n.unlinkPanels&&new Date(D.value+t,e)<new Date(A.value,N.value)}),te=Object(s["computed"])(()=>n.unlinkPanels&&12*A.value+N.value-(12*D.value+L.value+1)>=12),ne=Object(s["computed"])(()=>!(v.value&&g.value&&!_.value.selecting&&Zs([v.value,g.value]))),re=Object(s["computed"])(()=>"datetime"===n.type||"datetimerange"===n.type),oe=(e,t)=>{if(e){if(c){const n=Mn()(c[t]||c).locale(f.value);return n.year(e.year()).month(e.month()).date(e.date())}return e}},ae=(e,n=!0)=>{const r=e.minDate,o=e.maxDate,a=oe(r,0),i=oe(o,1);g.value===i&&v.value===a||(t("calendar-change",[r.toDate(),o&&o.toDate()]),g.value=i,v.value=a,n&&!re.value&&M())},ie=Object(s["ref"])(!1),se=Object(s["ref"])(!1),ce=()=>{ie.value=!1},le=()=>{se.value=!1},ue=(e,t)=>{S.value[t]=e;const r=Mn()(e,z.value).locale(f.value);if(r.isValid()){if(o&&o(r.toDate()))return;"min"===t?(h.value=r,v.value=(v.value||h.value).year(r.year()).month(r.month()).date(r.date()),n.unlinkPanels||g.value&&!g.value.isBefore(v.value)||(m.value=r.add(1,"month"),g.value=v.value.add(1,"month"))):(m.value=r,g.value=(g.value||m.value).year(r.year()).month(r.month()).date(r.date()),n.unlinkPanels||v.value&&!v.value.isAfter(g.value)||(h.value=r.subtract(1,"month"),v.value=g.value.subtract(1,"month")))}},de=(e,t)=>{S.value[t]=null},pe=(e,t)=>{T.value[t]=e;const n=Mn()(e,G.value).locale(f.value);n.isValid()&&("min"===t?(ie.value=!0,v.value=(v.value||h.value).hour(n.hour()).minute(n.minute()).second(n.second()),g.value&&!g.value.isBefore(v.value)||(g.value=v.value)):(se.value=!0,g.value=(g.value||m.value).hour(n.hour()).minute(n.minute()).second(n.second()),m.value=g.value,g.value&&g.value.isBefore(v.value)&&(v.value=g.value)))},fe=(e,t)=>{T.value[t]=null,"min"===t?(h.value=v.value,ie.value=!1):(m.value=g.value,se.value=!1)},he=(e,t,n)=>{T.value.min||(e&&(h.value=e,v.value=(v.value||h.value).hour(e.hour()).minute(e.minute()).second(e.second())),n||(ie.value=t),g.value&&!g.value.isBefore(v.value)||(g.value=v.value,m.value=e))},me=(e,t,n)=>{T.value.max||(e&&(m.value=e,g.value=(g.value||m.value).hour(e.hour()).minute(e.minute()).second(e.second())),n||(se.value=t),g.value&&g.value.isBefore(v.value)&&(v.value=g.value))},ve=()=>{h.value=ec(Object(s["unref"])(p),{lang:Object(s["unref"])(f),unit:"month",unlinkPanels:n.unlinkPanels})[0],m.value=h.value.add(1,"month"),t("pick",null)},ge=e=>Object(Q["isArray"])(e)?e.map(e=>e.format(i)):e.format(i),_e=e=>Object(Q["isArray"])(e)?e.map(e=>Mn()(e,i).locale(f.value)):Mn()(e,i).locale(f.value);function ye(e,t){if(n.unlinkPanels&&t){const n=(null==e?void 0:e.year())||0,r=(null==e?void 0:e.month())||0,o=t.year(),a=t.month();m.value=n===o&&r===a?t.add(1,sl):t}else m.value=h.value.add(1,sl),t&&(m.value=m.value.hour(t.hour()).minute(t.minute()).second(t.second()))}return t("set-picker-option",["isValidValue",Zs]),t("set-picker-option",["parseUserInput",_e]),t("set-picker-option",["formatToString",ge]),t("set-picker-option",["handleClear",ve]),(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{class:Object(s["normalizeClass"])([Object(s["unref"])(y).b(),Object(s["unref"])(b).b(),{"has-sidebar":e.$slots.sidebar||Object(s["unref"])(x),"has-time":Object(s["unref"])(re)}])},[Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(y).e("body-wrapper"))},[Object(s["renderSlot"])(e.$slots,"sidebar",{class:Object(s["normalizeClass"])(Object(s["unref"])(y).e("sidebar"))}),Object(s["unref"])(x)?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:0,class:Object(s["normalizeClass"])(Object(s["unref"])(y).e("sidebar"))},[(Object(s["openBlock"])(!0),Object(s["createElementBlock"])(s["Fragment"],null,Object(s["renderList"])(Object(s["unref"])(d),(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("button",{key:t,type:"button",class:Object(s["normalizeClass"])(Object(s["unref"])(y).e("shortcut")),onClick:t=>Object(s["unref"])(k)(e)},Object(s["toDisplayString"])(e.text),11,nl))),128))],2)):Object(s["createCommentVNode"])("v-if",!0),Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(y).e("body"))},[Object(s["unref"])(re)?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:0,class:Object(s["normalizeClass"])(Object(s["unref"])(b).e("time-header"))},[Object(s["createElementVNode"])("span",{class:Object(s["normalizeClass"])(Object(s["unref"])(b).e("editors-wrap"))},[Object(s["createElementVNode"])("span",{class:Object(s["normalizeClass"])(Object(s["unref"])(b).e("time-picker-wrap"))},[Object(s["createVNode"])(Object(s["unref"])(P["a"]),{size:"small",disabled:Object(s["unref"])(_).selecting,placeholder:Object(s["unref"])(I)("el.datepicker.startDate"),class:Object(s["normalizeClass"])(Object(s["unref"])(b).e("editor")),"model-value":Object(s["unref"])(U),"validate-event":!1,onInput:t[0]||(t[0]=e=>ue(e,"min")),onChange:t[1]||(t[1]=e=>de(e,"min"))},null,8,["disabled","placeholder","class","model-value"])],2),Object(s["withDirectives"])((Object(s["openBlock"])(),Object(s["createElementBlock"])("span",{class:Object(s["normalizeClass"])(Object(s["unref"])(b).e("time-picker-wrap"))},[Object(s["createVNode"])(Object(s["unref"])(P["a"]),{size:"small",class:Object(s["normalizeClass"])(Object(s["unref"])(b).e("editor")),disabled:Object(s["unref"])(_).selecting,placeholder:Object(s["unref"])(I)("el.datepicker.startTime"),"model-value":Object(s["unref"])(B),"validate-event":!1,onFocus:t[2]||(t[2]=e=>ie.value=!0),onInput:t[3]||(t[3]=e=>pe(e,"min")),onChange:t[4]||(t[4]=e=>fe(e,"min"))},null,8,["class","disabled","placeholder","model-value"]),Object(s["createVNode"])(Object(s["unref"])(Yc),{visible:ie.value,format:Object(s["unref"])(G),"datetime-role":"start","time-arrow-control":Object(s["unref"])(l),"parsed-value":h.value,onPick:he},null,8,["visible","format","time-arrow-control","parsed-value"])],2)),[[Object(s["unref"])(ba),ce]])],2),Object(s["createElementVNode"])("span",null,[Object(s["createVNode"])(Object(s["unref"])(w["a"]),null,{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(Object(s["unref"])(R["ArrowRight"]))]),_:1})]),Object(s["createElementVNode"])("span",{class:Object(s["normalizeClass"])([Object(s["unref"])(b).e("editors-wrap"),"is-right"])},[Object(s["createElementVNode"])("span",{class:Object(s["normalizeClass"])(Object(s["unref"])(b).e("time-picker-wrap"))},[Object(s["createVNode"])(Object(s["unref"])(P["a"]),{size:"small",class:Object(s["normalizeClass"])(Object(s["unref"])(b).e("editor")),disabled:Object(s["unref"])(_).selecting,placeholder:Object(s["unref"])(I)("el.datepicker.endDate"),"model-value":Object(s["unref"])(V),readonly:!Object(s["unref"])(v),"validate-event":!1,onInput:t[5]||(t[5]=e=>ue(e,"max")),onChange:t[6]||(t[6]=e=>de(e,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"])],2),Object(s["withDirectives"])((Object(s["openBlock"])(),Object(s["createElementBlock"])("span",{class:Object(s["normalizeClass"])(Object(s["unref"])(b).e("time-picker-wrap"))},[Object(s["createVNode"])(Object(s["unref"])(P["a"]),{size:"small",class:Object(s["normalizeClass"])(Object(s["unref"])(b).e("editor")),disabled:Object(s["unref"])(_).selecting,placeholder:Object(s["unref"])(I)("el.datepicker.endTime"),"model-value":Object(s["unref"])(F),readonly:!Object(s["unref"])(v),"validate-event":!1,onFocus:t[7]||(t[7]=e=>Object(s["unref"])(v)&&(se.value=!0)),onInput:t[8]||(t[8]=e=>pe(e,"max")),onChange:t[9]||(t[9]=e=>fe(e,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"]),Object(s["createVNode"])(Object(s["unref"])(Yc),{"datetime-role":"end",visible:se.value,format:Object(s["unref"])(G),"time-arrow-control":Object(s["unref"])(l),"parsed-value":m.value,onPick:me},null,8,["visible","format","time-arrow-control","parsed-value"])],2)),[[Object(s["unref"])(ba),le]])],2)],2)):Object(s["createCommentVNode"])("v-if",!0),Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])([[Object(s["unref"])(y).e("content"),Object(s["unref"])(b).e("content")],"is-left"])},[Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(b).e("header"))},[Object(s["createElementVNode"])("button",{type:"button",class:Object(s["normalizeClass"])([Object(s["unref"])(y).e("icon-btn"),"d-arrow-left"]),onClick:H},[Object(s["createVNode"])(Object(s["unref"])(w["a"]),null,{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(Object(s["unref"])(R["DArrowLeft"]))]),_:1})],2),Object(s["createElementVNode"])("button",{type:"button",class:Object(s["normalizeClass"])([Object(s["unref"])(y).e("icon-btn"),"arrow-left"]),onClick:Y},[Object(s["createVNode"])(Object(s["unref"])(w["a"]),null,{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(Object(s["unref"])(R["ArrowLeft"]))]),_:1})],2),e.unlinkPanels?(Object(s["openBlock"])(),Object(s["createElementBlock"])("button",{key:0,type:"button",disabled:!Object(s["unref"])(te),class:Object(s["normalizeClass"])([[Object(s["unref"])(y).e("icon-btn"),{"is-disabled":!Object(s["unref"])(te)}],"d-arrow-right"]),onClick:K},[Object(s["createVNode"])(Object(s["unref"])(w["a"]),null,{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(Object(s["unref"])(R["DArrowRight"]))]),_:1})],10,rl)):Object(s["createCommentVNode"])("v-if",!0),e.unlinkPanels?(Object(s["openBlock"])(),Object(s["createElementBlock"])("button",{key:1,type:"button",disabled:!Object(s["unref"])(ee),class:Object(s["normalizeClass"])([[Object(s["unref"])(y).e("icon-btn"),{"is-disabled":!Object(s["unref"])(ee)}],"arrow-right"]),onClick:$},[Object(s["createVNode"])(Object(s["unref"])(w["a"]),null,{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(Object(s["unref"])(R["ArrowRight"]))]),_:1})],10,ol)):Object(s["createCommentVNode"])("v-if",!0),Object(s["createElementVNode"])("div",null,Object(s["toDisplayString"])(Object(s["unref"])(E)),1)],2),Object(s["createVNode"])(lc,{"selection-mode":"range",date:h.value,"min-date":Object(s["unref"])(v),"max-date":Object(s["unref"])(g),"range-state":Object(s["unref"])(_),"disabled-date":Object(s["unref"])(o),"cell-class-name":Object(s["unref"])(a),onChangerange:Object(s["unref"])(O),onPick:ae,onSelect:Object(s["unref"])(C)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2),Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])([[Object(s["unref"])(y).e("content"),Object(s["unref"])(b).e("content")],"is-right"])},[Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(b).e("header"))},[e.unlinkPanels?(Object(s["openBlock"])(),Object(s["createElementBlock"])("button",{key:0,type:"button",disabled:!Object(s["unref"])(te),class:Object(s["normalizeClass"])([[Object(s["unref"])(y).e("icon-btn"),{"is-disabled":!Object(s["unref"])(te)}],"d-arrow-left"]),onClick:J},[Object(s["createVNode"])(Object(s["unref"])(w["a"]),null,{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(Object(s["unref"])(R["DArrowLeft"]))]),_:1})],10,al)):Object(s["createCommentVNode"])("v-if",!0),e.unlinkPanels?(Object(s["openBlock"])(),Object(s["createElementBlock"])("button",{key:1,type:"button",disabled:!Object(s["unref"])(ee),class:Object(s["normalizeClass"])([[Object(s["unref"])(y).e("icon-btn"),{"is-disabled":!Object(s["unref"])(ee)}],"arrow-left"]),onClick:X},[Object(s["createVNode"])(Object(s["unref"])(w["a"]),null,{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(Object(s["unref"])(R["ArrowLeft"]))]),_:1})],10,il)):Object(s["createCommentVNode"])("v-if",!0),Object(s["createElementVNode"])("button",{type:"button",class:Object(s["normalizeClass"])([Object(s["unref"])(y).e("icon-btn"),"d-arrow-right"]),onClick:q},[Object(s["createVNode"])(Object(s["unref"])(w["a"]),null,{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(Object(s["unref"])(R["DArrowRight"]))]),_:1})],2),Object(s["createElementVNode"])("button",{type:"button",class:Object(s["normalizeClass"])([Object(s["unref"])(y).e("icon-btn"),"arrow-right"]),onClick:W},[Object(s["createVNode"])(Object(s["unref"])(w["a"]),null,{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(Object(s["unref"])(R["ArrowRight"]))]),_:1})],2),Object(s["createElementVNode"])("div",null,Object(s["toDisplayString"])(Object(s["unref"])(j)),1)],2),Object(s["createVNode"])(lc,{"selection-mode":"range",date:m.value,"min-date":Object(s["unref"])(v),"max-date":Object(s["unref"])(g),"range-state":Object(s["unref"])(_),"disabled-date":Object(s["unref"])(o),"cell-class-name":Object(s["unref"])(a),onChangerange:Object(s["unref"])(O),onPick:ae,onSelect:Object(s["unref"])(C)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2)],2)],2),Object(s["unref"])(re)?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:0,class:Object(s["normalizeClass"])(Object(s["unref"])(y).e("footer"))},[Object(s["unref"])(u)?(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(bn["a"]),{key:0,text:"",size:"small",class:Object(s["normalizeClass"])(Object(s["unref"])(y).e("link-btn")),onClick:ve},{default:Object(s["withCtx"])(()=>[Object(s["createTextVNode"])(Object(s["toDisplayString"])(Object(s["unref"])(I)("el.datepicker.clear")),1)]),_:1},8,["class"])):Object(s["createCommentVNode"])("v-if",!0),Object(s["createVNode"])(Object(s["unref"])(bn["a"]),{plain:"",size:"small",class:Object(s["normalizeClass"])(Object(s["unref"])(y).e("link-btn")),disabled:Object(s["unref"])(ne),onClick:t[10]||(t[10]=e=>Object(s["unref"])(M)(!1))},{default:Object(s["withCtx"])(()=>[Object(s["createTextVNode"])(Object(s["toDisplayString"])(Object(s["unref"])(I)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])],2)):Object(s["createCommentVNode"])("v-if",!0)],2))}});var ll=Object(h["a"])(cl,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-date-range.vue"]]);const ul=Object(l["b"])({...$s}),dl=["pick","set-picker-option"],pl=({unlinkPanels:e,leftDate:t,rightDate:n})=>{const{t:r}=Object(Vn["b"])(),o=()=>{t.value=t.value.subtract(1,"year"),e.value||(n.value=n.value.subtract(1,"year"))},a=()=>{e.value||(t.value=t.value.add(1,"year")),n.value=n.value.add(1,"year")},i=()=>{t.value=t.value.add(1,"year")},c=()=>{n.value=n.value.subtract(1,"year")},l=Object(s["computed"])(()=>`${t.value.year()} ${r("el.datepicker.year")}`),u=Object(s["computed"])(()=>`${n.value.year()} ${r("el.datepicker.year")}`),d=Object(s["computed"])(()=>t.value.year()),p=Object(s["computed"])(()=>n.value.year()===t.value.year()?t.value.year()+1:n.value.year());return{leftPrevYear:o,rightNextYear:a,leftNextYear:i,rightPrevYear:c,leftLabel:l,rightLabel:u,leftYear:d,rightYear:p}},fl=["onClick"],hl=["disabled"],ml=["disabled"],vl="year",gl=Object(s["defineComponent"])({name:"DatePickerMonthRange"}),_l=Object(s["defineComponent"])({...gl,props:ul,emits:dl,setup(e,{emit:t}){const n=e,{lang:r}=Object(Vn["b"])(),o=Object(s["inject"])("EP_PICKER_BASE"),{shortcuts:a,disabledDate:i,format:c}=o.props,l=Object(s["toRef"])(o.props,"defaultValue"),u=Object(s["ref"])(Mn()().locale(r.value)),d=Object(s["ref"])(Mn()().locale(r.value).add(1,vl)),{minDate:p,maxDate:f,rangeState:h,ppNs:m,drpNs:v,handleChangeRange:g,handleRangeConfirm:_,handleShortcutClick:y,onSelect:b}=tl(n,{defaultValue:l,leftDate:u,rightDate:d,unit:vl,onParsedValueChanged:N}),O=Object(s["computed"])(()=>!!a.length),{leftPrevYear:M,rightNextYear:k,leftNextYear:C,rightPrevYear:I,leftLabel:S,rightLabel:T,leftYear:E,rightYear:j}=pl({unlinkPanels:Object(s["toRef"])(n,"unlinkPanels"),leftDate:u,rightDate:d}),D=Object(s["computed"])(()=>n.unlinkPanels&&j.value>E.value+1),L=(e,t=!0)=>{const n=e.minDate,r=e.maxDate;f.value===r&&p.value===n||(f.value=r,p.value=n,t&&_())},A=e=>e.map(e=>e.format(c));function N(e,t){if(n.unlinkPanels&&t){const n=(null==e?void 0:e.year())||0,r=t.year();d.value=n===r?t.add(1,vl):t}else d.value=u.value.add(1,vl)}return t("set-picker-option",["formatToString",A]),(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{class:Object(s["normalizeClass"])([Object(s["unref"])(m).b(),Object(s["unref"])(v).b(),{"has-sidebar":Boolean(e.$slots.sidebar)||Object(s["unref"])(O)}])},[Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(m).e("body-wrapper"))},[Object(s["renderSlot"])(e.$slots,"sidebar",{class:Object(s["normalizeClass"])(Object(s["unref"])(m).e("sidebar"))}),Object(s["unref"])(O)?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:0,class:Object(s["normalizeClass"])(Object(s["unref"])(m).e("sidebar"))},[(Object(s["openBlock"])(!0),Object(s["createElementBlock"])(s["Fragment"],null,Object(s["renderList"])(Object(s["unref"])(a),(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("button",{key:t,type:"button",class:Object(s["normalizeClass"])(Object(s["unref"])(m).e("shortcut")),onClick:t=>Object(s["unref"])(y)(e)},Object(s["toDisplayString"])(e.text),11,fl))),128))],2)):Object(s["createCommentVNode"])("v-if",!0),Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(m).e("body"))},[Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])([[Object(s["unref"])(m).e("content"),Object(s["unref"])(v).e("content")],"is-left"])},[Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(v).e("header"))},[Object(s["createElementVNode"])("button",{type:"button",class:Object(s["normalizeClass"])([Object(s["unref"])(m).e("icon-btn"),"d-arrow-left"]),onClick:t[0]||(t[0]=(...e)=>Object(s["unref"])(M)&&Object(s["unref"])(M)(...e))},[Object(s["createVNode"])(Object(s["unref"])(w["a"]),null,{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(Object(s["unref"])(R["DArrowLeft"]))]),_:1})],2),e.unlinkPanels?(Object(s["openBlock"])(),Object(s["createElementBlock"])("button",{key:0,type:"button",disabled:!Object(s["unref"])(D),class:Object(s["normalizeClass"])([[Object(s["unref"])(m).e("icon-btn"),{[Object(s["unref"])(m).is("disabled")]:!Object(s["unref"])(D)}],"d-arrow-right"]),onClick:t[1]||(t[1]=(...e)=>Object(s["unref"])(C)&&Object(s["unref"])(C)(...e))},[Object(s["createVNode"])(Object(s["unref"])(w["a"]),null,{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(Object(s["unref"])(R["DArrowRight"]))]),_:1})],10,hl)):Object(s["createCommentVNode"])("v-if",!0),Object(s["createElementVNode"])("div",null,Object(s["toDisplayString"])(Object(s["unref"])(S)),1)],2),Object(s["createVNode"])(mc,{"selection-mode":"range",date:u.value,"min-date":Object(s["unref"])(p),"max-date":Object(s["unref"])(f),"range-state":Object(s["unref"])(h),"disabled-date":Object(s["unref"])(i),onChangerange:Object(s["unref"])(g),onPick:L,onSelect:Object(s["unref"])(b)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2),Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])([[Object(s["unref"])(m).e("content"),Object(s["unref"])(v).e("content")],"is-right"])},[Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(v).e("header"))},[e.unlinkPanels?(Object(s["openBlock"])(),Object(s["createElementBlock"])("button",{key:0,type:"button",disabled:!Object(s["unref"])(D),class:Object(s["normalizeClass"])([[Object(s["unref"])(m).e("icon-btn"),{"is-disabled":!Object(s["unref"])(D)}],"d-arrow-left"]),onClick:t[2]||(t[2]=(...e)=>Object(s["unref"])(I)&&Object(s["unref"])(I)(...e))},[Object(s["createVNode"])(Object(s["unref"])(w["a"]),null,{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(Object(s["unref"])(R["DArrowLeft"]))]),_:1})],10,ml)):Object(s["createCommentVNode"])("v-if",!0),Object(s["createElementVNode"])("button",{type:"button",class:Object(s["normalizeClass"])([Object(s["unref"])(m).e("icon-btn"),"d-arrow-right"]),onClick:t[3]||(t[3]=(...e)=>Object(s["unref"])(k)&&Object(s["unref"])(k)(...e))},[Object(s["createVNode"])(Object(s["unref"])(w["a"]),null,{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(Object(s["unref"])(R["DArrowRight"]))]),_:1})],2),Object(s["createElementVNode"])("div",null,Object(s["toDisplayString"])(Object(s["unref"])(T)),1)],2),Object(s["createVNode"])(mc,{"selection-mode":"range",date:d.value,"min-date":Object(s["unref"])(p),"max-date":Object(s["unref"])(f),"range-state":Object(s["unref"])(h),"disabled-date":Object(s["unref"])(i),onChangerange:Object(s["unref"])(g),onPick:L,onSelect:Object(s["unref"])(b)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2)],2)],2)],2))}});var yl=Object(h["a"])(_l,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-month-range.vue"]]);const bl=function(e){switch(e){case"daterange":case"datetimerange":return ll;case"monthrange":return yl;default:return Xc}},Ol=["id","name","placeholder","value","disabled","readonly"],Ml=["id","name","placeholder","value","disabled","readonly"],kl=Object(s["defineComponent"])({name:"Picker"}),Cl=Object(s["defineComponent"])({...kl,props:Hs,emits:["update:modelValue","change","focus","blur","calendar-change","panel-change","visible-change","keydown"],setup(e,{expose:t,emit:n}){const r=e,o=Object(s["useAttrs"])(),{lang:a}=Object(Vn["b"])(),i=Object(m["d"])("date"),l=Object(m["d"])("input"),u=Object(m["d"])("range"),{form:d,formItem:p}=Object(Pr["a"])(),f=Object(s["inject"])("ElPopperOptions",{}),h=Object(s["ref"])(),v=Object(s["ref"])(),_=Object(s["ref"])(!1),y=Object(s["ref"])(!1),b=Object(s["ref"])(null);let O=!1,M=!1;const k=Object(s["computed"])(()=>[i.b("editor"),i.bm("editor",r.type),l.e("wrapper"),i.is("disabled",q.value),i.is("active",_.value),u.b("editor"),ce?u.bm("editor",ce.value):"",o.class]),C=Object(s["computed"])(()=>[l.e("icon"),u.e("close-icon"),ee.value?"":u.e("close-icon--hidden")]);Object(s["watch"])(_,e=>{e?Object(s["nextTick"])(()=>{e&&(b.value=r.modelValue)}):(de.value=null,Object(s["nextTick"])(()=>{I(r.modelValue)}))});const I=(e,t)=>{!t&&Tn(e,b.value)||(n("change",e),r.validateEvent&&(null==p||p.validate("change").catch(e=>Object(g["a"])(e))))},S=e=>{if(!Tn(r.modelValue,e)){let t;Object(Q["isArray"])(e)?t=e.map(e=>jn(e,r.valueFormat,a.value)):e&&(t=jn(e,r.valueFormat,a.value)),n("update:modelValue",e?t:e,a.value)}},T=e=>{n("keydown",e)},E=Object(s["computed"])(()=>{if(v.value){const e=se.value?v.value:v.value.$el;return Array.from(e.querySelectorAll("input"))}return[]}),j=(e,t,n)=>{const r=E.value;r.length&&(n&&"min"!==n?"max"===n&&(r[1].setSelectionRange(e,t),r[1].focus()):(r[0].setSelectionRange(e,t),r[0].focus()))},D=()=>{G(!0,!0),Object(s["nextTick"])(()=>{M=!1})},L=(e="",t=!1)=>{let n;t||(M=!0),_.value=t,n=Object(Q["isArray"])(e)?e.map(e=>e.toDate()):e?e.toDate():e,de.value=null,S(n)},A=()=>{y.value=!0},N=()=>{n("visible-change",!0)},U=e=>{(null==e?void 0:e.key)===Me["a"].esc&&G(!0,!0)},V=()=>{y.value=!1,_.value=!1,M=!1,n("visible-change",!1)},B=()=>{_.value=!0},F=()=>{_.value=!1},G=(e=!0,t=!1)=>{M=t;const[n,r]=Object(s["unref"])(E);let o=n;!e&&se.value&&(o=r),o&&o.focus()},z=e=>{r.readonly||q.value||_.value||M||(_.value=!0,n("focus",e))};let H=void 0;const Y=e=>{const t=async()=>{setTimeout(()=>{var o;H===t&&((null==(o=h.value)?void 0:o.isFocusInsideContent())&&!O||0!==E.value.filter(e=>e.contains(document.activeElement)).length||(pe(),_.value=!1,n("blur",e),r.validateEvent&&(null==p||p.validate("blur").catch(e=>Object(g["a"])(e)))),O=!1)},0)};H=t,t()},q=Object(s["computed"])(()=>r.disabled||(null==d?void 0:d.disabled)),W=Object(s["computed"])(()=>{let e;if(ne.value?ke.value.getDefaultValue&&(e=ke.value.getDefaultValue()):e=Object(Q["isArray"])(r.modelValue)?r.modelValue.map(e=>En(e,r.valueFormat,a.value)):En(r.modelValue,r.valueFormat,a.value),ke.value.getRangeAvailableTime){const t=ke.value.getRangeAvailableTime(e);Object(x["isEqual"])(t,e)||(e=t,S(Object(Q["isArray"])(e)?e.map(e=>e.toDate()):e.toDate()))}return Object(Q["isArray"])(e)&&e.some(e=>!e)&&(e=[]),e}),K=Object(s["computed"])(()=>{if(!ke.value.panelReady)return"";const e=he(W.value);return Object(Q["isArray"])(de.value)?[de.value[0]||e&&e[0]||"",de.value[1]||e&&e[1]||""]:null!==de.value?de.value:!J.value&&ne.value||!_.value&&ne.value?"":e?X.value?e.join(", "):e:""}),$=Object(s["computed"])(()=>r.type.includes("time")),J=Object(s["computed"])(()=>r.type.startsWith("time")),X=Object(s["computed"])(()=>"dates"===r.type),Z=Object(s["computed"])(()=>r.prefixIcon||($.value?R["Clock"]:R["Calendar"])),ee=Object(s["ref"])(!1),te=e=>{r.readonly||q.value||ee.value&&(e.stopPropagation(),D(),S(null),I(null,!0),ee.value=!1,_.value=!1,ke.value.handleClear&&ke.value.handleClear())},ne=Object(s["computed"])(()=>{const{modelValue:e}=r;return!e||Object(Q["isArray"])(e)&&!e.filter(Boolean).length}),re=async e=>{var t;r.readonly||q.value||("INPUT"!==(null==(t=e.target)?void 0:t.tagName)||E.value.includes(document.activeElement))&&(_.value=!0)},oe=()=>{r.readonly||q.value||!ne.value&&r.clearable&&(ee.value=!0)},ae=()=>{ee.value=!1},ie=e=>{var t;r.readonly||q.value||("INPUT"!==(null==(t=e.touches[0].target)?void 0:t.tagName)||E.value.includes(document.activeElement))&&(_.value=!0)},se=Object(s["computed"])(()=>r.type.includes("range")),ce=Object(xt["b"])(),le=Object(s["computed"])(()=>{var e,t;return null==(t=null==(e=Object(s["unref"])(h))?void 0:e.popperRef)?void 0:t.contentRef}),ue=Object(s["computed"])(()=>{var e;return Object(s["unref"])(se)?Object(s["unref"])(v):null==(e=Object(s["unref"])(v))?void 0:e.$el});Object(c["onClickOutside"])(ue,e=>{const t=Object(s["unref"])(le),n=Object(s["unref"])(ue);t&&(e.target===t||e.composedPath().includes(t))||e.target===n||e.composedPath().includes(n)||(_.value=!1)});const de=Object(s["ref"])(null),pe=()=>{if(de.value){const e=fe(K.value);e&&me(e)&&(S(Object(Q["isArray"])(e)?e.map(e=>e.toDate()):e.toDate()),de.value=null)}""===de.value&&(S(null),I(null),de.value=null)},fe=e=>e?ke.value.parseUserInput(e):null,he=e=>e?ke.value.formatToString(e):null,me=e=>ke.value.isValidValue(e),ve=async e=>{if(r.readonly||q.value)return;const{code:t}=e;if(T(e),t!==Me["a"].esc)if(t===Me["a"].down&&(ke.value.handleFocusPicker&&(e.preventDefault(),e.stopPropagation()),!1===_.value&&(_.value=!0,await Object(s["nextTick"])()),ke.value.handleFocusPicker))ke.value.handleFocusPicker();else{if(t!==Me["a"].tab)return t===Me["a"].enter||t===Me["a"].numpadEnter?((null===de.value||""===de.value||me(fe(K.value)))&&(pe(),_.value=!1),void e.stopPropagation()):void(de.value?e.stopPropagation():ke.value.handleKeydownInput&&ke.value.handleKeydownInput(e));O=!0}else!0===_.value&&(_.value=!1,e.preventDefault(),e.stopPropagation())},ge=e=>{de.value=e,_.value||(_.value=!0)},_e=e=>{const t=e.target;de.value?de.value=[t.value,de.value[1]]:de.value=[t.value,null]},ye=e=>{const t=e.target;de.value?de.value=[de.value[0],t.value]:de.value=[null,t.value]},be=()=>{var e;const t=de.value,n=fe(t&&t[0]),r=Object(s["unref"])(W);if(n&&n.isValid()){de.value=[he(n),(null==(e=K.value)?void 0:e[1])||null];const t=[n,r&&(r[1]||null)];me(t)&&(S(t),de.value=null)}},Oe=()=>{var e;const t=Object(s["unref"])(de),n=fe(t&&t[1]),r=Object(s["unref"])(W);if(n&&n.isValid()){de.value=[(null==(e=Object(s["unref"])(K))?void 0:e[0])||null,he(n)];const t=[r&&r[0],n];me(t)&&(S(t),de.value=null)}},ke=Object(s["ref"])({}),Ce=e=>{ke.value[e[0]]=e[1],ke.value.panelReady=!0},we=e=>{n("calendar-change",e)},Ie=(e,t,r)=>{n("panel-change",e,t,r)};return Object(s["provide"])("EP_PICKER_BASE",{props:r}),t({focus:G,handleFocusInput:z,handleBlurInput:Y,handleOpen:B,handleClose:F,onPick:L}),(e,t)=>(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(Dt),Object(s["mergeProps"])({ref_key:"refPopper",ref:h,visible:_.value,effect:"light",pure:"",trigger:"click"},e.$attrs,{role:"dialog",teleported:"",transition:Object(s["unref"])(i).namespace.value+"-zoom-in-top","popper-class":[Object(s["unref"])(i).namespace.value+"-picker__popper",e.popperClass],"popper-options":Object(s["unref"])(f),"fallback-placements":["bottom","top","right","left"],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:A,onShow:N,onHide:V}),{default:Object(s["withCtx"])(()=>[Object(s["unref"])(se)?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:1,ref_key:"inputRef",ref:v,class:Object(s["normalizeClass"])(Object(s["unref"])(k)),style:Object(s["normalizeStyle"])(e.$attrs.style),onClick:z,onMouseenter:oe,onMouseleave:ae,onTouchstart:ie,onKeydown:ve},[Object(s["unref"])(Z)?(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(w["a"]),{key:0,class:Object(s["normalizeClass"])([Object(s["unref"])(l).e("icon"),Object(s["unref"])(u).e("icon")]),onMousedown:Object(s["withModifiers"])(re,["prevent"]),onTouchstart:ie},{default:Object(s["withCtx"])(()=>[(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["resolveDynamicComponent"])(Object(s["unref"])(Z))))]),_:1},8,["class","onMousedown"])):Object(s["createCommentVNode"])("v-if",!0),Object(s["createElementVNode"])("input",{id:e.id&&e.id[0],autocomplete:"off",name:e.name&&e.name[0],placeholder:e.startPlaceholder,value:Object(s["unref"])(K)&&Object(s["unref"])(K)[0],disabled:Object(s["unref"])(q),readonly:!e.editable||e.readonly,class:Object(s["normalizeClass"])(Object(s["unref"])(u).b("input")),onMousedown:re,onInput:_e,onChange:be,onFocus:z,onBlur:Y},null,42,Ol),Object(s["renderSlot"])(e.$slots,"range-separator",{},()=>[Object(s["createElementVNode"])("span",{class:Object(s["normalizeClass"])(Object(s["unref"])(u).b("separator"))},Object(s["toDisplayString"])(e.rangeSeparator),3)]),Object(s["createElementVNode"])("input",{id:e.id&&e.id[1],autocomplete:"off",name:e.name&&e.name[1],placeholder:e.endPlaceholder,value:Object(s["unref"])(K)&&Object(s["unref"])(K)[1],disabled:Object(s["unref"])(q),readonly:!e.editable||e.readonly,class:Object(s["normalizeClass"])(Object(s["unref"])(u).b("input")),onMousedown:re,onFocus:z,onBlur:Y,onInput:ye,onChange:Oe},null,42,Ml),e.clearIcon?(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(w["a"]),{key:1,class:Object(s["normalizeClass"])(Object(s["unref"])(C)),onClick:te},{default:Object(s["withCtx"])(()=>[(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["resolveDynamicComponent"])(e.clearIcon)))]),_:1},8,["class"])):Object(s["createCommentVNode"])("v-if",!0)],38)):(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(P["a"]),{key:0,id:e.id,ref_key:"inputRef",ref:v,"container-role":"combobox","model-value":Object(s["unref"])(K),name:e.name,size:Object(s["unref"])(ce),disabled:Object(s["unref"])(q),placeholder:e.placeholder,class:Object(s["normalizeClass"])([Object(s["unref"])(i).b("editor"),Object(s["unref"])(i).bm("editor",e.type),e.$attrs.class]),style:Object(s["normalizeStyle"])(e.$attrs.style),readonly:!e.editable||e.readonly||Object(s["unref"])(X)||"week"===e.type,label:e.label,tabindex:e.tabindex,"validate-event":!1,onInput:ge,onFocus:z,onBlur:Y,onKeydown:ve,onChange:pe,onMousedown:re,onMouseenter:oe,onMouseleave:ae,onTouchstart:ie,onClick:t[0]||(t[0]=Object(s["withModifiers"])(()=>{},["stop"]))},{prefix:Object(s["withCtx"])(()=>[Object(s["unref"])(Z)?(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(w["a"]),{key:0,class:Object(s["normalizeClass"])(Object(s["unref"])(l).e("icon")),onMousedown:Object(s["withModifiers"])(re,["prevent"]),onTouchstart:ie},{default:Object(s["withCtx"])(()=>[(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["resolveDynamicComponent"])(Object(s["unref"])(Z))))]),_:1},8,["class","onMousedown"])):Object(s["createCommentVNode"])("v-if",!0)]),suffix:Object(s["withCtx"])(()=>[ee.value&&e.clearIcon?(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(w["a"]),{key:0,class:Object(s["normalizeClass"])(Object(s["unref"])(l).e("icon")+" clear-icon"),onClick:Object(s["withModifiers"])(te,["stop"])},{default:Object(s["withCtx"])(()=>[(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["resolveDynamicComponent"])(e.clearIcon)))]),_:1},8,["class","onClick"])):Object(s["createCommentVNode"])("v-if",!0)]),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","label","tabindex","onKeydown"]))]),content:Object(s["withCtx"])(()=>[Object(s["renderSlot"])(e.$slots,"default",{visible:_.value,actualVisible:y.value,parsedValue:Object(s["unref"])(W),format:e.format,unlinkPanels:e.unlinkPanels,type:e.type,defaultValue:e.defaultValue,onPick:L,onSelectRange:j,onSetPickerOption:Ce,onCalendarChange:we,onPanelChange:Ie,onKeydown:U,onMousedown:t[1]||(t[1]=Object(s["withModifiers"])(()=>{},["stop"]))})]),_:3},16,["visible","transition","popper-class","popper-options"]))}});var wl=Object(h["a"])(Cl,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/common/picker.vue"]]);Mn.a.extend(Un.a),Mn.a.extend(js.a),Mn.a.extend(Ts.a),Mn.a.extend(Ls.a),Mn.a.extend(Ns.a),Mn.a.extend(Rs.a),Mn.a.extend(Us.a),Mn.a.extend(Bs.a);var Il=Object(s["defineComponent"])({name:"ElDatePicker",install:null,props:Ys,emits:["update:modelValue"],setup(e,{expose:t,emit:n,slots:r}){const o=Object(m["d"])("picker-panel");Object(s["provide"])("ElPopperOptions",Object(s["reactive"])(Object(s["toRef"])(e,"popperOptions"))),Object(s["provide"])(Fs,{slots:r,pickerNs:o});const a=Object(s["ref"])(),i={focus:(e=!0)=>{var t;null==(t=a.value)||t.focus(e)},handleOpen:()=>{var e;null==(e=a.value)||e.handleOpen()},handleClose:()=>{var e;null==(e=a.value)||e.handleClose()}};t(i);const c=e=>{n("update:modelValue",e)};return()=>{var t;const n=null!=(t=e.format)?t:xc[e.type]||Nc,o=bl(e.type);return Object(s["createVNode"])(wl,Object(s["mergeProps"])(e,{format:n,type:e.type,ref:a,"onUpdate:modelValue":c}),{default:e=>Object(s["createVNode"])(o,e,null),"range-separator":r["range-separator"]})}}});const Sl=Il;Sl.install=e=>{e.component(Sl.name,Sl)};const Tl=Sl,El=Symbol("elDescriptions");var jl=Object(s["defineComponent"])({name:"ElDescriptionsCell",props:{cell:{type:Object},tag:{type:String},type:{type:String}},setup(){const e=Object(s["inject"])(El,{});return{descriptions:e}},render(){var e,t,n,r,o,a;const i=Object(fr["d"])(this.cell),{border:c,direction:l}=this.descriptions,u="vertical"===l,d=(null==(n=null==(t=null==(e=this.cell)?void 0:e.children)?void 0:t.label)?void 0:n.call(t))||i.label,p=null==(a=null==(o=null==(r=this.cell)?void 0:r.children)?void 0:o.default)?void 0:a.call(o),f=i.span,h=i.align?"is-"+i.align:"",g=i.labelAlign?"is-"+i.labelAlign:h,_=i.className,y=i.labelClassName,b={width:Object(v["b"])(i.width),minWidth:Object(v["b"])(i.minWidth)},O=Object(m["d"])("descriptions");switch(this.type){case"label":return Object(s["h"])(this.tag,{style:b,class:[O.e("cell"),O.e("label"),O.is("bordered-label",c),O.is("vertical-label",u),g,y],colSpan:u?f:1},d);case"content":return Object(s["h"])(this.tag,{style:b,class:[O.e("cell"),O.e("content"),O.is("bordered-content",c),O.is("vertical-content",u),h,_],colSpan:u?f:2*f-1},p);default:return Object(s["h"])("td",{style:b,class:[O.e("cell"),h],colSpan:f},[Object(x["isNil"])(d)?void 0:Object(s["h"])("span",{class:[O.e("label"),y]},d),Object(s["h"])("span",{class:[O.e("content"),_]},p)])}}});const Dl=Object(l["b"])({row:{type:Array,default:()=>[]}}),Ll={key:1},Al=Object(s["defineComponent"])({name:"ElDescriptionsRow"}),Nl=Object(s["defineComponent"])({...Al,props:Dl,setup(e){const t=Object(s["inject"])(El,{});return(e,n)=>"vertical"===Object(s["unref"])(t).direction?(Object(s["openBlock"])(),Object(s["createElementBlock"])(s["Fragment"],{key:0},[Object(s["createElementVNode"])("tr",null,[(Object(s["openBlock"])(!0),Object(s["createElementBlock"])(s["Fragment"],null,Object(s["renderList"])(e.row,(e,t)=>(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(jl),{key:"tr1-"+t,cell:e,tag:"th",type:"label"},null,8,["cell"]))),128))]),Object(s["createElementVNode"])("tr",null,[(Object(s["openBlock"])(!0),Object(s["createElementBlock"])(s["Fragment"],null,Object(s["renderList"])(e.row,(e,t)=>(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(jl),{key:"tr2-"+t,cell:e,tag:"td",type:"content"},null,8,["cell"]))),128))])],64)):(Object(s["openBlock"])(),Object(s["createElementBlock"])("tr",Ll,[(Object(s["openBlock"])(!0),Object(s["createElementBlock"])(s["Fragment"],null,Object(s["renderList"])(e.row,(e,n)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])(s["Fragment"],{key:"tr3-"+n},[Object(s["unref"])(t).border?(Object(s["openBlock"])(),Object(s["createElementBlock"])(s["Fragment"],{key:0},[Object(s["createVNode"])(Object(s["unref"])(jl),{cell:e,tag:"td",type:"label"},null,8,["cell"]),Object(s["createVNode"])(Object(s["unref"])(jl),{cell:e,tag:"td",type:"content"},null,8,["cell"])],64)):(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(jl),{key:1,cell:e,tag:"td",type:"both"},null,8,["cell"]))],64))),128))]))}});var xl=Object(h["a"])(Nl,[["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/descriptions-row.vue"]]);const Rl=Object(l["b"])({border:{type:Boolean,default:!1},column:{type:Number,default:3},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},size:Lr["c"],title:{type:String,default:""},extra:{type:String,default:""}}),Pl=Object(s["defineComponent"])({name:"ElDescriptions"}),Ul=Object(s["defineComponent"])({...Pl,props:Rl,setup(e){const t=e,n=Object(m["d"])("descriptions"),r=Object(xt["b"])(),o=Object(s["useSlots"])();Object(s["provide"])(El,t);const a=Object(s["computed"])(()=>[n.b(),n.m(r.value)]),i=(e,t,n,r=!1)=>(e.props||(e.props={}),t>n&&(e.props.span=n),r&&(e.props.span=t),e),c=()=>{var e;const n=Object(fr["c"])(null==(e=o.default)?void 0:e.call(o)).filter(e=>{var t;return"ElDescriptionsItem"===(null==(t=null==e?void 0:e.type)?void 0:t.name)}),r=[];let a=[],s=t.column,c=0;return n.forEach((e,o)=>{var l;const u=(null==(l=e.props)?void 0:l.span)||1;if(o<n.length-1&&(c+=u>s?s:u),o===n.length-1){const n=t.column-c%t.column;return a.push(i(e,n,s,!0)),void r.push(a)}u<s?(s-=u,a.push(e)):(a.push(i(e,u,s)),r.push(a),s=t.column,a=[])}),r};return(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(a))},[e.title||e.extra||e.$slots.title||e.$slots.extra?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:0,class:Object(s["normalizeClass"])(Object(s["unref"])(n).e("header"))},[Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(n).e("title"))},[Object(s["renderSlot"])(e.$slots,"title",{},()=>[Object(s["createTextVNode"])(Object(s["toDisplayString"])(e.title),1)])],2),Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(n).e("extra"))},[Object(s["renderSlot"])(e.$slots,"extra",{},()=>[Object(s["createTextVNode"])(Object(s["toDisplayString"])(e.extra),1)])],2)],2)):Object(s["createCommentVNode"])("v-if",!0),Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(n).e("body"))},[Object(s["createElementVNode"])("table",{class:Object(s["normalizeClass"])([Object(s["unref"])(n).e("table"),Object(s["unref"])(n).is("bordered",e.border)])},[Object(s["createElementVNode"])("tbody",null,[(Object(s["openBlock"])(!0),Object(s["createElementBlock"])(s["Fragment"],null,Object(s["renderList"])(c(),(e,t)=>(Object(s["openBlock"])(),Object(s["createBlock"])(xl,{key:t,row:e},null,8,["row"]))),128))])],2)],2)],2))}});var Vl=Object(h["a"])(Ul,[["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/description.vue"]]),Bl=Object(s["defineComponent"])({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 Fl=Object(k["a"])(Vl,{DescriptionsItem:Bl}),Gl=Object(k["d"])(Bl);var zl=n("d5f6");const Hl=Symbol("dialogInjectionKey"),Yl=Object(l["b"])({center:Boolean,alignCenter:Boolean,closeIcon:{type:S["e"]},customClass:{type:String,default:""},draggable:Boolean,fullscreen:Boolean,showClose:{type:Boolean,default:!0},title:{type:String,default:""}}),ql={close:()=>!0};var Wl=n("72a5");const Kl=(...e)=>t=>{e.forEach(e=>{Object(Q["isFunction"])(e)?e(t):e.value=t})};var $l=n("be44");const Jl=["aria-label"],Ql=["id"],Xl=Object(s["defineComponent"])({name:"ElDialogContent"}),Zl=Object(s["defineComponent"])({...Xl,props:Yl,emits:ql,setup(e){const t=e,{t:n}=Object(Vn["b"])(),{Close:r}=S["a"],{dialogRef:o,headerRef:a,bodyId:i,ns:c,style:l}=Object(s["inject"])(Hl),{focusTrapRef:u}=Object(s["inject"])(Wl["f"]),d=Object(s["computed"])(()=>[c.b(),c.is("fullscreen",t.fullscreen),c.is("draggable",t.draggable),c.is("align-center",t.alignCenter),{[c.m("center")]:t.center},t.customClass]),p=Kl(u,o),f=Object(s["computed"])(()=>t.draggable);return Object($l["a"])(o,a,f),(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{ref:Object(s["unref"])(p),class:Object(s["normalizeClass"])(Object(s["unref"])(d)),style:Object(s["normalizeStyle"])(Object(s["unref"])(l)),tabindex:"-1"},[Object(s["createElementVNode"])("header",{ref_key:"headerRef",ref:a,class:Object(s["normalizeClass"])(Object(s["unref"])(c).e("header"))},[Object(s["renderSlot"])(e.$slots,"header",{},()=>[Object(s["createElementVNode"])("span",{role:"heading",class:Object(s["normalizeClass"])(Object(s["unref"])(c).e("title"))},Object(s["toDisplayString"])(e.title),3)]),e.showClose?(Object(s["openBlock"])(),Object(s["createElementBlock"])("button",{key:0,"aria-label":Object(s["unref"])(n)("el.dialog.close"),class:Object(s["normalizeClass"])(Object(s["unref"])(c).e("headerbtn")),type:"button",onClick:t[0]||(t[0]=t=>e.$emit("close"))},[Object(s["createVNode"])(Object(s["unref"])(w["a"]),{class:Object(s["normalizeClass"])(Object(s["unref"])(c).e("close"))},{default:Object(s["withCtx"])(()=>[(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["resolveDynamicComponent"])(e.closeIcon||Object(s["unref"])(r))))]),_:1},8,["class"])],10,Jl)):Object(s["createCommentVNode"])("v-if",!0)],2),Object(s["createElementVNode"])("div",{id:Object(s["unref"])(i),class:Object(s["normalizeClass"])(Object(s["unref"])(c).e("body"))},[Object(s["renderSlot"])(e.$slots,"default")],10,Ql),e.$slots.footer?(Object(s["openBlock"])(),Object(s["createElementBlock"])("footer",{key:0,class:Object(s["normalizeClass"])(Object(s["unref"])(c).e("footer"))},[Object(s["renderSlot"])(e.$slots,"footer")],2)):Object(s["createCommentVNode"])("v-if",!0)],6))}});var eu=Object(h["a"])(Zl,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog-content.vue"]]);const tu=Object(l["b"])({...Yl,appendToBody:Boolean,beforeClose:{type:Object(l["c"])(Function)},destroyOnClose:Boolean,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:Boolean,modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1}}),nu={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[d["c"]]:e=>Object(u["a"])(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0};var ru=n("7190");const ou=(e,t)=>{const n=Object(s["getCurrentInstance"])(),r=n.emit,{nextZIndex:o}=Object(ft["b"])();let i="";const l=Object(Ze["a"])(),u=Object(Ze["a"])(),p=Object(s["ref"])(!1),f=Object(s["ref"])(!1),h=Object(s["ref"])(!1),g=Object(s["ref"])(e.zIndex||o());let _=void 0,y=void 0;const b=Object(a["c"])("namespace",m["a"]),O=Object(s["computed"])(()=>{const t={},n=`--${b.value}-dialog`;return e.fullscreen||(e.top&&(t[n+"-margin-top"]=e.top),e.width&&(t[n+"-width"]=Object(v["b"])(e.width))),t}),M=Object(s["computed"])(()=>e.alignCenter?{display:"flex"}:{});function k(){r("opened")}function C(){r("closed"),r(d["c"],!1),e.destroyOnClose&&(h.value=!1)}function w(){r("close")}function I(){null==y||y(),null==_||_(),e.openDelay&&e.openDelay>0?({stop:_}=Object(c["useTimeoutFn"])(()=>j(),e.openDelay)):j()}function S(){null==_||_(),null==y||y(),e.closeDelay&&e.closeDelay>0?({stop:y}=Object(c["useTimeoutFn"])(()=>D(),e.closeDelay)):D()}function T(){function t(e){e||(f.value=!0,p.value=!1)}e.beforeClose?e.beforeClose(t):S()}function E(){e.closeOnClickModal&&T()}function j(){c["isClient"]&&(p.value=!0)}function D(){p.value=!1}function L(){r("openAutoFocus")}function A(){r("closeAutoFocus")}function N(e){var t;"pointer"===(null==(t=e.detail)?void 0:t.focusReason)&&e.preventDefault()}function x(){e.closeOnPressEscape&&T()}return e.lockScroll&&Object(ru["a"])(p),Object(s["watch"])(()=>e.modelValue,n=>{n?(f.value=!1,I(),h.value=!0,g.value=e.zIndex?g.value++:o(),Object(s["nextTick"])(()=>{r("open"),t.value&&(t.value.scrollTop=0)})):p.value&&S()}),Object(s["watch"])(()=>e.fullscreen,e=>{t.value&&(e?(i=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=i)}),Object(s["onMounted"])(()=>{e.modelValue&&(p.value=!0,h.value=!0,I())}),{afterEnter:k,afterLeave:C,beforeLeave:w,handleClose:T,onModalClick:E,close:S,doClose:D,onOpenAutoFocus:L,onCloseAutoFocus:A,onCloseRequested:x,onFocusoutPrevented:N,titleId:l,bodyId:u,closed:f,style:O,overlayDialogStyle:M,rendered:h,visible:p,zIndex:g}};var au=n("89d4");const iu=["aria-label","aria-labelledby","aria-describedby"],su=Object(s["defineComponent"])({name:"ElDialog",inheritAttrs:!1}),cu=Object(s["defineComponent"])({...su,props:tu,emits:nu,setup(e,{expose:t}){const n=e,r=Object(s["useSlots"])();Object(Wn["a"])({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},Object(s["computed"])(()=>!!r.title)),Object(Wn["a"])({scope:"el-dialog",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/dialog.html#attributes",type:"Attribute"},Object(s["computed"])(()=>!!n.customClass));const o=Object(m["d"])("dialog"),a=Object(s["ref"])(),i=Object(s["ref"])(),c=Object(s["ref"])(),{visible:l,titleId:u,bodyId:d,style:p,overlayDialogStyle:f,rendered:h,zIndex:v,afterEnter:g,afterLeave:_,beforeLeave:y,handleClose:b,onModalClick:O,onOpenAutoFocus:M,onCloseAutoFocus:k,onCloseRequested:C,onFocusoutPrevented:w}=ou(n,a);Object(s["provide"])(Hl,{dialogRef:a,headerRef:i,bodyId:d,ns:o,rendered:h,style:p});const I=Object(au["a"])(O),S=Object(s["computed"])(()=>n.draggable&&!n.fullscreen);return t({visible:l,dialogContentRef:c}),(e,t)=>(Object(s["openBlock"])(),Object(s["createBlock"])(s["Teleport"],{to:"body",disabled:!e.appendToBody},[Object(s["createVNode"])(s["Transition"],{name:"dialog-fade",onAfterEnter:Object(s["unref"])(g),onAfterLeave:Object(s["unref"])(_),onBeforeLeave:Object(s["unref"])(y),persisted:""},{default:Object(s["withCtx"])(()=>[Object(s["withDirectives"])(Object(s["createVNode"])(Object(s["unref"])(zl["a"]),{"custom-mask-event":"",mask:e.modal,"overlay-class":e.modalClass,"z-index":Object(s["unref"])(v)},{default:Object(s["withCtx"])(()=>[Object(s["createElementVNode"])("div",{role:"dialog","aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:Object(s["unref"])(u),"aria-describedby":Object(s["unref"])(d),class:Object(s["normalizeClass"])(Object(s["unref"])(o).namespace.value+"-overlay-dialog"),style:Object(s["normalizeStyle"])(Object(s["unref"])(f)),onClick:t[0]||(t[0]=(...e)=>Object(s["unref"])(I).onClick&&Object(s["unref"])(I).onClick(...e)),onMousedown:t[1]||(t[1]=(...e)=>Object(s["unref"])(I).onMousedown&&Object(s["unref"])(I).onMousedown(...e)),onMouseup:t[2]||(t[2]=(...e)=>Object(s["unref"])(I).onMouseup&&Object(s["unref"])(I).onMouseup(...e))},[Object(s["createVNode"])(Object(s["unref"])(vt["a"]),{loop:"",trapped:Object(s["unref"])(l),"focus-start-el":"container",onFocusAfterTrapped:Object(s["unref"])(M),onFocusAfterReleased:Object(s["unref"])(k),onFocusoutPrevented:Object(s["unref"])(w),onReleaseRequested:Object(s["unref"])(C)},{default:Object(s["withCtx"])(()=>[Object(s["unref"])(h)?(Object(s["openBlock"])(),Object(s["createBlock"])(eu,Object(s["mergeProps"])({key:0,ref_key:"dialogContentRef",ref:c},e.$attrs,{"custom-class":e.customClass,center:e.center,"align-center":e.alignCenter,"close-icon":e.closeIcon,draggable:Object(s["unref"])(S),fullscreen:e.fullscreen,"show-close":e.showClose,title:e.title,onClose:Object(s["unref"])(b)}),Object(s["createSlots"])({header:Object(s["withCtx"])(()=>[e.$slots.title?Object(s["renderSlot"])(e.$slots,"title",{key:1}):Object(s["renderSlot"])(e.$slots,"header",{key:0,close:Object(s["unref"])(b),titleId:Object(s["unref"])(u),titleClass:Object(s["unref"])(o).e("title")})]),default:Object(s["withCtx"])(()=>[Object(s["renderSlot"])(e.$slots,"default")]),_:2},[e.$slots.footer?{name:"footer",fn:Object(s["withCtx"])(()=>[Object(s["renderSlot"])(e.$slots,"footer")])}:void 0]),1040,["custom-class","center","align-center","close-icon","draggable","fullscreen","show-close","title","onClose"])):Object(s["createCommentVNode"])("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,iu)]),_:3},8,["mask","overlay-class","z-index"]),[[s["vShow"],Object(s["unref"])(l)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"]))}});var lu=Object(h["a"])(cu,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog.vue"]]);const uu=Object(k["a"])(lu),du=Object(l["b"])({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:Object(l["c"])(String),default:"solid"}}),pu=Object(s["defineComponent"])({name:"ElDivider"}),fu=Object(s["defineComponent"])({...pu,props:du,setup(e){const t=e,n=Object(m["d"])("divider"),r=Object(s["computed"])(()=>n.cssVar({"border-style":t.borderStyle}));return(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{class:Object(s["normalizeClass"])([Object(s["unref"])(n).b(),Object(s["unref"])(n).m(e.direction)]),style:Object(s["normalizeStyle"])(Object(s["unref"])(r)),role:"separator"},[e.$slots.default&&"vertical"!==e.direction?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:0,class:Object(s["normalizeClass"])([Object(s["unref"])(n).e("text"),Object(s["unref"])(n).is(e.contentPosition)])},[Object(s["renderSlot"])(e.$slots,"default")],2)):Object(s["createCommentVNode"])("v-if",!0)],6))}});var hu=Object(h["a"])(fu,[["__file","/home/runner/work/element-plus/element-plus/packages/components/divider/src/divider.vue"]]);const mu=Object(k["a"])(hu),vu=Object(l["b"])({...tu,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}}),gu=nu,_u=Object(s["defineComponent"])({name:"ElDrawer",components:{ElOverlay:zl["a"],ElFocusTrap:vt["a"],ElIcon:w["a"],Close:R["Close"]},inheritAttrs:!1,props:vu,emits:gu,setup(e,{slots:t}){Object(Wn["a"])({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},Object(s["computed"])(()=>!!t.title)),Object(Wn["a"])({scope:"el-drawer",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/drawer.html#attributes",type:"Attribute"},Object(s["computed"])(()=>!!e.customClass));const n=Object(s["ref"])(),r=Object(s["ref"])(),o=Object(m["d"])("drawer"),{t:a}=Object(Vn["b"])(),i=Object(s["computed"])(()=>"rtl"===e.direction||"ltr"===e.direction),c=Object(s["computed"])(()=>Object(v["b"])(e.size));return{...ou(e,n),drawerRef:n,focusStartRef:r,isHorizontal:i,drawerSize:c,ns:o,t:a}}}),yu=["aria-label","aria-labelledby","aria-describedby"],bu=["id"],Ou=["aria-label"],Mu=["id"];function ku(e,t,n,r,o,a){const i=Object(s["resolveComponent"])("close"),c=Object(s["resolveComponent"])("el-icon"),l=Object(s["resolveComponent"])("el-focus-trap"),u=Object(s["resolveComponent"])("el-overlay");return Object(s["openBlock"])(),Object(s["createBlock"])(s["Teleport"],{to:"body",disabled:!e.appendToBody},[Object(s["createVNode"])(s["Transition"],{name:e.ns.b("fade"),onAfterEnter:e.afterEnter,onAfterLeave:e.afterLeave,onBeforeLeave:e.beforeLeave,persisted:""},{default:Object(s["withCtx"])(()=>[Object(s["withDirectives"])(Object(s["createVNode"])(u,{mask:e.modal,"overlay-class":e.modalClass,"z-index":e.zIndex,onClick:e.onModalClick},{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(l,{loop:"",trapped:e.visible,"focus-trap-el":e.drawerRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:Object(s["withCtx"])(()=>[Object(s["createElementVNode"])("div",Object(s["mergeProps"])({ref:"drawerRef","aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:e.titleId,"aria-describedby":e.bodyId},e.$attrs,{class:[e.ns.b(),e.direction,e.visible&&"open",e.customClass],style:e.isHorizontal?"width: "+e.drawerSize:"height: "+e.drawerSize,role:"dialog",onClick:t[1]||(t[1]=Object(s["withModifiers"])(()=>{},["stop"]))}),[Object(s["createElementVNode"])("span",{ref:"focusStartRef",class:Object(s["normalizeClass"])(e.ns.e("sr-focus")),tabindex:"-1"},null,2),e.withHeader?(Object(s["openBlock"])(),Object(s["createElementBlock"])("header",{key:0,class:Object(s["normalizeClass"])(e.ns.e("header"))},[e.$slots.title?Object(s["renderSlot"])(e.$slots,"title",{key:1},()=>[Object(s["createCommentVNode"])(" DEPRECATED SLOT ")]):Object(s["renderSlot"])(e.$slots,"header",{key:0,close:e.handleClose,titleId:e.titleId,titleClass:e.ns.e("title")},()=>[e.$slots.title?Object(s["createCommentVNode"])("v-if",!0):(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",{key:0,id:e.titleId,role:"heading",class:Object(s["normalizeClass"])(e.ns.e("title"))},Object(s["toDisplayString"])(e.title),11,bu))]),e.showClose?(Object(s["openBlock"])(),Object(s["createElementBlock"])("button",{key:2,"aria-label":e.t("el.drawer.close"),class:Object(s["normalizeClass"])(e.ns.e("close-btn")),type:"button",onClick:t[0]||(t[0]=(...t)=>e.handleClose&&e.handleClose(...t))},[Object(s["createVNode"])(c,{class:Object(s["normalizeClass"])(e.ns.e("close"))},{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(i)]),_:1},8,["class"])],10,Ou)):Object(s["createCommentVNode"])("v-if",!0)],2)):Object(s["createCommentVNode"])("v-if",!0),e.rendered?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:1,id:e.bodyId,class:Object(s["normalizeClass"])(e.ns.e("body"))},[Object(s["renderSlot"])(e.$slots,"default")],10,Mu)):Object(s["createCommentVNode"])("v-if",!0),e.$slots.footer?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:2,class:Object(s["normalizeClass"])(e.ns.e("footer"))},[Object(s["renderSlot"])(e.$slots,"footer")],2)):Object(s["createCommentVNode"])("v-if",!0)],16,yu)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[s["vShow"],e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"])}var Cu=Object(h["a"])(_u,[["render",ku],["__file","/home/runner/work/element-plus/element-plus/packages/components/drawer/src/drawer.vue"]]);const wu=Object(k["a"])(Cu),Iu=Object(s["defineComponent"])({inheritAttrs:!1});function Su(e,t,n,r,o,a){return Object(s["renderSlot"])(e.$slots,"default")}var Tu=Object(h["a"])(Iu,[["render",Su],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);const Eu=Object(s["defineComponent"])({name:"ElCollectionItem",inheritAttrs:!1});function ju(e,t,n,r,o,a){return Object(s["renderSlot"])(e.$slots,"default")}var Du=Object(h["a"])(Eu,[["render",ju],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);const Lu="data-el-collection-item",Au=e=>{const t=`El${e}Collection`,n=t+"Item",r=Symbol(t),o=Symbol(n),a={...Tu,name:t,setup(){const e=Object(s["ref"])(null),t=new Map,n=()=>{const n=Object(s["unref"])(e);if(!n)return[];const r=Array.from(n.querySelectorAll(`[${Lu}]`)),o=[...t.values()];return o.sort((e,t)=>r.indexOf(e.ref)-r.indexOf(t.ref))};Object(s["provide"])(r,{itemMap:t,getItems:n,collectionRef:e})}},i={...Du,name:n,setup(e,{attrs:t}){const n=Object(s["ref"])(null),a=Object(s["inject"])(r,void 0);Object(s["provide"])(o,{collectionItemRef:n}),Object(s["onMounted"])(()=>{const e=Object(s["unref"])(n);e&&a.itemMap.set(e,{ref:e,...t})}),Object(s["onBeforeUnmount"])(()=>{const e=Object(s["unref"])(n);a.itemMap.delete(e)})}};return{COLLECTION_INJECTION_KEY:r,COLLECTION_ITEM_INJECTION_KEY:o,ElCollection:a,ElCollectionItem:i}},Nu=Object(l["b"])({trigger:ke.trigger,effect:{...be.effect,default:"light"},type:{type:Object(l["c"])(String)},placement:{type:Object(l["c"])(String),default:"bottom"},popperOptions:{type:Object(l["c"])(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:Object(l["c"])([Number,String]),default:0},maxHeight:{type:Object(l["c"])([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:Object(l["c"])(Object)},teleported:be.teleported}),xu=Object(l["b"])({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:S["e"]}}),Ru=Object(l["b"])({onKeydown:{type:Object(l["c"])(Function)}}),Pu=[Me["a"].down,Me["a"].pageDown,Me["a"].home],Uu=[Me["a"].up,Me["a"].pageUp,Me["a"].end],Vu=[...Pu,...Uu],{ElCollection:Bu,ElCollectionItem:Fu,COLLECTION_INJECTION_KEY:Gu,COLLECTION_ITEM_INJECTION_KEY:zu}=Au("Dropdown"),Hu=Symbol("elDropdown"),Yu=Object(l["b"])({style:{type:Object(l["c"])([String,Array,Object])},currentTabId:{type:Object(l["c"])(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:Object(l["c"])(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:qu,ElCollectionItem:Wu,COLLECTION_INJECTION_KEY:Ku,COLLECTION_ITEM_INJECTION_KEY:$u}=Au("RovingFocusGroup"),Ju=Symbol("elRovingFocusGroup"),Qu=Symbol("elRovingFocusGroupItem"),Xu={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},Zu=(e,t)=>{if("rtl"!==t)return e;switch(e){case Me["a"].right:return Me["a"].left;case Me["a"].left:return Me["a"].right;default:return e}},ed=(e,t,n)=>{const r=Zu(e.key,n);if(("vertical"!==t||![Me["a"].left,Me["a"].right].includes(r))&&("horizontal"!==t||![Me["a"].up,Me["a"].down].includes(r)))return Xu[r]},td=(e,t)=>e.map((n,r)=>e[(r+t)%e.length]),nd=e=>{const{activeElement:t}=document;for(const n of e){if(n===t)return;if(n.focus(),t!==document.activeElement)return}},rd="currentTabIdChange",od="rovingFocusGroup.entryFocus",ad={bubbles:!1,cancelable:!0},id=Object(s["defineComponent"])({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:Yu,emits:[rd,"entryFocus"],setup(e,{emit:t}){var n;const r=Object(s["ref"])(null!=(n=e.currentTabId||e.defaultCurrentTabId)?n:null),o=Object(s["ref"])(!1),a=Object(s["ref"])(!1),i=Object(s["ref"])(null),{getItems:l}=Object(s["inject"])(Ku,void 0),u=Object(s["computed"])(()=>[{outline:"none"},e.style]),d=e=>{t(rd,e)},p=()=>{o.value=!0},f=Ue(t=>{var n;null==(n=e.onMousedown)||n.call(e,t)},()=>{a.value=!0}),h=Ue(t=>{var n;null==(n=e.onFocus)||n.call(e,t)},e=>{const t=!Object(s["unref"])(a),{target:n,currentTarget:i}=e;if(n===i&&t&&!Object(s["unref"])(o)){const e=new Event(od,ad);if(null==i||i.dispatchEvent(e),!e.defaultPrevented){const e=l().filter(e=>e.focusable),t=e.find(e=>e.active),n=e.find(e=>e.id===Object(s["unref"])(r)),o=[t,n,...e].filter(Boolean),a=o.map(e=>e.ref);nd(a)}}a.value=!1}),m=Ue(t=>{var n;null==(n=e.onBlur)||n.call(e,t)},()=>{o.value=!1}),v=(...e)=>{t("entryFocus",...e)};Object(s["provide"])(Ju,{currentTabbedId:Object(s["readonly"])(r),loop:Object(s["toRef"])(e,"loop"),tabIndex:Object(s["computed"])(()=>Object(s["unref"])(o)?-1:0),rovingFocusGroupRef:i,rovingFocusGroupRootStyle:u,orientation:Object(s["toRef"])(e,"orientation"),dir:Object(s["toRef"])(e,"dir"),onItemFocus:d,onItemShiftTab:p,onBlur:m,onFocus:h,onMousedown:f}),Object(s["watch"])(()=>e.currentTabId,e=>{r.value=null!=e?e:null}),Object(c["useEventListener"])(i,od,v)}});function sd(e,t,n,r,o,a){return Object(s["renderSlot"])(e.$slots,"default")}var cd=Object(h["a"])(id,[["render",sd],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group-impl.vue"]]);const ld=Object(s["defineComponent"])({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:qu,ElRovingFocusGroupImpl:cd}});function ud(e,t,n,r,o,a){const i=Object(s["resolveComponent"])("el-roving-focus-group-impl"),c=Object(s["resolveComponent"])("el-focus-group-collection");return Object(s["openBlock"])(),Object(s["createBlock"])(c,null,{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(i,Object(s["normalizeProps"])(Object(s["guardReactiveProps"])(e.$attrs)),{default:Object(s["withCtx"])(()=>[Object(s["renderSlot"])(e.$slots,"default")]),_:3},16)]),_:3})}var dd=Object(h["a"])(ld,[["render",ud],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group.vue"]]);const{ButtonGroup:pd}=bn["a"],fd=Object(s["defineComponent"])({name:"ElDropdown",components:{ElButton:bn["a"],ElButtonGroup:pd,ElScrollbar:ne,ElDropdownCollection:Bu,ElTooltip:Dt,ElRovingFocusGroup:dd,ElOnlyChild:He,ElIcon:w["a"],ArrowDown:R["ArrowDown"]},props:Nu,emits:["visible-change","click","command"],setup(e,{emit:t}){const n=Object(s["getCurrentInstance"])(),r=Object(m["d"])("dropdown"),{t:o}=Object(Vn["b"])(),a=Object(s["ref"])(),i=Object(s["ref"])(),c=Object(s["ref"])(null),l=Object(s["ref"])(null),u=Object(s["ref"])(null),d=Object(s["ref"])(null),p=Object(s["ref"])(!1),f=[Me["a"].enter,Me["a"].space,Me["a"].down],h=Object(s["computed"])(()=>({maxHeight:Object(v["b"])(e.maxHeight)})),g=Object(s["computed"])(()=>[r.m(k.value)]),_=Object(Ze["a"])().value,y=Object(s["computed"])(()=>e.id||_);function b(){O()}function O(){var e;null==(e=c.value)||e.onClose()}function M(){var e;null==(e=c.value)||e.onOpen()}Object(s["watch"])([a,Object(s["toRef"])(e,"trigger")],([e,t],[n])=>{var r,o,a;const i=Object(Q["isArray"])(t)?t:[t];(null==(r=null==n?void 0:n.$el)?void 0:r.removeEventListener)&&n.$el.removeEventListener("pointerenter",w),(null==(o=null==e?void 0:e.$el)?void 0:o.removeEventListener)&&e.$el.removeEventListener("pointerenter",w),(null==(a=null==e?void 0:e.$el)?void 0:a.addEventListener)&&i.includes("hover")&&e.$el.addEventListener("pointerenter",w)},{immediate:!0}),Object(s["onBeforeUnmount"])(()=>{var e,t;(null==(t=null==(e=a.value)?void 0:e.$el)?void 0:t.removeEventListener)&&a.value.$el.removeEventListener("pointerenter",w)});const k=Object(xt["b"])();function C(...e){t("command",...e)}function w(){var e,t;null==(t=null==(e=a.value)?void 0:e.$el)||t.focus()}function I(){}function S(){const e=Object(s["unref"])(l);null==e||e.focus(),d.value=null}function T(e){d.value=e}function E(e){p.value||(e.preventDefault(),e.stopImmediatePropagation())}function j(){t("visible-change",!0)}function D(e){"keydown"===(null==e?void 0:e.type)&&l.value.focus()}function L(){t("visible-change",!1)}Object(s["provide"])(Hu,{contentRef:l,role:Object(s["computed"])(()=>e.role),triggerId:y,isUsingKeyboard:p,onItemEnter:I,onItemLeave:S}),Object(s["provide"])("elDropdown",{instance:n,dropdownSize:k,handleClick:b,commandHandler:C,trigger:Object(s["toRef"])(e,"trigger"),hideOnClick:Object(s["toRef"])(e,"hideOnClick")});const A=e=>{var t,n;e.preventDefault(),null==(n=null==(t=l.value)?void 0:t.focus)||n.call(t,{preventScroll:!0})},N=e=>{t("click",e)};return{t:o,ns:r,scrollbar:u,wrapStyle:h,dropdownTriggerKls:g,dropdownSize:k,triggerId:y,triggerKeys:f,currentTabId:d,handleCurrentTabIdChange:T,handlerMainButtonClick:N,handleEntryFocus:E,handleClose:O,handleOpen:M,handleBeforeShowTooltip:j,handleShowTooltip:D,handleBeforeHideTooltip:L,onFocusAfterTrapped:A,popperRef:c,contentRef:l,triggeringElementRef:a,referenceElementRef:i}}});function hd(e,t,n,r,o,a){var i;const c=Object(s["resolveComponent"])("el-dropdown-collection"),l=Object(s["resolveComponent"])("el-roving-focus-group"),u=Object(s["resolveComponent"])("el-scrollbar"),d=Object(s["resolveComponent"])("el-only-child"),p=Object(s["resolveComponent"])("el-tooltip"),f=Object(s["resolveComponent"])("el-button"),h=Object(s["resolveComponent"])("arrow-down"),m=Object(s["resolveComponent"])("el-icon"),v=Object(s["resolveComponent"])("el-button-group");return Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{class:Object(s["normalizeClass"])([e.ns.b(),e.ns.is("disabled",e.disabled)])},[Object(s["createVNode"])(p,{ref:"popperRef",role:e.role,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==(i=e.referenceElementRef)?void 0:i.$el,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-after":"hover"===e.trigger?e.showTimeout:0,"stop-popper-mouse-event":!1,"virtual-ref":e.triggeringElementRef,"virtual-triggering":e.splitButton,disabled:e.disabled,transition:e.ns.namespace.value+"-zoom-in-top",teleported:e.teleported,pure:"",persistent:"",onBeforeShow:e.handleBeforeShowTooltip,onShow:e.handleShowTooltip,onBeforeHide:e.handleBeforeHideTooltip},Object(s["createSlots"])({content:Object(s["withCtx"])(()=>[Object(s["createVNode"])(u,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(l,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange,onEntryFocus:e.handleEntryFocus},{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(c,null,{default:Object(s["withCtx"])(()=>[Object(s["renderSlot"])(e.$slots,"dropdown")]),_:3})]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange","onEntryFocus"])]),_:3},8,["wrap-style","view-class"])]),_:2},[e.splitButton?void 0:{name:"default",fn:Object(s["withCtx"])(()=>[Object(s["createVNode"])(d,{id:e.triggerId,ref:"triggeringElementRef",role:"button",tabindex:e.tabindex},{default:Object(s["withCtx"])(()=>[Object(s["renderSlot"])(e.$slots,"default")]),_:3},8,["id","tabindex"])])}]),1032,["role","effect","popper-options","hide-after","placement","popper-class","reference-element","trigger","trigger-keys","trigger-target-el","show-after","virtual-ref","virtual-triggering","disabled","transition","teleported","onBeforeShow","onShow","onBeforeHide"]),e.splitButton?(Object(s["openBlock"])(),Object(s["createBlock"])(v,{key:0},{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(f,Object(s["mergeProps"])({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:Object(s["withCtx"])(()=>[Object(s["renderSlot"])(e.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),Object(s["createVNode"])(f,Object(s["mergeProps"])({id:e.triggerId,ref:"triggeringElementRef"},e.buttonProps,{role:"button",size:e.dropdownSize,type:e.type,class:e.ns.e("caret-button"),disabled:e.disabled,tabindex:e.tabindex,"aria-label":e.t("el.dropdown.toggleDropdown")}),{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(m,{class:Object(s["normalizeClass"])(e.ns.e("icon"))},{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(h)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):Object(s["createCommentVNode"])("v-if",!0)],2)}var md=Object(h["a"])(fd,[["render",hd],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown.vue"]]);const vd=Object(s["defineComponent"])({name:"DropdownItemImpl",components:{ElIcon:w["a"]},props:xu,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const n=Object(m["d"])("dropdown"),{role:r}=Object(s["inject"])(Hu,void 0),{collectionItemRef:o}=Object(s["inject"])(zu,void 0),{collectionItemRef:a}=Object(s["inject"])($u,void 0),{rovingFocusGroupItemRef:i,tabIndex:c,handleFocus:l,handleKeydown:u,handleMousedown:d}=Object(s["inject"])(Qu,void 0),p=Kl(o,a,i),f=Object(s["computed"])(()=>"menu"===r.value?"menuitem":"navigation"===r.value?"link":"button"),h=Ue(e=>{const{code:n}=e;if(n===Me["a"].enter||n===Me["a"].space)return e.preventDefault(),e.stopImmediatePropagation(),t("clickimpl",e),!0},u);return{ns:n,itemRef:p,dataset:{[Lu]:""},role:f,tabIndex:c,handleFocus:l,handleKeydown:h,handleMousedown:d}}}),gd=["aria-disabled","tabindex","role"];function _d(e,t,n,r,o,a){const i=Object(s["resolveComponent"])("el-icon");return Object(s["openBlock"])(),Object(s["createElementBlock"])(s["Fragment"],null,[e.divided?(Object(s["openBlock"])(),Object(s["createElementBlock"])("li",Object(s["mergeProps"])({key:0,role:"separator",class:e.ns.bem("menu","item","divided")},e.$attrs),null,16)):Object(s["createCommentVNode"])("v-if",!0),Object(s["createElementVNode"])("li",Object(s["mergeProps"])({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:e.role,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]=Object(s["withModifiers"])((...t)=>e.handleKeydown&&e.handleKeydown(...t),["self"])),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?(Object(s["openBlock"])(),Object(s["createBlock"])(i,{key:0},{default:Object(s["withCtx"])(()=>[(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["resolveDynamicComponent"])(e.icon)))]),_:1})):Object(s["createCommentVNode"])("v-if",!0),Object(s["renderSlot"])(e.$slots,"default")],16,gd)],64)}var yd=Object(h["a"])(vd,[["render",_d],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item-impl.vue"]]);const bd=()=>{const e=Object(s["inject"])("elDropdown",{}),t=Object(s["computed"])(()=>null==e?void 0:e.dropdownSize);return{elDropdown:e,_elDropdownSize:t}},Od=Object(s["defineComponent"])({components:{ElRovingFocusCollectionItem:Wu},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:a}=Object(s["inject"])(Ju,void 0),{getItems:i}=Object(s["inject"])(Ku,void 0),c=Object(Ze["a"])(),l=Object(s["ref"])(null),u=Ue(e=>{t("mousedown",e)},t=>{e.focusable?o(Object(s["unref"])(c)):t.preventDefault()}),d=Ue(e=>{t("focus",e)},()=>{o(Object(s["unref"])(c))}),p=Ue(e=>{t("keydown",e)},e=>{const{key:t,shiftKey:n,target:o,currentTarget:c}=e;if(t===Me["a"].tab&&n)return void a();if(o!==c)return;const l=ed(e);if(l){e.preventDefault();const t=i().filter(e=>e.focusable);let n=t.map(e=>e.ref);switch(l){case"last":n.reverse();break;case"prev":case"next":{"prev"===l&&n.reverse();const e=n.indexOf(c);n=r.value?td(n,e+1):n.slice(e+1);break}default:break}Object(s["nextTick"])(()=>{nd(n)})}}),f=Object(s["computed"])(()=>n.value===Object(s["unref"])(c));return Object(s["provide"])(Qu,{rovingFocusGroupItemRef:l,tabIndex:Object(s["computed"])(()=>Object(s["unref"])(f)?0:-1),handleMousedown:u,handleFocus:d,handleKeydown:p}),{id:c,handleKeydown:p,handleFocus:d,handleMousedown:u}}});function Md(e,t,n,r,o,a){const i=Object(s["resolveComponent"])("el-roving-focus-collection-item");return Object(s["openBlock"])(),Object(s["createBlock"])(i,{id:e.id,focusable:e.focusable,active:e.active},{default:Object(s["withCtx"])(()=>[Object(s["renderSlot"])(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var kd=Object(h["a"])(Od,[["render",Md],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-item.vue"]]);const Cd=Object(s["defineComponent"])({name:"ElDropdownItem",components:{ElDropdownCollectionItem:Fu,ElRovingFocusItem:kd,ElDropdownItemImpl:yd},inheritAttrs:!1,props:xu,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:n}){const{elDropdown:r}=bd(),o=Object(s["getCurrentInstance"])(),a=Object(s["ref"])(null),i=Object(s["computed"])(()=>{var e,t;return null!=(t=null==(e=Object(s["unref"])(a))?void 0:e.textContent)?t:""}),{onItemEnter:c,onItemLeave:l}=Object(s["inject"])(Hu,void 0),u=Ue(e=>(t("pointermove",e),e.defaultPrevented),Ve(t=>{if(e.disabled)return void l(t);const n=t.currentTarget;n===document.activeElement||n.contains(document.activeElement)||(c(t),t.defaultPrevented||null==n||n.focus())})),d=Ue(e=>(t("pointerleave",e),e.defaultPrevented),Ve(e=>{l(e)})),p=Ue(n=>{if(!e.disabled)return t("click",n),"keydown"!==n.type&&n.defaultPrevented},t=>{var n,a,i;e.disabled?t.stopImmediatePropagation():((null==(n=null==r?void 0:r.hideOnClick)?void 0:n.value)&&(null==(a=r.handleClick)||a.call(r)),null==(i=r.commandHandler)||i.call(r,e.command,o,t))}),f=Object(s["computed"])(()=>({...e,...n}));return{handleClick:p,handlePointerMove:u,handlePointerLeave:d,textContent:i,propsAndAttrs:f}}});function wd(e,t,n,r,o,a){var i;const c=Object(s["resolveComponent"])("el-dropdown-item-impl"),l=Object(s["resolveComponent"])("el-roving-focus-item"),u=Object(s["resolveComponent"])("el-dropdown-collection-item");return Object(s["openBlock"])(),Object(s["createBlock"])(u,{disabled:e.disabled,"text-value":null!=(i=e.textValue)?i:e.textContent},{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(l,{focusable:!e.disabled},{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(c,Object(s["mergeProps"])(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),{default:Object(s["withCtx"])(()=>[Object(s["renderSlot"])(e.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])]),_:3},8,["disabled","text-value"])}var Id=Object(h["a"])(Cd,[["render",wd],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item.vue"]]);const Sd=Object(s["defineComponent"])({name:"ElDropdownMenu",props:Ru,setup(e){const t=Object(m["d"])("dropdown"),{_elDropdownSize:n}=bd(),r=n.value,{focusTrapRef:o,onKeydown:a}=Object(s["inject"])(Wl["f"],void 0),{contentRef:i,role:c,triggerId:l}=Object(s["inject"])(Hu,void 0),{collectionRef:u,getItems:d}=Object(s["inject"])(Gu,void 0),{rovingFocusGroupRef:p,rovingFocusGroupRootStyle:f,tabIndex:h,onBlur:v,onFocus:g,onMousedown:_}=Object(s["inject"])(Ju,void 0),{collectionRef:y}=Object(s["inject"])(Ku,void 0),b=Object(s["computed"])(()=>[t.b("menu"),t.bm("menu",null==r?void 0:r.value)]),O=Kl(i,u,o,p,y),M=Ue(t=>{var n;null==(n=e.onKeydown)||n.call(e,t)},e=>{const{currentTarget:t,code:n,target:r}=e;t.contains(r);if(Me["a"].tab===n&&e.stopImmediatePropagation(),e.preventDefault(),r!==Object(s["unref"])(i))return;if(!Vu.includes(n))return;const o=d().filter(e=>!e.disabled),a=o.map(e=>e.ref);Uu.includes(n)&&a.reverse(),nd(a)}),k=e=>{M(e),a(e)};return{size:r,rovingFocusGroupRootStyle:f,tabIndex:h,dropdownKls:b,role:c,triggerId:l,dropdownListWrapperRef:O,handleKeydown:k,onBlur:v,onFocus:g,onMousedown:_}}}),Td=["role","aria-labelledby"];function Ed(e,t,n,r,o,a){return Object(s["openBlock"])(),Object(s["createElementBlock"])("ul",{ref:e.dropdownListWrapperRef,class:Object(s["normalizeClass"])(e.dropdownKls),style:Object(s["normalizeStyle"])(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,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]=Object(s["withModifiers"])((...t)=>e.handleKeydown&&e.handleKeydown(...t),["self"])),onMousedown:t[3]||(t[3]=Object(s["withModifiers"])((...t)=>e.onMousedown&&e.onMousedown(...t),["self"]))},[Object(s["renderSlot"])(e.$slots,"default")],46,Td)}var jd=Object(h["a"])(Sd,[["render",Ed],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-menu.vue"]]);const Dd=Object(k["a"])(md,{DropdownItem:Id,DropdownMenu:jd}),Ld=Object(k["d"])(Id),Ad=Object(k["d"])(jd),Nd={viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},xd=["id"],Rd=["stop-color"],Pd=["stop-color"],Ud=["id"],Vd=["stop-color"],Bd=["stop-color"],Fd=["id"],Gd={id:"Illustrations",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},zd={id:"B-type",transform:"translate(-1268.000000, -535.000000)"},Hd={id:"Group-2",transform:"translate(1268.000000, 535.000000)"},Yd=["fill"],qd=["fill"],Wd={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)"},Kd=["fill"],$d=["fill"],Jd=["fill"],Qd=["fill"],Xd=["fill"],Zd={id:"Rectangle-Copy-17",transform:"translate(53.000000, 45.000000)"},ep=["fill","xlink:href"],tp=["fill","mask"],np=["fill"],rp=Object(s["defineComponent"])({name:"ImgEmpty"}),op=Object(s["defineComponent"])({...rp,setup(e){const t=Object(m["d"])("empty"),n=Object(Ze["a"])();return(e,r)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("svg",Nd,[Object(s["createElementVNode"])("defs",null,[Object(s["createElementVNode"])("linearGradient",{id:"linearGradient-1-"+Object(s["unref"])(n),x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[Object(s["createElementVNode"])("stop",{"stop-color":`var(${Object(s["unref"])(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,Rd),Object(s["createElementVNode"])("stop",{"stop-color":`var(${Object(s["unref"])(t).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,Pd)],8,xd),Object(s["createElementVNode"])("linearGradient",{id:"linearGradient-2-"+Object(s["unref"])(n),x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[Object(s["createElementVNode"])("stop",{"stop-color":`var(${Object(s["unref"])(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,Vd),Object(s["createElementVNode"])("stop",{"stop-color":`var(${Object(s["unref"])(t).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,Bd)],8,Ud),Object(s["createElementVNode"])("rect",{id:"path-3-"+Object(s["unref"])(n),x:"0",y:"0",width:"17",height:"36"},null,8,Fd)]),Object(s["createElementVNode"])("g",Gd,[Object(s["createElementVNode"])("g",zd,[Object(s["createElementVNode"])("g",Hd,[Object(s["createElementVNode"])("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(${Object(s["unref"])(t).cssVarBlockName("fill-color-3")})`},null,8,Yd),Object(s["createElementVNode"])("polygon",{id:"Rectangle-Copy-14",fill:`var(${Object(s["unref"])(t).cssVarBlockName("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,8,qd),Object(s["createElementVNode"])("g",Wd,[Object(s["createElementVNode"])("polygon",{id:"Rectangle-Copy-10",fill:`var(${Object(s["unref"])(t).cssVarBlockName("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,8,Kd),Object(s["createElementVNode"])("polygon",{id:"Rectangle-Copy-11",fill:`var(${Object(s["unref"])(t).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,$d),Object(s["createElementVNode"])("rect",{id:"Rectangle-Copy-12",fill:`url(#linearGradient-1-${Object(s["unref"])(n)})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,Jd),Object(s["createElementVNode"])("polygon",{id:"Rectangle-Copy-13",fill:`var(${Object(s["unref"])(t).cssVarBlockName("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,8,Qd)]),Object(s["createElementVNode"])("rect",{id:"Rectangle-Copy-15",fill:`url(#linearGradient-2-${Object(s["unref"])(n)})`,x:"13",y:"45",width:"40",height:"36"},null,8,Xd),Object(s["createElementVNode"])("g",Zd,[Object(s["createElementVNode"])("use",{id:"Mask",fill:`var(${Object(s["unref"])(t).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":"#path-3-"+Object(s["unref"])(n)},null,8,ep),Object(s["createElementVNode"])("polygon",{id:"Rectangle-Copy",fill:`var(${Object(s["unref"])(t).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${Object(s["unref"])(n)})`,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,tp)]),Object(s["createElementVNode"])("polygon",{id:"Rectangle-Copy-18",fill:`var(${Object(s["unref"])(t).cssVarBlockName("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,8,np)])])])]))}});var ap=Object(h["a"])(op,[["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/img-empty.vue"]]);const ip=Object(l["b"])({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),sp=["src"],cp={key:1},lp=Object(s["defineComponent"])({name:"ElEmpty"}),up=Object(s["defineComponent"])({...lp,props:ip,setup(e){const t=e,{t:n}=Object(Vn["b"])(),r=Object(m["d"])("empty"),o=Object(s["computed"])(()=>t.description||n("el.table.emptyText")),a=Object(s["computed"])(()=>({width:Object(v["b"])(t.imageSize)}));return(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(r).b())},[Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(r).e("image")),style:Object(s["normalizeStyle"])(Object(s["unref"])(a))},[e.image?(Object(s["openBlock"])(),Object(s["createElementBlock"])("img",{key:0,src:e.image,ondragstart:"return false"},null,8,sp)):Object(s["renderSlot"])(e.$slots,"image",{key:1},()=>[Object(s["createVNode"])(ap)])],6),Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(r).e("description"))},[e.$slots.description?Object(s["renderSlot"])(e.$slots,"description",{key:0}):(Object(s["openBlock"])(),Object(s["createElementBlock"])("p",cp,Object(s["toDisplayString"])(Object(s["unref"])(o)),1))],2),e.$slots.default?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:0,class:Object(s["normalizeClass"])(Object(s["unref"])(r).e("bottom"))},[Object(s["renderSlot"])(e.$slots,"default")],2)):Object(s["createCommentVNode"])("v-if",!0)],2))}});var dp=Object(h["a"])(up,[["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/empty.vue"]]);const pp=Object(k["a"])(dp);var fp=n("d8e8");const hp=Object(l["b"])({urlList:{type:Object(l["c"])(Array),default:()=>Object(Ra["a"])([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:Boolean,teleported:Boolean,closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2}}),mp={close:()=>!0,switch:e=>Object(u["d"])(e)},vp=["src"],gp=Object(s["defineComponent"])({name:"ElImageViewer"}),_p=Object(s["defineComponent"])({...gp,props:hp,emits:mp,setup(e,{expose:t,emit:n}){const r=e,o={CONTAIN:{name:"contain",icon:Object(s["markRaw"])(R["FullScreen"])},ORIGINAL:{name:"original",icon:Object(s["markRaw"])(R["ScaleToOriginal"])}},{t:a}=Object(Vn["b"])(),i=Object(m["d"])("image-viewer"),{nextZIndex:l}=Object(ft["b"])(),d=Object(s["ref"])(),p=Object(s["ref"])([]),f=Object(s["effectScope"])(),h=Object(s["ref"])(!0),v=Object(s["ref"])(r.initialIndex),g=Object(s["shallowRef"])(o.CONTAIN),_=Object(s["ref"])({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),y=Object(s["computed"])(()=>{const{urlList:e}=r;return e.length<=1}),b=Object(s["computed"])(()=>0===v.value),O=Object(s["computed"])(()=>v.value===r.urlList.length-1),M=Object(s["computed"])(()=>r.urlList[v.value]),k=Object(s["computed"])(()=>[i.e("btn"),i.e("prev"),i.is("disabled",!r.infinite&&b.value)]),C=Object(s["computed"])(()=>[i.e("btn"),i.e("next"),i.is("disabled",!r.infinite&&O.value)]),S=Object(s["computed"])(()=>{const{scale:e,deg:t,offsetX:n,offsetY:r,enableTransition:a}=_.value;let i=n/e,s=r/e;switch(t%360){case 90:case-270:[i,s]=[s,-i];break;case 180:case-180:[i,s]=[-i,-s];break;case 270:case-90:[i,s]=[-s,i];break}const c={transform:`scale(${e}) rotate(${t}deg) translate(${i}px, ${s}px)`,transition:a?"transform .3s":""};return g.value.name===o.CONTAIN.name&&(c.maxWidth=c.maxHeight="100%"),c}),T=Object(s["computed"])(()=>Object(u["d"])(r.zIndex)?r.zIndex:l());function E(){D(),n("close")}function j(){const e=Object(x["throttle"])(e=>{switch(e.code){case Me["a"].esc:r.closeOnPressEscape&&E();break;case Me["a"].space:U();break;case Me["a"].left:B();break;case Me["a"].up:G("zoomIn");break;case Me["a"].right:F();break;case Me["a"].down:G("zoomOut");break}}),t=Object(x["throttle"])(e=>{const t=e.deltaY||e.deltaX;G(t<0?"zoomIn":"zoomOut",{zoomRate:r.zoomRate,enableTransition:!1})});f.run(()=>{Object(c["useEventListener"])(document,"keydown",e),Object(c["useEventListener"])(document,"wheel",t)})}function D(){f.stop()}function L(){h.value=!1}function A(e){h.value=!1,e.target.alt=a("el.image.error")}function N(e){if(h.value||0!==e.button||!d.value)return;_.value.enableTransition=!1;const{offsetX:t,offsetY:n}=_.value,r=e.pageX,o=e.pageY,a=Object(x["throttle"])(e=>{_.value={..._.value,offsetX:t+e.pageX-r,offsetY:n+e.pageY-o}}),i=Object(c["useEventListener"])(document,"mousemove",a);Object(c["useEventListener"])(document,"mouseup",()=>{i()}),e.preventDefault()}function P(){_.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function U(){if(h.value)return;const e=Object(I["c"])(o),t=Object.values(o),n=g.value.name,r=t.findIndex(e=>e.name===n),a=(r+1)%e.length;g.value=o[e[a]],P()}function V(e){const t=r.urlList.length;v.value=(e+t)%t}function B(){b.value&&!r.infinite||V(v.value-1)}function F(){O.value&&!r.infinite||V(v.value+1)}function G(e,t={}){if(h.value)return;const{zoomRate:n,rotateDeg:o,enableTransition:a}={zoomRate:r.zoomRate,rotateDeg:90,enableTransition:!0,...t};switch(e){case"zoomOut":_.value.scale>.2&&(_.value.scale=Number.parseFloat((_.value.scale/n).toFixed(3)));break;case"zoomIn":_.value.scale<7&&(_.value.scale=Number.parseFloat((_.value.scale*n).toFixed(3)));break;case"clockwise":_.value.deg+=o;break;case"anticlockwise":_.value.deg-=o;break}_.value.enableTransition=a}return Object(s["watch"])(M,()=>{Object(s["nextTick"])(()=>{const e=p.value[0];(null==e?void 0:e.complete)||(h.value=!0)})}),Object(s["watch"])(v,e=>{P(),n("switch",e)}),Object(s["onMounted"])(()=>{var e,t;j(),null==(t=null==(e=d.value)?void 0:e.focus)||t.call(e)}),t({setActiveItem:V}),(e,t)=>(Object(s["openBlock"])(),Object(s["createBlock"])(s["Teleport"],{to:"body",disabled:!e.teleported},[Object(s["createVNode"])(s["Transition"],{name:"viewer-fade",appear:""},{default:Object(s["withCtx"])(()=>[Object(s["createElementVNode"])("div",{ref_key:"wrapper",ref:d,tabindex:-1,class:Object(s["normalizeClass"])(Object(s["unref"])(i).e("wrapper")),style:Object(s["normalizeStyle"])({zIndex:Object(s["unref"])(T)})},[Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(i).e("mask")),onClick:t[0]||(t[0]=Object(s["withModifiers"])(t=>e.hideOnClickModal&&E(),["self"]))},null,2),Object(s["createCommentVNode"])(" CLOSE "),Object(s["createElementVNode"])("span",{class:Object(s["normalizeClass"])([Object(s["unref"])(i).e("btn"),Object(s["unref"])(i).e("close")]),onClick:E},[Object(s["createVNode"])(Object(s["unref"])(w["a"]),null,{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(Object(s["unref"])(R["Close"]))]),_:1})],2),Object(s["createCommentVNode"])(" ARROW "),Object(s["unref"])(y)?Object(s["createCommentVNode"])("v-if",!0):(Object(s["openBlock"])(),Object(s["createElementBlock"])(s["Fragment"],{key:0},[Object(s["createElementVNode"])("span",{class:Object(s["normalizeClass"])(Object(s["unref"])(k)),onClick:B},[Object(s["createVNode"])(Object(s["unref"])(w["a"]),null,{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(Object(s["unref"])(R["ArrowLeft"]))]),_:1})],2),Object(s["createElementVNode"])("span",{class:Object(s["normalizeClass"])(Object(s["unref"])(C)),onClick:F},[Object(s["createVNode"])(Object(s["unref"])(w["a"]),null,{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(Object(s["unref"])(R["ArrowRight"]))]),_:1})],2)],64)),Object(s["createCommentVNode"])(" ACTIONS "),Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])([Object(s["unref"])(i).e("btn"),Object(s["unref"])(i).e("actions")])},[Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(i).e("actions__inner"))},[Object(s["createVNode"])(Object(s["unref"])(w["a"]),{onClick:t[1]||(t[1]=e=>G("zoomOut"))},{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(Object(s["unref"])(R["ZoomOut"]))]),_:1}),Object(s["createVNode"])(Object(s["unref"])(w["a"]),{onClick:t[2]||(t[2]=e=>G("zoomIn"))},{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(Object(s["unref"])(R["ZoomIn"]))]),_:1}),Object(s["createElementVNode"])("i",{class:Object(s["normalizeClass"])(Object(s["unref"])(i).e("actions__divider"))},null,2),Object(s["createVNode"])(Object(s["unref"])(w["a"]),{onClick:U},{default:Object(s["withCtx"])(()=>[(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["resolveDynamicComponent"])(Object(s["unref"])(g).icon)))]),_:1}),Object(s["createElementVNode"])("i",{class:Object(s["normalizeClass"])(Object(s["unref"])(i).e("actions__divider"))},null,2),Object(s["createVNode"])(Object(s["unref"])(w["a"]),{onClick:t[3]||(t[3]=e=>G("anticlockwise"))},{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(Object(s["unref"])(R["RefreshLeft"]))]),_:1}),Object(s["createVNode"])(Object(s["unref"])(w["a"]),{onClick:t[4]||(t[4]=e=>G("clockwise"))},{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(Object(s["unref"])(R["RefreshRight"]))]),_:1})],2)],2),Object(s["createCommentVNode"])(" CANVAS "),Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(i).e("canvas"))},[(Object(s["openBlock"])(!0),Object(s["createElementBlock"])(s["Fragment"],null,Object(s["renderList"])(e.urlList,(e,t)=>Object(s["withDirectives"])((Object(s["openBlock"])(),Object(s["createElementBlock"])("img",{ref_for:!0,ref:e=>p.value[t]=e,key:e,src:e,style:Object(s["normalizeStyle"])(Object(s["unref"])(S)),class:Object(s["normalizeClass"])(Object(s["unref"])(i).e("img")),onLoad:L,onError:A,onMousedown:N},null,46,vp)),[[s["vShow"],t===v.value]])),128))],2),Object(s["renderSlot"])(e.$slots,"default")],6)]),_:3})],8,["disabled"]))}});var yp=Object(h["a"])(_p,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image-viewer/src/image-viewer.vue"]]);const bp=Object(k["a"])(yp),Op=Object(l["b"])({hideOnClickModal:Boolean,src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:Boolean,scrollContainer:{type:Object(l["c"])([String,Object])},previewSrcList:{type:Object(l["c"])(Array),default:()=>Object(Ra["a"])([])},previewTeleported:Boolean,zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2}}),Mp={load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>Object(u["d"])(e),close:()=>!0,show:()=>!0},kp=["src","loading"],Cp={key:0},wp=Object(s["defineComponent"])({name:"ElImage",inheritAttrs:!1}),Ip=Object(s["defineComponent"])({...wp,props:Op,emits:Mp,setup(e,{emit:t}){const n=e;let r="";const{t:o}=Object(Vn["b"])(),a=Object(m["d"])("image"),i=Object(s["useAttrs"])(),l=Object(Nt["a"])(),d=Object(s["ref"])(),p=Object(s["ref"])(!1),f=Object(s["ref"])(!0),h=Object(s["ref"])(!1),v=Object(s["ref"])(),g=Object(s["ref"])(),y=c["isClient"]&&"loading"in HTMLImageElement.prototype;let b,O;const M=Object(s["computed"])(()=>[a.e("inner"),w.value&&a.e("preview"),f.value&&a.is("loading")]),k=Object(s["computed"])(()=>i.style),C=Object(s["computed"])(()=>{const{fit:e}=n;return c["isClient"]&&e?{objectFit:e}:{}}),w=Object(s["computed"])(()=>{const{previewSrcList:e}=n;return Array.isArray(e)&&e.length>0}),I=Object(s["computed"])(()=>{const{previewSrcList:e,initialIndex:t}=n;let r=t;return t>e.length-1&&(r=0),r}),S=Object(s["computed"])(()=>"eager"!==n.loading&&(!y&&"lazy"===n.loading||n.lazy)),T=()=>{c["isClient"]&&(f.value=!0,p.value=!1,d.value=n.src)};function E(e){f.value=!1,p.value=!1,t("load",e)}function j(e){f.value=!1,p.value=!0,t("error",e)}function D(){gi(v.value,g.value)&&(T(),N())}const L=Object(c["useThrottleFn"])(D,200,!0);async function A(){var e;if(!c["isClient"])return;await Object(s["nextTick"])();const{scrollContainer:t}=n;Object(u["b"])(t)?g.value=t:Object(Q["isString"])(t)&&""!==t?g.value=null!=(e=document.querySelector(t))?e:void 0:v.value&&(g.value=Object(_["b"])(v.value)),g.value&&(b=Object(c["useEventListener"])(g,"scroll",L),setTimeout(()=>D(),100))}function N(){c["isClient"]&&g.value&&L&&(null==b||b(),g.value=void 0)}function x(e){if(e.ctrlKey)return e.deltaY<0||e.deltaY>0?(e.preventDefault(),!1):void 0}function R(){w.value&&(O=Object(c["useEventListener"])("wheel",x,{passive:!1}),r=document.body.style.overflow,document.body.style.overflow="hidden",h.value=!0,t("show"))}function P(){null==O||O(),document.body.style.overflow=r,h.value=!1,t("close")}function U(e){t("switch",e)}return Object(s["watch"])(()=>n.src,()=>{S.value?(f.value=!0,p.value=!1,N(),A()):T()}),Object(s["onMounted"])(()=>{S.value?A():T()}),(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{ref_key:"container",ref:v,class:Object(s["normalizeClass"])([Object(s["unref"])(a).b(),e.$attrs.class]),style:Object(s["normalizeStyle"])(Object(s["unref"])(k))},[p.value?Object(s["renderSlot"])(e.$slots,"error",{key:0},()=>[Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(a).e("error"))},Object(s["toDisplayString"])(Object(s["unref"])(o)("el.image.error")),3)]):(Object(s["openBlock"])(),Object(s["createElementBlock"])(s["Fragment"],{key:1},[void 0!==d.value?(Object(s["openBlock"])(),Object(s["createElementBlock"])("img",Object(s["mergeProps"])({key:0},Object(s["unref"])(l),{src:d.value,loading:e.loading,style:Object(s["unref"])(C),class:Object(s["unref"])(M),onClick:R,onLoad:E,onError:j}),null,16,kp)):Object(s["createCommentVNode"])("v-if",!0),f.value?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:1,class:Object(s["normalizeClass"])(Object(s["unref"])(a).e("wrapper"))},[Object(s["renderSlot"])(e.$slots,"placeholder",{},()=>[Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(a).e("placeholder"))},null,2)])],2)):Object(s["createCommentVNode"])("v-if",!0)],64)),Object(s["unref"])(w)?(Object(s["openBlock"])(),Object(s["createElementBlock"])(s["Fragment"],{key:2},[h.value?(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(bp),{key:0,"z-index":e.zIndex,"initial-index":Object(s["unref"])(I),infinite:e.infinite,"zoom-rate":e.zoomRate,"url-list":e.previewSrcList,"hide-on-click-modal":e.hideOnClickModal,teleported:e.previewTeleported,"close-on-press-escape":e.closeOnPressEscape,onClose:P,onSwitch:U},{default:Object(s["withCtx"])(()=>[e.$slots.viewer?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",Cp,[Object(s["renderSlot"])(e.$slots,"viewer")])):Object(s["createCommentVNode"])("v-if",!0)]),_:3},8,["z-index","initial-index","infinite","zoom-rate","url-list","hide-on-click-modal","teleported","close-on-press-escape"])):Object(s["createCommentVNode"])("v-if",!0)],64)):Object(s["createCommentVNode"])("v-if",!0)],6))}});var Sp=Object(h["a"])(Ip,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image/src/image.vue"]]);const Tp=Object(k["a"])(Sp),Ep=Object(l["b"])({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.POSITIVE_INFINITY},min:{type:Number,default:Number.NEGATIVE_INFINITY},modelValue:Number,readonly:Boolean,disabled:Boolean,size:Lr["c"],controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:e=>null===e||Object(u["d"])(e)||["min","max"].includes(e),default:null},name:String,label:String,placeholder:String,precision:{type:Number,validator:e=>e>=0&&e===Number.parseInt(""+e,10)},validateEvent:{type:Boolean,default:!0}}),jp={[d["a"]]:(e,t)=>t!==e,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[d["b"]]:e=>Object(u["d"])(e)||Object(x["isNil"])(e),[d["c"]]:e=>Object(u["d"])(e)||Object(x["isNil"])(e)},Dp=["aria-label","onKeydown"],Lp=["aria-label","onKeydown"],Ap=Object(s["defineComponent"])({name:"ElInputNumber"}),Np=Object(s["defineComponent"])({...Ap,props:Ep,emits:jp,setup(e,{expose:t,emit:n}){const r=e,{t:o}=Object(Vn["b"])(),a=Object(m["d"])("input-number"),i=Object(s["ref"])(),c=Object(s["reactive"])({currentValue:r.modelValue,userInput:null}),{formItem:l}=Object(Pr["a"])(),p=Object(s["computed"])(()=>Object(u["d"])(r.modelValue)&&r.modelValue<=r.min),f=Object(s["computed"])(()=>Object(u["d"])(r.modelValue)&&r.modelValue>=r.max),h=Object(s["computed"])(()=>{const e=M(r.step);return Object(u["g"])(r.precision)?Math.max(M(r.modelValue),e):(e>r.precision&&Object(g["a"])("InputNumber","precision should not be less than the decimal places of step"),r.precision)}),v=Object(s["computed"])(()=>r.controls&&"right"===r.controlsPosition),_=Object(xt["b"])(),y=Object(xt["a"])(),b=Object(s["computed"])(()=>{if(null!==c.userInput)return c.userInput;let e=c.currentValue;if(Object(x["isNil"])(e))return"";if(Object(u["d"])(e)){if(Number.isNaN(e))return"";Object(u["g"])(r.precision)||(e=e.toFixed(r.precision))}return e}),O=(e,t)=>{if(Object(u["g"])(t)&&(t=h.value),0===t)return Math.round(e);let n=String(e);const r=n.indexOf(".");if(-1===r)return e;const o=n.replace(".","").split(""),a=o[r+t];if(!a)return e;const i=n.length;return"5"===n.charAt(i-1)&&(n=n.slice(0,Math.max(0,i-1))+"6"),Number.parseFloat(Number(n).toFixed(t))},M=e=>{if(Object(x["isNil"])(e))return 0;const t=e.toString(),n=t.indexOf(".");let r=0;return-1!==n&&(r=t.length-n-1),r},k=(e,t=1)=>Object(u["d"])(e)?O(e+r.step*t):c.currentValue,C=()=>{if(r.readonly||y.value||f.value)return;const e=Number(b.value)||0,t=k(e);T(t),n(d["b"],c.currentValue)},I=()=>{if(r.readonly||y.value||p.value)return;const e=Number(b.value)||0,t=k(e,-1);T(t),n(d["b"],c.currentValue)},S=(e,t)=>{const{max:o,min:a,step:i,precision:s,stepStrictly:c,valueOnClear:l}=r;o<a&&Object(g["b"])("InputNumber","min should not be greater than max.");let p=Number(e);if(Object(x["isNil"])(e)||Number.isNaN(p))return null;if(""===e){if(null===l)return null;p=Object(Q["isString"])(l)?{min:a,max:o}[l]:l}return c&&(p=O(Math.round(p/i)*i,s)),Object(u["g"])(s)||(p=O(p,s)),(p>o||p<a)&&(p=p>o?o:a,t&&n(d["c"],p)),p},T=(e,t=!0)=>{var o;const a=c.currentValue,i=S(e);t?a!==i&&(c.userInput=null,n(d["c"],i),n(d["a"],i,a),r.validateEvent&&(null==(o=null==l?void 0:l.validate)||o.call(l,"change").catch(e=>Object(g["a"])(e))),c.currentValue=i):n(d["c"],i)},E=e=>{c.userInput=e;const t=""===e?null:Number(e);n(d["b"],t),T(t,!1)},j=e=>{const t=""!==e?Number(e):"";(Object(u["d"])(t)&&!Number.isNaN(t)||""===e)&&T(t),c.userInput=null},D=()=>{var e,t;null==(t=null==(e=i.value)?void 0:e.focus)||t.call(e)},L=()=>{var e,t;null==(t=null==(e=i.value)?void 0:e.blur)||t.call(e)},A=e=>{n("focus",e)},N=e=>{var t;n("blur",e),r.validateEvent&&(null==(t=null==l?void 0:l.validate)||t.call(l,"blur").catch(e=>Object(g["a"])(e)))};return Object(s["watch"])(()=>r.modelValue,e=>{const t=S(c.userInput),n=S(e,!0);Object(u["d"])(t)||t&&t===n||(c.currentValue=n,c.userInput=null)},{immediate:!0}),Object(s["onMounted"])(()=>{var e;const{min:t,max:o,modelValue:a}=r,s=null==(e=i.value)?void 0:e.input;if(s.setAttribute("role","spinbutton"),Number.isFinite(o)?s.setAttribute("aria-valuemax",String(o)):s.removeAttribute("aria-valuemax"),Number.isFinite(t)?s.setAttribute("aria-valuemin",String(t)):s.removeAttribute("aria-valuemin"),s.setAttribute("aria-valuenow",String(c.currentValue)),s.setAttribute("aria-disabled",String(y.value)),!Object(u["d"])(a)&&null!=a){let e=Number(a);Number.isNaN(e)&&(e=null),n(d["c"],e)}}),Object(s["onUpdated"])(()=>{var e;const t=null==(e=i.value)?void 0:e.input;null==t||t.setAttribute("aria-valuenow",""+c.currentValue)}),t({focus:D,blur:L}),(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{class:Object(s["normalizeClass"])([Object(s["unref"])(a).b(),Object(s["unref"])(a).m(Object(s["unref"])(_)),Object(s["unref"])(a).is("disabled",Object(s["unref"])(y)),Object(s["unref"])(a).is("without-controls",!e.controls),Object(s["unref"])(a).is("controls-right",Object(s["unref"])(v))]),onDragstart:t[1]||(t[1]=Object(s["withModifiers"])(()=>{},["prevent"]))},[e.controls?Object(s["withDirectives"])((Object(s["openBlock"])(),Object(s["createElementBlock"])("span",{key:0,role:"button","aria-label":Object(s["unref"])(o)("el.inputNumber.decrease"),class:Object(s["normalizeClass"])([Object(s["unref"])(a).e("decrease"),Object(s["unref"])(a).is("disabled",Object(s["unref"])(p))]),onKeydown:Object(s["withKeys"])(I,["enter"])},[Object(s["createVNode"])(Object(s["unref"])(w["a"]),null,{default:Object(s["withCtx"])(()=>[Object(s["unref"])(v)?(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(R["ArrowDown"]),{key:0})):(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(R["Minus"]),{key:1}))]),_:1})],42,Dp)),[[Object(s["unref"])(Vc),I]]):Object(s["createCommentVNode"])("v-if",!0),e.controls?Object(s["withDirectives"])((Object(s["openBlock"])(),Object(s["createElementBlock"])("span",{key:1,role:"button","aria-label":Object(s["unref"])(o)("el.inputNumber.increase"),class:Object(s["normalizeClass"])([Object(s["unref"])(a).e("increase"),Object(s["unref"])(a).is("disabled",Object(s["unref"])(f))]),onKeydown:Object(s["withKeys"])(C,["enter"])},[Object(s["createVNode"])(Object(s["unref"])(w["a"]),null,{default:Object(s["withCtx"])(()=>[Object(s["unref"])(v)?(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(R["ArrowUp"]),{key:0})):(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(R["Plus"]),{key:1}))]),_:1})],42,Lp)),[[Object(s["unref"])(Vc),C]]):Object(s["createCommentVNode"])("v-if",!0),Object(s["createVNode"])(Object(s["unref"])(P["a"]),{id:e.id,ref_key:"input",ref:i,type:"number",step:e.step,"model-value":Object(s["unref"])(b),placeholder:e.placeholder,readonly:e.readonly,disabled:Object(s["unref"])(y),size:Object(s["unref"])(_),max:e.max,min:e.min,name:e.name,label:e.label,"validate-event":!1,onWheel:t[0]||(t[0]=Object(s["withModifiers"])(()=>{},["prevent"])),onKeydown:[Object(s["withKeys"])(Object(s["withModifiers"])(C,["prevent"]),["up"]),Object(s["withKeys"])(Object(s["withModifiers"])(I,["prevent"]),["down"])],onBlur:N,onFocus:A,onInput:E,onChange:j},null,8,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","label","onKeydown"])],34))}});var xp=Object(h["a"])(Np,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input-number/src/input-number.vue"]]);const Rp=Object(k["a"])(xp),Pp=Object(l["b"])({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:S["e"]}}),Up={click:e=>e instanceof MouseEvent},Vp=["href"],Bp=Object(s["defineComponent"])({name:"ElLink"}),Fp=Object(s["defineComponent"])({...Bp,props:Pp,emits:Up,setup(e,{emit:t}){const n=e,r=Object(m["d"])("link"),o=Object(s["computed"])(()=>[r.b(),r.m(n.type),r.is("disabled",n.disabled),r.is("underline",n.underline&&!n.disabled)]);function a(e){n.disabled||t("click",e)}return(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("a",{class:Object(s["normalizeClass"])(Object(s["unref"])(o)),href:e.disabled||!e.href?void 0:e.href,onClick:a},[e.icon?(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(w["a"]),{key:0},{default:Object(s["withCtx"])(()=>[(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["resolveDynamicComponent"])(e.icon)))]),_:1})):Object(s["createCommentVNode"])("v-if",!0),e.$slots.default?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",{key:1,class:Object(s["normalizeClass"])(Object(s["unref"])(r).e("inner"))},[Object(s["renderSlot"])(e.$slots,"default")],2)):Object(s["createCommentVNode"])("v-if",!0),e.$slots.icon?Object(s["renderSlot"])(e.$slots,"icon",{key:2}):Object(s["createCommentVNode"])("v-if",!0)],10,Vp))}});var Gp=Object(h["a"])(Fp,[["__file","/home/runner/work/element-plus/element-plus/packages/components/link/src/link.vue"]]);const zp=Object(k["a"])(Gp);class Hp{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 Me["a"].down:this.gotoSubIndex(this.subIndex+1),n=!0;break;case Me["a"].up:this.gotoSubIndex(this.subIndex-1),n=!0;break;case Me["a"].tab:Object(Qo["e"])(e,"mouseleave");break;case Me["a"].enter:case Me["a"].space:n=!0,t.currentTarget.click();break}return n&&(t.preventDefault(),t.stopPropagation()),!1})})}}class Yp{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 Hp(this,t)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",e=>{let t=!1;switch(e.code){case Me["a"].down:Object(Qo["e"])(e.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),t=!0;break;case Me["a"].up:Object(Qo["e"])(e.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),t=!0;break;case Me["a"].tab:Object(Qo["e"])(e.currentTarget,"mouseleave");break;case Me["a"].enter:case Me["a"].space:t=!0,e.currentTarget.click();break}t&&e.preventDefault()})}}class qp{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 Yp(t,e)})}}const Wp=Object(s["defineComponent"])({name:"ElMenuCollapseTransition",setup(){const e=Object(m["d"])("menu"),t={onBeforeEnter:e=>e.style.opacity="0.2",onEnter(t,n){Object(v["a"])(t,e.namespace.value+"-opacity-transition"),t.style.opacity="1",n()},onAfterEnter(t){Object(v["e"])(t,e.namespace.value+"-opacity-transition"),t.style.opacity=""},onBeforeLeave(t){t.dataset||(t.dataset={}),Object(v["d"])(t,e.m("collapse"))?(Object(v["e"])(t,e.m("collapse")),t.dataset.oldOverflow=t.style.overflow,t.dataset.scrollWidth=t.clientWidth.toString(),Object(v["a"])(t,e.m("collapse"))):(Object(v["a"])(t,e.m("collapse")),t.dataset.oldOverflow=t.style.overflow,t.dataset.scrollWidth=t.clientWidth.toString(),Object(v["e"])(t,e.m("collapse"))),t.style.width=t.scrollWidth+"px",t.style.overflow="hidden"},onLeave(e){Object(v["a"])(e,"horizontal-collapse-transition"),e.style.width=e.dataset.scrollWidth+"px"}};return{listeners:t}}});function Kp(e,t,n,r,o,a){return Object(s["openBlock"])(),Object(s["createBlock"])(s["Transition"],Object(s["mergeProps"])({mode:"out-in"},e.listeners),{default:Object(s["withCtx"])(()=>[Object(s["renderSlot"])(e.$slots,"default")]),_:3},16)}var $p=Object(h["a"])(Wp,[["render",Kp],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-collapse-transition.vue"]]);function Jp(e,t){const n=Object(s["computed"])(()=>{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}),r=Object(s["computed"])(()=>{let t=e.parent;while(t&&!["ElMenu","ElSubMenu"].includes(t.type.name))t=t.parent;return t});return{parentMenu:r,indexPath:n}}var Qp=n("c741");function Xp(e){const t=Object(s["computed"])(()=>{const t=e.backgroundColor;return t?new Qp["TinyColor"](t).shade(20).toString():""});return t}const Zp=(e,t)=>{const n=Object(m["d"])("menu");return Object(s["computed"])(()=>n.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":Xp(e).value||"","active-color":e.activeTextColor||"",level:""+t}))},ef=Object(l["b"])({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},teleported:{type:Boolean,default:void 0},popperOffset:{type:Number,default:6},expandCloseIcon:{type:S["e"]},expandOpenIcon:{type:S["e"]},collapseCloseIcon:{type:S["e"]},collapseOpenIcon:{type:S["e"]}}),tf="ElSubMenu";var nf=Object(s["defineComponent"])({name:tf,props:ef,setup(e,{slots:t,expose:n}){Object(Wn["a"])({from:"popper-append-to-body",replacement:"teleported",scope:tf,version:"2.3.0",ref:"https://element-plus.org/en-US/component/menu.html#submenu-attributes"},Object(s["computed"])(()=>void 0!==e.popperAppendToBody));const r=Object(s["getCurrentInstance"])(),{indexPath:o,parentMenu:a}=Jp(r,Object(s["computed"])(()=>e.index)),i=Object(m["d"])("menu"),l=Object(m["d"])("sub-menu"),u=Object(s["inject"])("rootMenu");u||Object(g["b"])(tf,"can not inject root menu");const d=Object(s["inject"])("subMenu:"+a.value.uid);d||Object(g["b"])(tf,"can not inject sub menu");const p=Object(s["ref"])({}),f=Object(s["ref"])({});let h;const v=Object(s["ref"])(!1),_=Object(s["ref"])(),y=Object(s["ref"])(null),b=Object(s["computed"])(()=>"horizontal"===L.value&&M.value?"bottom-start":"right-start"),O=Object(s["computed"])(()=>"horizontal"===L.value&&M.value||"vertical"===L.value&&!u.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?S.value?e.expandOpenIcon:e.expandCloseIcon:R["ArrowDown"]:e.collapseCloseIcon&&e.collapseOpenIcon?S.value?e.collapseOpenIcon:e.collapseCloseIcon:R["ArrowRight"]),M=Object(s["computed"])(()=>0===d.level),k=Object(s["computed"])(()=>{var t;const n=null!=(t=e.teleported)?t:e.popperAppendToBody;return void 0===n?M.value:n}),C=Object(s["computed"])(()=>u.props.collapse?i.namespace.value+"-zoom-in-left":i.namespace.value+"-zoom-in-top"),I=Object(s["computed"])(()=>"horizontal"===L.value&&M.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","right","right-end","left-start","bottom-start","bottom-end","top-start","top-end"]),S=Object(s["computed"])(()=>u.openedMenus.includes(e.index)),T=Object(s["computed"])(()=>{let e=!1;return Object.values(p.value).forEach(t=>{t.active&&(e=!0)}),Object.values(f.value).forEach(t=>{t.active&&(e=!0)}),e}),E=Object(s["computed"])(()=>u.props.backgroundColor||""),j=Object(s["computed"])(()=>u.props.activeTextColor||""),D=Object(s["computed"])(()=>u.props.textColor||""),L=Object(s["computed"])(()=>u.props.mode),A=Object(s["reactive"])({index:e.index,indexPath:o,active:T}),N=Zp(u.props,d.level+1),x=Object(s["computed"])(()=>"horizontal"!==L.value?{color:D.value}:{borderBottomColor:T.value?u.props.activeTextColor?j.value:"":"transparent",color:T.value?j.value:D.value}),P=()=>{var e,t,n;return null==(n=null==(t=null==(e=y.value)?void 0:e.popperRef)?void 0:t.popperInstanceRef)?void 0:n.destroy()},U=e=>{e||P()},V=()=>{"hover"===u.props.menuTrigger&&"horizontal"===u.props.mode||u.props.collapse&&"vertical"===u.props.mode||e.disabled||u.handleSubMenuClick({index:e.index,indexPath:o.value,active:T.value})},B=(t,n=e.showTimeout)=>{var r;"focus"!==t.type&&("click"===u.props.menuTrigger&&"horizontal"===u.props.mode||!u.props.collapse&&"vertical"===u.props.mode||e.disabled||(d.mouseInChild.value=!0,null==h||h(),({stop:h}=Object(c["useTimeoutFn"])(()=>{u.openMenu(e.index,o.value)},n)),k.value&&(null==(r=a.value.vnode.el)||r.dispatchEvent(new MouseEvent("mouseenter")))))},F=(t=!1)=>{var n,a;"click"===u.props.menuTrigger&&"horizontal"===u.props.mode||!u.props.collapse&&"vertical"===u.props.mode||(null==h||h(),d.mouseInChild.value=!1,({stop:h}=Object(c["useTimeoutFn"])(()=>!v.value&&u.closeMenu(e.index,o.value),e.hideTimeout)),k.value&&t&&"ElSubMenu"===(null==(n=r.parent)?void 0:n.type.name)&&(null==(a=d.handleMouseleave)||a.call(d,!0)))};Object(s["watch"])(()=>u.props.collapse,e=>U(Boolean(e)));{const e=e=>{f.value[e.index]=e},t=e=>{delete f.value[e.index]};Object(s["provide"])("subMenu:"+r.uid,{addSubMenu:e,removeSubMenu:t,handleMouseleave:F,mouseInChild:v,level:d.level+1})}return n({opened:S}),Object(s["onMounted"])(()=>{u.addSubMenu(A),d.addSubMenu(A)}),Object(s["onBeforeUnmount"])(()=>{d.removeSubMenu(A),u.removeSubMenu(A)}),()=>{var n;const o=[null==(n=t.title)?void 0:n.call(t),Object(s["h"])(w["a"],{class:l.e("icon-arrow"),style:{transform:S.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&u.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>Object(Q["isString"])(O.value)?Object(s["h"])(r.appContext.components[O.value]):Object(s["h"])(O.value)})],a=u.isMenuPopup?Object(s["h"])(Dt,{ref:y,visible:S.value,effect:"light",pure:!0,offset:e.popperOffset,showArrow:!1,persistent:!0,popperClass:e.popperClass,placement:b.value,teleported:k.value,fallbackPlacements:I.value,transition:C.value,gpuAcceleration:!1},{content:()=>{var n;return Object(s["h"])("div",{class:[i.m(L.value),i.m("popup-container"),e.popperClass],onMouseenter:e=>B(e,100),onMouseleave:()=>F(!0),onFocus:e=>B(e,100)},[Object(s["h"])("ul",{class:[i.b(),i.m("popup"),i.m("popup-"+b.value)],style:N.value},[null==(n=t.default)?void 0:n.call(t)])])},default:()=>Object(s["h"])("div",{class:l.e("title"),style:[x.value,{backgroundColor:E.value}],onClick:V},o)}):Object(s["h"])(s["Fragment"],{},[Object(s["h"])("div",{class:l.e("title"),style:[x.value,{backgroundColor:E.value}],ref:_,onClick:V},o),Object(s["h"])(ti,{},{default:()=>{var e;return Object(s["withDirectives"])(Object(s["h"])("ul",{role:"menu",class:[i.b(),i.m("inline")],style:N.value},[null==(e=t.default)?void 0:e.call(t)]),[[s["vShow"],S.value]])}})]);return Object(s["h"])("li",{class:[l.b(),l.is("active",T.value),l.is("opened",S.value),l.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:S.value,onMouseenter:B,onMouseleave:()=>F(!0),onFocus:B},[a])}}});const rf=Object(l["b"])({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:Object(l["c"])(Array),default:()=>Object(Ra["a"])([])},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},popperEffect:{type:String,values:["dark","light"],default:"dark"}}),of=e=>Array.isArray(e)&&e.every(e=>Object(Q["isString"])(e)),af={close:(e,t)=>Object(Q["isString"])(e)&&of(t),open:(e,t)=>Object(Q["isString"])(e)&&of(t),select:(e,t,n,r)=>Object(Q["isString"])(e)&&of(t)&&Object(Q["isObject"])(n)&&(void 0===r||r instanceof Promise)};var sf=Object(s["defineComponent"])({name:"ElMenu",props:rf,emits:af,setup(e,{emit:t,slots:n,expose:r}){const o=Object(s["getCurrentInstance"])(),a=o.appContext.config.globalProperties.$router,i=Object(s["ref"])(),l=Object(m["d"])("menu"),u=Object(m["d"])("sub-menu"),d=Object(s["ref"])(-1),p=Object(s["ref"])(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),f=Object(s["ref"])(e.defaultActive),h=Object(s["ref"])({}),v=Object(s["ref"])({}),g=Object(s["computed"])(()=>"horizontal"===e.mode||"vertical"===e.mode&&e.collapse),_=()=>{const t=f.value&&h.value[f.value];if(!t||"horizontal"===e.mode||e.collapse)return;const n=t.indexPath;n.forEach(e=>{const t=v.value[e];t&&y(e,t.indexPath)})},y=(n,r)=>{p.value.includes(n)||(e.uniqueOpened&&(p.value=p.value.filter(e=>r.includes(e))),p.value.push(n),t("open",n,r))},b=e=>{const t=p.value.indexOf(e);-1!==t&&p.value.splice(t,1)},O=(e,n)=>{b(e),t("close",e,n)},M=({index:e,indexPath:t})=>{const n=p.value.includes(e);n?O(e,t):y(e,t)},k=n=>{("horizontal"===e.mode||e.collapse)&&(p.value=[]);const{index:r,indexPath:o}=n;if(!Object(x["isNil"])(r)&&!Object(x["isNil"])(o))if(e.router&&a){const e=n.route||r,i=a.push(e).then(e=>(e||(f.value=r),e));t("select",r,o,{index:r,indexPath:o,route:e},i)}else f.value=r,t("select",r,o,{index:r,indexPath:o})},C=t=>{const n=h.value,r=n[t]||f.value&&n[f.value]||n[e.defaultActive];f.value=r?r.index:t},I=()=>{var e,t;if(!i.value)return-1;const n=Array.from(null!=(t=null==(e=i.value)?void 0:e.childNodes)?t:[]).filter(e=>"#comment"!==e.nodeName&&("#text"!==e.nodeName||e.nodeValue)),r=64,o=Number.parseInt(getComputedStyle(i.value).paddingLeft,10),a=Number.parseInt(getComputedStyle(i.value).paddingRight,10),s=i.value.clientWidth-o-a;let c=0,l=0;return n.forEach((e,t)=>{c+=e.offsetWidth||0,c<=s-r&&(l=t+1)}),l===n.length?-1:l},S=(e,t=33.34)=>{let n;return()=>{n&&clearTimeout(n),n=setTimeout(()=>{e()},t)}};let T=!0;const E=()=>{const e=()=>{d.value=-1,Object(s["nextTick"])(()=>{d.value=I()})};T?e():S(e)(),T=!1};let j;Object(s["watch"])(()=>e.defaultActive,e=>{h.value[e]||(f.value=""),C(e)}),Object(s["watch"])(()=>e.collapse,e=>{e&&(p.value=[])}),Object(s["watch"])(h.value,_),Object(s["watchEffect"])(()=>{"horizontal"===e.mode&&e.ellipsis?j=Object(c["useResizeObserver"])(i,E).stop:null==j||j()});{const t=e=>{v.value[e.index]=e},n=e=>{delete v.value[e.index]},r=e=>{h.value[e.index]=e},a=e=>{delete h.value[e.index]};Object(s["provide"])("rootMenu",Object(s["reactive"])({props:e,openedMenus:p,items:h,subMenus:v,activeIndex:f,isMenuPopup:g,addMenuItem:r,removeMenuItem:a,addSubMenu:t,removeSubMenu:n,openMenu:y,closeMenu:O,handleMenuItemClick:k,handleSubMenuClick:M})),Object(s["provide"])("subMenu:"+o.uid,{addSubMenu:t,removeSubMenu:n,mouseInChild:Object(s["ref"])(!1),level:0})}Object(s["onMounted"])(()=>{"horizontal"===e.mode&&new qp(o.vnode.el,l.namespace.value)});{const e=e=>{const{indexPath:t}=v.value[e];t.forEach(e=>y(e,t))};r({open:e,close:b,handleResize:E})}return()=>{var t,r;let o=null!=(r=null==(t=n.default)?void 0:t.call(n))?r:[];const a=[];if("horizontal"===e.mode&&i.value){const t=Object(fr["c"])(o),n=-1===d.value?t:t.slice(0,d.value),r=-1===d.value?[]:t.slice(d.value);(null==r?void 0:r.length)&&e.ellipsis&&(o=n,a.push(Object(s["h"])(nf,{index:"sub-menu-more",class:u.e("hide-arrow")},{title:()=>Object(s["h"])(w["a"],{class:u.e("icon-more")},{default:()=>Object(s["h"])(R["More"])}),default:()=>r})))}const c=Zp(e,0),p=Object(s["h"])("ul",{key:String(e.collapse),role:"menubar",ref:i,style:c.value,class:{[l.b()]:!0,[l.m(e.mode)]:!0,[l.m("collapse")]:e.collapse}},[...o,...a]);return e.collapseTransition&&"vertical"===e.mode?Object(s["h"])($p,()=>p):p}}});const cf=Object(l["b"])({index:{type:Object(l["c"])([String,null]),default:null},route:{type:Object(l["c"])([String,Object])},disabled:Boolean}),lf={click:e=>Object(Q["isString"])(e.index)&&Array.isArray(e.indexPath)},uf="ElMenuItem",df=Object(s["defineComponent"])({name:uf,components:{ElTooltip:Dt},props:cf,emits:lf,setup(e,{emit:t}){const n=Object(s["getCurrentInstance"])(),r=Object(s["inject"])("rootMenu"),o=Object(m["d"])("menu"),a=Object(m["d"])("menu-item");r||Object(g["b"])(uf,"can not inject root menu");const{parentMenu:i,indexPath:c}=Jp(n,Object(s["toRef"])(e,"index")),l=Object(s["inject"])("subMenu:"+i.value.uid);l||Object(g["b"])(uf,"can not inject sub menu");const u=Object(s["computed"])(()=>e.index===r.activeIndex),d=Object(s["reactive"])({index:e.index,indexPath:c,active:u}),p=()=>{e.disabled||(r.handleMenuItemClick({index:e.index,indexPath:c.value,route:e.route}),t("click",d))};return Object(s["onMounted"])(()=>{l.addSubMenu(d),r.addMenuItem(d)}),Object(s["onBeforeUnmount"])(()=>{l.removeSubMenu(d),r.removeMenuItem(d)}),{parentMenu:i,rootMenu:r,active:u,nsMenu:o,nsMenuItem:a,handleClick:p}}});function pf(e,t,n,r,o,a){const i=Object(s["resolveComponent"])("el-tooltip");return Object(s["openBlock"])(),Object(s["createElementBlock"])("li",{class:Object(s["normalizeClass"])([e.nsMenuItem.b(),e.nsMenuItem.is("active",e.active),e.nsMenuItem.is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",onClick:t[0]||(t[0]=(...t)=>e.handleClick&&e.handleClick(...t))},["ElMenu"===e.parentMenu.type.name&&e.rootMenu.props.collapse&&e.$slots.title?(Object(s["openBlock"])(),Object(s["createBlock"])(i,{key:0,effect:e.rootMenu.props.popperEffect,placement:"right","fallback-placements":["left"],persistent:""},{content:Object(s["withCtx"])(()=>[Object(s["renderSlot"])(e.$slots,"title")]),default:Object(s["withCtx"])(()=>[Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(e.nsMenu.be("tooltip","trigger"))},[Object(s["renderSlot"])(e.$slots,"default")],2)]),_:3},8,["effect"])):(Object(s["openBlock"])(),Object(s["createElementBlock"])(s["Fragment"],{key:1},[Object(s["renderSlot"])(e.$slots,"default"),Object(s["renderSlot"])(e.$slots,"title")],64))],2)}var ff=Object(h["a"])(df,[["render",pf],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item.vue"]]);const hf={title:String},mf="ElMenuItemGroup",vf=Object(s["defineComponent"])({name:mf,props:hf,setup(){const e=Object(m["d"])("menu-item-group");return{ns:e}}});function gf(e,t,n,r,o,a){return Object(s["openBlock"])(),Object(s["createElementBlock"])("li",{class:Object(s["normalizeClass"])(e.ns.b())},[Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(e.ns.e("title"))},[e.$slots.title?Object(s["renderSlot"])(e.$slots,"title",{key:1}):(Object(s["openBlock"])(),Object(s["createElementBlock"])(s["Fragment"],{key:0},[Object(s["createTextVNode"])(Object(s["toDisplayString"])(e.title),1)],64))],2),Object(s["createElementVNode"])("ul",null,[Object(s["renderSlot"])(e.$slots,"default")])],2)}var _f=Object(h["a"])(vf,[["render",gf],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item-group.vue"]]);const yf=Object(k["a"])(sf,{MenuItem:ff,MenuItemGroup:_f,SubMenu:nf}),bf=Object(k["d"])(ff),Of=Object(k["d"])(_f),Mf=Object(k["d"])(nf),kf=Object(l["b"])({icon:{type:S["e"],default:()=>R["Back"]},title:String,content:{type:String,default:""}}),Cf={back:()=>!0},wf=["aria-label"],If=Object(s["defineComponent"])({name:"ElPageHeader"}),Sf=Object(s["defineComponent"])({...If,props:kf,emits:Cf,setup(e,{emit:t}){const n=Object(s["useSlots"])(),{t:r}=Object(Vn["b"])(),o=Object(m["d"])("page-header"),a=Object(s["computed"])(()=>[o.b(),{[o.m("has-breadcrumb")]:!!n.breadcrumb,[o.m("has-extra")]:!!n.extra,[o.is("contentful")]:!!n.default}]);function i(){t("back")}return(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(a))},[e.$slots.breadcrumb?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:0,class:Object(s["normalizeClass"])(Object(s["unref"])(o).e("breadcrumb"))},[Object(s["renderSlot"])(e.$slots,"breadcrumb")],2)):Object(s["createCommentVNode"])("v-if",!0),Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(o).e("header"))},[Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(o).e("left"))},[Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(o).e("back")),role:"button",tabindex:"0",onClick:i},[e.icon||e.$slots.icon?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:0,"aria-label":e.title||Object(s["unref"])(r)("el.pageHeader.title"),class:Object(s["normalizeClass"])(Object(s["unref"])(o).e("icon"))},[Object(s["renderSlot"])(e.$slots,"icon",{},()=>[e.icon?(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(w["a"]),{key:0},{default:Object(s["withCtx"])(()=>[(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["resolveDynamicComponent"])(e.icon)))]),_:1})):Object(s["createCommentVNode"])("v-if",!0)])],10,wf)):Object(s["createCommentVNode"])("v-if",!0),Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(o).e("title"))},[Object(s["renderSlot"])(e.$slots,"title",{},()=>[Object(s["createTextVNode"])(Object(s["toDisplayString"])(e.title||Object(s["unref"])(r)("el.pageHeader.title")),1)])],2)],2),Object(s["createVNode"])(Object(s["unref"])(mu),{direction:"vertical"}),Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(o).e("content"))},[Object(s["renderSlot"])(e.$slots,"content",{},()=>[Object(s["createTextVNode"])(Object(s["toDisplayString"])(e.content),1)])],2)],2),e.$slots.extra?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:0,class:Object(s["normalizeClass"])(Object(s["unref"])(o).e("extra"))},[Object(s["renderSlot"])(e.$slots,"extra")],2)):Object(s["createCommentVNode"])("v-if",!0)],2),e.$slots.default?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:1,class:Object(s["normalizeClass"])(Object(s["unref"])(o).e("main"))},[Object(s["renderSlot"])(e.$slots,"default")],2)):Object(s["createCommentVNode"])("v-if",!0)],2))}});var Tf=Object(h["a"])(Sf,[["__file","/home/runner/work/element-plus/element-plus/packages/components/page-header/src/page-header.vue"]]);const Ef=Object(k["a"])(Tf),jf=Symbol("elPaginationKey"),Df=Object(l["b"])({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:S["e"]}}),Lf={click:e=>e instanceof MouseEvent},Af=["disabled","aria-label","aria-disabled"],Nf={key:0},xf=Object(s["defineComponent"])({name:"ElPaginationPrev"}),Rf=Object(s["defineComponent"])({...xf,props:Df,emits:Lf,setup(e){const t=e,{t:n}=Object(Vn["b"])(),r=Object(s["computed"])(()=>t.disabled||t.currentPage<=1);return(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("button",{type:"button",class:"btn-prev",disabled:Object(s["unref"])(r),"aria-label":e.prevText||Object(s["unref"])(n)("el.pagination.prev"),"aria-disabled":Object(s["unref"])(r),onClick:t[0]||(t[0]=t=>e.$emit("click",t))},[e.prevText?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",Nf,Object(s["toDisplayString"])(e.prevText),1)):(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(w["a"]),{key:1},{default:Object(s["withCtx"])(()=>[(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["resolveDynamicComponent"])(e.prevIcon)))]),_:1}))],8,Af))}});var Pf=Object(h["a"])(Rf,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/prev.vue"]]);const Uf=Object(l["b"])({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:S["e"]}}),Vf=["disabled","aria-label","aria-disabled"],Bf={key:0},Ff=Object(s["defineComponent"])({name:"ElPaginationNext"}),Gf=Object(s["defineComponent"])({...Ff,props:Uf,emits:["click"],setup(e){const t=e,{t:n}=Object(Vn["b"])(),r=Object(s["computed"])(()=>t.disabled||t.currentPage===t.pageCount||0===t.pageCount);return(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("button",{type:"button",class:"btn-next",disabled:Object(s["unref"])(r),"aria-label":e.nextText||Object(s["unref"])(n)("el.pagination.next"),"aria-disabled":Object(s["unref"])(r),onClick:t[0]||(t[0]=t=>e.$emit("click",t))},[e.nextText?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",Bf,Object(s["toDisplayString"])(e.nextText),1)):(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(w["a"]),{key:1},{default:Object(s["withCtx"])(()=>[(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["resolveDynamicComponent"])(e.nextIcon)))]),_:1}))],8,Vf))}});var zf=Object(h["a"])(Gf,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/next.vue"]]);const Hf=Symbol("ElSelectGroup"),Yf=Symbol("ElSelect");function qf(e,t){const n=Object(s["inject"])(Yf),r=Object(s["inject"])(Hf,{disabled:!1}),o=Object(s["computed"])(()=>"[object object]"===Object.prototype.toString.call(e.value).toLowerCase()),a=Object(s["computed"])(()=>n.props.multiple?p(n.props.modelValue,e.value):f(e.value,n.props.modelValue)),i=Object(s["computed"])(()=>{if(n.props.multiple){const e=n.props.modelValue||[];return!a.value&&e.length>=n.props.multipleLimit&&n.props.multipleLimit>0}return!1}),c=Object(s["computed"])(()=>e.label||(o.value?"":e.value)),l=Object(s["computed"])(()=>e.value||e.label||""),u=Object(s["computed"])(()=>e.disabled||t.groupDisabled||i.value),d=Object(s["getCurrentInstance"])(),p=(e=[],t)=>{if(o.value){const r=n.props.valueKey;return e&&e.some(e=>Object(s["toRaw"])(Object(x["get"])(e,r))===Object(x["get"])(t,r))}return e&&e.includes(t)},f=(e,t)=>{if(o.value){const{valueKey:r}=n.props;return Object(x["get"])(e,r)===Object(x["get"])(t,r)}return e===t},h=()=>{e.disabled||r.disabled||(n.hoverIndex=n.optionsArray.indexOf(d.proxy))};Object(s["watch"])(()=>c.value,()=>{e.created||n.props.remote||n.setSelected()}),Object(s["watch"])(()=>e.value,(t,r)=>{const{remote:o,valueKey:a}=n.props;if(Object.is(t,r)||(n.onOptionDestroy(r,d.proxy),n.onOptionCreate(d.proxy)),!e.created&&!o){if(a&&"object"===typeof t&&"object"===typeof r&&t[a]===r[a])return;n.setSelected()}}),Object(s["watch"])(()=>r.disabled,()=>{t.groupDisabled=r.disabled},{immediate:!0});const{queryChange:m}=Object(s["toRaw"])(n);return Object(s["watch"])(m,r=>{const{query:o}=Object(s["unref"])(r),a=new RegExp(Object(Go["b"])(o),"i");t.visible=a.test(c.value)||e.created,t.visible||n.filteredOptionsCount--},{immediate:!0}),{select:n,currentLabel:c,currentValue:l,itemSelected:a,isDisabled:u,hoverItem:h}}const Wf=Object(s["defineComponent"])({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=Object(m["d"])("select"),n=Object(s["computed"])(()=>[t.be("dropdown","item"),t.is("disabled",Object(s["unref"])(i)),{selected:Object(s["unref"])(a),hover:Object(s["unref"])(d)}]),r=Object(s["reactive"])({index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}),{currentLabel:o,itemSelected:a,isDisabled:i,select:c,hoverItem:l}=qf(e,r),{visible:u,hover:d}=Object(s["toRefs"])(r),p=Object(s["getCurrentInstance"])().proxy;function f(){!0!==e.disabled&&!0!==r.groupDisabled&&c.handleOptionSelect(p)}return c.onOptionCreate(p),Object(s["onBeforeUnmount"])(()=>{const e=p.value,{selected:t}=c,n=c.props.multiple?t:[t],r=n.some(e=>e.value===p.value);Object(s["nextTick"])(()=>{c.cachedOptions.get(e)!==p||r||c.cachedOptions.delete(e)}),c.onOptionDestroy(e,p)}),{ns:t,containerKls:n,currentLabel:o,itemSelected:a,isDisabled:i,select:c,hoverItem:l,visible:u,hover:d,selectOptionClick:f,states:r}}});function Kf(e,t,n,r,o,a){return Object(s["withDirectives"])((Object(s["openBlock"])(),Object(s["createElementBlock"])("li",{class:Object(s["normalizeClass"])(e.containerKls),onMouseenter:t[0]||(t[0]=(...t)=>e.hoverItem&&e.hoverItem(...t)),onClick:t[1]||(t[1]=Object(s["withModifiers"])((...t)=>e.selectOptionClick&&e.selectOptionClick(...t),["stop"]))},[Object(s["renderSlot"])(e.$slots,"default",{},()=>[Object(s["createElementVNode"])("span",null,Object(s["toDisplayString"])(e.currentLabel),1)])],34)),[[s["vShow"],e.visible]])}var $f=Object(h["a"])(Wf,[["render",Kf],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option.vue"]]);const Jf=Object(s["defineComponent"])({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=Object(s["inject"])(Yf),t=Object(m["d"])("select"),n=Object(s["computed"])(()=>e.props.popperClass),r=Object(s["computed"])(()=>e.props.multiple),o=Object(s["computed"])(()=>e.props.fitInputWidth),a=Object(s["ref"])("");function i(){var t;a.value=(null==(t=e.selectWrapper)?void 0:t.offsetWidth)+"px"}return Object(s["onMounted"])(()=>{i(),Object(c["useResizeObserver"])(e.selectWrapper,i)}),{ns:t,minWidth:a,popperClass:n,isMultiple:r,isFitInputWidth:o}}});function Qf(e,t,n,r,o,a){return Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{class:Object(s["normalizeClass"])([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:Object(s["normalizeStyle"])({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[Object(s["renderSlot"])(e.$slots,"default")],6)}var Xf=Object(h["a"])(Jf,[["render",Qf],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select-dropdown.vue"]]);const Zf=e=>Yt["a"][e||"default"];function eh(e){const{t:t}=Object(Vn["b"])();return Object(s["reactive"])({options:new Map,cachedOptions:new Map,createdLabel:null,createdSelected:!1,selected:e.multiple?[]:{},inputLength:20,inputWidth:0,optionsCount:0,filteredOptionsCount:0,visible:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,cachedPlaceHolder:"",currentPlaceholder:t("el.select.placeholder"),menuVisibleOnFocus:!1,isOnComposition:!1,prefixWidth:11,mouseEnter:!1,focused:!1})}const th=(e,t,n)=>{const{t:r}=Object(Vn["b"])(),o=Object(m["d"])("select");Object(Wn["a"])({from:"suffixTransition",replacement:"override style scheme",version:"2.3.0",scope:"props",ref:"https://element-plus.org/en-US/component/select.html#select-attributes"},Object(s["computed"])(()=>!1===e.suffixTransition));const a=Object(s["ref"])(null),i=Object(s["ref"])(null),l=Object(s["ref"])(null),p=Object(s["ref"])(null),f=Object(s["ref"])(null),h=Object(s["ref"])(null),v=Object(s["ref"])(null),y=Object(s["ref"])(null),b=Object(s["ref"])(-1),O=Object(s["shallowRef"])({query:""}),M=Object(s["shallowRef"])(""),k=Object(s["ref"])([]);let C=0;const{form:w,formItem:I}=Object(Pr["a"])(),T=Object(s["computed"])(()=>!e.filterable||e.multiple||!t.visible),E=Object(s["computed"])(()=>e.disabled||(null==w?void 0:w.disabled)),j=Object(s["computed"])(()=>{const n=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:void 0!==e.modelValue&&null!==e.modelValue&&""!==e.modelValue,r=e.clearable&&!E.value&&t.inputHovering&&n;return r}),D=Object(s["computed"])(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),L=Object(s["computed"])(()=>o.is("reverse",D.value&&t.visible&&e.suffixTransition)),A=Object(s["computed"])(()=>(null==w?void 0:w.statusIcon)&&(null==I?void 0:I.validateState)&&S["d"][null==I?void 0:I.validateState]),N=Object(s["computed"])(()=>e.remote?300:0),R=Object(s["computed"])(()=>e.loading?e.loadingText||r("el.select.loading"):(!e.remote||""!==t.query||0!==t.options.size)&&(e.filterable&&t.query&&t.options.size>0&&0===t.filteredOptionsCount?e.noMatchText||r("el.select.noMatch"):0===t.options.size?e.noDataText||r("el.select.noData"):null)),P=Object(s["computed"])(()=>{const e=Array.from(t.options.values()),n=[];return k.value.forEach(t=>{const r=e.findIndex(e=>e.currentLabel===t);r>-1&&n.push(e[r])}),n.length?n:e}),U=Object(s["computed"])(()=>Array.from(t.cachedOptions.values())),V=Object(s["computed"])(()=>{const n=P.value.filter(e=>!e.created).some(e=>e.currentLabel===t.query);return e.filterable&&e.allowCreate&&""!==t.query&&!n}),B=Object(xt["b"])(),F=Object(s["computed"])(()=>["small"].includes(B.value)?"small":"default"),G=Object(s["computed"])({get(){return t.visible&&!1!==R.value},set(e){t.visible=e}});Object(s["watch"])([()=>E.value,()=>B.value,()=>null==w?void 0:w.size],()=>{Object(s["nextTick"])(()=>{z()})}),Object(s["watch"])(()=>e.placeholder,n=>{t.cachedPlaceHolder=t.currentPlaceholder=n;const r=e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0;r&&(t.currentPlaceholder="")}),Object(s["watch"])(()=>e.modelValue,(n,r)=>{e.multiple&&(z(),n&&n.length>0||i.value&&""!==t.query?t.currentPlaceholder="":t.currentPlaceholder=t.cachedPlaceHolder,e.filterable&&!e.reserveKeyword&&(t.query="",H(t.query))),W(),e.filterable&&!e.multiple&&(t.inputLength=20),!Object(x["isEqual"])(n,r)&&e.validateEvent&&(null==I||I.validate("change").catch(e=>Object(g["a"])(e)))},{flush:"post",deep:!0}),Object(s["watch"])(()=>t.visible,r=>{var o,a,c,u,d;r?(null==(a=null==(o=p.value)?void 0:o.updatePopper)||a.call(o),e.filterable&&(t.filteredOptionsCount=t.optionsCount,t.query=e.remote?"":t.selectedLabel,null==(u=null==(c=l.value)?void 0:c.focus)||u.call(c),e.multiple?null==(d=i.value)||d.focus():t.selectedLabel&&(t.currentPlaceholder=""+t.selectedLabel,t.selectedLabel=""),H(t.query),e.multiple||e.remote||(O.value.query="",Object(s["triggerRef"])(O),Object(s["triggerRef"])(M)))):(e.filterable&&(Object(Q["isFunction"])(e.filterMethod)&&e.filterMethod(""),Object(Q["isFunction"])(e.remoteMethod)&&e.remoteMethod("")),t.query="",t.previousQuery=null,t.selectedLabel="",t.inputLength=20,t.menuVisibleOnFocus=!1,$(),Object(s["nextTick"])(()=>{i.value&&""===i.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",r)}),Object(s["watch"])(()=>t.options.entries(),()=>{var n,r,o;if(!c["isClient"])return;null==(r=null==(n=p.value)?void 0:n.updatePopper)||r.call(n),e.multiple&&z();const a=(null==(o=v.value)?void 0:o.querySelectorAll("input"))||[];Array.from(a).includes(document.activeElement)||W(),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&q()},{flush:"post"}),Object(s["watch"])(()=>t.hoverIndex,e=>{Object(u["d"])(e)&&e>-1?b.value=P.value[e]||{}:b.value={},P.value.forEach(e=>{e.hover=b.value===e})});const z=()=>{Object(s["nextTick"])(()=>{var e,n;if(!a.value)return;const r=a.value.$el.querySelector("input");C=C||(r.clientHeight>0?r.clientHeight+2:0);const o=h.value,i=Zf(B.value||(null==w?void 0:w.size)),s=B.value||i===C||C<=0?i:C,c=null===r.offsetParent;!c&&(r.style.height=(0===t.selected.length?s:Math.max(o?o.clientHeight+(o.clientHeight>s?6:0):0,s))-2+"px"),t.visible&&!1!==R.value&&(null==(n=null==(e=p.value)?void 0:e.updatePopper)||n.call(e))})},H=async n=>{t.previousQuery===n||t.isOnComposition||(null!==t.previousQuery||!Object(Q["isFunction"])(e.filterMethod)&&!Object(Q["isFunction"])(e.remoteMethod)?(t.previousQuery=n,Object(s["nextTick"])(()=>{var e,n;t.visible&&(null==(n=null==(e=p.value)?void 0:e.updatePopper)||n.call(e))}),t.hoverIndex=-1,e.multiple&&e.filterable&&Object(s["nextTick"])(()=>{const n=15*i.value.value.length+20;t.inputLength=e.collapseTags?Math.min(50,n):n,Y(),z()}),e.remote&&Object(Q["isFunction"])(e.remoteMethod)?(t.hoverIndex=-1,e.remoteMethod(n)):Object(Q["isFunction"])(e.filterMethod)?(e.filterMethod(n),Object(s["triggerRef"])(M)):(t.filteredOptionsCount=t.optionsCount,O.value.query=n,Object(s["triggerRef"])(O),Object(s["triggerRef"])(M)),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&(await Object(s["nextTick"])(),q())):t.previousQuery=n)},Y=()=>{""!==t.currentPlaceholder&&(t.currentPlaceholder=i.value.value?"":t.cachedPlaceHolder)},q=()=>{const e=P.value.filter(e=>e.visible&&!e.disabled&&!e.states.groupDisabled),n=e.find(e=>e.created),r=e[0];t.hoverIndex=se(P.value,n||r)},W=()=>{var n;if(!e.multiple){const r=K(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 r=[];Array.isArray(e.modelValue)&&e.modelValue.forEach(e=>{r.push(K(e))}),t.selected=r,Object(s["nextTick"])(()=>{z()})},K=n=>{let r;const o="object"===Object(Q["toRawType"])(n).toLowerCase(),a="null"===Object(Q["toRawType"])(n).toLowerCase(),i="undefined"===Object(Q["toRawType"])(n).toLowerCase();for(let l=t.cachedOptions.size-1;l>=0;l--){const t=U.value[l],a=o?Object(x["get"])(t.value,e.valueKey)===Object(x["get"])(n,e.valueKey):t.value===n;if(a){r={value:n,currentLabel:t.currentLabel,isDisabled:t.isDisabled};break}}if(r)return r;const s=o?n.label:a||i?"":n,c={value:n,currentLabel:s};return e.multiple&&(c.hitState=!1),c},$=()=>{setTimeout(()=>{const n=e.valueKey;e.multiple?t.selected.length>0?t.hoverIndex=Math.min.apply(null,t.selected.map(e=>P.value.findIndex(t=>Object(x["get"])(t,n)===Object(x["get"])(e,n)))):t.hoverIndex=-1:t.hoverIndex=P.value.findIndex(e=>Ie(e)===Ie(t.selected))},300)},J=()=>{var t,n;X(),null==(n=null==(t=p.value)?void 0:t.updatePopper)||n.call(t),e.multiple&&z()},X=()=>{var e;t.inputWidth=null==(e=a.value)?void 0:e.$el.offsetWidth},Z=()=>{e.filterable&&t.query!==t.selectedLabel&&(t.query=t.selectedLabel,H(t.query))},ee=Object(x["debounce"])(()=>{Z()},N.value),te=Object(x["debounce"])(e=>{H(e.target.value)},N.value),ne=t=>{Object(x["isEqual"])(e.modelValue,t)||n.emit(d["a"],t)},re=r=>{if(r.code!==Me["a"].delete){if(r.target.value.length<=0&&!fe()){const t=e.modelValue.slice();t.pop(),n.emit(d["c"],t),ne(t)}1===r.target.value.length&&0===e.modelValue.length&&(t.currentPlaceholder=t.cachedPlaceHolder)}},oe=(r,o)=>{const a=t.selected.indexOf(o);if(a>-1&&!E.value){const t=e.modelValue.slice();t.splice(a,1),n.emit(d["c"],t),ne(t),n.emit("remove-tag",o.value)}r.stopPropagation(),ge()},ae=r=>{r.stopPropagation();const o=e.multiple?[]:"";if(!Object(Q["isString"])(o))for(const e of t.selected)e.isDisabled&&o.push(e.value);n.emit(d["c"],o),ne(o),t.hoverIndex=-1,t.visible=!1,n.emit("clear"),ge()},ie=r=>{var o;if(e.multiple){const a=(e.modelValue||[]).slice(),s=se(a,r.value);s>-1?a.splice(s,1):(e.multipleLimit<=0||a.length<e.multipleLimit)&&a.push(r.value),n.emit(d["c"],a),ne(a),r.created&&(t.query="",H(""),t.inputLength=20),e.filterable&&(null==(o=i.value)||o.focus())}else n.emit(d["c"],r.value),ne(r.value),t.visible=!1;ce(),t.visible||Object(s["nextTick"])(()=>{le(r)})},se=(t=[],n)=>{if(!Object(Q["isObject"])(n))return t.indexOf(n);const r=e.valueKey;let o=-1;return t.some((e,t)=>Object(s["toRaw"])(Object(x["get"])(e,r))===Object(x["get"])(n,r)&&(o=t,!0)),o},ce=()=>{const e=i.value||a.value;e&&(null==e||e.focus())},le=e=>{var t,n,r,a,i;const s=Array.isArray(e)?e[0]:e;let c=null;if(null==s?void 0:s.value){const e=P.value.filter(e=>e.value===s.value);e.length>0&&(c=e[0].$el)}if(p.value&&c){const e=null==(a=null==(r=null==(n=null==(t=p.value)?void 0:t.popperRef)?void 0:n.contentRef)?void 0:r.querySelector)?void 0:a.call(r,"."+o.be("dropdown","wrap"));e&&Object(_["c"])(e,c)}null==(i=y.value)||i.handleScroll()},ue=e=>{t.optionsCount++,t.filteredOptionsCount++,t.options.set(e.value,e),t.cachedOptions.set(e.value,e)},de=(e,n)=>{t.options.get(e)===n&&(t.optionsCount--,t.filteredOptionsCount--,t.options.delete(e))},pe=e=>{e.code!==Me["a"].backspace&&fe(!1),t.inputLength=15*i.value.value.length+20,z()},fe=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},he=e=>{const n=e.target.value;if("compositionend"===e.type)t.isOnComposition=!1,Object(s["nextTick"])(()=>H(n));else{const e=n[n.length-1]||"";t.isOnComposition=!Object(va["a"])(e)}},me=()=>{Object(s["nextTick"])(()=>le(t.selected))},ve=r=>{t.focused||((e.automaticDropdown||e.filterable)&&(e.filterable&&!t.visible&&(t.menuVisibleOnFocus=!0),t.visible=!0),t.focused=!0,n.emit("focus",r))},ge=()=>{var e,n;t.visible?null==(e=i.value||a.value)||e.focus():null==(n=a.value)||n.focus()},_e=()=>{var e,n,r;t.visible=!1,null==(e=a.value)||e.blur(),null==(r=null==(n=l.value)?void 0:n.blur)||r.call(n)},ye=e=>{var r,o,a;(null==(r=p.value)?void 0:r.isFocusInsideContent(e))||(null==(o=f.value)?void 0:o.isFocusInsideContent(e))||(null==(a=v.value)?void 0:a.contains(e.relatedTarget))||(t.visible&&Oe(),t.focused=!1,n.emit("blur",e))},be=e=>{ae(e)},Oe=()=>{t.visible=!1},ke=e=>{t.visible&&(e.preventDefault(),e.stopPropagation(),t.visible=!1)},Ce=e=>{e&&!t.mouseEnter||E.value||(t.menuVisibleOnFocus?t.menuVisibleOnFocus=!1:p.value&&p.value.isFocusInsideContent()||(t.visible=!t.visible),ge())},we=()=>{t.visible?P.value[t.hoverIndex]&&ie(P.value[t.hoverIndex]):Ce()},Ie=t=>Object(Q["isObject"])(t.value)?Object(x["get"])(t.value,e.valueKey):t.value,Se=Object(s["computed"])(()=>P.value.filter(e=>e.visible).every(e=>e.disabled)),Te=Object(s["computed"])(()=>t.selected.slice(0,e.maxCollapseTags)),Ee=Object(s["computed"])(()=>t.selected.slice(e.maxCollapseTags)),je=e=>{if(t.visible){if(0!==t.options.size&&0!==t.filteredOptionsCount&&!t.isOnComposition&&!Se.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=P.value[t.hoverIndex];!0!==n.disabled&&!0!==n.states.groupDisabled&&n.visible||je(e),Object(s["nextTick"])(()=>le(b.value))}}else t.visible=!0},De=()=>{t.mouseEnter=!0},Le=()=>{t.mouseEnter=!1},Ae=(e,t)=>{var n,r;oe(e,t),null==(r=null==(n=f.value)?void 0:n.updatePopper)||r.call(n)},Ne=Object(s["computed"])(()=>({maxWidth:Object(s["unref"])(t.inputWidth)-32-(A.value?22:0)+"px",width:"100%"}));return{optionList:k,optionsArray:P,selectSize:B,handleResize:J,debouncedOnInputChange:ee,debouncedQueryChange:te,deletePrevTag:re,deleteTag:oe,deleteSelected:ae,handleOptionSelect:ie,scrollToOption:le,readonly:T,resetInputHeight:z,showClose:j,iconComponent:D,iconReverse:L,showNewOption:V,collapseTagSize:F,setSelected:W,managePlaceholder:Y,selectDisabled:E,emptyText:R,toggleLastOptionHitState:fe,resetInputState:pe,handleComposition:he,onOptionCreate:ue,onOptionDestroy:de,handleMenuEnter:me,handleFocus:ve,focus:ge,blur:_e,handleBlur:ye,handleClearClick:be,handleClose:Oe,handleKeydownEscape:ke,toggleMenu:Ce,selectOption:we,getValueKey:Ie,navigateOptions:je,handleDeleteTooltipTag:Ae,dropMenuVisible:G,queryChange:O,groupQueryChange:M,showTagList:Te,collapseTagList:Ee,selectTagsStyle:Ne,reference:a,input:i,iOSInput:l,tooltipRef:p,tagTooltipRef:f,tags:h,selectWrapper:v,scrollbar:y,handleMouseEnter:De,handleMouseLeave:Le}};var nh=Object(s["defineComponent"])({name:"ElOptions",emits:["update-options"],setup(e,{slots:t,emit:n}){let r=[];function o(e,t){if(e.length!==t.length)return!1;for(const[n]of e.entries())if(e[n]!=t[n])return!1;return!0}return()=>{var e,a;const i=null==(e=t.default)?void 0:e.call(t),s=[];function c(e){Array.isArray(e)&&e.forEach(e=>{var t,n,r,o;const a=null==(t=(null==e?void 0:e.type)||{})?void 0:t.name;"ElOptionGroup"===a?c(Object(Q["isString"])(e.children)||Array.isArray(e.children)||!Object(Q["isFunction"])(null==(n=e.children)?void 0:n.default)?e.children:null==(r=e.children)?void 0:r.default()):"ElOption"===a?s.push(null==(o=e.props)?void 0:o.label):Array.isArray(e.children)&&c(e.children)})}return i.length&&c(null==(a=i[0])?void 0:a.children),o(s,r)||(r=s,n("update-options",s)),i}}}),rh=n("5a89");const oh="ElSelect",ah=Object(s["defineComponent"])({name:oh,componentName:oh,components:{ElInput:P["a"],ElSelectMenu:Xf,ElOption:$f,ElOptions:nh,ElTag:fa,ElScrollbar:ne,ElTooltip:Dt,ElIcon:w["a"]},directives:{ClickOutside:ba},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:rh["a"]},effect:{type:String,default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:Object,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},maxCollapseTags:{type:Number,default:1},teleported:be.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:S["e"],default:R["CircleClose"]},fitInputWidth:{type:Boolean,default:!1},suffixIcon:{type:S["e"],default:R["ArrowDown"]},tagType:{...ca.type,default:"info"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:{type:Boolean,default:!1},suffixTransition:{type:Boolean,default:!0},placement:{type:String,values:me["placements"],default:"bottom-start"}},emits:[d["c"],d["a"],"remove-tag","clear","visible-change","focus","blur"],setup(e,t){const n=Object(m["d"])("select"),r=Object(m["d"])("input"),{t:o}=Object(Vn["b"])(),a=eh(e),{optionList:i,optionsArray:l,selectSize:u,readonly:p,handleResize:f,collapseTagSize:h,debouncedOnInputChange:v,debouncedQueryChange:g,deletePrevTag:_,deleteTag:y,deleteSelected:b,handleOptionSelect:O,scrollToOption:M,setSelected:k,resetInputHeight:C,managePlaceholder:w,showClose:I,selectDisabled:S,iconComponent:T,iconReverse:E,showNewOption:j,emptyText:D,toggleLastOptionHitState:L,resetInputState:A,handleComposition:N,onOptionCreate:x,onOptionDestroy:R,handleMenuEnter:P,handleFocus:U,focus:V,blur:B,handleBlur:F,handleClearClick:G,handleClose:z,handleKeydownEscape:H,toggleMenu:Y,selectOption:q,getValueKey:W,navigateOptions:K,handleDeleteTooltipTag:$,dropMenuVisible:J,reference:Q,input:X,iOSInput:Z,tooltipRef:ee,tagTooltipRef:te,tags:ne,selectWrapper:re,scrollbar:oe,queryChange:ae,groupQueryChange:ie,handleMouseEnter:se,handleMouseLeave:ce,showTagList:le,collapseTagList:ue,selectTagsStyle:de}=th(e,a,t),{inputWidth:pe,selected:fe,inputLength:he,filteredOptionsCount:me,visible:ve,selectedLabel:ge,hoverIndex:_e,query:ye,inputHovering:be,currentPlaceholder:Oe,menuVisibleOnFocus:Me,isOnComposition:ke,options:Ce,cachedOptions:we,optionsCount:Ie,prefixWidth:Se}=Object(s["toRefs"])(a),Te=Object(s["computed"])(()=>{const t=[n.b()],r=Object(s["unref"])(u);return r&&t.push(n.m(r)),e.disabled&&t.push(n.m("disabled")),t}),Ee=Object(s["computed"])(()=>[n.e("tags"),n.is("disabled",Object(s["unref"])(S))]),je=Object(s["computed"])(()=>[n.b("tags-wrapper"),{"has-prefix":Object(s["unref"])(Se)&&Object(s["unref"])(fe).length}]),De=Object(s["computed"])(()=>[n.e("input"),n.is(Object(s["unref"])(u)),n.is("disabled",Object(s["unref"])(S))]),Le=Object(s["computed"])(()=>[n.e("input"),n.is(Object(s["unref"])(u)),n.em("input","iOS")]),Ae=Object(s["computed"])(()=>[n.is("empty",!e.allowCreate&&Boolean(Object(s["unref"])(ye))&&0===Object(s["unref"])(me))]),Ne=Object(s["computed"])(()=>{const e=Object(s["unref"])(pe)>123?Object(s["unref"])(pe)-123:Object(s["unref"])(pe)-75;return{maxWidth:e+"px"}}),xe=Object(s["computed"])(()=>({marginLeft:Object(s["unref"])(Se)+"px",flexGrow:1,width:Object(s["unref"])(he)/(Object(s["unref"])(pe)-32)+"%",maxWidth:Object(s["unref"])(pe)-42+"px"}));Object(s["provide"])(Yf,Object(s["reactive"])({props:e,options:Ce,optionsArray:l,cachedOptions:we,optionsCount:Ie,filteredOptionsCount:me,hoverIndex:_e,handleOptionSelect:O,onOptionCreate:x,onOptionDestroy:R,selectWrapper:re,selected:fe,setSelected:k,queryChange:ae,groupQueryChange:ie})),Object(s["onMounted"])(()=>{a.cachedPlaceHolder=Oe.value=e.placeholder||(()=>o("el.select.placeholder")),e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(Oe.value=""),Object(c["useResizeObserver"])(re,f),e.remote&&e.multiple&&C(),Object(s["nextTick"])(()=>{const e=Q.value&&Q.value.$el;if(e&&(pe.value=e.getBoundingClientRect().width,t.slots.prefix)){const t=e.querySelector("."+r.e("prefix"));Se.value=Math.max(t.getBoundingClientRect().width+11,30)}}),k()}),e.multiple&&!Array.isArray(e.modelValue)&&t.emit(d["c"],[]),!e.multiple&&Array.isArray(e.modelValue)&&t.emit(d["c"],"");const Re=Object(s["computed"])(()=>{var e,t;return null==(t=null==(e=ee.value)?void 0:e.popperRef)?void 0:t.contentRef}),Pe=e=>{i.value=e};return{isIOS:c["isIOS"],onOptionsRendered:Pe,prefixWidth:Se,selectSize:u,readonly:p,handleResize:f,collapseTagSize:h,debouncedOnInputChange:v,debouncedQueryChange:g,deletePrevTag:_,deleteTag:y,handleDeleteTooltipTag:$,deleteSelected:b,handleOptionSelect:O,scrollToOption:M,inputWidth:pe,selected:fe,inputLength:he,filteredOptionsCount:me,visible:ve,selectedLabel:ge,hoverIndex:_e,query:ye,inputHovering:be,currentPlaceholder:Oe,menuVisibleOnFocus:Me,isOnComposition:ke,options:Ce,resetInputHeight:C,managePlaceholder:w,showClose:I,selectDisabled:S,iconComponent:T,iconReverse:E,showNewOption:j,emptyText:D,toggleLastOptionHitState:L,resetInputState:A,handleComposition:N,handleMenuEnter:P,handleFocus:U,focus:V,blur:B,handleBlur:F,handleClearClick:G,handleClose:z,handleKeydownEscape:H,toggleMenu:Y,selectOption:q,getValueKey:W,navigateOptions:K,dropMenuVisible:J,reference:Q,input:X,iOSInput:Z,tooltipRef:ee,popperPaneRef:Re,tags:ne,selectWrapper:re,scrollbar:oe,wrapperKls:Te,tagsKls:Ee,tagWrapperKls:je,inputKls:De,iOSInputKls:Le,scrollbarKls:Ae,selectTagsStyle:de,nsSelect:n,tagTextStyle:Ne,inputStyle:xe,handleMouseEnter:se,handleMouseLeave:ce,showTagList:le,collapseTagList:ue,tagTooltipRef:te}}}),ih=["disabled","autocomplete"],sh=["disabled"],ch={style:{height:"100%",display:"flex","justify-content":"center","align-items":"center"}};function lh(e,t,n,r,o,a){const i=Object(s["resolveComponent"])("el-tag"),c=Object(s["resolveComponent"])("el-tooltip"),l=Object(s["resolveComponent"])("el-icon"),u=Object(s["resolveComponent"])("el-input"),d=Object(s["resolveComponent"])("el-option"),p=Object(s["resolveComponent"])("el-options"),f=Object(s["resolveComponent"])("el-scrollbar"),h=Object(s["resolveComponent"])("el-select-menu"),m=Object(s["resolveDirective"])("click-outside");return Object(s["withDirectives"])((Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{ref:"selectWrapper",class:Object(s["normalizeClass"])(e.wrapperKls),onMouseenter:t[22]||(t[22]=(...t)=>e.handleMouseEnter&&e.handleMouseEnter(...t)),onMouseleave:t[23]||(t[23]=(...t)=>e.handleMouseLeave&&e.handleMouseLeave(...t)),onClick:t[24]||(t[24]=Object(s["withModifiers"])((...t)=>e.toggleMenu&&e.toggleMenu(...t),["stop"]))},[Object(s["createVNode"])(c,{ref:"tooltipRef",visible:e.dropMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-options":e.popperOptions,"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:Object(s["withCtx"])(()=>[Object(s["createElementVNode"])("div",{class:"select-trigger",onMouseenter:t[20]||(t[20]=t=>e.inputHovering=!0),onMouseleave:t[21]||(t[21]=t=>e.inputHovering=!1)},[e.multiple?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:0,ref:"tags",tabindex:"-1",class:Object(s["normalizeClass"])(e.tagsKls),style:Object(s["normalizeStyle"])(e.selectTagsStyle),onClick:t[15]||(t[15]=(...t)=>e.focus&&e.focus(...t))},[e.collapseTags&&e.selected.length?(Object(s["openBlock"])(),Object(s["createBlock"])(s["Transition"],{key:0,onAfterLeave:e.resetInputHeight},{default:Object(s["withCtx"])(()=>[Object(s["createElementVNode"])("span",{class:Object(s["normalizeClass"])(e.tagWrapperKls)},[(Object(s["openBlock"])(!0),Object(s["createElementBlock"])(s["Fragment"],null,Object(s["renderList"])(e.showTagList,t=>(Object(s["openBlock"])(),Object(s["createBlock"])(i,{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:Object(s["withCtx"])(()=>[Object(s["createElementVNode"])("span",{class:Object(s["normalizeClass"])(e.nsSelect.e("tags-text")),style:Object(s["normalizeStyle"])(e.tagTextStyle)},Object(s["toDisplayString"])(t.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128)),e.selected.length>e.maxCollapseTags?(Object(s["openBlock"])(),Object(s["createBlock"])(i,{key:0,closable:!1,size:e.collapseTagSize,type:e.tagType,"disable-transitions":""},{default:Object(s["withCtx"])(()=>[e.collapseTagsTooltip?(Object(s["openBlock"])(),Object(s["createBlock"])(c,{key:0,ref:"tagTooltipRef",disabled:e.dropMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:Object(s["withCtx"])(()=>[Object(s["createElementVNode"])("span",{class:Object(s["normalizeClass"])(e.nsSelect.e("tags-text"))},"+ "+Object(s["toDisplayString"])(e.selected.length-e.maxCollapseTags),3)]),content:Object(s["withCtx"])(()=>[Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(e.nsSelect.e("collapse-tags"))},[(Object(s["openBlock"])(!0),Object(s["createElementBlock"])(s["Fragment"],null,Object(s["renderList"])(e.collapseTagList,t=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:e.getValueKey(t),class:Object(s["normalizeClass"])(e.nsSelect.e("collapse-tag"))},[Object(s["createVNode"])(i,{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.handleDeleteTooltipTag(n,t)},{default:Object(s["withCtx"])(()=>[Object(s["createElementVNode"])("span",{class:Object(s["normalizeClass"])(e.nsSelect.e("tags-text")),style:Object(s["normalizeStyle"])({maxWidth:e.inputWidth-75+"px"})},Object(s["toDisplayString"])(t.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect","teleported"])):(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",{key:1,class:Object(s["normalizeClass"])(e.nsSelect.e("tags-text"))},"+ "+Object(s["toDisplayString"])(e.selected.length-e.maxCollapseTags),3))]),_:1},8,["size","type"])):Object(s["createCommentVNode"])("v-if",!0)],2)]),_:1},8,["onAfterLeave"])):Object(s["createCommentVNode"])("v-if",!0),e.collapseTags?Object(s["createCommentVNode"])("v-if",!0):(Object(s["openBlock"])(),Object(s["createBlock"])(s["Transition"],{key:1,onAfterLeave:e.resetInputHeight},{default:Object(s["withCtx"])(()=>[Object(s["createElementVNode"])("span",{class:Object(s["normalizeClass"])(e.tagWrapperKls),style:Object(s["normalizeStyle"])(e.prefixWidth&&e.selected.length?{marginLeft:e.prefixWidth+"px"}:"")},[(Object(s["openBlock"])(!0),Object(s["createElementBlock"])(s["Fragment"],null,Object(s["renderList"])(e.selected,t=>(Object(s["openBlock"])(),Object(s["createBlock"])(i,{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:Object(s["withCtx"])(()=>[Object(s["createElementVNode"])("span",{class:Object(s["normalizeClass"])(e.nsSelect.e("tags-text")),style:Object(s["normalizeStyle"])({maxWidth:e.inputWidth-75+"px"})},Object(s["toDisplayString"])(t.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128))],6)]),_:1},8,["onAfterLeave"])),e.filterable&&!e.selectDisabled?Object(s["withDirectives"])((Object(s["openBlock"])(),Object(s["createElementBlock"])("input",{key:2,ref:"input","onUpdate:modelValue":t[0]||(t[0]=t=>e.query=t),type:"text",class:Object(s["normalizeClass"])(e.inputKls),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:Object(s["normalizeStyle"])(e.inputStyle),onFocus:t[1]||(t[1]=(...t)=>e.handleFocus&&e.handleFocus(...t)),onBlur:t[2]||(t[2]=(...t)=>e.handleBlur&&e.handleBlur(...t)),onKeyup:t[3]||(t[3]=(...t)=>e.managePlaceholder&&e.managePlaceholder(...t)),onKeydown:[t[4]||(t[4]=(...t)=>e.resetInputState&&e.resetInputState(...t)),t[5]||(t[5]=Object(s["withKeys"])(Object(s["withModifiers"])(t=>e.navigateOptions("next"),["prevent"]),["down"])),t[6]||(t[6]=Object(s["withKeys"])(Object(s["withModifiers"])(t=>e.navigateOptions("prev"),["prevent"]),["up"])),t[7]||(t[7]=Object(s["withKeys"])((...t)=>e.handleKeydownEscape&&e.handleKeydownEscape(...t),["esc"])),t[8]||(t[8]=Object(s["withKeys"])(Object(s["withModifiers"])((...t)=>e.selectOption&&e.selectOption(...t),["stop","prevent"]),["enter"])),t[9]||(t[9]=Object(s["withKeys"])((...t)=>e.deletePrevTag&&e.deletePrevTag(...t),["delete"])),t[10]||(t[10]=Object(s["withKeys"])(t=>e.visible=!1,["tab"]))],onCompositionstart:t[11]||(t[11]=(...t)=>e.handleComposition&&e.handleComposition(...t)),onCompositionupdate:t[12]||(t[12]=(...t)=>e.handleComposition&&e.handleComposition(...t)),onCompositionend:t[13]||(t[13]=(...t)=>e.handleComposition&&e.handleComposition(...t)),onInput:t[14]||(t[14]=(...t)=>e.debouncedQueryChange&&e.debouncedQueryChange(...t))},null,46,ih)),[[s["vModelText"],e.query]]):Object(s["createCommentVNode"])("v-if",!0)],6)):Object(s["createCommentVNode"])("v-if",!0),Object(s["createCommentVNode"])(" fix: https://github.com/element-plus/element-plus/issues/11415 "),e.isIOS&&!e.multiple&&e.filterable&&e.readonly?(Object(s["openBlock"])(),Object(s["createElementBlock"])("input",{key:1,ref:"iOSInput",class:Object(s["normalizeClass"])(e.iOSInputKls),disabled:e.selectDisabled,type:"text"},null,10,sh)):Object(s["createCommentVNode"])("v-if",!0),Object(s["createVNode"])(u,{id:e.id,ref:"reference",modelValue:e.selectedLabel,"onUpdate:modelValue":t[16]||(t[16]=t=>e.selectedLabel=t),type:"text",placeholder:"function"===typeof e.currentPlaceholder?e.currentPlaceholder():e.currentPlaceholder,name:e.name,autocomplete:e.autocomplete,size:e.selectSize,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1,class:Object(s["normalizeClass"])([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]=Object(s["withKeys"])(Object(s["withModifiers"])(t=>e.navigateOptions("next"),["stop","prevent"]),["down"])),t[18]||(t[18]=Object(s["withKeys"])(Object(s["withModifiers"])(t=>e.navigateOptions("prev"),["stop","prevent"]),["up"])),Object(s["withKeys"])(Object(s["withModifiers"])(e.selectOption,["stop","prevent"]),["enter"]),Object(s["withKeys"])(e.handleKeydownEscape,["esc"]),t[19]||(t[19]=Object(s["withKeys"])(t=>e.visible=!1,["tab"]))]},Object(s["createSlots"])({suffix:Object(s["withCtx"])(()=>[e.iconComponent&&!e.showClose?(Object(s["openBlock"])(),Object(s["createBlock"])(l,{key:0,class:Object(s["normalizeClass"])([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:Object(s["withCtx"])(()=>[(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["resolveDynamicComponent"])(e.iconComponent)))]),_:1},8,["class"])):Object(s["createCommentVNode"])("v-if",!0),e.showClose&&e.clearIcon?(Object(s["openBlock"])(),Object(s["createBlock"])(l,{key:1,class:Object(s["normalizeClass"])([e.nsSelect.e("caret"),e.nsSelect.e("icon")]),onClick:e.handleClearClick},{default:Object(s["withCtx"])(()=>[(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["resolveDynamicComponent"])(e.clearIcon)))]),_:1},8,["class","onClick"])):Object(s["createCommentVNode"])("v-if",!0)]),_:2},[e.$slots.prefix?{name:"prefix",fn:Object(s["withCtx"])(()=>[Object(s["createElementVNode"])("div",ch,[Object(s["renderSlot"])(e.$slots,"prefix")])])}:void 0]),1032,["id","modelValue","placeholder","name","autocomplete","size","disabled","readonly","class","tabindex","onFocus","onBlur","onInput","onPaste","onCompositionstart","onCompositionupdate","onCompositionend","onKeydown"])],32)]),content:Object(s["withCtx"])(()=>[Object(s["createVNode"])(h,null,{default:Object(s["withCtx"])(()=>[Object(s["withDirectives"])(Object(s["createVNode"])(f,{ref:"scrollbar",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:Object(s["normalizeClass"])(e.scrollbarKls)},{default:Object(s["withCtx"])(()=>[e.showNewOption?(Object(s["openBlock"])(),Object(s["createBlock"])(d,{key:0,value:e.query,created:!0},null,8,["value"])):Object(s["createCommentVNode"])("v-if",!0),Object(s["createVNode"])(p,{onUpdateOptions:e.onOptionsRendered},{default:Object(s["withCtx"])(()=>[Object(s["renderSlot"])(e.$slots,"default")]),_:3},8,["onUpdateOptions"])]),_:3},8,["wrap-class","view-class","class"]),[[s["vShow"],e.options.size>0&&!e.loading]]),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&0===e.options.size)?(Object(s["openBlock"])(),Object(s["createElementBlock"])(s["Fragment"],{key:0},[e.$slots.empty?Object(s["renderSlot"])(e.$slots,"empty",{key:0}):(Object(s["openBlock"])(),Object(s["createElementBlock"])("p",{key:1,class:Object(s["normalizeClass"])(e.nsSelect.be("dropdown","empty"))},Object(s["toDisplayString"])(e.emptyText),3))],64)):Object(s["createCommentVNode"])("v-if",!0)]),_:3})]),_:3},8,["visible","placement","teleported","popper-class","popper-options","effect","transition","persistent","onShow"])],34)),[[m,e.handleClose,e.popperPaneRef]])}var uh=Object(h["a"])(ah,[["render",lh],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select.vue"]]);const dh=Object(s["defineComponent"])({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:{type:Boolean,default:!1}},setup(e){const t=Object(m["d"])("select"),n=Object(s["ref"])(!0),r=Object(s["getCurrentInstance"])(),o=Object(s["ref"])([]);Object(s["provide"])(Hf,Object(s["reactive"])({...Object(s["toRefs"])(e)}));const a=Object(s["inject"])(Yf);Object(s["onMounted"])(()=>{o.value=i(r.subTree)});const i=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(...i(e))}),t},{groupQueryChange:c}=Object(s["toRaw"])(a);return Object(s["watch"])(c,()=>{n.value=o.value.some(e=>!0===e.visible)},{flush:"post"}),{visible:n,ns:t}}});function ph(e,t,n,r,o,a){return Object(s["withDirectives"])((Object(s["openBlock"])(),Object(s["createElementBlock"])("ul",{class:Object(s["normalizeClass"])(e.ns.be("group","wrap"))},[Object(s["createElementVNode"])("li",{class:Object(s["normalizeClass"])(e.ns.be("group","title"))},Object(s["toDisplayString"])(e.label),3),Object(s["createElementVNode"])("li",null,[Object(s["createElementVNode"])("ul",{class:Object(s["normalizeClass"])(e.ns.b("group"))},[Object(s["renderSlot"])(e.$slots,"default")],2)])],2)),[[s["vShow"],e.visible]])}var fh=Object(h["a"])(dh,[["render",ph],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option-group.vue"]]);const hh=Object(k["a"])(uh,{Option:$f,OptionGroup:fh}),mh=Object(k["d"])($f),vh=Object(k["d"])(fh),gh=()=>Object(s["inject"])(jf,{}),_h=Object(l["b"])({pageSize:{type:Number,required:!0},pageSizes:{type:Object(l["c"])(Array),default:()=>Object(Ra["a"])([10,20,30,40,50,100])},popperClass:{type:String},disabled:Boolean,size:{type:String,values:Yt["b"]}}),yh=Object(s["defineComponent"])({name:"ElPaginationSizes"}),bh=Object(s["defineComponent"])({...yh,props:_h,emits:["page-size-change"],setup(e,{emit:t}){const n=e,{t:r}=Object(Vn["b"])(),o=Object(m["d"])("pagination"),a=gh(),i=Object(s["ref"])(n.pageSize);Object(s["watch"])(()=>n.pageSizes,(e,r)=>{if(!Object(x["isEqual"])(e,r)&&Array.isArray(e)){const r=e.includes(n.pageSize)?n.pageSize:n.pageSizes[0];t("page-size-change",r)}}),Object(s["watch"])(()=>n.pageSize,e=>{i.value=e});const c=Object(s["computed"])(()=>n.pageSizes);function l(e){var t;e!==i.value&&(i.value=e,null==(t=a.handleSizeChange)||t.call(a,Number(e)))}return(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",{class:Object(s["normalizeClass"])(Object(s["unref"])(o).e("sizes"))},[Object(s["createVNode"])(Object(s["unref"])(hh),{"model-value":i.value,disabled:e.disabled,"popper-class":e.popperClass,size:e.size,"validate-event":!1,onChange:l},{default:Object(s["withCtx"])(()=>[(Object(s["openBlock"])(!0),Object(s["createElementBlock"])(s["Fragment"],null,Object(s["renderList"])(Object(s["unref"])(c),e=>(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(mh),{key:e,value:e,label:e+Object(s["unref"])(r)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","size"])],2))}});var Oh=Object(h["a"])(bh,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/sizes.vue"]]);const Mh=Object(l["b"])({size:{type:String,values:Yt["b"]}}),kh=["disabled"],Ch=Object(s["defineComponent"])({name:"ElPaginationJumper"}),wh=Object(s["defineComponent"])({...Ch,props:Mh,setup(e){const{t:t}=Object(Vn["b"])(),n=Object(m["d"])("pagination"),{pageCount:r,disabled:o,currentPage:a,changeEvent:i}=gh(),c=Object(s["ref"])(),l=Object(s["computed"])(()=>{var e;return null!=(e=c.value)?e:null==a?void 0:a.value});function u(e){c.value=e?+e:""}function d(e){e=Math.trunc(+e),null==i||i(e),c.value=void 0}return(e,a)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",{class:Object(s["normalizeClass"])(Object(s["unref"])(n).e("jump")),disabled:Object(s["unref"])(o)},[Object(s["createElementVNode"])("span",{class:Object(s["normalizeClass"])([Object(s["unref"])(n).e("goto")])},Object(s["toDisplayString"])(Object(s["unref"])(t)("el.pagination.goto")),3),Object(s["createVNode"])(Object(s["unref"])(P["a"]),{size:e.size,class:Object(s["normalizeClass"])([Object(s["unref"])(n).e("editor"),Object(s["unref"])(n).is("in-pagination")]),min:1,max:Object(s["unref"])(r),disabled:Object(s["unref"])(o),"model-value":Object(s["unref"])(l),"validate-event":!1,label:Object(s["unref"])(t)("el.pagination.page"),type:"number","onUpdate:modelValue":u,onChange:d},null,8,["size","class","max","disabled","model-value","label"]),Object(s["createElementVNode"])("span",{class:Object(s["normalizeClass"])([Object(s["unref"])(n).e("classifier")])},Object(s["toDisplayString"])(Object(s["unref"])(t)("el.pagination.pageClassifier")),3)],10,kh))}});var Ih=Object(h["a"])(wh,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/jumper.vue"]]);const Sh=Object(l["b"])({total:{type:Number,default:1e3}}),Th=["disabled"],Eh=Object(s["defineComponent"])({name:"ElPaginationTotal"}),jh=Object(s["defineComponent"])({...Eh,props:Sh,setup(e){const{t:t}=Object(Vn["b"])(),n=Object(m["d"])("pagination"),{disabled:r}=gh();return(e,o)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",{class:Object(s["normalizeClass"])(Object(s["unref"])(n).e("total")),disabled:Object(s["unref"])(r)},Object(s["toDisplayString"])(Object(s["unref"])(t)("el.pagination.total",{total:e.total})),11,Th))}});var Dh=Object(h["a"])(jh,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/total.vue"]]);const Lh=Object(l["b"])({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),Ah=["onKeyup"],Nh=["aria-current","aria-label","tabindex"],xh=["tabindex","aria-label"],Rh=["aria-current","aria-label","tabindex"],Ph=["tabindex","aria-label"],Uh=["aria-current","aria-label","tabindex"],Vh=Object(s["defineComponent"])({name:"ElPaginationPager"}),Bh=Object(s["defineComponent"])({...Vh,props:Lh,emits:["change"],setup(e,{emit:t}){const n=e,r=Object(m["d"])("pager"),o=Object(m["d"])("icon"),{t:a}=Object(Vn["b"])(),i=Object(s["ref"])(!1),c=Object(s["ref"])(!1),l=Object(s["ref"])(!1),u=Object(s["ref"])(!1),d=Object(s["ref"])(!1),p=Object(s["ref"])(!1),f=Object(s["computed"])(()=>{const e=n.pagerCount,t=(e-1)/2,r=Number(n.currentPage),o=Number(n.pageCount);let a=!1,i=!1;o>e&&(r>e-t&&(a=!0),r<o-t&&(i=!0));const s=[];if(a&&!i){const t=o-(e-2);for(let e=t;e<o;e++)s.push(e)}else if(!a&&i)for(let n=2;n<e;n++)s.push(n);else if(a&&i){const t=Math.floor(e/2)-1;for(let e=r-t;e<=r+t;e++)s.push(e)}else for(let n=2;n<o;n++)s.push(n);return s}),h=Object(s["computed"])(()=>["more","btn-quickprev",o.b(),r.is("disabled",n.disabled)]),v=Object(s["computed"])(()=>["more","btn-quicknext",o.b(),r.is("disabled",n.disabled)]),g=Object(s["computed"])(()=>n.disabled?-1:0);function _(e=!1){n.disabled||(e?l.value=!0:u.value=!0)}function y(e=!1){e?d.value=!0:p.value=!0}function b(e){const r=e.target;if("li"===r.tagName.toLowerCase()&&Array.from(r.classList).includes("number")){const e=Number(r.textContent);e!==n.currentPage&&t("change",e)}else"li"===r.tagName.toLowerCase()&&Array.from(r.classList).includes("more")&&O(e)}function O(e){const r=e.target;if("ul"===r.tagName.toLowerCase()||n.disabled)return;let o=Number(r.textContent);const a=n.pageCount,i=n.currentPage,s=n.pagerCount-2;r.className.includes("more")&&(r.className.includes("quickprev")?o=i-s:r.className.includes("quicknext")&&(o=i+s)),Number.isNaN(+o)||(o<1&&(o=1),o>a&&(o=a)),o!==i&&t("change",o)}return Object(s["watchEffect"])(()=>{const e=(n.pagerCount-1)/2;i.value=!1,c.value=!1,n.pageCount>n.pagerCount&&(n.currentPage>n.pagerCount-e&&(i.value=!0),n.currentPage<n.pageCount-e&&(c.value=!0))}),(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("ul",{class:Object(s["normalizeClass"])(Object(s["unref"])(r).b()),onClick:O,onKeyup:Object(s["withKeys"])(b,["enter"])},[e.pageCount>0?(Object(s["openBlock"])(),Object(s["createElementBlock"])("li",{key:0,class:Object(s["normalizeClass"])([[Object(s["unref"])(r).is("active",1===e.currentPage),Object(s["unref"])(r).is("disabled",e.disabled)],"number"]),"aria-current":1===e.currentPage,"aria-label":Object(s["unref"])(a)("el.pagination.currentPage",{pager:1}),tabindex:Object(s["unref"])(g)}," 1 ",10,Nh)):Object(s["createCommentVNode"])("v-if",!0),i.value?(Object(s["openBlock"])(),Object(s["createElementBlock"])("li",{key:1,class:Object(s["normalizeClass"])(Object(s["unref"])(h)),tabindex:Object(s["unref"])(g),"aria-label":Object(s["unref"])(a)("el.pagination.prevPages",{pager:e.pagerCount-2}),onMouseenter:t[0]||(t[0]=e=>_(!0)),onMouseleave:t[1]||(t[1]=e=>l.value=!1),onFocus:t[2]||(t[2]=e=>y(!0)),onBlur:t[3]||(t[3]=e=>d.value=!1)},[!l.value&&!d.value||e.disabled?(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(R["MoreFilled"]),{key:1})):(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(R["DArrowLeft"]),{key:0}))],42,xh)):Object(s["createCommentVNode"])("v-if",!0),(Object(s["openBlock"])(!0),Object(s["createElementBlock"])(s["Fragment"],null,Object(s["renderList"])(Object(s["unref"])(f),t=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("li",{key:t,class:Object(s["normalizeClass"])([[Object(s["unref"])(r).is("active",e.currentPage===t),Object(s["unref"])(r).is("disabled",e.disabled)],"number"]),"aria-current":e.currentPage===t,"aria-label":Object(s["unref"])(a)("el.pagination.currentPage",{pager:t}),tabindex:Object(s["unref"])(g)},Object(s["toDisplayString"])(t),11,Rh))),128)),c.value?(Object(s["openBlock"])(),Object(s["createElementBlock"])("li",{key:2,class:Object(s["normalizeClass"])(Object(s["unref"])(v)),tabindex:Object(s["unref"])(g),"aria-label":Object(s["unref"])(a)("el.pagination.nextPages",{pager:e.pagerCount-2}),onMouseenter:t[4]||(t[4]=e=>_()),onMouseleave:t[5]||(t[5]=e=>u.value=!1),onFocus:t[6]||(t[6]=e=>y()),onBlur:t[7]||(t[7]=e=>p.value=!1)},[!u.value&&!p.value||e.disabled?(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(R["MoreFilled"]),{key:1})):(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(R["DArrowRight"]),{key:0}))],42,Ph)):Object(s["createCommentVNode"])("v-if",!0),e.pageCount>1?(Object(s["openBlock"])(),Object(s["createElementBlock"])("li",{key:3,class:Object(s["normalizeClass"])([[Object(s["unref"])(r).is("active",e.currentPage===e.pageCount),Object(s["unref"])(r).is("disabled",e.disabled)],"number"]),"aria-current":e.currentPage===e.pageCount,"aria-label":Object(s["unref"])(a)("el.pagination.currentPage",{pager:e.pageCount}),tabindex:Object(s["unref"])(g)},Object(s["toDisplayString"])(e.pageCount),11,Uh)):Object(s["createCommentVNode"])("v-if",!0)],42,Ah))}});var Fh=Object(h["a"])(Bh,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/pager.vue"]]);const Gh=e=>"number"!==typeof e,zh=Object(l["b"])({pageSize:Number,defaultPageSize:Number,total:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>Object(u["d"])(e)&&Math.trunc(e)===e&&e>4&&e<22&&e%2===1,default:7},currentPage:Number,defaultCurrentPage:Number,layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:Object(l["c"])(Array),default:()=>Object(Ra["a"])([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},prevIcon:{type:S["e"],default:()=>R["ArrowLeft"]},nextText:{type:String,default:""},nextIcon:{type:S["e"],default:()=>R["ArrowRight"]},small:Boolean,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean}),Hh={"update:current-page":e=>Object(u["d"])(e),"update:page-size":e=>Object(u["d"])(e),"size-change":e=>Object(u["d"])(e),"current-change":e=>Object(u["d"])(e),"prev-click":e=>Object(u["d"])(e),"next-click":e=>Object(u["d"])(e)},Yh="ElPagination";var qh=Object(s["defineComponent"])({name:Yh,props:zh,emits:Hh,setup(e,{emit:t,slots:n}){const{t:r}=Object(Vn["b"])(),o=Object(m["d"])("pagination"),a=Object(s["getCurrentInstance"])().vnode.props||{},i="onUpdate:currentPage"in a||"onUpdate:current-page"in a||"onCurrentChange"in a,c="onUpdate:pageSize"in a||"onUpdate:page-size"in a||"onSizeChange"in a,l=Object(s["computed"])(()=>{if(Gh(e.total)&&Gh(e.pageCount))return!1;if(!Gh(e.currentPage)&&!i)return!1;if(e.layout.includes("sizes"))if(Gh(e.pageCount)){if(!Gh(e.total)&&!Gh(e.pageSize)&&!c)return!1}else if(!c)return!1;return!0}),u=Object(s["ref"])(Gh(e.defaultPageSize)?10:e.defaultPageSize),d=Object(s["ref"])(Gh(e.defaultCurrentPage)?1:e.defaultCurrentPage),p=Object(s["computed"])({get(){return Gh(e.pageSize)?u.value:e.pageSize},set(n){Gh(e.pageSize)&&(u.value=n),c&&(t("update:page-size",n),t("size-change",n))}}),f=Object(s["computed"])(()=>{let t=0;return Gh(e.pageCount)?Gh(e.total)||(t=Math.max(1,Math.ceil(e.total/p.value))):t=e.pageCount,t}),h=Object(s["computed"])({get(){return Gh(e.currentPage)?d.value:e.currentPage},set(n){let r=n;n<1?r=1:n>f.value&&(r=f.value),Gh(e.currentPage)&&(d.value=r),i&&(t("update:current-page",r),t("current-change",r))}});function v(e){h.value=e}function _(e){p.value=e;const t=f.value;h.value>t&&(h.value=t)}function y(){e.disabled||(h.value-=1,t("prev-click",h.value))}function b(){e.disabled||(h.value+=1,t("next-click",h.value))}function O(e,t){e&&(e.props||(e.props={}),e.props.class=[e.props.class,t].join(" "))}return Object(s["watch"])(f,e=>{h.value>e&&(h.value=e)}),Object(s["provide"])(jf,{pageCount:f,disabled:Object(s["computed"])(()=>e.disabled),currentPage:h,changeEvent:v,handleSizeChange:_}),()=>{var t,a;if(!l.value)return Object(g["a"])(Yh,r("el.pagination.deprecationWarning")),null;if(!e.layout)return null;if(e.hideOnSinglePage&&f.value<=1)return null;const i=[],c=[],u=Object(s["h"])("div",{class:o.e("rightwrapper")},c),d={prev:Object(s["h"])(Pf,{disabled:e.disabled,currentPage:h.value,prevText:e.prevText,prevIcon:e.prevIcon,onClick:y}),jumper:Object(s["h"])(Ih,{size:e.small?"small":"default"}),pager:Object(s["h"])(Fh,{currentPage:h.value,pageCount:f.value,pagerCount:e.pagerCount,onChange:v,disabled:e.disabled}),next:Object(s["h"])(zf,{disabled:e.disabled,currentPage:h.value,pageCount:f.value,nextText:e.nextText,nextIcon:e.nextIcon,onClick:b}),sizes:Object(s["h"])(Oh,{pageSize:p.value,pageSizes:e.pageSizes,popperClass:e.popperClass,disabled:e.disabled,size:e.small?"small":"default"}),slot:null!=(a=null==(t=null==n?void 0:n.default)?void 0:t.call(n))?a:null,total:Object(s["h"])(Dh,{total:Gh(e.total)?0:e.total})},m=e.layout.split(",").map(e=>e.trim());let _=!1;return m.forEach(e=>{"->"!==e?_?c.push(d[e]):i.push(d[e]):_=!0}),O(i[0],o.is("first")),O(i[i.length-1],o.is("last")),_&&c.length>0&&(O(c[0],o.is("first")),O(c[c.length-1],o.is("last")),i.push(u)),Object(s["h"])("div",{class:[o.b(),o.is("background",e.background),{[o.m("small")]:e.small}]},i)}}});const Wh=Object(k["a"])(qh);var Kh=n("446f");const $h=Object(l["b"])({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:Kh["c"],default:"primary"},cancelButtonType:{type:String,values:Kh["c"],default:"text"},icon:{type:S["e"],default:()=>R["QuestionFilled"]},iconColor:{type:String,default:"#f90"},hideIcon:{type:Boolean,default:!1},hideAfter:{type:Number,default:200},teleported:be.teleported,persistent:be.persistent,width:{type:[String,Number],default:150}}),Jh={confirm:e=>e instanceof MouseEvent,cancel:e=>e instanceof MouseEvent},Qh=Object(s["defineComponent"])({name:"ElPopconfirm"}),Xh=Object(s["defineComponent"])({...Qh,props:$h,emits:Jh,setup(e,{emit:t}){const n=e,{t:r}=Object(Vn["b"])(),o=Object(m["d"])("popconfirm"),a=Object(s["ref"])(),i=()=>{var e,t;null==(t=null==(e=a.value)?void 0:e.onClose)||t.call(e)},c=Object(s["computed"])(()=>({width:Object(v["b"])(n.width)})),l=e=>{t("confirm",e),i()},u=e=>{t("cancel",e),i()},d=Object(s["computed"])(()=>n.confirmButtonText||r("el.popconfirm.confirmButtonText")),p=Object(s["computed"])(()=>n.cancelButtonText||r("el.popconfirm.cancelButtonText"));return(e,t)=>(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(Dt),Object(s["mergeProps"])({ref_key:"tooltipRef",ref:a,trigger:"click",effect:"light"},e.$attrs,{"popper-class":Object(s["unref"])(o).namespace.value+"-popover","popper-style":Object(s["unref"])(c),teleported:e.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":e.hideAfter,persistent:e.persistent}),{content:Object(s["withCtx"])(()=>[Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(o).b())},[Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(o).e("main"))},[!e.hideIcon&&e.icon?(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(w["a"]),{key:0,class:Object(s["normalizeClass"])(Object(s["unref"])(o).e("icon")),style:Object(s["normalizeStyle"])({color:e.iconColor})},{default:Object(s["withCtx"])(()=>[(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["resolveDynamicComponent"])(e.icon)))]),_:1},8,["class","style"])):Object(s["createCommentVNode"])("v-if",!0),Object(s["createTextVNode"])(" "+Object(s["toDisplayString"])(e.title),1)],2),Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(o).e("action"))},[Object(s["createVNode"])(Object(s["unref"])(bn["a"]),{size:"small",type:"text"===e.cancelButtonType?"":e.cancelButtonType,text:"text"===e.cancelButtonType,onClick:u},{default:Object(s["withCtx"])(()=>[Object(s["createTextVNode"])(Object(s["toDisplayString"])(Object(s["unref"])(p)),1)]),_:1},8,["type","text"]),Object(s["createVNode"])(Object(s["unref"])(bn["a"]),{size:"small",type:"text"===e.confirmButtonType?"":e.confirmButtonType,text:"text"===e.confirmButtonType,onClick:l},{default:Object(s["withCtx"])(()=>[Object(s["createTextVNode"])(Object(s["toDisplayString"])(Object(s["unref"])(d)),1)]),_:1},8,["type","text"])],2)],2)]),default:Object(s["withCtx"])(()=>[e.$slots.reference?Object(s["renderSlot"])(e.$slots,"reference",{key:0}):Object(s["createCommentVNode"])("v-if",!0)]),_:3},16,["popper-class","popper-style","teleported","hide-after","persistent"]))}});var Zh=Object(h["a"])(Xh,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popconfirm/src/popconfirm.vue"]]);const em=Object(k["a"])(Zh),tm=Object(l["b"])({trigger:ke.trigger,placement:Nu.placement,disabled:ke.disabled,visible:be.visible,transition:be.transition,popperOptions:Nu.popperOptions,tabindex:Nu.tabindex,content:be.content,popperStyle:be.popperStyle,popperClass:be.popperClass,enterable:{...be.enterable,default:!0},effect:{...be.effect,default:"light"},teleported:be.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},"onUpdate:visible":{type:Function}}),nm={"update:visible":e=>Object(u["a"])(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},rm="onUpdate:visible",om=Object(s["defineComponent"])({name:"ElPopover"}),am=Object(s["defineComponent"])({...om,props:tm,emits:nm,setup(e,{expose:t,emit:n}){const r=e,o=Object(s["computed"])(()=>r[rm]),a=Object(m["d"])("popover"),i=Object(s["ref"])(),c=Object(s["computed"])(()=>{var e;return null==(e=Object(s["unref"])(i))?void 0:e.popperRef}),l=Object(s["computed"])(()=>[{width:Object(v["b"])(r.width)},r.popperStyle]),u=Object(s["computed"])(()=>[a.b(),r.popperClass,{[a.m("plain")]:!!r.content}]),d=Object(s["computed"])(()=>r.transition===a.namespace.value+"-fade-in-linear"),p=()=>{var e;null==(e=i.value)||e.hide()},f=()=>{n("before-enter")},h=()=>{n("before-leave")},g=()=>{n("after-enter")},_=()=>{n("update:visible",!1),n("after-leave")};return t({popperRef:c,hide:p}),(e,t)=>(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(Dt),Object(s["mergeProps"])({ref_key:"tooltipRef",ref:i},e.$attrs,{trigger:e.trigger,placement:e.placement,disabled:e.disabled,visible:e.visible,transition:e.transition,"popper-options":e.popperOptions,tabindex:e.tabindex,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":Object(s["unref"])(u),"popper-style":Object(s["unref"])(l),teleported:e.teleported,persistent:e.persistent,"gpu-acceleration":Object(s["unref"])(d),"onUpdate:visible":Object(s["unref"])(o),onBeforeShow:f,onBeforeHide:h,onShow:g,onHide:_}),{content:Object(s["withCtx"])(()=>[e.title?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:0,class:Object(s["normalizeClass"])(Object(s["unref"])(a).e("title")),role:"title"},Object(s["toDisplayString"])(e.title),3)):Object(s["createCommentVNode"])("v-if",!0),Object(s["renderSlot"])(e.$slots,"default",{},()=>[Object(s["createTextVNode"])(Object(s["toDisplayString"])(e.content),1)])]),default:Object(s["withCtx"])(()=>[e.$slots.reference?Object(s["renderSlot"])(e.$slots,"reference",{key:0}):Object(s["createCommentVNode"])("v-if",!0)]),_:3},16,["trigger","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","persistent","gpu-acceleration","onUpdate:visible"]))}});var im=Object(h["a"])(am,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popover/src/popover.vue"]]);const sm=(e,t)=>{const n=t.arg||t.value,r=null==n?void 0:n.popperRef;r&&(r.triggerRef=e)};var cm={mounted(e,t){sm(e,t)},updated(e,t){sm(e,t)}};const lm="popover",um=Object(k["b"])(cm,lm),dm=Object(k["a"])(im,{directive:um}),pm=Object(l["b"])({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:Object(l["c"])(String),default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:Object(l["c"])([String,Array,Function]),default:""},striped:Boolean,stripedFlow:Boolean,format:{type:Object(l["c"])(Function),default:e=>e+"%"}}),fm=["aria-valuenow"],hm={viewBox:"0 0 100 100"},mm=["d","stroke","stroke-linecap","stroke-width"],vm=["d","stroke","opacity","stroke-linecap","stroke-width"],gm={key:0},_m=Object(s["defineComponent"])({name:"ElProgress"}),ym=Object(s["defineComponent"])({..._m,props:pm,setup(e){const t=e,n={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},r=Object(m["d"])("progress"),o=Object(s["computed"])(()=>({width:t.percentage+"%",animationDuration:t.duration+"s",backgroundColor:b(t.percentage)})),a=Object(s["computed"])(()=>(t.strokeWidth/t.width*100).toFixed(1)),i=Object(s["computed"])(()=>["circle","dashboard"].includes(t.type)?Number.parseInt(""+(50-Number.parseFloat(a.value)/2),10):0),c=Object(s["computed"])(()=>{const e=i.value,n="dashboard"===t.type;return`\n M 50 50\n m 0 ${n?"":"-"}${e}\n a ${e} ${e} 0 1 1 0 ${n?"-":""}${2*e}\n a ${e} ${e} 0 1 1 0 ${n?"":"-"}${2*e}\n `}),l=Object(s["computed"])(()=>2*Math.PI*i.value),u=Object(s["computed"])(()=>"dashboard"===t.type?.75:1),d=Object(s["computed"])(()=>{const e=-1*l.value*(1-u.value)/2;return e+"px"}),p=Object(s["computed"])(()=>({strokeDasharray:`${l.value*u.value}px, ${l.value}px`,strokeDashoffset:d.value})),f=Object(s["computed"])(()=>({strokeDasharray:`${l.value*u.value*(t.percentage/100)}px, ${l.value}px`,strokeDashoffset:d.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),h=Object(s["computed"])(()=>{let e;return e=t.color?b(t.percentage):n[t.status]||n.default,e}),v=Object(s["computed"])(()=>"warning"===t.status?R["WarningFilled"]:"line"===t.type?"success"===t.status?R["CircleCheck"]:R["CircleClose"]:"success"===t.status?R["Check"]:R["Close"]),g=Object(s["computed"])(()=>"line"===t.type?12+.4*t.strokeWidth:.111111*t.width+2),_=Object(s["computed"])(()=>t.format(t.percentage));function y(e){const t=100/e.length,n=e.map((e,n)=>Object(Q["isString"])(e)?{color:e,percentage:(n+1)*t}:e);return n.sort((e,t)=>e.percentage-t.percentage)}const b=e=>{var n;const{color:r}=t;if(Object(Q["isFunction"])(r))return r(e);if(Object(Q["isString"])(r))return r;{const t=y(r);for(const n of t)if(n.percentage>e)return n.color;return null==(n=t[t.length-1])?void 0:n.color}};return(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{class:Object(s["normalizeClass"])([Object(s["unref"])(r).b(),Object(s["unref"])(r).m(e.type),Object(s["unref"])(r).is(e.status),{[Object(s["unref"])(r).m("without-text")]:!e.showText,[Object(s["unref"])(r).m("text-inside")]:e.textInside}]),role:"progressbar","aria-valuenow":e.percentage,"aria-valuemin":"0","aria-valuemax":"100"},["line"===e.type?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:0,class:Object(s["normalizeClass"])(Object(s["unref"])(r).b("bar"))},[Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(r).be("bar","outer")),style:Object(s["normalizeStyle"])({height:e.strokeWidth+"px"})},[Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])([Object(s["unref"])(r).be("bar","inner"),{[Object(s["unref"])(r).bem("bar","inner","indeterminate")]:e.indeterminate},{[Object(s["unref"])(r).bem("bar","inner","striped")]:e.striped},{[Object(s["unref"])(r).bem("bar","inner","striped-flow")]:e.stripedFlow}]),style:Object(s["normalizeStyle"])(Object(s["unref"])(o))},[(e.showText||e.$slots.default)&&e.textInside?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:0,class:Object(s["normalizeClass"])(Object(s["unref"])(r).be("bar","innerText"))},[Object(s["renderSlot"])(e.$slots,"default",{percentage:e.percentage},()=>[Object(s["createElementVNode"])("span",null,Object(s["toDisplayString"])(Object(s["unref"])(_)),1)])],2)):Object(s["createCommentVNode"])("v-if",!0)],6)],6)],2)):(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:1,class:Object(s["normalizeClass"])(Object(s["unref"])(r).b("circle")),style:Object(s["normalizeStyle"])({height:e.width+"px",width:e.width+"px"})},[(Object(s["openBlock"])(),Object(s["createElementBlock"])("svg",hm,[Object(s["createElementVNode"])("path",{class:Object(s["normalizeClass"])(Object(s["unref"])(r).be("circle","track")),d:Object(s["unref"])(c),stroke:`var(${Object(s["unref"])(r).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":e.strokeLinecap,"stroke-width":Object(s["unref"])(a),fill:"none",style:Object(s["normalizeStyle"])(Object(s["unref"])(p))},null,14,mm),Object(s["createElementVNode"])("path",{class:Object(s["normalizeClass"])(Object(s["unref"])(r).be("circle","path")),d:Object(s["unref"])(c),stroke:Object(s["unref"])(h),fill:"none",opacity:e.percentage?1:0,"stroke-linecap":e.strokeLinecap,"stroke-width":Object(s["unref"])(a),style:Object(s["normalizeStyle"])(Object(s["unref"])(f))},null,14,vm)]))],6)),!e.showText&&!e.$slots.default||e.textInside?Object(s["createCommentVNode"])("v-if",!0):(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:2,class:Object(s["normalizeClass"])(Object(s["unref"])(r).e("text")),style:Object(s["normalizeStyle"])({fontSize:Object(s["unref"])(g)+"px"})},[Object(s["renderSlot"])(e.$slots,"default",{percentage:e.percentage},()=>[e.status?(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(w["a"]),{key:1},{default:Object(s["withCtx"])(()=>[(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["resolveDynamicComponent"])(Object(s["unref"])(v))))]),_:1})):(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",gm,Object(s["toDisplayString"])(Object(s["unref"])(_)),1))])],6))],10,fm))}});var bm=Object(h["a"])(ym,[["__file","/home/runner/work/element-plus/element-plus/packages/components/progress/src/progress.vue"]]);const Om=Object(k["a"])(bm),Mm=Object(l["b"])({modelValue:{type:Number,default:0},id:{type:String,default:void 0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:Object(l["c"])([Array,Object]),default:()=>Object(Ra["a"])(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:Object(l["c"])([Array,Object]),default:()=>[R["StarFilled"],R["StarFilled"],R["StarFilled"]]},voidIcon:{type:S["e"],default:()=>R["Star"]},disabledVoidIcon:{type:S["e"],default:()=>R["StarFilled"]},disabled:Boolean,allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:Object(l["c"])(Array),default:()=>Object(Ra["a"])(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:Lr["c"],label:{type:String,default:void 0},clearable:{type:Boolean,default:!1}}),km={[d["a"]]:e=>Object(u["d"])(e),[d["c"]]:e=>Object(u["d"])(e)},Cm=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"],wm=["onMousemove","onClick"],Im=Object(s["defineComponent"])({name:"ElRate"}),Sm=Object(s["defineComponent"])({...Im,props:Mm,emits:km,setup(e,{expose:t,emit:n}){const r=e;function o(e,t){const n=e=>Object(Q["isObject"])(e),r=Object.keys(t).map(e=>+e).filter(r=>{const o=t[r],a=!!n(o)&&o.excluded;return a?e<r:e<=r}).sort((e,t)=>e-t),o=t[r[0]];return n(o)&&o.value||o}const a=Object(s["inject"])(mt["a"],void 0),i=Object(s["inject"])(mt["b"],void 0),c=Object(xt["b"])(),l=Object(m["d"])("rate"),{inputId:u,isLabeledByFormItem:p}=Object(Pr["b"])(r,{formItemContext:i}),f=Object(s["ref"])(r.modelValue),h=Object(s["ref"])(-1),g=Object(s["ref"])(!0),_=Object(s["computed"])(()=>[l.b(),l.m(c.value)]),y=Object(s["computed"])(()=>r.disabled||(null==a?void 0:a.disabled)),b=Object(s["computed"])(()=>l.cssVarBlock({"void-color":r.voidColor,"disabled-void-color":r.disabledVoidColor,"fill-color":C.value})),O=Object(s["computed"])(()=>{let e="";return r.showScore?e=r.scoreTemplate.replace(/\{\s*value\s*\}/,y.value?""+r.modelValue:""+f.value):r.showText&&(e=r.texts[Math.ceil(f.value)-1]),e}),M=Object(s["computed"])(()=>100*r.modelValue-100*Math.floor(r.modelValue)),k=Object(s["computed"])(()=>Object(Q["isArray"])(r.colors)?{[r.lowThreshold]:r.colors[0],[r.highThreshold]:{value:r.colors[1],excluded:!0},[r.max]:r.colors[2]}:r.colors),C=Object(s["computed"])(()=>{const e=o(f.value,k.value);return Object(Q["isObject"])(e)?"":e}),I=Object(s["computed"])(()=>{let e="";return y.value?e=M.value+"%":r.allowHalf&&(e="50%"),{color:C.value,width:e}}),S=Object(s["computed"])(()=>{let e=Object(Q["isArray"])(r.icons)?[...r.icons]:{...r.icons};return e=Object(s["markRaw"])(e),Object(Q["isArray"])(e)?{[r.lowThreshold]:e[0],[r.highThreshold]:{value:e[1],excluded:!0},[r.max]:e[2]}:e}),T=Object(s["computed"])(()=>o(r.modelValue,S.value)),E=Object(s["computed"])(()=>y.value?Object(Q["isString"])(r.disabledVoidIcon)?r.disabledVoidIcon:Object(s["markRaw"])(r.disabledVoidIcon):Object(Q["isString"])(r.voidIcon)?r.voidIcon:Object(s["markRaw"])(r.voidIcon)),j=Object(s["computed"])(()=>o(f.value,S.value));function D(e){const t=y.value&&M.value>0&&e-1<r.modelValue&&e>r.modelValue,n=r.allowHalf&&g.value&&e-.5<=f.value&&e>f.value;return t||n}function L(e){r.clearable&&e===r.modelValue&&(e=0),n(d["c"],e),r.modelValue!==e&&n("change",e)}function A(e){y.value||(r.allowHalf&&g.value?L(f.value):L(e))}function N(e){if(y.value)return;let t=f.value;const o=e.code;return o===Me["a"].up||o===Me["a"].right?(r.allowHalf?t+=.5:t+=1,e.stopPropagation(),e.preventDefault()):o!==Me["a"].left&&o!==Me["a"].down||(r.allowHalf?t-=.5:t-=1,e.stopPropagation(),e.preventDefault()),t=t<0?0:t,t=t>r.max?r.max:t,n(d["c"],t),n("change",t),t}function x(e,t){if(!y.value){if(r.allowHalf&&t){let n=t.target;Object(v["d"])(n,l.e("item"))&&(n=n.querySelector("."+l.e("icon"))),(0===n.clientWidth||Object(v["d"])(n,l.e("decimal")))&&(n=n.parentNode),g.value=2*t.offsetX<=n.clientWidth,f.value=g.value?e-.5:e}else f.value=e;h.value=e}}function R(){y.value||(r.allowHalf&&(g.value=r.modelValue!==Math.floor(r.modelValue)),f.value=r.modelValue,h.value=-1)}return Object(s["watch"])(()=>r.modelValue,e=>{f.value=e,g.value=r.modelValue!==Math.floor(r.modelValue)}),r.modelValue||n(d["c"],0),t({setCurrentValue:x,resetCurrentValue:R}),(e,t)=>{var n;return Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{id:Object(s["unref"])(u),class:Object(s["normalizeClass"])([Object(s["unref"])(_),Object(s["unref"])(l).is("disabled",Object(s["unref"])(y))]),role:"slider","aria-label":Object(s["unref"])(p)?void 0:e.label||"rating","aria-labelledby":Object(s["unref"])(p)?null==(n=Object(s["unref"])(i))?void 0:n.labelId:void 0,"aria-valuenow":f.value,"aria-valuetext":Object(s["unref"])(O)||void 0,"aria-valuemin":"0","aria-valuemax":e.max,tabindex:"0",style:Object(s["normalizeStyle"])(Object(s["unref"])(b)),onKeydown:N},[(Object(s["openBlock"])(!0),Object(s["createElementBlock"])(s["Fragment"],null,Object(s["renderList"])(e.max,(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",{key:t,class:Object(s["normalizeClass"])(Object(s["unref"])(l).e("item")),onMousemove:t=>x(e,t),onMouseleave:R,onClick:t=>A(e)},[Object(s["createVNode"])(Object(s["unref"])(w["a"]),{class:Object(s["normalizeClass"])([Object(s["unref"])(l).e("icon"),{hover:h.value===e},Object(s["unref"])(l).is("active",e<=f.value)])},{default:Object(s["withCtx"])(()=>[D(e)?Object(s["createCommentVNode"])("v-if",!0):(Object(s["openBlock"])(),Object(s["createElementBlock"])(s["Fragment"],{key:0},[Object(s["withDirectives"])((Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["resolveDynamicComponent"])(Object(s["unref"])(j)),null,null,512)),[[s["vShow"],e<=f.value]]),Object(s["withDirectives"])((Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["resolveDynamicComponent"])(Object(s["unref"])(E)),null,null,512)),[[s["vShow"],!(e<=f.value)]])],64)),D(e)?(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(w["a"]),{key:1,style:Object(s["normalizeStyle"])(Object(s["unref"])(I)),class:Object(s["normalizeClass"])([Object(s["unref"])(l).e("icon"),Object(s["unref"])(l).e("decimal")])},{default:Object(s["withCtx"])(()=>[(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["resolveDynamicComponent"])(Object(s["unref"])(T))))]),_:1},8,["style","class"])):Object(s["createCommentVNode"])("v-if",!0)]),_:2},1032,["class"])],42,wm))),128)),e.showText||e.showScore?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",{key:0,class:Object(s["normalizeClass"])(Object(s["unref"])(l).e("text"))},Object(s["toDisplayString"])(Object(s["unref"])(O)),3)):Object(s["createCommentVNode"])("v-if",!0)],46,Cm)}}});var Tm=Object(h["a"])(Sm,[["__file","/home/runner/work/element-plus/element-plus/packages/components/rate/src/rate.vue"]]);const Em=Object(k["a"])(Tm),jm={success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},Dm={[jm.success]:R["CircleCheckFilled"],[jm.warning]:R["WarningFilled"],[jm.error]:R["CircleCloseFilled"],[jm.info]:R["InfoFilled"]},Lm=Object(l["b"])({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["success","warning","info","error"],default:"info"}}),Am=Object(s["defineComponent"])({name:"ElResult"}),Nm=Object(s["defineComponent"])({...Am,props:Lm,setup(e){const t=e,n=Object(m["d"])("result"),r=Object(s["computed"])(()=>{const e=t.icon,n=e&&jm[e]?jm[e]:"icon-info",r=Dm[n]||Dm["icon-info"];return{class:n,component:r}});return(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(n).b())},[Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(n).e("icon"))},[Object(s["renderSlot"])(e.$slots,"icon",{},()=>[Object(s["unref"])(r).component?(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["resolveDynamicComponent"])(Object(s["unref"])(r).component),{key:0,class:Object(s["normalizeClass"])(Object(s["unref"])(r).class)},null,8,["class"])):Object(s["createCommentVNode"])("v-if",!0)])],2),e.title||e.$slots.title?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:0,class:Object(s["normalizeClass"])(Object(s["unref"])(n).e("title"))},[Object(s["renderSlot"])(e.$slots,"title",{},()=>[Object(s["createElementVNode"])("p",null,Object(s["toDisplayString"])(e.title),1)])],2)):Object(s["createCommentVNode"])("v-if",!0),e.subTitle||e.$slots["sub-title"]?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:1,class:Object(s["normalizeClass"])(Object(s["unref"])(n).e("subtitle"))},[Object(s["renderSlot"])(e.$slots,"sub-title",{},()=>[Object(s["createElementVNode"])("p",null,Object(s["toDisplayString"])(e.subTitle),1)])],2)):Object(s["createCommentVNode"])("v-if",!0),e.$slots.extra?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:2,class:Object(s["normalizeClass"])(Object(s["unref"])(n).e("extra"))},[Object(s["renderSlot"])(e.$slots,"extra")],2)):Object(s["createCommentVNode"])("v-if",!0)],2))}});var xm=Object(h["a"])(Nm,[["__file","/home/runner/work/element-plus/element-plus/packages/components/result/src/result.vue"]]);const Rm=Object(k["a"])(xm),Pm=["start","center","end","space-around","space-between","space-evenly"],Um=["top","middle","bottom"],Vm=Object(l["b"])({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:Pm,default:"start"},align:{type:String,values:Um}}),Bm=Object(s["defineComponent"])({name:"ElRow"}),Fm=Object(s["defineComponent"])({...Bm,props:Vm,setup(e){const t=e,n=Object(m["d"])("row"),r=Object(s["computed"])(()=>t.gutter);Object(s["provide"])(Ua,{gutter:r});const o=Object(s["computed"])(()=>{const e={};return t.gutter?(e.marginRight=e.marginLeft=`-${t.gutter/2}px`,e):e}),a=Object(s["computed"])(()=>[n.b(),n.is("justify-"+t.justify,"start"!==t.justify),n.is("align-"+t.align,!!t.align)]);return(e,t)=>(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["resolveDynamicComponent"])(e.tag),{class:Object(s["normalizeClass"])(Object(s["unref"])(a)),style:Object(s["normalizeStyle"])(Object(s["unref"])(o))},{default:Object(s["withCtx"])(()=>[Object(s["renderSlot"])(e.$slots,"default")]),_:3},8,["class","style"]))}});var Gm=Object(h["a"])(Fm,[["__file","/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);const zm=Object(k["a"])(Gm),Hm=Object(s["defineComponent"])({props:{item:{type:Object,required:!0},style:Object,height:Number},setup(){const e=Object(m["d"])("select");return{ns:e}}});function Ym(e,t,n,r,o,a){return e.item.isTitle?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:0,class:Object(s["normalizeClass"])(e.ns.be("group","title")),style:Object(s["normalizeStyle"])([e.style,{lineHeight:e.height+"px"}])},Object(s["toDisplayString"])(e.item.label),7)):(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:1,class:Object(s["normalizeClass"])(e.ns.be("group","split")),style:Object(s["normalizeStyle"])(e.style)},[Object(s["createElementVNode"])("span",{class:Object(s["normalizeClass"])(e.ns.be("group","split-dash")),style:Object(s["normalizeStyle"])({top:e.height/2+"px"})},null,6)],6))}var qm=Object(h["a"])(Hm,[["render",Ym],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/group-item.vue"]]);function Wm(e,{emit:t}){return{hoverItem:()=>{e.disabled||t("hover",e.index)},selectOptionClick:()=>{e.disabled||t("select",e.item,e.index)}}}const Km={allowCreate:Boolean,autocomplete:{type:String,default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:[String,Object],default:R["CircleClose"]},effect:{type:String,default:"light"},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},maxCollapseTags:{type:Number,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},teleported:be.teleported,persistent:{type:Boolean,default:!0},popperClass:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},remote:Boolean,size:{type:String,validator:rh["a"]},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:{type:Boolean,default:!1},validateEvent:{type:Boolean,default:!0},placement:{type:Object(l["c"])(String),values:me["placements"],default:"bottom-start"}},$m={data:Array,disabled:Boolean,hovering:Boolean,item:Object,index:Number,style:Object,selected:Boolean,created:Boolean},Jm=Object(s["defineComponent"])({props:$m,emits:["select","hover"],setup(e,{emit:t}){const n=Object(m["d"])("select"),{hoverItem:r,selectOptionClick:o}=Wm(e,{emit:t});return{ns:n,hoverItem:r,selectOptionClick:o}}}),Qm=["aria-selected"];function Xm(e,t,n,r,o,a){return Object(s["openBlock"])(),Object(s["createElementBlock"])("li",{"aria-selected":e.selected,style:Object(s["normalizeStyle"])(e.style),class:Object(s["normalizeClass"])([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]=Object(s["withModifiers"])((...t)=>e.selectOptionClick&&e.selectOptionClick(...t),["stop"]))},[Object(s["renderSlot"])(e.$slots,"default",{item:e.item,index:e.index,disabled:e.disabled},()=>[Object(s["createElementVNode"])("span",null,Object(s["toDisplayString"])(e.item.label),1)])],46,Qm)}var Zm=Object(h["a"])(Jm,[["render",Xm],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/option-item.vue"]]);const ev=Symbol("ElSelectV2Injection");var tv=n("a0bf"),nv=n.n(tv);const rv=()=>{const e=Object(s["getCurrentInstance"])(),t=e.proxy.$props;return Object(s["computed"])(()=>{const e=(e,t,n)=>({});return t.perfMode?Object(x["memoize"])(e):nv()(e)})},ov=50,av="itemRendered",iv="scroll",sv="forward",cv="backward",lv="auto",uv="smart",dv="start",pv="center",fv="end",hv="horizontal",mv="vertical",vv="ltr",gv="rtl",_v="negative",yv="positive-ascending",bv="positive-descending",Ov={[hv]:"left",[mv]:"top"},Mv=20,kv=e=>c["isClient"]?window.requestAnimationFrame(e):setTimeout(e,16),Cv=e=>c["isClient"]?window.cancelAnimationFrame(e):clearTimeout(e);var wv=n("6ab4");const Iv={[hv]:"deltaX",[mv]:"deltaY"},Sv=({atEndEdge:e,atStartEdge:t,layout:n},r)=>{let o,a=0;const i=n=>{const r=n<0&&t.value||n>0&&e.value;return r},s=e=>{Cv(o);const t=e[Iv[n.value]];i(a)&&i(a+t)||(a+=t,Object(wv["a"])()||e.preventDefault(),o=kv(()=>{r(a),a=0}))};return{hasReachedEdge:i,onWheel:s}},Tv=Object(l["a"])({type:Object(l["c"])([Number,Function]),required:!0}),Ev=Object(l["a"])({type:Number}),jv=Object(l["a"])({type:Number,default:2}),Dv=Object(l["a"])({type:String,values:["ltr","rtl"],default:"ltr"}),Lv=Object(l["a"])({type:Number,default:0}),Av=Object(l["a"])({type:Number,required:!0}),Nv=Object(l["a"])({type:String,values:["horizontal","vertical"],default:mv}),xv=Object(l["b"])({className:{type:String,default:""},containerElement:{type:Object(l["c"])([String,Object]),default:"div"},data:{type:Object(l["c"])(Array),default:()=>Object(Ra["a"])([])},direction:Dv,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},style:{type:Object(l["c"])([Object,String,Array])},useIsScrolling:{type:Boolean,default:!1},width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:{type:Boolean,default:!1}}),Rv=Object(l["b"])({cache:jv,estimatedItemSize:Ev,layout:Nv,initScrollOffset:Lv,total:Av,itemSize:Tv,...xv}),Pv={type:Number,default:6},Uv={type:Number,default:0},Vv={type:Number,default:2},Bv=Object(l["b"])({columnCache:jv,columnWidth:Tv,estimatedColumnWidth:Ev,estimatedRowHeight:Ev,initScrollLeft:Lv,initScrollTop:Lv,itemKey:{type:Object(l["c"])(Function),default:({columnIndex:e,rowIndex:t})=>`${t}:${e}`},rowCache:jv,rowHeight:Tv,totalColumn:Av,totalRow:Av,hScrollbarSize:Pv,vScrollbarSize:Pv,scrollbarStartGap:Uv,scrollbarEndGap:Vv,role:String,...xv}),Fv=Object(l["b"])({alwaysOn:Boolean,class:String,layout:Nv,total:Av,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:Pv,startGap:Uv,endGap:Vv,visible:Boolean}),Gv=(e,t)=>e<t?sv:cv,zv=e=>e===vv||e===gv||e===hv,Hv=e=>e===gv;let Yv=null;function qv(e=!1){if(null===Yv||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?Yv=bv:(e.scrollLeft=1,Yv=0===e.scrollLeft?_v:yv),document.body.removeChild(e),Yv}return Yv}function Wv({move:e,size:t,bar:n},r){const o={},a=`translate${n.axis}(${e}px)`;return o[n.size]=t,o.transform=a,o.msTransform=a,o.webkitTransform=a,"horizontal"===r?o.height="100%":o.width="100%",o}const Kv=Object(s["defineComponent"])({name:"ElVirtualScrollBar",props:Fv,emits:["scroll","start-move","stop-move"],setup(e,{emit:t}){const n=Object(s["computed"])(()=>e.startGap+e.endGap),r=Object(m["d"])("virtual-scrollbar"),o=Object(m["d"])("scrollbar"),a=Object(s["ref"])(),i=Object(s["ref"])();let c=null,l=null;const u=Object(s["reactive"])({isDragging:!1,traveled:0}),d=Object(s["computed"])(()=>V[e.layout]),p=Object(s["computed"])(()=>e.clientSize-Object(s["unref"])(n)),f=Object(s["computed"])(()=>({position:"absolute",width:(hv===e.layout?p.value:e.scrollbarSize)+"px",height:(hv===e.layout?e.scrollbarSize:p.value)+"px",[Ov[e.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),h=Object(s["computed"])(()=>{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,Mv),r))}),v=Object(s["computed"])(()=>{if(!Number.isFinite(h.value))return{display:"none"};const t=h.value+"px",n=Wv({bar:d.value,size:t,move:u.traveled},e.layout);return n}),g=Object(s["computed"])(()=>Math.floor(e.clientSize-h.value-Object(s["unref"])(n))),_=()=>{window.addEventListener("mousemove",M),window.addEventListener("mouseup",O);const e=Object(s["unref"])(i);e&&(l=document.onselectstart,document.onselectstart=()=>!1,e.addEventListener("touchmove",M),e.addEventListener("touchend",O))},y=()=>{window.removeEventListener("mousemove",M),window.removeEventListener("mouseup",O),document.onselectstart=l,l=null;const e=Object(s["unref"])(i);e&&(e.removeEventListener("touchmove",M),e.removeEventListener("touchend",O))},b=e=>{e.stopImmediatePropagation(),e.ctrlKey||[1,2].includes(e.button)||(u.isDragging=!0,u[d.value.axis]=e.currentTarget[d.value.offset]-(e[d.value.client]-e.currentTarget.getBoundingClientRect()[d.value.direction]),t("start-move"),_())},O=()=>{u.isDragging=!1,u[d.value.axis]=0,t("stop-move"),y()},M=n=>{const{isDragging:r}=u;if(!r)return;if(!i.value||!a.value)return;const o=u[d.value.axis];if(!o)return;Cv(c);const s=-1*(a.value.getBoundingClientRect()[d.value.direction]-n[d.value.client]),l=i.value[d.value.offset]-o,p=s-l;c=kv(()=>{u.traveled=Math.max(e.startGap,Math.min(p,g.value)),t("scroll",p,g.value)})},k=e=>{const n=Math.abs(e.target.getBoundingClientRect()[d.value.direction]-e[d.value.client]),r=i.value[d.value.offset]/2,o=n-r;u.traveled=Math.max(0,Math.min(o,g.value)),t("scroll",o,g.value)};return Object(s["watch"])(()=>e.scrollFrom,e=>{u.isDragging||(u.traveled=Math.ceil(e*g.value))}),Object(s["onBeforeUnmount"])(()=>{y()}),()=>Object(s["h"])("div",{role:"presentation",ref:a,class:[r.b(),e.class,(e.alwaysOn||u.isDragging)&&"always-on"],style:f.value,onMousedown:Object(s["withModifiers"])(k,["stop","prevent"]),onTouchstartPrevent:b},Object(s["h"])("div",{ref:i,class:o.e("thumb"),style:v.value,onMousedown:b},[]))}}),$v=({name:e,getOffset:t,getItemSize:n,getItemOffset:r,getEstimatedTotalSize:o,getStartIndexForOffset:a,getStopIndexForStartIndex:i,initCache:l,clearCache:d,validateProps:p})=>Object(s["defineComponent"])({name:null!=e?e:"ElVirtualList",props:Rv,emits:[av,iv],setup(e,{emit:f,expose:h}){p(e);const v=Object(s["getCurrentInstance"])(),g=Object(m["d"])("vl"),_=Object(s["ref"])(l(e,v)),y=rv(),b=Object(s["ref"])(),O=Object(s["ref"])(),M=Object(s["ref"])(),k=Object(s["ref"])({isScrolling:!1,scrollDir:"forward",scrollOffset:Object(u["d"])(e.initScrollOffset)?e.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:e.scrollbarAlwaysOn}),C=Object(s["computed"])(()=>{const{total:t,cache:n}=e,{isScrolling:r,scrollDir:o,scrollOffset:c}=Object(s["unref"])(k);if(0===t)return[0,0,0,0];const l=a(e,c,Object(s["unref"])(_)),u=i(e,l,c,Object(s["unref"])(_)),d=r&&o!==cv?1:Math.max(1,n),p=r&&o!==sv?1:Math.max(1,n);return[Math.max(0,l-d),Math.max(0,Math.min(t-1,u+p)),l,u]}),w=Object(s["computed"])(()=>o(e,Object(s["unref"])(_))),I=Object(s["computed"])(()=>zv(e.layout)),S=Object(s["computed"])(()=>[{position:"relative",["overflow-"+(I.value?"x":"y")]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:e.direction,height:Object(u["d"])(e.height)?e.height+"px":e.height,width:Object(u["d"])(e.width)?e.width+"px":e.width},e.style]),T=Object(s["computed"])(()=>{const e=Object(s["unref"])(w),t=Object(s["unref"])(I);return{height:t?"100%":e+"px",pointerEvents:Object(s["unref"])(k).isScrolling?"none":void 0,width:t?e+"px":"100%"}}),E=Object(s["computed"])(()=>I.value?e.width:e.height),{onWheel:j}=Sv({atStartEdge:Object(s["computed"])(()=>k.value.scrollOffset<=0),atEndEdge:Object(s["computed"])(()=>k.value.scrollOffset>=w.value),layout:Object(s["computed"])(()=>e.layout)},e=>{var t,n;null==(n=(t=M.value).onMouseUp)||n.call(t),R(Math.min(k.value.scrollOffset+e,w.value-E.value))}),D=()=>{const{total:t}=e;if(t>0){const[e,t,n,r]=Object(s["unref"])(C);f(av,e,t,n,r)}const{scrollDir:n,scrollOffset:r,updateRequested:o}=Object(s["unref"])(k);f(iv,n,r,o)},L=e=>{const{clientHeight:t,scrollHeight:n,scrollTop:r}=e.currentTarget,o=Object(s["unref"])(k);if(o.scrollOffset===r)return;const a=Math.max(0,Math.min(r,n-t));k.value={...o,isScrolling:!0,scrollDir:Gv(o.scrollOffset,a),scrollOffset:a,updateRequested:!1},Object(s["nextTick"])(V)},A=t=>{const{clientWidth:n,scrollLeft:r,scrollWidth:o}=t.currentTarget,a=Object(s["unref"])(k);if(a.scrollOffset===r)return;const{direction:i}=e;let c=r;if(i===gv)switch(qv()){case _v:c=-r;break;case bv:c=o-n-r;break}c=Math.max(0,Math.min(c,o-n)),k.value={...a,isScrolling:!0,scrollDir:Gv(a.scrollOffset,c),scrollOffset:c,updateRequested:!1},Object(s["nextTick"])(V)},N=e=>{Object(s["unref"])(I)?A(e):L(e),D()},x=(e,t)=>{const n=(w.value-E.value)/t*e;R(Math.min(w.value-E.value,n))},R=e=>{e=Math.max(e,0),e!==Object(s["unref"])(k).scrollOffset&&(k.value={...Object(s["unref"])(k),scrollOffset:e,scrollDir:Gv(Object(s["unref"])(k).scrollOffset,e),updateRequested:!0},Object(s["nextTick"])(V))},P=(n,r=lv)=>{const{scrollOffset:o}=Object(s["unref"])(k);n=Math.max(0,Math.min(n,e.total-1)),R(t(e,n,r,o,Object(s["unref"])(_)))},U=t=>{const{direction:o,itemSize:a,layout:i}=e,c=y.value(d&&a,d&&i,d&&o);let l;if(Object(Q["hasOwn"])(c,String(t)))l=c[t];else{const a=r(e,t,Object(s["unref"])(_)),i=n(e,t,Object(s["unref"])(_)),u=Object(s["unref"])(I),d=o===gv,p=u?a:0;c[t]=l={position:"absolute",left:d?void 0:p+"px",right:d?p+"px":void 0,top:u?0:a+"px",height:u?"100%":i+"px",width:u?i+"px":"100%"}}return l},V=()=>{k.value.isScrolling=!1,Object(s["nextTick"])(()=>{y.value(-1,null,null)})},B=()=>{const e=b.value;e&&(e.scrollTop=0)};Object(s["onMounted"])(()=>{if(!c["isClient"])return;const{initScrollOffset:t}=e,n=Object(s["unref"])(b);Object(u["d"])(t)&&n&&(Object(s["unref"])(I)?n.scrollLeft=t:n.scrollTop=t),D()}),Object(s["onUpdated"])(()=>{const{direction:t,layout:n}=e,{scrollOffset:r,updateRequested:o}=Object(s["unref"])(k),a=Object(s["unref"])(b);if(o&&a)if(n===hv)if(t===gv)switch(qv()){case _v:a.scrollLeft=-r;break;case yv:a.scrollLeft=r;break;default:{const{clientWidth:e,scrollWidth:t}=a;a.scrollLeft=t-e-r;break}}else a.scrollLeft=r;else a.scrollTop=r});const F={ns:g,clientSize:E,estimatedTotalSize:w,windowStyle:S,windowRef:b,innerRef:O,innerStyle:T,itemsToRender:C,scrollbarRef:M,states:k,getItemStyle:U,onScroll:N,onScrollbarScroll:x,onWheel:j,scrollTo:R,scrollToItem:P,resetScrollTop:B};return h({windowRef:b,innerRef:O,getItemStyleCache:y,scrollTo:R,scrollToItem:P,resetScrollTop:B,states:k}),F},render(e){var t;const{$slots:n,className:r,clientSize:o,containerElement:a,data:i,getItemStyle:c,innerElement:l,itemsToRender:u,innerStyle:d,layout:p,total:f,onScroll:h,onScrollbarScroll:m,onWheel:v,states:g,useIsScrolling:_,windowStyle:y,ns:b}=e,[O,M]=u,k=Object(s["resolveDynamicComponent"])(a),C=Object(s["resolveDynamicComponent"])(l),w=[];if(f>0)for(let s=O;s<=M;s++)w.push(null==(t=n.default)?void 0:t.call(n,{data:i,key:s,index:s,isScrolling:_?g.isScrolling:void 0,style:c(s)}));const I=[Object(s["h"])(C,{style:d,ref:"innerRef"},Object(Q["isString"])(C)?w:{default:()=>w})],S=Object(s["h"])(Kv,{ref:"scrollbarRef",clientSize:o,layout:p,onScroll:m,ratio:100*o/this.estimatedTotalSize,scrollFrom:g.scrollOffset/(this.estimatedTotalSize-o),total:f}),T=Object(s["h"])(k,{class:[b.e("window"),r],style:y,onScroll:h,onWheel:v,ref:"windowRef",key:0},Object(Q["isString"])(k)?[I]:{default:()=>[I]});return Object(s["h"])("div",{key:0,class:[b.e("wrapper"),g.scrollbarAlwaysOn?"always-on":""]},[T,S])}}),Jv=$v({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},a,i,s)=>{const c=zv(r)?o:e;const l=Math.max(0,t*n-c),u=Math.min(l,a*n),d=Math.max(0,(a+1)*n-c);switch(i===uv&&(i=s>=d-c&&s<=u+c?lv:pv),i){case dv:return u;case fv:return d;case pv:{const e=Math.round(d+(u-d)/2);return e<Math.ceil(c/2)?0:e>l+Math.floor(c/2)?l:e}case lv: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},a,i)=>{const s=a*n,c=zv(r)?o:e,l=Math.ceil((c+i-s)/n);return Math.max(0,Math.min(t-1,a+l-1))},initCache(){},clearCache:!0,validateProps(){}}),Qv=(e,t,n)=>{const{itemSize:r}=e,{items:o,lastVisitedIndex:a}=n;if(t>a){let e=0;if(a>=0){const t=o[a];e=t.offset+t.size}for(let n=a+1;n<=t;n++){const t=r(n);o[n]={offset:e,size:t},e+=t}n.lastVisitedIndex=t}return o[t]},Xv=(e,t,n)=>{const{items:r,lastVisitedIndex:o}=t,a=o>0?r[o].offset:0;return a>=n?Zv(e,t,0,o,n):eg(e,t,Math.max(0,o),n)},Zv=(e,t,n,r,o)=>{while(n<=r){const a=n+Math.floor((r-n)/2),i=Qv(e,a,t).offset;if(i===o)return a;i<o?n=a+1:i>o&&(r=a-1)}return Math.max(0,n-1)},eg=(e,t,n,r)=>{const{total:o}=e;let a=1;while(n<o&&Qv(e,n,t).offset<r)n+=a,a*=2;return Zv(e,t,Math.floor(n/2),Math.min(n,o-1),r)},tg=({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 a=e-r-1,i=a*n;return o+i},ng=$v({name:"ElDynamicSizeList",getItemOffset:(e,t,n)=>Qv(e,t,n).offset,getItemSize:(e,t,{items:n})=>n[t].size,getEstimatedTotalSize:tg,getOffset:(e,t,n,r,o)=>{const{height:a,layout:i,width:s}=e,c=zv(i)?s:a,l=Qv(e,t,o),u=tg(e,o),d=Math.max(0,Math.min(u-c,l.offset)),p=Math.max(0,l.offset-c+l.size);switch(n===uv&&(n=r>=p-c&&r<=d+c?lv:pv),n){case dv:return d;case fv:return p;case pv:return Math.round(p+(d-p)/2);case lv:default:return r>=p&&r<=d?r:r<p?p:d}},getStartIndexForOffset:(e,t,n)=>Xv(e,n,t),getStopIndexForStartIndex:(e,t,n,r)=>{const{height:o,total:a,layout:i,width:s}=e,c=zv(i)?s:o,l=Qv(e,t,r),u=n+c;let d=l.offset+l.size,p=t;while(p<a-1&&d<u)p++,d+=Qv(e,p,r).size;return p},initCache({estimatedItemSize:e=ov},t){const n={items:{},estimatedItemSize:e,lastVisitedIndex:-1,clearCacheAfterIndex:(e,r=!0)=>{var o,a;n.lastVisitedIndex=Math.min(n.lastVisitedIndex,e-1),null==(o=t.exposed)||o.getItemStyleCache(-1),r&&(null==(a=t.proxy)||a.$forceUpdate())}};return n},clearCache:!1,validateProps:({itemSize:e})=>{0}});var rg=Object(s["defineComponent"])({name:"ElSelectDropdown",props:{data:{type:Array,required:!0},hoveringIndex:Number,width:Number},setup(e,{slots:t,expose:n}){const r=Object(s["inject"])(ev),o=Object(m["d"])("select"),a=Object(s["ref"])([]),i=Object(s["ref"])(),c=Object(s["computed"])(()=>e.data.length);Object(s["watch"])(()=>c.value,()=>{var e,t;null==(t=(e=r.popper.value).updatePopper)||t.call(e)});const l=Object(s["computed"])(()=>Object(u["g"])(r.props.estimatedOptionHeight)),d=Object(s["computed"])(()=>l.value?{itemSize:r.props.itemHeight}:{estimatedSize:r.props.estimatedOptionHeight,itemSize:e=>a.value[e]}),p=(e=[],t)=>{const{props:{valueKey:n}}=r;return Object(Q["isObject"])(t)?e&&e.some(e=>Object(x["get"])(e,n)===Object(x["get"])(t,n)):e.includes(t)},f=(e,t)=>{if(Object(Q["isObject"])(t)){const{valueKey:n}=r.props;return Object(x["get"])(e,n)===Object(x["get"])(t,n)}return e===t},h=(e,t)=>{const{valueKey:n}=r.props;return r.props.multiple?p(e,Object(x["get"])(t,n)):f(e,Object(x["get"])(t,n))},v=(e,t)=>{const{disabled:n,multiple:o,multipleLimit:a}=r.props;return n||!t&&!!o&&a>0&&e.length>=a},g=t=>e.hoveringIndex===t,_=e=>{const t=i.value;t&&t.scrollToItem(e)},y=()=>{const e=i.value;e&&e.resetScrollTop()};n({listRef:i,isSized:l,isItemDisabled:v,isItemHovering:g,isItemSelected:h,scrollToItem:_,resetScrollTop:y});const b=e=>{const{index:n,data:o,style:a}=e,i=Object(s["unref"])(l),{itemSize:c,estimatedSize:u}=Object(s["unref"])(d),{modelValue:p}=r.props,{onSelect:f,onHover:m}=r,_=o[n];if("Group"===_.type)return Object(s["createVNode"])(qm,{item:_,style:a,height:i?c:u},null);const y=h(p,_),b=v(p,y),O=g(n);return Object(s["createVNode"])(Zm,Object(s["mergeProps"])(e,{selected:y,disabled:_.disabled||b,created:!!_.created,hovering:O,item:_,onSelect:f,onHover:m}),{default:e=>{var n;return(null==(n=t.default)?void 0:n.call(t,e))||Object(s["createVNode"])("span",null,[_.label])}})},{onKeyboardNavigate:O,onKeyboardSelect:M}=r,k=()=>{O("forward")},C=()=>{O("backward")},w=()=>{r.expanded=!1},I=e=>{const{code:t}=e,{tab:n,esc:r,down:o,up:a,enter:i}=Me["a"];switch(t!==n&&(e.preventDefault(),e.stopPropagation()),t){case n:case r:w();break;case o:k();break;case a:C();break;case i:M();break}};return()=>{var n;const{data:a,width:c}=e,{height:u,multiple:p,scrollbarAlwaysOn:f}=r.props;if(0===a.length)return Object(s["createVNode"])("div",{class:o.b("dropdown"),style:{width:c+"px"}},[null==(n=t.empty)?void 0:n.call(t)]);const h=Object(s["unref"])(l)?Jv:ng;return Object(s["createVNode"])("div",{class:[o.b("dropdown"),o.is("multiple",p)]},[Object(s["createVNode"])(h,Object(s["mergeProps"])({ref:i},Object(s["unref"])(d),{className:o.be("dropdown","list"),scrollbarAlwaysOn:f,data:a,height:u,width:c,total:a.length,onKeydown:I}),{default:e=>Object(s["createVNode"])(b,e,null)})])}}});function og(e,t){const n=Object(s["ref"])(0),r=Object(s["ref"])(null),o=Object(s["computed"])(()=>e.allowCreate&&e.filterable);function a(n){const r=e=>e.value===n;return e.options&&e.options.some(r)||t.createdOptions.some(r)}function i(t){o.value&&(e.multiple&&t.created?n.value++:r.value=t)}function c(i){if(o.value)if(i&&i.length>0&&!a(i)){const e={value:i,label:i,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 l(r){if(!o.value||!r||!r.created||r.created&&e.reserveKeyword&&t.inputValue===r.label)return;const a=t.createdOptions.findIndex(e=>e.value===r.value);~a&&(t.createdOptions.splice(a,1),n.value--)}function u(){o.value&&(t.createdOptions.length=0,n.value=0)}return{createNewOption:c,removeNewOption:l,selectNewOption:i,clearAllNewOption:u}}const ag=e=>{const t=[];return e.forEach(e=>{Object(Q["isArray"])(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 ig(e){const t=Object(s["ref"])(!1),n=()=>{t.value=!0},r=e=>{const n=e.target.value,r=n[n.length-1]||"";t.value=!Object(va["a"])(r)},o=n=>{t.value&&(t.value=!1,Object(Q["isFunction"])(e)&&e(n))};return{handleCompositionStart:n,handleCompositionUpdate:r,handleCompositionEnd:o}}const sg="",cg=11,lg={larget:51,default:42,small:33},ug=(e,t)=>{const{t:n}=Object(Vn["b"])(),r=Object(m["d"])("select-v2"),o=Object(m["d"])("input"),{form:a,formItem:i}=Object(Pr["a"])(),l=Object(s["reactive"])({inputValue:sg,displayInputValue:sg,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:void 0,query:"",selectedLabel:"",softFocus:!1,tagInMultiLine:!1}),u=Object(s["ref"])(-1),p=Object(s["ref"])(-1),f=Object(s["ref"])(null),h=Object(s["ref"])(null),v=Object(s["ref"])(null),_=Object(s["ref"])(null),y=Object(s["ref"])(null),b=Object(s["ref"])(null),O=Object(s["ref"])(null),M=Object(s["ref"])(!1),k=Object(s["computed"])(()=>e.disabled||(null==a?void 0:a.disabled)),C=Object(s["computed"])(()=>{const t=34*N.value.length;return t>e.height?e.height:t}),w=Object(s["computed"])(()=>!Object(x["isNil"])(e.modelValue)),I=Object(s["computed"])(()=>{const t=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:w.value,n=e.clearable&&!k.value&&l.comboBoxHovering&&t;return n}),T=Object(s["computed"])(()=>e.remote&&e.filterable?"":R["ArrowUp"]),E=Object(s["computed"])(()=>T.value&&r.is("reverse",M.value)),j=Object(s["computed"])(()=>(null==i?void 0:i.validateState)||""),D=Object(s["computed"])(()=>S["d"][j.value]),L=Object(s["computed"])(()=>e.remote?300:0),A=Object(s["computed"])(()=>{const t=N.value;return e.loading?e.loadingText||n("el.select.loading"):(!e.remote||""!==l.inputValue||0!==t.length)&&(e.filterable&&l.inputValue&&t.length>0?e.noMatchText||n("el.select.noMatch"):0===t.length?e.noDataText||n("el.select.noData"):null)}),N=Object(s["computed"])(()=>{const t=e=>{const t=l.inputValue,n=new RegExp(Object(Go["b"])(t),"i"),r=!t||n.test(e.label||"");return r};return e.loading?[]:ag(e.options.concat(l.createdOptions).map(n=>{if(Object(Q["isArray"])(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))}),P=Object(s["computed"])(()=>{const e=new Map;return N.value.forEach((t,n)=>{e.set(fe(t),{option:t,index:n})}),e}),U=Object(s["computed"])(()=>N.value.every(e=>e.disabled)),V=Object(xt["b"])(),B=Object(s["computed"])(()=>"small"===V.value?"small":"default"),F=Object(s["computed"])(()=>{const e=b.value,t=B.value||"default",n=e?Number.parseInt(getComputedStyle(e).paddingLeft):0,r=e?Number.parseInt(getComputedStyle(e).paddingRight):0;return l.selectWidth-r-n-lg[t]}),G=()=>{var e;p.value=(null==(e=y.value)?void 0:e.offsetWidth)||200},z=Object(s["computed"])(()=>({width:(0===l.calculatedWidth?cg:Math.ceil(l.calculatedWidth)+cg)+"px"})),H=Object(s["computed"])(()=>Object(Q["isArray"])(e.modelValue)?0===e.modelValue.length&&!l.displayInputValue:!e.filterable||0===l.displayInputValue.length),Y=Object(s["computed"])(()=>{const t=e.placeholder||n("el.select.placeholder");return e.multiple||Object(x["isNil"])(e.modelValue)?t:l.selectedLabel}),q=Object(s["computed"])(()=>{var e,t;return null==(t=null==(e=_.value)?void 0:e.popperRef)?void 0:t.contentRef}),W=Object(s["computed"])(()=>{if(e.multiple){const t=e.modelValue.length;if(e.modelValue.length>0&&P.value.has(e.modelValue[t-1])){const{index:n}=P.value.get(e.modelValue[t-1]);return n}}else if(e.modelValue&&P.value.has(e.modelValue)){const{index:t}=P.value.get(e.modelValue);return t}return-1}),K=Object(s["computed"])({get(){return M.value&&!1!==A.value},set(e){M.value=e}}),$=Object(s["computed"])(()=>l.cachedOptions.slice(0,e.maxCollapseTags)),J=Object(s["computed"])(()=>l.cachedOptions.slice(e.maxCollapseTags)),{createNewOption:X,removeNewOption:Z,selectNewOption:ee,clearAllNewOption:te}=og(e,l),{handleCompositionStart:ne,handleCompositionUpdate:re,handleCompositionEnd:oe}=ig(e=>De(e)),ae=()=>{var e,t,n;null==(t=null==(e=h.value)?void 0:e.focus)||t.call(e),null==(n=_.value)||n.updatePopper()},ie=()=>{if(!e.automaticDropdown)return k.value?void 0:(l.isComposing&&(l.softFocus=!0),Object(s["nextTick"])(()=>{var e,t;M.value=!M.value,null==(t=null==(e=h.value)?void 0:e.focus)||t.call(e)}))},se=()=>(e.filterable&&l.inputValue!==l.selectedLabel&&(l.query=l.selectedLabel),le(l.inputValue),Object(s["nextTick"])(()=>{X(l.inputValue)})),ce=Object(x["debounce"])(se,L.value),le=t=>{l.previousQuery!==t&&(l.previousQuery=t,e.filterable&&Object(Q["isFunction"])(e.filterMethod)?e.filterMethod(t):e.filterable&&e.remote&&Object(Q["isFunction"])(e.remoteMethod)&&e.remoteMethod(t))},ue=n=>{Object(x["isEqual"])(e.modelValue,n)||t(d["a"],n)},de=e=>{t(d["c"],e),ue(e),l.previousValue=null==e?void 0:e.toString()},pe=(t=[],n)=>{if(!Object(Q["isObject"])(n))return t.indexOf(n);const r=e.valueKey;let o=-1;return t.some((e,t)=>Object(x["get"])(e,r)===Object(x["get"])(n,r)&&(o=t,!0)),o},fe=t=>Object(Q["isObject"])(t)?Object(x["get"])(t,e.valueKey):t,he=e=>Object(Q["isObject"])(e)?e.label:e,me=()=>Object(s["nextTick"])(()=>{var e,t;if(!h.value)return;const n=b.value;y.value.height=n.offsetHeight,M.value&&!1!==A.value&&(null==(t=null==(e=_.value)?void 0:e.updatePopper)||t.call(e))}),ve=()=>{var t,n;if(ge(),G(),null==(n=null==(t=_.value)?void 0:t.updatePopper)||n.call(t),e.multiple)return me()},ge=()=>{const e=b.value;e&&(l.selectWidth=e.getBoundingClientRect().width)},_e=(t,n,r=!0)=>{var o,a;if(e.multiple){let r=e.modelValue.slice();const i=pe(r,fe(t));i>-1?(r=[...r.slice(0,i),...r.slice(i+1)],l.cachedOptions.splice(i,1),Z(t)):(e.multipleLimit<=0||r.length<e.multipleLimit)&&(r=[...r,fe(t)],l.cachedOptions.push(t),ee(t),Te(n)),de(r),t.created&&(l.query="",le(""),l.inputLength=20),e.filterable&&!e.reserveKeyword&&(null==(a=(o=h.value).focus)||a.call(o),we("")),e.filterable&&(l.calculatedWidth=O.value.getBoundingClientRect().width),me(),je()}else u.value=n,l.selectedLabel=t.label,de(fe(t)),M.value=!1,l.isComposing=!1,l.isSilentBlur=r,ee(t),t.created||te(),Te(n)},ye=(n,r)=>{const{valueKey:o}=e,a=e.modelValue.indexOf(Object(x["get"])(r,o));if(a>-1&&!k.value){const n=[...e.modelValue.slice(0,a),...e.modelValue.slice(a+1)];return l.cachedOptions.splice(a,1),de(n),t("remove-tag",Object(x["get"])(r,o)),l.softFocus=!0,Z(r),Object(s["nextTick"])(ae)}n.stopPropagation()},be=e=>{const n=l.isComposing;l.isComposing=!0,l.softFocus?l.softFocus=!1:n||t("focus",e)},Oe=e=>(l.softFocus=!1,Object(s["nextTick"])(()=>{var n,r;null==(r=null==(n=h.value)?void 0:n.blur)||r.call(n),O.value&&(l.calculatedWidth=O.value.getBoundingClientRect().width),l.isSilentBlur?l.isSilentBlur=!1:l.isComposing&&t("blur",e),l.isComposing=!1})),Me=()=>{l.displayInputValue.length>0?we(""):M.value=!1},ke=t=>{if(0===l.displayInputValue.length){t.preventDefault();const n=e.modelValue.slice();n.pop(),Z(l.cachedOptions.pop()),de(n)}},Ce=()=>{let n;return n=Object(Q["isArray"])(e.modelValue)?[]:void 0,l.softFocus=!0,e.multiple?l.cachedOptions=[]:l.selectedLabel="",M.value=!1,de(n),t("clear"),te(),Object(s["nextTick"])(ae)},we=e=>{l.displayInputValue=e,l.inputValue=e},Ie=(e,t)=>{const n=N.value;if(!["forward","backward"].includes(e)||k.value||n.length<=0||U.value)return;if(!M.value)return ie();void 0===t&&(t=l.hoveringIndex);let r=-1;"forward"===e?(r=t+1,r>=n.length&&(r=0)):"backward"===e&&(r=t-1,(r<0||r>=n.length)&&(r=n.length-1));const o=n[r];if(o.disabled||"Group"===o.type)return Ie(e,r);Te(r),Ne(r)},Se=()=>{if(!M.value)return ie();~l.hoveringIndex&&N.value[l.hoveringIndex]&&_e(N.value[l.hoveringIndex],l.hoveringIndex,!1)},Te=e=>{l.hoveringIndex=e},Ee=()=>{l.hoveringIndex=-1},je=()=>{var e;const t=h.value;t&&(null==(e=t.focus)||e.call(t))},De=t=>{const n=t.target.value;if(we(n),l.displayInputValue.length>0&&!M.value&&(M.value=!0),l.calculatedWidth=O.value.getBoundingClientRect().width,e.multiple&&me(),!e.remote)return se();ce()},Le=()=>(M.value=!1,Oe()),Ae=()=>(l.inputValue=l.displayInputValue,Object(s["nextTick"])(()=>{~W.value&&(Te(W.value),Ne(l.hoveringIndex))})),Ne=e=>{v.value.scrollToItem(e)},xe=()=>{if(Ee(),e.multiple)if(e.modelValue.length>0){let t=!1;l.cachedOptions.length=0,l.previousValue=e.modelValue.toString();for(const n of e.modelValue)if(P.value.has(n)){const{index:e,option:r}=P.value.get(n);l.cachedOptions.push(r),t||Te(e),t=!0}}else l.cachedOptions=[],l.previousValue=void 0;else if(w.value){l.previousValue=e.modelValue;const t=N.value,n=t.findIndex(t=>fe(t)===fe(e.modelValue));~n?(l.selectedLabel=t[n].label,Te(n)):l.selectedLabel=""+e.modelValue}else l.selectedLabel="",l.previousValue=void 0;te(),G()};return Object(s["watch"])(M,e=>{var n,r;t("visible-change",e),e?null==(r=(n=_.value).update)||r.call(n):(l.displayInputValue="",l.previousQuery=null,X(""))}),Object(s["watch"])(()=>e.modelValue,(t,n)=>{var r;t&&t.toString()===l.previousValue||xe(),!Object(x["isEqual"])(t,n)&&e.validateEvent&&(null==(r=null==i?void 0:i.validate)||r.call(i,"change").catch(e=>Object(g["a"])(e)))},{deep:!0}),Object(s["watch"])(()=>e.options,()=>{const e=h.value;(!e||e&&document.activeElement!==e)&&xe()},{deep:!0}),Object(s["watch"])(N,()=>Object(s["nextTick"])(v.value.resetScrollTop)),Object(s["watch"])(()=>K.value,e=>{e||Ee()}),Object(s["onMounted"])(()=>{xe()}),Object(c["useResizeObserver"])(y,ve),{collapseTagSize:B,currentPlaceholder:Y,expanded:M,emptyText:A,popupHeight:C,debounce:L,filteredOptions:N,iconComponent:T,iconReverse:E,inputWrapperStyle:z,popperSize:p,dropdownMenuVisible:K,hasModelValue:w,shouldShowPlaceholder:H,selectDisabled:k,selectSize:V,showClearBtn:I,states:l,tagMaxWidth:F,nsSelectV2:r,nsInput:o,calculatorRef:O,controlRef:f,inputRef:h,menuRef:v,popper:_,selectRef:y,selectionRef:b,popperRef:q,validateState:j,validateIcon:D,showTagList:$,collapseTagList:J,debouncedOnInputChange:ce,deleteTag:ye,getLabel:he,getValueKey:fe,handleBlur:Oe,handleClear:Ce,handleClickOutside:Le,handleDel:ke,handleEsc:Me,handleFocus:be,handleMenuEnter:Ae,handleResize:ve,toggleMenu:ie,scrollTo:Ne,onInput:De,onKeyboardNavigate:Ie,onKeyboardSelect:Se,onSelect:_e,onHover:Te,onUpdateInputValue:we,handleCompositionStart:ne,handleCompositionEnd:oe,handleCompositionUpdate:re}},dg=Object(s["defineComponent"])({name:"ElSelectV2",components:{ElSelectMenu:rg,ElTag:fa,ElTooltip:Dt,ElIcon:w["a"]},directives:{ClickOutside:ba,ModelText:s["vModelText"]},props:Km,emits:[d["c"],d["a"],"remove-tag","clear","visible-change","focus","blur"],setup(e,{emit:t}){const n=Object(s["computed"])(()=>{const{modelValue:t,multiple:n}=e,r=n?[]:void 0;return Object(Q["isArray"])(t)?n?t:r:n?r:t}),r=ug(Object(s["reactive"])({...Object(s["toRefs"])(e),modelValue:n}),t);return Object(s["provide"])(ev,{props:Object(s["reactive"])({...Object(s["toRefs"])(e),height:r.popupHeight,modelValue:n}),popper:r.popper,onSelect:r.onSelect,onHover:r.onHover,onKeyboardNavigate:r.onKeyboardNavigate,onKeyboardSelect:r.onKeyboardSelect}),{...r,modelValue:n}}}),pg={key:0},fg=["id","autocomplete","aria-expanded","aria-labelledby","disabled","readonly","name","unselectable"],hg=["textContent"],mg=["id","aria-labelledby","aria-expanded","autocomplete","disabled","name","readonly","unselectable"],vg=["textContent"];function gg(e,t,n,r,o,a){const i=Object(s["resolveComponent"])("el-tag"),c=Object(s["resolveComponent"])("el-tooltip"),l=Object(s["resolveComponent"])("el-icon"),u=Object(s["resolveComponent"])("el-select-menu"),d=Object(s["resolveDirective"])("model-text"),p=Object(s["resolveDirective"])("click-outside");return Object(s["withDirectives"])((Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{ref:"selectRef",class:Object(s["normalizeClass"])([e.nsSelectV2.b(),e.nsSelectV2.m(e.selectSize)]),onClick:t[24]||(t[24]=Object(s["withModifiers"])((...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)},[Object(s["createVNode"])(c,{ref:"popper",visible:e.dropdownMenuVisible,teleported:e.teleported,"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:e.placement,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:Object(s["withCtx"])(()=>[Object(s["createElementVNode"])("div",{ref:"selectionRef",class:Object(s["normalizeClass"])([e.nsSelectV2.e("wrapper"),e.nsSelectV2.is("focused",e.states.isComposing||e.expanded),e.nsSelectV2.is("hovering",e.states.comboBoxHovering),e.nsSelectV2.is("filterable",e.filterable),e.nsSelectV2.is("disabled",e.selectDisabled)])},[e.$slots.prefix?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",pg,[Object(s["renderSlot"])(e.$slots,"prefix")])):Object(s["createCommentVNode"])("v-if",!0),e.multiple?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:1,class:Object(s["normalizeClass"])(e.nsSelectV2.e("selection"))},[e.collapseTags&&e.modelValue.length>0?(Object(s["openBlock"])(),Object(s["createElementBlock"])(s["Fragment"],{key:0},[(Object(s["openBlock"])(!0),Object(s["createElementBlock"])(s["Fragment"],null,Object(s["renderList"])(e.showTagList,t=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:e.getValueKey(t),class:Object(s["normalizeClass"])(e.nsSelectV2.e("selected-item"))},[Object(s["createVNode"])(i,{closable:!e.selectDisabled&&!(null==t?void 0:t.disable),size:e.collapseTagSize,type:"info","disable-transitions":"",onClose:n=>e.deleteTag(n,t)},{default:Object(s["withCtx"])(()=>[Object(s["createElementVNode"])("span",{class:Object(s["normalizeClass"])(e.nsSelectV2.e("tags-text")),style:Object(s["normalizeStyle"])({maxWidth:e.tagMaxWidth+"px"})},Object(s["toDisplayString"])(null==t?void 0:t.label),7)]),_:2},1032,["closable","size","onClose"])],2))),128)),Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(e.nsSelectV2.e("selected-item"))},[e.modelValue.length>e.maxCollapseTags?(Object(s["openBlock"])(),Object(s["createBlock"])(i,{key:0,closable:!1,size:e.collapseTagSize,type:"info","disable-transitions":""},{default:Object(s["withCtx"])(()=>[e.collapseTagsTooltip?(Object(s["openBlock"])(),Object(s["createBlock"])(c,{key:0,disabled:e.dropdownMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:!1},{default:Object(s["withCtx"])(()=>[Object(s["createElementVNode"])("span",{class:Object(s["normalizeClass"])(e.nsSelectV2.e("tags-text")),style:Object(s["normalizeStyle"])({maxWidth:e.tagMaxWidth+"px"})},"+ "+Object(s["toDisplayString"])(e.modelValue.length-e.maxCollapseTags),7)]),content:Object(s["withCtx"])(()=>[Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(e.nsSelectV2.e("selection"))},[(Object(s["openBlock"])(!0),Object(s["createElementBlock"])(s["Fragment"],null,Object(s["renderList"])(e.collapseTagList,t=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:e.getValueKey(t),class:Object(s["normalizeClass"])(e.nsSelectV2.e("selected-item"))},[Object(s["createVNode"])(i,{closable:!e.selectDisabled&&!t.disabled,size:e.collapseTagSize,class:"in-tooltip",type:"info","disable-transitions":"",onClose:n=>e.deleteTag(n,t)},{default:Object(s["withCtx"])(()=>[Object(s["createElementVNode"])("span",{class:Object(s["normalizeClass"])(e.nsSelectV2.e("tags-text")),style:Object(s["normalizeStyle"])({maxWidth:e.tagMaxWidth+"px"})},Object(s["toDisplayString"])(e.getLabel(t)),7)]),_:2},1032,["closable","size","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect"])):(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",{key:1,class:Object(s["normalizeClass"])(e.nsSelectV2.e("tags-text")),style:Object(s["normalizeStyle"])({maxWidth:e.tagMaxWidth+"px"})},"+ "+Object(s["toDisplayString"])(e.modelValue.length-e.maxCollapseTags),7))]),_:1},8,["size"])):Object(s["createCommentVNode"])("v-if",!0)],2)],64)):(Object(s["openBlock"])(!0),Object(s["createElementBlock"])(s["Fragment"],{key:1},Object(s["renderList"])(e.states.cachedOptions,t=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:e.getValueKey(t),class:Object(s["normalizeClass"])(e.nsSelectV2.e("selected-item"))},[Object(s["createVNode"])(i,{closable:!e.selectDisabled&&!t.disabled,size:e.collapseTagSize,type:"info","disable-transitions":"",onClose:n=>e.deleteTag(n,t)},{default:Object(s["withCtx"])(()=>[Object(s["createElementVNode"])("span",{class:Object(s["normalizeClass"])(e.nsSelectV2.e("tags-text")),style:Object(s["normalizeStyle"])({maxWidth:e.tagMaxWidth+"px"})},Object(s["toDisplayString"])(e.getLabel(t)),7)]),_:2},1032,["closable","size","onClose"])],2))),128)),Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-wrapper")]),style:Object(s["normalizeStyle"])(e.inputWrapperStyle)},[Object(s["withDirectives"])(Object(s["createElementVNode"])("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:Object(s["normalizeClass"])([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[0]||(t[0]=(...t)=>e.onUpdateInputValue&&e.onUpdateInputValue(...t)),onFocus:t[1]||(t[1]=(...t)=>e.handleFocus&&e.handleFocus(...t)),onBlur:t[2]||(t[2]=(...t)=>e.handleBlur&&e.handleBlur(...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]=Object(s["withKeys"])(Object(s["withModifiers"])(t=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),t[8]||(t[8]=Object(s["withKeys"])(Object(s["withModifiers"])(t=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),t[9]||(t[9]=Object(s["withKeys"])(Object(s["withModifiers"])((...t)=>e.onKeyboardSelect&&e.onKeyboardSelect(...t),["stop","prevent"]),["enter"])),t[10]||(t[10]=Object(s["withKeys"])(Object(s["withModifiers"])((...t)=>e.handleEsc&&e.handleEsc(...t),["stop","prevent"]),["esc"])),t[11]||(t[11]=Object(s["withKeys"])(Object(s["withModifiers"])((...t)=>e.handleDel&&e.handleDel(...t),["stop"]),["delete"]))]},null,42,fg),[[d,e.states.displayInputValue]]),e.filterable?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:Object(s["normalizeClass"])(e.nsSelectV2.e("input-calculator")),textContent:Object(s["toDisplayString"])(e.states.displayInputValue)},null,10,hg)):Object(s["createCommentVNode"])("v-if",!0)],6)],2)):(Object(s["openBlock"])(),Object(s["createElementBlock"])(s["Fragment"],{key:2},[Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-wrapper")])},[Object(s["withDirectives"])(Object(s["createElementVNode"])("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:Object(s["normalizeClass"])(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)),onBlur:t[16]||(t[16]=(...t)=>e.handleBlur&&e.handleBlur(...t)),onInput:t[17]||(t[17]=(...t)=>e.onInput&&e.onInput(...t)),onKeydown:[t[18]||(t[18]=Object(s["withKeys"])(Object(s["withModifiers"])(t=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),t[19]||(t[19]=Object(s["withKeys"])(Object(s["withModifiers"])(t=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),t[20]||(t[20]=Object(s["withKeys"])(Object(s["withModifiers"])((...t)=>e.onKeyboardSelect&&e.onKeyboardSelect(...t),["stop","prevent"]),["enter"])),t[21]||(t[21]=Object(s["withKeys"])(Object(s["withModifiers"])((...t)=>e.handleEsc&&e.handleEsc(...t),["stop","prevent"]),["esc"]))],"onUpdate:modelValue":t[22]||(t[22]=(...t)=>e.onUpdateInputValue&&e.onUpdateInputValue(...t))},null,42,mg),[[d,e.states.displayInputValue]])],2),e.filterable?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:Object(s["normalizeClass"])([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-calculator")]),textContent:Object(s["toDisplayString"])(e.states.displayInputValue)},null,10,vg)):Object(s["createCommentVNode"])("v-if",!0)],64)),e.shouldShowPlaceholder?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",{key:3,class:Object(s["normalizeClass"])([e.nsSelectV2.e("placeholder"),e.nsSelectV2.is("transparent",e.multiple?0===e.modelValue.length:!e.hasModelValue)])},Object(s["toDisplayString"])(e.currentPlaceholder),3)):Object(s["createCommentVNode"])("v-if",!0),Object(s["createElementVNode"])("span",{class:Object(s["normalizeClass"])(e.nsSelectV2.e("suffix"))},[e.iconComponent?Object(s["withDirectives"])((Object(s["openBlock"])(),Object(s["createBlock"])(l,{key:0,class:Object(s["normalizeClass"])([e.nsSelectV2.e("caret"),e.nsInput.e("icon"),e.iconReverse])},{default:Object(s["withCtx"])(()=>[(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["resolveDynamicComponent"])(e.iconComponent)))]),_:1},8,["class"])),[[s["vShow"],!e.showClearBtn]]):Object(s["createCommentVNode"])("v-if",!0),e.showClearBtn&&e.clearIcon?(Object(s["openBlock"])(),Object(s["createBlock"])(l,{key:1,class:Object(s["normalizeClass"])([e.nsSelectV2.e("caret"),e.nsInput.e("icon")]),onClick:Object(s["withModifiers"])(e.handleClear,["prevent","stop"])},{default:Object(s["withCtx"])(()=>[(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["resolveDynamicComponent"])(e.clearIcon)))]),_:1},8,["class","onClick"])):Object(s["createCommentVNode"])("v-if",!0),e.validateState&&e.validateIcon?(Object(s["openBlock"])(),Object(s["createBlock"])(l,{key:2,class:Object(s["normalizeClass"])([e.nsInput.e("icon"),e.nsInput.e("validateIcon")])},{default:Object(s["withCtx"])(()=>[(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["resolveDynamicComponent"])(e.validateIcon)))]),_:1},8,["class"])):Object(s["createCommentVNode"])("v-if",!0)],2)],2)]),content:Object(s["withCtx"])(()=>[Object(s["createVNode"])(u,{ref:"menuRef",data:e.filteredOptions,width:e.popperSize,"hovering-index":e.states.hoveringIndex,"scrollbar-always-on":e.scrollbarAlwaysOn},{default:Object(s["withCtx"])(t=>[Object(s["renderSlot"])(e.$slots,"default",Object(s["normalizeProps"])(Object(s["guardReactiveProps"])(t)))]),empty:Object(s["withCtx"])(()=>[Object(s["renderSlot"])(e.$slots,"empty",{},()=>[Object(s["createElementVNode"])("p",{class:Object(s["normalizeClass"])(e.nsSelectV2.e("empty"))},Object(s["toDisplayString"])(e.emptyText?e.emptyText:""),3)])]),_:3},8,["data","width","hovering-index","scrollbar-always-on"])]),_:3},8,["visible","teleported","popper-class","popper-options","effect","placement","transition","persistent","onBeforeShow"])],34)),[[p,e.handleClickOutside,e.popperRef]])}var _g=Object(h["a"])(dg,[["render",gg],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/select.vue"]]);_g.install=e=>{e.component(_g.name,_g)};const yg=_g,bg=yg,Og=Object(l["b"])({animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:Number}}),Mg=Object(l["b"])({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),kg=Object(s["defineComponent"])({name:"ElSkeletonItem"}),Cg=Object(s["defineComponent"])({...kg,props:Mg,setup(e){const t=Object(m["d"])("skeleton");return(e,n)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{class:Object(s["normalizeClass"])([Object(s["unref"])(t).e("item"),Object(s["unref"])(t).e(e.variant)])},["image"===e.variant?(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(R["PictureFilled"]),{key:0})):Object(s["createCommentVNode"])("v-if",!0)],2))}});var wg=Object(h["a"])(Cg,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton-item.vue"]]);const Ig=(e,t=0)=>{if(0===t)return e;const n=Object(s["ref"])(!1);let r=0;const o=()=>{r&&clearTimeout(r),r=window.setTimeout(()=>{n.value=e.value},t)};return Object(s["onMounted"])(o),Object(s["watch"])(()=>e.value,e=>{e?o():n.value=e}),n},Sg=Object(s["defineComponent"])({name:"ElSkeleton"}),Tg=Object(s["defineComponent"])({...Sg,props:Og,setup(e,{expose:t}){const n=e,r=Object(m["d"])("skeleton"),o=Ig(Object(s["toRef"])(n,"loading"),n.throttle);return t({uiLoading:o}),(e,t)=>Object(s["unref"])(o)?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",Object(s["mergeProps"])({key:0,class:[Object(s["unref"])(r).b(),Object(s["unref"])(r).is("animated",e.animated)]},e.$attrs),[(Object(s["openBlock"])(!0),Object(s["createElementBlock"])(s["Fragment"],null,Object(s["renderList"])(e.count,t=>(Object(s["openBlock"])(),Object(s["createElementBlock"])(s["Fragment"],{key:t},[e.loading?Object(s["renderSlot"])(e.$slots,"template",{key:t},()=>[Object(s["createVNode"])(wg,{class:Object(s["normalizeClass"])(Object(s["unref"])(r).is("first")),variant:"p"},null,8,["class"]),(Object(s["openBlock"])(!0),Object(s["createElementBlock"])(s["Fragment"],null,Object(s["renderList"])(e.rows,t=>(Object(s["openBlock"])(),Object(s["createBlock"])(wg,{key:t,class:Object(s["normalizeClass"])([Object(s["unref"])(r).e("paragraph"),Object(s["unref"])(r).is("last",t===e.rows&&e.rows>1)]),variant:"p"},null,8,["class"]))),128))]):Object(s["createCommentVNode"])("v-if",!0)],64))),128))],16)):Object(s["renderSlot"])(e.$slots,"default",Object(s["normalizeProps"])(Object(s["mergeProps"])({key:1},e.$attrs)))}});var Eg=Object(h["a"])(Tg,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton.vue"]]);const jg=Object(k["a"])(Eg,{SkeletonItem:wg}),Dg=Object(k["d"])(wg),Lg=Symbol("sliderContextKey"),Ag=Object(l["b"])({modelValue:{type:Object(l["c"])([Number,Array]),default:0},id:{type:String,default:void 0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},showInput:Boolean,showInputControls:{type:Boolean,default:!0},size:Lr["c"],inputSize:Lr["c"],showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:Object(l["c"])(Function),default:void 0},disabled:Boolean,range:Boolean,vertical:Boolean,height:String,debounce:{type:Number,default:300},label:{type:String,default:void 0},rangeStartLabel:{type:String,default:void 0},rangeEndLabel:{type:String,default:void 0},formatValueText:{type:Object(l["c"])(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:me["placements"],default:"top"},marks:{type:Object(l["c"])(Object)},validateEvent:{type:Boolean,default:!0}}),Ng=e=>Object(u["d"])(e)||Object(Q["isArray"])(e)&&e.every(u["d"]),xg={[d["c"]]:Ng,[d["b"]]:Ng,[d["a"]]:Ng},Rg=Object(l["b"])({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:me["placements"],default:"top"}}),Pg={[d["c"]]:e=>Object(u["d"])(e)},{left:Ug,down:Vg,right:Bg,up:Fg,home:Gg,end:zg,pageUp:Hg,pageDown:Yg}=Me["a"],qg=(e,t,n)=>{const r=Object(s["ref"])(),o=Object(s["ref"])(!1),a=Object(s["computed"])(()=>t.value instanceof Function),i=Object(s["computed"])(()=>a.value&&t.value(e.modelValue)||e.modelValue),c=Object(x["debounce"])(()=>{n.value&&(o.value=!0)},50),l=Object(x["debounce"])(()=>{n.value&&(o.value=!1)},50);return{tooltip:r,tooltipVisible:o,formatValue:i,displayTooltip:c,hideTooltip:l}},Wg=(e,t,n)=>{const{disabled:r,min:o,max:a,step:i,showTooltip:c,precision:l,sliderSize:u,formatTooltip:p,emitChange:f,resetSize:h,updateDragging:m}=Object(s["inject"])(Lg),{tooltip:v,tooltipVisible:g,formatValue:_,displayTooltip:y,hideTooltip:b}=qg(e,p,c),O=Object(s["ref"])(),M=Object(s["computed"])(()=>(e.modelValue-o.value)/(a.value-o.value)*100+"%"),k=Object(s["computed"])(()=>e.vertical?{bottom:M.value}:{left:M.value}),C=()=>{t.hovering=!0,y()},w=()=>{t.hovering=!1,t.dragging||b()},I=e=>{r.value||(e.preventDefault(),R(e),window.addEventListener("mousemove",P),window.addEventListener("touchmove",P),window.addEventListener("mouseup",U),window.addEventListener("touchend",U),window.addEventListener("contextmenu",U),O.value.focus())},S=e=>{r.value||(t.newPosition=Number.parseFloat(M.value)+e/(a.value-o.value)*100,V(t.newPosition),f())},T=()=>{S(-i.value)},E=()=>{S(i.value)},j=()=>{S(4*-i.value)},D=()=>{S(4*i.value)},L=()=>{r.value||(V(0),f())},A=()=>{r.value||(V(100),f())},N=e=>{let t=!0;[Ug,Vg].includes(e.key)?T():[Bg,Fg].includes(e.key)?E():e.key===Gg?L():e.key===zg?A():e.key===Yg?j():e.key===Hg?D():t=!1,t&&e.preventDefault()},x=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}},R=n=>{t.dragging=!0,t.isClick=!0;const{clientX:r,clientY:o}=x(n);e.vertical?t.startY=o:t.startX=r,t.startPosition=Number.parseFloat(M.value),t.newPosition=t.startPosition},P=n=>{if(t.dragging){let r;t.isClick=!1,y(),h();const{clientX:o,clientY:a}=x(n);e.vertical?(t.currentY=a,r=(t.startY-t.currentY)/u.value*100):(t.currentX=o,r=(t.currentX-t.startX)/u.value*100),t.newPosition=t.startPosition+r,V(t.newPosition)}},U=()=>{t.dragging&&(setTimeout(()=>{t.dragging=!1,t.hovering||b(),t.isClick||V(t.newPosition),f()},0),window.removeEventListener("mousemove",P),window.removeEventListener("touchmove",P),window.removeEventListener("mouseup",U),window.removeEventListener("touchend",U),window.removeEventListener("contextmenu",U))},V=async r=>{if(null===r||Number.isNaN(+r))return;r<0?r=0:r>100&&(r=100);const c=100/((a.value-o.value)/i.value),u=Math.round(r/c);let p=u*c*(a.value-o.value)*.01+o.value;p=Number.parseFloat(p.toFixed(l.value)),p!==e.modelValue&&n(d["c"],p),t.dragging||e.modelValue===t.oldValue||(t.oldValue=e.modelValue),await Object(s["nextTick"])(),t.dragging&&y(),v.value.updatePopper()};return Object(s["watch"])(()=>t.dragging,e=>{m(e)}),{disabled:r,button:O,tooltip:v,tooltipVisible:g,showTooltip:c,wrapperStyle:k,formatValue:_,handleMouseEnter:C,handleMouseLeave:w,onButtonDown:I,onKeyDown:N,setPosition:V}},Kg=["tabindex"],$g=Object(s["defineComponent"])({name:"ElSliderButton"}),Jg=Object(s["defineComponent"])({...$g,props:Rg,emits:Pg,setup(e,{expose:t,emit:n}){const r=e,o=Object(m["d"])("slider"),a=Object(s["reactive"])({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:r.modelValue}),{disabled:i,button:c,tooltip:l,showTooltip:u,tooltipVisible:d,wrapperStyle:p,formatValue:f,handleMouseEnter:h,handleMouseLeave:v,onButtonDown:g,onKeyDown:_,setPosition:y}=Wg(r,a,n),{hovering:b,dragging:O}=Object(s["toRefs"])(a);return t({onButtonDown:g,onKeyDown:_,setPosition:y,hovering:b,dragging:O}),(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{ref_key:"button",ref:c,class:Object(s["normalizeClass"])([Object(s["unref"])(o).e("button-wrapper"),{hover:Object(s["unref"])(b),dragging:Object(s["unref"])(O)}]),style:Object(s["normalizeStyle"])(Object(s["unref"])(p)),tabindex:Object(s["unref"])(i)?-1:0,onMouseenter:t[0]||(t[0]=(...e)=>Object(s["unref"])(h)&&Object(s["unref"])(h)(...e)),onMouseleave:t[1]||(t[1]=(...e)=>Object(s["unref"])(v)&&Object(s["unref"])(v)(...e)),onMousedown:t[2]||(t[2]=(...e)=>Object(s["unref"])(g)&&Object(s["unref"])(g)(...e)),onTouchstart:t[3]||(t[3]=(...e)=>Object(s["unref"])(g)&&Object(s["unref"])(g)(...e)),onFocus:t[4]||(t[4]=(...e)=>Object(s["unref"])(h)&&Object(s["unref"])(h)(...e)),onBlur:t[5]||(t[5]=(...e)=>Object(s["unref"])(v)&&Object(s["unref"])(v)(...e)),onKeydown:t[6]||(t[6]=(...e)=>Object(s["unref"])(_)&&Object(s["unref"])(_)(...e))},[Object(s["createVNode"])(Object(s["unref"])(Dt),{ref_key:"tooltip",ref:l,visible:Object(s["unref"])(d),placement:e.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":e.tooltipClass,disabled:!Object(s["unref"])(u),persistent:""},{content:Object(s["withCtx"])(()=>[Object(s["createElementVNode"])("span",null,Object(s["toDisplayString"])(Object(s["unref"])(f)),1)]),default:Object(s["withCtx"])(()=>[Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])([Object(s["unref"])(o).e("button"),{hover:Object(s["unref"])(b),dragging:Object(s["unref"])(O)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled"])],46,Kg))}});var Qg=Object(h["a"])(Jg,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/button.vue"]]);const Xg=Object(l["b"])({mark:{type:Object(l["c"])([String,Object]),default:void 0}});var Zg=Object(s["defineComponent"])({name:"ElSliderMarker",props:Xg,setup(e){const t=Object(m["d"])("slider"),n=Object(s["computed"])(()=>Object(Q["isString"])(e.mark)?e.mark:e.mark.label),r=Object(s["computed"])(()=>Object(Q["isString"])(e.mark)?void 0:e.mark.style);return()=>Object(s["h"])("div",{class:t.e("marks-text"),style:r.value},n.value)}});const e_=(e,t,n)=>{const{form:r,formItem:o}=Object(Pr["a"])(),a=Object(s["shallowRef"])(),i=Object(s["ref"])(),c=Object(s["ref"])(),l={firstButton:i,secondButton:c},u=Object(s["computed"])(()=>e.disabled||(null==r?void 0:r.disabled)||!1),p=Object(s["computed"])(()=>Math.min(t.firstValue,t.secondValue)),f=Object(s["computed"])(()=>Math.max(t.firstValue,t.secondValue)),h=Object(s["computed"])(()=>e.range?100*(f.value-p.value)/(e.max-e.min)+"%":100*(t.firstValue-e.min)/(e.max-e.min)+"%"),m=Object(s["computed"])(()=>e.range?100*(p.value-e.min)/(e.max-e.min)+"%":"0%"),v=Object(s["computed"])(()=>e.vertical?{height:e.height}:{}),g=Object(s["computed"])(()=>e.vertical?{height:h.value,bottom:m.value}:{width:h.value,left:m.value}),_=()=>{a.value&&(t.sliderSize=a.value["client"+(e.vertical?"Height":"Width")])},y=n=>{const r=e.min+n*(e.max-e.min)/100;if(!e.range)return i;let o;return o=Math.abs(p.value-r)<Math.abs(f.value-r)?t.firstValue<t.secondValue?"firstButton":"secondButton":t.firstValue>t.secondValue?"firstButton":"secondButton",l[o]},b=e=>{const t=y(e);return t.value.setPosition(e),t},O=n=>{t.firstValue=n,k(e.range?[p.value,f.value]:n)},M=n=>{t.secondValue=n,e.range&&k([p.value,f.value])},k=e=>{n(d["c"],e),n(d["b"],e)},C=async()=>{await Object(s["nextTick"])(),n(d["a"],e.range?[p.value,f.value]:e.modelValue)},w=n=>{var r,o,i,s,c,l;if(u.value||t.dragging)return;_();let d=0;if(e.vertical){const e=null!=(i=null==(o=null==(r=n.touches)?void 0:r.item(0))?void 0:o.clientY)?i:n.clientY,s=a.value.getBoundingClientRect().bottom;d=(s-e)/t.sliderSize*100}else{const e=null!=(l=null==(c=null==(s=n.touches)?void 0:s.item(0))?void 0:c.clientX)?l:n.clientX,r=a.value.getBoundingClientRect().left;d=(e-r)/t.sliderSize*100}return d<0||d>100?void 0:b(d)},I=e=>{var t,n;((null==(t=l["firstButton"].value)?void 0:t.dragging)||(null==(n=l["secondButton"].value)?void 0:n.dragging))&&e.preventDefault()},S=async e=>{const t=w(e);t&&(await Object(s["nextTick"])(),t.value.onButtonDown(e))},T=e=>{const t=w(e);t&&C()};return{elFormItem:o,slider:a,firstButton:i,secondButton:c,sliderDisabled:u,minValue:p,maxValue:f,runwayStyle:v,barStyle:g,resetSize:_,setPosition:b,emitChange:C,onSliderWrapperPrevent:I,onSliderClick:T,onSliderDown:S,setFirstValue:O,setSecondValue:M}},t_=(e,t,n,r)=>{const o=Object(s["computed"])(()=>{if(!e.showStops||e.min>e.max)return[];if(0===e.step)return Object(g["a"])("ElSlider","step should not be 0."),[];const o=(e.max-e.min)/e.step,a=100*e.step/(e.max-e.min),i=Array.from({length:o-1}).map((e,t)=>(t+1)*a);return e.range?i.filter(t=>t<100*(n.value-e.min)/(e.max-e.min)||t>100*(r.value-e.min)/(e.max-e.min)):i.filter(n=>n>100*(t.firstValue-e.min)/(e.max-e.min))}),a=t=>e.vertical?{bottom:t+"%"}:{left:t+"%"};return{stops:o,getStopStyle:a}},n_=e=>Object(s["computed"])(()=>{if(!e.marks)return[];const t=Object.keys(e.marks);return t.map(Number.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]}))}),r_=(e,t,n,r,o,a)=>{const i=e=>{o(d["c"],e),o(d["b"],e)},c=()=>e.range?![n.value,r.value].every((e,n)=>e===t.oldValue[n]):e.modelValue!==t.oldValue,l=()=>{var n,r;e.min>e.max&&Object(g["b"])("Slider","min should not be greater than max.");const o=e.modelValue;e.range&&Array.isArray(o)?o[1]<e.min?i([e.min,e.min]):o[0]>e.max?i([e.max,e.max]):o[0]<e.min?i([e.min,o[1]]):o[1]>e.max?i([o[0],e.max]):(t.firstValue=o[0],t.secondValue=o[1],c()&&(e.validateEvent&&(null==(n=null==a?void 0:a.validate)||n.call(a,"change").catch(e=>Object(g["a"])(e))),t.oldValue=o.slice())):e.range||"number"!==typeof o||Number.isNaN(o)||(o<e.min?i(e.min):o>e.max?i(e.max):(t.firstValue=o,c()&&(e.validateEvent&&(null==(r=null==a?void 0:a.validate)||r.call(a,"change").catch(e=>Object(g["a"])(e))),t.oldValue=o)))};l(),Object(s["watch"])(()=>t.dragging,e=>{e||l()}),Object(s["watch"])(()=>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]||l()},{deep:!0}),Object(s["watch"])(()=>[e.min,e.max],()=>{l()})},o_=(e,t,n)=>{const r=Object(s["ref"])();return Object(s["onMounted"])(async()=>{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]):("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),Object(c["useEventListener"])(window,"resize",n),await Object(s["nextTick"])(),n()}),{sliderWrapper:r}},a_=["id","role","aria-label","aria-labelledby"],i_={key:1},s_=Object(s["defineComponent"])({name:"ElSlider"}),c_=Object(s["defineComponent"])({...s_,props:Ag,emits:xg,setup(e,{expose:t,emit:n}){const r=e,o=Object(m["d"])("slider"),{t:a}=Object(Vn["b"])(),i=Object(s["reactive"])({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:c,slider:l,firstButton:u,secondButton:d,sliderDisabled:p,minValue:f,maxValue:h,runwayStyle:v,barStyle:g,resetSize:_,emitChange:y,onSliderWrapperPrevent:b,onSliderClick:O,onSliderDown:M,setFirstValue:k,setSecondValue:C}=e_(r,i,n),{stops:w,getStopStyle:I}=t_(r,i,f,h),{inputId:S,isLabeledByFormItem:T}=Object(Pr["b"])(r,{formItemContext:c}),E=Object(xt["b"])(),j=Object(s["computed"])(()=>r.inputSize||E.value),D=Object(s["computed"])(()=>r.label||a("el.slider.defaultLabel",{min:r.min,max:r.max})),L=Object(s["computed"])(()=>r.range?r.rangeStartLabel||a("el.slider.defaultRangeStartLabel"):D.value),A=Object(s["computed"])(()=>r.formatValueText?r.formatValueText(B.value):""+B.value),N=Object(s["computed"])(()=>r.rangeEndLabel||a("el.slider.defaultRangeEndLabel")),x=Object(s["computed"])(()=>r.formatValueText?r.formatValueText(F.value):""+F.value),R=Object(s["computed"])(()=>[o.b(),o.m(E.value),o.is("vertical",r.vertical),{[o.m("with-input")]:r.showInput}]),P=n_(r);r_(r,i,f,h,n,c);const U=Object(s["computed"])(()=>{const e=[r.min,r.max,r.step].map(e=>{const t=(""+e).split(".")[1];return t?t.length:0});return Math.max.apply(null,e)}),{sliderWrapper:V}=o_(r,i,_),{firstValue:B,secondValue:F,sliderSize:G}=Object(s["toRefs"])(i),z=e=>{i.dragging=e};return Object(s["provide"])(Lg,{...Object(s["toRefs"])(r),sliderSize:G,disabled:p,precision:U,emitChange:y,resetSize:_,updateDragging:z}),t({onSliderClick:O}),(e,t)=>{var n,r;return Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{id:e.range?Object(s["unref"])(S):void 0,ref_key:"sliderWrapper",ref:V,class:Object(s["normalizeClass"])(Object(s["unref"])(R)),role:e.range?"group":void 0,"aria-label":e.range&&!Object(s["unref"])(T)?Object(s["unref"])(D):void 0,"aria-labelledby":e.range&&Object(s["unref"])(T)?null==(n=Object(s["unref"])(c))?void 0:n.labelId:void 0,onTouchstart:t[2]||(t[2]=(...e)=>Object(s["unref"])(b)&&Object(s["unref"])(b)(...e)),onTouchmove:t[3]||(t[3]=(...e)=>Object(s["unref"])(b)&&Object(s["unref"])(b)(...e))},[Object(s["createElementVNode"])("div",{ref_key:"slider",ref:l,class:Object(s["normalizeClass"])([Object(s["unref"])(o).e("runway"),{"show-input":e.showInput&&!e.range},Object(s["unref"])(o).is("disabled",Object(s["unref"])(p))]),style:Object(s["normalizeStyle"])(Object(s["unref"])(v)),onMousedown:t[0]||(t[0]=(...e)=>Object(s["unref"])(M)&&Object(s["unref"])(M)(...e)),onTouchstart:t[1]||(t[1]=(...e)=>Object(s["unref"])(M)&&Object(s["unref"])(M)(...e))},[Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(o).e("bar")),style:Object(s["normalizeStyle"])(Object(s["unref"])(g))},null,6),Object(s["createVNode"])(Qg,{id:e.range?void 0:Object(s["unref"])(S),ref_key:"firstButton",ref:u,"model-value":Object(s["unref"])(B),vertical:e.vertical,"tooltip-class":e.tooltipClass,placement:e.placement,role:"slider","aria-label":e.range||!Object(s["unref"])(T)?Object(s["unref"])(L):void 0,"aria-labelledby":!e.range&&Object(s["unref"])(T)?null==(r=Object(s["unref"])(c))?void 0:r.labelId:void 0,"aria-valuemin":e.min,"aria-valuemax":e.range?Object(s["unref"])(F):e.max,"aria-valuenow":Object(s["unref"])(B),"aria-valuetext":Object(s["unref"])(A),"aria-orientation":e.vertical?"vertical":"horizontal","aria-disabled":Object(s["unref"])(p),"onUpdate:modelValue":Object(s["unref"])(k)},null,8,["id","model-value","vertical","tooltip-class","placement","aria-label","aria-labelledby","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"]),e.range?(Object(s["openBlock"])(),Object(s["createBlock"])(Qg,{key:0,ref_key:"secondButton",ref:d,"model-value":Object(s["unref"])(F),vertical:e.vertical,"tooltip-class":e.tooltipClass,placement:e.placement,role:"slider","aria-label":Object(s["unref"])(N),"aria-valuemin":Object(s["unref"])(B),"aria-valuemax":e.max,"aria-valuenow":Object(s["unref"])(F),"aria-valuetext":Object(s["unref"])(x),"aria-orientation":e.vertical?"vertical":"horizontal","aria-disabled":Object(s["unref"])(p),"onUpdate:modelValue":Object(s["unref"])(C)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):Object(s["createCommentVNode"])("v-if",!0),e.showStops?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",i_,[(Object(s["openBlock"])(!0),Object(s["createElementBlock"])(s["Fragment"],null,Object(s["renderList"])(Object(s["unref"])(w),(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:t,class:Object(s["normalizeClass"])(Object(s["unref"])(o).e("stop")),style:Object(s["normalizeStyle"])(Object(s["unref"])(I)(e))},null,6))),128))])):Object(s["createCommentVNode"])("v-if",!0),Object(s["unref"])(P).length>0?(Object(s["openBlock"])(),Object(s["createElementBlock"])(s["Fragment"],{key:2},[Object(s["createElementVNode"])("div",null,[(Object(s["openBlock"])(!0),Object(s["createElementBlock"])(s["Fragment"],null,Object(s["renderList"])(Object(s["unref"])(P),(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:t,style:Object(s["normalizeStyle"])(Object(s["unref"])(I)(e.position)),class:Object(s["normalizeClass"])([Object(s["unref"])(o).e("stop"),Object(s["unref"])(o).e("marks-stop")])},null,6))),128))]),Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(o).e("marks"))},[(Object(s["openBlock"])(!0),Object(s["createElementBlock"])(s["Fragment"],null,Object(s["renderList"])(Object(s["unref"])(P),(e,t)=>(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(Zg),{key:t,mark:e.mark,style:Object(s["normalizeStyle"])(Object(s["unref"])(I)(e.position))},null,8,["mark","style"]))),128))],2)],64)):Object(s["createCommentVNode"])("v-if",!0)],38),e.showInput&&!e.range?(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(Rp),{key:0,ref:"input","model-value":Object(s["unref"])(B),class:Object(s["normalizeClass"])(Object(s["unref"])(o).e("input")),step:e.step,disabled:Object(s["unref"])(p),controls:e.showInputControls,min:e.min,max:e.max,debounce:e.debounce,size:Object(s["unref"])(j),"onUpdate:modelValue":Object(s["unref"])(k),onChange:Object(s["unref"])(y)},null,8,["model-value","class","step","disabled","controls","min","max","debounce","size","onUpdate:modelValue","onChange"])):Object(s["createCommentVNode"])("v-if",!0)],42,a_)}}});var l_=Object(h["a"])(c_,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/slider.vue"]]);const u_=Object(k["a"])(l_),d_=Object(l["b"])({prefixCls:{type:String}}),p_=Object(s["defineComponent"])({name:"ElSpaceItem",props:d_,setup(e,{slots:t}){const n=Object(m["d"])("space"),r=Object(s["computed"])(()=>(e.prefixCls||n.b())+"__item");return()=>Object(s["h"])("div",{class:r.value},Object(s["renderSlot"])(t,"default"))}}),f_={small:8,default:12,large:16};function h_(e){const t=Object(m["d"])("space"),n=Object(s["computed"])(()=>[t.b(),t.m(e.direction),e.class]),r=Object(s["ref"])(0),o=Object(s["ref"])(0),a=Object(s["computed"])(()=>{const t=e.wrap||e.fill?{flexWrap:"wrap",marginBottom:`-${o.value}px`}:{},n={alignItems:e.alignment};return[t,n,e.style]}),i=Object(s["computed"])(()=>{const t={paddingBottom:o.value+"px",marginRight:r.value+"px"},n=e.fill?{flexGrow:1,minWidth:e.fillRatio+"%"}:{};return[t,n]});return Object(s["watchEffect"])(()=>{const{size:t="small",wrap:n,direction:a,fill:i}=e;if(Object(Q["isArray"])(t)){const[e=0,n=0]=t;r.value=e,o.value=n}else{let e;e=Object(u["d"])(t)?t:f_[t||"small"]||f_.small,(n||i)&&"horizontal"===a?r.value=o.value=e:"horizontal"===a?(r.value=e,o.value=0):(o.value=e,r.value=0)}}),{classes:n,containerStyle:a,itemStyle:i}}const m_=Object(l["b"])({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:Object(l["c"])([String,Object,Array]),default:""},style:{type:Object(l["c"])([String,Array,Object]),default:""},alignment:{type:Object(l["c"])(String),default:"center"},prefixCls:{type:String},spacer:{type:Object(l["c"])([Object,String,Number,Array]),default:null,validator:e=>Object(s["isVNode"])(e)||Object(u["d"])(e)||Object(Q["isString"])(e)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:Yt["b"],validator:e=>Object(u["d"])(e)||Object(Q["isArray"])(e)&&2===e.length&&e.every(u["d"])}}),v_=Object(s["defineComponent"])({name:"ElSpace",props:m_,setup(e,{slots:t}){const{classes:n,containerStyle:r,itemStyle:o}=h_(e);function a(t,n="",r=[]){const{prefixCls:i}=e;return t.forEach((e,t)=>{Object(fr["e"])(e)?Object(Q["isArray"])(e.children)&&e.children.forEach((e,t)=>{Object(fr["e"])(e)&&Object(Q["isArray"])(e.children)?a(e.children,n+t+"-",r):r.push(Object(s["createVNode"])(p_,{style:o.value,prefixCls:i,key:"nested-"+(n+t)},{default:()=>[e]},fr["a"].PROPS|fr["a"].STYLE,["style","prefixCls"]))}):Object(fr["f"])(e)&&r.push(Object(s["createVNode"])(p_,{style:o.value,prefixCls:i,key:"LoopKey"+(n+t)},{default:()=>[e]},fr["a"].PROPS|fr["a"].STYLE,["style","prefixCls"]))}),r}return()=>{var i;const{spacer:c,direction:l}=e,u=Object(s["renderSlot"])(t,"default",{key:0},()=>[]);if(0===(null!=(i=u.children)?i:[]).length)return null;if(Object(Q["isArray"])(u.children)){let e=a(u.children);if(c){const t=e.length-1;e=e.reduce((e,n,r)=>{const a=[...e,n];return r!==t&&a.push(Object(s["createVNode"])("span",{style:[o.value,"vertical"===l?"width: 100%":null],key:r},[Object(s["isVNode"])(c)?c:Object(s["createTextVNode"])(c,fr["a"].TEXT)],fr["a"].STYLE)),a},[])}return Object(s["createVNode"])("div",{class:n.value,style:r.value},e,fr["a"].STYLE|fr["a"].CLASS)}return u.children}}}),g_=Object(k["a"])(v_),__=Object(l["b"])({decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},precision:{type:Number,default:0},formatter:Function,value:{type:Object(l["c"])([Number,Object]),default:0},prefix:String,suffix:String,title:String,valueStyle:{type:Object(l["c"])([String,Object,Array])}}),y_=Object(s["defineComponent"])({name:"ElStatistic"}),b_=Object(s["defineComponent"])({...y_,props:__,setup(e,{expose:t}){const n=e,r=Object(m["d"])("statistic"),o=Object(s["computed"])(()=>{const{value:e,formatter:t,precision:r,decimalSeparator:o,groupSeparator:a}=n;if(Object(Q["isFunction"])(t))return t(e);if(!Object(u["d"])(e))return e;let[i,s=""]=String(e).split(".");return s=s.padEnd(r,"0").slice(0,r>0?r:0),i=i.replace(/\B(?=(\d{3})+(?!\d))/g,a),[i,s].join(s?o:"")});return t({displayValue:o}),(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(r).b())},[e.$slots.title||e.title?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:0,class:Object(s["normalizeClass"])(Object(s["unref"])(r).e("head"))},[Object(s["renderSlot"])(e.$slots,"title",{},()=>[Object(s["createTextVNode"])(Object(s["toDisplayString"])(e.title),1)])],2)):Object(s["createCommentVNode"])("v-if",!0),Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(r).e("content"))},[e.$slots.prefix||e.prefix?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:0,class:Object(s["normalizeClass"])(Object(s["unref"])(r).e("prefix"))},[Object(s["renderSlot"])(e.$slots,"prefix",{},()=>[Object(s["createElementVNode"])("span",null,Object(s["toDisplayString"])(e.prefix),1)])],2)):Object(s["createCommentVNode"])("v-if",!0),Object(s["createElementVNode"])("span",{class:Object(s["normalizeClass"])(Object(s["unref"])(r).e("number")),style:Object(s["normalizeStyle"])(e.valueStyle)},Object(s["toDisplayString"])(Object(s["unref"])(o)),7),e.$slots.suffix||e.suffix?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:1,class:Object(s["normalizeClass"])(Object(s["unref"])(r).e("suffix"))},[Object(s["renderSlot"])(e.$slots,"suffix",{},()=>[Object(s["createElementVNode"])("span",null,Object(s["toDisplayString"])(e.suffix),1)])],2)):Object(s["createCommentVNode"])("v-if",!0)],2)],2))}});var O_=Object(h["a"])(b_,[["__file","/home/runner/work/element-plus/element-plus/packages/components/statistic/src/statistic.vue"]]);const M_=Object(k["a"])(O_),k_=Object(l["b"])({format:{type:String,default:"HH:mm:ss"},prefix:String,suffix:String,title:String,value:{type:Object(l["c"])([Number,Object]),default:0},valueStyle:{type:Object(l["c"])([String,Object,Array])}}),C_={finish:()=>!0,[d["a"]]:e=>Object(u["d"])(e)},w_=[["Y",31536e6],["M",2592e6],["D",864e5],["H",36e5],["m",6e4],["s",1e3],["S",1]],I_=e=>Object(u["d"])(e)?new Date(e).getTime():e.valueOf(),S_=(e,t)=>{let n=e;const r=/\[([^\]]*)]/g,o=w_.reduce((e,[t,r])=>{const o=new RegExp(t+"+(?![^\\[\\]]*\\])","g");if(o.test(e)){const t=Math.floor(n/r);return n-=t*r,e.replace(o,e=>String(t).padStart(e.length,"0"))}return e},t);return o.replace(r,"$1")},T_=Object(s["defineComponent"])({name:"ElCountdown"}),E_=Object(s["defineComponent"])({...T_,props:k_,emits:C_,setup(e,{expose:t,emit:n}){const r=e;let o;const a=Object(s["ref"])(I_(r.value)-Date.now()),i=Object(s["computed"])(()=>S_(a.value,r.format)),c=e=>S_(e,r.format),l=()=>{o&&(Cv(o),o=void 0)},u=()=>{const e=I_(r.value),t=()=>{let r=e-Date.now();n("change",r),r<=0?(r=0,l(),n("finish")):o=kv(t),a.value=r};o=kv(t)};return Object(s["watch"])(()=>[r.value,r.format],()=>{l(),u()},{immediate:!0}),Object(s["onBeforeUnmount"])(()=>{l()}),t({displayValue:i}),(e,t)=>(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(M_),{value:a.value,title:e.title,prefix:e.prefix,suffix:e.suffix,"value-style":e.valueStyle,formatter:c},Object(s["createSlots"])({_:2},[Object(s["renderList"])(e.$slots,(t,n)=>({name:n,fn:Object(s["withCtx"])(()=>[Object(s["renderSlot"])(e.$slots,n)])}))]),1032,["value","title","prefix","suffix","value-style"]))}});var j_=Object(h["a"])(E_,[["__file","/home/runner/work/element-plus/element-plus/packages/components/countdown/src/countdown.vue"]]);const D_=Object(k["a"])(j_),L_=Object(l["b"])({space:{type:[Number,String],default:""},active:{type:Number,default:0},direction:{type:String,default:"horizontal",values:["horizontal","vertical"]},alignCenter:{type:Boolean},simple:{type:Boolean},finishStatus:{type:String,values:["wait","process","finish","error","success"],default:"finish"},processStatus:{type:String,values:["wait","process","finish","error","success"],default:"process"}}),A_={[d["a"]]:(e,t)=>[e,t].every(u["d"])},N_=Object(s["defineComponent"])({name:"ElSteps"}),x_=Object(s["defineComponent"])({...N_,props:L_,emits:A_,setup(e,{emit:t}){const n=e,r=Object(m["d"])("steps"),{children:o,addChild:a,removeChild:i}=mr(Object(s["getCurrentInstance"])(),"ElStep");return Object(s["watch"])(o,()=>{o.value.forEach((e,t)=>{e.setIndex(t)})}),Object(s["provide"])("ElSteps",{props:n,steps:o,addStep:a,removeStep:i}),Object(s["watch"])(()=>n.active,(e,n)=>{t(d["a"],e,n)}),(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{class:Object(s["normalizeClass"])([Object(s["unref"])(r).b(),Object(s["unref"])(r).m(e.simple?"simple":e.direction)])},[Object(s["renderSlot"])(e.$slots,"default")],2))}});var R_=Object(h["a"])(x_,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/steps.vue"]]);const P_=Object(l["b"])({title:{type:String,default:""},icon:{type:S["e"]},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}}),U_=Object(s["defineComponent"])({name:"ElStep"}),V_=Object(s["defineComponent"])({...U_,props:P_,setup(e){const t=e,n=Object(m["d"])("step"),r=Object(s["ref"])(-1),o=Object(s["ref"])({}),a=Object(s["ref"])(""),i=Object(s["inject"])("ElSteps"),c=Object(s["getCurrentInstance"])();Object(s["onMounted"])(()=>{Object(s["watch"])([()=>i.props.active,()=>i.props.processStatus,()=>i.props.finishStatus],([e])=>{k(e)},{immediate:!0})}),Object(s["onBeforeUnmount"])(()=>{i.removeStep(C.uid)});const l=Object(s["computed"])(()=>t.status||a.value),d=Object(s["computed"])(()=>{const e=i.steps.value[r.value-1];return e?e.currentStatus:"wait"}),p=Object(s["computed"])(()=>i.props.alignCenter),f=Object(s["computed"])(()=>"vertical"===i.props.direction),h=Object(s["computed"])(()=>i.props.simple),v=Object(s["computed"])(()=>i.steps.value.length),g=Object(s["computed"])(()=>{var e;return(null==(e=i.steps.value[v.value-1])?void 0:e.uid)===(null==c?void 0:c.uid)}),_=Object(s["computed"])(()=>h.value?"":i.props.space),y=Object(s["computed"])(()=>[n.b(),n.is(h.value?"simple":i.props.direction),n.is("flex",g.value&&!_.value&&!p.value),n.is("center",p.value&&!f.value&&!h.value)]),b=Object(s["computed"])(()=>{const e={flexBasis:Object(u["d"])(_.value)?_.value+"px":_.value?_.value:100/(v.value-(p.value?0:1))+"%"};return f.value||g.value&&(e.maxWidth=100/v.value+"%"),e}),O=e=>{r.value=e},M=e=>{const t="wait"===e,n={transitionDelay:`${t?"-":""}${150*r.value}ms`},a=e===i.props.processStatus||t?0:100;n.borderWidth=a&&!h.value?"1px":0,n["vertical"===i.props.direction?"height":"width"]=a+"%",o.value=n},k=e=>{e>r.value?a.value=i.props.finishStatus:e===r.value&&"error"!==d.value?a.value=i.props.processStatus:a.value="wait";const t=i.steps.value[r.value-1];t&&t.calcProgress(a.value)},C=Object(s["reactive"])({uid:c.uid,currentStatus:l,setIndex:O,calcProgress:M});return i.addStep(C),(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{style:Object(s["normalizeStyle"])(Object(s["unref"])(b)),class:Object(s["normalizeClass"])(Object(s["unref"])(y))},[Object(s["createCommentVNode"])(" icon & line "),Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])([Object(s["unref"])(n).e("head"),Object(s["unref"])(n).is(Object(s["unref"])(l))])},[Object(s["unref"])(h)?Object(s["createCommentVNode"])("v-if",!0):(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:0,class:Object(s["normalizeClass"])(Object(s["unref"])(n).e("line"))},[Object(s["createElementVNode"])("i",{class:Object(s["normalizeClass"])(Object(s["unref"])(n).e("line-inner")),style:Object(s["normalizeStyle"])(o.value)},null,6)],2)),Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])([Object(s["unref"])(n).e("icon"),Object(s["unref"])(n).is(e.icon||e.$slots.icon?"icon":"text")])},[Object(s["renderSlot"])(e.$slots,"icon",{},()=>[e.icon?(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(w["a"]),{key:0,class:Object(s["normalizeClass"])(Object(s["unref"])(n).e("icon-inner"))},{default:Object(s["withCtx"])(()=>[(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["resolveDynamicComponent"])(e.icon)))]),_:1},8,["class"])):"success"===Object(s["unref"])(l)?(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(w["a"]),{key:1,class:Object(s["normalizeClass"])([Object(s["unref"])(n).e("icon-inner"),Object(s["unref"])(n).is("status")])},{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(Object(s["unref"])(R["Check"]))]),_:1},8,["class"])):"error"===Object(s["unref"])(l)?(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(w["a"]),{key:2,class:Object(s["normalizeClass"])([Object(s["unref"])(n).e("icon-inner"),Object(s["unref"])(n).is("status")])},{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(Object(s["unref"])(R["Close"]))]),_:1},8,["class"])):Object(s["unref"])(h)?Object(s["createCommentVNode"])("v-if",!0):(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:3,class:Object(s["normalizeClass"])(Object(s["unref"])(n).e("icon-inner"))},Object(s["toDisplayString"])(r.value+1),3))])],2)],2),Object(s["createCommentVNode"])(" title & description "),Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(n).e("main"))},[Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])([Object(s["unref"])(n).e("title"),Object(s["unref"])(n).is(Object(s["unref"])(l))])},[Object(s["renderSlot"])(e.$slots,"title",{},()=>[Object(s["createTextVNode"])(Object(s["toDisplayString"])(e.title),1)])],2),Object(s["unref"])(h)?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:0,class:Object(s["normalizeClass"])(Object(s["unref"])(n).e("arrow"))},null,2)):(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:1,class:Object(s["normalizeClass"])([Object(s["unref"])(n).e("description"),Object(s["unref"])(n).is(Object(s["unref"])(l))])},[Object(s["renderSlot"])(e.$slots,"description",{},()=>[Object(s["createTextVNode"])(Object(s["toDisplayString"])(e.description),1)])],2))],2)],6))}});var B_=Object(h["a"])(V_,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/item.vue"]]);const F_=Object(k["a"])(R_,{Step:B_}),G_=Object(k["d"])(B_),z_=Object(l["b"])({modelValue:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},size:{type:String,validator:rh["a"]},width:{type:[String,Number],default:""},inlinePrompt:{type:Boolean,default:!1},inactiveActionIcon:{type:S["e"]},activeActionIcon:{type:S["e"]},activeIcon:{type:S["e"]},inactiveIcon:{type:S["e"]},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},borderColor:{type:String,default:""},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},beforeChange:{type:Object(l["c"])(Function)},id:String,tabindex:{type:[String,Number]},value:{type:[Boolean,String,Number],default:!1}}),H_={[d["c"]]:e=>Object(u["a"])(e)||Object(Q["isString"])(e)||Object(u["d"])(e),[d["a"]]:e=>Object(u["a"])(e)||Object(Q["isString"])(e)||Object(u["d"])(e),[d["b"]]:e=>Object(u["a"])(e)||Object(Q["isString"])(e)||Object(u["d"])(e)},Y_=["onClick"],q_=["id","aria-checked","aria-disabled","name","true-value","false-value","disabled","tabindex","onKeydown"],W_=["aria-hidden"],K_=["aria-hidden"],$_=["aria-hidden"],J_="ElSwitch",Q_=Object(s["defineComponent"])({name:J_}),X_=Object(s["defineComponent"])({...Q_,props:z_,emits:H_,setup(e,{expose:t,emit:n}){const r=e,o=Object(s["getCurrentInstance"])(),{formItem:a}=Object(Pr["a"])(),i=Object(xt["b"])(),c=Object(m["d"])("switch"),l=e=>{e.forEach(e=>{Object(Wn["a"])({from:e[0],replacement:e[1],scope:J_,version:"2.3.0",ref:"https://element-plus.org/en-US/component/switch.html#attributes",type:"Attribute"},Object(s["computed"])(()=>{var t;return!!(null==(t=o.vnode.props)?void 0:t[e[2]])}))})};l([['"value"','"model-value" or "v-model"',"value"],['"active-color"',"CSS var `--el-switch-on-color`","activeColor"],['"inactive-color"',"CSS var `--el-switch-off-color`","inactiveColor"],['"border-color"',"CSS var `--el-switch-border-color`","borderColor"]]);const{inputId:p}=Object(Pr["b"])(r,{formItemContext:a}),f=Object(xt["a"])(Object(s["computed"])(()=>r.loading)),h=Object(s["ref"])(!1!==r.modelValue),_=Object(s["ref"])(),y=Object(s["ref"])(),b=Object(s["computed"])(()=>[c.b(),c.m(i.value),c.is("disabled",f.value),c.is("checked",I.value)]),O=Object(s["computed"])(()=>[c.e("label"),c.em("label","left"),c.is("active",!I.value)]),M=Object(s["computed"])(()=>[c.e("label"),c.em("label","right"),c.is("active",I.value)]),k=Object(s["computed"])(()=>({width:Object(v["b"])(r.width)}));Object(s["watch"])(()=>r.modelValue,()=>{h.value=!0}),Object(s["watch"])(()=>r.value,()=>{h.value=!1});const C=Object(s["computed"])(()=>h.value?r.modelValue:r.value),I=Object(s["computed"])(()=>C.value===r.activeValue);[r.activeValue,r.inactiveValue].includes(C.value)||(n(d["c"],r.inactiveValue),n(d["a"],r.inactiveValue),n(d["b"],r.inactiveValue)),Object(s["watch"])(I,e=>{var t;_.value.checked=e,r.validateEvent&&(null==(t=null==a?void 0:a.validate)||t.call(a,"change").catch(e=>Object(g["a"])(e)))});const S=()=>{const e=I.value?r.inactiveValue:r.activeValue;n(d["c"],e),n(d["a"],e),n(d["b"],e),Object(s["nextTick"])(()=>{_.value.checked=I.value})},T=()=>{if(f.value)return;const{beforeChange:e}=r;if(!e)return void S();const t=e(),n=[Object(Q["isPromise"])(t),Object(u["a"])(t)].includes(!0);n||Object(g["b"])(J_,"beforeChange must return type `Promise<boolean>` or `boolean`"),Object(Q["isPromise"])(t)?t.then(e=>{e&&S()}).catch(e=>{Object(g["a"])(J_,"some error occurred: "+e)}):t&&S()},E=Object(s["computed"])(()=>c.cssVarBlock({...r.activeColor?{"on-color":r.activeColor}:null,...r.inactiveColor?{"off-color":r.inactiveColor}:null,...r.borderColor?{"border-color":r.borderColor}:null})),j=()=>{var e,t;null==(t=null==(e=_.value)?void 0:e.focus)||t.call(e)};return Object(s["onMounted"])(()=>{_.value.checked=I.value}),t({focus:j,checked:I}),(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(b)),style:Object(s["normalizeStyle"])(Object(s["unref"])(E)),onClick:Object(s["withModifiers"])(T,["prevent"])},[Object(s["createElementVNode"])("input",{id:Object(s["unref"])(p),ref_key:"input",ref:_,class:Object(s["normalizeClass"])(Object(s["unref"])(c).e("input")),type:"checkbox",role:"switch","aria-checked":Object(s["unref"])(I),"aria-disabled":Object(s["unref"])(f),name:e.name,"true-value":e.activeValue,"false-value":e.inactiveValue,disabled:Object(s["unref"])(f),tabindex:e.tabindex,onChange:S,onKeydown:Object(s["withKeys"])(T,["enter"])},null,42,q_),e.inlinePrompt||!e.inactiveIcon&&!e.inactiveText?Object(s["createCommentVNode"])("v-if",!0):(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",{key:0,class:Object(s["normalizeClass"])(Object(s["unref"])(O))},[e.inactiveIcon?(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(w["a"]),{key:0},{default:Object(s["withCtx"])(()=>[(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["resolveDynamicComponent"])(e.inactiveIcon)))]),_:1})):Object(s["createCommentVNode"])("v-if",!0),!e.inactiveIcon&&e.inactiveText?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",{key:1,"aria-hidden":Object(s["unref"])(I)},Object(s["toDisplayString"])(e.inactiveText),9,W_)):Object(s["createCommentVNode"])("v-if",!0)],2)),Object(s["createElementVNode"])("span",{ref_key:"core",ref:y,class:Object(s["normalizeClass"])(Object(s["unref"])(c).e("core")),style:Object(s["normalizeStyle"])(Object(s["unref"])(k))},[e.inlinePrompt?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:0,class:Object(s["normalizeClass"])(Object(s["unref"])(c).e("inner"))},[e.activeIcon||e.inactiveIcon?(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(w["a"]),{key:0,class:Object(s["normalizeClass"])(Object(s["unref"])(c).is("icon"))},{default:Object(s["withCtx"])(()=>[(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["resolveDynamicComponent"])(Object(s["unref"])(I)?e.activeIcon:e.inactiveIcon)))]),_:1},8,["class"])):e.activeText||e.inactiveText?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",{key:1,class:Object(s["normalizeClass"])(Object(s["unref"])(c).is("text")),"aria-hidden":!Object(s["unref"])(I)},Object(s["toDisplayString"])(Object(s["unref"])(I)?e.activeText:e.inactiveText),11,K_)):Object(s["createCommentVNode"])("v-if",!0)],2)):Object(s["createCommentVNode"])("v-if",!0),Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(c).e("action"))},[e.loading?(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(w["a"]),{key:0,class:Object(s["normalizeClass"])(Object(s["unref"])(c).is("loading"))},{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(Object(s["unref"])(R["Loading"]))]),_:1},8,["class"])):e.activeActionIcon&&Object(s["unref"])(I)?(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(w["a"]),{key:1},{default:Object(s["withCtx"])(()=>[(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["resolveDynamicComponent"])(e.activeActionIcon)))]),_:1})):e.inactiveActionIcon&&!Object(s["unref"])(I)?(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(w["a"]),{key:2},{default:Object(s["withCtx"])(()=>[(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["resolveDynamicComponent"])(e.inactiveActionIcon)))]),_:1})):Object(s["createCommentVNode"])("v-if",!0)],2)],6),e.inlinePrompt||!e.activeIcon&&!e.activeText?Object(s["createCommentVNode"])("v-if",!0):(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",{key:1,class:Object(s["normalizeClass"])(Object(s["unref"])(M))},[e.activeIcon?(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(w["a"]),{key:0},{default:Object(s["withCtx"])(()=>[(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["resolveDynamicComponent"])(e.activeIcon)))]),_:1})):Object(s["createCommentVNode"])("v-if",!0),!e.activeIcon&&e.activeText?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",{key:1,"aria-hidden":!Object(s["unref"])(I)},Object(s["toDisplayString"])(e.activeText),9,$_)):Object(s["createCommentVNode"])("v-if",!0)],2))],14,Y_))}});var Z_=Object(h["a"])(X_,[["__file","/home/runner/work/element-plus/element-plus/packages/components/switch/src/switch.vue"]]);const ey=Object(k["a"])(Z_);var ty=n("74a0"),ny=n.n(ty);const ry=function(e){var t;return null==(t=e.target)?void 0:t.closest("td")},oy=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 a=r?null:function(n,r){return o?(Array.isArray(o)||(o=[o]),o.map(t=>"string"===typeof t?Object(x["get"])(n,t):t(n,r,e))):("$key"!==t&&Object(Q["isObject"])(n)&&"$value"in n&&(n=n.$value),[Object(Q["isObject"])(n)?Object(x["get"])(n,t):n])},i=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:a?a(e,t):null})).sort((e,t)=>{let r=i(e,t);return r||(r=e.index-t.index),r*+n}).map(e=>e.value)},ay=function(e,t){let n=null;return e.columns.forEach(e=>{e.id===t&&(n=e)}),n},iy=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||Object(g["b"])("ElTable","No column matching with column-key: "+t),n},sy=function(e,t,n){const r=(t.className||"").match(new RegExp(n+"-table_[^\\s]+","gm"));return r?ay(e,r[0]):null},cy=(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)},ly=function(e,t){const n={};return(e||[]).forEach((e,r)=>{n[cy(e,t)]={row:e,index:r}}),n};function uy(e,t){const n={};let r;for(r in e)n[r]=e[r];for(r in t)if(Object(Q["hasOwn"])(t,r)){const e=t[r];"undefined"!==typeof e&&(n[r]=e)}return n}function dy(e){return""===e||void 0!==e&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function py(e){return""===e||void 0!==e&&(e=dy(e),Number.isNaN(e)&&(e=80)),e}function fy(e){return"number"===typeof e?e:"string"===typeof e?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function hy(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce((e,t)=>(...n)=>e(t(...n)))}function my(e,t,n){let r=!1;const o=e.indexOf(t),a=-1!==o,i=i=>{"add"===i?e.push(t):e.splice(o,1),r=!0,Object(Q["isArray"])(t.children)&&t.children.forEach(t=>{my(e,t,null!=n?n:!a)})};return Object(u["a"])(n)?n&&!a?i("add"):!n&&a&&i("remove"):i(a?"remove":"add"),r}function vy(e,t,n="children",r="hasChildren"){const o=e=>!(Array.isArray(e)&&e.length);function a(e,i,s){t(e,i,s),i.forEach(e=>{if(e[r])return void t(e,null,s+1);const i=e[n];o(i)||a(e,i,s+1)})}e.forEach(e=>{if(e[r])return void t(e,null,0);const i=e[n];o(i)||a(e,i,0)})}let gy;function _y(e,t,n,r,o){o=Object(x["merge"])({enterable:!0,showArrow:!0},o);const a=null==e?void 0:e.dataset.prefix,i=null==e?void 0:e.querySelector(`.${a}-scrollbar__wrap`);function s(){const t="light"===o.effect,i=document.createElement("div");return i.className=[a+"-popper",t?"is-light":"is-dark",o.popperClass||""].join(" "),n=ny()(n),i.innerHTML=n,i.style.zIndex=String(r()),null==e||e.appendChild(i),i}function c(){const e=document.createElement("div");return e.className=a+"-popper__arrow",e}function l(){u&&u.update()}null==gy||gy(),gy=()=>{try{u&&u.destroy(),f&&(null==e||e.removeChild(f)),t.removeEventListener("mouseenter",d),t.removeEventListener("mouseleave",p),null==i||i.removeEventListener("scroll",gy),gy=void 0}catch(n){}};let u=null,d=l,p=gy;o.enterable&&({onOpen:d,onClose:p}=he({showAfter:o.showAfter,hideAfter:o.hideAfter,open:l,close:gy}));const f=s();f.onmouseenter=d,f.onmouseleave=p;const h=[];if(o.offset&&h.push({name:"offset",options:{offset:[0,o.offset]}}),o.showArrow){const e=f.appendChild(c());h.push({name:"arrow",options:{element:e,padding:10}})}const m=o.popperOptions||{};return u=Object(me["createPopper"])(t,f,{placement:o.placement||"top",strategy:"fixed",...m,modifiers:m.modifiers?h.concat(m.modifiers):h}),t.addEventListener("mouseenter",d),t.addEventListener("mouseleave",p),null==i||i.addEventListener("scroll",gy),u}function yy(e){return e.children?Object(x["flatMap"])(e.children,yy):[e]}function by(e,t){return e+t.colSpan}const Oy=(e,t,n,r)=>{let o=0,a=e;const i=n.states.columns.value;if(r){const t=yy(r[e]),n=i.slice(0,i.indexOf(t[0]));o=n.reduce(by,0),a=o+t.reduce(by,0)-1}else o=e;let s;switch(t){case"left":a<n.states.fixedLeafColumnsLength.value&&(s="left");break;case"right":o>=i.length-n.states.rightFixedLeafColumnsLength.value&&(s="right");break;default:a<n.states.fixedLeafColumnsLength.value?s="left":o>=i.length-n.states.rightFixedLeafColumnsLength.value&&(s="right")}return s?{direction:s,start:o,after:a}:{}},My=(e,t,n,r,o,a=0)=>{const i=[],{direction:s,start:c,after:l}=Oy(t,n,r,o);if(s){const t="left"===s;i.push(`${e}-fixed-column--${s}`),t&&l+a===r.states.fixedLeafColumnsLength.value-1?i.push("is-last-column"):t||c-a!==r.states.columns.value.length-r.states.rightFixedLeafColumnsLength.value||i.push("is-first-column")}return i};function ky(e,t){return e+(null===t.realWidth||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const Cy=(e,t,n,r)=>{const{direction:o,start:a=0,after:i=0}=Oy(e,t,n,r);if(!o)return;const s={},c="left"===o,l=n.states.columns.value;return c?s.left=l.slice(0,a).reduce(ky,0):s.right=l.slice(i+1).reverse().reduce(ky,0),s},wy=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]=e[t]+"px"))};function Iy(e){const t=Object(s["getCurrentInstance"])(),n=Object(s["ref"])(!1),r=Object(s["ref"])([]),o=()=>{const t=e.data.value||[],o=e.rowKey.value;if(n.value)r.value=t.slice();else if(o){const e=ly(r.value,o);r.value=t.reduce((t,n)=>{const r=cy(n,o),a=e[r];return a&&t.push(n),t},[])}else r.value=[]},a=(e,n)=>{const o=my(r.value,e,n);o&&t.emit("expand-change",e,r.value.slice())},i=n=>{t.store.assertRowKey();const o=e.data.value||[],a=e.rowKey.value,i=ly(o,a);r.value=n.reduce((e,t)=>{const n=i[t];return n&&e.push(n.row),e},[])},c=t=>{const n=e.rowKey.value;if(n){const e=ly(r.value,n);return!!e[cy(t,n)]}return r.value.includes(t)};return{updateExpandRows:o,toggleRowExpansion:a,setExpandRowKeys:i,isRowExpanded:c,states:{expandRows:r,defaultExpandAll:n}}}function Sy(e){const t=Object(s["getCurrentInstance"])(),n=Object(s["ref"])(null),r=Object(s["ref"])(null),o=e=>{t.store.assertRowKey(),n.value=e,i(e)},a=()=>{n.value=null},i=n=>{const{data:o,rowKey:a}=e;let i=null;a.value&&(i=(Object(s["unref"])(o)||[]).find(e=>cy(e,a.value)===n)),r.value=i,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))},l=()=>{const o=e.rowKey.value,s=e.data.value||[],c=r.value;if(!s.includes(c)&&c){if(o){const e=cy(c,o);i(e)}else r.value=null;null===r.value&&t.emit("current-change",null,c)}else n.value&&(i(n.value),a())};return{setCurrentRowKey:o,restoreCurrentRowKey:a,setCurrentRowByKey:i,updateCurrentRow:c,updateCurrentRowData:l,states:{_currentRowKey:n,currentRow:r}}}function Ty(e){const t=Object(s["ref"])([]),n=Object(s["ref"])({}),r=Object(s["ref"])(16),o=Object(s["ref"])(!1),a=Object(s["ref"])({}),i=Object(s["ref"])("hasChildren"),c=Object(s["ref"])("children"),l=Object(s["getCurrentInstance"])(),u=Object(s["computed"])(()=>{if(!e.rowKey.value)return{};const t=e.data.value||[];return p(t)}),d=Object(s["computed"])(()=>{const t=e.rowKey.value,n=Object.keys(a.value),r={};return n.length?(n.forEach(e=>{if(a.value[e].length){const n={children:[]};a.value[e].forEach(e=>{const o=cy(e,t);n.children.push(o),e[i.value]&&!r[o]&&(r[o]={children:[]})}),r[e]=n}}),r):r}),p=t=>{const n=e.rowKey.value,r={};return vy(t,(e,t,a)=>{const i=cy(e,n);Array.isArray(t)?r[i]={children:t.map(e=>cy(e,n)),level:a}:o.value&&(r[i]={children:[],lazy:!0,level:a})},c.value,i.value),r},f=(e=!1,r=(e=>null==(e=l.store)?void 0:e.states.defaultExpandAll.value)())=>{var a;const i=u.value,c=d.value,p=Object.keys(i),f={};if(p.length){const a=Object(s["unref"])(n),l=[],u=(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)}};p.forEach(e=>{const t=a[e],n={...i[e]};if(n.expanded=u(t,e),n.lazy){const{loaded:r=!1,loading:o=!1}=t||{};n.loaded=!!r,n.loading=!!o,l.push(e)}f[e]=n});const d=Object.keys(c);o.value&&d.length&&l.length&&d.forEach(e=>{const t=a[e],n=c[e].children;if(l.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:u(t,e),children:n,level:""}}})}n.value=f,null==(a=l.store)||a.updateTableScrollY()};Object(s["watch"])(()=>t.value,()=>{f(!0)}),Object(s["watch"])(()=>u.value,()=>{f()}),Object(s["watch"])(()=>d.value,()=>{f()});const h=e=>{t.value=e,f()},m=(t,r)=>{l.store.assertRowKey();const o=e.rowKey.value,a=cy(t,o),i=a&&n.value[a];if(a&&i&&"expanded"in i){const e=i.expanded;r="undefined"===typeof r?!i.expanded:r,n.value[a].expanded=r,e!==r&&l.emit("expand-change",t,r),l.store.updateTableScrollY()}},v=t=>{l.store.assertRowKey();const r=e.rowKey.value,a=cy(t,r),i=n.value[a];o.value&&i&&"loaded"in i&&!i.loaded?g(t,a,i):m(t,void 0)},g=(e,t,r)=>{const{load:o}=l.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&&(a.value[t]=r),l.emit("expand-change",e,!0)}))};return{loadData:g,loadOrToggle:v,toggleTreeExpansion:m,updateTreeExpandKeys:h,updateTreeData:f,normalize:p,states:{expandRowKeys:t,treeData:n,indent:r,lazy:o,lazyTreeNodeMap:a,lazyColumnIdentifier:i,childrenColumnName:c}}}const Ey=(e,t)=>{const n=t.sortingColumn;return n&&"string"!==typeof n.sortable?oy(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy):e},jy=e=>{const t=[];return e.forEach(e=>{e.children&&e.children.length>0?t.push.apply(t,jy(e.children)):t.push(e)}),t};function Dy(){var e;const t=Object(s["getCurrentInstance"])(),{size:n}=Object(s["toRefs"])(null==(e=t.proxy)?void 0:e.$props),r=Object(s["ref"])(null),o=Object(s["ref"])([]),a=Object(s["ref"])([]),i=Object(s["ref"])(!1),c=Object(s["ref"])([]),l=Object(s["ref"])([]),u=Object(s["ref"])([]),d=Object(s["ref"])([]),p=Object(s["ref"])([]),f=Object(s["ref"])([]),h=Object(s["ref"])([]),m=Object(s["ref"])([]),v=[],g=Object(s["ref"])(0),_=Object(s["ref"])(0),y=Object(s["ref"])(0),b=Object(s["ref"])(!1),O=Object(s["ref"])([]),M=Object(s["ref"])(!1),k=Object(s["ref"])(!1),C=Object(s["ref"])(null),w=Object(s["ref"])({}),I=Object(s["ref"])(null),S=Object(s["ref"])(null),T=Object(s["ref"])(null),E=Object(s["ref"])(null),j=Object(s["ref"])(null);Object(s["watch"])(o,()=>t.state&&N(!1),{deep:!0});const D=()=>{if(!r.value)throw new Error("[ElTable] prop row-key is required")},L=e=>{var t;null==(t=e.children)||t.forEach(t=>{t.fixed=e.fixed,L(t)})},A=()=>{c.value.forEach(e=>{L(e)}),d.value=c.value.filter(e=>!0===e.fixed||"left"===e.fixed),p.value=c.value.filter(e=>"right"===e.fixed),d.value.length>0&&c.value[0]&&"selection"===c.value[0].type&&!c.value[0].fixed&&(c.value[0].fixed=!0,d.value.unshift(c.value[0]));const e=c.value.filter(e=>!e.fixed);l.value=[].concat(d.value).concat(e).concat(p.value);const t=jy(e),n=jy(d.value),r=jy(p.value);g.value=t.length,_.value=n.length,y.value=r.length,u.value=[].concat(n).concat(t).concat(r),i.value=d.value.length>0||p.value.length>0},N=(e,n=!1)=>{e&&A(),n?t.state.doLayout():t.state.debouncedUpdateLayout()},x=e=>O.value.includes(e),R=()=>{b.value=!1;const e=O.value;e.length&&(O.value=[],t.emit("selection-change",[]))},P=()=>{let e;if(r.value){e=[];const t=ly(O.value,r.value),n=ly(o.value,r.value);for(const r in t)Object(Q["hasOwn"])(t,r)&&!n[r]&&e.push(t[r].row)}else e=O.value.filter(e=>!o.value.includes(e));if(e.length){const n=O.value.filter(t=>!e.includes(t));O.value=n,t.emit("selection-change",n.slice())}},U=()=>(O.value||[]).slice(),V=(e,n,r=!0)=>{const o=my(O.value,e,n);if(o){const n=(O.value||[]).slice();r&&t.emit("select",n,e),t.emit("selection-change",n)}},B=()=>{var e,n;const r=k.value?!b.value:!(b.value||O.value.length);b.value=r;let a=!1,i=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+i;C.value?C.value.call(null,e,n)&&my(O.value,e,r)&&(a=!0):my(O.value,e,r)&&(a=!0),i+=z(cy(e,s))}),a&&t.emit("selection-change",O.value?O.value.slice():[]),t.emit("select-all",O.value)},F=()=>{const e=ly(O.value,r.value);o.value.forEach(t=>{const n=cy(t,r.value),o=e[n];o&&(O.value[o.index]=t)})},G=()=>{var e,n,a;if(0===(null==(e=o.value)?void 0:e.length))return void(b.value=!1);let i;r.value&&(i=ly(O.value,r.value));const s=function(e){return i?!!i[cy(e,r.value)]:O.value.includes(e)};let c=!0,l=0,u=0;for(let r=0,d=(o.value||[]).length;r<d;r++){const e=null==(a=null==(n=null==t?void 0:t.store)?void 0:n.states)?void 0:a.rowKey.value,i=r+u,d=o.value[r],p=C.value&&C.value.call(null,d,i);if(s(d))l++;else if(!C.value||p){c=!1;break}u+=z(cy(d,e))}0===l&&(c=!1),b.value=c},z=e=>{var n;if(!t||!t.store)return 0;const{treeData:r}=t.store.states;let o=0;const a=null==(n=r.value[e])?void 0:n.children;return a&&(o+=a.length,a.forEach(e=>{o+=z(e)})),o},H=(e,t)=>{Array.isArray(e)||(e=[e]);const n={};return e.forEach(e=>{w.value[e.id]=t,n[e.columnKey||e.id]=t}),n},Y=(e,t,n)=>{S.value&&S.value!==e&&(S.value.order=null),S.value=e,T.value=t,E.value=n},q=()=>{let e=Object(s["unref"])(a);Object.keys(w.value).forEach(t=>{const n=w.value[t];if(!n||0===n.length)return;const r=ay({columns:u.value},t);r&&r.filterMethod&&(e=e.filter(e=>n.some(t=>r.filterMethod.call(null,t,e,r))))}),I.value=e},W=()=>{o.value=Ey(I.value,{sortingColumn:S.value,sortProp:T.value,sortOrder:E.value})},K=e=>{e&&e.filter||q(),W()},$=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=>iy({columns:u.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=u.value.find(t=>t.id===e);t&&(t.filteredValue=[])}),w.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},J=()=>{S.value&&(Y(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:X,toggleRowExpansion:Z,updateExpandRows:ee,states:te,isRowExpanded:ne}=Iy({data:o,rowKey:r}),{updateTreeExpandKeys:re,toggleTreeExpansion:oe,updateTreeData:ae,loadOrToggle:ie,states:se}=Ty({data:o,rowKey:r}),{updateCurrentRowData:ce,updateCurrentRow:le,setCurrentRowKey:ue,states:de}=Sy({data:o,rowKey:r}),pe=e=>{X(e),re(e)},fe=(e,t)=>{const n=u.value.some(({type:e})=>"expand"===e);n?Z(e,t):oe(e,t)};return{assertRowKey:D,updateColumns:A,scheduleLayout:N,isSelected:x,clearSelection:R,cleanSelection:P,getSelectionRows:U,toggleRowSelection:V,_toggleAllSelection:B,toggleAllSelection:null,updateSelectionByRowKey:F,updateAllSelected:G,updateFilters:H,updateCurrentRow:le,updateSort:Y,execFilter:q,execSort:W,execQuery:K,clearFilter:$,clearSort:J,toggleRowExpansion:Z,setExpandRowKeysAdapter:pe,setCurrentRowKey:ue,toggleRowExpansionAdapter:fe,isRowExpanded:ne,updateExpandRows:ee,updateCurrentRowData:ce,loadOrToggle:ie,updateTreeData:ae,states:{tableSize:n,rowKey:r,data:o,_data:a,isComplex:i,_columns:c,originColumns:l,columns:u,fixedColumns:d,rightFixedColumns:p,leafColumns:f,fixedLeafColumns:h,rightFixedLeafColumns:m,updateOrderFns:v,leafColumnsLength:g,fixedLeafColumnsLength:_,rightFixedLeafColumnsLength:y,isAllSelected:b,selection:O,reserveSelection:M,selectOnIndeterminate:k,selectable:C,filters:w,filteredData:I,sortingColumn:S,sortProp:T,sortOrder:E,hoverRow:j,...te,...se,...de}}}function Ly(e,t){return e.map(e=>{var n;return e.id===t.id?t:((null==(n=e.children)?void 0:n.length)&&(e.children=Ly(e.children,t)),e)})}function Ay(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)&&Ay(e.children)}),e.sort((e,t)=>e.no-t.no)}function Ny(){const e=Object(s["getCurrentInstance"])(),t=Dy(),n=Object(m["d"])("table"),r={setData(t,n){const r=Object(s["unref"])(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),Object(s["unref"])(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,o){const a=Object(s["unref"])(t._columns);let i=[];r?(r&&!r.children&&(r.children=[]),r.children.push(n),i=Ly(a,r)):(a.push(n),i=a),Ay(i),t._columns.value=i,t.updateOrderFns.push(o),"selection"===n.type&&(t.selectable.value=n.selectable,t.reserveSelection.value=n.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},updateColumnOrder(t,n){var r;const o=null==(r=n.getColumnIndex)?void 0:r.call(n);o!==n.no&&(Ay(t._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(t,n,r,o){const a=Object(s["unref"])(t._columns)||[];if(r)r.children.splice(r.children.findIndex(e=>e.id===n.id),1),Object(s["nextTick"])(()=>{var e;0===(null==(e=r.children)?void 0:e.length)&&delete r.children}),t._columns.value=Ly(a,r);else{const e=a.indexOf(n);e>-1&&(a.splice(e,1),t._columns.value=a)}const i=t.updateOrderFns.indexOf(o);i>-1&&t.updateOrderFns.splice(i,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(t,n){const{prop:r,order:o,init:a}=n;if(r){const n=Object(s["unref"])(t.columns).find(e=>e.property===r);n&&(n.order=o,e.store.updateSort(n,r,o),e.store.commit("changeSortCondition",{init:a}))}},changeSortCondition(t,n){const{sortingColumn:r,sortProp:o,sortOrder:a}=t,i=Object(s["unref"])(r),c=Object(s["unref"])(o),l=Object(s["unref"])(a);null===l&&(t.sortingColumn.value=null,t.sortProp.value=null);const u={filter:!0};e.store.execQuery(u),n&&(n.silent||n.init)||e.emit("sort-change",{column:i,prop:c,order:l}),e.store.updateTableScrollY()},filterChange(t,n){const{column:r,values:o,silent:a}=n,i=e.store.updateFilters(r,o);e.store.execQuery(),a||e.emit("filter-change",i),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))},a=function(){Object(s["nextTick"])(()=>e.layout.updateScrollY.apply(e.layout))};return{ns:n,...t,mutations:r,commit:o,updateTableScrollY:a}}const xy={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 Ry(e,t){if(!e)throw new Error("Table is required.");const n=Ny();return n.toggleAllSelection=Object(x["debounce"])(n._toggleAllSelection,10),Object.keys(xy).forEach(e=>{Uy(Vy(t,e),e,n)}),Py(n,t),n}function Py(e,t){Object.keys(xy).forEach(n=>{Object(s["watch"])(()=>Vy(t,n),t=>{Uy(t,n,e)})})}function Uy(e,t,n){let r=e,o=xy[t];"object"===typeof xy[t]&&(o=o.key,r=r||xy[t].default),n.states[o].value=r}function Vy(e,t){if(t.includes(".")){const n=t.split(".");let r=e;return n.forEach(e=>{r=r[e]}),r}return e[t]}class By{constructor(e){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=Object(s["ref"])(null),this.scrollX=Object(s["ref"])(!1),this.scrollY=Object(s["ref"])(!1),this.bodyWidth=Object(s["ref"])(null),this.fixedWidth=Object(s["ref"])(null),this.rightFixedWidth=Object(s["ref"])(null),this.gutterWidth=0;for(const t in e)Object(Q["hasOwn"])(e,t)&&(Object(s["isRef"])(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.scrollBarRef;if(this.table.vnode.el&&(null==t?void 0:t.wrapRef)){let e=!0;const n=this.scrollY.value;return e=t.wrapRef.scrollHeight>t.wrapRef.clientHeight,this.scrollY.value=e,n!==e}return!1}setHeight(e,t="height"){if(!c["isClient"])return;const n=this.table.vnode.el;if(e=fy(e),this.height.value=Number(e),!n&&(e||0===e))return Object(s["nextTick"])(()=>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(){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(!c["isClient"])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 a=this.store.states.fixedColumns.value;if(a.length>0){let e=0;a.forEach(t=>{e+=Number(t.realWidth||t.width)}),this.fixedWidth.value=e}const i=this.store.states.rightFixedColumns.value;if(i.length>0){let e=0;i.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:Fy}=ao,Gy=Object(s["defineComponent"])({name:"ElTableFilterPanel",components:{ElCheckbox:ao,ElCheckboxGroup:Fy,ElScrollbar:ne,ElTooltip:Dt,ElIcon:w["a"],ArrowDown:R["ArrowDown"],ArrowUp:R["ArrowUp"]},directives:{ClickOutside:ba},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup(e){const t=Object(s["getCurrentInstance"])(),{t:n}=Object(Vn["b"])(),r=Object(m["d"])("table-filter"),o=null==t?void 0:t.parent;o.filterPanels.value[e.column.id]||(o.filterPanels.value[e.column.id]=t);const a=Object(s["ref"])(!1),i=Object(s["ref"])(null),c=Object(s["computed"])(()=>e.column&&e.column.filters),l=Object(s["computed"])({get:()=>{var t;return((null==(t=e.column)?void 0:t.filteredValue)||[])[0]},set:e=>{u.value&&("undefined"!==typeof e&&null!==e?u.value.splice(0,1,e):u.value.splice(0,1))}}),u=Object(s["computed"])({get(){return e.column&&e.column.filteredValue||[]},set(t){e.column&&e.upDataColumn("filteredValue",t)}}),d=Object(s["computed"])(()=>!e.column||e.column.filterMultiple),p=e=>e.value===l.value,f=()=>{a.value=!1},h=e=>{e.stopPropagation(),a.value=!a.value},v=()=>{a.value=!1},g=()=>{b(u.value),f()},_=()=>{u.value=[],b(u.value),f()},y=e=>{l.value=e,b("undefined"!==typeof e&&null!==e?u.value:[]),f()},b=t=>{e.store.commit("filterChange",{column:e.column,values:t}),e.store.updateAllSelected()};Object(s["watch"])(a,t=>{e.column&&e.upDataColumn("filterOpened",t)},{immediate:!0});const O=Object(s["computed"])(()=>{var e,t;return null==(t=null==(e=i.value)?void 0:e.popperRef)?void 0:t.contentRef});return{tooltipVisible:a,multiple:d,filteredValue:u,filterValue:l,filters:c,handleConfirm:g,handleReset:_,handleSelect:y,isActive:p,t:n,ns:r,showFilterPanel:h,hideFilterPanel:v,popperPaneRef:O,tooltip:i}}}),zy={key:0},Hy=["disabled"],Yy=["label","onClick"];function qy(e,t,n,r,o,a){const i=Object(s["resolveComponent"])("el-checkbox"),c=Object(s["resolveComponent"])("el-checkbox-group"),l=Object(s["resolveComponent"])("el-scrollbar"),u=Object(s["resolveComponent"])("arrow-up"),d=Object(s["resolveComponent"])("arrow-down"),p=Object(s["resolveComponent"])("el-icon"),f=Object(s["resolveComponent"])("el-tooltip"),h=Object(s["resolveDirective"])("click-outside");return Object(s["openBlock"])(),Object(s["createBlock"])(f,{ref:"tooltip",visible:e.tooltipVisible,offset:0,placement:e.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,teleported:"",effect:"light",pure:"","popper-class":e.ns.b(),persistent:""},{content:Object(s["withCtx"])(()=>[e.multiple?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",zy,[Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(e.ns.e("content"))},[Object(s["createVNode"])(l,{"wrap-class":e.ns.e("wrap")},{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(c,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=t=>e.filteredValue=t),class:Object(s["normalizeClass"])(e.ns.e("checkbox-group"))},{default:Object(s["withCtx"])(()=>[(Object(s["openBlock"])(!0),Object(s["createElementBlock"])(s["Fragment"],null,Object(s["renderList"])(e.filters,e=>(Object(s["openBlock"])(),Object(s["createBlock"])(i,{key:e.value,label:e.value},{default:Object(s["withCtx"])(()=>[Object(s["createTextVNode"])(Object(s["toDisplayString"])(e.text),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(e.ns.e("bottom"))},[Object(s["createElementVNode"])("button",{class:Object(s["normalizeClass"])({[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))},Object(s["toDisplayString"])(e.t("el.table.confirmFilter")),11,Hy),Object(s["createElementVNode"])("button",{type:"button",onClick:t[2]||(t[2]=(...t)=>e.handleReset&&e.handleReset(...t))},Object(s["toDisplayString"])(e.t("el.table.resetFilter")),1)],2)])):(Object(s["openBlock"])(),Object(s["createElementBlock"])("ul",{key:1,class:Object(s["normalizeClass"])(e.ns.e("list"))},[Object(s["createElementVNode"])("li",{class:Object(s["normalizeClass"])([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))},Object(s["toDisplayString"])(e.t("el.table.clearFilter")),3),(Object(s["openBlock"])(!0),Object(s["createElementBlock"])(s["Fragment"],null,Object(s["renderList"])(e.filters,t=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("li",{key:t.value,class:Object(s["normalizeClass"])([e.ns.e("list-item"),e.ns.is("active",e.isActive(t))]),label:t.value,onClick:n=>e.handleSelect(t.value)},Object(s["toDisplayString"])(t.text),11,Yy))),128))],2))]),default:Object(s["withCtx"])(()=>[Object(s["withDirectives"])((Object(s["openBlock"])(),Object(s["createElementBlock"])("span",{class:Object(s["normalizeClass"])([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))},[Object(s["createVNode"])(p,null,{default:Object(s["withCtx"])(()=>[e.column.filterOpened?(Object(s["openBlock"])(),Object(s["createBlock"])(u,{key:0})):(Object(s["openBlock"])(),Object(s["createBlock"])(d,{key:1}))]),_:1})],2)),[[h,e.hideFilterPanel,e.popperPaneRef]])]),_:1},8,["visible","placement","popper-class"])}var Wy=Object(h["a"])(Gy,[["render",qy],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/filter-panel.vue"]]);function Ky(e){const t=Object(s["getCurrentInstance"])();Object(s["onBeforeMount"])(()=>{n.value.addObserver(t)}),Object(s["onMounted"])(()=>{r(n.value),o(n.value)}),Object(s["onUpdated"])(()=>{r(n.value),o(n.value)}),Object(s["onUnmounted"])(()=>{n.value.removeObserver(t)});const n=Object(s["computed"])(()=>{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(),a={};o.forEach(e=>{a[e.id]=e});for(let e=0,i=r.length;e<i;e++){const t=r[e],n=t.getAttribute("name"),o=a[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,i=o.length;e<i;e++){const n=o[e];n.setAttribute("width",t.scrollY.value?t.gutterWidth:"0")}const a=(null==(r=e.vnode.el)?void 0:r.querySelectorAll("th.gutter"))||[];for(let e=0,i=a.length;e<i;e++){const n=a[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 $y=Symbol("ElTable");function Jy(e,t){const n=Object(s["getCurrentInstance"])(),r=Object(s["inject"])($y),o=e=>{e.stopPropagation()},a=(e,t)=>{!t.filters&&t.sortable?_(e,t,!1):t.filterable&&!t.sortable&&o(e),null==r||r.emit("header-click",t,e)},i=(e,t)=>{null==r||r.emit("header-contextmenu",t,e)},l=Object(s["ref"])(null),d=Object(s["ref"])(!1),p=Object(s["ref"])({}),f=(o,a)=>{if(c["isClient"]&&!(a.children&&a.children.length>0)&&l.value&&e.border){d.value=!0;const i=r;t("set-drag-visible",!0);const s=null==i?void 0:i.vnode.el,c=s.getBoundingClientRect().left,u=n.vnode.el.querySelector("th."+a.id),f=u.getBoundingClientRect(),h=f.left-c+30;Object(v["a"])(u,"noclick"),p.value={startMouseLeft:o.clientX,startLeft:f.right-c,startColumnLeft:f.left-c,tableLeft:c};const m=null==i?void 0:i.refs.resizeProxy;m.style.left=p.value.startLeft+"px",document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const g=e=>{const t=e.clientX-p.value.startMouseLeft,n=p.value.startLeft+t;m.style.left=Math.max(h,n)+"px"},_=()=>{if(d.value){const{startColumnLeft:n,startLeft:r}=p.value,s=Number.parseInt(m.style.left,10),c=s-n;a.width=a.realWidth=c,null==i||i.emit("header-dragend",a.width,r-n,a,o),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",d.value=!1,l.value=null,p.value={},t("set-drag-visible",!1)}document.removeEventListener("mousemove",g),document.removeEventListener("mouseup",_),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{Object(v["e"])(u,"noclick")},0)};document.addEventListener("mousemove",g),document.addEventListener("mouseup",_)}},h=(t,n)=>{if(n.children&&n.children.length>0)return;const r=t.target;if(!Object(u["b"])(r))return;const o=null==r?void 0:r.closest("th");if(n&&n.resizable&&!d.value&&e.border){const e=o.getBoundingClientRect(),r=document.body.style;e.width>12&&e.right-t.pageX<8?(r.cursor="col-resize",Object(v["d"])(o,"is-sortable")&&(o.style.cursor="col-resize"),l.value=n):d.value||(r.cursor="",Object(v["d"])(o,"is-sortable")&&(o.style.cursor="pointer"),l.value=null)}},m=()=>{c["isClient"]&&(document.body.style.cursor="")},g=({order:e,sortOrders:t})=>{if(""===e)return t[0];const n=t.indexOf(e||null);return t[n>t.length-2?0:n+1]},_=(t,n,o)=>{var a;t.stopPropagation();const i=n.order===o?null:o||g(n),s=null==(a=t.target)?void 0:a.closest("th");if(s&&Object(v["d"])(s,"noclick"))return void Object(v["e"])(s,"noclick");if(!n.sortable)return;const c=e.store.states;let l,u=c.sortProp.value;const d=c.sortingColumn.value;(d!==n||d===n&&null===d.order)&&(d&&(d.order=null),c.sortingColumn.value=n,u=n.property),l=n.order=i||null,c.sortProp.value=u,c.sortOrder.value=l,null==r||r.store.commit("changeSortCondition")};return{handleHeaderClick:a,handleHeaderContextMenu:i,handleMouseDown:f,handleMouseMove:h,handleMouseOut:m,handleSortClick:_,handleFilterClick:o}}function Qy(e){const t=Object(s["inject"])($y),n=Object(m["d"])("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(" ")},a=(n,r,o,a)=>{var i;let s=null!=(i=null==t?void 0:t.props.headerCellStyle)?i:{};"function"===typeof s&&(s=s.call(null,{rowIndex:n,columnIndex:r,row:o,column:a}));const c=Cy(r,a.fixed,e.store,o);return wy(c,"left"),wy(c,"right"),Object.assign({},s,c)},i=(r,o,a,i)=>{const s=My(n.b(),o,i.fixed,e.store,a),c=[i.id,i.order,i.headerAlign,i.className,i.labelClassName,...s];i.children||c.push("is-leaf"),i.sortable&&c.push("is-sortable");const l=null==t?void 0:t.props.headerCellClassName;return"string"===typeof l?c.push(l):"function"===typeof l&&c.push(l.call(null,{rowIndex:r,columnIndex:o,row:a,column:i})),c.push(n.e("cell")),c.filter(e=>Boolean(e)).join(" ")};return{getHeaderRowStyle:r,getHeaderRowClass:o,getHeaderCellStyle:a,getHeaderCellClass:i}}const Xy=e=>{const t=[];return e.forEach(e=>{e.children?(t.push(e),t.push.apply(t,Xy(e.children))):t.push(e)}),t},Zy=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 a=0;a<t;a++)r.push([]);const o=Xy(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 eb(e){const t=Object(s["inject"])($y),n=Object(s["computed"])(()=>Zy(e.store.states.originColumns.value)),r=Object(s["computed"])(()=>{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 tb=Object(s["defineComponent"])({name:"ElTableHeader",components:{ElCheckbox:ao},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e,{emit:t}){const n=Object(s["getCurrentInstance"])(),r=Object(s["inject"])($y),o=Object(m["d"])("table"),a=Object(s["ref"])({}),{onColumnsChange:i,onScrollableChange:c}=Ky(r);Object(s["onMounted"])(async()=>{await Object(s["nextTick"])(),await Object(s["nextTick"])();const{prop:t,order:n}=e.defaultSort;null==r||r.store.commit("sort",{prop:t,order:n,init:!0})});const{handleHeaderClick:l,handleHeaderContextMenu:u,handleMouseDown:d,handleMouseMove:p,handleMouseOut:f,handleSortClick:h,handleFilterClick:v}=Jy(e,t),{getHeaderRowStyle:g,getHeaderRowClass:_,getHeaderCellStyle:y,getHeaderCellClass:b}=Qy(e),{isGroup:O,toggleAllSelection:M,columnRows:k}=eb(e);return n.state={onColumnsChange:i,onScrollableChange:c},n.filterPanels=a,{ns:o,filterPanels:a,onColumnsChange:i,onScrollableChange:c,columnRows:k,getHeaderRowClass:_,getHeaderRowStyle:g,getHeaderCellClass:b,getHeaderCellStyle:y,handleHeaderClick:l,handleHeaderContextMenu:u,handleMouseDown:d,handleMouseMove:p,handleMouseOut:f,handleSortClick:h,handleFilterClick:v,isGroup:O,toggleAllSelection:M}},render(){const{ns:e,isGroup:t,columnRows:n,getHeaderCellStyle:r,getHeaderCellClass:o,getHeaderRowClass:a,getHeaderRowStyle:i,handleHeaderClick:c,handleHeaderContextMenu:l,handleMouseDown:u,handleMouseMove:d,handleSortClick:p,handleMouseOut:f,store:h,$parent:m}=this;let v=1;return Object(s["h"])("thead",{class:{[e.is("group")]:t}},n.map((e,t)=>Object(s["h"])("tr",{class:a(t),key:t,style:i(t)},e.map((n,a)=>(n.rowSpan>v&&(v=n.rowSpan),Object(s["h"])("th",{class:o(t,a,e,n),colspan:n.colSpan,key:n.id+"-thead",rowspan:n.rowSpan,style:r(t,a,e,n),onClick:e=>c(e,n),onContextmenu:e=>l(e,n),onMousedown:e=>u(e,n),onMousemove:e=>d(e,n),onMouseout:f},[Object(s["h"])("div",{class:["cell",n.filteredValue&&n.filteredValue.length>0?"highlight":""]},[n.renderHeader?n.renderHeader({column:n,$index:a,store:h,_self:m}):n.label,n.sortable&&Object(s["h"])("span",{onClick:e=>p(e,n),class:"caret-wrapper"},[Object(s["h"])("i",{onClick:e=>p(e,n,"ascending"),class:"sort-caret ascending"}),Object(s["h"])("i",{onClick:e=>p(e,n,"descending"),class:"sort-caret descending"})]),n.filterable&&Object(s["h"])(Wy,{store:h,placement:n.filterPlacement||"bottom-start",column:n,upDataColumn:(e,t)=>{n[e]=t}})])]))))))}});function nb(e){const t=Object(s["inject"])($y),n=Object(s["ref"])(""),r=Object(s["ref"])(Object(s["h"])("div")),{nextZIndex:o}=Object(ft["b"])(),a=(n,r,o)=>{var a;const i=t,s=ry(n);let c;const l=null==(a=null==i?void 0:i.vnode.el)?void 0:a.dataset.prefix;s&&(c=sy({columns:e.store.states.columns.value},s,l),c&&(null==i||i.emit("cell-"+o,r,c,s,n))),null==i||i.emit("row-"+o,r,c,n)},i=(e,t)=>{a(e,t,"dblclick")},c=(t,n)=>{e.store.commit("setCurrentRow",n),a(t,n,"click")},l=(e,t)=>{a(e,t,"contextmenu")},u=Object(x["debounce"])(t=>{e.store.commit("setHoverRow",t)},30),d=Object(x["debounce"])(()=>{e.store.commit("setHoverRow",null)},30),p=e=>{const t=window.getComputedStyle(e,null),n=Number.parseInt(t.paddingLeft,10)||0,r=Number.parseInt(t.paddingRight,10)||0,o=Number.parseInt(t.paddingTop,10)||0,a=Number.parseInt(t.paddingBottom,10)||0;return{left:n,right:r,top:o,bottom:a}},f=(n,r,a)=>{var i;const s=t,c=ry(n),l=null==(i=null==s?void 0:s.vnode.el)?void 0:i.dataset.prefix;if(c){const t=sy({columns:e.store.states.columns.value},c,l),o=s.hoverState={cell:c,column:t,row:r};null==s||s.emit("cell-mouse-enter",o.row,o.column,o.cell,n)}if(!a)return;const u=n.target.querySelector(".cell");if(!Object(v["d"])(u,l+"-tooltip")||!u.childNodes.length)return;const d=document.createRange();d.setStart(u,0),d.setEnd(u,u.childNodes.length);let f=d.getBoundingClientRect().width,h=d.getBoundingClientRect().height;const m=f-Math.floor(f);m<.001&&(f=Math.floor(f));const g=h-Math.floor(h);g<.001&&(h=Math.floor(h));const{top:_,left:y,right:b,bottom:O}=p(u),M=y+b,k=_+O;(f+M>u.offsetWidth||h+k>u.offsetHeight||u.scrollWidth>u.offsetWidth)&&_y(null==t?void 0:t.refs.tableWrapper,c,c.innerText||c.textContent,o,a)},h=e=>{const n=ry(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:c,handleContextMenu:l,handleMouseEnter:u,handleMouseLeave:d,handleCellMouseEnter:f,handleCellMouseLeave:h,tooltipContent:n,tooltipTrigger:r}}function rb(e){const t=Object(s["inject"])($y),n=Object(m["d"])("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 a=[n.e("row")];(null==t?void 0:t.props.highlightCurrentRow)&&r===e.store.states.currentRow.value&&a.push("current-row"),e.stripe&&o%2===1&&a.push(n.em("row","striped"));const i=null==t?void 0:t.props.rowClassName;return"string"===typeof i?a.push(i):"function"===typeof i&&a.push(i.call(null,{row:r,rowIndex:o})),a},a=(n,r,o,a)=>{const i=null==t?void 0:t.props.cellStyle;let s=null!=i?i:{};"function"===typeof i&&(s=i.call(null,{rowIndex:n,columnIndex:r,row:o,column:a}));const c=Cy(r,null==e?void 0:e.fixed,e.store);return wy(c,"left"),wy(c,"right"),Object.assign({},s,c)},i=(r,o,a,i,s)=>{const c=My(n.b(),o,null==e?void 0:e.fixed,e.store,void 0,s),l=[i.id,i.align,i.className,...c],u=null==t?void 0:t.props.cellClassName;return"string"===typeof u?l.push(u):"function"===typeof u&&l.push(u.call(null,{rowIndex:r,columnIndex:o,row:a,column:i})),l.push(n.e("cell")),l.filter(e=>Boolean(e)).join(" ")},c=(e,n,r,o)=>{let a=1,i=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)?(a=t[0],i=t[1]):"object"===typeof t&&(a=t.rowspan,i=t.colspan)}return{rowspan:a,colspan:i}},l=(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:a,getCellClass:i,getSpan:c,getColspanRealWidth:l}}function ob(e){const t=Object(s["inject"])($y),n=Object(m["d"])("table"),{handleDoubleClick:r,handleClick:o,handleContextMenu:a,handleMouseEnter:i,handleMouseLeave:c,handleCellMouseEnter:l,handleCellMouseLeave:u,tooltipContent:d,tooltipTrigger:p}=nb(e),{getRowStyle:f,getRowClass:h,getCellStyle:v,getCellClass:g,getSpan:_,getColspanRealWidth:y}=rb(e),b=Object(s["computed"])(()=>e.store.states.columns.value.findIndex(({type:e})=>"default"===e)),O=(e,n)=>{const r=t.props.rowKey;return r?cy(e,r):n},M=(d,p,m,M=!1)=>{const{tooltipEffect:C,tooltipOptions:w,store:I}=e,{indent:S,columns:T}=I.states,E=h(d,p);let j=!0;m&&(E.push(n.em("row","level-"+m.level)),j=m.display);const D=j?null:{display:"none"};return Object(s["h"])("tr",{style:[D,f(d,p)],class:E,key:O(d,p),onDblclick:e=>r(e,d),onClick:e=>o(e,d),onContextmenu:e=>a(e,d),onMouseenter:()=>i(p),onMouseleave:c},T.value.map((n,r)=>{const{rowspan:o,colspan:a}=_(d,n,p,r);if(!o||!a)return null;const i={...n};i.realWidth=y(T.value,a,r);const c={store:e.store,_self:e.context||t,column:i,row:d,$index:p,cellIndex:r,expanded:M};r===b.value&&m&&(c.treeNode={indent:m.level*S.value,level:m.level},"boolean"===typeof m.expanded&&(c.treeNode.expanded=m.expanded,"loading"in m&&(c.treeNode.loading=m.loading),"noLazyChildren"in m&&(c.treeNode.noLazyChildren=m.noLazyChildren)));const f=`${p},${r}`,h=i.columnKey||i.rawColumnKey||"",O=k(r,n,c),I=n.showOverflowTooltip&&Object(x["merge"])({effect:C},w,n.showOverflowTooltip);return Object(s["h"])("td",{style:v(p,r,d,n),class:g(p,r,d,n,a-1),key:`${h}${f}`,rowspan:o,colspan:a,onMouseenter:e=>l(e,d,I),onMouseleave:u},[O])}))},k=(e,t,n)=>t.renderCell(n),C=(r,o)=>{const a=e.store,{isRowExpanded:i,assertRowKey:c}=a,{treeData:l,lazyTreeNodeMap:u,childrenColumnName:d,rowKey:p}=a.states,f=a.states.columns.value,h=f.some(({type:e})=>"expand"===e);if(h){const e=i(r),c=M(r,o,void 0,e),l=t.renderExpanded;return e?l?[[c,Object(s["h"])("tr",{key:"expanded-row__"+c.key},[Object(s["h"])("td",{colspan:f.length,class:`${n.e("cell")} ${n.e("expanded-cell")}`},[l({row:r,$index:o,store:a,expanded:e})])])]]:(console.error("[Element Error]renderExpanded is required."),c):[[c]]}if(Object.keys(l.value).length){c();const e=cy(r,p.value);let t=l.value[e],n=null;t&&(n={expanded:t.expanded,level:t.level,display:!0},"boolean"===typeof t.lazy&&("boolean"===typeof t.loaded&&t.loaded&&(n.noLazyChildren=!(t.children&&t.children.length)),n.loading=t.loading));const a=[M(r,o,n)];if(t){let n=0;const i=(e,r)=>{e&&e.length&&r&&e.forEach(e=>{const s={display:r.display&&r.expanded,level:r.level+1,expanded:!1,noLazyChildren:!1,loading:!1},c=cy(e,p.value);if(void 0===c||null===c)throw new Error("For nested data item, row-key is required.");if(t={...l.value[c]},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)),n++,a.push(M(e,o+n,s)),t){const n=u.value[c]||e[d.value];i(n,t)}})};t.display=!0;const s=u.value[e]||r[d.value];i(s,t)}return a}return M(r,o,void 0)};return{wrappedRowRender:C,tooltipContent:d,tooltipTrigger:p}}const ab={store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,tooltipOptions:{type:Object},context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean};var ib=Object(s["defineComponent"])({name:"ElTableBody",props:ab,setup(e){const t=Object(s["getCurrentInstance"])(),n=Object(s["inject"])($y),r=Object(m["d"])("table"),{wrappedRowRender:o,tooltipContent:a,tooltipTrigger:i}=ob(e),{onColumnsChange:l,onScrollableChange:u}=Ky(n);return Object(s["watch"])(e.store.states.hoverRow,(n,o)=>{if(!e.store.states.isComplex.value||!c["isClient"])return;let a=window.requestAnimationFrame;a||(a=e=>window.setTimeout(e,16)),a(()=>{const e=null==t?void 0:t.vnode.el,a=Array.from((null==e?void 0:e.children)||[]).filter(e=>null==e?void 0:e.classList.contains(""+r.e("row"))),i=a[o],s=a[n];i&&Object(v["e"])(i,"hover-row"),s&&Object(v["a"])(s,"hover-row")})}),Object(s["onUnmounted"])(()=>{var e;null==(e=gy)||e()}),{ns:r,onColumnsChange:l,onScrollableChange:u,wrappedRowRender:o,tooltipContent:a,tooltipTrigger:i}},render(){const{wrappedRowRender:e,store:t}=this,n=t.states.data.value||[];return Object(s["h"])("tbody",{},[n.reduce((t,n)=>t.concat(e(n,t.length)),[])])}});function sb(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 Object(s["h"])("colgroup",{},n.map(e=>Object(s["h"])("col",r(e))))}function cb(){const e=Object(s["inject"])($y),t=null==e?void 0:e.store,n=Object(s["computed"])(()=>t.states.fixedLeafColumnsLength.value),r=Object(s["computed"])(()=>t.states.rightFixedColumns.value.length),o=Object(s["computed"])(()=>t.states.columns.value.length),a=Object(s["computed"])(()=>t.states.fixedColumns.value.length),i=Object(s["computed"])(()=>t.states.rightFixedColumns.value.length);return{leftFixedLeafCount:n,rightFixedLeafCount:r,columnsCount:o,leftFixedCount:a,rightFixedCount:i,columns:t.states.columns}}function lb(e){const{columns:t}=cb(),n=Object(m["d"])("table"),r=(t,r)=>{const o=t[r],a=[n.e("cell"),o.id,o.align,o.labelClassName,...My(n.b(),r,o.fixed,e.store)];return o.className&&a.push(o.className),o.children||a.push(n.is("leaf")),a},o=(t,n)=>{const r=Cy(n,t.fixed,e.store);return wy(r,"left"),wy(r,"right"),r};return{getCellClasses:r,getCellStyles:o,columns:t}}sb.props=["columns","tableLayout"];var ub=Object(s["defineComponent"])({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}=lb(e),o=Object(m["d"])("table");return{ns:o,getCellClasses:t,getCellStyles:n,columns:r}},render(){const{columns:e,getCellStyles:t,getCellClasses:n,summaryMethod:r,sumText:o,ns:a}=this,i=this.store.states.data.value;let c=[];return r?c=r({columns:e,data:i}):e.forEach((e,t)=>{if(0===t)return void(c[t]=o);const n=i.map(t=>Number(t[e.property])),r=[];let a=!0;n.forEach(e=>{if(!Number.isNaN(+e)){a=!1;const t=(""+e).split(".")[1];r.push(t?t.length:0)}});const s=Math.max.apply(null,r);c[t]=a?"":n.reduce((e,t)=>{const n=Number(t);return Number.isNaN(+n)?e:Number.parseFloat((e+t).toFixed(Math.min(s,20)))},0)}),Object(s["h"])("table",{class:a.e("footer"),cellspacing:"0",cellpadding:"0",border:"0"},[sb({columns:e}),Object(s["h"])("tbody",[Object(s["h"])("tr",{},[...e.map((r,o)=>Object(s["h"])("td",{key:o,colspan:r.colSpan,rowspan:r.rowSpan,class:n(e,o),style:t(r,o)},[Object(s["h"])("div",{class:["cell",r.labelClassName]},[c[o]])]))])])])}});function db(e){const t=t=>{e.commit("setCurrentRow",t)},n=()=>e.getSelectionRows(),r=(t,n)=>{e.toggleRowSelection(t,n,!1),e.updateAllSelected()},o=()=>{e.clearSelection()},a=t=>{e.clearFilter(t)},i=()=>{e.commit("toggleAllSelection")},s=(t,n)=>{e.toggleRowExpansionAdapter(t,n)},c=()=>{e.clearSort()},l=(t,n)=>{e.commit("sort",{prop:t,order:n})};return{setCurrentRow:t,getSelectionRows:n,toggleRowSelection:r,clearSelection:o,clearFilter:a,toggleAllSelection:i,toggleRowExpansion:s,clearSort:c,sort:l}}function pb(e,t,n,r){const o=Object(s["ref"])(!1),a=Object(s["ref"])(null),i=Object(s["ref"])(!1),l=e=>{i.value=e},u=Object(s["ref"])({width:null,height:null,headerHeight:null}),d=Object(s["ref"])(!1),p={display:"inline-block",verticalAlign:"middle"},f=Object(s["ref"])(),h=Object(s["ref"])(0),m=Object(s["ref"])(0),v=Object(s["ref"])(0),g=Object(s["ref"])(0),_=Object(s["ref"])(0);Object(s["watchEffect"])(()=>{t.setHeight(e.height)}),Object(s["watchEffect"])(()=>{t.setMaxHeight(e.maxHeight)}),Object(s["watch"])(()=>[e.currentRowKey,n.states.rowKey],([e,t])=>{Object(s["unref"])(t)&&Object(s["unref"])(e)&&n.setCurrentRowKey(""+e)},{immediate:!0}),Object(s["watch"])(()=>e.data,e=>{r.store.commit("setData",e)},{immediate:!0,deep:!0}),Object(s["watchEffect"])(()=>{e.expandRowKeys&&n.setExpandRowKeysAdapter(e.expandRowKeys)});const y=()=>{r.store.commit("setHoverRow",null),r.hoverState&&(r.hoverState=null)},b=(e,t)=>{const{pixelX:n,pixelY:o}=t;Math.abs(n)>=Math.abs(o)&&(r.refs.bodyWrapper.scrollLeft+=t.pixelX/5)},O=Object(s["computed"])(()=>e.height||e.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0),M=Object(s["computed"])(()=>({width:t.bodyWidth.value?t.bodyWidth.value+"px":""})),k=()=>{O.value&&t.updateElsHeight(),t.updateColumnsWidth(),requestAnimationFrame(S)};Object(s["onMounted"])(async()=>{await Object(s["nextTick"])(),n.updateColumns(),T(),requestAnimationFrame(k);const t=r.vnode.el,o=r.refs.headerWrapper;e.flexible&&t&&t.parentElement&&(t.parentElement.style.minWidth="0"),u.value={width:f.value=t.offsetWidth,height:t.offsetHeight,headerHeight:e.showHeader&&o?o.offsetHeight:null},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 C=(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;C(t,e)},I=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(I(e)||w(e))}const e=r.refs.scrollBarRef.wrapRef;if(!e)return;const{scrollLeft:n,offsetWidth:o,scrollWidth:a}=e,{headerWrapper:i,footerWrapper:s}=r.refs;i&&(i.scrollLeft=n),s&&(s.scrollLeft=n);const c=a-o-1;w(n>=c?"is-scrolling-right":0===n?"is-scrolling-left":"is-scrolling-middle")},T=()=>{r.refs.scrollBarRef&&(r.refs.scrollBarRef.wrapRef&&Object(c["useEventListener"])(r.refs.scrollBarRef.wrapRef,"scroll",S,{passive:!0}),e.fit?Object(c["useResizeObserver"])(r.vnode.el,E):Object(c["useEventListener"])(window,"resize",E),Object(c["useResizeObserver"])(r.refs.bodyWrapper,()=>{var e,t;E(),null==(t=null==(e=r.refs)?void 0:e.scrollBarRef)||t.update()}))},E=()=>{var t,n,o,a;const i=r.vnode.el;if(!r.$ready||!i)return;let s=!1;const{width:c,height:l,headerHeight:d}=u.value,p=f.value=i.offsetWidth;c!==p&&(s=!0);const y=i.offsetHeight;(e.height||O.value)&&l!==y&&(s=!0);const b="fixed"===e.tableLayout?r.refs.headerWrapper:null==(t=r.refs.tableHeaderRef)?void 0:t.$el;e.showHeader&&(null==b?void 0:b.offsetHeight)!==d&&(s=!0),h.value=(null==(n=r.refs.tableWrapper)?void 0:n.scrollHeight)||0,v.value=(null==b?void 0:b.scrollHeight)||0,g.value=(null==(o=r.refs.footerWrapper)?void 0:o.offsetHeight)||0,_.value=(null==(a=r.refs.appendWrapper)?void 0:a.offsetHeight)||0,m.value=h.value-v.value-g.value-_.value,s&&(u.value={width:p,height:y,headerHeight:e.showHeader&&(null==b?void 0:b.offsetHeight)||0},k())},j=Object(xt["b"])(),D=Object(s["computed"])(()=>{const{bodyWidth:e,scrollY:n,gutterWidth:r}=t;return e.value?e.value-(n.value?r:0)+"px":""}),L=Object(s["computed"])(()=>e.maxHeight?"fixed":e.tableLayout),A=Object(s["computed"])(()=>{if(e.data&&e.data.length)return null;let t="100%";e.height&&m.value&&(t=m.value+"px");const n=f.value;return{width:n?n+"px":"",height:t}}),N=Object(s["computed"])(()=>e.height?{height:Number.isNaN(Number(e.height))?e.height:e.height+"px"}:e.maxHeight?{maxHeight:Number.isNaN(Number(e.maxHeight))?e.maxHeight:e.maxHeight+"px"}:{}),x=Object(s["computed"])(()=>e.height?{height:"100%"}:e.maxHeight?Number.isNaN(Number(e.maxHeight))?{maxHeight:`calc(${e.maxHeight} - ${v.value+g.value}px)`}:{maxHeight:e.maxHeight-v.value-g.value+"px"}:{}),R=(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)};return{isHidden:o,renderExpanded:a,setDragVisible:l,isGroup:d,handleMouseLeave:y,handleHeaderFooterMousewheel:b,tableSize:j,emptyBlockStyle:A,handleFixedMousewheel:R,resizeProxyVisible:i,bodyWidth:D,resizeState:u,doLayout:k,tableBodyStyles:M,tableLayout:L,scrollbarViewStyle:p,tableInnerStyle:N,scrollbarStyle:x}}function fb(e){const t=Object(s["ref"])(),n=()=>{const n=e.vnode.el,r=n.querySelector(".hidden-columns"),o={childList:!0,subtree:!0},a=e.store.states.updateOrderFns;t.value=new MutationObserver(()=>{a.forEach(e=>e())}),t.value.observe(r,o)};Object(s["onMounted"])(()=>{n()}),Object(s["onUnmounted"])(()=>{var e;null==(e=t.value)||e.disconnect()})}var hb={data:{type:Array,default:()=>[]},size:Lr["c"],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,tooltipOptions:Object,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},flexible:Boolean,showOverflowTooltip:[Boolean,Object]};const mb=()=>{const e=Object(s["ref"])(),t=(t,n)=>{const r=e.value;r&&r.scrollTo(t,n)},n=(t,n)=>{const r=e.value;r&&Object(u["d"])(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 vb=n("0512"),gb=n.n(vb);const _b=function(e,t){if(e&&e.addEventListener){const n=function(e){const n=gb()(e);t&&Reflect.apply(t,this,[e,n])};e.addEventListener("wheel",n,{passive:!0})}},yb={beforeMount(e,t){_b(e,t.value)}};let bb=1;const Ob=Object(s["defineComponent"])({name:"ElTable",directives:{Mousewheel:yb},components:{TableHeader:tb,TableBody:ib,TableFooter:ub,ElScrollbar:ne,hColgroup:sb},props:hb,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}=Object(Vn["b"])(),n=Object(m["d"])("table"),r=Object(s["getCurrentInstance"])();Object(s["provide"])($y,r);const o=Ry(r,e);r.store=o;const a=new By({store:r.store,table:r,fit:e.fit,showHeader:e.showHeader});r.layout=a;const i=Object(s["computed"])(()=>0===(o.states.data.value||[]).length),{setCurrentRow:c,getSelectionRows:l,toggleRowSelection:u,clearSelection:d,clearFilter:p,toggleAllSelection:f,toggleRowExpansion:h,clearSort:v,sort:g}=db(o),{isHidden:_,renderExpanded:y,setDragVisible:b,isGroup:O,handleMouseLeave:M,handleHeaderFooterMousewheel:k,tableSize:C,emptyBlockStyle:w,handleFixedMousewheel:I,resizeProxyVisible:S,bodyWidth:T,resizeState:E,doLayout:j,tableBodyStyles:D,tableLayout:L,scrollbarViewStyle:A,tableInnerStyle:N,scrollbarStyle:R}=pb(e,a,o,r),{scrollBarRef:P,scrollTo:U,setScrollLeft:V,setScrollTop:B}=mb(),F=Object(x["debounce"])(j,50),G=`${n.namespace.value}-table_${bb++}`;r.tableId=G,r.state={isGroup:O,resizeState:E,doLayout:j,debouncedUpdateLayout:F};const z=Object(s["computed"])(()=>e.sumText||t("el.table.sumText")),H=Object(s["computed"])(()=>e.emptyText||t("el.table.emptyText"));return fb(r),{ns:n,layout:a,store:o,handleHeaderFooterMousewheel:k,handleMouseLeave:M,tableId:G,tableSize:C,isHidden:_,isEmpty:i,renderExpanded:y,resizeProxyVisible:S,resizeState:E,isGroup:O,bodyWidth:T,tableBodyStyles:D,emptyBlockStyle:w,debouncedUpdateLayout:F,handleFixedMousewheel:I,setCurrentRow:c,getSelectionRows:l,toggleRowSelection:u,clearSelection:d,clearFilter:p,toggleAllSelection:f,toggleRowExpansion:h,clearSort:v,doLayout:j,sort:g,t:t,setDragVisible:b,context:r,computedSumText:z,computedEmptyText:H,tableLayout:L,scrollbarViewStyle:A,tableInnerStyle:N,scrollbarStyle:R,scrollBarRef:P,scrollTo:U,setScrollLeft:V,setScrollTop:B}}}),Mb=["data-prefix"],kb={ref:"hiddenColumns",class:"hidden-columns"};function Cb(e,t,n,r,o,a){const i=Object(s["resolveComponent"])("hColgroup"),c=Object(s["resolveComponent"])("table-header"),l=Object(s["resolveComponent"])("table-body"),u=Object(s["resolveComponent"])("el-scrollbar"),d=Object(s["resolveComponent"])("table-footer"),p=Object(s["resolveDirective"])("mousewheel");return Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{ref:"tableWrapper",class:Object(s["normalizeClass"])([{[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:Object(s["normalizeStyle"])(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[0]||(t[0]=(...t)=>e.handleMouseLeave&&e.handleMouseLeave(...t))},[Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(e.ns.e("inner-wrapper")),style:Object(s["normalizeStyle"])(e.tableInnerStyle)},[Object(s["createElementVNode"])("div",kb,[Object(s["renderSlot"])(e.$slots,"default")],512),e.showHeader&&"fixed"===e.tableLayout?Object(s["withDirectives"])((Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:0,ref:"headerWrapper",class:Object(s["normalizeClass"])(e.ns.e("header-wrapper"))},[Object(s["createElementVNode"])("table",{ref:"tableHeader",class:Object(s["normalizeClass"])(e.ns.e("header")),style:Object(s["normalizeStyle"])(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[Object(s["createVNode"])(i,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),Object(s["createVNode"])(c,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])],6)],2)),[[p,e.handleHeaderFooterMousewheel]]):Object(s["createCommentVNode"])("v-if",!0),Object(s["createElementVNode"])("div",{ref:"bodyWrapper",class:Object(s["normalizeClass"])(e.ns.e("body-wrapper"))},[Object(s["createVNode"])(u,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn},{default:Object(s["withCtx"])(()=>[Object(s["createElementVNode"])("table",{ref:"tableBody",class:Object(s["normalizeClass"])(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:Object(s["normalizeStyle"])({width:e.bodyWidth,tableLayout:e.tableLayout})},[Object(s["createVNode"])(i,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&"auto"===e.tableLayout?(Object(s["openBlock"])(),Object(s["createBlock"])(c,{key:0,ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])):Object(s["createCommentVNode"])("v-if",!0),Object(s["createVNode"])(l,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.tooltipEffect,"tooltip-options":e.tooltipOptions,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"])],6),e.isEmpty?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:0,ref:"emptyBlock",style:Object(s["normalizeStyle"])(e.emptyBlockStyle),class:Object(s["normalizeClass"])(e.ns.e("empty-block"))},[Object(s["createElementVNode"])("span",{class:Object(s["normalizeClass"])(e.ns.e("empty-text"))},[Object(s["renderSlot"])(e.$slots,"empty",{},()=>[Object(s["createTextVNode"])(Object(s["toDisplayString"])(e.computedEmptyText),1)])],2)],6)):Object(s["createCommentVNode"])("v-if",!0),e.$slots.append?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:1,ref:"appendWrapper",class:Object(s["normalizeClass"])(e.ns.e("append-wrapper"))},[Object(s["renderSlot"])(e.$slots,"append")],2)):Object(s["createCommentVNode"])("v-if",!0)]),_:3},8,["view-style","wrap-style","always"])],2),e.showSummary?Object(s["withDirectives"])((Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:1,ref:"footerWrapper",class:Object(s["normalizeClass"])(e.ns.e("footer-wrapper"))},[Object(s["createVNode"])(d,{border:e.border,"default-sort":e.defaultSort,store:e.store,style:Object(s["normalizeStyle"])(e.tableBodyStyles),"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","style","sum-text","summary-method"])],2)),[[s["vShow"],!e.isEmpty],[p,e.handleHeaderFooterMousewheel]]):Object(s["createCommentVNode"])("v-if",!0),e.border||e.isGroup?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:2,class:Object(s["normalizeClass"])(e.ns.e("border-left-patch"))},null,2)):Object(s["createCommentVNode"])("v-if",!0)],6),Object(s["withDirectives"])(Object(s["createElementVNode"])("div",{ref:"resizeProxy",class:Object(s["normalizeClass"])(e.ns.e("column-resize-proxy"))},null,2),[[s["vShow"],e.resizeProxyVisible]])],46,Mb)}var wb=Object(h["a"])(Ob,[["render",Cb],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/table.vue"]]);const Ib={selection:"table-column--selection",expand:"table__expand-column"},Sb={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:""}},Tb=e=>Ib[e]||"",Eb={selection:{renderHeader({store:e}){function t(){return e.states.data.value&&0===e.states.data.value.length}return Object(s["h"])(ao,{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 Object(s["h"])(ao,{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)),Object(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 a=function(n){n.stopPropagation(),t.toggleRowExpansion(e)};return Object(s["h"])("div",{class:o,onClick:a},{default:()=>[Object(s["h"])(w["a"],null,{default:()=>[Object(s["h"])(R["ArrowRight"])]})]})},sortable:!1,resizable:!1}};function jb({row:e,column:t,$index:n}){var r;const o=t.property,a=o&&Object(I["b"])(e,o).value;return t&&t.formatter?t.formatter(e,t,a,n):(null==(r=null==a?void 0:a.toString)?void 0:r.call(a))||""}function Db({row:e,treeNode:t,store:n},r=!1){const{ns:o}=n;if(!t)return r?[Object(s["h"])("span",{class:o.e("placeholder")})]:null;const a=[],i=function(r){r.stopPropagation(),t.loading||n.loadOrToggle(e)};if(t.indent&&a.push(Object(s["h"])("span",{class:o.e("indent"),style:{"padding-left":t.indent+"px"}})),"boolean"!==typeof t.expanded||t.noLazyChildren)a.push(Object(s["h"])("span",{class:o.e("placeholder")}));else{const e=[o.e("expand-icon"),t.expanded?o.em("expand-icon","expanded"):""];let n=R["ArrowRight"];t.loading&&(n=R["Loading"]),a.push(Object(s["h"])("div",{class:e,onClick:i},{default:()=>[Object(s["h"])(w["a"],{class:{[o.is("loading")]:t.loading}},{default:()=>[Object(s["h"])(n)]})]}))}return a}function Lb(e,t){return e.reduce((e,t)=>(e[t]=t,e),t)}function Ab(e,t){const n=Object(s["getCurrentInstance"])(),r=()=>{const r=["fixed"],o={realWidth:"width",realMinWidth:"minWidth"},a=Lb(r,o);Object.keys(a).forEach(r=>{const a=o[r];Object(Q["hasOwn"])(t,a)&&Object(s["watch"])(()=>t[a],t=>{let o=t;"width"===a&&"realWidth"===r&&(o=dy(t)),"minWidth"===a&&"realMinWidth"===r&&(o=py(t)),n.columnConfig.value[a]=o,n.columnConfig.value[r]=o;const i="fixed"===a;e.value.store.scheduleLayout(i)})})},o=()=>{const e=["label","filters","filterMultiple","filteredValue","sortable","index","formatter","className","labelClassName","showOverflowTooltip"],r={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},o=Lb(e,r);Object.keys(o).forEach(e=>{const o=r[e];Object(Q["hasOwn"])(t,o)&&Object(s["watch"])(()=>t[o],t=>{n.columnConfig.value[e]=t})})};return{registerComplexWatchers:r,registerNormalWatchers:o}}function Nb(e,t,n){const r=Object(s["getCurrentInstance"])(),o=Object(s["ref"])(""),a=Object(s["ref"])(!1),i=Object(s["ref"])(),c=Object(s["ref"])(),l=Object(m["d"])("table");Object(s["watchEffect"])(()=>{i.value=e.align?"is-"+e.align:null,i.value}),Object(s["watchEffect"])(()=>{c.value=e.headerAlign?"is-"+e.headerAlign:i.value,c.value});const u=Object(s["computed"])(()=>{let e=r.vnode.vParent||r.parent;while(e&&!e.tableId&&!e.columnId)e=e.vnode.vParent||e.parent;return e}),d=Object(s["computed"])(()=>{const{store:e}=r.parent;if(!e)return!1;const{treeData:t}=e.states,n=t.value;return n&&Object.keys(n).length>0}),p=Object(s["ref"])(dy(e.width)),f=Object(s["ref"])(py(e.minWidth)),h=e=>(p.value&&(e.width=p.value),f.value&&(e.minWidth=f.value),!p.value&&f.value&&(e.width=void 0),e.minWidth||(e.minWidth=80),e.realWidth=Number(void 0===e.width?e.minWidth:e.width),e),v=e=>{const t=e.type,n=Eb[t]||{};Object.keys(n).forEach(t=>{const r=n[t];"className"!==t&&void 0!==r&&(e[t]=r)});const r=Tb(t);if(r){const t=`${Object(s["unref"])(l.namespace)}-${r}`;e.className=e.className?`${e.className} ${t}`:t}return e},_=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)},y=o=>{e.renderHeader?Object(g["a"])("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 a=o.renderCell;return"expand"===o.type?(o.renderCell=e=>Object(s["h"])("div",{class:"cell"},[a(e)]),n.value.renderExpanded=e=>t.default?t.default(e):t.default):(a=a||jb,o.renderCell=e=>{let r=null;if(t.default){const n=t.default(e);r=n.some(e=>e.type!==s["Comment"])?n:a(e)}else r=a(e);const{columns:i}=n.value.store.states,c=i.value.findIndex(e=>"default"===e.type),u=d.value&&e.cellIndex===c,p=Db(e,u),f={class:"cell",style:{}};return o.showOverflowTooltip&&(f.class=`${f.class} ${Object(s["unref"])(l.namespace)}-tooltip`,f.style={width:(e.column.realWidth||Number(e.column.width))-1+"px"}),_(r),Object(s["h"])("div",f,[p,r])}),o},b=(...t)=>t.reduce((t,n)=>(Array.isArray(n)&&n.forEach(n=>{t[n]=e[n]}),t),{}),O=(e,t)=>Array.prototype.indexOf.call(e,t),M=()=>{n.value.store.commit("updateColumnOrder",r.columnConfig.value)};return{columnId:o,realAlign:i,isSubColumn:a,realHeaderAlign:c,columnOrTableParent:u,setColumnWidth:h,setColumnForcedProps:v,setColumnRenders:y,getPropsData:b,getColumnElIndex:O,updateColumnOrder:M}}var xb={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,showOverflowTooltip:{type:[Boolean,Object],default:void 0},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 Rb=1;var Pb=Object(s["defineComponent"])({name:"ElTableColumn",components:{ElCheckbox:ao},props:xb,setup(e,{slots:t}){const n=Object(s["getCurrentInstance"])(),r=Object(s["ref"])({}),o=Object(s["computed"])(()=>{let e=n.parent;while(e&&!e.tableId)e=e.parent;return e}),{registerNormalWatchers:a,registerComplexWatchers:i}=Ab(o,e),{columnId:c,isSubColumn:l,realHeaderAlign:d,columnOrTableParent:p,setColumnWidth:f,setColumnForcedProps:h,setColumnRenders:m,getPropsData:v,getColumnElIndex:g,realAlign:_,updateColumnOrder:y}=Nb(e,t,o),b=p.value;c.value=`${b.tableId||b.columnId}_column_${Rb++}`,Object(s["onBeforeMount"])(()=>{l.value=o.value!==b;const t=e.type||"default",s=""===e.sortable||e.sortable,p=Object(u["g"])(e.showOverflowTooltip)?b.props.showOverflowTooltip:e.showOverflowTooltip,g={...Sb[t],id:c.value,type:t,property:e.prop||e.property,align:_,headerAlign:d,showOverflowTooltip:p,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:s,index:e.index,rawColumnKey:n.vnode.key},y=["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],O=["sortMethod","sortBy","sortOrders"],M=["selectable","reserveSelection"],k=["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"];let C=v(y,O,M,k);C=uy(g,C);const w=hy(m,f,h);C=w(C),r.value=C,a(),i()}),Object(s["onMounted"])(()=>{var e;const t=p.value,a=l.value?t.vnode.el.children:null==(e=t.refs.hiddenColumns)?void 0:e.children,i=()=>g(a||[],n.vnode.el);r.value.getColumnIndex=i;const s=i();s>-1&&o.value.store.commit("insertColumn",r.value,l.value?t.columnConfig.value:null,y)}),Object(s["onBeforeUnmount"])(()=>{o.value.store.commit("removeColumn",r.value,l.value?b.columnConfig.value:null,y)}),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["Fragment"]&&Array.isArray(e.children)&&e.children.forEach(e=>{1024===(null==e?void 0:e.patchFlag)||Object(Q["isString"])(null==e?void 0:e.children)||o.push(e)});const a=Object(s["h"])("div",o);return a}catch(r){return Object(s["h"])("div",[])}}});const Ub=Object(k["a"])(wb,{TableColumn:Pb}),Vb=Object(k["d"])(Pb);var Bb=(e=>(e["ASC"]="asc",e["DESC"]="desc",e))(Bb||{}),Fb=(e=>(e["CENTER"]="center",e["RIGHT"]="right",e))(Fb||{}),Gb=(e=>(e["LEFT"]="left",e["RIGHT"]="right",e))(Gb||{});const zb={["asc"]:"desc",["desc"]:"asc"},Hb=Symbol("placeholder"),Yb=(e,t,n)=>{var r;const o={flexGrow:0,flexShrink:0,...n?{}:{flexGrow:e.flexGrow||0,flexShrink:e.flexShrink||1}};n||(o.flexShrink=1);const a={...null!=(r=e.style)?r:{},...o,flexBasis:"auto",width:e.width};return t||(e.maxWidth&&(a.maxWidth=e.maxWidth),e.minWidth&&(a.minWidth=e.minWidth)),a};function qb(e,t,n){const r=Object(s["computed"])(()=>Object(s["unref"])(t).filter(e=>!e.hidden)),o=Object(s["computed"])(()=>Object(s["unref"])(r).filter(e=>"left"===e.fixed||!0===e.fixed)),a=Object(s["computed"])(()=>Object(s["unref"])(r).filter(e=>"right"===e.fixed)),i=Object(s["computed"])(()=>Object(s["unref"])(r).filter(e=>!e.fixed)),c=Object(s["computed"])(()=>{const e=[];return Object(s["unref"])(o).forEach(t=>{e.push({...t,placeholderSign:Hb})}),Object(s["unref"])(i).forEach(t=>{e.push(t)}),Object(s["unref"])(a).forEach(t=>{e.push({...t,placeholderSign:Hb})}),e}),l=Object(s["computed"])(()=>Object(s["unref"])(o).length||Object(s["unref"])(a).length),u=Object(s["computed"])(()=>{const r=Object(s["unref"])(t);return r.reduce((t,r)=>(t[r.key]=Yb(r,Object(s["unref"])(n),e.fixed),t),{})}),d=Object(s["computed"])(()=>Object(s["unref"])(r).reduce((e,t)=>e+t.width,0)),p=e=>Object(s["unref"])(t).find(t=>t.key===e),f=e=>Object(s["unref"])(u)[e],h=(e,t)=>{e.width=t};function m(t){var n;const{key:r}=t.currentTarget.dataset;if(!r)return;const{sortState:o,sortBy:a}=e;let i=Bb.ASC;i=Object(Q["isObject"])(o)?zb[o[r]]:zb[a.order],null==(n=e.onColumnSort)||n.call(e,{column:p(r),key:r,order:i})}return{columns:t,columnsStyles:u,columnsTotalWidth:d,fixedColumnsOnLeft:o,fixedColumnsOnRight:a,hasFixedColumns:l,mainColumns:c,normalColumns:i,visibleColumns:r,getColumn:p,getColumnStyle:f,updateColumnWidth:h,onColumnSorted:m}}const Wb=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r,onMaybeEndReached:o})=>{const a=Object(s["ref"])({scrollLeft:0,scrollTop:0});function i(e){var o,a,i;const{scrollTop:s}=e;null==(o=t.value)||o.scrollTo(e),null==(a=n.value)||a.scrollToTop(s),null==(i=r.value)||i.scrollToTop(s)}function c(e){a.value=e,i(e)}function l(e){a.value.scrollTop=e,i(Object(s["unref"])(a))}function u(e){var n,r;a.value.scrollLeft=e,null==(r=null==(n=t.value)?void 0:n.scrollTo)||r.call(n,Object(s["unref"])(a))}function d(t){var n;c(t),null==(n=e.onScroll)||n.call(e,t)}function p({scrollTop:e}){const{scrollTop:t}=Object(s["unref"])(a);e!==t&&l(e)}function f(e,n="auto"){var r;null==(r=t.value)||r.scrollToRow(e,n)}return Object(s["watch"])(()=>Object(s["unref"])(a).scrollTop,(e,t)=>{e>t&&o()}),{scrollPos:a,scrollTo:c,scrollToLeft:u,scrollToTop:l,scrollToRow:f,onScroll:d,onVerticalScroll:p}},Kb=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r})=>{const o=Object(s["getCurrentInstance"])(),{emit:a}=o,i=Object(s["shallowRef"])(!1),c=Object(s["shallowRef"])(null),l=Object(s["ref"])(e.defaultExpandedRowKeys||[]),d=Object(s["ref"])(-1),p=Object(s["shallowRef"])(null),f=Object(s["ref"])({}),h=Object(s["ref"])({}),m=Object(s["shallowRef"])({}),v=Object(s["shallowRef"])({}),g=Object(s["shallowRef"])({}),_=Object(s["computed"])(()=>Object(u["d"])(e.estimatedRowHeight));function y(t){var n;null==(n=e.onRowsRendered)||n.call(e,t),t.rowCacheEnd>Object(s["unref"])(d)&&(d.value=t.rowCacheEnd)}function b({hovered:e,rowKey:t}){c.value=e?t:null}function O({expanded:t,rowData:n,rowIndex:r,rowKey:o}){var i,c;const u=[...Object(s["unref"])(l)],d=u.indexOf(o);t?-1===d&&u.push(o):d>-1&&u.splice(d,1),l.value=u,a("update:expandedRowKeys",u),null==(i=e.onRowExpand)||i.call(e,{expanded:t,rowData:n,rowIndex:r,rowKey:o}),null==(c=e.onExpandedRowsChange)||c.call(e,u)}const M=Object(x["debounce"])(()=>{var e,a,c,l;i.value=!0,f.value={...Object(s["unref"])(f),...Object(s["unref"])(h)},k(Object(s["unref"])(p),!1),h.value={},p.value=null,null==(e=t.value)||e.forceUpdate(),null==(a=n.value)||a.forceUpdate(),null==(c=r.value)||c.forceUpdate(),null==(l=o.proxy)||l.$forceUpdate(),i.value=!1},0);function k(e,o=!1){Object(s["unref"])(_)&&[t,n,r].forEach(t=>{const n=Object(s["unref"])(t);n&&n.resetAfterRowIndex(e,o)})}function C(e,t,n){const r=Object(s["unref"])(p);(null===r||r>n)&&(p.value=n),h.value[e]=t}function w({rowKey:e,height:t,rowIndex:n},r){r?r===Gb.RIGHT?g.value[e]=t:m.value[e]=t:v.value[e]=t;const o=Math.max(...[m,g,v].map(t=>t.value[e]||0));Object(s["unref"])(f)[e]!==o&&(C(e,o,n),M())}return{hoveringRowKey:c,expandedRowKeys:l,lastRenderedRowIndex:d,isDynamic:_,isResetting:i,rowHeights:f,resetAfterIndex:k,onRowExpanded:O,onRowHovered:b,onRowsRendered:y,onRowHeightChange:w}},$b=(e,{expandedRowKeys:t,lastRenderedRowIndex:n,resetAfterIndex:r})=>{const o=Object(s["ref"])({}),a=Object(s["computed"])(()=>{const n={},{data:r,rowKey:a}=e,i=Object(s["unref"])(t);if(!i||!i.length)return r;const c=[],l=new Set;i.forEach(e=>l.add(e));let u=r.slice();u.forEach(e=>n[e[a]]=0);while(u.length>0){const e=u.shift();c.push(e),l.has(e[a])&&Array.isArray(e.children)&&e.children.length>0&&(u=[...e.children,...u],e.children.forEach(t=>n[t[a]]=n[e[a]]+1))}return o.value=n,c}),i=Object(s["computed"])(()=>{const{data:t,expandColumnKey:n}=e;return n?Object(s["unref"])(a):t});return Object(s["watch"])(i,(e,t)=>{e!==t&&(n.value=-1,r(0,!0))}),{data:i,depthMap:o}},Jb=(e,t)=>e+t,Qb=e=>Object(Q["isArray"])(e)?e.reduce(Jb,0):e,Xb=(e,t,n={})=>Object(Q["isFunction"])(e)?e(t):null!=e?e:n,Zb=e=>(["width","maxWidth","minWidth","height"].forEach(t=>{e[t]=Object(v["b"])(e[t])}),e),eO=e=>Object(s["isVNode"])(e)?t=>Object(s["h"])(e,t):e,tO=(e,{columnsTotalWidth:t,data:n,fixedColumnsOnLeft:r,fixedColumnsOnRight:o})=>{const a=Object(s["computed"])(()=>{const{fixed:n,width:r,vScrollbarSize:o}=e,a=r-o;return n?Math.max(Math.round(Object(s["unref"])(t)),a):a}),i=Object(s["computed"])(()=>Object(s["unref"])(a)+(e.fixed?e.vScrollbarSize:0)),c=Object(s["computed"])(()=>{const{height:t=0,maxHeight:n=0,footerHeight:r,hScrollbarSize:o}=e;if(n>0){const e=Object(s["unref"])(g),t=Object(s["unref"])(l),a=Object(s["unref"])(m),i=a+e+t+o;return Math.min(i,n-r)}return t-r}),l=Object(s["computed"])(()=>{const{rowHeight:t,estimatedRowHeight:r}=e,o=Object(s["unref"])(n);return Object(u["d"])(r)?o.length*r:o.length*t}),d=Object(s["computed"])(()=>{const{maxHeight:t}=e,n=Object(s["unref"])(c);if(Object(u["d"])(t)&&t>0)return n;const r=Object(s["unref"])(l)+Object(s["unref"])(m)+Object(s["unref"])(g);return Math.min(n,r)}),p=e=>e.width,f=Object(s["computed"])(()=>Qb(Object(s["unref"])(r).map(p))),h=Object(s["computed"])(()=>Qb(Object(s["unref"])(o).map(p))),m=Object(s["computed"])(()=>Qb(e.headerHeight)),g=Object(s["computed"])(()=>{var t;return((null==(t=e.fixedData)?void 0:t.length)||0)*e.rowHeight}),_=Object(s["computed"])(()=>Object(s["unref"])(c)-Object(s["unref"])(m)-Object(s["unref"])(g)),y=Object(s["computed"])(()=>{const{style:t={},height:n,width:r}=e;return Zb({...t,height:n,width:r})}),b=Object(s["computed"])(()=>Zb({height:e.footerHeight})),O=Object(s["computed"])(()=>({top:Object(v["b"])(Object(s["unref"])(m)),bottom:Object(v["b"])(e.footerHeight),width:Object(v["b"])(e.width)}));return{bodyWidth:a,fixedTableHeight:d,mainTableHeight:c,leftTableWidth:f,rightTableWidth:h,headerWidth:i,rowsHeight:l,windowHeight:_,footerHeight:b,emptyStyle:O,rootStyle:y,headerHeight:m}};function nO(e){const t=Object(s["ref"])(),n=Object(s["ref"])(),r=Object(s["ref"])(),{columns:o,columnsStyles:a,columnsTotalWidth:i,fixedColumnsOnLeft:c,fixedColumnsOnRight:l,hasFixedColumns:u,mainColumns:d,onColumnSorted:p}=qb(e,Object(s["toRef"])(e,"columns"),Object(s["toRef"])(e,"fixed")),{scrollTo:f,scrollToLeft:h,scrollToTop:m,scrollToRow:v,onScroll:g,onVerticalScroll:_,scrollPos:y}=Wb(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r,onMaybeEndReached:$}),{expandedRowKeys:b,hoveringRowKey:O,lastRenderedRowIndex:M,isDynamic:k,isResetting:C,rowHeights:w,resetAfterIndex:I,onRowExpanded:S,onRowHeightChange:T,onRowHovered:E,onRowsRendered:j}=Kb(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r}),{data:D,depthMap:L}=$b(e,{expandedRowKeys:b,lastRenderedRowIndex:M,resetAfterIndex:I}),{bodyWidth:A,fixedTableHeight:N,mainTableHeight:x,leftTableWidth:R,rightTableWidth:P,headerWidth:U,rowsHeight:V,windowHeight:B,footerHeight:F,emptyStyle:G,rootStyle:z,headerHeight:H}=tO(e,{columnsTotalWidth:i,data:D,fixedColumnsOnLeft:c,fixedColumnsOnRight:l}),Y=Object(s["shallowRef"])(!1),q=Object(s["ref"])(),W=Object(s["computed"])(()=>{const t=0===Object(s["unref"])(D).length;return Object(Q["isArray"])(e.fixedData)?0===e.fixedData.length&&t:t});function K(t){const{estimatedRowHeight:n,rowHeight:r,rowKey:o}=e;return n?Object(s["unref"])(w)[Object(s["unref"])(D)[t][o]]||n:r}function $(){const{onEndReached:t}=e;if(!t)return;const{scrollTop:n}=Object(s["unref"])(y),r=Object(s["unref"])(V),o=Object(s["unref"])(B),a=r-(n+o)+e.hScrollbarSize;Object(s["unref"])(M)>=0&&r===n+Object(s["unref"])(x)-Object(s["unref"])(H)&&t(a)}return Object(s["watch"])(()=>e.expandedRowKeys,e=>b.value=e,{deep:!0}),{columns:o,containerRef:q,mainTableRef:t,leftTableRef:n,rightTableRef:r,isDynamic:k,isResetting:C,isScrolling:Y,hoveringRowKey:O,hasFixedColumns:u,columnsStyles:a,columnsTotalWidth:i,data:D,expandedRowKeys:b,depthMap:L,fixedColumnsOnLeft:c,fixedColumnsOnRight:l,mainColumns:d,bodyWidth:A,emptyStyle:G,rootStyle:z,headerWidth:U,footerHeight:F,mainTableHeight:x,fixedTableHeight:N,leftTableWidth:R,rightTableWidth:P,showEmpty:W,getRowHeight:K,onColumnSorted:p,onRowHovered:E,onRowExpanded:S,onRowsRendered:j,onRowHeightChange:T,scrollTo:f,scrollToLeft:h,scrollToTop:m,scrollToRow:v,onScroll:g,onVerticalScroll:_}}const rO=Symbol("tableV2"),oO=String,aO={type:Object(l["c"])(Array),required:!0},iO=(Object(l["c"])(Object),{type:Object(l["c"])(Array)}),sO={...iO,required:!0},cO=String,lO={type:Object(l["c"])(Array),default:()=>Object(Ra["a"])([])},uO={type:Number,required:!0},dO={type:Object(l["c"])([String,Number,Symbol]),default:"id"},pO={type:Object(l["c"])(Object)},fO=Object(l["b"])({class:String,columns:aO,columnsStyles:{type:Object(l["c"])(Object),required:!0},depth:Number,expandColumnKey:cO,estimatedRowHeight:{...Bv.estimatedRowHeight,default:void 0},isScrolling:Boolean,onRowExpand:{type:Object(l["c"])(Function)},onRowHover:{type:Object(l["c"])(Function)},onRowHeightChange:{type:Object(l["c"])(Function)},rowData:{type:Object(l["c"])(Object),required:!0},rowEventHandlers:{type:Object(l["c"])(Object)},rowIndex:{type:Number,required:!0},rowKey:dO,style:{type:Object(l["c"])(Object)}}),hO={type:Number,required:!0},mO=Object(l["b"])({class:String,columns:aO,fixedHeaderData:{type:Object(l["c"])(Array)},headerData:{type:Object(l["c"])(Array),required:!0},headerHeight:{type:Object(l["c"])([Number,Array]),default:50},rowWidth:hO,rowHeight:{type:Number,default:50},height:hO,width:hO}),vO=Object(l["b"])({columns:aO,data:sO,fixedData:iO,estimatedRowHeight:fO.estimatedRowHeight,width:uO,height:uO,headerWidth:uO,headerHeight:mO.headerHeight,bodyWidth:uO,rowHeight:uO,cache:Rv.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:Bv.scrollbarAlwaysOn,scrollbarStartGap:Bv.scrollbarStartGap,scrollbarEndGap:Bv.scrollbarEndGap,class:oO,style:pO,containerStyle:pO,getRowHeight:{type:Object(l["c"])(Function),required:!0},rowKey:fO.rowKey,onRowsRendered:{type:Object(l["c"])(Function)},onScroll:{type:Object(l["c"])(Function)}}),gO=Object(l["b"])({cache:vO.cache,estimatedRowHeight:fO.estimatedRowHeight,rowKey:dO,headerClass:{type:Object(l["c"])([String,Function])},headerProps:{type:Object(l["c"])([Object,Function])},headerCellProps:{type:Object(l["c"])([Object,Function])},headerHeight:mO.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:Object(l["c"])([String,Function])},rowProps:{type:Object(l["c"])([Object,Function])},rowHeight:{type:Number,default:50},cellProps:{type:Object(l["c"])([Object,Function])},columns:aO,data:sO,dataGetter:{type:Object(l["c"])(Function)},fixedData:iO,expandColumnKey:fO.expandColumnKey,expandedRowKeys:lO,defaultExpandedRowKeys:lO,class:oO,fixed:Boolean,style:{type:Object(l["c"])(Object)},width:uO,height:uO,maxHeight:Number,useIsScrolling:Boolean,indentSize:{type:Number,default:12},iconSize:{type:Number,default:12},hScrollbarSize:Bv.hScrollbarSize,vScrollbarSize:Bv.vScrollbarSize,scrollbarAlwaysOn:Fv.alwaysOn,sortBy:{type:Object(l["c"])(Object),default:()=>({})},sortState:{type:Object(l["c"])(Object),default:void 0},onColumnSort:{type:Object(l["c"])(Function)},onExpandedRowsChange:{type:Object(l["c"])(Function)},onEndReached:{type:Object(l["c"])(Function)},onRowExpand:fO.onRowExpand,onScroll:vO.onScroll,onRowsRendered:vO.onRowsRendered,rowEventHandlers:fO.rowEventHandlers}),_O=({atXEndEdge:e,atXStartEdge:t,atYEndEdge:n,atYStartEdge:r},o)=>{let a=null,i=0,s=0;const c=(o,a)=>{const i=o<=0&&t.value||o>=0&&e.value,s=a<=0&&r.value||a>=0&&n.value;return i&&s},l=e=>{Cv(a);let t=e.deltaX,n=e.deltaY;Math.abs(t)>Math.abs(n)?n=0:t=0,e.shiftKey&&0!==n&&(t=n,n=0),c(i,s)&&c(i+t,s+n)||(i+=t,s+=n,e.preventDefault(),a=kv(()=>{o(i,s),i=0,s=0}))};return{hasReachedEdge:c,onWheel:l}},yO=({name:e,clearCache:t,getColumnPosition:n,getColumnStartIndexForOffset:r,getColumnStopIndexForStartIndex:o,getEstimatedTotalHeight:a,getEstimatedTotalWidth:i,getColumnOffset:l,getRowOffset:d,getRowPosition:p,getRowStartIndexForOffset:f,getRowStopIndexForStartIndex:h,initCache:v,injectToInstance:g,validateProps:y})=>Object(s["defineComponent"])({name:null!=e?e:"ElVirtualList",props:Bv,emits:[av,iv],setup(e,{emit:b,expose:O,slots:M}){const k=Object(m["d"])("vl");y(e);const C=Object(s["getCurrentInstance"])(),w=Object(s["ref"])(v(e,C));null==g||g(C,w);const I=Object(s["ref"])(),S=Object(s["ref"])(),T=Object(s["ref"])(),E=Object(s["ref"])(null),j=Object(s["ref"])({isScrolling:!1,scrollLeft:Object(u["d"])(e.initScrollLeft)?e.initScrollLeft:0,scrollTop:Object(u["d"])(e.initScrollTop)?e.initScrollTop:0,updateRequested:!1,xAxisScrollDir:sv,yAxisScrollDir:sv}),D=rv(),L=Object(s["computed"])(()=>Number.parseInt(""+e.height,10)),A=Object(s["computed"])(()=>Number.parseInt(""+e.width,10)),N=Object(s["computed"])(()=>{const{totalColumn:t,totalRow:n,columnCache:a}=e,{isScrolling:i,xAxisScrollDir:c,scrollLeft:l}=Object(s["unref"])(j);if(0===t||0===n)return[0,0,0,0];const u=r(e,l,Object(s["unref"])(w)),d=o(e,u,l,Object(s["unref"])(w)),p=i&&c!==cv?1:Math.max(1,a),f=i&&c!==sv?1:Math.max(1,a);return[Math.max(0,u-p),Math.max(0,Math.min(t-1,d+f)),u,d]}),x=Object(s["computed"])(()=>{const{totalColumn:t,totalRow:n,rowCache:r}=e,{isScrolling:o,yAxisScrollDir:a,scrollTop:i}=Object(s["unref"])(j);if(0===t||0===n)return[0,0,0,0];const c=f(e,i,Object(s["unref"])(w)),l=h(e,c,i,Object(s["unref"])(w)),u=o&&a!==cv?1:Math.max(1,r),d=o&&a!==sv?1:Math.max(1,r);return[Math.max(0,c-u),Math.max(0,Math.min(n-1,l+d)),c,l]}),R=Object(s["computed"])(()=>a(e,Object(s["unref"])(w))),P=Object(s["computed"])(()=>i(e,Object(s["unref"])(w))),U=Object(s["computed"])(()=>{var t;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:e.direction,height:Object(u["d"])(e.height)?e.height+"px":e.height,width:Object(u["d"])(e.width)?e.width+"px":e.width},null!=(t=e.style)?t:{}]}),V=Object(s["computed"])(()=>{const e=Object(s["unref"])(P)+"px",t=Object(s["unref"])(R)+"px";return{height:t,pointerEvents:Object(s["unref"])(j).isScrolling?"none":void 0,width:e}}),B=()=>{const{totalColumn:t,totalRow:n}=e;if(t>0&&n>0){const[e,t,n,r]=Object(s["unref"])(N),[o,a,i,c]=Object(s["unref"])(x);b(av,{columnCacheStart:e,columnCacheEnd:t,rowCacheStart:o,rowCacheEnd:a,columnVisibleStart:n,columnVisibleEnd:r,rowVisibleStart:i,rowVisibleEnd:c})}const{scrollLeft:r,scrollTop:o,updateRequested:a,xAxisScrollDir:i,yAxisScrollDir:c}=Object(s["unref"])(j);b(iv,{xAxisScrollDir:i,scrollLeft:r,yAxisScrollDir:c,scrollTop:o,updateRequested:a})},F=t=>{const{clientHeight:n,clientWidth:r,scrollHeight:o,scrollLeft:a,scrollTop:i,scrollWidth:c}=t.currentTarget,l=Object(s["unref"])(j);if(l.scrollTop===i&&l.scrollLeft===a)return;let u=a;if(Hv(e.direction))switch(qv()){case _v:u=-a;break;case bv:u=c-r-a;break}j.value={...l,isScrolling:!0,scrollLeft:u,scrollTop:Math.max(0,Math.min(i,o-n)),updateRequested:!0,xAxisScrollDir:Gv(l.scrollLeft,u),yAxisScrollDir:Gv(l.scrollTop,i)},Object(s["nextTick"])(()=>K()),$(),B()},G=(e,t)=>{const n=Object(s["unref"])(L),r=(R.value-n)/t*e;Y({scrollTop:Math.min(R.value-n,r)})},z=(e,t)=>{const n=Object(s["unref"])(A),r=(P.value-n)/t*e;Y({scrollLeft:Math.min(P.value-n,r)})},{onWheel:H}=_O({atXStartEdge:Object(s["computed"])(()=>j.value.scrollLeft<=0),atXEndEdge:Object(s["computed"])(()=>j.value.scrollLeft>=P.value-Object(s["unref"])(A)),atYStartEdge:Object(s["computed"])(()=>j.value.scrollTop<=0),atYEndEdge:Object(s["computed"])(()=>j.value.scrollTop>=R.value-Object(s["unref"])(L))},(e,t)=>{var n,r,o,a;null==(r=null==(n=S.value)?void 0:n.onMouseUp)||r.call(n),null==(a=null==(o=T.value)?void 0:o.onMouseUp)||a.call(o);const i=Object(s["unref"])(A),c=Object(s["unref"])(L);Y({scrollLeft:Math.min(j.value.scrollLeft+e,P.value-i),scrollTop:Math.min(j.value.scrollTop+t,R.value-c)})}),Y=({scrollLeft:e=j.value.scrollLeft,scrollTop:t=j.value.scrollTop})=>{e=Math.max(e,0),t=Math.max(t,0);const n=Object(s["unref"])(j);t===n.scrollTop&&e===n.scrollLeft||(j.value={...n,xAxisScrollDir:Gv(n.scrollLeft,e),yAxisScrollDir:Gv(n.scrollTop,t),scrollLeft:e,scrollTop:t,updateRequested:!0},Object(s["nextTick"])(()=>K()),$(),B())},q=(t=0,n=0,r=lv)=>{const o=Object(s["unref"])(j);n=Math.max(0,Math.min(n,e.totalColumn-1)),t=Math.max(0,Math.min(t,e.totalRow-1));const c=Object(_["a"])(k.namespace.value),u=Object(s["unref"])(w),p=a(e,u),f=i(e,u);Y({scrollLeft:l(e,n,r,o.scrollLeft,u,f>e.width?c:0),scrollTop:d(e,t,r,o.scrollTop,u,p>e.height?c:0)})},W=(r,o)=>{const{columnWidth:a,direction:i,rowHeight:c}=e,l=D.value(t&&a,t&&c,t&&i),u=`${r},${o}`;if(Object(Q["hasOwn"])(l,u))return l[u];{const[,t]=n(e,o,Object(s["unref"])(w)),a=Object(s["unref"])(w),c=Hv(i),[d,f]=p(e,r,a),[h]=n(e,o,a);return l[u]={position:"absolute",left:c?void 0:t+"px",right:c?t+"px":void 0,top:f+"px",height:d+"px",width:h+"px"},l[u]}},K=()=>{j.value.isScrolling=!1,Object(s["nextTick"])(()=>{D.value(-1,null,null)})};Object(s["onMounted"])(()=>{if(!c["isClient"])return;const{initScrollLeft:t,initScrollTop:n}=e,r=Object(s["unref"])(I);r&&(Object(u["d"])(t)&&(r.scrollLeft=t),Object(u["d"])(n)&&(r.scrollTop=n)),B()});const $=()=>{const{direction:t}=e,{scrollLeft:n,scrollTop:r,updateRequested:o}=Object(s["unref"])(j),a=Object(s["unref"])(I);if(o&&a){if(t===gv)switch(qv()){case _v:a.scrollLeft=-n;break;case yv:a.scrollLeft=n;break;default:{const{clientWidth:e,scrollWidth:t}=a;a.scrollLeft=t-e-n;break}}else a.scrollLeft=Math.max(0,n);a.scrollTop=Math.max(0,r)}},{resetAfterColumnIndex:J,resetAfterRowIndex:X,resetAfter:Z}=C.proxy;O({windowRef:I,innerRef:E,getItemStyleCache:D,scrollTo:Y,scrollToItem:q,states:j,resetAfterColumnIndex:J,resetAfterRowIndex:X,resetAfter:Z});const ee=()=>{const{scrollbarAlwaysOn:t,scrollbarStartGap:n,scrollbarEndGap:r,totalColumn:o,totalRow:a}=e,i=Object(s["unref"])(A),c=Object(s["unref"])(L),l=Object(s["unref"])(P),u=Object(s["unref"])(R),{scrollLeft:d,scrollTop:p}=Object(s["unref"])(j),f=Object(s["h"])(Kv,{ref:S,alwaysOn:t,startGap:n,endGap:r,class:k.e("horizontal"),clientSize:i,layout:"horizontal",onScroll:z,ratio:100*i/l,scrollFrom:d/(l-i),total:a,visible:!0}),h=Object(s["h"])(Kv,{ref:T,alwaysOn:t,startGap:n,endGap:r,class:k.e("vertical"),clientSize:c,layout:"vertical",onScroll:G,ratio:100*c/u,scrollFrom:p/(u-c),total:o,visible:!0});return{horizontalScrollbar:f,verticalScrollbar:h}},te=()=>{var t;const[n,r]=Object(s["unref"])(N),[o,a]=Object(s["unref"])(x),{data:i,totalColumn:c,totalRow:l,useIsScrolling:u,itemKey:d}=e,p=[];if(l>0&&c>0)for(let e=o;e<=a;e++)for(let o=n;o<=r;o++)p.push(null==(t=M.default)?void 0:t.call(M,{columnIndex:o,data:i,key:d({columnIndex:o,data:i,rowIndex:e}),isScrolling:u?Object(s["unref"])(j).isScrolling:void 0,style:W(e,o),rowIndex:e}));return p},ne=()=>{const t=Object(s["resolveDynamicComponent"])(e.innerElement),n=te();return[Object(s["h"])(t,{style:Object(s["unref"])(V),ref:E},Object(Q["isString"])(t)?n:{default:()=>n})]},re=()=>{const t=Object(s["resolveDynamicComponent"])(e.containerElement),{horizontalScrollbar:n,verticalScrollbar:r}=ee(),o=ne();return Object(s["h"])("div",{key:0,class:k.e("wrapper"),role:e.role},[Object(s["h"])(t,{class:e.className,style:Object(s["unref"])(U),onScroll:F,onWheel:H,ref:I},Object(Q["isString"])(t)?o:{default:()=>o}),n,r])};return re}}),{max:bO,min:OO,floor:MO}=Math,kO={column:"columnWidth",row:"rowHeight"},CO={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},wO=(e,t,n,r)=>{const[o,a,i]=[n[r],e[kO[r]],n[CO[r]]];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=a(n);o[n]={offset:e,size:t},e+=t}n[CO[r]]=t}return o[t]},IO=(e,t,n,r,o,a)=>{while(n<=r){const i=n+MO((r-n)/2),s=wO(e,i,t,a).offset;if(s===o)return i;s<o?n=i+1:r=i-1}return bO(0,n-1)},SO=(e,t,n,r,o)=>{const a="column"===o?e.totalColumn:e.totalRow;let i=1;while(n<a&&wO(e,n,t,o).offset<r)n+=i,i*=2;return IO(e,t,MO(n/2),OO(n,a-1),r,o)},TO=(e,t,n,r)=>{const[o,a]=[t[r],t[CO[r]]],i=a>0?o[a].offset:0;return i>=n?IO(e,t,0,a,n,r):SO(e,t,bO(0,a),n,r)},EO=({totalRow:e},{estimatedRowHeight:t,lastVisitedRowIndex:n,row:r})=>{let o=0;if(n>=e&&(n=e-1),n>=0){const e=r[n];o=e.offset+e.size}const a=e-n-1,i=a*t;return o+i},jO=({totalColumn:e},{column:t,estimatedColumnWidth:n,lastVisitedColumnIndex:r})=>{let o=0;if(r>e&&(r=e-1),r>=0){const e=t[r];o=e.offset+e.size}const a=e-r-1,i=a*n;return o+i},DO={column:jO,row:EO},LO=(e,t,n,r,o,a,i)=>{const[s,c]=["row"===a?e.height:e.width,DO[a]],l=wO(e,t,o,a),u=c(e,o),d=bO(0,OO(u-s,l.offset)),p=bO(0,l.offset-s+i+l.size);switch(n===uv&&(n=r>=p-s&&r<=d+s?lv:pv),n){case dv:return d;case fv:return p;case pv:return Math.round(p+(d-p)/2);case lv:default:return r>=p&&r<=d?r:p>d||r<p?p:d}},AO=yO({name:"ElDynamicSizeGrid",getColumnPosition:(e,t,n)=>{const r=wO(e,t,n,"column");return[r.size,r.offset]},getRowPosition:(e,t,n)=>{const r=wO(e,t,n,"row");return[r.size,r.offset]},getColumnOffset:(e,t,n,r,o,a)=>LO(e,t,n,r,o,"column",a),getRowOffset:(e,t,n,r,o,a)=>LO(e,t,n,r,o,"row",a),getColumnStartIndexForOffset:(e,t,n)=>TO(e,n,t,"column"),getColumnStopIndexForStartIndex:(e,t,n,r)=>{const o=wO(e,t,r,"column"),a=n+e.width;let i=o.offset+o.size,s=t;while(s<e.totalColumn-1&&i<a)s++,i+=wO(e,t,r,"column").size;return s},getEstimatedTotalHeight:EO,getEstimatedTotalWidth:jO,getRowStartIndexForOffset:(e,t,n)=>TO(e,n,t,"row"),getRowStopIndexForStartIndex:(e,t,n,r)=>{const{totalRow:o,height:a}=e,i=wO(e,t,r,"row"),s=n+a;let c=i.size+i.offset,l=t;while(l<o-1&&c<s)l++,c+=wO(e,l,r,"row").size;return l},injectToInstance:(e,t)=>{const n=({columnIndex:n,rowIndex:r},o)=>{var a,i;o=!!Object(u["g"])(o)||o,Object(u["d"])(n)&&(t.value.lastVisitedColumnIndex=Math.min(t.value.lastVisitedColumnIndex,n-1)),Object(u["d"])(r)&&(t.value.lastVisitedRowIndex=Math.min(t.value.lastVisitedRowIndex,r-1)),null==(a=e.exposed)||a.getItemStyleCache.value(-1,null,null),o&&(null==(i=e.proxy)||i.$forceUpdate())},r=(e,t)=>{n({columnIndex:e},t)},o=(e,t)=>{n({rowIndex:e},t)};Object.assign(e.proxy,{resetAfterColumnIndex:r,resetAfterRowIndex:o,resetAfter:n})},initCache:({estimatedColumnWidth:e=ov,estimatedRowHeight:t=ov})=>{const n={column:{},estimatedColumnWidth:e,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}};return n},clearCache:!1,validateProps:({columnWidth:e,rowHeight:t})=>{0}}),NO=yO({name:"ElFixedSizeGrid",getColumnPosition:({columnWidth:e},t)=>[e,t*e],getRowPosition:({rowHeight:e},t)=>[e,t*e],getEstimatedTotalHeight:({totalRow:e,rowHeight:t})=>t*e,getEstimatedTotalWidth:({totalColumn:e,columnWidth:t})=>t*e,getColumnOffset:({totalColumn:e,columnWidth:t,width:n},r,o,a,i,s)=>{n=Number(n);const c=Math.max(0,e*t-n),l=Math.min(c,r*t),u=Math.max(0,r*t-n+s+t);switch("smart"===o&&(o=a>=u-n&&a<=l+n?lv:pv),o){case dv:return l;case fv:return u;case pv:{const e=Math.round(u+(l-u)/2);return e<Math.ceil(n/2)?0:e>c+Math.floor(n/2)?c:e}case lv:default:return a>=u&&a<=l?a:u>l||a<u?u:l}},getRowOffset:({rowHeight:e,height:t,totalRow:n},r,o,a,i,s)=>{t=Number(t);const c=Math.max(0,n*e-t),l=Math.min(c,r*e),u=Math.max(0,r*e-t+s+e);switch(o===uv&&(o=a>=u-t&&a<=l+t?lv:pv),o){case dv:return l;case fv:return u;case pv:{const e=Math.round(u+(l-u)/2);return e<Math.ceil(t/2)?0:e>c+Math.floor(t/2)?c:e}case lv:default:return a>=u&&a<=l?a:u>l||a<u?u:l}},getColumnStartIndexForOffset:({columnWidth:e,totalColumn:t},n)=>Math.max(0,Math.min(t-1,Math.floor(n/e))),getColumnStopIndexForStartIndex:({columnWidth:e,totalColumn:t,width:n},r,o)=>{const a=r*e,i=Math.ceil((n+o-a)/e);return Math.max(0,Math.min(t-1,r+i-1))},getRowStartIndexForOffset:({rowHeight:e,totalRow:t},n)=>Math.max(0,Math.min(t-1,Math.floor(n/e))),getRowStopIndexForStartIndex:({rowHeight:e,totalRow:t,height:n},r,o)=>{const a=r*e,i=Math.ceil((n+o-a)/e);return Math.max(0,Math.min(t-1,r+i-1))},initCache:()=>{},clearCache:!0,validateProps:({columnWidth:e,rowHeight:t})=>{0}}),xO="ElTableV2Header",RO=Object(s["defineComponent"])({name:xO,props:mO,setup(e,{slots:t,expose:n}){const r=Object(m["d"])("table-v2"),o=Object(s["ref"])(),a=Object(s["computed"])(()=>Zb({width:e.width,height:e.height})),i=Object(s["computed"])(()=>Zb({width:e.rowWidth,height:e.height})),c=Object(s["computed"])(()=>Object(x["castArray"])(Object(s["unref"])(e.headerHeight))),l=e=>{const t=Object(s["unref"])(o);Object(s["nextTick"])(()=>{(null==t?void 0:t.scroll)&&t.scroll({left:e})})},u=()=>{const n=r.e("fixed-header-row"),{columns:o,fixedHeaderData:a,rowHeight:i}=e;return null==a?void 0:a.map((e,r)=>{var a;const s=Zb({height:i,width:"100%"});return null==(a=t.fixed)?void 0:a.call(t,{class:n,columns:o,rowData:e,rowIndex:-(r+1),style:s})})},d=()=>{const n=r.e("dynamic-header-row"),{columns:o}=e;return Object(s["unref"])(c).map((e,r)=>{var a;const i=Zb({width:"100%",height:e});return null==(a=t.dynamic)?void 0:a.call(t,{class:n,columns:o,headerIndex:r,style:i})})};return n({scrollToLeft:l}),()=>{if(!(e.height<=0))return Object(s["createVNode"])("div",{ref:o,class:e.class,style:Object(s["unref"])(a),role:"rowgroup"},[Object(s["createVNode"])("div",{style:Object(s["unref"])(i),class:r.e("header")},[d(),u()])])}}}),PO="ElTableV2Grid",UO=e=>{const t=Object(s["ref"])(),n=Object(s["ref"])(),r=Object(s["computed"])(()=>{const{data:t,rowHeight:n,estimatedRowHeight:r}=e;if(!r)return t.length*n}),o=Object(s["computed"])(()=>{const{fixedData:t,rowHeight:n}=e;return((null==t?void 0:t.length)||0)*n}),a=Object(s["computed"])(()=>Qb(e.headerHeight)),i=Object(s["computed"])(()=>{const{height:t}=e;return Math.max(0,t-Object(s["unref"])(a)-Object(s["unref"])(o))}),c=Object(s["computed"])(()=>Object(s["unref"])(a)+Object(s["unref"])(o)>0),l=({data:t,rowIndex:n})=>t[n][e.rowKey];function u({rowCacheStart:t,rowCacheEnd:n,rowVisibleStart:r,rowVisibleEnd:o}){var a;null==(a=e.onRowsRendered)||a.call(e,{rowCacheStart:t,rowCacheEnd:n,rowVisibleStart:r,rowVisibleEnd:o})}function d(e,t){var r;null==(r=n.value)||r.resetAfterRowIndex(e,t)}function p(e,r){const o=Object(s["unref"])(t),a=Object(s["unref"])(n);o&&a&&(Object(Q["isObject"])(e)?(o.scrollToLeft(e.scrollLeft),a.scrollTo(e)):(o.scrollToLeft(e),a.scrollTo({scrollLeft:e,scrollTop:r})))}function f(e){var t;null==(t=Object(s["unref"])(n))||t.scrollTo({scrollTop:e})}function h(e,t){var r;null==(r=Object(s["unref"])(n))||r.scrollToItem(e,1,t)}function m(){var e,r;null==(e=Object(s["unref"])(n))||e.$forceUpdate(),null==(r=Object(s["unref"])(t))||r.$forceUpdate()}return{bodyRef:n,forceUpdate:m,fixedRowHeight:o,gridHeight:i,hasHeader:c,headerHeight:a,headerRef:t,totalHeight:r,itemKey:l,onItemRendered:u,resetAfterRowIndex:d,scrollTo:p,scrollToTop:f,scrollToRow:h}},VO=Object(s["defineComponent"])({name:PO,props:vO,setup(e,{slots:t,expose:n}){const{ns:r}=Object(s["inject"])(rO),{bodyRef:o,fixedRowHeight:a,gridHeight:i,hasHeader:c,headerRef:l,headerHeight:d,totalHeight:p,forceUpdate:f,itemKey:h,onItemRendered:m,resetAfterRowIndex:v,scrollTo:g,scrollToTop:_,scrollToRow:y}=UO(e);n({forceUpdate:f,totalHeight:p,scrollTo:g,scrollToTop:_,scrollToRow:y,resetAfterRowIndex:v});const b=()=>e.bodyWidth;return()=>{const{cache:n,columns:p,data:f,fixedData:v,useIsScrolling:g,scrollbarAlwaysOn:_,scrollbarEndGap:y,scrollbarStartGap:O,style:M,rowHeight:k,bodyWidth:C,estimatedRowHeight:w,headerWidth:I,height:S,width:T,getRowHeight:E,onScroll:j}=e,D=Object(u["d"])(w),L=D?AO:NO,A=Object(s["unref"])(d);return Object(s["createVNode"])("div",{role:"table",class:[r.e("table"),e.class],style:M},[Object(s["createVNode"])(L,{ref:o,data:f,useIsScrolling:g,itemKey:h,columnCache:0,columnWidth:D?b:C,totalColumn:1,totalRow:f.length,rowCache:n,rowHeight:D?E:k,width:T,height:Object(s["unref"])(i),class:r.e("body"),role:"rowgroup",scrollbarStartGap:O,scrollbarEndGap:y,scrollbarAlwaysOn:_,onScroll:j,onItemRendered:m,perfMode:!1},{default:e=>{var n;const r=f[e.rowIndex];return null==(n=t.row)?void 0:n.call(t,{...e,columns:p,rowData:r})}}),Object(s["unref"])(c)&&Object(s["createVNode"])(RO,{ref:l,class:r.e("header-wrapper"),columns:p,headerData:f,headerHeight:e.headerHeight,fixedHeaderData:v,rowWidth:I,rowHeight:k,width:T,height:Math.min(A+Object(s["unref"])(a),S)},{dynamic:t.header,fixed:t.row})])}}});function BO(e){return"function"===typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Object(s["isVNode"])(e)}const FO=(e,{slots:t})=>{const{mainTableRef:n,...r}=e;return Object(s["createVNode"])(VO,Object(s["mergeProps"])({ref:n},r),BO(t)?t:{default:()=>[t]})};function GO(e){return"function"===typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Object(s["isVNode"])(e)}const zO=(e,{slots:t})=>{if(!e.columns.length)return;const{leftTableRef:n,...r}=e;return Object(s["createVNode"])(VO,Object(s["mergeProps"])({ref:n},r),GO(t)?t:{default:()=>[t]})};function HO(e){return"function"===typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Object(s["isVNode"])(e)}const YO=(e,{slots:t})=>{if(!e.columns.length)return;const{rightTableRef:n,...r}=e;return Object(s["createVNode"])(VO,Object(s["mergeProps"])({ref:n},r),HO(t)?t:{default:()=>[t]})},qO=e=>{const{isScrolling:t}=Object(s["inject"])(rO),n=Object(s["ref"])(!1),r=Object(s["ref"])(),o=Object(s["computed"])(()=>Object(u["d"])(e.estimatedRowHeight)&&e.rowIndex>=0),a=(t=!1)=>{const o=Object(s["unref"])(r);if(!o)return;const{columns:a,onRowHeightChange:i,rowKey:c,rowIndex:l,style:u}=e,{height:d}=o.getBoundingClientRect();n.value=!0,Object(s["nextTick"])(()=>{if(t||d!==Number.parseInt(u.height)){const e=a[0],t=(null==e?void 0:e.placeholderSign)===Hb;null==i||i({rowKey:c,height:d,rowIndex:l},e&&!t&&e.fixed)}})},i=Object(s["computed"])(()=>{const{rowData:t,rowIndex:n,rowKey:r,onRowHover:o}=e,a=e.rowEventHandlers||{},i={};return Object.entries(a).forEach(([e,o])=>{Object(Q["isFunction"])(o)&&(i[e]=e=>{o({event:e,rowData:t,rowIndex:n,rowKey:r})})}),o&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach(({name:e,hovered:a})=>{const s=i[e];i[e]=e=>{o({event:e,hovered:a,rowData:t,rowIndex:n,rowKey:r}),null==s||s(e)}}),i}),c=t=>{const{onRowExpand:n,rowData:r,rowIndex:o,rowKey:a}=e;null==n||n({expanded:t,rowData:r,rowIndex:o,rowKey:a})};return Object(s["onMounted"])(()=>{Object(s["unref"])(o)&&a(!0)}),{isScrolling:t,measurable:o,measured:n,rowRef:r,eventHandlers:i,onExpand:c}},WO="ElTableV2TableRow",KO=Object(s["defineComponent"])({name:WO,props:fO,setup(e,{expose:t,slots:n,attrs:r}){const{eventHandlers:o,isScrolling:a,measurable:i,measured:c,rowRef:l,onExpand:u}=qO(e);return t({onExpand:u}),()=>{const{columns:t,columnsStyles:d,expandColumnKey:p,depth:f,rowData:h,rowIndex:m,style:v}=e;let g=t.map((e,r)=>{const o=Object(Q["isArray"])(h.children)&&h.children.length>0&&e.key===p;return n.cell({column:e,columns:t,columnIndex:r,depth:f,style:d[e.key],rowData:h,rowIndex:m,isScrolling:Object(s["unref"])(a),expandIconProps:o?{rowData:h,rowIndex:m,onExpand:u}:void 0})});if(n.row&&(g=n.row({cells:g.map(e=>Object(Q["isArray"])(e)&&1===e.length?e[0]:e),style:v,columns:t,depth:f,rowData:h,rowIndex:m,isScrolling:Object(s["unref"])(a)})),Object(s["unref"])(i)){const{height:t,...n}=v||{},a=Object(s["unref"])(c);return Object(s["createVNode"])("div",Object(s["mergeProps"])({ref:l,class:e.class,style:a?v:n,role:"row"},r,Object(s["unref"])(o)),[g])}return Object(s["createVNode"])("div",Object(s["mergeProps"])(r,{ref:l,class:e.class,style:v,role:"row"},Object(s["unref"])(o)),[g])}}});function $O(e){return"function"===typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Object(s["isVNode"])(e)}const JO=(e,{slots:t})=>{const{columns:n,columnsStyles:r,depthMap:o,expandColumnKey:a,expandedRowKeys:i,estimatedRowHeight:c,hasFixedColumns:l,hoveringRowKey:u,rowData:d,rowIndex:p,style:f,isScrolling:h,rowProps:m,rowClass:v,rowKey:g,rowEventHandlers:_,ns:y,onRowHovered:b,onRowExpanded:O}=e,M=Xb(v,{columns:n,rowData:d,rowIndex:p},""),k=Xb(m,{columns:n,rowData:d,rowIndex:p}),C=d[g],w=o[C]||0,I=Boolean(a),S=p<0,T=[y.e("row"),M,{[y.e("row-depth-"+w)]:I&&p>=0,[y.is("expanded")]:I&&i.includes(C),[y.is("hovered")]:!h&&C===u,[y.is("fixed")]:!w&&S,[y.is("customized")]:Boolean(t.row)}],E=l?b:void 0,j={...k,columns:n,columnsStyles:r,class:T,depth:w,expandColumnKey:a,estimatedRowHeight:S?void 0:c,isScrolling:h,rowIndex:p,rowData:d,rowKey:C,rowEventHandlers:_,style:f};return Object(s["createVNode"])(KO,Object(s["mergeProps"])(j,{onRowHover:E,onRowExpand:O}),$O(t)?t:{default:()=>[t]})},QO=(e,{slots:t})=>{var n;const{cellData:r,style:o}=e,a=(null==(n=null==r?void 0:r.toString)?void 0:n.call(r))||"";return Object(s["createVNode"])("div",{class:e.class,title:a,style:o},[t.default?t.default(e):a])};QO.displayName="ElTableV2Cell",QO.inheritAttrs=!1;const XO=e=>{const{expanded:t,expandable:n,onExpand:r,style:o,size:a}=e,i={onClick:n?()=>r(!t):void 0,class:e.class};return Object(s["createVNode"])(w["a"],Object(s["mergeProps"])(i,{size:a,style:o}),{default:()=>[Object(s["createVNode"])(R["ArrowRight"],null,null)]})},ZO=({columns:e,column:t,columnIndex:n,depth:r,expandIconProps:o,isScrolling:a,rowData:i,rowIndex:c,style:l,expandedRowKeys:u,ns:d,cellProps:p,expandColumnKey:f,indentSize:h,iconSize:m,rowKey:v},{slots:g})=>{const _=Zb(l);if(t.placeholderSign===Hb)return Object(s["createVNode"])("div",{class:d.em("row-cell","placeholder"),style:_},null);const{cellRenderer:y,dataKey:b,dataGetter:O}=t,M=eO(y),k=M||g.default||(e=>Object(s["createVNode"])(QO,e,null)),C=Object(Q["isFunction"])(O)?O({columns:e,column:t,columnIndex:n,rowData:i,rowIndex:c}):Object(x["get"])(i,null!=b?b:""),w=Xb(p,{cellData:C,columns:e,column:t,columnIndex:n,rowIndex:c,rowData:i}),I={class:d.e("cell-text"),columns:e,column:t,columnIndex:n,cellData:C,isScrolling:a,rowData:i,rowIndex:c},S=k(I),T=[d.e("row-cell"),t.class,t.align===Fb.CENTER&&d.is("align-center"),t.align===Fb.RIGHT&&d.is("align-right")],E=c>=0&&f&&t.key===f,j=c>=0&&u.includes(i[v]);let D;const L=`margin-inline-start: ${r*h}px;`;return E&&(D=Object(Q["isObject"])(o)?Object(s["createVNode"])(XO,Object(s["mergeProps"])(o,{class:[d.e("expand-icon"),d.is("expanded",j)],size:m,expanded:j,style:L,expandable:!0}),null):Object(s["createVNode"])("div",{style:[L,`width: ${m}px; height: ${m}px;`].join(" ")},null)),Object(s["createVNode"])("div",Object(s["mergeProps"])({class:T,style:_},w,{role:"cell"}),[D,S])};ZO.inheritAttrs=!1;const eM=Object(l["b"])({class:String,columns:aO,columnsStyles:{type:Object(l["c"])(Object),required:!0},headerIndex:Number,style:{type:Object(l["c"])(Object)}}),tM=Object(s["defineComponent"])({name:"ElTableV2HeaderRow",props:eM,setup(e,{slots:t}){return()=>{const{columns:n,columnsStyles:r,headerIndex:o,style:a}=e;let i=n.map((e,a)=>t.cell({columns:n,column:e,columnIndex:a,headerIndex:o,style:r[e.key]}));return t.header&&(i=t.header({cells:i.map(e=>Object(Q["isArray"])(e)&&1===e.length?e[0]:e),columns:n,headerIndex:o})),Object(s["createVNode"])("div",{class:e.class,style:a,role:"row"},[i])}}});function nM(e){return"function"===typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Object(s["isVNode"])(e)}const rM=({columns:e,columnsStyles:t,headerIndex:n,style:r,headerClass:o,headerProps:a,ns:i},{slots:c})=>{const l={columns:e,headerIndex:n},u=[i.e("header-row"),Xb(o,l,""),{[i.is("customized")]:Boolean(c.header)}],d={...Xb(a,l),columnsStyles:t,class:u,columns:e,headerIndex:n,style:r};return Object(s["createVNode"])(tM,d,nM(c)?c:{default:()=>[c]})},oM=(e,{slots:t})=>{var n,r;return t.default?t.default(e):Object(s["createVNode"])("div",{class:e.class,title:null==(n=e.column)?void 0:n.title},[null==(r=e.column)?void 0:r.title])};oM.displayName="ElTableV2HeaderCell",oM.inheritAttrs=!1;const aM=e=>{const{sortOrder:t}=e;return Object(s["createVNode"])(w["a"],{size:14,class:e.class},{default:()=>[t===Bb.ASC?Object(s["createVNode"])(R["SortUp"],null,null):Object(s["createVNode"])(R["SortDown"],null,null)]})},iM=(e,{slots:t})=>{const{column:n,ns:r,style:o,onColumnSorted:a}=e,i=Zb(o);if(n.placeholderSign===Hb)return Object(s["createVNode"])("div",{class:r.em("header-row-cell","placeholder"),style:i},null);const{headerCellRenderer:c,headerClass:l,sortable:u}=n,d={...e,class:r.e("header-cell-text")},p=eO(c)||t.default||(e=>Object(s["createVNode"])(oM,e,null)),f=p(d),{sortBy:h,sortState:m,headerCellProps:v}=e;let g,_;if(m){const e=m[n.key];g=Boolean(zb[e]),_=g?e:Bb.ASC}else g=n.key===h.key,_=g?h.order:Bb.ASC;const y=[r.e("header-cell"),Xb(l,e,""),n.align===Fb.CENTER&&r.is("align-center"),n.align===Fb.RIGHT&&r.is("align-right"),u&&r.is("sortable")],b={...Xb(v,e),onClick:n.sortable?a:void 0,class:y,style:i,["data-key"]:n.key};return Object(s["createVNode"])("div",Object(s["mergeProps"])(b,{role:"columnheader"}),[f,u&&Object(s["createVNode"])(aM,{class:[r.e("sort-icon"),g&&r.is("sorting")],sortOrder:_},null)])},sM=(e,{slots:t})=>{var n;return Object(s["createVNode"])("div",{class:e.class,style:e.style},[null==(n=t.default)?void 0:n.call(t)])};sM.displayName="ElTableV2Footer";const cM=(e,{slots:t})=>Object(s["createVNode"])("div",{class:e.class,style:e.style},[t.default?t.default():Object(s["createVNode"])(pp,null,null)]);cM.displayName="ElTableV2Empty";const lM=(e,{slots:t})=>{var n;return Object(s["createVNode"])("div",{class:e.class,style:e.style},[null==(n=t.default)?void 0:n.call(t)])};function uM(e){return"function"===typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Object(s["isVNode"])(e)}lM.displayName="ElTableV2Overlay";const dM="ElTableV2",pM=Object(s["defineComponent"])({name:dM,props:gO,setup(e,{slots:t,expose:n}){const r=Object(m["d"])("table-v2"),{columnsStyles:o,fixedColumnsOnLeft:a,fixedColumnsOnRight:i,mainColumns:c,mainTableHeight:l,fixedTableHeight:u,leftTableWidth:d,rightTableWidth:p,data:f,depthMap:h,expandedRowKeys:v,hasFixedColumns:g,hoveringRowKey:_,mainTableRef:y,leftTableRef:b,rightTableRef:O,isDynamic:M,isResetting:k,isScrolling:C,bodyWidth:w,emptyStyle:I,rootStyle:S,headerWidth:T,footerHeight:E,showEmpty:j,scrollTo:D,scrollToLeft:L,scrollToTop:A,scrollToRow:N,getRowHeight:x,onColumnSorted:R,onRowHeightChange:P,onRowHovered:U,onRowExpanded:V,onRowsRendered:B,onScroll:F,onVerticalScroll:G}=nO(e);return n({scrollTo:D,scrollToLeft:L,scrollToTop:A,scrollToRow:N}),Object(s["provide"])(rO,{ns:r,isResetting:k,hoveringRowKey:_,isScrolling:C}),()=>{const{cache:n,cellProps:m,estimatedRowHeight:k,expandColumnKey:C,fixedData:D,headerHeight:L,headerClass:A,headerProps:N,headerCellProps:z,sortBy:H,sortState:Y,rowHeight:q,rowClass:W,rowEventHandlers:K,rowKey:$,rowProps:J,scrollbarAlwaysOn:Q,indentSize:X,iconSize:Z,useIsScrolling:ee,vScrollbarSize:te,width:ne}=e,re=Object(s["unref"])(f),oe={cache:n,class:r.e("main"),columns:Object(s["unref"])(c),data:re,fixedData:D,estimatedRowHeight:k,bodyWidth:Object(s["unref"])(w),headerHeight:L,headerWidth:Object(s["unref"])(T),height:Object(s["unref"])(l),mainTableRef:y,rowKey:$,rowHeight:q,scrollbarAlwaysOn:Q,scrollbarStartGap:2,scrollbarEndGap:te,useIsScrolling:ee,width:ne,getRowHeight:x,onRowsRendered:B,onScroll:F},ae=Object(s["unref"])(d),ie=Object(s["unref"])(u),se={cache:n,class:r.e("left"),columns:Object(s["unref"])(a),data:re,estimatedRowHeight:k,leftTableRef:b,rowHeight:q,bodyWidth:ae,headerWidth:ae,headerHeight:L,height:ie,rowKey:$,scrollbarAlwaysOn:Q,scrollbarStartGap:2,scrollbarEndGap:te,useIsScrolling:ee,width:ae,getRowHeight:x,onScroll:G},ce=Object(s["unref"])(p),le=ce+te,ue={cache:n,class:r.e("right"),columns:Object(s["unref"])(i),data:re,estimatedRowHeight:k,rightTableRef:O,rowHeight:q,bodyWidth:le,headerWidth:le,headerHeight:L,height:ie,rowKey:$,scrollbarAlwaysOn:Q,scrollbarStartGap:2,scrollbarEndGap:te,width:le,style:`--${Object(s["unref"])(r.namespace)}-table-scrollbar-size: ${te}px`,useIsScrolling:ee,getRowHeight:x,onScroll:G},de=Object(s["unref"])(o),pe={ns:r,depthMap:Object(s["unref"])(h),columnsStyles:de,expandColumnKey:C,expandedRowKeys:Object(s["unref"])(v),estimatedRowHeight:k,hasFixedColumns:Object(s["unref"])(g),hoveringRowKey:Object(s["unref"])(_),rowProps:J,rowClass:W,rowKey:$,rowEventHandlers:K,onRowHovered:U,onRowExpanded:V,onRowHeightChange:P},fe={cellProps:m,expandColumnKey:C,indentSize:X,iconSize:Z,rowKey:$,expandedRowKeys:Object(s["unref"])(v),ns:r},he={ns:r,headerClass:A,headerProps:N,columnsStyles:de},me={ns:r,sortBy:H,sortState:Y,headerCellProps:z,onColumnSorted:R},ve={row:e=>Object(s["createVNode"])(JO,Object(s["mergeProps"])(e,pe),{row:t.row,cell:e=>{let n;return t.cell?Object(s["createVNode"])(ZO,Object(s["mergeProps"])(e,fe,{style:de[e.column.key]}),uM(n=t.cell(e))?n:{default:()=>[n]}):Object(s["createVNode"])(ZO,Object(s["mergeProps"])(e,fe,{style:de[e.column.key]}),null)}}),header:e=>Object(s["createVNode"])(rM,Object(s["mergeProps"])(e,he),{header:t.header,cell:e=>{let n;return t["header-cell"]?Object(s["createVNode"])(iM,Object(s["mergeProps"])(e,me,{style:de[e.column.key]}),uM(n=t["header-cell"](e))?n:{default:()=>[n]}):Object(s["createVNode"])(iM,Object(s["mergeProps"])(e,me,{style:de[e.column.key]}),null)}})},ge=[e.class,r.b(),r.e("root"),{[r.is("dynamic")]:Object(s["unref"])(M)}],_e={class:r.e("footer"),style:Object(s["unref"])(E)};return Object(s["createVNode"])("div",{class:ge,style:Object(s["unref"])(S)},[Object(s["createVNode"])(FO,oe,uM(ve)?ve:{default:()=>[ve]}),Object(s["createVNode"])(zO,se,uM(ve)?ve:{default:()=>[ve]}),Object(s["createVNode"])(YO,ue,uM(ve)?ve:{default:()=>[ve]}),t.footer&&Object(s["createVNode"])(sM,_e,{default:t.footer}),Object(s["unref"])(j)&&Object(s["createVNode"])(cM,{class:r.e("empty"),style:Object(s["unref"])(I)},{default:t.empty}),t.overlay&&Object(s["createVNode"])(lM,{class:r.e("overlay")},{default:t.overlay})])}}}),fM=Object(l["b"])({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:Object(l["c"])(Function)}}),hM=e=>{const t=Object(s["ref"])(),n=Object(s["ref"])(0),r=Object(s["ref"])(0);let o;return Object(s["onMounted"])(()=>{o=Object(c["useResizeObserver"])(t,([e])=>{const{width:t,height:o}=e.contentRect,{paddingLeft:a,paddingRight:i,paddingTop:s,paddingBottom:c}=getComputedStyle(e.target),l=Number.parseInt(a)||0,u=Number.parseInt(i)||0,d=Number.parseInt(s)||0,p=Number.parseInt(c)||0;n.value=t-l-u,r.value=o-d-p}).stop}),Object(s["onBeforeUnmount"])(()=>{null==o||o()}),Object(s["watch"])([n,r],([t,n])=>{var r;null==(r=e.onResize)||r.call(e,{width:t,height:n})}),{sizer:t,width:n,height:r}},mM=Object(s["defineComponent"])({name:"ElAutoResizer",props:fM,setup(e,{slots:t}){const n=Object(m["d"])("auto-resizer"),{height:r,width:o,sizer:a}=hM(e),i={width:"100%",height:"100%"};return()=>{var e;return Object(s["createVNode"])("div",{ref:a,class:n.b(),style:i},[null==(e=t.default)?void 0:e.call(t,{height:r.value,width:o.value})])}}}),vM=Object(k["a"])(pM),gM=Object(k["a"])(mM),_M=Symbol("tabsRootContextKey"),yM=Object(l["b"])({tabs:{type:Object(l["c"])(Array),default:()=>Object(Ra["a"])([])}}),bM="ElTabBar",OM=Object(s["defineComponent"])({name:bM}),MM=Object(s["defineComponent"])({...OM,props:yM,setup(e,{expose:t}){const n=e,r=Object(s["getCurrentInstance"])(),o=Object(s["inject"])(_M);o||Object(g["b"])(bM,"<el-tabs><el-tab-bar /></el-tabs>");const a=Object(m["d"])("tabs"),i=Object(s["ref"])(),l=Object(s["ref"])(),u=()=>{let e=0,t=0;const a=["top","bottom"].includes(o.props.tabPosition)?"width":"height",i="width"===a?"x":"y",s="x"===i?"left":"top";return n.tabs.every(o=>{var i,c;const l=null==(c=null==(i=r.parent)?void 0:i.refs)?void 0:c["tab-"+o.uid];if(!l)return!1;if(!o.active)return!0;e=l["offset"+Object(Go["a"])(s)],t=l["client"+Object(Go["a"])(a)];const u=window.getComputedStyle(l);return"width"===a&&(n.tabs.length>1&&(t-=Number.parseFloat(u.paddingLeft)+Number.parseFloat(u.paddingRight)),e+=Number.parseFloat(u.paddingLeft)),!1}),{[a]:t+"px",transform:`translate${Object(Go["a"])(i)}(${e}px)`}},d=()=>l.value=u();return Object(s["watch"])(()=>n.tabs,async()=>{await Object(s["nextTick"])(),d()},{immediate:!0}),Object(c["useResizeObserver"])(i,()=>d()),t({ref:i,update:d}),(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{ref_key:"barRef",ref:i,class:Object(s["normalizeClass"])([Object(s["unref"])(a).e("active-bar"),Object(s["unref"])(a).is(Object(s["unref"])(o).props.tabPosition)]),style:Object(s["normalizeStyle"])(l.value)},null,6))}});var kM=Object(h["a"])(MM,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-bar.vue"]]);const CM=Object(l["b"])({panes:{type:Object(l["c"])(Array),default:()=>Object(Ra["a"])([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),wM={tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},IM="ElTabNav",SM=Object(s["defineComponent"])({name:IM,props:CM,emits:wM,setup(e,{expose:t,emit:n}){const r=Object(s["getCurrentInstance"])(),o=Object(s["inject"])(_M);o||Object(g["b"])(IM,"<el-tabs><tab-nav /></el-tabs>");const a=Object(m["d"])("tabs"),i=Object(c["useDocumentVisibility"])(),l=Object(c["useWindowFocus"])(),u=Object(s["ref"])(),d=Object(s["ref"])(),p=Object(s["ref"])(),f=Object(s["ref"])(),h=Object(s["ref"])(!1),v=Object(s["ref"])(0),_=Object(s["ref"])(!1),y=Object(s["ref"])(!0),b=Object(s["computed"])(()=>["top","bottom"].includes(o.props.tabPosition)?"width":"height"),O=Object(s["computed"])(()=>{const e="width"===b.value?"X":"Y";return{transform:`translate${e}(-${v.value}px)`}}),M=()=>{if(!u.value)return;const e=u.value["offset"+Object(Go["a"])(b.value)],t=v.value;if(!t)return;const n=t>e?t-e:0;v.value=n},k=()=>{if(!u.value||!d.value)return;const e=d.value["offset"+Object(Go["a"])(b.value)],t=u.value["offset"+Object(Go["a"])(b.value)],n=v.value;if(e-n<=t)return;const r=e-n>2*t?n+t:e-t;v.value=r},C=async()=>{const e=d.value;if(!h.value||!p.value||!u.value||!e)return;await Object(s["nextTick"])();const t=p.value.querySelector(".is-active");if(!t)return;const n=u.value,r=["top","bottom"].includes(o.props.tabPosition),a=t.getBoundingClientRect(),i=n.getBoundingClientRect(),c=r?e.offsetWidth-i.width:e.offsetHeight-i.height,l=v.value;let f=l;r?(a.left<i.left&&(f=l-(i.left-a.left)),a.right>i.right&&(f=l+a.right-i.right)):(a.top<i.top&&(f=l-(i.top-a.top)),a.bottom>i.bottom&&(f=l+(a.bottom-i.bottom))),f=Math.max(f,0),v.value=Math.min(f,c)},I=()=>{var t;if(!d.value||!u.value)return;e.stretch&&(null==(t=f.value)||t.update());const n=d.value["offset"+Object(Go["a"])(b.value)],r=u.value["offset"+Object(Go["a"])(b.value)],o=v.value;r<n?(h.value=h.value||{},h.value.prev=o,h.value.next=o+r<n,n-o<r&&(v.value=n-r)):(h.value=!1,o>0&&(v.value=0))},S=e=>{const t=e.code,{up:n,down:r,left:o,right:a}=Me["a"];if(![n,r,o,a].includes(t))return;const i=Array.from(e.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")),s=i.indexOf(e.target);let c;c=t===o||t===n?0===s?i.length-1:s-1:s<i.length-1?s+1:0,i[c].focus({preventScroll:!0}),i[c].click(),T()},T=()=>{y.value&&(_.value=!0)},E=()=>_.value=!1;return Object(s["watch"])(i,e=>{"hidden"===e?y.value=!1:"visible"===e&&setTimeout(()=>y.value=!0,50)}),Object(s["watch"])(l,e=>{e?setTimeout(()=>y.value=!0,50):y.value=!1}),Object(c["useResizeObserver"])(p,I),Object(s["onMounted"])(()=>setTimeout(()=>C(),0)),Object(s["onUpdated"])(()=>I()),t({scrollToActiveTab:C,removeFocus:E}),Object(s["watch"])(()=>e.panes,()=>r.update(),{flush:"post",deep:!0}),()=>{const t=h.value?[Object(s["createVNode"])("span",{class:[a.e("nav-prev"),a.is("disabled",!h.value.prev)],onClick:M},[Object(s["createVNode"])(w["a"],null,{default:()=>[Object(s["createVNode"])(R["ArrowLeft"],null,null)]})]),Object(s["createVNode"])("span",{class:[a.e("nav-next"),a.is("disabled",!h.value.next)],onClick:k},[Object(s["createVNode"])(w["a"],null,{default:()=>[Object(s["createVNode"])(R["ArrowRight"],null,null)]})])]:null,r=e.panes.map((t,r)=>{var i,c,l,u;const d=t.uid,p=t.props.disabled,f=null!=(c=null!=(i=t.props.name)?i:t.index)?c:""+r,h=!p&&(t.isClosable||e.editable);t.index=""+r;const m=h?Object(s["createVNode"])(w["a"],{class:"is-icon-close",onClick:e=>n("tabRemove",t,e)},{default:()=>[Object(s["createVNode"])(R["Close"],null,null)]}):null,v=(null==(u=(l=t.slots).label)?void 0:u.call(l))||t.props.label,g=!p&&t.active?0:-1;return Object(s["createVNode"])("div",{ref:"tab-"+d,class:[a.e("item"),a.is(o.props.tabPosition),a.is("active",t.active),a.is("disabled",p),a.is("closable",h),a.is("focus",_.value)],id:"tab-"+f,key:"tab-"+d,"aria-controls":"pane-"+f,role:"tab","aria-selected":t.active,tabindex:g,onFocus:()=>T(),onBlur:()=>E(),onClick:e=>{E(),n("tabClick",t,f,e)},onKeydown:e=>{!h||e.code!==Me["a"].delete&&e.code!==Me["a"].backspace||n("tabRemove",t,e)}},[v,m])});return Object(s["createVNode"])("div",{ref:p,class:[a.e("nav-wrap"),a.is("scrollable",!!h.value),a.is(o.props.tabPosition)]},[t,Object(s["createVNode"])("div",{class:a.e("nav-scroll"),ref:u},[Object(s["createVNode"])("div",{class:[a.e("nav"),a.is(o.props.tabPosition),a.is("stretch",e.stretch&&["top","bottom"].includes(o.props.tabPosition))],ref:d,style:O.value,role:"tablist",onKeydown:S},[e.type?null:Object(s["createVNode"])(kM,{ref:f,tabs:[...e.panes]},null),r])])])}}}),TM=Object(l["b"])({type:{type:String,values:["card","border-card",""],default:""},activeName:{type:[String,Number]},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:Object(l["c"])(Function),default:()=>!0},stretch:Boolean}),EM=e=>Object(Q["isString"])(e)||Object(u["d"])(e),jM={[d["c"]]:e=>EM(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>EM(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>EM(e),tabAdd:()=>!0};var DM=Object(s["defineComponent"])({name:"ElTabs",props:TM,emits:jM,setup(e,{emit:t,slots:n,expose:r}){var o,a;const i=Object(m["d"])("tabs"),{children:c,addChild:l,removeChild:p}=mr(Object(s["getCurrentInstance"])(),"ElTabPane"),f=Object(s["ref"])(),h=Object(s["ref"])(null!=(a=null!=(o=e.modelValue)?o:e.activeName)?a:"0"),v=e=>{h.value=e,t(d["c"],e),t("tabChange",e)},g=async t=>{var n,r,o;if(h.value!==t&&!Object(u["g"])(t))try{const a=await(null==(n=e.beforeLeave)?void 0:n.call(e,t,h.value));!1!==a&&(v(t),null==(o=null==(r=f.value)?void 0:r.removeFocus)||o.call(r))}catch(a){}},_=(e,n,r)=>{e.props.disabled||(g(n),t("tabClick",e,r))},y=(e,n)=>{e.props.disabled||Object(u["g"])(e.props.name)||(n.stopPropagation(),t("edit",e.props.name,"remove"),t("tabRemove",e.props.name))},b=()=>{t("edit",void 0,"add"),t("tabAdd")};return Object(Wn["a"])({from:'"activeName"',replacement:'"model-value" or "v-model"',scope:"ElTabs",version:"2.3.0",ref:"https://element-plus.org/en-US/component/tabs.html#attributes",type:"Attribute"},Object(s["computed"])(()=>!!e.activeName)),Object(s["watch"])(()=>e.activeName,e=>g(e)),Object(s["watch"])(()=>e.modelValue,e=>g(e)),Object(s["watch"])(h,async()=>{var e;await Object(s["nextTick"])(),null==(e=f.value)||e.scrollToActiveTab()}),Object(s["provide"])(_M,{props:e,currentName:h,registerPane:l,unregisterPane:p}),r({currentName:h}),()=>{const t=e.editable||e.addable?Object(s["createVNode"])("span",{class:i.e("new-tab"),tabindex:"0",onClick:b,onKeydown:e=>{e.code===Me["a"].enter&&b()}},[Object(s["createVNode"])(w["a"],{class:i.is("icon-plus")},{default:()=>[Object(s["createVNode"])(R["Plus"],null,null)]})]):null,r=Object(s["createVNode"])("div",{class:[i.e("header"),i.is(e.tabPosition)]},[t,Object(s["createVNode"])(SM,{ref:f,currentName:h.value,editable:e.editable,type:e.type,panes:c.value,stretch:e.stretch,onTabClick:_,onTabRemove:y},null)]),o=Object(s["createVNode"])("div",{class:i.e("content")},[Object(s["renderSlot"])(n,"default")]);return Object(s["createVNode"])("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 LM=Object(l["b"])({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),AM=["id","aria-hidden","aria-labelledby"],NM="ElTabPane",xM=Object(s["defineComponent"])({name:NM}),RM=Object(s["defineComponent"])({...xM,props:LM,setup(e){const t=e,n=Object(s["getCurrentInstance"])(),r=Object(s["useSlots"])(),o=Object(s["inject"])(_M);o||Object(g["b"])(NM,"usage: <el-tabs><el-tab-pane /></el-tabs/>");const a=Object(m["d"])("tab-pane"),i=Object(s["ref"])(),l=Object(s["computed"])(()=>t.closable||o.props.closable),u=Object(c["eagerComputed"])(()=>{var e;return o.currentName.value===(null!=(e=t.name)?e:i.value)}),d=Object(s["ref"])(u.value),p=Object(s["computed"])(()=>{var e;return null!=(e=t.name)?e:i.value}),f=Object(c["eagerComputed"])(()=>!t.lazy||d.value||u.value);Object(s["watch"])(u,e=>{e&&(d.value=!0)});const h=Object(s["reactive"])({uid:n.uid,slots:r,props:t,paneName:p,active:u,index:i,isClosable:l});return Object(s["onMounted"])(()=>{o.registerPane(h)}),Object(s["onUnmounted"])(()=>{o.unregisterPane(h.uid)}),(e,t)=>Object(s["unref"])(f)?Object(s["withDirectives"])((Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:0,id:"pane-"+Object(s["unref"])(p),class:Object(s["normalizeClass"])(Object(s["unref"])(a).b()),role:"tabpanel","aria-hidden":!Object(s["unref"])(u),"aria-labelledby":"tab-"+Object(s["unref"])(p)},[Object(s["renderSlot"])(e.$slots,"default")],10,AM)),[[s["vShow"],Object(s["unref"])(u)]]):Object(s["createCommentVNode"])("v-if",!0)}});var PM=Object(h["a"])(RM,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-pane.vue"]]);const UM=Object(k["a"])(DM,{TabPane:PM}),VM=Object(k["d"])(PM),BM=Object(l["b"])({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:Yt["b"],default:""},truncated:{type:Boolean},tag:{type:String,default:"span"}}),FM=Object(s["defineComponent"])({name:"ElText"}),GM=Object(s["defineComponent"])({...FM,props:BM,setup(e){const t=e,n=Object(xt["b"])(),r=Object(m["d"])("text"),o=Object(s["computed"])(()=>[r.b(),r.m(t.type),r.m(n.value),r.is("truncated",t.truncated)]);return(e,t)=>(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["resolveDynamicComponent"])(e.tag),{class:Object(s["normalizeClass"])(Object(s["unref"])(o))},{default:Object(s["withCtx"])(()=>[Object(s["renderSlot"])(e.$slots,"default")]),_:3},8,["class"]))}});var zM=Object(h["a"])(GM,[["__file","/home/runner/work/element-plus/element-plus/packages/components/text/src/text.vue"]]);const HM=Object(k["a"])(zM),YM=Object(l["b"])({...zs,parsedValue:{type:Object(l["c"])(Array)}}),qM=["disabled"],WM=Object(s["defineComponent"])({__name:"panel-time-range",props:YM,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,r=(e,t)=>{const n=[];for(let r=e;r<=t;r++)n.push(r);return n},{t:o,lang:a}=Object(Vn["b"])(),i=Object(m["d"])("time"),c=Object(m["d"])("picker"),l=Object(s["inject"])("EP_PICKER_BASE"),{arrowControl:u,disabledHours:d,disabledMinutes:p,disabledSeconds:f,defaultValue:h}=l.props,v=Object(s["computed"])(()=>[i.be("range-picker","body"),i.be("panel","content"),i.is("arrow",u),M.value?"has-seconds":""]),g=Object(s["computed"])(()=>[i.be("range-picker","body"),i.be("panel","content"),i.is("arrow",u),M.value?"has-seconds":""]),_=Object(s["computed"])(()=>n.parsedValue[0]),y=Object(s["computed"])(()=>n.parsedValue[1]),b=Dc(n),O=()=>{t("pick",b.value,!1)},M=Object(s["computed"])(()=>n.format.includes("ss")),k=Object(s["computed"])(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),C=(e=!1)=>{t("pick",[_.value,y.value],e)},w=e=>{T(e.millisecond(0),y.value)},I=e=>{T(_.value,e.millisecond(0))},S=e=>{const t=e.map(e=>Mn()(e).locale(a.value)),n=B(t);return t[0].isSame(n[0])&&t[1].isSame(n[1])},T=(e,n)=>{t("pick",[e,n],!0)},E=Object(s["computed"])(()=>_.value>y.value),j=Object(s["ref"])([0,2]),D=(e,n)=>{t("select-range",e,n,"min"),j.value=[e,n]},L=Object(s["computed"])(()=>M.value?11:8),A=(e,n)=>{t("select-range",e,n,"max");const r=Object(s["unref"])(L);j.value=[e+r,n+r]},N=e=>{const t=M.value?[0,3,6,11,14,17]:[0,3,8,11],n=["hours","minutes"].concat(M.value?["seconds"]:[]),r=t.indexOf(j.value[0]),o=(r+e+t.length)%t.length,a=t.length/2;o<a?H["start_emitSelectRange"](n[o]):H["end_emitSelectRange"](n[o-a])},R=e=>{const t=e.code,{left:n,right:r,up:o,down:a}=Me["a"];if([n,r].includes(t)){const r=t===n?-1:1;return N(r),void e.preventDefault()}if([o,a].includes(t)){const n=t===o?-1:1,r=j.value[0]<L.value?"start":"end";return H[r+"_scrollDown"](n),void e.preventDefault()}},P=(e,t)=>{const n=d?d(e):[],o="start"===e,a=t||(o?y.value:_.value),i=a.hour(),s=o?r(i+1,23):r(0,i-1);return Object(x["union"])(n,s)},U=(e,t,n)=>{const o=p?p(e,t):[],a="start"===t,i=n||(a?y.value:_.value),s=i.hour();if(e!==s)return o;const c=i.minute(),l=a?r(c+1,59):r(0,c-1);return Object(x["union"])(o,l)},V=(e,t,n,o)=>{const a=f?f(e,t,n):[],i="start"===n,s=o||(i?y.value:_.value),c=s.hour(),l=s.minute();if(e!==c||t!==l)return a;const u=s.second(),d=i?r(u+1,59):r(0,u-1);return Object(x["union"])(a,d)},B=([e,t])=>[Y(e,"start",!0,t),Y(t,"end",!1,e)],{getAvailableHours:F,getAvailableMinutes:G,getAvailableSeconds:z}=jc(P,U,V),{timePickerOptions:H,getAvailableTime:Y,onSetOption:q}=Sc({getAvailableHours:F,getAvailableMinutes:G,getAvailableSeconds:z}),W=e=>e?Object(Q["isArray"])(e)?e.map(e=>Mn()(e,n.format).locale(a.value)):Mn()(e,n.format).locale(a.value):null,K=e=>e?Object(Q["isArray"])(e)?e.map(e=>e.format(n.format)):e.format(n.format):null,$=()=>{if(Object(Q["isArray"])(h))return h.map(e=>Mn()(e).locale(a.value));const e=Mn()(h).locale(a.value);return[e,e.add(60,"m")]};return t("set-picker-option",["formatToString",K]),t("set-picker-option",["parseUserInput",W]),t("set-picker-option",["isValidValue",S]),t("set-picker-option",["handleKeydownInput",R]),t("set-picker-option",["getDefaultValue",$]),t("set-picker-option",["getRangeAvailableTime",B]),(e,t)=>e.actualVisible?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:0,class:Object(s["normalizeClass"])([Object(s["unref"])(i).b("range-picker"),Object(s["unref"])(c).b("panel")])},[Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(i).be("range-picker","content"))},[Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(i).be("range-picker","cell"))},[Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(i).be("range-picker","header"))},Object(s["toDisplayString"])(Object(s["unref"])(o)("el.datepicker.startTime")),3),Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(v))},[Object(s["createVNode"])(zc,{ref:"minSpinner",role:"start","show-seconds":Object(s["unref"])(M),"am-pm-mode":Object(s["unref"])(k),"arrow-control":Object(s["unref"])(u),"spinner-date":Object(s["unref"])(_),"disabled-hours":P,"disabled-minutes":U,"disabled-seconds":V,onChange:w,onSetOption:Object(s["unref"])(q),onSelectRange:D},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2),Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(i).be("range-picker","cell"))},[Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(i).be("range-picker","header"))},Object(s["toDisplayString"])(Object(s["unref"])(o)("el.datepicker.endTime")),3),Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(g))},[Object(s["createVNode"])(zc,{ref:"maxSpinner",role:"end","show-seconds":Object(s["unref"])(M),"am-pm-mode":Object(s["unref"])(k),"arrow-control":Object(s["unref"])(u),"spinner-date":Object(s["unref"])(y),"disabled-hours":P,"disabled-minutes":U,"disabled-seconds":V,onChange:I,onSetOption:Object(s["unref"])(q),onSelectRange:A},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2)],2),Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(i).be("panel","footer"))},[Object(s["createElementVNode"])("button",{type:"button",class:Object(s["normalizeClass"])([Object(s["unref"])(i).be("panel","btn"),"cancel"]),onClick:t[0]||(t[0]=e=>O())},Object(s["toDisplayString"])(Object(s["unref"])(o)("el.datepicker.cancel")),3),Object(s["createElementVNode"])("button",{type:"button",class:Object(s["normalizeClass"])([Object(s["unref"])(i).be("panel","btn"),"confirm"]),disabled:Object(s["unref"])(E),onClick:t[1]||(t[1]=e=>C())},Object(s["toDisplayString"])(Object(s["unref"])(o)("el.datepicker.confirm")),11,qM)],2)],2)):Object(s["createCommentVNode"])("v-if",!0)}});var KM=Object(h["a"])(WM,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/panel-time-range.vue"]]);Mn.a.extend(Ts.a);var $M=Object(s["defineComponent"])({name:"ElTimePicker",install:null,props:{...Hs,isRange:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,t){const n=Object(s["ref"])(),[r,o]=e.isRange?["timerange",KM]:["time",Yc],a=e=>t.emit("update:modelValue",e);return Object(s["provide"])("ElPopperOptions",e.popperOptions),t.expose({focus:e=>{var t;null==(t=n.value)||t.handleFocusInput(e)},blur:e=>{var t;null==(t=n.value)||t.handleBlurInput(e)},handleOpen:()=>{var e;null==(e=n.value)||e.handleOpen()},handleClose:()=>{var e;null==(e=n.value)||e.handleClose()}}),()=>{var t;const i=null!=(t=e.format)?t:Ac;return Object(s["createVNode"])(wl,Object(s["mergeProps"])(e,{ref:n,type:r,format:i,"onUpdate:modelValue":a}),{default:e=>Object(s["createVNode"])(o,e,null)})}}});const JM=$M;JM.install=e=>{e.component(JM.name,JM)};const QM=JM,XM=Object(l["b"])({format:{type:String,default:"HH:mm"},modelValue:String,disabled:Boolean,editable:{type:Boolean,default:!0},effect:{type:String,default:"light"},clearable:{type:Boolean,default:!0},size:Lr["c"],placeholder:String,start:{type:String,default:"09:00"},end:{type:String,default:"18:00"},step:{type:String,default:"00:30"},minTime:String,maxTime:String,name:String,prefixIcon:{type:Object(l["c"])([String,Object]),default:()=>R["Clock"]},clearIcon:{type:Object(l["c"])([String,Object]),default:()=>R["CircleClose"]}}),ZM=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},ek=(e,t)=>{const n=ZM(e);if(!n)return-1;const r=ZM(t);if(!r)return-1;const o=n.minutes+60*n.hours,a=r.minutes+60*r.hours;return o===a?0:o>a?1:-1},tk=e=>(""+e).padStart(2,"0"),nk=e=>`${tk(e.hours)}:${tk(e.minutes)}`,rk=(e,t)=>{const n=ZM(e);if(!n)return"";const r=ZM(t);if(!r)return"";const 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,nk(o)},ok=Object(s["defineComponent"])({name:"ElTimeSelect"}),ak=Object(s["defineComponent"])({...ok,props:XM,emits:["change","blur","focus","update:modelValue"],setup(e,{expose:t}){const n=e;Mn.a.extend(Ts.a);const{Option:r}=hh,o=Object(m["d"])("input"),a=Object(s["ref"])(),i=Object(xt["a"])(),c=Object(s["computed"])(()=>n.modelValue),l=Object(s["computed"])(()=>{const e=ZM(n.start);return e?nk(e):null}),u=Object(s["computed"])(()=>{const e=ZM(n.end);return e?nk(e):null}),d=Object(s["computed"])(()=>{const e=ZM(n.step);return e?nk(e):null}),p=Object(s["computed"])(()=>{const e=ZM(n.minTime||"");return e?nk(e):null}),f=Object(s["computed"])(()=>{const e=ZM(n.maxTime||"");return e?nk(e):null}),h=Object(s["computed"])(()=>{const e=[];if(n.start&&n.end&&n.step){let t,r=l.value;while(r&&u.value&&ek(r,u.value)<=0)t=Mn()(r,"HH:mm").format(n.format),e.push({value:t,disabled:ek(r,p.value||"-1:-1")<=0||ek(r,f.value||"100:100")>=0}),r=rk(r,d.value)}return e}),v=()=>{var e,t;null==(t=null==(e=a.value)?void 0:e.blur)||t.call(e)},g=()=>{var e,t;null==(t=null==(e=a.value)?void 0:e.focus)||t.call(e)};return t({blur:v,focus:g}),(e,t)=>(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(hh),{ref_key:"select",ref:a,"model-value":Object(s["unref"])(c),disabled:Object(s["unref"])(i),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:Object(s["withCtx"])(()=>[e.prefixIcon?(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(w["a"]),{key:0,class:Object(s["normalizeClass"])(Object(s["unref"])(o).e("prefix-icon"))},{default:Object(s["withCtx"])(()=>[(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["resolveDynamicComponent"])(e.prefixIcon)))]),_:1},8,["class"])):Object(s["createCommentVNode"])("v-if",!0)]),default:Object(s["withCtx"])(()=>[(Object(s["openBlock"])(!0),Object(s["createElementBlock"])(s["Fragment"],null,Object(s["renderList"])(Object(s["unref"])(h),e=>(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(r),{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 ik=Object(h["a"])(ak,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-select/src/time-select.vue"]]);ik.install=e=>{e.component(ik.name,ik)};const sk=ik,ck=sk,lk=Object(s["defineComponent"])({name:"ElTimeline",setup(e,{slots:t}){const n=Object(m["d"])("timeline");return Object(s["provide"])("timeline",t),()=>Object(s["h"])("ul",{class:[n.b()]},[Object(s["renderSlot"])(t,"default")])}}),uk=Object(l["b"])({timestamp:{type:String,default:""},hideTimestamp:{type:Boolean,default:!1},center:{type:Boolean,default:!1},placement:{type:String,values:["top","bottom"],default:"bottom"},type:{type:String,values:["primary","success","warning","danger","info"],default:""},color:{type:String,default:""},size:{type:String,values:["normal","large"],default:"normal"},icon:{type:S["e"]},hollow:{type:Boolean,default:!1}}),dk=Object(s["defineComponent"])({name:"ElTimelineItem"}),pk=Object(s["defineComponent"])({...dk,props:uk,setup(e){const t=e,n=Object(m["d"])("timeline-item"),r=Object(s["computed"])(()=>[n.e("node"),n.em("node",t.size||""),n.em("node",t.type||""),n.is("hollow",t.hollow)]);return(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("li",{class:Object(s["normalizeClass"])([Object(s["unref"])(n).b(),{[Object(s["unref"])(n).e("center")]:e.center}])},[Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(n).e("tail"))},null,2),e.$slots.dot?Object(s["createCommentVNode"])("v-if",!0):(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:0,class:Object(s["normalizeClass"])(Object(s["unref"])(r)),style:Object(s["normalizeStyle"])({backgroundColor:e.color})},[e.icon?(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(w["a"]),{key:0,class:Object(s["normalizeClass"])(Object(s["unref"])(n).e("icon"))},{default:Object(s["withCtx"])(()=>[(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["resolveDynamicComponent"])(e.icon)))]),_:1},8,["class"])):Object(s["createCommentVNode"])("v-if",!0)],6)),e.$slots.dot?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:1,class:Object(s["normalizeClass"])(Object(s["unref"])(n).e("dot"))},[Object(s["renderSlot"])(e.$slots,"dot")],2)):Object(s["createCommentVNode"])("v-if",!0),Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(n).e("wrapper"))},[e.hideTimestamp||"top"!==e.placement?Object(s["createCommentVNode"])("v-if",!0):(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:0,class:Object(s["normalizeClass"])([Object(s["unref"])(n).e("timestamp"),Object(s["unref"])(n).is("top")])},Object(s["toDisplayString"])(e.timestamp),3)),Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(n).e("content"))},[Object(s["renderSlot"])(e.$slots,"default")],2),e.hideTimestamp||"bottom"!==e.placement?Object(s["createCommentVNode"])("v-if",!0):(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:1,class:Object(s["normalizeClass"])([Object(s["unref"])(n).e("timestamp"),Object(s["unref"])(n).is("bottom")])},Object(s["toDisplayString"])(e.timestamp),3))],2)],2))}});var fk=Object(h["a"])(pk,[["__file","/home/runner/work/element-plus/element-plus/packages/components/timeline/src/timeline-item.vue"]]);const hk=Object(k["a"])(lk,{TimelineItem:fk}),mk=Object(k["d"])(fk),vk=Object(l["b"])({nowrap:Boolean});var gk=(e=>(e["top"]="top",e["bottom"]="bottom",e["left"]="left",e["right"]="right",e))(gk||{});const _k=Object.values(gk),yk=Object(l["b"])({width:{type:Number,default:10},height:{type:Number,default:10},style:{type:Object(l["c"])(Object),default:null}}),bk=Object(l["b"])({side:{type:Object(l["c"])(String),values:_k,required:!0}}),Ok=["absolute","fixed"],Mk=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],kk=Object(l["b"])({ariaLabel:String,arrowPadding:{type:Object(l["c"])(Number),default:5},effect:{type:String,default:""},contentClass:String,placement:{type:Object(l["c"])(String),values:Mk,default:"bottom"},reference:{type:Object(l["c"])(Object),default:null},offset:{type:Number,default:8},strategy:{type:Object(l["c"])(String),values:Ok,default:"absolute"},showArrow:{type:Boolean,default:!1}}),Ck=Object(l["b"])({delayDuration:{type:Number,default:300},defaultOpen:Boolean,open:{type:Boolean,default:void 0},onOpenChange:{type:Object(l["c"])(Function)},"onUpdate:open":{type:Object(l["c"])(Function)}}),wk={type:Object(l["c"])(Function)},Ik=Object(l["b"])({onBlur:wk,onClick:wk,onFocus:wk,onMouseDown:wk,onMouseEnter:wk,onMouseLeave:wk}),Sk=Object(l["b"])({...Ck,...yk,...Ik,...kk,alwaysOn:Boolean,fullTransition:Boolean,transitionProps:{type:Object(l["c"])(Object),default:null},teleported:Boolean,to:{type:Object(l["c"])(String),default:"body"}}),Tk=Symbol("tooltipV2"),Ek=Symbol("tooltipV2Content"),jk="tooltip_v2.open",Dk=Object(s["defineComponent"])({name:"ElTooltipV2Root"}),Lk=Object(s["defineComponent"])({...Dk,props:Ck,setup(e,{expose:t}){const n=e,r=Object(s["ref"])(n.defaultOpen),o=Object(s["ref"])(null),a=Object(s["computed"])({get:()=>Object(u["e"])(n.open)?r.value:n.open,set:e=>{var t;r.value=e,null==(t=n["onUpdate:open"])||t.call(n,e)}}),i=Object(s["computed"])(()=>Object(u["d"])(n.delayDuration)&&n.delayDuration>0),{start:l,stop:d}=Object(c["useTimeoutFn"])(()=>{a.value=!0},Object(s["computed"])(()=>n.delayDuration),{immediate:!1}),p=Object(m["d"])("tooltip-v2"),f=Object(Ze["a"])(),h=()=>{d(),a.value=!0},v=()=>{Object(s["unref"])(i)?l():h()},g=h,_=()=>{d(),a.value=!1},y=e=>{var t;e&&(document.dispatchEvent(new CustomEvent(jk)),g()),null==(t=n.onOpenChange)||t.call(n,e)};return Object(s["watch"])(a,y),Object(s["onMounted"])(()=>{document.addEventListener(jk,_)}),Object(s["onBeforeUnmount"])(()=>{d(),document.removeEventListener(jk,_)}),Object(s["provide"])(Tk,{contentId:f,triggerRef:o,ns:p,onClose:_,onDelayOpen:v,onOpen:g}),t({onOpen:g,onClose:_}),(e,t)=>Object(s["renderSlot"])(e.$slots,"default",{open:Object(s["unref"])(a)})}});var Ak=Object(h["a"])(Lk,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/root.vue"]]);const Nk=Object(s["defineComponent"])({name:"ElTooltipV2Arrow"}),xk=Object(s["defineComponent"])({...Nk,props:{...yk,...bk},setup(e){const t=e,{ns:n}=Object(s["inject"])(Tk),{arrowRef:r}=Object(s["inject"])(Ek),o=Object(s["computed"])(()=>{const{style:e,width:r,height:o}=t,a=n.namespace.value;return{[`--${a}-tooltip-v2-arrow-width`]:r+"px",[`--${a}-tooltip-v2-arrow-height`]:o+"px",[`--${a}-tooltip-v2-arrow-border-width`]:r/2+"px",[`--${a}-tooltip-v2-arrow-cover-width`]:r/2-1,...e||{}}});return(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",{ref_key:"arrowRef",ref:r,style:Object(s["normalizeStyle"])(Object(s["unref"])(o)),class:Object(s["normalizeClass"])(Object(s["unref"])(n).e("arrow"))},null,6))}});var Rk=Object(h["a"])(xk,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/arrow.vue"]]),Pk=n("712a");Object(l["b"])({});const Uk=e=>{if(!c["isClient"])return;if(!e)return e;const t=Object(c["unrefElement"])(e);return t||(Object(s["isRef"])(e)?t:e)},Vk=({middleware:e,placement:t,strategy:n})=>{const r=Object(s["ref"])(),o=Object(s["ref"])(),a=Object(s["ref"])(),i=Object(s["ref"])(),l=Object(s["ref"])({}),u={x:a,y:i,placement:t,strategy:n,middlewareData:l},d=async()=>{if(!c["isClient"])return;const a=Uk(r),i=Object(c["unrefElement"])(o);if(!a||!i)return;const l=await Object(Pk["computePosition"])(a,i,{placement:Object(s["unref"])(t),strategy:Object(s["unref"])(n),middleware:Object(s["unref"])(e)});Object(I["c"])(u).forEach(e=>{u[e].value=l[e]})};return Object(s["onMounted"])(()=>{Object(s["watchEffect"])(()=>{d()})}),{...u,update:d,referenceRef:r,contentRef:o}},Bk=({arrowRef:e,padding:t})=>({name:"arrow",options:{element:e,padding:t},fn(n){const r=Object(s["unref"])(e);return r?Object(Pk["arrow"])({element:r,padding:t}).fn(n):{}}}),Fk=Object(l["b"])({style:{type:Object(l["c"])([String,Object,Array]),default:()=>({})}}),Gk=Object(s["defineComponent"])({name:"ElVisuallyHidden"}),zk=Object(s["defineComponent"])({...Gk,props:Fk,setup(e){const t=e,n=Object(s["computed"])(()=>[t.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"}]);return(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",Object(s["mergeProps"])(e.$attrs,{style:Object(s["unref"])(n)}),[Object(s["renderSlot"])(e.$slots,"default")],16))}});var Hk=Object(h["a"])(zk,[["__file","/home/runner/work/element-plus/element-plus/packages/components/visual-hidden/src/visual-hidden.vue"]]);const Yk=["data-side"],qk=Object(s["defineComponent"])({name:"ElTooltipV2Content"}),Wk=Object(s["defineComponent"])({...qk,props:{...kk,...vk},setup(e){const t=e,{triggerRef:n,contentId:r}=Object(s["inject"])(Tk),o=Object(s["ref"])(t.placement),a=Object(s["ref"])(t.strategy),i=Object(s["ref"])(null),{referenceRef:c,contentRef:l,middlewareData:u,x:d,y:p,update:f}=Vk({placement:o,strategy:a,middleware:Object(s["computed"])(()=>{const e=[Object(Pk["offset"])(t.offset)];return t.showArrow&&e.push(Bk({arrowRef:i})),e})}),h=Object(ft["b"])().nextZIndex(),v=Object(m["d"])("tooltip-v2"),g=Object(s["computed"])(()=>o.value.split("-")[0]),_=Object(s["computed"])(()=>({position:Object(s["unref"])(a),top:(Object(s["unref"])(p)||0)+"px",left:(Object(s["unref"])(d)||0)+"px",zIndex:h})),y=Object(s["computed"])(()=>{if(!t.showArrow)return{};const{arrow:e}=Object(s["unref"])(u);return{[`--${v.namespace.value}-tooltip-v2-arrow-x`]:(null==e?void 0:e.x)+"px"||"",[`--${v.namespace.value}-tooltip-v2-arrow-y`]:(null==e?void 0:e.y)+"px"||""}}),b=Object(s["computed"])(()=>[v.e("content"),v.is("dark","dark"===t.effect),v.is(Object(s["unref"])(a)),t.contentClass]);return Object(s["watch"])(i,()=>f()),Object(s["watch"])(()=>t.placement,e=>o.value=e),Object(s["onMounted"])(()=>{Object(s["watch"])(()=>t.reference||n.value,e=>{c.value=e||void 0},{immediate:!0})}),Object(s["provide"])(Ek,{arrowRef:i}),(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{ref_key:"contentRef",ref:l,style:Object(s["normalizeStyle"])(Object(s["unref"])(_)),"data-tooltip-v2-root":""},[e.nowrap?Object(s["createCommentVNode"])("v-if",!0):(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:0,"data-side":Object(s["unref"])(g),class:Object(s["normalizeClass"])(Object(s["unref"])(b))},[Object(s["renderSlot"])(e.$slots,"default",{contentStyle:Object(s["unref"])(_),contentClass:Object(s["unref"])(b)}),Object(s["createVNode"])(Object(s["unref"])(Hk),{id:Object(s["unref"])(r),role:"tooltip"},{default:Object(s["withCtx"])(()=>[e.ariaLabel?(Object(s["openBlock"])(),Object(s["createElementBlock"])(s["Fragment"],{key:0},[Object(s["createTextVNode"])(Object(s["toDisplayString"])(e.ariaLabel),1)],64)):Object(s["renderSlot"])(e.$slots,"default",{key:1})]),_:3},8,["id"]),Object(s["renderSlot"])(e.$slots,"arrow",{style:Object(s["normalizeStyle"])(Object(s["unref"])(y)),side:Object(s["unref"])(g)})],10,Yk))],4))}});var Kk=Object(h["a"])(Wk,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/content.vue"]]);const $k=Object(l["b"])({setRef:{type:Object(l["c"])(Function),required:!0},onlyChild:Boolean});var Jk=Object(s["defineComponent"])({props:$k,setup(e,{slots:t}){const n=Object(s["ref"])(),r=Kl(n,t=>{t?e.setRef(t.nextElementSibling):e.setRef(null)});return()=>{var n;const[o]=(null==(n=t.default)?void 0:n.call(t))||[],a=e.onlyChild?Object(fr["b"])(o.children):o.children;return Object(s["createVNode"])(s["Fragment"],{ref:r},[a])}}});const Qk=Object(s["defineComponent"])({name:"ElTooltipV2Trigger"}),Xk=Object(s["defineComponent"])({...Qk,props:{...vk,...Ik},setup(e){const t=e,{onClose:n,onOpen:r,onDelayOpen:o,triggerRef:a,contentId:i}=Object(s["inject"])(Tk);let c=!1;const l=e=>{a.value=e},u=()=>{c=!1},d=Ue(t.onMouseEnter,o),p=Ue(t.onMouseLeave,n),f=Ue(t.onMouseDown,()=>{n(),c=!0,document.addEventListener("mouseup",u,{once:!0})}),h=Ue(t.onFocus,()=>{c||r()}),m=Ue(t.onBlur,n),v=Ue(t.onClick,e=>{0===e.detail&&n()}),g={blur:m,click:v,focus:h,mousedown:f,mouseenter:d,mouseleave:p},_=(e,t,n)=>{e&&Object.entries(t).forEach(([t,r])=>{e[n](t,r)})};return Object(s["watch"])(a,(e,t)=>{_(e,g,"addEventListener"),_(t,g,"removeEventListener"),e&&e.setAttribute("aria-describedby",i.value)}),Object(s["onBeforeUnmount"])(()=>{_(a.value,g,"removeEventListener"),document.removeEventListener("mouseup",u)}),(e,t)=>e.nowrap?(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(Jk),{key:0,"set-ref":l,"only-child":""},{default:Object(s["withCtx"])(()=>[Object(s["renderSlot"])(e.$slots,"default")]),_:3})):(Object(s["openBlock"])(),Object(s["createElementBlock"])("button",Object(s["mergeProps"])({key:1,ref_key:"triggerRef",ref:a},e.$attrs),[Object(s["renderSlot"])(e.$slots,"default")],16))}});var Zk=Object(h["a"])(Xk,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/trigger.vue"]]);const eC=Object(s["defineComponent"])({name:"ElTooltipV2"}),tC=Object(s["defineComponent"])({...eC,props:Sk,setup(e){const t=e,n=Object(s["toRefs"])(t),r=Object(s["reactive"])(Object(x["pick"])(n,Object.keys(yk))),o=Object(s["reactive"])(Object(x["pick"])(n,Object.keys(kk))),a=Object(s["reactive"])(Object(x["pick"])(n,Object.keys(Ck))),i=Object(s["reactive"])(Object(x["pick"])(n,Object.keys(Ik)));return(e,t)=>(Object(s["openBlock"])(),Object(s["createBlock"])(Ak,Object(s["normalizeProps"])(Object(s["guardReactiveProps"])(a)),{default:Object(s["withCtx"])(({open:t})=>[Object(s["createVNode"])(Zk,Object(s["mergeProps"])(i,{nowrap:""}),{default:Object(s["withCtx"])(()=>[Object(s["renderSlot"])(e.$slots,"trigger")]),_:3},16),(Object(s["openBlock"])(),Object(s["createBlock"])(s["Teleport"],{to:e.to,disabled:!e.teleported},[e.fullTransition?(Object(s["openBlock"])(),Object(s["createBlock"])(s["Transition"],Object(s["normalizeProps"])(Object(s["mergeProps"])({key:0},e.transitionProps)),{default:Object(s["withCtx"])(()=>[e.alwaysOn||t?(Object(s["openBlock"])(),Object(s["createBlock"])(Kk,Object(s["normalizeProps"])(Object(s["mergeProps"])({key:0},o)),{arrow:Object(s["withCtx"])(({style:t,side:n})=>[e.showArrow?(Object(s["openBlock"])(),Object(s["createBlock"])(Rk,Object(s["mergeProps"])({key:0},r,{style:t,side:n}),null,16,["style","side"])):Object(s["createCommentVNode"])("v-if",!0)]),default:Object(s["withCtx"])(()=>[Object(s["renderSlot"])(e.$slots,"default")]),_:3},16)):Object(s["createCommentVNode"])("v-if",!0)]),_:2},1040)):(Object(s["openBlock"])(),Object(s["createElementBlock"])(s["Fragment"],{key:1},[e.alwaysOn||t?(Object(s["openBlock"])(),Object(s["createBlock"])(Kk,Object(s["normalizeProps"])(Object(s["mergeProps"])({key:0},o)),{arrow:Object(s["withCtx"])(({style:t,side:n})=>[e.showArrow?(Object(s["openBlock"])(),Object(s["createBlock"])(Rk,Object(s["mergeProps"])({key:0},r,{style:t,side:n}),null,16,["style","side"])):Object(s["createCommentVNode"])("v-if",!0)]),default:Object(s["withCtx"])(()=>[Object(s["renderSlot"])(e.$slots,"default")]),_:3},16)):Object(s["createCommentVNode"])("v-if",!0)],64))],8,["to","disabled"]))]),_:3},16))}});var nC=Object(h["a"])(tC,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/tooltip.vue"]]);const rC=Object(k["a"])(nC),oC="left-check-change",aC="right-check-change",iC=Object(l["b"])({data:{type:Object(l["c"])(Array),default:()=>[]},titles:{type:Object(l["c"])(Array),default:()=>[]},buttonTexts:{type:Object(l["c"])(Array),default:()=>[]},filterPlaceholder:String,filterMethod:{type:Object(l["c"])(Function)},leftDefaultChecked:{type:Object(l["c"])(Array),default:()=>[]},rightDefaultChecked:{type:Object(l["c"])(Array),default:()=>[]},renderContent:{type:Object(l["c"])(Function)},modelValue:{type:Object(l["c"])(Array),default:()=>[]},format:{type:Object(l["c"])(Object),default:()=>({})},filterable:Boolean,props:{type:Object(l["c"])(Object),default:()=>Object(Ra["a"])({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),sC=(e,t)=>[e,t].every(Q["isArray"])||Object(Q["isArray"])(e)&&Object(x["isNil"])(t),cC={[d["a"]]:(e,t,n)=>[e,n].every(Q["isArray"])&&["left","right"].includes(t),[d["c"]]:e=>Object(Q["isArray"])(e),[oC]:sC,[aC]:sC},lC="checked-change",uC=Object(l["b"])({data:iC.data,optionRender:{type:Object(l["c"])(Function)},placeholder:String,title:String,filterable:Boolean,format:iC.format,filterMethod:iC.filterMethod,defaultChecked:iC.leftDefaultChecked,props:iC.props}),dC={[lC]:sC},pC=e=>{const t={label:"label",key:"key",disabled:"disabled"};return Object(s["computed"])(()=>({...t,...e.props}))},fC=(e,t,n)=>{const r=pC(e),o=Object(s["computed"])(()=>e.data.filter(n=>{if(Object(Q["isFunction"])(e.filterMethod))return e.filterMethod(t.query,n);{const e=String(n[r.value.label]||n[r.value.key]);return e.toLowerCase().includes(t.query.toLowerCase())}})),a=Object(s["computed"])(()=>o.value.filter(e=>!e[r.value.disabled])),i=Object(s["computed"])(()=>{const n=t.checked.length,r=e.data.length,{noChecked:o,hasChecked:a}=e.format;return o&&a?n>0?a.replace(/\${checked}/g,n.toString()).replace(/\${total}/g,r.toString()):o.replace(/\${total}/g,r.toString()):`${n}/${r}`}),c=Object(s["computed"])(()=>{const e=t.checked.length;return e>0&&e<a.value.length}),l=()=>{const e=a.value.map(e=>e[r.value.key]);t.allChecked=e.length>0&&e.every(e=>t.checked.includes(e))},u=e=>{t.checked=e?a.value.map(e=>e[r.value.key]):[]};return Object(s["watch"])(()=>t.checked,(e,r)=>{if(l(),t.checkChangeByUser){const t=e.concat(r).filter(t=>!e.includes(t)||!r.includes(t));n(lC,e,t)}else n(lC,e),t.checkChangeByUser=!0}),Object(s["watch"])(a,()=>{l()}),Object(s["watch"])(()=>e.data,()=>{const e=[],n=o.value.map(e=>e[r.value.key]);t.checked.forEach(t=>{n.includes(t)&&e.push(t)}),t.checkChangeByUser=!1,t.checked=e}),Object(s["watch"])(()=>e.defaultChecked,(e,n)=>{if(n&&e.length===n.length&&e.every(e=>n.includes(e)))return;const o=[],i=a.value.map(e=>e[r.value.key]);e.forEach(e=>{i.includes(e)&&o.push(e)}),t.checkChangeByUser=!1,t.checked=o},{immediate:!0}),{filteredData:o,checkableData:a,checkedSummary:i,isIndeterminate:c,updateAllChecked:l,handleAllCheckedChange:u}},hC=Object(s["defineComponent"])({name:"ElTransferPanel"}),mC=Object(s["defineComponent"])({...hC,props:uC,emits:dC,setup(e,{expose:t,emit:n}){const r=e,o=Object(s["useSlots"])(),a=({option:e})=>e,{t:i}=Object(Vn["b"])(),c=Object(m["d"])("transfer"),l=Object(s["reactive"])({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),d=pC(r),{filteredData:p,checkedSummary:f,isIndeterminate:h,handleAllCheckedChange:v}=fC(r,l,n),g=Object(s["computed"])(()=>!Object(u["c"])(l.query)&&Object(u["c"])(p.value)),_=Object(s["computed"])(()=>!Object(u["c"])(o.default()[0].children)),{checked:y,allChecked:b,query:O}=Object(s["toRefs"])(l);return t({query:O}),(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(c).b("panel"))},[Object(s["createElementVNode"])("p",{class:Object(s["normalizeClass"])(Object(s["unref"])(c).be("panel","header"))},[Object(s["createVNode"])(Object(s["unref"])(ao),{modelValue:Object(s["unref"])(b),"onUpdate:modelValue":t[0]||(t[0]=e=>Object(s["isRef"])(b)?b.value=e:null),indeterminate:Object(s["unref"])(h),"validate-event":!1,onChange:Object(s["unref"])(v)},{default:Object(s["withCtx"])(()=>[Object(s["createTextVNode"])(Object(s["toDisplayString"])(e.title)+" ",1),Object(s["createElementVNode"])("span",null,Object(s["toDisplayString"])(Object(s["unref"])(f)),1)]),_:1},8,["modelValue","indeterminate","onChange"])],2),Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])([Object(s["unref"])(c).be("panel","body"),Object(s["unref"])(c).is("with-footer",Object(s["unref"])(_))])},[e.filterable?(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(P["a"]),{key:0,modelValue:Object(s["unref"])(O),"onUpdate:modelValue":t[1]||(t[1]=e=>Object(s["isRef"])(O)?O.value=e:null),class:Object(s["normalizeClass"])(Object(s["unref"])(c).be("panel","filter")),size:"default",placeholder:e.placeholder,"prefix-icon":Object(s["unref"])(R["Search"]),clearable:"","validate-event":!1},null,8,["modelValue","class","placeholder","prefix-icon"])):Object(s["createCommentVNode"])("v-if",!0),Object(s["withDirectives"])(Object(s["createVNode"])(Object(s["unref"])(so),{modelValue:Object(s["unref"])(y),"onUpdate:modelValue":t[2]||(t[2]=e=>Object(s["isRef"])(y)?y.value=e:null),"validate-event":!1,class:Object(s["normalizeClass"])([Object(s["unref"])(c).is("filterable",e.filterable),Object(s["unref"])(c).be("panel","list")])},{default:Object(s["withCtx"])(()=>[(Object(s["openBlock"])(!0),Object(s["createElementBlock"])(s["Fragment"],null,Object(s["renderList"])(Object(s["unref"])(p),t=>(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(ao),{key:t[Object(s["unref"])(d).key],class:Object(s["normalizeClass"])(Object(s["unref"])(c).be("panel","item")),label:t[Object(s["unref"])(d).key],disabled:t[Object(s["unref"])(d).disabled],"validate-event":!1},{default:Object(s["withCtx"])(()=>{var n;return[Object(s["createVNode"])(a,{option:null==(n=e.optionRender)?void 0:n.call(e,t)},null,8,["option"])]}),_:2},1032,["class","label","disabled"]))),128))]),_:1},8,["modelValue","class"]),[[s["vShow"],!Object(s["unref"])(g)&&!Object(s["unref"])(u["c"])(e.data)]]),Object(s["withDirectives"])(Object(s["createElementVNode"])("p",{class:Object(s["normalizeClass"])(Object(s["unref"])(c).be("panel","empty"))},Object(s["toDisplayString"])(Object(s["unref"])(g)?Object(s["unref"])(i)("el.transfer.noMatch"):Object(s["unref"])(i)("el.transfer.noData")),3),[[s["vShow"],Object(s["unref"])(g)||Object(s["unref"])(u["c"])(e.data)]])],2),Object(s["unref"])(_)?(Object(s["openBlock"])(),Object(s["createElementBlock"])("p",{key:0,class:Object(s["normalizeClass"])(Object(s["unref"])(c).be("panel","footer"))},[Object(s["renderSlot"])(e.$slots,"default")],2)):Object(s["createCommentVNode"])("v-if",!0)],2))}});var vC=Object(h["a"])(mC,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer-panel.vue"]]);const gC=e=>{const t=pC(e),n=Object(s["computed"])(()=>e.data.reduce((e,n)=>(e[n[t.value.key]]=n)&&e,{})),r=Object(s["computed"])(()=>e.data.filter(n=>!e.modelValue.includes(n[t.value.key]))),o=Object(s["computed"])(()=>"original"===e.targetOrder?e.data.filter(n=>e.modelValue.includes(n[t.value.key])):e.modelValue.reduce((e,t)=>{const r=n.value[t];return r&&e.push(r),e},[]));return{sourceData:r,targetData:o}},_C=(e,t)=>{const n=(n,r)=>{e.leftChecked=n,r&&t(oC,n,r)},r=(n,r)=>{e.rightChecked=n,r&&t(aC,n,r)};return{onSourceCheckedChange:n,onTargetCheckedChange:r}},yC=(e,t,n)=>{const r=pC(e),o=(e,t,r)=>{n(d["c"],e),n(d["a"],e,t,r)},a=()=>{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)},i=()=>{let n=e.modelValue.slice();const a=e.data.filter(n=>{const o=n[r.value.key];return t.leftChecked.includes(o)&&!e.modelValue.includes(o)}).map(e=>e[r.value.key]);n="unshift"===e.targetOrder?a.concat(n):n.concat(a),"original"===e.targetOrder&&(n=e.data.filter(e=>n.includes(e[r.value.key])).map(e=>e[r.value.key])),o(n,"right",t.leftChecked)};return{addToLeft:a,addToRight:i}},bC={key:0},OC={key:0},MC=Object(s["defineComponent"])({name:"ElTransfer"}),kC=Object(s["defineComponent"])({...MC,props:iC,emits:cC,setup(e,{expose:t,emit:n}){const r=e,o=Object(s["useSlots"])(),{t:a}=Object(Vn["b"])(),i=Object(m["d"])("transfer"),{formItem:c}=Object(Pr["a"])(),l=Object(s["reactive"])({leftChecked:[],rightChecked:[]}),d=pC(r),{sourceData:p,targetData:f}=gC(r),{onSourceCheckedChange:h,onTargetCheckedChange:v}=_C(l,n),{addToLeft:_,addToRight:y}=yC(r,l,n),b=Object(s["ref"])(),O=Object(s["ref"])(),M=e=>{switch(e){case"left":b.value.query="";break;case"right":O.value.query="";break}},k=Object(s["computed"])(()=>2===r.buttonTexts.length),C=Object(s["computed"])(()=>r.titles[0]||a("el.transfer.titles.0")),I=Object(s["computed"])(()=>r.titles[1]||a("el.transfer.titles.1")),S=Object(s["computed"])(()=>r.filterPlaceholder||a("el.transfer.filterPlaceholder"));Object(s["watch"])(()=>r.modelValue,()=>{var e;r.validateEvent&&(null==(e=null==c?void 0:c.validate)||e.call(c,"change").catch(e=>Object(g["a"])(e)))});const T=Object(s["computed"])(()=>e=>r.renderContent?r.renderContent(s["h"],e):o.default?o.default({option:e}):Object(s["h"])("span",e[d.value.label]||e[d.value.key]));return t({clearQuery:M,leftPanel:b,rightPanel:O}),(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(i).b())},[Object(s["createVNode"])(vC,{ref_key:"leftPanel",ref:b,data:Object(s["unref"])(p),"option-render":Object(s["unref"])(T),placeholder:Object(s["unref"])(S),title:Object(s["unref"])(C),filterable:e.filterable,format:e.format,"filter-method":e.filterMethod,"default-checked":e.leftDefaultChecked,props:r.props,onCheckedChange:Object(s["unref"])(h)},{default:Object(s["withCtx"])(()=>[Object(s["renderSlot"])(e.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(i).e("buttons"))},[Object(s["createVNode"])(Object(s["unref"])(bn["a"]),{type:"primary",class:Object(s["normalizeClass"])([Object(s["unref"])(i).e("button"),Object(s["unref"])(i).is("with-texts",Object(s["unref"])(k))]),disabled:Object(s["unref"])(u["c"])(l.rightChecked),onClick:Object(s["unref"])(_)},{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(Object(s["unref"])(w["a"]),null,{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(Object(s["unref"])(R["ArrowLeft"]))]),_:1}),Object(s["unref"])(u["g"])(e.buttonTexts[0])?Object(s["createCommentVNode"])("v-if",!0):(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",bC,Object(s["toDisplayString"])(e.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),Object(s["createVNode"])(Object(s["unref"])(bn["a"]),{type:"primary",class:Object(s["normalizeClass"])([Object(s["unref"])(i).e("button"),Object(s["unref"])(i).is("with-texts",Object(s["unref"])(k))]),disabled:Object(s["unref"])(u["c"])(l.leftChecked),onClick:Object(s["unref"])(y)},{default:Object(s["withCtx"])(()=>[Object(s["unref"])(u["g"])(e.buttonTexts[1])?Object(s["createCommentVNode"])("v-if",!0):(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",OC,Object(s["toDisplayString"])(e.buttonTexts[1]),1)),Object(s["createVNode"])(Object(s["unref"])(w["a"]),null,{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(Object(s["unref"])(R["ArrowRight"]))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),Object(s["createVNode"])(vC,{ref_key:"rightPanel",ref:O,data:Object(s["unref"])(f),"option-render":Object(s["unref"])(T),placeholder:Object(s["unref"])(S),filterable:e.filterable,format:e.format,"filter-method":e.filterMethod,title:Object(s["unref"])(I),"default-checked":e.rightDefaultChecked,props:r.props,onCheckedChange:Object(s["unref"])(v)},{default:Object(s["withCtx"])(()=>[Object(s["renderSlot"])(e.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}});var CC=Object(h["a"])(kC,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer.vue"]]);const wC=Object(k["a"])(CC),IC="$treeNodeId",SC=function(e,t){t&&!t[IC]&&Object.defineProperty(t,IC,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},TC=function(e,t){return e?t[e]:t[IC]},EC=(e,t,n)=>{const r=e.value.currentNode;n();const o=e.value.currentNode;r!==o&&t("current-change",o?o.data:null,o)},jC=e=>{let t=!0,n=!0,r=!0;for(let o=0,a=e.length;o<a;o++){const a=e[o];(!0!==a.checked||a.indeterminate)&&(t=!1,a.disabled||(r=!1)),(!1!==a.checked||a.indeterminate)&&(n=!1)}return{all:t,none:n,allWithoutDisable:r,half:!t&&!n}},DC=function(e){if(0===e.childNodes.length||e.loading)return;const{all:t,none:n,half:r}=jC(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||DC(o))},LC=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 AC=0;class NC{constructor(e){this.id=AC++,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)Object(Q["hasOwn"])(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=LC(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)||SC(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)||SC(this,e),this.data=e,this.childNodes=[],t=0===this.level&&Array.isArray(this.data)?this.data:LC(this,"children")||[];for(let n=0,r=t.length;n<r;n++)this.insertChild({data:t[n]})}get label(){return LC(this,"label")}get key(){const e=this.store.key;return this.data?this.data[e]:null}get disabled(){return LC(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 NC)){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=Object(s["reactive"])(new NC(e)),e instanceof NC&&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||DC(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}=jC(this.childNodes);this.isLeaf||n||!o||(this.checked=!1,e=!1);const a=()=>{if(t){const n=this.childNodes;for(let i=0,s=n.length;i<s;i++){const o=n[i];r=r||!1!==e;const a=o.disabled?o.checked:r;o.setChecked(a,t,!0,r)}const{half:o,all:a}=jC(n);a||(this.checked=a,this.indeterminate=o)}};if(this.shouldLoadData())return void this.loadData(()=>{a(),DC(this)},{checked:!1!==e});a()}const o=this.parent;o&&0!==o.level&&(n||DC(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 a=e[IC],i=!!a&&t.findIndex(e=>e[IC]===a)>=0;i?n[a]={index:o,data:e}:r.push({index:o,data:e})}),this.store.lazy||t.forEach(e=>{n[e[IC]]||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.childNodes=[],this.doCreateChildren(n,t),this.loaded=!0,this.loading=!1,this.updateLeafState(),e&&e.call(this,n)};this.store.load(this,n)}}}class xC{constructor(e){this.currentNode=null,this.currentNodeKey=null;for(const t in e)Object(Q["hasOwn"])(e,t)&&(this[t]=e[t]);this.nodesMap={}}initialize(){if(this.root=new NC({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 a=o.root?o.root.childNodes:o.childNodes;if(a.forEach(n=>{n.visible=t.call(n,e,n.data,n),r(n)}),!o.visible&&a.length){let e=!0;e=!a.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 NC)return e;const t=Object(Q["isObject"])(e)?TC(this.key,e):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 a=o.root?o.root.childNodes:o.childNodes;a.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)Object(Q["hasOwn"])(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,a=t.length;o<a;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),a=Object.keys(n);r.forEach(e=>e.setChecked(!1,!1));for(let i=0,s=r.length;i<s;i++){const n=r[i],s=n.data[e].toString(),c=a.includes(s);if(!c){n.checked&&!o[s]&&n.setChecked(!1,!1);continue}let l=n.parent;while(l&&l.level>0)o[l.data[e]]=!0,l=l.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 RC=Object(s["defineComponent"])({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=Object(m["d"])("tree"),n=Object(s["inject"])("NodeInstance"),r=Object(s["inject"])("RootTree");return()=>{const o=e.node,{data:a,store:i}=o;return e.renderContent?e.renderContent(s["h"],{_self:n,node:o,data:a,store:i}):r.ctx.slots.default?r.ctx.slots.default({node:o,data:a}):Object(s["h"])("span",{class:t.be("node","label")},[o.label])}}});var PC=Object(h["a"])(RC,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node-content.vue"]]);function UC(e){const t=Object(s["inject"])("TreeNodeMap",null),n={treeNodeExpand:t=>{e.node!==t&&e.node.collapse()},children:[]};return t&&t.children.push(n),Object(s["provide"])("TreeNodeMap",n),{broadcastExpanded:t=>{if(e.accordion)for(const e of n.children)e.treeNodeExpand(t)}}}const VC=Symbol("dragEvents");function BC({props:e,ctx:t,el$:n,dropIndicator$:r,store:o}){const a=Object(m["d"])("tree"),i=Object(s["ref"])({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(o){}i.value.draggingNode=r,t.emit("node-drag-start",r.node,n)},l=({event:o,treeNode:s})=>{const c=s,l=i.value.dropNode;l&&l.node.id!==c.node.id&&Object(v["e"])(l.$el,a.is("drop-inner"));const u=i.value.draggingNode;if(!u||!c)return;let d=!0,p=!0,f=!0,h=!0;"function"===typeof e.allowDrop&&(d=e.allowDrop(u.node,c.node,"prev"),h=p=e.allowDrop(u.node,c.node,"inner"),f=e.allowDrop(u.node,c.node,"next")),o.dataTransfer.dropEffect=p||d||f?"move":"none",(d||p||f)&&(null==l?void 0:l.node.id)!==c.node.id&&(l&&t.emit("node-drag-leave",u.node,l.node,o),t.emit("node-drag-enter",u.node,c.node,o)),(d||p||f)&&(i.value.dropNode=c),c.node.nextSibling===u.node&&(f=!1),c.node.previousSibling===u.node&&(d=!1),c.node.contains(u.node,!1)&&(p=!1),(u.node===c.node||u.node.contains(c.node))&&(d=!1,p=!1,f=!1);const m=c.$el.querySelector("."+a.be("node","content")).getBoundingClientRect(),g=n.value.getBoundingClientRect();let _;const y=d?p?.25:f?.45:1:-1,b=f?p?.75:d?.55:0:1;let O=-9999;const M=o.clientY-m.top;_=M<m.height*y?"before":M>m.height*b?"after":p?"inner":"none";const k=c.$el.querySelector("."+a.be("node","expand-icon")).getBoundingClientRect(),C=r.value;"before"===_?O=k.top-g.top:"after"===_&&(O=k.bottom-g.top),C.style.top=O+"px",C.style.left=k.right-g.left+"px","inner"===_?Object(v["a"])(c.$el,a.is("drop-inner")):Object(v["e"])(c.$el,a.is("drop-inner")),i.value.showDropIndicator="before"===_||"after"===_,i.value.allowDrop=i.value.showDropIndicator||h,i.value.dropType=_,t.emit("node-drag-over",u.node,c.node,o)},u=e=>{const{draggingNode:n,dropType:r,dropNode:s}=i.value;if(e.preventDefault(),e.dataTransfer.dropEffect="move",n&&s){const i={data:n.node.data};"none"!==r&&n.node.remove(),"before"===r?s.node.parent.insertBefore(i,s.node):"after"===r?s.node.parent.insertAfter(i,s.node):"inner"===r&&s.node.insertChild(i),"none"!==r&&o.value.registerNode(i),Object(v["e"])(s.$el,a.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),i.value.showDropIndicator=!1,i.value.draggingNode=null,i.value.dropNode=null,i.value.allowDrop=!0};return Object(s["provide"])(VC,{treeNodeDragStart:c,treeNodeDragOver:l,treeNodeDragEnd:u}),{dragState:i}}const FC=Object(s["defineComponent"])({name:"ElTreeNode",components:{ElCollapseTransition:ti,ElCheckbox:ao,NodeContent:PC,ElIcon:w["a"],Loading:R["Loading"]},props:{node:{type:NC,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:{type:Boolean,default:!1}},emits:["node-expand"],setup(e,t){const n=Object(m["d"])("tree"),{broadcastExpanded:r}=UC(e),o=Object(s["inject"])("RootTree"),a=Object(s["ref"])(!1),i=Object(s["ref"])(!1),c=Object(s["ref"])(null),l=Object(s["ref"])(null),u=Object(s["ref"])(null),d=Object(s["inject"])(VC),p=Object(s["getCurrentInstance"])();Object(s["provide"])("NodeInstance",p),o||Object(g["a"])("Tree","Can not find node's tree."),e.node.expanded&&(a.value=!0,i.value=!0);const f=o.props["children"]||"children";Object(s["watch"])(()=>{const t=e.node.data[f];return t&&[...t]},()=>{e.node.updateChildren()}),Object(s["watch"])(()=>e.node.indeterminate,t=>{_(e.node.checked,t)}),Object(s["watch"])(()=>e.node.checked,t=>{_(t,e.node.indeterminate)}),Object(s["watch"])(()=>e.node.expanded,e=>{Object(s["nextTick"])(()=>a.value=e),e&&(i.value=!0)});const h=e=>TC(o.props.nodeKey,e.data),v=t=>{const n=e.props.class;if(!n)return{};let r;if(Object(Q["isFunction"])(n)){const{data:e}=t;r=n(e,t)}else r=n;return Object(Q["isString"])(r)?{[r]:!0}:r},_=(t,n)=>{c.value===t&&l.value===n||o.ctx.emit("check-change",e.node.data,t,n),c.value=t,l.value=n},y=t=>{EC(o.store,o.ctx.emit,()=>o.store.value.setCurrentNode(e.node)),o.currentNode.value=e.node,o.props.expandOnClickNode&&O(),o.props.checkOnClickNode&&!e.node.disabled&&M(null,{target:{checked:!e.node.checked}}),o.ctx.emit("node-click",e.node.data,e.node,p,t)},b=t=>{o.instance.vnode.props["onNodeContextmenu"]&&(t.stopPropagation(),t.preventDefault()),o.ctx.emit("node-contextmenu",t,e.node.data,e.node,p)},O=()=>{e.node.isLeaf||(a.value?(o.ctx.emit("node-collapse",e.node.data,e.node,p),e.node.collapse()):(e.node.expand(),t.emit("node-expand",e.node.data,e.node,p)))},M=(t,n)=>{e.node.setChecked(n.target.checked,!o.props.checkStrictly),Object(s["nextTick"])(()=>{const t=o.store.value;o.ctx.emit("check",e.node.data,{checkedNodes:t.getCheckedNodes(),checkedKeys:t.getCheckedKeys(),halfCheckedNodes:t.getHalfCheckedNodes(),halfCheckedKeys:t.getHalfCheckedKeys()})})},k=(e,t,n)=>{r(t),o.ctx.emit("node-expand",e,t,n)},C=t=>{o.props.draggable&&d.treeNodeDragStart({event:t,treeNode:e})},w=t=>{t.preventDefault(),o.props.draggable&&d.treeNodeDragOver({event:t,treeNode:{$el:u.value,node:e.node}})},I=e=>{e.preventDefault()},S=e=>{o.props.draggable&&d.treeNodeDragEnd(e)};return{ns:n,node$:u,tree:o,expanded:a,childNodeRendered:i,oldChecked:c,oldIndeterminate:l,getNodeKey:h,getNodeClass:v,handleSelectChange:_,handleClick:y,handleContextMenu:b,handleExpandIconClick:O,handleCheckChange:M,handleChildNodeExpand:k,handleDragStart:C,handleDragOver:w,handleDrop:I,handleDragEnd:S,CaretRight:R["CaretRight"]}}}),GC=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],zC=["aria-expanded"];function HC(e,t,n,r,o,a){const i=Object(s["resolveComponent"])("el-icon"),c=Object(s["resolveComponent"])("el-checkbox"),l=Object(s["resolveComponent"])("loading"),u=Object(s["resolveComponent"])("node-content"),d=Object(s["resolveComponent"])("el-tree-node"),p=Object(s["resolveComponent"])("el-collapse-transition");return Object(s["withDirectives"])((Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{ref:"node$",class:Object(s["normalizeClass"])([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]=Object(s["withModifiers"])((...t)=>e.handleClick&&e.handleClick(...t),["stop"])),onContextmenu:t[2]||(t[2]=(...t)=>e.handleContextMenu&&e.handleContextMenu(...t)),onDragstart:t[3]||(t[3]=Object(s["withModifiers"])((...t)=>e.handleDragStart&&e.handleDragStart(...t),["stop"])),onDragover:t[4]||(t[4]=Object(s["withModifiers"])((...t)=>e.handleDragOver&&e.handleDragOver(...t),["stop"])),onDragend:t[5]||(t[5]=Object(s["withModifiers"])((...t)=>e.handleDragEnd&&e.handleDragEnd(...t),["stop"])),onDrop:t[6]||(t[6]=Object(s["withModifiers"])((...t)=>e.handleDrop&&e.handleDrop(...t),["stop"]))},[Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(e.ns.be("node","content")),style:Object(s["normalizeStyle"])({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?(Object(s["openBlock"])(),Object(s["createBlock"])(i,{key:0,class:Object(s["normalizeClass"])([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{expanded:!e.node.isLeaf&&e.expanded}]),onClick:Object(s["withModifiers"])(e.handleExpandIconClick,["stop"])},{default:Object(s["withCtx"])(()=>[(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["resolveDynamicComponent"])(e.tree.props.icon||e.CaretRight)))]),_:1},8,["class","onClick"])):Object(s["createCommentVNode"])("v-if",!0),e.showCheckbox?(Object(s["openBlock"])(),Object(s["createBlock"])(c,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:t[0]||(t[0]=Object(s["withModifiers"])(()=>{},["stop"])),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):Object(s["createCommentVNode"])("v-if",!0),e.node.loading?(Object(s["openBlock"])(),Object(s["createBlock"])(i,{key:2,class:Object(s["normalizeClass"])([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(l)]),_:1},8,["class"])):Object(s["createCommentVNode"])("v-if",!0),Object(s["createVNode"])(u,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),Object(s["createVNode"])(p,null,{default:Object(s["withCtx"])(()=>[!e.renderAfterExpand||e.childNodeRendered?Object(s["withDirectives"])((Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:0,class:Object(s["normalizeClass"])(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded},[(Object(s["openBlock"])(!0),Object(s["createElementBlock"])(s["Fragment"],null,Object(s["renderList"])(e.node.childNodes,t=>(Object(s["openBlock"])(),Object(s["createBlock"])(d,{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,zC)),[[s["vShow"],e.expanded]]):Object(s["createCommentVNode"])("v-if",!0)]),_:1})],42,GC)),[[s["vShow"],e.node.visible]])}var YC=Object(h["a"])(FC,[["render",HC],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node.vue"]]);function qC({el$:e},t){const n=Object(m["d"])("tree"),r=Object(s["shallowRef"])([]),o=Object(s["shallowRef"])([]);Object(s["onMounted"])(()=>{i()}),Object(s["onUpdated"])(()=>{r.value=Array.from(e.value.querySelectorAll("[role=treeitem]")),o.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"))}),Object(s["watch"])(o,e=>{e.forEach(e=>{e.setAttribute("tabindex","-1")})});const a=o=>{const a=o.target;if(!a.className.includes(n.b("node")))return;const i=o.code;r.value=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`));const s=r.value.indexOf(a);let c;if([Me["a"].up,Me["a"].down].includes(i)){if(o.preventDefault(),i===Me["a"].up){c=-1===s?0:0!==s?s-1:r.value.length-1;const e=c;while(1){if(t.value.getNode(r.value[c].dataset.key).canFocus)break;if(c--,c===e){c=-1;break}c<0&&(c=r.value.length-1)}}else{c=-1===s?0:s<r.value.length-1?s+1:0;const e=c;while(1){if(t.value.getNode(r.value[c].dataset.key).canFocus)break;if(c++,c===e){c=-1;break}c>=r.value.length&&(c=0)}}-1!==c&&r.value[c].focus()}[Me["a"].left,Me["a"].right].includes(i)&&(o.preventDefault(),a.click());const l=a.querySelector('[type="checkbox"]');[Me["a"].enter,Me["a"].space].includes(i)&&l&&(o.preventDefault(),l.click())};Object(c["useEventListener"])(e,"keydown",a);const i=()=>{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 a=e.value.querySelectorAll(`.${n.is("checked")}[role=treeitem]`);a.length?a[0].setAttribute("tabindex","0"):null==(t=r.value[0])||t.setAttribute("tabindex","0")}}const WC=Object(s["defineComponent"])({name:"ElTree",components:{ElTreeNode:YC},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:{type:S["e"]}},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}=Object(Vn["b"])(),r=Object(m["d"])("tree"),o=Object(s["ref"])(new xC({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 a=Object(s["ref"])(o.value.root),i=Object(s["ref"])(null),c=Object(s["ref"])(null),l=Object(s["ref"])(null),{broadcastExpanded:u}=UC(e),{dragState:d}=BC({props:e,ctx:t,el$:c,dropIndicator$:l,store:o});qC({el$:c},o);const p=Object(s["computed"])(()=>{const{childNodes:e}=a.value;return!e||0===e.length||e.every(({visible:e})=>!e)});Object(s["watch"])(()=>e.currentNodeKey,e=>{o.value.setCurrentNodeKey(e)}),Object(s["watch"])(()=>e.defaultCheckedKeys,e=>{o.value.setDefaultCheckedKey(e)}),Object(s["watch"])(()=>e.defaultExpandedKeys,e=>{o.value.setDefaultExpandedKeys(e)}),Object(s["watch"])(()=>e.data,e=>{o.value.setData(e)},{deep:!0}),Object(s["watch"])(()=>e.checkStrictly,e=>{o.value.checkStrictly=e});const f=t=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");o.value.filter(t)},h=t=>TC(e.nodeKey,t.data),v=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 i=n.parent;while(i&&i!==a.value)r.push(i.data),i=i.parent;return r.reverse()},g=(e,t)=>o.value.getCheckedNodes(e,t),_=e=>o.value.getCheckedKeys(e),y=()=>{const e=o.value.getCurrentNode();return e?e.data:null},b=()=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const t=y();return t?t[e.nodeKey]:null},O=(t,n)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");o.value.setCheckedNodes(t,n)},M=(t,n)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");o.value.setCheckedKeys(t,n)},k=(e,t,n)=>{o.value.setChecked(e,t,n)},C=()=>o.value.getHalfCheckedNodes(),w=()=>o.value.getHalfCheckedKeys(),I=(n,r=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");EC(o,t.emit,()=>o.value.setUserCurrentNode(n,r))},S=(n,r=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");EC(o,t.emit,()=>o.value.setCurrentNodeKey(n,r))},T=e=>o.value.getNode(e),E=e=>{o.value.remove(e)},j=(e,t)=>{o.value.append(e,t)},D=(e,t)=>{o.value.insertBefore(e,t)},L=(e,t)=>{o.value.insertAfter(e,t)},A=(e,n,r)=>{u(n),t.emit("node-expand",e,n,r)},N=(t,n)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");o.value.updateChildren(t,n)};return Object(s["provide"])("RootTree",{ctx:t,props:e,store:o,root:a,currentNode:i,instance:Object(s["getCurrentInstance"])()}),Object(s["provide"])(mt["b"],void 0),{ns:r,store:o,root:a,currentNode:i,dragState:d,el$:c,dropIndicator$:l,isEmpty:p,filter:f,getNodeKey:h,getNodePath:v,getCheckedNodes:g,getCheckedKeys:_,getCurrentNode:y,getCurrentKey:b,setCheckedNodes:O,setCheckedKeys:M,setChecked:k,getHalfCheckedNodes:C,getHalfCheckedKeys:w,setCurrentNode:I,setCurrentKey:S,t:n,getNode:T,remove:E,append:j,insertBefore:D,insertAfter:L,handleNodeExpand:A,updateKeyChildren:N}}});function KC(e,t,n,r,o,a){const i=Object(s["resolveComponent"])("el-tree-node");return Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{ref:"el$",class:Object(s["normalizeClass"])([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"},[(Object(s["openBlock"])(!0),Object(s["createElementBlock"])(s["Fragment"],null,Object(s["renderList"])(e.root.childNodes,t=>(Object(s["openBlock"])(),Object(s["createBlock"])(i,{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?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:0,class:Object(s["normalizeClass"])(e.ns.e("empty-block"))},[Object(s["renderSlot"])(e.$slots,"empty",{},()=>{var t;return[Object(s["createElementVNode"])("span",{class:Object(s["normalizeClass"])(e.ns.e("empty-text"))},Object(s["toDisplayString"])(null!=(t=e.emptyText)?t:e.t("el.tree.emptyText")),3)]})],2)):Object(s["createCommentVNode"])("v-if",!0),Object(s["withDirectives"])(Object(s["createElementVNode"])("div",{ref:"dropIndicator$",class:Object(s["normalizeClass"])(e.ns.e("drop-indicator"))},null,2),[[s["vShow"],e.dragState.showDropIndicator]])],2)}var $C=Object(h["a"])(WC,[["render",KC],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree.vue"]]);$C.install=e=>{e.component($C.name,$C)};const JC=$C,QC=JC,XC=(e,{attrs:t},{tree:n,key:r})=>{const o=Object(m["d"])("tree-select"),a={...Object(x["pick"])(Object(s["toRefs"])(e),Object.keys(hh.props)),...t,valueKey:r,popperClass:Object(s["computed"])(()=>{const t=[o.e("popper")];return e.popperClass&&t.push(e.popperClass),t.join(" ")}),filterMethod:(t="")=>{e.filterMethod&&e.filterMethod(t),Object(s["nextTick"])(()=>{var e;null==(e=n.value)||e.filter(t)})},onVisibleChange:n=>{var r;null==(r=t.onVisibleChange)||r.call(t,n),e.filterable&&n&&a.filterMethod()}};return a},ZC=Object(s["defineComponent"])({extends:mh,setup(e,t){const n=mh.setup(e,t);delete n.selectOptionClick;const r=Object(s["getCurrentInstance"])().proxy;return Object(s["nextTick"])(()=>{n.select.cachedOptions.get(r.value)||n.select.onOptionCreate(r)}),n},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function ew(e){return e||0===e}function tw(e){return Array.isArray(e)&&e.length}function nw(e){return Array.isArray(e)?e:ew(e)?[e]:[]}function rw(e,t,n,r,o){for(let a=0;a<e.length;a++){const i=e[a];if(t(i,a,e,o))return r?r(i,a,e,o):i;{const e=n(i);if(tw(e)){const o=rw(e,t,n,r,i);if(o)return o}}}}function ow(e,t,n,r){for(let o=0;o<e.length;o++){const a=e[o];t(a,o,e,r);const i=n(a);tw(i)&&ow(i,t,n,a)}}const aw=(e,{attrs:t,slots:n,emit:r},{select:o,tree:a,key:i})=>{Object(s["watch"])(()=>e.modelValue,()=>{e.showCheckbox&&Object(s["nextTick"])(()=>{const t=a.value;t&&!Object(x["isEqual"])(t.getCheckedKeys(),nw(e.modelValue))&&t.setCheckedKeys(nw(e.modelValue))})},{immediate:!0,deep:!0});const c=Object(s["computed"])(()=>({value:i.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",...e.props})),l=(e,t)=>{var n;const r=c.value[e];return Object(Q["isFunction"])(r)?r(t,null==(n=a.value)?void 0:n.getNode(l("value",t))):t[r]},u=nw(e.modelValue).map(t=>rw(e.data||[],e=>l("value",e)===t,e=>l("children",e),(e,t,n,r)=>r&&l("value",r))).filter(e=>ew(e)),p=Object(s["computed"])(()=>{if(!e.renderAfterExpand&&!e.lazy)return[];const t=[];return ow(e.data.concat(e.cacheData),e=>{const n=l("value",e);t.push({value:n,currentLabel:l("label",e),isDisabled:l("disabled",e)})},e=>l("children",e)),t}),f=Object(s["computed"])(()=>p.value.reduce((e,t)=>({...e,[t.value]:t}),{}));return{...Object(x["pick"])(Object(s["toRefs"])(e),Object.keys(JC.props)),...t,nodeKey:i,expandOnClickNode:Object(s["computed"])(()=>!e.checkStrictly&&e.expandOnClickNode),defaultExpandedKeys:Object(s["computed"])(()=>e.defaultExpandedKeys?e.defaultExpandedKeys.concat(u):u),renderContent:(t,{node:r,data:o,store:a})=>t(ZC,{value:l("value",o),label:l("label",o),disabled:l("disabled",o)},e.renderContent?()=>e.renderContent(t,{node:r,data:o,store:a}):n.default?()=>n.default({node:r,data:o,store:a}):void 0),filterNodeMethod:(t,n,r)=>{var o;return e.filterNodeMethod?e.filterNodeMethod(t,n,r):!t||(null==(o=l("label",n))?void 0:o.includes(t))},onNodeClick:(n,r,a)=>{var i,s,c;if(null==(i=t.onNodeClick)||i.call(t,n,r,a),!e.showCheckbox||!e.checkOnClickNode)if(e.showCheckbox||!e.checkStrictly&&!r.isLeaf)e.expandOnClickNode&&a.proxy.handleExpandIconClick();else if(!l("disabled",n)){const e=null==(s=o.value)?void 0:s.options.get(l("value",n));null==(c=o.value)||c.handleOptionSelect(e)}},onCheck:(n,o)=>{if(!e.showCheckbox)return;const i=l("value",n),c=o.checkedKeys,u=e.multiple?nw(e.modelValue).filter(e=>e in f.value&&!a.value.getNode(e)&&!c.includes(e)):[],p=c.concat(u);if(e.checkStrictly)r(d["c"],e.multiple?p:p.includes(i)?i:void 0);else if(e.multiple)r(d["c"],a.value.getCheckedKeys(!0));else{const t=rw([n],e=>!tw(l("children",e))&&!l("disabled",e),e=>l("children",e)),o=t?l("value",t):void 0,a=ew(e.modelValue)&&!!rw([n],t=>l("value",t)===e.modelValue,e=>l("children",e));r(d["c"],o===e.modelValue||a?void 0:o)}Object(s["nextTick"])(()=>{var r;const o=nw(e.modelValue);a.value.setCheckedKeys(o),null==(r=t.onCheck)||r.call(t,n,{checkedKeys:a.value.getCheckedKeys(),checkedNodes:a.value.getCheckedNodes(),halfCheckedKeys:a.value.getHalfCheckedKeys(),halfCheckedNodes:a.value.getHalfCheckedNodes()})})},cacheOptions:p}};var iw=Object(s["defineComponent"])({props:{data:{type:Array,default:()=>[]}},setup(e){const t=Object(s["inject"])(Yf);return Object(s["watch"])(()=>e.data,()=>{var n;e.data.forEach(e=>{t.cachedOptions.has(e.value)||t.cachedOptions.set(e.value,e)});const r=(null==(n=t.selectWrapper)?void 0:n.querySelectorAll("input"))||[];Array.from(r).includes(document.activeElement)||t.setSelected()},{flush:"post",immediate:!0}),()=>{}}});const sw=Object(s["defineComponent"])({name:"ElTreeSelect",inheritAttrs:!1,props:{...hh.props,...JC.props,cacheData:{type:Array,default:()=>[]}},setup(e,t){const{slots:n,expose:r}=t,o=Object(s["ref"])(),a=Object(s["ref"])(),i=Object(s["computed"])(()=>e.nodeKey||e.valueKey||"value"),c=XC(e,t,{select:o,tree:a,key:i}),{cacheOptions:l,...u}=aw(e,t,{select:o,tree:a,key:i}),d=Object(s["reactive"])({});return r(d),Object(s["onMounted"])(()=>{Object.assign(d,{...Object(x["pick"])(a.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...Object(x["pick"])(o.value,["focus","blur"])})}),()=>Object(s["h"])(hh,Object(s["reactive"])({...c,ref:e=>o.value=e}),{...n,default:()=>[Object(s["h"])(iw,{data:l.value}),Object(s["h"])(JC,Object(s["reactive"])({...u,ref:e=>a.value=e}))]})}});var cw=Object(h["a"])(sw,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-select/src/tree-select.vue"]]);cw.install=e=>{e.component(cw.name,cw)};const lw=cw,uw=lw,dw=Symbol(),pw={key:-1,level:-1,data:{}};var fw=(e=>(e["KEY"]="id",e["LABEL"]="label",e["CHILDREN"]="children",e["DISABLED"]="disabled",e))(fw||{}),hw=(e=>(e["ADD"]="add",e["DELETE"]="delete",e))(hw||{});const mw={type:Number,default:26},vw=Object(l["b"])({data:{type:Object(l["c"])(Array),default:()=>Object(Ra["a"])([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:Object(l["c"])(Object),default:()=>Object(Ra["a"])({children:"children",label:"label",disabled:"disabled",value:"id"})},highlightCurrent:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},defaultCheckedKeys:{type:Object(l["c"])(Array),default:()=>Object(Ra["a"])([])},checkStrictly:{type:Boolean,default:!1},defaultExpandedKeys:{type:Object(l["c"])(Array),default:()=>Object(Ra["a"])([])},indent:{type:Number,default:16},itemSize:mw,icon:{type:S["e"]},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:{type:Boolean,default:!1},currentNodeKey:{type:Object(l["c"])([String,Number])},accordion:{type:Boolean,default:!1},filterMethod:{type:Object(l["c"])(Function)},perfMode:{type:Boolean,default:!0}}),gw=Object(l["b"])({node:{type:Object(l["c"])(Object),default:()=>Object(Ra["a"])(pw)},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},itemSize:mw}),_w=Object(l["b"])({node:{type:Object(l["c"])(Object),required:!0}}),yw="node-click",bw="node-expand",Ow="node-collapse",Mw="current-change",kw="check",Cw="check-change",ww="node-contextmenu",Iw={[yw]:(e,t,n)=>e&&t&&n,[bw]:(e,t)=>e&&t,[Ow]:(e,t)=>e&&t,[Mw]:(e,t)=>e&&t,[kw]:(e,t)=>e&&t,[Cw]:(e,t)=>e&&"boolean"===typeof t,[ww]:(e,t,n)=>e&&t&&n},Sw={click:(e,t)=>!(!e||!t),toggle:e=>!!e,check:(e,t)=>e&&"boolean"===typeof t};function Tw(e,t){const n=Object(s["ref"])(new Set),r=Object(s["ref"])(new Set),{emit:o}=Object(s["getCurrentInstance"])();Object(s["watch"])([()=>t.value,()=>e.defaultCheckedKeys],()=>Object(s["nextTick"])(()=>{y(e.defaultCheckedKeys)}),{immediate:!0});const a=()=>{if(!t.value||!e.showCheckbox||e.checkStrictly)return;const{levelTreeNodeMap:o,maxLevel:a}=t.value,i=n.value,s=new Set;for(let e=a-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(i.has(t))r=!0;else{if(s.has(t)){n=!1,r=!0;break}n=!1}}n?i.add(e.key):r?(s.add(e.key),i.delete(e.key)):(i.delete(e.key),s.delete(e.key))}})}r.value=s},i=e=>n.value.has(e.key),c=e=>r.value.has(e.key),l=(t,r,o=!0)=>{const i=n.value,s=(t,n)=>{i[n?hw.ADD:hw.DELETE](t.key);const r=t.children;!e.checkStrictly&&r&&r.forEach(e=>{e.disabled||s(e,n)})};s(t,r),a(),o&&u(t,r)},u=(e,t)=>{const{checkedNodes:n,checkedKeys:r}=m(),{halfCheckedNodes:a,halfCheckedKeys:i}=v();o(kw,e.data,{checkedKeys:r,checkedNodes:n,halfCheckedKeys:i,halfCheckedNodes:a}),o(Cw,e.data,t)};function d(e=!1){return m(e).checkedKeys}function p(e=!1){return m(e).checkedNodes}function f(){return v().halfCheckedKeys}function h(){return v().halfCheckedNodes}function m(r=!1){const o=[],a=[];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)&&(a.push(t),o.push(n.data))})}return{checkedKeys:a,checkedNodes:o}}function v(){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 g(e){n.value.clear(),r.value.clear(),y(e)}function _(n,r){if((null==t?void 0:t.value)&&e.showCheckbox){const e=t.value.treeNodeMap.get(n);e&&l(e,r,!1)}}function y(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&&!i(t)&&l(t,!0,!1)}}}return{updateCheckedKeys:a,toggleCheckbox:l,isChecked:i,isIndeterminate:c,getCheckedKeys:d,getCheckedNodes:p,getHalfCheckedKeys:f,getHalfCheckedNodes:h,setChecked:_,setCheckedKeys:g}}function Ew(e,t){const n=Object(s["ref"])(new Set([])),r=Object(s["ref"])(new Set([])),o=Object(s["computed"])(()=>Object(Q["isFunction"])(e.filterMethod));function a(a){var i;if(!o.value)return;const s=new Set,c=r.value,l=n.value,u=[],d=(null==(i=t.value)?void 0:i.treeNodes)||[],p=e.filterMethod;function f(e){e.forEach(e=>{u.push(e),(null==p?void 0:p(a,e.data))?u.forEach(e=>{s.add(e.key)}):e.isLeaf&&l.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(!l.has(e.key)){n=!1;break}n?c.add(e.key):c.delete(e.key)}}else l.add(e.key);u.pop()})}return l.clear(),f(d),s}function i(e){return r.value.has(e.key)}return{hiddenExpandIconKeySet:r,hiddenNodeKeySet:n,doFilter:a,isForceHiddenExpandIcon:i}}function jw(e,t){const n=Object(s["ref"])(new Set(e.defaultExpandedKeys)),r=Object(s["ref"])(),o=Object(s["shallowRef"])();Object(s["watch"])(()=>e.currentNodeKey,e=>{r.value=e},{immediate:!0}),Object(s["watch"])(()=>e.data,e=>{z(e)},{immediate:!0});const{isIndeterminate:a,isChecked:i,toggleCheckbox:c,getCheckedKeys:l,getCheckedNodes:u,getHalfCheckedKeys:d,getHalfCheckedNodes:p,setChecked:f,setCheckedKeys:h}=Tw(e,o),{doFilter:m,hiddenNodeKeySet:v,isForceHiddenExpandIcon:g}=Ew(e,o),_=Object(s["computed"])(()=>{var t;return(null==(t=e.props)?void 0:t.value)||fw.KEY}),y=Object(s["computed"])(()=>{var t;return(null==(t=e.props)?void 0:t.children)||fw.CHILDREN}),b=Object(s["computed"])(()=>{var t;return(null==(t=e.props)?void 0:t.disabled)||fw.DISABLED}),O=Object(s["computed"])(()=>{var t;return(null==(t=e.props)?void 0:t.label)||fw.LABEL}),M=Object(s["computed"])(()=>{const e=n.value,t=v.value,r=[],a=o.value&&o.value.treeNodes||[];function i(){const n=[];for(let e=a.length-1;e>=0;--e)n.push(a[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 i(),r}),k=Object(s["computed"])(()=>M.value.length>0);function C(e){const t=new Map,n=new Map;let r=1;function o(e,a=1,i){var s;const c=[];for(const r of e){const e=S(r),l={level:a,key:e,data:r};l.label=E(r),l.parent=i;const u=I(r);l.disabled=T(r),l.isLeaf=!u||0===u.length,u&&u.length&&(l.children=o(u,a+1,l)),c.push(l),t.set(e,l),n.has(a)||n.set(a,[]),null==(s=n.get(a))||s.push(l)}return a>r&&(r=a),c}const a=o(e);return{treeNodeMap:t,levelTreeNodeMap:n,maxLevel:r,treeNodes:a}}function w(e){const t=m(e);t&&(n.value=t)}function I(e){return e[y.value]}function S(e){return e?e[_.value]:""}function T(e){return e[b.value]}function E(e){return e[O.value]}function j(e){const t=n.value;t.has(e.key)?R(e):x(e)}function D(e){n.value=new Set(e)}function L(n,r){t(yw,n.data,n,r),A(n),e.expandOnClickNode&&j(n),e.showCheckbox&&e.checkOnClickNode&&!n.disabled&&c(n,!i(n),!0)}function A(e){V(e)||(r.value=e.key,t(Mw,e.data,e))}function N(e,t){c(e,t)}function x(r){const a=n.value;if(o.value&&e.accordion){const{treeNodeMap:e}=o.value;a.forEach(t=>{const n=e.get(t);r&&r.level===(null==n?void 0:n.level)&&a.delete(t)})}a.add(r.key),t(bw,r.data,r)}function R(e){n.value.delete(e.key),t(Ow,e.data,e)}function P(e){return n.value.has(e.key)}function U(e){return!!e.disabled}function V(e){const t=r.value;return!!t&&t===e.key}function B(){var e,t;if(r.value)return null==(t=null==(e=o.value)?void 0:e.treeNodeMap.get(r.value))?void 0:t.data}function F(){return r.value}function G(e){r.value=e}function z(e){Object(s["nextTick"])(()=>o.value=C(e))}function H(e){var t;const n=Object(Q["isObject"])(e)?S(e):e;return null==(t=o.value)?void 0:t.treeNodeMap.get(n)}return{tree:o,flattenTree:M,isNotEmpty:k,getKey:S,getChildren:I,toggleExpand:j,toggleCheckbox:c,isExpanded:P,isChecked:i,isIndeterminate:a,isDisabled:U,isCurrent:V,isForceHiddenExpandIcon:g,handleNodeClick:L,handleNodeCheck:N,getCurrentNode:B,getCurrentKey:F,setCurrentKey:G,getCheckedKeys:l,getCheckedNodes:u,getHalfCheckedKeys:d,getHalfCheckedNodes:p,setChecked:f,setCheckedKeys:h,filter:w,setData:z,getNode:H,expandNode:x,collapseNode:R,setExpandedKeys:D}}var Dw=Object(s["defineComponent"])({name:"ElTreeNodeContent",props:_w,setup(e){const t=Object(s["inject"])(dw),n=Object(m["d"])("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}):Object(s["h"])("span",{class:n.be("node","label")},[null==r?void 0:r.label])}}});const Lw=["aria-expanded","aria-disabled","aria-checked","data-key","onClick"],Aw=Object(s["defineComponent"])({name:"ElTreeNode"}),Nw=Object(s["defineComponent"])({...Aw,props:gw,emits:Sw,setup(e,{emit:t}){const n=e,r=Object(s["inject"])(dw),o=Object(m["d"])("tree"),a=Object(s["computed"])(()=>{var e;return null!=(e=null==r?void 0:r.props.indent)?e:16}),i=Object(s["computed"])(()=>{var e;return null!=(e=null==r?void 0:r.props.icon)?e:R["CaretRight"]}),c=e=>{t("click",n.node,e)},l=()=>{t("toggle",n.node)},u=e=>{t("check",n.node,e)},d=e=>{var t,o,a,i;(null==(a=null==(o=null==(t=null==r?void 0:r.instance)?void 0:t.vnode)?void 0:o.props)?void 0:a["onNodeContextmenu"])&&(e.stopPropagation(),e.preventDefault()),null==r||r.ctx.emit(ww,e,null==(i=n.node)?void 0:i.data,n.node)};return(e,t)=>{var n,r,p;return Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{ref:"node$",class:Object(s["normalizeClass"])([Object(s["unref"])(o).b("node"),Object(s["unref"])(o).is("expanded",e.expanded),Object(s["unref"])(o).is("current",e.current),Object(s["unref"])(o).is("focusable",!e.disabled),Object(s["unref"])(o).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==(n=e.node)?void 0:n.key,onClick:Object(s["withModifiers"])(c,["stop"]),onContextmenu:d},[Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(o).be("node","content")),style:Object(s["normalizeStyle"])({paddingLeft:(e.node.level-1)*Object(s["unref"])(a)+"px",height:e.itemSize+"px"})},[Object(s["unref"])(i)?(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(w["a"]),{key:0,class:Object(s["normalizeClass"])([Object(s["unref"])(o).is("leaf",!!(null==(r=e.node)?void 0:r.isLeaf)),Object(s["unref"])(o).is("hidden",e.hiddenExpandIcon),{expanded:!(null==(p=e.node)?void 0:p.isLeaf)&&e.expanded},Object(s["unref"])(o).be("node","expand-icon")]),onClick:Object(s["withModifiers"])(l,["stop"])},{default:Object(s["withCtx"])(()=>[(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["resolveDynamicComponent"])(Object(s["unref"])(i))))]),_:1},8,["class","onClick"])):Object(s["createCommentVNode"])("v-if",!0),e.showCheckbox?(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(ao),{key:1,"model-value":e.checked,indeterminate:e.indeterminate,disabled:e.disabled,onChange:u,onClick:t[0]||(t[0]=Object(s["withModifiers"])(()=>{},["stop"]))},null,8,["model-value","indeterminate","disabled"])):Object(s["createCommentVNode"])("v-if",!0),Object(s["createVNode"])(Object(s["unref"])(Dw),{node:e.node},null,8,["node"])],6)],42,Lw)}}});var xw=Object(h["a"])(Nw,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree-node.vue"]]);const Rw=Object(s["defineComponent"])({name:"ElTreeV2"}),Pw=Object(s["defineComponent"])({...Rw,props:vw,emits:Iw,setup(e,{expose:t,emit:n}){const r=e,o=Object(s["useSlots"])(),a=Object(s["computed"])(()=>r.itemSize);Object(s["provide"])(dw,{ctx:{emit:n,slots:o},props:r,instance:Object(s["getCurrentInstance"])()}),Object(s["provide"])(mt["b"],void 0);const{t:i}=Object(Vn["b"])(),c=Object(m["d"])("tree"),{flattenTree:l,isNotEmpty:u,toggleExpand:d,isExpanded:p,isIndeterminate:f,isChecked:h,isDisabled:v,isCurrent:g,isForceHiddenExpandIcon:_,handleNodeClick:y,handleNodeCheck:b,toggleCheckbox:O,getCurrentNode:M,getCurrentKey:k,setCurrentKey:C,getCheckedKeys:w,getCheckedNodes:I,getHalfCheckedKeys:S,getHalfCheckedNodes:T,setChecked:E,setCheckedKeys:j,filter:D,setData:L,getNode:A,expandNode:N,collapseNode:x,setExpandedKeys:R}=jw(r,n);return t({toggleCheckbox:O,getCurrentNode:M,getCurrentKey:k,setCurrentKey:C,getCheckedKeys:w,getCheckedNodes:I,getHalfCheckedKeys:S,getHalfCheckedNodes:T,setChecked:E,setCheckedKeys:j,filter:D,setData:L,getNode:A,expandNode:N,collapseNode:x,setExpandedKeys:R}),(e,t)=>{var n;return Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{class:Object(s["normalizeClass"])([Object(s["unref"])(c).b(),{[Object(s["unref"])(c).m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[Object(s["unref"])(u)?(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(Jv),{key:0,"class-name":Object(s["unref"])(c).b("virtual-list"),data:Object(s["unref"])(l),total:Object(s["unref"])(l).length,height:e.height,"item-size":Object(s["unref"])(a),"perf-mode":e.perfMode},{default:Object(s["withCtx"])(({data:t,index:n,style:r})=>[(Object(s["openBlock"])(),Object(s["createBlock"])(xw,{key:t[n].key,style:Object(s["normalizeStyle"])(r),node:t[n],expanded:Object(s["unref"])(p)(t[n]),"show-checkbox":e.showCheckbox,checked:Object(s["unref"])(h)(t[n]),indeterminate:Object(s["unref"])(f)(t[n]),"item-size":Object(s["unref"])(a),disabled:Object(s["unref"])(v)(t[n]),current:Object(s["unref"])(g)(t[n]),"hidden-expand-icon":Object(s["unref"])(_)(t[n]),onClick:Object(s["unref"])(y),onToggle:Object(s["unref"])(d),onCheck:Object(s["unref"])(b)},null,8,["style","node","expanded","show-checkbox","checked","indeterminate","item-size","disabled","current","hidden-expand-icon","onClick","onToggle","onCheck"]))]),_:1},8,["class-name","data","total","height","item-size","perf-mode"])):(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:1,class:Object(s["normalizeClass"])(Object(s["unref"])(c).e("empty-block"))},[Object(s["createElementVNode"])("span",{class:Object(s["normalizeClass"])(Object(s["unref"])(c).e("empty-text"))},Object(s["toDisplayString"])(null!=(n=e.emptyText)?n:Object(s["unref"])(i)("el.tree.emptyText")),3)],2))],2)}}});var Uw=Object(h["a"])(Pw,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree.vue"]]);const Vw=Object(k["a"])(Uw),Bw=Symbol("uploadContextKey"),Fw="ElUpload";class Gw extends Error{constructor(e,t,n,r){super(e),this.name="UploadAjaxError",this.status=t,this.method=n,this.url=r}}function zw(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 Gw(r,n.status,t.method,e)}function Hw(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(n){return t}}const Yw=e=>{"undefined"===typeof XMLHttpRequest&&Object(g["b"])(Fw,"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[a,i]of Object.entries(e.data))Array.isArray(i)?r.append(a,...i):r.append(a,i);r.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError(zw(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(zw(n,e,t));e.onSuccess(Hw(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[a,i]of Object.entries(o))Object(x["isNil"])(i)||t.setRequestHeader(a,String(i));return t.send(r),t},qw=["text","picture","picture-card"];let Ww=1;const Kw=()=>Date.now()+Ww++,$w=Object(l["b"])({action:{type:String,default:"#"},headers:{type:Object(l["c"])(Object)},method:{type:String,default:"post"},data:{type:Object,default:()=>Object(Ra["a"])({})},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:Object(l["c"])(Array),default:()=>Object(Ra["a"])([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:qw,default:"text"},httpRequest:{type:Object(l["c"])(Function),default:Yw},disabled:Boolean,limit:Number}),Jw=Object(l["b"])({...$w,beforeUpload:{type:Object(l["c"])(Function),default:Q["NOOP"]},beforeRemove:{type:Object(l["c"])(Function)},onRemove:{type:Object(l["c"])(Function),default:Q["NOOP"]},onChange:{type:Object(l["c"])(Function),default:Q["NOOP"]},onPreview:{type:Object(l["c"])(Function),default:Q["NOOP"]},onSuccess:{type:Object(l["c"])(Function),default:Q["NOOP"]},onProgress:{type:Object(l["c"])(Function),default:Q["NOOP"]},onError:{type:Object(l["c"])(Function),default:Q["NOOP"]},onExceed:{type:Object(l["c"])(Function),default:Q["NOOP"]}}),Qw=Object(l["b"])({files:{type:Object(l["c"])(Array),default:()=>Object(Ra["a"])([])},disabled:{type:Boolean,default:!1},handlePreview:{type:Object(l["c"])(Function),default:Q["NOOP"]},listType:{type:String,values:qw,default:"text"}}),Xw={remove:e=>!!e},Zw=["onKeydown"],eI=["src"],tI=["onClick"],nI=["title"],rI=["onClick"],oI=["onClick"],aI=Object(s["defineComponent"])({name:"ElUploadList"}),iI=Object(s["defineComponent"])({...aI,props:Qw,emits:Xw,setup(e,{emit:t}){const{t:n}=Object(Vn["b"])(),r=Object(m["d"])("upload"),o=Object(m["d"])("icon"),a=Object(m["d"])("list"),i=Object(xt["a"])(),c=Object(s["ref"])(!1),l=e=>{t("remove",e)};return(e,t)=>(Object(s["openBlock"])(),Object(s["createBlock"])(s["TransitionGroup"],{tag:"ul",class:Object(s["normalizeClass"])([Object(s["unref"])(r).b("list"),Object(s["unref"])(r).bm("list",e.listType),Object(s["unref"])(r).is("disabled",Object(s["unref"])(i))]),name:Object(s["unref"])(a).b()},{default:Object(s["withCtx"])(()=>[(Object(s["openBlock"])(!0),Object(s["createElementBlock"])(s["Fragment"],null,Object(s["renderList"])(e.files,a=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("li",{key:a.uid||a.name,class:Object(s["normalizeClass"])([Object(s["unref"])(r).be("list","item"),Object(s["unref"])(r).is(a.status),{focusing:c.value}]),tabindex:"0",onKeydown:Object(s["withKeys"])(e=>!Object(s["unref"])(i)&&l(a),["delete"]),onFocus:t[0]||(t[0]=e=>c.value=!0),onBlur:t[1]||(t[1]=e=>c.value=!1),onClick:t[2]||(t[2]=e=>c.value=!1)},[Object(s["renderSlot"])(e.$slots,"default",{file:a},()=>["picture"===e.listType||"uploading"!==a.status&&"picture-card"===e.listType?(Object(s["openBlock"])(),Object(s["createElementBlock"])("img",{key:0,class:Object(s["normalizeClass"])(Object(s["unref"])(r).be("list","item-thumbnail")),src:a.url,alt:""},null,10,eI)):Object(s["createCommentVNode"])("v-if",!0),"uploading"===a.status||"picture-card"!==e.listType?(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{key:1,class:Object(s["normalizeClass"])(Object(s["unref"])(r).be("list","item-info"))},[Object(s["createElementVNode"])("a",{class:Object(s["normalizeClass"])(Object(s["unref"])(r).be("list","item-name")),onClick:Object(s["withModifiers"])(t=>e.handlePreview(a),["prevent"])},[Object(s["createVNode"])(Object(s["unref"])(w["a"]),{class:Object(s["normalizeClass"])(Object(s["unref"])(o).m("document"))},{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(Object(s["unref"])(R["Document"]))]),_:1},8,["class"]),Object(s["createElementVNode"])("span",{class:Object(s["normalizeClass"])(Object(s["unref"])(r).be("list","item-file-name")),title:a.name},Object(s["toDisplayString"])(a.name),11,nI)],10,tI),"uploading"===a.status?(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(Om),{key:0,type:"picture-card"===e.listType?"circle":"line","stroke-width":"picture-card"===e.listType?6:2,percentage:Number(a.percentage),style:Object(s["normalizeStyle"])("picture-card"===e.listType?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):Object(s["createCommentVNode"])("v-if",!0)],2)):Object(s["createCommentVNode"])("v-if",!0),Object(s["createElementVNode"])("label",{class:Object(s["normalizeClass"])(Object(s["unref"])(r).be("list","item-status-label"))},["text"===e.listType?(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(w["a"]),{key:0,class:Object(s["normalizeClass"])([Object(s["unref"])(o).m("upload-success"),Object(s["unref"])(o).m("circle-check")])},{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(Object(s["unref"])(R["CircleCheck"]))]),_:1},8,["class"])):["picture-card","picture"].includes(e.listType)?(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(w["a"]),{key:1,class:Object(s["normalizeClass"])([Object(s["unref"])(o).m("upload-success"),Object(s["unref"])(o).m("check")])},{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(Object(s["unref"])(R["Check"]))]),_:1},8,["class"])):Object(s["createCommentVNode"])("v-if",!0)],2),Object(s["unref"])(i)?Object(s["createCommentVNode"])("v-if",!0):(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(w["a"]),{key:2,class:Object(s["normalizeClass"])(Object(s["unref"])(o).m("close")),onClick:e=>l(a)},{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(Object(s["unref"])(R["Close"]))]),_:2},1032,["class","onClick"])),Object(s["createCommentVNode"])(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),Object(s["createCommentVNode"])(" This is a bug which needs to be fixed "),Object(s["createCommentVNode"])(" TODO: Fix the incorrect navigation interaction "),Object(s["unref"])(i)?Object(s["createCommentVNode"])("v-if",!0):(Object(s["openBlock"])(),Object(s["createElementBlock"])("i",{key:3,class:Object(s["normalizeClass"])(Object(s["unref"])(o).m("close-tip"))},Object(s["toDisplayString"])(Object(s["unref"])(n)("el.upload.deleteTip")),3)),"picture-card"===e.listType?(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",{key:4,class:Object(s["normalizeClass"])(Object(s["unref"])(r).be("list","item-actions"))},[Object(s["createElementVNode"])("span",{class:Object(s["normalizeClass"])(Object(s["unref"])(r).be("list","item-preview")),onClick:t=>e.handlePreview(a)},[Object(s["createVNode"])(Object(s["unref"])(w["a"]),{class:Object(s["normalizeClass"])(Object(s["unref"])(o).m("zoom-in"))},{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(Object(s["unref"])(R["ZoomIn"]))]),_:1},8,["class"])],10,rI),Object(s["unref"])(i)?Object(s["createCommentVNode"])("v-if",!0):(Object(s["openBlock"])(),Object(s["createElementBlock"])("span",{key:0,class:Object(s["normalizeClass"])(Object(s["unref"])(r).be("list","item-delete")),onClick:e=>l(a)},[Object(s["createVNode"])(Object(s["unref"])(w["a"]),{class:Object(s["normalizeClass"])(Object(s["unref"])(o).m("delete"))},{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(Object(s["unref"])(R["Delete"]))]),_:1},8,["class"])],10,oI))],2)):Object(s["createCommentVNode"])("v-if",!0)])],42,Zw))),128)),Object(s["renderSlot"])(e.$slots,"append")]),_:3},8,["class","name"]))}});var sI=Object(h["a"])(iI,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-list.vue"]]);const cI=Object(l["b"])({disabled:{type:Boolean,default:!1}}),lI={file:e=>Object(Q["isArray"])(e)},uI=["onDrop","onDragover"],dI="ElUploadDrag",pI=Object(s["defineComponent"])({name:dI}),fI=Object(s["defineComponent"])({...pI,props:cI,emits:lI,setup(e,{emit:t}){const n=Object(s["inject"])(Bw);n||Object(g["b"])(dI,"usage: <el-upload><el-upload-dragger /></el-upload>");const r=Object(m["d"])("upload"),o=Object(s["ref"])(!1),a=Object(xt["a"])(),i=e=>{if(a.value)return;o.value=!1,e.stopPropagation();const r=Array.from(e.dataTransfer.files),i=n.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)},c=()=>{a.value||(o.value=!0)};return(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{class:Object(s["normalizeClass"])([Object(s["unref"])(r).b("dragger"),Object(s["unref"])(r).is("dragover",o.value)]),onDrop:Object(s["withModifiers"])(i,["prevent"]),onDragover:Object(s["withModifiers"])(c,["prevent"]),onDragleave:t[0]||(t[0]=Object(s["withModifiers"])(e=>o.value=!1,["prevent"]))},[Object(s["renderSlot"])(e.$slots,"default")],42,uI))}});var hI=Object(h["a"])(fI,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-dragger.vue"]]);const mI=Object(l["b"])({...$w,beforeUpload:{type:Object(l["c"])(Function),default:Q["NOOP"]},onRemove:{type:Object(l["c"])(Function),default:Q["NOOP"]},onStart:{type:Object(l["c"])(Function),default:Q["NOOP"]},onSuccess:{type:Object(l["c"])(Function),default:Q["NOOP"]},onProgress:{type:Object(l["c"])(Function),default:Q["NOOP"]},onError:{type:Object(l["c"])(Function),default:Q["NOOP"]},onExceed:{type:Object(l["c"])(Function),default:Q["NOOP"]}}),vI=["onKeydown"],gI=["name","multiple","accept"],_I=Object(s["defineComponent"])({name:"ElUploadContent",inheritAttrs:!1}),yI=Object(s["defineComponent"])({..._I,props:mI,setup(e,{expose:t}){const n=e,r=Object(m["d"])("upload"),o=Object(xt["a"])(),a=Object(s["shallowRef"])({}),i=Object(s["shallowRef"])(),c=e=>{if(0===e.length)return;const{autoUpload:t,limit:r,fileList:o,multiple:a,onStart:i,onExceed:s}=n;if(r&&o.length+e.length>r)s(e,o);else{a||(e=e.slice(0,1));for(const n of e){const e=n;e.uid=Kw(),i(e),t&&l(e)}}},l=async e=>{if(i.value.value="",!n.beforeUpload)return u(e);let t,r={};try{const o=n.data,a=n.beforeUpload(e);r=Object(Q["isObject"])(n.data)?Object(x["cloneDeep"])(n.data):n.data,t=await a,Object(Q["isObject"])(n.data)&&Object(x["isEqual"])(o,r)&&(r=Object(x["cloneDeep"])(n.data))}catch(a){t=!1}if(!1===t)return void n.onRemove(e);let o=e;t instanceof Blob&&(o=t instanceof File?t:new File([t],e.name,{type:e.type})),u(Object.assign(o,{uid:e.uid}),r)},u=(e,t)=>{const{headers:r,data:o,method:i,withCredentials:s,name:c,action:l,onProgress:u,onSuccess:d,onError:p,httpRequest:f}=n,{uid:h}=e,m={headers:r||{},withCredentials:s,file:e,data:null!=t?t:o,method:i,filename:c,action:l,onProgress:t=>{u(t,e)},onSuccess:t=>{d(t,e),delete a.value[h]},onError:t=>{p(t,e),delete a.value[h]}},v=f(m);a.value[h]=v,v instanceof Promise&&v.then(m.onSuccess,m.onError)},d=e=>{const t=e.target.files;t&&c(Array.from(t))},p=()=>{o.value||(i.value.value="",i.value.click())},f=()=>{p()},h=e=>{const t=Object(I["a"])(a.value).filter(e?([t])=>String(e.uid)===t:()=>!0);t.forEach(([e,t])=>{t instanceof XMLHttpRequest&&t.abort(),delete a.value[e]})};return t({abort:h,upload:l}),(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",{class:Object(s["normalizeClass"])([Object(s["unref"])(r).b(),Object(s["unref"])(r).m(e.listType),Object(s["unref"])(r).is("drag",e.drag)]),tabindex:"0",onClick:p,onKeydown:Object(s["withKeys"])(Object(s["withModifiers"])(f,["self"]),["enter","space"])},[e.drag?(Object(s["openBlock"])(),Object(s["createBlock"])(hI,{key:0,disabled:Object(s["unref"])(o),onFile:c},{default:Object(s["withCtx"])(()=>[Object(s["renderSlot"])(e.$slots,"default")]),_:3},8,["disabled"])):Object(s["renderSlot"])(e.$slots,"default",{key:1}),Object(s["createElementVNode"])("input",{ref_key:"inputRef",ref:i,class:Object(s["normalizeClass"])(Object(s["unref"])(r).e("input")),name:e.name,multiple:e.multiple,accept:e.accept,type:"file",onChange:d,onClick:t[0]||(t[0]=Object(s["withModifiers"])(()=>{},["stop"]))},null,42,gI)],42,vI))}});var bI=Object(h["a"])(yI,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-content.vue"]]);const OI="ElUpload",MI=e=>{var t;(null==(t=e.url)?void 0:t.startsWith("blob:"))&&URL.revokeObjectURL(e.url)},kI=(e,t)=>{const n=Object(c["useVModel"])(e,"fileList",void 0,{passive:!0}),r=e=>n.value.find(t=>t.uid===e.uid);function o(e){var n;null==(n=t.value)||n.abort(e)}function a(e=["ready","uploading","success","fail"]){n.value=n.value.filter(t=>!e.includes(t.status))}const i=(t,o)=>{const a=r(o);a&&(console.error(t),a.status="fail",n.value.splice(n.value.indexOf(a),1),e.onError(t,a,n.value),e.onChange(a,n.value))},l=(t,o)=>{const a=r(o);a&&(e.onProgress(t,a,n.value),a.status="uploading",a.percentage=Math.round(t.percent))},u=(t,o)=>{const a=r(o);a&&(a.status="success",a.response=t,e.onSuccess(t,a,n.value),e.onChange(a,n.value))},d=t=>{Object(x["isNil"])(t.uid)&&(t.uid=Kw());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){Object(g["a"])(OI,o.message),e.onError(o,r,n.value)}n.value=[...n.value,r],e.onChange(r,n.value)},p=async t=>{const a=t instanceof File?r(t):t;a||Object(g["b"])(OI,"file to be removed not found");const i=t=>{o(t);const r=n.value;r.splice(r.indexOf(t),1),e.onRemove(t,r),MI(t)};if(e.beforeRemove){const t=await e.beforeRemove(a,n.value);!1!==t&&i(a)}else i(a)};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 Object(s["watch"])(()=>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(a){e.onError(a,t,n.value)}return t}))}),Object(s["watch"])(n,e=>{for(const t of e)t.uid||(t.uid=Kw()),t.status||(t.status="success")},{immediate:!0,deep:!0}),{uploadFiles:n,abort:o,clearFiles:a,handleError:i,handleProgress:l,handleStart:d,handleSuccess:u,handleRemove:p,submit:f}},CI=Object(s["defineComponent"])({name:"ElUpload"}),wI=Object(s["defineComponent"])({...CI,props:Jw,setup(e,{expose:t}){const n=e,r=Object(s["useSlots"])(),o=Object(xt["a"])(),a=Object(s["shallowRef"])(),{abort:i,submit:c,clearFiles:l,uploadFiles:u,handleStart:d,handleError:p,handleRemove:f,handleSuccess:h,handleProgress:m}=kI(n,a),v=Object(s["computed"])(()=>"picture-card"===n.listType),g=Object(s["computed"])(()=>({...n,fileList:u.value,onStart:d,onProgress:m,onSuccess:h,onError:p,onRemove:f}));return Object(s["onBeforeUnmount"])(()=>{u.value.forEach(({url:e})=>{(null==e?void 0:e.startsWith("blob:"))&&URL.revokeObjectURL(e)})}),Object(s["provide"])(Bw,{accept:Object(s["toRef"])(n,"accept")}),t({abort:i,submit:c,clearFiles:l,handleStart:d,handleRemove:f}),(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("div",null,[Object(s["unref"])(v)&&e.showFileList?(Object(s["openBlock"])(),Object(s["createBlock"])(sI,{key:0,disabled:Object(s["unref"])(o),"list-type":e.listType,files:Object(s["unref"])(u),"handle-preview":e.onPreview,onRemove:Object(s["unref"])(f)},Object(s["createSlots"])({append:Object(s["withCtx"])(()=>[Object(s["createVNode"])(bI,Object(s["mergeProps"])({ref_key:"uploadRef",ref:a},Object(s["unref"])(g)),{default:Object(s["withCtx"])(()=>[Object(s["unref"])(r).trigger?Object(s["renderSlot"])(e.$slots,"trigger",{key:0}):Object(s["createCommentVNode"])("v-if",!0),!Object(s["unref"])(r).trigger&&Object(s["unref"])(r).default?Object(s["renderSlot"])(e.$slots,"default",{key:1}):Object(s["createCommentVNode"])("v-if",!0)]),_:3},16)]),_:2},[e.$slots.file?{name:"default",fn:Object(s["withCtx"])(({file:t})=>[Object(s["renderSlot"])(e.$slots,"file",{file:t})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):Object(s["createCommentVNode"])("v-if",!0),!Object(s["unref"])(v)||Object(s["unref"])(v)&&!e.showFileList?(Object(s["openBlock"])(),Object(s["createBlock"])(bI,Object(s["mergeProps"])({key:1,ref_key:"uploadRef",ref:a},Object(s["unref"])(g)),{default:Object(s["withCtx"])(()=>[Object(s["unref"])(r).trigger?Object(s["renderSlot"])(e.$slots,"trigger",{key:0}):Object(s["createCommentVNode"])("v-if",!0),!Object(s["unref"])(r).trigger&&Object(s["unref"])(r).default?Object(s["renderSlot"])(e.$slots,"default",{key:1}):Object(s["createCommentVNode"])("v-if",!0)]),_:3},16)):Object(s["createCommentVNode"])("v-if",!0),e.$slots.trigger?Object(s["renderSlot"])(e.$slots,"default",{key:2}):Object(s["createCommentVNode"])("v-if",!0),Object(s["renderSlot"])(e.$slots,"tip"),!Object(s["unref"])(v)&&e.showFileList?(Object(s["openBlock"])(),Object(s["createBlock"])(sI,{key:3,disabled:Object(s["unref"])(o),"list-type":e.listType,files:Object(s["unref"])(u),"handle-preview":e.onPreview,onRemove:Object(s["unref"])(f)},Object(s["createSlots"])({_:2},[e.$slots.file?{name:"default",fn:Object(s["withCtx"])(({file:t})=>[Object(s["renderSlot"])(e.$slots,"file",{file:t})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):Object(s["createCommentVNode"])("v-if",!0)]))}});var II=Object(h["a"])(wI,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload.vue"]]);const SI=Object(k["a"])(II);var TI=[C,N,Ht,gM,Xt,sn,cn["a"],_n,yn,bn["a"],bn["b"],or,lr,jr,Dr,Ea,sa,xa,ao,io,so,Ga,pi,fi,ni,as,is["a"],Ms,ks,Cs,ws,Is,Tl,Fl,Gl,uu,mu,wu,Dd,Ld,Ad,pp,fp["a"],fp["b"],w["a"],Tp,bp,P["a"],Rp,zp,yf,bf,Of,Mf,Ef,Wh,em,dm,ue,Om,Eo,Do,jo,Em,Rm,zm,ne,hh,mh,vh,bg,jg,Dg,u_,g_,M_,D_,F_,G_,ey,Ub,Vb,vM,UM,VM,fa,HM,QM,ck,hk,mk,Dt,rC,wC,QC,uw,Vw,SI];const EI="ElInfiniteScroll",jI=50,DI=200,LI=0,AI={delay:{type:Number,default:DI},distance:{type:Number,default:LI},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},NI=(e,t)=>Object.entries(AI).reduce((n,[r,o])=>{var a,i;const{type:s,default:c}=o,l=e.getAttribute("infinite-scroll-"+r);let u=null!=(i=null!=(a=t[l])?a:l)?i:c;return u="false"!==u&&u,u=s(u),n[r]=Number.isNaN(u)?c:u,n},{}),xI=e=>{const{observer:t}=e[EI];t&&(t.disconnect(),delete e[EI].observer)},RI=(e,t)=>{const{container:n,containerEl:r,instance:o,observer:a,lastScrollTop:i}=e[EI],{disabled:s,distance:c}=NI(e,o),{clientHeight:l,scrollHeight:u,scrollTop:d}=r,p=d-i;if(e[EI].lastScrollTop=d,a||s||p<0)return;let f=!1;if(n===e)f=u-(l+d)<=c;else{const{clientTop:t,scrollHeight:n}=e,o=yi(e,r);f=d+l>=o+t+n-c}f&&t.call(o)};function PI(e,t){const{containerEl:n,instance:r}=e[EI],{disabled:o}=NI(e,r);o||0===n.clientHeight||(n.scrollHeight<=n.clientHeight?t.call(r):xI(e))}const UI={async mounted(e,t){const{instance:n,value:r}=t;Object(Q["isFunction"])(r)||Object(g["b"])(EI,"'v-infinite-scroll' binding value must be a function"),await Object(s["nextTick"])();const{delay:o,immediate:a}=NI(e,n),i=Object(_["b"])(e,!0),c=i===window?document.documentElement:i,l=Object(x["throttle"])(RI.bind(null,e,r),o);if(i){if(e[EI]={instance:n,container:i,containerEl:c,delay:o,cb:r,onScroll:l,lastScrollTop:c.scrollTop},a){const t=new MutationObserver(Object(x["throttle"])(PI.bind(null,e,r),jI));e[EI].observer=t,t.observe(e,{childList:!0,subtree:!0}),PI(e,r)}i.addEventListener("scroll",l)}},unmounted(e){const{container:t,onScroll:n}=e[EI];null==t||t.removeEventListener("scroll",n),xI(e)},async updated(e){if(e[EI]){const{containerEl:t,cb:n,observer:r}=e[EI];t.clientHeight&&r&&PI(e,n)}else await Object(s["nextTick"])()}},VI=UI;VI.install=e=>{e.directive("InfiniteScroll",VI)};const BI=VI;function FI(e){let t;const n=Object(s["ref"])(!1),r=Object(s["reactive"])({...e,originalPosition:"",originalOverflow:"",visible:!1});function o(e){r.text=e}function i(){const e=r.parent,t=f.ns;if(!e.vLoadingAddClassList){let n=e.getAttribute("loading-number");n=Number.parseInt(n)-1,n?e.setAttribute("loading-number",n.toString()):(Object(v["e"])(e,t.bm("parent","relative")),e.removeAttribute("loading-number")),Object(v["e"])(e,t.bm("parent","hidden"))}c(),p.unmount()}function c(){var e,t;null==(t=null==(e=f.$el)?void 0:e.parentNode)||t.removeChild(f.$el)}function l(){var o;e.beforeClose&&!e.beforeClose()||(n.value=!0,clearTimeout(t),t=window.setTimeout(u,400),r.visible=!1,null==(o=e.closed)||o.call(e))}function u(){if(!n.value)return;const e=r.parent;n.value=!1,e.vLoadingAddClassList=void 0,i()}const d=Object(s["defineComponent"])({name:"ElLoading",setup(e,{expose:t}){const{ns:n,zIndex:o}=Object(a["b"])("loading");return t({ns:n,zIndex:o}),()=>{const e=r.spinner||r.svg,t=Object(s["h"])("svg",{class:"circular",viewBox:r.svgViewBox?r.svgViewBox:"0 0 50 50",...e?{innerHTML:e}:{}},[Object(s["h"])("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),o=r.text?Object(s["h"])("p",{class:n.b("text")},[r.text]):void 0;return Object(s["h"])(s["Transition"],{name:n.b("fade"),onAfterLeave:u},{default:Object(s["withCtx"])(()=>[Object(s["withDirectives"])(Object(s["createVNode"])("div",{style:{backgroundColor:r.background||""},class:[n.b("mask"),r.customClass,r.fullscreen?"is-fullscreen":""]},[Object(s["h"])("div",{class:n.b("spinner")},[t,o])]),[[s["vShow"],r.visible]])])})}}}),p=Object(s["createApp"])(d),f=p.mount(document.createElement("div"));return{...Object(s["toRefs"])(r),setText:o,removeElLoadingChild:c,close:l,handleAfterLeave:u,vm:f,get $el(){return f.$el}}}let GI=void 0;const zI=function(e={}){if(!c["isClient"])return;const t=HI(e);if(t.fullscreen&&GI)return GI;const n=FI({...t,closed:()=>{var e;null==(e=t.closed)||e.call(t),t.fullscreen&&(GI=void 0)}});YI(t,t.parent,n),qI(t,t.parent,n),t.parent.vLoadingAddClassList=()=>qI(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),Object(s["nextTick"])(()=>n.visible.value=t.visible),t.fullscreen&&(GI=n),n},HI=e=>{var t,n,r,o;let a;return a=Object(Q["isString"])(e.target)?null!=(t=document.querySelector(e.target))?t:document.body:e.target||document.body,{parent:a===document.body||e.body?document.body:a,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:a===document.body&&(null==(n=e.fullscreen)||n),lock:null!=(r=e.lock)&&r,customClass:e.customClass||"",visible:null==(o=e.visible)||o,target:a}},YI=async(e,t,n)=>{const{nextZIndex:r}=n.vm.zIndex||n.vm._.exposed.zIndex,o={};if(e.fullscreen)n.originalPosition.value=Object(v["c"])(document.body,"position"),n.originalOverflow.value=Object(v["c"])(document.body,"overflow"),o.zIndex=r();else if(e.parent===document.body){n.originalPosition.value=Object(v["c"])(document.body,"position"),await Object(s["nextTick"])();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(Object(v["c"])(document.body,"margin-"+t),10)+"px"}for(const t of["height","width"])o[t]=e.target.getBoundingClientRect()[t]+"px"}else n.originalPosition.value=Object(v["c"])(t,"position");for(const[a,i]of Object.entries(o))n.$el.style[a]=i},qI=(e,t,n)=>{const r=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?Object(v["e"])(t,r.bm("parent","relative")):Object(v["a"])(t,r.bm("parent","relative")),e.fullscreen&&e.lock?Object(v["a"])(t,r.bm("parent","hidden")):Object(v["e"])(t,r.bm("parent","hidden"))},WI=Symbol("ElLoading"),KI=(e,t)=>{var n,r,o,a;const i=t.instance,c=e=>Object(Q["isObject"])(t.value)?t.value[e]:void 0,l=e=>{const t=Object(Q["isString"])(e)&&(null==i?void 0:i[e])||e;return t?Object(s["ref"])(t):t},u=t=>l(c(t)||e.getAttribute("element-loading-"+Object(Q["hyphenate"])(t))),d=null!=(n=c("fullscreen"))?n:t.modifiers.fullscreen,p={text:u("text"),svg:u("svg"),svgViewBox:u("svgViewBox"),spinner:u("spinner"),background:u("background"),customClass:u("customClass"),fullscreen:d,target:null!=(r=c("target"))?r:d?void 0:e,body:null!=(o=c("body"))?o:t.modifiers.body,lock:null!=(a=c("lock"))?a:t.modifiers.lock};e[WI]={options:p,instance:zI(p)}},$I=(e,t)=>{for(const n of Object.keys(t))Object(s["isRef"])(t[n])&&(t[n].value=e[n])},JI={mounted(e,t){t.value&&KI(e,t)},updated(e,t){const n=e[WI];t.oldValue!==t.value&&(t.value&&!t.oldValue?KI(e,t):t.value&&t.oldValue?Object(Q["isObject"])(t.value)&&$I(t.value,n.options):null==n||n.instance.close())},unmounted(e){var t;null==(t=e[WI])||t.instance.close()}},QI={install(e){e.directive("loading",JI),e.config.globalProperties.$loading=zI},directive:JI,service:zI};var XI=n("3ef4"),ZI=n("c9a1");const eS=["success","info","warning","error"],tS=Object(l["b"])({customClass:{type:String,default:""},dangerouslyUseHTMLString:{type:Boolean,default:!1},duration:{type:Number,default:4500},icon:{type:S["e"]},id:{type:String,default:""},message:{type:Object(l["c"])([String,Object]),default:""},offset:{type:Number,default:0},onClick:{type:Object(l["c"])(Function),default:()=>{}},onClose:{type:Object(l["c"])(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:[...eS,""],default:""},zIndex:Number}),nS={destroy:()=>!0},rS=["id"],oS=["textContent"],aS={key:0},iS=["innerHTML"],sS=Object(s["defineComponent"])({name:"ElNotification"}),cS=Object(s["defineComponent"])({...sS,props:tS,emits:nS,setup(e,{expose:t}){const n=e,{ns:r,zIndex:o}=Object(a["b"])("notification"),{nextZIndex:i,currentZIndex:l}=o,{Close:u}=S["a"],d=Object(s["ref"])(!1);let p=void 0;const f=Object(s["computed"])(()=>{const e=n.type;return e&&S["c"][n.type]?r.m(e):""}),h=Object(s["computed"])(()=>n.type&&S["c"][n.type]||n.icon),m=Object(s["computed"])(()=>n.position.endsWith("right")?"right":"left"),v=Object(s["computed"])(()=>n.position.startsWith("top")?"top":"bottom"),g=Object(s["computed"])(()=>{var e;return{[v.value]:n.offset+"px",zIndex:null!=(e=n.zIndex)?e:l.value}});function _(){n.duration>0&&({stop:p}=Object(c["useTimeoutFn"])(()=>{d.value&&b()},n.duration))}function y(){null==p||p()}function b(){d.value=!1}function O({code:e}){e===Me["a"].delete||e===Me["a"].backspace?y():e===Me["a"].esc?d.value&&b():_()}return Object(s["onMounted"])(()=>{_(),i(),d.value=!0}),Object(c["useEventListener"])(document,"keydown",O),t({visible:d,close:b}),(e,t)=>(Object(s["openBlock"])(),Object(s["createBlock"])(s["Transition"],{name:Object(s["unref"])(r).b("fade"),onBeforeLeave:e.onClose,onAfterLeave:t[1]||(t[1]=t=>e.$emit("destroy")),persisted:""},{default:Object(s["withCtx"])(()=>[Object(s["withDirectives"])(Object(s["createElementVNode"])("div",{id:e.id,class:Object(s["normalizeClass"])([Object(s["unref"])(r).b(),e.customClass,Object(s["unref"])(m)]),style:Object(s["normalizeStyle"])(Object(s["unref"])(g)),role:"alert",onMouseenter:y,onMouseleave:_,onClick:t[0]||(t[0]=(...t)=>e.onClick&&e.onClick(...t))},[Object(s["unref"])(h)?(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(w["a"]),{key:0,class:Object(s["normalizeClass"])([Object(s["unref"])(r).e("icon"),Object(s["unref"])(f)])},{default:Object(s["withCtx"])(()=>[(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["resolveDynamicComponent"])(Object(s["unref"])(h))))]),_:1},8,["class"])):Object(s["createCommentVNode"])("v-if",!0),Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(r).e("group"))},[Object(s["createElementVNode"])("h2",{class:Object(s["normalizeClass"])(Object(s["unref"])(r).e("title")),textContent:Object(s["toDisplayString"])(e.title)},null,10,oS),Object(s["withDirectives"])(Object(s["createElementVNode"])("div",{class:Object(s["normalizeClass"])(Object(s["unref"])(r).e("content")),style:Object(s["normalizeStyle"])(e.title?void 0:{margin:0})},[Object(s["renderSlot"])(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(Object(s["openBlock"])(),Object(s["createElementBlock"])(s["Fragment"],{key:1},[Object(s["createCommentVNode"])(" Caution here, message could've been compromised, never use user's input as message "),Object(s["createElementVNode"])("p",{innerHTML:e.message},null,8,iS)],2112)):(Object(s["openBlock"])(),Object(s["createElementBlock"])("p",aS,Object(s["toDisplayString"])(e.message),1))])],6),[[s["vShow"],e.message]]),e.showClose?(Object(s["openBlock"])(),Object(s["createBlock"])(Object(s["unref"])(w["a"]),{key:0,class:Object(s["normalizeClass"])(Object(s["unref"])(r).e("closeBtn")),onClick:Object(s["withModifiers"])(b,["stop"])},{default:Object(s["withCtx"])(()=>[Object(s["createVNode"])(Object(s["unref"])(u))]),_:1},8,["class","onClick"])):Object(s["createCommentVNode"])("v-if",!0)],2)],46,rS),[[s["vShow"],d.value]])]),_:3},8,["name","onBeforeLeave"]))}});var lS=Object(h["a"])(cS,[["__file","/home/runner/work/element-plus/element-plus/packages/components/notification/src/notification.vue"]]);const uS={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},dS=16;let pS=1;const fS=function(e={},t=null){if(!c["isClient"])return{close:()=>{}};("string"===typeof e||Object(s["isVNode"])(e))&&(e={message:e});const n=e.position||"top-right";let r=e.offset||0;uS[n].forEach(({vm:e})=>{var t;r+=((null==(t=e.el)?void 0:t.offsetHeight)||0)+dS}),r+=dS;const o="notification_"+pS++,a=e.onClose,i={...e,offset:r,id:o,onClose:()=>{hS(o,n,a)}};let l=document.body;Object(u["b"])(e.appendTo)?l=e.appendTo:Object(Q["isString"])(e.appendTo)&&(l=document.querySelector(e.appendTo)),Object(u["b"])(l)||(Object(g["a"])("ElNotification","the appendTo option is not an HTMLElement. Falling back to document.body."),l=document.body);const d=document.createElement("div"),p=Object(s["createVNode"])(lS,i,Object(s["isVNode"])(i.message)?{default:()=>i.message}:null);return p.appContext=null!=t?t:fS._context,p.props.onDestroy=()=>{Object(s["render"])(null,d)},Object(s["render"])(p,d),uS[n].push({vm:p}),l.appendChild(d.firstElementChild),{close:()=>{p.component.exposed.visible.value=!1}}};function hS(e,t,n){const r=uS[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:a}=r[o];if(!a)return;null==n||n(a);const i=a.el.offsetHeight,s=t.split("-")[0];r.splice(o,1);const c=r.length;if(!(c<1))for(let l=o;l<c;l++){const{el:e,component:t}=r[l].vm,n=Number.parseInt(e.style[s],10)-i-dS;t.props.offset=n}}function mS(){for(const e of Object.values(uS))e.forEach(({vm:e})=>{e.component.exposed.visible.value=!1})}eS.forEach(e=>{fS[e]=(t={})=>(("string"===typeof t||Object(s["isVNode"])(t))&&(t={message:t}),fS({...t,type:e}))}),fS.closeAll=mS,fS._context=null;const vS=Object(k["c"])(fS,"$notify");var gS=[BI,QI,XI["a"],ZI["a"],vS,um],_S=i([...TI,...gS])},c401:function(e,t,n){"use strict";var r=n("c532"),o=n("4c3d");e.exports=function(e,t,n){var a=this||o;return r.forEach(n,(function(n){e=n.call(a,e,t)})),e}},c430:function(e,t,n){"use strict";e.exports=!1},c44a:function(e,t,n){"use strict";n("9103"),n("6f89"),n("997e");var r=n("764b");e.exports=r.WeakMap},c44e:function(e,t,n){"use strict";e.exports=function(){}},c52e:function(e,t,n){e.exports=n("f8cb")},c532:function(e,t,n){"use strict";var r=n("1d2b"),o=Object.prototype.toString;function a(e){return Array.isArray(e)}function i(e){return"undefined"===typeof e}function s(e){return null!==e&&!i(e)&&null!==e.constructor&&!i(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function c(e){return"[object ArrayBuffer]"===o.call(e)}function l(e){return"[object FormData]"===o.call(e)}function u(e){var t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&c(e.buffer),t}function d(e){return"string"===typeof e}function p(e){return"number"===typeof e}function f(e){return null!==e&&"object"===typeof e}function h(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function m(e){return"[object Date]"===o.call(e)}function v(e){return"[object File]"===o.call(e)}function g(e){return"[object Blob]"===o.call(e)}function _(e){return"[object Function]"===o.call(e)}function y(e){return f(e)&&_(e.pipe)}function b(e){return"[object URLSearchParams]"===o.call(e)}function O(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function M(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function k(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),a(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)}function C(){var e={};function t(t,n){h(e[n])&&h(t)?e[n]=C(e[n],t):h(t)?e[n]=C({},t):a(t)?e[n]=t.slice():e[n]=t}for(var n=0,r=arguments.length;n<r;n++)k(arguments[n],t);return e}function w(e,t,n){return k(t,(function(t,o){e[o]=n&&"function"===typeof t?r(t,n):t})),e}function I(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}e.exports={isArray:a,isArrayBuffer:c,isBuffer:s,isFormData:l,isArrayBufferView:u,isString:d,isNumber:p,isObject:f,isPlainObject:h,isUndefined:i,isDate:m,isFile:v,isBlob:g,isFunction:_,isStream:y,isURLSearchParams:b,isStandardBrowserEnv:M,forEach:k,merge:C,extend:w,trim:O,stripBOM:I}},c5a8:function(e,t,n){"use strict";n("033d"),n("8861")},c5c4:function(e,t,n){"use strict";n("386d");var r=n("a169");e.exports=r("Array").lastIndexOf},c651:function(e,t,n){e.exports=n("5d55")},c65b:function(e,t,n){"use strict";var r=n("40d5"),o=Function.prototype.call;e.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},c6b6:function(e,t,n){"use strict";var r=n("e330"),o=r({}.toString),a=r("".slice);e.exports=function(e){return a(o(e),8,-1)}},c6cd:function(e,t,n){"use strict";var r=n("da84"),o=n("6374"),a="__core-js_shared__",i=r[a]||o(a,{});e.exports=i},c73d:function(e,t,n){"use strict";var r=n("23e7"),o=n("da84"),a=n("edd0"),i=n("83ab"),s=TypeError,c=Object.defineProperty,l=o.self!==o;try{if(i){var u=Object.getOwnPropertyDescriptor(o,"self");!l&&u&&u.get&&u.enumerable||a(o,"self",{get:function(){return o},set:function(e){if(this!==o)throw s("Illegal invocation");c(o,"self",{value:e,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else r({global:!0,simple:!0,forced:l},{self:o})}catch(d){}},c741:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0});var a=n("740b");o(n("740b"),t),o(n("fc75"),t),o(n("a0bf7"),t),o(n("bd7d"),t),o(n("aeaa"),t),o(n("4af5"),t),o(n("f512"),t),o(n("daed"),t),o(n("d756"),t),t.default=a.tinycolor},c74f:function(e,t,n){"use strict";var r=n("6725");e.exports=function(e){return r(e.length)}},c799:function(e,t,n){"use strict";var r=n("a5eb"),o=n("7106"),a=n("4e19"),i=n("ad27"),s=n("9b8d"),c=n("5b57"),l=n("f135");r({target:"Promise",stat:!0,forced:l},{race:function(e){var t=this,n=i.f(t),r=n.reject,l=s((function(){var i=a(t.resolve);c(e,(function(e){o(i,t,e).then(n.resolve,r)}))}));return l.error&&r(l.value),n.promise}})},c79f:function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return l}));var r=n("0e69"),o=n("0931");const a=(e,t)=>{if(!o["isClient"])return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],a=Object(r["c"])(e,n);return["scroll","auto","overlay"].some(e=>a.includes(e))},i=(e,t)=>{if(!o["isClient"])return;let n=e;while(n){if([window,document,document.documentElement].includes(n))return window;if(a(n,t))return n;n=n.parentNode}return n};let s;const c=e=>{var t;if(!o["isClient"])return 0;if(void 0!==s)return s;const n=document.createElement("div");n.className=e+"-scrollbar__wrap",n.style.visibility="hidden",n.style.width="100px",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const r=n.offsetWidth;n.style.overflow="scroll";const a=document.createElement("div");a.style.width="100%",n.appendChild(a);const i=a.offsetWidth;return null==(t=n.parentNode)||t.removeChild(n),s=r-i,s};function l(e,t){if(!o["isClient"])return;if(!t)return void(e.scrollTop=0);const n=[];let r=t.offsetParent;while(null!==r&&e!==r&&e.contains(r))n.push(r),r=r.offsetParent;const a=t.offsetTop+n.reduce((e,t)=>e+t.offsetTop,0),i=a+t.offsetHeight,s=e.scrollTop,c=s+e.clientHeight;a<s?e.scrollTop=a:i>c&&(e.scrollTop=i-e.clientHeight)}},c7aa:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(e){return 2===e?"שעתיים":e+" שעות"},d:"יום",dd:function(e){return 2===e?"יומיים":e+" ימים"},M:"חודש",MM:function(e){return 2===e?"חודשיים":e+" חודשים"},y:"שנה",yy:function(e){return 2===e?"שנתיים":e%10===0&&10!==e?e+" שנה":e+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(e){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(e)},meridiem:function(e,t,n){return e<5?"לפנות בוקר":e<10?"בבוקר":e<12?n?'לפנה"צ':"לפני הצהריים":e<18?n?'אחה"צ':"אחרי הצהריים":"בערב"}});return t}))},c7d2:function(e,t,n){"use strict";var r=n("5495");e.exports=function(e){var t=+e;return t!==t||0===t?0:r(t)}},c81f:function(e,t,n){"use strict";var r=n("a5eb"),o=n("ce18"),a=n("9e51"),i=n("1875"),s=n("8c12"),c=n("8c58"),l=o("".indexOf);r({target:"String",proto:!0,forced:!c("includes")},{includes:function(e){return!!~l(s(i(this)),s(a(e)),arguments.length>1?arguments[1]:void 0)}})},c8af:function(e,t,n){"use strict";var r=n("c532");e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},c8e8:function(e,t,n){"use strict";var r=n("ce18"),o=n("bc4a"),a=n("6594").getWeakData,i=n("5f7d"),s=n("6f8d"),c=n("0b1d"),l=n("dfdb"),u=n("5b57"),d=n("dee0"),p=n("0e6f"),f=n("2f5a"),h=f.set,m=f.getterFor,v=d.find,g=d.findIndex,_=r([].splice),y=0,b=function(e){return e.frozen||(e.frozen=new O)},O=function(){this.entries=[]},M=function(e,t){return v(e.entries,(function(e){return e[0]===t}))};O.prototype={get:function(e){var t=M(this,e);if(t)return t[1]},has:function(e){return!!M(this,e)},set:function(e,t){var n=M(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=g(this.entries,(function(t){return t[0]===e}));return~t&&_(this.entries,t,1),!!~t}},e.exports={getConstructor:function(e,t,n,r){var d=e((function(e,o){i(e,f),h(e,{type:t,id:y++,frozen:void 0}),c(o)||u(o,e[r],{that:e,AS_ENTRIES:n})})),f=d.prototype,v=m(t),g=function(e,t,n){var r=v(e),o=a(s(t),!0);return!0===o?b(r).set(t,n):o[r.id]=n,e};return o(f,{delete:function(e){var t=v(this);if(!l(e))return!1;var n=a(e);return!0===n?b(t)["delete"](e):n&&p(n,t.id)&&delete n[t.id]},has:function(e){var t=v(this);if(!l(e))return!1;var n=a(e);return!0===n?b(t).has(e):n&&p(n,t.id)}}),o(f,n?{get:function(e){var t=v(this);if(l(e)){var n=a(e);return!0===n?b(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return g(this,e,t)}}:{add:function(e){return g(this,e,!0)}}),d}}},c8f3:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,t,n){return e<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return t}))},c90a:function(e,t,n){e.exports=n("f257")},c978:function(e,t,n){"use strict";var r=n("9883"),o=n("fb2d"),a=n("437b"),i=n("62d0"),s=Object;e.exports=i?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return o(t)&&a(t.prototype,s(e))}},c9a1:function(e,t,n){"use strict";n.d(t,"a",(function(){return z}));var r=n("7a23"),o=n("cf2e"),a=n("c349"),i=n("d5f6"),s=n("54bb"),c=n("2711"),l=n("49c6"),u=n("9885");const d="_trap-focus-children",p=[],f=e=>{if(0===p.length)return;const t=p[p.length-1][d];if(t.length>0&&e.code===l["a"].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())}},h={beforeMount(e){e[d]=Object(u["d"])(e),p.push(e),p.length<=1&&document.addEventListener("keydown",f)},updated(e){Object(r["nextTick"])(()=>{e[d]=Object(u["d"])(e)})},unmounted(){p.shift(),0===p.length&&document.removeEventListener("keydown",f)}};var m=n("1b65"),v=n("31e7"),g=n("5a89"),_=n("edd9"),y=n("35b0"),b=n("be44"),O=n("89d4"),M=n("7190");const k=Object(r["defineComponent"])({name:"ElMessageBox",directives:{TrapFocus:h},components:{ElButton:o["a"],ElFocusTrap:m["a"],ElInput:a["a"],ElOverlay:i["a"],ElIcon:s["a"],...v["b"]},inheritAttrs:!1,props:{buttonSize:{type:String,validator:g["a"]},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{locale:n,zIndex:o,ns:a,size:i}=Object(_["b"])("message-box",Object(r["computed"])(()=>e.buttonSize)),{t:s}=n,{nextZIndex:c}=o,l=Object(r["ref"])(!1),u=Object(r["reactive"])({autofocus:!0,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:c()}),d=Object(r["computed"])(()=>{const e=u.type;return{[a.bm("icon",e)]:e&&v["c"][e]}}),p=Object(y["a"])(),f=Object(y["a"])(),h=Object(r["computed"])(()=>u.icon||v["c"][u.type]||""),m=Object(r["computed"])(()=>!!u.message),g=Object(r["ref"])(),k=Object(r["ref"])(),C=Object(r["ref"])(),w=Object(r["ref"])(),I=Object(r["ref"])(),S=Object(r["computed"])(()=>u.confirmButtonClass);Object(r["watch"])(()=>u.inputValue,async t=>{await Object(r["nextTick"])(),"prompt"===e.boxType&&null!==t&&N()},{immediate:!0}),Object(r["watch"])(()=>l.value,t=>{var n,o;t&&("prompt"!==e.boxType&&(u.autofocus?C.value=null!=(o=null==(n=I.value)?void 0:n.$el)?o:g.value:C.value=g.value),u.zIndex=c()),"prompt"===e.boxType&&(t?Object(r["nextTick"])().then(()=>{var e;w.value&&w.value.$el&&(u.autofocus?C.value=null!=(e=x())?e:g.value:C.value=g.value)}):(u.editorErrorMessage="",u.validateError=!1))});const T=Object(r["computed"])(()=>e.draggable);function E(){l.value&&(l.value=!1,Object(r["nextTick"])(()=>{u.action&&t("action",u.action)}))}Object(b["a"])(g,k,T),Object(r["onMounted"])(async()=>{await Object(r["nextTick"])(),e.closeOnHashChange&&window.addEventListener("hashchange",E)}),Object(r["onBeforeUnmount"])(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",E)});const j=()=>{e.closeOnClickModal&&A(u.distinguishCancelAndClose?"close":"cancel")},D=Object(O["a"])(j),L=e=>{if("textarea"!==u.inputType)return e.preventDefault(),A("confirm")},A=t=>{var n;("prompt"!==e.boxType||"confirm"!==t||N())&&(u.action=t,u.beforeClose?null==(n=u.beforeClose)||n.call(u,t,u,E):E())},N=()=>{if("prompt"===e.boxType){const e=u.inputPattern;if(e&&!e.test(u.inputValue||""))return u.editorErrorMessage=u.inputErrorMessage||s("el.messagebox.error"),u.validateError=!0,!1;const t=u.inputValidator;if("function"===typeof t){const e=t(u.inputValue);if(!1===e)return u.editorErrorMessage=u.inputErrorMessage||s("el.messagebox.error"),u.validateError=!0,!1;if("string"===typeof e)return u.editorErrorMessage=e,u.validateError=!0,!1}}return u.editorErrorMessage="",u.validateError=!1,!0},x=()=>{const e=w.value.$refs;return e.input||e.textarea},R=()=>{A("close")},P=()=>{e.closeOnPressEscape&&R()};return e.lockScroll&&Object(M["a"])(l),{...Object(r["toRefs"])(u),ns:a,overlayEvent:D,visible:l,hasMessage:m,typeClass:d,contentId:p,inputId:f,btnSize:i,iconComponent:h,confirmButtonClasses:S,rootRef:g,focusStartRef:C,headerRef:k,inputRef:w,confirmRef:I,doClose:E,handleClose:R,onCloseRequested:P,handleWrapperClick:j,handleInputEnter:L,handleAction:A,t:s}}}),C=["aria-label","aria-describedby"],w=["aria-label"],I=["id"];function S(e,t,n,o,a,i){const s=Object(r["resolveComponent"])("el-icon"),c=Object(r["resolveComponent"])("close"),l=Object(r["resolveComponent"])("el-input"),u=Object(r["resolveComponent"])("el-button"),d=Object(r["resolveComponent"])("el-focus-trap"),p=Object(r["resolveComponent"])("el-overlay");return Object(r["openBlock"])(),Object(r["createBlock"])(r["Transition"],{name:"fade-in-linear",onAfterLeave:t[11]||(t[11]=t=>e.$emit("vanish")),persisted:""},{default:Object(r["withCtx"])(()=>[Object(r["withDirectives"])(Object(r["createVNode"])(p,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:Object(r["withCtx"])(()=>[Object(r["createElementVNode"])("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:Object(r["normalizeClass"])(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))},[Object(r["createVNode"])(d,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:Object(r["withCtx"])(()=>[Object(r["createElementVNode"])("div",{ref:"rootRef",class:Object(r["normalizeClass"])([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:Object(r["normalizeStyle"])(e.customStyle),tabindex:"-1",onClick:t[7]||(t[7]=Object(r["withModifiers"])(()=>{},["stop"]))},[null!==e.title&&void 0!==e.title?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{key:0,ref:"headerRef",class:Object(r["normalizeClass"])(e.ns.e("header"))},[Object(r["createElementVNode"])("div",{class:Object(r["normalizeClass"])(e.ns.e("title"))},[e.iconComponent&&e.center?(Object(r["openBlock"])(),Object(r["createBlock"])(s,{key:0,class:Object(r["normalizeClass"])([e.ns.e("status"),e.typeClass])},{default:Object(r["withCtx"])(()=>[(Object(r["openBlock"])(),Object(r["createBlock"])(Object(r["resolveDynamicComponent"])(e.iconComponent)))]),_:1},8,["class"])):Object(r["createCommentVNode"])("v-if",!0),Object(r["createElementVNode"])("span",null,Object(r["toDisplayString"])(e.title),1)],2),e.showClose?(Object(r["openBlock"])(),Object(r["createElementBlock"])("button",{key:0,type:"button",class:Object(r["normalizeClass"])(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:t[0]||(t[0]=t=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:t[1]||(t[1]=Object(r["withKeys"])(Object(r["withModifiers"])(t=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[Object(r["createVNode"])(s,{class:Object(r["normalizeClass"])(e.ns.e("close"))},{default:Object(r["withCtx"])(()=>[Object(r["createVNode"])(c)]),_:1},8,["class"])],42,w)):Object(r["createCommentVNode"])("v-if",!0)],2)):Object(r["createCommentVNode"])("v-if",!0),Object(r["createElementVNode"])("div",{id:e.contentId,class:Object(r["normalizeClass"])(e.ns.e("content"))},[Object(r["createElementVNode"])("div",{class:Object(r["normalizeClass"])(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(Object(r["openBlock"])(),Object(r["createBlock"])(s,{key:0,class:Object(r["normalizeClass"])([e.ns.e("status"),e.typeClass])},{default:Object(r["withCtx"])(()=>[(Object(r["openBlock"])(),Object(r["createBlock"])(Object(r["resolveDynamicComponent"])(e.iconComponent)))]),_:1},8,["class"])):Object(r["createCommentVNode"])("v-if",!0),e.hasMessage?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{key:1,class:Object(r["normalizeClass"])(e.ns.e("message"))},[Object(r["renderSlot"])(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(Object(r["openBlock"])(),Object(r["createBlock"])(Object(r["resolveDynamicComponent"])(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(Object(r["openBlock"])(),Object(r["createBlock"])(Object(r["resolveDynamicComponent"])(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:Object(r["withCtx"])(()=>[Object(r["createTextVNode"])(Object(r["toDisplayString"])(e.dangerouslyUseHTMLString?"":e.message),1)]),_:1},8,["for"]))])],2)):Object(r["createCommentVNode"])("v-if",!0)],2),Object(r["withDirectives"])(Object(r["createElementVNode"])("div",{class:Object(r["normalizeClass"])(e.ns.e("input"))},[Object(r["createVNode"])(l,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[2]||(t[2]=t=>e.inputValue=t),type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:Object(r["normalizeClass"])({invalid:e.validateError}),onKeydown:Object(r["withKeys"])(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),Object(r["createElementVNode"])("div",{class:Object(r["normalizeClass"])(e.ns.e("errormsg")),style:Object(r["normalizeStyle"])({visibility:e.editorErrorMessage?"visible":"hidden"})},Object(r["toDisplayString"])(e.editorErrorMessage),7)],2),[[r["vShow"],e.showInput]])],10,I),Object(r["createElementVNode"])("div",{class:Object(r["normalizeClass"])(e.ns.e("btns"))},[e.showCancelButton?(Object(r["openBlock"])(),Object(r["createBlock"])(u,{key:0,loading:e.cancelButtonLoading,class:Object(r["normalizeClass"])([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:t[3]||(t[3]=t=>e.handleAction("cancel")),onKeydown:t[4]||(t[4]=Object(r["withKeys"])(Object(r["withModifiers"])(t=>e.handleAction("cancel"),["prevent"]),["enter"]))},{default:Object(r["withCtx"])(()=>[Object(r["createTextVNode"])(Object(r["toDisplayString"])(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","class","round","size"])):Object(r["createCommentVNode"])("v-if",!0),Object(r["withDirectives"])(Object(r["createVNode"])(u,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,class:Object(r["normalizeClass"])([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]=Object(r["withKeys"])(Object(r["withModifiers"])(t=>e.handleAction("confirm"),["prevent"]),["enter"]))},{default:Object(r["withCtx"])(()=>[Object(r["createTextVNode"])(Object(r["toDisplayString"])(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","class","round","disabled","size"]),[[r["vShow"],e.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,C)]),_:3},8,["z-index","overlay-class","mask"]),[[r["vShow"],e.visible]])]),_:3})}var T=Object(c["a"])(k,[["render",S],["__file","/home/runner/work/element-plus/element-plus/packages/components/message-box/src/index.vue"]]),E=n("7d20"),j=n("83ec"),D=n("8afb"),L=n("0931");const A=new Map,N=e=>{let t=document.body;return e.appendTo&&(Object(E["isString"])(e.appendTo)&&(t=document.querySelector(e.appendTo)),Object(j["b"])(e.appendTo)&&(t=e.appendTo),Object(j["b"])(t)||(Object(D["a"])("ElMessageBox","the appendTo option is not an HTMLElement. Falling back to document.body."),t=document.body)),t},x=(e,t,n=null)=>{const o=Object(r["createVNode"])(T,e,Object(E["isFunction"])(e.message)||Object(r["isVNode"])(e.message)?{default:Object(E["isFunction"])(e.message)?e.message:()=>e.message}:null);return o.appContext=n,Object(r["render"])(o,t),N(e).appendChild(t.firstElementChild),o.component},R=()=>document.createElement("div"),P=(e,t)=>{const n=R();e.onVanish=()=>{Object(r["render"])(null,n),A.delete(a)},e.onAction=t=>{const n=A.get(a);let r;r=e.showInput?{value:a.inputValue,action:t}:t,e.callback?e.callback(r,o.proxy):"cancel"===t||"close"===t?e.distinguishCancelAndClose&&"cancel"!==t?n.reject("close"):n.reject("cancel"):n.resolve(r)};const o=x(e,n,t),a=o.proxy;for(const r in e)Object(E["hasOwn"])(e,r)&&!Object(E["hasOwn"])(a.$props,r)&&(a[r]=e[r]);return a.visible=!0,a};function U(e,t=null){if(!L["isClient"])return Promise.reject();let n;return Object(E["isString"])(e)||Object(r["isVNode"])(e)?e={message:e}:n=e.callback,new Promise((r,o)=>{const a=P(e,null!=t?t:U._context);A.set(a,{options:e,callback:n,resolve:r,reject:o})})}const V=["alert","confirm","prompt"],B={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};function F(e){return(t,n,r,o)=>{let a="";return Object(E["isObject"])(n)?(r=n,a=""):a=Object(j["g"])(n)?"":n,U(Object.assign({title:a,message:t,type:"",...B[e]},r,{boxType:e}),o)}}V.forEach(e=>{U[e]=F(e)}),U.close=()=>{A.forEach((e,t)=>{t.doClose()}),A.clear()},U._context=null;const G=U;G.install=e=>{G._context=e._context,e.config.globalProperties.$msgbox=G,e.config.globalProperties.$messageBox=G,e.config.globalProperties.$alert=G.alert,e.config.globalProperties.$confirm=G.confirm,e.config.globalProperties.$prompt=G.prompt};const z=G},c9ac:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("7a23"),o=n("d095"),a=n("8afb");const i=["class","style"],s=/^on[A-Z]/,c=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,c=Object(r["computed"])(()=>((null==n?void 0:n.value)||[]).concat(i)),l=Object(r["getCurrentInstance"])();return l?Object(r["computed"])(()=>{var e;return Object(o["fromPairs"])(Object.entries(null==(e=l.proxy)?void 0:e.$attrs).filter(([e])=>!c.value.includes(e)&&!(t&&s.test(e))))}):(Object(a["a"])("use-attrs","getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"),Object(r["computed"])(()=>({})))}},ca84:function(e,t,n){"use strict";var r=n("e330"),o=n("1a2d"),a=n("fc6a"),i=n("4d64").indexOf,s=n("d012"),c=r([].push);e.exports=function(e,t){var n,r=a(e),l=0,u=[];for(n in r)!o(s,n)&&o(r,n)&&c(u,n);while(t.length>l)o(r,n=t[l++])&&(~i(u,n)||c(u,n));return u}},cafa:function(e,t,n){"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},cb2d:function(e,t,n){"use strict";var r=n("1626"),o=n("9bf2"),a=n("13d2"),i=n("6374");e.exports=function(e,t,n,s){s||(s={});var c=s.enumerable,l=void 0!==s.name?s.name:t;if(r(n)&&a(n,l,s),s.global)c?e[t]=n:i(t,n);else{try{s.unsafe?e[t]&&(c=!0):delete e[t]}catch(u){}c?e[t]=n:o.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},cbd0:function(e,t,n){"use strict";var r=n("ce18"),o=n("c7d2"),a=n("8c12"),i=n("1875"),s=r("".charAt),c=r("".charCodeAt),l=r("".slice),u=function(e){return function(t,n){var r,u,d=a(i(t)),p=o(n),f=d.length;return p<0||p>=f?e?"":void 0:(r=c(d,p),r<55296||r>56319||p+1===f||(u=c(d,p+1))<56320||u>57343?e?s(d,p):r:e?l(d,p,p+2):u-56320+(r-55296<<10)+65536)}};e.exports={codeAt:u(!1),charAt:u(!0)}},cc12:function(e,t,n){"use strict";var r=n("da84"),o=n("861d"),a=r.document,i=o(a)&&o(a.createElement);e.exports=function(e){return i?a.createElement(e):{}}},cca4:function(e,t,n){e.exports=n("2d9a")},cce9:function(e,t,n){"use strict";var r=n("3ac6"),o=n("fb2d"),a=r.WeakMap;e.exports=o(a)&&/native code/.test(String(a))},cdb4:function(e,t,n){"use strict";var r=n("d65d");e.exports=r},cdce:function(e,t,n){"use strict";var r=n("da84"),o=n("1626"),a=r.WeakMap;e.exports=o(a)&&/native code/.test(String(a))},ce18:function(e,t,n){"use strict";var r=n("a180"),o=Function.prototype,a=o.call,i=r&&o.bind.bind(a,a);e.exports=r?i:function(e){return function(){return a.apply(e,arguments)}}},cee4:function(e,t,n){"use strict";var r=n("c532"),o=n("1d2b"),a=n("0a06"),i=n("4a7b"),s=n("4c3d");function c(e){var t=new a(e),n=o(a.prototype.request,t);return r.extend(n,a.prototype,t),r.extend(n,t),n.create=function(t){return c(i(e,t))},n}var l=c(s);l.Axios=a,l.Cancel=n("7a77"),l.CancelToken=n("8df4b"),l.isCancel=n("2e67"),l.VERSION=n("5cce").version,l.all=function(e){return Promise.all(e)},l.spread=n("0df6"),l.isAxiosError=n("5f02"),e.exports=l,e.exports.default=l},cf1e:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(e,t){return e%10>=1&&e%10<=4&&(e%100<10||e%100>=20)?e%10===1?t[0]:t[1]:t[2]},translate:function(e,n,r,o){var a,i=t.words[r];return 1===r.length?"y"===r&&n?"jedna godina":o||n?i[0]:i[1]:(a=t.correctGrammaticalCase(e,i),"yy"===r&&n&&"godinu"===a?e+" godina":e+" "+a)}},n=e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){var e=["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"];return e[this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:t.translate,dd:t.translate,M:t.translate,MM:t.translate,y:t.translate,yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return n}))},cf2e:function(e,t,n){"use strict";n.d(t,"a",(function(){return w})),n.d(t,"b",(function(){return I}));var r=n("7a23"),o=n("54bb");const a=Symbol("buttonGroupContextKey");var i=n("344d"),s=n("edd9"),c=n("8cf4"),l=n("4bea");const u=(e,t)=>{Object(i["a"])({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},Object(r["computed"])(()=>"text"===e.type));const n=Object(r["inject"])(a,void 0),o=Object(s["c"])("button"),{form:u}=Object(c["a"])(),d=Object(l["b"])(Object(r["computed"])(()=>null==n?void 0:n.size)),p=Object(l["a"])(),f=Object(r["ref"])(),h=Object(r["useSlots"])(),m=Object(r["computed"])(()=>e.type||(null==n?void 0:n.type)||""),v=Object(r["computed"])(()=>{var t,n,r;return null!=(r=null!=(n=e.autoInsertSpace)?n:null==(t=o.value)?void 0:t.autoInsertSpace)&&r}),g=Object(r["computed"])(()=>"button"===e.tag?{ariaDisabled:p.value||e.loading,disabled:p.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),_=Object(r["computed"])(()=>{var e;const t=null==(e=h.default)?void 0:e.call(h);if(v.value&&1===(null==t?void 0:t.length)){const e=t[0];if((null==e?void 0:e.type)===r["Text"]){const t=e.children;return/^\p{Unified_Ideograph}{2}$/u.test(t.trim())}}return!1}),y=n=>{"reset"===e.nativeType&&(null==u||u.resetFields()),t("click",n)};return{_disabled:p,_size:d,_type:m,_ref:f,_props:g,shouldAddSpace:_,handleClick:y}};var d=n("446f"),p=n("c741"),f=n("304f");function h(e,t=20){return e.mix("#141414",t).toString()}function m(e){const t=Object(l["a"])(),n=Object(f["d"])("button");return Object(r["computed"])(()=>{let r={};const o=e.color;if(o){const a=new p["TinyColor"](o),i=e.dark?a.tint(20).toString():h(a,20);if(e.plain)r=n.cssVarBlock({"bg-color":e.dark?h(a,90):a.tint(90).toString(),"text-color":o,"border-color":e.dark?h(a,50):a.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":o,"hover-border-color":o,"active-bg-color":i,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":i}),t.value&&(r[n.cssVarBlockName("disabled-bg-color")]=e.dark?h(a,90):a.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=e.dark?h(a,50):a.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=e.dark?h(a,80):a.tint(80).toString());else{const s=e.dark?h(a,30):a.tint(30).toString(),c=a.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(r=n.cssVarBlock({"bg-color":o,"text-color":c,"border-color":o,"hover-bg-color":s,"hover-text-color":c,"hover-border-color":s,"active-bg-color":i,"active-border-color":i}),t.value){const t=e.dark?h(a,50):a.tint(50).toString();r[n.cssVarBlockName("disabled-bg-color")]=t,r[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,r[n.cssVarBlockName("disabled-border-color")]=t}}}return r})}var v=n("2711");const g=Object(r["defineComponent"])({name:"ElButton"}),_=Object(r["defineComponent"])({...g,props:d["b"],emits:d["a"],setup(e,{expose:t,emit:n}){const a=e,i=m(a),s=Object(f["d"])("button"),{_ref:c,_size:l,_type:d,_disabled:p,_props:h,shouldAddSpace:v,handleClick:g}=u(a,n);return t({ref:c,size:l,type:d,disabled:p,shouldAddSpace:v}),(e,t)=>(Object(r["openBlock"])(),Object(r["createBlock"])(Object(r["resolveDynamicComponent"])(e.tag),Object(r["mergeProps"])({ref_key:"_ref",ref:c},Object(r["unref"])(h),{class:[Object(r["unref"])(s).b(),Object(r["unref"])(s).m(Object(r["unref"])(d)),Object(r["unref"])(s).m(Object(r["unref"])(l)),Object(r["unref"])(s).is("disabled",Object(r["unref"])(p)),Object(r["unref"])(s).is("loading",e.loading),Object(r["unref"])(s).is("plain",e.plain),Object(r["unref"])(s).is("round",e.round),Object(r["unref"])(s).is("circle",e.circle),Object(r["unref"])(s).is("text",e.text),Object(r["unref"])(s).is("link",e.link),Object(r["unref"])(s).is("has-bg",e.bg)],style:Object(r["unref"])(i),onClick:Object(r["unref"])(g)}),{default:Object(r["withCtx"])(()=>[e.loading?(Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],{key:0},[e.$slots.loading?Object(r["renderSlot"])(e.$slots,"loading",{key:0}):(Object(r["openBlock"])(),Object(r["createBlock"])(Object(r["unref"])(o["a"]),{key:1,class:Object(r["normalizeClass"])(Object(r["unref"])(s).is("loading"))},{default:Object(r["withCtx"])(()=>[(Object(r["openBlock"])(),Object(r["createBlock"])(Object(r["resolveDynamicComponent"])(e.loadingIcon)))]),_:1},8,["class"]))],64)):e.icon||e.$slots.icon?(Object(r["openBlock"])(),Object(r["createBlock"])(Object(r["unref"])(o["a"]),{key:1},{default:Object(r["withCtx"])(()=>[e.icon?(Object(r["openBlock"])(),Object(r["createBlock"])(Object(r["resolveDynamicComponent"])(e.icon),{key:0})):Object(r["renderSlot"])(e.$slots,"icon",{key:1})]),_:3})):Object(r["createCommentVNode"])("v-if",!0),e.$slots.default?(Object(r["openBlock"])(),Object(r["createElementBlock"])("span",{key:2,class:Object(r["normalizeClass"])({[Object(r["unref"])(s).em("text","expand")]:Object(r["unref"])(v)})},[Object(r["renderSlot"])(e.$slots,"default")],2)):Object(r["createCommentVNode"])("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var y=Object(v["a"])(_,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const b={size:d["b"].size,type:d["b"].type},O=Object(r["defineComponent"])({name:"ElButtonGroup"}),M=Object(r["defineComponent"])({...O,props:b,setup(e){const t=e;Object(r["provide"])(a,Object(r["reactive"])({size:Object(r["toRef"])(t,"size"),type:Object(r["toRef"])(t,"type")}));const n=Object(f["d"])("button");return(e,t)=>(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{class:Object(r["normalizeClass"])(""+Object(r["unref"])(n).b("group"))},[Object(r["renderSlot"])(e.$slots,"default")],2))}});var k=Object(v["a"])(M,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]),C=n("0c24");const w=Object(C["a"])(y,{ButtonGroup:k}),I=Object(C["d"])(k)},cf51:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,n){return e>11?n?"d'o":"D'O":n?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});function n(e,t,n,r){var o={s:["viensas secunds","'iensas secunds"],ss:[e+" secunds",e+" secunds"],m:["'n míut","'iens míut"],mm:[e+" míuts",e+" míuts"],h:["'n þora","'iensa þora"],hh:[e+" þoras",e+" þoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return r||t?o[n][0]:o[n][1]}return t}))},cf75:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function n(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==e.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==e.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq",t}function r(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"Hu’":-1!==e.indexOf("jar")?t.slice(0,-3)+"wen":-1!==e.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret",t}function o(e,t,n,r){var o=a(e);switch(n){case"ss":return o+" lup";case"mm":return o+" tup";case"hh":return o+" rep";case"dd":return o+" jaj";case"MM":return o+" jar";case"yy":return o+" DIS"}}function a(e){var n=Math.floor(e%1e3/100),r=Math.floor(e%100/10),o=e%10,a="";return n>0&&(a+=t[n]+"vatlh"),r>0&&(a+=(""!==a?" ":"")+t[r]+"maH"),o>0&&(a+=(""!==a?" ":"")+t[o]),""===a?"pagh":a}var i=e.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:n,past:r,s:"puS lup",ss:o,m:"wa’ tup",mm:o,h:"wa’ rep",hh:o,d:"wa’ jaj",dd:o,M:"wa’ jar",MM:o,y:"wa’ DIS",yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return i}))},cfd7:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n("1ad4"),o=n("7c31"),a=n("eb54");function i(e){var t;const{char:n,allowSpaces:o,allowedPrefixes:a,startOfLine:i,$position:s}=e,c=Object(r["e"])(n),l=new RegExp(`\\s${c}$`),u=i?"^":"",d=o?new RegExp(`${u}${c}.*?(?=\\s${c}|$)`,"gm"):new RegExp(`${u}(?:^)?${c}[^\\s${c}]*`,"gm"),p=(null===(t=s.nodeBefore)||void 0===t?void 0:t.isText)&&s.nodeBefore.text;if(!p)return null;const f=s.pos-p.length,h=Array.from(p.matchAll(d)).pop();if(!h||void 0===h.input||void 0===h.index)return null;const m=h.input.slice(Math.max(0,h.index-1),h.index),v=new RegExp(`^[${null===a||void 0===a?void 0:a.join("")}\0]?$`).test(m);if(null!==a&&!v)return null;const g=f+h.index;let _=g+h[0].length;return o&&l.test(p.slice(_-1,_+1))&&(h[0]+=" ",_+=1),g<s.pos&&_>=s.pos?{range:{from:g,to:_},query:h[0].slice(n.length),text:h[0]}:null}const s=new o["d"]("suggestion");function c({pluginKey:e=s,editor:t,char:n="@",allowSpaces:r=!1,allowedPrefixes:c=[" "],startOfLine:l=!1,decorationTag:u="span",decorationClass:d="suggestion",command:p=(()=>null),items:f=(()=>[]),render:h=(()=>({})),allow:m=(()=>!0)}){let v;const g=null===h||void 0===h?void 0:h(),_=new o["c"]({key:e,view(){return{update:async(e,n)=>{var r,o,a,i,s,c,l;const u=null===(r=this.key)||void 0===r?void 0:r.getState(n),d=null===(o=this.key)||void 0===o?void 0:o.getState(e.state),h=u.active&&d.active&&u.range.from!==d.range.from,m=!u.active&&d.active,_=u.active&&!d.active,y=!m&&!_&&u.query!==d.query,b=m||h,O=y&&!h,M=_||h;if(!b&&!O&&!M)return;const k=M&&!b?u:d,C=e.dom.querySelector(`[data-decoration-id="${k.decorationId}"]`);v={editor:t,range:k.range,query:k.query,text:k.text,items:[],command:e=>{p({editor:t,range:k.range,props:e})},decorationNode:C,clientRect:C?()=>{var n;const{decorationId:r}=null===(n=this.key)||void 0===n?void 0:n.getState(t.state),o=e.dom.querySelector(`[data-decoration-id="${r}"]`);return(null===o||void 0===o?void 0:o.getBoundingClientRect())||null}:null},b&&(null===(a=null===g||void 0===g?void 0:g.onBeforeStart)||void 0===a||a.call(g,v)),O&&(null===(i=null===g||void 0===g?void 0:g.onBeforeUpdate)||void 0===i||i.call(g,v)),(O||b)&&(v.items=await f({editor:t,query:k.query})),M&&(null===(s=null===g||void 0===g?void 0:g.onExit)||void 0===s||s.call(g,v)),O&&(null===(c=null===g||void 0===g?void 0:g.onUpdate)||void 0===c||c.call(g,v)),b&&(null===(l=null===g||void 0===g?void 0:g.onStart)||void 0===l||l.call(g,v))},destroy:()=>{var e;v&&(null===(e=null===g||void 0===g?void 0:g.onExit)||void 0===e||e.call(g,v))}}},state:{init(){const e={active:!1,range:{from:0,to:0},query:null,text:null,composing:!1};return e},apply(e,o,a,s){const{isEditable:u}=t,{composing:d}=t.view,{selection:p}=e,{empty:f,from:h}=p,v={...o};if(v.composing=d,u&&(f||t.view.composing)){!(h<o.range.from||h>o.range.to)||d||o.composing||(v.active=!1);const e=i({char:n,allowSpaces:r,allowedPrefixes:c,startOfLine:l,$position:p.$from}),a="id_"+Math.floor(4294967295*Math.random());e&&m({editor:t,state:s,range:e.range})?(v.active=!0,v.decorationId=o.decorationId?o.decorationId:a,v.range=e.range,v.query=e.query,v.text=e.text):v.active=!1}else v.active=!1;return v.active||(v.decorationId=null,v.range={from:0,to:0},v.query=null,v.text=null),v}},props:{handleKeyDown(e,t){var n;const{active:r,range:o}=_.getState(e.state);return r&&(null===(n=null===g||void 0===g?void 0:g.onKeyDown)||void 0===n?void 0:n.call(g,{view:e,event:t,range:o}))||!1},decorations(e){const{active:t,range:n,decorationId:r}=_.getState(e);return t?a["b"].create(e.doc,[a["a"].inline(n.from,n.to,{nodeName:u,class:d,"data-decoration-id":r})]):null}}});return _}const l=new o["d"]("mention"),u=r["c"].create({name:"mention",addOptions(){return{HTMLAttributes:{},renderLabel({options:e,node:t}){var n;return`${e.suggestion.char}${null!==(n=t.attrs.label)&&void 0!==n?n:t.attrs.id}`},suggestion:{char:"@",pluginKey:l,command:({editor:e,range:t,props:n})=>{var r,o;const a=e.view.state.selection.$to.nodeAfter,i=null===(r=null===a||void 0===a?void 0:a.text)||void 0===r?void 0:r.startsWith(" ");i&&(t.to+=1),e.chain().focus().insertContentAt(t,[{type:this.name,attrs:n},{type:"text",text:" "}]).run(),null===(o=window.getSelection())||void 0===o||o.collapseToEnd()},allow:({state:e,range:t})=>{const n=e.doc.resolve(t.from),r=e.schema.nodes[this.name],o=!!n.parent.type.contentMatch.matchType(r);return o}}}},group:"inline",inline:!0,selectable:!1,atom:!0,addAttributes(){return{id:{default:null,parseHTML:e=>e.getAttribute("data-id"),renderHTML:e=>e.id?{"data-id":e.id}:{}},label:{default:null,parseHTML:e=>e.getAttribute("data-label"),renderHTML:e=>e.label?{"data-label":e.label}:{}}}},parseHTML(){return[{tag:`span[data-type="${this.name}"]`}]},renderHTML({node:e,HTMLAttributes:t}){return["span",Object(r["h"])({"data-type":this.name},this.options.HTMLAttributes,t),this.options.renderLabel({options:this.options,node:e})]},renderText({node:e}){return this.options.renderLabel({options:this.options,node:e})},addKeyboardShortcuts(){return{Backspace:()=>this.editor.commands.command(({tr:e,state:t})=>{let n=!1;const{selection:r}=t,{empty:o,anchor:a}=r;return!!o&&(t.doc.nodesBetween(a-1,a,(t,r)=>{if(t.type.name===this.name)return n=!0,e.insertText(this.options.suggestion.char||"",r,r+t.nodeSize),!1}),n)})}},addProseMirrorPlugins(){return[c({editor:this.editor,...this.options.suggestion})]}})},d012:function(e,t,n){"use strict";e.exports={}},d039:function(e,t,n){"use strict";e.exports=function(e){try{return!!e()}catch(t){return!0}}},d066:function(e,t,n){"use strict";var r=n("da84"),o=n("1626"),a=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?a(r[e]):r[e]&&r[e][t]}},d095:function(e,t,n){e.exports=n("2ef0")},d175:function(e,t,n){"use strict";var r=n("3ac6"),o=n("a0b9"),a=n("fb2d"),i=n("bf37"),s=n("9717"),c=n("eb541"),l=n("f868"),u=r.Function,d=/MSIE .\./.test(s)||i&&function(){var e=r.Bun.version.split(".");return e.length<3||0==e[0]&&(e[1]<3||3==e[1]&&0==e[2])}();e.exports=function(e,t){var n=t?2:1;return d?function(r,i){var s=l(arguments.length,1)>n,d=a(r)?r:u(r),p=s?c(arguments,n):[],f=s?function(){o(d,this,p)}:d;return t?e(f,i):e(f)}:e}},d17d:function(e,t,n){"use strict";var r=n("437b"),o=n("c5c4"),a=Array.prototype;e.exports=function(e){var t=e.lastIndexOf;return e===a||r(a,e)&&t===a.lastIndexOf?o:t}},d1ac:function(e,t){},d1e7:function(e,t,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,a=o&&!r.call({1:2},1);t.f=a?function(e){var t=o(this,e);return!!t&&t.enumerable}:r},d233:function(e,t,n){"use strict";var r=n("b313"),o=Object.prototype.hasOwnProperty,a=Array.isArray,i=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e){while(e.length>1){var t=e.pop(),n=t.obj[t.prop];if(a(n)){for(var r=[],o=0;o<n.length;++o)"undefined"!==typeof n[o]&&r.push(n[o]);t.obj[t.prop]=r}}},c=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)"undefined"!==typeof e[r]&&(n[r]=e[r]);return n},l=function e(t,n,r){if(!n)return t;if("object"!==typeof n){if(a(t))t.push(n);else{if(!t||"object"!==typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!o.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!==typeof t)return[t].concat(n);var i=t;return a(t)&&!a(n)&&(i=c(t,r)),a(t)&&a(n)?(n.forEach((function(n,a){if(o.call(t,a)){var i=t[a];i&&"object"===typeof i&&n&&"object"===typeof n?t[a]=e(i,n,r):t.push(n)}else t[a]=n})),t):Object.keys(n).reduce((function(t,a){var i=n[a];return o.call(t,a)?t[a]=e(t[a],i,r):t[a]=i,t}),i)},u=function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},d=function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(o){return r}},p=function(e,t,n,o,a){if(0===e.length)return e;var s=e;if("symbol"===typeof e?s=Symbol.prototype.toString.call(e):"string"!==typeof e&&(s=String(e)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var c="",l=0;l<s.length;++l){var u=s.charCodeAt(l);45===u||46===u||95===u||126===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||a===r.RFC1738&&(40===u||41===u)?c+=s.charAt(l):u<128?c+=i[u]:u<2048?c+=i[192|u>>6]+i[128|63&u]:u<55296||u>=57344?c+=i[224|u>>12]+i[128|u>>6&63]+i[128|63&u]:(l+=1,u=65536+((1023&u)<<10|1023&s.charCodeAt(l)),c+=i[240|u>>18]+i[128|u>>12&63]+i[128|u>>6&63]+i[128|63&u])}return c},f=function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var o=t[r],a=o.obj[o.prop],i=Object.keys(a),c=0;c<i.length;++c){var l=i[c],u=a[l];"object"===typeof u&&null!==u&&-1===n.indexOf(u)&&(t.push({obj:a,prop:l}),n.push(u))}return s(t),e},h=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},m=function(e){return!(!e||"object"!==typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},v=function(e,t){return[].concat(e,t)},g=function(e,t){if(a(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)};e.exports={arrayToObject:c,assign:u,combine:v,compact:f,decode:d,encode:p,isBuffer:m,isRegExp:h,maybeMap:g,merge:l}},d254:function(e,t,n){e.exports=n("27d1")},d26a:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},n={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"},r=e.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12".split("_"),monthsShortRegex:/^(ཟླ་\d{1,2})/,monthsParseExact:!0,weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",ss:"%d སྐར་ཆ།",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(e){return e.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(e,t){return 12===e&&(e=0),"མཚན་མོ"===t&&e>=4||"ཉིན་གུང"===t&&e<5||"དགོང་དག"===t?e+12:e},meridiem:function(e,t,n){return e<4?"མཚན་མོ":e<10?"ཞོགས་ཀས":e<17?"ཉིན་གུང":e<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}});return r}))},d2bb:function(e,t,n){"use strict";var r=n("7282"),o=n("825a"),a=n("3bbe");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=r(Object.prototype,"__proto__","set"),e(n,[]),t=n instanceof Array}catch(i){}return function(n,r){return o(n),a(r),t?e(n,r):n.__proto__=r,n}}():void 0)},d2d4:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("pt-br",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"do_2ª_3ª_4ª_5ª_6ª_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",invalidDate:"Data inválida"});return t}))},d383:function(e,t,n){"use strict";var r=n("9883"),o=n("2296"),a=n("0363"),i=n("c1b2"),s=a("species");e.exports=function(e){var t=r(e);i&&t&&!t[s]&&o(t,s,{configurable:!0,get:function(){return this}})}},d429:function(e,t,n){"use strict";var r=n("07fa"),o=n("5926"),a=RangeError;e.exports=function(e,t,n,i){var s=r(e),c=o(n),l=c<0?s+c:c;if(l>=s||l<0)throw a("Incorrect index");for(var u=new t(s),d=0;d<s;d++)u[d]=d===l?i:e[d];return u}},d44e:function(e,t,n){"use strict";var r=n("9bf2").f,o=n("1a2d"),a=n("b622"),i=a("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!o(e,i)&&r(e,i,{configurable:!0,value:t})}},d52b:function(e,t,n){"use strict";var r=n("da73");n("5145"),e.exports=r},d5eb:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r}));const r=["","default","small","large"],o={large:40,default:32,small:24}},d5f6:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n("7a23"),o=n("0898"),a=n("304f"),i=n("89d4"),s=n("9215");const c=Object(o["b"])({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:Object(o["c"])([String,Array,Object])},zIndex:{type:Object(o["c"])([String,Number])}}),l={click:e=>e instanceof MouseEvent},u="overlay";var d=Object(r["defineComponent"])({name:"ElOverlay",props:c,emits:l,setup(e,{slots:t,emit:n}){const o=Object(a["d"])(u),c=e=>{n("click",e)},{onClick:l,onMousedown:d,onMouseup:p}=Object(i["a"])(e.customMaskEvent?void 0:c);return()=>e.mask?Object(r["createVNode"])("div",{class:[o.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:l,onMousedown:d,onMouseup:p},[Object(r["renderSlot"])(t,"default")],s["a"].STYLE|s["a"].CLASS|s["a"].PROPS,["onClick","onMouseup","onMousedown"]):Object(r["h"])("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[Object(r["renderSlot"])(t,"default")])}});const p=d},d63b:function(e,t,n){"use strict";var r=n("0363"),o=r("toStringTag"),a={};a[o]="z",e.exports="[object z]"===String(a)},d645:function(e,t,n){"use strict";var r=n("8c12");e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},d659:function(e,t,n){"use strict";var r=n("7042"),o=n("7685");(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.32.0",mode:r?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.32.0/LICENSE",source:"https://github.com/zloirock/core-js"})},d65d:function(e,t,n){"use strict";n("6b51"),n("0293"),n("5ce5"),n("fb5e");var r=n("764b");e.exports=r.URL},d69a:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}});return t}))},d6b6:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",ss:"%d վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(e){return/^(ցերեկվա|երեկոյան)$/.test(e)},meridiem:function(e){return e<4?"գիշերվա":e<12?"առավոտվա":e<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(e,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-ին":e+"-րդ";default:return e}},week:{dow:1,doy:7}});return t}))},d6d3:function(e,t,n){"use strict";var r=n("437b"),o=n("0c33"),a=Array.prototype;e.exports=function(e){var t=e.some;return e===a||r(a,e)&&t===a.some?o:t}},d716:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}});return t}))},d756:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.numberInputToObject=t.parseIntFromHex=t.convertHexToDecimal=t.convertDecimalToHex=t.rgbaToArgbHex=t.rgbaToHex=t.rgbToHex=t.hsvToRgb=t.rgbToHsv=t.hslToRgb=t.rgbToHsl=t.rgbToRgb=void 0;var r=n("1127");function o(e,t,n){return{r:255*(0,r.bound01)(e,255),g:255*(0,r.bound01)(t,255),b:255*(0,r.bound01)(n,255)}}function a(e,t,n){e=(0,r.bound01)(e,255),t=(0,r.bound01)(t,255),n=(0,r.bound01)(n,255);var o=Math.max(e,t,n),a=Math.min(e,t,n),i=0,s=0,c=(o+a)/2;if(o===a)s=0,i=0;else{var l=o-a;switch(s=c>.5?l/(2-o-a):l/(o+a),o){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4;break;default:break}i/=6}return{h:i,s:s,l:c}}function i(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 s(e,t,n){var o,a,s;if(e=(0,r.bound01)(e,360),t=(0,r.bound01)(t,100),n=(0,r.bound01)(n,100),0===t)a=n,s=n,o=n;else{var c=n<.5?n*(1+t):n+t-n*t,l=2*n-c;o=i(l,c,e+1/3),a=i(l,c,e),s=i(l,c,e-1/3)}return{r:255*o,g:255*a,b:255*s}}function c(e,t,n){e=(0,r.bound01)(e,255),t=(0,r.bound01)(t,255),n=(0,r.bound01)(n,255);var o=Math.max(e,t,n),a=Math.min(e,t,n),i=0,s=o,c=o-a,l=0===o?0:c/o;if(o===a)i=0;else{switch(o){case e:i=(t-n)/c+(t<n?6:0);break;case t:i=(n-e)/c+2;break;case n:i=(e-t)/c+4;break;default:break}i/=6}return{h:i,s:l,v:s}}function l(e,t,n){e=6*(0,r.bound01)(e,360),t=(0,r.bound01)(t,100),n=(0,r.bound01)(n,100);var o=Math.floor(e),a=e-o,i=n*(1-t),s=n*(1-a*t),c=n*(1-(1-a)*t),l=o%6,u=[n,s,i,i,c,n][l],d=[c,n,n,s,i,i][l],p=[i,i,c,n,n,s][l];return{r:255*u,g:255*d,b:255*p}}function u(e,t,n,o){var a=[(0,r.pad2)(Math.round(e).toString(16)),(0,r.pad2)(Math.round(t).toString(16)),(0,r.pad2)(Math.round(n).toString(16))];return o&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function d(e,t,n,o,a){var i=[(0,r.pad2)(Math.round(e).toString(16)),(0,r.pad2)(Math.round(t).toString(16)),(0,r.pad2)(Math.round(n).toString(16)),(0,r.pad2)(f(o))];return a&&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 p(e,t,n,o){var a=[(0,r.pad2)(f(o)),(0,r.pad2)(Math.round(e).toString(16)),(0,r.pad2)(Math.round(t).toString(16)),(0,r.pad2)(Math.round(n).toString(16))];return a.join("")}function f(e){return Math.round(255*parseFloat(e)).toString(16)}function h(e){return m(e)/255}function m(e){return parseInt(e,16)}function v(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}t.rgbToRgb=o,t.rgbToHsl=a,t.hslToRgb=s,t.rgbToHsv=c,t.hsvToRgb=l,t.rgbToHex=u,t.rgbaToHex=d,t.rgbaToArgbHex=p,t.convertDecimalToHex=f,t.convertHexToDecimal=h,t.parseIntFromHex=m,t.numberInputToObject=v},d758:function(e,t,n){!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)}}}))},d877:function(e,t,n){"use strict";n("594a");var r=n("a169");e.exports=r("Array").findIndex},d8e8:function(e,t,n){"use strict";n.d(t,"a",(function(){return V})),n.d(t,"b",(function(){return B}));var r=n("7a23"),o=n("5112"),a=n("0898"),i=n("d5eb"),s=n("7d20"),c=n("83ec");const l=Object(a["b"])({size:{type:String,values:i["b"]},disabled:Boolean}),u=Object(a["b"])({...l,model:Object,rules:{type:Object(a["c"])(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:[Object,Boolean]}}),d={validate:(e,t,n)=>(Object(s["isArray"])(e)||Object(s["isString"])(e))&&Object(c["a"])(t)&&Object(s["isString"])(n)};var p=n("8afb"),f=n("d095");const h="ElForm";function m(){const e=Object(r["ref"])([]),t=Object(r["computed"])(()=>{if(!e.value.length)return"0";const t=Math.max(...e.value);return t?t+"px":""});function n(n){const r=e.value.indexOf(n);return-1===r&&"0"===t.value&&Object(p["a"])(h,"unexpected width "+n),r}function o(t,r){if(t&&r){const o=n(r);e.value.splice(o,1,t)}else t&&e.value.push(t)}function a(t){const r=n(t);r>-1&&e.value.splice(r,1)}return{autoLabelWidth:t,registerLabelWidth:o,deregisterLabelWidth:a}}const v=(e,t)=>{const n=Object(f["castArray"])(t);return n.length>0?e.filter(e=>e.prop&&n.includes(e.prop)):e};var g=n("2711"),_=n("4bea"),y=n("304f");const b="ElForm",O=Object(r["defineComponent"])({name:b}),M=Object(r["defineComponent"])({...O,props:u,emits:d,setup(e,{expose:t,emit:n}){const a=e,i=[],c=Object(_["b"])(),l=Object(y["d"])("form"),u=Object(r["computed"])(()=>{const{labelPosition:e,inline:t}=a;return[l.b(),l.m(c.value||"default"),{[l.m("label-"+e)]:e,[l.m("inline")]:t}]}),d=e=>{i.push(e)},f=e=>{e.prop&&i.splice(i.indexOf(e),1)},h=(e=[])=>{a.model?v(i,e).forEach(e=>e.resetField()):Object(p["a"])(b,"model is required for resetFields to work.")},g=(e=[])=>{v(i,e).forEach(e=>e.clearValidate())},O=Object(r["computed"])(()=>{const e=!!a.model;return e||Object(p["a"])(b,"model is required for validate to work."),e}),M=e=>{if(0===i.length)return[];const t=v(i,e);return t.length?t:(Object(p["a"])(b,"please pass correct props!"),[])},k=async e=>w(void 0,e),C=async(e=[])=>{if(!O.value)return!1;const t=M(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)},w=async(e=[],t)=>{const n=!Object(s["isFunction"])(t);try{const n=await C(e);return!0===n&&(null==t||t(n)),n}catch(r){if(r instanceof Error)throw r;const e=r;return a.scrollToError&&I(Object.keys(e)[0]),null==t||t(!1,e),n&&Promise.reject(e)}},I=e=>{var t;const n=v(i,e)[0];n&&(null==(t=n.$el)||t.scrollIntoView(a.scrollIntoViewOptions))};return Object(r["watch"])(()=>a.rules,()=>{a.validateOnRuleChange&&k().catch(e=>Object(p["a"])(e))},{deep:!0}),Object(r["provide"])(o["a"],Object(r["reactive"])({...Object(r["toRefs"])(a),emit:n,resetFields:h,clearValidate:g,validateField:w,addField:d,removeField:f,...m()})),t({validate:k,validateField:w,resetFields:h,clearValidate:g,scrollToField:I}),(e,t)=>(Object(r["openBlock"])(),Object(r["createElementBlock"])("form",{class:Object(r["normalizeClass"])(Object(r["unref"])(u))},[Object(r["renderSlot"])(e.$slots,"default")],2))}});var k=Object(g["a"])(M,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]),C=n("0f3d"),w=n.n(C),I=n("0931");const S=["","error","validating","success"],T=Object(a["b"])({label:String,labelWidth:{type:[String,Number],default:""},prop:{type:Object(a["c"])([String,Array])},required:{type:Boolean,default:void 0},rules:{type:Object(a["c"])([Object,Array])},error:String,validateStatus:{type:String,values:S},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:i["b"]}}),E="ElLabelWrap";var j=Object(r["defineComponent"])({name:E,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const n=Object(r["inject"])(o["a"],void 0),a=Object(r["inject"])(o["b"]);a||Object(p["b"])(E,"usage: <el-form-item><label-wrap /></el-form-item>");const i=Object(y["d"])("form"),s=Object(r["ref"])(),c=Object(r["ref"])(0),l=()=>{var e;if(null==(e=s.value)?void 0:e.firstElementChild){const e=window.getComputedStyle(s.value.firstElementChild).width;return Math.ceil(Number.parseFloat(e))}return 0},u=(o="update")=>{Object(r["nextTick"])(()=>{t.default&&e.isAutoWidth&&("update"===o?c.value=l():"remove"===o&&(null==n||n.deregisterLabelWidth(c.value)))})},d=()=>u("update");return Object(r["onMounted"])(()=>{d()}),Object(r["onBeforeUnmount"])(()=>{u("remove")}),Object(r["onUpdated"])(()=>d()),Object(r["watch"])(c,(t,r)=>{e.updateAll&&(null==n||n.registerLabelWidth(t,r))}),Object(I["useResizeObserver"])(Object(r["computed"])(()=>{var e,t;return null!=(t=null==(e=s.value)?void 0:e.firstElementChild)?t:null}),d),()=>{var o,l;if(!t)return null;const{isAutoWidth:u}=e;if(u){const e=null==n?void 0:n.autoLabelWidth,l=null==a?void 0:a.hasLabel,u={};if(l&&e&&"auto"!==e){const t=Math.max(0,Number.parseInt(e,10)-c.value),r="left"===n.labelPosition?"marginRight":"marginLeft";t&&(u[r]=t+"px")}return Object(r["createVNode"])("div",{ref:s,class:[i.be("item","label-wrap")],style:u},[null==(o=t.default)?void 0:o.call(t)])}return Object(r["createVNode"])(r["Fragment"],{ref:s},[null==(l=t.default)?void 0:l.call(t)])}}}),D=n("35b0"),L=n("0e69"),A=n("bfce");const N=["role","aria-labelledby"],x=Object(r["defineComponent"])({name:"ElFormItem"}),R=Object(r["defineComponent"])({...x,props:T,setup(e,{expose:t}){const n=e,a=Object(r["useSlots"])(),i=Object(r["inject"])(o["a"],void 0),l=Object(r["inject"])(o["b"],void 0),u=Object(_["b"])(void 0,{formItem:!1}),d=Object(y["d"])("form-item"),p=Object(D["a"])().value,h=Object(r["ref"])([]),m=Object(r["ref"])(""),v=Object(I["refDebounced"])(m,100),g=Object(r["ref"])(""),b=Object(r["ref"])();let O=void 0,M=!1;const k=Object(r["computed"])(()=>{if("top"===(null==i?void 0:i.labelPosition))return{};const e=Object(L["b"])(n.labelWidth||(null==i?void 0:i.labelWidth)||"");return e?{width:e}:{}}),C=Object(r["computed"])(()=>{if("top"===(null==i?void 0:i.labelPosition)||(null==i?void 0:i.inline))return{};if(!n.label&&!n.labelWidth&&V)return{};const e=Object(L["b"])(n.labelWidth||(null==i?void 0:i.labelWidth)||"");return n.label||a.label?{}:{marginLeft:e}}),S=Object(r["computed"])(()=>[d.b(),d.m(u.value),d.is("error","error"===m.value),d.is("validating","validating"===m.value),d.is("success","success"===m.value),d.is("required",H.value||n.required),d.is("no-asterisk",null==i?void 0:i.hideRequiredAsterisk),"right"===(null==i?void 0:i.requireAsteriskPosition)?"asterisk-right":"asterisk-left",{[d.m("feedback")]:null==i?void 0:i.statusIcon}]),T=Object(r["computed"])(()=>Object(c["a"])(n.inlineMessage)?n.inlineMessage:(null==i?void 0:i.inlineMessage)||!1),E=Object(r["computed"])(()=>[d.e("error"),{[d.em("error","inline")]:T.value}]),x=Object(r["computed"])(()=>n.prop?Object(s["isString"])(n.prop)?n.prop:n.prop.join("."):""),R=Object(r["computed"])(()=>!(!n.label&&!a.label)),P=Object(r["computed"])(()=>n.for||1===h.value.length?h.value[0]:void 0),U=Object(r["computed"])(()=>!P.value&&R.value),V=!!l,B=Object(r["computed"])(()=>{const e=null==i?void 0:i.model;if(e&&n.prop)return Object(A["b"])(e,n.prop).value}),F=Object(r["computed"])(()=>{const{required:e}=n,t=[];n.rules&&t.push(...Object(f["castArray"])(n.rules));const r=null==i?void 0:i.rules;if(r&&n.prop){const e=Object(A["b"])(r,n.prop).value;e&&t.push(...Object(f["castArray"])(e))}if(void 0!==e){const n=t.map((e,t)=>[e,t]).filter(([e])=>Object.keys(e).includes("required"));if(n.length>0)for(const[r,o]of n)r.required!==e&&(t[o]={...r,required:e});else t.push({required:e})}return t}),G=Object(r["computed"])(()=>F.value.length>0),z=e=>{const t=F.value;return t.filter(t=>!t.trigger||!e||(Array.isArray(t.trigger)?t.trigger.includes(e):t.trigger===e)).map(({trigger:e,...t})=>t)},H=Object(r["computed"])(()=>F.value.some(e=>e.required)),Y=Object(r["computed"])(()=>{var e;return"error"===v.value&&n.showMessage&&(null==(e=null==i?void 0:i.showMessage)||e)}),q=Object(r["computed"])(()=>`${n.label||""}${(null==i?void 0:i.labelSuffix)||""}`),W=e=>{m.value=e},K=e=>{var t,r;const{errors:o,fields:a}=e;o&&a||console.error(e),W("error"),g.value=o?null!=(r=null==(t=null==o?void 0:o[0])?void 0:t.message)?r:n.prop+" is required":"",null==i||i.emit("validate",n.prop,!1,g.value)},$=()=>{W("success"),null==i||i.emit("validate",n.prop,!0,"")},J=async e=>{const t=x.value,n=new w.a({[t]:e});return n.validate({[t]:B.value},{firstFields:!0}).then(()=>($(),!0)).catch(e=>(K(e),Promise.reject(e)))},Q=async(e,t)=>{if(M||!n.prop)return!1;const r=Object(s["isFunction"])(t);if(!G.value)return null==t||t(!1),!1;const o=z(e);return 0===o.length?(null==t||t(!0),!0):(W("validating"),J(o).then(()=>(null==t||t(!0),!0)).catch(e=>{const{fields:n}=e;return null==t||t(!1,n),!r&&Promise.reject(n)}))},X=()=>{W(""),g.value="",M=!1},Z=async()=>{const e=null==i?void 0:i.model;if(!e||!n.prop)return;const t=Object(A["b"])(e,n.prop);M=!0,t.value=Object(f["clone"])(O),await Object(r["nextTick"])(),X(),M=!1},ee=e=>{h.value.includes(e)||h.value.push(e)},te=e=>{h.value=h.value.filter(t=>t!==e)};Object(r["watch"])(()=>n.error,e=>{g.value=e||"",W(e?"error":"")},{immediate:!0}),Object(r["watch"])(()=>n.validateStatus,e=>W(e||""));const ne=Object(r["reactive"])({...Object(r["toRefs"])(n),$el:b,size:u,validateState:m,labelId:p,inputIds:h,isGroup:U,hasLabel:R,addInputId:ee,removeInputId:te,resetField:Z,clearValidate:X,validate:Q});return Object(r["provide"])(o["b"],ne),Object(r["onMounted"])(()=>{n.prop&&(null==i||i.addField(ne),O=Object(f["clone"])(B.value))}),Object(r["onBeforeUnmount"])(()=>{null==i||i.removeField(ne)}),t({size:u,validateMessage:g,validateState:m,validate:Q,clearValidate:X,resetField:Z}),(e,t)=>{var n;return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{ref_key:"formItemRef",ref:b,class:Object(r["normalizeClass"])(Object(r["unref"])(S)),role:Object(r["unref"])(U)?"group":void 0,"aria-labelledby":Object(r["unref"])(U)?Object(r["unref"])(p):void 0},[Object(r["createVNode"])(Object(r["unref"])(j),{"is-auto-width":"auto"===Object(r["unref"])(k).width,"update-all":"auto"===(null==(n=Object(r["unref"])(i))?void 0:n.labelWidth)},{default:Object(r["withCtx"])(()=>[Object(r["unref"])(R)?(Object(r["openBlock"])(),Object(r["createBlock"])(Object(r["resolveDynamicComponent"])(Object(r["unref"])(P)?"label":"div"),{key:0,id:Object(r["unref"])(p),for:Object(r["unref"])(P),class:Object(r["normalizeClass"])(Object(r["unref"])(d).e("label")),style:Object(r["normalizeStyle"])(Object(r["unref"])(k))},{default:Object(r["withCtx"])(()=>[Object(r["renderSlot"])(e.$slots,"label",{label:Object(r["unref"])(q)},()=>[Object(r["createTextVNode"])(Object(r["toDisplayString"])(Object(r["unref"])(q)),1)])]),_:3},8,["id","for","class","style"])):Object(r["createCommentVNode"])("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),Object(r["createElementVNode"])("div",{class:Object(r["normalizeClass"])(Object(r["unref"])(d).e("content")),style:Object(r["normalizeStyle"])(Object(r["unref"])(C))},[Object(r["renderSlot"])(e.$slots,"default"),Object(r["createVNode"])(r["TransitionGroup"],{name:Object(r["unref"])(d).namespace.value+"-zoom-in-top"},{default:Object(r["withCtx"])(()=>[Object(r["unref"])(Y)?Object(r["renderSlot"])(e.$slots,"error",{key:0,error:g.value},()=>[Object(r["createElementVNode"])("div",{class:Object(r["normalizeClass"])(Object(r["unref"])(E))},Object(r["toDisplayString"])(g.value),3)]):Object(r["createCommentVNode"])("v-if",!0)]),_:3},8,["name"])],6)],10,N)}}});var P=Object(g["a"])(R,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]),U=n("0c24");const V=Object(U["a"])(k,{FormItem:P}),B=Object(U["d"])(P)},d925:function(e,t,n){"use strict";var r=n("a5eb"),o=n("c1b2"),a=n("4896");r({target:"Object",stat:!0,sham:!o},{create:a})},d9255:function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},d9b5:function(e,t,n){"use strict";var r=n("d066"),o=n("1626"),a=n("3a9b"),i=n("fdbf"),s=Object;e.exports=i?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return o(t)&&a(t.prototype,s(e))}},d9e2:function(e,t,n){"use strict";var r=n("23e7"),o=n("da84"),a=n("2ba4"),i=n("e5cb"),s="WebAssembly",c=o[s],l=7!==Error("e",{cause:7}).cause,u=function(e,t){var n={};n[e]=i(e,t,l),r({global:!0,constructor:!0,arity:1,forced:l},n)},d=function(e,t){if(c&&c[e]){var n={};n[e]=i(s+"."+e,t,l),r({target:s,stat:!0,constructor:!0,arity:1,forced:l},n)}};u("Error",(function(e){return function(t){return a(e,this,arguments)}})),u("EvalError",(function(e){return function(t){return a(e,this,arguments)}})),u("RangeError",(function(e){return function(t){return a(e,this,arguments)}})),u("ReferenceError",(function(e){return function(t){return a(e,this,arguments)}})),u("SyntaxError",(function(e){return function(t){return a(e,this,arguments)}})),u("TypeError",(function(e){return function(t){return a(e,this,arguments)}})),u("URIError",(function(e){return function(t){return a(e,this,arguments)}})),d("CompileError",(function(e){return function(t){return a(e,this,arguments)}})),d("LinkError",(function(e){return function(t){return a(e,this,arguments)}})),d("RuntimeError",(function(e){return function(t){return a(e,this,arguments)}}))},d9f3:function(e,t,n){"use strict";var r=n("7106"),o=n("4e19"),a=n("6f8d"),i=n("1301"),s=n("0b7b"),c=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(o(n))return a(r(n,e));throw c(i(e)+" is not iterable")}},d9f8:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}}});return t}))},da43:function(e,t,n){"use strict";n("c81f");var r=n("a169");e.exports=r("String").includes},da73:function(e,t,n){"use strict";n("9103"),n("3e47");var r=n("0b7b");e.exports=r},da84:function(e,t,n){"use strict";(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||this||Function("return this")()}).call(this,n("c8ba"))},dad0:function(e,t,n){"use strict";var r=n("0e6f"),o=n("14df"),a=n("44ba"),i=n("4180");e.exports=function(e,t,n){for(var s=o(t),c=i.f,l=a.f,u=0;u<s.length;u++){var d=s[u];r(e,d)||n&&r(n,d)||c(e,d,l(t,d))}}},daed:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},db04:function(e,t,n){"use strict";var r=n("a5eb"),o=n("13cf"),a=n("44ba").f,i=n("6725"),s=n("8c12"),c=n("9e51"),l=n("1875"),u=n("8c58"),d=n("7042"),p=o("".startsWith),f=o("".slice),h=Math.min,m=u("startsWith"),v=!d&&!m&&!!function(){var e=a(String.prototype,"startsWith");return e&&!e.writable}();r({target:"String",proto:!0,forced:!v&&!m},{startsWith:function(e){var t=s(l(this));c(e);var n=i(h(arguments.length>1?arguments[1]:void 0,t.length)),r=s(e);return p?p(t,r,n):f(t,n,n+r.length)===r}})},db16:function(e,t,n){"use strict";var r,o=n("42e6"),a=n("3ac6"),i=n("ce18"),s=n("bc4a"),c=n("6594"),l=n("0cae"),u=n("c8e8"),d=n("dfdb"),p=n("2f5a").enforce,f=n("06fa"),h=n("cce9"),m=Object,v=Array.isArray,g=m.isExtensible,_=m.isFrozen,y=m.isSealed,b=m.freeze,O=m.seal,M={},k={},C=!a.ActiveXObject&&"ActiveXObject"in a,w=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},I=l("WeakMap",w,u),S=I.prototype,T=i(S.set),E=function(){return o&&f((function(){var e=b([]);return T(new I,e,1),!_(e)}))};if(h)if(C){r=u.getConstructor(w,"WeakMap",!0),c.enable();var j=i(S["delete"]),D=i(S.has),L=i(S.get);s(S,{delete:function(e){if(d(e)&&!g(e)){var t=p(this);return t.frozen||(t.frozen=new r),j(this,e)||t.frozen["delete"](e)}return j(this,e)},has:function(e){if(d(e)&&!g(e)){var t=p(this);return t.frozen||(t.frozen=new r),D(this,e)||t.frozen.has(e)}return D(this,e)},get:function(e){if(d(e)&&!g(e)){var t=p(this);return t.frozen||(t.frozen=new r),D(this,e)?L(this,e):t.frozen.get(e)}return L(this,e)},set:function(e,t){if(d(e)&&!g(e)){var n=p(this);n.frozen||(n.frozen=new r),D(this,e)?T(this,e,t):n.frozen.set(e,t)}else T(this,e,t);return this}})}else E()&&s(S,{set:function(e,t){var n;return v(e)&&(_(e)?n=M:y(e)&&(n=k)),T(this,e,t),n==M&&b(e),n==k&&O(e),this}})},db29:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],o=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,a=e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}});return a}))},dc15:function(e,t,n){"use strict";var r=n("a5eb"),o=n("42e6"),a=n("06fa"),i=n("dfdb"),s=n("6594").onFreeze,c=Object.freeze,l=a((function(){c(1)}));r({target:"Object",stat:!0,forced:l,sham:!o},{freeze:function(e){return c&&i(e)?c(s(e)):e}})},dc4a:function(e,t,n){"use strict";var r=n("59ed"),o=n("7234");e.exports=function(e,t){var n=e[t];return o(n)?void 0:r(n)}},dc4d:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},r=[/^जन/i,/^फ़र|फर/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सितं|सित/i,/^अक्टू/i,/^नव|नवं/i,/^दिसं|दिस/i],o=[/^जन/i,/^फ़र/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सित/i,/^अक्टू/i,/^नव/i,/^दिस/i],a=e.defineLocale("hi",{months:{format:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),standalone:"जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर".split("_")},monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},monthsParse:r,longMonthsParse:r,shortMonthsParse:o,monthsRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsShortRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsStrictRegex:/^(जनवरी?|फ़रवरी|फरवरी?|मार्च?|अप्रैल?|मई?|जून?|जुलाई?|अगस्त?|सितम्बर|सितंबर|सित?\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर?|दिसम्बर|दिसंबर?)/i,monthsShortStrictRegex:/^(जन\.?|फ़र\.?|मार्च?|अप्रै\.?|मई?|जून?|जुल\.?|अग\.?|सित\.?|अक्टू\.?|नव\.?|दिस\.?)/i,calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात"===t?e<4?e:e+12:"सुबह"===t?e:"दोपहर"===t?e>=10?e:e+12:"शाम"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"रात":e<10?"सुबह":e<17?"दोपहर":e<20?"शाम":"रात"},week:{dow:0,doy:6}});return a}))},dce2:function(e,t,n){"use strict";n("0913");var r=n("764b");e.exports=r.Reflect.ownKeys},ddb5:function(e,t,n){"use strict";e.exports=function(e,t){return{value:e,done:t}}},de21:function(e,t,n){(function(t){!function(t,n){e.exports=n()}(0,(function(){function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(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 r(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function o(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,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(l){s=!0,o=l}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}}(e,t)||i(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 a(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||i(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 i(e,t){if(e){if("string"==typeof e)return s(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)?s(e,t):void 0}}function s(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 c(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=i(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 a,s=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){c=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw a}}}}var l=function(){for(var e=" \t\r\n~!@#$%^&*()_+-=【】、{}|;':\",。、《》?αβγδεζηθικλμνξοπρστυφχψωΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ。,、;:?!…—·ˉ¨‘’“”々~‖∶"'`|〃〔〕〈〉《》「」『』.〖〗【】()[]{}ⅠⅡⅢⅣⅤⅥⅦⅧⅨⅩⅪⅫ⒈⒉⒊⒋⒌⒍⒎⒏⒐⒑⒒⒓⒔⒕⒖⒗⒘⒙⒚⒛㈠㈡㈢㈣㈤㈥㈦㈧㈨㈩①②③④⑤⑥⑦⑧⑨⑩⑴⑵⑶⑷⑸⑹⑺⑻⑼⑽⑾⑿⒀⒁⒂⒃⒄⒅⒆⒇≈≡≠=≤≥<>≮≯∷±+-×÷/∫∮∝∞∧∨∑∏∪∩∈∵∴⊥∥∠⌒⊙≌∽√§№☆★○●◎◇◆□℃‰€■△▲※→←↑↓〓¤°#&@\︿_ ̄―♂♀┌┍┎┐┑┒┓─┄┈├┝┞┟┠┡┢┣│┆┊┬┭┮┯┰┱┲┳┼┽┾┿╀╁╂╃└┕┖┗┘┙┚┛━┅┉┤┥┦┧┨┩┪┫┃┇┋┴┵┶┷┸┹┺┻╋╊╉╈╇╆╅╄",t=new Map,n=0,r=e.length;n<r;n++)t.set(e.charCodeAt(0),!0);return t}(),u=function(){function t(n){e(this,t);var r,o=n.input,i=n.isArray,s=n.isMap;this._trieTree={},i(o)?r=o:s(o)&&(r=a(o.keys()),this._map=o);for(var c=0,l=r.length;c<l;c++)if(r[c]){for(var u=this._trieTree,d=r[c],p=0,f=d.length;p<f;p++)u[d[p]]||(u[d[p]]={}),u=u[d[p]];u.isEnd=!0}}return r(t,[{key:"filter",value:function(e){var t=e.text,n=e.replacingEnabled;if(0===Object.keys(this._trieTree).length)return{isMatched:!1,modifiedText:t};for(var r=this._trieTree,o=t,a=!1,i=t.length,s=0;s<i;s++)if(!0!==l.get(t.charCodeAt(s))){for(var c=0,u="",d=!1,p=s;p<i;p++){if(!r[t[p]]){r=this._trieTree;break}if(u+=t[p],r[t[p]].isEnd){d=!0,c=p-s,r=this._trieTree;break}r=r[t[p]]}if(c>1&&(s+=c),d){if(a=!0,!n)break;var f=this._map.get(u)||"*";o=o.replace(new RegExp(u,"g"),f)}}return{isMatched:a,modifiedText:o}}},{key:"reset",value:function(){this._trieTree={},this._map=null}}]),t}(),d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof t?t:"undefined"!=typeof self?self:{},p={},f=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e,t){var n,r,o,a,i,s;e.exports=(s=s||function(e,t){var n;if("undefined"!=typeof window&&window.crypto&&(n=window.crypto),!n&&"undefined"!=typeof window&&window.msCrypto&&(n=window.msCrypto),!n&&void 0!==d&&d.crypto&&(n=d.crypto),!n)try{n=p}catch(g){}var r=function(){if(n){if("function"==typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch(g){}if("function"==typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch(g){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),a={},i=a.lib={},s=i.Base={extend:function(e){var t=o(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},c=i.WordArray=s.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||u).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,o=e.sigBytes;if(this.clamp(),r%4)for(var a=0;a<o;a++){var i=n[a>>>2]>>>24-a%4*8&255;t[r+a>>>2]|=i<<24-(r+a)%4*8}else for(a=0;a<o;a+=4)t[r+a>>>2]=n[a>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=s.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n<e;n+=4)t.push(r());return new c.init(t,e)}}),l=a.enc={},u=l.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var a=t[o>>>2]>>>24-o%4*8&255;r.push((a>>>4).toString(16)),r.push((15&a).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new c.init(n,t/2)}},f=l.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var a=t[o>>>2]>>>24-o%4*8&255;r.push(String.fromCharCode(a))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new c.init(n,t)}},h=l.Utf8={stringify:function(e){try{return decodeURIComponent(escape(f.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return f.parse(unescape(encodeURIComponent(e)))}},m=i.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=h.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,r=this._data,o=r.words,a=r.sigBytes,i=this.blockSize,s=a/(4*i),l=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*i,u=e.min(4*l,a);if(l){for(var d=0;d<l;d+=i)this._doProcessBlock(o,d);n=o.splice(0,l),r.sigBytes-=u}return new c.init(n,u)},clone:function(){var e=s.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),v=(i.Hasher=m.extend({cfg:s.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){m.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new v.HMAC.init(e,n).finalize(t)}}}),a.algo={});return a}(Math),i=(a=s).lib.WordArray,a.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var o=[],a=0;a<n;a+=3)for(var i=(t[a>>>2]>>>24-a%4*8&255)<<16|(t[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|t[a+2>>>2]>>>24-(a+2)%4*8&255,s=0;s<4&&a+.75*s<n;s++)o.push(r.charAt(i>>>6*(3-s)&63));var c=r.charAt(64);if(c)for(;o.length%4;)o.push(c);return o.join("")},parse:function(e){var t=e.length,n=this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var o=0;o<n.length;o++)r[n.charCodeAt(o)]=o}var a=n.charAt(64);if(a){var s=e.indexOf(a);-1!==s&&(t=s)}return function(e,t,n){for(var r=[],o=0,a=0;a<t;a++)if(a%4){var s=n[e.charCodeAt(a-1)]<<a%4*2,c=n[e.charCodeAt(a)]>>>6-a%4*2,l=s|c;r[o>>>2]|=l<<24-o%4*8,o++}return i.create(r,o)}(e,t,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},function(e){var t=s,n=t.lib,r=n.WordArray,o=n.Hasher,a=t.algo,i=[];!function(){for(var t=0;t<64;t++)i[t]=4294967296*e.abs(e.sin(t+1))|0}();var c=a.MD5=o.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,o=e[r];e[r]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var a=this._hash.words,s=e[t+0],c=e[t+1],f=e[t+2],h=e[t+3],m=e[t+4],v=e[t+5],g=e[t+6],_=e[t+7],y=e[t+8],b=e[t+9],O=e[t+10],M=e[t+11],k=e[t+12],C=e[t+13],w=e[t+14],I=e[t+15],S=a[0],T=a[1],E=a[2],j=a[3];S=l(S,T,E,j,s,7,i[0]),j=l(j,S,T,E,c,12,i[1]),E=l(E,j,S,T,f,17,i[2]),T=l(T,E,j,S,h,22,i[3]),S=l(S,T,E,j,m,7,i[4]),j=l(j,S,T,E,v,12,i[5]),E=l(E,j,S,T,g,17,i[6]),T=l(T,E,j,S,_,22,i[7]),S=l(S,T,E,j,y,7,i[8]),j=l(j,S,T,E,b,12,i[9]),E=l(E,j,S,T,O,17,i[10]),T=l(T,E,j,S,M,22,i[11]),S=l(S,T,E,j,k,7,i[12]),j=l(j,S,T,E,C,12,i[13]),E=l(E,j,S,T,w,17,i[14]),S=u(S,T=l(T,E,j,S,I,22,i[15]),E,j,c,5,i[16]),j=u(j,S,T,E,g,9,i[17]),E=u(E,j,S,T,M,14,i[18]),T=u(T,E,j,S,s,20,i[19]),S=u(S,T,E,j,v,5,i[20]),j=u(j,S,T,E,O,9,i[21]),E=u(E,j,S,T,I,14,i[22]),T=u(T,E,j,S,m,20,i[23]),S=u(S,T,E,j,b,5,i[24]),j=u(j,S,T,E,w,9,i[25]),E=u(E,j,S,T,h,14,i[26]),T=u(T,E,j,S,y,20,i[27]),S=u(S,T,E,j,C,5,i[28]),j=u(j,S,T,E,f,9,i[29]),E=u(E,j,S,T,_,14,i[30]),S=d(S,T=u(T,E,j,S,k,20,i[31]),E,j,v,4,i[32]),j=d(j,S,T,E,y,11,i[33]),E=d(E,j,S,T,M,16,i[34]),T=d(T,E,j,S,w,23,i[35]),S=d(S,T,E,j,c,4,i[36]),j=d(j,S,T,E,m,11,i[37]),E=d(E,j,S,T,_,16,i[38]),T=d(T,E,j,S,O,23,i[39]),S=d(S,T,E,j,C,4,i[40]),j=d(j,S,T,E,s,11,i[41]),E=d(E,j,S,T,h,16,i[42]),T=d(T,E,j,S,g,23,i[43]),S=d(S,T,E,j,b,4,i[44]),j=d(j,S,T,E,k,11,i[45]),E=d(E,j,S,T,I,16,i[46]),S=p(S,T=d(T,E,j,S,f,23,i[47]),E,j,s,6,i[48]),j=p(j,S,T,E,_,10,i[49]),E=p(E,j,S,T,w,15,i[50]),T=p(T,E,j,S,v,21,i[51]),S=p(S,T,E,j,k,6,i[52]),j=p(j,S,T,E,h,10,i[53]),E=p(E,j,S,T,O,15,i[54]),T=p(T,E,j,S,c,21,i[55]),S=p(S,T,E,j,y,6,i[56]),j=p(j,S,T,E,I,10,i[57]),E=p(E,j,S,T,g,15,i[58]),T=p(T,E,j,S,C,21,i[59]),S=p(S,T,E,j,m,6,i[60]),j=p(j,S,T,E,M,10,i[61]),E=p(E,j,S,T,f,15,i[62]),T=p(T,E,j,S,b,21,i[63]),a[0]=a[0]+S|0,a[1]=a[1]+T|0,a[2]=a[2]+E|0,a[3]=a[3]+j|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,o=8*t.sigBytes;n[o>>>5]|=128<<24-o%32;var a=e.floor(r/4294967296),i=r;n[15+(o+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),n[14+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),t.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,c=s.words,l=0;l<4;l++){var u=c[l];c[l]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function l(e,t,n,r,o,a,i){var s=e+(t&n|~t&r)+o+i;return(s<<a|s>>>32-a)+t}function u(e,t,n,r,o,a,i){var s=e+(t&r|n&~r)+o+i;return(s<<a|s>>>32-a)+t}function d(e,t,n,r,o,a,i){var s=e+(t^n^r)+o+i;return(s<<a|s>>>32-a)+t}function p(e,t,n,r,o,a,i){var s=e+(n^(t|~r))+o+i;return(s<<a|s>>>32-a)+t}t.MD5=o._createHelper(c),t.HmacMD5=o._createHmacHelper(c)}(Math),function(){var e=s,t=e.lib,n=t.WordArray,r=t.Hasher,o=e.algo,a=[],i=o.SHA1=r.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],s=n[3],c=n[4],l=0;l<80;l++){if(l<16)a[l]=0|e[t+l];else{var u=a[l-3]^a[l-8]^a[l-14]^a[l-16];a[l]=u<<1|u>>>31}var d=(r<<5|r>>>27)+c+a[l];d+=l<20?1518500249+(o&i|~o&s):l<40?1859775393+(o^i^s):l<60?(o&i|o&s|i&s)-1894007588:(o^i^s)-899497514,c=s,s=i,i=o<<30|o>>>2,o=r,r=d}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+i|0,n[3]=n[3]+s|0,n[4]=n[4]+c|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}});e.SHA1=r._createHelper(i),e.HmacSHA1=r._createHmacHelper(i)}(),function(e){var t=s,n=t.lib,r=n.WordArray,o=n.Hasher,a=t.algo,i=[],c=[];!function(){function t(t){for(var n=e.sqrt(t),r=2;r<=n;r++)if(!(t%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,o=0;o<64;)t(r)&&(o<8&&(i[o]=n(e.pow(r,.5))),c[o]=n(e.pow(r,1/3)),o++),r++}();var l=[],u=a.SHA256=o.extend({_doReset:function(){this._hash=new r.init(i.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],a=n[2],i=n[3],s=n[4],u=n[5],d=n[6],p=n[7],f=0;f<64;f++){if(f<16)l[f]=0|e[t+f];else{var h=l[f-15],m=(h<<25|h>>>7)^(h<<14|h>>>18)^h>>>3,v=l[f-2],g=(v<<15|v>>>17)^(v<<13|v>>>19)^v>>>10;l[f]=m+l[f-7]+g+l[f-16]}var _=r&o^r&a^o&a,y=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),b=p+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&u^~s&d)+c[f]+l[f];p=d,d=u,u=s,s=i+b|0,i=a,a=o,o=r,r=b+(y+_)|0}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+a|0,n[3]=n[3]+i|0,n[4]=n[4]+s|0,n[5]=n[5]+u|0,n[6]=n[6]+d|0,n[7]=n[7]+p|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,o=8*t.sigBytes;return n[o>>>5]|=128<<24-o%32,n[14+(o+64>>>9<<4)]=e.floor(r/4294967296),n[15+(o+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=o._createHelper(u),t.HmacSHA256=o._createHmacHelper(u)}(Math),function(){var e=s,t=e.lib.WordArray,n=e.enc;function r(e){return e<<8&4278255360|e>>>8&16711935}n.Utf16=n.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o+=2){var a=t[o>>>2]>>>16-o%4*8&65535;r.push(String.fromCharCode(a))}return r.join("")},parse:function(e){for(var n=e.length,r=[],o=0;o<n;o++)r[o>>>1]|=e.charCodeAt(o)<<16-o%2*16;return t.create(r,2*n)}},n.Utf16LE={stringify:function(e){for(var t=e.words,n=e.sigBytes,o=[],a=0;a<n;a+=2){var i=r(t[a>>>2]>>>16-a%4*8&65535);o.push(String.fromCharCode(i))}return o.join("")},parse:function(e){for(var n=e.length,o=[],a=0;a<n;a++)o[a>>>1]|=r(e.charCodeAt(a)<<16-a%2*16);return t.create(o,2*n)}}}(),function(){if("function"==typeof ArrayBuffer){var e=s.lib.WordArray,t=e.init;(e.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var n=e.byteLength,r=[],o=0;o<n;o++)r[o>>>2]|=e[o]<<24-o%4*8;t.call(this,r,n)}else t.apply(this,arguments)}).prototype=e}}(),
|
||
/** @preserve
|
||
(c) 2012 by C��dric Mesnil. All rights reserved.
|
||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
||
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||
*/
|
||
function(e){var t=s,n=t.lib,r=n.WordArray,o=n.Hasher,a=t.algo,i=r.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),c=r.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),l=r.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),u=r.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),d=r.create([0,1518500249,1859775393,2400959708,2840853838]),p=r.create([1352829926,1548603684,1836072691,2053994217,0]),f=a.RIPEMD160=o.extend({_doReset:function(){this._hash=r.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,o=e[r];e[r]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var a,s,f,b,O,M,k,C,w,I,S,T=this._hash.words,E=d.words,j=p.words,D=i.words,L=c.words,A=l.words,N=u.words;for(M=a=T[0],k=s=T[1],C=f=T[2],w=b=T[3],I=O=T[4],n=0;n<80;n+=1)S=a+e[t+D[n]]|0,S+=n<16?h(s,f,b)+E[0]:n<32?m(s,f,b)+E[1]:n<48?v(s,f,b)+E[2]:n<64?g(s,f,b)+E[3]:_(s,f,b)+E[4],S=(S=y(S|=0,A[n]))+O|0,a=O,O=b,b=y(f,10),f=s,s=S,S=M+e[t+L[n]]|0,S+=n<16?_(k,C,w)+j[0]:n<32?g(k,C,w)+j[1]:n<48?v(k,C,w)+j[2]:n<64?m(k,C,w)+j[3]:h(k,C,w)+j[4],S=(S=y(S|=0,N[n]))+I|0,M=I,I=w,w=y(C,10),C=k,k=S;S=T[1]+f+w|0,T[1]=T[2]+b+I|0,T[2]=T[3]+O+M|0,T[3]=T[4]+a+k|0,T[4]=T[0]+s+C|0,T[0]=S},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var o=this._hash,a=o.words,i=0;i<5;i++){var s=a[i];a[i]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return o},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function h(e,t,n){return e^t^n}function m(e,t,n){return e&t|~e&n}function v(e,t,n){return(e|~t)^n}function g(e,t,n){return e&n|t&~n}function _(e,t,n){return e^(t|~n)}function y(e,t){return e<<t|e>>>32-t}t.RIPEMD160=o._createHelper(f),t.HmacRIPEMD160=o._createHmacHelper(f)}(),function(){var e=s,t=e.lib.Base,n=e.enc.Utf8;e.algo.HMAC=t.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=n.parse(t));var r=e.blockSize,o=4*r;t.sigBytes>o&&(t=e.finalize(t)),t.clamp();for(var a=this._oKey=t.clone(),i=this._iKey=t.clone(),s=a.words,c=i.words,l=0;l<r;l++)s[l]^=1549556828,c[l]^=909522486;a.sigBytes=i.sigBytes=o,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})}(),function(){var e=s,t=e.lib,n=t.Base,r=t.WordArray,o=e.algo,a=o.SHA1,i=o.HMAC,c=o.PBKDF2=n.extend({cfg:n.extend({keySize:4,hasher:a,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,o=i.create(n.hasher,e),a=r.create(),s=r.create([1]),c=a.words,l=s.words,u=n.keySize,d=n.iterations;c.length<u;){var p=o.update(t).finalize(s);o.reset();for(var f=p.words,h=f.length,m=p,v=1;v<d;v++){m=o.finalize(m),o.reset();for(var g=m.words,_=0;_<h;_++)f[_]^=g[_]}a.concat(p),l[0]++}return a.sigBytes=4*u,a}});e.PBKDF2=function(e,t,n){return c.create(n).compute(e,t)}}(),function(){var e=s,t=e.lib,n=t.Base,r=t.WordArray,o=e.algo,a=o.MD5,i=o.EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:a,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n,o=this.cfg,a=o.hasher.create(),i=r.create(),s=i.words,c=o.keySize,l=o.iterations;s.length<c;){n&&a.update(n),n=a.update(e).finalize(t),a.reset();for(var u=1;u<l;u++)n=a.finalize(n),a.reset();i.concat(n)}return i.sigBytes=4*c,i}});e.EvpKDF=function(e,t,n){return i.create(n).compute(e,t)}}(),function(){var e=s,t=e.lib.WordArray,n=e.algo,r=n.SHA256,o=n.SHA224=r.extend({_doReset:function(){this._hash=new t.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=r._doFinalize.call(this);return e.sigBytes-=4,e}});e.SHA224=r._createHelper(o),e.HmacSHA224=r._createHmacHelper(o)}(),function(e){var t=s,n=t.lib,r=n.Base,o=n.WordArray,a=t.x64={};a.Word=r.extend({init:function(e,t){this.high=e,this.low=t}}),a.WordArray=r.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:8*e.length},toX32:function(){for(var e=this.words,t=e.length,n=[],r=0;r<t;r++){var a=e[r];n.push(a.high),n.push(a.low)}return o.create(n,this.sigBytes)},clone:function(){for(var e=r.clone.call(this),t=e.words=this.words.slice(0),n=t.length,o=0;o<n;o++)t[o]=t[o].clone();return e}})}(),function(e){var t=s,n=t.lib,r=n.WordArray,o=n.Hasher,a=t.x64.Word,i=t.algo,c=[],l=[],u=[];!function(){for(var e=1,t=0,n=0;n<24;n++){c[e+5*t]=(n+1)*(n+2)/2%64;var r=(2*e+3*t)%5;e=t%5,t=r}for(e=0;e<5;e++)for(t=0;t<5;t++)l[e+5*t]=t+(2*e+3*t)%5*5;for(var o=1,i=0;i<24;i++){for(var s=0,d=0,p=0;p<7;p++){if(1&o){var f=(1<<p)-1;f<32?d^=1<<f:s^=1<<f-32}128&o?o=o<<1^113:o<<=1}u[i]=a.create(s,d)}}();var d=[];!function(){for(var e=0;e<25;e++)d[e]=a.create()}();var p=i.SHA3=o.extend({cfg:o.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new a.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var n=this._state,r=this.blockSize/2,o=0;o<r;o++){var a=e[t+2*o],i=e[t+2*o+1];a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),i=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),(T=n[o]).high^=i,T.low^=a}for(var s=0;s<24;s++){for(var p=0;p<5;p++){for(var f=0,h=0,m=0;m<5;m++)f^=(T=n[p+5*m]).high,h^=T.low;var v=d[p];v.high=f,v.low=h}for(p=0;p<5;p++){var g=d[(p+4)%5],_=d[(p+1)%5],y=_.high,b=_.low;for(f=g.high^(y<<1|b>>>31),h=g.low^(b<<1|y>>>31),m=0;m<5;m++)(T=n[p+5*m]).high^=f,T.low^=h}for(var O=1;O<25;O++){var M=(T=n[O]).high,k=T.low,C=c[O];C<32?(f=M<<C|k>>>32-C,h=k<<C|M>>>32-C):(f=k<<C-32|M>>>64-C,h=M<<C-32|k>>>64-C);var w=d[l[O]];w.high=f,w.low=h}var I=d[0],S=n[0];for(I.high=S.high,I.low=S.low,p=0;p<5;p++)for(m=0;m<5;m++){var T=n[O=p+5*m],E=d[O],j=d[(p+1)%5+5*m],D=d[(p+2)%5+5*m];T.high=E.high^~j.high&D.high,T.low=E.low^~j.low&D.low}T=n[0];var L=u[s];T.high^=L.high,T.low^=L.low}},_doFinalize:function(){var t=this._data,n=t.words,o=(this._nDataBytes,8*t.sigBytes),a=32*this.blockSize;n[o>>>5]|=1<<24-o%32,n[(e.ceil((o+1)/a)*a>>>5)-1]|=128,t.sigBytes=4*n.length,this._process();for(var i=this._state,s=this.cfg.outputLength/8,c=s/8,l=[],u=0;u<c;u++){var d=i[u],p=d.high,f=d.low;p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),f=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8),l.push(f),l.push(p)}return new r.init(l,s)},clone:function(){for(var e=o.clone.call(this),t=e._state=this._state.slice(0),n=0;n<25;n++)t[n]=t[n].clone();return e}});t.SHA3=o._createHelper(p),t.HmacSHA3=o._createHmacHelper(p)}(Math),function(){var e=s,t=e.lib.Hasher,n=e.x64,r=n.Word,o=n.WordArray,a=e.algo;function i(){return r.create.apply(r,arguments)}var c=[i(1116352408,3609767458),i(1899447441,602891725),i(3049323471,3964484399),i(3921009573,2173295548),i(961987163,4081628472),i(1508970993,3053834265),i(2453635748,2937671579),i(2870763221,3664609560),i(3624381080,2734883394),i(310598401,1164996542),i(607225278,1323610764),i(1426881987,3590304994),i(1925078388,4068182383),i(2162078206,991336113),i(2614888103,633803317),i(3248222580,3479774868),i(3835390401,2666613458),i(4022224774,944711139),i(264347078,2341262773),i(604807628,2007800933),i(770255983,1495990901),i(1249150122,1856431235),i(1555081692,3175218132),i(1996064986,2198950837),i(2554220882,3999719339),i(2821834349,766784016),i(2952996808,2566594879),i(3210313671,3203337956),i(3336571891,1034457026),i(3584528711,2466948901),i(113926993,3758326383),i(338241895,168717936),i(666307205,1188179964),i(773529912,1546045734),i(1294757372,1522805485),i(1396182291,2643833823),i(1695183700,2343527390),i(1986661051,1014477480),i(2177026350,1206759142),i(2456956037,344077627),i(2730485921,1290863460),i(2820302411,3158454273),i(3259730800,3505952657),i(3345764771,106217008),i(3516065817,3606008344),i(3600352804,1432725776),i(4094571909,1467031594),i(275423344,851169720),i(430227734,3100823752),i(506948616,1363258195),i(659060556,3750685593),i(883997877,3785050280),i(958139571,3318307427),i(1322822218,3812723403),i(1537002063,2003034995),i(1747873779,3602036899),i(1955562222,1575990012),i(2024104815,1125592928),i(2227730452,2716904306),i(2361852424,442776044),i(2428436474,593698344),i(2756734187,3733110249),i(3204031479,2999351573),i(3329325298,3815920427),i(3391569614,3928383900),i(3515267271,566280711),i(3940187606,3454069534),i(4118630271,4000239992),i(116418474,1914138554),i(174292421,2731055270),i(289380356,3203993006),i(460393269,320620315),i(685471733,587496836),i(852142971,1086792851),i(1017036298,365543100),i(1126000580,2618297676),i(1288033470,3409855158),i(1501505948,4234509866),i(1607167915,987167468),i(1816402316,1246189591)],l=[];!function(){for(var e=0;e<80;e++)l[e]=i()}();var u=a.SHA512=t.extend({_doReset:function(){this._hash=new o.init([new r.init(1779033703,4089235720),new r.init(3144134277,2227873595),new r.init(1013904242,4271175723),new r.init(2773480762,1595750129),new r.init(1359893119,2917565137),new r.init(2600822924,725511199),new r.init(528734635,4215389547),new r.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],a=n[2],i=n[3],s=n[4],u=n[5],d=n[6],p=n[7],f=r.high,h=r.low,m=o.high,v=o.low,g=a.high,_=a.low,y=i.high,b=i.low,O=s.high,M=s.low,k=u.high,C=u.low,w=d.high,I=d.low,S=p.high,T=p.low,E=f,j=h,D=m,L=v,A=g,N=_,x=y,R=b,P=O,U=M,V=k,B=C,F=w,G=I,z=S,H=T,Y=0;Y<80;Y++){var q,W,K=l[Y];if(Y<16)W=K.high=0|e[t+2*Y],q=K.low=0|e[t+2*Y+1];else{var $=l[Y-15],J=$.high,Q=$.low,X=(J>>>1|Q<<31)^(J>>>8|Q<<24)^J>>>7,Z=(Q>>>1|J<<31)^(Q>>>8|J<<24)^(Q>>>7|J<<25),ee=l[Y-2],te=ee.high,ne=ee.low,re=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,oe=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),ae=l[Y-7],ie=ae.high,se=ae.low,ce=l[Y-16],le=ce.high,ue=ce.low;W=(W=(W=X+ie+((q=Z+se)>>>0<Z>>>0?1:0))+re+((q+=oe)>>>0<oe>>>0?1:0))+le+((q+=ue)>>>0<ue>>>0?1:0),K.high=W,K.low=q}var de,pe=P&V^~P&F,fe=U&B^~U&G,he=E&D^E&A^D&A,me=j&L^j&N^L&N,ve=(E>>>28|j<<4)^(E<<30|j>>>2)^(E<<25|j>>>7),ge=(j>>>28|E<<4)^(j<<30|E>>>2)^(j<<25|E>>>7),_e=(P>>>14|U<<18)^(P>>>18|U<<14)^(P<<23|U>>>9),ye=(U>>>14|P<<18)^(U>>>18|P<<14)^(U<<23|P>>>9),be=c[Y],Oe=be.high,Me=be.low,ke=z+_e+((de=H+ye)>>>0<H>>>0?1:0),Ce=ge+me;z=F,H=G,F=V,G=B,V=P,B=U,P=x+(ke=(ke=(ke=ke+pe+((de+=fe)>>>0<fe>>>0?1:0))+Oe+((de+=Me)>>>0<Me>>>0?1:0))+W+((de+=q)>>>0<q>>>0?1:0))+((U=R+de|0)>>>0<R>>>0?1:0)|0,x=A,R=N,A=D,N=L,D=E,L=j,E=ke+(ve+he+(Ce>>>0<ge>>>0?1:0))+((j=de+Ce|0)>>>0<de>>>0?1:0)|0}h=r.low=h+j,r.high=f+E+(h>>>0<j>>>0?1:0),v=o.low=v+L,o.high=m+D+(v>>>0<L>>>0?1:0),_=a.low=_+N,a.high=g+A+(_>>>0<N>>>0?1:0),b=i.low=b+R,i.high=y+x+(b>>>0<R>>>0?1:0),M=s.low=M+U,s.high=O+P+(M>>>0<U>>>0?1:0),C=u.low=C+B,u.high=k+V+(C>>>0<B>>>0?1:0),I=d.low=I+G,d.high=w+F+(I>>>0<G>>>0?1:0),T=p.low=T+H,p.high=S+z+(T>>>0<H>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(r+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=t.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=t._createHelper(u),e.HmacSHA512=t._createHmacHelper(u)}(),function(){var e=s,t=e.x64,n=t.Word,r=t.WordArray,o=e.algo,a=o.SHA512,i=o.SHA384=a.extend({_doReset:function(){this._hash=new r.init([new n.init(3418070365,3238371032),new n.init(1654270250,914150663),new n.init(2438529370,812702999),new n.init(355462360,4144912697),new n.init(1731405415,4290775857),new n.init(2394180231,1750603025),new n.init(3675008525,1694076839),new n.init(1203062813,3204075428)])},_doFinalize:function(){var e=a._doFinalize.call(this);return e.sigBytes-=16,e}});e.SHA384=a._createHelper(i),e.HmacSHA384=a._createHmacHelper(i)}(),s.lib.Cipher||function(e){var t=s,n=t.lib,r=n.Base,o=n.WordArray,a=n.BufferedBlockAlgorithm,i=t.enc,c=(i.Utf8,i.Base64),l=t.algo.EvpKDF,u=n.Cipher=a.extend({cfg:r.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?y:g}return function(t){return{encrypt:function(n,r,o){return e(r).encrypt(t,n,r,o)},decrypt:function(n,r,o){return e(r).decrypt(t,n,r,o)}}}}()}),d=(n.StreamCipher=u.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),t.mode={}),p=n.BlockCipherMode=r.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),f=d.CBC=function(){var e=p.extend();function t(e,t,n){var r,o=this._iv;o?(r=o,this._iv=void 0):r=this._prevBlock;for(var a=0;a<n;a++)e[t+a]^=r[a]}return e.Encryptor=e.extend({processBlock:function(e,n){var r=this._cipher,o=r.blockSize;t.call(this,e,n,o),r.encryptBlock(e,n),this._prevBlock=e.slice(n,n+o)}}),e.Decryptor=e.extend({processBlock:function(e,n){var r=this._cipher,o=r.blockSize,a=e.slice(n,n+o);r.decryptBlock(e,n),t.call(this,e,n,o),this._prevBlock=a}}),e}(),h=(t.pad={}).Pkcs7={pad:function(e,t){for(var n=4*t,r=n-e.sigBytes%n,a=r<<24|r<<16|r<<8|r,i=[],s=0;s<r;s+=4)i.push(a);var c=o.create(i,r);e.concat(c)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},m=(n.BlockCipher=u.extend({cfg:u.cfg.extend({mode:f,padding:h}),reset:function(){var e;u.reset.call(this);var t=this.cfg,n=t.iv,r=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=r.createEncryptor:(e=r.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,n&&n.words):(this._mode=e.call(r,this,n&&n.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4}),n.CipherParams=r.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),v=(t.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;return(n?o.create([1398893684,1701076831]).concat(n).concat(t):t).toString(c)},parse:function(e){var t,n=c.parse(e),r=n.words;return 1398893684==r[0]&&1701076831==r[1]&&(t=o.create(r.slice(2,4)),r.splice(0,4),n.sigBytes-=16),m.create({ciphertext:n,salt:t})}},g=n.SerializableCipher=r.extend({cfg:r.extend({format:v}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var o=e.createEncryptor(n,r),a=o.finalize(t),i=o.cfg;return m.create({ciphertext:a,key:n,iv:i.iv,algorithm:e,mode:i.mode,padding:i.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),e.createDecryptor(n,r).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),_=(t.kdf={}).OpenSSL={execute:function(e,t,n,r){r||(r=o.random(8));var a=l.create({keySize:t+n}).compute(e,r),i=o.create(a.words.slice(t),4*n);return a.sigBytes=4*t,m.create({key:a,iv:i,salt:r})}},y=n.PasswordBasedCipher=g.extend({cfg:g.cfg.extend({kdf:_}),encrypt:function(e,t,n,r){var o=(r=this.cfg.extend(r)).kdf.execute(n,e.keySize,e.ivSize);r.iv=o.iv;var a=g.encrypt.call(this,e,t,o.key,r);return a.mixIn(o),a},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var o=r.kdf.execute(n,e.keySize,e.ivSize,t.salt);return r.iv=o.iv,g.decrypt.call(this,e,t,o.key,r)}})}(),s.mode.CFB=function(){var e=s.lib.BlockCipherMode.extend();function t(e,t,n,r){var o,a=this._iv;a?(o=a.slice(0),this._iv=void 0):o=this._prevBlock,r.encryptBlock(o,0);for(var i=0;i<n;i++)e[t+i]^=o[i]}return e.Encryptor=e.extend({processBlock:function(e,n){var r=this._cipher,o=r.blockSize;t.call(this,e,n,o,r),this._prevBlock=e.slice(n,n+o)}}),e.Decryptor=e.extend({processBlock:function(e,n){var r=this._cipher,o=r.blockSize,a=e.slice(n,n+o);t.call(this,e,n,o,r),this._prevBlock=a}}),e}(),s.mode.ECB=((o=s.lib.BlockCipherMode.extend()).Encryptor=o.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),o.Decryptor=o.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),o),s.pad.AnsiX923={pad:function(e,t){var n=e.sigBytes,r=4*t,o=r-n%r,a=n+o-1;e.clamp(),e.words[a>>>2]|=o<<24-a%4*8,e.sigBytes+=o},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},s.pad.Iso10126={pad:function(e,t){var n=4*t,r=n-e.sigBytes%n;e.concat(s.lib.WordArray.random(r-1)).concat(s.lib.WordArray.create([r<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},s.pad.Iso97971={pad:function(e,t){e.concat(s.lib.WordArray.create([2147483648],1)),s.pad.ZeroPadding.pad(e,t)},unpad:function(e){s.pad.ZeroPadding.unpad(e),e.sigBytes--}},s.mode.OFB=(n=s.lib.BlockCipherMode.extend(),r=n.Encryptor=n.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,o=this._iv,a=this._keystream;o&&(a=this._keystream=o.slice(0),this._iv=void 0),n.encryptBlock(a,0);for(var i=0;i<r;i++)e[t+i]^=a[i]}}),n.Decryptor=r,n),s.pad.NoPadding={pad:function(){},unpad:function(){}},function(e){var t=s,n=t.lib.CipherParams,r=t.enc.Hex;t.format.Hex={stringify:function(e){return e.ciphertext.toString(r)},parse:function(e){var t=r.parse(e);return n.create({ciphertext:t})}}}(),function(){var e=s,t=e.lib.BlockCipher,n=e.algo,r=[],o=[],a=[],i=[],c=[],l=[],u=[],d=[],p=[],f=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var n=0,s=0;for(t=0;t<256;t++){var h=s^s<<1^s<<2^s<<3^s<<4;h=h>>>8^255&h^99,r[n]=h,o[h]=n;var m=e[n],v=e[m],g=e[v],_=257*e[h]^16843008*h;a[n]=_<<24|_>>>8,i[n]=_<<16|_>>>16,c[n]=_<<8|_>>>24,l[n]=_,_=16843009*g^65537*v^257*m^16843008*n,u[h]=_<<24|_>>>8,d[h]=_<<16|_>>>16,p[h]=_<<8|_>>>24,f[h]=_,n?(n=m^e[e[e[g^m]]],s^=e[e[s]]):n=s=1}}();var h=[0,1,2,4,8,16,32,64,128,27,54],m=n.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,o=4*((this._nRounds=n+6)+1),a=this._keySchedule=[],i=0;i<o;i++)i<n?a[i]=t[i]:(l=a[i-1],i%n?n>6&&i%n==4&&(l=r[l>>>24]<<24|r[l>>>16&255]<<16|r[l>>>8&255]<<8|r[255&l]):(l=r[(l=l<<8|l>>>24)>>>24]<<24|r[l>>>16&255]<<16|r[l>>>8&255]<<8|r[255&l],l^=h[i/n|0]<<24),a[i]=a[i-n]^l);for(var s=this._invKeySchedule=[],c=0;c<o;c++){if(i=o-c,c%4)var l=a[i];else l=a[i-4];s[c]=c<4||i<=4?l:u[r[l>>>24]]^d[r[l>>>16&255]]^p[r[l>>>8&255]]^f[r[255&l]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,i,c,l,r)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,u,d,p,f,o),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,o,a,i,s){for(var c=this._nRounds,l=e[t]^n[0],u=e[t+1]^n[1],d=e[t+2]^n[2],p=e[t+3]^n[3],f=4,h=1;h<c;h++){var m=r[l>>>24]^o[u>>>16&255]^a[d>>>8&255]^i[255&p]^n[f++],v=r[u>>>24]^o[d>>>16&255]^a[p>>>8&255]^i[255&l]^n[f++],g=r[d>>>24]^o[p>>>16&255]^a[l>>>8&255]^i[255&u]^n[f++],_=r[p>>>24]^o[l>>>16&255]^a[u>>>8&255]^i[255&d]^n[f++];l=m,u=v,d=g,p=_}m=(s[l>>>24]<<24|s[u>>>16&255]<<16|s[d>>>8&255]<<8|s[255&p])^n[f++],v=(s[u>>>24]<<24|s[d>>>16&255]<<16|s[p>>>8&255]<<8|s[255&l])^n[f++],g=(s[d>>>24]<<24|s[p>>>16&255]<<16|s[l>>>8&255]<<8|s[255&u])^n[f++],_=(s[p>>>24]<<24|s[l>>>16&255]<<16|s[u>>>8&255]<<8|s[255&d])^n[f++],e[t]=m,e[t+1]=v,e[t+2]=g,e[t+3]=_},keySize:8});e.AES=t._createHelper(m)}(),function(){var e=s,t=e.lib,n=t.WordArray,r=t.BlockCipher,o=e.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],i=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],l=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],d=o.DES=r.extend({_doReset:function(){for(var e=this._key.words,t=[],n=0;n<56;n++){var r=a[n]-1;t[n]=e[r>>>5]>>>31-r%32&1}for(var o=this._subKeys=[],s=0;s<16;s++){var l=o[s]=[],u=c[s];for(n=0;n<24;n++)l[n/6|0]|=t[(i[n]-1+u)%28]<<31-n%6,l[4+(n/6|0)]|=t[28+(i[n+24]-1+u)%28]<<31-n%6;for(l[0]=l[0]<<1|l[0]>>>31,n=1;n<7;n++)l[n]=l[n]>>>4*(n-1)+3;l[7]=l[7]<<5|l[7]>>>27}var d=this._invSubKeys=[];for(n=0;n<16;n++)d[n]=o[15-n]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,n){this._lBlock=e[t],this._rBlock=e[t+1],p.call(this,4,252645135),p.call(this,16,65535),f.call(this,2,858993459),f.call(this,8,16711935),p.call(this,1,1431655765);for(var r=0;r<16;r++){for(var o=n[r],a=this._lBlock,i=this._rBlock,s=0,c=0;c<8;c++)s|=l[c][((i^o[c])&u[c])>>>0];this._lBlock=i,this._rBlock=a^s}var d=this._lBlock;this._lBlock=this._rBlock,this._rBlock=d,p.call(this,1,1431655765),f.call(this,8,16711935),f.call(this,2,858993459),p.call(this,16,65535),p.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function p(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<<e}function f(e,t){var n=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<<e}e.DES=r._createHelper(d);var h=o.TripleDES=r.extend({_doReset:function(){var e=this._key.words;if(2!==e.length&&4!==e.length&&e.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var t=e.slice(0,2),r=e.length<4?e.slice(0,2):e.slice(2,4),o=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=d.createEncryptor(n.create(t)),this._des2=d.createEncryptor(n.create(r)),this._des3=d.createEncryptor(n.create(o))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});e.TripleDES=r._createHelper(h)}(),function(){var e=s,t=e.lib.StreamCipher,n=e.algo,r=n.RC4=t.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes,r=this._S=[],o=0;o<256;o++)r[o]=o;o=0;for(var a=0;o<256;o++){var i=o%n,s=t[i>>>2]>>>24-i%4*8&255;a=(a+r[o]+s)%256;var c=r[o];r[o]=r[a],r[a]=c}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var e=this._S,t=this._i,n=this._j,r=0,o=0;o<4;o++){n=(n+e[t=(t+1)%256])%256;var a=e[t];e[t]=e[n],e[n]=a,r|=e[(e[t]+e[n])%256]<<24-8*o}return this._i=t,this._j=n,r}e.RC4=t._createHelper(r);var a=n.RC4Drop=r.extend({cfg:r.cfg.extend({drop:192}),_doReset:function(){r._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)o.call(this)}});e.RC4Drop=t._createHelper(a)}(),
|
||
/** @preserve
|
||
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
||
* derived from CryptoJS.mode.CTR
|
||
* Jan Hruby jhruby.web@gmail.com
|
||
*/
|
||
s.mode.CTRGladman=function(){var e=s.lib.BlockCipherMode.extend();function t(e){if(255==(e>>24&255)){var t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}else e+=1<<24;return e}var n=e.Encryptor=e.extend({processBlock:function(e,n){var r=this._cipher,o=r.blockSize,a=this._iv,i=this._counter;a&&(i=this._counter=a.slice(0),this._iv=void 0),function(e){0===(e[0]=t(e[0]))&&(e[1]=t(e[1]))}(i);var s=i.slice(0);r.encryptBlock(s,0);for(var c=0;c<o;c++)e[n+c]^=s[c]}});return e.Decryptor=n,e}(),function(){var e=s,t=e.lib.StreamCipher,n=e.algo,r=[],o=[],a=[],i=n.Rabbit=t.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,n=0;n<4;n++)e[n]=16711935&(e[n]<<8|e[n]>>>24)|4278255360&(e[n]<<24|e[n]>>>8);var r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],o=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,n=0;n<4;n++)c.call(this);for(n=0;n<8;n++)o[n]^=r[n+4&7];if(t){var a=t.words,i=a[0],s=a[1],l=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=l>>>16|4294901760&u,p=u<<16|65535&l;for(o[0]^=l,o[1]^=d,o[2]^=u,o[3]^=p,o[4]^=l,o[5]^=d,o[6]^=u,o[7]^=p,n=0;n<4;n++)c.call(this)}},_doProcessBlock:function(e,t){var n=this._X;c.call(this),r[0]=n[0]^n[5]>>>16^n[3]<<16,r[1]=n[2]^n[7]>>>16^n[5]<<16,r[2]=n[4]^n[1]>>>16^n[7]<<16,r[3]=n[6]^n[3]>>>16^n[1]<<16;for(var o=0;o<4;o++)r[o]=16711935&(r[o]<<8|r[o]>>>24)|4278255360&(r[o]<<24|r[o]>>>8),e[t+o]^=r[o]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,n=0;n<8;n++)o[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<o[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<o[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<o[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<o[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<o[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<o[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<o[6]>>>0?1:0)|0,this._b=t[7]>>>0<o[7]>>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],i=65535&r,s=r>>>16,c=((i*i>>>17)+i*s>>>15)+s*s,l=((4294901760&r)*r|0)+((65535&r)*r|0);a[n]=c^l}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.Rabbit=t._createHelper(i)}(),s.mode.CTR=function(){var e=s.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,o=this._iv,a=this._counter;o&&(a=this._counter=o.slice(0),this._iv=void 0);var i=a.slice(0);n.encryptBlock(i,0),a[r-1]=a[r-1]+1|0;for(var s=0;s<r;s++)e[t+s]^=i[s]}});return e.Decryptor=t,e}(),function(){var e=s,t=e.lib.StreamCipher,n=e.algo,r=[],o=[],a=[],i=n.RabbitLegacy=t.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],r=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var o=0;o<4;o++)c.call(this);for(o=0;o<8;o++)r[o]^=n[o+4&7];if(t){var a=t.words,i=a[0],s=a[1],l=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=l>>>16|4294901760&u,p=u<<16|65535&l;for(r[0]^=l,r[1]^=d,r[2]^=u,r[3]^=p,r[4]^=l,r[5]^=d,r[6]^=u,r[7]^=p,o=0;o<4;o++)c.call(this)}},_doProcessBlock:function(e,t){var n=this._X;c.call(this),r[0]=n[0]^n[5]>>>16^n[3]<<16,r[1]=n[2]^n[7]>>>16^n[5]<<16,r[2]=n[4]^n[1]>>>16^n[7]<<16,r[3]=n[6]^n[3]>>>16^n[1]<<16;for(var o=0;o<4;o++)r[o]=16711935&(r[o]<<8|r[o]>>>24)|4278255360&(r[o]<<24|r[o]>>>8),e[t+o]^=r[o]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,n=0;n<8;n++)o[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<o[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<o[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<o[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<o[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<o[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<o[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<o[6]>>>0?1:0)|0,this._b=t[7]>>>0<o[7]>>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],i=65535&r,s=r>>>16,c=((i*i>>>17)+i*s>>>15)+s*s,l=((4294901760&r)*r|0)+((65535&r)*r|0);a[n]=c^l}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.RabbitLegacy=t._createHelper(i)}(),s.pad.ZeroPadding={pad:function(e,t){var n=4*t;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){var t=e.words,n=e.sigBytes-1;for(n=e.sigBytes-1;n>=0;n--)if(t[n>>>2]>>>24-n%4*8&255){e.sigBytes=n+1;break}}},s)}));return function(){function t(n){e(this,t);var r=n.logger,o=n.isArray,a=n.isMap,i=n.isDevMode;this._isArray=o,this._isMap=a,this._isDevMode=i,r.log("TIMProfanityFilterPlugin.VERSION:".concat("0.9.0")),this._interceptProfanityList=[],this._interceptFilter=null,this._interceptRegExpList=[],this._replacingProfanityMap=new Map,this._replacingFilter=null,this._replacingRegExpMap=new Map,this._key="",this._iv="",this._decryptOptions=void 0}return r(t,[{key:"onToken",value:function(e){this._key=f.enc.Utf8.parse(e.slice(0,32)),this._iv=this._key,this._decryptOptions={iv:this._iv,mode:f.mode.CBC,padding:f.pad.Pkcs7}}},{key:"onLexiconSliced",value:function(e){if(this._isArray(e)&&0!==e.length){var t,n,r,o=c(e);try{for(o.s();!(r=o.n()).done;){var a=r.value,i=a.filterType,s=a.profanityType,l=a.profanity,u=a.replacement;t=this._getDecryptedString(l),n=this._getDecryptedString(u),1===i?1===s?this._interceptProfanityList.push(t):2===s&&this._interceptRegExpList.push(t):2===i&&(1===s?this._replacingProfanityMap.set(t,n):2===s&&this._replacingRegExpMap.set(t,n))}}catch(p){o.e(p)}finally{o.f()}}}},{key:"_getDecryptedString",value:function(e){var t=f.AES.decrypt(e,this._key,this._decryptOptions);return f.enc.Utf8.stringify(t).toLowerCase()}},{key:"onLexiconCompleted",value:function(e){this.onLexiconSliced(e),this._interceptFilter=new u({input:this._interceptProfanityList,isArray:this._isArray,isMap:this._isMap}),this._replacingFilter=new u({input:this._replacingProfanityMap,isArray:this._isArray,isMap:this._isMap}),!0===this._isDevMode&&(console.log("TIMProfanityFilterPlugin _interceptProfanityList ->",this._interceptProfanityList),console.log("TIMProfanityFilterPlugin _interceptRegExpList ->",this._interceptRegExpList),console.log("TIMProfanityFilterPlugin _replacingProfanityMap ->",this._replacingProfanityMap),console.log("TIMProfanityFilterPlugin _replacingRegExpMap ->",this._replacingRegExpMap))}},{key:"filter",value:function(e){var t={type:0,modifiedText:e};if(!0===this._interceptFilter.filter({text:e,replacingEnabled:!1}).isMatched)return t.type=1,t;for(var n=!1,r=0,a=this._interceptRegExpList.length;r<a;r++)if(new RegExp(this._interceptRegExpList[r],"g").test(e)){n=!0;break}if(n)return t.type=1,t;var i=this._replacingFilter.filter({text:e,replacingEnabled:!0});!0===i.isMatched&&(t.type=2,t.modifiedText=i.modifiedText);var s,l=t.modifiedText,u=null,d=c(this._replacingRegExpMap);try{for(d.s();!(s=d.n()).done;){var p=o(s.value,2),f=p[0],h=p[1];u=new RegExp(f,"g"),l=l.replace(u,h)}}catch(m){d.e(m)}finally{d.f()}return l!==e&&(t.type=2,t.modifiedText=l),t}},{key:"reset",value:function(){this._isArray=null,this._isMap=null,this._interceptProfanityList.length=0,this._interceptRegExpList.length=0,this._replacingProfanityMap.clear(),this._replacingRegExpMap.clear(),this._key="",this._iv="",this._decryptOptions={},this._interceptFilter&&this._interceptFilter.reset(),this._replacingFilter&&this._replacingFilter.reset()}}]),t}()}))}).call(this,n("c8ba"))},de6a:function(e,t,n){"use strict";var r=n("a5eb"),o=n("06fa"),a=n("4fff"),i=n("5779"),s=n("f5fb"),c=o((function(){i(1)}));r({target:"Object",stat:!0,forced:c,sham:!s},{getPrototypeOf:function(e){return i(a(e))}})},dee0:function(e,t,n){"use strict";var r=n("6414"),o=n("ce18"),a=n("638c"),i=n("4fff"),s=n("c74f"),c=n("4344"),l=o([].push),u=function(e){var t=1==e,n=2==e,o=3==e,u=4==e,d=6==e,p=7==e,f=5==e||d;return function(h,m,v,g){for(var _,y,b=i(h),O=a(b),M=r(m,v),k=s(O),C=0,w=g||c,I=t?w(h,k):n||p?w(h,0):void 0;k>C;C++)if((f||C in O)&&(_=O[C],y=M(_,C,b),e))if(t)I[C]=y;else if(y)switch(e){case 3:return!0;case 5:return _;case 6:return C;case 2:l(I,_)}else switch(e){case 4:return!1;case 7:l(I,_)}return d?-1:o||u?u:I}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},df7c:function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var o=e[r];"."===o?e.splice(r,1):".."===o?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e){"string"!==typeof e&&(e+="");var t,n=0,r=-1,o=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!o){n=t+1;break}}else-1===r&&(o=!1,r=t+1);return-1===r?"":e.slice(n,r)}function o(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}t.resolve=function(){for(var t="",r=!1,a=arguments.length-1;a>=-1&&!r;a--){var i=a>=0?arguments[a]:e.cwd();if("string"!==typeof i)throw new TypeError("Arguments to path.resolve must be strings");i&&(t=i+"/"+t,r="/"===i.charAt(0))}return t=n(o(t.split("/"),(function(e){return!!e})),!r).join("/"),(r?"/":"")+t||"."},t.normalize=function(e){var r=t.isAbsolute(e),i="/"===a(e,-1);return e=n(o(e.split("/"),(function(e){return!!e})),!r).join("/"),e||r||(e="."),e&&i&&(e+="/"),(r?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(o(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t<e.length;t++)if(""!==e[t])break;for(var n=e.length-1;n>=0;n--)if(""!==e[n])break;return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var o=r(e.split("/")),a=r(n.split("/")),i=Math.min(o.length,a.length),s=i,c=0;c<i;c++)if(o[c]!==a[c]){s=c;break}var l=[];for(c=s;c<o.length;c++)l.push("..");return l=l.concat(a.slice(s)),l.join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!==typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,o=!0,a=e.length-1;a>=1;--a)if(t=e.charCodeAt(a),47===t){if(!o){r=a;break}}else o=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var n=r(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,n=0,r=-1,o=!0,a=0,i=e.length-1;i>=0;--i){var s=e.charCodeAt(i);if(47!==s)-1===r&&(o=!1,r=i+1),46===s?-1===t?t=i:1!==a&&(a=1):-1!==t&&(a=-1);else if(!o){n=i+1;break}}return-1===t||-1===r||0===a||1===a&&t===r-1&&t===n+1?"":e.slice(t,r)};var a="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n("4362"))},df7e:function(e,t,n){"use strict";var r=n("07fa");e.exports=function(e,t){for(var n=r(e),o=new t(n),a=0;a<n;a++)o[a]=e[n-a-1];return o}},dfb9:function(e,t,n){"use strict";var r=n("07fa");e.exports=function(e,t){var n=0,o=r(t),a=new e(o);while(o>n)a[n]=t[n++];return a}},dfdb:function(e,t,n){"use strict";var r=n("fb2d"),o=n("0fd4"),a=o.all;e.exports=o.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:r(e)||e===a}:function(e){return"object"==typeof e?null!==e:r(e)}},e0b4:function(e,t,n){"use strict";var r=n("8c68");e.exports=r&&!!Symbol["for"]&&!!Symbol.keyFor},e0c5:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"},n={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"},r=e.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પહેલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(e){return e.replace(/[૧૨૩૪૫૬૭૮૯૦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,meridiemHour:function(e,t){return 12===e&&(e=0),"રાત"===t?e<4?e:e+12:"સવાર"===t?e:"બપોર"===t?e>=10?e:e+12:"સાંજ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"રાત":e<10?"સવાર":e<17?"બપોર":e<20?"સાંજ":"રાત"},week:{dow:0,doy:6}});return r}))},e12b:function(e,t,n){"use strict";var r=n("dfdb"),o=n("0273");e.exports=function(e,t){r(t)&&"cause"in t&&o(e,"cause",t.cause)}},e163:function(e,t,n){"use strict";var r=n("1a2d"),o=n("1626"),a=n("7b0b"),i=n("f772"),s=n("e177"),c=i("IE_PROTO"),l=Object,u=l.prototype;e.exports=s?l.getPrototypeOf:function(e){var t=a(e);if(r(t,c))return t[c];var n=t.constructor;return o(n)&&t instanceof n?n.prototype:t instanceof l?u:null}},e177:function(e,t,n){"use strict";var r=n("d039");e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},e1ba:function(e,t,n){"use strict";var r=n("68ec");e.exports=r},e1d3:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}});return t}))},e23e:function(e,t,n){"use strict";(function(t){!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 n(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){s(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){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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 i(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(){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 p(e,t,n){return(p=d()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&u(o,n.prototype),o}).apply(null,arguments)}function f(e){var t="function"==typeof Map?new Map:void 0;return(f=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 p(e,arguments,l(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),u(r,e)})(e)}function h(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return 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 m(e)}function g(e){var t=d();return function(){var n,r=l(e);if(t){var o=l(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v(this,n)}}function _(e,t){return b(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(l){s=!0,o=l}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}}(e,t)||M(e,t)||C()}function y(e){return function(e){if(Array.isArray(e))return k(e)}(e)||O(e)||M(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 b(e){if(Array.isArray(e))return e}function O(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function M(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 C(){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 w(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=M(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 a,i=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){s=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(s)throw a}}}}var I={SDK_READY:"sdkStateReady",SDK_NOT_READY:"sdkStateNotReady",SDK_DESTROY:"sdkDestroy",MESSAGE_RECEIVED:"onMessageReceived",MESSAGE_MODIFIED:"onMessageModified",MESSAGE_REVOKED:"onMessageRevoked",MESSAGE_READ_BY_PEER:"onMessageReadByPeer",MESSAGE_READ_RECEIPT_RECEIVED:"onMessageReadReceiptReceived",MESSAGE_EXTENSIONS_UPDATED:"onMessageExtensionsUpdated",MESSAGE_EXTENSIONS_DELETED:"onMessageExtensionsDeleted",CONVERSATION_LIST_UPDATED:"onConversationListUpdated",TOTAL_UNREAD_MESSAGE_COUNT_UPDATED:"onTotalUnreadMessageCountUpdated",CONVERSATION_GROUP_LIST_UPDATED:"onConversationGroupListUpdated",CONVERSATION_IN_GROUP_UPDATED:"onConversationInGroupUpdated",GROUP_LIST_UPDATED:"onGroupListUpdated",GROUP_SYSTEM_NOTICE_RECEIVED:"receiveGroupSystemNotice",GROUP_ATTRIBUTES_UPDATED:"groupAttributesUpdated",GROUP_COUNTER_UPDATED:"onGroupCounterUpdated",TOPIC_CREATED:"onTopicCreated",TOPIC_DELETED:"onTopicDeleted",TOPIC_UPDATED:"onTopicUpdated",PROFILE_UPDATED:"onProfileUpdated",USER_STATUS_UPDATED:"onUserStatusUpdated",BLACKLIST_UPDATED:"blacklistUpdated",FRIEND_LIST_UPDATED:"onFriendListUpdated",FRIEND_GROUP_LIST_UPDATED:"onFriendGroupListUpdated",FRIEND_APPLICATION_LIST_UPDATED:"onFriendApplicationListUpdated",KICKED_OUT:"kickedOut",ERROR:"error",NET_STATE_CHANGE:"netStateChange",SDK_RELOAD:"sdkReload"},S={MSG_TEXT:"TIMTextElem",MSG_IMAGE:"TIMImageElem",MSG_SOUND:"TIMSoundElem",MSG_AUDIO:"TIMSoundElem",MSG_FILE:"TIMFileElem",MSG_FACE:"TIMFaceElem",MSG_VIDEO:"TIMVideoFileElem",MSG_GEO:"TIMLocationElem",MSG_LOCATION:"TIMLocationElem",MSG_GRP_TIP:"TIMGroupTipElem",MSG_GRP_SYS_NOTICE:"TIMGroupSystemNoticeElem",MSG_CUSTOM:"TIMCustomElem",MSG_MERGER:"TIMRelayElem",MSG_PRIORITY_HIGH:"High",MSG_PRIORITY_NORMAL:"Normal",MSG_PRIORITY_LOW:"Low",MSG_PRIORITY_LOWEST:"Lowest",CONV_C2C:"C2C",CONV_GROUP:"GROUP",CONV_TOPIC:"TOPIC",CONV_SYSTEM:"@TIM#SYSTEM",CONV_AT_ME:1,CONV_AT_ALL:2,CONV_AT_ALL_AT_ME:3,CONV_MARK_TYPE_STAR:1,CONV_MARK_TYPE_UNREAD:2,CONV_MARK_TYPE_FOLD:4,CONV_MARK_TYPE_HIDE:8,GRP_PRIVATE:"Private",GRP_WORK:"Private",GRP_PUBLIC:"Public",GRP_CHATROOM:"ChatRoom",GRP_MEETING:"ChatRoom",GRP_AVCHATROOM:"AVChatRoom",GRP_COMMUNITY:"Community",GRP_MBR_ROLE_OWNER:"Owner",GRP_MBR_ROLE_ADMIN:"Admin",GRP_MBR_ROLE_MEMBER:"Member",GRP_MBR_ROLE_CUSTOM:"Custom",GRP_TIP_MBR_JOIN:1,GRP_TIP_MBR_QUIT:2,GRP_TIP_MBR_KICKED_OUT:3,GRP_TIP_MBR_SET_ADMIN:4,GRP_TIP_MBR_CANCELED_ADMIN:5,GRP_TIP_GRP_PROFILE_UPDATED:6,GRP_TIP_MBR_PROFILE_UPDATED:7,GRP_TIP_BAN_AVCHATROOM_MEMBER:10,GRP_TIP_UNBAN_AVCHATROOM_MEMBER:11,MSG_REMIND_ACPT_AND_NOTE:"AcceptAndNotify",MSG_REMIND_ACPT_NOT_NOTE:"AcceptNotNotify",MSG_REMIND_DISCARD:"Discard",GENDER_UNKNOWN:"Gender_Type_Unknown",GENDER_FEMALE:"Gender_Type_Female",GENDER_MALE:"Gender_Type_Male",KICKED_OUT_MULT_ACCOUNT:"multipleAccount",KICKED_OUT_MULT_DEVICE:"multipleDevice",KICKED_OUT_USERSIG_EXPIRED:"userSigExpired",KICKED_OUT_REST_API:"REST_API_Kick",ALLOW_TYPE_ALLOW_ANY:"AllowType_Type_AllowAny",ALLOW_TYPE_NEED_CONFIRM:"AllowType_Type_NeedConfirm",ALLOW_TYPE_DENY_ANY:"AllowType_Type_DenyAny",FORBID_TYPE_NONE:"AdminForbid_Type_None",FORBID_TYPE_SEND_OUT:"AdminForbid_Type_SendOut",JOIN_OPTIONS_FREE_ACCESS:"FreeAccess",JOIN_OPTIONS_NEED_PERMISSION:"NeedPermission",JOIN_OPTIONS_DISABLE_APPLY:"DisableApply",JOIN_STATUS_SUCCESS:"JoinedSuccess",JOIN_STATUS_ALREADY_IN_GROUP:"AlreadyInGroup",JOIN_STATUS_WAIT_APPROVAL:"WaitAdminApproval",INVITE_OPTIONS_DISABLE_INVITE:"DisableInvite",INVITE_OPTIONS_NEED_PERMISSION:"NeedPermission",INVITE_OPTIONS_FREE_ACCESS:"FreeAccess",GRP_PROFILE_OWNER_ID:"ownerID",GRP_PROFILE_CREATE_TIME:"createTime",GRP_PROFILE_LAST_INFO_TIME:"lastInfoTime",GRP_PROFILE_MEMBER_NUM:"memberNum",GRP_PROFILE_MAX_MEMBER_NUM:"maxMemberNum",GRP_PROFILE_JOIN_OPTION:"joinOption",GRP_PROFILE_INVITE_OPTION:"inviteOption",GRP_PROFILE_INTRODUCTION:"introduction",GRP_PROFILE_NOTIFICATION:"notification",GRP_PROFILE_MUTE_ALL_MBRS:"muteAllMembers",SNS_ADD_TYPE_SINGLE:"Add_Type_Single",SNS_ADD_TYPE_BOTH:"Add_Type_Both",SNS_DELETE_TYPE_SINGLE:"Delete_Type_Single",SNS_DELETE_TYPE_BOTH:"Delete_Type_Both",SNS_APPLICATION_TYPE_BOTH:"Pendency_Type_Both",SNS_APPLICATION_SENT_TO_ME:"Pendency_Type_ComeIn",SNS_APPLICATION_SENT_BY_ME:"Pendency_Type_SendOut",SNS_APPLICATION_AGREE:"Response_Action_Agree",SNS_APPLICATION_AGREE_AND_ADD:"Response_Action_AgreeAndAdd",SNS_CHECK_TYPE_BOTH:"CheckResult_Type_Both",SNS_CHECK_TYPE_SINGLE:"CheckResult_Type_Single",SNS_TYPE_NO_RELATION:"CheckResult_Type_NoRelation",SNS_TYPE_A_WITH_B:"CheckResult_Type_AWithB",SNS_TYPE_B_WITH_A:"CheckResult_Type_BWithA",SNS_TYPE_BOTH_WAY:"CheckResult_Type_BothWay",NET_STATE_CONNECTED:"connected",NET_STATE_CONNECTING:"connecting",NET_STATE_DISCONNECTED:"disconnected",MSG_AT_ALL:"__kImSDK_MesssageAtALL__",READ_ALL_C2C_MSG:"readAllC2CMessage",READ_ALL_GROUP_MSG:"readAllGroupMessage",READ_ALL_MSG:"readAllMessage",USER_STATUS_UNKNOWN:0,USER_STATUS_ONLINE:1,USER_STATUS_OFFLINE:2,USER_STATUS_UNLOGINED:3},T=function(){function e(){o(this,e),this.cache=[],this.options=null}return i(e,[{key:"use",value:function(e){if("function"!=typeof e)throw"middleware must be a function";return this.cache.push(e),this}},{key:"next",value:function(e){if(this.middlewares&&this.middlewares.length>0)return this.middlewares.shift().call(this,this.options,this.next.bind(this))}},{key:"run",value:function(e){return this.middlewares=this.cache.map((function(e){return e})),this.options=e,this.next()}}]),e}(),E=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;o(this,e),this.high=t,this.low=n}return i(e,[{key:"equal",value:function(e){return null!==e&&this.low===e.low&&this.high===e.high}},{key:"toString",value:function(){var e=Number(this.high).toString(16),t=Number(this.low).toString(16);if(t.length<8)for(var n=8-t.length;n;)t="0"+t,n--;return e+t}}]),e}(),j={TEST:{CHINA:{DEFAULT:"wss://wss-dev.tim.qq.com"},OVERSEA:{DEFAULT:"wss://wss-dev.tim.qq.com"},SINGAPORE:{DEFAULT:"wss://wsssgp-dev.im.qcloud.com"},KOREA:{DEFAULT:"wss://wsskr-dev.im.qcloud.com"},GERMANY:{DEFAULT:"wss://wssger-dev.im.qcloud.com"},IND:{DEFAULT:"wss://wssind-dev.im.qcloud.com"},JPN:{DEFAULT:"wss://wssjpn-dev.im.qcloud.com"},USA:{DEFAULT:"wss://wssusa-dev.im.qcloud.com"}},PRODUCTION:{CHINA:{DEFAULT:"wss://wss.im.qcloud.com",BACKUP:"wss://wss.tim.qq.com",STAT:"https://events.im.qcloud.com",ANYCAST:"wss://162.14.13.203"},OVERSEA:{DEFAULT:"wss://wss.im.qcloud.com",BACKUP:"wss://wss.my-imcloud.com",STAT:"https://api.my-imcloud.com"},SINGAPORE:{DEFAULT:"wss://wsssgp.im.qcloud.com",BACKUP:"wss://wsssgp.my-imcloud.com",STAT:"https://apisgp.my-imcloud.com"},KOREA:{DEFAULT:"wss://wsskr.im.qcloud.com",BACKUP:"wss://wsskr.my-imcloud.com",STAT:"https://apikr.my-imcloud.com"},GERMANY:{DEFAULT:"wss://wssger.im.qcloud.com",BACKUP:"wss://wssger.my-imcloud.com",STAT:"https://apiger.my-imcloud.com"},IND:{DEFAULT:"wss://wssind.my-imcloud.com",BACKUP:"wss://wssind.im.qcloud.com",STAT:"https://apiind.my-imcloud.com"},JPN:{DEFAULT:"wss://wssjpn.im.qcloud.com",BACKUP:"wss://wssjpn.my-imcloud.com",STAT:"https://apijpn.my-imcloud.com"},USA:{DEFAULT:"wss://wssusa.im.qcloud.com",BACKUP:"wss://wssusa.my-imcloud.com",STAT:"https://apiusa.my-imcloud.com"}}},D={ANDROID:2,IOS:3,MAC:4,WEB:7,WX_MP:8,QQ_MP:9,TT_MP:10,BAIDU_MP:11,ALI_MP:12,IPAD:13,UNI_NATIVE_APP:15},L="1.7.3",A=537048168,N="CHINA",x="OVERSEA",R="SINGAPORE",P="KOREA",U="GERMANY",V="IND",B="JPN",F="USA",G={HOST:{CURRENT:{DEFAULT:"wss://wss.im.qcloud.com",STAT:"https://events.im.qcloud.com"},setCurrent:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:N;this.CURRENT=j.PRODUCTION[e]}},NAME:{OPEN_IM:"openim",OPEN_IM_MSG_EXT:"openim_msg_ext_http_svc",GROUP:"group_open_http_svc",GROUP_AVCHATROOM:"group_open_avchatroom_http_svc",GROUP_COMMUNITY:"million_group_open_http_svc",GROUP_ATTR:"group_open_attr_http_svc",FRIEND:"sns",PROFILE:"profile",RECENT_CONTACT:"recentcontact",PIC:"openpic",BIG_GROUP_NO_AUTH:"group_open_http_noauth_svc",BIG_GROUP_LONG_POLLING:"group_open_long_polling_http_svc",BIG_GROUP_LONG_POLLING_NO_AUTH:"group_open_long_polling_http_noauth_svc",IM_OPEN_STAT:"imopenstat",WEB_IM:"webim",IM_COS_SIGN:"im_cos_sign_svr",CUSTOM_UPLOAD:"im_cos_msg",HEARTBEAT:"heartbeat",IM_OPEN_PUSH:"im_open_push",IM_OPEN_STATUS:"im_open_status",IM_LONG_MESSAGE:"im_long_msg",IM_CONFIG_MANAGER:"im_sdk_config_mgr",STAT_SERVICE:"StatSvc",OVERLOAD_PUSH:"OverLoadPush",IM_MSG_AUDIT_MGR:"im_msg_audit_mgr",TUIROOM_SVR:"tui_room_svr",IM_OPEN_TRANSLATE:"im_open_translate"},CMD:{LOGIN:"wslogin",LOGOUT_LONG_POLL:"longpollinglogout",LOGOUT:"wslogout",HELLO:"wshello",STAT_BACKGROUND:"ws_stat_background",STAT_FOREGROUND:"ws_stat_foreground",SET_TOKEN:"ws_stat_settoken",PORTRAIT_GET:"portrait_get_all",PORTRAIT_SET:"portrait_set",GET_LONG_POLL_ID:"getlongpollingid",LONG_POLL:"longpolling",AVCHATROOM_LONG_POLL:"get_msg",ADD_FRIEND:"friend_add",UPDATE_FRIEND:"friend_update",GET_FRIEND_LIST:"friend_get",GET_FRIEND_PROFILE:"friend_get_specified",DELETE_FRIEND:"friend_delete",CHECK_FRIEND:"friend_check",GET_FRIEND_GROUP_LIST:"group_get",RESPOND_FRIEND_APPLICATION:"friend_response",GET_FRIEND_APPLICATION_LIST:"pendency_get",DELETE_FRIEND_APPLICATION:"pendency_delete",REPORT_FRIEND_APPLICATION:"pendency_report",GET_GROUP_APPLICATION:"get_pendency",CREATE_FRIEND_GROUP:"group_add",DELETE_FRIEND_GROUP:"group_delete",UPDATE_FRIEND_GROUP:"group_update",GET_BLACKLIST:"black_list_get",ADD_BLACKLIST:"black_list_add",DELETE_BLACKLIST:"black_list_delete",CREATE_GROUP:"create_group",GET_JOINED_GROUPS:"get_joined_group_list",SET_GROUP_ATTRIBUTES:"set_group_attr",MODIFY_GROUP_ATTRIBUTES:"modify_group_attr",DELETE_GROUP_ATTRIBUTES:"delete_group_attr",CLEAR_GROUP_ATTRIBUTES:"clear_group_attr",GET_GROUP_ATTRIBUTES:"get_group_attr",SEND_MESSAGE:"sendmsg",REVOKE_C2C_MESSAGE:"msgwithdraw",DELETE_C2C_MESSAGE:"delete_c2c_msg_ramble",MODIFY_C2C_MESSAGE:"modify_c2c_msg",MODIFY_C2C_MESSAGE_EXTENSIONS:"set_key_values",GET_C2C_MESSAGE_EXTENSIONS:"get_key_values",SEND_GROUP_MESSAGE:"send_group_msg",REVOKE_GROUP_MESSAGE:"group_msg_recall",DELETE_GROUP_MESSAGE:"delete_group_ramble_msg_by_seq",MODIFY_GROUP_MESSAGE:"modify_group_msg",MODIFY_GROUP_MESSAGE_EXTENSIONS:"group_set_key_values",GET_GROUP_MESSAGE_EXTENSIONS:"group_get_key_values",GET_GROUP_INFO:"get_group_self_member_info",GET_GROUP_MEMBER_INFO:"get_specified_group_member_info",GET_GROUP_MEMBER_LIST:"get_group_member_info",GET_AVCHATROOM_MEMBER_LIST:"get_members",MARK_AVCHATROOM_MEMBER_INFO:"modify_user_info",QUIT_GROUP:"quit_group",CHANGE_GROUP_OWNER:"change_group_owner",DESTROY_GROUP:"destroy_group",ADD_GROUP_MEMBER:"add_group_member",DELETE_GROUP_MEMBER:"delete_group_member",BAN_AVCHATROOM_MEMBER:"ban_group_member",SEARCH_GROUP_BY_ID:"get_group_public_info",APPLY_JOIN_GROUP:"apply_join_group",HANDLE_APPLY_JOIN_GROUP:"handle_apply_join_group",HANDLE_INVITE_JOIN_GROUP:"handle_invite_join_permission_group",HANDLE_GROUP_INVITATION:"handle_invite_join_group",MODIFY_GROUP_INFO:"modify_group_base_info",MODIFY_GROUP_MEMBER_INFO:"modify_group_member_info",DELETE_GROUP_SYSTEM_MESSAGE:"deletemsg",DELETE_GROUP_AT_TIPS:"deletemsg",GET_GROUP_NOTIFY:"get_group_notify",GET_CONVERSATION_LIST:"get",PAGING_GET_CONVERSATION_LIST:"page_get",DELETE_CONVERSATION:"batch_delete",CLEAR_HISTORY_MESSAGE:"clear_msg",PIN_CONVERSATION:"top",SET_CONVERSATION_CUSTOM_DATA:"mark_contact",MARK_CONVERSATION:"mark_contact",CREATE_CONVERSATION_GROUP:"create_contact_group",DELETE_CONVERSATION_GROUP:"del_contact_group",UPDATE_CONVERSATION_GROUP:"update_contact_group",GET_CONVERSATION_GROUP_LIST:"get_contact_group",GET_MESSAGES:"getmsg",GET_C2C_ROAM_MESSAGES:"getroammsg",SET_C2C_PEER_MUTE_NOTIFICATIONS:"set_c2c_peer_mute_notifications",GET_C2C_PEER_MUTE_NOTIFICATIONS:"get_c2c_peer_mute_notifications",GET_GROUP_ROAM_MESSAGES:"group_msg_get",GET_READ_RECEIPT:"get_group_msg_receipt",GET_READ_RECEIPT_DETAIL:"get_group_msg_receipt_detail",SEND_READ_RECEIPT:"group_msg_receipt",SEND_C2C_READ_RECEIPT:"c2c_msg_read_receipt",SET_C2C_MESSAGE_READ:"msgreaded",GET_PEER_READ_TIME:"get_peer_read_time",SET_GROUP_MESSAGE_READ:"msg_read_report",FILE_READ_AND_WRITE_AUTHKEY:"authkey",FILE_UPLOAD:"pic_up",COS_SIGN:"cos",COS_PRE_SIG:"pre_sig",VIDEO_COVER:"video_cover",TIM_WEB_REPORT_V2:"tim_web_report_v2",BIG_DATA_HALLWAY_AUTH_KEY:"authkey",GET_ONLINE_MEMBER_NUM:"get_online_member_num",ALIVE:"alive",MESSAGE_PUSH:"msg_push",MULTI_MESSAGE_PUSH:"multi_msg_push_ws",MESSAGE_PUSH_ACK:"ws_msg_push_ack",STATUS_FORCE_OFFLINE:"stat_forceoffline",DOWNLOAD_MERGER_MESSAGE:"get_relay_json_msg",UPLOAD_MERGER_MESSAGE:"save_relay_json_msg",FETCH_CLOUD_CONTROL_CONFIG:"fetch_config",PUSHED_CLOUD_CONTROL_CONFIG:"push_configv2",FETCH_COMMERCIAL_CONFIG:"fetch_imsdk_purchase_bitsv2",PUSHED_COMMERCIAL_CONFIG:"push_imsdk_purchase_bitsv2",KICK_OTHER:"KickOther",OVERLOAD_NOTIFY:"notify2",SET_ALL_MESSAGE_READ:"read_all_unread_msg",CREATE_TOPIC:"create_topic",DELETE_TOPIC:"destroy_topic",UPDATE_TOPIC_PROFILE:"modify_topic",GET_TOPIC_LIST:"get_topic",SET_SELF_STATUS:"ws_set_custom_status",GET_USER_STATUS:"ws_get_user_status",SUBSCRIBE_USER_STATUS:"ws_status_subscribe",UNSUBSCRIBE_USER_STATUS:"ws_status_unsubscribe",GET_RPOFANITY_LIST:"get_local_words",TRANSLATE_TEXT:"ws_batch_trans_text",UPDATE_GROUP_COUNTER:"update_group_counter",GET_GROUP_COUNTER:"get_group_counter"},CHANNEL:{SOCKET:1,XHR:2,AUTO:0},NAME_VERSION:{openim:"v4",group_open_http_svc:"v4",sns:"v4",profile:"v4",recentcontact:"v4",openpic:"v4",group_open_http_noauth_svc:"v4",group_open_long_polling_http_svc:"v4",group_open_long_polling_http_noauth_svc:"v4",imopenstat:"v4",im_cos_sign_svr:"v4",im_cos_msg:"v4",webim:"v4",im_open_push:"v4",im_open_status:"v4"}},z={SEARCH_MSG:new E(0,Math.pow(2,0)).toString(),SEARCH_GRP_SNS:new E(0,Math.pow(2,1)).toString(),AVCHATROOM_HISTORY_MSG:new E(0,Math.pow(2,2)).toString(),GRP_COMMUNITY:new E(0,Math.pow(2,3)).toString(),MSG_TO_SPECIFIED_GRP_MBR:new E(0,Math.pow(2,4)).toString(),AVCHATROOM_MBR_LIST:new E(0,Math.pow(2,6)).toString(),USER_STATUS:new E(0,Math.pow(2,7)).toString(),CONV_MARK:new E(0,Math.pow(2,9)).toString(),CONV_GROUP:new E(0,Math.pow(2,10)).toString(),AVCHATROOM_BAN_MBR:new E(0,Math.pow(2,11)).toString(),MSG_EXT:new E(0,Math.pow(2,13)).toString(),GRP_COUNTER:new E(0,Math.pow(2,15)).toString()},H="c2c_text_message",Y="c2c_custom_message",q="group_text_message",W="group_custom_message",K="user_profile",$="group_profile",J="group_member_profile";G.HOST.setCurrent(N);var Q="undefined"!=typeof wx&&"function"==typeof wx.getSystemInfoSync&&Boolean(wx.getSystemInfoSync().fontSizeSetting),X="undefined"!=typeof qq&&"function"==typeof qq.getSystemInfoSync&&Boolean(qq.getSystemInfoSync().fontSizeSetting),Z="undefined"!=typeof tt&&"function"==typeof tt.getSystemInfoSync&&Boolean(tt.getSystemInfoSync().fontSizeSetting),ee="undefined"!=typeof swan&&"function"==typeof swan.getSystemInfoSync&&Boolean(swan.getSystemInfoSync().fontSizeSetting),te="undefined"!=typeof my&&"function"==typeof my.getSystemInfoSync&&Boolean(my.getSystemInfoSync().fontSizeSetting),ne="undefined"!=typeof jd&&"function"==typeof jd.getSystemInfoSync,re="undefined"!=typeof uni&&"undefined"==typeof window&&"function"==typeof uni.requireNativePlugin,oe="undefined"!=typeof uni,ae=Q||X||Z||ee||te||re||ne,ie=("undefined"!=typeof uni||"undefined"!=typeof window)&&!ae,se=X?qq:Z?tt:ee?swan:te?my:Q?wx:re?uni:ne?jd:{},ce=ie&&window&&window.navigator&&window.navigator.userAgent||"",le=/(micromessenger|webbrowser)/i.test(ce),ue=/AppleWebKit\/([\d.]+)/i.exec(ce);ue&&parseFloat(ue.pop());var de,pe,fe=(de="WEB",le?de="WEB":X?de="QQ_MP":Z?de="TT_MP":ee?de="BAIDU_MP":te?de="ALI_MP":Q?de="WX_MP":re&&(de="UNI_NATIVE_APP"),D[de]),he=/iPad/i.test(ce),me=/iPhone/i.test(ce)&&!he,ve=/iPod/i.test(ce),ge=me||he||ve,_e=(pe=ce.match(/OS (\d+)_/i))&&pe[1]?pe[1]:null,ye=/Android/i.test(ce),be=function(){var e=ce.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;var t=e[1]&&parseFloat(e[1]),n=e[2]&&parseFloat(e[2]);return t&&n?parseFloat(e[1]+"."+e[2]):t||null}();!function(){var e=ce.match(/Chrome\/(\d+)/);e&&e[1]&&parseFloat(e[1])}();var Oe=/MSIE/.test(ce)||ce.indexOf("Trident")>-1&&ce.indexOf("rv:11.0")>-1,Me=function(){var e=/MSIE\s(\d+)\.\d/.exec(ce),t=e&&parseFloat(e[1]);return!t&&/Trident\/7.0/i.test(ce)&&/rv:11.0/.test(ce)&&(t=11),t}();!function(){var e=ce.match(/TBS\/(\d+)/i);e&&e[1]&&e[1]}();var ke,Ce,we=/Windows/i.test(ce),Ie=/MAC OS X/i.test(ce),Se=ie&&"undefined"!=typeof Worker&&!Oe,Te=ye||ge,Ee=ie&&void 0!==window.tencent_cloud_im_csig_flutter_for_web_25F_cy;ke="undefined"!=typeof console?console:"undefined"!=typeof t&&t.console?t.console:"undefined"!=typeof window&&window.console?window.console:{};for(var je=function(){},De=["assert","clear","count","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","profile","profileEnd","table","time","timeEnd","timeStamp","trace","warn"],Le=De.length;Le--;)Ce=De[Le],console[Ce]||(ke[Ce]=je);var Ae=ke,Ne=0,xe=function(){return(new Date).getTime()+Ne},Re=function(){Ne=0},Pe=function(){return Math.floor(xe()/1e3)},Ue=0;function Ve(){return Ht()?"%c TIM %c":"TIM"}function Be(){var e,t=((e=new Date).setTime(xe()),e);return t.toLocaleTimeString("en-US",{hour12:!1})+"."+function(e){var t;switch(e.toString().length){case 1:t="00"+e;break;case 2:t="0"+e;break;default:t=e}return t}(t.getMilliseconds())}var Fe={arguments2String:function(e){var t="";if(1===e.length)t=e[0];else for(var n=0,r=e.length;n<r;n++)st(e[n])?lt(e[n])?t+=ft(e[n]):t+=JSON.stringify(e[n]):t+=e[n],t+=" ";return t},_exec:function(e,t){Ht()?Ae[e](Ve(),"background:#0abf5b; padding:1px; border-radius:3px; color: #fff","background:transparent",Be(),t):Ae[e]("".concat(Ve()," ").concat(Be()," ").concat(t))},d:function(){if(Ue<=-1){var e=this.arguments2String(arguments);this._exec("debug",e)}},l:function(){if(Ue<=0){var e=this.arguments2String(arguments);this._exec("log",e)}},log:function(){if(Ue<=0){var e=this.arguments2String(arguments);this._exec("log",e)}},i:function(){if(Ue<=1){var e=this.arguments2String(arguments);this._exec("info",e)}},w:function(){if(Ue<=2){var e=this.arguments2String(arguments);this._exec("warn",e)}},e:function(){if(Ue<=3){var e=this.arguments2String(arguments);this._exec("error",e)}},setLevel:function(e){e<4&&this._exec("log","set level from "+Ue+" to "+e),Ue=e},getLevel:function(){return Ue}},Ge={JPG:1,JPEG:1,GIF:2,PNG:3,BMP:4,UNKNOWN:255},ze={NICK:"Tag_Profile_IM_Nick",GENDER:"Tag_Profile_IM_Gender",BIRTHDAY:"Tag_Profile_IM_BirthDay",LOCATION:"Tag_Profile_IM_Location",SELFSIGNATURE:"Tag_Profile_IM_SelfSignature",ALLOWTYPE:"Tag_Profile_IM_AllowType",LANGUAGE:"Tag_Profile_IM_Language",AVATAR:"Tag_Profile_IM_Image",MESSAGESETTINGS:"Tag_Profile_IM_MsgSettings",ADMINFORBIDTYPE:"Tag_Profile_IM_AdminForbidType",LEVEL:"Tag_Profile_IM_Level",ROLE:"Tag_Profile_IM_Role"},He={UNKNOWN:"Gender_Type_Unknown",FEMALE:"Gender_Type_Female",MALE:"Gender_Type_Male"},Ye={NONE:"AdminForbid_Type_None",SEND_OUT:"AdminForbid_Type_SendOut"},qe={NEED_CONFIRM:"AllowType_Type_NeedConfirm",ALLOW_ANY:"AllowType_Type_AllowAny",DENY_ANY:"AllowType_Type_DenyAny"},We="JoinedSuccess",Ke="WaitAdminApproval",$e="@TGS#_",Je="@TOPIC#_",Qe=["url"],Xe=function(e){return"map"===ut(e)},Ze=function(e){return"file"===ut(e)},et=function(e){return null!==e&&("number"==typeof e&&!isNaN(e-0)||"object"===r(e)&&e.constructor===Number)},nt=function(e){return"string"==typeof e},rt=function(e){return null!==e&&"object"===r(e)},ot=function(e){if("object"!==r(e)||null===e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;for(var n=t;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return t===n},at=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"array"===ut(e)},it=function(e){return void 0===e},st=function(e){return at(e)||rt(e)},ct=function(e){return"function"==typeof e},lt=function(e){return e instanceof Error},ut=function(e){return Object.prototype.toString.call(e).match(/^\[object (.*)\]$/)[1].toLowerCase()},dt=function(e){if("string"!=typeof e)return!1;var t=e[0];return!/[^a-zA-Z0-9]/.test(t)};Date.now||(Date.now=function(){return(new Date).getTime()});var pt=function e(t,n,r,o){if(!st(t)||!st(n))return 0;for(var a,i=0,s=Object.keys(n),c=0,l=s.length;c<l;c++)if(a=s[c],!(it(n[a])||r&&r.includes(a)))if(st(t[a])&&st(n[a]))i+=e(t[a],n[a],r,o);else{if(o&&o.includes(n[a]))continue;t[a]!==n[a]&&(t[a]=n[a],i+=1)}return i},ft=function(e){return JSON.stringify(e,["message","code"])},ht=function(e){if(0===e.length)return 0;for(var t=0,n=0,r="undefined"!=typeof document&&void 0!==document.characterSet?document.characterSet:"UTF-8";void 0!==e[t];)n+=e[t++].charCodeAt[t]<=255?1:!1===r?3:2;return n},mt=function(e){var t=e||99999999;return Math.round(Math.random()*t)},vt="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",gt=vt.length,_t=function(e,t){for(var n in e)if(e[n]===t)return!0;return!1},yt={},bt=function(e){return-1===e.indexOf("http://")||-1===e.indexOf("https://")?"https://"+e:e.replace(/https|http/,"https")},Ot=function e(t){if(0===Object.getOwnPropertyNames(t).length)return Object.create(null);var n=Array.isArray(t)?[]:Object.create(null),o="";for(var a in t)null!==t[a]?void 0!==t[a]?(o=r(t[a]),["string","number","function","boolean"].indexOf(o)>=0?n[a]=t[a]:n[a]=e(t[a])):n[a]=void 0:n[a]=null;return n};function Mt(e,t){if(!at(e)||!at(t))return!1;var n=!1;return t.forEach((function(t){var r=t.key,o=t.value,a=e.find((function(e){return e.key===r}));a?a.value!==o&&(a.value=o,n=!0):(e.push({key:r,value:o}),n=!0)})),n}var kt=function(e){return e===S.GRP_AVCHATROOM},Ct=function(e){var t=e.type,n=e.groupID;return t===S.GRP_COMMUNITY||"".concat(n).startsWith($e)&&!"".concat(n).includes(Je)},wt=function(e){return"".concat(e).startsWith($e)&&"".concat(e).includes(Je)},It=function(e){return nt(e)&&e.slice(0,3)===S.CONV_C2C},St=function(e){return nt(e)&&e.slice(0,5)===S.CONV_GROUP},Tt=function(e){return nt(e)&&e===S.CONV_SYSTEM};function Et(e,t){var n={};return Object.keys(e).forEach((function(r){n[r]=t(e[r],r)})),n}function jt(e){return ae?new Promise((function(t,n){se.getImageInfo({src:e,success:function(e){t({width:e.width,height:e.height})},fail:function(){t({width:0,height:0})}})})):Oe&&9===Me?Promise.resolve({width:0,height:0}):new Promise((function(t,n){var r=new Image;r.onload=function(){t({width:this.width,height:this.height}),r=null},r.onerror=function(){t({width:0,height:0}),r=null},r.src=e}))}function Dt(){function e(){return(65536*(1+Math.random())|0).toString(16).substring(1)}return"".concat(e()+e()).concat(e()).concat(e()).concat(e()).concat(e()).concat(e()).concat(e())}function Lt(){var e="unknown";if(Ie&&(e="mac"),we&&(e="windows"),ge&&(e="ios"),ye&&(e="android"),ae)try{var t=se.getSystemInfoSync().platform;void 0!==t&&(e=t)}catch(r){}return e}function At(e,t){e=e.split("."),t=t.split(".");for(var n=Math.max(e.length,t.length);e.length<n;)e.push("0");for(;t.length<n;)t.push("0");for(var r=0;r<n;r++){var o=parseInt(e[r]),a=parseInt(t[r]);if(o>a)return 1;if(o<a)return-1}return 0}function Nt(e){var t=e.originUrl,n=void 0===t?void 0:t,r=e.originWidth,o=e.originHeight,a=e.min,i=void 0===a?198:a,s=parseInt(r),c=parseInt(o),l={url:void 0,width:0,height:0};if((s<=c?s:c)<=i)l.url=n,l.width=s,l.height=c;else{c<=s?(l.width=Math.ceil(s*i/c),l.height=i):(l.width=i,l.height=Math.ceil(c*i/s));var u=n&&n.indexOf("?")>-1?"".concat(n,"&"):"".concat(n,"?");l.url="".concat(u,198===i?"imageView2/3/w/198/h/198":"imageView2/3/w/720/h/720")}return it(n)?(l.url,h(l,Qe)):l}function xt(e){var t=e[2];e[2]=e[1],e[1]=t;for(var n=0;n<e.length;n++)e[n].setType(n)}function Rt(e){var t=e.servcmd;return t.slice(t.indexOf(".")+1)}function Pt(e,t){return Math.round(Number(e)*Math.pow(10,t))/Math.pow(10,t)}function Ut(e,t){return e.includes(t)}function Vt(e,t){return e.includes(t)}function Bt(e){return e.split(Je)[0]}var Ft=function(e,t,n){if(it(t))return"";switch(e){case S.MSG_TEXT:return t.text;case S.MSG_IMAGE:return n?"[Image]":"[图片]";case S.MSG_LOCATION:return n?"[Location]":"[位置]";case S.MSG_AUDIO:return n?"[Voice]":"[语音]";case S.MSG_VIDEO:return n?"[Video]":"[视频]";case S.MSG_FILE:return n?"[File]":"[文件]";case S.MSG_CUSTOM:return n?"[Custom Messages]":"[自定义消息]";case S.MSG_GRP_TIP:return n?"[Group Notification]":"[群提示消息]";case S.MSG_GRP_SYS_NOTICE:return n?"[Group System Message]":"[群系统通知]";case S.MSG_FACE:return n?"[Animated Sticker]":"[动画表情]";case S.MSG_MERGER:return n?"[Chat Record]":"[聊天记录]";default:return""}};function Gt(e){return e===S.MSG_TEXT||e===S.MSG_CUSTOM||e===S.MSG_LOCATION||e===S.MSG_FACE}function zt(e){var t=[];if(!nt(e))return t;var n=e.length;if(0===n)return t;for(var r=n-1;r>=0;r--)"1"===e[r]&&t.push(Math.pow(2,n-r-1));return t}function Ht(){return!Oe&&!ae}function Yt(e){return"the length of userIDList cannot exceed ".concat(e)}function qt(e,t){if(e){var n=e;return t&&(e.startsWith("http://")?n=e.replace(/^http:\/\/[^/]+/,t):e.startsWith("https://")&&(n=e.replace(/^https:\/\/[^/]+/,t))),n}}var Wt=Object.prototype.hasOwnProperty;function Kt(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(ot(e)){for(var t in e)if(Wt.call(e,t))return!1;return!0}return!(!Xe(e)&&(n=e,"set"!==ut(n))&&!Ze(e))&&0===e.size;var n}function $t(e,t,n){if(void 0===t)return!0;var r=!0;if(ot(t))Object.keys(t).forEach((function(o){var a=1===e.length?e[0][o]:void 0;r=!!Jt(a,t[o],n,o)&&r}));else if(at(t))for(var o=0;o<t.length;o++)r=!!Jt(e[o],t[o],n,t[o].name)&&r;if(r)return r;throw new Error("Params validate failed.")}function Jt(e,t,n,r){if(void 0===t)return!0;var o=!0;if(t.required&&Kt(e)&&(Fe.e("[".concat(n,'] Missing required params: "').concat(r,'".')),o=!1),!Kt(e)){var a=ut(e),i=t.type.toLowerCase();a!==i&&("asyncfunction"===a&&"function"===i||(Fe.e("[".concat(n,'] Invalid params: type check failed for "').concat(r,'".Expected ').concat(t.type,".")),o=!1))}return t.validator&&!t.validator(e)&&(Fe.e("[".concat(n,"] Invalid params: custom validator check failed for params.")),o=!1),o}var Qt,Xt={UNSEND:"unSend",SUCCESS:"success",FAIL:"fail"},Zt={NOT_START:"notStart",PENDING:"pending",RESOLVED:"resolved",REJECTED:"rejected"},en=function(e){if(!e)return!1;if(It(e)||St(e)||Tt(e))return!0;var t=Sn("InvalidConversationID",e);return t&&Fe.w(t),!1},tn=function(e){""!==e.desc&&""!==Sn("API_REFER")&&Fe.w("[".concat(e.api,"] | ").concat(e.param," | ").concat(e.desc,", ").concat(Sn("API_REFER")).concat(e.api))},nn=function(){return Sn("StringRequiredLog")},rn=function(e){return Sn("NonEmptyStringRequiredLog",e)},on=function(){return Sn("NumberRequiredLog")},an=function(){return Sn("UndefinedNotAllowedLog")},sn=function(){return Sn("FileRequiredLog")},cn=function(){return Sn("FunctionRequiredLog")},ln=function(){return Sn("ArrayRequiredLog")},un=function(){return Sn("NonEmptyArrayLog")},dn=function(){return Sn("CallbackMissingLog")},pn=function(){return Sn("PositiveIntegerRequiredLog")},fn=function(e,t){return Sn("StringNotLongerThanLog",e,t)},hn=function(e,t){return Sn("NumberLessThanLog",e,t)},mn=function(e){return Sn("KeyValueStringRequiredLog",e)},vn=function(){return Sn("PlainObjectRequiredLog")},gn=function(){return Sn("NonEmptyContentRequiredLog")},_n=function(){return Sn("FileNotSelectedLog")},yn=function(){return Sn("MessageInstanceRequiredLog")},bn=function(){return Sn("NonAnonymousFunctionLog")},On=function(){return Sn("MessageExtensionNotAvailableLog")},Mn={type:"String",required:!0},kn={type:"Array",required:!0},Cn={type:"Object",required:!0},wn={type:"Boolean",required:!0},In={type:"number",required:!0},Sn=null,Tn={hookGetAPITips:function(e){Sn=e},login:{userID:Mn,userSig:Mn},addToBlacklist:{userIDList:kn},removeFromBlacklist:{userIDList:kn},on:[{name:"eventName",type:"String",validator:function(e){return"string"==typeof e&&0!==e.length||(tn({api:"on",param:"eventName",desc:rn("eventName")}),!1)}},{name:"handler",type:"Function",validator:function(e){return"function"!=typeof e?(tn({api:"on",param:"handler",desc:cn()}),!1):(""===e.name&&tn({api:"on",param:"handler",desc:bn()}),!0)}}],once:[{name:"eventName",type:"String",validator:function(e){return"string"==typeof e&&0!==e.length||(tn({api:"once",param:"eventName",desc:rn("eventName")}),!1)}},{name:"handler",type:"Function",validator:function(e){return"function"!=typeof e?(tn({api:"once",param:"handler",desc:cn()}),!1):(""===e.name&&tn({api:"once",param:"handler",desc:bn()}),!0)}}],off:[{name:"eventName",type:"String",validator:function(e){return"string"==typeof e&&0!==e.length||(tn({api:"off",param:"eventName",desc:rn("eventName")}),!1)}},{name:"handler",type:"Function",validator:function(e){return"function"!=typeof e?(tn({api:"off",param:"handler",desc:cn()}),!1):(""===e.name&&tn({api:"off",param:"handler",desc:bn()}),!0)}}],sendMessage:[n({name:"message"},Cn)],setMessageExtensions:[n(n({name:"message"},Cn),{},{validator:function(e){return e.status===Xt.SUCCESS&&!0===e.isSupportExtension||(tn({api:"setMessageExtensions",param:"message",desc:On()}),!1)}}),n({name:"extensions"},kn)],getMessageExtensions:[n(n({name:"message"},Cn),{},{validator:function(e){return e.status===Xt.SUCCESS&&!0===e.isSupportExtension||(tn({api:"getMessageExtensions",param:"message",desc:On()}),!1)}})],deleteMessageExtensions:[n(n({name:"message"},Cn),{},{validator:function(e){return e.status===Xt.SUCCESS&&!0===e.isSupportExtension||(tn({api:"deleteMessageExtensions",param:"message",desc:On()}),!1)}})],getMessageList:{conversationID:n(n({},Mn),{},{validator:function(e){return en(e)}}),nextReqMessageID:{type:"String"},count:{type:"Number",validator:function(e){return!(!it(e)&&!/^[1-9][0-9]*$/.test(e))||(tn({api:"getMessageList",param:"count",desc:pn()}),!1)}}},getMessageListHopping:{conversationID:n(n({},Mn),{},{validator:function(e){return en(e)}}),sequence:{type:"Number"},time:{type:"Number"},direction:{type:"Number",validator:function(e){return!(!it(e)&&0!==e&&1!==e)||(tn({api:"getMessageListHopping",param:"direction",desc:Sn("0Or1RequiredLog")}),!1)}},count:{type:"Number",validator:function(e){return!(!it(e)&&!/^[1-9][0-9]*$/.test(e))||(tn({api:"getMessageListHopping",param:"count",desc:pn}),!1)}}},setMessageRead:{conversationID:n(n({},Mn),{},{validator:function(e){return en(e)}})},setAllMessageRead:{scope:{type:"String",required:!1,validator:function(e){return!e||-1!==[S.READ_ALL_C2C_MSG,S.READ_ALL_GROUP_MSG,S.READ_ALL_MSG].indexOf(e)||(tn({api:"setAllMessageRead",param:"scope",desc:"TIM.TYPES.READ_ALL_C2C_MSG or TIM.TYPES.READ_ALL_GROUP_MSG or TIM.TYPES.READ_ALL_MSG required"}),!1)}}},getConversationProfile:[n(n({name:"conversationID"},Mn),{},{validator:function(e){return en(e)}})],clearHistoryMessage:[n(n({name:"conversationID"},Mn),{},{validator:function(e){return en(e)}})],pinConversation:{conversationID:n(n({},Mn),{},{validator:function(e){return en(e)}}),isPinned:n({},wn)},setConversationCustomData:{conversationIDList:n({},kn),customData:{type:"String",validator:function(e){return nt(e)?!(e.length>256)||(tn({api:"setConversationCustomData",param:"customData",desc:fn("customData",256)}),!1):(tn({api:"setConversationCustomData",param:"customData",desc:nn()}),!1)}}},markConversation:{conversationIDList:n({},kn),markType:{type:"number",validator:function(e){return et(e)?e<=0?(tn({api:"markConversation",param:"markType",desc:(t="markType",n=0,Sn("NumberGreaterThanLog",t,n))}),!1):!(e>=Math.pow(2,64))||(tn({api:"markConversation",param:"markType",desc:hn("markType","Math.pow(2,64)")}),!1):(tn({api:"markConversation",param:"markType",desc:on()}),!1);var t,n}},enableMark:n({},wn)},createConversationGroup:{conversationIDList:n({},kn),groupName:n(n({},Mn),{},{validator:function(e){return!!e&&(!(e.length>32)||(tn({api:"createConversationGroup",param:"groupName",desc:fn("groupName",32)}),!1))}})},deleteConversationGroup:[n({name:"groupName"},Mn)],renameConversationGroup:{oldName:n({},Mn),newName:n(n({},Mn),{},{validator:function(e){return!!e&&(!(e.length>32)||(tn({api:"renameConversationGroup",param:"newName",desc:fn("newName",32)}),!1))}})},addConversationsToGroup:{conversationIDList:n({},kn),groupName:n({},Mn)},deleteConversationsFromGroup:{conversationIDList:n({},kn),groupName:n({},Mn)},getGroupList:{groupProfileFilter:{type:"Array"}},getGroupProfile:{groupID:Mn,groupCustomFieldFilter:{type:"Array"},memberCustomFieldFilter:{type:"Array"}},getGroupProfileAdvance:{groupIDList:kn},createGroup:{name:Mn},joinGroup:{groupID:Mn,type:{type:"String"},applyMessage:{type:"String"}},quitGroup:[n({name:"groupID"},Mn)],handleApplication:{message:Cn,handleAction:Mn,handleMessage:{type:"String"}},changeGroupOwner:{groupID:Mn,newOwnerID:Mn},updateGroupProfile:{groupID:Mn,muteAllMembers:{type:"Boolean"}},dismissGroup:[n({name:"groupID"},Mn)],searchGroupByID:[n({name:"groupID"},Mn)],initGroupAttributes:{groupID:Mn,groupAttributes:n(n({},Cn),{},{validator:function(e){var t=!0;return Object.keys(e).forEach((function(n){if(!nt(e[n]))return tn({api:"initGroupAttributes",param:"groupAttributes",desc:mn("value")}),t=!1})),t}})},setGroupAttributes:{groupID:Mn,groupAttributes:n(n({},Cn),{},{validator:function(e){var t=!0;return Object.keys(e).forEach((function(n){if(!nt(e[n]))return tn({api:"setGroupAttributes",param:"groupAttributes",desc:mn("value")}),t=!1})),t}})},deleteGroupAttributes:{groupID:Mn,keyList:{type:"Array",validator:function(e){if(it(e)||!at(e))return tn({api:"deleteGroupAttributes",param:"keyList",desc:ln()}),!1;if(!Kt(e)){var t=!0;return e.forEach((function(e){if(!nt(e))return tn({api:"deleteGroupAttributes",param:"keyList",desc:Sn("StringArrayRequiredLog")}),t=!1})),t}return!0}}},getGroupAttributes:{groupID:Mn,keyList:{type:"Array",validator:function(e){if(it(e)||!at(e))return tn({api:"getGroupAttributes",param:"keyList",desc:ln()}),!1;if(!Kt(e)){var t=!0;return e.forEach((function(e){if(!nt(e))return tn({api:"getGroupAttributes",param:"keyList",desc:mn("key")}),t=!1})),t}return!0}}},setGroupCounters:{groupID:Mn,counters:Cn},increaseGroupCounter:{groupID:Mn,key:Mn,value:In},decreaseGroupCounter:{groupID:Mn,key:Mn,value:In},getGroupCounters:{groupID:Mn},getGroupMemberList:{groupID:Mn,count:{type:"Number"}},getGroupMemberProfile:{groupID:Mn,userIDList:kn,memberCustomFieldFilter:{type:"Array"}},addGroupMember:{groupID:Mn,userIDList:kn},setGroupMemberRole:{groupID:Mn,userID:Mn,role:Mn},setGroupMemberMuteTime:{groupID:Mn,userID:Mn,muteTime:{type:"Number",validator:function(e){return e>=0}}},setGroupMemberNameCard:{groupID:Mn,userID:{type:"String"},nameCard:{type:"String",validator:function(e){return nt(e)?(e.length,!0):(tn({api:"setGroupMemberNameCard",param:"nameCard",desc:nn()}),!1)}}},setGroupMemberCustomField:{groupID:Mn,userID:{type:"String"},memberCustomField:kn},deleteGroupMember:{groupID:Mn},markGroupMemberList:{groupID:Mn,markType:{type:"number",validator:function(e){return et(e)?!(e<1e3)||(tn({api:"markGroupMemberList",param:"markType",desc:(t="markType",n=1e3,Sn("NumberGreaterOrEqualLog",t,n))}),!1):(tn({api:"markGroupMemberList",param:"markType",desc:on()}),!1);var t,n}},userIDList:n({},kn),enableMark:n({},wn)},createTextMessage:{to:Mn,conversationType:Mn,payload:n(n({},Cn),{},{validator:function(e){return ot(e)?nt(e.text)?0!==e.text.length||(tn({api:"createTextMessage",param:"payload.text",desc:gn()}),!1):(tn({api:"createTextMessage",param:"payload.text",desc:nn()}),!1):(tn({api:"createTextMessage",param:"payload",desc:vn()}),!1)}})},createTextAtMessage:{to:Mn,conversationType:Mn,payload:n(n({},Cn),{},{validator:function(e){return ot(e)?nt(e.text)?0===e.text.length?(tn({api:"createTextAtMessage",param:"payload.text",desc:gn()}),!1):!(e.atUserList&&!at(e.atUserList))||(tn({api:"createTextAtMessage",param:"payload.atUserList",desc:ln()}),!1):(tn({api:"createTextAtMessage",param:"payload.text",desc:nn()}),!1):(tn({api:"createTextAtMessage",param:"payload",desc:vn()}),!1)}})},createCustomMessage:{to:Mn,conversationType:Mn,payload:n(n({},Cn),{},{validator:function(e){return ot(e)?e.data&&!nt(e.data)?(tn({api:"createCustomMessage",param:"payload.data",desc:nn()}),!1):e.description&&!nt(e.description)?(tn({api:"createCustomMessage",param:"payload.description",desc:nn()}),!1):!(e.extension&&!nt(e.extension))||(tn({api:"createCustomMessage",param:"payload.extension",desc:nn()}),!1):(tn({api:"createCustomMessage",param:"payload",desc:vn()}),!1)}})},createImageMessage:{to:Mn,conversationType:Mn,payload:n(n({},Cn),{},{validator:function(e){if(!ot(e))return tn({api:"createImageMessage",param:"payload",desc:vn()}),!1;if(it(e.file))return tn({api:"createImageMessage",param:"payload.file",desc:an()}),!1;if(ie){if(!(e.file instanceof HTMLInputElement||Ze(e.file)))return ot(e.file)&&"undefined"!=typeof uni?0!==e.file.tempFilePaths.length&&0!==e.file.tempFiles.length||(tn({api:"createImageMessage",param:"payload.file",desc:_n()}),!1):(tn({api:"createImageMessage",param:"payload.file",desc:sn()}),!1);if(e.file instanceof HTMLInputElement&&0===e.file.files.length)return tn({api:"createImageMessage",param:"payload.file",desc:_n()}),!1}return!0},onProgress:{type:"Function",required:!1,validator:function(e){return it(e)&&tn({api:"createImageMessage",param:"onProgress",desc:dn()}),!0}}})},createAudioMessage:{to:Mn,conversationType:Mn,payload:n(n({},Cn),{},{validator:function(e){return!!ot(e)||(tn({api:"createAudioMessage",param:"payload",desc:vn()}),!1)}}),onProgress:{type:"Function",required:!1,validator:function(e){return it(e)&&tn({api:"createAudioMessage",param:"onProgress",desc:dn()}),!0}}},createVideoMessage:{to:Mn,conversationType:Mn,payload:n(n({},Cn),{},{validator:function(e){if(!ot(e))return tn({api:"createVideoMessage",param:"payload",desc:vn()}),!1;if(it(e.file))return tn({api:"createVideoMessage",param:"payload.file",desc:an()}),!1;if(ie){if(!(e.file instanceof HTMLInputElement||Ze(e.file)))return ot(e.file)&&"undefined"!=typeof uni?!!Ze(e.file.tempFile)||(tn({api:"createVideoMessage",param:"payload.file",desc:_n()}),!1):(tn({api:"createVideoMessage",param:"payload.file",desc:sn()}),!1);if(e.file instanceof HTMLInputElement&&0===e.file.files.length)return tn({api:"createVideoMessage",param:"payload.file",desc:_n()}),!1}return!0}}),onProgress:{type:"Function",required:!1,validator:function(e){return it(e)&&tn({api:"createVideoMessage",param:"onProgress",desc:dn()}),!0}}},createFaceMessage:{to:Mn,conversationType:Mn,payload:n(n({},Cn),{},{validator:function(e){return ot(e)?et(e.index)?!!nt(e.data)||(tn({api:"createFaceMessage",param:"payload.data",desc:nn()}),!1):(tn({api:"createFaceMessage",param:"payload.index",desc:on()}),!1):(tn({api:"createFaceMessage",param:"payload",desc:vn()}),!1)}})},createFileMessage:{to:Mn,conversationType:Mn,payload:n(n({},Cn),{},{validator:function(e){if(!ot(e))return tn({api:"createFileMessage",param:"payload",desc:vn()}),!1;if(it(e.file))return tn({api:"createFileMessage",param:"payload.file",desc:an()}),!1;if(ie){if(!(e.file instanceof HTMLInputElement||Ze(e.file)))return ot(e.file)&&"undefined"!=typeof uni?0!==e.file.tempFilePaths.length&&0!==e.file.tempFiles.length||(tn({api:"createFileMessage",param:"payload.file",desc:_n()}),!1):(tn({api:"createFileMessage",param:"payload.file",desc:sn()}),!1);if(e.file instanceof HTMLInputElement&&0===e.file.files.length)return tn({api:"createFileMessage",param:"payload.file",desc:_n()}),!1}return!0}}),onProgress:{type:"Function",required:!1,validator:function(e){return it(e)&&tn({api:"createFileMessage",param:"onProgress",desc:dn()}),!0}}},createLocationMessage:{to:Mn,conversationType:Mn,payload:n(n({},Cn),{},{validator:function(e){return ot(e)?nt(e.description)?et(e.longitude)?!!et(e.latitude)||(tn({api:"createLocationMessage",param:"payload.latitude",desc:on()}),!1):(tn({api:"createLocationMessage",param:"payload.longitude",desc:on()}),!1):(tn({api:"createLocationMessage",param:"payload.description",desc:nn()}),!1):(tn({api:"createLocationMessage",param:"payload",desc:vn()}),!1)}})},createMergerMessage:{to:Mn,conversationType:Mn,payload:n(n({},Cn),{},{validator:function(e){if(Kt(e.messageList))return tn({api:"createMergerMessage",param:"payload.messageList",desc:un()}),!1;if(Kt(e.compatibleText))return tn({api:"createMergerMessage",param:"payload.compatibleText",desc:rn("compatibleText")}),!1;var t=!1;return e.messageList.forEach((function(e){e.status===Xt.FAIL&&(t=!0)})),!t||(tn({api:"createMergerMessage",param:"payload.messageList",desc:Sn("MergeFailedMessageLog")}),!1)}})},revokeMessage:[n(n({name:"message"},Cn),{},{validator:function(e){return Kt(e)?(tn({api:"revokeMessage",param:"message",desc:yn()}),!1):e.conversationType===S.CONV_SYSTEM?(tn({api:"revokeMessage",param:"message",desc:Sn("MessageCanBeRevokedDesc")}),!1):!0!==e.isRevoked||(tn({api:"revokeMessage",param:"message",desc:Sn("MessageRevokedLog")}),!1)}})],deleteMessage:[n(n({name:"messageList"},kn),{},{validator:function(e){return!Kt(e)||(tn({api:"deleteMessage",param:"messageList",desc:un()}),!1)}})],translateText:{sourceTextList:kn,sourceLanguage:Mn,targetLanguage:Mn},modifyMessage:[n(n({name:"message"},Cn),{},{validator:function(e){return Kt(e)?(tn({api:"modifyMessage",param:"message",desc:yn()}),!1):e.conversationType===S.CONV_SYSTEM?(tn({api:"modifyMessage",param:"message",desc:Sn("MessageCanBeModifiedLog")}),!1):!0!==e._onlineOnlyFlag||(tn({api:"modifyMessage",param:"message",desc:Sn("OnlineMessageNotSupportLog")}),!1)}})],getUserProfile:{userIDList:{type:"Array",validator:function(e){return at(e)?(0===e.length&&tn({api:"getUserProfile",param:"userIDList",desc:un()}),!0):(tn({api:"getUserProfile",param:"userIDList",desc:ln()}),!1)}}},updateMyProfile:{profileCustomField:{type:"Array",validator:function(e){return!!it(e)||!!at(e)||(tn({api:"updateMyProfile",param:"profileCustomField",desc:ln()}),!1)}}},setSelfStatus:{customStatus:{type:"String",validator:function(e){return!!nt(e)||(tn({api:"setSelfStatus",param:"customStatus",desc:nn()}),!1)}}},getUserStatus:{userIDList:{type:"Array",validator:function(e){return at(e)?0!==e.length||(tn({api:"getUserStatus",param:"userIDList",desc:un()}),!1):(tn({api:"getUserStatus",param:"userIDList",desc:ln()}),!1)}}},subscribeUserStatus:{userIDList:{type:"Array",validator:function(e){return at(e)?0!==e.length||(tn({api:"subscribeUserStatus",param:"userIDList",desc:un()}),!1):(tn({api:"subscribeUserStatus",param:"userIDList",desc:ln()}),!1)}}},unsubscribeUserStatus:{userIDList:{type:"Array",validator:function(e){return!e||!!at(e)||(tn({api:"subscribeUserStatus",param:"userIDList",desc:ln()}),!1)}}},addFriend:{to:Mn,source:{type:"String",required:!0,validator:function(e){return!!e&&(e.startsWith("AddSource_Type_")?!(e.replace("AddSource_Type_","").length>8)||(tn({api:"addFriend",param:"source",desc:fn("keyword",8)}),!1):(tn({api:"addFriend",param:"source",desc:Sn("SourcePrefixLog")}),!1))}},remark:{type:"String",required:!1,validator:function(e){return!(nt(e)&&e.length>96)||(tn({api:"addFriend",param:"remark",desc:fn("remark",96)}),!1)}}},deleteFriend:{userIDList:kn},checkFriend:{userIDList:kn},getFriendProfile:{userIDList:kn},updateFriend:{userID:Mn,remark:{type:"String",required:!1,validator:function(e){return!(nt(e)&&e.length>96)||(tn({api:"updateFriend",param:"remark",desc:fn("remark",96)}),!1)}},friendCustomField:{type:"Array",required:!1,validator:function(e){if(e){if(!at(e))return tn({api:"updateFriend",param:"friendCustomField",desc:ln()}),!1;var t=!0;return e.forEach((function(e){return nt(e.key)&&-1!==e.key.indexOf("Tag_SNS_Custom")?nt(e.value)?e.key.replace("Tag_SNS_Custom_","").length>8?(tn({api:"updateFriend",param:"friendCustomField",desc:fn("keyword",8)}),t=!1):void 0:(tn({api:"updateFriend",param:"friendCustomField",desc:mn("value")}),t=!1):(tn({api:"updateFriend",param:"friendCustomField",desc:Sn("FriendCustomFieldPrefixLog")}),t=!1)})),t}return!0}}},acceptFriendApplication:{userID:Mn},refuseFriendApplication:{userID:Mn},deleteFriendApplication:{userID:Mn},createFriendGroup:{name:Mn},deleteFriendGroup:{name:Mn},addToFriendGroup:{name:Mn,userIDList:kn},removeFromFriendGroup:{name:Mn,userIDList:kn},renameFriendGroup:{oldName:Mn,newName:Mn},sendMessageReadReceipt:[{name:"messageList",type:"Array",validator:function(e){return at(e)?0!==e.length||(tn({api:"sendMessageReadReceipt",param:"messageList",desc:un()}),!1):(tn({api:"sendMessageReadReceipt",param:"messageList",desc:ln()}),!1)}}],getMessageReadReceiptList:[{name:"messageList",type:"Array",validator:function(e){return at(e)?0!==e.length||(tn({api:"getMessageReadReceiptList",param:"messageList",desc:un()}),!1):(tn({api:"getMessageReadReceiptList",param:"messageList",desc:ln()}),!1)}}],createTopicInCommunity:{groupID:Mn,topicName:Mn},deleteTopicFromCommunity:{groupID:Mn,topicIDList:{type:"Array",validator:function(e){return!e||!!at(e)||(tn({api:"deleteTopicFromCommunity",param:"topicIDList",desc:ln()}),!1)}}},updateTopicProfile:{groupID:Mn,topicID:Mn},getTopicList:{groupID:Mn,topicIDList:{type:"Array",validator:function(e){return!e||!!at(e)||(tn({api:"getTopicList",param:"topicIDList",desc:ln()}),!1)}}}},En={login:1,logout:1,on:1,once:1,off:1,setLogLevel:1,registerPlugin:1,destroy:1,createTextMessage:1,createTextAtMessage:1,createImageMessage:1,createAudioMessage:1,createVideoMessage:1,createCustomMessage:1,createFaceMessage:1,createFileMessage:1,createLocationMessage:1,createMergerMessage:1,downloadMergerMessage:1,createForwardMessage:1,sendMessage:1,resendMessage:1,revokeMessage:1,deleteMessage:1,translateText:1,modifyMessage:1,sendMessageReadReceipt:1,getGroupMessageReadMemberList:1,getMessageReadReceiptList:1,setMessageExtensions:1,getMessageExtensions:1,deleteMessageExtensions:1,getMessageList:1,findMessage:1,getMessageListHopping:1,setMessageRead:1,setAllMessageRead:1,getConversationList:1,getConversationProfile:1,deleteConversation:1,pinConversation:1,getTotalUnreadMessageCount:1,setConversationCustomData:1,markConversation:1,createConversationGroup:1,getConversationGroupList:1,deleteConversationGroup:1,renameConversationGroup:1,addConversationsToGroup:1,deleteConversationsFromGroup:1,clearHistoryMessage:1,getGroupList:1,getGroupProfile:1,createGroup:1,joinGroup:1,updateGroupProfile:1,quitGroup:1,dismissGroup:1,changeGroupOwner:1,searchGroupByID:1,setMessageRemindType:1,getGroupApplicationList:1,handleGroupApplication:1,initGroupAttributes:1,setGroupAttributes:1,deleteGroupAttributes:1,getGroupAttributes:1,setGroupCounters:1,increaseGroupCounter:1,decreaseGroupCounter:1,getGroupCounters:1,getJoinedCommunityList:1,createTopicInCommunity:1,deleteTopicFromCommunity:1,updateTopicProfile:1,getTopicList:1,getGroupMemberProfile:1,getGroupMemberList:1,addGroupMember:1,deleteGroupMember:1,setGroupMemberNameCard:1,setGroupMemberMuteTime:1,setGroupMemberRole:1,setGroupMemberCustomField:1,getGroupOnlineMemberCount:1,markGroupMemberList:1,getMyProfile:1,getUserProfile:1,updateMyProfile:1,setSelfStatus:1,getUserStatus:1,subscribeUserStatus:1,unsubscribeUserStatus:1,getBlacklist:1,addToBlacklist:1,removeFromBlacklist:1,getFriendList:1,addFriend:1,deleteFriend:1,checkFriend:1,updateFriend:1,getFriendProfile:1,getFriendApplicationList:1,refuseFriendApplication:1,deleteFriendApplication:1,acceptFriendApplication:1,setFriendApplicationRead:1,getFriendGroupList:1,createFriendGroup:1,renameFriendGroup:1,deleteFriendGroup:1,addToFriendGroup:1,removeFromFriendGroup:1,callExperimentalAPI:1},jn=1,Dn=2,Ln=3,An=4,Nn=6,xn=7,Rn=8,Pn=9,Un=10,Vn=11,Bn=12,Fn=13,Gn=14,zn=15,Hn=16,Yn=17,qn=18,Wn=19,Kn=20,$n=21,Jn=22,Qn=23,Xn=24,Zn=25,er=26,tr=27,nr=28,rr=29,or=30,ar=31,ir=32,sr=function(){function e(t){o(this,e),this._m=t,this._n=""}return i(e,[{key:"isLoggedIn",value:function(){return this._m.getModule(Bn).isLoggedIn()}},{key:"isOversea",value:function(){return this._m.getModule(Bn).isOversea()}},{key:"isPrivateNetWork",value:function(){return this._m.getModule(Bn).isPrivateNetWork()}},{key:"getFileDownloadProxy",value:function(){return this._m.getModule(Bn).getFileDownloadProxy()}},{key:"getMyUserID",value:function(){return this._m.getModule(Bn).getUserID()}},{key:"getMyTinyID",value:function(){return this._m.getModule(Bn).getTinyID()}},{key:"getSDKAppID",value:function(){return this._m.getModule(Bn).getSDKAppID()}},{key:"isIntl",value:function(){return this._m.getModule(Bn).isIntl()}},{key:"isDevMode",value:function(){return this._m.getModule(Bn).isDevMode()}},{key:"getModule",value:function(e){return this._m.getModule(e)}},{key:"getPlatform",value:function(){return fe}},{key:"getNetworkType",value:function(){return this._m.getModule(zn).getNetworkType()}},{key:"probeNetwork",value:function(e){return this._m.getModule(zn).probe(e)}},{key:"getCloudConfig",value:function(e){return this._m.getModule(Qn).getCloudConfig(e)}},{key:"emitOuterEvent",value:function(e,t){this._m.getOuterEmitterInstance().emit(e,t)}},{key:"emitInnerEvent",value:function(e,t){this._m.getInnerEmitterInstance().emit(e,t)}},{key:"getInnerEmitterInstance",value:function(){return this._m.getInnerEmitterInstance()}},{key:"generateTjgID",value:function(e){return this._m.getModule(Bn).getTinyID()+"-"+e.random}},{key:"filterModifiedMessage",value:function(e){if(!Kt(e)){var t=e.filter((function(e){return!0===e.isModified}));t.length>0&&this.emitOuterEvent(I.MESSAGE_MODIFIED,t)}}},{key:"filterUnmodifiedMessage",value:function(e){return Kt(e)?[]:e.filter((function(e){return!1===e.isModified}))}},{key:"request",value:function(e){return this._m.getModule(Kn).request(e)}},{key:"canIUse",value:function(e){return this._m.getModule(tr).canIUse(e)}},{key:"getErrorMessage",value:function(e,t,n){return this._m.getErrorMessage(e,t,n)}},{key:"outputWarning",value:function(e,t,n){var r=this.getErrorMessage(e,t,n);r&&Fe.w(r)}}]),e}(),cr="wslogin",lr="wslogout",ur="wshello",dr="KickOther",pr="getmsg",fr="authkey",hr="sendmsg",mr="send_group_msg",vr="portrait_get_all",gr="portrait_set",_r="black_list_get",yr="black_list_add",br="black_list_delete",Or="msgwithdraw",Mr="msgreaded",kr="set_c2c_peer_mute_notifications",Cr="get_c2c_peer_mute_notifications",wr="getroammsg",Ir="get_peer_read_time",Sr="delete_c2c_msg_ramble",Tr="modify_c2c_msg",Er="set_key_values",jr="get_key_values",Dr="page_get",Lr="get",Ar="batch_delete",Nr="clear_msg",xr="top",Rr="deletemsg",Pr="set_conv_custom_data",Ur="mark_contact",Vr="create_contact_group",Br="del_contact_group",Fr="update_contact_group",Gr="add_conv_to_group",zr="del_conv_from_group",Hr="get_contact_group",Yr="get_joined_group_list",qr="get_group_self_member_info",Wr="create_group",Kr="destroy_group",$r="modify_group_base_info",Jr="apply_join_group",Qr="apply_join_group_noauth",Xr="quit_group",Zr="get_group_public_info",eo="change_group_owner",to="handle_apply_join_group",no="handle_invite_join_permission_group",ro="handle_invite_join_group",oo="group_msg_recall",ao="msg_read_report",io="read_all_unread_msg",so="group_msg_get",co="get_group_msg_receipt",lo="group_msg_receipt",uo="c2c_msg_read_receipt",po="get_group_msg_receipt_detail",fo="get_pendency",ho="deletemsg",mo="get_msg",vo="get_msg_noauth",go="get_online_member_num",_o="delete_group_ramble_msg_by_seq",yo="modify_group_msg",bo="set_group_attr",Oo="modify_group_attr",Mo="delete_group_attr",ko="clear_group_attr",Co="get_group_attr",wo="group_set_key_values",Io="group_get_key_values",So="get_group_notify",To="update_group_counter",Eo="get_group_counter",jo="get_group_member_info",Do="get_members",Lo="get_specified_group_member_info",Ao="add_group_member",No="delete_group_member",xo="ban_group_member",Ro="modify_group_member_info",Po="modify_user_info",Uo="cos",Vo="pre_sig",Bo="video_cover",Fo="tim_web_report_v2",Go="alive",zo="msg_push",Ho="multi_msg_push_ws",Yo="ws_msg_push_ack",qo="stat_forceoffline",Wo="save_relay_json_msg",Ko="get_relay_json_msg",$o="fetch_config",Jo="push_configv2",Qo="fetch_imsdk_purchase_bitsv2",Xo="push_imsdk_purchase_bitsv2",Zo="notify2",ea="create_topic",ta="destroy_topic",na="modify_topic",ra="get_topic",oa="ws_set_custom_status",aa="ws_get_user_status",ia="ws_status_subscribe",sa="ws_status_unsubscribe",ca="ws_stat_background",la="ws_stat_foreground",ua="ws_stat_settoken",da="get_local_words",pa="ws_batch_trans_text",fa={NO_SDKAPPID:2e3,NO_ACCOUNT_TYPE:2001,NO_IDENTIFIER:2002,NO_USERSIG:2003,NO_TINYID:2022,NO_A2KEY:2023,USER_NOT_LOGGED_IN:2024,REPEAT_LOGIN:2025,COS_UNDETECTED:2040,COS_GET_SIG_FAIL:2041,MESSAGE_SEND_FAIL:2100,MESSAGE_SEND_FAIL_NOT_IN_AVCHATROOM:2101,MESSAGE_SEND_NEED_MESSAGE_INSTANCE:2105,MESSAGE_SEND_INVALID_CONVERSATION_TYPE:2106,MESSAGE_FILE_IS_EMPTY:2108,MESSAGE_ONPROGRESS_FUNCTION_ERROR:2109,MESSAGE_REVOKE_FAIL:2110,MESSAGE_DELETE_FAIL:2111,MESSAGE_UNREAD_ALL_FAIL:2112,READ_RECEIPT_MESSAGE_LIST_EMPTY:2114,MESSAGE_SEND_GROUP_WITH_TOPIC_FAIL:2115,CANNOT_DELETE_GROUP_SYSTEM_NOTICE:2116,TRANSLATE_TEXT_FAIL:2117,MESSAGE_IMAGE_SELECT_FILE_FIRST:2251,MESSAGE_IMAGE_TYPES_LIMIT:2252,MESSAGE_IMAGE_SIZE_LIMIT:2253,MESSAGE_AUDIO_UPLOAD_FAIL:2300,MESSAGE_AUDIO_SIZE_LIMIT:2301,MESSAGE_VIDEO_UPLOAD_FAIL:2350,MESSAGE_VIDEO_SIZE_LIMIT:2351,MESSAGE_VIDEO_TYPES_LIMIT:2352,MESSAGE_FILE_UPLOAD_FAIL:2400,MESSAGE_FILE_SELECT_FILE_FIRST:2401,MESSAGE_FILE_SIZE_LIMIT:2402,MESSAGE_FILE_URL_IS_EMPTY:2403,MESSAGE_MERGER_TYPE_INVALID:2450,MESSAGE_MERGER_KEY_INVALID:2451,MESSAGE_MERGER_DOWNLOAD_FAIL:2452,MESSAGE_FORWARD_TYPE_INVALID:2453,MESSAGE_MODIFY_CONFLICT:2480,MESSAGE_MODIFY_DISABLED_IN_AVCHATROOM:2481,CONVERSATION_NOT_FOUND:2500,USER_OR_GROUP_NOT_FOUND:2501,CONVERSATION_UN_RECORDED_TYPE:2502,INVALID_CONVERSATION_ID:2503,ILLEGAL_GROUP_TYPE:2600,CANNOT_JOIN_WORK:2601,ILLEGAL_GROUP_ID:2602,CANNOT_FIND_GROUP:2603,CANNOT_CHANGE_OWNER_IN_AVCHATROOM:2620,CANNOT_CHANGE_OWNER_TO_SELF:2621,CANNOT_DISMISS_WORK:2622,MEMBER_NOT_IN_GROUP:2623,JOIN_GROUP_FAIL:2660,CANNOT_ADD_MEMBER_IN_AVCHATROOM:2661,CANNOT_JOIN_NON_AVCHATROOM_WITHOUT_LOGIN:2662,NOT_OWNER:2681,CANNOT_SET_MEMBER_ROLE_IN_WORK_AND_AVCHATROOM:2682,INVALID_MEMBER_ROLE:2683,CANNOT_SET_SELF_MEMBER_ROLE:2684,CANNOT_MUTE_SELF:2685,BAN_DURATION_INVALID:2686,NOT_MY_FRIEND:2700,ALREADY_MY_FRIEND:2701,FRIEND_GROUP_EXISTED:2710,FRIEND_GROUP_NOT_EXIST:2711,FRIEND_APPLICATION_NOT_EXIST:2716,UPDATE_PROFILE_INVALID_PARAM:2721,UPDATE_PROFILE_NO_KEY:2722,CANNOT_ADD_SELF_TO_BLACKLIST:2742,NETWORK_ERROR:2800,NETWORK_TIMEOUT:2801,NO_NETWORK:2805,UNCAUGHT_ERROR:2903,INVALID_OPERATION:2905,OVER_FREQUENCY_LIMIT:2996,CANNOT_FIND_PROTOCOL:2997,CANNOT_FIND_MODULE:2998,SDK_IS_NOT_READY:2999,LOGGING_IN:3e3,LOGIN_FAILED:3001,KICKED_OUT_MULT_DEVICE:3002,KICKED_OUT_MULT_ACCOUNT:3003,KICKED_OUT_USERSIG_EXPIRED:3004,LOGGED_OUT:3005,KICKED_OUT_REST_API:3006,ILLEGAL_TOPIC_ID:3021,CANNOT_USE_COMMERCIAL_ABILITY:3122,PROFANITY_FOUND:3123,MESSAGE_A2KEY_EXPIRED:20002,ACCOUNT_A2KEY_EXPIRED:70001,HELLO_ANSWER_KICKED_OUT:1002,OPEN_SERVICE_OVERLOAD_ERROR:60022},ha="networkRTT",ma="messageE2EDelay",va="sendMessageC2C",ga="sendMessageGroup",_a="sendMessageGroupAV",ya="sendMessageRichMedia",ba="cosUpload",Oa="messageReceivedGroup",Ma="messageReceivedGroupAVPush",ka="messageReceivedGroupAVPull",Ca=(s(Qt={},ha,2),s(Qt,ma,3),s(Qt,va,4),s(Qt,ga,5),s(Qt,_a,6),s(Qt,ya,7),s(Qt,Oa,8),s(Qt,Ma,9),s(Qt,ka,10),s(Qt,ba,11),Qt),wa={info:4,warning:5,error:6},Ia={wifi:1,"2g":2,"3g":3,"4g":4,"5g":5,unknown:6,none:7,online:8},Sa={login:4},Ta=function(){function e(t){o(this,e),this._n="SSOLogData",this.eventType=Sa[t]||0,this.timestamp=0,this.networkType=8,this.code=0,this.message="",this.moreMessage="",this.extension=t,this.costTime=0,this.duplicate=!1,this.level=4,this.uiPlatform=void 0,this._sentFlag=!1,this._startts=xe()}return i(e,[{key:"updateTimeStamp",value:function(){this.timestamp=xe()}},{key:"start",value:function(e){return this._startts=e,this}},{key:"end",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this._sentFlag){var n=xe();0===this.costTime&&(this.costTime=n-this._startts),this.setMoreMessage("startts:".concat(this._startts," endts:").concat(n)),t?(this._sentFlag=!0,this._eventStatModule&&this._eventStatModule.pushIn(this)):setTimeout((function(){e._sentFlag=!0,e._eventStatModule&&e._eventStatModule.pushIn(e)}),0)}}},{key:"setError",value:function(e,t,n){if(!(e instanceof Error))return Fe.w("".concat(this._n,".setError value not instanceof Error, please check!")),this;if(this._sentFlag)return this;if(this.setNetworkType(n),t)e.code&&this.setCode(e.code),e.message&&this.setMoreMessage(e.message);else{var r=fa.NO_NETWORK;this.setCode(r)}return this.setLevel("error"),this}},{key:"setCode",value:function(e){return it(e)||this._sentFlag||("ECONNABORTED"===e&&(this.code=103),et(e)?this.code=e:Fe.w("".concat(this._n,".setCode value not a number, please check!"),e,r(e))),this}},{key:"setMessage",value:function(e){return it(e)||this._sentFlag||(et(e)&&(this.message=e.toString()),nt(e)&&(this.message=e)),this}},{key:"setCostTime",value:function(e){return this.costTime=e,this}},{key:"setLevel",value:function(e){return it(e)||this._sentFlag||(this.level=wa[e]),this}},{key:"setMoreMessage",value:function(e){return Kt(this.moreMessage)?this.moreMessage="".concat(e):this.moreMessage+=" ".concat(e),this}},{key:"setNetworkType",value:function(e){if(it(e))Fe.w("".concat(this._n,".setNetworkType value is undefined, please check!"));else{var t=Ia[e.toLowerCase()];it(t)||(this.networkType=t)}return this}},{key:"getStartTs",value:function(){return this._startts}},{key:"setUIPlatform",value:function(e){this.uiPlatform=e}}],[{key:"bindEventStatModule",value:function(t){e.prototype._eventStatModule=t}}]),e}(),Ea=function(){function e(t){o(this,e),this.type=S.MSG_TEXT,this.content={text:t.text||""}}return i(e,[{key:"setText",value:function(e){this.content.text=e}},{key:"sendable",value:function(){return 0!==this.content.text.length}}]),e}(),ja=function(){function e(t,n){o(this,e),this._imageMemoryURL="",this._fileDownloadProxy=n,ae?this.createImageDataASURLInWXMiniApp(t.file):this.createImageDataASURLInWeb(t.file),this._initImageInfoModel(),this.type=S.MSG_IMAGE,this._percent=0,this.content={imageFormat:t.imageFormat||Ge.UNKNOWN,uuid:t.uuid,imageInfoArray:[]},this.initImageInfoArray(t.imageInfoArray),this._autoFixUrl()}return i(e,[{key:"_initImageInfoModel",value:function(){var e=this;this._ImageInfoModel=function(t){this.instanceID=mt(9999999),this.sizeType=t.type||0,this.type=0,this.size=t.size||0,this.width=t.width||0,this.height=t.height||0,this.imageUrl=t.url||"",this.url=qt(t.url||e._imageMemoryURL,e._fileDownloadProxy)},this._ImageInfoModel.prototype={setSizeType:function(e){this.sizeType=e},setType:function(e){this.type=e},setImageUrl:function(e){e&&(this.imageUrl=e)},getImageUrl:function(){return this.imageUrl}}}},{key:"initImageInfoArray",value:function(e){for(var t=0,n=null,r=null;t<=2;)r=it(e)||it(e[t])?{type:0,size:0,width:0,height:0,url:""}:e[t],(n=new this._ImageInfoModel(r)).setSizeType(t+1),n.setType(t),this.addImageInfo(n),t++;this.updateAccessSideImageInfoArray()}},{key:"updateImageInfoArray",value:function(e){for(var t,n=this.content.imageInfoArray.length,r=0;r<n;r++)t=this.content.imageInfoArray[r],e[r].size&&(t.size=e[r].size),e[r].url&&t.setImageUrl(e[r].url),e[r].width&&(t.width=e[r].width),e[r].height&&(t.height=e[r].height)}},{key:"_autoFixUrl",value:function(){for(var e=this.content.imageInfoArray.length,t="",n="",r=["http","https"],o=null,a=0;a<e;a++)this.content.imageInfoArray[a].url&&""!==(o=this.content.imageInfoArray[a]).imageUrl&&(n=o.imageUrl.slice(0,o.imageUrl.indexOf("://")+1),t=o.imageUrl.slice(o.imageUrl.indexOf("://")+1),r.indexOf(n)<0&&(n="https:"),this.content.imageInfoArray[a].setImageUrl([n,t].join("")))}},{key:"updatePercent",value:function(e){this._percent=e,this._percent>1&&(this._percent=1)}},{key:"updateImageFormat",value:function(e){this.content.imageFormat=Ge[e.toUpperCase()]||Ge.UNKNOWN}},{key:"createImageDataASURLInWeb",value:function(e){void 0!==e&&e.files.length>0&&(this._imageMemoryURL=window.URL.createObjectURL(e.files[0]))}},{key:"createImageDataASURLInWXMiniApp",value:function(e){e&&e.url&&(this._imageMemoryURL=e.url)}},{key:"replaceImageInfo",value:function(e,t){this.content.imageInfoArray[t]instanceof this._ImageInfoModel||(this.content.imageInfoArray[t]=e)}},{key:"addImageInfo",value:function(e){this.content.imageInfoArray.length>=3||this.content.imageInfoArray.push(e)}},{key:"updateAccessSideImageInfoArray",value:function(){var e=this.content.imageInfoArray,t=e[0],n=t.width,r=void 0===n?0:n,o=t.height,a=void 0===o?0:o;0!==r&&0!==a&&(xt(e),Object.assign(e[2],Nt({originWidth:r,originHeight:a,min:720})))}},{key:"sendable",value:function(){return 0!==this.content.imageInfoArray.length&&""!==this.content.imageInfoArray[0].imageUrl&&0!==this.content.imageInfoArray[0].size}}]),e}(),Da=function(){function e(t){o(this,e),this.type=S.MSG_FACE,this.content=t||null}return i(e,[{key:"sendable",value:function(){return null!==this.content}}]),e}(),La=function(){function e(t,n){o(this,e),this.type=S.MSG_AUDIO,this._percent=0,this.content={downloadFlag:2,second:t.second,size:t.size,url:qt(t.url,n),remoteAudioUrl:t.url||"",uuid:t.uuid}}return i(e,[{key:"updatePercent",value:function(e){this._percent=e,this._percent>1&&(this._percent=1)}},{key:"updateAudioUrl",value:function(e){this.content.remoteAudioUrl=e}},{key:"sendable",value:function(){return""!==this.content.remoteAudioUrl}}]),e}(),Aa={from:!0,groupID:!0,groupName:!0,to:!0},Na=function(){function e(t){o(this,e),this.type=S.MSG_GRP_TIP,this.content={},this._initContent(t)}return i(e,[{key:"_initContent",value:function(e){var t=this;Object.keys(e).forEach((function(n){switch(n){case"remarkInfo":break;case"groupProfile":t.content.groupProfile={},t._initGroupProfile(e[n]);break;case"operatorInfo":break;case"memberInfoList":case"msgMemberInfo":t._updateMemberList(e[n]);break;case"memberExtraInfo":case"onlineMemberInfo":break;case"memberNum":t.content[n]=e[n],t.content.memberCount=e[n];break;case"newGroupProfile":t.content.newGroupProfile={},t._initNewGroupProfile(e[n]);break;default:t.content[n]=e[n]}})),this.content.userIDList||(this.content.userIDList=[this.content.operatorID])}},{key:"_initGroupProfile",value:function(e){for(var t=Object.keys(e),n=0;n<t.length;n++){var r=t[n];Aa[r]&&(this.content.groupProfile[r]=e[r])}}},{key:"_updateMemberList",value:function(e){Kt(this.content.memberList)?this.content.memberList=e:this.content.memberList.forEach((function(t){e.forEach((function(e){t.userID===e.userID&&Object.assign(t,e)}))}))}},{key:"_initNewGroupProfile",value:function(e){for(var t=Object.keys(e),n=0;n<t.length;n++){var r=t[n];this.content.newGroupProfile[r]="muteAllMembers"!==r?e[r]:1===e[r]}}}]),e}(),xa={from:!0,groupID:!0,groupName:!0,to:!0},Ra=function(){function e(t){o(this,e),this.type=S.MSG_GRP_SYS_NOTICE,this.content={},this._initContent(t)}return i(e,[{key:"_initContent",value:function(e){var t=this;Object.keys(e).forEach((function(n){switch(n){case"memberInfoList":break;case"remarkInfo":t.content.handleMessage=e[n];break;case"groupProfile":t.content.groupProfile={},t._initGroupProfile(e[n]);break;default:t.content[n]=e[n]}}))}},{key:"_initGroupProfile",value:function(e){for(var t=Object.keys(e),n=0;n<t.length;n++){var r=t[n];xa[r]&&("groupName"===r?this.content.groupProfile.name=e[r]:this.content.groupProfile[r]=e[r])}}}]),e}(),Pa=function(){function e(t,n){o(this,e),this.type=S.MSG_FILE,this._percent=0;var r=this._getFileInfo(t);this.content={downloadFlag:2,fileUrl:qt(t.url,n)||"",uuid:t.uuid,fileName:r.name||"",fileSize:r.size||0}}return i(e,[{key:"_getFileInfo",value:function(e){if(!it(e.fileName)&&!it(e.fileSize))return{size:e.fileSize,name:e.fileName};var t=e.file.files[0];if(re){if(t.path&&-1!==t.path.indexOf(".")){var n=t.path.slice(t.path.lastIndexOf(".")+1).toLowerCase();t.type=n,t.name||(t.name="".concat(mt(999999),".").concat(n))}t.name||(t.type="",t.name=t.path.slice(t.path.lastIndexOf("/")+1).toLowerCase()),t.suffix&&(t.type=t.suffix),t.url||(t.url=t.path)}return{size:t.size,name:t.name}}},{key:"updatePercent",value:function(e){this._percent=e,this._percent>1&&(this._percent=1)}},{key:"updateFileUrl",value:function(e){this.content.fileUrl=e}},{key:"sendable",value:function(){return""!==this.content.fileUrl&&""!==this.content.fileName&&0!==this.content.fileSize}}]),e}(),Ua=function(){function e(t){o(this,e),this.type=S.MSG_CUSTOM,this.content={data:t.data||"",description:t.description||"",extension:t.extension||""}}return i(e,[{key:"setData",value:function(e){return this.content.data=e,this}},{key:"setDescription",value:function(e){return this.content.description=e,this}},{key:"setExtension",value:function(e){return this.content.extension=e,this}},{key:"sendable",value:function(){return 0!==this.content.data.length||0!==this.content.description.length||0!==this.content.extension.length}}]),e}(),Va=function(){function e(t,n){o(this,e),this.type=S.MSG_VIDEO,this._percent=0,this.content={remoteVideoUrl:t.remoteVideoUrl||t.videoUrl||"",videoFormat:t.videoFormat,videoSecond:parseInt(t.videoSecond,10),videoSize:t.videoSize,videoUrl:qt(t.videoUrl,n),videoDownloadFlag:2,videoUUID:t.videoUUID,thumbUUID:t.thumbUUID,thumbFormat:t.thumbFormat,thumbWidth:t.thumbWidth,snapshotWidth:t.thumbWidth,thumbHeight:t.thumbHeight,snapshotHeight:t.thumbHeight,thumbSize:t.thumbSize,snapshotSize:t.thumbSize,thumbDownloadFlag:2,thumbUrl:qt(t.thumbUrl,n),snapshotUrl:qt(t.thumbUrl,n)}}return i(e,[{key:"updatePercent",value:function(e){this._percent=e,this._percent>1&&(this._percent=1)}},{key:"updateVideoUrl",value:function(e){e&&(this.content.remoteVideoUrl=e)}},{key:"updateSnapshotInfo",value:function(e){var t=e.snapshotUrl,n=e.snapshotWidth,r=e.snapshotHeight;Kt(t)||(this.content.thumbUrl=this.content.snapshotUrl=t),Kt(n)||(this.content.thumbWidth=this.content.snapshotWidth=Number(n)),Kt(r)||(this.content.thumbHeight=this.content.snapshotHeight=Number(r))}},{key:"sendable",value:function(){return""!==this.content.remoteVideoUrl}}]),e}(),Ba=function(){function e(t){o(this,e),this.type=S.MSG_LOCATION;var n=t.description,r=t.longitude,a=t.latitude;this.content={description:n,longitude:r,latitude:a}}return i(e,[{key:"sendable",value:function(){return!0}}]),e}(),Fa=function(){function e(t,n){if(o(this,e),this.from=t.from,this.messageSender=t.from,this.time=t.time,this.messageSequence=t.sequence,this.clientSequence=t.clientSequence||t.sequence,this.messageRandom=t.random,this.cloudCustomData=t.cloudCustomData||"",this.clientTime=t.clientTime||void 0,t.ID)this.ID=t.ID||"",this.nick=t.nick||"",this.avatar=t.avatar||"",this.messageBody=[{type:t.type,payload:t.payload}],t.conversationType.startsWith(S.CONV_C2C)?this.receiverUserID=t.to:t.conversationType.startsWith(S.CONV_GROUP)&&(this.receiverGroupID=t.to),this.messageReceiver=t.to;else{this.nick=t.nick||"",this.avatar=t.avatar||"",this.messageBody=[];var r=t.elements[0].type,a=t.elements[0].content;this._patchRichMediaPayload(r,a),this._updateRichMediaDownloadUrl(r,a,n),r===S.MSG_MERGER?this.messageBody.push({type:r,payload:new Ga(a).content}):this.messageBody.push({type:r,payload:a}),t.groupID&&(this.receiverGroupID=t.groupID,this.messageReceiver=t.groupID),t.to&&(this.receiverUserID=t.to,this.messageReceiver=t.to),this.ID="".concat(t.tinyID,"-").concat(t.clientTime,"-").concat(t.random)}}return i(e,[{key:"_patchRichMediaPayload",value:function(e,t){e===S.MSG_IMAGE?t.imageInfoArray.forEach((function(e){!e.imageUrl&&e.url&&(e.imageUrl=e.url,e.sizeType=e.type,1===e.type?e.type=0:3===e.type&&(e.type=1))})):e===S.MSG_VIDEO?!t.remoteVideoUrl&&t.videoUrl&&(t.remoteVideoUrl=t.videoUrl):e===S.MSG_AUDIO?!t.remoteAudioUrl&&t.url&&(t.remoteAudioUrl=t.url):e===S.MSG_FILE&&!t.fileUrl&&t.url&&(t.fileUrl=t.url,t.url=void 0)}},{key:"_updateRichMediaDownloadUrl",value:function(e,t,n){n&&(e===S.MSG_IMAGE?t.imageInfoArray.forEach((function(e){e.url=qt(e.url,n)})):e===S.MSG_VIDEO?(t.videoUrl=qt(t.videoUrl,n),t.snapshotUrl=qt(t.thumbUrl,n),t.snapshotHeight=t.thumbHeight,t.snapshotWidth=t.thumbWidth):e===S.MSG_AUDIO?t.url=qt(t.url,n):e===S.MSG_FILE&&(t.fileUrl=qt(t.fileUrl,n)))}}]),e}(),Ga=function(){function e(t,n){if(o(this,e),this.type=S.MSG_MERGER,this.content={downloadKey:"",pbDownloadKey:"",messageList:[],title:"",abstractList:[],compatibleText:"",version:0,layersOverLimit:!1},t.downloadKey){var r=t.downloadKey,a=t.pbDownloadKey,i=t.title,s=t.abstractList,c=t.compatibleText,l=t.version;this.content.downloadKey=r,this.content.pbDownloadKey=a,this.content.title=i,this.content.abstractList=s,this.content.compatibleText=c,this.content.version=l||0}else if(Kt(t.messageList))1===t.layersOverLimit&&(this.content.layersOverLimit=!0);else{var u=t.messageList,d=t.title,p=t.abstractList,f=t.compatibleText,h=t.version,m=[];u.forEach((function(e){if(!Kt(e)){var t=new Fa(e,n);m.push(t)}})),this.content.messageList=m,this.content.title=d,this.content.abstractList=p,this.content.compatibleText=f,this.content.version=h||0}}return i(e,[{key:"sendable",value:function(){return!Kt(this.content.messageList)||!Kt(this.content.downloadKey)}}]),e}(),za={1:S.MSG_PRIORITY_HIGH,2:S.MSG_PRIORITY_NORMAL,3:S.MSG_PRIORITY_LOW,4:S.MSG_PRIORITY_LOWEST},Ha=function(){function e(t){o(this,e),this.ID="",this.conversationID=t.conversationID||null,this.conversationType=t.conversationType||S.CONV_C2C,this.conversationSubType=t.conversationSubType,this.time=t.time||Math.ceil(Date.now()/1e3),this.sequence=t.sequence||0,this.clientSequence=t.clientSequence||t.sequence||0,this.random=t.random||0===t.random?t.random:mt(),this.priority=this._computePriority(t.priority),this.nick=t.nick||"",this.avatar=t.avatar||"",this.isPeerRead=!1,this.nameCard="",this._elements=[],this.isPlaceMessage=t.isPlaceMessage||0,this.isRevoked=2===t.isPlaceMessage||8===t.msgFlagBits,this.from=t.from||null,this.to=t.to||null,this.flow="",this.isSystemMessage=t.isSystemMessage||!1,this.protocol=t.protocol||"JSON",this.isResend=!1,this.isRead=!1,this.status=t.status||Xt.SUCCESS,this._onlineOnlyFlag=!1,this._groupAtInfoList=[],this._relayFlag=!1,this.atUserList=[],this.cloudCustomData=t.cloudCustomData||"",this.isDeleted=!1,this.isModified=!1,this._isExcludedFromUnreadCount=!(!t.messageControlInfo||1!==t.messageControlInfo.excludedFromUnreadCount),this._isExcludedFromLastMessage=!(!t.messageControlInfo||1!==t.messageControlInfo.excludedFromLastMessage),this.clientTime=t.clientTime||Pe()||0,this.senderTinyID=t.senderTinyID||t.tinyID||"",this.readReceiptInfo=t.readReceiptInfo||{readCount:void 0,unreadCount:void 0,isPeerRead:void 0},this.needReadReceipt=!0===t.needReadReceipt||1===t.needReadReceipt,this.version=t.messageVersion||0,this.isBroadcastMessage=t.isBroadcastMessage||!1,this._receiverList=t.receiverList||void 0,this.isSupportExtension=!0===t.isSupportExtension||1===t.isSupportExtension,this.revoker=t.revokerInfo&&t.revokerInfo.revoker||null,this.reInitialize(t.currentUser),this.extractGroupInfo(t.groupProfile||null),this.handleGroupAtInfo(t),this.initC2CReadReceiptInfo(t.readReceiptSentByPeer)}return i(e,[{key:"elements",get:function(){return this._elements}},{key:"getElements",value:function(){return this._elements}},{key:"extractGroupInfo",value:function(e){if(null!==e){nt(e.nick)&&(this.nick=e.nick),nt(e.avatar)&&(this.avatar=e.avatar);var t=e.messageFromAccountExtraInformation;ot(t)&&nt(t.nameCard)&&(this.nameCard=t.nameCard)}}},{key:"handleGroupAtInfo",value:function(e){var t=this;e.payload&&e.payload.atUserList&&e.payload.atUserList.forEach((function(e){e!==S.MSG_AT_ALL?(t._groupAtInfoList.push({groupAtAllFlag:0,groupAtUserID:e}),t.atUserList.push(e)):(t._groupAtInfoList.push({groupAtAllFlag:1}),t.atUserList.push(S.MSG_AT_ALL))})),at(e.groupAtInfo)&&e.groupAtInfo.forEach((function(e){0===e.groupAtAllFlag?t.atUserList.push(e.groupAtUserID):1===e.groupAtAllFlag&&t.atUserList.push(S.MSG_AT_ALL)}))}},{key:"getGroupAtInfoList",value:function(){return this._groupAtInfoList}},{key:"_initProxy",value:function(){this._elements[0]&&(this.payload=this._elements[0].content,this.type=this._elements[0].type)}},{key:"reInitialize",value:function(e){e&&(this.status=this.from?Xt.SUCCESS:Xt.UNSEND,!this.from&&(this.from=e)),this._initFlow(e),this._initSequence(e),this._concatConversationID(e),this.generateMessageID()}},{key:"isSendable",value:function(){return 0!==this._elements.length&&"function"==typeof this._elements[0].sendable&&this._elements[0].sendable()}},{key:"_initTo",value:function(e){this.conversationType===S.CONV_GROUP&&(this.to=e.groupID)}},{key:"_initSequence",value:function(e){0===this.clientSequence&&e&&(this.clientSequence=function(e){if(!e)return!1;if(void 0===yt[e]){var t=new Date,n="3".concat(t.getHours()).slice(-2),r="0".concat(t.getMinutes()).slice(-2),o="0".concat(t.getSeconds()).slice(-2);yt[e]=parseInt([n,r,o,"0001"].join("")),n=null,r=null,o=null,Fe.l("autoIncrementIndex start index:".concat(yt[e]))}return yt[e]++}(e)),0===this.sequence&&this.conversationType===S.CONV_C2C&&(this.sequence=this.clientSequence)}},{key:"generateMessageID",value:function(){this.from===S.CONV_SYSTEM&&(this.senderTinyID="144115198244471703"),this.ID="".concat(this.senderTinyID,"-").concat(this.clientTime,"-").concat(this.random)}},{key:"_initFlow",value:function(e){""!==e&&(e===this.from?(this.flow="out",this.isRead=!0):this.flow="in")}},{key:"_concatConversationID",value:function(e){var t=this.to,n="",r=this.conversationType;r!==S.CONV_SYSTEM?(n=r===S.CONV_C2C?e===this.from?t:this.from:this.to,this.conversationID=n?"".concat(r).concat(n):null):this.conversationID=S.CONV_SYSTEM}},{key:"isElement",value:function(e){return e instanceof Ea||e instanceof ja||e instanceof Da||e instanceof La||e instanceof Pa||e instanceof Va||e instanceof Na||e instanceof Ra||e instanceof Ua||e instanceof Ba||e instanceof Ga}},{key:"setElement",value:function(e,t){var n=this;if(this.isElement(e))return this._elements=[e],void this._initProxy();var r=function(e){if(e.type&&e.content)switch(e.type){case S.MSG_TEXT:n.setTextElement(e.content);break;case S.MSG_IMAGE:n.setImageElement(e.content,t);break;case S.MSG_AUDIO:n.setAudioElement(e.content,t);break;case S.MSG_FILE:n.setFileElement(e.content,t);break;case S.MSG_VIDEO:n.setVideoElement(e.content,t);break;case S.MSG_CUSTOM:n.setCustomElement(e.content);break;case S.MSG_LOCATION:n.setLocationElement(e.content);break;case S.MSG_GRP_TIP:n.setGroupTipElement(e.content);break;case S.MSG_GRP_SYS_NOTICE:n.setGroupSystemNoticeElement(e.content);break;case S.MSG_FACE:n.setFaceElement(e.content);break;case S.MSG_MERGER:n.setMergerElement(e.content,t)}};if(at(e))for(var o=0;o<e.length;o++)r(e[o]);else r(e);this._initProxy()}},{key:"clearElement",value:function(){this._elements.length=0}},{key:"setTextElement",value:function(e){var t="string"==typeof e?e:e.text,n=new Ea({text:t});this._elements.push(n)}},{key:"setImageElement",value:function(e,t){var n=new ja(e,t);this._elements.push(n)}},{key:"setAudioElement",value:function(e,t){var n=new La(e,t);this._elements.push(n)}},{key:"setFileElement",value:function(e,t){var n=new Pa(e,t);this._elements.push(n)}},{key:"setVideoElement",value:function(e,t){var n=new Va(e,t);this._elements.push(n)}},{key:"setLocationElement",value:function(e){var t=new Ba(e);this._elements.push(t)}},{key:"setCustomElement",value:function(e){var t=new Ua(e);this._elements.push(t)}},{key:"setGroupTipElement",value:function(e){var t={},n=e.operationType;if(Kt(e.memberInfoList)?e.operatorInfo&&(t=e.operatorInfo):n!==S.GRP_TIP_MBR_JOIN&&n!==S.GRP_TIP_MBR_KICKED_OUT&&n!==S.GRP_TIP_MBR_SET_ADMIN&&n!==S.GRP_TIP_MBR_CANCELED_ADMIN||(t=e.memberInfoList[0]),!Kt(e.memberExtraInfo)){var r=e.memberExtraInfo.reason;e.msgMemberInfo.forEach((function(e){e.reason=r}))}var o=t,a=o.nick,i=o.avatar;nt(a)&&(this.nick=a),nt(i)&&(this.avatar=i);var s=new Na(e);this._elements.push(s)}},{key:"setGroupSystemNoticeElement",value:function(e){var t=new Ra(e);this._elements.push(t)}},{key:"setFaceElement",value:function(e){var t=new Da(e);this._elements.push(t)}},{key:"setMergerElement",value:function(e,t){var n=new Ga(e,t);this._elements.push(n)}},{key:"setIsRead",value:function(e){this.isRead=e}},{key:"setRelayFlag",value:function(e){this._relayFlag=e}},{key:"getRelayFlag",value:function(){return this._relayFlag}},{key:"_computePriority",value:function(e){if(it(e))return S.MSG_PRIORITY_NORMAL;if(nt(e)&&-1!==Object.values(za).indexOf(e))return e;if(et(e)){var t=""+e;if(-1!==Object.keys(za).indexOf(t))return za[t]}return S.MSG_PRIORITY_NORMAL}},{key:"setNickAndAvatar",value:function(e){var t=e.nick,n=e.avatar;nt(t)&&(this.nick=t),nt(n)&&(this.avatar=n)}},{key:"setNameCard",value:function(e){nt(e)&&(this.nameCard=e)}},{key:"initC2CReadReceiptInfo",value:function(e){this.conversationType===S.CONV_C2C&&!0===this.needReadReceipt&&(this.readReceiptInfo.isPeerRead=1===e)}}]),e}(),Ya=function(e){return{code:0,data:e||{}}},qa=function(e){c(n,e);var t=g(n);function n(e){var r;o(this,n),r=t.call(this);var a=e.code,i=e.message,s=e.data;return r.code=a,r.message=i||r._getErrorMessage(r.code),r.data=s||{},r}return i(n)}(f(Error)),Wa=null,Ka=function(e){Wa=e},$a=function(e){return Promise.resolve(Ya(e))},Ja=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e instanceof qa)return t&&null!==Wa&&Wa.emit(I.ERROR,e),Promise.reject(e);if(e instanceof Error){var n=new qa({code:fa.UNCAUGHT_ERROR});return t&&null!==Wa&&Wa.emit(I.ERROR,n),Promise.reject(n)}if(!it(e)&&!it(e.code)){var r=new qa(e);return t&&null!==Wa&&Wa.emit(I.ERROR,r),Promise.reject(r)}},Qa=function(e){c(r,e);var t=g(r);function r(e){var n;return o(this,r),(n=t.call(this,e))._n="C2CModule",n._messageFromUnreadDBMap=new Map,n._signalingFromUnreadDBList=[],n}return i(r,[{key:"onNewC2CMessage",value:function(e){var t=e.dataList,n=e.isInstantMessage,r=e.C2CRemainingUnreadList,o=e.C2CPairUnreadList;Fe.d("".concat(this._n,".onNewC2CMessage count:").concat(t.length," isInstantMessage:").concat(n));var a=this._newC2CMessageStoredAndSummary({dataList:t,C2CRemainingUnreadList:r,C2CPairUnreadList:o,isInstantMessage:n}),i=a.conversationOptionsList,s=a.messageList,c=a.isUnreadC2CMessage;this.filterModifiedMessage(s),i.length>0&&this.getModule(Vn).onNewMessage({conversationOptionsList:i,isInstantMessage:n,isUnreadC2CMessage:c});var l=this.filterUnmodifiedMessage(s);n&&l.length>0&&this.emitOuterEvent(I.MESSAGE_RECEIVED,l),s.length=0}},{key:"_newC2CMessageStoredAndSummary",value:function(e){for(var t=e.dataList,n=e.C2CRemainingUnreadList,r=e.C2CPairUnreadList,o=e.isInstantMessage,a=null,i=[],s=[],c={},l=this.getModule(Hn),u=this.getModule(er),d=!1,p=this.getModule(Vn),f=this.getFileDownloadProxy(),h=0,m=t.length;h<m;h++)if(this._isSignaling(t[h]))this._signalingFromUnreadDBList.push(t[h].eventArray[0].c2CNotifyMsgArray[0]);else{var v=t[h];v.currentUser=this.getMyUserID(),v.conversationType=S.CONV_C2C,v.isSystemMessage=!!v.isSystemMessage,(it(v.nick)||it(v.avatar))&&(d=!0,Fe.d("".concat(this._n,"._newC2CMessageStoredAndSummary nick or avatar missing!"))),a=new Ha(v),v.elements=l.parseElements(v.elements,v.from),a.setElement(v.elements,f),a.setNickAndAvatar({nick:v.nick,avatar:v.avatar});var g=a.conversationID;if(o){if(1===this._messageFromUnreadDBMap.get(a.ID))continue;var _=!1;if(a.from!==this.getMyUserID()){var y=p.getLatestMessageSentByPeer(g);if(y){var b=y.nick,O=y.avatar;d?a.setNickAndAvatar({nick:b,avatar:O}):b===a.nick&&O===a.avatar||(_=!0)}}else{var M=p.getLatestMessageSentByMe(g);if(M){var k=M.nick,C=M.avatar;k===a.nick&&C===a.avatar||p.modifyMessageSentByMe({conversationID:g,latestNick:a.nick,latestAvatar:a.avatar})}}var w=1===t[h].isModified;if(p.isMessageSentByCurrentInstance(a)?a.isModified=w:w=!1,0===v.msgLifeTime)a._onlineOnlyFlag=!0,p.isMessageSentByCurrentInstance(a)||s.push(a);else{if(!p.pushIntoMessageList(s,a,w))continue;_&&(p.modifyMessageSentByPeer({conversationID:g,latestNick:a.nick,latestAvatar:a.avatar}),p.updateUserProfileSpecifiedKey({conversationID:g,nick:a.nick,avatar:a.avatar}))}o&&a.clientTime>0&&u.addMessageDelay(a.clientTime)}else this._messageFromUnreadDBMap.set(a.ID,1);if(0!==v.msgLifeTime){if(!1===a._onlineOnlyFlag){var I=p.getLastMessageTime(g);if(et(I)&&a.time<I)continue;if(it(c[g])){var T=0;"in"===a.flow&&(a._isExcludedFromUnreadCount||(T=1)),c[g]=i.push({conversationID:g,unreadCount:T,type:a.conversationType,subType:a.conversationSubType,lastMessage:a._isExcludedFromLastMessage?"":a})-1}else{var E=c[g];i[E].type=a.conversationType,i[E].subType=a.conversationSubType,i[E].lastMessage=a._isExcludedFromLastMessage?"":a,"in"===a.flow&&(a._isExcludedFromUnreadCount||i[E].unreadCount++)}}}else a._onlineOnlyFlag=!0}this._handleSignalingFromUnreadDB();var j=!1;if(at(r))for(var D=function(e,t){if(r[e].unreadCount>0){j=!0;var n=i.find((function(t){return t.conversationID==="C2C".concat(r[e].from)}));n?n.unreadCount=r[e].unreadCount:i.push({conversationID:"C2C".concat(r[e].from),unreadCount:r[e].unreadCount,type:S.CONV_C2C})}},L=0,A=r.length;L<A;L++)D(L);if(at(n))for(var N=function(e,t){i.find((function(t){return t.conversationID==="C2C".concat(n[e].from)}))||i.push({conversationID:"C2C".concat(n[e].from),type:S.CONV_C2C,lastMsgTime:n[e].lastMsgTime})},x=0,R=n.length;x<R;x++)N(x);return{conversationOptionsList:i,messageList:s,isUnreadC2CMessage:j}}},{key:"_isSignaling",value:function(e){var t=e.eventArray;return!(!at(t)||10!==t[0].event)}},{key:"_handleSignalingFromUnreadDB",value:function(){var e=this._signalingFromUnreadDBList.length;if(Fe.l("".concat(this._n,"._handleSignalingFromUnreadDB signalingCount:").concat(e)),0!==e){var t=[];this._signalingFromUnreadDBList.forEach((function(e){e.hasOwnProperty("c2cMessageRevokedNotify")&&t.push(e)})),this.onC2CMessageRevoked({dataList:t}),this._signalingFromUnreadDBList.length=0,t.length=0}}},{key:"onC2CMessageRevoked",value:function(e){var t=this,n=this.getModule(Vn),r=[],o=null,a=!0;e.dataList.forEach((function(e){if(e.c2cMessageRevokedNotify){var i=e.c2cMessageRevokedNotify.revokedInfos;it(i)||i.forEach((function(e){var i=t.getMyUserID()===e.from?"".concat(S.CONV_C2C).concat(e.to):"".concat(S.CONV_C2C).concat(e.from);o=n.revoke(i,e.sequence,e.random);var s=e.revokerInfo&&e.revokerInfo.revoker;if(o)o.revoker||(o.revoker=s,r.push(o));else{var c={conversationID:i,sequence:e.sequence,time:e.time,revoker:s};n.isLastMessageRevoked(c)&&(r.push(c),a=!1)}}))}})),0!==r.length&&(n.onMessageRevoked(r),!0===a&&(Fe.l("".concat(this._n,".onC2CMessageRevoked count:").concat(r.length)),this.emitOuterEvent(I.MESSAGE_REVOKED,r)))}},{key:"onC2CMessageReadReceipt",value:function(e){var t=this;e.dataList.forEach((function(e){if(!Kt(e.c2cMessageReadReceipt)){var n=e.c2cMessageReadReceipt.to;e.c2cMessageReadReceipt.uinPairReadArray.forEach((function(e){var r=e.peerReadTime;Fe.d("".concat(t._n,"._onC2CMessageReadReceipt to:").concat(n," peerReadTime:").concat(r));var o="".concat(S.CONV_C2C).concat(n),a=t.getModule(Vn);a.recordPeerReadTime(o,r),a.updateMessageIsPeerReadProperty(o,r)}))}}))}},{key:"onC2CMessageReadNotice",value:function(e){var t=this;e.dataList.forEach((function(e){if(!Kt(e.c2cMessageReadNotice)){var n=t.getModule(Vn);e.c2cMessageReadNotice.uinPairReadArray.forEach((function(e){var r=e.from,o=e.peerReadTime;Fe.d("".concat(t._n,".onC2CMessageReadNotice from:").concat(r," lastReadTime:").concat(o));var a="".concat(S.CONV_C2C).concat(r);n.updateIsReadAfterReadReport({conversationID:a,lastMessageTime:o}),n.updateUnreadCount(a)}))}}))}},{key:"onC2CMessageModified",value:function(e){Fe.d("".concat(this._n,".onC2CMessageModified options:"),JSON.stringify(e));var t=this.getModule(Vn);e.dataList.forEach((function(e){t.onMessageModified(n(n({},e),{},{conversationType:S.CONV_C2C}))}))}},{key:"onReadReceiptList",value:function(e){Fe.d("".concat(this._n,".onReadReceiptList options:"),JSON.stringify(e));var t=e.dataList,n=t.userID,r=t.readReceiptList;this.getModule(Vn).updateReadReceiptInfo({userID:n,readReceiptList:r})}},{key:"sendMessage",value:function(e,t){var n=this._createC2CMessagePack(e,t);return this.request(n)}},{key:"_createC2CMessagePack",value:function(e,t){var n=null;t&&(t.offlinePushInfo&&(n=t.offlinePushInfo),!0===t.onlineUserOnly&&(n?n.disablePush=!0:n={disablePush:!0}));var r="";nt(e.cloudCustomData)&&e.cloudCustomData.length>0&&(r=e.cloudCustomData);var o=[];if(ot(t)&&ot(t.messageControlInfo)){var a=t.messageControlInfo,i=a.excludedFromUnreadCount,s=a.excludedFromLastMessage,c=a.excludedFromContentModeration;!0===i&&o.push("NoUnread"),!0===s&&o.push("NoLastMsg"),!0===c&&o.push("NoMsgCheck")}var l=this.isOnlineMessage(e,t)?0:void 0;return{protocolName:hr,tjgID:this.generateTjgID(e),requestData:{fromAccount:this.getMyUserID(),toAccount:e.to,msgBody:e.getElements(),cloudCustomData:r,msgSeq:e.sequence,msgRandom:e.random,msgLifeTime:l,nick:e.nick,avatar:e.avatar,offlinePushInfo:n?{pushFlag:!0===n.disablePush?1:0,title:n.title||"",desc:n.description||"",ext:n.extension||"",apnsInfo:{badgeMode:!0===n.ignoreIOSBadge?1:0,isVoipPush:this._isVoipPush(n)},androidInfo:{OPPOChannelID:n.androidOPPOChannelID||""}}:void 0,messageControlInfo:0!==l?o:void 0,clientTime:e.clientTime,needReadReceipt:!0===e.needReadReceipt?1:0,isSupportExtension:!0===e.isSupportExtension?1:0}}}},{key:"_isVoipPush",value:function(e){var t=void 0;return it(e.disableVoipPush)||(t=!1===e.disableVoipPush?1:0),t}},{key:"isOnlineMessage",value:function(e,t){return!(!t||!0!==t.onlineUserOnly)}},{key:"revokeMessage",value:function(e){return this.request({protocolName:Or,requestData:{msgInfo:{fromAccount:e.from,toAccount:e.to,msgSeq:e.sequence,msgRandom:e.random,msgTimeStamp:e.time}}})}},{key:"deleteMessage",value:function(e){var t=e.to,n=e.keyList;return Fe.l("".concat(this._n,".deleteMessage toAccount:").concat(t," count:").concat(n.length)),this.request({protocolName:Sr,requestData:{fromAccount:this.getMyUserID(),to:t,keyList:n}})}},{key:"modifyRemoteMessage",value:function(e){var t=e.from,n=e.to,r=e.version,o=void 0===r?0:r,a=e.sequence,i=e.random,s=e.time,c=e.payload,l=e.type,u=e.cloudCustomData,d=void 0;return Gt(l)&&(d=[]).push({type:l,content:c}),this.request({protocolName:Tr,requestData:{from:t,to:n,version:o,sequence:a,random:i,time:s,elements:d,cloudCustomData:u}})}},{key:"setMessageRead",value:function(e){var t=this,n=e.conversationID,r=e.lastMessageTime,o="".concat(this._n,".setMessageRead");Fe.l("".concat(o," conversationID:").concat(n," lastMessageTime:").concat(r)),et(r)||this.outputWarning("DoNotModifyLastTime");var a=new Ta("setC2CMessageRead");return a.setMessage("conversationID:".concat(n," lastMessageTime:").concat(r)),this.request({protocolName:Mr,requestData:{C2CMsgReaded:{cookie:"",C2CMsgReadedItem:[{toAccount:n.replace("C2C",""),lastMessageTime:r,receipt:1}]}}}).then((function(){a.setNetworkType(t.getNetworkType()).end(),Fe.l("".concat(o," ok"));var e=t.getModule(Vn);return e.updateIsReadAfterReadReport({conversationID:n,lastMessageTime:r}),e.updateUnreadCount(n),Ya()})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];a.setError(e,r,o).end()})),Fe.l("".concat(o," failed. error:"),e),Ja(e)}))}},{key:"getRoamingMessage",value:function(e){var t=this,n="".concat(this._n,".getRoamingMessage"),r=e.peerAccount,o=e.conversationID,a=e.count,i=e.lastMessageTime,s=e.messageKey,c="peerAccount:".concat(r," count:").concat(a||15," lastMessageTime:").concat(i||0," messageKey:").concat(s);Fe.l("".concat(n," ").concat(c));var l=new Ta("getC2CRoamingMessages");return this.request({protocolName:wr,requestData:{peerAccount:r,count:a||15,lastMessageTime:i||0,messageKey:s}}).then((function(e){var r=e.data,a=r.complete,i=r.messageList,s=r.messageKey,u=r.lastMessageTime;it(i)?Fe.l("".concat(n," ok. complete:").concat(a," but messageList is undefined!")):Fe.l("".concat(n," ok. complete:").concat(a," count:").concat(i.length)),l.setNetworkType(t.getNetworkType()).setMessage("".concat(c," complete:").concat(a," length:").concat(i.length)).end();var d=t.getModule(Vn);1===a&&d.setCompleted(o);var p=d.onRoamingMessage(i,o);d.modifyMessageList(o),d.updateIsRead(o),d.updateRoamingMessageKeyAndTime(o,s,u);var f=d.getPeerReadTime(o);if(Fe.l("".concat(n," update isPeerRead property. conversationID:").concat(o," peerReadTime:").concat(f)),f)d.updateMessageIsPeerReadProperty(o,f);else{var h=o.replace(S.CONV_C2C,"");t.getRemotePeerReadTime([h]).then((function(){d.updateMessageIsPeerReadProperty(o,d.getPeerReadTime(o))}))}var m="";if(p.length>0)m=p[0].ID;else{var v=d.getLocalOldestMessage(o);v&&(m=v.ID)}return Fe.l("".concat(n," nextReqID:").concat(m," stored message count:").concat(p.length)),{nextReqID:m,storedMessageList:p}})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];l.setMessage(c).setError(e,r,o).end()})),Fe.w("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"getRoamingMessagesHopping",value:function(e){var t=this,n="".concat(this._n,".getRoamingMessagesHopping"),r=e.peerAccount,o=e.time,a=void 0===o?0:o,i=e.count,s=e.direction,c="".concat(S.CONV_C2C).concat(r),l="peerAccount:".concat(r," count:").concat(i," time:").concat(a," direction:").concat(s);Fe.l("".concat(n," ").concat(l));var u=new Ta("getC2CRoamingMessagesHopping");return this.request({protocolName:wr,requestData:{peerAccount:r,count:i+1,lastMessageTime:a,direction:s}}).then((function(e){var r=e.data,o=r.complete,a=r.messageList,i=void 0===a?[]:a,d=r.lastMessageTime;Fe.l("".concat(n," ok. complete:").concat(o," count:").concat(i.length)),u.setNetworkType(t.getNetworkType()).setMessage("".concat(l," complete:").concat(o," length:").concat(i.length)).end(),1!==o&&(1===s?i.pop():i.shift());var p=t.getModule(Vn).onRoamingMessage(i,c,!1);t._modifyMessageList(c,p);var f=t._computeResult({complete:o,lastMessageTime:d,resultList:p});return Ya(f)})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];u.setMessage(l).setError(e,r,o).end()})),Fe.w("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"_computeResult",value:function(e){var t=e.complete,n=void 0===t?0:t,r=e.lastMessageTime,o=e.resultList,a={messageList:y(void 0===o?[]:o),isCompleted:!1,nextMessageTime:""};return 1===n?(a.isCompleted=!0,a):(a.nextMessageTime=r,a)}},{key:"_modifyMessageList",value:function(e,t){var n=this.getModule(Vn).getLocalConversation(e);if(n)for(var r=n.userProfile.nick,o=n.userProfile.avatar,a=this.getModule(An).getNickAndAvatarByUserID(this.getMyUserID()),i=a.nick,s=a.avatar,c=t.length-1;c>=0;c--){var l=t[c];"in"===l.flow&&(l.nick!==r&&l.setNickAndAvatar({nick:r}),l.avatar!==o&&l.setNickAndAvatar({avatar:o})),"out"===l.flow&&(l.nick!==i&&l.setNickAndAvatar({nick:i}),l.avatar!==s&&l.setNickAndAvatar({avatar:s}))}}},{key:"getRemotePeerReadTime",value:function(e){var t=this,n="".concat(this._n,".getRemotePeerReadTime");if(Kt(e))return Fe.w("".concat(n," userIDList is empty!")),Promise.resolve();var r=new Ta("getPeerReadTime");return Fe.l("".concat(n," userIDList:").concat(e)),this.request({protocolName:Ir,requestData:{userIDList:e}}).then((function(o){var a=o.data.peerReadTimeList;Fe.l("".concat(n," ok. peerReadTimeList:").concat(a));for(var i="",s=t.getModule(Vn),c=0;c<e.length;c++)i+="".concat(e[c],"-").concat(a[c]," "),a[c]>0&&s.recordPeerReadTime("C2C".concat(e[c]),a[c]);r.setNetworkType(t.getNetworkType()).setMessage(i).end()})).catch((function(e){t.probeNetwork().then((function(t){var n=_(t,2),o=n[0],a=n[1];r.setError(e,o,a).end()})),Fe.w("".concat(n," failed. error:"),e)}))}},{key:"sendReadReceipt",value:function(e){var t=this,n=e[0].conversationID.replace(S.CONV_C2C,""),r=new Ta("sendC2CReadReceipt");r.setMessage("peerAccount:".concat(n));var o=this.getMyUserID(),a=e.filter((function(e){return e.from!==o&&!0===e.needReadReceipt})).map((function(e){return{fromAccount:e.from,toAccount:e.to,sequence:e.sequence,random:e.random,time:e.time,clientTime:e.clientTime}}));if(0===a.length)return Ja({code:fa.READ_RECEIPT_MESSAGE_LIST_EMPTY});var i="".concat(this._n,".sendReadReceipt");return Fe.l("".concat(i,". peerAccount:").concat(n," messageInfoList length:").concat(a.length)),this.request({protocolName:uo,requestData:{peerAccount:n,messageInfoList:a}}).then((function(e){return r.end(),Fe.l("".concat(i," ok")),Ya()})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),o=n[0],a=n[1];r.setError(e,o,a).end()})),Fe.w("".concat(i," failed. error:"),e),Ja(e)}))}},{key:"getReadReceiptList",value:function(e){var t="".concat(this._n,".getReadReceiptList"),n=this.getMyUserID(),r=e.filter((function(e){return e.from===n&&!0===e.needReadReceipt}));return Fe.l("".concat(t," userID:").concat(n," messageList length:").concat(r.length)),$a({messageList:r})}},{key:"getMessageExtensions",value:function(e,t){return Fe.l("".concat(this._n,".getMessageExtensions startSequence:").concat(t)),this.request({protocolName:jr,requestData:{from:e.from,to:e.to,messageKey:this._getMessageKey(e),startSequence:t}})}},{key:"modifyMessageExtensions",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Fe.l("".concat(this._n,".modifyMessageExtensions operateType:").concat(n)),this.request({protocolName:Er,requestData:{from:e.from,to:e.to,messageKey:this._getMessageKey(e),extensionList:t,operateType:n}})}},{key:"_getMessageKey",value:function(e){var t=e.clientSequence,n=e.random,r=e.time;return"".concat(t,"_").concat(n,"_").concat(r)}},{key:"reset",value:function(){Fe.l("".concat(this._n,".reset")),this._messageFromUnreadDBMap.clear(),this._signalingFromUnreadDBList.length=0}}]),r}(sr),Xa=function(){function e(){o(this,e),this.list=new Map,this._n="MessageListHandler",this._latestMessageSentByPeerMap=new Map,this._latestMessageSentByMeMap=new Map}return i(e,[{key:"getLocalOldestMessageByConversationID",value:function(e){if(!e)return null;if(!this.list.has(e))return null;var t=this.list.get(e).values();return t?t.next().value:null}},{key:"pushIn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.conversationID,r=!0;this.list.has(n)||this.list.set(n,new Map);var o=this._getUniqueIDOfMessage(e),a=this.list.get(n).has(o);if(a){var i=this.list.get(n).get(o);if(!t||!0===i.isModified)return!1}return this.list.get(n).set(o,e),this._setLatestMessageSentByPeer(n,e),this._setLatestMessageSentByMe(n,e),r}},{key:"unshift",value:function(e,t){var n;if(at(e)?e.length>0&&(n=e[0].conversationID,this._unshiftMultipleMessages(e,t)):(n=e.conversationID,this._unshiftSingleMessage(e,t)),n&&n.startsWith(S.CONV_C2C)){var r=Array.from(this.list.get(n).values()),o=r.length;if(0===o)return;for(var a=o-1;a>=0;a--)if("out"===r[a].flow){this._setLatestMessageSentByMe(n,r[a]);break}for(var i=o-1;i>=0;i--)if("in"===r[i].flow){this._setLatestMessageSentByPeer(n,r[i]);break}}}},{key:"_unshiftSingleMessage",value:function(e,t){var n=e.conversationID,r=this._getUniqueIDOfMessage(e);if(!this.list.has(n))return this.list.set(n,new Map),this.list.get(n).set(r,e),void t.push(e);var o=this.list.get(n),a=Array.from(o);o.has(r)||(a.unshift([r,e]),this.list.set(n,new Map(a)),t.push(e))}},{key:"_unshiftMultipleMessages",value:function(e,t){for(var n=e.length,r=[],o=e[0].conversationID,a=this.list.get(o),i=this.list.has(o)?Array.from(a):[],s=0;s<n;s++){var c=this._getUniqueIDOfMessage(e[s]);a&&a.has(c)||(r.push([c,e[s]]),t.push(e[s]))}this.list.set(o,new Map(r.concat(i)))}},{key:"remove",value:function(e){var t=e.conversationID,n=this._getUniqueIDOfMessage(e);this.list.has(t)&&this.list.get(t).delete(n)}},{key:"revoke",value:function(e,t,n){if(Fe.d("revoke message",e,t,n),this.list.has(e)){var r,o=w(this.list.get(e));try{for(o.s();!(r=o.n()).done;){var a=_(r.value,2)[1];if(a.sequence===t&&(it(n)||a.random===n))return a.isRevoked||(a.isRevoked=!0),a}}catch(s){o.e(s)}finally{o.f()}}return null}},{key:"removeByConversationID",value:function(e){this.list.has(e)&&(this.list.delete(e),this._latestMessageSentByPeerMap.delete(e),this._latestMessageSentByMeMap.delete(e))}},{key:"findMessage",value:function(e){var t,n=null,r=w(this.list);try{for(r.s();!(t=r.n()).done;)for(var o=y(_(t.value,2)[1].values()),a=o.length,i=0;i<a;i++)if(o[i].ID===e){n=o[i];break}}catch(c){r.e(c)}finally{r.f()}return n}},{key:"updateMessageIsPeerReadProperty",value:function(e,t){var n=[];if(this.list.has(e)){var r,o=w(this.list.get(e));try{for(o.s();!(r=o.n()).done;){var a=_(r.value,2)[1];a.time<=t&&!a.isPeerRead&&"out"===a.flow&&(a.isPeerRead=!0,n.push(a))}}catch(s){o.e(s)}finally{o.f()}Fe.l("".concat(this._n,".updateMessageIsPeerReadProperty conversationID:").concat(e," peerReadTime:").concat(t," count:").concat(n.length))}return n}},{key:"updateMessageIsModifiedProperty",value:function(e){var t=e.conversationID;if(this.list.has(t)){var n=this._getUniqueIDOfMessage(e),r=this.list.get(t).get(n);r&&(r.isModified=!0)}}},{key:"hasLocalMessageList",value:function(e){return this.list.has(e)}},{key:"getLocalMessageList",value:function(e){return this.hasLocalMessageList(e)?y(this.list.get(e).values()):[]}},{key:"hasLocalMessage",value:function(e,t){for(var n=!1,r=this.getLocalMessageList(e),o=r.length,a=0;a<o;a++)r[a].ID===t&&(n=!0);return n}},{key:"getLocalMessage",value:function(e,t){for(var n=null,r=this.getLocalMessageList(e),o=r.length,a=0;a<o;a++)if(r[a].ID===t){n=r[a];break}return n}},{key:"getLocalLastMessage",value:function(e){var t=this.getLocalMessageList(e);return t[t.length-1]}},{key:"getLocalOldestMessage",value:function(e){return this.getLocalMessageList(e)[0]}},{key:"_setLatestMessageSentByPeer",value:function(e,t){e.startsWith(S.CONV_C2C)&&"in"===t.flow&&this._latestMessageSentByPeerMap.set(e,t)}},{key:"_setLatestMessageSentByMe",value:function(e,t){e.startsWith(S.CONV_C2C)&&"out"===t.flow&&this._latestMessageSentByMeMap.set(e,t)}},{key:"getLatestMessageSentByPeer",value:function(e){return this._latestMessageSentByPeerMap.get(e)}},{key:"getLatestMessageSentByMe",value:function(e){return this._latestMessageSentByMeMap.get(e)}},{key:"modifyMessageSentByPeer",value:function(e){var t=e.conversationID,n=e.latestNick,r=e.latestAvatar,o=this.list.get(t);if(!Kt(o)){var a=Array.from(o.values()),i=a.length;if(0!==i){for(var s=null,c=0,l=!1,u=i-1;u>=0;u--)"in"===a[u].flow&&((s=a[u]).nick!==n&&(s.setNickAndAvatar({nick:n}),l=!0),s.avatar!==r&&(s.setNickAndAvatar({avatar:r}),l=!0),l&&(c+=1));Fe.l("".concat(this._n,".modifyMessageSentByPeer conversationID:").concat(t," count:").concat(c))}}}},{key:"modifyMessageSentByMe",value:function(e){var t=e.conversationID,n=e.latestNick,r=e.latestAvatar,o=this.list.get(t);if(!Kt(o)){var a=Array.from(o.values()),i=a.length;if(0!==i){for(var s=null,c=0,l=!1,u=i-1;u>=0;u--)"out"===a[u].flow&&((s=a[u]).nick!==n&&(s.setNickAndAvatar({nick:n}),l=!0),s.avatar!==r&&(s.setNickAndAvatar({avatar:r}),l=!0),l&&(c+=1));Fe.l("".concat(this._n,".modifyMessageSentByMe conversationID:").concat(t," count:").concat(c))}}}},{key:"getTopicConversationIDList",value:function(e){return y(this.list.keys()).filter((function(t){return t.startsWith("".concat(S.CONV_GROUP).concat(e))}))}},{key:"traversal",value:function(){if(0!==this.list.size&&-1===Fe.getLevel()){console.group("conversationID-messageCount");var e,t=w(this.list);try{for(t.s();!(e=t.n()).done;){var n=_(e.value,2),r=n[0],o=n[1];console.log("".concat(r,"-").concat(o.size))}}catch(i){t.e(i)}finally{t.f()}console.groupEnd()}}},{key:"onMessageModified",value:function(e,t){if(!this.list.has(e))return{isUpdated:!1,message:null};var n=this._getUniqueIDOfMessage(t),r=this.list.get(e).has(n);if(Fe.d("".concat(this._n,".onMessageModified conversationID:").concat(e," uniqueID:").concat(n," has:").concat(r)),r){var o=this.list.get(e).get(n),a=t.messageVersion,i=t.elements,s=t.cloudCustomData;return o.version<a?(o.version=a,o._elements=JSON.parse(JSON.stringify(i)),o.payload=JSON.parse(JSON.stringify(i[0].content)),o.type=i[0].type,o.cloudCustomData=s,o.isModified=!0,{isUpdated:!0,message:o}):{isUpdated:!1,message:o}}return{isUpdated:!1,message:null}}},{key:"_getUniqueIDOfMessage",value:function(e){var t=e.from,n=e.to,r=e.random,o=e.sequence,a=e.time;return"".concat(t,"-").concat(n,"-").concat(r,"-").concat(o,"-").concat(a)}},{key:"reset",value:function(){this.list.clear(),this._latestMessageSentByPeerMap.clear(),this._latestMessageSentByMeMap.clear()}}]),e}(),Za="_a2KeyAndTinyIDUpdated",ei="_cloudConfigUpdated",ti="_profileUpdated";function ni(e){this.mixin(e)}ni.mixin=function(e){var t=e.prototype||e;t._isReady=!1,t.ready=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e)return this._isReady?void(t?e.call(this):setTimeout(e,1)):(this._readyQueue=this._readyQueue||[],void this._readyQueue.push(e))},t.triggerReady=function(){var e=this;this._isReady=!0,setTimeout((function(){var t=e._readyQueue;e._readyQueue=[],t&&t.length>0&&t.forEach((function(e){e.call(this)}),e)}),1)},t.resetReady=function(){this._isReady=!1,this._readyQueue=[]},t.isReady=function(){return this._isReady}};var ri=["jpg","jpeg","gif","png","bmp","image","webp"],oi=["mp4","quicktime","mov"],ai=1,ii=2,si=3,ci=255,li=function(){function e(t){var n=this;o(this,e),Kt(t)||(this.userID=t.userID||"",this.nick=t.nick||"",this.gender=t.gender||"",this.birthday=t.birthday||0,this.location=t.location||"",this.selfSignature=t.selfSignature||"",this.allowType=t.allowType||S.ALLOW_TYPE_ALLOW_ANY,this.language=t.language||0,this.avatar=t.avatar||"",this.messageSettings=t.messageSettings||0,this.adminForbidType=t.adminForbidType||S.FORBID_TYPE_NONE,this.level=t.level||0,this.role=t.role||0,this.lastUpdatedTime=0,this.profileCustomField=[],Kt(t.profileCustomField)||t.profileCustomField.forEach((function(e){n.profileCustomField.push({key:e.key,value:e.value})})))}return i(e,[{key:"validate",value:function(e){var t=!0,n="";if(Kt(e))return{valid:!1,tips:"empty options"};if(e.profileCustomField)for(var r=e.profileCustomField.length,o=null,a=0;a<r;a++){if(o=e.profileCustomField[a],!nt(o.key)||-1===o.key.indexOf("Tag_Profile_Custom"))return{valid:!1,tips:"The prefix of keys of the custom profile key-value pairs (which is profileCustomField) must be Tag_Profile_Custom"};if(!nt(o.value))return{valid:!1,tips:"The type of values of the custom profile key-value pairs (which is profileCustomField) must be String"}}for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if("profileCustomField"===i)continue;if(Kt(e[i])&&!nt(e[i])&&!et(e[i])){n="key:"+i+", invalid value:"+e[i],t=!1;continue}switch(i){case"nick":nt(e[i])||(n="nick must be a string",t=!1),ht(e[i])>500&&(n="nick name limited: must less than or equal to ".concat(500," bytes, current size: ").concat(ht(e[i])," bytes"),t=!1);break;case"gender":_t(He,e.gender)||(n="key:gender, invalid value:"+e.gender,t=!1);break;case"birthday":et(e.birthday)||(n="birthday must be a number",t=!1);break;case"location":nt(e.location)||(n="location must be a string",t=!1);break;case"selfSignature":nt(e.selfSignature)||(n="selfSignature must be a string",t=!1);break;case"allowType":_t(qe,e.allowType)||(n="key:allowType, invalid value:"+e.allowType,t=!1);break;case"language":et(e.language)||(n="language must be a number",t=!1);break;case"avatar":nt(e.avatar)||(n="avatar must be a string",t=!1);break;case"messageSettings":0!==e.messageSettings&&1!==e.messageSettings&&(n="messageSettings must be 0 or 1",t=!1);break;case"adminForbidType":_t(Ye,e.adminForbidType)||(n="key:adminForbidType, invalid value:"+e.adminForbidType,t=!1);break;case"level":et(e.level)||(n="level must be a number",t=!1);break;case"role":et(e.role)||(n="role must be a number",t=!1);break;default:n="unknown key:"+i+" "+e[i],t=!1}}return{valid:t,tips:n}}}]),e}(),ui=i((function e(t){o(this,e),this.value=t,this.next=null})),di=function(){function e(t){o(this,e),this.MAX_LENGTH=t,this.pTail=null,this.pNodeToDel=null,this.map=new Map}return i(e,[{key:"set",value:function(e){var t=new ui(e);if(this.map.size<this.MAX_LENGTH)null===this.pTail?(this.pTail=t,this.pNodeToDel=t):(this.pTail.next=t,this.pTail=t),this.map.set(e,1);else{var n=this.pNodeToDel;this.pNodeToDel=this.pNodeToDel.next,this.map.delete(n.value),n.next=null,n=null,this.pTail.next=t,this.pTail=t,this.map.set(e,1)}}},{key:"has",value:function(e){return this.map.has(e)}},{key:"delete",value:function(e){this.has(e)&&this.map.delete(e)}},{key:"tail",value:function(){return this.pTail}},{key:"size",value:function(){return this.map.size}},{key:"data",value:function(){return Array.from(this.map.keys())}},{key:"reset",value:function(){for(var e;null!==this.pNodeToDel;)e=this.pNodeToDel,this.pNodeToDel=this.pNodeToDel.next,e.next=null,e=null;this.pTail=null,this.map.clear()}}]),e}(),pi=["groupID","name","avatar","type","introduction","notification","ownerID","selfInfo","createTime","infoSequence","lastInfoTime","lastMessage","nextMessageSeq","memberNum","maxMemberNum","memberList","joinOption","groupCustomField","muteAllMembers","isSupportTopic","inviteOption","_lastRevokedTime"],fi=function(){function e(t){o(this,e),this.groupID="",this.name="",this.avatar="",this.type="",this.introduction="",this.notification="",this.ownerID="",this.createTime="",this.infoSequence="",this.lastInfoTime="",this.selfInfo={messageRemindType:"",joinTime:"",nameCard:"",role:"",userID:"",memberCustomField:void 0,readedSequence:0,excludedUnreadSequenceList:void 0},this.lastMessage={lastTime:"",lastSequence:"",fromAccount:"",messageForShow:""},this.nextMessageSeq="",this.memberNum="",this.memberCount="",this.maxMemberNum="",this.maxMemberCount="",this.joinOption="",this.inviteOption="",this.groupCustomField=[],this.muteAllMembers=!1,this.isSupportTopic=!1,this._lastRevokedTime=0,this._initGroup(t)}return i(e,[{key:"memberNum",get:function(){return this.memberCount},set:function(e){}},{key:"maxMemberNum",get:function(){return this.maxMemberCount},set:function(e){}},{key:"_initGroup",value:function(e){for(var t in e)pi.indexOf(t)<0||("selfInfo"!==t?("memberNum"===t&&(this.memberCount=e[t]),"maxMemberNum"===t&&(this.maxMemberCount=e[t]),"isSupportTopic"!==t?this[t]=e[t]:this.isSupportTopic=1===e[t]):this.updateSelfInfo(e[t]))}},{key:"updateGroup",value:function(e){var t=this;e.appid=void 0,e.grossTopicNextMsgSeq=void 0,e.selfInfo&&(e.selfInfo.grossTopicReadSeq=void 0);var n=JSON.parse(JSON.stringify(e));n.lastMsgTime&&(this.lastMessage.lastTime=n.lastMsgTime),it(n.muteAllMembers)||("On"===n.muteAllMembers?n.muteAllMembers=!0:n.muteAllMembers=!1),n.groupCustomField&&Mt(this.groupCustomField,n.groupCustomField),it(n.memberNum)||(this.memberCount=n.memberNum),it(n.maxMemberNum)||(this.maxMemberCount=n.maxMemberNum),it(n.isSupportTopic)||(this.isSupportTopic=et(n.isSupportTopic)?1===n.isSupportTopic:n.isSupportTopic),pt(this,n,["members","errorCode","lastMsgTime","groupCustomField","memberNum","maxMemberNum","isSupportTopic"]),at(n.members)&&n.members.length>0&&n.members.forEach((function(e){e.userID===t.selfInfo.userID&&pt(t.selfInfo,e,["sequence"])}))}},{key:"updateSelfInfo",value:function(e){var t={nameCard:e.nameCard,joinTime:e.joinTime,role:e.role,messageRemindType:e.messageRemindType,readedSequence:e.readedSequence,excludedUnreadSequenceList:e.excludedUnreadSequenceList};pt(this.selfInfo,n({},t),[],["",null,void 0,0,NaN])}},{key:"setSelfNameCard",value:function(e){this.selfInfo.nameCard=e}}]),e}(),hi=function(e,t){return it(e)?{lastTime:0,lastSequence:0,fromAccount:0,messageForShow:"",payload:null,type:"",isRevoked:!1,cloudCustomData:"",onlineOnlyFlag:!1,nick:"",nameCard:"",version:0,isPeerRead:!1,revoker:null}:e instanceof Ha?{lastTime:e.time||0,lastSequence:e.sequence||0,fromAccount:e.from||"",messageForShow:Ft(e.type,e.payload,t),payload:e.payload||null,type:e.type||null,isRevoked:e.isRevoked||!1,cloudCustomData:e.cloudCustomData||"",onlineOnlyFlag:e._onlineOnlyFlag||!1,nick:e.nick||"",nameCard:e.nameCard||"",version:e.version||0,isPeerRead:e.isPeerRead||!1,revoker:e.revoker||null}:n(n({},e),{},{messageForShow:Ft(e.type,e.payload,t)})},mi=function(){function e(t,n){o(this,e),this.conversationID=t.conversationID||"",this.unreadCount=t.unreadCount||0,this.type=t.type||"",this.lastMessage=hi(t.lastMessage,n),t.lastMsgTime&&(this.lastMessage.lastTime=t.lastMsgTime),this._isInfoCompleted=!1,this.peerReadTime=t.peerReadTime||0,this.groupAtInfoList=[],this.remark="",this.isPinned=t.isPinned||!1,this.messageRemindType="",this.markList=t.markList||[],this.customData=t.customData||"",this.conversationGroupList=t.conversationGroupList||[],this._initProfile(t)}return i(e,[{key:"toAccount",get:function(){return this.conversationID.startsWith(S.CONV_C2C)?this.conversationID.replace(S.CONV_C2C,""):this.conversationID.startsWith(S.CONV_GROUP)?this.conversationID.replace(S.CONV_GROUP,""):""}},{key:"subType",get:function(){return this.groupProfile?this.groupProfile.type:""}},{key:"_initProfile",value:function(e){var t=this;Object.keys(e).forEach((function(n){switch(n){case"userProfile":t.userProfile=e.userProfile;break;case"groupProfile":t.groupProfile=e.groupProfile}})),it(this.userProfile)&&this.type===S.CONV_C2C?this.userProfile=new li({userID:e.conversationID.replace("C2C","")}):it(this.groupProfile)&&this.type===S.CONV_GROUP&&(this.groupProfile=new fi({groupID:e.conversationID.replace("GROUP","")}))}},{key:"updateUnreadCount",value:function(e){var t=e.nextUnreadCount,n=e.isFromGetConversations,r=e.isUnreadC2CMessage;it(t)||(kt(this.subType)?this.unreadCount=0:n&&this.type===S.CONV_GROUP||n&&this.type===S.CONV_TOPIC||r&&this.type===S.CONV_C2C?this.unreadCount=t:this.unreadCount=this.unreadCount+t)}},{key:"updateLastMessage",value:function(e){this.lastMessage=hi(e)}},{key:"updateGroupAtInfoList",value:function(e){if(!this._isNeedMergeGroupAtInfo(e)){var t,n=(b(t=e.groupAtType)||O(t)||M(t)||C()).slice(0);-1!==n.indexOf(S.CONV_AT_ME)&&-1!==n.indexOf(S.CONV_AT_ALL)&&(n=[S.CONV_AT_ALL_AT_ME]);var r={from:e.from,groupID:e.groupID,topicID:e.topicID,messageSequence:e.sequence,atTypeArray:n,__random:e.__random,__sequence:e.__sequence};this.groupAtInfoList.push(r)}}},{key:"_isNeedMergeGroupAtInfo",value:function(e){var t=e.groupID,n=e.sequence;if(!Ct({groupID:t}))return!1;var r=!1;return this.groupAtInfoList.forEach((function(t){t.messageSequence===n&&(t.atTypeArray.indexOf(S.CONV_AT_ME)>-1&&e.groupAtType.indexOf(S.CONV_AT_ALL)>-1&&(t.atTypeArray=[S.CONV_AT_ALL_AT_ME]),t.atTypeArray.indexOf(S.CONV_AT_ALL)>-1&&e.groupAtType.indexOf(S.CONV_AT_ME)>-1&&(t.atTypeArray=[S.CONV_AT_ALL_AT_ME],t.__random=e.__random,t.__sequence=e.__sequence),r=!0)})),r}},{key:"clearGroupAtInfoList",value:function(){this.groupAtInfoList.length=0}},{key:"reduceUnreadCount",value:function(){return this.unreadCount>=1&&(this.unreadCount-=1,!0)}},{key:"isLastMessageRevoked",value:function(e){var t=e.sequence,n=e.time;return this.type===S.CONV_C2C&&t===this.lastMessage.lastSequence&&n===this.lastMessage.lastTime||this.type===S.CONV_GROUP&&t===this.lastMessage.lastSequence}},{key:"setLastMessageRevoked",value:function(e){this.lastMessage.isRevoked=e}},{key:"setLastMessageRevoker",value:function(e){this.lastMessage.revoker=e}}]),e}(),vi=function(){function e(t){o(this,e),this._conversationModule=t,this._n="MessageRemindHandler",this._updateSequence=0}return i(e,[{key:"getC2CMessageRemindType",value:function(){var e=this,t="".concat(this._n,".getC2CMessageRemindType");return this._conversationModule.request({protocolName:Cr,updateSequence:this._updateSequence}).then((function(n){Fe.l("".concat(t," ok"));var r=n.data,o=r.updateSequence,a=r.muteFlagList;e._updateSequence=o,e._patchC2CMessageRemindType(a)})).catch((function(e){Fe.e("".concat(t," failed. error:"),e)}))}},{key:"_patchC2CMessageRemindType",value:function(e){var t=this,n=0,r="";at(e)&&e.length>0&&e.forEach((function(e){var o=e.userID,a=e.muteFlag;0===a?r=S.MSG_REMIND_ACPT_AND_NOTE:1===a?r=S.MSG_REMIND_DISCARD:2===a&&(r=S.MSG_REMIND_ACPT_NOT_NOTE),!0===t._conversationModule.patchMessageRemindType({ID:o,isC2CConversation:!0,messageRemindType:r})&&(n+=1)})),Fe.l("".concat(this._n,"._patchC2CMessageRemindType count:").concat(n))}},{key:"set",value:function(e){return e.groupID?this._setGroupMessageRemindType(e):at(e.userIDList)?this._setC2CMessageRemindType(e):void 0}},{key:"_setGroupMessageRemindType",value:function(e){var t=this,n="".concat(this._n,"._setGroupMessageRemindType"),r=e.groupID,o=e.messageRemindType,a="groupID:".concat(r," messageRemindType:").concat(o),i=new Ta("setMessageRemindType");return i.setMessage(a),this._getModule(Pn).modifyGroupMemberInfo({groupID:r,messageRemindType:o,userID:this._conversationModule.getMyUserID()}).then((function(){i.setNetworkType(t._conversationModule.getNetworkType()).end(),Fe.l("".concat(n," ok. ").concat(a));var r=t.onGroupMessageRemindTypeUpdated(e);return t._conversationModule.emitTotalUnreadMessageCountUpdate(),Ya(r)})).catch((function(e){return t._conversationModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setError(e,r,o).end()})),Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"onGroupMessageRemindTypeUpdated",value:function(e){var t=e.groupID,n=e.messageRemindType,r=this._getModule(xn).getLocalGroupProfile(t);if(r&&(r.selfInfo.messageRemindType=n),wt(t)){var o=t,a=Bt(o),i=this._getModule(Un).getLocalTopic(a,o);return i&&(i.updateSelfInfo({messageRemindType:n}),this._conversationModule.emitOuterEvent(I.TOPIC_UPDATED,{groupID:a,topic:i})),{topic:i}}return this._conversationModule.patchMessageRemindType({ID:t,isC2CConversation:!1,messageRemindType:n})&&this._emitConversationUpdate(),{group:r}}},{key:"_setC2CMessageRemindType",value:function(e){var t=this,n="".concat(this._n,"._setC2CMessageRemindType"),r=e.userIDList,o=e.messageRemindType,a=r.slice(0,30),i=0;o===S.MSG_REMIND_DISCARD?i=1:o===S.MSG_REMIND_ACPT_NOT_NOTE&&(i=2);var s="userIDList:".concat(a," messageRemindType:").concat(o),c=new Ta("setMessageRemindType");return c.setMessage(s),this._conversationModule.request({protocolName:kr,requestData:{userIDList:a,muteFlag:i}}).then((function(e){c.setNetworkType(t._conversationModule.getNetworkType()).end();var r=e.data,i=r.updateSequence,s=r.errorList;t._updateSequence=i;var l=[],u=[];at(s)&&s.forEach((function(e){l.push(e.userID),u.push({userID:e.userID,code:e.errorCode})}));var d=a.filter((function(e){return-1===l.indexOf(e)}));Fe.l("".concat(n," ok. successUserIDList:").concat(d," failureUserIDList:").concat(JSON.stringify(u)));var p=0;return d.forEach((function(e){t._conversationModule.patchMessageRemindType({ID:e,isC2CConversation:!0,messageRemindType:o})&&(p+=1)})),p>=1&&t._emitConversationUpdate(),a.length=l.length=0,t._conversationModule.emitTotalUnreadMessageCountUpdate(),$a({successUserIDList:d.map((function(e){return{userID:e}})),failureUserIDList:u})})).catch((function(e){return t._conversationModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];c.setError(e,r,o).end()})),Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"_getModule",value:function(e){return this._conversationModule.getModule(e)}},{key:"_emitConversationUpdate",value:function(){this._conversationModule.emitConversationUpdate(!0,!1)}},{key:"setUpdateSequence",value:function(e){this._updateSequence=e}},{key:"reset",value:function(){Fe.l("".concat(this._n,".reset")),this._updateSequence=0}}]),e}(),gi=function(){function e(t){o(this,e),this._conversationModule=t,this._n="ConvGroupHandler",this._convGroupMap=new Map,this._startIndex=0,this._pagingStatus=Zt.NOT_START}return i(e,[{key:"setConvCustomData",value:function(e){var t=this,n="".concat(this._n,".").concat("setConvCustomData"),r=e.conversationIDList,o=e.customData;Fe.l("".concat(n," options:"),e);var a=new Ta("setConvCustomData");a.setMessage(JSON.stringify(e));var i={fromAccount:this._getMyUserID(),itemList:[]},s=[],c=[];return r.forEach((function(e){if(!t._hasLocalConversation(e))return t._onConversationNotFound(c,e),!0;if(!It(e)&&!St(e))return t._onConversationIDInvalid(c,e),!0;var n={operationType:2,contactItem:void 0,customMark:o};It(e)?n.contactItem={type:1,toAccount:e.replace(S.CONV_C2C,"")}:St(e)&&(n.contactItem={type:2,groupID:e.replace(S.CONV_GROUP,"")}),i.itemList.push(n)})),c.length===r.length?$a({successConversationIDList:s,failureConversationIDList:c}):this._conversationModule.request({protocolName:Pr,requestData:i}).then((function(e){a.setNetworkType(t._conversationModule.getNetworkType()).end(),Fe.l("".concat(n," ok"));var r=e.data.resultItem;if(at(r)){var i,l,u=!1;r.forEach((function(e){i=t._concatConversationID(e.contactItem),0===e.resultCode?(s.push(i),(l=t._getLocalConversation(i))&&l.customData!==o&&(l.customData=o,u=!0)):c.push({conversationID:i,code:e.resultCode,message:e.resultInfo})})),!0===u&&t._emitConversationUpdate()}return Ya({successConversationIDList:s,failureConversationIDList:c})})).catch((function(e){return t._conversationModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];a.setError(e,r,o).end()})),Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"markConversation",value:function(e){var t=this;if(!this._conversationModule.canIUse(z.CONV_MARK))return Ja({code:fa.CANNOT_USE_COMMERCIAL_ABILITY});var n="".concat(this._n,".").concat("markConversation"),r=e.conversationIDList,o=e.markType,a=e.enableMark;Fe.l("".concat(n," options:"),e);var i=new Ta("markConversation");i.setMessage(JSON.stringify(e));var s=void 0,c=void 0,l=this._getFlagBit(o);!0===a?c=[l]:s=[l];var u={fromAccount:this._getMyUserID(),itemList:[]},d=[],p=[];return r.forEach((function(e){if(!t._hasLocalConversation(e))return t._onConversationNotFound(p,e),!0;if(!It(e)&&!St(e))return t._onConversationIDInvalid(p,e),!0;var n={operationType:1,contactItem:void 0,clearMark:s,setMark:c};It(e)?n.contactItem={type:1,toAccount:e.replace(S.CONV_C2C,"")}:St(e)&&(n.contactItem={type:2,groupID:e.replace(S.CONV_GROUP,"")}),u.itemList.push(n)})),p.length===r.length?$a({successConversationIDList:d,failureConversationIDList:p}):this._conversationModule.request({protocolName:Ur,requestData:u}).then((function(e){i.setNetworkType(t._conversationModule.getNetworkType()).end(),Fe.l("".concat(n," ok"));var r=e.data.resultItem;if(at(r)){var s,c,l=!1;r.forEach((function(e){if(s=t._concatConversationID(e.contactItem),0===e.resultCode){if(d.push(s),c=t._getLocalConversation(s)){var n=c.markList.indexOf(o);!0===a?-1===n&&(c.markList.push(o),l=!0):-1!==n&&(c.markList.splice(n,1),l=!0)}}else p.push({conversationID:s,code:e.resultCode,message:e.resultInfo})})),!0===l&&t._emitConversationUpdate()}return Ya({successConversationIDList:d,failureConversationIDList:p})})).catch((function(e){return t._conversationModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setError(e,r,o).end()})),Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"getLocalConvGroupList",value:function(){var e=this;return Fe.l("".concat(this._n,".getLocalConvGroupList pagingStatus:").concat(this._pagingStatus)),this._pagingStatus===Zt.REJECTED?this.getRemoteConvGroupList().then((function(){return Ya(y(e._convGroupMap.values()))})):$a(y(this._convGroupMap.values()))}},{key:"getRemoteConvGroupList",value:function(){var e=this,t="".concat(this._n,".getRemoteConvGroupList");return this._pagingStatus=Zt.PENDING,this._conversationModule.request({protocolName:Hr,requestData:{fromAccount:this._getMyUserID(),startIndex:this._startIndex,startTime:Pe()}}).then((function(n){var r,o,a=n.data,i=a.completeFlag,s=a.contactItem,c=a.nextStartIndex,l=void 0===c?0:c,u=a.groupItem;if(e._startIndex=l,Fe.l("".concat(t," completeFlag:").concat(i," nextStartIndex:").concat(l)),at(u)&&u.forEach((function(t){var n=t.convGroupID,r=t.groupName;e._convGroupMap.set(n,r)})),at(s)&&s.forEach((function(t){var n=t.standardMark,a=t.customData,i=t.convGroupIDList;if(r=e._concatConversationID(t),(o=e._getLocalConversation(r))&&(o.markList=zt(n),o.customData=a||"",at(i))){var s=[];i.forEach((function(t){e._convGroupMap.has(t)&&s.push(e._convGroupMap.get(t))})),o.conversationGroupList=[].concat(s),s.length=0}})),0===i)return e.getRemoteConvGroupList();1===i&&(e._pagingStatus=Zt.RESOLVED,e._emitConversationUpdate(),e._emitConvGroupListUpdate())})).catch((function(n){e._pagingStatus=Zt.REJECTED,Fe.w("".concat(t," failed. error:"),n)}))}},{key:"createConvGroup",value:function(e){var t=this;if(!this._conversationModule.canIUse(z.CONV_GROUP))return Ja({code:fa.CANNOT_USE_COMMERCIAL_ABILITY});var n="".concat(this._n,".").concat("createConvGroup");Fe.l("".concat(n," options:"),e);var r=new Ta("createConvGroup");r.setMessage(JSON.stringify(e));var o=e.groupName,a=e.conversationIDList,i={fromAccount:this._getMyUserID(),itemList:[{groupName:o,contactItem:[]}]},s=[],c=[];return a.forEach((function(e){return t._hasLocalConversation(e)?It(e)||St(e)?void(It(e)?i.itemList[0].contactItem.push({type:1,toAccount:e.replace(S.CONV_C2C,"")}):St(e)&&i.itemList[0].contactItem.push({type:2,groupID:e.replace(S.CONV_GROUP,"")})):(t._onConversationIDInvalid(c,e),!0):(t._onConversationNotFound(c,e),!0)})),c.length===a.length?$a({successConversationIDList:s,failureConversationIDList:c}):this._conversationModule.request({protocolName:Vr,requestData:i}).then((function(e){r.setNetworkType(t._conversationModule.getNetworkType()).end(),Fe.l("".concat(n," ok"));var a=e.data.groupResultItem[0],i=a.groupItem,l=a.resultItem;if(ot(i)&&(t._convGroupMap.set(i.convGroupID,i.groupName),t._emitConvGroupListUpdate()),at(l)){var u,d,p=!1;l.forEach((function(e){u=t._concatConversationID(e.contactItem),0===e.resultCode?(s.push(u),(d=t._getLocalConversation(u))&&-1===d.conversationGroupList.indexOf(o)&&(d.conversationGroupList.push(o),p=!0)):c.push({conversationID:u,code:e.resultCode,message:e.resultInfo})})),!0===p&&(t._emitConversationUpdate(),t._emitConvGroupListUpdate())}return Ya({successConversationIDList:s,failureConversationIDList:c})})).catch((function(e){return t._conversationModule.probeNetwork().then((function(t){var n=_(t,2),o=n[0],a=n[1];r.setError(e,o,a).end()})),Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"deleteConvGroup",value:function(e){var t=this;if(!this._conversationModule.canIUse(z.CONV_GROUP))return Ja({code:fa.CANNOT_USE_COMMERCIAL_ABILITY});var n="".concat(this._n,".").concat("deleteConvGroup");Fe.l("".concat(n," groupName:").concat(e));var r=new Ta("deleteConvGroup");return r.setMessage(e),this._conversationModule.request({protocolName:Br,requestData:{fromAccount:this._getMyUserID(),groupName:[e]}}).then((function(o){r.setNetworkType(t._conversationModule.getNetworkType()).end(),Fe.l("".concat(n," ok"));var a=o.data.groupItem;if(at(a)){var i=!1;a.forEach((function(e){t._convGroupMap.has(e.convGroupID)&&(t._convGroupMap.delete(e.convGroupID),i=!0)})),!0===i&&t._emitConvGroupListUpdate()}t._eraseFromConversationGroupList([e])})).catch((function(e){return t._conversationModule.probeNetwork().then((function(t){var n=_(t,2),o=n[0],a=n[1];r.setError(e,o,a).end()})),Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"renameConvGroup",value:function(e){var t=this;if(!this._conversationModule.canIUse(z.CONV_GROUP))return Ja({code:fa.CANNOT_USE_COMMERCIAL_ABILITY});var n="".concat(this._n,".").concat("renameConvGroup");Fe.l("".concat(n," options:"),e);var r=new Ta("renameConvGroup");r.setMessage(JSON.stringify(e));var o=e.oldName,a=e.newName;return this._conversationModule.request({protocolName:Fr,requestData:{fromAccount:this._getMyUserID(),updateType:1,updateGroup:{updateGroupType:1,oldName:o,newName:a}}}).then((function(e){r.setNetworkType(t._conversationModule.getNetworkType()).end(),Fe.l("".concat(n," ok"));var i=e.data.updateGroupResult.convGroupID;t._convGroupMap.set(i,a),t._emitConvGroupListUpdate();var s,c,l=t._conversationModule.getLocalConversationList(),u=!1;l.forEach((function(e){s=e.conversationGroupList,-1!==(c=s.indexOf(o))&&(s.splice(c,1,a),u=!0)})),!0===u&&t._emitConversationUpdate()})).catch((function(e){return t._conversationModule.probeNetwork().then((function(t){var n=_(t,2),o=n[0],a=n[1];r.setError(e,o,a).end()})),Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"addConvsToGroup",value:function(e){var t=this;if(!this._conversationModule.canIUse(z.CONV_GROUP))return Ja({code:fa.CANNOT_USE_COMMERCIAL_ABILITY});var n="".concat(this._n,".").concat("addConvsToGroup");Fe.l("".concat(n," options:"),e);var r=new Ta("addConvsToGroup");r.setMessage(JSON.stringify(e));var o=e.conversationIDList,a=e.groupName,i={fromAccount:this._getMyUserID(),updateType:1,updateGroup:{updateGroupType:2,groupName:a,updateItem:[]}},s=[],c=[];return o.forEach((function(e){return t._hasLocalConversation(e)?It(e)||St(e)?void(It(e)?i.updateGroup.updateItem.push({operationType:1,contactItem:{type:1,toAccount:e.replace(S.CONV_C2C,"")}}):St(e)&&i.updateGroup.updateItem.push({operationType:1,contactItem:{type:2,groupID:e.replace(S.CONV_GROUP,"")}})):(t._onConversationIDInvalid(c,e),!0):(t._onConversationNotFound(c,e),!0)})),c.length===o.length?$a({successConversationIDList:s,failureConversationIDList:c}):this._conversationModule.request({protocolName:Gr,requestData:i}).then((function(e){r.setNetworkType(t._conversationModule.getNetworkType()).end(),Fe.l("".concat(n," ok"));var o=e.data.updateGroupResult.contactResultItem;if(at(o)){var i,l,u=!1;o.forEach((function(e){i=t._concatConversationID(e.contactItem),0===e.resultCode?(l=t._getLocalConversation(i))&&-1===l.conversationGroupList.indexOf(a)&&(l.conversationGroupList.push(a),s.push(i),u=!0):c.push({conversationID:i,code:e.resultCode,message:e.resultInfo})})),!0===u&&(t._emitConversationUpdate(),t._emitConvInGroupUpdate(a))}return Ya({successConversationIDList:s,failureConversationIDList:c})})).catch((function(e){return t._conversationModule.probeNetwork().then((function(t){var n=_(t,2),o=n[0],a=n[1];r.setError(e,o,a).end()})),Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"deleteConvsFromGroup",value:function(e){var t=this;if(!this._conversationModule.canIUse(z.CONV_GROUP))return Ja({code:fa.CANNOT_USE_COMMERCIAL_ABILITY});var n="".concat(this._n,".").concat("deleteConvsFromGroup");Fe.l("".concat(n," options:"),e);var r=new Ta("deleteConvsFromGroup");r.setMessage(JSON.stringify(e));var o=e.conversationIDList,a=e.groupName,i={fromAccount:this._getMyUserID(),updateType:1,updateGroup:{updateGroupType:2,groupName:a,updateItem:[]}},s=[],c=[];return o.forEach((function(e){return t._hasLocalConversation(e)?It(e)||St(e)?void(It(e)?i.updateGroup.updateItem.push({operationType:2,contactItem:{type:1,toAccount:e.replace(S.CONV_C2C,"")}}):St(e)&&i.updateGroup.updateItem.push({operationType:2,contactItem:{type:2,groupID:e.replace(S.CONV_GROUP,"")}})):(t._onConversationIDInvalid(c,e),!0):(t._onConversationNotFound(c,e),!0)})),c.length===o.length?$a({successConversationIDList:s,failureConversationIDList:c}):this._conversationModule.request({protocolName:zr,requestData:i}).then((function(e){r.setNetworkType(t._conversationModule.getNetworkType()).end(),Fe.l("".concat(n," ok"));var o=e.data.updateGroupResult.contactResultItem;if(at(o)){var i,l,u=!1;o.forEach((function(e){if(i=t._concatConversationID(e.contactItem),0===e.resultCode){if(l=t._getLocalConversation(i)){var n=l.conversationGroupList.indexOf(a);-1!==n&&(l.conversationGroupList.splice(n,1),s.push(i),u=!0)}}else c.push({conversationID:i,code:e.resultCode,message:e.resultInfo})})),!0===u&&(t._emitConversationUpdate(),t._emitConvInGroupUpdate(a))}return Ya({successConversationIDList:s,failureConversationIDList:c})})).catch((function(e){return t._conversationModule.probeNetwork().then((function(t){var n=_(t,2),o=n[0],a=n[1];r.setError(e,o,a).end()})),Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"onConvMarkUpdated",value:function(e){var t=this;if(!Kt(e)){var n,r;Fe.d("".concat(this._n,".onConvMarkUpdated markItemList:"),e);var o=!1;e.forEach((function(e){var a=e.recentContactItem,i=e.optType,s=e.standardMark,c=e.customMark;if(n=t._concatConversationID(a),r=t._getLocalConversation(n))if(1===i){var l=zt(s);!0!==function(e,t){if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(var n=0,r=e.length;n<r;n++)if(e[n]!==t[n])return!1;return!0}(r.markList,l)&&(r.markList=l,o=!0)}else 2===i&&r.customData!==c&&void 0!==c&&(r.customData=c,o=!0)})),!0===o&&this._emitConversationUpdate()}}},{key:"onConvGroupCreated",value:function(e){var t=this;Fe.d("".concat(this._n,".onConvGroupCreated resultList:"),e);var n=!1,r=!1;at(e)&&(e.forEach((function(e){var o=e.msgGroupItem,a=o.groupID,i=o.groupName;t._convGroupMap.get(a)!==i&&(t._convGroupMap.set(a,i),r=!0);var s,c,l=e.msgRecentContactItem;at(l)&&l.forEach((function(e){s=t._concatConversationID(e),(c=t._getLocalConversation(s))&&-1===c.conversationGroupList.indexOf(i)&&(c.conversationGroupList.push(i),n=!0)}))})),!0===n&&this._emitConversationUpdate(),!0===r&&this._emitConvGroupListUpdate())}},{key:"onConvGroupDeleted",value:function(e){var t=this;Fe.d("".concat(this._n,".onConvGroupDeleted groupItemList:"),e);var n=[];if(at(e)){var r=!1;e.forEach((function(e){var o=e.groupID,a=e.groupName;t._convGroupMap.has(o)&&(t._convGroupMap.delete(o),r=!0,n.push(a))})),!0===r&&this._emitConvGroupListUpdate()}this._eraseFromConversationGroupList(n)}},{key:"_eraseFromConversationGroupList",value:function(e){Kt(e)||(this._conversationModule.getLocalConversationList().forEach((function(t){t.conversationGroupList=t.conversationGroupList.filter((function(t){return!e.includes(t)}))})),this._emitConversationUpdate())}},{key:"onConvGroupNameUpdated",value:function(e){Fe.d("".concat(this._n,".onConvGroupNameUpdated options:"),e);var t=e.groupID,n=e.groupName,r=e.oldGroupName;if(this._convGroupMap.get(t)!==n){this._convGroupMap.set(t,n),this._emitConvGroupListUpdate();var o,a,i=this._conversationModule.getLocalConversationList(),s=!1;i.forEach((function(e){o=e.conversationGroupList,-1!==(a=o.indexOf(r))&&(o.splice(a,1,n),s=!0)})),!0===s&&this._emitConversationUpdate()}}},{key:"onConvInGroupUpdated",value:function(e){var t=this;Fe.d("".concat(this._n,".onConvInGroupUpdated options:"),e);var n=e.oldGroupName,r=e.recentContactUpdateGroupItem;if(at(r)){var o,a,i,s=!1;r.forEach((function(e){var r=e.contactOptType,c=e.recentContactItem;o=t._concatConversationID(c),(a=t._getLocalConversation(o))&&(i=a.conversationGroupList.indexOf(n),1===r?-1===i&&(a.conversationGroupList.push(n),s=!0):2===r&&-1!==i&&(a.conversationGroupList.splice(i,1),s=!0))})),!0===s&&(this._emitConversationUpdate(),this._emitConvInGroupUpdate(n))}}},{key:"onConvAddedToOrDeletedFromGroup",value:function(e){var t=this;Fe.d("".concat(this._n,".onConvAddedToOrDeletedFromGroup options:"),e);var n=e.msgRecentContactItem,r=e.msgRecentContactUpdateContactItem,o=this._concatConversationID(n),a=this._getLocalConversation(o);if(a&&at(r)){var i,s=!1;r.forEach((function(e){var n=e.groupOptType,r=e.recentContactGroupItem.groupName;i=a.conversationGroupList.indexOf(r),1===n?-1===i&&(a.conversationGroupList.push(r),s=!0):2===n&&-1!==i&&(a.conversationGroupList.splice(i,1),s=!0),!0===s&&t._emitConvInGroupUpdate(r)})),!0===s&&this._emitConversationUpdate()}}},{key:"onConvGroupListSynced",value:function(e){var t=this;at(e)&&0!==e.length&&(Fe.l("".concat(this._n,".onConvGroupListSynced groupItemList:"),e),e.forEach((function(e){t._convGroupMap.set(e.convGroupID,e.groupName)})))}},{key:"getConvGroupListByID",value:function(e){var t=this;if(!Kt(e)){var n=[];return e.forEach((function(e){t._convGroupMap.has(e)&&n.push(t._convGroupMap.get(e))})),n}}},{key:"_onConversationNotFound",value:function(e,t){e.push({conversationID:t,code:fa.CONVERSATION_NOT_FOUND,message:this._conversationModule.getErrorMessage(fa.CONVERSATION_NOT_FOUND)})}},{key:"_onConversationIDInvalid",value:function(e,t){e.push({conversationID:t,code:fa.INVALID_CONVERSATION_ID,message:this._conversationModule.getErrorMessage(fa.INVALID_CONVERSATION_ID)})}},{key:"_getFlagBit",value:function(e){for(var t=e.toString(2),n=t.length,r=n-1;r>=0;r--)if("1"===t[r])return n-r-1}},{key:"_concatConversationID",value:function(e){var t,n=e.type,r=e.to,o=e.groupID,a=e.userID;return 1===n?it(a)?it(r)||(t="".concat(S.CONV_C2C).concat(r)):t="".concat(S.CONV_C2C).concat(a):2===n&&(t="".concat(S.CONV_GROUP).concat(o)),t}},{key:"_getMyUserID",value:function(){return this._conversationModule.getMyUserID()}},{key:"_insertConversationGroup",value:function(e,t){var n=this._getLocalConversation(e);if(n){var r=n.conversationGroupList;-1===r.indexOf(t)&&r.push(t)}}},{key:"_getLocalConversation",value:function(e){return this._conversationModule.getLocalConversation(e)}},{key:"_hasLocalConversation",value:function(e){return this._conversationModule.hasLocalConversation(e)}},{key:"_emitConversationUpdate",value:function(){this._conversationModule.emitConversationUpdate(!0,!1)}},{key:"_emitConvGroupListUpdate",value:function(){this._conversationModule.emitOuterEvent(I.CONVERSATION_GROUP_LIST_UPDATED,y(this._convGroupMap.values()))}},{key:"_emitConvInGroupUpdate",value:function(e){var t={groupName:e,conversationList:[]},n=this._conversationModule.getLocalConversationList();t.conversationList=n.filter((function(t){return t.conversationGroupList.includes(e)})),this._conversationModule.emitOuterEvent(I.CONVERSATION_IN_GROUP_UPDATED,t)}},{key:"reset",value:function(){Fe.l("".concat(this._n,".reset")),this._convGroupMap.clear(),this._startIndex=0,this._pagingStatus=Zt.NOT_START}}]),e}(),_i=function(e){c(r,e);var t=g(r);function r(e){var n;return o(this,r),(n=t.call(this,e))._n="ConversationModule",ni.mixin(m(n)),n._messageListHandler=new Xa,n._messageRemindHandler=new vi(m(n)),n._convGroupHandler=new gi(m(n)),n.singlyLinkedList=new di(100),n._pagingStatus=Zt.NOT_START,n._pagingTimeStamp=0,n._pagingStartIndex=0,n._pagingPinnedTimeStamp=0,n._pagingPinnedStartIndex=0,n._pagingConvIDMap=new Map,n._convIDFromUnreadDBMap=new Map,n._conversationMap=new Map,n._tmpGroupList=[],n._tmpGroupAtTipsList=[],n._peerReadTimeMap=new Map,n._completedMap=new Map,n._roamingMessageKeyAndTimeMap=new Map,n._roamingMessageSequenceMap=new Map,n._remoteGroupReadSequenceMap=new Map,n._convTotalUnreadCount=0,n._initListeners(),n}return i(r,[{key:"_initListeners",value:function(){var e=this.getInnerEmitterInstance();e.on(Za,this._initLocalConversationList,this),e.on(ti,this._onProfileUpdated,this)}},{key:"onCheckTimer",value:function(e){e%60==0&&this._messageListHandler.traversal()}},{key:"_initLocalConversationList",value:function(){var e=this,t=new Ta("_initLocalConversationList");Fe.l("".concat(this._n,".").concat("_initLocalConversationList"));var n="",r=this._getStorageConversationList(),o=this.isIntl();if(r){for(var a=r.length,i=0;i<a;i++){var s=r[i];if(s){if(s.conversationID==="".concat(S.CONV_C2C,"@TLS#ERROR")||s.conversationID==="".concat(S.CONV_C2C,"@TLS#NOT_FOUND"))continue;if(s.groupProfile){var c=s.groupProfile.type;if(kt(c))continue}}this._conversationMap.set(r[i].conversationID,new mi(r[i],o))}this.emitConversationUpdate(!0,!1),n="count:".concat(a)}else n="count:0";t.setNetworkType(this.getNetworkType()).setMessage(n).end(),this.getModule(Nn)||this.triggerReady(),this.ready((function(){e._tmpGroupList.length>0&&(e.updateConversationGroupProfile(e._tmpGroupList),e._tmpGroupList.length=0)})),this.syncConversationList()}},{key:"onMessageSent",value:function(e){this._onSendOrReceiveMessage({conversationOptionsList:e.conversationOptionsList,isInstantMessage:!0})}},{key:"onNewMessage",value:function(e){this._onSendOrReceiveMessage(e)}},{key:"_onSendOrReceiveMessage",value:function(e){var t=this,n=e.conversationOptionsList,r=e.isInstantMessage,o=void 0===r||r,a=e.isUnreadC2CMessage,i=void 0!==a&&a,s=e.updateUnreadCount,c=void 0===s||s;this._isReady?0!==n.length&&(this._getC2CPeerReadTime(n),this._updateLocalConversationList({conversationOptionsList:n,isInstantMessage:o,isUnreadC2CMessage:i,isFromGetConversations:!1,updateUnreadCount:c}),o||(this._convIDFromUnreadDBMap=new Map([].concat(y(this._convIDFromUnreadDBMap),y(n.map((function(e){return[e.conversationID,1]}))))),this._diffAndDeleteConversation()),this._setStorageConversationList(),n.filter((function(e){return e.type===S.CONV_TOPIC})).length>0||this.emitConversationUpdate()):this.ready((function(){t._onSendOrReceiveMessage(e)}))}},{key:"updateConversationGroupProfile",value:function(e){var t=this;if(!at(e)||0!==e.length)if(0!==this._conversationMap.size){var n=!1;e.forEach((function(e){var r="GROUP".concat(e.groupID);if(t._conversationMap.has(r)){n=!0;var o=t._conversationMap.get(r);o.groupProfile=JSON.parse(JSON.stringify(e)),o.lastMessage.lastSequence<e.nextMessageSeq&&(o.lastMessage.lastSequence=e.nextMessageSeq-1),o.subType||(o.subType=e.type)}})),n&&this.emitConversationUpdate(!0,!1)}else this._tmpGroupList=e}},{key:"_updateConversationUserProfile",value:function(e){var t=this;e.data.forEach((function(e){var n="C2C".concat(e.userID);t._conversationMap.has(n)&&(t._conversationMap.get(n).userProfile=e)})),this.emitConversationUpdate(!0,!1)}},{key:"onMessageRevoked",value:function(e){var t=this;if(0!==e.length){var n=null,r=!1,o=[];e.forEach((function(e){(n=t._conversationMap.get(e.conversationID))&&(n.type===S.CONV_TOPIC?o.push(e):(n.reduceUnreadCount()&&(r=!0),n.isLastMessageRevoked({sequence:e.sequence,time:e.time})&&(n.setLastMessageRevoked(!0),n.setLastMessageRevoker(e.revoker),r=!0)))})),this.getModule(Un).onMessageRevoked(o),r&&(this.emitConversationUpdate(!0,!1),this.emitTotalUnreadMessageCountUpdate())}}},{key:"isLastMessageRevoked",value:function(e){var t=!1,n=e.conversationID,r=e.sequence,o=e.time,a=this._conversationMap.get(n);return a&&(t=a.type===S.CONV_TOPIC?this.getModule(Un).isLastMessageRevoked({topicID:n.replace(S.CONV_GROUP,""),sequence:r}):a.isLastMessageRevoked({sequence:r,time:o})),Fe.l("".concat(this._n,".isLastMessageRevoked options:").concat(JSON.stringify(e)," ret:").concat(t)),t}},{key:"onMessageDeleted",value:function(e){var t=this;if(0!==e.length){var n=null;e.forEach((function(e){(n=t._messageListHandler.getLocalMessage(e.conversationID,e.ID))&&(n.isDeleted=!0),e!==n&&(e.isDeleted=!0)}));for(var r=e[0].conversationID,o=this._messageListHandler.getLocalMessageList(r),a={},i=o.length-1;i>=0;i--)if(!o[i].isDeleted){a=o[i];break}var s=this._conversationMap.get(r);if(s){var c=!1;s.lastMessage.lastSequence===a.sequence&&s.lastMessage.lastTime===a.time||(Kt(a)&&(a=void 0),s.updateLastMessage(a),s.type!==S.CONV_TOPIC&&(c=!0),Fe.l("".concat(this._n,".onMessageDeleted. update conversationID:").concat(r," with lastMessage:"),s.lastMessage)),r.startsWith(S.CONV_C2C)&&this.updateUnreadCount(r),c&&this.emitConversationUpdate(!0,!1)}}}},{key:"onMessageModified",value:function(e){var t=e.conversationType,n=e.from,r=e.to,o=e.time,a=e.sequence,i=e.elements,s=e.cloudCustomData,c=e.messageVersion,l=this.getMyUserID(),u="".concat(t).concat(r);r===l&&t===S.CONV_C2C&&(u="".concat(t).concat(n));var d=this._messageListHandler.onMessageModified(u,e),p=d.isUpdated,f=d.message;!0===p&&this.emitOuterEvent(I.MESSAGE_MODIFIED,[f]);var h=this._isTopicConversation(u);if(Fe.l("".concat(this._n,".onMessageModified isUpdated:").concat(p," isTopicMessage:").concat(h," from:").concat(n," to:").concat(r)),h)this.getModule(Un).onMessageModified(e);else{var m=this._conversationMap.get(u);if(m){var v=m.lastMessage;Fe.d("".concat(this._n.onMessageModified," lastMessage:"),JSON.stringify(v),"options:",JSON.stringify(e)),v&&v.lastTime===o&&v.lastSequence===a&&v.version!==c&&(v.type=i[0].type,v.payload=i[0].content,v.messageForShow=Ft(v.type,v.payload,this.isIntl()),v.cloudCustomData=s,v.version=c,this.emitConversationUpdate(!0,!1))}}return f}},{key:"onNewGroupAtTips",value:function(e){var t=this,r=e.dataList,o=null;r.forEach((function(e){e.groupAtTips?o=e.groupAtTips:e.elements?o=n(n({},e.elements),{},{sync:!0}):e.groupAtType&&(o=n(n({},e),{},{sync:!0})),o.__random=e.random,o.__sequence=e.clientSequence,t._tmpGroupAtTipsList.push(o)})),Fe.d("".concat(this._n,".onNewGroupAtTips isReady:").concat(this._isReady),this._tmpGroupAtTipsList),this._isReady&&this._handleGroupAtTipsList()}},{key:"_handleGroupAtTipsList",value:function(){var e=this;if(0!==this._tmpGroupAtTipsList.length){var t=!1;this._tmpGroupAtTipsList.forEach((function(n){var r=n.groupID,o=n.from,a=n.topicID,i=void 0===a?void 0:a,s=n.sync,c=void 0!==s&&s;if(o!==e.getMyUserID())if(it(i)){var l=e._conversationMap.get("".concat(S.CONV_GROUP).concat(r));l&&(l.updateGroupAtInfoList(n),t=!0)}else{var u=e._conversationMap.get("".concat(S.CONV_GROUP).concat(i));if(u){u.updateGroupAtInfoList(n);var d=e.getModule(Un),p=u.groupAtInfoList;d.onConversationProxy({topicID:i,groupAtInfoList:p})}Kt(u)&&c&&(e.updateTopicConversation([{conversationID:"".concat(S.CONV_GROUP).concat(i),type:S.CONV_TOPIC}]),e._conversationMap.get("".concat(S.CONV_GROUP).concat(i)).updateGroupAtInfoList(n))}})),t&&this.emitConversationUpdate(!0,!1),this._tmpGroupAtTipsList.length=0}}},{key:"_getC2CPeerReadTime",value:function(e){var t=this,n=[];if(e.forEach((function(e){t._conversationMap.has(e.conversationID)||e.type!==S.CONV_C2C||n.push(e.conversationID.replace(S.CONV_C2C,""))})),n.length>0){Fe.d("".concat(this._n,"._getC2CPeerReadTime userIDList:").concat(n));var r=this.getModule(Nn);r&&r.getRemotePeerReadTime(n)}}},{key:"_getStorageConversationList",value:function(){return this.getModule(Fn).getItem("conversationMap")}},{key:"_setStorageConversationList",value:function(){var e=this.getLocalConversationList().filter((function(e){return e.type===S.CONV_C2C||e.type===S.CONV_GROUP&&e.lastMessage.type!==S.MSG_GRP_TIP})).slice(0,20).map((function(e){return{conversationID:e.conversationID,type:e.type,subType:e.subType,lastMessage:e.lastMessage,groupProfile:e.groupProfile,userProfile:e.userProfile}}));this.getModule(Fn).setItem("conversationMap",e)}},{key:"emitConversationUpdate",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.getLocalConversationList();if(t){var r=this.getModule(xn);r&&r.updateGroupLastMessage(n)}e&&this.emitOuterEvent(I.CONVERSATION_LIST_UPDATED)}},{key:"getLocalConversationList",value:function(){return y(this._conversationMap.values()).filter((function(e){return e.type!==S.CONV_TOPIC}))}},{key:"getLocalConversation",value:function(e){return this._conversationMap.get(e)}},{key:"hasLocalConversation",value:function(e){return this._conversationMap.has(e)}},{key:"getLocalOldestMessage",value:function(e){return this._messageListHandler.getLocalOldestMessage(e)}},{key:"syncConversationList",value:function(){var e=this,t=new Ta("syncConversationList");return this._pagingStatus===Zt.NOT_START&&this._conversationMap.clear(),this._pagingGetConversationList().then((function(n){return e._pagingStatus=Zt.RESOLVED,e._diffAndDeleteConversation(),e.emitConversationUpdate(!0,!1),e._setStorageConversationList(),e._handleC2CPeerReadTime(),e._patchConversationProperties(),t.setMessage(e._conversationMap.size).setNetworkType(e.getNetworkType()).end(),n})).catch((function(n){return e._pagingStatus=Zt.REJECTED,t.setMessage(e._pagingTimeStamp),e.probeNetwork().then((function(e){var r=_(e,2),o=r[0],a=r[1];t.setError(n,o,a).end()})),Ja(n)}))}},{key:"_diffAndDeleteConversation",value:function(){var e=this;if(this._isSyncCompleted()){var t=[];this._conversationMap.forEach((function(n,r){!e._pagingConvIDMap.has(r)&&e._convIDFromUnreadDBMap.has(r)&&(e._conversationMap.delete(r),t.push(r))})),Fe.l("".concat(this._n,"._diffAndDeleteConversation list:").concat(t))}}},{key:"_patchConversationProperties",value:function(){var e=this,t=Date.now(),n=this.checkAndPatchRemark(),r=this._messageRemindHandler.getC2CMessageRemindType(),o=this.getModule(xn).getGroupList();Promise.all([n,r,o]).then((function(){var n=Date.now()-t;Fe.l("".concat(e._n,"._patchConversationProperties ok. cost ").concat(n," ms")),e.emitConversationUpdate(!0,!1),e.emitTotalUnreadMessageCountUpdate()}))}},{key:"_pagingGetConversationList",value:function(){var e=this,t="".concat(this._n,"._pagingGetConversationList");return Fe.l("".concat(t," timeStamp:").concat(this._pagingTimeStamp," startIndex:").concat(this._pagingStartIndex)+" pinnedTimeStamp:".concat(this._pagingPinnedTimeStamp," pinnedStartIndex:").concat(this._pagingPinnedStartIndex)),this._pagingStatus=Zt.PENDING,this.request({protocolName:Dr,requestData:{fromAccount:this.getMyUserID(),timeStamp:this._pagingTimeStamp,startIndex:this._pagingStartIndex,pinnedTimeStamp:this._pagingPinnedTimeStamp,pinnedStartIndex:this._pagingPinnedStartIndex,orderType:1}}).then((function(n){var r=n.data,o=r.completeFlag,a=r.conversations,i=void 0===a?[]:a,s=r.timeStamp,c=r.startIndex,l=r.pinnedTimeStamp,u=r.pinnedStartIndex,d=r.groupItem;if(Fe.l("".concat(t," ok. completeFlag:").concat(o," count:").concat(i.length," isReady:").concat(e._isReady)),e._convGroupHandler.onConvGroupListSynced(d),i.length>0){var p=e._getConversationOptions(i);e._pagingConvIDMap=new Map([].concat(y(e._pagingConvIDMap),y(p.map((function(e){return[e.conversationID,1]}))))),e._updateLocalConversationList({conversationOptionsList:p,isFromGetConversations:!0}),e.isLoggedIn()&&e.emitConversationUpdate()}if(!e._isReady){if(!e.isLoggedIn())return $a();e.triggerReady()}return e._pagingTimeStamp=s,e._pagingStartIndex=c,e._pagingPinnedTimeStamp=l,e._pagingPinnedStartIndex=u,1!==o?e._pagingGetConversationList():(e._handleGroupAtTipsList(),e._convGroupHandler.getRemoteConvGroupList(),$a())})).catch((function(n){throw e.isLoggedIn()&&(e._isReady||(Fe.w("".concat(t," failed. error:"),n),e.triggerReady())),n}))}},{key:"_updateLocalConversationList",value:function(e){var t,n=e.isFromGetConversations,r=e.isInstantMessage,o=Date.now();t=this._getTmpConversationListMapping(e),this._conversationMap=new Map(this._sortConversationList([].concat(y(t.toBeUpdatedConversationList),y(this._conversationMap)))),n||(this._updateUserOrGroupProfile(t.newConversationList),r&&this.emitTotalUnreadMessageCountUpdate()),Fe.d("".concat(this._n,"._updateLocalConversationList cost ").concat(Date.now()-o," ms"))}},{key:"_getTmpConversationListMapping",value:function(e){for(var t=e.conversationOptionsList,n=e.isFromGetConversations,r=e.isInstantMessage,o=e.isUnreadC2CMessage,a=void 0!==o&&o,i=e.updateUnreadCount,s=[],c=[],l=this.getModule(xn),u=this.getModule(Rn),d=this.isIntl(),p=0,f=t.length;p<f;p++){var h=new mi(t[p],d),m=h.conversationID;if(m!=="".concat(S.CONV_C2C,"@TLS#ERROR")&&m!=="".concat(S.CONV_C2C,"@TLS#NOT_FOUND"))if(this._conversationMap.has(m)){var v=this._conversationMap.get(m),g=["unreadCount","allowType","adminForbidType","payload","isPinned"];!1===r&&g.push("lastMessage");var _=t[p].lastMessage,y=!it(_);y||t[p].type===S.CONV_TOPIC||this._onLastMessageNotExist(t[p]),it(r)&&y&&null===v.lastMessage.payload&&(v.lastMessage.payload=_.payload),Kt(v.lastMessage.revoker)||(v.lastMessage.revoker=null),pt(v,h,g,[null,void 0,"",0,NaN]),!0===i&&v.updateUnreadCount({nextUnreadCount:h.unreadCount,isFromGetConversations:n,isUnreadC2CMessage:a}),r&&y&&(_.payload&&(v.lastMessage.payload=_.payload),v.type===S.CONV_GROUP&&(v.lastMessage.nameCard=_.nameCard,v.lastMessage.nick=_.nick)),y&&v.lastMessage.cloudCustomData!==_.cloudCustomData&&(v.lastMessage.cloudCustomData=_.cloudCustomData||""),this._conversationMap.delete(m),s.push([m,v])}else{if(h.type===S.CONV_GROUP&&l){var b=h.groupProfile.groupID,O=l.getLocalGroupProfile(b);O&&(h.groupProfile=O,!0===i&&h.updateUnreadCount({nextUnreadCount:0}))}else if(h.type===S.CONV_C2C){var M=m.replace(S.CONV_C2C,"");u&&u.isMyFriend(M)&&(h.remark=u.getFriendRemark(M))}c.push(h),s.push([m,h])}}var k=this.getModule(Un);return s.forEach((function(e){if(e[1].type===S.CONV_TOPIC){var t=e[1],n=t.conversationID,r=t.unreadCount,o=t.groupAtInfoList;k.onConversationProxy({topicID:n.replace(S.CONV_GROUP,""),unreadCount:r,groupAtInfoList:Kt(o)?void 0:o})}})),{toBeUpdatedConversationList:s,newConversationList:c}}},{key:"_onLastMessageNotExist",value:function(e){new Ta("lastMessageNotExist").setMessage("".concat(JSON.stringify(e))).setNetworkType(this.getNetworkType()).end()}},{key:"_sortConversationList",value:function(e){var t=[],n=[],r=[],o=[];return e.forEach((function(e){!0===e[1].isPinned?Kt(e[1].lastMessage.lastTime)?n.push(e):t.push(e):Kt(e[1].lastMessage.lastTime)?o.push(e):r.push(e)})),t.sort((function(e,t){return t[1].lastMessage.lastTime-e[1].lastMessage.lastTime})).concat(n).concat(r.sort((function(e,t){return t[1].lastMessage.lastTime-e[1].lastMessage.lastTime}))).concat(o)}},{key:"_sortConversationListAndEmitEvent",value:function(){this._conversationMap=new Map(this._sortConversationList(y(this._conversationMap))),this.emitConversationUpdate(!0,!1)}},{key:"_updateUserOrGroupProfile",value:function(e){var t=this;if(0!==e.length){var n=[],r=[],o=this.getModule(An),a=this.getModule(xn);e.forEach((function(e){if(e.type===S.CONV_C2C)n.push(e.toAccount);else if(e.type===S.CONV_GROUP){var t=e.toAccount;a.hasLocalGroup(t)?e.groupProfile=a.getLocalGroupProfile(t):r.push(t)}})),Fe.l("".concat(this._n,"._updateUserOrGroupProfile c2cUserIDList:").concat(n," groupIDList:").concat(r)),n.length>0&&o.getUserProfile({userIDList:n}).then((function(e){var n=e.data;at(n)?n.forEach((function(e){t._doUpdateUserProfile("C2C".concat(e.userID),e)})):t._doUpdateUserProfile("C2C".concat(n.userID),n)})),r.length>0&&a.getGroupProfileAdvance({groupIDList:r,responseFilter:{groupBaseInfoFilter:["Type","Name","FaceUrl"]}}).then((function(e){e.data.successGroupList.forEach((function(e){var n="GROUP".concat(e.groupID);if(t._conversationMap.has(n)){var r=t._conversationMap.get(n);pt(r.groupProfile,e,[],[null,void 0,"",0,NaN]),!r.subType&&e.type&&(r.subType=e.type)}}))}))}}},{key:"_doUpdateUserProfile",value:function(e,t){this.hasLocalConversation(e)&&(this.getLocalConversation(e).userProfile=t)}},{key:"_getConversationOptions",value:function(e){var t=this,r=[],o=e.filter((function(e){var t=e.type,n=e.userID;return 1===t&&"@TLS#NOT_FOUND"!==n&&"@TLS#ERROR"!==n||2===t})),a=this.getMyUserID(),i=o.map((function(e){if(it(e.lastMsg)&&(e.lastMsg={elements:[]}),1===e.type){var o={userID:e.userID,nick:e.peerNick,avatar:e.peerAvatar};return r.push(o),{conversationID:"C2C".concat(e.userID),type:"C2C",lastMessage:{lastTime:e.time,lastSequence:e.sequence,fromAccount:e.lastC2CMsgFromAccount,messageForShow:e.messageShow,type:e.lastMsg.elements[0]?e.lastMsg.elements[0].type:null,payload:e.lastMsg.elements[0]?t._amendLayersOverLimitProperty(e.lastMsg.elements[0].content):null,cloudCustomData:e.lastMsg.cloudCustomData||"",isRevoked:8===e.lastMessageFlag,onlineOnlyFlag:!1,nick:"",nameCard:"",version:0,isPeerRead:e.lastC2CMsgFromAccount===a&&e.time<=e.c2cPeerReadTime,revoker:e.lastMsg.revokerInfo?e.lastMsg.revokerInfo.revoker:null},userProfile:new li(o),peerReadTime:e.c2cPeerReadTime,isPinned:1===e.isPinned,messageRemindType:"",customData:e.customMark||"",markList:zt(e.standardMark),conversationGroupList:t._convGroupHandler.getConvGroupListByID(e.contactGroupId)}}return{conversationID:"GROUP".concat(e.groupID),type:"GROUP",lastMessage:n(n({lastTime:e.time,lastSequence:e.sequence,fromAccount:e.msgGroupFromAccount,messageForShow:e.messageShow},t._patchTypeAndPayload(e)),{},{cloudCustomData:e.lastMsg.cloudCustomData||"",isRevoked:2===e.lastMessageFlag,onlineOnlyFlag:!1,nick:e.senderNick||"",nameCard:e.senderNameCard||"",revoker:e.lastMsg.revokerInfo?e.lastMsg.revokerInfo.revoker:null}),groupProfile:new fi({groupID:e.groupID,name:e.groupNick,avatar:e.groupImage}),unreadCount:e.unreadCount,peerReadTime:0,isPinned:1===e.isPinned,messageRemindType:"",version:0,customData:e.customMark||"",markList:zt(e.standardMark),conversationGroupList:t._convGroupHandler.getConvGroupListByID(e.contactGroupId)}}));return r.length>0&&this.getModule(An).onConversationsProfileUpdated(r),i}},{key:"_patchTypeAndPayload",value:function(e){var t=e.lastMsg,r=t.event,o=void 0===r?void 0:r,a=t.elements,i=void 0===a?[]:a,s=t.groupTips,c=void 0===s?{}:s;if(!it(o)&&!Kt(c)){var l=new Ha(c);l.setElement({type:S.MSG_GRP_TIP,content:n(n({},c.elements),{},{groupProfile:c.groupProfile})});var u=JSON.parse(JSON.stringify(l.payload));return l=null,{type:S.MSG_GRP_TIP,payload:u}}return{type:i[0]?i[0].type:null,payload:i[0]?this._amendLayersOverLimitProperty(i[0].content):null}}},{key:"_amendLayersOverLimitProperty",value:function(e){var t=e.layersOverLimit;return 0===t?e.layersOverLimit=!1:1===t&&(e.layersOverLimit=!0),e}},{key:"getLocalMessageList",value:function(e){return this._messageListHandler.getLocalMessageList(e)}},{key:"deleteLocalMessage",value:function(e){e instanceof Ha&&this._messageListHandler.remove(e)}},{key:"onConversationDeleted",value:function(e){if(at(e)){var t=e.map((function(e){var t=e.type,n=e.userID,r=e.groupID;return 1===t?"".concat(S.CONV_C2C).concat(n):2===t?"".concat(S.CONV_GROUP).concat(r):void 0}));Fe.l("".concat(this._n,".onConversationDeleted conversationIDList:").concat(t)),this.deleteLocalConversationList(t)}}},{key:"onConversationPinned",value:function(e){var t=this;if(at(e)){var n=!1;e.forEach((function(e){var r,o=e.type,a=e.userID,i=e.groupID;1===o?r=t.getLocalConversation("".concat(S.CONV_C2C).concat(a)):2===o&&(r=t.getLocalConversation("".concat(S.CONV_GROUP).concat(i))),r&&(Fe.l("".concat(t._n,".onConversationPinned conversationID:").concat(r.conversationID," isPinned:").concat(r.isPinned)),r.isPinned||(r.isPinned=!0,n=!0))})),n&&this._sortConversationListAndEmitEvent()}}},{key:"onConversationUnpinned",value:function(e){var t=this;if(at(e)){var n=!1;e.forEach((function(e){var r,o=e.type,a=e.userID,i=e.groupID;1===o?r=t.getLocalConversation("".concat(S.CONV_C2C).concat(a)):2===o&&(r=t.getLocalConversation("".concat(S.CONV_GROUP).concat(i))),r&&(Fe.l("".concat(t._n,".onConversationUnpinned conversationID:").concat(r.conversationID," isPinned:").concat(r.isPinned)),r.isPinned&&(r.isPinned=!1,n=!0))})),n&&this._sortConversationListAndEmitEvent()}}},{key:"getMessageList",value:function(e){var t=this,n=e.conversationID,r=e.nextReqMessageID,o=e.count,a="".concat(this._n,".getMessageList"),i=this.getLocalConversation(n),s="";if(i&&i.groupProfile&&(s=i.groupProfile.type),kt(s))return Fe.l("".concat(a," not available in avchatroom. conversationID:").concat(n)),$a({messageList:[],nextReqMessageID:"",isCompleted:!0});(it(o)||o>15)&&(o=15),!r&&this._isNotInCommunity(n)&&(this._messageListHandler.removeByConversationID(n),this._completedMap.delete(n),this._roamingMessageSequenceMap.delete(n));var c=this._computeRemainingCount({conversationID:n,nextReqMessageID:r}),l=this._completedMap.has(n);if(Fe.l("".concat(a," conversationID:").concat(n," nextReqMessageID:").concat(r)+" remainingCount:".concat(c," count:").concat(o," isCompleted:").concat(l)),this._needGetHistory({conversationID:n,remainingCount:c,count:o}))return this.getHistoryMessages({conversationID:n,nextReqMessageID:r,count:20}).then((function(e){var r=e.nextReqID,o=e.storedMessageList,i=t._completedMap.has(n),s=o;c>0&&(s=t._messageListHandler.getLocalMessageList(n).slice(0,o.length+c));var l={nextReqMessageID:i?"":r,messageList:s,isCompleted:i};return Fe.l("".concat(a," ret.nextReqMessageID:").concat(l.nextReqMessageID," ret.isCompleted:").concat(l.isCompleted," ret.length:").concat(s.length)),Ya(l)}));this.modifyMessageList(n);var u=this._getMessageListFromMemory({conversationID:n,nextReqMessageID:r,count:o});return $a(u)}},{key:"_getMessageListFromMemory",value:function(e){var t=e.conversationID,n=e.nextReqMessageID,r=e.count,o="".concat(this._n,"._getMessageListFromMemory"),a=this._messageListHandler.getLocalMessageList(t),i=a.length,s=0,c={isCompleted:!1,nextReqMessageID:"",messageList:[]};return n?(s=a.findIndex((function(e){return e.ID===n})))>r?(c.messageList=a.slice(s-r,s),c.nextReqMessageID=a[s-r].ID):(c.messageList=a.slice(0,s),c.isCompleted=!0):i>r?(s=i-r,c.messageList=a.slice(s,i),c.nextReqMessageID=a[s].ID):(c.messageList=a.slice(0,i),c.isCompleted=!0),Fe.l("".concat(o," conversationID:").concat(t)+" ret.nextReqMessageID:".concat(c.nextReqMessageID," ret.isCompleted:").concat(c.isCompleted," ret.length:").concat(c.messageList.length)),c}},{key:"getMessageListHopping",value:function(e){var t=e.conversationID,n=e.sequence,r=e.time,o=e.count,a=e.direction,i=void 0===a?0:a;if((it(o)||o>15)&&(o=15),t.startsWith(S.CONV_C2C)){var s=this.getModule(Nn),c=t.replace(S.CONV_C2C,"");return s.getRoamingMessagesHopping({peerAccount:c,time:r,count:o,direction:i})}if(t.startsWith(S.CONV_GROUP)){var l=this.getModule(xn),u=t.replace(S.CONV_GROUP,"");return l.getRoamingMessagesHopping({groupID:u,sequence:n,count:o,direction:i})}}},{key:"_computeRemainingCount",value:function(e){var t=e.conversationID,n=e.nextReqMessageID,r=this._messageListHandler.getLocalMessageList(t),o=r.length;if(!n)return o;var a=0;return It(t)?a=r.findIndex((function(e){return e.ID===n})):St(t)&&(a=-1!==n.indexOf("-")?r.findIndex((function(e){return e.ID===n})):r.findIndex((function(e){return e.sequence===n}))),-1===a&&(a=0),a}},{key:"_getMessageListSize",value:function(e){return this._messageListHandler.getLocalMessageList(e).length}},{key:"_needGetHistory",value:function(e){var t=e.conversationID,n=e.remainingCount,r=e.count,o=this.getLocalConversation(t),a="";return o&&o.groupProfile&&(a=o.groupProfile.type),!Tt(t)&&!kt(a)&&!(St(t)&&this._isPagingGetGroupListCompleted()&&this._getLocalGroupCount()<=4e3&&!this._hasLocalGroup(t)&&!this._isTopicConversation(t))&&n<=r&&!this._completedMap.has(t)}},{key:"_isTopicConversation",value:function(e){var t=e.replace(S.CONV_GROUP,"");return wt(t)}},{key:"getHistoryMessages",value:function(e){var t=e.conversationID,n=e.count;if(t===S.CONV_SYSTEM)return $a();var r=15;n>20&&(r=20);var o=null;if(It(t)){var a=this._roamingMessageKeyAndTimeMap.has(t);return(o=this.getModule(Nn))?o.getRoamingMessage({conversationID:t,peerAccount:t.replace(S.CONV_C2C,""),count:r,lastMessageTime:a?this._roamingMessageKeyAndTimeMap.get(t).lastMessageTime:0,messageKey:a?this._roamingMessageKeyAndTimeMap.get(t).messageKey:""}):Ja({code:fa.CANNOT_FIND_MODULE})}if(St(t)){if(!(o=this.getModule(xn)))return Ja({code:fa.CANNOT_FIND_MODULE});var i=null;this._conversationMap.has(t)&&(i=this._conversationMap.get(t).lastMessage);var s=0;i&&(s=i.lastSequence);var c=this._roamingMessageSequenceMap.get(t);return o.getRoamingMessage({conversationID:t,groupID:t.replace(S.CONV_GROUP,""),count:r,sequence:c||s})}return $a()}},{key:"patchConversationLastMessage",value:function(e){var t=this.getLocalConversation(e);if(t){var n=t.lastMessage,r=n.messageForShow,o=n.payload;if(Kt(r)||Kt(o)){var a=this._messageListHandler.getLocalMessageList(e);if(0===a.length)return;var i=a[a.length-1];Fe.l("".concat(this._n,".patchConversationLastMessage conversationID:").concat(e," payload:"),i.payload),t.updateLastMessage(i)}}}},{key:"onRoamingMessage",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=t.startsWith(S.CONV_C2C)?S.CONV_C2C:S.CONV_GROUP,a=null,i=[],s=[],c=0,l=e.length,u=null,d=o===S.CONV_GROUP,p=this.getModule(Hn),f=this.getFileDownloadProxy(),h=function(){c=d?e.length-1:0,l=d?0:e.length},m=function(){d?--c:++c},v=function(){return d?c>=l:c<l};for(h();v();m())if(d&&1===e[c].sequence&&r&&this.setCompleted(t),1!==e[c].isPlaceMessage)if((a=new Ha(e[c])).to=e[c].to,o!==S.CONV_GROUP||it(e[c].topicID)||(a.to=e[c].topicID),a.isSystemMessage=!!e[c].isSystemMessage,a.conversationType=o,4===e[c].event?u={type:S.MSG_GRP_TIP,content:n(n({},e[c].elements),{},{groupProfile:e[c].groupProfile})}:(e[c].elements=p.parseElements(e[c].elements,e[c].from),u=e[c].elements),d||a.setNickAndAvatar({nick:e[c].nick,avatar:e[c].avatar}),Kt(u)){var g=new Ta("emptyMessageBody");g.setMessage("from:".concat(a.from," to:").concat(a.to," sequence:").concat(a.sequence," event:").concat(e[c].event)),g.setNetworkType(this.getNetworkType()).setLevel("warning").end()}else a.setElement(u,f),a.reInitialize(this.getMyUserID()),i.push(a);return h=m=v=null,r?(this._messageListHandler.unshift(i,s),i=null,s):(s=null,i)}},{key:"findMessage",value:function(e){return this._messageListHandler.findMessage(e)}},{key:"_isNotInCommunity",value:function(e){var t=!1;if(e.startsWith(S.CONV_GROUP)&&this._isTopicConversation(e)){var n=Bt(e.replace(S.CONV_GROUP,""));this.getModule(xn).hasLocalGroup(n)||(t=!0)}return t}},{key:"deleteTopicRoamingMessageInfo",value:function(e){var t=this;Ct({groupID:e})&&this._messageListHandler.getTopicConversationIDList(e).forEach((function(e){t._messageListHandler.removeByConversationID(e),t._completedMap.delete(e),t._roamingMessageSequenceMap.delete(e)}))}},{key:"deleteGroupRomaingMessageInfo",value:function(e){var t="".concat(S.CONV_GROUP).concat(e);this._messageListHandler.removeByConversationID(t),this._completedMap.delete(t),this._roamingMessageSequenceMap.delete(t)}},{key:"setMessageRead",value:function(e){var t=e.conversationID,n=this.getLocalConversation(t);if(Fe.l("".concat(this._n,".setMessageRead conversationID:").concat(t," unreadCount:").concat(n?n.unreadCount:0)),!n)return $a();if(n.type!==S.CONV_GROUP&&n.type!==S.CONV_TOPIC||Kt(n.groupAtInfoList)||this.deleteGroupAtTips(t),0===n.unreadCount)return $a();if(n.type===S.CONV_GROUP&&!this._hasLocalGroup(t))return 0!==n.unreadCount&&(n.unreadCount=0,this.emitConversationUpdate(!0,!1)),$a();var r=this._messageListHandler.getLocalLastMessage(t),o=n.lastMessage.lastTime;r&&o<r.time&&(o=r.time);var a=n.lastMessage.lastSequence;if(r&&a<r.sequence&&(a=r.sequence),n.type===S.CONV_TOPIC&&it(r)){var i=this.getModule(Un),s=t.replace(S.CONV_GROUP,""),c=Bt(s),l=i.getLocalTopic(c,s);l&&(a=l.nextMessageSeq-1)}var u=null;switch(n.type){case S.CONV_C2C:return(u=this.getModule(Nn))?u.setMessageRead({conversationID:t,lastMessageTime:o}):Ja({code:fa.CANNOT_FIND_MODULE});case S.CONV_GROUP:case S.CONV_TOPIC:return(u=this.getModule(xn))?u.setMessageRead({conversationID:t,lastMessageSeq:a}):Ja({code:fa.CANNOT_FIND_MODULE});case S.CONV_SYSTEM:return n.unreadCount=0,this.emitConversationUpdate(!0,!1),$a();default:return $a()}}},{key:"setAllMessageRead",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n="setAllMessageRead",r="".concat(this._n,".").concat(n);t.scope||(t.scope=S.READ_ALL_MSG),Fe.l("".concat(r," options:"),t);var o=this._createSetAllMessageReadPack(t);if(0===o.readAllC2CMessage&&0===o.groupMessageReadInfoList.length)return $a();var a=new Ta(n);return this.request({protocolName:io,requestData:o}).then((function(n){var r=n.data,o=e._handleAllMessageRead(r);return a.setMessage("scope:".concat(t.scope," failureGroups:").concat(JSON.stringify(o))).setNetworkType(e.getNetworkType()).end(),$a()})).catch((function(t){return e.probeNetwork().then((function(e){var n=_(e,2),r=n[0],o=n[1];a.setError(t,r,o).end()})),Fe.w("".concat(r," failed. error:"),t),Ja({code:t&&t.code?t.code:fa.MESSAGE_UNREAD_ALL_FAIL,message:t&&t.message?t.message:void 0})}))}},{key:"setConversationCustomData",value:function(e){return this._convGroupHandler.setConvCustomData(e)}},{key:"markConversation",value:function(e){return this._convGroupHandler.markConversation(e)}},{key:"getConversationGroupList",value:function(){return this._convGroupHandler.getLocalConvGroupList()}},{key:"createConversationGroup",value:function(e){return this._convGroupHandler.createConvGroup(e)}},{key:"deleteConversationGroup",value:function(e){return this._convGroupHandler.deleteConvGroup(e)}},{key:"renameConversationGroup",value:function(e){return this._convGroupHandler.renameConvGroup(e)}},{key:"addConversationsToGroup",value:function(e){return this._convGroupHandler.addConvsToGroup(e)}},{key:"deleteConversationsFromGroup",value:function(e){return this._convGroupHandler.deleteConvsFromGroup(e)}},{key:"onConversationMarkUpdated",value:function(e){this._convGroupHandler.onConvMarkUpdated(e)}},{key:"onConversationGroupCreated",value:function(e){this._convGroupHandler.onConvGroupCreated(e)}},{key:"onConversationGroupDeleted",value:function(e){this._convGroupHandler.onConvGroupDeleted(e)}},{key:"onConversationGroupNameUpdated",value:function(e){this._convGroupHandler.onConvGroupNameUpdated(e)}},{key:"onConversationInGroupUpdated",value:function(e){this._convGroupHandler.onConvInGroupUpdated(e)}},{key:"onConversationAddedToOrDeletedFromGroup",value:function(e){this._convGroupHandler.onConvAddedToOrDeletedFromGroup(e)}},{key:"_getConversationLastMessageSequence",value:function(e){var t=this._messageListHandler.getLocalLastMessage(e.conversationID),n=e.lastMessage.lastSequence;return t&&n<t.sequence&&(n=t.sequence),n}},{key:"_getConversationLastMessageTime",value:function(e){var t=this._messageListHandler.getLocalLastMessage(e.conversationID),n=e.lastMessage.lastTime;return t&&n<t.time&&(n=t.time),n}},{key:"_createSetAllMessageReadPack",value:function(e){var t,n={readAllC2CMessage:0,groupMessageReadInfoList:[]},r=e.scope,o=w(this._conversationMap);try{for(o.s();!(t=o.n()).done;){var a=_(t.value,2)[1];if(a.unreadCount>0)if(a.type===S.CONV_C2C&&0===n.readAllC2CMessage){if(r===S.READ_ALL_MSG)n.readAllC2CMessage=1;else if(r===S.READ_ALL_C2C_MSG){n.readAllC2CMessage=1;break}}else if(a.type===S.CONV_GROUP&&(r===S.READ_ALL_GROUP_MSG||r===S.READ_ALL_MSG)){var i=this._getConversationLastMessageSequence(a);n.groupMessageReadInfoList.push({groupID:a.groupProfile.groupID,messageSequence:i})}}}catch(c){o.e(c)}finally{o.f()}return n}},{key:"onPushedAllMessageRead",value:function(e){this._handleAllMessageRead(e)}},{key:"_handleAllMessageRead",value:function(e){var t=e.groupMessageReadInfoList,n=e.readAllC2CMessage,r=this._parseGroupReadInfo(t);return this._updateAllConversationUnreadCount({readAllC2CMessage:n})>=1&&(this.emitConversationUpdate(!0,!1),this.emitTotalUnreadMessageCountUpdate()),r}},{key:"_parseGroupReadInfo",value:function(e){var t=[];if(e&&e.length)for(var n=0,r=e.length;n<r;n++){var o=e[n],a=o.groupID,i=o.sequence,s=o.retCode,c=o.lastMessageSeq;it(s)?this._remoteGroupReadSequenceMap.set(a,c):(this._remoteGroupReadSequenceMap.set(a,i),0!==s&&t.push("".concat(a,"-").concat(i,"-").concat(s)))}return t}},{key:"_updateAllConversationUnreadCount",value:function(e){var t,n=e.readAllC2CMessage,r=0,o=w(this._conversationMap);try{for(o.s();!(t=o.n()).done;){var a=_(t.value,2),i=a[0],s=a[1];if(s.unreadCount>=1){if(1===n&&s.type===S.CONV_C2C){var c=this._getConversationLastMessageTime(s);this.updateIsReadAfterReadReport({conversationID:i,lastMessageTime:c})}else if(s.type===S.CONV_GROUP){var l=i.replace(S.CONV_GROUP,"");if(this._remoteGroupReadSequenceMap.has(l)){var u=this._remoteGroupReadSequenceMap.get(l),d=this._getConversationLastMessageSequence(s);this.updateIsReadAfterReadReport({conversationID:i,remoteReadSequence:u}),d>=u&&this._remoteGroupReadSequenceMap.delete(l)}}this.updateUnreadCount(i,!1)&&(r+=1)}}}catch(f){o.e(f)}finally{o.f()}return r}},{key:"isRemoteRead",value:function(e){var t=e.conversationID,n=e.sequence,r=t.replace(S.CONV_GROUP,""),o=!1;if(this._remoteGroupReadSequenceMap.has(r)){var a=this._remoteGroupReadSequenceMap.get(r);n<=a&&(o=!0,Fe.l("".concat(this._n,".isRemoteRead conversationID:").concat(t," messageSequence:").concat(n," remoteReadSequence:").concat(a))),n>=a+10&&this._remoteGroupReadSequenceMap.delete(r)}return o}},{key:"updateIsReadAfterReadReport",value:function(e){var t=e.conversationID,n=e.lastMessageSeq,r=e.lastMessageTime,o=this._messageListHandler.getLocalMessageList(t);if(0!==o.length)for(var a,i=o.length-1;i>=0;i--)if(a=o[i],!(r&&a.time>r||n&&a.sequence>n)){if("in"===a.flow&&a.isRead)break;a.setIsRead(!0)}}},{key:"updateUnreadCount",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!1,r=this.getLocalConversation(e),o=this._messageListHandler.getLocalMessageList(e);if(r){var a=r.unreadCount,i=o.filter((function(e){return!e.isRead&&!e._onlineOnlyFlag&&!e.isDeleted})).length;if(a!==i&&(r.unreadCount=i,n=!0,Fe.l("".concat(this._n,".updateUnreadCount from ").concat(a," to ").concat(i,", conversationID:").concat(e)),!0===t&&(this.emitConversationUpdate(!0,!1),this.emitTotalUnreadMessageCountUpdate())),n&&r.type===S.CONV_TOPIC){var s=r.unreadCount,c=this.getModule(Un),l=e.replace(S.CONV_GROUP,"");c.onConversationProxy({topicID:l,unreadCount:s})}return n}}},{key:"clearGroupAtInfoList",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.getLocalConversation(e);if(n&&n.groupAtInfoList.length>0){if(n.clearGroupAtInfoList(),Fe.l("".concat(this._n,".clearGroupAtInfoList conversationID:").concat(e)),n.type===S.CONV_TOPIC){var r=n.groupAtInfoList,o=this.getModule(Un),a=e.replace(S.CONV_GROUP,"");o.onConversationProxy({topicID:a,groupAtInfoList:r})}!0===t&&this.emitConversationUpdate(!0,!1)}}},{key:"updateReadReceiptInfo",value:function(e){var t=this,n=e.userID,r=void 0===n?void 0:n,o=e.groupID,a=void 0===o?void 0:o,i=e.readReceiptList;if(!Kt(i)){var s=[];if(it(r)){if(!it(a)){var c="".concat(S.CONV_GROUP).concat(a);i.forEach((function(e){var n=e.tinyID,r=e.clientTime,o=e.random,i=e.readCount,l=e.unreadCount,u="".concat(n,"-").concat(r,"-").concat(o),d=t._messageListHandler.getLocalMessage(c,u),p={groupID:a,messageID:u,readCount:0,unreadCount:0};d&&(et(i)&&(d.readReceiptInfo.readCount=i,p.readCount=i),et(l)&&(d.readReceiptInfo.unreadCount=l,p.unreadCount=l),s.push(p))}))}}else{var l="".concat(S.CONV_C2C).concat(r);i.forEach((function(e){var n=e.tinyID,o=e.clientTime,a=e.random,i="".concat(n,"-").concat(o,"-").concat(a),c=t._messageListHandler.getLocalMessage(l,i);if(c){c.readReceiptInfo.isPeerRead=!0;var u={userID:r,messageID:i,isPeerRead:!0};s.push(u)}}))}s.length>0&&this.emitOuterEvent(I.MESSAGE_READ_RECEIPT_RECEIVED,s)}}},{key:"recomputeGroupUnreadCount",value:function(e){var t=e.conversationID,n=e.count,r=this.getLocalConversation(t);if(r){var o=r.unreadCount,a=o-n;a<0&&(a=0),r.unreadCount=a,Fe.l("".concat(this._n,".recomputeGroupUnreadCount from ").concat(o," to ").concat(a,", conversationID:").concat(t))}}},{key:"updateIsRead",value:function(e){var t=this.getLocalConversation(e),n=this.getLocalMessageList(e);if(t&&0!==n.length&&!Tt(t.type)){for(var r=[],o=0,a=n.length;o<a;o++)"in"!==n[o].flow?"out"!==n[o].flow||n[o].isRead||n[o].setIsRead(!0):r.push(n[o]);var i=0;if(t.type===S.CONV_C2C){var s=r.slice(-t.unreadCount).filter((function(e){return e.isRevoked})).length;i=r.length-t.unreadCount-s}else i=r.length-t.unreadCount;for(var c=0;c<i&&!r[c].isRead;c++)r[c].setIsRead(!0)}}},{key:"deleteGroupAtTips",value:function(e){var t=this,n="".concat(this._n,".deleteGroupAtTips");Fe.l("".concat(n));var r=this._conversationMap.get(e);if(!r)return Promise.resolve();var o=r.groupAtInfoList;if(0===o.length)return Promise.resolve();var a=void 0;e.startsWith(S.CONV_GROUP)&&(a=e.replace(S.CONV_GROUP,""));var i=y(o);if((Ct({groupID:a})||wt(a))&&0===(i=o.filter((function(e){return!e.atTypeArray.includes(S.CONV_AT_ALL)}))).length)return this.clearGroupAtInfoList(e,!1),Promise.resolve();var s=this.getMyUserID();return this.request({protocolName:Rr,requestData:{messageListToDelete:i.map((function(e){return{from:e.from,to:s,messageSeq:e.__sequence,messageRandom:e.__random,groupID:it(e.topicID)?e.groupID:e.topicID}}))}}).then((function(){return Fe.l("".concat(n," ok. count:").concat(o.length)),t.clearGroupAtInfoList(e,!1),Promise.resolve()})).catch((function(e){return Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"appendToMessageList",value:function(e){this._messageListHandler.pushIn(e)}},{key:"setMessageRandom",value:function(e){this.singlyLinkedList.set(e.random)}},{key:"deleteMessageRandom",value:function(e){this.singlyLinkedList.delete(e.random)}},{key:"pushIntoMessageList",value:function(e,t,n){return!(!this._messageListHandler.pushIn(t,n)||this._isMessageFromCurrentInstance(t)&&!n)&&(e.push(t),!0)}},{key:"_isMessageFromCurrentInstance",value:function(e){return this.singlyLinkedList.has(e.random)}},{key:"revoke",value:function(e,t,n){return this._messageListHandler.revoke(e,t,n)}},{key:"getPeerReadTime",value:function(e){return this._peerReadTimeMap.get(e)}},{key:"recordPeerReadTime",value:function(e,t){this._peerReadTimeMap.has(e)?this._peerReadTimeMap.get(e)<t&&this._peerReadTimeMap.set(e,t):this._peerReadTimeMap.set(e,t)}},{key:"updateMessageIsPeerReadProperty",value:function(e,t){if(e.startsWith(S.CONV_C2C)&&t>0){var n=this._messageListHandler.updateMessageIsPeerReadProperty(e,t);if(n.length>0&&this.emitOuterEvent(I.MESSAGE_READ_BY_PEER,n),this._conversationMap.has(e)){var r=this._conversationMap.get(e).lastMessage;Kt(r)||r.fromAccount===this.getMyUserID()&&r.lastTime<=t&&!r.isPeerRead&&(r.isPeerRead=!0,this.emitConversationUpdate(!0,!1))}}}},{key:"updateMessageIsModifiedProperty",value:function(e){this._messageListHandler.updateMessageIsModifiedProperty(e)}},{key:"setCompleted",value:function(e){Fe.l("".concat(this._n,".setCompleted. conversationID:").concat(e)),this._completedMap.set(e,!0)}},{key:"updateRoamingMessageKeyAndTime",value:function(e,t,n){this._roamingMessageKeyAndTimeMap.set(e,{messageKey:t,lastMessageTime:n})}},{key:"updateRoamingMessageSequence",value:function(e,t){this._roamingMessageSequenceMap.set(e,t)}},{key:"getConversationList",value:function(e){var t=this,n="getConversationList",r="".concat(this._n,".").concat(n),o="pagingStatus:".concat(this._pagingStatus,", local conversation count:").concat(this._conversationMap.size,", options:").concat(e);if(Fe.l("".concat(r,". ").concat(o)),this._pagingStatus===Zt.REJECTED){var a=new Ta(n);return a.setMessage(o),this.syncConversationList().then((function(){a.setNetworkType(t.getNetworkType()).end();var n=t._getConversationList(e);return Ya({conversationList:n,isSyncCompleted:t._isSyncCompleted()})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];a.setError(e,r,o).end()})),Fe.e("".concat(r," failed. error:"),e),Ja(e)}))}if(0===this._conversationMap.size){var i=new Ta(n);return i.setMessage(o),this.syncConversationList().then((function(){i.setNetworkType(t.getNetworkType()).end();var n=t._getConversationList(e);return Ya({conversationList:n,isSyncCompleted:t._isSyncCompleted()})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setError(e,r,o).end()})),Fe.e("".concat(r," failed. error:"),e),Ja(e)}))}var s=this._getConversationList(e);return Fe.l("".concat(r,". returned conversation count:").concat(s.length)),$a({conversationList:s,isSyncCompleted:this._isSyncCompleted()})}},{key:"_getConversationList",value:function(e){if(it(e))return this.getLocalConversationList();if(at(e))return 0===e.length?[]:this.getLocalConversationList().filter((function(t){return e.includes(t.conversationID)}));if(ot(e)){var t=e.type,n=e.markType,r=e.groupName;return this.getLocalConversationList().filter((function(e){return(t!==S.CONV_C2C&&t!==S.CONV_GROUP||e.type===t)&&(!nt(r)||e.conversationGroupList.includes(r))&&(!et(n)||e.markList.includes(n))}))}return[]}},{key:"_handleC2CPeerReadTime",value:function(){var e,t=w(this._conversationMap);try{for(t.s();!(e=t.n()).done;){var n=_(e.value,2),r=n[0],o=n[1];o.type===S.CONV_C2C&&(Fe.d("".concat(this._n,"._handleC2CPeerReadTime conversationID:").concat(r," peerReadTime:").concat(o.peerReadTime)),this.recordPeerReadTime(r,o.peerReadTime))}}catch(i){t.e(i)}finally{t.f()}}},{key:"_isPagingGetGroupListCompleted",value:function(){return this.getModule(xn).isPagingGetCompleted()}},{key:"_getLocalGroupCount",value:function(){return this.getModule(xn).getLocalGroupList().length}},{key:"_hasLocalGroup",value:function(e){return this.getModule(xn).hasLocalGroup(e.replace(S.CONV_GROUP,""))}},{key:"getConversationProfile",value:function(e){var t,n=this;if((t=this._conversationMap.has(e)?this._conversationMap.get(e):new mi({conversationID:e,type:e.slice(0,3)===S.CONV_C2C?S.CONV_C2C:S.CONV_GROUP},this.isIntl()))._isInfoCompleted||t.type===S.CONV_SYSTEM)return $a({conversation:t});if(St(e)&&!this._hasLocalGroup(e))return $a({conversation:t});var r="".concat(this._n,".").concat("getConversationProfile"),o=new Ta("getConversationProfile");return Fe.l("".concat(r,". conversationID:").concat(e," remark:").concat(t.remark," lastMessage:"),t.lastMessage),this._updateUserOrGroupProfileCompletely(t).then((function(a){o.setNetworkType(n.getNetworkType()).setMessage("conversationID:".concat(e," unreadCount:").concat(a.data.conversation.unreadCount)).end();var i=n.getModule(Rn);if(i&&t.type===S.CONV_C2C){var s=e.replace(S.CONV_C2C,"");if(i.isMyFriend(s)){var c=i.getFriendRemark(s);t.remark!==c&&(t.remark=c,Fe.l("".concat(r,". conversationID:").concat(e," patch remark:").concat(t.remark)))}}return Fe.l("".concat(r," ok. conversationID:").concat(e)),a})).catch((function(t){return n.probeNetwork().then((function(n){var r=_(n,2),a=r[0],i=r[1];o.setError(t,a,i).setMessage("conversationID:".concat(e)).end()})),Fe.e("".concat(r," failed. error:"),t),Ja(t)}))}},{key:"_updateUserOrGroupProfileCompletely",value:function(e){var t=this;return e.type===S.CONV_C2C?this.getModule(An).getUserProfile({userIDList:[e.toAccount]}).then((function(n){var r=n.data;return 0===r.length?Ja(new qa({code:fa.USER_OR_GROUP_NOT_FOUND})):(e.userProfile=r[0],e._isInfoCompleted=!0,t._unshiftConversation(e),$a({conversation:e}))})):this.getModule(xn).getGroupProfile({groupID:e.toAccount}).then((function(n){return e.groupProfile=n.data.group,e._isInfoCompleted=!0,t._unshiftConversation(e),$a({conversation:e})}))}},{key:"_unshiftConversation",value:function(e){e instanceof mi&&!this._conversationMap.has(e.conversationID)&&(this._conversationMap=new Map([[e.conversationID,e]].concat(y(this._conversationMap))),this._setStorageConversationList(),this.emitConversationUpdate(!0,!1))}},{key:"_onProfileUpdated",value:function(e){var t=this;e.data.forEach((function(e){var n=e.userID;if(n===t.getMyUserID())t._onMyProfileModified({latestNick:e.nick,latestAvatar:e.avatar});else{var r=t._conversationMap.get("".concat(S.CONV_C2C).concat(n));r&&(r.userProfile=e)}}))}},{key:"_isSyncCompleted",value:function(){return this._pagingStatus===Zt.RESOLVED}},{key:"_errorLog",value:function(e,t,n,r){var o=new Error("Params validate failed."),a="".concat(this.getErrorMessage("API_REFER")).concat(e);throw Fe.w("[".concat(e,"] | ").concat(t," | ").concat(this.getErrorMessage(n,r),", ").concat(a)),Fe.e("[".concat(e,"] Invalid ").concat(t,": type check failed for ").concat(t,".")),o}},{key:"_isValidConversationID",value:function(e){return It(e)||St(e)||Tt(e)}},{key:"deleteConversation",value:function(e){var t=this,n="deleteConversation";return nt(e)||rt(e)||this._errorLog(n,"options","StringOrObjectRequiredLog"),nt(e)?(this._isValidConversationID(e)||this._errorLog(n,"options","InvalidConversationID",e),Fe.l("".concat(this._n,".").concat(n," conversationID:").concat(e)),this.deleteConversationList({conversationIDList:[e],flag:1})):(at(e.conversationIDList)||this._errorLog(n,"conversationIDList","ArrayRequiredLog"),0===e.conversationIDList.length&&this._errorLog(n,"conversationIDList","NonEmptyArrayLog"),e.conversationIDList.forEach((function(e){t._isValidConversationID(e)||t._errorLog(n,"conversationIDList","InvalidConversationID",e)})),"clearHistoryMessage"in e&&"boolean"!=typeof e.clearHistoryMessage&&this._errorLog(n,"clearHistoryMessage","BooleanRequiredLog"),e.conversationIDList.length>100&&(e.conversationIDList=e.conversationIDList.slice(0,100)),this.deleteConversationList(e))}},{key:"deleteConversationList",value:function(e){var t=this,n=e.conversationIDList,r=void 0===n?[]:n,o=e.clearHistoryMessage,a=void 0===o||o,i=e.flag,s=void 0===i?0:i,c="".concat(this._n,".").concat("deleteConversationList");Fe.l("".concat(c," conversationIDList.length:").concat(r.length," clearHistoryMessage:").concat(a));var l=new Ta("deleteConversationList");return l.setMessage("conversationIDList:".concat(r)),Promise.all([this.rmLocalOnlyConversationList(r),this.rmLocalAndRemoteConversationList(r,a)]).then((function(e){l.setNetworkType(t.getNetworkType()).end();var n=[].concat(y(e[0]),y(e[1]));return 0===n.length?Ja(new qa({code:fa.CONVERSATION_NOT_FOUND})):(Fe.l("".concat(c," ok")),$a(1===s?{conversationID:n[0]}:{conversationIDList:n}))})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];l.setError(e,r,o).end()})),Fe.e("".concat(c," failed. error:"),e),Ja(e)}))}},{key:"rmLocalOnlyConversationList",value:function(e){var t=this;return e.filter((function(e){if(!t._conversationMap.has(e))return!1;var n=t.getLocalConversation(e).type;return n!==S.CONV_GROUP||t._hasLocalGroup(e)?n===S.CONV_SYSTEM&&(t.getModule(xn).deleteGroupSystemNotice({messageList:t._messageListHandler.getLocalMessageList(e)}),t.deleteLocalConversation(e),!0):(t.deleteLocalConversation(e),!0)}))}},{key:"rmLocalAndRemoteConversationList",value:function(e,t){var n=this,r={fromAccount:this.getMyUserID(),conversationList:[],clearHistoryMessage:t?1:0};return e.forEach((function(e){if(n._conversationMap.has(e)){var t=n.getLocalConversation(e).type;t===S.CONV_C2C?r.conversationList.push({toAccount:e.replace(t,""),type:1}):t===S.CONV_GROUP&&n._hasLocalGroup(e)&&r.conversationList.push({toGroupID:e.replace(t,""),type:2})}})),0===r.conversationList.length?[]:this.request({protocolName:Ar,requestData:r}).then((function(e){var t=[];return e.data.resultList.length>0&&e.data.resultList.map((function(e){if(0===e.code){var n="".concat(1===e.type?S.CONV_C2C:S.CONV_GROUP).concat(e.to);t.push(n)}})),n.deleteLocalConversationList(t),t}))}},{key:"clearHistoryMessage",value:function(e){var t=this,n={fromAccount:this.getMyUserID(),toAccount:void 0,type:void 0,toGroupID:void 0};if(!this._conversationMap.has(e))return Ja({code:fa.CONVERSATION_NOT_FOUND});var r=this._conversationMap.get(e).type;if(r===S.CONV_C2C)n.type=1,n.toAccount=e.replace(S.CONV_C2C,"");else{if(r!==S.CONV_GROUP)return r===S.CONV_SYSTEM?(this.getModule(xn).deleteGroupSystemNotice({messageList:this._messageListHandler.getLocalMessageList(e)}),$a({conversationID:e})):Ja({code:fa.CONVERSATION_UN_RECORDED_TYPE});n.type=2,n.toGroupID=e.replace(S.CONV_GROUP,"")}var o="".concat(this._n,".").concat("clearHistoryMessage"),a=new Ta("clearHistoryMessage");return a.setMessage("conversationID:".concat(e)),Fe.l("".concat(o,". conversationID:").concat(e)),this.setMessageRead({conversationID:e}).then((function(){return t.request({protocolName:Nr,requestData:n})})).then((function(){a.setNetworkType(t.getNetworkType()).end(),Fe.l("".concat(o," ok")),t._messageListHandler.removeByConversationID(e),t.setCompleted(e);var n=t.getLocalConversation(e);return n&&(n.updateLastMessage(),t._sortConversationListAndEmitEvent()),$a({conversationID:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];a.setError(e,r,o).end()})),Fe.e("".concat(o," failed. error:"),e),Ja(e)}))}},{key:"pinConversation",value:function(e){var t=this,n=e.conversationID,r=e.isPinned;if(!this._conversationMap.has(n))return Ja({code:fa.CONVERSATION_NOT_FOUND});var o=this.getLocalConversation(n);if(o.isPinned===r)return $a({conversationID:n});var a="".concat(this._n,".").concat("pinConversation"),i=new Ta("pinConversation");i.setMessage("conversationID:".concat(n," isPinned:").concat(r)),Fe.l("".concat(a,". conversationID:").concat(n," isPinned:").concat(r));var s=null;return It(n)?s={type:1,toAccount:n.replace(S.CONV_C2C,"")}:St(n)&&(s={type:2,groupID:n.replace(S.CONV_GROUP,"")}),this.request({protocolName:xr,requestData:{fromAccount:this.getMyUserID(),operationType:!0===r?1:2,itemList:[s]}}).then((function(){return i.setNetworkType(t.getNetworkType()).end(),Fe.l("".concat(a," ok")),o.isPinned!==r&&(o.isPinned=r,t._sortConversationListAndEmitEvent()),Ya({conversationID:n})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setError(e,r,o).end()})),Fe.e("".concat(a," failed. error:"),e),Ja(e)}))}},{key:"setMessageRemindType",value:function(e){return this._messageRemindHandler.set(e)}},{key:"patchMessageRemindType",value:function(e){var t=e.ID,n=e.isC2CConversation,r=e.messageRemindType,o=!1,a=this.getLocalConversation(n?"".concat(S.CONV_C2C).concat(t):"".concat(S.CONV_GROUP).concat(t));return a&&a.messageRemindType!==r&&(a.messageRemindType=r,o=!0),Fe.d("".concat(this._n,".patchMessageRemindType options:"),e,"ret:".concat(o)),o}},{key:"onC2CMessageRemindTypeSynced",value:function(e){var t=this,n="".concat(this._n,".onC2CMessageRemindTypeSynced");Fe.d(n,e),e.dataList.forEach((function(e){if(!Kt(e.muteNotificationsSync)){var r,o=e.muteNotificationsSync,a=o.to,i=o.updateSequence,s=o.muteFlag;t._messageRemindHandler.setUpdateSequence(i),0===s?r=S.MSG_REMIND_ACPT_AND_NOTE:1===s?r=S.MSG_REMIND_DISCARD:2===s&&(r=S.MSG_REMIND_ACPT_NOT_NOTE);var c=0;t.patchMessageRemindType({ID:a,isC2CConversation:!0,messageRemindType:r})&&(c+=1),Fe.l("".concat(n," updateCount:").concat(c)),c>=1&&t.emitConversationUpdate(!0,!1)}}))}},{key:"onGroupMessageRemindTypeSynced",value:function(e){Fe.d("".concat(this._n,".onGroupMessageRemindTypeSynced options:"),e),this._messageRemindHandler.onGroupMessageRemindTypeUpdated(e)}},{key:"deleteLocalConversation",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this._conversationMap.has(e);if(Fe.d("".concat(this._n,".deleteLocalConversation conversationID:").concat(e," has:").concat(n)),n&&(this._conversationMap.delete(e),this._roamingMessageKeyAndTimeMap.has(e)&&this._roamingMessageKeyAndTimeMap.delete(e),this._roamingMessageSequenceMap.has(e)&&this._roamingMessageSequenceMap.delete(e),this._setStorageConversationList(),this._messageListHandler.removeByConversationID(e),this._completedMap.delete(e),t)){var r=!this._isTopicConversation(e);this.emitConversationUpdate(r,!1)}}},{key:"deleteLocalConversationList",value:function(e){var t=this,n=0,r=!1;e.forEach((function(e){t._conversationMap.has(e)&&(n+=t._conversationMap.get(e).unreadCount||0,t.deleteLocalConversation(e,!1),r=!0)})),Fe.l("".concat(this._n,".deleteLocalConversationList conversationIDList.length:").concat(e.length," isConvIDExisted:").concat(r)),r&&(this.emitConversationUpdate(!0,!1),n>0&&this.emitTotalUnreadMessageCountUpdate())}},{key:"isMessageSentByCurrentInstance",value:function(e){return!(!this._messageListHandler.hasLocalMessage(e.conversationID,e.ID)&&!this.singlyLinkedList.has(e.random))}},{key:"modifyMessageList",value:function(e){if(e.startsWith(S.CONV_C2C)&&this._conversationMap.has(e)){var t=this._conversationMap.get(e),n=Date.now();this._messageListHandler.modifyMessageSentByPeer({conversationID:e,latestNick:t.userProfile.nick,latestAvatar:t.userProfile.avatar});var r=this.getModule(An).getNickAndAvatarByUserID(this.getMyUserID());this._messageListHandler.modifyMessageSentByMe({conversationID:e,latestNick:r.nick,latestAvatar:r.avatar}),Fe.l("".concat(this._n,".modifyMessageList conversationID:").concat(e," cost ").concat(Date.now()-n," ms"))}}},{key:"updateUserProfileSpecifiedKey",value:function(e){Fe.l("".concat(this._n,".updateUserProfileSpecifiedKey options:"),e);var t=e.conversationID,n=e.nick,r=e.avatar;if(this._conversationMap.has(t)){var o=this._conversationMap.get(t).userProfile;nt(n)&&o.nick!==n&&(o.nick=n),nt(r)&&o.avatar!==r&&(o.avatar=r),this.emitConversationUpdate(!0,!1)}}},{key:"_onMyProfileModified",value:function(e){var t=this,r=this.getLocalConversationList(),o=Date.now();r.forEach((function(r){t.modifyMessageSentByMe(n({conversationID:r.conversationID},e))})),Fe.l("".concat(this._n,"._onMyProfileModified. modify all messages sent by me, cost ").concat(Date.now()-o," ms"))}},{key:"modifyMessageSentByMe",value:function(e){this._messageListHandler.modifyMessageSentByMe(e)}},{key:"getLatestMessageSentByMe",value:function(e){return this._messageListHandler.getLatestMessageSentByMe(e)}},{key:"modifyMessageSentByPeer",value:function(e){this._messageListHandler.modifyMessageSentByPeer(e)}},{key:"getLatestMessageSentByPeer",value:function(e){return this._messageListHandler.getLatestMessageSentByPeer(e)}},{key:"pushIntoNoticeResult",value:function(e,t){return!(!this._messageListHandler.pushIn(t)||this.singlyLinkedList.has(t.random))&&(e.push(t),!0)}},{key:"getLocalLastMessage",value:function(e){return this._messageListHandler.getLocalLastMessage(e)}},{key:"checkAndPatchRemark",value:function(){var e=Promise.resolve();if(0===this._conversationMap.size)return e;var t=this.getModule(Rn);if(!t)return e;var n=y(this._conversationMap.values()).filter((function(e){return e.type===S.CONV_C2C}));if(0===n.length)return e;var r=0;return n.forEach((function(e){var n=e.conversationID.replace(S.CONV_C2C,"");if(t.isMyFriend(n)){var o=t.getFriendRemark(n);e.remark!==o&&(e.remark=o,r+=1)}})),Fe.l("".concat(this._n,".checkAndPatchRemark. c2c conversation count:").concat(n.length,", patched count:").concat(r)),e}},{key:"updateTopicConversation",value:function(e){this._updateLocalConversationList({conversationOptionsList:e,isFromGetConversations:!0})}},{key:"sendReadReceipt",value:function(e){var t=e[0],n=null;return t.conversationType===S.CONV_C2C?n=this._m.getModule(Nn):t.conversationType===S.CONV_GROUP&&(n=this._m.getModule(xn)),n?n.sendReadReceipt(e):Ja({code:fa.CANNOT_FIND_MODULE})}},{key:"getReadReceiptList",value:function(e){var t=e[0],n=null;return t.conversationType===S.CONV_C2C?n=this._m.getModule(Nn):t.conversationType===S.CONV_GROUP&&(n=this._m.getModule(xn)),n?n.getReadReceiptList(e):Ja({code:fa.CANNOT_FIND_MODULE})}},{key:"getLastMessageTime",value:function(e){var t=this.getLocalConversation(e);return t?t.lastMessage.lastTime:0}},{key:"getTotalUnreadMessageCount",value:function(){var e=this.getLocalConversationList(),t=0;return e.forEach((function(e){e.type!==S.CONV_SYSTEM&&(""!==e.messageRemindType&&e.messageRemindType!==S.MSG_REMIND_ACPT_AND_NOTE||(t+=e.unreadCount))})),t}},{key:"emitTotalUnreadMessageCountUpdate",value:function(){var e=this.getTotalUnreadMessageCount();this._convTotalUnreadCount!==e&&(Fe.l("".concat(this._n,".emitTotalUnreadMessageCountUpdate from ").concat(this._convTotalUnreadCount," to ").concat(e)),this._convTotalUnreadCount=e,this.emitOuterEvent(I.TOTAL_UNREAD_MESSAGE_COUNT_UPDATED))}},{key:"reset",value:function(){Fe.l("".concat(this._n,".reset")),this._pagingStatus=Zt.NOT_START,this._messageListHandler.reset(),this._messageRemindHandler.reset(),this._roamingMessageKeyAndTimeMap.clear(),this._roamingMessageSequenceMap.clear(),this.singlyLinkedList.reset(),this._peerReadTimeMap.clear(),this._completedMap.clear(),this._conversationMap.clear(),this._pagingTimeStamp=0,this._pagingStartIndex=0,this._pagingPinnedTimeStamp=0,this._pagingPinnedStartIndex=0,this._remoteGroupReadSequenceMap.clear(),this._convTotalUnreadCount=0,this.resetReady()}}]),r}(sr),yi=function(){function e(t){o(this,e),this._groupModule=t,this._n="GroupTipsHandler",this._cachedGroupTipsMap=new Map,this._checkCountMap=new Map,this.MAX_CHECK_COUNT=4,this._getTopicPendingMap=new Map}return i(e,[{key:"onCheckTimer",value:function(e){e%1==0&&this._cachedGroupTipsMap.size>0&&this._checkCachedGroupTips()}},{key:"_checkCachedGroupTips",value:function(){var e=this;this._cachedGroupTipsMap.forEach((function(t,n){var r=e._checkCountMap.get(n),o=e._groupModule.hasLocalGroup(n);Fe.l("".concat(e._n,"._checkCachedGroupTips groupID:").concat(n," hasLocalGroup:").concat(o," checkCount:").concat(r)),o?(e._notifyCachedGroupTips(n),e._checkCountMap.delete(n),e._groupModule.deleteUnjoinedAVChatRoom(n)):r>=e.MAX_CHECK_COUNT?(e._deleteCachedGroupTips(n),e._checkCountMap.delete(n)):(r++,e._checkCountMap.set(n,r))}))}},{key:"onNewGroupTips",value:function(e){Fe.d("".concat(this._n,".onReceiveGroupTips count:").concat(e.dataList.length));var t=this.newGroupTipsStoredAndSummary(e),n=t.eventDataList,r=t.result,o=t.AVChatRoomMessageList;o.length>0&&this._groupModule.onAVChatRoomMessage(o),n.length>0&&(this._groupModule.updateNextMessageSeq(n),this._groupModule.getModule(Vn).onNewMessage({conversationOptionsList:n,isInstantMessage:!0})),r.length>0&&(this._groupModule.emitOuterEvent(I.MESSAGE_RECEIVED,r),this.handleMessageList(r))}},{key:"newGroupTipsStoredAndSummary",value:function(e){for(var t=this,r=e.event,o=e.dataList,a=null,i=[],s=[],c={},l=[],u=function(e,u){var d=Ot(o[e]);if(6===r){if(t._groupModule.isGroupAttributesUpdatedNotice(d))return"continue";if(t._groupModule.isGroupCountersNotice(d))return"continue"}var p=d.groupProfile,f=p.groupID,h=p.communityType,m=void 0===h?0:h,v=p.topicID,g=void 0===v?void 0:v,_=p.invisible,y=void 0,b=t._groupModule.isMessageFromTopic(m,g);if(b){y=S.CONV_TOPIC,d.to=g;var O=t._groupModule.getModule(Un);O.hasLocalTopic(f,g)||t._getTopicPendingMap.has(g)||(t._getTopicPendingMap.set(g,1),O.getTopicList({groupID:f,topicIDList:[g]}).finally((function(){t._getTopicPendingMap.delete(g)})))}var M=t._groupModule.hasLocalGroup(f);if(!M&&t._groupModule.isUnjoinedAVChatRoom(f))return"continue";if(!M&&!b)return t._cacheGroupTipsAndProbe({groupID:f,event:r,item:d}),"continue";if(t._groupModule.isMessageFromOrToAVChatroom(f))return d.event=r,l.push(d),"continue";if(d.currentUser=t._groupModule.getMyUserID(),d.conversationType=S.CONV_GROUP,(a=new Ha(d)).setElement({type:S.MSG_GRP_TIP,content:n(n({},d.elements),{},{groupProfile:d.groupProfile})}),a.isSystemMessage=!1,1===_)return t._qualityStat(a),"continue";var k=t._groupModule.getModule(Vn),C=a,w=C.conversationID,I=C.sequence;if(6===r)a._onlineOnlyFlag=!0,s.push(a);else if(!k.pushIntoNoticeResult(s,a))return"continue";if(t._groupModule.isMessageFromCommunityOfTopic(m,g))return"continue";if(6===r&&k.getLocalConversation(w))return"continue";6!==r&&t._qualityStat(a);var T=k.isRemoteRead({conversationID:w,sequence:I});if(it(c[w])){var E=0;"in"===a.flow&&(a._isExcludedFromUnreadCount||a._onlineOnlyFlag||T||(E=1)),c[w]=i.push({conversationID:w,unreadCount:E,type:it(y)?a.conversationType:y,subType:a.conversationSubType,lastMessage:a._isExcludedFromLastMessage?"":a})-1}else{var j=c[w];i[j].type=a.conversationType,i[j].subType=a.conversationSubType,i[j].lastMessage=a._isExcludedFromLastMessage?"":a,"in"===a.flow&&(a._isExcludedFromUnreadCount||a._onlineOnlyFlag||T||i[j].unreadCount++)}},d=0,p=o.length;d<p;d++)u(d);return{eventDataList:i,result:s,AVChatRoomMessageList:l}}},{key:"_qualityStat",value:function(e){this._groupModule.getModule(er).addMessageSequence({key:Oa,message:e})}},{key:"handleMessageList",value:function(e){var t=this;e.forEach((function(e){switch(e.payload.operationType){case 1:t._onNewMemberComeIn(e);break;case 2:t._onMemberQuit(e);break;case 3:t._onMemberKickedOut(e);break;case 4:t._onMemberSetAdmin(e);break;case 5:t._onMemberCancelledAdmin(e);break;case 6:t._onGroupProfileModified(e);break;case 7:t._onMemberInfoModified(e);break;case 8:t._onTopicProfileUpdated(e);break;default:Fe.w("".concat(t._n,".handleMessageList unknown operationType:").concat(e.payload.operationType))}}))}},{key:"_onNewMemberComeIn",value:function(e){var t=e.payload,n=t.memberNum,r=t.groupProfile.groupID,o=this._groupModule.getLocalGroupProfile(r);o&&et(n)&&o.memberCount!==n&&(o.memberCount=n,this._updateConversationGroupProfile(o))}},{key:"_onMemberQuit",value:function(e){var t=e.payload,n=t.memberNum,r=t.groupProfile.groupID,o=this._groupModule.getLocalGroupProfile(r);o&&et(n)&&o.memberCount!==n&&(o.memberCount=n,this._updateConversationGroupProfile(o)),this._groupModule.getModule(Pn).deleteLocalGroupMembers(r,e.payload.userIDList)}},{key:"_onMemberKickedOut",value:function(e){var t=e.payload,n=t.memberNum,r=t.groupProfile.groupID,o=this._groupModule.getLocalGroupProfile(r);o&&et(n)&&o.memberCount!==n&&(o.memberCount=n,this._updateConversationGroupProfile(o)),this._groupModule.getModule(Pn).deleteLocalGroupMembers(r,e.payload.userIDList)}},{key:"_updateConversationGroupProfile",value:function(e){this._groupModule.getModule(Vn).updateConversationGroupProfile([e])}},{key:"_onMemberSetAdmin",value:function(e){var t=e.payload.groupProfile.groupID,n=e.payload.userIDList,r=this._groupModule.getModule(Pn);n.forEach((function(e){var n=r.getLocalGroupMemberInfo(t,e);n&&n.updateRole(S.GRP_MBR_ROLE_ADMIN)}))}},{key:"_onMemberCancelledAdmin",value:function(e){var t=e.payload.groupProfile.groupID,n=e.payload.userIDList,r=this._groupModule.getModule(Pn);n.forEach((function(e){var n=r.getLocalGroupMemberInfo(t,e);n&&n.updateRole(S.GRP_MBR_ROLE_MEMBER)}))}},{key:"_onGroupProfileModified",value:function(e){var t=this,n=e.payload,r=n.newGroupProfile,o=n.groupProfile.groupID,a=this._groupModule.getLocalGroupProfile(o);Object.keys(r).forEach((function(e){switch(e){case"ownerID":t._ownerChanged(a,r);break;case"groupName":a.name=r[e];break;default:a[e]=r[e]}}));var i=!a.isSupportTopic;this._groupModule.emitGroupListUpdate(!0,i)}},{key:"_ownerChanged",value:function(e,t){var n=e.groupID,r=this._groupModule.getLocalGroupProfile(n),o=this._groupModule.getMyUserID();if(o===t.ownerID){r.updateGroup({selfInfo:{role:S.GRP_MBR_ROLE_OWNER}});var a=this._groupModule.getModule(Pn),i=a.getLocalGroupMemberInfo(n,o),s=this._groupModule.getLocalGroupProfile(n).ownerID,c=a.getLocalGroupMemberInfo(n,s);i&&i.updateRole(S.GRP_MBR_ROLE_OWNER),c&&c.updateRole(S.GRP_MBR_ROLE_MEMBER)}}},{key:"_onMemberInfoModified",value:function(e){var t=e.to,n=e.payload,r=n.groupProfile,o=n.memberList,a=r.groupID;wt(t)&&this._updateTopicMuteTime(e);var i=this._groupModule.getModule(Pn);o.forEach((function(e){var t=i.getLocalGroupMemberInfo(a,e.userID);t&&et(e.muteTime)&&t.updateMuteUntil(e.muteTime)}))}},{key:"_updateTopicMuteTime",value:function(e){var t=e.to,n=e.payload,r=n.groupProfile,o=n.memberList,a=void 0===o?[]:o,i=this._groupModule.getModule(Un),s=r.groupID,c=i.getLocalTopic(s,t);if(c){for(var l=!1,u=0;u<a.length;u++){var d=a[u];if(d.userID===this._groupModule.getMyUserID()&&d.muteTime>=0){c.updateSelfInfo({muteTime:d.muteTime}),l=!0;break}}l&&this._groupModule.emitOuterEvent(I.TOPIC_UPDATED,{groupID:s,topic:c})}}},{key:"_onTopicProfileUpdated",value:function(e){var t=e.payload,r=t.groupProfile.groupID,o=t.newTopicInfo;this._groupModule.getModule(Un).onTopicProfileUpdated(n({groupID:r,topicID:e.to},o))}},{key:"_cacheGroupTips",value:function(e,t){this._cachedGroupTipsMap.has(e)||this._cachedGroupTipsMap.set(e,[]),this._cachedGroupTipsMap.get(e).push(t)}},{key:"_deleteCachedGroupTips",value:function(e){this._cachedGroupTipsMap.has(e)&&this._cachedGroupTipsMap.delete(e)}},{key:"_notifyCachedGroupTips",value:function(e){var t=this,n=this._cachedGroupTipsMap.get(e)||[];n.forEach((function(e){t.onNewGroupTips(e)})),this._deleteCachedGroupTips(e),Fe.l("".concat(this._n,"._notifyCachedGroupTips groupID:").concat(e," count:").concat(n.length))}},{key:"_cacheGroupTipsAndProbe",value:function(e){var t=this,n=e.groupID,r=e.event,o=e.item;this._cacheGroupTips(n,{event:r,dataList:[o]}),this._groupModule.getGroupSimplifiedInfo(n).then((function(e){e.type===S.GRP_AVCHATROOM?t._groupModule.hasLocalGroup(n)?t._notifyCachedGroupTips(n):t._groupModule.setUnjoinedAVChatRoom(n):(t._groupModule.updateGroupMap([e]),t._notifyCachedGroupTips(n))})),this._checkCountMap.has(n)||this._checkCountMap.set(n,0),Fe.l("".concat(this._n,"._cacheGroupTipsAndProbe groupID:").concat(n))}},{key:"reset",value:function(){this._cachedGroupTipsMap.clear(),this._checkCountMap.clear(),this._getTopicPendingMap.clear()}}]),e}(),bi=function(){function e(t){o(this,e),this._groupModule=t,this._n="CommonGroupHandler",this.tempConversationList=null,this._cachedGroupMessageMap=new Map,this._checkCountMap=new Map,this.MAX_CHECK_COUNT=4,this._getTopicPendingMap=new Map,this._isPagingGetCompleted=!1,t.getInnerEmitterInstance().once(Za,this._initGroupList,this)}return i(e,[{key:"onCheckTimer",value:function(e){e%1==0&&this._cachedGroupMessageMap.size>0&&this._checkCachedGroupMessage()}},{key:"_checkCachedGroupMessage",value:function(){var e=this;this._cachedGroupMessageMap.forEach((function(t,n){var r=e._checkCountMap.get(n),o=e._groupModule.hasLocalGroup(n);Fe.l("".concat(e._n,"._checkCachedGroupMessage groupID:").concat(n," hasLocalGroup:").concat(o," checkCount:").concat(r)),o?(e._notifyCachedGroupMessage(n),e._checkCountMap.delete(n),e._groupModule.deleteUnjoinedAVChatRoom(n)):r>=e.MAX_CHECK_COUNT?(e._deleteCachedGroupMessage(n),e._checkCountMap.delete(n)):(r++,e._checkCountMap.set(n,r))}))}},{key:"_initGroupList",value:function(){var e=this;Fe.l("".concat(this._n,"._initGroupList"));var t=new Ta("getGroupListInStorage"),n=this._groupModule.getStorageGroupList();if(at(n)&&n.length>0){n.forEach((function(t){e._groupModule.initGroupMap(t)})),this._groupModule.emitGroupListUpdate(!0,!1);var r=this._groupModule.getLocalGroupList().length;t.setNetworkType(this._groupModule.getNetworkType()).setMessage("group count:".concat(r)).end()}else t.setNetworkType(this._groupModule.getNetworkType()).setMessage("group count:0").end();Fe.l("".concat(this._n,"._initGroupList ok"))}},{key:"handleUpdateGroupLastMessage",value:function(e){var t="".concat(this._n,".handleUpdateGroupLastMessage");if(Fe.l("".concat(t," conversation count:").concat(e.length,", local group count:").concat(this._groupModule.getLocalGroupList().length)),0!==this._groupModule.getGroupMap().size){for(var r,o,a,i=!1,s=0,c=e.length;s<c;s++)(r=e[s]).type===S.CONV_GROUP&&(o=r.conversationID.split(/^GROUP/)[1],(a=this._groupModule.getLocalGroupProfile(o))&&(a.lastMessage=n({},r.lastMessage),i=!0));i&&(this._groupModule.sortLocalGroupList(),this._groupModule.emitGroupListUpdate(!0,!1))}else this.tempConversationList=e}},{key:"onNewGroupMessage",value:function(e){Fe.d("".concat(this._n,".onNewGroupMessage count:").concat(e.dataList.length));var t=this._newGroupMessageStoredAndSummary(e),n=t.conversationOptionsList,r=t.messageList,o=t.AVChatRoomMessageList;o.length>0&&this._groupModule.onAVChatRoomMessage(o),this._groupModule.filterModifiedMessage(r),n.length>0&&(this._groupModule.updateNextMessageSeq(n),this._groupModule.getModule(Vn).onNewMessage({conversationOptionsList:n,isInstantMessage:e.isInstantMessage||!0,updateUnreadCount:e.updateUnreadCount||!0}));var a=this._groupModule.filterUnmodifiedMessage(r);a.length>0&&this._groupModule.emitOuterEvent(I.MESSAGE_RECEIVED,a),r.length=0}},{key:"_newGroupMessageStoredAndSummary",value:function(e){var t=this,n=e.dataList,r=e.event,o=e.isInstantMessage,a=null,i=[],s=[],c=[],l={},u=this._groupModule.getModule(Hn),d=this._groupModule.getFileDownloadProxy(),p=n.length;p>1&&n.sort((function(e,t){return e.sequence-t.sequence}));for(var f=function(e){var p=Ot(n[e]),f=p.groupProfile,h=f.groupID,m=f.communityType,v=void 0===m?0:m,g=f.topicID,_=void 0===g?void 0:g,y=f.invisible,b=void 0,O=t._groupModule.isMessageFromTopic(v,_);if(O){b=S.CONV_TOPIC,p.to=_;var M=t._groupModule.getModule(Un);M.hasLocalTopic(h,_)||t._getTopicPendingMap.has(_)||(t._getTopicPendingMap.set(_,1),M.getTopicList({groupID:h,topicIDList:[_]}).finally((function(){t._getTopicPendingMap.delete(_)})))}var k=t._groupModule.hasLocalGroup(h);if(!k&&t._groupModule.isUnjoinedAVChatRoom(h))return"continue";if(!k&&!O)return t._cacheGroupMessageAndProbe({groupID:h,event:r,item:p}),"continue";if(t._groupModule.isMessageFromOrToAVChatroom(h))return p.event=r,c.push(p),"continue";if(p.currentUser=t._groupModule.getMyUserID(),p.conversationType=S.CONV_GROUP,p.isSystemMessage=!!p.isSystemMessage,a=new Ha(p),p.elements=u.parseElements(p.elements,p.from),a.setElement(p.elements,d),1===y)return t._qualityStat(o,a),"continue";var C=1===n[e].isModified,w=t._groupModule.getModule(Vn);if(w.isMessageSentByCurrentInstance(a)?a.isModified=C:C=!1,1===p.onlineOnlyFlag)a._onlineOnlyFlag=!0,w.isMessageSentByCurrentInstance(a)||s.push(a);else{if(t._groupModule.isMessageFromCommunityOfTopic(v,_))return s.push(a),"continue";if(!w.pushIntoMessageList(s,a,C))return"continue";t._qualityStat(o,a);var I=a,T=I.conversationID,E=I.sequence,j=w.isRemoteRead({conversationID:T,sequence:E});if(it(l[T])){var D=0;"in"===a.flow&&(a._isExcludedFromUnreadCount||j||(D=1)),l[T]=i.push({conversationID:T,unreadCount:D,type:it(b)?a.conversationType:b,subType:a.conversationSubType,lastMessage:a._isExcludedFromLastMessage?"":a})-1}else{var L=l[T];i[L].type=it(b)?a.conversationType:b,i[L].subType=a.conversationSubType,i[L].lastMessage=a._isExcludedFromLastMessage?"":a,"in"===a.flow&&(a._isExcludedFromUnreadCount||j||i[L].unreadCount++)}}},h=0;h<p;h++)f(h);return{conversationOptionsList:i,messageList:s,AVChatRoomMessageList:c}}},{key:"_qualityStat",value:function(e,t){var n=this._groupModule.getModule(er);n.addMessageSequence({key:Oa,message:t}),e&&t.clientTime>0&&n.addMessageDelay(t.clientTime)}},{key:"onGroupMessageRevoked",value:function(e){var t=this._groupModule.getModule(Vn),n=[],r=null,o=!0;e.dataList.forEach((function(e){var a=e.elements.revokedInfos;it(a)||a.forEach((function(e){var a=Kt(e.topicID)?"GROUP".concat(e.groupID):"GROUP".concat(e.topicID);r=t.revoke(a,e.sequence,e.random);var i=e.revokerInfo&&e.revokerInfo.revoker;if(r)r.revoker=i,n.push(r);else{var s={conversationID:a,to:e.topicID||"",sequence:e.sequence,time:e.time,revoker:i};t.isLastMessageRevoked(s)&&(n.push(s),o=!1)}}))})),0!==n.length&&(t.onMessageRevoked(n),!0===o&&(Fe.l("".concat(this._n,".onGroupMessageRevoked count:").concat(n.length)),this._groupModule.emitOuterEvent(I.MESSAGE_REVOKED,n)))}},{key:"_groupListTreeShaking",value:function(e){for(var t=new Map(y(this._groupModule.getGroupMap())),n=0,r=e.length;n<r;n++)t.delete(e[n].groupID);this._groupModule.hasJoinedAVChatRoom()&&this._groupModule.getJoinedAVChatRoom().forEach((function(e){t.delete(e)})),this._groupModule.getGroupMap().forEach((function(e,n){e.isSupportTopic&&t.delete(n)}));for(var o=y(t.keys()),a=0,i=o.length;a<i;a++)this._groupModule.deleteGroup(o[a])}},{key:"getGroupList",value:function(e){var t=this,n="".concat(this._n,".").concat("getGroupList"),r=new Ta("getGroupList");Fe.l("".concat(n));var o={introduction:"Introduction",notification:"Notification",createTime:"CreateTime",ownerID:"Owner_Account",lastInfoTime:"LastInfoTime",memberNum:"MemberNum",maxMemberNum:"MaxMemberNum",joinOption:"ApplyJoinOption",inviteOption:"InviteJoinOption",muteAllMembers:"ShutUpAllMember"},a=["Type","Name","FaceUrl","NextMsgSeq","LastMsgTime","AtInfoList","LastRecallTime"],i=[];e&&e.groupProfileFilter&&e.groupProfileFilter.forEach((function(e){o[e]&&a.push(o[e])}));var s=(e||{}).isGroupWithTopicOnly,c=void 0!==s&&s;return this._pagingGetGroupList({limit:50,offset:0,groupBaseInfoFilter:a,groupList:i,isGroupWithTopicOnly:c}).then((function(){Fe.l("".concat(n," ok. count:").concat(i.length," isGroupWithTopicOnly:").concat(c)),c||t._groupListTreeShaking(i),t._groupModule.updateGroupMap(i);var e=t._groupModule.getLocalGroupList().length;r.setNetworkType(t._groupModule.getNetworkType()).setMessage("remote count:".concat(i.length,", after tree shaking, local count:").concat(e,", isGroupWithTopicOnly:").concat(c)).end(),t.tempConversationList&&(t.handleUpdateGroupLastMessage(t.tempConversationList),t.tempConversationList=null),t._groupModule.patchGroupMessageRemindType(),t._groupModule.recomputeUnreadCount(),t._groupModule.emitGroupListUpdate(!0,!c);var o=t._groupModule.getLocalGroupList();if(c){var a=o.filter((function(e){return!0===e.isSupportTopic}));return Ya({groupList:a})}return t._isPagingGetCompleted=!0,Ya({groupList:o})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=_(t,2),o=n[0],a=n[1];r.setError(e,o,a).end()})),Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"isPagingGetCompleted",value:function(){return this._isPagingGetCompleted}},{key:"_pagingGetGroupList",value:function(e){var t=this,n="".concat(this._n,".").concat("_pagingGetGroupList"),r=e.isCommunityRelay,o=void 0!==r&&r,a=e.isGroupWithTopicOnly,i=void 0!==a&&a,s=e.limit,c=e.offset,l=e.groupBaseInfoFilter,u=e.groupList;if(i)return this._pagingGetGroupListWithTopic({limit:s,offset:c,groupBaseInfoFilter:l,groupList:u});var d=new Ta("_pagingGetGroupList");return this._groupModule.request({protocolName:Yr,requestData:{type:o?S.GRP_COMMUNITY:void 0,memberAccount:this._groupModule.getMyUserID(),limit:s,offset:c,responseFilter:{groupBaseInfoFilter:l,selfInfoFilter:["Role","JoinTime","MsgFlag","MsgSeq"]}}}).then((function(e){var r=e.data,a=r.groups,i=void 0===a?[]:a,p=r.totalCount;u.push.apply(u,y(i)),t._handleGroupAtInfoWithoutTopic(o,i);var f=c+s,h=!(p>f),m="offset:".concat(c," totalCount:").concat(p," isCompleted:").concat(h," ")+"currentCount:".concat(u.length," isCommunityRelay:").concat(o);return d.setNetworkType(t._groupModule.getNetworkType()).setMessage("".concat(m)).end(),o||h?!o&&h?(Fe.l("".concat(n," start to get community list")),c=0,t._pagingGetGroupList({limit:s,offset:c,groupBaseInfoFilter:l,groupList:u,isCommunityRelay:!0})):o&&!h?(c=f,t._pagingGetGroupList({limit:s,offset:c,groupBaseInfoFilter:l,groupList:u,isCommunityRelay:!0})):(Fe.l("".concat(n," ok. totalCount:").concat(u.length)),Ya({groupList:u})):(c=f,t._pagingGetGroupList({limit:s,offset:c,groupBaseInfoFilter:l,groupList:u}))})).catch((function(e){return 11e3!==e.code&&t._groupModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],a=n[1];d.setMessage("isCommunityRelay:".concat(o)).setError(e,r,a).end()})),o?(11e3===e.code&&(d=null,Fe.l("".concat(n," ok. community unavailable"))),$a({groupList:u})):Ja(e)}))}},{key:"_pagingGetGroupListWithTopic",value:function(e){var t=this,n="".concat(this._n,"._pagingGetGroupListWithTopic"),r=e.limit,o=e.offset,a=e.groupBaseInfoFilter,i=e.groupList,s=new Ta("pagingGetGroupListWithTopic");return this._groupModule.request({protocolName:Yr,requestData:{type:S.GRP_COMMUNITY,memberAccount:this._groupModule.getMyUserID(),limit:r,offset:o,responseFilter:{groupBaseInfoFilter:a,selfInfoFilter:["Role","JoinTime","MsgFlag","MsgSeq"]},isSupportTopic:1}}).then((function(e){var c=e.data,l=c.groups,u=void 0===l?[]:l,d=c.totalCount;i.push.apply(i,y(u));var p=o+r,f=!(d>p),h="offset:".concat(o," totalCount:").concat(d," isCompleted:").concat(f," ")+"currentCount:".concat(i.length);return s.setNetworkType(t._groupModule.getNetworkType()).setMessage("".concat(h)).end(),f?(Fe.l("".concat(n," ok. totalCount:").concat(i.length)),Ya({groupList:i})):(o=p,t._pagingGetGroupListWithTopic({limit:r,offset:o,groupBaseInfoFilter:a,groupList:i}))})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];s.setError(e,r,o).end()})),Ja(e)}))}},{key:"_cacheGroupMessage",value:function(e,t){this._cachedGroupMessageMap.has(e)||this._cachedGroupMessageMap.set(e,[]),this._cachedGroupMessageMap.get(e).push(t)}},{key:"_deleteCachedGroupMessage",value:function(e){this._cachedGroupMessageMap.has(e)&&this._cachedGroupMessageMap.delete(e)}},{key:"_notifyCachedGroupMessage",value:function(e){var t=this,n=this._cachedGroupMessageMap.get(e)||[];n.forEach((function(e){t.onNewGroupMessage(e)})),this._deleteCachedGroupMessage(e),Fe.l("".concat(this._n,"._notifyCachedGroupMessage groupID:").concat(e," count:").concat(n.length))}},{key:"_cacheGroupMessageAndProbe",value:function(e){var t=this,n=e.groupID,r=e.event,o=e.item;this._cacheGroupMessage(n,{event:r,dataList:[o]}),this._groupModule.getGroupSimplifiedInfo(n).then((function(e){e.type===S.GRP_AVCHATROOM?t._groupModule.hasLocalGroup(n)?t._notifyCachedGroupMessage(n):t._groupModule.setUnjoinedAVChatRoom(n):(t._groupModule.updateGroupMap([e]),t._notifyCachedGroupMessage(n))})),this._checkCountMap.has(n)||this._checkCountMap.set(n,0),Fe.l("".concat(this._n,"._cacheGroupMessageAndProbe groupID:").concat(n))}},{key:"_handleGroupAtInfoWithoutTopic",value:function(e,t){var r=this;e&&0!==t.length&&t.forEach((function(e){var t=e.groupID,o=e.groupAtInfoList,a=[];it(o)||(o.forEach((function(e){a.push(n(n({},e),{},{groupID:t}))})),r._groupModule.getModule(Vn).onNewGroupAtTips({dataList:a}))}))}},{key:"reset",value:function(){this._cachedGroupMessageMap.clear(),this._checkCountMap.clear(),this._getTopicPendingMap.clear(),this._isPagingGetCompleted=!1,this._groupModule.getInnerEmitterInstance().once(Za,this._initGroupList,this)}}]),e}(),Oi=1,Mi=2,ki=3,Ci=4,wi=5,Ii=function(){function e(t){o(this,e),this._groupModule=t,this._n="GroupAttributesHandler",this._groupAttributesMap=new Map,this._groupAttributesCopy={},this.CACHE_EXPIRE_TIME=3e4,this._groupModule.getInnerEmitterInstance().on(ei,this._onCloudConfigUpdated,this)}return i(e,[{key:"_onCloudConfigUpdated",value:function(){var e=this._groupModule.getCloudConfig("grp_attr_cache_time");it(e)||(this.CACHE_EXPIRE_TIME=Number(e))}},{key:"updateLocalMainSequenceOnReconnected",value:function(){this._groupAttributesMap.forEach((function(e){e.localMainSequence=0}))}},{key:"isGroupAttributesUpdatedNotice",value:function(e){var t=e.to,n=e.elements.newGroupProfile,r=!it(n)&&!Kt(n.groupAttributeOption);return r&&this._onGroupAttributesUpdated({groupID:t,groupAttributeOption:n.groupAttributeOption}),r}},{key:"_onGroupAttributesUpdated",value:function(e){var t=this,n=e.groupID,r=e.groupAttributeOption,o=r.mainSequence,a=r.isWithChangedAttributeInfo,i=r.groupAttributeList,s=void 0===i?[]:i,c=r.operationType;if(Fe.l("".concat(this._n,".onGroupAttributesUpdated. ")+"groupID:".concat(n," isWithChangedAttributeInfo:").concat(a," operationType:").concat(c)),!it(c)){this._groupAttributesCopy=this._getCachedAttributes({groupID:n});var l=this._getLocalGroupAttributes(n).localMainSequence;if(1===a&&o-l==1)return this._refreshCachedGroupAttributes({groupID:n,remoteMainSequence:o,groupAttributeList:s,operationType:c}),void this._emitGroupAttributesUpdated(n);if(this._hasLocalGroupAttributes(n)){var u=this._getLocalGroupAttributes(n).avChatRoomKey;this._getGroupAttributes({groupID:n,avChatRoomKey:u}).then((function(){t._emitGroupAttributesUpdated(n)}))}}}},{key:"initGroupAttributesCache",value:function(e){var t=e.groupID,n=e.avChatRoomKey,r=void 0===n?void 0:n;this._groupAttributesMap.set(t,{lastUpdateTime:0,localMainSequence:0,remoteMainSequence:0,attributes:new Map,avChatRoomKey:r}),Fe.l("".concat(this._n,".initGroupAttributesCache groupID:").concat(t," avChatRoomKey:").concat(r))}},{key:"initGroupAttributes",value:function(e){var t=this,n=e.groupID,r=e.groupAttributes,o=this._getLocalGroupAttributes(n),a=o.remoteMainSequence,i=o.avChatRoomKey,s=new Ta("initGroupAttributes");return s.setMessage("groupID:".concat(n," avChatRoomKey:").concat(i," mainSequence:").concat(a)),this._groupModule.request({protocolName:bo,requestData:{groupID:n,avChatRoomKey:i,mainSequence:a,groupAttributeList:this._transformGroupAttributes(r)}}).then((function(e){var o=e.data,a=o.mainSequence,i=y(o.groupAttributeList);return i.forEach((function(e){e.value=r[e.key]})),t._refreshCachedGroupAttributes({groupID:n,remoteMainSequence:a,groupAttributeList:i,operationType:Oi}),s.setNetworkType(t._groupModule.getNetworkType()).end(),Fe.l("".concat(t._n,".").concat("initGroupAttributes"," ok. groupID:").concat(n)),Ya({groupAttributes:r})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];s.setError(e,r,o).end()})),Ja(e)}))}},{key:"setGroupAttributes",value:function(e){var t=this,n="".concat(this._n,".").concat("setGroupAttributes"),r=e.groupID,o=e.groupAttributes,a=this._getLocalGroupAttributes(r),i=a.remoteMainSequence,s=a.avChatRoomKey,c=a.attributes,l=this._transformGroupAttributes(o);l.forEach((function(e){var t=e.key;e.sequence=0,c.has(t)&&(e.sequence=c.get(t).sequence)}));var u=new Ta("setGroupAttributes");return u.setMessage("groupID:".concat(r," groupAttributes:").concat(JSON.stringify(o))),Fe.l("".concat(n,". groupID:").concat(r," mainSequence:").concat(i)),this._groupModule.request({protocolName:Oo,requestData:{groupID:r,avChatRoomKey:s,mainSequence:i,groupAttributeList:l}}).then((function(e){var a=e.data,i=a.mainSequence,s=y(a.groupAttributeList);return s.forEach((function(e){e.value=o[e.key]})),t._refreshCachedGroupAttributes({groupID:r,remoteMainSequence:i,groupAttributeList:s,operationType:Mi}),u.setNetworkType(t._groupModule.getNetworkType()).end(),Fe.l("".concat(n," ok.")),Ya({groupAttributes:o})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];u.setError(e,r,o).end()})),Ja(e)}))}},{key:"deleteGroupAttributes",value:function(e){var t=this,n=e.groupID,r=e.keyList,o=void 0===r?[]:r,a=this._getLocalGroupAttributes(n),i=a.remoteMainSequence,s=a.avChatRoomKey,c=a.attributes,l=y(c.keys()),u=ko,d=ki,p={groupID:n,avChatRoomKey:s,mainSequence:i},f=[];o.length>0&&(l=[],u=Mo,d=Ci,o.forEach((function(e){var t=0;c.has(e)&&(t=c.get(e).sequence,l.push(e)),f.push({key:e,sequence:t})})),p.groupAttributeList=f);var h=new Ta("deleteGroupAttributes");return h.setMessage("groupID:".concat(n," mainSequence:").concat(i," keyList:").concat(o," protocolName:").concat(u)),this._groupModule.request({protocolName:u,requestData:p}).then((function(e){var r=e.data.mainSequence;return t._refreshCachedGroupAttributes({groupID:n,remoteMainSequence:r,groupAttributeList:f,operationType:d}),h.setNetworkType(t._groupModule.getNetworkType()).end(),Fe.l("".concat(t._n,".").concat("deleteGroupAttributes"," ok. groupID:").concat(n)),Ya({keyList:l})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];h.setError(e,r,o).end()})),Ja(e)}))}},{key:"getGroupAttributes",value:function(e){var t=this,n="".concat(this._n,".").concat("getGroupAttributes"),r=e.groupID,o=this._getLocalGroupAttributes(r),a=o.avChatRoomKey,i=o.lastUpdateTime,s=o.localMainSequence,c=o.remoteMainSequence,l=new Ta("getGroupAttributes");if(l.setMessage("groupID:".concat(r," localMainSequence:").concat(s," remoteMainSequence:").concat(c," keyList:").concat(e.keyList)),Date.now()-i>=this.CACHE_EXPIRE_TIME||s<c)return this._getGroupAttributes({groupID:r,avChatRoomKey:a}).then((function(o){l.setMoreMessage("get attributes from remote. count:".concat(o.length)).setNetworkType(t._groupModule.getNetworkType()).end(),Fe.l("".concat(n," from remote. groupID:").concat(r));var a=t._getCachedAttributes(e);return Ya({groupAttributes:a})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];l.setError(e,r,o).end()})),Ja(e)}));l.setMoreMessage("get attributes from cache").setNetworkType(this._groupModule.getNetworkType()).end(),Fe.l("".concat(n," from cache. groupID:").concat(r));var u=this._getCachedAttributes(e);return $a({groupAttributes:u})}},{key:"_getGroupAttributes",value:function(e){var t=this,r=0;return it(e.avChatRoomKey)||(r=1),this._groupModule.request({protocolName:Co,requestData:n(n({},e),{},{groupType:r})}).then((function(n){var r=n.data,o=r.mainSequence,a=r.groupAttributeList,i=y(a);return it(o)||t._refreshCachedGroupAttributes({groupID:e.groupID,remoteMainSequence:o,groupAttributeList:i,operationType:wi}),Fe.l("".concat(t._n,"._getGroupAttributes ok. groupID:").concat(e.groupID)),a})).catch((function(e){return Ja(e)}))}},{key:"_refreshCachedGroupAttributes",value:function(e){var t=e.groupID,n=e.remoteMainSequence,r=e.groupAttributeList,o=e.operationType;if(this._hasLocalGroupAttributes(t)){var a=this._getLocalGroupAttributes(t),i=a.localMainSequence;if(o===wi||n-i==1)a.remoteMainSequence=n,a.localMainSequence=n,a.lastUpdateTime=Date.now(),this._updateCachedAttributes({groupAttributes:a,groupAttributeList:r,operationType:o});else{if(i===n)return;a.remoteMainSequence=n}this._groupAttributesMap.set(t,a);var s="operationType:".concat(o," localMainSequence:").concat(i," remoteMainSequence:").concat(n);Fe.l("".concat(this._n,"._refreshCachedGroupAttributes. ").concat(s))}}},{key:"_getCachedAttributes",value:function(e){var t=e.groupID,n=e.keyList,r=void 0===n?[]:n,o={};if(this._hasLocalGroupAttributes(t)){var a=this._getLocalGroupAttributes(t).attributes;if(r.length>0)r.forEach((function(e){a.has(e)&&(o[e]=a.get(e).value)}));else{var i,s=w(a.keys());try{for(s.s();!(i=s.n()).done;){var c=i.value;o[c]=a.get(c).value}}catch(u){s.e(u)}finally{s.f()}}}return o}},{key:"_updateCachedAttributes",value:function(e){var t=e.groupAttributes,n=e.groupAttributeList,r=e.operationType;r!==ki?r!==Ci?(r===Oi&&t.attributes.clear(),n.forEach((function(e){var n=e.key,r=e.value,o=e.sequence;t.attributes.set(n,{value:r,sequence:o})}))):n.forEach((function(e){t.attributes.delete(e.key)})):t.attributes.clear()}},{key:"_hasLocalGroupAttributes",value:function(e){return this._groupAttributesMap.has(e)}},{key:"_getLocalGroupAttributes",value:function(e){return this._hasLocalGroupAttributes(e)||this.initGroupAttributesCache({groupID:e}),this._groupAttributesMap.get(e)}},{key:"_transformGroupAttributes",value:function(e){var t=[];return Object.keys(e).forEach((function(n){t.push({key:n,value:e[n]})})),t}},{key:"_emitGroupAttributesUpdated",value:function(e){var t=this._getCachedAttributes({groupID:e}),n=this._computeAttrChangedInfo(t),r=n.updatedKeyList,o=n.deletedKeyList;this._groupModule.emitOuterEvent(I.GROUP_ATTRIBUTES_UPDATED,{groupID:e,groupAttributes:t,updatedKeyList:r,deletedKeyList:o})}},{key:"_computeAttrChangedInfo",value:function(e){var t=this,n=[],r=[];return Object.keys(e).forEach((function(r){e[r]!==t._groupAttributesCopy[r]&&n.push(r)})),Object.keys(this._groupAttributesCopy).forEach((function(t){it(e[t])&&r.push(t)})),this._groupAttributesCopy={},Fe.l("".concat(this._n,"._computeAttrChangedInfo update count:").concat(n.length,", delete count:").concat(r.length)),{updatedKeyList:n,deletedKeyList:r}}},{key:"deleteLocalGroupAttributes",value:function(e){this._hasLocalGroupAttributes(e)&&this._groupAttributesMap.delete(e)}},{key:"reset",value:function(){this._groupAttributesMap.clear(),this._groupAttributesCopy={},this.CACHE_EXPIRE_TIME=3e4}}]),e}(),Si="Set",Ti="Increase",Ei="Decrease",ji=function(){function e(t){o(this,e),this._groupModule=t,this._n="GroupCountersHandler",this._groupCountersMap=new Map,this.EXPIRE_TIME=3e4,this._groupModule.getInnerEmitterInstance().on(ei,this._onCloudConfigUpdated,this)}return i(e,[{key:"_onCloudConfigUpdated",value:function(){var e=this._groupModule.getCloudConfig("grp_counter_expire_time");it(e)||(this.EXPIRE_TIME=Number(e))}},{key:"isGroupCountersNotice",value:function(e){var t=e.to,n=e.elements.groupCounterInfo,r=!1;return Kt(n)||(this._onGroupCountersUpdated({groupID:t,groupCounterInfo:n}),r=!0),r}},{key:"_onGroupCountersUpdated",value:function(e){var t=this,n=e.groupID;e.groupCounterInfo.forEach((function(e){var r=e.type,o=e.groupCounterSeq,a=e.counterList,i=void 0===a?[]:a;0!==r&&2!==r||(t._updateLocalGroupCounters({groupID:n,groupCounterSeq:o,counterList:i}),i.forEach((function(e){t._groupModule.emitOuterEvent(I.GROUP_COUNTER_UPDATED,{groupID:n,key:e.key,value:e.value})}))),1===r&&t._deleteLocalGroupCounters({groupID:n,groupCounterSeq:o,counterList:i})})),Fe.l("".concat(this._n,"._onGroupCountersUpdated groupID:").concat(n))}},{key:"initGroupCountersCache",value:function(e){var t=e.groupID,n=e.avChatRoomKey;this._groupCountersMap.set(t,{lastUpdateTime:0,groupCounterSeq:0,counters:new Map,avChatRoomKey:n}),Fe.l("".concat(this._n,".initGroupCountersCache groupID:").concat(t," avChatRoomKey:").concat(n))}},{key:"setGroupCounters",value:function(e){var t=this;if(!this._groupModule.canIUse(z.GRP_COUNTER))return Ja({code:fa.CANNOT_USE_COMMERCIAL_ABILITY});var n="".concat(this._n,".setGroupCounters"),r=e.groupID,o=e.counters,a=this._convertObjectToList(o),i=this._getLocalGroupCounters(r).avChatRoomKey,s="groupID:".concat(r," count:").concat(a.length),c=new Ta("setGroupCounters");return c.setMessage("".concat(s)),Fe.l("".concat(n,". ").concat(s)),this._updateGroupCounters({groupID:r,counterList:a,avChatRoomKey:i,mode:Si}).then((function(e){return c.end(),Fe.l("".concat(n," ok.")),Ya({counters:e})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];c.setError(e,r,o).end()})),Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"increaseGroupCounter",value:function(e){var t=this;if(!this._groupModule.canIUse(z.GRP_COUNTER))return Ja({code:fa.CANNOT_USE_COMMERCIAL_ABILITY});var n="".concat(this._n,".increaseGroupCounters"),r=e.groupID,o=e.key,a=e.value,i=this._getLocalGroupCounters(r).avChatRoomKey,s="groupID:".concat(r," key:").concat(o," value:").concat(a),c=new Ta("increaseGroupCounter");c.setMessage("".concat(s)),Fe.l("".concat(n,". ").concat(s));var l=[{key:o,value:a}];return this._updateGroupCounters({groupID:r,counterList:l,avChatRoomKey:i,mode:Ti}).then((function(e){return c.end(),Fe.l("".concat(n," ok.")),Ya({counters:e})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];c.setError(e,r,o).end()})),Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"decreaseGroupCounter",value:function(e){var t=this;if(!this._groupModule.canIUse(z.GRP_COUNTER))return Ja({code:fa.CANNOT_USE_COMMERCIAL_ABILITY});var n="".concat(this._n,".decreaseGroupCounter"),r=e.groupID,o=e.key,a=e.value,i=this._getLocalGroupCounters(r).avChatRoomKey,s="groupID:".concat(r," key:").concat(o," value:").concat(a),c=new Ta("decreaseGroupCounter");c.setMessage("".concat(s)),Fe.l("".concat(n,". ").concat(s));var l=[{key:o,value:a}];return this._updateGroupCounters({groupID:r,counterList:l,avChatRoomKey:i,mode:Ei}).then((function(e){return c.end(),Fe.l("".concat(n," ok.")),Ya({counters:e})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];c.setError(e,r,o).end()})),Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"getGroupCounters",value:function(e){var t=this;if(!this._groupModule.canIUse(z.GRP_COUNTER))return Ja({code:fa.CANNOT_USE_COMMERCIAL_ABILITY});var n="".concat(this._n,".getGroupCounters"),r=e.groupID,o=e.keyList,a=void 0===o?[]:o,i=this._getLocalGroupCounters(r),s=i.avChatRoomKey,c=i.lastUpdateTime,l=new Ta("getGroupCounters");if(l.setMessage("groupID:".concat(r)),Date.now()-c>=this.EXPIRE_TIME)return this._getRemoteGroupCounters({groupID:r,avChatRoomKey:s}).then((function(e){l.setMoreMessage("from remote. count:".concat(e.length)).end(),Fe.l("".concat(n," from remote. groupID:").concat(r));var o=t._getLocalCounters(r,a);return Ya({counters:o})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];l.setError(e,r,o).end()})),Ja(e)}));l.setMoreMessage("from cache").end(),Fe.l("".concat(n," from cache. groupID:").concat(r));var u=this._getLocalCounters(r,a);return $a({counters:u})}},{key:"_getRemoteGroupCounters",value:function(e){var t=this;return this._groupModule.request({protocolName:Eo,requestData:n({},e)}).then((function(n){var r=n.data,o=r.counterList,a=void 0===o?[]:o,i=r.groupCounterSeq;return t._updateLocalGroupCounters({groupID:e.groupID,counterList:a,groupCounterSeq:i}),Fe.l("".concat(t._n,"._getRemoteGroupCounters ok. groupID:").concat(e.groupID)),a})).catch((function(e){return Ja(e)}))}},{key:"_convertObjectToList",value:function(e){var t=[];return Object.keys(e).forEach((function(n){t.push({key:n,value:e[n]})})),t}},{key:"_updateGroupCounters",value:function(e){var t="".concat(this._n,"._updateGroupCounters"),r=e.groupID,o=e.avChatRoomKey,a=e.mode;return Fe.l("".concat(t,". groupID:").concat(r," avChatRoomKey:").concat(o," mode:").concat(a)),this._groupModule.request({protocolName:To,requestData:n({},e)}).then((function(e){Fe.l("".concat(t," ok."));var n=e.data.counterList,r={};return(void 0===n?[]:n).forEach((function(e){var t=e.key,n=e.value;r[t]=n})),r})).catch((function(e){return Ja(e)}))}},{key:"_hasLocalGroupCounters",value:function(e){return this._groupCountersMap.has(e)}},{key:"_getLocalGroupCounters",value:function(e){return this._hasLocalGroupCounters(e)||this.initGroupCountersCache({groupID:e}),this._groupCountersMap.get(e)}},{key:"_updateLocalGroupCounters",value:function(e){var t=e.groupID,n=e.counterList,r=void 0===n?[]:n,o=e.groupCounterSeq;if(this._hasLocalGroupCounters(t)){var a=this._getLocalGroupCounters(t),i=a.counters,s=a.avChatRoomKey,c=a.groupCounterSeq;if(o>0&&o<c)return;r.forEach((function(e){var t=e.key,n=e.value;i.set(t,n)})),this._groupCountersMap.set(t,{lastUpdateTime:Date.now(),groupCounterSeq:o,counters:i,avChatRoomKey:s})}}},{key:"_deleteLocalGroupCounters",value:function(e){var t=e.groupID,n=e.counterList,r=void 0===n?[]:n,o=e.groupCounterSeq;if(this._hasLocalGroupCounters(t)){var a=this._getLocalGroupCounters(t),i=a.counters,s=a.avChatRoomKey;r.forEach((function(e){i.delete(e.key)})),this._groupCountersMap.set(t,{lastUpdateTime:Date.now(),groupCounterSeq:o,counters:i,avChatRoomKey:s})}}},{key:"_getLocalCounters",value:function(e,t){var n={};if(!this._hasLocalGroupCounters(e))return n;var r=this._getLocalGroupCounters(e).counters;if(t.length>0)t.forEach((function(e){r.has(e)&&(n[e]=r.get(e))}));else{var o,a=w(r.keys());try{for(a.s();!(o=a.n()).done;){var i=o.value;n[i]=r.get(i)}}catch(c){a.e(c)}finally{a.f()}}return n}},{key:"reset",value:function(){this._groupCountersMap.clear(),this.EXPIRE_TIME=3e4}}]),e}(),Di=function(){function e(t){o(this,e);var n=t.manager,r=t.groupID,a=t.onInit,i=t.onSuccess,s=t.onFail;this._n="Polling",this._manager=n,this._groupModule=n._groupModule,this._onInit=a,this._onSuccess=i,this._onFail=s,this._groupID=r,this._timeoutID=-1,this._isRunning=!1,this._protocolName=mo}return i(e,[{key:"start",value:function(){var e=this._groupModule.isLoggedIn();e||(this._protocolName=vo),Fe.l("".concat(this._n,".start pollingInterval:").concat(this._manager.getPollingInterval()," isLoggedIn:").concat(e)),this._isRunning=!0,this._request()}},{key:"isRunning",value:function(){return this._isRunning}},{key:"_request",value:function(){var e=this,t=this._onInit(this._groupID);this._groupModule.request({protocolName:this._protocolName,requestData:t}).then((function(t){e._onSuccess(e._groupID,t),e.isRunning()&&(clearTimeout(e._timeoutID),e._timeoutID=setTimeout(e._request.bind(e),e._manager.getPollingInterval()))})).catch((function(t){e._onFail(e._groupID,t),e.isRunning()&&(clearTimeout(e._timeoutID),e._timeoutID=setTimeout(e._request.bind(e),e._manager.MAX_POLLING_INTERVAL))}))}},{key:"stop",value:function(){Fe.l("".concat(this._n,".stop")),this._timeoutID>0&&(clearTimeout(this._timeoutID),this._timeoutID=-1),this._isRunning=!1}}]),e}(),Li={3:!0,4:!0,5:!0,6:!0,17:!0},Ai=function(){function e(t){o(this,e),this._groupModule=t,this._n="AVChatRoomHandler",this._joinedGroupMap=new Map,this._pollingRequestInfoMap=new Map,this._pollingInstanceMap=new Map,this.sequencesLinkedList=new di(200),this.messageIDLinkedList=new di(100),this.receivedMessageCount=0,this._reportMessageStackedCount=0,this._onlineMemberCountMap=new Map,this.DEFAULT_EXPIRE_TIME=60,this.DEFAULT_POLLING_INTERVAL=300,this.MAX_POLLING_INTERVAL=2e3,this._pollingInterval=this.DEFAULT_POLLING_INTERVAL,this.DEFAULT_POLLING_NO_MESSAGE_COUNT=20,this.DEFAULT_POLLING_INTERVAL_PLUS=2e3,this._pollingNoMessageCount=0,this._startBroadcastSeq=1,this._broadcastMessageIDMap=new Map,this.DEFAULT_POLLING_SIMPLIFIED_MSG=0}return i(e,[{key:"hasJoinedAVChatRoom",value:function(){return this._joinedGroupMap.size>0}},{key:"checkJoinedAVChatRoomByID",value:function(e){return this._joinedGroupMap.has(e)}},{key:"getJoinedAVChatRoom",value:function(){return this._joinedGroupMap.size>0?y(this._joinedGroupMap.keys()):null}},{key:"_updateRequestData",value:function(e){var t=this._pollingRequestInfoMap.get(e);return e===y(this._pollingInstanceMap.keys())[0]?n(n({},t),{},{startBroadcastSeq:this._startBroadcastSeq,simplifiedMessage:this.DEFAULT_POLLING_SIMPLIFIED_MSG}):n(n({},t),{},{simplifiedMessage:this.DEFAULT_POLLING_SIMPLIFIED_MSG})}},{key:"_handleSuccess",value:function(e,t){var n=t.data,r=n.key,o=n.nextSeq,a=n.rspMsgList,i=n.errorCode,s=n.nextBroadcastSeq,c=n.broadcastMessageList;if(0!==i){var l=this._pollingRequestInfoMap.get(e),u=new Ta("longPollingAVError"),d=l?"".concat(l.key,"-").concat(l.startSeq):"requestInfo is undefined";u.setMessage("".concat(e,"-").concat(d,"-").concat(t.errorInfo)).setCode(t.errorCode).setNetworkType(this._groupModule.getNetworkType()).end(!0)}else{if(!this.checkJoinedAVChatRoomByID(e))return;nt(r)&&et(o)&&this._pollingRequestInfoMap.set(e,{key:r,startSeq:o}),et(s)&&s>this._startBroadcastSeq&&(this._startBroadcastSeq=s),at(a)&&a.length>0?(a.forEach((function(e){e.to=e.groupID})),this.onMessage(a)):(this._pollingNoMessageCount+=1,this._pollingNoMessageCount===this.DEFAULT_POLLING_NO_MESSAGE_COUNT&&(this._pollingInterval=this.DEFAULT_POLLING_INTERVAL+this.DEFAULT_POLLING_INTERVAL_PLUS)),this._onBroadcastMessage(c)}}},{key:"_handleFailure",value:function(e,t){}},{key:"onMessage",value:function(e){if(at(e)&&0!==e.length){0!==this._pollingNoMessageCount&&(this._pollingNoMessageCount=0,this._pollingInterval=this.DEFAULT_POLLING_INTERVAL);var t=null,n=[],r=this._getModule(Vn),o=this._getModule(er),a=e.length;a>1&&e.sort((function(e,t){return e.sequence-t.sequence}));for(var i=this._getModule(Bn),s=0;s<a;s++){var c=this.restoreMessageFromSimplified(e[s]);if(Li[c.event]){if(6===c.event){if(this._groupModule.isGroupAttributesUpdatedNotice(c))continue;if(this._groupModule.isGroupCountersNotice(c))continue}this.receivedMessageCount+=1,t=this.packMessage(c,c.event);var l=1===c.isModified,u=1===c.isHistoryMessage;if((i.isUnlimitedAVChatRoom()||!this.sequencesLinkedList.has(t.sequence))&&!this.messageIDLinkedList.has(t.ID)){var d=t.conversationID;if(this.receivedMessageCount%50==0?this._getModule(Jn).detectFirstRound(d,this.sequencesLinkedList.data()):this.receivedMessageCount%80==0&&this._getModule(Jn).detectSecondRound(d,this.sequencesLinkedList.data()),null!==this.sequencesLinkedList.tail()){var p=this.sequencesLinkedList.tail().value,f=t.sequence-p;f>1&&f<=20?this._getModule(Jn).onMessageMaybeLost(d,p+1,f-1):f<-1&&f>=-20&&this._getModule(Jn).onMessageMaybeLost(d,t.sequence+1,Math.abs(f)-1)}this.sequencesLinkedList.set(t.sequence),this.messageIDLinkedList.set(t.ID);var h=!1;if(this._isMessageSentByCurrentInstance(t)?l&&(h=!0,t.isModified=l,r.updateMessageIsModifiedProperty(t)):h=!0,h){if(t.conversationType===S.CONV_SYSTEM&&5===t.payload.operationType&&this._onGroupDismissed(t.payload.groupProfile.groupID),!u&&t.conversationType!==S.CONV_SYSTEM){var m=t.conversationID.replace(S.CONV_GROUP,"");this._pollingInstanceMap.has(m)?this._groupModule.isLoggedIn()&&o.addMessageSequence({key:ka,message:t}):(t.type!==S.MSG_GRP_TIP&&t.clientTime>0&&o.addMessageDelay(t.clientTime),o.addMessageSequence({key:Ma,message:t}))}n.push(t)}}}else Fe.w("".concat(this._n,".onMessage unknown event:").concat(c.event))}if(0!==n.length){this._groupModule.filterModifiedMessage(n);var v=this.packConversationOption(n);v.length>0&&this._getModule(Vn).onNewMessage({conversationOptionsList:v,isInstantMessage:!0}),Fe.d("".concat(this._n,".onMessage count:").concat(n.length)),this._checkMessageStacked(n);var g=this._groupModule.filterUnmodifiedMessage(n);g.length>0&&this._groupModule.emitOuterEvent(I.MESSAGE_RECEIVED,g),n.length=0}}}},{key:"isBroadcastOrNormal",value:function(e){return 3===e||17===e}},{key:"isGroupTip",value:function(e){return 4===e||6===e}},{key:"isGroupSystemNotice",value:function(e){return 5===e}},{key:"restoreGroupTipElements",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.groupJoinType||(e.groupJoinType=1);var t=e.operatorInfo,n=void 0===t?{}:t,r=e.operatorID,o=e.userIDList,a=void 0===o?[]:o,i=n.userID,s=void 0===i?r:i,c=n.avatar,l=void 0===c?"":c,u=n.nick,d=void 0===u?"":u;e.operatorInfo={userID:s,avatar:l,nick:d};var p=a.map((function(e){return{userID:e}}));return e.memberInfoList=e.memberInfoList||p,e}},{key:"restoreMessageFromSimplified",value:function(e){var t=e.event;if(this.isBroadcastOrNormal(t)&&(e.cloudCustomData=e.cloudCustomData||"",e.elements=e.elements.map((function(e){if(e.type===S.MSG_CUSTOM){var t=e.content,r=void 0===t?{}:t;e.content=n({data:"",description:"",extension:""},r)}return e}))),(this.isGroupTip(t)||this.isGroupSystemNotice(t))&&(e.from=e.from||"@TIM#SYSTEM"),this.isGroupTip(t)){e.elements=this.restoreGroupTipElements(e.elements);var r=e.elements,o=void 0===r?{}:r,a=o.operationType,i=o.operatorInfo;if(1===a){var c=[{userID:(void 0===i?{}:i).userID}];o.memberInfoList=o.memberInfoList||c}}if(this.isGroupSystemNotice(t)){var l=e.elements,u=l.memberInfoList,d=l.operatorInfo;u||(u=void 0===d?{}:d),e.elements.memberInfoList=n({userID:e.elements.operatorID,avatar:"",nick:""},u),e.elements=n({authentication:"",remarkInfo:"",messageKey:1e3*e.time},e.elements);var p=Object.keys(e.elements).filter((function(e){return"operatorInfo"!==e})).reduce((function(t,r){return n(n({},t),{},s({},r,e.elements[r]))}),{});e.elements=p}return e}},{key:"_onGroupDismissed",value:function(e){Fe.l("".concat(this._n,"._onGroupDismissed groupID:").concat(e)),this._groupModule.deleteLocalGroupAndConversation(e),this.reset(e)}},{key:"_checkMessageStacked",value:function(e){var t="MessageStacked",n=e.length;n>=100&&(this._groupModule.outputWarning(t),this._reportMessageStackedCount<5&&(new Ta(t).setNetworkType(this._groupModule.getNetworkType()).setMessage("count:".concat(n," groupID:").concat(y(this._joinedGroupMap.keys()))).setLevel("warning").end(),this._reportMessageStackedCount+=1))}},{key:"_isMessageSentByCurrentInstance",value:function(e){return!!this._getModule(Vn).isMessageSentByCurrentInstance(e)}},{key:"packMessage",value:function(e,t){e.currentUser=this._groupModule.getMyUserID(),e.conversationType=5===t?S.CONV_SYSTEM:S.CONV_GROUP,e.isSystemMessage=!!e.isSystemMessage;var n=new Ha(e),r=this.packElements(e,t);return n.setElement(r,this._groupModule.getFileDownloadProxy()),n}},{key:"packElements",value:function(e,t){return 4===t||6===t?(this._updateMemberCountByGroupTips(e),{type:S.MSG_GRP_TIP,content:n(n({},e.elements),{},{groupProfile:e.groupProfile})}):5===t?{type:S.MSG_GRP_SYS_NOTICE,content:n(n({},e.elements),{},{groupProfile:n(n({},e.groupProfile),{},{groupID:e.groupID})})}:this._getModule(Hn).parseElements(e.elements,e.from)}},{key:"packConversationOption",value:function(e){for(var t=new Map,n=0;n<e.length;n++){var r=e[n],o=r.conversationID;if(t.has(o)){var a=t.get(o);a.lastMessage=r,"in"===r.flow&&a.unreadCount++}else t.set(o,{conversationID:r.conversationID,unreadCount:"out"===r.flow?0:1,type:r.conversationType,subType:r.conversationSubType,lastMessage:r})}return y(t.values())}},{key:"_updateMemberCountByGroupTips",value:function(e){var t=e.groupProfile.groupID,n=e.elements.onlineMemberInfo,r=void 0===n?void 0:n;if(!Kt(r)){var o=r.onlineMemberNum,a=void 0===o?0:o,i=r.expireTime,s=void 0===i?this.DEFAULT_EXPIRE_TIME:i,c=this._onlineMemberCountMap.get(t)||{},l=Date.now();Kt(c)?Object.assign(c,{lastReqTime:0,lastSyncTime:0,latestUpdateTime:l,memberCount:a,expireTime:s}):(c.latestUpdateTime=l,c.memberCount=a),Fe.d("".concat(this._n,"._updateMemberCountByGroupTips info:"),c),this._onlineMemberCountMap.set(t,c)}}},{key:"_onBroadcastMessage",value:function(e){if(!Kt(e)){for(var t=[],n=e.length,r=null,o=0;o<n;o++){var a=this.restoreMessageFromSimplified(e[o]);Li[a.event]?((r=this.packMessage(a,a.event)).isBroadcastMessage=!0,this._broadcastMessageIDMap.has(r.ID)||(t.push(r),this._broadcastMessageIDMap.set(r.ID,1))):Fe.w("".concat(this._n,"._onBroadcastMessage unknown event:").concat(a.event))}t.length>0&&this._groupModule.emitOuterEvent(I.MESSAGE_RECEIVED,t)}}},{key:"start",value:function(e){if(this._pollingInstanceMap.has(e)){var t=this._pollingInstanceMap.get(e);t.isRunning()||t.start()}else{var n=new Di({manager:this,groupID:e,onInit:this._updateRequestData.bind(this),onSuccess:this._handleSuccess.bind(this),onFail:this._handleFailure.bind(this)});n.start(),this._pollingInstanceMap.set(e,n),Fe.l("".concat(this._n,".start groupID:").concat(e))}}},{key:"handleJoinResult",value:function(e){var t=this;return this._preCheck().then((function(){var n=e.longPollingKey,r=e.group,o=r.groupID;return t._joinedGroupMap.set(o,r),t._groupModule.updateGroupMap([r]),t._groupModule.deleteUnjoinedAVChatRoom(o),t._groupModule.emitGroupListUpdate(!0,!1),it(n)?$a({status:We,group:r}):Promise.resolve()}))}},{key:"startRunLoop",value:function(e){var t=this;return this.handleJoinResult(e).then((function(){var n=e.longPollingKey,r=e.group,o=e.startSeq,a=void 0===o?0:o,i=r.groupID;return t._pollingRequestInfoMap.set(i,{key:n,startSeq:a}),t.start(i),t._groupModule.isLoggedIn()?$a({status:We,group:r}):$a({status:We})}))}},{key:"_preCheck",value:function(){if(this._getModule(Bn).isUnlimitedAVChatRoom())return Promise.resolve();if(!this.hasJoinedAVChatRoom())return Promise.resolve();var e=_(this._joinedGroupMap.entries().next().value,2),t=e[0],n=e[1];if(this._groupModule.isLoggedIn()){if(n.selfInfo.role!==S.GRP_MBR_ROLE_OWNER&&n.ownerID!==this._groupModule.getMyUserID())return this._groupModule.quitGroup(t);this._groupModule.deleteLocalGroupAndConversation(t)}else this._groupModule.deleteLocalGroupAndConversation(t);return this.reset(t),Promise.resolve()}},{key:"joinWithoutAuth",value:function(e){var t=this,n=e.groupID,r="".concat(this._n,".").concat("joinWithoutAuth"),o=new Ta("joinWithoutAuth");return this._groupModule.request({protocolName:Qr,requestData:e}).then((function(e){var a=e.data.longPollingKey;if(t._groupModule.probeNetwork().then((function(e){var t=_(e,2);t[0];var r=t[1];o.setNetworkType(r).setMessage("groupID:".concat(n," longPollingKey:").concat(a)).end(!0)})),it(a))return Ja({code:fa.CANNOT_JOIN_NON_AVCHATROOM_WITHOUT_LOGIN});Fe.l("".concat(r," ok. groupID:").concat(n)),t._getModule(Vn).setCompleted("".concat(S.CONV_GROUP).concat(n));var i=new fi({groupID:n});return t.startRunLoop({group:i,longPollingKey:a}),Ya({status:We})})).catch((function(e){return Fe.e("".concat(r," failed. groupID:").concat(n," error:"),e),t._groupModule.probeNetwork().then((function(t){var r=_(t,2),a=r[0],i=r[1];o.setError(e,a,i).setMessage("groupID:".concat(n)).end(!0)})),Ja(e)})).finally((function(){t._groupModule.getModule(Gn).reportAtOnce()}))}},{key:"getGroupOnlineMemberCount",value:function(e){var t=this._onlineMemberCountMap.get(e)||{},n=Date.now();return Kt(t)||n-t.lastSyncTime>1e3*t.expireTime&&n-t.latestUpdateTime>1e4&&n-t.lastReqTime>3e3?(t.lastReqTime=n,this._onlineMemberCountMap.set(e,t),this._getGroupOnlineMemberCount(e).then((function(e){return Ya({memberCount:e.memberCount})})).catch((function(e){return Ja(e)}))):$a({memberCount:t.memberCount})}},{key:"_getGroupOnlineMemberCount",value:function(e){var t=this,n="".concat(this._n,".").concat("_getGroupOnlineMemberCount");return this._groupModule.request({protocolName:go,requestData:{groupID:e}}).then((function(r){var o=t._onlineMemberCountMap.get(e)||{},a=r.data,i=a.onlineMemberNum,s=void 0===i?0:i,c=a.expireTime,l=void 0===c?t.DEFAULT_EXPIRE_TIME:c;Fe.l("".concat(n," ok. groupID:").concat(e," memberCount:").concat(s," expireTime:").concat(l));var u=Date.now();return Kt(o)&&(o.lastReqTime=u),t._onlineMemberCountMap.set(e,Object.assign(o,{lastSyncTime:u,latestUpdateTime:u,memberCount:s,expireTime:l})),{memberCount:s}})).catch((function(r){return Fe.w("".concat(n," failed. error:"),r),new Ta("_getGroupOnlineMemberCount").setCode(r.code).setMessage("groupID:".concat(e," error:").concat(JSON.stringify(r))).setNetworkType(t._groupModule.getNetworkType()).end(),Promise.reject(r)}))}},{key:"_getModule",value:function(e){return this._groupModule.getModule(e)}},{key:"setPollingInterval",value:function(e){it(e)||(et(e)?this._pollingInterval=this.DEFAULT_POLLING_INTERVAL=e:this._pollingInterval=this.DEFAULT_POLLING_INTERVAL=parseInt(e,10))}},{key:"setPollingIntervalPlus",value:function(e){it(e)||(et(e)?this.DEFAULT_POLLING_INTERVAL_PLUS=e:this.DEFAULT_POLLING_INTERVAL_PLUS=parseInt(e,10))}},{key:"setPollingNoMessageCount",value:function(e){it(e)||(et(e)?this.DEFAULT_POLLING_NO_MESSAGE_COUNT=e:this.DEFAULT_POLLING_NO_MESSAGE_COUNT=parseInt(e,10))}},{key:"setPollingSimplifiedMessage",value:function(e){it(e)||"0"!==e&&"1"!==e||(this.DEFAULT_POLLING_SIMPLIFIED_MSG=parseInt(e,10))}},{key:"getPollingInterval",value:function(){return this._pollingInterval}},{key:"onAVChatRoomMemberBanned",value:function(e){var t=e.payload.groupProfile.groupID;Fe.l("".concat(this._n,".onAVChatRoomMemberBanned groupID:").concat(t)),this._groupModule.deleteLocalGroupAndConversation(t),this.reset(t)}},{key:"restartPolling",value:function(){Fe.l("".concat(this._n,".restartPolling count:").concat(this._pollingInstanceMap.size));var e,t=w(this._pollingInstanceMap.values());try{for(t.s();!(e=t.n()).done;){var n=e.value;n.stop(),n.start()}}catch(o){t.e(o)}finally{t.f()}}},{key:"reset",value:function(e){if(e){Fe.l("".concat(this._n,".reset groupID:").concat(e));var t=this._pollingInstanceMap.get(e);t&&t.stop(),this._pollingInstanceMap.delete(e),this._joinedGroupMap.delete(e),this._pollingRequestInfoMap.delete(e),this._onlineMemberCountMap.delete(e)}else{Fe.l("".concat(this._n,".reset all"));var n,r=w(this._pollingInstanceMap.values());try{for(r.s();!(n=r.n()).done;)n.value.stop()}catch(a){r.e(a)}finally{r.f()}this._pollingInstanceMap.clear(),this._joinedGroupMap.clear(),this._pollingRequestInfoMap.clear(),this._onlineMemberCountMap.clear(),this._broadcastMessageIDMap.clear()}this.sequencesLinkedList.reset(),this.messageIDLinkedList.reset(),this.receivedMessageCount=0,this._reportMessageStackedCount=0,this._pollingInterval=this.DEFAULT_POLLING_INTERVAL=300,this.DEFAULT_POLLING_NO_MESSAGE_COUNT=20,this.DEFAULT_POLLING_INTERVAL_PLUS=2e3,this._pollingNoMessageCount=0}}]),e}(),Ni=1,xi=15,Ri=function(){function e(t){o(this,e),this._groupModule=t,this._n="GroupSystemNoticeHandler",this.pendencyMap=new Map}return i(e,[{key:"onNewGroupSystemNotice",value:function(e){var t=e.dataList,n=e.isSyncingEnded,r=e.isInstantMessage;Fe.d("".concat(this._n,".onReceiveSystemNotice count:").concat(t.length));var o=this.newSystemNoticeStoredAndSummary({notifiesList:t,isInstantMessage:r}),a=o.eventDataList,i=o.result;a.length>0&&(this._groupModule.getModule(Vn).onNewMessage({conversationOptionsList:a,isInstantMessage:r}),this._onReceivedGroupSystemNotice({result:i,isInstantMessage:r})),r?i.length>0&&this._groupModule.emitOuterEvent(I.MESSAGE_RECEIVED,i):!0===n&&this._clearGroupSystemNotice()}},{key:"newSystemNoticeStoredAndSummary",value:function(e){var t=e.notifiesList,r=e.isInstantMessage,o=null,a=t.length,i=0,s=[],c={conversationID:S.CONV_SYSTEM,unreadCount:0,type:S.CONV_SYSTEM,subType:null,lastMessage:null};for(i=0;i<a;i++){var l=t[i],u=l.groupProfile,d=u.communityType,p=void 0===d?0:d,f=u.topicID,h=void 0===f?void 0:f,m=l.elements,v=m.topicIDList,g=void 0===v?void 0:v,_=m.operationType;if(!(2!==p||Kt(h)&&Kt(g))){if([17,18,20].includes(_)){this._handleTopicSystemNotice(l);continue}Kt(h)||(l.to=h)}l.elements.operationType!==xi&&(l.currentUser=this._groupModule.getMyUserID(),l.conversationType=S.CONV_SYSTEM,l.conversationID=S.CONV_SYSTEM,(o=new Ha(l)).setElement({type:S.MSG_GRP_SYS_NOTICE,content:n(n({},l.elements),{},{groupProfile:n({},l.groupProfile)})}),o.isSystemMessage=!0,(1===o.sequence&&1===o.random||2===o.sequence&&2===o.random)&&(o.sequence=mt(),o.random=mt(),o.generateMessageID(),Fe.l("".concat(this._n,".newSystemNoticeStoredAndSummary sequence and random maybe duplicated, regenerate. ID:").concat(o.ID))),this._groupModule.getModule(Vn).pushIntoNoticeResult(s,o)&&(r?c.unreadCount++:o.setIsRead(!0),c.subType=o.conversationSubType))}return c.lastMessage=s[s.length-1],{eventDataList:s.length>0?[c]:[],result:s}}},{key:"_clearGroupSystemNotice",value:function(){var e=this;this._getPendencyList().then((function(t){t.forEach((function(t){e.pendencyMap.set("".concat(t.from,"_").concat(t.groupID,"_").concat(t.to),t)}));var n=e._groupModule.getModule(Vn).getLocalMessageList(S.CONV_SYSTEM),r=[];n.forEach((function(t){var n=t.payload,o=n.operatorID,a=n.operationType,i=n.groupProfile;if(a===Ni){var s="".concat(o,"_").concat(i.groupID,"_").concat(i.to),c=e.pendencyMap.get(s);c&&et(c.handled)&&0!==c.handled&&r.push(t)}})),e.deleteGroupSystemNotice({messageList:r})}))}},{key:"deleteGroupSystemNotice",value:function(e){var t=this,n="".concat(this._n,".deleteGroupSystemNotice");return at(e.messageList)&&0!==e.messageList.length?(Fe.l("".concat(n," ")+e.messageList.map((function(e){return e.ID}))),this._groupModule.request({protocolName:ho,requestData:{messageListToDelete:e.messageList.map((function(e){return{from:S.CONV_SYSTEM,messageSeq:e.clientSequence,messageRandom:e.random}}))}}).then((function(){Fe.l("".concat(n," ok"));var r=t._groupModule.getModule(Vn);return e.messageList.forEach((function(e){r.deleteLocalMessage(e)})),Ya()})).catch((function(e){return Fe.e("".concat(n," error:"),e),Ja(e)}))):$a()}},{key:"_getPendencyList",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.type,r=void 0===n?void 0:n,o=t.startTime,a=void 0===o?0:o,i=t.limit,s=void 0===i?20:i;return this._groupModule.request({protocolName:fo,requestData:{type:r,startTime:a,limit:s,handleAccount:this._groupModule.getMyUserID()}}).then((function(t){var n=t.data.pendencyList;return 0!==t.data.nextStartTime?e._getPendencyList({startTime:t.data.nextStartTime}).then((function(e){return[].concat(y(n),y(e))})):n}))}},{key:"getGroupApplicationList",value:function(){var e=this;return this._getPendencyList().then((function(t){return e._getPendencyList({type:S.GRP_COMMUNITY}).then((function(n){return t.push.apply(t,y(n)),e._handlePendencyResult(t)})).catch((function(n){return e._handlePendencyResult(t)}))}))}},{key:"_handlePendencyResult",value:function(e){var t=this,n=[];return e.forEach((function(e){t.pendencyMap.set("".concat(e.from,"_").concat(e.groupID,"_").concat(e.to),e),0===e.handled&&n.push({applicant:e.from,applicantNick:e.fromUserNickName,groupName:e.groupName,groupID:e.groupID,authentication:e.authentication,messageKey:e.time,applicationType:e.applicationType,userID:e.userID})})),$a({applicationList:n})}},{key:"_onReceivedGroupSystemNotice",value:function(e){var t=this,n=e.result;e.isInstantMessage&&n.forEach((function(e){switch(e.payload.operationType){case 1:break;case 2:t._onApplyGroupRequestAgreed(e);break;case 3:break;case 4:t._onMemberKicked(e);break;case 5:t._onGroupDismissed(e);break;case 6:break;case 7:t._onInviteGroup(e);break;case 8:t._onQuitGroup(e);break;case 9:t._onSetManager(e);break;case 10:t._onDeleteManager(e);break;case 11:case 12:case 15:break;case 20:t._onMessageRemindTypeSynced(e);break;case 21:t._groupModule.onAVChatRoomMemberBanned(e)}}))}},{key:"_onApplyGroupRequestAgreed",value:function(e){var t=this,n=e.payload.groupProfile.groupID;this._groupModule.hasLocalGroup(n)||this._groupModule.getGroupProfile({groupID:n}).then((function(e){var n=e.data.group;if(n){t._groupModule.updateGroupMap([n]);var r=!n.isSupportTopic;t._groupModule.emitGroupListUpdate(!0,r)}}))}},{key:"_onMemberKicked",value:function(e){var t=e.payload.groupProfile.groupID;this._groupModule.hasLocalGroup(t)&&this._groupModule.deleteLocalGroupAndConversation(t)}},{key:"_onGroupDismissed",value:function(e){var t=e.payload.groupProfile.groupID;this._groupModule.hasLocalGroup(t)&&this._groupModule.deleteLocalGroupAndConversation(t);var n=this._groupModule._AVChatRoomHandler;n&&n.checkJoinedAVChatRoomByID(t)&&n.reset(t)}},{key:"_onInviteGroup",value:function(e){var t=this,n=e.payload.groupProfile.groupID;this._groupModule.hasLocalGroup(n)||this._groupModule.getGroupProfile({groupID:n}).then((function(e){var n=e.data.group;n&&(t._groupModule.updateGroupMap([n]),t._groupModule.emitGroupListUpdate())}))}},{key:"_onQuitGroup",value:function(e){var t=e.payload.groupProfile.groupID;this._groupModule.hasLocalGroup(t)&&this._groupModule.deleteLocalGroupAndConversation(t)}},{key:"_onSetManager",value:function(e){var t=e.payload.groupProfile,n=t.to,r=t.groupID,o=this._groupModule.getModule(Pn).getLocalGroupMemberInfo(r,n);o&&o.updateRole(S.GRP_MBR_ROLE_ADMIN)}},{key:"_onDeleteManager",value:function(e){var t=e.payload.groupProfile,n=t.to,r=t.groupID,o=this._groupModule.getModule(Pn).getLocalGroupMemberInfo(r,n);o&&o.updateRole(S.GRP_MBR_ROLE_MEMBER)}},{key:"_onMessageRemindTypeSynced",value:function(e){var t=e.payload.groupProfile.groupID,n=e.payload.messageRemindType;this._groupModule.getModule(Vn).onGroupMessageRemindTypeSynced({groupID:t,messageRemindType:n})}},{key:"_handleTopicSystemNotice",value:function(e){var t=e.groupProfile,n=t.groupID,r=t.topicID,o=e.elements,a=o.operationType,i=o.topicIDList,s=o.messageRemindType,c=this._groupModule.getModule(Un);17===a?c.onTopicCreated({groupID:n,topicID:r}):18===a?c.onTopicDeleted({groupID:n,topicIDList:i}):20===a&&c.onTopicMessageRemindTypeUpdated({groupID:n,topicID:r,messageRemindType:s})}},{key:"reset",value:function(){this.pendencyMap.clear()}}]),e}(),Pi=["relayFlag"],Ui=function(e){c(r,e);var t=g(r);function r(e){var n;return o(this,r),(n=t.call(this,e))._n="GroupModule",n._commonGroupHandler=null,n._AVChatRoomHandler=null,n._groupSystemNoticeHandler=null,n._commonGroupHandler=new bi(m(n)),n._groupAttributesHandler=new Ii(m(n)),n._groupCountersHandler=new ji(m(n)),n._AVChatRoomHandler=new Ai(m(n)),n._groupTipsHandler=new yi(m(n)),n._groupSystemNoticeHandler=new Ri(m(n)),n.groupMap=new Map,n._unjoinedAVChatRoomList=new Map,n._receiptDetailCompleteMap=new Map,n.getInnerEmitterInstance().on(ei,n._onCloudConfigUpdated,m(n)),n}return i(r,[{key:"_onCloudConfigUpdated",value:function(){var e=this.getCloudConfig("polling_interval"),t=this.getCloudConfig("polling_interval_plus"),n=this.getCloudConfig("polling_no_msg_count"),r=this.getCloudConfig("polling_simplified_msg");this._AVChatRoomHandler&&(Fe.l("".concat(this._n,"._onCloudConfigUpdated pollingInterval:").concat(e)+" pollingIntervalPlus:".concat(t," pollingNoMessageCount:").concat(n)+" pollingSimplifiedMessage:".concat(r)),this._AVChatRoomHandler.setPollingInterval(e),this._AVChatRoomHandler.setPollingIntervalPlus(t),this._AVChatRoomHandler.setPollingNoMessageCount(n),this._AVChatRoomHandler.setPollingSimplifiedMessage(r))}},{key:"onCheckTimer",value:function(e){this.isLoggedIn()&&(this._commonGroupHandler.onCheckTimer(e),this._groupTipsHandler.onCheckTimer(e))}},{key:"guardForAVChatRoom",value:function(e){var t=this;if(e.conversationType===S.CONV_GROUP){var n=wt(e.to)?Bt(e.to):e.to;return this.hasLocalGroup(n)?$a():this.getGroupProfile({groupID:n}).then((function(r){var o=r.data.group.type;if(Fe.l("".concat(t._n,".guardForAVChatRoom. groupID:").concat(n," type:").concat(o)),o===S.GRP_AVCHATROOM){var a=fa.MESSAGE_SEND_FAIL_NOT_IN_AVCHATROOM;return Ja(new qa({code:a,message:t.getErrorMessage(a,e.from,n),data:{message:e}}))}return $a()}))}return $a()}},{key:"checkJoinedAVChatRoomByID",value:function(e){return!!this._AVChatRoomHandler&&this._AVChatRoomHandler.checkJoinedAVChatRoomByID(e)}},{key:"onNewGroupMessage",value:function(e){this._commonGroupHandler&&this._commonGroupHandler.onNewGroupMessage(e)}},{key:"updateNextMessageSeq",value:function(e){var t=this;if(at(e)){var n=this.getModule(Un);e.forEach((function(e){var r=e.conversationID.replace(S.CONV_GROUP,"");wt(r)&&n.updateLastMessage(r,e.lastMessage),t.groupMap.has(r)&&(t.groupMap.get(r).nextMessageSeq=e.lastMessage.sequence+1)}))}}},{key:"onNewGroupTips",value:function(e){this._groupTipsHandler&&this._groupTipsHandler.onNewGroupTips(e)}},{key:"onGroupMessageRevoked",value:function(e){this._commonGroupHandler&&this._commonGroupHandler.onGroupMessageRevoked(e)}},{key:"onNewGroupSystemNotice",value:function(e){this._groupSystemNoticeHandler&&this._groupSystemNoticeHandler.onNewGroupSystemNotice(e)}},{key:"onGroupMessageReadNotice",value:function(e){var t=this;e.dataList.forEach((function(e){var n=e.elements.groupMessageReadNotice;if(!it(n)){var r=t.getModule(Vn);n.forEach((function(e){var n=e.groupID,o=e.topicID,a=void 0===o?void 0:o,i=e.lastMessageSeq;Fe.d("".concat(t._n,".onGroupMessageReadNotice groupID:").concat(n," lastMessageSeq:").concat(i));var s="".concat(S.CONV_GROUP).concat(n),c=!0;Kt(a)||(s="".concat(S.CONV_GROUP).concat(a),c=!1),r.updateIsReadAfterReadReport({conversationID:s,lastMessageSeq:i}),r.updateUnreadCount(s,c),r.clearGroupAtInfoList(s,c)}))}}))}},{key:"onReadReceiptList",value:function(e){var t=this;Fe.d("".concat(this._n,".onReadReceiptList options:"),JSON.stringify(e)),e.dataList.forEach((function(e){var n=e.groupProfile,r=e.elements,o=n.groupID,a=t.getModule(Vn),i=r.readReceiptList;a.updateReadReceiptInfo({groupID:o,readReceiptList:i})}))}},{key:"onGroupMessageModified",value:function(e){Fe.d("".concat(this._n,".onGroupMessageModified options:"),JSON.stringify(e));var t=this.getModule(Vn);e.dataList.forEach((function(e){t.onMessageModified(n(n({},e),{},{conversationType:S.CONV_GROUP,to:e.topicID?e.topicID:e.groupID}))}))}},{key:"deleteGroupSystemNotice",value:function(e){this._groupSystemNoticeHandler&&this._groupSystemNoticeHandler.deleteGroupSystemNotice(e)}},{key:"initGroupMap",value:function(e){this.groupMap.set(e.groupID,new fi(e))}},{key:"deleteGroup",value:function(e){this.groupMap.delete(e)}},{key:"updateGroupMap",value:function(e){var t,n=this,r=this.getModule(Vn);e.forEach((function(e){t=e.groupID,n.groupMap.has(t)?n.groupMap.get(t).updateGroup(e):(n.groupMap.set(t,new fi(e)),r.deleteGroupRomaingMessageInfo(t))}));var o,a=this.getMyUserID(),i=w(this.groupMap);try{for(i.s();!(o=i.n()).done;){var s=_(o.value,2)[1];s.selfInfo.userID=a,"Owner"===s.selfInfo.role&&(s.ownerID=a)}}catch(l){i.e(l)}finally{i.f()}this._setStorageGroupList()}},{key:"getStorageGroupList",value:function(){return this.getModule(Fn).getItem("groupMap")}},{key:"_setStorageGroupList",value:function(){var e=this.getLocalGroupList().filter((function(e){var t=e.type;return!kt(t)})).filter((function(e){return!e.isSupportTopic})).slice(0,20).map((function(e){return{groupID:e.groupID,name:e.name,avatar:e.avatar,type:e.type}}));this.getModule(Fn).setItem("groupMap",e)}},{key:"getGroupMap",value:function(){return this.groupMap}},{key:"getLocalGroupList",value:function(){return y(this.groupMap.values())}},{key:"getLocalGroupProfile",value:function(e){return this.groupMap.get(e)}},{key:"sortLocalGroupList",value:function(){var e=y(this.groupMap).filter((function(e){var t=_(e,2);return t[0],!Kt(t[1].lastMessage)}));e.sort((function(e,t){return t[1].lastMessage.lastTime-e[1].lastMessage.lastTime})),this.groupMap=new Map(y(e))}},{key:"updateGroupLastMessage",value:function(e){this._commonGroupHandler&&this._commonGroupHandler.handleUpdateGroupLastMessage(e)}},{key:"emitGroupListUpdate",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.getLocalGroupList();if(e&&this.emitOuterEvent(I.GROUP_LIST_UPDATED),t){var r=JSON.parse(JSON.stringify(n)),o=this.getModule(Vn);o.updateConversationGroupProfile(r)}}},{key:"patchGroupMessageRemindType",value:function(){var e=this.getLocalGroupList(),t=this.getModule(Vn),n=0;e.forEach((function(e){!0===t.patchMessageRemindType({ID:e.groupID,isC2CConversation:!1,messageRemindType:e.selfInfo.messageRemindType})&&(n+=1)})),Fe.l("".concat(this._n,".patchGroupMessageRemindType count:").concat(n))}},{key:"recomputeUnreadCount",value:function(){var e=this.getLocalGroupList(),t=this.getModule(Vn);e.forEach((function(e){var n=e.groupID,r=e.selfInfo,o=r.excludedUnreadSequenceList,a=r.readedSequence;if(at(o)){var i=0;o.forEach((function(t){t>=a&&t<=e.nextMessageSeq-1&&(i+=1)})),i>=1&&t.recomputeGroupUnreadCount({conversationID:"".concat(S.CONV_GROUP).concat(n),count:i})}}))}},{key:"getMyNameCardByGroupID",value:function(e){var t=this.getLocalGroupProfile(e);return t?t.selfInfo.nameCard:""}},{key:"isPagingGetCompleted",value:function(){return!!this._commonGroupHandler&&this._commonGroupHandler.isPagingGetCompleted()}},{key:"getGroupList",value:function(e){return this._commonGroupHandler?this._commonGroupHandler.getGroupList(e):$a()}},{key:"getGroupProfile",value:function(e){var t=this,n="".concat(this._n,".").concat("getGroupProfile"),r=new Ta("getGroupProfile"),o=e.groupID,a=e.groupCustomFieldFilter;Fe.l("".concat(n," groupID:").concat(o));var i={groupIDList:[o],responseFilter:{groupBaseInfoFilter:["Type","Name","Introduction","Notification","FaceUrl","Owner_Account","CreateTime","InfoSeq","LastInfoTime","LastMsgTime","MemberNum","MaxMemberNum","ApplyJoinOption","NextMsgSeq","ShutUpAllMember","InviteJoinOption"],groupCustomFieldFilter:a,memberInfoFilter:["Role","JoinTime","MsgSeq","MsgFlag","NameCard"]}};return this.getGroupProfileAdvance(i).then((function(e){var a,i=e.data,s=i.successGroupList,c=i.failureGroupList;return Fe.l("".concat(n," ok")),c.length>0?Ja(c[0]):(kt(s[0].type)&&!t.hasLocalGroup(o)?a=new fi(s[0]):(t.updateGroupMap(s),a=t.getLocalGroupProfile(o)),a.isSupportTopic||t.getModule(Vn).updateConversationGroupProfile([a]),r.setNetworkType(t.getNetworkType()).setMessage("groupID:".concat(o," type:").concat(a.type," muteAllMembers:").concat(a.muteAllMembers," ownerID:").concat(a.ownerID)).end(),Ya({group:a}))})).catch((function(o){return t.probeNetwork().then((function(t){var n=_(t,2),a=n[0],i=n[1];r.setError(o,a,i).setMessage("groupID:".concat(e.groupID)).end()})),Fe.e("".concat(n," failed. error:"),o),Ja(o)}))}},{key:"getGroupProfileAdvance",value:function(e){var t="".concat(this._n,".getGroupProfileAdvance"),r=e.groupIDList;at(r)&&r.length>50&&(this.outputWarning("GetGroupProfileLimit"),r.length=50);var o=[],a=[];r.forEach((function(e){Ct({groupID:e})?a.push(e):o.push(e)}));var i=[];if(o.length>0){var s=this._getGroupProfileAdvance(n(n({},e),{},{groupIDList:o}));i.push(s)}if(a.length>0){var c=this._getGroupProfileAdvance(n(n({},e),{},{groupIDList:a,relayFlag:o.length>0}));i.push(c)}return Promise.all(i).then((function(e){var t=[],n=[];return e.forEach((function(e){t.push.apply(t,y(e.successGroupList)),n.push.apply(n,y(e.failureGroupList))})),Ya({successGroupList:t,failureGroupList:n})})).catch((function(e){return Fe.e("".concat(t," failed. error:"),e),Ja(e)}))}},{key:"_getGroupProfileAdvance",value:function(e){var t=this,n=e.relayFlag,r=void 0!==n&&n,o=h(e,Pi);return this.request({protocolName:qr,requestData:o}).then((function(e){Fe.l("".concat(t._n,"._getGroupProfileAdvance ok."));var n=e.data.groups;return{successGroupList:n.filter((function(e){return it(e.errorCode)||0===e.errorCode})),failureGroupList:n.filter((function(e){return e.errorCode&&0!==e.errorCode})).map((function(e){return new qa({code:e.errorCode,message:e.errorInfo,data:{groupID:e.groupID}})}))}})).catch((function(t){return r&&Ct({groupID:e.groupIDList[0]})?{successGroupList:[],failureGroupList:[]}:Ja(t)}))}},{key:"createGroup",value:function(e){var t=this,r="".concat(this._n,".").concat("createGroup"),o=e.type,a=e.groupID;if(e.name&&!1===this._filterProfanity("name",e))return Ja({code:fa.PROFANITY_FOUND});if(e.introduction&&!1===this._filterProfanity("introduction",e))return Ja({code:fa.PROFANITY_FOUND});if(e.notification&&!1===this._filterProfanity("notification",e))return Ja({code:fa.PROFANITY_FOUND});if(!["Public","Private","ChatRoom","AVChatRoom","Community"].includes(o))return Ja({code:fa.ILLEGAL_GROUP_TYPE});if(!Ct({type:o})){if(!Kt(a)&&Ct({groupID:a}))return Ja({code:fa.ILLEGAL_GROUP_ID});e.isSupportTopic=void 0}if(kt(o)&&!it(e.memberList)&&e.memberList.length>0&&(e.memberList=void 0),this._canIUseJoinOption(o)||it(e.joinOption)||(e.joinOption=void 0),Ct({type:o})){if(!Kt(a)&&!Ct({groupID:a}))return Ja({code:fa.ILLEGAL_GROUP_ID});e.isSupportTopic=!0===e.isSupportTopic?1:0}var i=new Ta("createGroup");Fe.l("".concat(r," options:"),e);var s=null,c=[];return this.request({protocolName:Wr,requestData:n(n({},e),{},{ownerID:this.getMyUserID(),webPushFlag:1})}).then((function(o){var a=o.data,l=a.groupID,u=a.overLimitUserIDList,d=void 0===u?[]:u;if(s=l,c=d,i.setNetworkType(t.getNetworkType()).setMessage("groupType:".concat(e.type," groupID:").concat(l," overLimitUserIDList=").concat(d)).end(),Fe.l("".concat(r," ok groupID:").concat(l," overLimitUserIDList:"),d),e.type===S.GRP_AVCHATROOM)return t.getGroupProfile({groupID:l});if(e.type===S.GRP_COMMUNITY&&1===e.isSupportTopic)return t.getGroupProfile({groupID:l});Kt(e.memberList)||Kt(d)||(e.memberList=e.memberList.filter((function(e){return-1===d.indexOf(e.userID)}))),t.updateGroupMap([n(n({},e),{},{groupID:l})]);var p=t.getModule(Dn),f=p.createCustomMessage({to:l,conversationType:S.CONV_GROUP,payload:{data:"group_create",extension:t.isIntl()?"".concat(t.getMyUserID()," created a group"):"".concat(t.getMyUserID(),"创建群组")}});return p.sendMessageInstance(f),t.emitGroupListUpdate(),t.getGroupProfile({groupID:l})})).then((function(e){var t=e.data.group,n=t.selfInfo,r=n.nameCard,o=n.joinTime;return t.updateSelfInfo({nameCard:r,joinTime:o,messageRemindType:S.MSG_REMIND_ACPT_AND_NOTE,role:S.GRP_MBR_ROLE_OWNER}),Ya({group:t,overLimitUserIDList:c})})).catch((function(o){if(i.setMessage("groupType:".concat(e.type)),t.probeNetwork().then((function(e){var t=_(e,2),n=t[0],r=t[1];i.setError(o,n,r).end()})),10010===o.code||10007===o.code){t.updateGroupMap([n(n({},e),{},{groupID:s})]);var a=t.getLocalGroupProfile(s);return Fe.l("".concat(r," success, but failed to get group profile.")),Ya({group:a,overLimitUserIDList:c})}return Fe.e("".concat(r," failed. error:"),o),Ja(o)}))}},{key:"dismissGroup",value:function(e){var t=this,n="".concat(this._n,".").concat("dismissGroup");if(this.hasLocalGroup(e)&&this.getLocalGroupProfile(e).type===S.GRP_WORK)return Ja(new qa({code:fa.CANNOT_DISMISS_WORK}));var r=new Ta("dismissGroup");return r.setMessage("groupID:".concat(e)),Fe.l("".concat(n," groupID:").concat(e)),this.request({protocolName:Kr,requestData:{groupID:e}}).then((function(){return r.setNetworkType(t.getNetworkType()).end(),Fe.l("".concat(n," ok")),t.deleteLocalGroupAndConversation(e),t.checkJoinedAVChatRoomByID(e)&&t._AVChatRoomHandler.reset(e),t._groupAttributesHandler.deleteLocalGroupAttributes(e),Ya({groupID:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),o=n[0],a=n[1];r.setError(e,o,a).end()})),Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"updateGroupProfile",value:function(e){var t=this,n="".concat(this._n,".").concat("updateGroupProfile");if(this.hasLocalGroup(e.groupID)){var r=this.getLocalGroupProfile(e.groupID).type;this._canIUseJoinOption(r)||it(e.joinOption)||(Fe.w("".concat(n," joinOption is unavailable for Work/Meeting/AVChatRoom")),e.joinOption=void 0)}if(it(e.muteAllMembers)||(e.muteAllMembers?e.muteAllMembers="On":e.muteAllMembers="Off"),e.name&&!1===this._filterProfanity("name",e))return Ja({code:fa.PROFANITY_FOUND});if(e.introduction&&!1===this._filterProfanity("introduction",e))return Ja({code:fa.PROFANITY_FOUND});if(e.notification&&!1===this._filterProfanity("notification",e))return Ja({code:fa.PROFANITY_FOUND});var o=new Ta("updateGroupProfile");return o.setMessage(JSON.stringify(e)),Fe.l("".concat(n," groupID:").concat(e.groupID)),this.request({protocolName:$r,requestData:e}).then((function(){return o.setNetworkType(t.getNetworkType()).end(),Fe.l("".concat(n," ok")),t.hasLocalGroup(e.groupID)&&(t.groupMap.get(e.groupID).updateGroup(e),t._setStorageGroupList()),Ya({group:t.groupMap.get(e.groupID)})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],a=n[1];o.setError(e,r,a).end()})),Fe.l("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"_filterProfanity",value:function(e,t){var n=this.getModule(rr);if(!n)return!0;var r=n.filterText(t[e],$),o=r.isAllowedToSend,a=r.modifiedText;return!0===o&&(t[e]=a,!0)}},{key:"joinGroup",value:function(e){var t=this,n=e.groupID,r=e.type,o="".concat(this._n,".joinGroup");if(r===S.GRP_WORK)return Ja({code:fa.CANNOT_JOIN_WORK});if(this.deleteUnjoinedAVChatRoom(n),this.hasLocalGroup(n)){if(!this.isLoggedIn())return $a({status:S.JOIN_STATUS_ALREADY_IN_GROUP});var a=new Ta("applyJoinGroup");return this.getGroupProfile({groupID:n}).then((function(){return a.setNetworkType(t.getNetworkType()).setMessage("groupID:".concat(n," joinedStatus:").concat(S.JOIN_STATUS_ALREADY_IN_GROUP)).end(),$a({status:S.JOIN_STATUS_ALREADY_IN_GROUP})})).catch((function(r){return a.setNetworkType(t.getNetworkType()).setMessage("groupID:".concat(n," unjoined")).end(),Fe.w("".concat(o," ").concat(n," was unjoined, now join!")),t.groupMap.delete(n),t.applyJoinGroup(e)}))}return Fe.l("".concat(o," groupID:").concat(n)),this.isLoggedIn()?this.applyJoinGroup(e):this._AVChatRoomHandler.joinWithoutAuth(e)}},{key:"applyJoinGroup",value:function(e){var t=this,r="".concat(this._n,".").concat("applyJoinGroup"),o=e.groupID;if(!Kt(e.applyMessage)&&!1===this._filterProfanity("applyMessage",e))return Ja({code:fa.PROFANITY_FOUND});var a=new Ta("applyJoinGroup"),i=n({},e),s=this.canIUse(z.AVCHATROOM_HISTORY_MSG);return s&&(i.historyMessageFlag=1),this.getModule(Vn).deleteTopicRoamingMessageInfo(o),this.request({protocolName:Jr,requestData:i}).then((function(e){var n=e.data,i=n.joinedStatus,c=n.longPollingKey,l=n.startSeq,u=n.avChatRoomFlag,d=n.avChatRoomKey,p=n.messageList,f="groupID:".concat(o," joinedStatus:").concat(i," longPollingKey:").concat(c," startSeq:").concat(l)+" avChatRoomFlag:".concat(u," canGetAVChatRoomHistoryMessage:").concat(s,",")+" history message count:".concat(Kt(p)?0:p.length);switch(a.setNetworkType(t.getNetworkType()).setMessage("".concat(f)).end(),Fe.l("".concat(r," ok. ").concat(f)),i){case Ke:return Ya({status:Ke});case We:return t.getGroupProfile({groupID:o}).then((function(e){var n=e.data.group;return t._handleJoinResult({group:n,avChatRoomFlag:u,longPollingKey:c,startSeq:l,avChatRoomKey:d,messageList:p})})).catch((function(){var e=new fi({groupID:o});return t._handleJoinResult({group:e,avChatRoomFlag:u,longPollingKey:c,startSeq:l,avChatRoomKey:d,messageList:p})}));default:var h=new qa({code:fa.JOIN_GROUP_FAIL});return Fe.e("".concat(r," failed. error:"),h),Ja(h)}})).catch((function(e){return a.setMessage("groupID:".concat(o)),t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];a.setError(e,r,o).end()})),Fe.e("".concat(r," failed. error:"),e),Ja(e)}))}},{key:"_handleJoinResult",value:function(e){var t,n=this,r=e.group,o=e.avChatRoomFlag,a=e.longPollingKey,i=e.startSeq,s=e.avChatRoomKey,c=e.messageList,l=r.groupID;return 1===o?(this.getModule(Vn).setCompleted("".concat(S.CONV_GROUP).concat(l)),this._groupAttributesHandler.initGroupAttributesCache({groupID:l,avChatRoomKey:s}),this._groupCountersHandler.initGroupCountersCache({groupID:l,avChatRoomKey:s}),(t=it(a)?this._AVChatRoomHandler.handleJoinResult({group:r}):this._AVChatRoomHandler.startRunLoop({group:r,longPollingKey:a,startSeq:i})).then((function(){n._onAVChatRoomHistoryMessage(c)})),t):(this.emitGroupListUpdate(!0,!1),Ya({status:We,group:r}))}},{key:"quitGroup",value:function(e){var t=this,n="".concat(this._n,".").concat("quitGroup");Fe.l("".concat(n," groupID:").concat(e));var r=this.checkJoinedAVChatRoomByID(e);if(!r&&!this.hasLocalGroup(e))return Ja({code:fa.MEMBER_NOT_IN_GROUP});if(r&&!this.isLoggedIn())return Fe.l("".concat(n," anonymously ok. groupID:").concat(e)),this.deleteLocalGroupAndConversation(e),this._AVChatRoomHandler.reset(e),$a({groupID:e});var o=new Ta("quitGroup");return o.setMessage("groupID:".concat(e)),this.request({protocolName:Xr,requestData:{groupID:e}}).then((function(){return o.setNetworkType(t.getNetworkType()).end(),Fe.l("".concat(n," ok")),t.deleteLocalGroupAndConversation(e),r&&t._AVChatRoomHandler.reset(e),t._groupAttributesHandler.deleteLocalGroupAttributes(e),Ya({groupID:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],a=n[1];o.setError(e,r,a).end()})),Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"searchGroupByID",value:function(e){var t=this,n="".concat(this._n,".").concat("searchGroupByID"),r={groupIDList:[e]},o=new Ta("searchGroupByID");return o.setMessage("groupID:".concat(e)),Fe.l("".concat(n," groupID:").concat(e)),this.request({protocolName:Zr,requestData:r}).then((function(e){var r=e.data.groupProfile;if(0!==r[0].errorCode)throw new qa({code:r[0].errorCode,message:r[0].errorInfo});return o.setNetworkType(t.getNetworkType()).end(),Fe.l("".concat(n," ok")),Ya({group:new fi(r[0])})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],a=n[1];o.setError(e,r,a).end()})),Fe.w("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"changeGroupOwner",value:function(e){var t=this,n="".concat(this._n,".").concat("changeGroupOwner");if(this.hasLocalGroup(e.groupID)&&this.getLocalGroupProfile(e.groupID).type===S.GRP_AVCHATROOM)return Ja({code:fa.CANNOT_CHANGE_OWNER_IN_AVCHATROOM});if(e.newOwnerID===this.getMyUserID())return Ja({code:fa.CANNOT_CHANGE_OWNER_TO_SELF});var r=new Ta("changeGroupOwner");return r.setMessage("groupID:".concat(e.groupID," newOwnerID:").concat(e.newOwnerID)),Fe.l("".concat(n," groupID:").concat(e.groupID)),this.request({protocolName:eo,requestData:e}).then((function(){r.setNetworkType(t.getNetworkType()).end(),Fe.l("".concat(n," ok"));var o=e.groupID,a=e.newOwnerID;t.groupMap.get(o).ownerID=a;var i=t.getModule(Pn).getLocalGroupMemberList(o);if(i instanceof Map){var s=i.get(t.getMyUserID());it(s)||(s.updateRole("Member"),t.groupMap.get(o).selfInfo.role="Member");var c=i.get(a);it(c)||c.updateRole("Owner")}return t.emitGroupListUpdate(!0,!1),Ya({group:t.groupMap.get(o)})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),o=n[0],a=n[1];r.setError(e,o,a).end()})),Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"getGroupApplicationList",value:function(){return this._groupSystemNoticeHandler.getGroupApplicationList()}},{key:"handleGroupApplication",value:function(e){var t,n,r,o,a,i=this,s="".concat(this._n,".").concat("handleGroupApplication"),c=e.handleAction,l=e.handleMessage,u=e.message,d=e.application;u?(t=u.payload.operatorID,n=u.payload.groupProfile.groupID,r=u.payload.authentication,o=u.payload.messageKey):d&&(t=d.applicant,n=d.groupID,r=d.authentication,o=d.messageKey);var p=to;d&&2===d.applicationType&&(p=no,a=d.userID);var f=new Ta("handleGroupApplication");return f.setMessage("groupID:".concat(n)),Fe.l("".concat(s," groupID:").concat(n)),this.request({protocolName:p,requestData:{handleAction:c,handleMessage:l,applicant:t,invitee:a,groupID:n,authentication:r,messageKey:o}}).then((function(){return f.setNetworkType(i.getNetworkType()).end(),Fe.l("".concat(s," ok")),u&&i._groupSystemNoticeHandler.deleteGroupSystemNotice({messageList:[e.message]}),Ya({group:i.getLocalGroupProfile(n)})})).catch((function(e){return i.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];f.setError(e,r,o).end()})),Fe.e("".concat(s," failed. error"),e),Ja(e)}))}},{key:"handleGroupInvitation",value:function(e){var t=this,r="".concat(this._n,".").concat("handleGroupInvitation"),o=e.message.payload,a=o.groupProfile.groupID,i=o.authentication,s=o.messageKey,c=o.operatorID,l=e.handleAction,u=new Ta("handleGroupInvitation");return u.setMessage("groupID:".concat(a," inviter:").concat(c," handleAction:").concat(l)),Fe.l("".concat(r," groupID:").concat(a," inviter:").concat(c," handleAction:").concat(l)),this.request({protocolName:ro,requestData:n(n({},e),{},{inviter:c,groupID:a,authentication:i,messageKey:s})}).then((function(){return u.setNetworkType(t.getNetworkType()).end(),Fe.l("".concat(r," ok")),t._groupSystemNoticeHandler.deleteGroupSystemNotice({messageList:[e.message]}),Ya({group:t.getLocalGroupProfile(a)})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];u.setError(e,r,o).end()})),Fe.e("".concat(r," failed. error"),e),Ja(e)}))}},{key:"getGroupOnlineMemberCount",value:function(e){return this._AVChatRoomHandler?this._AVChatRoomHandler.checkJoinedAVChatRoomByID(e)?this._AVChatRoomHandler.getGroupOnlineMemberCount(e):$a({memberCount:0}):Ja({code:fa.CANNOT_FIND_MODULE})}},{key:"hasLocalGroup",value:function(e){return this.groupMap.has(e)}},{key:"deleteLocalGroupAndConversation",value:function(e){var t=this.checkJoinedAVChatRoomByID(e);if(Fe.l("".concat(this._n,".deleteLocalGroupAndConversation isJoinedAVChatRoom:").concat(t)),t&&this.getModule(Vn).deleteLocalConversation("".concat(S.CONV_GROUP).concat(e)),Ct({groupID:e})){var n=this.getLocalGroupProfile(e);n&&!0===n.isSupportTopic&&this.getModule(Un).deleteTopicListInCommunity(e)}this._deleteLocalGroup(e),this.emitGroupListUpdate(!0,!1)}},{key:"_deleteLocalGroup",value:function(e){this.groupMap.delete(e),this.getModule(Pn).deleteGroupMemberList(e),this._setStorageGroupList()}},{key:"sendMessage",value:function(e,t){if(at(e._receiverList)&&e._receiverList.length>0&&!this.canIUse(z.MSG_TO_SPECIFIED_GRP_MBR))return Ja({code:fa.CANNOT_USE_COMMERCIAL_ABILITY});var n=this.createGroupMessagePack(e,t);return this.request(n)}},{key:"createGroupMessagePack",value:function(e,t){var n=null;t&&t.offlinePushInfo&&(n=t.offlinePushInfo);var r="";nt(e.cloudCustomData)&&e.cloudCustomData.length>0&&(r=e.cloudCustomData);var o=[];if(ot(t)&&ot(t.messageControlInfo)){var a=t.messageControlInfo,i=a.excludedFromUnreadCount,s=a.excludedFromLastMessage,c=a.excludedFromContentModeration;!0===i&&o.push("NoUnread"),!0===s&&o.push("NoLastMsg"),!0===c&&o.push("NoMsgCheck")}var l=void 0;at(e._receiverList)&&e._receiverList.length>0&&(l=e._receiverList,e._receiverList.length>50&&(l=e._receiverList.slice(0,50),this.outputWarning("ReceiverListLimit")));var u=this.isOnlineMessage(e,t)?1:0,d=e.getGroupAtInfoList(),p={fromAccount:this.getMyUserID(),groupID:e.to,msgBody:e.getElements(),cloudCustomData:r,random:e.random,priority:e.priority,clientSequence:e.clientSequence,groupAtInfo:e.type!==S.MSG_TEXT||Kt(d)?void 0:d,onlineOnlyFlag:u,clientTime:e.clientTime,offlinePushInfo:n?{pushFlag:!0===n.disablePush?1:0,title:n.title||"",desc:n.description||"",ext:n.extension||"",apnsInfo:{badgeMode:!0===n.ignoreIOSBadge?1:0,isVoipPush:this._isVoipPush(n)},androidInfo:{OPPOChannelID:n.androidOPPOChannelID||""}}:void 0,messageControlInfo:0===u?o:void 0,needReadReceipt:!0!==e.needReadReceipt||this.isMessageFromOrToAVChatroom(e.to)?0:1,receiverList:l,isSupportExtension:!0===e.isSupportExtension?1:0};return wt(e.to)&&(p.groupID=Bt(e.to),p.topicID=e.to),{protocolName:mr,tjgID:this.generateTjgID(e),requestData:p}}},{key:"_isVoipPush",value:function(e){var t=void 0;return it(e.disableVoipPush)||(t=!1===e.disableVoipPush?1:0),t}},{key:"revokeMessage",value:function(e){var t={groupID:e.to,msgSeqList:[{msgSeq:e.sequence}]};return wt(e.to)&&(t.groupID=Bt(e.to),t.topicID=e.to),this.request({protocolName:oo,requestData:t})}},{key:"deleteMessage",value:function(e){var t=e.to,n=e.keyList;Fe.l("".concat(this._n,".deleteMessage groupID:").concat(t," count:").concat(n.length));var r={groupID:t,deleter:this.getMyUserID(),keyList:n};return wt(t)&&(r.groupID=Bt(t),r.topicID=t),this.request({protocolName:_o,requestData:r})}},{key:"modifyRemoteMessage",value:function(e){var t=e.to,n=e.sequence,r=e.payload,o=e.type,a=e.version,i=void 0===a?0:a,s=e.cloudCustomData,c=t,l=void 0;wt(t)&&(c=Bt(t),l=t);var u=void 0;return Gt(o)&&(u=[]).push({type:o,content:r}),this.request({protocolName:yo,requestData:{groupID:c,topicID:l,sequence:n,version:i,elements:u,cloudCustomData:s}})}},{key:"getRoamingMessage",value:function(e){var t=this,n="".concat(this._n,".getRoamingMessage"),r=e.conversationID,o=e.groupID,a=e.sequence,i=new Ta("getGroupRoamingMessages"),s=0,c=void 0;return wt(o)&&(o=Bt(c=o)),this._computeLastSequence({groupID:o,topicID:c,sequence:a}).then((function(e){return s=e,Fe.l("".concat(n," groupID:").concat(o," startSequence:").concat(s)),t.request({protocolName:so,requestData:{groupID:o,count:21,sequence:s,topicID:c}})})).then((function(e){var a=e.data,l=a.messageList,u=a.complete,d=a.invisibleSequenceList,p=void 0===d?[]:d;it(l)?Fe.l("".concat(n," ok. complete:").concat(u," but messageList is undefined!")):Fe.l("".concat(n," ok. complete:").concat(u," count:").concat(l.length));var f=t._getMinSequence(p,l)-1;i.setNetworkType(t.getNetworkType()).setMessage("groupID:".concat(o," topicID:").concat(c," startSequence:").concat(s," complete:").concat(u," nextSequence:").concat(f)).end();var h=t.getModule(Vn),m=[];return Kt(l)||(h.updateRoamingMessageSequence(r,f),m=h.onRoamingMessage(l,r),h.updateIsRead(r),h.patchConversationLastMessage(r)),(2===u||f<=1)&&(h.setCompleted(r),f=""),Fe.l("".concat(n," nextReqID:").concat(f,", stored message count:").concat(m.length,", invisible sequence count:").concat(p.length)),{nextReqID:f+"",storedMessageList:m}})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],a=n[1];i.setError(e,r,a).setMessage("groupID:".concat(o," topicID:").concat(c," startSequence:").concat(s)).end()})),Fe.w("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"_getGroupIDOfMessage",value:function(e){return e.conversationID.replace(S.CONV_GROUP,"")}},{key:"_getMinSequence",value:function(e,t){var n=0;Kt(t)||(n=t[t.length-1].sequence);var r=0;return Kt(e)||(r=e[e.length-1]),Fe.l("".concat(this._n,"._getMinSequence minVisibleSequence:").concat(n," minInvisibleSequence:").concat(r)),r>0&&r<n?r:n}},{key:"getReadReceiptList",value:function(e){var t=this,n="".concat(this._n,".").concat("getReadReceiptList"),r=this._getGroupIDOfMessage(e[0]),o=this.getMyUserID(),a=e.filter((function(e){return e.from===o&&!0===e.needReadReceipt})).map((function(e){return{sequence:e.sequence}}));if(Fe.l("".concat(n," groupID:").concat(r," sequenceList:").concat(JSON.stringify(a))),0===a.length)return $a({messageList:e});var i=new Ta("getReadReceiptList");return i.setMessage("groupID:".concat(r)),this.request({protocolName:co,requestData:{groupID:r,sequenceList:a}}).then((function(t){i.end(),Fe.l("".concat(n," ok"));var r=t.data.readReceiptList;return at(r)&&r.forEach((function(t){e.forEach((function(e){0===t.code&&t.sequence===e.sequence&&(e.readReceiptInfo.readCount=t.readCount,e.readReceiptInfo.unreadCount=t.unreadCount)}))})),Ya({messageList:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setError(e,r,o).end()})),Fe.w("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"sendReadReceipt",value:function(e){var t=this,n="".concat(this._n,".").concat("sendReadReceipt"),r=this._getGroupIDOfMessage(e[0]),o=new Ta("sendReadReceipt");o.setMessage("groupID:".concat(r));var a=this.getMyUserID(),i=e.filter((function(e){return e.from!==a&&!0===e.needReadReceipt})).map((function(e){return{sequence:e.sequence}}));return 0===i.length?Ja({code:fa.READ_RECEIPT_MESSAGE_LIST_EMPTY}):(Fe.l("".concat(n,". sequenceList:").concat(JSON.stringify(i))),this.request({protocolName:lo,requestData:{groupID:r,sequenceList:i}}).then((function(e){return o.end(),Fe.l("".concat(n," ok")),Ya()})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],a=n[1];o.setError(e,r,a).end()})),Fe.w("".concat(n," failed. error:"),e),Ja(e)})))}},{key:"getReadReceiptDetail",value:function(e){var t=this,n=e.message,r=e.filter,o=e.cursor,a=e.count,i=this._getGroupIDOfMessage(n),s=n.ID,c=n.sequence,l="".concat(this._n,".").concat("getReadReceiptDetail"),u=this._receiptDetailCompleteMap.get(s)||!1,d=0!==r&&1!==r?0:r,p=nt(o)?o:"",f=!et(a)||a<=0||a>=100?100:a,h="groupID:".concat(i," sequence:").concat(c," cursor:").concat(p," filter:").concat(d," completeFlag:").concat(u);Fe.l("".concat(l," ").concat(h));var m={cursor:"",isCompleted:!1,messageID:s,unreadUserIDList:[],readUserIDList:[]},v=new Ta("getReadReceiptDetail");return v.setMessage(h),this.request({protocolName:po,requestData:{groupID:i,sequence:c,flag:d,cursor:p,count:f}}).then((function(e){v.end();var n=e.data,r=n.cursor,o=n.isCompleted,a=n.unreadUserIDList,i=n.readUserIDList;return m.cursor=r,1===o&&(m.isCompleted=!0,t._receiptDetailCompleteMap.set(s,!0)),0===d?m.readUserIDList=i.map((function(e){return e.userID})):1===d&&(m.unreadUserIDList=a.map((function(e){return e.userID}))),Fe.l("".concat(l," ok")),Ya(m)})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];v.setError(e,r,o).end()})),Fe.w("".concat(l," failed. error:"),e),Ja(e)}))}},{key:"getRoamingMessagesHopping",value:function(e){var t=this,n="".concat(this._n,".getRoamingMessagesHopping"),r=new Ta("getGroupRoamingMessagesHopping"),o=e.groupID,a=e.count,i=e.sequence,s=e.direction,c=i;1===s&&(c=i+a-1);var l=void 0;wt(o)&&(o=Bt(l=o));var u="".concat(l?"topicID:".concat(l):"groupID:".concat(o)," sequence:").concat(i," direction:").concat(s);return Fe.l("".concat(n," ").concat(u)),this.request({protocolName:so,requestData:{groupID:o,topicID:l,count:a,sequence:c}}).then((function(o){var a=o.data,c=a.messageList,l=a.complete,d="complete:".concat(l," count:").concat(c?c.length:0);if(Fe.l("".concat(n," ok. ").concat(d)),r.setNetworkType(t.getNetworkType()).setMessage("".concat(u," ").concat(d)).end(),2===l||Kt(c)){var p=t._computeResult();return Ya(p)}var f="".concat(S.CONV_GROUP).concat(e.groupID),h=t.getModule(Vn).onRoamingMessage(c,f,!1),m=t._computeResult({direction:s,sequence:i,remoteMessageList:c,processedMessageList:h});return Ya(m)})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),s=n[0],c=n[1];r.setError(e,s,c).setMessage("groupID:".concat(o," sequence:").concat(i," count:").concat(a)).end()})),Fe.w("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"_computeResult",value:function(e){var t={messageList:[],isCompleted:!1,nextMessageSeq:""};if(it(e))return t.isCompleted=!0,t;var n=e.direction,r=e.sequence,o=e.remoteMessageList,a=void 0===o?[]:o,i=e.processedMessageList,s=void 0===i?[]:i,c=a.length;return 1===n?(t.nextMessageSeq=a[0].sequence+1,s.forEach((function(e){e.sequence>=r&&t.messageList.push(e)})),0===t.messageList.length&&a[0].sequence<r&&(t.isCompleted=!0,t.nextMessageSeq=""),t):(t.nextMessageSeq=a[c-1].sequence-1,t.messageList=y(s),0===t.nextMessageSeq&&(t.isCompleted=!0,t.nextMessageSeq=""),t)}},{key:"setMessageRead",value:function(e){var t=this,n=e.conversationID,r=e.lastMessageSeq,o="".concat(this._n,".setMessageRead");Fe.l("".concat(o," conversationID:").concat(n," lastMessageSeq:").concat(r)),et(r)||this.outputWarning("DoNotModifyLastSeq");var a=new Ta("setGroupMessageRead");a.setMessage("".concat(n,"-").concat(r));var i=n.replace(S.CONV_GROUP,""),s=void 0;return wt(i)&&(i=Bt(s=i)),this.request({protocolName:ao,requestData:{groupID:i,topicID:s,messageReadSeq:r}}).then((function(){a.setNetworkType(t.getNetworkType()).end(),Fe.l("".concat(o," ok."));var e=t.getModule(Vn);e.updateIsReadAfterReadReport({conversationID:n,lastMessageSeq:r});var c=!0;if(!it(s)){c=!1;var l=t.getModule(Un).getLocalTopic(i,s);l&&l.updateSelfInfo({readedSequence:r})}return e.updateUnreadCount(n,c),Ya()})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];a.setError(e,r,o).end()})),Fe.l("".concat(o," failed. error:"),e),Ja(e)}))}},{key:"_computeLastSequence",value:function(e){var t=e.groupID,n=e.topicID,r=void 0===n?void 0:n,o=e.sequence;return o>0?Promise.resolve(o):it(r)||this.hasLocalGroup(t)?it(r)?this.getGroupLastSequence(t):this.getTopicLastSequence({groupID:t,topicID:r}):Promise.resolve(0)}},{key:"getGroupLastSequence",value:function(e){var t=this,n="".concat(this._n,".").concat("getGroupLastSequence"),r=new Ta("getGroupLastSequence"),o=0,a="";if(this.hasLocalGroup(e)){var i=this.getLocalGroupProfile(e),s=i.lastMessage;if(s.lastSequence>0&&!1===s.onlineOnlyFlag)return o=s.lastSequence,a="got lastSequence:".concat(o," from local group profile[lastMessage.lastSequence]. groupID:").concat(e),Fe.l("".concat(n," ").concat(a)),r.setNetworkType(this.getNetworkType()).setMessage("".concat(a)).end(),Promise.resolve(o);if(i.nextMessageSeq>1)return o=i.nextMessageSeq-1,a="got lastSequence:".concat(o," from local group profile[nextMessageSeq]. groupID:").concat(e),Fe.l("".concat(n," ").concat(a)),r.setNetworkType(this.getNetworkType()).setMessage("".concat(a)).end(),Promise.resolve(o)}var c="GROUP".concat(e),l=this.getModule(Vn).getLocalConversation(c);if(l&&l.lastMessage.lastSequence&&!1===l.lastMessage.onlineOnlyFlag)return o=l.lastMessage.lastSequence,a="got lastSequence:".concat(o," from local conversation profile[lastMessage.lastSequence]. groupID:").concat(e),Fe.l("".concat(n," ").concat(a)),r.setNetworkType(this.getNetworkType()).setMessage("".concat(a)).end(),Promise.resolve(o);var u={groupIDList:[e],responseFilter:{groupBaseInfoFilter:["NextMsgSeq"]}};return this.getGroupProfileAdvance(u).then((function(i){var s=i.data.successGroupList;return Kt(s)?Fe.l("".concat(n," successGroupList is empty. groupID:").concat(e)):(o=s[0].nextMessageSeq-1,a="got lastSequence:".concat(o," from getGroupProfileAdvance. groupID:").concat(e),Fe.l("".concat(n," ").concat(a))),r.setNetworkType(t.getNetworkType()).setMessage("".concat(a)).end(),o})).catch((function(o){return t.probeNetwork().then((function(t){var n=_(t,2),a=n[0],i=n[1];r.setError(o,a,i).setMessage("get lastSequence failed from getGroupProfileAdvance. groupID:".concat(e)).end()})),Fe.w("".concat(n," failed. error:"),o),Ja(o)}))}},{key:"getTopicLastSequence",value:function(e){var t=this,n=e.groupID,r=e.topicID,o="".concat(this._n,".").concat("getTopicLastSequence"),a=new Ta("getTopicLastSequence"),i=0,s="",c=this.getModule(Un);return c.hasLocalTopic(n,r)?(i=c.getLocalTopic(n,r).nextMessageSeq-1,s="get lastSequence:".concat(i," from local topic info[nextMessageSeq]. topicID:").concat(r),Fe.l("".concat(o," ").concat(s)),a.setNetworkType(this.getNetworkType()).setMessage("".concat(s)).end(),Promise.resolve(i)):c.getTopicList({groupID:n,topicIDList:[r]}).then((function(e){var n=e.data.successTopicList;return Kt(n)?Fe.l("".concat(o," successTopicList is empty. topicID:").concat(r)):(i=n[0].nextMessageSeq-1,s="get lastSequence:".concat(i," from getTopicList. topicID:").concat(r),Fe.l("".concat(o," ").concat(s))),a.setNetworkType(t.getNetworkType()).setMessage("".concat(s)).end(),i})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),o=n[0],i=n[1];a.setError(e,o,i).setMessage("get lastSequence failed from getTopicList. topicID:".concat(r)).end()})),Fe.w("".concat(o," failed. error:"),e),Ja(e)}))}},{key:"isMessageFromOrToAVChatroom",value:function(e){return!!this._AVChatRoomHandler&&this._AVChatRoomHandler.checkJoinedAVChatRoomByID(e)}},{key:"hasJoinedAVChatRoom",value:function(){return this._AVChatRoomHandler?this._AVChatRoomHandler.hasJoinedAVChatRoom():0}},{key:"getJoinedAVChatRoom",value:function(){return this._AVChatRoomHandler?this._AVChatRoomHandler.getJoinedAVChatRoom():[]}},{key:"isOnlineMessage",value:function(e,t){return!(!this._canIUseOnlineOnlyFlag(e)||!t||!0!==t.onlineUserOnly)}},{key:"_canIUseOnlineOnlyFlag",value:function(e){var t=this.getJoinedAVChatRoom();return!t||!t.includes(e.to)||e.conversationType!==S.CONV_GROUP}},{key:"_onAVChatRoomHistoryMessage",value:function(e){if(!Kt(e)){Fe.l("".concat(this._n,"._onAVChatRoomHistoryMessage count:").concat(e.length));var t=[];e.forEach((function(e){t.push(n(n({},e),{},{isHistoryMessage:1}))})),this.onAVChatRoomMessage(t)}}},{key:"onAVChatRoomMessage",value:function(e){this._AVChatRoomHandler&&this._AVChatRoomHandler.onMessage(e)}},{key:"onAVChatRoomMemberBanned",value:function(e){this._AVChatRoomHandler&&this._AVChatRoomHandler.onAVChatRoomMemberBanned(e)}},{key:"getGroupSimplifiedInfo",value:function(e){var t=this,n=new Ta("getGroupSimplifiedInfo"),r={groupIDList:[e],responseFilter:{groupBaseInfoFilter:["Type","Name"]}};return this.getGroupProfileAdvance(r).then((function(r){var o=r.data.successGroupList;return n.setNetworkType(t.getNetworkType()).setMessage("groupID:".concat(e," type:").concat(o[0].type)).end(),o[0]})).catch((function(r){t.probeNetwork().then((function(t){var o=_(t,2),a=o[0],i=o[1];n.setError(r,a,i).setMessage("groupID:".concat(e)).end()}))}))}},{key:"setUnjoinedAVChatRoom",value:function(e){this._unjoinedAVChatRoomList.set(e,1)}},{key:"deleteUnjoinedAVChatRoom",value:function(e){this._unjoinedAVChatRoomList.has(e)&&this._unjoinedAVChatRoomList.delete(e)}},{key:"isUnjoinedAVChatRoom",value:function(e){return this._unjoinedAVChatRoomList.has(e)}},{key:"isGroupAttributesUpdatedNotice",value:function(e){return this._groupAttributesHandler.isGroupAttributesUpdatedNotice(e)}},{key:"updateLocalMainSequenceOnReconnected",value:function(){this._groupAttributesHandler.updateLocalMainSequenceOnReconnected()}},{key:"initGroupAttributes",value:function(e){return this._groupAttributesHandler.initGroupAttributes(e)}},{key:"setGroupAttributes",value:function(e){return this._groupAttributesHandler.setGroupAttributes(e)}},{key:"deleteGroupAttributes",value:function(e){return this._groupAttributesHandler.deleteGroupAttributes(e)}},{key:"getGroupAttributes",value:function(e){return this._groupAttributesHandler.getGroupAttributes(e)}},{key:"isMessageFromTopic",value:function(e,t){return 2===e&&!Kt(t)}},{key:"isMessageFromCommunityOfTopic",value:function(e,t){return 2===e&&Kt(t)}},{key:"getMessageExtensions",value:function(e,t){return Fe.l("".concat(this._n,".getMessageExtensions startSequence:").concat(t)),this.request({protocolName:Io,requestData:{groupID:e.to,messageSequence:e.sequence,startSequence:t}})}},{key:"modifyMessageExtensions",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Fe.l("".concat(this._n,".modifyMessageExtensions operateType:").concat(n)),this.request({protocolName:wo,requestData:{groupID:e.to,messageSequence:e.sequence,extensionList:t,operateType:n}})}},{key:"getGroupNotify",value:function(e){var t=this;if(this.hasLocalGroup(e)){var r=this.getLocalGroupProfile(e),o=r.type,a=r.isSupportTopic;if(!kt(o)&&!a){var i="".concat(this._n,".getGroupNotify"),s=this._getGroupLastRevokedTime(e),c=1e3*xe();Fe.l("".concat(i," groupID:").concat(e," type:").concat(o," beginTime:").concat(s," endTime:").concat(c)),this.request({protocolName:So,requestData:{type:Ct({type:o,groupID:e})?S.GRP_COMMUNITY:void 0,groupID:e,beginTime:s,endTime:c}}).then((function(r){var o=r.data,a=o.nextRevokedTime,s=o.notifyList;Fe.l("".concat(i," ok. groupID:").concat(e," nextRevokedTime:").concat(a));var c={dataList:[{elements:{revokedInfos:[]}}]};at(s)&&s.forEach((function(t){c.dataList[0].elements.revokedInfos.push({groupID:e,sequence:t.sequence,random:t.random,revokerInfo:n({},t.revokerInfo)})})),t.onGroupMessageRevoked(c),0!==a?(t._setGroupLastRevokedTime(e,a),t.getGroupNotify(e)):t._setGroupLastRevokedTime(e,1e3*xe())})).catch((function(e){Fe.e("".concat(i," failed. error:"),e)}))}}}},{key:"_getGroupLastRevokedTime",value:function(e){return this.hasLocalGroup(e)?this.getLocalGroupProfile(e)._lastRevokedTime:0}},{key:"_setGroupLastRevokedTime",value:function(e,t){this.hasLocalGroup(e)&&(this.getLocalGroupProfile(e)._lastRevokedTime=t)}},{key:"isGroupCountersNotice",value:function(e){return this._groupCountersHandler.isGroupCountersNotice(e)}},{key:"setGroupCounters",value:function(e){return this._groupCountersHandler.setGroupCounters(e)}},{key:"increaseGroupCounter",value:function(e){return this._groupCountersHandler.increaseGroupCounter(e)}},{key:"decreaseGroupCounter",value:function(e){return this._groupCountersHandler.decreaseGroupCounter(e)}},{key:"getGroupCounters",value:function(e){return this._groupCountersHandler.getGroupCounters(e)}},{key:"restartPolling",value:function(){this._AVChatRoomHandler&&this._AVChatRoomHandler.restartPolling()}},{key:"_canIUseJoinOption",value:function(e){return function(e){return e===S.GRP_PUBLIC}(e)||Ct({type:e})}},{key:"reset",value:function(){this.groupMap.clear(),this._unjoinedAVChatRoomList.clear(),this._receiptDetailCompleteMap.clear(),this._commonGroupHandler.reset(),this._groupSystemNoticeHandler.reset(),this._groupTipsHandler.reset(),this._groupAttributesHandler.reset(),this._groupCountersHandler.reset(),this._AVChatRoomHandler&&this._AVChatRoomHandler.reset()}}]),r}(sr),Vi=function(){function e(t){o(this,e),this.userID="",this.avatar="",this.nick="",this.role="",this.joinTime="",this.lastSendMsgTime="",this.nameCard="",this.muteUntil=0,this.memberCustomField=[],this._initMember(t)}return i(e,[{key:"_initMember",value:function(e){this.updateMember(e)}},{key:"updateMember",value:function(e){var t=[null,void 0,"",0,NaN];e.memberCustomField&&Mt(this.memberCustomField,e.memberCustomField),pt(this,e,["memberCustomField","marks"],t)}},{key:"updateRole",value:function(e){["Owner","Admin","Member"].indexOf(e)<0||(this.role=e)}},{key:"updateMuteUntil",value:function(e){it(e)||(this.muteUntil=Math.floor((Date.now()+1e3*e)/1e3))}},{key:"updateNameCard",value:function(e){it(e)||(this.nameCard=e)}},{key:"updateMemberCustomField",value:function(e){e&&Mt(this.memberCustomField,e)}}]),e}(),Bi=function(e){c(r,e);var t=g(r);function r(e){var n;return o(this,r),(n=t.call(this,e))._n="GroupMemberModule",n.groupMemberListMap=new Map,n.getInnerEmitterInstance().on(ti,n._onProfileUpdated,m(n)),n}return i(r,[{key:"_onProfileUpdated",value:function(e){for(var t=this,n=e.data,r=function(e){var r=n[e];t.groupMemberListMap.forEach((function(e){e.has(r.userID)&&e.get(r.userID).updateMember({nick:r.nick,avatar:r.avatar})}))},o=0;o<n.length;o++)r(o)}},{key:"deleteGroupMemberList",value:function(e){this.groupMemberListMap.delete(e)}},{key:"getGroupMemberList",value:function(e){var t=this,n=e.groupID,r=e.offset,o=void 0===r?0:r,a=e.count,i=void 0===a?15:a,s=e.filter,c=void 0===s?void 0:s,l="".concat(this._n,".").concat("getGroupMemberList"),u=this.getModule(xn),d=u.hasLocalGroup(n);if(Fe.l("".concat(l," groupID:").concat(n," offset:").concat(o," count:").concat(i," hasLocalGroup:").concat(d)),!d)return $a({memberList:[],offset:0});if(u.getLocalGroupProfile(n).type===S.GRP_AVCHATROOM){if(this.canIUse(z.AVCHATROOM_MBR_LIST))return this._getAVChatRoomMemberList({groupID:n,offset:o,filter:c});this.outputWarning("LiveOnlineMember")}var p=new Ta("getGroupMemberList"),f=0,h={groupID:n,limit:i>100?100:i};Ct({groupID:n})?h.next="".concat(o):(h.offset=o,f=o+i);var m=[];return this.request({protocolName:jo,requestData:h}).then((function(e){var r=e.data,o=r.members,a=r.memberNum,i=r.next,s=void 0===i?void 0:i;if(it(s)||(f=Kt(s)?0:s),!at(o)||0===o.length)return f=0,Promise.resolve([]);var c=t.getModule(xn);return c.hasLocalGroup(n)&&(c.getLocalGroupProfile(n).memberNum=a),m=t._updateLocalGroupMemberMap(n,o),t.getModule(An).getUserProfile({userIDList:o.map((function(e){return e.userID})),tagList:[ze.NICK,ze.AVATAR]})})).then((function(e){var r=e.data;if(!at(r)||0===r.length)return $a({memberList:[],offset:f});var a=r.map((function(e){return{userID:e.userID,nick:e.nick,avatar:e.avatar}}));return t._updateLocalGroupMemberMap(n,a),m.length<i&&(f=0),p.setNetworkType(t.getNetworkType()).setMessage("groupID:".concat(n," offset:").concat(o," count:").concat(i)).end(),Fe.l("".concat(l," ok.")),Ya({memberList:m,offset:f})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];p.setError(e,r,o).end()})),Fe.e("".concat(l," failed. error:"),e),Ja(e)}))}},{key:"_getAVChatRoomMemberList",value:function(e){var t=this,n=e.groupID,r=e.offset,o=e.filter,a="".concat(this._n,".").concat("_getAVChatRoomMemberList"),i=new Ta("_getAVChatRoomMemberList");return i.setMessage("groupID:".concat(n," offset:").concat(r," filter:").concat(o)),this.request({protocolName:Do,requestData:{groupID:n,offset:r,filter:o}}).then((function(e){var r=e.data,o=r.memberList,s=void 0===o?[]:o,c=r.offset,l=void 0===c?0:c;i.setNetworkType(t.getNetworkType()).end(),Fe.l("".concat(a," ok. member count:").concat(s.length,", next request timestamp:").concat(l));var u=t._updateLocalGroupMemberMap(n,s);return Ya({memberList:u,offset:l})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setError(e,r,o).end()})),Fe.e("".concat(a," failed. error:"),e),Ja(e)}))}},{key:"getGroupMemberProfile",value:function(e){var t=this,r="".concat(this._n,".").concat("getGroupMemberProfile"),o=new Ta("getGroupMemberProfile");o.setMessage(e.userIDList.length>5?"userIDList.length:".concat(e.userIDList.length):"userIDList:".concat(e.userIDList)),Fe.l("".concat(r," groupID:").concat(e.groupID," userIDList:").concat(e.userIDList.join(","))),e.userIDList.length>50&&(e.userIDList=e.userIDList.slice(0,50));var a=e.groupID,i=e.userIDList;return this._getGroupMemberProfileAdvance(n(n({},e),{},{userIDList:i})).then((function(e){var n=e.data.members;return at(n)&&0!==n.length?(t._updateLocalGroupMemberMap(a,n),t.getModule(An).getUserProfile({userIDList:n.map((function(e){return e.userID})),tagList:[ze.NICK,ze.AVATAR]})):$a([])})).then((function(e){var n=e.data.map((function(e){return{userID:e.userID,nick:e.nick,avatar:e.avatar}}));t._updateLocalGroupMemberMap(a,n);var r=i.filter((function(e){return t.hasLocalGroupMember(a,e)})).map((function(e){return t.getLocalGroupMemberInfo(a,e)}));return o.setNetworkType(t.getNetworkType()).end(),Ya({memberList:r})}))}},{key:"addGroupMember",value:function(e){var t=this,n="".concat(this._n,".").concat("addGroupMember"),r=e.groupID,o=this.getModule(xn).getLocalGroupProfile(r),a=o.type,i=new Ta("addGroupMember");if(i.setMessage("groupID:".concat(r," groupType:").concat(a)),kt(a)){var s=new qa({code:fa.CANNOT_ADD_MEMBER_IN_AVCHATROOM});return i.setError(s,!0,this.getNetworkType()).end(),Ja(s)}return e.userIDList=e.userIDList.map((function(e){return{userID:e}})),Fe.l("".concat(n," groupID:").concat(r)),this.request({protocolName:Ao,requestData:e}).then((function(r){var a=r.data.members;Fe.l("".concat(n," ok"));var s=a.filter((function(e){return 1===e.result})).map((function(e){return e.userID})),c=a.filter((function(e){return 0===e.result})).map((function(e){return e.userID})),l=a.filter((function(e){return 2===e.result})).map((function(e){return e.userID})),u=a.filter((function(e){return 4===e.result})).map((function(e){return e.userID})),d="groupID:".concat(e.groupID,", ")+"successUserIDList:".concat(s,", ")+"failureUserIDList:".concat(c,", ")+"existedUserIDList:".concat(l,", ")+"overLimitUserIDList:".concat(u);return i.setNetworkType(t.getNetworkType()).setMoreMessage(d).end(),0===s.length?Ya({successUserIDList:s,failureUserIDList:c,existedUserIDList:l,overLimitUserIDList:u}):(o.memberCount+=s.length,t._updateConversationGroupProfile(o),Ya({successUserIDList:s,failureUserIDList:c,existedUserIDList:l,overLimitUserIDList:u,group:o}))})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setError(e,r,o).end()})),Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"deleteGroupMember",value:function(e){var t=this,n="".concat(this._n,".").concat("deleteGroupMember"),r=e.groupID,o=e.userIDList,a=this.getModule(xn).getLocalGroupProfile(r);if(it(a))return Ja({code:fa.CANNOT_FIND_GROUP});if(kt(a.type))return this.canIUse(z.AVCHATROOM_BAN_MBR)?this._banAVChatRoomMember(e):Ja({code:fa.CANNOT_USE_COMMERCIAL_ABILITY});var i=new Ta("deleteGroupMember"),s="groupID:".concat(r," ").concat(o.length>5?"userIDList.length:".concat(o.length):"userIDList:".concat(o));return i.setMessage(s),Fe.l("".concat(n," groupID:").concat(r," userIDList:"),o),this.request({protocolName:No,requestData:e}).then((function(){return i.setNetworkType(t.getNetworkType()).end(),Fe.l("".concat(n," ok")),a.memberCount-=1,t._updateConversationGroupProfile(a),t.deleteLocalGroupMembers(r,o),Ya({group:a,userIDList:o})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setError(e,r,o).end()})),Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"_updateConversationGroupProfile",value:function(e){this.getModule(Vn).updateConversationGroupProfile([e])}},{key:"_banAVChatRoomMember",value:function(e){var t=this,n="".concat(this._n,".").concat("deleteGroupMember"),r=e.groupID,o=e.userIDList,a="groupID:".concat(r," ").concat(o.length>5?"userIDList.length:".concat(o.length):"userIDList:".concat(o)),i=new Ta("deleteGroupMember");i.setMessage(a),Fe.l("".concat(n," groupID:").concat(r," userIDList:"),o);var s=this.getModule(xn).getLocalGroupProfile(r);return it(e.duration)||0===e.duration?Ja({code:fa.BAN_DURATION_INVALID}):this.request({protocolName:xo,requestData:e}).then((function(){return i.setNetworkType(t.getNetworkType()).end(),Fe.l("".concat(n," ok")),t.deleteLocalGroupMembers(r,o),Ya({group:s,userIDList:o})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setError(e,r,o).end()})),Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"setGroupMemberMuteTime",value:function(e){var t=this,n=e.groupID,r=e.userID,o=e.muteTime,a="".concat(this._n,".").concat("setGroupMemberMuteTime");if(r===this.getMyUserID())return Ja(new qa({code:fa.CANNOT_MUTE_SELF}));Fe.l("".concat(a," groupID:").concat(n," userID:").concat(r));var i=new Ta("setGroupMemberMuteTime");return i.setMessage("groupID:".concat(n," userID:").concat(r," muteTime:").concat(o)),this.modifyGroupMemberInfo({groupID:n,userID:r,muteTime:o}).then((function(e){i.setNetworkType(t.getNetworkType()).end(),Fe.l("".concat(a," ok"));var r=t.getModule(xn);return Ya({group:r.getLocalGroupProfile(n),member:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setError(e,r,o).end()})),Fe.e("".concat(a," failed. error:"),e),Ja(e)}))}},{key:"setGroupMemberRole",value:function(e){var t=this,n="".concat(this._n,".").concat("setGroupMemberRole"),r=e.groupID,o=e.userID,a=e.role,i=this.getModule(xn).getLocalGroupProfile(r);if(i.selfInfo.role!==S.GRP_MBR_ROLE_OWNER)return Ja({code:fa.NOT_OWNER});if([S.GRP_WORK,S.GRP_AVCHATROOM].includes(i.type))return Ja({code:fa.CANNOT_SET_MEMBER_ROLE_IN_WORK_AND_AVCHATROOM});var s=[S.GRP_MBR_ROLE_ADMIN,S.GRP_MBR_ROLE_MEMBER];if(Ct({groupID:r})&&s.push(S.GRP_MBR_ROLE_CUSTOM),s.indexOf(a)<0)return Ja({code:fa.INVALID_MEMBER_ROLE});if(o===this.getMyUserID())return Ja({code:fa.CANNOT_SET_SELF_MEMBER_ROLE});var c=new Ta("setGroupMemberRole");return c.setMessage("groupID:".concat(r," userID:").concat(o," role:").concat(a)),Fe.l("".concat(n," groupID:").concat(r," userID:").concat(o)),this.modifyGroupMemberInfo({groupID:r,userID:o,role:a}).then((function(e){return c.setNetworkType(t.getNetworkType()).end(),Fe.l("".concat(n," ok")),Ya({group:i,member:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];c.setError(e,r,o).end()})),Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"_filterProfanity",value:function(e,t){var n=this.getModule(rr);if(!n)return!0;var r=n.filterText(t[e],J),o=r.isAllowedToSend,a=r.modifiedText;return!0===o&&(t[e]=a,!0)}},{key:"setGroupMemberNameCard",value:function(e){var t=this,n="".concat(this._n,".").concat("setGroupMemberNameCard");if(e.nameCard&&!1===this._filterProfanity("nameCard",e))return Ja({code:fa.PROFANITY_FOUND});var r=e.groupID,o=e.userID,a=void 0===o?this.getMyUserID():o,i=e.nameCard;Fe.l("".concat(n," groupID:").concat(r," userID:").concat(a));var s=new Ta("setGroupMemberNameCard");return s.setMessage("groupID:".concat(r," userID:").concat(a," nameCard:").concat(i)),this.modifyGroupMemberInfo({groupID:r,userID:a,nameCard:i}).then((function(e){Fe.l("".concat(n," ok")),s.setNetworkType(t.getNetworkType()).end();var o=t.getModule(xn).getLocalGroupProfile(r);return a===t.getMyUserID()&&o&&o.setSelfNameCard(i),Ya({group:o,member:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];s.setError(e,r,o).end()})),Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"setGroupMemberCustomField",value:function(e){var t=this,n="".concat(this._n,".").concat("setGroupMemberCustomField"),r=e.groupID,o=e.userID,a=void 0===o?this.getMyUserID():o,i=e.memberCustomField;Fe.l("".concat(n," groupID:").concat(r," userID:").concat(a));var s=new Ta("setGroupMemberCustomField");return s.setMessage("groupID:".concat(r," userID:").concat(a," memberCustomField:").concat(JSON.stringify(i))),this.modifyGroupMemberInfo({groupID:r,userID:a,memberCustomField:i}).then((function(e){s.setNetworkType(t.getNetworkType()).end(),Fe.l("".concat(n," ok"));var o=t.getModule(xn).getLocalGroupProfile(r);return Ya({group:o,member:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];s.setError(e,r,o).end()})),Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"modifyGroupMemberInfo",value:function(e){var t=this,r=e.groupID,o=e.userID,a=void 0;return wt(r)&&(r=Bt(a=r)),this.request({protocolName:Ro,requestData:n(n({},e),{},{groupID:r,topicID:a})}).then((function(){if(t.hasLocalGroupMember(r,o)){var n=t.getLocalGroupMemberInfo(r,o);return it(e.muteTime)||n.updateMuteUntil(e.muteTime),it(e.role)||n.updateRole(e.role),it(e.nameCard)||n.updateNameCard(e.nameCard),it(e.memberCustomField)||n.updateMemberCustomField(e.memberCustomField),n}return t.getGroupMemberProfile({groupID:r,userIDList:[o]}).then((function(e){return _(e.data.memberList,1)[0]}))}))}},{key:"markGroupMemberList",value:function(e){var t=this,n="".concat(this._n,".").concat("markGroupMemberList"),r=e.groupID,o=e.markType,a=e.enableMark,i=e.userIDList,s=void 0===i?[]:i,c="groupID:".concat(r," markType:").concat(o," enableMark:").concat(a," userIDList count: ").concat(s.length);Fe.l("".concat(n," ").concat(c));var l=2,u=[];!0===a&&(l=1);var d=y(s);s.length>500&&(d=s.slice(0,500),Fe.w("".concat(n," ").concat(Yt(500)))),d.forEach((function(e){u.push({userID:e,markType:[o]})})),d=null;var p=new Ta("markGroupMemberList");return p.setMessage("".concat(c)),this.request({protocolName:Po,requestData:{groupID:r,operationType:l,memberList:u}}).then((function(e){var r=e.data.memberList,o=void 0===r?[]:r,a=[],i=[];o.length===s.length?a.push.apply(a,y(s)):(o.forEach((function(e){a.push(e.userID)})),s.forEach((function(e){a.includes(e)||i.push(e)})));var c="success count:".concat(a.length," fail count:").concat(i.length);return p.setNetworkType(t.getNetworkType()).setMessage(c).end(),Fe.l("".concat(n," ok. ").concat(c)),Ya({successUserIDList:a,failureUserIDList:i})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];p.setError(e,r,o).end()})),Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"_getGroupMemberProfileAdvance",value:function(e){return this.request({protocolName:Lo,requestData:n(n({},e),{},{memberInfoFilter:e.memberInfoFilter?e.memberInfoFilter:["Role","JoinTime","NameCard","ShutUpUntil"]})})}},{key:"_updateLocalGroupMemberMap",value:function(e,t){var n=this;return at(t)&&0!==t.length?t.map((function(t){return n.hasLocalGroupMember(e,t.userID)?n.getLocalGroupMemberInfo(e,t.userID).updateMember(t):n.setLocalGroupMember(e,new Vi(t)),n.getLocalGroupMemberInfo(e,t.userID)})):[]}},{key:"deleteLocalGroupMembers",value:function(e,t){var n=this.groupMemberListMap.get(e);n&&t.forEach((function(e){n.delete(e)}))}},{key:"getLocalGroupMemberInfo",value:function(e,t){return this.groupMemberListMap.has(e)?this.groupMemberListMap.get(e).get(t):null}},{key:"setLocalGroupMember",value:function(e,t){if(this.groupMemberListMap.has(e))this.groupMemberListMap.get(e).set(t.userID,t);else{var n=(new Map).set(t.userID,t);this.groupMemberListMap.set(e,n)}}},{key:"getLocalGroupMemberList",value:function(e){return this.groupMemberListMap.get(e)}},{key:"hasLocalGroupMember",value:function(e,t){return this.groupMemberListMap.has(e)&&this.groupMemberListMap.get(e).has(t)}},{key:"hasLocalGroupMemberMap",value:function(e){return this.groupMemberListMap.has(e)}},{key:"reset",value:function(){this.groupMemberListMap.clear()}}]),r}(sr),Fi=["topicID","topicName","avatar","introduction","notification","unreadCount","muteAllMembers","customData","groupAtInfoList","nextMessageSeq","selfInfo"],Gi=function(e,t){return Kt(e)?{lastTime:0,lastSequence:0,fromAccount:"",payload:null,type:"",messageForShow:"",nick:"",version:0,cloudCustomData:"",isRevoked:!1,revoker:null}:{lastTime:e.time||0,lastSequence:e.sequence||0,fromAccount:e.from||"",payload:e.payload||null,type:e.type||"",messageForShow:Ft(e.type,e.payload,t),nick:e.nick||"",version:e.version||0,cloudCustomData:e.cloudCustomData||"",isRevoked:e.isRevoked||!1,revoker:e.revoker||null}},zi=function(){function e(t,n){o(this,e),this.topicID="",this.topicName="",this.avatar="",this.introduction="",this.notification="",this.unreadCount=0,this.muteAllMembers=!1,this.customData="",this.groupAtInfoList=[],this.nextMessageSeq=0,this.lastMessage=Gi(t.lastMessage,n),this.selfInfo={muteTime:0,readedSequence:0,messageRemindType:"",excludedUnreadSequenceList:void 0},this._initTopic(t)}return i(e,[{key:"_initTopic",value:function(e){for(var t in e)Fi.indexOf(t)<0||("selfInfo"===t?this.updateSelfInfo(e[t]):this[t]="muteAllMembers"===t?1===e[t]:e[t])}},{key:"updateUnreadCount",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.unreadCount=e}},{key:"updateNextMessageSeq",value:function(e){this.nextMessageSeq=e}},{key:"updateLastMessage",value:function(e){this.lastMessage=Gi(e)}},{key:"updateGroupAtInfoList",value:function(e){this.groupAtInfoList=JSON.parse(JSON.stringify(e))}},{key:"updateTopic",value:function(e){it(e.selfInfo)||this.updateSelfInfo(e.selfInfo),it(e.muteAllMembers)||(this.muteAllMembers=1===e.muteAllMembers),pt(this,e,["groupID","lastMessageTime","selfInfo","muteAllMembers","lastMsg"])}},{key:"updateSelfInfo",value:function(e){return 0!==pt(this.selfInfo,e,[],[""])}},{key:"reduceUnreadCount",value:function(){return this.unreadCount>=1&&(this.unreadCount-=1,!0)}},{key:"isLastMessageRevoked",value:function(e){return e.sequence===this.lastMessage.lastSequence}},{key:"setLastMessageRevoked",value:function(e){this.lastMessage.isRevoked=e}},{key:"setLastMessageRevoker",value:function(e){this.lastMessage.revoker=e}}]),e}(),Hi=function(e){c(r,e);var t=g(r);function r(e){var n;return o(this,r),(n=t.call(this,e))._n="TopicModule",n._topicMap=new Map,n._getTopicTimeMap=new Map,n.TOPIC_CACHE_TIME=300,n.TOPIC_LAST_ACTIVE_TIME=3600,n.getInnerEmitterInstance().on(ei,n._onCloudConfigUpdated,m(n)),n}return i(r,[{key:"_onCloudConfigUpdated",value:function(){var e=this.getCloudConfig("topic_cache_time"),t=this.getCloudConfig("topic_last_active_time");it(e)||(this.TOPIC_CACHE_TIME=Number(e)),it(t)||(this.TOPIC_LAST_ACTIVE_TIME=Number(t))}},{key:"onTopicCreated",value:function(e){var t=e.groupID;this.resetGetTopicTime(t),this.emitOuterEvent(I.TOPIC_CREATED,e)}},{key:"onTopicDeleted",value:function(e){var t=this,n=e.groupID,r=e.topicIDList;(void 0===r?[]:r).forEach((function(e){t._deleteLocalTopic(n,e)})),this.emitOuterEvent(I.TOPIC_DELETED,e)}},{key:"onTopicMessageRemindTypeUpdated",value:function(e){var t=e.groupID,n=e.topicID,r=e.messageRemindType,o=this.getLocalTopic(t,n);if(o){var a=o.updateSelfInfo({messageRemindType:r});a&&this.emitOuterEvent(I.TOPIC_UPDATED,{groupID:t,topic:o}),Fe.d("".concat(this._n,".onTopicMessageRemindTypeUpdated topicID:").concat(n)+" messageRemindType:".concat(r," isTopicUpdated:").concat(a))}}},{key:"onTopicProfileUpdated",value:function(e){var t=e.groupID,n=e.topicID,r=this.getLocalTopic(t,n);r&&(r.updateTopic(e),this.emitOuterEvent(I.TOPIC_UPDATED,{groupID:t,topic:r}))}},{key:"onConversationProxy",value:function(e){var t=e.topicID,n=e.unreadCount,r=e.groupAtInfoList,o=Bt(t),a=this.getLocalTopic(o,t),i=!1;a&&(it(n)||a.unreadCount===n||(a.updateUnreadCount(n),i=!0),it(r)||(a.updateGroupAtInfoList(r),i=!0)),i&&this.emitOuterEvent(I.TOPIC_UPDATED,{groupID:o,topic:a})}},{key:"onMessageSent",value:function(e){var t=e.groupID,n=e.topicID,r=e.lastMessage,o=this.getLocalTopic(t,n);o&&(o.nextMessageSeq+=1,o.updateLastMessage(r),this.emitOuterEvent(I.TOPIC_UPDATED,{groupID:t,topic:o}))}},{key:"onMessageModified",value:function(e){var t=e.to,n=e.time,r=e.sequence,o=e.elements,a=e.cloudCustomData,i=e.messageVersion,s=Bt(t),c=this.getLocalTopic(s,t);if(c){var l=c.lastMessage;Fe.d("".concat(this._n,".onMessageModified topicID:").concat(t," lastMessage:"),JSON.stringify(l),"options:",JSON.stringify(e)),l&&(null===l.payload||l.lastTime===n&&l.lastSequence===r&&l.version!==i)&&(l.type=o[0].type,l.payload=o[0].content,l.messageForShow=Ft(l.type,l.payload,this.isIntl()),l.cloudCustomData=a,l.version=i,l.lastSequence=r,l.lastTime=n,this.emitOuterEvent(I.TOPIC_UPDATED,{groupID:s,topic:c}))}}},{key:"onMessageRevoked",value:function(e){var t=this;if(0!==e.length){var n=null,r=null,o=!1;e.forEach((function(e){var a=e.to;r=Bt(a),(n=t.getLocalTopic(r,a))&&(n.reduceUnreadCount()&&(o=!0),n.isLastMessageRevoked(e)&&(n.setLastMessageRevoked(!0),n.setLastMessageRevoker(e.revoker),o=!0))})),o&&this.emitOuterEvent(I.TOPIC_UPDATED,{groupID:r,topic:n})}}},{key:"isLastMessageRevoked",value:function(e){var t=e.topicID,n=e.sequence,r=Bt(t),o=this.getLocalTopic(r,t),a=!1;return o&&(a=o.isLastMessageRevoked({sequence:n})),a}},{key:"getJoinedCommunityList",value:function(){return this.getModule(xn).getGroupList({isGroupWithTopicOnly:!0}).then((function(e){var t=e.data.groupList;return Ya({groupList:void 0===t?[]:t})})).catch((function(e){return Ja(e)}))}},{key:"createTopicInCommunity",value:function(e){var t=this,r="".concat(this._n,".").concat("createTopicInCommunity"),o=e.topicID;if(!it(o)&&!wt(o))return Ja({code:fa.ILLEGAL_TOPIC_ID});if(e.topicName&&!1===this._filterProfanity("topicName",e))return Ja({code:fa.PROFANITY_FOUND});if(e.introduction&&!1===this._filterProfanity("introduction",e))return Ja({code:fa.PROFANITY_FOUND});if(e.notification&&!1===this._filterProfanity("notification",e))return Ja({code:fa.PROFANITY_FOUND});var a=new Ta("createTopicInCommunity");return this.request({protocolName:ea,requestData:n({},e)}).then((function(o){var i=o.data.topicID;return a.setMessage("topicID:".concat(i)).setNetworkType(t.getNetworkType()).end(),Fe.l("".concat(r," ok")),t._updateTopicMap([n(n({},e),{},{topicID:i})]),Ya({topicID:i})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];a.setError(e,r,o).end()})),Fe.e("".concat(r," failed. error:"),e),Ja(e)}))}},{key:"deleteTopicFromCommunity",value:function(e){var t=this,n="".concat(this._n,".").concat("deleteTopicFromCommunity"),r=e.groupID,o=e.topicIDList,a=void 0===o?[]:o,i=new Ta("deleteTopicFromCommunity");return i.setMessage("groupID:".concat(r," topicIDList:").concat(a)),this.request({protocolName:ta,requestData:{groupID:r,topicIDList:a}}).then((function(e){var n=e.data.resultList,o=[],a=[];(void 0===n?[]:n).forEach((function(e){var t=e.topicID,n=e.errorCode,r=e.errorInfo;0===n?o.push({topicID:t}):a.push({topicID:t,code:n,message:r})}));var s="success count:".concat(o.length,", fail count:").concat(a.length);return i.setMoreMessage("".concat(s)).setNetworkType(t.getNetworkType()).end(),Fe.l("".concat(s)),o.forEach((function(e){t._deleteLocalTopic(r,e.topicID)})),Ya({successTopicList:o,failureTopicList:a})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setError(e,r,o).end()})),Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"updateTopicProfile",value:function(e){var t=this,r="".concat(this._n,".").concat("updateTopicProfile");if(Fe.l("".concat(r," options:"),e),e.topicName&&!1===this._filterProfanity("topicName",e))return Ja({code:fa.PROFANITY_FOUND});if(e.introduction&&!1===this._filterProfanity("introduction",e))return Ja({code:fa.PROFANITY_FOUND});if(e.notification&&!1===this._filterProfanity("notification",e))return Ja({code:fa.PROFANITY_FOUND});var o=new Ta("updateTopicProfile");return o.setMessage("groupID:".concat(e.groupID," topicID:").concat(e.topicID)),it(e.muteAllMembers)||(e.muteAllMembers=!0===e.muteAllMembers?"On":"Off"),this.request({protocolName:na,requestData:n({},e)}).then((function(){return o.setNetworkType(t.getNetworkType()).end(),Fe.l("".concat(r," ok")),t._updateTopicMap([e]),Ya({topic:t.getLocalTopic(e.groupID,e.topicID)})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],a=n[1];o.setError(e,r,a).end()})),Fe.e("".concat(r," failed. error:"),e),Ja(e)}))}},{key:"getTopicList",value:function(e){var t=this,r="".concat(this._n,".").concat("getTopicList"),o=e.groupID,a=e.topicIDList,i=void 0===a?[]:a,s=0===i.length,c=new Ta("getTopicList");if(c.setMessage("groupID:".concat(o)),this._getTopicTimeMap.has(o)){var l=this._getTopicTimeMap.get(o),u=l.isGetAll,d=l.time;if((u||!u&&!s)&&Date.now()-d<1e3*this.TOPIC_CACHE_TIME){var p=this._getLocalTopicList(o,i);if(s||p.length===i.length)return c.setNetworkType(this.getNetworkType()).setMoreMessage("from cache, topic count:".concat(p.length)).end(),Fe.l("".concat(r," groupID:").concat(o," from cache, topic count:").concat(p.length)),$a({successTopicList:p,failureTopicList:[]})}}return this.request({protocolName:ra,requestData:{groupID:o,topicIDList:i}}).then((function(e){var a=e.data.topicInfoList,i=[],l=[],u=[];(void 0===a?[]:a).forEach((function(e){var t=e.topic,r=e.selfInfo,o=e.errorCode,a=e.errorInfo,s=t.topicID;0===o?(i.push(n(n({},t),{},{selfInfo:r})),l.push(s)):u.push({topicID:s,code:o,message:a})})),t._updateTopicMap(i),t._handleTopicAtInfo(i);var d="success count:".concat(l.length,", fail count:").concat(u.length);c.setNetworkType(t.getNetworkType()).setMoreMessage("".concat(d)).end(),Fe.l("".concat(r," groupID:").concat(o," from remote, ").concat(d));var p=[];return Kt(l)||(t._getTopicTimeMap.set(o,{time:Date.now(),isGetAll:s}),p=t._getLocalTopicList(o,l)),Ya({successTopicList:p,failureTopicList:u})})).catch((function(e){return t.probeNetwork(e).then((function(t){var n=_(t,2),r=n[0],o=n[1];c.setError(e,r,o).end()})),Fe.e("".concat(r," failed. error:"),e),Ja(e)}))}},{key:"hasLocalTopic",value:function(e,t){return!!this._topicMap.has(e)&&this._topicMap.get(e).has(t)}},{key:"getLocalTopic",value:function(e,t){var n=null;return this._topicMap.has(e)&&(n=this._topicMap.get(e).get(t)),n}},{key:"_getLocalTopicList",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=this._topicMap.get(e),r=[];return n&&(r=y(n.values())),0===t.length?r:r.filter((function(e){return t.includes(e.topicID)}))}},{key:"_deleteLocalTopic",value:function(e,t){this._topicMap.has(e)&&(this._topicMap.get(e).delete(t),Fe.l("".concat(this._n,"._deleteLocalTopic groupID:").concat(e," topicID:").concat(t)))}},{key:"_updateTopicMap",value:function(e){var t=this,n=[];e.forEach((function(e){var r=e.groupID,o=e.topicID,a=null;t._topicMap.has(r)||t._topicMap.set(r,new Map),t._topicMap.get(r).has(o)?(a=t._topicMap.get(r).get(o)).updateTopic(e):(t._getTopicLastMessage(e),a=new zi(e,t.isIntl()),t._topicMap.get(r).set(o,a));var i=t._computeUnreadCount(a);a.updateUnreadCount(i),n.push({conversationID:"".concat(S.CONV_GROUP).concat(o),type:S.CONV_TOPIC,unreadCount:i})})),n.length>0&&this.getModule(Vn).updateTopicConversation(n)}},{key:"resetGetTopicTime",value:function(e){var t=this;it(e)?y(this._getTopicTimeMap.keys()).forEach((function(e){t._getTopicTimeMap.set(e,0)})):this._getTopicTimeMap.set(e,0)}},{key:"getTopicListOnReconnected",value:function(){var e=this,t=y(this._topicMap.keys()),n=[];t.forEach((function(t){var r=[];e._getLocalTopicList(t).forEach((function(t){var n=t.lastMessage.lastTime,o=void 0===n?0:n;Date.now()-1e3*o<1e3*e.TOPIC_LAST_ACTIVE_TIME&&r.push(t.topicID)})),r.length>0&&n.push({groupID:t,topicIDList:r})})),Fe.l("".concat(this._n,".getTopicListOnReconnected. active community count:").concat(n.length)),this._relayGetTopicList(n)}},{key:"_relayGetTopicList",value:function(e){var t=this;if(0!==e.length){var n=e.shift(),r=n.topicIDList.length>5?"topicIDList.length:".concat(n.topicIDList.length):"topicIDList:".concat(n.topicIDList),o=new Ta("relayGetTopicList");o.setMessage(r),Fe.l("".concat(this._n,"._relayGetTopicList. ").concat(r)),this.getTopicList(n).then((function(){o.setNetworkType(t.getNetworkType()).end(),t._relayGetTopicList(e)})).catch((function(n){t.probeNetwork().then((function(e){var t=_(e,2),r=t[0],a=t[1];o.setError(n,r,a).end()})),t._relayGetTopicList(e)}))}}},{key:"_handleTopicAtInfo",value:function(e){var t=this;0!==e.length&&e.forEach((function(e){var r=e.groupID,o=e.topicID,a=e.groupAtInfoList,i=[];it(a)||(a.forEach((function(e){i.push(n(n({},e),{},{groupID:r,topicID:o}))})),t.getModule(Vn).onNewGroupAtTips({dataList:i}))}))}},{key:"_getTopicLastMessage",value:function(e){if(!it(e.lastMsg)){var t={time:e.lastMsg.time,sequence:e.lastMsg.sequence,from:e.lastMsg.from,payload:e.lastMsg.elements[0]?e.lastMsg.elements[0].content:null,type:e.lastMsg.elements[0]?e.lastMsg.elements[0].type:"",nick:e.lastMsg.nick,version:e.lastMsg.messageVersion,cloudCustomData:e.lastMsg.cloudCustomData,isRevoked:2===e.lastMsg.isPlaceMessage,revoker:Kt(e.lastMsg.revokerInfo)?null:e.lastMsg.revokerInfo.revoker};e.lastMessage=t}}},{key:"deleteTopicListInCommunity",value:function(e){var t=this,n=this._getLocalTopicList(e),r=this.getModule(Vn);n.forEach((function(n){var o=n.topicID;t._deleteLocalTopic(e,o),t._getTopicTimeMap.delete(e),r.deleteLocalConversation("".concat(S.CONV_GROUP).concat(o))}))}},{key:"_computeUnreadCount",value:function(e){var t=e.selfInfo,n=t.excludedUnreadSequenceList,r=t.readedSequence,o=e.nextMessageSeq-e.selfInfo.readedSequence-1;if(at(n)){var a=0;n.forEach((function(t){t>=r&&t<=e.nextMessageSeq-1&&(a+=1)})),a>=1&&(o-=a)}return o<0?0:o}},{key:"_filterProfanity",value:function(e,t){var n=this.getModule(rr);if(!n)return!0;var r=n.filterText(t[e],$),o=r.isAllowedToSend,a=r.modifiedText;return!0===o&&(t[e]=a,!0)}},{key:"updateLastMessage",value:function(e,t){var n=Bt(e),r=this.getLocalTopic(n,e);if(r){var o=t.sequence+1;r.updateNextMessageSeq(o),r.updateLastMessage(t),this.emitOuterEvent(I.TOPIC_UPDATED,{groupID:n,topic:r})}}},{key:"getMessageExtensions",value:function(e,t){Fe.l("".concat(this._n,".getMessageExtensions startSequence:").concat(t));var n=Bt(e.to);return this.request({protocolName:Io,requestData:{groupID:n,topicID:e.to,messageSequence:e.sequence,startSequence:t}})}},{key:"modifyMessageExtensions",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;Fe.l("".concat(this._n,".modifyMessageExtensions operateType:").concat(n));var r=Bt(e.to);return this.request({protocolName:wo,requestData:{groupID:r,topicID:e.to,messageSequence:e.sequence,extensionList:t,operateType:n}})}},{key:"reset",value:function(){Fe.l("".concat(this._n,".reset")),this._topicMap.clear(),this._getTopicTimeMap.clear(),this.TOPIC_CACHE_TIME=300,this.TOPIC_LAST_ACTIVE_TIME=3600}}]),r}(sr),Yi=function(){function e(t){o(this,e),this._userModule=t,this._n="ProfileHandler",this.TAG="profile",this.accountProfileMap=new Map,this.expirationTime=864e5}return i(e,[{key:"setExpirationTime",value:function(e){this.expirationTime=e}},{key:"getUserProfile",value:function(e){var t=this,n="".concat(this._n,".").concat("getUserProfile"),r=e.userIDList;e.fromAccount=this._userModule.getMyAccount(),r.length>100&&(Fe.w("".concat(n," ").concat(Yt(100))),r.length=100);for(var o,a=[],i=[],s=0,c=r.length;s<c;s++)o=r[s],this._userModule.isMyFriend(o)&&this._contains(o)?i.push(this._getProfileFromMap(o)):a.push(o);if(0===a.length)return $a(i);e.toAccount=a;var l=e.bFromGetMyProfile||!1,u=[];e.toAccount.forEach((function(e){u.push({toAccount:e,standardSequence:0,customSequence:0})})),e.userItem=u;var d=new Ta("getUserProfile");return d.setMessage(r.length>5?"userIDList.length:".concat(r.length):"userIDList:".concat(r)),this._userModule.request({protocolName:vr,requestData:e}).then((function(e){d.setNetworkType(t._userModule.getNetworkType()).end(),Fe.i("".concat(n," ok"));var r=t._handleResponse(e).concat(i);return Ya(l?r[0]:r)})).catch((function(e){return t._userModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];d.setError(e,r,o).end()})),Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"getMyProfile",value:function(){var e=this._userModule.getMyAccount(),t="".concat(this._n,".getMyProfile");if(Fe.l("".concat(t," myAccount:").concat(e)),this._fill(),this._contains(e)){var n=this._getProfileFromMap(e);return Fe.d("".concat(t," from cache, myProfile:").concat(JSON.stringify(n))),$a(n)}return this.getUserProfile({fromAccount:e,userIDList:[e],bFromGetMyProfile:!0})}},{key:"_handleResponse",value:function(e){var t=e.data.userProfileItem;if(!at(t))return[];for(var n=[],r=Date.now(),o=0,a=t.length;o<a;o++){var i=t[o],s=i.to,c=i.profileItem;if("@TLS#NOT_FOUND"!==s&&""!==s){var l=this._update(s,this._getLatestProfileFromResponse(s,c)).latestProfile;n.push(l)}}return Fe.l("".concat(this._n,"._handleResponse cost ").concat(Date.now()-r," ms")),n}},{key:"_getLatestProfileFromResponse",value:function(e,t){var n={userID:e,profileCustomField:[]};if(!Kt(t))for(var r=0,o=t.length;r<o;r++)if(t[r].tag.indexOf("Tag_Profile_Custom")>-1)n.profileCustomField.push({key:t[r].tag,value:t[r].value});else switch(t[r].tag){case ze.NICK:n.nick=t[r].value;break;case ze.GENDER:n.gender=t[r].value;break;case ze.BIRTHDAY:n.birthday=t[r].value;break;case ze.LOCATION:n.location=t[r].value;break;case ze.SELFSIGNATURE:n.selfSignature=t[r].value;break;case ze.ALLOWTYPE:n.allowType=t[r].value;break;case ze.LANGUAGE:n.language=t[r].value;break;case ze.AVATAR:n.avatar=t[r].value;break;case ze.MESSAGESETTINGS:n.messageSettings=t[r].value;break;case ze.ADMINFORBIDTYPE:n.adminForbidType=t[r].value;break;case ze.LEVEL:n.level=t[r].value;break;case ze.ROLE:n.role=t[r].value;break;default:Fe.w("".concat(this._n,"._getLatestProfileFromResponse unknown tag:"),t[r].tag,t[r].value)}return n}},{key:"updateMyProfile",value:function(e){var t=this,n="".concat(this._n,".").concat("updateMyProfile");if(e.nick&&!1===this._userModule.filterProfanity("nick",e))return Ja({code:fa.PROFANITY_FOUND});if(e.selfSignature&&!1===this._userModule.filterProfanity("selfSignature",e))return Ja({code:fa.PROFANITY_FOUND});var r=new Ta("updateMyProfile");r.setMessage(JSON.stringify(e));var o=(new li).validate(e);if(!o.valid)return r.setCode(fa.UPDATE_PROFILE_INVALID_PARAM).setMoreMessage("info:".concat(o.tips)).setNetworkType(this._userModule.getNetworkType()).end(),Fe.e("".concat(n," info:").concat(o.tips)),Ja({code:fa.UPDATE_PROFILE_INVALID_PARAM});var a=[];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&("profileCustomField"===i?e.profileCustomField.forEach((function(e){a.push({tag:e.key,value:e.value})})):a.push({tag:ze[i.toUpperCase()],value:e[i]}));if(0===a.length){var s=new qa({code:fa.UPDATE_PROFILE_NO_KEY});return r.setError(s,!0,this._userModule.getNetworkType()).end(),Fe.e("".concat(n," failed. error:"),s),Ja(s)}var c=this._userModule.getMyAccount();return this._userModule.request({protocolName:gr,requestData:{fromAccount:c,profileItem:a}}).then((function(o){r.setNetworkType(t._userModule.getNetworkType()).end(),Fe.i("".concat(n," ok"));var a=t._update(c,e),i=a.isProfileUpdated,s=a.latestProfile;return!0===i&&t._userModule.emitOuterEvent(I.PROFILE_UPDATED,[s]),$a(s)})).catch((function(e){return t._userModule.probeNetwork().then((function(t){var n=_(t,2),o=n[0],a=n[1];r.setError(e,o,a).end()})),Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"onProfileModified",value:function(e){var t=e.dataList;if(!Kt(t)){var n,r=t.length;Fe.d("".concat(this._n,".onProfileModified count:").concat(r," dataList:"),e.dataList);for(var o=[],a=0;a<r;a++){n=t[a].userID;var i=this._update(n,this._getLatestProfileFromResponse(n,t[a].profileList)),s=i.isProfileUpdated,c=i.latestProfile;!0===s&&o.push(c)}o.length>0&&(this._userModule.emitInnerEvent(ti,o),this._userModule.emitOuterEvent(I.PROFILE_UPDATED,o))}}},{key:"_fill",value:function(){if(0===this.accountProfileMap.size){for(var e=this._getCachedProfiles(),t=Date.now(),n=0,r=e.length;n<r;n++)t-e[n].lastUpdatedTime<this.expirationTime&&this.accountProfileMap.set(e[n].userID,e[n]);Fe.l("".concat(this._n,"._fill from cache, size:").concat(this.accountProfileMap.size))}}},{key:"_update",value:function(e,t){var n,r=!1,o=Date.now();return this._contains(e)?(n=this._getProfileFromMap(e),t.profileCustomField&&!0===Mt(n.profileCustomField,t.profileCustomField)&&(n.lastUpdatedTime=o,r=!0),pt(n,t,["profileCustomField"])>0&&(n.lastUpdatedTime=o,r=!0)):(n=new li(t),(this._userModule.isMyFriend(e)||e===this._userModule.getMyAccount())&&(n.lastUpdatedTime=o,r=!0,this.accountProfileMap.set(e,n))),this._flush(e===this._userModule.getMyAccount()),Fe.l("".concat(this._n,"._update account:").concat(e," isProfileUpdated:").concat(r)),{isProfileUpdated:r,latestProfile:n}}},{key:"_flush",value:function(e){var t=y(this.accountProfileMap.values()),n=this._userModule.getStorageModule();Fe.d("".concat(this._n,"._flush length:").concat(t.length," flushAtOnce:").concat(e)),n.setItem(this.TAG,t,e)}},{key:"_contains",value:function(e){return this.accountProfileMap.has(e)}},{key:"_getProfileFromMap",value:function(e){return this.accountProfileMap.get(e)}},{key:"_getCachedProfiles",value:function(){var e=this._userModule.getStorageModule().getItem(this.TAG);return Kt(e)?[]:e}},{key:"onConversationsProfileUpdated",value:function(e){for(var t,n,r,o=[],a=0,i=e.length;a<i;a++)n=(t=e[a]).userID,this._userModule.isMyFriend(n)||(this._contains(n)?(r=this._getProfileFromMap(n),pt(r,t)>0&&o.push(n)):o.push(t.userID));0!==o.length&&(Fe.i("".concat(this._n,".onConversationsProfileUpdated toAccountList:").concat(o)),this.getUserProfile({userIDList:o}))}},{key:"getNickAndAvatarByUserID",value:function(e){if(this._contains(e)){var t=this._getProfileFromMap(e);return{nick:t.nick,avatar:t.avatar}}return{nick:"",avatar:""}}},{key:"reset",value:function(){this._flush(!0),this.accountProfileMap.clear()}}]),e}(),qi=i((function e(t){o(this,e),Kt||(this.userID=t.userID||"",this.timeStamp=t.timeStamp||0)})),Wi=function(){function e(t){o(this,e),this._userModule=t,this._n="BlacklistHandler",this._blacklistMap=new Map,this.startIndex=0,this.maxLimited=100,this.currentSequence=0}return i(e,[{key:"getLocalBlacklist",value:function(){return y(this._blacklistMap.keys())}},{key:"getBlacklist",value:function(){var e=this,t="".concat(this._n,".getBlacklist"),n={fromAccount:this._userModule.getMyAccount(),maxLimited:this.maxLimited,startIndex:0,lastSequence:this.currentSequence},r=new Ta("getBlacklist");return this._userModule.request({protocolName:_r,requestData:n}).then((function(n){var o=n.data,a=o.blackListItem,i=o.currentSequence,s=Kt(a)?0:a.length;r.setNetworkType(e._userModule.getNetworkType()).setMessage("count:".concat(s)).end(),Fe.i("".concat(t," ok")),e.currentSequence=i,e._handleResponse(a,!0),e._userModule.emitOuterEvent(I.BLACKLIST_UPDATED,y(e._blacklistMap.keys()))})).catch((function(n){return e._userModule.probeNetwork().then((function(e){var t=_(e,2),o=t[0],a=t[1];r.setError(n,o,a).end()})),Fe.e("".concat(t," failed. error:"),n),Ja(n)}))}},{key:"addBlacklist",value:function(e){var t=this,n=new Ta("addToBlacklist"),r="".concat(this._n,".addBlacklist"),o=this._userModule.getMyAccount();if(1===e.userIDList.length&&e.userIDList[0]===o){var a=fa.CANNOT_ADD_SELF_TO_BLACKLIST,i=this._userModule.getErrorMessage(a);n.setCode(a).setMessage(i).setNetworkType(this._userModule.getNetworkType()).end();var s=new qa({code:a});return Fe.e("".concat(r," failed. error:"),s),Ja(s)}return e.userIDList.includes(o)&&(e.userIDList=e.userIDList.filter((function(e){return e!==o}))),e.fromAccount=this._userModule.getMyAccount(),e.toAccount=e.userIDList,this._userModule.request({protocolName:yr,requestData:e}).then((function(o){return n.setNetworkType(t._userModule.getNetworkType()).setMessage(e.userIDList.length>5?"userIDList.length:".concat(e.userIDList.length):"userIDList:".concat(e.userIDList)).end(),Fe.i("".concat(r," ok")),t._handleResponse(o.resultItem,!0),Ya(y(t._blacklistMap.keys()))})).catch((function(e){return t._userModule.probeNetwork().then((function(t){var r=_(t,2),o=r[0],a=r[1];n.setError(e,o,a).end()})),Fe.e("".concat(r," failed. error:"),e),Ja(e)}))}},{key:"_handleResponse",value:function(e,t){if(!Kt(e))for(var n,r,o,a=0,i=e.length;a<i;a++)r=e[a].to,o=e[a].resultCode,(it(o)||0===o)&&(t?((n=this._blacklistMap.has(r)?this._blacklistMap.get(r):new qi).userID=r,!Kt(e[a].addBlackTimeStamp)&&(n.timeStamp=e[a].addBlackTimeStamp),this._blacklistMap.set(r,n)):this._blacklistMap.has(r)&&(n=this._blacklistMap.get(r),this._blacklistMap.delete(r)));Fe.l("".concat(this._n,"._handleResponse total:").concat(this._blacklistMap.size," bAdd:").concat(t))}},{key:"deleteBlacklist",value:function(e){var t=this,n="".concat(this._n,".deleteBlacklist"),r=new Ta("removeFromBlacklist");return e.fromAccount=this._userModule.getMyAccount(),e.toAccount=e.userIDList,this._userModule.request({protocolName:br,requestData:e}).then((function(o){return r.setNetworkType(t._userModule.getNetworkType()).setMessage(e.userIDList.length>5?"userIDList.length:".concat(e.userIDList.length):"userIDList:".concat(e.userIDList)).end(),Fe.i("".concat(n," ok")),t._handleResponse(o.data.resultItem,!1),Ya(y(t._blacklistMap.keys()))})).catch((function(e){return t._userModule.probeNetwork().then((function(t){var n=_(t,2),o=n[0],a=n[1];r.setError(e,o,a).end()})),Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"onAccountDeleted",value:function(e){for(var t,n=[],r=0,o=e.length;r<o;r++)t=e[r],this._blacklistMap.has(t)&&(this._blacklistMap.delete(t),n.push(t));n.length>0&&(Fe.l("".concat(this._n,".onAccountDeleted count:").concat(n.length," userIDList:"),n),this._userModule.emitOuterEvent(I.BLACKLIST_UPDATED,y(this._blacklistMap.keys())))}},{key:"onAccountAdded",value:function(e){for(var t,n=[],r=0,o=e.length;r<o;r++)t=e[r],this._blacklistMap.has(t)||(this._blacklistMap.set(t,new qi({userID:t})),n.push(t));n.length>0&&(Fe.l("".concat(this._n,".onAccountAdded count:").concat(n.length," userIDList:"),n),this._userModule.emitOuterEvent(I.BLACKLIST_UPDATED,y(this._blacklistMap.keys())))}},{key:"reset",value:function(){this._blacklistMap.clear(),this.startIndex=0,this.maxLimited=100,this.currentSequence=0}}]),e}(),Ki=function(e){var t=String(e).replace(/[=]+$/,""),n="";if(t.length%4==1)return"";for(var r,o,a=0,i=0;o=t.charAt(i++);~o&&(r=a%4?64*r+o:o,a++%4)?n+=String.fromCharCode(255&r>>(-2*a&6)):0)o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);try{return decodeURIComponent(escape(n))}catch(c){return""}},$i=function(){function e(t){o(this,e),this._userModule=t,this._n="UserStatusHandler",this.MAX_QUERY_USER_COUNT=500,this.MAX_SUBSCRIBE_USER_COUNT=100,this.MAX_UNSUBSCRIBE_USER_COUNT=100,this._userModule.getInnerEmitterInstance().on(ei,this._onCloudConfigUpdated,this)}return i(e,[{key:"_onCloudConfigUpdated",value:function(){var e=this._userModule.getCloudConfig("status_query_count"),t=this._userModule.getCloudConfig("status_sub_count"),n=this._userModule.getCloudConfig("status_unsub_count");Fe.l("".concat(this._n,"._onCloudConfigUpdated statusQueryCount:").concat(e," statusSubscribeCount:").concat(t)+" statusUnsubscribeCount:".concat(n)),it(e)||(this.MAX_QUERY_USER_COUNT=parseInt(e,10)),it(e)||(this.MAX_SUBSCRIBE_USER_COUNT=parseInt(t,10)),it(e)||(this.MAX_UNSUBSCRIBE_USER_COUNT=parseInt(n,10))}},{key:"onUserStatusUpdated",value:function(e){var t=e.dataList,n=this._userModule.getMyUserID(),r=this._userModule.getModule(Bn),o=t.map((function(e){var t=e.to,o=e.statusType,a=e.customStatus,i=Ki(a);return t===n&&r.setCustomStatus(i),{userID:t,statusType:o,customStatus:i}}));this._userModule.emitOuterEvent(I.USER_STATUS_UPDATED,o)}},{key:"setSelfStatus",value:function(e){var t=this,n="".concat(this._n,".setSelfStatus");if(!1===this._userModule.filterProfanity("customStatus",e))return Ja({code:fa.PROFANITY_FOUND});var r=new Ta("setSelfStatus"),o=e.customStatus;return this._userModule.request({protocolName:oa,requestData:{customStatus:o}}).then((function(e){return r.setNetworkType(t._userModule.getNetworkType()).setMessage("customStatus:".concat(o)).end(),Fe.l("".concat(n," ok. customStatus:").concat(o)),t._userModule.getModule(Bn).setCustomStatus(o),Ya({userID:t._userModule.getMyUserID(),statusType:1,customStatus:o})})).catch((function(e){return t._userModule.probeNetwork().then((function(t){var n=_(t,2),o=n[0],a=n[1];r.setError(e,o,a).end()})),Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"getUserStatus",value:function(e){var t=this,n="".concat(this._n,".getUserStatus"),r=e.userIDList,o=void 0===r?[]:r,a=this._userModule.getMyUserID(),i=y(o),s=void 0,c=i.indexOf(a);if(c>-1){i.splice(c,1);var l=this._userModule.getModule(Bn).getCustomStatus();s={userID:a,statusType:1,customStatus:l}}if(0===i.length)return $a({successUserList:[s],failureUserList:[]});if(!this._userModule.canIUse(z.USER_STATUS))return Ja({code:fa.CANNOT_USE_COMMERCIAL_ABILITY});i.length>this.MAX_QUERY_USER_COUNT&&(Fe.w("".concat(n," ").concat(Yt(this.MAX_QUERY_USER_COUNT))),i=o.slice(0,this.MAX_QUERY_USER_COUNT));var u=new Ta("getUserStatus");return this._userModule.request({protocolName:aa,requestData:{userIDList:i}}).then((function(e){var r=e.data,a=r.successUserList,i=void 0===a?[]:a,c=r.failureUserList,l=void 0===c?[]:c,d=i.map((function(e){var t=e.userID,n=e.statusType,r=e.customStatus;return{userID:t,statusType:n,customStatus:Ki(r)}})),p=l.map((function(e){var t=e.userID,n=e.invalidUserID,r=e.errorCode,o=e.errorInfo;return{userID:Kt(n)?t:n,code:r,message:o}}));it(s)||d.unshift(s);var f="userID count:".concat(o.length,", success count:").concat(d.length,", fail count:").concat(p.length);return u.setNetworkType(t._userModule.getNetworkType()).setMessage("".concat(f)).end(),Fe.l("".concat(n," ok. ").concat(f,".")),Ya({successUserList:d,failureUserList:p})})).catch((function(e){return t._userModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],a=n[1];u.setMessage("userID count:".concat(o.length)).setError(e,r,a).end()})),Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"subscribeUserStatus",value:function(e){var t=this;if(!this._userModule.canIUse(z.USER_STATUS))return Ja({code:fa.CANNOT_USE_COMMERCIAL_ABILITY});var n="".concat(this._n,".subscribeUserStatus"),r=e.userIDList,o=void 0===r?[]:r,a=y(o);a.length>this.MAX_SUBSCRIBE_USER_COUNT&&(Fe.w("".concat(n," ").concat(Yt(this.MAX_SUBSCRIBE_USER_COUNT))),a=o.slice(0,this.MAX_SUBSCRIBE_USER_COUNT));var i=new Ta("subscribeUserStatus"),s="userID count:".concat(o.length);return Fe.l("".concat(n," ").concat(s)),this._userModule.request({protocolName:ia,requestData:{userIDList:a}}).then((function(e){var r=e.data.failureUserList,o=(void 0===r?[]:r).map((function(e){var t=e.userID,n=e.invalidUserID,r=e.errorCode,o=e.errorInfo;return{userID:Kt(n)?t:n,code:r,message:o}}));return i.setNetworkType(t._userModule.getNetworkType()).setMessage("".concat(s," fail count:").concat(o.length)).end(),Fe.l("".concat(n," ok. fail count:").concat(o.length,".")),Ya({failureUserList:o})})).catch((function(e){return t._userModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setMessage("".concat(s)).setError(e,r,o).end()})),Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"unsubscribeUserStatus",value:function(e){var t=this;if(!this._userModule.canIUse(z.USER_STATUS))return Ja({code:fa.CANNOT_USE_COMMERCIAL_ABILITY});var n="".concat(this._n,".unsubscribeUserStatus"),r=(e||{}).userIDList,o=void 0===r?[]:r,a=y(o);o.length>this.MAX_UNSUBSCRIBE_USER_COUNT&&(Fe.w("".concat(n," ").concat(Yt(this.MAX_UNSUBSCRIBE_USER_COUNT))),a=o.slice(0,this.MAX_UNSUBSCRIBE_USER_COUNT));var i=new Ta("unsubscribeUserStatus"),s="userID count:".concat(o.length);Fe.l("".concat(n," ").concat(s));var c={userIDList:a};return 0===a.length&&(c.userIDList=void 0,c.unsubscribeAll=1),this._userModule.request({protocolName:sa,requestData:c}).then((function(e){var r=e.data.failureUserList,o=(void 0===r?[]:r).map((function(e){var t=e.userID,n=e.invalidUserID,r=e.errorCode,o=e.errorInfo;return{userID:Kt(n)?t:n,code:r,message:o}}));return i.setNetworkType(t._userModule.getNetworkType()).setMessage("".concat(s," fail count:").concat(o.length)).end(),Fe.l("".concat(n," ok. fail count:").concat(o.length,".")),Ya({failureUserList:o})})).catch((function(e){return t._userModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setMessage("".concat(s)).setError(e,r,o).end()})),Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"reset",value:function(){this.MAX_QUERY_USER_COUNT=500,this.MAX_SUBSCRIBE_USER_COUNT=100,this.MAX_UNSUBSCRIBE_USER_COUNT=100}}]),e}(),Ji=function(e){c(n,e);var t=g(n);function n(e){var r;return o(this,n),(r=t.call(this,e))._n="UserModule",r._profileHandler=new Yi(m(r)),r._blacklistHandler=new Wi(m(r)),r._userStatusHandler=new $i(m(r)),r.getInnerEmitterInstance().on(Za,r.onContextUpdated,m(r)),r}return i(n,[{key:"onContextUpdated",value:function(e){this._profileHandler.getMyProfile(),this._blacklistHandler.getBlacklist()}},{key:"onProfileModified",value:function(e){this._profileHandler.onProfileModified(e)}},{key:"onRelationChainModified",value:function(e){var t=e.dataList;if(!Kt(t)){var n=[];t.forEach((function(e){e.blackListDelAccount&&n.push.apply(n,y(e.blackListDelAccount))})),n.length>0&&this._blacklistHandler.onAccountDeleted(n);var r=[];t.forEach((function(e){e.blackListAddAccount&&r.push.apply(r,y(e.blackListAddAccount))})),r.length>0&&this._blacklistHandler.onAccountAdded(r)}}},{key:"onConversationsProfileUpdated",value:function(e){this._profileHandler.onConversationsProfileUpdated(e)}},{key:"getMyAccount",value:function(){return this.getMyUserID()}},{key:"getMyProfile",value:function(){return this._profileHandler.getMyProfile()}},{key:"getStorageModule",value:function(){return this.getModule(Fn)}},{key:"filterProfanity",value:function(e,t){var n=this.getModule(rr);if(!n)return!0;var r=n.filterText(t[e],K),o=r.isAllowedToSend,a=r.modifiedText;return!0===o&&(t[e]=a,!0)}},{key:"isMyFriend",value:function(e){var t=this.getModule(Rn);return!!t&&t.isMyFriend(e)}},{key:"getUserProfile",value:function(e){return this._profileHandler.getUserProfile(e)}},{key:"updateMyProfile",value:function(e){return this._profileHandler.updateMyProfile(e)}},{key:"getNickAndAvatarByUserID",value:function(e){return this._profileHandler.getNickAndAvatarByUserID(e)}},{key:"getLocalBlacklist",value:function(){var e=this._blacklistHandler.getLocalBlacklist();return $a(e)}},{key:"addBlacklist",value:function(e){return this._blacklistHandler.addBlacklist(e)}},{key:"deleteBlacklist",value:function(e){return this._blacklistHandler.deleteBlacklist(e)}},{key:"onUserStatusUpdated",value:function(e){this._userStatusHandler.onUserStatusUpdated(e)}},{key:"setSelfStatus",value:function(e){return this._userStatusHandler.setSelfStatus(e)}},{key:"getUserStatus",value:function(e){return this._userStatusHandler.getUserStatus(e)}},{key:"subscribeUserStatus",value:function(e){return this._userStatusHandler.subscribeUserStatus(e)}},{key:"unsubscribeUserStatus",value:function(e){return this._userStatusHandler.unsubscribeUserStatus(e)}},{key:"reset",value:function(){Fe.l("".concat(this._n,".reset")),this._profileHandler.reset(),this._blacklistHandler.reset(),this._userStatusHandler.reset()}}]),n}(sr),Qi=function(){function e(t,n){o(this,e),this._m=t,this._isLoggedIn=!1,this._SDKAppID=n.SDKAppID,this._userID=n.userID||"",this._userSig=n.userSig||"",this._version="2.27.1",this._a2Key="",this._tinyID="",this._customStatus="",this._contentType="json",this._unlimitedAVChatRoom=n.unlimitedAVChatRoom,this._scene=n.scene||"",this._oversea=n.oversea,this._instanceID=n.instanceID,this._statusInstanceID=0,this._isDevMode=n.devMode,this._proxyServer=n.proxyServer,this._fileUploadProxy=n.fileUploadProxy,this._fileDownloadProxy=n.fileDownloadProxy}return i(e,[{key:"isLoggedIn",value:function(){return this._isLoggedIn}},{key:"isOversea",value:function(){return this._oversea}},{key:"isPrivateNetWork",value:function(){return this._proxyServer}},{key:"isDevMode",value:function(){return this._isDevMode}},{key:"isSingaporeSite",value:function(){return this._SDKAppID>=2e7&&this._SDKAppID<3e7||this._SDKAppID>=172e7&&this._SDKAppID<173e7}},{key:"isKoreaSite",value:function(){return this._SDKAppID>=3e7&&this._SDKAppID<4e7||this._SDKAppID>=173e7&&this._SDKAppID<174e7}},{key:"isGermanySite",value:function(){return this._SDKAppID>=4e7&&this._SDKAppID<5e7||this._SDKAppID>=174e7&&this._SDKAppID<175e7}},{key:"isIndiaSite",value:function(){return this._SDKAppID>=5e7&&this._SDKAppID<6e7||this._SDKAppID>=175e7&&this._SDKAppID<176e7}},{key:"isJapanSite",value:function(){return this._SDKAppID>=6e7&&this._SDKAppID<7e7||this._SDKAppID>=176e7&&this._SDKAppID<177e7}},{key:"isUSASite",value:function(){return this._SDKAppID>=7e7&&this._SDKAppID<8e7||this._SDKAppID>=177e7&&this._SDKAppID<178e7}},{key:"isIntl",value:function(){return 0===(e=this._SDKAppID)||e>=2e7&&e<8e7||e>=172e7&&e<178e7;var e}},{key:"isUnlimitedAVChatRoom",value:function(){return this._unlimitedAVChatRoom}},{key:"setUserID",value:function(e){this._userID=e}},{key:"getUserID",value:function(){return this._userID}},{key:"setUserSig",value:function(e){this._userSig=e}},{key:"getUserSig",value:function(){return this._userSig}},{key:"getSDKAppID",value:function(){return this._SDKAppID}},{key:"setTinyID",value:function(e){this._tinyID=e,this._isLoggedIn=!0}},{key:"getTinyID",value:function(){return this._tinyID}},{key:"setCustomStatus",value:function(e){this._customStatus=e}},{key:"getCustomStatus",value:function(){return this._customStatus}},{key:"getScene",value:function(){return Ee?window.tencent_cloud_im_csig_flutter_for_web_25F_cy:this._isTUIKit()?"tuikit":this._scene}},{key:"getInstanceID",value:function(){return this._instanceID}},{key:"getStatusInstanceID",value:function(){return this._statusInstanceID}},{key:"setStatusInstanceID",value:function(e){this._statusInstanceID=e}},{key:"getVersion",value:function(){return this._version}},{key:"getA2Key",value:function(){return this._a2Key}},{key:"setA2Key",value:function(e){this._a2Key=e}},{key:"getContentType",value:function(){return this._contentType}},{key:"getProxyServer",value:function(){return this._proxyServer}},{key:"getFileUploadProxy",value:function(){return this._fileUploadProxy}},{key:"getFileDownloadProxy",value:function(){return this._fileDownloadProxy}},{key:"_isTUIKit",value:function(){var e=!1,t=!1,n=!1,r=!1,o=[];ae&&(o=Object.keys(se)),ie&&(o=oe?Object.keys(uni):Object.keys(window));for(var a=0,i=o.length;a<i;a++)if(o[a].toLowerCase().includes("uikit")){e=!0;break}if(o=null,ae&&!ct(se.createGamePortal)&&ct(getApp)&&!it(getApp())){var s=getApp().globalData;ot(s)&&!0===s.isTUIKit&&(t=!0)}!0===this._m.getModule(Fn).getStorageSync("TIM_".concat(this._SDKAppID,"_isTUIKit"))&&(n=!0);var c=null;if(Q&&!Z&&"undefined"==typeof uni&&__wxConfig&&(c=__wxConfig.pages),X&&"undefined"==typeof uni&&__qqConfig&&(c=__qqConfig.pages),at(c)&&c.length>0){for(var l=0,u=c.length;l<u;l++)if(c[l].toLowerCase().includes("tui")){r=!0;break}c=null}return e||t||n||r}},{key:"reset",value:function(){this._isLoggedIn=!1,this._userSig="",this._a2Key="",this._tinyID="",this._customStatus="",this._statusInstanceID=0}}]),e}(),Xi=function(e){c(n,e);var t=g(n);function n(e){var r;return o(this,n),(r=t.call(this,e))._n="SignModule",r._helloInterval=120,r._lastLoginTs=0,r._lastWsHelloTs=0,r._isWebUniapp=0,ni.mixin(m(r)),r}return i(n,[{key:"onCheckTimer",value:function(e){this.isLoggedIn()&&e%this._helloInterval==0&&this._hello()}},{key:"login",value:function(e){var t="";if(this.isLoggedIn()){var n=this.getMyUserID();return(t=this.getErrorMessage("RepeatLogin",n))&&Fe.w(t),$a({actionStatus:"OK",errorCode:0,errorInfo:t,repeatLogin:!0})}if(Date.now()-this._lastLoginTs<=15e3)return this.outputWarning("LoggingIn",e.userID),Ja({code:fa.REPEAT_LOGIN});Fe.l("".concat(this._n,".login userID:").concat(e.userID));var r=this._checkLoginInfo(e);if(0!==r.code)return Ja(r);var o=this.getModule(Bn),a=e.userID,i=e.userSig;return o.setUserID(a),o.setUserSig(i),this.getModule(Kn).updateProtocolConfig(),this._login()}},{key:"_login",value:function(){var e=this,t=this.getModule(Bn),n=t.getScene(),r=0,o=new Ta("login");o.setMessage("".concat(n)).setMoreMessage("identifier:".concat(this.getMyUserID())),oe?"tuikit"===n?o.setUIPlatform(4):o.setUIPlatform(3):ae?"tuikit"===n?o.setUIPlatform(12):o.setUIPlatform(11):ie&&(Ee?"flutter_web_uikit"===n?o.setUIPlatform(21):o.setUIPlatform(20):this._isReactUIKit()?Te?o.setUIPlatform(25):o.setUIPlatform(24):Te?"tuikit"===n?o.setUIPlatform(17):o.setUIPlatform(16):"tuikit"===n?o.setUIPlatform(14):o.setUIPlatform(13));var a=this.getModule(nr);if(a.canIUseOfflinePush()){this._isWebUniapp=a.getUniAppPlatform();var i=this._getStatusInstanceID();t.setStatusInstanceID(i),this.getModule(Kn).updateProtocolConfig(),r=a.getDeviceBrand()}var s="".concat(this._n,"._login");return this._lastLoginTs=Date.now(),this.request({protocolName:cr,requestData:{deviceBrand:r,isWebUniapp:this._isWebUniapp}}).then((function(r){e._lastLoginTs=0;var a=Date.now(),i=null,c=r.data,l=c.a2Key,u=c.tinyID,d=c.helloInterval,p=c.instanceID,f=c.timeStamp,h=c.customStatus,m=void 0===h?"":h;Fe.l("".concat(s," ok. scene:").concat(n," helloInterval:").concat(d," instanceID:").concat(p," timeStamp:").concat(f));var v=1e3*f,g=a-o.getStartTs(),_=v+parseInt(g/2)-a,y=o.getStartTs()+_;if(o.start(y),function(e,t){Ne=t;var n=new Date;n.setTime(e),Fe.i("baseTime from server:".concat(n," offset:").concat(Ne))}(v,_),!u)throw i=new qa({code:fa.NO_TINYID}),o.setError(i,!0,e.getNetworkType()).end(),i;if(!l)throw i=new qa({code:fa.NO_A2KEY}),o.setError(i,!0,e.getNetworkType()).end(),i;var b=Ki(m);o.setNetworkType(e.getNetworkType()).setMoreMessage("helloInterval:".concat(d," instanceID:").concat(p," offset:").concat(_," customStatus:").concat(b)).end(),t.setA2Key(l),t.setTinyID(u),t.setStatusInstanceID(p),t.setCustomStatus(b),e.getModule(Kn).updateProtocolConfig(),e.emitInnerEvent(Za),e._helloInterval=d,e.triggerReady();var O=e.getModule(nr);return O.canIUseOfflinePush()&&(uni.setStorageSync("timUniAppInstanceID",p),O.init()),e._fetchCloudControlConfig(),e.getModule(rr).init(),r})).catch((function(t){return e.probeNetwork().then((function(e){var n=_(e,2),r=n[0],a=n[1];o.setError(t,r,a).end(!0)})),e._m.setNotReadyReason(fa.LOGIN_FAILED),Fe.e("".concat(s," failed. error:"),t),e._lastLoginTs=0,e._m.onLoginFailed(),Ja(t)}))}},{key:"logout",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(!this.isLoggedIn())return Ja({code:fa.USER_NOT_LOGGED_IN});var n=new Ta("logout");n.setNetworkType(this.getNetworkType()).setMessage("identifier:".concat(this.getMyUserID())).end(!0);var r="".concat(this._n,".logout");return Fe.i("".concat(r," type:").concat(t)),0===t&&this._m.setNotReadyReason(fa.LOGGED_OUT),this.request({protocolName:lr,requestData:{type:t}}).then((function(){return e.resetReady(),$a({})})).catch((function(t){return Fe.e("".concat(r," error:"),t),e.resetReady(),$a({})}))}},{key:"_fetchCloudControlConfig",value:function(){this.getModule(Qn).fetchConfig()}},{key:"_getStatusInstanceID",value:function(){return uni.getStorageSync("timUniAppInstanceID")}},{key:"_hello",value:function(){var e=this;this._lastWsHelloTs=Date.now(),this.request({protocolName:ur,requestData:{isWebUniapp:this._isWebUniapp}}).catch((function(t){Fe.w("".concat(e._n,"._hello error:"),t)}))}},{key:"getLastWsHelloTs",value:function(){return this._lastWsHelloTs}},{key:"_checkLoginInfo",value:function(e){var t=0;return Kt(this.getModule(Bn).getSDKAppID())?t=fa.NO_SDKAPPID:Kt(e.userID)?t=fa.NO_IDENTIFIER:Kt(e.userSig)&&(t=fa.NO_USERSIG),{code:t}}},{key:"_isReactUIKit",value:function(){return ie&&void 0!==window.tencent_cloud_im_csig_react_uikit_23F_xa}},{key:"onMultipleAccountKickedOut",value:function(e){var t=this;new Ta("kickedOut").setNetworkType(this.getNetworkType()).setMessage("type:".concat(S.KICKED_OUT_MULT_ACCOUNT," newInstanceInfo:").concat(JSON.stringify(e))).end(!0),Fe.w("".concat(this._n,".onMultipleAccountKickedOut userID:").concat(this.getMyUserID()," newInstanceInfo:"),e),this.logout(1).then((function(){t.emitOuterEvent(I.KICKED_OUT,{type:S.KICKED_OUT_MULT_ACCOUNT}),t._m.setNotReadyReason(fa.KICKED_OUT_MULT_ACCOUNT),t._m.reset()}))}},{key:"onMultipleDeviceKickedOut",value:function(e){var t=this;new Ta("kickedOut").setNetworkType(this.getNetworkType()).setMessage("type:".concat(S.KICKED_OUT_MULT_DEVICE," newInstanceInfo:").concat(JSON.stringify(e))).end(!0),Fe.w("".concat(this._n,".onMultipleDeviceKickedOut userID:").concat(this.getMyUserID()," newInstanceInfo:"),e),this.logout(1).then((function(){t.emitOuterEvent(I.KICKED_OUT,{type:S.KICKED_OUT_MULT_DEVICE}),t._m.setNotReadyReason(fa.KICKED_OUT_MULT_DEVICE),t._m.reset()}))}},{key:"onUserSigExpired",value:function(){new Ta("kickedOut").setNetworkType(this.getNetworkType()).setMessage(S.KICKED_OUT_USERSIG_EXPIRED).end(!0),Fe.w("".concat(this._n,".onUserSigExpired: userSig expired")),0!==this.getModule(Bn).getStatusInstanceID()&&(this.emitOuterEvent(I.KICKED_OUT,{type:S.KICKED_OUT_USERSIG_EXPIRED}),this._m.setNotReadyReason(fa.KICKED_OUT_USERSIG_EXPIRED),this._m.reset())}},{key:"onRestApiKickedOut",value:function(e){new Ta("kickedOut").setNetworkType(this.getNetworkType()).setMessage("type:".concat(S.KICKED_OUT_REST_API," newInstanceInfo:").concat(JSON.stringify(e))).end(!0),Fe.w("".concat(this._n,".onRestApiKickedOut userID:").concat(this.getMyUserID()," newInstanceInfo:"),e),0!==this.getModule(Bn).getStatusInstanceID()&&(this.emitOuterEvent(I.KICKED_OUT,{type:S.KICKED_OUT_REST_API}),this._m.setNotReadyReason(fa.KICKED_OUT_REST_API),this._m.reset(),this.getModule($n).onRestApiKickedOut())}},{key:"reset",value:function(){Fe.l("".concat(this._n,".reset")),this.resetReady(),this._helloInterval=120,this._lastLoginTs=0,this._lastWsHelloTs=0,this._isWebUniapp=0}}]),n}(sr);function Zi(){return null}var es=function(){function e(t){o(this,e),this._m=t,this._n="StorageModule",this._storageQueue=new Map,this._errorTolerantHandle()}return i(e,[{key:"_errorTolerantHandle",value:function(){ae||!it(window)&&this._canIUseCookies()||(this.getItem=Zi,this.setItem=Zi,this.removeItem=Zi,this.clear=Zi)}},{key:"onCheckTimer",value:function(e){if(e%20==0){if(0===this._storageQueue.size)return;this._doFlush()}}},{key:"_doFlush",value:function(){try{var e,t=w(this._storageQueue);try{for(t.s();!(e=t.n()).done;){var n=_(e.value,2),r=n[0],o=n[1];this._setStorageSync(this._getKey(r),o)}}catch(i){t.e(i)}finally{t.f()}this._storageQueue.clear()}catch(s){Fe.w("".concat(this._n,"._doFlush error:"),s)}}},{key:"_getPrefix",value:function(){var e=this._m.getModule(Bn);return"TIM_".concat(e.getSDKAppID(),"_").concat(e.getUserID(),"_")}},{key:"_getKey",value:function(e){return"".concat(this._getPrefix()).concat(e)}},{key:"getItem",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];try{var n=t?this._getKey(e):e;return this.getStorageSync(n)}catch(o){return Fe.w("".concat(this._n,".getItem error:"),o),{}}}},{key:"setItem",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(n){var o=r?this._getKey(e):e;this._setStorageSync(o,t)}else this._storageQueue.set(e,t)}},{key:"clear",value:function(){try{ae?se.clearStorageSync():this._canIUseCookies()&&localStorage.clear()}catch(e){Fe.w("".concat(this._n,".clear error:"),e)}}},{key:"removeItem",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];try{var n=t?this._getKey(e):e;this._removeStorageSync(n)}catch(o){Fe.w("".concat(this._n,".removeItem error:"),o)}}},{key:"getSize",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"b";try{var r={size:0,limitSize:5242880,unit:n};if(Object.defineProperty(r,"leftSize",{enumerable:!0,get:function(){return r.limitSize-r.size}}),ae&&(r.limitSize=1024*se.getStorageInfoSync().limitSize),e)r.size=JSON.stringify(this.getItem(e)).length+this._getKey(e).length;else if(ae){var o=se.getStorageInfoSync(),a=o.keys;a.forEach((function(e){r.size+=JSON.stringify(t.getStorageSync(e)).length+t._getKey(e).length}))}else if(this._canIUseCookies())for(var i in localStorage)localStorage.hasOwnProperty(i)&&(r.size+=localStorage.getItem(i).length+i.length);return this._convertUnit(r)}catch(c){Fe.w("".concat(this._n," error:"),c)}}},{key:"_convertUnit",value:function(e){var t={},n=e.unit;for(var r in t.unit=n,e)"number"==typeof e[r]&&("kb"===n.toLowerCase()?t[r]=Math.round(e[r]/1024):"mb"===n.toLowerCase()?t[r]=Math.round(e[r]/1024/1024):t[r]=e[r]);return t}},{key:"_setStorageSync",value:function(e,t){ae?te?my.setStorageSync({key:e,data:t}):se.setStorageSync(e,t):this._canIUseCookies()&&localStorage.setItem(e,JSON.stringify(t))}},{key:"getStorageSync",value:function(e){return ae?te?my.getStorageSync({key:e}).data:se.getStorageSync(e):this._canIUseCookies()?JSON.parse(localStorage.getItem(e)):{}}},{key:"_removeStorageSync",value:function(e){ae?te?my.removeStorageSync({key:e}):se.removeStorageSync(e):this._canIUseCookies()&&localStorage.removeItem(e)}},{key:"_canIUseCookies",value:function(){return navigator&&navigator.cookieEnabled&&localStorage}},{key:"reset",value:function(){Fe.l("".concat(this._n,".reset")),this._doFlush()}}]),e}(),ts=function(){function e(t){o(this,e),this._n="SSOLogBody",this._report=[]}return i(e,[{key:"pushIn",value:function(e){Fe.d("".concat(this._n,".pushIn"),this._report.length,e),this._report.push(e)}},{key:"backfill",value:function(e){var t;at(e)&&0!==e.length&&(Fe.d("".concat(this._n,".backfill"),this._report.length,e.length),(t=this._report).unshift.apply(t,y(e)))}},{key:"getLogsNumInMemory",value:function(){return this._report.length}},{key:"isEmpty",value:function(){return 0===this._report.length}},{key:"_reset",value:function(){this._report.length=0,this._report=[]}},{key:"getLogsInMemory",value:function(){var e=this._report.slice();return this._reset(),e}}]),e}(),ns=function(e){var t=e.getModule(Bn);return{SDKType:10,SDKAppID:t.getSDKAppID(),SDKVersion:t.getVersion(),tinyID:Number(t.getTinyID()),userID:t.getUserID(),platform:e.getPlatform(),instanceID:t.getInstanceID(),traceID:xe()}},rs=function(e){c(r,e);var t=g(r);function r(e){var n;o(this,r),(n=t.call(this,e))._n="EventStatModule",n.TAG="im-ssolog-event",n._reportBody=new ts,n.MIN_THRESHOLD=20,n.MAX_THRESHOLD=100,n.WAITING_TIME=6e4,n.REPORT_LEVEL=[4,5,6],n.REPORT_SDKAPPID_BLACKLIST=[],n.REPORT_TINYID_WHITELIST=[],n._lastReportTime=Date.now();var a=n.getInnerEmitterInstance();return a.on(Za,n._onLoginSuccess,m(n)),a.on(ei,n._onCloudConfigUpdated,m(n)),n}return i(r,[{key:"reportAtOnce",value:function(){Fe.d("".concat(this._n,".reportAtOnce")),this._report()}},{key:"_onLoginSuccess",value:function(){var e=this,t=this.getModule(Fn),n=t.getItem(this.TAG,!1);!Kt(n)&&ct(n.forEach)&&(Fe.l("".concat(this._n,"._onLoginSuccess get ssolog in storage, count:").concat(n.length)),n.forEach((function(t){e._reportBody.pushIn(t)})),t.removeItem(this.TAG,!1))}},{key:"_onCloudConfigUpdated",value:function(){var e=this.getCloudConfig("evt_rpt_threshold"),t=this.getCloudConfig("evt_rpt_waiting"),n=this.getCloudConfig("evt_rpt_level"),r=this.getCloudConfig("evt_rpt_sdkappid_bl"),o=this.getCloudConfig("evt_rpt_tinyid_wl");it(e)||(this.MIN_THRESHOLD=Number(e)),it(t)||(this.WAITING_TIME=Number(t)),it(n)||(this.REPORT_LEVEL=n.split(",").map((function(e){return Number(e)}))),it(r)||(this.REPORT_SDKAPPID_BLACKLIST=r.split(",").map((function(e){return Number(e)}))),it(o)||(this.REPORT_TINYID_WHITELIST=o.split(","))}},{key:"pushIn",value:function(e){e instanceof Ta&&(e.updateTimeStamp(),this._reportBody.pushIn(e),this._reportBody.getLogsNumInMemory()>=this.MIN_THRESHOLD&&this._report())}},{key:"onCheckTimer",value:function(){Date.now()<this._lastReportTime+this.WAITING_TIME||this._reportBody.isEmpty()||this._report()}},{key:"_filterLogs",value:function(e){var t=this,n=this.getModule(Bn),r=n.getSDKAppID(),o=n.getTinyID();return Ut(this.REPORT_SDKAPPID_BLACKLIST,r)&&!Vt(this.REPORT_TINYID_WHITELIST,o)?[]:e.filter((function(e){return t.REPORT_LEVEL.includes(e.level)}))}},{key:"_report",value:function(){var e=this;if(!this._reportBody.isEmpty()){var t=this._reportBody.getLogsInMemory(),r=this._filterLogs(t);if(0!==r.length){var o={header:ns(this),event:r};this.request({protocolName:Fo,requestData:n({},o)}).then((function(){e._lastReportTime=Date.now()})).catch((function(n){Fe.w("".concat(e._n,".report failed. networkType:").concat(e.getNetworkType()," error:"),n),e._reportBody.backfill(t),e._reportBody.getLogsNumInMemory()>e.MAX_THRESHOLD&&e._flushAtOnce()}))}else this._lastReportTime=Date.now()}}},{key:"_flushAtOnce",value:function(){var e=this.getModule(Fn),t=e.getItem(this.TAG,!1),n=this._reportBody.getLogsInMemory(),r="".concat(this._n,"._flushAtOnce");if(Kt(t))Fe.l("".concat(r," count:").concat(n.length)),e.setItem(this.TAG,n,!0,!1);else{var o=n.concat(t);o.length>this.MAX_THRESHOLD&&(o=o.slice(0,this.MAX_THRESHOLD)),Fe.l("".concat(r," count:").concat(o.length)),e.setItem(this.TAG,o,!0,!1)}}},{key:"reset",value:function(){Fe.l("".concat(this._n,".reset")),this._lastReportTime=0,this._report(),this.REPORT_SDKAPPID_BLACKLIST=[],this.REPORT_TINYID_WHITELIST=[]}}]),r}(sr),os="none",as="online",is=[fa.OVER_FREQUENCY_LIMIT,fa.OPEN_SERVICE_OVERLOAD_ERROR],ss=function(){function e(t){o(this,e),this._m=t,this._networkType="",this._n="NetMonitorModule",this.MAX_WAIT_TIME=3e3,this._mpNetworkStatusCallback=null,this._webOnlineCallback=null,this._webOfflineCallback=null}return i(e,[{key:"start",value:function(){var e=this;ae?(se.getNetworkType({success:function(t){e._networkType=t.networkType||t.subtype||"",t.networkType===os?Fe.w("".concat(e._n,".start no network, please check!")):Fe.i("".concat(e._n,".start networkType:").concat(t.networkType))}}),this._mpNetworkStatusCallback=this._onNetworkStatusChange.bind(this),se.onNetworkStatusChange(this._mpNetworkStatusCallback)):(this._networkType=as,this._webOnlineCallback=this._onWebOnline.bind(this),this._webOfflineCallback=this._onWebOffline.bind(this),window&&(window.addEventListener("online",this._webOnlineCallback),window.addEventListener("offline",this._webOfflineCallback)))}},{key:"_onWebOnline",value:function(){this._onNetworkStatusChange({isConnected:!0,networkType:as})}},{key:"_onWebOffline",value:function(){this._onNetworkStatusChange({isConnected:!1,networkType:os})}},{key:"_onNetworkStatusChange",value:function(e){var t=e.isConnected,n=e.networkType,r="".concat(this._n,"._onNetworkStatusChange"),o=!1;t?(Fe.i("".concat(r," previous:").concat(this._networkType," current:").concat(n)),this._networkType!==n&&(o=!0,this._m.getModule($n).reConnect(!0))):this._networkType!==n&&(o=!0,Fe.w("".concat(r," no network, please check!")),this._m.getModule($n).offline()),o&&(new Ta("networkChange").setMessage("isConnected:".concat(t," previousNetworkType:").concat(this._networkType," networkType:").concat(n)).end(),this._networkType=n)}},{key:"probe",value:function(e){var t=this;if(!it(e)&&is.includes(e.code))return Promise.resolve([!0,this._networkType]);var n="".concat(this._n,".probe");return new Promise((function(e,r){ae?se.getNetworkType({success:function(r){t._networkType=r.networkType,r.networkType===os?(Fe.w("".concat(n," no network, please check!")),e([!1,r.networkType])):(Fe.i("".concat(n," networkType:").concat(r.networkType)),e([!0,r.networkType]))}}):t._networkType===os?e([!1,os]):e([!0,as])}))}},{key:"getNetworkType",value:function(){return this._networkType}},{key:"reset",value:function(){Fe.l("".concat(this._n,".reset")),ae?null!==this._mpNetworkStatusCallback&&(se.offNetworkStatusChange&&(re||Z?se.offNetworkStatusChange(this._mpNetworkStatusCallback):se.offNetworkStatusChange()),this._mpNetworkStatusCallback=null):window&&(null!==this._webOnlineCallback&&(window.removeEventListener("online",this._webOnlineCallback),this._webOnlineCallback=null),null!==this._onWebOffline&&(window.removeEventListener("offline",this._webOfflineCallback),this._webOfflineCallback=null))}}]),e}(),cs=function(e,t){return e(t={exports:{}},t.exports),t.exports}((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 a(e,t,r,a,i){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new o(r,a||e,i),c=n?n+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function i(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,a=r.length,i=new Array(a);o<a;o++)i[o]=r[o].fn;return i},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,a,i){var s=n?n+e:e;if(!this._events[s])return!1;var c,l,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,a),!0;case 6:return u.fn.call(u.context,t,r,o,a,i),!0}for(l=1,c=new Array(d-1);l<d;l++)c[l-1]=arguments[l];u.fn.apply(u.context,c)}else{var p,f=u.length;for(l=0;l<f;l++)switch(u[l].once&&this.removeListener(e,u[l].fn,void 0,!0),d){case 1:u[l].fn.call(u[l].context);break;case 2:u[l].fn.call(u[l].context,t);break;case 3:u[l].fn.call(u[l].context,t,r);break;case 4:u[l].fn.call(u[l].context,t,r,o);break;default:if(!c)for(p=1,c=new Array(d-1);p<d;p++)c[p-1]=arguments[p];u[l].fn.apply(u[l].context,c)}}return!0},s.prototype.on=function(e,t,n){return a(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return a(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,o){var a=n?n+e:e;if(!this._events[a])return this;if(!t)return i(this,a),this;var s=this._events[a];if(s.fn)s.fn!==t||o&&!s.once||r&&s.context!==r||i(this,a);else{for(var c=0,l=[],u=s.length;c<u;c++)(s[c].fn!==t||o&&!s[c].once||r&&s[c].context!==r)&&l.push(s[c]);l.length?this._events[a]=1===l.length?l[0]:l:i(this,a)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&i(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})),ls=function(e){c(n,e);var t=g(n);function n(e){var r;return o(this,n),(r=t.call(this,e))._n="BigDataChannelModule",r.FILETYPE={SOUND:2106,FILE:2107,VIDEO:2113},r._bdh_download_server="grouptalk.c2c.qq.com",r._BDHBizID=10001,r._authKey="",r._expireTime=0,r.getInnerEmitterInstance().on(Za,r._getAuthKey,m(r)),r}return i(n,[{key:"_getAuthKey",value:function(){var e=this;this.isIntl()||this.request({protocolName:fr}).then((function(t){t.data.authKey&&(e._authKey=t.data.authKey,e._expireTime=parseInt(t.data.expireTime))}))}},{key:"_isFromOlderVersion",value:function(e){return!(!e.content||2===e.content.downloadFlag)}},{key:"parseElements",value:function(e,t){if(!at(e)||!t)return[];for(var n=[],r=null,o=0;o<e.length;o++)r=e[o],this._needParse(r)?n.push(this._parseElement(r,t)):n.push(e[o]);return n}},{key:"_needParse",value:function(e){return!e.cloudCustomData&&!(!this._isFromOlderVersion(e)||e.type!==S.MSG_AUDIO&&e.type!==S.MSG_FILE&&e.type!==S.MSG_VIDEO)}},{key:"_parseElement",value:function(e,t){switch(e.type){case S.MSG_AUDIO:return this._parseAudioElement(e,t);case S.MSG_FILE:return this._parseFileElement(e,t);case S.MSG_VIDEO:return this._parseVideoElement(e,t)}}},{key:"_parseAudioElement",value:function(e,t){return e.content.url=this._genAudioUrl(e.content.uuid,t),e}},{key:"_parseFileElement",value:function(e,t){return e.content.url=this._genFileUrl(e.content.uuid,t,e.content.fileName),e}},{key:"_parseVideoElement",value:function(e,t){return e.content.url=this._genVideoUrl(e.content.uuid,t),e}},{key:"_genAudioUrl",value:function(e,t){if(""===this._authKey)return"";var n=this.getModule(Bn).getSDKAppID();return"https://".concat(this._bdh_download_server,"/asn.com/stddownload_common_file?authkey=").concat(this._authKey,"&bid=").concat(this._BDHBizID,"&subbid=").concat(n,"&fileid=").concat(e,"&filetype=").concat(this.FILETYPE.SOUND,"&openid=").concat(t,"&ver=0")}},{key:"_genFileUrl",value:function(e,t,n){if(""===this._authKey)return"";n||(n="".concat(Math.floor(1e5*Math.random()),"-").concat(Date.now()));var r=this.getModule(Bn).getSDKAppID();return"https://".concat(this._bdh_download_server,"/asn.com/stddownload_common_file?authkey=").concat(this._authKey,"&bid=").concat(this._BDHBizID,"&subbid=").concat(r,"&fileid=").concat(e,"&filetype=").concat(this.FILETYPE.FILE,"&openid=").concat(t,"&ver=0&filename=").concat(encodeURIComponent(n))}},{key:"_genVideoUrl",value:function(e,t){if(""===this._authKey)return"";var n=this.getModule(Bn).getSDKAppID();return"https://".concat(this._bdh_download_server,"/asn.com/stddownload_common_file?authkey=").concat(this._authKey,"&bid=").concat(this._BDHBizID,"&subbid=").concat(n,"&fileid=").concat(e,"&filetype=").concat(this.FILETYPE.VIDEO,"&openid=").concat(t,"&ver=0")}},{key:"reset",value:function(){this._authKey="",this.expireTime=0}}]),n}(sr),us=["requestSnapshotUrl"],ds=function(e){c(r,e);var t=g(r);function r(e){var n;o(this,r),(n=t.call(this,e))._n="UploadModule",n.TIMUploadPlugin=null,n.timUploadPlugin=null,n.COSSDK=null,n._cosUploadMethod=null,n.expiredTimeLimit=600,n.appid=0,n.bucketName="",n.ciUrl="",n.directory="",n.downloadUrl="",n.uploadUrl="",n.region="ap-shanghai",n.cos=null,n.cosOptions={secretId:"",secretKey:"",sessionToken:"",expiredTime:0},n.uploadFileType="",n.duration=900,n.tryCount=0,n.UPLOAD_SIZE_LIMIT={AUDIO:20971520,FILE:104857600,IMAGE:20971520,VIDEO:104857600};var a=n.getInnerEmitterInstance();return a.on(Za,n._init,m(n)),a.on(ei,n._onCloudConfigUpdated,m(n)),n}return i(r,[{key:"_init",value:function(){var e=this.getModule(qn);if(this.TIMUploadPlugin=e.getPlugin("tim-upload-plugin"),this.TIMUploadPlugin)this._initUploaderMethod();else{var t=ae?"cos-wx-sdk":"cos-js-sdk";this.COSSDK=e.getPlugin(t),this.COSSDK?(this._getAuthorizationKey(),this.outputWarning("CosReplacement",t)):this.outputWarning("PluginUndetected")}}},{key:"_onCloudConfigUpdated",value:function(){var e="".concat(this._n,"._onCloudConfigUpdated"),t=this.getCloudConfig("upload_size_limit");if(Fe.l("".concat(e," uploadSizeLimit:").concat(t)),!it(t))try{var n=JSON.parse(t);this.UPLOAD_SIZE_LIMIT={AUDIO:n.a?1048576*parseInt(n.a):this.UPLOAD_SIZE_LIMIT.AUDIO,FILE:n.f?1048576*parseInt(n.f):this.UPLOAD_SIZE_LIMIT.FILE,IMAGE:n.i?1048576*parseInt(n.i):this.UPLOAD_SIZE_LIMIT.IMAGE,VIDEO:n.v?1048576*parseInt(n.v):this.UPLOAD_SIZE_LIMIT.VIDEO}}catch(o){Fe.e("".concat(e," JSON parse error. uploadSizeLimit:"),t)}}},{key:"_getAuthorizationKey",value:function(){var e=this,t="".concat(this._n,".").concat("_getAuthorizationKey"),n=new Ta("_getAuthorizationKey"),r=Math.ceil(Date.now()/1e3);this.request({protocolName:Uo,requestData:{duration:this.expiredTimeLimit}}).then((function(o){var a=o.data;Fe.l("".concat(t," ok. data:"),a);var i=a.expiredTime-r;n.setMessage("requestId:".concat(a.requestId," requestTime:").concat(r," expiredTime:").concat(a.expiredTime," diff:").concat(i,"s")).setNetworkType(e.getNetworkType()).end(),!ae&&a.region&&(e.region=a.region),e.appid=a.appid,e.bucketName=a.bucketName,e.ciUrl=a.ciUrl,e.directory=a.directory,e.downloadUrl=a.downloadUrl,e.uploadUrl=a.uploadUrl,e.cosOptions={secretId:a.secretId,secretKey:a.secretKey,sessionToken:a.sessionToken,expiredTime:a.expiredTime},Fe.l("".concat(t," ok. region:").concat(e.region," bucketName:").concat(e.bucketName)),e._initUploaderMethod()})).catch((function(r){e.probeNetwork().then((function(e){var t=_(e,2),o=t[0],a=t[1];n.setError(r,o,a).end()})),Fe.w("".concat(t," failed. error:"),r)}))}},{key:"_getCosPreSigUrl",value:function(e){var t=this,n="".concat(this._n,".").concat("_getCosPreSigUrl"),r=Math.ceil(Date.now()/1e3),o=new Ta("_getCosPreSigUrl");return this.request({protocolName:Vo,requestData:{fileType:e.fileType,fileName:e.fileName,uploadMethod:e.uploadMethod,duration:e.duration}}).then((function(e){t.tryCount=0;var a=e.data||{},i=a.expiredTime-r;return Fe.l("".concat(n," ok. data:"),a),o.setMessage("requestId:".concat(a.requestId," expiredTime:").concat(a.expiredTime," diff:").concat(i,"s")).setNetworkType(t.getNetworkType()).end(),a})).catch((function(r){return-1===r.code&&(r.code=fa.COS_GET_SIG_FAIL),t.probeNetwork().then((function(e){var t=_(e,2),n=t[0],a=t[1];o.setError(r,n,a).end()})),Fe.w("".concat(n," failed. error:"),r),t.tryCount<1?(t.tryCount++,t._getCosPreSigUrl(e)):(t.tryCount=0,Ja({code:fa.COS_GET_SIG_FAIL}))}))}},{key:"_initUploaderMethod",value:function(){var e=this;if(this.TIMUploadPlugin)return this.timUploadPlugin=new this.TIMUploadPlugin,void(this._cosUploadMethod=function(t,n){e.timUploadPlugin.uploadFile(t,n)});this.appid&&(this.cos=ae?new this.COSSDK({ForcePathStyle:!0,getAuthorization:this._getAuthorization.bind(this)}):new this.COSSDK({getAuthorization:this._getAuthorization.bind(this)}),this._cosUploadMethod=ae?function(t,n){e.cos.postObject(t,n)}:function(t,n){e.cos.uploadFiles(t,n)})}},{key:"onCheckTimer",value:function(e){this.COSSDK&&(this.TIMUploadPlugin||this.isLoggedIn()&&e%60==0&&Math.ceil(Date.now()/1e3)>=this.cosOptions.expiredTime-120&&this._getAuthorizationKey())}},{key:"_getAuthorization",value:function(e,t){t({TmpSecretId:this.cosOptions.secretId,TmpSecretKey:this.cosOptions.secretKey,XCosSecurityToken:this.cosOptions.sessionToken,ExpiredTime:this.cosOptions.expiredTime})}},{key:"upload",value:function(e){if(!0===e.getRelayFlag())return Promise.resolve();var t=this.getModule(er);switch(e.type){case S.MSG_IMAGE:return t.addTotalCount(ba),this._uploadImage(e);case S.MSG_FILE:return t.addTotalCount(ba),this._uploadFile(e);case S.MSG_AUDIO:return t.addTotalCount(ba),this._uploadAudio(e);case S.MSG_VIDEO:return t.addTotalCount(ba),this._uploadVideo(e);default:return Promise.resolve()}}},{key:"_uploadImage",value:function(e){var t=this,r=this.getModule(Dn),o=e.getElements()[0],a=r.getMessageOption(e.clientSequence);return this.doUploadImage({file:a.payload.file,to:a.to,onProgress:function(e){if(o.updatePercent(e),ct(a.onProgress))try{a.onProgress(e)}catch(n){return Ja({code:fa.MESSAGE_ONPROGRESS_FUNCTION_ERROR})}}}).then((function(r){var a,i,s=r.location,c=r.fileType,l=r.fileSize,u=r.width,d=r.height,p=r.smallImageUrl,f=r.smallImageWidth,h=r.smallImageHeight,m=r.largeImageUrl,v=r.largeImageWidth,g=r.largeImageHeight,_=t.isPrivateNetWork()?s:bt(s);return o.updateImageFormat(c),p&&m?(a={url:p,width:f,height:h},i={url:m,width:v,height:g}):(a=Nt({originUrl:_,originWidth:u,originHeight:d,min:198}),i=Nt({originUrl:_,originWidth:u,originHeight:d,min:720})),o.updateImageInfoArray([{size:l,url:_,width:u,height:d},n({},i),n({},a)]),e}))}},{key:"_uploadFile",value:function(e){var t=this,n=this.getModule(Dn),r=e.getElements()[0],o=n.getMessageOption(e.clientSequence);return this.doUploadFile({file:o.payload.file,to:o.to,onProgress:function(e){if(r.updatePercent(e),ct(o.onProgress))try{o.onProgress(e)}catch(t){return Ja({code:fa.MESSAGE_ONPROGRESS_FUNCTION_ERROR})}}}).then((function(n){var o=n.location,a=t.isPrivateNetWork()?o:bt(o);return r.updateFileUrl(a),e}))}},{key:"_uploadAudio",value:function(e){var t=this,n=this.getModule(Dn),r=e.getElements()[0],o=n.getMessageOption(e.clientSequence);return this.doUploadAudio({file:o.payload.file,to:o.to,onProgress:function(e){if(r.updatePercent(e),ct(o.onProgress))try{o.onProgress(e)}catch(t){return Ja({code:fa.MESSAGE_ONPROGRESS_FUNCTION_ERROR})}}}).then((function(n){var o=n.location,a=t.isPrivateNetWork()?o:bt(o);return r.updateAudioUrl(a),e}))}},{key:"_uploadVideo",value:function(e){var t=this,n=this.getModule(Dn),r=e.getElements()[0],o=n.getMessageOption(e.clientSequence);return this.doUploadVideo({file:o.payload.file,to:o.to,onProgress:function(e){if(r.updatePercent(e),ct(o.onProgress))try{o.onProgress(e)}catch(t){return Ja({code:fa.MESSAGE_ONPROGRESS_FUNCTION_ERROR})}}}).then((function(n){var o=n.location,a=n.snapshotInfo,i=t.isPrivateNetWork()?o:bt(o);return r.updateVideoUrl(i),Kt(a)||r.updateSnapshotInfo(a),e}))}},{key:"_checkSizeError",value:function(e){return Ja({code:fa["MESSAGE_".concat(e,"_SIZE_LIMIT")],message:this.getErrorMessage("UploadSizeLimit",e.toLowerCase(),"".concat(this.UPLOAD_SIZE_LIMIT[e]/1048576," MB"))})}},{key:"doUploadImage",value:function(e){var t=this;if(!e.file)return Ja({code:fa.MESSAGE_IMAGE_SELECT_FILE_FIRST});var n=this._checkImageType(e.file);if(!0!==n)return n;var r=this._checkImageSize(e.file);if(!0!==r)return r;var o=null;return this._setUploadFileType(ai),this.uploadByCOS(e).then((function(e){return o=e,t.isPrivateNetWork()?jt(e.location):jt("https://".concat(e.location))})).then((function(e){return o.width=e.width,o.height=e.height,Promise.resolve(o)}))}},{key:"_checkImageType",value:function(e){var t="";return t=ae?e.url.slice(e.url.lastIndexOf(".")+1):e.files[0].name.slice(e.files[0].name.lastIndexOf(".")+1),ri.indexOf(t.toLowerCase())>=0||Ja({code:fa.MESSAGE_IMAGE_TYPES_LIMIT})}},{key:"_checkImageSize",value:function(e){var t=0;return 0===(t=ae?e.size:e.files[0].size)?Ja({code:fa.MESSAGE_FILE_IS_EMPTY}):t<this.UPLOAD_SIZE_LIMIT.IMAGE||this._checkSizeError("IMAGE")}},{key:"doUploadFile",value:function(e){return e.file?e.file.files[0].size>this.UPLOAD_SIZE_LIMIT.FILE?this._checkSizeError("FILE"):0===e.file.files[0].size?Ja({code:fa.MESSAGE_FILE_IS_EMPTY}):(this._setUploadFileType(ci),this.uploadByCOS(e)):Ja({code:fa.MESSAGE_FILE_SELECT_FILE_FIRST})}},{key:"doUploadVideo",value:function(e){return e.file.videoFile.size>this.UPLOAD_SIZE_LIMIT.VIDEO?this._checkSizeError("VIDEO"):0===e.file.videoFile.size?Ja({code:fa.MESSAGE_FILE_IS_EMPTY}):-1===oi.indexOf(e.file.videoFile.type)?Ja({code:fa.MESSAGE_VIDEO_TYPES_LIMIT}):(this._setUploadFileType(ii),ae?this.handleVideoUpload({file:e.file.videoFile,onProgress:e.onProgress}):ie?this.handleVideoUpload(e):void 0)}},{key:"handleVideoUpload",value:function(e){var t=this;return new Promise((function(n,r){t.uploadByCOS(e).then((function(e){n(e)})).catch((function(){t.uploadByCOS(e).then((function(e){n(e)})).catch((function(){r(new qa({code:fa.MESSAGE_VIDEO_UPLOAD_FAIL}))}))}))}))}},{key:"doUploadAudio",value:function(e){return e.file?e.file.size>this.UPLOAD_SIZE_LIMIT.AUDIO?this._checkSizeError("AUDIO"):0===e.file.size?Ja({code:fa.MESSAGE_FILE_IS_EMPTY}):(this._setUploadFileType(si),this.uploadByCOS(e)):Ja({code:fa.MESSAGE_AUDIO_UPLOAD_FAIL})}},{key:"uploadByCOS",value:function(e){var t=this;if(!ct(this._cosUploadMethod))return this.outputWarning("PluginUndetected"),Ja({code:fa.COS_UNDETECTED});if(this.timUploadPlugin)return this._uploadWithPreSigUrl(e);var n=new Ta("upload"),r="".concat(this._n,".uploadByCOS"),o=Date.now(),a=this._getFile(e);return new Promise((function(i,s){var c=ae?t._createCosOptionsWXMiniApp(e):t._createCosOptionsWeb(e),l=t;t._cosUploadMethod(c,(function(e,c){var u=Object.create(null);if(c){if(e||at(c.files)&&c.files[0].error){var d=new qa({code:fa.MESSAGE_FILE_UPLOAD_FAIL});return n.setError(d,!0,t.getNetworkType()).end(),Fe.l("".concat(r," failed. error:"),c.files[0].error),403===c.files[0].error.statusCode&&(Fe.w("".concat(r," failed. cos AccessKeyId was invalid, regain auth key!")),t._getAuthorizationKey()),void s(d)}u.fileName=a.name,u.fileSize=a.size,u.fileType=a.type.slice(a.type.indexOf("/")+1).toLowerCase(),u.location=ae?c.Location:c.files[0].data.Location;var p=Date.now()-o,f=l._formatFileSize(a.size),h=l._formatSpeed(1e3*a.size/p),m="size:".concat(f," time:").concat(p,"ms speed:").concat(h);Fe.l("".concat(r," success. name:").concat(a.name," ").concat(m)),i(u);var v=t.getModule(er);return v.addCost(ba,p),v.addFileSize(ba,a.size),void n.setNetworkType(t.getNetworkType()).setMessage(m).end()}var g=new qa({code:fa.MESSAGE_FILE_UPLOAD_FAIL});n.setError(g,!0,l.getNetworkType()).end(),Fe.w("".concat(r," failed. error:"),e),403===e.statusCode&&(Fe.w("".concat(r," failed. cos AccessKeyId was invalid, regain auth key!")),t._getAuthorizationKey()),s(g)}))}))}},{key:"_uploadWithPreSigUrl",value:function(e){var t=this,n="".concat(this._n,"._uploadWithPreSigUrl"),r=this._getFile(e);return this._createCosOptionsPreSigUrl(e).then((function(e){return new Promise((function(o,a){var i=new Ta("upload"),s=e.requestSnapshotUrl,c=void 0===s?void 0:s,l=h(e,us),u=Date.now();t._cosUploadMethod(l,(function(e,s){if(e||403===s.statusCode)return i.setError(new qa(e),!0,t.getNetworkType()).end(),Fe.l("".concat(n," failed, error:"),e),void a(new qa({code:fa.MESSAGE_FILE_UPLOAD_FAIL}));var d=Object.create(null),p=s.data.location||"";t.isPrivateNetWork()||0!==p.indexOf("https://")&&0!==p.indexOf("http://")||(p=p.split("//")[1]),d.fileName=r.name,d.fileSize=r.size,d.fileType=r.type.slice(r.type.indexOf("/")+1).toLowerCase(),d.location=p;var f=Date.now()-u,h=t._formatFileSize(r.size),m=t._formatSpeed(1e3*r.size/f),v="size:".concat(h,",time:").concat(f,"ms,speed:").concat(m," res:").concat(JSON.stringify(s.data));Fe.l("".concat(n," success name:").concat(r.name,",").concat(v)),i.setNetworkType(t.getNetworkType()).setMessage(v).end();var g=t.getModule(er);g.addCost(ba,f),g.addFileSize(ba,r.size);var _=[];if(l.thumbUrl&&l.largeUrl&&(_=[t._getSmallImageInfoByUrl(l.thumbUrl,d),t._getLargeImageInfoByUrl(l.largeUrl,d)]),c&&_.push(t._getSnapshotInfoByUrl(c,d)),_.length>0)return Promise.all(_).then((function(){o(d)}));o(d)}))}))}))}},{key:"_getRawOrUploadProxyUrl",value:function(e){var t=this.getModule(Bn).getFileUploadProxy(),n=e;return t&&(n=e.replace(/^https:\/\/[^/]+/,t)),n}},{key:"_getFile",value:function(e){var t;return at(e.file.files)||(t=e.file.files,"filelist"===ut(t))?e.file.files[0]:e.file}},{key:"_formatFileSize",value:function(e){return e<1024?e+"B":e<1048576?Math.floor(e/1024)+"KB":Math.floor(e/1048576)+"MB"}},{key:"_formatSpeed",value:function(e){return e<=1048576?Pt(e/1024,1)+"KB/s":Pt(e/1048576,1)+"MB/s"}},{key:"_createCosOptionsWeb",value:function(e){var t=this._getFile(e),n=t.name,r=n.slice(n.lastIndexOf(".")),o=this._genFileName("".concat(mt(999999)).concat(r));return{files:[{Bucket:"".concat(this.bucketName,"-").concat(this.appid),Region:this.region,Key:"".concat(this.directory,"/").concat(o),Body:t}],SliceSize:1048576,onProgress:function(t){if("function"==typeof e.onProgress)try{e.onProgress(t.percent)}catch(n){Fe.w("onProgress callback error:",n)}},onFileFinish:function(e,t,n){}}}},{key:"_createCosOptionsWXMiniApp",value:function(e){var t=this._getFile(e),n=this._genFileName(t.name),r=t.url;return{Bucket:"".concat(this.bucketName,"-").concat(this.appid),Region:this.region,Key:"".concat(this.directory,"/").concat(n),FilePath:r,onProgress:function(t){if(Fe.l(JSON.stringify(t)),"function"==typeof e.onProgress)try{e.onProgress(t.percent)}catch(n){Fe.w("onProgress callback error:",n)}}}}},{key:"_createCosOptionsPreSigUrl",value:function(e){var t=this,n="",r="",o=0,a=this._getFile(e);if(ae)n=this._genFileName(a.name),r=a.url,o=1;else{var i=a.name,s=i.slice(i.lastIndexOf("."));n=this._genFileName("".concat(mt(999999)).concat(s)),r=a,o=0}return this._getCosPreSigUrl({fileType:this.uploadFileType,fileName:n,uploadMethod:o,duration:this.duration}).then((function(o){var a=o.uploadUrl,i=o.downloadUrl,s=o.requestSnapshotUrl,c=void 0===s?void 0:s,l=o.thumbUrl,u=o.largeUrl;return{url:t._getRawOrUploadProxyUrl(a),fileType:t.uploadFileType,fileName:n,resources:r,downloadUrl:i,requestSnapshotUrl:c,thumbUrl:l,largeUrl:u,onProgress:function(t){if("function"==typeof e.onProgress)try{e.onProgress(t.percent)}catch(n){Fe.w("onProgress callback error:",n),Fe.e(n)}}}}))}},{key:"_genFileName",value:function(e){return"".concat(Dt(),"-").concat(e)}},{key:"_setUploadFileType",value:function(e){this.uploadFileType=e}},{key:"_getSnapshotInfoByUrl",value:function(e,t){var n=this,r=new Ta("getSnapshotInfo");return this.request({protocolName:Bo,requestData:{platform:this.getPlatform(),coverName:this._genFileName(mt(99999)),requestSnapshotUrl:e}}).then((function(e){var n=(e.data||{}).snapshotUrl;return r.setMessage("snapshotUrl:".concat(n)).end(),Kt(n)?{}:jt(n).then((function(e){t.snapshotInfo={snapshotUrl:n,snapshotWidth:e.width,snapshotHeight:e.height}}))})).catch((function(e){return Fe.w("".concat(n._n,"._getSnapshotInfoByUrl failed. error:"),e),r.setCode(e.errorCode).setMessage(e.errorInfo).end(),{}}))}},{key:"_getSmallImageInfoByUrl",value:function(e,t){return jt(e).then((function(n){t.smallImageUrl=e,t.smallImageWidth=n.width,t.smallImageHeight=n.height}))}},{key:"_getLargeImageInfoByUrl",value:function(e,t){return jt(e).then((function(n){t.largeImageUrl=e,t.largeImageWidth=n.width,t.largeImageHeight=n.height}))}},{key:"reset",value:function(){Fe.l("".concat(this._n,".reset"))}}]),r}(sr),ps=["downloadKey","pbDownloadKey","messageList"],fs=function(){function e(t){o(this,e),this._n="MergerMessageHandler",this._messageModule=t}return i(e,[{key:"uploadMergerMessage",value:function(e,t){var n=this,r="".concat(this._n,".").concat("uploadMergerMessage");Fe.d("".concat(r," message:"),e,"messageBytes:".concat(t));var o=e.payload.messageList,a=o.length,i=new Ta("uploadMergerMessage");return this._messageModule.request({protocolName:Wo,requestData:{messageList:o}}).then((function(e){Fe.d("".concat(r," ok. response:"),e.data);var o=e.data,s=o.pbDownloadKey,c=o.downloadKey,l={pbDownloadKey:s,downloadKey:c,messageNumber:a};return i.setNetworkType(n._messageModule.getNetworkType()).setMessage("".concat(a,"-").concat(t,"-").concat(c)).end(),l})).catch((function(e){throw Fe.w("".concat(r," failed. error:"),e),n._messageModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setError(e,r,o).end()})),e}))}},{key:"downloadMergerMessage",value:function(e){var t=this,r="".concat(this._n,".").concat("downloadMergerMessage");Fe.d("".concat(r," message:"),e);var o=e.payload.downloadKey,a=this._messageModule.getFileDownloadProxy(),i=new Ta("downloadMergerMessage");return i.setMessage("downloadKey:".concat(o)),this._messageModule.request({protocolName:Ko,requestData:{downloadKey:o}}).then((function(o){if(Fe.d("".concat(r," ok. response:"),o.data),ct(e.clearElement)){var s=e.payload;s.downloadKey,s.pbDownloadKey,s.messageList;var c=h(s,ps);e.clearElement(),e.setElement({type:e.type,content:n({messageList:o.data.messageList},c)},a)}else{var l=[];o.data.messageList.forEach((function(e){if(!Kt(e)){var t=new Fa(e,a);l.push(t)}})),e.payload.messageList=l,e.payload.downloadKey="",e.payload.pbDownloadKey=""}return i.setNetworkType(t._messageModule.getNetworkType()).end(),e})).catch((function(e){throw Fe.w("".concat(r," failed. key:").concat(o," error:"),e),t._messageModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setError(e,r,o).end()})),e}))}},{key:"createMergerMessagePack",value:function(e,t,n){return e.conversationType===S.CONV_C2C?this._createC2CMergerMessagePack(e,t,n):this._createGroupMergerMessagePack(e,t,n)}},{key:"_createC2CMergerMessagePack",value:function(e,t,n){var r=null;t&&(t.offlinePushInfo&&(r=t.offlinePushInfo),!0===t.onlineUserOnly&&(r?r.disablePush=!0:r={disablePush:!0}));var o=[];if(ot(t)&&ot(t.messageControlInfo)){var a=t.messageControlInfo,i=a.excludedFromUnreadCount,s=a.excludedFromLastMessage,c=a.excludedFromContentModeration;!0===i&&o.push("NoUnread"),!0===s&&o.push("NoLastMsg"),!0===c&&o.push("NoMsgCheck")}var l="";nt(e.cloudCustomData)&&e.cloudCustomData.length>0&&(l=e.cloudCustomData);var u=n.pbDownloadKey,d=n.downloadKey,p=n.messageNumber,f=e.payload,h=f.title,m=f.abstractList,v=f.compatibleText,g=this._messageModule.getModule(Nn),_=g&&g.isOnlineMessage(e,t)?0:void 0;return{protocolName:hr,tjgID:this._messageModule.generateTjgID(e),requestData:{fromAccount:this._messageModule.getMyUserID(),toAccount:e.to,msgBody:[{msgType:e.type,msgContent:{pbDownloadKey:u,downloadKey:d,title:h,abstractList:m,compatibleText:v,messageNumber:p}}],cloudCustomData:l,clientTime:e.clientTime,msgSeq:e.sequence,msgRandom:e.random,msgLifeTime:_,offlinePushInfo:r?{pushFlag:!0===r.disablePush?1:0,title:r.title||"",desc:r.description||"",ext:r.extension||"",apnsInfo:{badgeMode:!0===r.ignoreIOSBadge?1:0},androidInfo:{OPPOChannelID:r.androidOPPOChannelID||""}}:void 0,messageControlInfo:0!==_?o:void 0,isSupportExtension:!0===e.isSupportExtension?1:0}}}},{key:"_createGroupMergerMessagePack",value:function(e,t,n){var r=null;t&&t.offlinePushInfo&&(r=t.offlinePushInfo);var o=[];if(ot(t)&&ot(t.messageControlInfo)){var a=t.messageControlInfo,i=a.excludedFromUnreadCount,s=a.excludedFromLastMessage,c=a.excludedFromContentModeration;!0===i&&o.push("NoUnread"),!0===s&&o.push("NoLastMsg"),!0===c&&o.push("NoMsgCheck")}var l="";nt(e.cloudCustomData)&&e.cloudCustomData.length>0&&(l=e.cloudCustomData);var u=n.pbDownloadKey,d=n.downloadKey,p=n.messageNumber,f=e.payload,h=f.title,m=f.abstractList,v=f.compatibleText,g=this._messageModule.getModule(xn),_=g&&g.isOnlineMessage(e,t)?1:0;return{protocolName:mr,tjgID:this._messageModule.generateTjgID(e),requestData:{fromAccount:this._messageModule.getMyUserID(),groupID:e.to,msgBody:[{msgType:e.type,msgContent:{pbDownloadKey:u,downloadKey:d,title:h,abstractList:m,compatibleText:v,messageNumber:p}}],random:e.random,priority:e.priority,clientSequence:e.clientSequence,groupAtInfo:void 0,cloudCustomData:l,onlineOnlyFlag:_,offlinePushInfo:r?{pushFlag:!0===r.disablePush?1:0,title:r.title||"",desc:r.description||"",ext:r.extension||"",apnsInfo:{badgeMode:!0===r.ignoreIOSBadge?1:0},androidInfo:{OPPOChannelID:r.androidOPPOChannelID||""}}:void 0,clientTime:e.clientTime,needReadReceipt:!0!==e.needReadReceipt||g.isMessageFromOrToAVChatroom(e.to)?0:1,messageControlInfo:0===_?o:void 0,isSupportExtension:!0===e.isSupportExtension?1:0}}}}]),e}(),hs={ERR_SVR_COMM_SENSITIVE_TEXT:80001,ERR_SVR_COMM_BODY_SIZE_LIMIT:80002,OPEN_SERVICE_OVERLOAD_ERROR:60022,ERR_SVR_MSG_PKG_PARSE_FAILED:20001,ERR_SVR_MSG_INTERNAL_AUTH_FAILED:20002,ERR_SVR_MSG_INVALID_ID:20003,ERR_SVR_MSG_PUSH_DENY:20006,ERR_SVR_MSG_IN_PEER_BLACKLIST:20007,ERR_SVR_MSG_BOTH_NOT_FRIEND:20009,ERR_SVR_MSG_NOT_PEER_FRIEND:20010,ERR_SVR_MSG_NOT_SELF_FRIEND:20011,ERR_SVR_MSG_SHUTUP_DENY:20012,ERR_SVR_GROUP_INVALID_PARAMETERS:10004,ERR_SVR_GROUP_PERMISSION_DENY:10007,ERR_SVR_GROUP_NOT_FOUND:10010,ERR_SVR_GROUP_INVALID_GROUPID:10015,ERR_SVR_GROUP_REJECT_FROM_THIRDPARTY:10016,ERR_SVR_GROUP_SHUTUP_DENY:10017,MESSAGE_SEND_FAIL:2100,OVER_FREQUENCY_LIMIT:2996},ms=[fa.MESSAGE_ONPROGRESS_FUNCTION_ERROR,fa.MESSAGE_IMAGE_SELECT_FILE_FIRST,fa.MESSAGE_IMAGE_TYPES_LIMIT,fa.MESSAGE_FILE_IS_EMPTY,fa.MESSAGE_IMAGE_SIZE_LIMIT,fa.MESSAGE_FILE_SELECT_FILE_FIRST,fa.MESSAGE_FILE_SIZE_LIMIT,fa.MESSAGE_VIDEO_SIZE_LIMIT,fa.MESSAGE_VIDEO_TYPES_LIMIT,fa.MESSAGE_AUDIO_UPLOAD_FAIL,fa.MESSAGE_AUDIO_SIZE_LIMIT,fa.COS_UNDETECTED];function vs(e){var t=!1;return Object.values(hs).includes(e)&&(t=!0),(e>=120001&&e<=13e4||e>=10100&&e<=10200)&&(t=!0),t}var gs=function(e){c(r,e);var t=g(r);function r(e){var n;return o(this,r),(n=t.call(this,e))._n="MessageModule",n._messageOptionsMap=new Map,n._mergerMessageHandler=new fs(m(n)),n}return i(r,[{key:"createTextMessage",value:function(e){var t=this.getMyUserID();e.currentUser=t,e.senderTinyID=this.getMyTinyID();var n=new Ha(e),r="string"==typeof e.payload?e.payload:e.payload.text,o=new Ea({text:r}),a=this._getNickAndAvatarByUserID(t);return n.setElement(o),n.setNickAndAvatar(a),n.setNameCard(this._getNameCardByGroupID(n)),n}},{key:"createImageMessage",value:function(e){var t=this.getMyUserID();e.currentUser=t,e.senderTinyID=this.getMyTinyID();var n=new Ha(e);if(ae){var r=e.payload.file;if(Ze(r))return void this.outputWarning("FileUnsupportedInMP","createImageMessage");var o=r.tempFiles[0].path||r.tempFiles[0].tempFilePath,a={url:o,name:o.slice(o.lastIndexOf("/")+1),size:r.tempFiles&&r.tempFiles[0].size||1,type:o.slice(o.lastIndexOf(".")+1).toLowerCase()};e.payload.file=a}else if(ie)if(Ze(e.payload.file)){var i=e.payload.file;e.payload.file={files:[i]}}else if(ot(e.payload.file)&&"undefined"!=typeof uni){var s=e.payload.file.tempFiles[0];e.payload.file={files:[s]}}var c=new ja({imageFormat:Ge.UNKNOWN,uuid:this._generateUUID(e.payload.file),file:e.payload.file}),l=this._getNickAndAvatarByUserID(t);return n.setElement(c),n.setNickAndAvatar(l),n.setNameCard(this._getNameCardByGroupID(n)),this._messageOptionsMap.set(n.clientSequence,e),n}},{key:"createAudioMessage",value:function(e){var t=e.payload.file;if(ae){var n={url:t.tempFilePath,name:t.tempFilePath.slice(t.tempFilePath.lastIndexOf("/")+1),size:t.fileSize,second:parseInt(t.duration)/1e3,type:t.tempFilePath.slice(t.tempFilePath.lastIndexOf(".")+1).toLowerCase()};e.payload.file=n}var r=this.getMyUserID();e.currentUser=r,e.senderTinyID=this.getMyTinyID();var o=new Ha(e),a=new La({second:Math.floor(t.duration/1e3),size:t.fileSize||t.size,url:t.tempFilePath,uuid:this._generateUUID(e.payload.file)}),i=this._getNickAndAvatarByUserID(r);return o.setElement(a),o.setNickAndAvatar(i),o.setNameCard(this._getNameCardByGroupID(o)),this._messageOptionsMap.set(o.clientSequence,e),o}},{key:"createVideoMessage",value:function(e){var t=this.getMyUserID();e.currentUser=t,e.senderTinyID=this.getMyTinyID(),e.payload.file.thumbUrl="",e.payload.file.thumbSize=0;var n={};if(ae){if(te)return void this.outputWarning("VideoUnsupportedInAlipay");if(Ze(e.payload.file))return void this.outputWarning("FileUnsupportedInMP","createVideoMessage");var r=e.payload.file;at(r.tempFiles)&&(r=r.tempFiles[0]),n.url=r.tempFilePath,n.name=r.tempFilePath.slice(r.tempFilePath.lastIndexOf("/")+1),n.size=r.size||1,n.second=r.duration||0,n.type=r.tempFilePath.slice(r.tempFilePath.lastIndexOf(".")+1).toLowerCase()}else if(ie){if(Ze(e.payload.file)){var o=e.payload.file;e.payload.file.files=[o]}else if(ot(e.payload.file)&&"undefined"!=typeof uni){var a=e.payload.file.tempFile;e.payload.file.files=[a]}var i=e.payload.file;n.url=window.URL.createObjectURL(i.files[0]),n.name=i.files[0].name,n.size=i.files[0].size||1,n.second=i.files[0].duration||0,n.type=i.files[0].type.split("/")[1]}e.payload.file.videoFile=n;var s=new Ha(e),c=new Va({videoFormat:n.type,videoSecond:Pt(n.second,0),videoSize:n.size,remoteVideoUrl:"",videoUrl:n.url,videoUUID:this._generateUUID(e.payload.file.videoFile),thumbUUID:this._generateUUID(e.payload.file.videoFile),thumbWidth:e.payload.file.width||200,thumbHeight:e.payload.file.height||200,thumbUrl:e.payload.file.thumbUrl,thumbSize:e.payload.file.thumbSize,thumbFormat:e.payload.file.thumbUrl.slice(e.payload.file.thumbUrl.lastIndexOf(".")+1).toLowerCase()}),l=this._getNickAndAvatarByUserID(t);return s.setElement(c),s.setNickAndAvatar(l),s.setNameCard(this._getNameCardByGroupID(s)),this._messageOptionsMap.set(s.clientSequence,e),s}},{key:"createCustomMessage",value:function(e){var t=this.getMyUserID();e.currentUser=t,e.senderTinyID=this.getMyTinyID();var n=new Ha(e),r=new Ua({data:e.payload.data,description:e.payload.description,extension:e.payload.extension}),o=this._getNickAndAvatarByUserID(t);return n.setElement(r),n.setNickAndAvatar(o),n.setNameCard(this._getNameCardByGroupID(n)),n}},{key:"createFaceMessage",value:function(e){var t=this.getMyUserID();e.currentUser=t,e.senderTinyID=this.getMyTinyID();var n=new Ha(e),r=new Da(e.payload),o=this._getNickAndAvatarByUserID(t);return n.setElement(r),n.setNickAndAvatar(o),n.setNameCard(this._getNameCardByGroupID(n)),n}},{key:"createMergerMessage",value:function(e){var t=this.getMyUserID();e.currentUser=t,e.senderTinyID=this.getMyTinyID();var n=this._getNickAndAvatarByUserID(t),r=new Ha(e),o=new Ga(e.payload);return r.setElement(o),r.setNickAndAvatar(n),r.setNameCard(this._getNameCardByGroupID(r)),r.setRelayFlag(!0),r}},{key:"createForwardMessage",value:function(e){var t=e.to,n=e.conversationType,r=e.priority,o=e.payload,a=e.needReadReceipt,i=e.receiverList,s=this.getMyUserID(),c=this._getNickAndAvatarByUserID(s);if(o.type===S.MSG_GRP_TIP)return Ja({code:fa.MESSAGE_FORWARD_TYPE_INVALID});var l={to:t,conversationType:n,conversationID:"".concat(n).concat(t),priority:r,isPlaceMessage:0,status:Xt.UNSEND,currentUser:s,senderTinyID:this.getMyTinyID(),cloudCustomData:e.cloudCustomData||o.cloudCustomData||"",needReadReceipt:a,receiverList:i,isSupportExtension:e.isSupportExtension||!1},u=new Ha(l);return u.setElement(o.getElements()[0]),u.setNickAndAvatar(c),u.setNameCard(this._getNameCardByGroupID(o)),u.setRelayFlag(!0),u}},{key:"downloadMergerMessage",value:function(e){return this._mergerMessageHandler.downloadMergerMessage(e)}},{key:"createFileMessage",value:function(e){if(ae){if(!Q&&!X&&!re)return;var t=se.getSystemInfoSync().SDKVersion;if(Q&&At(t,"2.5.0")<0)return void this.outputWarning("WXChooseMessageFile");if(X&&At(t,"1.18.0")<0)return void this.outputWarning("QQChooseMessageFile")}if(ie||re){if(Ze(e.payload.file)){var r=e.payload.file;e.payload.file={files:[r]}}else if(ot(e.payload.file)&&"undefined"!=typeof uni){var o=e.payload.file,a=o.tempFiles,i=o.files,s=null;at(a)?s=a[0]:at(i)&&(s=i[0]),e.payload.file={files:[s]}}}else if(Q||X){var c=e.payload.file.tempFiles,l=n(n({},c[0]),{},{url:c[0].path});e.payload.file={files:[l]}}var u=this.getMyUserID();e.currentUser=u,e.senderTinyID=this.getMyTinyID();var d=new Ha(e),p=new Pa({uuid:this._generateUUID(e.payload.file),file:e.payload.file}),f=this._getNickAndAvatarByUserID(u);return d.setElement(p),d.setNickAndAvatar(f),d.setNameCard(this._getNameCardByGroupID(d)),this._messageOptionsMap.set(d.clientSequence,e),d}},{key:"createLocationMessage",value:function(e){var t=this.getMyUserID();e.currentUser=t,e.senderTinyID=this.getMyTinyID();var n=new Ha(e),r=new Ba(e.payload),o=this._getNickAndAvatarByUserID(t);return n.setElement(r),n.setNickAndAvatar(o),n.setNameCard(this._getNameCardByGroupID(n)),n}},{key:"_onCannotFindModule",value:function(){return Ja({code:fa.CANNOT_FIND_MODULE})}},{key:"sendMessageInstance",value:function(e,t){var n=this;if(!1===this.getModule(rr).filterMessage(e,t))return this._onSendMessageFailed(e,new qa({code:fa.PROFANITY_FOUND}));var r,o=null;switch(e.conversationType){case S.CONV_C2C:if(!(o=this.getModule(Nn)))return this._onCannotFindModule();break;case S.CONV_GROUP:if(!(o=this.getModule(xn)))return this._onCannotFindModule();if(Ct({groupID:e.to})){var a=o.getLocalGroupProfile(e.to);if(a&&a.isSupportTopic)return Ja({code:fa.MESSAGE_SEND_GROUP_WITH_TOPIC_FAIL})}break;default:return Ja({code:fa.MESSAGE_SEND_INVALID_CONVERSATION_TYPE})}var i=this.getModule(Yn),s=this.getModule(xn);return i.upload(e).then((function(){return n._getSendMessageSpecifiedKey(e)===ya&&n.getModule(er).addSuccessCount(ba),s.guardForAVChatRoom(e).then((function(){if(!e.isSendable())return Ja({code:fa.MESSAGE_FILE_URL_IS_EMPTY});n._addSendMessageTotalCount(e),r=Date.now();var a=function(e){var t="utf-8";ie&&document&&(t=document.charset.toLowerCase());var n,r,o=0;if(r=e.length,"utf-8"===t||"utf8"===t)for(var a=0;a<r;a++)(n=e.codePointAt(a))<=127?o+=1:n<=2047?o+=2:n<=65535?o+=3:(o+=4,a++);else if("utf-16"===t||"utf16"===t)for(var i=0;i<r;i++)(n=e.codePointAt(i))<=65535?o+=2:(o+=4,i++);else o=e.replace(/[^\x00-\xff]/g,"aa").length;return o}(JSON.stringify(e));return e.type===S.MSG_MERGER&&a>11264?n._mergerMessageHandler.uploadMergerMessage(e,a).then((function(r){var o=n._mergerMessageHandler.createMergerMessagePack(e,t,r);return n.request(o)})):(n.getModule(Vn).setMessageRandom(e),e.conversationType===S.CONV_C2C||e.conversationType===S.CONV_GROUP?o.sendMessage(e,t):void 0)})).then((function(a){var i=a.data,s=i.time,c=i.sequence,l=i.readReceiptCode;et(l)&&0!==l&&(new Ta("sendMessageWithReceipt").setMessage("from:".concat(e.from," to:").concat(e.to," sequence:").concat(c," readReceiptCode:").concat(l)).end(),Fe.w("".concat(n._n,".sendMessageInstance readReceiptCode:").concat(l," message:").concat(n.getErrorMessage(l)))),n._addSendMessageSuccessCount(e,r),n._messageOptionsMap.delete(e.clientSequence);var u=n.getModule(Vn);e.status=Xt.SUCCESS,e.time=s;var d=!1;if(e.conversationType===S.CONV_GROUP)e.sequence=c;else if(e.conversationType===S.CONV_C2C){var p=u.getLatestMessageSentByMe(e.conversationID);if(p){var f=p.nick,h=p.avatar;f===e.nick&&h===e.avatar||(d=!0)}}if(d&&u.modifyMessageSentByMe({conversationID:e.conversationID,latestNick:e.nick,latestAvatar:e.avatar}),o.isOnlineMessage(e,t))e._onlineOnlyFlag=!0;else{u.appendToMessageList(e);var m=e;ot(t)&&ot(t.messageControlInfo)&&(!0===t.messageControlInfo.excludedFromLastMessage&&(e._isExcludedFromLastMessage=!0,m=""),!0===t.messageControlInfo.excludedFromUnreadCount&&(e._isExcludedFromUnreadCount=!0));var v=e.conversationType;wt(e.to)&&(v=S.CONV_TOPIC,n.getModule(Un).onMessageSent({groupID:Bt(e.to),topicID:e.to,lastMessage:m})),u.onMessageSent({conversationOptionsList:[{conversationID:e.conversationID,unreadCount:0,type:v,subType:e.conversationSubType,lastMessage:m}]})}return e.getRelayFlag()||"TIMImageElem"!==e.type||xt(e.payload.imageInfoArray),Ya({message:e})}))})).catch((function(t){return n._onSendMessageFailed(e,t)}))}},{key:"_onSendMessageFailed",value:function(e,t){e.status=Xt.FAIL,this.getModule(Vn).deleteMessageRandom(e),this._addSendMessageFailCountOnUser(e,t);var n=new Ta("sendMessage");return n.setMessage("tjg_id:".concat(this.generateTjgID(e)," type:").concat(e.type," from:").concat(e.from," to:").concat(e.to)),this.probeNetwork().then((function(e){var r=_(e,2),o=r[0],a=r[1];n.setError(t,o,a).end()})),Fe.e("".concat(this._n,"._onSendMessageFailed error:"),t),Ja(new qa({code:t&&t.code?t.code:fa.MESSAGE_SEND_FAIL,message:t&&t.message?t.message:void 0,data:{message:e}}))}},{key:"_getSendMessageSpecifiedKey",value:function(e){if([S.MSG_IMAGE,S.MSG_AUDIO,S.MSG_VIDEO,S.MSG_FILE].includes(e.type))return ya;if(e.conversationType===S.CONV_C2C)return va;if(e.conversationType===S.CONV_GROUP){var t=this.getModule(xn).getLocalGroupProfile(e.to);if(!t)return;var n=t.type;return kt(n)?_a:ga}}},{key:"_addSendMessageTotalCount",value:function(e){var t=this._getSendMessageSpecifiedKey(e);t&&this.getModule(er).addTotalCount(t)}},{key:"_addSendMessageSuccessCount",value:function(e,t){var n=Math.abs(Date.now()-t),r=this._getSendMessageSpecifiedKey(e);if(r){var o=this.getModule(er);o.addSuccessCount(r),o.addCost(r,n)}}},{key:"_addSendMessageFailCountOnUser",value:function(e,t){var n,r,o=t.code,a=void 0===o?-1:o,i=this.getModule(er),s=this._getSendMessageSpecifiedKey(e);s===ya&&(n=a,r=!1,ms.includes(n)&&(r=!0),r)?i.addFailedCountOfUserSide(ba):vs(a)&&s&&i.addFailedCountOfUserSide(s)}},{key:"resendMessage",value:function(e){return e.isResend=!0,e.status=Xt.UNSEND,this.sendMessageInstance(e)}},{key:"revokeMessage",value:function(e){var t=this,n=null;if(e.conversationType===S.CONV_C2C?n=this.getModule(Nn):e.conversationType===S.CONV_GROUP&&(n=this.getModule(xn)),!n)return this._onCannotFindModule();var r=new Ta("revokeMessage");r.setMessage("tjg_id:".concat(this.generateTjgID(e)," type:").concat(e.type," from:").concat(e.from," to:").concat(e.to));var o="".concat(this._n,".").concat("revokeMessage");return n.revokeMessage(e).then((function(n){var a=n.data.recallRetList;if(!Kt(a)&&0!==a[0].retCode){var i=new qa({code:a[0].retCode,data:{message:e}});return r.setCode(i.code).setMoreMessage(i.message).end(),Ja(i)}return Fe.i("".concat(o," ok. ID:").concat(e.ID)),e.isRevoked=!0,r.end(),t.getModule(Vn).onMessageRevoked([e]),Ya({message:e})})).catch((function(n){t.probeNetwork().then((function(e){var t=_(e,2),o=t[0],a=t[1];r.setError(n,o,a).end()}));var a=new qa({code:n&&n.code?n.code:fa.MESSAGE_REVOKE_FAIL,message:n&&n.message?n.message:void 0,data:{message:e}});return Fe.w("".concat(o," failed. error:"),n),Ja(a)}))}},{key:"deleteMessage",value:function(e){var t=this,n=null,r=e[0],o=r.conversationID,a="",i=[],s=[];if(r.conversationType===S.CONV_C2C)n=this.getModule(Nn),a=o.replace(S.CONV_C2C,""),e.forEach((function(e){e&&e.status===Xt.SUCCESS&&e.conversationID===o&&(e._onlineOnlyFlag||i.push("".concat(e.sequence,"_").concat(e.random,"_").concat(e.time)),s.push(e))}));else if(r.conversationType===S.CONV_GROUP)n=this.getModule(xn),a=o.replace(S.CONV_GROUP,""),e.forEach((function(e){e&&e.status===Xt.SUCCESS&&e.conversationID===o&&(e._onlineOnlyFlag||i.push("".concat(e.sequence)),s.push(e))}));else if(r.conversationType===S.CONV_SYSTEM)return Ja({code:fa.CANNOT_DELETE_GROUP_SYSTEM_NOTICE});if(!n)return this._onCannotFindModule();if(0===i.length)return this._onMessageDeleted(s);i.length>30&&(i=i.slice(0,30),s=s.slice(0,30));var c=new Ta("deleteMessage");c.setMessage("to:".concat(a," count:").concat(i.length));var l="".concat(this._n,".").concat("deleteMessage");return n.deleteMessage({to:a,keyList:i}).then((function(e){return c.end(),Fe.i("".concat(l," ok")),t._onMessageDeleted(s)})).catch((function(e){t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];c.setError(e,r,o).end()})),Fe.w("".concat(l," failed. error:"),e);var n=new qa({code:e&&e.code?e.code:fa.MESSAGE_DELETE_FAIL,message:e&&e.message?e.message:void 0});return Ja(n)}))}},{key:"_onMessageDeleted",value:function(e){return this.getModule(Vn).onMessageDeleted(e),$a({messageList:e})}},{key:"translateText",value:function(e){var t="".concat(this._n,".").concat("translateText"),r=e.sourceTextList,o=e.sourceLanguage,a=e.targetLanguage,i=new Ta("translateText");return i.setMessage("sourceLanguage:".concat(o," targetLanguage:").concat(a)),this.request({protocolName:pa,requestData:{sourceTextList:r,source:o||"auto",target:a,from:this.getMyTinyID(),SDKAppID:this.getSDKAppID()}}).then((function(e){var r=e.data,o=r.error,a=r.requestID,s=r.translatedTextList;if(0===o.code)return i.end(),Fe.i("".concat(t," ok. requestID:").concat(a)),Ya({translatedTextList:s});throw n(n({},o),{},{requestID:a})})).catch((function(e){return i.setCode(e.code).setMoreMessage(e.requestID).end(),Fe.w("".concat(t," failed. error:"),e),Ja({code:fa.TRANSLATE_TEXT_FAIL})}))}},{key:"modifyRemoteMessage",value:function(e){var t=this,n=null,r=e.conversationType,o=e.to;if(this.getModule(xn).isMessageFromOrToAVChatroom(o))return Ja({code:fa.MESSAGE_MODIFY_DISABLED_IN_AVCHATROOM,data:{message:e}});if(!1===this.getModule(rr).filterMessage(e))return Ja({code:fa.PROFANITY_FOUND,data:{message:e}});r===S.CONV_C2C?n=this.getModule(Nn):r===S.CONV_GROUP&&(n=this.getModule(xn));var a=new Ta("modifyMessage");a.setMessage("to:".concat(o));var i="".concat(this._n,".modifyRemoteMessage");return n.modifyRemoteMessage(e).then((function(n){a.end(),Fe.i("".concat(i," ok"));var r=t._onModifyRemoteMessageResp(e,n.data);return Ya({message:r})})).catch((function(n){if(a.setCode(n.code).setMoreMessage(n.message).end(),Fe.w("".concat(i," failed. error:"),n),20027===n.code){var r=t._onModifyRemoteMessageResp(e,n.data);return Ja({code:fa.MESSAGE_MODIFY_CONFLICT,data:{message:r}})}return Ja({code:n.code,message:n.message,data:{message:e}})}))}},{key:"_onModifyRemoteMessageResp",value:function(e,t){Fe.d("".concat(this._n,"._onModifyRemoteMessageResp options:"),t);var n=e.conversationType,r=e.from,o=e.to,a=e.random,i=e.sequence,s=e.time,c=t.elements,l=t.messageVersion,u=t.cloudCustomData,d=void 0===u?"":u;return this.getModule(Vn).onMessageModified({conversationType:n,from:r,to:o,time:s,random:a,sequence:i,elements:c,cloudCustomData:d,messageVersion:l})}},{key:"_generateUUID",value:function(e){var t=this.getModule(Bn),n="".concat(t.getSDKAppID(),"-").concat(t.getUserID(),"-").concat(function(){for(var e="",t=32;t>0;--t)e+=vt[Math.floor(Math.random()*gt)];return e}()),r=e.name||e.value||e.url||e.tempFilePath,o=r&&r.slice(r.lastIndexOf(".")+1);return o&&(n="".concat(n,".").concat(o)),n}},{key:"getMessageOption",value:function(e){return this._messageOptionsMap.get(e)}},{key:"_getNickAndAvatarByUserID",value:function(e){return this.getModule(An).getNickAndAvatarByUserID(e)}},{key:"_getNameCardByGroupID",value:function(e){if(e.conversationType===S.CONV_GROUP){var t=this.getModule(xn);if(t)return t.getMyNameCardByGroupID(e.to)}return""}},{key:"reset",value:function(){Fe.l("".concat(this._n,".reset")),this._messageOptionsMap.clear()}}]),r}(sr),_s=function(e){c(n,e);var t=g(n);function n(e){var r;return o(this,n),(r=t.call(this,e))._n="MessageExtensionModule",r.messageExtensionMap=new Map,r.globalSeqMap=new Map,r.getMessageExtensionsMap=new Map,r}return i(n,[{key:"onMessageExtensionNotify",value:function(e){var t=this,n=e.dataList,r=n.messageInfo,o=n.operateType,a=n.operateResultList,i=n.tinyID,s=n.globalSequence,c=r.clientTime,l=r.random,u="".concat(i,"-").concat(c,"-").concat(l),d=[],p=[];Fe.l("".concat(this._n,".onMessageExtensionNotify messageID:").concat(u," operateType:").concat(o," globalSequence:").concat(s)),this._updateGlobalSequence(u,s);var f=!1,h=!1;a.forEach((function(e){var n=e.extensions,r=void 0===n?[]:n,a=e.clearSequence;1===o?(f=!0,r.forEach((function(e){d.push({key:e.key,value:e.value})})),t._updateLocalExtension(u,r)):2===o?(h=!0,r.forEach((function(e){p.push(e.key)})),t._updateLocalExtension(u,r)):3===o&&(h=!0,t._hasLocalExtension(u)&&t._getLocalExtension(u).forEach((function(e,t){e.seq<=a&&!Kt(e.value)&&p.push(t)})),t._clearLocalExtension(u,a))})),f&&this.emitOuterEvent(I.MESSAGE_EXTENSIONS_UPDATED,{messageID:u,extensions:d}),h&&this.emitOuterEvent(I.MESSAGE_EXTENSIONS_DELETED,{messageID:u,keyList:p})}},{key:"setMessageExtensions",value:function(e,t){var n=this;if(!this.canIUse(z.MSG_EXT))return Ja({code:fa.CANNOT_USE_COMMERCIAL_ABILITY});var r="".concat(this._n,".").concat("setMessageExtensions"),o=e.ID,a=e.conversationID,i=e.sequence,s=e.time,c=y(t);t.length>20&&(c=t.slice(0,20),Fe.w("".concat(r,". the length of extensions cannot exceed 20.")));var l="conversationID:".concat(a," messageID:").concat(o," sequence:").concat(i," time:").concat(s," count:").concat(c.length),u=new Ta("setMessageExtensions");return u.setMessage(l),Fe.l("".concat(r," ").concat(l)),this._modifyMessageExtensions(e,c).then((function(e){var t=e.resultList,n=e.successCount,o=e.failureCount,a="success count:".concat(n," fail count:").concat(o);return u.setMoreMessage(a).end(),Fe.l("".concat(r," ok. ").concat(a)),Ya({extensions:t})})).catch((function(e){return n.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];u.setError(e,r,o).end()})),Fe.e("".concat(r," failed. error:"),e),Ja(e)}))}},{key:"getMessageExtensions",value:function(e){var t=this;if(!this.canIUse(z.MSG_EXT))return Ja({code:fa.CANNOT_USE_COMMERCIAL_ABILITY});var n="".concat(this._n,".").concat("getMessageExtensions"),r=e.ID,o=e.conversationID,a=e.sequence,i=e.time,s="conversationID:".concat(o," messageID:").concat(r," sequence:").concat(a," time:").concat(i),c=new Ta("getMessageExtensions");c.setMessage(s),Fe.l("".concat(n," ").concat(s));var l=void 0;return this.getMessageExtensionsMap.has(r)&&(l=this._getGlobalSequence(r)),this._getMessageExtensions(e,l).then((function(e){return c.end(),Fe.l("".concat(n," ok. total count:").concat(e.length)),it(l)&&e.length>0&&t.getMessageExtensionsMap.set(r,1),Ya({extensions:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];c.setError(e,r,o).end()})),Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"deleteMessageExtensions",value:function(e,t){var n=this;if(!this.canIUse(z.MSG_EXT))return Ja({code:fa.CANNOT_USE_COMMERCIAL_ABILITY});var r="".concat(this._n,".").concat("deleteMessageExtensions"),o=[],a=3;Kt(t)||(a=2,t.forEach((function(e){o.push({key:e,value:"",seq:0})})));var i=e.ID,s=e.conversationID,c=e.sequence,l=e.time,u="conversationID:".concat(s," messageID:").concat(i," sequence:").concat(c," time:").concat(l," operateType:").concat(a),d=new Ta("deleteMessageExtensions");return d.setMessage(u),Fe.l("".concat(r," ").concat(u)),this._modifyMessageExtensions(e,o,a).then((function(e){var t=e.resultList,n=e.successCount,o=e.failureCount,i="";return 2===a&&(i="success count:".concat(n," fail count:").concat(o)),d.setMoreMessage("".concat(i)).end(),Fe.l("".concat(r," ok. ").concat(i)),Ya({extensions:t})})).catch((function(e){return n.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];d.setError(e,r,o).end()})),Fe.e("".concat(r," failed. error:"),e),Ja(e)}))}},{key:"_modifyMessageExtensions",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=wt(e.to)?S.CONV_TOPIC:e.conversationType,a=void 0;3!==r&&(a=this._getRequestExtensions(e,t));var i=null;switch(o){case S.CONV_C2C:i=this.getModule(Nn);break;case S.CONV_GROUP:i=this.getModule(xn);break;case S.CONV_TOPIC:i=this.getModule(Un);break;default:return Ja({code:fa.CANNOT_FIND_MODULE})}return i.modifyMessageExtensions(e,a,r).then((function(t){var r=t.data,o=r.extensions,a=r.seq,i=[],s=0,c=0,l=[];return(o=Kt(o)?[]:o).forEach((function(e){var t=e.errorCode,n=e.extension,r=n.key,o=n.value,a=n.seq;i.push({code:t,key:r,value:o}),0===t?s++:c++,l.push({key:r,value:o,seq:a})})),n._updateGlobalSequence(e.ID,a),l.length>0&&(n._updateLocalExtension(e.ID,l),l=null),{resultList:i,successCount:s,failureCount:c}})).catch((function(e){return Ja(e)}))}},{key:"_getRequestExtensions",value:function(e,t){var n=[];if(this._hasLocalExtension(e.ID)){var r=this._getLocalExtension(e.ID);return t.forEach((function(e){var t=e.key,o=e.value,a=0;r.has(t)&&(a=r.get(t).seq),n.push({key:t,value:o,seq:a})})),n}return t.forEach((function(e){var t=e.key,r=e.value;n.push({key:t,value:r,seq:0})})),n}},{key:"_getMessageExtensions",value:function(e,t){var n=this,r="".concat(this._n,"._getMessageExtensions"),o=e.ID,a=e.to,i=null;switch(wt(a)?S.CONV_TOPIC:e.conversationType){case S.CONV_C2C:i=this.getModule(Nn);break;case S.CONV_GROUP:i=this.getModule(xn);break;case S.CONV_TOPIC:i=this.getModule(Un);break;default:return Ja({code:fa.CANNOT_FIND_MODULE})}return i.getMessageExtensions(e,t).then((function(t){var a=t.data,i=a.extensions,s=a.completeFlag,c=a.globalSequence,l=a.clearSequence;if(i=Kt(i)?[]:i,Fe.l("".concat(r," ok. completeFlag:").concat(s," globalSequence:").concat(c," clearSequence:").concat(l," count:").concat(i.length)),n._updateLocalExtension(o,i),n._clearLocalExtension(o,l),n._updateGlobalSequence(o,c),1!==s){var u=i.slice(-1)[0].seq+1;return n._getMessageExtensions(e,u)}return n._getLocalExtensions(o)})).catch((function(e){return Ja(e)}))}},{key:"_hasLocalExtension",value:function(e){return this.messageExtensionMap.has(e)}},{key:"_getLocalExtension",value:function(e){return this.messageExtensionMap.get(e)}},{key:"_updateLocalExtension",value:function(e,t){this._hasLocalExtension(e)||this.messageExtensionMap.set(e,new Map);var n=this._getLocalExtension(e);t.forEach((function(e){var t=e.key,r=e.value,o=void 0===r?"":r,a=e.seq;n.set(t,{value:o,seq:a})}))}},{key:"_clearLocalExtension",value:function(e,t){if(!(t<=0)&&this._hasLocalExtension(e)){var n=this._getLocalExtension(e);n.forEach((function(e,r){e.seq<=t&&n.delete(r)}))}}},{key:"_getLocalExtensions",value:function(e){var t=[];return this._hasLocalExtension(e)&&this._getLocalExtension(e).forEach((function(e,n){var r=e.value;Kt(r)||t.push({key:n,value:r})})),t}},{key:"_getGlobalSequence",value:function(e){return this.globalSeqMap.get(e)}},{key:"_updateGlobalSequence",value:function(e,t){this.globalSeqMap.set(e,t)}},{key:"reset",value:function(){Fe.l("".concat(this._n,".reset")),this.messageExtensionMap.clear(),this.globalSeqMap.clear(),this.getMessageExtensionsMap.clear()}}]),n}(sr),ys=function(e){c(n,e);var t=g(n);function n(e){var r;return o(this,n),(r=t.call(this,e))._n="ComboMessageModule",r}return i(n,[{key:"sendMessage",value:function(e){var t=this,n=this._constructMessageInstance(e);if(null===n)return Ja({code:fa.MESSAGE_SEND_FAIL});this._addSendMessageTotalCount(n);var r=Date.now();return this.getModule(Vn).setMessageRandom(n),this._sendComboMessage(n,e).then((function(e){var o=e.data,a=o.time,i=o.sequence,s=o.readReceiptCode;et(s)&&0!==s&&(new Ta("sendMessageWithReceipt").setMessage("from:".concat(n.from," to:").concat(n.to," sequence:").concat(i," readReceiptCode:").concat(s)).end(),Fe.w("".concat(t._n,".sendMessage readReceiptCode:").concat(s," message:").concat(t.getErrorMessage(s)))),t._addSendMessageSuccessCount(n,r);var c=t.getModule(Vn);n.status=Xt.SUCCESS,n.time=a,n.conversationType===S.CONV_GROUP&&(n.sequence=i),c.appendToMessageList(n);var l=n;return!0===n._isExcludedFromLastMessage&&(l=""),c.onMessageSent({conversationOptionsList:[{conversationID:n.conversationID,unreadCount:0,type:n.conversationType,subType:n.conversationSubType,lastMessage:l}]}),Ya({message:n})})).catch((function(e){return t._onSendMessageFailed(n,e)}))}},{key:"_sendComboMessage",value:function(e,t){var n=this._m.getModule(Kn),r="";return e.conversationType===S.CONV_C2C&&(r="".concat(G.NAME.OPEN_IM,".").concat(G.CMD.SEND_MESSAGE)),e.conversationType===S.CONV_GROUP&&(r="".concat(G.NAME.GROUP,".").concat(G.CMD.SEND_GROUP_MESSAGE)),n.sendComboMessage({servcmd:r,data:t})}},{key:"_constructMessageInstance",value:function(e){var t="".concat(this._n,"._constructMessageInstance"),n=null;try{var r=this.getMyUserID(),o={};if(o.senderTinyID=this.getMyTinyID(),o.currentUser=r,o.from=e.From_Account||r,e.GroupId?(o.conversationID="".concat(S.CONV_GROUP).concat(e.GroupId),o.conversationType=S.CONV_GROUP,o.to=e.GroupId):e.To_Account&&(o.conversationID="".concat(S.CONV_C2C).concat(e.To_Account),o.conversationType=S.CONV_C2C,o.to=e.To_Account),o.time=e.MsgTimeStamp||0,o.random=e.Random||e.MsgRandom||0,o.priority=e.MsgPriority,nt(e.CloudCustomData)&&e.CloudCustomData.length>0&&(o.cloudCustomData=e.CloudCustomData),at(e.SendMsgControl)&&(o.messageControlInfo={},e.SendMsgControl.includes("NoUnread")&&(o.messageControlInfo.excludedFromUnreadCount=1),e.SendMsgControl.includes("NoLastMsg")&&(o.messageControlInfo.excludedFromLastMessage=1)),o.conversationType===S.CONV_GROUP&&at(e.To_Account)&&e.To_Account.length>0){var a=e.To_Account;e.To_Account.length>50&&(a=e.To_Account.slice(0,50),Fe.w("".concat(t," To_Account must be less than or equal to 50."))),o.receiverList=y(a),e.To_Account=y(a)}1!==e.IsNeedReadReceipt&&1!==e.NeedReadReceipt||(o.needReadReceipt=!0),1===e.SupportMessageExtension&&(o.isSupportExtension=!0),(n=new Ha(o)).status=Xt.UNSEND,e.MsgClientTime=n.clientTime,n.conversationType===S.CONV_C2C&&(e.MsgSeq=n.sequence);for(var i,s=e.MsgBody.length,c=0;c<s;c++)"TIMTextElem"===(i=e.MsgBody[c]).MsgType?n.setTextElement(i.MsgContent.Text):"TIMCustomElem"===i.MsgType?n.setCustomElement({data:i.MsgContent.Data||"",description:i.MsgContent.Desc||"",extension:i.MsgContent.Ext||""}):"TIMFaceElem"===i.MsgType&&n.setFaceElement({index:i.MsgContent.Index,data:i.MsgContent.Data});var l=n.getElements();n.payload=l[0].content,n.type=l[0].type}catch(d){n=null,Fe.e("".concat(t," failed. error:"),d)}return n}},{key:"_onSendMessageFailed",value:function(e,t){e.status=Xt.FAIL,this.getModule(Vn).deleteMessageRandom(e),this._addSendMessageFailCountOnUser(e,t);var n=new Ta("sendMessage");return n.setMessage("tjg_id:".concat(this.generateTjgID(e)," type:").concat(e.type," from:").concat(e.from," to:").concat(e.to)),this.probeNetwork().then((function(e){var r=_(e,2),o=r[0],a=r[1];n.setError(t,o,a).end()})),Fe.e("".concat(this._n,"._onSendMessageFailed error:"),t),Ja(new qa({code:t&&t.code?t.code:fa.MESSAGE_SEND_FAIL,message:t&&t.message?t.message:void 0,data:{message:e}}))}},{key:"_getSendMessageSpecifiedKey",value:function(e){if(e.conversationType===S.CONV_C2C)return va;if(e.conversationType===S.CONV_GROUP){var t=this.getModule(xn).getLocalGroupProfile(e.to);if(!t)return;var n=t.type;return kt(n)?_a:ga}}},{key:"_addSendMessageTotalCount",value:function(e){var t=this._getSendMessageSpecifiedKey(e);t&&this.getModule(er).addTotalCount(t)}},{key:"_addSendMessageSuccessCount",value:function(e,t){var n=Math.abs(Date.now()-t),r=this._getSendMessageSpecifiedKey(e);if(r){var o=this.getModule(er);o.addSuccessCount(r),o.addCost(r,n)}}},{key:"_addSendMessageFailCountOnUser",value:function(e,t){var n=t.code,r=void 0===n?-1:n,o=this.getModule(er),a=this._getSendMessageSpecifiedKey(e);vs(r)&&a&&o.addFailedCountOfUserSide(a)}}]),n}(sr),bs=function(e){c(n,e);var t=g(n);function n(e){var r;return o(this,n),(r=t.call(this,e))._n="PluginModule",r.plugins={},r}return i(n,[{key:"registerPlugin",value:function(e){var t=this;Object.keys(e).forEach((function(n){t.plugins[n]=e[n]})),new Ta("registerPlugin").setMessage("".concat(Object.keys(e))).end()}},{key:"getPlugin",value:function(e){return this.plugins[e]}},{key:"reset",value:function(){}}]),n}(sr),Os=function(e){c(r,e);var t=g(r);function r(e){var n;return o(this,r),(n=t.call(this,e))._n="SyncUnreadMessageModule",n._cookie="",n._onlineSyncFlag=!1,n.getInnerEmitterInstance().on(Za,n._onLoginSuccess,m(n)),n}return i(r,[{key:"_onLoginSuccess",value:function(e){this._startSync({cookie:this._cookie,syncFlag:0,isOnlineSync:0})}},{key:"_startSync",value:function(e){var t=this,r=e.cookie,o=e.syncFlag,a=e.isOnlineSync,i="".concat(this._n,"._startSync");Fe.l("".concat(i," cookie:").concat(r," syncFlag:").concat(o," isOnlineSync:").concat(a)),this.request({protocolName:pr,requestData:{cookie:r,syncFlag:o,isOnlineSync:a}}).then((function(e){var r=e.data,o=r.cookie,a=r.syncFlag;t._cookie=o,Kt(o)||(0===a||1===a?(t._dispatchUnreadMessage(n(n({},e.data),{},{isSyncingEnded:!1})),t._startSync({cookie:o,syncFlag:a,isOnlineSync:0})):2===a&&t._dispatchUnreadMessage(n(n({},e.data),{},{isSyncingEnded:!0})))})).catch((function(e){Fe.e("".concat(i," failed. error:"),e)}))}},{key:"_dispatchUnreadMessage",value:function(e){e.eventArray&&this.getModule(Kn).onMessage({head:{},body:{eventArray:e.eventArray,isInstantMessage:this._onlineSyncFlag,isSyncingEnded:e.isSyncingEnded}}),this.getModule(Nn).onNewC2CMessage({dataList:e.messageList,isInstantMessage:!!e.isSyncingEnded&&this._onlineSyncFlag,C2CRemainingUnreadList:e.C2CRemainingUnreadList,C2CPairUnreadList:e.C2CPairUnreadList})}},{key:"startOnlineSync",value:function(){Fe.l("".concat(this._n,".startOnlineSync")),this._onlineSyncFlag=!0,this._startSync({cookie:this._cookie,syncFlag:0,isOnlineSync:1})}},{key:"startSyncOnReconnected",value:function(){Fe.l("".concat(this._n,".startSyncOnReconnected.")),this._onlineSyncFlag=!0,this._startSync({cookie:this._cookie,syncFlag:0,isOnlineSync:0})}},{key:"reset",value:function(){Fe.l("".concat(this._n,".reset")),this._onlineSyncFlag=!1,this._cookie=""}}]),r}(sr),Ms={request:{toAccount:"To_Account",fromAccount:"From_Account",to:"To_Account",from:"From_Account",groupID:"GroupId",groupAtUserID:"GroupAt_Account",extension:"Ext",data:"Data",description:"Desc",elements:"MsgBody",sizeType:"Type",downloadFlag:"Download_Flag",thumbUUID:"ThumbUUID",videoUUID:"VideoUUID",remoteAudioUrl:"Url",remoteVideoUrl:"VideoUrl",videoUrl:"",imageUrl:"URL",fileUrl:"Url",uuid:"UUID",priority:"MsgPriority",receiverUserID:"To_Account",receiverGroupID:"GroupId",messageSender:"SenderId",messageReceiver:"ReceiverId",nick:"From_AccountNick",avatar:"From_AccountHeadurl",messageNumber:"MsgNum",pbDownloadKey:"PbMsgKey",downloadKey:"JsonMsgKey",applicationType:"PendencyType",userIDList:"To_Account",groupNameList:"GroupName",userID:"To_Account",groupAttributeList:"GroupAttr",mainSequence:"AttrMainSeq",avChatRoomKey:"BytesKey",attributeControl:"AttrControl",sequence:"seq",messageControlInfo:"SendMsgControl",updateSequence:"UpdateSeq",clientTime:"MsgClientTime",sequenceList:"MsgSeqList",topicID:"TopicId",customData:"CustomString",isSupportTopic:"SupportTopic",isWebUniapp:"is_web_uniapp",isSupportExtension:"SupportMessageExtension",messageSequence:"MsgSeq",messageKey:"MsgKey",startSequence:"startSeq",simplifiedMessage:"DownsizeFlag"},response:{MsgPriority:"priority",ThumbUUID:"thumbUUID",VideoUUID:"videoUUID",Download_Flag:"downloadFlag",GroupId:"groupID",Member_Account:"userID",MsgList:"messageList",SyncFlag:"syncFlag",To_Account:"to",From_Account:"from",MsgSeq:"sequence",MsgRandom:"random",MsgTime:"time",MsgTimeStamp:"time",MsgContent:"content",MsgBody:"elements",From_AccountNick:"nick",From_AccountHeadurl:"avatar",GroupWithdrawInfoArray:"revokedInfos",GroupReadInfoArray:"groupMessageReadNotice",LastReadMsgSeq:"lastMessageSeq",WithdrawC2cMsgNotify:"c2cMessageRevokedNotify",C2cWithdrawInfoArray:"revokedInfos",C2cReadedReceipt:"c2cMessageReadReceipt",ReadC2cMsgNotify:"c2cMessageReadNotice",LastReadTime:"peerReadTime",MsgRand:"random",MsgType:"type",MsgShow:"messageShow",NextMsgSeq:"nextMessageSeq",FaceUrl:"avatar",ProfileDataMod:"profileModify",Profile_Account:"userID",ValueBytes:"value",ValueNum:"value",NoticeSeq:"noticeSequence",NotifySeq:"notifySequence",MsgFrom_AccountExtraInfo:"messageFromAccountExtraInformation",Operator_Account:"operatorID",OpType:"operationType",ReportType:"operationType",UserId:"userID",User_Account:"userID",List_Account:"userIDList",MsgOperatorMemberExtraInfo:"operatorInfo",MsgMemberExtraInfo:"memberInfoList",ImageUrl:"avatar",NickName:"nick",MsgGroupNewInfo:"newGroupProfile",MsgAppDefinedData:"groupCustomField",Owner_Account:"ownerID",GroupFaceUrl:"avatar",GroupIntroduction:"introduction",GroupNotification:"notification",GroupApplyJoinOption:"joinOption",MsgKey:"messageKey",GroupInfo:"groupProfile",ShutupTime:"muteTime",Desc:"description",Ext:"extension",GroupAt_Account:"groupAtUserID",MsgNum:"messageNumber",PbMsgKey:"pbDownloadKey",JsonMsgKey:"downloadKey",MsgModifiedFlag:"isModified",PendencyItem:"applicationItem",PendencyType:"applicationType",AddTime:"time",AddSource:"source",AddWording:"wording",ProfileImImage:"avatar",PendencyAdd:"friendApplicationAdded",FrienPencydDel_Account:"friendApplicationDeletedUserIDList",Peer_Account:"userID",GroupAttr:"groupAttributeList",GroupAttrAry:"groupAttributeList",AttrMainSeq:"mainSequence",seq:"sequence",GroupAttrOption:"groupAttributeOption",BytesChangedKeys:"changedKeyList",GroupAttrInfo:"groupAttributeList",GroupAttrSeq:"mainSequence",PushChangedAttrValFlag:"isWithChangedAttributeInfo",SubKeySeq:"sequence",Val:"value",MsgGroupFromCardName:"senderNameCard",MsgGroupFromNickName:"senderNick",C2cNick:"peerNick",C2cImage:"peerAvatar",SendMsgControl:"messageControlInfo",NoLastMsg:"excludedFromLastMessage",NoUnread:"excludedFromUnreadCount",UpdateSeq:"updateSequence",MuteNotifications:"muteFlag",MsgClientTime:"clientTime",TinyId:"tinyID",GroupMsgReceiptList:"readReceiptList",ReadNum:"readCount",UnreadNum:"unreadCount",TopicId:"topicID",MillionGroupFlag:"communityType",SupportTopic:"isSupportTopic",MsgTopicNewInfo:"newTopicInfo",ShutupAll:"muteAllMembers",CustomString:"customData",TopicFaceUrl:"avatar",TopicIntroduction:"introduction",TopicNotification:"notification",TopicIdArray:"topicIDList",MsgVersion:"messageVersion",C2cMsgModNotifys:"c2cMessageModified",GroupMsgModNotifys:"groupMessageModified",ApplyJoinOption:"joinOption",MsgFlag:"messageRemindType",AtInfoList:"groupAtInfoList",AtFlagList:"groupAtType",AtMsgSeq:"sequence",BanDuration:"duration",BanDescription:"reason",NotVisible:"invisible",BytesTag:"tag",BytesValue:"value",RptBytesValue:"value",LatestSeq:"globalSequence",ClearSeq:"clearSequence",SupportMessageExtension:"isSupportExtension",ExtensionList:"extensions",GroupCounter:"counterList",Revoker_Account:"revoker",MsgExtensionNotify:"messageExtensionNotify",ExtensionC2cMsgInfo:"messageInfo",ExtensionGroupMsgInfo:"messageInfo",MsgOptType:"operateType",SetKVInfo:"operateResultList",DeleteKVInfo:"operateResultList",ClearKVInfo:"operateResultList",MsgKeyValue:"extensions",ClearMsgSeq:"clearSequence",MsgLastSeq:"globalSequence",InviteJoinOption:"inviteOption",MemberList_Account:"inviteeList",MsgMemberExtraInfoList:"inviteeInfoList",E:"event",GInf:"groupProfile",MCT:"clientTime",MR:"random",MP:"priority",MTS:"time",GId:"groupID",MS:"sequence",CCD:"cloudCustomData",F_Account:"from",F_Hd:"avatar",F_NN:"nick",GN:"groupName",GT:"groupType",IsSys:"isSystemMessage",OpInf:"operatorInfo",Img:"avatar",NN:"nick",OnlineInf:"onlineMemberInfo",ET:"expireTime",Num:"onlineMemberNum",Opt:"operationType",O_Account:"operatorID",RT:"operationType",UDF:"userDefinedField",L_Account:"userIDList"},ignoreKeyWord:["C2C","ID","USP"]};function ks(e,t){if("string"!=typeof e&&!Array.isArray(e))throw new TypeError("Expected the input to be `string | string[]`");var n;return t=Object.assign({pascalCase:!1},t),0===(e=Array.isArray(e)?e.map((function(e){return e.trim()})).filter((function(e){return e.length})).join("-"):e.trim()).length?"":1===e.length?t.pascalCase?e.toUpperCase():e.toLowerCase():(e!==e.toLowerCase()&&(e=Cs(e)),e=e.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(function(e,t){return t.toUpperCase()})).replace(/\d+(\w|$)/g,(function(e){return e.toUpperCase()})),n=e,t.pascalCase?n.charAt(0).toUpperCase()+n.slice(1):n)}var Cs=function(e){for(var t=!1,n=!1,r=!1,o=0;o<e.length;o++){var a=e[o];t&&/[a-zA-Z]/.test(a)&&a.toUpperCase()===a?(e=e.slice(0,o)+"-"+e.slice(o),t=!1,r=n,n=!0,o++):n&&r&&/[a-zA-Z]/.test(a)&&a.toLowerCase()===a?(e=e.slice(0,o-1)+"-"+e.slice(o-1),r=n,n=!1,t=!0):(t=a.toLowerCase()===a&&a.toUpperCase()!==a,r=n,n=a.toUpperCase()===a&&a.toLowerCase()!==a)}return e};function ws(e,t){var n=0;return function e(t,r){if(++n>100)return n--,t;if(at(t)){var o=t.map((function(t){return rt(t)?e(t,r):t}));return n--,o}if(rt(t)){var a=(i=t,s=function(e,t){if(!dt(t))return!1;if((o=t)!==ks(o))for(var n=0;n<Ms.ignoreKeyWord.length&&!t.includes(Ms.ignoreKeyWord[n]);n++);var o;return it(r[t])?function(e){return"OPPOChannelID"===e?e:e[0].toUpperCase()+ks(e).slice(1)}(t):r[t]},c=Object.create(null),Object.keys(i).forEach((function(e){var t=s(i[e],e);t&&(c[t]=i[e])})),c);return a=Et(a,(function(t,n){return at(t)||rt(t)?e(t,r):t})),n--,a}var i,s,c}(e,t)}function Is(e,t){if(at(e))return e.map((function(e){return rt(e)?Is(e,t):e}));if(rt(e)){var n=(r=e,o=function(e,n){return it(t[n])?ks(n):t[n]},a={},Object.keys(r).forEach((function(e){a[o(r[e],e)]=r[e]})),a);return Et(n,(function(e){return at(e)||rt(e)?Is(e,t):e}))}var r,o,a}var Ss=String.fromCharCode,Ts=function(e){var t=0|e.charCodeAt(0);if(55296<=t)if(t<56320){var n=0|e.charCodeAt(1);if(56320<=n&&n<=57343){if((t=(t<<10)+n-56613888|0)>65535)return Ss(240|t>>>18,128|t>>>12&63,128|t>>>6&63,128|63&t)}else t=65533}else t<=57343&&(t=65533);return t<=2047?Ss(192|t>>>6,128|63&t):Ss(224|t>>>12,128|t>>>6&63,128|63&t)},Es=function(e){for(var t=void 0===e?"":(""+e).replace(/[\x80-\uD7ff\uDC00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]?/g,Ts),n=0|t.length,r=new Uint8Array(n),o=0;o<n;o=o+1|0)r[o]=0|t.charCodeAt(o);return r},js=function(e){for(var t=new Uint8Array(e),n="",r=0,o=t.length;r<o;){var a=t[r],i=0,s=0;if(a<=127?(i=0,s=255&a):a<=223?(i=1,s=31&a):a<=239?(i=2,s=15&a):a<=244&&(i=3,s=7&a),o-r-i>0)for(var c=0;c<i;)s=s<<6|63&(a=t[r+c+1]),c+=1;else s=65533,i=o-r;n+=String.fromCodePoint(s),r+=i+1}return n},Ds=function(){function e(t){o(this,e),this._handler=t;var n=t.getURL();if(this._socket=null,this._workerSocket=null,this._id=mt(),this._handler.getIsWorkerEnabled()){var r=URL.createObjectURL(new Blob([';let _socket = null;onmessage = function(event) { if (event.data.cmd === "start") { const url = event.data.url; _socket = new WebSocket(url); _socket.binaryType = "arraybuffer"; _socket.onopen = function() { postMessage({ callback: "onOpen" }); }; _socket.onclose = function(e) { postMessage({ callback: "onOpen", e: { code: e.code, reason: e.reason } }); }; _socket.onmessage = function(e) { postMessage({ callback: "onMessage", data: e.data }); }; _socket.onerror = function(e) { postMessage({ callback: "onError", e: { isTrusted: "true" } }); }; } else if (event.data.cmd === "sendMessage") { if (_socket !== null) { _socket.send(event.data.data); } } else if (event.data.cmd === "stop") { if (_socket !== null) { _socket.close(event.data.code); _socket = null; } }};'],{type:"application/javascript; charset=utf-8"}));this._workerSocket=new Worker(r);var a=this;this._workerSocket.onmessage=function(e){var t=e.data,n=t.callback,r=t.e;"onOpen"===n?a._onOpen():"onClose"===n?a._onClose(r):"onError"===n?a._onError(r):"onMessage"===n&&a._onMessage(e.data)},this._workerSocket.postMessage({cmd:"start",id:this._id,url:n})}else ae?te?(se.connectSocket({url:n,header:{"content-type":"application/json"}}),se.onSocketClose(this._onClose.bind(this)),se.onSocketOpen(this._onOpen.bind(this)),se.onSocketMessage(this._onMessage.bind(this)),se.onSocketError(this._onError.bind(this))):(this._socket=se.connectSocket({url:n,header:{"content-type":"application/json"},complete:function(){}}),this._socket.onClose(this._onClose.bind(this)),this._socket.onOpen(this._onOpen.bind(this)),this._socket.onMessage(this._onMessage.bind(this)),this._socket.onError(this._onError.bind(this))):ie&&(this._socket=new WebSocket(n),this._socket.binaryType="arraybuffer",this._socket.onopen=this._onOpen.bind(this),this._socket.onmessage=this._onMessage.bind(this),this._socket.onclose=this._onClose.bind(this),this._socket.onerror=this._onError.bind(this));this._canIUseBinaryFrame=t.canIUseBinaryFrame()}return i(e,[{key:"getID",value:function(){return this._id}},{key:"_onOpen",value:function(){this._handler.onOpen({id:this._id})}},{key:"_onClose",value:function(e){this._handler.onClose({id:this._id,e:e})}},{key:"_onMessage",value:function(e){this._handler.onMessage({data:this._canIUseBinaryFrame?js(e.data):e.data})}},{key:"_onError",value:function(e){this._handler.onError({id:this._id,e:e})}},{key:"setIsWorkerEnabled",value:function(e){this._isWorkerEnabled=!0}},{key:"close",value:function(e){if(this._workerSocket&&(this._workerSocket.postMessage({cmd:"stop",code:e}),this._workerSocket.terminate(),this._workerSocket=null),te)return se.offSocketClose(),se.offSocketMessage(),se.offSocketOpen(),se.offSocketError(),void se.closeSocket();this._socket&&(ae?(this._socket.onClose((function(){})),this._socket.onOpen((function(){})),this._socket.onMessage((function(){})),this._socket.onError((function(){}))):ie&&(this._socket.onopen=null,this._socket.onmessage=null,this._socket.onclose=null,this._socket.onerror=null),ee?this._socket.close({code:e}):this._socket.close(e),this._socket=null)}},{key:"send",value:function(e){if(this._workerSocket)this._workerSocket.postMessage({cmd:"sendMessage",data:this._canIUseBinaryFrame?Es(e.data).buffer:e.data});else{if(te)return void se.sendSocketMessage({data:e.data,fail:function(){e.fail&&e.requestID&&e.fail(e.requestID)}});this._socket&&(ae?this._socket.send({data:this._canIUseBinaryFrame?Es(e.data).buffer:e.data,fail:function(){e.fail&&e.requestID&&e.fail(e.requestID)}}):ie&&this._socket.send(this._canIUseBinaryFrame?Es(e.data).buffer:e.data))}}}]),e}(),Ls=4e3,As=4001,Ns=["keyMap"],xs=["keyMap"],Rs="connected",Ps="connecting",Us="disconnected",Vs=function(){function e(t){o(this,e),this._channelModule=t,this._n="SocketHandler",this._promiseMap=new Map,this._readyState=Us,this._simpleRequestMap=new Map,this.MAX_SIZE=100,this._startSequence=mt(),this._startTs=0,this._reConnectFlag=!1,this._nextPingTs=0,this._reConnectCount=0,this.MAX_RECONNECT_COUNT=3,this._socketID=-1,this._random=0,this._socket=null,this._url="",this._onOpenTs=0,this._canIUseBinaryFrame=!0,this._isWorkerEnabled=!0,this._setWebsocketHost(),this._initConnection()}return i(e,[{key:"_setWebsocketHost",value:function(){var e=this._channelModule.getModule(Bn),t=N;this._channelModule.isOversea()&&(t=x),e.isSingaporeSite()?t=R:e.isKoreaSite()?t=P:e.isGermanySite()?t=U:e.isIndiaSite()?t=V:e.isJapanSite()?t=B:e.isUSASite()&&(t=F),G.HOST.setCurrent(t)}},{key:"_initConnection",value:function(){it(G.HOST.CURRENT.BACKUP)||""===this._url?this._url=G.HOST.CURRENT.DEFAULT:this._url===G.HOST.CURRENT.DEFAULT?this._url=G.HOST.CURRENT.BACKUP:this._url===G.HOST.CURRENT.BACKUP?this._url=this._canIUseAnyCast()?G.HOST.CURRENT.ANYCAST:G.HOST.CURRENT.DEFAULT:this._url===G.HOST.CURRENT.ANYCAST&&(G.HOST.CURRENT.ANYCAST="",this._url=G.HOST.CURRENT.DEFAULT);var e=this._channelModule.getModule(Bn).getProxyServer();Kt(e)||(this._url=e),this._connect(),this._nextPingTs=0}},{key:"_canIUseAnyCast",value:function(){return ie&&G.HOST.CURRENT.ANYCAST}},{key:"onCheckTimer",value:function(e){e%1==0&&this._checkPromiseMap()}},{key:"_checkPromiseMap",value:function(){var e=this;0!==this._promiseMap.size&&this._promiseMap.forEach((function(t,n){var r=t.reject,o=t.timestamp,a=15e3;-1!==n.indexOf(cr)&&(a=9e4),Date.now()-o>=a&&(Fe.l("".concat(e._n,"._checkPromiseMap request timeout, delete requestID:").concat(n)),e._promiseMap.delete(n),r(new qa({code:fa.NETWORK_TIMEOUT})),e._channelModule.onRequestTimeout(n))}))}},{key:"onOpen",value:function(e){if(""!==this._readyState){this._onOpenTs=Date.now();var t=e.id;this._socketID=t;var n=Date.now()-this._startTs;Fe.l("".concat(this._n,"._onOpen cost ").concat(n," ms. socketID:").concat(t)),new Ta("wsOnOpen").setMessage(n).setCostTime(n).setMoreMessage("socketID:".concat(t)).end(),e.id===this._socketID&&(this._readyState=Rs,this._reConnectCount=0,this._resend(),!0===this._reConnectFlag&&(this._channelModule.onReconnected(),this._reConnectFlag=!1),this._channelModule.onOpen())}}},{key:"onClose",value:function(e){var t=new Ta("wsOnClose"),n=e.id,r=e.e,o="sourceSocketID:".concat(n," currentSocketID:").concat(this._socketID," code:").concat(r.code," reason:").concat(r.reason),a=0;0!==this._onOpenTs&&(a=Date.now()-this._onOpenTs),t.setMessage(a).setCostTime(a).setMoreMessage(o).setCode(r.code).end(),Fe.l("".concat(this._n,"._onClose ").concat(o," onlineTime:").concat(a)),n===this._socketID&&(this._readyState=Us,a<1e3?this._channelModule.onReconnectFailed():this._channelModule.onClose())}},{key:"onError",value:function(e){var t=e.id,n=e.e,r="sourceSocketID:".concat(t," currentSocketID:").concat(this._socketID);new Ta("wsOnError").setMessage(n.errMsg||ft(n)).setMoreMessage(r).setLevel("error").end(),Fe.w("".concat(this._n,"._onError"),n,r),t===this._socketID&&(this._readyState="",this._channelModule.onError())}},{key:"onMessage",value:function(e){var t;try{t=JSON.parse(e.data)}catch(u){new Ta("jsonParseError").setMessage(e.data).end()}if(t&&t.head){var n=this._getRequestIDFromHead(t.head),r=t.body;if(!n.startsWith(G.NAME.TUIROOM_SVR)){var o=Rt(t.head);r=Is(t.body,this._getResponseKeyMap(o))}if(Fe.d("".concat(this._n,".onMessage ret:").concat(JSON.stringify(r)," requestID:").concat(n," has:").concat(this._promiseMap.has(n))),this._setNextPingTs(),this._promiseMap.has(n)){var a=this._promiseMap.get(n),i=a.resolve,s=a.reject,c=a.timestamp;return this._promiseMap.delete(n),this._calcRTT(c),void(r.errorCode&&0!==r.errorCode?(this._channelModule.onErrorCodeNotZero(r),s(new qa({code:r.errorCode,message:r.errorInfo||"",data:n.includes(Tr)||n.includes(yo)?{elements:r.elements,messageVersion:r.messageVersion,cloudCustomData:r.cloudCustomData}:void 0}))):i(Ya(r)))}this._channelModule.onMessage({head:t.head,body:r})}}},{key:"_calcRTT",value:function(e){var t=Date.now()-e;this._channelModule.getModule(er).addRTT(t)}},{key:"_connect",value:function(){this._startTs=Date.now(),this._onOpenTs=0,this._socket=new Ds(this),this._socketID=this._socket.getID(),this._readyState=Ps,Fe.l("".concat(this._n,"._connect isWorkerEnabled:").concat(this.getIsWorkerEnabled()," socketID:").concat(this._socketID," url:").concat(this.getURL())),new Ta("wsConnect").setMessage("socketID:".concat(this._socketID," url:").concat(this.getURL())).end()}},{key:"getURL",value:function(){this._channelModule.isDevMode()&&(this._canIUseBinaryFrame=!1);var e=Lt();(te||Q&&"windows"===e||re)&&(this._canIUseBinaryFrame=!1);var t=-1;"ios"===e?t=_e||-1:"android"===e&&(t=be||-1);var n=this._channelModule.getModule(Bn),r=this._channelModule.getPlatform(),o=n.getSDKAppID(),a=n.getInstanceID(),i="sdkappid=".concat(o,"&instanceid=").concat(a,"&random=").concat(this._getRandom(),"&platform=").concat(r,"&host=").concat(e,"&version=").concat(t);return this._canIUseBinaryFrame?"".concat(this._url,"/binfo?").concat(i):"".concat(this._url,"/info?").concat(i)}},{key:"_closeConnection",value:function(e){Fe.l("".concat(this._n,"._closeConnection socketID:").concat(this._socketID)),this._socket&&(this._socket.close(e),this._socketID=-1,this._socket=null,this._readyState=Us)}},{key:"_resend",value:function(){var e=this;if(Fe.l("".concat(this._n,"._resend reConnectFlag:").concat(this._reConnectFlag),"promiseMap.size:".concat(this._promiseMap.size," simpleRequestMap.size:").concat(this._simpleRequestMap.size)),this._promiseMap.size>0&&this._promiseMap.forEach((function(t,n){var r=t.uplinkData,o=t.resolve,a=t.reject;e._promiseMap.set(n,{resolve:o,reject:a,timestamp:Date.now(),uplinkData:r}),e._execute(n,r)})),this._simpleRequestMap.size>0){var t,n=w(this._simpleRequestMap);try{for(n.s();!(t=n.n()).done;){var r=_(t.value,2),o=r[0],a=r[1];this._execute(o,a)}}catch(s){n.e(s)}finally{n.f()}this._simpleRequestMap.clear()}}},{key:"send",value:function(e){var t=this;e.head.seq=this._getSequence(),e.head.reqtime=Math.floor(Date.now()/1e3),e.keyMap;var n=h(e,Ns),r=this._getRequestIDFromHead(e.head),o=JSON.stringify(n);return new Promise((function(e,a){t._promiseMap.set(r,{resolve:e,reject:a,timestamp:Date.now(),uplinkData:o}),Fe.d("".concat(t._n,".send uplinkData:").concat(JSON.stringify(n)," requestID:").concat(r," readyState:").concat(t._readyState)),t._readyState!==Rs?t._reConnect():(t._execute(r,o),t._channelModule.getModule(er).addRequestCount())}))}},{key:"simplySend",value:function(e){e.head.seq=this._getSequence(),e.head.reqtime=Math.floor(Date.now()/1e3),e.keyMap;var t=h(e,xs),n=this._getRequestIDFromHead(e.head),r=JSON.stringify(t);this._readyState!==Rs?(this._simpleRequestMap.size<this.MAX_SIZE?this._simpleRequestMap.set(n,r):Fe.l("".concat(this._n,".simplySend. simpleRequestMap is full, drop request!")),this._reConnect()):this._execute(n,r)}},{key:"_execute",value:function(e,t){this._socket.send({data:t,fail:ae?this._onSendFail.bind(this):void 0,requestID:e})}},{key:"_onSendFail",value:function(e){Fe.l("".concat(this._n,"._onSendFail requestID:").concat(e))}},{key:"_getSequence",value:function(){var e;if(this._startSequence<2415919103)return e=this._startSequence,this._startSequence+=1,2415919103===this._startSequence&&(this._startSequence=mt()),e}},{key:"_getRequestIDFromHead",value:function(e){return e.servcmd+e.seq}},{key:"_getResponseKeyMap",value:function(e){var t=this._channelModule.getKeyMap(e);return n(n({},Ms.response),t.response)}},{key:"_reConnect",value:function(){this._readyState!==Rs&&this._readyState!==Ps&&this.forcedReconnect()}},{key:"forcedReconnect",value:function(){var e=this,t="".concat(this._n,".forcedReconnect");Fe.l("".concat(t," count:").concat(this._reConnectCount," readyState:").concat(this._readyState)),this._reConnectFlag=!0,this._resetRandom(),this._reConnectCount<this.MAX_RECONNECT_COUNT?(this._reConnectCount+=1,this._closeConnection(As),this._initConnection()):(this._reConnectCount=0,this._channelModule.probeNetwork().then((function(n){var r=_(n,2),o=r[0];r[1],o?(Fe.w("".concat(t," disconnected from wsserver but network is ok, continue...")),e._closeConnection(As),e._initConnection()):e._channelModule.onReconnectFailed()})))}},{key:"getReconnectFlag",value:function(){return this._reConnectFlag}},{key:"_setNextPingTs",value:function(){this._nextPingTs=Date.now()+1e4}},{key:"getNextPingTs",value:function(){return this._nextPingTs}},{key:"isConnected",value:function(){return this._readyState===Rs}},{key:"canIUseBinaryFrame",value:function(){return this._canIUseBinaryFrame}},{key:"setIsWorkerEnabled",value:function(e){Fe.l("".concat(this._n,".setIsWorkerEnabled flag:").concat(e)),this._isWorkerEnabled=e}},{key:"getIsWorkerEnabled",value:function(){return this._isWorkerEnabled&&Se}},{key:"_getRandom",value:function(){return 0===this._random&&(this._random=Math.random()),this._random}},{key:"_resetRandom",value:function(){this._random=0}},{key:"close",value:function(){Fe.l("".concat(this._n,".close")),this._closeConnection(Ls),this._promiseMap.clear(),this._startSequence=mt(),this._readyState=Us,this._simpleRequestMap.clear(),this._reConnectFlag=!1,this._reConnectCount=0,this._onOpenTs=0,this._url="",this._random=0,this._canIUseBinaryFrame=!0,this._isWorkerEnabled=!0}}]),e}(),Bs=function(e){c(n,e);var t=g(n);function n(e){var r;if(o(this,n),(r=t.call(this,e))._n="ChannelModule",r._socketHandler=new Vs(m(r)),r._probing=!1,r._isAppShowing=!0,r._previousState=S.NET_STATE_CONNECTED,ae&&"function"==typeof se.onAppShow&&"function"==typeof se.onAppHide){var a=r._onAppHide.bind(m(r)),i=r._onAppShow.bind(m(r));"function"==typeof se.offAppHide&&se.offAppHide(a),"function"==typeof se.offAppShow&&se.offAppShow(i),se.onAppHide(a),se.onAppShow(i)}return r._timerForNotLoggedIn=-1,r._timerForNotLoggedIn=setInterval(r.onCheckTimer.bind(m(r)),1e3),r._fatalErrorFlag=!1,r}return i(n,[{key:"onCheckTimer",value:function(e){this._socketHandler&&(this.isLoggedIn()?(this._timerForNotLoggedIn>0&&(clearInterval(this._timerForNotLoggedIn),this._timerForNotLoggedIn=-1),this._socketHandler.onCheckTimer(e)):this._socketHandler.onCheckTimer(1),this._checkNextPing())}},{key:"onErrorCodeNotZero",value:function(e){this.getModule(Kn).onErrorCodeNotZero(e)}},{key:"onMessage",value:function(e){this.getModule(Kn).onMessage(e)}},{key:"send",value:function(e){return this._socketHandler?this._previousState!==S.NET_STATE_CONNECTED&&e.head.servcmd.includes(Fo)?(this.reConnect(),this._sendLogViaHTTP(e)):this._socketHandler.send(e):Promise.reject()}},{key:"_sendLogViaHTTP",value:function(e){var t=G.HOST.CURRENT.STAT;return new Promise((function(n,r){var o="".concat(t,"/v4/imopenstat/tim_web_report_v2?sdkappid=").concat(e.head.sdkappid,"&reqtime=").concat(Date.now()),a=JSON.stringify(e.body),i="application/x-www-form-urlencoded;charset=UTF-8";if(ae)se.request({url:o,data:a,method:"POST",timeout:3e3,header:{"content-type":i},success:function(){n()},fail:function(){r(new qa({code:fa.NETWORK_ERROR}))}});else{var s=new XMLHttpRequest,c=setTimeout((function(){s.abort(),r(new qa({code:fa.NETWORK_TIMEOUT}))}),3e3);s.onreadystatechange=function(){4===s.readyState&&(clearTimeout(c),200===s.status||304===s.status?n():r(new qa({code:fa.NETWORK_ERROR})))},s.open("POST",o,!0),s.setRequestHeader("Content-type",i),s.send(a)}}))}},{key:"simplySend",value:function(e){return this._socketHandler?this._socketHandler.simplySend(e):Promise.reject()}},{key:"onOpen",value:function(){this._ping()}},{key:"onClose",value:function(){this._socketHandler&&this._socketHandler.getReconnectFlag()&&this._emitNetStateChangeEvent(S.NET_STATE_DISCONNECTED),this.reConnect()}},{key:"onError",value:function(){ae&&!re&&this.outputWarning("DomainNameInMP"),this._emitNetStateChangeEvent(S.NET_STATE_DISCONNECTED)}},{key:"getKeyMap",value:function(e){return this.getModule(Kn).getKeyMap(e)}},{key:"_onAppHide",value:function(){this._isAppShowing=!1}},{key:"_onAppShow",value:function(){this._isAppShowing=!0}},{key:"onRequestTimeout",value:function(e){}},{key:"onReconnected",value:function(){Fe.l("".concat(this._n,".onReconnected")),this._m.restartTimer(),this.getModule(Kn).onReconnected(),this._emitNetStateChangeEvent(S.NET_STATE_CONNECTED)}},{key:"onReconnectFailed",value:function(){Fe.l("".concat(this._n,".onReconnectFailed")),this._emitNetStateChangeEvent(S.NET_STATE_DISCONNECTED)}},{key:"setIsWorkerEnabled",value:function(e){this._socketHandler&&this._socketHandler.setIsWorkerEnabled(!1)}},{key:"offline",value:function(){this._emitNetStateChangeEvent(S.NET_STATE_DISCONNECTED)}},{key:"reConnect",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!1;this._socketHandler&&(t=this._socketHandler.getReconnectFlag());var n="forcedFlag:".concat(e," fatalErrorFlag:").concat(this._fatalErrorFlag," previousState:").concat(this._previousState," reconnectFlag:").concat(t);if(Fe.l("".concat(this._n,".reConnect ").concat(n)),!this._fatalErrorFlag&&this._socketHandler){if(!0===e)this._socketHandler.forcedReconnect();else{if(this._previousState===S.NET_STATE_CONNECTING&&t)return;this._socketHandler.forcedReconnect()}this._emitNetStateChangeEvent(S.NET_STATE_CONNECTING)}}},{key:"_emitNetStateChangeEvent",value:function(e){this._previousState!==e&&(Fe.l("".concat(this._n,"._emitNetStateChangeEvent from ").concat(this._previousState," to ").concat(e)),this._previousState=e,this.emitOuterEvent(I.NET_STATE_CHANGE,{state:e}))}},{key:"_ping",value:function(){var e=this;if(!0!==this._probing){this._probing=!0;var t=this.getModule(Kn).getProtocolData({protocolName:Go});this.send(t).then((function(){e._probing=!1})).catch((function(t){if(Fe.w("".concat(e._n,"._ping failed. error:"),t),e._probing=!1,t&&60002===t.code)return new Ta("error").setMessage("code:".concat(t.code," message:").concat(t.message)).setNetworkType(e.getModule(zn).getNetworkType()).end(),e._fatalErrorFlag=!0,void e._emitNetStateChangeEvent(S.NET_STATE_DISCONNECTED);e.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];Fe.l("".concat(e._n,"._ping failed. probe network, isAppShowing:").concat(e._isAppShowing," online:").concat(r," networkType:").concat(o)),r?e.reConnect():e._emitNetStateChangeEvent(S.NET_STATE_DISCONNECTED)}))}))}}},{key:"_checkNextPing",value:function(){this._socketHandler&&this._socketHandler.isConnected()&&Date.now()>=this._socketHandler.getNextPingTs()&&this._ping()}},{key:"dealloc",value:function(){this._socketHandler&&(this._socketHandler.close(),this._socketHandler=null),this._timerForNotLoggedIn>-1&&clearInterval(this._timerForNotLoggedIn)}},{key:"onRestApiKickedOut",value:function(){this._socketHandler&&(this._socketHandler.close(),this.reConnect(!0))}},{key:"reset",value:function(){Fe.l("".concat(this._n,".reset")),this._previousState=S.NET_STATE_CONNECTED,this._probing=!1,this._fatalErrorFlag=!1,this._timerForNotLoggedIn=setInterval(this.onCheckTimer.bind(this),1e3)}}]),n}(sr),Fs=["a2","tinyid"],Gs=["a2","tinyid"],zs=function(){function e(t){o(this,e),this._n="ProtocolHandler",this._sessionModule=t,this._configMap=new Map,this._fillConfigMap()}return i(e,[{key:"_fillConfigMap",value:function(){this._configMap.clear();var e=this._sessionModule.genCommonHead(),t=this._sessionModule.genCosSpecifiedHead(),r=this._sessionModule.genSSOReportHead(),o=this._sessionModule.isIntl();this._configMap.set(cr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_OPEN_STATUS,".").concat(G.CMD.LOGIN)}),body:{state:"Online",isWebUniapp:0,deviceBrand:0},keyMap:{request:{deviceBrand:"InstType"},response:{InstId:"instanceID",HelloInterval:"helloInterval"}}}}(e)),this._configMap.set(lr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_OPEN_STATUS,".").concat(G.CMD.LOGOUT)}),body:{type:0},keyMap:{request:{type:"wslogout_type"}}}}(e)),this._configMap.set(ur,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_OPEN_STATUS,".").concat(G.CMD.HELLO)}),body:{isWebUniapp:0},keyMap:{response:{NewInstInfo:"newInstanceInfo"}}}}(e)),this._configMap.set(dr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.STAT_SERVICE,".").concat(G.CMD.KICK_OTHER)}),body:{}}}(e)),this._configMap.set(Uo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_COS_SIGN,".").concat(G.CMD.COS_SIGN)}),body:{cmd:"open_im_cos_svc",subCmd:"get_cos_token",duration:300,version:2},keyMap:{request:{userSig:"usersig",subCmd:"sub_cmd",cmd:"cmd",duration:"duration",version:"version"},response:{expired_time:"expiredTime",bucket_name:"bucketName",session_token:"sessionToken",tmp_secret_id:"secretId",tmp_secret_key:"secretKey"}}}}(t)),this._configMap.set(Vo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.CUSTOM_UPLOAD,".").concat(G.CMD.COS_PRE_SIG)}),body:{fileType:void 0,fileName:void 0,uploadMethod:0,duration:900},keyMap:{request:{userSig:"usersig",fileType:"file_type",fileName:"file_name",uploadMethod:"upload_method"},response:{expired_time:"expiredTime",request_id:"requestId",head_url:"headUrl",upload_url:"uploadUrl",download_url:"downloadUrl",ci_url:"ciUrl",snapshot_url:"requestSnapshotUrl"}}}}(t)),this._configMap.set(Bo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.CUSTOM_UPLOAD,".").concat(G.CMD.VIDEO_COVER)}),body:{version:1,platform:void 0,coverName:void 0,requestSnapshotUrl:void 0},keyMap:{request:{version:"version",platform:"platform",coverName:"cover_name",requestSnapshotUrl:"snapshot_url"},response:{error_code:"errorCode",error_msg:"errorInfo",download_url:"snapshotUrl"}}}}(t)),this._configMap.set(Qo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_CONFIG_MANAGER,".").concat(G.CMD.FETCH_COMMERCIAL_CONFIG)}),body:{SDKAppID:0},keyMap:{request:{SDKAppID:"uint32_sdkappid"},response:{int32_error_code:"errorCode",str_error_message:"errorMessage",str_purchase_bits:"purchaseBits",uint32_expired_time:"expiredTime"}}}}(e)),this._configMap.set(Xo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_CONFIG_MANAGER,".").concat(G.CMD.PUSHED_COMMERCIAL_CONFIG)}),body:{},keyMap:{response:{int32_error_code:"errorCode",str_error_message:"errorMessage",str_purchase_bits:"purchaseBits",uint32_expired_time:"expiredTime"}}}}(e)),this._configMap.set($o,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_CONFIG_MANAGER,".").concat(G.CMD.FETCH_CLOUD_CONTROL_CONFIG)}),body:{SDKAppID:0,version:0},keyMap:{request:{SDKAppID:"uint32_sdkappid",version:"uint64_version"},response:{int32_error_code:"errorCode",str_error_message:"errorMessage",str_json_config:"cloudControlConfig",uint32_expired_time:"expiredTime",uint32_sdkappid:"SDKAppID",uint64_version:"version"}}}}(e)),this._configMap.set(Jo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_CONFIG_MANAGER,".").concat(G.CMD.PUSHED_CLOUD_CONTROL_CONFIG)}),body:{},keyMap:{response:{int32_error_code:"errorCode",str_error_message:"errorMessage",str_json_config:"cloudControlConfig",uint32_expired_time:"expiredTime",uint32_sdkappid:"SDKAppID",uint64_version:"version"}}}}(e)),this._configMap.set(Zo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OVERLOAD_PUSH,".").concat(G.CMD.OVERLOAD_NOTIFY)}),body:{},keyMap:{response:{OverLoadServCmd:"overloadCommand",DelaySecs:"waitingTime"}}}}(e)),this._configMap.set(pr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.GET_MESSAGES)}),body:{cookie:"",syncFlag:0,needAbstract:1,isOnlineSync:0,needSignaling:1},keyMap:{request:{fromAccount:"From_Account",toAccount:"To_Account",from:"From_Account",to:"To_Account",time:"MsgTimeStamp",sequence:"MsgSeq",random:"MsgRandom",elements:"MsgBody"},response:{MsgList:"messageList",SyncFlag:"syncFlag",To_Account:"to",From_Account:"from",ClientSeq:"clientSequence",MsgSeq:"sequence",NoticeSeq:"noticeSequence",NotifySeq:"notifySequence",MsgRandom:"random",MsgTimeStamp:"time",MsgContent:"content",ToGroupId:"to",MsgKey:"messageKey",GroupTips:"groupTips",MsgBody:"elements",MsgType:"type",C2CRemainingUnreadCount:"C2CRemainingUnreadList",C2CPairUnreadCount:"C2CPairUnreadList"}}}}(e)),o||(this._configMap.set(fr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.BIG_DATA_HALLWAY_AUTH_KEY)}),body:{}}}(e)),this._configMap.set(da,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_MSG_AUDIT_MGR,".").concat(G.CMD.GET_RPOFANITY_LIST)}),body:{version:0,deviceID:"",startIndex:void 0},keyMap:{request:{version:"uint64_version",deviceID:"str_device_id",startIndex:"uint64_start_index"},response:{msg_cmd_error_code:"errorInfo",str_err_msg:"errorMessage",uint32_code:"errorCode",msg_scene_ctl_config:"filterConfig",uint64_c2c_custom_msg_flag:"c2c_custom_message",uint64_c2c_text_msg_flag:"c2c_text_message",uint64_group_custom_msg_flag:"group_custom_message",uint64_group_text_msg_flag:"group_text_message",uint64_group_info_flag:"group_profile",uint64_group_member_info_flag:"group_member_profile",uint64_relation_chain_flag:"sns",uint64_user_info_flag:"user_profile",rpt_msg_dirty_word:"lexicon",str_dirty_word:"profanity",str_replaced_content:"replacement",uint64_filter_type:"filterType",uint64_id:"id",uint64_word_type:"profanityType",uint64_complete_flag:"completeFlag",uint64_next_start_index:"nextStartIndex",uint64_version:"version",uint64_expired_time:"expiredTime"}}}}(e))),this._configMap.set(hr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.SEND_MESSAGE)}),body:{fromAccount:"",toAccount:"",msgSeq:0,msgRandom:0,msgBody:[],cloudCustomData:void 0,nick:"",avatar:"",msgLifeTime:void 0,offlinePushInfo:{pushFlag:0,title:"",desc:"",ext:"",apnsInfo:{badgeMode:0,isVoipPush:void 0},androidInfo:{OPPOChannelID:""}},messageControlInfo:void 0,clientTime:void 0,needReadReceipt:0,isSupportExtension:0},keyMap:{request:{fromAccount:"From_Account",toAccount:"To_Account",msgTimeStamp:"MsgTimeStamp",msgSeq:"MsgSeq",msgRandom:"MsgRandom",msgBody:"MsgBody",count:"MaxCnt",lastMessageTime:"LastMsgTime",messageKey:"MsgKey",peerAccount:"Peer_Account",data:"Data",description:"Desc",extension:"Ext",type:"MsgType",content:"MsgContent",sizeType:"Type",uuid:"UUID",url:"",imageUrl:"URL",fileUrl:"Url",remoteAudioUrl:"Url",remoteVideoUrl:"VideoUrl",thumbUUID:"ThumbUUID",videoUUID:"VideoUUID",videoUrl:"",downloadFlag:"Download_Flag",nick:"From_AccountNick",avatar:"From_AccountHeadurl",from:"From_Account",time:"MsgTimeStamp",messageRandom:"MsgRandom",messageSequence:"MsgSeq",elements:"MsgBody",clientSequence:"ClientSeq",payload:"MsgContent",messageList:"MsgList",messageNumber:"MsgNum",abstractList:"AbstractList",messageBody:"MsgBody",needReadReceipt:"IsNeedReadReceipt"}}}}(e)),this._configMap.set(mr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.SEND_GROUP_MESSAGE)}),body:{fromAccount:"",groupID:"",random:0,clientSequence:0,priority:"",msgBody:[],cloudCustomData:void 0,onlineOnlyFlag:0,offlinePushInfo:{pushFlag:0,title:"",desc:"",ext:"",apnsInfo:{badgeMode:0,isVoipPush:void 0},androidInfo:{OPPOChannelID:""}},groupAtInfo:[],messageControlInfo:void 0,clientTime:void 0,needReadReceipt:0,topicID:void 0,receiverList:void 0,isSupportExtension:0},keyMap:{request:{to:"GroupId",extension:"Ext",data:"Data",description:"Desc",random:"Random",sequence:"ReqMsgSeq",count:"ReqMsgNumber",type:"MsgType",priority:"MsgPriority",content:"MsgContent",elements:"MsgBody",sizeType:"Type",uuid:"UUID",url:"",imageUrl:"URL",fileUrl:"Url",remoteAudioUrl:"Url",remoteVideoUrl:"VideoUrl",thumbUUID:"ThumbUUID",videoUUID:"VideoUUID",videoUrl:"",downloadFlag:"Download_Flag",clientSequence:"ClientSeq",from:"From_Account",time:"MsgTimeStamp",messageRandom:"MsgRandom",messageSequence:"MsgSeq",payload:"MsgContent",messageList:"MsgList",messageNumber:"MsgNum",abstractList:"AbstractList",messageBody:"MsgBody",needReadReceipt:"NeedReadReceipt",receiverList:"To_Account"},response:{MsgTime:"time",MsgSeq:"sequence"}}}}(e)),this._configMap.set(Or,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.REVOKE_C2C_MESSAGE)}),body:{msgInfo:{fromAccount:"",toAccount:"",msgTimeStamp:0,msgSeq:0,msgRandom:0}},keyMap:{request:{msgInfo:"MsgInfo",msgTimeStamp:"MsgTimeStamp",msgSeq:"MsgSeq",msgRandom:"MsgRandom"}}}}(e)),this._configMap.set(oo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.REVOKE_GROUP_MESSAGE)}),body:{groupID:"",msgSeqList:void 0,topicID:""},keyMap:{request:{msgSeqList:"MsgSeqList",msgSeq:"MsgSeq"}}}}(e)),this._configMap.set(wr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.GET_C2C_ROAM_MESSAGES)}),body:{peerAccount:"",count:15,lastMessageTime:0,messageKey:"",withRecalledMessage:1,direction:0},keyMap:{request:{messageKey:"MsgKey",peerAccount:"Peer_Account",count:"MaxCnt",lastMessageTime:"LastMsgTime",withRecalledMessage:"WithRecalledMsg",direction:"GetDirection"},response:{LastMsgTime:"lastMessageTime",IsNeedReadReceipt:"needReadReceipt",IsPeerRead:"readReceiptSentByPeer"}}}}(e)),this._configMap.set(Tr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.MODIFY_C2C_MESSAGE)}),body:{from:"",to:"",sequence:0,random:0,time:0,version:0,elements:void 0,cloudCustomData:void 0},keyMap:{request:{sequence:"MsgSeq",random:"MsgRandom",time:"MsgTime",version:"MsgVersion",type:"MsgType",content:"MsgContent"}}}}(e)),this._configMap.set(so,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.GET_GROUP_ROAM_MESSAGES)}),body:{withRecalledMsg:1,groupID:"",count:15,sequence:"",topicID:void 0},keyMap:{request:{sequence:"ReqMsgSeq",count:"ReqMsgNumber",withRecalledMessage:"WithRecalledMsg"},response:{Random:"random",MsgTime:"time",MsgSeq:"sequence",ReqMsgSeq:"sequence",RspMsgList:"messageList",IsPlaceMsg:"isPlaceMessage",IsSystemMsg:"isSystemMessage",ToGroupId:"to",EnumFrom_AccountType:"fromAccountType",EnumTo_AccountType:"toAccountType",GroupCode:"groupCode",MsgPriority:"priority",MsgBody:"elements",MsgType:"type",MsgContent:"content",IsFinished:"complete",Download_Flag:"downloadFlag",ClientSeq:"clientSequence",ThumbUUID:"thumbUUID",VideoUUID:"videoUUID",ToTopicId:"topicID",InvisibleMsgSeq:"invisibleSequenceList"}}}}(e)),this._configMap.set(Mr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.SET_C2C_MESSAGE_READ)}),body:{C2CMsgReaded:void 0},keyMap:{request:{lastMessageTime:"LastedMsgTime"}}}}(e)),this._configMap.set(kr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.SET_C2C_PEER_MUTE_NOTIFICATIONS)}),body:{userIDList:void 0,muteFlag:0},keyMap:{request:{userIDList:"Peer_Account",muteFlag:"Mute_Notifications"}}}}(e)),this._configMap.set(Cr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.GET_C2C_PEER_MUTE_NOTIFICATIONS)}),body:{updateSequence:0},keyMap:{response:{MuteNotificationsList:"muteFlagList"}}}}(e)),this._configMap.set(ao,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.SET_GROUP_MESSAGE_READ)}),body:{groupID:void 0,messageReadSeq:void 0,topicID:void 0},keyMap:{request:{messageReadSeq:"MsgReadedSeq"}}}}(e)),this._configMap.set(io,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.SET_ALL_MESSAGE_READ)}),body:{readAllC2CMessage:0,groupMessageReadInfoList:[]},keyMap:{request:{readAllC2CMessage:"C2CReadAllMsg",groupMessageReadInfoList:"GroupReadInfo",messageSequence:"MsgSeq"},response:{C2CReadAllMsg:"readAllC2CMessage",GroupReadInfoArray:"groupMessageReadInfoList"}}}}(e)),this._configMap.set(Sr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.DELETE_C2C_MESSAGE)}),body:{fromAccount:"",to:"",keyList:void 0},keyMap:{request:{keyList:"MsgKeyList"}}}}(e)),this._configMap.set(_o,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.DELETE_GROUP_MESSAGE)}),body:{groupID:"",deleter:"",keyList:void 0,topicID:void 0},keyMap:{request:{deleter:"Deleter_Account",keyList:"Seqs"}}}}(e)),this._configMap.set(pa,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_OPEN_TRANSLATE,".").concat(G.CMD.TRANSLATE_TEXT)}),body:{sourceTextList:void 0,SDKAppID:0,from:0,source:"",target:""},keyMap:{request:{sourceTextList:"SourceText",SDKAppID:"SdkAppId",from:"FromAccount"},response:{TargetText:"translatedTextList",RequestId:"requestID",CmdErrorCode:"error",ErrorCode:"code",ErrorInfo:"message"}}}}(e)),this._configMap.set(yo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.MODIFY_GROUP_MESSAGE)}),body:{groupID:"",topicID:void 0,sequence:0,version:0,elements:void 0,cloudCustomData:void 0},keyMap:{request:{sequence:"MsgSeq",version:"MsgVersion",type:"MsgType",content:"MsgContent"}}}}(e)),this._configMap.set(co,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.GET_READ_RECEIPT)}),body:{groupID:"",sequenceList:void 0},keyMap:{request:{sequence:"MsgSeq"}}}}(e)),this._configMap.set(uo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.SEND_C2C_READ_RECEIPT)}),body:{peerAccount:"",messageInfoList:void 0},keyMap:{request:{peerAccount:"Peer_Account",messageInfoList:"C2CMsgInfo",fromAccount:"From_Account",toAccount:"To_Account",sequence:"MsgSeq",random:"MsgRandom",time:"MsgTime",clientTime:"MsgClientTime"}}}}(e)),this._configMap.set(lo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.SEND_READ_RECEIPT)}),body:{groupID:"",sequenceList:void 0},keyMap:{request:{sequenceList:"MsgSeqList",sequence:"MsgSeq"}}}}(e)),this._configMap.set(po,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.GET_READ_RECEIPT_DETAIL)}),body:{groupID:"",sequence:void 0,flag:0,cursor:0,count:0},keyMap:{request:{sequence:"MsgSeq",count:"Num"},response:{ReadList:"readUserIDList",Read_Account:"userID",UnreadList:"unreadUserIDList",Unread_Account:"userID",IsFinish:"isCompleted"}}}}(e)),this._configMap.set(Er,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM_MSG_EXT,".").concat(G.CMD.MODIFY_C2C_MESSAGE_EXTENSIONS)}),body:{from:void 0,to:void 0,messageKey:void 0,operateType:void 0,extensionList:void 0}}}(e)),this._configMap.set(jr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM_MSG_EXT,".").concat(G.CMD.GET_C2C_MESSAGE_EXTENSIONS)}),body:{from:void 0,to:void 0,messageKey:void 0,startSequence:void 0}}}(e)),this._configMap.set(wo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM_MSG_EXT,".").concat(G.CMD.MODIFY_GROUP_MESSAGE_EXTENSIONS)}),body:{groupID:void 0,topicID:void 0,messageSequence:void 0,operateType:void 0,extensionList:void 0}}}(e)),this._configMap.set(Io,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM_MSG_EXT,".").concat(G.CMD.GET_GROUP_MESSAGE_EXTENSIONS)}),body:{groupID:void 0,topicID:void 0,messageSequence:void 0,startSequence:void 0}}}(e)),this._configMap.set(Ir,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.GET_PEER_READ_TIME)}),body:{userIDList:void 0},keyMap:{request:{userIDList:"To_Account"},response:{ReadTime:"peerReadTimeList"}}}}(e)),this._configMap.set(Lr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.RECENT_CONTACT,".").concat(G.CMD.GET_CONVERSATION_LIST)}),body:{fromAccount:void 0,count:0},keyMap:{request:{},response:{SessionItem:"conversations",ToAccount:"groupID",To_Account:"userID",UnreadMsgCount:"unreadCount",MsgGroupReadedSeq:"messageReadSeq",C2cPeerReadTime:"c2cPeerReadTime"}}}}(e)),this._configMap.set(Dr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.RECENT_CONTACT,".").concat(G.CMD.PAGING_GET_CONVERSATION_LIST)}),body:{fromAccount:void 0,timeStamp:void 0,startIndex:void 0,pinnedTimeStamp:void 0,pinnedStartIndex:void 0,orderType:void 0,messageAssistFlag:4,assistFlag:15},keyMap:{request:{messageAssistFlag:"MsgAssistFlags",assistFlag:"AssistFlags",pinnedTimeStamp:"TopTimeStamp",pinnedStartIndex:"TopStartIndex"},response:{SessionItem:"conversations",ToAccount:"groupID",To_Account:"userID",UnreadMsgCount:"unreadCount",MsgGroupReadedSeq:"messageReadSeq",C2cPeerReadTime:"c2cPeerReadTime",LastMsgFlags:"lastMessageFlag",TopFlags:"isPinned",TopTimeStamp:"pinnedTimeStamp",TopStartIndex:"pinnedStartIndex",GroupId:"convGroupID"}}}}(e)),this._configMap.set(Ar,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.RECENT_CONTACT,".").concat(G.CMD.DELETE_CONVERSATION)}),body:{fromAccount:"",conversationList:void 0,clearHistoryMessage:void 0},keyMap:{request:{toGroupID:"ToGroupid",clearHistoryMessage:"ClearRamble",conversationList:"ContactItem"},response:{ResultItem:"resultList",ToGroupid:"toGroupID",ResultCode:"code",ResultInfo:"info"}}}}(e)),this._configMap.set(Nr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.RECENT_CONTACT,".").concat(G.CMD.CLEAR_HISTORY_MESSAGE)}),body:{fromAccount:"",toAccount:void 0,type:1,toGroupID:void 0},keyMap:{request:{toGroupID:"ToGroupid"}}}}(e)),this._configMap.set(xr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.RECENT_CONTACT,".").concat(G.CMD.PIN_CONVERSATION)}),body:{fromAccount:"",operationType:1,itemList:void 0},keyMap:{request:{itemList:"RecentContactItem"}}}}(e)),this._configMap.set(Rr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.DELETE_GROUP_AT_TIPS)}),body:{messageListToDelete:void 0},keyMap:{request:{messageListToDelete:"DelMsgList",messageSeq:"MsgSeq",messageRandom:"MsgRandom"}}}}(e)),this._configMap.set(Pr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.RECENT_CONTACT,".").concat(G.CMD.MARK_CONVERSATION)}),body:{fromAccount:"",itemList:void 0},keyMap:{request:{itemList:"MarkItem",operationType:"OptType",groupID:"ToGroupId"},response:{ToGroupId:"groupID",OptType:"operationType"}}}}(e)),this._configMap.set(Ur,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.RECENT_CONTACT,".").concat(G.CMD.MARK_CONVERSATION)}),body:{fromAccount:"",itemList:void 0},keyMap:{request:{itemList:"MarkItem",operationType:"OptType",groupID:"ToGroupId"},response:{ToGroupId:"groupID",OptType:"operationType"}}}}(e)),this._configMap.set(Vr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.RECENT_CONTACT,".").concat(G.CMD.CREATE_CONVERSATION_GROUP)}),body:{fromAccount:"",itemList:void 0},keyMap:{request:{itemList:"GroupContactItem",groupID:"ToGroupId"},response:{GroupId:"convGroupID",ToGroupId:"groupID",OptType:"operationType"}}}}(e)),this._configMap.set(Br,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.RECENT_CONTACT,".").concat(G.CMD.DELETE_CONVERSATION_GROUP)}),body:{fromAccount:"",groupName:void 0},keyMap:{request:{},response:{GroupId:"convGroupID"}}}}(e)),this._configMap.set(Fr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.RECENT_CONTACT,".").concat(G.CMD.UPDATE_CONVERSATION_GROUP)}),body:{fromAccount:"",updateType:void 0,updateGroup:void 0},keyMap:{request:{oldName:"OldGroupName",newName:"NewGroupName",groupID:"ToGroupId",operationType:"ContactOptType",groupName:"OldGroupName",updateItem:"ContactUpdateItem"},response:{ContactOptType:"operationType",ToGroupId:"groupID",GroupId:"convGroupID"}}}}(e)),this._configMap.set(Gr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.RECENT_CONTACT,".").concat(G.CMD.UPDATE_CONVERSATION_GROUP)}),body:{fromAccount:"",updateType:void 0,updateGroup:{groupName:void 0,updateGroupType:void 0,updateItem:void 0}},keyMap:{request:{},response:{}}}}(e)),this._configMap.set(zr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.RECENT_CONTACT,".").concat(G.CMD.UPDATE_CONVERSATION_GROUP)}),body:{fromAccount:"",updateType:void 0,updateGroup:void 0},keyMap:{request:{},response:{}}}}(e)),this._configMap.set(Hr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.RECENT_CONTACT,".").concat(G.CMD.GET_CONVERSATION_GROUP_LIST)}),body:{fromAccount:"",startTime:void 0,startIndex:void 0},keyMap:{request:{},response:{GroupId:"convGroupID",ToGroupId:"groupID",OptType:"operationType",CustomMark:"customData",ContactGroupId:"convGroupIDList"}}}}(e)),this._configMap.set(vr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.PROFILE,".").concat(G.CMD.PORTRAIT_GET)}),body:{fromAccount:"",userItem:[]},keyMap:{request:{toAccount:"To_Account",standardSequence:"StandardSequence",customSequence:"CustomSequence"}}}}(e)),this._configMap.set(gr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.PROFILE,".").concat(G.CMD.PORTRAIT_SET)}),body:{fromAccount:"",profileItem:[{tag:ze.NICK,value:""},{tag:ze.GENDER,value:""},{tag:ze.ALLOWTYPE,value:""},{tag:ze.AVATAR,value:""}]},keyMap:{request:{toAccount:"To_Account",standardSequence:"StandardSequence",customSequence:"CustomSequence"}}}}(e)),this._configMap.set(_r,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.FRIEND,".").concat(G.CMD.GET_BLACKLIST)}),body:{fromAccount:"",startIndex:0,maxLimited:30,lastSequence:0},keyMap:{response:{CurruentSequence:"currentSequence"}}}}(e)),this._configMap.set(yr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.FRIEND,".").concat(G.CMD.ADD_BLACKLIST)}),body:{fromAccount:"",toAccount:[]}}}(e)),this._configMap.set(br,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.FRIEND,".").concat(G.CMD.DELETE_BLACKLIST)}),body:{fromAccount:"",toAccount:[]}}}(e)),this._configMap.set(oa,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_OPEN_STATUS,".").concat(G.CMD.SET_SELF_STATUS)}),body:{customStatus:""},keyMap:{}}}(e)),this._configMap.set(aa,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_OPEN_STATUS,".").concat(G.CMD.GET_USER_STATUS)}),body:{userIDList:void 0},keyMap:{response:{UserStatusList:"successUserList",ErrorList:"failureUserList",To_Account:"userID",Invalid_Account:"invalidUserID",Status:"statusType"}}}}(e)),this._configMap.set(ia,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_OPEN_STATUS,".").concat(G.CMD.SUBSCRIBE_USER_STATUS)}),body:{userIDList:void 0},keyMap:{response:{ErrorList:"failureUserList",To_Account:"userID",Invalid_Account:"invalidUserID"}}}}(e)),this._configMap.set(sa,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_OPEN_STATUS,".").concat(G.CMD.UNSUBSCRIBE_USER_STATUS)}),body:{userIDList:void 0,unsubscribeAll:void 0},keyMap:{response:{ErrorList:"failureUserList",To_Account:"userID",Invalid_Account:"invalidUserID"}}}}(e)),this._configMap.set(Yr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.GET_JOINED_GROUPS)}),body:{memberAccount:"",limit:void 0,offset:void 0,groupType:void 0,responseFilter:{groupBaseInfoFilter:void 0,selfInfoFilter:void 0},isSupportTopic:0},keyMap:{request:{memberAccount:"Member_Account"},response:{GroupIdList:"groups",NoUnreadSeqList:"excludedUnreadSequenceList",MsgSeq:"readedSequence",LastRecallTime:"_lastRevokedTime"}}}}(e)),this._configMap.set(qr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.GET_GROUP_INFO)}),body:{groupIDList:void 0,responseFilter:{groupBaseInfoFilter:["Type","Name","Introduction","Notification","FaceUrl","Owner_Account","CreateTime","InfoSeq","LastInfoTime","LastMsgTime","MemberNum","MaxMemberNum","ApplyJoinOption","NextMsgSeq","ShutUpAllMember"],groupCustomFieldFilter:void 0,memberInfoFilter:void 0,memberCustomFieldFilter:void 0}},keyMap:{request:{groupIDList:"GroupIdList",groupCustomField:"AppDefinedData",memberCustomField:"AppMemberDefinedData",groupCustomFieldFilter:"AppDefinedDataFilter_Group",memberCustomFieldFilter:"AppDefinedDataFilter_GroupMember"},response:{GroupIdList:"groups",AppDefinedData:"groupCustomField",AppMemberDefinedData:"memberCustomField",AppDefinedDataFilter_Group:"groupCustomFieldFilter",AppDefinedDataFilter_GroupMember:"memberCustomFieldFilter",InfoSeq:"infoSequence",MemberList:"members",GroupInfo:"groups",ShutUpUntil:"muteUntil",ShutUpAllMember:"muteAllMembers"}}}}(e)),this._configMap.set(Wr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.CREATE_GROUP)}),body:{type:void 0,name:void 0,groupID:void 0,ownerID:void 0,introduction:void 0,notification:void 0,maxMemberNum:void 0,joinOption:void 0,memberList:void 0,groupCustomField:void 0,memberCustomField:void 0,webPushFlag:1,avatar:"",isSupportTopic:void 0,inviteOption:void 0},keyMap:{request:{ownerID:"Owner_Account",userID:"Member_Account",avatar:"FaceUrl",maxMemberNum:"MaxMemberCount",joinOption:"ApplyJoinOption",groupCustomField:"AppDefinedData",memberCustomField:"AppMemberDefinedData",inviteOption:"InviteJoinOption"},response:{HugeGroupFlag:"avChatRoomFlag",OverJoinedGroupLimit_Account:"overLimitUserIDList"}}}}(e)),this._configMap.set(Kr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.DESTROY_GROUP)}),body:{groupID:void 0}}}(e)),this._configMap.set($r,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.MODIFY_GROUP_INFO)}),body:{groupID:void 0,name:void 0,introduction:void 0,notification:void 0,avatar:void 0,joinOption:void 0,groupCustomField:void 0,muteAllMembers:void 0,inviteOption:void 0},keyMap:{request:{groupCustomField:"AppDefinedData",muteAllMembers:"ShutUpAllMember",joinOption:"ApplyJoinOption",avatar:"FaceUrl",inviteOption:"InviteJoinOption"},response:{AppDefinedData:"groupCustomField",ShutUpAllMember:"muteAllMembers"}}}}(e)),this._configMap.set(Jr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.APPLY_JOIN_GROUP)}),body:{groupID:void 0,applyMessage:void 0,userDefinedField:void 0,webPushFlag:1,historyMessageFlag:void 0},keyMap:{request:{applyMessage:"ApplyMsg",historyMessageFlag:"HugeGroupHistoryMsgFlag"},response:{HugeGroupFlag:"avChatRoomFlag",AVChatRoomKey:"avChatRoomKey",RspMsgList:"messageList",ToGroupId:"to"}}}}(e)),this._configMap.set(Qr,function(e){return e.a2,e.tinyid,{head:n(n({},h(e,Fs)),{},{servcmd:"".concat(G.NAME.BIG_GROUP_NO_AUTH,".").concat(G.CMD.APPLY_JOIN_GROUP)}),body:{groupID:void 0,applyMessage:void 0,userDefinedField:void 0,webPushFlag:1},keyMap:{request:{applyMessage:"ApplyMsg"},response:{HugeGroupFlag:"avChatRoomFlag"}}}}(e)),this._configMap.set(Xr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.QUIT_GROUP)}),body:{groupID:void 0}}}(e)),this._configMap.set(Zr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.SEARCH_GROUP_BY_ID)}),body:{groupIDList:void 0,responseFilter:{groupBasePublicInfoFilter:["Type","Name","Introduction","Notification","FaceUrl","CreateTime","Owner_Account","LastInfoTime","LastMsgTime","NextMsgSeq","MemberNum","MaxMemberNum","ApplyJoinOption","InviteJoinOption"]}},keyMap:{response:{}}}}(e)),this._configMap.set(eo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.CHANGE_GROUP_OWNER)}),body:{groupID:void 0,newOwnerID:void 0},keyMap:{request:{newOwnerID:"NewOwner_Account"}}}}(e)),this._configMap.set(to,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.HANDLE_APPLY_JOIN_GROUP)}),body:{groupID:void 0,applicant:void 0,handleAction:void 0,handleMessage:void 0,authentication:void 0,messageKey:void 0,userDefinedField:void 0},keyMap:{request:{applicant:"Applicant_Account",handleAction:"HandleMsg",handleMessage:"ApprovalMsg",messageKey:"MsgKey"}}}}(e)),this._configMap.set(no,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.HANDLE_INVITE_JOIN_GROUP)}),body:{groupID:void 0,applicant:void 0,invitee:void 0,handleAction:void 0,handleMessage:void 0,authentication:void 0,userDefinedField:void 0},keyMap:{request:{applicant:"Applicant_Account",invitee:"Invited_Account",handleAction:"HandleMsg",handleMessage:"ApprovalMsg"}}}}(e)),this._configMap.set(ro,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.HANDLE_GROUP_INVITATION)}),body:{groupID:void 0,inviter:void 0,handleAction:void 0,handleMessage:void 0,authentication:void 0,messageKey:void 0,userDefinedField:void 0},keyMap:{request:{inviter:"Inviter_Account",handleAction:"HandleMsg",handleMessage:"ApprovalMsg",messageKey:"MsgKey"}}}}(e)),this._configMap.set(fo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.GET_GROUP_APPLICATION)}),body:{startTime:void 0,limit:void 0,handleAccount:void 0},keyMap:{request:{handleAccount:"Handle_Account"},response:{To_Account:"userID"}}}}(e)),this._configMap.set(ho,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.DELETE_GROUP_SYSTEM_MESSAGE)}),body:{messageListToDelete:void 0},keyMap:{request:{messageListToDelete:"DelMsgList",messageSeq:"MsgSeq",messageRandom:"MsgRandom"}}}}(e)),this._configMap.set(mo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.BIG_GROUP_LONG_POLLING,".").concat(G.CMD.AVCHATROOM_LONG_POLL)}),body:{USP:1,startSeq:1,startBroadcastSeq:void 0,holdTime:90,key:void 0,simplifiedMessage:void 0},keyMap:{request:{USP:"USP"},response:{ToGroupId:"groupID",RspBroadcastMsgList:"broadcastMessageList",IsSystemMsg:"isSystemMessage"}}}}(e)),this._configMap.set(vo,function(e){return e.a2,e.tinyid,{head:n(n({},h(e,Gs)),{},{servcmd:"".concat(G.NAME.BIG_GROUP_LONG_POLLING_NO_AUTH,".").concat(G.CMD.AVCHATROOM_LONG_POLL)}),body:{USP:1,startSeq:1,holdTime:90,key:void 0,simplifiedMessage:void 0},keyMap:{request:{USP:"USP"},response:{ToGroupId:"groupID",RspBroadcastMsgList:"broadcastMessageList",IsSystemMsg:"isSystemMessage"}}}}(e)),this._configMap.set(go,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.GET_ONLINE_MEMBER_NUM)}),body:{groupID:void 0}}}(e)),this._configMap.set(bo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.SET_GROUP_ATTRIBUTES)}),body:{groupID:void 0,groupAttributeList:void 0,mainSequence:void 0,avChatRoomKey:void 0,attributeControl:["RaceConflict"]},keyMap:{request:{key:"key",value:"value"}}}}(e)),this._configMap.set(Oo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.MODIFY_GROUP_ATTRIBUTES)}),body:{groupID:void 0,groupAttributeList:void 0,mainSequence:void 0,avChatRoomKey:void 0,attributeControl:["RaceConflict"]},keyMap:{request:{key:"key",value:"value"}}}}(e)),this._configMap.set(Mo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.DELETE_GROUP_ATTRIBUTES)}),body:{groupID:void 0,groupAttributeList:void 0,mainSequence:void 0,avChatRoomKey:void 0,attributeControl:["RaceConflict"]},keyMap:{request:{key:"key"}}}}(e)),this._configMap.set(ko,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.CLEAR_GROUP_ATTRIBUTES)}),body:{groupID:void 0,mainSequence:void 0,avChatRoomKey:void 0,attributeControl:["RaceConflict"]}}}(e)),this._configMap.set(Co,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP_ATTR,".").concat(G.CMD.GET_GROUP_ATTRIBUTES)}),body:{groupID:void 0,avChatRoomKey:void 0,groupType:1},keyMap:{request:{avChatRoomKey:"Key",groupType:"GroupType"}}}}(e)),this._configMap.set(So,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.GET_GROUP_NOTIFY)}),body:{notifyType:1,groupID:"",beginTime:0,endTime:0,limit:20},keyMap:{request:{},response:{NextMsgTime:"nextRevokedTime",NotifyMsgList:"notifyList"}}}}(e)),this._configMap.set(To,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.UPDATE_GROUP_COUNTER)}),body:{groupID:void 0,counterList:void 0,avChatRoomKey:void 0,mode:void 0},keyMap:{request:{counterList:"GroupCounter"}}}}(e)),this._configMap.set(Eo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.GET_GROUP_COUNTER)}),body:{groupID:void 0,keyList:[],avChatRoomKey:void 0},keyMap:{request:{keyList:"GroupCounterKeys"}}}}(e)),this._configMap.set(ea,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP_COMMUNITY,".").concat(G.CMD.CREATE_TOPIC)}),body:{groupID:void 0,topicName:void 0,avatar:void 0,customData:void 0,topicID:void 0,notification:void 0,introduction:void 0},keyMap:{request:{avatar:"FaceUrl"}}}}(e)),this._configMap.set(ta,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP_COMMUNITY,".").concat(G.CMD.DELETE_TOPIC)}),body:{groupID:void 0,topicIDList:void 0},keyMap:{request:{topicIDList:"TopicIdList"},response:{DestroyResultItem:"resultList"}}}}(e)),this._configMap.set(na,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP_COMMUNITY,".").concat(G.CMD.UPDATE_TOPIC_PROFILE)}),body:{groupID:void 0,topicID:void 0,avatar:void 0,customData:void 0,notification:void 0,introduction:void 0,muteAllMembers:void 0,topicName:void 0},keyMap:{request:{avatar:"FaceUrl",muteAllMembers:"ShutUpAllMember"}}}}(e)),this._configMap.set(ra,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP_COMMUNITY,".").concat(G.CMD.GET_TOPIC_LIST)}),body:{groupID:void 0,topicIDList:void 0,MemberInfoFilter:["NoUnreadSeqList"]},keyMap:{request:{topicIDList:"TopicIdList"},response:{TopicAndSelfInfo:"topicInfoList",TopicInfo:"topic",GroupID:"groupID",ShutUpTime:"muteTime",ShutUpAllFlag:"muteAllMembers",LastMsgTime:"lastMessageTime",MsgSeq:"readedSequence",LastMsgSeq:"sequence",NoUnreadSeqList:"excludedUnreadSequenceList"}}}}(e)),this._configMap.set(jo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.GET_GROUP_MEMBER_LIST)}),body:{groupID:void 0,limit:0,offset:void 0,next:void 0,memberRoleFilter:void 0,memberInfoFilter:["Role","NameCard","ShutUpUntil","JoinTime"],memberCustomFieldFilter:void 0},keyMap:{request:{memberCustomFieldFilter:"AppDefinedDataFilter_GroupMember"},response:{AppMemberDefinedData:"memberCustomField",AppDefinedDataFilter_GroupMember:"memberCustomFieldFilter",MemberList:"members",ShutUpUntil:"muteUntil"}}}}(e)),this._configMap.set(Do,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP_AVCHATROOM,".").concat(G.CMD.GET_AVCHATROOM_MEMBER_LIST)}),body:{groupID:void 0,offset:void 0,filter:void 0},keyMap:{request:{offset:"Timestamp",filter:"Mark"},response:{NextTimestamp:"offset"}}}}(e)),this._configMap.set(Lo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.GET_GROUP_MEMBER_INFO)}),body:{groupID:void 0,userIDList:void 0,memberInfoFilter:void 0,memberCustomFieldFilter:void 0},keyMap:{request:{userIDList:"Member_List_Account",memberCustomFieldFilter:"AppDefinedDataFilter_GroupMember"},response:{MemberList:"members",ShutUpUntil:"muteUntil",AppDefinedDataFilter_GroupMember:"memberCustomFieldFilter",AppMemberDefinedData:"memberCustomField"}}}}(e)),this._configMap.set(Ao,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.ADD_GROUP_MEMBER)}),body:{groupID:void 0,silence:void 0,userIDList:void 0},keyMap:{request:{userID:"Member_Account",userIDList:"MemberList"},response:{MemberList:"members"}}}}(e)),this._configMap.set(No,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.DELETE_GROUP_MEMBER)}),body:{groupID:void 0,userIDList:void 0,reason:void 0},keyMap:{request:{userIDList:"MemberToDel_Account"}}}}(e)),this._configMap.set(xo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.BAN_AVCHATROOM_MEMBER)}),body:{groupID:void 0,userIDList:void 0,duration:void 0,reason:""},keyMap:{request:{userIDList:"Members_Account",duration:"Duration",reason:"Description"}}}}(e)),this._configMap.set(Ro,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.MODIFY_GROUP_MEMBER_INFO)}),body:{groupID:void 0,topicID:void 0,userID:void 0,messageRemindType:void 0,nameCard:void 0,role:void 0,memberCustomField:void 0,muteTime:void 0},keyMap:{request:{userID:"Member_Account",memberCustomField:"AppMemberDefinedData",muteTime:"ShutUpTime",messageRemindType:"MsgFlag"}}}}(e)),this._configMap.set(Po,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP_AVCHATROOM,".").concat(G.CMD.MARK_AVCHATROOM_MEMBER_INFO)}),body:{groupID:void 0,operationType:1,memberList:[]},keyMap:{request:{operationType:"CommandType",memberList:"MemberList",markType:"Marks",userID:"Member_Account"},response:{CommandType:"operationType",Marks:"markType",Member_Account:"userID"}}}}(e)),this._configMap.set(Fo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_OPEN_STAT,".").concat(G.CMD.TIM_WEB_REPORT_V2)}),body:{header:{},event:[],quality:[]},keyMap:{request:{SDKType:"sdk_type",SDKVersion:"sdk_version",deviceType:"device_type",platform:"platform",instanceID:"instance_id",traceID:"trace_id",SDKAppID:"sdk_app_id",userID:"user_id",tinyID:"tiny_id",extension:"extension",timestamp:"timestamp",networkType:"network_type",eventType:"event_type",code:"error_code",message:"error_message",moreMessage:"more_message",duplicate:"duplicate",costTime:"cost_time",level:"level",qualityType:"quality_type",reportIndex:"report_index",wholePeriod:"whole_period",totalCount:"total_count",rttCount:"success_count_business",successRateOfRequest:"percent_business",countLessThan1Second:"success_count_business",percentOfCountLessThan1Second:"percent_business",countLessThan3Second:"success_count_platform",percentOfCountLessThan3Second:"percent_platform",successCountOfBusiness:"success_count_business",successRateOfBusiness:"percent_business",successCountOfPlatform:"success_count_platform",successRateOfPlatform:"percent_platform",successCountOfMessageReceived:"success_count_business",successRateOfMessageReceived:"percent_business",avgRTT:"average_value",avgDelay:"average_value",avgValue:"average_value",uiPlatform:"ui_platform"}}}}(r)),this._configMap.set(Go,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.HEARTBEAT,".").concat(G.CMD.ALIVE)}),body:{}}}(e)),this._configMap.set(zo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_OPEN_PUSH,".").concat(G.CMD.MESSAGE_PUSH)}),body:{},keyMap:{response:{C2cMsgArray:"C2CMessageArray",GroupMsgArray:"groupMessageArray",GroupTips:"groupTips",C2cNotifyMsgArray:"C2CNotifyMessageArray",C2cMsgInfo:"C2CReadReceiptArray",ClientSeq:"clientSequence",MsgPriority:"priority",NoticeSeq:"noticeSequence",MsgContent:"content",MsgType:"type",MsgBody:"elements",ToGroupId:"to",Desc:"description",Ext:"extension",IsSyncMsg:"isSyncMessage",Flag:"needSync",NeedAck:"needAck",PendencyAdd_Account:"userID",ProfileImNick:"nick",PendencyType:"applicationType",C2CReadAllMsg:"readAllC2CMessage",IsNeedReadReceipt:"needReadReceipt",Status:"statusType"}}}}(e)),this._configMap.set(Ho,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_OPEN_PUSH,".").concat(G.CMD.MULTI_MESSAGE_PUSH)}),body:{},keyMap:{response:{GroupMsgArray:"groupMessageArray",GroupTips:"groupTips",ClientSeq:"clientSequence",MsgPriority:"priority",NoticeSeq:"noticeSequence",MsgContent:"content",MsgType:"type",MsgBody:"elements",ToGroupId:"to",Desc:"description",Ext:"extension",IsSyncMsg:"isSyncMessage",Flag:"needSync",NeedAck:"needAck",PendencyType:"applicationType"}}}}(e)),this._configMap.set(Yo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.MESSAGE_PUSH_ACK)}),body:{sessionData:void 0},keyMap:{request:{sessionData:"SessionData"}}}}(e)),this._configMap.set(qo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_OPEN_STATUS,".").concat(G.CMD.STATUS_FORCE_OFFLINE)}),body:{},keyMap:{response:{C2cNotifyMsgArray:"C2CNotifyMessageArray",NoticeSeq:"noticeSequence",KickoutMsgNotify:"kickoutMsgNotify",NewInstInfo:"newInstanceInfo"}}}}(e)),this._configMap.set(Ko,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_LONG_MESSAGE,".").concat(G.CMD.DOWNLOAD_MERGER_MESSAGE)}),body:{downloadKey:""},keyMap:{response:{Data:"data",Desc:"description",Ext:"extension",Download_Flag:"downloadFlag",ThumbUUID:"thumbUUID",VideoUUID:"videoUUID"}}}}(e)),this._configMap.set(Wo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_LONG_MESSAGE,".").concat(G.CMD.UPLOAD_MERGER_MESSAGE)}),body:{messageList:[]},keyMap:{request:{fromAccount:"From_Account",toAccount:"To_Account",msgTimeStamp:"MsgTimeStamp",msgSeq:"MsgSeq",msgRandom:"MsgRandom",msgBody:"MsgBody",type:"MsgType",content:"MsgContent",data:"Data",description:"Desc",extension:"Ext",sizeType:"Type",uuid:"UUID",url:"",imageUrl:"URL",fileUrl:"Url",remoteAudioUrl:"Url",remoteVideoUrl:"VideoUrl",thumbUUID:"ThumbUUID",videoUUID:"VideoUUID",videoUrl:"",downloadFlag:"Download_Flag",from:"From_Account",time:"MsgTimeStamp",messageRandom:"MsgRandom",messageSequence:"MsgSeq",elements:"MsgBody",clientSequence:"ClientSeq",payload:"MsgContent",messageList:"MsgList",messageNumber:"MsgNum",abstractList:"AbstractList",messageBody:"MsgBody"}}}}(e)),this._configMap.set(ua,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_OPEN_STATUS,".").concat(G.CMD.SET_TOKEN)}),body:{tokenID:"",pushMsg:0,sdkAppID:0,businessID:"",deviceBrand:"",deviceToken:"",isTpns:0,isWebUniapp:0},keyMap:{request:{tokenID:"TokenID",pushMsg:"PushMsg",sdkAppID:"EnterVersion",businessID:"BusiID",deviceBrand:"InstType",deviceToken:"VarToken",isTpns:"IsTpns"}}}}(e)),this._configMap.set(la,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_OPEN_STATUS,".").concat(G.CMD.STAT_FOREGROUND)}),body:{isWebUniapp:0}}}(e)),this._configMap.set(ca,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_OPEN_STATUS,".").concat(G.CMD.STAT_BACKGROUND)}),body:{C2CUnread:0,GroupUnread:0,isWebUniapp:0},keyMap:{request:{c2cUnreadCount:"C2cUnread",groupUnreadCount:"GrpUnread"}}}}(e))}},{key:"has",value:function(e){return this._configMap.has(e)}},{key:"get",value:function(e){return this._configMap.get(e)}},{key:"update",value:function(){this._fillConfigMap()}},{key:"getKeyMap",value:function(e){return this.has(e)?this.get(e).keyMap||{}:(Fe.w("".concat(this._n,".getKeyMap unknown protocolName:").concat(e)),{})}},{key:"getProtocolData",value:function(e){var t=e.protocolName,n=e.requestData,r=this.get(t),o=null;if(n){var a=this._simpleDeepCopy(r),i=this._updateService(n,a),s=i.body,c=Object.create(null);for(var l in s)if(Object.prototype.hasOwnProperty.call(s,l)){if(c[l]=s[l],void 0===n[l])continue;c[l]=n[l]}i.body=c,o=this._getUplinkData(i)}else o=this._getUplinkData(r);return o}},{key:"_getUplinkData",value:function(e){var t=this._requestDataCleaner(e),n=Rt(t.head),r=ws(t.body,this._getRequestKeyMap(n));return t.body=r,t}},{key:"_updateService",value:function(e,t){var n=Rt(t.head);if(this._isFromGroupRequest(t)){var r=e.type,o=e.groupID,a=void 0===o?void 0:o,i=e.groupIDList,s=void 0===i?[]:i;it(a)&&(a=s[0]||""),Ct({type:r,groupID:a})&&(t.head.servcmd="".concat(G.NAME.GROUP_COMMUNITY,".").concat(n))}return t}},{key:"_isFromGroupRequest",value:function(e){return e.head.servcmd.includes(G.NAME.GROUP)||e.head.servcmd.includes(G.NAME.GROUP_ATTR)}},{key:"_getRequestKeyMap",value:function(e){var t=this.getKeyMap(e);return n(n({},Ms.request),t.request)}},{key:"_requestDataCleaner",value:function(e){var t=Array.isArray(e)?[]:Object.create(null);for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&dt(n)&&null!==e[n]&&void 0!==e[n]&&("object"!==r(e[n])?t[n]=e[n]:t[n]=this._requestDataCleaner.bind(this)(e[n]));return t}},{key:"_simpleDeepCopy",value:function(e){for(var t,n=Object.keys(e),r={},o=0,a=n.length;o<a;o++)t=n[o],at(e[t])?r[t]=Array.from(e[t]):rt(e[t])?r[t]=this._simpleDeepCopy(e[t]):r[t]=e[t];return r}}]),e}(),Hs=[Yo],Ys=function(){function e(t){o(this,e),this._sessionModule=t,this._n="DownlinkHandler",this._eventHandlerMap=new Map,this._eventHandlerMap.set("C2CMessageArray",this._c2cMessageArrayHandler.bind(this)),this._eventHandlerMap.set("groupMessageArray",this._groupMessageArrayHandler.bind(this)),this._eventHandlerMap.set("groupTips",this._groupTipsHandler.bind(this)),this._eventHandlerMap.set("C2CNotifyMessageArray",this._C2CNotifyMessageArrayHandler.bind(this)),this._eventHandlerMap.set("C2CReadReceiptArray",this._C2CReadReceiptArrayHandler.bind(this)),this._eventHandlerMap.set("profileModify",this._profileHandler.bind(this)),this._eventHandlerMap.set("friendListMod",this._relationChainHandler.bind(this)),this._eventHandlerMap.set("recentContactMod",this._recentContactHandler.bind(this)),this._eventHandlerMap.set("readAllC2CMessage",this._allMessageReadHandler.bind(this)),this._eventHandlerMap.set("c2cMessageModified",this._c2cMessageModifiedHandler.bind(this)),this._eventHandlerMap.set("groupMessageModified",this._groupMessageModifiedHandler.bind(this)),this._eventHandlerMap.set("userStatusList",this._userStatusListHandler.bind(this)),this._eventHandlerMap.set("messageExtensionNotify",this._messageExtensionNotifyHandler.bind(this)),this._keys=y(this._eventHandlerMap.keys())}return i(e,[{key:"_c2cMessageArrayHandler",value:function(e){var t=this._sessionModule.getModule(Nn);t&&(e.dataList.forEach((function(e){if(1===e.isSyncMessage){var t=e.from;e.from=e.to,e.to=t}})),1===e.needSync&&this._sessionModule.getModule(Wn).startOnlineSync(),t.onNewC2CMessage({dataList:e.dataList,isInstantMessage:!0}))}},{key:"_c2cMessageModifiedHandler",value:function(e){var t=this._sessionModule.getModule(Nn);t&&t.onC2CMessageModified(e)}},{key:"_groupMessageArrayHandler",value:function(e){var t=this._sessionModule.getModule(xn);t&&t.onNewGroupMessage({event:e.event,dataList:e.dataList,isInstantMessage:!0})}},{key:"_groupMessageModifiedHandler",value:function(e){var t=this._sessionModule.getModule(xn);t&&t.onGroupMessageModified(e)}},{key:"_groupTipsHandler",value:function(e){var t=this._sessionModule.getModule(xn);if(t){var n=e.event,r=e.dataList,o=e.isInstantMessage,a=void 0===o||o,i=e.isSyncingEnded;switch(n){case 4:case 6:t.onNewGroupTips({event:n,dataList:r});break;case 5:for(var s=0;s<r.length;s++)if(at(r[s].elements.revokedInfos))t.onGroupMessageRevoked({dataList:r});else if(at(r[s].elements.groupMessageReadNotice))t.onGroupMessageReadNotice({dataList:r});else{if(!at(r[s].elements.readReceiptList)){t.onNewGroupSystemNotice({dataList:r,isInstantMessage:a,isSyncingEnded:i});break}t.onReadReceiptList({dataList:r})}break;case 12:this._sessionModule.getModule(Vn).onNewGroupAtTips({dataList:r});break;default:Fe.l("".concat(this._n,"._groupTipsHandler unknown event:").concat(n," dataList:"),r)}}}},{key:"_C2CNotifyMessageArrayHandler",value:function(e){var t=this,n=e.dataList;if(at(n)){var r=this._sessionModule.getModule(Nn);n.forEach((function(e){if(ot(e))if(e.hasOwnProperty("kickoutMsgNotify")){var o=e.kickoutMsgNotify,a=o.kickType,i=o.newInstanceInfo,s=void 0===i?{}:i;1===a?t._sessionModule.onMultipleAccountKickedOut(s):2===a?t._sessionModule.onMultipleDeviceKickedOut(s):3===a&&t._sessionModule.onRestApiKickedOut(s)}else e.hasOwnProperty("c2cMessageRevokedNotify")?r&&r.onC2CMessageRevoked({dataList:n}):e.hasOwnProperty("c2cMessageReadReceipt")?r&&r.onC2CMessageReadReceipt({dataList:n}):e.hasOwnProperty("c2cMessageReadNotice")?r&&r.onC2CMessageReadNotice({dataList:n}):e.hasOwnProperty("muteNotificationsSync")&&t._sessionModule.getModule(Vn).onC2CMessageRemindTypeSynced({dataList:n})}))}}},{key:"_C2CReadReceiptArrayHandler",value:function(e){this._sessionModule.getModule(Nn).onReadReceiptList(e)}},{key:"_profileHandler",value:function(e){this._sessionModule.getModule(An).onProfileModified({dataList:e.dataList});var t=this._sessionModule.getModule(Rn);t&&t.onFriendProfileModified({dataList:e.dataList})}},{key:"_relationChainHandler",value:function(e){this._sessionModule.getModule(An).onRelationChainModified({dataList:e.dataList});var t=this._sessionModule.getModule(Rn);t&&t.onRelationChainModified({dataList:e.dataList})}},{key:"_recentContactHandler",value:function(e){var t=e.dataList;if(at(t)){var n=this._sessionModule.getModule(Vn);n&&t.forEach((function(e){var t=e.pushType;if(1===t){var r=e.recentContactDeleteItem;n.onConversationDeleted(r.recentContactList)}else if(2===t){var o=e.recentContactTopItem;n.onConversationPinned(o.recentContactList)}else if(3===t){var a=e.recentContactTopItem;n.onConversationUnpinned(a.recentContactList)}else if(4===t){var i=e.recentContactMarkContact;n.onConversationMarkUpdated(i.recentContactMarkContactItem)}else if(5===t){var s=e.recentContactCreateContactGroup;n.onConversationGroupCreated(s.msgContactGroupContactItem)}else if(6===t){var c=e.recentContactDelContactGroup;n.onConversationGroupDeleted(c.msgGroupItem)}else if(7===t){var l=e.recentContactUpdateContactGroup,u=l.updateType,d=l.msgUpdateGroup,p=l.msgUpdateContact;if(1===u){var f=d.updateGroupType;1===f?n.onConversationGroupNameUpdated(d):2===f&&n.onConversationInGroupUpdated(d)}else 2===u&&n.onConversationAddedToOrDeletedFromGroup(p)}}))}}},{key:"_allMessageReadHandler",value:function(e){var t=e.dataList,n=this._sessionModule.getModule(Vn);n&&n.onPushedAllMessageRead(t)}},{key:"_userStatusListHandler",value:function(e){this._sessionModule.getModule(An).onUserStatusUpdated(e)}},{key:"_messageExtensionNotifyHandler",value:function(e){this._sessionModule.getModule(Ln).onMessageExtensionNotify(e)}},{key:"onMessage",value:function(e){var t=this,n=e.body;if(this._filterMessageFromIMOpenPush(e)){var r=n.eventArray,o=n.isInstantMessage,a=n.isSyncingEnded,i=n.needSync;if(at(r))for(var s=null,c=null,l=0,u=0,d=r.length;u<d;u++){l=(s=r[u]).event;var p=Object.keys(s).find((function(e){return-1!==t._keys.indexOf(e)}));p?(c=14===l?{readAllC2CMessage:s[p],groupMessageReadInfoList:s.groupMessageReadNotice||[]}:16===l?{userID:s.userID,readReceiptList:s[p]}:s[p],this._eventHandlerMap.get(p)({event:l,dataList:c,isInstantMessage:o,isSyncingEnded:a,needSync:i})):Fe.l("".concat(this._n,".onMessage unknown eventItem:").concat(s))}}}},{key:"_filterMessageFromIMOpenPush",value:function(e){var t=e.head,n=e.body,r=t.servcmd,o=!1;if(it(r)||(o=r.includes(G.NAME.IM_CONFIG_MANAGER)||r.includes(G.NAME.OVERLOAD_PUSH)||r.includes(G.NAME.STAT_SERVICE)),!o)return!0;if(r.includes(G.CMD.PUSHED_CLOUD_CONTROL_CONFIG))this._sessionModule.getModule(Qn).onPushedCloudControlConfig(n);else if(r.includes(G.CMD.PUSHED_COMMERCIAL_CONFIG))this._sessionModule.getModule(tr).onPushedConfig(n);else if(r.includes(G.CMD.OVERLOAD_NOTIFY))this._sessionModule.onPushedServerOverload(n);else if(r.includes(G.CMD.KICK_OTHER)){var a=Date.now();this._sessionModule.reLoginOnKickOther();var i=new Ta("kickOther"),s=this._sessionModule.getModule(jn).getLastWsHelloTs(),c=a-s;i.setMessage("last wshello time:".concat(s," diff:").concat(c,"ms")).setNetworkType(this._sessionModule.getNetworkType()).end()}return!1}}]),e}(),qs=[{cmd:G.CMD.GET_GROUP_INFO,interval:1,count:20},{cmd:G.CMD.GET_AVCHATROOM_MEMBER_LIST,interval:3,count:1},{cmd:G.CMD.GET_GROUP_APPLICATION,interval:1,count:15},{cmd:G.CMD.GET_TOPIC_LIST,interval:1,count:10},{cmd:G.CMD.SET_GROUP_ATTRIBUTES,interval:5,count:10},{cmd:G.CMD.MODIFY_GROUP_ATTRIBUTES,interval:5,count:10},{cmd:G.CMD.DELETE_GROUP_ATTRIBUTES,interval:5,count:10},{cmd:G.CMD.CLEAR_GROUP_ATTRIBUTES,interval:5,count:10},{cmd:G.CMD.GET_GROUP_ATTRIBUTES,interval:5,count:20},{cmd:G.CMD.UPDATE_GROUP_COUNTER,interval:5,count:20},{cmd:G.CMD.GET_GROUP_COUNTER,interval:5,count:20},{cmd:G.CMD.SET_ALL_MESSAGE_READ,interval:1,count:1},{cmd:G.CMD.GET_USER_STATUS,interval:5,count:20},{cmd:G.CMD.SUBSCRIBE_USER_STATUS,interval:5,count:20},{cmd:G.CMD.UNSUBSCRIBE_USER_STATUS,interval:5,count:20}],Ws=function(e){c(r,e);var t=g(r);function r(e){var n;return o(this,r),(n=t.call(this,e))._n="SessionModule",n._platform=n.getPlatform(),n._protocolHandler=new zs(m(n)),n._messageDispatcher=new Ys(m(n)),n._commandFrequencyLimitMap=new Map,n._commandRequestInfoMap=new Map,n._serverOverloadInfoMap=new Map,n._init(),n.getInnerEmitterInstance().on(ei,n._onCloudConfigUpdated,m(n)),n}return i(r,[{key:"_init",value:function(){this._updateCommandFrequencyLimitMap(qs)}},{key:"_onCloudConfigUpdated",value:function(){var e=this.getCloudConfig("cmd_frequency_limit");it(e)||(e=JSON.parse(e),this._updateCommandFrequencyLimitMap(e))}},{key:"_updateCommandFrequencyLimitMap",value:function(e){var t=this;e.forEach((function(e){t._commandFrequencyLimitMap.set(e.cmd,{interval:e.interval,count:e.count})}))}},{key:"updateProtocolConfig",value:function(){this._protocolHandler.update()}},{key:"request",value:function(e){Fe.d("".concat(this._n,".request options:"),e);var t=e.protocolName,n=e.tjgID;if(!this._protocolHandler.has(t))return Fe.w("".concat(this._n,".request unknown protocol:").concat(t)),Ja({code:fa.CANNOT_FIND_PROTOCOL});var r=this.getProtocolData(e),o=r.head.servcmd;if(this._isFrequencyOverLimit(o))return Ja({code:fa.OVER_FREQUENCY_LIMIT});if(this._isServerOverload(o))return Ja({code:fa.OPEN_SERVICE_OVERLOAD_ERROR});Kt(n)||(r.head.tjgID=n);var a=this.getModule($n);return Hs.includes(t)?a.simplySend(r):a.send(r)}},{key:"getKeyMap",value:function(e){return this._protocolHandler.getKeyMap(e)}},{key:"genCommonHead",value:function(){var e=this.getModule(Bn);return{ver:"v4",platform:this._platform,websdkappid:A,websdkversion:L,a2:e.getA2Key()||void 0,tinyid:e.getTinyID()||void 0,status_instid:e.getStatusInstanceID(),sdkappid:e.getSDKAppID(),contenttype:e.getContentType(),reqtime:0,identifier:e.getA2Key()?void 0:e.getUserID(),usersig:e.getA2Key()?void 0:e.getUserSig(),sdkability:192371,tjgID:""}}},{key:"genCosSpecifiedHead",value:function(){var e=this.getModule(Bn);return{ver:"v4",platform:this._platform,websdkappid:A,websdkversion:L,sdkappid:e.getSDKAppID(),contenttype:e.getContentType(),reqtime:0,identifier:e.getUserID(),usersig:e.getUserSig(),status_instid:e.getStatusInstanceID(),sdkability:192371}}},{key:"genSSOReportHead",value:function(){var e=this.getModule(Bn);return{ver:"v4",platform:this._platform,websdkappid:A,websdkversion:L,sdkappid:e.getSDKAppID(),contenttype:"",reqtime:0,identifier:"",usersig:"",status_instid:e.getStatusInstanceID(),sdkability:192371}}},{key:"getProtocolData",value:function(e){return this._protocolHandler.getProtocolData(e)}},{key:"trans",value:function(e){var t=e.servcmd,r=e.data,o={head:n(n({},this.genCommonHead()),{},{servcmd:t}),body:r};return this.getModule($n).send(o)}},{key:"sendComboMessage",value:function(e){var t=e.servcmd,r=e.data,o={head:n(n({},this.genCommonHead()),{},{servcmd:t}),body:r};return this.getModule($n).send(o)}},{key:"onErrorCodeNotZero",value:function(e){var t=e.errorCode;if(t===fa.HELLO_ANSWER_KICKED_OUT){var n=e.kickType,r=e.newInstanceInfo,o=void 0===r?{}:r;1===n?this.onMultipleAccountKickedOut(o):2===n?this.onMultipleDeviceKickedOut(o):3===n&&this.onRestApiKickedOut(o)}t!==fa.MESSAGE_A2KEY_EXPIRED&&t!==fa.ACCOUNT_A2KEY_EXPIRED||(this._onUserSigExpired(),this.getModule($n).reConnect())}},{key:"onMessage",value:function(e){var t=e.body,n=t.needAck,r=void 0===n?0:n,o=t.sessionData;1===r&&this._sendACK(o),this._messageDispatcher.onMessage(e)}},{key:"onReconnected",value:function(){this._reLoginOnReconnected()}},{key:"reLoginOnKickOther",value:function(){Fe.l("".concat(this._n,".reLoginOnKickOther")),this._reLogin()}},{key:"_reLoginOnReconnected",value:function(){Fe.l("".concat(this._n,"._reLoginOnReconnected")),this._reLogin()}},{key:"_reLogin",value:function(){var e=this;if(this.isLoggedIn()){var t=0,n=this.getModule(nr);n.canIUseOfflinePush()&&(t=n.getUniAppPlatform()),this.request({protocolName:cr,requestData:{isWebUniapp:t}}).then((function(t){var n=t.data.instanceID;e.getModule(Bn).setStatusInstanceID(n),Fe.l("".concat(e._n,"._reLogin ok.")),e.getModule(Vn).syncConversationList().then((function(){Fe.l("".concat(e._n,"._reLogin, sync conversation list ok.")),e.getModule(Zn).start()})),e.getModule(xn).updateLocalMainSequenceOnReconnected();var r=e.getModule(Un);r.resetGetTopicTime(),r.getTopicListOnReconnected()}))}}},{key:"onMultipleAccountKickedOut",value:function(e){this.getModule(jn).onMultipleAccountKickedOut(e)}},{key:"onMultipleDeviceKickedOut",value:function(e){this.getModule(jn).onMultipleDeviceKickedOut(e)}},{key:"_onUserSigExpired",value:function(){this.getModule(jn).onUserSigExpired()}},{key:"onRestApiKickedOut",value:function(e){this.getModule(jn).onRestApiKickedOut(e)}},{key:"_sendACK",value:function(e){this.request({protocolName:Yo,requestData:{sessionData:e}})}},{key:"_isFrequencyOverLimit",value:function(e){var t=e.split(".")[1];if(!this._commandFrequencyLimitMap.has(t))return!1;if(!this._commandRequestInfoMap.has(t))return this._commandRequestInfoMap.set(t,{startTime:Date.now(),requestCount:1}),!1;var n=this._commandFrequencyLimitMap.get(t),r=n.count,o=n.interval,a=this._commandRequestInfoMap.get(t),i=a.startTime,s=a.requestCount;if(Date.now()-i>1e3*o)return this._commandRequestInfoMap.set(t,{startTime:Date.now(),requestCount:1}),!1;s+=1,this._commandRequestInfoMap.set(t,{startTime:i,requestCount:s});var c=!1;return s>r&&(c=!0),c}},{key:"_isServerOverload",value:function(e){if(!this._serverOverloadInfoMap.has(e))return!1;var t=this._serverOverloadInfoMap.get(e),n=t.overloadTime,r=t.waitingTime,o=!1;return Date.now()-n<=1e3*r?o=!0:(this._serverOverloadInfoMap.delete(e),o=!1),o}},{key:"onPushedServerOverload",value:function(e){var t=e.overloadCommand,n=e.waitingTime;this._serverOverloadInfoMap.set(t,{overloadTime:Date.now(),waitingTime:n}),Fe.w("".concat(this._n,".onPushedServerOverload waitingTime:").concat(n,"s"))}},{key:"reset",value:function(){Fe.l("".concat(this._n,".reset")),this._updateCommandFrequencyLimitMap(qs),this._commandRequestInfoMap.clear(),this._serverOverloadInfoMap.clear()}}]),r}(sr),Ks=function(e){c(n,e);var t=g(n);function n(e){var r;return o(this,n),(r=t.call(this,e))._n="MessageLossDetectionModule",r._maybeLostSequencesMap=new Map,r._firstRoundRet=[],r}return i(n,[{key:"onMessageMaybeLost",value:function(e,t,n){this._maybeLostSequencesMap.has(e)||this._maybeLostSequencesMap.set(e,[]);for(var r=this._maybeLostSequencesMap.get(e),o=0;o<n;o++)-1===r.indexOf(t+o)&&r.push(t+o)}},{key:"detectFirstRound",value:function(e,t){var n=this._maybeLostSequencesMap.get(e);if(!Kt(n)&&!Kt(t)){var r=n.filter((function(e){return-1===t.indexOf(e)}));0===r.length?Fe.i("".concat(this._n,".detectFirstRound no message loss. conversationID:").concat(e)):this._firstRoundRet=this._firstRoundRet.concat(r),n.length=0}}},{key:"detectSecondRound",value:function(e,t){if(!Kt(this._firstRoundRet)&&!Kt(t)){var n=this._firstRoundRet.filter((function(e){return-1===t.indexOf(e)}));this._firstRoundRet.length=0;var r,o=n.length;0!==o&&(o<=5?r=e+"-"+n.join("-"):(n.sort((function(e,t){return e-t})),r=e+" start:"+n[0]+" end:"+n[o-1]+" count:"+o),new Ta("messageLoss").setMessage(r).setNetworkType(this.getNetworkType()).setLevel("warning").end(),Fe.i("".concat(this._n,".detectSecondRound message loss detected. conversationID:").concat(e," lostSequences:").concat(n)))}}},{key:"reset",value:function(){Fe.l("".concat(this._n,".reset")),this._maybeLostSequencesMap.clear(),this._firstRoundRet.length=0}}]),n}(sr),$s=function(e){c(n,e);var t=g(n);function n(e){var r;return o(this,n),(r=t.call(this,e))._n="CloudControlModule",r._cloudConfig=new Map,r._expiredTime=0,r._version=0,r._isFetching=!1,r}return i(n,[{key:"getCloudConfig",value:function(e){return it(e)?this._cloudConfig:this._cloudConfig.has(e)?this._cloudConfig.get(e):void 0}},{key:"_canFetchConfig",value:function(){return this.isLoggedIn()&&!this._isFetching&&Date.now()>=this._expiredTime}},{key:"fetchConfig",value:function(){var e=this,t=this._canFetchConfig();if(Fe.l("".concat(this._n,".fetchConfig canFetchConfig:").concat(t)),t){var n=new Ta("fetchCloudControlConfig"),r=this.getModule(Bn).getSDKAppID();this._isFetching=!0,this.request({protocolName:$o,requestData:{SDKAppID:r,version:this._version}}).then((function(t){e._isFetching=!1,n.setMessage("version:".concat(e._version," newVersion:").concat(t.data.version," config:").concat(t.data.cloudControlConfig)).setNetworkType(e.getNetworkType()).end(),Fe.l("".concat(e._n,".fetchConfig ok")),e._parseCloudControlConfig(t.data)})).catch((function(t){e._isFetching=!1,e.probeNetwork().then((function(e){var r=_(e,2),o=r[0],a=r[1];n.setError(t,o,a).end()})),Fe.l("".concat(e._n,".fetchConfig failed. error:"),t),e._setExpiredTimeOnResponseError(12e4)}))}}},{key:"onPushedCloudControlConfig",value:function(e){Fe.l("".concat(this._n,".onPushedCloudControlConfig")),new Ta("pushedCloudControlConfig").setNetworkType(this.getNetworkType()).setMessage("newVersion:".concat(e.version," config:").concat(e.cloudControlConfig)).end(),this._parseCloudControlConfig(e)}},{key:"onCheckTimer",value:function(e){this._canFetchConfig()&&this.fetchConfig()}},{key:"_parseCloudControlConfig",value:function(e){var t=this,n="".concat(this._n,"._parseCloudControlConfig"),r=e.errorCode,o=e.errorMessage,a=e.cloudControlConfig,i=e.version,s=e.expiredTime;if(0===r){if(this._version!==i){var c=null;try{c=JSON.parse(a)}catch(u){this.isPrivateNetWork()||Fe.e("".concat(n," JSON parse error. cloudControlConfig:"),a)}c&&(this._cloudConfig.clear(),Object.keys(c).forEach((function(e){t._cloudConfig.set(e,c[e])})),this._version=i,this.emitInnerEvent(ei))}this._expiredTime=Date.now()+1e3*s}else it(r)?(Fe.l("".concat(n," failed. Invalid message format:"),e),this._setExpiredTimeOnResponseError(36e5)):(Fe.e("".concat(n," errorCode:").concat(r," errorMessage:").concat(o)),this._setExpiredTimeOnResponseError(12e4))}},{key:"_setExpiredTimeOnResponseError",value:function(e){this._expiredTime=Date.now()+e}},{key:"reset",value:function(){Fe.l("".concat(this._n,".reset")),this._cloudConfig.clear(),this._expiredTime=0,this._version=0,this._isFetching=!1}}]),n}(sr),Js=function(e){c(n,e);var t=g(n);function n(e){var r;return o(this,n),(r=t.call(this,e))._n="RecoverMessageModule",r.PULL_LIMIT_COUNT=15,r}return i(n,[{key:"start",value:function(){this._recoverGroupChat(),this._recoverC2CChat()}},{key:"_recoverGroupChat",value:function(){var e,t,n=this,r=this._getLocalConversationList().filter((function(e){return e.type===S.CONV_GROUP&&e.groupProfile.type!==S.GRP_AVCHATROOM})),o=this.getModule(Vn),a=0,i=0,s=0;r.forEach((function(r){var c=r.conversationID,l=r.lastMessage;t=c.replace(S.CONV_GROUP,""),e=o.getLocalLastMessage(c),l&&0!==l.lastSequence&&e?(i=l.lastSequence,a=e.sequence,s=i-a,a>0&&s>=1&&s<300?n._recoverGroupMessage({groupID:t,localLastMessageSequence:a,remoteLastMessageSequence:i}):n._getGroupNotify(t)):n._getGroupNotify(t)}))}},{key:"_recoverC2CChat",value:function(){var e,t=this,n=this._getLocalConversationList().filter((function(e){return e.type===S.CONV_C2C})),r=this.getModule(Vn),o=0,a=0,i=0,s=[Promise.resolve()];n.forEach((function(n){var c=n.conversationID,l=n.lastMessage;e=r.getLocalLastMessage(c),l&&0!==l.lastTime&&e&&(a=l.lastTime,o=e.time,i=a-o,o>0&&i>=1&&i<=600&&s.push(t._recoverC2CMessage({conversationID:c,localLastMessageTime:o,remoteLastMessageTime:a})))})),Promise.all(s).then((function(){Fe.l("".concat(t._n,"._recoverC2CChat all promise fulfilled, start to sync unread messages")),t.getModule(Wn).startSyncOnReconnected()}))}},{key:"_getLocalConversationList",value:function(){return this.getModule(Vn).getLocalConversationList()}},{key:"_recoverGroupMessage",value:function(e){var t=this,n="".concat(this._n,"._recoverGroupMessage");Fe.l("".concat(n," options:"),e);var r=e.groupID,o=e.localLastMessageSequence,a=e.remoteLastMessageSequence;this._getGroupRomaingMessage({groupID:r,sequence:o}).then((function(e){var o=e.data,i=o.complete,s=o.messageList;if(!it(s)){var c=s[0].sequence;Fe.l("".concat(n," pkgLastMessageSequence:").concat(c," complete:").concat(i)),c<a&&2!==i&&t._recoverGroupMessage({groupID:r,localLastMessageSequence:c,remoteLastMessageSequence:a}),new Ta("recoverMessage").setNetworkType(t.getNetworkType()).setMessage("groupID:".concat(r," complete:").concat(i," messageList length:").concat(s.length)).end(),t.getModule(xn).onNewGroupMessage({dataList:s,isInstantMessage:!1,updateUnreadCount:!1}),t._getGroupNotify(r)}}))}},{key:"_getGroupNotify",value:function(e){this.getModule(xn).getGroupNotify(e)}},{key:"_getGroupRomaingMessage",value:function(e){var t=e.groupID,n=e.sequence;return this.request({protocolName:so,requestData:{groupID:t,count:this.PULL_LIMIT_COUNT,sequence:n+this.PULL_LIMIT_COUNT-1}})}},{key:"_recoverC2CMessage",value:function(e){var t=this,n="".concat(this._n,"._recoverC2CMessage");Fe.l("".concat(this._n,"._recoverC2CMessage options:"),e);var r=e.conversationID,o=e.localLastMessageTime,a=e.remoteLastMessageTime;return this._getC2CRoamingMessage({conversationID:r,time:o}).then((function(e){var o=e.data,i=o.complete,s=o.messageList;if(!it(s)){var c=s.length;new Ta("recoverMessage").setNetworkType(t.getNetworkType()).setMessage("".concat(r," complete:").concat(i," messageList length:").concat(c)).end(),t.getModule(Nn).onNewC2CMessage({dataList:s,isInstantMessage:!0});var l=s[c-1].time;if(Fe.l("".concat(n," pkgLastMessageTime:").concat(l," complete:").concat(i)),l<a&&1!==i)return t._recoverC2CMessage({conversationID:r,localLastMessageTime:l,remoteLastMessageTime:a})}}))}},{key:"_getC2CRoamingMessage",value:function(e){var t=e.conversationID,n=e.time;return this.request({protocolName:wr,requestData:{peerAccount:t.replace(S.CONV_C2C,""),count:this.PULL_LIMIT_COUNT+1,lastMessageTime:n,direction:1}})}},{key:"reset",value:function(){Fe.l("".concat(this._n,".reset"))}}]),n}(sr),Qs=function(){function e(){o(this,e),this._n="AvgE2EDelay",this._e2eDelayArray=[]}return i(e,[{key:"addMessageDelay",value:function(e){var t=Pe()-e;t>=0&&this._e2eDelayArray.push(t)}},{key:"_calcAvg",value:function(e,t){if(0===t)return 0;var n=0;return e.forEach((function(e){n+=e})),Pt(n/t,1)}},{key:"_calcCountWithLimit",value:function(e){var t=e.e2eDelayArray,n=e.min,r=e.max;return t.filter((function(e){return n<=e&&e<r})).length}},{key:"_calcPercent",value:function(e,t){var n=Pt(e/t*100,2);return n>100&&(n=100),n}},{key:"_checkE2EDelayException",value:function(e,t){var n=e.filter((function(e){return e>t}));if(n.length>0){var r=n.length,o=Math.min.apply(Math,y(n)),a=Math.max.apply(Math,y(n)),i=this._calcAvg(n,r),s=Pt(r/e.length*100,2);s>50&&new Ta("messageE2EDelayException").setMessage("count:".concat(r," min:").concat(o," max:").concat(a," avg:").concat(i," percent:").concat(s)).setLevel("warning").end()}}},{key:"getStatResult",value:function(){var e=this._e2eDelayArray.length;if(0===e)return null;var t=y(this._e2eDelayArray),n=this._calcCountWithLimit({e2eDelayArray:t,min:0,max:1}),r=this._calcCountWithLimit({e2eDelayArray:t,min:1,max:3}),o=this._calcPercent(n,e),a=this._calcPercent(r,e),i=this._calcAvg(t,e);return this._checkE2EDelayException(t,3),t.length=0,this.reset(),{totalCount:e,countLessThan1Second:n,percentOfCountLessThan1Second:o,countLessThan3Second:r,percentOfCountLessThan3Second:a,avgDelay:i}}},{key:"reset",value:function(){this._e2eDelayArray.length=0}}]),e}(),Xs=function(){function e(){o(this,e),this._n="AvgRTT",this._requestCount=0,this._rttArray=[]}return i(e,[{key:"addRequestCount",value:function(){this._requestCount+=1}},{key:"addRTT",value:function(e){this._rttArray.push(e)}},{key:"_calcTotalCount",value:function(){return this._requestCount}},{key:"_calcRTTCount",value:function(e){return e.length}},{key:"_calcSuccessRateOfRequest",value:function(e,t){if(0===t)return 0;var n=Pt(e/t*100,2);return n>100&&(n=100),n}},{key:"_calcAvg",value:function(e,t){if(0===t)return 0;var n=0;return e.forEach((function(e){n+=e})),parseInt(n/t)}},{key:"_calcMax",value:function(){return Math.max.apply(Math,y(this._rttArray))}},{key:"_calcMin",value:function(){return Math.min.apply(Math,y(this._rttArray))}},{key:"getStatResult",value:function(){var e=this._calcTotalCount(),t=y(this._rttArray);if(0===e)return null;var n=this._calcRTTCount(t),r=this._calcSuccessRateOfRequest(n,e),o=this._calcAvg(t,n);return Fe.l("".concat(this._n,".getStatResult max:").concat(this._calcMax()," min:").concat(this._calcMin()," avg:").concat(o)),this.reset(),{totalCount:e,rttCount:n,successRateOfRequest:r,avgRTT:o}}},{key:"reset",value:function(){this._requestCount=0,this._rttArray.length=0}}]),e}(),Zs=function(){function e(){o(this,e),this._map=new Map}return i(e,[{key:"initMap",value:function(e){var t=this;e.forEach((function(e){t._map.set(e,{totalCount:0,successCount:0,failedCountOfUserSide:0,costArray:[],fileSizeArray:[]})}))}},{key:"addTotalCount",value:function(e){return!(it(e)||!this._map.has(e))&&(this._map.get(e).totalCount+=1,!0)}},{key:"addSuccessCount",value:function(e){return!(it(e)||!this._map.has(e))&&(this._map.get(e).successCount+=1,!0)}},{key:"addFailedCountOfUserSide",value:function(e){return!(it(e)||!this._map.has(e))&&(this._map.get(e).failedCountOfUserSide+=1,!0)}},{key:"addCost",value:function(e,t){return!(it(e)||!this._map.has(e))&&(this._map.get(e).costArray.push(t),!0)}},{key:"addFileSize",value:function(e,t){return!(it(e)||!this._map.has(e))&&(this._map.get(e).fileSizeArray.push(t),!0)}},{key:"_calcSuccessRateOfBusiness",value:function(e){if(it(e)||!this._map.has(e))return-1;var t=this._map.get(e),n=Pt(t.successCount/t.totalCount*100,2);return n>100&&(n=100),n}},{key:"_calcSuccessRateOfPlatform",value:function(e){if(it(e)||!this._map.has(e))return-1;var t=this._map.get(e),n=this._calcSuccessCountOfPlatform(e)/t.totalCount*100;return(n=Pt(n,2))>100&&(n=100),n}},{key:"_calcTotalCount",value:function(e){return it(e)||!this._map.has(e)?-1:this._map.get(e).totalCount}},{key:"_calcSuccessCountOfBusiness",value:function(e){return it(e)||!this._map.has(e)?-1:this._map.get(e).successCount}},{key:"_calcSuccessCountOfPlatform",value:function(e){if(it(e)||!this._map.has(e))return-1;var t=this._map.get(e);return t.successCount+t.failedCountOfUserSide}},{key:"_calcAvg",value:function(e){return it(e)||!this._map.has(e)?-1:e===ba?this._calcAvgSpeed(e):this._calcAvgCost(e)}},{key:"_calcAvgCost",value:function(e){var t=this._map.get(e).costArray.length;if(0===t)return 0;var n=0;return this._map.get(e).costArray.forEach((function(e){n+=e})),parseInt(n/t)}},{key:"_calcAvgSpeed",value:function(e){var t=0,n=0;return this._map.get(e).costArray.forEach((function(e){t+=e})),this._map.get(e).fileSizeArray.forEach((function(e){n+=e})),parseInt(1e3*n/t)}},{key:"getStatResult",value:function(e){var t=this._calcTotalCount(e);if(0===t)return null;var n=this._calcSuccessCountOfBusiness(e),r=this._calcSuccessRateOfBusiness(e),o=this._calcSuccessCountOfPlatform(e),a=this._calcSuccessRateOfPlatform(e),i=this._calcAvg(e);return this.reset(e),{totalCount:t,successCountOfBusiness:n,successRateOfBusiness:r,successCountOfPlatform:o,successRateOfPlatform:a,avgValue:i}}},{key:"reset",value:function(e){it(e)?this._map.clear():this._map.set(e,{totalCount:0,successCount:0,failedCountOfUserSide:0,costArray:[],fileSizeArray:[]})}}]),e}(),ec=function(){function e(){o(this,e),this._lastMap=new Map,this._currentMap=new Map}return i(e,[{key:"initMap",value:function(e){var t=this;e.forEach((function(e){t._lastMap.set(e,new Map),t._currentMap.set(e,new Map)}))}},{key:"addMessageSequence",value:function(e){var t=e.key,n=e.message;if(it(t)||!this._lastMap.has(t)||!this._currentMap.has(t))return!1;var r=n.conversationID,o=n.sequence,a=r.replace(S.CONV_GROUP,"");if(0===this._lastMap.get(t).size)this._addCurrentMap(e);else if(this._lastMap.get(t).has(a)){var i=this._lastMap.get(t).get(a),s=i.length-1;o>i[0]&&o<i[s]?(i.push(o),i.sort(),this._lastMap.get(t).set(a,i)):this._addCurrentMap(e)}else this._addCurrentMap(e);return!0}},{key:"_addCurrentMap",value:function(e){var t=e.key,n=e.message,r=n.conversationID,o=n.sequence,a=r.replace(S.CONV_GROUP,"");this._currentMap.get(t).has(a)||this._currentMap.get(t).set(a,[]),this._currentMap.get(t).get(a).push(o)}},{key:"_copyData",value:function(e){if(!it(e)){this._lastMap.set(e,new Map);var t,n=this._lastMap.get(e),r=w(this._currentMap.get(e));try{for(r.s();!(t=r.n()).done;){var o=_(t.value,2),a=o[0],i=o[1];n.set(a,i)}}catch(c){r.e(c)}finally{r.f()}n=null,this._currentMap.set(e,new Map)}}},{key:"getStatResult",value:function(e){if(it(this._currentMap.get(e))||it(this._lastMap.get(e)))return null;if(0===this._lastMap.get(e).size)return this._copyData(e),null;var t=0,n=0;if(this._lastMap.get(e).forEach((function(e,r){var o=y(e.values()),a=o.length,i=o[a-1]-o[0]+1;t+=i,n+=a})),0===t)return null;var r=Pt(n/t*100,2);return r>100&&(r=100),this._copyData(e),{totalCount:t,successCountOfMessageReceived:n,successRateOfMessageReceived:r}}},{key:"reset",value:function(){this._currentMap.clear(),this._lastMap.clear()}}]),e}(),tc=function(e){c(r,e);var t=g(r);function r(e){var n;o(this,r),(n=t.call(this,e))._n="QualityStatModule",n.TAG="im-ssolog-quality-stat",n.reportIndex=0,n.wholePeriod=!1,n._qualityItems=[ha,ma,va,ga,_a,ya,ba,Oa,Ma,ka],n._messageSentItems=[va,ga,_a,ya,ba],n._messageReceivedItems=[Oa,Ma,ka],n.REPORT_INTERVAL=120,n.REPORT_SDKAPPID_BLACKLIST=[],n.REPORT_TINYID_WHITELIST=[],n._statInfoArr=[],n._avgRTT=new Xs,n._avgE2EDelay=new Qs,n._rateMessageSent=new Zs,n._rateMessageReceived=new ec;var a=n.getInnerEmitterInstance();return a.on(Za,n._onLoginSuccess,m(n)),a.on(ei,n._onCloudConfigUpdated,m(n)),n}return i(r,[{key:"_onLoginSuccess",value:function(){var e=this;this._rateMessageSent.initMap(this._messageSentItems),this._rateMessageReceived.initMap(this._messageReceivedItems);var t=this.getModule(Fn),n=t.getItem(this.TAG,!1);!Kt(n)&&ct(n.forEach)&&(Fe.l("".concat(this._n,"._onLoginSuccess get quality stat logs from local storage, count:").concat(n.length)),n.forEach((function(t){e._statInfoArr.push(t)})),t.removeItem(this.TAG,!1))}},{key:"_onCloudConfigUpdated",value:function(){var e=this.getCloudConfig("q_rpt_interval"),t=this.getCloudConfig("q_rpt_sdkappid_bl"),n=this.getCloudConfig("q_rpt_tinyid_wl");it(e)||(this.REPORT_INTERVAL=Number(e)),it(t)||(this.REPORT_SDKAPPID_BLACKLIST=t.split(",").map((function(e){return Number(e)}))),it(n)||(this.REPORT_TINYID_WHITELIST=n.split(","))}},{key:"onCheckTimer",value:function(e){this.isLoggedIn()&&e%this.REPORT_INTERVAL==0&&(this.wholePeriod=!0,this._report())}},{key:"addRequestCount",value:function(){this._avgRTT.addRequestCount()}},{key:"addRTT",value:function(e){this._avgRTT.addRTT(e)}},{key:"addMessageDelay",value:function(e){this._avgE2EDelay.addMessageDelay(e)}},{key:"addTotalCount",value:function(e){this._rateMessageSent.addTotalCount(e)||Fe.w("".concat(this._n,".addTotalCount invalid key:"),e)}},{key:"addSuccessCount",value:function(e){this._rateMessageSent.addSuccessCount(e)||Fe.w("".concat(this._n,".addSuccessCount invalid key:"),e)}},{key:"addFailedCountOfUserSide",value:function(e){this._rateMessageSent.addFailedCountOfUserSide(e)||Fe.w("".concat(this._n,".addFailedCountOfUserSide invalid key:"),e)}},{key:"addCost",value:function(e,t){this._rateMessageSent.addCost(e,t)||Fe.w("".concat(this._n,".addCost invalid key or cost:"),e,t)}},{key:"addFileSize",value:function(e,t){this._rateMessageSent.addFileSize(e,t)||Fe.w("".concat(this._n,".addFileSize invalid key or size:"),e,t)}},{key:"addMessageSequence",value:function(e){this._rateMessageReceived.addMessageSequence(e)||Fe.w("".concat(this._n,".addMessageSequence invalid key:"),e.key)}},{key:"_getQualityItem",value:function(e){var t={},r=Ia[this.getNetworkType()];it(r)&&(r=8);var o={qualityType:Ca[e],timestamp:xe(),networkType:r,extension:""};switch(e){case ha:t=this._avgRTT.getStatResult();break;case ma:t=this._avgE2EDelay.getStatResult();break;case va:case ga:case _a:case ya:case ba:t=this._rateMessageSent.getStatResult(e);break;case Oa:case Ma:case ka:t=this._rateMessageReceived.getStatResult(e)}return null===t?null:n(n({},o),t)}},{key:"_report",value:function(e){var t=this,n=[],r=null;it(e)?this._qualityItems.forEach((function(e){null!==(r=t._getQualityItem(e))&&(r.reportIndex=t.reportIndex,r.wholePeriod=t.wholePeriod,n.push(r))})):null!==(r=this._getQualityItem(e))&&(r.reportIndex=this.reportIndex,r.wholePeriod=this.wholePeriod,n.push(r)),Fe.d("".concat(this._n,"._report"),n),this._statInfoArr.length>0&&(n=n.concat(this._statInfoArr),this._statInfoArr=[]);var o=this.getModule(Bn),a=o.getSDKAppID(),i=o.getTinyID();Ut(this.REPORT_SDKAPPID_BLACKLIST,a)&&!Vt(this.REPORT_TINYID_WHITELIST,i)&&(n=[]),n.length>0&&this._doReport(n)}},{key:"_doReport",value:function(e){var t=this,r={header:ns(this),quality:e};this.request({protocolName:Fo,requestData:n({},r)}).then((function(){t.reportIndex++,t.wholePeriod=!1})).catch((function(n){Fe.w("".concat(t._n,"._doReport, online:").concat(t.getNetworkType()," error:"),n),t._statInfoArr=t._statInfoArr.concat(e),t._flushAtOnce()}))}},{key:"_flushAtOnce",value:function(){var e=this.getModule(Fn),t=e.getItem(this.TAG,!1),n=this._statInfoArr,r="".concat(this._n,"._flushAtOnce");if(Kt(t))Fe.l("".concat(r," count:").concat(n.length)),e.setItem(this.TAG,n,!0,!1);else{var o=n.concat(t);o.length>10&&(o=o.slice(0,10)),Fe.l("".concat(r," count:").concat(o.length)),e.setItem(this.TAG,o,!0,!1)}this._statInfoArr=[]}},{key:"reset",value:function(){Fe.l("".concat(this._n,".reset")),this._report(),this.reportIndex=0,this.wholePeriod=!1,this.REPORT_SDKAPPID_BLACKLIST=[],this.REPORT_TINYID_WHITELIST=[],this._avgRTT.reset(),this._avgE2EDelay.reset(),this._rateMessageSent.reset(),this._rateMessageReceived.reset()}}]),r}(sr),nc=function(e){c(n,e);var t=g(n);function n(e){var r;return o(this,n),(r=t.call(this,e))._n="WorkerTimerModule",r._isWorkerEnabled=!0,r._workerTimer=null,r._timerID=-1,r._init(),r.getInnerEmitterInstance().on(ei,r._onCloudConfigUpdated,m(r)),r}return i(n,[{key:"isWorkerEnabled",value:function(){return this._isWorkerEnabled&&Se}},{key:"startWorkerTimer",value:function(){Fe.l("".concat(this._n,".startWorkerTimer")),this._workerTimer&&this._workerTimer.postMessage("start")}},{key:"stopWorkerTimer",value:function(){Fe.l("".concat(this._n,".stopWorkerTimer")),this._workerTimer&&this._workerTimer.postMessage("stop")}},{key:"_init",value:function(){if(Se){var e=URL.createObjectURL(new Blob(['let interval = -1;onmessage = function(event) { if (event.data === "start") { if (interval > 0) { clearInterval(interval); } interval = setInterval(() => { postMessage(""); }, 1000); postMessage(interval); } else if (event.data === "stop") { clearInterval(interval); interval = -1; }};'],{type:"application/javascript; charset=utf-8"}));this._workerTimer=new Worker(e);var t=this;this._workerTimer.onmessage=function(e){e.data?(t._timerID=e.data,Fe.l("".concat(t._n,"._init seed:").concat(t._timerID))):t._m.onCheckTimer()}}}},{key:"_onCloudConfigUpdated",value:function(){var e=this.getCloudConfig("enable_worker");Fe.l("".concat(this._n,"._onCloudConfigUpdated enableWorker:").concat(e)),it(e)||"1"===e?!this._isWorkerEnabled&&Se&&(this._isWorkerEnabled=!0,this.startWorkerTimer(),this._m.onWorkerTimerEnabled()):this._isWorkerEnabled&&Se&&(this._isWorkerEnabled=!1,this.stopWorkerTimer(),this._m.onWorkerTimerDisabled())}},{key:"terminate",value:function(){Fe.l("".concat(this._n,".terminate")),this._workerTimer&&(this._workerTimer.terminate(),this._workerTimer=null,this._timerID=-1)}},{key:"getTimerID",value:function(){return this._timerID}},{key:"reset",value:function(){Fe.l("".concat(this._n,".reset"))}}]),n}(sr),rc=function(){function e(){o(this,e),this._n="PurchasedFeatureHandler",this._purchasedFeatureMap=new Map}return i(e,[{key:"isValidPurchaseBits",value:function(e){return e&&"string"==typeof e&&e.length>=1&&e.length<=64&&/[01]{1,64}/.test(e)}},{key:"parsePurchaseBits",value:function(e){var t="".concat(this._n,".parsePurchaseBits");if(this.isValidPurchaseBits(e)){this._purchasedFeatureMap.clear();for(var n=null,r=e.length-1,o=0;r>=0;r--,o++)n=o<32?new E(0,Math.pow(2,o)).toString():new E(Math.pow(2,o-32),0).toString(),"1"===e[r]?this._purchasedFeatureMap.set(n,!0):this._purchasedFeatureMap.set(n,!1)}else Fe.w("".concat(t," invalid purchase bits:").concat(e))}},{key:"hasPurchasedFeature",value:function(e){return!!this._purchasedFeatureMap.get(e)}},{key:"isFeatureEnabled",value:function(e){for(var t=parseInt(e).toString(2),n=void 0,r=!0,o=t.length-1,a=0;o>=0;o--,a++)if("1"===t.charAt(o)&&(n=a<32?new E(0,Math.pow(2,a)).toString():new E(Math.pow(2,a-32),0).toString(),!this._purchasedFeatureMap.get(n))){r=!1;break}return Fe.l("".concat(this._n,".isFeatureEnabled decimalNumber:").concat(e," binaryString:").concat(t," ret:").concat(r)),$a({enabled:r})}},{key:"clear",value:function(){this._purchasedFeatureMap.clear()}}]),e}(),oc=function(){function e(t){o(this,e),this._m=t,this._n="CommercialConfigModule",this._expiredTime=0,this._isFetching=!1,this._purchasedFeatureHandler=new rc}return i(e,[{key:"_canFetch",value:function(){return this._getModule(Bn).isLoggedIn()?!this._isFetching&&Date.now()>=this._expiredTime:(this._expiredTime=Date.now()+2e3,!1)}},{key:"onCheckTimer",value:function(e){this._canFetch()&&this.fetchConfig()}},{key:"fetchConfig",value:function(){var e=this,t=this._canFetch(),n="".concat(this._n,".fetchConfig");if(Fe.l("".concat(n," canFetch:").concat(t)),t){var r=this._getModule(zn),o=new Ta("fetchCommercialConfig");o.setNetworkType(r.getNetworkType());var a=this._getModule(Bn).getSDKAppID(),i=this._getModule(Kn);this._isFetching=!0,i.request({protocolName:Qo,requestData:{SDKAppID:a}}).then((function(t){o.setMessage("purchaseBits:".concat(t.data.purchaseBits)).end(),Fe.l("".concat(n," ok.")),e._parseConfig(t.data),e._isFetching=!1})).catch((function(t){r.probe().then((function(e){var n=_(e,2),r=n[0],a=n[1];o.setError(t,r,a).end()})),e._isFetching=!1}))}}},{key:"onPushedConfig",value:function(e){var t="".concat(this._n,".onPushedConfig");Fe.l("".concat(t)),new Ta("pushedCommercialConfig").setNetworkType(this._getModule(zn).getNetworkType()).setMessage("purchaseBits:".concat(e.purchaseBits)).end(),this._parseConfig(e)}},{key:"_parseConfig",value:function(e){var t="".concat(this._n,"._parseConfig"),n=e.errorCode,r=e.errorMessage,o=e.purchaseBits,a=e.expiredTime;0===n?(this._purchasedFeatureHandler.parsePurchaseBits(o),this._expiredTime=Date.now()+1e3*a):it(n)?(Fe.l("".concat(t," failed. Invalid message format:"),e),this._setExpiredTimeOnResponseError(36e5)):(Fe.e("".concat(t," errorCode:").concat(n," errorMessage:").concat(r)),this._setExpiredTimeOnResponseError(12e4))}},{key:"_setExpiredTimeOnResponseError",value:function(e){this._expiredTime=Date.now()+e}},{key:"canIUse",value:function(e){return this._purchasedFeatureHandler.hasPurchasedFeature(e)}},{key:"isFeatureEnabled",value:function(e){return this._purchasedFeatureHandler.isFeatureEnabled(e)}},{key:"_getModule",value:function(e){return this._m.getModule(e)}},{key:"reset",value:function(){Fe.l("".concat(this._n,".reset")),this._expiredTime=0,this._isFetching=!1,this._purchasedFeatureHandler.clear()}}]),e}(),ac=function(e){c(n,e);var t=g(n);function n(e){var r;return o(this,n),(r=t.call(this,e))._m=e,r._n="OfflinePushModule",r._offlinePushPlugin=void 0,r._androidPushConfig={huaweiPushBussinessId:"",xiaomiPushBussinessId:"",xiaomiPushAppId:"",xiaomiPushAppKey:"",meizuPushBussinessId:"",meizuPushAppId:"",meizuPushAppKey:"",vivoPushBussinessId:"",fcmPushBussinessId:"",oppoPushBussinessId:"",oppoPushAppKey:"",oppoPushAppSecret:"",honorPushBussinessId:""},r._deviceToken="",r._businessID=0,r._iosBusinessID=0,r._c2cUnreadCount=0,r._groupUnreadCount=0,r._isWebUniapp=0,r}return i(n,[{key:"registerPlugin",value:function(e){if(re){this._offlinePushPlugin=e["tim-offline-push-plugin"];var t=e.offlinePushConfig||{},n=t.huaweiBusinessID,r=t.xiaomiBusinessID,o=t.xiaomiAppID,a=t.xiaomiAppKey,i=t.meizuBusinessID,s=t.meizuAppID,c=t.meizuAppKey,l=t.vivoBusinessID,u=t.oppoBusinessID,d=t.oppoAppKey,p=t.oppoAppSecret,f=t.honorBusinessID,h=t.iosBusinessID;this._androidPushConfig.huaweiPushBussinessId=n,this._androidPushConfig.xiaomiPushBussinessId=r,this._androidPushConfig.xiaomiPushAppId=o,this._androidPushConfig.xiaomiPushAppKey=a,this._androidPushConfig.meizuPushBussinessId=i,this._androidPushConfig.meizuPushAppId=s,this._androidPushConfig.meizuPushAppKey=c,this._androidPushConfig.vivoPushBussinessId=l,this._androidPushConfig.oppoPushBussinessId=u,this._androidPushConfig.oppoPushAppKey=d,this._androidPushConfig.oppoPushAppSecret=p,this._androidPushConfig.honorPushBussinessId=f,new Ta("registerPlugin").setMessage("tim-offline-push-plugin").setMoreMessage("isExist:".concat(!it(this._offlinePushPlugin))).end(!0),Fe.l("".concat(this._n,".").concat("registerPlugin"," ok. offlinePushConfig:").concat(JSON.stringify(e.offlinePushConfig))),this._iosBusinessID=h,this._setAppShowListener()}else this.outputWarning("OfflinePushInUniapp")}},{key:"init",value:function(){this._isWebUniapp=this.getUniAppPlatform(),this._getDeviceToken()}},{key:"_getDeviceToken",value:function(){var e=this,t="".concat(this._n,".").concat("_getDeviceToken");if(ct(this._offlinePushPlugin.getDeviceToken)){var n="androidPushConfig:".concat(JSON.stringify(this._androidPushConfig),", iosBusinessID:").concat(this._iosBusinessID);Fe.l("".concat(t," start. ").concat(n)),new Ta("_getDeviceToken").setMessage("".concat(n)).end(!0),this._offlinePushPlugin.getDeviceToken(this._androidPushConfig,(function(r){var o=new Ta("getDeviceTokenRes"),a=r.code,i=r.msg;if(0===a){var s=r.data,c=s.deviceToken,l=s.deviceBrand,u=s.deviceType,d=s.bussinessId;e._deviceToken=c,e._businessID=d||e._iosBusinessID,n="deviceToken:".concat(c,", deviceBrand:").concat(l||u,", businessID:").concat(e._businessID),Fe.l("".concat(t," ok. ").concat(n)),o.setMessage(n).end(!0),e._setToken()}else o.setMessage("code:".concat(a,", msg:").concat(i)).end(!0),Fe.e("".concat(t," failed. error:"),r)}))}else Fe.e("".concat(t," getDeviceToken is not a function"))}},{key:"canIUseOfflinePush",value:function(){return re&&!it(this._offlinePushPlugin)}},{key:"_setAppShowListener",value:function(){var e=this,t="".concat(this._n,".").concat("_setAppShowListener");it(this._offlinePushPlugin)?Fe.e("".concat(t," offlinePushPlugin is undefined")):ct(this._offlinePushPlugin.setAppShowListener)?(new Ta("_setAppShowListener").end(!0),Fe.l("".concat(t," start")),this._offlinePushPlugin.setAppShowListener((function(n){var r=(n||{}).appShow;new Ta("setAppShowListenerRes").setMessage("appShow:".concat(r)).end(!0),Fe.l("".concat(t," ok. appShow:").concat(r)),e._m.isReady()&&(0===r?(e._getConvUnreadCount(),e._onBackground()):1===r&&e._onForeground())}))):Fe.e("".concat(t," setAppShowListener is not a function"))}},{key:"getDeviceBrand",value:function(){if(!it(this._offlinePushPlugin)&&ct(this._offlinePushPlugin.getDeviceType)){var e=(this._offlinePushPlugin.getDeviceType()||{}).deviceType;return Fe.l("".concat(this._n,".getDeviceBrand ok. deviceType:").concat(e)),e}}},{key:"_setToken",value:function(){var e,t=this,n="".concat(this._n,"._setToken"),r=this.getModule(Bn),o=1,a="",i="";Kt(this._deviceToken)&&(o=0);var s=this.getUniAppPlatform(),c=this.getDeviceBrand();s===D.IOS||s===D.IPAD||s===D.MAC?i=this._deviceToken:s===D.ANDROID&&(a=this._deviceToken);var l=new Ta("offlinePushSetToken");return e="deviceToken:".concat(i||a,", businessID:").concat(this._businessID,", ")+"deviceBrand:".concat(c,", isWebUniapp:").concat(this._isWebUniapp,", pushMsg:").concat(o,", platform:").concat(s),l.setMessage("".concat(e)),Fe.l("".concat(n," ").concat(e)),this.request({protocolName:ua,requestData:{tokenID:a,pushMsg:o,sdkAppID:r.getSDKAppID(),businessID:parseInt(this._businessID),deviceBrand:c,deviceToken:i,isWebUniapp:this._isWebUniapp}}).then((function(e){return l.end(),Fe.l("".concat(n," ok")),e})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];l.setError(e,r,o).end()})),Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"_getConvUnreadCount",value:function(){var e=this;this._c2cUnreadCount=0,this._groupUnreadCount=0,this.getModule(Vn).getLocalConversationList().forEach((function(t){t.type===S.CONV_C2C&&(e._c2cUnreadCount+=t.unreadCount),t.type===S.CONV_GROUP&&(e._groupUnreadCount+=t.unreadCount)}))}},{key:"_onBackground",value:function(){var e=this,t="".concat(this._n,".").concat("_onBackground"),n=new Ta("_onBackground");this.request({protocolName:ca,requestData:{c2cUnreadCount:this._c2cUnreadCount,groupUnreadCount:this._groupUnreadCount,isWebUniapp:this._isWebUniapp}}).then((function(r){return n.setMessage("c2cUnreadCount: ".concat(e._c2cUnreadCount,", groupUnreadCount: ").concat(e._groupUnreadCount)).end(),Fe.l("".concat(t," ok")),r})).catch((function(r){e.probeNetwork().then((function(e){var t=_(e,2),o=t[0],a=t[1];n.setError(r,o,a).end()})),Fe.e("".concat(t," failed. error:"),r)}))}},{key:"_onForeground",value:function(){var e=this,t="".concat(this._n,".").concat("_onForeground"),n=new Ta("_onForeground");this.request({protocolName:la,requestData:{isWebUniapp:this._isWebUniapp}}).then((function(e){return n.end(),Fe.l("".concat(t," ok")),e})).catch((function(r){e.probeNetwork().then((function(e){var t=_(e,2),o=t[0],a=t[1];n.setError(r,o,a).end()})),Fe.e("".concat(t," failed. error:"),r)}))}},{key:"getUniAppPlatform",value:function(){var e=uni.getSystemInfoSync().platform,t=this.getDeviceBrand();return"ios"===e?D.IOS:"android"===e?D.ANDROID:1002===t?D.IPAD:1001===t?D.MAC:void 0}},{key:"reset",value:function(){this._deviceToken="",this._businessID=0,this._c2cUnreadCount=0,this._groupUnreadCount=0,this._isWebUniapp=0,Fe.l("".concat(this._n,".reset"))}}]),n}(sr),ic=function(e){c(n,e);var t=g(n);function n(e){var r;return o(this,n),(r=t.call(this,e))._n="ProfanityFilterModule",r._plugin=null,r._filterConfigMap=new Map,r._startIndex=0,r._version=0,r._canIUseLexicon=!1,r._isFetching=!1,r._expiredTime=0,r}return i(n,[{key:"init",value:function(){var e=this.getModule(qn).getPlugin("tim-profanity-filter-plugin");e?(this._plugin=new e({logger:Fe,isArray:at,isMap:Xe,isDevMode:this.isDevMode()}),this._getLexicon()):this.outputWarning("ProfanityPluginNotFound")}},{key:"onCheckTimer",value:function(){this._plugin&&this._canIUseLexicon&&this.isLoggedIn()&&!this._isFetching&&Date.now()>=this._expiredTime&&this._getLexicon()}},{key:"filterMessage",value:function(e,t){var n=!0;if(!this._plugin||!this._canIUseLexicon)return n;if(t&&t.messageControlInfo&&!0===t.messageControlInfo.excludedFromContentModeration)return n;var r=e.type,o=e.conversationType;if(r!==S.MSG_TEXT&&r!==S.MSG_CUSTOM)return n;var a,i="".concat(this._n,".filterMessage");if(Fe.l("".concat(i)),r===S.MSG_TEXT){if(o===S.CONV_C2C?a=H:o===S.CONV_GROUP&&(a=q),!this._isConfigOn(a))return n;var s=this._plugin.filter(e.payload.text),c=s.type,l=s.modifiedText;1===c?n=!1:2===c&&(e.payload.text=l)}else if(r===S.MSG_CUSTOM){if(o===S.CONV_C2C?a=Y:o===S.CONV_GROUP&&(a=W),!this._isConfigOn(a))return n;var u=this._plugin.filter(e.payload.data),d=this._plugin.filter(e.payload.description),p=this._plugin.filter(e.payload.extension);1===u.type||1===d.type||1===p.type?n=!1:(2===u.type&&(e.payload.data=u.modifiedText),2===d.type&&(e.payload.description=d.modifiedText),2===p.type&&(e.payload.extension=p.modifiedText))}return Fe.l("".concat(i," done. isAllowedToSend:").concat(n)),n}},{key:"filterText",value:function(e,t){var n="".concat(this._n,".filterText"),r={isAllowedToSend:!0,modifiedText:e};if(!this._plugin||!this._canIUseLexicon)return r;if(!this._isConfigOn(t))return r;Fe.l("".concat(n));var o=this._plugin.filter(e),a=o.type,i=o.modifiedText;return 1===a?r.isAllowedToSend=!1:2===a&&(r.modifiedText=i),Fe.l("".concat(n," done. ret:"),r),r}},{key:"_getLexicon",value:function(){var e=this,t=new Ta("profanityFilter"),n="".concat(this._n,"._getLexicon");this._isFetching=!0,this.request({protocolName:da,requestData:{startIndex:this._startIndex,version:this._version}}).then((function(r){var o=r.data,a=o.errorInfo,i=o.filterConfig,s=o.lexicon,c=o.strToken,l=o.completeFlag,u=o.nextStartIndex,d=o.version,p=o.expiredTime,f=a.errorCode,h=a.errorMessage;return 0!==f?(e._isFetching=!1,Fe.w("".concat(n," failed. error:"),a),void t.setCode(f).setMessage(h).end()):(e._onFilterConfig(i),e._getToken(c),1===l?(Fe.l("".concat(n," done. version:").concat(d," expiredTime:").concat(p)),e._version=d,e._canIUseLexicon=!0,e._isFetching=!1,e._expiredTime=Date.now()+1e3*p,void e._plugin.onLexiconCompleted(s)):(e._startIndex=u,e._plugin.onLexiconSliced(s),void e._getLexicon()))})).catch((function(r){e.probeNetwork().then((function(e){var n=_(e,2),o=n[0],a=n[1];t.setError(r,o,a).end()})),e._isFetching=!1,Fe.l("".concat(n," failed. error:"),r)}))}},{key:"_onFilterConfig",value:function(e){var t=this;Kt(e)||(this._filterConfigMap.clear(),Object.keys(e).forEach((function(n){t._filterConfigMap.set(n,e[n])})),Fe.l("".concat(this._n,"._onFilterConfig. keys:").concat(Array.from(this._filterConfigMap.keys())," values:").concat(Array.from(this._filterConfigMap.values()))))}},{key:"_isConfigOn",value:function(e){return 1===this._filterConfigMap.get(e)}},{key:"_getToken",value:function(e){if(nt(e)){var t=e.length,n="";if(t%2==0)for(var r=0;r<=t-1;r+=2)n+=e[r+1],n+=e[r];else{for(var o=0;o<t-1;o+=2)n+=e[o+1],n+=e[o];n+=e[t-1]}this._plugin.onToken(n)}}},{key:"reset",value:function(){Fe.l("".concat(this._n,".reset")),this._plugin&&(this._plugin.reset(),this._plugin=null),this._filterConfigMap.clear(),this._startIndex=0,this._version=0,this._canIUseLexicon=!1,this._isFetching=!1,this._expiredTime=0}}]),n}(sr),sc=function(){function e(t){o(this,e),this._m=t,this._n="TransCmdModule"}return i(e,[{key:"sendTRTCCustomData",value:function(e){return this._trans(n({serv:G.NAME.TUIROOM_SVR},e))}},{key:"_trans",value:function(e){Fe.d("".concat(this._n,"._trans. options:").concat(JSON.stringify(e)));var t=e.serv,n=e.data;return this._m.getModule(Kn).trans({servcmd:"".concat(t,".*"),data:nt(n)?JSON.parse(n):n})}},{key:"reset",value:function(){Fe.l("".concat(this._n,".reset"))}}]),e}(),cc=function(){function e(t){o(this,e),this._m=t,this._n="ErrorMessageModule",this.TIM_ERROR_ASSISTANCE="tim_error_assistance",this.STORAGE_EXPIRES_TIME=6048e5,this._map=new Map,this._init()}return i(e,[{key:"_init",value:function(){var e=this._getStorageModule().getItem(this.TIM_ERROR_ASSISTANCE,!1);if(e){var t=JSON.parse(e);this._needToUpdate(t)?this._fetch():this._fillMap(t.message)}else this._fetch()}},{key:"_needToUpdate",value:function(e){var t=e.localSavedTime,n=e.localSavedVersion,r=t&&(new Date).getTime()-t>=this.STORAGE_EXPIRES_TIME,o=!n||"2.27.1"!==n;return Fe.l("".concat(this._n,"._needToUpdate isTimeout:").concat(r," isDifferentVersion:").concat(o)),r||o}},{key:"_fetch",value:function(){if(!this._m.getModule(Bn).isPrivateNetWork()){var e="https://web.sdk.qcloud.com/im/download/error-message/0.0.1/tim-error-message.txt",t="application/x-www-form-urlencoded;charset=UTF-8",n="".concat(this._n,"._fetch ok in"),r=this;if(ae)se.request({url:e,method:"GET",timeout:3e3,header:{"content-type":t},dataType:"text",success:function(e){r._fillAndSave(e.data),Fe.l("".concat(n," mini program"))},fail:function(){}});else{var o=new XMLHttpRequest,a=setTimeout((function(){o.abort()}),3e3);o.onreadystatechange=function(){4===o.readyState&&(clearTimeout(a),200!==o.status&&304!==o.status||(Fe.l("".concat(n," browser")),r._fillAndSave(o.responseText)))},o.open("GET",e,!0),o.setRequestHeader("Content-type",t),o.send()}}}},{key:"_fillAndSave",value:function(e){this._fillMap(e),this._getStorageModule().setItem(this.TIM_ERROR_ASSISTANCE,JSON.stringify({message:e,localSavedTime:(new Date).getTime(),localSavedVersion:"2.27.1"}),!0,!1)}},{key:"_getStorageModule",value:function(){return this._m.getModule(Fn)}},{key:"_fillMap",value:function(e){this._map.clear();for(var t,n,r,o=e.split(";\n"),a=o.length,i=new RegExp(/'/g),s=0;s<a;s++)if(t=o[s].indexOf(":"),n=o[s].slice(0,t),r=o[s].slice(t+1,o[s].length),!n.startsWith("//")){if(it(r))continue;this._map.set(n,r.replace(i,""))}}},{key:"get",value:function(e){var t=e.isIntl,n=e.key,r=e.replacement1,o=e.replacement2,a="".concat(n,t?"_en":"_cn");!this._map.has(a)&&this._map.has(n)&&(a=n);var i="";return this._map.has(a)?(i=this._map.get(a),it(r)||(i=i.replace("$replacement1",r)),it(o)||(i=i.replace("$replacement2",o)),i):i}},{key:"reset",value:function(){Fe.l("".concat(this._n,".reset"))}}]),e}(),lc=function(){function e(t){o(this,e);var n=new Ta("sdkConstruct");this._n="ModuleManager",this._isReady=!1,this._reason=fa.USER_NOT_LOGGED_IN,this._startLoginTs=0,this._moduleMap=new Map,this._innerEmitter=null,this._outerEmitter=null,this._checkCount=0,this._checkTimer=-1,this._moduleMap.set(Bn,new Qi(this,t)),this._moduleMap.set(tr,new oc(this)),this._moduleMap.set(Qn,new $s(this)),this._moduleMap.set(Xn,new nc(this)),this._moduleMap.set(er,new tc(this)),this._moduleMap.set($n,new Bs(this)),this._moduleMap.set(Kn,new Ws(this)),this._moduleMap.set(jn,new Xi(this)),this._moduleMap.set(Dn,new gs(this)),this._moduleMap.set(Ln,new _s(this)),this._moduleMap.set(ar,new ys(this)),this._moduleMap.set(An,new Ji(this)),this._moduleMap.set(Nn,new Qa(this)),this._moduleMap.set(Vn,new _i(this)),this._moduleMap.set(xn,new Ui(this)),this._moduleMap.set(Pn,new Bi(this)),this._moduleMap.set(Un,new Hi(this)),this._moduleMap.set(Fn,new es(this)),this._moduleMap.set(ir,new cc(this)),this._moduleMap.set(Gn,new rs(this)),this._moduleMap.set(zn,new ss(this)),this._moduleMap.set(Hn,new ls(this)),this._moduleMap.set(Yn,new ds(this)),this._moduleMap.set(qn,new bs(this)),this._moduleMap.set(Wn,new Os(this)),this._moduleMap.set(Jn,new Ks(this)),this._moduleMap.set(Zn,new Js(this)),this._moduleMap.set(nr,new ac(this)),this._moduleMap.set(rr,new ic(this)),this._moduleMap.set(or,new sc(this)),this._eventThrottleMap=new Map;var r=t.instanceID,a=t.oversea,i=t.SDKAppID,s="instanceID:".concat(r," SDKAppID:").concat(i," host:").concat(Lt()," oversea:").concat(a," inBrowser:").concat(ie," inMiniApp:").concat(ae)+" workerAvailable:".concat(Se," UserAgent:").concat(ce);Ta.bindEventStatModule(this._moduleMap.get(Gn)),n.setMessage("".concat(s," ").concat(function(){var e="";if(ae)try{var t=se.getSystemInfoSync(),n=t.model,r=t.version,o=t.system,a=t.platform,i=t.SDKVersion;e="model:".concat(n," version:").concat(r," system:").concat(o," platform:").concat(a," SDKVersion:").concat(i)}catch(s){e=""}return e}())).end(),Fe.i("SDK ".concat(s)),qa.prototype._getErrorMessage=this.getErrorMessage.bind(this),this._readyList=void 0,this._ssoLogForReady=null,this._initReadyList()}return i(e,[{key:"_startTimer",value:function(){var e=this._moduleMap.get(Xn),t=e.isWorkerEnabled();Fe.l("".concat(this._n,".startTimer isWorkerEnabled:").concat(t," seed:").concat(this._checkTimer)),t?e.startWorkerTimer():this._startMainThreadTimer()}},{key:"_startMainThreadTimer",value:function(){this._checkTimer<0&&(this._checkTimer=setInterval(this.onCheckTimer.bind(this),1e3)),Fe.l("".concat(this._n,"._startMainThreadTimer seed:").concat(this._checkTimer))}},{key:"stopTimer",value:function(){var e=this._moduleMap.get(Xn),t=e.isWorkerEnabled();Fe.l("".concat(this._n,".stopTimer isWorkerEnabled:").concat(t," seed:").concat(this._checkTimer)),t?e.stopWorkerTimer():this._stopMainThreadTimer()}},{key:"_stopMainThreadTimer",value:function(){Fe.l("".concat(this._n,"._stopMainThreadTimer")),this._checkTimer>0&&(clearInterval(this._checkTimer),this._checkTimer=-1,this._checkCount=0)}},{key:"_stopMainThreadSocket",value:function(){Fe.l("".concat(this._n,"._stopMainThreadSocket"));var e=this._moduleMap.get($n);e.setIsWorkerEnabled(!0),e.reConnect()}},{key:"_startMainThreadSocket",value:function(){Fe.l("".concat(this._n,"._startMainThreadSocket"));var e=this._moduleMap.get($n);e.setIsWorkerEnabled(!1),e.reConnect()}},{key:"onWorkerTimerEnabled",value:function(){Fe.l("".concat(this._n,".onWorkerTimerEnabled, disable main thread timer and socket")),this._stopMainThreadTimer(),this._stopMainThreadSocket()}},{key:"onWorkerTimerDisabled",value:function(){Fe.l("".concat(this._n,".onWorkerTimerDisabled, enable main thread timer and socket")),this._startMainThreadTimer(),this._startMainThreadSocket()}},{key:"onCheckTimer",value:function(){this._checkCount+=1;var e,t=w(this._moduleMap);try{for(t.s();!(e=t.n()).done;){var n=_(e.value,2)[1];n.onCheckTimer&&n.onCheckTimer(this._checkCount)}}catch(o){t.e(o)}finally{t.f()}}},{key:"_initReadyList",value:function(){var e=this;this._readyList=[this._moduleMap.get(jn),this._moduleMap.get(Vn)],this._readyList.forEach((function(t){t.ready((function(){return e._onModuleReady()}))}))}},{key:"_onModuleReady",value:function(){var e=!0;if(this._readyList.forEach((function(t){t.isReady()||(e=!1)})),e&&!this._isReady){this._isReady=!0,this._outerEmitter.emit(I.SDK_READY);var t=Date.now()-this._startLoginTs;Fe.w("SDK is ready. cost ".concat(t," ms")),this._startLoginTs=Date.now();var n=this._moduleMap.get(zn).getNetworkType(),r=this._ssoLogForReady.getStartTs()+Ne;this._ssoLogForReady.setNetworkType(n).setMessage(t).start(r).end()}}},{key:"login",value:function(){0===this._startLoginTs&&(Re(),this._startLoginTs=Date.now(),this._startTimer(),this._moduleMap.get(zn).start(),this._ssoLogForReady=new Ta("sdkReady"),this._reason=fa.LOGGING_IN)}},{key:"onLoginFailed",value:function(){this._startLoginTs=0}},{key:"getOuterEmitterInstance",value:function(){return null===this._outerEmitter&&(this._outerEmitter=new cs,Ka(this._outerEmitter),this._outerEmitter._emit=this._outerEmitter.emit,this._outerEmitter.emit=function(e,t){var n=this;if(e===I.CONVERSATION_LIST_UPDATED||e===I.FRIEND_LIST_UPDATED||e===I.GROUP_LIST_UPDATED||e===I.TOTAL_UNREAD_MESSAGE_COUNT_UPDATED)if(this._eventThrottleMap.has(e)){var r=Date.now(),o=this._eventThrottleMap.get(e);r-o.last<=1e3?(o.timeoutID&&clearTimeout(o.timeoutID),o.timeoutID=setTimeout((function(){o.last=Date.now(),n._outerEmitter._emit.apply(n._outerEmitter,[e,{name:e,data:n._getEventData(e)}])}),1e3)):(o.last=r,this._outerEmitter._emit.apply(this._outerEmitter,[e,{name:e,data:this._getEventData(e)}]))}else this._eventThrottleMap.set(e,{last:Date.now(),timeoutID:-1}),this._outerEmitter._emit.apply(this._outerEmitter,[e,{name:e,data:this._getEventData(e)}]);else this._outerEmitter._emit.apply(this._outerEmitter,[e,{name:e,data:arguments[1]}])}.bind(this)),this._outerEmitter}},{key:"_getEventData",value:function(e){return e===I.CONVERSATION_LIST_UPDATED?this._moduleMap.get(Vn).getLocalConversationList():e===I.FRIEND_LIST_UPDATED?this._moduleMap.get(Rn).getLocalFriendList(!1):e===I.GROUP_LIST_UPDATED?this._moduleMap.get(xn).getLocalGroupList():e===I.TOTAL_UNREAD_MESSAGE_COUNT_UPDATED?this._moduleMap.get(Vn).getTotalUnreadMessageCount():void 0}},{key:"getInnerEmitterInstance",value:function(){return null===this._innerEmitter&&(this._innerEmitter=new cs,this._innerEmitter._emit=this._innerEmitter.emit,this._innerEmitter.emit=function(e,t){var n;n=ot(arguments[1])&&arguments[1].data?[e,{name:arguments[0],data:arguments[1].data}]:[e,{name:arguments[0],data:arguments[1]}],this._innerEmitter._emit.apply(this._innerEmitter,n)}.bind(this)),this._innerEmitter}},{key:"hasModule",value:function(e){return this._moduleMap.has(e)}},{key:"getModule",value:function(e){return this._moduleMap.get(e)}},{key:"isReady",value:function(){return this._isReady}},{key:"isIntl",value:function(){return this.getModule(Bn).isIntl()}},{key:"getNotReadyReason",value:function(){return this._reason}},{key:"setNotReadyReason",value:function(e){this._reason=e}},{key:"getErrorMessage",value:function(e,t,n){return this._moduleMap.get(ir).get({key:e,replacement1:t,replacement2:n,isIntl:this.isIntl()})}},{key:"outputWarning",value:function(e,t,n){var r=this.getErrorMessage(e,t,n);r&&Fe.w(r)}},{key:"onError",value:function(e){var t="code:".concat(e.code," message:").concat(e.message);Fe.w("Oops! ".concat(t)),new Ta("error").setMessage(t).setNetworkType(this.getModule(zn).getNetworkType()).setLevel("error").end(),this.getOuterEmitterInstance().emit(I.ERROR,e)}},{key:"restartTimer",value:function(){Fe.l("".concat(this._n,".restartTimer")),this.stopTimer(),this._startTimer(),this.getModule(xn).restartPolling()}},{key:"getTimerID",value:function(){var e=this._moduleMap.get(Xn);return e.isWorkerEnabled()?e.getTimerID():this._checkTimer}},{key:"reset",value:function(){Fe.l("".concat(this._n,".reset")),Re();var e,t=w(this._moduleMap);try{for(t.s();!(e=t.n()).done;){var n=_(e.value,2)[1];n.reset&&n.reset()}}catch(s){t.e(s)}finally{t.f()}this._startLoginTs=0,this._initReadyList(),this._isReady=!1,this.stopTimer(),this._outerEmitter.emit(I.SDK_NOT_READY);var r,o=w(this._eventThrottleMap);try{for(o.s();!(r=o.n()).done;){var a=_(r.value,2)[1];a.timeoutID&&clearTimeout(a.timeoutID)}}catch(s){o.e(s)}finally{o.f()}this._eventThrottleMap.clear()}}]),e}(),uc=function(){function e(t){o(this,e),this._funcMap=new Map,this._m=t}return i(e,[{key:"defense",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if("string"!=typeof e)return null;if(0===e.length)return null;if("function"!=typeof t)return null;if(this._funcMap.has(e)&&this._funcMap.get(e).has(t))return this._funcMap.get(e).get(t);this._funcMap.has(e)||this._funcMap.set(e,new Map);var r=null;return this._funcMap.get(e).has(t)?r=this._funcMap.get(e).get(t):(r=this._pack(e,t,n),this._funcMap.get(e).set(t,r)),r}},{key:"defenseOnce",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return"function"!=typeof t?null:this._pack(e,t,n)}},{key:"find",value:function(e,t){return"string"!=typeof e||0===e.length||"function"!=typeof t?null:this._funcMap.has(e)&&this._funcMap.get(e).has(t)?this._funcMap.get(e).get(t):(this._m.outputWarning("ListenerFnNotFound",e),null)}},{key:"delete",value:function(e,t){return"function"==typeof t&&!!this._funcMap.has(e)&&!!this._funcMap.get(e).has(t)&&(this._funcMap.get(e).delete(t),0===this._funcMap.get(e).size&&this._funcMap.delete(e),!0)}},{key:"_pack",value:function(e,t,n){var r=this;return function(){try{t.apply(n,Array.from(arguments))}catch(l){var o=Object.values(I).indexOf(e),a="CallbackError";if(-1!==o){var i=Object.keys(I)[o];r._m.outputWarning(a,i,l)}var s=new Ta(a);s.setMessage("eventName:".concat(e)).setMoreMessage(l.message).end()}}}}]),e}(),dc=function(){function e(t){o(this,e);var n={SDKAppID:t.SDKAppID,unlimitedAVChatRoom:t.unlimitedAVChatRoom||!1,scene:t.scene||"",oversea:t.oversea||!1,instanceID:Dt(),devMode:t.devMode||!1,proxyServer:t.proxyServer||void 0,fileUploadProxy:t.fileUploadProxy||void 0,fileDownloadProxy:t.fileDownloadProxy||t.fileUploadProxy||void 0};this._m=new lc(n),this._safetyCallbackFactory=new uc(this._m)}return i(e,[{key:"onError",value:function(e){this._m.onError(e)}},{key:"login",value:function(e){return this._m.login(),this._getModule(jn).login(e)}},{key:"logout",value:function(){var e=this;return this._getModule(jn).logout().then((function(t){return e._m.reset(),t}))}},{key:"isReady",value:function(){return this._m.isReady()}},{key:"isIntl",value:function(){return this._m.isIntl()}},{key:"getNotReadyReason",value:function(){return this._m.getNotReadyReason()}},{key:"getErrorMessage",value:function(e,t,n){return this._m.getErrorMessage(e,t,n)}},{key:"_getModule",value:function(e){return this._m.getModule(e)}},{key:"destroy",value:function(){var e=this;return this.logout().finally((function(){e._m.stopTimer(),e._getModule(Xn).terminate(),e._getModule($n).dealloc();var t=e._m.getOuterEmitterInstance(),n=e._getModule(Bn);t.emit(I.SDK_DESTROY,{SDKAppID:n.getSDKAppID()})}))}},{key:"on",value:function(e,t,n){Fe.d("on","eventName:".concat(e)),this._m.getOuterEmitterInstance().on(e,this._safetyCallbackFactory.defense(e,t,n),n)}},{key:"once",value:function(e,t,n){Fe.d("once","eventName:".concat(e)),this._m.getOuterEmitterInstance().once(e,this._safetyCallbackFactory.defenseOnce(e,t,n),n||this)}},{key:"off",value:function(e,t,n,r){Fe.d("off","eventName:".concat(e));var o=this._safetyCallbackFactory.find(e,t);null!==o&&(this._m.getOuterEmitterInstance().off(e,o,n,r),this._safetyCallbackFactory.delete(e,t))}},{key:"registerPlugin",value:function(e){it(e["tim-offline-push-plugin"])?this._getModule(qn).registerPlugin(e):this._getModule(nr).registerPlugin(e)}},{key:"setLogLevel",value:function(e){if(e<=0){var t=this.getErrorMessage("TIM_ASCII_ART");t&&console.log(t);var n=this.getErrorMessage("API_REFER");n&&(Ht()?console.log("%c ".concat("IM SDK API ->"," %c"),"background:#ff9d00; padding:1px; border-radius:3px; color: #fff","background:transparent",n):console.log("IM SDK API ->",n));var r=this.getErrorMessage("DOCS_GUIDE");r&&console.log(r)}Fe.setLevel(e)}},{key:"createTextMessage",value:function(e){return this._getModule(Dn).createTextMessage(e)}},{key:"createTextAtMessage",value:function(e){return this._getModule(Dn).createTextMessage(e)}},{key:"createImageMessage",value:function(e){return this._getModule(Dn).createImageMessage(e)}},{key:"createAudioMessage",value:function(e){return this._getModule(Dn).createAudioMessage(e)}},{key:"createVideoMessage",value:function(e){return this._getModule(Dn).createVideoMessage(e)}},{key:"createCustomMessage",value:function(e){return this._getModule(Dn).createCustomMessage(e)}},{key:"createFaceMessage",value:function(e){return this._getModule(Dn).createFaceMessage(e)}},{key:"createFileMessage",value:function(e){return this._getModule(Dn).createFileMessage(e)}},{key:"createLocationMessage",value:function(e){return this._getModule(Dn).createLocationMessage(e)}},{key:"createMergerMessage",value:function(e){return this._getModule(Dn).createMergerMessage(e)}},{key:"downloadMergerMessage",value:function(e){return e.type!==S.MSG_MERGER?Ja({code:fa.MESSAGE_MERGER_TYPE_INVALID}):Kt(e.payload.downloadKey)?Ja({code:fa.MESSAGE_MERGER_KEY_INVALID}):this._getModule(Dn).downloadMergerMessage(e).catch((function(e){return Ja({code:fa.MESSAGE_MERGER_DOWNLOAD_FAIL})}))}},{key:"createForwardMessage",value:function(e){return this._getModule(Dn).createForwardMessage(e)}},{key:"sendMessage",value:function(e,t){return e instanceof Ha?this._getModule(Dn).sendMessageInstance(e,t):Ja({code:fa.MESSAGE_SEND_NEED_MESSAGE_INSTANCE})}},{key:"callExperimentalAPI",value:function(e,t){return"sendComboMessage"===e?this._getModule(ar).sendMessage(t):"handleGroupInvitation"===e?this._getModule(xn).handleGroupInvitation(t):"isCommercialAbilityEnabled"===e?this._getModule(tr).isFeatureEnabled(t):"isIntl"===e?this.isIntl():"sendTRTCCustomData"===e?this._getModule(or).sendTRTCCustomData(t):"getTimerID"===e?this._m.getTimerID():Ja({code:fa.INVALID_OPERATION})}},{key:"revokeMessage",value:function(e){return this._getModule(Dn).revokeMessage(e)}},{key:"resendMessage",value:function(e){return this._getModule(Dn).resendMessage(e)}},{key:"deleteMessage",value:function(e){return this._getModule(Dn).deleteMessage(e)}},{key:"translateText",value:function(e){return this._getModule(Dn).translateText(e)}},{key:"setMessageExtensions",value:function(e,t){return this._getModule(Ln).setMessageExtensions(e,t)}},{key:"getMessageExtensions",value:function(e){return this._getModule(Ln).getMessageExtensions(e)}},{key:"deleteMessageExtensions",value:function(e,t){return this._getModule(Ln).deleteMessageExtensions(e,t)}},{key:"modifyMessage",value:function(e){return this._getModule(Dn).modifyRemoteMessage(e)}},{key:"getMessageList",value:function(e){return this._getModule(Vn).getMessageList(e)}},{key:"getMessageListHopping",value:function(e){return this._getModule(Vn).getMessageListHopping(e)}},{key:"sendMessageReadReceipt",value:function(e){return this._getModule(Vn).sendReadReceipt(e)}},{key:"getMessageReadReceiptList",value:function(e){return this._getModule(Vn).getReadReceiptList(e)}},{key:"getGroupMessageReadMemberList",value:function(e){return this._getModule(xn).getReadReceiptDetail(e)}},{key:"findMessage",value:function(e){return this._getModule(Vn).findMessage(e)}},{key:"setMessageRead",value:function(e){return this._getModule(Vn).setMessageRead(e)}},{key:"getConversationList",value:function(e){return this._getModule(Vn).getConversationList(e)}},{key:"getConversationProfile",value:function(e){return this._getModule(Vn).getConversationProfile(e)}},{key:"deleteConversation",value:function(e){return this._getModule(Vn).deleteConversation(e)}},{key:"clearHistoryMessage",value:function(e){return this._getModule(Vn).clearHistoryMessage(e)}},{key:"pinConversation",value:function(e){return this._getModule(Vn).pinConversation(e)}},{key:"setAllMessageRead",value:function(e){return this._getModule(Vn).setAllMessageRead(e)}},{key:"setMessageRemindType",value:function(e){return this._getModule(Vn).setMessageRemindType(e)}},{key:"getTotalUnreadMessageCount",value:function(){return this._getModule(Vn).getTotalUnreadMessageCount()}},{key:"setConversationCustomData",value:function(e){return this._getModule(Vn).setConversationCustomData(e)}},{key:"markConversation",value:function(e){return this._getModule(Vn).markConversation(e)}},{key:"getConversationGroupList",value:function(){return this._getModule(Vn).getConversationGroupList()}},{key:"createConversationGroup",value:function(e){return this._getModule(Vn).createConversationGroup(e)}},{key:"deleteConversationGroup",value:function(e){return this._getModule(Vn).deleteConversationGroup(e)}},{key:"renameConversationGroup",value:function(e){return this._getModule(Vn).renameConversationGroup(e)}},{key:"addConversationsToGroup",value:function(e){return this._getModule(Vn).addConversationsToGroup(e)}},{key:"deleteConversationsFromGroup",value:function(e){return this._getModule(Vn).deleteConversationsFromGroup(e)}},{key:"getMyProfile",value:function(){return this._getModule(An).getMyProfile()}},{key:"getUserProfile",value:function(e){return this._getModule(An).getUserProfile(e)}},{key:"updateMyProfile",value:function(e){return this._getModule(An).updateMyProfile(e)}},{key:"getBlacklist",value:function(){return this._getModule(An).getLocalBlacklist()}},{key:"addToBlacklist",value:function(e){return this._getModule(An).addBlacklist(e)}},{key:"removeFromBlacklist",value:function(e){return this._getModule(An).deleteBlacklist(e)}},{key:"setSelfStatus",value:function(e){return this._getModule(An).setSelfStatus(e)}},{key:"getUserStatus",value:function(e){return this._getModule(An).getUserStatus(e)}},{key:"subscribeUserStatus",value:function(e){return this._getModule(An).subscribeUserStatus(e)}},{key:"unsubscribeUserStatus",value:function(e){return this._getModule(An).unsubscribeUserStatus(e)}},{key:"getFriendList",value:function(){var e=this._getModule(Rn);return e?e.getLocalFriendList():Ja({code:fa.CANNOT_FIND_MODULE})}},{key:"addFriend",value:function(e){var t=this._getModule(Rn);return t?t.addFriend(e):Ja({code:fa.CANNOT_FIND_MODULE})}},{key:"deleteFriend",value:function(e){var t=this._getModule(Rn);return t?t.deleteFriend(e):Ja({code:fa.CANNOT_FIND_MODULE})}},{key:"checkFriend",value:function(e){var t=this._getModule(Rn);return t?t.checkFriend(e):Ja({code:fa.CANNOT_FIND_MODULE})}},{key:"getFriendProfile",value:function(e){var t=this._getModule(Rn);return t?t.getFriendProfile(e):Ja({code:fa.CANNOT_FIND_MODULE})}},{key:"updateFriend",value:function(e){var t=this._getModule(Rn);return t?t.updateFriend(e):Ja({code:fa.CANNOT_FIND_MODULE})}},{key:"getFriendApplicationList",value:function(){var e=this._getModule(Rn);return e?e.getLocalFriendApplicationList():Ja({code:fa.CANNOT_FIND_MODULE})}},{key:"acceptFriendApplication",value:function(e){var t=this._getModule(Rn);return t?t.acceptFriendApplication(e):Ja({code:fa.CANNOT_FIND_MODULE})}},{key:"refuseFriendApplication",value:function(e){var t=this._getModule(Rn);return t?t.refuseFriendApplication(e):Ja({code:fa.CANNOT_FIND_MODULE})}},{key:"deleteFriendApplication",value:function(e){var t=this._getModule(Rn);return t?t.deleteFriendApplication(e):Ja({code:fa.CANNOT_FIND_MODULE})}},{key:"setFriendApplicationRead",value:function(){var e=this._getModule(Rn);return e?e.setFriendApplicationRead():Ja({code:fa.CANNOT_FIND_MODULE})}},{key:"getFriendGroupList",value:function(){var e=this._getModule(Rn);return e?e.getLocalFriendGroupList():Ja({code:fa.CANNOT_FIND_MODULE})}},{key:"createFriendGroup",value:function(e){var t=this._getModule(Rn);return t?t.createFriendGroup(e):Ja({code:fa.CANNOT_FIND_MODULE})}},{key:"deleteFriendGroup",value:function(e){var t=this._getModule(Rn);return t?t.deleteFriendGroup(e):Ja({code:fa.CANNOT_FIND_MODULE})}},{key:"addToFriendGroup",value:function(e){var t=this._getModule(Rn);return t?t.addToFriendGroup(e):Ja({code:fa.CANNOT_FIND_MODULE})}},{key:"removeFromFriendGroup",value:function(e){var t=this._getModule(Rn);return t?t.removeFromFriendGroup(e):Ja({code:fa.CANNOT_FIND_MODULE})}},{key:"renameFriendGroup",value:function(e){var t=this._getModule(Rn);return t?t.renameFriendGroup(e):Ja({code:fa.CANNOT_FIND_MODULE})}},{key:"getGroupList",value:function(e){return this._getModule(xn).getGroupList(e)}},{key:"getGroupProfile",value:function(e){return this._getModule(xn).getGroupProfile(e)}},{key:"createGroup",value:function(e){return this._getModule(xn).createGroup(e)}},{key:"dismissGroup",value:function(e){return this._getModule(xn).dismissGroup(e)}},{key:"updateGroupProfile",value:function(e){return this._getModule(xn).updateGroupProfile(e)}},{key:"joinGroup",value:function(e){return this._getModule(xn).joinGroup(e)}},{key:"quitGroup",value:function(e){return this._getModule(xn).quitGroup(e)}},{key:"searchGroupByID",value:function(e){return this._getModule(xn).searchGroupByID(e)}},{key:"getGroupOnlineMemberCount",value:function(e){return this._getModule(xn).getGroupOnlineMemberCount(e)}},{key:"changeGroupOwner",value:function(e){return this._getModule(xn).changeGroupOwner(e)}},{key:"getGroupApplicationList",value:function(){return this._getModule(xn).getGroupApplicationList()}},{key:"handleGroupApplication",value:function(e){return this._getModule(xn).handleGroupApplication(e)}},{key:"initGroupAttributes",value:function(e){return this._getModule(xn).initGroupAttributes(e)}},{key:"setGroupAttributes",value:function(e){return this._getModule(xn).setGroupAttributes(e)}},{key:"deleteGroupAttributes",value:function(e){return this._getModule(xn).deleteGroupAttributes(e)}},{key:"getGroupAttributes",value:function(e){return this._getModule(xn).getGroupAttributes(e)}},{key:"setGroupCounters",value:function(e){return this._getModule(xn).setGroupCounters(e)}},{key:"increaseGroupCounter",value:function(e){return this._getModule(xn).increaseGroupCounter(e)}},{key:"decreaseGroupCounter",value:function(e){return this._getModule(xn).decreaseGroupCounter(e)}},{key:"getGroupCounters",value:function(e){return this._getModule(xn).getGroupCounters(e)}},{key:"getGroupMemberList",value:function(e){return this._getModule(Pn).getGroupMemberList(e)}},{key:"getGroupMemberProfile",value:function(e){return this._getModule(Pn).getGroupMemberProfile(e)}},{key:"addGroupMember",value:function(e){return this._getModule(Pn).addGroupMember(e)}},{key:"deleteGroupMember",value:function(e){return this._getModule(Pn).deleteGroupMember(e)}},{key:"setGroupMemberMuteTime",value:function(e){return this._getModule(Pn).setGroupMemberMuteTime(e)}},{key:"setGroupMemberRole",value:function(e){return this._getModule(Pn).setGroupMemberRole(e)}},{key:"setGroupMemberNameCard",value:function(e){return this._getModule(Pn).setGroupMemberNameCard(e)}},{key:"setGroupMemberCustomField",value:function(e){return this._getModule(Pn).setGroupMemberCustomField(e)}},{key:"markGroupMemberList",value:function(e){return this._getModule(Pn).markGroupMemberList(e)}},{key:"getJoinedCommunityList",value:function(){return this._getModule(Un).getJoinedCommunityList()}},{key:"createTopicInCommunity",value:function(e){return this._getModule(Un).createTopicInCommunity(e)}},{key:"deleteTopicFromCommunity",value:function(e){return this._getModule(Un).deleteTopicFromCommunity(e)}},{key:"updateTopicProfile",value:function(e){return this._getModule(Un).updateTopicProfile(e)}},{key:"getTopicList",value:function(e){return this._getModule(Un).getTopicList(e)}}]),e}(),pc={login:1,logout:1,destroy:1,on:1,off:1,ready:1,setLogLevel:1,joinGroup:1,quitGroup:1,registerPlugin:1,getGroupOnlineMemberCount:1};function fc(e,t){if(e.isReady()||1===pc[t])return!0;var n=e.getNotReadyReason(),r={code:n,message:"".concat(e.getErrorMessage(n)," | ").concat(t," | ").concat(e.getErrorMessage(fa.SDK_IS_NOT_READY))};return e.onError(r),r}var hc={},mc={create:function(e){var t=0,r=e.SDKAppID;if(et(r))t=r;else if(t=parseInt(r),isNaN(r))return Fe.e("".concat("TIM.create"," failed. Failed to parse the SDKAppID, please check the arguments")),null;if(t&&hc[t])return hc[t];Fe.l("".concat("TIM.create"));var o=new dc(n(n({},e),{},{SDKAppID:t}));o.on(I.SDK_DESTROY,(function(e){hc[e.data.SDKAppID]=null,delete hc[e.data.SDKAppID]}));var a=function(e){var t=Object.create(null);return Object.keys(En).forEach((function(n){if(e[n]){var r=new T;t[n]=function(){var t=Array.from(arguments);return r.use((function(t,r){var o=fc(e,n);return!0===o?r():Ja(o)})).use((function(e,t){if(!0===$t(e,Tn[n],n))return t()})).use((function(t,r){return e[n].apply(e,t)})),r.run(t)}}})),t}(o);return hc[t]=a,Tn.hookGetAPITips(o.getErrorMessage.bind(o)),Fe.l("".concat("TIM.create"," ok")),a}};return mc.TYPES=S,mc.EVENT=I,mc.VERSION="2.27.1",Fe.l("TIM.VERSION:".concat(mc.VERSION)),mc}))}).call(this,n("c8ba"))},e246:function(e,t,n){"use strict";var r=n("eba9"),o=n("0149");e.exports=!r&&!o&&"object"==typeof window&&"object"==typeof document},e2c3:function(e,t,n){"use strict";n("718c")},e330:function(e,t,n){"use strict";var r=n("40d5"),o=Function.prototype,a=o.call,i=r&&o.bind.bind(a,a);e.exports=r?i:function(e){return function(){return a.apply(e,arguments)}}},e332:function(e,t,n){"use strict";var r=n("437b"),o=n("92cd"),a=Array.prototype;e.exports=function(e){var t=e.slice;return e===a||r(a,e)&&t===a.slice?o:t}},e342:function(e,t,n){"use strict";var r=n("a5eb"),o=Math.hypot,a=Math.abs,i=Math.sqrt,s=!!o&&o(1/0,NaN)!==1/0;r({target:"Math",stat:!0,arity:2,forced:s},{hypot:function(e,t){var n,r,o=0,s=0,c=arguments.length,l=0;while(s<c)n=a(arguments[s++]),l<n?(r=l/n,o=o*r*r+1,l=n):n>0?(r=n/l,o+=r*r):o+=n;return l===1/0?1/0:l*i(o)}})},e363:function(e,t,n){"use strict";var r=n("f94a");r("asyncIterator")},e391:function(e,t,n){"use strict";var r=n("577e");e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},e392:function(e,t,n){"use strict";var r=n("437b"),o=n("5107"),a=Array.prototype;e.exports=function(e){var t=e.map;return e===a||r(a,e)&&t===a.map?o:t}},e3db:function(e,t,n){"use strict";var r=n("a5eb"),o=n("7106"),a=n("4e19"),i=n("ad27"),s=n("9b8d"),c=n("5b57"),l=n("f135");r({target:"Promise",stat:!0,forced:l},{all:function(e){var t=this,n=i.f(t),r=n.resolve,l=n.reject,u=s((function(){var n=a(t.resolve),i=[],s=0,u=1;c(e,(function(e){var a=s++,c=!1;u++,o(n,t,e).then((function(e){c||(c=!0,i[a]=e,--u||r(i))}),l)})),--u||r(i)}));return u.error&&l(u.value),n.promise}})},e460:function(e,t,n){"use strict";var r=n("4e19"),o=n("4fff"),a=n("638c"),i=n("c74f"),s=TypeError,c=function(e){return function(t,n,c,l){r(n);var u=o(t),d=a(u),p=i(u),f=e?p-1:0,h=e?-1:1;if(c<2)while(1){if(f in d){l=d[f],f+=h;break}if(f+=h,e?f<0:p<=f)throw s("Reduce of empty array with no initial value")}for(;e?f>=0:p>f;f+=h)f in d&&(l=n(l,d[f],f,u));return l}};e.exports={left:c(!1),right:c(!0)}},e477:function(e,t,n){"use strict";var r=n("3ce8");e.exports=r},e47e:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("0898"),o=n("27b6");const a=Object(r["b"])({a11y:{type:Boolean,default:!0},locale:{type:Object(r["c"])(Object)},size:o["c"],button:{type:Object(r["c"])(Object)},experimentalFeatures:{type:Object(r["c"])(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:Object(r["c"])(Object)},zIndex:Number,namespace:{type:String,default:"el"}})},e4f0:function(e,t,n){e.exports=n("606e")},e519:function(e,t,n){"use strict";var r=n("a5eb"),o=n("6220");r({target:"Array",stat:!0},{isArray:o})},e5cb:function(e,t,n){"use strict";var r=n("d066"),o=n("1a2d"),a=n("9112"),i=n("3a9b"),s=n("d2bb"),c=n("e893"),l=n("aeb0"),u=n("7156"),d=n("e391"),p=n("ab36"),f=n("6f19"),h=n("83ab"),m=n("c430");e.exports=function(e,t,n,v){var g="stackTraceLimit",_=v?2:1,y=e.split("."),b=y[y.length-1],O=r.apply(null,y);if(O){var M=O.prototype;if(!m&&o(M,"cause")&&delete M.cause,!n)return O;var k=r("Error"),C=t((function(e,t){var n=d(v?t:e,void 0),r=v?new O(e):new O;return void 0!==n&&a(r,"message",n),f(r,C,r.stack,2),this&&i(M,this)&&u(r,this,C),arguments.length>_&&p(r,arguments[_]),r}));if(C.prototype=M,"Error"!==b?s?s(C,k):c(C,k,{name:!0}):h&&g in O&&(l(C,O,g),l(C,O,"prepareStackTrace")),c(C,O),!m)try{M.name!==b&&a(M,"name",b),M.constructor=C}catch(w){}return C}}},e60a:function(e,t,n){e.exports=n("1909")},e635:function(e,t,n){"use strict";var r=n("437b"),o=n("f474"),a=Array.prototype;e.exports=function(e){var t=e.splice;return e===a||r(a,e)&&t===a.splice?o:t}},e683:function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},e699:function(e,t,n){"use strict";var r=n("f94a");r("match")},e76e:function(e,t,n){e.exports=n("904d")},e788:function(e,t){},e7cc:function(e,t,n){"use strict";var r=n("f94a");r("matchAll")},e7f1:function(e,t,n){"use strict";var r=n("ce18"),o=2147483647,a=36,i=1,s=26,c=38,l=700,u=72,d=128,p="-",f=/[^\0-\u007E]/,h=/[.\u3002\uFF0E\uFF61]/g,m="Overflow: input needs wider integers to process",v=a-i,g=RangeError,_=r(h.exec),y=Math.floor,b=String.fromCharCode,O=r("".charCodeAt),M=r([].join),k=r([].push),C=r("".replace),w=r("".split),I=r("".toLowerCase),S=function(e){var t=[],n=0,r=e.length;while(n<r){var o=O(e,n++);if(o>=55296&&o<=56319&&n<r){var a=O(e,n++);56320==(64512&a)?k(t,((1023&o)<<10)+(1023&a)+65536):(k(t,o),n--)}else k(t,o)}return t},T=function(e){return e+22+75*(e<26)},E=function(e,t,n){var r=0;e=n?y(e/l):e>>1,e+=y(e/t);while(e>v*s>>1)e=y(e/v),r+=a;return y(r+(v+1)*e/(e+c))},j=function(e){var t=[];e=S(e);var n,r,c=e.length,l=d,f=0,h=u;for(n=0;n<e.length;n++)r=e[n],r<128&&k(t,b(r));var v=t.length,_=v;v&&k(t,p);while(_<c){var O=o;for(n=0;n<e.length;n++)r=e[n],r>=l&&r<O&&(O=r);var C=_+1;if(O-l>y((o-f)/C))throw g(m);for(f+=(O-l)*C,l=O,n=0;n<e.length;n++){if(r=e[n],r<l&&++f>o)throw g(m);if(r==l){var w=f,I=a;while(1){var j=I<=h?i:I>=h+s?s:I-h;if(w<j)break;var D=w-j,L=a-j;k(t,b(T(j+D%L))),w=y(D/L),I+=a}k(t,b(T(w))),h=E(f,C,_==v),f=0,_++}}f++,l++}return M(t,"")};e.exports=function(e){var t,n,r=[],o=w(C(I(e),h,"."),".");for(t=0;t<o.length;t++)n=o[t],k(r,_(f,n)?"xn--"+j(n):n);return M(r,".")}},e81d:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"},n={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"},r=e.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysMin:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ព្រឹក|ល្ងាច/,isPM:function(e){return"ល្ងាច"===e},meridiem:function(e,t,n){return e<12?"ព្រឹក":"ល្ងាច"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},dayOfMonthOrdinalParse:/ទី\d{1,2}/,ordinal:"ទី%d",preparse:function(e){return e.replace(/[១២៣៤៥៦៧៨៩០]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}});return r}))},e889:function(e,t,n){"use strict";var r=function(){this.head=null,this.tail=null};r.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e){var t=this.head=e.next;return null===t&&(this.tail=null),e.item}}},e.exports=r},e890:function(e,t,n){"use strict";var r=n("4508"),o=n("c74f"),a=n("6c15"),i=Array,s=Math.max;e.exports=function(e,t,n){for(var c=o(e),l=r(t,c),u=r(void 0===n?c:n,c),d=i(s(u-l,0)),p=0;l<u;l++,p++)a(d,p,e[l]);return d.length=p,d}},e893:function(e,t,n){"use strict";var r=n("1a2d"),o=n("56ef"),a=n("06cf"),i=n("9bf2");e.exports=function(e,t,n){for(var s=o(t),c=i.f,l=a.f,u=0;u<s.length;u++){var d=s[u];r(e,d)||n&&r(n,d)||c(e,d,l(t,d))}}},e899:function(e,t,n){"use strict";var r=n("ce18"),o=n("fb2d"),a=n("7685"),i=r(Function.toString);o(a.inspectSource)||(a.inspectSource=function(e){return i(e)}),e.exports=a.inspectSource},e8b5:function(e,t,n){"use strict";var r=n("c6b6");e.exports=Array.isArray||function(e){return"Array"==r(e)}},e946:function(e,t,n){e.exports=n("aa9b")},e9d9:function(e,t,n){"use strict";var r=n("ce18"),o=n("4e19"),a=n("dfdb"),i=n("0e6f"),s=n("eb541"),c=n("a180"),l=Function,u=r([].concat),d=r([].join),p={},f=function(e,t,n){if(!i(p,t)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";p[t]=l("C,a","return new C("+d(r,",")+")")}return p[t](e,n)};e.exports=c?l.bind:function(e){var t=o(this),n=t.prototype,r=s(arguments,1),i=function(){var n=u(r,s(arguments));return this instanceof i?f(t,n.length,n):t.apply(e,n)};return a(n)&&(i.prototype=n),i}},ea1b:function(e,t,n){"use strict";(function(t){!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 n(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){s(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){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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 i(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(){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 p(e,t,n){return(p=d()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&u(o,n.prototype),o}).apply(null,arguments)}function f(e){var t="function"==typeof Map?new Map:void 0;return(f=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 p(e,arguments,l(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),u(r,e)})(e)}function h(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return 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 m(e)}function g(e){var t=d();return function(){var n,r=l(e);if(t){var o=l(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v(this,n)}}function _(e,t){return b(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(l){s=!0,o=l}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}}(e,t)||M(e,t)||C()}function y(e){return function(e){if(Array.isArray(e))return k(e)}(e)||O(e)||M(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 b(e){if(Array.isArray(e))return e}function O(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function M(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 C(){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 w(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=M(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 a,i=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){s=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(s)throw a}}}}var I={SDK_READY:"sdkStateReady",SDK_NOT_READY:"sdkStateNotReady",SDK_DESTROY:"sdkDestroy",MESSAGE_RECEIVED:"onMessageReceived",MESSAGE_MODIFIED:"onMessageModified",MESSAGE_REVOKED:"onMessageRevoked",MESSAGE_READ_BY_PEER:"onMessageReadByPeer",MESSAGE_READ_RECEIPT_RECEIVED:"onMessageReadReceiptReceived",MESSAGE_EXTENSIONS_UPDATED:"onMessageExtensionsUpdated",MESSAGE_EXTENSIONS_DELETED:"onMessageExtensionsDeleted",CONVERSATION_LIST_UPDATED:"onConversationListUpdated",TOTAL_UNREAD_MESSAGE_COUNT_UPDATED:"onTotalUnreadMessageCountUpdated",CONVERSATION_GROUP_LIST_UPDATED:"onConversationGroupListUpdated",CONVERSATION_IN_GROUP_UPDATED:"onConversationInGroupUpdated",GROUP_LIST_UPDATED:"onGroupListUpdated",GROUP_SYSTEM_NOTICE_RECEIVED:"receiveGroupSystemNotice",GROUP_ATTRIBUTES_UPDATED:"groupAttributesUpdated",GROUP_COUNTER_UPDATED:"onGroupCounterUpdated",TOPIC_CREATED:"onTopicCreated",TOPIC_DELETED:"onTopicDeleted",TOPIC_UPDATED:"onTopicUpdated",PROFILE_UPDATED:"onProfileUpdated",USER_STATUS_UPDATED:"onUserStatusUpdated",BLACKLIST_UPDATED:"blacklistUpdated",FRIEND_LIST_UPDATED:"onFriendListUpdated",FRIEND_GROUP_LIST_UPDATED:"onFriendGroupListUpdated",FRIEND_APPLICATION_LIST_UPDATED:"onFriendApplicationListUpdated",KICKED_OUT:"kickedOut",ERROR:"error",NET_STATE_CHANGE:"netStateChange",SDK_RELOAD:"sdkReload"},S={MSG_TEXT:"TIMTextElem",MSG_IMAGE:"TIMImageElem",MSG_SOUND:"TIMSoundElem",MSG_AUDIO:"TIMSoundElem",MSG_FILE:"TIMFileElem",MSG_FACE:"TIMFaceElem",MSG_VIDEO:"TIMVideoFileElem",MSG_GEO:"TIMLocationElem",MSG_LOCATION:"TIMLocationElem",MSG_GRP_TIP:"TIMGroupTipElem",MSG_GRP_SYS_NOTICE:"TIMGroupSystemNoticeElem",MSG_CUSTOM:"TIMCustomElem",MSG_MERGER:"TIMRelayElem",MSG_PRIORITY_HIGH:"High",MSG_PRIORITY_NORMAL:"Normal",MSG_PRIORITY_LOW:"Low",MSG_PRIORITY_LOWEST:"Lowest",CONV_C2C:"C2C",CONV_GROUP:"GROUP",CONV_TOPIC:"TOPIC",CONV_SYSTEM:"@TIM#SYSTEM",CONV_AT_ME:1,CONV_AT_ALL:2,CONV_AT_ALL_AT_ME:3,CONV_MARK_TYPE_STAR:1,CONV_MARK_TYPE_UNREAD:2,CONV_MARK_TYPE_FOLD:4,CONV_MARK_TYPE_HIDE:8,GRP_PRIVATE:"Private",GRP_WORK:"Private",GRP_PUBLIC:"Public",GRP_CHATROOM:"ChatRoom",GRP_MEETING:"ChatRoom",GRP_AVCHATROOM:"AVChatRoom",GRP_COMMUNITY:"Community",GRP_MBR_ROLE_OWNER:"Owner",GRP_MBR_ROLE_ADMIN:"Admin",GRP_MBR_ROLE_MEMBER:"Member",GRP_MBR_ROLE_CUSTOM:"Custom",GRP_TIP_MBR_JOIN:1,GRP_TIP_MBR_QUIT:2,GRP_TIP_MBR_KICKED_OUT:3,GRP_TIP_MBR_SET_ADMIN:4,GRP_TIP_MBR_CANCELED_ADMIN:5,GRP_TIP_GRP_PROFILE_UPDATED:6,GRP_TIP_MBR_PROFILE_UPDATED:7,GRP_TIP_BAN_AVCHATROOM_MEMBER:10,GRP_TIP_UNBAN_AVCHATROOM_MEMBER:11,MSG_REMIND_ACPT_AND_NOTE:"AcceptAndNotify",MSG_REMIND_ACPT_NOT_NOTE:"AcceptNotNotify",MSG_REMIND_DISCARD:"Discard",GENDER_UNKNOWN:"Gender_Type_Unknown",GENDER_FEMALE:"Gender_Type_Female",GENDER_MALE:"Gender_Type_Male",KICKED_OUT_MULT_ACCOUNT:"multipleAccount",KICKED_OUT_MULT_DEVICE:"multipleDevice",KICKED_OUT_USERSIG_EXPIRED:"userSigExpired",KICKED_OUT_REST_API:"REST_API_Kick",ALLOW_TYPE_ALLOW_ANY:"AllowType_Type_AllowAny",ALLOW_TYPE_NEED_CONFIRM:"AllowType_Type_NeedConfirm",ALLOW_TYPE_DENY_ANY:"AllowType_Type_DenyAny",FORBID_TYPE_NONE:"AdminForbid_Type_None",FORBID_TYPE_SEND_OUT:"AdminForbid_Type_SendOut",JOIN_OPTIONS_FREE_ACCESS:"FreeAccess",JOIN_OPTIONS_NEED_PERMISSION:"NeedPermission",JOIN_OPTIONS_DISABLE_APPLY:"DisableApply",JOIN_STATUS_SUCCESS:"JoinedSuccess",JOIN_STATUS_ALREADY_IN_GROUP:"AlreadyInGroup",JOIN_STATUS_WAIT_APPROVAL:"WaitAdminApproval",INVITE_OPTIONS_DISABLE_INVITE:"DisableInvite",INVITE_OPTIONS_NEED_PERMISSION:"NeedPermission",INVITE_OPTIONS_FREE_ACCESS:"FreeAccess",GRP_PROFILE_OWNER_ID:"ownerID",GRP_PROFILE_CREATE_TIME:"createTime",GRP_PROFILE_LAST_INFO_TIME:"lastInfoTime",GRP_PROFILE_MEMBER_NUM:"memberNum",GRP_PROFILE_MAX_MEMBER_NUM:"maxMemberNum",GRP_PROFILE_JOIN_OPTION:"joinOption",GRP_PROFILE_INVITE_OPTION:"inviteOption",GRP_PROFILE_INTRODUCTION:"introduction",GRP_PROFILE_NOTIFICATION:"notification",GRP_PROFILE_MUTE_ALL_MBRS:"muteAllMembers",SNS_ADD_TYPE_SINGLE:"Add_Type_Single",SNS_ADD_TYPE_BOTH:"Add_Type_Both",SNS_DELETE_TYPE_SINGLE:"Delete_Type_Single",SNS_DELETE_TYPE_BOTH:"Delete_Type_Both",SNS_APPLICATION_TYPE_BOTH:"Pendency_Type_Both",SNS_APPLICATION_SENT_TO_ME:"Pendency_Type_ComeIn",SNS_APPLICATION_SENT_BY_ME:"Pendency_Type_SendOut",SNS_APPLICATION_AGREE:"Response_Action_Agree",SNS_APPLICATION_AGREE_AND_ADD:"Response_Action_AgreeAndAdd",SNS_CHECK_TYPE_BOTH:"CheckResult_Type_Both",SNS_CHECK_TYPE_SINGLE:"CheckResult_Type_Single",SNS_TYPE_NO_RELATION:"CheckResult_Type_NoRelation",SNS_TYPE_A_WITH_B:"CheckResult_Type_AWithB",SNS_TYPE_B_WITH_A:"CheckResult_Type_BWithA",SNS_TYPE_BOTH_WAY:"CheckResult_Type_BothWay",NET_STATE_CONNECTED:"connected",NET_STATE_CONNECTING:"connecting",NET_STATE_DISCONNECTED:"disconnected",MSG_AT_ALL:"__kImSDK_MesssageAtALL__",READ_ALL_C2C_MSG:"readAllC2CMessage",READ_ALL_GROUP_MSG:"readAllGroupMessage",READ_ALL_MSG:"readAllMessage",USER_STATUS_UNKNOWN:0,USER_STATUS_ONLINE:1,USER_STATUS_OFFLINE:2,USER_STATUS_UNLOGINED:3},T=function(){function e(){o(this,e),this.cache=[],this.options=null}return i(e,[{key:"use",value:function(e){if("function"!=typeof e)throw"middleware must be a function";return this.cache.push(e),this}},{key:"next",value:function(e){if(this.middlewares&&this.middlewares.length>0)return this.middlewares.shift().call(this,this.options,this.next.bind(this))}},{key:"run",value:function(e){return this.middlewares=this.cache.map((function(e){return e})),this.options=e,this.next()}}]),e}(),E=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;o(this,e),this.high=t,this.low=n}return i(e,[{key:"equal",value:function(e){return null!==e&&this.low===e.low&&this.high===e.high}},{key:"toString",value:function(){var e=Number(this.high).toString(16),t=Number(this.low).toString(16);if(t.length<8)for(var n=8-t.length;n;)t="0"+t,n--;return e+t}}]),e}(),j={TEST:{CHINA:{DEFAULT:"wss://wss-dev.tim.qq.com"},OVERSEA:{DEFAULT:"wss://wss-dev.tim.qq.com"},SINGAPORE:{DEFAULT:"wss://wsssgp-dev.im.qcloud.com"},KOREA:{DEFAULT:"wss://wsskr-dev.im.qcloud.com"},GERMANY:{DEFAULT:"wss://wssger-dev.im.qcloud.com"},IND:{DEFAULT:"wss://wssind-dev.im.qcloud.com"},JPN:{DEFAULT:"wss://wssjpn-dev.im.qcloud.com"},USA:{DEFAULT:"wss://wssusa-dev.im.qcloud.com"}},PRODUCTION:{CHINA:{DEFAULT:"wss://wss.im.qcloud.com",BACKUP:"wss://wss.tim.qq.com",STAT:"https://events.im.qcloud.com",ANYCAST:"wss://162.14.13.203"},OVERSEA:{DEFAULT:"wss://wss.im.qcloud.com",BACKUP:"wss://wss.my-imcloud.com",STAT:"https://api.my-imcloud.com"},SINGAPORE:{DEFAULT:"wss://wsssgp.im.qcloud.com",BACKUP:"wss://wsssgp.my-imcloud.com",STAT:"https://apisgp.my-imcloud.com"},KOREA:{DEFAULT:"wss://wsskr.im.qcloud.com",BACKUP:"wss://wsskr.my-imcloud.com",STAT:"https://apikr.my-imcloud.com"},GERMANY:{DEFAULT:"wss://wssger.im.qcloud.com",BACKUP:"wss://wssger.my-imcloud.com",STAT:"https://apiger.my-imcloud.com"},IND:{DEFAULT:"wss://wssind.my-imcloud.com",BACKUP:"wss://wssind.im.qcloud.com",STAT:"https://apiind.my-imcloud.com"},JPN:{DEFAULT:"wss://wssjpn.im.qcloud.com",BACKUP:"wss://wssjpn.my-imcloud.com",STAT:"https://apijpn.my-imcloud.com"},USA:{DEFAULT:"wss://wssusa.im.qcloud.com",BACKUP:"wss://wssusa.my-imcloud.com",STAT:"https://apiusa.my-imcloud.com"}}},D={ANDROID:2,IOS:3,MAC:4,WEB:7,WX_MP:8,QQ_MP:9,TT_MP:10,BAIDU_MP:11,ALI_MP:12,IPAD:13,UNI_NATIVE_APP:15},L="1.7.3",A=537048168,N="CHINA",x="OVERSEA",R="SINGAPORE",P="KOREA",U="GERMANY",V="IND",B="JPN",F="USA",G={HOST:{CURRENT:{DEFAULT:"wss://wss.im.qcloud.com",STAT:"https://events.im.qcloud.com"},setCurrent:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:N;this.CURRENT=j.PRODUCTION[e]}},NAME:{OPEN_IM:"openim",OPEN_IM_MSG_EXT:"openim_msg_ext_http_svc",GROUP:"group_open_http_svc",GROUP_AVCHATROOM:"group_open_avchatroom_http_svc",GROUP_COMMUNITY:"million_group_open_http_svc",GROUP_ATTR:"group_open_attr_http_svc",FRIEND:"sns",PROFILE:"profile",RECENT_CONTACT:"recentcontact",PIC:"openpic",BIG_GROUP_NO_AUTH:"group_open_http_noauth_svc",BIG_GROUP_LONG_POLLING:"group_open_long_polling_http_svc",BIG_GROUP_LONG_POLLING_NO_AUTH:"group_open_long_polling_http_noauth_svc",IM_OPEN_STAT:"imopenstat",WEB_IM:"webim",IM_COS_SIGN:"im_cos_sign_svr",CUSTOM_UPLOAD:"im_cos_msg",HEARTBEAT:"heartbeat",IM_OPEN_PUSH:"im_open_push",IM_OPEN_STATUS:"im_open_status",IM_LONG_MESSAGE:"im_long_msg",IM_CONFIG_MANAGER:"im_sdk_config_mgr",STAT_SERVICE:"StatSvc",OVERLOAD_PUSH:"OverLoadPush",IM_MSG_AUDIT_MGR:"im_msg_audit_mgr",TUIROOM_SVR:"tui_room_svr",IM_OPEN_TRANSLATE:"im_open_translate"},CMD:{LOGIN:"wslogin",LOGOUT_LONG_POLL:"longpollinglogout",LOGOUT:"wslogout",HELLO:"wshello",STAT_BACKGROUND:"ws_stat_background",STAT_FOREGROUND:"ws_stat_foreground",SET_TOKEN:"ws_stat_settoken",PORTRAIT_GET:"portrait_get_all",PORTRAIT_SET:"portrait_set",GET_LONG_POLL_ID:"getlongpollingid",LONG_POLL:"longpolling",AVCHATROOM_LONG_POLL:"get_msg",ADD_FRIEND:"friend_add",UPDATE_FRIEND:"friend_update",GET_FRIEND_LIST:"friend_get",GET_FRIEND_PROFILE:"friend_get_specified",DELETE_FRIEND:"friend_delete",CHECK_FRIEND:"friend_check",GET_FRIEND_GROUP_LIST:"group_get",RESPOND_FRIEND_APPLICATION:"friend_response",GET_FRIEND_APPLICATION_LIST:"pendency_get",DELETE_FRIEND_APPLICATION:"pendency_delete",REPORT_FRIEND_APPLICATION:"pendency_report",GET_GROUP_APPLICATION:"get_pendency",CREATE_FRIEND_GROUP:"group_add",DELETE_FRIEND_GROUP:"group_delete",UPDATE_FRIEND_GROUP:"group_update",GET_BLACKLIST:"black_list_get",ADD_BLACKLIST:"black_list_add",DELETE_BLACKLIST:"black_list_delete",CREATE_GROUP:"create_group",GET_JOINED_GROUPS:"get_joined_group_list",SET_GROUP_ATTRIBUTES:"set_group_attr",MODIFY_GROUP_ATTRIBUTES:"modify_group_attr",DELETE_GROUP_ATTRIBUTES:"delete_group_attr",CLEAR_GROUP_ATTRIBUTES:"clear_group_attr",GET_GROUP_ATTRIBUTES:"get_group_attr",SEND_MESSAGE:"sendmsg",REVOKE_C2C_MESSAGE:"msgwithdraw",DELETE_C2C_MESSAGE:"delete_c2c_msg_ramble",MODIFY_C2C_MESSAGE:"modify_c2c_msg",MODIFY_C2C_MESSAGE_EXTENSIONS:"set_key_values",GET_C2C_MESSAGE_EXTENSIONS:"get_key_values",SEND_GROUP_MESSAGE:"send_group_msg",REVOKE_GROUP_MESSAGE:"group_msg_recall",DELETE_GROUP_MESSAGE:"delete_group_ramble_msg_by_seq",MODIFY_GROUP_MESSAGE:"modify_group_msg",MODIFY_GROUP_MESSAGE_EXTENSIONS:"group_set_key_values",GET_GROUP_MESSAGE_EXTENSIONS:"group_get_key_values",GET_GROUP_INFO:"get_group_self_member_info",GET_GROUP_MEMBER_INFO:"get_specified_group_member_info",GET_GROUP_MEMBER_LIST:"get_group_member_info",GET_AVCHATROOM_MEMBER_LIST:"get_members",MARK_AVCHATROOM_MEMBER_INFO:"modify_user_info",QUIT_GROUP:"quit_group",CHANGE_GROUP_OWNER:"change_group_owner",DESTROY_GROUP:"destroy_group",ADD_GROUP_MEMBER:"add_group_member",DELETE_GROUP_MEMBER:"delete_group_member",BAN_AVCHATROOM_MEMBER:"ban_group_member",SEARCH_GROUP_BY_ID:"get_group_public_info",APPLY_JOIN_GROUP:"apply_join_group",HANDLE_APPLY_JOIN_GROUP:"handle_apply_join_group",HANDLE_INVITE_JOIN_GROUP:"handle_invite_join_permission_group",HANDLE_GROUP_INVITATION:"handle_invite_join_group",MODIFY_GROUP_INFO:"modify_group_base_info",MODIFY_GROUP_MEMBER_INFO:"modify_group_member_info",DELETE_GROUP_SYSTEM_MESSAGE:"deletemsg",DELETE_GROUP_AT_TIPS:"deletemsg",GET_GROUP_NOTIFY:"get_group_notify",GET_CONVERSATION_LIST:"get",PAGING_GET_CONVERSATION_LIST:"page_get",DELETE_CONVERSATION:"batch_delete",CLEAR_HISTORY_MESSAGE:"clear_msg",PIN_CONVERSATION:"top",SET_CONVERSATION_CUSTOM_DATA:"mark_contact",MARK_CONVERSATION:"mark_contact",CREATE_CONVERSATION_GROUP:"create_contact_group",DELETE_CONVERSATION_GROUP:"del_contact_group",UPDATE_CONVERSATION_GROUP:"update_contact_group",GET_CONVERSATION_GROUP_LIST:"get_contact_group",GET_MESSAGES:"getmsg",GET_C2C_ROAM_MESSAGES:"getroammsg",SET_C2C_PEER_MUTE_NOTIFICATIONS:"set_c2c_peer_mute_notifications",GET_C2C_PEER_MUTE_NOTIFICATIONS:"get_c2c_peer_mute_notifications",GET_GROUP_ROAM_MESSAGES:"group_msg_get",GET_READ_RECEIPT:"get_group_msg_receipt",GET_READ_RECEIPT_DETAIL:"get_group_msg_receipt_detail",SEND_READ_RECEIPT:"group_msg_receipt",SEND_C2C_READ_RECEIPT:"c2c_msg_read_receipt",SET_C2C_MESSAGE_READ:"msgreaded",GET_PEER_READ_TIME:"get_peer_read_time",SET_GROUP_MESSAGE_READ:"msg_read_report",FILE_READ_AND_WRITE_AUTHKEY:"authkey",FILE_UPLOAD:"pic_up",COS_SIGN:"cos",COS_PRE_SIG:"pre_sig",VIDEO_COVER:"video_cover",TIM_WEB_REPORT_V2:"tim_web_report_v2",BIG_DATA_HALLWAY_AUTH_KEY:"authkey",GET_ONLINE_MEMBER_NUM:"get_online_member_num",ALIVE:"alive",MESSAGE_PUSH:"msg_push",MULTI_MESSAGE_PUSH:"multi_msg_push_ws",MESSAGE_PUSH_ACK:"ws_msg_push_ack",STATUS_FORCE_OFFLINE:"stat_forceoffline",DOWNLOAD_MERGER_MESSAGE:"get_relay_json_msg",UPLOAD_MERGER_MESSAGE:"save_relay_json_msg",FETCH_CLOUD_CONTROL_CONFIG:"fetch_config",PUSHED_CLOUD_CONTROL_CONFIG:"push_configv2",FETCH_COMMERCIAL_CONFIG:"fetch_imsdk_purchase_bitsv2",PUSHED_COMMERCIAL_CONFIG:"push_imsdk_purchase_bitsv2",KICK_OTHER:"KickOther",OVERLOAD_NOTIFY:"notify2",SET_ALL_MESSAGE_READ:"read_all_unread_msg",CREATE_TOPIC:"create_topic",DELETE_TOPIC:"destroy_topic",UPDATE_TOPIC_PROFILE:"modify_topic",GET_TOPIC_LIST:"get_topic",SET_SELF_STATUS:"ws_set_custom_status",GET_USER_STATUS:"ws_get_user_status",SUBSCRIBE_USER_STATUS:"ws_status_subscribe",UNSUBSCRIBE_USER_STATUS:"ws_status_unsubscribe",GET_RPOFANITY_LIST:"get_local_words",TRANSLATE_TEXT:"ws_batch_trans_text",UPDATE_GROUP_COUNTER:"update_group_counter",GET_GROUP_COUNTER:"get_group_counter"},CHANNEL:{SOCKET:1,XHR:2,AUTO:0},NAME_VERSION:{openim:"v4",group_open_http_svc:"v4",sns:"v4",profile:"v4",recentcontact:"v4",openpic:"v4",group_open_http_noauth_svc:"v4",group_open_long_polling_http_svc:"v4",group_open_long_polling_http_noauth_svc:"v4",imopenstat:"v4",im_cos_sign_svr:"v4",im_cos_msg:"v4",webim:"v4",im_open_push:"v4",im_open_status:"v4"}},z={SEARCH_MSG:new E(0,Math.pow(2,0)).toString(),SEARCH_GRP_SNS:new E(0,Math.pow(2,1)).toString(),AVCHATROOM_HISTORY_MSG:new E(0,Math.pow(2,2)).toString(),GRP_COMMUNITY:new E(0,Math.pow(2,3)).toString(),MSG_TO_SPECIFIED_GRP_MBR:new E(0,Math.pow(2,4)).toString(),AVCHATROOM_MBR_LIST:new E(0,Math.pow(2,6)).toString(),USER_STATUS:new E(0,Math.pow(2,7)).toString(),CONV_MARK:new E(0,Math.pow(2,9)).toString(),CONV_GROUP:new E(0,Math.pow(2,10)).toString(),AVCHATROOM_BAN_MBR:new E(0,Math.pow(2,11)).toString(),MSG_EXT:new E(0,Math.pow(2,13)).toString(),GRP_COUNTER:new E(0,Math.pow(2,15)).toString()},H="c2c_text_message",Y="c2c_custom_message",q="group_text_message",W="group_custom_message",K="user_profile",$="sns",J="group_profile",Q="group_member_profile";G.HOST.setCurrent(N);var X="undefined"!=typeof wx&&"function"==typeof wx.getSystemInfoSync&&Boolean(wx.getSystemInfoSync().fontSizeSetting),Z="undefined"!=typeof qq&&"function"==typeof qq.getSystemInfoSync&&Boolean(qq.getSystemInfoSync().fontSizeSetting),ee="undefined"!=typeof tt&&"function"==typeof tt.getSystemInfoSync&&Boolean(tt.getSystemInfoSync().fontSizeSetting),te="undefined"!=typeof swan&&"function"==typeof swan.getSystemInfoSync&&Boolean(swan.getSystemInfoSync().fontSizeSetting),ne="undefined"!=typeof my&&"function"==typeof my.getSystemInfoSync&&Boolean(my.getSystemInfoSync().fontSizeSetting),re="undefined"!=typeof jd&&"function"==typeof jd.getSystemInfoSync,oe="undefined"!=typeof uni&&"undefined"==typeof window&&"function"==typeof uni.requireNativePlugin,ae="undefined"!=typeof uni,ie=X||Z||ee||te||ne||oe||re,se=("undefined"!=typeof uni||"undefined"!=typeof window)&&!ie,ce=Z?qq:ee?tt:te?swan:ne?my:X?wx:oe?uni:re?jd:{},le=se&&window&&window.navigator&&window.navigator.userAgent||"",ue=/(micromessenger|webbrowser)/i.test(le),de=/AppleWebKit\/([\d.]+)/i.exec(le);de&&parseFloat(de.pop());var pe,fe,he=(pe="WEB",ue?pe="WEB":Z?pe="QQ_MP":ee?pe="TT_MP":te?pe="BAIDU_MP":ne?pe="ALI_MP":X?pe="WX_MP":oe&&(pe="UNI_NATIVE_APP"),D[pe]),me=/iPad/i.test(le),ve=/iPhone/i.test(le)&&!me,ge=/iPod/i.test(le),_e=ve||me||ge,ye=(fe=le.match(/OS (\d+)_/i))&&fe[1]?fe[1]:null,be=/Android/i.test(le),Oe=function(){var e=le.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;var t=e[1]&&parseFloat(e[1]),n=e[2]&&parseFloat(e[2]);return t&&n?parseFloat(e[1]+"."+e[2]):t||null}();!function(){var e=le.match(/Chrome\/(\d+)/);e&&e[1]&&parseFloat(e[1])}();var Me=/MSIE/.test(le)||le.indexOf("Trident")>-1&&le.indexOf("rv:11.0")>-1,ke=function(){var e=/MSIE\s(\d+)\.\d/.exec(le),t=e&&parseFloat(e[1]);return!t&&/Trident\/7.0/i.test(le)&&/rv:11.0/.test(le)&&(t=11),t}();!function(){var e=le.match(/TBS\/(\d+)/i);e&&e[1]&&e[1]}();var Ce,we,Ie=/Windows/i.test(le),Se=/MAC OS X/i.test(le),Te=se&&"undefined"!=typeof Worker&&!Me,Ee=be||_e,je=se&&void 0!==window.tencent_cloud_im_csig_flutter_for_web_25F_cy;Ce="undefined"!=typeof console?console:"undefined"!=typeof t&&t.console?t.console:"undefined"!=typeof window&&window.console?window.console:{};for(var De=function(){},Le=["assert","clear","count","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","profile","profileEnd","table","time","timeEnd","timeStamp","trace","warn"],Ae=Le.length;Ae--;)we=Le[Ae],console[we]||(Ce[we]=De);var Ne=Ce,xe=0,Re=function(){return(new Date).getTime()+xe},Pe=function(){xe=0},Ue=function(){return Math.floor(Re()/1e3)},Ve=0;function Be(){return Jt()?"%c TIM %c":"TIM"}function Fe(){var e,t=((e=new Date).setTime(Re()),e);return t.toLocaleTimeString("en-US",{hour12:!1})+"."+function(e){var t;switch(e.toString().length){case 1:t="00"+e;break;case 2:t="0"+e;break;default:t=e}return t}(t.getMilliseconds())}var Ge={arguments2String:function(e){var t="";if(1===e.length)t=e[0];else for(var n=0,r=e.length;n<r;n++)ft(e[n])?mt(e[n])?t+=yt(e[n]):t+=JSON.stringify(e[n]):t+=e[n],t+=" ";return t},_exec:function(e,t){Jt()?Ne[e](Be(),"background:#0abf5b; padding:1px; border-radius:3px; color: #fff","background:transparent",Fe(),t):Ne[e]("".concat(Be()," ").concat(Fe()," ").concat(t))},d:function(){if(Ve<=-1){var e=this.arguments2String(arguments);this._exec("debug",e)}},l:function(){if(Ve<=0){var e=this.arguments2String(arguments);this._exec("log",e)}},log:function(){if(Ve<=0){var e=this.arguments2String(arguments);this._exec("log",e)}},i:function(){if(Ve<=1){var e=this.arguments2String(arguments);this._exec("info",e)}},w:function(){if(Ve<=2){var e=this.arguments2String(arguments);this._exec("warn",e)}},e:function(){if(Ve<=3){var e=this.arguments2String(arguments);this._exec("error",e)}},setLevel:function(e){e<4&&this._exec("log","set level from "+Ve+" to "+e),Ve=e},getLevel:function(){return Ve}},ze={JPG:1,JPEG:1,GIF:2,PNG:3,BMP:4,UNKNOWN:255},He={NICK:"Tag_Profile_IM_Nick",GENDER:"Tag_Profile_IM_Gender",BIRTHDAY:"Tag_Profile_IM_BirthDay",LOCATION:"Tag_Profile_IM_Location",SELFSIGNATURE:"Tag_Profile_IM_SelfSignature",ALLOWTYPE:"Tag_Profile_IM_AllowType",LANGUAGE:"Tag_Profile_IM_Language",AVATAR:"Tag_Profile_IM_Image",MESSAGESETTINGS:"Tag_Profile_IM_MsgSettings",ADMINFORBIDTYPE:"Tag_Profile_IM_AdminForbidType",LEVEL:"Tag_Profile_IM_Level",ROLE:"Tag_Profile_IM_Role"},Ye="Tag_SNS_IM_Group",qe="Tag_SNS_IM_Remark",We="Tag_SNS_IM_AddSource",Ke="Tag_SNS_IM_AddWording",$e="Tag_SNS_IM_AddTime",Je={UNKNOWN:"Gender_Type_Unknown",FEMALE:"Gender_Type_Female",MALE:"Gender_Type_Male"},Qe={NONE:"AdminForbid_Type_None",SEND_OUT:"AdminForbid_Type_SendOut"},Xe={NEED_CONFIRM:"AllowType_Type_NeedConfirm",ALLOW_ANY:"AllowType_Type_AllowAny",DENY_ANY:"AllowType_Type_DenyAny"},Ze="JoinedSuccess",et="WaitAdminApproval",nt="@TGS#_",rt="@TOPIC#_",ot=["url"],at=function(e){return"map"===vt(e)},it=function(e){return"file"===vt(e)},st=function(e){return null!==e&&("number"==typeof e&&!isNaN(e-0)||"object"===r(e)&&e.constructor===Number)},ct=function(e){return"string"==typeof e},lt=function(e){return null!==e&&"object"===r(e)},ut=function(e){if("object"!==r(e)||null===e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;for(var n=t;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return t===n},dt=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"array"===vt(e)},pt=function(e){return void 0===e},ft=function(e){return dt(e)||lt(e)},ht=function(e){return"function"==typeof e},mt=function(e){return e instanceof Error},vt=function(e){return Object.prototype.toString.call(e).match(/^\[object (.*)\]$/)[1].toLowerCase()},gt=function(e){if("string"!=typeof e)return!1;var t=e[0];return!/[^a-zA-Z0-9]/.test(t)};Date.now||(Date.now=function(){return(new Date).getTime()});var _t=function e(t,n,r,o){if(!ft(t)||!ft(n))return 0;for(var a,i=0,s=Object.keys(n),c=0,l=s.length;c<l;c++)if(a=s[c],!(pt(n[a])||r&&r.includes(a)))if(ft(t[a])&&ft(n[a]))i+=e(t[a],n[a],r,o);else{if(o&&o.includes(n[a]))continue;t[a]!==n[a]&&(t[a]=n[a],i+=1)}return i},yt=function(e){return JSON.stringify(e,["message","code"])},bt=function(e){if(0===e.length)return 0;for(var t=0,n=0,r="undefined"!=typeof document&&void 0!==document.characterSet?document.characterSet:"UTF-8";void 0!==e[t];)n+=e[t++].charCodeAt[t]<=255?1:!1===r?3:2;return n},Ot=function(e){var t=e||99999999;return Math.round(Math.random()*t)},Mt="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",kt=Mt.length,Ct=function(e,t){for(var n in e)if(e[n]===t)return!0;return!1},wt={},It=function(e){return-1===e.indexOf("http://")||-1===e.indexOf("https://")?"https://"+e:e.replace(/https|http/,"https")},St=function e(t){if(0===Object.getOwnPropertyNames(t).length)return Object.create(null);var n=Array.isArray(t)?[]:Object.create(null),o="";for(var a in t)null!==t[a]?void 0!==t[a]?(o=r(t[a]),["string","number","function","boolean"].indexOf(o)>=0?n[a]=t[a]:n[a]=e(t[a])):n[a]=void 0:n[a]=null;return n};function Tt(e,t){if(!dt(e)||!dt(t))return!1;var n=!1;return t.forEach((function(t){var r=t.key,o=t.value,a=e.find((function(e){return e.key===r}));a?a.value!==o&&(a.value=o,n=!0):(e.push({key:r,value:o}),n=!0)})),n}var Et=function(e){return e===S.GRP_AVCHATROOM},jt=function(e){var t=e.type,n=e.groupID;return t===S.GRP_COMMUNITY||"".concat(n).startsWith(nt)&&!"".concat(n).includes(rt)},Dt=function(e){return"".concat(e).startsWith(nt)&&"".concat(e).includes(rt)},Lt=function(e){return ct(e)&&e.slice(0,3)===S.CONV_C2C},At=function(e){return ct(e)&&e.slice(0,5)===S.CONV_GROUP},Nt=function(e){return ct(e)&&e===S.CONV_SYSTEM};function xt(e,t){var n={};return Object.keys(e).forEach((function(r){n[r]=t(e[r],r)})),n}function Rt(e){return ie?new Promise((function(t,n){ce.getImageInfo({src:e,success:function(e){t({width:e.width,height:e.height})},fail:function(){t({width:0,height:0})}})})):Me&&9===ke?Promise.resolve({width:0,height:0}):new Promise((function(t,n){var r=new Image;r.onload=function(){t({width:this.width,height:this.height}),r=null},r.onerror=function(){t({width:0,height:0}),r=null},r.src=e}))}function Pt(){function e(){return(65536*(1+Math.random())|0).toString(16).substring(1)}return"".concat(e()+e()).concat(e()).concat(e()).concat(e()).concat(e()).concat(e()).concat(e())}function Ut(){var e="unknown";if(Se&&(e="mac"),Ie&&(e="windows"),_e&&(e="ios"),be&&(e="android"),ie)try{var t=ce.getSystemInfoSync().platform;void 0!==t&&(e=t)}catch(r){}return e}function Vt(e,t){e=e.split("."),t=t.split(".");for(var n=Math.max(e.length,t.length);e.length<n;)e.push("0");for(;t.length<n;)t.push("0");for(var r=0;r<n;r++){var o=parseInt(e[r]),a=parseInt(t[r]);if(o>a)return 1;if(o<a)return-1}return 0}function Bt(e){var t=e.originUrl,n=void 0===t?void 0:t,r=e.originWidth,o=e.originHeight,a=e.min,i=void 0===a?198:a,s=parseInt(r),c=parseInt(o),l={url:void 0,width:0,height:0};if((s<=c?s:c)<=i)l.url=n,l.width=s,l.height=c;else{c<=s?(l.width=Math.ceil(s*i/c),l.height=i):(l.width=i,l.height=Math.ceil(c*i/s));var u=n&&n.indexOf("?")>-1?"".concat(n,"&"):"".concat(n,"?");l.url="".concat(u,198===i?"imageView2/3/w/198/h/198":"imageView2/3/w/720/h/720")}return pt(n)?(l.url,h(l,ot)):l}function Ft(e){var t=e[2];e[2]=e[1],e[1]=t;for(var n=0;n<e.length;n++)e[n].setType(n)}function Gt(e){var t=e.servcmd;return t.slice(t.indexOf(".")+1)}function zt(e,t){return Math.round(Number(e)*Math.pow(10,t))/Math.pow(10,t)}function Ht(e,t){return e.includes(t)}function Yt(e,t){return e.includes(t)}function qt(e){return e.split(rt)[0]}var Wt=function(e,t,n){if(pt(t))return"";switch(e){case S.MSG_TEXT:return t.text;case S.MSG_IMAGE:return n?"[Image]":"[图片]";case S.MSG_LOCATION:return n?"[Location]":"[位置]";case S.MSG_AUDIO:return n?"[Voice]":"[语音]";case S.MSG_VIDEO:return n?"[Video]":"[视频]";case S.MSG_FILE:return n?"[File]":"[文件]";case S.MSG_CUSTOM:return n?"[Custom Messages]":"[自定义消息]";case S.MSG_GRP_TIP:return n?"[Group Notification]":"[群提示消息]";case S.MSG_GRP_SYS_NOTICE:return n?"[Group System Message]":"[群系统通知]";case S.MSG_FACE:return n?"[Animated Sticker]":"[动画表情]";case S.MSG_MERGER:return n?"[Chat Record]":"[聊天记录]";default:return""}};function Kt(e){return e===S.MSG_TEXT||e===S.MSG_CUSTOM||e===S.MSG_LOCATION||e===S.MSG_FACE}function $t(e){var t=[];if(!ct(e))return t;var n=e.length;if(0===n)return t;for(var r=n-1;r>=0;r--)"1"===e[r]&&t.push(Math.pow(2,n-r-1));return t}function Jt(){return!Me&&!ie}function Qt(e){return"the length of userIDList cannot exceed ".concat(e)}function Xt(e,t){if(e){var n=e;return t&&(e.startsWith("http://")?n=e.replace(/^http:\/\/[^/]+/,t):e.startsWith("https://")&&(n=e.replace(/^https:\/\/[^/]+/,t))),n}}var Zt=Object.prototype.hasOwnProperty;function en(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(ut(e)){for(var t in e)if(Zt.call(e,t))return!1;return!0}return!(!at(e)&&(n=e,"set"!==vt(n))&&!it(e))&&0===e.size;var n}function tn(e,t,n){if(void 0===t)return!0;var r=!0;if(ut(t))Object.keys(t).forEach((function(o){var a=1===e.length?e[0][o]:void 0;r=!!nn(a,t[o],n,o)&&r}));else if(dt(t))for(var o=0;o<t.length;o++)r=!!nn(e[o],t[o],n,t[o].name)&&r;if(r)return r;throw new Error("Params validate failed.")}function nn(e,t,n,r){if(void 0===t)return!0;var o=!0;if(t.required&&en(e)&&(Ge.e("[".concat(n,'] Missing required params: "').concat(r,'".')),o=!1),!en(e)){var a=vt(e),i=t.type.toLowerCase();a!==i&&("asyncfunction"===a&&"function"===i||(Ge.e("[".concat(n,'] Invalid params: type check failed for "').concat(r,'".Expected ').concat(t.type,".")),o=!1))}return t.validator&&!t.validator(e)&&(Ge.e("[".concat(n,"] Invalid params: custom validator check failed for params.")),o=!1),o}var rn,on={UNSEND:"unSend",SUCCESS:"success",FAIL:"fail"},an={NOT_START:"notStart",PENDING:"pending",RESOLVED:"resolved",REJECTED:"rejected"},sn=function(e){if(!e)return!1;if(Lt(e)||At(e)||Nt(e))return!0;var t=An("InvalidConversationID",e);return t&&Ge.w(t),!1},cn=function(e){""!==e.desc&&""!==An("API_REFER")&&Ge.w("[".concat(e.api,"] | ").concat(e.param," | ").concat(e.desc,", ").concat(An("API_REFER")).concat(e.api))},ln=function(){return An("StringRequiredLog")},un=function(e){return An("NonEmptyStringRequiredLog",e)},dn=function(){return An("NumberRequiredLog")},pn=function(){return An("UndefinedNotAllowedLog")},fn=function(){return An("FileRequiredLog")},hn=function(){return An("FunctionRequiredLog")},mn=function(){return An("ArrayRequiredLog")},vn=function(){return An("NonEmptyArrayLog")},gn=function(){return An("CallbackMissingLog")},_n=function(){return An("PositiveIntegerRequiredLog")},yn=function(e,t){return An("StringNotLongerThanLog",e,t)},bn=function(e,t){return An("NumberLessThanLog",e,t)},On=function(e){return An("KeyValueStringRequiredLog",e)},Mn=function(){return An("PlainObjectRequiredLog")},kn=function(){return An("NonEmptyContentRequiredLog")},Cn=function(){return An("FileNotSelectedLog")},wn=function(){return An("MessageInstanceRequiredLog")},In=function(){return An("NonAnonymousFunctionLog")},Sn=function(){return An("MessageExtensionNotAvailableLog")},Tn={type:"String",required:!0},En={type:"Array",required:!0},jn={type:"Object",required:!0},Dn={type:"Boolean",required:!0},Ln={type:"number",required:!0},An=null,Nn={hookGetAPITips:function(e){An=e},login:{userID:Tn,userSig:Tn},addToBlacklist:{userIDList:En},removeFromBlacklist:{userIDList:En},on:[{name:"eventName",type:"String",validator:function(e){return"string"==typeof e&&0!==e.length||(cn({api:"on",param:"eventName",desc:un("eventName")}),!1)}},{name:"handler",type:"Function",validator:function(e){return"function"!=typeof e?(cn({api:"on",param:"handler",desc:hn()}),!1):(""===e.name&&cn({api:"on",param:"handler",desc:In()}),!0)}}],once:[{name:"eventName",type:"String",validator:function(e){return"string"==typeof e&&0!==e.length||(cn({api:"once",param:"eventName",desc:un("eventName")}),!1)}},{name:"handler",type:"Function",validator:function(e){return"function"!=typeof e?(cn({api:"once",param:"handler",desc:hn()}),!1):(""===e.name&&cn({api:"once",param:"handler",desc:In()}),!0)}}],off:[{name:"eventName",type:"String",validator:function(e){return"string"==typeof e&&0!==e.length||(cn({api:"off",param:"eventName",desc:un("eventName")}),!1)}},{name:"handler",type:"Function",validator:function(e){return"function"!=typeof e?(cn({api:"off",param:"handler",desc:hn()}),!1):(""===e.name&&cn({api:"off",param:"handler",desc:In()}),!0)}}],sendMessage:[n({name:"message"},jn)],setMessageExtensions:[n(n({name:"message"},jn),{},{validator:function(e){return e.status===on.SUCCESS&&!0===e.isSupportExtension||(cn({api:"setMessageExtensions",param:"message",desc:Sn()}),!1)}}),n({name:"extensions"},En)],getMessageExtensions:[n(n({name:"message"},jn),{},{validator:function(e){return e.status===on.SUCCESS&&!0===e.isSupportExtension||(cn({api:"getMessageExtensions",param:"message",desc:Sn()}),!1)}})],deleteMessageExtensions:[n(n({name:"message"},jn),{},{validator:function(e){return e.status===on.SUCCESS&&!0===e.isSupportExtension||(cn({api:"deleteMessageExtensions",param:"message",desc:Sn()}),!1)}})],getMessageList:{conversationID:n(n({},Tn),{},{validator:function(e){return sn(e)}}),nextReqMessageID:{type:"String"},count:{type:"Number",validator:function(e){return!(!pt(e)&&!/^[1-9][0-9]*$/.test(e))||(cn({api:"getMessageList",param:"count",desc:_n()}),!1)}}},getMessageListHopping:{conversationID:n(n({},Tn),{},{validator:function(e){return sn(e)}}),sequence:{type:"Number"},time:{type:"Number"},direction:{type:"Number",validator:function(e){return!(!pt(e)&&0!==e&&1!==e)||(cn({api:"getMessageListHopping",param:"direction",desc:An("0Or1RequiredLog")}),!1)}},count:{type:"Number",validator:function(e){return!(!pt(e)&&!/^[1-9][0-9]*$/.test(e))||(cn({api:"getMessageListHopping",param:"count",desc:_n}),!1)}}},setMessageRead:{conversationID:n(n({},Tn),{},{validator:function(e){return sn(e)}})},setAllMessageRead:{scope:{type:"String",required:!1,validator:function(e){return!e||-1!==[S.READ_ALL_C2C_MSG,S.READ_ALL_GROUP_MSG,S.READ_ALL_MSG].indexOf(e)||(cn({api:"setAllMessageRead",param:"scope",desc:"TIM.TYPES.READ_ALL_C2C_MSG or TIM.TYPES.READ_ALL_GROUP_MSG or TIM.TYPES.READ_ALL_MSG required"}),!1)}}},getConversationProfile:[n(n({name:"conversationID"},Tn),{},{validator:function(e){return sn(e)}})],clearHistoryMessage:[n(n({name:"conversationID"},Tn),{},{validator:function(e){return sn(e)}})],pinConversation:{conversationID:n(n({},Tn),{},{validator:function(e){return sn(e)}}),isPinned:n({},Dn)},setConversationCustomData:{conversationIDList:n({},En),customData:{type:"String",validator:function(e){return ct(e)?!(e.length>256)||(cn({api:"setConversationCustomData",param:"customData",desc:yn("customData",256)}),!1):(cn({api:"setConversationCustomData",param:"customData",desc:ln()}),!1)}}},markConversation:{conversationIDList:n({},En),markType:{type:"number",validator:function(e){return st(e)?e<=0?(cn({api:"markConversation",param:"markType",desc:(t="markType",n=0,An("NumberGreaterThanLog",t,n))}),!1):!(e>=Math.pow(2,64))||(cn({api:"markConversation",param:"markType",desc:bn("markType","Math.pow(2,64)")}),!1):(cn({api:"markConversation",param:"markType",desc:dn()}),!1);var t,n}},enableMark:n({},Dn)},createConversationGroup:{conversationIDList:n({},En),groupName:n(n({},Tn),{},{validator:function(e){return!!e&&(!(e.length>32)||(cn({api:"createConversationGroup",param:"groupName",desc:yn("groupName",32)}),!1))}})},deleteConversationGroup:[n({name:"groupName"},Tn)],renameConversationGroup:{oldName:n({},Tn),newName:n(n({},Tn),{},{validator:function(e){return!!e&&(!(e.length>32)||(cn({api:"renameConversationGroup",param:"newName",desc:yn("newName",32)}),!1))}})},addConversationsToGroup:{conversationIDList:n({},En),groupName:n({},Tn)},deleteConversationsFromGroup:{conversationIDList:n({},En),groupName:n({},Tn)},getGroupList:{groupProfileFilter:{type:"Array"}},getGroupProfile:{groupID:Tn,groupCustomFieldFilter:{type:"Array"},memberCustomFieldFilter:{type:"Array"}},getGroupProfileAdvance:{groupIDList:En},createGroup:{name:Tn},joinGroup:{groupID:Tn,type:{type:"String"},applyMessage:{type:"String"}},quitGroup:[n({name:"groupID"},Tn)],handleApplication:{message:jn,handleAction:Tn,handleMessage:{type:"String"}},changeGroupOwner:{groupID:Tn,newOwnerID:Tn},updateGroupProfile:{groupID:Tn,muteAllMembers:{type:"Boolean"}},dismissGroup:[n({name:"groupID"},Tn)],searchGroupByID:[n({name:"groupID"},Tn)],initGroupAttributes:{groupID:Tn,groupAttributes:n(n({},jn),{},{validator:function(e){var t=!0;return Object.keys(e).forEach((function(n){if(!ct(e[n]))return cn({api:"initGroupAttributes",param:"groupAttributes",desc:On("value")}),t=!1})),t}})},setGroupAttributes:{groupID:Tn,groupAttributes:n(n({},jn),{},{validator:function(e){var t=!0;return Object.keys(e).forEach((function(n){if(!ct(e[n]))return cn({api:"setGroupAttributes",param:"groupAttributes",desc:On("value")}),t=!1})),t}})},deleteGroupAttributes:{groupID:Tn,keyList:{type:"Array",validator:function(e){if(pt(e)||!dt(e))return cn({api:"deleteGroupAttributes",param:"keyList",desc:mn()}),!1;if(!en(e)){var t=!0;return e.forEach((function(e){if(!ct(e))return cn({api:"deleteGroupAttributes",param:"keyList",desc:An("StringArrayRequiredLog")}),t=!1})),t}return!0}}},getGroupAttributes:{groupID:Tn,keyList:{type:"Array",validator:function(e){if(pt(e)||!dt(e))return cn({api:"getGroupAttributes",param:"keyList",desc:mn()}),!1;if(!en(e)){var t=!0;return e.forEach((function(e){if(!ct(e))return cn({api:"getGroupAttributes",param:"keyList",desc:On("key")}),t=!1})),t}return!0}}},setGroupCounters:{groupID:Tn,counters:jn},increaseGroupCounter:{groupID:Tn,key:Tn,value:Ln},decreaseGroupCounter:{groupID:Tn,key:Tn,value:Ln},getGroupCounters:{groupID:Tn},getGroupMemberList:{groupID:Tn,count:{type:"Number"}},getGroupMemberProfile:{groupID:Tn,userIDList:En,memberCustomFieldFilter:{type:"Array"}},addGroupMember:{groupID:Tn,userIDList:En},setGroupMemberRole:{groupID:Tn,userID:Tn,role:Tn},setGroupMemberMuteTime:{groupID:Tn,userID:Tn,muteTime:{type:"Number",validator:function(e){return e>=0}}},setGroupMemberNameCard:{groupID:Tn,userID:{type:"String"},nameCard:{type:"String",validator:function(e){return ct(e)?(e.length,!0):(cn({api:"setGroupMemberNameCard",param:"nameCard",desc:ln()}),!1)}}},setGroupMemberCustomField:{groupID:Tn,userID:{type:"String"},memberCustomField:En},deleteGroupMember:{groupID:Tn},markGroupMemberList:{groupID:Tn,markType:{type:"number",validator:function(e){return st(e)?!(e<1e3)||(cn({api:"markGroupMemberList",param:"markType",desc:(t="markType",n=1e3,An("NumberGreaterOrEqualLog",t,n))}),!1):(cn({api:"markGroupMemberList",param:"markType",desc:dn()}),!1);var t,n}},userIDList:n({},En),enableMark:n({},Dn)},createTextMessage:{to:Tn,conversationType:Tn,payload:n(n({},jn),{},{validator:function(e){return ut(e)?ct(e.text)?0!==e.text.length||(cn({api:"createTextMessage",param:"payload.text",desc:kn()}),!1):(cn({api:"createTextMessage",param:"payload.text",desc:ln()}),!1):(cn({api:"createTextMessage",param:"payload",desc:Mn()}),!1)}})},createTextAtMessage:{to:Tn,conversationType:Tn,payload:n(n({},jn),{},{validator:function(e){return ut(e)?ct(e.text)?0===e.text.length?(cn({api:"createTextAtMessage",param:"payload.text",desc:kn()}),!1):!(e.atUserList&&!dt(e.atUserList))||(cn({api:"createTextAtMessage",param:"payload.atUserList",desc:mn()}),!1):(cn({api:"createTextAtMessage",param:"payload.text",desc:ln()}),!1):(cn({api:"createTextAtMessage",param:"payload",desc:Mn()}),!1)}})},createCustomMessage:{to:Tn,conversationType:Tn,payload:n(n({},jn),{},{validator:function(e){return ut(e)?e.data&&!ct(e.data)?(cn({api:"createCustomMessage",param:"payload.data",desc:ln()}),!1):e.description&&!ct(e.description)?(cn({api:"createCustomMessage",param:"payload.description",desc:ln()}),!1):!(e.extension&&!ct(e.extension))||(cn({api:"createCustomMessage",param:"payload.extension",desc:ln()}),!1):(cn({api:"createCustomMessage",param:"payload",desc:Mn()}),!1)}})},createImageMessage:{to:Tn,conversationType:Tn,payload:n(n({},jn),{},{validator:function(e){if(!ut(e))return cn({api:"createImageMessage",param:"payload",desc:Mn()}),!1;if(pt(e.file))return cn({api:"createImageMessage",param:"payload.file",desc:pn()}),!1;if(se){if(!(e.file instanceof HTMLInputElement||it(e.file)))return ut(e.file)&&"undefined"!=typeof uni?0!==e.file.tempFilePaths.length&&0!==e.file.tempFiles.length||(cn({api:"createImageMessage",param:"payload.file",desc:Cn()}),!1):(cn({api:"createImageMessage",param:"payload.file",desc:fn()}),!1);if(e.file instanceof HTMLInputElement&&0===e.file.files.length)return cn({api:"createImageMessage",param:"payload.file",desc:Cn()}),!1}return!0},onProgress:{type:"Function",required:!1,validator:function(e){return pt(e)&&cn({api:"createImageMessage",param:"onProgress",desc:gn()}),!0}}})},createAudioMessage:{to:Tn,conversationType:Tn,payload:n(n({},jn),{},{validator:function(e){return!!ut(e)||(cn({api:"createAudioMessage",param:"payload",desc:Mn()}),!1)}}),onProgress:{type:"Function",required:!1,validator:function(e){return pt(e)&&cn({api:"createAudioMessage",param:"onProgress",desc:gn()}),!0}}},createVideoMessage:{to:Tn,conversationType:Tn,payload:n(n({},jn),{},{validator:function(e){if(!ut(e))return cn({api:"createVideoMessage",param:"payload",desc:Mn()}),!1;if(pt(e.file))return cn({api:"createVideoMessage",param:"payload.file",desc:pn()}),!1;if(se){if(!(e.file instanceof HTMLInputElement||it(e.file)))return ut(e.file)&&"undefined"!=typeof uni?!!it(e.file.tempFile)||(cn({api:"createVideoMessage",param:"payload.file",desc:Cn()}),!1):(cn({api:"createVideoMessage",param:"payload.file",desc:fn()}),!1);if(e.file instanceof HTMLInputElement&&0===e.file.files.length)return cn({api:"createVideoMessage",param:"payload.file",desc:Cn()}),!1}return!0}}),onProgress:{type:"Function",required:!1,validator:function(e){return pt(e)&&cn({api:"createVideoMessage",param:"onProgress",desc:gn()}),!0}}},createFaceMessage:{to:Tn,conversationType:Tn,payload:n(n({},jn),{},{validator:function(e){return ut(e)?st(e.index)?!!ct(e.data)||(cn({api:"createFaceMessage",param:"payload.data",desc:ln()}),!1):(cn({api:"createFaceMessage",param:"payload.index",desc:dn()}),!1):(cn({api:"createFaceMessage",param:"payload",desc:Mn()}),!1)}})},createFileMessage:{to:Tn,conversationType:Tn,payload:n(n({},jn),{},{validator:function(e){if(!ut(e))return cn({api:"createFileMessage",param:"payload",desc:Mn()}),!1;if(pt(e.file))return cn({api:"createFileMessage",param:"payload.file",desc:pn()}),!1;if(se){if(!(e.file instanceof HTMLInputElement||it(e.file)))return ut(e.file)&&"undefined"!=typeof uni?0!==e.file.tempFilePaths.length&&0!==e.file.tempFiles.length||(cn({api:"createFileMessage",param:"payload.file",desc:Cn()}),!1):(cn({api:"createFileMessage",param:"payload.file",desc:fn()}),!1);if(e.file instanceof HTMLInputElement&&0===e.file.files.length)return cn({api:"createFileMessage",param:"payload.file",desc:Cn()}),!1}return!0}}),onProgress:{type:"Function",required:!1,validator:function(e){return pt(e)&&cn({api:"createFileMessage",param:"onProgress",desc:gn()}),!0}}},createLocationMessage:{to:Tn,conversationType:Tn,payload:n(n({},jn),{},{validator:function(e){return ut(e)?ct(e.description)?st(e.longitude)?!!st(e.latitude)||(cn({api:"createLocationMessage",param:"payload.latitude",desc:dn()}),!1):(cn({api:"createLocationMessage",param:"payload.longitude",desc:dn()}),!1):(cn({api:"createLocationMessage",param:"payload.description",desc:ln()}),!1):(cn({api:"createLocationMessage",param:"payload",desc:Mn()}),!1)}})},createMergerMessage:{to:Tn,conversationType:Tn,payload:n(n({},jn),{},{validator:function(e){if(en(e.messageList))return cn({api:"createMergerMessage",param:"payload.messageList",desc:vn()}),!1;if(en(e.compatibleText))return cn({api:"createMergerMessage",param:"payload.compatibleText",desc:un("compatibleText")}),!1;var t=!1;return e.messageList.forEach((function(e){e.status===on.FAIL&&(t=!0)})),!t||(cn({api:"createMergerMessage",param:"payload.messageList",desc:An("MergeFailedMessageLog")}),!1)}})},revokeMessage:[n(n({name:"message"},jn),{},{validator:function(e){return en(e)?(cn({api:"revokeMessage",param:"message",desc:wn()}),!1):e.conversationType===S.CONV_SYSTEM?(cn({api:"revokeMessage",param:"message",desc:An("MessageCanBeRevokedDesc")}),!1):!0!==e.isRevoked||(cn({api:"revokeMessage",param:"message",desc:An("MessageRevokedLog")}),!1)}})],deleteMessage:[n(n({name:"messageList"},En),{},{validator:function(e){return!en(e)||(cn({api:"deleteMessage",param:"messageList",desc:vn()}),!1)}})],translateText:{sourceTextList:En,sourceLanguage:Tn,targetLanguage:Tn},modifyMessage:[n(n({name:"message"},jn),{},{validator:function(e){return en(e)?(cn({api:"modifyMessage",param:"message",desc:wn()}),!1):e.conversationType===S.CONV_SYSTEM?(cn({api:"modifyMessage",param:"message",desc:An("MessageCanBeModifiedLog")}),!1):!0!==e._onlineOnlyFlag||(cn({api:"modifyMessage",param:"message",desc:An("OnlineMessageNotSupportLog")}),!1)}})],getUserProfile:{userIDList:{type:"Array",validator:function(e){return dt(e)?(0===e.length&&cn({api:"getUserProfile",param:"userIDList",desc:vn()}),!0):(cn({api:"getUserProfile",param:"userIDList",desc:mn()}),!1)}}},updateMyProfile:{profileCustomField:{type:"Array",validator:function(e){return!!pt(e)||!!dt(e)||(cn({api:"updateMyProfile",param:"profileCustomField",desc:mn()}),!1)}}},setSelfStatus:{customStatus:{type:"String",validator:function(e){return!!ct(e)||(cn({api:"setSelfStatus",param:"customStatus",desc:ln()}),!1)}}},getUserStatus:{userIDList:{type:"Array",validator:function(e){return dt(e)?0!==e.length||(cn({api:"getUserStatus",param:"userIDList",desc:vn()}),!1):(cn({api:"getUserStatus",param:"userIDList",desc:mn()}),!1)}}},subscribeUserStatus:{userIDList:{type:"Array",validator:function(e){return dt(e)?0!==e.length||(cn({api:"subscribeUserStatus",param:"userIDList",desc:vn()}),!1):(cn({api:"subscribeUserStatus",param:"userIDList",desc:mn()}),!1)}}},unsubscribeUserStatus:{userIDList:{type:"Array",validator:function(e){return!e||!!dt(e)||(cn({api:"subscribeUserStatus",param:"userIDList",desc:mn()}),!1)}}},addFriend:{to:Tn,source:{type:"String",required:!0,validator:function(e){return!!e&&(e.startsWith("AddSource_Type_")?!(e.replace("AddSource_Type_","").length>8)||(cn({api:"addFriend",param:"source",desc:yn("keyword",8)}),!1):(cn({api:"addFriend",param:"source",desc:An("SourcePrefixLog")}),!1))}},remark:{type:"String",required:!1,validator:function(e){return!(ct(e)&&e.length>96)||(cn({api:"addFriend",param:"remark",desc:yn("remark",96)}),!1)}}},deleteFriend:{userIDList:En},checkFriend:{userIDList:En},getFriendProfile:{userIDList:En},updateFriend:{userID:Tn,remark:{type:"String",required:!1,validator:function(e){return!(ct(e)&&e.length>96)||(cn({api:"updateFriend",param:"remark",desc:yn("remark",96)}),!1)}},friendCustomField:{type:"Array",required:!1,validator:function(e){if(e){if(!dt(e))return cn({api:"updateFriend",param:"friendCustomField",desc:mn()}),!1;var t=!0;return e.forEach((function(e){return ct(e.key)&&-1!==e.key.indexOf("Tag_SNS_Custom")?ct(e.value)?e.key.replace("Tag_SNS_Custom_","").length>8?(cn({api:"updateFriend",param:"friendCustomField",desc:yn("keyword",8)}),t=!1):void 0:(cn({api:"updateFriend",param:"friendCustomField",desc:On("value")}),t=!1):(cn({api:"updateFriend",param:"friendCustomField",desc:An("FriendCustomFieldPrefixLog")}),t=!1)})),t}return!0}}},acceptFriendApplication:{userID:Tn},refuseFriendApplication:{userID:Tn},deleteFriendApplication:{userID:Tn},createFriendGroup:{name:Tn},deleteFriendGroup:{name:Tn},addToFriendGroup:{name:Tn,userIDList:En},removeFromFriendGroup:{name:Tn,userIDList:En},renameFriendGroup:{oldName:Tn,newName:Tn},sendMessageReadReceipt:[{name:"messageList",type:"Array",validator:function(e){return dt(e)?0!==e.length||(cn({api:"sendMessageReadReceipt",param:"messageList",desc:vn()}),!1):(cn({api:"sendMessageReadReceipt",param:"messageList",desc:mn()}),!1)}}],getMessageReadReceiptList:[{name:"messageList",type:"Array",validator:function(e){return dt(e)?0!==e.length||(cn({api:"getMessageReadReceiptList",param:"messageList",desc:vn()}),!1):(cn({api:"getMessageReadReceiptList",param:"messageList",desc:mn()}),!1)}}],createTopicInCommunity:{groupID:Tn,topicName:Tn},deleteTopicFromCommunity:{groupID:Tn,topicIDList:{type:"Array",validator:function(e){return!e||!!dt(e)||(cn({api:"deleteTopicFromCommunity",param:"topicIDList",desc:mn()}),!1)}}},updateTopicProfile:{groupID:Tn,topicID:Tn},getTopicList:{groupID:Tn,topicIDList:{type:"Array",validator:function(e){return!e||!!dt(e)||(cn({api:"getTopicList",param:"topicIDList",desc:mn()}),!1)}}}},xn={login:1,logout:1,on:1,once:1,off:1,setLogLevel:1,registerPlugin:1,destroy:1,createTextMessage:1,createTextAtMessage:1,createImageMessage:1,createAudioMessage:1,createVideoMessage:1,createCustomMessage:1,createFaceMessage:1,createFileMessage:1,createLocationMessage:1,createMergerMessage:1,downloadMergerMessage:1,createForwardMessage:1,sendMessage:1,resendMessage:1,revokeMessage:1,deleteMessage:1,translateText:1,modifyMessage:1,sendMessageReadReceipt:1,getGroupMessageReadMemberList:1,getMessageReadReceiptList:1,setMessageExtensions:1,getMessageExtensions:1,deleteMessageExtensions:1,getMessageList:1,findMessage:1,getMessageListHopping:1,setMessageRead:1,setAllMessageRead:1,getConversationList:1,getConversationProfile:1,deleteConversation:1,pinConversation:1,getTotalUnreadMessageCount:1,setConversationCustomData:1,markConversation:1,createConversationGroup:1,getConversationGroupList:1,deleteConversationGroup:1,renameConversationGroup:1,addConversationsToGroup:1,deleteConversationsFromGroup:1,clearHistoryMessage:1,getGroupList:1,getGroupProfile:1,createGroup:1,joinGroup:1,updateGroupProfile:1,quitGroup:1,dismissGroup:1,changeGroupOwner:1,searchGroupByID:1,setMessageRemindType:1,getGroupApplicationList:1,handleGroupApplication:1,initGroupAttributes:1,setGroupAttributes:1,deleteGroupAttributes:1,getGroupAttributes:1,setGroupCounters:1,increaseGroupCounter:1,decreaseGroupCounter:1,getGroupCounters:1,getJoinedCommunityList:1,createTopicInCommunity:1,deleteTopicFromCommunity:1,updateTopicProfile:1,getTopicList:1,getGroupMemberProfile:1,getGroupMemberList:1,addGroupMember:1,deleteGroupMember:1,setGroupMemberNameCard:1,setGroupMemberMuteTime:1,setGroupMemberRole:1,setGroupMemberCustomField:1,getGroupOnlineMemberCount:1,markGroupMemberList:1,getMyProfile:1,getUserProfile:1,updateMyProfile:1,setSelfStatus:1,getUserStatus:1,subscribeUserStatus:1,unsubscribeUserStatus:1,getBlacklist:1,addToBlacklist:1,removeFromBlacklist:1,getFriendList:1,addFriend:1,deleteFriend:1,checkFriend:1,updateFriend:1,getFriendProfile:1,getFriendApplicationList:1,refuseFriendApplication:1,deleteFriendApplication:1,acceptFriendApplication:1,setFriendApplicationRead:1,getFriendGroupList:1,createFriendGroup:1,renameFriendGroup:1,deleteFriendGroup:1,addToFriendGroup:1,removeFromFriendGroup:1,callExperimentalAPI:1},Rn=1,Pn=2,Un=3,Vn=4,Bn=6,Fn=7,Gn=8,zn=9,Hn=10,Yn=11,qn=12,Wn=13,Kn=14,$n=15,Jn=16,Qn=17,Xn=18,Zn=19,er=20,tr=21,nr=22,rr=23,or=24,ar=25,ir=26,sr=27,cr=28,lr=29,ur=30,dr=31,pr=32,fr=function(){function e(t){o(this,e),this._m=t,this._n=""}return i(e,[{key:"isLoggedIn",value:function(){return this._m.getModule(qn).isLoggedIn()}},{key:"isOversea",value:function(){return this._m.getModule(qn).isOversea()}},{key:"isPrivateNetWork",value:function(){return this._m.getModule(qn).isPrivateNetWork()}},{key:"getFileDownloadProxy",value:function(){return this._m.getModule(qn).getFileDownloadProxy()}},{key:"getMyUserID",value:function(){return this._m.getModule(qn).getUserID()}},{key:"getMyTinyID",value:function(){return this._m.getModule(qn).getTinyID()}},{key:"getSDKAppID",value:function(){return this._m.getModule(qn).getSDKAppID()}},{key:"isIntl",value:function(){return this._m.getModule(qn).isIntl()}},{key:"isDevMode",value:function(){return this._m.getModule(qn).isDevMode()}},{key:"getModule",value:function(e){return this._m.getModule(e)}},{key:"getPlatform",value:function(){return he}},{key:"getNetworkType",value:function(){return this._m.getModule($n).getNetworkType()}},{key:"probeNetwork",value:function(e){return this._m.getModule($n).probe(e)}},{key:"getCloudConfig",value:function(e){return this._m.getModule(rr).getCloudConfig(e)}},{key:"emitOuterEvent",value:function(e,t){this._m.getOuterEmitterInstance().emit(e,t)}},{key:"emitInnerEvent",value:function(e,t){this._m.getInnerEmitterInstance().emit(e,t)}},{key:"getInnerEmitterInstance",value:function(){return this._m.getInnerEmitterInstance()}},{key:"generateTjgID",value:function(e){return this._m.getModule(qn).getTinyID()+"-"+e.random}},{key:"filterModifiedMessage",value:function(e){if(!en(e)){var t=e.filter((function(e){return!0===e.isModified}));t.length>0&&this.emitOuterEvent(I.MESSAGE_MODIFIED,t)}}},{key:"filterUnmodifiedMessage",value:function(e){return en(e)?[]:e.filter((function(e){return!1===e.isModified}))}},{key:"request",value:function(e){return this._m.getModule(er).request(e)}},{key:"canIUse",value:function(e){return this._m.getModule(sr).canIUse(e)}},{key:"getErrorMessage",value:function(e,t,n){return this._m.getErrorMessage(e,t,n)}},{key:"outputWarning",value:function(e,t,n){var r=this.getErrorMessage(e,t,n);r&&Ge.w(r)}}]),e}(),hr="wslogin",mr="wslogout",vr="wshello",gr="KickOther",_r="getmsg",yr="authkey",br="sendmsg",Or="send_group_msg",Mr="portrait_get_all",kr="portrait_set",Cr="black_list_get",wr="black_list_add",Ir="black_list_delete",Sr="friend_get",Tr="friend_get_specified",Er="friend_check",jr="friend_delete",Dr="friend_add",Lr="friend_update",Ar="friend_response",Nr="pendency_get",xr="pendency_delete",Rr="pendency_report",Pr="group_get",Ur="group_add",Vr="group_delete",Br="group_update",Fr="msgwithdraw",Gr="msgreaded",zr="set_c2c_peer_mute_notifications",Hr="get_c2c_peer_mute_notifications",Yr="getroammsg",qr="get_peer_read_time",Wr="delete_c2c_msg_ramble",Kr="modify_c2c_msg",$r="set_key_values",Jr="get_key_values",Qr="page_get",Xr="get",Zr="batch_delete",eo="clear_msg",to="top",no="deletemsg",ro="set_conv_custom_data",oo="mark_contact",ao="create_contact_group",io="del_contact_group",so="update_contact_group",co="add_conv_to_group",lo="del_conv_from_group",uo="get_contact_group",po="get_joined_group_list",fo="get_group_self_member_info",ho="create_group",mo="destroy_group",vo="modify_group_base_info",go="apply_join_group",_o="apply_join_group_noauth",yo="quit_group",bo="get_group_public_info",Oo="change_group_owner",Mo="handle_apply_join_group",ko="handle_invite_join_permission_group",Co="handle_invite_join_group",wo="group_msg_recall",Io="msg_read_report",So="read_all_unread_msg",To="group_msg_get",Eo="get_group_msg_receipt",jo="group_msg_receipt",Do="c2c_msg_read_receipt",Lo="get_group_msg_receipt_detail",Ao="get_pendency",No="deletemsg",xo="get_msg",Ro="get_msg_noauth",Po="get_online_member_num",Uo="delete_group_ramble_msg_by_seq",Vo="modify_group_msg",Bo="set_group_attr",Fo="modify_group_attr",Go="delete_group_attr",zo="clear_group_attr",Ho="get_group_attr",Yo="group_set_key_values",qo="group_get_key_values",Wo="get_group_notify",Ko="update_group_counter",$o="get_group_counter",Jo="get_group_member_info",Qo="get_members",Xo="get_specified_group_member_info",Zo="add_group_member",ea="delete_group_member",ta="ban_group_member",na="modify_group_member_info",ra="modify_user_info",oa="cos",aa="pre_sig",ia="video_cover",sa="tim_web_report_v2",ca="alive",la="msg_push",ua="multi_msg_push_ws",da="ws_msg_push_ack",pa="stat_forceoffline",fa="save_relay_json_msg",ha="get_relay_json_msg",ma="fetch_config",va="push_configv2",ga="fetch_imsdk_purchase_bitsv2",_a="push_imsdk_purchase_bitsv2",ya="notify2",ba="create_topic",Oa="destroy_topic",Ma="modify_topic",ka="get_topic",Ca="ws_set_custom_status",wa="ws_get_user_status",Ia="ws_status_subscribe",Sa="ws_status_unsubscribe",Ta="ws_stat_background",Ea="ws_stat_foreground",ja="ws_stat_settoken",Da="get_local_words",La="ws_batch_trans_text",Aa={NO_SDKAPPID:2e3,NO_ACCOUNT_TYPE:2001,NO_IDENTIFIER:2002,NO_USERSIG:2003,NO_TINYID:2022,NO_A2KEY:2023,USER_NOT_LOGGED_IN:2024,REPEAT_LOGIN:2025,COS_UNDETECTED:2040,COS_GET_SIG_FAIL:2041,MESSAGE_SEND_FAIL:2100,MESSAGE_SEND_FAIL_NOT_IN_AVCHATROOM:2101,MESSAGE_SEND_NEED_MESSAGE_INSTANCE:2105,MESSAGE_SEND_INVALID_CONVERSATION_TYPE:2106,MESSAGE_FILE_IS_EMPTY:2108,MESSAGE_ONPROGRESS_FUNCTION_ERROR:2109,MESSAGE_REVOKE_FAIL:2110,MESSAGE_DELETE_FAIL:2111,MESSAGE_UNREAD_ALL_FAIL:2112,READ_RECEIPT_MESSAGE_LIST_EMPTY:2114,MESSAGE_SEND_GROUP_WITH_TOPIC_FAIL:2115,CANNOT_DELETE_GROUP_SYSTEM_NOTICE:2116,TRANSLATE_TEXT_FAIL:2117,MESSAGE_IMAGE_SELECT_FILE_FIRST:2251,MESSAGE_IMAGE_TYPES_LIMIT:2252,MESSAGE_IMAGE_SIZE_LIMIT:2253,MESSAGE_AUDIO_UPLOAD_FAIL:2300,MESSAGE_AUDIO_SIZE_LIMIT:2301,MESSAGE_VIDEO_UPLOAD_FAIL:2350,MESSAGE_VIDEO_SIZE_LIMIT:2351,MESSAGE_VIDEO_TYPES_LIMIT:2352,MESSAGE_FILE_UPLOAD_FAIL:2400,MESSAGE_FILE_SELECT_FILE_FIRST:2401,MESSAGE_FILE_SIZE_LIMIT:2402,MESSAGE_FILE_URL_IS_EMPTY:2403,MESSAGE_MERGER_TYPE_INVALID:2450,MESSAGE_MERGER_KEY_INVALID:2451,MESSAGE_MERGER_DOWNLOAD_FAIL:2452,MESSAGE_FORWARD_TYPE_INVALID:2453,MESSAGE_MODIFY_CONFLICT:2480,MESSAGE_MODIFY_DISABLED_IN_AVCHATROOM:2481,CONVERSATION_NOT_FOUND:2500,USER_OR_GROUP_NOT_FOUND:2501,CONVERSATION_UN_RECORDED_TYPE:2502,INVALID_CONVERSATION_ID:2503,ILLEGAL_GROUP_TYPE:2600,CANNOT_JOIN_WORK:2601,ILLEGAL_GROUP_ID:2602,CANNOT_FIND_GROUP:2603,CANNOT_CHANGE_OWNER_IN_AVCHATROOM:2620,CANNOT_CHANGE_OWNER_TO_SELF:2621,CANNOT_DISMISS_WORK:2622,MEMBER_NOT_IN_GROUP:2623,JOIN_GROUP_FAIL:2660,CANNOT_ADD_MEMBER_IN_AVCHATROOM:2661,CANNOT_JOIN_NON_AVCHATROOM_WITHOUT_LOGIN:2662,NOT_OWNER:2681,CANNOT_SET_MEMBER_ROLE_IN_WORK_AND_AVCHATROOM:2682,INVALID_MEMBER_ROLE:2683,CANNOT_SET_SELF_MEMBER_ROLE:2684,CANNOT_MUTE_SELF:2685,BAN_DURATION_INVALID:2686,NOT_MY_FRIEND:2700,ALREADY_MY_FRIEND:2701,FRIEND_GROUP_EXISTED:2710,FRIEND_GROUP_NOT_EXIST:2711,FRIEND_APPLICATION_NOT_EXIST:2716,UPDATE_PROFILE_INVALID_PARAM:2721,UPDATE_PROFILE_NO_KEY:2722,CANNOT_ADD_SELF_TO_BLACKLIST:2742,NETWORK_ERROR:2800,NETWORK_TIMEOUT:2801,NO_NETWORK:2805,UNCAUGHT_ERROR:2903,INVALID_OPERATION:2905,OVER_FREQUENCY_LIMIT:2996,CANNOT_FIND_PROTOCOL:2997,CANNOT_FIND_MODULE:2998,SDK_IS_NOT_READY:2999,LOGGING_IN:3e3,LOGIN_FAILED:3001,KICKED_OUT_MULT_DEVICE:3002,KICKED_OUT_MULT_ACCOUNT:3003,KICKED_OUT_USERSIG_EXPIRED:3004,LOGGED_OUT:3005,KICKED_OUT_REST_API:3006,ILLEGAL_TOPIC_ID:3021,CANNOT_USE_COMMERCIAL_ABILITY:3122,PROFANITY_FOUND:3123,MESSAGE_A2KEY_EXPIRED:20002,ACCOUNT_A2KEY_EXPIRED:70001,HELLO_ANSWER_KICKED_OUT:1002,OPEN_SERVICE_OVERLOAD_ERROR:60022},Na="networkRTT",xa="messageE2EDelay",Ra="sendMessageC2C",Pa="sendMessageGroup",Ua="sendMessageGroupAV",Va="sendMessageRichMedia",Ba="cosUpload",Fa="messageReceivedGroup",Ga="messageReceivedGroupAVPush",za="messageReceivedGroupAVPull",Ha=(s(rn={},Na,2),s(rn,xa,3),s(rn,Ra,4),s(rn,Pa,5),s(rn,Ua,6),s(rn,Va,7),s(rn,Fa,8),s(rn,Ga,9),s(rn,za,10),s(rn,Ba,11),rn),Ya={info:4,warning:5,error:6},qa={wifi:1,"2g":2,"3g":3,"4g":4,"5g":5,unknown:6,none:7,online:8},Wa={login:4},Ka=function(){function e(t){o(this,e),this._n="SSOLogData",this.eventType=Wa[t]||0,this.timestamp=0,this.networkType=8,this.code=0,this.message="",this.moreMessage="",this.extension=t,this.costTime=0,this.duplicate=!1,this.level=4,this.uiPlatform=void 0,this._sentFlag=!1,this._startts=Re()}return i(e,[{key:"updateTimeStamp",value:function(){this.timestamp=Re()}},{key:"start",value:function(e){return this._startts=e,this}},{key:"end",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this._sentFlag){var n=Re();0===this.costTime&&(this.costTime=n-this._startts),this.setMoreMessage("startts:".concat(this._startts," endts:").concat(n)),t?(this._sentFlag=!0,this._eventStatModule&&this._eventStatModule.pushIn(this)):setTimeout((function(){e._sentFlag=!0,e._eventStatModule&&e._eventStatModule.pushIn(e)}),0)}}},{key:"setError",value:function(e,t,n){if(!(e instanceof Error))return Ge.w("".concat(this._n,".setError value not instanceof Error, please check!")),this;if(this._sentFlag)return this;if(this.setNetworkType(n),t)e.code&&this.setCode(e.code),e.message&&this.setMoreMessage(e.message);else{var r=Aa.NO_NETWORK;this.setCode(r)}return this.setLevel("error"),this}},{key:"setCode",value:function(e){return pt(e)||this._sentFlag||("ECONNABORTED"===e&&(this.code=103),st(e)?this.code=e:Ge.w("".concat(this._n,".setCode value not a number, please check!"),e,r(e))),this}},{key:"setMessage",value:function(e){return pt(e)||this._sentFlag||(st(e)&&(this.message=e.toString()),ct(e)&&(this.message=e)),this}},{key:"setCostTime",value:function(e){return this.costTime=e,this}},{key:"setLevel",value:function(e){return pt(e)||this._sentFlag||(this.level=Ya[e]),this}},{key:"setMoreMessage",value:function(e){return en(this.moreMessage)?this.moreMessage="".concat(e):this.moreMessage+=" ".concat(e),this}},{key:"setNetworkType",value:function(e){if(pt(e))Ge.w("".concat(this._n,".setNetworkType value is undefined, please check!"));else{var t=qa[e.toLowerCase()];pt(t)||(this.networkType=t)}return this}},{key:"getStartTs",value:function(){return this._startts}},{key:"setUIPlatform",value:function(e){this.uiPlatform=e}}],[{key:"bindEventStatModule",value:function(t){e.prototype._eventStatModule=t}}]),e}(),$a=function(){function e(t){o(this,e),this.type=S.MSG_TEXT,this.content={text:t.text||""}}return i(e,[{key:"setText",value:function(e){this.content.text=e}},{key:"sendable",value:function(){return 0!==this.content.text.length}}]),e}(),Ja=function(){function e(t,n){o(this,e),this._imageMemoryURL="",this._fileDownloadProxy=n,ie?this.createImageDataASURLInWXMiniApp(t.file):this.createImageDataASURLInWeb(t.file),this._initImageInfoModel(),this.type=S.MSG_IMAGE,this._percent=0,this.content={imageFormat:t.imageFormat||ze.UNKNOWN,uuid:t.uuid,imageInfoArray:[]},this.initImageInfoArray(t.imageInfoArray),this._autoFixUrl()}return i(e,[{key:"_initImageInfoModel",value:function(){var e=this;this._ImageInfoModel=function(t){this.instanceID=Ot(9999999),this.sizeType=t.type||0,this.type=0,this.size=t.size||0,this.width=t.width||0,this.height=t.height||0,this.imageUrl=t.url||"",this.url=Xt(t.url||e._imageMemoryURL,e._fileDownloadProxy)},this._ImageInfoModel.prototype={setSizeType:function(e){this.sizeType=e},setType:function(e){this.type=e},setImageUrl:function(e){e&&(this.imageUrl=e)},getImageUrl:function(){return this.imageUrl}}}},{key:"initImageInfoArray",value:function(e){for(var t=0,n=null,r=null;t<=2;)r=pt(e)||pt(e[t])?{type:0,size:0,width:0,height:0,url:""}:e[t],(n=new this._ImageInfoModel(r)).setSizeType(t+1),n.setType(t),this.addImageInfo(n),t++;this.updateAccessSideImageInfoArray()}},{key:"updateImageInfoArray",value:function(e){for(var t,n=this.content.imageInfoArray.length,r=0;r<n;r++)t=this.content.imageInfoArray[r],e[r].size&&(t.size=e[r].size),e[r].url&&t.setImageUrl(e[r].url),e[r].width&&(t.width=e[r].width),e[r].height&&(t.height=e[r].height)}},{key:"_autoFixUrl",value:function(){for(var e=this.content.imageInfoArray.length,t="",n="",r=["http","https"],o=null,a=0;a<e;a++)this.content.imageInfoArray[a].url&&""!==(o=this.content.imageInfoArray[a]).imageUrl&&(n=o.imageUrl.slice(0,o.imageUrl.indexOf("://")+1),t=o.imageUrl.slice(o.imageUrl.indexOf("://")+1),r.indexOf(n)<0&&(n="https:"),this.content.imageInfoArray[a].setImageUrl([n,t].join("")))}},{key:"updatePercent",value:function(e){this._percent=e,this._percent>1&&(this._percent=1)}},{key:"updateImageFormat",value:function(e){this.content.imageFormat=ze[e.toUpperCase()]||ze.UNKNOWN}},{key:"createImageDataASURLInWeb",value:function(e){void 0!==e&&e.files.length>0&&(this._imageMemoryURL=window.URL.createObjectURL(e.files[0]))}},{key:"createImageDataASURLInWXMiniApp",value:function(e){e&&e.url&&(this._imageMemoryURL=e.url)}},{key:"replaceImageInfo",value:function(e,t){this.content.imageInfoArray[t]instanceof this._ImageInfoModel||(this.content.imageInfoArray[t]=e)}},{key:"addImageInfo",value:function(e){this.content.imageInfoArray.length>=3||this.content.imageInfoArray.push(e)}},{key:"updateAccessSideImageInfoArray",value:function(){var e=this.content.imageInfoArray,t=e[0],n=t.width,r=void 0===n?0:n,o=t.height,a=void 0===o?0:o;0!==r&&0!==a&&(Ft(e),Object.assign(e[2],Bt({originWidth:r,originHeight:a,min:720})))}},{key:"sendable",value:function(){return 0!==this.content.imageInfoArray.length&&""!==this.content.imageInfoArray[0].imageUrl&&0!==this.content.imageInfoArray[0].size}}]),e}(),Qa=function(){function e(t){o(this,e),this.type=S.MSG_FACE,this.content=t||null}return i(e,[{key:"sendable",value:function(){return null!==this.content}}]),e}(),Xa=function(){function e(t,n){o(this,e),this.type=S.MSG_AUDIO,this._percent=0,this.content={downloadFlag:2,second:t.second,size:t.size,url:Xt(t.url,n),remoteAudioUrl:t.url||"",uuid:t.uuid}}return i(e,[{key:"updatePercent",value:function(e){this._percent=e,this._percent>1&&(this._percent=1)}},{key:"updateAudioUrl",value:function(e){this.content.remoteAudioUrl=e}},{key:"sendable",value:function(){return""!==this.content.remoteAudioUrl}}]),e}(),Za={from:!0,groupID:!0,groupName:!0,to:!0},ei=function(){function e(t){o(this,e),this.type=S.MSG_GRP_TIP,this.content={},this._initContent(t)}return i(e,[{key:"_initContent",value:function(e){var t=this;Object.keys(e).forEach((function(n){switch(n){case"remarkInfo":break;case"groupProfile":t.content.groupProfile={},t._initGroupProfile(e[n]);break;case"operatorInfo":break;case"memberInfoList":case"msgMemberInfo":t._updateMemberList(e[n]);break;case"memberExtraInfo":case"onlineMemberInfo":break;case"memberNum":t.content[n]=e[n],t.content.memberCount=e[n];break;case"newGroupProfile":t.content.newGroupProfile={},t._initNewGroupProfile(e[n]);break;default:t.content[n]=e[n]}})),this.content.userIDList||(this.content.userIDList=[this.content.operatorID])}},{key:"_initGroupProfile",value:function(e){for(var t=Object.keys(e),n=0;n<t.length;n++){var r=t[n];Za[r]&&(this.content.groupProfile[r]=e[r])}}},{key:"_updateMemberList",value:function(e){en(this.content.memberList)?this.content.memberList=e:this.content.memberList.forEach((function(t){e.forEach((function(e){t.userID===e.userID&&Object.assign(t,e)}))}))}},{key:"_initNewGroupProfile",value:function(e){for(var t=Object.keys(e),n=0;n<t.length;n++){var r=t[n];this.content.newGroupProfile[r]="muteAllMembers"!==r?e[r]:1===e[r]}}}]),e}(),ti={from:!0,groupID:!0,groupName:!0,to:!0},ni=function(){function e(t){o(this,e),this.type=S.MSG_GRP_SYS_NOTICE,this.content={},this._initContent(t)}return i(e,[{key:"_initContent",value:function(e){var t=this;Object.keys(e).forEach((function(n){switch(n){case"memberInfoList":break;case"remarkInfo":t.content.handleMessage=e[n];break;case"groupProfile":t.content.groupProfile={},t._initGroupProfile(e[n]);break;default:t.content[n]=e[n]}}))}},{key:"_initGroupProfile",value:function(e){for(var t=Object.keys(e),n=0;n<t.length;n++){var r=t[n];ti[r]&&("groupName"===r?this.content.groupProfile.name=e[r]:this.content.groupProfile[r]=e[r])}}}]),e}(),ri=function(){function e(t,n){o(this,e),this.type=S.MSG_FILE,this._percent=0;var r=this._getFileInfo(t);this.content={downloadFlag:2,fileUrl:Xt(t.url,n)||"",uuid:t.uuid,fileName:r.name||"",fileSize:r.size||0}}return i(e,[{key:"_getFileInfo",value:function(e){if(!pt(e.fileName)&&!pt(e.fileSize))return{size:e.fileSize,name:e.fileName};var t=e.file.files[0];if(oe){if(t.path&&-1!==t.path.indexOf(".")){var n=t.path.slice(t.path.lastIndexOf(".")+1).toLowerCase();t.type=n,t.name||(t.name="".concat(Ot(999999),".").concat(n))}t.name||(t.type="",t.name=t.path.slice(t.path.lastIndexOf("/")+1).toLowerCase()),t.suffix&&(t.type=t.suffix),t.url||(t.url=t.path)}return{size:t.size,name:t.name}}},{key:"updatePercent",value:function(e){this._percent=e,this._percent>1&&(this._percent=1)}},{key:"updateFileUrl",value:function(e){this.content.fileUrl=e}},{key:"sendable",value:function(){return""!==this.content.fileUrl&&""!==this.content.fileName&&0!==this.content.fileSize}}]),e}(),oi=function(){function e(t){o(this,e),this.type=S.MSG_CUSTOM,this.content={data:t.data||"",description:t.description||"",extension:t.extension||""}}return i(e,[{key:"setData",value:function(e){return this.content.data=e,this}},{key:"setDescription",value:function(e){return this.content.description=e,this}},{key:"setExtension",value:function(e){return this.content.extension=e,this}},{key:"sendable",value:function(){return 0!==this.content.data.length||0!==this.content.description.length||0!==this.content.extension.length}}]),e}(),ai=function(){function e(t,n){o(this,e),this.type=S.MSG_VIDEO,this._percent=0,this.content={remoteVideoUrl:t.remoteVideoUrl||t.videoUrl||"",videoFormat:t.videoFormat,videoSecond:parseInt(t.videoSecond,10),videoSize:t.videoSize,videoUrl:Xt(t.videoUrl,n),videoDownloadFlag:2,videoUUID:t.videoUUID,thumbUUID:t.thumbUUID,thumbFormat:t.thumbFormat,thumbWidth:t.thumbWidth,snapshotWidth:t.thumbWidth,thumbHeight:t.thumbHeight,snapshotHeight:t.thumbHeight,thumbSize:t.thumbSize,snapshotSize:t.thumbSize,thumbDownloadFlag:2,thumbUrl:Xt(t.thumbUrl,n),snapshotUrl:Xt(t.thumbUrl,n)}}return i(e,[{key:"updatePercent",value:function(e){this._percent=e,this._percent>1&&(this._percent=1)}},{key:"updateVideoUrl",value:function(e){e&&(this.content.remoteVideoUrl=e)}},{key:"updateSnapshotInfo",value:function(e){var t=e.snapshotUrl,n=e.snapshotWidth,r=e.snapshotHeight;en(t)||(this.content.thumbUrl=this.content.snapshotUrl=t),en(n)||(this.content.thumbWidth=this.content.snapshotWidth=Number(n)),en(r)||(this.content.thumbHeight=this.content.snapshotHeight=Number(r))}},{key:"sendable",value:function(){return""!==this.content.remoteVideoUrl}}]),e}(),ii=function(){function e(t){o(this,e),this.type=S.MSG_LOCATION;var n=t.description,r=t.longitude,a=t.latitude;this.content={description:n,longitude:r,latitude:a}}return i(e,[{key:"sendable",value:function(){return!0}}]),e}(),si=function(){function e(t,n){if(o(this,e),this.from=t.from,this.messageSender=t.from,this.time=t.time,this.messageSequence=t.sequence,this.clientSequence=t.clientSequence||t.sequence,this.messageRandom=t.random,this.cloudCustomData=t.cloudCustomData||"",this.clientTime=t.clientTime||void 0,t.ID)this.ID=t.ID||"",this.nick=t.nick||"",this.avatar=t.avatar||"",this.messageBody=[{type:t.type,payload:t.payload}],t.conversationType.startsWith(S.CONV_C2C)?this.receiverUserID=t.to:t.conversationType.startsWith(S.CONV_GROUP)&&(this.receiverGroupID=t.to),this.messageReceiver=t.to;else{this.nick=t.nick||"",this.avatar=t.avatar||"",this.messageBody=[];var r=t.elements[0].type,a=t.elements[0].content;this._patchRichMediaPayload(r,a),this._updateRichMediaDownloadUrl(r,a,n),r===S.MSG_MERGER?this.messageBody.push({type:r,payload:new ci(a).content}):this.messageBody.push({type:r,payload:a}),t.groupID&&(this.receiverGroupID=t.groupID,this.messageReceiver=t.groupID),t.to&&(this.receiverUserID=t.to,this.messageReceiver=t.to),this.ID="".concat(t.tinyID,"-").concat(t.clientTime,"-").concat(t.random)}}return i(e,[{key:"_patchRichMediaPayload",value:function(e,t){e===S.MSG_IMAGE?t.imageInfoArray.forEach((function(e){!e.imageUrl&&e.url&&(e.imageUrl=e.url,e.sizeType=e.type,1===e.type?e.type=0:3===e.type&&(e.type=1))})):e===S.MSG_VIDEO?!t.remoteVideoUrl&&t.videoUrl&&(t.remoteVideoUrl=t.videoUrl):e===S.MSG_AUDIO?!t.remoteAudioUrl&&t.url&&(t.remoteAudioUrl=t.url):e===S.MSG_FILE&&!t.fileUrl&&t.url&&(t.fileUrl=t.url,t.url=void 0)}},{key:"_updateRichMediaDownloadUrl",value:function(e,t,n){n&&(e===S.MSG_IMAGE?t.imageInfoArray.forEach((function(e){e.url=Xt(e.url,n)})):e===S.MSG_VIDEO?(t.videoUrl=Xt(t.videoUrl,n),t.snapshotUrl=Xt(t.thumbUrl,n),t.snapshotHeight=t.thumbHeight,t.snapshotWidth=t.thumbWidth):e===S.MSG_AUDIO?t.url=Xt(t.url,n):e===S.MSG_FILE&&(t.fileUrl=Xt(t.fileUrl,n)))}}]),e}(),ci=function(){function e(t,n){if(o(this,e),this.type=S.MSG_MERGER,this.content={downloadKey:"",pbDownloadKey:"",messageList:[],title:"",abstractList:[],compatibleText:"",version:0,layersOverLimit:!1},t.downloadKey){var r=t.downloadKey,a=t.pbDownloadKey,i=t.title,s=t.abstractList,c=t.compatibleText,l=t.version;this.content.downloadKey=r,this.content.pbDownloadKey=a,this.content.title=i,this.content.abstractList=s,this.content.compatibleText=c,this.content.version=l||0}else if(en(t.messageList))1===t.layersOverLimit&&(this.content.layersOverLimit=!0);else{var u=t.messageList,d=t.title,p=t.abstractList,f=t.compatibleText,h=t.version,m=[];u.forEach((function(e){if(!en(e)){var t=new si(e,n);m.push(t)}})),this.content.messageList=m,this.content.title=d,this.content.abstractList=p,this.content.compatibleText=f,this.content.version=h||0}}return i(e,[{key:"sendable",value:function(){return!en(this.content.messageList)||!en(this.content.downloadKey)}}]),e}(),li={1:S.MSG_PRIORITY_HIGH,2:S.MSG_PRIORITY_NORMAL,3:S.MSG_PRIORITY_LOW,4:S.MSG_PRIORITY_LOWEST},ui=function(){function e(t){o(this,e),this.ID="",this.conversationID=t.conversationID||null,this.conversationType=t.conversationType||S.CONV_C2C,this.conversationSubType=t.conversationSubType,this.time=t.time||Math.ceil(Date.now()/1e3),this.sequence=t.sequence||0,this.clientSequence=t.clientSequence||t.sequence||0,this.random=t.random||0===t.random?t.random:Ot(),this.priority=this._computePriority(t.priority),this.nick=t.nick||"",this.avatar=t.avatar||"",this.isPeerRead=!1,this.nameCard="",this._elements=[],this.isPlaceMessage=t.isPlaceMessage||0,this.isRevoked=2===t.isPlaceMessage||8===t.msgFlagBits,this.from=t.from||null,this.to=t.to||null,this.flow="",this.isSystemMessage=t.isSystemMessage||!1,this.protocol=t.protocol||"JSON",this.isResend=!1,this.isRead=!1,this.status=t.status||on.SUCCESS,this._onlineOnlyFlag=!1,this._groupAtInfoList=[],this._relayFlag=!1,this.atUserList=[],this.cloudCustomData=t.cloudCustomData||"",this.isDeleted=!1,this.isModified=!1,this._isExcludedFromUnreadCount=!(!t.messageControlInfo||1!==t.messageControlInfo.excludedFromUnreadCount),this._isExcludedFromLastMessage=!(!t.messageControlInfo||1!==t.messageControlInfo.excludedFromLastMessage),this.clientTime=t.clientTime||Ue()||0,this.senderTinyID=t.senderTinyID||t.tinyID||"",this.readReceiptInfo=t.readReceiptInfo||{readCount:void 0,unreadCount:void 0,isPeerRead:void 0},this.needReadReceipt=!0===t.needReadReceipt||1===t.needReadReceipt,this.version=t.messageVersion||0,this.isBroadcastMessage=t.isBroadcastMessage||!1,this._receiverList=t.receiverList||void 0,this.isSupportExtension=!0===t.isSupportExtension||1===t.isSupportExtension,this.revoker=t.revokerInfo&&t.revokerInfo.revoker||null,this.reInitialize(t.currentUser),this.extractGroupInfo(t.groupProfile||null),this.handleGroupAtInfo(t),this.initC2CReadReceiptInfo(t.readReceiptSentByPeer)}return i(e,[{key:"elements",get:function(){return this._elements}},{key:"getElements",value:function(){return this._elements}},{key:"extractGroupInfo",value:function(e){if(null!==e){ct(e.nick)&&(this.nick=e.nick),ct(e.avatar)&&(this.avatar=e.avatar);var t=e.messageFromAccountExtraInformation;ut(t)&&ct(t.nameCard)&&(this.nameCard=t.nameCard)}}},{key:"handleGroupAtInfo",value:function(e){var t=this;e.payload&&e.payload.atUserList&&e.payload.atUserList.forEach((function(e){e!==S.MSG_AT_ALL?(t._groupAtInfoList.push({groupAtAllFlag:0,groupAtUserID:e}),t.atUserList.push(e)):(t._groupAtInfoList.push({groupAtAllFlag:1}),t.atUserList.push(S.MSG_AT_ALL))})),dt(e.groupAtInfo)&&e.groupAtInfo.forEach((function(e){0===e.groupAtAllFlag?t.atUserList.push(e.groupAtUserID):1===e.groupAtAllFlag&&t.atUserList.push(S.MSG_AT_ALL)}))}},{key:"getGroupAtInfoList",value:function(){return this._groupAtInfoList}},{key:"_initProxy",value:function(){this._elements[0]&&(this.payload=this._elements[0].content,this.type=this._elements[0].type)}},{key:"reInitialize",value:function(e){e&&(this.status=this.from?on.SUCCESS:on.UNSEND,!this.from&&(this.from=e)),this._initFlow(e),this._initSequence(e),this._concatConversationID(e),this.generateMessageID()}},{key:"isSendable",value:function(){return 0!==this._elements.length&&"function"==typeof this._elements[0].sendable&&this._elements[0].sendable()}},{key:"_initTo",value:function(e){this.conversationType===S.CONV_GROUP&&(this.to=e.groupID)}},{key:"_initSequence",value:function(e){0===this.clientSequence&&e&&(this.clientSequence=function(e){if(!e)return!1;if(void 0===wt[e]){var t=new Date,n="3".concat(t.getHours()).slice(-2),r="0".concat(t.getMinutes()).slice(-2),o="0".concat(t.getSeconds()).slice(-2);wt[e]=parseInt([n,r,o,"0001"].join("")),n=null,r=null,o=null,Ge.l("autoIncrementIndex start index:".concat(wt[e]))}return wt[e]++}(e)),0===this.sequence&&this.conversationType===S.CONV_C2C&&(this.sequence=this.clientSequence)}},{key:"generateMessageID",value:function(){this.from===S.CONV_SYSTEM&&(this.senderTinyID="144115198244471703"),this.ID="".concat(this.senderTinyID,"-").concat(this.clientTime,"-").concat(this.random)}},{key:"_initFlow",value:function(e){""!==e&&(e===this.from?(this.flow="out",this.isRead=!0):this.flow="in")}},{key:"_concatConversationID",value:function(e){var t=this.to,n="",r=this.conversationType;r!==S.CONV_SYSTEM?(n=r===S.CONV_C2C?e===this.from?t:this.from:this.to,this.conversationID=n?"".concat(r).concat(n):null):this.conversationID=S.CONV_SYSTEM}},{key:"isElement",value:function(e){return e instanceof $a||e instanceof Ja||e instanceof Qa||e instanceof Xa||e instanceof ri||e instanceof ai||e instanceof ei||e instanceof ni||e instanceof oi||e instanceof ii||e instanceof ci}},{key:"setElement",value:function(e,t){var n=this;if(this.isElement(e))return this._elements=[e],void this._initProxy();var r=function(e){if(e.type&&e.content)switch(e.type){case S.MSG_TEXT:n.setTextElement(e.content);break;case S.MSG_IMAGE:n.setImageElement(e.content,t);break;case S.MSG_AUDIO:n.setAudioElement(e.content,t);break;case S.MSG_FILE:n.setFileElement(e.content,t);break;case S.MSG_VIDEO:n.setVideoElement(e.content,t);break;case S.MSG_CUSTOM:n.setCustomElement(e.content);break;case S.MSG_LOCATION:n.setLocationElement(e.content);break;case S.MSG_GRP_TIP:n.setGroupTipElement(e.content);break;case S.MSG_GRP_SYS_NOTICE:n.setGroupSystemNoticeElement(e.content);break;case S.MSG_FACE:n.setFaceElement(e.content);break;case S.MSG_MERGER:n.setMergerElement(e.content,t)}};if(dt(e))for(var o=0;o<e.length;o++)r(e[o]);else r(e);this._initProxy()}},{key:"clearElement",value:function(){this._elements.length=0}},{key:"setTextElement",value:function(e){var t="string"==typeof e?e:e.text,n=new $a({text:t});this._elements.push(n)}},{key:"setImageElement",value:function(e,t){var n=new Ja(e,t);this._elements.push(n)}},{key:"setAudioElement",value:function(e,t){var n=new Xa(e,t);this._elements.push(n)}},{key:"setFileElement",value:function(e,t){var n=new ri(e,t);this._elements.push(n)}},{key:"setVideoElement",value:function(e,t){var n=new ai(e,t);this._elements.push(n)}},{key:"setLocationElement",value:function(e){var t=new ii(e);this._elements.push(t)}},{key:"setCustomElement",value:function(e){var t=new oi(e);this._elements.push(t)}},{key:"setGroupTipElement",value:function(e){var t={},n=e.operationType;if(en(e.memberInfoList)?e.operatorInfo&&(t=e.operatorInfo):n!==S.GRP_TIP_MBR_JOIN&&n!==S.GRP_TIP_MBR_KICKED_OUT&&n!==S.GRP_TIP_MBR_SET_ADMIN&&n!==S.GRP_TIP_MBR_CANCELED_ADMIN||(t=e.memberInfoList[0]),!en(e.memberExtraInfo)){var r=e.memberExtraInfo.reason;e.msgMemberInfo.forEach((function(e){e.reason=r}))}var o=t,a=o.nick,i=o.avatar;ct(a)&&(this.nick=a),ct(i)&&(this.avatar=i);var s=new ei(e);this._elements.push(s)}},{key:"setGroupSystemNoticeElement",value:function(e){var t=new ni(e);this._elements.push(t)}},{key:"setFaceElement",value:function(e){var t=new Qa(e);this._elements.push(t)}},{key:"setMergerElement",value:function(e,t){var n=new ci(e,t);this._elements.push(n)}},{key:"setIsRead",value:function(e){this.isRead=e}},{key:"setRelayFlag",value:function(e){this._relayFlag=e}},{key:"getRelayFlag",value:function(){return this._relayFlag}},{key:"_computePriority",value:function(e){if(pt(e))return S.MSG_PRIORITY_NORMAL;if(ct(e)&&-1!==Object.values(li).indexOf(e))return e;if(st(e)){var t=""+e;if(-1!==Object.keys(li).indexOf(t))return li[t]}return S.MSG_PRIORITY_NORMAL}},{key:"setNickAndAvatar",value:function(e){var t=e.nick,n=e.avatar;ct(t)&&(this.nick=t),ct(n)&&(this.avatar=n)}},{key:"setNameCard",value:function(e){ct(e)&&(this.nameCard=e)}},{key:"initC2CReadReceiptInfo",value:function(e){this.conversationType===S.CONV_C2C&&!0===this.needReadReceipt&&(this.readReceiptInfo.isPeerRead=1===e)}}]),e}(),di=function(e){return{code:0,data:e||{}}},pi=function(e){c(n,e);var t=g(n);function n(e){var r;o(this,n),r=t.call(this);var a=e.code,i=e.message,s=e.data;return r.code=a,r.message=i||r._getErrorMessage(r.code),r.data=s||{},r}return i(n)}(f(Error)),fi=null,hi=function(e){fi=e},mi=function(e){return Promise.resolve(di(e))},vi=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e instanceof pi)return t&&null!==fi&&fi.emit(I.ERROR,e),Promise.reject(e);if(e instanceof Error){var n=new pi({code:Aa.UNCAUGHT_ERROR});return t&&null!==fi&&fi.emit(I.ERROR,n),Promise.reject(n)}if(!pt(e)&&!pt(e.code)){var r=new pi(e);return t&&null!==fi&&fi.emit(I.ERROR,r),Promise.reject(r)}},gi=function(e){c(r,e);var t=g(r);function r(e){var n;return o(this,r),(n=t.call(this,e))._n="C2CModule",n._messageFromUnreadDBMap=new Map,n._signalingFromUnreadDBList=[],n}return i(r,[{key:"onNewC2CMessage",value:function(e){var t=e.dataList,n=e.isInstantMessage,r=e.C2CRemainingUnreadList,o=e.C2CPairUnreadList;Ge.d("".concat(this._n,".onNewC2CMessage count:").concat(t.length," isInstantMessage:").concat(n));var a=this._newC2CMessageStoredAndSummary({dataList:t,C2CRemainingUnreadList:r,C2CPairUnreadList:o,isInstantMessage:n}),i=a.conversationOptionsList,s=a.messageList,c=a.isUnreadC2CMessage;this.filterModifiedMessage(s),i.length>0&&this.getModule(Yn).onNewMessage({conversationOptionsList:i,isInstantMessage:n,isUnreadC2CMessage:c});var l=this.filterUnmodifiedMessage(s);n&&l.length>0&&this.emitOuterEvent(I.MESSAGE_RECEIVED,l),s.length=0}},{key:"_newC2CMessageStoredAndSummary",value:function(e){for(var t=e.dataList,n=e.C2CRemainingUnreadList,r=e.C2CPairUnreadList,o=e.isInstantMessage,a=null,i=[],s=[],c={},l=this.getModule(Jn),u=this.getModule(ir),d=!1,p=this.getModule(Yn),f=this.getFileDownloadProxy(),h=0,m=t.length;h<m;h++)if(this._isSignaling(t[h]))this._signalingFromUnreadDBList.push(t[h].eventArray[0].c2CNotifyMsgArray[0]);else{var v=t[h];v.currentUser=this.getMyUserID(),v.conversationType=S.CONV_C2C,v.isSystemMessage=!!v.isSystemMessage,(pt(v.nick)||pt(v.avatar))&&(d=!0,Ge.d("".concat(this._n,"._newC2CMessageStoredAndSummary nick or avatar missing!"))),a=new ui(v),v.elements=l.parseElements(v.elements,v.from),a.setElement(v.elements,f),a.setNickAndAvatar({nick:v.nick,avatar:v.avatar});var g=a.conversationID;if(o){if(1===this._messageFromUnreadDBMap.get(a.ID))continue;var _=!1;if(a.from!==this.getMyUserID()){var y=p.getLatestMessageSentByPeer(g);if(y){var b=y.nick,O=y.avatar;d?a.setNickAndAvatar({nick:b,avatar:O}):b===a.nick&&O===a.avatar||(_=!0)}}else{var M=p.getLatestMessageSentByMe(g);if(M){var k=M.nick,C=M.avatar;k===a.nick&&C===a.avatar||p.modifyMessageSentByMe({conversationID:g,latestNick:a.nick,latestAvatar:a.avatar})}}var w=1===t[h].isModified;if(p.isMessageSentByCurrentInstance(a)?a.isModified=w:w=!1,0===v.msgLifeTime)a._onlineOnlyFlag=!0,p.isMessageSentByCurrentInstance(a)||s.push(a);else{if(!p.pushIntoMessageList(s,a,w))continue;_&&(p.modifyMessageSentByPeer({conversationID:g,latestNick:a.nick,latestAvatar:a.avatar}),p.updateUserProfileSpecifiedKey({conversationID:g,nick:a.nick,avatar:a.avatar}))}o&&a.clientTime>0&&u.addMessageDelay(a.clientTime)}else this._messageFromUnreadDBMap.set(a.ID,1);if(0!==v.msgLifeTime){if(!1===a._onlineOnlyFlag){var I=p.getLastMessageTime(g);if(st(I)&&a.time<I)continue;if(pt(c[g])){var T=0;"in"===a.flow&&(a._isExcludedFromUnreadCount||(T=1)),c[g]=i.push({conversationID:g,unreadCount:T,type:a.conversationType,subType:a.conversationSubType,lastMessage:a._isExcludedFromLastMessage?"":a})-1}else{var E=c[g];i[E].type=a.conversationType,i[E].subType=a.conversationSubType,i[E].lastMessage=a._isExcludedFromLastMessage?"":a,"in"===a.flow&&(a._isExcludedFromUnreadCount||i[E].unreadCount++)}}}else a._onlineOnlyFlag=!0}this._handleSignalingFromUnreadDB();var j=!1;if(dt(r))for(var D=function(e,t){if(r[e].unreadCount>0){j=!0;var n=i.find((function(t){return t.conversationID==="C2C".concat(r[e].from)}));n?n.unreadCount=r[e].unreadCount:i.push({conversationID:"C2C".concat(r[e].from),unreadCount:r[e].unreadCount,type:S.CONV_C2C})}},L=0,A=r.length;L<A;L++)D(L);if(dt(n))for(var N=function(e,t){i.find((function(t){return t.conversationID==="C2C".concat(n[e].from)}))||i.push({conversationID:"C2C".concat(n[e].from),type:S.CONV_C2C,lastMsgTime:n[e].lastMsgTime})},x=0,R=n.length;x<R;x++)N(x);return{conversationOptionsList:i,messageList:s,isUnreadC2CMessage:j}}},{key:"_isSignaling",value:function(e){var t=e.eventArray;return!(!dt(t)||10!==t[0].event)}},{key:"_handleSignalingFromUnreadDB",value:function(){var e=this._signalingFromUnreadDBList.length;if(Ge.l("".concat(this._n,"._handleSignalingFromUnreadDB signalingCount:").concat(e)),0!==e){var t=[];this._signalingFromUnreadDBList.forEach((function(e){e.hasOwnProperty("c2cMessageRevokedNotify")&&t.push(e)})),this.onC2CMessageRevoked({dataList:t}),this._signalingFromUnreadDBList.length=0,t.length=0}}},{key:"onC2CMessageRevoked",value:function(e){var t=this,n=this.getModule(Yn),r=[],o=null,a=!0;e.dataList.forEach((function(e){if(e.c2cMessageRevokedNotify){var i=e.c2cMessageRevokedNotify.revokedInfos;pt(i)||i.forEach((function(e){var i=t.getMyUserID()===e.from?"".concat(S.CONV_C2C).concat(e.to):"".concat(S.CONV_C2C).concat(e.from);o=n.revoke(i,e.sequence,e.random);var s=e.revokerInfo&&e.revokerInfo.revoker;if(o)o.revoker||(o.revoker=s,r.push(o));else{var c={conversationID:i,sequence:e.sequence,time:e.time,revoker:s};n.isLastMessageRevoked(c)&&(r.push(c),a=!1)}}))}})),0!==r.length&&(n.onMessageRevoked(r),!0===a&&(Ge.l("".concat(this._n,".onC2CMessageRevoked count:").concat(r.length)),this.emitOuterEvent(I.MESSAGE_REVOKED,r)))}},{key:"onC2CMessageReadReceipt",value:function(e){var t=this;e.dataList.forEach((function(e){if(!en(e.c2cMessageReadReceipt)){var n=e.c2cMessageReadReceipt.to;e.c2cMessageReadReceipt.uinPairReadArray.forEach((function(e){var r=e.peerReadTime;Ge.d("".concat(t._n,"._onC2CMessageReadReceipt to:").concat(n," peerReadTime:").concat(r));var o="".concat(S.CONV_C2C).concat(n),a=t.getModule(Yn);a.recordPeerReadTime(o,r),a.updateMessageIsPeerReadProperty(o,r)}))}}))}},{key:"onC2CMessageReadNotice",value:function(e){var t=this;e.dataList.forEach((function(e){if(!en(e.c2cMessageReadNotice)){var n=t.getModule(Yn);e.c2cMessageReadNotice.uinPairReadArray.forEach((function(e){var r=e.from,o=e.peerReadTime;Ge.d("".concat(t._n,".onC2CMessageReadNotice from:").concat(r," lastReadTime:").concat(o));var a="".concat(S.CONV_C2C).concat(r);n.updateIsReadAfterReadReport({conversationID:a,lastMessageTime:o}),n.updateUnreadCount(a)}))}}))}},{key:"onC2CMessageModified",value:function(e){Ge.d("".concat(this._n,".onC2CMessageModified options:"),JSON.stringify(e));var t=this.getModule(Yn);e.dataList.forEach((function(e){t.onMessageModified(n(n({},e),{},{conversationType:S.CONV_C2C}))}))}},{key:"onReadReceiptList",value:function(e){Ge.d("".concat(this._n,".onReadReceiptList options:"),JSON.stringify(e));var t=e.dataList,n=t.userID,r=t.readReceiptList;this.getModule(Yn).updateReadReceiptInfo({userID:n,readReceiptList:r})}},{key:"sendMessage",value:function(e,t){var n=this._createC2CMessagePack(e,t);return this.request(n)}},{key:"_createC2CMessagePack",value:function(e,t){var n=null;t&&(t.offlinePushInfo&&(n=t.offlinePushInfo),!0===t.onlineUserOnly&&(n?n.disablePush=!0:n={disablePush:!0}));var r="";ct(e.cloudCustomData)&&e.cloudCustomData.length>0&&(r=e.cloudCustomData);var o=[];if(ut(t)&&ut(t.messageControlInfo)){var a=t.messageControlInfo,i=a.excludedFromUnreadCount,s=a.excludedFromLastMessage,c=a.excludedFromContentModeration;!0===i&&o.push("NoUnread"),!0===s&&o.push("NoLastMsg"),!0===c&&o.push("NoMsgCheck")}var l=this.isOnlineMessage(e,t)?0:void 0;return{protocolName:br,tjgID:this.generateTjgID(e),requestData:{fromAccount:this.getMyUserID(),toAccount:e.to,msgBody:e.getElements(),cloudCustomData:r,msgSeq:e.sequence,msgRandom:e.random,msgLifeTime:l,nick:e.nick,avatar:e.avatar,offlinePushInfo:n?{pushFlag:!0===n.disablePush?1:0,title:n.title||"",desc:n.description||"",ext:n.extension||"",apnsInfo:{badgeMode:!0===n.ignoreIOSBadge?1:0,isVoipPush:this._isVoipPush(n)},androidInfo:{OPPOChannelID:n.androidOPPOChannelID||""}}:void 0,messageControlInfo:0!==l?o:void 0,clientTime:e.clientTime,needReadReceipt:!0===e.needReadReceipt?1:0,isSupportExtension:!0===e.isSupportExtension?1:0}}}},{key:"_isVoipPush",value:function(e){var t=void 0;return pt(e.disableVoipPush)||(t=!1===e.disableVoipPush?1:0),t}},{key:"isOnlineMessage",value:function(e,t){return!(!t||!0!==t.onlineUserOnly)}},{key:"revokeMessage",value:function(e){return this.request({protocolName:Fr,requestData:{msgInfo:{fromAccount:e.from,toAccount:e.to,msgSeq:e.sequence,msgRandom:e.random,msgTimeStamp:e.time}}})}},{key:"deleteMessage",value:function(e){var t=e.to,n=e.keyList;return Ge.l("".concat(this._n,".deleteMessage toAccount:").concat(t," count:").concat(n.length)),this.request({protocolName:Wr,requestData:{fromAccount:this.getMyUserID(),to:t,keyList:n}})}},{key:"modifyRemoteMessage",value:function(e){var t=e.from,n=e.to,r=e.version,o=void 0===r?0:r,a=e.sequence,i=e.random,s=e.time,c=e.payload,l=e.type,u=e.cloudCustomData,d=void 0;return Kt(l)&&(d=[]).push({type:l,content:c}),this.request({protocolName:Kr,requestData:{from:t,to:n,version:o,sequence:a,random:i,time:s,elements:d,cloudCustomData:u}})}},{key:"setMessageRead",value:function(e){var t=this,n=e.conversationID,r=e.lastMessageTime,o="".concat(this._n,".setMessageRead");Ge.l("".concat(o," conversationID:").concat(n," lastMessageTime:").concat(r)),st(r)||this.outputWarning("DoNotModifyLastTime");var a=new Ka("setC2CMessageRead");return a.setMessage("conversationID:".concat(n," lastMessageTime:").concat(r)),this.request({protocolName:Gr,requestData:{C2CMsgReaded:{cookie:"",C2CMsgReadedItem:[{toAccount:n.replace("C2C",""),lastMessageTime:r,receipt:1}]}}}).then((function(){a.setNetworkType(t.getNetworkType()).end(),Ge.l("".concat(o," ok"));var e=t.getModule(Yn);return e.updateIsReadAfterReadReport({conversationID:n,lastMessageTime:r}),e.updateUnreadCount(n),di()})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];a.setError(e,r,o).end()})),Ge.l("".concat(o," failed. error:"),e),vi(e)}))}},{key:"getRoamingMessage",value:function(e){var t=this,n="".concat(this._n,".getRoamingMessage"),r=e.peerAccount,o=e.conversationID,a=e.count,i=e.lastMessageTime,s=e.messageKey,c="peerAccount:".concat(r," count:").concat(a||15," lastMessageTime:").concat(i||0," messageKey:").concat(s);Ge.l("".concat(n," ").concat(c));var l=new Ka("getC2CRoamingMessages");return this.request({protocolName:Yr,requestData:{peerAccount:r,count:a||15,lastMessageTime:i||0,messageKey:s}}).then((function(e){var r=e.data,a=r.complete,i=r.messageList,s=r.messageKey,u=r.lastMessageTime;pt(i)?Ge.l("".concat(n," ok. complete:").concat(a," but messageList is undefined!")):Ge.l("".concat(n," ok. complete:").concat(a," count:").concat(i.length)),l.setNetworkType(t.getNetworkType()).setMessage("".concat(c," complete:").concat(a," length:").concat(i.length)).end();var d=t.getModule(Yn);1===a&&d.setCompleted(o);var p=d.onRoamingMessage(i,o);d.modifyMessageList(o),d.updateIsRead(o),d.updateRoamingMessageKeyAndTime(o,s,u);var f=d.getPeerReadTime(o);if(Ge.l("".concat(n," update isPeerRead property. conversationID:").concat(o," peerReadTime:").concat(f)),f)d.updateMessageIsPeerReadProperty(o,f);else{var h=o.replace(S.CONV_C2C,"");t.getRemotePeerReadTime([h]).then((function(){d.updateMessageIsPeerReadProperty(o,d.getPeerReadTime(o))}))}var m="";if(p.length>0)m=p[0].ID;else{var v=d.getLocalOldestMessage(o);v&&(m=v.ID)}return Ge.l("".concat(n," nextReqID:").concat(m," stored message count:").concat(p.length)),{nextReqID:m,storedMessageList:p}})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];l.setMessage(c).setError(e,r,o).end()})),Ge.w("".concat(n," failed. error:"),e),vi(e)}))}},{key:"getRoamingMessagesHopping",value:function(e){var t=this,n="".concat(this._n,".getRoamingMessagesHopping"),r=e.peerAccount,o=e.time,a=void 0===o?0:o,i=e.count,s=e.direction,c="".concat(S.CONV_C2C).concat(r),l="peerAccount:".concat(r," count:").concat(i," time:").concat(a," direction:").concat(s);Ge.l("".concat(n," ").concat(l));var u=new Ka("getC2CRoamingMessagesHopping");return this.request({protocolName:Yr,requestData:{peerAccount:r,count:i+1,lastMessageTime:a,direction:s}}).then((function(e){var r=e.data,o=r.complete,a=r.messageList,i=void 0===a?[]:a,d=r.lastMessageTime;Ge.l("".concat(n," ok. complete:").concat(o," count:").concat(i.length)),u.setNetworkType(t.getNetworkType()).setMessage("".concat(l," complete:").concat(o," length:").concat(i.length)).end(),1!==o&&(1===s?i.pop():i.shift());var p=t.getModule(Yn).onRoamingMessage(i,c,!1);t._modifyMessageList(c,p);var f=t._computeResult({complete:o,lastMessageTime:d,resultList:p});return di(f)})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];u.setMessage(l).setError(e,r,o).end()})),Ge.w("".concat(n," failed. error:"),e),vi(e)}))}},{key:"_computeResult",value:function(e){var t=e.complete,n=void 0===t?0:t,r=e.lastMessageTime,o=e.resultList,a={messageList:y(void 0===o?[]:o),isCompleted:!1,nextMessageTime:""};return 1===n?(a.isCompleted=!0,a):(a.nextMessageTime=r,a)}},{key:"_modifyMessageList",value:function(e,t){var n=this.getModule(Yn).getLocalConversation(e);if(n)for(var r=n.userProfile.nick,o=n.userProfile.avatar,a=this.getModule(Vn).getNickAndAvatarByUserID(this.getMyUserID()),i=a.nick,s=a.avatar,c=t.length-1;c>=0;c--){var l=t[c];"in"===l.flow&&(l.nick!==r&&l.setNickAndAvatar({nick:r}),l.avatar!==o&&l.setNickAndAvatar({avatar:o})),"out"===l.flow&&(l.nick!==i&&l.setNickAndAvatar({nick:i}),l.avatar!==s&&l.setNickAndAvatar({avatar:s}))}}},{key:"getRemotePeerReadTime",value:function(e){var t=this,n="".concat(this._n,".getRemotePeerReadTime");if(en(e))return Ge.w("".concat(n," userIDList is empty!")),Promise.resolve();var r=new Ka("getPeerReadTime");return Ge.l("".concat(n," userIDList:").concat(e)),this.request({protocolName:qr,requestData:{userIDList:e}}).then((function(o){var a=o.data.peerReadTimeList;Ge.l("".concat(n," ok. peerReadTimeList:").concat(a));for(var i="",s=t.getModule(Yn),c=0;c<e.length;c++)i+="".concat(e[c],"-").concat(a[c]," "),a[c]>0&&s.recordPeerReadTime("C2C".concat(e[c]),a[c]);r.setNetworkType(t.getNetworkType()).setMessage(i).end()})).catch((function(e){t.probeNetwork().then((function(t){var n=_(t,2),o=n[0],a=n[1];r.setError(e,o,a).end()})),Ge.w("".concat(n," failed. error:"),e)}))}},{key:"sendReadReceipt",value:function(e){var t=this,n=e[0].conversationID.replace(S.CONV_C2C,""),r=new Ka("sendC2CReadReceipt");r.setMessage("peerAccount:".concat(n));var o=this.getMyUserID(),a=e.filter((function(e){return e.from!==o&&!0===e.needReadReceipt})).map((function(e){return{fromAccount:e.from,toAccount:e.to,sequence:e.sequence,random:e.random,time:e.time,clientTime:e.clientTime}}));if(0===a.length)return vi({code:Aa.READ_RECEIPT_MESSAGE_LIST_EMPTY});var i="".concat(this._n,".sendReadReceipt");return Ge.l("".concat(i,". peerAccount:").concat(n," messageInfoList length:").concat(a.length)),this.request({protocolName:Do,requestData:{peerAccount:n,messageInfoList:a}}).then((function(e){return r.end(),Ge.l("".concat(i," ok")),di()})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),o=n[0],a=n[1];r.setError(e,o,a).end()})),Ge.w("".concat(i," failed. error:"),e),vi(e)}))}},{key:"getReadReceiptList",value:function(e){var t="".concat(this._n,".getReadReceiptList"),n=this.getMyUserID(),r=e.filter((function(e){return e.from===n&&!0===e.needReadReceipt}));return Ge.l("".concat(t," userID:").concat(n," messageList length:").concat(r.length)),mi({messageList:r})}},{key:"getMessageExtensions",value:function(e,t){return Ge.l("".concat(this._n,".getMessageExtensions startSequence:").concat(t)),this.request({protocolName:Jr,requestData:{from:e.from,to:e.to,messageKey:this._getMessageKey(e),startSequence:t}})}},{key:"modifyMessageExtensions",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Ge.l("".concat(this._n,".modifyMessageExtensions operateType:").concat(n)),this.request({protocolName:$r,requestData:{from:e.from,to:e.to,messageKey:this._getMessageKey(e),extensionList:t,operateType:n}})}},{key:"_getMessageKey",value:function(e){var t=e.clientSequence,n=e.random,r=e.time;return"".concat(t,"_").concat(n,"_").concat(r)}},{key:"reset",value:function(){Ge.l("".concat(this._n,".reset")),this._messageFromUnreadDBMap.clear(),this._signalingFromUnreadDBList.length=0}}]),r}(fr),_i=function(){function e(){o(this,e),this.list=new Map,this._n="MessageListHandler",this._latestMessageSentByPeerMap=new Map,this._latestMessageSentByMeMap=new Map}return i(e,[{key:"getLocalOldestMessageByConversationID",value:function(e){if(!e)return null;if(!this.list.has(e))return null;var t=this.list.get(e).values();return t?t.next().value:null}},{key:"pushIn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.conversationID,r=!0;this.list.has(n)||this.list.set(n,new Map);var o=this._getUniqueIDOfMessage(e),a=this.list.get(n).has(o);if(a){var i=this.list.get(n).get(o);if(!t||!0===i.isModified)return!1}return this.list.get(n).set(o,e),this._setLatestMessageSentByPeer(n,e),this._setLatestMessageSentByMe(n,e),r}},{key:"unshift",value:function(e,t){var n;if(dt(e)?e.length>0&&(n=e[0].conversationID,this._unshiftMultipleMessages(e,t)):(n=e.conversationID,this._unshiftSingleMessage(e,t)),n&&n.startsWith(S.CONV_C2C)){var r=Array.from(this.list.get(n).values()),o=r.length;if(0===o)return;for(var a=o-1;a>=0;a--)if("out"===r[a].flow){this._setLatestMessageSentByMe(n,r[a]);break}for(var i=o-1;i>=0;i--)if("in"===r[i].flow){this._setLatestMessageSentByPeer(n,r[i]);break}}}},{key:"_unshiftSingleMessage",value:function(e,t){var n=e.conversationID,r=this._getUniqueIDOfMessage(e);if(!this.list.has(n))return this.list.set(n,new Map),this.list.get(n).set(r,e),void t.push(e);var o=this.list.get(n),a=Array.from(o);o.has(r)||(a.unshift([r,e]),this.list.set(n,new Map(a)),t.push(e))}},{key:"_unshiftMultipleMessages",value:function(e,t){for(var n=e.length,r=[],o=e[0].conversationID,a=this.list.get(o),i=this.list.has(o)?Array.from(a):[],s=0;s<n;s++){var c=this._getUniqueIDOfMessage(e[s]);a&&a.has(c)||(r.push([c,e[s]]),t.push(e[s]))}this.list.set(o,new Map(r.concat(i)))}},{key:"remove",value:function(e){var t=e.conversationID,n=this._getUniqueIDOfMessage(e);this.list.has(t)&&this.list.get(t).delete(n)}},{key:"revoke",value:function(e,t,n){if(Ge.d("revoke message",e,t,n),this.list.has(e)){var r,o=w(this.list.get(e));try{for(o.s();!(r=o.n()).done;){var a=_(r.value,2)[1];if(a.sequence===t&&(pt(n)||a.random===n))return a.isRevoked||(a.isRevoked=!0),a}}catch(s){o.e(s)}finally{o.f()}}return null}},{key:"removeByConversationID",value:function(e){this.list.has(e)&&(this.list.delete(e),this._latestMessageSentByPeerMap.delete(e),this._latestMessageSentByMeMap.delete(e))}},{key:"findMessage",value:function(e){var t,n=null,r=w(this.list);try{for(r.s();!(t=r.n()).done;)for(var o=y(_(t.value,2)[1].values()),a=o.length,i=0;i<a;i++)if(o[i].ID===e){n=o[i];break}}catch(c){r.e(c)}finally{r.f()}return n}},{key:"updateMessageIsPeerReadProperty",value:function(e,t){var n=[];if(this.list.has(e)){var r,o=w(this.list.get(e));try{for(o.s();!(r=o.n()).done;){var a=_(r.value,2)[1];a.time<=t&&!a.isPeerRead&&"out"===a.flow&&(a.isPeerRead=!0,n.push(a))}}catch(s){o.e(s)}finally{o.f()}Ge.l("".concat(this._n,".updateMessageIsPeerReadProperty conversationID:").concat(e," peerReadTime:").concat(t," count:").concat(n.length))}return n}},{key:"updateMessageIsModifiedProperty",value:function(e){var t=e.conversationID;if(this.list.has(t)){var n=this._getUniqueIDOfMessage(e),r=this.list.get(t).get(n);r&&(r.isModified=!0)}}},{key:"hasLocalMessageList",value:function(e){return this.list.has(e)}},{key:"getLocalMessageList",value:function(e){return this.hasLocalMessageList(e)?y(this.list.get(e).values()):[]}},{key:"hasLocalMessage",value:function(e,t){for(var n=!1,r=this.getLocalMessageList(e),o=r.length,a=0;a<o;a++)r[a].ID===t&&(n=!0);return n}},{key:"getLocalMessage",value:function(e,t){for(var n=null,r=this.getLocalMessageList(e),o=r.length,a=0;a<o;a++)if(r[a].ID===t){n=r[a];break}return n}},{key:"getLocalLastMessage",value:function(e){var t=this.getLocalMessageList(e);return t[t.length-1]}},{key:"getLocalOldestMessage",value:function(e){return this.getLocalMessageList(e)[0]}},{key:"_setLatestMessageSentByPeer",value:function(e,t){e.startsWith(S.CONV_C2C)&&"in"===t.flow&&this._latestMessageSentByPeerMap.set(e,t)}},{key:"_setLatestMessageSentByMe",value:function(e,t){e.startsWith(S.CONV_C2C)&&"out"===t.flow&&this._latestMessageSentByMeMap.set(e,t)}},{key:"getLatestMessageSentByPeer",value:function(e){return this._latestMessageSentByPeerMap.get(e)}},{key:"getLatestMessageSentByMe",value:function(e){return this._latestMessageSentByMeMap.get(e)}},{key:"modifyMessageSentByPeer",value:function(e){var t=e.conversationID,n=e.latestNick,r=e.latestAvatar,o=this.list.get(t);if(!en(o)){var a=Array.from(o.values()),i=a.length;if(0!==i){for(var s=null,c=0,l=!1,u=i-1;u>=0;u--)"in"===a[u].flow&&((s=a[u]).nick!==n&&(s.setNickAndAvatar({nick:n}),l=!0),s.avatar!==r&&(s.setNickAndAvatar({avatar:r}),l=!0),l&&(c+=1));Ge.l("".concat(this._n,".modifyMessageSentByPeer conversationID:").concat(t," count:").concat(c))}}}},{key:"modifyMessageSentByMe",value:function(e){var t=e.conversationID,n=e.latestNick,r=e.latestAvatar,o=this.list.get(t);if(!en(o)){var a=Array.from(o.values()),i=a.length;if(0!==i){for(var s=null,c=0,l=!1,u=i-1;u>=0;u--)"out"===a[u].flow&&((s=a[u]).nick!==n&&(s.setNickAndAvatar({nick:n}),l=!0),s.avatar!==r&&(s.setNickAndAvatar({avatar:r}),l=!0),l&&(c+=1));Ge.l("".concat(this._n,".modifyMessageSentByMe conversationID:").concat(t," count:").concat(c))}}}},{key:"getTopicConversationIDList",value:function(e){return y(this.list.keys()).filter((function(t){return t.startsWith("".concat(S.CONV_GROUP).concat(e))}))}},{key:"traversal",value:function(){if(0!==this.list.size&&-1===Ge.getLevel()){console.group("conversationID-messageCount");var e,t=w(this.list);try{for(t.s();!(e=t.n()).done;){var n=_(e.value,2),r=n[0],o=n[1];console.log("".concat(r,"-").concat(o.size))}}catch(i){t.e(i)}finally{t.f()}console.groupEnd()}}},{key:"onMessageModified",value:function(e,t){if(!this.list.has(e))return{isUpdated:!1,message:null};var n=this._getUniqueIDOfMessage(t),r=this.list.get(e).has(n);if(Ge.d("".concat(this._n,".onMessageModified conversationID:").concat(e," uniqueID:").concat(n," has:").concat(r)),r){var o=this.list.get(e).get(n),a=t.messageVersion,i=t.elements,s=t.cloudCustomData;return o.version<a?(o.version=a,o._elements=JSON.parse(JSON.stringify(i)),o.payload=JSON.parse(JSON.stringify(i[0].content)),o.type=i[0].type,o.cloudCustomData=s,o.isModified=!0,{isUpdated:!0,message:o}):{isUpdated:!1,message:o}}return{isUpdated:!1,message:null}}},{key:"_getUniqueIDOfMessage",value:function(e){var t=e.from,n=e.to,r=e.random,o=e.sequence,a=e.time;return"".concat(t,"-").concat(n,"-").concat(r,"-").concat(o,"-").concat(a)}},{key:"reset",value:function(){this.list.clear(),this._latestMessageSentByPeerMap.clear(),this._latestMessageSentByMeMap.clear()}}]),e}(),yi="_a2KeyAndTinyIDUpdated",bi="_cloudConfigUpdated",Oi="_profileUpdated";function Mi(e){this.mixin(e)}Mi.mixin=function(e){var t=e.prototype||e;t._isReady=!1,t.ready=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e)return this._isReady?void(t?e.call(this):setTimeout(e,1)):(this._readyQueue=this._readyQueue||[],void this._readyQueue.push(e))},t.triggerReady=function(){var e=this;this._isReady=!0,setTimeout((function(){var t=e._readyQueue;e._readyQueue=[],t&&t.length>0&&t.forEach((function(e){e.call(this)}),e)}),1)},t.resetReady=function(){this._isReady=!1,this._readyQueue=[]},t.isReady=function(){return this._isReady}};var ki=["jpg","jpeg","gif","png","bmp","image","webp"],Ci=["mp4","quicktime","mov"],wi=1,Ii=2,Si=3,Ti=255,Ei=function(){function e(t){var n=this;o(this,e),en(t)||(this.userID=t.userID||"",this.nick=t.nick||"",this.gender=t.gender||"",this.birthday=t.birthday||0,this.location=t.location||"",this.selfSignature=t.selfSignature||"",this.allowType=t.allowType||S.ALLOW_TYPE_ALLOW_ANY,this.language=t.language||0,this.avatar=t.avatar||"",this.messageSettings=t.messageSettings||0,this.adminForbidType=t.adminForbidType||S.FORBID_TYPE_NONE,this.level=t.level||0,this.role=t.role||0,this.lastUpdatedTime=0,this.profileCustomField=[],en(t.profileCustomField)||t.profileCustomField.forEach((function(e){n.profileCustomField.push({key:e.key,value:e.value})})))}return i(e,[{key:"validate",value:function(e){var t=!0,n="";if(en(e))return{valid:!1,tips:"empty options"};if(e.profileCustomField)for(var r=e.profileCustomField.length,o=null,a=0;a<r;a++){if(o=e.profileCustomField[a],!ct(o.key)||-1===o.key.indexOf("Tag_Profile_Custom"))return{valid:!1,tips:"The prefix of keys of the custom profile key-value pairs (which is profileCustomField) must be Tag_Profile_Custom"};if(!ct(o.value))return{valid:!1,tips:"The type of values of the custom profile key-value pairs (which is profileCustomField) must be String"}}for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if("profileCustomField"===i)continue;if(en(e[i])&&!ct(e[i])&&!st(e[i])){n="key:"+i+", invalid value:"+e[i],t=!1;continue}switch(i){case"nick":ct(e[i])||(n="nick must be a string",t=!1),bt(e[i])>500&&(n="nick name limited: must less than or equal to ".concat(500," bytes, current size: ").concat(bt(e[i])," bytes"),t=!1);break;case"gender":Ct(Je,e.gender)||(n="key:gender, invalid value:"+e.gender,t=!1);break;case"birthday":st(e.birthday)||(n="birthday must be a number",t=!1);break;case"location":ct(e.location)||(n="location must be a string",t=!1);break;case"selfSignature":ct(e.selfSignature)||(n="selfSignature must be a string",t=!1);break;case"allowType":Ct(Xe,e.allowType)||(n="key:allowType, invalid value:"+e.allowType,t=!1);break;case"language":st(e.language)||(n="language must be a number",t=!1);break;case"avatar":ct(e.avatar)||(n="avatar must be a string",t=!1);break;case"messageSettings":0!==e.messageSettings&&1!==e.messageSettings&&(n="messageSettings must be 0 or 1",t=!1);break;case"adminForbidType":Ct(Qe,e.adminForbidType)||(n="key:adminForbidType, invalid value:"+e.adminForbidType,t=!1);break;case"level":st(e.level)||(n="level must be a number",t=!1);break;case"role":st(e.role)||(n="role must be a number",t=!1);break;default:n="unknown key:"+i+" "+e[i],t=!1}}return{valid:t,tips:n}}}]),e}(),ji=i((function e(t){o(this,e),this.value=t,this.next=null})),Di=function(){function e(t){o(this,e),this.MAX_LENGTH=t,this.pTail=null,this.pNodeToDel=null,this.map=new Map}return i(e,[{key:"set",value:function(e){var t=new ji(e);if(this.map.size<this.MAX_LENGTH)null===this.pTail?(this.pTail=t,this.pNodeToDel=t):(this.pTail.next=t,this.pTail=t),this.map.set(e,1);else{var n=this.pNodeToDel;this.pNodeToDel=this.pNodeToDel.next,this.map.delete(n.value),n.next=null,n=null,this.pTail.next=t,this.pTail=t,this.map.set(e,1)}}},{key:"has",value:function(e){return this.map.has(e)}},{key:"delete",value:function(e){this.has(e)&&this.map.delete(e)}},{key:"tail",value:function(){return this.pTail}},{key:"size",value:function(){return this.map.size}},{key:"data",value:function(){return Array.from(this.map.keys())}},{key:"reset",value:function(){for(var e;null!==this.pNodeToDel;)e=this.pNodeToDel,this.pNodeToDel=this.pNodeToDel.next,e.next=null,e=null;this.pTail=null,this.map.clear()}}]),e}(),Li=["groupID","name","avatar","type","introduction","notification","ownerID","selfInfo","createTime","infoSequence","lastInfoTime","lastMessage","nextMessageSeq","memberNum","maxMemberNum","memberList","joinOption","groupCustomField","muteAllMembers","isSupportTopic","inviteOption","_lastRevokedTime"],Ai=function(){function e(t){o(this,e),this.groupID="",this.name="",this.avatar="",this.type="",this.introduction="",this.notification="",this.ownerID="",this.createTime="",this.infoSequence="",this.lastInfoTime="",this.selfInfo={messageRemindType:"",joinTime:"",nameCard:"",role:"",userID:"",memberCustomField:void 0,readedSequence:0,excludedUnreadSequenceList:void 0},this.lastMessage={lastTime:"",lastSequence:"",fromAccount:"",messageForShow:""},this.nextMessageSeq="",this.memberNum="",this.memberCount="",this.maxMemberNum="",this.maxMemberCount="",this.joinOption="",this.inviteOption="",this.groupCustomField=[],this.muteAllMembers=!1,this.isSupportTopic=!1,this._lastRevokedTime=0,this._initGroup(t)}return i(e,[{key:"memberNum",get:function(){return this.memberCount},set:function(e){}},{key:"maxMemberNum",get:function(){return this.maxMemberCount},set:function(e){}},{key:"_initGroup",value:function(e){for(var t in e)Li.indexOf(t)<0||("selfInfo"!==t?("memberNum"===t&&(this.memberCount=e[t]),"maxMemberNum"===t&&(this.maxMemberCount=e[t]),"isSupportTopic"!==t?this[t]=e[t]:this.isSupportTopic=1===e[t]):this.updateSelfInfo(e[t]))}},{key:"updateGroup",value:function(e){var t=this;e.appid=void 0,e.grossTopicNextMsgSeq=void 0,e.selfInfo&&(e.selfInfo.grossTopicReadSeq=void 0);var n=JSON.parse(JSON.stringify(e));n.lastMsgTime&&(this.lastMessage.lastTime=n.lastMsgTime),pt(n.muteAllMembers)||("On"===n.muteAllMembers?n.muteAllMembers=!0:n.muteAllMembers=!1),n.groupCustomField&&Tt(this.groupCustomField,n.groupCustomField),pt(n.memberNum)||(this.memberCount=n.memberNum),pt(n.maxMemberNum)||(this.maxMemberCount=n.maxMemberNum),pt(n.isSupportTopic)||(this.isSupportTopic=st(n.isSupportTopic)?1===n.isSupportTopic:n.isSupportTopic),_t(this,n,["members","errorCode","lastMsgTime","groupCustomField","memberNum","maxMemberNum","isSupportTopic"]),dt(n.members)&&n.members.length>0&&n.members.forEach((function(e){e.userID===t.selfInfo.userID&&_t(t.selfInfo,e,["sequence"])}))}},{key:"updateSelfInfo",value:function(e){var t={nameCard:e.nameCard,joinTime:e.joinTime,role:e.role,messageRemindType:e.messageRemindType,readedSequence:e.readedSequence,excludedUnreadSequenceList:e.excludedUnreadSequenceList};_t(this.selfInfo,n({},t),[],["",null,void 0,0,NaN])}},{key:"setSelfNameCard",value:function(e){this.selfInfo.nameCard=e}}]),e}(),Ni=function(e,t){return pt(e)?{lastTime:0,lastSequence:0,fromAccount:0,messageForShow:"",payload:null,type:"",isRevoked:!1,cloudCustomData:"",onlineOnlyFlag:!1,nick:"",nameCard:"",version:0,isPeerRead:!1,revoker:null}:e instanceof ui?{lastTime:e.time||0,lastSequence:e.sequence||0,fromAccount:e.from||"",messageForShow:Wt(e.type,e.payload,t),payload:e.payload||null,type:e.type||null,isRevoked:e.isRevoked||!1,cloudCustomData:e.cloudCustomData||"",onlineOnlyFlag:e._onlineOnlyFlag||!1,nick:e.nick||"",nameCard:e.nameCard||"",version:e.version||0,isPeerRead:e.isPeerRead||!1,revoker:e.revoker||null}:n(n({},e),{},{messageForShow:Wt(e.type,e.payload,t)})},xi=function(){function e(t,n){o(this,e),this.conversationID=t.conversationID||"",this.unreadCount=t.unreadCount||0,this.type=t.type||"",this.lastMessage=Ni(t.lastMessage,n),t.lastMsgTime&&(this.lastMessage.lastTime=t.lastMsgTime),this._isInfoCompleted=!1,this.peerReadTime=t.peerReadTime||0,this.groupAtInfoList=[],this.remark="",this.isPinned=t.isPinned||!1,this.messageRemindType="",this.markList=t.markList||[],this.customData=t.customData||"",this.conversationGroupList=t.conversationGroupList||[],this._initProfile(t)}return i(e,[{key:"toAccount",get:function(){return this.conversationID.startsWith(S.CONV_C2C)?this.conversationID.replace(S.CONV_C2C,""):this.conversationID.startsWith(S.CONV_GROUP)?this.conversationID.replace(S.CONV_GROUP,""):""}},{key:"subType",get:function(){return this.groupProfile?this.groupProfile.type:""}},{key:"_initProfile",value:function(e){var t=this;Object.keys(e).forEach((function(n){switch(n){case"userProfile":t.userProfile=e.userProfile;break;case"groupProfile":t.groupProfile=e.groupProfile}})),pt(this.userProfile)&&this.type===S.CONV_C2C?this.userProfile=new Ei({userID:e.conversationID.replace("C2C","")}):pt(this.groupProfile)&&this.type===S.CONV_GROUP&&(this.groupProfile=new Ai({groupID:e.conversationID.replace("GROUP","")}))}},{key:"updateUnreadCount",value:function(e){var t=e.nextUnreadCount,n=e.isFromGetConversations,r=e.isUnreadC2CMessage;pt(t)||(Et(this.subType)?this.unreadCount=0:n&&this.type===S.CONV_GROUP||n&&this.type===S.CONV_TOPIC||r&&this.type===S.CONV_C2C?this.unreadCount=t:this.unreadCount=this.unreadCount+t)}},{key:"updateLastMessage",value:function(e){this.lastMessage=Ni(e)}},{key:"updateGroupAtInfoList",value:function(e){if(!this._isNeedMergeGroupAtInfo(e)){var t,n=(b(t=e.groupAtType)||O(t)||M(t)||C()).slice(0);-1!==n.indexOf(S.CONV_AT_ME)&&-1!==n.indexOf(S.CONV_AT_ALL)&&(n=[S.CONV_AT_ALL_AT_ME]);var r={from:e.from,groupID:e.groupID,topicID:e.topicID,messageSequence:e.sequence,atTypeArray:n,__random:e.__random,__sequence:e.__sequence};this.groupAtInfoList.push(r)}}},{key:"_isNeedMergeGroupAtInfo",value:function(e){var t=e.groupID,n=e.sequence;if(!jt({groupID:t}))return!1;var r=!1;return this.groupAtInfoList.forEach((function(t){t.messageSequence===n&&(t.atTypeArray.indexOf(S.CONV_AT_ME)>-1&&e.groupAtType.indexOf(S.CONV_AT_ALL)>-1&&(t.atTypeArray=[S.CONV_AT_ALL_AT_ME]),t.atTypeArray.indexOf(S.CONV_AT_ALL)>-1&&e.groupAtType.indexOf(S.CONV_AT_ME)>-1&&(t.atTypeArray=[S.CONV_AT_ALL_AT_ME],t.__random=e.__random,t.__sequence=e.__sequence),r=!0)})),r}},{key:"clearGroupAtInfoList",value:function(){this.groupAtInfoList.length=0}},{key:"reduceUnreadCount",value:function(){return this.unreadCount>=1&&(this.unreadCount-=1,!0)}},{key:"isLastMessageRevoked",value:function(e){var t=e.sequence,n=e.time;return this.type===S.CONV_C2C&&t===this.lastMessage.lastSequence&&n===this.lastMessage.lastTime||this.type===S.CONV_GROUP&&t===this.lastMessage.lastSequence}},{key:"setLastMessageRevoked",value:function(e){this.lastMessage.isRevoked=e}},{key:"setLastMessageRevoker",value:function(e){this.lastMessage.revoker=e}}]),e}(),Ri=function(){function e(t){o(this,e),this._conversationModule=t,this._n="MessageRemindHandler",this._updateSequence=0}return i(e,[{key:"getC2CMessageRemindType",value:function(){var e=this,t="".concat(this._n,".getC2CMessageRemindType");return this._conversationModule.request({protocolName:Hr,updateSequence:this._updateSequence}).then((function(n){Ge.l("".concat(t," ok"));var r=n.data,o=r.updateSequence,a=r.muteFlagList;e._updateSequence=o,e._patchC2CMessageRemindType(a)})).catch((function(e){Ge.e("".concat(t," failed. error:"),e)}))}},{key:"_patchC2CMessageRemindType",value:function(e){var t=this,n=0,r="";dt(e)&&e.length>0&&e.forEach((function(e){var o=e.userID,a=e.muteFlag;0===a?r=S.MSG_REMIND_ACPT_AND_NOTE:1===a?r=S.MSG_REMIND_DISCARD:2===a&&(r=S.MSG_REMIND_ACPT_NOT_NOTE),!0===t._conversationModule.patchMessageRemindType({ID:o,isC2CConversation:!0,messageRemindType:r})&&(n+=1)})),Ge.l("".concat(this._n,"._patchC2CMessageRemindType count:").concat(n))}},{key:"set",value:function(e){return e.groupID?this._setGroupMessageRemindType(e):dt(e.userIDList)?this._setC2CMessageRemindType(e):void 0}},{key:"_setGroupMessageRemindType",value:function(e){var t=this,n="".concat(this._n,"._setGroupMessageRemindType"),r=e.groupID,o=e.messageRemindType,a="groupID:".concat(r," messageRemindType:").concat(o),i=new Ka("setMessageRemindType");return i.setMessage(a),this._getModule(zn).modifyGroupMemberInfo({groupID:r,messageRemindType:o,userID:this._conversationModule.getMyUserID()}).then((function(){i.setNetworkType(t._conversationModule.getNetworkType()).end(),Ge.l("".concat(n," ok. ").concat(a));var r=t.onGroupMessageRemindTypeUpdated(e);return t._conversationModule.emitTotalUnreadMessageCountUpdate(),di(r)})).catch((function(e){return t._conversationModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setError(e,r,o).end()})),Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"onGroupMessageRemindTypeUpdated",value:function(e){var t=e.groupID,n=e.messageRemindType,r=this._getModule(Fn).getLocalGroupProfile(t);if(r&&(r.selfInfo.messageRemindType=n),Dt(t)){var o=t,a=qt(o),i=this._getModule(Hn).getLocalTopic(a,o);return i&&(i.updateSelfInfo({messageRemindType:n}),this._conversationModule.emitOuterEvent(I.TOPIC_UPDATED,{groupID:a,topic:i})),{topic:i}}return this._conversationModule.patchMessageRemindType({ID:t,isC2CConversation:!1,messageRemindType:n})&&this._emitConversationUpdate(),{group:r}}},{key:"_setC2CMessageRemindType",value:function(e){var t=this,n="".concat(this._n,"._setC2CMessageRemindType"),r=e.userIDList,o=e.messageRemindType,a=r.slice(0,30),i=0;o===S.MSG_REMIND_DISCARD?i=1:o===S.MSG_REMIND_ACPT_NOT_NOTE&&(i=2);var s="userIDList:".concat(a," messageRemindType:").concat(o),c=new Ka("setMessageRemindType");return c.setMessage(s),this._conversationModule.request({protocolName:zr,requestData:{userIDList:a,muteFlag:i}}).then((function(e){c.setNetworkType(t._conversationModule.getNetworkType()).end();var r=e.data,i=r.updateSequence,s=r.errorList;t._updateSequence=i;var l=[],u=[];dt(s)&&s.forEach((function(e){l.push(e.userID),u.push({userID:e.userID,code:e.errorCode})}));var d=a.filter((function(e){return-1===l.indexOf(e)}));Ge.l("".concat(n," ok. successUserIDList:").concat(d," failureUserIDList:").concat(JSON.stringify(u)));var p=0;return d.forEach((function(e){t._conversationModule.patchMessageRemindType({ID:e,isC2CConversation:!0,messageRemindType:o})&&(p+=1)})),p>=1&&t._emitConversationUpdate(),a.length=l.length=0,t._conversationModule.emitTotalUnreadMessageCountUpdate(),mi({successUserIDList:d.map((function(e){return{userID:e}})),failureUserIDList:u})})).catch((function(e){return t._conversationModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];c.setError(e,r,o).end()})),Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"_getModule",value:function(e){return this._conversationModule.getModule(e)}},{key:"_emitConversationUpdate",value:function(){this._conversationModule.emitConversationUpdate(!0,!1)}},{key:"setUpdateSequence",value:function(e){this._updateSequence=e}},{key:"reset",value:function(){Ge.l("".concat(this._n,".reset")),this._updateSequence=0}}]),e}(),Pi=function(){function e(t){o(this,e),this._conversationModule=t,this._n="ConvGroupHandler",this._convGroupMap=new Map,this._startIndex=0,this._pagingStatus=an.NOT_START}return i(e,[{key:"setConvCustomData",value:function(e){var t=this,n="".concat(this._n,".").concat("setConvCustomData"),r=e.conversationIDList,o=e.customData;Ge.l("".concat(n," options:"),e);var a=new Ka("setConvCustomData");a.setMessage(JSON.stringify(e));var i={fromAccount:this._getMyUserID(),itemList:[]},s=[],c=[];return r.forEach((function(e){if(!t._hasLocalConversation(e))return t._onConversationNotFound(c,e),!0;if(!Lt(e)&&!At(e))return t._onConversationIDInvalid(c,e),!0;var n={operationType:2,contactItem:void 0,customMark:o};Lt(e)?n.contactItem={type:1,toAccount:e.replace(S.CONV_C2C,"")}:At(e)&&(n.contactItem={type:2,groupID:e.replace(S.CONV_GROUP,"")}),i.itemList.push(n)})),c.length===r.length?mi({successConversationIDList:s,failureConversationIDList:c}):this._conversationModule.request({protocolName:ro,requestData:i}).then((function(e){a.setNetworkType(t._conversationModule.getNetworkType()).end(),Ge.l("".concat(n," ok"));var r=e.data.resultItem;if(dt(r)){var i,l,u=!1;r.forEach((function(e){i=t._concatConversationID(e.contactItem),0===e.resultCode?(s.push(i),(l=t._getLocalConversation(i))&&l.customData!==o&&(l.customData=o,u=!0)):c.push({conversationID:i,code:e.resultCode,message:e.resultInfo})})),!0===u&&t._emitConversationUpdate()}return di({successConversationIDList:s,failureConversationIDList:c})})).catch((function(e){return t._conversationModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];a.setError(e,r,o).end()})),Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"markConversation",value:function(e){var t=this;if(!this._conversationModule.canIUse(z.CONV_MARK))return vi({code:Aa.CANNOT_USE_COMMERCIAL_ABILITY});var n="".concat(this._n,".").concat("markConversation"),r=e.conversationIDList,o=e.markType,a=e.enableMark;Ge.l("".concat(n," options:"),e);var i=new Ka("markConversation");i.setMessage(JSON.stringify(e));var s=void 0,c=void 0,l=this._getFlagBit(o);!0===a?c=[l]:s=[l];var u={fromAccount:this._getMyUserID(),itemList:[]},d=[],p=[];return r.forEach((function(e){if(!t._hasLocalConversation(e))return t._onConversationNotFound(p,e),!0;if(!Lt(e)&&!At(e))return t._onConversationIDInvalid(p,e),!0;var n={operationType:1,contactItem:void 0,clearMark:s,setMark:c};Lt(e)?n.contactItem={type:1,toAccount:e.replace(S.CONV_C2C,"")}:At(e)&&(n.contactItem={type:2,groupID:e.replace(S.CONV_GROUP,"")}),u.itemList.push(n)})),p.length===r.length?mi({successConversationIDList:d,failureConversationIDList:p}):this._conversationModule.request({protocolName:oo,requestData:u}).then((function(e){i.setNetworkType(t._conversationModule.getNetworkType()).end(),Ge.l("".concat(n," ok"));var r=e.data.resultItem;if(dt(r)){var s,c,l=!1;r.forEach((function(e){if(s=t._concatConversationID(e.contactItem),0===e.resultCode){if(d.push(s),c=t._getLocalConversation(s)){var n=c.markList.indexOf(o);!0===a?-1===n&&(c.markList.push(o),l=!0):-1!==n&&(c.markList.splice(n,1),l=!0)}}else p.push({conversationID:s,code:e.resultCode,message:e.resultInfo})})),!0===l&&t._emitConversationUpdate()}return di({successConversationIDList:d,failureConversationIDList:p})})).catch((function(e){return t._conversationModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setError(e,r,o).end()})),Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"getLocalConvGroupList",value:function(){var e=this;return Ge.l("".concat(this._n,".getLocalConvGroupList pagingStatus:").concat(this._pagingStatus)),this._pagingStatus===an.REJECTED?this.getRemoteConvGroupList().then((function(){return di(y(e._convGroupMap.values()))})):mi(y(this._convGroupMap.values()))}},{key:"getRemoteConvGroupList",value:function(){var e=this,t="".concat(this._n,".getRemoteConvGroupList");return this._pagingStatus=an.PENDING,this._conversationModule.request({protocolName:uo,requestData:{fromAccount:this._getMyUserID(),startIndex:this._startIndex,startTime:Ue()}}).then((function(n){var r,o,a=n.data,i=a.completeFlag,s=a.contactItem,c=a.nextStartIndex,l=void 0===c?0:c,u=a.groupItem;if(e._startIndex=l,Ge.l("".concat(t," completeFlag:").concat(i," nextStartIndex:").concat(l)),dt(u)&&u.forEach((function(t){var n=t.convGroupID,r=t.groupName;e._convGroupMap.set(n,r)})),dt(s)&&s.forEach((function(t){var n=t.standardMark,a=t.customData,i=t.convGroupIDList;if(r=e._concatConversationID(t),(o=e._getLocalConversation(r))&&(o.markList=$t(n),o.customData=a||"",dt(i))){var s=[];i.forEach((function(t){e._convGroupMap.has(t)&&s.push(e._convGroupMap.get(t))})),o.conversationGroupList=[].concat(s),s.length=0}})),0===i)return e.getRemoteConvGroupList();1===i&&(e._pagingStatus=an.RESOLVED,e._emitConversationUpdate(),e._emitConvGroupListUpdate())})).catch((function(n){e._pagingStatus=an.REJECTED,Ge.w("".concat(t," failed. error:"),n)}))}},{key:"createConvGroup",value:function(e){var t=this;if(!this._conversationModule.canIUse(z.CONV_GROUP))return vi({code:Aa.CANNOT_USE_COMMERCIAL_ABILITY});var n="".concat(this._n,".").concat("createConvGroup");Ge.l("".concat(n," options:"),e);var r=new Ka("createConvGroup");r.setMessage(JSON.stringify(e));var o=e.groupName,a=e.conversationIDList,i={fromAccount:this._getMyUserID(),itemList:[{groupName:o,contactItem:[]}]},s=[],c=[];return a.forEach((function(e){return t._hasLocalConversation(e)?Lt(e)||At(e)?void(Lt(e)?i.itemList[0].contactItem.push({type:1,toAccount:e.replace(S.CONV_C2C,"")}):At(e)&&i.itemList[0].contactItem.push({type:2,groupID:e.replace(S.CONV_GROUP,"")})):(t._onConversationIDInvalid(c,e),!0):(t._onConversationNotFound(c,e),!0)})),c.length===a.length?mi({successConversationIDList:s,failureConversationIDList:c}):this._conversationModule.request({protocolName:ao,requestData:i}).then((function(e){r.setNetworkType(t._conversationModule.getNetworkType()).end(),Ge.l("".concat(n," ok"));var a=e.data.groupResultItem[0],i=a.groupItem,l=a.resultItem;if(ut(i)&&(t._convGroupMap.set(i.convGroupID,i.groupName),t._emitConvGroupListUpdate()),dt(l)){var u,d,p=!1;l.forEach((function(e){u=t._concatConversationID(e.contactItem),0===e.resultCode?(s.push(u),(d=t._getLocalConversation(u))&&-1===d.conversationGroupList.indexOf(o)&&(d.conversationGroupList.push(o),p=!0)):c.push({conversationID:u,code:e.resultCode,message:e.resultInfo})})),!0===p&&(t._emitConversationUpdate(),t._emitConvGroupListUpdate())}return di({successConversationIDList:s,failureConversationIDList:c})})).catch((function(e){return t._conversationModule.probeNetwork().then((function(t){var n=_(t,2),o=n[0],a=n[1];r.setError(e,o,a).end()})),Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"deleteConvGroup",value:function(e){var t=this;if(!this._conversationModule.canIUse(z.CONV_GROUP))return vi({code:Aa.CANNOT_USE_COMMERCIAL_ABILITY});var n="".concat(this._n,".").concat("deleteConvGroup");Ge.l("".concat(n," groupName:").concat(e));var r=new Ka("deleteConvGroup");return r.setMessage(e),this._conversationModule.request({protocolName:io,requestData:{fromAccount:this._getMyUserID(),groupName:[e]}}).then((function(o){r.setNetworkType(t._conversationModule.getNetworkType()).end(),Ge.l("".concat(n," ok"));var a=o.data.groupItem;if(dt(a)){var i=!1;a.forEach((function(e){t._convGroupMap.has(e.convGroupID)&&(t._convGroupMap.delete(e.convGroupID),i=!0)})),!0===i&&t._emitConvGroupListUpdate()}t._eraseFromConversationGroupList([e])})).catch((function(e){return t._conversationModule.probeNetwork().then((function(t){var n=_(t,2),o=n[0],a=n[1];r.setError(e,o,a).end()})),Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"renameConvGroup",value:function(e){var t=this;if(!this._conversationModule.canIUse(z.CONV_GROUP))return vi({code:Aa.CANNOT_USE_COMMERCIAL_ABILITY});var n="".concat(this._n,".").concat("renameConvGroup");Ge.l("".concat(n," options:"),e);var r=new Ka("renameConvGroup");r.setMessage(JSON.stringify(e));var o=e.oldName,a=e.newName;return this._conversationModule.request({protocolName:so,requestData:{fromAccount:this._getMyUserID(),updateType:1,updateGroup:{updateGroupType:1,oldName:o,newName:a}}}).then((function(e){r.setNetworkType(t._conversationModule.getNetworkType()).end(),Ge.l("".concat(n," ok"));var i=e.data.updateGroupResult.convGroupID;t._convGroupMap.set(i,a),t._emitConvGroupListUpdate();var s,c,l=t._conversationModule.getLocalConversationList(),u=!1;l.forEach((function(e){s=e.conversationGroupList,-1!==(c=s.indexOf(o))&&(s.splice(c,1,a),u=!0)})),!0===u&&t._emitConversationUpdate()})).catch((function(e){return t._conversationModule.probeNetwork().then((function(t){var n=_(t,2),o=n[0],a=n[1];r.setError(e,o,a).end()})),Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"addConvsToGroup",value:function(e){var t=this;if(!this._conversationModule.canIUse(z.CONV_GROUP))return vi({code:Aa.CANNOT_USE_COMMERCIAL_ABILITY});var n="".concat(this._n,".").concat("addConvsToGroup");Ge.l("".concat(n," options:"),e);var r=new Ka("addConvsToGroup");r.setMessage(JSON.stringify(e));var o=e.conversationIDList,a=e.groupName,i={fromAccount:this._getMyUserID(),updateType:1,updateGroup:{updateGroupType:2,groupName:a,updateItem:[]}},s=[],c=[];return o.forEach((function(e){return t._hasLocalConversation(e)?Lt(e)||At(e)?void(Lt(e)?i.updateGroup.updateItem.push({operationType:1,contactItem:{type:1,toAccount:e.replace(S.CONV_C2C,"")}}):At(e)&&i.updateGroup.updateItem.push({operationType:1,contactItem:{type:2,groupID:e.replace(S.CONV_GROUP,"")}})):(t._onConversationIDInvalid(c,e),!0):(t._onConversationNotFound(c,e),!0)})),c.length===o.length?mi({successConversationIDList:s,failureConversationIDList:c}):this._conversationModule.request({protocolName:co,requestData:i}).then((function(e){r.setNetworkType(t._conversationModule.getNetworkType()).end(),Ge.l("".concat(n," ok"));var o=e.data.updateGroupResult.contactResultItem;if(dt(o)){var i,l,u=!1;o.forEach((function(e){i=t._concatConversationID(e.contactItem),0===e.resultCode?(l=t._getLocalConversation(i))&&-1===l.conversationGroupList.indexOf(a)&&(l.conversationGroupList.push(a),s.push(i),u=!0):c.push({conversationID:i,code:e.resultCode,message:e.resultInfo})})),!0===u&&(t._emitConversationUpdate(),t._emitConvInGroupUpdate(a))}return di({successConversationIDList:s,failureConversationIDList:c})})).catch((function(e){return t._conversationModule.probeNetwork().then((function(t){var n=_(t,2),o=n[0],a=n[1];r.setError(e,o,a).end()})),Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"deleteConvsFromGroup",value:function(e){var t=this;if(!this._conversationModule.canIUse(z.CONV_GROUP))return vi({code:Aa.CANNOT_USE_COMMERCIAL_ABILITY});var n="".concat(this._n,".").concat("deleteConvsFromGroup");Ge.l("".concat(n," options:"),e);var r=new Ka("deleteConvsFromGroup");r.setMessage(JSON.stringify(e));var o=e.conversationIDList,a=e.groupName,i={fromAccount:this._getMyUserID(),updateType:1,updateGroup:{updateGroupType:2,groupName:a,updateItem:[]}},s=[],c=[];return o.forEach((function(e){return t._hasLocalConversation(e)?Lt(e)||At(e)?void(Lt(e)?i.updateGroup.updateItem.push({operationType:2,contactItem:{type:1,toAccount:e.replace(S.CONV_C2C,"")}}):At(e)&&i.updateGroup.updateItem.push({operationType:2,contactItem:{type:2,groupID:e.replace(S.CONV_GROUP,"")}})):(t._onConversationIDInvalid(c,e),!0):(t._onConversationNotFound(c,e),!0)})),c.length===o.length?mi({successConversationIDList:s,failureConversationIDList:c}):this._conversationModule.request({protocolName:lo,requestData:i}).then((function(e){r.setNetworkType(t._conversationModule.getNetworkType()).end(),Ge.l("".concat(n," ok"));var o=e.data.updateGroupResult.contactResultItem;if(dt(o)){var i,l,u=!1;o.forEach((function(e){if(i=t._concatConversationID(e.contactItem),0===e.resultCode){if(l=t._getLocalConversation(i)){var n=l.conversationGroupList.indexOf(a);-1!==n&&(l.conversationGroupList.splice(n,1),s.push(i),u=!0)}}else c.push({conversationID:i,code:e.resultCode,message:e.resultInfo})})),!0===u&&(t._emitConversationUpdate(),t._emitConvInGroupUpdate(a))}return di({successConversationIDList:s,failureConversationIDList:c})})).catch((function(e){return t._conversationModule.probeNetwork().then((function(t){var n=_(t,2),o=n[0],a=n[1];r.setError(e,o,a).end()})),Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"onConvMarkUpdated",value:function(e){var t=this;if(!en(e)){var n,r;Ge.d("".concat(this._n,".onConvMarkUpdated markItemList:"),e);var o=!1;e.forEach((function(e){var a=e.recentContactItem,i=e.optType,s=e.standardMark,c=e.customMark;if(n=t._concatConversationID(a),r=t._getLocalConversation(n))if(1===i){var l=$t(s);!0!==function(e,t){if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(var n=0,r=e.length;n<r;n++)if(e[n]!==t[n])return!1;return!0}(r.markList,l)&&(r.markList=l,o=!0)}else 2===i&&r.customData!==c&&void 0!==c&&(r.customData=c,o=!0)})),!0===o&&this._emitConversationUpdate()}}},{key:"onConvGroupCreated",value:function(e){var t=this;Ge.d("".concat(this._n,".onConvGroupCreated resultList:"),e);var n=!1,r=!1;dt(e)&&(e.forEach((function(e){var o=e.msgGroupItem,a=o.groupID,i=o.groupName;t._convGroupMap.get(a)!==i&&(t._convGroupMap.set(a,i),r=!0);var s,c,l=e.msgRecentContactItem;dt(l)&&l.forEach((function(e){s=t._concatConversationID(e),(c=t._getLocalConversation(s))&&-1===c.conversationGroupList.indexOf(i)&&(c.conversationGroupList.push(i),n=!0)}))})),!0===n&&this._emitConversationUpdate(),!0===r&&this._emitConvGroupListUpdate())}},{key:"onConvGroupDeleted",value:function(e){var t=this;Ge.d("".concat(this._n,".onConvGroupDeleted groupItemList:"),e);var n=[];if(dt(e)){var r=!1;e.forEach((function(e){var o=e.groupID,a=e.groupName;t._convGroupMap.has(o)&&(t._convGroupMap.delete(o),r=!0,n.push(a))})),!0===r&&this._emitConvGroupListUpdate()}this._eraseFromConversationGroupList(n)}},{key:"_eraseFromConversationGroupList",value:function(e){en(e)||(this._conversationModule.getLocalConversationList().forEach((function(t){t.conversationGroupList=t.conversationGroupList.filter((function(t){return!e.includes(t)}))})),this._emitConversationUpdate())}},{key:"onConvGroupNameUpdated",value:function(e){Ge.d("".concat(this._n,".onConvGroupNameUpdated options:"),e);var t=e.groupID,n=e.groupName,r=e.oldGroupName;if(this._convGroupMap.get(t)!==n){this._convGroupMap.set(t,n),this._emitConvGroupListUpdate();var o,a,i=this._conversationModule.getLocalConversationList(),s=!1;i.forEach((function(e){o=e.conversationGroupList,-1!==(a=o.indexOf(r))&&(o.splice(a,1,n),s=!0)})),!0===s&&this._emitConversationUpdate()}}},{key:"onConvInGroupUpdated",value:function(e){var t=this;Ge.d("".concat(this._n,".onConvInGroupUpdated options:"),e);var n=e.oldGroupName,r=e.recentContactUpdateGroupItem;if(dt(r)){var o,a,i,s=!1;r.forEach((function(e){var r=e.contactOptType,c=e.recentContactItem;o=t._concatConversationID(c),(a=t._getLocalConversation(o))&&(i=a.conversationGroupList.indexOf(n),1===r?-1===i&&(a.conversationGroupList.push(n),s=!0):2===r&&-1!==i&&(a.conversationGroupList.splice(i,1),s=!0))})),!0===s&&(this._emitConversationUpdate(),this._emitConvInGroupUpdate(n))}}},{key:"onConvAddedToOrDeletedFromGroup",value:function(e){var t=this;Ge.d("".concat(this._n,".onConvAddedToOrDeletedFromGroup options:"),e);var n=e.msgRecentContactItem,r=e.msgRecentContactUpdateContactItem,o=this._concatConversationID(n),a=this._getLocalConversation(o);if(a&&dt(r)){var i,s=!1;r.forEach((function(e){var n=e.groupOptType,r=e.recentContactGroupItem.groupName;i=a.conversationGroupList.indexOf(r),1===n?-1===i&&(a.conversationGroupList.push(r),s=!0):2===n&&-1!==i&&(a.conversationGroupList.splice(i,1),s=!0),!0===s&&t._emitConvInGroupUpdate(r)})),!0===s&&this._emitConversationUpdate()}}},{key:"onConvGroupListSynced",value:function(e){var t=this;dt(e)&&0!==e.length&&(Ge.l("".concat(this._n,".onConvGroupListSynced groupItemList:"),e),e.forEach((function(e){t._convGroupMap.set(e.convGroupID,e.groupName)})))}},{key:"getConvGroupListByID",value:function(e){var t=this;if(!en(e)){var n=[];return e.forEach((function(e){t._convGroupMap.has(e)&&n.push(t._convGroupMap.get(e))})),n}}},{key:"_onConversationNotFound",value:function(e,t){e.push({conversationID:t,code:Aa.CONVERSATION_NOT_FOUND,message:this._conversationModule.getErrorMessage(Aa.CONVERSATION_NOT_FOUND)})}},{key:"_onConversationIDInvalid",value:function(e,t){e.push({conversationID:t,code:Aa.INVALID_CONVERSATION_ID,message:this._conversationModule.getErrorMessage(Aa.INVALID_CONVERSATION_ID)})}},{key:"_getFlagBit",value:function(e){for(var t=e.toString(2),n=t.length,r=n-1;r>=0;r--)if("1"===t[r])return n-r-1}},{key:"_concatConversationID",value:function(e){var t,n=e.type,r=e.to,o=e.groupID,a=e.userID;return 1===n?pt(a)?pt(r)||(t="".concat(S.CONV_C2C).concat(r)):t="".concat(S.CONV_C2C).concat(a):2===n&&(t="".concat(S.CONV_GROUP).concat(o)),t}},{key:"_getMyUserID",value:function(){return this._conversationModule.getMyUserID()}},{key:"_insertConversationGroup",value:function(e,t){var n=this._getLocalConversation(e);if(n){var r=n.conversationGroupList;-1===r.indexOf(t)&&r.push(t)}}},{key:"_getLocalConversation",value:function(e){return this._conversationModule.getLocalConversation(e)}},{key:"_hasLocalConversation",value:function(e){return this._conversationModule.hasLocalConversation(e)}},{key:"_emitConversationUpdate",value:function(){this._conversationModule.emitConversationUpdate(!0,!1)}},{key:"_emitConvGroupListUpdate",value:function(){this._conversationModule.emitOuterEvent(I.CONVERSATION_GROUP_LIST_UPDATED,y(this._convGroupMap.values()))}},{key:"_emitConvInGroupUpdate",value:function(e){var t={groupName:e,conversationList:[]},n=this._conversationModule.getLocalConversationList();t.conversationList=n.filter((function(t){return t.conversationGroupList.includes(e)})),this._conversationModule.emitOuterEvent(I.CONVERSATION_IN_GROUP_UPDATED,t)}},{key:"reset",value:function(){Ge.l("".concat(this._n,".reset")),this._convGroupMap.clear(),this._startIndex=0,this._pagingStatus=an.NOT_START}}]),e}(),Ui=function(e){c(r,e);var t=g(r);function r(e){var n;return o(this,r),(n=t.call(this,e))._n="ConversationModule",Mi.mixin(m(n)),n._messageListHandler=new _i,n._messageRemindHandler=new Ri(m(n)),n._convGroupHandler=new Pi(m(n)),n.singlyLinkedList=new Di(100),n._pagingStatus=an.NOT_START,n._pagingTimeStamp=0,n._pagingStartIndex=0,n._pagingPinnedTimeStamp=0,n._pagingPinnedStartIndex=0,n._pagingConvIDMap=new Map,n._convIDFromUnreadDBMap=new Map,n._conversationMap=new Map,n._tmpGroupList=[],n._tmpGroupAtTipsList=[],n._peerReadTimeMap=new Map,n._completedMap=new Map,n._roamingMessageKeyAndTimeMap=new Map,n._roamingMessageSequenceMap=new Map,n._remoteGroupReadSequenceMap=new Map,n._convTotalUnreadCount=0,n._initListeners(),n}return i(r,[{key:"_initListeners",value:function(){var e=this.getInnerEmitterInstance();e.on(yi,this._initLocalConversationList,this),e.on(Oi,this._onProfileUpdated,this)}},{key:"onCheckTimer",value:function(e){e%60==0&&this._messageListHandler.traversal()}},{key:"_initLocalConversationList",value:function(){var e=this,t=new Ka("_initLocalConversationList");Ge.l("".concat(this._n,".").concat("_initLocalConversationList"));var n="",r=this._getStorageConversationList(),o=this.isIntl();if(r){for(var a=r.length,i=0;i<a;i++){var s=r[i];if(s){if(s.conversationID==="".concat(S.CONV_C2C,"@TLS#ERROR")||s.conversationID==="".concat(S.CONV_C2C,"@TLS#NOT_FOUND"))continue;if(s.groupProfile){var c=s.groupProfile.type;if(Et(c))continue}}this._conversationMap.set(r[i].conversationID,new xi(r[i],o))}this.emitConversationUpdate(!0,!1),n="count:".concat(a)}else n="count:0";t.setNetworkType(this.getNetworkType()).setMessage(n).end(),this.getModule(Bn)||this.triggerReady(),this.ready((function(){e._tmpGroupList.length>0&&(e.updateConversationGroupProfile(e._tmpGroupList),e._tmpGroupList.length=0)})),this.syncConversationList()}},{key:"onMessageSent",value:function(e){this._onSendOrReceiveMessage({conversationOptionsList:e.conversationOptionsList,isInstantMessage:!0})}},{key:"onNewMessage",value:function(e){this._onSendOrReceiveMessage(e)}},{key:"_onSendOrReceiveMessage",value:function(e){var t=this,n=e.conversationOptionsList,r=e.isInstantMessage,o=void 0===r||r,a=e.isUnreadC2CMessage,i=void 0!==a&&a,s=e.updateUnreadCount,c=void 0===s||s;this._isReady?0!==n.length&&(this._getC2CPeerReadTime(n),this._updateLocalConversationList({conversationOptionsList:n,isInstantMessage:o,isUnreadC2CMessage:i,isFromGetConversations:!1,updateUnreadCount:c}),o||(this._convIDFromUnreadDBMap=new Map([].concat(y(this._convIDFromUnreadDBMap),y(n.map((function(e){return[e.conversationID,1]}))))),this._diffAndDeleteConversation()),this._setStorageConversationList(),n.filter((function(e){return e.type===S.CONV_TOPIC})).length>0||this.emitConversationUpdate()):this.ready((function(){t._onSendOrReceiveMessage(e)}))}},{key:"updateConversationGroupProfile",value:function(e){var t=this;if(!dt(e)||0!==e.length)if(0!==this._conversationMap.size){var n=!1;e.forEach((function(e){var r="GROUP".concat(e.groupID);if(t._conversationMap.has(r)){n=!0;var o=t._conversationMap.get(r);o.groupProfile=JSON.parse(JSON.stringify(e)),o.lastMessage.lastSequence<e.nextMessageSeq&&(o.lastMessage.lastSequence=e.nextMessageSeq-1),o.subType||(o.subType=e.type)}})),n&&this.emitConversationUpdate(!0,!1)}else this._tmpGroupList=e}},{key:"_updateConversationUserProfile",value:function(e){var t=this;e.data.forEach((function(e){var n="C2C".concat(e.userID);t._conversationMap.has(n)&&(t._conversationMap.get(n).userProfile=e)})),this.emitConversationUpdate(!0,!1)}},{key:"onMessageRevoked",value:function(e){var t=this;if(0!==e.length){var n=null,r=!1,o=[];e.forEach((function(e){(n=t._conversationMap.get(e.conversationID))&&(n.type===S.CONV_TOPIC?o.push(e):(n.reduceUnreadCount()&&(r=!0),n.isLastMessageRevoked({sequence:e.sequence,time:e.time})&&(n.setLastMessageRevoked(!0),n.setLastMessageRevoker(e.revoker),r=!0)))})),this.getModule(Hn).onMessageRevoked(o),r&&(this.emitConversationUpdate(!0,!1),this.emitTotalUnreadMessageCountUpdate())}}},{key:"isLastMessageRevoked",value:function(e){var t=!1,n=e.conversationID,r=e.sequence,o=e.time,a=this._conversationMap.get(n);return a&&(t=a.type===S.CONV_TOPIC?this.getModule(Hn).isLastMessageRevoked({topicID:n.replace(S.CONV_GROUP,""),sequence:r}):a.isLastMessageRevoked({sequence:r,time:o})),Ge.l("".concat(this._n,".isLastMessageRevoked options:").concat(JSON.stringify(e)," ret:").concat(t)),t}},{key:"onMessageDeleted",value:function(e){var t=this;if(0!==e.length){var n=null;e.forEach((function(e){(n=t._messageListHandler.getLocalMessage(e.conversationID,e.ID))&&(n.isDeleted=!0),e!==n&&(e.isDeleted=!0)}));for(var r=e[0].conversationID,o=this._messageListHandler.getLocalMessageList(r),a={},i=o.length-1;i>=0;i--)if(!o[i].isDeleted){a=o[i];break}var s=this._conversationMap.get(r);if(s){var c=!1;s.lastMessage.lastSequence===a.sequence&&s.lastMessage.lastTime===a.time||(en(a)&&(a=void 0),s.updateLastMessage(a),s.type!==S.CONV_TOPIC&&(c=!0),Ge.l("".concat(this._n,".onMessageDeleted. update conversationID:").concat(r," with lastMessage:"),s.lastMessage)),r.startsWith(S.CONV_C2C)&&this.updateUnreadCount(r),c&&this.emitConversationUpdate(!0,!1)}}}},{key:"onMessageModified",value:function(e){var t=e.conversationType,n=e.from,r=e.to,o=e.time,a=e.sequence,i=e.elements,s=e.cloudCustomData,c=e.messageVersion,l=this.getMyUserID(),u="".concat(t).concat(r);r===l&&t===S.CONV_C2C&&(u="".concat(t).concat(n));var d=this._messageListHandler.onMessageModified(u,e),p=d.isUpdated,f=d.message;!0===p&&this.emitOuterEvent(I.MESSAGE_MODIFIED,[f]);var h=this._isTopicConversation(u);if(Ge.l("".concat(this._n,".onMessageModified isUpdated:").concat(p," isTopicMessage:").concat(h," from:").concat(n," to:").concat(r)),h)this.getModule(Hn).onMessageModified(e);else{var m=this._conversationMap.get(u);if(m){var v=m.lastMessage;Ge.d("".concat(this._n.onMessageModified," lastMessage:"),JSON.stringify(v),"options:",JSON.stringify(e)),v&&v.lastTime===o&&v.lastSequence===a&&v.version!==c&&(v.type=i[0].type,v.payload=i[0].content,v.messageForShow=Wt(v.type,v.payload,this.isIntl()),v.cloudCustomData=s,v.version=c,this.emitConversationUpdate(!0,!1))}}return f}},{key:"onNewGroupAtTips",value:function(e){var t=this,r=e.dataList,o=null;r.forEach((function(e){e.groupAtTips?o=e.groupAtTips:e.elements?o=n(n({},e.elements),{},{sync:!0}):e.groupAtType&&(o=n(n({},e),{},{sync:!0})),o.__random=e.random,o.__sequence=e.clientSequence,t._tmpGroupAtTipsList.push(o)})),Ge.d("".concat(this._n,".onNewGroupAtTips isReady:").concat(this._isReady),this._tmpGroupAtTipsList),this._isReady&&this._handleGroupAtTipsList()}},{key:"_handleGroupAtTipsList",value:function(){var e=this;if(0!==this._tmpGroupAtTipsList.length){var t=!1;this._tmpGroupAtTipsList.forEach((function(n){var r=n.groupID,o=n.from,a=n.topicID,i=void 0===a?void 0:a,s=n.sync,c=void 0!==s&&s;if(o!==e.getMyUserID())if(pt(i)){var l=e._conversationMap.get("".concat(S.CONV_GROUP).concat(r));l&&(l.updateGroupAtInfoList(n),t=!0)}else{var u=e._conversationMap.get("".concat(S.CONV_GROUP).concat(i));if(u){u.updateGroupAtInfoList(n);var d=e.getModule(Hn),p=u.groupAtInfoList;d.onConversationProxy({topicID:i,groupAtInfoList:p})}en(u)&&c&&(e.updateTopicConversation([{conversationID:"".concat(S.CONV_GROUP).concat(i),type:S.CONV_TOPIC}]),e._conversationMap.get("".concat(S.CONV_GROUP).concat(i)).updateGroupAtInfoList(n))}})),t&&this.emitConversationUpdate(!0,!1),this._tmpGroupAtTipsList.length=0}}},{key:"_getC2CPeerReadTime",value:function(e){var t=this,n=[];if(e.forEach((function(e){t._conversationMap.has(e.conversationID)||e.type!==S.CONV_C2C||n.push(e.conversationID.replace(S.CONV_C2C,""))})),n.length>0){Ge.d("".concat(this._n,"._getC2CPeerReadTime userIDList:").concat(n));var r=this.getModule(Bn);r&&r.getRemotePeerReadTime(n)}}},{key:"_getStorageConversationList",value:function(){return this.getModule(Wn).getItem("conversationMap")}},{key:"_setStorageConversationList",value:function(){var e=this.getLocalConversationList().filter((function(e){return e.type===S.CONV_C2C||e.type===S.CONV_GROUP&&e.lastMessage.type!==S.MSG_GRP_TIP})).slice(0,20).map((function(e){return{conversationID:e.conversationID,type:e.type,subType:e.subType,lastMessage:e.lastMessage,groupProfile:e.groupProfile,userProfile:e.userProfile}}));this.getModule(Wn).setItem("conversationMap",e)}},{key:"emitConversationUpdate",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.getLocalConversationList();if(t){var r=this.getModule(Fn);r&&r.updateGroupLastMessage(n)}e&&this.emitOuterEvent(I.CONVERSATION_LIST_UPDATED)}},{key:"getLocalConversationList",value:function(){return y(this._conversationMap.values()).filter((function(e){return e.type!==S.CONV_TOPIC}))}},{key:"getLocalConversation",value:function(e){return this._conversationMap.get(e)}},{key:"hasLocalConversation",value:function(e){return this._conversationMap.has(e)}},{key:"getLocalOldestMessage",value:function(e){return this._messageListHandler.getLocalOldestMessage(e)}},{key:"syncConversationList",value:function(){var e=this,t=new Ka("syncConversationList");return this._pagingStatus===an.NOT_START&&this._conversationMap.clear(),this._pagingGetConversationList().then((function(n){return e._pagingStatus=an.RESOLVED,e._diffAndDeleteConversation(),e.emitConversationUpdate(!0,!1),e._setStorageConversationList(),e._handleC2CPeerReadTime(),e._patchConversationProperties(),t.setMessage(e._conversationMap.size).setNetworkType(e.getNetworkType()).end(),n})).catch((function(n){return e._pagingStatus=an.REJECTED,t.setMessage(e._pagingTimeStamp),e.probeNetwork().then((function(e){var r=_(e,2),o=r[0],a=r[1];t.setError(n,o,a).end()})),vi(n)}))}},{key:"_diffAndDeleteConversation",value:function(){var e=this;if(this._isSyncCompleted()){var t=[];this._conversationMap.forEach((function(n,r){!e._pagingConvIDMap.has(r)&&e._convIDFromUnreadDBMap.has(r)&&(e._conversationMap.delete(r),t.push(r))})),Ge.l("".concat(this._n,"._diffAndDeleteConversation list:").concat(t))}}},{key:"_patchConversationProperties",value:function(){var e=this,t=Date.now(),n=this.checkAndPatchRemark(),r=this._messageRemindHandler.getC2CMessageRemindType(),o=this.getModule(Fn).getGroupList();Promise.all([n,r,o]).then((function(){var n=Date.now()-t;Ge.l("".concat(e._n,"._patchConversationProperties ok. cost ").concat(n," ms")),e.emitConversationUpdate(!0,!1),e.emitTotalUnreadMessageCountUpdate()}))}},{key:"_pagingGetConversationList",value:function(){var e=this,t="".concat(this._n,"._pagingGetConversationList");return Ge.l("".concat(t," timeStamp:").concat(this._pagingTimeStamp," startIndex:").concat(this._pagingStartIndex)+" pinnedTimeStamp:".concat(this._pagingPinnedTimeStamp," pinnedStartIndex:").concat(this._pagingPinnedStartIndex)),this._pagingStatus=an.PENDING,this.request({protocolName:Qr,requestData:{fromAccount:this.getMyUserID(),timeStamp:this._pagingTimeStamp,startIndex:this._pagingStartIndex,pinnedTimeStamp:this._pagingPinnedTimeStamp,pinnedStartIndex:this._pagingPinnedStartIndex,orderType:1}}).then((function(n){var r=n.data,o=r.completeFlag,a=r.conversations,i=void 0===a?[]:a,s=r.timeStamp,c=r.startIndex,l=r.pinnedTimeStamp,u=r.pinnedStartIndex,d=r.groupItem;if(Ge.l("".concat(t," ok. completeFlag:").concat(o," count:").concat(i.length," isReady:").concat(e._isReady)),e._convGroupHandler.onConvGroupListSynced(d),i.length>0){var p=e._getConversationOptions(i);e._pagingConvIDMap=new Map([].concat(y(e._pagingConvIDMap),y(p.map((function(e){return[e.conversationID,1]}))))),e._updateLocalConversationList({conversationOptionsList:p,isFromGetConversations:!0}),e.isLoggedIn()&&e.emitConversationUpdate()}if(!e._isReady){if(!e.isLoggedIn())return mi();e.triggerReady()}return e._pagingTimeStamp=s,e._pagingStartIndex=c,e._pagingPinnedTimeStamp=l,e._pagingPinnedStartIndex=u,1!==o?e._pagingGetConversationList():(e._handleGroupAtTipsList(),e._convGroupHandler.getRemoteConvGroupList(),mi())})).catch((function(n){throw e.isLoggedIn()&&(e._isReady||(Ge.w("".concat(t," failed. error:"),n),e.triggerReady())),n}))}},{key:"_updateLocalConversationList",value:function(e){var t,n=e.isFromGetConversations,r=e.isInstantMessage,o=Date.now();t=this._getTmpConversationListMapping(e),this._conversationMap=new Map(this._sortConversationList([].concat(y(t.toBeUpdatedConversationList),y(this._conversationMap)))),n||(this._updateUserOrGroupProfile(t.newConversationList),r&&this.emitTotalUnreadMessageCountUpdate()),Ge.d("".concat(this._n,"._updateLocalConversationList cost ").concat(Date.now()-o," ms"))}},{key:"_getTmpConversationListMapping",value:function(e){for(var t=e.conversationOptionsList,n=e.isFromGetConversations,r=e.isInstantMessage,o=e.isUnreadC2CMessage,a=void 0!==o&&o,i=e.updateUnreadCount,s=[],c=[],l=this.getModule(Fn),u=this.getModule(Gn),d=this.isIntl(),p=0,f=t.length;p<f;p++){var h=new xi(t[p],d),m=h.conversationID;if(m!=="".concat(S.CONV_C2C,"@TLS#ERROR")&&m!=="".concat(S.CONV_C2C,"@TLS#NOT_FOUND"))if(this._conversationMap.has(m)){var v=this._conversationMap.get(m),g=["unreadCount","allowType","adminForbidType","payload","isPinned"];!1===r&&g.push("lastMessage");var _=t[p].lastMessage,y=!pt(_);y||t[p].type===S.CONV_TOPIC||this._onLastMessageNotExist(t[p]),pt(r)&&y&&null===v.lastMessage.payload&&(v.lastMessage.payload=_.payload),en(v.lastMessage.revoker)||(v.lastMessage.revoker=null),_t(v,h,g,[null,void 0,"",0,NaN]),!0===i&&v.updateUnreadCount({nextUnreadCount:h.unreadCount,isFromGetConversations:n,isUnreadC2CMessage:a}),r&&y&&(_.payload&&(v.lastMessage.payload=_.payload),v.type===S.CONV_GROUP&&(v.lastMessage.nameCard=_.nameCard,v.lastMessage.nick=_.nick)),y&&v.lastMessage.cloudCustomData!==_.cloudCustomData&&(v.lastMessage.cloudCustomData=_.cloudCustomData||""),this._conversationMap.delete(m),s.push([m,v])}else{if(h.type===S.CONV_GROUP&&l){var b=h.groupProfile.groupID,O=l.getLocalGroupProfile(b);O&&(h.groupProfile=O,!0===i&&h.updateUnreadCount({nextUnreadCount:0}))}else if(h.type===S.CONV_C2C){var M=m.replace(S.CONV_C2C,"");u&&u.isMyFriend(M)&&(h.remark=u.getFriendRemark(M))}c.push(h),s.push([m,h])}}var k=this.getModule(Hn);return s.forEach((function(e){if(e[1].type===S.CONV_TOPIC){var t=e[1],n=t.conversationID,r=t.unreadCount,o=t.groupAtInfoList;k.onConversationProxy({topicID:n.replace(S.CONV_GROUP,""),unreadCount:r,groupAtInfoList:en(o)?void 0:o})}})),{toBeUpdatedConversationList:s,newConversationList:c}}},{key:"_onLastMessageNotExist",value:function(e){new Ka("lastMessageNotExist").setMessage("".concat(JSON.stringify(e))).setNetworkType(this.getNetworkType()).end()}},{key:"_sortConversationList",value:function(e){var t=[],n=[],r=[],o=[];return e.forEach((function(e){!0===e[1].isPinned?en(e[1].lastMessage.lastTime)?n.push(e):t.push(e):en(e[1].lastMessage.lastTime)?o.push(e):r.push(e)})),t.sort((function(e,t){return t[1].lastMessage.lastTime-e[1].lastMessage.lastTime})).concat(n).concat(r.sort((function(e,t){return t[1].lastMessage.lastTime-e[1].lastMessage.lastTime}))).concat(o)}},{key:"_sortConversationListAndEmitEvent",value:function(){this._conversationMap=new Map(this._sortConversationList(y(this._conversationMap))),this.emitConversationUpdate(!0,!1)}},{key:"_updateUserOrGroupProfile",value:function(e){var t=this;if(0!==e.length){var n=[],r=[],o=this.getModule(Vn),a=this.getModule(Fn);e.forEach((function(e){if(e.type===S.CONV_C2C)n.push(e.toAccount);else if(e.type===S.CONV_GROUP){var t=e.toAccount;a.hasLocalGroup(t)?e.groupProfile=a.getLocalGroupProfile(t):r.push(t)}})),Ge.l("".concat(this._n,"._updateUserOrGroupProfile c2cUserIDList:").concat(n," groupIDList:").concat(r)),n.length>0&&o.getUserProfile({userIDList:n}).then((function(e){var n=e.data;dt(n)?n.forEach((function(e){t._doUpdateUserProfile("C2C".concat(e.userID),e)})):t._doUpdateUserProfile("C2C".concat(n.userID),n)})),r.length>0&&a.getGroupProfileAdvance({groupIDList:r,responseFilter:{groupBaseInfoFilter:["Type","Name","FaceUrl"]}}).then((function(e){e.data.successGroupList.forEach((function(e){var n="GROUP".concat(e.groupID);if(t._conversationMap.has(n)){var r=t._conversationMap.get(n);_t(r.groupProfile,e,[],[null,void 0,"",0,NaN]),!r.subType&&e.type&&(r.subType=e.type)}}))}))}}},{key:"_doUpdateUserProfile",value:function(e,t){this.hasLocalConversation(e)&&(this.getLocalConversation(e).userProfile=t)}},{key:"_getConversationOptions",value:function(e){var t=this,r=[],o=e.filter((function(e){var t=e.type,n=e.userID;return 1===t&&"@TLS#NOT_FOUND"!==n&&"@TLS#ERROR"!==n||2===t})),a=this.getMyUserID(),i=o.map((function(e){if(pt(e.lastMsg)&&(e.lastMsg={elements:[]}),1===e.type){var o={userID:e.userID,nick:e.peerNick,avatar:e.peerAvatar};return r.push(o),{conversationID:"C2C".concat(e.userID),type:"C2C",lastMessage:{lastTime:e.time,lastSequence:e.sequence,fromAccount:e.lastC2CMsgFromAccount,messageForShow:e.messageShow,type:e.lastMsg.elements[0]?e.lastMsg.elements[0].type:null,payload:e.lastMsg.elements[0]?t._amendLayersOverLimitProperty(e.lastMsg.elements[0].content):null,cloudCustomData:e.lastMsg.cloudCustomData||"",isRevoked:8===e.lastMessageFlag,onlineOnlyFlag:!1,nick:"",nameCard:"",version:0,isPeerRead:e.lastC2CMsgFromAccount===a&&e.time<=e.c2cPeerReadTime,revoker:e.lastMsg.revokerInfo?e.lastMsg.revokerInfo.revoker:null},userProfile:new Ei(o),peerReadTime:e.c2cPeerReadTime,isPinned:1===e.isPinned,messageRemindType:"",customData:e.customMark||"",markList:$t(e.standardMark),conversationGroupList:t._convGroupHandler.getConvGroupListByID(e.contactGroupId)}}return{conversationID:"GROUP".concat(e.groupID),type:"GROUP",lastMessage:n(n({lastTime:e.time,lastSequence:e.sequence,fromAccount:e.msgGroupFromAccount,messageForShow:e.messageShow},t._patchTypeAndPayload(e)),{},{cloudCustomData:e.lastMsg.cloudCustomData||"",isRevoked:2===e.lastMessageFlag,onlineOnlyFlag:!1,nick:e.senderNick||"",nameCard:e.senderNameCard||"",revoker:e.lastMsg.revokerInfo?e.lastMsg.revokerInfo.revoker:null}),groupProfile:new Ai({groupID:e.groupID,name:e.groupNick,avatar:e.groupImage}),unreadCount:e.unreadCount,peerReadTime:0,isPinned:1===e.isPinned,messageRemindType:"",version:0,customData:e.customMark||"",markList:$t(e.standardMark),conversationGroupList:t._convGroupHandler.getConvGroupListByID(e.contactGroupId)}}));return r.length>0&&this.getModule(Vn).onConversationsProfileUpdated(r),i}},{key:"_patchTypeAndPayload",value:function(e){var t=e.lastMsg,r=t.event,o=void 0===r?void 0:r,a=t.elements,i=void 0===a?[]:a,s=t.groupTips,c=void 0===s?{}:s;if(!pt(o)&&!en(c)){var l=new ui(c);l.setElement({type:S.MSG_GRP_TIP,content:n(n({},c.elements),{},{groupProfile:c.groupProfile})});var u=JSON.parse(JSON.stringify(l.payload));return l=null,{type:S.MSG_GRP_TIP,payload:u}}return{type:i[0]?i[0].type:null,payload:i[0]?this._amendLayersOverLimitProperty(i[0].content):null}}},{key:"_amendLayersOverLimitProperty",value:function(e){var t=e.layersOverLimit;return 0===t?e.layersOverLimit=!1:1===t&&(e.layersOverLimit=!0),e}},{key:"getLocalMessageList",value:function(e){return this._messageListHandler.getLocalMessageList(e)}},{key:"deleteLocalMessage",value:function(e){e instanceof ui&&this._messageListHandler.remove(e)}},{key:"onConversationDeleted",value:function(e){if(dt(e)){var t=e.map((function(e){var t=e.type,n=e.userID,r=e.groupID;return 1===t?"".concat(S.CONV_C2C).concat(n):2===t?"".concat(S.CONV_GROUP).concat(r):void 0}));Ge.l("".concat(this._n,".onConversationDeleted conversationIDList:").concat(t)),this.deleteLocalConversationList(t)}}},{key:"onConversationPinned",value:function(e){var t=this;if(dt(e)){var n=!1;e.forEach((function(e){var r,o=e.type,a=e.userID,i=e.groupID;1===o?r=t.getLocalConversation("".concat(S.CONV_C2C).concat(a)):2===o&&(r=t.getLocalConversation("".concat(S.CONV_GROUP).concat(i))),r&&(Ge.l("".concat(t._n,".onConversationPinned conversationID:").concat(r.conversationID," isPinned:").concat(r.isPinned)),r.isPinned||(r.isPinned=!0,n=!0))})),n&&this._sortConversationListAndEmitEvent()}}},{key:"onConversationUnpinned",value:function(e){var t=this;if(dt(e)){var n=!1;e.forEach((function(e){var r,o=e.type,a=e.userID,i=e.groupID;1===o?r=t.getLocalConversation("".concat(S.CONV_C2C).concat(a)):2===o&&(r=t.getLocalConversation("".concat(S.CONV_GROUP).concat(i))),r&&(Ge.l("".concat(t._n,".onConversationUnpinned conversationID:").concat(r.conversationID," isPinned:").concat(r.isPinned)),r.isPinned&&(r.isPinned=!1,n=!0))})),n&&this._sortConversationListAndEmitEvent()}}},{key:"getMessageList",value:function(e){var t=this,n=e.conversationID,r=e.nextReqMessageID,o=e.count,a="".concat(this._n,".getMessageList"),i=this.getLocalConversation(n),s="";if(i&&i.groupProfile&&(s=i.groupProfile.type),Et(s))return Ge.l("".concat(a," not available in avchatroom. conversationID:").concat(n)),mi({messageList:[],nextReqMessageID:"",isCompleted:!0});(pt(o)||o>15)&&(o=15),!r&&this._isNotInCommunity(n)&&(this._messageListHandler.removeByConversationID(n),this._completedMap.delete(n),this._roamingMessageSequenceMap.delete(n));var c=this._computeRemainingCount({conversationID:n,nextReqMessageID:r}),l=this._completedMap.has(n);if(Ge.l("".concat(a," conversationID:").concat(n," nextReqMessageID:").concat(r)+" remainingCount:".concat(c," count:").concat(o," isCompleted:").concat(l)),this._needGetHistory({conversationID:n,remainingCount:c,count:o}))return this.getHistoryMessages({conversationID:n,nextReqMessageID:r,count:20}).then((function(e){var r=e.nextReqID,o=e.storedMessageList,i=t._completedMap.has(n),s=o;c>0&&(s=t._messageListHandler.getLocalMessageList(n).slice(0,o.length+c));var l={nextReqMessageID:i?"":r,messageList:s,isCompleted:i};return Ge.l("".concat(a," ret.nextReqMessageID:").concat(l.nextReqMessageID," ret.isCompleted:").concat(l.isCompleted," ret.length:").concat(s.length)),di(l)}));this.modifyMessageList(n);var u=this._getMessageListFromMemory({conversationID:n,nextReqMessageID:r,count:o});return mi(u)}},{key:"_getMessageListFromMemory",value:function(e){var t=e.conversationID,n=e.nextReqMessageID,r=e.count,o="".concat(this._n,"._getMessageListFromMemory"),a=this._messageListHandler.getLocalMessageList(t),i=a.length,s=0,c={isCompleted:!1,nextReqMessageID:"",messageList:[]};return n?(s=a.findIndex((function(e){return e.ID===n})))>r?(c.messageList=a.slice(s-r,s),c.nextReqMessageID=a[s-r].ID):(c.messageList=a.slice(0,s),c.isCompleted=!0):i>r?(s=i-r,c.messageList=a.slice(s,i),c.nextReqMessageID=a[s].ID):(c.messageList=a.slice(0,i),c.isCompleted=!0),Ge.l("".concat(o," conversationID:").concat(t)+" ret.nextReqMessageID:".concat(c.nextReqMessageID," ret.isCompleted:").concat(c.isCompleted," ret.length:").concat(c.messageList.length)),c}},{key:"getMessageListHopping",value:function(e){var t=e.conversationID,n=e.sequence,r=e.time,o=e.count,a=e.direction,i=void 0===a?0:a;if((pt(o)||o>15)&&(o=15),t.startsWith(S.CONV_C2C)){var s=this.getModule(Bn),c=t.replace(S.CONV_C2C,"");return s.getRoamingMessagesHopping({peerAccount:c,time:r,count:o,direction:i})}if(t.startsWith(S.CONV_GROUP)){var l=this.getModule(Fn),u=t.replace(S.CONV_GROUP,"");return l.getRoamingMessagesHopping({groupID:u,sequence:n,count:o,direction:i})}}},{key:"_computeRemainingCount",value:function(e){var t=e.conversationID,n=e.nextReqMessageID,r=this._messageListHandler.getLocalMessageList(t),o=r.length;if(!n)return o;var a=0;return Lt(t)?a=r.findIndex((function(e){return e.ID===n})):At(t)&&(a=-1!==n.indexOf("-")?r.findIndex((function(e){return e.ID===n})):r.findIndex((function(e){return e.sequence===n}))),-1===a&&(a=0),a}},{key:"_getMessageListSize",value:function(e){return this._messageListHandler.getLocalMessageList(e).length}},{key:"_needGetHistory",value:function(e){var t=e.conversationID,n=e.remainingCount,r=e.count,o=this.getLocalConversation(t),a="";return o&&o.groupProfile&&(a=o.groupProfile.type),!Nt(t)&&!Et(a)&&!(At(t)&&this._isPagingGetGroupListCompleted()&&this._getLocalGroupCount()<=4e3&&!this._hasLocalGroup(t)&&!this._isTopicConversation(t))&&n<=r&&!this._completedMap.has(t)}},{key:"_isTopicConversation",value:function(e){var t=e.replace(S.CONV_GROUP,"");return Dt(t)}},{key:"getHistoryMessages",value:function(e){var t=e.conversationID,n=e.count;if(t===S.CONV_SYSTEM)return mi();var r=15;n>20&&(r=20);var o=null;if(Lt(t)){var a=this._roamingMessageKeyAndTimeMap.has(t);return(o=this.getModule(Bn))?o.getRoamingMessage({conversationID:t,peerAccount:t.replace(S.CONV_C2C,""),count:r,lastMessageTime:a?this._roamingMessageKeyAndTimeMap.get(t).lastMessageTime:0,messageKey:a?this._roamingMessageKeyAndTimeMap.get(t).messageKey:""}):vi({code:Aa.CANNOT_FIND_MODULE})}if(At(t)){if(!(o=this.getModule(Fn)))return vi({code:Aa.CANNOT_FIND_MODULE});var i=null;this._conversationMap.has(t)&&(i=this._conversationMap.get(t).lastMessage);var s=0;i&&(s=i.lastSequence);var c=this._roamingMessageSequenceMap.get(t);return o.getRoamingMessage({conversationID:t,groupID:t.replace(S.CONV_GROUP,""),count:r,sequence:c||s})}return mi()}},{key:"patchConversationLastMessage",value:function(e){var t=this.getLocalConversation(e);if(t){var n=t.lastMessage,r=n.messageForShow,o=n.payload;if(en(r)||en(o)){var a=this._messageListHandler.getLocalMessageList(e);if(0===a.length)return;var i=a[a.length-1];Ge.l("".concat(this._n,".patchConversationLastMessage conversationID:").concat(e," payload:"),i.payload),t.updateLastMessage(i)}}}},{key:"onRoamingMessage",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=t.startsWith(S.CONV_C2C)?S.CONV_C2C:S.CONV_GROUP,a=null,i=[],s=[],c=0,l=e.length,u=null,d=o===S.CONV_GROUP,p=this.getModule(Jn),f=this.getFileDownloadProxy(),h=function(){c=d?e.length-1:0,l=d?0:e.length},m=function(){d?--c:++c},v=function(){return d?c>=l:c<l};for(h();v();m())if(d&&1===e[c].sequence&&r&&this.setCompleted(t),1!==e[c].isPlaceMessage)if((a=new ui(e[c])).to=e[c].to,o!==S.CONV_GROUP||pt(e[c].topicID)||(a.to=e[c].topicID),a.isSystemMessage=!!e[c].isSystemMessage,a.conversationType=o,4===e[c].event?u={type:S.MSG_GRP_TIP,content:n(n({},e[c].elements),{},{groupProfile:e[c].groupProfile})}:(e[c].elements=p.parseElements(e[c].elements,e[c].from),u=e[c].elements),d||a.setNickAndAvatar({nick:e[c].nick,avatar:e[c].avatar}),en(u)){var g=new Ka("emptyMessageBody");g.setMessage("from:".concat(a.from," to:").concat(a.to," sequence:").concat(a.sequence," event:").concat(e[c].event)),g.setNetworkType(this.getNetworkType()).setLevel("warning").end()}else a.setElement(u,f),a.reInitialize(this.getMyUserID()),i.push(a);return h=m=v=null,r?(this._messageListHandler.unshift(i,s),i=null,s):(s=null,i)}},{key:"findMessage",value:function(e){return this._messageListHandler.findMessage(e)}},{key:"_isNotInCommunity",value:function(e){var t=!1;if(e.startsWith(S.CONV_GROUP)&&this._isTopicConversation(e)){var n=qt(e.replace(S.CONV_GROUP,""));this.getModule(Fn).hasLocalGroup(n)||(t=!0)}return t}},{key:"deleteTopicRoamingMessageInfo",value:function(e){var t=this;jt({groupID:e})&&this._messageListHandler.getTopicConversationIDList(e).forEach((function(e){t._messageListHandler.removeByConversationID(e),t._completedMap.delete(e),t._roamingMessageSequenceMap.delete(e)}))}},{key:"deleteGroupRomaingMessageInfo",value:function(e){var t="".concat(S.CONV_GROUP).concat(e);this._messageListHandler.removeByConversationID(t),this._completedMap.delete(t),this._roamingMessageSequenceMap.delete(t)}},{key:"setMessageRead",value:function(e){var t=e.conversationID,n=this.getLocalConversation(t);if(Ge.l("".concat(this._n,".setMessageRead conversationID:").concat(t," unreadCount:").concat(n?n.unreadCount:0)),!n)return mi();if(n.type!==S.CONV_GROUP&&n.type!==S.CONV_TOPIC||en(n.groupAtInfoList)||this.deleteGroupAtTips(t),0===n.unreadCount)return mi();if(n.type===S.CONV_GROUP&&!this._hasLocalGroup(t))return 0!==n.unreadCount&&(n.unreadCount=0,this.emitConversationUpdate(!0,!1)),mi();var r=this._messageListHandler.getLocalLastMessage(t),o=n.lastMessage.lastTime;r&&o<r.time&&(o=r.time);var a=n.lastMessage.lastSequence;if(r&&a<r.sequence&&(a=r.sequence),n.type===S.CONV_TOPIC&&pt(r)){var i=this.getModule(Hn),s=t.replace(S.CONV_GROUP,""),c=qt(s),l=i.getLocalTopic(c,s);l&&(a=l.nextMessageSeq-1)}var u=null;switch(n.type){case S.CONV_C2C:return(u=this.getModule(Bn))?u.setMessageRead({conversationID:t,lastMessageTime:o}):vi({code:Aa.CANNOT_FIND_MODULE});case S.CONV_GROUP:case S.CONV_TOPIC:return(u=this.getModule(Fn))?u.setMessageRead({conversationID:t,lastMessageSeq:a}):vi({code:Aa.CANNOT_FIND_MODULE});case S.CONV_SYSTEM:return n.unreadCount=0,this.emitConversationUpdate(!0,!1),mi();default:return mi()}}},{key:"setAllMessageRead",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n="setAllMessageRead",r="".concat(this._n,".").concat(n);t.scope||(t.scope=S.READ_ALL_MSG),Ge.l("".concat(r," options:"),t);var o=this._createSetAllMessageReadPack(t);if(0===o.readAllC2CMessage&&0===o.groupMessageReadInfoList.length)return mi();var a=new Ka(n);return this.request({protocolName:So,requestData:o}).then((function(n){var r=n.data,o=e._handleAllMessageRead(r);return a.setMessage("scope:".concat(t.scope," failureGroups:").concat(JSON.stringify(o))).setNetworkType(e.getNetworkType()).end(),mi()})).catch((function(t){return e.probeNetwork().then((function(e){var n=_(e,2),r=n[0],o=n[1];a.setError(t,r,o).end()})),Ge.w("".concat(r," failed. error:"),t),vi({code:t&&t.code?t.code:Aa.MESSAGE_UNREAD_ALL_FAIL,message:t&&t.message?t.message:void 0})}))}},{key:"setConversationCustomData",value:function(e){return this._convGroupHandler.setConvCustomData(e)}},{key:"markConversation",value:function(e){return this._convGroupHandler.markConversation(e)}},{key:"getConversationGroupList",value:function(){return this._convGroupHandler.getLocalConvGroupList()}},{key:"createConversationGroup",value:function(e){return this._convGroupHandler.createConvGroup(e)}},{key:"deleteConversationGroup",value:function(e){return this._convGroupHandler.deleteConvGroup(e)}},{key:"renameConversationGroup",value:function(e){return this._convGroupHandler.renameConvGroup(e)}},{key:"addConversationsToGroup",value:function(e){return this._convGroupHandler.addConvsToGroup(e)}},{key:"deleteConversationsFromGroup",value:function(e){return this._convGroupHandler.deleteConvsFromGroup(e)}},{key:"onConversationMarkUpdated",value:function(e){this._convGroupHandler.onConvMarkUpdated(e)}},{key:"onConversationGroupCreated",value:function(e){this._convGroupHandler.onConvGroupCreated(e)}},{key:"onConversationGroupDeleted",value:function(e){this._convGroupHandler.onConvGroupDeleted(e)}},{key:"onConversationGroupNameUpdated",value:function(e){this._convGroupHandler.onConvGroupNameUpdated(e)}},{key:"onConversationInGroupUpdated",value:function(e){this._convGroupHandler.onConvInGroupUpdated(e)}},{key:"onConversationAddedToOrDeletedFromGroup",value:function(e){this._convGroupHandler.onConvAddedToOrDeletedFromGroup(e)}},{key:"_getConversationLastMessageSequence",value:function(e){var t=this._messageListHandler.getLocalLastMessage(e.conversationID),n=e.lastMessage.lastSequence;return t&&n<t.sequence&&(n=t.sequence),n}},{key:"_getConversationLastMessageTime",value:function(e){var t=this._messageListHandler.getLocalLastMessage(e.conversationID),n=e.lastMessage.lastTime;return t&&n<t.time&&(n=t.time),n}},{key:"_createSetAllMessageReadPack",value:function(e){var t,n={readAllC2CMessage:0,groupMessageReadInfoList:[]},r=e.scope,o=w(this._conversationMap);try{for(o.s();!(t=o.n()).done;){var a=_(t.value,2)[1];if(a.unreadCount>0)if(a.type===S.CONV_C2C&&0===n.readAllC2CMessage){if(r===S.READ_ALL_MSG)n.readAllC2CMessage=1;else if(r===S.READ_ALL_C2C_MSG){n.readAllC2CMessage=1;break}}else if(a.type===S.CONV_GROUP&&(r===S.READ_ALL_GROUP_MSG||r===S.READ_ALL_MSG)){var i=this._getConversationLastMessageSequence(a);n.groupMessageReadInfoList.push({groupID:a.groupProfile.groupID,messageSequence:i})}}}catch(c){o.e(c)}finally{o.f()}return n}},{key:"onPushedAllMessageRead",value:function(e){this._handleAllMessageRead(e)}},{key:"_handleAllMessageRead",value:function(e){var t=e.groupMessageReadInfoList,n=e.readAllC2CMessage,r=this._parseGroupReadInfo(t);return this._updateAllConversationUnreadCount({readAllC2CMessage:n})>=1&&(this.emitConversationUpdate(!0,!1),this.emitTotalUnreadMessageCountUpdate()),r}},{key:"_parseGroupReadInfo",value:function(e){var t=[];if(e&&e.length)for(var n=0,r=e.length;n<r;n++){var o=e[n],a=o.groupID,i=o.sequence,s=o.retCode,c=o.lastMessageSeq;pt(s)?this._remoteGroupReadSequenceMap.set(a,c):(this._remoteGroupReadSequenceMap.set(a,i),0!==s&&t.push("".concat(a,"-").concat(i,"-").concat(s)))}return t}},{key:"_updateAllConversationUnreadCount",value:function(e){var t,n=e.readAllC2CMessage,r=0,o=w(this._conversationMap);try{for(o.s();!(t=o.n()).done;){var a=_(t.value,2),i=a[0],s=a[1];if(s.unreadCount>=1){if(1===n&&s.type===S.CONV_C2C){var c=this._getConversationLastMessageTime(s);this.updateIsReadAfterReadReport({conversationID:i,lastMessageTime:c})}else if(s.type===S.CONV_GROUP){var l=i.replace(S.CONV_GROUP,"");if(this._remoteGroupReadSequenceMap.has(l)){var u=this._remoteGroupReadSequenceMap.get(l),d=this._getConversationLastMessageSequence(s);this.updateIsReadAfterReadReport({conversationID:i,remoteReadSequence:u}),d>=u&&this._remoteGroupReadSequenceMap.delete(l)}}this.updateUnreadCount(i,!1)&&(r+=1)}}}catch(f){o.e(f)}finally{o.f()}return r}},{key:"isRemoteRead",value:function(e){var t=e.conversationID,n=e.sequence,r=t.replace(S.CONV_GROUP,""),o=!1;if(this._remoteGroupReadSequenceMap.has(r)){var a=this._remoteGroupReadSequenceMap.get(r);n<=a&&(o=!0,Ge.l("".concat(this._n,".isRemoteRead conversationID:").concat(t," messageSequence:").concat(n," remoteReadSequence:").concat(a))),n>=a+10&&this._remoteGroupReadSequenceMap.delete(r)}return o}},{key:"updateIsReadAfterReadReport",value:function(e){var t=e.conversationID,n=e.lastMessageSeq,r=e.lastMessageTime,o=this._messageListHandler.getLocalMessageList(t);if(0!==o.length)for(var a,i=o.length-1;i>=0;i--)if(a=o[i],!(r&&a.time>r||n&&a.sequence>n)){if("in"===a.flow&&a.isRead)break;a.setIsRead(!0)}}},{key:"updateUnreadCount",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!1,r=this.getLocalConversation(e),o=this._messageListHandler.getLocalMessageList(e);if(r){var a=r.unreadCount,i=o.filter((function(e){return!e.isRead&&!e._onlineOnlyFlag&&!e.isDeleted})).length;if(a!==i&&(r.unreadCount=i,n=!0,Ge.l("".concat(this._n,".updateUnreadCount from ").concat(a," to ").concat(i,", conversationID:").concat(e)),!0===t&&(this.emitConversationUpdate(!0,!1),this.emitTotalUnreadMessageCountUpdate())),n&&r.type===S.CONV_TOPIC){var s=r.unreadCount,c=this.getModule(Hn),l=e.replace(S.CONV_GROUP,"");c.onConversationProxy({topicID:l,unreadCount:s})}return n}}},{key:"clearGroupAtInfoList",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.getLocalConversation(e);if(n&&n.groupAtInfoList.length>0){if(n.clearGroupAtInfoList(),Ge.l("".concat(this._n,".clearGroupAtInfoList conversationID:").concat(e)),n.type===S.CONV_TOPIC){var r=n.groupAtInfoList,o=this.getModule(Hn),a=e.replace(S.CONV_GROUP,"");o.onConversationProxy({topicID:a,groupAtInfoList:r})}!0===t&&this.emitConversationUpdate(!0,!1)}}},{key:"updateReadReceiptInfo",value:function(e){var t=this,n=e.userID,r=void 0===n?void 0:n,o=e.groupID,a=void 0===o?void 0:o,i=e.readReceiptList;if(!en(i)){var s=[];if(pt(r)){if(!pt(a)){var c="".concat(S.CONV_GROUP).concat(a);i.forEach((function(e){var n=e.tinyID,r=e.clientTime,o=e.random,i=e.readCount,l=e.unreadCount,u="".concat(n,"-").concat(r,"-").concat(o),d=t._messageListHandler.getLocalMessage(c,u),p={groupID:a,messageID:u,readCount:0,unreadCount:0};d&&(st(i)&&(d.readReceiptInfo.readCount=i,p.readCount=i),st(l)&&(d.readReceiptInfo.unreadCount=l,p.unreadCount=l),s.push(p))}))}}else{var l="".concat(S.CONV_C2C).concat(r);i.forEach((function(e){var n=e.tinyID,o=e.clientTime,a=e.random,i="".concat(n,"-").concat(o,"-").concat(a),c=t._messageListHandler.getLocalMessage(l,i);if(c){c.readReceiptInfo.isPeerRead=!0;var u={userID:r,messageID:i,isPeerRead:!0};s.push(u)}}))}s.length>0&&this.emitOuterEvent(I.MESSAGE_READ_RECEIPT_RECEIVED,s)}}},{key:"recomputeGroupUnreadCount",value:function(e){var t=e.conversationID,n=e.count,r=this.getLocalConversation(t);if(r){var o=r.unreadCount,a=o-n;a<0&&(a=0),r.unreadCount=a,Ge.l("".concat(this._n,".recomputeGroupUnreadCount from ").concat(o," to ").concat(a,", conversationID:").concat(t))}}},{key:"updateIsRead",value:function(e){var t=this.getLocalConversation(e),n=this.getLocalMessageList(e);if(t&&0!==n.length&&!Nt(t.type)){for(var r=[],o=0,a=n.length;o<a;o++)"in"!==n[o].flow?"out"!==n[o].flow||n[o].isRead||n[o].setIsRead(!0):r.push(n[o]);var i=0;if(t.type===S.CONV_C2C){var s=r.slice(-t.unreadCount).filter((function(e){return e.isRevoked})).length;i=r.length-t.unreadCount-s}else i=r.length-t.unreadCount;for(var c=0;c<i&&!r[c].isRead;c++)r[c].setIsRead(!0)}}},{key:"deleteGroupAtTips",value:function(e){var t=this,n="".concat(this._n,".deleteGroupAtTips");Ge.l("".concat(n));var r=this._conversationMap.get(e);if(!r)return Promise.resolve();var o=r.groupAtInfoList;if(0===o.length)return Promise.resolve();var a=void 0;e.startsWith(S.CONV_GROUP)&&(a=e.replace(S.CONV_GROUP,""));var i=y(o);if((jt({groupID:a})||Dt(a))&&0===(i=o.filter((function(e){return!e.atTypeArray.includes(S.CONV_AT_ALL)}))).length)return this.clearGroupAtInfoList(e,!1),Promise.resolve();var s=this.getMyUserID();return this.request({protocolName:no,requestData:{messageListToDelete:i.map((function(e){return{from:e.from,to:s,messageSeq:e.__sequence,messageRandom:e.__random,groupID:pt(e.topicID)?e.groupID:e.topicID}}))}}).then((function(){return Ge.l("".concat(n," ok. count:").concat(o.length)),t.clearGroupAtInfoList(e,!1),Promise.resolve()})).catch((function(e){return Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"appendToMessageList",value:function(e){this._messageListHandler.pushIn(e)}},{key:"setMessageRandom",value:function(e){this.singlyLinkedList.set(e.random)}},{key:"deleteMessageRandom",value:function(e){this.singlyLinkedList.delete(e.random)}},{key:"pushIntoMessageList",value:function(e,t,n){return!(!this._messageListHandler.pushIn(t,n)||this._isMessageFromCurrentInstance(t)&&!n)&&(e.push(t),!0)}},{key:"_isMessageFromCurrentInstance",value:function(e){return this.singlyLinkedList.has(e.random)}},{key:"revoke",value:function(e,t,n){return this._messageListHandler.revoke(e,t,n)}},{key:"getPeerReadTime",value:function(e){return this._peerReadTimeMap.get(e)}},{key:"recordPeerReadTime",value:function(e,t){this._peerReadTimeMap.has(e)?this._peerReadTimeMap.get(e)<t&&this._peerReadTimeMap.set(e,t):this._peerReadTimeMap.set(e,t)}},{key:"updateMessageIsPeerReadProperty",value:function(e,t){if(e.startsWith(S.CONV_C2C)&&t>0){var n=this._messageListHandler.updateMessageIsPeerReadProperty(e,t);if(n.length>0&&this.emitOuterEvent(I.MESSAGE_READ_BY_PEER,n),this._conversationMap.has(e)){var r=this._conversationMap.get(e).lastMessage;en(r)||r.fromAccount===this.getMyUserID()&&r.lastTime<=t&&!r.isPeerRead&&(r.isPeerRead=!0,this.emitConversationUpdate(!0,!1))}}}},{key:"updateMessageIsModifiedProperty",value:function(e){this._messageListHandler.updateMessageIsModifiedProperty(e)}},{key:"setCompleted",value:function(e){Ge.l("".concat(this._n,".setCompleted. conversationID:").concat(e)),this._completedMap.set(e,!0)}},{key:"updateRoamingMessageKeyAndTime",value:function(e,t,n){this._roamingMessageKeyAndTimeMap.set(e,{messageKey:t,lastMessageTime:n})}},{key:"updateRoamingMessageSequence",value:function(e,t){this._roamingMessageSequenceMap.set(e,t)}},{key:"getConversationList",value:function(e){var t=this,n="getConversationList",r="".concat(this._n,".").concat(n),o="pagingStatus:".concat(this._pagingStatus,", local conversation count:").concat(this._conversationMap.size,", options:").concat(e);if(Ge.l("".concat(r,". ").concat(o)),this._pagingStatus===an.REJECTED){var a=new Ka(n);return a.setMessage(o),this.syncConversationList().then((function(){a.setNetworkType(t.getNetworkType()).end();var n=t._getConversationList(e);return di({conversationList:n,isSyncCompleted:t._isSyncCompleted()})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];a.setError(e,r,o).end()})),Ge.e("".concat(r," failed. error:"),e),vi(e)}))}if(0===this._conversationMap.size){var i=new Ka(n);return i.setMessage(o),this.syncConversationList().then((function(){i.setNetworkType(t.getNetworkType()).end();var n=t._getConversationList(e);return di({conversationList:n,isSyncCompleted:t._isSyncCompleted()})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setError(e,r,o).end()})),Ge.e("".concat(r," failed. error:"),e),vi(e)}))}var s=this._getConversationList(e);return Ge.l("".concat(r,". returned conversation count:").concat(s.length)),mi({conversationList:s,isSyncCompleted:this._isSyncCompleted()})}},{key:"_getConversationList",value:function(e){if(pt(e))return this.getLocalConversationList();if(dt(e))return 0===e.length?[]:this.getLocalConversationList().filter((function(t){return e.includes(t.conversationID)}));if(ut(e)){var t=e.type,n=e.markType,r=e.groupName;return this.getLocalConversationList().filter((function(e){return(t!==S.CONV_C2C&&t!==S.CONV_GROUP||e.type===t)&&(!ct(r)||e.conversationGroupList.includes(r))&&(!st(n)||e.markList.includes(n))}))}return[]}},{key:"_handleC2CPeerReadTime",value:function(){var e,t=w(this._conversationMap);try{for(t.s();!(e=t.n()).done;){var n=_(e.value,2),r=n[0],o=n[1];o.type===S.CONV_C2C&&(Ge.d("".concat(this._n,"._handleC2CPeerReadTime conversationID:").concat(r," peerReadTime:").concat(o.peerReadTime)),this.recordPeerReadTime(r,o.peerReadTime))}}catch(i){t.e(i)}finally{t.f()}}},{key:"_isPagingGetGroupListCompleted",value:function(){return this.getModule(Fn).isPagingGetCompleted()}},{key:"_getLocalGroupCount",value:function(){return this.getModule(Fn).getLocalGroupList().length}},{key:"_hasLocalGroup",value:function(e){return this.getModule(Fn).hasLocalGroup(e.replace(S.CONV_GROUP,""))}},{key:"getConversationProfile",value:function(e){var t,n=this;if((t=this._conversationMap.has(e)?this._conversationMap.get(e):new xi({conversationID:e,type:e.slice(0,3)===S.CONV_C2C?S.CONV_C2C:S.CONV_GROUP},this.isIntl()))._isInfoCompleted||t.type===S.CONV_SYSTEM)return mi({conversation:t});if(At(e)&&!this._hasLocalGroup(e))return mi({conversation:t});var r="".concat(this._n,".").concat("getConversationProfile"),o=new Ka("getConversationProfile");return Ge.l("".concat(r,". conversationID:").concat(e," remark:").concat(t.remark," lastMessage:"),t.lastMessage),this._updateUserOrGroupProfileCompletely(t).then((function(a){o.setNetworkType(n.getNetworkType()).setMessage("conversationID:".concat(e," unreadCount:").concat(a.data.conversation.unreadCount)).end();var i=n.getModule(Gn);if(i&&t.type===S.CONV_C2C){var s=e.replace(S.CONV_C2C,"");if(i.isMyFriend(s)){var c=i.getFriendRemark(s);t.remark!==c&&(t.remark=c,Ge.l("".concat(r,". conversationID:").concat(e," patch remark:").concat(t.remark)))}}return Ge.l("".concat(r," ok. conversationID:").concat(e)),a})).catch((function(t){return n.probeNetwork().then((function(n){var r=_(n,2),a=r[0],i=r[1];o.setError(t,a,i).setMessage("conversationID:".concat(e)).end()})),Ge.e("".concat(r," failed. error:"),t),vi(t)}))}},{key:"_updateUserOrGroupProfileCompletely",value:function(e){var t=this;return e.type===S.CONV_C2C?this.getModule(Vn).getUserProfile({userIDList:[e.toAccount]}).then((function(n){var r=n.data;return 0===r.length?vi(new pi({code:Aa.USER_OR_GROUP_NOT_FOUND})):(e.userProfile=r[0],e._isInfoCompleted=!0,t._unshiftConversation(e),mi({conversation:e}))})):this.getModule(Fn).getGroupProfile({groupID:e.toAccount}).then((function(n){return e.groupProfile=n.data.group,e._isInfoCompleted=!0,t._unshiftConversation(e),mi({conversation:e})}))}},{key:"_unshiftConversation",value:function(e){e instanceof xi&&!this._conversationMap.has(e.conversationID)&&(this._conversationMap=new Map([[e.conversationID,e]].concat(y(this._conversationMap))),this._setStorageConversationList(),this.emitConversationUpdate(!0,!1))}},{key:"_onProfileUpdated",value:function(e){var t=this;e.data.forEach((function(e){var n=e.userID;if(n===t.getMyUserID())t._onMyProfileModified({latestNick:e.nick,latestAvatar:e.avatar});else{var r=t._conversationMap.get("".concat(S.CONV_C2C).concat(n));r&&(r.userProfile=e)}}))}},{key:"_isSyncCompleted",value:function(){return this._pagingStatus===an.RESOLVED}},{key:"_errorLog",value:function(e,t,n,r){var o=new Error("Params validate failed."),a="".concat(this.getErrorMessage("API_REFER")).concat(e);throw Ge.w("[".concat(e,"] | ").concat(t," | ").concat(this.getErrorMessage(n,r),", ").concat(a)),Ge.e("[".concat(e,"] Invalid ").concat(t,": type check failed for ").concat(t,".")),o}},{key:"_isValidConversationID",value:function(e){return Lt(e)||At(e)||Nt(e)}},{key:"deleteConversation",value:function(e){var t=this,n="deleteConversation";return ct(e)||lt(e)||this._errorLog(n,"options","StringOrObjectRequiredLog"),ct(e)?(this._isValidConversationID(e)||this._errorLog(n,"options","InvalidConversationID",e),Ge.l("".concat(this._n,".").concat(n," conversationID:").concat(e)),this.deleteConversationList({conversationIDList:[e],flag:1})):(dt(e.conversationIDList)||this._errorLog(n,"conversationIDList","ArrayRequiredLog"),0===e.conversationIDList.length&&this._errorLog(n,"conversationIDList","NonEmptyArrayLog"),e.conversationIDList.forEach((function(e){t._isValidConversationID(e)||t._errorLog(n,"conversationIDList","InvalidConversationID",e)})),"clearHistoryMessage"in e&&"boolean"!=typeof e.clearHistoryMessage&&this._errorLog(n,"clearHistoryMessage","BooleanRequiredLog"),e.conversationIDList.length>100&&(e.conversationIDList=e.conversationIDList.slice(0,100)),this.deleteConversationList(e))}},{key:"deleteConversationList",value:function(e){var t=this,n=e.conversationIDList,r=void 0===n?[]:n,o=e.clearHistoryMessage,a=void 0===o||o,i=e.flag,s=void 0===i?0:i,c="".concat(this._n,".").concat("deleteConversationList");Ge.l("".concat(c," conversationIDList.length:").concat(r.length," clearHistoryMessage:").concat(a));var l=new Ka("deleteConversationList");return l.setMessage("conversationIDList:".concat(r)),Promise.all([this.rmLocalOnlyConversationList(r),this.rmLocalAndRemoteConversationList(r,a)]).then((function(e){l.setNetworkType(t.getNetworkType()).end();var n=[].concat(y(e[0]),y(e[1]));return 0===n.length?vi(new pi({code:Aa.CONVERSATION_NOT_FOUND})):(Ge.l("".concat(c," ok")),mi(1===s?{conversationID:n[0]}:{conversationIDList:n}))})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];l.setError(e,r,o).end()})),Ge.e("".concat(c," failed. error:"),e),vi(e)}))}},{key:"rmLocalOnlyConversationList",value:function(e){var t=this;return e.filter((function(e){if(!t._conversationMap.has(e))return!1;var n=t.getLocalConversation(e).type;return n!==S.CONV_GROUP||t._hasLocalGroup(e)?n===S.CONV_SYSTEM&&(t.getModule(Fn).deleteGroupSystemNotice({messageList:t._messageListHandler.getLocalMessageList(e)}),t.deleteLocalConversation(e),!0):(t.deleteLocalConversation(e),!0)}))}},{key:"rmLocalAndRemoteConversationList",value:function(e,t){var n=this,r={fromAccount:this.getMyUserID(),conversationList:[],clearHistoryMessage:t?1:0};return e.forEach((function(e){if(n._conversationMap.has(e)){var t=n.getLocalConversation(e).type;t===S.CONV_C2C?r.conversationList.push({toAccount:e.replace(t,""),type:1}):t===S.CONV_GROUP&&n._hasLocalGroup(e)&&r.conversationList.push({toGroupID:e.replace(t,""),type:2})}})),0===r.conversationList.length?[]:this.request({protocolName:Zr,requestData:r}).then((function(e){var t=[];return e.data.resultList.length>0&&e.data.resultList.map((function(e){if(0===e.code){var n="".concat(1===e.type?S.CONV_C2C:S.CONV_GROUP).concat(e.to);t.push(n)}})),n.deleteLocalConversationList(t),t}))}},{key:"clearHistoryMessage",value:function(e){var t=this,n={fromAccount:this.getMyUserID(),toAccount:void 0,type:void 0,toGroupID:void 0};if(!this._conversationMap.has(e))return vi({code:Aa.CONVERSATION_NOT_FOUND});var r=this._conversationMap.get(e).type;if(r===S.CONV_C2C)n.type=1,n.toAccount=e.replace(S.CONV_C2C,"");else{if(r!==S.CONV_GROUP)return r===S.CONV_SYSTEM?(this.getModule(Fn).deleteGroupSystemNotice({messageList:this._messageListHandler.getLocalMessageList(e)}),mi({conversationID:e})):vi({code:Aa.CONVERSATION_UN_RECORDED_TYPE});n.type=2,n.toGroupID=e.replace(S.CONV_GROUP,"")}var o="".concat(this._n,".").concat("clearHistoryMessage"),a=new Ka("clearHistoryMessage");return a.setMessage("conversationID:".concat(e)),Ge.l("".concat(o,". conversationID:").concat(e)),this.setMessageRead({conversationID:e}).then((function(){return t.request({protocolName:eo,requestData:n})})).then((function(){a.setNetworkType(t.getNetworkType()).end(),Ge.l("".concat(o," ok")),t._messageListHandler.removeByConversationID(e),t.setCompleted(e);var n=t.getLocalConversation(e);return n&&(n.updateLastMessage(),t._sortConversationListAndEmitEvent()),mi({conversationID:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];a.setError(e,r,o).end()})),Ge.e("".concat(o," failed. error:"),e),vi(e)}))}},{key:"pinConversation",value:function(e){var t=this,n=e.conversationID,r=e.isPinned;if(!this._conversationMap.has(n))return vi({code:Aa.CONVERSATION_NOT_FOUND});var o=this.getLocalConversation(n);if(o.isPinned===r)return mi({conversationID:n});var a="".concat(this._n,".").concat("pinConversation"),i=new Ka("pinConversation");i.setMessage("conversationID:".concat(n," isPinned:").concat(r)),Ge.l("".concat(a,". conversationID:").concat(n," isPinned:").concat(r));var s=null;return Lt(n)?s={type:1,toAccount:n.replace(S.CONV_C2C,"")}:At(n)&&(s={type:2,groupID:n.replace(S.CONV_GROUP,"")}),this.request({protocolName:to,requestData:{fromAccount:this.getMyUserID(),operationType:!0===r?1:2,itemList:[s]}}).then((function(){return i.setNetworkType(t.getNetworkType()).end(),Ge.l("".concat(a," ok")),o.isPinned!==r&&(o.isPinned=r,t._sortConversationListAndEmitEvent()),di({conversationID:n})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setError(e,r,o).end()})),Ge.e("".concat(a," failed. error:"),e),vi(e)}))}},{key:"setMessageRemindType",value:function(e){return this._messageRemindHandler.set(e)}},{key:"patchMessageRemindType",value:function(e){var t=e.ID,n=e.isC2CConversation,r=e.messageRemindType,o=!1,a=this.getLocalConversation(n?"".concat(S.CONV_C2C).concat(t):"".concat(S.CONV_GROUP).concat(t));return a&&a.messageRemindType!==r&&(a.messageRemindType=r,o=!0),Ge.d("".concat(this._n,".patchMessageRemindType options:"),e,"ret:".concat(o)),o}},{key:"onC2CMessageRemindTypeSynced",value:function(e){var t=this,n="".concat(this._n,".onC2CMessageRemindTypeSynced");Ge.d(n,e),e.dataList.forEach((function(e){if(!en(e.muteNotificationsSync)){var r,o=e.muteNotificationsSync,a=o.to,i=o.updateSequence,s=o.muteFlag;t._messageRemindHandler.setUpdateSequence(i),0===s?r=S.MSG_REMIND_ACPT_AND_NOTE:1===s?r=S.MSG_REMIND_DISCARD:2===s&&(r=S.MSG_REMIND_ACPT_NOT_NOTE);var c=0;t.patchMessageRemindType({ID:a,isC2CConversation:!0,messageRemindType:r})&&(c+=1),Ge.l("".concat(n," updateCount:").concat(c)),c>=1&&t.emitConversationUpdate(!0,!1)}}))}},{key:"onGroupMessageRemindTypeSynced",value:function(e){Ge.d("".concat(this._n,".onGroupMessageRemindTypeSynced options:"),e),this._messageRemindHandler.onGroupMessageRemindTypeUpdated(e)}},{key:"deleteLocalConversation",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this._conversationMap.has(e);if(Ge.d("".concat(this._n,".deleteLocalConversation conversationID:").concat(e," has:").concat(n)),n&&(this._conversationMap.delete(e),this._roamingMessageKeyAndTimeMap.has(e)&&this._roamingMessageKeyAndTimeMap.delete(e),this._roamingMessageSequenceMap.has(e)&&this._roamingMessageSequenceMap.delete(e),this._setStorageConversationList(),this._messageListHandler.removeByConversationID(e),this._completedMap.delete(e),t)){var r=!this._isTopicConversation(e);this.emitConversationUpdate(r,!1)}}},{key:"deleteLocalConversationList",value:function(e){var t=this,n=0,r=!1;e.forEach((function(e){t._conversationMap.has(e)&&(n+=t._conversationMap.get(e).unreadCount||0,t.deleteLocalConversation(e,!1),r=!0)})),Ge.l("".concat(this._n,".deleteLocalConversationList conversationIDList.length:").concat(e.length," isConvIDExisted:").concat(r)),r&&(this.emitConversationUpdate(!0,!1),n>0&&this.emitTotalUnreadMessageCountUpdate())}},{key:"isMessageSentByCurrentInstance",value:function(e){return!(!this._messageListHandler.hasLocalMessage(e.conversationID,e.ID)&&!this.singlyLinkedList.has(e.random))}},{key:"modifyMessageList",value:function(e){if(e.startsWith(S.CONV_C2C)&&this._conversationMap.has(e)){var t=this._conversationMap.get(e),n=Date.now();this._messageListHandler.modifyMessageSentByPeer({conversationID:e,latestNick:t.userProfile.nick,latestAvatar:t.userProfile.avatar});var r=this.getModule(Vn).getNickAndAvatarByUserID(this.getMyUserID());this._messageListHandler.modifyMessageSentByMe({conversationID:e,latestNick:r.nick,latestAvatar:r.avatar}),Ge.l("".concat(this._n,".modifyMessageList conversationID:").concat(e," cost ").concat(Date.now()-n," ms"))}}},{key:"updateUserProfileSpecifiedKey",value:function(e){Ge.l("".concat(this._n,".updateUserProfileSpecifiedKey options:"),e);var t=e.conversationID,n=e.nick,r=e.avatar;if(this._conversationMap.has(t)){var o=this._conversationMap.get(t).userProfile;ct(n)&&o.nick!==n&&(o.nick=n),ct(r)&&o.avatar!==r&&(o.avatar=r),this.emitConversationUpdate(!0,!1)}}},{key:"_onMyProfileModified",value:function(e){var t=this,r=this.getLocalConversationList(),o=Date.now();r.forEach((function(r){t.modifyMessageSentByMe(n({conversationID:r.conversationID},e))})),Ge.l("".concat(this._n,"._onMyProfileModified. modify all messages sent by me, cost ").concat(Date.now()-o," ms"))}},{key:"modifyMessageSentByMe",value:function(e){this._messageListHandler.modifyMessageSentByMe(e)}},{key:"getLatestMessageSentByMe",value:function(e){return this._messageListHandler.getLatestMessageSentByMe(e)}},{key:"modifyMessageSentByPeer",value:function(e){this._messageListHandler.modifyMessageSentByPeer(e)}},{key:"getLatestMessageSentByPeer",value:function(e){return this._messageListHandler.getLatestMessageSentByPeer(e)}},{key:"pushIntoNoticeResult",value:function(e,t){return!(!this._messageListHandler.pushIn(t)||this.singlyLinkedList.has(t.random))&&(e.push(t),!0)}},{key:"getLocalLastMessage",value:function(e){return this._messageListHandler.getLocalLastMessage(e)}},{key:"checkAndPatchRemark",value:function(){var e=Promise.resolve();if(0===this._conversationMap.size)return e;var t=this.getModule(Gn);if(!t)return e;var n=y(this._conversationMap.values()).filter((function(e){return e.type===S.CONV_C2C}));if(0===n.length)return e;var r=0;return n.forEach((function(e){var n=e.conversationID.replace(S.CONV_C2C,"");if(t.isMyFriend(n)){var o=t.getFriendRemark(n);e.remark!==o&&(e.remark=o,r+=1)}})),Ge.l("".concat(this._n,".checkAndPatchRemark. c2c conversation count:").concat(n.length,", patched count:").concat(r)),e}},{key:"updateTopicConversation",value:function(e){this._updateLocalConversationList({conversationOptionsList:e,isFromGetConversations:!0})}},{key:"sendReadReceipt",value:function(e){var t=e[0],n=null;return t.conversationType===S.CONV_C2C?n=this._m.getModule(Bn):t.conversationType===S.CONV_GROUP&&(n=this._m.getModule(Fn)),n?n.sendReadReceipt(e):vi({code:Aa.CANNOT_FIND_MODULE})}},{key:"getReadReceiptList",value:function(e){var t=e[0],n=null;return t.conversationType===S.CONV_C2C?n=this._m.getModule(Bn):t.conversationType===S.CONV_GROUP&&(n=this._m.getModule(Fn)),n?n.getReadReceiptList(e):vi({code:Aa.CANNOT_FIND_MODULE})}},{key:"getLastMessageTime",value:function(e){var t=this.getLocalConversation(e);return t?t.lastMessage.lastTime:0}},{key:"getTotalUnreadMessageCount",value:function(){var e=this.getLocalConversationList(),t=0;return e.forEach((function(e){e.type!==S.CONV_SYSTEM&&(""!==e.messageRemindType&&e.messageRemindType!==S.MSG_REMIND_ACPT_AND_NOTE||(t+=e.unreadCount))})),t}},{key:"emitTotalUnreadMessageCountUpdate",value:function(){var e=this.getTotalUnreadMessageCount();this._convTotalUnreadCount!==e&&(Ge.l("".concat(this._n,".emitTotalUnreadMessageCountUpdate from ").concat(this._convTotalUnreadCount," to ").concat(e)),this._convTotalUnreadCount=e,this.emitOuterEvent(I.TOTAL_UNREAD_MESSAGE_COUNT_UPDATED))}},{key:"reset",value:function(){Ge.l("".concat(this._n,".reset")),this._pagingStatus=an.NOT_START,this._messageListHandler.reset(),this._messageRemindHandler.reset(),this._roamingMessageKeyAndTimeMap.clear(),this._roamingMessageSequenceMap.clear(),this.singlyLinkedList.reset(),this._peerReadTimeMap.clear(),this._completedMap.clear(),this._conversationMap.clear(),this._pagingTimeStamp=0,this._pagingStartIndex=0,this._pagingPinnedTimeStamp=0,this._pagingPinnedStartIndex=0,this._remoteGroupReadSequenceMap.clear(),this._convTotalUnreadCount=0,this.resetReady()}}]),r}(fr),Vi=function(){function e(t){o(this,e),this._groupModule=t,this._n="GroupTipsHandler",this._cachedGroupTipsMap=new Map,this._checkCountMap=new Map,this.MAX_CHECK_COUNT=4,this._getTopicPendingMap=new Map}return i(e,[{key:"onCheckTimer",value:function(e){e%1==0&&this._cachedGroupTipsMap.size>0&&this._checkCachedGroupTips()}},{key:"_checkCachedGroupTips",value:function(){var e=this;this._cachedGroupTipsMap.forEach((function(t,n){var r=e._checkCountMap.get(n),o=e._groupModule.hasLocalGroup(n);Ge.l("".concat(e._n,"._checkCachedGroupTips groupID:").concat(n," hasLocalGroup:").concat(o," checkCount:").concat(r)),o?(e._notifyCachedGroupTips(n),e._checkCountMap.delete(n),e._groupModule.deleteUnjoinedAVChatRoom(n)):r>=e.MAX_CHECK_COUNT?(e._deleteCachedGroupTips(n),e._checkCountMap.delete(n)):(r++,e._checkCountMap.set(n,r))}))}},{key:"onNewGroupTips",value:function(e){Ge.d("".concat(this._n,".onReceiveGroupTips count:").concat(e.dataList.length));var t=this.newGroupTipsStoredAndSummary(e),n=t.eventDataList,r=t.result,o=t.AVChatRoomMessageList;o.length>0&&this._groupModule.onAVChatRoomMessage(o),n.length>0&&(this._groupModule.updateNextMessageSeq(n),this._groupModule.getModule(Yn).onNewMessage({conversationOptionsList:n,isInstantMessage:!0})),r.length>0&&(this._groupModule.emitOuterEvent(I.MESSAGE_RECEIVED,r),this.handleMessageList(r))}},{key:"newGroupTipsStoredAndSummary",value:function(e){for(var t=this,r=e.event,o=e.dataList,a=null,i=[],s=[],c={},l=[],u=function(e,u){var d=St(o[e]);if(6===r){if(t._groupModule.isGroupAttributesUpdatedNotice(d))return"continue";if(t._groupModule.isGroupCountersNotice(d))return"continue"}var p=d.groupProfile,f=p.groupID,h=p.communityType,m=void 0===h?0:h,v=p.topicID,g=void 0===v?void 0:v,_=p.invisible,y=void 0,b=t._groupModule.isMessageFromTopic(m,g);if(b){y=S.CONV_TOPIC,d.to=g;var O=t._groupModule.getModule(Hn);O.hasLocalTopic(f,g)||t._getTopicPendingMap.has(g)||(t._getTopicPendingMap.set(g,1),O.getTopicList({groupID:f,topicIDList:[g]}).finally((function(){t._getTopicPendingMap.delete(g)})))}var M=t._groupModule.hasLocalGroup(f);if(!M&&t._groupModule.isUnjoinedAVChatRoom(f))return"continue";if(!M&&!b)return t._cacheGroupTipsAndProbe({groupID:f,event:r,item:d}),"continue";if(t._groupModule.isMessageFromOrToAVChatroom(f))return d.event=r,l.push(d),"continue";if(d.currentUser=t._groupModule.getMyUserID(),d.conversationType=S.CONV_GROUP,(a=new ui(d)).setElement({type:S.MSG_GRP_TIP,content:n(n({},d.elements),{},{groupProfile:d.groupProfile})}),a.isSystemMessage=!1,1===_)return t._qualityStat(a),"continue";var k=t._groupModule.getModule(Yn),C=a,w=C.conversationID,I=C.sequence;if(6===r)a._onlineOnlyFlag=!0,s.push(a);else if(!k.pushIntoNoticeResult(s,a))return"continue";if(t._groupModule.isMessageFromCommunityOfTopic(m,g))return"continue";if(6===r&&k.getLocalConversation(w))return"continue";6!==r&&t._qualityStat(a);var T=k.isRemoteRead({conversationID:w,sequence:I});if(pt(c[w])){var E=0;"in"===a.flow&&(a._isExcludedFromUnreadCount||a._onlineOnlyFlag||T||(E=1)),c[w]=i.push({conversationID:w,unreadCount:E,type:pt(y)?a.conversationType:y,subType:a.conversationSubType,lastMessage:a._isExcludedFromLastMessage?"":a})-1}else{var j=c[w];i[j].type=a.conversationType,i[j].subType=a.conversationSubType,i[j].lastMessage=a._isExcludedFromLastMessage?"":a,"in"===a.flow&&(a._isExcludedFromUnreadCount||a._onlineOnlyFlag||T||i[j].unreadCount++)}},d=0,p=o.length;d<p;d++)u(d);return{eventDataList:i,result:s,AVChatRoomMessageList:l}}},{key:"_qualityStat",value:function(e){this._groupModule.getModule(ir).addMessageSequence({key:Fa,message:e})}},{key:"handleMessageList",value:function(e){var t=this;e.forEach((function(e){switch(e.payload.operationType){case 1:t._onNewMemberComeIn(e);break;case 2:t._onMemberQuit(e);break;case 3:t._onMemberKickedOut(e);break;case 4:t._onMemberSetAdmin(e);break;case 5:t._onMemberCancelledAdmin(e);break;case 6:t._onGroupProfileModified(e);break;case 7:t._onMemberInfoModified(e);break;case 8:t._onTopicProfileUpdated(e);break;default:Ge.w("".concat(t._n,".handleMessageList unknown operationType:").concat(e.payload.operationType))}}))}},{key:"_onNewMemberComeIn",value:function(e){var t=e.payload,n=t.memberNum,r=t.groupProfile.groupID,o=this._groupModule.getLocalGroupProfile(r);o&&st(n)&&o.memberCount!==n&&(o.memberCount=n,this._updateConversationGroupProfile(o))}},{key:"_onMemberQuit",value:function(e){var t=e.payload,n=t.memberNum,r=t.groupProfile.groupID,o=this._groupModule.getLocalGroupProfile(r);o&&st(n)&&o.memberCount!==n&&(o.memberCount=n,this._updateConversationGroupProfile(o)),this._groupModule.getModule(zn).deleteLocalGroupMembers(r,e.payload.userIDList)}},{key:"_onMemberKickedOut",value:function(e){var t=e.payload,n=t.memberNum,r=t.groupProfile.groupID,o=this._groupModule.getLocalGroupProfile(r);o&&st(n)&&o.memberCount!==n&&(o.memberCount=n,this._updateConversationGroupProfile(o)),this._groupModule.getModule(zn).deleteLocalGroupMembers(r,e.payload.userIDList)}},{key:"_updateConversationGroupProfile",value:function(e){this._groupModule.getModule(Yn).updateConversationGroupProfile([e])}},{key:"_onMemberSetAdmin",value:function(e){var t=e.payload.groupProfile.groupID,n=e.payload.userIDList,r=this._groupModule.getModule(zn);n.forEach((function(e){var n=r.getLocalGroupMemberInfo(t,e);n&&n.updateRole(S.GRP_MBR_ROLE_ADMIN)}))}},{key:"_onMemberCancelledAdmin",value:function(e){var t=e.payload.groupProfile.groupID,n=e.payload.userIDList,r=this._groupModule.getModule(zn);n.forEach((function(e){var n=r.getLocalGroupMemberInfo(t,e);n&&n.updateRole(S.GRP_MBR_ROLE_MEMBER)}))}},{key:"_onGroupProfileModified",value:function(e){var t=this,n=e.payload,r=n.newGroupProfile,o=n.groupProfile.groupID,a=this._groupModule.getLocalGroupProfile(o);Object.keys(r).forEach((function(e){switch(e){case"ownerID":t._ownerChanged(a,r);break;case"groupName":a.name=r[e];break;default:a[e]=r[e]}}));var i=!a.isSupportTopic;this._groupModule.emitGroupListUpdate(!0,i)}},{key:"_ownerChanged",value:function(e,t){var n=e.groupID,r=this._groupModule.getLocalGroupProfile(n),o=this._groupModule.getMyUserID();if(o===t.ownerID){r.updateGroup({selfInfo:{role:S.GRP_MBR_ROLE_OWNER}});var a=this._groupModule.getModule(zn),i=a.getLocalGroupMemberInfo(n,o),s=this._groupModule.getLocalGroupProfile(n).ownerID,c=a.getLocalGroupMemberInfo(n,s);i&&i.updateRole(S.GRP_MBR_ROLE_OWNER),c&&c.updateRole(S.GRP_MBR_ROLE_MEMBER)}}},{key:"_onMemberInfoModified",value:function(e){var t=e.to,n=e.payload,r=n.groupProfile,o=n.memberList,a=r.groupID;Dt(t)&&this._updateTopicMuteTime(e);var i=this._groupModule.getModule(zn);o.forEach((function(e){var t=i.getLocalGroupMemberInfo(a,e.userID);t&&st(e.muteTime)&&t.updateMuteUntil(e.muteTime)}))}},{key:"_updateTopicMuteTime",value:function(e){var t=e.to,n=e.payload,r=n.groupProfile,o=n.memberList,a=void 0===o?[]:o,i=this._groupModule.getModule(Hn),s=r.groupID,c=i.getLocalTopic(s,t);if(c){for(var l=!1,u=0;u<a.length;u++){var d=a[u];if(d.userID===this._groupModule.getMyUserID()&&d.muteTime>=0){c.updateSelfInfo({muteTime:d.muteTime}),l=!0;break}}l&&this._groupModule.emitOuterEvent(I.TOPIC_UPDATED,{groupID:s,topic:c})}}},{key:"_onTopicProfileUpdated",value:function(e){var t=e.payload,r=t.groupProfile.groupID,o=t.newTopicInfo;this._groupModule.getModule(Hn).onTopicProfileUpdated(n({groupID:r,topicID:e.to},o))}},{key:"_cacheGroupTips",value:function(e,t){this._cachedGroupTipsMap.has(e)||this._cachedGroupTipsMap.set(e,[]),this._cachedGroupTipsMap.get(e).push(t)}},{key:"_deleteCachedGroupTips",value:function(e){this._cachedGroupTipsMap.has(e)&&this._cachedGroupTipsMap.delete(e)}},{key:"_notifyCachedGroupTips",value:function(e){var t=this,n=this._cachedGroupTipsMap.get(e)||[];n.forEach((function(e){t.onNewGroupTips(e)})),this._deleteCachedGroupTips(e),Ge.l("".concat(this._n,"._notifyCachedGroupTips groupID:").concat(e," count:").concat(n.length))}},{key:"_cacheGroupTipsAndProbe",value:function(e){var t=this,n=e.groupID,r=e.event,o=e.item;this._cacheGroupTips(n,{event:r,dataList:[o]}),this._groupModule.getGroupSimplifiedInfo(n).then((function(e){e.type===S.GRP_AVCHATROOM?t._groupModule.hasLocalGroup(n)?t._notifyCachedGroupTips(n):t._groupModule.setUnjoinedAVChatRoom(n):(t._groupModule.updateGroupMap([e]),t._notifyCachedGroupTips(n))})),this._checkCountMap.has(n)||this._checkCountMap.set(n,0),Ge.l("".concat(this._n,"._cacheGroupTipsAndProbe groupID:").concat(n))}},{key:"reset",value:function(){this._cachedGroupTipsMap.clear(),this._checkCountMap.clear(),this._getTopicPendingMap.clear()}}]),e}(),Bi=function(){function e(t){o(this,e),this._groupModule=t,this._n="CommonGroupHandler",this.tempConversationList=null,this._cachedGroupMessageMap=new Map,this._checkCountMap=new Map,this.MAX_CHECK_COUNT=4,this._getTopicPendingMap=new Map,this._isPagingGetCompleted=!1,t.getInnerEmitterInstance().once(yi,this._initGroupList,this)}return i(e,[{key:"onCheckTimer",value:function(e){e%1==0&&this._cachedGroupMessageMap.size>0&&this._checkCachedGroupMessage()}},{key:"_checkCachedGroupMessage",value:function(){var e=this;this._cachedGroupMessageMap.forEach((function(t,n){var r=e._checkCountMap.get(n),o=e._groupModule.hasLocalGroup(n);Ge.l("".concat(e._n,"._checkCachedGroupMessage groupID:").concat(n," hasLocalGroup:").concat(o," checkCount:").concat(r)),o?(e._notifyCachedGroupMessage(n),e._checkCountMap.delete(n),e._groupModule.deleteUnjoinedAVChatRoom(n)):r>=e.MAX_CHECK_COUNT?(e._deleteCachedGroupMessage(n),e._checkCountMap.delete(n)):(r++,e._checkCountMap.set(n,r))}))}},{key:"_initGroupList",value:function(){var e=this;Ge.l("".concat(this._n,"._initGroupList"));var t=new Ka("getGroupListInStorage"),n=this._groupModule.getStorageGroupList();if(dt(n)&&n.length>0){n.forEach((function(t){e._groupModule.initGroupMap(t)})),this._groupModule.emitGroupListUpdate(!0,!1);var r=this._groupModule.getLocalGroupList().length;t.setNetworkType(this._groupModule.getNetworkType()).setMessage("group count:".concat(r)).end()}else t.setNetworkType(this._groupModule.getNetworkType()).setMessage("group count:0").end();Ge.l("".concat(this._n,"._initGroupList ok"))}},{key:"handleUpdateGroupLastMessage",value:function(e){var t="".concat(this._n,".handleUpdateGroupLastMessage");if(Ge.l("".concat(t," conversation count:").concat(e.length,", local group count:").concat(this._groupModule.getLocalGroupList().length)),0!==this._groupModule.getGroupMap().size){for(var r,o,a,i=!1,s=0,c=e.length;s<c;s++)(r=e[s]).type===S.CONV_GROUP&&(o=r.conversationID.split(/^GROUP/)[1],(a=this._groupModule.getLocalGroupProfile(o))&&(a.lastMessage=n({},r.lastMessage),i=!0));i&&(this._groupModule.sortLocalGroupList(),this._groupModule.emitGroupListUpdate(!0,!1))}else this.tempConversationList=e}},{key:"onNewGroupMessage",value:function(e){Ge.d("".concat(this._n,".onNewGroupMessage count:").concat(e.dataList.length));var t=this._newGroupMessageStoredAndSummary(e),n=t.conversationOptionsList,r=t.messageList,o=t.AVChatRoomMessageList;o.length>0&&this._groupModule.onAVChatRoomMessage(o),this._groupModule.filterModifiedMessage(r),n.length>0&&(this._groupModule.updateNextMessageSeq(n),this._groupModule.getModule(Yn).onNewMessage({conversationOptionsList:n,isInstantMessage:e.isInstantMessage||!0,updateUnreadCount:e.updateUnreadCount||!0}));var a=this._groupModule.filterUnmodifiedMessage(r);a.length>0&&this._groupModule.emitOuterEvent(I.MESSAGE_RECEIVED,a),r.length=0}},{key:"_newGroupMessageStoredAndSummary",value:function(e){var t=this,n=e.dataList,r=e.event,o=e.isInstantMessage,a=null,i=[],s=[],c=[],l={},u=this._groupModule.getModule(Jn),d=this._groupModule.getFileDownloadProxy(),p=n.length;p>1&&n.sort((function(e,t){return e.sequence-t.sequence}));for(var f=function(e){var p=St(n[e]),f=p.groupProfile,h=f.groupID,m=f.communityType,v=void 0===m?0:m,g=f.topicID,_=void 0===g?void 0:g,y=f.invisible,b=void 0,O=t._groupModule.isMessageFromTopic(v,_);if(O){b=S.CONV_TOPIC,p.to=_;var M=t._groupModule.getModule(Hn);M.hasLocalTopic(h,_)||t._getTopicPendingMap.has(_)||(t._getTopicPendingMap.set(_,1),M.getTopicList({groupID:h,topicIDList:[_]}).finally((function(){t._getTopicPendingMap.delete(_)})))}var k=t._groupModule.hasLocalGroup(h);if(!k&&t._groupModule.isUnjoinedAVChatRoom(h))return"continue";if(!k&&!O)return t._cacheGroupMessageAndProbe({groupID:h,event:r,item:p}),"continue";if(t._groupModule.isMessageFromOrToAVChatroom(h))return p.event=r,c.push(p),"continue";if(p.currentUser=t._groupModule.getMyUserID(),p.conversationType=S.CONV_GROUP,p.isSystemMessage=!!p.isSystemMessage,a=new ui(p),p.elements=u.parseElements(p.elements,p.from),a.setElement(p.elements,d),1===y)return t._qualityStat(o,a),"continue";var C=1===n[e].isModified,w=t._groupModule.getModule(Yn);if(w.isMessageSentByCurrentInstance(a)?a.isModified=C:C=!1,1===p.onlineOnlyFlag)a._onlineOnlyFlag=!0,w.isMessageSentByCurrentInstance(a)||s.push(a);else{if(t._groupModule.isMessageFromCommunityOfTopic(v,_))return s.push(a),"continue";if(!w.pushIntoMessageList(s,a,C))return"continue";t._qualityStat(o,a);var I=a,T=I.conversationID,E=I.sequence,j=w.isRemoteRead({conversationID:T,sequence:E});if(pt(l[T])){var D=0;"in"===a.flow&&(a._isExcludedFromUnreadCount||j||(D=1)),l[T]=i.push({conversationID:T,unreadCount:D,type:pt(b)?a.conversationType:b,subType:a.conversationSubType,lastMessage:a._isExcludedFromLastMessage?"":a})-1}else{var L=l[T];i[L].type=pt(b)?a.conversationType:b,i[L].subType=a.conversationSubType,i[L].lastMessage=a._isExcludedFromLastMessage?"":a,"in"===a.flow&&(a._isExcludedFromUnreadCount||j||i[L].unreadCount++)}}},h=0;h<p;h++)f(h);return{conversationOptionsList:i,messageList:s,AVChatRoomMessageList:c}}},{key:"_qualityStat",value:function(e,t){var n=this._groupModule.getModule(ir);n.addMessageSequence({key:Fa,message:t}),e&&t.clientTime>0&&n.addMessageDelay(t.clientTime)}},{key:"onGroupMessageRevoked",value:function(e){var t=this._groupModule.getModule(Yn),n=[],r=null,o=!0;e.dataList.forEach((function(e){var a=e.elements.revokedInfos;pt(a)||a.forEach((function(e){var a=en(e.topicID)?"GROUP".concat(e.groupID):"GROUP".concat(e.topicID);r=t.revoke(a,e.sequence,e.random);var i=e.revokerInfo&&e.revokerInfo.revoker;if(r)r.revoker=i,n.push(r);else{var s={conversationID:a,to:e.topicID||"",sequence:e.sequence,time:e.time,revoker:i};t.isLastMessageRevoked(s)&&(n.push(s),o=!1)}}))})),0!==n.length&&(t.onMessageRevoked(n),!0===o&&(Ge.l("".concat(this._n,".onGroupMessageRevoked count:").concat(n.length)),this._groupModule.emitOuterEvent(I.MESSAGE_REVOKED,n)))}},{key:"_groupListTreeShaking",value:function(e){for(var t=new Map(y(this._groupModule.getGroupMap())),n=0,r=e.length;n<r;n++)t.delete(e[n].groupID);this._groupModule.hasJoinedAVChatRoom()&&this._groupModule.getJoinedAVChatRoom().forEach((function(e){t.delete(e)})),this._groupModule.getGroupMap().forEach((function(e,n){e.isSupportTopic&&t.delete(n)}));for(var o=y(t.keys()),a=0,i=o.length;a<i;a++)this._groupModule.deleteGroup(o[a])}},{key:"getGroupList",value:function(e){var t=this,n="".concat(this._n,".").concat("getGroupList"),r=new Ka("getGroupList");Ge.l("".concat(n));var o={introduction:"Introduction",notification:"Notification",createTime:"CreateTime",ownerID:"Owner_Account",lastInfoTime:"LastInfoTime",memberNum:"MemberNum",maxMemberNum:"MaxMemberNum",joinOption:"ApplyJoinOption",inviteOption:"InviteJoinOption",muteAllMembers:"ShutUpAllMember"},a=["Type","Name","FaceUrl","NextMsgSeq","LastMsgTime","AtInfoList","LastRecallTime"],i=[];e&&e.groupProfileFilter&&e.groupProfileFilter.forEach((function(e){o[e]&&a.push(o[e])}));var s=(e||{}).isGroupWithTopicOnly,c=void 0!==s&&s;return this._pagingGetGroupList({limit:50,offset:0,groupBaseInfoFilter:a,groupList:i,isGroupWithTopicOnly:c}).then((function(){Ge.l("".concat(n," ok. count:").concat(i.length," isGroupWithTopicOnly:").concat(c)),c||t._groupListTreeShaking(i),t._groupModule.updateGroupMap(i);var e=t._groupModule.getLocalGroupList().length;r.setNetworkType(t._groupModule.getNetworkType()).setMessage("remote count:".concat(i.length,", after tree shaking, local count:").concat(e,", isGroupWithTopicOnly:").concat(c)).end(),t.tempConversationList&&(t.handleUpdateGroupLastMessage(t.tempConversationList),t.tempConversationList=null),t._groupModule.patchGroupMessageRemindType(),t._groupModule.recomputeUnreadCount(),t._groupModule.emitGroupListUpdate(!0,!c);var o=t._groupModule.getLocalGroupList();if(c){var a=o.filter((function(e){return!0===e.isSupportTopic}));return di({groupList:a})}return t._isPagingGetCompleted=!0,di({groupList:o})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=_(t,2),o=n[0],a=n[1];r.setError(e,o,a).end()})),Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"isPagingGetCompleted",value:function(){return this._isPagingGetCompleted}},{key:"_pagingGetGroupList",value:function(e){var t=this,n="".concat(this._n,".").concat("_pagingGetGroupList"),r=e.isCommunityRelay,o=void 0!==r&&r,a=e.isGroupWithTopicOnly,i=void 0!==a&&a,s=e.limit,c=e.offset,l=e.groupBaseInfoFilter,u=e.groupList;if(i)return this._pagingGetGroupListWithTopic({limit:s,offset:c,groupBaseInfoFilter:l,groupList:u});var d=new Ka("_pagingGetGroupList");return this._groupModule.request({protocolName:po,requestData:{type:o?S.GRP_COMMUNITY:void 0,memberAccount:this._groupModule.getMyUserID(),limit:s,offset:c,responseFilter:{groupBaseInfoFilter:l,selfInfoFilter:["Role","JoinTime","MsgFlag","MsgSeq"]}}}).then((function(e){var r=e.data,a=r.groups,i=void 0===a?[]:a,p=r.totalCount;u.push.apply(u,y(i)),t._handleGroupAtInfoWithoutTopic(o,i);var f=c+s,h=!(p>f),m="offset:".concat(c," totalCount:").concat(p," isCompleted:").concat(h," ")+"currentCount:".concat(u.length," isCommunityRelay:").concat(o);return d.setNetworkType(t._groupModule.getNetworkType()).setMessage("".concat(m)).end(),o||h?!o&&h?(Ge.l("".concat(n," start to get community list")),c=0,t._pagingGetGroupList({limit:s,offset:c,groupBaseInfoFilter:l,groupList:u,isCommunityRelay:!0})):o&&!h?(c=f,t._pagingGetGroupList({limit:s,offset:c,groupBaseInfoFilter:l,groupList:u,isCommunityRelay:!0})):(Ge.l("".concat(n," ok. totalCount:").concat(u.length)),di({groupList:u})):(c=f,t._pagingGetGroupList({limit:s,offset:c,groupBaseInfoFilter:l,groupList:u}))})).catch((function(e){return 11e3!==e.code&&t._groupModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],a=n[1];d.setMessage("isCommunityRelay:".concat(o)).setError(e,r,a).end()})),o?(11e3===e.code&&(d=null,Ge.l("".concat(n," ok. community unavailable"))),mi({groupList:u})):vi(e)}))}},{key:"_pagingGetGroupListWithTopic",value:function(e){var t=this,n="".concat(this._n,"._pagingGetGroupListWithTopic"),r=e.limit,o=e.offset,a=e.groupBaseInfoFilter,i=e.groupList,s=new Ka("pagingGetGroupListWithTopic");return this._groupModule.request({protocolName:po,requestData:{type:S.GRP_COMMUNITY,memberAccount:this._groupModule.getMyUserID(),limit:r,offset:o,responseFilter:{groupBaseInfoFilter:a,selfInfoFilter:["Role","JoinTime","MsgFlag","MsgSeq"]},isSupportTopic:1}}).then((function(e){var c=e.data,l=c.groups,u=void 0===l?[]:l,d=c.totalCount;i.push.apply(i,y(u));var p=o+r,f=!(d>p),h="offset:".concat(o," totalCount:").concat(d," isCompleted:").concat(f," ")+"currentCount:".concat(i.length);return s.setNetworkType(t._groupModule.getNetworkType()).setMessage("".concat(h)).end(),f?(Ge.l("".concat(n," ok. totalCount:").concat(i.length)),di({groupList:i})):(o=p,t._pagingGetGroupListWithTopic({limit:r,offset:o,groupBaseInfoFilter:a,groupList:i}))})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];s.setError(e,r,o).end()})),vi(e)}))}},{key:"_cacheGroupMessage",value:function(e,t){this._cachedGroupMessageMap.has(e)||this._cachedGroupMessageMap.set(e,[]),this._cachedGroupMessageMap.get(e).push(t)}},{key:"_deleteCachedGroupMessage",value:function(e){this._cachedGroupMessageMap.has(e)&&this._cachedGroupMessageMap.delete(e)}},{key:"_notifyCachedGroupMessage",value:function(e){var t=this,n=this._cachedGroupMessageMap.get(e)||[];n.forEach((function(e){t.onNewGroupMessage(e)})),this._deleteCachedGroupMessage(e),Ge.l("".concat(this._n,"._notifyCachedGroupMessage groupID:").concat(e," count:").concat(n.length))}},{key:"_cacheGroupMessageAndProbe",value:function(e){var t=this,n=e.groupID,r=e.event,o=e.item;this._cacheGroupMessage(n,{event:r,dataList:[o]}),this._groupModule.getGroupSimplifiedInfo(n).then((function(e){e.type===S.GRP_AVCHATROOM?t._groupModule.hasLocalGroup(n)?t._notifyCachedGroupMessage(n):t._groupModule.setUnjoinedAVChatRoom(n):(t._groupModule.updateGroupMap([e]),t._notifyCachedGroupMessage(n))})),this._checkCountMap.has(n)||this._checkCountMap.set(n,0),Ge.l("".concat(this._n,"._cacheGroupMessageAndProbe groupID:").concat(n))}},{key:"_handleGroupAtInfoWithoutTopic",value:function(e,t){var r=this;e&&0!==t.length&&t.forEach((function(e){var t=e.groupID,o=e.groupAtInfoList,a=[];pt(o)||(o.forEach((function(e){a.push(n(n({},e),{},{groupID:t}))})),r._groupModule.getModule(Yn).onNewGroupAtTips({dataList:a}))}))}},{key:"reset",value:function(){this._cachedGroupMessageMap.clear(),this._checkCountMap.clear(),this._getTopicPendingMap.clear(),this._isPagingGetCompleted=!1,this._groupModule.getInnerEmitterInstance().once(yi,this._initGroupList,this)}}]),e}(),Fi=1,Gi=2,zi=3,Hi=4,Yi=5,qi=function(){function e(t){o(this,e),this._groupModule=t,this._n="GroupAttributesHandler",this._groupAttributesMap=new Map,this._groupAttributesCopy={},this.CACHE_EXPIRE_TIME=3e4,this._groupModule.getInnerEmitterInstance().on(bi,this._onCloudConfigUpdated,this)}return i(e,[{key:"_onCloudConfigUpdated",value:function(){var e=this._groupModule.getCloudConfig("grp_attr_cache_time");pt(e)||(this.CACHE_EXPIRE_TIME=Number(e))}},{key:"updateLocalMainSequenceOnReconnected",value:function(){this._groupAttributesMap.forEach((function(e){e.localMainSequence=0}))}},{key:"isGroupAttributesUpdatedNotice",value:function(e){var t=e.to,n=e.elements.newGroupProfile,r=!pt(n)&&!en(n.groupAttributeOption);return r&&this._onGroupAttributesUpdated({groupID:t,groupAttributeOption:n.groupAttributeOption}),r}},{key:"_onGroupAttributesUpdated",value:function(e){var t=this,n=e.groupID,r=e.groupAttributeOption,o=r.mainSequence,a=r.isWithChangedAttributeInfo,i=r.groupAttributeList,s=void 0===i?[]:i,c=r.operationType;if(Ge.l("".concat(this._n,".onGroupAttributesUpdated. ")+"groupID:".concat(n," isWithChangedAttributeInfo:").concat(a," operationType:").concat(c)),!pt(c)){this._groupAttributesCopy=this._getCachedAttributes({groupID:n});var l=this._getLocalGroupAttributes(n).localMainSequence;if(1===a&&o-l==1)return this._refreshCachedGroupAttributes({groupID:n,remoteMainSequence:o,groupAttributeList:s,operationType:c}),void this._emitGroupAttributesUpdated(n);if(this._hasLocalGroupAttributes(n)){var u=this._getLocalGroupAttributes(n).avChatRoomKey;this._getGroupAttributes({groupID:n,avChatRoomKey:u}).then((function(){t._emitGroupAttributesUpdated(n)}))}}}},{key:"initGroupAttributesCache",value:function(e){var t=e.groupID,n=e.avChatRoomKey,r=void 0===n?void 0:n;this._groupAttributesMap.set(t,{lastUpdateTime:0,localMainSequence:0,remoteMainSequence:0,attributes:new Map,avChatRoomKey:r}),Ge.l("".concat(this._n,".initGroupAttributesCache groupID:").concat(t," avChatRoomKey:").concat(r))}},{key:"initGroupAttributes",value:function(e){var t=this,n=e.groupID,r=e.groupAttributes,o=this._getLocalGroupAttributes(n),a=o.remoteMainSequence,i=o.avChatRoomKey,s=new Ka("initGroupAttributes");return s.setMessage("groupID:".concat(n," avChatRoomKey:").concat(i," mainSequence:").concat(a)),this._groupModule.request({protocolName:Bo,requestData:{groupID:n,avChatRoomKey:i,mainSequence:a,groupAttributeList:this._transformGroupAttributes(r)}}).then((function(e){var o=e.data,a=o.mainSequence,i=y(o.groupAttributeList);return i.forEach((function(e){e.value=r[e.key]})),t._refreshCachedGroupAttributes({groupID:n,remoteMainSequence:a,groupAttributeList:i,operationType:Fi}),s.setNetworkType(t._groupModule.getNetworkType()).end(),Ge.l("".concat(t._n,".").concat("initGroupAttributes"," ok. groupID:").concat(n)),di({groupAttributes:r})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];s.setError(e,r,o).end()})),vi(e)}))}},{key:"setGroupAttributes",value:function(e){var t=this,n="".concat(this._n,".").concat("setGroupAttributes"),r=e.groupID,o=e.groupAttributes,a=this._getLocalGroupAttributes(r),i=a.remoteMainSequence,s=a.avChatRoomKey,c=a.attributes,l=this._transformGroupAttributes(o);l.forEach((function(e){var t=e.key;e.sequence=0,c.has(t)&&(e.sequence=c.get(t).sequence)}));var u=new Ka("setGroupAttributes");return u.setMessage("groupID:".concat(r," groupAttributes:").concat(JSON.stringify(o))),Ge.l("".concat(n,". groupID:").concat(r," mainSequence:").concat(i)),this._groupModule.request({protocolName:Fo,requestData:{groupID:r,avChatRoomKey:s,mainSequence:i,groupAttributeList:l}}).then((function(e){var a=e.data,i=a.mainSequence,s=y(a.groupAttributeList);return s.forEach((function(e){e.value=o[e.key]})),t._refreshCachedGroupAttributes({groupID:r,remoteMainSequence:i,groupAttributeList:s,operationType:Gi}),u.setNetworkType(t._groupModule.getNetworkType()).end(),Ge.l("".concat(n," ok.")),di({groupAttributes:o})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];u.setError(e,r,o).end()})),vi(e)}))}},{key:"deleteGroupAttributes",value:function(e){var t=this,n=e.groupID,r=e.keyList,o=void 0===r?[]:r,a=this._getLocalGroupAttributes(n),i=a.remoteMainSequence,s=a.avChatRoomKey,c=a.attributes,l=y(c.keys()),u=zo,d=zi,p={groupID:n,avChatRoomKey:s,mainSequence:i},f=[];o.length>0&&(l=[],u=Go,d=Hi,o.forEach((function(e){var t=0;c.has(e)&&(t=c.get(e).sequence,l.push(e)),f.push({key:e,sequence:t})})),p.groupAttributeList=f);var h=new Ka("deleteGroupAttributes");return h.setMessage("groupID:".concat(n," mainSequence:").concat(i," keyList:").concat(o," protocolName:").concat(u)),this._groupModule.request({protocolName:u,requestData:p}).then((function(e){var r=e.data.mainSequence;return t._refreshCachedGroupAttributes({groupID:n,remoteMainSequence:r,groupAttributeList:f,operationType:d}),h.setNetworkType(t._groupModule.getNetworkType()).end(),Ge.l("".concat(t._n,".").concat("deleteGroupAttributes"," ok. groupID:").concat(n)),di({keyList:l})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];h.setError(e,r,o).end()})),vi(e)}))}},{key:"getGroupAttributes",value:function(e){var t=this,n="".concat(this._n,".").concat("getGroupAttributes"),r=e.groupID,o=this._getLocalGroupAttributes(r),a=o.avChatRoomKey,i=o.lastUpdateTime,s=o.localMainSequence,c=o.remoteMainSequence,l=new Ka("getGroupAttributes");if(l.setMessage("groupID:".concat(r," localMainSequence:").concat(s," remoteMainSequence:").concat(c," keyList:").concat(e.keyList)),Date.now()-i>=this.CACHE_EXPIRE_TIME||s<c)return this._getGroupAttributes({groupID:r,avChatRoomKey:a}).then((function(o){l.setMoreMessage("get attributes from remote. count:".concat(o.length)).setNetworkType(t._groupModule.getNetworkType()).end(),Ge.l("".concat(n," from remote. groupID:").concat(r));var a=t._getCachedAttributes(e);return di({groupAttributes:a})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];l.setError(e,r,o).end()})),vi(e)}));l.setMoreMessage("get attributes from cache").setNetworkType(this._groupModule.getNetworkType()).end(),Ge.l("".concat(n," from cache. groupID:").concat(r));var u=this._getCachedAttributes(e);return mi({groupAttributes:u})}},{key:"_getGroupAttributes",value:function(e){var t=this,r=0;return pt(e.avChatRoomKey)||(r=1),this._groupModule.request({protocolName:Ho,requestData:n(n({},e),{},{groupType:r})}).then((function(n){var r=n.data,o=r.mainSequence,a=r.groupAttributeList,i=y(a);return pt(o)||t._refreshCachedGroupAttributes({groupID:e.groupID,remoteMainSequence:o,groupAttributeList:i,operationType:Yi}),Ge.l("".concat(t._n,"._getGroupAttributes ok. groupID:").concat(e.groupID)),a})).catch((function(e){return vi(e)}))}},{key:"_refreshCachedGroupAttributes",value:function(e){var t=e.groupID,n=e.remoteMainSequence,r=e.groupAttributeList,o=e.operationType;if(this._hasLocalGroupAttributes(t)){var a=this._getLocalGroupAttributes(t),i=a.localMainSequence;if(o===Yi||n-i==1)a.remoteMainSequence=n,a.localMainSequence=n,a.lastUpdateTime=Date.now(),this._updateCachedAttributes({groupAttributes:a,groupAttributeList:r,operationType:o});else{if(i===n)return;a.remoteMainSequence=n}this._groupAttributesMap.set(t,a);var s="operationType:".concat(o," localMainSequence:").concat(i," remoteMainSequence:").concat(n);Ge.l("".concat(this._n,"._refreshCachedGroupAttributes. ").concat(s))}}},{key:"_getCachedAttributes",value:function(e){var t=e.groupID,n=e.keyList,r=void 0===n?[]:n,o={};if(this._hasLocalGroupAttributes(t)){var a=this._getLocalGroupAttributes(t).attributes;if(r.length>0)r.forEach((function(e){a.has(e)&&(o[e]=a.get(e).value)}));else{var i,s=w(a.keys());try{for(s.s();!(i=s.n()).done;){var c=i.value;o[c]=a.get(c).value}}catch(u){s.e(u)}finally{s.f()}}}return o}},{key:"_updateCachedAttributes",value:function(e){var t=e.groupAttributes,n=e.groupAttributeList,r=e.operationType;r!==zi?r!==Hi?(r===Fi&&t.attributes.clear(),n.forEach((function(e){var n=e.key,r=e.value,o=e.sequence;t.attributes.set(n,{value:r,sequence:o})}))):n.forEach((function(e){t.attributes.delete(e.key)})):t.attributes.clear()}},{key:"_hasLocalGroupAttributes",value:function(e){return this._groupAttributesMap.has(e)}},{key:"_getLocalGroupAttributes",value:function(e){return this._hasLocalGroupAttributes(e)||this.initGroupAttributesCache({groupID:e}),this._groupAttributesMap.get(e)}},{key:"_transformGroupAttributes",value:function(e){var t=[];return Object.keys(e).forEach((function(n){t.push({key:n,value:e[n]})})),t}},{key:"_emitGroupAttributesUpdated",value:function(e){var t=this._getCachedAttributes({groupID:e}),n=this._computeAttrChangedInfo(t),r=n.updatedKeyList,o=n.deletedKeyList;this._groupModule.emitOuterEvent(I.GROUP_ATTRIBUTES_UPDATED,{groupID:e,groupAttributes:t,updatedKeyList:r,deletedKeyList:o})}},{key:"_computeAttrChangedInfo",value:function(e){var t=this,n=[],r=[];return Object.keys(e).forEach((function(r){e[r]!==t._groupAttributesCopy[r]&&n.push(r)})),Object.keys(this._groupAttributesCopy).forEach((function(t){pt(e[t])&&r.push(t)})),this._groupAttributesCopy={},Ge.l("".concat(this._n,"._computeAttrChangedInfo update count:").concat(n.length,", delete count:").concat(r.length)),{updatedKeyList:n,deletedKeyList:r}}},{key:"deleteLocalGroupAttributes",value:function(e){this._hasLocalGroupAttributes(e)&&this._groupAttributesMap.delete(e)}},{key:"reset",value:function(){this._groupAttributesMap.clear(),this._groupAttributesCopy={},this.CACHE_EXPIRE_TIME=3e4}}]),e}(),Wi="Set",Ki="Increase",$i="Decrease",Ji=function(){function e(t){o(this,e),this._groupModule=t,this._n="GroupCountersHandler",this._groupCountersMap=new Map,this.EXPIRE_TIME=3e4,this._groupModule.getInnerEmitterInstance().on(bi,this._onCloudConfigUpdated,this)}return i(e,[{key:"_onCloudConfigUpdated",value:function(){var e=this._groupModule.getCloudConfig("grp_counter_expire_time");pt(e)||(this.EXPIRE_TIME=Number(e))}},{key:"isGroupCountersNotice",value:function(e){var t=e.to,n=e.elements.groupCounterInfo,r=!1;return en(n)||(this._onGroupCountersUpdated({groupID:t,groupCounterInfo:n}),r=!0),r}},{key:"_onGroupCountersUpdated",value:function(e){var t=this,n=e.groupID;e.groupCounterInfo.forEach((function(e){var r=e.type,o=e.groupCounterSeq,a=e.counterList,i=void 0===a?[]:a;0!==r&&2!==r||(t._updateLocalGroupCounters({groupID:n,groupCounterSeq:o,counterList:i}),i.forEach((function(e){t._groupModule.emitOuterEvent(I.GROUP_COUNTER_UPDATED,{groupID:n,key:e.key,value:e.value})}))),1===r&&t._deleteLocalGroupCounters({groupID:n,groupCounterSeq:o,counterList:i})})),Ge.l("".concat(this._n,"._onGroupCountersUpdated groupID:").concat(n))}},{key:"initGroupCountersCache",value:function(e){var t=e.groupID,n=e.avChatRoomKey;this._groupCountersMap.set(t,{lastUpdateTime:0,groupCounterSeq:0,counters:new Map,avChatRoomKey:n}),Ge.l("".concat(this._n,".initGroupCountersCache groupID:").concat(t," avChatRoomKey:").concat(n))}},{key:"setGroupCounters",value:function(e){var t=this;if(!this._groupModule.canIUse(z.GRP_COUNTER))return vi({code:Aa.CANNOT_USE_COMMERCIAL_ABILITY});var n="".concat(this._n,".setGroupCounters"),r=e.groupID,o=e.counters,a=this._convertObjectToList(o),i=this._getLocalGroupCounters(r).avChatRoomKey,s="groupID:".concat(r," count:").concat(a.length),c=new Ka("setGroupCounters");return c.setMessage("".concat(s)),Ge.l("".concat(n,". ").concat(s)),this._updateGroupCounters({groupID:r,counterList:a,avChatRoomKey:i,mode:Wi}).then((function(e){return c.end(),Ge.l("".concat(n," ok.")),di({counters:e})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];c.setError(e,r,o).end()})),Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"increaseGroupCounter",value:function(e){var t=this;if(!this._groupModule.canIUse(z.GRP_COUNTER))return vi({code:Aa.CANNOT_USE_COMMERCIAL_ABILITY});var n="".concat(this._n,".increaseGroupCounters"),r=e.groupID,o=e.key,a=e.value,i=this._getLocalGroupCounters(r).avChatRoomKey,s="groupID:".concat(r," key:").concat(o," value:").concat(a),c=new Ka("increaseGroupCounter");c.setMessage("".concat(s)),Ge.l("".concat(n,". ").concat(s));var l=[{key:o,value:a}];return this._updateGroupCounters({groupID:r,counterList:l,avChatRoomKey:i,mode:Ki}).then((function(e){return c.end(),Ge.l("".concat(n," ok.")),di({counters:e})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];c.setError(e,r,o).end()})),Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"decreaseGroupCounter",value:function(e){var t=this;if(!this._groupModule.canIUse(z.GRP_COUNTER))return vi({code:Aa.CANNOT_USE_COMMERCIAL_ABILITY});var n="".concat(this._n,".decreaseGroupCounter"),r=e.groupID,o=e.key,a=e.value,i=this._getLocalGroupCounters(r).avChatRoomKey,s="groupID:".concat(r," key:").concat(o," value:").concat(a),c=new Ka("decreaseGroupCounter");c.setMessage("".concat(s)),Ge.l("".concat(n,". ").concat(s));var l=[{key:o,value:a}];return this._updateGroupCounters({groupID:r,counterList:l,avChatRoomKey:i,mode:$i}).then((function(e){return c.end(),Ge.l("".concat(n," ok.")),di({counters:e})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];c.setError(e,r,o).end()})),Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"getGroupCounters",value:function(e){var t=this;if(!this._groupModule.canIUse(z.GRP_COUNTER))return vi({code:Aa.CANNOT_USE_COMMERCIAL_ABILITY});var n="".concat(this._n,".getGroupCounters"),r=e.groupID,o=e.keyList,a=void 0===o?[]:o,i=this._getLocalGroupCounters(r),s=i.avChatRoomKey,c=i.lastUpdateTime,l=new Ka("getGroupCounters");if(l.setMessage("groupID:".concat(r)),Date.now()-c>=this.EXPIRE_TIME)return this._getRemoteGroupCounters({groupID:r,avChatRoomKey:s}).then((function(e){l.setMoreMessage("from remote. count:".concat(e.length)).end(),Ge.l("".concat(n," from remote. groupID:").concat(r));var o=t._getLocalCounters(r,a);return di({counters:o})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];l.setError(e,r,o).end()})),vi(e)}));l.setMoreMessage("from cache").end(),Ge.l("".concat(n," from cache. groupID:").concat(r));var u=this._getLocalCounters(r,a);return mi({counters:u})}},{key:"_getRemoteGroupCounters",value:function(e){var t=this;return this._groupModule.request({protocolName:$o,requestData:n({},e)}).then((function(n){var r=n.data,o=r.counterList,a=void 0===o?[]:o,i=r.groupCounterSeq;return t._updateLocalGroupCounters({groupID:e.groupID,counterList:a,groupCounterSeq:i}),Ge.l("".concat(t._n,"._getRemoteGroupCounters ok. groupID:").concat(e.groupID)),a})).catch((function(e){return vi(e)}))}},{key:"_convertObjectToList",value:function(e){var t=[];return Object.keys(e).forEach((function(n){t.push({key:n,value:e[n]})})),t}},{key:"_updateGroupCounters",value:function(e){var t="".concat(this._n,"._updateGroupCounters"),r=e.groupID,o=e.avChatRoomKey,a=e.mode;return Ge.l("".concat(t,". groupID:").concat(r," avChatRoomKey:").concat(o," mode:").concat(a)),this._groupModule.request({protocolName:Ko,requestData:n({},e)}).then((function(e){Ge.l("".concat(t," ok."));var n=e.data.counterList,r={};return(void 0===n?[]:n).forEach((function(e){var t=e.key,n=e.value;r[t]=n})),r})).catch((function(e){return vi(e)}))}},{key:"_hasLocalGroupCounters",value:function(e){return this._groupCountersMap.has(e)}},{key:"_getLocalGroupCounters",value:function(e){return this._hasLocalGroupCounters(e)||this.initGroupCountersCache({groupID:e}),this._groupCountersMap.get(e)}},{key:"_updateLocalGroupCounters",value:function(e){var t=e.groupID,n=e.counterList,r=void 0===n?[]:n,o=e.groupCounterSeq;if(this._hasLocalGroupCounters(t)){var a=this._getLocalGroupCounters(t),i=a.counters,s=a.avChatRoomKey,c=a.groupCounterSeq;if(o>0&&o<c)return;r.forEach((function(e){var t=e.key,n=e.value;i.set(t,n)})),this._groupCountersMap.set(t,{lastUpdateTime:Date.now(),groupCounterSeq:o,counters:i,avChatRoomKey:s})}}},{key:"_deleteLocalGroupCounters",value:function(e){var t=e.groupID,n=e.counterList,r=void 0===n?[]:n,o=e.groupCounterSeq;if(this._hasLocalGroupCounters(t)){var a=this._getLocalGroupCounters(t),i=a.counters,s=a.avChatRoomKey;r.forEach((function(e){i.delete(e.key)})),this._groupCountersMap.set(t,{lastUpdateTime:Date.now(),groupCounterSeq:o,counters:i,avChatRoomKey:s})}}},{key:"_getLocalCounters",value:function(e,t){var n={};if(!this._hasLocalGroupCounters(e))return n;var r=this._getLocalGroupCounters(e).counters;if(t.length>0)t.forEach((function(e){r.has(e)&&(n[e]=r.get(e))}));else{var o,a=w(r.keys());try{for(a.s();!(o=a.n()).done;){var i=o.value;n[i]=r.get(i)}}catch(c){a.e(c)}finally{a.f()}}return n}},{key:"reset",value:function(){this._groupCountersMap.clear(),this.EXPIRE_TIME=3e4}}]),e}(),Qi=function(){function e(t){o(this,e);var n=t.manager,r=t.groupID,a=t.onInit,i=t.onSuccess,s=t.onFail;this._n="Polling",this._manager=n,this._groupModule=n._groupModule,this._onInit=a,this._onSuccess=i,this._onFail=s,this._groupID=r,this._timeoutID=-1,this._isRunning=!1,this._protocolName=xo}return i(e,[{key:"start",value:function(){var e=this._groupModule.isLoggedIn();e||(this._protocolName=Ro),Ge.l("".concat(this._n,".start pollingInterval:").concat(this._manager.getPollingInterval()," isLoggedIn:").concat(e)),this._isRunning=!0,this._request()}},{key:"isRunning",value:function(){return this._isRunning}},{key:"_request",value:function(){var e=this,t=this._onInit(this._groupID);this._groupModule.request({protocolName:this._protocolName,requestData:t}).then((function(t){e._onSuccess(e._groupID,t),e.isRunning()&&(clearTimeout(e._timeoutID),e._timeoutID=setTimeout(e._request.bind(e),e._manager.getPollingInterval()))})).catch((function(t){e._onFail(e._groupID,t),e.isRunning()&&(clearTimeout(e._timeoutID),e._timeoutID=setTimeout(e._request.bind(e),e._manager.MAX_POLLING_INTERVAL))}))}},{key:"stop",value:function(){Ge.l("".concat(this._n,".stop")),this._timeoutID>0&&(clearTimeout(this._timeoutID),this._timeoutID=-1),this._isRunning=!1}}]),e}(),Xi={3:!0,4:!0,5:!0,6:!0,17:!0},Zi=function(){function e(t){o(this,e),this._groupModule=t,this._n="AVChatRoomHandler",this._joinedGroupMap=new Map,this._pollingRequestInfoMap=new Map,this._pollingInstanceMap=new Map,this.sequencesLinkedList=new Di(200),this.messageIDLinkedList=new Di(100),this.receivedMessageCount=0,this._reportMessageStackedCount=0,this._onlineMemberCountMap=new Map,this.DEFAULT_EXPIRE_TIME=60,this.DEFAULT_POLLING_INTERVAL=300,this.MAX_POLLING_INTERVAL=2e3,this._pollingInterval=this.DEFAULT_POLLING_INTERVAL,this.DEFAULT_POLLING_NO_MESSAGE_COUNT=20,this.DEFAULT_POLLING_INTERVAL_PLUS=2e3,this._pollingNoMessageCount=0,this._startBroadcastSeq=1,this._broadcastMessageIDMap=new Map,this.DEFAULT_POLLING_SIMPLIFIED_MSG=0}return i(e,[{key:"hasJoinedAVChatRoom",value:function(){return this._joinedGroupMap.size>0}},{key:"checkJoinedAVChatRoomByID",value:function(e){return this._joinedGroupMap.has(e)}},{key:"getJoinedAVChatRoom",value:function(){return this._joinedGroupMap.size>0?y(this._joinedGroupMap.keys()):null}},{key:"_updateRequestData",value:function(e){var t=this._pollingRequestInfoMap.get(e);return e===y(this._pollingInstanceMap.keys())[0]?n(n({},t),{},{startBroadcastSeq:this._startBroadcastSeq,simplifiedMessage:this.DEFAULT_POLLING_SIMPLIFIED_MSG}):n(n({},t),{},{simplifiedMessage:this.DEFAULT_POLLING_SIMPLIFIED_MSG})}},{key:"_handleSuccess",value:function(e,t){var n=t.data,r=n.key,o=n.nextSeq,a=n.rspMsgList,i=n.errorCode,s=n.nextBroadcastSeq,c=n.broadcastMessageList;if(0!==i){var l=this._pollingRequestInfoMap.get(e),u=new Ka("longPollingAVError"),d=l?"".concat(l.key,"-").concat(l.startSeq):"requestInfo is undefined";u.setMessage("".concat(e,"-").concat(d,"-").concat(t.errorInfo)).setCode(t.errorCode).setNetworkType(this._groupModule.getNetworkType()).end(!0)}else{if(!this.checkJoinedAVChatRoomByID(e))return;ct(r)&&st(o)&&this._pollingRequestInfoMap.set(e,{key:r,startSeq:o}),st(s)&&s>this._startBroadcastSeq&&(this._startBroadcastSeq=s),dt(a)&&a.length>0?(a.forEach((function(e){e.to=e.groupID})),this.onMessage(a)):(this._pollingNoMessageCount+=1,this._pollingNoMessageCount===this.DEFAULT_POLLING_NO_MESSAGE_COUNT&&(this._pollingInterval=this.DEFAULT_POLLING_INTERVAL+this.DEFAULT_POLLING_INTERVAL_PLUS)),this._onBroadcastMessage(c)}}},{key:"_handleFailure",value:function(e,t){}},{key:"onMessage",value:function(e){if(dt(e)&&0!==e.length){0!==this._pollingNoMessageCount&&(this._pollingNoMessageCount=0,this._pollingInterval=this.DEFAULT_POLLING_INTERVAL);var t=null,n=[],r=this._getModule(Yn),o=this._getModule(ir),a=e.length;a>1&&e.sort((function(e,t){return e.sequence-t.sequence}));for(var i=this._getModule(qn),s=0;s<a;s++){var c=this.restoreMessageFromSimplified(e[s]);if(Xi[c.event]){if(6===c.event){if(this._groupModule.isGroupAttributesUpdatedNotice(c))continue;if(this._groupModule.isGroupCountersNotice(c))continue}this.receivedMessageCount+=1,t=this.packMessage(c,c.event);var l=1===c.isModified,u=1===c.isHistoryMessage;if((i.isUnlimitedAVChatRoom()||!this.sequencesLinkedList.has(t.sequence))&&!this.messageIDLinkedList.has(t.ID)){var d=t.conversationID;if(this.receivedMessageCount%50==0?this._getModule(nr).detectFirstRound(d,this.sequencesLinkedList.data()):this.receivedMessageCount%80==0&&this._getModule(nr).detectSecondRound(d,this.sequencesLinkedList.data()),null!==this.sequencesLinkedList.tail()){var p=this.sequencesLinkedList.tail().value,f=t.sequence-p;f>1&&f<=20?this._getModule(nr).onMessageMaybeLost(d,p+1,f-1):f<-1&&f>=-20&&this._getModule(nr).onMessageMaybeLost(d,t.sequence+1,Math.abs(f)-1)}this.sequencesLinkedList.set(t.sequence),this.messageIDLinkedList.set(t.ID);var h=!1;if(this._isMessageSentByCurrentInstance(t)?l&&(h=!0,t.isModified=l,r.updateMessageIsModifiedProperty(t)):h=!0,h){if(t.conversationType===S.CONV_SYSTEM&&5===t.payload.operationType&&this._onGroupDismissed(t.payload.groupProfile.groupID),!u&&t.conversationType!==S.CONV_SYSTEM){var m=t.conversationID.replace(S.CONV_GROUP,"");this._pollingInstanceMap.has(m)?this._groupModule.isLoggedIn()&&o.addMessageSequence({key:za,message:t}):(t.type!==S.MSG_GRP_TIP&&t.clientTime>0&&o.addMessageDelay(t.clientTime),o.addMessageSequence({key:Ga,message:t}))}n.push(t)}}}else Ge.w("".concat(this._n,".onMessage unknown event:").concat(c.event))}if(0!==n.length){this._groupModule.filterModifiedMessage(n);var v=this.packConversationOption(n);v.length>0&&this._getModule(Yn).onNewMessage({conversationOptionsList:v,isInstantMessage:!0}),Ge.d("".concat(this._n,".onMessage count:").concat(n.length)),this._checkMessageStacked(n);var g=this._groupModule.filterUnmodifiedMessage(n);g.length>0&&this._groupModule.emitOuterEvent(I.MESSAGE_RECEIVED,g),n.length=0}}}},{key:"isBroadcastOrNormal",value:function(e){return 3===e||17===e}},{key:"isGroupTip",value:function(e){return 4===e||6===e}},{key:"isGroupSystemNotice",value:function(e){return 5===e}},{key:"restoreGroupTipElements",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.groupJoinType||(e.groupJoinType=1);var t=e.operatorInfo,n=void 0===t?{}:t,r=e.operatorID,o=e.userIDList,a=void 0===o?[]:o,i=n.userID,s=void 0===i?r:i,c=n.avatar,l=void 0===c?"":c,u=n.nick,d=void 0===u?"":u;e.operatorInfo={userID:s,avatar:l,nick:d};var p=a.map((function(e){return{userID:e}}));return e.memberInfoList=e.memberInfoList||p,e}},{key:"restoreMessageFromSimplified",value:function(e){var t=e.event;if(this.isBroadcastOrNormal(t)&&(e.cloudCustomData=e.cloudCustomData||"",e.elements=e.elements.map((function(e){if(e.type===S.MSG_CUSTOM){var t=e.content,r=void 0===t?{}:t;e.content=n({data:"",description:"",extension:""},r)}return e}))),(this.isGroupTip(t)||this.isGroupSystemNotice(t))&&(e.from=e.from||"@TIM#SYSTEM"),this.isGroupTip(t)){e.elements=this.restoreGroupTipElements(e.elements);var r=e.elements,o=void 0===r?{}:r,a=o.operationType,i=o.operatorInfo;if(1===a){var c=[{userID:(void 0===i?{}:i).userID}];o.memberInfoList=o.memberInfoList||c}}if(this.isGroupSystemNotice(t)){var l=e.elements,u=l.memberInfoList,d=l.operatorInfo;u||(u=void 0===d?{}:d),e.elements.memberInfoList=n({userID:e.elements.operatorID,avatar:"",nick:""},u),e.elements=n({authentication:"",remarkInfo:"",messageKey:1e3*e.time},e.elements);var p=Object.keys(e.elements).filter((function(e){return"operatorInfo"!==e})).reduce((function(t,r){return n(n({},t),{},s({},r,e.elements[r]))}),{});e.elements=p}return e}},{key:"_onGroupDismissed",value:function(e){Ge.l("".concat(this._n,"._onGroupDismissed groupID:").concat(e)),this._groupModule.deleteLocalGroupAndConversation(e),this.reset(e)}},{key:"_checkMessageStacked",value:function(e){var t="MessageStacked",n=e.length;n>=100&&(this._groupModule.outputWarning(t),this._reportMessageStackedCount<5&&(new Ka(t).setNetworkType(this._groupModule.getNetworkType()).setMessage("count:".concat(n," groupID:").concat(y(this._joinedGroupMap.keys()))).setLevel("warning").end(),this._reportMessageStackedCount+=1))}},{key:"_isMessageSentByCurrentInstance",value:function(e){return!!this._getModule(Yn).isMessageSentByCurrentInstance(e)}},{key:"packMessage",value:function(e,t){e.currentUser=this._groupModule.getMyUserID(),e.conversationType=5===t?S.CONV_SYSTEM:S.CONV_GROUP,e.isSystemMessage=!!e.isSystemMessage;var n=new ui(e),r=this.packElements(e,t);return n.setElement(r,this._groupModule.getFileDownloadProxy()),n}},{key:"packElements",value:function(e,t){return 4===t||6===t?(this._updateMemberCountByGroupTips(e),{type:S.MSG_GRP_TIP,content:n(n({},e.elements),{},{groupProfile:e.groupProfile})}):5===t?{type:S.MSG_GRP_SYS_NOTICE,content:n(n({},e.elements),{},{groupProfile:n(n({},e.groupProfile),{},{groupID:e.groupID})})}:this._getModule(Jn).parseElements(e.elements,e.from)}},{key:"packConversationOption",value:function(e){for(var t=new Map,n=0;n<e.length;n++){var r=e[n],o=r.conversationID;if(t.has(o)){var a=t.get(o);a.lastMessage=r,"in"===r.flow&&a.unreadCount++}else t.set(o,{conversationID:r.conversationID,unreadCount:"out"===r.flow?0:1,type:r.conversationType,subType:r.conversationSubType,lastMessage:r})}return y(t.values())}},{key:"_updateMemberCountByGroupTips",value:function(e){var t=e.groupProfile.groupID,n=e.elements.onlineMemberInfo,r=void 0===n?void 0:n;if(!en(r)){var o=r.onlineMemberNum,a=void 0===o?0:o,i=r.expireTime,s=void 0===i?this.DEFAULT_EXPIRE_TIME:i,c=this._onlineMemberCountMap.get(t)||{},l=Date.now();en(c)?Object.assign(c,{lastReqTime:0,lastSyncTime:0,latestUpdateTime:l,memberCount:a,expireTime:s}):(c.latestUpdateTime=l,c.memberCount=a),Ge.d("".concat(this._n,"._updateMemberCountByGroupTips info:"),c),this._onlineMemberCountMap.set(t,c)}}},{key:"_onBroadcastMessage",value:function(e){if(!en(e)){for(var t=[],n=e.length,r=null,o=0;o<n;o++){var a=this.restoreMessageFromSimplified(e[o]);Xi[a.event]?((r=this.packMessage(a,a.event)).isBroadcastMessage=!0,this._broadcastMessageIDMap.has(r.ID)||(t.push(r),this._broadcastMessageIDMap.set(r.ID,1))):Ge.w("".concat(this._n,"._onBroadcastMessage unknown event:").concat(a.event))}t.length>0&&this._groupModule.emitOuterEvent(I.MESSAGE_RECEIVED,t)}}},{key:"start",value:function(e){if(this._pollingInstanceMap.has(e)){var t=this._pollingInstanceMap.get(e);t.isRunning()||t.start()}else{var n=new Qi({manager:this,groupID:e,onInit:this._updateRequestData.bind(this),onSuccess:this._handleSuccess.bind(this),onFail:this._handleFailure.bind(this)});n.start(),this._pollingInstanceMap.set(e,n),Ge.l("".concat(this._n,".start groupID:").concat(e))}}},{key:"handleJoinResult",value:function(e){var t=this;return this._preCheck().then((function(){var n=e.longPollingKey,r=e.group,o=r.groupID;return t._joinedGroupMap.set(o,r),t._groupModule.updateGroupMap([r]),t._groupModule.deleteUnjoinedAVChatRoom(o),t._groupModule.emitGroupListUpdate(!0,!1),pt(n)?mi({status:Ze,group:r}):Promise.resolve()}))}},{key:"startRunLoop",value:function(e){var t=this;return this.handleJoinResult(e).then((function(){var n=e.longPollingKey,r=e.group,o=e.startSeq,a=void 0===o?0:o,i=r.groupID;return t._pollingRequestInfoMap.set(i,{key:n,startSeq:a}),t.start(i),t._groupModule.isLoggedIn()?mi({status:Ze,group:r}):mi({status:Ze})}))}},{key:"_preCheck",value:function(){if(this._getModule(qn).isUnlimitedAVChatRoom())return Promise.resolve();if(!this.hasJoinedAVChatRoom())return Promise.resolve();var e=_(this._joinedGroupMap.entries().next().value,2),t=e[0],n=e[1];if(this._groupModule.isLoggedIn()){if(n.selfInfo.role!==S.GRP_MBR_ROLE_OWNER&&n.ownerID!==this._groupModule.getMyUserID())return this._groupModule.quitGroup(t);this._groupModule.deleteLocalGroupAndConversation(t)}else this._groupModule.deleteLocalGroupAndConversation(t);return this.reset(t),Promise.resolve()}},{key:"joinWithoutAuth",value:function(e){var t=this,n=e.groupID,r="".concat(this._n,".").concat("joinWithoutAuth"),o=new Ka("joinWithoutAuth");return this._groupModule.request({protocolName:_o,requestData:e}).then((function(e){var a=e.data.longPollingKey;if(t._groupModule.probeNetwork().then((function(e){var t=_(e,2);t[0];var r=t[1];o.setNetworkType(r).setMessage("groupID:".concat(n," longPollingKey:").concat(a)).end(!0)})),pt(a))return vi({code:Aa.CANNOT_JOIN_NON_AVCHATROOM_WITHOUT_LOGIN});Ge.l("".concat(r," ok. groupID:").concat(n)),t._getModule(Yn).setCompleted("".concat(S.CONV_GROUP).concat(n));var i=new Ai({groupID:n});return t.startRunLoop({group:i,longPollingKey:a}),di({status:Ze})})).catch((function(e){return Ge.e("".concat(r," failed. groupID:").concat(n," error:"),e),t._groupModule.probeNetwork().then((function(t){var r=_(t,2),a=r[0],i=r[1];o.setError(e,a,i).setMessage("groupID:".concat(n)).end(!0)})),vi(e)})).finally((function(){t._groupModule.getModule(Kn).reportAtOnce()}))}},{key:"getGroupOnlineMemberCount",value:function(e){var t=this._onlineMemberCountMap.get(e)||{},n=Date.now();return en(t)||n-t.lastSyncTime>1e3*t.expireTime&&n-t.latestUpdateTime>1e4&&n-t.lastReqTime>3e3?(t.lastReqTime=n,this._onlineMemberCountMap.set(e,t),this._getGroupOnlineMemberCount(e).then((function(e){return di({memberCount:e.memberCount})})).catch((function(e){return vi(e)}))):mi({memberCount:t.memberCount})}},{key:"_getGroupOnlineMemberCount",value:function(e){var t=this,n="".concat(this._n,".").concat("_getGroupOnlineMemberCount");return this._groupModule.request({protocolName:Po,requestData:{groupID:e}}).then((function(r){var o=t._onlineMemberCountMap.get(e)||{},a=r.data,i=a.onlineMemberNum,s=void 0===i?0:i,c=a.expireTime,l=void 0===c?t.DEFAULT_EXPIRE_TIME:c;Ge.l("".concat(n," ok. groupID:").concat(e," memberCount:").concat(s," expireTime:").concat(l));var u=Date.now();return en(o)&&(o.lastReqTime=u),t._onlineMemberCountMap.set(e,Object.assign(o,{lastSyncTime:u,latestUpdateTime:u,memberCount:s,expireTime:l})),{memberCount:s}})).catch((function(r){return Ge.w("".concat(n," failed. error:"),r),new Ka("_getGroupOnlineMemberCount").setCode(r.code).setMessage("groupID:".concat(e," error:").concat(JSON.stringify(r))).setNetworkType(t._groupModule.getNetworkType()).end(),Promise.reject(r)}))}},{key:"_getModule",value:function(e){return this._groupModule.getModule(e)}},{key:"setPollingInterval",value:function(e){pt(e)||(st(e)?this._pollingInterval=this.DEFAULT_POLLING_INTERVAL=e:this._pollingInterval=this.DEFAULT_POLLING_INTERVAL=parseInt(e,10))}},{key:"setPollingIntervalPlus",value:function(e){pt(e)||(st(e)?this.DEFAULT_POLLING_INTERVAL_PLUS=e:this.DEFAULT_POLLING_INTERVAL_PLUS=parseInt(e,10))}},{key:"setPollingNoMessageCount",value:function(e){pt(e)||(st(e)?this.DEFAULT_POLLING_NO_MESSAGE_COUNT=e:this.DEFAULT_POLLING_NO_MESSAGE_COUNT=parseInt(e,10))}},{key:"setPollingSimplifiedMessage",value:function(e){pt(e)||"0"!==e&&"1"!==e||(this.DEFAULT_POLLING_SIMPLIFIED_MSG=parseInt(e,10))}},{key:"getPollingInterval",value:function(){return this._pollingInterval}},{key:"onAVChatRoomMemberBanned",value:function(e){var t=e.payload.groupProfile.groupID;Ge.l("".concat(this._n,".onAVChatRoomMemberBanned groupID:").concat(t)),this._groupModule.deleteLocalGroupAndConversation(t),this.reset(t)}},{key:"restartPolling",value:function(){Ge.l("".concat(this._n,".restartPolling count:").concat(this._pollingInstanceMap.size));var e,t=w(this._pollingInstanceMap.values());try{for(t.s();!(e=t.n()).done;){var n=e.value;n.stop(),n.start()}}catch(o){t.e(o)}finally{t.f()}}},{key:"reset",value:function(e){if(e){Ge.l("".concat(this._n,".reset groupID:").concat(e));var t=this._pollingInstanceMap.get(e);t&&t.stop(),this._pollingInstanceMap.delete(e),this._joinedGroupMap.delete(e),this._pollingRequestInfoMap.delete(e),this._onlineMemberCountMap.delete(e)}else{Ge.l("".concat(this._n,".reset all"));var n,r=w(this._pollingInstanceMap.values());try{for(r.s();!(n=r.n()).done;)n.value.stop()}catch(a){r.e(a)}finally{r.f()}this._pollingInstanceMap.clear(),this._joinedGroupMap.clear(),this._pollingRequestInfoMap.clear(),this._onlineMemberCountMap.clear(),this._broadcastMessageIDMap.clear()}this.sequencesLinkedList.reset(),this.messageIDLinkedList.reset(),this.receivedMessageCount=0,this._reportMessageStackedCount=0,this._pollingInterval=this.DEFAULT_POLLING_INTERVAL=300,this.DEFAULT_POLLING_NO_MESSAGE_COUNT=20,this.DEFAULT_POLLING_INTERVAL_PLUS=2e3,this._pollingNoMessageCount=0}}]),e}(),es=1,ts=15,ns=function(){function e(t){o(this,e),this._groupModule=t,this._n="GroupSystemNoticeHandler",this.pendencyMap=new Map}return i(e,[{key:"onNewGroupSystemNotice",value:function(e){var t=e.dataList,n=e.isSyncingEnded,r=e.isInstantMessage;Ge.d("".concat(this._n,".onReceiveSystemNotice count:").concat(t.length));var o=this.newSystemNoticeStoredAndSummary({notifiesList:t,isInstantMessage:r}),a=o.eventDataList,i=o.result;a.length>0&&(this._groupModule.getModule(Yn).onNewMessage({conversationOptionsList:a,isInstantMessage:r}),this._onReceivedGroupSystemNotice({result:i,isInstantMessage:r})),r?i.length>0&&this._groupModule.emitOuterEvent(I.MESSAGE_RECEIVED,i):!0===n&&this._clearGroupSystemNotice()}},{key:"newSystemNoticeStoredAndSummary",value:function(e){var t=e.notifiesList,r=e.isInstantMessage,o=null,a=t.length,i=0,s=[],c={conversationID:S.CONV_SYSTEM,unreadCount:0,type:S.CONV_SYSTEM,subType:null,lastMessage:null};for(i=0;i<a;i++){var l=t[i],u=l.groupProfile,d=u.communityType,p=void 0===d?0:d,f=u.topicID,h=void 0===f?void 0:f,m=l.elements,v=m.topicIDList,g=void 0===v?void 0:v,_=m.operationType;if(!(2!==p||en(h)&&en(g))){if([17,18,20].includes(_)){this._handleTopicSystemNotice(l);continue}en(h)||(l.to=h)}l.elements.operationType!==ts&&(l.currentUser=this._groupModule.getMyUserID(),l.conversationType=S.CONV_SYSTEM,l.conversationID=S.CONV_SYSTEM,(o=new ui(l)).setElement({type:S.MSG_GRP_SYS_NOTICE,content:n(n({},l.elements),{},{groupProfile:n({},l.groupProfile)})}),o.isSystemMessage=!0,(1===o.sequence&&1===o.random||2===o.sequence&&2===o.random)&&(o.sequence=Ot(),o.random=Ot(),o.generateMessageID(),Ge.l("".concat(this._n,".newSystemNoticeStoredAndSummary sequence and random maybe duplicated, regenerate. ID:").concat(o.ID))),this._groupModule.getModule(Yn).pushIntoNoticeResult(s,o)&&(r?c.unreadCount++:o.setIsRead(!0),c.subType=o.conversationSubType))}return c.lastMessage=s[s.length-1],{eventDataList:s.length>0?[c]:[],result:s}}},{key:"_clearGroupSystemNotice",value:function(){var e=this;this._getPendencyList().then((function(t){t.forEach((function(t){e.pendencyMap.set("".concat(t.from,"_").concat(t.groupID,"_").concat(t.to),t)}));var n=e._groupModule.getModule(Yn).getLocalMessageList(S.CONV_SYSTEM),r=[];n.forEach((function(t){var n=t.payload,o=n.operatorID,a=n.operationType,i=n.groupProfile;if(a===es){var s="".concat(o,"_").concat(i.groupID,"_").concat(i.to),c=e.pendencyMap.get(s);c&&st(c.handled)&&0!==c.handled&&r.push(t)}})),e.deleteGroupSystemNotice({messageList:r})}))}},{key:"deleteGroupSystemNotice",value:function(e){var t=this,n="".concat(this._n,".deleteGroupSystemNotice");return dt(e.messageList)&&0!==e.messageList.length?(Ge.l("".concat(n," ")+e.messageList.map((function(e){return e.ID}))),this._groupModule.request({protocolName:No,requestData:{messageListToDelete:e.messageList.map((function(e){return{from:S.CONV_SYSTEM,messageSeq:e.clientSequence,messageRandom:e.random}}))}}).then((function(){Ge.l("".concat(n," ok"));var r=t._groupModule.getModule(Yn);return e.messageList.forEach((function(e){r.deleteLocalMessage(e)})),di()})).catch((function(e){return Ge.e("".concat(n," error:"),e),vi(e)}))):mi()}},{key:"_getPendencyList",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.type,r=void 0===n?void 0:n,o=t.startTime,a=void 0===o?0:o,i=t.limit,s=void 0===i?20:i;return this._groupModule.request({protocolName:Ao,requestData:{type:r,startTime:a,limit:s,handleAccount:this._groupModule.getMyUserID()}}).then((function(t){var n=t.data.pendencyList;return 0!==t.data.nextStartTime?e._getPendencyList({startTime:t.data.nextStartTime}).then((function(e){return[].concat(y(n),y(e))})):n}))}},{key:"getGroupApplicationList",value:function(){var e=this;return this._getPendencyList().then((function(t){return e._getPendencyList({type:S.GRP_COMMUNITY}).then((function(n){return t.push.apply(t,y(n)),e._handlePendencyResult(t)})).catch((function(n){return e._handlePendencyResult(t)}))}))}},{key:"_handlePendencyResult",value:function(e){var t=this,n=[];return e.forEach((function(e){t.pendencyMap.set("".concat(e.from,"_").concat(e.groupID,"_").concat(e.to),e),0===e.handled&&n.push({applicant:e.from,applicantNick:e.fromUserNickName,groupName:e.groupName,groupID:e.groupID,authentication:e.authentication,messageKey:e.time,applicationType:e.applicationType,userID:e.userID})})),mi({applicationList:n})}},{key:"_onReceivedGroupSystemNotice",value:function(e){var t=this,n=e.result;e.isInstantMessage&&n.forEach((function(e){switch(e.payload.operationType){case 1:break;case 2:t._onApplyGroupRequestAgreed(e);break;case 3:break;case 4:t._onMemberKicked(e);break;case 5:t._onGroupDismissed(e);break;case 6:break;case 7:t._onInviteGroup(e);break;case 8:t._onQuitGroup(e);break;case 9:t._onSetManager(e);break;case 10:t._onDeleteManager(e);break;case 11:case 12:case 15:break;case 20:t._onMessageRemindTypeSynced(e);break;case 21:t._groupModule.onAVChatRoomMemberBanned(e)}}))}},{key:"_onApplyGroupRequestAgreed",value:function(e){var t=this,n=e.payload.groupProfile.groupID;this._groupModule.hasLocalGroup(n)||this._groupModule.getGroupProfile({groupID:n}).then((function(e){var n=e.data.group;if(n){t._groupModule.updateGroupMap([n]);var r=!n.isSupportTopic;t._groupModule.emitGroupListUpdate(!0,r)}}))}},{key:"_onMemberKicked",value:function(e){var t=e.payload.groupProfile.groupID;this._groupModule.hasLocalGroup(t)&&this._groupModule.deleteLocalGroupAndConversation(t)}},{key:"_onGroupDismissed",value:function(e){var t=e.payload.groupProfile.groupID;this._groupModule.hasLocalGroup(t)&&this._groupModule.deleteLocalGroupAndConversation(t);var n=this._groupModule._AVChatRoomHandler;n&&n.checkJoinedAVChatRoomByID(t)&&n.reset(t)}},{key:"_onInviteGroup",value:function(e){var t=this,n=e.payload.groupProfile.groupID;this._groupModule.hasLocalGroup(n)||this._groupModule.getGroupProfile({groupID:n}).then((function(e){var n=e.data.group;n&&(t._groupModule.updateGroupMap([n]),t._groupModule.emitGroupListUpdate())}))}},{key:"_onQuitGroup",value:function(e){var t=e.payload.groupProfile.groupID;this._groupModule.hasLocalGroup(t)&&this._groupModule.deleteLocalGroupAndConversation(t)}},{key:"_onSetManager",value:function(e){var t=e.payload.groupProfile,n=t.to,r=t.groupID,o=this._groupModule.getModule(zn).getLocalGroupMemberInfo(r,n);o&&o.updateRole(S.GRP_MBR_ROLE_ADMIN)}},{key:"_onDeleteManager",value:function(e){var t=e.payload.groupProfile,n=t.to,r=t.groupID,o=this._groupModule.getModule(zn).getLocalGroupMemberInfo(r,n);o&&o.updateRole(S.GRP_MBR_ROLE_MEMBER)}},{key:"_onMessageRemindTypeSynced",value:function(e){var t=e.payload.groupProfile.groupID,n=e.payload.messageRemindType;this._groupModule.getModule(Yn).onGroupMessageRemindTypeSynced({groupID:t,messageRemindType:n})}},{key:"_handleTopicSystemNotice",value:function(e){var t=e.groupProfile,n=t.groupID,r=t.topicID,o=e.elements,a=o.operationType,i=o.topicIDList,s=o.messageRemindType,c=this._groupModule.getModule(Hn);17===a?c.onTopicCreated({groupID:n,topicID:r}):18===a?c.onTopicDeleted({groupID:n,topicIDList:i}):20===a&&c.onTopicMessageRemindTypeUpdated({groupID:n,topicID:r,messageRemindType:s})}},{key:"reset",value:function(){this.pendencyMap.clear()}}]),e}(),rs=["relayFlag"],os=function(e){c(r,e);var t=g(r);function r(e){var n;return o(this,r),(n=t.call(this,e))._n="GroupModule",n._commonGroupHandler=null,n._AVChatRoomHandler=null,n._groupSystemNoticeHandler=null,n._commonGroupHandler=new Bi(m(n)),n._groupAttributesHandler=new qi(m(n)),n._groupCountersHandler=new Ji(m(n)),n._AVChatRoomHandler=new Zi(m(n)),n._groupTipsHandler=new Vi(m(n)),n._groupSystemNoticeHandler=new ns(m(n)),n.groupMap=new Map,n._unjoinedAVChatRoomList=new Map,n._receiptDetailCompleteMap=new Map,n.getInnerEmitterInstance().on(bi,n._onCloudConfigUpdated,m(n)),n}return i(r,[{key:"_onCloudConfigUpdated",value:function(){var e=this.getCloudConfig("polling_interval"),t=this.getCloudConfig("polling_interval_plus"),n=this.getCloudConfig("polling_no_msg_count"),r=this.getCloudConfig("polling_simplified_msg");this._AVChatRoomHandler&&(Ge.l("".concat(this._n,"._onCloudConfigUpdated pollingInterval:").concat(e)+" pollingIntervalPlus:".concat(t," pollingNoMessageCount:").concat(n)+" pollingSimplifiedMessage:".concat(r)),this._AVChatRoomHandler.setPollingInterval(e),this._AVChatRoomHandler.setPollingIntervalPlus(t),this._AVChatRoomHandler.setPollingNoMessageCount(n),this._AVChatRoomHandler.setPollingSimplifiedMessage(r))}},{key:"onCheckTimer",value:function(e){this.isLoggedIn()&&(this._commonGroupHandler.onCheckTimer(e),this._groupTipsHandler.onCheckTimer(e))}},{key:"guardForAVChatRoom",value:function(e){var t=this;if(e.conversationType===S.CONV_GROUP){var n=Dt(e.to)?qt(e.to):e.to;return this.hasLocalGroup(n)?mi():this.getGroupProfile({groupID:n}).then((function(r){var o=r.data.group.type;if(Ge.l("".concat(t._n,".guardForAVChatRoom. groupID:").concat(n," type:").concat(o)),o===S.GRP_AVCHATROOM){var a=Aa.MESSAGE_SEND_FAIL_NOT_IN_AVCHATROOM;return vi(new pi({code:a,message:t.getErrorMessage(a,e.from,n),data:{message:e}}))}return mi()}))}return mi()}},{key:"checkJoinedAVChatRoomByID",value:function(e){return!!this._AVChatRoomHandler&&this._AVChatRoomHandler.checkJoinedAVChatRoomByID(e)}},{key:"onNewGroupMessage",value:function(e){this._commonGroupHandler&&this._commonGroupHandler.onNewGroupMessage(e)}},{key:"updateNextMessageSeq",value:function(e){var t=this;if(dt(e)){var n=this.getModule(Hn);e.forEach((function(e){var r=e.conversationID.replace(S.CONV_GROUP,"");Dt(r)&&n.updateLastMessage(r,e.lastMessage),t.groupMap.has(r)&&(t.groupMap.get(r).nextMessageSeq=e.lastMessage.sequence+1)}))}}},{key:"onNewGroupTips",value:function(e){this._groupTipsHandler&&this._groupTipsHandler.onNewGroupTips(e)}},{key:"onGroupMessageRevoked",value:function(e){this._commonGroupHandler&&this._commonGroupHandler.onGroupMessageRevoked(e)}},{key:"onNewGroupSystemNotice",value:function(e){this._groupSystemNoticeHandler&&this._groupSystemNoticeHandler.onNewGroupSystemNotice(e)}},{key:"onGroupMessageReadNotice",value:function(e){var t=this;e.dataList.forEach((function(e){var n=e.elements.groupMessageReadNotice;if(!pt(n)){var r=t.getModule(Yn);n.forEach((function(e){var n=e.groupID,o=e.topicID,a=void 0===o?void 0:o,i=e.lastMessageSeq;Ge.d("".concat(t._n,".onGroupMessageReadNotice groupID:").concat(n," lastMessageSeq:").concat(i));var s="".concat(S.CONV_GROUP).concat(n),c=!0;en(a)||(s="".concat(S.CONV_GROUP).concat(a),c=!1),r.updateIsReadAfterReadReport({conversationID:s,lastMessageSeq:i}),r.updateUnreadCount(s,c),r.clearGroupAtInfoList(s,c)}))}}))}},{key:"onReadReceiptList",value:function(e){var t=this;Ge.d("".concat(this._n,".onReadReceiptList options:"),JSON.stringify(e)),e.dataList.forEach((function(e){var n=e.groupProfile,r=e.elements,o=n.groupID,a=t.getModule(Yn),i=r.readReceiptList;a.updateReadReceiptInfo({groupID:o,readReceiptList:i})}))}},{key:"onGroupMessageModified",value:function(e){Ge.d("".concat(this._n,".onGroupMessageModified options:"),JSON.stringify(e));var t=this.getModule(Yn);e.dataList.forEach((function(e){t.onMessageModified(n(n({},e),{},{conversationType:S.CONV_GROUP,to:e.topicID?e.topicID:e.groupID}))}))}},{key:"deleteGroupSystemNotice",value:function(e){this._groupSystemNoticeHandler&&this._groupSystemNoticeHandler.deleteGroupSystemNotice(e)}},{key:"initGroupMap",value:function(e){this.groupMap.set(e.groupID,new Ai(e))}},{key:"deleteGroup",value:function(e){this.groupMap.delete(e)}},{key:"updateGroupMap",value:function(e){var t,n=this,r=this.getModule(Yn);e.forEach((function(e){t=e.groupID,n.groupMap.has(t)?n.groupMap.get(t).updateGroup(e):(n.groupMap.set(t,new Ai(e)),r.deleteGroupRomaingMessageInfo(t))}));var o,a=this.getMyUserID(),i=w(this.groupMap);try{for(i.s();!(o=i.n()).done;){var s=_(o.value,2)[1];s.selfInfo.userID=a,"Owner"===s.selfInfo.role&&(s.ownerID=a)}}catch(l){i.e(l)}finally{i.f()}this._setStorageGroupList()}},{key:"getStorageGroupList",value:function(){return this.getModule(Wn).getItem("groupMap")}},{key:"_setStorageGroupList",value:function(){var e=this.getLocalGroupList().filter((function(e){var t=e.type;return!Et(t)})).filter((function(e){return!e.isSupportTopic})).slice(0,20).map((function(e){return{groupID:e.groupID,name:e.name,avatar:e.avatar,type:e.type}}));this.getModule(Wn).setItem("groupMap",e)}},{key:"getGroupMap",value:function(){return this.groupMap}},{key:"getLocalGroupList",value:function(){return y(this.groupMap.values())}},{key:"getLocalGroupProfile",value:function(e){return this.groupMap.get(e)}},{key:"sortLocalGroupList",value:function(){var e=y(this.groupMap).filter((function(e){var t=_(e,2);return t[0],!en(t[1].lastMessage)}));e.sort((function(e,t){return t[1].lastMessage.lastTime-e[1].lastMessage.lastTime})),this.groupMap=new Map(y(e))}},{key:"updateGroupLastMessage",value:function(e){this._commonGroupHandler&&this._commonGroupHandler.handleUpdateGroupLastMessage(e)}},{key:"emitGroupListUpdate",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.getLocalGroupList();if(e&&this.emitOuterEvent(I.GROUP_LIST_UPDATED),t){var r=JSON.parse(JSON.stringify(n)),o=this.getModule(Yn);o.updateConversationGroupProfile(r)}}},{key:"patchGroupMessageRemindType",value:function(){var e=this.getLocalGroupList(),t=this.getModule(Yn),n=0;e.forEach((function(e){!0===t.patchMessageRemindType({ID:e.groupID,isC2CConversation:!1,messageRemindType:e.selfInfo.messageRemindType})&&(n+=1)})),Ge.l("".concat(this._n,".patchGroupMessageRemindType count:").concat(n))}},{key:"recomputeUnreadCount",value:function(){var e=this.getLocalGroupList(),t=this.getModule(Yn);e.forEach((function(e){var n=e.groupID,r=e.selfInfo,o=r.excludedUnreadSequenceList,a=r.readedSequence;if(dt(o)){var i=0;o.forEach((function(t){t>=a&&t<=e.nextMessageSeq-1&&(i+=1)})),i>=1&&t.recomputeGroupUnreadCount({conversationID:"".concat(S.CONV_GROUP).concat(n),count:i})}}))}},{key:"getMyNameCardByGroupID",value:function(e){var t=this.getLocalGroupProfile(e);return t?t.selfInfo.nameCard:""}},{key:"isPagingGetCompleted",value:function(){return!!this._commonGroupHandler&&this._commonGroupHandler.isPagingGetCompleted()}},{key:"getGroupList",value:function(e){return this._commonGroupHandler?this._commonGroupHandler.getGroupList(e):mi()}},{key:"getGroupProfile",value:function(e){var t=this,n="".concat(this._n,".").concat("getGroupProfile"),r=new Ka("getGroupProfile"),o=e.groupID,a=e.groupCustomFieldFilter;Ge.l("".concat(n," groupID:").concat(o));var i={groupIDList:[o],responseFilter:{groupBaseInfoFilter:["Type","Name","Introduction","Notification","FaceUrl","Owner_Account","CreateTime","InfoSeq","LastInfoTime","LastMsgTime","MemberNum","MaxMemberNum","ApplyJoinOption","NextMsgSeq","ShutUpAllMember","InviteJoinOption"],groupCustomFieldFilter:a,memberInfoFilter:["Role","JoinTime","MsgSeq","MsgFlag","NameCard"]}};return this.getGroupProfileAdvance(i).then((function(e){var a,i=e.data,s=i.successGroupList,c=i.failureGroupList;return Ge.l("".concat(n," ok")),c.length>0?vi(c[0]):(Et(s[0].type)&&!t.hasLocalGroup(o)?a=new Ai(s[0]):(t.updateGroupMap(s),a=t.getLocalGroupProfile(o)),a.isSupportTopic||t.getModule(Yn).updateConversationGroupProfile([a]),r.setNetworkType(t.getNetworkType()).setMessage("groupID:".concat(o," type:").concat(a.type," muteAllMembers:").concat(a.muteAllMembers," ownerID:").concat(a.ownerID)).end(),di({group:a}))})).catch((function(o){return t.probeNetwork().then((function(t){var n=_(t,2),a=n[0],i=n[1];r.setError(o,a,i).setMessage("groupID:".concat(e.groupID)).end()})),Ge.e("".concat(n," failed. error:"),o),vi(o)}))}},{key:"getGroupProfileAdvance",value:function(e){var t="".concat(this._n,".getGroupProfileAdvance"),r=e.groupIDList;dt(r)&&r.length>50&&(this.outputWarning("GetGroupProfileLimit"),r.length=50);var o=[],a=[];r.forEach((function(e){jt({groupID:e})?a.push(e):o.push(e)}));var i=[];if(o.length>0){var s=this._getGroupProfileAdvance(n(n({},e),{},{groupIDList:o}));i.push(s)}if(a.length>0){var c=this._getGroupProfileAdvance(n(n({},e),{},{groupIDList:a,relayFlag:o.length>0}));i.push(c)}return Promise.all(i).then((function(e){var t=[],n=[];return e.forEach((function(e){t.push.apply(t,y(e.successGroupList)),n.push.apply(n,y(e.failureGroupList))})),di({successGroupList:t,failureGroupList:n})})).catch((function(e){return Ge.e("".concat(t," failed. error:"),e),vi(e)}))}},{key:"_getGroupProfileAdvance",value:function(e){var t=this,n=e.relayFlag,r=void 0!==n&&n,o=h(e,rs);return this.request({protocolName:fo,requestData:o}).then((function(e){Ge.l("".concat(t._n,"._getGroupProfileAdvance ok."));var n=e.data.groups;return{successGroupList:n.filter((function(e){return pt(e.errorCode)||0===e.errorCode})),failureGroupList:n.filter((function(e){return e.errorCode&&0!==e.errorCode})).map((function(e){return new pi({code:e.errorCode,message:e.errorInfo,data:{groupID:e.groupID}})}))}})).catch((function(t){return r&&jt({groupID:e.groupIDList[0]})?{successGroupList:[],failureGroupList:[]}:vi(t)}))}},{key:"createGroup",value:function(e){var t=this,r="".concat(this._n,".").concat("createGroup"),o=e.type,a=e.groupID;if(e.name&&!1===this._filterProfanity("name",e))return vi({code:Aa.PROFANITY_FOUND});if(e.introduction&&!1===this._filterProfanity("introduction",e))return vi({code:Aa.PROFANITY_FOUND});if(e.notification&&!1===this._filterProfanity("notification",e))return vi({code:Aa.PROFANITY_FOUND});if(!["Public","Private","ChatRoom","AVChatRoom","Community"].includes(o))return vi({code:Aa.ILLEGAL_GROUP_TYPE});if(!jt({type:o})){if(!en(a)&&jt({groupID:a}))return vi({code:Aa.ILLEGAL_GROUP_ID});e.isSupportTopic=void 0}if(Et(o)&&!pt(e.memberList)&&e.memberList.length>0&&(e.memberList=void 0),this._canIUseJoinOption(o)||pt(e.joinOption)||(e.joinOption=void 0),jt({type:o})){if(!en(a)&&!jt({groupID:a}))return vi({code:Aa.ILLEGAL_GROUP_ID});e.isSupportTopic=!0===e.isSupportTopic?1:0}var i=new Ka("createGroup");Ge.l("".concat(r," options:"),e);var s=null,c=[];return this.request({protocolName:ho,requestData:n(n({},e),{},{ownerID:this.getMyUserID(),webPushFlag:1})}).then((function(o){var a=o.data,l=a.groupID,u=a.overLimitUserIDList,d=void 0===u?[]:u;if(s=l,c=d,i.setNetworkType(t.getNetworkType()).setMessage("groupType:".concat(e.type," groupID:").concat(l," overLimitUserIDList=").concat(d)).end(),Ge.l("".concat(r," ok groupID:").concat(l," overLimitUserIDList:"),d),e.type===S.GRP_AVCHATROOM)return t.getGroupProfile({groupID:l});if(e.type===S.GRP_COMMUNITY&&1===e.isSupportTopic)return t.getGroupProfile({groupID:l});en(e.memberList)||en(d)||(e.memberList=e.memberList.filter((function(e){return-1===d.indexOf(e.userID)}))),t.updateGroupMap([n(n({},e),{},{groupID:l})]);var p=t.getModule(Pn),f=p.createCustomMessage({to:l,conversationType:S.CONV_GROUP,payload:{data:"group_create",extension:t.isIntl()?"".concat(t.getMyUserID()," created a group"):"".concat(t.getMyUserID(),"创建群组")}});return p.sendMessageInstance(f),t.emitGroupListUpdate(),t.getGroupProfile({groupID:l})})).then((function(e){var t=e.data.group,n=t.selfInfo,r=n.nameCard,o=n.joinTime;return t.updateSelfInfo({nameCard:r,joinTime:o,messageRemindType:S.MSG_REMIND_ACPT_AND_NOTE,role:S.GRP_MBR_ROLE_OWNER}),di({group:t,overLimitUserIDList:c})})).catch((function(o){if(i.setMessage("groupType:".concat(e.type)),t.probeNetwork().then((function(e){var t=_(e,2),n=t[0],r=t[1];i.setError(o,n,r).end()})),10010===o.code||10007===o.code){t.updateGroupMap([n(n({},e),{},{groupID:s})]);var a=t.getLocalGroupProfile(s);return Ge.l("".concat(r," success, but failed to get group profile.")),di({group:a,overLimitUserIDList:c})}return Ge.e("".concat(r," failed. error:"),o),vi(o)}))}},{key:"dismissGroup",value:function(e){var t=this,n="".concat(this._n,".").concat("dismissGroup");if(this.hasLocalGroup(e)&&this.getLocalGroupProfile(e).type===S.GRP_WORK)return vi(new pi({code:Aa.CANNOT_DISMISS_WORK}));var r=new Ka("dismissGroup");return r.setMessage("groupID:".concat(e)),Ge.l("".concat(n," groupID:").concat(e)),this.request({protocolName:mo,requestData:{groupID:e}}).then((function(){return r.setNetworkType(t.getNetworkType()).end(),Ge.l("".concat(n," ok")),t.deleteLocalGroupAndConversation(e),t.checkJoinedAVChatRoomByID(e)&&t._AVChatRoomHandler.reset(e),t._groupAttributesHandler.deleteLocalGroupAttributes(e),di({groupID:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),o=n[0],a=n[1];r.setError(e,o,a).end()})),Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"updateGroupProfile",value:function(e){var t=this,n="".concat(this._n,".").concat("updateGroupProfile");if(this.hasLocalGroup(e.groupID)){var r=this.getLocalGroupProfile(e.groupID).type;this._canIUseJoinOption(r)||pt(e.joinOption)||(Ge.w("".concat(n," joinOption is unavailable for Work/Meeting/AVChatRoom")),e.joinOption=void 0)}if(pt(e.muteAllMembers)||(e.muteAllMembers?e.muteAllMembers="On":e.muteAllMembers="Off"),e.name&&!1===this._filterProfanity("name",e))return vi({code:Aa.PROFANITY_FOUND});if(e.introduction&&!1===this._filterProfanity("introduction",e))return vi({code:Aa.PROFANITY_FOUND});if(e.notification&&!1===this._filterProfanity("notification",e))return vi({code:Aa.PROFANITY_FOUND});var o=new Ka("updateGroupProfile");return o.setMessage(JSON.stringify(e)),Ge.l("".concat(n," groupID:").concat(e.groupID)),this.request({protocolName:vo,requestData:e}).then((function(){return o.setNetworkType(t.getNetworkType()).end(),Ge.l("".concat(n," ok")),t.hasLocalGroup(e.groupID)&&(t.groupMap.get(e.groupID).updateGroup(e),t._setStorageGroupList()),di({group:t.groupMap.get(e.groupID)})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],a=n[1];o.setError(e,r,a).end()})),Ge.l("".concat(n," failed. error:"),e),vi(e)}))}},{key:"_filterProfanity",value:function(e,t){var n=this.getModule(lr);if(!n)return!0;var r=n.filterText(t[e],J),o=r.isAllowedToSend,a=r.modifiedText;return!0===o&&(t[e]=a,!0)}},{key:"joinGroup",value:function(e){var t=this,n=e.groupID,r=e.type,o="".concat(this._n,".joinGroup");if(r===S.GRP_WORK)return vi({code:Aa.CANNOT_JOIN_WORK});if(this.deleteUnjoinedAVChatRoom(n),this.hasLocalGroup(n)){if(!this.isLoggedIn())return mi({status:S.JOIN_STATUS_ALREADY_IN_GROUP});var a=new Ka("applyJoinGroup");return this.getGroupProfile({groupID:n}).then((function(){return a.setNetworkType(t.getNetworkType()).setMessage("groupID:".concat(n," joinedStatus:").concat(S.JOIN_STATUS_ALREADY_IN_GROUP)).end(),mi({status:S.JOIN_STATUS_ALREADY_IN_GROUP})})).catch((function(r){return a.setNetworkType(t.getNetworkType()).setMessage("groupID:".concat(n," unjoined")).end(),Ge.w("".concat(o," ").concat(n," was unjoined, now join!")),t.groupMap.delete(n),t.applyJoinGroup(e)}))}return Ge.l("".concat(o," groupID:").concat(n)),this.isLoggedIn()?this.applyJoinGroup(e):this._AVChatRoomHandler.joinWithoutAuth(e)}},{key:"applyJoinGroup",value:function(e){var t=this,r="".concat(this._n,".").concat("applyJoinGroup"),o=e.groupID;if(!en(e.applyMessage)&&!1===this._filterProfanity("applyMessage",e))return vi({code:Aa.PROFANITY_FOUND});var a=new Ka("applyJoinGroup"),i=n({},e),s=this.canIUse(z.AVCHATROOM_HISTORY_MSG);return s&&(i.historyMessageFlag=1),this.getModule(Yn).deleteTopicRoamingMessageInfo(o),this.request({protocolName:go,requestData:i}).then((function(e){var n=e.data,i=n.joinedStatus,c=n.longPollingKey,l=n.startSeq,u=n.avChatRoomFlag,d=n.avChatRoomKey,p=n.messageList,f="groupID:".concat(o," joinedStatus:").concat(i," longPollingKey:").concat(c," startSeq:").concat(l)+" avChatRoomFlag:".concat(u," canGetAVChatRoomHistoryMessage:").concat(s,",")+" history message count:".concat(en(p)?0:p.length);switch(a.setNetworkType(t.getNetworkType()).setMessage("".concat(f)).end(),Ge.l("".concat(r," ok. ").concat(f)),i){case et:return di({status:et});case Ze:return t.getGroupProfile({groupID:o}).then((function(e){var n=e.data.group;return t._handleJoinResult({group:n,avChatRoomFlag:u,longPollingKey:c,startSeq:l,avChatRoomKey:d,messageList:p})})).catch((function(){var e=new Ai({groupID:o});return t._handleJoinResult({group:e,avChatRoomFlag:u,longPollingKey:c,startSeq:l,avChatRoomKey:d,messageList:p})}));default:var h=new pi({code:Aa.JOIN_GROUP_FAIL});return Ge.e("".concat(r," failed. error:"),h),vi(h)}})).catch((function(e){return a.setMessage("groupID:".concat(o)),t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];a.setError(e,r,o).end()})),Ge.e("".concat(r," failed. error:"),e),vi(e)}))}},{key:"_handleJoinResult",value:function(e){var t,n=this,r=e.group,o=e.avChatRoomFlag,a=e.longPollingKey,i=e.startSeq,s=e.avChatRoomKey,c=e.messageList,l=r.groupID;return 1===o?(this.getModule(Yn).setCompleted("".concat(S.CONV_GROUP).concat(l)),this._groupAttributesHandler.initGroupAttributesCache({groupID:l,avChatRoomKey:s}),this._groupCountersHandler.initGroupCountersCache({groupID:l,avChatRoomKey:s}),(t=pt(a)?this._AVChatRoomHandler.handleJoinResult({group:r}):this._AVChatRoomHandler.startRunLoop({group:r,longPollingKey:a,startSeq:i})).then((function(){n._onAVChatRoomHistoryMessage(c)})),t):(this.emitGroupListUpdate(!0,!1),di({status:Ze,group:r}))}},{key:"quitGroup",value:function(e){var t=this,n="".concat(this._n,".").concat("quitGroup");Ge.l("".concat(n," groupID:").concat(e));var r=this.checkJoinedAVChatRoomByID(e);if(!r&&!this.hasLocalGroup(e))return vi({code:Aa.MEMBER_NOT_IN_GROUP});if(r&&!this.isLoggedIn())return Ge.l("".concat(n," anonymously ok. groupID:").concat(e)),this.deleteLocalGroupAndConversation(e),this._AVChatRoomHandler.reset(e),mi({groupID:e});var o=new Ka("quitGroup");return o.setMessage("groupID:".concat(e)),this.request({protocolName:yo,requestData:{groupID:e}}).then((function(){return o.setNetworkType(t.getNetworkType()).end(),Ge.l("".concat(n," ok")),t.deleteLocalGroupAndConversation(e),r&&t._AVChatRoomHandler.reset(e),t._groupAttributesHandler.deleteLocalGroupAttributes(e),di({groupID:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],a=n[1];o.setError(e,r,a).end()})),Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"searchGroupByID",value:function(e){var t=this,n="".concat(this._n,".").concat("searchGroupByID"),r={groupIDList:[e]},o=new Ka("searchGroupByID");return o.setMessage("groupID:".concat(e)),Ge.l("".concat(n," groupID:").concat(e)),this.request({protocolName:bo,requestData:r}).then((function(e){var r=e.data.groupProfile;if(0!==r[0].errorCode)throw new pi({code:r[0].errorCode,message:r[0].errorInfo});return o.setNetworkType(t.getNetworkType()).end(),Ge.l("".concat(n," ok")),di({group:new Ai(r[0])})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],a=n[1];o.setError(e,r,a).end()})),Ge.w("".concat(n," failed. error:"),e),vi(e)}))}},{key:"changeGroupOwner",value:function(e){var t=this,n="".concat(this._n,".").concat("changeGroupOwner");if(this.hasLocalGroup(e.groupID)&&this.getLocalGroupProfile(e.groupID).type===S.GRP_AVCHATROOM)return vi({code:Aa.CANNOT_CHANGE_OWNER_IN_AVCHATROOM});if(e.newOwnerID===this.getMyUserID())return vi({code:Aa.CANNOT_CHANGE_OWNER_TO_SELF});var r=new Ka("changeGroupOwner");return r.setMessage("groupID:".concat(e.groupID," newOwnerID:").concat(e.newOwnerID)),Ge.l("".concat(n," groupID:").concat(e.groupID)),this.request({protocolName:Oo,requestData:e}).then((function(){r.setNetworkType(t.getNetworkType()).end(),Ge.l("".concat(n," ok"));var o=e.groupID,a=e.newOwnerID;t.groupMap.get(o).ownerID=a;var i=t.getModule(zn).getLocalGroupMemberList(o);if(i instanceof Map){var s=i.get(t.getMyUserID());pt(s)||(s.updateRole("Member"),t.groupMap.get(o).selfInfo.role="Member");var c=i.get(a);pt(c)||c.updateRole("Owner")}return t.emitGroupListUpdate(!0,!1),di({group:t.groupMap.get(o)})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),o=n[0],a=n[1];r.setError(e,o,a).end()})),Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"getGroupApplicationList",value:function(){return this._groupSystemNoticeHandler.getGroupApplicationList()}},{key:"handleGroupApplication",value:function(e){var t,n,r,o,a,i=this,s="".concat(this._n,".").concat("handleGroupApplication"),c=e.handleAction,l=e.handleMessage,u=e.message,d=e.application;u?(t=u.payload.operatorID,n=u.payload.groupProfile.groupID,r=u.payload.authentication,o=u.payload.messageKey):d&&(t=d.applicant,n=d.groupID,r=d.authentication,o=d.messageKey);var p=Mo;d&&2===d.applicationType&&(p=ko,a=d.userID);var f=new Ka("handleGroupApplication");return f.setMessage("groupID:".concat(n)),Ge.l("".concat(s," groupID:").concat(n)),this.request({protocolName:p,requestData:{handleAction:c,handleMessage:l,applicant:t,invitee:a,groupID:n,authentication:r,messageKey:o}}).then((function(){return f.setNetworkType(i.getNetworkType()).end(),Ge.l("".concat(s," ok")),u&&i._groupSystemNoticeHandler.deleteGroupSystemNotice({messageList:[e.message]}),di({group:i.getLocalGroupProfile(n)})})).catch((function(e){return i.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];f.setError(e,r,o).end()})),Ge.e("".concat(s," failed. error"),e),vi(e)}))}},{key:"handleGroupInvitation",value:function(e){var t=this,r="".concat(this._n,".").concat("handleGroupInvitation"),o=e.message.payload,a=o.groupProfile.groupID,i=o.authentication,s=o.messageKey,c=o.operatorID,l=e.handleAction,u=new Ka("handleGroupInvitation");return u.setMessage("groupID:".concat(a," inviter:").concat(c," handleAction:").concat(l)),Ge.l("".concat(r," groupID:").concat(a," inviter:").concat(c," handleAction:").concat(l)),this.request({protocolName:Co,requestData:n(n({},e),{},{inviter:c,groupID:a,authentication:i,messageKey:s})}).then((function(){return u.setNetworkType(t.getNetworkType()).end(),Ge.l("".concat(r," ok")),t._groupSystemNoticeHandler.deleteGroupSystemNotice({messageList:[e.message]}),di({group:t.getLocalGroupProfile(a)})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];u.setError(e,r,o).end()})),Ge.e("".concat(r," failed. error"),e),vi(e)}))}},{key:"getGroupOnlineMemberCount",value:function(e){return this._AVChatRoomHandler?this._AVChatRoomHandler.checkJoinedAVChatRoomByID(e)?this._AVChatRoomHandler.getGroupOnlineMemberCount(e):mi({memberCount:0}):vi({code:Aa.CANNOT_FIND_MODULE})}},{key:"hasLocalGroup",value:function(e){return this.groupMap.has(e)}},{key:"deleteLocalGroupAndConversation",value:function(e){var t=this.checkJoinedAVChatRoomByID(e);if(Ge.l("".concat(this._n,".deleteLocalGroupAndConversation isJoinedAVChatRoom:").concat(t)),t&&this.getModule(Yn).deleteLocalConversation("".concat(S.CONV_GROUP).concat(e)),jt({groupID:e})){var n=this.getLocalGroupProfile(e);n&&!0===n.isSupportTopic&&this.getModule(Hn).deleteTopicListInCommunity(e)}this._deleteLocalGroup(e),this.emitGroupListUpdate(!0,!1)}},{key:"_deleteLocalGroup",value:function(e){this.groupMap.delete(e),this.getModule(zn).deleteGroupMemberList(e),this._setStorageGroupList()}},{key:"sendMessage",value:function(e,t){if(dt(e._receiverList)&&e._receiverList.length>0&&!this.canIUse(z.MSG_TO_SPECIFIED_GRP_MBR))return vi({code:Aa.CANNOT_USE_COMMERCIAL_ABILITY});var n=this.createGroupMessagePack(e,t);return this.request(n)}},{key:"createGroupMessagePack",value:function(e,t){var n=null;t&&t.offlinePushInfo&&(n=t.offlinePushInfo);var r="";ct(e.cloudCustomData)&&e.cloudCustomData.length>0&&(r=e.cloudCustomData);var o=[];if(ut(t)&&ut(t.messageControlInfo)){var a=t.messageControlInfo,i=a.excludedFromUnreadCount,s=a.excludedFromLastMessage,c=a.excludedFromContentModeration;!0===i&&o.push("NoUnread"),!0===s&&o.push("NoLastMsg"),!0===c&&o.push("NoMsgCheck")}var l=void 0;dt(e._receiverList)&&e._receiverList.length>0&&(l=e._receiverList,e._receiverList.length>50&&(l=e._receiverList.slice(0,50),this.outputWarning("ReceiverListLimit")));var u=this.isOnlineMessage(e,t)?1:0,d=e.getGroupAtInfoList(),p={fromAccount:this.getMyUserID(),groupID:e.to,msgBody:e.getElements(),cloudCustomData:r,random:e.random,priority:e.priority,clientSequence:e.clientSequence,groupAtInfo:e.type!==S.MSG_TEXT||en(d)?void 0:d,onlineOnlyFlag:u,clientTime:e.clientTime,offlinePushInfo:n?{pushFlag:!0===n.disablePush?1:0,title:n.title||"",desc:n.description||"",ext:n.extension||"",apnsInfo:{badgeMode:!0===n.ignoreIOSBadge?1:0,isVoipPush:this._isVoipPush(n)},androidInfo:{OPPOChannelID:n.androidOPPOChannelID||""}}:void 0,messageControlInfo:0===u?o:void 0,needReadReceipt:!0!==e.needReadReceipt||this.isMessageFromOrToAVChatroom(e.to)?0:1,receiverList:l,isSupportExtension:!0===e.isSupportExtension?1:0};return Dt(e.to)&&(p.groupID=qt(e.to),p.topicID=e.to),{protocolName:Or,tjgID:this.generateTjgID(e),requestData:p}}},{key:"_isVoipPush",value:function(e){var t=void 0;return pt(e.disableVoipPush)||(t=!1===e.disableVoipPush?1:0),t}},{key:"revokeMessage",value:function(e){var t={groupID:e.to,msgSeqList:[{msgSeq:e.sequence}]};return Dt(e.to)&&(t.groupID=qt(e.to),t.topicID=e.to),this.request({protocolName:wo,requestData:t})}},{key:"deleteMessage",value:function(e){var t=e.to,n=e.keyList;Ge.l("".concat(this._n,".deleteMessage groupID:").concat(t," count:").concat(n.length));var r={groupID:t,deleter:this.getMyUserID(),keyList:n};return Dt(t)&&(r.groupID=qt(t),r.topicID=t),this.request({protocolName:Uo,requestData:r})}},{key:"modifyRemoteMessage",value:function(e){var t=e.to,n=e.sequence,r=e.payload,o=e.type,a=e.version,i=void 0===a?0:a,s=e.cloudCustomData,c=t,l=void 0;Dt(t)&&(c=qt(t),l=t);var u=void 0;return Kt(o)&&(u=[]).push({type:o,content:r}),this.request({protocolName:Vo,requestData:{groupID:c,topicID:l,sequence:n,version:i,elements:u,cloudCustomData:s}})}},{key:"getRoamingMessage",value:function(e){var t=this,n="".concat(this._n,".getRoamingMessage"),r=e.conversationID,o=e.groupID,a=e.sequence,i=new Ka("getGroupRoamingMessages"),s=0,c=void 0;return Dt(o)&&(o=qt(c=o)),this._computeLastSequence({groupID:o,topicID:c,sequence:a}).then((function(e){return s=e,Ge.l("".concat(n," groupID:").concat(o," startSequence:").concat(s)),t.request({protocolName:To,requestData:{groupID:o,count:21,sequence:s,topicID:c}})})).then((function(e){var a=e.data,l=a.messageList,u=a.complete,d=a.invisibleSequenceList,p=void 0===d?[]:d;pt(l)?Ge.l("".concat(n," ok. complete:").concat(u," but messageList is undefined!")):Ge.l("".concat(n," ok. complete:").concat(u," count:").concat(l.length));var f=t._getMinSequence(p,l)-1;i.setNetworkType(t.getNetworkType()).setMessage("groupID:".concat(o," topicID:").concat(c," startSequence:").concat(s," complete:").concat(u," nextSequence:").concat(f)).end();var h=t.getModule(Yn),m=[];return en(l)||(h.updateRoamingMessageSequence(r,f),m=h.onRoamingMessage(l,r),h.updateIsRead(r),h.patchConversationLastMessage(r)),(2===u||f<=1)&&(h.setCompleted(r),f=""),Ge.l("".concat(n," nextReqID:").concat(f,", stored message count:").concat(m.length,", invisible sequence count:").concat(p.length)),{nextReqID:f+"",storedMessageList:m}})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],a=n[1];i.setError(e,r,a).setMessage("groupID:".concat(o," topicID:").concat(c," startSequence:").concat(s)).end()})),Ge.w("".concat(n," failed. error:"),e),vi(e)}))}},{key:"_getGroupIDOfMessage",value:function(e){return e.conversationID.replace(S.CONV_GROUP,"")}},{key:"_getMinSequence",value:function(e,t){var n=0;en(t)||(n=t[t.length-1].sequence);var r=0;return en(e)||(r=e[e.length-1]),Ge.l("".concat(this._n,"._getMinSequence minVisibleSequence:").concat(n," minInvisibleSequence:").concat(r)),r>0&&r<n?r:n}},{key:"getReadReceiptList",value:function(e){var t=this,n="".concat(this._n,".").concat("getReadReceiptList"),r=this._getGroupIDOfMessage(e[0]),o=this.getMyUserID(),a=e.filter((function(e){return e.from===o&&!0===e.needReadReceipt})).map((function(e){return{sequence:e.sequence}}));if(Ge.l("".concat(n," groupID:").concat(r," sequenceList:").concat(JSON.stringify(a))),0===a.length)return mi({messageList:e});var i=new Ka("getReadReceiptList");return i.setMessage("groupID:".concat(r)),this.request({protocolName:Eo,requestData:{groupID:r,sequenceList:a}}).then((function(t){i.end(),Ge.l("".concat(n," ok"));var r=t.data.readReceiptList;return dt(r)&&r.forEach((function(t){e.forEach((function(e){0===t.code&&t.sequence===e.sequence&&(e.readReceiptInfo.readCount=t.readCount,e.readReceiptInfo.unreadCount=t.unreadCount)}))})),di({messageList:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setError(e,r,o).end()})),Ge.w("".concat(n," failed. error:"),e),vi(e)}))}},{key:"sendReadReceipt",value:function(e){var t=this,n="".concat(this._n,".").concat("sendReadReceipt"),r=this._getGroupIDOfMessage(e[0]),o=new Ka("sendReadReceipt");o.setMessage("groupID:".concat(r));var a=this.getMyUserID(),i=e.filter((function(e){return e.from!==a&&!0===e.needReadReceipt})).map((function(e){return{sequence:e.sequence}}));return 0===i.length?vi({code:Aa.READ_RECEIPT_MESSAGE_LIST_EMPTY}):(Ge.l("".concat(n,". sequenceList:").concat(JSON.stringify(i))),this.request({protocolName:jo,requestData:{groupID:r,sequenceList:i}}).then((function(e){return o.end(),Ge.l("".concat(n," ok")),di()})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],a=n[1];o.setError(e,r,a).end()})),Ge.w("".concat(n," failed. error:"),e),vi(e)})))}},{key:"getReadReceiptDetail",value:function(e){var t=this,n=e.message,r=e.filter,o=e.cursor,a=e.count,i=this._getGroupIDOfMessage(n),s=n.ID,c=n.sequence,l="".concat(this._n,".").concat("getReadReceiptDetail"),u=this._receiptDetailCompleteMap.get(s)||!1,d=0!==r&&1!==r?0:r,p=ct(o)?o:"",f=!st(a)||a<=0||a>=100?100:a,h="groupID:".concat(i," sequence:").concat(c," cursor:").concat(p," filter:").concat(d," completeFlag:").concat(u);Ge.l("".concat(l," ").concat(h));var m={cursor:"",isCompleted:!1,messageID:s,unreadUserIDList:[],readUserIDList:[]},v=new Ka("getReadReceiptDetail");return v.setMessage(h),this.request({protocolName:Lo,requestData:{groupID:i,sequence:c,flag:d,cursor:p,count:f}}).then((function(e){v.end();var n=e.data,r=n.cursor,o=n.isCompleted,a=n.unreadUserIDList,i=n.readUserIDList;return m.cursor=r,1===o&&(m.isCompleted=!0,t._receiptDetailCompleteMap.set(s,!0)),0===d?m.readUserIDList=i.map((function(e){return e.userID})):1===d&&(m.unreadUserIDList=a.map((function(e){return e.userID}))),Ge.l("".concat(l," ok")),di(m)})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];v.setError(e,r,o).end()})),Ge.w("".concat(l," failed. error:"),e),vi(e)}))}},{key:"getRoamingMessagesHopping",value:function(e){var t=this,n="".concat(this._n,".getRoamingMessagesHopping"),r=new Ka("getGroupRoamingMessagesHopping"),o=e.groupID,a=e.count,i=e.sequence,s=e.direction,c=i;1===s&&(c=i+a-1);var l=void 0;Dt(o)&&(o=qt(l=o));var u="".concat(l?"topicID:".concat(l):"groupID:".concat(o)," sequence:").concat(i," direction:").concat(s);return Ge.l("".concat(n," ").concat(u)),this.request({protocolName:To,requestData:{groupID:o,topicID:l,count:a,sequence:c}}).then((function(o){var a=o.data,c=a.messageList,l=a.complete,d="complete:".concat(l," count:").concat(c?c.length:0);if(Ge.l("".concat(n," ok. ").concat(d)),r.setNetworkType(t.getNetworkType()).setMessage("".concat(u," ").concat(d)).end(),2===l||en(c)){var p=t._computeResult();return di(p)}var f="".concat(S.CONV_GROUP).concat(e.groupID),h=t.getModule(Yn).onRoamingMessage(c,f,!1),m=t._computeResult({direction:s,sequence:i,remoteMessageList:c,processedMessageList:h});return di(m)})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),s=n[0],c=n[1];r.setError(e,s,c).setMessage("groupID:".concat(o," sequence:").concat(i," count:").concat(a)).end()})),Ge.w("".concat(n," failed. error:"),e),vi(e)}))}},{key:"_computeResult",value:function(e){var t={messageList:[],isCompleted:!1,nextMessageSeq:""};if(pt(e))return t.isCompleted=!0,t;var n=e.direction,r=e.sequence,o=e.remoteMessageList,a=void 0===o?[]:o,i=e.processedMessageList,s=void 0===i?[]:i,c=a.length;return 1===n?(t.nextMessageSeq=a[0].sequence+1,s.forEach((function(e){e.sequence>=r&&t.messageList.push(e)})),0===t.messageList.length&&a[0].sequence<r&&(t.isCompleted=!0,t.nextMessageSeq=""),t):(t.nextMessageSeq=a[c-1].sequence-1,t.messageList=y(s),0===t.nextMessageSeq&&(t.isCompleted=!0,t.nextMessageSeq=""),t)}},{key:"setMessageRead",value:function(e){var t=this,n=e.conversationID,r=e.lastMessageSeq,o="".concat(this._n,".setMessageRead");Ge.l("".concat(o," conversationID:").concat(n," lastMessageSeq:").concat(r)),st(r)||this.outputWarning("DoNotModifyLastSeq");var a=new Ka("setGroupMessageRead");a.setMessage("".concat(n,"-").concat(r));var i=n.replace(S.CONV_GROUP,""),s=void 0;return Dt(i)&&(i=qt(s=i)),this.request({protocolName:Io,requestData:{groupID:i,topicID:s,messageReadSeq:r}}).then((function(){a.setNetworkType(t.getNetworkType()).end(),Ge.l("".concat(o," ok."));var e=t.getModule(Yn);e.updateIsReadAfterReadReport({conversationID:n,lastMessageSeq:r});var c=!0;if(!pt(s)){c=!1;var l=t.getModule(Hn).getLocalTopic(i,s);l&&l.updateSelfInfo({readedSequence:r})}return e.updateUnreadCount(n,c),di()})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];a.setError(e,r,o).end()})),Ge.l("".concat(o," failed. error:"),e),vi(e)}))}},{key:"_computeLastSequence",value:function(e){var t=e.groupID,n=e.topicID,r=void 0===n?void 0:n,o=e.sequence;return o>0?Promise.resolve(o):pt(r)||this.hasLocalGroup(t)?pt(r)?this.getGroupLastSequence(t):this.getTopicLastSequence({groupID:t,topicID:r}):Promise.resolve(0)}},{key:"getGroupLastSequence",value:function(e){var t=this,n="".concat(this._n,".").concat("getGroupLastSequence"),r=new Ka("getGroupLastSequence"),o=0,a="";if(this.hasLocalGroup(e)){var i=this.getLocalGroupProfile(e),s=i.lastMessage;if(s.lastSequence>0&&!1===s.onlineOnlyFlag)return o=s.lastSequence,a="got lastSequence:".concat(o," from local group profile[lastMessage.lastSequence]. groupID:").concat(e),Ge.l("".concat(n," ").concat(a)),r.setNetworkType(this.getNetworkType()).setMessage("".concat(a)).end(),Promise.resolve(o);if(i.nextMessageSeq>1)return o=i.nextMessageSeq-1,a="got lastSequence:".concat(o," from local group profile[nextMessageSeq]. groupID:").concat(e),Ge.l("".concat(n," ").concat(a)),r.setNetworkType(this.getNetworkType()).setMessage("".concat(a)).end(),Promise.resolve(o)}var c="GROUP".concat(e),l=this.getModule(Yn).getLocalConversation(c);if(l&&l.lastMessage.lastSequence&&!1===l.lastMessage.onlineOnlyFlag)return o=l.lastMessage.lastSequence,a="got lastSequence:".concat(o," from local conversation profile[lastMessage.lastSequence]. groupID:").concat(e),Ge.l("".concat(n," ").concat(a)),r.setNetworkType(this.getNetworkType()).setMessage("".concat(a)).end(),Promise.resolve(o);var u={groupIDList:[e],responseFilter:{groupBaseInfoFilter:["NextMsgSeq"]}};return this.getGroupProfileAdvance(u).then((function(i){var s=i.data.successGroupList;return en(s)?Ge.l("".concat(n," successGroupList is empty. groupID:").concat(e)):(o=s[0].nextMessageSeq-1,a="got lastSequence:".concat(o," from getGroupProfileAdvance. groupID:").concat(e),Ge.l("".concat(n," ").concat(a))),r.setNetworkType(t.getNetworkType()).setMessage("".concat(a)).end(),o})).catch((function(o){return t.probeNetwork().then((function(t){var n=_(t,2),a=n[0],i=n[1];r.setError(o,a,i).setMessage("get lastSequence failed from getGroupProfileAdvance. groupID:".concat(e)).end()})),Ge.w("".concat(n," failed. error:"),o),vi(o)}))}},{key:"getTopicLastSequence",value:function(e){var t=this,n=e.groupID,r=e.topicID,o="".concat(this._n,".").concat("getTopicLastSequence"),a=new Ka("getTopicLastSequence"),i=0,s="",c=this.getModule(Hn);return c.hasLocalTopic(n,r)?(i=c.getLocalTopic(n,r).nextMessageSeq-1,s="get lastSequence:".concat(i," from local topic info[nextMessageSeq]. topicID:").concat(r),Ge.l("".concat(o," ").concat(s)),a.setNetworkType(this.getNetworkType()).setMessage("".concat(s)).end(),Promise.resolve(i)):c.getTopicList({groupID:n,topicIDList:[r]}).then((function(e){var n=e.data.successTopicList;return en(n)?Ge.l("".concat(o," successTopicList is empty. topicID:").concat(r)):(i=n[0].nextMessageSeq-1,s="get lastSequence:".concat(i," from getTopicList. topicID:").concat(r),Ge.l("".concat(o," ").concat(s))),a.setNetworkType(t.getNetworkType()).setMessage("".concat(s)).end(),i})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),o=n[0],i=n[1];a.setError(e,o,i).setMessage("get lastSequence failed from getTopicList. topicID:".concat(r)).end()})),Ge.w("".concat(o," failed. error:"),e),vi(e)}))}},{key:"isMessageFromOrToAVChatroom",value:function(e){return!!this._AVChatRoomHandler&&this._AVChatRoomHandler.checkJoinedAVChatRoomByID(e)}},{key:"hasJoinedAVChatRoom",value:function(){return this._AVChatRoomHandler?this._AVChatRoomHandler.hasJoinedAVChatRoom():0}},{key:"getJoinedAVChatRoom",value:function(){return this._AVChatRoomHandler?this._AVChatRoomHandler.getJoinedAVChatRoom():[]}},{key:"isOnlineMessage",value:function(e,t){return!(!this._canIUseOnlineOnlyFlag(e)||!t||!0!==t.onlineUserOnly)}},{key:"_canIUseOnlineOnlyFlag",value:function(e){var t=this.getJoinedAVChatRoom();return!t||!t.includes(e.to)||e.conversationType!==S.CONV_GROUP}},{key:"_onAVChatRoomHistoryMessage",value:function(e){if(!en(e)){Ge.l("".concat(this._n,"._onAVChatRoomHistoryMessage count:").concat(e.length));var t=[];e.forEach((function(e){t.push(n(n({},e),{},{isHistoryMessage:1}))})),this.onAVChatRoomMessage(t)}}},{key:"onAVChatRoomMessage",value:function(e){this._AVChatRoomHandler&&this._AVChatRoomHandler.onMessage(e)}},{key:"onAVChatRoomMemberBanned",value:function(e){this._AVChatRoomHandler&&this._AVChatRoomHandler.onAVChatRoomMemberBanned(e)}},{key:"getGroupSimplifiedInfo",value:function(e){var t=this,n=new Ka("getGroupSimplifiedInfo"),r={groupIDList:[e],responseFilter:{groupBaseInfoFilter:["Type","Name"]}};return this.getGroupProfileAdvance(r).then((function(r){var o=r.data.successGroupList;return n.setNetworkType(t.getNetworkType()).setMessage("groupID:".concat(e," type:").concat(o[0].type)).end(),o[0]})).catch((function(r){t.probeNetwork().then((function(t){var o=_(t,2),a=o[0],i=o[1];n.setError(r,a,i).setMessage("groupID:".concat(e)).end()}))}))}},{key:"setUnjoinedAVChatRoom",value:function(e){this._unjoinedAVChatRoomList.set(e,1)}},{key:"deleteUnjoinedAVChatRoom",value:function(e){this._unjoinedAVChatRoomList.has(e)&&this._unjoinedAVChatRoomList.delete(e)}},{key:"isUnjoinedAVChatRoom",value:function(e){return this._unjoinedAVChatRoomList.has(e)}},{key:"isGroupAttributesUpdatedNotice",value:function(e){return this._groupAttributesHandler.isGroupAttributesUpdatedNotice(e)}},{key:"updateLocalMainSequenceOnReconnected",value:function(){this._groupAttributesHandler.updateLocalMainSequenceOnReconnected()}},{key:"initGroupAttributes",value:function(e){return this._groupAttributesHandler.initGroupAttributes(e)}},{key:"setGroupAttributes",value:function(e){return this._groupAttributesHandler.setGroupAttributes(e)}},{key:"deleteGroupAttributes",value:function(e){return this._groupAttributesHandler.deleteGroupAttributes(e)}},{key:"getGroupAttributes",value:function(e){return this._groupAttributesHandler.getGroupAttributes(e)}},{key:"isMessageFromTopic",value:function(e,t){return 2===e&&!en(t)}},{key:"isMessageFromCommunityOfTopic",value:function(e,t){return 2===e&&en(t)}},{key:"getMessageExtensions",value:function(e,t){return Ge.l("".concat(this._n,".getMessageExtensions startSequence:").concat(t)),this.request({protocolName:qo,requestData:{groupID:e.to,messageSequence:e.sequence,startSequence:t}})}},{key:"modifyMessageExtensions",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Ge.l("".concat(this._n,".modifyMessageExtensions operateType:").concat(n)),this.request({protocolName:Yo,requestData:{groupID:e.to,messageSequence:e.sequence,extensionList:t,operateType:n}})}},{key:"getGroupNotify",value:function(e){var t=this;if(this.hasLocalGroup(e)){var r=this.getLocalGroupProfile(e),o=r.type,a=r.isSupportTopic;if(!Et(o)&&!a){var i="".concat(this._n,".getGroupNotify"),s=this._getGroupLastRevokedTime(e),c=1e3*Re();Ge.l("".concat(i," groupID:").concat(e," type:").concat(o," beginTime:").concat(s," endTime:").concat(c)),this.request({protocolName:Wo,requestData:{type:jt({type:o,groupID:e})?S.GRP_COMMUNITY:void 0,groupID:e,beginTime:s,endTime:c}}).then((function(r){var o=r.data,a=o.nextRevokedTime,s=o.notifyList;Ge.l("".concat(i," ok. groupID:").concat(e," nextRevokedTime:").concat(a));var c={dataList:[{elements:{revokedInfos:[]}}]};dt(s)&&s.forEach((function(t){c.dataList[0].elements.revokedInfos.push({groupID:e,sequence:t.sequence,random:t.random,revokerInfo:n({},t.revokerInfo)})})),t.onGroupMessageRevoked(c),0!==a?(t._setGroupLastRevokedTime(e,a),t.getGroupNotify(e)):t._setGroupLastRevokedTime(e,1e3*Re())})).catch((function(e){Ge.e("".concat(i," failed. error:"),e)}))}}}},{key:"_getGroupLastRevokedTime",value:function(e){return this.hasLocalGroup(e)?this.getLocalGroupProfile(e)._lastRevokedTime:0}},{key:"_setGroupLastRevokedTime",value:function(e,t){this.hasLocalGroup(e)&&(this.getLocalGroupProfile(e)._lastRevokedTime=t)}},{key:"isGroupCountersNotice",value:function(e){return this._groupCountersHandler.isGroupCountersNotice(e)}},{key:"setGroupCounters",value:function(e){return this._groupCountersHandler.setGroupCounters(e)}},{key:"increaseGroupCounter",value:function(e){return this._groupCountersHandler.increaseGroupCounter(e)}},{key:"decreaseGroupCounter",value:function(e){return this._groupCountersHandler.decreaseGroupCounter(e)}},{key:"getGroupCounters",value:function(e){return this._groupCountersHandler.getGroupCounters(e)}},{key:"restartPolling",value:function(){this._AVChatRoomHandler&&this._AVChatRoomHandler.restartPolling()}},{key:"_canIUseJoinOption",value:function(e){return function(e){return e===S.GRP_PUBLIC}(e)||jt({type:e})}},{key:"reset",value:function(){this.groupMap.clear(),this._unjoinedAVChatRoomList.clear(),this._receiptDetailCompleteMap.clear(),this._commonGroupHandler.reset(),this._groupSystemNoticeHandler.reset(),this._groupTipsHandler.reset(),this._groupAttributesHandler.reset(),this._groupCountersHandler.reset(),this._AVChatRoomHandler&&this._AVChatRoomHandler.reset()}}]),r}(fr),as=function(){function e(t){o(this,e),this.userID="",this.avatar="",this.nick="",this.role="",this.joinTime="",this.lastSendMsgTime="",this.nameCard="",this.muteUntil=0,this.memberCustomField=[],this._initMember(t)}return i(e,[{key:"_initMember",value:function(e){this.updateMember(e)}},{key:"updateMember",value:function(e){var t=[null,void 0,"",0,NaN];e.memberCustomField&&Tt(this.memberCustomField,e.memberCustomField),_t(this,e,["memberCustomField","marks"],t)}},{key:"updateRole",value:function(e){["Owner","Admin","Member"].indexOf(e)<0||(this.role=e)}},{key:"updateMuteUntil",value:function(e){pt(e)||(this.muteUntil=Math.floor((Date.now()+1e3*e)/1e3))}},{key:"updateNameCard",value:function(e){pt(e)||(this.nameCard=e)}},{key:"updateMemberCustomField",value:function(e){e&&Tt(this.memberCustomField,e)}}]),e}(),is=function(e){c(r,e);var t=g(r);function r(e){var n;return o(this,r),(n=t.call(this,e))._n="GroupMemberModule",n.groupMemberListMap=new Map,n.getInnerEmitterInstance().on(Oi,n._onProfileUpdated,m(n)),n}return i(r,[{key:"_onProfileUpdated",value:function(e){for(var t=this,n=e.data,r=function(e){var r=n[e];t.groupMemberListMap.forEach((function(e){e.has(r.userID)&&e.get(r.userID).updateMember({nick:r.nick,avatar:r.avatar})}))},o=0;o<n.length;o++)r(o)}},{key:"deleteGroupMemberList",value:function(e){this.groupMemberListMap.delete(e)}},{key:"getGroupMemberList",value:function(e){var t=this,n=e.groupID,r=e.offset,o=void 0===r?0:r,a=e.count,i=void 0===a?15:a,s=e.filter,c=void 0===s?void 0:s,l="".concat(this._n,".").concat("getGroupMemberList"),u=this.getModule(Fn),d=u.hasLocalGroup(n);if(Ge.l("".concat(l," groupID:").concat(n," offset:").concat(o," count:").concat(i," hasLocalGroup:").concat(d)),!d)return mi({memberList:[],offset:0});if(u.getLocalGroupProfile(n).type===S.GRP_AVCHATROOM){if(this.canIUse(z.AVCHATROOM_MBR_LIST))return this._getAVChatRoomMemberList({groupID:n,offset:o,filter:c});this.outputWarning("LiveOnlineMember")}var p=new Ka("getGroupMemberList"),f=0,h={groupID:n,limit:i>100?100:i};jt({groupID:n})?h.next="".concat(o):(h.offset=o,f=o+i);var m=[];return this.request({protocolName:Jo,requestData:h}).then((function(e){var r=e.data,o=r.members,a=r.memberNum,i=r.next,s=void 0===i?void 0:i;if(pt(s)||(f=en(s)?0:s),!dt(o)||0===o.length)return f=0,Promise.resolve([]);var c=t.getModule(Fn);return c.hasLocalGroup(n)&&(c.getLocalGroupProfile(n).memberNum=a),m=t._updateLocalGroupMemberMap(n,o),t.getModule(Vn).getUserProfile({userIDList:o.map((function(e){return e.userID})),tagList:[He.NICK,He.AVATAR]})})).then((function(e){var r=e.data;if(!dt(r)||0===r.length)return mi({memberList:[],offset:f});var a=r.map((function(e){return{userID:e.userID,nick:e.nick,avatar:e.avatar}}));return t._updateLocalGroupMemberMap(n,a),m.length<i&&(f=0),p.setNetworkType(t.getNetworkType()).setMessage("groupID:".concat(n," offset:").concat(o," count:").concat(i)).end(),Ge.l("".concat(l," ok.")),di({memberList:m,offset:f})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];p.setError(e,r,o).end()})),Ge.e("".concat(l," failed. error:"),e),vi(e)}))}},{key:"_getAVChatRoomMemberList",value:function(e){var t=this,n=e.groupID,r=e.offset,o=e.filter,a="".concat(this._n,".").concat("_getAVChatRoomMemberList"),i=new Ka("_getAVChatRoomMemberList");return i.setMessage("groupID:".concat(n," offset:").concat(r," filter:").concat(o)),this.request({protocolName:Qo,requestData:{groupID:n,offset:r,filter:o}}).then((function(e){var r=e.data,o=r.memberList,s=void 0===o?[]:o,c=r.offset,l=void 0===c?0:c;i.setNetworkType(t.getNetworkType()).end(),Ge.l("".concat(a," ok. member count:").concat(s.length,", next request timestamp:").concat(l));var u=t._updateLocalGroupMemberMap(n,s);return di({memberList:u,offset:l})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setError(e,r,o).end()})),Ge.e("".concat(a," failed. error:"),e),vi(e)}))}},{key:"getGroupMemberProfile",value:function(e){var t=this,r="".concat(this._n,".").concat("getGroupMemberProfile"),o=new Ka("getGroupMemberProfile");o.setMessage(e.userIDList.length>5?"userIDList.length:".concat(e.userIDList.length):"userIDList:".concat(e.userIDList)),Ge.l("".concat(r," groupID:").concat(e.groupID," userIDList:").concat(e.userIDList.join(","))),e.userIDList.length>50&&(e.userIDList=e.userIDList.slice(0,50));var a=e.groupID,i=e.userIDList;return this._getGroupMemberProfileAdvance(n(n({},e),{},{userIDList:i})).then((function(e){var n=e.data.members;return dt(n)&&0!==n.length?(t._updateLocalGroupMemberMap(a,n),t.getModule(Vn).getUserProfile({userIDList:n.map((function(e){return e.userID})),tagList:[He.NICK,He.AVATAR]})):mi([])})).then((function(e){var n=e.data.map((function(e){return{userID:e.userID,nick:e.nick,avatar:e.avatar}}));t._updateLocalGroupMemberMap(a,n);var r=i.filter((function(e){return t.hasLocalGroupMember(a,e)})).map((function(e){return t.getLocalGroupMemberInfo(a,e)}));return o.setNetworkType(t.getNetworkType()).end(),di({memberList:r})}))}},{key:"addGroupMember",value:function(e){var t=this,n="".concat(this._n,".").concat("addGroupMember"),r=e.groupID,o=this.getModule(Fn).getLocalGroupProfile(r),a=o.type,i=new Ka("addGroupMember");if(i.setMessage("groupID:".concat(r," groupType:").concat(a)),Et(a)){var s=new pi({code:Aa.CANNOT_ADD_MEMBER_IN_AVCHATROOM});return i.setError(s,!0,this.getNetworkType()).end(),vi(s)}return e.userIDList=e.userIDList.map((function(e){return{userID:e}})),Ge.l("".concat(n," groupID:").concat(r)),this.request({protocolName:Zo,requestData:e}).then((function(r){var a=r.data.members;Ge.l("".concat(n," ok"));var s=a.filter((function(e){return 1===e.result})).map((function(e){return e.userID})),c=a.filter((function(e){return 0===e.result})).map((function(e){return e.userID})),l=a.filter((function(e){return 2===e.result})).map((function(e){return e.userID})),u=a.filter((function(e){return 4===e.result})).map((function(e){return e.userID})),d="groupID:".concat(e.groupID,", ")+"successUserIDList:".concat(s,", ")+"failureUserIDList:".concat(c,", ")+"existedUserIDList:".concat(l,", ")+"overLimitUserIDList:".concat(u);return i.setNetworkType(t.getNetworkType()).setMoreMessage(d).end(),0===s.length?di({successUserIDList:s,failureUserIDList:c,existedUserIDList:l,overLimitUserIDList:u}):(o.memberCount+=s.length,t._updateConversationGroupProfile(o),di({successUserIDList:s,failureUserIDList:c,existedUserIDList:l,overLimitUserIDList:u,group:o}))})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setError(e,r,o).end()})),Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"deleteGroupMember",value:function(e){var t=this,n="".concat(this._n,".").concat("deleteGroupMember"),r=e.groupID,o=e.userIDList,a=this.getModule(Fn).getLocalGroupProfile(r);if(pt(a))return vi({code:Aa.CANNOT_FIND_GROUP});if(Et(a.type))return this.canIUse(z.AVCHATROOM_BAN_MBR)?this._banAVChatRoomMember(e):vi({code:Aa.CANNOT_USE_COMMERCIAL_ABILITY});var i=new Ka("deleteGroupMember"),s="groupID:".concat(r," ").concat(o.length>5?"userIDList.length:".concat(o.length):"userIDList:".concat(o));return i.setMessage(s),Ge.l("".concat(n," groupID:").concat(r," userIDList:"),o),this.request({protocolName:ea,requestData:e}).then((function(){return i.setNetworkType(t.getNetworkType()).end(),Ge.l("".concat(n," ok")),a.memberCount-=1,t._updateConversationGroupProfile(a),t.deleteLocalGroupMembers(r,o),di({group:a,userIDList:o})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setError(e,r,o).end()})),Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"_updateConversationGroupProfile",value:function(e){this.getModule(Yn).updateConversationGroupProfile([e])}},{key:"_banAVChatRoomMember",value:function(e){var t=this,n="".concat(this._n,".").concat("deleteGroupMember"),r=e.groupID,o=e.userIDList,a="groupID:".concat(r," ").concat(o.length>5?"userIDList.length:".concat(o.length):"userIDList:".concat(o)),i=new Ka("deleteGroupMember");i.setMessage(a),Ge.l("".concat(n," groupID:").concat(r," userIDList:"),o);var s=this.getModule(Fn).getLocalGroupProfile(r);return pt(e.duration)||0===e.duration?vi({code:Aa.BAN_DURATION_INVALID}):this.request({protocolName:ta,requestData:e}).then((function(){return i.setNetworkType(t.getNetworkType()).end(),Ge.l("".concat(n," ok")),t.deleteLocalGroupMembers(r,o),di({group:s,userIDList:o})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setError(e,r,o).end()})),Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"setGroupMemberMuteTime",value:function(e){var t=this,n=e.groupID,r=e.userID,o=e.muteTime,a="".concat(this._n,".").concat("setGroupMemberMuteTime");if(r===this.getMyUserID())return vi(new pi({code:Aa.CANNOT_MUTE_SELF}));Ge.l("".concat(a," groupID:").concat(n," userID:").concat(r));var i=new Ka("setGroupMemberMuteTime");return i.setMessage("groupID:".concat(n," userID:").concat(r," muteTime:").concat(o)),this.modifyGroupMemberInfo({groupID:n,userID:r,muteTime:o}).then((function(e){i.setNetworkType(t.getNetworkType()).end(),Ge.l("".concat(a," ok"));var r=t.getModule(Fn);return di({group:r.getLocalGroupProfile(n),member:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setError(e,r,o).end()})),Ge.e("".concat(a," failed. error:"),e),vi(e)}))}},{key:"setGroupMemberRole",value:function(e){var t=this,n="".concat(this._n,".").concat("setGroupMemberRole"),r=e.groupID,o=e.userID,a=e.role,i=this.getModule(Fn).getLocalGroupProfile(r);if(i.selfInfo.role!==S.GRP_MBR_ROLE_OWNER)return vi({code:Aa.NOT_OWNER});if([S.GRP_WORK,S.GRP_AVCHATROOM].includes(i.type))return vi({code:Aa.CANNOT_SET_MEMBER_ROLE_IN_WORK_AND_AVCHATROOM});var s=[S.GRP_MBR_ROLE_ADMIN,S.GRP_MBR_ROLE_MEMBER];if(jt({groupID:r})&&s.push(S.GRP_MBR_ROLE_CUSTOM),s.indexOf(a)<0)return vi({code:Aa.INVALID_MEMBER_ROLE});if(o===this.getMyUserID())return vi({code:Aa.CANNOT_SET_SELF_MEMBER_ROLE});var c=new Ka("setGroupMemberRole");return c.setMessage("groupID:".concat(r," userID:").concat(o," role:").concat(a)),Ge.l("".concat(n," groupID:").concat(r," userID:").concat(o)),this.modifyGroupMemberInfo({groupID:r,userID:o,role:a}).then((function(e){return c.setNetworkType(t.getNetworkType()).end(),Ge.l("".concat(n," ok")),di({group:i,member:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];c.setError(e,r,o).end()})),Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"_filterProfanity",value:function(e,t){var n=this.getModule(lr);if(!n)return!0;var r=n.filterText(t[e],Q),o=r.isAllowedToSend,a=r.modifiedText;return!0===o&&(t[e]=a,!0)}},{key:"setGroupMemberNameCard",value:function(e){var t=this,n="".concat(this._n,".").concat("setGroupMemberNameCard");if(e.nameCard&&!1===this._filterProfanity("nameCard",e))return vi({code:Aa.PROFANITY_FOUND});var r=e.groupID,o=e.userID,a=void 0===o?this.getMyUserID():o,i=e.nameCard;Ge.l("".concat(n," groupID:").concat(r," userID:").concat(a));var s=new Ka("setGroupMemberNameCard");return s.setMessage("groupID:".concat(r," userID:").concat(a," nameCard:").concat(i)),this.modifyGroupMemberInfo({groupID:r,userID:a,nameCard:i}).then((function(e){Ge.l("".concat(n," ok")),s.setNetworkType(t.getNetworkType()).end();var o=t.getModule(Fn).getLocalGroupProfile(r);return a===t.getMyUserID()&&o&&o.setSelfNameCard(i),di({group:o,member:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];s.setError(e,r,o).end()})),Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"setGroupMemberCustomField",value:function(e){var t=this,n="".concat(this._n,".").concat("setGroupMemberCustomField"),r=e.groupID,o=e.userID,a=void 0===o?this.getMyUserID():o,i=e.memberCustomField;Ge.l("".concat(n," groupID:").concat(r," userID:").concat(a));var s=new Ka("setGroupMemberCustomField");return s.setMessage("groupID:".concat(r," userID:").concat(a," memberCustomField:").concat(JSON.stringify(i))),this.modifyGroupMemberInfo({groupID:r,userID:a,memberCustomField:i}).then((function(e){s.setNetworkType(t.getNetworkType()).end(),Ge.l("".concat(n," ok"));var o=t.getModule(Fn).getLocalGroupProfile(r);return di({group:o,member:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];s.setError(e,r,o).end()})),Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"modifyGroupMemberInfo",value:function(e){var t=this,r=e.groupID,o=e.userID,a=void 0;return Dt(r)&&(r=qt(a=r)),this.request({protocolName:na,requestData:n(n({},e),{},{groupID:r,topicID:a})}).then((function(){if(t.hasLocalGroupMember(r,o)){var n=t.getLocalGroupMemberInfo(r,o);return pt(e.muteTime)||n.updateMuteUntil(e.muteTime),pt(e.role)||n.updateRole(e.role),pt(e.nameCard)||n.updateNameCard(e.nameCard),pt(e.memberCustomField)||n.updateMemberCustomField(e.memberCustomField),n}return t.getGroupMemberProfile({groupID:r,userIDList:[o]}).then((function(e){return _(e.data.memberList,1)[0]}))}))}},{key:"markGroupMemberList",value:function(e){var t=this,n="".concat(this._n,".").concat("markGroupMemberList"),r=e.groupID,o=e.markType,a=e.enableMark,i=e.userIDList,s=void 0===i?[]:i,c="groupID:".concat(r," markType:").concat(o," enableMark:").concat(a," userIDList count: ").concat(s.length);Ge.l("".concat(n," ").concat(c));var l=2,u=[];!0===a&&(l=1);var d=y(s);s.length>500&&(d=s.slice(0,500),Ge.w("".concat(n," ").concat(Qt(500)))),d.forEach((function(e){u.push({userID:e,markType:[o]})})),d=null;var p=new Ka("markGroupMemberList");return p.setMessage("".concat(c)),this.request({protocolName:ra,requestData:{groupID:r,operationType:l,memberList:u}}).then((function(e){var r=e.data.memberList,o=void 0===r?[]:r,a=[],i=[];o.length===s.length?a.push.apply(a,y(s)):(o.forEach((function(e){a.push(e.userID)})),s.forEach((function(e){a.includes(e)||i.push(e)})));var c="success count:".concat(a.length," fail count:").concat(i.length);return p.setNetworkType(t.getNetworkType()).setMessage(c).end(),Ge.l("".concat(n," ok. ").concat(c)),di({successUserIDList:a,failureUserIDList:i})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];p.setError(e,r,o).end()})),Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"_getGroupMemberProfileAdvance",value:function(e){return this.request({protocolName:Xo,requestData:n(n({},e),{},{memberInfoFilter:e.memberInfoFilter?e.memberInfoFilter:["Role","JoinTime","NameCard","ShutUpUntil"]})})}},{key:"_updateLocalGroupMemberMap",value:function(e,t){var n=this;return dt(t)&&0!==t.length?t.map((function(t){return n.hasLocalGroupMember(e,t.userID)?n.getLocalGroupMemberInfo(e,t.userID).updateMember(t):n.setLocalGroupMember(e,new as(t)),n.getLocalGroupMemberInfo(e,t.userID)})):[]}},{key:"deleteLocalGroupMembers",value:function(e,t){var n=this.groupMemberListMap.get(e);n&&t.forEach((function(e){n.delete(e)}))}},{key:"getLocalGroupMemberInfo",value:function(e,t){return this.groupMemberListMap.has(e)?this.groupMemberListMap.get(e).get(t):null}},{key:"setLocalGroupMember",value:function(e,t){if(this.groupMemberListMap.has(e))this.groupMemberListMap.get(e).set(t.userID,t);else{var n=(new Map).set(t.userID,t);this.groupMemberListMap.set(e,n)}}},{key:"getLocalGroupMemberList",value:function(e){return this.groupMemberListMap.get(e)}},{key:"hasLocalGroupMember",value:function(e,t){return this.groupMemberListMap.has(e)&&this.groupMemberListMap.get(e).has(t)}},{key:"hasLocalGroupMemberMap",value:function(e){return this.groupMemberListMap.has(e)}},{key:"reset",value:function(){this.groupMemberListMap.clear()}}]),r}(fr),ss=["topicID","topicName","avatar","introduction","notification","unreadCount","muteAllMembers","customData","groupAtInfoList","nextMessageSeq","selfInfo"],cs=function(e,t){return en(e)?{lastTime:0,lastSequence:0,fromAccount:"",payload:null,type:"",messageForShow:"",nick:"",version:0,cloudCustomData:"",isRevoked:!1,revoker:null}:{lastTime:e.time||0,lastSequence:e.sequence||0,fromAccount:e.from||"",payload:e.payload||null,type:e.type||"",messageForShow:Wt(e.type,e.payload,t),nick:e.nick||"",version:e.version||0,cloudCustomData:e.cloudCustomData||"",isRevoked:e.isRevoked||!1,revoker:e.revoker||null}},ls=function(){function e(t,n){o(this,e),this.topicID="",this.topicName="",this.avatar="",this.introduction="",this.notification="",this.unreadCount=0,this.muteAllMembers=!1,this.customData="",this.groupAtInfoList=[],this.nextMessageSeq=0,this.lastMessage=cs(t.lastMessage,n),this.selfInfo={muteTime:0,readedSequence:0,messageRemindType:"",excludedUnreadSequenceList:void 0},this._initTopic(t)}return i(e,[{key:"_initTopic",value:function(e){for(var t in e)ss.indexOf(t)<0||("selfInfo"===t?this.updateSelfInfo(e[t]):this[t]="muteAllMembers"===t?1===e[t]:e[t])}},{key:"updateUnreadCount",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.unreadCount=e}},{key:"updateNextMessageSeq",value:function(e){this.nextMessageSeq=e}},{key:"updateLastMessage",value:function(e){this.lastMessage=cs(e)}},{key:"updateGroupAtInfoList",value:function(e){this.groupAtInfoList=JSON.parse(JSON.stringify(e))}},{key:"updateTopic",value:function(e){pt(e.selfInfo)||this.updateSelfInfo(e.selfInfo),pt(e.muteAllMembers)||(this.muteAllMembers=1===e.muteAllMembers),_t(this,e,["groupID","lastMessageTime","selfInfo","muteAllMembers","lastMsg"])}},{key:"updateSelfInfo",value:function(e){return 0!==_t(this.selfInfo,e,[],[""])}},{key:"reduceUnreadCount",value:function(){return this.unreadCount>=1&&(this.unreadCount-=1,!0)}},{key:"isLastMessageRevoked",value:function(e){return e.sequence===this.lastMessage.lastSequence}},{key:"setLastMessageRevoked",value:function(e){this.lastMessage.isRevoked=e}},{key:"setLastMessageRevoker",value:function(e){this.lastMessage.revoker=e}}]),e}(),us=function(e){c(r,e);var t=g(r);function r(e){var n;return o(this,r),(n=t.call(this,e))._n="TopicModule",n._topicMap=new Map,n._getTopicTimeMap=new Map,n.TOPIC_CACHE_TIME=300,n.TOPIC_LAST_ACTIVE_TIME=3600,n.getInnerEmitterInstance().on(bi,n._onCloudConfigUpdated,m(n)),n}return i(r,[{key:"_onCloudConfigUpdated",value:function(){var e=this.getCloudConfig("topic_cache_time"),t=this.getCloudConfig("topic_last_active_time");pt(e)||(this.TOPIC_CACHE_TIME=Number(e)),pt(t)||(this.TOPIC_LAST_ACTIVE_TIME=Number(t))}},{key:"onTopicCreated",value:function(e){var t=e.groupID;this.resetGetTopicTime(t),this.emitOuterEvent(I.TOPIC_CREATED,e)}},{key:"onTopicDeleted",value:function(e){var t=this,n=e.groupID,r=e.topicIDList;(void 0===r?[]:r).forEach((function(e){t._deleteLocalTopic(n,e)})),this.emitOuterEvent(I.TOPIC_DELETED,e)}},{key:"onTopicMessageRemindTypeUpdated",value:function(e){var t=e.groupID,n=e.topicID,r=e.messageRemindType,o=this.getLocalTopic(t,n);if(o){var a=o.updateSelfInfo({messageRemindType:r});a&&this.emitOuterEvent(I.TOPIC_UPDATED,{groupID:t,topic:o}),Ge.d("".concat(this._n,".onTopicMessageRemindTypeUpdated topicID:").concat(n)+" messageRemindType:".concat(r," isTopicUpdated:").concat(a))}}},{key:"onTopicProfileUpdated",value:function(e){var t=e.groupID,n=e.topicID,r=this.getLocalTopic(t,n);r&&(r.updateTopic(e),this.emitOuterEvent(I.TOPIC_UPDATED,{groupID:t,topic:r}))}},{key:"onConversationProxy",value:function(e){var t=e.topicID,n=e.unreadCount,r=e.groupAtInfoList,o=qt(t),a=this.getLocalTopic(o,t),i=!1;a&&(pt(n)||a.unreadCount===n||(a.updateUnreadCount(n),i=!0),pt(r)||(a.updateGroupAtInfoList(r),i=!0)),i&&this.emitOuterEvent(I.TOPIC_UPDATED,{groupID:o,topic:a})}},{key:"onMessageSent",value:function(e){var t=e.groupID,n=e.topicID,r=e.lastMessage,o=this.getLocalTopic(t,n);o&&(o.nextMessageSeq+=1,o.updateLastMessage(r),this.emitOuterEvent(I.TOPIC_UPDATED,{groupID:t,topic:o}))}},{key:"onMessageModified",value:function(e){var t=e.to,n=e.time,r=e.sequence,o=e.elements,a=e.cloudCustomData,i=e.messageVersion,s=qt(t),c=this.getLocalTopic(s,t);if(c){var l=c.lastMessage;Ge.d("".concat(this._n,".onMessageModified topicID:").concat(t," lastMessage:"),JSON.stringify(l),"options:",JSON.stringify(e)),l&&(null===l.payload||l.lastTime===n&&l.lastSequence===r&&l.version!==i)&&(l.type=o[0].type,l.payload=o[0].content,l.messageForShow=Wt(l.type,l.payload,this.isIntl()),l.cloudCustomData=a,l.version=i,l.lastSequence=r,l.lastTime=n,this.emitOuterEvent(I.TOPIC_UPDATED,{groupID:s,topic:c}))}}},{key:"onMessageRevoked",value:function(e){var t=this;if(0!==e.length){var n=null,r=null,o=!1;e.forEach((function(e){var a=e.to;r=qt(a),(n=t.getLocalTopic(r,a))&&(n.reduceUnreadCount()&&(o=!0),n.isLastMessageRevoked(e)&&(n.setLastMessageRevoked(!0),n.setLastMessageRevoker(e.revoker),o=!0))})),o&&this.emitOuterEvent(I.TOPIC_UPDATED,{groupID:r,topic:n})}}},{key:"isLastMessageRevoked",value:function(e){var t=e.topicID,n=e.sequence,r=qt(t),o=this.getLocalTopic(r,t),a=!1;return o&&(a=o.isLastMessageRevoked({sequence:n})),a}},{key:"getJoinedCommunityList",value:function(){return this.getModule(Fn).getGroupList({isGroupWithTopicOnly:!0}).then((function(e){var t=e.data.groupList;return di({groupList:void 0===t?[]:t})})).catch((function(e){return vi(e)}))}},{key:"createTopicInCommunity",value:function(e){var t=this,r="".concat(this._n,".").concat("createTopicInCommunity"),o=e.topicID;if(!pt(o)&&!Dt(o))return vi({code:Aa.ILLEGAL_TOPIC_ID});if(e.topicName&&!1===this._filterProfanity("topicName",e))return vi({code:Aa.PROFANITY_FOUND});if(e.introduction&&!1===this._filterProfanity("introduction",e))return vi({code:Aa.PROFANITY_FOUND});if(e.notification&&!1===this._filterProfanity("notification",e))return vi({code:Aa.PROFANITY_FOUND});var a=new Ka("createTopicInCommunity");return this.request({protocolName:ba,requestData:n({},e)}).then((function(o){var i=o.data.topicID;return a.setMessage("topicID:".concat(i)).setNetworkType(t.getNetworkType()).end(),Ge.l("".concat(r," ok")),t._updateTopicMap([n(n({},e),{},{topicID:i})]),di({topicID:i})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];a.setError(e,r,o).end()})),Ge.e("".concat(r," failed. error:"),e),vi(e)}))}},{key:"deleteTopicFromCommunity",value:function(e){var t=this,n="".concat(this._n,".").concat("deleteTopicFromCommunity"),r=e.groupID,o=e.topicIDList,a=void 0===o?[]:o,i=new Ka("deleteTopicFromCommunity");return i.setMessage("groupID:".concat(r," topicIDList:").concat(a)),this.request({protocolName:Oa,requestData:{groupID:r,topicIDList:a}}).then((function(e){var n=e.data.resultList,o=[],a=[];(void 0===n?[]:n).forEach((function(e){var t=e.topicID,n=e.errorCode,r=e.errorInfo;0===n?o.push({topicID:t}):a.push({topicID:t,code:n,message:r})}));var s="success count:".concat(o.length,", fail count:").concat(a.length);return i.setMoreMessage("".concat(s)).setNetworkType(t.getNetworkType()).end(),Ge.l("".concat(s)),o.forEach((function(e){t._deleteLocalTopic(r,e.topicID)})),di({successTopicList:o,failureTopicList:a})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setError(e,r,o).end()})),Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"updateTopicProfile",value:function(e){var t=this,r="".concat(this._n,".").concat("updateTopicProfile");if(Ge.l("".concat(r," options:"),e),e.topicName&&!1===this._filterProfanity("topicName",e))return vi({code:Aa.PROFANITY_FOUND});if(e.introduction&&!1===this._filterProfanity("introduction",e))return vi({code:Aa.PROFANITY_FOUND});if(e.notification&&!1===this._filterProfanity("notification",e))return vi({code:Aa.PROFANITY_FOUND});var o=new Ka("updateTopicProfile");return o.setMessage("groupID:".concat(e.groupID," topicID:").concat(e.topicID)),pt(e.muteAllMembers)||(e.muteAllMembers=!0===e.muteAllMembers?"On":"Off"),this.request({protocolName:Ma,requestData:n({},e)}).then((function(){return o.setNetworkType(t.getNetworkType()).end(),Ge.l("".concat(r," ok")),t._updateTopicMap([e]),di({topic:t.getLocalTopic(e.groupID,e.topicID)})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],a=n[1];o.setError(e,r,a).end()})),Ge.e("".concat(r," failed. error:"),e),vi(e)}))}},{key:"getTopicList",value:function(e){var t=this,r="".concat(this._n,".").concat("getTopicList"),o=e.groupID,a=e.topicIDList,i=void 0===a?[]:a,s=0===i.length,c=new Ka("getTopicList");if(c.setMessage("groupID:".concat(o)),this._getTopicTimeMap.has(o)){var l=this._getTopicTimeMap.get(o),u=l.isGetAll,d=l.time;if((u||!u&&!s)&&Date.now()-d<1e3*this.TOPIC_CACHE_TIME){var p=this._getLocalTopicList(o,i);if(s||p.length===i.length)return c.setNetworkType(this.getNetworkType()).setMoreMessage("from cache, topic count:".concat(p.length)).end(),Ge.l("".concat(r," groupID:").concat(o," from cache, topic count:").concat(p.length)),mi({successTopicList:p,failureTopicList:[]})}}return this.request({protocolName:ka,requestData:{groupID:o,topicIDList:i}}).then((function(e){var a=e.data.topicInfoList,i=[],l=[],u=[];(void 0===a?[]:a).forEach((function(e){var t=e.topic,r=e.selfInfo,o=e.errorCode,a=e.errorInfo,s=t.topicID;0===o?(i.push(n(n({},t),{},{selfInfo:r})),l.push(s)):u.push({topicID:s,code:o,message:a})})),t._updateTopicMap(i),t._handleTopicAtInfo(i);var d="success count:".concat(l.length,", fail count:").concat(u.length);c.setNetworkType(t.getNetworkType()).setMoreMessage("".concat(d)).end(),Ge.l("".concat(r," groupID:").concat(o," from remote, ").concat(d));var p=[];return en(l)||(t._getTopicTimeMap.set(o,{time:Date.now(),isGetAll:s}),p=t._getLocalTopicList(o,l)),di({successTopicList:p,failureTopicList:u})})).catch((function(e){return t.probeNetwork(e).then((function(t){var n=_(t,2),r=n[0],o=n[1];c.setError(e,r,o).end()})),Ge.e("".concat(r," failed. error:"),e),vi(e)}))}},{key:"hasLocalTopic",value:function(e,t){return!!this._topicMap.has(e)&&this._topicMap.get(e).has(t)}},{key:"getLocalTopic",value:function(e,t){var n=null;return this._topicMap.has(e)&&(n=this._topicMap.get(e).get(t)),n}},{key:"_getLocalTopicList",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=this._topicMap.get(e),r=[];return n&&(r=y(n.values())),0===t.length?r:r.filter((function(e){return t.includes(e.topicID)}))}},{key:"_deleteLocalTopic",value:function(e,t){this._topicMap.has(e)&&(this._topicMap.get(e).delete(t),Ge.l("".concat(this._n,"._deleteLocalTopic groupID:").concat(e," topicID:").concat(t)))}},{key:"_updateTopicMap",value:function(e){var t=this,n=[];e.forEach((function(e){var r=e.groupID,o=e.topicID,a=null;t._topicMap.has(r)||t._topicMap.set(r,new Map),t._topicMap.get(r).has(o)?(a=t._topicMap.get(r).get(o)).updateTopic(e):(t._getTopicLastMessage(e),a=new ls(e,t.isIntl()),t._topicMap.get(r).set(o,a));var i=t._computeUnreadCount(a);a.updateUnreadCount(i),n.push({conversationID:"".concat(S.CONV_GROUP).concat(o),type:S.CONV_TOPIC,unreadCount:i})})),n.length>0&&this.getModule(Yn).updateTopicConversation(n)}},{key:"resetGetTopicTime",value:function(e){var t=this;pt(e)?y(this._getTopicTimeMap.keys()).forEach((function(e){t._getTopicTimeMap.set(e,0)})):this._getTopicTimeMap.set(e,0)}},{key:"getTopicListOnReconnected",value:function(){var e=this,t=y(this._topicMap.keys()),n=[];t.forEach((function(t){var r=[];e._getLocalTopicList(t).forEach((function(t){var n=t.lastMessage.lastTime,o=void 0===n?0:n;Date.now()-1e3*o<1e3*e.TOPIC_LAST_ACTIVE_TIME&&r.push(t.topicID)})),r.length>0&&n.push({groupID:t,topicIDList:r})})),Ge.l("".concat(this._n,".getTopicListOnReconnected. active community count:").concat(n.length)),this._relayGetTopicList(n)}},{key:"_relayGetTopicList",value:function(e){var t=this;if(0!==e.length){var n=e.shift(),r=n.topicIDList.length>5?"topicIDList.length:".concat(n.topicIDList.length):"topicIDList:".concat(n.topicIDList),o=new Ka("relayGetTopicList");o.setMessage(r),Ge.l("".concat(this._n,"._relayGetTopicList. ").concat(r)),this.getTopicList(n).then((function(){o.setNetworkType(t.getNetworkType()).end(),t._relayGetTopicList(e)})).catch((function(n){t.probeNetwork().then((function(e){var t=_(e,2),r=t[0],a=t[1];o.setError(n,r,a).end()})),t._relayGetTopicList(e)}))}}},{key:"_handleTopicAtInfo",value:function(e){var t=this;0!==e.length&&e.forEach((function(e){var r=e.groupID,o=e.topicID,a=e.groupAtInfoList,i=[];pt(a)||(a.forEach((function(e){i.push(n(n({},e),{},{groupID:r,topicID:o}))})),t.getModule(Yn).onNewGroupAtTips({dataList:i}))}))}},{key:"_getTopicLastMessage",value:function(e){if(!pt(e.lastMsg)){var t={time:e.lastMsg.time,sequence:e.lastMsg.sequence,from:e.lastMsg.from,payload:e.lastMsg.elements[0]?e.lastMsg.elements[0].content:null,type:e.lastMsg.elements[0]?e.lastMsg.elements[0].type:"",nick:e.lastMsg.nick,version:e.lastMsg.messageVersion,cloudCustomData:e.lastMsg.cloudCustomData,isRevoked:2===e.lastMsg.isPlaceMessage,revoker:en(e.lastMsg.revokerInfo)?null:e.lastMsg.revokerInfo.revoker};e.lastMessage=t}}},{key:"deleteTopicListInCommunity",value:function(e){var t=this,n=this._getLocalTopicList(e),r=this.getModule(Yn);n.forEach((function(n){var o=n.topicID;t._deleteLocalTopic(e,o),t._getTopicTimeMap.delete(e),r.deleteLocalConversation("".concat(S.CONV_GROUP).concat(o))}))}},{key:"_computeUnreadCount",value:function(e){var t=e.selfInfo,n=t.excludedUnreadSequenceList,r=t.readedSequence,o=e.nextMessageSeq-e.selfInfo.readedSequence-1;if(dt(n)){var a=0;n.forEach((function(t){t>=r&&t<=e.nextMessageSeq-1&&(a+=1)})),a>=1&&(o-=a)}return o<0?0:o}},{key:"_filterProfanity",value:function(e,t){var n=this.getModule(lr);if(!n)return!0;var r=n.filterText(t[e],J),o=r.isAllowedToSend,a=r.modifiedText;return!0===o&&(t[e]=a,!0)}},{key:"updateLastMessage",value:function(e,t){var n=qt(e),r=this.getLocalTopic(n,e);if(r){var o=t.sequence+1;r.updateNextMessageSeq(o),r.updateLastMessage(t),this.emitOuterEvent(I.TOPIC_UPDATED,{groupID:n,topic:r})}}},{key:"getMessageExtensions",value:function(e,t){Ge.l("".concat(this._n,".getMessageExtensions startSequence:").concat(t));var n=qt(e.to);return this.request({protocolName:qo,requestData:{groupID:n,topicID:e.to,messageSequence:e.sequence,startSequence:t}})}},{key:"modifyMessageExtensions",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;Ge.l("".concat(this._n,".modifyMessageExtensions operateType:").concat(n));var r=qt(e.to);return this.request({protocolName:Yo,requestData:{groupID:r,topicID:e.to,messageSequence:e.sequence,extensionList:t,operateType:n}})}},{key:"reset",value:function(){Ge.l("".concat(this._n,".reset")),this._topicMap.clear(),this._getTopicTimeMap.clear(),this.TOPIC_CACHE_TIME=300,this.TOPIC_LAST_ACTIVE_TIME=3600}}]),r}(fr),ds=function(){function e(t){o(this,e),this._userModule=t,this._n="ProfileHandler",this.TAG="profile",this.accountProfileMap=new Map,this.expirationTime=864e5}return i(e,[{key:"setExpirationTime",value:function(e){this.expirationTime=e}},{key:"getUserProfile",value:function(e){var t=this,n="".concat(this._n,".").concat("getUserProfile"),r=e.userIDList;e.fromAccount=this._userModule.getMyAccount(),r.length>100&&(Ge.w("".concat(n," ").concat(Qt(100))),r.length=100);for(var o,a=[],i=[],s=0,c=r.length;s<c;s++)o=r[s],this._userModule.isMyFriend(o)&&this._contains(o)?i.push(this._getProfileFromMap(o)):a.push(o);if(0===a.length)return mi(i);e.toAccount=a;var l=e.bFromGetMyProfile||!1,u=[];e.toAccount.forEach((function(e){u.push({toAccount:e,standardSequence:0,customSequence:0})})),e.userItem=u;var d=new Ka("getUserProfile");return d.setMessage(r.length>5?"userIDList.length:".concat(r.length):"userIDList:".concat(r)),this._userModule.request({protocolName:Mr,requestData:e}).then((function(e){d.setNetworkType(t._userModule.getNetworkType()).end(),Ge.i("".concat(n," ok"));var r=t._handleResponse(e).concat(i);return di(l?r[0]:r)})).catch((function(e){return t._userModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];d.setError(e,r,o).end()})),Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"getMyProfile",value:function(){var e=this._userModule.getMyAccount(),t="".concat(this._n,".getMyProfile");if(Ge.l("".concat(t," myAccount:").concat(e)),this._fill(),this._contains(e)){var n=this._getProfileFromMap(e);return Ge.d("".concat(t," from cache, myProfile:").concat(JSON.stringify(n))),mi(n)}return this.getUserProfile({fromAccount:e,userIDList:[e],bFromGetMyProfile:!0})}},{key:"_handleResponse",value:function(e){var t=e.data.userProfileItem;if(!dt(t))return[];for(var n=[],r=Date.now(),o=0,a=t.length;o<a;o++){var i=t[o],s=i.to,c=i.profileItem;if("@TLS#NOT_FOUND"!==s&&""!==s){var l=this._update(s,this._getLatestProfileFromResponse(s,c)).latestProfile;n.push(l)}}return Ge.l("".concat(this._n,"._handleResponse cost ").concat(Date.now()-r," ms")),n}},{key:"_getLatestProfileFromResponse",value:function(e,t){var n={userID:e,profileCustomField:[]};if(!en(t))for(var r=0,o=t.length;r<o;r++)if(t[r].tag.indexOf("Tag_Profile_Custom")>-1)n.profileCustomField.push({key:t[r].tag,value:t[r].value});else switch(t[r].tag){case He.NICK:n.nick=t[r].value;break;case He.GENDER:n.gender=t[r].value;break;case He.BIRTHDAY:n.birthday=t[r].value;break;case He.LOCATION:n.location=t[r].value;break;case He.SELFSIGNATURE:n.selfSignature=t[r].value;break;case He.ALLOWTYPE:n.allowType=t[r].value;break;case He.LANGUAGE:n.language=t[r].value;break;case He.AVATAR:n.avatar=t[r].value;break;case He.MESSAGESETTINGS:n.messageSettings=t[r].value;break;case He.ADMINFORBIDTYPE:n.adminForbidType=t[r].value;break;case He.LEVEL:n.level=t[r].value;break;case He.ROLE:n.role=t[r].value;break;default:Ge.w("".concat(this._n,"._getLatestProfileFromResponse unknown tag:"),t[r].tag,t[r].value)}return n}},{key:"updateMyProfile",value:function(e){var t=this,n="".concat(this._n,".").concat("updateMyProfile");if(e.nick&&!1===this._userModule.filterProfanity("nick",e))return vi({code:Aa.PROFANITY_FOUND});if(e.selfSignature&&!1===this._userModule.filterProfanity("selfSignature",e))return vi({code:Aa.PROFANITY_FOUND});var r=new Ka("updateMyProfile");r.setMessage(JSON.stringify(e));var o=(new Ei).validate(e);if(!o.valid)return r.setCode(Aa.UPDATE_PROFILE_INVALID_PARAM).setMoreMessage("info:".concat(o.tips)).setNetworkType(this._userModule.getNetworkType()).end(),Ge.e("".concat(n," info:").concat(o.tips)),vi({code:Aa.UPDATE_PROFILE_INVALID_PARAM});var a=[];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&("profileCustomField"===i?e.profileCustomField.forEach((function(e){a.push({tag:e.key,value:e.value})})):a.push({tag:He[i.toUpperCase()],value:e[i]}));if(0===a.length){var s=new pi({code:Aa.UPDATE_PROFILE_NO_KEY});return r.setError(s,!0,this._userModule.getNetworkType()).end(),Ge.e("".concat(n," failed. error:"),s),vi(s)}var c=this._userModule.getMyAccount();return this._userModule.request({protocolName:kr,requestData:{fromAccount:c,profileItem:a}}).then((function(o){r.setNetworkType(t._userModule.getNetworkType()).end(),Ge.i("".concat(n," ok"));var a=t._update(c,e),i=a.isProfileUpdated,s=a.latestProfile;return!0===i&&t._userModule.emitOuterEvent(I.PROFILE_UPDATED,[s]),mi(s)})).catch((function(e){return t._userModule.probeNetwork().then((function(t){var n=_(t,2),o=n[0],a=n[1];r.setError(e,o,a).end()})),Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"onProfileModified",value:function(e){var t=e.dataList;if(!en(t)){var n,r=t.length;Ge.d("".concat(this._n,".onProfileModified count:").concat(r," dataList:"),e.dataList);for(var o=[],a=0;a<r;a++){n=t[a].userID;var i=this._update(n,this._getLatestProfileFromResponse(n,t[a].profileList)),s=i.isProfileUpdated,c=i.latestProfile;!0===s&&o.push(c)}o.length>0&&(this._userModule.emitInnerEvent(Oi,o),this._userModule.emitOuterEvent(I.PROFILE_UPDATED,o))}}},{key:"_fill",value:function(){if(0===this.accountProfileMap.size){for(var e=this._getCachedProfiles(),t=Date.now(),n=0,r=e.length;n<r;n++)t-e[n].lastUpdatedTime<this.expirationTime&&this.accountProfileMap.set(e[n].userID,e[n]);Ge.l("".concat(this._n,"._fill from cache, size:").concat(this.accountProfileMap.size))}}},{key:"_update",value:function(e,t){var n,r=!1,o=Date.now();return this._contains(e)?(n=this._getProfileFromMap(e),t.profileCustomField&&!0===Tt(n.profileCustomField,t.profileCustomField)&&(n.lastUpdatedTime=o,r=!0),_t(n,t,["profileCustomField"])>0&&(n.lastUpdatedTime=o,r=!0)):(n=new Ei(t),(this._userModule.isMyFriend(e)||e===this._userModule.getMyAccount())&&(n.lastUpdatedTime=o,r=!0,this.accountProfileMap.set(e,n))),this._flush(e===this._userModule.getMyAccount()),Ge.l("".concat(this._n,"._update account:").concat(e," isProfileUpdated:").concat(r)),{isProfileUpdated:r,latestProfile:n}}},{key:"_flush",value:function(e){var t=y(this.accountProfileMap.values()),n=this._userModule.getStorageModule();Ge.d("".concat(this._n,"._flush length:").concat(t.length," flushAtOnce:").concat(e)),n.setItem(this.TAG,t,e)}},{key:"_contains",value:function(e){return this.accountProfileMap.has(e)}},{key:"_getProfileFromMap",value:function(e){return this.accountProfileMap.get(e)}},{key:"_getCachedProfiles",value:function(){var e=this._userModule.getStorageModule().getItem(this.TAG);return en(e)?[]:e}},{key:"onConversationsProfileUpdated",value:function(e){for(var t,n,r,o=[],a=0,i=e.length;a<i;a++)n=(t=e[a]).userID,this._userModule.isMyFriend(n)||(this._contains(n)?(r=this._getProfileFromMap(n),_t(r,t)>0&&o.push(n)):o.push(t.userID));0!==o.length&&(Ge.i("".concat(this._n,".onConversationsProfileUpdated toAccountList:").concat(o)),this.getUserProfile({userIDList:o}))}},{key:"getNickAndAvatarByUserID",value:function(e){if(this._contains(e)){var t=this._getProfileFromMap(e);return{nick:t.nick,avatar:t.avatar}}return{nick:"",avatar:""}}},{key:"reset",value:function(){this._flush(!0),this.accountProfileMap.clear()}}]),e}(),ps=i((function e(t){o(this,e),en||(this.userID=t.userID||"",this.timeStamp=t.timeStamp||0)})),fs=function(){function e(t){o(this,e),this._userModule=t,this._n="BlacklistHandler",this._blacklistMap=new Map,this.startIndex=0,this.maxLimited=100,this.currentSequence=0}return i(e,[{key:"getLocalBlacklist",value:function(){return y(this._blacklistMap.keys())}},{key:"getBlacklist",value:function(){var e=this,t="".concat(this._n,".getBlacklist"),n={fromAccount:this._userModule.getMyAccount(),maxLimited:this.maxLimited,startIndex:0,lastSequence:this.currentSequence},r=new Ka("getBlacklist");return this._userModule.request({protocolName:Cr,requestData:n}).then((function(n){var o=n.data,a=o.blackListItem,i=o.currentSequence,s=en(a)?0:a.length;r.setNetworkType(e._userModule.getNetworkType()).setMessage("count:".concat(s)).end(),Ge.i("".concat(t," ok")),e.currentSequence=i,e._handleResponse(a,!0),e._userModule.emitOuterEvent(I.BLACKLIST_UPDATED,y(e._blacklistMap.keys()))})).catch((function(n){return e._userModule.probeNetwork().then((function(e){var t=_(e,2),o=t[0],a=t[1];r.setError(n,o,a).end()})),Ge.e("".concat(t," failed. error:"),n),vi(n)}))}},{key:"addBlacklist",value:function(e){var t=this,n=new Ka("addToBlacklist"),r="".concat(this._n,".addBlacklist"),o=this._userModule.getMyAccount();if(1===e.userIDList.length&&e.userIDList[0]===o){var a=Aa.CANNOT_ADD_SELF_TO_BLACKLIST,i=this._userModule.getErrorMessage(a);n.setCode(a).setMessage(i).setNetworkType(this._userModule.getNetworkType()).end();var s=new pi({code:a});return Ge.e("".concat(r," failed. error:"),s),vi(s)}return e.userIDList.includes(o)&&(e.userIDList=e.userIDList.filter((function(e){return e!==o}))),e.fromAccount=this._userModule.getMyAccount(),e.toAccount=e.userIDList,this._userModule.request({protocolName:wr,requestData:e}).then((function(o){return n.setNetworkType(t._userModule.getNetworkType()).setMessage(e.userIDList.length>5?"userIDList.length:".concat(e.userIDList.length):"userIDList:".concat(e.userIDList)).end(),Ge.i("".concat(r," ok")),t._handleResponse(o.resultItem,!0),di(y(t._blacklistMap.keys()))})).catch((function(e){return t._userModule.probeNetwork().then((function(t){var r=_(t,2),o=r[0],a=r[1];n.setError(e,o,a).end()})),Ge.e("".concat(r," failed. error:"),e),vi(e)}))}},{key:"_handleResponse",value:function(e,t){if(!en(e))for(var n,r,o,a=0,i=e.length;a<i;a++)r=e[a].to,o=e[a].resultCode,(pt(o)||0===o)&&(t?((n=this._blacklistMap.has(r)?this._blacklistMap.get(r):new ps).userID=r,!en(e[a].addBlackTimeStamp)&&(n.timeStamp=e[a].addBlackTimeStamp),this._blacklistMap.set(r,n)):this._blacklistMap.has(r)&&(n=this._blacklistMap.get(r),this._blacklistMap.delete(r)));Ge.l("".concat(this._n,"._handleResponse total:").concat(this._blacklistMap.size," bAdd:").concat(t))}},{key:"deleteBlacklist",value:function(e){var t=this,n="".concat(this._n,".deleteBlacklist"),r=new Ka("removeFromBlacklist");return e.fromAccount=this._userModule.getMyAccount(),e.toAccount=e.userIDList,this._userModule.request({protocolName:Ir,requestData:e}).then((function(o){return r.setNetworkType(t._userModule.getNetworkType()).setMessage(e.userIDList.length>5?"userIDList.length:".concat(e.userIDList.length):"userIDList:".concat(e.userIDList)).end(),Ge.i("".concat(n," ok")),t._handleResponse(o.data.resultItem,!1),di(y(t._blacklistMap.keys()))})).catch((function(e){return t._userModule.probeNetwork().then((function(t){var n=_(t,2),o=n[0],a=n[1];r.setError(e,o,a).end()})),Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"onAccountDeleted",value:function(e){for(var t,n=[],r=0,o=e.length;r<o;r++)t=e[r],this._blacklistMap.has(t)&&(this._blacklistMap.delete(t),n.push(t));n.length>0&&(Ge.l("".concat(this._n,".onAccountDeleted count:").concat(n.length," userIDList:"),n),this._userModule.emitOuterEvent(I.BLACKLIST_UPDATED,y(this._blacklistMap.keys())))}},{key:"onAccountAdded",value:function(e){for(var t,n=[],r=0,o=e.length;r<o;r++)t=e[r],this._blacklistMap.has(t)||(this._blacklistMap.set(t,new ps({userID:t})),n.push(t));n.length>0&&(Ge.l("".concat(this._n,".onAccountAdded count:").concat(n.length," userIDList:"),n),this._userModule.emitOuterEvent(I.BLACKLIST_UPDATED,y(this._blacklistMap.keys())))}},{key:"reset",value:function(){this._blacklistMap.clear(),this.startIndex=0,this.maxLimited=100,this.currentSequence=0}}]),e}(),hs=function(e){var t=String(e).replace(/[=]+$/,""),n="";if(t.length%4==1)return"";for(var r,o,a=0,i=0;o=t.charAt(i++);~o&&(r=a%4?64*r+o:o,a++%4)?n+=String.fromCharCode(255&r>>(-2*a&6)):0)o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);try{return decodeURIComponent(escape(n))}catch(c){return""}},ms=function(){function e(t){o(this,e),this._userModule=t,this._n="UserStatusHandler",this.MAX_QUERY_USER_COUNT=500,this.MAX_SUBSCRIBE_USER_COUNT=100,this.MAX_UNSUBSCRIBE_USER_COUNT=100,this._userModule.getInnerEmitterInstance().on(bi,this._onCloudConfigUpdated,this)}return i(e,[{key:"_onCloudConfigUpdated",value:function(){var e=this._userModule.getCloudConfig("status_query_count"),t=this._userModule.getCloudConfig("status_sub_count"),n=this._userModule.getCloudConfig("status_unsub_count");Ge.l("".concat(this._n,"._onCloudConfigUpdated statusQueryCount:").concat(e," statusSubscribeCount:").concat(t)+" statusUnsubscribeCount:".concat(n)),pt(e)||(this.MAX_QUERY_USER_COUNT=parseInt(e,10)),pt(e)||(this.MAX_SUBSCRIBE_USER_COUNT=parseInt(t,10)),pt(e)||(this.MAX_UNSUBSCRIBE_USER_COUNT=parseInt(n,10))}},{key:"onUserStatusUpdated",value:function(e){var t=e.dataList,n=this._userModule.getMyUserID(),r=this._userModule.getModule(qn),o=t.map((function(e){var t=e.to,o=e.statusType,a=e.customStatus,i=hs(a);return t===n&&r.setCustomStatus(i),{userID:t,statusType:o,customStatus:i}}));this._userModule.emitOuterEvent(I.USER_STATUS_UPDATED,o)}},{key:"setSelfStatus",value:function(e){var t=this,n="".concat(this._n,".setSelfStatus");if(!1===this._userModule.filterProfanity("customStatus",e))return vi({code:Aa.PROFANITY_FOUND});var r=new Ka("setSelfStatus"),o=e.customStatus;return this._userModule.request({protocolName:Ca,requestData:{customStatus:o}}).then((function(e){return r.setNetworkType(t._userModule.getNetworkType()).setMessage("customStatus:".concat(o)).end(),Ge.l("".concat(n," ok. customStatus:").concat(o)),t._userModule.getModule(qn).setCustomStatus(o),di({userID:t._userModule.getMyUserID(),statusType:1,customStatus:o})})).catch((function(e){return t._userModule.probeNetwork().then((function(t){var n=_(t,2),o=n[0],a=n[1];r.setError(e,o,a).end()})),Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"getUserStatus",value:function(e){var t=this,n="".concat(this._n,".getUserStatus"),r=e.userIDList,o=void 0===r?[]:r,a=this._userModule.getMyUserID(),i=y(o),s=void 0,c=i.indexOf(a);if(c>-1){i.splice(c,1);var l=this._userModule.getModule(qn).getCustomStatus();s={userID:a,statusType:1,customStatus:l}}if(0===i.length)return mi({successUserList:[s],failureUserList:[]});if(!this._userModule.canIUse(z.USER_STATUS))return vi({code:Aa.CANNOT_USE_COMMERCIAL_ABILITY});i.length>this.MAX_QUERY_USER_COUNT&&(Ge.w("".concat(n," ").concat(Qt(this.MAX_QUERY_USER_COUNT))),i=o.slice(0,this.MAX_QUERY_USER_COUNT));var u=new Ka("getUserStatus");return this._userModule.request({protocolName:wa,requestData:{userIDList:i}}).then((function(e){var r=e.data,a=r.successUserList,i=void 0===a?[]:a,c=r.failureUserList,l=void 0===c?[]:c,d=i.map((function(e){var t=e.userID,n=e.statusType,r=e.customStatus;return{userID:t,statusType:n,customStatus:hs(r)}})),p=l.map((function(e){var t=e.userID,n=e.invalidUserID,r=e.errorCode,o=e.errorInfo;return{userID:en(n)?t:n,code:r,message:o}}));pt(s)||d.unshift(s);var f="userID count:".concat(o.length,", success count:").concat(d.length,", fail count:").concat(p.length);return u.setNetworkType(t._userModule.getNetworkType()).setMessage("".concat(f)).end(),Ge.l("".concat(n," ok. ").concat(f,".")),di({successUserList:d,failureUserList:p})})).catch((function(e){return t._userModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],a=n[1];u.setMessage("userID count:".concat(o.length)).setError(e,r,a).end()})),Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"subscribeUserStatus",value:function(e){var t=this;if(!this._userModule.canIUse(z.USER_STATUS))return vi({code:Aa.CANNOT_USE_COMMERCIAL_ABILITY});var n="".concat(this._n,".subscribeUserStatus"),r=e.userIDList,o=void 0===r?[]:r,a=y(o);a.length>this.MAX_SUBSCRIBE_USER_COUNT&&(Ge.w("".concat(n," ").concat(Qt(this.MAX_SUBSCRIBE_USER_COUNT))),a=o.slice(0,this.MAX_SUBSCRIBE_USER_COUNT));var i=new Ka("subscribeUserStatus"),s="userID count:".concat(o.length);return Ge.l("".concat(n," ").concat(s)),this._userModule.request({protocolName:Ia,requestData:{userIDList:a}}).then((function(e){var r=e.data.failureUserList,o=(void 0===r?[]:r).map((function(e){var t=e.userID,n=e.invalidUserID,r=e.errorCode,o=e.errorInfo;return{userID:en(n)?t:n,code:r,message:o}}));return i.setNetworkType(t._userModule.getNetworkType()).setMessage("".concat(s," fail count:").concat(o.length)).end(),Ge.l("".concat(n," ok. fail count:").concat(o.length,".")),di({failureUserList:o})})).catch((function(e){return t._userModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setMessage("".concat(s)).setError(e,r,o).end()})),Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"unsubscribeUserStatus",value:function(e){var t=this;if(!this._userModule.canIUse(z.USER_STATUS))return vi({code:Aa.CANNOT_USE_COMMERCIAL_ABILITY});var n="".concat(this._n,".unsubscribeUserStatus"),r=(e||{}).userIDList,o=void 0===r?[]:r,a=y(o);o.length>this.MAX_UNSUBSCRIBE_USER_COUNT&&(Ge.w("".concat(n," ").concat(Qt(this.MAX_UNSUBSCRIBE_USER_COUNT))),a=o.slice(0,this.MAX_UNSUBSCRIBE_USER_COUNT));var i=new Ka("unsubscribeUserStatus"),s="userID count:".concat(o.length);Ge.l("".concat(n," ").concat(s));var c={userIDList:a};return 0===a.length&&(c.userIDList=void 0,c.unsubscribeAll=1),this._userModule.request({protocolName:Sa,requestData:c}).then((function(e){var r=e.data.failureUserList,o=(void 0===r?[]:r).map((function(e){var t=e.userID,n=e.invalidUserID,r=e.errorCode,o=e.errorInfo;return{userID:en(n)?t:n,code:r,message:o}}));return i.setNetworkType(t._userModule.getNetworkType()).setMessage("".concat(s," fail count:").concat(o.length)).end(),Ge.l("".concat(n," ok. fail count:").concat(o.length,".")),di({failureUserList:o})})).catch((function(e){return t._userModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setMessage("".concat(s)).setError(e,r,o).end()})),Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"reset",value:function(){this.MAX_QUERY_USER_COUNT=500,this.MAX_SUBSCRIBE_USER_COUNT=100,this.MAX_UNSUBSCRIBE_USER_COUNT=100}}]),e}(),vs=function(e){c(n,e);var t=g(n);function n(e){var r;return o(this,n),(r=t.call(this,e))._n="UserModule",r._profileHandler=new ds(m(r)),r._blacklistHandler=new fs(m(r)),r._userStatusHandler=new ms(m(r)),r.getInnerEmitterInstance().on(yi,r.onContextUpdated,m(r)),r}return i(n,[{key:"onContextUpdated",value:function(e){this._profileHandler.getMyProfile(),this._blacklistHandler.getBlacklist()}},{key:"onProfileModified",value:function(e){this._profileHandler.onProfileModified(e)}},{key:"onRelationChainModified",value:function(e){var t=e.dataList;if(!en(t)){var n=[];t.forEach((function(e){e.blackListDelAccount&&n.push.apply(n,y(e.blackListDelAccount))})),n.length>0&&this._blacklistHandler.onAccountDeleted(n);var r=[];t.forEach((function(e){e.blackListAddAccount&&r.push.apply(r,y(e.blackListAddAccount))})),r.length>0&&this._blacklistHandler.onAccountAdded(r)}}},{key:"onConversationsProfileUpdated",value:function(e){this._profileHandler.onConversationsProfileUpdated(e)}},{key:"getMyAccount",value:function(){return this.getMyUserID()}},{key:"getMyProfile",value:function(){return this._profileHandler.getMyProfile()}},{key:"getStorageModule",value:function(){return this.getModule(Wn)}},{key:"filterProfanity",value:function(e,t){var n=this.getModule(lr);if(!n)return!0;var r=n.filterText(t[e],K),o=r.isAllowedToSend,a=r.modifiedText;return!0===o&&(t[e]=a,!0)}},{key:"isMyFriend",value:function(e){var t=this.getModule(Gn);return!!t&&t.isMyFriend(e)}},{key:"getUserProfile",value:function(e){return this._profileHandler.getUserProfile(e)}},{key:"updateMyProfile",value:function(e){return this._profileHandler.updateMyProfile(e)}},{key:"getNickAndAvatarByUserID",value:function(e){return this._profileHandler.getNickAndAvatarByUserID(e)}},{key:"getLocalBlacklist",value:function(){var e=this._blacklistHandler.getLocalBlacklist();return mi(e)}},{key:"addBlacklist",value:function(e){return this._blacklistHandler.addBlacklist(e)}},{key:"deleteBlacklist",value:function(e){return this._blacklistHandler.deleteBlacklist(e)}},{key:"onUserStatusUpdated",value:function(e){this._userStatusHandler.onUserStatusUpdated(e)}},{key:"setSelfStatus",value:function(e){return this._userStatusHandler.setSelfStatus(e)}},{key:"getUserStatus",value:function(e){return this._userStatusHandler.getUserStatus(e)}},{key:"subscribeUserStatus",value:function(e){return this._userStatusHandler.subscribeUserStatus(e)}},{key:"unsubscribeUserStatus",value:function(e){return this._userStatusHandler.unsubscribeUserStatus(e)}},{key:"reset",value:function(){Ge.l("".concat(this._n,".reset")),this._profileHandler.reset(),this._blacklistHandler.reset(),this._userStatusHandler.reset()}}]),n}(fr),gs=function(){function e(t,n){o(this,e),this._m=t,this._isLoggedIn=!1,this._SDKAppID=n.SDKAppID,this._userID=n.userID||"",this._userSig=n.userSig||"",this._version="2.27.1",this._a2Key="",this._tinyID="",this._customStatus="",this._contentType="json",this._unlimitedAVChatRoom=n.unlimitedAVChatRoom,this._scene=n.scene||"",this._oversea=n.oversea,this._instanceID=n.instanceID,this._statusInstanceID=0,this._isDevMode=n.devMode,this._proxyServer=n.proxyServer,this._fileUploadProxy=n.fileUploadProxy,this._fileDownloadProxy=n.fileDownloadProxy}return i(e,[{key:"isLoggedIn",value:function(){return this._isLoggedIn}},{key:"isOversea",value:function(){return this._oversea}},{key:"isPrivateNetWork",value:function(){return this._proxyServer}},{key:"isDevMode",value:function(){return this._isDevMode}},{key:"isSingaporeSite",value:function(){return this._SDKAppID>=2e7&&this._SDKAppID<3e7||this._SDKAppID>=172e7&&this._SDKAppID<173e7}},{key:"isKoreaSite",value:function(){return this._SDKAppID>=3e7&&this._SDKAppID<4e7||this._SDKAppID>=173e7&&this._SDKAppID<174e7}},{key:"isGermanySite",value:function(){return this._SDKAppID>=4e7&&this._SDKAppID<5e7||this._SDKAppID>=174e7&&this._SDKAppID<175e7}},{key:"isIndiaSite",value:function(){return this._SDKAppID>=5e7&&this._SDKAppID<6e7||this._SDKAppID>=175e7&&this._SDKAppID<176e7}},{key:"isJapanSite",value:function(){return this._SDKAppID>=6e7&&this._SDKAppID<7e7||this._SDKAppID>=176e7&&this._SDKAppID<177e7}},{key:"isUSASite",value:function(){return this._SDKAppID>=7e7&&this._SDKAppID<8e7||this._SDKAppID>=177e7&&this._SDKAppID<178e7}},{key:"isIntl",value:function(){return 0===(e=this._SDKAppID)||e>=2e7&&e<8e7||e>=172e7&&e<178e7;var e}},{key:"isUnlimitedAVChatRoom",value:function(){return this._unlimitedAVChatRoom}},{key:"setUserID",value:function(e){this._userID=e}},{key:"getUserID",value:function(){return this._userID}},{key:"setUserSig",value:function(e){this._userSig=e}},{key:"getUserSig",value:function(){return this._userSig}},{key:"getSDKAppID",value:function(){return this._SDKAppID}},{key:"setTinyID",value:function(e){this._tinyID=e,this._isLoggedIn=!0}},{key:"getTinyID",value:function(){return this._tinyID}},{key:"setCustomStatus",value:function(e){this._customStatus=e}},{key:"getCustomStatus",value:function(){return this._customStatus}},{key:"getScene",value:function(){return je?window.tencent_cloud_im_csig_flutter_for_web_25F_cy:this._isTUIKit()?"tuikit":this._scene}},{key:"getInstanceID",value:function(){return this._instanceID}},{key:"getStatusInstanceID",value:function(){return this._statusInstanceID}},{key:"setStatusInstanceID",value:function(e){this._statusInstanceID=e}},{key:"getVersion",value:function(){return this._version}},{key:"getA2Key",value:function(){return this._a2Key}},{key:"setA2Key",value:function(e){this._a2Key=e}},{key:"getContentType",value:function(){return this._contentType}},{key:"getProxyServer",value:function(){return this._proxyServer}},{key:"getFileUploadProxy",value:function(){return this._fileUploadProxy}},{key:"getFileDownloadProxy",value:function(){return this._fileDownloadProxy}},{key:"_isTUIKit",value:function(){var e=!1,t=!1,n=!1,r=!1,o=[];ie&&(o=Object.keys(ce)),se&&(o=ae?Object.keys(uni):Object.keys(window));for(var a=0,i=o.length;a<i;a++)if(o[a].toLowerCase().includes("uikit")){e=!0;break}if(o=null,ie&&!ht(ce.createGamePortal)&&ht(getApp)&&!pt(getApp())){var s=getApp().globalData;ut(s)&&!0===s.isTUIKit&&(t=!0)}!0===this._m.getModule(Wn).getStorageSync("TIM_".concat(this._SDKAppID,"_isTUIKit"))&&(n=!0);var c=null;if(X&&!ee&&"undefined"==typeof uni&&__wxConfig&&(c=__wxConfig.pages),Z&&"undefined"==typeof uni&&__qqConfig&&(c=__qqConfig.pages),dt(c)&&c.length>0){for(var l=0,u=c.length;l<u;l++)if(c[l].toLowerCase().includes("tui")){r=!0;break}c=null}return e||t||n||r}},{key:"reset",value:function(){this._isLoggedIn=!1,this._userSig="",this._a2Key="",this._tinyID="",this._customStatus="",this._statusInstanceID=0}}]),e}(),_s=function(e){c(n,e);var t=g(n);function n(e){var r;return o(this,n),(r=t.call(this,e))._n="SignModule",r._helloInterval=120,r._lastLoginTs=0,r._lastWsHelloTs=0,r._isWebUniapp=0,Mi.mixin(m(r)),r}return i(n,[{key:"onCheckTimer",value:function(e){this.isLoggedIn()&&e%this._helloInterval==0&&this._hello()}},{key:"login",value:function(e){var t="";if(this.isLoggedIn()){var n=this.getMyUserID();return(t=this.getErrorMessage("RepeatLogin",n))&&Ge.w(t),mi({actionStatus:"OK",errorCode:0,errorInfo:t,repeatLogin:!0})}if(Date.now()-this._lastLoginTs<=15e3)return this.outputWarning("LoggingIn",e.userID),vi({code:Aa.REPEAT_LOGIN});Ge.l("".concat(this._n,".login userID:").concat(e.userID));var r=this._checkLoginInfo(e);if(0!==r.code)return vi(r);var o=this.getModule(qn),a=e.userID,i=e.userSig;return o.setUserID(a),o.setUserSig(i),this.getModule(er).updateProtocolConfig(),this._login()}},{key:"_login",value:function(){var e=this,t=this.getModule(qn),n=t.getScene(),r=0,o=new Ka("login");o.setMessage("".concat(n)).setMoreMessage("identifier:".concat(this.getMyUserID())),ae?"tuikit"===n?o.setUIPlatform(4):o.setUIPlatform(3):ie?"tuikit"===n?o.setUIPlatform(12):o.setUIPlatform(11):se&&(je?"flutter_web_uikit"===n?o.setUIPlatform(21):o.setUIPlatform(20):this._isReactUIKit()?Ee?o.setUIPlatform(25):o.setUIPlatform(24):Ee?"tuikit"===n?o.setUIPlatform(17):o.setUIPlatform(16):"tuikit"===n?o.setUIPlatform(14):o.setUIPlatform(13));var a=this.getModule(cr);if(a.canIUseOfflinePush()){this._isWebUniapp=a.getUniAppPlatform();var i=this._getStatusInstanceID();t.setStatusInstanceID(i),this.getModule(er).updateProtocolConfig(),r=a.getDeviceBrand()}var s="".concat(this._n,"._login");return this._lastLoginTs=Date.now(),this.request({protocolName:hr,requestData:{deviceBrand:r,isWebUniapp:this._isWebUniapp}}).then((function(r){e._lastLoginTs=0;var a=Date.now(),i=null,c=r.data,l=c.a2Key,u=c.tinyID,d=c.helloInterval,p=c.instanceID,f=c.timeStamp,h=c.customStatus,m=void 0===h?"":h;Ge.l("".concat(s," ok. scene:").concat(n," helloInterval:").concat(d," instanceID:").concat(p," timeStamp:").concat(f));var v=1e3*f,g=a-o.getStartTs(),_=v+parseInt(g/2)-a,y=o.getStartTs()+_;if(o.start(y),function(e,t){xe=t;var n=new Date;n.setTime(e),Ge.i("baseTime from server:".concat(n," offset:").concat(xe))}(v,_),!u)throw i=new pi({code:Aa.NO_TINYID}),o.setError(i,!0,e.getNetworkType()).end(),i;if(!l)throw i=new pi({code:Aa.NO_A2KEY}),o.setError(i,!0,e.getNetworkType()).end(),i;var b=hs(m);o.setNetworkType(e.getNetworkType()).setMoreMessage("helloInterval:".concat(d," instanceID:").concat(p," offset:").concat(_," customStatus:").concat(b)).end(),t.setA2Key(l),t.setTinyID(u),t.setStatusInstanceID(p),t.setCustomStatus(b),e.getModule(er).updateProtocolConfig(),e.emitInnerEvent(yi),e._helloInterval=d,e.triggerReady();var O=e.getModule(cr);return O.canIUseOfflinePush()&&(uni.setStorageSync("timUniAppInstanceID",p),O.init()),e._fetchCloudControlConfig(),e.getModule(lr).init(),r})).catch((function(t){return e.probeNetwork().then((function(e){var n=_(e,2),r=n[0],a=n[1];o.setError(t,r,a).end(!0)})),e._m.setNotReadyReason(Aa.LOGIN_FAILED),Ge.e("".concat(s," failed. error:"),t),e._lastLoginTs=0,e._m.onLoginFailed(),vi(t)}))}},{key:"logout",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(!this.isLoggedIn())return vi({code:Aa.USER_NOT_LOGGED_IN});var n=new Ka("logout");n.setNetworkType(this.getNetworkType()).setMessage("identifier:".concat(this.getMyUserID())).end(!0);var r="".concat(this._n,".logout");return Ge.i("".concat(r," type:").concat(t)),0===t&&this._m.setNotReadyReason(Aa.LOGGED_OUT),this.request({protocolName:mr,requestData:{type:t}}).then((function(){return e.resetReady(),mi({})})).catch((function(t){return Ge.e("".concat(r," error:"),t),e.resetReady(),mi({})}))}},{key:"_fetchCloudControlConfig",value:function(){this.getModule(rr).fetchConfig()}},{key:"_getStatusInstanceID",value:function(){return uni.getStorageSync("timUniAppInstanceID")}},{key:"_hello",value:function(){var e=this;this._lastWsHelloTs=Date.now(),this.request({protocolName:vr,requestData:{isWebUniapp:this._isWebUniapp}}).catch((function(t){Ge.w("".concat(e._n,"._hello error:"),t)}))}},{key:"getLastWsHelloTs",value:function(){return this._lastWsHelloTs}},{key:"_checkLoginInfo",value:function(e){var t=0;return en(this.getModule(qn).getSDKAppID())?t=Aa.NO_SDKAPPID:en(e.userID)?t=Aa.NO_IDENTIFIER:en(e.userSig)&&(t=Aa.NO_USERSIG),{code:t}}},{key:"_isReactUIKit",value:function(){return se&&void 0!==window.tencent_cloud_im_csig_react_uikit_23F_xa}},{key:"onMultipleAccountKickedOut",value:function(e){var t=this;new Ka("kickedOut").setNetworkType(this.getNetworkType()).setMessage("type:".concat(S.KICKED_OUT_MULT_ACCOUNT," newInstanceInfo:").concat(JSON.stringify(e))).end(!0),Ge.w("".concat(this._n,".onMultipleAccountKickedOut userID:").concat(this.getMyUserID()," newInstanceInfo:"),e),this.logout(1).then((function(){t.emitOuterEvent(I.KICKED_OUT,{type:S.KICKED_OUT_MULT_ACCOUNT}),t._m.setNotReadyReason(Aa.KICKED_OUT_MULT_ACCOUNT),t._m.reset()}))}},{key:"onMultipleDeviceKickedOut",value:function(e){var t=this;new Ka("kickedOut").setNetworkType(this.getNetworkType()).setMessage("type:".concat(S.KICKED_OUT_MULT_DEVICE," newInstanceInfo:").concat(JSON.stringify(e))).end(!0),Ge.w("".concat(this._n,".onMultipleDeviceKickedOut userID:").concat(this.getMyUserID()," newInstanceInfo:"),e),this.logout(1).then((function(){t.emitOuterEvent(I.KICKED_OUT,{type:S.KICKED_OUT_MULT_DEVICE}),t._m.setNotReadyReason(Aa.KICKED_OUT_MULT_DEVICE),t._m.reset()}))}},{key:"onUserSigExpired",value:function(){new Ka("kickedOut").setNetworkType(this.getNetworkType()).setMessage(S.KICKED_OUT_USERSIG_EXPIRED).end(!0),Ge.w("".concat(this._n,".onUserSigExpired: userSig expired")),0!==this.getModule(qn).getStatusInstanceID()&&(this.emitOuterEvent(I.KICKED_OUT,{type:S.KICKED_OUT_USERSIG_EXPIRED}),this._m.setNotReadyReason(Aa.KICKED_OUT_USERSIG_EXPIRED),this._m.reset())}},{key:"onRestApiKickedOut",value:function(e){new Ka("kickedOut").setNetworkType(this.getNetworkType()).setMessage("type:".concat(S.KICKED_OUT_REST_API," newInstanceInfo:").concat(JSON.stringify(e))).end(!0),Ge.w("".concat(this._n,".onRestApiKickedOut userID:").concat(this.getMyUserID()," newInstanceInfo:"),e),0!==this.getModule(qn).getStatusInstanceID()&&(this.emitOuterEvent(I.KICKED_OUT,{type:S.KICKED_OUT_REST_API}),this._m.setNotReadyReason(Aa.KICKED_OUT_REST_API),this._m.reset(),this.getModule(tr).onRestApiKickedOut())}},{key:"reset",value:function(){Ge.l("".concat(this._n,".reset")),this.resetReady(),this._helloInterval=120,this._lastLoginTs=0,this._lastWsHelloTs=0,this._isWebUniapp=0}}]),n}(fr);function ys(){return null}var bs=function(){function e(t){o(this,e),this._m=t,this._n="StorageModule",this._storageQueue=new Map,this._errorTolerantHandle()}return i(e,[{key:"_errorTolerantHandle",value:function(){ie||!pt(window)&&this._canIUseCookies()||(this.getItem=ys,this.setItem=ys,this.removeItem=ys,this.clear=ys)}},{key:"onCheckTimer",value:function(e){if(e%20==0){if(0===this._storageQueue.size)return;this._doFlush()}}},{key:"_doFlush",value:function(){try{var e,t=w(this._storageQueue);try{for(t.s();!(e=t.n()).done;){var n=_(e.value,2),r=n[0],o=n[1];this._setStorageSync(this._getKey(r),o)}}catch(i){t.e(i)}finally{t.f()}this._storageQueue.clear()}catch(s){Ge.w("".concat(this._n,"._doFlush error:"),s)}}},{key:"_getPrefix",value:function(){var e=this._m.getModule(qn);return"TIM_".concat(e.getSDKAppID(),"_").concat(e.getUserID(),"_")}},{key:"_getKey",value:function(e){return"".concat(this._getPrefix()).concat(e)}},{key:"getItem",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];try{var n=t?this._getKey(e):e;return this.getStorageSync(n)}catch(o){return Ge.w("".concat(this._n,".getItem error:"),o),{}}}},{key:"setItem",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(n){var o=r?this._getKey(e):e;this._setStorageSync(o,t)}else this._storageQueue.set(e,t)}},{key:"clear",value:function(){try{ie?ce.clearStorageSync():this._canIUseCookies()&&localStorage.clear()}catch(e){Ge.w("".concat(this._n,".clear error:"),e)}}},{key:"removeItem",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];try{var n=t?this._getKey(e):e;this._removeStorageSync(n)}catch(o){Ge.w("".concat(this._n,".removeItem error:"),o)}}},{key:"getSize",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"b";try{var r={size:0,limitSize:5242880,unit:n};if(Object.defineProperty(r,"leftSize",{enumerable:!0,get:function(){return r.limitSize-r.size}}),ie&&(r.limitSize=1024*ce.getStorageInfoSync().limitSize),e)r.size=JSON.stringify(this.getItem(e)).length+this._getKey(e).length;else if(ie){var o=ce.getStorageInfoSync(),a=o.keys;a.forEach((function(e){r.size+=JSON.stringify(t.getStorageSync(e)).length+t._getKey(e).length}))}else if(this._canIUseCookies())for(var i in localStorage)localStorage.hasOwnProperty(i)&&(r.size+=localStorage.getItem(i).length+i.length);return this._convertUnit(r)}catch(c){Ge.w("".concat(this._n," error:"),c)}}},{key:"_convertUnit",value:function(e){var t={},n=e.unit;for(var r in t.unit=n,e)"number"==typeof e[r]&&("kb"===n.toLowerCase()?t[r]=Math.round(e[r]/1024):"mb"===n.toLowerCase()?t[r]=Math.round(e[r]/1024/1024):t[r]=e[r]);return t}},{key:"_setStorageSync",value:function(e,t){ie?ne?my.setStorageSync({key:e,data:t}):ce.setStorageSync(e,t):this._canIUseCookies()&&localStorage.setItem(e,JSON.stringify(t))}},{key:"getStorageSync",value:function(e){return ie?ne?my.getStorageSync({key:e}).data:ce.getStorageSync(e):this._canIUseCookies()?JSON.parse(localStorage.getItem(e)):{}}},{key:"_removeStorageSync",value:function(e){ie?ne?my.removeStorageSync({key:e}):ce.removeStorageSync(e):this._canIUseCookies()&&localStorage.removeItem(e)}},{key:"_canIUseCookies",value:function(){return navigator&&navigator.cookieEnabled&&localStorage}},{key:"reset",value:function(){Ge.l("".concat(this._n,".reset")),this._doFlush()}}]),e}(),Os=function(){function e(t){o(this,e),this._n="SSOLogBody",this._report=[]}return i(e,[{key:"pushIn",value:function(e){Ge.d("".concat(this._n,".pushIn"),this._report.length,e),this._report.push(e)}},{key:"backfill",value:function(e){var t;dt(e)&&0!==e.length&&(Ge.d("".concat(this._n,".backfill"),this._report.length,e.length),(t=this._report).unshift.apply(t,y(e)))}},{key:"getLogsNumInMemory",value:function(){return this._report.length}},{key:"isEmpty",value:function(){return 0===this._report.length}},{key:"_reset",value:function(){this._report.length=0,this._report=[]}},{key:"getLogsInMemory",value:function(){var e=this._report.slice();return this._reset(),e}}]),e}(),Ms=function(e){var t=e.getModule(qn);return{SDKType:10,SDKAppID:t.getSDKAppID(),SDKVersion:t.getVersion(),tinyID:Number(t.getTinyID()),userID:t.getUserID(),platform:e.getPlatform(),instanceID:t.getInstanceID(),traceID:Re()}},ks=function(e){c(r,e);var t=g(r);function r(e){var n;o(this,r),(n=t.call(this,e))._n="EventStatModule",n.TAG="im-ssolog-event",n._reportBody=new Os,n.MIN_THRESHOLD=20,n.MAX_THRESHOLD=100,n.WAITING_TIME=6e4,n.REPORT_LEVEL=[4,5,6],n.REPORT_SDKAPPID_BLACKLIST=[],n.REPORT_TINYID_WHITELIST=[],n._lastReportTime=Date.now();var a=n.getInnerEmitterInstance();return a.on(yi,n._onLoginSuccess,m(n)),a.on(bi,n._onCloudConfigUpdated,m(n)),n}return i(r,[{key:"reportAtOnce",value:function(){Ge.d("".concat(this._n,".reportAtOnce")),this._report()}},{key:"_onLoginSuccess",value:function(){var e=this,t=this.getModule(Wn),n=t.getItem(this.TAG,!1);!en(n)&&ht(n.forEach)&&(Ge.l("".concat(this._n,"._onLoginSuccess get ssolog in storage, count:").concat(n.length)),n.forEach((function(t){e._reportBody.pushIn(t)})),t.removeItem(this.TAG,!1))}},{key:"_onCloudConfigUpdated",value:function(){var e=this.getCloudConfig("evt_rpt_threshold"),t=this.getCloudConfig("evt_rpt_waiting"),n=this.getCloudConfig("evt_rpt_level"),r=this.getCloudConfig("evt_rpt_sdkappid_bl"),o=this.getCloudConfig("evt_rpt_tinyid_wl");pt(e)||(this.MIN_THRESHOLD=Number(e)),pt(t)||(this.WAITING_TIME=Number(t)),pt(n)||(this.REPORT_LEVEL=n.split(",").map((function(e){return Number(e)}))),pt(r)||(this.REPORT_SDKAPPID_BLACKLIST=r.split(",").map((function(e){return Number(e)}))),pt(o)||(this.REPORT_TINYID_WHITELIST=o.split(","))}},{key:"pushIn",value:function(e){e instanceof Ka&&(e.updateTimeStamp(),this._reportBody.pushIn(e),this._reportBody.getLogsNumInMemory()>=this.MIN_THRESHOLD&&this._report())}},{key:"onCheckTimer",value:function(){Date.now()<this._lastReportTime+this.WAITING_TIME||this._reportBody.isEmpty()||this._report()}},{key:"_filterLogs",value:function(e){var t=this,n=this.getModule(qn),r=n.getSDKAppID(),o=n.getTinyID();return Ht(this.REPORT_SDKAPPID_BLACKLIST,r)&&!Yt(this.REPORT_TINYID_WHITELIST,o)?[]:e.filter((function(e){return t.REPORT_LEVEL.includes(e.level)}))}},{key:"_report",value:function(){var e=this;if(!this._reportBody.isEmpty()){var t=this._reportBody.getLogsInMemory(),r=this._filterLogs(t);if(0!==r.length){var o={header:Ms(this),event:r};this.request({protocolName:sa,requestData:n({},o)}).then((function(){e._lastReportTime=Date.now()})).catch((function(n){Ge.w("".concat(e._n,".report failed. networkType:").concat(e.getNetworkType()," error:"),n),e._reportBody.backfill(t),e._reportBody.getLogsNumInMemory()>e.MAX_THRESHOLD&&e._flushAtOnce()}))}else this._lastReportTime=Date.now()}}},{key:"_flushAtOnce",value:function(){var e=this.getModule(Wn),t=e.getItem(this.TAG,!1),n=this._reportBody.getLogsInMemory(),r="".concat(this._n,"._flushAtOnce");if(en(t))Ge.l("".concat(r," count:").concat(n.length)),e.setItem(this.TAG,n,!0,!1);else{var o=n.concat(t);o.length>this.MAX_THRESHOLD&&(o=o.slice(0,this.MAX_THRESHOLD)),Ge.l("".concat(r," count:").concat(o.length)),e.setItem(this.TAG,o,!0,!1)}}},{key:"reset",value:function(){Ge.l("".concat(this._n,".reset")),this._lastReportTime=0,this._report(),this.REPORT_SDKAPPID_BLACKLIST=[],this.REPORT_TINYID_WHITELIST=[]}}]),r}(fr),Cs="none",ws="online",Is=[Aa.OVER_FREQUENCY_LIMIT,Aa.OPEN_SERVICE_OVERLOAD_ERROR],Ss=function(){function e(t){o(this,e),this._m=t,this._networkType="",this._n="NetMonitorModule",this.MAX_WAIT_TIME=3e3,this._mpNetworkStatusCallback=null,this._webOnlineCallback=null,this._webOfflineCallback=null}return i(e,[{key:"start",value:function(){var e=this;ie?(ce.getNetworkType({success:function(t){e._networkType=t.networkType||t.subtype||"",t.networkType===Cs?Ge.w("".concat(e._n,".start no network, please check!")):Ge.i("".concat(e._n,".start networkType:").concat(t.networkType))}}),this._mpNetworkStatusCallback=this._onNetworkStatusChange.bind(this),ce.onNetworkStatusChange(this._mpNetworkStatusCallback)):(this._networkType=ws,this._webOnlineCallback=this._onWebOnline.bind(this),this._webOfflineCallback=this._onWebOffline.bind(this),window&&(window.addEventListener("online",this._webOnlineCallback),window.addEventListener("offline",this._webOfflineCallback)))}},{key:"_onWebOnline",value:function(){this._onNetworkStatusChange({isConnected:!0,networkType:ws})}},{key:"_onWebOffline",value:function(){this._onNetworkStatusChange({isConnected:!1,networkType:Cs})}},{key:"_onNetworkStatusChange",value:function(e){var t=e.isConnected,n=e.networkType,r="".concat(this._n,"._onNetworkStatusChange"),o=!1;t?(Ge.i("".concat(r," previous:").concat(this._networkType," current:").concat(n)),this._networkType!==n&&(o=!0,this._m.getModule(tr).reConnect(!0))):this._networkType!==n&&(o=!0,Ge.w("".concat(r," no network, please check!")),this._m.getModule(tr).offline()),o&&(new Ka("networkChange").setMessage("isConnected:".concat(t," previousNetworkType:").concat(this._networkType," networkType:").concat(n)).end(),this._networkType=n)}},{key:"probe",value:function(e){var t=this;if(!pt(e)&&Is.includes(e.code))return Promise.resolve([!0,this._networkType]);var n="".concat(this._n,".probe");return new Promise((function(e,r){ie?ce.getNetworkType({success:function(r){t._networkType=r.networkType,r.networkType===Cs?(Ge.w("".concat(n," no network, please check!")),e([!1,r.networkType])):(Ge.i("".concat(n," networkType:").concat(r.networkType)),e([!0,r.networkType]))}}):t._networkType===Cs?e([!1,Cs]):e([!0,ws])}))}},{key:"getNetworkType",value:function(){return this._networkType}},{key:"reset",value:function(){Ge.l("".concat(this._n,".reset")),ie?null!==this._mpNetworkStatusCallback&&(ce.offNetworkStatusChange&&(oe||ee?ce.offNetworkStatusChange(this._mpNetworkStatusCallback):ce.offNetworkStatusChange()),this._mpNetworkStatusCallback=null):window&&(null!==this._webOnlineCallback&&(window.removeEventListener("online",this._webOnlineCallback),this._webOnlineCallback=null),null!==this._onWebOffline&&(window.removeEventListener("offline",this._webOfflineCallback),this._webOfflineCallback=null))}}]),e}(),Ts=function(e,t){return e(t={exports:{}},t.exports),t.exports}((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 a(e,t,r,a,i){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new o(r,a||e,i),c=n?n+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function i(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,a=r.length,i=new Array(a);o<a;o++)i[o]=r[o].fn;return i},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,a,i){var s=n?n+e:e;if(!this._events[s])return!1;var c,l,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,a),!0;case 6:return u.fn.call(u.context,t,r,o,a,i),!0}for(l=1,c=new Array(d-1);l<d;l++)c[l-1]=arguments[l];u.fn.apply(u.context,c)}else{var p,f=u.length;for(l=0;l<f;l++)switch(u[l].once&&this.removeListener(e,u[l].fn,void 0,!0),d){case 1:u[l].fn.call(u[l].context);break;case 2:u[l].fn.call(u[l].context,t);break;case 3:u[l].fn.call(u[l].context,t,r);break;case 4:u[l].fn.call(u[l].context,t,r,o);break;default:if(!c)for(p=1,c=new Array(d-1);p<d;p++)c[p-1]=arguments[p];u[l].fn.apply(u[l].context,c)}}return!0},s.prototype.on=function(e,t,n){return a(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return a(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,o){var a=n?n+e:e;if(!this._events[a])return this;if(!t)return i(this,a),this;var s=this._events[a];if(s.fn)s.fn!==t||o&&!s.once||r&&s.context!==r||i(this,a);else{for(var c=0,l=[],u=s.length;c<u;c++)(s[c].fn!==t||o&&!s[c].once||r&&s[c].context!==r)&&l.push(s[c]);l.length?this._events[a]=1===l.length?l[0]:l:i(this,a)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&i(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})),Es=function(e){c(n,e);var t=g(n);function n(e){var r;return o(this,n),(r=t.call(this,e))._n="BigDataChannelModule",r.FILETYPE={SOUND:2106,FILE:2107,VIDEO:2113},r._bdh_download_server="grouptalk.c2c.qq.com",r._BDHBizID=10001,r._authKey="",r._expireTime=0,r.getInnerEmitterInstance().on(yi,r._getAuthKey,m(r)),r}return i(n,[{key:"_getAuthKey",value:function(){var e=this;this.isIntl()||this.request({protocolName:yr}).then((function(t){t.data.authKey&&(e._authKey=t.data.authKey,e._expireTime=parseInt(t.data.expireTime))}))}},{key:"_isFromOlderVersion",value:function(e){return!(!e.content||2===e.content.downloadFlag)}},{key:"parseElements",value:function(e,t){if(!dt(e)||!t)return[];for(var n=[],r=null,o=0;o<e.length;o++)r=e[o],this._needParse(r)?n.push(this._parseElement(r,t)):n.push(e[o]);return n}},{key:"_needParse",value:function(e){return!e.cloudCustomData&&!(!this._isFromOlderVersion(e)||e.type!==S.MSG_AUDIO&&e.type!==S.MSG_FILE&&e.type!==S.MSG_VIDEO)}},{key:"_parseElement",value:function(e,t){switch(e.type){case S.MSG_AUDIO:return this._parseAudioElement(e,t);case S.MSG_FILE:return this._parseFileElement(e,t);case S.MSG_VIDEO:return this._parseVideoElement(e,t)}}},{key:"_parseAudioElement",value:function(e,t){return e.content.url=this._genAudioUrl(e.content.uuid,t),e}},{key:"_parseFileElement",value:function(e,t){return e.content.url=this._genFileUrl(e.content.uuid,t,e.content.fileName),e}},{key:"_parseVideoElement",value:function(e,t){return e.content.url=this._genVideoUrl(e.content.uuid,t),e}},{key:"_genAudioUrl",value:function(e,t){if(""===this._authKey)return"";var n=this.getModule(qn).getSDKAppID();return"https://".concat(this._bdh_download_server,"/asn.com/stddownload_common_file?authkey=").concat(this._authKey,"&bid=").concat(this._BDHBizID,"&subbid=").concat(n,"&fileid=").concat(e,"&filetype=").concat(this.FILETYPE.SOUND,"&openid=").concat(t,"&ver=0")}},{key:"_genFileUrl",value:function(e,t,n){if(""===this._authKey)return"";n||(n="".concat(Math.floor(1e5*Math.random()),"-").concat(Date.now()));var r=this.getModule(qn).getSDKAppID();return"https://".concat(this._bdh_download_server,"/asn.com/stddownload_common_file?authkey=").concat(this._authKey,"&bid=").concat(this._BDHBizID,"&subbid=").concat(r,"&fileid=").concat(e,"&filetype=").concat(this.FILETYPE.FILE,"&openid=").concat(t,"&ver=0&filename=").concat(encodeURIComponent(n))}},{key:"_genVideoUrl",value:function(e,t){if(""===this._authKey)return"";var n=this.getModule(qn).getSDKAppID();return"https://".concat(this._bdh_download_server,"/asn.com/stddownload_common_file?authkey=").concat(this._authKey,"&bid=").concat(this._BDHBizID,"&subbid=").concat(n,"&fileid=").concat(e,"&filetype=").concat(this.FILETYPE.VIDEO,"&openid=").concat(t,"&ver=0")}},{key:"reset",value:function(){this._authKey="",this.expireTime=0}}]),n}(fr),js=["requestSnapshotUrl"],Ds=function(e){c(r,e);var t=g(r);function r(e){var n;o(this,r),(n=t.call(this,e))._n="UploadModule",n.TIMUploadPlugin=null,n.timUploadPlugin=null,n.COSSDK=null,n._cosUploadMethod=null,n.expiredTimeLimit=600,n.appid=0,n.bucketName="",n.ciUrl="",n.directory="",n.downloadUrl="",n.uploadUrl="",n.region="ap-shanghai",n.cos=null,n.cosOptions={secretId:"",secretKey:"",sessionToken:"",expiredTime:0},n.uploadFileType="",n.duration=900,n.tryCount=0,n.UPLOAD_SIZE_LIMIT={AUDIO:20971520,FILE:104857600,IMAGE:20971520,VIDEO:104857600};var a=n.getInnerEmitterInstance();return a.on(yi,n._init,m(n)),a.on(bi,n._onCloudConfigUpdated,m(n)),n}return i(r,[{key:"_init",value:function(){var e=this.getModule(Xn);if(this.TIMUploadPlugin=e.getPlugin("tim-upload-plugin"),this.TIMUploadPlugin)this._initUploaderMethod();else{var t=ie?"cos-wx-sdk":"cos-js-sdk";this.COSSDK=e.getPlugin(t),this.COSSDK?(this._getAuthorizationKey(),this.outputWarning("CosReplacement",t)):this.outputWarning("PluginUndetected")}}},{key:"_onCloudConfigUpdated",value:function(){var e="".concat(this._n,"._onCloudConfigUpdated"),t=this.getCloudConfig("upload_size_limit");if(Ge.l("".concat(e," uploadSizeLimit:").concat(t)),!pt(t))try{var n=JSON.parse(t);this.UPLOAD_SIZE_LIMIT={AUDIO:n.a?1048576*parseInt(n.a):this.UPLOAD_SIZE_LIMIT.AUDIO,FILE:n.f?1048576*parseInt(n.f):this.UPLOAD_SIZE_LIMIT.FILE,IMAGE:n.i?1048576*parseInt(n.i):this.UPLOAD_SIZE_LIMIT.IMAGE,VIDEO:n.v?1048576*parseInt(n.v):this.UPLOAD_SIZE_LIMIT.VIDEO}}catch(o){Ge.e("".concat(e," JSON parse error. uploadSizeLimit:"),t)}}},{key:"_getAuthorizationKey",value:function(){var e=this,t="".concat(this._n,".").concat("_getAuthorizationKey"),n=new Ka("_getAuthorizationKey"),r=Math.ceil(Date.now()/1e3);this.request({protocolName:oa,requestData:{duration:this.expiredTimeLimit}}).then((function(o){var a=o.data;Ge.l("".concat(t," ok. data:"),a);var i=a.expiredTime-r;n.setMessage("requestId:".concat(a.requestId," requestTime:").concat(r," expiredTime:").concat(a.expiredTime," diff:").concat(i,"s")).setNetworkType(e.getNetworkType()).end(),!ie&&a.region&&(e.region=a.region),e.appid=a.appid,e.bucketName=a.bucketName,e.ciUrl=a.ciUrl,e.directory=a.directory,e.downloadUrl=a.downloadUrl,e.uploadUrl=a.uploadUrl,e.cosOptions={secretId:a.secretId,secretKey:a.secretKey,sessionToken:a.sessionToken,expiredTime:a.expiredTime},Ge.l("".concat(t," ok. region:").concat(e.region," bucketName:").concat(e.bucketName)),e._initUploaderMethod()})).catch((function(r){e.probeNetwork().then((function(e){var t=_(e,2),o=t[0],a=t[1];n.setError(r,o,a).end()})),Ge.w("".concat(t," failed. error:"),r)}))}},{key:"_getCosPreSigUrl",value:function(e){var t=this,n="".concat(this._n,".").concat("_getCosPreSigUrl"),r=Math.ceil(Date.now()/1e3),o=new Ka("_getCosPreSigUrl");return this.request({protocolName:aa,requestData:{fileType:e.fileType,fileName:e.fileName,uploadMethod:e.uploadMethod,duration:e.duration}}).then((function(e){t.tryCount=0;var a=e.data||{},i=a.expiredTime-r;return Ge.l("".concat(n," ok. data:"),a),o.setMessage("requestId:".concat(a.requestId," expiredTime:").concat(a.expiredTime," diff:").concat(i,"s")).setNetworkType(t.getNetworkType()).end(),a})).catch((function(r){return-1===r.code&&(r.code=Aa.COS_GET_SIG_FAIL),t.probeNetwork().then((function(e){var t=_(e,2),n=t[0],a=t[1];o.setError(r,n,a).end()})),Ge.w("".concat(n," failed. error:"),r),t.tryCount<1?(t.tryCount++,t._getCosPreSigUrl(e)):(t.tryCount=0,vi({code:Aa.COS_GET_SIG_FAIL}))}))}},{key:"_initUploaderMethod",value:function(){var e=this;if(this.TIMUploadPlugin)return this.timUploadPlugin=new this.TIMUploadPlugin,void(this._cosUploadMethod=function(t,n){e.timUploadPlugin.uploadFile(t,n)});this.appid&&(this.cos=ie?new this.COSSDK({ForcePathStyle:!0,getAuthorization:this._getAuthorization.bind(this)}):new this.COSSDK({getAuthorization:this._getAuthorization.bind(this)}),this._cosUploadMethod=ie?function(t,n){e.cos.postObject(t,n)}:function(t,n){e.cos.uploadFiles(t,n)})}},{key:"onCheckTimer",value:function(e){this.COSSDK&&(this.TIMUploadPlugin||this.isLoggedIn()&&e%60==0&&Math.ceil(Date.now()/1e3)>=this.cosOptions.expiredTime-120&&this._getAuthorizationKey())}},{key:"_getAuthorization",value:function(e,t){t({TmpSecretId:this.cosOptions.secretId,TmpSecretKey:this.cosOptions.secretKey,XCosSecurityToken:this.cosOptions.sessionToken,ExpiredTime:this.cosOptions.expiredTime})}},{key:"upload",value:function(e){if(!0===e.getRelayFlag())return Promise.resolve();var t=this.getModule(ir);switch(e.type){case S.MSG_IMAGE:return t.addTotalCount(Ba),this._uploadImage(e);case S.MSG_FILE:return t.addTotalCount(Ba),this._uploadFile(e);case S.MSG_AUDIO:return t.addTotalCount(Ba),this._uploadAudio(e);case S.MSG_VIDEO:return t.addTotalCount(Ba),this._uploadVideo(e);default:return Promise.resolve()}}},{key:"_uploadImage",value:function(e){var t=this,r=this.getModule(Pn),o=e.getElements()[0],a=r.getMessageOption(e.clientSequence);return this.doUploadImage({file:a.payload.file,to:a.to,onProgress:function(e){if(o.updatePercent(e),ht(a.onProgress))try{a.onProgress(e)}catch(n){return vi({code:Aa.MESSAGE_ONPROGRESS_FUNCTION_ERROR})}}}).then((function(r){var a,i,s=r.location,c=r.fileType,l=r.fileSize,u=r.width,d=r.height,p=r.smallImageUrl,f=r.smallImageWidth,h=r.smallImageHeight,m=r.largeImageUrl,v=r.largeImageWidth,g=r.largeImageHeight,_=t.isPrivateNetWork()?s:It(s);return o.updateImageFormat(c),p&&m?(a={url:p,width:f,height:h},i={url:m,width:v,height:g}):(a=Bt({originUrl:_,originWidth:u,originHeight:d,min:198}),i=Bt({originUrl:_,originWidth:u,originHeight:d,min:720})),o.updateImageInfoArray([{size:l,url:_,width:u,height:d},n({},i),n({},a)]),e}))}},{key:"_uploadFile",value:function(e){var t=this,n=this.getModule(Pn),r=e.getElements()[0],o=n.getMessageOption(e.clientSequence);return this.doUploadFile({file:o.payload.file,to:o.to,onProgress:function(e){if(r.updatePercent(e),ht(o.onProgress))try{o.onProgress(e)}catch(t){return vi({code:Aa.MESSAGE_ONPROGRESS_FUNCTION_ERROR})}}}).then((function(n){var o=n.location,a=t.isPrivateNetWork()?o:It(o);return r.updateFileUrl(a),e}))}},{key:"_uploadAudio",value:function(e){var t=this,n=this.getModule(Pn),r=e.getElements()[0],o=n.getMessageOption(e.clientSequence);return this.doUploadAudio({file:o.payload.file,to:o.to,onProgress:function(e){if(r.updatePercent(e),ht(o.onProgress))try{o.onProgress(e)}catch(t){return vi({code:Aa.MESSAGE_ONPROGRESS_FUNCTION_ERROR})}}}).then((function(n){var o=n.location,a=t.isPrivateNetWork()?o:It(o);return r.updateAudioUrl(a),e}))}},{key:"_uploadVideo",value:function(e){var t=this,n=this.getModule(Pn),r=e.getElements()[0],o=n.getMessageOption(e.clientSequence);return this.doUploadVideo({file:o.payload.file,to:o.to,onProgress:function(e){if(r.updatePercent(e),ht(o.onProgress))try{o.onProgress(e)}catch(t){return vi({code:Aa.MESSAGE_ONPROGRESS_FUNCTION_ERROR})}}}).then((function(n){var o=n.location,a=n.snapshotInfo,i=t.isPrivateNetWork()?o:It(o);return r.updateVideoUrl(i),en(a)||r.updateSnapshotInfo(a),e}))}},{key:"_checkSizeError",value:function(e){return vi({code:Aa["MESSAGE_".concat(e,"_SIZE_LIMIT")],message:this.getErrorMessage("UploadSizeLimit",e.toLowerCase(),"".concat(this.UPLOAD_SIZE_LIMIT[e]/1048576," MB"))})}},{key:"doUploadImage",value:function(e){var t=this;if(!e.file)return vi({code:Aa.MESSAGE_IMAGE_SELECT_FILE_FIRST});var n=this._checkImageType(e.file);if(!0!==n)return n;var r=this._checkImageSize(e.file);if(!0!==r)return r;var o=null;return this._setUploadFileType(wi),this.uploadByCOS(e).then((function(e){return o=e,t.isPrivateNetWork()?Rt(e.location):Rt("https://".concat(e.location))})).then((function(e){return o.width=e.width,o.height=e.height,Promise.resolve(o)}))}},{key:"_checkImageType",value:function(e){var t="";return t=ie?e.url.slice(e.url.lastIndexOf(".")+1):e.files[0].name.slice(e.files[0].name.lastIndexOf(".")+1),ki.indexOf(t.toLowerCase())>=0||vi({code:Aa.MESSAGE_IMAGE_TYPES_LIMIT})}},{key:"_checkImageSize",value:function(e){var t=0;return 0===(t=ie?e.size:e.files[0].size)?vi({code:Aa.MESSAGE_FILE_IS_EMPTY}):t<this.UPLOAD_SIZE_LIMIT.IMAGE||this._checkSizeError("IMAGE")}},{key:"doUploadFile",value:function(e){return e.file?e.file.files[0].size>this.UPLOAD_SIZE_LIMIT.FILE?this._checkSizeError("FILE"):0===e.file.files[0].size?vi({code:Aa.MESSAGE_FILE_IS_EMPTY}):(this._setUploadFileType(Ti),this.uploadByCOS(e)):vi({code:Aa.MESSAGE_FILE_SELECT_FILE_FIRST})}},{key:"doUploadVideo",value:function(e){return e.file.videoFile.size>this.UPLOAD_SIZE_LIMIT.VIDEO?this._checkSizeError("VIDEO"):0===e.file.videoFile.size?vi({code:Aa.MESSAGE_FILE_IS_EMPTY}):-1===Ci.indexOf(e.file.videoFile.type)?vi({code:Aa.MESSAGE_VIDEO_TYPES_LIMIT}):(this._setUploadFileType(Ii),ie?this.handleVideoUpload({file:e.file.videoFile,onProgress:e.onProgress}):se?this.handleVideoUpload(e):void 0)}},{key:"handleVideoUpload",value:function(e){var t=this;return new Promise((function(n,r){t.uploadByCOS(e).then((function(e){n(e)})).catch((function(){t.uploadByCOS(e).then((function(e){n(e)})).catch((function(){r(new pi({code:Aa.MESSAGE_VIDEO_UPLOAD_FAIL}))}))}))}))}},{key:"doUploadAudio",value:function(e){return e.file?e.file.size>this.UPLOAD_SIZE_LIMIT.AUDIO?this._checkSizeError("AUDIO"):0===e.file.size?vi({code:Aa.MESSAGE_FILE_IS_EMPTY}):(this._setUploadFileType(Si),this.uploadByCOS(e)):vi({code:Aa.MESSAGE_AUDIO_UPLOAD_FAIL})}},{key:"uploadByCOS",value:function(e){var t=this;if(!ht(this._cosUploadMethod))return this.outputWarning("PluginUndetected"),vi({code:Aa.COS_UNDETECTED});if(this.timUploadPlugin)return this._uploadWithPreSigUrl(e);var n=new Ka("upload"),r="".concat(this._n,".uploadByCOS"),o=Date.now(),a=this._getFile(e);return new Promise((function(i,s){var c=ie?t._createCosOptionsWXMiniApp(e):t._createCosOptionsWeb(e),l=t;t._cosUploadMethod(c,(function(e,c){var u=Object.create(null);if(c){if(e||dt(c.files)&&c.files[0].error){var d=new pi({code:Aa.MESSAGE_FILE_UPLOAD_FAIL});return n.setError(d,!0,t.getNetworkType()).end(),Ge.l("".concat(r," failed. error:"),c.files[0].error),403===c.files[0].error.statusCode&&(Ge.w("".concat(r," failed. cos AccessKeyId was invalid, regain auth key!")),t._getAuthorizationKey()),void s(d)}u.fileName=a.name,u.fileSize=a.size,u.fileType=a.type.slice(a.type.indexOf("/")+1).toLowerCase(),u.location=ie?c.Location:c.files[0].data.Location;var p=Date.now()-o,f=l._formatFileSize(a.size),h=l._formatSpeed(1e3*a.size/p),m="size:".concat(f," time:").concat(p,"ms speed:").concat(h);Ge.l("".concat(r," success. name:").concat(a.name," ").concat(m)),i(u);var v=t.getModule(ir);return v.addCost(Ba,p),v.addFileSize(Ba,a.size),void n.setNetworkType(t.getNetworkType()).setMessage(m).end()}var g=new pi({code:Aa.MESSAGE_FILE_UPLOAD_FAIL});n.setError(g,!0,l.getNetworkType()).end(),Ge.w("".concat(r," failed. error:"),e),403===e.statusCode&&(Ge.w("".concat(r," failed. cos AccessKeyId was invalid, regain auth key!")),t._getAuthorizationKey()),s(g)}))}))}},{key:"_uploadWithPreSigUrl",value:function(e){var t=this,n="".concat(this._n,"._uploadWithPreSigUrl"),r=this._getFile(e);return this._createCosOptionsPreSigUrl(e).then((function(e){return new Promise((function(o,a){var i=new Ka("upload"),s=e.requestSnapshotUrl,c=void 0===s?void 0:s,l=h(e,js),u=Date.now();t._cosUploadMethod(l,(function(e,s){if(e||403===s.statusCode)return i.setError(new pi(e),!0,t.getNetworkType()).end(),Ge.l("".concat(n," failed, error:"),e),void a(new pi({code:Aa.MESSAGE_FILE_UPLOAD_FAIL}));var d=Object.create(null),p=s.data.location||"";t.isPrivateNetWork()||0!==p.indexOf("https://")&&0!==p.indexOf("http://")||(p=p.split("//")[1]),d.fileName=r.name,d.fileSize=r.size,d.fileType=r.type.slice(r.type.indexOf("/")+1).toLowerCase(),d.location=p;var f=Date.now()-u,h=t._formatFileSize(r.size),m=t._formatSpeed(1e3*r.size/f),v="size:".concat(h,",time:").concat(f,"ms,speed:").concat(m," res:").concat(JSON.stringify(s.data));Ge.l("".concat(n," success name:").concat(r.name,",").concat(v)),i.setNetworkType(t.getNetworkType()).setMessage(v).end();var g=t.getModule(ir);g.addCost(Ba,f),g.addFileSize(Ba,r.size);var _=[];if(l.thumbUrl&&l.largeUrl&&(_=[t._getSmallImageInfoByUrl(l.thumbUrl,d),t._getLargeImageInfoByUrl(l.largeUrl,d)]),c&&_.push(t._getSnapshotInfoByUrl(c,d)),_.length>0)return Promise.all(_).then((function(){o(d)}));o(d)}))}))}))}},{key:"_getRawOrUploadProxyUrl",value:function(e){var t=this.getModule(qn).getFileUploadProxy(),n=e;return t&&(n=e.replace(/^https:\/\/[^/]+/,t)),n}},{key:"_getFile",value:function(e){var t;return dt(e.file.files)||(t=e.file.files,"filelist"===vt(t))?e.file.files[0]:e.file}},{key:"_formatFileSize",value:function(e){return e<1024?e+"B":e<1048576?Math.floor(e/1024)+"KB":Math.floor(e/1048576)+"MB"}},{key:"_formatSpeed",value:function(e){return e<=1048576?zt(e/1024,1)+"KB/s":zt(e/1048576,1)+"MB/s"}},{key:"_createCosOptionsWeb",value:function(e){var t=this._getFile(e),n=t.name,r=n.slice(n.lastIndexOf(".")),o=this._genFileName("".concat(Ot(999999)).concat(r));return{files:[{Bucket:"".concat(this.bucketName,"-").concat(this.appid),Region:this.region,Key:"".concat(this.directory,"/").concat(o),Body:t}],SliceSize:1048576,onProgress:function(t){if("function"==typeof e.onProgress)try{e.onProgress(t.percent)}catch(n){Ge.w("onProgress callback error:",n)}},onFileFinish:function(e,t,n){}}}},{key:"_createCosOptionsWXMiniApp",value:function(e){var t=this._getFile(e),n=this._genFileName(t.name),r=t.url;return{Bucket:"".concat(this.bucketName,"-").concat(this.appid),Region:this.region,Key:"".concat(this.directory,"/").concat(n),FilePath:r,onProgress:function(t){if(Ge.l(JSON.stringify(t)),"function"==typeof e.onProgress)try{e.onProgress(t.percent)}catch(n){Ge.w("onProgress callback error:",n)}}}}},{key:"_createCosOptionsPreSigUrl",value:function(e){var t=this,n="",r="",o=0,a=this._getFile(e);if(ie)n=this._genFileName(a.name),r=a.url,o=1;else{var i=a.name,s=i.slice(i.lastIndexOf("."));n=this._genFileName("".concat(Ot(999999)).concat(s)),r=a,o=0}return this._getCosPreSigUrl({fileType:this.uploadFileType,fileName:n,uploadMethod:o,duration:this.duration}).then((function(o){var a=o.uploadUrl,i=o.downloadUrl,s=o.requestSnapshotUrl,c=void 0===s?void 0:s,l=o.thumbUrl,u=o.largeUrl;return{url:t._getRawOrUploadProxyUrl(a),fileType:t.uploadFileType,fileName:n,resources:r,downloadUrl:i,requestSnapshotUrl:c,thumbUrl:l,largeUrl:u,onProgress:function(t){if("function"==typeof e.onProgress)try{e.onProgress(t.percent)}catch(n){Ge.w("onProgress callback error:",n),Ge.e(n)}}}}))}},{key:"_genFileName",value:function(e){return"".concat(Pt(),"-").concat(e)}},{key:"_setUploadFileType",value:function(e){this.uploadFileType=e}},{key:"_getSnapshotInfoByUrl",value:function(e,t){var n=this,r=new Ka("getSnapshotInfo");return this.request({protocolName:ia,requestData:{platform:this.getPlatform(),coverName:this._genFileName(Ot(99999)),requestSnapshotUrl:e}}).then((function(e){var n=(e.data||{}).snapshotUrl;return r.setMessage("snapshotUrl:".concat(n)).end(),en(n)?{}:Rt(n).then((function(e){t.snapshotInfo={snapshotUrl:n,snapshotWidth:e.width,snapshotHeight:e.height}}))})).catch((function(e){return Ge.w("".concat(n._n,"._getSnapshotInfoByUrl failed. error:"),e),r.setCode(e.errorCode).setMessage(e.errorInfo).end(),{}}))}},{key:"_getSmallImageInfoByUrl",value:function(e,t){return Rt(e).then((function(n){t.smallImageUrl=e,t.smallImageWidth=n.width,t.smallImageHeight=n.height}))}},{key:"_getLargeImageInfoByUrl",value:function(e,t){return Rt(e).then((function(n){t.largeImageUrl=e,t.largeImageWidth=n.width,t.largeImageHeight=n.height}))}},{key:"reset",value:function(){Ge.l("".concat(this._n,".reset"))}}]),r}(fr),Ls=["downloadKey","pbDownloadKey","messageList"],As=function(){function e(t){o(this,e),this._n="MergerMessageHandler",this._messageModule=t}return i(e,[{key:"uploadMergerMessage",value:function(e,t){var n=this,r="".concat(this._n,".").concat("uploadMergerMessage");Ge.d("".concat(r," message:"),e,"messageBytes:".concat(t));var o=e.payload.messageList,a=o.length,i=new Ka("uploadMergerMessage");return this._messageModule.request({protocolName:fa,requestData:{messageList:o}}).then((function(e){Ge.d("".concat(r," ok. response:"),e.data);var o=e.data,s=o.pbDownloadKey,c=o.downloadKey,l={pbDownloadKey:s,downloadKey:c,messageNumber:a};return i.setNetworkType(n._messageModule.getNetworkType()).setMessage("".concat(a,"-").concat(t,"-").concat(c)).end(),l})).catch((function(e){throw Ge.w("".concat(r," failed. error:"),e),n._messageModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setError(e,r,o).end()})),e}))}},{key:"downloadMergerMessage",value:function(e){var t=this,r="".concat(this._n,".").concat("downloadMergerMessage");Ge.d("".concat(r," message:"),e);var o=e.payload.downloadKey,a=this._messageModule.getFileDownloadProxy(),i=new Ka("downloadMergerMessage");return i.setMessage("downloadKey:".concat(o)),this._messageModule.request({protocolName:ha,requestData:{downloadKey:o}}).then((function(o){if(Ge.d("".concat(r," ok. response:"),o.data),ht(e.clearElement)){var s=e.payload;s.downloadKey,s.pbDownloadKey,s.messageList;var c=h(s,Ls);e.clearElement(),e.setElement({type:e.type,content:n({messageList:o.data.messageList},c)},a)}else{var l=[];o.data.messageList.forEach((function(e){if(!en(e)){var t=new si(e,a);l.push(t)}})),e.payload.messageList=l,e.payload.downloadKey="",e.payload.pbDownloadKey=""}return i.setNetworkType(t._messageModule.getNetworkType()).end(),e})).catch((function(e){throw Ge.w("".concat(r," failed. key:").concat(o," error:"),e),t._messageModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setError(e,r,o).end()})),e}))}},{key:"createMergerMessagePack",value:function(e,t,n){return e.conversationType===S.CONV_C2C?this._createC2CMergerMessagePack(e,t,n):this._createGroupMergerMessagePack(e,t,n)}},{key:"_createC2CMergerMessagePack",value:function(e,t,n){var r=null;t&&(t.offlinePushInfo&&(r=t.offlinePushInfo),!0===t.onlineUserOnly&&(r?r.disablePush=!0:r={disablePush:!0}));var o=[];if(ut(t)&&ut(t.messageControlInfo)){var a=t.messageControlInfo,i=a.excludedFromUnreadCount,s=a.excludedFromLastMessage,c=a.excludedFromContentModeration;!0===i&&o.push("NoUnread"),!0===s&&o.push("NoLastMsg"),!0===c&&o.push("NoMsgCheck")}var l="";ct(e.cloudCustomData)&&e.cloudCustomData.length>0&&(l=e.cloudCustomData);var u=n.pbDownloadKey,d=n.downloadKey,p=n.messageNumber,f=e.payload,h=f.title,m=f.abstractList,v=f.compatibleText,g=this._messageModule.getModule(Bn),_=g&&g.isOnlineMessage(e,t)?0:void 0;return{protocolName:br,tjgID:this._messageModule.generateTjgID(e),requestData:{fromAccount:this._messageModule.getMyUserID(),toAccount:e.to,msgBody:[{msgType:e.type,msgContent:{pbDownloadKey:u,downloadKey:d,title:h,abstractList:m,compatibleText:v,messageNumber:p}}],cloudCustomData:l,clientTime:e.clientTime,msgSeq:e.sequence,msgRandom:e.random,msgLifeTime:_,offlinePushInfo:r?{pushFlag:!0===r.disablePush?1:0,title:r.title||"",desc:r.description||"",ext:r.extension||"",apnsInfo:{badgeMode:!0===r.ignoreIOSBadge?1:0},androidInfo:{OPPOChannelID:r.androidOPPOChannelID||""}}:void 0,messageControlInfo:0!==_?o:void 0,isSupportExtension:!0===e.isSupportExtension?1:0}}}},{key:"_createGroupMergerMessagePack",value:function(e,t,n){var r=null;t&&t.offlinePushInfo&&(r=t.offlinePushInfo);var o=[];if(ut(t)&&ut(t.messageControlInfo)){var a=t.messageControlInfo,i=a.excludedFromUnreadCount,s=a.excludedFromLastMessage,c=a.excludedFromContentModeration;!0===i&&o.push("NoUnread"),!0===s&&o.push("NoLastMsg"),!0===c&&o.push("NoMsgCheck")}var l="";ct(e.cloudCustomData)&&e.cloudCustomData.length>0&&(l=e.cloudCustomData);var u=n.pbDownloadKey,d=n.downloadKey,p=n.messageNumber,f=e.payload,h=f.title,m=f.abstractList,v=f.compatibleText,g=this._messageModule.getModule(Fn),_=g&&g.isOnlineMessage(e,t)?1:0;return{protocolName:Or,tjgID:this._messageModule.generateTjgID(e),requestData:{fromAccount:this._messageModule.getMyUserID(),groupID:e.to,msgBody:[{msgType:e.type,msgContent:{pbDownloadKey:u,downloadKey:d,title:h,abstractList:m,compatibleText:v,messageNumber:p}}],random:e.random,priority:e.priority,clientSequence:e.clientSequence,groupAtInfo:void 0,cloudCustomData:l,onlineOnlyFlag:_,offlinePushInfo:r?{pushFlag:!0===r.disablePush?1:0,title:r.title||"",desc:r.description||"",ext:r.extension||"",apnsInfo:{badgeMode:!0===r.ignoreIOSBadge?1:0},androidInfo:{OPPOChannelID:r.androidOPPOChannelID||""}}:void 0,clientTime:e.clientTime,needReadReceipt:!0!==e.needReadReceipt||g.isMessageFromOrToAVChatroom(e.to)?0:1,messageControlInfo:0===_?o:void 0,isSupportExtension:!0===e.isSupportExtension?1:0}}}}]),e}(),Ns={ERR_SVR_COMM_SENSITIVE_TEXT:80001,ERR_SVR_COMM_BODY_SIZE_LIMIT:80002,OPEN_SERVICE_OVERLOAD_ERROR:60022,ERR_SVR_MSG_PKG_PARSE_FAILED:20001,ERR_SVR_MSG_INTERNAL_AUTH_FAILED:20002,ERR_SVR_MSG_INVALID_ID:20003,ERR_SVR_MSG_PUSH_DENY:20006,ERR_SVR_MSG_IN_PEER_BLACKLIST:20007,ERR_SVR_MSG_BOTH_NOT_FRIEND:20009,ERR_SVR_MSG_NOT_PEER_FRIEND:20010,ERR_SVR_MSG_NOT_SELF_FRIEND:20011,ERR_SVR_MSG_SHUTUP_DENY:20012,ERR_SVR_GROUP_INVALID_PARAMETERS:10004,ERR_SVR_GROUP_PERMISSION_DENY:10007,ERR_SVR_GROUP_NOT_FOUND:10010,ERR_SVR_GROUP_INVALID_GROUPID:10015,ERR_SVR_GROUP_REJECT_FROM_THIRDPARTY:10016,ERR_SVR_GROUP_SHUTUP_DENY:10017,MESSAGE_SEND_FAIL:2100,OVER_FREQUENCY_LIMIT:2996},xs=[Aa.MESSAGE_ONPROGRESS_FUNCTION_ERROR,Aa.MESSAGE_IMAGE_SELECT_FILE_FIRST,Aa.MESSAGE_IMAGE_TYPES_LIMIT,Aa.MESSAGE_FILE_IS_EMPTY,Aa.MESSAGE_IMAGE_SIZE_LIMIT,Aa.MESSAGE_FILE_SELECT_FILE_FIRST,Aa.MESSAGE_FILE_SIZE_LIMIT,Aa.MESSAGE_VIDEO_SIZE_LIMIT,Aa.MESSAGE_VIDEO_TYPES_LIMIT,Aa.MESSAGE_AUDIO_UPLOAD_FAIL,Aa.MESSAGE_AUDIO_SIZE_LIMIT,Aa.COS_UNDETECTED];function Rs(e){var t=!1;return Object.values(Ns).includes(e)&&(t=!0),(e>=120001&&e<=13e4||e>=10100&&e<=10200)&&(t=!0),t}var Ps=function(e){c(r,e);var t=g(r);function r(e){var n;return o(this,r),(n=t.call(this,e))._n="MessageModule",n._messageOptionsMap=new Map,n._mergerMessageHandler=new As(m(n)),n}return i(r,[{key:"createTextMessage",value:function(e){var t=this.getMyUserID();e.currentUser=t,e.senderTinyID=this.getMyTinyID();var n=new ui(e),r="string"==typeof e.payload?e.payload:e.payload.text,o=new $a({text:r}),a=this._getNickAndAvatarByUserID(t);return n.setElement(o),n.setNickAndAvatar(a),n.setNameCard(this._getNameCardByGroupID(n)),n}},{key:"createImageMessage",value:function(e){var t=this.getMyUserID();e.currentUser=t,e.senderTinyID=this.getMyTinyID();var n=new ui(e);if(ie){var r=e.payload.file;if(it(r))return void this.outputWarning("FileUnsupportedInMP","createImageMessage");var o=r.tempFiles[0].path||r.tempFiles[0].tempFilePath,a={url:o,name:o.slice(o.lastIndexOf("/")+1),size:r.tempFiles&&r.tempFiles[0].size||1,type:o.slice(o.lastIndexOf(".")+1).toLowerCase()};e.payload.file=a}else if(se)if(it(e.payload.file)){var i=e.payload.file;e.payload.file={files:[i]}}else if(ut(e.payload.file)&&"undefined"!=typeof uni){var s=e.payload.file.tempFiles[0];e.payload.file={files:[s]}}var c=new Ja({imageFormat:ze.UNKNOWN,uuid:this._generateUUID(e.payload.file),file:e.payload.file}),l=this._getNickAndAvatarByUserID(t);return n.setElement(c),n.setNickAndAvatar(l),n.setNameCard(this._getNameCardByGroupID(n)),this._messageOptionsMap.set(n.clientSequence,e),n}},{key:"createAudioMessage",value:function(e){var t=e.payload.file;if(ie){var n={url:t.tempFilePath,name:t.tempFilePath.slice(t.tempFilePath.lastIndexOf("/")+1),size:t.fileSize,second:parseInt(t.duration)/1e3,type:t.tempFilePath.slice(t.tempFilePath.lastIndexOf(".")+1).toLowerCase()};e.payload.file=n}var r=this.getMyUserID();e.currentUser=r,e.senderTinyID=this.getMyTinyID();var o=new ui(e),a=new Xa({second:Math.floor(t.duration/1e3),size:t.fileSize||t.size,url:t.tempFilePath,uuid:this._generateUUID(e.payload.file)}),i=this._getNickAndAvatarByUserID(r);return o.setElement(a),o.setNickAndAvatar(i),o.setNameCard(this._getNameCardByGroupID(o)),this._messageOptionsMap.set(o.clientSequence,e),o}},{key:"createVideoMessage",value:function(e){var t=this.getMyUserID();e.currentUser=t,e.senderTinyID=this.getMyTinyID(),e.payload.file.thumbUrl="",e.payload.file.thumbSize=0;var n={};if(ie){if(ne)return void this.outputWarning("VideoUnsupportedInAlipay");if(it(e.payload.file))return void this.outputWarning("FileUnsupportedInMP","createVideoMessage");var r=e.payload.file;dt(r.tempFiles)&&(r=r.tempFiles[0]),n.url=r.tempFilePath,n.name=r.tempFilePath.slice(r.tempFilePath.lastIndexOf("/")+1),n.size=r.size||1,n.second=r.duration||0,n.type=r.tempFilePath.slice(r.tempFilePath.lastIndexOf(".")+1).toLowerCase()}else if(se){if(it(e.payload.file)){var o=e.payload.file;e.payload.file.files=[o]}else if(ut(e.payload.file)&&"undefined"!=typeof uni){var a=e.payload.file.tempFile;e.payload.file.files=[a]}var i=e.payload.file;n.url=window.URL.createObjectURL(i.files[0]),n.name=i.files[0].name,n.size=i.files[0].size||1,n.second=i.files[0].duration||0,n.type=i.files[0].type.split("/")[1]}e.payload.file.videoFile=n;var s=new ui(e),c=new ai({videoFormat:n.type,videoSecond:zt(n.second,0),videoSize:n.size,remoteVideoUrl:"",videoUrl:n.url,videoUUID:this._generateUUID(e.payload.file.videoFile),thumbUUID:this._generateUUID(e.payload.file.videoFile),thumbWidth:e.payload.file.width||200,thumbHeight:e.payload.file.height||200,thumbUrl:e.payload.file.thumbUrl,thumbSize:e.payload.file.thumbSize,thumbFormat:e.payload.file.thumbUrl.slice(e.payload.file.thumbUrl.lastIndexOf(".")+1).toLowerCase()}),l=this._getNickAndAvatarByUserID(t);return s.setElement(c),s.setNickAndAvatar(l),s.setNameCard(this._getNameCardByGroupID(s)),this._messageOptionsMap.set(s.clientSequence,e),s}},{key:"createCustomMessage",value:function(e){var t=this.getMyUserID();e.currentUser=t,e.senderTinyID=this.getMyTinyID();var n=new ui(e),r=new oi({data:e.payload.data,description:e.payload.description,extension:e.payload.extension}),o=this._getNickAndAvatarByUserID(t);return n.setElement(r),n.setNickAndAvatar(o),n.setNameCard(this._getNameCardByGroupID(n)),n}},{key:"createFaceMessage",value:function(e){var t=this.getMyUserID();e.currentUser=t,e.senderTinyID=this.getMyTinyID();var n=new ui(e),r=new Qa(e.payload),o=this._getNickAndAvatarByUserID(t);return n.setElement(r),n.setNickAndAvatar(o),n.setNameCard(this._getNameCardByGroupID(n)),n}},{key:"createMergerMessage",value:function(e){var t=this.getMyUserID();e.currentUser=t,e.senderTinyID=this.getMyTinyID();var n=this._getNickAndAvatarByUserID(t),r=new ui(e),o=new ci(e.payload);return r.setElement(o),r.setNickAndAvatar(n),r.setNameCard(this._getNameCardByGroupID(r)),r.setRelayFlag(!0),r}},{key:"createForwardMessage",value:function(e){var t=e.to,n=e.conversationType,r=e.priority,o=e.payload,a=e.needReadReceipt,i=e.receiverList,s=this.getMyUserID(),c=this._getNickAndAvatarByUserID(s);if(o.type===S.MSG_GRP_TIP)return vi({code:Aa.MESSAGE_FORWARD_TYPE_INVALID});var l={to:t,conversationType:n,conversationID:"".concat(n).concat(t),priority:r,isPlaceMessage:0,status:on.UNSEND,currentUser:s,senderTinyID:this.getMyTinyID(),cloudCustomData:e.cloudCustomData||o.cloudCustomData||"",needReadReceipt:a,receiverList:i,isSupportExtension:e.isSupportExtension||!1},u=new ui(l);return u.setElement(o.getElements()[0]),u.setNickAndAvatar(c),u.setNameCard(this._getNameCardByGroupID(o)),u.setRelayFlag(!0),u}},{key:"downloadMergerMessage",value:function(e){return this._mergerMessageHandler.downloadMergerMessage(e)}},{key:"createFileMessage",value:function(e){if(ie){if(!X&&!Z&&!oe)return;var t=ce.getSystemInfoSync().SDKVersion;if(X&&Vt(t,"2.5.0")<0)return void this.outputWarning("WXChooseMessageFile");if(Z&&Vt(t,"1.18.0")<0)return void this.outputWarning("QQChooseMessageFile")}if(se||oe){if(it(e.payload.file)){var r=e.payload.file;e.payload.file={files:[r]}}else if(ut(e.payload.file)&&"undefined"!=typeof uni){var o=e.payload.file,a=o.tempFiles,i=o.files,s=null;dt(a)?s=a[0]:dt(i)&&(s=i[0]),e.payload.file={files:[s]}}}else if(X||Z){var c=e.payload.file.tempFiles,l=n(n({},c[0]),{},{url:c[0].path});e.payload.file={files:[l]}}var u=this.getMyUserID();e.currentUser=u,e.senderTinyID=this.getMyTinyID();var d=new ui(e),p=new ri({uuid:this._generateUUID(e.payload.file),file:e.payload.file}),f=this._getNickAndAvatarByUserID(u);return d.setElement(p),d.setNickAndAvatar(f),d.setNameCard(this._getNameCardByGroupID(d)),this._messageOptionsMap.set(d.clientSequence,e),d}},{key:"createLocationMessage",value:function(e){var t=this.getMyUserID();e.currentUser=t,e.senderTinyID=this.getMyTinyID();var n=new ui(e),r=new ii(e.payload),o=this._getNickAndAvatarByUserID(t);return n.setElement(r),n.setNickAndAvatar(o),n.setNameCard(this._getNameCardByGroupID(n)),n}},{key:"_onCannotFindModule",value:function(){return vi({code:Aa.CANNOT_FIND_MODULE})}},{key:"sendMessageInstance",value:function(e,t){var n=this;if(!1===this.getModule(lr).filterMessage(e,t))return this._onSendMessageFailed(e,new pi({code:Aa.PROFANITY_FOUND}));var r,o=null;switch(e.conversationType){case S.CONV_C2C:if(!(o=this.getModule(Bn)))return this._onCannotFindModule();break;case S.CONV_GROUP:if(!(o=this.getModule(Fn)))return this._onCannotFindModule();if(jt({groupID:e.to})){var a=o.getLocalGroupProfile(e.to);if(a&&a.isSupportTopic)return vi({code:Aa.MESSAGE_SEND_GROUP_WITH_TOPIC_FAIL})}break;default:return vi({code:Aa.MESSAGE_SEND_INVALID_CONVERSATION_TYPE})}var i=this.getModule(Qn),s=this.getModule(Fn);return i.upload(e).then((function(){return n._getSendMessageSpecifiedKey(e)===Va&&n.getModule(ir).addSuccessCount(Ba),s.guardForAVChatRoom(e).then((function(){if(!e.isSendable())return vi({code:Aa.MESSAGE_FILE_URL_IS_EMPTY});n._addSendMessageTotalCount(e),r=Date.now();var a=function(e){var t="utf-8";se&&document&&(t=document.charset.toLowerCase());var n,r,o=0;if(r=e.length,"utf-8"===t||"utf8"===t)for(var a=0;a<r;a++)(n=e.codePointAt(a))<=127?o+=1:n<=2047?o+=2:n<=65535?o+=3:(o+=4,a++);else if("utf-16"===t||"utf16"===t)for(var i=0;i<r;i++)(n=e.codePointAt(i))<=65535?o+=2:(o+=4,i++);else o=e.replace(/[^\x00-\xff]/g,"aa").length;return o}(JSON.stringify(e));return e.type===S.MSG_MERGER&&a>11264?n._mergerMessageHandler.uploadMergerMessage(e,a).then((function(r){var o=n._mergerMessageHandler.createMergerMessagePack(e,t,r);return n.request(o)})):(n.getModule(Yn).setMessageRandom(e),e.conversationType===S.CONV_C2C||e.conversationType===S.CONV_GROUP?o.sendMessage(e,t):void 0)})).then((function(a){var i=a.data,s=i.time,c=i.sequence,l=i.readReceiptCode;st(l)&&0!==l&&(new Ka("sendMessageWithReceipt").setMessage("from:".concat(e.from," to:").concat(e.to," sequence:").concat(c," readReceiptCode:").concat(l)).end(),Ge.w("".concat(n._n,".sendMessageInstance readReceiptCode:").concat(l," message:").concat(n.getErrorMessage(l)))),n._addSendMessageSuccessCount(e,r),n._messageOptionsMap.delete(e.clientSequence);var u=n.getModule(Yn);e.status=on.SUCCESS,e.time=s;var d=!1;if(e.conversationType===S.CONV_GROUP)e.sequence=c;else if(e.conversationType===S.CONV_C2C){var p=u.getLatestMessageSentByMe(e.conversationID);if(p){var f=p.nick,h=p.avatar;f===e.nick&&h===e.avatar||(d=!0)}}if(d&&u.modifyMessageSentByMe({conversationID:e.conversationID,latestNick:e.nick,latestAvatar:e.avatar}),o.isOnlineMessage(e,t))e._onlineOnlyFlag=!0;else{u.appendToMessageList(e);var m=e;ut(t)&&ut(t.messageControlInfo)&&(!0===t.messageControlInfo.excludedFromLastMessage&&(e._isExcludedFromLastMessage=!0,m=""),!0===t.messageControlInfo.excludedFromUnreadCount&&(e._isExcludedFromUnreadCount=!0));var v=e.conversationType;Dt(e.to)&&(v=S.CONV_TOPIC,n.getModule(Hn).onMessageSent({groupID:qt(e.to),topicID:e.to,lastMessage:m})),u.onMessageSent({conversationOptionsList:[{conversationID:e.conversationID,unreadCount:0,type:v,subType:e.conversationSubType,lastMessage:m}]})}return e.getRelayFlag()||"TIMImageElem"!==e.type||Ft(e.payload.imageInfoArray),di({message:e})}))})).catch((function(t){return n._onSendMessageFailed(e,t)}))}},{key:"_onSendMessageFailed",value:function(e,t){e.status=on.FAIL,this.getModule(Yn).deleteMessageRandom(e),this._addSendMessageFailCountOnUser(e,t);var n=new Ka("sendMessage");return n.setMessage("tjg_id:".concat(this.generateTjgID(e)," type:").concat(e.type," from:").concat(e.from," to:").concat(e.to)),this.probeNetwork().then((function(e){var r=_(e,2),o=r[0],a=r[1];n.setError(t,o,a).end()})),Ge.e("".concat(this._n,"._onSendMessageFailed error:"),t),vi(new pi({code:t&&t.code?t.code:Aa.MESSAGE_SEND_FAIL,message:t&&t.message?t.message:void 0,data:{message:e}}))}},{key:"_getSendMessageSpecifiedKey",value:function(e){if([S.MSG_IMAGE,S.MSG_AUDIO,S.MSG_VIDEO,S.MSG_FILE].includes(e.type))return Va;if(e.conversationType===S.CONV_C2C)return Ra;if(e.conversationType===S.CONV_GROUP){var t=this.getModule(Fn).getLocalGroupProfile(e.to);if(!t)return;var n=t.type;return Et(n)?Ua:Pa}}},{key:"_addSendMessageTotalCount",value:function(e){var t=this._getSendMessageSpecifiedKey(e);t&&this.getModule(ir).addTotalCount(t)}},{key:"_addSendMessageSuccessCount",value:function(e,t){var n=Math.abs(Date.now()-t),r=this._getSendMessageSpecifiedKey(e);if(r){var o=this.getModule(ir);o.addSuccessCount(r),o.addCost(r,n)}}},{key:"_addSendMessageFailCountOnUser",value:function(e,t){var n,r,o=t.code,a=void 0===o?-1:o,i=this.getModule(ir),s=this._getSendMessageSpecifiedKey(e);s===Va&&(n=a,r=!1,xs.includes(n)&&(r=!0),r)?i.addFailedCountOfUserSide(Ba):Rs(a)&&s&&i.addFailedCountOfUserSide(s)}},{key:"resendMessage",value:function(e){return e.isResend=!0,e.status=on.UNSEND,this.sendMessageInstance(e)}},{key:"revokeMessage",value:function(e){var t=this,n=null;if(e.conversationType===S.CONV_C2C?n=this.getModule(Bn):e.conversationType===S.CONV_GROUP&&(n=this.getModule(Fn)),!n)return this._onCannotFindModule();var r=new Ka("revokeMessage");r.setMessage("tjg_id:".concat(this.generateTjgID(e)," type:").concat(e.type," from:").concat(e.from," to:").concat(e.to));var o="".concat(this._n,".").concat("revokeMessage");return n.revokeMessage(e).then((function(n){var a=n.data.recallRetList;if(!en(a)&&0!==a[0].retCode){var i=new pi({code:a[0].retCode,data:{message:e}});return r.setCode(i.code).setMoreMessage(i.message).end(),vi(i)}return Ge.i("".concat(o," ok. ID:").concat(e.ID)),e.isRevoked=!0,r.end(),t.getModule(Yn).onMessageRevoked([e]),di({message:e})})).catch((function(n){t.probeNetwork().then((function(e){var t=_(e,2),o=t[0],a=t[1];r.setError(n,o,a).end()}));var a=new pi({code:n&&n.code?n.code:Aa.MESSAGE_REVOKE_FAIL,message:n&&n.message?n.message:void 0,data:{message:e}});return Ge.w("".concat(o," failed. error:"),n),vi(a)}))}},{key:"deleteMessage",value:function(e){var t=this,n=null,r=e[0],o=r.conversationID,a="",i=[],s=[];if(r.conversationType===S.CONV_C2C)n=this.getModule(Bn),a=o.replace(S.CONV_C2C,""),e.forEach((function(e){e&&e.status===on.SUCCESS&&e.conversationID===o&&(e._onlineOnlyFlag||i.push("".concat(e.sequence,"_").concat(e.random,"_").concat(e.time)),s.push(e))}));else if(r.conversationType===S.CONV_GROUP)n=this.getModule(Fn),a=o.replace(S.CONV_GROUP,""),e.forEach((function(e){e&&e.status===on.SUCCESS&&e.conversationID===o&&(e._onlineOnlyFlag||i.push("".concat(e.sequence)),s.push(e))}));else if(r.conversationType===S.CONV_SYSTEM)return vi({code:Aa.CANNOT_DELETE_GROUP_SYSTEM_NOTICE});if(!n)return this._onCannotFindModule();if(0===i.length)return this._onMessageDeleted(s);i.length>30&&(i=i.slice(0,30),s=s.slice(0,30));var c=new Ka("deleteMessage");c.setMessage("to:".concat(a," count:").concat(i.length));var l="".concat(this._n,".").concat("deleteMessage");return n.deleteMessage({to:a,keyList:i}).then((function(e){return c.end(),Ge.i("".concat(l," ok")),t._onMessageDeleted(s)})).catch((function(e){t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];c.setError(e,r,o).end()})),Ge.w("".concat(l," failed. error:"),e);var n=new pi({code:e&&e.code?e.code:Aa.MESSAGE_DELETE_FAIL,message:e&&e.message?e.message:void 0});return vi(n)}))}},{key:"_onMessageDeleted",value:function(e){return this.getModule(Yn).onMessageDeleted(e),mi({messageList:e})}},{key:"translateText",value:function(e){var t="".concat(this._n,".").concat("translateText"),r=e.sourceTextList,o=e.sourceLanguage,a=e.targetLanguage,i=new Ka("translateText");return i.setMessage("sourceLanguage:".concat(o," targetLanguage:").concat(a)),this.request({protocolName:La,requestData:{sourceTextList:r,source:o||"auto",target:a,from:this.getMyTinyID(),SDKAppID:this.getSDKAppID()}}).then((function(e){var r=e.data,o=r.error,a=r.requestID,s=r.translatedTextList;if(0===o.code)return i.end(),Ge.i("".concat(t," ok. requestID:").concat(a)),di({translatedTextList:s});throw n(n({},o),{},{requestID:a})})).catch((function(e){return i.setCode(e.code).setMoreMessage(e.requestID).end(),Ge.w("".concat(t," failed. error:"),e),vi({code:Aa.TRANSLATE_TEXT_FAIL})}))}},{key:"modifyRemoteMessage",value:function(e){var t=this,n=null,r=e.conversationType,o=e.to;if(this.getModule(Fn).isMessageFromOrToAVChatroom(o))return vi({code:Aa.MESSAGE_MODIFY_DISABLED_IN_AVCHATROOM,data:{message:e}});if(!1===this.getModule(lr).filterMessage(e))return vi({code:Aa.PROFANITY_FOUND,data:{message:e}});r===S.CONV_C2C?n=this.getModule(Bn):r===S.CONV_GROUP&&(n=this.getModule(Fn));var a=new Ka("modifyMessage");a.setMessage("to:".concat(o));var i="".concat(this._n,".modifyRemoteMessage");return n.modifyRemoteMessage(e).then((function(n){a.end(),Ge.i("".concat(i," ok"));var r=t._onModifyRemoteMessageResp(e,n.data);return di({message:r})})).catch((function(n){if(a.setCode(n.code).setMoreMessage(n.message).end(),Ge.w("".concat(i," failed. error:"),n),20027===n.code){var r=t._onModifyRemoteMessageResp(e,n.data);return vi({code:Aa.MESSAGE_MODIFY_CONFLICT,data:{message:r}})}return vi({code:n.code,message:n.message,data:{message:e}})}))}},{key:"_onModifyRemoteMessageResp",value:function(e,t){Ge.d("".concat(this._n,"._onModifyRemoteMessageResp options:"),t);var n=e.conversationType,r=e.from,o=e.to,a=e.random,i=e.sequence,s=e.time,c=t.elements,l=t.messageVersion,u=t.cloudCustomData,d=void 0===u?"":u;return this.getModule(Yn).onMessageModified({conversationType:n,from:r,to:o,time:s,random:a,sequence:i,elements:c,cloudCustomData:d,messageVersion:l})}},{key:"_generateUUID",value:function(e){var t=this.getModule(qn),n="".concat(t.getSDKAppID(),"-").concat(t.getUserID(),"-").concat(function(){for(var e="",t=32;t>0;--t)e+=Mt[Math.floor(Math.random()*kt)];return e}()),r=e.name||e.value||e.url||e.tempFilePath,o=r&&r.slice(r.lastIndexOf(".")+1);return o&&(n="".concat(n,".").concat(o)),n}},{key:"getMessageOption",value:function(e){return this._messageOptionsMap.get(e)}},{key:"_getNickAndAvatarByUserID",value:function(e){return this.getModule(Vn).getNickAndAvatarByUserID(e)}},{key:"_getNameCardByGroupID",value:function(e){if(e.conversationType===S.CONV_GROUP){var t=this.getModule(Fn);if(t)return t.getMyNameCardByGroupID(e.to)}return""}},{key:"reset",value:function(){Ge.l("".concat(this._n,".reset")),this._messageOptionsMap.clear()}}]),r}(fr),Us=function(e){c(n,e);var t=g(n);function n(e){var r;return o(this,n),(r=t.call(this,e))._n="MessageExtensionModule",r.messageExtensionMap=new Map,r.globalSeqMap=new Map,r.getMessageExtensionsMap=new Map,r}return i(n,[{key:"onMessageExtensionNotify",value:function(e){var t=this,n=e.dataList,r=n.messageInfo,o=n.operateType,a=n.operateResultList,i=n.tinyID,s=n.globalSequence,c=r.clientTime,l=r.random,u="".concat(i,"-").concat(c,"-").concat(l),d=[],p=[];Ge.l("".concat(this._n,".onMessageExtensionNotify messageID:").concat(u," operateType:").concat(o," globalSequence:").concat(s)),this._updateGlobalSequence(u,s);var f=!1,h=!1;a.forEach((function(e){var n=e.extensions,r=void 0===n?[]:n,a=e.clearSequence;1===o?(f=!0,r.forEach((function(e){d.push({key:e.key,value:e.value})})),t._updateLocalExtension(u,r)):2===o?(h=!0,r.forEach((function(e){p.push(e.key)})),t._updateLocalExtension(u,r)):3===o&&(h=!0,t._hasLocalExtension(u)&&t._getLocalExtension(u).forEach((function(e,t){e.seq<=a&&!en(e.value)&&p.push(t)})),t._clearLocalExtension(u,a))})),f&&this.emitOuterEvent(I.MESSAGE_EXTENSIONS_UPDATED,{messageID:u,extensions:d}),h&&this.emitOuterEvent(I.MESSAGE_EXTENSIONS_DELETED,{messageID:u,keyList:p})}},{key:"setMessageExtensions",value:function(e,t){var n=this;if(!this.canIUse(z.MSG_EXT))return vi({code:Aa.CANNOT_USE_COMMERCIAL_ABILITY});var r="".concat(this._n,".").concat("setMessageExtensions"),o=e.ID,a=e.conversationID,i=e.sequence,s=e.time,c=y(t);t.length>20&&(c=t.slice(0,20),Ge.w("".concat(r,". the length of extensions cannot exceed 20.")));var l="conversationID:".concat(a," messageID:").concat(o," sequence:").concat(i," time:").concat(s," count:").concat(c.length),u=new Ka("setMessageExtensions");return u.setMessage(l),Ge.l("".concat(r," ").concat(l)),this._modifyMessageExtensions(e,c).then((function(e){var t=e.resultList,n=e.successCount,o=e.failureCount,a="success count:".concat(n," fail count:").concat(o);return u.setMoreMessage(a).end(),Ge.l("".concat(r," ok. ").concat(a)),di({extensions:t})})).catch((function(e){return n.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];u.setError(e,r,o).end()})),Ge.e("".concat(r," failed. error:"),e),vi(e)}))}},{key:"getMessageExtensions",value:function(e){var t=this;if(!this.canIUse(z.MSG_EXT))return vi({code:Aa.CANNOT_USE_COMMERCIAL_ABILITY});var n="".concat(this._n,".").concat("getMessageExtensions"),r=e.ID,o=e.conversationID,a=e.sequence,i=e.time,s="conversationID:".concat(o," messageID:").concat(r," sequence:").concat(a," time:").concat(i),c=new Ka("getMessageExtensions");c.setMessage(s),Ge.l("".concat(n," ").concat(s));var l=void 0;return this.getMessageExtensionsMap.has(r)&&(l=this._getGlobalSequence(r)),this._getMessageExtensions(e,l).then((function(e){return c.end(),Ge.l("".concat(n," ok. total count:").concat(e.length)),pt(l)&&e.length>0&&t.getMessageExtensionsMap.set(r,1),di({extensions:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];c.setError(e,r,o).end()})),Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"deleteMessageExtensions",value:function(e,t){var n=this;if(!this.canIUse(z.MSG_EXT))return vi({code:Aa.CANNOT_USE_COMMERCIAL_ABILITY});var r="".concat(this._n,".").concat("deleteMessageExtensions"),o=[],a=3;en(t)||(a=2,t.forEach((function(e){o.push({key:e,value:"",seq:0})})));var i=e.ID,s=e.conversationID,c=e.sequence,l=e.time,u="conversationID:".concat(s," messageID:").concat(i," sequence:").concat(c," time:").concat(l," operateType:").concat(a),d=new Ka("deleteMessageExtensions");return d.setMessage(u),Ge.l("".concat(r," ").concat(u)),this._modifyMessageExtensions(e,o,a).then((function(e){var t=e.resultList,n=e.successCount,o=e.failureCount,i="";return 2===a&&(i="success count:".concat(n," fail count:").concat(o)),d.setMoreMessage("".concat(i)).end(),Ge.l("".concat(r," ok. ").concat(i)),di({extensions:t})})).catch((function(e){return n.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];d.setError(e,r,o).end()})),Ge.e("".concat(r," failed. error:"),e),vi(e)}))}},{key:"_modifyMessageExtensions",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=Dt(e.to)?S.CONV_TOPIC:e.conversationType,a=void 0;3!==r&&(a=this._getRequestExtensions(e,t));var i=null;switch(o){case S.CONV_C2C:i=this.getModule(Bn);break;case S.CONV_GROUP:i=this.getModule(Fn);break;case S.CONV_TOPIC:i=this.getModule(Hn);break;default:return vi({code:Aa.CANNOT_FIND_MODULE})}return i.modifyMessageExtensions(e,a,r).then((function(t){var r=t.data,o=r.extensions,a=r.seq,i=[],s=0,c=0,l=[];return(o=en(o)?[]:o).forEach((function(e){var t=e.errorCode,n=e.extension,r=n.key,o=n.value,a=n.seq;i.push({code:t,key:r,value:o}),0===t?s++:c++,l.push({key:r,value:o,seq:a})})),n._updateGlobalSequence(e.ID,a),l.length>0&&(n._updateLocalExtension(e.ID,l),l=null),{resultList:i,successCount:s,failureCount:c}})).catch((function(e){return vi(e)}))}},{key:"_getRequestExtensions",value:function(e,t){var n=[];if(this._hasLocalExtension(e.ID)){var r=this._getLocalExtension(e.ID);return t.forEach((function(e){var t=e.key,o=e.value,a=0;r.has(t)&&(a=r.get(t).seq),n.push({key:t,value:o,seq:a})})),n}return t.forEach((function(e){var t=e.key,r=e.value;n.push({key:t,value:r,seq:0})})),n}},{key:"_getMessageExtensions",value:function(e,t){var n=this,r="".concat(this._n,"._getMessageExtensions"),o=e.ID,a=e.to,i=null;switch(Dt(a)?S.CONV_TOPIC:e.conversationType){case S.CONV_C2C:i=this.getModule(Bn);break;case S.CONV_GROUP:i=this.getModule(Fn);break;case S.CONV_TOPIC:i=this.getModule(Hn);break;default:return vi({code:Aa.CANNOT_FIND_MODULE})}return i.getMessageExtensions(e,t).then((function(t){var a=t.data,i=a.extensions,s=a.completeFlag,c=a.globalSequence,l=a.clearSequence;if(i=en(i)?[]:i,Ge.l("".concat(r," ok. completeFlag:").concat(s," globalSequence:").concat(c," clearSequence:").concat(l," count:").concat(i.length)),n._updateLocalExtension(o,i),n._clearLocalExtension(o,l),n._updateGlobalSequence(o,c),1!==s){var u=i.slice(-1)[0].seq+1;return n._getMessageExtensions(e,u)}return n._getLocalExtensions(o)})).catch((function(e){return vi(e)}))}},{key:"_hasLocalExtension",value:function(e){return this.messageExtensionMap.has(e)}},{key:"_getLocalExtension",value:function(e){return this.messageExtensionMap.get(e)}},{key:"_updateLocalExtension",value:function(e,t){this._hasLocalExtension(e)||this.messageExtensionMap.set(e,new Map);var n=this._getLocalExtension(e);t.forEach((function(e){var t=e.key,r=e.value,o=void 0===r?"":r,a=e.seq;n.set(t,{value:o,seq:a})}))}},{key:"_clearLocalExtension",value:function(e,t){if(!(t<=0)&&this._hasLocalExtension(e)){var n=this._getLocalExtension(e);n.forEach((function(e,r){e.seq<=t&&n.delete(r)}))}}},{key:"_getLocalExtensions",value:function(e){var t=[];return this._hasLocalExtension(e)&&this._getLocalExtension(e).forEach((function(e,n){var r=e.value;en(r)||t.push({key:n,value:r})})),t}},{key:"_getGlobalSequence",value:function(e){return this.globalSeqMap.get(e)}},{key:"_updateGlobalSequence",value:function(e,t){this.globalSeqMap.set(e,t)}},{key:"reset",value:function(){Ge.l("".concat(this._n,".reset")),this.messageExtensionMap.clear(),this.globalSeqMap.clear(),this.getMessageExtensionsMap.clear()}}]),n}(fr),Vs=function(e){c(n,e);var t=g(n);function n(e){var r;return o(this,n),(r=t.call(this,e))._n="ComboMessageModule",r}return i(n,[{key:"sendMessage",value:function(e){var t=this,n=this._constructMessageInstance(e);if(null===n)return vi({code:Aa.MESSAGE_SEND_FAIL});this._addSendMessageTotalCount(n);var r=Date.now();return this.getModule(Yn).setMessageRandom(n),this._sendComboMessage(n,e).then((function(e){var o=e.data,a=o.time,i=o.sequence,s=o.readReceiptCode;st(s)&&0!==s&&(new Ka("sendMessageWithReceipt").setMessage("from:".concat(n.from," to:").concat(n.to," sequence:").concat(i," readReceiptCode:").concat(s)).end(),Ge.w("".concat(t._n,".sendMessage readReceiptCode:").concat(s," message:").concat(t.getErrorMessage(s)))),t._addSendMessageSuccessCount(n,r);var c=t.getModule(Yn);n.status=on.SUCCESS,n.time=a,n.conversationType===S.CONV_GROUP&&(n.sequence=i),c.appendToMessageList(n);var l=n;return!0===n._isExcludedFromLastMessage&&(l=""),c.onMessageSent({conversationOptionsList:[{conversationID:n.conversationID,unreadCount:0,type:n.conversationType,subType:n.conversationSubType,lastMessage:l}]}),di({message:n})})).catch((function(e){return t._onSendMessageFailed(n,e)}))}},{key:"_sendComboMessage",value:function(e,t){var n=this._m.getModule(er),r="";return e.conversationType===S.CONV_C2C&&(r="".concat(G.NAME.OPEN_IM,".").concat(G.CMD.SEND_MESSAGE)),e.conversationType===S.CONV_GROUP&&(r="".concat(G.NAME.GROUP,".").concat(G.CMD.SEND_GROUP_MESSAGE)),n.sendComboMessage({servcmd:r,data:t})}},{key:"_constructMessageInstance",value:function(e){var t="".concat(this._n,"._constructMessageInstance"),n=null;try{var r=this.getMyUserID(),o={};if(o.senderTinyID=this.getMyTinyID(),o.currentUser=r,o.from=e.From_Account||r,e.GroupId?(o.conversationID="".concat(S.CONV_GROUP).concat(e.GroupId),o.conversationType=S.CONV_GROUP,o.to=e.GroupId):e.To_Account&&(o.conversationID="".concat(S.CONV_C2C).concat(e.To_Account),o.conversationType=S.CONV_C2C,o.to=e.To_Account),o.time=e.MsgTimeStamp||0,o.random=e.Random||e.MsgRandom||0,o.priority=e.MsgPriority,ct(e.CloudCustomData)&&e.CloudCustomData.length>0&&(o.cloudCustomData=e.CloudCustomData),dt(e.SendMsgControl)&&(o.messageControlInfo={},e.SendMsgControl.includes("NoUnread")&&(o.messageControlInfo.excludedFromUnreadCount=1),e.SendMsgControl.includes("NoLastMsg")&&(o.messageControlInfo.excludedFromLastMessage=1)),o.conversationType===S.CONV_GROUP&&dt(e.To_Account)&&e.To_Account.length>0){var a=e.To_Account;e.To_Account.length>50&&(a=e.To_Account.slice(0,50),Ge.w("".concat(t," To_Account must be less than or equal to 50."))),o.receiverList=y(a),e.To_Account=y(a)}1!==e.IsNeedReadReceipt&&1!==e.NeedReadReceipt||(o.needReadReceipt=!0),1===e.SupportMessageExtension&&(o.isSupportExtension=!0),(n=new ui(o)).status=on.UNSEND,e.MsgClientTime=n.clientTime,n.conversationType===S.CONV_C2C&&(e.MsgSeq=n.sequence);for(var i,s=e.MsgBody.length,c=0;c<s;c++)"TIMTextElem"===(i=e.MsgBody[c]).MsgType?n.setTextElement(i.MsgContent.Text):"TIMCustomElem"===i.MsgType?n.setCustomElement({data:i.MsgContent.Data||"",description:i.MsgContent.Desc||"",extension:i.MsgContent.Ext||""}):"TIMFaceElem"===i.MsgType&&n.setFaceElement({index:i.MsgContent.Index,data:i.MsgContent.Data});var l=n.getElements();n.payload=l[0].content,n.type=l[0].type}catch(d){n=null,Ge.e("".concat(t," failed. error:"),d)}return n}},{key:"_onSendMessageFailed",value:function(e,t){e.status=on.FAIL,this.getModule(Yn).deleteMessageRandom(e),this._addSendMessageFailCountOnUser(e,t);var n=new Ka("sendMessage");return n.setMessage("tjg_id:".concat(this.generateTjgID(e)," type:").concat(e.type," from:").concat(e.from," to:").concat(e.to)),this.probeNetwork().then((function(e){var r=_(e,2),o=r[0],a=r[1];n.setError(t,o,a).end()})),Ge.e("".concat(this._n,"._onSendMessageFailed error:"),t),vi(new pi({code:t&&t.code?t.code:Aa.MESSAGE_SEND_FAIL,message:t&&t.message?t.message:void 0,data:{message:e}}))}},{key:"_getSendMessageSpecifiedKey",value:function(e){if(e.conversationType===S.CONV_C2C)return Ra;if(e.conversationType===S.CONV_GROUP){var t=this.getModule(Fn).getLocalGroupProfile(e.to);if(!t)return;var n=t.type;return Et(n)?Ua:Pa}}},{key:"_addSendMessageTotalCount",value:function(e){var t=this._getSendMessageSpecifiedKey(e);t&&this.getModule(ir).addTotalCount(t)}},{key:"_addSendMessageSuccessCount",value:function(e,t){var n=Math.abs(Date.now()-t),r=this._getSendMessageSpecifiedKey(e);if(r){var o=this.getModule(ir);o.addSuccessCount(r),o.addCost(r,n)}}},{key:"_addSendMessageFailCountOnUser",value:function(e,t){var n=t.code,r=void 0===n?-1:n,o=this.getModule(ir),a=this._getSendMessageSpecifiedKey(e);Rs(r)&&a&&o.addFailedCountOfUserSide(a)}}]),n}(fr),Bs=function(e){c(n,e);var t=g(n);function n(e){var r;return o(this,n),(r=t.call(this,e))._n="PluginModule",r.plugins={},r}return i(n,[{key:"registerPlugin",value:function(e){var t=this;Object.keys(e).forEach((function(n){t.plugins[n]=e[n]})),new Ka("registerPlugin").setMessage("".concat(Object.keys(e))).end()}},{key:"getPlugin",value:function(e){return this.plugins[e]}},{key:"reset",value:function(){}}]),n}(fr),Fs=function(e){c(r,e);var t=g(r);function r(e){var n;return o(this,r),(n=t.call(this,e))._n="SyncUnreadMessageModule",n._cookie="",n._onlineSyncFlag=!1,n.getInnerEmitterInstance().on(yi,n._onLoginSuccess,m(n)),n}return i(r,[{key:"_onLoginSuccess",value:function(e){this._startSync({cookie:this._cookie,syncFlag:0,isOnlineSync:0})}},{key:"_startSync",value:function(e){var t=this,r=e.cookie,o=e.syncFlag,a=e.isOnlineSync,i="".concat(this._n,"._startSync");Ge.l("".concat(i," cookie:").concat(r," syncFlag:").concat(o," isOnlineSync:").concat(a)),this.request({protocolName:_r,requestData:{cookie:r,syncFlag:o,isOnlineSync:a}}).then((function(e){var r=e.data,o=r.cookie,a=r.syncFlag;t._cookie=o,en(o)||(0===a||1===a?(t._dispatchUnreadMessage(n(n({},e.data),{},{isSyncingEnded:!1})),t._startSync({cookie:o,syncFlag:a,isOnlineSync:0})):2===a&&t._dispatchUnreadMessage(n(n({},e.data),{},{isSyncingEnded:!0})))})).catch((function(e){Ge.e("".concat(i," failed. error:"),e)}))}},{key:"_dispatchUnreadMessage",value:function(e){e.eventArray&&this.getModule(er).onMessage({head:{},body:{eventArray:e.eventArray,isInstantMessage:this._onlineSyncFlag,isSyncingEnded:e.isSyncingEnded}}),this.getModule(Bn).onNewC2CMessage({dataList:e.messageList,isInstantMessage:!!e.isSyncingEnded&&this._onlineSyncFlag,C2CRemainingUnreadList:e.C2CRemainingUnreadList,C2CPairUnreadList:e.C2CPairUnreadList})}},{key:"startOnlineSync",value:function(){Ge.l("".concat(this._n,".startOnlineSync")),this._onlineSyncFlag=!0,this._startSync({cookie:this._cookie,syncFlag:0,isOnlineSync:1})}},{key:"startSyncOnReconnected",value:function(){Ge.l("".concat(this._n,".startSyncOnReconnected.")),this._onlineSyncFlag=!0,this._startSync({cookie:this._cookie,syncFlag:0,isOnlineSync:0})}},{key:"reset",value:function(){Ge.l("".concat(this._n,".reset")),this._onlineSyncFlag=!1,this._cookie=""}}]),r}(fr),Gs={request:{toAccount:"To_Account",fromAccount:"From_Account",to:"To_Account",from:"From_Account",groupID:"GroupId",groupAtUserID:"GroupAt_Account",extension:"Ext",data:"Data",description:"Desc",elements:"MsgBody",sizeType:"Type",downloadFlag:"Download_Flag",thumbUUID:"ThumbUUID",videoUUID:"VideoUUID",remoteAudioUrl:"Url",remoteVideoUrl:"VideoUrl",videoUrl:"",imageUrl:"URL",fileUrl:"Url",uuid:"UUID",priority:"MsgPriority",receiverUserID:"To_Account",receiverGroupID:"GroupId",messageSender:"SenderId",messageReceiver:"ReceiverId",nick:"From_AccountNick",avatar:"From_AccountHeadurl",messageNumber:"MsgNum",pbDownloadKey:"PbMsgKey",downloadKey:"JsonMsgKey",applicationType:"PendencyType",userIDList:"To_Account",groupNameList:"GroupName",userID:"To_Account",groupAttributeList:"GroupAttr",mainSequence:"AttrMainSeq",avChatRoomKey:"BytesKey",attributeControl:"AttrControl",sequence:"seq",messageControlInfo:"SendMsgControl",updateSequence:"UpdateSeq",clientTime:"MsgClientTime",sequenceList:"MsgSeqList",topicID:"TopicId",customData:"CustomString",isSupportTopic:"SupportTopic",isWebUniapp:"is_web_uniapp",isSupportExtension:"SupportMessageExtension",messageSequence:"MsgSeq",messageKey:"MsgKey",startSequence:"startSeq",simplifiedMessage:"DownsizeFlag"},response:{MsgPriority:"priority",ThumbUUID:"thumbUUID",VideoUUID:"videoUUID",Download_Flag:"downloadFlag",GroupId:"groupID",Member_Account:"userID",MsgList:"messageList",SyncFlag:"syncFlag",To_Account:"to",From_Account:"from",MsgSeq:"sequence",MsgRandom:"random",MsgTime:"time",MsgTimeStamp:"time",MsgContent:"content",MsgBody:"elements",From_AccountNick:"nick",From_AccountHeadurl:"avatar",GroupWithdrawInfoArray:"revokedInfos",GroupReadInfoArray:"groupMessageReadNotice",LastReadMsgSeq:"lastMessageSeq",WithdrawC2cMsgNotify:"c2cMessageRevokedNotify",C2cWithdrawInfoArray:"revokedInfos",C2cReadedReceipt:"c2cMessageReadReceipt",ReadC2cMsgNotify:"c2cMessageReadNotice",LastReadTime:"peerReadTime",MsgRand:"random",MsgType:"type",MsgShow:"messageShow",NextMsgSeq:"nextMessageSeq",FaceUrl:"avatar",ProfileDataMod:"profileModify",Profile_Account:"userID",ValueBytes:"value",ValueNum:"value",NoticeSeq:"noticeSequence",NotifySeq:"notifySequence",MsgFrom_AccountExtraInfo:"messageFromAccountExtraInformation",Operator_Account:"operatorID",OpType:"operationType",ReportType:"operationType",UserId:"userID",User_Account:"userID",List_Account:"userIDList",MsgOperatorMemberExtraInfo:"operatorInfo",MsgMemberExtraInfo:"memberInfoList",ImageUrl:"avatar",NickName:"nick",MsgGroupNewInfo:"newGroupProfile",MsgAppDefinedData:"groupCustomField",Owner_Account:"ownerID",GroupFaceUrl:"avatar",GroupIntroduction:"introduction",GroupNotification:"notification",GroupApplyJoinOption:"joinOption",MsgKey:"messageKey",GroupInfo:"groupProfile",ShutupTime:"muteTime",Desc:"description",Ext:"extension",GroupAt_Account:"groupAtUserID",MsgNum:"messageNumber",PbMsgKey:"pbDownloadKey",JsonMsgKey:"downloadKey",MsgModifiedFlag:"isModified",PendencyItem:"applicationItem",PendencyType:"applicationType",AddTime:"time",AddSource:"source",AddWording:"wording",ProfileImImage:"avatar",PendencyAdd:"friendApplicationAdded",FrienPencydDel_Account:"friendApplicationDeletedUserIDList",Peer_Account:"userID",GroupAttr:"groupAttributeList",GroupAttrAry:"groupAttributeList",AttrMainSeq:"mainSequence",seq:"sequence",GroupAttrOption:"groupAttributeOption",BytesChangedKeys:"changedKeyList",GroupAttrInfo:"groupAttributeList",GroupAttrSeq:"mainSequence",PushChangedAttrValFlag:"isWithChangedAttributeInfo",SubKeySeq:"sequence",Val:"value",MsgGroupFromCardName:"senderNameCard",MsgGroupFromNickName:"senderNick",C2cNick:"peerNick",C2cImage:"peerAvatar",SendMsgControl:"messageControlInfo",NoLastMsg:"excludedFromLastMessage",NoUnread:"excludedFromUnreadCount",UpdateSeq:"updateSequence",MuteNotifications:"muteFlag",MsgClientTime:"clientTime",TinyId:"tinyID",GroupMsgReceiptList:"readReceiptList",ReadNum:"readCount",UnreadNum:"unreadCount",TopicId:"topicID",MillionGroupFlag:"communityType",SupportTopic:"isSupportTopic",MsgTopicNewInfo:"newTopicInfo",ShutupAll:"muteAllMembers",CustomString:"customData",TopicFaceUrl:"avatar",TopicIntroduction:"introduction",TopicNotification:"notification",TopicIdArray:"topicIDList",MsgVersion:"messageVersion",C2cMsgModNotifys:"c2cMessageModified",GroupMsgModNotifys:"groupMessageModified",ApplyJoinOption:"joinOption",MsgFlag:"messageRemindType",AtInfoList:"groupAtInfoList",AtFlagList:"groupAtType",AtMsgSeq:"sequence",BanDuration:"duration",BanDescription:"reason",NotVisible:"invisible",BytesTag:"tag",BytesValue:"value",RptBytesValue:"value",LatestSeq:"globalSequence",ClearSeq:"clearSequence",SupportMessageExtension:"isSupportExtension",ExtensionList:"extensions",GroupCounter:"counterList",Revoker_Account:"revoker",MsgExtensionNotify:"messageExtensionNotify",ExtensionC2cMsgInfo:"messageInfo",ExtensionGroupMsgInfo:"messageInfo",MsgOptType:"operateType",SetKVInfo:"operateResultList",DeleteKVInfo:"operateResultList",ClearKVInfo:"operateResultList",MsgKeyValue:"extensions",ClearMsgSeq:"clearSequence",MsgLastSeq:"globalSequence",InviteJoinOption:"inviteOption",MemberList_Account:"inviteeList",MsgMemberExtraInfoList:"inviteeInfoList",E:"event",GInf:"groupProfile",MCT:"clientTime",MR:"random",MP:"priority",MTS:"time",GId:"groupID",MS:"sequence",CCD:"cloudCustomData",F_Account:"from",F_Hd:"avatar",F_NN:"nick",GN:"groupName",GT:"groupType",IsSys:"isSystemMessage",OpInf:"operatorInfo",Img:"avatar",NN:"nick",OnlineInf:"onlineMemberInfo",ET:"expireTime",Num:"onlineMemberNum",Opt:"operationType",O_Account:"operatorID",RT:"operationType",UDF:"userDefinedField",L_Account:"userIDList"},ignoreKeyWord:["C2C","ID","USP"]};function zs(e,t){if("string"!=typeof e&&!Array.isArray(e))throw new TypeError("Expected the input to be `string | string[]`");var n;return t=Object.assign({pascalCase:!1},t),0===(e=Array.isArray(e)?e.map((function(e){return e.trim()})).filter((function(e){return e.length})).join("-"):e.trim()).length?"":1===e.length?t.pascalCase?e.toUpperCase():e.toLowerCase():(e!==e.toLowerCase()&&(e=Hs(e)),e=e.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(function(e,t){return t.toUpperCase()})).replace(/\d+(\w|$)/g,(function(e){return e.toUpperCase()})),n=e,t.pascalCase?n.charAt(0).toUpperCase()+n.slice(1):n)}var Hs=function(e){for(var t=!1,n=!1,r=!1,o=0;o<e.length;o++){var a=e[o];t&&/[a-zA-Z]/.test(a)&&a.toUpperCase()===a?(e=e.slice(0,o)+"-"+e.slice(o),t=!1,r=n,n=!0,o++):n&&r&&/[a-zA-Z]/.test(a)&&a.toLowerCase()===a?(e=e.slice(0,o-1)+"-"+e.slice(o-1),r=n,n=!1,t=!0):(t=a.toLowerCase()===a&&a.toUpperCase()!==a,r=n,n=a.toUpperCase()===a&&a.toLowerCase()!==a)}return e};function Ys(e,t){var n=0;return function e(t,r){if(++n>100)return n--,t;if(dt(t)){var o=t.map((function(t){return lt(t)?e(t,r):t}));return n--,o}if(lt(t)){var a=(i=t,s=function(e,t){if(!gt(t))return!1;if((o=t)!==zs(o))for(var n=0;n<Gs.ignoreKeyWord.length&&!t.includes(Gs.ignoreKeyWord[n]);n++);var o;return pt(r[t])?function(e){return"OPPOChannelID"===e?e:e[0].toUpperCase()+zs(e).slice(1)}(t):r[t]},c=Object.create(null),Object.keys(i).forEach((function(e){var t=s(i[e],e);t&&(c[t]=i[e])})),c);return a=xt(a,(function(t,n){return dt(t)||lt(t)?e(t,r):t})),n--,a}var i,s,c}(e,t)}function qs(e,t){if(dt(e))return e.map((function(e){return lt(e)?qs(e,t):e}));if(lt(e)){var n=(r=e,o=function(e,n){return pt(t[n])?zs(n):t[n]},a={},Object.keys(r).forEach((function(e){a[o(r[e],e)]=r[e]})),a);return xt(n,(function(e){return dt(e)||lt(e)?qs(e,t):e}))}var r,o,a}var Ws=String.fromCharCode,Ks=function(e){var t=0|e.charCodeAt(0);if(55296<=t)if(t<56320){var n=0|e.charCodeAt(1);if(56320<=n&&n<=57343){if((t=(t<<10)+n-56613888|0)>65535)return Ws(240|t>>>18,128|t>>>12&63,128|t>>>6&63,128|63&t)}else t=65533}else t<=57343&&(t=65533);return t<=2047?Ws(192|t>>>6,128|63&t):Ws(224|t>>>12,128|t>>>6&63,128|63&t)},$s=function(e){for(var t=void 0===e?"":(""+e).replace(/[\x80-\uD7ff\uDC00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]?/g,Ks),n=0|t.length,r=new Uint8Array(n),o=0;o<n;o=o+1|0)r[o]=0|t.charCodeAt(o);return r},Js=function(e){for(var t=new Uint8Array(e),n="",r=0,o=t.length;r<o;){var a=t[r],i=0,s=0;if(a<=127?(i=0,s=255&a):a<=223?(i=1,s=31&a):a<=239?(i=2,s=15&a):a<=244&&(i=3,s=7&a),o-r-i>0)for(var c=0;c<i;)s=s<<6|63&(a=t[r+c+1]),c+=1;else s=65533,i=o-r;n+=String.fromCodePoint(s),r+=i+1}return n},Qs=function(){function e(t){o(this,e),this._handler=t;var n=t.getURL();if(this._socket=null,this._workerSocket=null,this._id=Ot(),this._handler.getIsWorkerEnabled()){var r=URL.createObjectURL(new Blob([';let _socket = null;onmessage = function(event) { if (event.data.cmd === "start") { const url = event.data.url; _socket = new WebSocket(url); _socket.binaryType = "arraybuffer"; _socket.onopen = function() { postMessage({ callback: "onOpen" }); }; _socket.onclose = function(e) { postMessage({ callback: "onOpen", e: { code: e.code, reason: e.reason } }); }; _socket.onmessage = function(e) { postMessage({ callback: "onMessage", data: e.data }); }; _socket.onerror = function(e) { postMessage({ callback: "onError", e: { isTrusted: "true" } }); }; } else if (event.data.cmd === "sendMessage") { if (_socket !== null) { _socket.send(event.data.data); } } else if (event.data.cmd === "stop") { if (_socket !== null) { _socket.close(event.data.code); _socket = null; } }};'],{type:"application/javascript; charset=utf-8"}));this._workerSocket=new Worker(r);var a=this;this._workerSocket.onmessage=function(e){var t=e.data,n=t.callback,r=t.e;"onOpen"===n?a._onOpen():"onClose"===n?a._onClose(r):"onError"===n?a._onError(r):"onMessage"===n&&a._onMessage(e.data)},this._workerSocket.postMessage({cmd:"start",id:this._id,url:n})}else ie?ne?(ce.connectSocket({url:n,header:{"content-type":"application/json"}}),ce.onSocketClose(this._onClose.bind(this)),ce.onSocketOpen(this._onOpen.bind(this)),ce.onSocketMessage(this._onMessage.bind(this)),ce.onSocketError(this._onError.bind(this))):(this._socket=ce.connectSocket({url:n,header:{"content-type":"application/json"},complete:function(){}}),this._socket.onClose(this._onClose.bind(this)),this._socket.onOpen(this._onOpen.bind(this)),this._socket.onMessage(this._onMessage.bind(this)),this._socket.onError(this._onError.bind(this))):se&&(this._socket=new WebSocket(n),this._socket.binaryType="arraybuffer",this._socket.onopen=this._onOpen.bind(this),this._socket.onmessage=this._onMessage.bind(this),this._socket.onclose=this._onClose.bind(this),this._socket.onerror=this._onError.bind(this));this._canIUseBinaryFrame=t.canIUseBinaryFrame()}return i(e,[{key:"getID",value:function(){return this._id}},{key:"_onOpen",value:function(){this._handler.onOpen({id:this._id})}},{key:"_onClose",value:function(e){this._handler.onClose({id:this._id,e:e})}},{key:"_onMessage",value:function(e){this._handler.onMessage({data:this._canIUseBinaryFrame?Js(e.data):e.data})}},{key:"_onError",value:function(e){this._handler.onError({id:this._id,e:e})}},{key:"setIsWorkerEnabled",value:function(e){this._isWorkerEnabled=!0}},{key:"close",value:function(e){if(this._workerSocket&&(this._workerSocket.postMessage({cmd:"stop",code:e}),this._workerSocket.terminate(),this._workerSocket=null),ne)return ce.offSocketClose(),ce.offSocketMessage(),ce.offSocketOpen(),ce.offSocketError(),void ce.closeSocket();this._socket&&(ie?(this._socket.onClose((function(){})),this._socket.onOpen((function(){})),this._socket.onMessage((function(){})),this._socket.onError((function(){}))):se&&(this._socket.onopen=null,this._socket.onmessage=null,this._socket.onclose=null,this._socket.onerror=null),te?this._socket.close({code:e}):this._socket.close(e),this._socket=null)}},{key:"send",value:function(e){if(this._workerSocket)this._workerSocket.postMessage({cmd:"sendMessage",data:this._canIUseBinaryFrame?$s(e.data).buffer:e.data});else{if(ne)return void ce.sendSocketMessage({data:e.data,fail:function(){e.fail&&e.requestID&&e.fail(e.requestID)}});this._socket&&(ie?this._socket.send({data:this._canIUseBinaryFrame?$s(e.data).buffer:e.data,fail:function(){e.fail&&e.requestID&&e.fail(e.requestID)}}):se&&this._socket.send(this._canIUseBinaryFrame?$s(e.data).buffer:e.data))}}}]),e}(),Xs=4e3,Zs=4001,ec=["keyMap"],tc=["keyMap"],nc="connected",rc="connecting",oc="disconnected",ac=function(){function e(t){o(this,e),this._channelModule=t,this._n="SocketHandler",this._promiseMap=new Map,this._readyState=oc,this._simpleRequestMap=new Map,this.MAX_SIZE=100,this._startSequence=Ot(),this._startTs=0,this._reConnectFlag=!1,this._nextPingTs=0,this._reConnectCount=0,this.MAX_RECONNECT_COUNT=3,this._socketID=-1,this._random=0,this._socket=null,this._url="",this._onOpenTs=0,this._canIUseBinaryFrame=!0,this._isWorkerEnabled=!0,this._setWebsocketHost(),this._initConnection()}return i(e,[{key:"_setWebsocketHost",value:function(){var e=this._channelModule.getModule(qn),t=N;this._channelModule.isOversea()&&(t=x),e.isSingaporeSite()?t=R:e.isKoreaSite()?t=P:e.isGermanySite()?t=U:e.isIndiaSite()?t=V:e.isJapanSite()?t=B:e.isUSASite()&&(t=F),G.HOST.setCurrent(t)}},{key:"_initConnection",value:function(){pt(G.HOST.CURRENT.BACKUP)||""===this._url?this._url=G.HOST.CURRENT.DEFAULT:this._url===G.HOST.CURRENT.DEFAULT?this._url=G.HOST.CURRENT.BACKUP:this._url===G.HOST.CURRENT.BACKUP?this._url=this._canIUseAnyCast()?G.HOST.CURRENT.ANYCAST:G.HOST.CURRENT.DEFAULT:this._url===G.HOST.CURRENT.ANYCAST&&(G.HOST.CURRENT.ANYCAST="",this._url=G.HOST.CURRENT.DEFAULT);var e=this._channelModule.getModule(qn).getProxyServer();en(e)||(this._url=e),this._connect(),this._nextPingTs=0}},{key:"_canIUseAnyCast",value:function(){return se&&G.HOST.CURRENT.ANYCAST}},{key:"onCheckTimer",value:function(e){e%1==0&&this._checkPromiseMap()}},{key:"_checkPromiseMap",value:function(){var e=this;0!==this._promiseMap.size&&this._promiseMap.forEach((function(t,n){var r=t.reject,o=t.timestamp,a=15e3;-1!==n.indexOf(hr)&&(a=9e4),Date.now()-o>=a&&(Ge.l("".concat(e._n,"._checkPromiseMap request timeout, delete requestID:").concat(n)),e._promiseMap.delete(n),r(new pi({code:Aa.NETWORK_TIMEOUT})),e._channelModule.onRequestTimeout(n))}))}},{key:"onOpen",value:function(e){if(""!==this._readyState){this._onOpenTs=Date.now();var t=e.id;this._socketID=t;var n=Date.now()-this._startTs;Ge.l("".concat(this._n,"._onOpen cost ").concat(n," ms. socketID:").concat(t)),new Ka("wsOnOpen").setMessage(n).setCostTime(n).setMoreMessage("socketID:".concat(t)).end(),e.id===this._socketID&&(this._readyState=nc,this._reConnectCount=0,this._resend(),!0===this._reConnectFlag&&(this._channelModule.onReconnected(),this._reConnectFlag=!1),this._channelModule.onOpen())}}},{key:"onClose",value:function(e){var t=new Ka("wsOnClose"),n=e.id,r=e.e,o="sourceSocketID:".concat(n," currentSocketID:").concat(this._socketID," code:").concat(r.code," reason:").concat(r.reason),a=0;0!==this._onOpenTs&&(a=Date.now()-this._onOpenTs),t.setMessage(a).setCostTime(a).setMoreMessage(o).setCode(r.code).end(),Ge.l("".concat(this._n,"._onClose ").concat(o," onlineTime:").concat(a)),n===this._socketID&&(this._readyState=oc,a<1e3?this._channelModule.onReconnectFailed():this._channelModule.onClose())}},{key:"onError",value:function(e){var t=e.id,n=e.e,r="sourceSocketID:".concat(t," currentSocketID:").concat(this._socketID);new Ka("wsOnError").setMessage(n.errMsg||yt(n)).setMoreMessage(r).setLevel("error").end(),Ge.w("".concat(this._n,"._onError"),n,r),t===this._socketID&&(this._readyState="",this._channelModule.onError())}},{key:"onMessage",value:function(e){var t;try{t=JSON.parse(e.data)}catch(u){new Ka("jsonParseError").setMessage(e.data).end()}if(t&&t.head){var n=this._getRequestIDFromHead(t.head),r=t.body;if(!n.startsWith(G.NAME.TUIROOM_SVR)){var o=Gt(t.head);r=qs(t.body,this._getResponseKeyMap(o))}if(Ge.d("".concat(this._n,".onMessage ret:").concat(JSON.stringify(r)," requestID:").concat(n," has:").concat(this._promiseMap.has(n))),this._setNextPingTs(),this._promiseMap.has(n)){var a=this._promiseMap.get(n),i=a.resolve,s=a.reject,c=a.timestamp;return this._promiseMap.delete(n),this._calcRTT(c),void(r.errorCode&&0!==r.errorCode?(this._channelModule.onErrorCodeNotZero(r),s(new pi({code:r.errorCode,message:r.errorInfo||"",data:n.includes(Kr)||n.includes(Vo)?{elements:r.elements,messageVersion:r.messageVersion,cloudCustomData:r.cloudCustomData}:void 0}))):i(di(r)))}this._channelModule.onMessage({head:t.head,body:r})}}},{key:"_calcRTT",value:function(e){var t=Date.now()-e;this._channelModule.getModule(ir).addRTT(t)}},{key:"_connect",value:function(){this._startTs=Date.now(),this._onOpenTs=0,this._socket=new Qs(this),this._socketID=this._socket.getID(),this._readyState=rc,Ge.l("".concat(this._n,"._connect isWorkerEnabled:").concat(this.getIsWorkerEnabled()," socketID:").concat(this._socketID," url:").concat(this.getURL())),new Ka("wsConnect").setMessage("socketID:".concat(this._socketID," url:").concat(this.getURL())).end()}},{key:"getURL",value:function(){this._channelModule.isDevMode()&&(this._canIUseBinaryFrame=!1);var e=Ut();(ne||X&&"windows"===e||oe)&&(this._canIUseBinaryFrame=!1);var t=-1;"ios"===e?t=ye||-1:"android"===e&&(t=Oe||-1);var n=this._channelModule.getModule(qn),r=this._channelModule.getPlatform(),o=n.getSDKAppID(),a=n.getInstanceID(),i="sdkappid=".concat(o,"&instanceid=").concat(a,"&random=").concat(this._getRandom(),"&platform=").concat(r,"&host=").concat(e,"&version=").concat(t);return this._canIUseBinaryFrame?"".concat(this._url,"/binfo?").concat(i):"".concat(this._url,"/info?").concat(i)}},{key:"_closeConnection",value:function(e){Ge.l("".concat(this._n,"._closeConnection socketID:").concat(this._socketID)),this._socket&&(this._socket.close(e),this._socketID=-1,this._socket=null,this._readyState=oc)}},{key:"_resend",value:function(){var e=this;if(Ge.l("".concat(this._n,"._resend reConnectFlag:").concat(this._reConnectFlag),"promiseMap.size:".concat(this._promiseMap.size," simpleRequestMap.size:").concat(this._simpleRequestMap.size)),this._promiseMap.size>0&&this._promiseMap.forEach((function(t,n){var r=t.uplinkData,o=t.resolve,a=t.reject;e._promiseMap.set(n,{resolve:o,reject:a,timestamp:Date.now(),uplinkData:r}),e._execute(n,r)})),this._simpleRequestMap.size>0){var t,n=w(this._simpleRequestMap);try{for(n.s();!(t=n.n()).done;){var r=_(t.value,2),o=r[0],a=r[1];this._execute(o,a)}}catch(s){n.e(s)}finally{n.f()}this._simpleRequestMap.clear()}}},{key:"send",value:function(e){var t=this;e.head.seq=this._getSequence(),e.head.reqtime=Math.floor(Date.now()/1e3),e.keyMap;var n=h(e,ec),r=this._getRequestIDFromHead(e.head),o=JSON.stringify(n);return new Promise((function(e,a){t._promiseMap.set(r,{resolve:e,reject:a,timestamp:Date.now(),uplinkData:o}),Ge.d("".concat(t._n,".send uplinkData:").concat(JSON.stringify(n)," requestID:").concat(r," readyState:").concat(t._readyState)),t._readyState!==nc?t._reConnect():(t._execute(r,o),t._channelModule.getModule(ir).addRequestCount())}))}},{key:"simplySend",value:function(e){e.head.seq=this._getSequence(),e.head.reqtime=Math.floor(Date.now()/1e3),e.keyMap;var t=h(e,tc),n=this._getRequestIDFromHead(e.head),r=JSON.stringify(t);this._readyState!==nc?(this._simpleRequestMap.size<this.MAX_SIZE?this._simpleRequestMap.set(n,r):Ge.l("".concat(this._n,".simplySend. simpleRequestMap is full, drop request!")),this._reConnect()):this._execute(n,r)}},{key:"_execute",value:function(e,t){this._socket.send({data:t,fail:ie?this._onSendFail.bind(this):void 0,requestID:e})}},{key:"_onSendFail",value:function(e){Ge.l("".concat(this._n,"._onSendFail requestID:").concat(e))}},{key:"_getSequence",value:function(){var e;if(this._startSequence<2415919103)return e=this._startSequence,this._startSequence+=1,2415919103===this._startSequence&&(this._startSequence=Ot()),e}},{key:"_getRequestIDFromHead",value:function(e){return e.servcmd+e.seq}},{key:"_getResponseKeyMap",value:function(e){var t=this._channelModule.getKeyMap(e);return n(n({},Gs.response),t.response)}},{key:"_reConnect",value:function(){this._readyState!==nc&&this._readyState!==rc&&this.forcedReconnect()}},{key:"forcedReconnect",value:function(){var e=this,t="".concat(this._n,".forcedReconnect");Ge.l("".concat(t," count:").concat(this._reConnectCount," readyState:").concat(this._readyState)),this._reConnectFlag=!0,this._resetRandom(),this._reConnectCount<this.MAX_RECONNECT_COUNT?(this._reConnectCount+=1,this._closeConnection(Zs),this._initConnection()):(this._reConnectCount=0,this._channelModule.probeNetwork().then((function(n){var r=_(n,2),o=r[0];r[1],o?(Ge.w("".concat(t," disconnected from wsserver but network is ok, continue...")),e._closeConnection(Zs),e._initConnection()):e._channelModule.onReconnectFailed()})))}},{key:"getReconnectFlag",value:function(){return this._reConnectFlag}},{key:"_setNextPingTs",value:function(){this._nextPingTs=Date.now()+1e4}},{key:"getNextPingTs",value:function(){return this._nextPingTs}},{key:"isConnected",value:function(){return this._readyState===nc}},{key:"canIUseBinaryFrame",value:function(){return this._canIUseBinaryFrame}},{key:"setIsWorkerEnabled",value:function(e){Ge.l("".concat(this._n,".setIsWorkerEnabled flag:").concat(e)),this._isWorkerEnabled=e}},{key:"getIsWorkerEnabled",value:function(){return this._isWorkerEnabled&&Te}},{key:"_getRandom",value:function(){return 0===this._random&&(this._random=Math.random()),this._random}},{key:"_resetRandom",value:function(){this._random=0}},{key:"close",value:function(){Ge.l("".concat(this._n,".close")),this._closeConnection(Xs),this._promiseMap.clear(),this._startSequence=Ot(),this._readyState=oc,this._simpleRequestMap.clear(),this._reConnectFlag=!1,this._reConnectCount=0,this._onOpenTs=0,this._url="",this._random=0,this._canIUseBinaryFrame=!0,this._isWorkerEnabled=!0}}]),e}(),ic=function(e){c(n,e);var t=g(n);function n(e){var r;if(o(this,n),(r=t.call(this,e))._n="ChannelModule",r._socketHandler=new ac(m(r)),r._probing=!1,r._isAppShowing=!0,r._previousState=S.NET_STATE_CONNECTED,ie&&"function"==typeof ce.onAppShow&&"function"==typeof ce.onAppHide){var a=r._onAppHide.bind(m(r)),i=r._onAppShow.bind(m(r));"function"==typeof ce.offAppHide&&ce.offAppHide(a),"function"==typeof ce.offAppShow&&ce.offAppShow(i),ce.onAppHide(a),ce.onAppShow(i)}return r._timerForNotLoggedIn=-1,r._timerForNotLoggedIn=setInterval(r.onCheckTimer.bind(m(r)),1e3),r._fatalErrorFlag=!1,r}return i(n,[{key:"onCheckTimer",value:function(e){this._socketHandler&&(this.isLoggedIn()?(this._timerForNotLoggedIn>0&&(clearInterval(this._timerForNotLoggedIn),this._timerForNotLoggedIn=-1),this._socketHandler.onCheckTimer(e)):this._socketHandler.onCheckTimer(1),this._checkNextPing())}},{key:"onErrorCodeNotZero",value:function(e){this.getModule(er).onErrorCodeNotZero(e)}},{key:"onMessage",value:function(e){this.getModule(er).onMessage(e)}},{key:"send",value:function(e){return this._socketHandler?this._previousState!==S.NET_STATE_CONNECTED&&e.head.servcmd.includes(sa)?(this.reConnect(),this._sendLogViaHTTP(e)):this._socketHandler.send(e):Promise.reject()}},{key:"_sendLogViaHTTP",value:function(e){var t=G.HOST.CURRENT.STAT;return new Promise((function(n,r){var o="".concat(t,"/v4/imopenstat/tim_web_report_v2?sdkappid=").concat(e.head.sdkappid,"&reqtime=").concat(Date.now()),a=JSON.stringify(e.body),i="application/x-www-form-urlencoded;charset=UTF-8";if(ie)ce.request({url:o,data:a,method:"POST",timeout:3e3,header:{"content-type":i},success:function(){n()},fail:function(){r(new pi({code:Aa.NETWORK_ERROR}))}});else{var s=new XMLHttpRequest,c=setTimeout((function(){s.abort(),r(new pi({code:Aa.NETWORK_TIMEOUT}))}),3e3);s.onreadystatechange=function(){4===s.readyState&&(clearTimeout(c),200===s.status||304===s.status?n():r(new pi({code:Aa.NETWORK_ERROR})))},s.open("POST",o,!0),s.setRequestHeader("Content-type",i),s.send(a)}}))}},{key:"simplySend",value:function(e){return this._socketHandler?this._socketHandler.simplySend(e):Promise.reject()}},{key:"onOpen",value:function(){this._ping()}},{key:"onClose",value:function(){this._socketHandler&&this._socketHandler.getReconnectFlag()&&this._emitNetStateChangeEvent(S.NET_STATE_DISCONNECTED),this.reConnect()}},{key:"onError",value:function(){ie&&!oe&&this.outputWarning("DomainNameInMP"),this._emitNetStateChangeEvent(S.NET_STATE_DISCONNECTED)}},{key:"getKeyMap",value:function(e){return this.getModule(er).getKeyMap(e)}},{key:"_onAppHide",value:function(){this._isAppShowing=!1}},{key:"_onAppShow",value:function(){this._isAppShowing=!0}},{key:"onRequestTimeout",value:function(e){}},{key:"onReconnected",value:function(){Ge.l("".concat(this._n,".onReconnected")),this._m.restartTimer(),this.getModule(er).onReconnected(),this._emitNetStateChangeEvent(S.NET_STATE_CONNECTED)}},{key:"onReconnectFailed",value:function(){Ge.l("".concat(this._n,".onReconnectFailed")),this._emitNetStateChangeEvent(S.NET_STATE_DISCONNECTED)}},{key:"setIsWorkerEnabled",value:function(e){this._socketHandler&&this._socketHandler.setIsWorkerEnabled(!1)}},{key:"offline",value:function(){this._emitNetStateChangeEvent(S.NET_STATE_DISCONNECTED)}},{key:"reConnect",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!1;this._socketHandler&&(t=this._socketHandler.getReconnectFlag());var n="forcedFlag:".concat(e," fatalErrorFlag:").concat(this._fatalErrorFlag," previousState:").concat(this._previousState," reconnectFlag:").concat(t);if(Ge.l("".concat(this._n,".reConnect ").concat(n)),!this._fatalErrorFlag&&this._socketHandler){if(!0===e)this._socketHandler.forcedReconnect();else{if(this._previousState===S.NET_STATE_CONNECTING&&t)return;this._socketHandler.forcedReconnect()}this._emitNetStateChangeEvent(S.NET_STATE_CONNECTING)}}},{key:"_emitNetStateChangeEvent",value:function(e){this._previousState!==e&&(Ge.l("".concat(this._n,"._emitNetStateChangeEvent from ").concat(this._previousState," to ").concat(e)),this._previousState=e,this.emitOuterEvent(I.NET_STATE_CHANGE,{state:e}))}},{key:"_ping",value:function(){var e=this;if(!0!==this._probing){this._probing=!0;var t=this.getModule(er).getProtocolData({protocolName:ca});this.send(t).then((function(){e._probing=!1})).catch((function(t){if(Ge.w("".concat(e._n,"._ping failed. error:"),t),e._probing=!1,t&&60002===t.code)return new Ka("error").setMessage("code:".concat(t.code," message:").concat(t.message)).setNetworkType(e.getModule($n).getNetworkType()).end(),e._fatalErrorFlag=!0,void e._emitNetStateChangeEvent(S.NET_STATE_DISCONNECTED);e.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];Ge.l("".concat(e._n,"._ping failed. probe network, isAppShowing:").concat(e._isAppShowing," online:").concat(r," networkType:").concat(o)),r?e.reConnect():e._emitNetStateChangeEvent(S.NET_STATE_DISCONNECTED)}))}))}}},{key:"_checkNextPing",value:function(){this._socketHandler&&this._socketHandler.isConnected()&&Date.now()>=this._socketHandler.getNextPingTs()&&this._ping()}},{key:"dealloc",value:function(){this._socketHandler&&(this._socketHandler.close(),this._socketHandler=null),this._timerForNotLoggedIn>-1&&clearInterval(this._timerForNotLoggedIn)}},{key:"onRestApiKickedOut",value:function(){this._socketHandler&&(this._socketHandler.close(),this.reConnect(!0))}},{key:"reset",value:function(){Ge.l("".concat(this._n,".reset")),this._previousState=S.NET_STATE_CONNECTED,this._probing=!1,this._fatalErrorFlag=!1,this._timerForNotLoggedIn=setInterval(this.onCheckTimer.bind(this),1e3)}}]),n}(fr),sc=["a2","tinyid"],cc=["a2","tinyid"],lc=function(){function e(t){o(this,e),this._n="ProtocolHandler",this._sessionModule=t,this._configMap=new Map,this._fillConfigMap()}return i(e,[{key:"_fillConfigMap",value:function(){this._configMap.clear();var e=this._sessionModule.genCommonHead(),t=this._sessionModule.genCosSpecifiedHead(),r=this._sessionModule.genSSOReportHead(),o=this._sessionModule.isIntl();this._configMap.set(hr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_OPEN_STATUS,".").concat(G.CMD.LOGIN)}),body:{state:"Online",isWebUniapp:0,deviceBrand:0},keyMap:{request:{deviceBrand:"InstType"},response:{InstId:"instanceID",HelloInterval:"helloInterval"}}}}(e)),this._configMap.set(mr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_OPEN_STATUS,".").concat(G.CMD.LOGOUT)}),body:{type:0},keyMap:{request:{type:"wslogout_type"}}}}(e)),this._configMap.set(vr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_OPEN_STATUS,".").concat(G.CMD.HELLO)}),body:{isWebUniapp:0},keyMap:{response:{NewInstInfo:"newInstanceInfo"}}}}(e)),this._configMap.set(gr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.STAT_SERVICE,".").concat(G.CMD.KICK_OTHER)}),body:{}}}(e)),this._configMap.set(oa,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_COS_SIGN,".").concat(G.CMD.COS_SIGN)}),body:{cmd:"open_im_cos_svc",subCmd:"get_cos_token",duration:300,version:2},keyMap:{request:{userSig:"usersig",subCmd:"sub_cmd",cmd:"cmd",duration:"duration",version:"version"},response:{expired_time:"expiredTime",bucket_name:"bucketName",session_token:"sessionToken",tmp_secret_id:"secretId",tmp_secret_key:"secretKey"}}}}(t)),this._configMap.set(aa,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.CUSTOM_UPLOAD,".").concat(G.CMD.COS_PRE_SIG)}),body:{fileType:void 0,fileName:void 0,uploadMethod:0,duration:900},keyMap:{request:{userSig:"usersig",fileType:"file_type",fileName:"file_name",uploadMethod:"upload_method"},response:{expired_time:"expiredTime",request_id:"requestId",head_url:"headUrl",upload_url:"uploadUrl",download_url:"downloadUrl",ci_url:"ciUrl",snapshot_url:"requestSnapshotUrl"}}}}(t)),this._configMap.set(ia,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.CUSTOM_UPLOAD,".").concat(G.CMD.VIDEO_COVER)}),body:{version:1,platform:void 0,coverName:void 0,requestSnapshotUrl:void 0},keyMap:{request:{version:"version",platform:"platform",coverName:"cover_name",requestSnapshotUrl:"snapshot_url"},response:{error_code:"errorCode",error_msg:"errorInfo",download_url:"snapshotUrl"}}}}(t)),this._configMap.set(ga,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_CONFIG_MANAGER,".").concat(G.CMD.FETCH_COMMERCIAL_CONFIG)}),body:{SDKAppID:0},keyMap:{request:{SDKAppID:"uint32_sdkappid"},response:{int32_error_code:"errorCode",str_error_message:"errorMessage",str_purchase_bits:"purchaseBits",uint32_expired_time:"expiredTime"}}}}(e)),this._configMap.set(_a,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_CONFIG_MANAGER,".").concat(G.CMD.PUSHED_COMMERCIAL_CONFIG)}),body:{},keyMap:{response:{int32_error_code:"errorCode",str_error_message:"errorMessage",str_purchase_bits:"purchaseBits",uint32_expired_time:"expiredTime"}}}}(e)),this._configMap.set(ma,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_CONFIG_MANAGER,".").concat(G.CMD.FETCH_CLOUD_CONTROL_CONFIG)}),body:{SDKAppID:0,version:0},keyMap:{request:{SDKAppID:"uint32_sdkappid",version:"uint64_version"},response:{int32_error_code:"errorCode",str_error_message:"errorMessage",str_json_config:"cloudControlConfig",uint32_expired_time:"expiredTime",uint32_sdkappid:"SDKAppID",uint64_version:"version"}}}}(e)),this._configMap.set(va,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_CONFIG_MANAGER,".").concat(G.CMD.PUSHED_CLOUD_CONTROL_CONFIG)}),body:{},keyMap:{response:{int32_error_code:"errorCode",str_error_message:"errorMessage",str_json_config:"cloudControlConfig",uint32_expired_time:"expiredTime",uint32_sdkappid:"SDKAppID",uint64_version:"version"}}}}(e)),this._configMap.set(ya,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OVERLOAD_PUSH,".").concat(G.CMD.OVERLOAD_NOTIFY)}),body:{},keyMap:{response:{OverLoadServCmd:"overloadCommand",DelaySecs:"waitingTime"}}}}(e)),this._configMap.set(_r,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.GET_MESSAGES)}),body:{cookie:"",syncFlag:0,needAbstract:1,isOnlineSync:0,needSignaling:1},keyMap:{request:{fromAccount:"From_Account",toAccount:"To_Account",from:"From_Account",to:"To_Account",time:"MsgTimeStamp",sequence:"MsgSeq",random:"MsgRandom",elements:"MsgBody"},response:{MsgList:"messageList",SyncFlag:"syncFlag",To_Account:"to",From_Account:"from",ClientSeq:"clientSequence",MsgSeq:"sequence",NoticeSeq:"noticeSequence",NotifySeq:"notifySequence",MsgRandom:"random",MsgTimeStamp:"time",MsgContent:"content",ToGroupId:"to",MsgKey:"messageKey",GroupTips:"groupTips",MsgBody:"elements",MsgType:"type",C2CRemainingUnreadCount:"C2CRemainingUnreadList",C2CPairUnreadCount:"C2CPairUnreadList"}}}}(e)),o||(this._configMap.set(yr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.BIG_DATA_HALLWAY_AUTH_KEY)}),body:{}}}(e)),this._configMap.set(Da,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_MSG_AUDIT_MGR,".").concat(G.CMD.GET_RPOFANITY_LIST)}),body:{version:0,deviceID:"",startIndex:void 0},keyMap:{request:{version:"uint64_version",deviceID:"str_device_id",startIndex:"uint64_start_index"},response:{msg_cmd_error_code:"errorInfo",str_err_msg:"errorMessage",uint32_code:"errorCode",msg_scene_ctl_config:"filterConfig",uint64_c2c_custom_msg_flag:"c2c_custom_message",uint64_c2c_text_msg_flag:"c2c_text_message",uint64_group_custom_msg_flag:"group_custom_message",uint64_group_text_msg_flag:"group_text_message",uint64_group_info_flag:"group_profile",uint64_group_member_info_flag:"group_member_profile",uint64_relation_chain_flag:"sns",uint64_user_info_flag:"user_profile",rpt_msg_dirty_word:"lexicon",str_dirty_word:"profanity",str_replaced_content:"replacement",uint64_filter_type:"filterType",uint64_id:"id",uint64_word_type:"profanityType",uint64_complete_flag:"completeFlag",uint64_next_start_index:"nextStartIndex",uint64_version:"version",uint64_expired_time:"expiredTime"}}}}(e))),this._configMap.set(br,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.SEND_MESSAGE)}),body:{fromAccount:"",toAccount:"",msgSeq:0,msgRandom:0,msgBody:[],cloudCustomData:void 0,nick:"",avatar:"",msgLifeTime:void 0,offlinePushInfo:{pushFlag:0,title:"",desc:"",ext:"",apnsInfo:{badgeMode:0,isVoipPush:void 0},androidInfo:{OPPOChannelID:""}},messageControlInfo:void 0,clientTime:void 0,needReadReceipt:0,isSupportExtension:0},keyMap:{request:{fromAccount:"From_Account",toAccount:"To_Account",msgTimeStamp:"MsgTimeStamp",msgSeq:"MsgSeq",msgRandom:"MsgRandom",msgBody:"MsgBody",count:"MaxCnt",lastMessageTime:"LastMsgTime",messageKey:"MsgKey",peerAccount:"Peer_Account",data:"Data",description:"Desc",extension:"Ext",type:"MsgType",content:"MsgContent",sizeType:"Type",uuid:"UUID",url:"",imageUrl:"URL",fileUrl:"Url",remoteAudioUrl:"Url",remoteVideoUrl:"VideoUrl",thumbUUID:"ThumbUUID",videoUUID:"VideoUUID",videoUrl:"",downloadFlag:"Download_Flag",nick:"From_AccountNick",avatar:"From_AccountHeadurl",from:"From_Account",time:"MsgTimeStamp",messageRandom:"MsgRandom",messageSequence:"MsgSeq",elements:"MsgBody",clientSequence:"ClientSeq",payload:"MsgContent",messageList:"MsgList",messageNumber:"MsgNum",abstractList:"AbstractList",messageBody:"MsgBody",needReadReceipt:"IsNeedReadReceipt"}}}}(e)),this._configMap.set(Or,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.SEND_GROUP_MESSAGE)}),body:{fromAccount:"",groupID:"",random:0,clientSequence:0,priority:"",msgBody:[],cloudCustomData:void 0,onlineOnlyFlag:0,offlinePushInfo:{pushFlag:0,title:"",desc:"",ext:"",apnsInfo:{badgeMode:0,isVoipPush:void 0},androidInfo:{OPPOChannelID:""}},groupAtInfo:[],messageControlInfo:void 0,clientTime:void 0,needReadReceipt:0,topicID:void 0,receiverList:void 0,isSupportExtension:0},keyMap:{request:{to:"GroupId",extension:"Ext",data:"Data",description:"Desc",random:"Random",sequence:"ReqMsgSeq",count:"ReqMsgNumber",type:"MsgType",priority:"MsgPriority",content:"MsgContent",elements:"MsgBody",sizeType:"Type",uuid:"UUID",url:"",imageUrl:"URL",fileUrl:"Url",remoteAudioUrl:"Url",remoteVideoUrl:"VideoUrl",thumbUUID:"ThumbUUID",videoUUID:"VideoUUID",videoUrl:"",downloadFlag:"Download_Flag",clientSequence:"ClientSeq",from:"From_Account",time:"MsgTimeStamp",messageRandom:"MsgRandom",messageSequence:"MsgSeq",payload:"MsgContent",messageList:"MsgList",messageNumber:"MsgNum",abstractList:"AbstractList",messageBody:"MsgBody",needReadReceipt:"NeedReadReceipt",receiverList:"To_Account"},response:{MsgTime:"time",MsgSeq:"sequence"}}}}(e)),this._configMap.set(Fr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.REVOKE_C2C_MESSAGE)}),body:{msgInfo:{fromAccount:"",toAccount:"",msgTimeStamp:0,msgSeq:0,msgRandom:0}},keyMap:{request:{msgInfo:"MsgInfo",msgTimeStamp:"MsgTimeStamp",msgSeq:"MsgSeq",msgRandom:"MsgRandom"}}}}(e)),this._configMap.set(wo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.REVOKE_GROUP_MESSAGE)}),body:{groupID:"",msgSeqList:void 0,topicID:""},keyMap:{request:{msgSeqList:"MsgSeqList",msgSeq:"MsgSeq"}}}}(e)),this._configMap.set(Yr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.GET_C2C_ROAM_MESSAGES)}),body:{peerAccount:"",count:15,lastMessageTime:0,messageKey:"",withRecalledMessage:1,direction:0},keyMap:{request:{messageKey:"MsgKey",peerAccount:"Peer_Account",count:"MaxCnt",lastMessageTime:"LastMsgTime",withRecalledMessage:"WithRecalledMsg",direction:"GetDirection"},response:{LastMsgTime:"lastMessageTime",IsNeedReadReceipt:"needReadReceipt",IsPeerRead:"readReceiptSentByPeer"}}}}(e)),this._configMap.set(Kr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.MODIFY_C2C_MESSAGE)}),body:{from:"",to:"",sequence:0,random:0,time:0,version:0,elements:void 0,cloudCustomData:void 0},keyMap:{request:{sequence:"MsgSeq",random:"MsgRandom",time:"MsgTime",version:"MsgVersion",type:"MsgType",content:"MsgContent"}}}}(e)),this._configMap.set(To,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.GET_GROUP_ROAM_MESSAGES)}),body:{withRecalledMsg:1,groupID:"",count:15,sequence:"",topicID:void 0},keyMap:{request:{sequence:"ReqMsgSeq",count:"ReqMsgNumber",withRecalledMessage:"WithRecalledMsg"},response:{Random:"random",MsgTime:"time",MsgSeq:"sequence",ReqMsgSeq:"sequence",RspMsgList:"messageList",IsPlaceMsg:"isPlaceMessage",IsSystemMsg:"isSystemMessage",ToGroupId:"to",EnumFrom_AccountType:"fromAccountType",EnumTo_AccountType:"toAccountType",GroupCode:"groupCode",MsgPriority:"priority",MsgBody:"elements",MsgType:"type",MsgContent:"content",IsFinished:"complete",Download_Flag:"downloadFlag",ClientSeq:"clientSequence",ThumbUUID:"thumbUUID",VideoUUID:"videoUUID",ToTopicId:"topicID",InvisibleMsgSeq:"invisibleSequenceList"}}}}(e)),this._configMap.set(Gr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.SET_C2C_MESSAGE_READ)}),body:{C2CMsgReaded:void 0},keyMap:{request:{lastMessageTime:"LastedMsgTime"}}}}(e)),this._configMap.set(zr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.SET_C2C_PEER_MUTE_NOTIFICATIONS)}),body:{userIDList:void 0,muteFlag:0},keyMap:{request:{userIDList:"Peer_Account",muteFlag:"Mute_Notifications"}}}}(e)),this._configMap.set(Hr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.GET_C2C_PEER_MUTE_NOTIFICATIONS)}),body:{updateSequence:0},keyMap:{response:{MuteNotificationsList:"muteFlagList"}}}}(e)),this._configMap.set(Io,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.SET_GROUP_MESSAGE_READ)}),body:{groupID:void 0,messageReadSeq:void 0,topicID:void 0},keyMap:{request:{messageReadSeq:"MsgReadedSeq"}}}}(e)),this._configMap.set(So,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.SET_ALL_MESSAGE_READ)}),body:{readAllC2CMessage:0,groupMessageReadInfoList:[]},keyMap:{request:{readAllC2CMessage:"C2CReadAllMsg",groupMessageReadInfoList:"GroupReadInfo",messageSequence:"MsgSeq"},response:{C2CReadAllMsg:"readAllC2CMessage",GroupReadInfoArray:"groupMessageReadInfoList"}}}}(e)),this._configMap.set(Wr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.DELETE_C2C_MESSAGE)}),body:{fromAccount:"",to:"",keyList:void 0},keyMap:{request:{keyList:"MsgKeyList"}}}}(e)),this._configMap.set(Uo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.DELETE_GROUP_MESSAGE)}),body:{groupID:"",deleter:"",keyList:void 0,topicID:void 0},keyMap:{request:{deleter:"Deleter_Account",keyList:"Seqs"}}}}(e)),this._configMap.set(La,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_OPEN_TRANSLATE,".").concat(G.CMD.TRANSLATE_TEXT)}),body:{sourceTextList:void 0,SDKAppID:0,from:0,source:"",target:""},keyMap:{request:{sourceTextList:"SourceText",SDKAppID:"SdkAppId",from:"FromAccount"},response:{TargetText:"translatedTextList",RequestId:"requestID",CmdErrorCode:"error",ErrorCode:"code",ErrorInfo:"message"}}}}(e)),this._configMap.set(Vo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.MODIFY_GROUP_MESSAGE)}),body:{groupID:"",topicID:void 0,sequence:0,version:0,elements:void 0,cloudCustomData:void 0},keyMap:{request:{sequence:"MsgSeq",version:"MsgVersion",type:"MsgType",content:"MsgContent"}}}}(e)),this._configMap.set(Eo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.GET_READ_RECEIPT)}),body:{groupID:"",sequenceList:void 0},keyMap:{request:{sequence:"MsgSeq"}}}}(e)),this._configMap.set(Do,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.SEND_C2C_READ_RECEIPT)}),body:{peerAccount:"",messageInfoList:void 0},keyMap:{request:{peerAccount:"Peer_Account",messageInfoList:"C2CMsgInfo",fromAccount:"From_Account",toAccount:"To_Account",sequence:"MsgSeq",random:"MsgRandom",time:"MsgTime",clientTime:"MsgClientTime"}}}}(e)),this._configMap.set(jo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.SEND_READ_RECEIPT)}),body:{groupID:"",sequenceList:void 0},keyMap:{request:{sequenceList:"MsgSeqList",sequence:"MsgSeq"}}}}(e)),this._configMap.set(Lo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.GET_READ_RECEIPT_DETAIL)}),body:{groupID:"",sequence:void 0,flag:0,cursor:0,count:0},keyMap:{request:{sequence:"MsgSeq",count:"Num"},response:{ReadList:"readUserIDList",Read_Account:"userID",UnreadList:"unreadUserIDList",Unread_Account:"userID",IsFinish:"isCompleted"}}}}(e)),this._configMap.set($r,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM_MSG_EXT,".").concat(G.CMD.MODIFY_C2C_MESSAGE_EXTENSIONS)}),body:{from:void 0,to:void 0,messageKey:void 0,operateType:void 0,extensionList:void 0}}}(e)),this._configMap.set(Jr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM_MSG_EXT,".").concat(G.CMD.GET_C2C_MESSAGE_EXTENSIONS)}),body:{from:void 0,to:void 0,messageKey:void 0,startSequence:void 0}}}(e)),this._configMap.set(Yo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM_MSG_EXT,".").concat(G.CMD.MODIFY_GROUP_MESSAGE_EXTENSIONS)}),body:{groupID:void 0,topicID:void 0,messageSequence:void 0,operateType:void 0,extensionList:void 0}}}(e)),this._configMap.set(qo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM_MSG_EXT,".").concat(G.CMD.GET_GROUP_MESSAGE_EXTENSIONS)}),body:{groupID:void 0,topicID:void 0,messageSequence:void 0,startSequence:void 0}}}(e)),this._configMap.set(qr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.GET_PEER_READ_TIME)}),body:{userIDList:void 0},keyMap:{request:{userIDList:"To_Account"},response:{ReadTime:"peerReadTimeList"}}}}(e)),this._configMap.set(Xr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.RECENT_CONTACT,".").concat(G.CMD.GET_CONVERSATION_LIST)}),body:{fromAccount:void 0,count:0},keyMap:{request:{},response:{SessionItem:"conversations",ToAccount:"groupID",To_Account:"userID",UnreadMsgCount:"unreadCount",MsgGroupReadedSeq:"messageReadSeq",C2cPeerReadTime:"c2cPeerReadTime"}}}}(e)),this._configMap.set(Qr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.RECENT_CONTACT,".").concat(G.CMD.PAGING_GET_CONVERSATION_LIST)}),body:{fromAccount:void 0,timeStamp:void 0,startIndex:void 0,pinnedTimeStamp:void 0,pinnedStartIndex:void 0,orderType:void 0,messageAssistFlag:4,assistFlag:15},keyMap:{request:{messageAssistFlag:"MsgAssistFlags",assistFlag:"AssistFlags",pinnedTimeStamp:"TopTimeStamp",pinnedStartIndex:"TopStartIndex"},response:{SessionItem:"conversations",ToAccount:"groupID",To_Account:"userID",UnreadMsgCount:"unreadCount",MsgGroupReadedSeq:"messageReadSeq",C2cPeerReadTime:"c2cPeerReadTime",LastMsgFlags:"lastMessageFlag",TopFlags:"isPinned",TopTimeStamp:"pinnedTimeStamp",TopStartIndex:"pinnedStartIndex",GroupId:"convGroupID"}}}}(e)),this._configMap.set(Zr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.RECENT_CONTACT,".").concat(G.CMD.DELETE_CONVERSATION)}),body:{fromAccount:"",conversationList:void 0,clearHistoryMessage:void 0},keyMap:{request:{toGroupID:"ToGroupid",clearHistoryMessage:"ClearRamble",conversationList:"ContactItem"},response:{ResultItem:"resultList",ToGroupid:"toGroupID",ResultCode:"code",ResultInfo:"info"}}}}(e)),this._configMap.set(eo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.RECENT_CONTACT,".").concat(G.CMD.CLEAR_HISTORY_MESSAGE)}),body:{fromAccount:"",toAccount:void 0,type:1,toGroupID:void 0},keyMap:{request:{toGroupID:"ToGroupid"}}}}(e)),this._configMap.set(to,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.RECENT_CONTACT,".").concat(G.CMD.PIN_CONVERSATION)}),body:{fromAccount:"",operationType:1,itemList:void 0},keyMap:{request:{itemList:"RecentContactItem"}}}}(e)),this._configMap.set(no,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.DELETE_GROUP_AT_TIPS)}),body:{messageListToDelete:void 0},keyMap:{request:{messageListToDelete:"DelMsgList",messageSeq:"MsgSeq",messageRandom:"MsgRandom"}}}}(e)),this._configMap.set(ro,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.RECENT_CONTACT,".").concat(G.CMD.MARK_CONVERSATION)}),body:{fromAccount:"",itemList:void 0},keyMap:{request:{itemList:"MarkItem",operationType:"OptType",groupID:"ToGroupId"},response:{ToGroupId:"groupID",OptType:"operationType"}}}}(e)),this._configMap.set(oo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.RECENT_CONTACT,".").concat(G.CMD.MARK_CONVERSATION)}),body:{fromAccount:"",itemList:void 0},keyMap:{request:{itemList:"MarkItem",operationType:"OptType",groupID:"ToGroupId"},response:{ToGroupId:"groupID",OptType:"operationType"}}}}(e)),this._configMap.set(ao,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.RECENT_CONTACT,".").concat(G.CMD.CREATE_CONVERSATION_GROUP)}),body:{fromAccount:"",itemList:void 0},keyMap:{request:{itemList:"GroupContactItem",groupID:"ToGroupId"},response:{GroupId:"convGroupID",ToGroupId:"groupID",OptType:"operationType"}}}}(e)),this._configMap.set(io,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.RECENT_CONTACT,".").concat(G.CMD.DELETE_CONVERSATION_GROUP)}),body:{fromAccount:"",groupName:void 0},keyMap:{request:{},response:{GroupId:"convGroupID"}}}}(e)),this._configMap.set(so,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.RECENT_CONTACT,".").concat(G.CMD.UPDATE_CONVERSATION_GROUP)}),body:{fromAccount:"",updateType:void 0,updateGroup:void 0},keyMap:{request:{oldName:"OldGroupName",newName:"NewGroupName",groupID:"ToGroupId",operationType:"ContactOptType",groupName:"OldGroupName",updateItem:"ContactUpdateItem"},response:{ContactOptType:"operationType",ToGroupId:"groupID",GroupId:"convGroupID"}}}}(e)),this._configMap.set(co,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.RECENT_CONTACT,".").concat(G.CMD.UPDATE_CONVERSATION_GROUP)}),body:{fromAccount:"",updateType:void 0,updateGroup:{groupName:void 0,updateGroupType:void 0,updateItem:void 0}},keyMap:{request:{},response:{}}}}(e)),this._configMap.set(lo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.RECENT_CONTACT,".").concat(G.CMD.UPDATE_CONVERSATION_GROUP)}),body:{fromAccount:"",updateType:void 0,updateGroup:void 0},keyMap:{request:{},response:{}}}}(e)),this._configMap.set(uo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.RECENT_CONTACT,".").concat(G.CMD.GET_CONVERSATION_GROUP_LIST)}),body:{fromAccount:"",startTime:void 0,startIndex:void 0},keyMap:{request:{},response:{GroupId:"convGroupID",ToGroupId:"groupID",OptType:"operationType",CustomMark:"customData",ContactGroupId:"convGroupIDList"}}}}(e)),this._configMap.set(Mr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.PROFILE,".").concat(G.CMD.PORTRAIT_GET)}),body:{fromAccount:"",userItem:[]},keyMap:{request:{toAccount:"To_Account",standardSequence:"StandardSequence",customSequence:"CustomSequence"}}}}(e)),this._configMap.set(kr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.PROFILE,".").concat(G.CMD.PORTRAIT_SET)}),body:{fromAccount:"",profileItem:[{tag:He.NICK,value:""},{tag:He.GENDER,value:""},{tag:He.ALLOWTYPE,value:""},{tag:He.AVATAR,value:""}]},keyMap:{request:{toAccount:"To_Account",standardSequence:"StandardSequence",customSequence:"CustomSequence"}}}}(e)),this._configMap.set(Cr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.FRIEND,".").concat(G.CMD.GET_BLACKLIST)}),body:{fromAccount:"",startIndex:0,maxLimited:30,lastSequence:0},keyMap:{response:{CurruentSequence:"currentSequence"}}}}(e)),this._configMap.set(wr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.FRIEND,".").concat(G.CMD.ADD_BLACKLIST)}),body:{fromAccount:"",toAccount:[]}}}(e)),this._configMap.set(Ir,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.FRIEND,".").concat(G.CMD.DELETE_BLACKLIST)}),body:{fromAccount:"",toAccount:[]}}}(e)),this._configMap.set(Ca,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_OPEN_STATUS,".").concat(G.CMD.SET_SELF_STATUS)}),body:{customStatus:""},keyMap:{}}}(e)),this._configMap.set(wa,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_OPEN_STATUS,".").concat(G.CMD.GET_USER_STATUS)}),body:{userIDList:void 0},keyMap:{response:{UserStatusList:"successUserList",ErrorList:"failureUserList",To_Account:"userID",Invalid_Account:"invalidUserID",Status:"statusType"}}}}(e)),this._configMap.set(Ia,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_OPEN_STATUS,".").concat(G.CMD.SUBSCRIBE_USER_STATUS)}),body:{userIDList:void 0},keyMap:{response:{ErrorList:"failureUserList",To_Account:"userID",Invalid_Account:"invalidUserID"}}}}(e)),this._configMap.set(Sa,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_OPEN_STATUS,".").concat(G.CMD.UNSUBSCRIBE_USER_STATUS)}),body:{userIDList:void 0,unsubscribeAll:void 0},keyMap:{response:{ErrorList:"failureUserList",To_Account:"userID",Invalid_Account:"invalidUserID"}}}}(e)),this._configMap.set(Sr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.FRIEND,".").concat(G.CMD.GET_FRIEND_LIST)}),body:{fromAccount:"",startIndex:0,standardSequence:0,customSequence:0},keyMap:{response:{FriendNum:"friendCount",UserDataItem:"resultList",ValueItem:"tagValueList"}}}}(e)),this._configMap.set(Dr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.FRIEND,".").concat(G.CMD.ADD_FRIEND)}),body:{fromAccount:"",addFriendItem:[],type:""},keyMap:{request:{source:"AddSource",wording:"AddWording",type:"AddType"},response:{ResultItem:"resultList"}}}}(e)),this._configMap.set(Lr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.FRIEND,".").concat(G.CMD.UPDATE_FRIEND)}),body:{fromAccount:"",updateItem:void 0},keyMap:{request:{snsItem:"SnsItem"},response:{ResultItem:"resultList"}}}}(e)),this._configMap.set(jr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.FRIEND,".").concat(G.CMD.DELETE_FRIEND)}),body:{fromAccount:"",userIDList:[],type:""},keyMap:{request:{type:"DeleteType"},response:{ResultItem:"resultList"}}}}(e)),this._configMap.set(Tr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.FRIEND,".").concat(G.CMD.GET_FRIEND_PROFILE)}),body:{fromAccount:"",userIDList:void 0},keyMap:{response:{InfoItem:"resultList",SnsProfileItem:"tagValueList"}}}}(e)),this._configMap.set(Er,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.FRIEND,".").concat(G.CMD.CHECK_FRIEND)}),body:{fromAccount:"",userIDList:[],type:""},keyMap:{request:{type:"CheckType"},response:{InfoItem:"resultList"}}}}(e)),this._configMap.set(Nr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.FRIEND,".").concat(G.CMD.GET_FRIEND_APPLICATION_LIST)}),body:{fromAccount:"",applicationType:"",startTime:0,maxLimited:0,lastSequence:0},keyMap:{response:{PendencyItem:"resultList",AddSource:"source",AddTime:"time",AddWording:"wording",Image:"avatar",UnreadPendencyCount:"unreadCount",To_Account:"userID",PendencyType:"type"}}}}(e)),this._configMap.set(Ar,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.FRIEND,".").concat(G.CMD.RESPOND_FRIEND_APPLICATION)}),body:{fromAccount:"",responseFriendItem:[]},keyMap:{request:{tag:"TagName",action:"ResponseAction"},response:{ResultItem:"resultList"}}}}(e)),this._configMap.set(xr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.FRIEND,".").concat(G.CMD.DELETE_FRIEND_APPLICATION)}),body:{fromAccount:"",type:"",userIDList:void 0},keyMap:{request:{type:"PendencyType",userIDList:"To_Account"},response:{ResultItem:"resultList"}}}}(e)),this._configMap.set(Rr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.FRIEND,".").concat(G.CMD.REPORT_FRIEND_APPLICATION)}),body:{fromAccount:"",latestTimeStamp:""},keyMap:{request:{latestTimeStamp:"LatestPendencyTimeStamp"}}}}(e)),this._configMap.set(Ur,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.FRIEND,".").concat(G.CMD.CREATE_FRIEND_GROUP)}),body:{fromAccount:"",groupName:void 0,userIDList:void 0},keyMap:{request:{groupName:"GroupName",userIDList:"To_Account"},response:{ResultItem:"resultList"}}}}(e)),this._configMap.set(Vr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.FRIEND,".").concat(G.CMD.DELETE_FRIEND_GROUP)}),body:{fromAccount:"",nameList:void 0},keyMap:{request:{nameList:"GroupName"}}}}(e)),this._configMap.set(Pr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.FRIEND,".").concat(G.CMD.GET_FRIEND_GROUP_LIST)}),body:{fromAccount:"",lastSequence:0,needFriend:"Need_Friend_Type_Yes"},keyMap:{response:{ResultItem:"resultList",GroupName:"name",FriendNumber:"friendCount",To_Account:"userIDList"}}}}(e)),this._configMap.set(Br,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.FRIEND,".").concat(G.CMD.UPDATE_FRIEND_GROUP)}),body:{fromAccount:"",oldName:"",newName:void 0,updateGroupItem:void 0},keyMap:{request:{oldName:"GroupOldName",newName:"GroupNewName"},response:{UpdateType:"type",ResultItem:"resultList"}}}}(e)),this._configMap.set(po,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.GET_JOINED_GROUPS)}),body:{memberAccount:"",limit:void 0,offset:void 0,groupType:void 0,responseFilter:{groupBaseInfoFilter:void 0,selfInfoFilter:void 0},isSupportTopic:0},keyMap:{request:{memberAccount:"Member_Account"},response:{GroupIdList:"groups",NoUnreadSeqList:"excludedUnreadSequenceList",MsgSeq:"readedSequence",LastRecallTime:"_lastRevokedTime"}}}}(e)),this._configMap.set(fo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.GET_GROUP_INFO)}),body:{groupIDList:void 0,responseFilter:{groupBaseInfoFilter:["Type","Name","Introduction","Notification","FaceUrl","Owner_Account","CreateTime","InfoSeq","LastInfoTime","LastMsgTime","MemberNum","MaxMemberNum","ApplyJoinOption","NextMsgSeq","ShutUpAllMember"],groupCustomFieldFilter:void 0,memberInfoFilter:void 0,memberCustomFieldFilter:void 0}},keyMap:{request:{groupIDList:"GroupIdList",groupCustomField:"AppDefinedData",memberCustomField:"AppMemberDefinedData",groupCustomFieldFilter:"AppDefinedDataFilter_Group",memberCustomFieldFilter:"AppDefinedDataFilter_GroupMember"},response:{GroupIdList:"groups",AppDefinedData:"groupCustomField",AppMemberDefinedData:"memberCustomField",AppDefinedDataFilter_Group:"groupCustomFieldFilter",AppDefinedDataFilter_GroupMember:"memberCustomFieldFilter",InfoSeq:"infoSequence",MemberList:"members",GroupInfo:"groups",ShutUpUntil:"muteUntil",ShutUpAllMember:"muteAllMembers"}}}}(e)),this._configMap.set(ho,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.CREATE_GROUP)}),body:{type:void 0,name:void 0,groupID:void 0,ownerID:void 0,introduction:void 0,notification:void 0,maxMemberNum:void 0,joinOption:void 0,memberList:void 0,groupCustomField:void 0,memberCustomField:void 0,webPushFlag:1,avatar:"",isSupportTopic:void 0,inviteOption:void 0},keyMap:{request:{ownerID:"Owner_Account",userID:"Member_Account",avatar:"FaceUrl",maxMemberNum:"MaxMemberCount",joinOption:"ApplyJoinOption",groupCustomField:"AppDefinedData",memberCustomField:"AppMemberDefinedData",inviteOption:"InviteJoinOption"},response:{HugeGroupFlag:"avChatRoomFlag",OverJoinedGroupLimit_Account:"overLimitUserIDList"}}}}(e)),this._configMap.set(mo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.DESTROY_GROUP)}),body:{groupID:void 0}}}(e)),this._configMap.set(vo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.MODIFY_GROUP_INFO)}),body:{groupID:void 0,name:void 0,introduction:void 0,notification:void 0,avatar:void 0,joinOption:void 0,groupCustomField:void 0,muteAllMembers:void 0,inviteOption:void 0},keyMap:{request:{groupCustomField:"AppDefinedData",muteAllMembers:"ShutUpAllMember",joinOption:"ApplyJoinOption",avatar:"FaceUrl",inviteOption:"InviteJoinOption"},response:{AppDefinedData:"groupCustomField",ShutUpAllMember:"muteAllMembers"}}}}(e)),this._configMap.set(go,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.APPLY_JOIN_GROUP)}),body:{groupID:void 0,applyMessage:void 0,userDefinedField:void 0,webPushFlag:1,historyMessageFlag:void 0},keyMap:{request:{applyMessage:"ApplyMsg",historyMessageFlag:"HugeGroupHistoryMsgFlag"},response:{HugeGroupFlag:"avChatRoomFlag",AVChatRoomKey:"avChatRoomKey",RspMsgList:"messageList",ToGroupId:"to"}}}}(e)),this._configMap.set(_o,function(e){return e.a2,e.tinyid,{head:n(n({},h(e,sc)),{},{servcmd:"".concat(G.NAME.BIG_GROUP_NO_AUTH,".").concat(G.CMD.APPLY_JOIN_GROUP)}),body:{groupID:void 0,applyMessage:void 0,userDefinedField:void 0,webPushFlag:1},keyMap:{request:{applyMessage:"ApplyMsg"},response:{HugeGroupFlag:"avChatRoomFlag"}}}}(e)),this._configMap.set(yo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.QUIT_GROUP)}),body:{groupID:void 0}}}(e)),this._configMap.set(bo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.SEARCH_GROUP_BY_ID)}),body:{groupIDList:void 0,responseFilter:{groupBasePublicInfoFilter:["Type","Name","Introduction","Notification","FaceUrl","CreateTime","Owner_Account","LastInfoTime","LastMsgTime","NextMsgSeq","MemberNum","MaxMemberNum","ApplyJoinOption","InviteJoinOption"]}},keyMap:{response:{}}}}(e)),this._configMap.set(Oo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.CHANGE_GROUP_OWNER)}),body:{groupID:void 0,newOwnerID:void 0},keyMap:{request:{newOwnerID:"NewOwner_Account"}}}}(e)),this._configMap.set(Mo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.HANDLE_APPLY_JOIN_GROUP)}),body:{groupID:void 0,applicant:void 0,handleAction:void 0,handleMessage:void 0,authentication:void 0,messageKey:void 0,userDefinedField:void 0},keyMap:{request:{applicant:"Applicant_Account",handleAction:"HandleMsg",handleMessage:"ApprovalMsg",messageKey:"MsgKey"}}}}(e)),this._configMap.set(ko,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.HANDLE_INVITE_JOIN_GROUP)}),body:{groupID:void 0,applicant:void 0,invitee:void 0,handleAction:void 0,handleMessage:void 0,authentication:void 0,userDefinedField:void 0},keyMap:{request:{applicant:"Applicant_Account",invitee:"Invited_Account",handleAction:"HandleMsg",handleMessage:"ApprovalMsg"}}}}(e)),this._configMap.set(Co,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.HANDLE_GROUP_INVITATION)}),body:{groupID:void 0,inviter:void 0,handleAction:void 0,handleMessage:void 0,authentication:void 0,messageKey:void 0,userDefinedField:void 0},keyMap:{request:{inviter:"Inviter_Account",handleAction:"HandleMsg",handleMessage:"ApprovalMsg",messageKey:"MsgKey"}}}}(e)),this._configMap.set(Ao,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.GET_GROUP_APPLICATION)}),body:{startTime:void 0,limit:void 0,handleAccount:void 0},keyMap:{request:{handleAccount:"Handle_Account"},response:{To_Account:"userID"}}}}(e)),this._configMap.set(No,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.DELETE_GROUP_SYSTEM_MESSAGE)}),body:{messageListToDelete:void 0},keyMap:{request:{messageListToDelete:"DelMsgList",messageSeq:"MsgSeq",messageRandom:"MsgRandom"}}}}(e)),this._configMap.set(xo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.BIG_GROUP_LONG_POLLING,".").concat(G.CMD.AVCHATROOM_LONG_POLL)}),body:{USP:1,startSeq:1,startBroadcastSeq:void 0,holdTime:90,key:void 0,simplifiedMessage:void 0},keyMap:{request:{USP:"USP"},response:{ToGroupId:"groupID",RspBroadcastMsgList:"broadcastMessageList",IsSystemMsg:"isSystemMessage"}}}}(e)),this._configMap.set(Ro,function(e){return e.a2,e.tinyid,{head:n(n({},h(e,cc)),{},{servcmd:"".concat(G.NAME.BIG_GROUP_LONG_POLLING_NO_AUTH,".").concat(G.CMD.AVCHATROOM_LONG_POLL)}),body:{USP:1,startSeq:1,holdTime:90,key:void 0,simplifiedMessage:void 0},keyMap:{request:{USP:"USP"},response:{ToGroupId:"groupID",RspBroadcastMsgList:"broadcastMessageList",IsSystemMsg:"isSystemMessage"}}}}(e)),this._configMap.set(Po,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.GET_ONLINE_MEMBER_NUM)}),body:{groupID:void 0}}}(e)),this._configMap.set(Bo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.SET_GROUP_ATTRIBUTES)}),body:{groupID:void 0,groupAttributeList:void 0,mainSequence:void 0,avChatRoomKey:void 0,attributeControl:["RaceConflict"]},keyMap:{request:{key:"key",value:"value"}}}}(e)),this._configMap.set(Fo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.MODIFY_GROUP_ATTRIBUTES)}),body:{groupID:void 0,groupAttributeList:void 0,mainSequence:void 0,avChatRoomKey:void 0,attributeControl:["RaceConflict"]},keyMap:{request:{key:"key",value:"value"}}}}(e)),this._configMap.set(Go,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.DELETE_GROUP_ATTRIBUTES)}),body:{groupID:void 0,groupAttributeList:void 0,mainSequence:void 0,avChatRoomKey:void 0,attributeControl:["RaceConflict"]},keyMap:{request:{key:"key"}}}}(e)),this._configMap.set(zo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.CLEAR_GROUP_ATTRIBUTES)}),body:{groupID:void 0,mainSequence:void 0,avChatRoomKey:void 0,attributeControl:["RaceConflict"]}}}(e)),this._configMap.set(Ho,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP_ATTR,".").concat(G.CMD.GET_GROUP_ATTRIBUTES)}),body:{groupID:void 0,avChatRoomKey:void 0,groupType:1},keyMap:{request:{avChatRoomKey:"Key",groupType:"GroupType"}}}}(e)),this._configMap.set(Wo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.GET_GROUP_NOTIFY)}),body:{notifyType:1,groupID:"",beginTime:0,endTime:0,limit:20},keyMap:{request:{},response:{NextMsgTime:"nextRevokedTime",NotifyMsgList:"notifyList"}}}}(e)),this._configMap.set(Ko,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.UPDATE_GROUP_COUNTER)}),body:{groupID:void 0,counterList:void 0,avChatRoomKey:void 0,mode:void 0},keyMap:{request:{counterList:"GroupCounter"}}}}(e)),this._configMap.set($o,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.GET_GROUP_COUNTER)}),body:{groupID:void 0,keyList:[],avChatRoomKey:void 0},keyMap:{request:{keyList:"GroupCounterKeys"}}}}(e)),this._configMap.set(ba,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP_COMMUNITY,".").concat(G.CMD.CREATE_TOPIC)}),body:{groupID:void 0,topicName:void 0,avatar:void 0,customData:void 0,topicID:void 0,notification:void 0,introduction:void 0},keyMap:{request:{avatar:"FaceUrl"}}}}(e)),this._configMap.set(Oa,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP_COMMUNITY,".").concat(G.CMD.DELETE_TOPIC)}),body:{groupID:void 0,topicIDList:void 0},keyMap:{request:{topicIDList:"TopicIdList"},response:{DestroyResultItem:"resultList"}}}}(e)),this._configMap.set(Ma,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP_COMMUNITY,".").concat(G.CMD.UPDATE_TOPIC_PROFILE)}),body:{groupID:void 0,topicID:void 0,avatar:void 0,customData:void 0,notification:void 0,introduction:void 0,muteAllMembers:void 0,topicName:void 0},keyMap:{request:{avatar:"FaceUrl",muteAllMembers:"ShutUpAllMember"}}}}(e)),this._configMap.set(ka,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP_COMMUNITY,".").concat(G.CMD.GET_TOPIC_LIST)}),body:{groupID:void 0,topicIDList:void 0,MemberInfoFilter:["NoUnreadSeqList"]},keyMap:{request:{topicIDList:"TopicIdList"},response:{TopicAndSelfInfo:"topicInfoList",TopicInfo:"topic",GroupID:"groupID",ShutUpTime:"muteTime",ShutUpAllFlag:"muteAllMembers",LastMsgTime:"lastMessageTime",MsgSeq:"readedSequence",LastMsgSeq:"sequence",NoUnreadSeqList:"excludedUnreadSequenceList"}}}}(e)),this._configMap.set(Jo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.GET_GROUP_MEMBER_LIST)}),body:{groupID:void 0,limit:0,offset:void 0,next:void 0,memberRoleFilter:void 0,memberInfoFilter:["Role","NameCard","ShutUpUntil","JoinTime"],memberCustomFieldFilter:void 0},keyMap:{request:{memberCustomFieldFilter:"AppDefinedDataFilter_GroupMember"},response:{AppMemberDefinedData:"memberCustomField",AppDefinedDataFilter_GroupMember:"memberCustomFieldFilter",MemberList:"members",ShutUpUntil:"muteUntil"}}}}(e)),this._configMap.set(Qo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP_AVCHATROOM,".").concat(G.CMD.GET_AVCHATROOM_MEMBER_LIST)}),body:{groupID:void 0,offset:void 0,filter:void 0},keyMap:{request:{offset:"Timestamp",filter:"Mark"},response:{NextTimestamp:"offset"}}}}(e)),this._configMap.set(Xo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.GET_GROUP_MEMBER_INFO)}),body:{groupID:void 0,userIDList:void 0,memberInfoFilter:void 0,memberCustomFieldFilter:void 0},keyMap:{request:{userIDList:"Member_List_Account",memberCustomFieldFilter:"AppDefinedDataFilter_GroupMember"},response:{MemberList:"members",ShutUpUntil:"muteUntil",AppDefinedDataFilter_GroupMember:"memberCustomFieldFilter",AppMemberDefinedData:"memberCustomField"}}}}(e)),this._configMap.set(Zo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.ADD_GROUP_MEMBER)}),body:{groupID:void 0,silence:void 0,userIDList:void 0},keyMap:{request:{userID:"Member_Account",userIDList:"MemberList"},response:{MemberList:"members"}}}}(e)),this._configMap.set(ea,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.DELETE_GROUP_MEMBER)}),body:{groupID:void 0,userIDList:void 0,reason:void 0},keyMap:{request:{userIDList:"MemberToDel_Account"}}}}(e)),this._configMap.set(ta,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.BAN_AVCHATROOM_MEMBER)}),body:{groupID:void 0,userIDList:void 0,duration:void 0,reason:""},keyMap:{request:{userIDList:"Members_Account",duration:"Duration",reason:"Description"}}}}(e)),this._configMap.set(na,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.MODIFY_GROUP_MEMBER_INFO)}),body:{groupID:void 0,topicID:void 0,userID:void 0,messageRemindType:void 0,nameCard:void 0,role:void 0,memberCustomField:void 0,muteTime:void 0},keyMap:{request:{userID:"Member_Account",memberCustomField:"AppMemberDefinedData",muteTime:"ShutUpTime",messageRemindType:"MsgFlag"}}}}(e)),this._configMap.set(ra,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP_AVCHATROOM,".").concat(G.CMD.MARK_AVCHATROOM_MEMBER_INFO)}),body:{groupID:void 0,operationType:1,memberList:[]},keyMap:{request:{operationType:"CommandType",memberList:"MemberList",markType:"Marks",userID:"Member_Account"},response:{CommandType:"operationType",Marks:"markType",Member_Account:"userID"}}}}(e)),this._configMap.set(sa,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_OPEN_STAT,".").concat(G.CMD.TIM_WEB_REPORT_V2)}),body:{header:{},event:[],quality:[]},keyMap:{request:{SDKType:"sdk_type",SDKVersion:"sdk_version",deviceType:"device_type",platform:"platform",instanceID:"instance_id",traceID:"trace_id",SDKAppID:"sdk_app_id",userID:"user_id",tinyID:"tiny_id",extension:"extension",timestamp:"timestamp",networkType:"network_type",eventType:"event_type",code:"error_code",message:"error_message",moreMessage:"more_message",duplicate:"duplicate",costTime:"cost_time",level:"level",qualityType:"quality_type",reportIndex:"report_index",wholePeriod:"whole_period",totalCount:"total_count",rttCount:"success_count_business",successRateOfRequest:"percent_business",countLessThan1Second:"success_count_business",percentOfCountLessThan1Second:"percent_business",countLessThan3Second:"success_count_platform",percentOfCountLessThan3Second:"percent_platform",successCountOfBusiness:"success_count_business",successRateOfBusiness:"percent_business",successCountOfPlatform:"success_count_platform",successRateOfPlatform:"percent_platform",successCountOfMessageReceived:"success_count_business",successRateOfMessageReceived:"percent_business",avgRTT:"average_value",avgDelay:"average_value",avgValue:"average_value",uiPlatform:"ui_platform"}}}}(r)),this._configMap.set(ca,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.HEARTBEAT,".").concat(G.CMD.ALIVE)}),body:{}}}(e)),this._configMap.set(la,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_OPEN_PUSH,".").concat(G.CMD.MESSAGE_PUSH)}),body:{},keyMap:{response:{C2cMsgArray:"C2CMessageArray",GroupMsgArray:"groupMessageArray",GroupTips:"groupTips",C2cNotifyMsgArray:"C2CNotifyMessageArray",C2cMsgInfo:"C2CReadReceiptArray",ClientSeq:"clientSequence",MsgPriority:"priority",NoticeSeq:"noticeSequence",MsgContent:"content",MsgType:"type",MsgBody:"elements",ToGroupId:"to",Desc:"description",Ext:"extension",IsSyncMsg:"isSyncMessage",Flag:"needSync",NeedAck:"needAck",PendencyAdd_Account:"userID",ProfileImNick:"nick",PendencyType:"applicationType",C2CReadAllMsg:"readAllC2CMessage",IsNeedReadReceipt:"needReadReceipt",Status:"statusType"}}}}(e)),this._configMap.set(ua,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_OPEN_PUSH,".").concat(G.CMD.MULTI_MESSAGE_PUSH)}),body:{},keyMap:{response:{GroupMsgArray:"groupMessageArray",GroupTips:"groupTips",ClientSeq:"clientSequence",MsgPriority:"priority",NoticeSeq:"noticeSequence",MsgContent:"content",MsgType:"type",MsgBody:"elements",ToGroupId:"to",Desc:"description",Ext:"extension",IsSyncMsg:"isSyncMessage",Flag:"needSync",NeedAck:"needAck",PendencyType:"applicationType"}}}}(e)),this._configMap.set(da,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.MESSAGE_PUSH_ACK)}),body:{sessionData:void 0},keyMap:{request:{sessionData:"SessionData"}}}}(e)),this._configMap.set(pa,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_OPEN_STATUS,".").concat(G.CMD.STATUS_FORCE_OFFLINE)}),body:{},keyMap:{response:{C2cNotifyMsgArray:"C2CNotifyMessageArray",NoticeSeq:"noticeSequence",KickoutMsgNotify:"kickoutMsgNotify",NewInstInfo:"newInstanceInfo"}}}}(e)),this._configMap.set(ha,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_LONG_MESSAGE,".").concat(G.CMD.DOWNLOAD_MERGER_MESSAGE)}),body:{downloadKey:""},keyMap:{response:{Data:"data",Desc:"description",Ext:"extension",Download_Flag:"downloadFlag",ThumbUUID:"thumbUUID",VideoUUID:"videoUUID"}}}}(e)),this._configMap.set(fa,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_LONG_MESSAGE,".").concat(G.CMD.UPLOAD_MERGER_MESSAGE)}),body:{messageList:[]},keyMap:{request:{fromAccount:"From_Account",toAccount:"To_Account",msgTimeStamp:"MsgTimeStamp",msgSeq:"MsgSeq",msgRandom:"MsgRandom",msgBody:"MsgBody",type:"MsgType",content:"MsgContent",data:"Data",description:"Desc",extension:"Ext",sizeType:"Type",uuid:"UUID",url:"",imageUrl:"URL",fileUrl:"Url",remoteAudioUrl:"Url",remoteVideoUrl:"VideoUrl",thumbUUID:"ThumbUUID",videoUUID:"VideoUUID",videoUrl:"",downloadFlag:"Download_Flag",from:"From_Account",time:"MsgTimeStamp",messageRandom:"MsgRandom",messageSequence:"MsgSeq",elements:"MsgBody",clientSequence:"ClientSeq",payload:"MsgContent",messageList:"MsgList",messageNumber:"MsgNum",abstractList:"AbstractList",messageBody:"MsgBody"}}}}(e)),this._configMap.set(ja,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_OPEN_STATUS,".").concat(G.CMD.SET_TOKEN)}),body:{tokenID:"",pushMsg:0,sdkAppID:0,businessID:"",deviceBrand:"",deviceToken:"",isTpns:0,isWebUniapp:0},keyMap:{request:{tokenID:"TokenID",pushMsg:"PushMsg",sdkAppID:"EnterVersion",businessID:"BusiID",deviceBrand:"InstType",deviceToken:"VarToken",isTpns:"IsTpns"}}}}(e)),this._configMap.set(Ea,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_OPEN_STATUS,".").concat(G.CMD.STAT_FOREGROUND)}),body:{isWebUniapp:0}}}(e)),this._configMap.set(Ta,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_OPEN_STATUS,".").concat(G.CMD.STAT_BACKGROUND)}),body:{C2CUnread:0,GroupUnread:0,isWebUniapp:0},keyMap:{request:{c2cUnreadCount:"C2cUnread",groupUnreadCount:"GrpUnread"}}}}(e))}},{key:"has",value:function(e){return this._configMap.has(e)}},{key:"get",value:function(e){return this._configMap.get(e)}},{key:"update",value:function(){this._fillConfigMap()}},{key:"getKeyMap",value:function(e){return this.has(e)?this.get(e).keyMap||{}:(Ge.w("".concat(this._n,".getKeyMap unknown protocolName:").concat(e)),{})}},{key:"getProtocolData",value:function(e){var t=e.protocolName,n=e.requestData,r=this.get(t),o=null;if(n){var a=this._simpleDeepCopy(r),i=this._updateService(n,a),s=i.body,c=Object.create(null);for(var l in s)if(Object.prototype.hasOwnProperty.call(s,l)){if(c[l]=s[l],void 0===n[l])continue;c[l]=n[l]}i.body=c,o=this._getUplinkData(i)}else o=this._getUplinkData(r);return o}},{key:"_getUplinkData",value:function(e){var t=this._requestDataCleaner(e),n=Gt(t.head),r=Ys(t.body,this._getRequestKeyMap(n));return t.body=r,t}},{key:"_updateService",value:function(e,t){var n=Gt(t.head);if(this._isFromGroupRequest(t)){var r=e.type,o=e.groupID,a=void 0===o?void 0:o,i=e.groupIDList,s=void 0===i?[]:i;pt(a)&&(a=s[0]||""),jt({type:r,groupID:a})&&(t.head.servcmd="".concat(G.NAME.GROUP_COMMUNITY,".").concat(n))}return t}},{key:"_isFromGroupRequest",value:function(e){return e.head.servcmd.includes(G.NAME.GROUP)||e.head.servcmd.includes(G.NAME.GROUP_ATTR)}},{key:"_getRequestKeyMap",value:function(e){var t=this.getKeyMap(e);return n(n({},Gs.request),t.request)}},{key:"_requestDataCleaner",value:function(e){var t=Array.isArray(e)?[]:Object.create(null);for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&>(n)&&null!==e[n]&&void 0!==e[n]&&("object"!==r(e[n])?t[n]=e[n]:t[n]=this._requestDataCleaner.bind(this)(e[n]));return t}},{key:"_simpleDeepCopy",value:function(e){for(var t,n=Object.keys(e),r={},o=0,a=n.length;o<a;o++)t=n[o],dt(e[t])?r[t]=Array.from(e[t]):lt(e[t])?r[t]=this._simpleDeepCopy(e[t]):r[t]=e[t];return r}}]),e}(),uc=[da],dc=function(){function e(t){o(this,e),this._sessionModule=t,this._n="DownlinkHandler",this._eventHandlerMap=new Map,this._eventHandlerMap.set("C2CMessageArray",this._c2cMessageArrayHandler.bind(this)),this._eventHandlerMap.set("groupMessageArray",this._groupMessageArrayHandler.bind(this)),this._eventHandlerMap.set("groupTips",this._groupTipsHandler.bind(this)),this._eventHandlerMap.set("C2CNotifyMessageArray",this._C2CNotifyMessageArrayHandler.bind(this)),this._eventHandlerMap.set("C2CReadReceiptArray",this._C2CReadReceiptArrayHandler.bind(this)),this._eventHandlerMap.set("profileModify",this._profileHandler.bind(this)),this._eventHandlerMap.set("friendListMod",this._relationChainHandler.bind(this)),this._eventHandlerMap.set("recentContactMod",this._recentContactHandler.bind(this)),this._eventHandlerMap.set("readAllC2CMessage",this._allMessageReadHandler.bind(this)),this._eventHandlerMap.set("c2cMessageModified",this._c2cMessageModifiedHandler.bind(this)),this._eventHandlerMap.set("groupMessageModified",this._groupMessageModifiedHandler.bind(this)),this._eventHandlerMap.set("userStatusList",this._userStatusListHandler.bind(this)),this._eventHandlerMap.set("messageExtensionNotify",this._messageExtensionNotifyHandler.bind(this)),this._keys=y(this._eventHandlerMap.keys())}return i(e,[{key:"_c2cMessageArrayHandler",value:function(e){var t=this._sessionModule.getModule(Bn);t&&(e.dataList.forEach((function(e){if(1===e.isSyncMessage){var t=e.from;e.from=e.to,e.to=t}})),1===e.needSync&&this._sessionModule.getModule(Zn).startOnlineSync(),t.onNewC2CMessage({dataList:e.dataList,isInstantMessage:!0}))}},{key:"_c2cMessageModifiedHandler",value:function(e){var t=this._sessionModule.getModule(Bn);t&&t.onC2CMessageModified(e)}},{key:"_groupMessageArrayHandler",value:function(e){var t=this._sessionModule.getModule(Fn);t&&t.onNewGroupMessage({event:e.event,dataList:e.dataList,isInstantMessage:!0})}},{key:"_groupMessageModifiedHandler",value:function(e){var t=this._sessionModule.getModule(Fn);t&&t.onGroupMessageModified(e)}},{key:"_groupTipsHandler",value:function(e){var t=this._sessionModule.getModule(Fn);if(t){var n=e.event,r=e.dataList,o=e.isInstantMessage,a=void 0===o||o,i=e.isSyncingEnded;switch(n){case 4:case 6:t.onNewGroupTips({event:n,dataList:r});break;case 5:for(var s=0;s<r.length;s++)if(dt(r[s].elements.revokedInfos))t.onGroupMessageRevoked({dataList:r});else if(dt(r[s].elements.groupMessageReadNotice))t.onGroupMessageReadNotice({dataList:r});else{if(!dt(r[s].elements.readReceiptList)){t.onNewGroupSystemNotice({dataList:r,isInstantMessage:a,isSyncingEnded:i});break}t.onReadReceiptList({dataList:r})}break;case 12:this._sessionModule.getModule(Yn).onNewGroupAtTips({dataList:r});break;default:Ge.l("".concat(this._n,"._groupTipsHandler unknown event:").concat(n," dataList:"),r)}}}},{key:"_C2CNotifyMessageArrayHandler",value:function(e){var t=this,n=e.dataList;if(dt(n)){var r=this._sessionModule.getModule(Bn);n.forEach((function(e){if(ut(e))if(e.hasOwnProperty("kickoutMsgNotify")){var o=e.kickoutMsgNotify,a=o.kickType,i=o.newInstanceInfo,s=void 0===i?{}:i;1===a?t._sessionModule.onMultipleAccountKickedOut(s):2===a?t._sessionModule.onMultipleDeviceKickedOut(s):3===a&&t._sessionModule.onRestApiKickedOut(s)}else e.hasOwnProperty("c2cMessageRevokedNotify")?r&&r.onC2CMessageRevoked({dataList:n}):e.hasOwnProperty("c2cMessageReadReceipt")?r&&r.onC2CMessageReadReceipt({dataList:n}):e.hasOwnProperty("c2cMessageReadNotice")?r&&r.onC2CMessageReadNotice({dataList:n}):e.hasOwnProperty("muteNotificationsSync")&&t._sessionModule.getModule(Yn).onC2CMessageRemindTypeSynced({dataList:n})}))}}},{key:"_C2CReadReceiptArrayHandler",value:function(e){this._sessionModule.getModule(Bn).onReadReceiptList(e)}},{key:"_profileHandler",value:function(e){this._sessionModule.getModule(Vn).onProfileModified({dataList:e.dataList});var t=this._sessionModule.getModule(Gn);t&&t.onFriendProfileModified({dataList:e.dataList})}},{key:"_relationChainHandler",value:function(e){this._sessionModule.getModule(Vn).onRelationChainModified({dataList:e.dataList});var t=this._sessionModule.getModule(Gn);t&&t.onRelationChainModified({dataList:e.dataList})}},{key:"_recentContactHandler",value:function(e){var t=e.dataList;if(dt(t)){var n=this._sessionModule.getModule(Yn);n&&t.forEach((function(e){var t=e.pushType;if(1===t){var r=e.recentContactDeleteItem;n.onConversationDeleted(r.recentContactList)}else if(2===t){var o=e.recentContactTopItem;n.onConversationPinned(o.recentContactList)}else if(3===t){var a=e.recentContactTopItem;n.onConversationUnpinned(a.recentContactList)}else if(4===t){var i=e.recentContactMarkContact;n.onConversationMarkUpdated(i.recentContactMarkContactItem)}else if(5===t){var s=e.recentContactCreateContactGroup;n.onConversationGroupCreated(s.msgContactGroupContactItem)}else if(6===t){var c=e.recentContactDelContactGroup;n.onConversationGroupDeleted(c.msgGroupItem)}else if(7===t){var l=e.recentContactUpdateContactGroup,u=l.updateType,d=l.msgUpdateGroup,p=l.msgUpdateContact;if(1===u){var f=d.updateGroupType;1===f?n.onConversationGroupNameUpdated(d):2===f&&n.onConversationInGroupUpdated(d)}else 2===u&&n.onConversationAddedToOrDeletedFromGroup(p)}}))}}},{key:"_allMessageReadHandler",value:function(e){var t=e.dataList,n=this._sessionModule.getModule(Yn);n&&n.onPushedAllMessageRead(t)}},{key:"_userStatusListHandler",value:function(e){this._sessionModule.getModule(Vn).onUserStatusUpdated(e)}},{key:"_messageExtensionNotifyHandler",value:function(e){this._sessionModule.getModule(Un).onMessageExtensionNotify(e)}},{key:"onMessage",value:function(e){var t=this,n=e.body;if(this._filterMessageFromIMOpenPush(e)){var r=n.eventArray,o=n.isInstantMessage,a=n.isSyncingEnded,i=n.needSync;if(dt(r))for(var s=null,c=null,l=0,u=0,d=r.length;u<d;u++){l=(s=r[u]).event;var p=Object.keys(s).find((function(e){return-1!==t._keys.indexOf(e)}));p?(c=14===l?{readAllC2CMessage:s[p],groupMessageReadInfoList:s.groupMessageReadNotice||[]}:16===l?{userID:s.userID,readReceiptList:s[p]}:s[p],this._eventHandlerMap.get(p)({event:l,dataList:c,isInstantMessage:o,isSyncingEnded:a,needSync:i})):Ge.l("".concat(this._n,".onMessage unknown eventItem:").concat(s))}}}},{key:"_filterMessageFromIMOpenPush",value:function(e){var t=e.head,n=e.body,r=t.servcmd,o=!1;if(pt(r)||(o=r.includes(G.NAME.IM_CONFIG_MANAGER)||r.includes(G.NAME.OVERLOAD_PUSH)||r.includes(G.NAME.STAT_SERVICE)),!o)return!0;if(r.includes(G.CMD.PUSHED_CLOUD_CONTROL_CONFIG))this._sessionModule.getModule(rr).onPushedCloudControlConfig(n);else if(r.includes(G.CMD.PUSHED_COMMERCIAL_CONFIG))this._sessionModule.getModule(sr).onPushedConfig(n);else if(r.includes(G.CMD.OVERLOAD_NOTIFY))this._sessionModule.onPushedServerOverload(n);else if(r.includes(G.CMD.KICK_OTHER)){var a=Date.now();this._sessionModule.reLoginOnKickOther();var i=new Ka("kickOther"),s=this._sessionModule.getModule(Rn).getLastWsHelloTs(),c=a-s;i.setMessage("last wshello time:".concat(s," diff:").concat(c,"ms")).setNetworkType(this._sessionModule.getNetworkType()).end()}return!1}}]),e}(),pc=[{cmd:G.CMD.GET_GROUP_INFO,interval:1,count:20},{cmd:G.CMD.GET_AVCHATROOM_MEMBER_LIST,interval:3,count:1},{cmd:G.CMD.GET_GROUP_APPLICATION,interval:1,count:15},{cmd:G.CMD.GET_TOPIC_LIST,interval:1,count:10},{cmd:G.CMD.SET_GROUP_ATTRIBUTES,interval:5,count:10},{cmd:G.CMD.MODIFY_GROUP_ATTRIBUTES,interval:5,count:10},{cmd:G.CMD.DELETE_GROUP_ATTRIBUTES,interval:5,count:10},{cmd:G.CMD.CLEAR_GROUP_ATTRIBUTES,interval:5,count:10},{cmd:G.CMD.GET_GROUP_ATTRIBUTES,interval:5,count:20},{cmd:G.CMD.UPDATE_GROUP_COUNTER,interval:5,count:20},{cmd:G.CMD.GET_GROUP_COUNTER,interval:5,count:20},{cmd:G.CMD.SET_ALL_MESSAGE_READ,interval:1,count:1},{cmd:G.CMD.GET_USER_STATUS,interval:5,count:20},{cmd:G.CMD.SUBSCRIBE_USER_STATUS,interval:5,count:20},{cmd:G.CMD.UNSUBSCRIBE_USER_STATUS,interval:5,count:20}],fc=function(e){c(r,e);var t=g(r);function r(e){var n;return o(this,r),(n=t.call(this,e))._n="SessionModule",n._platform=n.getPlatform(),n._protocolHandler=new lc(m(n)),n._messageDispatcher=new dc(m(n)),n._commandFrequencyLimitMap=new Map,n._commandRequestInfoMap=new Map,n._serverOverloadInfoMap=new Map,n._init(),n.getInnerEmitterInstance().on(bi,n._onCloudConfigUpdated,m(n)),n}return i(r,[{key:"_init",value:function(){this._updateCommandFrequencyLimitMap(pc)}},{key:"_onCloudConfigUpdated",value:function(){var e=this.getCloudConfig("cmd_frequency_limit");pt(e)||(e=JSON.parse(e),this._updateCommandFrequencyLimitMap(e))}},{key:"_updateCommandFrequencyLimitMap",value:function(e){var t=this;e.forEach((function(e){t._commandFrequencyLimitMap.set(e.cmd,{interval:e.interval,count:e.count})}))}},{key:"updateProtocolConfig",value:function(){this._protocolHandler.update()}},{key:"request",value:function(e){Ge.d("".concat(this._n,".request options:"),e);var t=e.protocolName,n=e.tjgID;if(!this._protocolHandler.has(t))return Ge.w("".concat(this._n,".request unknown protocol:").concat(t)),vi({code:Aa.CANNOT_FIND_PROTOCOL});var r=this.getProtocolData(e),o=r.head.servcmd;if(this._isFrequencyOverLimit(o))return vi({code:Aa.OVER_FREQUENCY_LIMIT});if(this._isServerOverload(o))return vi({code:Aa.OPEN_SERVICE_OVERLOAD_ERROR});en(n)||(r.head.tjgID=n);var a=this.getModule(tr);return uc.includes(t)?a.simplySend(r):a.send(r)}},{key:"getKeyMap",value:function(e){return this._protocolHandler.getKeyMap(e)}},{key:"genCommonHead",value:function(){var e=this.getModule(qn);return{ver:"v4",platform:this._platform,websdkappid:A,websdkversion:L,a2:e.getA2Key()||void 0,tinyid:e.getTinyID()||void 0,status_instid:e.getStatusInstanceID(),sdkappid:e.getSDKAppID(),contenttype:e.getContentType(),reqtime:0,identifier:e.getA2Key()?void 0:e.getUserID(),usersig:e.getA2Key()?void 0:e.getUserSig(),sdkability:192371,tjgID:""}}},{key:"genCosSpecifiedHead",value:function(){var e=this.getModule(qn);return{ver:"v4",platform:this._platform,websdkappid:A,websdkversion:L,sdkappid:e.getSDKAppID(),contenttype:e.getContentType(),reqtime:0,identifier:e.getUserID(),usersig:e.getUserSig(),status_instid:e.getStatusInstanceID(),sdkability:192371}}},{key:"genSSOReportHead",value:function(){var e=this.getModule(qn);return{ver:"v4",platform:this._platform,websdkappid:A,websdkversion:L,sdkappid:e.getSDKAppID(),contenttype:"",reqtime:0,identifier:"",usersig:"",status_instid:e.getStatusInstanceID(),sdkability:192371}}},{key:"getProtocolData",value:function(e){return this._protocolHandler.getProtocolData(e)}},{key:"trans",value:function(e){var t=e.servcmd,r=e.data,o={head:n(n({},this.genCommonHead()),{},{servcmd:t}),body:r};return this.getModule(tr).send(o)}},{key:"sendComboMessage",value:function(e){var t=e.servcmd,r=e.data,o={head:n(n({},this.genCommonHead()),{},{servcmd:t}),body:r};return this.getModule(tr).send(o)}},{key:"onErrorCodeNotZero",value:function(e){var t=e.errorCode;if(t===Aa.HELLO_ANSWER_KICKED_OUT){var n=e.kickType,r=e.newInstanceInfo,o=void 0===r?{}:r;1===n?this.onMultipleAccountKickedOut(o):2===n?this.onMultipleDeviceKickedOut(o):3===n&&this.onRestApiKickedOut(o)}t!==Aa.MESSAGE_A2KEY_EXPIRED&&t!==Aa.ACCOUNT_A2KEY_EXPIRED||(this._onUserSigExpired(),this.getModule(tr).reConnect())}},{key:"onMessage",value:function(e){var t=e.body,n=t.needAck,r=void 0===n?0:n,o=t.sessionData;1===r&&this._sendACK(o),this._messageDispatcher.onMessage(e)}},{key:"onReconnected",value:function(){this._reLoginOnReconnected()}},{key:"reLoginOnKickOther",value:function(){Ge.l("".concat(this._n,".reLoginOnKickOther")),this._reLogin()}},{key:"_reLoginOnReconnected",value:function(){Ge.l("".concat(this._n,"._reLoginOnReconnected")),this._reLogin()}},{key:"_reLogin",value:function(){var e=this;if(this.isLoggedIn()){var t=0,n=this.getModule(cr);n.canIUseOfflinePush()&&(t=n.getUniAppPlatform()),this.request({protocolName:hr,requestData:{isWebUniapp:t}}).then((function(t){var n=t.data.instanceID;e.getModule(qn).setStatusInstanceID(n),Ge.l("".concat(e._n,"._reLogin ok.")),e.getModule(Yn).syncConversationList().then((function(){Ge.l("".concat(e._n,"._reLogin, sync conversation list ok.")),e.getModule(ar).start()})),e.getModule(Fn).updateLocalMainSequenceOnReconnected();var r=e.getModule(Hn);r.resetGetTopicTime(),r.getTopicListOnReconnected()}))}}},{key:"onMultipleAccountKickedOut",value:function(e){this.getModule(Rn).onMultipleAccountKickedOut(e)}},{key:"onMultipleDeviceKickedOut",value:function(e){this.getModule(Rn).onMultipleDeviceKickedOut(e)}},{key:"_onUserSigExpired",value:function(){this.getModule(Rn).onUserSigExpired()}},{key:"onRestApiKickedOut",value:function(e){this.getModule(Rn).onRestApiKickedOut(e)}},{key:"_sendACK",value:function(e){this.request({protocolName:da,requestData:{sessionData:e}})}},{key:"_isFrequencyOverLimit",value:function(e){var t=e.split(".")[1];if(!this._commandFrequencyLimitMap.has(t))return!1;if(!this._commandRequestInfoMap.has(t))return this._commandRequestInfoMap.set(t,{startTime:Date.now(),requestCount:1}),!1;var n=this._commandFrequencyLimitMap.get(t),r=n.count,o=n.interval,a=this._commandRequestInfoMap.get(t),i=a.startTime,s=a.requestCount;if(Date.now()-i>1e3*o)return this._commandRequestInfoMap.set(t,{startTime:Date.now(),requestCount:1}),!1;s+=1,this._commandRequestInfoMap.set(t,{startTime:i,requestCount:s});var c=!1;return s>r&&(c=!0),c}},{key:"_isServerOverload",value:function(e){if(!this._serverOverloadInfoMap.has(e))return!1;var t=this._serverOverloadInfoMap.get(e),n=t.overloadTime,r=t.waitingTime,o=!1;return Date.now()-n<=1e3*r?o=!0:(this._serverOverloadInfoMap.delete(e),o=!1),o}},{key:"onPushedServerOverload",value:function(e){var t=e.overloadCommand,n=e.waitingTime;this._serverOverloadInfoMap.set(t,{overloadTime:Date.now(),waitingTime:n}),Ge.w("".concat(this._n,".onPushedServerOverload waitingTime:").concat(n,"s"))}},{key:"reset",value:function(){Ge.l("".concat(this._n,".reset")),this._updateCommandFrequencyLimitMap(pc),this._commandRequestInfoMap.clear(),this._serverOverloadInfoMap.clear()}}]),r}(fr),hc=function(e){c(n,e);var t=g(n);function n(e){var r;return o(this,n),(r=t.call(this,e))._n="MessageLossDetectionModule",r._maybeLostSequencesMap=new Map,r._firstRoundRet=[],r}return i(n,[{key:"onMessageMaybeLost",value:function(e,t,n){this._maybeLostSequencesMap.has(e)||this._maybeLostSequencesMap.set(e,[]);for(var r=this._maybeLostSequencesMap.get(e),o=0;o<n;o++)-1===r.indexOf(t+o)&&r.push(t+o)}},{key:"detectFirstRound",value:function(e,t){var n=this._maybeLostSequencesMap.get(e);if(!en(n)&&!en(t)){var r=n.filter((function(e){return-1===t.indexOf(e)}));0===r.length?Ge.i("".concat(this._n,".detectFirstRound no message loss. conversationID:").concat(e)):this._firstRoundRet=this._firstRoundRet.concat(r),n.length=0}}},{key:"detectSecondRound",value:function(e,t){if(!en(this._firstRoundRet)&&!en(t)){var n=this._firstRoundRet.filter((function(e){return-1===t.indexOf(e)}));this._firstRoundRet.length=0;var r,o=n.length;0!==o&&(o<=5?r=e+"-"+n.join("-"):(n.sort((function(e,t){return e-t})),r=e+" start:"+n[0]+" end:"+n[o-1]+" count:"+o),new Ka("messageLoss").setMessage(r).setNetworkType(this.getNetworkType()).setLevel("warning").end(),Ge.i("".concat(this._n,".detectSecondRound message loss detected. conversationID:").concat(e," lostSequences:").concat(n)))}}},{key:"reset",value:function(){Ge.l("".concat(this._n,".reset")),this._maybeLostSequencesMap.clear(),this._firstRoundRet.length=0}}]),n}(fr),mc=function(e){c(n,e);var t=g(n);function n(e){var r;return o(this,n),(r=t.call(this,e))._n="CloudControlModule",r._cloudConfig=new Map,r._expiredTime=0,r._version=0,r._isFetching=!1,r}return i(n,[{key:"getCloudConfig",value:function(e){return pt(e)?this._cloudConfig:this._cloudConfig.has(e)?this._cloudConfig.get(e):void 0}},{key:"_canFetchConfig",value:function(){return this.isLoggedIn()&&!this._isFetching&&Date.now()>=this._expiredTime}},{key:"fetchConfig",value:function(){var e=this,t=this._canFetchConfig();if(Ge.l("".concat(this._n,".fetchConfig canFetchConfig:").concat(t)),t){var n=new Ka("fetchCloudControlConfig"),r=this.getModule(qn).getSDKAppID();this._isFetching=!0,this.request({protocolName:ma,requestData:{SDKAppID:r,version:this._version}}).then((function(t){e._isFetching=!1,n.setMessage("version:".concat(e._version," newVersion:").concat(t.data.version," config:").concat(t.data.cloudControlConfig)).setNetworkType(e.getNetworkType()).end(),Ge.l("".concat(e._n,".fetchConfig ok")),e._parseCloudControlConfig(t.data)})).catch((function(t){e._isFetching=!1,e.probeNetwork().then((function(e){var r=_(e,2),o=r[0],a=r[1];n.setError(t,o,a).end()})),Ge.l("".concat(e._n,".fetchConfig failed. error:"),t),e._setExpiredTimeOnResponseError(12e4)}))}}},{key:"onPushedCloudControlConfig",value:function(e){Ge.l("".concat(this._n,".onPushedCloudControlConfig")),new Ka("pushedCloudControlConfig").setNetworkType(this.getNetworkType()).setMessage("newVersion:".concat(e.version," config:").concat(e.cloudControlConfig)).end(),this._parseCloudControlConfig(e)}},{key:"onCheckTimer",value:function(e){this._canFetchConfig()&&this.fetchConfig()}},{key:"_parseCloudControlConfig",value:function(e){var t=this,n="".concat(this._n,"._parseCloudControlConfig"),r=e.errorCode,o=e.errorMessage,a=e.cloudControlConfig,i=e.version,s=e.expiredTime;if(0===r){if(this._version!==i){var c=null;try{c=JSON.parse(a)}catch(u){this.isPrivateNetWork()||Ge.e("".concat(n," JSON parse error. cloudControlConfig:"),a)}c&&(this._cloudConfig.clear(),Object.keys(c).forEach((function(e){t._cloudConfig.set(e,c[e])})),this._version=i,this.emitInnerEvent(bi))}this._expiredTime=Date.now()+1e3*s}else pt(r)?(Ge.l("".concat(n," failed. Invalid message format:"),e),this._setExpiredTimeOnResponseError(36e5)):(Ge.e("".concat(n," errorCode:").concat(r," errorMessage:").concat(o)),this._setExpiredTimeOnResponseError(12e4))}},{key:"_setExpiredTimeOnResponseError",value:function(e){this._expiredTime=Date.now()+e}},{key:"reset",value:function(){Ge.l("".concat(this._n,".reset")),this._cloudConfig.clear(),this._expiredTime=0,this._version=0,this._isFetching=!1}}]),n}(fr),vc=function(e){c(n,e);var t=g(n);function n(e){var r;return o(this,n),(r=t.call(this,e))._n="RecoverMessageModule",r.PULL_LIMIT_COUNT=15,r}return i(n,[{key:"start",value:function(){this._recoverGroupChat(),this._recoverC2CChat()}},{key:"_recoverGroupChat",value:function(){var e,t,n=this,r=this._getLocalConversationList().filter((function(e){return e.type===S.CONV_GROUP&&e.groupProfile.type!==S.GRP_AVCHATROOM})),o=this.getModule(Yn),a=0,i=0,s=0;r.forEach((function(r){var c=r.conversationID,l=r.lastMessage;t=c.replace(S.CONV_GROUP,""),e=o.getLocalLastMessage(c),l&&0!==l.lastSequence&&e?(i=l.lastSequence,a=e.sequence,s=i-a,a>0&&s>=1&&s<300?n._recoverGroupMessage({groupID:t,localLastMessageSequence:a,remoteLastMessageSequence:i}):n._getGroupNotify(t)):n._getGroupNotify(t)}))}},{key:"_recoverC2CChat",value:function(){var e,t=this,n=this._getLocalConversationList().filter((function(e){return e.type===S.CONV_C2C})),r=this.getModule(Yn),o=0,a=0,i=0,s=[Promise.resolve()];n.forEach((function(n){var c=n.conversationID,l=n.lastMessage;e=r.getLocalLastMessage(c),l&&0!==l.lastTime&&e&&(a=l.lastTime,o=e.time,i=a-o,o>0&&i>=1&&i<=600&&s.push(t._recoverC2CMessage({conversationID:c,localLastMessageTime:o,remoteLastMessageTime:a})))})),Promise.all(s).then((function(){Ge.l("".concat(t._n,"._recoverC2CChat all promise fulfilled, start to sync unread messages")),t.getModule(Zn).startSyncOnReconnected()}))}},{key:"_getLocalConversationList",value:function(){return this.getModule(Yn).getLocalConversationList()}},{key:"_recoverGroupMessage",value:function(e){var t=this,n="".concat(this._n,"._recoverGroupMessage");Ge.l("".concat(n," options:"),e);var r=e.groupID,o=e.localLastMessageSequence,a=e.remoteLastMessageSequence;this._getGroupRomaingMessage({groupID:r,sequence:o}).then((function(e){var o=e.data,i=o.complete,s=o.messageList;if(!pt(s)){var c=s[0].sequence;Ge.l("".concat(n," pkgLastMessageSequence:").concat(c," complete:").concat(i)),c<a&&2!==i&&t._recoverGroupMessage({groupID:r,localLastMessageSequence:c,remoteLastMessageSequence:a}),new Ka("recoverMessage").setNetworkType(t.getNetworkType()).setMessage("groupID:".concat(r," complete:").concat(i," messageList length:").concat(s.length)).end(),t.getModule(Fn).onNewGroupMessage({dataList:s,isInstantMessage:!1,updateUnreadCount:!1}),t._getGroupNotify(r)}}))}},{key:"_getGroupNotify",value:function(e){this.getModule(Fn).getGroupNotify(e)}},{key:"_getGroupRomaingMessage",value:function(e){var t=e.groupID,n=e.sequence;return this.request({protocolName:To,requestData:{groupID:t,count:this.PULL_LIMIT_COUNT,sequence:n+this.PULL_LIMIT_COUNT-1}})}},{key:"_recoverC2CMessage",value:function(e){var t=this,n="".concat(this._n,"._recoverC2CMessage");Ge.l("".concat(this._n,"._recoverC2CMessage options:"),e);var r=e.conversationID,o=e.localLastMessageTime,a=e.remoteLastMessageTime;return this._getC2CRoamingMessage({conversationID:r,time:o}).then((function(e){var o=e.data,i=o.complete,s=o.messageList;if(!pt(s)){var c=s.length;new Ka("recoverMessage").setNetworkType(t.getNetworkType()).setMessage("".concat(r," complete:").concat(i," messageList length:").concat(c)).end(),t.getModule(Bn).onNewC2CMessage({dataList:s,isInstantMessage:!0});var l=s[c-1].time;if(Ge.l("".concat(n," pkgLastMessageTime:").concat(l," complete:").concat(i)),l<a&&1!==i)return t._recoverC2CMessage({conversationID:r,localLastMessageTime:l,remoteLastMessageTime:a})}}))}},{key:"_getC2CRoamingMessage",value:function(e){var t=e.conversationID,n=e.time;return this.request({protocolName:Yr,requestData:{peerAccount:t.replace(S.CONV_C2C,""),count:this.PULL_LIMIT_COUNT+1,lastMessageTime:n,direction:1}})}},{key:"reset",value:function(){Ge.l("".concat(this._n,".reset"))}}]),n}(fr),gc=function(){function e(){o(this,e),this._n="AvgE2EDelay",this._e2eDelayArray=[]}return i(e,[{key:"addMessageDelay",value:function(e){var t=Ue()-e;t>=0&&this._e2eDelayArray.push(t)}},{key:"_calcAvg",value:function(e,t){if(0===t)return 0;var n=0;return e.forEach((function(e){n+=e})),zt(n/t,1)}},{key:"_calcCountWithLimit",value:function(e){var t=e.e2eDelayArray,n=e.min,r=e.max;return t.filter((function(e){return n<=e&&e<r})).length}},{key:"_calcPercent",value:function(e,t){var n=zt(e/t*100,2);return n>100&&(n=100),n}},{key:"_checkE2EDelayException",value:function(e,t){var n=e.filter((function(e){return e>t}));if(n.length>0){var r=n.length,o=Math.min.apply(Math,y(n)),a=Math.max.apply(Math,y(n)),i=this._calcAvg(n,r),s=zt(r/e.length*100,2);s>50&&new Ka("messageE2EDelayException").setMessage("count:".concat(r," min:").concat(o," max:").concat(a," avg:").concat(i," percent:").concat(s)).setLevel("warning").end()}}},{key:"getStatResult",value:function(){var e=this._e2eDelayArray.length;if(0===e)return null;var t=y(this._e2eDelayArray),n=this._calcCountWithLimit({e2eDelayArray:t,min:0,max:1}),r=this._calcCountWithLimit({e2eDelayArray:t,min:1,max:3}),o=this._calcPercent(n,e),a=this._calcPercent(r,e),i=this._calcAvg(t,e);return this._checkE2EDelayException(t,3),t.length=0,this.reset(),{totalCount:e,countLessThan1Second:n,percentOfCountLessThan1Second:o,countLessThan3Second:r,percentOfCountLessThan3Second:a,avgDelay:i}}},{key:"reset",value:function(){this._e2eDelayArray.length=0}}]),e}(),_c=function(){function e(){o(this,e),this._n="AvgRTT",this._requestCount=0,this._rttArray=[]}return i(e,[{key:"addRequestCount",value:function(){this._requestCount+=1}},{key:"addRTT",value:function(e){this._rttArray.push(e)}},{key:"_calcTotalCount",value:function(){return this._requestCount}},{key:"_calcRTTCount",value:function(e){return e.length}},{key:"_calcSuccessRateOfRequest",value:function(e,t){if(0===t)return 0;var n=zt(e/t*100,2);return n>100&&(n=100),n}},{key:"_calcAvg",value:function(e,t){if(0===t)return 0;var n=0;return e.forEach((function(e){n+=e})),parseInt(n/t)}},{key:"_calcMax",value:function(){return Math.max.apply(Math,y(this._rttArray))}},{key:"_calcMin",value:function(){return Math.min.apply(Math,y(this._rttArray))}},{key:"getStatResult",value:function(){var e=this._calcTotalCount(),t=y(this._rttArray);if(0===e)return null;var n=this._calcRTTCount(t),r=this._calcSuccessRateOfRequest(n,e),o=this._calcAvg(t,n);return Ge.l("".concat(this._n,".getStatResult max:").concat(this._calcMax()," min:").concat(this._calcMin()," avg:").concat(o)),this.reset(),{totalCount:e,rttCount:n,successRateOfRequest:r,avgRTT:o}}},{key:"reset",value:function(){this._requestCount=0,this._rttArray.length=0}}]),e}(),yc=function(){function e(){o(this,e),this._map=new Map}return i(e,[{key:"initMap",value:function(e){var t=this;e.forEach((function(e){t._map.set(e,{totalCount:0,successCount:0,failedCountOfUserSide:0,costArray:[],fileSizeArray:[]})}))}},{key:"addTotalCount",value:function(e){return!(pt(e)||!this._map.has(e))&&(this._map.get(e).totalCount+=1,!0)}},{key:"addSuccessCount",value:function(e){return!(pt(e)||!this._map.has(e))&&(this._map.get(e).successCount+=1,!0)}},{key:"addFailedCountOfUserSide",value:function(e){return!(pt(e)||!this._map.has(e))&&(this._map.get(e).failedCountOfUserSide+=1,!0)}},{key:"addCost",value:function(e,t){return!(pt(e)||!this._map.has(e))&&(this._map.get(e).costArray.push(t),!0)}},{key:"addFileSize",value:function(e,t){return!(pt(e)||!this._map.has(e))&&(this._map.get(e).fileSizeArray.push(t),!0)}},{key:"_calcSuccessRateOfBusiness",value:function(e){if(pt(e)||!this._map.has(e))return-1;var t=this._map.get(e),n=zt(t.successCount/t.totalCount*100,2);return n>100&&(n=100),n}},{key:"_calcSuccessRateOfPlatform",value:function(e){if(pt(e)||!this._map.has(e))return-1;var t=this._map.get(e),n=this._calcSuccessCountOfPlatform(e)/t.totalCount*100;return(n=zt(n,2))>100&&(n=100),n}},{key:"_calcTotalCount",value:function(e){return pt(e)||!this._map.has(e)?-1:this._map.get(e).totalCount}},{key:"_calcSuccessCountOfBusiness",value:function(e){return pt(e)||!this._map.has(e)?-1:this._map.get(e).successCount}},{key:"_calcSuccessCountOfPlatform",value:function(e){if(pt(e)||!this._map.has(e))return-1;var t=this._map.get(e);return t.successCount+t.failedCountOfUserSide}},{key:"_calcAvg",value:function(e){return pt(e)||!this._map.has(e)?-1:e===Ba?this._calcAvgSpeed(e):this._calcAvgCost(e)}},{key:"_calcAvgCost",value:function(e){var t=this._map.get(e).costArray.length;if(0===t)return 0;var n=0;return this._map.get(e).costArray.forEach((function(e){n+=e})),parseInt(n/t)}},{key:"_calcAvgSpeed",value:function(e){var t=0,n=0;return this._map.get(e).costArray.forEach((function(e){t+=e})),this._map.get(e).fileSizeArray.forEach((function(e){n+=e})),parseInt(1e3*n/t)}},{key:"getStatResult",value:function(e){var t=this._calcTotalCount(e);if(0===t)return null;var n=this._calcSuccessCountOfBusiness(e),r=this._calcSuccessRateOfBusiness(e),o=this._calcSuccessCountOfPlatform(e),a=this._calcSuccessRateOfPlatform(e),i=this._calcAvg(e);return this.reset(e),{totalCount:t,successCountOfBusiness:n,successRateOfBusiness:r,successCountOfPlatform:o,successRateOfPlatform:a,avgValue:i}}},{key:"reset",value:function(e){pt(e)?this._map.clear():this._map.set(e,{totalCount:0,successCount:0,failedCountOfUserSide:0,costArray:[],fileSizeArray:[]})}}]),e}(),bc=function(){function e(){o(this,e),this._lastMap=new Map,this._currentMap=new Map}return i(e,[{key:"initMap",value:function(e){var t=this;e.forEach((function(e){t._lastMap.set(e,new Map),t._currentMap.set(e,new Map)}))}},{key:"addMessageSequence",value:function(e){var t=e.key,n=e.message;if(pt(t)||!this._lastMap.has(t)||!this._currentMap.has(t))return!1;var r=n.conversationID,o=n.sequence,a=r.replace(S.CONV_GROUP,"");if(0===this._lastMap.get(t).size)this._addCurrentMap(e);else if(this._lastMap.get(t).has(a)){var i=this._lastMap.get(t).get(a),s=i.length-1;o>i[0]&&o<i[s]?(i.push(o),i.sort(),this._lastMap.get(t).set(a,i)):this._addCurrentMap(e)}else this._addCurrentMap(e);return!0}},{key:"_addCurrentMap",value:function(e){var t=e.key,n=e.message,r=n.conversationID,o=n.sequence,a=r.replace(S.CONV_GROUP,"");this._currentMap.get(t).has(a)||this._currentMap.get(t).set(a,[]),this._currentMap.get(t).get(a).push(o)}},{key:"_copyData",value:function(e){if(!pt(e)){this._lastMap.set(e,new Map);var t,n=this._lastMap.get(e),r=w(this._currentMap.get(e));try{for(r.s();!(t=r.n()).done;){var o=_(t.value,2),a=o[0],i=o[1];n.set(a,i)}}catch(c){r.e(c)}finally{r.f()}n=null,this._currentMap.set(e,new Map)}}},{key:"getStatResult",value:function(e){if(pt(this._currentMap.get(e))||pt(this._lastMap.get(e)))return null;if(0===this._lastMap.get(e).size)return this._copyData(e),null;var t=0,n=0;if(this._lastMap.get(e).forEach((function(e,r){var o=y(e.values()),a=o.length,i=o[a-1]-o[0]+1;t+=i,n+=a})),0===t)return null;var r=zt(n/t*100,2);return r>100&&(r=100),this._copyData(e),{totalCount:t,successCountOfMessageReceived:n,successRateOfMessageReceived:r}}},{key:"reset",value:function(){this._currentMap.clear(),this._lastMap.clear()}}]),e}(),Oc=function(e){c(r,e);var t=g(r);function r(e){var n;o(this,r),(n=t.call(this,e))._n="QualityStatModule",n.TAG="im-ssolog-quality-stat",n.reportIndex=0,n.wholePeriod=!1,n._qualityItems=[Na,xa,Ra,Pa,Ua,Va,Ba,Fa,Ga,za],n._messageSentItems=[Ra,Pa,Ua,Va,Ba],n._messageReceivedItems=[Fa,Ga,za],n.REPORT_INTERVAL=120,n.REPORT_SDKAPPID_BLACKLIST=[],n.REPORT_TINYID_WHITELIST=[],n._statInfoArr=[],n._avgRTT=new _c,n._avgE2EDelay=new gc,n._rateMessageSent=new yc,n._rateMessageReceived=new bc;var a=n.getInnerEmitterInstance();return a.on(yi,n._onLoginSuccess,m(n)),a.on(bi,n._onCloudConfigUpdated,m(n)),n}return i(r,[{key:"_onLoginSuccess",value:function(){var e=this;this._rateMessageSent.initMap(this._messageSentItems),this._rateMessageReceived.initMap(this._messageReceivedItems);var t=this.getModule(Wn),n=t.getItem(this.TAG,!1);!en(n)&&ht(n.forEach)&&(Ge.l("".concat(this._n,"._onLoginSuccess get quality stat logs from local storage, count:").concat(n.length)),n.forEach((function(t){e._statInfoArr.push(t)})),t.removeItem(this.TAG,!1))}},{key:"_onCloudConfigUpdated",value:function(){var e=this.getCloudConfig("q_rpt_interval"),t=this.getCloudConfig("q_rpt_sdkappid_bl"),n=this.getCloudConfig("q_rpt_tinyid_wl");pt(e)||(this.REPORT_INTERVAL=Number(e)),pt(t)||(this.REPORT_SDKAPPID_BLACKLIST=t.split(",").map((function(e){return Number(e)}))),pt(n)||(this.REPORT_TINYID_WHITELIST=n.split(","))}},{key:"onCheckTimer",value:function(e){this.isLoggedIn()&&e%this.REPORT_INTERVAL==0&&(this.wholePeriod=!0,this._report())}},{key:"addRequestCount",value:function(){this._avgRTT.addRequestCount()}},{key:"addRTT",value:function(e){this._avgRTT.addRTT(e)}},{key:"addMessageDelay",value:function(e){this._avgE2EDelay.addMessageDelay(e)}},{key:"addTotalCount",value:function(e){this._rateMessageSent.addTotalCount(e)||Ge.w("".concat(this._n,".addTotalCount invalid key:"),e)}},{key:"addSuccessCount",value:function(e){this._rateMessageSent.addSuccessCount(e)||Ge.w("".concat(this._n,".addSuccessCount invalid key:"),e)}},{key:"addFailedCountOfUserSide",value:function(e){this._rateMessageSent.addFailedCountOfUserSide(e)||Ge.w("".concat(this._n,".addFailedCountOfUserSide invalid key:"),e)}},{key:"addCost",value:function(e,t){this._rateMessageSent.addCost(e,t)||Ge.w("".concat(this._n,".addCost invalid key or cost:"),e,t)}},{key:"addFileSize",value:function(e,t){this._rateMessageSent.addFileSize(e,t)||Ge.w("".concat(this._n,".addFileSize invalid key or size:"),e,t)}},{key:"addMessageSequence",value:function(e){this._rateMessageReceived.addMessageSequence(e)||Ge.w("".concat(this._n,".addMessageSequence invalid key:"),e.key)}},{key:"_getQualityItem",value:function(e){var t={},r=qa[this.getNetworkType()];pt(r)&&(r=8);var o={qualityType:Ha[e],timestamp:Re(),networkType:r,extension:""};switch(e){case Na:t=this._avgRTT.getStatResult();break;case xa:t=this._avgE2EDelay.getStatResult();break;case Ra:case Pa:case Ua:case Va:case Ba:t=this._rateMessageSent.getStatResult(e);break;case Fa:case Ga:case za:t=this._rateMessageReceived.getStatResult(e)}return null===t?null:n(n({},o),t)}},{key:"_report",value:function(e){var t=this,n=[],r=null;pt(e)?this._qualityItems.forEach((function(e){null!==(r=t._getQualityItem(e))&&(r.reportIndex=t.reportIndex,r.wholePeriod=t.wholePeriod,n.push(r))})):null!==(r=this._getQualityItem(e))&&(r.reportIndex=this.reportIndex,r.wholePeriod=this.wholePeriod,n.push(r)),Ge.d("".concat(this._n,"._report"),n),this._statInfoArr.length>0&&(n=n.concat(this._statInfoArr),this._statInfoArr=[]);var o=this.getModule(qn),a=o.getSDKAppID(),i=o.getTinyID();Ht(this.REPORT_SDKAPPID_BLACKLIST,a)&&!Yt(this.REPORT_TINYID_WHITELIST,i)&&(n=[]),n.length>0&&this._doReport(n)}},{key:"_doReport",value:function(e){var t=this,r={header:Ms(this),quality:e};this.request({protocolName:sa,requestData:n({},r)}).then((function(){t.reportIndex++,t.wholePeriod=!1})).catch((function(n){Ge.w("".concat(t._n,"._doReport, online:").concat(t.getNetworkType()," error:"),n),t._statInfoArr=t._statInfoArr.concat(e),t._flushAtOnce()}))}},{key:"_flushAtOnce",value:function(){var e=this.getModule(Wn),t=e.getItem(this.TAG,!1),n=this._statInfoArr,r="".concat(this._n,"._flushAtOnce");if(en(t))Ge.l("".concat(r," count:").concat(n.length)),e.setItem(this.TAG,n,!0,!1);else{var o=n.concat(t);o.length>10&&(o=o.slice(0,10)),Ge.l("".concat(r," count:").concat(o.length)),e.setItem(this.TAG,o,!0,!1)}this._statInfoArr=[]}},{key:"reset",value:function(){Ge.l("".concat(this._n,".reset")),this._report(),this.reportIndex=0,this.wholePeriod=!1,this.REPORT_SDKAPPID_BLACKLIST=[],this.REPORT_TINYID_WHITELIST=[],this._avgRTT.reset(),this._avgE2EDelay.reset(),this._rateMessageSent.reset(),this._rateMessageReceived.reset()}}]),r}(fr),Mc=i((function e(t){o(this,e),en(t)||(this.userID=t.userID||"",this.nick=t.nick||"",this.avatar=t.avatar||"",this.time=t.time||0,this.source=t.source||"",this.wording=t.wording||"",this.type=t.type||"")})),kc=function(){function e(t){o(this,e),this._snsModule=t,this._n="FriendApplicationHandler",this._startTime=0,this._maxLimited=100,this._currentSequence=0,this._friendApplicationMap=new Map,this._unreadCount=0}return i(e,[{key:"getLocalFriendApplicationList",value:function(){return{friendApplicationList:y(this._friendApplicationMap.values()),unreadCount:this._unreadCount}}},{key:"_onFriendApplicationListUpdated",value:function(){this._snsModule.emitOuterEvent(I.FRIEND_APPLICATION_LIST_UPDATED,{friendApplicationList:y(this._friendApplicationMap.values()),unreadCount:this._unreadCount})}},{key:"onFriendApplicationRead",value:function(){this._unreadCount=0,this._onFriendApplicationListUpdated()}},{key:"onFriendApplicationAdded",value:function(e,t){var r=this;if(!en(e)){var o="";o=t===this._snsModule.getMyUserID()?S.SNS_APPLICATION_SENT_BY_ME:S.SNS_APPLICATION_SENT_TO_ME;var a=!1;e.forEach((function(e){var t="".concat(e.userID,"_").concat(o);o!==S.SNS_APPLICATION_SENT_TO_ME||r._friendApplicationMap.has(t)||(r._unreadCount+=1),r._friendApplicationMap.set(t,new Mc(n(n({},e),{},{type:o}))),a=!0})),a&&this._onFriendApplicationListUpdated()}}},{key:"onFriendApplicationDeleted",value:function(e){en(e)||this.getFriendApplicationList()}},{key:"getFriendApplicationList",value:function(){var e=this,t="".concat(this._n,".").concat("getFriendApplicationList"),n=new Ka("getFriendApplicationList");return this._snsModule.request({protocolName:Nr,requestData:{applicationType:S.SNS_APPLICATION_TYPE_BOTH,fromAccount:this._snsModule.getMyUserID(),maxLimited:this._maxLimited,startTime:this._startTime,lastSequence:this._currentSequence}}).then((function(r){var o=r.data,a=o.resultList,i=o.unreadCount,s=o.startTime,c=o.currentSequence;e._startTime=s,e._currentSequence=c,e._unreadCount=i;var l=dt(a)?a.length:0;n.setNetworkType(e._snsModule.getNetworkType()).setMessage("applicationCount:".concat(l," unreadCount:").concat(i)).end(),Ge.i("".concat(t," ok. applicationCount:").concat(l," unreadCount:").concat(i)),e._friendApplicationMap.clear(),dt(a)&&a.forEach((function(t){var n=t.userID,r=t.type,o=new Mc(t);e._friendApplicationMap.set("".concat(n,"_").concat(r),o)})),e._onFriendApplicationListUpdated()})).catch((function(r){return e._snsModule.probeNetwork().then((function(e){var t=_(e,2),o=t[0],a=t[1];n.setError(r,o,a).end()})),Ge.w("".concat(t," failed. error:"),r),vi(r)}))}},{key:"deleteFriendApplication",value:function(e){var t=this,n="".concat(this._n,".").concat("deleteFriendApplication"),r=e.userID,o=e.type;if((!o||o!==S.SNS_APPLICATION_SENT_BY_ME&&o!==S.SNS_APPLICATION_SENT_TO_ME)&&(o=S.SNS_APPLICATION_SENT_TO_ME),!this._friendApplicationMap.has("".concat(r,"_").concat(o)))return vi({code:Aa.FRIEND_APPLICATION_NOT_EXIST});var a=new Ka("deleteFriendApplication");return a.setMessage("userID:".concat(r," type:").concat(o)),this._snsModule.request({protocolName:xr,requestData:{fromAccount:this._snsModule.getMyUserID(),userIDList:[r],type:o}}).then((function(e){var i=e.data.resultList,s=i[0],c=s.to,l=s.resultCode,u=s.resultInfo;return a.setNetworkType(t._snsModule.getNetworkType()).setMoreMessage("resultList:".concat(JSON.stringify(i))).end(),Ge.i("".concat(n," ok. userID:").concat(r," type:").concat(o)),0===l?di():vi({userID:c,code:l,message:u})})).catch((function(e){return t._snsModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];a.setError(e,r,o).end()})),Ge.w("".concat(n," failed. error:"),e),vi(e)}))}},{key:"acceptFriendApplication",value:function(e){var t=this,n="".concat(this._n,".").concat("acceptFriendApplication"),r=e.userID,o=e.remark,a=e.tag,i=e.type;(!i||i!==S.SNS_APPLICATION_AGREE&&i!==S.SNS_APPLICATION_AGREE_AND_ADD)&&(i=S.SNS_APPLICATION_AGREE_AND_ADD);var s=new Ka("acceptFriendApplication");return s.setMessage("userID:".concat(r," type:").concat(i)),this._snsModule.request({protocolName:Ar,requestData:{fromAccount:this._snsModule.getMyUserID(),responseFriendItem:[{userID:r,remark:o,tag:a,action:i}]}}).then((function(e){s.setNetworkType(t._snsModule.getNetworkType()).end();var o=e.data.resultList[0],a=o.resultCode,c=o.resultInfo;if(0!==a)return vi({code:a,message:c});Ge.i("".concat(n," ok. userID:").concat(r," type:").concat(i))})).catch((function(e){return t._snsModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];s.setError(e,r,o).end()})),Ge.w("".concat(n," failed. error:"),e),vi(e)}))}},{key:"refuseFriendApplication",value:function(e){var t=this,n="".concat(this._n,".").concat("refuseFriendApplication"),r=e.userID,o=new Ka("refuseFriendApplication");return o.setMessage("userID:".concat(r)),this._snsModule.request({protocolName:Ar,requestData:{fromAccount:this._snsModule.getMyUserID(),responseFriendItem:[{userID:r,action:"Response_Action_Reject"}]}}).then((function(e){o.setNetworkType(t._snsModule.getNetworkType()).end();var a=e.data.resultList[0],i=a.resultCode,s=a.resultInfo;if(0!==i)return vi({code:i,message:s});Ge.i("".concat(n," ok. userID:").concat(r))})).catch((function(e){return t._snsModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],a=n[1];o.setError(e,r,a).end()})),Ge.w("".concat(n," failed. error:"),e),vi(e)}))}},{key:"_onFriendApplicationProcessed",value:function(e){var t=this;if(0!==e.length){var n=!1;e.forEach((function(e){var r="".concat(e.to,"_").concat(S.SNS_APPLICATION_SENT_TO_ME);t._friendApplicationMap.has(r)&&(t._friendApplicationMap.delete(r),t._unreadCount-=1,n=!0)})),this._unreadCount<0&&(this._unreadCount=0),n&&this._onFriendApplicationListUpdated()}}},{key:"setFriendApplicationRead",value:function(){var e=this,t="".concat(this._n,".").concat("setFriendApplicationRead"),n=new Ka("setFriendApplicationRead");return this._snsModule.request({protocolName:Rr,requestData:{fromAccount:this._snsModule.getMyUserID(),latestTimeStamp:zt(Re()/1e3,0)}}).then((function(r){n.setNetworkType(e._snsModule.getNetworkType()).end(),Ge.i("".concat(t," ok")),e._unreadCount=0})).catch((function(r){return e._snsModule.probeNetwork().then((function(e){var t=_(e,2),o=t[0],a=t[1];n.setError(r,o,a).end()})),Ge.w("".concat(t," failed. error:"),r),vi(r)}))}},{key:"reset",value:function(){this._startIndex=0,this._maxLimited=100,this._currentSequence=0,this._unreadCount=0,this._friendApplicationMap.clear()}}]),e}(),Cc=function(){function e(t,r){o(this,e),this.userID=t,this.remark="",this.groupList=[],this.source="",this.addTime=0,this.friendCustomField=[],this.timestamp=0;var a={},i=[];if(a.userID=t,!en(r))for(var s="",c="",l=0,u=r.length;l<u;l++)if(s=r[l].tag,c=r[l].value,s.indexOf("Tag_SNS_Custom")>-1)this.friendCustomField.push({key:s,value:c});else if(s.indexOf("Tag_Profile_Custom")>-1)i.push({key:s,value:c});else switch(s){case He.NICK:a.nick=c;break;case He.GENDER:a.gender=c;break;case He.BIRTHDAY:a.birthday=c;break;case He.LOCATION:a.location=c;break;case He.SELFSIGNATURE:a.selfSignature=c;break;case He.ALLOWTYPE:a.allowType=c;break;case He.LANGUAGE:a.language=c;break;case He.AVATAR:a.avatar=c;break;case He.MESSAGESETTINGS:a.messageSettings=c;break;case He.ADMINFORBIDTYPE:a.adminForbidType=c;break;case He.LEVEL:a.level=c;break;case He.ROLE:a.role=c;break;case qe:this.remark=c;break;case $e:this.addTime=c;break;case Ye:this.groupList=JSON.parse(JSON.stringify(c));break;case We:this.source=c;break;case Ke:break;default:Ge.l("snsProfileItem unknown tag->",r[l].tag)}this.profile=new Ei(n(n({},a),{},{profileCustomField:i}))}return i(e,[{key:"validate",value:function(e){var t=!0,n="";if(en(e))return{valid:!1,tips:"empty options"};if(e.profileCustomField)for(var r=e.profileCustomField.length,o=null,a=0;a<r;a++){if(o=e.profileCustomField[a],!ct(o.key)||-1===o.key.indexOf("Tag_Profile_Custom"))return{valid:!1,tips:"The prefix of keys of the custom profile key-value pairs (which is profileCustomField) must be Tag_Profile_Custom"};if(!ct(o.value))return{valid:!1,tips:"The type of values of the custom profile key-value pairs (which is profileCustomField) must be String"}}for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if("profileCustomField"===i)continue;if(en(e[i])&&!ct(e[i])&&!st(e[i])){n="key:"+i+", invalid value:"+e[i],t=!1;continue}switch(i){case"nick":ct(e[i])||(n="nick must be a string",t=!1),bt(e[i])>500&&(n="nick name limited: must less than or equal to ".concat(500," bytes, current size: ").concat(bt(e[i])," bytes"),t=!1);break;case"gender":Ct(Je,e.gender)||(n="key:gender, invalid value:"+e.gender,t=!1);break;case"birthday":st(e.birthday)||(n="birthday must be a number",t=!1);break;case"location":ct(e.location)||(n="location must be a string",t=!1);break;case"selfSignature":ct(e.selfSignature)||(n="selfSignature must be a string",t=!1);break;case"allowType":Ct(Xe,e.allowType)||(n="key:allowType, invalid value:"+e.allowType,t=!1);break;case"language":st(e.language)||(n="language must be a number",t=!1);break;case"avatar":ct(e.avatar)||(n="avatar must be a string",t=!1);break;case"messageSettings":0!==e.messageSettings&&1!==e.messageSettings&&(n="messageSettings must be 0 or 1",t=!1);break;case"adminForbidType":Ct(Qe,e.adminForbidType)||(n="key:adminForbidType, invalid value:"+e.adminForbidType,t=!1);break;case"level":st(e.level)||(n="level must be a number",t=!1);break;case"role":st(e.role)||(n="role must be a number",t=!1);break;default:n="unknown key:"+i+" "+e[i],t=!1}}return{valid:t,tips:n}}},{key:"update",value:function(e){var t="",n="",r=[];this.friendCustomField.forEach((function(e){r.push(e.key)}));for(var o=0,a=e.length;o<a;o++)if(t=e[o].tag,n=e[o].value,t.indexOf("Tag_SNS_Custom")>-1)r.indexOf(t)>-1?this.friendCustomField.forEach((function(e){e.key===t&&(e.value=n)})):this.friendCustomField.push({key:t,value:n});else if(t.indexOf("Tag_Profile_Custom")>-1){var i=!1;this.profile.profileCustomField.forEach((function(e){e.key===t&&(e.value=n,i=!0)})),i||this.profile.profileCustomField.push({key:t,value:n})}else switch(t){case He.NICK:this.profile.nick=n;break;case He.GENDER:this.profile.gender=n;break;case He.BIRTHDAY:this.profile.birthday=n;break;case He.LOCATION:this.profile.location=n;break;case He.SELFSIGNATURE:this.profile.selfSignature=n;break;case He.ALLOWTYPE:this.profile.allowType=n;break;case He.LANGUAGE:this.profile.language=n;break;case He.AVATAR:this.profile.avatar=n;break;case He.MESSAGESETTINGS:this.profile.messageSettings=n;break;case He.ADMINFORBIDTYPE:this.profile.adminForbidType=n;break;case He.LEVEL:this.profile.level=n;break;case He.ROLE:this.profile.role=n;break;case qe:this.remark=n;break;case $e:this.addTime=n;break;case Ye:this.groupList=JSON.parse(JSON.stringify(n));break;case We:this.source=n;break;case Ke:break;default:Ge.d("snsProfileItem unkown tag->",e[o].tag)}this.timestamp=Date.now(),r.length=0}},{key:"updateProfile",value:function(e){this.profile=JSON.parse(JSON.stringify(e)),this.timestamp=Date.now()}},{key:"addToGroupList",value:function(e){-1===this.groupList.indexOf(e)&&(this.groupList.push(e),this.count=this.groupList.length)}},{key:"removeFromGroupList",value:function(e){var t=this.groupList.indexOf(e);t>-1&&(this.groupList.splice(t,1),this.count=this.groupList.length)}}]),e}(),wc=function(){function e(t){o(this,e),this._snsModule=t,this._n="FriendHandler",this._friendMap=new Map,this._startIndex=0,this._standardSequence=0,this._customSequence=0,this._expirationTime=18e4}return i(e,[{key:"getLocalFriendList",value:function(){return y(this._friendMap.values())}},{key:"getFriendRemark",value:function(e){return this._friendMap.has(e)?this._friendMap.get(e).remark:""}},{key:"onFriendProfileModified",value:function(e){var t=this,n=e.dataList;if(!en(n)){var r=this._snsModule.getModule(Yn);n.forEach((function(e){var n=e.userID,o=e.profileList;if(t.isMyFriend(n)){Ge.l("".concat(t._n,".onFriendProfileModified. friend account:").concat(n,", profileList:").concat(JSON.stringify(o)));var a=t._friendMap.get(n);a.update(o),r.modifyMessageSentByPeer({conversationID:"".concat(S.CONV_C2C).concat(n),latestNick:a.profile.nick,latestAvatar:a.profile.avatar})}})),this._onFriendListUpdated()}}},{key:"onFriendAdded",value:function(e){var t=this;0!==e.length&&(Ge.l("".concat(this._n,".onFriendAdded userIDList:").concat(e)),e.forEach((function(e){t._friendMap.set(e,new Cc(e))})),this.getFriendProfile({userIDList:e}).then((function(n){e.forEach((function(e){var n=t._friendMap.get(e);n.groupList.length>0&&t._snsModule.updateWhenFriendAdded({nameList:n.groupList,userID:e})})),t._onFriendListUpdated()})))}},{key:"onFriendDeleted",value:function(e){var t=this;0!==e.length&&(Ge.l("".concat(this._n,".onFriendDeleted userIDList:").concat(e)),e.forEach((function(e){var n=t._friendMap.get(e);n.groupList.length>0&&t._snsModule.updateWhenFriendDeleted({nameList:n.groupList,userID:e}),t._friendMap.delete(e)})),this._onFriendListUpdated())}},{key:"_onFriendListUpdated",value:function(){this._snsModule.emitOuterEvent(I.FRIEND_LIST_UPDATED),this._snsModule.getModule(Yn).checkAndPatchRemark()}},{key:"getFriendProfile",value:function(e){var t=this,n="".concat(this._n,".").concat("getFriendProfile"),r=e.userIDList,o=[],a=[],i=[];if(r.forEach((function(e){if(t._friendMap.has(e)){var n=t._friendMap.get(e);Date.now()-n.timestamp<t._expirationTime?a.push(n):i.push(e)}else o.push({userID:e,code:Aa.NOT_MY_FRIEND,message:t._snsModule.getErrorMessage(Aa.NOT_MY_FRIEND)})})),0===i.length)return Ge.i("".concat(n," newUserIDList is empty")),mi({friendList:a,failureUserIDList:o});var s=new Ka("getFriendProfile");return s.setMessage("userIDList:".concat(i)),Ge.i("".concat(n," userIDList:").concat(i)),this._snsModule.request({protocolName:Tr,requestData:{fromAccount:this._snsModule.getMyUserID(),userIDList:i}}).then((function(e){return s.setNetworkType(t._snsModule.getNetworkType()).end(),Ge.i("".concat(n," ok")),e.data.resultList.forEach((function(e){var n,r=e.to,i=e.resultCode,s=e.resultInfo,c=e.tagValueList;pt(i)||0===i?(t._friendMap.has(r)?(n=t._friendMap.get(r)).update(c):(n=new Cc(r,c),t._friendMap.set(r,n)),a.push(n)):o.push({userID:r,code:i,message:s})})),di({friendList:a,failureUserIDList:o})})).catch((function(e){return t._snsModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];s.setError(e,r,o).end()})),Ge.w("".concat(n," failed. error:"),e),vi(e)}))}},{key:"isMyFriend",value:function(e){return this._friendMap.has(e)}},{key:"pagingGetFriendList",value:function(){var e=this,t="".concat(this._n,".").concat("getFriendList"),n=new Ka("getFriendList"),r=Date.now();this._snsModule.request({protocolName:Sr,requestData:{fromAccount:this._snsModule.getMyUserID(),startIndex:this._startIndex,standardSequence:this._standardSequence,customSequence:this._customSequence}}).then((function(o){var a=o.data,i=a.friendCount,s=a.resultList,c=a.nextStartIndex,l=a.standardSequence,u=a.customSequence,d=a.completeFlag;e._startIndex=c,e._standardSequence=l,e._customSequence=u;var p=Date.now()-r,f="friendCount:".concat(i," nextStartIndex:").concat(c," standardSequence:").concat(l," ")+"customSequence:".concat(u," completeFlag:").concat(d," cost ").concat(p," ms");n.setNetworkType(e._snsModule.getNetworkType()).setMessage(f).end(),Ge.i("".concat(t," ok."),f),en(s)||s.forEach((function(t){var n=t.to,r=t.tagValueList;e._friendMap.set(n,new Cc(n,r))})),0===d?e.pagingGetFriendList():(e._snsModule.emitOuterEvent(I.FRIEND_LIST_UPDATED),e._pagingGetFriendProfile())})).catch((function(r){return e._snsModule.probeNetwork().then((function(e){var t=_(e,2),o=t[0],a=t[1];n.setError(r,o,a).end()})),Ge.w("".concat(t," failed. error:"),r),vi(r)}))}},{key:"_pagingGetFriendProfile",value:function(){var e=this,t=y(this._friendMap.keys()),n=this._snsModule.getModule(Vn),r=t.length,o=r<=100?1:Math.ceil(r/100);Ge.l("".concat(this._n,"._pagingGetFriendProfile friendCount:").concat(r," pageCount:").concat(o));for(var a=0;a<o;a++)n.getUserProfile({userIDList:t.slice(100*a,100*(a+1))}).then((function(t){t.data.forEach((function(t){var n=e._friendMap.get(t.userID);n&&n.updateProfile(t)})),e._onFriendListUpdated()}))}},{key:"addFriend",value:function(e){var t=this,n="".concat(this._n,".").concat("addFriend");if(this._friendMap.has(e.to))return vi({code:Aa.ALREADY_MY_FRIEND});if(e.wording&&!1===this._snsModule.filterProfanity("wording",e))return vi({code:Aa.PROFANITY_FOUND});var r=e.to,o=e.source,a=e.type,i=e.wording,s=e.remark,c=e.groupName,l=a;(!l||l!==S.SNS_ADD_TYPE_SINGLE&&l!==S.SNS_ADD_TYPE_BOTH)&&(l=S.SNS_ADD_TYPE_BOTH);var u=new Ka("addFriend");return u.setMessage("to:".concat(r," source:").concat(o," type:").concat(l)),this._snsModule.request({protocolName:Dr,requestData:{fromAccount:this._snsModule.getMyUserID(),addFriendItem:[{to:r,source:o,wording:i,remark:s,groupName:c}],type:l}}).then((function(e){var r=e.data.resultList;u.setNetworkType(t._snsModule.getNetworkType()).setMoreMessage("resultList:".concat(JSON.stringify(r))).end();var o=r[0],a=o.to,i=o.resultCode,s=o.resultInfo;return Ge.i("".concat(n," ok. to:").concat(a," type:").concat(l," code:").concat(i)),pt(i)||0===i?di({userID:a,code:0}):30539===i?di({userID:a,code:i,message:t._snsModule.getErrorMessage(i)}):vi({userID:a,code:i,message:t._snsModule.getErrorMessage(i)||s})})).catch((function(e){return t._snsModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];u.setError(e,r,o).end()})),Ge.w("".concat(n," failed. error:"),e),vi(e)}))}},{key:"deleteFriend",value:function(e){var t=this,n="".concat(this._n,".").concat("deleteFriend"),r=e.userIDList,o=e.type;r.length>1e3&&(Ge.w("".concat(n," ").concat(Qt(1e3))),r.length=1e3);var a=[],i=[],s=[];if(r.forEach((function(e){t._friendMap.has(e)?s.push(e):a.push({userID:e,code:Aa.NOT_MY_FRIEND,message:t._snsModule.getErrorMessage(Aa.NOT_MY_FRIEND)})})),0===s.length)return mi({successUserIDList:i,failureUserIDList:a});var c=o;(!c||c!==S.SNS_DELETE_TYPE_SINGLE&&c!==S.SNS_DELETE_TYPE_BOTH)&&(c=S.SNS_DELETE_TYPE_BOTH);var l=new Ka("deleteFriend");return l.setMessage("userIDList:".concat(s," type:").concat(c)),this._snsModule.request({protocolName:jr,requestData:{fromAccount:this._snsModule.getMyUserID(),userIDList:s,type:c}}).then((function(e){l.setNetworkType(t._snsModule.getNetworkType()).end(),Ge.i("".concat(n," ok"));var r=e.data.resultList;return en(r)||r.forEach((function(e){var t=e.to,n=e.resultCode,r=e.resultInfo;pt(n)||0===n?i.push({userID:t}):a.push({userID:t,code:n,message:r})})),di({successUserIDList:i,failureUserIDList:a})})).catch((function(e){return t._snsModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];l.setError(e,r,o).end()})),Ge.w("".concat(n," error:"),e),vi(e)}))}},{key:"updateFriend",value:function(e){var t=this,n=e.userID,r=e.remark,o=e.friendCustomField;if(!this._friendMap.has(n))return vi({code:Aa.NOT_MY_FRIEND});var a="".concat(this._n,".").concat("updateFriend"),i=new Ka("updateFriend");i.setMessage("userID:".concat(n," remark:").concat(r," friendCustomField:").concat(o));var s=[];return pt(r)||s.push({tag:qe,value:r}),dt(o)&&o.length>0&&o.forEach((function(e){s.push({tag:e.key,value:e.value})})),this._snsModule.request({protocolName:Lr,requestData:{fromAccount:this._snsModule.getMyUserID(),updateItem:[{to:n,snsItem:s}]}}).then((function(e){i.setNetworkType(t._snsModule.getNetworkType()).end(),Ge.i("".concat(a," ok"));var n=e.data.resultList[0],s=n.to,c=n.resultCode,l=n.resultInfo;if(pt(c)||0===c){var u=t._friendMap.get(s);return u&&(pt(r)||(u.remark=r),dt(o)&&o.length>0&&Tt(u.friendCustomField,o),t._onFriendListUpdated()),di(u)}return vi({code:c,message:l})})).catch((function(e){return t._snsModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setError(e,r,o).end()})),Ge.w("".concat(a," failed. error:"),e),vi(e)}))}},{key:"checkFriend",value:function(e){var t=this,n="".concat(this._n,".").concat("checkFriend"),r=e.userIDList,o=e.type;(!o||o!==S.SNS_CHECK_TYPE_SINGLE&&o!==S.SNS_CHECK_TYPE_BOTH)&&(o=S.SNS_CHECK_TYPE_BOTH);var a=new Ka("checkFriend");return a.setMessage("userIDList:".concat(r," type:").concat(o)),this._snsModule.request({protocolName:Er,requestData:{fromAccount:this._snsModule.getMyUserID(),userIDList:r,type:o}}).then((function(e){a.setNetworkType(t._snsModule.getNetworkType()).end(),Ge.i("".concat(n," ok. userIDList:").concat(r," type:").concat(o));var i=[],s=[],c=e.data.resultList;return dt(c)&&c.forEach((function(e){var t=e.to,n=e.relation,r=e.resultCode,o=e.resultInfo;pt(r)||0===r?i.push({userID:t,code:0,relation:n}):s.push({userID:t,code:r,message:o})})),di({successUserIDList:i,failureUserIDList:s})})).catch((function(e){return t._snsModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];a.setError(e,r,o).end()})),Ge.w("".concat(n," failed. error:"),e),vi(e)}))}},{key:"updateWhenAddedToFriendGroup",value:function(e){var t=this,n=e.name,r=e.userIDList;Ge.l("".concat(this._n,".updateWhenAddedToFriendGroup groupName:").concat(n," userIDList:").concat(r)),n&&!en(r)&&r.forEach((function(e){t._friendMap.has(e)&&t._friendMap.get(e).addToGroupList(n)}))}},{key:"updateWhenRemovedFromFriendGroup",value:function(e){var t=this,n=e.name,r=e.userIDList;Ge.l("".concat(this._n,".updateWhenRemovedFromFriendGroup groupName:").concat(n," userIDList:").concat(r)),n&&!en(r)&&r.forEach((function(e){t._friendMap.has(e)&&t._friendMap.get(e).removeFromGroupList(n)}))}},{key:"reset",value:function(){this._friendMap.clear(),this._startIndex=0,this._standardSequence=0,this._customSequence=0}}]),e}(),Ic=function(){function e(t){o(this,e),en(t)||(this.name=t.name||"",this.userIDList=t.userIDList||[],this.count=this.userIDList.length||0)}return i(e,[{key:"addToUserIDList",value:function(e){-1===this.userIDList.indexOf(e)&&(this.userIDList.push(e),this.count=this.userIDList.length)}},{key:"removeFromUserIDList",value:function(e){var t=this.userIDList.indexOf(e);t>-1&&(this.userIDList.splice(t,1),this.count=this.userIDList.length)}}]),e}(),Sc=function(){function e(t){o(this,e),this._snsModule=t,this._n="FriendGroupHandler",this._friendGroupMap=new Map}return i(e,[{key:"getLocalFriendGroupList",value:function(){return y(this._friendGroupMap.values())}},{key:"_emitFriendGroupListUpdated",value:function(){var e=y(this._friendGroupMap.values());this._snsModule.emitOuterEvent(I.FRIEND_GROUP_LIST_UPDATED,e)}},{key:"getFriendGroupList",value:function(){var e=this,t="".concat(this._n,".").concat("getFriendGroupList"),n=new Ka("getFriendGroupList");return this._snsModule.request({protocolName:Pr,requestData:{fromAccount:this._snsModule.getMyUserID()}}).then((function(r){n.setNetworkType(e._snsModule.getNetworkType()).end();var o=r.data.resultList;en(o)?Ge.i("".concat(t," ok. friend group count:0")):(Ge.i("".concat(t," ok. friend group count:").concat(o.length)),e._friendGroupMap.clear(),o.forEach((function(t){var n=new Ic(t);e._friendGroupMap.set(t.name,n)})),e._emitFriendGroupListUpdated())})).catch((function(r){return e._snsModule.probeNetwork().then((function(e){var t=_(e,2),o=t[0],a=t[1];n.setError(r,o,a).end()})),Ge.w("".concat(t," error:"),r),vi(r)}))}},{key:"createFriendGroup",value:function(e){var t=this,n="".concat(this._n,".").concat("createFriendGroup"),r=e.name,o=e.userIDList;if(this._friendGroupMap.has(r))return vi({code:Aa.FRIEND_GROUP_EXISTED});var a=new Ka("createFriendGroup");return a.setMessage("name:".concat(r," userIDList:").concat(o)),this._snsModule.request({protocolName:Ur,requestData:{fromAccount:this._snsModule.getMyUserID(),groupName:[r],userIDList:dt(o)?o:void 0}}).then((function(e){a.setNetworkType(t._snsModule.getNetworkType()).end(),Ge.l("".concat(n," ok. name:").concat(r," userIDList:").concat(o));var i=e.data.resultList,s=[],c=[];i&&i.forEach((function(e){var t=e.to,n=e.resultCode,r=e.resultInfo;if(pt(n)||0===n)s.push(t);else{var o={userID:e.to,code:n,message:r};c.push(o)}}));var l=new Ic({name:r,userIDList:s});return t._friendGroupMap.set(r,l),t._snsModule.updateWhenAddedToFriendGroup({name:r,userIDList:s}),t._emitFriendGroupListUpdated(),di({friendGroup:l,failureUserIDList:c})})).catch((function(e){return t._snsModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];a.setError(e,r,o).end()})),Ge.w("".concat(n," failed. error:"),e),vi(e)}))}},{key:"deleteFriendGroup",value:function(e){var t=this,n="".concat(this._n,".").concat("deleteFriendGroup"),r=e.name;if(!this._friendGroupMap.has(r))return vi({code:Aa.FRIEND_GROUP_NOT_EXIST});var o=new Ka("deleteFriendGroup");return o.setMessage("name:".concat(r)),this._snsModule.request({protocolName:Vr,requestData:{fromAccount:this._snsModule.getMyUserID(),nameList:[r]}}).then((function(e){o.setNetworkType(t._snsModule.getNetworkType()).end(),Ge.l("".concat(n," ok. name:").concat(r));var a=t._friendGroupMap.get(r);return a&&(t._snsModule.updateWhenRemovedFromFriendGroup({name:r,userIDList:a.userIDList}),t._friendGroupMap.delete(r),a.userIDList.length=0),t._emitFriendGroupListUpdated(),di(a)})).catch((function(e){return t._snsModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],a=n[1];o.setError(e,r,a).end()})),Ge.w("".concat(n," failed. error:"),e),vi(e)}))}},{key:"renameFriendGroup",value:function(e){var t=this,n="".concat(this._n,".").concat("renameFriendGroup"),r=e.oldName,o=e.newName;if(!this._friendGroupMap.has(r))return vi({code:Aa.FRIEND_GROUP_NOT_EXIST});var a=new Ka("renameFriendGroup");return a.setMessage("oldName:".concat(r," newName:").concat(o)),this._snsModule.request({protocolName:Br,requestData:{fromAccount:this._snsModule.getMyUserID(),oldName:r,newName:o}}).then((function(){if(a.setNetworkType(t._snsModule.getNetworkType()).end(),Ge.l("".concat(n," ok. oldName:").concat(r," newName:").concat(o)),t._friendGroupMap.has(r)){var e=t._friendGroupMap.get(r);return e.name=o,t._friendGroupMap.delete(r),t._friendGroupMap.set(o,e),t._snsModule.updateWhenRemovedFromFriendGroup({name:r,userIDList:e.userIDList}),t._snsModule.updateWhenAddedToFriendGroup({name:o,userIDList:e.userIDList}),t._emitFriendGroupListUpdated(),di(e)}return di()})).catch((function(e){return t._snsModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];a.setError(e,r,o).end()})),Ge.w("".concat(n," failed. error:"),e),vi(e)}))}},{key:"addToFriendGroup",value:function(e){var t=this,n="".concat(this._n,".").concat("addToFriendGroup"),r=e.name,o=e.userIDList;if(!this._friendGroupMap.has(r))return this._onFriendGroupNotExist(r);var a=new Ka("addToFriendGroup");return a.setMessage("name:".concat(r," userIDList:").concat(o)),Ge.l("".concat(n," name:").concat(r," userIDList:").concat(o)),this._snsModule.request({protocolName:Br,requestData:{fromAccount:this._snsModule.getMyUserID(),oldName:r,updateGroupItem:o.filter((function(e){return t._snsModule.isMyFriend(e)})).map((function(e){return{to:e,updateType:"Update_Type_Add"}}))}}).then((function(e){return a.setNetworkType(t._snsModule.getNetworkType()).end(),t._onFriendGroupUpdated(r,e)})).catch((function(e){return t._snsModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];a.setError(e,r,o).end()})),Ge.w("".concat(n," failed. error:"),e),vi(e)}))}},{key:"removeFromFriendGroup",value:function(e){var t=this,n="".concat(this._n,".").concat("removeFromFriendGroup"),r=e.name,o=e.userIDList;if(!this._friendGroupMap.has(r))return this._onFriendGroupNotExist(r);var a=new Ka("removeFromFriendGroup");return a.setMessage("name:".concat(r," userIDList:").concat(o)),Ge.l("".concat(n," name:").concat(r," userIDList:").concat(o)),this._snsModule.request({protocolName:Br,requestData:{fromAccount:this._snsModule.getMyUserID(),oldName:r,updateGroupItem:o.filter((function(e){return t._snsModule.isMyFriend(e)})).map((function(e){return{to:e,updateType:"Update_Type_Delete"}}))}}).then((function(e){return a.setNetworkType(t._snsModule.getNetworkType()).end(),t._onFriendGroupUpdated(r,e)})).catch((function(e){return t._snsModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];a.setError(e,r,o).end()})),Ge.w("".concat(n," failed. error:"),e),vi(e)}))}},{key:"_onFriendGroupUpdated",value:function(e,t){var n=t.data.resultList,r=this._friendGroupMap.get(e),o=[],a=[],i=[];return dt(n)&&n.forEach((function(e){var t=e.to,n=e.resultCode,s=e.resultInfo,c=e.type;0===n?"Update_Type_Add"===c?r&&(r.addToUserIDList(t),a.push(t)):"Update_Type_Delete"===c&&r&&(r.removeFromUserIDList(t),i.push(t)):o.push({to:e.to,code:n,message:s})})),Ge.l("".concat(this._n,"._onFriendGroupUpdated name:").concat(e," userIDList:").concat(r.userIDList)),a.length>0&&this._snsModule.updateWhenAddedToFriendGroup({name:e,userIDList:a}),i.length>0&&this._snsModule.updateWhenRemovedFromFriendGroup({name:e,userIDList:i}),di({friendGroup:r,failureUserIDList:o})}},{key:"updateWhenFriendAdded",value:function(e){var t=this,n=e.nameList,r=e.userID;Ge.l("".concat(this._n,".updateWhenFriendAdded userID:").concat(r," nameList:").concat(n)),en(n)||n.forEach((function(e){t._friendGroupMap.has(e)&&t._friendGroupMap.get(e).addToUserIDList(r)}))}},{key:"updateWhenFriendDeleted",value:function(e){var t=this,n=e.nameList,r=e.userID;Ge.l("".concat(this._n,".updateWhenFriendDeleted userID:").concat(r," nameList:").concat(n)),en(n)||n.forEach((function(e){t._friendGroupMap.has(e)&&t._friendGroupMap.get(e).removeFromUserIDList(r)}))}},{key:"reset",value:function(){this._friendGroupMap.clear()}}]),e}(),Tc=function(e){c(n,e);var t=g(n);function n(e){var r;return o(this,n),(r=t.call(this,e))._n="SnsModule",r._friendHandler=new wc(m(r)),r._friendApplicationHandler=new kc(m(r)),r._friendGroupHandler=new Sc(m(r)),r.getInnerEmitterInstance().on(yi,r.onContextUpdated,m(r)),r}return i(n,[{key:"onContextUpdated",value:function(e){this._friendHandler.pagingGetFriendList(),this._friendGroupHandler.getFriendGroupList(),this._friendApplicationHandler.getFriendApplicationList()}},{key:"onRelationChainModified",value:function(e){var t=this,n=e.dataList;if(!en(n)){var r=[],o=[],a=[],i=[],s=!1,c="";n.forEach((function(e){if(3!==e.pushType&&4!==e.pushType||!e.from||(c=e.from),e.friendAddAccount&&(r.push.apply(r,y(e.friendAddAccount)),i.push.apply(i,y(e.friendAddAccount))),e.friendDelAccount&&o.push.apply(o,y(e.friendDelAccount)),e.friendApplicationAdded&&a.push.apply(a,y(e.friendApplicationAdded)),e.friendApplicationDeletedUserIDList&&i.push.apply(i,y(e.friendApplicationDeletedUserIDList)),e.reportTime&&7===e.pushType&&(s=!0),e.friendUpInfo){var n={dataList:[]};e.friendUpInfo.forEach((function(e){n.dataList.push({userID:e.friendAccount,profileList:y(e.sns)})})),t.onFriendProfileModified(n)}})),s&&this._friendApplicationHandler.onFriendApplicationRead(),this._friendApplicationHandler.onFriendApplicationAdded(a,c),this._friendApplicationHandler.onFriendApplicationDeleted(i),this._friendHandler.onFriendAdded(r),this._friendHandler.onFriendDeleted(o)}}},{key:"isMyFriend",value:function(e){return this._friendHandler.isMyFriend(e)}},{key:"filterProfanity",value:function(e,t){var n=this.getModule(lr);if(!n)return!0;var r=n.filterText(t[e],$),o=r.isAllowedToSend,a=r.modifiedText;return!0===o&&(t[e]=a,!0)}},{key:"onFriendProfileModified",value:function(e){this._friendHandler.onFriendProfileModified(e)}},{key:"getLocalFriendList",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this._friendHandler.getLocalFriendList();return e?mi(t):t}},{key:"getFriendRemark",value:function(e){return this._friendHandler.getFriendRemark(e)}},{key:"getFriendList",value:function(){return this._friendHandler.pagingGetFriendList()}},{key:"addFriend",value:function(e){return this._friendHandler.addFriend(e)}},{key:"deleteFriend",value:function(e){return this._friendHandler.deleteFriend(e)}},{key:"checkFriend",value:function(e){return this._friendHandler.checkFriend(e)}},{key:"getFriendProfile",value:function(e){return this._friendHandler.getFriendProfile(e)}},{key:"updateFriend",value:function(e){return this._friendHandler.updateFriend(e)}},{key:"updateWhenAddedToFriendGroup",value:function(e){this._friendHandler.updateWhenAddedToFriendGroup(e)}},{key:"updateWhenRemovedFromFriendGroup",value:function(e){this._friendHandler.updateWhenRemovedFromFriendGroup(e)}},{key:"getLocalFriendApplicationList",value:function(){var e=this._friendApplicationHandler.getLocalFriendApplicationList();return mi(e)}},{key:"deleteFriendApplication",value:function(e){return this._friendApplicationHandler.deleteFriendApplication(e)}},{key:"refuseFriendApplication",value:function(e){return this._friendApplicationHandler.refuseFriendApplication(e)}},{key:"acceptFriendApplication",value:function(e){return this._friendApplicationHandler.acceptFriendApplication(e)}},{key:"setFriendApplicationRead",value:function(e){return this._friendApplicationHandler.setFriendApplicationRead(e)}},{key:"getLocalFriendGroupList",value:function(){var e=this._friendGroupHandler.getLocalFriendGroupList();return mi(e)}},{key:"createFriendGroup",value:function(e){return this._friendGroupHandler.createFriendGroup(e)}},{key:"deleteFriendGroup",value:function(e){return this._friendGroupHandler.deleteFriendGroup(e)}},{key:"addToFriendGroup",value:function(e){return this._friendGroupHandler.addToFriendGroup(e)}},{key:"removeFromFriendGroup",value:function(e){return this._friendGroupHandler.removeFromFriendGroup(e)}},{key:"renameFriendGroup",value:function(e){return this._friendGroupHandler.renameFriendGroup(e)}},{key:"onAddToFriendGroup",value:function(e){return this._friendGroupHandler.onAddToFriendGroup(e)}},{key:"updateWhenFriendAdded",value:function(e){this._friendGroupHandler.updateWhenFriendAdded(e)}},{key:"updateWhenFriendDeleted",value:function(e){this._friendGroupHandler.updateWhenFriendDeleted(e)}},{key:"reset",value:function(){Ge.l("".concat(this._n,".reset")),this._friendHandler.reset(),this._friendGroupHandler.reset(),this._friendApplicationHandler.reset()}}]),n}(fr),Ec=function(e){c(n,e);var t=g(n);function n(e){var r;return o(this,n),(r=t.call(this,e))._n="WorkerTimerModule",r._isWorkerEnabled=!0,r._workerTimer=null,r._timerID=-1,r._init(),r.getInnerEmitterInstance().on(bi,r._onCloudConfigUpdated,m(r)),r}return i(n,[{key:"isWorkerEnabled",value:function(){return this._isWorkerEnabled&&Te}},{key:"startWorkerTimer",value:function(){Ge.l("".concat(this._n,".startWorkerTimer")),this._workerTimer&&this._workerTimer.postMessage("start")}},{key:"stopWorkerTimer",value:function(){Ge.l("".concat(this._n,".stopWorkerTimer")),this._workerTimer&&this._workerTimer.postMessage("stop")}},{key:"_init",value:function(){if(Te){var e=URL.createObjectURL(new Blob(['let interval = -1;onmessage = function(event) { if (event.data === "start") { if (interval > 0) { clearInterval(interval); } interval = setInterval(() => { postMessage(""); }, 1000); postMessage(interval); } else if (event.data === "stop") { clearInterval(interval); interval = -1; }};'],{type:"application/javascript; charset=utf-8"}));this._workerTimer=new Worker(e);var t=this;this._workerTimer.onmessage=function(e){e.data?(t._timerID=e.data,Ge.l("".concat(t._n,"._init seed:").concat(t._timerID))):t._m.onCheckTimer()}}}},{key:"_onCloudConfigUpdated",value:function(){var e=this.getCloudConfig("enable_worker");Ge.l("".concat(this._n,"._onCloudConfigUpdated enableWorker:").concat(e)),pt(e)||"1"===e?!this._isWorkerEnabled&&Te&&(this._isWorkerEnabled=!0,this.startWorkerTimer(),this._m.onWorkerTimerEnabled()):this._isWorkerEnabled&&Te&&(this._isWorkerEnabled=!1,this.stopWorkerTimer(),this._m.onWorkerTimerDisabled())}},{key:"terminate",value:function(){Ge.l("".concat(this._n,".terminate")),this._workerTimer&&(this._workerTimer.terminate(),this._workerTimer=null,this._timerID=-1)}},{key:"getTimerID",value:function(){return this._timerID}},{key:"reset",value:function(){Ge.l("".concat(this._n,".reset"))}}]),n}(fr),jc=function(){function e(){o(this,e),this._n="PurchasedFeatureHandler",this._purchasedFeatureMap=new Map}return i(e,[{key:"isValidPurchaseBits",value:function(e){return e&&"string"==typeof e&&e.length>=1&&e.length<=64&&/[01]{1,64}/.test(e)}},{key:"parsePurchaseBits",value:function(e){var t="".concat(this._n,".parsePurchaseBits");if(this.isValidPurchaseBits(e)){this._purchasedFeatureMap.clear();for(var n=null,r=e.length-1,o=0;r>=0;r--,o++)n=o<32?new E(0,Math.pow(2,o)).toString():new E(Math.pow(2,o-32),0).toString(),"1"===e[r]?this._purchasedFeatureMap.set(n,!0):this._purchasedFeatureMap.set(n,!1)}else Ge.w("".concat(t," invalid purchase bits:").concat(e))}},{key:"hasPurchasedFeature",value:function(e){return!!this._purchasedFeatureMap.get(e)}},{key:"isFeatureEnabled",value:function(e){for(var t=parseInt(e).toString(2),n=void 0,r=!0,o=t.length-1,a=0;o>=0;o--,a++)if("1"===t.charAt(o)&&(n=a<32?new E(0,Math.pow(2,a)).toString():new E(Math.pow(2,a-32),0).toString(),!this._purchasedFeatureMap.get(n))){r=!1;break}return Ge.l("".concat(this._n,".isFeatureEnabled decimalNumber:").concat(e," binaryString:").concat(t," ret:").concat(r)),mi({enabled:r})}},{key:"clear",value:function(){this._purchasedFeatureMap.clear()}}]),e}(),Dc=function(){function e(t){o(this,e),this._m=t,this._n="CommercialConfigModule",this._expiredTime=0,this._isFetching=!1,this._purchasedFeatureHandler=new jc}return i(e,[{key:"_canFetch",value:function(){return this._getModule(qn).isLoggedIn()?!this._isFetching&&Date.now()>=this._expiredTime:(this._expiredTime=Date.now()+2e3,!1)}},{key:"onCheckTimer",value:function(e){this._canFetch()&&this.fetchConfig()}},{key:"fetchConfig",value:function(){var e=this,t=this._canFetch(),n="".concat(this._n,".fetchConfig");if(Ge.l("".concat(n," canFetch:").concat(t)),t){var r=this._getModule($n),o=new Ka("fetchCommercialConfig");o.setNetworkType(r.getNetworkType());var a=this._getModule(qn).getSDKAppID(),i=this._getModule(er);this._isFetching=!0,i.request({protocolName:ga,requestData:{SDKAppID:a}}).then((function(t){o.setMessage("purchaseBits:".concat(t.data.purchaseBits)).end(),Ge.l("".concat(n," ok.")),e._parseConfig(t.data),e._isFetching=!1})).catch((function(t){r.probe().then((function(e){var n=_(e,2),r=n[0],a=n[1];o.setError(t,r,a).end()})),e._isFetching=!1}))}}},{key:"onPushedConfig",value:function(e){var t="".concat(this._n,".onPushedConfig");Ge.l("".concat(t)),new Ka("pushedCommercialConfig").setNetworkType(this._getModule($n).getNetworkType()).setMessage("purchaseBits:".concat(e.purchaseBits)).end(),this._parseConfig(e)}},{key:"_parseConfig",value:function(e){var t="".concat(this._n,"._parseConfig"),n=e.errorCode,r=e.errorMessage,o=e.purchaseBits,a=e.expiredTime;0===n?(this._purchasedFeatureHandler.parsePurchaseBits(o),this._expiredTime=Date.now()+1e3*a):pt(n)?(Ge.l("".concat(t," failed. Invalid message format:"),e),this._setExpiredTimeOnResponseError(36e5)):(Ge.e("".concat(t," errorCode:").concat(n," errorMessage:").concat(r)),this._setExpiredTimeOnResponseError(12e4))}},{key:"_setExpiredTimeOnResponseError",value:function(e){this._expiredTime=Date.now()+e}},{key:"canIUse",value:function(e){return this._purchasedFeatureHandler.hasPurchasedFeature(e)}},{key:"isFeatureEnabled",value:function(e){return this._purchasedFeatureHandler.isFeatureEnabled(e)}},{key:"_getModule",value:function(e){return this._m.getModule(e)}},{key:"reset",value:function(){Ge.l("".concat(this._n,".reset")),this._expiredTime=0,this._isFetching=!1,this._purchasedFeatureHandler.clear()}}]),e}(),Lc=function(e){c(n,e);var t=g(n);function n(e){var r;return o(this,n),(r=t.call(this,e))._m=e,r._n="OfflinePushModule",r._offlinePushPlugin=void 0,r._androidPushConfig={huaweiPushBussinessId:"",xiaomiPushBussinessId:"",xiaomiPushAppId:"",xiaomiPushAppKey:"",meizuPushBussinessId:"",meizuPushAppId:"",meizuPushAppKey:"",vivoPushBussinessId:"",fcmPushBussinessId:"",oppoPushBussinessId:"",oppoPushAppKey:"",oppoPushAppSecret:"",honorPushBussinessId:""},r._deviceToken="",r._businessID=0,r._iosBusinessID=0,r._c2cUnreadCount=0,r._groupUnreadCount=0,r._isWebUniapp=0,r}return i(n,[{key:"registerPlugin",value:function(e){if(oe){this._offlinePushPlugin=e["tim-offline-push-plugin"];var t=e.offlinePushConfig||{},n=t.huaweiBusinessID,r=t.xiaomiBusinessID,o=t.xiaomiAppID,a=t.xiaomiAppKey,i=t.meizuBusinessID,s=t.meizuAppID,c=t.meizuAppKey,l=t.vivoBusinessID,u=t.oppoBusinessID,d=t.oppoAppKey,p=t.oppoAppSecret,f=t.honorBusinessID,h=t.iosBusinessID;this._androidPushConfig.huaweiPushBussinessId=n,this._androidPushConfig.xiaomiPushBussinessId=r,this._androidPushConfig.xiaomiPushAppId=o,this._androidPushConfig.xiaomiPushAppKey=a,this._androidPushConfig.meizuPushBussinessId=i,this._androidPushConfig.meizuPushAppId=s,this._androidPushConfig.meizuPushAppKey=c,this._androidPushConfig.vivoPushBussinessId=l,this._androidPushConfig.oppoPushBussinessId=u,this._androidPushConfig.oppoPushAppKey=d,this._androidPushConfig.oppoPushAppSecret=p,this._androidPushConfig.honorPushBussinessId=f,new Ka("registerPlugin").setMessage("tim-offline-push-plugin").setMoreMessage("isExist:".concat(!pt(this._offlinePushPlugin))).end(!0),Ge.l("".concat(this._n,".").concat("registerPlugin"," ok. offlinePushConfig:").concat(JSON.stringify(e.offlinePushConfig))),this._iosBusinessID=h,this._setAppShowListener()}else this.outputWarning("OfflinePushInUniapp")}},{key:"init",value:function(){this._isWebUniapp=this.getUniAppPlatform(),this._getDeviceToken()}},{key:"_getDeviceToken",value:function(){var e=this,t="".concat(this._n,".").concat("_getDeviceToken");if(ht(this._offlinePushPlugin.getDeviceToken)){var n="androidPushConfig:".concat(JSON.stringify(this._androidPushConfig),", iosBusinessID:").concat(this._iosBusinessID);Ge.l("".concat(t," start. ").concat(n)),new Ka("_getDeviceToken").setMessage("".concat(n)).end(!0),this._offlinePushPlugin.getDeviceToken(this._androidPushConfig,(function(r){var o=new Ka("getDeviceTokenRes"),a=r.code,i=r.msg;if(0===a){var s=r.data,c=s.deviceToken,l=s.deviceBrand,u=s.deviceType,d=s.bussinessId;e._deviceToken=c,e._businessID=d||e._iosBusinessID,n="deviceToken:".concat(c,", deviceBrand:").concat(l||u,", businessID:").concat(e._businessID),Ge.l("".concat(t," ok. ").concat(n)),o.setMessage(n).end(!0),e._setToken()}else o.setMessage("code:".concat(a,", msg:").concat(i)).end(!0),Ge.e("".concat(t," failed. error:"),r)}))}else Ge.e("".concat(t," getDeviceToken is not a function"))}},{key:"canIUseOfflinePush",value:function(){return oe&&!pt(this._offlinePushPlugin)}},{key:"_setAppShowListener",value:function(){var e=this,t="".concat(this._n,".").concat("_setAppShowListener");pt(this._offlinePushPlugin)?Ge.e("".concat(t," offlinePushPlugin is undefined")):ht(this._offlinePushPlugin.setAppShowListener)?(new Ka("_setAppShowListener").end(!0),Ge.l("".concat(t," start")),this._offlinePushPlugin.setAppShowListener((function(n){var r=(n||{}).appShow;new Ka("setAppShowListenerRes").setMessage("appShow:".concat(r)).end(!0),Ge.l("".concat(t," ok. appShow:").concat(r)),e._m.isReady()&&(0===r?(e._getConvUnreadCount(),e._onBackground()):1===r&&e._onForeground())}))):Ge.e("".concat(t," setAppShowListener is not a function"))}},{key:"getDeviceBrand",value:function(){if(!pt(this._offlinePushPlugin)&&ht(this._offlinePushPlugin.getDeviceType)){var e=(this._offlinePushPlugin.getDeviceType()||{}).deviceType;return Ge.l("".concat(this._n,".getDeviceBrand ok. deviceType:").concat(e)),e}}},{key:"_setToken",value:function(){var e,t=this,n="".concat(this._n,"._setToken"),r=this.getModule(qn),o=1,a="",i="";en(this._deviceToken)&&(o=0);var s=this.getUniAppPlatform(),c=this.getDeviceBrand();s===D.IOS||s===D.IPAD||s===D.MAC?i=this._deviceToken:s===D.ANDROID&&(a=this._deviceToken);var l=new Ka("offlinePushSetToken");return e="deviceToken:".concat(i||a,", businessID:").concat(this._businessID,", ")+"deviceBrand:".concat(c,", isWebUniapp:").concat(this._isWebUniapp,", pushMsg:").concat(o,", platform:").concat(s),l.setMessage("".concat(e)),Ge.l("".concat(n," ").concat(e)),this.request({protocolName:ja,requestData:{tokenID:a,pushMsg:o,sdkAppID:r.getSDKAppID(),businessID:parseInt(this._businessID),deviceBrand:c,deviceToken:i,isWebUniapp:this._isWebUniapp}}).then((function(e){return l.end(),Ge.l("".concat(n," ok")),e})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];l.setError(e,r,o).end()})),Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"_getConvUnreadCount",value:function(){var e=this;this._c2cUnreadCount=0,this._groupUnreadCount=0,this.getModule(Yn).getLocalConversationList().forEach((function(t){t.type===S.CONV_C2C&&(e._c2cUnreadCount+=t.unreadCount),t.type===S.CONV_GROUP&&(e._groupUnreadCount+=t.unreadCount)}))}},{key:"_onBackground",value:function(){var e=this,t="".concat(this._n,".").concat("_onBackground"),n=new Ka("_onBackground");this.request({protocolName:Ta,requestData:{c2cUnreadCount:this._c2cUnreadCount,groupUnreadCount:this._groupUnreadCount,isWebUniapp:this._isWebUniapp}}).then((function(r){return n.setMessage("c2cUnreadCount: ".concat(e._c2cUnreadCount,", groupUnreadCount: ").concat(e._groupUnreadCount)).end(),Ge.l("".concat(t," ok")),r})).catch((function(r){e.probeNetwork().then((function(e){var t=_(e,2),o=t[0],a=t[1];n.setError(r,o,a).end()})),Ge.e("".concat(t," failed. error:"),r)}))}},{key:"_onForeground",value:function(){var e=this,t="".concat(this._n,".").concat("_onForeground"),n=new Ka("_onForeground");this.request({protocolName:Ea,requestData:{isWebUniapp:this._isWebUniapp}}).then((function(e){return n.end(),Ge.l("".concat(t," ok")),e})).catch((function(r){e.probeNetwork().then((function(e){var t=_(e,2),o=t[0],a=t[1];n.setError(r,o,a).end()})),Ge.e("".concat(t," failed. error:"),r)}))}},{key:"getUniAppPlatform",value:function(){var e=uni.getSystemInfoSync().platform,t=this.getDeviceBrand();return"ios"===e?D.IOS:"android"===e?D.ANDROID:1002===t?D.IPAD:1001===t?D.MAC:void 0}},{key:"reset",value:function(){this._deviceToken="",this._businessID=0,this._c2cUnreadCount=0,this._groupUnreadCount=0,this._isWebUniapp=0,Ge.l("".concat(this._n,".reset"))}}]),n}(fr),Ac=function(e){c(n,e);var t=g(n);function n(e){var r;return o(this,n),(r=t.call(this,e))._n="ProfanityFilterModule",r._plugin=null,r._filterConfigMap=new Map,r._startIndex=0,r._version=0,r._canIUseLexicon=!1,r._isFetching=!1,r._expiredTime=0,r}return i(n,[{key:"init",value:function(){var e=this.getModule(Xn).getPlugin("tim-profanity-filter-plugin");e?(this._plugin=new e({logger:Ge,isArray:dt,isMap:at,isDevMode:this.isDevMode()}),this._getLexicon()):this.outputWarning("ProfanityPluginNotFound")}},{key:"onCheckTimer",value:function(){this._plugin&&this._canIUseLexicon&&this.isLoggedIn()&&!this._isFetching&&Date.now()>=this._expiredTime&&this._getLexicon()}},{key:"filterMessage",value:function(e,t){var n=!0;if(!this._plugin||!this._canIUseLexicon)return n;if(t&&t.messageControlInfo&&!0===t.messageControlInfo.excludedFromContentModeration)return n;var r=e.type,o=e.conversationType;if(r!==S.MSG_TEXT&&r!==S.MSG_CUSTOM)return n;var a,i="".concat(this._n,".filterMessage");if(Ge.l("".concat(i)),r===S.MSG_TEXT){if(o===S.CONV_C2C?a=H:o===S.CONV_GROUP&&(a=q),!this._isConfigOn(a))return n;var s=this._plugin.filter(e.payload.text),c=s.type,l=s.modifiedText;1===c?n=!1:2===c&&(e.payload.text=l)}else if(r===S.MSG_CUSTOM){if(o===S.CONV_C2C?a=Y:o===S.CONV_GROUP&&(a=W),!this._isConfigOn(a))return n;var u=this._plugin.filter(e.payload.data),d=this._plugin.filter(e.payload.description),p=this._plugin.filter(e.payload.extension);1===u.type||1===d.type||1===p.type?n=!1:(2===u.type&&(e.payload.data=u.modifiedText),2===d.type&&(e.payload.description=d.modifiedText),2===p.type&&(e.payload.extension=p.modifiedText))}return Ge.l("".concat(i," done. isAllowedToSend:").concat(n)),n}},{key:"filterText",value:function(e,t){var n="".concat(this._n,".filterText"),r={isAllowedToSend:!0,modifiedText:e};if(!this._plugin||!this._canIUseLexicon)return r;if(!this._isConfigOn(t))return r;Ge.l("".concat(n));var o=this._plugin.filter(e),a=o.type,i=o.modifiedText;return 1===a?r.isAllowedToSend=!1:2===a&&(r.modifiedText=i),Ge.l("".concat(n," done. ret:"),r),r}},{key:"_getLexicon",value:function(){var e=this,t=new Ka("profanityFilter"),n="".concat(this._n,"._getLexicon");this._isFetching=!0,this.request({protocolName:Da,requestData:{startIndex:this._startIndex,version:this._version}}).then((function(r){var o=r.data,a=o.errorInfo,i=o.filterConfig,s=o.lexicon,c=o.strToken,l=o.completeFlag,u=o.nextStartIndex,d=o.version,p=o.expiredTime,f=a.errorCode,h=a.errorMessage;return 0!==f?(e._isFetching=!1,Ge.w("".concat(n," failed. error:"),a),void t.setCode(f).setMessage(h).end()):(e._onFilterConfig(i),e._getToken(c),1===l?(Ge.l("".concat(n," done. version:").concat(d," expiredTime:").concat(p)),e._version=d,e._canIUseLexicon=!0,e._isFetching=!1,e._expiredTime=Date.now()+1e3*p,void e._plugin.onLexiconCompleted(s)):(e._startIndex=u,e._plugin.onLexiconSliced(s),void e._getLexicon()))})).catch((function(r){e.probeNetwork().then((function(e){var n=_(e,2),o=n[0],a=n[1];t.setError(r,o,a).end()})),e._isFetching=!1,Ge.l("".concat(n," failed. error:"),r)}))}},{key:"_onFilterConfig",value:function(e){var t=this;en(e)||(this._filterConfigMap.clear(),Object.keys(e).forEach((function(n){t._filterConfigMap.set(n,e[n])})),Ge.l("".concat(this._n,"._onFilterConfig. keys:").concat(Array.from(this._filterConfigMap.keys())," values:").concat(Array.from(this._filterConfigMap.values()))))}},{key:"_isConfigOn",value:function(e){return 1===this._filterConfigMap.get(e)}},{key:"_getToken",value:function(e){if(ct(e)){var t=e.length,n="";if(t%2==0)for(var r=0;r<=t-1;r+=2)n+=e[r+1],n+=e[r];else{for(var o=0;o<t-1;o+=2)n+=e[o+1],n+=e[o];n+=e[t-1]}this._plugin.onToken(n)}}},{key:"reset",value:function(){Ge.l("".concat(this._n,".reset")),this._plugin&&(this._plugin.reset(),this._plugin=null),this._filterConfigMap.clear(),this._startIndex=0,this._version=0,this._canIUseLexicon=!1,this._isFetching=!1,this._expiredTime=0}}]),n}(fr),Nc=function(){function e(t){o(this,e),this._m=t,this._n="TransCmdModule"}return i(e,[{key:"sendTRTCCustomData",value:function(e){return this._trans(n({serv:G.NAME.TUIROOM_SVR},e))}},{key:"_trans",value:function(e){Ge.d("".concat(this._n,"._trans. options:").concat(JSON.stringify(e)));var t=e.serv,n=e.data;return this._m.getModule(er).trans({servcmd:"".concat(t,".*"),data:ct(n)?JSON.parse(n):n})}},{key:"reset",value:function(){Ge.l("".concat(this._n,".reset"))}}]),e}(),xc=function(){function e(t){o(this,e),this._m=t,this._n="ErrorMessageModule",this.TIM_ERROR_ASSISTANCE="tim_error_assistance",this.STORAGE_EXPIRES_TIME=6048e5,this._map=new Map,this._init()}return i(e,[{key:"_init",value:function(){var e=this._getStorageModule().getItem(this.TIM_ERROR_ASSISTANCE,!1);if(e){var t=JSON.parse(e);this._needToUpdate(t)?this._fetch():this._fillMap(t.message)}else this._fetch()}},{key:"_needToUpdate",value:function(e){var t=e.localSavedTime,n=e.localSavedVersion,r=t&&(new Date).getTime()-t>=this.STORAGE_EXPIRES_TIME,o=!n||"2.27.1"!==n;return Ge.l("".concat(this._n,"._needToUpdate isTimeout:").concat(r," isDifferentVersion:").concat(o)),r||o}},{key:"_fetch",value:function(){if(!this._m.getModule(qn).isPrivateNetWork()){var e="https://web.sdk.qcloud.com/im/download/error-message/0.0.1/tim-error-message.txt",t="application/x-www-form-urlencoded;charset=UTF-8",n="".concat(this._n,"._fetch ok in"),r=this;if(ie)ce.request({url:e,method:"GET",timeout:3e3,header:{"content-type":t},dataType:"text",success:function(e){r._fillAndSave(e.data),Ge.l("".concat(n," mini program"))},fail:function(){}});else{var o=new XMLHttpRequest,a=setTimeout((function(){o.abort()}),3e3);o.onreadystatechange=function(){4===o.readyState&&(clearTimeout(a),200!==o.status&&304!==o.status||(Ge.l("".concat(n," browser")),r._fillAndSave(o.responseText)))},o.open("GET",e,!0),o.setRequestHeader("Content-type",t),o.send()}}}},{key:"_fillAndSave",value:function(e){this._fillMap(e),this._getStorageModule().setItem(this.TIM_ERROR_ASSISTANCE,JSON.stringify({message:e,localSavedTime:(new Date).getTime(),localSavedVersion:"2.27.1"}),!0,!1)}},{key:"_getStorageModule",value:function(){return this._m.getModule(Wn)}},{key:"_fillMap",value:function(e){this._map.clear();for(var t,n,r,o=e.split(";\n"),a=o.length,i=new RegExp(/'/g),s=0;s<a;s++)if(t=o[s].indexOf(":"),n=o[s].slice(0,t),r=o[s].slice(t+1,o[s].length),!n.startsWith("//")){if(pt(r))continue;this._map.set(n,r.replace(i,""))}}},{key:"get",value:function(e){var t=e.isIntl,n=e.key,r=e.replacement1,o=e.replacement2,a="".concat(n,t?"_en":"_cn");!this._map.has(a)&&this._map.has(n)&&(a=n);var i="";return this._map.has(a)?(i=this._map.get(a),pt(r)||(i=i.replace("$replacement1",r)),pt(o)||(i=i.replace("$replacement2",o)),i):i}},{key:"reset",value:function(){Ge.l("".concat(this._n,".reset"))}}]),e}(),Rc=function(){function e(t){o(this,e);var n=new Ka("sdkConstruct");this._n="ModuleManager",this._isReady=!1,this._reason=Aa.USER_NOT_LOGGED_IN,this._startLoginTs=0,this._moduleMap=new Map,this._innerEmitter=null,this._outerEmitter=null,this._checkCount=0,this._checkTimer=-1,this._moduleMap.set(qn,new gs(this,t)),this._moduleMap.set(sr,new Dc(this)),this._moduleMap.set(rr,new mc(this)),this._moduleMap.set(or,new Ec(this)),this._moduleMap.set(ir,new Oc(this)),this._moduleMap.set(tr,new ic(this)),this._moduleMap.set(er,new fc(this)),this._moduleMap.set(Rn,new _s(this)),this._moduleMap.set(Pn,new Ps(this)),this._moduleMap.set(Un,new Us(this)),this._moduleMap.set(dr,new Vs(this)),this._moduleMap.set(Vn,new vs(this)),this._moduleMap.set(Bn,new gi(this)),this._moduleMap.set(Yn,new Ui(this)),this._moduleMap.set(Fn,new os(this)),this._moduleMap.set(zn,new is(this)),this._moduleMap.set(Hn,new us(this)),this._moduleMap.set(Wn,new bs(this)),this._moduleMap.set(pr,new xc(this)),this._moduleMap.set(Kn,new ks(this)),this._moduleMap.set($n,new Ss(this)),this._moduleMap.set(Jn,new Es(this)),this._moduleMap.set(Qn,new Ds(this)),this._moduleMap.set(Xn,new Bs(this)),this._moduleMap.set(Zn,new Fs(this)),this._moduleMap.set(nr,new hc(this)),this._moduleMap.set(ar,new vc(this)),this._moduleMap.set(Gn,new Tc(this)),this._moduleMap.set(cr,new Lc(this)),this._moduleMap.set(lr,new Ac(this)),this._moduleMap.set(ur,new Nc(this)),this._eventThrottleMap=new Map;var r=t.instanceID,a=t.oversea,i=t.SDKAppID,s="instanceID:".concat(r," SDKAppID:").concat(i," host:").concat(Ut()," oversea:").concat(a," inBrowser:").concat(se," inMiniApp:").concat(ie)+" workerAvailable:".concat(Te," UserAgent:").concat(le);Ka.bindEventStatModule(this._moduleMap.get(Kn)),n.setMessage("".concat(s," ").concat(function(){var e="";if(ie)try{var t=ce.getSystemInfoSync(),n=t.model,r=t.version,o=t.system,a=t.platform,i=t.SDKVersion;e="model:".concat(n," version:").concat(r," system:").concat(o," platform:").concat(a," SDKVersion:").concat(i)}catch(s){e=""}return e}())).end(),Ge.i("SDK ".concat(s)),pi.prototype._getErrorMessage=this.getErrorMessage.bind(this),this._readyList=void 0,this._ssoLogForReady=null,this._initReadyList()}return i(e,[{key:"_startTimer",value:function(){var e=this._moduleMap.get(or),t=e.isWorkerEnabled();Ge.l("".concat(this._n,".startTimer isWorkerEnabled:").concat(t," seed:").concat(this._checkTimer)),t?e.startWorkerTimer():this._startMainThreadTimer()}},{key:"_startMainThreadTimer",value:function(){this._checkTimer<0&&(this._checkTimer=setInterval(this.onCheckTimer.bind(this),1e3)),Ge.l("".concat(this._n,"._startMainThreadTimer seed:").concat(this._checkTimer))}},{key:"stopTimer",value:function(){var e=this._moduleMap.get(or),t=e.isWorkerEnabled();Ge.l("".concat(this._n,".stopTimer isWorkerEnabled:").concat(t," seed:").concat(this._checkTimer)),t?e.stopWorkerTimer():this._stopMainThreadTimer()}},{key:"_stopMainThreadTimer",value:function(){Ge.l("".concat(this._n,"._stopMainThreadTimer")),this._checkTimer>0&&(clearInterval(this._checkTimer),this._checkTimer=-1,this._checkCount=0)}},{key:"_stopMainThreadSocket",value:function(){Ge.l("".concat(this._n,"._stopMainThreadSocket"));var e=this._moduleMap.get(tr);e.setIsWorkerEnabled(!0),e.reConnect()}},{key:"_startMainThreadSocket",value:function(){Ge.l("".concat(this._n,"._startMainThreadSocket"));var e=this._moduleMap.get(tr);e.setIsWorkerEnabled(!1),e.reConnect()}},{key:"onWorkerTimerEnabled",value:function(){Ge.l("".concat(this._n,".onWorkerTimerEnabled, disable main thread timer and socket")),this._stopMainThreadTimer(),this._stopMainThreadSocket()}},{key:"onWorkerTimerDisabled",value:function(){Ge.l("".concat(this._n,".onWorkerTimerDisabled, enable main thread timer and socket")),this._startMainThreadTimer(),this._startMainThreadSocket()}},{key:"onCheckTimer",value:function(){this._checkCount+=1;var e,t=w(this._moduleMap);try{for(t.s();!(e=t.n()).done;){var n=_(e.value,2)[1];n.onCheckTimer&&n.onCheckTimer(this._checkCount)}}catch(o){t.e(o)}finally{t.f()}}},{key:"_initReadyList",value:function(){var e=this;this._readyList=[this._moduleMap.get(Rn),this._moduleMap.get(Yn)],this._readyList.forEach((function(t){t.ready((function(){return e._onModuleReady()}))}))}},{key:"_onModuleReady",value:function(){var e=!0;if(this._readyList.forEach((function(t){t.isReady()||(e=!1)})),e&&!this._isReady){this._isReady=!0,this._outerEmitter.emit(I.SDK_READY);var t=Date.now()-this._startLoginTs;Ge.w("SDK is ready. cost ".concat(t," ms")),this._startLoginTs=Date.now();var n=this._moduleMap.get($n).getNetworkType(),r=this._ssoLogForReady.getStartTs()+xe;this._ssoLogForReady.setNetworkType(n).setMessage(t).start(r).end()}}},{key:"login",value:function(){0===this._startLoginTs&&(Pe(),this._startLoginTs=Date.now(),this._startTimer(),this._moduleMap.get($n).start(),this._ssoLogForReady=new Ka("sdkReady"),this._reason=Aa.LOGGING_IN)}},{key:"onLoginFailed",value:function(){this._startLoginTs=0}},{key:"getOuterEmitterInstance",value:function(){return null===this._outerEmitter&&(this._outerEmitter=new Ts,hi(this._outerEmitter),this._outerEmitter._emit=this._outerEmitter.emit,this._outerEmitter.emit=function(e,t){var n=this;if(e===I.CONVERSATION_LIST_UPDATED||e===I.FRIEND_LIST_UPDATED||e===I.GROUP_LIST_UPDATED||e===I.TOTAL_UNREAD_MESSAGE_COUNT_UPDATED)if(this._eventThrottleMap.has(e)){var r=Date.now(),o=this._eventThrottleMap.get(e);r-o.last<=1e3?(o.timeoutID&&clearTimeout(o.timeoutID),o.timeoutID=setTimeout((function(){o.last=Date.now(),n._outerEmitter._emit.apply(n._outerEmitter,[e,{name:e,data:n._getEventData(e)}])}),1e3)):(o.last=r,this._outerEmitter._emit.apply(this._outerEmitter,[e,{name:e,data:this._getEventData(e)}]))}else this._eventThrottleMap.set(e,{last:Date.now(),timeoutID:-1}),this._outerEmitter._emit.apply(this._outerEmitter,[e,{name:e,data:this._getEventData(e)}]);else this._outerEmitter._emit.apply(this._outerEmitter,[e,{name:e,data:arguments[1]}])}.bind(this)),this._outerEmitter}},{key:"_getEventData",value:function(e){return e===I.CONVERSATION_LIST_UPDATED?this._moduleMap.get(Yn).getLocalConversationList():e===I.FRIEND_LIST_UPDATED?this._moduleMap.get(Gn).getLocalFriendList(!1):e===I.GROUP_LIST_UPDATED?this._moduleMap.get(Fn).getLocalGroupList():e===I.TOTAL_UNREAD_MESSAGE_COUNT_UPDATED?this._moduleMap.get(Yn).getTotalUnreadMessageCount():void 0}},{key:"getInnerEmitterInstance",value:function(){return null===this._innerEmitter&&(this._innerEmitter=new Ts,this._innerEmitter._emit=this._innerEmitter.emit,this._innerEmitter.emit=function(e,t){var n;n=ut(arguments[1])&&arguments[1].data?[e,{name:arguments[0],data:arguments[1].data}]:[e,{name:arguments[0],data:arguments[1]}],this._innerEmitter._emit.apply(this._innerEmitter,n)}.bind(this)),this._innerEmitter}},{key:"hasModule",value:function(e){return this._moduleMap.has(e)}},{key:"getModule",value:function(e){return this._moduleMap.get(e)}},{key:"isReady",value:function(){return this._isReady}},{key:"isIntl",value:function(){return this.getModule(qn).isIntl()}},{key:"getNotReadyReason",value:function(){return this._reason}},{key:"setNotReadyReason",value:function(e){this._reason=e}},{key:"getErrorMessage",value:function(e,t,n){return this._moduleMap.get(pr).get({key:e,replacement1:t,replacement2:n,isIntl:this.isIntl()})}},{key:"outputWarning",value:function(e,t,n){var r=this.getErrorMessage(e,t,n);r&&Ge.w(r)}},{key:"onError",value:function(e){var t="code:".concat(e.code," message:").concat(e.message);Ge.w("Oops! ".concat(t)),new Ka("error").setMessage(t).setNetworkType(this.getModule($n).getNetworkType()).setLevel("error").end(),this.getOuterEmitterInstance().emit(I.ERROR,e)}},{key:"restartTimer",value:function(){Ge.l("".concat(this._n,".restartTimer")),this.stopTimer(),this._startTimer(),this.getModule(Fn).restartPolling()}},{key:"getTimerID",value:function(){var e=this._moduleMap.get(or);return e.isWorkerEnabled()?e.getTimerID():this._checkTimer}},{key:"reset",value:function(){Ge.l("".concat(this._n,".reset")),Pe();var e,t=w(this._moduleMap);try{for(t.s();!(e=t.n()).done;){var n=_(e.value,2)[1];n.reset&&n.reset()}}catch(s){t.e(s)}finally{t.f()}this._startLoginTs=0,this._initReadyList(),this._isReady=!1,this.stopTimer(),this._outerEmitter.emit(I.SDK_NOT_READY);var r,o=w(this._eventThrottleMap);try{for(o.s();!(r=o.n()).done;){var a=_(r.value,2)[1];a.timeoutID&&clearTimeout(a.timeoutID)}}catch(s){o.e(s)}finally{o.f()}this._eventThrottleMap.clear()}}]),e}(),Pc=function(){function e(t){o(this,e),this._funcMap=new Map,this._m=t}return i(e,[{key:"defense",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if("string"!=typeof e)return null;if(0===e.length)return null;if("function"!=typeof t)return null;if(this._funcMap.has(e)&&this._funcMap.get(e).has(t))return this._funcMap.get(e).get(t);this._funcMap.has(e)||this._funcMap.set(e,new Map);var r=null;return this._funcMap.get(e).has(t)?r=this._funcMap.get(e).get(t):(r=this._pack(e,t,n),this._funcMap.get(e).set(t,r)),r}},{key:"defenseOnce",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return"function"!=typeof t?null:this._pack(e,t,n)}},{key:"find",value:function(e,t){return"string"!=typeof e||0===e.length||"function"!=typeof t?null:this._funcMap.has(e)&&this._funcMap.get(e).has(t)?this._funcMap.get(e).get(t):(this._m.outputWarning("ListenerFnNotFound",e),null)}},{key:"delete",value:function(e,t){return"function"==typeof t&&!!this._funcMap.has(e)&&!!this._funcMap.get(e).has(t)&&(this._funcMap.get(e).delete(t),0===this._funcMap.get(e).size&&this._funcMap.delete(e),!0)}},{key:"_pack",value:function(e,t,n){var r=this;return function(){try{t.apply(n,Array.from(arguments))}catch(l){var o=Object.values(I).indexOf(e),a="CallbackError";if(-1!==o){var i=Object.keys(I)[o];r._m.outputWarning(a,i,l)}var s=new Ka(a);s.setMessage("eventName:".concat(e)).setMoreMessage(l.message).end()}}}}]),e}(),Uc=function(){function e(t){o(this,e);var n={SDKAppID:t.SDKAppID,unlimitedAVChatRoom:t.unlimitedAVChatRoom||!1,scene:t.scene||"",oversea:t.oversea||!1,instanceID:Pt(),devMode:t.devMode||!1,proxyServer:t.proxyServer||void 0,fileUploadProxy:t.fileUploadProxy||void 0,fileDownloadProxy:t.fileDownloadProxy||t.fileUploadProxy||void 0};this._m=new Rc(n),this._safetyCallbackFactory=new Pc(this._m)}return i(e,[{key:"onError",value:function(e){this._m.onError(e)}},{key:"login",value:function(e){return this._m.login(),this._getModule(Rn).login(e)}},{key:"logout",value:function(){var e=this;return this._getModule(Rn).logout().then((function(t){return e._m.reset(),t}))}},{key:"isReady",value:function(){return this._m.isReady()}},{key:"isIntl",value:function(){return this._m.isIntl()}},{key:"getNotReadyReason",value:function(){return this._m.getNotReadyReason()}},{key:"getErrorMessage",value:function(e,t,n){return this._m.getErrorMessage(e,t,n)}},{key:"_getModule",value:function(e){return this._m.getModule(e)}},{key:"destroy",value:function(){var e=this;return this.logout().finally((function(){e._m.stopTimer(),e._getModule(or).terminate(),e._getModule(tr).dealloc();var t=e._m.getOuterEmitterInstance(),n=e._getModule(qn);t.emit(I.SDK_DESTROY,{SDKAppID:n.getSDKAppID()})}))}},{key:"on",value:function(e,t,n){Ge.d("on","eventName:".concat(e)),this._m.getOuterEmitterInstance().on(e,this._safetyCallbackFactory.defense(e,t,n),n)}},{key:"once",value:function(e,t,n){Ge.d("once","eventName:".concat(e)),this._m.getOuterEmitterInstance().once(e,this._safetyCallbackFactory.defenseOnce(e,t,n),n||this)}},{key:"off",value:function(e,t,n,r){Ge.d("off","eventName:".concat(e));var o=this._safetyCallbackFactory.find(e,t);null!==o&&(this._m.getOuterEmitterInstance().off(e,o,n,r),this._safetyCallbackFactory.delete(e,t))}},{key:"registerPlugin",value:function(e){pt(e["tim-offline-push-plugin"])?this._getModule(Xn).registerPlugin(e):this._getModule(cr).registerPlugin(e)}},{key:"setLogLevel",value:function(e){if(e<=0){var t=this.getErrorMessage("TIM_ASCII_ART");t&&console.log(t);var n=this.getErrorMessage("API_REFER");n&&(Jt()?console.log("%c ".concat("IM SDK API ->"," %c"),"background:#ff9d00; padding:1px; border-radius:3px; color: #fff","background:transparent",n):console.log("IM SDK API ->",n));var r=this.getErrorMessage("DOCS_GUIDE");r&&console.log(r)}Ge.setLevel(e)}},{key:"createTextMessage",value:function(e){return this._getModule(Pn).createTextMessage(e)}},{key:"createTextAtMessage",value:function(e){return this._getModule(Pn).createTextMessage(e)}},{key:"createImageMessage",value:function(e){return this._getModule(Pn).createImageMessage(e)}},{key:"createAudioMessage",value:function(e){return this._getModule(Pn).createAudioMessage(e)}},{key:"createVideoMessage",value:function(e){return this._getModule(Pn).createVideoMessage(e)}},{key:"createCustomMessage",value:function(e){return this._getModule(Pn).createCustomMessage(e)}},{key:"createFaceMessage",value:function(e){return this._getModule(Pn).createFaceMessage(e)}},{key:"createFileMessage",value:function(e){return this._getModule(Pn).createFileMessage(e)}},{key:"createLocationMessage",value:function(e){return this._getModule(Pn).createLocationMessage(e)}},{key:"createMergerMessage",value:function(e){return this._getModule(Pn).createMergerMessage(e)}},{key:"downloadMergerMessage",value:function(e){return e.type!==S.MSG_MERGER?vi({code:Aa.MESSAGE_MERGER_TYPE_INVALID}):en(e.payload.downloadKey)?vi({code:Aa.MESSAGE_MERGER_KEY_INVALID}):this._getModule(Pn).downloadMergerMessage(e).catch((function(e){return vi({code:Aa.MESSAGE_MERGER_DOWNLOAD_FAIL})}))}},{key:"createForwardMessage",value:function(e){return this._getModule(Pn).createForwardMessage(e)}},{key:"sendMessage",value:function(e,t){return e instanceof ui?this._getModule(Pn).sendMessageInstance(e,t):vi({code:Aa.MESSAGE_SEND_NEED_MESSAGE_INSTANCE})}},{key:"callExperimentalAPI",value:function(e,t){return"sendComboMessage"===e?this._getModule(dr).sendMessage(t):"handleGroupInvitation"===e?this._getModule(Fn).handleGroupInvitation(t):"isCommercialAbilityEnabled"===e?this._getModule(sr).isFeatureEnabled(t):"isIntl"===e?this.isIntl():"sendTRTCCustomData"===e?this._getModule(ur).sendTRTCCustomData(t):"getTimerID"===e?this._m.getTimerID():vi({code:Aa.INVALID_OPERATION})}},{key:"revokeMessage",value:function(e){return this._getModule(Pn).revokeMessage(e)}},{key:"resendMessage",value:function(e){return this._getModule(Pn).resendMessage(e)}},{key:"deleteMessage",value:function(e){return this._getModule(Pn).deleteMessage(e)}},{key:"translateText",value:function(e){return this._getModule(Pn).translateText(e)}},{key:"setMessageExtensions",value:function(e,t){return this._getModule(Un).setMessageExtensions(e,t)}},{key:"getMessageExtensions",value:function(e){return this._getModule(Un).getMessageExtensions(e)}},{key:"deleteMessageExtensions",value:function(e,t){return this._getModule(Un).deleteMessageExtensions(e,t)}},{key:"modifyMessage",value:function(e){return this._getModule(Pn).modifyRemoteMessage(e)}},{key:"getMessageList",value:function(e){return this._getModule(Yn).getMessageList(e)}},{key:"getMessageListHopping",value:function(e){return this._getModule(Yn).getMessageListHopping(e)}},{key:"sendMessageReadReceipt",value:function(e){return this._getModule(Yn).sendReadReceipt(e)}},{key:"getMessageReadReceiptList",value:function(e){return this._getModule(Yn).getReadReceiptList(e)}},{key:"getGroupMessageReadMemberList",value:function(e){return this._getModule(Fn).getReadReceiptDetail(e)}},{key:"findMessage",value:function(e){return this._getModule(Yn).findMessage(e)}},{key:"setMessageRead",value:function(e){return this._getModule(Yn).setMessageRead(e)}},{key:"getConversationList",value:function(e){return this._getModule(Yn).getConversationList(e)}},{key:"getConversationProfile",value:function(e){return this._getModule(Yn).getConversationProfile(e)}},{key:"deleteConversation",value:function(e){return this._getModule(Yn).deleteConversation(e)}},{key:"clearHistoryMessage",value:function(e){return this._getModule(Yn).clearHistoryMessage(e)}},{key:"pinConversation",value:function(e){return this._getModule(Yn).pinConversation(e)}},{key:"setAllMessageRead",value:function(e){return this._getModule(Yn).setAllMessageRead(e)}},{key:"setMessageRemindType",value:function(e){return this._getModule(Yn).setMessageRemindType(e)}},{key:"getTotalUnreadMessageCount",value:function(){return this._getModule(Yn).getTotalUnreadMessageCount()}},{key:"setConversationCustomData",value:function(e){return this._getModule(Yn).setConversationCustomData(e)}},{key:"markConversation",value:function(e){return this._getModule(Yn).markConversation(e)}},{key:"getConversationGroupList",value:function(){return this._getModule(Yn).getConversationGroupList()}},{key:"createConversationGroup",value:function(e){return this._getModule(Yn).createConversationGroup(e)}},{key:"deleteConversationGroup",value:function(e){return this._getModule(Yn).deleteConversationGroup(e)}},{key:"renameConversationGroup",value:function(e){return this._getModule(Yn).renameConversationGroup(e)}},{key:"addConversationsToGroup",value:function(e){return this._getModule(Yn).addConversationsToGroup(e)}},{key:"deleteConversationsFromGroup",value:function(e){return this._getModule(Yn).deleteConversationsFromGroup(e)}},{key:"getMyProfile",value:function(){return this._getModule(Vn).getMyProfile()}},{key:"getUserProfile",value:function(e){return this._getModule(Vn).getUserProfile(e)}},{key:"updateMyProfile",value:function(e){return this._getModule(Vn).updateMyProfile(e)}},{key:"getBlacklist",value:function(){return this._getModule(Vn).getLocalBlacklist()}},{key:"addToBlacklist",value:function(e){return this._getModule(Vn).addBlacklist(e)}},{key:"removeFromBlacklist",value:function(e){return this._getModule(Vn).deleteBlacklist(e)}},{key:"setSelfStatus",value:function(e){return this._getModule(Vn).setSelfStatus(e)}},{key:"getUserStatus",value:function(e){return this._getModule(Vn).getUserStatus(e)}},{key:"subscribeUserStatus",value:function(e){return this._getModule(Vn).subscribeUserStatus(e)}},{key:"unsubscribeUserStatus",value:function(e){return this._getModule(Vn).unsubscribeUserStatus(e)}},{key:"getFriendList",value:function(){var e=this._getModule(Gn);return e?e.getLocalFriendList():vi({code:Aa.CANNOT_FIND_MODULE})}},{key:"addFriend",value:function(e){var t=this._getModule(Gn);return t?t.addFriend(e):vi({code:Aa.CANNOT_FIND_MODULE})}},{key:"deleteFriend",value:function(e){var t=this._getModule(Gn);return t?t.deleteFriend(e):vi({code:Aa.CANNOT_FIND_MODULE})}},{key:"checkFriend",value:function(e){var t=this._getModule(Gn);return t?t.checkFriend(e):vi({code:Aa.CANNOT_FIND_MODULE})}},{key:"getFriendProfile",value:function(e){var t=this._getModule(Gn);return t?t.getFriendProfile(e):vi({code:Aa.CANNOT_FIND_MODULE})}},{key:"updateFriend",value:function(e){var t=this._getModule(Gn);return t?t.updateFriend(e):vi({code:Aa.CANNOT_FIND_MODULE})}},{key:"getFriendApplicationList",value:function(){var e=this._getModule(Gn);return e?e.getLocalFriendApplicationList():vi({code:Aa.CANNOT_FIND_MODULE})}},{key:"acceptFriendApplication",value:function(e){var t=this._getModule(Gn);return t?t.acceptFriendApplication(e):vi({code:Aa.CANNOT_FIND_MODULE})}},{key:"refuseFriendApplication",value:function(e){var t=this._getModule(Gn);return t?t.refuseFriendApplication(e):vi({code:Aa.CANNOT_FIND_MODULE})}},{key:"deleteFriendApplication",value:function(e){var t=this._getModule(Gn);return t?t.deleteFriendApplication(e):vi({code:Aa.CANNOT_FIND_MODULE})}},{key:"setFriendApplicationRead",value:function(){var e=this._getModule(Gn);return e?e.setFriendApplicationRead():vi({code:Aa.CANNOT_FIND_MODULE})}},{key:"getFriendGroupList",value:function(){var e=this._getModule(Gn);return e?e.getLocalFriendGroupList():vi({code:Aa.CANNOT_FIND_MODULE})}},{key:"createFriendGroup",value:function(e){var t=this._getModule(Gn);return t?t.createFriendGroup(e):vi({code:Aa.CANNOT_FIND_MODULE})}},{key:"deleteFriendGroup",value:function(e){var t=this._getModule(Gn);return t?t.deleteFriendGroup(e):vi({code:Aa.CANNOT_FIND_MODULE})}},{key:"addToFriendGroup",value:function(e){var t=this._getModule(Gn);return t?t.addToFriendGroup(e):vi({code:Aa.CANNOT_FIND_MODULE})}},{key:"removeFromFriendGroup",value:function(e){var t=this._getModule(Gn);return t?t.removeFromFriendGroup(e):vi({code:Aa.CANNOT_FIND_MODULE})}},{key:"renameFriendGroup",value:function(e){var t=this._getModule(Gn);return t?t.renameFriendGroup(e):vi({code:Aa.CANNOT_FIND_MODULE})}},{key:"getGroupList",value:function(e){return this._getModule(Fn).getGroupList(e)}},{key:"getGroupProfile",value:function(e){return this._getModule(Fn).getGroupProfile(e)}},{key:"createGroup",value:function(e){return this._getModule(Fn).createGroup(e)}},{key:"dismissGroup",value:function(e){return this._getModule(Fn).dismissGroup(e)}},{key:"updateGroupProfile",value:function(e){return this._getModule(Fn).updateGroupProfile(e)}},{key:"joinGroup",value:function(e){return this._getModule(Fn).joinGroup(e)}},{key:"quitGroup",value:function(e){return this._getModule(Fn).quitGroup(e)}},{key:"searchGroupByID",value:function(e){return this._getModule(Fn).searchGroupByID(e)}},{key:"getGroupOnlineMemberCount",value:function(e){return this._getModule(Fn).getGroupOnlineMemberCount(e)}},{key:"changeGroupOwner",value:function(e){return this._getModule(Fn).changeGroupOwner(e)}},{key:"getGroupApplicationList",value:function(){return this._getModule(Fn).getGroupApplicationList()}},{key:"handleGroupApplication",value:function(e){return this._getModule(Fn).handleGroupApplication(e)}},{key:"initGroupAttributes",value:function(e){return this._getModule(Fn).initGroupAttributes(e)}},{key:"setGroupAttributes",value:function(e){return this._getModule(Fn).setGroupAttributes(e)}},{key:"deleteGroupAttributes",value:function(e){return this._getModule(Fn).deleteGroupAttributes(e)}},{key:"getGroupAttributes",value:function(e){return this._getModule(Fn).getGroupAttributes(e)}},{key:"setGroupCounters",value:function(e){return this._getModule(Fn).setGroupCounters(e)}},{key:"increaseGroupCounter",value:function(e){return this._getModule(Fn).increaseGroupCounter(e)}},{key:"decreaseGroupCounter",value:function(e){return this._getModule(Fn).decreaseGroupCounter(e)}},{key:"getGroupCounters",value:function(e){return this._getModule(Fn).getGroupCounters(e)}},{key:"getGroupMemberList",value:function(e){return this._getModule(zn).getGroupMemberList(e)}},{key:"getGroupMemberProfile",value:function(e){return this._getModule(zn).getGroupMemberProfile(e)}},{key:"addGroupMember",value:function(e){return this._getModule(zn).addGroupMember(e)}},{key:"deleteGroupMember",value:function(e){return this._getModule(zn).deleteGroupMember(e)}},{key:"setGroupMemberMuteTime",value:function(e){return this._getModule(zn).setGroupMemberMuteTime(e)}},{key:"setGroupMemberRole",value:function(e){return this._getModule(zn).setGroupMemberRole(e)}},{key:"setGroupMemberNameCard",value:function(e){return this._getModule(zn).setGroupMemberNameCard(e)}},{key:"setGroupMemberCustomField",value:function(e){return this._getModule(zn).setGroupMemberCustomField(e)}},{key:"markGroupMemberList",value:function(e){return this._getModule(zn).markGroupMemberList(e)}},{key:"getJoinedCommunityList",value:function(){return this._getModule(Hn).getJoinedCommunityList()}},{key:"createTopicInCommunity",value:function(e){return this._getModule(Hn).createTopicInCommunity(e)}},{key:"deleteTopicFromCommunity",value:function(e){return this._getModule(Hn).deleteTopicFromCommunity(e)}},{key:"updateTopicProfile",value:function(e){return this._getModule(Hn).updateTopicProfile(e)}},{key:"getTopicList",value:function(e){return this._getModule(Hn).getTopicList(e)}}]),e}(),Vc={login:1,logout:1,destroy:1,on:1,off:1,ready:1,setLogLevel:1,joinGroup:1,quitGroup:1,registerPlugin:1,getGroupOnlineMemberCount:1};function Bc(e,t){if(e.isReady()||1===Vc[t])return!0;var n=e.getNotReadyReason(),r={code:n,message:"".concat(e.getErrorMessage(n)," | ").concat(t," | ").concat(e.getErrorMessage(Aa.SDK_IS_NOT_READY))};return e.onError(r),r}var Fc={},Gc={create:function(e){var t=0,r=e.SDKAppID;if(st(r))t=r;else if(t=parseInt(r),isNaN(r))return Ge.e("".concat("TIM.create"," failed. Failed to parse the SDKAppID, please check the arguments")),null;if(t&&Fc[t])return Fc[t];Ge.l("".concat("TIM.create"));var o=new Uc(n(n({},e),{},{SDKAppID:t}));o.on(I.SDK_DESTROY,(function(e){Fc[e.data.SDKAppID]=null,delete Fc[e.data.SDKAppID]}));var a=function(e){var t=Object.create(null);return Object.keys(xn).forEach((function(n){if(e[n]){var r=new T;t[n]=function(){var t=Array.from(arguments);return r.use((function(t,r){var o=Bc(e,n);return!0===o?r():vi(o)})).use((function(e,t){if(!0===tn(e,Nn[n],n))return t()})).use((function(t,r){return e[n].apply(e,t)})),r.run(t)}}})),t}(o);return Fc[t]=a,Nn.hookGetAPITips(o.getErrorMessage.bind(o)),Ge.l("".concat("TIM.create"," ok")),a}};return Gc.TYPES=S,Gc.EVENT=I,Gc.VERSION="2.27.1",Ge.l("TIM.VERSION:".concat(Gc.VERSION)),Gc}))}).call(this,n("c8ba"))},eafd:function(e,t,n){"use strict";(function(e){function n(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]}Object.defineProperty(t,"__esModule",{value:!0});const r={},o=[],a=()=>{},i=()=>!1,s=/^on[^a-z]/,c=e=>s.test(e),l=e=>e.startsWith("onUpdate:"),u=Object.assign,d=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},p=Object.prototype.hasOwnProperty,f=(e,t)=>p.call(e,t),h=Array.isArray,m=e=>"[object Map]"===w(e),v=e=>"[object Set]"===w(e),g=e=>"[object Date]"===w(e),_=e=>"[object RegExp]"===w(e),y=e=>"function"===typeof e,b=e=>"string"===typeof e,O=e=>"symbol"===typeof e,M=e=>null!==e&&"object"===typeof e,k=e=>M(e)&&y(e.then)&&y(e.catch),C=Object.prototype.toString,w=e=>C.call(e),I=e=>w(e).slice(8,-1),S=e=>"[object Object]"===w(e),T=e=>b(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,E=n(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),j=n("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),D=e=>{const t=Object.create(null);return n=>{const r=t[n];return r||(t[n]=e(n))}},L=/-(\w)/g,A=D(e=>e.replace(L,(e,t)=>t?t.toUpperCase():"")),N=/\B([A-Z])/g,x=D(e=>e.replace(N,"-$1").toLowerCase()),R=D(e=>e.charAt(0).toUpperCase()+e.slice(1)),P=D(e=>e?"on"+R(e):""),U=(e,t)=>!Object.is(e,t),V=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},B=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},F=e=>{const t=parseFloat(e);return isNaN(t)?e:t},G=e=>{const t=b(e)?Number(e):NaN;return isNaN(t)?e:t};let z;const H=()=>z||(z="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof e?e:{}),Y=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;function q(e){return Y.test(e)?"__props."+e:`__props[${JSON.stringify(e)}]`}const W={[1]:"TEXT",[2]:"CLASS",[4]:"STYLE",[8]:"PROPS",[16]:"FULL_PROPS",[32]:"HYDRATE_EVENTS",[64]:"STABLE_FRAGMENT",[128]:"KEYED_FRAGMENT",[256]:"UNKEYED_FRAGMENT",[512]:"NEED_PATCH",[1024]:"DYNAMIC_SLOTS",[2048]:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},K={[1]:"STABLE",[2]:"DYNAMIC",[3]:"FORWARDED"},$="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console",J=n($),Q=2;function X(e,t=0,n=e.length){let r=e.split(/(\r?\n)/);const o=r.filter((e,t)=>t%2===1);r=r.filter((e,t)=>t%2===0);let a=0;const i=[];for(let s=0;s<r.length;s++)if(a+=r[s].length+(o[s]&&o[s].length||0),a>=t){for(let e=s-Q;e<=s+Q||n>a;e++){if(e<0||e>=r.length)continue;const c=e+1;i.push(`${c}${" ".repeat(Math.max(3-String(c).length,0))}| ${r[e]}`);const l=r[e].length,u=o[e]&&o[e].length||0;if(e===s){const e=t-(a-(l+u)),r=Math.max(1,n>a?l-e:n-t);i.push(" | "+" ".repeat(e)+"^".repeat(r))}else if(e>s){if(n>a){const e=Math.max(Math.min(n-a,l),1);i.push(" | "+"^".repeat(e))}a+=l+u}}break}return i.join("\n")}function Z(e){if(h(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=b(r)?re(r):Z(r);if(o)for(const e in o)t[e]=o[e]}return t}return b(e)||M(e)?e:void 0}const ee=/;(?![^(]*\))/g,te=/:([^]+)/,ne=/\/\*[^]*?\*\//g;function re(e){const t={};return e.replace(ne,"").split(ee).forEach(e=>{if(e){const n=e.split(te);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function oe(e){let t="";if(!e||b(e))return t;for(const n in e){const r=e[n],o=n.startsWith("--")?n:x(n);(b(r)||"number"===typeof r)&&(t+=`${o}:${r};`)}return t}function ae(e){let t="";if(b(e))t=e;else if(h(e))for(let n=0;n<e.length;n++){const r=ae(e[n]);r&&(t+=r+" ")}else if(M(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function ie(e){if(!e)return null;let{class:t,style:n}=e;return t&&!b(t)&&(e.class=ae(t)),n&&(e.style=Z(n)),e}const se="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",ce="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",le="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",ue=n(se),de=n(ce),pe=n(le),fe="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",he=n(fe),me=n(fe+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");function ve(e){return!!e||""===e}const ge=/[>/="'\u0009\u000a\u000c\u0020]/,_e={};function ye(e){if(_e.hasOwnProperty(e))return _e[e];const t=ge.test(e);return t&&console.error("unsafe attribute name: "+e),_e[e]=!t}const be={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},Oe=n("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap"),Me=n("xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan"),ke=/["'&<>]/;function Ce(e){const t=""+e,n=ke.exec(t);if(!n)return t;let r,o,a="",i=0;for(o=n.index;o<t.length;o++){switch(t.charCodeAt(o)){case 34:r=""";break;case 38:r="&";break;case 39:r="'";break;case 60:r="<";break;case 62:r=">";break;default:continue}i!==o&&(a+=t.slice(i,o)),i=o+1,a+=r}return i!==o?a+t.slice(i,o):a}const we=/^-?>|<!--|-->|--!>|<!-$/g;function Ie(e){return e.replace(we,"")}function Se(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Te(e[r],t[r]);return n}function Te(e,t){if(e===t)return!0;let n=g(e),r=g(t);if(n||r)return!(!n||!r)&&e.getTime()===t.getTime();if(n=O(e),r=O(t),n||r)return e===t;if(n=h(e),r=h(t),n||r)return!(!n||!r)&&Se(e,t);if(n=M(e),r=M(t),n||r){if(!n||!r)return!1;const o=Object.keys(e).length,a=Object.keys(t).length;if(o!==a)return!1;for(const n in e){const r=e.hasOwnProperty(n),o=t.hasOwnProperty(n);if(r&&!o||!r&&o||!Te(e[n],t[n]))return!1}}return String(e)===String(t)}function Ee(e,t){return e.findIndex(e=>Te(e,t))}const je=e=>b(e)?e:null==e?"":h(e)||M(e)&&(e.toString===C||!y(e.toString))?JSON.stringify(e,De,2):String(e),De=(e,t)=>t&&t.__v_isRef?De(e,t.value):m(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n])=>(e[t+" =>"]=n,e),{})}:v(t)?{[`Set(${t.size})`]:[...t.values()]}:!M(t)||h(t)||S(t)?t:String(t);t.EMPTY_ARR=o,t.EMPTY_OBJ=r,t.NO=i,t.NOOP=a,t.PatchFlagNames=W,t.camelize=A,t.capitalize=R,t.def=B,t.escapeHtml=Ce,t.escapeHtmlComment=Ie,t.extend=u,t.genPropsAccessExp=q,t.generateCodeFrame=X,t.getGlobalThis=H,t.hasChanged=U,t.hasOwn=f,t.hyphenate=x,t.includeBooleanAttr=ve,t.invokeArrayFns=V,t.isArray=h,t.isBooleanAttr=me,t.isBuiltInDirective=j,t.isDate=g,t.isFunction=y,t.isGloballyWhitelisted=J,t.isHTMLTag=ue,t.isIntegerKey=T,t.isKnownHtmlAttr=Oe,t.isKnownSvgAttr=Me,t.isMap=m,t.isModelListener=l,t.isObject=M,t.isOn=c,t.isPlainObject=S,t.isPromise=k,t.isRegExp=_,t.isReservedProp=E,t.isSSRSafeAttrName=ye,t.isSVGTag=de,t.isSet=v,t.isSpecialBooleanAttr=he,t.isString=b,t.isSymbol=O,t.isVoidTag=pe,t.looseEqual=Te,t.looseIndexOf=Ee,t.looseToNumber=F,t.makeMap=n,t.normalizeClass=ae,t.normalizeProps=ie,t.normalizeStyle=Z,t.objectToString=C,t.parseStringStyle=re,t.propsToAttrMap=be,t.remove=d,t.slotFlagsText=K,t.stringifyStyle=oe,t.toDisplayString=je,t.toHandlerKey=P,t.toNumber=G,t.toRawType=I,t.toTypeString=w}).call(this,n("c8ba"))},eb54:function(e,t,n){"use strict";n.d(t,"a",(function(){return jn})),n.d(t,"b",(function(){return An})),n.d(t,"c",(function(){return lr}));var r=n("6ffb"),o=n("6f27"),a=n("b923");const i=function(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t},s=function(e){let t=e.assignedSlot||e.parentNode;return t&&11==t.nodeType?t.host:t};let c=null;const l=function(e,t,n){let r=c||(c=document.createRange());return r.setEnd(e,null==n?e.nodeValue.length:n),r.setStart(e,t||0),r},u=function(e,t,n,r){return n&&(p(e,t,n,r,-1)||p(e,t,n,r,1))},d=/^(img|br|input|textarea|hr)$/i;function p(e,t,n,r,o){for(;;){if(e==n&&t==r)return!0;if(t==(o<0?0:f(e))){let n=e.parentNode;if(!n||1!=n.nodeType||m(e)||d.test(e.nodeName)||"false"==e.contentEditable)return!1;t=i(e)+(o<0?0:1),e=n}else{if(1!=e.nodeType)return!1;if(e=e.childNodes[t+(o<0?-1:0)],"false"==e.contentEditable)return!1;t=o<0?f(e):0}}}function f(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function h(e,t,n){for(let r=0==t,o=t==f(e);r||o;){if(e==n)return!0;let t=i(e);if(e=e.parentNode,!e)return!1;r=r&&0==t,o=o&&t==f(e)}}function m(e){let t;for(let n=e;n;n=n.parentNode)if(t=n.pmViewDesc)break;return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}const v=function(e){return e.focusNode&&u(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function g(e,t){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=e,n.key=n.code=t,n}function _(e){let t=e.activeElement;while(t&&t.shadowRoot)t=t.shadowRoot.activeElement;return t}function y(e,t,n){if(e.caretPositionFromPoint)try{let r=e.caretPositionFromPoint(t,n);if(r)return{node:r.offsetNode,offset:r.offset}}catch(r){}if(e.caretRangeFromPoint){let r=e.caretRangeFromPoint(t,n);if(r)return{node:r.startContainer,offset:r.startOffset}}}const b="undefined"!=typeof navigator?navigator:null,O="undefined"!=typeof document?document:null,M=b&&b.userAgent||"",k=/Edge\/(\d+)/.exec(M),C=/MSIE \d/.exec(M),w=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(M),I=!!(C||w||k),S=C?document.documentMode:w?+w[1]:k?+k[1]:0,T=!I&&/gecko\/(\d+)/i.test(M);T&&(/Firefox\/(\d+)/.exec(M)||[0,0])[1];const E=!I&&/Chrome\/(\d+)/.exec(M),j=!!E,D=E?+E[1]:0,L=!I&&!!b&&/Apple Computer/.test(b.vendor),A=L&&(/Mobile\/\w+/.test(M)||!!b&&b.maxTouchPoints>2),N=A||!!b&&/Mac/.test(b.platform),x=!!b&&/Win/.test(b.platform),R=/Android \d/.test(M),P=!!O&&"webkitFontSmoothing"in O.documentElement.style,U=P?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function V(e){return{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function B(e,t){return"number"==typeof e?e:e[t]}function F(e){let t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return{left:t.left,right:t.left+e.clientWidth*n,top:t.top,bottom:t.top+e.clientHeight*r}}function G(e,t,n){let r=e.someProp("scrollThreshold")||0,o=e.someProp("scrollMargin")||5,a=e.dom.ownerDocument;for(let i=n||e.dom;;i=s(i)){if(!i)break;if(1!=i.nodeType)continue;let e=i,n=e==a.body,s=n?V(a):F(e),c=0,l=0;if(t.top<s.top+B(r,"top")?l=-(s.top-t.top+B(o,"top")):t.bottom>s.bottom-B(r,"bottom")&&(l=t.bottom-t.top>s.bottom-s.top?t.top+B(o,"top")-s.top:t.bottom-s.bottom+B(o,"bottom")),t.left<s.left+B(r,"left")?c=-(s.left-t.left+B(o,"left")):t.right>s.right-B(r,"right")&&(c=t.right-s.right+B(o,"right")),c||l)if(n)a.defaultView.scrollBy(c,l);else{let n=e.scrollLeft,r=e.scrollTop;l&&(e.scrollTop+=l),c&&(e.scrollLeft+=c);let o=e.scrollLeft-n,a=e.scrollTop-r;t={left:t.left-o,top:t.top-a,right:t.right-o,bottom:t.bottom-a}}if(n||/^(fixed|sticky)$/.test(getComputedStyle(i).position))break}}function z(e){let t,n,r=e.dom.getBoundingClientRect(),o=Math.max(0,r.top);for(let a=(r.left+r.right)/2,i=o+1;i<Math.min(innerHeight,r.bottom);i+=5){let r=e.root.elementFromPoint(a,i);if(!r||r==e.dom||!e.dom.contains(r))continue;let s=r.getBoundingClientRect();if(s.top>=o-20){t=r,n=s.top;break}}return{refDOM:t,refTop:n,stack:H(e.dom)}}function H(e){let t=[],n=e.ownerDocument;for(let r=e;r;r=s(r))if(t.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),e==n)break;return t}function Y({refDOM:e,refTop:t,stack:n}){let r=e?e.getBoundingClientRect().top:0;q(n,0==r?0:r-t)}function q(e,t){for(let n=0;n<e.length;n++){let{dom:r,top:o,left:a}=e[n];r.scrollTop!=o+t&&(r.scrollTop=o+t),r.scrollLeft!=a&&(r.scrollLeft=a)}}let W=null;function K(e){if(e.setActive)return e.setActive();if(W)return e.focus(W);let t=H(e);e.focus(null==W?{get preventScroll(){return W={preventScroll:!0},!0}}:void 0),W||(W=!1,q(t,0))}function $(e,t){let n,r,o,a,i=2e8,s=0,c=t.top,u=t.top;for(let d=e.firstChild,p=0;d;d=d.nextSibling,p++){let e;if(1==d.nodeType)e=d.getClientRects();else{if(3!=d.nodeType)continue;e=l(d).getClientRects()}for(let l=0;l<e.length;l++){let f=e[l];if(f.top<=c&&f.bottom>=u){c=Math.max(f.bottom,c),u=Math.min(f.top,u);let e=f.left>t.left?f.left-t.left:f.right<t.left?t.left-f.right:0;if(e<i){n=d,i=e,r=e&&3==n.nodeType?{left:f.right<t.left?f.right:f.left,top:t.top}:t,1==d.nodeType&&e&&(s=p+(t.left>=(f.left+f.right)/2?1:0));continue}}else f.top>t.top&&!o&&f.left<=t.left&&f.right>=t.left&&(o=d,a={left:Math.max(f.left,Math.min(f.right,t.left)),top:f.top});!n&&(t.left>=f.right&&t.top>=f.top||t.left>=f.left&&t.top>=f.bottom)&&(s=p+1)}}return!n&&o&&(n=o,r=a,i=0),n&&3==n.nodeType?J(n,r):!n||i&&1==n.nodeType?{node:e,offset:s}:$(n,r)}function J(e,t){let n=e.nodeValue.length,r=document.createRange();for(let o=0;o<n;o++){r.setEnd(e,o+1),r.setStart(e,o);let n=oe(r,1);if(n.top!=n.bottom&&Q(t,n))return{node:e,offset:o+(t.left>=(n.left+n.right)/2?1:0)}}return{node:e,offset:0}}function Q(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function X(e,t){let n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left<e.getBoundingClientRect().left?n:e}function Z(e,t,n){let{node:r,offset:o}=$(t,n),a=-1;if(1==r.nodeType&&!r.firstChild){let e=r.getBoundingClientRect();a=e.left!=e.right&&n.left>(e.left+e.right)/2?1:-1}return e.docView.posFromDOM(r,o,a)}function ee(e,t,n,r){let o=-1;for(let a=t,i=!1;;){if(a==e.dom)break;let t=e.docView.nearestDesc(a,!0);if(!t)return null;if(1==t.dom.nodeType&&(t.node.isBlock&&t.parent&&!i||!t.contentDOM)){let e=t.dom.getBoundingClientRect();if(t.node.isBlock&&t.parent&&!i&&(i=!0,e.left>r.left||e.top>r.top?o=t.posBefore:(e.right<r.left||e.bottom<r.top)&&(o=t.posAfter)),!t.contentDOM&&o<0&&!t.node.isText){let n=t.node.isBlock?r.top<(e.top+e.bottom)/2:r.left<(e.left+e.right)/2;return n?t.posBefore:t.posAfter}}a=t.dom.parentNode}return o>-1?o:e.docView.posFromDOM(t,n,-1)}function te(e,t,n){let r=e.childNodes.length;if(r&&n.top<n.bottom)for(let o=Math.max(0,Math.min(r-1,Math.floor(r*(t.top-n.top)/(n.bottom-n.top))-2)),a=o;;){let n=e.childNodes[a];if(1==n.nodeType){let e=n.getClientRects();for(let r=0;r<e.length;r++){let o=e[r];if(Q(t,o))return te(n,t,o)}}if((a=(a+1)%r)==o)break}return e}function ne(e,t){let n,r=e.dom.ownerDocument,o=0,a=y(r,t.left,t.top);a&&({node:n,offset:o}=a);let i,c=(e.root.elementFromPoint?e.root:r).elementFromPoint(t.left,t.top);if(!c||!e.dom.contains(1!=c.nodeType?c.parentNode:c)){let n=e.dom.getBoundingClientRect();if(!Q(t,n))return null;if(c=te(e.dom,t,n),!c)return null}if(L)for(let u=c;n&&u;u=s(u))u.draggable&&(n=void 0);if(c=X(c,t),n){if(T&&1==n.nodeType&&(o=Math.min(o,n.childNodes.length),o<n.childNodes.length)){let e,r=n.childNodes[o];"IMG"==r.nodeName&&(e=r.getBoundingClientRect()).right<=t.left&&e.bottom>t.top&&o++}n==e.dom&&o==n.childNodes.length-1&&1==n.lastChild.nodeType&&t.top>n.lastChild.getBoundingClientRect().bottom?i=e.state.doc.content.size:0!=o&&1==n.nodeType&&"BR"==n.childNodes[o-1].nodeName||(i=ee(e,n,o,t))}null==i&&(i=Z(e,c,t));let l=e.docView.nearestDesc(c,!0);return{pos:i,inside:l?l.posAtStart-l.border:-1}}function re(e){return e.top<e.bottom||e.left<e.right}function oe(e,t){let n=e.getClientRects();if(n.length){let e=n[t<0?0:n.length-1];if(re(e))return e}return Array.prototype.find.call(n,re)||e.getBoundingClientRect()}const ae=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function ie(e,t,n){let{node:r,offset:o,atom:a}=e.docView.domFromPos(t,n<0?-1:1),i=P||T;if(3==r.nodeType){if(!i||!ae.test(r.nodeValue)&&(n<0?o:o!=r.nodeValue.length)){let e=o,t=o,a=n<0?1:-1;return n<0&&!o?(t++,a=-1):n>=0&&o==r.nodeValue.length?(e--,a=1):n<0?e--:t++,se(oe(l(r,e,t),a),a<0)}{let e=oe(l(r,o,o),n);if(T&&o&&/\s/.test(r.nodeValue[o-1])&&o<r.nodeValue.length){let t=oe(l(r,o-1,o-1),-1);if(t.top==e.top){let n=oe(l(r,o,o+1),-1);if(n.top!=e.top)return se(n,n.left<t.left)}}return e}}let s=e.state.doc.resolve(t-(a||0));if(!s.parent.inlineContent){if(null==a&&o&&(n<0||o==f(r))){let e=r.childNodes[o-1];if(1==e.nodeType)return ce(e.getBoundingClientRect(),!1)}if(null==a&&o<f(r)){let e=r.childNodes[o];if(1==e.nodeType)return ce(e.getBoundingClientRect(),!0)}return ce(r.getBoundingClientRect(),n>=0)}if(null==a&&o&&(n<0||o==f(r))){let e=r.childNodes[o-1],t=3==e.nodeType?l(e,f(e)-(i?0:1)):1!=e.nodeType||"BR"==e.nodeName&&e.nextSibling?null:e;if(t)return se(oe(t,1),!1)}if(null==a&&o<f(r)){let e=r.childNodes[o];while(e.pmViewDesc&&e.pmViewDesc.ignoreForCoords)e=e.nextSibling;let t=e?3==e.nodeType?l(e,0,i?0:1):1==e.nodeType?e:null:null;if(t)return se(oe(t,-1),!0)}return se(oe(3==r.nodeType?l(r):r,-n),n>=0)}function se(e,t){if(0==e.width)return e;let n=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:n,right:n}}function ce(e,t){if(0==e.height)return e;let n=t?e.top:e.bottom;return{top:n,bottom:n,left:e.left,right:e.right}}function le(e,t,n){let r=e.state,o=e.root.activeElement;r!=t&&e.updateState(t),o!=e.dom&&e.focus();try{return n()}finally{r!=t&&e.updateState(r),o!=e.dom&&o&&o.focus()}}function ue(e,t,n){let r=t.selection,o="up"==n?r.$from:r.$to;return le(e,t,()=>{let{node:t}=e.docView.domFromPos(o.pos,"up"==n?-1:1);for(;;){let n=e.docView.nearestDesc(t,!0);if(!n)break;if(n.node.isBlock){t=n.contentDOM||n.dom;break}t=n.dom.parentNode}let r=ie(e,o.pos,1);for(let e=t.firstChild;e;e=e.nextSibling){let t;if(1==e.nodeType)t=e.getClientRects();else{if(3!=e.nodeType)continue;t=l(e,0,e.nodeValue.length).getClientRects()}for(let e=0;e<t.length;e++){let o=t[e];if(o.bottom>o.top+1&&("up"==n?r.top-o.top>2*(o.bottom-r.top):o.bottom-r.bottom>2*(r.bottom-o.top)))return!1}}return!0})}const de=/[\u0590-\u08ac]/;function pe(e,t,n){let{$head:r}=t.selection;if(!r.parent.isTextblock)return!1;let o=r.parentOffset,a=!o,i=o==r.parent.content.size,s=e.domSelection();return de.test(r.parent.textContent)&&s.modify?le(e,t,()=>{let{focusNode:t,focusOffset:o,anchorNode:a,anchorOffset:i}=e.domSelectionRange(),c=s.caretBidiLevel;s.modify("move",n,"character");let l=r.depth?e.docView.domAfterPos(r.before()):e.dom,{focusNode:u,focusOffset:d}=e.domSelectionRange(),p=u&&!l.contains(1==u.nodeType?u:u.parentNode)||t==u&&o==d;try{s.collapse(a,i),t&&(t!=a||o!=i)&&s.extend&&s.extend(t,o)}catch(f){}return null!=c&&(s.caretBidiLevel=c),p}):"left"==n||"backward"==n?a:i}let fe=null,he=null,me=!1;function ve(e,t,n){return fe==t&&he==n?me:(fe=t,he=n,me="up"==n||"down"==n?ue(e,t,n):pe(e,t,n))}const ge=0,_e=1,ye=2,be=3;class Oe{constructor(e,t,n,r){this.parent=e,this.children=t,this.dom=n,this.contentDOM=r,this.dirty=ge,n.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,t,n){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let t=0;t<this.children.length;t++)e+=this.children[t].size;return e}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let e=0;e<this.children.length;e++)this.children[e].destroy()}posBeforeChild(e){for(let t=0,n=this.posAtStart;;t++){let r=this.children[t];if(r==e)return n;n+=r.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(e,t,n){if(this.contentDOM&&this.contentDOM.contains(1==e.nodeType?e:e.parentNode)){if(n<0){let n,r;if(e==this.contentDOM)n=e.childNodes[t-1];else{while(e.parentNode!=this.contentDOM)e=e.parentNode;n=e.previousSibling}while(n&&(!(r=n.pmViewDesc)||r.parent!=this))n=n.previousSibling;return n?this.posBeforeChild(r)+r.size:this.posAtStart}{let n,r;if(e==this.contentDOM)n=e.childNodes[t];else{while(e.parentNode!=this.contentDOM)e=e.parentNode;n=e.nextSibling}while(n&&(!(r=n.pmViewDesc)||r.parent!=this))n=n.nextSibling;return n?this.posBeforeChild(r):this.posAtEnd}}let r;if(e==this.dom&&this.contentDOM)r=t>i(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))r=2&e.compareDocumentPosition(this.contentDOM);else if(this.dom.firstChild){if(0==t)for(let t=e;;t=t.parentNode){if(t==this.dom){r=!1;break}if(t.previousSibling)break}if(null==r&&t==e.childNodes.length)for(let t=e;;t=t.parentNode){if(t==this.dom){r=!0;break}if(t.nextSibling)break}}return(null==r?n>0:r)?this.posAtEnd:this.posAtStart}nearestDesc(e,t=!1){for(let n=!0,r=e;r;r=r.parentNode){let o,a=this.getDesc(r);if(a&&(!t||a.node)){if(!n||!(o=a.nodeDOM)||(1==o.nodeType?o.contains(1==e.nodeType?e:e.parentNode):o==e))return a;n=!1}}}getDesc(e){let t=e.pmViewDesc;for(let n=t;n;n=n.parent)if(n==this)return t}posFromDOM(e,t,n){for(let r=e;r;r=r.parentNode){let o=this.getDesc(r);if(o)return o.localPosFromDOM(e,t,n)}return-1}descAt(e){for(let t=0,n=0;t<this.children.length;t++){let r=this.children[t],o=n+r.size;if(n==e&&o!=n){while(!r.border&&r.children.length)r=r.children[0];return r}if(e<o)return r.descAt(e-n-r.border);n=o}}domFromPos(e,t){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let n,r=0,o=0;for(let a=0;r<this.children.length;r++){let t=this.children[r],n=a+t.size;if(n>e||t instanceof Te){o=e-a;break}a=n}if(o)return this.children[r].domFromPos(o-this.children[r].border,t);for(;r&&!(n=this.children[r-1]).size&&n instanceof Me&&n.side>=0;r--);if(t<=0){let e,n=!0;for(;;r--,n=!1)if(e=r?this.children[r-1]:null,!e||e.dom.parentNode==this.contentDOM)break;return e&&t&&n&&!e.border&&!e.domAtom?e.domFromPos(e.size,t):{node:this.contentDOM,offset:e?i(e.dom)+1:0}}{let e,n=!0;for(;;r++,n=!1)if(e=r<this.children.length?this.children[r]:null,!e||e.dom.parentNode==this.contentDOM)break;return e&&n&&!e.border&&!e.domAtom?e.domFromPos(0,t):{node:this.contentDOM,offset:e?i(e.dom):this.contentDOM.childNodes.length}}}parseRange(e,t,n=0){if(0==this.children.length)return{node:this.contentDOM,from:e,to:t,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let r=-1,o=-1;for(let a=n,s=0;;s++){let n=this.children[s],c=a+n.size;if(-1==r&&e<=c){let o=a+n.border;if(e>=o&&t<=c-n.border&&n.node&&n.contentDOM&&this.contentDOM.contains(n.contentDOM))return n.parseRange(e,t,o);e=a;for(let t=s;t>0;t--){let n=this.children[t-1];if(n.size&&n.dom.parentNode==this.contentDOM&&!n.emptyChildAt(1)){r=i(n.dom)+1;break}e-=n.size}-1==r&&(r=0)}if(r>-1&&(c>t||s==this.children.length-1)){t=c;for(let e=s+1;e<this.children.length;e++){let n=this.children[e];if(n.size&&n.dom.parentNode==this.contentDOM&&!n.emptyChildAt(-1)){o=i(n.dom);break}t+=n.size}-1==o&&(o=this.contentDOM.childNodes.length);break}a=c}return{node:this.contentDOM,from:e,to:t,fromOffset:r,toOffset:o}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let t=this.children[e<0?0:this.children.length-1];return 0==t.size||t.emptyChildAt(e)}domAfterPos(e){let{node:t,offset:n}=this.domFromPos(e,0);if(1!=t.nodeType||n==t.childNodes.length)throw new RangeError("No node after pos "+e);return t.childNodes[n]}setSelection(e,t,n,r=!1){let o=Math.min(e,t),a=Math.max(e,t);for(let i=0,u=0;i<this.children.length;i++){let s=this.children[i],c=u+s.size;if(o>u&&a<c)return s.setSelection(e-u-s.border,t-u-s.border,n,r);u=c}let s=this.domFromPos(e,e?-1:1),c=t==e?s:this.domFromPos(t,t?-1:1),l=n.getSelection(),d=!1;if((T||L)&&e==t){let{node:e,offset:t}=s;if(3==e.nodeType){if(d=!(!t||"\n"!=e.nodeValue[t-1]),d&&t==e.nodeValue.length)for(let n,r=e;r;r=r.parentNode){if(n=r.nextSibling){"BR"==n.nodeName&&(s=c={node:n.parentNode,offset:i(n)+1});break}let e=r.pmViewDesc;if(e&&e.node&&e.node.isBlock)break}}else{let n=e.childNodes[t-1];d=n&&("BR"==n.nodeName||"false"==n.contentEditable)}}if(T&&l.focusNode&&l.focusNode!=c.node&&1==l.focusNode.nodeType){let e=l.focusNode.childNodes[l.focusOffset];e&&"false"==e.contentEditable&&(r=!0)}if(!(r||d&&L)&&u(s.node,s.offset,l.anchorNode,l.anchorOffset)&&u(c.node,c.offset,l.focusNode,l.focusOffset))return;let p=!1;if((l.extend||e==t)&&!d){l.collapse(s.node,s.offset);try{e!=t&&l.extend(c.node,c.offset),p=!0}catch(f){}}if(!p){if(e>t){let e=s;s=c,c=e}let n=document.createRange();n.setEnd(c.node,c.offset),n.setStart(s.node,s.offset),l.removeAllRanges(),l.addRange(n)}}ignoreMutation(e){return!this.contentDOM&&"selection"!=e.type}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,t){for(let n=0,r=0;r<this.children.length;r++){let o=this.children[r],a=n+o.size;if(n==a?e<=a&&t>=n:e<a&&t>n){let r=n+o.border,i=a-o.border;if(e>=r&&t<=i)return this.dirty=e==n||t==a?ye:_e,void(e!=r||t!=i||!o.contentLost&&o.dom.parentNode==this.contentDOM?o.markDirty(e-r,t-r):o.dirty=be);o.dirty=o.dom!=o.contentDOM||o.dom.parentNode!=this.contentDOM||o.children.length?be:ye}n=a}this.dirty=ye}markParentsDirty(){let e=1;for(let t=this.parent;t;t=t.parent,e++){let n=1==e?ye:_e;t.dirty<n&&(t.dirty=n)}}get domAtom(){return!1}get ignoreForCoords(){return!1}}class Me extends Oe{constructor(e,t,n,r){let o,a=t.type.toDOM;if("function"==typeof a&&(a=a(n,()=>o?o.parent?o.parent.posBeforeChild(o):void 0:r)),!t.type.spec.raw){if(1!=a.nodeType){let e=document.createElement("span");e.appendChild(a),a=e}a.contentEditable="false",a.classList.add("ProseMirror-widget")}super(e,[],a,null),this.widget=t,this.widget=t,o=this}matchesWidget(e){return this.dirty==ge&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let t=this.widget.spec.stopEvent;return!!t&&t(e)}ignoreMutation(e){return"selection"!=e.type||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get side(){return this.widget.type.side}}class ke extends Oe{constructor(e,t,n,r){super(e,[],t,null),this.textDOM=n,this.text=r}get size(){return this.text.length}localPosFromDOM(e,t){return e!=this.textDOM?this.posAtStart+(t?this.size:0):this.posAtStart+t}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return"characterData"===e.type&&e.target.nodeValue==e.oldValue}}class Ce extends Oe{constructor(e,t,n,r){super(e,[],n,r),this.mark=t}static create(e,t,n,r){let a=r.nodeViews[t.type.name],i=a&&a(t,r,n);return i&&i.dom||(i=o["b"].renderSpec(document,t.type.spec.toDOM(t,n))),new Ce(e,t,i.dom,i.contentDOM||i.dom)}parseRule(){return this.dirty&be||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=be&&this.mark.eq(e)}markDirty(e,t){if(super.markDirty(e,t),this.dirty!=ge){let e=this.parent;while(!e.node)e=e.parent;e.dirty<this.dirty&&(e.dirty=this.dirty),this.dirty=ge}}slice(e,t,n){let r=Ce.create(this.parent,this.mark,!0,n),o=this.children,a=this.size;t<a&&(o=qe(o,t,a,n)),e>0&&(o=qe(o,0,e,n));for(let i=0;i<o.length;i++)o[i].parent=r;return r.children=o,r}}class we extends Oe{constructor(e,t,n,r,o,a,i,s,c){super(e,[],o,a),this.node=t,this.outerDeco=n,this.innerDeco=r,this.nodeDOM=i}static create(e,t,n,r,a,i){let s,c=a.nodeViews[t.type.name],l=c&&c(t,a,()=>s?s.parent?s.parent.posBeforeChild(s):void 0:i,n,r),u=l&&l.dom,d=l&&l.contentDOM;if(t.isText)if(u){if(3!=u.nodeType)throw new RangeError("Text must be rendered as a DOM text node")}else u=document.createTextNode(t.text);else u||({dom:u,contentDOM:d}=o["b"].renderSpec(document,t.type.spec.toDOM(t)));d||t.isText||"BR"==u.nodeName||(u.hasAttribute("contenteditable")||(u.contentEditable="false"),t.type.spec.draggable&&(u.draggable=!0));let p=u;return u=Re(u,n,t),l?s=new Ee(e,t,n,r,u,d||null,p,l,a,i+1):t.isText?new Se(e,t,n,r,u,p,a):new we(e,t,n,r,u,d||null,p,a,i+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if("pre"==this.node.type.whitespace&&(e.preserveWhitespace="full"),this.contentDOM)if(this.contentLost){for(let t=this.children.length-1;t>=0;t--){let n=this.children[t];if(this.dom.contains(n.dom.parentNode)){e.contentElement=n.dom.parentNode;break}}e.contentElement||(e.getContent=()=>o["c"].empty)}else e.contentElement=this.contentDOM;else e.getContent=()=>this.node.content;return e}matchesNode(e,t,n){return this.dirty==ge&&e.eq(this.node)&&Pe(t,this.outerDeco)&&n.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,t){let n=this.node.inlineContent,r=t,a=e.composing?this.localCompositionInfo(e,t):null,i=a&&a.pos>-1?a:null,s=a&&a.pos<0,c=new Ve(this,i&&i.node,e);Ge(this.node,this.innerDeco,(t,a,i)=>{t.spec.marks?c.syncToMarks(t.spec.marks,n,e):t.type.side>=0&&!i&&c.syncToMarks(a==this.node.childCount?o["d"].none:this.node.child(a).marks,n,e),c.placeWidget(t,e,r)},(t,o,i,l)=>{let u;c.syncToMarks(t.marks,n,e),c.findNodeMatch(t,o,i,l)||s&&e.state.selection.from>r&&e.state.selection.to<r+t.nodeSize&&(u=c.findIndexWithChild(a.node))>-1&&c.updateNodeAt(t,o,i,u,e)||c.updateNextNode(t,o,i,e,l,r)||c.addNode(t,o,i,e,r),r+=t.nodeSize}),c.syncToMarks([],n,e),this.node.isTextblock&&c.addTextblockHacks(),c.destroyRest(),(c.changed||this.dirty==ye)&&(i&&this.protectLocalComposition(e,i),je(this.contentDOM,this.children,e),A&&ze(this.dom))}localCompositionInfo(e,t){let{from:n,to:o}=e.state.selection;if(!(e.state.selection instanceof r["g"])||n<t||o>t+this.node.content.size)return null;let a=e.domSelectionRange(),i=He(a.focusNode,a.focusOffset);if(!i||!this.dom.contains(i.parentNode))return null;if(this.node.inlineContent){let e=i.nodeValue,r=Ye(this.node.content,e,n-t,o-t);return r<0?null:{node:i,pos:r,text:e}}return{node:i,pos:-1,text:""}}protectLocalComposition(e,{node:t,pos:n,text:r}){if(this.getDesc(t))return;let o=t;for(;;o=o.parentNode){if(o.parentNode==this.contentDOM)break;while(o.previousSibling)o.parentNode.removeChild(o.previousSibling);while(o.nextSibling)o.parentNode.removeChild(o.nextSibling);o.pmViewDesc&&(o.pmViewDesc=void 0)}let a=new ke(this,o,t,r);e.input.compositionNodes.push(a),this.children=qe(this.children,n,n+r.length,e,a)}update(e,t,n,r){return!(this.dirty==be||!e.sameMarkup(this.node))&&(this.updateInner(e,t,n,r),!0)}updateInner(e,t,n,r){this.updateOuterDeco(t),this.node=e,this.innerDeco=n,this.contentDOM&&this.updateChildren(r,this.posAtStart),this.dirty=ge}updateOuterDeco(e){if(Pe(e,this.outerDeco))return;let t=1!=this.nodeDOM.nodeType,n=this.dom;this.dom=Ne(this.dom,this.nodeDOM,Ae(this.outerDeco,this.node,t),Ae(e,this.node,t)),this.dom!=n&&(n.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){1==this.nodeDOM.nodeType&&this.nodeDOM.classList.add("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||(this.dom.draggable=!0)}deselectNode(){1==this.nodeDOM.nodeType&&this.nodeDOM.classList.remove("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||this.dom.removeAttribute("draggable")}get domAtom(){return this.node.isAtom}}function Ie(e,t,n,r,o){Re(r,t,e);let a=new we(void 0,e,t,n,r,r,r,o,0);return a.contentDOM&&a.updateChildren(o,0),a}class Se extends we{constructor(e,t,n,r,o,a,i){super(e,t,n,r,o,null,a,i,0)}parseRule(){let e=this.nodeDOM.parentNode;while(e&&e!=this.dom&&!e.pmIsDeco)e=e.parentNode;return{skip:e||!0}}update(e,t,n,r){return!(this.dirty==be||this.dirty!=ge&&!this.inParent()||!e.sameMarkup(this.node))&&(this.updateOuterDeco(t),this.dirty==ge&&e.text==this.node.text||e.text==this.nodeDOM.nodeValue||(this.nodeDOM.nodeValue=e.text,r.trackWrites==this.nodeDOM&&(r.trackWrites=null)),this.node=e,this.dirty=ge,!0)}inParent(){let e=this.parent.contentDOM;for(let t=this.nodeDOM;t;t=t.parentNode)if(t==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,t,n){return e==this.nodeDOM?this.posAtStart+Math.min(t,this.node.text.length):super.localPosFromDOM(e,t,n)}ignoreMutation(e){return"characterData"!=e.type&&"selection"!=e.type}slice(e,t,n){let r=this.node.cut(e,t),o=document.createTextNode(r.text);return new Se(this.parent,r,this.outerDeco,this.innerDeco,o,o,n)}markDirty(e,t){super.markDirty(e,t),this.dom==this.nodeDOM||0!=e&&t!=this.nodeDOM.nodeValue.length||(this.dirty=be)}get domAtom(){return!1}}class Te extends Oe{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==ge&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return"IMG"==this.dom.nodeName}}class Ee extends we{constructor(e,t,n,r,o,a,i,s,c,l){super(e,t,n,r,o,a,i,c,l),this.spec=s}update(e,t,n,r){if(this.dirty==be)return!1;if(this.spec.update){let o=this.spec.update(e,t,n);return o&&this.updateInner(e,t,n,r),o}return!(!this.contentDOM&&!e.isLeaf)&&super.update(e,t,n,r)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,t,n,r){this.spec.setSelection?this.spec.setSelection(e,t,n):super.setSelection(e,t,n,r)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return!!this.spec.stopEvent&&this.spec.stopEvent(e)}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}}function je(e,t,n){let r=e.firstChild,o=!1;for(let a=0;a<t.length;a++){let i=t[a],s=i.dom;if(s.parentNode==e){while(s!=r)r=Ue(r),o=!0;r=r.nextSibling}else o=!0,e.insertBefore(s,r);if(i instanceof Ce){let t=r?r.previousSibling:e.lastChild;je(i.contentDOM,i.children,n),r=t?t.nextSibling:e.firstChild}}while(r)r=Ue(r),o=!0;o&&n.trackWrites==e&&(n.trackWrites=null)}const De=function(e){e&&(this.nodeName=e)};De.prototype=Object.create(null);const Le=[new De];function Ae(e,t,n){if(0==e.length)return Le;let r=n?Le[0]:new De,o=[r];for(let a=0;a<e.length;a++){let i=e[a].type.attrs;if(i){i.nodeName&&o.push(r=new De(i.nodeName));for(let e in i){let a=i[e];null!=a&&(n&&1==o.length&&o.push(r=new De(t.isInline?"span":"div")),"class"==e?r.class=(r.class?r.class+" ":"")+a:"style"==e?r.style=(r.style?r.style+";":"")+a:"nodeName"!=e&&(r[e]=a))}}}return o}function Ne(e,t,n,r){if(n==Le&&r==Le)return t;let o=t;for(let a=0;a<r.length;a++){let t=r[a],i=n[a];if(a){let n;i&&i.nodeName==t.nodeName&&o!=e&&(n=o.parentNode)&&n.nodeName.toLowerCase()==t.nodeName||(n=document.createElement(t.nodeName),n.pmIsDeco=!0,n.appendChild(o),i=Le[0]),o=n}xe(o,i||Le[0],t)}return o}function xe(e,t,n){for(let r in t)"class"==r||"style"==r||"nodeName"==r||r in n||e.removeAttribute(r);for(let r in n)"class"!=r&&"style"!=r&&"nodeName"!=r&&n[r]!=t[r]&&e.setAttribute(r,n[r]);if(t.class!=n.class){let r=t.class?t.class.split(" ").filter(Boolean):[],o=n.class?n.class.split(" ").filter(Boolean):[];for(let t=0;t<r.length;t++)-1==o.indexOf(r[t])&&e.classList.remove(r[t]);for(let t=0;t<o.length;t++)-1==r.indexOf(o[t])&&e.classList.add(o[t]);0==e.classList.length&&e.removeAttribute("class")}if(t.style!=n.style){if(t.style){let n,r=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g;while(n=r.exec(t.style))e.style.removeProperty(n[1])}n.style&&(e.style.cssText+=n.style)}}function Re(e,t,n){return Ne(e,e,Le,Ae(t,n,1!=e.nodeType))}function Pe(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].type.eq(t[n].type))return!1;return!0}function Ue(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}class Ve{constructor(e,t,n){this.lock=t,this.view=n,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=Be(e.node.content,e)}destroyBetween(e,t){if(e!=t){for(let n=e;n<t;n++)this.top.children[n].destroy();this.top.children.splice(e,t-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,t,n){let r=0,o=this.stack.length>>1,a=Math.min(o,e.length);while(r<a&&(r==o-1?this.top:this.stack[r+1<<1]).matchesMark(e[r])&&!1!==e[r].type.spec.spanning)r++;while(r<o)this.destroyRest(),this.top.dirty=ge,this.index=this.stack.pop(),this.top=this.stack.pop(),o--;while(o<e.length){this.stack.push(this.top,this.index+1);let r=-1;for(let t=this.index;t<Math.min(this.index+3,this.top.children.length);t++){let n=this.top.children[t];if(n.matchesMark(e[o])&&!this.isLocked(n.dom)){r=t;break}}if(r>-1)r>this.index&&(this.changed=!0,this.destroyBetween(this.index,r)),this.top=this.top.children[this.index];else{let r=Ce.create(this.top,e[o],t,n);this.top.children.splice(this.index,0,r),this.top=r,this.changed=!0}this.index=0,o++}}findNodeMatch(e,t,n,r){let o,a=-1;if(r>=this.preMatch.index&&(o=this.preMatch.matches[r-this.preMatch.index]).parent==this.top&&o.matchesNode(e,t,n))a=this.top.children.indexOf(o,this.index);else for(let i=this.index,s=Math.min(this.top.children.length,i+5);i<s;i++){let r=this.top.children[i];if(r.matchesNode(e,t,n)&&!this.preMatch.matched.has(r)){a=i;break}}return!(a<0)&&(this.destroyBetween(this.index,a),this.index++,!0)}updateNodeAt(e,t,n,r,o){let a=this.top.children[r];return a.dirty==be&&a.dom==a.contentDOM&&(a.dirty=ye),!!a.update(e,t,n,o)&&(this.destroyBetween(this.index,r),this.index++,!0)}findIndexWithChild(e){for(;;){let t=e.parentNode;if(!t)return-1;if(t==this.top.contentDOM){let t=e.pmViewDesc;if(t)for(let e=this.index;e<this.top.children.length;e++)if(this.top.children[e]==t)return e;return-1}e=t}}updateNextNode(e,t,n,r,o,a){for(let i=this.index;i<this.top.children.length;i++){let s=this.top.children[i];if(s instanceof we){let c=this.preMatch.matched.get(s);if(null!=c&&c!=o)return!1;let l,u=s.dom,d=this.isLocked(u)&&!(e.isText&&s.node&&s.node.isText&&s.nodeDOM.nodeValue==e.text&&s.dirty!=be&&Pe(t,s.outerDeco));if(!d&&s.update(e,t,n,r))return this.destroyBetween(this.index,i),s.dom!=u&&(this.changed=!0),this.index++,!0;if(!d&&(l=this.recreateWrapper(s,e,t,n,r,a)))return this.top.children[this.index]=l,l.dirty=ye,l.updateChildren(r,a+1),l.dirty=ge,this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,t,n,r,o,a){if(e.dirty||t.isAtom||!e.children.length||!e.node.content.eq(t.content))return null;let i=we.create(this.top,t,n,r,o,a);if(!i.contentDOM)return null;i.children=e.children,e.children=[],e.destroy();for(let s of i.children)s.parent=i;return i}addNode(e,t,n,r,o){let a=we.create(this.top,e,t,n,r,o);a.contentDOM&&a.updateChildren(r,o+1),this.top.children.splice(this.index++,0,a),this.changed=!0}placeWidget(e,t,n){let r=this.index<this.top.children.length?this.top.children[this.index]:null;if(!r||!r.matchesWidget(e)||e!=r.widget&&r.widget.type.toDOM.parentNode){let r=new Me(this.top,e,t,n);this.top.children.splice(this.index++,0,r),this.changed=!0}else this.index++}addTextblockHacks(){let e=this.top.children[this.index-1],t=this.top;while(e instanceof Ce)t=e,e=t.children[t.children.length-1];(!e||!(e instanceof Se)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((L||j)&&e&&"false"==e.dom.contentEditable&&this.addHackNode("IMG",t),this.addHackNode("BR",this.top))}addHackNode(e,t){if(t==this.top&&this.index<t.children.length&&t.children[this.index].matchesHack(e))this.index++;else{let n=document.createElement(e);"IMG"==e&&(n.className="ProseMirror-separator",n.alt=""),"BR"==e&&(n.className="ProseMirror-trailingBreak");let r=new Te(this.top,[],n,null);t!=this.top?t.children.push(r):t.children.splice(this.index++,0,r),this.changed=!0}}isLocked(e){return this.lock&&(e==this.lock||1==e.nodeType&&e.contains(this.lock.parentNode))}}function Be(e,t){let n=t,r=n.children.length,o=e.childCount,a=new Map,i=[];e:while(o>0){let s;for(;;)if(r){let e=n.children[r-1];if(!(e instanceof Ce)){s=e,r--;break}n=e,r=e.children.length}else{if(n==t)break e;r=n.parent.children.indexOf(n),n=n.parent}let c=s.node;if(c){if(c!=e.child(o-1))break;--o,a.set(s,o),i.push(s)}}return{index:o,matched:a,matches:i.reverse()}}function Fe(e,t){return e.type.side-t.type.side}function Ge(e,t,n,r){let o=t.locals(e),a=0;if(0==o.length){for(let n=0;n<e.childCount;n++){let i=e.child(n);r(i,o,t.forChild(a,i),n),a+=i.nodeSize}return}let i=0,s=[],c=null;for(let l=0;;){if(i<o.length&&o[i].to==a){let e,t=o[i++];while(i<o.length&&o[i].to==a)(e||(e=[t])).push(o[i++]);if(e){e.sort(Fe);for(let t=0;t<e.length;t++)n(e[t],l,!!c)}else n(t,l,!!c)}let u,d;if(c)d=-1,u=c,c=null;else{if(!(l<e.childCount))break;d=l,u=e.child(l++)}for(let e=0;e<s.length;e++)s[e].to<=a&&s.splice(e--,1);while(i<o.length&&o[i].from<=a&&o[i].to>a)s.push(o[i++]);let p=a+u.nodeSize;if(u.isText){let e=p;i<o.length&&o[i].from<e&&(e=o[i].from);for(let t=0;t<s.length;t++)s[t].to<e&&(e=s[t].to);e<p&&(c=u.cut(e-a),u=u.cut(0,e-a),p=e,d=-1)}let f=u.isInline&&!u.isLeaf?s.filter(e=>!e.inline):s.slice();r(u,f,t.forChild(a,u),d),a=p}}function ze(e){if("UL"==e.nodeName||"OL"==e.nodeName){let t=e.style.cssText;e.style.cssText=t+"; list-style: square !important",window.getComputedStyle(e).listStyle,e.style.cssText=t}}function He(e,t){for(;;){if(3==e.nodeType)return e;if(1==e.nodeType&&t>0){if(e.childNodes.length>t&&3==e.childNodes[t].nodeType)return e.childNodes[t];e=e.childNodes[t-1],t=f(e)}else{if(!(1==e.nodeType&&t<e.childNodes.length))return null;e=e.childNodes[t],t=0}}}function Ye(e,t,n,r){for(let o=0,a=0;o<e.childCount&&a<=r;){let i=e.child(o++),s=a;if(a+=i.nodeSize,!i.isText)continue;let c=i.text;while(o<e.childCount){let t=e.child(o++);if(a+=t.nodeSize,!t.isText)break;c+=t.text}if(a>=n){let e=s<r?c.lastIndexOf(t,r-s-1):-1;if(e>=0&&e+t.length+s>=n)return s+e;if(n==r&&c.length>=r+t.length-s&&c.slice(r-s,r-s+t.length)==t)return r}}return-1}function qe(e,t,n,r,o){let a=[];for(let i=0,s=0;i<e.length;i++){let c=e[i],l=s,u=s+=c.size;l>=n||u<=t?a.push(c):(l<t&&a.push(c.slice(0,t-l,r)),o&&(a.push(o),o=void 0),u>n&&a.push(c.slice(n-l,c.size,r)))}return a}function We(e,t=null){let n=e.domSelectionRange(),o=e.state.doc;if(!n.focusNode)return null;let a=e.docView.nearestDesc(n.focusNode),i=a&&0==a.size,s=e.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(s<0)return null;let c,l,u=o.resolve(s);if(v(n)){c=u;while(a&&!a.node)a=a.parent;let e=a.node;if(a&&e.isAtom&&r["c"].isSelectable(e)&&a.parent&&(!e.isInline||!h(n.focusNode,n.focusOffset,a.dom))){let e=a.posBefore;l=new r["c"](s==e?u:o.resolve(e))}}else{let t=e.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(t<0)return null;c=o.resolve(t)}if(!l){let n="pointer"==t||e.state.selection.head<u.pos&&!i?1:-1;l=ot(e,c,u,n)}return l}function Ke(e){return e.editable?e.hasFocus():it(e)&&document.activeElement&&document.activeElement.contains(e.dom)}function $e(e,t=!1){let n=e.state.selection;if(nt(e,n),Ke(e)){if(!t&&e.input.mouseDown&&e.input.mouseDown.allowDefault&&j){let t=e.domSelectionRange(),n=e.domObserver.currentSelection;if(t.anchorNode&&n.anchorNode&&u(t.anchorNode,t.anchorOffset,n.anchorNode,n.anchorOffset))return e.input.mouseDown.delayedSelectionSync=!0,void e.domObserver.setCurSelection()}if(e.domObserver.disconnectSelection(),e.cursorWrapper)tt(e);else{let o,a,{anchor:i,head:s}=n;!Je||n instanceof r["g"]||(n.$from.parent.inlineContent||(o=Qe(e,n.from)),n.empty||n.$from.parent.inlineContent||(a=Qe(e,n.to))),e.docView.setSelection(i,s,e.root,t),Je&&(o&&Ze(o),a&&Ze(a)),n.visible?e.dom.classList.remove("ProseMirror-hideselection"):(e.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&et(e))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}}const Je=L||j&&D<63;function Qe(e,t){let{node:n,offset:r}=e.docView.domFromPos(t,0),o=r<n.childNodes.length?n.childNodes[r]:null,a=r?n.childNodes[r-1]:null;if(L&&o&&"false"==o.contentEditable)return Xe(o);if((!o||"false"==o.contentEditable)&&(!a||"false"==a.contentEditable)){if(o)return Xe(o);if(a)return Xe(a)}}function Xe(e){return e.contentEditable="true",L&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function Ze(e){e.contentEditable="false",e.wasDraggable&&(e.draggable=!0,e.wasDraggable=null)}function et(e){let t=e.dom.ownerDocument;t.removeEventListener("selectionchange",e.input.hideSelectionGuard);let n=e.domSelectionRange(),r=n.anchorNode,o=n.anchorOffset;t.addEventListener("selectionchange",e.input.hideSelectionGuard=()=>{n.anchorNode==r&&n.anchorOffset==o||(t.removeEventListener("selectionchange",e.input.hideSelectionGuard),setTimeout(()=>{Ke(e)&&!e.state.selection.visible||e.dom.classList.remove("ProseMirror-hideselection")},20))})}function tt(e){let t=e.domSelection(),n=document.createRange(),r=e.cursorWrapper.dom,o="IMG"==r.nodeName;o?n.setEnd(r.parentNode,i(r)+1):n.setEnd(r,0),n.collapse(!1),t.removeAllRanges(),t.addRange(n),!o&&!e.state.selection.visible&&I&&S<=11&&(r.disabled=!0,r.disabled=!1)}function nt(e,t){if(t instanceof r["c"]){let n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(rt(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else rt(e)}function rt(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=void 0)}function ot(e,t,n,o){return e.someProp("createSelectionBetween",r=>r(e,t,n))||r["g"].between(t,n,o)}function at(e){return!(e.editable&&!e.hasFocus())&&it(e)}function it(e){let t=e.domSelectionRange();if(!t.anchorNode)return!1;try{return e.dom.contains(3==t.anchorNode.nodeType?t.anchorNode.parentNode:t.anchorNode)&&(e.editable||e.dom.contains(3==t.focusNode.nodeType?t.focusNode.parentNode:t.focusNode))}catch(n){return!1}}function st(e){let t=e.docView.domFromPos(e.state.selection.anchor,0),n=e.domSelectionRange();return u(t.node,t.offset,n.anchorNode,n.anchorOffset)}function ct(e,t){let{$anchor:n,$head:o}=e.selection,a=t>0?n.max(o):n.min(o),i=a.parent.inlineContent?a.depth?e.doc.resolve(t>0?a.after():a.before()):null:a;return i&&r["f"].findFrom(i,t)}function lt(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function ut(e,t,n){let o=e.state.selection;if(!(o instanceof r["g"])){if(o instanceof r["c"]&&o.node.isInline)return lt(e,new r["g"](t>0?o.$to:o.$from));{let n=ct(e.state,t);return!!n&<(e,n)}}if(!o.empty||n.indexOf("s")>-1)return!1;if(e.endOfTextblock(t>0?"forward":"backward")){let n=ct(e.state,t);return!!(n&&n instanceof r["c"])&<(e,n)}if(!(N&&n.indexOf("m")>-1)){let n,a=o.$head,i=a.textOffset?null:t<0?a.nodeBefore:a.nodeAfter;if(!i||i.isText)return!1;let s=t<0?a.pos-i.nodeSize:a.pos;return!!(i.isAtom||(n=e.docView.descAt(s))&&!n.contentDOM)&&(r["c"].isSelectable(i)?lt(e,new r["c"](t<0?e.state.doc.resolve(a.pos-i.nodeSize):a)):!!P&<(e,new r["g"](e.state.doc.resolve(t<0?s:s+i.nodeSize))))}}function dt(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function pt(e){if("false"==e.contentEditable)return!0;let t=e.pmViewDesc;return t&&0==t.size&&(e.nextSibling||"BR"!=e.nodeName)}function ft(e,t){return t<0?ht(e):mt(e)}function ht(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let o,a,s=!1;for(T&&1==n.nodeType&&r<dt(n)&&pt(n.childNodes[r])&&(s=!0);;)if(r>0){if(1!=n.nodeType)break;{let e=n.childNodes[r-1];if(pt(e))o=n,a=--r;else{if(3!=e.nodeType)break;n=e,r=n.nodeValue.length}}}else{if(vt(n))break;{let t=n.previousSibling;while(t&&pt(t))o=n.parentNode,a=i(t),t=t.previousSibling;if(t)n=t,r=dt(n);else{if(n=n.parentNode,n==e.dom)break;r=0}}}s?yt(e,n,r):o&&yt(e,o,a)}function mt(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let o,a,s=dt(n);for(;;)if(r<s){if(1!=n.nodeType)break;let e=n.childNodes[r];if(!pt(e))break;o=n,a=++r}else{if(vt(n))break;{let t=n.nextSibling;while(t&&pt(t))o=t.parentNode,a=i(t)+1,t=t.nextSibling;if(t)n=t,r=0,s=dt(n);else{if(n=n.parentNode,n==e.dom)break;r=s=0}}}o&&yt(e,o,a)}function vt(e){let t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function gt(e,t){while(e&&t==e.childNodes.length&&!m(e))t=i(e)+1,e=e.parentNode;while(e&&t<e.childNodes.length){if(e=e.childNodes[t],3==e.nodeType)return e;t=0}}function _t(e,t){while(e&&!t&&!m(e))t=i(e),e=e.parentNode;while(e&&t){if(e=e.childNodes[t-1],3==e.nodeType)return e;t=e.childNodes.length}}function yt(e,t,n){if(3!=t.nodeType){let e,r;(r=gt(t,n))?(t=r,n=0):(e=_t(t,n))&&(t=e,n=e.nodeValue.length)}let r=e.domSelection();if(v(r)){let e=document.createRange();e.setEnd(t,n),e.setStart(t,n),r.removeAllRanges(),r.addRange(e)}else r.extend&&r.extend(t,n);e.domObserver.setCurSelection();let{state:o}=e;setTimeout(()=>{e.state==o&&$e(e)},50)}function bt(e,t){let n=e.state.doc.resolve(t);if(!j&&!x&&n.parent.inlineContent){let r=e.coordsAtPos(t);if(t>n.start()){let n=e.coordsAtPos(t-1),o=(n.top+n.bottom)/2;if(o>r.top&&o<r.bottom&&Math.abs(n.left-r.left)>1)return n.left<r.left?"ltr":"rtl"}if(t<n.end()){let n=e.coordsAtPos(t+1),o=(n.top+n.bottom)/2;if(o>r.top&&o<r.bottom&&Math.abs(n.left-r.left)>1)return n.left>r.left?"ltr":"rtl"}}let r=getComputedStyle(e.dom).direction;return"rtl"==r?"rtl":"ltr"}function Ot(e,t,n){let o=e.state.selection;if(o instanceof r["g"]&&!o.empty||n.indexOf("s")>-1)return!1;if(N&&n.indexOf("m")>-1)return!1;let{$from:a,$to:i}=o;if(!a.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){let n=ct(e.state,t);if(n&&n instanceof r["c"])return lt(e,n)}if(!a.parent.inlineContent){let n=t<0?a:i,s=o instanceof r["a"]?r["f"].near(n,t):r["f"].findFrom(n,t);return!!s&<(e,s)}return!1}function Mt(e,t){if(!(e.state.selection instanceof r["g"]))return!0;let{$head:n,$anchor:o,empty:a}=e.state.selection;if(!n.sameParent(o))return!0;if(!a)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;let i=!n.textOffset&&(t<0?n.nodeBefore:n.nodeAfter);if(i&&!i.isText){let r=e.state.tr;return t<0?r.delete(n.pos-i.nodeSize,n.pos):r.delete(n.pos,n.pos+i.nodeSize),e.dispatch(r),!0}return!1}function kt(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function Ct(e){if(!L||e.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(t&&1==t.nodeType&&0==n&&t.firstChild&&"false"==t.firstChild.contentEditable){let n=t.firstChild;kt(e,n,"true"),setTimeout(()=>kt(e,n,"false"),20)}return!1}function wt(e){let t="";return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}function It(e,t){let n=t.keyCode,r=wt(t);if(8==n||N&&72==n&&"c"==r)return Mt(e,-1)||ft(e,-1);if(46==n&&!t.shiftKey||N&&68==n&&"c"==r)return Mt(e,1)||ft(e,1);if(13==n||27==n)return!0;if(37==n||N&&66==n&&"c"==r){let t=37==n?"ltr"==bt(e,e.state.selection.from)?-1:1:-1;return ut(e,t,r)||ft(e,t)}if(39==n||N&&70==n&&"c"==r){let t=39==n?"ltr"==bt(e,e.state.selection.from)?1:-1:1;return ut(e,t,r)||ft(e,t)}return 38==n||N&&80==n&&"c"==r?Ot(e,-1,r)||ft(e,-1):40==n||N&&78==n&&"c"==r?Ct(e)||Ot(e,1,r)||mt(e):r==(N?"m":"c")&&(66==n||73==n||89==n||90==n)}function St(e,t){e.someProp("transformCopied",n=>{t=n(t,e)});let n=[],{content:r,openStart:a,openEnd:i}=t;while(a>1&&i>1&&1==r.childCount&&1==r.firstChild.childCount){a--,i--;let e=r.firstChild;n.push(e.type.name,e.attrs!=e.type.defaultAttrs?e.attrs:null),r=e.content}let s=e.someProp("clipboardSerializer")||o["b"].fromSchema(e.state.schema),c=Ut(),l=c.createElement("div");l.appendChild(s.serializeFragment(r,{document:c}));let u,d=l.firstChild,p=0;while(d&&1==d.nodeType&&(u=Rt[d.nodeName.toLowerCase()])){for(let e=u.length-1;e>=0;e--){let t=c.createElement(u[e]);while(l.firstChild)t.appendChild(l.firstChild);l.appendChild(t),p++}d=l.firstChild}d&&1==d.nodeType&&d.setAttribute("data-pm-slice",`${a} ${i}${p?" -"+p:""} ${JSON.stringify(n)}`);let f=e.someProp("clipboardTextSerializer",n=>n(t,e))||t.content.textBetween(0,t.content.size,"\n\n");return{dom:l,text:f}}function Tt(e,t,n,r,a){let i,s,c=a.parent.type.spec.code;if(!n&&!t)return null;let l=t&&(r||c||!n);if(l){if(e.someProp("transformPastedText",n=>{t=n(t,c||r,e)}),c)return t?new o["j"](o["c"].from(e.state.schema.text(t.replace(/\r\n?/g,"\n"))),0,0):o["j"].empty;let n=e.someProp("clipboardTextParser",n=>n(t,a,r,e));if(n)s=n;else{let n=a.marks(),{schema:r}=e.state,s=o["b"].fromSchema(r);i=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach(e=>{let t=i.appendChild(document.createElement("p"));e&&t.appendChild(s.serializeNode(r.text(e,n)))})}}else e.someProp("transformPastedHTML",t=>{n=t(n,e)}),i=Vt(n),P&&Bt(i);let u=i&&i.querySelector("[data-pm-slice]"),d=u&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(u.getAttribute("data-pm-slice")||"");if(d&&d[3])for(let o=+d[3];o>0;o--){let e=i.firstChild;while(e&&1!=e.nodeType)e=e.nextSibling;if(!e)break;i=e}if(!s){let t=e.someProp("clipboardParser")||e.someProp("domParser")||o["a"].fromSchema(e.state.schema);s=t.parseSlice(i,{preserveWhitespace:!(!l&&!d),context:a,ruleFromNode(e){return"BR"!=e.nodeName||e.nextSibling||!e.parentNode||Et.test(e.parentNode.nodeName)?null:{ignore:!0}}})}if(d)s=Ft(xt(s,+d[1],+d[2]),d[4]);else if(s=o["j"].maxOpen(jt(s.content,a),!0),s.openStart||s.openEnd){let e=0,t=0;for(let n=s.content.firstChild;e<s.openStart&&!n.type.spec.isolating;e++,n=n.firstChild);for(let n=s.content.lastChild;t<s.openEnd&&!n.type.spec.isolating;t++,n=n.lastChild);s=xt(s,e,t)}return e.someProp("transformPasted",t=>{s=t(s,e)}),s}const Et=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function jt(e,t){if(e.childCount<2)return e;for(let n=t.depth;n>=0;n--){let r,a=t.node(n),i=a.contentMatchAt(t.index(n)),s=[];if(e.forEach(e=>{if(!s)return;let t,n=i.findWrapping(e.type);if(!n)return s=null;if(t=s.length&&r.length&&Lt(n,r,e,s[s.length-1],0))s[s.length-1]=t;else{s.length&&(s[s.length-1]=At(s[s.length-1],r.length));let t=Dt(e,n);s.push(t),i=i.matchType(t.type),r=n}}),s)return o["c"].from(s)}return e}function Dt(e,t,n=0){for(let r=t.length-1;r>=n;r--)e=t[r].create(null,o["c"].from(e));return e}function Lt(e,t,n,r,a){if(a<e.length&&a<t.length&&e[a]==t[a]){let i=Lt(e,t,n,r.lastChild,a+1);if(i)return r.copy(r.content.replaceChild(r.childCount-1,i));let s=r.contentMatchAt(r.childCount);if(s.matchType(a==e.length-1?n.type:e[a+1]))return r.copy(r.content.append(o["c"].from(Dt(n,e,a+1))))}}function At(e,t){if(0==t)return e;let n=e.content.replaceChild(e.childCount-1,At(e.lastChild,t-1)),r=e.contentMatchAt(e.childCount).fillBefore(o["c"].empty,!0);return e.copy(n.append(r))}function Nt(e,t,n,r,a,i){let s=t<0?e.firstChild:e.lastChild,c=s.content;return e.childCount>1&&(i=0),a<r-1&&(c=Nt(c,t,n,r,a+1,i)),a>=n&&(c=t<0?s.contentMatchAt(0).fillBefore(c,i<=a).append(c):c.append(s.contentMatchAt(s.childCount).fillBefore(o["c"].empty,!0))),e.replaceChild(t<0?0:e.childCount-1,s.copy(c))}function xt(e,t,n){return t<e.openStart&&(e=new o["j"](Nt(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),n<e.openEnd&&(e=new o["j"](Nt(e.content,1,n,e.openEnd,0,0),e.openStart,n)),e}const Rt={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};let Pt=null;function Ut(){return Pt||(Pt=document.implementation.createHTMLDocument("title"))}function Vt(e){let t=/^(\s*<meta [^>]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let n,r=Ut().createElement("div"),o=/<([a-z][^>\s]+)/i.exec(e);if((n=o&&Rt[o[1].toLowerCase()])&&(e=n.map(e=>"<"+e+">").join("")+e+n.map(e=>"</"+e+">").reverse().join("")),r.innerHTML=e,n)for(let a=0;a<n.length;a++)r=r.querySelector(n[a])||r;return r}function Bt(e){let t=e.querySelectorAll(j?"span:not([class]):not([style])":"span.Apple-converted-space");for(let n=0;n<t.length;n++){let r=t[n];1==r.childNodes.length&&" "==r.textContent&&r.parentNode&&r.parentNode.replaceChild(e.ownerDocument.createTextNode(" "),r)}}function Ft(e,t){if(!e.size)return e;let n,r=e.content.firstChild.type.schema;try{n=JSON.parse(t)}catch(c){return e}let{content:a,openStart:i,openEnd:s}=e;for(let l=n.length-2;l>=0;l-=2){let e=r.nodes[n[l]];if(!e||e.hasRequiredAttrs())break;a=o["c"].from(e.create(n[l+1],a)),i++,s++}return new o["j"](a,i,s)}const Gt={},zt={},Ht={touchstart:!0,touchmove:!0};class Yt{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:""},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastAndroidDelete=0,this.composing=!1,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function qt(e){for(let t in Gt){let n=Gt[t];e.dom.addEventListener(t,e.input.eventHandlers[t]=t=>{!Qt(e,t)||Jt(e,t)||!e.editable&&t.type in zt||n(e,t)},Ht[t]?{passive:!0}:void 0)}L&&e.dom.addEventListener("input",()=>null),$t(e)}function Wt(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function Kt(e){e.domObserver.stop();for(let t in e.input.eventHandlers)e.dom.removeEventListener(t,e.input.eventHandlers[t]);clearTimeout(e.input.composingTimeout),clearTimeout(e.input.lastIOSEnterFallbackTimeout)}function $t(e){e.someProp("handleDOMEvents",t=>{for(let n in t)e.input.eventHandlers[n]||e.dom.addEventListener(n,e.input.eventHandlers[n]=t=>Jt(e,t))})}function Jt(e,t){return e.someProp("handleDOMEvents",n=>{let r=n[t.type];return!!r&&(r(e,t)||t.defaultPrevented)})}function Qt(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n=t.target;n!=e.dom;n=n.parentNode)if(!n||11==n.nodeType||n.pmViewDesc&&n.pmViewDesc.stopEvent(t))return!1;return!0}function Xt(e,t){Jt(e,t)||!Gt[t.type]||!e.editable&&t.type in zt||Gt[t.type](e,t)}function Zt(e){return{left:e.clientX,top:e.clientY}}function en(e,t){let n=t.x-e.clientX,r=t.y-e.clientY;return n*n+r*r<100}function tn(e,t,n,r,o){if(-1==r)return!1;let a=e.state.doc.resolve(r);for(let i=a.depth+1;i>0;i--)if(e.someProp(t,t=>i>a.depth?t(e,n,a.nodeAfter,a.before(i),o,!0):t(e,n,a.node(i),a.before(i),o,!1)))return!0;return!1}function nn(e,t,n){e.focused||e.focus();let r=e.state.tr.setSelection(t);"pointer"==n&&r.setMeta("pointer",!0),e.dispatch(r)}function rn(e,t){if(-1==t)return!1;let n=e.state.doc.resolve(t),o=n.nodeAfter;return!!(o&&o.isAtom&&r["c"].isSelectable(o))&&(nn(e,new r["c"](n),"pointer"),!0)}function on(e,t){if(-1==t)return!1;let n,o,a=e.state.selection;a instanceof r["c"]&&(n=a.node);let i=e.state.doc.resolve(t);for(let s=i.depth+1;s>0;s--){let e=s>i.depth?i.nodeAfter:i.node(s);if(r["c"].isSelectable(e)){o=n&&a.$from.depth>0&&s>=a.$from.depth&&i.before(a.$from.depth+1)==a.$from.pos?i.before(a.$from.depth):i.before(s);break}}return null!=o&&(nn(e,r["c"].create(e.state.doc,o),"pointer"),!0)}function an(e,t,n,r,o){return tn(e,"handleClickOn",t,n,r)||e.someProp("handleClick",n=>n(e,t,r))||(o?on(e,n):rn(e,n))}function sn(e,t,n,r){return tn(e,"handleDoubleClickOn",t,n,r)||e.someProp("handleDoubleClick",n=>n(e,t,r))}function cn(e,t,n,r){return tn(e,"handleTripleClickOn",t,n,r)||e.someProp("handleTripleClick",n=>n(e,t,r))||ln(e,n,r)}function ln(e,t,n){if(0!=n.button)return!1;let o=e.state.doc;if(-1==t)return!!o.inlineContent&&(nn(e,r["g"].create(o,0,o.content.size),"pointer"),!0);let a=o.resolve(t);for(let i=a.depth+1;i>0;i--){let t=i>a.depth?a.nodeAfter:a.node(i),n=a.before(i);if(t.inlineContent)nn(e,r["g"].create(o,n+1,n+1+t.content.size),"pointer");else{if(!r["c"].isSelectable(t))continue;nn(e,r["c"].create(o,n),"pointer")}return!0}}function un(e){return _n(e)}zt.keydown=(e,t)=>{let n=t;if(e.input.shiftKey=16==n.keyCode||n.shiftKey,!fn(e,n)&&(e.input.lastKeyCode=n.keyCode,e.input.lastKeyCodeTime=Date.now(),!R||!j||13!=n.keyCode))if(229!=n.keyCode&&e.domObserver.forceFlush(),!A||13!=n.keyCode||n.ctrlKey||n.altKey||n.metaKey)e.someProp("handleKeyDown",t=>t(e,n))||It(e,n)?n.preventDefault():Wt(e,"key");else{let t=Date.now();e.input.lastIOSEnter=t,e.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{e.input.lastIOSEnter==t&&(e.someProp("handleKeyDown",t=>t(e,g(13,"Enter"))),e.input.lastIOSEnter=0)},200)}},zt.keyup=(e,t)=>{16==t.keyCode&&(e.input.shiftKey=!1)},zt.keypress=(e,t)=>{let n=t;if(fn(e,n)||!n.charCode||n.ctrlKey&&!n.altKey||N&&n.metaKey)return;if(e.someProp("handleKeyPress",t=>t(e,n)))return void n.preventDefault();let o=e.state.selection;if(!(o instanceof r["g"])||!o.$from.sameParent(o.$to)){let t=String.fromCharCode(n.charCode);/[\r\n]/.test(t)||e.someProp("handleTextInput",n=>n(e,o.$from.pos,o.$to.pos,t))||e.dispatch(e.state.tr.insertText(t).scrollIntoView()),n.preventDefault()}};const dn=N?"metaKey":"ctrlKey";Gt.mousedown=(e,t)=>{let n=t;e.input.shiftKey=n.shiftKey;let r=un(e),o=Date.now(),a="singleClick";o-e.input.lastClick.time<500&&en(n,e.input.lastClick)&&!n[dn]&&("singleClick"==e.input.lastClick.type?a="doubleClick":"doubleClick"==e.input.lastClick.type&&(a="tripleClick")),e.input.lastClick={time:o,x:n.clientX,y:n.clientY,type:a};let i=e.posAtCoords(Zt(n));i&&("singleClick"==a?(e.input.mouseDown&&e.input.mouseDown.done(),e.input.mouseDown=new pn(e,i,n,!!r)):("doubleClick"==a?sn:cn)(e,i.pos,i.inside,n)?n.preventDefault():Wt(e,"pointer"))};class pn{constructor(e,t,n,o){let a,i;if(this.view=e,this.pos=t,this.event=n,this.flushed=o,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!n[dn],this.allowDefault=n.shiftKey,t.inside>-1)a=e.state.doc.nodeAt(t.inside),i=t.inside;else{let n=e.state.doc.resolve(t.pos);a=n.parent,i=n.depth?n.before():0}const s=o?null:n.target,c=s?e.docView.nearestDesc(s,!0):null;this.target=c?c.dom:null;let{selection:l}=e.state;(0==n.button&&a.type.spec.draggable&&!1!==a.type.spec.selectable||l instanceof r["c"]&&l.from<=i&&l.to>i)&&(this.mightDrag={node:a,pos:i,addAttr:!(!this.target||this.target.draggable),setUneditable:!(!this.target||!T||this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),Wt(e,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>$e(this.view)),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let t=this.pos;this.view.state.doc!=this.startDoc&&(t=this.view.posAtCoords(Zt(e))),this.updateAllowDefault(e),this.allowDefault||!t?Wt(this.view,"pointer"):an(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():0==e.button&&(this.flushed||L&&this.mightDrag&&!this.mightDrag.node.isAtom||j&&!this.view.state.selection.visible&&Math.min(Math.abs(t.pos-this.view.state.selection.from),Math.abs(t.pos-this.view.state.selection.to))<=2)?(nn(this.view,r["f"].near(this.view.state.doc.resolve(t.pos)),"pointer"),e.preventDefault()):Wt(this.view,"pointer")}move(e){this.updateAllowDefault(e),Wt(this.view,"pointer"),0==e.buttons&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}function fn(e,t){return!!e.composing||!!(L&&Math.abs(t.timeStamp-e.input.compositionEndedAt)<500)&&(e.input.compositionEndedAt=-2e8,!0)}Gt.touchstart=e=>{e.input.lastTouch=Date.now(),un(e),Wt(e,"pointer")},Gt.touchmove=e=>{e.input.lastTouch=Date.now(),Wt(e,"pointer")},Gt.contextmenu=e=>un(e);const hn=R?5e3:-1;function mn(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>_n(e),t))}function vn(e){e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=gn());while(e.input.compositionNodes.length>0)e.input.compositionNodes.pop().markParentsDirty()}function gn(){let e=document.createEvent("Event");return e.initEvent("event",!0,!0),e.timeStamp}function _n(e,t=!1){if(!(R&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),vn(e),t||e.docView&&e.docView.dirty){let t=We(e);return t&&!t.eq(e.state.selection)?e.dispatch(e.state.tr.setSelection(t)):e.updateState(e.state),!0}return!1}}function yn(e,t){if(!e.dom.parentNode)return;let n=e.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(t),n.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),o=document.createRange();o.selectNodeContents(t),e.dom.blur(),r.removeAllRanges(),r.addRange(o),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),e.focus()},50)}zt.compositionstart=zt.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,n=t.selection.$from;if(t.selection.empty&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(e=>!1===e.type.spec.inclusive)))e.markCursor=e.state.storedMarks||n.marks(),_n(e,!0),e.markCursor=null;else if(_n(e),T&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let t=e.domSelectionRange();for(let n=t.focusNode,r=t.focusOffset;n&&1==n.nodeType&&0!=r;){let t=r<0?n.lastChild:n.childNodes[r-1];if(!t)break;if(3==t.nodeType){e.domSelection().collapse(t,t.nodeValue.length);break}n=t,r=-1}}e.input.composing=!0}mn(e,hn)},zt.compositionend=(e,t)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=t.timeStamp,e.input.compositionPendingChanges=e.domObserver.pendingRecords().length?e.input.compositionID:0,e.input.compositionPendingChanges&&Promise.resolve().then(()=>e.domObserver.flush()),e.input.compositionID++,mn(e,20))};const bn=I&&S<15||A&&U<604;function On(e){return 0==e.openStart&&0==e.openEnd&&1==e.content.childCount?e.content.firstChild:null}function Mn(e,t){if(!e.dom.parentNode)return;let n=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,r=e.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let o=e.input.shiftKey&&45!=e.input.lastKeyCode;setTimeout(()=>{e.focus(),r.parentNode&&r.parentNode.removeChild(r),n?kn(e,r.value,null,o,t):kn(e,r.textContent,r.innerHTML,o,t)},50)}function kn(e,t,n,r,a){let i=Tt(e,t,n,r,e.state.selection.$from);if(e.someProp("handlePaste",t=>t(e,a,i||o["j"].empty)))return!0;if(!i)return!1;let s=On(i),c=s?e.state.tr.replaceSelectionWith(s,r):e.state.tr.replaceSelection(i);return e.dispatch(c.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}Gt.copy=zt.cut=(e,t)=>{let n=t,r=e.state.selection,o="cut"==n.type;if(r.empty)return;let a=bn?null:n.clipboardData,i=r.content(),{dom:s,text:c}=St(e,i);a?(n.preventDefault(),a.clearData(),a.setData("text/html",s.innerHTML),a.setData("text/plain",c)):yn(e,s),o&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))},zt.paste=(e,t)=>{let n=t;if(e.composing&&!R)return;let r=bn?null:n.clipboardData,o=e.input.shiftKey&&45!=e.input.lastKeyCode;r&&kn(e,r.getData("text/plain"),r.getData("text/html"),o,n)?n.preventDefault():Mn(e,n)};class Cn{constructor(e,t){this.slice=e,this.move=t}}const wn=N?"altKey":"ctrlKey";Gt.dragstart=(e,t)=>{let n=t,o=e.input.mouseDown;if(o&&o.done(),!n.dataTransfer)return;let a=e.state.selection,i=a.empty?null:e.posAtCoords(Zt(n));if(i&&i.pos>=a.from&&i.pos<=(a instanceof r["c"]?a.to-1:a.to));else if(o&&o.mightDrag)e.dispatch(e.state.tr.setSelection(r["c"].create(e.state.doc,o.mightDrag.pos)));else if(n.target&&1==n.target.nodeType){let t=e.docView.nearestDesc(n.target,!0);t&&t.node.type.spec.draggable&&t!=e.docView&&e.dispatch(e.state.tr.setSelection(r["c"].create(e.state.doc,t.posBefore)))}let s=e.state.selection.content(),{dom:c,text:l}=St(e,s);n.dataTransfer.clearData(),n.dataTransfer.setData(bn?"Text":"text/html",c.innerHTML),n.dataTransfer.effectAllowed="copyMove",bn||n.dataTransfer.setData("text/plain",l),e.dragging=new Cn(s,!n[wn])},Gt.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)},zt.dragover=zt.dragenter=(e,t)=>t.preventDefault(),zt.drop=(e,t)=>{let n=t,i=e.dragging;if(e.dragging=null,!n.dataTransfer)return;let s=e.posAtCoords(Zt(n));if(!s)return;let c=e.state.doc.resolve(s.pos),l=i&&i.slice;l?e.someProp("transformPasted",t=>{l=t(l,e)}):l=Tt(e,n.dataTransfer.getData(bn?"Text":"text/plain"),bn?null:n.dataTransfer.getData("text/html"),!1,c);let u=!(!i||n[wn]);if(e.someProp("handleDrop",t=>t(e,n,l||o["j"].empty,u)))return void n.preventDefault();if(!l)return;n.preventDefault();let d=l?Object(a["f"])(e.state.doc,c.pos,l):c.pos;null==d&&(d=c.pos);let p=e.state.tr;u&&p.deleteSelection();let f=p.mapping.map(d),h=0==l.openStart&&0==l.openEnd&&1==l.content.childCount,m=p.doc;if(h?p.replaceRangeWith(f,f,l.content.firstChild):p.replaceRange(f,f,l),p.doc.eq(m))return;let v=p.doc.resolve(f);if(h&&r["c"].isSelectable(l.content.firstChild)&&v.nodeAfter&&v.nodeAfter.sameMarkup(l.content.firstChild))p.setSelection(new r["c"](v));else{let t=p.mapping.map(d);p.mapping.maps[p.mapping.maps.length-1].forEach((e,n,r,o)=>t=o),p.setSelection(ot(e,v,p.doc.resolve(t)))}e.focus(),e.dispatch(p.setMeta("uiEvent","drop"))},Gt.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout(()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&$e(e)},20))},Gt.blur=(e,t)=>{let n=t;e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),n.relatedTarget&&e.dom.contains(n.relatedTarget)&&e.domObserver.currentSelection.clear(),e.focused=!1)},Gt.beforeinput=(e,t)=>{let n=t;if(j&&R&&"deleteContentBackward"==n.inputType){e.domObserver.flushSoon();let{domChangeCount:t}=e.input;setTimeout(()=>{if(e.input.domChangeCount!=t)return;if(e.dom.blur(),e.focus(),e.someProp("handleKeyDown",t=>t(e,g(8,"Backspace"))))return;let{$cursor:n}=e.state.selection;n&&n.pos>0&&e.dispatch(e.state.tr.delete(n.pos-1,n.pos).scrollIntoView())},50)}};for(let gr in zt)Gt[gr]=zt[gr];function In(e,t){if(e==t)return!0;for(let n in e)if(e[n]!==t[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}class Sn{constructor(e,t){this.toDOM=e,this.spec=t||Ln,this.side=this.spec.side||0}map(e,t,n,r){let{pos:o,deleted:a}=e.mapResult(t.from+r,this.side<0?-1:1);return a?null:new jn(o-n,o-n,this)}valid(){return!0}eq(e){return this==e||e instanceof Sn&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&In(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class Tn{constructor(e,t){this.attrs=e,this.spec=t||Ln}map(e,t,n,r){let o=e.map(t.from+r,this.spec.inclusiveStart?-1:1)-n,a=e.map(t.to+r,this.spec.inclusiveEnd?1:-1)-n;return o>=a?null:new jn(o,a,this)}valid(e,t){return t.from<t.to}eq(e){return this==e||e instanceof Tn&&In(this.attrs,e.attrs)&&In(this.spec,e.spec)}static is(e){return e.type instanceof Tn}destroy(){}}class En{constructor(e,t){this.attrs=e,this.spec=t||Ln}map(e,t,n,r){let o=e.mapResult(t.from+r,1);if(o.deleted)return null;let a=e.mapResult(t.to+r,-1);return a.deleted||a.pos<=o.pos?null:new jn(o.pos-n,a.pos-n,this)}valid(e,t){let n,{index:r,offset:o}=e.content.findIndex(t.from);return o==t.from&&!(n=e.child(r)).isText&&o+n.nodeSize==t.to}eq(e){return this==e||e instanceof En&&In(this.attrs,e.attrs)&&In(this.spec,e.spec)}destroy(){}}class jn{constructor(e,t,n){this.from=e,this.to=t,this.type=n}copy(e,t){return new jn(e,t,this.type)}eq(e,t=0){return this.type.eq(e.type)&&this.from+t==e.from&&this.to+t==e.to}map(e,t,n){return this.type.map(e,this,t,n)}static widget(e,t,n){return new jn(e,e,new Sn(t,n))}static inline(e,t,n,r){return new jn(e,t,new Tn(n,r))}static node(e,t,n,r){return new jn(e,t,new En(n,r))}get spec(){return this.type.spec}get inline(){return this.type instanceof Tn}}const Dn=[],Ln={};class An{constructor(e,t){this.local=e.length?e:Dn,this.children=t.length?t:Dn}static create(e,t){return t.length?Fn(t,e,0,Ln):Nn}find(e,t,n){let r=[];return this.findInner(null==e?0:e,null==t?1e9:t,r,0,n),r}findInner(e,t,n,r,o){for(let a=0;a<this.local.length;a++){let i=this.local[a];i.from<=t&&i.to>=e&&(!o||o(i.spec))&&n.push(i.copy(i.from+r,i.to+r))}for(let a=0;a<this.children.length;a+=3)if(this.children[a]<t&&this.children[a+1]>e){let i=this.children[a]+1;this.children[a+2].findInner(e-i,t-i,n,r+i,o)}}map(e,t,n){return this==Nn||0==e.maps.length?this:this.mapInner(e,t,0,0,n||Ln)}mapInner(e,t,n,r,o){let a;for(let i=0;i<this.local.length;i++){let s=this.local[i].map(e,n,r);s&&s.type.valid(t,s)?(a||(a=[])).push(s):o.onRemove&&o.onRemove(this.local[i].spec)}return this.children.length?Rn(this.children,a||[],e,t,n,r,o):a?new An(a.sort(Gn),Dn):Nn}add(e,t){return t.length?this==Nn?An.create(e,t):this.addInner(e,t,0):this}addInner(e,t,n){let r,o=0;e.forEach((e,a)=>{let i,s=a+n;if(i=Vn(t,e,s)){r||(r=this.children.slice());while(o<r.length&&r[o]<a)o+=3;r[o]==a?r[o+2]=r[o+2].addInner(e,i,s+1):r.splice(o,0,a,a+e.nodeSize,Fn(i,e,s+1,Ln)),o+=3}});let a=Pn(o?Bn(t):t,-n);for(let i=0;i<a.length;i++)a[i].type.valid(e,a[i])||a.splice(i--,1);return new An(a.length?this.local.concat(a).sort(Gn):this.local,r||this.children)}remove(e){return 0==e.length||this==Nn?this:this.removeInner(e,0)}removeInner(e,t){let n=this.children,r=this.local;for(let o=0;o<n.length;o+=3){let r,a=n[o]+t,i=n[o+1]+t;for(let t,n=0;n<e.length;n++)(t=e[n])&&t.from>a&&t.to<i&&(e[n]=null,(r||(r=[])).push(t));if(!r)continue;n==this.children&&(n=this.children.slice());let s=n[o+2].removeInner(r,a+1);s!=Nn?n[o+2]=s:(n.splice(o,3),o-=3)}if(r.length)for(let o,a=0;a<e.length;a++)if(o=e[a])for(let e=0;e<r.length;e++)r[e].eq(o,t)&&(r==this.local&&(r=this.local.slice()),r.splice(e--,1));return n==this.children&&r==this.local?this:r.length||n.length?new An(r,n):Nn}forChild(e,t){if(this==Nn)return this;if(t.isLeaf)return An.empty;let n,r;for(let i=0;i<this.children.length;i+=3)if(this.children[i]>=e){this.children[i]==e&&(n=this.children[i+2]);break}let o=e+1,a=o+t.content.size;for(let i=0;i<this.local.length;i++){let e=this.local[i];if(e.from<a&&e.to>o&&e.type instanceof Tn){let t=Math.max(o,e.from)-o,n=Math.min(a,e.to)-o;t<n&&(r||(r=[])).push(e.copy(t,n))}}if(r){let e=new An(r.sort(Gn),Dn);return n?new xn([e,n]):e}return n||Nn}eq(e){if(this==e)return!0;if(!(e instanceof An)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(let t=0;t<this.local.length;t++)if(!this.local[t].eq(e.local[t]))return!1;for(let t=0;t<this.children.length;t+=3)if(this.children[t]!=e.children[t]||this.children[t+1]!=e.children[t+1]||!this.children[t+2].eq(e.children[t+2]))return!1;return!0}locals(e){return zn(this.localsInner(e))}localsInner(e){if(this==Nn)return Dn;if(e.inlineContent||!this.local.some(Tn.is))return this.local;let t=[];for(let n=0;n<this.local.length;n++)this.local[n].type instanceof Tn||t.push(this.local[n]);return t}}An.empty=new An([],[]),An.removeOverlap=zn;const Nn=An.empty;class xn{constructor(e){this.members=e}map(e,t){const n=this.members.map(n=>n.map(e,t,Ln));return xn.from(n)}forChild(e,t){if(t.isLeaf)return An.empty;let n=[];for(let r=0;r<this.members.length;r++){let o=this.members[r].forChild(e,t);o!=Nn&&(o instanceof xn?n=n.concat(o.members):n.push(o))}return xn.from(n)}eq(e){if(!(e instanceof xn)||e.members.length!=this.members.length)return!1;for(let t=0;t<this.members.length;t++)if(!this.members[t].eq(e.members[t]))return!1;return!0}locals(e){let t,n=!0;for(let r=0;r<this.members.length;r++){let o=this.members[r].localsInner(e);if(o.length)if(t){n&&(t=t.slice(),n=!1);for(let e=0;e<o.length;e++)t.push(o[e])}else t=o}return t?zn(n?t:t.sort(Gn)):Dn}static from(e){switch(e.length){case 0:return Nn;case 1:return e[0];default:return new xn(e.every(e=>e instanceof An)?e:e.reduce((e,t)=>e.concat(t instanceof An?t:t.members),[]))}}}function Rn(e,t,n,r,o,a,i){let s=e.slice();for(let l=0,u=a;l<n.maps.length;l++){let e=0;n.maps[l].forEach((t,n,r,a)=>{let i=a-r-(n-t);for(let c=0;c<s.length;c+=3){let a=s[c+1];if(a<0||t>a+u-e)continue;let l=s[c]+u-e;n>=l?s[c+1]=t<=l?-2:-1:r>=o&&i&&(s[c]+=i,s[c+1]+=i)}e+=i}),u=n.maps[l].map(u,-1)}let c=!1;for(let l=0;l<s.length;l+=3)if(s[l+1]<0){if(-2==s[l+1]){c=!0,s[l+1]=-1;continue}let t=n.map(e[l]+a),u=t-o;if(u<0||u>=r.content.size){c=!0;continue}let d=n.map(e[l+1]+a,-1),p=d-o,{index:f,offset:h}=r.content.findIndex(u),m=r.maybeChild(f);if(m&&h==u&&h+m.nodeSize==p){let r=s[l+2].mapInner(n,m,t+1,e[l]+a+1,i);r!=Nn?(s[l]=u,s[l+1]=p,s[l+2]=r):(s[l+1]=-2,c=!0)}else c=!0}if(c){let c=Un(s,e,t,n,o,a,i),l=Fn(c,r,0,i);t=l.local;for(let e=0;e<s.length;e+=3)s[e+1]<0&&(s.splice(e,3),e-=3);for(let e=0,t=0;e<l.children.length;e+=3){let n=l.children[e];while(t<s.length&&s[t]<n)t+=3;s.splice(t,0,l.children[e],l.children[e+1],l.children[e+2])}}return new An(t.sort(Gn),s)}function Pn(e,t){if(!t||!e.length)return e;let n=[];for(let r=0;r<e.length;r++){let o=e[r];n.push(new jn(o.from+t,o.to+t,o.type))}return n}function Un(e,t,n,r,o,a,i){function s(e,t){for(let a=0;a<e.local.length;a++){let s=e.local[a].map(r,o,t);s?n.push(s):i.onRemove&&i.onRemove(e.local[a].spec)}for(let n=0;n<e.children.length;n+=3)s(e.children[n+2],e.children[n]+t+1)}for(let c=0;c<e.length;c+=3)-1==e[c+1]&&s(e[c+2],t[c]+a+1);return n}function Vn(e,t,n){if(t.isLeaf)return null;let r=n+t.nodeSize,o=null;for(let a,i=0;i<e.length;i++)(a=e[i])&&a.from>n&&a.to<r&&((o||(o=[])).push(a),e[i]=null);return o}function Bn(e){let t=[];for(let n=0;n<e.length;n++)null!=e[n]&&t.push(e[n]);return t}function Fn(e,t,n,r){let o=[],a=!1;t.forEach((t,i)=>{let s=Vn(e,t,i+n);if(s){a=!0;let e=Fn(s,t,n+i+1,r);e!=Nn&&o.push(i,i+t.nodeSize,e)}});let i=Pn(a?Bn(e):e,-n).sort(Gn);for(let s=0;s<i.length;s++)i[s].type.valid(t,i[s])||(r.onRemove&&r.onRemove(i[s].spec),i.splice(s--,1));return i.length||o.length?new An(i,o):Nn}function Gn(e,t){return e.from-t.from||e.to-t.to}function zn(e){let t=e;for(let n=0;n<t.length-1;n++){let r=t[n];if(r.from!=r.to)for(let o=n+1;o<t.length;o++){let a=t[o];if(a.from!=r.from){a.from<r.to&&(t==e&&(t=e.slice()),t[n]=r.copy(r.from,a.from),Hn(t,o,r.copy(a.from,r.to)));break}a.to!=r.to&&(t==e&&(t=e.slice()),t[o]=a.copy(a.from,r.to),Hn(t,o+1,a.copy(r.to,a.to)))}}return t}function Hn(e,t,n){while(t<e.length&&Gn(n,e[t])>0)t++;e.splice(t,0,n)}function Yn(e){let t=[];return e.someProp("decorations",n=>{let r=n(e.state);r&&r!=Nn&&t.push(r)}),e.cursorWrapper&&t.push(An.create(e.state.doc,[e.cursorWrapper.deco])),xn.from(t)}const qn={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},Wn=I&&S<=11;class Kn{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}class $n{constructor(e,t){this.view=e,this.handleDOMChange=t,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new Kn,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.observer=window.MutationObserver&&new window.MutationObserver(e=>{for(let t=0;t<e.length;t++)this.queue.push(e[t]);I&&S<=11&&e.some(e=>"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length)?this.flushSoon():this.flush()}),Wn&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,qn)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let t=0;t<e.length;t++)this.queue.push(e[t]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(at(this.view)){if(this.suppressingSelectionUpdates)return $e(this.view);if(I&&S<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&u(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let t,n=new Set;for(let o=e.focusNode;o;o=s(o))n.add(o);for(let o=e.anchorNode;o;o=s(o))if(n.has(o)){t=o;break}let r=t&&this.view.docView.nearestDesc(t);return r&&r.ignoreMutation({type:"selection",target:3==t.nodeType?t.parentNode:t})?(this.setCurSelection(),!0):void 0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let t=this.pendingRecords();t.length&&(this.queue=[]);let n=e.domSelectionRange(),o=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(n)&&at(e)&&!this.ignoreSelectionChange(n),a=-1,i=-1,s=!1,c=[];if(e.editable)for(let r=0;r<t.length;r++){let e=this.registerMutation(t[r],c);e&&(a=a<0?e.from:Math.min(e.from,a),i=i<0?e.to:Math.max(e.to,i),e.typeOver&&(s=!0))}if(T&&c.length>1){let e=c.filter(e=>"BR"==e.nodeName);if(2==e.length){let t=e[0],n=e[1];t.parentNode&&t.parentNode.parentNode==n.parentNode?n.remove():t.remove()}}let l=null;a<0&&o&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&v(n)&&(l=We(e))&&l.eq(r["f"].near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,$e(e),this.currentSelection.set(n),e.scrollToSelection()):(a>-1||o)&&(a>-1&&(e.docView.markDirty(a,i),Xn(e)),this.handleDOMChange(a,i,s,c),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(n)||$e(e),this.currentSelection.set(n))}registerMutation(e,t){if(t.indexOf(e.target)>-1)return null;let n=this.view.docView.nearestDesc(e.target);if("attributes"==e.type&&(n==this.view.docView||"contenteditable"==e.attributeName||"style"==e.attributeName&&!e.oldValue&&!e.target.getAttribute("style")))return null;if(!n||n.ignoreMutation(e))return null;if("childList"==e.type){for(let n=0;n<e.addedNodes.length;n++)t.push(e.addedNodes[n]);if(n.contentDOM&&n.contentDOM!=n.dom&&!n.contentDOM.contains(e.target))return{from:n.posBefore,to:n.posAfter};let r=e.previousSibling,o=e.nextSibling;if(I&&S<=11&&e.addedNodes.length)for(let t=0;t<e.addedNodes.length;t++){let{previousSibling:n,nextSibling:a}=e.addedNodes[t];(!n||Array.prototype.indexOf.call(e.addedNodes,n)<0)&&(r=n),(!a||Array.prototype.indexOf.call(e.addedNodes,a)<0)&&(o=a)}let a=r&&r.parentNode==e.target?i(r)+1:0,s=n.localPosFromDOM(e.target,a,-1),c=o&&o.parentNode==e.target?i(o):e.target.childNodes.length,l=n.localPosFromDOM(e.target,c,1);return{from:s,to:l}}return"attributes"==e.type?{from:n.posAtStart-n.border,to:n.posAtEnd+n.border}:{from:n.posAtStart,to:n.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}}}let Jn=new WeakMap,Qn=!1;function Xn(e){if(!Jn.has(e)&&(Jn.set(e,null),-1!==["normal","nowrap","pre-line"].indexOf(getComputedStyle(e.dom).whiteSpace))){if(e.requiresGeckoHackNode=T,Qn)return;console["warn"]("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),Qn=!0}}function Zn(e){let t;function n(e){e.preventDefault(),e.stopImmediatePropagation(),t=e.getTargetRanges()[0]}e.dom.addEventListener("beforeinput",n,!0),document.execCommand("indent"),e.dom.removeEventListener("beforeinput",n,!0);let r=t.startContainer,o=t.startOffset,a=t.endContainer,i=t.endOffset,s=e.domAtPos(e.state.selection.anchor);return u(s.node,s.offset,a,i)&&([r,o,a,i]=[a,i,r,o]),{anchorNode:r,anchorOffset:o,focusNode:a,focusOffset:i}}function er(e,t,n){let r,{node:a,fromOffset:i,toOffset:s,from:c,to:l}=e.docView.parseRange(t,n),u=e.domSelectionRange(),d=u.anchorNode;if(d&&e.dom.contains(1==d.nodeType?d:d.parentNode)&&(r=[{node:d,offset:u.anchorOffset}],v(u)||r.push({node:u.focusNode,offset:u.focusOffset})),j&&8===e.input.lastKeyCode)for(let o=s;o>i;o--){let e=a.childNodes[o-1],t=e.pmViewDesc;if("BR"==e.nodeName&&!t){s=o;break}if(!t||t.size)break}let p=e.state.doc,f=e.someProp("domParser")||o["a"].fromSchema(e.state.schema),h=p.resolve(c),m=null,g=f.parse(a,{topNode:h.parent,topMatch:h.parent.contentMatchAt(h.index()),topOpen:!0,from:i,to:s,preserveWhitespace:"pre"!=h.parent.type.whitespace||"full",findPositions:r,ruleFromNode:tr,context:h});if(r&&null!=r[0].pos){let e=r[0].pos,t=r[1]&&r[1].pos;null==t&&(t=e),m={anchor:e+c,head:t+c}}return{doc:g,sel:m,from:c,to:l}}function tr(e){let t=e.pmViewDesc;if(t)return t.parseRule();if("BR"==e.nodeName&&e.parentNode){if(L&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){let e=document.createElement("div");return e.appendChild(document.createElement("li")),{skip:e}}if(e.parentNode.lastChild==e||L&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if("IMG"==e.nodeName&&e.getAttribute("mark-placeholder"))return{ignore:!0};return null}const nr=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function rr(e,t,n,o,a){let i=e.input.compositionPendingChanges||(e.composing?e.input.compositionID:0);if(e.input.compositionPendingChanges=0,t<0){let t=e.input.lastSelectionTime>Date.now()-50?e.input.lastSelectionOrigin:null,n=We(e,t);if(n&&!e.state.selection.eq(n)){if(j&&R&&13===e.input.lastKeyCode&&Date.now()-100<e.input.lastKeyCodeTime&&e.someProp("handleKeyDown",t=>t(e,g(13,"Enter"))))return;let r=e.state.tr.setSelection(n);"pointer"==t?r.setMeta("pointer",!0):"key"==t&&r.scrollIntoView(),i&&r.setMeta("composition",i),e.dispatch(r)}return}let s=e.state.doc.resolve(t),c=s.sharedDepth(n);t=s.before(c+1),n=e.state.doc.resolve(n).after(c+1);let l,u,d=e.state.selection,p=er(e,t,n),f=e.state.doc,h=f.slice(p.from,p.to);8===e.input.lastKeyCode&&Date.now()-100<e.input.lastKeyCodeTime?(l=e.state.selection.to,u="end"):(l=e.state.selection.from,u="start"),e.input.lastKeyCode=null;let m=cr(h.content,p.doc.content,p.from,l,u);if((A&&e.input.lastIOSEnter>Date.now()-225||R)&&a.some(e=>1==e.nodeType&&!nr.test(e.nodeName))&&(!m||m.endA>=m.endB)&&e.someProp("handleKeyDown",t=>t(e,g(13,"Enter"))))return void(e.input.lastIOSEnter=0);if(!m){if(!(o&&d instanceof r["g"]&&!d.empty&&d.$head.sameParent(d.$anchor))||e.composing||p.sel&&p.sel.anchor!=p.sel.head){if(p.sel){let t=or(e,e.state.doc,p.sel);if(t&&!t.eq(e.state.selection)){let n=e.state.tr.setSelection(t);i&&n.setMeta("composition",i),e.dispatch(n)}}return}m={start:d.from,endA:d.to,endB:d.to}}if(j&&e.cursorWrapper&&p.sel&&p.sel.anchor==e.cursorWrapper.deco.from&&p.sel.head==p.sel.anchor){let e=m.endB-m.start;p.sel={anchor:p.sel.anchor+e,head:p.sel.anchor+e}}e.input.domChangeCount++,e.state.selection.from<e.state.selection.to&&m.start==m.endB&&e.state.selection instanceof r["g"]&&(m.start>e.state.selection.from&&m.start<=e.state.selection.from+2&&e.state.selection.from>=p.from?m.start=e.state.selection.from:m.endA<e.state.selection.to&&m.endA>=e.state.selection.to-2&&e.state.selection.to<=p.to&&(m.endB+=e.state.selection.to-m.endA,m.endA=e.state.selection.to)),I&&S<=11&&m.endB==m.start+1&&m.endA==m.start&&m.start>p.from&&" "==p.doc.textBetween(m.start-p.from-1,m.start-p.from+1)&&(m.start--,m.endA--,m.endB--);let v,_=p.doc.resolveNoCache(m.start-p.from),y=p.doc.resolveNoCache(m.endB-p.from),b=f.resolve(m.start),O=_.sameParent(y)&&_.parent.inlineContent&&b.end()>=m.endA;if((A&&e.input.lastIOSEnter>Date.now()-225&&(!O||a.some(e=>"DIV"==e.nodeName||"P"==e.nodeName))||!O&&_.pos<p.doc.content.size&&!_.sameParent(y)&&(v=r["f"].findFrom(p.doc.resolve(_.pos+1),1,!0))&&v.head==y.pos)&&e.someProp("handleKeyDown",t=>t(e,g(13,"Enter"))))return void(e.input.lastIOSEnter=0);if(e.state.selection.anchor>m.start&&ir(f,m.start,m.endA,_,y)&&e.someProp("handleKeyDown",t=>t(e,g(8,"Backspace"))))return void(R&&j&&e.domObserver.suppressSelectionUpdates());j&&R&&m.endB==m.start&&(e.input.lastAndroidDelete=Date.now()),R&&!O&&_.start()!=y.start()&&0==y.parentOffset&&_.depth==y.depth&&p.sel&&p.sel.anchor==p.sel.head&&p.sel.head==m.endA&&(m.endB-=2,y=p.doc.resolveNoCache(m.endB-p.from),setTimeout(()=>{e.someProp("handleKeyDown",(function(t){return t(e,g(13,"Enter"))}))},20));let M,k,C,w=m.start,T=m.endA;if(O)if(_.pos==y.pos)I&&S<=11&&0==_.parentOffset&&(e.domObserver.suppressSelectionUpdates(),setTimeout(()=>$e(e),20)),M=e.state.tr.delete(w,T),k=f.resolve(m.start).marksAcross(f.resolve(m.endA));else if(m.endA==m.endB&&(C=ar(_.parent.content.cut(_.parentOffset,y.parentOffset),b.parent.content.cut(b.parentOffset,m.endA-b.start()))))M=e.state.tr,"add"==C.type?M.addMark(w,T,C.mark):M.removeMark(w,T,C.mark);else if(_.parent.child(_.index()).isText&&_.index()==y.index()-(y.textOffset?0:1)){let t=_.parent.textBetween(_.parentOffset,y.parentOffset);if(e.someProp("handleTextInput",n=>n(e,w,T,t)))return;M=e.state.tr.insertText(t,w,T)}if(M||(M=e.state.tr.replace(w,T,p.doc.slice(m.start-p.from,m.endB-p.from))),p.sel){let t=or(e,M.doc,p.sel);t&&!(j&&R&&e.composing&&t.empty&&(m.start!=m.endB||e.input.lastAndroidDelete<Date.now()-100)&&(t.head==w||t.head==M.mapping.map(T)-1)||I&&t.empty&&t.head==w)&&M.setSelection(t)}k&&M.ensureMarks(k),i&&M.setMeta("composition",i),e.dispatch(M.scrollIntoView())}function or(e,t,n){return Math.max(n.anchor,n.head)>t.content.size?null:ot(e,t.resolve(n.anchor),t.resolve(n.head))}function ar(e,t){let n,r,a,i=e.firstChild.marks,s=t.firstChild.marks,c=i,l=s;for(let o=0;o<s.length;o++)c=s[o].removeFromSet(c);for(let o=0;o<i.length;o++)l=i[o].removeFromSet(l);if(1==c.length&&0==l.length)r=c[0],n="add",a=e=>e.mark(r.addToSet(e.marks));else{if(0!=c.length||1!=l.length)return null;r=l[0],n="remove",a=e=>e.mark(r.removeFromSet(e.marks))}let u=[];for(let o=0;o<t.childCount;o++)u.push(a(t.child(o)));if(o["c"].from(u).eq(e))return{mark:r,type:n}}function ir(e,t,n,r,o){if(!r.parent.isTextblock||n-t<=o.pos-r.pos||sr(r,!0,!1)<o.pos)return!1;let a=e.resolve(t);if(a.parentOffset<a.parent.content.size||!a.parent.isTextblock)return!1;let i=e.resolve(sr(a,!0,!0));return!(!i.parent.isTextblock||i.pos>n||sr(i,!0,!1)<n)&&r.parent.content.cut(r.parentOffset).eq(i.parent.content)}function sr(e,t,n){let r=e.depth,o=t?e.end():e.pos;while(r>0&&(t||e.indexAfter(r)==e.node(r).childCount))r--,o++,t=!1;if(n){let t=e.node(r).maybeChild(e.indexAfter(r));while(t&&!t.isLeaf)t=t.firstChild,o++}return o}function cr(e,t,n,r,o){let a=e.findDiffStart(t,n);if(null==a)return null;let{a:i,b:s}=e.findDiffEnd(t,n+e.size,n+t.size);if("end"==o){let e=Math.max(0,a-Math.min(i,s));r-=i+e-a}if(i<a&&e.size<t.size){let e=r<=a&&r>=i?a-r:0;a-=e,s=a+(s-i),i=a}else if(s<a){let e=r<=a&&r>=s?a-r:0;a-=e,i=a+(i-s),s=a}return{start:a,endA:i,endB:s}}class lr{constructor(e,t){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new Yt,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=t,this.state=t.state,this.directPlugins=t.plugins||[],this.directPlugins.forEach(vr),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):"function"==typeof e?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=pr(this),dr(this),this.nodeViews=hr(this),this.docView=Ie(this.state.doc,ur(this),Yn(this),this.dom,this),this.domObserver=new $n(this,(e,t,n,r)=>rr(this,e,t,n,r)),this.domObserver.start(),qt(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let t in e)this._props[t]=e[t];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&$t(this);let t=this._props;this._props=e,e.plugins&&(e.plugins.forEach(vr),this.directPlugins=e.plugins),this.updateStateInner(e.state,t)}setProps(e){let t={};for(let n in this._props)t[n]=this._props[n];t.state=this.state;for(let n in e)t[n]=e[n];this.update(t)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,t){let n=this.state,r=!1,o=!1;e.storedMarks&&this.composing&&(vn(this),o=!0),this.state=e;let a=n.plugins!=e.plugins||this._props.plugins!=t.plugins;if(a||this._props.plugins!=t.plugins||this._props.nodeViews!=t.nodeViews){let e=hr(this);mr(e,this.nodeViews)&&(this.nodeViews=e,r=!0)}(a||t.handleDOMEvents!=this._props.handleDOMEvents)&&$t(this),this.editable=pr(this),dr(this);let i=Yn(this),s=ur(this),c=n.plugins==e.plugins||n.doc.eq(e.doc)?e.scrollToSelection>n.scrollToSelection?"to selection":"preserve":"reset",l=r||!this.docView.matchesNode(e.doc,s,i);!l&&e.selection.eq(n.selection)||(o=!0);let u="preserve"==c&&o&&null==this.dom.style.overflowAnchor&&z(this);if(o){this.domObserver.stop();let t=l&&(I||j)&&!this.composing&&!n.selection.empty&&!e.selection.empty&&fr(n.selection,e.selection);if(l){let n=j?this.trackWrites=this.domSelectionRange().focusNode:null;!r&&this.docView.update(e.doc,s,i,this)||(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=Ie(e.doc,s,i,this.dom,this)),n&&!this.trackWrites&&(t=!0)}t||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&st(this))?$e(this,t):(nt(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(n),"reset"==c?this.dom.scrollTop=0:"to selection"==c?this.scrollToSelection():u&&Y(u)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(this.someProp("handleScrollToSelection",e=>e(this)));else if(this.state.selection instanceof r["c"]){let t=this.docView.domAfterPos(this.state.selection.from);1==t.nodeType&&G(this,t.getBoundingClientRect(),e)}else G(this,this.coordsAtPos(this.state.selection.head,1),e)}destroyPluginViews(){let e;while(e=this.pluginViews.pop())e.destroy&&e.destroy()}updatePluginViews(e){if(e&&e.plugins==this.state.plugins&&this.directPlugins==this.prevDirectPlugins)for(let t=0;t<this.pluginViews.length;t++){let n=this.pluginViews[t];n.update&&n.update(this,e)}else{this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let e=0;e<this.directPlugins.length;e++){let t=this.directPlugins[e];t.spec.view&&this.pluginViews.push(t.spec.view(this))}for(let e=0;e<this.state.plugins.length;e++){let t=this.state.plugins[e];t.spec.view&&this.pluginViews.push(t.spec.view(this))}}}someProp(e,t){let n,r=this._props&&this._props[e];if(null!=r&&(n=t?t(r):r))return n;for(let a=0;a<this.directPlugins.length;a++){let r=this.directPlugins[a].props[e];if(null!=r&&(n=t?t(r):r))return n}let o=this.state.plugins;if(o)for(let a=0;a<o.length;a++){let r=o[a].props[e];if(null!=r&&(n=t?t(r):r))return n}}hasFocus(){if(I){let e=this.root.activeElement;if(e==this.dom)return!0;if(!e||!this.dom.contains(e))return!1;while(e&&this.dom!=e&&this.dom.contains(e)){if("false"==e.contentEditable)return!1;e=e.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&K(this.dom),$e(this),this.domObserver.start()}get root(){let e=this._root;if(null==e)for(let t=this.dom.parentNode;t;t=t.parentNode)if(9==t.nodeType||11==t.nodeType&&t.host)return t.getSelection||(Object.getPrototypeOf(t).getSelection=()=>t.ownerDocument.getSelection()),this._root=t;return e||document}posAtCoords(e){return ne(this,e)}coordsAtPos(e,t=1){return ie(this,e,t)}domAtPos(e,t=0){return this.docView.domFromPos(e,t)}nodeDOM(e){let t=this.docView.descAt(e);return t?t.nodeDOM:null}posAtDOM(e,t,n=-1){let r=this.docView.posFromDOM(e,t,n);if(null==r)throw new RangeError("DOM position not inside the editor");return r}endOfTextblock(e,t){return ve(this,t||this.state,e)}pasteHTML(e,t){return kn(this,"",e,!1,t||new ClipboardEvent("paste"))}pasteText(e,t){return kn(this,e,null,!0,t||new ClipboardEvent("paste"))}destroy(){this.docView&&(Kt(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],Yn(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null)}get isDestroyed(){return null==this.docView}dispatchEvent(e){return Xt(this,e)}dispatch(e){let t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))}domSelectionRange(){return L&&11===this.root.nodeType&&_(this.dom.ownerDocument)==this.dom?Zn(this):this.domSelection()}domSelection(){return this.root.getSelection()}}function ur(e){let t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(e.editable),e.someProp("attributes",n=>{if("function"==typeof n&&(n=n(e.state)),n)for(let e in n)"class"==e?t.class+=" "+n[e]:"style"==e?t.style=(t.style?t.style+";":"")+n[e]:t[e]||"contenteditable"==e||"nodeName"==e||(t[e]=String(n[e]))}),t.translate||(t.translate="no"),[jn.node(0,e.state.doc.content.size,t)]}function dr(e){if(e.markCursor){let t=document.createElement("img");t.className="ProseMirror-separator",t.setAttribute("mark-placeholder","true"),t.setAttribute("alt",""),e.cursorWrapper={dom:t,deco:jn.widget(e.state.selection.head,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function pr(e){return!e.someProp("editable",t=>!1===t(e.state))}function fr(e,t){let n=Math.min(e.$anchor.sharedDepth(e.head),t.$anchor.sharedDepth(t.head));return e.$anchor.start(n)!=t.$anchor.start(n)}function hr(e){let t=Object.create(null);function n(e){for(let n in e)Object.prototype.hasOwnProperty.call(t,n)||(t[n]=e[n])}return e.someProp("nodeViews",n),e.someProp("markViews",n),t}function mr(e,t){let n=0,r=0;for(let o in e){if(e[o]!=t[o])return!0;n++}for(let o in t)r++;return n!=r}function vr(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}},eb541:function(e,t,n){"use strict";var r=n("ce18");e.exports=r([].slice)},eba9:function(e,t,n){"use strict";e.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},ebb5:function(e,t,n){"use strict";var r,o,a,i=n("4b11"),s=n("83ab"),c=n("da84"),l=n("1626"),u=n("861d"),d=n("1a2d"),p=n("f5df"),f=n("0d51"),h=n("9112"),m=n("cb2d"),v=n("edd0"),g=n("3a9b"),_=n("e163"),y=n("d2bb"),b=n("b622"),O=n("90e3"),M=n("69f3"),k=M.enforce,C=M.get,w=c.Int8Array,I=w&&w.prototype,S=c.Uint8ClampedArray,T=S&&S.prototype,E=w&&_(w),j=I&&_(I),D=Object.prototype,L=c.TypeError,A=b("toStringTag"),N=O("TYPED_ARRAY_TAG"),x="TypedArrayConstructor",R=i&&!!y&&"Opera"!==p(c.opera),P=!1,U={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},V={BigInt64Array:8,BigUint64Array:8},B=function(e){if(!u(e))return!1;var t=p(e);return"DataView"===t||d(U,t)||d(V,t)},F=function(e){var t=_(e);if(u(t)){var n=C(t);return n&&d(n,x)?n[x]:F(t)}},G=function(e){if(!u(e))return!1;var t=p(e);return d(U,t)||d(V,t)},z=function(e){if(G(e))return e;throw L("Target is not a typed array")},H=function(e){if(l(e)&&(!y||g(E,e)))return e;throw L(f(e)+" is not a typed array constructor")},Y=function(e,t,n,r){if(s){if(n)for(var o in U){var a=c[o];if(a&&d(a.prototype,e))try{delete a.prototype[e]}catch(i){try{a.prototype[e]=t}catch(l){}}}j[e]&&!n||m(j,e,n?t:R&&I[e]||t,r)}},q=function(e,t,n){var r,o;if(s){if(y){if(n)for(r in U)if(o=c[r],o&&d(o,e))try{delete o[e]}catch(a){}if(E[e]&&!n)return;try{return m(E,e,n?t:R&&E[e]||t)}catch(a){}}for(r in U)o=c[r],!o||o[e]&&!n||m(o,e,t)}};for(r in U)o=c[r],a=o&&o.prototype,a?k(a)[x]=o:R=!1;for(r in V)o=c[r],a=o&&o.prototype,a&&(k(a)[x]=o);if((!R||!l(E)||E===Function.prototype)&&(E=function(){throw L("Incorrect invocation")},R))for(r in U)c[r]&&y(c[r],E);if((!R||!j||j===D)&&(j=E.prototype,R))for(r in U)c[r]&&y(c[r].prototype,j);if(R&&_(T)!==j&&y(T,j),s&&!d(j,A))for(r in P=!0,v(j,A,{configurable:!0,get:function(){return u(this)?this[N]:void 0}}),U)c[r]&&h(c[r],N,r);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:R,TYPED_ARRAY_TAG:P&&N,aTypedArray:z,aTypedArrayConstructor:H,exportTypedArrayMethod:Y,exportTypedArrayStaticMethod:q,getTypedArrayConstructor:F,isView:B,isTypedArray:G,TypedArray:E,TypedArrayPrototype:j}},ebe4:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}});return t}))},ec18:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
function t(e,t,n,r){var o={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[e+" aasta",e+" aastat"]};return t?o[n][2]?o[n][2]:o[n][1]:r?o[n][0]:o[n][1]}var n=e.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d päeva",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return n}))},ec2e:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:0,doy:6}});return t}))},ec4e:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("1ad4");const o=r["c"].create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:e}){return["p",Object(r["h"])(this.options.HTMLAttributes,e),0]},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}})},ec62:function(e,t,n){"use strict";var r=n("3584"),o=n("6f8d"),a=n("2f97");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=r(Object.prototype,"__proto__","set"),e(n,[]),t=n instanceof Array}catch(i){}return function(n,r){return o(n),a(r),t?e(n,r):n.__proto__=r,n}}():void 0)},ec69:function(e,t,n){e.exports=n("fc6c")},eda5:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} වැනි/,ordinal:function(e){return e+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(e){return"ප.ව."===e||"පස් වරු"===e},meridiem:function(e,t,n){return e>11?n?"ප.ව.":"පස් වරු":n?"පෙ.ව.":"පෙර වරු"}});return t}))},edbd:function(e,t,n){"use strict";var r=n("9883");e.exports=r("document","documentElement")},edd0:function(e,t,n){"use strict";var r=n("13d2"),o=n("9bf2");e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),o.f(e,t,n)}},edd9:function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return f})),n.d(t,"c",(function(){return p}));var r=n("7a23"),o=n("4c52"),a=n("304f"),i=n("4cb3"),s=n("0a08"),c=n("8afb"),l=n("27b6"),u=n("bfce");const d=Object(r["ref"])();function p(e,t){const n=Object(r["getCurrentInstance"])()?Object(r["inject"])(o["a"],d):d;return e?Object(r["computed"])(()=>{var r,o;return null!=(o=null==(r=n.value)?void 0:r[e])?o:t}):n}function f(e,t){const n=p(),o=Object(a["d"])(e,Object(r["computed"])(()=>{var e;return(null==(e=n.value)?void 0:e.namespace)||a["a"]})),c=Object(i["b"])(Object(r["computed"])(()=>{var e;return null==(e=n.value)?void 0:e.locale})),l=Object(s["b"])(Object(r["computed"])(()=>{var e;return(null==(e=n.value)?void 0:e.zIndex)||s["a"]})),u=Object(r["computed"])(()=>{var e;return Object(r["unref"])(t)||(null==(e=n.value)?void 0:e.size)||""});return h(Object(r["computed"])(()=>Object(r["unref"])(n)||{})),{ns:o,locale:c,zIndex:l,size:u}}const h=(e,t,n=!1)=>{var u;const f=!!Object(r["getCurrentInstance"])(),h=f?p():void 0,v=null!=(u=null==t?void 0:t.provide)?u:f?r["provide"]:void 0;if(!v)return void Object(c["a"])("provideGlobalConfig","provideGlobalConfig() can only be used inside setup().");const g=Object(r["computed"])(()=>{const t=Object(r["unref"])(e);return(null==h?void 0:h.value)?m(h.value,t):t});return v(o["a"],g),v(i["a"],Object(r["computed"])(()=>g.value.locale)),v(a["b"],Object(r["computed"])(()=>g.value.namespace)),v(s["c"],Object(r["computed"])(()=>g.value.zIndex)),v(l["a"],{size:Object(r["computed"])(()=>g.value.size||"")}),!n&&d.value||(d.value=g.value),g},m=(e,t)=>{var n;const r=[...new Set([...Object(u["c"])(e),...Object(u["c"])(t)])],o={};for(const a of r)o[a]=null!=(n=t[a])?n:e[a];return o}},ef09:function(e,t,n){"use strict";var r=n("9883"),o=n("f94a"),a=n("2874");o("toStringTag"),a(r("Symbol"),"Symbol")},ef6d:function(e,t,n){"use strict";var r,o,a,i,s=n("a5eb"),c=n("7042"),l=n("0149"),u=n("3ac6"),d=n("7106"),p=n("fdbe"),f=n("ec62"),h=n("2874"),m=n("d383"),v=n("4e19"),g=n("fb2d"),_=n("dfdb"),y=n("5f7d"),b=n("b0ea"),O=n("5afb").set,M=n("a0e6"),k=n("c2f0"),C=n("9b8d"),w=n("e889"),I=n("2f5a"),S=n("96ed"),T=n("baa7"),E=n("ad27"),j="Promise",D=T.CONSTRUCTOR,L=T.REJECTION_EVENT,A=T.SUBCLASSING,N=I.getterFor(j),x=I.set,R=S&&S.prototype,P=S,U=R,V=u.TypeError,B=u.document,F=u.process,G=E.f,z=G,H=!!(B&&B.createEvent&&u.dispatchEvent),Y="unhandledrejection",q="rejectionhandled",W=0,K=1,$=2,J=1,Q=2,X=function(e){var t;return!(!_(e)||!g(t=e.then))&&t},Z=function(e,t){var n,r,o,a=t.value,i=t.state==K,s=i?e.ok:e.fail,c=e.resolve,l=e.reject,u=e.domain;try{s?(i||(t.rejection===Q&&oe(t),t.rejection=J),!0===s?n=a:(u&&u.enter(),n=s(a),u&&(u.exit(),o=!0)),n===e.promise?l(V("Promise-chain cycle")):(r=X(n))?d(r,n,c,l):c(n)):l(a)}catch(p){u&&!o&&u.exit(),l(p)}},ee=function(e,t){e.notified||(e.notified=!0,M((function(){var n,r=e.reactions;while(n=r.get())Z(n,e);e.notified=!1,t&&!e.rejection&&ne(e)})))},te=function(e,t,n){var r,o;H?(r=B.createEvent("Event"),r.promise=t,r.reason=n,r.initEvent(e,!1,!0),u.dispatchEvent(r)):r={promise:t,reason:n},!L&&(o=u["on"+e])?o(r):e===Y&&k("Unhandled promise rejection",n)},ne=function(e){d(O,u,(function(){var t,n=e.facade,r=e.value,o=re(e);if(o&&(t=C((function(){l?F.emit("unhandledRejection",r,n):te(Y,n,r)})),e.rejection=l||re(e)?Q:J,t.error))throw t.value}))},re=function(e){return e.rejection!==J&&!e.parent},oe=function(e){d(O,u,(function(){var t=e.facade;l?F.emit("rejectionHandled",t):te(q,t,e.value)}))},ae=function(e,t,n){return function(r){e(t,r,n)}},ie=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=$,ee(e,!0))},se=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw V("Promise can't be resolved itself");var r=X(t);r?M((function(){var n={done:!1};try{d(r,t,ae(se,n,e),ae(ie,n,e))}catch(o){ie(n,o,e)}})):(e.value=t,e.state=K,ee(e,!1))}catch(o){ie({done:!1},o,e)}}};if(D&&(P=function(e){y(this,U),v(e),d(r,this);var t=N(this);try{e(ae(se,t),ae(ie,t))}catch(n){ie(t,n)}},U=P.prototype,r=function(e){x(this,{type:j,done:!1,notified:!1,parent:!1,reactions:new w,rejection:!1,state:W,value:void 0})},r.prototype=p(U,"then",(function(e,t){var n=N(this),r=G(b(this,P));return n.parent=!0,r.ok=!g(e)||e,r.fail=g(t)&&t,r.domain=l?F.domain:void 0,n.state==W?n.reactions.add(r):M((function(){Z(r,n)})),r.promise})),o=function(){var e=new r,t=N(e);this.promise=e,this.resolve=ae(se,t),this.reject=ae(ie,t)},E.f=G=function(e){return e===P||e===a?new o(e):z(e)},!c&&g(S)&&R!==Object.prototype)){i=R.then,A||p(R,"then",(function(e,t){var n=this;return new P((function(e,t){d(i,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete R.constructor}catch(ce){}f&&f(R,U)}s({global:!0,constructor:!0,wrap:!0,forced:D},{Promise:P}),h(P,j,!1,!0),m(j)},f135:function(e,t,n){"use strict";var r=n("96ed"),o=n("7de7"),a=n("baa7").CONSTRUCTOR;e.exports=a||!o((function(e){r.all(e).then(void 0,(function(){}))}))},f257:function(e,t,n){"use strict";var r=n("6326");e.exports=r},f260:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("pt",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return t}))},f3a3:function(e,t,n){"use strict";var r=n("06fa"),o=n("2c6c");e.exports=!r((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",o(1,7)),7!==e.stack)}))},f3ff:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},n={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"},r=e.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"[ਅਗਲਾ] dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",ss:"%d ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(e){return e.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ਰਾਤ"===t?e<4?e:e+12:"ਸਵੇਰ"===t?e:"ਦੁਪਹਿਰ"===t?e>=10?e:e+12:"ਸ਼ਾਮ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ਰਾਤ":e<10?"ਸਵੇਰ":e<17?"ਦੁਪਹਿਰ":e<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}});return r}))},f446:function(e,t,n){"use strict";n("d925");var r=n("764b"),o=r.Object;e.exports=function(e,t){return o.create(e,t)}},f44f:function(e,t,n){"use strict";var r=n("c1b2"),o=n("ce18"),a=n("7106"),i=n("06fa"),s=n("a016"),c=n("a205"),l=n("7043"),u=n("4fff"),d=n("638c"),p=Object.assign,f=Object.defineProperty,h=o([].concat);e.exports=!p||i((function(){if(r&&1!==p({b:1},p(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach((function(e){t[e]=e})),7!=p({},e)[n]||s(p({},t)).join("")!=o}))?function(e,t){var n=u(e),o=arguments.length,i=1,p=c.f,f=l.f;while(o>i){var m,v=d(arguments[i++]),g=p?h(s(v),p(v)):s(v),_=g.length,y=0;while(_>y)m=g[y++],r&&!a(f,v,m)||(n[m]=v[m])}return n}:p},f474:function(e,t,n){"use strict";n("7116");var r=n("a169");e.exports=r("Array").splice},f475:function(e,t,n){"use strict";var r=n("7ca7");e.exports=r},f495:function(e,t,n){"use strict";var r=n("c04e"),o=TypeError;e.exports=function(e){var t=r(e,"number");if("number"==typeof t)throw o("Can't convert number to bigint");return BigInt(t)}},f4c9:function(e,t,n){"use strict";var r=n("437b"),o=n("3b7b"),a=Array.prototype;e.exports=function(e){var t=e.indexOf;return e===a||r(a,e)&&t===a.indexOf?o:t}},f512:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bounds=t.random=void 0;var r=n("740b");function o(e){if(void 0===e&&(e={}),void 0!==e.count&&null!==e.count){var t=e.count,n=[];e.count=void 0;while(t>n.length)e.count=null,e.seed&&(e.seed+=1),n.push(o(e));return e.count=t,n}var c=a(e.hue,e.seed),l=i(c,e),u=s(c,l,e),d={h:c,s:l,v:u};return void 0!==e.alpha&&(d.a=e.alpha),new r.TinyColor(d)}function a(e,t){var n=l(e),r=d(n,t);return r<0&&(r=360+r),r}function i(e,t){if("monochrome"===t.hue)return 0;if("random"===t.luminosity)return d([0,100],t.seed);var n=u(e).saturationRange,r=n[0],o=n[1];switch(t.luminosity){case"bright":r=55;break;case"dark":r=o-10;break;case"light":o=55;break;default:break}return d([r,o],t.seed)}function s(e,t,n){var r=c(e,t),o=100;switch(n.luminosity){case"dark":o=r+20;break;case"light":r=(o+r)/2;break;case"random":r=0,o=100;break;default:break}return d([r,o],n.seed)}function c(e,t){for(var n=u(e).lowerBounds,r=0;r<n.length-1;r++){var o=n[r][0],a=n[r][1],i=n[r+1][0],s=n[r+1][1];if(t>=o&&t<=i){var c=(s-a)/(i-o),l=a-c*o;return c*t+l}}return 0}function l(e){var n=parseInt(e,10);if(!Number.isNaN(n)&&n<360&&n>0)return[n,n];if("string"===typeof e){var o=t.bounds.find((function(t){return t.name===e}));if(o){var a=p(o);if(a.hueRange)return a.hueRange}var i=new r.TinyColor(e);if(i.isValid){var s=i.toHsv().h;return[s,s]}}return[0,360]}function u(e){e>=334&&e<=360&&(e-=360);for(var n=0,r=t.bounds;n<r.length;n++){var o=r[n],a=p(o);if(a.hueRange&&e>=a.hueRange[0]&&e<=a.hueRange[1])return a}throw Error("Color not found")}function d(e,t){if(void 0===t)return Math.floor(e[0]+Math.random()*(e[1]+1-e[0]));var n=e[1]||1,r=e[0]||0;t=(9301*t+49297)%233280;var o=t/233280;return Math.floor(r+o*(n-r))}function p(e){var t=e.lowerBounds[0][0],n=e.lowerBounds[e.lowerBounds.length-1][0],r=e.lowerBounds[e.lowerBounds.length-1][1],o=e.lowerBounds[0][1];return{name:e.name,hueRange:e.hueRange,lowerBounds:e.lowerBounds,saturationRange:[t,n],brightnessRange:[r,o]}}t.random=o,t.bounds=[{name:"monochrome",hueRange:null,lowerBounds:[[0,0],[100,0]]},{name:"red",hueRange:[-26,18],lowerBounds:[[20,100],[30,92],[40,89],[50,85],[60,78],[70,70],[80,60],[90,55],[100,50]]},{name:"orange",hueRange:[19,46],lowerBounds:[[20,100],[30,93],[40,88],[50,86],[60,85],[70,70],[100,70]]},{name:"yellow",hueRange:[47,62],lowerBounds:[[25,100],[40,94],[50,89],[60,86],[70,84],[80,82],[90,80],[100,75]]},{name:"green",hueRange:[63,178],lowerBounds:[[30,100],[40,90],[50,85],[60,81],[70,74],[80,64],[90,50],[100,40]]},{name:"blue",hueRange:[179,257],lowerBounds:[[20,100],[30,86],[40,80],[50,74],[60,60],[70,52],[80,44],[90,39],[100,35]]},{name:"purple",hueRange:[258,282],lowerBounds:[[20,100],[30,87],[40,79],[50,70],[60,65],[70,59],[80,52],[90,45],[100,42]]},{name:"pink",hueRange:[283,334],lowerBounds:[[20,100],[30,90],[40,86],[60,84],[80,80],[90,75],[100,73]]}]},f5df:function(e,t,n){"use strict";var r=n("00ee"),o=n("1626"),a=n("c6b6"),i=n("b622"),s=i("toStringTag"),c=Object,l="Arguments"==a(function(){return arguments}()),u=function(e,t){try{return e[t]}catch(n){}};e.exports=r?a:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=u(t=c(e),s))?n:l?a(t):"Object"==(r=a(t))&&o(t.callee)?"Arguments":r}},f5f6:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=e=>e},f5fb:function(e,t,n){"use strict";var r=n("06fa");e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},f6b4:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],n=["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],r=["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],o=["Did","Dil","Dim","Dic","Dia","Dih","Dis"],a=["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],i=e.defineLocale("gd",{months:t,monthsShort:n,monthsParseExact:!0,weekdays:r,weekdaysShort:o,weekdaysMin:a,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){var t=1===e?"d":e%10===2?"na":"mh";return e+t},week:{dow:1,doy:4}});return i}))},f6b49:function(e,t,n){"use strict";var r=n("c532");function o(){this.handlers=[]}o.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},f6d8:function(e,t,n){"use strict";n("dc15");var r=n("764b");e.exports=r.Object.freeze},f72b:function(e,t,n){e.exports=n("9785")},f75e:function(e,t,n){"use strict";n("9103"),n("6f89");var r=n("a169");e.exports=r("Array").keys},f772:function(e,t,n){"use strict";var r=n("5692"),o=n("90e3"),a=r("keys");e.exports=function(e){return a[e]||(a[e]=o(e))}},f7c8:function(e,t,n){"use strict";var r=n("ce18"),o=Error,a=r("".replace),i=function(e){return String(o(e).stack)}("zxcasd"),s=/\n\s*at [^:]*:[^\n]*/,c=s.test(i);e.exports=function(e,t){if(c&&"string"==typeof e&&!o.prepareStackTrace)while(t--)e=a(e,s,"");return e}},f83d:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return m})),n.d(t,"b",(function(){return _})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return c})),n.d(t,"e",(function(){return g})),n.d(t,"f",(function(){return b})),n.d(t,"g",(function(){return r})),n.d(t,"h",(function(){return O})),n.d(t,"i",(function(){return C})),n.d(t,"j",(function(){return d})),n.d(t,"k",(function(){return f})),n.d(t,"l",(function(){return M})),n.d(t,"m",(function(){return u})),n.d(t,"n",(function(){return w})),n.d(t,"o",(function(){return T})),n.d(t,"p",(function(){return p})),n.d(t,"q",(function(){return k})),n.d(t,"r",(function(){return s})),n.d(t,"s",(function(){return E})),n.d(t,"t",(function(){return h}));
|
||
/*!
|
||
* shared v9.2.2
|
||
* (c) 2022 kazuya kawaguchi
|
||
* Released under the MIT License.
|
||
*/
|
||
const r="undefined"!==typeof window;const o=/\{([0-9a-zA-Z]+)\}/g;function a(e,...t){return 1===t.length&&w(t[0])&&(t=t[0]),t&&t.hasOwnProperty||(t={}),e.replace(o,(e,n)=>t.hasOwnProperty(n)?t[n]:"")}const i="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag,s=e=>i?Symbol(e):e,c=(e,t,n)=>l({l:e,k:t,s:n}),l=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),u=e=>"number"===typeof e&&isFinite(e),d=e=>"[object Date]"===S(e),p=e=>"[object RegExp]"===S(e),f=e=>T(e)&&0===Object.keys(e).length;function h(e,t){"undefined"!==typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const m=Object.assign;let v;const g=()=>v||(v="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof e?e:{});function _(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const y=Object.prototype.hasOwnProperty;function b(e,t){return y.call(e,t)}const O=Array.isArray,M=e=>"function"===typeof e,k=e=>"string"===typeof e,C=e=>"boolean"===typeof e,w=e=>null!==e&&"object"===typeof e,I=Object.prototype.toString,S=e=>I.call(e),T=e=>"[object Object]"===S(e),E=e=>null==e?"":O(e)||T(e)&&e.toString===I?JSON.stringify(e,null,2):String(e)}).call(this,n("c8ba"))},f868:function(e,t,n){"use strict";var r=TypeError;e.exports=function(e,t){if(e<t)throw r("Not enough arguments");return e}},f86d:function(e,t,n){"use strict";var r=n("9717");e.exports=/web0s(?!.*chrome)/i.test(r)},f890:function(e,t,n){var r=n("7a23");Object.keys(r).forEach((function(e){t[e]=r[e]})),t.set=function(e,t,n){return Array.isArray(e)?(e.length=Math.max(e.length,t),e.splice(t,1,n),n):(e[t]=n,n)},t.del=function(e,t){Array.isArray(e)?e.splice(t,1):delete e[t]},t.Vue=r,t.Vue2=void 0,t.isVue2=!1,t.isVue3=!0,t.install=function(){}},f8b4:function(e,t,n){"use strict";var r=n("a5eb"),o=n("9883"),a=n("a0b9"),i=n("e9d9"),s=n("6783"),c=n("6f8d"),l=n("dfdb"),u=n("4896"),d=n("06fa"),p=o("Reflect","construct"),f=Object.prototype,h=[].push,m=d((function(){function e(){}return!(p((function(){}),[],e)instanceof e)})),v=!d((function(){p((function(){}))})),g=m||v;r({target:"Reflect",stat:!0,forced:g,sham:g},{construct:function(e,t){s(e),c(t);var n=arguments.length<3?e:s(arguments[2]);if(v&&!m)return p(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return a(h,r,t),new(a(i,e,r))}var o=n.prototype,d=u(l(o)?o:f),g=a(e,d,t);return l(g)?g:d}})},f8b6:function(e,t,n){"use strict";var r=n("4e19"),o=n("0b1d");e.exports=function(e,t){var n=e[t];return o(n)?void 0:r(n)}},f8c9:function(e,t,n){"use strict";var r=n("23e7"),o=n("da84"),a=n("d44e");r({global:!0},{Reflect:{}}),a(o.Reflect,"Reflect",!0)},f8cb:function(e,t,n){"use strict";var r=n("d6d3");e.exports=r},f8cd:function(e,t,n){"use strict";var r=n("5926"),o=RangeError;e.exports=function(e){var t=r(e);if(t<0)throw o("The argument can't be less than 0");return t}},f906:function(e,t,n){!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]+/,a={},i=function(e){return(e=+e)+(e>68?1900:2e3)},s=function(e){return function(t){this[e]=+t}},c=[/[+-]\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)}],l=function(e){var t=a[e];return t&&(t.indexOf?t:t.s.concat(t.f))},u=function(e,t){var n,r=a.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=a.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=l("months"),n=(l("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=l("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=i(e)}],YYYY:[/\d{4}/,s("year")],Z:c,ZZ:c};function p(n){var r,o;r=n,o=a&&a.formats;for(var i=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var a=r&&r.toUpperCase();return n||o[r]||e[r]||o[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=i.length,c=0;c<s;c+=1){var l=i[c],u=d[l],p=u&&u[0],f=u&&u[1];i[c]=f?{regex:p,parser:f}:l.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var o=i[n];if("string"==typeof o)r+=o.length;else{var a=o.regex,c=o.parser,l=e.slice(r),u=a.exec(l)[0];c.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&&(i=e.parseTwoDigitYear);var r=t.prototype,o=r.parse;r.parse=function(e){var t=e.date,r=e.utc,i=e.args;this.$u=r;var s=i[1];if("string"==typeof s){var c=!0===i[2],l=!0===i[3],u=c||l,d=i[2];l&&(d=i[2]),a=this.$locale(),!c&&d&&(a=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,a=r.month,i=r.day,s=r.hours,c=r.minutes,l=r.seconds,u=r.milliseconds,d=r.zone,f=new Date,h=i||(o||a?1:f.getDate()),m=o||f.getFullYear(),v=0;o&&!a||(v=a>0?a-1:f.getMonth());var g=s||0,_=c||0,y=l||0,b=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("")),a={}}else if(s instanceof Array)for(var f=s.length,h=1;h<=f;h+=1){i[1]=s[h-1];var m=n.apply(this,i);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)}}}))},f94a:function(e,t,n){"use strict";var r=n("764b"),o=n("0e6f"),a=n("beea"),i=n("4180").f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});o(t,e)||i(t,e,{value:a.f(e)})}},f96e:function(e,t,n){"use strict";var r=n("dfdb"),o=n("fc48"),a=n("0363"),i=a("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},fa81:function(e,t,n){e.exports=n("5c4c")},faaa:function(e,t,n){"use strict";var r=n("6f8d"),o=n("8a3b");e.exports=function(e,t,n,a){try{return a?t(r(n)[0],n[1]):t(n)}catch(i){o(e,"throw",i)}}},facd:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],o=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,a=e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",w:"één week",ww:"%d weken",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}});return a}))},fb2d:function(e,t,n){"use strict";var r=n("0fd4"),o=r.all;e.exports=r.IS_HTMLDDA?function(e){return"function"==typeof e||e===o}:function(e){return"function"==typeof e}},fb5e:function(e,t){},fbaa:function(e,t,n){"use strict";n("9a6b");var r=n("a169");e.exports=r("String").trim},fc48:function(e,t,n){"use strict";var r=n("ce18"),o=r({}.toString),a=r("".slice);e.exports=function(e){return a(o(e),8,-1)}},fc56:function(e,t,n){e.exports=n("2b1b")},fc6a:function(e,t,n){"use strict";var r=n("44ad"),o=n("1d80");e.exports=function(e){return r(o(e))}},fc6c:function(e,t,n){"use strict";var r=n("27bd");e.exports=r},fc75:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.names=void 0,t.names={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"}},fc754:function(e,t,n){"use strict";e.exports=n("f475")},fc93:function(e,t,n){"use strict";var r=n("a5eb"),o=n("06fa"),a=n("6220"),i=n("dfdb"),s=n("4fff"),c=n("c74f"),l=n("3e23"),u=n("6c15"),d=n("4344"),p=n("9c96"),f=n("0363"),h=n("4aa6"),m=f("isConcatSpreadable"),v=h>=51||!o((function(){var e=[];return e[m]=!1,e.concat()[0]!==e})),g=function(e){if(!i(e))return!1;var t=e[m];return void 0!==t?!!t:a(e)},_=!v||!p("concat");r({target:"Array",proto:!0,arity:1,forced:_},{concat:function(e){var t,n,r,o,a,i=s(this),p=d(i,0),f=0;for(t=-1,r=arguments.length;t<r;t++)if(a=-1===t?i:arguments[t],g(a))for(o=c(a),l(f+o),n=0;n<o;n++,f++)n in a&&u(p,f,a[n]);else l(f+1),u(p,f++,a);return p.length=f,p}})},fd7e:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}});return t}))},fdbc:function(e,t,n){"use strict";var r=n("437b"),o=n("666a"),a=RegExp.prototype;e.exports=function(e){return e===a||r(a,e)?o(e):e.flags}},fdbe:function(e,t,n){"use strict";var r=n("0273");e.exports=function(e,t,n,o){return o&&o.enumerable?e[t]=n:r(e,t,n),e}},fdbf:function(e,t,n){"use strict";var r=n("04f8");e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},ff96:function(e,t,n){"use strict";var r=n("ce18"),o=n("1875"),a=n("8c12"),i=n("81f0"),s=r("".replace),c=RegExp("^["+i+"]+"),l=RegExp("(^|[^"+i+"])["+i+"]+$"),u=function(e){return function(t){var n=a(o(t));return 1&e&&(n=s(n,c,"")),2&e&&(n=s(n,l,"$1")),n}};e.exports={start:u(1),end:u(2),trim:u(3)}},ffb3:function(e,t,n){"use strict";var r=n("c1b2"),o=n("6220"),a=TypeError,i=Object.getOwnPropertyDescriptor,s=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(o(e)&&!i(e,"length").writable)throw a("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},ffff:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
|
||
//! moment.js locale configuration
|
||
var t=e.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return t}))}}]); |